There is an interesting thread on reddit titled: "When did you realize that you were an adult". I still feel that I haven't quite reached that realization yet. I've come close though.
Sir, Can I shake your hand?
Honey, do you realize you are all over the place? I have no idea why you are telling me this.
I hate them with a passion. When I see people sitting there trying to formulate sentences for no apparent reason but just to fill the void of silence, it just boils my blood.
how Larry Ellison actually got efficiencies from teams. If a team wasn’t productive, he’d come every couple of weeks and say “let me help you out.” What did he do? He took away another person until the team started shipping and stopped having unproductive meetings.
Yosh and I have been planning to do a BSG (Battlestart Gallactica) marathon for a while now. Finally we broke down and decided instead of doing a marathon, we'll just one episode at a time with our dinner. Here's to the beginning.
I've been messing around with Python for the past 6 months and I'm loving it. Today I went to my second UtahPython users group meeting and had a lot of fun and learned a ton of stuff.
- Supy bot - an IRC bot written in Python.
supybot-doxygen - A plugin for supy bot that can provide api documentation for any software that uses doxygen.
- This could be really useful at work if I can setup an internal IRC server for the developers to hang out.
- Objectify is a module in python for parsing XML files.
- doctest - a python module for TDD that is super simple. I'm really excited about this. Thanks to Matt for showing me how to use this.
Here's the task: Write a simple python program that can take page numbers as user input and convert it to a list of numbers.
User Input: 0, 1, 5, 7-10 Output: 0,1,5,7,8,9,10
###### PrintParser.py ####### #!/usr/bin/env python def convert(inp): """ * Get the input from user. * Parse the input to extract numbers ** Split by comma *** Each item in the list will then be split by '-' **** Populate the number between a-b using range(a,b) >>> convert("")  >>> convert("1")  >>> convert("1,2") [1, 2] >>> convert("1,2-5") [1, 2, 3, 4, 5] >>> convert("1-3,2-5,8,10,15-20") [1, 2, 3, 2, 3, 4, 5, 8, 10, 15, 16, 17, 18, 19, 20] """ if not inp: return  pages =  comma_separated =  comma_separated = inp.split(",") for item in comma_separated: if "-" in item: a = item.split("-") pages.extend(range(int(a),int(a)+1)) else: pages.append(int(item)) return pages if __name__ == '__main__' : import doctest doctest.testmod()
I went to my first Hapkido class today. I have a very good (and respected) friend from work, who is already taking that class and he recommended it.