Archive for the ‘Browser’ Category

Why?

You get to access it offline. Its more readable. You can annotate, leave comments, etc from a PDF Client (Adobe Acrobat Reader anyone?). You can even track your progress inside the document. If your client is really friendly it can even reopen the document from where you left it.

Well for me its merely a matter of convenience. I always prefer a PDF manual instead of an HTML/CHM one for some reason (think: http://docs.python.org/download.html); Does it really matter if PDF is three times the size of the HTML archive? Storage isn’t really a pushing concern these days. Is it?

Idea:

Multiple HTML pages to a Single PDF.

There are a lot of websites which offer to convert an HTML document to PDF on the fly. Doesn’t serve the purpose and I not very big on registering everywhere!

For our little experiment lets pick a URL. I suggest http://www.catb.org/~esr/writings/homesteading/cathedral-bazaar/index.html.

(for further reading go to https://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar by Eric S. Raymond).

#1 Download web pages recursively using wget

# create a directory under home; Think: less clutter
$ mkdir ~/our_little_experiment; cd ~/our_little_experiment;

# download the webpage and recursively download all those webpages which are linked from this page in the current directory.
$ wget -v -r http://www.catb.org/~esr/writings/homesteading/cathedral-bazaar/index.html

FINISHED –2012-10-07 20:15:47–
Total wall clock time: 2m 51s
Downloaded: 16 files, 164K in 1.9s (88.7 KB/s)

A little later …

# lets look at the files generated by wget (an awesome tool btw!)
$ cd ~/our_little_experiment/www.catb.org/~esr/writings/homesteading/cathedral-bazaar

$ ls -1
ar01s02.html
ar01s03.html
ar01s04.html
ar01s05.html
ar01s06.html
ar01s07.html
ar01s08.html
ar01s09.html
ar01s10.html
ar01s11.html
ar01s12.html
ar01s13.html
ar01s14.html
ar01s15.html
ar01s16.html
index.html

# index.html is actually chapter 1 so renaming it to ar01s01.html
$ mv index.html ar01s01.html

#2 install htmldoc

$ sudo apt-get install htmldoc

#3 create the PDF document

$ htmldoc --webpage -t pdf14 -v -f catb_cathedral_bazaar.pdf *.html

Output: catb_cathedral_bazaar.pdf

Voila!

All the links work perfectly.

I’d be happy to guide anyone doing it on w32.

Please don’t use “win” as an abbreviation for Microsoft Windows in GNU software or
documentation. In hacker terminology, calling something a “win” is a form of praise. If you
wish to praise Microsoft Windows when speaking on your own, by all means do so, but not
in GNU software. Usually we write the name “Windows” in full, but when brevity is very
important (as in file names and sometimes symbol names), we abbreviate it to “w”. For
instance, the files and functions in Emacs that deal with Windows start with ‘w32’.

– GNU Standards

http://www.gnu.org/prep/standards/standards.html#Trademarks-1

 

Happy Hacking!
References:

http://freecode.com/projects/htmldoc

http://www.htmldoc.org/software.php

About these ads

Yeah even I never thought that I would find myself writing about a Microsoft Product but the whole thing looked so exciting that I just couldn’t resist. Features: Metro style apps. I believe the idea is to give people a heads-up in creating applications for the devices on which Windows 8 is going to run (//TODO: restructuring required!).

Windows8 Preview for Developers is out (http://dev.windows.com).

And their BUILD site says that it was downloaded 500K times within the first 12 hours of its release. Good for them!

Earlier in the evening I was trending #Windows8 (http://twitter.com/nikunjlahoti) about how my attempts at the installation were falling short. I am so glad that I finally did it (think: Die in peace. think: slumber)!!

Look for yourself ….

Let us quickly go thru the procedure:

Procure the Installation Media:

ISO (DVD Image)

URL: http://msdn.microsoft.com/en-us/windows/apps/br229516

Type: 64bit/32bit Depending upon your system (I have installed Windows 8 Developer Preview with developer tools English, 64-bit (x64))

Installation Location:

1) Inside a Virtual Machine (VirtualBox used):

http://www.addictivetips.com/windows-tips/how-to-install-windows-8-on-virtualbox/

Pretty detailed steps with screenshots given.

Make sure that your System supports Hardware Virtualization

2) On the Harddisk

  • upgrade Windows 7

if you have an existing installation then it may ask you to upgrade Windows 7. I don’t see much of a point going ahead with that. Lets just test it and wait for the full version to be out. So, select CUSTOM instead, for Dual-Boot. If you choose Dual-Boot now later you may be able to uninstall it as well otherwise things may get a little tricky.

  • dual-boot (say Windows 7 and Windows 8)

Windows gives you a recommended installation plan but you need to select a custom one for dual boot to happen.

Prerequisite: Resize the partition (C Drive: .. Using Windows Vista/Windows 7 Manage Computer Tools  or GParted etc) and create a new partition having at least 20Gb of Free Space. If not already then convert it to NTFS filesystem.

Installation Medium:

1) boot using USB/DVD:

Burn the downloaded image to the USB or DVD (for 4.8Gb ISO, regular DVD would not suffice) using a tool.

Microsoft’s USB Tool:

http://www.microsoftstore.com/store/msstore/html/pbPage.Help_Win7_usbdvd_dwnTool

Plug the USB/insert the DVD and hit reboot.

Instructions are self-explanatory.

2) as software (extract the ISO using WinRAR etc. No DVD/USB required):

Running Setup.exe in the ROOT folder wouldn’t give you enough options. And it may even scare you saying something close to FORMATTING the entire system (Saving Nothing). Go to “sources” folder instead and run the Setup from there. It works like a charm.

Select the partition where you wish to install the Windows8 Developer Preview on.

Windows 8 looks promising.

Do try it at least inside VirtualBox.

Peace!

Yes, I am obsessed. (Lets introduce the elephant in the room).

Happy Independence day Folks. I got like 15 (or more; not lyrical) messages from “LM-DAVP-MIB” (text in Hindi: इस स्वतंत्रता दिवस पर, आइये हम स्वयं को राष्ट्रीय एकता, साम्प्रदायिकता सौहार्द और समावेशी विकास के लिए, समर्पित करें- भारत सरकार). Very nice message though!

Now Android 2.2 doesn’t support the Devanagari Script. So instead of the Hindi characters, all it could display was identical blocks.

Unrecognized Hindi Font

Unrecognized Hindi Characters, fail to get rendered!

Now there are two things which can be done:

a) Fix it Globally (Needs superuser access. //not worth d price)

2) Find a work around (//discussed later).

D) or fwd it to a friend’s phone and interpret there. (//which I did and they kept on laughing at me for no reason, saying their phone was better. NO WAY!!)

Finally the work around:

Instead of having the stock messaging app display the Hindi Text, we may download an app with Hindi support inbuilt so that it may render the Characters properly.

I found this @ xda-developer.com : http://forum.xda-developers.com/showthread.php?p=16066606#post16066606

STEP1:

Download an app from Market which Displays Hindi fonts (later we are going to use its Fonts Base in our Messaging Application).

>> Install Hindi HinKhoj Dictionary

(pretty nice Hindi dictionary. You may even type in Hindi)

STEP2:

Download an app from Market which has inbuilt support for Devanagari Script, or may scan the available fonts on the device and use them to render characters.

>> Install Go SMS pro

STEP3:

Open the “Go SMS pro” Application.

While setting up it will ask you, select Normal Mode (light mode wouldn’t display all the options).

STEP4:

Go to:

A) “Appearance Settings” >> “Conversation List appearance” >> “Conv. List Customization” >> “Time and message font”

There, package which is default set as “system” you have to change it from “system” to “Hindi Hinkhoj Dictionary” from the list.

Automatically Font will be selected as “mangal”.

Now get back three times. Save & give a name for the customization.
B) “Appearance Settings” >> “Conversation appearance” >> “Conversation Customization” >> “Incoming font” and “Outgoing font”

Same as above!

& that’s all! Restart phone wasn’t required for my device. It worked out of the box.

Enjoy.

Update:

View content in Hindi language in a Web Browser.

Yes, so I came across another valuable piece of information here.

STEP1:

Install “Opera Mini” on your Android Device.

STEP2:

Clear the address bar & type opera:config (do not write www or http://).

STEP3:

Wait for the page to open. At its end see “use bitmap fonts for complex scripts”.

Change it to “Yes“. Save!! Open any site (eg. type “Hindi” in Google search box)

Opera displaying Hindi (plz don't read it though)

opera:config

Blank Your Monitor + Easy Reading ::

Add-ons for Firefox

https://addons.mozilla.org/en-us/firefox/addon/blank-your-monitor-easy-readin/

update:

I created this as a Draft with the WordPress Application for Android. When I saved it, I kinda got this feeling that I was just saved on my Device and not on the cloud. So I “posted it online”. Later when I got a comment on the blog, I realized it actually got “Published”. Mahn!

Anyway, I had some time, you know, to Pursue Excellence (Infosys people would know C-LIFE)… and I decided to read some stuff (SupernaturalWiki, Google News, LulzSec). So I was exploring the Accessibility options. And suddenly it struck me that there would definitely be an add-on or an extension that’d make the Background of any web page Darker (saves you some eyesight and some wattage {{visit: http://www.blackle.com }}). So I found this nice thing (blank-your-monitor-easy-readin). Didn’t explore any other options (if there were). It works.

Then I switched my Firefox4 to a new theme. Nasa Night Launch. Pretty Neat.

https://addons.mozilla.org/en-US/firefox/addon/nasa-night-launch/

Also I use iReader extension for Chrome. It rocks. (Firefox add-on available as well!) It gives you an uncluttered(no BS!) Article View which you can even print etc.

https://chrome.google.com/webstore/detail/ppelffpjgkifjfgnbaaldcehkpajlmbc#

Later I found myself reading an ebook on Acrobat Reader X. I felt the same need so I explored the available options and found out the Accessibility options… under Preferences.

There I could either set the custom color or choose among a set of Background+Foreground combination. I chose Black+Green. A few pages came as Black+White for no reason. But I liked d random White ones. So I didn’t dig. I also have configured it to open the last read page for every document (works like a bookmark huh?). I remember there was an option to optimize the display for Desktop Monitors or Laptops. Done!

Well then, take care of your eyes.

& I will keep posting stuff under this blog.. as I explore.

PS: Lubricating eye drops is a nice idea. The IT crowd.. are you drinking enough water? :D