HNHacker News
TopNewBestAskShowJobs

dana321

300 karma · joined October 25, 2018

submissionscomments
dana321··on Why SSL was renamed to TLS in late 90s (2014)
Solid State Logic (SSL)
dana321··on GCP Outage
Auth, GCP, Windsurf,Augment Code,Udio, the list is endless.

Facebook, Reddit and Hacker News is still up, but thats about it

dana321··on So Long, Figma. Thanks for Everything
maybe stop using medium as well
dana321··on Mark Zuckerberg personally lost the Facebook antitrust case
He bought the competition, it should be an open and shut case.
dana321··on Google Pixel 9 Pro
no need to go too crazy, the samsung galaxy is stable
dana321··on I Hope Rust Does Not Oxidize Everything
I'm hoping this rust fad goes away soon
dana321··on Ask HN: Is C++ a bad idea for new projects?
I like C++ as it gives you direct access to many libraries both C and C++.

For machine learning you have the pytorch C++ API: https://pytorch.org/cppdocs/

dana321··on What Happened to Perl 7? (2022)
php isn't bad, it contains lots of useful functions.
dana321··on What Happened to Perl 7? (2022)
Yeah, Raku has some neat features like being able to build parsers directly with the language.
dana321··on What Happened to Perl 7? (2022)
GIL is a python paradigm.
dana321··on Perl v5.40.0 is now available
Btw, perl6 became Raku - and it now has a compiler called rakudo

https://raku.org/

dana321··on Show HN: Mmm.page – Drag and drop personal website creator
Really cool stuff, here is my microsite i made for the music i made that i uploaded to youtube: https://mmm.page/danstar.main
dana321··on iOS14 reveals that TikTok may snoop clipboard contents every few keystrokes
It also revealed to me that that Dropbox was tracking my location in the background while i was traveling on a train..
dana321··on Ask HN: Is it legal to crawl/index YouTube? Does Google try to stop it?
They have a sitemap, so i reckon it would be ok but honestly it would be better to use the youtube api.

https://www.youtube.com/sitemaps/sitemap.xml

dana321··on Complexity Has to Live Somewhere
C++ : Make the language complex, not the code.

Go : Make the language simple, make achieving a simple thing complex.

C : The machine is complex, be careful what you do if you overflow into the inner workings.

dana321··on I Don't Use Classes
Classes are everywhere, but are used in different ways or hidden.

There are types of classes that are hidden and cannot be re-instantiated.

To me, those are modules and the main execution environment.

Whenever i've been caught out when coding its always one or both of these things, so i always wrap these in a class otherwise when it comes to reusing something multiple times you're caught short.

So, i always use classes for base functionality.

But i don't throw them around like sugar candy.

dana321··on The unexpected Google wide domain check bypass
Its my opinion that when a regex gets this complicated it should be hand-coded as a state machine parser.
dana321··on Caffeine boosts problem-solving ability but not creativity, study indicates
Or just move next door to some noisy neighbors that randomly wake you up with bangs.
dana321··on A new Go API for Protocol Buffers
Its horrible, i know. Try mixing that with grpc too and it gets even worse.
dana321··on A journey to searching Have I Been Pwned database in 49μs
Thinking about it, you would need a 64-bit value to point to the offset because of the size of the file.

But an index file of 64-bit offsets could easily be seeked to read the value of the offset based upon the first 2 or even 4 byte offset.

Though with 4 bytes, that becomes a 4 gigabyte index file! But that would probably be much faster as you only do one seek in one file, then another seek to the main file, then search a much shorter distance to the result!

If the system has enough ram, the operating system will cache the files anyway and will be pretty fast i think.

(can you tell my first job involved writing ad-hoc database systems?)

dana321··on Ask HN: My web app was hacked today – Bad experiences and how to prevent them?
And block access to .env files too!!
dana321··on Ask HN: My web app was hacked today – Bad experiences and how to prevent them?
Its a suckerpunch.. If there is a way in, they will find it. You have to vet everything.

I had a side project compromised through some supplementary php files that came with a javascript library. Luckily, i didn't have any users on it.

Keep everything up to date, including your server software, composer, javascript libraries etc.

Make sure you run a clamav on linux, it will catch any intrusion writing scammy files and rename them.

All passwords unique and made using a password generator. That way, if you are compromised it is only one password not the keys to everything.

Don't keep non-user stuff with predictable uri (like /admin/ /phpmyadmin/ etc.)

One-way backups.. Allow your backup server behind a firewall to login to your site and do hourly backups of all the data.

Disallow access to any files beginning with dot in your webserver configuration. I'm pretty sure nginx does this by default.

dana321··on Don’t try to sanitize input – escape output
In the example given there, use json_encode($name)

That will encode any data structure properly for output into JavaScript.

dana321··on GitHub was down
I think in a few years time we will look back and think

"Waa, that was so archaic the way we used to do things!"

dana321··on You can't make C++ not ugly, but you can't not try (2010)
Internally, that's what C++ is doing..Converting the abstractions into code. There is a lot of complexity hidden from view (you might see some of it when you get some esoteric template bug in your ide)

Btw, that code is using std::unordered_map which is notoriously slow compared to an ordinary std::map for a small amount of elements. And the unordered map of register names each with a pair, why? Why not use std::vector for fast lookup?

The crux of what i'm saying isn't anything new, Bjarne Stroustrup admits that C++ is mainly a high-level abstraction language. There is some new things, but really, the things that are new like << etc. are operator overloads which are just more abstractions.

dana321··on You can't make C++ not ugly, but you can't not try (2010)
Internally, i mean, thats how it was originally built and it generates code much in the way that C would, if you would have manually coded it. Maybe not jump on my head without thinking first!
dana321··on You can't make C++ not ugly, but you can't not try (2010)
C++ is mostly an abstraction layer over C.

I would rather use C++ because i would have the option to use abstractions like std::map, std::string, std::vector, std::any etc. as they would save a lot of time and code complexity.

IMHO the worst thing about using C/C++ is getting other libraries to play with your project well even if you are using cmake or vcpkg, its not enough. You have to have solid knowledge of each operating system class to get everything working nicely over the long-term.

dana321··on Vue.js Documentary
No idea why i was downvoted. I must have a negative-vibe stalker
dana321··on Hard Startups
Solving hard problems is the trap of the genius. I know.

We want a simpler world, but create complex software to do that. All we are doing is moving the complexity under the rug somewhere else. The complexity is still there, warts and all.

Doing something mundane over a large surface area (quantity being the hard vector) is better than solving a really difficult problem that has little reach in terms of real-world value.

The complexity in my own startup is its multi-layered nature, solving multiple problems for multiple levels of ability. I'm still aware of the fail aspect, but one layer will succeed. I know this. I have a 10 year challenge, but sooner is better. I know for a fact what i'm doing isn't being done out in the wild apart from a couple of sporadic os projects badly implemented and a couple of small commercial ventures that kind-of work. On different products on different levels.

If you're going to put your eggs into one basket, make it the basket of n dimensions.

dana321··on Hard Startups
So, oh wise one, what should we all be working on?
← PreviousPage 4 of 12Next →