Archive for ‘Uncategorized’

May 27, 2010

Python and Atomic Bomb

  • One is infinitely simpler than the other.
  • Both are devastating in the wrong hands.
May 27, 2010

Plone Vs Drupal Vs *

Python is a religion at BYGSoft. We love everything about it -period. Given that, we naturally propose Plone to anyone who wants us to develop a CMS based App.

Normally our clients don’t challenge our technology proposals. This one case I had the client ask me, Plone? Python? isn’t that going to be expensive to maintain? Why not PHP? I knew exactly where he was coming from.

Naturally there is varied opinion – esp on the Internet almost like vi vs emacs – and no prizes for guessing what we like at BYGSoft.

I am not sure what convinced the clients, but we believe that the best answer out there and the one we concur with is

“irrespective of the language or the framework or any other tool – the solution is only going to be as good as the people mean it to be”.

If you have a talented bunch of programmers it does not matter – you will still get a good solution out.

Anyone who is familiar with Solaris or AIX internals will tell you that long long before C++ took center stage as an OOD platform, they had all the OOD covered in C – in the kernel.

May 27, 2010

Wireless troubleshooting on Linux

For once something did not work out of the box on my Ubuntu 9.10 installation. My ASUS WL-167G USB 2.0 WLAN adapter could not connect to my HOME wireless network – UT STarcom Model WA3002G4 wireless router. Out of the box Ubuntu uses NetworkManager to connect to wireless networks. After several attempts and Internet researching I settled on the following set of guidelines which has since helped me in troubleshooting other wireless related issues. If nothing seems to work for you, try this as a last resort and isolate the problem. The goal is to get the connection established without compromising on wireless security.

  1. Router Side Configuration:
    1. Enable broadcasting of network name or SSID if it is turned off.
    2. Turn off or disable MAC address filtering. Any MAC should be able to connect.
    3. Set wireless security to WPA/WPA2-PSK.
    4. Setup a passphrase.
  2. Desktop/Laptop side configuration:
    1. NetworkManager is not very useful. If it does not work outright, don’t bother with it at this stage.
    2. Setup your /etc/wpa_supplicant.conf file as shown in end.
    3. Setup your /etc/network/intefaces as shown in the end.
    4. ifdown interface_name; ifup interface_name
  3. Conclusions
    1. If at the end of 4 you could connect, congratulations, there is nothing wrong with your chipset or driver or the router. You can continue to play with the above setup and modify it as per your needs to turn on or off some parameters.
    2. If at the end of 4 you could not connect, do the following from a terminal.
      1. ifdown interface_name
      2. Run “iwlist scan” from a terminal. You should see your network listed if you have correctly configured your router as mentioned above. If not something is wrong with the driver. Try to verify that the chipset or the WLAN card model drivers are available for your linux distribution. If you can see your network proceed to the next step.
      3. wpa_supplicant -dd -c/etc/wpa_supplicant.conf
      4. The above command does a lot of verbose printing. The output tells a lot about where the problem is. This is where it gets murkier.

# cat /etc/wpa_supplicant.conf



#cat /etc/network/interfaces #wlan0 is the name of my interface.

iface wlan0 inet dhcp
pre-up wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

auto wlan0