department of hack
1890 stories

The Atlas Language Selector

1 Share

I am one of the people who implemented the language selector on Wikipedia, one of the World Wide Web’s most multilingual sites. Because of that, and because I’ve loved languages since I was five, I’m generally obsessed with language selection interfaces everywhere: websites, apps, self-service kiosks, airplane entertainment systems, cars, smart headphones, and so on.

So I was obviously thrilled to see a language selector as a minor plot device in the movie Atlas starring Jennifer Lopez. Most movie critics were quick to pan it, but I’m occasionally curious about “so bad it’s good” movies and like many other people these days, I’m curious about the portrayal of artificial “intelligence” in art, so I bothered to watch it. It is indeed not too brilliant: J.Lo’s acting is pretty OK, and the story has some sensible ideas about AI, but it also has ideas that are very silly and self-contradicting, as well as too much CGI, too many references to the Terminator, Alien, and Blade Runner franchises, and a generally lazily-written script. Though it’s mildly entertaining, you probably have better ways to spend two hours.

However, if I don’t write something about the language selector there, who will? So let’s go:

A screenshot from Netflix. A futuristic interface for selecting languages: three columns of buttons with names of languages and flags. At the top, a closed caption: “Francais [speaks French]”. The other details are described in the rest of the post.

This selector appears at about 33 minutes into the movie.

A few general comments first.

Representing languages using flags is common in language selection interfaces, but it’s a very bad practice. This interface has many examples of why it’s bad, which I’ll discuss in detail.

If my calculations are correct, the movie mostly takes place in the year 2071. The language selector is designed to look like something from that year, but it actually looks a lot like a language selector from a contemporary video game, for example Brawl Stars:

(I’m not much of a gamer, but I’ve got a feeling that there are games whose language selectors are even more similar to the one in Atlas. If you have an example, let me know.)

Some of the languages in the Atlas selector are unusual and don’t quite exist as separately-named languages today. Are the producers suggesting that they’ll exist as independent software user interface languages in 2071? Are those inside jokes by people in the production crew? Are those just goofs? I don’t know, but I’ll try to add a few guesses along the way. Please remember that those are just guesses.

I am failing to find logic in the order of the languages. It’s not alphabetical by the original language name, not by the English language name, not by ISO language code. Maybe it’s just random. Maybe it’s based on some currently-existing software. I just don’t know.

And of course, it’s generally weird that any software in 2071 needs a manual language selector, especially in the context shown in the film—setting up a piece of electronic equipment after turning it on for the first time. Already today, automatic language detection works fairly well in both text and audio, so by 2071, manual selection should be completely unnecessary. Perhaps the producers wanted to poke fun at modern software instead of showing how it will actually look like in 2071.

Now, let’s finally take a look at the languages themselves, going by columns from left to right.

Right at the top, we have something quite odd. The label says “Hejazi”. It’s written in broken Arabic because the designers, as it very often happens, didn’t bother to ask native speakers to proofread. The letters appear disconnected and are written from left to right, and not from right to left. The flag is a bit similar to the Palestinian, Jordanian, and Sudanese flags, but with a different order of colors. According to Wikipedia, it was indeed used by the Kingdom of Hejaz, a short-lived country that existed for a few years after the First World War, and eventually merged with Saudi Arabia. Hejaz is a geographical region in the West of the Arabian Peninsula, and a particular variety of Arabic is spoken there, but to the best of my knowledge, the people who speak it mostly write in standard Arabic, which is treated separately here (more on that later).

Next we have German and Spanish, about which there isn’t much to add except that those languages are represented by the flags of Germany and Spain, even though both languages are spoken in multiple countries.

Chinese is also mostly uneventful—it uses the PRC flag and is just labeled “Chinese”, without “traditional” and “simplified” in parentheses.

Portuguese is represented by the flag of Brazil, even though it’s also spoken in Portugal, Angola, Mozambique, and several other countries.

Then we have Turkish, Tagalog, and Ukrainian, about which there’s not much to say, except that Ukrainian is present here, but Russian isn’t! Does it mean anything? No idea.

Not much to say about Czech and Italian.

English is represented by the United States flag and not by England, U.K., or India (which, depending on how you count, may be the nation with the largest number of English speakers). I don’t understand why is Spanish represented by a European country, while English and Portuguese are represented by American countries.

Not much to say about Korean, Swedish, and Japanese, but there’s a comment about Swedish later.

Finnish is labeled “Suomalainen”. This word describes a Finnish person, and is also used as the adjective “Finnish” for describing some things, but not the Finnish language.

Then we have “Arabic”. Like Hejazi, it’s written from left to right and in disconnected letters. The flag is fuzzy, but it’s probably the UAE one. Arabic is spoken in many countries, and over the years, I’ve seen lots of flags representing the Arabic language: Saudi Arabia’s Shahada flag, Palestinian, Jordanian, or UAE flags, the Arabic letter Ayin, etc.

“Bajan” is the Barbadian creole. Today it is spoken by many people, but not written much. Was there someone Barbadian in the filming crew? Does anyone suggest that it will be a big established language used in software user interfaces in 2071 or is it just a joke? (I didn’t know that “Bajan” is a word for describing the Barbadian culture before watching the film, and it’s probably the most useful thing I learned from it.)

Hausa is represented by the flag of Nigeria. This language is also spoken in Niger and in some other countries. It’s one of the world’s biggest languages, and it’s particularly important in all of Western Africa. Nigeria is a heavily multilingual country, and Hausa is just one of its four big languages, the other three being Yoruba, Igbo, and Fula. So it’s not a very good idea to use the Nigerian flag for this.

Catalan is represented by the Catalan independence activists’ flag, with the blue chevron and the star, known as Estelada. The official flag of the autonomous community of Catalonia is just the yellow one with the four red stripes, and it will probably remain its flag if it ever becomes independent. Are they hinting that Catalonia will achieve independence by 2071? Paying tribute to the fact that Catalan is heavily present in many websites and apps? Or just being ignorant?

“Kryuol” is the Jamaican English-based creole. I didn’t know that “Kryuol” is one of its names, but it looks like it appears on some websites, such as this, so it’s probably not a mistake. Like Barbadian, it’s not written much these days, but maybe it will be written more in the future.

“Sranan” is the language of Suriname, a creole based mostly on English and Dutch. There is a Wikipedia in it, but I haven’t seen it written elsewhere.

Next comes one of the oddest entries: “Åland”. Today, it is a name of an island, which is a Swedish-speaking self-administering territory of Finland. About thirty thousand people live there. There is an Åland Swedish dialect, and I cannot say how different it is from standard Swedish, which appears in this selector separately. Will it develop to an independent language by 2071? Maybe, but it’s still odd to see it in the list. Maybe Åland and Suriname will be revealed as the world centers of AI innovation in the sequel? (Netflix, if you’re producing a sequel and use this idea, consider giving me a lifetime ad-free subscription or something.)

And the last one is Azerbaijani. It’s written strangely. Like the names of other languages, its name is written in all-caps: “AZƎRBAYCANLI”. The third letter is Ǝ, which is the capital counterpart of ǝ. It is incorrect, because the name of this language must be written with the letter Ə, which is the capital counterpart of… ə! The small letters look the same, but the capital letters are different. It’s one of most confusing things in the extended Latin alphabet, and the production designers fell for this trap. Also, the name of the language is usually written with the suffix -CA and not the suffix -LI. As it is with the name of the Finnnish language in the same screen, this word is more appropriate for an Azerbaijani person than for the Azerbaijani language.

So there. Some of the issues are usual and common today: broken Arabic, and wrong character for Azerbaijani.

The most surprising thing is probably the dialects or creoles that are minor or barely existing today: Åland, Hejazi, Bajan, Sranan, Kryuol. Not something that is seen often. Since some of them are Caribbean, perhaps it’s Lopez’s tribute to her Puerto Rican background? But then why aren’t Haitian Creole and Papiamento there, considering that they are much more prominent? I have no answer.

If you see a language selector in any other movies or in any other interesting place, please let me know!

Read the whole story
6 days ago
Boulder, CO
Share this story

Magnet Fishing

1 Share
The ten-way tie was judged a ten-way tie, so no one won the grand prize, a rare fishing monopole.
Read the whole story
8 days ago
Boulder, CO
Share this story

Saturday Morning Breakfast Cereal - Backstory


Click here to go see the bonus panel!

Right before you kill Hitler in Wolfenstein, you get a 60 hour biography, which deeply enhances the experience.

Today's News:
Read the whole story
8 days ago
Boulder, CO
17 days ago
Washington, DC
Share this story

Saturday Morning Breakfast Cereal - Consciousness


Click here to go see the bonus panel!

Oh right, you're experiencing it from a state of total oneness wherein time is without meaning, my bad.

Today's News:
Read the whole story
8 days ago
Boulder, CO
Share this story

Fast Filewise Git Blame

1 Share

When was each file in a git repository last changed, and who changed it? Here's a one liner shell script that produces a fast filewise git blame report:

TZ=UTC git log --name-status --date=iso-strict-local --pretty="%ad%x09%ae" "$@" |
perl -F'/\t/' -lane '
  if (/^[ACDMRTUXB]/) {
    $path = @F>2 ? $F[2] : $F[1];
    print "$date\t$email\t$path" if -e "$path";
  } elsif (@F) {
    ($date, $email) = @F;
' |
sort -k3,3 -k1,1r |
uniq -f2

The report looks roughly like this:

~/src/coreutils $ git-filewise-blame src | head
2024-01-01T13:22:42    basename.c
2024-03-19T15:55:18    basenc.c
2023-10-27T15:56:39    blake2/b2sum.c
2021-11-01T05:30:38    blake2/b2sum.h
2021-12-18T17:34:31    blake2/blake2b-ref.c
2021-12-18T17:34:31    blake2/blake2.h
2022-09-15T05:30:31    blake2/blake2-impl.h
2016-10-31T13:29:34    blake2/.gitignore
2024-04-06T22:13:23    cat.c
2024-01-01T13:22:42    chcon.c

The keyword here is fast. All other approaches I've found execute git log for every file in your checkout. Here's one example of the slow approach:

git ls-files | while read file; do
  git log -n 1 --pretty="Filename: $file, commit: %h, date: %ad" -- "$file"

If your repository has many files and deep history, an exec-for-every-file approach will be horrifically slow – on the order of minutes or even hours. By contrast, the git-filewise-blame approach consumes the output of a single git log command. On my laptop, it takes 1 minute to filewise blame the entire webkit git repository, which has 405k files and 275k commits (!).

Read the whole story
8 days ago
Boulder, CO
Share this story

‘Time for a reckoning.’ Kansas farmers brace for water cuts to save Ogallala Aquifer

1 Share

Sprinklers irrigate a field in Hamilton County, Kansas, where some farmers have petitioned to be removed from a local groundwater management district. State lawmakers are pressuring the district to do more to conserve water in the Ogallala Aquifer. (Allison Kite/Kansas Reflector)

This story, the second in an occasional series about water challenges facing the American heartland, is a partnership between Kansas Reflector and Stateline. Read the first story here.

JETMORE, Kan. — An inch or two of corn peeks out of the dirt, just enough to reveal long rows forming over the horizon.

Sprinkler engines roar as they force water from underground to pour life into dusty fields.

Thunder cracks. The wind whips up dirt as a trail of dark storms looms. The crashing hot and cold fronts would probably set off tornado sirens — if there were any in this remote part of the state.

It’s spring in southwest Kansas, a hub for the nation’s crop, dairy and beef industries.

As the familiar seasonal rhythm plays out, some farmers are bracing for major changes in how they use the long-depleting Ogallala Aquifer. The nation’s largest underground store of fresh water, the Ogallala transformed this arid region into an agricultural powerhouse.

After 50 years of studies, discussions and hand-wringing about the aquifer’s decline, the state is demanding that local groundwater managers finally enforce conservation. But in this region where water is everything, they’ll have to overcome entrenched attitudes and practices that led to decades of overpumping.

“It scares the hell out of me,” farmer Hugh Brownlee said at a recent public meeting in the district on the changes to come.

Last year, Kansas lawmakers passed legislation squarely targeting the Southwest Kansas Groundwater Management District, which spans a dozen counties. Unlike the two other Kansas districts that sit atop the crucial aquifer, this one has done little to enact formal conservation programs that could help prolong the life of the aquifer. The new law aims to force action.

The district has come under fire from legislators increasingly incensed by its substantial travel expenses, its lack of formal conservation policies and its alienation of farmers who are trying to save water. At a hearing in February on a bill meant to help farmers in one county leave the district, a Kansas House member floated the idea of doing away with the organization, also known as Groundwater Management District 3, altogether.

“Maybe that’s something that we need to consider — just dissolve GMD 3 so that these other boards that are doing good work are not affected,” said state Rep. Cyndi Howerton, a Republican from Wichita.

District leaders think the criticism is unfair. But even they acknowledge that painful change is brewing. Change that will force farmers to cut back.

Clay Scott, a farmer and rancher who has served on the district’s board for more than two decades, said most local farmers are ready to change. That’s partly because they don’t want to give the state a reason to impose its own restrictions, he said.

Scott said the problem of overuse has been generations in the making and can’t be reversed overnight.

“It’s going to take us time to turn this ship around,” he said.

But critics say the organization has already had plenty of time. Decades.

“My biggest disappointment with GMD 3 is they’ve had 50 years to build a consensus on conservation and they failed to do it,” said Frank Mercurio, who works for a dairy with facilities across southwest Kansas and southeast Colorado.

The discussions here mirror those occurring not just across the eight Ogallala states (Colorado, Kansas, Nebraska, New Mexico, Oklahoma, South Dakota, Texas and Wyoming) but also across the country. The dual threat of climate change and overpumping of groundwater threatens farming and agricultural communities coast to coast.

Outside the town of Syracuse, Kansas, Brownlee runs a small farm with dryland and irrigated fields divided by a curvy two-lane blacktop. More than 200 years ago, Mexican and American traders following the Santa Fe Trail crossed this part of the plains on ox-pulled wagons.

Brownlee, who farms part time and drives a propane truck, said he understands the shrinking water supply. But he thinks the state is to blame — not farmers. Decades ago, Kansas officials issued more water rights than the aquifer can sustain.

The state should fix that, rather than punishing farmers with across-the-board cuts, he said.

“They want to be able to flip the switch and just stop it,” Brownlee said. “That’s not going to do anybody no good.”

Hugh Brownlee walks by a dry creek bed on his farm near Syracuse, Kansas. Farmers such as Brownlee could face irrigation cutbacks following legislation from Kansas lawmakers. (Allison Kite/Kansas Reflector)

‘Should have been done 40 years ago’

In a community center on Main Street in Lakin, Kansas, a few dozen farmers in feed and seed hats last month pulled folding chairs off a big metal rack.

Just below the stained drop ceiling panels, a tilted projector shone onto a bare beige wall the district’s plans to comply with the new law. The first step: identifying priority areas for its conservation efforts.

An expert from the Kansas Geological Survey pointed to maps of the district. Blood red blots showed where aquifer conditions were most severe. In some parts of the district, the aquifer is already all but gone. Other areas have more than 60 years of water left even if they don’t cut back their usage.

But at this and a series of meetings across southwest Kansas, district leaders outlined plans to declare its entire territory a priority area. Some critics viewed the move as a stall tactic, but district leaders say it leaves all options available to them. The district in 2026 will have to present an action plan, which it says will reflect the huge variations in aquifer conditions.

Kansas’ chief engineer, Earl Lewis, who will evaluate the board’s plan and future conservation efforts, said the board likely can designate the whole region a priority, though he’s not sure it meets “the spirit” of the law.

In the series of meetings, farmers ran through familiar questions, concerns and excuses.

What about the farms pumping the aquifer down in Oklahoma?

What about all the new dairies and feedlots coming in?

What about city drinking water wells?

Crop irrigation accounts for 85% of all water use in Kansas — even more in western Kansas.

The group also discussed the possibility of paying growers to shut down their wells.

But one farmer said he can’t farm his sandy soil without irrigation. After the meeting, he declined to be named, saying he could get in big trouble for sharing his real feelings.

Local farmer Steve Sterling interjected at the first meeting in Garden City to say conservation planning “should have been done 40 years ago.” Some of his neighbors abandoned their farm when he was 12, he said. They were out of water.

Katie Durham, who manages Groundwater Management District 1 in western Kansas, drove south to attend some of the meetings in GMD 3. She said she hoped the farmers in attendance understood that change is coming under the new law.

“This is happening,” Durham said. “I just hope that urgency and sense of wanting to be involved and kind of taking ownership of the future on a local level — I just hope people are understanding that.”

McGuire, V.L., and Strauch, K.R., 2022. Data from U.S. Geological Survey.

‘This is a cultural thing’

Between the 1950s and the 1970s, Kansas created the fundamental problem that allows aquifer depletion by granting farmers the right to pump more water out of the aquifer each year than returns to it via rainfall. But the state has largely left it up to locals to find solutions to the problem.

The state charged the three groundwater management districts over the Ogallala with protecting both the agricultural economy and aquifer water. But their five-decade histories primarily have been marked by further decline of the Ogallala Aquifer. Two districts have made progress in recent years and helped farmers to slow, or even stop, the decline.

GMD 3 is different.

Burke Griggs, a water attorney who previously worked for the state, argues the southwest Kansas district isn’t doing much compared with the other two.

“The law is the same. The regs are basically the same,” he said. “This is a cultural thing.”

He argues the state should take a firmer stance in aquifer management.

“I think it’s time for a reckoning,” Griggs said.

District officials say farmers in GMD 3 have used 13% less water in the past 10 years compared with the decade before. But it’s unclear how much of that change is intentional — from conservation — or a reflection of the limited water available in the declining aquifer.

Though its territory is twice the size of the other two districts’ combined, the southwest Kansas district hasn’t accomplished as much. The other districts have offered financial assistance to farmers investing in water-efficient irrigation systems and championed large-scale restrictions on pumping.

GMD 3 has done none of that. Between 2010 and 2022, financial records show, the district spent, on average, only 13% of the money it budgeted for conservation. In most years, it didn’t spend anything on conservation.

Mark Rude, who has been the organization’s executive director for nearly two decades, said the district’s entire budget supports water conservation. The district takes in more than $1 million per year and spends 70% of that on salaries and benefits, according to financial documents received through a records request. The rest goes largely to office equipment, travel and other administrative costs.

“I mean, ultimately, that’s why we’re here,” Rude said, “and if you look at the $600,000-plus we (spend) on staff, why is the staff here?”

This summer, the district board will consider a 38% increase in the fee it imposes on water users, which is expected to raise more than $200,000 each year. Rude said that money would primarily be used to hire two new employees to help with grant projects offering technical assistance to farmers trying to conserve water.

Between 2010 and 2022, GMD 3 spent about four times as much on travel for Rude and staff as on water conservation. On average, the GMD pays more than $20,000 each year for Rude’s travel — plus another $20,000 for the rest of its staff members — compared with $10,000 for water conservation.

Last year, the district changed its financial statements, reporting fewer, broader categories. The new financial structure did not distinguish travel costs from other expenses.

Rude defends the spending by saying it’s necessary to build the partnerships and relationships needed to achieve district goals, including its aim of piping in water from out of state.

“How else do you do it?” Rude said. “Really, please show us: How else do you do it?”

Mark Rude, executive director of the Southwest Kansas Groundwater Management District, addresses farmers at a community center in Lakin, Kansas, on May 20, 2024. Kansas lawmakers are requiring the district to create a new plan to help preserve the Ogallala Aquifer, which spans eight states. (Allison Kite/Kansas Reflector)

Last year, lawmakers from both sides of the aisle questioned Rude during a committee hearing on why the district wasn’t doing more to conserve groundwater.

State Rep. Lindsay Vaughn, an Overland Park Democrat, said during a legislative hearing that the district had 50 years to act but made no progress on addressing aquifer decline.

“The issue is only becoming more urgent,” Vaughn said, “and I am discouraged to see that there aren’t any real efforts right now to get the ball rolling and coming up with a long-term plan.”

The district’s lack of action also has drawn the attention of farmers who mounted a campaign to secede.

In 2022, Hamilton County farmers submitted a petition to withdraw from the groundwater district.

They characterized the organization as a bureaucratic mess with a ballooning budget that spends little on conservation, obstructs programs meant to slow groundwater decline and provides no benefits for dryland farmers who also pay assessments.

The petition criticized groundwater district leaders’ fixation on building an aqueduct across the state. The organization twice has trucked water 400 miles from the Missouri River to western Kansas in an effort to sell the idea.

In their petition, Hamilton County farmers said the project only managed to move and dump water with “no tangible benefit to anyone.”

Richard Geven, owner of the 10,000-head Southwest Plains Dairy, was among those who signed the petition to leave.

Geven, a native of the Netherlands who has been farming here for nearly 20 years, said he sees little reason for the groundwater district. When he has issues with his wells or needs clarity on water rights, he works with state regulators.

But he pays assessments every year to the district.

“We don’t know what the purpose is,” he said. “We think, ‘What are they doing? We don’t need them.’”

Vast expanses of wheat grow in Southwest Kansas. Long an agricultural hub, the region is facing renewed pressure from state leaders seeking to preserve the quickly depleting Ogallala Aquifer. (Kevin Hardy/Stateline)

‘They will face the same choices’

Across most of the Ogallala states, governments have preferred to encourage voluntary conservation rather than mandating steep cutbacks, said Kevin Wagner, director of the Oklahoma Water Resource Center at Oklahoma State University.

Oklahoma allows farmers to use up to 2 feet of water each year on every acre they own. But usage is not monitored. Farmers report annual estimates of water usage.

And the state has not banned the drilling of new irrigation wells.

Researchers have closely monitored the decline of the aquifer across the Oklahoma Panhandle — it’s dropping about half a foot per year, he said.

But there’s no telling how much individual farmers are using or conserving.

“When I talk to producers in Oklahoma, there’s a lot of feeling that Oklahoma producers are doing just as good at conserving as their neighbors in Texas and in Kansas,” Wagner said. “And honestly there’s no data out there right now.”

Oklahoma state Rep. Carl Newton, a Republican, introduced legislation this year that would require irrigators to meter their water use.

The measure passed, but amid steep opposition from agriculture trade groups, Republican Gov. Kevin Stitt vetoed it. He called it government overreach and a violation of private property rights.

Newton said he plans to reintroduce the bill, which he described as “a starting point” for conservation efforts.

“You’ve got to find out where your problem is to get an idea of where to go,” he said. “That was my whole goal.”

Kansas started requiring irrigators to install meters and report water usage in the early 1990s.

Formal conservation efforts have been underway in other parts of the region for years.

In Nebraska’s Republican River Basin, groundwater regulators have helped producers install soil moisture probes and more accurate meters that use telemetry to conserve. And Colorado offers a master irrigator course to help farmers grow crops more efficiently.

In Wichita County, Kansas, just beyond the bounds of GMD 3, farmers created a conservation program that launched in 2021. Called a local enhanced management area, farmers committed to cutting water use by at least 25%.

Farmer Don Smith said the program provided a chance for locals to act together before the state stepped in.

Smith, his brother and nephews together run Smith Family Farms, which grows corn, wheat and milo against a backdrop of massive wind turbines. Shiny grain bins emblazoned with the family name tower near the office, where a curious Australian shepherd keeps watch, rearing up on hind legs to peer through the door.

The farm is mostly dryland. Its irrigated fields draw upon 38 wells, connected to advanced sprinkler systems that help reduce water use. The farm also has transitioned to no-till methods, which keeps more moisture in the soil.

Smith said the farm shows that growers can save water and still make money. Lower water use does lead to lower yields, he said. But it also makes growing crops less expensive.

Smith knows the groundwater district just to his south has deeper wells and more abundant water. But the declining aquifer eventually will force changes there.

“I guess it’ll be interesting to see if at some point somebody responds before the gun’s to their head,” he said. “They will face the same choices we all north of them have had to face.”

In Wichita County, Smith said, test wells show the changes have slowed or even reversed aquifer decline. But even so, he doesn’t think irrigated farming will last forever. He expects the day will come when pumping small amounts of water won’t be worth the cost.

“We all understand that we are sucking water out of a bathtub,” he said. “And the rate we’re taking it out of the bathtub exceeds the rate Mother Nature can put it back in.”

This article first appeared in the Kansas Reflector, a sister site of the Nebraska Examiner in the States Newsroom network.


The post ‘Time for a reckoning.’ Kansas farmers brace for water cuts to save Ogallala Aquifer appeared first on Nebraska Examiner.

Read the whole story
8 days ago
Boulder, CO
Share this story
Next Page of Stories