HNHacker News
TopNewBestAskShowJobs

DZittersteyn

21 karma · joined October 21, 2013

submissionscomments
DZittersteyn··on Cooking for Engineers
Looks like they did a bit of premature rounding:

the difference between 38℃ and 94℃ is 100.8Δ℉ rather than the 100Δ℉ that was probably there in the original markings. It's the closest you can come to the correct values though, 93℃ is off by 1Δ℉

They then assumed 100Δ℉ = 56Δ℃, and applied that to the rest of the dial.

That means the values on the dial are off a bit, and should be: 38, 93, 149, 204, 260, 316, 371, 427

DZittersteyn··on The Great Hanoi Rat Massacre of 1902 Did Not Go as Planned (2017)
My guess would be that a screen that can stop a rat from going up a toilet, would also prevent other things from going down a toilet
DZittersteyn··on ISO 8601: a better date format
It makes sense to me that the weekend comes at the end of the week, but then again, I don't know what came first, the term "weekend" or the convention of Sunday being the start of the week in some countries
DZittersteyn··on Pieter Levels Makes $600k a Year from Nomad List and Remote OK
I also used to have this impression, I think I got this from Rails and Django docs, maybe you read something similar?

> Rails comes with built-in support for SQLite, which is a lightweight serverless database application. While a busy production environment may overload SQLite, it works well for development and testing. Rails defaults to using a SQLite database when creating a new project, but you can always change it later.

> By default, the configuration uses SQLite. If you’re new to databases, or you’re just interested in trying Django, this is the easiest choice. SQLite is included in Python, so you won’t need to install anything else to support your database. When starting your first real project, however, you may want to use a more scalable database like PostgreSQL, to avoid database-switching headaches down the road.

DZittersteyn··on Millions of Instagram influencers had their contact data scraped and exposed
I think you mean Fyre festival, if so the documentary you're referring to is probably "Fyre: The Greatest Party That Never Happened"
DZittersteyn··on International System of Units overhauled in historic vote
just set the timezone of your devices to UTC, and you're done! Actually getting other people to schedule meetings with you in UTC is going to be a bit trickier though.
DZittersteyn··on Sweden offers glimpse of a world without Amazon
for the Netherlands, check out tweakers.net[1] for your computer parts (they have an extensive price guide that will show you which webshop has the best prices and delivery speed). If you need them in a pinch, MediaMarkt/Saturn usually has what you need at a premium.

for living room furniture... Most of it is from IKEA

[1]: https://tweakers.net/pricewatch/#highlightCat:14

DZittersteyn··on Employers will do almost anything to find workers except pay them more
The highest tax rate in the Netherlands is 51,95% (Note that this only covers anything you make over ~70k+ a year, 0-20k is taxed ~35%, and 20-70 is taxed 40%). Then you pay 6-21% VAT over anything you buy, so yeah, in some scenarios you definitely lose >50% of your gross income to taxes.

https://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/...

DZittersteyn··on Uber Hacking: How we found out who you are, where you are and where you went
Looking at the reports, the UUID's are xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, so V4 UUID's, which should be pretty hard to guess (barring bad PRNG, but that's a whole different problem)
DZittersteyn··on Uber Hacking: How we found out who you are, where you are and where you went
For those interested in timelines:

- 0x01: https://hackerone.com/reports/125505

- 0x02: https://hackerone.com/reports/127158

- 0x03: https://hackerone.com/reports/128723

- 0x04: https://hackerone.com/reports/127085

- 0x05: https://hackerone.com/reports/127087

DZittersteyn··on Material Design for Bootstrap
Looks really nice, one nitpick: You use the placeholder-as-label anti-pattern (src: http://www.w3.org/TR/html5/forms.html#the-placeholder-attrib...) in the search field of the navbar. That almost put me off before I'd even seen the nice floating label pattern under the fold.
DZittersteyn··on Detecting Barcodes in Images with Python and OpenCV
You could ofc. erode with a smaller element, and open with a larger one, but that might be just as parameter-tweaky as this approach ;)
DZittersteyn··on Detecting Barcodes in Images with Python and OpenCV
Is there a reason to be doing doing a closing, and then a sequence of erosions, followed by dilations?

Since closing(image, str.elem.) == erode(dilate(image, str.elem), str.elem), it feels like you could better use an erosion (remove noise) followed by a closing (to fill up the empty spaces) instead of the other way around?

DZittersteyn··on How to Verify an Email Address
This is answering the question: "Does tihs email address exist?", which is nice, but usually not the question being asked. The more common question is "Is this the email address of the user", which can only be answered by a confirmation email.

You could use this method as a first-line validation though, to give the user some feedback (similar to not implementing the full RFC regex, but simply checking /.+@.+\..+/)

DZittersteyn··on A "Not on Facebook" font icon for your website
You could also use Font Awesome for something similar: http://jsfiddle.net/sv8Lm/
DZittersteyn··on Dijkstra on Haskell and Java (2001)
A lot of the arguments against Java seem to focus on "Time-to-Hello-World". While I agree that the first time you execute a program and see those magic words appear on your terminal, I don't think we should judge a language on that. Visual basic has a very short TTHW (esp. if you take into account the time spent on learning about terminal emulators for most languages), that doesn't make it a good language.

If you take an OO programming language as your teaching language, you need to introduce a number of concepts first.

Hr 1: Talk about classes and objects. Introduce the Car and Bike object, that both have the method 'steer()', the attribute 'wheels' and only the car has the property 'hood'. Introduce return types here, as well as arrays.

Hr 2: Then explain how the 'color' on Car is public, while you'd like the accelerate() method to be private.

Hr 3: Explain how some methods and attributes are static. what is a property of the concept 'Car' and what is an attribute of an instance?

In Hr 4 you introduce them to the classes String and System.

Your students will now know:

-class -public -static -void -String[]

You can now tell them about the 'magic' that makes things start, the 'main' method.

Class MyFirstProgram { public static void main(String[] args) { System.out.println("Hello World"); } }

No magic, and a nice start to becoming a proper OO-programmer.

If you want too teach them FP, Haskell is not a bad way to go. If you want to teach them OO, Java isn't as crappy as people say it is.

DZittersteyn··on Can We Ditch The Headphone Jack?
Oh man please no. Imagine having this in your pocket and playing music! The little amount of stress your pocket puts on it will make your music jump.

Imagine having a magsafe connector on a laptop without a battery. So every time your connector gets a bump your laptop shuts down. The reason magsafe works is because you don't need constant power, so a short interruption is okay.

DZittersteyn··on In Firefox 24 and following, mark all versions of Java as unsafe
UAC? is that the window I always have to click 'Yes' on when I run a program? Yeah, could you disable that?
DZittersteyn··on In Firefox 24 and following, mark all versions of Java as unsafe
Wow, this is really irresponsible behavior, I would've expected something better from Mozilla.. Until now they've first offered an alternative (e.g. pdf.js) before trying to move away from a tech.

Marking a current version as unsafe, even when there are no known exploits is simply ridiculous. I'd love to see the reaction of Mozilla if Microsoft decided to mark all Firefox releases as unsafe, and give a big security warning whenever you installed FF.

Especially if the UI for unblocking it in FF is as obtuse as the discussion implies..

DZittersteyn··on Why Does Windows Have Terrible Battery Life?
Ah yes, I missed that WattHour spec. That's pretty dreadful then..

So the real comparison is SP2 (42Wh) with 6 hrs. vs. MBP 11' (38Wh) with 11 hrs.

DZittersteyn··on Why Does Windows Have Terrible Battery Life?
Might it be that the Win7/Vista drivers for the MBA are worse that the OSX drivers?

We see the comparisons: Surface <-> iPad, OSX MBA <-> Win7/Vista MBA

Surface has different architecture than the iPad, so the battery difference is easily explained, and maybe driver support is just less than stellar, meaning HW isn't as efficient and/or doesn't scale back quickly enough?

I had an Asus laptop some years ago that would last 3 hours under Vista, and would be dead in the water in 1 hour under Ubuntu. I think it was either GPU or CPU scaling or both that wasn't supported in the linux drivers I was using