Batch Convert Image to PDF

One of my friend was looking for a each way of batch converting image in to pdfs. This is how you can do it. I use mac, so tutorial is for Mac/Linux.

Mac:

Install Brew From here

Install $ brew install imagemagick

Use this one line script to convert all the image in current folder

Linux:

Install $ sudo apt-get install imagemagick

Use this one line script to convert all the image in current folder

WordPress Author-Info

WordPress as a very nice Author-info, I like it. By default it is off unless there are more then one author post on your blog. You can turn it on without installing any stupid plugin or code edit. Follow these steps.

  • First you should update description in your WordPress user profile
  • Open phpmyadmin or equivalent.
  • Open your WordPress database.
  • Navigate to table wp_options.
  • Search for option_name field for value _transient_is_multi_author
  • Set this value to 1 (for true)

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.

arduino-ethernet

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.

 

 

Everything bloggable around Shishir Sharma