Posts

Future addition to Tabs/Pads: iPrint

Image
In last few years, Tabs/Pads have emerged as the new rage, though I never caught that fever myself, but its a reality I must accept. And like all bad things around us, that we cannot control, we must look for ways to make them good. (sheesh, I make it sound so depressing to just have a tab >.< sorry! )  It hit me, when I was looking at some old pictures, people carrying heavy typewriters to news spots and it made a impression on me that somehow "on the Spot printing" has to a big extent disappeared while its purpose hasn't. I would really love to print a Map while trekking, when my battery is about to go off.  In comes the next-much needed addition to Tabs/Pads : PRINT Portable printers have been around for a while, and many people do use them. But then again the basic problem still remains i.e., you have to take care of two devices, the wiring and connection setups, sending commands, etc etc.  Building print functionality into the iPad/othe

Setting Cookies in Perl (RFC 6265)

Setting Cookies in Perl (RFC 6265) Setting cookies in Perl, can be a pain these days. Specially with lack of clarity upon what to do, and what not to do. Here is a simple, yet compliant way of setting cookies as per RFC 6265. You should not use, CGI::Cookie because it is at present outdated, as it is based on the RFC 2965, which was made obsolete by RFC 6265. More on this here:  http://tools.ietf.org/search/rfc6265 Basically the RFC lays out how browser like your plain old Mozilla, Internet Explorer and Chrome should treat cookies, how to identify them, and what would be their attributes. This is the code we would be using today: Explanation:  Line1 : #!/usr/bin/perl says, where your perl files are located, while -T is for taint mode (a security feature) and w is for warnings. Line2: use strict is a security feature, and is strongly recommended! Line3: use CGI, is needed for your script to use Common Gateway Interface. Line 4: use CGI::Carp qw(fatalsToBrowser);

Connecting to MySQL database via Perl/CGI on Godaddy Linux Hosting

Connecting to MySQL database via Perl/CGI on Godaddy Linux Hosting I have had to face the problem of finding the right syntax to connect to MySQL server on my linux hosting at godaddy. Finally after days of searching, and no help from godaddy support (they suck straws big time!), I was able to finally get my database to connect and proceed further. This is the script: Explaination line-by-line: Line 1:  #<some text>    ---- > this is a comment, but #!<some path> ----> this is required for your script to work, it tells where the perl files are located.   #!/usr/bin/perl is saying that perl files are located in a local folder, which is located at /user/bin/perl   Line 2: Apparently with Godaddy, modules only load when you add this additional line ( use cPanelUserConfig; ) Remember, that Perl uses a module called DBI to connect to databases of various types, it is later on described, which type of database it is, but this line only says where to f

Godaddy Vs Bigrock

Quick Comparison between GoDaddy & Bigrock in India A question that comes to your mind often, is when buying websites in India what is your best option. Well, given from personal experience that I hardly take 10-20 minutes to make up my mind about this sort of subject where there is no physical object in question, I want to share a quick article about few things related to setting up websites.  This is the complete list of registrars which you may want to see, anyone outside of this list is not to be trusted (strongly!):  http://www.icann.org/registrar-reports/accredited-list.html Cost & Payment Options If you go through the list, you would find that a majority of domain registrars are based in US, and very few in India. Even for non-US ones, expect to pay in Dollars $ , which is quite expensive for your average Indian, and honestly, if you have too much money to waste it on currency exchange.. give it to me! lol! So far, only two registrars I have come to t

Amazon loses Debit, All credit to Visa Debit

Image
I might not be the brightest chum on the planet, but this I must point out, how Amazon is losing a lot of business, and I as a Indian customer, lot of product choices, many thanks to a bottle neck in the Visa system. It is the case of "darkness below the lamp itself" . Source of Problem: Visa Debit card holders are not allowed to make international payments. So Question arises, how big is this problem? Lets see, a few facts: 1998:  Harinarayan and Rajaraman sell Junglee.com to Amazon at $ 250 Million. 2012: Amazon brings Junglee.com to India.  2013: Amazon.in starts its operations with books, movies and Kindle only. Not very amazing facts, are they? well that is what exactly I want to point out. Amazon has not been able to make its mark on India, whereas Flipkart has made a tight grab on tier 1 cities in India, at the very least. Lets see, a few more facts: 1. Visa Debit cards in India cannot be used to buy from Amazon.com 2. Visa Debit car

Sticky Navigation bar using html 5 and css3 (small code)

Sticky Navigation Bar using HTML 5 and CSS3 (Small Code) Sticky Nav bar is the 'it' thing today, whether its facebook, google, or anyone else. But what I wanted was a simple short code. No Javascript, or anything else that would make me wanna puke. Under <body> tag, add this: Thats it! To use it to your ease, here is a few explanation, if you are unfamiliar to HTML5/CSS3 div id="header"  <----- this is a unique ID given to a html element, so the browser knows that the style being applied using the ' #header ' is for that particular element, and no one else. It is only used once, use 'class=' tag, if you want to use a style for different elements many times. Doing so, would reduce the size of your webpage, resulting in lower bandwidth need and performance stuff. background: #f2f2f2; <---- color of your bar, use photoshop eyedropper tool to get the # of the color you want. padding:28px; height:55px; <----- play wi

Shared Displays

Bezel-less & Shared Mobile Displays Nearing Reality The world first dual display smartphone was recently announced at the  Barcelona's Mobile World Congress, besides news of a new Samsung OS: Link 1 As it appears, Microsoft, has also similar plans as well: Link 2 as you would notice that these incredibly closer to the design I predicted few months ago, in my another blogpost, which made it to the HN frontpage breifly: My Post I wonder if I should patent the design before anyone does :P (I don't know the ABC of it)  But yeah, a lot to look forward to in future :)