How to OCR in Google Drive

Just upload the image file (jpg, png, pdf, etc), then right click the uploaded file. Select “Open With” then “Google Docs”. You will then see the original image on top, and the OCR’d text on the bottom.

Speeding Up Firefox by Disabling ‘Silent Request’

firefox-logo

To disable the ‘silent request‘, just set value of network.http.speculative-parallel-limit in about:config to 0
1. Type about:config into the address bar (and you’ll see a bunch of variables)
2. Copy and paste network.http.speculative-parallel-limit into the search bar at the top of that page and hit Enter.
3. You’ll now just have that one line on the page. Double-click it, a box pops up, you change the value to 0, and hit OK.

And that’s it.

Source:
How to Quash Firefox’s Silent Requests | Slashdot

Youtube’s HTML5 Player and 1080p in Firefox(Linux)

1.Activating HTML5 player
As of this writing it is not activated by default in Firefox. It has something to do about Media Source Extensions, not activated by default in Firefox.
Go to https://www.youtube.com/html5 and “Select the HTML5 player” to activate the HTML5 player.

2.Get the 1080p stuff
To get Full HD resolution you need to enable both Media Source Extensions in general and MSE + WebM in Firefox.
-Type about:config in the address and Click “I’ll be careful, I promise”
– Type mediasource in searchbox. Double-click both media.mediasource.enabled and media.mediasource.webm.enabled in order to change their value to “true”. Read More…

Advices on Creating Web API

Publish the whole thing and make sure it is all well documented. Also, don’t hide functions through obscurity.

>> some types of customers don’t need to see all of the API in the library
Don’t try to go down that road. If you start hiding functions through obscurity, they will pop out anyway (through code samples, forums, reverse engineering, pentesting, etc.) and will only lead to bad things (developers pissed at you for “crappy, incomplete documentation,” customers laughing at you for “trying to hide the best stuff,” salespeople people yelling at you for not exposing something you’ve already written but they didn’t know they needed until they walked out of a customer meeting, top executives yelling at everyone when a security researcher finds a big flaw in a rarely used function call that everyone forgot about).

Signed,
Dude With 15 Years Experience With Web APIs
(Who Has Had Much Of This Happen To Him Or His Company)
xxxJonBoyxxx

Publish the whole thing and make sure it is all well documented.
When we evaluate products, one thing I always look for is a well documented API with full functionality.

Then endure your internal developers use it and eat their own dog food.
Anonymous Coward

Source:
Ask Slashdot: Best API Management System? | Slashdot

Solution for Virtualenv Error : ‘Unable to Execute bla bla Permission Denied ‘

So I got this error when creating a virtualenv on a different partition other than my /home folder.

ERROR: The executable myenv/bin/python3.4 could not be run: [Errno 13] Permission denied

Turns out this problem related to the default permission when creating a partition which didn’t enable exec option on my partition. So, I enable the exec option by editing /etc/fstab .
Before

# Entry for /dev/sda7 :
/dev/sda7 /media/sda7 ext4 user 1 2

After

# Entry for /dev/sda7 :
/dev/sda7 /media/sda7 ext4 user,exec 1 2

Note the addition of ‘exec’.

Reference:
strange permissions problems for virtualenv python executable (lubuntu-12.10) | StackOverFlow

How to pip via Proxy Server

Just tell pip to use the proxy via –proxy option.

$ pip install --proxy username:password@proxyserver:port package_name 

Reference:
How to get pip to work behind a proxy server | StackOverflow