skysight-inc/HackerNews huggingface dataset:
The most logical and clear answer for me (assuming I didn't already screw up by making assumptions about the data format, problem definition, etc.) is:

1. Figure out which appointment starts first

2. Check if first_appointment.end > second_appointment.start

So:

boolean AreAppointmentsConflicting(int start1, int start2, int end1, int end2) {
// first and second refer to the start time of the appointments.
// The first appointment is the one with the earlier start time.
int first_appointment_end, second_appointment_start;
if (start1 > start2) {
first_appointment_end = end2;
second_appointment_start = start1;
} else if (start1 < start2) {
first_appointment_end = end1;
second_appointment_start = start2;
} else { // same start time
return true;
}
return first_appointment_end > second_appointment_start;
}

That can be shortened to:

return (start1 > start2 && end2 > start1) || (start1 < start2 && end1 > start2) || start1 == start2;

Or shortened even further in https://news.ycombinator.com/item?id=14641485

The third answer would get massive upvotes for brevity on LeetCode. The first answer would be preferable for readability in an actual code base.
Or how memcached does it https://www.adayinthelifeof.nl/2011/02/06/memcache-internals...
I assumed that (like me) she put the iOS 11 beta on her less life-critical iPad and left her phone on iOS 10. I wouldn't trust iOS 11 on my primary device quite yet. Several apps I use on my iPad have critical issues that make them unusable.
The payload is encrypted with the bank's public key but it can only be decrypted with their private key. This is the basis of public key cryptography [1].

[1] https://en.wikipedia.org/wiki/Public-key_cryptography
Furthermore didn't they add some sort of option in iOS 11 to get rid of things that haven't been used recently… thus automatically keeping things clean?
you can encrypt with public key, but it cant be decrypted with same key. its assymetric encryption.
Has anyone noticed one of the site maintenance template?

https://web.archive.org/web/20170627020124/https://minebasea...

You can find it on

https://gist.github.com/pitch-gist/2999707
China and India have much lower per capita CO2 footprints. So they are disproportionate in a good way. (Though the still need to do better, like everyone else)
> usablitlity [sic] has been on decline since iOS 9

I actually disagree. Some things I don't like, but overall I think Apple's been making worthwhile improvements.
ARKit enables you to get 3D points or features correct? I was thinking maybe doing some geometric processing to detect planes can handle vertical plane detection
Could this be improved even further by starting with 1/512 resolution (or whatever divides well) and making more passes only where there's a boundary - basically as a quadtree?
Public Key encryption is like a bank deposit box.

Anyone can encryption (put things in), but only the Private Key (the bankers) can decrypt (see whats inside).
Orders of Magnitude are completely different, of course. When MIT got it's /8, (one of just 255 available), it gave them the ability to create 2^16 networks with just 254 hosts on each one.

Now, anyone who wants to can ask for a /48, and they are automatically given it, and they are able to create 2^16 networks, each network with an effectively infinite number of hosts on it. And, there are so many /48s on the (current) Global Unicast space (prefixes starting with 001), that everyone on earth could be granted 4000 of them. And, in reality, ISPs started already conserving, and handing out /56s instead of /48s to most consumers/SoHo - further increasing that number by 255x.

And that's just the 001 prefix. Based on what we learn about allocating space there, new policies can be device for the other 6 prefixes available. We aren't going to run out of IPv6 address space.
I'm sorry, that's terrible, but this sounds hilarious
Doesn't cover perfect forward secrecy (PFS).

Without PFS if the server's private key was stolen (e.g. by hacking the server) then all traffic sniffed in the past could be decrypted.

See: https://en.wikipedia.org/wiki/Forward_secrecy
I feel that you would adore Dan Simmons first two "Hyperion" books. They're predominantly about poetry and how it's affected the human race, far into the future.
The word design/designer alone is useless. You should always mention design of what.
How to Rip and Convert DVD to Apple TV with DVD to Apple TV Ripper
It would be favorable for google to have AR capabilities on their Pixel phone. They would sell their own phones more and release novel tech.
JavaScript Syntax: Statements, Expressions, and Operators
And we'd also have no kids, because that's an exponential factor when it comes to pollution.
No op , i am happy my uni does not see the internet as MIT does and acts far more responsibly.

MIT by holding one to class A address block for so long have sets a bad example. Much of the 16million address owned by them are never really used. How many other universities have access to this kind of wasted luxury ? Standford returned theirs back ages years ago.

Sure IPv6 was inevitable but if ford, MIT and rest had not been so greedy the rest of the world would have not grown up beind a NATed internet. I share an ip with 1000's of others, every third google search throws up a captcha..
> If the browser's symmetric key is encrypted with icicibank's public key

For Diffie-Helman key exchange, atleast...

Encrypting/"locking" uses the public key.

Unlocking a public-key-encrypted-symmetric-key happens with icicibank's private key, which the sniffer does not have.

Here's another diagram:
https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exc...
You can use some kind of marinade that uses enzymes to tenderize. I've never tried it myself, but I've heard using Asian pears (Pyrus pyrifolia) in your marinade will introduce fast tenderizing enzymes. I believe kiwi also has a similar enzyme.

Here's an example: https://www.washingtonpost.com/lifestyle/food/cook-asian-pea...
It kinda reminds me of learned helplessness; just knowing that you're capable of changing the situation makes people perform better, even if they actually don't use that capability. It seems that there's something opposite happening here; just knowing that there's power keeps you thinking of using it.
If I go with polaroid I go with polaroid, not a digified thingy: https://eu.impossible-project.com/collections/polaroid-600-c...

Though I have to agree it looks pretty cool.
sounds like UC Berkeley
Some of the higher comments go into this and it appears that ARKit only implements some of a full AR Stack (Visual Inertial Odometry) while Tango supports it all (SLAM) so it can also have persistence between device reboots and be useful in bigger applications.

I will note I am just repeating the comment and you can see it here: https://news.ycombinator.com/item?id=14640682
> case sensitive combinations involving CTRL

Historically, pressing the CTRL key would set the 6th and 7th bits of the pressed key to 0.

So CTRL+J would turn both J (1001010) and j (1101010) into Line Feed (0001010).

I suppose some modern systems may have a way to distinguish between these signals, but some systems would not be able to easily generate a different signal for ^j and ^J.
TLS 1.3 has a 0rtt handshake, which is pretty baller.
It's just not widely deployed.

And it likely won't be. 0RTT Allows for replay attacks (I capture your packets, and replay them). Without a round trip this will always exist.

Also 0RTT is only for re-connections not initial connections.

The solution is only like 0RTT be executed once and only once, but this isn't part of TLSv1.3 and is waiting to _globally_ approved. Until then nobody smart will touch it.

---

0RTT is only supported by Cloud-Flare and Google. Cloud-Flare makes you track 0RTT yourself so a fair number of sites are insecure. Google does SSL tick synchronization across data centers because their arrogant and is extremely vulnerable to timing att-
You lost me at plastic wrap
Pretty sure there have been multiple porn shoots in this room:

https://photos.zillowstatic.com/p_c/IS66svl699b5v60000000000...

Don't ask me why I believe this or how I'd know such a thing, all I'm saying is I sense it in my gut.

That said, I think pornography is the basic aesthetic we're all resisting, when we hate on McMansions.

It's that instinctive reptile-brain hatred of doing nothing and getting everything, no matter how tasteless the getting renders the gotten.
Perhaps the most conclusive study to prove that mobile learning (on a smartphone) is a myth and at most a vanity.
I remember him from Sun, where he was both a great engineer and a great architect. Looks like he's moved on from TCP/IP to HVAC. ;)

http://www.sunengineering.net/PROJECTS/Residential/TheBackSh...
I am always confused about posts like these. iPhone 7 comes with lighting headphones. Why can't you use those? No dongle required.
> Let's see: The OP has some thing about 135 F for many hours. Hmm .... Last I heard, we want 145+ F for food safety.

Holding at 145F for a short time works for most bacteria of concern (some you need higher for a short time), but most can also be killed at 135 for a long time (hours). Temperature and time need to be considered together.
I guess it depends on if you have (and are used to having) you phone make a noise when you receive notifications. I have most notifications set to silent, and some I let vibrate. The only thing that makes a sound is my alarm and calls.

Since smart phones became a thing I've always had them set to vibrate, I don't really see why you need your phone to make a sound (and disturb other people) when you get such things as an Instagram like or a game wanting you to play more. Biggest quality of life improvement was disabling vibrate (so it's silent) for instant messages and SMS (which my phone always notifies me twice about?) - they can wait a few minutes to hours and don't need instant replies.
PersistIQ (YC S14) Is Hiring a Sr. Back End Engineer in San Mateo
Well does it take about a second or about an hour to make one turn of the screw? If a carpenter doesn't know the answer to that in his bones, he won't be fastening many things together.
Insulation alone is not sufficient. During a heat wave, after 48 to 72 hours, the heat will go through the wall, eventually.

The time lag of the building material and the decrement factor are also very important. Tge time lag should ideally be close to 10-12 hours in order to dampen day/night variations in temperature.

https://www.new-learn.info/packages/clear/thermal/buildings/...

This is why most of the time passive solar involves carefully planning before you build. Otherwise the best you can do is sunshades, insulation, landscaping and white roofs.
I find that even on a small grill, you can simply pile the ribs on top of each other on the far side, away from the coals. I think it results in better flavor as the juice from the ribs on top bastes the ribs beneath. But you do want to rotate which ribs are at the bottom, if your temps are running a little high at the bottom.

So, I disagree about being completely limited by surface area for larger parties. I feel volume of the grill is more important.
They might not care, but in that case this question essentially tests if a person understands what 'GHz' means and can think logically, which is not that much to ask.
Kids are only an exponential factor if you have a constant number per adult each generation.
> * No clear architectural style, or a haphazard/incoherent mix of styles

Isn't that just a new style?
The coastside needs another highway near Pescadero and to upgrade 91 to four lanes.

Ton of land as well that nobody will ever build on. There's talk that marajuana might turn the area around. Flowers were a huge business and I thought the revenues were higher than 140m. Still the need for housing is desperate. But it is NIMBY central and then you still have the costal commission, and various other lawsuits that will prevent any type of development. Even infill is a difficult.

It's sad. A beautiful place, a lot of inaccessible areas (by design) and a no growth mentality.
I don't recall the pricing for extra IPs but it was probably something like that. I just had a stack of servers built out of donated parts in my dorm room hosting different services on VHosts. At one point I was pushing 3 TB/mo in outgoing bandwidth on that $10/mo plan.
Start using lubricating eye drops. Also try to make a habit of blinking eyes while working on a computer as one of the cause of dry eye is not blinking enough while looking at a screen. Weather also plays role in how you feel, I feel more discomfort in extremely dry or extremely humid conditions. Don't worry, it is a manageable problem.
My school had a 4A (which was pretty unusual in France back then) and it was the first time I touched a computer for programming.

2 friends and I were the only ones in school interested in it so we basically were in the "computer room" every lunch break :) We didn't have any recording device so it was just programming little stuff that will disappear at the end of the session. Had really great times !

I was 12. It was 33 years ago. Still developing.
I think you're right that this probably couldn't be done without an amendment, but I don't see how California Democratic Party vs. Jones actually is a strong argument for that. That seems to largely have been a first amendment case, if I understand the opinion correctly. The basic argument being that blanked primary systems forced parties to associate with candidates, which'd in turn be forced speech ("freedom of association").

Isn't the issue more around Article 1 enumerated powers?
I didn't say the iPhone camera is some also-ran. It's still a very good camera (these phones all use the same Sony sensors for the most part so it all comes down to processing). I simply said that it's not considered the best camera anymore and that it has been repeatedly surpassed by Android phones. Android phones are now the kings of the smartphone world. The DXOMark rankings say it all and there's a lot of Android phones ahead of the iPhone. Regardless of what you think of the DXOMark rankings, the reviews of each of these high ranked Android phone camera's already support the DXOMark rankings.
I wasted an alarmingly large percentage of a year or thereabouts on that game. And that was depite having the expansion chassis, floppy drives, the assembler card and Advanced Basic (all of which also ate a huge chunk of time).
Looking on Glassdoor for places where $640k is a great house - Omaha, Milwaukee, Minneapolis, Akron, Des Moines, etc. - the median software engineer there is making $70-80k. Great money, upper middle class in context, but not $120k.

$120k seems unrealistically above market, even for a seasoned old pro, in such places. Am I off base?

Of course if you're paying it there, then it's an extremely lucrative gig. But as far as I can tell, there are maybe a few hundred such positions in the country.
Javascript frameworks/libraries: you master one and two years later it is old news. Must master a new one or won't get jobs.
I can't stand force touch, and hate the apple compromised on the design to implement it.

2 years later and it's completely frigging useless, nobody's been able to demonstrate a useful feature for it and outside of techy Internet forums I've yet to meet anyone who uses it on their phone. Every time I ask ~50% of people have it turned off because the incredibly laggy, counter-intuitive, and downright annoying "actions" were bothering them so they turned it off in settings.

Force touch belongs in the dust bin of history with wood grain UI and horizontal sliders on horizontal swipe interfaces.
A shift in China to less toxic coatings for containers increases shipping costs
I second the opinion, although I loved the second two, the Endymion books best.
PM Modi lauds ISRO’s space feats during US trip
If the person you voted for isn't elected to Congress, and you have a "representative" from then other party... Do you then have a representative who will listen to you?

In the mixed systems like the German (well, most Western democracies) your vote helped elect someone from a party you choose.. even if it's not the person you personally voted for.
Here is my attempt:

- an app to prototype a showroom “on the fly”, there is value in that for retail right?

- Public spaces to play games socially, silly but can be addictive

- Use AR face mask to see what you look like before Botox or plastic surgery

- turn your classroom into a history/science lesson, subtle advertising for the history channel lol

- AR to enhance shopping online (I think this one is the coolest)

- Bring Disney world in your living room!

There, 6! Lol, I would love to hear what anyone thinks of these ideas!
Related to that, the two questions are

> “Can all true statements be proven?”, “Are there functions that we can define but not compute?”

And the answers are "no" and "yes", so to fit with "both answers are 'no'", the second question should be "Can we compute all functions we can define?".
The need for backwards compatibility is what is keeping JavaScript still not a great language. The number of wtfs and surprising behaviour is justified by needing to conform to what the language already did, and that is not a good thing.
There's plenty of water, but aquifers are tend to be tapped in areas with insufficient rainfall/access to rivers.

If you're drawing on the aquifer faster then it replenishes, it'll eventually run out. Sure, it'll replenish itself - eventually - but the land you were cultivating will be unusable for decades. In the meantime, all of your nice topsoil will turn to dust, and blow away.
>"There are some really cool "tricks" for avoiding the round trip — round trips are why everyone should be using a global load balancer for SSL. Clients have to send 2 packets across the world and wait for a reply, which can add >100ms before any actual work happens."

What is a "global load balancer"? A load balancer doesn't avoid any round trips. The "work" of TLS begins as soon as the client sends a ClientHello which is during the second round trip. On a new connection the total round trips is 4 if you include the GET request. It's 3 round trips if you only consider the TCP hand shake and the TLS handshake. This is true whether there is a load balancer or not.
This makes no sense. Every large city is dark green (the best.) Vancouver, Calgary, Edmonton, Toronto, Ottawa, Quebec City. Even Montreal is light green. Most smaller cities—like Halifax, Winnipeg, Saskatoon—are also dark green.
Thanks! Ain't math great? :-)
I like ergonomics, I would love to see code and my tabs not all stuck in my “flat window”. A mac extension for AR, would love that!
If you have a jailbroken device you can actually remove all app labels completely - it's gorgeous. I picked up a friend's iphone and felt completely overwhelmed by all the useless text everywhere.
That was a bit different in that the CPU clock frequency was actually changed. The screen blanking in that instance was because the VIC-II could only run at 1MHz, so the screen would get messed up in 40 column mode if the CPU (and by extension the bus speed) was switched to 2MHz.

You do get a speedup by just disabling the screen too on both the C64 and C128, though, as with the display on the VIC hogs a lot of memory bus cycles. That's a bit more similar to the situation on the Alto, except instead of different "hardware threads" they are separate chips and the VIC just has the ability to take control of the bus whenever it needs memory access.
It's dead, they updated their robots.txt.

I really wish archive.org wouldn't honor that.
I'd love to stop using my phone so much, but I can't break the habit. Short of losing it, any tips for dealing with the stress when it flares up from not having the ability to fill those gaps with refreshes of Reddit, news sites or playing games?
I think if you are okay with marker AR(AR only in a defined space) then Vuforia + Unity. Else, I’m not sure if there are any cross-platform ARKit like sdk’s, maybe wikitude?
Most justice systems have a practice of verifying signatures of documents. I believe it's generally based on comparing the disputed signature to a body of your regular signatures and, in contentious cases, handwriting experts.

I'm not sure how it would play out in court if you intentionally make random unattributable scribblings each time. Sounds like something that might be seen as intentional obfuscation.
We had 90+ degree days for 3 days in a row (and upper 80's before/after that)

Night time temperatures dropped into the 60's, so by turning on the fan at night (which blew air out and upstairs window, bringing in the cool air in throughout the house), I think we would have been fine even in a longer heat wave. By morning, it was cool enough to need a blanket in bed.

If temps didn't drop so significantly at night, then we may have had more problems.

The house is standard wood-frame construction, so doesn't have a lot of thermal mass, though it is on a concrete slab, so that may have kept the downstairs cooler.
Bad example, checkout mobx or core-decorators.

@computed get value() { return this.a + 1; }
@readonly bar = 5;
Well if you do find an adjacent empty seat you can just pop your bag under the seat in front of it.
Ok, that is just hilarious! Of course that Chuck comes from the 'McManus' side of the family not the 'McManis' side.
Often I want to properly exit the app because I don't want it starting next time where I left off, but instead from its default opening state, starting screen, initial menu, a clean slate. A one tap exit button in the app is perfect for that, but sadly missing from many apps.

Swiping up from app list was next best thing and its sad to hear this has been removed.

The idea that exit buttons are redundant is completely missing the point. Reset, restart, save, quit - it's fundamental to software design but somehow these concepts have been demoted.
Man.... ya'll need to move to Kansas City

> I season the meat simply. True, it can be fun to concoct rubs and mopping liquids and sauces with dozens of ingredients, but the end result is usually an indistinct, generically fruity and spicy flavor.

/me grabs my pitchfork
Personally I think it will be the reverse. Future generations will have wetware installed that will augment their brains and memories. Rather than learning memorization skills, they will instead be trained on searching and analyzing the data they can pipe into their brains from outside sources.

I think some of that will come with training for how to avoid brain rot, but when the world's data is at your fingertips, it seems like it might be better to focus the brain on processing vs. memorization. What I'll be curious to see is how we adapt to being always connected like that. Will we see the first true hive minds evolve? Will we lose our sense of self? Will time seemingly speed up?
https://mobx.js.org/best/decorators.html
It's obvious why:

1. How much does an electric guitar cost? Comparatively, how much does it cost to pirate music software on the device you already own?

2. How many people do you need to form a rock band? Comparatively, how many people do you need to start producing?

3. How many sounds can an electric guitar make? Comparatively, how many sounds can a computer make?

Using a computer is cheaper, easier, more versatile, and more original than an electric guitar. Let it die.

The only argument to be made for the electric guitar is that you actually play it, and this applies to every other instrument, so I see no reason to mourn for the electric guitar in particular.
iOS 10 is pretty tricky to jailbreak, but I got lucky and was on the 10.1.2 when qwertyoruiop finished Yalu. I went a step further and took all the letters off the keyboard - it’s perfection.