ALTER TABLE ADD COLUMN Is Rarely the Slow Part in Postgres: The Lock Queue Behind It Is
Adding a column in PostgreSQL usually changes only the catalog and finishes in milliseconds. It still takes the strongest lock there is, and if that lock has to wait for a long running query, every request behind it waits too. The fix is mostly about timeouts and retries.
11 Checks for a Postgres Session Stuck Idle in Transaction and Blocking Everyone Else
A session marked idle in transaction is doing nothing, and that is the problem: it keeps every lock it took, pins a connection and can hold back vacuum. Eleven checks to find the holder, measure the damage, terminate it safely and set timeouts at the right layer.
How to Find Out Why OpenTelemetry Traces Are Not Showing in Jaeger, One Hop at a Time
When the Jaeger search page stays empty, the span was lost at one of five hops: SDK, processor, exporter, Collector or Jaeger itself. This guide walks each hop with the check that proves it, a table of symptoms and a formula for spans dropped during outages.
How to Set and Evaluate a RAG Abstention Threshold, Step by Step
A RAG assistant that never says it does not know will eventually invent a policy. One that abstains too often gets ignored. This guide shows how to choose the abstention threshold with a labelled set, a threshold sweep and an explicit price for each kind of error.
Step by Step: Reading a Crashed Container's Logs With kubectl logs --previous, and Where Those Logs Disappear
kubectl logs --previous reads one file on one node: the log of the last terminated run of one container. This step-by-step teardown shows how to use it on a crashed container, why it sometimes returns nothing and how to keep crash evidence longer.
Linux OOM Killer Killed Your Process? 3 Ways to Stop It Happening Again
Your process vanished and the kernel log says Out of memory. This memo walks through confirming which killer fired, how Linux chooses its victim, why overcommit lets it happen, and three ways to stop it recurring, with a comparison table and the mistakes that make it worse.
Kubernetes Service Not Reachable From Another Pod: Fix It on Day 1, Keep It Fixed by Day 2
When one pod cannot reach a Service, the cause sits in one of five layers: DNS, ready endpoints, port mapping, the app's bind address or NetworkPolicy. Day 1 finds the failing layer from a debug pod; day 2 adds tests and alerts so the next one is obvious.
Why Not Just Kill Whatever Tops the List? Finding the Linux Process That Really Uses 100% CPU
A process at 100 percent in top is using one full core, not the whole machine, and ps may be showing a lifetime average. This tutorial finds the real consumer with top, pidstat and /proc, then goes down to the thread and the code path.
Kubernetes CPU Throttling Despite Low Usage: How a 100 ms Budget Runs Out in 12, and the Cheap Fixes Before Bigger Nodes
A pod averaging 20 percent of its CPU limit can still spend a third of its periods throttled. This guide explains the CFS quota mechanism, the metrics and cgroup files that prove it, a decision tree for the fix, and the mistakes that send teams shopping for bigger nodes.
Break the Six-Second CV Rule: A Screening Checklist for Hiring Managers Building Tech Teams in Portugal
Hiring managers in Lisbon and Porto screen CVs from dozens of countries, in different formats, with different visa needs and salary conventions. This checklist breaks the usual screening rules, adds a pipeline formula with a worked example, and shows an illustrative Porto case.
How to Stitch AI-Generated Video Clips Together Without Pain: Teardown of a 45-Second Hiring Video
A 45-second employer video for a Porto engineering team mixed 6 AI-generated shots with 5 phone-filmed interviews. The first cut showed 3 obvious seams. This teardown follows each seam to its cause and the fix, with ffmpeg commands and the arithmetic of handles.
Lessons Learned About On-Call Alert Noise: Fewer Pages, Faster Response, Better Sleep
Noisy alerts do more damage than missing ones: they teach on-call engineers to ignore the pager. These lessons cover how to audit a month of pages, replace threshold alerts with SLO burn rate alerts, group and inhibit in Alertmanager, and assign an owner to every rule.
The truth about Terraform recreating a resource on every apply: the plan is telling you exactly why
When every plan ends with the same destroy and create, Terraform is not confused. Some value feeding an immutable argument changes or stays unknown on each run. Here is how to find that value in the plan and which fixes actually hold.
The Fastest Way to Fix a PgBouncer Connection Pool Exhausted Incident Is Not a Bigger Pool
Clients waiting in PgBouncer usually mean server connections are held too long, not that the pool is too small. A field guide: what SHOW POOLS tells you in the first minute, how to find idle-in-transaction holders, Little's law for sizing, an illustrative incident and a checklist.
nginx Is Not Dropping Your WebSockets at Random: It Is Enforcing a 60-Second Rule
A WebSocket that dies behind nginx is rarely a mystery. Either the handshake never upgraded because nginx dropped two headers, or an idle timer closed a quiet connection after 60 seconds. Here is how to tell which one you have and what to change.
Machine Learning in iGaming: 10 Examples, and the Alternative Routes Into Each One for Engineers in Portugal
Most iGaming operators say they use AI. Fewer can show a model with an owner and a monitoring plan. Here are 10 machine learning examples from the industry, the work behind each one, and five alternative roles that lead into it for engineers based in Portugal.
Why Not Use AI-Generated Content Commercially in Portugal? Mostly You Can, and Here Is Where the Answer Changes
Companies in Portugal can use AI-generated text, images and code commercially in most situations. The risk sits elsewhere: output you may not own, disclosure duties under the EU AI Act, and recruitment uses that the Act treats as high-risk. This analysis shows where each applies.
One Small Change Before pandas merge That Stops the _x and _y Columns From Coming Back
Renaming _x and _y columns after a pandas merge treats the symptom. The suffixes mean two tables share a non-key column, and that is a decision about keys or sources. Here is the procedure, a case from a data take-home exercise and the one change that keeps joins clean.
5 Things the System Prompt of an HR Helpdesk Bot Must Settle Before Employees Trust It
An internal HR bot answers questions about pay, leave and relocation for people who will act on the answer. Here are the five things its system prompt must settle, a table of weak and strong lines, and a simple score to test it before launch.
The Overlooked Charges in a GCP Cloud Storage Class Cost Comparison
Archive looks 16 times cheaper than Standard per gigabyte. For backups you delete after a month, it is not. This comparison adds minimum storage duration, retrieval, operations and egress to the price list and shows when each Cloud Storage class wins.
Check These Things Before You Blame the Model: Why ChatGPT Ignores Part of Your Instructions in Hiring Work
When a model skips a rule, the cause is usually the prompt: too many rules, the key one buried in the middle, two rules in conflict, or a rule the model cannot verify. An analysis for recruiters and tech teams in Portugal, with an illustrative case and a decision tree.
Do This When Docker Cannot Connect to the Daemon at /var/run/docker.sock
The message 'Cannot connect to the Docker daemon at unix:///var/run/docker.sock' is a client problem report. Work through four checks in order: is dockerd running, can your user open the socket, is the client pointed at the right address, and is the environment the one you think it is.
A headcount-first framework for build vs buy AI in iGaming: what each option costs in people, months and hiring risk
Most build vs buy debates about AI in iGaming compare licence fees with engineering estimates and skip the hardest part: hiring. This framework counts the minimum team, the employer cost in Portugal, the months to hire, and what buying still requires.
SSH Connection Refused on Port 22: Lessons Learned From Debugging the Wrong Layer
Most people treat connection refused like any other SSH failure and start with cloud firewalls and keys. A refusal is a reply from a machine, which rules out half the usual suspects. These lessons cover what the reset means, where it comes from and how to fix it safely.
Break the Raise Xmx Rule: Fixing Java Heap Space Out of Memory Errors in Jenkins Pipelines by Finding the Right JVM First
When a Jenkins pipeline fails with java.lang.OutOfMemoryError: Java heap space, the usual reflex is to raise the controller heap. Often the failing JVM is Maven, Gradle or a test fork on the agent instead. Here is how to find which one ran out and fix it properly.
7 Tests That Separate a SEV1 From a SEV2 and a SEV3
Severity scales usually fail at the moment they are needed, when two engineers argue SEV1 or SEV2 while customers wait. Definitions built on measurable impact, a short sequence of tests and a burn-rate formula end most of those arguments.
Self-Hosted LLM vs API Cost Breakeven: The Edge Cases Where the People Cost Decides
Most self-hosting estimates price the GPUs and forget the people. With 14 salary payments a year and employer social security on top, the engineering share of a self-hosted LLM in Portugal often outweighs the hardware. A calculator, the edge cases and a decision tree.
Why a GitLab CI job passes locally but fails in the pipeline: the mechanism behind the gap
When a test is green on your machine and red on the runner, the code is usually fine and the environment is not. This analysis breaks the gap into six mechanisms and gives a short decision path for finding which one bit you.
Portugal and Spain Went Soft on Pay Transparency in Hiring. Don't
Portugal's draft lets employers share the pay range only before the contract; Spain's says nothing on hiring. Why that is a trap, and what to fix before 2027.
Portugal Probation Period for Senior Tech Hires: 90, 180 or 240 Days?
The job title decides nothing: Portuguese probation of 90, 180 or 240 days follows the role's real authority. A decision table, a dated day tracker with notice thresholds and a pre-start file.
RAG Abstention Tests: Build a No-Answer Set and CI Threshold
Testing RAG abstention with versioned no-answer cases: calibrate the answer threshold, read the confusion matrix, and let CI block releases that answer when they should not.
EOR vs Portuguese Entity for Your First Seven Tech Hires
An EOR gets Portuguese engineers working next week; an entity costs less only after break-even. A seven-hire cost model (EUR 54,600 vs 30,050 on sample inputs), break-even maths, a route tree and a source-date ledger.
Claude Code Worktrees for Parallel Agents: Merge Order and Review Gates
Coordinate Claude Code agents in isolated Git worktrees with merge order, review gates, a task manifest, and an executable test check for reliable releases.
Claude Code Session Handoff: When to Resume, Compact, or Start Fresh
The code survives a Claude Code session; the reasons rarely do. When to resume, compact or start fresh, with a HANDOFF.md template, a state-capture script and a verification-coverage metric.
Build a RAG Citation Regression Test for CI/CD
Build a CI gate that tests RAG retrieval, source-span citations, and answer faithfulness, then fails pull requests when citation drift crosses limits.
Claude Code MCP Failed to Connect: Troubleshoot Every Status
Diagnose Claude Code MCP failures by status, from Failed to connect through authentication, approval, and tool fetching, with targeted fixes.
Claude Code MCP Scopes: Local vs Project vs User
One MCP server name can live in three scopes at once, and local beats project beats user. Where each scope stores its declaration, the four ways repo safety breaks, and when to move a server into .mcp.json.
Claude Code MCP Setup: A Listed Server Is Not a Working One
A listed MCP server is not a working one. Register local stdio and remote HTTP servers in Claude Code, complete OAuth in the session, and keep a one-page proof artifact with a negative test per write action.
Teaching on the Side in Portugal: The Unit Economics Behind a €30 Lesson
A €30 lesson can pay about €7 an hour. Acquisition cost, three delivery models, a worked four-lesson case, a price-floor formula and the recibos verdes reserve that side teaching in Portugal needs.
Onboarding Remote-First Hires Through a Portugal Entity
A signed offer and a Slack account are not onboarding. Record the habitual work country, set up payroll and insurance before access, write the telework terms and keep the file through probation.
Contractor vs Employee in Portugal: Misclassification Risks for Tech Teams
An invoice does not settle employment status in Portugal; Article 12 reads the relationship. The five statutory signs, how Jira and Slack records show control, and a reclassified year that nears €19,000 on a €3,000 profile.
How to Build a Portugal Tech Compensation Benchmark Candidates Trust
Build a Portugal tech compensation benchmark that candidates can verify, compare by role and city, and use without mistaking estimates for offers.
Employer Branding in Lisbon: Five Contradictions That Cost Offers
Lisbon candidates judge an employer before reading its careers page. The five contradictions that cost offers, a pay line that survives comparison, and the acceptance-rate maths behind a 90-day audit.
Relocation Packages for Tech Hires in Portugal (2026): A Plan, Not a Bonus
A relocation package is a written plan, not a signing bonus. Visa milestones, housing on a calendar, family support, an illustrative €13,550 envelope for a Lisbon move and a sliding-scale clawback.
Creative Tech Hiring in Lisbon: Read the Work, Not the CV
Lisbon's best creative technologists rarely look right on paper. Where to source them, a five-line portfolio scorecard, a three-hour trial cap and a panel rule that stops averages hiding a veto.
Hiring iGaming Teams in Portugal: Plenty of Talent, Few Operators
Portugal has iGaming talent but not an operator bench. Which profiles are scarce, a pay index from 90 to 150+, the €91,000 loaded cost of one senior hire and the four clocks of a search.
What a Product Hire Should Prove Before the Offer
Most bad product hires look fine for 30 days. A one-page decision brief, a traced-decision interview, a funnel case with a mid-case twist, an anchored scorecard and references aimed at residual risk.
Interview Loop Design for Tech Roles in Portugal: One Signal per Interview
An undesigned interview loop measures the room, not the candidate. Five stages in evidence order, one signal per interviewer, a language rule, a four-point scale and the 20 panel-hours behind each hire.

Why iGaming Companies Choose Portugal in 2025
Portugal's online gambling market passed €1.1 billion in 2025 with 18 licensed operators. Regulation, talent, tax and timing for operators building iGaming teams in Lisbon, and what hiring there takes.

How to Hire an Affiliate Manager in Portugal in 2026, Before Malta Does
An affiliate manager in Portugal costs about €45,000 a year fully loaded. Pay bands, the skills that matter, where passive candidates are, and a four-week search that beats Malta and UK offers.

Prompt Engineering for Tech Recruiters in Portugal 2026: Six Prompts With Salary and Visa Built In
Ready-to-use AI prompts for tech recruiters hiring in Portugal in 2026: job descriptions for senior Python roles in Lisbon, LinkedIn outreach and résumé screening tuned to the local market.

Legal Aspects of Employment Contracts in Portugal 2026: Where Foreign Employers Lose Claims
A Portuguese contract is read twice: by the candidate before signing and by a judge if it ends badly. Contract types, bonus wording, overtime maths, probation, notice and visas for foreign employers.

How to Hire Top Tech Talent in Portugal in 2026: Speed Beats the Highest Bid
Sourcing channels, salary benchmarks, interview structure, visa options and closing tactics for hiring tech talent in Portugal in 2026, when good candidates hold several offers.

Hiring Challenges for International Companies in Portugal 2026 and How to Overcome Them
Portugal's tech hiring market in 2026 is tight: unemployment near a two-decade low, shortages in senior AI, data, cloud and security roles, longer time-to-hire, rising pay, and current Lisbon and Porto salary benchmarks.

Cost of Hiring in Portugal 2026: Why €50,000 Gross Costs €66,600
The real cost of a tech hire in Portugal in 2026: gross salary, 23.75% employer social security, 13th and 14th month pay, benefits, and how Lisbon compares with Porto.

How to Hire AI/ML Engineers in Portugal Before a Faster Offer Lands
ML engineers in Lisbon cost €47K-€62K and hold several offers. Which profile to hire, how to source by contribution, a ten-day interview loop and what keeps the hire past probation.

Tech Giants Are Choosing Portugal: Billion-Dollar Investments in AI and Cloud
Microsoft is putting $10 billion into an AI campus in Sines, and AWS, Oracle and Google are expanding too. Why Portugal is turning into a European AI and cloud hub, and what that means for local businesses.

IT Job Market in Portugal 2026: Senior Talent Is the Scarce Part
Unemployment sits near 6%, yet senior cloud, AI and security engineers are priced against Berlin. Sectors, scarce roles, salary bands and how offers really get filled in Lisbon and Porto.

How to Find an HR Specialist in Portugal Who Can Do the 14-Payment Maths
Portugal pays most salaries in 14 instalments. Where to find HR specialists in Lisbon and Porto, the pay formula they must run on the spot, and five interview probes a CV cannot answer.

Fractional Directors in 2026: Which Seat Fixes Which Bottleneck
Fractional CAIOs, CHROs, CROs, CGOs and ESG directors each fix one constraint and fail on another. Worked costs, a five-question CRO test and the authority rule that decides whether any seat works.