- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Frist! Really, finally?
Admin
This is unreadable before coffee.
The real wtfs are that a site called the thedailywtf.com is not daily, and that it's been running 9 years without any advancement in the art of writing.
Admin
The real WTF is that they are using local config-files at all. The configs should be stored on the server and copied over on every start of The Blob. This way the administrators can tweak the configs for everybody.
If figure a simple HTTP REST API would be easy enough to setup. A procedure like the following:
You see how this procedure is server-driven and thus easy to adapt.
Admin
Ceci n'est pas une commentaire.
Admin
Premeir!
Admin
The real WTF is french.
Admin
And to think Switzerland has four official languages, and none of them are English! Oh, Mon Déité!
Admin
"... an 'cleverly' optimized routine..."
Admin
Was this written by Christopher Nolan with Guy Pearce playing the part of Sep?
Admin
We all know how this will be fixed: Adding tests for each possible translation of that string...
Admin
The perfect reason to use a fifth language that kludges together things from Germanic and Romance ones.
Admin
Easily solved. Just add a file in the directory called "No such file or directory" and then remove after installation.
Admin
Insane in every way, indeed.
Admin
these comments are pointless both before and after coffee
Admin
Honestly, I never figured out the reason for low-level commands like "ls" to be multilingual. Those who regularly work on the console usually have a decent enough command of English, and those who don't shouldn't perhaps work on the console.
Admin
Well, or you just copy the damn file manually. Certainly not as elegant, sure.
Admin
Admin
Try telling that to the Quebec government - that'll get you mired in bureaucratic hell for a good long time...
Admin
Gosh. Well spotted.
Admin
Admin
There is a special place in hell for developers that use shell commands inside non-script code.
Admin
Easy Fix:
Change the if to:
if (!result.contains("BlobConfig.config"))
Admin
Admin
Admin
BTW, you didn't actually "fix" anything "for me" (that's what the acronym means, since you probably don't know it). You just quoted part of my comment and added your wrong opinion.
Admin
Developer: I've developed this great OS. No security holes, as stable as a double-t bar lying on the ground and it's free!
Manager: Great product! I can't find a single flaw! But we can't release it like that. We need a few things that irk some people, so that there will be flame wars and such. Without those controversial features, nobody will talk about it!
Admin
Admin
Not to mention using a static remotely shared over smb config.
Admin
man test
Admin
Oh, and this might well be a function of libc's perror() function rather than ls itself. That said, my FreeBSD box that I'm using right now doesn't have localised output from ls, nor from perror.
Caveat lector: I'm a native English speaker. That's English - you know, from England - not that weird stuff you Americans speak that sounds sort of similar.
And yes, I know, I have an arrogant attitude, too. Live with it...
Admin
There are private companies in Switzerland, who has understood, the multilingual reality around them. With four official languages, two of which are widely spoken, you just need to deal with multiple languages. And once you are dealing with two languages, the barrier to deal with another is relatively small.
For example when you get a credit card, your preferred language will be stored, such that the ATM will switch to your preferred language as soon as you insert the card. And English is one of the supported languages, in spite of not being an official language.
Of course you do come across people who aren't speaking a perfect English, but who can make themselves understandable. Like the person in a shop who needed my phone number to call me, when a particular shipment arrived, then told me: "When it is here, you will become a phone".
Private companies do have to worry about competition, and the number of foreigners who prefer English is a sizeable market segment. Authorities aren't that great at dealing with the realities though, often they will refuse to speak anything but one of the official languages, regardless of the fact that they'd cover a larger fraction of the population by also communicating in English (and ditching two of the official languages, if five languages is somehow too much).
Admin
Admin
Yes. This is the real WTF in this scenario. But in the Switzerland situation generally, the real WTF is Google going, "oh, you're in Geneva, that's in Switzerland right? Now what do they speak in Switzerland, ah, German!" And then giving you all the pages in German. (They also do this in various other bi/multi-lingual countries. The fact that my browser says "en, en-us" is apparently less meaningful than that I'm in a "German" (or in other cases, "Dutch" - Belgium) speaking country.
Also, a joke: In the far future, visitors from other parts of the world visit Quebec, and start speaking French. The locals wonder at this, and then realize what it is. "Ah, you're speaking that crazy language that has twenty different verb tenses (and multiple by six for a large chunk of those for added complexity). We gave up on that years ago. English is stupid, but it's better than French."
captcha: luctus. luctus is when you get the same captcha since the last time you commented, and thus you don't have to retype the whole thing (just the first letter, and then select from the list).
Admin
Actually, many official documents are already provided in English. E.g. if you get a police check, the negative result is provided on a page that has at least four languages (one of which is English). Not to mention signs, and so on. Look at a railway sign next time, the "don't cross the tracks" is in four languages, French, German, Italian and English.
(Disclaimer: I lived in Geneva for too long a few years ago. Some of my memories are a bit bad. E.g. I'm not sure if the train signs are actually in four languages; they might not have Italian in all cases.)
captcha ingenium: Google has lots of ingenium, that's why they implemented geographical determining for what language to server, rather than just go with the traditional content negotiation system.
Admin
I have to admit: Ididn't test it.
Will testing for the output beginning with "ls:" do the trick?
Admin
Admin
(reaction to faoileag)
Admin
That would seem like someone is deliberatly messing up the system. If you want to break it, there is always a way. (e.g. by creating an empty file)
Admin
FTFY - if you don't like it, don't read it...
Admin
I currently have the pleasure of having to use localised versions (german) of the two OS I have to deal with at work, and I can't say I like it. The reason is simple: if I need to look something up, doing so in English means I have a much higher chance of finding what I'm looking for. So I use English in all my search queries on google, and I use Google's UK version to boot.
The only problem is: somtimes I can't just simply follow the steps from a solution found on the net - I have to translate menu items, error messages etc first. That's unnecessary friction and extra work I can do without.
In this day and age, English is pretty much the lingua franka in science and on the internet. So you learn to use it. At least in an admin / devolper environment.
Admin
Could you make the story of the missed error message any more complex?
The application did not run because it was missing a configuration file. The installer failed to create the configuration file because it checked for a "file not found" message when it checked to see if the configuration file existed, and did not allow for the message from the ls command to come back in non-english languages, such as French.
Admin
Finally a WTF that actually includes FILENOTFOUND!
It is missing true and false, though. Perhaps that is TRWTF?
Admin
Admin
TRWTF is not using the FILE_NOT_FOUND value in Boolean enum
Admin
Why not just "LANG=C ls -l GlobalShared/BlobConfig.Config" or "LANG=EN_US ls -l GlobalShared/BlobConfig.Config"....?
Admin
About the %escapes%... probably some spoiled anonymization.
Admin
OS localization is a nightmare.
When googling any error, you need to translate it back to english, which is sometimes really hard
Admin
Why not use File.Exists()?!?
Admin
Kio? Mi pensis, ke li aludis al Esperanto.
Admin
Maybe it will; maybe not. What would work, however, is to do something that reads the machine-readable output from ls. You see, there is this thing called a 'return code' which will be 0 for most command when all goes well. When ls encounters this error, it returns 2. SSH is then kind enough to pass this value back to you by returning the same code.