Archive for Mac

Norway Online shops and e-marketplaces registered in the VOEC register~ Rename multiple files~ How to install your public key in the remote machine’s authorized_keys~ How to redirect stderr and stdout in Bash~ ssh local tunneling – access home from remote location~ Run one process (or more) into tmux~ Regexp hints~ Why is it modern to be non-Java? Java have a high reputation for being solid and scalable in large enterprise solutions~ How to add speaker notes to reveal~ How do I access variables from the main class from another class (java)?~ How to resize a VirtualBox vmdk file~ How to Delete Auto Backup Photos without a plugin.~ Get the list of the tables in Oracle~ SpinRite~ Varnish~ Set Gmail as Your Browser’s Default Email Client with a Simple Hack~ Booting Operating System from USB Drive in VMware Fusion 3.x~ Add Quick Launch to Taskbar~ How to add Tumblr to your Google Buzz feed~ Export CSV with custom delimiter~ How to Install Windows 7 from USB Flash Drive~ Google G1 MMS / Internet settings. Vodafone UK~ Magento installation problem “innoDB storage engine is not supported”~ Connect Google Talk to AIM, MSN, & Yahoo~ Security Master Code For Nokia~ HDR Bracketing with the D90~ MarkerClusterer with custom icons and data from a XML file.~ Chrooting SFTP users in Ubuntu 9.10~ How to create a chroot ssh user in Ubuntu~ Import Excel Data into MySQL in 5 Easy Steps~ XPS 1530 – How to boot ubuntu using MediaDirect Button and windows 7 with the power button~ Google Bookmark don’t load with Firefox on Ubuntu~ Google Chat Video doesn’t install…~ How to Protect Your Wi-Fi Network from the WPA Hack~
Rename multiple files

Rename multiple files

for filename in *.jpg; do newname=echo $filename | sed ‘s/xxx/yyy/g’; mv $filename $newname; done

Continue reading →

How to mount a HFS partition in Ubuntu as Read/Write?

How to mount a HFS partition in Ubuntu as Read/Write?

First, make sure that you have hfsprogs installed. Example installation command: Next, mount or remount the HFS+ drive; commands need to be as follows: Finally, if the drive was improperly unmounted or has otherwise become partially corrupted run fsck.hfsplus (provided here by Jayson) as such:

Continue reading →

How to delete Quicklook thumbnails on Mac

How to delete Quicklook thumbnails on Mac

Long story short: Apple saves the thumbnails that you see with quicklook, even if you delete the original. If you see the images stored into an external drive and then unmount it, you might think, “hey I am safe”. Well, apparently you are not. So…

Continue reading →

Preserve bash history in multiple terminals

Preserve bash history in multiple terminals

dd the following to ~/.bashrc # Avoid duplicates export HISTCONTROL=ignoredups:erasedups # When the shell exits, append to the history file instead of overwriting it shopt -s histappend # After each command, append to the history file and reread it export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history…

Continue reading →

Default max heap size

Default max heap size

If you need to get the default max heap size used by your machine: java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize

Continue reading →

OVF Appliance Import failed: Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47

OVF Appliance Import failed: Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47

When you have .ovf file from VMWare and get the following message: “Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line 47″ The quickest solution is to open it with any text/xml editor, and 1. replace word “ElementName”…

Continue reading →

Google Drive notification icon and Yosemite dark mode

Google Drive notification icon and Yosemite dark mode

Quit Google Drive Go to /Applications/Google Drive.app/Contents/Resources swap png icons mac-normal and mac-normal-inverse restart Google Drive

Continue reading →

How to install Java 7 on Yosemite

How to install Java 7 on Yosemite

An easy way is to create a copy of SystemVersion.plist from /System/Library/CoreServices/ into your desktop. change <key>ProductVersion</key> <string>10.10</string> to <key>ProductVersion</key> <string>10.9.4</string> put back the file to CoreServices and job done. You can now start Java 7. You need to type your password at the prompt…

Continue reading →

Yosemite can automatically collect your location information

Yosemite can automatically collect your location information

Apple introduced a nice feature: http://www.washingtonpost.com/blogs/the-switch/wp/2014/10/20/apples-mac-computers-can-automatically-collect-your-location-information/ In short: every single local search in spotlight is sent to Cupertino. That includes of course search for a file, person, company, etc. Nice. It is not a secret function, because it is mentioned in the Yosemite’s licence: http://www.theregister.co.uk/2014/10/20/apple_spotlight_privacy_qualms/…

Continue reading →

Remove finder from Dock

Remove finder from Dock

Open (you need root permissions): /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist Add a new subsection to “finder-running”: <dict> <key>command</key> <integer>1004</integer> <key>name</key> <string>REMOVE_FROM_DOCK</string> </dict> Kill the dock: killall Dock Then right click on Finder icon in Dock and click on “remove from dock”

Continue reading →

Page 1 of 4 1 2 3 4