Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
duckerude
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
36 ms
·
361.
▲
by
duckerude
8y ago
You can edit your own paste on pastebin if you made it with an account. This one was made with an account, shown on the full page: https://pastebin.com/XLeVP82h It's possible the person who created it edited it. I don&
362.
▲
by
duckerude
8y ago
Can't you disable them on the system level? On my Android device, sliding a notification slightly to the side reveals a button to block all of the app's notifications.
363.
▲
by
duckerude
8y ago
Make has a dependency system. You can tell it how to create file A, and that it depends on file B, and tell it how to create file B. Then if you request file A, it will check whether file B exists, and create it first if it's missing o
364.
▲
by
duckerude
8y ago
The regulations might have a good aim, but when everybody is violating them it's probably safe to say something is wrong with them. I don't know if the problem is in the content or in the enforcement, but it exists. I don't t
365.
▲
by
duckerude
8y ago
I wanted to put over a billion floats in a numpy array just a few months ago. Making them 16-bit saved a lot of memory. It doesn't matter how much resource limits increase, people are going to keep hitting them. And when they hit them,
366.
▲
by
duckerude
8y ago
This looks like a great way to get over the initial hurdle of unfamiliarity. The only thing that looked potentially confusing was calling "cd .." a way "to step back". It could sound like a way to go to the last director
367.
▲
by
duckerude
8y ago
They're added as domain-specific if you use the element picker, but they don't have to be. They show up in the extension's control panel. Using the element picker to block HN's footer generates a rule like this: ! 7&
368.
▲
by
duckerude
8y ago
I like to use uBlock Origin's element picker to remove parts of websites that I don't want to look at. I don't think uMatrix can do that, although it covers the most basic adblocker functionality.
369.
▲
by
duckerude
8y ago
> Within the tests/evalExploit directory, there is a php file that runs eval() on user input, a common code-injection vulnerability, to experience the power of Polyscripting. What happens if you eval "`rm -rf /*`;" or
370.
▲
by
duckerude
8y ago
Because it's easy to accidentally type foo = func() when you meant foo == func(). That mistake happens so often in C that modern compilers warn you unless you put an extra set of parentheses around it. It would also cause ambiguity wit
371.
▲
by
duckerude
8y ago
These seem to be relatively thin wrappers around existing APIs. A more typical way to read from a file-like object is argumentless .read() to get all content, or iterating over it to get it line by line, but if you're passing an argume
372.
▲
by
duckerude
8y ago
Using Tumblr is a challenge. When I first started reading Tumblr blogs I was confused about the themes people used. Depending on the layout, the far side of quote pyramids often becomes so ridiculously narrow that all characters are stacked
373.
▲
by
duckerude
8y ago
Referring to a class by its name is the wrong approach in Python, because classes are themselves objects. In PHP, a class is uniquely identified by its name, everywhere. If you define a class Foo, then new $var will resolve correctly either
374.
▲
by
duckerude
9y ago
You can just uninstall it. It looks like apt remove systemd would work on my system, at the cost of GNOME and NetworkManager. APT automatically fills the gap with sysvinit and consolekit. OpenRC is also available. Debian even has ports to k