Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mojuba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
92 ms
·
961.
▲
by
mojuba
12y ago
My take on this is, economy depends on human decisions whereas "pure" physics does not. To predict stock values even for one major company, with the greatest possible certainty you'd have to take into account everything that
962.
▲
by
mojuba
12y ago
Terrible writing... Some people code like this. You look at what they did and just wonder why something that can be written in 3 lines is written in 200 lines of code.
963.
▲
K.I.S.S. the Relational Database
(medium.com)
1 points
by
mojuba
12y ago
|
0 comments
964.
▲
by
mojuba
12y ago
Half a zillion idea: use sound echolocation principles. Edit: http://www.gsmnation.com/blog/2013/06/19/echolocation-app-le...
965.
▲
by
mojuba
12y ago
So you've seen raw output from the accelerometer and you think they were fine, but do you realize that the error gets cubed when you calculate displacement from those values?
966.
▲
by
mojuba
12y ago
> off by ~50% You should get different results on different phones, but I don't think it would ever be reasonably precise on any one device.
967.
▲
by
mojuba
12y ago
... in the U.S. Do these people think it should be immediately obvious to everyone?
968.
▲
by
mojuba
12y ago
> The double integral of acceleration is displacement. Have you actually tried this? I have and the results were totally unusably off. If the accelerometer that costs a few dollars at best could be that precise, you'd see thousands
969.
▲
by
mojuba
12y ago
Well then ignore your power users and lose the non-power ones along with the money they bring. That's exactly what Google has been doing in the past years. They lost me on almost everything except GMail which is also hanging from the c
970.
▲
by
mojuba
12y ago
Be in touch with your power users.
971.
▲
by
mojuba
12y ago
When smart engineers try to guess what non-smart non-engineers would be looking for on the Internet, they end up with an over-algorithmized mess that Google has become lately. And now, among other things, Google is losing power users. They
972.
▲
by
mojuba
12y ago
To be fair Pascal is more "wider" than longer compared to C, but still it takes more time to read.
973.
▲
by
mojuba
12y ago
Frankly, if verbosity is not a limiting factor for you, then you weren't trying to solve hard problems in an elegant way.
974.
▲
by
mojuba
12y ago
Essentially Ruby does only `end` and so does e.g. the Unix shell. I still prefer { } because it stands out in the text better. I should have mentioned verbosity in declarations too, it's not just begin ... end. And I do miss a few of P
975.
▲
by
mojuba
12y ago
You could have called me a "Pascal devotee" back then, but I had eventually come to realize verbosity kills creativity and dumped Pascal for good. This { int a[10]; ... } wins over this begin var
976.
▲
by
mojuba
12y ago
See SPARS Codes http://en.wikipedia.org/wiki/SPARS_code#Codes I usually don't trust vinyls that don't indicate their recording/producing/pressing method.
977.
▲
by
mojuba
12y ago
You will need an atom-scale resolution printer for the the record to sound good really. Or a few atoms :) Even for digital records being transferred to vinyl, the track is circular, so yes, atom-scale printing would be your best bet.
978.
▲
by
mojuba
12y ago
Not sure about the copyright, but I wouldn't be surprised if someone patented it in the US.
979.
▲
by
mojuba
12y ago
When I read the title my first thought was that it would be a majoritarian system without districts: everyone votes for one candidate from the list and the top N candidates get elected to parliament. This would solve two main problems: * Th
980.
▲
by
mojuba
12y ago
Post-men don't do it "voluntarily", by which I mean e.g. out of curiosity, whereas the purpose of advertisement QR codes is just that. "Wow, look an advertisement QR code, I should definitely scan it and see what they ar
981.
▲
by
mojuba
12y ago
Which one of them uses exactly the iBeacon protocol?
982.
▲
by
mojuba
12y ago
> ... then turn 180 degrees so that you are between the phone and the beacon. Apparently you've moved 45ft. Why don't you fit the beacons on the ceiling?
983.
▲
by
mojuba
12y ago
Hm, maybe not so easily with other technologies. GPS is a passive thing and you can select which apps can use it. Beyond that or outside of your phone nobody will be able to register your location. WiFi is active and yes, wiretapping is pos
984.
▲
by
mojuba
12y ago
What about beacons being not so one-way? Assuming you enabled the beacon on your own phone for whatever reason (some fancy app), then information can be gathered easily without you giving permission or noticing at all.
985.
▲
by
mojuba
12y ago
True, and actually some cleverly designed BLE devices advertise only for a limited time after pushing a button. I don't see why classic BT devices shouldn't do the same and work (almost) like you described: only advertise for a mi
986.
▲
by
mojuba
12y ago
Pairing is an equivalent of connecting devices with a physical wire. When you stream music you want to know exactly where it goes, or e.g. which BT headset is connected to which phone in the room. Pairing can be combined with connecting in
987.
▲
by
mojuba
12y ago
I don't know why everyone is talking about pushing ads in the first place, whenever BLE beacons come up. As if the visual clutter created by outdoor advertisement wasn't enough, now I'll get garbage on my phone? No, thanks. R
988.
▲
by
mojuba
12y ago
But I meant return p, not some gibberish that obviously should be formatted better. It's just that for some developers "formatting better" doesn't translate to "make it shorter and sweeter".
989.
▲
by
mojuba
12y ago
There is probably no "correct" way of writing this, but there are ways of making your next code maintainer's life easier (which might be you in a few months from now). One line is easier to read and understand than 10, especi
990.
▲
by
mojuba
12y ago
Or, taken to the extreme: return p;
More ›