Server vs Serverless, the actual difference:
A server is a machine you rent that runs all day. Your code starts once and sits in memory, waiting.
Serverless keeps nothing running. A request arrives, the provider starts a copy of your function, runs it, and throws it away.
Everything else follows from that. Idle costs you nothing, but nothing survives either: no cache in a variable, no open connection, no job ticking in the background.
Traffic that comes in bursts wants serverless. Traffic that never stops wants the server.
Googlebook is officially here! Iβve been so excited to share the details with the world.
Today, many of us rely heavily on laptops to get work done, but we think there is an opportunity to rethink the category to address the needs of people today. So we brought the best of ChromeOS and Android to create a new platform for laptops.
Our initial focus with Googlebook is to deliver an amazing laptop that feels awesome for Android phone users.
Hereβs what to know about Googlebook π§΅π
@TheAhmadOsman wild how fast this happened. those flash models + the 27b qwen already beating what was frontier just 10 months ago. open source is actually cooking
Use pgvector if your search needs to understand meaning, not spelling.
A user searches for healthy breakfast, but your row says oats with banana. No shared words, so trigram gives you nothing.
An embedding model reads each row and turns it into a long list of numbers, a vector. Rows that mean similar things end up with similar numbers, so oats with banana lands close to healthy breakfast.
Postgres sorts by the distance between those numbers, so the closest meaning comes back first.
That's what pgvector gives you.
Two users tap Book on seat 12A in the same millisecond.
Your code checks whether the seat is free. For both of them, it is.
Both inserts commit. Two people now own 12A, and your app told both of them yes.
The check was never wrong. Another transaction committed in the gap between your SELECT and your INSERT.
Your turn:
Seat reads as free for user A β
Seat reads as free for user B β
Both writes commit β
Your app reported success twice β
Where do you put the rule so the database decides this, not your code? π
SOLUTION:
One unique index on (flight_id, seat_no). The second insert then fails with SQLSTATE 23505, unique_violation.
Catch it and show seat taken. No lock, no retry loop, no second round trip.
SELECT then INSERT can never hold: another transaction is always allowed to commit in the gap.
Those who are wondering, I am Nandakishor M, the creator of Laya, now competing against Jev. Just a simple guy from a small village in Kerala just teaching generative AI to everyone through instagram!!!
https://t.co/RUDHClGM5T
Use trigram indexes if youβre doing fuzzy search in Postgres.
A user types spagetti bolognaise, but your database has spaghetti bolognese.
Trigram search breaks the text into overlapping 3-character chunks for example, spagetti becomes spa, pag, age, get, ett, tti, while spaghetti contains many of the same chunks.
Postgres compares this overlap to calculate how similar the strings are, so even with a typo, the correct result can still be found.
Thatβs the magic behind pg_trgm.
Hey @X team, I found a bug while reading an article. When I press the back button, half of the page gets stuck between the login screen and the article. Please look into this.
DUDE WTF?? ... Now you can easily share your localhost with anyone using this FREE service by Cloudflare. π€―
Simply run one command and you're done.
No account. No complicated setup. No port forwarding.
Perfect for sharing local projects, testing webhooks, showing clients your work, creating quick previews, and letting AI agents access your local apps :)
Follow me for more amazing AI, Coding & Web Dev insights π
Built a resume ranker on Jev π
Drop in 120 resumes, write the role as plain lines, and Jev ranks everyone against it.
Scoring is per line. Jev returns how likely each requirement is met, must-haves gate you outright, everything else is weighted into one score.
#Jev #TypeSafeAI
Built a resume ranker on Jev π
Drop in 120 resumes, write the role as plain lines, and Jev ranks everyone against it.
Scoring is per line. Jev returns how likely each requirement is met, must-haves gate you outright, everything else is weighted into one score.
#Jev #TypeSafeAI
Built a resume ranker on Jev π
Drop in 120 resumes, write the role as plain lines, and Jev ranks everyone against it.
Scoring is per line. Jev returns how likely each requirement is met, must-haves gate you outright, everything else is weighted into one score.
#Jev #TypeSafeAI
@PaddleHQ it's been 10 days since we signed up and we still can't go live.
Emails to help@ and sellers@ haven't had a reply yet.
Could someone from support check our account? Thanks!