|
Friday, May 29. 2009
Wednesday, May 27. 2009
Long story long, had no way of tracking Twitter followers, wanted to have (similar to LJ Joule), so I wrote this app, with Google App Engine.
Also, I don't know how to say this so I'm just gonna say it. ...I've got a rollin' baby.
Wednesday, April 1. 2009
Everyone knows April 1st is the time to pull hilarious pranks on the Internet! Let's look at some of them!
U.S. Seeks to Drop Case Against Former Sen. Stevens
To be continued!
Monday, March 30. 2009
Long story short, I need to check an entire folder of images to see if they're grayscale. Here's a python script I just wrote that will do that, and output the results to a timestamped log file. I added some comments to explain how it works.
graycheck.py
from PIL import Image
import ImageChops
import os
import string
from time import strftime
def main():
subdir = 'C:\\pathtoimages\\'
diffdir = subdir + 'diff' # output directory if you want to save the results
badFiles = []
for subdir, dirs, files in os.walk(subdir):
if subdir != diffdir: #only check the main dir
for file in files:
if string.upper(file[-3:])=="JPG": # jpegs only
im = Image.open(file)
imGray = im.convert("L") # convert the original jpeg to grayscale and keep a copy
# need to convert back to RGB, but only if the original file wasn't already in mode L
if im.mode == "RGB":
imGray = imGray.convert("RGB")
# get the difference of the original image and the converted grayscale
# if the original was grayscale, there's no difference, so output will be entirely black
output = ImageChops.difference(imGray, im)
i = 0
for color in list(output.getdata()):
if color != (0,0,0): # check RGB black and single black value
if color != 0:
# Image is not grayscale, for we found a difference
i=i+1
print i, color
break
outputFile = diffdir + "\\" + file[:-4] + "_Diff.jpg" # output dir plus filename only plus an extension
if i==0: # image is all black, could not be blacker
badFiles.append(file)
# output.save(outputFile) # uncomment to save the results as an image - though it should be a solid black file
# print badFiles # uncomment to see the results
logfilename = strftime("%Y-%m-%d_%H-%M-%S") + ".txt"
logfile = open(logfilename, "w")
for badFile in badFiles:
logfile.write(badFile + '\n')
logfile.close()
if _name_ == '_main_':
main()
If you desire me to release this under a license, consider it released under the MS Public License.
Sunday, March 29. 2009
Somebody just threw a beer bottle at me. I didn't see anyone around, except a dog. It landed a foot from my head. If I'd seen who it was, some serious shit was probably about to go down. It's probably for the best that I didn't see who it was. Apparently you can't even take the garbage out in the middle of the day in this godforsaken town anymore.
Monday, December 29. 2008
Paper wasn't working; spreadsheets didn't work. So I designed and built a C# application to help get a perfect town in Animal Crossing.
Here is the source. I'm releasing this under the MS Public License.
Monday, December 22. 2008
The internet just somehow bores me to tears. Or maybe I just don't find anything interesting. Nonetheless, I have nothing to share today.
Shooting people on the freeway?? Next thing you know, somebody's going to be driving through the mall! ...Oh.
I find unicorn missing the ark jokes incredibly trite. Just like the Old Testament.
This is how I feel lately. Like my life died at the party, and now I'm just scribbling rudenesses on its forehead. With a Sharpie, no less.
beautiful downtown Burbank!
man I bet an awesome superpower would be the ability to manifest new pairs of pants
also pizza
but not made of denim, probably crust and standard toppings
magical pepperoni!
for whence does said animal come
pepperonispace
Restart your horse to continue getting important updates
Pressure mounts for Microsoft to deliver with Windows 7
Wow. hey I'm a predict the future guys
look
hey guyysssss you're not lookinnnnnnnnnnnn
Pressure mounts for Microsoft to deliver with Windows 8
Pressure mounts for Microsoft to deliver with Windows 9
Pressure mounts for Microsoft to deliver with Windows 10
Pressure mounts for Microsoft to deliver with Windows 11
Giant space babboon rapes Jupiter, Neptune spared
Pressure mounts for Microsoft to deliver with Windows 12
You know what's never comin back into style? The handlebar moustache. Give it up. It's over.
Friday, December 19. 2008
Ok so I missed days already. It can't be helped. Helped it cannot be .. by me. Sometimes certain things have to fall away because of other things. And this week, I had other things.
My throat has been vaguely swollen for a few days, and it sucks. It constantly feels like I can't breathe, or I'm going to suffocate, or something. Makes it harder to swallow. And I already have problems with that. Plus, life sucks. And my leg itches. So there's that.
Yourtub video of the moment:
Tuesday, December 16. 2008
As you can tell, I never post much anymore. But I'd like to. I think I've come up with a way to come up with topics daily. But, we'll see. I'm going to try to post something at least every day, whether it's a picture, a line, a link, a whole chapter, anything. I won't count this one.
Monday, December 15. 2008
I'm playin Animal Crossing for like the third time, Wii version this time. If you want my digits, jus holla.
Is Animal Crossing for kids? Maybe.
Is it fun meeting up with some weirdos from the internet and then watering each other for like three minutes?
Definitely.
Friday, December 12. 2008
It seems Google thinks I carve out a good "propane in my urethra" niche, as people keep coming here from those search terms
If you did, welcome! I ... don't know what you're doing here
But this is as good a place as any to be when you're searching for the text of a two second joke from an old cartoon
Wednesday, December 10. 2008
Some amusing things I've seen from today's big update.
Some guy on a bike in the middle of nowhere in the middle of the day
View Larger Map
An old lady staring daggers into the Street View camera in Herrick, IL
View Larger Map
No explanation required
View Larger Map
Wednesday, December 3. 2008
I just thought of a great idea for a book: "Best-Case Scenario Survival Handbook"
Example: You win the lottery. Then, all your enemies are hit by a bus. I'll show you just exactly where to spend your millions, and what to wear to their funerals. Hint: it's not where - or what - you're thinking.
edit: OH MY GOD IT EXISTS ALREADY >: [
Thursday, November 6. 2008
do you think Obama will tell us about the aliens
Wednesday, November 5. 2008
I TOLD THOSE FUCKS AT THE LEAGUE OFFICE A THOUSAND TIMES THAT I DON'T ROLL ON SHABBOS
|