Archive

Archive for May, 2011

Connect to internet with BlackBerry simulator

May 13th, 2011

When I used the BlackBerry simulator I was unable to connect to internet from the build-in browser. In order to enable internet access, follow the steps below.

BB menu -> Manage Connections -> Setup Wifi network

The wifi wizard starts.

Choose Next ->Manually Add Network

Enter “Default WLAN Network” as SSID and choose Add

Choose “No security” and pick Connect

Pick Save (do not choose for connect, since this fails).

Pick Next

Done!

Update 16-05-2011:
It turns out that the method described above also works when a BlackBerry prompts for a PIN code in an open network. Just enter the name (SSID) of the open network as the network name and your BlackBerry can connect to an open network without entering a PIN code.

 

general

Ubuntu server persistent auto reconnecting PPTP VPN connection

May 12th, 2011

I have set up a PPTP VPN client on my Ubuntu server. Unfortunately when the server reboots, the connection goes down and stays down. After a long search I found a solution on this website. It is simple bash script, which checks if the VPN server (which had the VPN ip of 10.8.3.0) is pingable. If not it restarts the PPTP VPN connection.

ping -c3 10.8.3.0 > pingreport
result=`grep "0 received" pingreport`
truncresult="`echo "$result" | sed 's/^\(.................................\).*$/\1/'`"
if [[ $truncresult == "3 packets transmitted, 0 received" ]]; then
pon company-vpn
fi

I execute this script every five minutes, by editing the /etc/crontab file and added the following rule:

*/5 *   * * *   root    bash /root/vpn-check.sh

Linux , , ,

Web image optimizer for OSX

May 8th, 2011

Imageoptim is a free tool for OSX which optimises JPG, PNG and GIF images for the web. This tool is a lossless image compressor. In my test it reduced the image size by 60% on average.

Software