Archive for January, 2008

Mini Searches with Answers

Thursday, January 17th, 2008

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

Python Dict setdefault method
setdefault() is like get(), except that if k is missing, x is both returned and inserted into the dictionary as the value of k. x defaults to None.

I was searching for a concise explanation of how setdefault works in Python.

The Secret to Recursion
The secret to recursion is really two things: trust and laziness. To write a function recursively, you usually only need to solve the simplest instance of the function (this is laziness.) This is called a "base case." Once you have a base case, assume …

Jython Webapp Tutorial – Part 1 – Writing Servlets in Jython
Heh, so you can use Jython for web development. Maybe I could work with Java someday.

Code Like a Pythonista: Idiomatic Python
dict.setdefault() is equivalent to "set if necessary, then get"

Code Like a Pythonista: Idiomatic Python
Excellent write up to help beginrs understand Python ideals.

Tags: , , , , , , , , ,

Mini Searches with Answers

Friday, January 11th, 2008

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

highlight.js
Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. It’s very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.

PDF Hammer – Free Web Based PDF Editor
Don’t get too excited, this is VERY limited, you can just move pages and stuff. Why can’t there be a free online version of Adobe acrobat? I think that would be an excellent product for someone to make.

Tim Golden’s Python Stuff: Use a PyTime value
Convert a PyTime value to a datetime. SQL server, and other COM junk gives you PyTime for dates, here’s how to turn it into datetime.

Tags: , , , , , , , , , , , , , , , , , ,

Mini Searches with Answers

Tuesday, January 8th, 2008

These are links associated with recent searches I’ve done. They’re not difficult enough to warrant to their own posts but still super useful.

Tire punctured on Sidewall, Is it ok to a patch or Plug?
If the puncture is on the sidewall, we feel it should not be repaired using a patch or plug or both. Why do we choose to obey this rule? We’ll, I suppose it intuitively makes sense that a patch or plug on a continually flexing sidewall will fail.

NginxNgxWSGIModule – Nginx Wiki
Here’s an esoteric Answer my searches link for you! If you want to run a Python framework on Nginx, this might help.

ie7-js – Google Code
IE7 is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.

Tags: , , , , , , , , , , , , , ,