Categories
Customization Programming Ruby Tutorial

Grab the net with Arduino

How to access a website with multiple virtual hosts from Arduino Ethernet Shield. The problem is if you have used Arduino Ethernet Shield, then you know that you can connect a IP, But if the IP has multiple virtual hosts, it will only connect to default virtual host. If it is commercial shared VPS, You wont be able to make your site default.

Gist is use of HTTP protocol which allows you to define host in your request on virtual host server. Here are the possible headers.

http://en.wikipedia.org/wiki/List_of_HTTP_headers

You should also provide basic debugging info like “User-Agent” etc.

Categories
Customization Programming Ruby Web

IRB Console with history and logging

I spend most time with IRB or Rails/console. These are good settings on which I have settled with over the time. These will allow you to have basic logging and IRB history. Just put these in the ~/.irbrc file (If file doesn’t exist then create one).

Categories
Ardoino Arduino Platform Projects

Arduino Ethernet Shield and Webclient

First thing you do when you get a Ethernet Shield for Arduino (in my case Duemilanove). You will be uploading various example sketches. I was doing the same Ardoino was working flawlessly and then I got stuck in WebClient sketch.

I did all the things I could do.

  • Reset Arduino.
  • Reset Ethernet Shield.
  • Change Ethernet cat5 cable to shorter one.
  • Change Router setting.
  • Change MAC address in program.
  • Change last 2 octets of IP 192,168,6,xxx to 192,168,1,xxx.
  • At last Google about this issue.

Point to be noted I was able to run WebServer sketch and it was flawless. So I was sure shield is good.

With a quick google found this thread on http://www.arduino.cc.

Some one said that don’t connect google ;). Bingo. Its Google.

Fcuk that.  But WebClient too works flawlessly.

 

 

Categories
Firefox Projects

Spiderzilla

We surf the internet. We do it every day. Nowadays, I have a 2Mbps broadband connection, but life needs more.

I used to have a slow connection of 56Kbps a few months back. Bandwidth was a big issue at that time (It’s still an issue 😂). But India is “shining” we have a cheap broadband connection now.

When I was on 56Kbps, I had this habit of making an offline cache of useful pages. I usually used the HTTrack Website Copier

“It allows you to download a World Wide website from the Internet to a local directory,building recursively all structures, getting html, images, and other files from the server to your computer. Links are rebuilt relatively so that you can freely browse to the local site (works with any browser). You can mirror several sites together so that you can jump from one to another. You can, also, update an existing mirror site, or resume an interrupted download””


SpiderZilla is intended to be a Firefox and Mozilla Suite extension for offline browsing. It is only a front-end for the open-source command-line program HTTrack Website Copier.

Categories
C++ Programming Projects

Desktop Calculator

I always appreciate coding in standard C++. Desktop Calculator is a application coded in Standard C++. It is a application based on the example 6.1 in the book “The C++ Programming Language”, Third Edition by Bjarne Stroustrup. Desktop Calculator is a GPL software.