Better HN
topnewbestaskshowjobs
Log inSign up

nathell

6,186 karma · joined Apr 18, 2010 (16y ago) · 920 submissions

Just another Clojure hacker.

https://danieljanus.pl

meet.hn/city/52.2319581,21.0067249/Warsaw

Submissions

comment 12y ago · link · parent

For Linux, I've always been using MOC [1]. Lightweight, supports all the formats I need, and has a great console UI.

[1]: http://moc.daper.net/

comment 12y ago · link · parent

"All OS and app configuration data in OS X and iOS are XML plist files, even GNU emacs and X11.org's preferences!"

Naming correctness aside (it's X.org), can this be backed somehow? I remember using Emacs on OS X and I very much was storing my configuration in ~/.emacs.d/, the way it should be. The idea to have a unified configuration format for the entire system is glorious in theory, but with a system as heterogeneous as FreeBSD (and Linux even more so), it seems next to impossible in practice.

comment 12y ago · link · parent

Or this: http://linguacuriosa.blogspot.com/2009/10/german-for-beginne...

comment 12y ago · link · parent

The term "TfL station" is unclear. Technically speaking, London Overground stations are operated by LOROL as part of the National Rail network. LOROL is not owned by TfL but merely operates under a TfL franchise. As such it would be nice to see this enhanced with other rail stations and operators within London.

That being said, this looks useful, thanks!

comment 12y ago · link · parent

Not in some states of India, where drinking age can be as high as 30 in certain districts: http://en.wikipedia.org/wiki/Alcohol_laws_of_India

756.

Polish MP on Tim Cook: “I'm glad he accepts his misfortune with divine humility”(translate.google.com ↗)

2 points · by nathell · 12y ago · discuss

comment 12y ago · link · parent

Did anyone mention McDonald's, the real estate company that also happens to be making hamburgers, yet?

http://money.howstuffworks.com/mcdonalds.htm

comment 12y ago · link · parent

The default tagset that this employs is much more coarse-grained than the Penn tagset. For example, it has only two verb tags, whereas Penn has separate tags for infinitives, gerunds, past forms, etc. On the other hand, it supports the peculiar kinds of lexemes that abound in tweets, having separate tags for hashtags, @-mentions, URLs, emoticons, etc.

Twitterese English is very different from standard English, and by taking the dedicated-tagset approach that embraces this fact, the authors were able to accurately attribute structure even to text that appears gibberish at first sight. To me, this is very impressive.

comment 12y ago · link · parent

Ah, Nu Pogodi. The handheld everyone played in rural Poland around 1990. This one mimics the look-and-feel of the original rather well, but, sadly, I have yet to see a clone that faithfully implements the gameplay of the original.

From memory (remember that I was only 6 back then, so I might have screwed up some things):

* There were two levels of difficulty, denoted "игра А" and "игра B" ("game A" and "game B"). The A version was easier: in it, the bottom-left roost was disabled and eggs would never fall off of it. In game B, all four roosts were in use.

* There were multiple stages of the game: - Score 0 to 5: only one egg falling at any given time, the next egg appears only when you catch the previous one - Score 6 to 20 (?): two eggs active at any given time - Score 21 to 50 (?): three eggs active at any given time

And so on, up to a limit of, I think, six or so at a time, at certain thresholds. Also, at certain score thresholds the game speed would accelerate. I think this didn't start to be noticeable until the score of 200 or so; by the time you got to score 500 falling eggs would become moderately fast, by score 700 quite fast, and getting past 800 or even 900 would require your fingers to be extremely snappy.

* If I remember correctly, getting past 999 would cause the score to wrap back to 0 and the speed to wrap back to as slow as at the start, but you wouldn't get three lives back and you would still have six eggs to catch at a time. I managed to do this only a few times ever; I think my high score ever was approximately 1050-1100, and average score might have been around 700-750. This was in game A, which I mostly played.

* Also if I remember correctly, the order of falling eggs, at least in the beginning phase of the game, was deterministic (top-left roost, then top-right roost, then bottom-left roost (skipped in version A), then bottom-right roost, and so on). The order of subsequent eggs was probably deterministic as well, but this wasn't noticeable anymore. The initial roost might have been chosen randomly.

760.

Celebrate Programmers' Day: dust off your old program and put it on GitHub(blog.danieljanus.pl ↗)

4 points · by nathell · 12y ago · discuss

761.

Little Bobby Tables comes to life for real, in Poland(prod.ceidg.gov.pl ↗)

37 points · by nathell · 12y ago · 3 comments

comment 12y ago · link · parent

> In Poland, if you wanted to eat only in restaurants, that would cost you about $1000/month.

It is possible to go much, much lower than that if you are willing to prefer eateries/milk bars over proper restaurants. It is very much possible to have a hearty, filling, two-course lunch in downtown Warsaw for $4.

comment 12y ago · link · parent

Location: Warsaw, Poland (London, UK until 17 August)

Remote: yes

Willing to relocate: no (although will consider attending monthly meetups around Europe)

Technologies: Clojure, Java/JVM, Common Lisp, C, OCaml, Python, SQL, and more

Resume: http://danieljanus.pl/cv.pdf

Email: dj@danieljanus.pl

comment 12y ago · link · parent

Also where is 'Who wants to be hired'?

comment 12y ago · link · parent

Just go eat something.

comment 12y ago · link · parent

There are also three Impact Hubs, in Westminster, King's Cross and Islington [1].

If you have an eduroam account (most likely by virtue of being a student, not necessarily of a UK uni -- my Warsaw University alumnus account works), then the LSE library is also a very nice place to hang around. Cheap on-site coffee, too. (Edit: probably not good for a startup though as it's harder to talk freely.)

[1]: http://westminster.impacthub.net

comment 12y ago · link · parent

Clojure has -> specifically to facilitate writing pipeline code that doesn't read backwards.

768.

Hello(greaterthanorequalto.net ↗)

2 points · by nathell · 12y ago · discuss

comment 12y ago · link · parent

In some cases, coloring over parts of the image might still not be enough. Specifically, when all of the following are true: (i) the domain of possible entries is reasonably small (e.g., a number or a name and surname), (ii) the text is printed in a proportional (not fixed-width) typeface, and (iii) enough of the rest of the line is visible to infer the font size and kerning settings.

comment 12y ago · link · parent

I've always linked to line numbers under specific commits or tags. Didn't know about the 'y' shortcut though, very helpful.

comment 12y ago · link · parent

>That's taller than the highest mountain in Spain.

Not quite, unless by "Spain" one means "continental Spain." Spain's tallest is Pico del Teide on the Tenerife, measuring 3718 m from the sea level.

comment 12y ago · link · parent

In homage to Gene Wolfe's "The Book of the New Sun", I propose it be called "fuligin."

comment 12y ago · link · parent

Interestingly, Leiningen is very much usable as a Maven replacement even for pure Java projects. I've tried it, it works fine. Just specify :java-source-paths in project.clj, and you get all the goodies like lein uberjar for free.

comment 12y ago · link · parent

For anyone interested in Infocom and the Z-machine, Graham Nelson's "The Inform Designer's Manual, edition 4" [DM4] is an indispensable resource. In particular, it includes a detailed chapter on the history of interactive fiction, an edited version of Nelson's earlier article "The Craft of Adventure."

[DM4]: http://inform-fiction.org/manual/

comment 12y ago · link · parent

Not necessarily; that depends on one's particular arrangements. I, for example, get paid approximately mid-month, so I start out indebted to the company each month and the balance gradually shifts over time.

comment 12y ago · link · parent

A similar if not same thing: http://ubuntuforums.org/showthread.php?t=2203663

comment 12y ago · link · parent

There also was Volkov Commander and DOS Controller. The latter is notable for managing to pack all the essential functionality of NC into a self-contained single .COM executable weighing in at less than 50KB.

comment 12y ago · link · parent

Tangentially related: Peter Norton didn't write Norton Commander. The original author was John Socha; the only thing NC has in common with Norton is the name and the Peter Norton Computing brand.

As to Midnight Commander: it works well enough for me. The lack of smoothness, such as function keys or ESC not working at all times, is mostly due to the quirks in Unix itself and is no fault of MC per se.

comment 12y ago · link · parent

The thing is that it's not huge. A packed in-memory representation should still be easily traversable and take up less than the space of a plain list of words. See also http://sun.aei.polsl.pl/~mciura/publikacje/lexicon.pdf for more ideas about in-memory lexicon representation.

comment 12y ago · link · parent

When you are building a Scrabble engine and need to construct the list of potential moves, GADDAGs come in handy as you are able to "cast" your search from subgraphs "anchored" at letters already on board.

A sample implementation (in not very idiomatic Clojure, not touched in years, and using DAWGs instead of GADDAGs): https://github.com/nathell/spleen/blob/master/src/pl/danielj...

1
252627
31