How to Disable Keyboard Shortcuts using Greasemonkey 1

Posted by Prolific Programmer Wed, 29 Oct 2008 22:24:00 GMT

I have a tendency to hit "A" often when I'm reading weblogs. Unfortunately, Google has this key assigned to Mark all items read and there is no undo function. The solution I've come up with is simple. Using Greasemonkey, I'll merely assign the keycode to a no-op. Code to do so is after the flip.

Now, I have a question for me readers. Ok so here's the deal. As you will see, I've set the script to have an affect on the urls within the directory "reader" under Google's domain. But, I'd like to have it effect only on the right frame. So, any idea how to do this? Many thanks!


// ==UserScript==                                                               
// @name Disable Mark all as Read                                               
// @namespace hasan.diwan@gmail.com                                             
// @description Disables the "A" shortcut in Google Reader                                           
// @include http://*.google.com/reader/*                                          
// ==/UserScript==                                                              
                                                                                
window.addEventListener("keydown"),function(e) {                                
    if (e.keyCode == 65) return;                                                
}, false);                                                                     

How to Disable the Popup Blocker [Finally Solved]

Posted by Prolific Programmer Sat, 02 Aug 2008 23:46:00 GMT

Lifehacker reveals an interesting about:config tweak to disable the firefox popup blocker completely. The dom.popup_maximum configuration nod defaults to 20, but can be reset to a higher value. If this were more granular, it would be great, perhaps on a per-url basis?

How to Manage Del.icio.us

Posted by Prolific Programmer Sun, 29 Jun 2008 21:02:00 GMT

Lifehacker announces a new version of the del.icio.us browser, cocoalicious. I use del.icio.us for storing bookmarks, along with Google Reader's shared items. In any case, I'd like to synchronise the two. I can easily add to del.icio.us and retrieve them from Google. Now to synchronise the two use the code below...

#!/usr/bin/env python
import feedparser
import urllib2
import logging; logging.basicConfig()
class bookmarksync(object):
    def __init__(self, password, user = 'hdiwan', feedurl = 'http://www.google.com/reader/public/atom/user/08730762945348639336/state/com.google/broadcast'):
        feed = feedparser.parse(feed)
        self.username = user
        self.password = password
        for x in feed.entries:
            self,add(x.permalink)

    def add(self, bookmark):
        posturl = 'https://api.del.icio.us/v1/posts/add?'
        import urlparse
        parsed = urlparse.urlparse(posturl)
        posturl = "%s://%s:%s@%s/%s?href=%s&description=Added+from+Google+Reader&replace=yes" % (parsed[0], self.username, self.password, parsed[1], parsed[2], bookmark)
        success = urllib2.urlopen(posturl).read()
        if success == '':
            pass
        else if success == '
              

Who was Hacked?!?

Posted by Prolific Programmer Mon, 17 Mar 2008 22:57:00 GMT

Remember my fear that Google Reader had been hacked? It turns out Ms Trunk's blog had been hacked and she's blaming a guy. While that is a safe assumption, based on Internet demographics in the US, it is an invalid and irrelevant assumption. Does it really matter that the first computer virus was invented in Pakistan, given that it messed up your boot record? I don't give a rat's arse who's hacking a blog. Ok, we get the point, you're more powerful than we are. Now, may we please have our Internet back? It has been pluralised, after all, so would you hackers bugger off to your own Internet?

Has Google Reader been Hacked?

Posted by Prolific Programmer Thu, 13 Mar 2008 22:59:00 GMT

I have a bad habit of forwarding and sharing articles on Google Reader and have discovered something interesting. There are loads of adverts at the bottom of the forwarded emails, which are not seen when you compose. Observe the following shared item:

what jobs recession, again?


 
 

Sent to you by Hasan via Google Reader:

 
 


A recession probably won't affect your job market 

via Brazen Careerist by Penelope Trunk   by Penelope Trunk on 3/13/08

There is a lot of hoop-la over the recession. Or coming recession. Or statistical but maybe-not-really recession. But the truth is that the job market is just fine, especially for the post-Baby-Boomer set.
The health of today’s job market is not so much a function of economic indicators as it is a function of demographic trends  . There is a huge shortage of employees  . Baby Boomers are retiring and Generation X and Y are less able to replace the Baby Boomers than had been anticipated; employers receive fewer hours of work per person from post-Boomers because of their focus on   family (Generation X) and entrepreneurship   (Generation Y). Due to these factors, the employee shortage is increasing, and only a knock-down-drag-out recession will change this sunshine outlook for employees.
Deloitte says that employees will be in high demand for the next decade, and that Deloitte’s growth strategy requires that they continue to recruit just as heavily now as they were before talk of a recession. And Forbes reporter Tara Weiss finds   that other companies are reacting similarly.
Even in areas where the economic downturns are hitting the hardest – like finance, real estate and manufacturing — younger employees are in high demand.
I recently spoke with Ryan Sutton, vice president at the recruiting firm Robert Half  , which specializes in the finance sector. Sutton said, “Demand will continue to be strong. It is so pent up over the years that it’s hard to say whether an economic downturn would really affect a company’s ability to catch up.” Polls   conducted by Robert Half show that most companies will continue to ramp up hiring in finance.
In terms of real estate, Deloitte reports that almost 60% of people working in this market will be retirement age by 2010. And groups like Boston’s Urban Land Young Leaders   see huge potential for careers in this industry, especially in terms of green building. The bottom line in real estate is that the economic problems are about home prices, not jobless claims  : Just because your mortgage is exploding doesn’t mean your career is.
Another example is manufacturing, a sector that is officially in a recession  , but that doesn’t mean there are no jobs. In fact, the industry is very focused on the shortage of workers and has ramped up recruiting   efforts to attract young people via YouTube, MySpace and Facebook. The $70 million Dream It Do It   campaign shows an industry in high-gear hiring mode, unfazed by the fears of recession.
So listen to talk of recession, but don’t let it get you down. There are a few precautions   you can take in case you get laid off or downsized. But really, don’t decrease your expectations for your job just because housing prices are tanking and hedge fund managers are suffering. Many people are not convinced that the job market will be hugely affected by this activity.
Often times we get for ourselves what we expect from ourselves. So during talk of recession keep your chin up, and your expectations for your career up as well. This might just be a great time for your career.

 payday loan 
 debt consolidation 
 lowes home improvement 
 mortgage 
 payday loans 
 consolidate debt loans 
 debt consolidation free 
 home mortgage 
 mortgage loans 
 mortgages 
 home improvement 
 mortgage lenders 
 mortgage loan 
 mortgage quote 
 home mortgages 
 uk home mortgages 
 mortgage quotes 
 uk mortgages 
 home mortgage uk 
 uk mortgage 
 home mortgages uk 
 mortgage quoter 
 home improvement remodeling 
 debt consolidation services 
 credit and debt counseling 
 online debt consolidation 
 payday advance 
 american home mortgage 
 debt consolidation loans 
 debt consolidation loan 
 debt management 
 mortgage insurance 
 debt settlement 
 national debt 
 lowes home improvement 
 home improvement diy 
 web based auto dialer mortgage 
 loews home improvement 
 lowest mortgage rates 
 bad credit mortgage 
 mortgage leads 
 home improvements 
 mortgage brokers 
 chase mortgagediy home improvement 
 friendly mortgage professionals 
 home improvement loans 
 free mortgage calculator 
 debt collection letter 
 mortgage calculator uk 
 citi mortgage 
 home improvement stores 
 no fax payday loans 
 abn amro mortgage 
 second mortgage 
 instant payday loan 
 fha mortgage 
 option one mortgage 
 suntrust mortgage 
 oregon mortgage loans 
 debt reduction 
 todays mortgage rates 
 private mortgage insurance 
 oregon mortgage loan 
 consolidate student debt 
 get out of debt 
 home improvement loan 
 interest only mortgage 
 debt solutions 
 lowes home improvement center 
 bad credit mortgage loans 
 new century mortgage 
 refinance mortgage 
 insurance mortgage protection uk 
 mortgage implode 
 free debt consolidation 
 midland mortgage 
 exclusive mortgage leads 
 exclusive mortgage lead 
 best fixed rate mortgage 
 oregon mortgage 
 mortgage advice 
 no teletrack payday loans 
 debt free 
 ponte vedra mortgage 
 mortgage coach 
 payday 
 home improvement leads 
 greenpoint mortgage 
 debt collection 
 consolidate student loans debt 
 subprime mortgage lenders 
 forest lake mortgage 
 florida mortgage broker 
 consolidate debt 
 irish mortgage 
 mortgage foreclosure 
 chase manhattan mortgage 
 irish mortgage advice 
 libor mortgage tracker 
 payday loans online 
 mortgage realtor lender 
 advance bad cash credit loan payday 
 bad credit mortgages 
 credit card debt relief 
 colorado mortgage lender 
 subprime mortgage 
 mortgage life insurance 
 mortgage loan in oregon 
 everhome mortgage 
 bad cash credit loan loan payday 
 carmichael mortgage reverse 
 bad cash credit fast loan payday 
 debt elimination 
 first franklin mortgage 
 mortgage loan rates in oregon 
 bad cash credit loan payday 
 mortgage oregon 
 mortgage amortization schedule 
 hsbc mortgage 
 subprime mortgages 
 washington mutual mortgage 
 california mortgage rates 
 national debt clock 
 mortgage loan rates 
 country wide mortgage 
 california lender mortgage 
 2nd mortgage 
 no more mortgage 
 debt counseling 
 california reverse mortgage 
 online payday loans 
 colorado loan mortgage 
 exclusive lead mortgage 
 mortgage broker virginia beach va 
 flexible mortgages 
 best mortgage rate 
 mortgage loan rate 
 mortgage payments 
 direct mortgage lender 
 bad credit debt consolidation 
 amc mortgage 
 adjustable rate mortgage 
 mortgage broker norfolk va 
 califonia mortgage 
 todays mortgage rates 
 fair debt collection act 
 hard money mortgage broker 
 christian debt consolidation 
 colorado in lender mortgage 
 faxless payday loans 
 payday advances 
 home mortgage loans 
 ameriquest mortgage 
 collecting business debts 
 online mortgage quotes 
 colorado in loan mortgage 
 coupon home improvement lowes 
 hud reverse mortgage 
 home improvements catalog 
 mortgage calculator canada 
 home mortgage refinancing 
 countrywide home mortgage 
 internet lead mortgage 
 mortgage payment tables 
 debt consolidators 
 low mortgage rates 
 great southwest mortgage 
 consolidation debt loan mortgage refinance 
 credit card debt elimination 
 cco mortgage 
 home improvement financing 
 independent mortgage advice 
 florida reverse mortgage 
 colorado lender mortgage 
 el macero mortgage reverse 
 mortgage accelerator 
 rhode island mortgage 
 mortgage marketing gurus 
 in mortgage ohio rate 
 foreclosure mortgage 
 mortgages uk 
 getting out of debt 
 district of columbia mortgage 
 california mortgage reverse 
 bad credit debt consolidation loan 
 mortgage protection insurance 
 florida home mortgage 
 mortgage hampton roads 
 debt negotiation 
 interest only mortgages 
 chisago lake mortgage 
 home improvement catalog 
 1000 loan payday 
 refinance home mortgage 
 mortgage norfolk va 
 us bank home mortgage 
 regions mortgage 
 mortgage payment 
 energy efficient mortgages 
 mortgage lead newport news va 
 buy to let mortgage 
 refinance mortgage rates 
 mortgage store 
 mortgage glossary 
 mortgage lead virginia beach va 
 mortgage application 
 credit card debt settlement 
 ohio mortgage 
 mortgage marketing 
 generation lead lead mortgage 
 mobile home mortgage 
 mortgage jobs 
 eugene mortgage broker 
 mark mcgwire mortgage 
 bandon mortgage 
 home equity mortgage 
 florida mortgage 
 saginaw mortgage 
 fixed rate mortgage 
 low mortgage payments 
 ashland mortgage broker 
 base business home mortgage 
 generation lead mortgage 
 mortgage home loan 
 bad credit home mortgages 
 debt advice 
 first time home buyer mortgage 
 canadian mortgage rates 
 payday cash advance 
 debt consolidation program 
 home mortgage refinance loan 
 mortgage broker bond 
 debt collectors 
 gresham mortgage 
 debt consolidation wales 
 ri mortgage brokers 
 mortgage amortization table 
 florence oregon mortgage loan 
 nationstar mortgage 
 home loan equity mortgage rate 
 oregon mortgage in florence 
 home mortgage norfolk va 
 nc mortgage brokers 
 21st mortgage 
 loan mortgage 
 payday loan online 
 mortgage advice uk 
 mortgage bad credit 
 phentermine 
 buy xanax 
 cheap tramadol 
 viagra 
 tramadol 
 phentermine no prescription 
 phentermine prescription 
 lipitor 
 hydrocodone 
 xanax 
 adipex 
 vicodin 
 wellbutrin 
 zoloft 
 buy phentermine online 
 effexor 
 discount phentermine 
 cheap phentermine 
 buy phentermine 
 meridia 
 online phentermine 
 free viagra 
 buy tramadol 
 zoloft litigation 
 viagra prescription 
 effexor xr 
 phentermine diet pills 
 buy cheap phentermine 
 order phentermine 
 alcohol detox 
 viagra online stores 
 xanax no prescription 
 adipex online 
 buy valium 
 buy ambien 
 cheapest phentermine online 
 oxycontin settlement 
 phentermine hcl 
 buy hydrocodone 
 hydrocodone no prescription 
 buy xanax online 
 adipex diet pills 
 tramadol hydrochloride 
 soma carisoprodol 
 tramadol cod 
 buy soma online 
 hydrocodone online 
 herbal phentermine 
 phentermine for sale 
 tramadol online 
 cheap phentermine online 
 herbal viagra 
 adipex without prescription 
 cheap xanax 
I don't know who's behind this, but hope the reader team sees it and informs me.

Is there a Point to Google Reader Tagging?

Posted by Prolific Programmer Wed, 26 Dec 2007 09:32:00 GMT

Google Reader lets you share items and tag those you share. So, I've been faithfully tagging items every time I share them. I recently asked myself, to what end? I can't search my shared items by tag, can't splice them to show me a selection, can't get a list of items others have shared with the same tag, can't get a list of most popular tags, or, seemingly, derive any benefit from the careful tagging process I go through. So, would someone, anyone, give me any idea of what benefit it gives anyone to tag items I share?

How to Get Around Google Reader's Shortcomings

Posted by Prolific Programmer Mon, 17 Dec 2007 07:47:00 GMT

Remember I was complaining of my shared items disappearing? Well, I wrote myself a script to get them back and it's pasted after the flip.


#!/usr/bin/perl
use warnings;                                                      
use strict;
use CGI;                                                                       
use XML::Feed;              
my $feed = XML::Feed->parse(URI->new('http://www.google.com/reader/public/atom/user/08730762945348639336/state/com.google/broadcast'));                         
my $cgi = new CGI;                                                            
print $cgi->header, $cgi->start_html;
print "- <a href="".$_->link."">",$_->title."</a><br/>" foreach $feed->entries;
print $cgi->end_html;

Where are My Recently Shared Items

Posted by Prolific Programmer Fri, 14 Dec 2007 18:21:00 GMT

Google Reader has a shared items feature with an associated feed. I'm guessing it's a bug in the javascript, but I'll probably make a typo plugin for it at the weekend. Anyone know what happened? Let me know.