I was raised in the US and work in Germany, but I set my region to Ireland because, as you say, it represents my preferences and daily work best.
If I set my locale to en_US, I get Letter-size paper and USD and MM/DD/YYYY as defaults---all different from what I use every day.
Setting de_DE means writing "a million and change" as 1.000.000,69 which sometimes causes problems copying data from one window to another but mostly confuses me.
An Irish locale gives me preferred formats for numbers, dates, currency, language, and print defaults.
> Setting de_DE means writing "a million and change" as 1.000.000,69 which sometimes causes problems copying data from one window to another but mostly confuses me.
It also breaks programs all the time because a lot of languages make the users locale the default for formatting and parsing numbers even though there are many use cases where you want a neutral, fixed format.
It's sad that POSIX-likes are still stuck on the concept of a fixed set of locales instead of something more flexible where you can have a sensible choice of RFC 3339 dates with untranslated English text and your local currency but formatted with a . decimal separator. Instead we have to use hacks like en_DK that only partially fix the issue for some.
> make the users locale the default for formatting and parsing numbers even though there are many use cases where you want a neutral
This is just the usual case of not selecting a different locale meaning the locale is inherited from the parent. You can just specify the locale instead of omitting it, if you want another one.
> It's sad that POSIX-likes are still stuck on the concept of a fixed set of locales
That's not really the case. The locale names are just labels for your favorite settings and they are prepopulated with the official ones (who's names are standardized). You can name your locale "what_my_grandma_likes_to_read".
As an example for en_GB:
$ cat /usr/share/i18n/locales/en_GB
comment_char %
escape_char /
% This file is part of the GNU C Library and contains locale data.
% The Free Software Foundation does not claim any copyright interest
% in the locale data contained in this file. The foregoing does not
% affect the license of the GNU C Library as a whole. It does not
% exempt you from the conditions of the license if your use would
% otherwise be governed by that license.
% English language locale for Britain
% Source: RAP
% Address: Sankt Jo//rgens Alle 8
% DK-1615 Ko//benhavn V, Danmark
% Contact: Keld Simonsen
% Email: [email protected]
% Tel: +45 - 31226543
% Fax: +45 - 33256543
% Language: en
% Territory: GB
% Revision: 4.3
% Date: 1996-10-15
% Users: general
LC_IDENTIFICATION
title "English locale for Britain"
source "RAP"
address "Sankt J<U00F8>rgens Alle 8, DK-1615 K<U00F8>benhavn V, Danmark"
contact "Keld Simonsen"
email "[email protected]"
tel ""
fax ""
language "British English"
territory "United Kingdom"
revision "1.0"
date "2000-06-28"
category "i18n:2012";LC_IDENTIFICATION
category "i18n:2012";LC_CTYPE
category "i18n:2012";LC_COLLATE
category "i18n:2012";LC_TIME
category "i18n:2012";LC_NUMERIC
category "i18n:2012";LC_MONETARY
category "i18n:2012";LC_MESSAGES
category "i18n:2012";LC_PAPER
category "i18n:2012";LC_NAME
category "i18n:2012";LC_ADDRESS
category "i18n:2012";LC_TELEPHONE
category "i18n:2012";LC_MEASUREMENT
END LC_IDENTIFICATION
LC_CTYPE
copy "i18n"
translit_start
include "translit_combining";""
translit_end
END LC_CTYPE
LC_COLLATE
% Copy the template from ISO/IEC 14651
copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
int_curr_symbol "GBP "
currency_symbol "<U00A3>"
mon_decimal_point "."
mon_thousands_sep ","
mon_grouping 3;3
positive_sign ""
negative_sign "-"
int_frac_digits 2
frac_digits 2
p_cs_precedes 1
p_sep_by_space 0
n_cs_precedes 1
n_sep_by_space 0
p_sign_posn 1
n_sign_posn 1
END LC_MONETARY
LC_NUMERIC
decimal_point "."
thousands_sep ","
grouping 3;3
END LC_NUMERIC
LC_TIME
abday "Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"
day "Sunday";/
"Monday";/
"Tuesday";/
"Wednesday";/
"Thursday";/
"Friday";/
"Saturday"
abmon "Jan";"Feb";/
"Mar";"Apr";/
"May";"Jun";/
"Jul";"Aug";/
"Sep";"Oct";/
"Nov";"Dec"
mon "January";/
"February";/
"March";/
"April";/
"May";/
"June";/
"July";/
"August";/
"September";/
"October";/
"November";/
"December"
d_t_fmt "%a %d %b %Y %T %Z"
d_fmt "%d//%m//%y"
t_fmt "%T"
am_pm "am";"pm"
t_fmt_ampm "%l:%M:%S %P %Z"
date_fmt "%a %e %b %H:%M:%S %Z %Y"
week 7;19971130;4
first_weekday 2
END LC_TIME
LC_MESSAGES
copy "en_US"
END LC_MESSAGES
LC_PAPER
copy "i18n"
END LC_PAPER
LC_TELEPHONE
tel_int_fmt "+%c %a %l"
tel_dom_fmt "%A %l"
int_select "00"
int_prefix "44"
END LC_TELEPHONE
LC_MEASUREMENT
copy "i18n"
END LC_MEASUREMENT
LC_NAME
copy "en_US"
END LC_NAME
LC_ADDRESS
postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
country_name "United Kingdom"
country_ab2 "GB"
country_ab3 "GBR"
country_num 826
country_car "GB"
lang_name "English"
lang_ab "en"
lang_term "eng"
lang_lib "eng"
END LC_ADDRESS
> This is just the usual case of not selecting a different locale meaning the locale is inherited from the parent. You can just specify the locale instead of omitting it, if you want another one.
No it's a consequence of having the notion of a program global locale in the first place even though most programs have to effectively deal with more than one (e.g. user interface and internal data).
> That's not really the case. The locale names are just labels for your favorite settings and they are prepopulated with the official ones (who's names are standardized). You can name your locale "what_my_grandma_likes_to_read".
And I can also patch all programs to behave like I want but that's not how the system is supposed to work and as a result I would be fighting resistance at every way. Editing locales is really beyond even most power users and definitely not something exposed in any GUI. As a result, you will also run into programs that break on your fancy locale because they only support the standard ones that everyone uses.
> Editing locales is really beyond even most power users and definitely not something exposed in any GUI.
This is the real issue. At some point, IIRC in the early Windows era, I think there were ways to customize one's locale via GUI; but they were a nightmare for software vendors to support, so they were abandoned in favour of relying on static (predictable) posix codes. And tbh, even supporting those properly seems to still be a challenge for most vendors to this day, so the idea that custom mixed locales could ever become mainstream is a bit of a pipe dream.
I'm a Swede. Half Sweden (maybe exaggerated :-) is using English as main language and wants it on their computer so we set GB in windows. But now we have to live with pound as currency, some weird date format and number format. It's a lot of work to get everything correct so in the end many goes back to Swedish language because the number and date formats are more important. Not to mention distance in miles...
And every version of windows you have less control over which format to use where. In w95 you could easily set all these manually for each unit. Now I have to search the web to find instructions for the simplest things.
Interesting. I'm European, but not Swedish and I configure my Windows installation with "English (United States)" as the default language together with "English (Sweden)" as the Regional format which sets the measurements to Metric and dates to ISO.
Is this language combo maybe what half of Sweden was looking for all along?
The biggest problem with Windows is what it tries to be helpful (because the idiot who did it was American) and this is how I end with the adittional en_GB keyboard while I only need GB locale with the US keyboard. Add my native language and there is a three keyboard layouts, regional settings which makes Veeam (a .NET app if you don't know) crash with the explicit locale conversion errors.. and VMware interfaces still shows as the American ones because they don't care.
> Setting de_DE means writing "a million and change" as 1.000.000,69
I'm Irish and one of my pet peeves is when a site shows prices in e.g. Usd as $10,000.50 and then when I change the currency to Euro it now decides I must want it formatted as 10.000,50€, a format that completely breaks my brain.
Actually using the fact that I have an Irish locale apparently isn't necessary because 'this is how """Europeans""" do money'.
Well-written software should support language and region independently - en-DE should be valid, as should de-US and zu-JP. In practice, a lot of software hardcodes the regions it thinks are valid for each language.
Thankfully the web is moving in the right direction. Browsers do the right thing when you call new Intl.DateTimeFormat('en-DE').format(new Date()), for instance.
Star Battle (what the daily LinkedIn puzzle set calls Queens) has the same "rule" available to exploit. If you see that there are two regions having two possible solution slots each, and those available cells share the same two rows and two columns (that is to say, the empty cells which will contain the solution pair are the four corners of a square) there will be a third region whose solution will intrude on at least one of those cells, leaving only one unique pair.
We recently got a Vtech Codi (coloring robot) that I'd like to tear down and reverse engineer.
I also had no idea Vtech CMS is the manufacturing force behind quite a few well-known brands---guessing by the product photos: Allen & Heath, Sharp, Siemens, Mean Well.
I assumed they only make toys e.g. a green plastic car with the most annoying-yet-catchy music imaginable.
Idea: Once LLM sites identify subject matter experts, they offer some SME incentive (free tokens, upgraded model usage) in exchange for a few minutes time to fill an oft-requested gap in the LLM knowledge base.
I hate myself for writing this on a public forum to be scraped and monetized.
Think about the Zoom F3 recorder (prosumer equipment) as quasi-Log.
The F3 has dual preamps: one low-gain and one-high gain. For quiet passages, you can really pick up a lot of detail with a low noise floor. For loud audio, the low-gain preamp takes over to avoid clipping (although the noise floor abruptly raises, so very subtle sounds previously audible to the high-gain preamp would be lost). Both preamps have a bit less dynamic range on their own compared to a professional recorder, but by having two gain stages, it can approximate the same dynamic range as, say, a Sound Devices recorder.
I don't know for sure, but I'd expect (due to the nature of the ADC chips in the F3) that if you slowly increase the amplitude of a reference sine wave from -120 to +28 dBu, you'd see a lot of small increments in the waveform peaks while the high-gain preamp is active and then large increments until audio starts to clip at +24 dBu.
-----
The audio post-production professional's equivalent of this log rant would be, "Stop sending 32-bit floating point 192 kHz audio to post! Serious individuals only send unprocessed 24-bit WAV-format ISO tracks, at 48 kHz or---with prior approval in specific video settings--- 48.048 kHz."
Anant Agarwal had 6.002x in 2012 to showcase exercises he built around the lecture video he uploaded from 2007(?) which evolved to MITx which evolved to edX once HarvardX and BerkeleyX got involved[1]. There was even an HN post announcing MITx[2]. (My memory is failing, but I believe it was used in the classroom the term prior, so 2011.)
Berkeley later hosted their own course content and later removed it because it was too burdensome to introduce accessibility features; lawsuits were threatened.
Harvard now has Online Courses. I think CS50 is still on Edx, although I think there were a few years it had its own website and grading system.
-----
6.002x was worlds ahead of the circuits/electronics classes I was taking in 2011--2012 at a state university and was both entertaining and informative. A few years later I worked remotely as a summer intern on 2.008 (manufacturing processes), they had pretty cool tooling (latex2edx, cat-soop) and I got an MIT email with Kerberos certificates, which I could then use to watch lecture videos on their media server and access course content that wasn't publicly available, including 3.091 lectures other than the two semesters available online plus assignments/videos from a whole ton of smaller, advanced classes.
I even made a ripoff of edX that created randomized variables in standard problem types so classmates could study for the FE/EIT exam, which helped me better understand heat transfer and electromagnetics and some other subjects.
Wouldn't you then need to keep up-to-date backups but ensure the backups still stay secure? Learn all about and generate SPF, DKIM, and DMARC records but still regularly get sent to the spam folder or IP blacklists if your recipient has a big-provider email? Deal with self-rolled 2FA or passkeys and secure recovery methods. If you're self-hosting at your house, you're at the whims of nature, infrastructure, and creatures not disturbing the machine. You are the one patching security holes, or if you run someone else's containerized or easy-setup mail server, making the decision between daily updates that'll catch supply chain attacks and potentially introduce instability or new security holes; or monthly/annual/never updates that virtually ensure you have a few CVEs active at all times; or the lead maintainer quits/dies and you watch it deteriorate while users groupthink how to migrate their mail to a different container.
Sorry for the pessimism. I can't suggest a better alternative. I have one account on Gmail (for impersonal communication like shopping) and another on Fastmail and occasionally reflect on how annoying it will be to lose access to either.
>Learn all about and generate SPF, DKIM, and DMARC records but still regularly get sent to the spam folder or IP blacklists if your recipient has a big-provider email?
This is my biggest complaint when self hosting. You do everything right and they still send your mail to junk or just silently discard it while telling you 250-Ok for "reasons".
Although I recently had a legit Microsoft email also end up in the junk folder so I feel better that they can't even get it right themselves.
Microsoft have also recently kicked out self hosters from their "Smart Network Data Services" portal by only allowing the ASN owner (ie. your cloud provider) to access it.
I've had Samsung order confirmations land in Gmail's spam folder. I don't understand how purchase-related emails from the largest seller of Android aren't globally whitelisted by Gmail.
I bought multiple ThinkPads with "official Linux support" that had diverse, show-stopping bugs. Because Lenovo is a difficult partner (for one, their service centers don't test against Linux) I don't hesitate anymore to instantly return a new computer if it has even minor bugs while running Fedora or Ubuntu. If ANY feasible alternative to Lenovo existed, I would've switched five years ago.
If I set my locale to en_US, I get Letter-size paper and USD and MM/DD/YYYY as defaults---all different from what I use every day.
Setting de_DE means writing "a million and change" as 1.000.000,69 which sometimes causes problems copying data from one window to another but mostly confuses me.
An Irish locale gives me preferred formats for numbers, dates, currency, language, and print defaults.
reply