Configure tata indicom photon+ on Mac 9

Note: For Mountain Lion please check Tata Indicom’s photon+ device comes with the dmg ( installer ) package that you need to connect to the internet. 1. So first step is to connect the device to USB port. – Open Network Preferences, here you will see “HUAWEIMobile-Modem”. Next step is to configure the device. Click ...

setup mac os x (lion) as development machine ( macports: apache + mysql + php + subversion )

Here are the instructions to setup Mac OS X ( Lion ) for MAMP software development. Basically you will need apache, mysql, php, subversion and may be phpmyadmin. I am using macports which simplifies the installation process. 1. Install Xcode from apple’s Mac app store. It might take a while because mac app store is ...

migrate/copy mysql databases from one machine to another

I am currently on Mac OS X( Snow leopard ) and have installed mysql using macports. I wanted to copy my databases to another machine Mac OS X ( Lion ) to avoid creating new db’s from fresh. Here are the instructions for the same. Important: Information about databases is stored in below folder /opt/local/var/db/mysql5 ...

Samsung ML2245 (Printer configuration) on Mac OS X 10.6 (Snow Leopard)

Based on my previous blog, here are the instructions to configure Samsung ML2245 on Mac OS X 10.6 ( currently I am on 10.6.7 ) 1. Install following drivers: samsung-gdi-1.816.2.dmg Foomatic-RIP gplgs-8.71.dmg Note: First install samsung-gdi-1.816.2.dmg and follow #2 instructions. Check if your printer works. If not then install Footmatic-RIP and gplgs-8.71.dmg You should also ...

Share / Broadcast wireless network using your mac pro

Imagine you have wifi enabled cell phone or any other device but you have only wired connection which means you cannot browse/download apps on your mobile. Well it takes just one step to setup your mac to broadcast wireless network that can be used by your other devices. System Preferences >> Sharing >> check Internet ...

Reverting a commit in svn

If you want to revert your commit use below command svn merge -r [current_version]:[previous_version] [repository_url] svn commit -m “Reverting bad commit. [previous_version]”

MacPorts: MySQL upgrade from 5.0.x to 5.1.x gives error during insert ( mysql_upgrade / ERROR 1558 (HY000) ) 3

Yesterday I upgraded my mysql from 5.0.x to 5.1.x. After upgrade inserts started to fail with this error: ERROR 1558 (HY000) at line 146: Column count of mysql.proc is wrong. Expected 20, found 16. Created with MySQL 50067, now running 50142. Please use mysql_upgrade to fix this error. After little bit of google I found ...

Configure tata indicom photon+ on Mac ( Snow Leopard ) 67

Tata Indicom supply drivers along with photon+ device, but it didn’t work for me on my Mac (Snow Leopard). So I had to manually download it from web. You need following packages: 1. HUAWEI_UMTS_Dashboard_MACB301D 11SP00C03(ISO).zip (Driver) – required – Once you install above driver it will automatically add a device “HUAWEIMobile-Modem” in your Network Preferences. ...

Leopard (Mac OS X 10.5) to Snow Leopard (Mac OS X 10.6) upgrade problems / fixes 3

This blog post cover problems that I faced after upgrading my MacBook Pro from Leopard to Snow Leopard. 1. Firefox v 3.5.3 crashes. – Firefox started to crashed randomly. Especially when I tried to access sites with flash content. Solution: Few google results told me to re-install firefox and then install latest flash plugin. But ...

Detecting OS in PHP

Simply echo PHP_OS; It will print: For Mac: Darwin For Windows Visat: WinNT For Ubuntu: Linux Also if you want to know OS details about users accessing your site, you can use $_SERVER[‘HTTP_USER_AGENT’]