HNHacker News
TopNewBestAskShowJobs

pavelkaroukin

164 karma · joined September 21, 2011

submissionscomments
pavelkaroukin··on Perl Unicode Cookbook
I love to develop with perl, but unicode-related stuff was always frustrating for me. Probably because I deal with it so rarely and everytime I have to look documentation to find out how to read unicode file, run regexps on unicode strings, etc.

I am wondering, how other major languages deal with unicode? Is there language which work with unicode files/text transparently without /me involving into setting something differently from defaults?

pavelkaroukin··on Comparing PHP, Perl, Python and Ruby
there are quite a few options for syntax already in the mix, that people noticed already. If we will add DB-related stuff, it will confuse even more - too many options available in each language.
pavelkaroukin··on Modafinil and Startups
I bought pack of generic modafinil (do not remember exact brand). It was manufactured in India.

It had no effect on me. I tried up to 4 100mg pills at once (i.e. I started with half table one day and each day increasing dosage). Although, I also suspect it might be a fake, since I was buying from some online "pharmacy". Provigil both too expensive and require doctor's approval.

Just found about piracetam, thanks to this thread. just ordered :)

pavelkaroukin··on How Exercise Fuels the Brain
I have quite weird view on physical exercises, so for me seeing why it work this way and understanding what is going on in the brain during work out helps.
pavelkaroukin··on The myth of the eight-hour sleep
You are lucky :) Some math - 1 hour a day less sleep than "normal" people give you:

1 hr * 365 days / 24 hours in day ~ 15 days.

And these are 24hours day. What it really should be:

1 hr * 365 days / (24 hours in day - 6 hours you sleep on average) ~ 21 days.

Which is, well, in office terms, work month :) congrats, you got 1/12 life for free :)

pavelkaroukin··on The myth of the eight-hour sleep
It is even more weird than that. From my and some friend's experience: if you sleep more then 9 hours straight, instead of usual 6-8 (this happens on weekends usually), I feel really terrible in the morning - not being able to get out of bed, but in the same time not being able to sleep. Finally when I get out of bed - I feel really trashed for next several hours.

So it is not just less than 8 hours makes things worse, same applies to more then 8 hours. So it is either I have to sleep 6-8 hours only, or I have adapted to this schedule so well, that anything else makes me feel terrible.

On the other hand, I have handful examples of me traveling with few flight changes, timezones changes, more than 30 hours in flights/airports, and after getting to my destination I spent full 16 hours day working or meeting with friends just fine. May be a little dizzy. And after consequent 8 hours sleep night - feel great next day.

This suggest, that it (8 hours sleep requirement) is more than just a something "hardwired" in to human's body...

Yes, sleep is weird.

pavelkaroukin··on The US recording industry is stealing from me
Nobody sent DMCA claims in this case (at least, this was not covered in the story). It is Youtube's automagic copyright-infringement-detector falsely labeled one of author's genuine clips as something using copyrighted material.

Author need contact Youtube in this case to fix this.

pavelkaroukin··on The shutdown of library.nu
It you truly believe this is right to give users from countries where you can not sell, use your software for free (not stealing/pirating), just give away free license once they could confirm they are from these countries. This way I do not have to pirate/steal it, and you got distribution in country where otherwise your software would not be presented.

I've seen this model, often with russian companies giving away their software for free to russian customers (only versions with russian interface) and selling software for real bucks for everybody else. I do not see a reason why this could not be adapted.

But! Adobe, Apple, etc countries do not want to give their software for free. It will damage their brand and/or dilute user base. And it is their right to limit whom they want to sell/give software, and to whom - not. And you can not justify stealing software by the fact owner do not allow you (for any reasons) to buy it.

Use opensource software if you are limited in buying options. Do not steal!

pavelkaroukin··on The shutdown of library.nu
Well.. I tried to make two points =)

- there are no excuses for stealing property - if your country is excluded from worldwide business, it is your problem first of all, not company's, which have problems selling in your country.

pavelkaroukin··on Youporn.com is now a 100% Redis Site
Thanks.

  Tomorrow our site, with over 100 million page views per day, will be relaunching running on Symfony2.  This is a complete rewrite.  Prior to that it was running the Catalyst Engine written in Perl.
pavelkaroukin··on The shutdown of library.nu
We have similar problems in Belarus. I can not talk for Iranians, since it might be different there. But in Belarus, country close to the center of Europe continent, located on intersection of major roads between east and west, we are in a quite similar position. No PayPal, no Apple, even Microsoft is represented only via Ukrainian office (i.e. office located in another country!)

And this happens there because people do nothing about it. We have corruption there, presidential clan, which holds most of valuable businesses out there (oil refining, minerals extraction, weapons trade). I've been there, I had an great idea, that together we can change situation, get new government, build businesses. But after 2 years I realized - simply nobody care.

Let put it this way - If I live in bum's family, should I blame fancy restaurant management for not giving me access to it? Probably, no. Same case with Belarus - it is not an excuse for pirating software. Instead, Belorussians should fix their country first.

And in the mean time, if you really need to make work done, there is bunch of open source software. Use it. It might sucks comparing to propriate ones, but you can use it to make work done. There is no excuse for stealing.

pavelkaroukin··on Youporn.com is now a 100% Redis Site
AFAIK, it is Perl project. And I remember seeing it showcased at Catalyst website, so it likely built on top of Catalyst Framework
pavelkaroukin··on Rich Dad Poor Dad... Worst Personal Finance Book of All Time?
The thing is - there is no recipe to become quickly wealthy. Everyone will have their own road and no one can use someone else's experience to get to the same place.

What this book gave - overall excitement about possible future, that's it. It should not motivate, not educate.

pavelkaroukin··on Perl: When DWIM Doesn't
Both OPs examples would be spotted by unit tests and finding actual bug after that is quite trivial.

So I agree, you can trigger some features unpredictably, but this just shows power behind tool and remind you to be well self-organized =)

pavelkaroukin··on Perl: When DWIM Doesn't
This is a feature, not a bug. And this is not _requirement_, it is up to you to use it. You are always free to pass parameters the way it would not happen..
pavelkaroukin··on Show HN: my database engine for GPU
antonmks, did you consider using OpenCL instead? If yes - why CUDA outweighed it?
pavelkaroukin··on Linux Package Manager Command Line Comparison
Could you please elaborate or give a link to article(s) about why aptitude is better?
pavelkaroukin··on United States Postal Service tries to compete with Google using fear
I receive bunch of scam letters in to my mailbox. One looked like official gov printed notification and started with words "You might be subject for 5 years in prison" and then smaller letters "if you prevent delivering this mail". And then actual ads - extend warranty of your car..

Same goes about "won tickets to cruise" with phone number where they offer you to buy something...

So in this regard USPS is not better then email. It is just happened that sending bio hazardous stuff is expensive through snail mail..

pavelkaroukin··on United States Postal Service tries to compete with Google using fear
From what I understand, all spam in mailboxes appear from cooperation of USPS with advertisers, since most ads do not have any address stamped on it. So it looks like USPS actually distribute spam.
pavelkaroukin··on United States Postal Service tries to compete with Google using fear
And how it works after that? USPS just return mail to sender with no questions asked? I recently bought a house and also receiving bunch of mails. Once - check for few hundreds of some refund from some utility company. Thanks I had contact info of previous tenant, so I could mail it to him (never got a thanks letter :))
pavelkaroukin··on Judge: Fifth Amendment doesn't protect encrypted hard drives
Only if lawyer is USA based this might make him commit a crime. But what if lawyer based in the country where forcing to reveal password is unlawful?
pavelkaroukin··on Judge: Fifth Amendment doesn't protect encrypted hard drives
BTW, hackers, if you did not see it yet, check out what EncFs offer you. Essentially, it allows you to have multiple passwords on the same repository, and only files decryptable with currently used password are shown (require special option during mounting to ignore incorrect password warning).

Using that you can have any number of passwords and any number of "partitions" inside your folder. This is not like hidden partition in TrueCrypt, where you can not prove it exists at all.

pavelkaroukin··on Judge: Fifth Amendment doesn't protect encrypted hard drives
What if lawyer-based service is created, which allows to automate representation of client including when client need access to data on the his hard drive. Essentially, develop algorithm allowing external OTP authentication.

And this lawyer, representing user, will have in agreement something like this "In case my client is under investigation or incriminated or ..." I will not be allowed to release OTP password.

Of course, this service will be based in country which treat law as a law, not inconvenience.

What I am missing? There are no such countries may be?

pavelkaroukin··on ESR: The Smartphone Wars: CyanogenMOD Rising
Jailbreaking should be compared to "rooting" in android world. And only fraction of users who rooted their phone install CyanogenMod.

What do other users, who rooted their phone? I, for example, installed OpenVPN. I had to have "su" access in order to do that. But I do not plan to install CyanogenMod any time soon simply because of lack of the time.

So... 1 million of Cyanogen users is pretty significant number in fact.

pavelkaroukin··on Command and Conquer – Programming an RTS game in HTML5 and Javascript
All these are minified versions. I believe these were kept in place with different version number attached to be able to quickly switch between, not for version control reasons.
pavelkaroukin··on The anatomy of a ripoff
My wife recently had some tests done. Hospital's receptionist forgot to add insurance information to wife's profile, so accordingly to hospital's records she was uninsured.

Month later we receive bill for ~$1,400. After quick googling we find that if she would go to any local hospital and pay up front with cash, it would cost her maximum ~$400. Obviously, she went back to hospital to find out what's wrong with them (hospital owned by insurance company, so it is very wrong). There they found they did not record her insurance info, excused and said they will send corrected bill.

Month later we received her new, corrected bill. $74.68

You guys in USA have something very-very-very wrong with health care industry =)

pavelkaroukin··on UK Government Betrayal of Open Standards Confirmed
IMHO, these are not the only reasons you should be worried about. Pushing more microsoft proprietary software into local government means more your tax dollars will go to usa (not to usa government, probably, since there are so many tax schemes available).

On the other hand integrating open source software in organizations usually done with help of local companies, meaning your tax dollars spend on work your neighbor do. Since in this case you are not paying for "product", you are paying for integration of open source software. (as a bonus, it often also saves bucks on software products, even if you pay more for integration/training).

ps: not saying that during process of integration of open source software often changes/bug reports/feedback contributed back to open source community, which benefits all people...

pavelkaroukin··on Being recruited in the USA
Probably too late to ask, but how USA enforce this BS?
pavelkaroukin··on Ask HN: How can I self-evaluate my programming skills?
Offtopic, but since I see you lean more toward OO - look into perl's Moose. There are few presentation on Moose basics out there. Especially, look for Roles/Traits.
pavelkaroukin··on The Real Story On That "Antidepressant Surge"
benvanderbeek, I am really sorry to hear this and trust me I was not speaking about situation like yours.

There is huge trend to consume meds when body mostly healthy, or reason why some health issue was caused by neglecting it.

Your situation totally different - I agree. As a comparison: when I had my appendicitis removed I _had_ to get anesthesia, 'cos otherwise it would be too big pain.

← PreviousPage 2 of 4Next →