You are here

Agreguesi i feed

Jussi Pakkanen: Discovering a new class of primes fur the fun of it

Planet GNOME - Enj, 26/02/2026 - 11:31md

There are a lot of prime classes, such as left truncating primes, twin primes, mersenne primes, palindromic primes, emirp primes and so on. The Wikipedia page on primes lists many more. Recently I got to thinking (as one is wont to do) how difficult would it be to come up with a brand new one. The only reliable way to know is to try it yourself.

The basic loop

The method I used was fairly straightforward:

  1. Download a list of the first one million primes
  2. Look at it
  3. Try to come up with a pattern
  4. Check if numbers from your pattern show up on OEIS
  5. Find out they are not
  6. Rejoice
  7. Check again more rigorously
  8. Realize they are in fact there in a slightly different form
  9. Go to 2
Eventually I managed to come up with a prime category that is not in OEIS. Python code that generates them can be found in this repo. It may have bugs (I discovered several in the course of writing this post). The data below has not been independently validated.

Faro primes

In magic terminology, a Faro shuffle is one that cuts a deck of cards in half and then interleaves the results. It is also known as a perfect shuffle. There are two different types of Faro shuffle, an in shuffle and an out shuffle. They have the peculiar property that if you keep repeating the same operation, eventually the deck returns to the original order.

A prime p is a Faro prime if all numbers obtained by applying Faro shuffles (either in or out shuffles, but only one type) to its decimal representation are also prime. A Faro prime can be an Faro in prime, a Faro out prime or both. As an example, 19 is a Faro in prime, because a single in shuffle returns it to its original form. It is not an Faro out prime, because out shuffling it produces 91, which is not a prime (91 = 7*13).

The testing for this was not rigorous, but at least OEIS does not recognize it.

Statistics

I only used primes with an even number of digits. For odd number of digits you'd first need to decide how in and out shuffles should work. This is left as an exercise to the reader.

Within the first one milllion primes, there are 7492 in primes, 775 out primes and 38 that are both in and out primes.

The numbers with one or two digits are not particularly interesting. The first "actual" Faro in prime is 1103. It can be in shuffled once yielding 1013.

For the first out shuffle you need to go to 111533, which shuffles to 513131 and 153113.

The first prime longer than 2 digits that qualifies for both a Faro in and out prime is 151673. Its in shuffle primes are 165713, 176153 and 117563. The corresponding out shuffle primes are 151673, 617531 and 563117.

Within the first one million primes the largest in shuffle prime is 15484627, the largest out shuffle prime is 11911111 and the largest in and out prime is 987793.

Further questions

As is typical in maths, finding out something immediately raises more questions. For example:

Why are there so many fewer out primes than in primes?

How would this look for primes with odd number of digits in them?

Is it possible to build primes by a mixture of in and out shuffles?

Most of the primes do not complete a "full shuffle", that is, they repeat faster than a deck of fully unique playing cards would. For any number n can you find a Faro prime that requires that many shuffles or is there an upper limit for the number of shuffles?

Matthias Clasen: An update on SVG in GTK

Planet GNOME - Mër, 25/02/2026 - 1:07md

In my last post on this  topic, I explained the history of SVG in GTK, and how I tricked myself into working on an SVG renderer in 2025.

Now we are in 2026, and on the verge of the GTK 4.22 release. A good time to review how far we’ve come.

Testsuites

While working on this over the last year, I was constantly looking for good tests to check my renderer against.

Eventually, I found the resvg testsuite, which has broad coverage and is refreshingly easy to work with. In my unscientific self-evaluation, GtkSvg passes 1250 of the 1616 tests in this testsuite now, which puts GTK one tier below where the web browsers are. It would be nice to catch up with them, but that will require closing some gaps in our rendering infrastructure to support more complex filters.

The resvg testsuite only covers static SVG.

Another testsuite that I’ve used a lot is the much older SVG 1.1 testsuite, which covers SVG animation. GtkSvg passes most of these tests as well, which I am happy about — animation was one of my motivations when going into this work.

https://blogs.gnome.org/gtk/files/2026/02/Screencast-From-2026-02-24-20-45-33.webm Benchmarks

But doing a perfect job of rendering complex SVG doesn’t do us much good if it slows GTK applications down too much. Recently, we’ve started to look at the performance implications of SVG rendering.

We have a ‘scrolling wall of icons’ benchmark in our gtk4-demo app, which naturally is good place to test the performance impact of icon rendering changes. When switching it over to GtkSvg, it initially dropped from 60fps to around 40 on my laptop. We’ve since done some optimizations and regained most of the lost fps.

The performance impact on typical applications will be much smaller, since they don’t usually present walls of icons in their UI.

Stressing our rendering infrastructure with some more demanding content was another motivation when I started to work on SVG, so I think I can declare success here.

Content Creators

The new SVG renderer needs new SVGs to take advantage of the new capabilities. Thankfully, Jakub Steiner has been hard at work to update many of the symbolic icons in GNOME.

Others are exploring what we can do with the animation capabilities of the new renderer. Expect these things to start showing up in apps over the next cycle.

Future work

Feature-wise, GtkSvg is more than good enough for all our icon rendering needs, so making it cover more obscure SVG features may not be big priority in the short term.

GtkSvg will be available in GTK 4.22, but we will not use it for every SVG icon yet — we still have a much simpler symbolic icon parser which is used for icons that are looked up by icon name from an icontheme. Switching over to using GtkSvg for everything is on the agenda for the next development cycle, after we’ve convinced ourselves that we can do this without adverse effects on performance or resource consumption of apps.

Ongoing improvements of our rendering infrastructure will help ensure that that is the case.

Where you can help

One of the most useful contributions is feedback on what does or doesn’t work, so please: try out GtkSvg, and tell us if you find SVGs that are rendered badly or with poor performance!

Update: GtkSvg is an unsandboxed, in-process SVG parser written in C, so we don’t recommend using it for untrusted content — it is meant for trusted content such as icons, logos and other application resources. If you want to load a random SVG of unknown providence, please use a proper image loading framework like glycin (but still, tell us if you find SVGs that crash GtkSvg).

Of course, contributions to GtkSvg itself are more than welcome too. Here is a list of possible things to work on.

If you are interested in working on an application, the simple icon editor that ships with GTK really needs to be moved to its own project and under separate maintainership. If that sounds appealing to you, please get in touch.

If you would like to support the GNOME foundation, who’s infrastructure and hosting GTK relies on, please donate.

Apple's Touch-Screen MacBook Pro To Have Dynamic Island, New Interface

Slashdot - Mër, 25/02/2026 - 9:00pd
Apple's forthcoming touch-screen MacBook Pro models -- the company's first-ever laptops to support touch input -- will feature the iPhone's Dynamic Island at the center top of their OLED displays and a new interface that dynamically adjusts between touch and point-and-click controls, according to a Bloomberg report citing people familiar with the plans. The 14-inch and 16-inch models, code-named K114 and K116, are slated for release toward the end of 2026 and won't be part of Apple's product announcements in the first week of March. The redesigned interface brings up a contextual menu surrounding a user's finger when they touch a button or control, and enlarges menu bar items when tapped, adapting the available controls based on whether the input is touch or click. Apple does not plan to position the machines as iPad replacements or describe them as touch-first; the physical design retains the full keyboard and large trackpad of the current MacBook Pro. Last year's Liquid Glass redesign in macOS Tahoe, which added more padding around icons and touch-optimized sliders in the control center, was partly groundwork for this shift.

Read more of this story at Slashdot.

The US Had a Big Battery Boom Last Year

Slashdot - Mër, 25/02/2026 - 5:01pd
The United States installed a record 57 gigawatt hours of new battery storage on its electric grids in 2025, a nearly 30% increase over the prior year that arrived even as the Trump administration cut tax credits for wind and solar in last summer's One Big Beautiful Bill. The figures come from a Solar Energy Industries Association report published Monday, which also projects the market will grow another 21% this year by adding 70 gigawatt hours in 2026 alone. Battery tax credits themselves survived the legislation largely intact, and the majority of last year's new installations were stand-alone systems not tied to specific solar projects. In Texas, solar met more than 15% of electricity demand throughout the summer and beat out coal for the first time, and the SEIA report predicts the state will overtake California this year in total deployed storage. Supply chain restrictions reinforced by the bill and project cancellations could slow the pipeline this year, the report cautions.

Read more of this story at Slashdot.

What Is Fail2ban?

LinuxSecurity.com - Mër, 25/02/2026 - 4:34pd
Open any internet-facing Linux server and check /var/log/auth.log or run journalctl -u ssh. If it has been up for more than a few minutes, you will see it. Repeated failed logins from IPs you do not recognize, cycling usernames, sometimes hitting root, sometimes trying ''admin,'' sometimes just random strings. It does not stop.

First British Baby Born Using Transplanted Womb From Dead Donor

Slashdot - Mër, 25/02/2026 - 2:30pd
A 10-week-old boy named Hugo has become the first baby born in the UK from a womb transplanted from a deceased donor, after his mother Grace Bell -- who was born without a viable womb due to a condition called MRKH syndrome, which affects one in every 5,000 women -- underwent a 10-hour transplant operation at The Churchill Hospital in Oxford in June 2024. Hugo was born just before Christmas 2025, weighing nearly 7lbs, at Queen Charlotte's and Chelsea Hospital in west London, following IVF treatment and embryo transfer at The Lister Fertility Clinic. Bell's transplant is one of three completed so far as part of a UK clinical research trial that plans to carry out 10 such procedures from deceased donors, and Hugo is the first baby born from any of them. Earlier in 2025, a separate effort produced baby Amy, the first UK birth from a living womb donation -- her mother had received her older sister's womb in January 2023. Globally, more than 100 womb transplants have been performed, resulting in over 70 healthy births.

Read more of this story at Slashdot.

Meta AI Security Researcher Said an OpenClaw Agent Ran Amok on Her Inbox

Slashdot - Mar, 24/02/2026 - 11:30md
Meta AI security researcher Summer Yue posted a now-viral account on X describing how an OpenClaw agent she had tasked with sorting through her overstuffed email inbox went rogue, deleting messages in what she called a "speed run" while ignoring her repeated commands from her phone to stop. "I had to RUN to my Mac mini like I was defusing a bomb," Yue wrote, sharing screenshots of the ignored stop prompts as proof. Yue said she had previously tested the agent on a smaller "toy" inbox where it performed well enough to earn her trust, so she let it loose on the real thing. She believes the larger volume of data triggered compaction -- a process where the context window grows too large and the agent begins summarizing and compressing its running instructions, potentially dropping ones the user considers critical. The agent may have reverted to its earlier toy-inbox behavior and skipped her last prompt telling it not to act. OpenClaw is an open-source AI agent designed to run as a personal assistant on local hardware.

Read more of this story at Slashdot.

New Datacentres Risk Doubling Great Britain's Electricity Use, Regulator Says

Slashdot - Mar, 24/02/2026 - 10:00md
The amount of power being sought by new datacentre projects in Great Britain would exceed the national current peak electricity consumption, according to an industry watchdog. From a report: Ofgem said about 140 proposed datacentre schemes, driven by use of artificial intelligence, could require 50 gigawatts of electricity -- 5GW more than the country's current peak demand. The figure was revealed in an Ofgem consultation on demand for new connections to the power grid. It pointed to a "surge in demand" for connection applications between November 2024 and June last year, with a significant number coming from datacentres. This has exceeded even the most ambitious forecasts. Meanwhile, new renewable energy projects are not being connected to the grid at the pace they are being built to help meet the government's clean energy targets by the end of the decade. Ofgem said the work required to connect surging numbers of datacentres could mean delays for other projects that are "critical for decarbonisation and economic growth." Datacentres are the central nervous system of AI tools such as chatbots and image generators, playing a vital role in training and operating products such as ChatGPT and Gemini.

Read more of this story at Slashdot.

CrowdStrike Says Attackers Are Moving Through Networks in Under 30 Minutes

Slashdot - Mar, 24/02/2026 - 9:00md
An anonymous reader shares a report: Cyberattacks reached victims faster and came from a wider range of threat groups than ever last year, CrowdStrike said in its annual global threat report released Tuesday, adding that cybercriminals and nation-states increasingly relied on predictable tactics to evade detection by exploiting trusted systems. The average breakout time -- how long it took financially-motivated attackers to move from initial intrusion to other network systems -- dropped to 29 minutes in 2025, a 65% increase in speed from the year prior. "The fastest breakout time a year ago was 51 seconds. This year it's 27 seconds," Adam Meyers, head of counter adversary operations at CrowdStrike, told CyberScoop. Defenders are falling behind because attackers are refining their techniques, using social engineering to access high-privilege systems faster and move through victims' cloud infrastructure undetected.

Read more of this story at Slashdot.

Hegseth Gives Anthropic Until Friday To Back Down on AI Safeguards

Slashdot - Mar, 24/02/2026 - 8:00md
Defense Secretary Pete Hegseth gave Anthropic CEO Dario Amodei until Friday evening to give the military unfettered access to its AI model or face harsh penalties, Axios has learned. Hegseth told Amodei in a tense meeting on Tuesday that the Pentagon will either cut ties and declare Anthropic a "supply chain risk," or invoke the Defense Production Act to force the company to tailor its model to the military's needs. The Pentagon wants to punish Anthropic as the feud over AI safeguards grows increasingly nasty, but officials are also worried about the consequences of losing access to its industry-leading model, Claude. "The only reason we're still talking to these people is we need them and we need them now. The problem for these guys is they are that good," a Defense official told Axios ahead of the meeting. Anthropic has said it is willing to adapt its usage policies for the Pentagon, but not to allow its model to be used for the mass surveillance of Americans or the development of weapons that fire without human involvement.

Read more of this story at Slashdot.

The US Spent $30 Billion on Classroom Laptops and Got the First Generation Less Capable Than Its Parents

Slashdot - Mar, 24/02/2026 - 7:01md
More than two decades after Maine became the first state to hand laptops to middle schoolers -- distributing 17,000 Apple machines across 243 schools in 2002 -- neuroscientist Jared Cooney Horvath told a U.S. Senate committee earlier this year that Gen Z is the first generation in modern history to score lower on standardized tests than the one before it. The U.S. spent more than $30 billion in 2024 alone putting laptops and tablets in classrooms, and Horvath cited PISA data from 15-year-olds worldwide showing a stark correlation between time on school computers and worse scores. A 2014 study of 3,000 university students found they were off-task on their machines nearly two-thirds of the time. Fortune reported back in 2017 that Maine's own test scores hadn't budged in the 15 years since the program launched, and then-governor Paul LePage called it a "massive failure." Horvath framed the generation's eroding capabilities not as a personal failure but a policy one, calling them victims of a failed pedagogical experiment.

Read more of this story at Slashdot.

Microsoft Execs Worry AI Will Eat Entry Level Coding Jobs

Slashdot - Mar, 24/02/2026 - 6:01md
An anonymous reader shares a report: Microsoft Azure CTO Mark Russinovich and VP of Developer Community Scott Hanselman have written a paper arguing that senior software engineers must mentor junior developers to prevent AI coding agents from hollowing out the profession's future skills base. The paper, Redefining the Engineering Profession for AI, is based on several assumptions, the first of which is that agentic coding assistants "give senior engineers an AI boost... while imposing an AI drag on early-in-career (EiC) developers to steer, verify and integrate AI output." In an earlier podcast on the subject, Russinovich said this basic premise -- that AI is increasing productivity only for senior developers while reducing it for juniors -- is a "hot topic in all our customer engagements... they all say they see it at their companies." [...] The logical outcome is that "if organizations focus only on short-term efficiency -- hiring those who can already direct AI -- they risk hollowing out the next generation of technical leaders," Russinovich and Hanselman state in the paper.

Read more of this story at Slashdot.

Billions of Dollars Later and Still Nobody Knows What an Xbox Is

Slashdot - Mar, 24/02/2026 - 5:04md
Microsoft has spent more than $76 billion acquiring game studios and publishers over the past few years in an attempt to turn Xbox into a Netflix-like subscription platform, and the result is that nobody -- possibly not even Microsoft -- can clearly articulate what Xbox actually is anymore, The Verge writes. The brand started as a powerful video game console, but Game Pass and cloud gaming pushed it toward a hazier identity: the "This is an Xbox" ad campaign tried to redefine it as any device that could play Xbox games, whether a PC, a smart TV, a phone, or a Windows handheld. Microsoft then went further and started publishing its biggest franchises on PlayStation, making it one of the largest third-party publishers on a rival's platform. Phil Spencer, who led the division for over a decade and drove the subscription pivot, announced his retirement last week, and incoming CEO Asha Sharma has pledged "the return of Xbox" -- though her memo also talks about expanding across PC, mobile, and cloud, which sounds a lot like the status quo.

Read more of this story at Slashdot.

Discord Distances Itself From Persona Age Verification After User Backlash

Slashdot - Mar, 24/02/2026 - 4:00md
Discord is attempting to distance itself from the age verification provider Persona following a steady stream of user backlash. From a report: In an emailed statement to The Verge, Discord's head of product policy, Savannah Badalich, confirms the company "ran a limited test of Persona in the UK where age assurance had previously launched and that test has since concluded." After Discord announced plans to implement age verification globally starting next month, users across social media accused Discord of "lying" about how it plans on handling face scans and ID uploads. Much of the criticism was directed toward Discord's partnership with Persona, an age verification provider also used by Reddit and Roblox.

Read more of this story at Slashdot.

next-20260224: linux-next

Kernel Linux - Mar, 24/02/2026 - 3:43md
Version:next-20260224 (linux-next) Released:2026-02-24

Russia Targets Telegram as Rift With Founder Pavel Durov Deepens

Slashdot - Mar, 24/02/2026 - 3:00md
Russia has opened an investigation into Telegram founder Pavel Durov for "abetting terrorist activities," [non-paywalled source] in the latest sign that his uneasy relationship with the Kremlin has broken down. From a report: Two Russian newspapers, including the state-run Rossiiskaya Gazeta and Kremlin-friendly tabloid Komsomolskaya Pravda, alleged on Tuesday that the messaging app had become a tool of western and Ukrainian intelligence services. The articles, credited to materials from Russia's FSB security service, accused Telegram of enabling attacks in Russia and said that Durov's "actions ... are under criminal investigation." Russia has restricted Telegram's functions, accusing it of flouting the law and is seeking to divert users towards Max, a state-run rival messenger. The steps escalate pressure on a platform that remains deeply embedded in Russian public life.

Read more of this story at Slashdot.

Firefox 148 Now Available With The New AI Controls, AI Kill Switches

Slashdot - Mar, 24/02/2026 - 2:00md
Firefox 148 introduces granular AI controls and a global "AI kill switch" that allows users to disable or selectively manage the browser's AI features. Phoronix reports: Among the AI features that can be toggled individually are around translations, image alt text in the Firefox PDF viewer, tab group suggestions, key points in link previews, and AI chatbot providers in the sidebar. Firefox 148 also brings Firefox for Android, support for the Trusted Types API, CSS shape() function support, Sanitizer API support, WebGPU enhancements, and a variety of other changes. Developer chances can be found at developer.mozilla.org. Binaries are available from ftp.mozilla.org.

Read more of this story at Slashdot.

Quantum Algorithm Beats Classical Tools On Complement Sampling Tasks

Slashdot - Mar, 24/02/2026 - 11:00pd
alternative_right shares a report from Phys.org: A team of researchers working at Quantinuum in the United Kingdom and QuSoft in the Netherlands has now developed a quantum algorithm that solves a specific sampling task -- known as complement sampling -- dramatically more efficiently than any classical algorithm. Their paper, published in Physical Review Letters, establishes a provable and verifiable quantum advantage in sample complexity: the number of samples required to solve a problem. "We stumbled upon the core result of this work by chance while working on a different project," Harry Buhrman, co-author of the paper, told Phys.org. "We had a set of items and two quantum states: one formed from half of the items, the other formed from the remaining half. Even though the two states are fundamentally distinct, we showed that a quantum computer may find it hard to tell which one it is given. Surprisingly, however, we then realized that transforming one state into the other is always easy, because a simple operation can swap between them."

Read more of this story at Slashdot.

QR Code Phishing Linux Quishing Risks and Mitigation Strategies

LinuxSecurity.com - Mar, 24/02/2026 - 9:41pd
QR codes were originally designed for industrial logistics. They were optimized for efficiency, not security. In recent years, they have become embedded across enterprise workflows, authentication flows, ticketing systems, packaging, and internal documentation systems. That expansion has created a new attack surface.

Texas Is About To Overtake California In Battery Storage

Slashdot - Mar, 24/02/2026 - 8:00pd
U.S. battery storage installations hit a record 57.6 GWh in 2025, and Texas is now poised to surpass California as the nationâ(TM)s largest storage market in 2026. Electrek reports: According to the US Energy Storage Market Outlook Q1 2026 from the Solar Energy Industries Association (SEIA) and Benchmark Mineral Intelligence, installations are now four times higher than totals from just three years ago. The US had a total of 137 GWh of utility-scale storage installed as of 2025, plus 19 GWh of commercial and industrial systems and 9 GWh of residential storage. Analysts expect the growth streak to continue. More than 600 GWh of energy storage is projected to be deployed nationwide by 2030, even as the Trump administration targets clean energy industries. Two-thirds of utility-scale storage installed in 2025 was built in red states, including nine of the top 15 states for new installations. Texas is projected to surpass California as the countryâ(TM)s largest battery storage market in 2026. Standalone battery projects accounted for nearly 30 GWh of new capacity in 2025, while solar-plus-storage installations made up about 20 GWh. Residential storage deployments reached 3.1 GWh last year, a 51% increase year-over-year. Analysts say virtual power plant programs in states such as Massachusetts, Texas, Arizona, and Illinois are helping drive adoption by reducing costs and easing strain during peak demand periods. The supply chain is shifting to support the boom. In 2025, some battery cell manufacturers pivoted production from EV batteries to dedicated stationary storage cells, converting existing lines and adjusting future plans. Lithium-ion cell manufacturing for stationary storage reached more than 21 GWh in 2025, enough to power Houston overnight, according to SEIAâ(TM)s Solar and Storage Supply Chain Dashboard. Meanwhile, US factories now have the capacity to manufacture 69.4 GWh of battery energy storage systems annually.

Read more of this story at Slashdot.

Faqet

Subscribe to AlbLinux agreguesi