Saturday, September 10, 2011

TTLS/PAP authentication in Nokia smartphones

Our college revamped the authentication mechanism of our campus wifi recently: instead of WPA2-PSK, it is now EAP-TTLS. The authentication is done by a central LDAP server, so one uses his common college network uid/password for authentication. Really neat.
But I had some trouble getting it to work on my Nokia 5800 smartphone, although a firmware upgrade added native EAP support. I changed the security settings of the wifi to EAP, selected all the right options, but still it would obstinately show the message: "TTLS/PAP authentication failure" or something like that.
I almost gave up hope, when I learnt from prof. Golam Mortuza Hossain that Nokia doesn't allow TTLS/PAP authentication unless an authority certificate is installed. So I promptly transferred the CA certificate to my phone over bluetooth. But the phone didn't even detect it as a certificate.
Then I learnt that Nokia phones only allow certificates of DER format. The conversion is easy enough, provided that openssl is installed on your computer:
That's it. Finally I can connect to the college wifi.
I wish it were that simple for Kindle 3! For some inscrutable reason, amazon doesn't allow kindles to access WPA-enterprise or ad-hoc networks. Even on jailbroken kindles, the process to make it work is very messy:one has to create a WPA wifi with the same ssid first, so that it is added to the list of 'Known' wifi networks, and then install a wpa_supplicant script. I haven't managed to do all that yet. Besides, kindle has free 3g anyway.

Monday, March 28, 2011

Rendering TeX using MathJax in Wikipedia

Today I came across this awesome javascript based solution to enable MathJax in Wikipedia : This trick works because you can tell wikipedia to leave the equations as TeX source (You just have to specify it in the preference page). Then MathJax takes care of all the rest.

Saturday, March 19, 2011

Getting gnuplot wxt terminal in Mac OS X

It's not difficult to install gnuplot on Mac OS X. Getting the source from sourceforge and performing the usual ./configure -> make -> sudo make install dance gets the job done.

But the the number of terminals you get in this method is pitifully small: the only interactive terminal available is x11. This is quite unbearable for anyone who had used wxt perminal in linux before: it's not even possible to zoom in to any particular area of the plot, let alone copying the plot to clipboard.

However, the easiest way to get the wxt terminal in Mac OS X is to install through fink. I should mention here that fink insists on installing about everything except the kitchen sink if you try to install gnuplot, though. It took almost 3 hours on my machine for the whole bunch to get compiled. Wish fink had a repo of binary packages for snow lwopard.