Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phpdave11
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
phpdave11
28d ago
For figuring the doomsday of a particular year, you can use the Odd+11 rule. Let X be the last two digits of a year. If X is odd, add 11. Divide X by 2. If X is odd, add 11. Let Y = 7 − (X mod 7). Count forward Y days from that century'
2.
▲
by
phpdave11
3mo ago
https://www.dayswithoutgithubincident.com/
3.
▲
by
phpdave11
4mo ago
This is a good point. Another problem with streaming services, specifically for music streaming services, is that they can change the track of a previously released album with no user choice to hear the original. Example: Track 4 of Elep
4.
▲
by
phpdave11
4mo ago
As long as you embed it with an SRI integrity hash, you're safe, even if the remote server is compromised.
5.
▲
by
phpdave11
5mo ago
I’ve been using Notepad Next on Mac: https://github.com/dail8859/NotepadNext
6.
▲
by
phpdave11
6mo ago
"Before NASA sends astronauts to actually land on the Moon in 2028, they need to be absolutely certain that the Orion spacecraft, the Space Launch System rocket, and all the life-support systems work exactly as intended in the deep spa
7.
▲
by
phpdave11
6mo ago
This looked interesting but the workaround might have been patched by Apple in newer iOS versions: https://www.reddit.com/r/iphone/comments/1p3e2bf/my_hacked_i...
8.
▲
by
phpdave11
6mo ago
The original iPhone ran OS X: https://youtu.be/x7qPAY9JqE4?t=522
9.
▲
by
phpdave11
10mo ago
If you just need a simple local s3 server (e.g. for developing and testing), I recommend rclone. rclone serve s3 path/to/buckets --addr :9000 --auth-key <key-id>,<secret>
10.
▲
by
phpdave11
11mo ago
It compiles the Go code to WASM, so it can be used browser side.
11.
▲
by
phpdave11
4y ago
It shouldn't be too difficult to add support for this. I authored a Go library which adds support for importing PDFs into a new PDF generator (either gofpdf or gopdf). It is around 2,500 lines of code: https://github.com&
12.
▲
by
phpdave11
4y ago
I am using an alternative which doesn't require any additional browser extensions, but it does require that each client installs a custom root certificate. I have a split-DNS setup where I override the DNS entries for certain sites lik
13.
▲
by
phpdave11
5y ago
This was really educational! I love the design of the webpage, and I especially like how you can rotate the 3d diagrams and see each component from every angle.
14.
▲
by
phpdave11
6y ago
I wish I could still compile XMMS from ports on FreeBSD. It seems to have been removed because glib12 is obsolete. Thanks for letting me know about QMMP. Looks like it can be built from ports: https://www.freshports.org/m
15.
▲
by
phpdave11
6y ago
Reading them is also easy. I wrote a library that reads PDFs and imports page(s) from an existing PDF into a new PDF as a Form XObject. https://github.com/phpdave11/gofpdi
16.
▲
by
phpdave11
6y ago
It's really not that difficult if you read and understand the PDF specification. As a learning exercise, I created a simple PDF generator library that creates ASCII PDF documents (you can open them in Notepad) and includes comments ab
17.
▲
by
phpdave11
6y ago
I like how the title of the article has a hidden scroll bar (reading on iPhone).
18.
▲
by
phpdave11
7y ago
Here's the bash script I use to do the code validation. It's called from within my Dockerfile. https://gist.github.com/phpdave11/412893f8366cab0afa85e81a7a...
19.
▲
by
phpdave11
7y ago
PHPStan is a great tool. In addition to PHPStan, I also use phpnsc (name space checker) to check for missing use statements, php-cs-fixer (code style fixer) to ensure the code adheres to my code style, phpcpd (copy paste detector) to detec
20.
▲
by
phpdave11
7y ago
You can use Mercurial with GitHub by using the hg-git plugin, which lets you push to and pull from a Git server repository from Mercurial. It’s a really nice tool that I’ve been using for several years to push to git repositories.