agilob
- 22 Posts
- 46 Comments
agilob@programming.devto
Programming@programming.dev•GitHub: Can no longer search code without being logged inEnglish
46·3 years agoHeres the blog post about the change dated in June this year
Half year too late for that outrage anyway :)
agilob@programming.devto
Programming@programming.dev•GitHub: Can no longer search code without being logged inEnglish
12338·3 years agoFantastic way to start a shitstorm. You people don’t even use search function logged out, because if you did, you would know they changed it in 2016. Microsoft has nothing to do with it.
agilob@programming.devto
Programming@programming.dev•GitHub: Can no longer search code without being logged inEnglish
66·3 years agoYeah, fuck Microsoft. They haven’t changed at all.
GitHub changed that a few months before acquisitions talks even started lol
You’re telling me about compiling JS, to my story that is so old… I had to check. and yes, JS existed back then. HTTP2? Wasn’t even planned. This was still when IRC communities weren’t sure if LAMP is Perl or PHP because both were equally popular ;)
Blog content was stored in memory and it was served with zero-copy to the socket, so yea, it’s way faster. It was before times of php-fpm and opcache that we’re using now. Back then things were deployed and communicated using tcp sockets (tcp to rails, django or php) or reading from a disk, when the best HDDs were 5600rpm, but rare to find on shared hosting.
Before nginx was a thing, I worked with a guy who forked apache httpd and wrote this blog in C, like, literally embedded html and css inside the server, so when he made a tpyo or was adding another post he had to recompile the source code. The performance was out of this world.
You live like this?
:00-:ffEdit: Just learnt this can be also noted as:
::-::f
It compiles = it goes to prod!
agilob@programming.devto
Programming@programming.dev•I would like some advice on where to go after universityEnglish
7·3 years agoI’ve thought of doing pen testing (later on in my career), but I’ve come to realize that it is better if users just started using privacy-respecting FOSS software like Signal, because if you give a hacker enough time, patience, and the right resources, they could hack into anything.
Your idea of pentesting is so far from what it looks like in reality that it’s probably not a path for you, at least not now. Let me explain: how am I going to protect my banking app using Signal? How will I know if our JSON unmarshalling library used by transaction service isn’t vulnerable or exploitable? What FOSS software shows me live dashboards of deployed software in container and their security risk?
everybody still needs them and they’re not going away any time soon.
Bank is a civilization old concept, it has always been here and will be. Banks are so durable, they will run after our civilization ends.
agilob@programming.devto
Programming@programming.dev•What things really helped you toget better at programming?English
3·3 years agoBeing offline doesn’t mean not using a computer. I still had IDE and https://devdocs.io/ for better ctrl+f experience.
agilob@programming.devto
Programming@programming.dev•What things really helped you toget better at programming?English
4·3 years agoLearning from a documentation. Got a book, went offline and finished the book and training exercises without looking for anything online.
agilob@programming.devOPto
Programming@programming.dev•A collection of pure bash alternatives to external processes.English
273·3 years agoIt doesn’t make the content in any way out of date
agilob@programming.devto
Programming@programming.dev•What are some of the best optimizations you applied to your code?English
5·3 years agoNoticed that Hibernate session (DB ORM session) was leaking to Jackson (JSON marshalling), potentially causing infinite n+1 problem. Changing a few lines of code to lazy loading and fixing the session leak reduced our daily data transfer from DB from 5.6Gb to 170Mb.
Not sure if this was the biggest optimisation, but definitely the dumbest issue.
agilob@programming.devto
Programming@programming.dev•The German government is working on an OSS "Sovereign Workplace"English
22·3 years agoAnd because Microsoft moved their HQ to Munich
JavaScript bad.
agilob@programming.devto
Programming@programming.dev•I accidentally removed the WHERE clause from my SQL query in a personal tool. Every row is now the same. I overwrote 206,000+ rows. I have no backup, I am stupid.English
1·3 years agoI didn’t mean this as IDE thing, there is an extension to postgres and server configuration for mysql/mardiadb. Posted the links above
agilob@programming.devto
Programming@programming.dev•I accidentally removed the WHERE clause from my SQL query in a personal tool. Every row is now the same. I overwrote 206,000+ rows. I have no backup, I am stupid.English
5·3 years agoIt’s supported in MySQL and MariaDB out of box:
https://dev.mysql.com/doc/refman/8.0/en/mysql-command-options.html#option_mysql_safe-updates
In Postgres there is an extension for it:
https://supabase.com/docs/guides/database/extensions/pg-safeupdate













I don’t agree that it’s useless or misguiding. The smaller dataset, the less important it is, but it makes massive difference how the rest of the algorithm will be working and changing context around it.
Let’s say that you need to sort 64 ints, in a code that starts our operating system. You need to sort it once per boot, and you boot less frequently than once per day, in fact you know instances of the OS that have 14 years of uptime, so it doesn’t matter at all right? Welp. Now your OS is used by a big cloud provider and they use that code to boot the kernel 13 billions times per day. The context changed, time passed by, your silly bubble sort that doesn’t matter on small numbers is still there.