Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mark242
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
151.
▲
by
mark242
9y ago
How many users wound up losing data because of that bug? In comparison, how many houses were lost to fire today?
152.
▲
by
mark242
9y ago
The odds of you losing your hard drive and flash drive in a house fire are significantly higher than the odds of you losing data on S3.
153.
▲
by
mark242
9y ago
"Hopefully a JavaScript-free Web can still happen." The phone you're reading this post on has nearly as many CPU cycles available to run code as the web server that generated the html. Why on earth would you not want to distr
154.
▲
by
mark242
9y ago
This is a great start. Now let's integrate caniuse into every single MDN page.
155.
▲
by
mark242
9y ago
The easiest thing to do on AWS is just fire off a CloudWatch event. When your Lambda function gets updated, or even on a set schedule, you can invoke your function with whatever arguments you need. Presumably you could cook in a method that
156.
▲
by
mark242
9y ago
What's the exchange rate between Steem and Flooz? Can I finally use my Flooz credits?
157.
▲
by
mark242
9y ago
The sizzle library that jQuery uses takes advantage of querySelectorAll. https://github.com/jquery/jquery/blob/2d4f53416e5f74fa98e0c1... ...only with a ton of wrapper code around it in order to support IE9 an
158.
▲
by
mark242
9y ago
I don't understand the pricing model. 800 new connections per hour, for $0.006? Isn't that extremely expensive? 80,000 connections for $0.60 in an hour is $432 per month for not a whole lot of traffic. edit: Okay, it's 800 n
159.
▲
by
mark242
9y ago
Nope, sorry. You might be interested in Mike's solo album -- https://itunes.apple.com/us/album/fellow-prisoners/id5013550
160.
▲
by
mark242
9y ago
Mike got the name from the poem.
161.
▲
by
mark242
9y ago
There's a difference-- point-to-point encryption is what you're talking about. Anytime a message is transferred, it's done via TLS, but you can't be guaranteed that at any one point the message is kept encrypted. You can
162.
▲
by
mark242
9y ago
And let's be perfectly clear, EV certs are basically a moneygrab by CAs trying to provide some kind of value-add. It used to be that ecommerce sites would have to get an EV cert, now with Chrome desktop showing "Secure" in th
163.
▲
by
mark242
9y ago
The ClamAV dependency concerns me; messages can only be passed to clamd via a plaintext stream. This seems to be at odds with the end-to-end encryption.
164.
▲
by
mark242
9y ago
Dismissing CouchDB because it only supports pre-sharding is extremely shortsighted. It takes very little time to replicate from one db with 2 shards to another db with 3 shards, even on N nodes. Copying the *.couch files is the absolute w
165.
▲
by
mark242
9y ago
For a large ecom site hosted primarily in the US, for our European customers it cut TTFB almost in half.
166.
▲
by
mark242
9y ago
> Electric cars are still affordable only to the affluent. I just now ran a Carfax report and found no fewer than 7 electric Ford Focus cars within 50 miles of my zipcode for less than $15k used. Two of them are less than $10k. Not sure
167.
▲
by
mark242
9y ago
The reason I don't like the internal-int-external-UUID strategy is that all of your queries now require an extra join. It's no longer "select microblog.* where userid = ?" now it's "select microblog.*,user.id
168.
▲
by
mark242
9y ago
Volume is a percentage, and a very analog control. The idea that you would have to have a round knob to twist on a computer screen is ridiculous, almost like some imaginary need for a specific shutter button to press to take a photo on a ph
169.
▲
by
mark242
9y ago
https://caniuse.com/#feat=srcset
170.
▲
by
mark242
9y ago
In reality my function would rarely exist in the Scala world since having a weakly-typed return like that is cringeworthy to say the least. But it's better to see this in action with Scala options. val myOptionalVar: Option[String]
171.
▲
by
mark242
9y ago
I mean, reading this article is basically a giant advertisement for Scala and its powerful pattern matching. functionThatReturnsAnyVal match { case i: Int if i > 2 => System.out.println("Greater than 2") case i:
172.
▲
by
mark242
10y ago
So let me get this straight. You need to go through all this code in 2017: https://github.com/verekia/js-stack-from-scratch/blob/master... ...in order to replicate dispatchEvent and addEventListener?
173.
▲
by
mark242
10y ago
This will be huge for getting Scala running on AWS Lambda. The cold-start times for JVM apps is just ridiculous and makes Lambda/API gateway essentially unusable for anything written on the JVM.
174.
▲
by
mark242
10y ago
Sun tried that, back in the day. Maybe you heard about Java applets, maybe you didn't. They were the slowest thing about the web, insecure even with a sandbox, and just an overall pain. Short of having a jvm always running on your mach
175.
▲
by
mark242
10y ago
If this is possible with RDS, that's huge. It's extremely frustrating to deal with spikes of transitory data into RDS and have to have the RDS disk space be sized to the maximum amount of space always-- it's a huge cost waste
176.
▲
by
mark242
10y ago
It's okay, since cookies is a Map[String, String] so running the get returns an Option[String]. If the author is concerned, the way to express this to be more expressive could be something like this: val uidOpt: Option[Long] = re
177.
▲
by
mark242
10y ago
> Is this properly null checking if required? Yes, because if you're typing the word null in your Scala code you're doing something wrong. Any Java library that might return null should always be wrapped in an Option, so that
178.
▲
by
mark242
10y ago
To play devil's advocate, steps 1, 2, 4, 5, and 6 are all fairly standard behavior for a Mac app that is installed "for all users on this system". https://developer.apple.com/library/content/sampleco
179.
▲
by
mark242
10y ago
They last. I have a 2-year-old electric Ford Focus and have noticed nearly zero battery degradation; the range has been consistent since day 1. Recycling the batteries is undoubtably less of an impact than even the recycling of engine oil f
180.
▲
by
mark242
10y ago
Fold is incredibly important. You should learn it. https://en.wikipedia.org/wiki/Fold_(higher-order_function) In Scala, the debate between using fold on an Option or using map and getOrElse is almost as old as the lang
More ›