Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jsmeaton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
511.
▲
by
jsmeaton
10y ago
Literally the first time I've heard of python-future. How is it that you claim it supercedes six?
512.
▲
by
jsmeaton
10y ago
Keymaps were my number one reason for abandoning vscode so I'm glad they've got a sublime/atom keymap now. I might give it another go.
513.
▲
by
jsmeaton
10y ago
Took mine in yesterday and have scheduled a replacement part. My phone was in the batch mentioned in the article (bought release day). A friend of mine had the same issue and had his battery replaced by a third party but didn't solve t
514.
▲
by
jsmeaton
10y ago
You may have just saved me a trip to the Apple Store, thanks. I hadn't realized there was a build up of lint, and cables were failing to "clip" into my phone.
515.
▲
by
jsmeaton
10y ago
I guess I'm splitting hairs here, but they didn't really pay for the service they were banned from. Using your bar analogy, it's like they were let into the bar for free, bought a drink (maybe finished it, we don't know?
516.
▲
by
jsmeaton
10y ago
They were banned. Niantic ban for what they consider cheating. I figured if the OP was mistakenly banned for some reason they probably would have mentioned that in their original comment.
517.
▲
by
jsmeaton
10y ago
Maybe my comment was unnecessarily rude, but demanding a refund and calling a company a piece of shit because you got banned for cheating is absolutely entitlement. Just because you spend money on a service does not entitle you to have unli
518.
▲
by
jsmeaton
10y ago
Are you being intentionally obtuse? http://www.pewinternet.org/2015/04/01/us-smartphone-use-in-2... The 30-49 year olds have 1% greater use of phone over internet, but I'm (totally) guessing that would s
519.
▲
by
jsmeaton
10y ago
I fear this thread is getting a little long already, but let me point you to the graph in your own link (looking at 18-29 year olds). SMS: 100% Internet: 97% Voice Calls: 93% Looking at those numbers, from an article you provided, could
520.
▲
by
jsmeaton
10y ago
You might have meant sound in other apps, but the original comment that spawned this thread was "phone calls wouldn't even be top 5". I don't do any voice in fb or whatsapp. Hangouts would be about it and that's mos
521.
▲
by
jsmeaton
10y ago
I'd doubt that. Browser, text, whatsapp, fb, messenger. They'd be my top 5. Feedly and casual snapchat would still come before speaking on the phone.
522.
▲
by
jsmeaton
10y ago
Can you elaborate a bit please? Does this mean not meeting half way between your offer and theirs? And then what?
523.
▲
by
jsmeaton
10y ago
Furious at traffic light buttons? Why?
524.
▲
by
jsmeaton
10y ago
This is very close to saying the government shouldn't tax anyone, and that people should donate what they feel comfortable with to various causes or departments. Taxes (and tax exemptions/loopholes) are firmly with government.
525.
▲
by
jsmeaton
10y ago
Very glad to see tuples and pattern matching also. But allowing the tuples to be structs with mutable public fields seems off . Once a tuple is constructed it shouldn't be mutable IMO, unless I'm missing some important use cases?
526.
▲
by
jsmeaton
10y ago
As far as I understand it it's a little like transferring electronic funds between accounts. The brokerage or exchange is the actual owner of the shares, but moves them electronicly between various accounts. Which leads to some weird v
527.
▲
by
jsmeaton
10y ago
Wow, that's a really interesting case. I guess the same thing would happen whenever an offset was adjusted after you store a value in UTC intended for another timezone. I don't think this is even supported by Django - all times ar
528.
▲
by
jsmeaton
10y ago
Django provides django.utils.timezone to make handling dates and times easier. Not every python project has access to django.utils.timezone. pytz is mostly what you need to get timezones right, but there's still room for something like
529.
▲
by
jsmeaton
10y ago
Yes, always work in UTC. But you could use this library to convert user provided naive datetimes to UTC, and datetimes coming from the database into localised datetimes. Converting from/to timezones other than UTC in Django isn't
530.
▲
by
jsmeaton
10y ago
Cool library, I'll definitely be looking into this more closely in the future. The automatic handling of ambiguous time during timezone transitions is curious. As an example, Django punts on automatic handling and requires a user to ch
531.
▲
by
jsmeaton
10y ago
Yeah dependencies are always going to be an issue unfortunately. Django can make as many recommendations as it likes, but you're still at the mercy of all other dependencies. Moving from 1.9 to 1.10 is different than moving from LTS to
532.
▲
by
jsmeaton
10y ago
I use sublime to quickly look at files for exactly this reason. But I find for actually editing files in a project that atom is doing the job a bit better.
533.
▲
by
jsmeaton
10y ago
So I don't clog up the rest of the comment thread I'll add my atom/vscode/sublime thoughts here. I've been a long time sublime user and found it very very difficult to switch to anything else, mainly for performance
534.
▲
by
jsmeaton
10y ago
The next LTS will be released in about 9 months. If you're willing to make a small upgrade at that time, I'd build on 1.10 and then upgrade to 1.11 LTS, which will give you 3 years (I think..) plus 9 months of 1.10 support. Moving
535.
▲
by
jsmeaton
10y ago
Exclude filters are awful and very unintuitive if you know SQL in my experience. I'd much prefer to use negated filters like: `.filter(id__notequal=3)`. I'm giving a talk at djangocon AU in a couple of weeks where I'll step t
536.
▲
by
jsmeaton
10y ago
You get similar issues with libraries that you use for flask or pyramid too though, if you don't upgrade it for 4 years.
537.
▲
by
jsmeaton
10y ago
SQLAlchemy has a lot more power than Django's ORM. I'd argue that Django's ORM is more accessible to beginner SQL users though. Django handles joins for you (which admittedly breaks down with very complex queries) which is th
538.
▲
by
jsmeaton
10y ago
> The way the ORM would give up is drop all filters. So you write your 3-line filter, and the ORM does nothing. It doesn't blow up, it just does a straight SELECT call on the table without filtering. A nightmare. Is this really true
539.
▲
by
jsmeaton
10y ago
There are two benefits to having subpackages in the way you describe. The first, as you mention, is to slim down the framework. I don't think this gains a whole lot except for trimming down deployment sizes. If you don't use the c
540.
▲
by
jsmeaton
10y ago
Are you living around SV? Are you also working at one of the top tier companies? From my experience and from some others here the tool is reporting decent salaries. It seems most of those disagreeing are from companies in the valley.
More ›