chronx Find something you love to do and you'll never have to work another day for the rest of your life

23Feb/120

copy/move/alias

Posted by oxchronxo

copy: drag+drop
move: command+drag+drop
alias: option+command+drag+drop

dragging the icon and not the text will prevent the word "alias" being appended to the end of the file

Tagged as: , No Comments
15Feb/120

synergy and dual monitors

Posted by oxchronxo

I want to have this setup on Ubuntu using synergy...
DUAL_MONITOR_SYSTEM_MONITOR-1 <-> SINGLE_MONITOR_SYSTEM <-> DUAL_MONITOR_SYSTEM_MONITOR-2

go to Monitor settings in ubuntu
change the position of existing dual monitors from A->B to B->A

now open up your synergy.conf file and make it look like this

section: links

right =
left =

left =
right =
end

8Feb/120

dos2unix

Posted by oxchronxo

it's been awhile since needing this and when I went to install it was gone. wtf

not really, it just changed a bit
install is easy
$ sudo aptitude install tofrodos
to convert from DOS to UNIX
$ fromdos FILE
to convert from UNIX to DOS
$ todos FILE

3Feb/120

disable “application downloaded from the internet”

Posted by oxchronxo

for a specific location:
$ xattr -d -r com.apple.quarantine ~/Downloads
for a specific location:
$ xattr -d -r com.apple.quarantine /Path/to/application/
globally:
$ defaults write com.apple.LaunchServices LSQuarantine -bool NO
$ killall -9 Finder

Tagged as: , , No Comments
30Jan/120

remove svn merge information

Posted by oxchronxo

from workspace root...

svn propdel svn:mergeinfo -R
svn revert .
# if you have merges that happened at a lower level then issue a revert on them as well
svn ci -m "Removed mergeinfo"

Tagged as: , , No Comments
13Jan/120

paste buffer into file using cat

Posted by oxchronxo

1) first issue the following command
$ cat > FILENAME
2) type whatever you want
-- or --
2) paste in a buffer then press ENTER to write the pasted buffer to the file
3) to complete the operation issue a CTRL+D to return to the console

10Jan/120

fixing function keys on ubuntu + mac keyboard

Posted by oxchronxo

issuing the following will make the function keys behave like normal

$ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
$ sudo update-initramfs -u
$ sudo reboot

for more info see:

https://help.ubuntu.com/community/AppleKeyboard

23Dec/110

syncing google contacts on iphone

Posted by oxchronxo

Problem... my google contacts don't show up when I add my account on my iphone.
Solution... you're adding your google account using Gmail/IMAP not Exchange. In IOS4+ you can have multiple exchange accounts. Adding your google mail account to your iphone using Exchange will expose your contacts and allow you to sync on your iphone.

17Dec/110

lock screen from mac menu bar

Posted by oxchronxo

1) Launch “Keychain Access” located in /Applications/Utilities/
2) From the ‘Keychain Access’ menu, open Preferences
3) Select the checkbox next to “Show Status in Menu Bar”

Tagged as: , No Comments
16Dec/110

Convert DMG to ISO

Posted by oxchronxo

on your Mac, open a Terminal, and type the following

hdiutil convert /PATH/TO/SOURCE_FILENAME.dmg -format UDTO -o /PATH/TO/TARGET_FILENAME.iso