Two tutorials I just finished up and learned a shit-ton from.
First one is on making a GUI with Glade, then tying it in to a Python app.
http://www.overclock.net/application-programming/342279-tutorial-using-python-glade-create-simple.html
Second one is on object oriented programming with Python, something I’d never understood until now.
http://www.devshed.com/c/a/Python/Object-Orientation-in-Python/
(note: both tutorials are kinda unclear at some points, so you actually have to use your BRAIN. I hope you don’t mind.)
I found this on my computer. Don’t know where it’s from, but it’s obvious that it’s a challenge to make it better. Have fun?
For the first time in my life I’ve used my programming skills to solve a real-world problem.
Problem: I needed an automatic wallpaper switcher that didn’t suck. The best I could find was Drapes, but it one major flaw: you could only select one global display property. So they were all zoomed, or all cropped, or all tiled… this was bad.
So, here’s mine! A hardcoded piece of shit, but it works! You’ll need easygconf — easiest way is to install is to download python-setuptools (in Ubuntu: sudo apt-get install python-setuptools) then run: sudo easy_install easygconf. You will also need this daemon creation library.
Also, a note. I implied above that my tool provides per-wallpaper display settings. And, well… I think it does. I say think because it seems that if you set your preference through Gnome’s standard wallpaper selector, my app will pick it up. However, it does seem sporadic at best, so I will improve on this. maybe a dictionary, or a list of tuples… maybe I’ll even get fancy and use a sqlite database!
Since it turns out wordpress has a bug that’s over two years old that blocks use of code tags, here’s the file on Pastebin. Enjoy!
Just bought almost eighty dollars worth of fireworks. I… have no self control.
WordPress is being weird. I upgraded it and now the javascript throughout most of the admin area is not working. Makes navigating a tad bit difficult. I re-uploaded everything, cleared my cache, etc. — but still no luck. I installing it locally on my computer, and it works fine, so it’s not a problem with wordpress itself. So yeah. No idea.
Well, about that list of survivalist-related stuff I was going to do… as of yet, my biggest accomplishment is replacing my shoelaces with class 3 paracord that can hold of to 550 pounds. I also have begun carrying a knife and LED headlamp in my backpack. I’ve been meaning to pick up some razor blades so I can try out the credit-card knife, but I haven’t yet. I tried making a padlock jimmying shim out of a popcan, an endeavor that failed miserably.
I applied for a job at Wal-Mart. My application was accepted, but who knows whether they’ll ever get back to me. I expect that in this economy there’s a lot of people looking for work.
I’ve started work on a game — an isometric action RPG with zombies and guns. It’s written in Python/PyGame. Oh, speaking of games, I still haven’t uploaded my breakout game yet. I did finish it (mostly) but I’ve just been so lazy… well, the shirt I’m wearing says it all: Genius By Birth, Slacker By Choice.
Into Mudkip!
Wait, no…
Here’s the deal: I was working on a game. It was written in C, utilizing the PAlib library — it was going to be homebrew for the Nintendo DS. That was then. A few weeks ago, I said something along the lines of: “WHAT THE FUCK ARE POINTERS? WHAT THE FUCK IS GOING ON? WHY THE FUCK IS FAT LOADING SO FUCKING HARD? WHO THE FUCK DESIGNED THIS SHIT? WHY DOES MY PSEUDO-CODE LOOK LIKE PYTHON?”
It was that last bit that pushed me over the edge and got me back into Python. I’d been writing pseudo-code to work through difficult parts of my game, and then there was one day when I looked at what I had on paper compared to the C on my screen, and I realized… this ain’t pseudo-code, this is Python! So I brushed up on my Python skills (what there was of them) and jumped into Pygame.
I’ll have an alpha version posted within a few weeks. Hopefully.
Oh, and regarding the art direction — since I’m such a crappy artist, I decided that the entire game will be drawn in vector art. Think Geometry Wars and you’ll know what I’m going for.
Oh, and one more thing… I wrote a very short screenplay that I hope to film sometime soon. Link here (PDF, 63 KB).
Recent Comments