Live data from Hacker News

OS X Command Line Utilities

mitchchn.me

151–160 of 210 posts

Re: OS X Command Line Utilities

#151

Earlier quoted context omitted.

Two-part response. 1, the pedantic: technically none of them know how to speak English, or any other language - there's just a rule set for making phonemes based on characters out of waveforms. 2. Ignoring the pedantic response, I still don't think that's true - if that were the case, then Milena wouldn't be able to speak an English sentence! say -v Milena "Hello, I am Milena" If they only speak their own language, t…

It's even more complicated than that: Some voices DO speak multiple languages, e.g. the German voice "Anna" (downloaded from System Preferences) speaks excellent German, English, Spanish, Italian, and French: say -v Anna 'über allen Wipfeln ist Ruh' say -v Anna '[[lang fr_FR]] que restet-il de nos amours' say -v Anna '[[lang it_IT]] chi nasce asino non muore cavallo' say -v Anna '[[lang es_SP]] nosotros tenemos mas i…

Hm, do you know how many speak languages that aren't "ascii"?

Re: OS X Command Line Utilities

#152
post #92

Earlier quoted context omitted.

"I don't lock my computer." This is a fire-able offense where I work.

That's a metric I use to know when it's time to change jobs: if I can't trust the people around me not to mess with my computer (or there's too many people to trust the environment) then it's time to move on.

That's a also metric I use when I choose service providers. If every employee is allowed to abuse any other employee's credentials to access my private data, move on.

Re: OS X Command Line Utilities

#153
post #128

Earlier quoted context omitted.

"Chill out, winston" It's a British expression made popular by a movie. He is not calling out the guy by his first name.

Yes, I know. But telling someone to "chill out" is a jab and superfluous. People do this kind of thing in online comments all the time, to make the other person look bad and rub in a little extra insult. Any one comment isn't much, of course, but they compound into a degraded discourse, and all of it goes against the civility we try to practice here.

Fair enough. I didn't want you to think he was doxing someone.

Re: OS X Command Line Utilities

#155
post #4

This article was nice, but it indicated that you need to change the system preferences in order to change the voice. It turns out that you can pass the -v flag to use a different voice, or "-v ?" to get a list of names. So you can do say -v Samantha Help, I'm trapped in this castle! or say -v Princess Help, I'm trapped in this castle! But wait, it gets even better: The Mac comes with a number of voices for other lang…

You can also use the voice from html5 but support is really shoddipy and buggy. Safari provided all the voices. Chrome not so much.

http://greggman.github.io/text2speech/

There's also some singing like voices.

Re: OS X Command Line Utilities

#156
post #36

pbpaste and pbcopy never really occur in ambiguous situations, so I wrote the following shell script: function clip { [ -t 0 ] && pbpaste || pbcopy } This is easier to type and allows for the following: % echo hello | clip % clip hello

Wow, that's really useful. For everyone who is as bad as me in bash, to actually use it put it like this in your bashrc: function clip() { [ -t 0 ] && pbpaste || pbcopy }

I think you posted this because pasting the OP results in a syntax error. The problem is actually the list in the compound command needs to be terminated with a newline or semicolon. Both of the following are equivalent correct oneliners:

clip() { [ -t 0 ] && pbpaste || pbcopy;}

function clip { [ -t 0 ] && pbpaste || pbcopy;}

Re: OS X Command Line Utilities

#160
post #61

Earlier quoted context omitted.

You're in the minority then... My original comment has been downvoted quite a bit. It's strange to me that people think this is okay. If someone is willing to use that power for a prank, it seems to me more likely that they'll use it for... whatever. I like a good prank. Leave your screen unlocked? You deserve the abuse you get. :) But accessing my laptop in this way is just creepy.

I don't agree with your logic and think you need a more nuanced sense of humor. Spying on someone remotely? Fireable offense. Remotely kicking off speech utils between people on a team once? Not so much. Disclaimer: I have managed tech teams before. It is better to forgive then have knee jerk managerial reactions.

I guess I'll take the downvotes and somewhat agree with them; probably not as far as to say a fireable matter for the first offense. Definitely a strong and unambiguous warning/disciplinary action (repeat offender, however? Fired)

Sorry, I get office pranks but there's no reason to be doing anything on an end-user's workstation without their permission or consent that isn't maintenance or security related. I guess I lack a sense of humor, but I've also seen too many instances where a prank on someone's machine resulted in severely unintended consequences and breaches of trust that rippled through the team.

Just not worth it, IMO.

Post reply on HN