Flo's thoughts

Development, Photography & Me

5 notes

hilarious shell

tngs:

when i tried to start a server today with the wrong user, i just used sudo to start him anyway.

sudo /etc/init.d/mainserver start

and that’s what the shell told me, before executing my command :D

We trust you have received the usual lecture from the local System Administrator.
It usually boils down to these three things:    
#1) Respect the privacy of others.    
#2) Think before you type.    
#3) With great power comes great responsibility.

root’s password:

0 notes

Easy Versions syncing using Dropbox

For our subversion repositories we’re using Sofa’s awesome app Versions. If you’re working with subversion on a Mac go get it here.

Only downside: No bookmark syncing between computers. Today it bugged me enough to come up with a solution. Ok, fair enough, this is kinda obvious, but maybe you’re at the same point:

ln -s ~/Dropbox/Versions/ ~/Library/Application\ Support/Versions

Just move your Versions directory (which contains your Bookmarks.plist) to your Dropbox (or any other cloud location) and create a symlink to it at the directory’s old location.

Update

Ok, turns out, syncing the whole folder is maybe not the best idea. The license is located in the same folder and two computers accessing the same license seem to cause some trouble making one of the clients go back to trial mode.

So I changed the symlink to only point to the Bookmarks.plist itself. If you did it the same way I did it the following lines should help you:

cd ~/Library/Application\ Support/
unlink Versions
mkdir Versions
cd Versions
ln -s ~/Dropbox/Versions/Bookmarks.plist ~/Library/Application\ Support/Versions/Bookmarks.plist

BTW: No Dropbox? Get it here and make us both get some extra megabytes.

1 note

Network Testing

cocoa-dom:

If you put in network code into your apps, it is always important to test against bad network conditions. While this isn’t too trivial, it was always possible using dummynet.

However, now new in Lion is a Preference pane to use, so you don’t have any excuses anymore for not testing: Network Link Conditioner - Use it and use it heavily - real life network conditions, especially on iOS, are never as good as in your pristine office big bad ass network location.

228 notes

Remembering that I’ll be dead soon is the most important tool I’ve ever encountered to help me make the big choices in life. Because almost everything — all external expectations, all pride, all fear of embarrassment or failure - these things just fall away in the face of death, leaving only what is truly important. Remembering that you are going to die is the best way I know to avoid the trap of thinking you have something to lose. You are already naked. There is no reason not to follow your heart.
Steve Jobs (via tmblg)

(via sh)