The Daily WTF

Curious Perversions in Information Technology

CodeSOD: An Odd Sort

Let's say we wanted to query Active Directory and print out a report of all of our users, and their last logon time. That seems like a pretty normal task for a Powershell script. It'd probably be short and easy to read, at least if it were written by a normal person.

Alice sends us one that wasn't. She's already done us a favor, as she writes: "Code cleaned up and indented for the whitespace-missing-impaired."

#####################################
# lists accounts and selected attributes alphabetically
#####################################

foreach( $letter in "a", "b", "c"......"z")
{
     $strfilter = $letter + "*"
     $objdomain = New-object System.DirectoryServices.DirectoryEntry
     $objSearcher = New-object System.DirectoryServices.DirectorySearcher
     $objSearcher.SearchRoot = $objdomain

     $objSearcher.Filter = $strFilter
     $objSearcher.PropertiesToLoad.Add("name");
     $colResults = $objSearcher.FindAll()

     foreach($result in $colResults)
     {
          $name = $result.Properties.Name
          $searcher = New-Object DirectoryServices.DirectorySearcher([adsi]"")
          $searcher.filter "(&(objectCategory=User)(sAMAccountName=$name))"
          $users = searcher.FindAll()
         
          foreach($user in $users)
          {
               Write-Output $user.properties.item("name") + "," +  $user.properties.item("lastLogon")
          }
     }
}

This accomplishes sorting alphabetically by iterating across the alphabet. Which, I suspect, isn't going to actually get them in alphabetical order; it makes sure that albert and alice appear before bob, but doesn't enforce that albert must come before alice.

In any case, we iterate across the alphabet, and then create a searcher that finds a*, then b*, etc. We explicitly tell the searcher that the only property we care about is the name field, so that we don't load unnecessary fields, like the ones we want to report on.

We then iterate across the list of names, construct a new searcher, and search for the account with the username we fetched. That lets us get all of the fields we need, including the ones we aren't going to use.

Now, we search for a username, so we expect there to only be one result, but since searcher.FindAll() returns an array, we "need" to write a loop to iterate across the array of one, which is clearly a better choice than using the FindOne function.

As it usually goes with these sorts of things, one of the managers absolutely adores the fact that they have an easy way to generate a CSV file that they can manipulate in Excel, so this terrible script is "mission critical".

[Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.

Wel.nl

Minder lezen, Meer weten.

Eindhovense AI-startup Euclyd haalt ruim 200 miljoen euro op

EINDHOVEN (ANP) - Het Eindhovense AI-chipbedrijf Euclyd heeft ruim 200 miljoen euro opgehaald bij investeerders in de eerste grote financieringsronde van de startende onderneming. Het bedrijf, dat in 2024 werd opgericht op de High Tech Campus Eindhoven, maakte tevens bekend dat oud-topman Peter Wennink van chipmachinemaker ASML voorzitter wordt van de raad van commissarissen.

Het Zuid-Koreaanse tech- en chipbedrijf Samsung, de Nederlandse investeerder Somerset Capital Partners en investeringsfondsen van de Europese Unie en Denemarken steken onder meer geld in het bedrijf. In april zei oprichter en topman Bernardo Kastrup al dat Euclyd met een nieuwe investeringsronde 100 miljoen euro zou willen ophalen. Het bedrijf wil zo op grotere schaal chips produceren voor de toepassing van kunstmatige intelligentie (AI).

Euclyd maakt chips voor het proces waarbij AI-modellen, nadat ze getraind zijn, voorspellingen doen of beslissingen nemen op basis van de gegevens die ze binnenkrijgen.


ProRail: storing op spoor komt door sabotage

UTRECHT (ANP) - De storing die dinsdagochtend is ontstaan op het spoor in Midden-Nederland is veroorzaakt door sabotage, meldt ProRail. Volgens de spoorbeheerder zijn op meerdere plekken op het spoor "materialen aangetroffen die daar bewust zijn neergelegd".

Door de storing ligt het treinverkeer in grote delen van Midden- en Noord-Nederland stil.


Opnieuw waarschuwt AI-onderzoeker dat AI mensheid kan uitroeien

SAN FRANCISCO (ANP/RTR) - Opnieuw heeft een AI-onderzoeker gewaarschuwd dat de technologie van kunstmatige intelligentie "de mensheid kan uitroeien". Volgens een oud-medewerker van Google DeepMind is de tijd bijna op om dat scenario te voorkomen.

De ongerustheid over mogelijke gevaren van AI neemt de laatste tijd toe. Vorige week maakte Anthropic-onderzoeker Jacob Coxon bekend dat hij is opgestapt, onder meer omdat de "mensen die AI bouwen er heilig in geloven dat het ons allemaal kan uitroeien voor het einde van dit decennium". Een collega bij Anthropic, Evan Hubinger, reageerde vervolgens op de uitspraken door te stellen dat Coxon gelijk had. Hubinger zei te geloven dat er een kans van meer dan 10 procent is dat AI de mensheid binnen nu en tien jaar uitroeit.

Nu mengt Bilal Chughtai, die recent vertrok bij het AI-onderdeel van Google, zich op X in de discussie: "Ik ben er heilig van overtuigd dat AI het potentieel heeft om ons allemaal te doden, en dat we wel eens te weinig tijd zouden kunnen hebben om dit af te wenden."


Prijzen aan Nederlandse pomp stijgen door duurdere olie

EINDHOVEN (ANP) - De brandstofprijzen aan de Nederlandse pomp zijn dinsdagochtend met meer dan 3 cent gestegen door de verder oplopende olieprijzen. De adviesprijs voor Euro95 is volgens consumentenvoordeelplatform UnitedConsumers nu 2,716 euro per liter. Dat was 2,682 euro op maandag. Daarmee staat benzine weer bijna op het record van 2,724 euro van begin vorige week.

De adviesprijs voor diesel is 2,755 euro, tegen 2,721 euro een dag eerder. Ook diesel heeft het oude record van 2,819 euro uit april in het vizier. UnitedConsumers volgt de adviesprijzen van de grote oliemaatschappijen in Nederland. De adviesprijzen worden doorgaans alleen langs snelwegen gevraagd. Op andere pompstations is brandstof vaak goedkoper.

De olieprijzen gingen dinsdagochtend verder omhoog, mede door de sluiting van de belangrijke oost-westelijke pijpleiding in Saudi-Arabië na een droneaanval. De prijs van een vat Brentolie is ruim 107 dollar en Amerikaanse olie kost meer dan 103 dollar per vat. Dat zijn de hoogste niveaus sinds mei.


VK: Voorpagina

Volkskrant.nl biedt het laatste nieuws, opinie en achtergronden

Geen treinen in groot deel van Nederland, ProRail vermoedt sabotage

Prinsjesdag 2026: hoe ziet de dag eruit?

Ius Mentis

Internetrecht door Arnoud Engelfriet

Overheid haalt in twee jaar honderden keren terroristische inhoud offline

Een overheidsautoriteit heeft de afgelopen twee jaar honderden keren terroristische inhoud offline laten halen, las ik bij Nu.nl. Het gaat om de Autoriteit online Terroristisch en Kinderpornografisch Materiaal (ATKM) die sinds 2023 hiervoor aangesteld is, maar waar maar weinig mensen van gehoord hebben.

Nu.nl vond 330 van zulke bevelen onder de Uitvoeringswet verordening terroristische online inhoud (Uitvoeringswet TOI) in een WODC rapport dat begin deze week uitkwam. Die wet komt weer uit een EU-verordening uit 2021, die in artikel 3 bepaalt:

De bevoegde autoriteit van elke lidstaat heeft de bevoegdheid om een verwijderingsbevel uit te vaardigen op grond waarvan aanbieders van hostingdiensten terroristische inhoud moeten verwijderen of de toegang daartoe in alle lidstaten moeten blokkeren.
Wat zulke inhoud is, is dan weer gedefinieerd in Richtlijn 2017/541. Kortweg inhoud die aanzet tot terroristische misdrijven of die verheerlijkt. (Ook van zulke misdrijven is een definitie, die heel aardig overeenkomt met “aanslagen plegen om regering of bevolking bang te maken of dingen te laten doen”.)

Eraf dus, als een hoster dat bevel krijgt, en wel “zo spoedig mogelijk en in elk geval binnen één uur na ontvangst”. Geen discussie, niet eerst bij de rechter de voors en tegens wegen: offline, en daarna eventueel de discussie. Effectief, ongetwijfeld, maar wel veel handwerk voor de ATKM.

Hostingbedrijven kunnen verplicht worden om maatregelen tegen het uploaden van zulke content te nemen, als zij in een jaar minstens twee keer zijn bevolen het weg te halen. De ATKM heeft die bevoegdheid nog nooit ingezet, “met name vanwege het ontbreken van een helder en uniform kader voor de inzet van dit instrument en het beoordelen van de genomen maatregelen”.

Ook is er het probleem dat veel content in een grijs gebied zit, zodat de autoriteit niet ondubbelzinnig dat bevel kan geven. ‘Gewone’ takedownverzoeken mag men ook doen (dat mag iedereen) maar is nog nooit gebeurd.

Arnoud

 

Het bericht Overheid haalt in twee jaar honderden keren terroristische inhoud offline verscheen eerst op Ius Mentis.

The Guardian

Latest news, sport, business, comment, analysis and reviews from the Guardian, the world's leading liberal voice

The pest I’ll never forget: the rat who jumped off the wardrobe and flew at my face

There was a rat army in my flatshare, gnawing through pipes, carpets and even a bedroom door. That’s not to mention the mice ...

We should have known we were in trouble when we saw that the garden of our new place backed on to a Chinese restaurant in Hackney, London, with terrible reviews. Before long, the rats started coming in through the pipes. It was ratmageddon, and every day it got more harrowing. They trooped over our kitchen, like the world’s worst sequel to Ratatouille. They calmly walked into rooms while we were watching telly. They gnawed through all the carpets to try to get into our bedrooms.

There was no stopping them. After sniffing out the remnants of an old snack in my housemate Simon’s bin, a pack of rats got to work one night gnawing through the wood at the bottom of his bedroom door. Like a rodent military exercise, they spent eight hours whittling a hole large enough to get through. I lay next door, 100% freaked out, panicking they’d try to get into my room next. I didn’t sleep a wink. Fairly soon after this, one of the rats died under the floorboards so we got a bottle-fly infestation to boot. Naturally, our landlord did nothing about any of this.

Continue reading...

Premature review – sunny charm provides screwball energy for surprise-pregnancy comedy

First-time director Kevin Walls creates a film sweet-natured enough to cancel out some comedy misfires as flatmates Eilidh and Cameron prepare for parenthood

The pram in the hallway is the enemy of good art, or so the famous quote goes. This sunny Scottish comedy, made on a minuscule budget, deals with the bit before the pram, when an art school dropout in her 20s gets unexpectedly up the duff. It’s directed by first-timer Kevin Walls, who gives his film the screwball-ish energy of things being skew-whiffly the wrong way round; a couple are going on their first date at three months pregnant, having a baby at an age most people are putting it off to establish their careers. It’s sweet-natured with just about enough charm to cancel out a couple of thunderously awful comedy moments.

Elle Watson is artist Eilidh, who works as a barista in a museum cafe. She has a friends-with-benefits setup with her flatmate Cameron (James Rottger); he has a job in finance and, after two degrees, a mountain of student debt and years in a mind-numbing entry-level position, he’s finally lined up an interview for his dream job. It would be crazy to have the baby, but Eilidh doesn’t take the abortion tablets. She can’t give Cameron a coherent reason why not; fair enough, it’s her decision, a gut feeling. Walls sensibly doesn’t go anywhere near the pro-choice/anti-abortion debate.

Continue reading...

The Rouse by China Miéville review – a mighty achievement from the ‘new weird’ author

Twenty years in the writing, this paranormal epic of cold war espionage and family tragedy is a quantum leap in terms of ambition and moral seriousness

China Miéville’s epic new novel is presented as being “20 years in the making”. It is quite a testament to how extravagant – even Stakhanovite – his imagination is that during that period he also produced six novels (including The City & the City and The Book of Elsewhere, co-written with Keanu Reeves), two novellas, two series of graphic novels, a children’s book, a volume of short stories and two works of nonfiction, on the October Revolution and the Communist Manifesto.

It does not mean that these works were, as Graham Greene called The Third Man and Our Man in Havana, “entertainments” – Embassytown, to my mind, is the best translation of deconstructionist philosophy into science fiction – but certainly The Rouse is a quantum jump in terms of ambition, moral seriousness and stylistic bravado. It means that rather than classifying Miéville with “the new weird” or “speculative fantasy”, he ought to be compared to Roberto Bolaño or Mircea Cărtărescu. This new novel is equally maximalist, dense, disorienting and discomfiting, reflecting how surreal our reality seems to have become.

Continue reading...

Why unwanted fridges are piling up at recycling centres across England and Wales

Capacity has been overwhelmed by heatwaves that have pushed white goods to breaking point

“In Oxfordshire, recycling centres are filling almost three articulated lorries with discarded fridges every week,” says Simon Perry of W&S Waste Management, which runs a recycling centre in Ardley.

Together, those fridges would cover an area just under half the size of a football pitch. But the space to store them – in Oxfordshire and beyond – has become a growing problem after the Local Government Association (LGA) warned that a mountain of broken fridges was rising in waste centres across England and Wales, as this year’s heatwaves push more white goods to breaking point, and a trend for second/backup refrigeration products keeps growing.

Continue reading...

One in five black, Asian and minority ethnic NHS managers in England plan to quit amid racism, report finds

Health service faces exodus as almost four-fifths of BAME managers surveyed reported racism, exclusion and barriers to career progression

The NHS in England is facing an exodus of minority ethnic managers who have suffered racism, exclusion and discrimination during their working lives, a report has found.

Almost four-fifths of managers from black, Asian and minority ethnic (BAME) backgrounds have experienced racism, exclusion and obstacles to progressing in their careers, according to a survey carried out by the NHS Alliance.

Continue reading...

Through the looking glass: female stereotypes examined – in pictures

Taking the women of the 1950s as her role models, Jo Ann Chaus shoots compelling self-portraits that exhibit both strength and vulnerability

Continue reading...

Sweden’s far right is down, but not yet out. Left and centre leaders must seize this opportunity | Cas Mudde

The danger is that other parties just channel the far right – and that will make them vulnerable. Better to fully commit to a progressive agenda

After the previous Swedish general election, in 2022, the leaders of the two biggest Swedish parties made a risky decision. Jimmie Åkesson, the leader of the far-right Sweden Democrats (SD), chose to support the rightwing minority government of the Moderate party prime minister Ulf Kristersson, while Magdalena Andersson, the Social Democrats’ leader, decided to copy the “Danish model” in an attempt to regain power. In both cases, the strategy led to electoral loss but political success.

After the general election in the country on Sunday, the Social Democrats (often referred to as S or Sap), in common with its Danish counterparts, will probably lead the new government despite an electoral defeat, losing roughly 2%, its worst result since 1908. The party’s return to power is purely a result of Swedish bloc politics and the victories of its likely coalition partners: the Left party (V), the Green party and the Center party (C), which all increased their support by 1.5%, 1.7% and 0.4% respectively. Together, this left bloc has a majority of just three seats in the new parliament. So while Andersson will probably return to power, she is also in a very vulnerable position.

Cas Mudde is the Stanley Wade Shelton UGAF professor of international affairs at the University of Georgia, and author of The Far Right Today

Continue reading...

Solo autumn walks for women in the UK and Europe: ‘it should be fun, not daunting’

Hiking alone in the countryside can be joyous, but for women it can sometimes feel unnerving. Here’s how to enjoy it safely, plus four stunning routes to walk solo

I did my first solo hike during a sunny September, seven years ago. After a summer of feeding and ferrying four noisy teenagers (and their friends) around, I was exhausted. But despite being bone tired, I had barely moved. I yearned, above all, for time on my own, for the chance to walk without interruption (and at the pace I chose), and for the silence of some empty wilderness.

But I was nervous. Not of being on my own, but of what might happen to me with no one around to help (breaking a bone, encountering a psychopath, being chased by a bull, getting fatally lost). I could have found a companion or joined a group, but my need for silence and solitude outweighed my fears.

Continue reading...

Sargasso

Hopeloos Genuanceerd

Je maintiendrai?

COLUMN - van Prof.Mr. Roel Bekker

De vroegere Belgische ambassadeur in Nederland Dirk Achten heeft na zijn pensionering een behartenswaardig boekje geschreven. [1] Hij vergelijkt daarin de bestuursinrichting en bestuurscultuur van Nederland en België. Hij heeft recht van spreken: hij was voor zijn ambassadeurschap jarenlang SG van het Belgische ministerie van Buitenlandse Zaken en heeft 10 jaar lang als ambassadeur het openbaar bestuur in Nederland van nabij meegemaakt. Zijn conclusie is dat de overheid in Nederland op veel onderdelen beter functioneert dan de Belgische. Maar er is één uitzondering. Hij is verbaasd over de geringe aandacht in Nederland voor handhaving, zeker in verhouding tot de aandacht die beleid maken krijgt.

Herkenbaar! Van beleid kunnen we niet genoeg krijgen, elk probleem, elk pechgeval leidt tot de roep om beleidsinterventies en een berg aan nieuwe regels. De beleidsdirecties groeien hier dan ook als kool. Maar handhaving van die regels? Héél voorzichtig, niet te snel, veel begrip voor de overtreders, drie keer waarschuwen, eerst een gesprek, veel gedogen en vooral zachtaardig optreden, zelfs bij geweldplegers.

Deze zomer was er over casuïstiek over dit onderwerp niet te klagen. Het begon met de Merwedebrug bij Gorinchem die het een beetje begint te begeven. Dus geen vrachtauto’s meer, aldus Rijkswaterstaat. Degene die dacht dat zoiets heel gemakkelijk is te handhaven, had buiten de waard gerekend! Er moesten eerst camera’s komen en dat duurde een paar weken. Vervolgens bleken buitenlandse vrachtauto’s buiten schot te blijven. Dus bleven er ondanks het verbod dagelijks honderden vrachtauto’s over de brug gaan. Uiteindelijk ging de politie de vrachtauto’s maar aanhouden en verbaliseren. Dat raakte slechts een fractie van de overtreders want zoiets kost een half uur (een half uur!) per vrachtwagen.

Tweede voorbeeld: tractors van protesterende boeren die reden op plekken waar dat niet mocht. Ze konden echter niet op de bon geslingerd worden, want hun kentekens waren afgeplakt. Wat trouwens ook verboden is. Maar ook daarvoor kun je hen dus niet op de bon slingeren. Een mooie variant van Catch 22! Resultaat: de boeren bleven hun gang gaan. Het kreeg allemaal een heel vervelende dimensie toen op de A59 een dodelijk ongeval plaatsvond door een file die was ontstaan door daar ten onrechte rijdende tractoren. De politie zou hebben gezegd dat ze niet zou ingrijpen. Het werd een welles-nietes-spel tussen de handhavers, te gênant voor woorden. XR wilde trouwens niet achterblijven en begaf zich in strijd met de regels ook op de autoweg. Maar dat lag heel anders, werd door hen betoogd, daar ging het om het redden van het klimaat. Het duurde vervolgens maar liefst twee uur om enkele tientallen demonstranten te verwijderen.

Het beeld ontstaat van een overheid die veel normen over ons heen stort maar traag en terughoudend is bij de handhaving, ja soms zelfs met zich laat sollen. Dat komt het gezag van de overheid niet ten goede.

Hoe is dat te verklaren? Wij zijn van oudsher gek op het stellen van normen, de vinger gaat snel omhoog. Ons wordt voortdurend en indringend ingeprent waar wij ons aan moeten houden. Maar om die indringendheid een beetje te compenseren, zijn bescherming en vergeving eveneens in overmaat in ons systeem terechtgekomen. Wij koesteren tolerantie, tot op het naïeve af. ‘De meeste mensen deugen’ was niet voor niets een bestseller. ‘Moet toch kunnen, waar maak je je druk over?’, reacties van deze soort zijn er legio. Ik las [2] dat het ministerie van Justitie, toch onze opperhandhaver zou je denken, slechts bij 50% van de eigen wetgeving van tevoren toetst of die regels uit te voeren en te handhaven zijn. Tja, dat schiet dus niet op!

Handhaving is lastig. De overtredende burger is buitengewoon goed beschermd, kan op vele manieren genoegdoening eisen als hij hard wordt aangepakt en heeft de media en de politiek vaak op zijn hand. Dus dan ben je als overheidsfunctionaris liever maar een beetje terughoudend. Handhaving gaat vaak gepaard met ingrijpen en geweld, ook niet echt zaken waar je populair van wordt of politiek mee ‘scoort’. Over de enkeling die zo nu en dan eens wat steviger wil optreden wordt vaak een beetje meesmuilend gedaan. Pietje Bell is een stuk populairder dan Bromsnor. Axioma’s als ‘dura lex sed lex’ en ‘rules are rules’ kennen geen Nederlands equivalent. ‘Hoezo niet?’ is een veel vaker gebruikte term als iets niet mag.

Er zijn natuurlijk uitzonderingen, en daarbij slaat het dan soms weer door naar de andere kant. De piepkleine Inspectie Geneesmiddelen gaf tot veler verbazing enorme boetes aan journalisten die iets positiefs hadden verkondigd over een geneesmiddel, een scherp contrast met het voorzichtige optreden van andere onderdelen van het Staatstoezicht op de Volksgezondheid. De Arbeidsinspectie deelde tonnen boetes uit aan een sportschool voor sjoemelen met arbeidsvergunningen. En de Autoriteit Persoonsgegevens kwam ineens en wellicht ook tot haar eigen verbazing in de positie om als uitvoerder van Europees toezicht een boete van meer dan € 800 miljoen aan Uber te mogen uitdelen, een boete die hoger is dan alle boetes van alle Nederlandse toezichthouders van tientallen jaren bij elkaar.

Incidenten als op de A59 vergroten de aandacht voor strenge en consequente handhaving. Maar vaak ebt die snel weer weg, en vallen we terug in de praktijk van ‘veel beleid, matige uitvoering en slechte handhaving’. En blijven we het op dat laatste punt dus slechter doen dan België.


Dit artikel verscheen eerder bij het Montesquieu Instituut. Roel Bekker is voormalig SG bij het rijk en voormalig bijzonder hoogleraar Arbeidsverhoudingen publieke sector

Noten:

[1] Dirk Achten. Ligt het aan ons? Waarom Nederlanders en Belgen hun land anders organiseren. Manteau. 2023.

[2] NRC, 8 september 2026 (betaalmuur) Ministerie van Justitie checkt vooraf haar eigen wetten vaak niet. Gevolg: onuitvoerbare regels en personeelstekorten.

Grootschalige treinstoring ontregelt treinverkeer in Nederland: 'Er lijkt sprake van sabotage'

Op meerdere plekken op het spoor zijn „materialen aangetroffen die daar bewust zijn neergelegd” en waardoor storingen ontstaan. De storing ontstond rond 5.30 uur en speelt op twintig plekken.

The Register

Biting the hand that feeds IT — Enterprise Technology News and Analysis

Apple iPhone Duo makes developers think in folds

The October 23 ship date of Apple’s iPhone Duo grows nigh, so developers wanting to optimize their iPhone apps for the foldable will need to get to grips with its new display behaviors and form factor. “A fold is a UI event with backend consequences,” Atharva Deosthale, Appwrite developer advocate, wrote in an introductory blog post. “Folding and unfolding is part of normal device use, so apps need to preserve state and respond cleanly when the display changes.” The iPhone Duo, which Apple introduced last week, is a smartphone with two screens: a squat 5.4-inch (diagonal) outer display on top of the case and the larger 7.6-inch inner display within. The display’s contents automatically (and stylishly) move to the visible screen when the device is opened or snapped shut. Apple has published a repository of technical documentation to help devs prepare for the new form factor. Time to study up. An ever-shifting canvas The foldable fondleslab will run iOS 27.1, and will run unaltered iPhone apps, but in the same way regular iPhone apps run on the iPad: awkwardly. Devs need to learn some new moves to style their apps to truly make Apple’s mobile device look good. The foldable form factor means that the user may start work on an app on the top screen, and when the device opens, the app should appear seamlessly on the larger display (the display ratio remains the same across both screens). The phone doesn’t have to lie flat for the inner screen to be fully used; it can also fold into a “tabletop posture,” where half the screen is flat and the other half sits upright, like a little laptop. Or it could be fashioned into a partially opened “book posture,” with the fold running vertically. Maybe for privacy? Who knows what other ways people, with their endless ingenuity, will interact with these gadgets. Both screens have a 120 Hz adaptive refresh rate, thanks to Apple’s ProMotion technology. So any transitions within the app, and resizing of the app itself, need to be almost Walt Disney animation-level smooth - while maintaining state. The device can accommodate two apps simultaneously running on the screen, through “Split View,” so apps will also have to learn to share the screen nicely. To address this new topology, Apple is updating its Xcode IDE; the 27.1 beta will be available later this month. The backend will need some love too The iPhone Duo screen is a different world for a number of reasons. Size is no longer a value, but a dynamic range, Deosthale noted. An app’s available size needs to be read at layout time and adjusted through the app’s lifetime as its screen allocation changes. Some apps will work better in this environment than others, Deosthale noted. Apps with fixed layouts and hardcoded dimensions, or that use view controllers that reload on size change, can appear stretchy. “Those need work,” he wrote. Compared with the iPhone Pro Max, the Duo offers a bit more space, with a 7.6-inch inner display versus 6.9 inches. It’s wide enough that a single column stretching across the entire display won’t impress anyone. Now’s the chance to add in a detail pane or sidebar, side-by-side presenter and viewer modes, Deosthale suggested. And don’t let the app just disappear features, data or other miscellanea when the user switches screens. That will just come off as cheesy. Snapping the unit shut mid-task means the app needs to preserve its state, along with the user’s session identity, as the interface moves to the outer display. Try not to move components around too much when the display switches, leaving the user seeking some option anew. In the technical docs, Apple calls this keeping a “consistent experience.” Contrary to the traditional iPhone layout, some of the device’s system controls have moved from the bottom toward the side of the display, which, in landscape mode, is a sensible change that leaves more, albeit asymmetrical, vertical space. However, it is up to developers to ensure their apps aren’t covered by system controls. While this may not directly relate to the form factor itself, the device runs an A20 Pro system-on-a-chip, built at 2-nanometer scale, with a 6-core CPU, a 7-core GPU wired for matrix math, and a dual 16-core neural engine for ML work. All this horsepower means you can run local ML inference on the device itself. Perhaps add a button to destroy humanity? It’d be the perfect antidote for a rough day at work. If Apple developers have any questions about working with foldable displays, they can ask their Android brethren who have been wrangling foldables for almost a decade now.®

Rijnmond - Nieuws

Het laatste nieuws van vandaag over Rotterdam, Feyenoord, het verkeer en het weer in de regio Rijnmond

Slachtoffer naar ziekenhuis na steekpartij in Schiedam

Een slachtoffer is maandagochtend naar het ziekenhuis gebracht na een steekpartij in een woning in Schiedam. Het geweld speelde zich af aan de Westfrankelandsestraat. Dat gebeurde rond 06:20 uur.