Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
notpopcorn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
notpopcorn
1y ago
If you take a screenshot of it, the effect is gone. The emoji and the background are just the same #ffffff in the screenshot. Seems like an easy way to make some unscreenshottable text or something. I don't know how I feel about that.
2.
▲
by
notpopcorn
4y ago
Another example of a very hidden feature is "export/print as pdf". If you do share => print, you don't get a pdf option, but you can do a zoom gesture on the preview and then +poof+, it's a pdf you can save. How
3.
▲
by
notpopcorn
4y ago
A const is like a `#define` in C or C++, while a static is a global variable.
4.
▲
by
notpopcorn
4y ago
> Imagine giving the public access to that now. German supermarkets have those machines today. :-)
5.
▲
by
notpopcorn
5y ago
> So we use a &'static str here instead of a C string so there are some changes to the C code. > [..] > So why does this type not support zero initialization? What do we have to change? Can zeroed not be used at all? Some
6.
▲
by
notpopcorn
5y ago
Without any unsafe code this is simply: let role = Role { name: "basic", flag: 1, disabled: false, }; The language tries to prevent you from interacting with a `Role` object that's not ful
7.
▲
Physically Impossible Ping Times
(twitter.com)
42 points
by
notpopcorn
5y ago
|
3 comments
8.
▲
by
notpopcorn
5y ago
It's just like the end of Portal 1: you have to remove some cores in order to win the game. ;)
9.
▲
by
notpopcorn
5y ago
MAX_THREAD_IDS is defined as 128 in a file with a copyright notice of 2005, which was when the very first consumer dual core processors started getting released: https://github.com/perilouswithadollarsign/cstrike15_src&
10.
▲
Portal 2 crashes if you have 128 cores, due to 15 year old assumptions
(twitter.com)
63 points
by
notpopcorn
5y ago
|
11 comments