Posts tagged Python
2 years ago
Gotta love this. Here are some of the better one’s:
You shoot yourself in the foot.
You accidentally create a dozen instances of yourself and shoot them all in the foot. Providing emergency medical care is impossible since you can’t tell which are bitwise copies and which are just pointing at others and saying, “That’s me over there.”
You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception handling ability.
USE HANDGUN.COLT(45), AIM AT LEG.FOOT, THEN WITH ARM.HAND.FINGER ON HANDGUN.COLT(TRIGGER) PERFORM.SQUEEZE RETURN HANDGUN.COLT(45) TO HIP.HOLSTER.
You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds…
You shoot yourself in the foot with a water pistol until your foot is waterlogged and rots off.
You shoot yourself in the foot with a BB using a SCUD missile launcher.
The compiler won’t let you shoot yourself in the foot.
We’ll let you shoot yourself, but it’ll cost you a bundle.
You insert a clip into the gun, wait half an hour, and it goes off in random directions. If a bullet hits your foot, you’re lucky.
Object “Foot” will be included in the next release. You can upgrade for $500.
I knew you were going to shoot yourself in the foot.
You can use this machine-gun to shoot yourself in the foot, but the firing pin is broken.
We don’t sell guns anymore, just ammunition.
Just as soon as Solaris gets here, you can shoot yourself anywhere you want.
You try to shoot yourself in the foot, only to discover you must first invent the gun, the bullet, the trigger, and your foot.
After searching the manual until your foot falls asleep, you shoot the computer and switch to C.
<a target="http://body/lower-half/leg/foot.appendage">Shoot here</a>
The gun fires just fine, but your foot can’t figure out what the bullets are and ignores them.
You shoot yourself in the foot, but can’t figure out how you did it so you find a dozen new ways to do it.
You shoot yourself in the foot and everything goes so smoothly that you go ahead to to shoot yourself in the other foot then your legs, then your torso and then your head. Problem solved.
You shoot yourself in both feet at the same time with the same pull of the trigger. You have no idea how it happened, but it did.
ASP (addition by Rodney Benker)
You may load the gun and pull the trigger, but the bullet will only hit your foot if you use Internet Explorer.
pyTwit version 0.2.2 is out now. I don’t have a Windows executable in this one. The biggest change in this version is coloured text. It really makes quite a big difference. A complete list of changes for this release from the previous release is available here or in the ‘CHANGELOG’ file in the archive which you can download here.
I just uploaded a new version of pyTwit. It fixes a bug in the previous version. The ‘timeline’ command was throwing up an index error so this fixes it. Many thanks to Jeff Dimond for reporting it in the first place.
I’ve decided to call my Twitter app pyTwit. I’ve searched the Twitter Fan Wiki list of apps and there doesn’t seem to be a pyTwit yet so I’ve decided to claim the name (hey it rhymes!)
Anyways, I did a version 0.1.1 which was basically adding the functionality for posting tweets but I’ve also added many more features (like displaying multiple timelines and a command system for using the different features) and redesigned the code structure so I’ve decided to call this one version 0.2
You can check it out here. I’ve also included a compiled Windows executable in the archive for those who are unfortunate enough to be running using Microsuck Windows…me included
OK I know we really don’t need yet another Twitter app but I’m doing this to practice programming in python. This is version 0.1 so I’ll definately add more stuff as I go along.
I’m using the XML feed from the Twitter REST API. I know there are modules to process the XML feed (like minidom and sax) but I decided to write my own method for processing the feed for educational purposes. My method won’t work with any feed (yet) but it’ll work fine for the Twitter feed.
At the moment, the app will only get your friends timeline and display it for you. I’ll add more functionality later this week if I have the time. In the mean time please try it out. All comments/criticism/suggestions/feedback are welcomed.