HNHacker News
TopNewBestAskShowJobs

xentronium

2,418 karma · joined April 11, 2010

Rubyist from Russia.

email: me@markabramov.me

submissionscomments
xentronium··on Ruby Tips Part 4
Be careful with Array() since it uses #to_a method whenever it exists. As such, this trick is unsuitable for array of hashes (in any version of ruby) and strings (in ruby 1.8).

Other Enumerables might make for unpleasant surprise too.

Old mootools had $A method (called Array.from now) which did exactly what you expected.

xentronium··on Time to hand over the reins before Capistrano costs me my youth?
FWIW, current nokogiri 1.6.0 bundles and compiles its own libxml.
xentronium··on Pentagon Spent $5 Billion on Weapons on the Eve of the Shutdown
I don't know why this was downvoted.
xentronium··on Paying For Privacy?
If you don't use or like github features, you don't really need to pay for it. Sounds like common wisdom. OP listed points which do not define github. If you want unlimited private repos "in the cloud", just use bitbucket.

Github provides excellent interface and workflow patterns for code collaboration. I don't know, maybe for some it's reasonable to swap patches via mail, but for me hassle of downloading attachments from gmail into the right folder is just not worth it.

Also, laugh all you want, but rendered README.md and having all code at glance are life-savers. It's so much easier to get a hold of what another open source library does, if it has nicely formatted README with examples. Bonus points for gh-pages hosted docs.

xentronium··on GNOME and logind+systemd thoughts
Their dependencies are based on their feature set and their wish to get rid of some code. It's only reasonable.
xentronium··on SteamOS
I hope you're right and we won't end up with even more incoherent binary blob dumps than we have now.
xentronium··on SteamOS
It's a dual-edged sword, as being able to stream windows titles doesn't give much incentive for game devs to fully support linux, does it?
xentronium··on SteamOS
I'm somewhat disappointed. While perfectly logical for Valve, it might end up being not very beneficial for other distributions. In worst case scenario, hardware manufacturers cherry pick specific devices ("steambox") and software ecosystem to support (SteamOS) while totally neglecting all other linux distributions.
xentronium··on Not the autoworkers of our generation
Has anyone ever considered groupon as a technical challenge? Most of their personnel were salesmen, were they not?
xentronium··on Ruby Tips Part 1
Is it a statement-modifier 'unless' that bothers you? `return ... unless ...` is kind of idiomatic way of returning early in the function. You get used to this shortcut ridiculously fast.
xentronium··on Now all Windows developers have been thrown under the bus
I don't follow. RC version has been available for some time. Do they put a lot of changes into golden master?
xentronium··on Russian riot police detain eight Pastafarians during pasta procession in Moscow
Nah, it was in the online news.

http://lenta.ru/news/2013/08/17/pasta/

```

Всего, как сообщили в полиции, задержали восемь активистов, которых доставили в отдел полиции. Пастафарианцев задерживали сотрудники ОМОН.

В задержании, как рассказал агентству пастриарх Русской пастафарианской церкви (РПЦ) Кама Паста I, принимали участие православные активисты во главе с Дмитрием Энтео, которые облили последователей Летающего макаронного монстра кетчупом.

Активисты при этом не собирались устраивать шествия, рассказал в интервью телеканалу «Дождь» епископ Домодедовский, викарий пастриарх РПЦ Макаронного пастриархата Амирджан. «Мы просто собираемся, как группа единомышленников, в сад „Эрмитаж“, пить пиво и есть макароны», — добавил он.

```

Translation:

```

As the police said, total of eight activists were detained, all of whom were delivered to the police station. Pastafarians were detained by OMON (police special unit)

Kama Pasta I (patriarch of Russian Pastafarian Church, RPC) told the agency that Russian orthodox activists, lead by Dmitriy Enteo, took part in detaining and also doused the Flying Macaroni Monster followers with ketchup.

Activists weren't planning to march, RPC bishop Amirdjan told to the channel "Dozhd". "We gather as a group of like-minded people in the "Hermitage" garden to drink beer and eat pasta" — he added.

```

xentronium··on Latvia blocking extradition of Gozi writer due to disproportionate US sentencing
Raping to a much lesser extent. Castes / tiers, yep.
xentronium··on Latvia blocking extradition of Gozi writer due to disproportionate US sentencing
Keyword: reports

In Russia you get raped and not reported. There is a whole caste system in prisons here.

xentronium··on Ask HN: I'm a chronic procrastinator – how do I break it?
It's harmful for health.
xentronium··on Snowden granted 1-year asylum in Russia, leaves airport
Yes. I don't know (and frankly, hardly imagine) of any societies without any hierarchies though. I could imagine communities with democratic collegial decision-making, but it still implies there is a way to enforce decisions, which means armed men.
xentronium··on Snowden granted 1-year asylum in Russia, leaves airport
Lesser evil principle.
xentronium··on Snowden granted 1-year asylum in Russia, leaves airport
Do you deem it unreasonable?
xentronium··on Snowden granted 1-year asylum in Russia, leaves airport
In common speech, teremok is a small wooden or stone house[1], like the one from a fairy-tale of the same name [2]. Also a name of a fast food chain. Blini = pancakes. Kvas = Russian national non-alcoholic (<1%) beverage.

[1] http://ru.wikipedia.org/wiki/%D0%A2%D0%B5%D1%80%D0%B5%D0%BC

[2] http://ru.wikipedia.org/wiki/%D0%A2%D0%B5%D1%80%D0%B5%D0%BC%...

xentronium··on Snowden granted 1-year asylum in Russia, leaves airport
So what? That's sad, but in the end we rely on existence of these armed guys to do whatever we need to do. In post-apocalyptical fantasies where government armed guys cease to exist, who would usually thrive? Organized armed guys.

At least we have some mechanisms to influence the armed guys we have now.

xentronium··on Activision Blizzard goes indie after CEO Kotick buys back the company
Hardcore D3 has (or at least had) much better economics, due to:

* no RMAH (and as such, all the good items are on sell for gold)

* and huge moneysink in the form of dying characters (as such, less gold inflation)

Also, when you play HC, leveling up your new character is so much less painful with AH. Besides, I'd just by something @ d2jsp.

xentronium··on Activision Blizzard goes indie after CEO Kotick buys back the company
Why do you say so? Sales are good, games are good, korean cybersport is finally transitioning to SC2, diablo is fine, wow is probably holding record for the most living / profitable mmo.
xentronium··on RubyWarrior - Bloc
> If there were multiple warriors then your code would no longer make sense, as the control logic would have to be changing the player_instance.warrior object.

You need to keep previous state about warrior. E.g. delta health.

xentronium··on Samsung overtakes Apple as world's most profitable mobile phone maker
Google might be slightly better as a gatekeeper, but to me they seem completely untrustworthy at this point. Between their "spring cleanings" and "open handset alliance versus android variants" debacles, I don't think we should root for google. I'd rather see somebody like Mozilla win.
xentronium··on Big-O notation explained by a self-taught programmer
Theta is much harder to type and slightly harder to write. Besides, people are trying to be reasonable about their bounds.
xentronium··on Bot wars - The arms race of restaurant reservations in SF
Wrong thread?
xentronium··on Snowden asylum still under review, stays in airport for now
> For example you don't need to be politically correct (self-censoring) when expressing your private or political views.

Right.

xentronium··on Snowden may be granted entry to Russia Wednesday
Sigh, he probably doesn't know what he is signing for. Unless one of his friends from foreign organizations is ready to employ and shelter him, of course.
xentronium··on How Emacs changed my life
> Backspace is just backspace

Unless you're on the wrong terminal. (google "emacs fix backspace")

Besides, it's really a big deal that most applications in your system use one set of hotkeys, while bash and emacs use a totally different one.

xentronium··on David Cameron cracks down on online pornography
In Russia we have a special commission that bans every internet page containing anything relevant to suicide and drugs. For example, famous australian ad "Dumb ways to die" is banned in Russia. Yeah, seriously, these guys have zero sense of humor. Apparently, it's to protect children from killing themselves.
← PreviousPage 8 of 29Next →