ginkgo's comments

ginkgo | 14 years ago | on: Show HN: Write a sort, watch it go

The input set is problematic because it contains every number from 0 to VA.length exactly once.

This allows "algorithms" like this:

  for x in [0...VA.length]
    while (VA.get(x) > x)
      VA.swap(VA.get(x), x)

ginkgo | 14 years ago | on: Miguel de Icaza: Learning Unix

When I forced myself to learn touch-typing with a qwerty keyboard i used gtypist. I found it to be sufficient for its purpose.

The only gripe i had with it was that it required typing two spaces after a period. I found this just plain weird, so I fixed it in the tutorial files.

I guess using a blank keyboard also helped quite a bit..

ginkgo | 15 years ago | on: IBM’s Watson Now A Second-Year Med Student

Actually, this seems like the perfect opportunity for pharma companies to "help" in creating the database.

That's actually what they are already doing when pitching new drugs to doctors. Now they only have to convince the system designers and not thousands of practicing doctors.

ginkgo | 15 years ago | on: "The worst algorithm in the world?"

My personal favorite has always been permutation sort, where you try all possible permutations of a sequence and check if it is sorted.

What's nice about it is that it is deterministic yet ridiculously slow.

It can also be really easily implemented in Prolog[1] where you simply define what a permutation and being sorted means. After that you just search for a sorted permutation.

[1] http://rosettacode.org/wiki/Sorting_algorithms/Permutation_s...

ginkgo | 15 years ago | on: Introducing Gofix

If the python project had something like that, the current python 3 situation could maybe have been avoided.

ginkgo | 15 years ago | on: Meet America's Money Destroyers

Call me paranoid, but I don't like the idea of all my money transactions being traceable. It's less that I worry about my bank or government but about, for instance, super-market chains linking my buying-behavior to my bank account or card number.

ginkgo | 15 years ago | on: Why T-shirts matter at tech companies

Especially in hot weather I actually prefer short-sleeved shirts to t-shirts. The tightly woven, thin fabric of a shirt does not stick as much to the body as a t-shirt. Though I have to admit, that I have never been to Australia in summer. And a suit would definitely be out of the question for me as well during the hot season. :)

ginkgo | 15 years ago | on: Chinese Infinite Magical Hard-Drive

How could a program work that can detect such scam-drives? As long as we don't care about crashing the formatting, at least.

It could work by writing a specific pattern in the first few bytes of the device and then reading/writing in 2^n steps to check if the pattern cycles.

I think I have some counterfeit thumb-drives lying around. Maybe I will try writing something like that..

ginkgo | 15 years ago | on: Python is now Python 3

This update broke the python-cheetah package which I was relying on.

For now, I have to use a self-compiled 2.6 python package. I have locked the python and python2 packages from further updates for now. I hope this situation get better soon.

ginkgo | 16 years ago | on: How Grandmas May Play Favorites

The sex determining chromosomes are just two among 23 chromosome pairs in the human genome.

All the number-play in the article is completely pointless.

page 1