Archive for March, 2009
Speedstream 5100 with Linksys router
So, my D-Link wireless router recently died after 4 years of great service. Considering the popularity, I bought one of Linksys Wireless-N router. The set was nice and easy but I started noticing that the dropped internet wouldn’t connect automatically with the new router. I called AT&T customer service to find out if anything had changed recently. Nothing did.
So started my debug cycle. I had forgotten how to connect directly to modem. My Vista (great Microsoft OS) wouldn’t fetch an IP from modem upon direct connection. Finally, I started from scratch. I reset my modem (with a little pen push button at the bottom of my modem). Restarted the computer. I had to hit “repair” on all my internet adapters to get it to renew ip address from modem directly. Then, I went to http://192.168.0.1 for the modem’s control panel and entered my username/password to get it to connect to internet. Everything good. But I still have to get it working with my router so I can connect multiple computers wirelessly to internet.
Apache config for enabling file listing
In order to enable file-listing for your static apache website, add following line to your virtual host’s <Directory> config:
<directory “/your/site/root/directory”>
Options Indexes FollowSymLinks
</directory>
Insurance Shopping Checklist
If you are shopping for insurance for yourself, you are not alone with all the options that are available out there and the complex web of things that you need to consider. But … I’ve been trying. Here is a list of things that I’ve come up with that one should consider when shopping for insurance.
Full 16 years of study – a necessity not a luxury
I was listening to NPR this morning and there was this gentleman sharing his experience. He said “When I graduated from
high school, I was excited to join workforce. I became a welder at a factory and made a decent living. I did that for 4 years and I got laid off recently…” Read the rest of this entry »
ActiveRecord group by, count and joins
Performing a join query on a one-to-many relationship to obtain the count of many side is not an uncommon query that we encounter. Some examples include a need to find how many times a particular customer placed an order, how many students are enrolled in each of the classes offered this semester or to put it in a general form: how many child objects there are for a given parent object.
While this can be performed in a single SQL statement, creating corresponding ActiveRecord find options presents a few challenges. It took me a few hours to get this and I learnt a few things along the way. Here is the journey as I took it:
Spree Installation Issues
I am exploring Spree for the ecommerce solution that I am working on. According to reviews, Spree is one of the most widely used RoR ecommerce package in use out there. It does have a wide community
base including googlegroups and is being developed actively. However, it lacks the test coverage and documentation for how to get started and how to add extensions.
Here are a couple of issues I faced when installing:
Google Maps KML (GeoXML) won’t work with http://localhost
Reading manuals is sometimes more efficient but if you are like me who tries it all (including web search) before hitting manual, then this should help:
When trying to develop a google map app on your local machine that needs to map a KML file, remember that any KML file served by your localhost server will not be properly rendered. The KML file has to be uploaded on a public server where google server can get to. This is because parsing of KML and rendering is done by google servers, each time!.