HNHacker News
TopNewBestAskShowJobs

samsk

440 karma · joined December 11, 2014

backend developer, automation expert, SQL positive
submissionscomments
samsk··on Great CPAN modules released last week
Whats important, its only 'love' a.k.a. no major API change twice a year, as in many of those 'modern' languages.

And its no past for me !-)

samsk··on Show HN: Boulette - Protect you from yourself (even as root).
I've a shell alias for this, requiring valid hostname for reboot, halt etc...
samsk··on Switched Back to Windows After over 10 Years on Linux
I left windows 7 (with payed updates) for linux last year.

The reason: I want my system to just work, to not switch UI every other year or month, to not require ultra total upgrades twice a year, to not hog cpu to download and install some multigigabyte upgrade, to not start updating when I immediatelly need to fix my crashed webserver, to not hide basic settings from me etc...

I've win10/win11 on other mostly browsing only laptops, where I can ignore that OS is actively preventing me from using my device, but I can't have this on my 'prod' machine.

samsk··on Brainfuck Enterprise Solutions
BF is slightly hard to read, more like a well written Perl.

IMHO any solid enteprise should use Ook! or similar substitution - power of Perl, with verbosity of COBOL !

https://esolangs.org/wiki/Ook!

samsk··on In a leaked recording, AWS CEO tells most developers could stop coding soon
I'll be afraid when AI takes a bug report with that typical one sentence problem description (like 'Paypal payments are not being processed, we loose 30k a day'), and fixes the problematic one line of code that the AI wrote before.
samsk··on Full text search over Postgres: Elasticsearch vs. alternatives
Yes, it always depends on application and purpose.

But once you will have to deal with a real FTS load, as you say, you have to use separate instances and replication, use materialized views etc.. and you find your self almost halfway to implementing ETL pipeline and because of replicas, with more complicated setup than having a FTS tool. And than somebody finds out what vector search is, and ask you if there is an PG extension for it (yes it is).

So IMHO with FTS in database, you'll probably have to deal with the almost same problems as with external FTS (materialized views, triggers, reindexing, replication, migrations) but without all its features, and with constrains of ACID database (locks, transactions, writes)...

Btw. I've SOLR right behind the OpenResty, so no hops. With database there would be one more hop and bunch of SQL queries, because it doesn't speaks HTTP (although I'm sure there is an PG extension for that ;-)

samsk··on Full text search over Postgres: Elasticsearch vs. alternatives
PostgreSQL is over 90GB, SOLR is under 1GB.

The PostgreSQL has to handle writes, reports, etc..., so I doubt it will cache as efficiently as full-text engine, you'll need to have full or partial replicas to distribute the load.

And, yes, I agree, almost all of this can be done with separate search table(s), but this table(s) will still live in a 'crowded house', so again replicas will be probably necessary at some point.

And using replicas brings new set of problems and costs ;-)

One client used MySQL for fulltext search, it was a single beefy RDS server, costing well over $1k per month and the costs kept raising. It was replaced with a single ~$100 EC2 machine running Meilisearch.

samsk··on Full text search over Postgres: Elasticsearch vs. alternatives
For internet user facing full-text search I would always prefer to use a separate tool and not a SQL database, because

- the fulltext tool, can and should hold only 'active' data

- as it has only active data, data size is usually much much smaller

- as data size is smaller, it better fits in RAM

- as data size is smaller, it can be probably run on poorer HW the full ACID db

- as the indexed data are mostly read-only, the VM where it runs can be relatively easily cloned (never seen a corruption till now)

- as FTS tools are usually schema-less, there is no outage during schema changes (compared to doing changes in ACID db)

- as the indexed data are mostly read-only, the can be easily backup-ed

- as the backups are smaller, restoring a backup can be very fast

- and there is no such thing as database upgrade outage, you just spin a new version, feed it with new data and than change the backends

- functionality and extensibility

There is probably more, but if one doesn't needs to do a fulltext search on whole database (and you usually don't), than its IMHO better to use separate tool, that doesn't comes with all the ACID constraints. Probably only downside is that you need to format data for the FTS and index them, but if you want run a serious full-text search, you will have to take almost the same steps in the database.

On a 15y old side project, I use SOLR for full-text search, serving 20-30k/request per day on a cheap VM, and PostgreSQL is used as primary data source. The PostgreSQL has had several longer outages - during major upgrades, because of disk corruption, because of failed schema migrations, because of 'problems' between the chair and keyboard etc... During that outages the full-text search always worked - it didn't had most recent data, but most users probably never noticed.

samsk··on Ask HN: Freelancer? Seeking freelancer? (August 2024)
SEEKING WORK | Remote | Worldwide (EU-based, GMT+1) | Part-Time/Full-Time

Backend developer, SQL expert, Technical lead, Architecture consultant (CTO for hire), DevOps engineer with 15+ years of experience on multiple projects and multiple roles..

Language: English, German

Areas of expertise:

* Fulltext/geospatial search systems with SOLR/ElasticSearch/...

* Cloud/On-premise asset inventory (CI creation) for ITSM systems (with https://github.com/cloudinventario/cloudinventario)

* HA Prometheus monitoring systems integration with ITSM systems (preferably iTop), with monitoring configuration over ITSM, CI discovery, autoconfiguration...

* ETL pipelines (data collection, transformation, enrichment, BI reporting...), DWH Building

* API Gateways (Kong, Apisix, OpenResty...)

* Automation with Ansible / Terraform

* SQL data model and query optimization

* Open source systems integration, glueing together MVP using various open source components

* Skills: Perl, C, Bash, Python, Lua, Go, Java, NodeJS, PHP...

Github: https://github.com/samsk/

Email: ja.hn4[at]mailgw.com

samsk··on Investors Pour $27.1B into A.I. Startups, Defying a Downturn
Web 3.0 failed, lets pour the money in the new black hole ;)
samsk··on Ask HN: Does having a betting/gambling company in your CV hurt your career?
I've worked for several betting companies, and I don't think it hurt me anyhow. And once you have experience with the industry, other betting companies are more likely to pick you when hiring. The same is true for banking (but probably also other industries).
samsk··on Ask HN: Freelancer? Seeking freelancer? (May 2024)
SEEKING WORK | Remote | Worldwide (EU-based) | Part-Time/Full-Time

Backend developer, SQL expert, Technical lead, Architecture consultant (CTO for hire), DevOps engineer with 10+ years of experience on multiple projects.

Language: English, German

Areas of expertise:

* SQL data model and query optimization

* Fulltext/geospatial search systems, with autocomplete, REST/GraphQL APIs on SOLR or Elasticsearch

* Cloud/On-premise asset inventory (CI creation) for ITSM systems (with https://github.com/cloudinventario/cloudinventario)

* HA Prometheus monitoring systems integration with ITSM systems (preferably iTop), with monitoring configuration over ITSM, CI discovery, autoconfiguration...

* ETL pipelines (data collection, transformation, enrichment, BI reporting...), DWH Building

* API Gateways

* Automation with Ansible / Terraform

* Open source systems integration, glueing together MVP using various open source components

* Perl expert ;-)

Github: https://github.com/samsk/

Email: ja.hn4[at]mailgw.com

samsk··on AI made these movies sharper – critics say it ruined them
Maybe I'm old, but do we really watch the movies because they are sharper, have vivid colors, etc or because of the story ?

On the other hand, I would probably pay for an AI that will 'undark' that new super artistic movies, because some of them, have worse lighting than the Blair With Project...

samsk··on Your database skills are not 'good to have' (2023)
This! You come to a fintech to review 'some' performance issues and find a stupid data model and transaction processing completely ignoring how databases work and what limitations that concrete database has ! But hey, look, we used this shiny tech and that newest stack, where is the problem ???
samsk··on Why are there suddenly so many car washes?
Ouch, just remembered I've missed my regular yearly car wash. Don't tell I should do such a unnecessary and time consuming thing more often.
samsk··on Meta's new LLM-based test generator
Finally some AI Codegen, that makes sense to me.
samsk··on Magic AI Secures $117M to Build an AI Software Engineer
Yeah, lets imagine that magic:

Prompt: AI, production is down. Fix it. AI: working...

3 days later.

CEO: Hey, dear contractor, our Production is down for 3 days - can you fix it ? Contactor: Sure, give me $500/hour and within 3 weeks it might work again. You know, you have 10mio SLOC, 1mio npm dependencies so it will take a 'bit' longer...

Yes, its bit oversimplified, but imagine it ;)

samsk··on 23andMe's Fall
Omg, how can a company doing genetic test burn $1.4b ? Altought better question might be, how could it be worth $6b ? :-)
samsk··on Lie About Your Birthday
I enjoy using 1 of April as fake DoB. This way I even make an instant joke on social sites, that do make reminders to other about friend's birthdate.
samsk··on Order/license chaos for VMware products after Broadcom takeover
Proxmox is quite good, it's not VMWare, but hey, it's not VMWare ;-)
samsk··on Why is my LG Washing Machine using 3.6GB of data/day?
I put all these 'smart' devices on separate network (wifi) that has adguard home as resolver. It makes ir relatively easy to identify what is which device talking to and even block it.
samsk··on When the natural gas industry used the playbook from Big Tobacco
it's incredible how almost anything in the US (but not only) can be turned to a new battlefield in the 'cultural war'. Like we are all rich, healthy, employed etc..., no one is suffering - right ?, so let's take care of this another stupidity a make a million posts about it on social networks....
samsk··on Show HN: DoltgreSQL – Version-Controlled DB, Like Git and PostgreSQL had a baby
Hmm, when choosing database solution for a new project I'm not selecting sql dialect (like postgresql sql), but stability and ecosystem. So having this as an extension to postgresql, and possibility to combine it with other extensions it would be great, but reimplementation is a no go here.

And I can not use it for existing projects, because again extensions, and I surely don't want to findout how your implementation differs from the mainstream postgres...

samsk··on Tips for programmers to stay ahead of generative AI
I'll start to be afraid, when ChatGPT or anything similar will take a vague Jira issue, simulate described bug and then make a fix for it ;-)

But seriously, what developers do most of their time is maintanace, they spend a day searching for a bug, just to write maybe one line of code to fix it.

samsk··on [dead]
Servers with dedicated Intel® vCPUs are deprecated

Starting on 18 July 2023, all server plans with Intel® vCPUs (CCX11, CCX21, CCX31, CCX41, CCX51) will no longer be available for order. Existing servers are not affected by this deprecation and they will continue to work. If you want to migrate an existing server with Intel® vCPUs to a server plan with AMD vCPUs, you can use the rescale option.

samsk··on World’s last dedicated Meccano factory to close in France
Fun fact: Merkur was used to build world first machine for casting soft contact lenses :)
samsk··on Elementary schoolers prove EpiPens become toxic in space
Hmm, isn't this equivalent to finding out: Almost anything _unshielded_ and exposed to radiation will will become poisonous ?
samsk··on Ask HN: EU Bank with Good API?
FIO Bank

https://www.fio.cz/bank-services/internetbanking-api

samsk··on Ask HN: Self-hosting in 2023: Nextcloud on Linode, or...?
Hetzner has a hosted 1TB Nextcloud for ~$5 a month. IMHO with that price, it makes no sense to selfhost it.

https://www.hetzner.com/storage/storage-share

samsk··on Russia to Withdraw Troops from Kherson
I've also a good and old one: Russia has lost 15000 troops, 6 generals, 500 tanks, 3 ships, 100 planes and 1000 trucks. NATO hasn't arrived yet
← PreviousPage 2 of 4Next →