on-internet

How to Configure Git Hooks: Stop Pushing Secrets and Broken Commits

The first time I watched a teammate push an AWS access key to a public GitHub repo, I learned two things. First, GitHub's secret scanning alerts are fast - we got the email in 47 seconds. Second, the team had a pre-commit hook that should have caught it. It just wasn't installed on her laptop, because hooks don't sync with the repo, and nobody had set up a way to make them sync. The four hours we spent rotating keys, scrubbing git history, and notifying downstream forks could have been prevented by 30 lines of YAML and a one-line install command. Git hooks are the last line of defense between

I blocked our own fonts on all 38 pages: 30 per cent of the text moved, and the layout shift went to zero

Notifio self-hosts its fonts, not for privacy points but because next/font/google broke on an ampersand and the two woff2 files ended up committed to the repo. Since then I have written about what is inside them and which pages preload them. What I had never looked at is the other half of the mechanism: the fallback. next/font writes a second @font-face for each family, pointing at a font already on your machine, with the metrics bent to match the one being downloaded. It is the thing that is supposed to make the swap free. This post measures whether it does. Five font-face rules, three of the

Qindra mijëra banorë pa energji elektrike në SHBA, pas stuhive të fuqishme

Qindra mijëra amerikanë kanë mbetur pa energji elektrike, pasi stuhi të fuqishme goditën të dy brigjet e Shteteve të Bashkuara gjatë festës së Falënderimeve.Të enjten, rajonet lindore të vendit u përballën me një stuhi të fuqishme, që u shoqërua me erëra të forta, reshje intensive...

How to Compress PDFs in the Browser Without Uploading Them Anywhere

You're about to email a 40 MB contract draft to outside counsel. Outlook bounces it. Gmail quietly downgrades the link. The other side fires back asking for a Dropbox upload. None of those options feel right when the file contains settlement terms, employee reviews, or a draft acquisition that hasn't been announced. Cloud-based PDF compressors promise a quick fix, but they ask you to hand the same sensitive file to a stranger's server. Most pretend they delete it after an hour. Some hold onto it longer. A few — the ones that run on shaky SaaS stacks — don't get a clean deletion at all. There's

Messenger --concurrency in Symfony 8.2: What the First Message of Every Class Costs You

You upgraded to Symfony 8.2, replaced four messenger:consume processes with one --concurrency=4, and the dashboard looks better: one connection to the broker instead of four, one process to supervise. Then a deploy restarts the worker, and for a minute the short messages that used to take half a second sit in the queue while three of the four children do nothing. The cause is a design decision in the new parallel worker. It cannot know whether a handler batches until it has run one message of that class, so the first message of every bus, transport and class combination runs alone, as a probe.

Одржан скуп подршке Драгану Ј. Вучићевићу испред Централног затвора

Испред Окружног затвора у Београду одржан је скуп подршке власнику и главном и одговорном уреднику ТВ Информер Драгану Ј. Вучићевићу, коме је одређен притвор до 30 дана. Окупили су се грађани, чланови породице, запослени на ТВ Информеру и посланици посланичке групе "Србија побеђује“.

Obfuscating CsvHelper without breaking column headers

CsvHelper is the default answer for CSV in .NET, and it earns that by hiding the tedious part: you hand it a DTO and it figures out the columns. The way it figures them out is the part that collides with an obfuscator. When CsvHelper needs a column header for a member — to write the header row, or to find that member's column when reading — its default source for that header is the member's own name. public string FirstName becomes a column headed FirstName. That derivation reads the member's metadata name at runtime, and an obfuscator's whole job is to replace that name with a. So the moment

Od januara do oktobra prebivalište u BiH odjavilo 1.658 osoba

Od januara do oktobra ove godine prebivalište u Bosni i Hercegovini (BiH) odjavilo je 1.685 osoba, koje su otišle živeti u inostranstvo, a gotovo trećina njih preselila se u Hrvatsku, objavila je danas Agencija za identifikaciona dokumenta, evidenciju i razmenu podataka (IDDEEA) BiH.

Your WooCommerce Checkout Is Slow for a Reason Your Cache Plugin Can't Fix

A shop owner came to us last month with a strange problem. His homepage scored 95 on PageSpeed Insights. His product pages loaded in under a second. But his checkout took six seconds — and one in five customers who reached it never finished buying. He had tried the usual fixes — a cache plugin, a CDN, compressed images. None of it touched the checkout, because checkout is the one page on a store that cannot be cached. Why caching can't save checkout A page cache works by saving one finished copy of a page and handing that same copy to every visitor. That is fine for a product page, because eve

Κέρκυρα: Συνελήφθη 17χρονος για κλοπή δύο οχημάτων

Στη σύλληψη ενός 17χρονου, ο οποίος κατηγορείται ότι αφαίρεσε δύο οχήματα σε δύο διαφορετικές περιπτώσεις, προχώρησαν την Πέμπτη αστυνομικοί του ΑΤ Νότιας Κέρκυρας. Οι κλοπές σημειώθηκαν από το απόγευμα της… Κέρκυρα: Συνελήφθη 17χρονος για κλοπή δύο οχημάτων - Η ΝΑΥΤΕΜΠΟΡΙΚΗ

伊拉克總理打擊石油走私 川普發文力挺

(中央社華盛頓27日綜合外電報導)美國總統川普今天表示,他支持伊拉克總理柴迪(Ali Faleh al-Zaidi)將庫德斯坦自治區邊境關卡及數座油田收歸聯邦政府管轄的作法,以打擊石油走私。

The whole design of our 523-page site is 10,067 bytes of hand-written CSS, 423 selectors, not one id, and two class names that style nothing

Munchable's website is 523 URLs. There is no Tailwind in it, no CSS-in-JS, no component library, and no PostCSS plugin beyond what Next installs for itself. There is one stylesheet, written by hand, and a second one for the admin pages behind the login. I have spent enough of this year writing audits of other people's frameworks that I thought I should point the same instruments at the thing I actually control. Here is everything in it, counted. The totals app/globals.css 3,154 lines 445 rule blocks 493 selectors (423 distinct) app/admin/admin.css 999 lines 145 rule blocks 149 selectors (136 d

Fifty email templates on our site are rows in an array, a unit test proofreads them, and not one contains an exclamation mark

Nakodo's public pages are typed objects rather than MDX, which means a page is an array of blocks and a block is a member of a union: export type Block = | { type: "p"; text: Rich } | { type: "list"; items: Rich[]; ordered?: boolean } | { type: "steps"; items: { title: string; text: Rich }[] } | { type: "table"; caption?: string; head: string[]; rows: Rich[][] } /** A message the reader can copy. `subject` empty for direct messages. Use [Brackets] for the parts to fill in. */ | { type: "template"; label: string; subject?: string; body: string } | { type: "callout"; title?: string; text: Rich }

Dam olish kunlari Toshkentda qayerlarga borish mumkin? (28 va 29-noyabr)

“Bedarak” va yana 6 ta premyera, “Workers” jamoasi rep konserti, Hamnafas inklyuziya va teng imkoniyatlar festivali, “Uyimning soyalari” audiospektakli, “Keramistan” va boshqa ko‘rgazmalar, spektakllar hamda boshqa tadbirlar.

‘Het mooiste was dat hij uiteindelijk vroeg: mag ik je zoenen?’

Annemieke (40) en Piet (43) van den Bosch werken respectievelijk drie en vier dagen per week en hebben drie zoons. „We zouden met vijf dagen meer geld kunnen verdienen, maar ik vind het belangrijker om mooie herinneringen met de kinderen op te bouwen.”

Sebenernya Kita Ini Ngejar Apa Sih?

Kadang hidup itu kaya lomba tanpa garis finish. Orang-orang di sekitar kita sibuk banget berlari. Continue reading on Medium »

ਅਸੀਂ ਇੱਕੋ ਸਮੇਂ ਕਈ ਕੰਮ ਕਰਨ 'ਚ ਅਸਮਰੱਥ ਕਿਉਂ ਹੁੰਦੇ ਹਾਂ, ਕੀ ਸਾਡਾ ਦਿਮਾਗ ਇਸ ਲਈ ਤਿਆਰ ਨਹੀਂ ਹੁੰਦਾ

ਮਾਹਿਰਾਂ ਦਾ ਕਹਿਣਾ ਹੈ ਸਾਡੇ ਦਿਮਾਗ ਦੀ ਸਮਰੱਥਾ ਸੀਮਿਤ ਹੁੰਦੀ ਹੈ, ਜਿਸ ਦਾ ਸਿੱਧਾ ਅਸਰ ਇੱਕੋ ਸਮੇਂ ਕਈ ਕੰਮ ਪ੍ਰਭਾਵਸ਼ਾਲੀ ਢੰਗ ਨਾਲ ਕਰਨ ਦੀ ਸਾਡੀ ਯੋਗਤਾ 'ਤੇ ਪੈਂਦਾ ਹੈ।

Older stories