HN user

tudborg

746 karma

[ my public key: https://keybase.io/tudborg; my proof: https://keybase.io/tudborg/sigs/2vbAUwifVSt_FMfcykfcOmyiHd9Cl_pN2y6X6WknPdw ]

Posts13
Comments54
View on HN
Why Python 3 Exists 11 years ago

So much this! asyncio was the main selling point for me, but in general, why not follow the language?

I never really understood the "rather stay with py2.7" thing. I get it with big old monolithic applications. You don't "just" rewrite those, but _every new python project_ should be done with the latest stable release.

Is anyone starting their PHP projects on PHP4? Any new node projects in 0.10? Of course not, that would be moronic.

Paying LastPass user here. Not sure how this is going to go down. TBH I'm hoping that nothing will change. Yes, the UX might not be the best in the world, but to me, the important thing is availability and security (probably not in that order). A browser extension and a decent android app is what I need, and I already have that.

Why bother when your own 4G connection could be significantly faster than sharing a 100/100Mbit with 80 other people?

I never use guest networks for that exact reason. I know that my traffic and my connection is my own, and works. Way easier imo.

Althought that might be your preference, I'm fairly certain very few people feel the same. I too want a phone that "works", but I'd never pay $1000+. I can live with some sacrifices if i can get a Good Enough phone for ~$400. And imo, OnePlus One is fits the bill quite well. I was sceptical about no SD card and the non-removable battery, but when the battery lasts for days, and i have 64GB eMMC and online backup, I found I don't need those things anyway.

The opposite. To little supply for the demand. They used the invites to "throttle" the purchase rate to be able to keep up. They probably thought an invite system was a better aproach than a weekly free-for-all aka. SuiciDDOS against the webshop. Hopefully, this time supply will be significantly higher, meaning the invite system will be removed as soon as they know they can keep up with demand.

aka: Please spend an hour in transport so you can spend 10 minutes fixing the issue while we breath down your neck and constantly ask stupid questions that won't help us solve anything.

Hacker News API 12 years ago

Just wanted to drop a comment on the awesomeness of your app. Hacker News 2 is by far the best Hacker News app, not just on Android, but on all mobile platforms i've tried (so, iOS, Android and Windows Phone) Awesome work you are doing.

Ha. How fun :)

We take different aproaches though.

Repo link for reference: https://github.com/tbug/vpython

Mine expects you to know virtualenv and how it works, and also that you explicitly install it. Same goes for dependencies.

My needs where to avoid sourcing the virtualenv, so i wrote the tool to fix just that. Also, i built mine to resolve symlinks and be usable as the shebang in your python scripts, which is pretty neat when writing command line tools.

Downside is, ofc, that compared to just running something inside a virtualenv shell, vpython takes forever (up to 100ms-ish on my machine) to find the virtualenv, and set the correct env variables.

Most of my projects are long running though (webservers, number crunchers, etc), so the extra miliseconds it takes to load is really not that important.

How do you query your database? There is still a bunch of new PHP projects that use mysqli::query, which is like playing with fire compared to using PDO::prepare If you are still using mysqli, changing to PDO for future commits might help reduce chance of creating these kind of vulnerabilities.

The cookie should not contain something computable at all. It should be some kind of session identifier, generated by your code when user:pass combo checks out.

And if possible, store the session information somewhere else than your database. Redis and Memcached is a nice fit for stuff like that.

Because those are javascript primitive types, which json is built around in the first place. Date is not a javascript primitive, and is therefore not included.

If we need to follow that logic (to include useful non-primitives) we would end up with a clusterfuck of a spec that noone would want to implement.

Hum 12 years ago

It looks (very much) like Google Hangouts in your trailer video. Right now, hangouts is pretty much installed on every new android phone, so i assume you have some kind of edge on hangouts to gain traction on Android?

As much as i would like to see comments in json: if we start throwing around json files that area not really json, but we call them json, (at least in everyday talk), we will end up breaking more apps then we fix.

Maybe the question is instead; why the hell do we need comments (and loosening of t he syntax, etc) in the first place?

Are we seriously going to keep insisting on json as a configuration format?

As Stormbrew already pointed out, we already have a format that is ideal for configurations (and sure, data exchange, why not), and it is called yaml.

yaml have comments

yaml makes it easy to enter multiline strings

and most if all; yaml is very very easy to write!

tl;dr: Just use a format suited for your needs instead of trying to change something that doesn't. Oh, and a couple of smiley faces thrown in there to ensure people don't read this in the wrong tone. People do that.. Like, all the time.. damn, now my tl;dr is too damn long! i have to add another.

tl;dr;tl;dr YAML BITCHES! (╯°□°)╯︵ ┻━┻ (but also, a puppy: http://i.imgur.com/kuDsS0i.jpg )

[dead] 12 years ago

wouldn't fewer countries make government _more_ centralized? ;)