May 17, 2012

Delete all keys in Redis

redis-cli keys ‘*’ | awk ‘{print $1}’ | xargs redis-cli DEL

Aug 8, 2011
terakristen:

Twitter propaganda. 

terakristen:

Twitter propaganda. 

Jul 20, 2011
Jul 17, 2011

Ubuntu 11.04 - Stuttering Stinkbug

I’ve been living with an annoying bug in Ubuntu on my ThinkPad for quite a while now. If I recall correctly, it started off in Ubuntu 9.10 and has continued through to 11.04 as well. The main effect of this bug causes the mouse to stutter, even when the system is idle. This bug reported on launchpad describes the stuttering as a result of kslowd spawning multiple instances and pegging CPU time. This bug was prevalent throughout 2.6.35-* versions of the Ubuntu kernels.

In the 2.6.36-* variation, kslowd was renamed to kworker and contrary to what others have reported, in my experience, the problem worsened. No fix was in sight yet. Even in today’s latest 2.6.38-* series, many users have reported kworker processes pegging enormous amounts of CPU time, rendering the system useless for a few seconds ever so often.

A fix that worked for me involves disabling the poll parameter of the drm_kms_helper kernel module. You can try out the fix by executing:

# echo N > /sys/module/drm_kms_helper/parameters/poll

If it works out well, you can make the fix permanent by adding the following line to your /etc/modprobe.d/local.conf

options drm_kms_helper poll=N

Good luck!

Jul 17, 2011

TwitSprout Blog: Unplanned Downtime

twitsprout:

Our gnomes took an unscheduled vacation…

To our (super-awesome) TwitSprout Beta Team,

I wanted to let you know that TwitSprout experienced some unplanned downtime during Thursday July 14th and Friday July 15th.

What Happened?

Everything appeared calm on the surface, your private invite…

Jun 28, 2011

A List of People Who Need to Stop Writing Software

Sony
New Sony laptops come with two pages in the Add/Remove list of just Sony junk.
They are also the authors of one of the worst pieces of software ever, SonicStage.

ISPs
I pay you to put a cable in my house, and let me send things up and down it; no more.
I don’t want your useless anti-virus products. I don’t want your “Desktop Help” applications. I don’t want your tray icons. I don’t want your proprietary browsers. I don’t want an e-mail address with you. I don’t want your website as my home page. I don’t want your help when I typo a domain name.

Symantec
Somewhere along the line you decided to protect people from their own computer, rather than protect the computer itself. You have never once written a piece of software that didn’t slow a machine down to a painful crawl. Every machine I have come across that has had Norton on it, has had a virus and multiple spywares still there. Your product is so bad, its own uninstaller does not work. You sell a false sense of security, nothing more.

McAfee
Your product is slow, useless, impossible to configure and relies upon passwords, activation and Internet Explorer just to do its job. It fails on every level.

Printer manufacturers
A Printer driver is a folder with one ‘.ini’ file, and a couple of ‘.dll’s and that’s it.
It is not a 50 MB download. It is not an IE Toolbar, and Side Pane. It is not half-baked photo software. It is not a splash screen when your computer starts. It is not a tray icon.

Yahoo
If Microsoft bought you, your software would actually improve.
The Yahoo Toolbar is like AIDS. You have to be careful what software you download, otherwise you’re bound to get it from one of them along the line.

Nokia, and other phone manufacturers
You seem to be under the impression that you are the only piece of software on the computer. You’re happy to rear your ugly face at every boot. You make a simple thing like syncing seem like surgery. Your software is so unwieldy, it’d be easier to take up origami.

nVidia and ATI
A graphics card driver drives the screen. It does not include two context menus and a tray icon that handily reminds you that you don’t have an SLI configuration every time you boot. Your configuration options shouldn’t be so complex that I have to choose between a basic and advanced mode, both of which are as equally useless as each other.

AOL - http://camendesign.com/art/aol

http://camendesign.com/windows/stop_writing_software
Jun 25, 2011

twitsprout:

TwitSprout Dashboard on the iPad

We’ve made some big improvements behind the scenes that enable your dashboard to load twice as fast and maintain high visual quality when zooming on mobile devices, such as the oh so sleek iPad. Check out TwitSprout on your mobile device and let us know what you think! These videos are posted to our new TwitSprout YouTube Channel - Please subscribe to keep in touch.

Lookin’ good, iPad!

Jun 23, 2011

mod_python on Amazon Linux

It takes a few commands to get mod_python with Apache up and running on the free tier Amazon Linux AMI of EC2.

  1. Install Apache and mod_python
    yum install httpd mod_python
    
  2. Add python handlers

    Add the following to /etc/httpd/conf.d/python.conf

    LoadModule python_module modules/mod_python.so

    <Directory "/var/www/html">
        Options Indexes FollowSymlinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
        AddHandler mod_python .py
        PythonHandler mod_python.publisher
        PythonDebug On
    </Directory>


  3. Add a script to serve

    Create a file /var/www/html/my.py and add the following code to it:

    def index(req):
        return "Hello World!"
    
  4. Access the file using http://my-ec2-address/my.py (make sure port 80 is open on the EC2-firewall)

And done!

Jun 21, 2011
today:


Emperor penguin found far from Antarctic home
Aquatic bird likely took wrong turn while hunting, expert says, ended up stranded on New Zealand beach.

Hey, where did everyone go?

today:

Emperor penguin found far from Antarctic home

Aquatic bird likely took wrong turn while hunting, expert says, ended up stranded on New Zealand beach.

Hey, where did everyone go?

Jun 19, 2011

Reinstall Apache on Ubuntu

This handy little shell script will reset your entire apache installation to what it was like when you first installed it.

APACHE_PKGS=`sudo dpkg --get-selections | grep apache | cut -f 1`
echo $APACHE_PKGS
sudo apt-get remove --purge $APACHE_PKGS
sudo apt-get install $APACHE_PKGS

Worked on Ubuntu 11.04. Source: http://bit.ly/mR0bOq.

Navigate
« To the past Page 1 of 2
About