Google, codejam and number conversions

June 26th, 2008

The dec­i­mal numeral system is com­posed of ten digits, which we rep­re­sent as “0123456789” (the digits in a system are writ­ten from lowest to high­est). Imag­ine you have dis­cov­ered an alien numeral system com­posed of some number of digits, which may or may not be the same as those used in dec­i­mal. For exam­ple, if the alien numeral system were rep­re­sented as “oF8”, then the num­bers one through ten would be (F, 8, Fo, FF, F8, 8o, 8F, 88, Foo, FoF). We would like to be able to work with num­bers in arbi­trary alien sys­tems. More gen­er­ally, we want to be able to con­vert an arbi­trary number that’s writ­ten in one alien system into a second alien system.

(Con­tinue reading…)

0 Comments, tagged with Coding, Python

And djangodash is ended…

June 11th, 2008

And I’ve been 6th. So I won a shared 2 host­ing plan at web­fac­tion and a 12 pack of G33K B33R caf­feinated root beer (still trying to under­stand what this is exactly, anyway) from bawls. Anyway, here fol­lows a short resume of what hap­pened from Sat­ur­day through Tues­day (if you’re asking your­self why it didn’t ended on Sunday, well, keep reading).

The com­pe­ti­tion began very well, I worked nor­mally for the first part of the day but then I had to stop for a while. When I came back, svn and djan­go­dash web­site was not work­ing any­more. I ini­tially thought that it was some con­nec­tion issue but when I saw that other sites were work­ing prop­erly so they def­i­nitely had some problems.

(Con­tinue reading…)

0 Comments, tagged with Coding, Django, Python, Web

Microblogging

  • Funny thing: yesterday night I had an idea about a good blog post I could make. But now I completely forgot what that idea was about. 12 hours ago #
  • I think pownce has a little issue with caching since if I delete a message and I write a new one, it doesn't appear in my homepage. Nov 16, 6:34pm #
  • I didn't know that something like [(x,y) for x in range(10) for y in range(x)] was possible in Python. Nov 16, 3:45pm #
  • I'm about to go to the local LUG dinner: pizza for everyone. Nov 14, 9:15pm #
  • Lately I've been very interested in fast data structures with minimum memory usage. Just surprised to find out that list comprehension in Python are sometimes slower for large quantities of data than classic for loops. Still trying to understand why (if someone has a clue, please let me know). Nov 12, 12:44pm #
  • So wordpress was silently modifying HTTP request headers and I was getting a 400 when fetching Pownce RSS. Now everything works as expected on my blog, shame on WP. Nov 9, 3:58pm #
  • Experimenting with document language identification. Nov 6, 10:23pm #
  • So looks like I finally found an interesting topic apart from web development: information retrieval. Nov 3, 5:13pm #
  • Planning a trip to Bologna in December Nov 1, 5:24pm #
  • After today, I want to go as far as I can from Italy. Oct 29, 11:49am #

Search


« Authored by Giuliani Vito Ivan »