Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pdenton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
pdenton
5y ago
drill is a nice replacement for dig and it's packaged in most distros. Look for ldns
92.
▲
by
pdenton
5y ago
All VPNs are terrible, except the ones you create yourself with your own hardware on premises you can trust. My advice to you would be: defense in depth. Get yourself a good firewall (e.g. pf). Follow security best practices. Be diligent. K
93.
▲
by
pdenton
5y ago
Thanks, but I'd rather spend the $25 to help poor children in Uganda.
94.
▲
by
pdenton
5y ago
Quickemu already does this and many more operating systems too. https://github.com/quickemu-project/quickemu
95.
▲
by
pdenton
5y ago
Nothing saves as much as just writing the HTML, CSS, and JS by hand. No build step or anything but an editor. No need to minify anything, keeping it nice and simple. Responsive images are kind of funny in the sense that my webpages are near
96.
▲
by
pdenton
5y ago
> Mozilla need to [...] build a new browser See The Book of Mozilla, chapter 11. >and a “browser toolkit” to let other people build their own XULRunner was essentially this.
97.
▲
by
pdenton
5y ago
Oh this is good! Thank you and your dad!
98.
▲
Hedgewars
(hedgewars.org)
1 points
by
pdenton
5y ago
|
0 comments
99.
▲
by
pdenton
5y ago
This reset does too much IMHO, the rest of the CSS will become dependent on these styles. That said, I'm guilty of this myself. Here's mine: http://0x0.st/-7gE.css To me, having reset styles feels like using unwan
100.
▲
by
pdenton
5y ago
Interestingly, getElementById was 62% slower than querySelector on my computer with FF94. I reckon this is a moot issue as neither of these is likely to be a bottleneck for a web application.
101.
▲
by
pdenton
5y ago
* A database abstraction layer that's instantiated with a certain access level * A hydrator/extractor that changes the type of the value it handles * A task or job that has a certain priority to it
102.
▲
by
pdenton
5y ago
That was easy to test, and no. class_exists returns false for traits and they can't be used as parameter types. It throws a TypeError when I do that (even though the instance I pass uses the trait).
103.
▲
by
pdenton
5y ago
If by "kinds" you mean abstract classes, yeah. I just checked, there's no special handling for those since requesting them from the container makes no sense. I suppose a constructor could depend on an abstract type and expect
104.
▲
by
pdenton
5y ago
Question: does class_exists still return TRUE when given the QCN to an enum? Because it's not possible to instantiate an enum, if one appears in the constructor of a class it'll break auto-wiring. I've written my own IoC cont
105.
▲
by
pdenton
5y ago
Thank you. I don't need any of those, though. $immutable->getAttr() is easy to mock, easy to override, and allows for custom behavior (e.g. return clone $this->Attr). Static return type, useful but since I use interfaces for ever
106.
▲
by
pdenton
5y ago
Having used PHP since version 4 (20 years ago), I can say with confidence that its had its peak. Everything new added since 7.4 is just fluff or bloat. Fixing long standing bugs and performance improvements is fine, of course. But everythin
107.
▲
by
pdenton
5y ago
Oh boy, does this ring a bell with me. I've already written 5575LOC according to cloc (and threw away 7449LOC in the process) and I'm far from finished writing the code to email the data from a contact form in PHP. But it ticks al
108.
▲
by
pdenton
5y ago
Nice wiki, though the font is just terrible. Had to change it to Helvetica to make it readable.
109.
▲
The Source Code to Vvvvvv
(github.com)
2 points
by
pdenton
5y ago
|
0 comments
110.
▲
by
pdenton
5y ago
I knew Google would one day take control of the web, just thought they'd have a more clever way of doing it.
111.
▲
by
pdenton
5y ago
They made it look like an accident
112.
▲
by
pdenton
5y ago
Here you go... https://sciops.net/downloads/vga/
113.
▲
by
pdenton
5y ago
In other news, a nasally-injected brain drug can help you write code much quicker all night without getting tired. Just don't do it, kids. Amphetamines can mess with you, I've lost a friend who couldn't stop using it
114.
▲
Tank Wars (1990)
(dosgames.com)
3 points
by
pdenton
5y ago
|
1 comments
115.
▲
by
pdenton
5y ago
I think a roving tabindex would be fine in this case. The arrow keys and tab/shift+tab change the tabindex so you always have elements with tabindex="-1" and tabindex="0". https://www.w3.org/TR/
116.
▲
by
pdenton
5y ago
From TFA: outlines are preserved and used in Forced Color Modes such as Windows High Contrast Mode, where background colors, border colors, and box shadows are usually overridden by user and system styles Is this actually a thing?
117.
▲
Offline Linux Minecraft launcher in pure Bash for standard and Forge versions
(github.com)
31 points
by
pdenton
5y ago
|
0 comments
118.
▲
by
pdenton
5y ago
Shaka, when the walls fell
119.
▲
by
pdenton
5y ago
This has a lot of potential in education. Instead of installing lamp, just use this and quickly write something in python instead. Thank you so much!
120.
▲
by
pdenton
5y ago
Seems to me like if you need to do your task inside the kernel to get acceptable performance, there's something wrong with that kernel. It's also arguably more difficult to do a given task in the kernel than in userland, code for
More ›