Category Archives: Uncategorized

jQuery without a DOM

If you’re ever using jQuery without a proper DOM, you may want to use this. It provides enough of a DOM-like syntax to suffice. (Literally, this is every function which jQuery calls on the DOM directly (assuming no selectors). I … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Big-O is important, damn it!

A fried of mine recently complained that they sent his package east to send it west, and if they only sent it west it would be faster. My response: The process is local post office -> central hub -> local … Continue reading

Posted in Uncategorized | Leave a comment

McCarthy’s Lisp

So, I got no sleep last night due to a client project. Profitable, but exhausting. Not wanting to have a Monday go by without a post, however, I thought I would comment on McCarthy’s original definition of Lisp, which is … Continue reading

Posted in Uncategorized | 5 Comments

Cleaner HTML (strip_tags in Python)

So, in PHP there is a function strip_tags. It’s pretty neat. It lets you remove all HTML tags from a given string except for the specified ones. Python doesn’t have this and, based on what we saw on Monday, it … Continue reading

Posted in PyFram, PyFram tutorial, Python, Uncategorized | Tagged , , , , , , , | Leave a comment

Does gamification really work?

So, the most recent stackexchange podcast talked a lot about the “Stackoverflow game”. One commenter believes that this is not the best idea. I disagree. Lend your voice to the conversation: http://blog.stackoverflow.com/2011/10/se-podcast-23/ Or, if you like, you could leave a … Continue reading

Posted in Uncategorized | Tagged , | 2 Comments

User input, part 1

So, eventually, you’ll want to actually get input from users for a web framework (far be it). The most obvious way that you can get user input is through something called “GET” variables. If you have ever looked at the … Continue reading

Posted in PyFram, PyFram tutorial, Uncategorized | Tagged , , | Leave a comment

PyFram: Let’s make a view class

So, I don’t know about you, but this looks a little on the ugly side: #!/usr/bin/env python3   print("Content-type: text") print() print("hello world") I mean, it gets the job done, but I really would prefer something more… elegant. So, I … Continue reading

Posted in PyFram, PyFram tutorial, Uncategorized | Tagged , | Leave a comment

Google on JavaScript

Google looks like it is trying (justifiably?) to undermine JavaScript in favor of its own system.

Posted in Uncategorized | Leave a comment

Good answer to the wrong question

I recently wrote this, trying to answer one question and then realizing that it does not sufficiently address the question. So… I am putting it here because I still like ly I’ve looked into that, actually, and I have come … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Riddle for Thurs???

No legs lay on one leg.Two legs sat on three legs.Four legs got the rest. The solution to this one might be posted late Weds. or Thurs. I am studying through Tues. evening, so I can’t give a post about … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment