If you are sitting behind a proxy server you will probably have no internet connection in your Android emulator.

Solution: To configure your specific proxy settings, open Eclipse -> Run Configuration> Android Application > App > Target > Additional Emulator Command Line Options and add:

-http-proxy http://PROXY_PORT:PROXY_PORT

AJAX-Requests for local files are not working on Google Chrome.
XMLHttpRequest cannot load file:///Users/… . Origin null is not allowed by Access-Control-Allow-Origin
To bypass, either use a HTTP server or start Google Chrome with a command-line switch. Open the Terminal and type the command below:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --allow-file-access-from-files
If you receive a message like:
XMLHttpRequest cannot load ... Cross origin requests are only supported for HTTP.
Open the Terminal and type the command below:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security

As long as web security is disabled, it is not recommended to surf on public internet pages. In this mode your web browser is vulnerable for any kind of cross-site scripting.

For more information about Google Chrome command-line switches, take a look at Google Chrome command line switches.


Today I had a small problem - how to make hidden files and folders visible in Finder?

After some researches on the web, I found the following solution:

Open the Terminal and run the following command:
defaults write com.apple.finder AppleShowAllFiles TRUE
Before the changes will take effect, you need to restart Finder by running the following command:
killall Finder
Done!

To hide hidden files invisible again, open a Terminal and run the following command:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder


You want to use Time Machine over WIFI? - Then you have to buy a Time Capsule or you run a Time Machine at Ubuntu.

Tested with iOS 10.8.2 and Ubuntu Server 12.04

You did an unsuccessful installation before?

For the case that you did, remove Netatalk and all configuration files:
sudo apt-get remove --purge netatalk

Preparing the Ubuntu server...

From the Terminal (press + SPACE and type terminal) you have to run the following command to install Netatalk:
sudo apt-get install netatalk
Note: See also Netatalk HTML documentation for more details.
Configure the afpd server:
sudo vi /etc/netatalk/afpd.conf
Add the following line at the end of this file:
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2_passwd.so -nosavepassword
Check if CNID_METAD_RUN=yes in "/etc/default/netatalk" file. Otherwise change it. Create a new user for the Time Machine connect:
sudo adduser username
Go to the newly created user directory and create a backup folder there:
cd /home/username/
mkdir time_backup
sudo chown -R username:username time_backup
Configure the newly created backup directory in Netatalk:
sudo vi /etc/netatalk/AppleVolumes.default
At the end of the file you add the following entry:
/home/username/time_backup "My Time Machine Backup" allow:username cnidscheme:dbd volsizelimit:250000 options:usedots,upriv,tm
Make sure that you adjust the directory and username to your needs. With "volsizelimit" you can define the maximum size of the backup. In this case 250 GB.

After you are finished with all the configuration staff you need to restart the Netatalk service:
sudo service netatalk restart
Don't forget to allow afp if you are using ufw - Uncomplicated Firewall:
# Allow network access to the ports 548 and 427
sudo ufw allow 548
sudo ufw allow 427
sudo ufw disable && sudo ufw enable 

Preparing the Mac client...

To allow unsupported network volumes, you have to run the following command in Terminal (press + SPACE and type terminal):
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
"Connect to your server" (open Finder and press + K) and type the address of your server:
afp://ip_address
Congrats, your Ubuntu server volume should be visible and ready for Time Machine usage now.
From the Terminal (press + SPACE and type terminal) you will run the following commands:
sudo apt-get install apache2
sudo apt-get install php5
sudo /etc/init.d/apache2 restart
Note: Your web folder is in "/var/www". If you restart the Apache HTTP Server you maybe get the following message:
* Restarting web server apache2                                                                                              apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
The solution to fix it is really simple, you just add the ServerName directive to "/etc/apache2/httpd.conf":
sudo vi /etc/apache2/httpd.conf
Add the line: ServerName localhost

Finally restart the Apache HTTP Server:
sudo /etc/init.d/apache2 restart
done!


Well, there are many ways to access a Mac via remote desktop... I'll explain a very simple way here.

On your Mac, go to Settings -> Sharing -> Screen Sharing and enable the VNC option + a password. Make sure that you have enabled the Screen Sharing itself too.

That's it! Your Mac is ready for a VNC connection now.

If you want to connect to your Mac from another computer, you can use a client like http://www.realvnc.com/.