|
Sounds like an expensive restaurant
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
It's less "skill" than "loads of time".
But it's worth the effort for special occasions like Herself's birthday and so on. The result really is spectacularly good, for a chip.
Like the difference between a "Chip Shop Chip"1 and "McVomits Fries"2.
Actually ... no, forget that comparison.
1: Or the "soggy bag of pus" as it's also known.
2: Not known to contain any potato or other recognisable ingredient.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
First: I'm really, really happy you're OK.
Second: please keep up the reports. This sort of first hand info is way more interesting / relevant / useful / informative than the stuff the news are blaring. I know you're only a data point but I'm living vicariously through your experience here.
You're still using gloves: is that to not frighten the natives, or because you can't be sure you're still not viral shedding, or because you can't be sure you won't get it (or something else, given your weakened state) again?
cheers
Chris Maunder
|
|
|
|
|
Quote: “You're still using gloves: is that to not frighten the natives, or because you can't be sure you're still not viral shedding, or because you can't be sure you won't get it (or something else, given your weakened state) again?”
Nah it’s cos he lives in wales and it’s f***ing freezing.
|
|
|
|
|
cheers
Chris Maunder
|
|
|
|
|
Mask to protect them from me. Technically, officially, without-a-test-I-can't-be-surer I'm not infected, infectious, or in any way capable of giving this to others. But ...
Gloves for two reasons: to protect me from them, and to help maintain "zones".
Hot Zone: shops, everywhere other people are, everything they touch.
Warm Zone: inside the cabin of my car - not Hot, not Safe.
Safe Zone: home.
The idea is I transit from Safe to Warm, and need no additional protection - no mask, no gloves. Then I get to the shops, and everything is Hot - starting with the trolley handle (if only because the cleaning station is generally inside the store, and the trolleys are parked outside) and continuing with the produce. So Hot protocol applies: gloves, mask, touch nothing you don't have to, and then use only your right (gloved) hand. Use the cleaning station, (right hand again), and shopping list / contactless payment is left hand operation only to preserve it's "warm at best" status. Produce goes in trolley using right hand only, bags are touched only by left hand (since they came from Safe Zone). Contactless payment using phone in left hand.
Shopping goes in boot - all of it, it's Hot goods and the cabin is Warm.
Mask goes in boot, gloves are binned at shops.
Transit from Warm to Safe with Hot means handwashing, dried on a new set of teatowels that are then bagged and disinfected using this wash aid: Dettol fabric antibac[^]* more gloves and Isopropyl Alcohol (normally used for cleaning the 3D printer, but 99.99% IA kills everything very quickly, and leaves no residue on food packaging). Bags, mask can be recycled after 3 days if not separately decontaminated.
That was the regime before we got it, so I've continued it after just in case. All the research I've done - and I've had a lot of motivation to do this pretty well - says that you can't catch it twice, then "double infections" were probably bad data / dead virus / poor testing conditions. But ... this is a new virus, and it mutates, as they all do. The common cold is a disease caused by up to 200 different viruses: rhinovirus, coronavirus, influenza virus, adenoviruses orthopneumovirus, enteroviruses, human parainfluenza viruses, and human metapneumovirus and people catch that every damn year! If I can prevent a mutated version getting us, then when Herself returns to work, I can help prevent us infecting the residents with another version.
And despite this, we got it ... from Herself's work where insufficient PPE was provided despite changing from street clothes to work and back again, gloves, aprons, full face screen, ... and one breathable mask that had to be hand washed every day ... one tiny chink in the armour is all it needs, one trace that someone else left by touch on a door handle several hours ago ...
* Normally, I use this for Herself's uniforms when they have D&V in the home since they can't be boil-washed and we haven'y had that get us since she started working there over ten years ago. But it says on the bottle "Kills 99.99% of viruses and bacteria, laboratory tested on Influenza H1 N1; RSV; Coronavirus; Herpes Simplex Type 1" which doesn't mention Covid-19 but it probably helps: 15 minute soak kills the lot in theory, so 30 minutes soak, followed by as hot a wash as the teatowels can stand.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Three things: First, great to hear you're continuing to improve (though I think we could tell that from your posts)
Second, time seems (to me) to be passing very quickly at the moment. Weeks fly by - it seems only a couple of days ago you went down with this thing.
Third, importantly: If your O2 levels are low, please don't drive. In fact, if they're that low, please don't even go out. As you've found, you can become confused as your oxygen levels drop. But alongside general confusion, comes a distinct and significant loss of risk awareness. This is sometimes reported by high-altitude climbers and may contribute to the number of deaths of experienced climbers when they don't have sufficient oxygen. Please be aware of this issue. Driving while hypoxic is, I believe, as dangerous as driving drunk.
|
|
|
|
|
Did you know that if you export contacts in Outlook CSV format from Google Contacts, Outlook can't read it?
No, seriously.
And why? Because it's stored with "\n" as the line separator instead of "\r\n" and Outlook doesn't like that, not at all.
A windows app (Chrome) writes a text-based file that another Windows app (Outlook) can't read because the line terminator is Windows standard rather than it's preferred format. I thought we killed that in the eighties!
Guess what, Microsoft? Excel can read it. Excel reads it fine provided it's got any type of line terminator ...
[edit]
OK, it's a trivial change:
string inPath = @"C:\Users\PaulG\Downloads\ToConvert\Contacts\GoggleContacts.csv";
string outPath = @"C:\Users\PaulG\Downloads\ToConvert\Contacts\GoggleContacts2.csv";
string[] lines = File.ReadAllLines(inPath);
string appended = String.Join("\r\n", lines);
File.WriteAllText(outPath, appended);
but it shouldn't be necessary, not at all ... not this century.
[/edit]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Probably they used
Environment.NewLine ... but you are correct, they should know better.
|
|
|
|
|
\r\n is Windows standard (also ASCII standard)
\n is Unix/Linux Standard
\r is (was?) Apple Standard
Truth,
James
|
|
|
|
|
This post alone sums up everything about the notion of "standards".
[There is probably an obligatory XKCD also to be included here].
|
|
|
|
|
There sure is! xkcd: Standards[^]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I knew it !
|
|
|
|
|
Ah, I see you wrote a small application - I used to do that also, when I was still in development.
Today, Text editor -> Ctrl+H -> replace "\r\n" with "\n"
|
|
|
|
|
Actually, for most text editors, it should just be
Load, Save
Truth,
James
|
|
|
|
|
Many plaintext editors default to preserving the newline convention detected when reading the file. So, between the reading and writing, you may have to change the newlinesetting before saving the file.
I did write a similar mini-program a few years ago, doing not only newline changes, but also tab expansion (where you could specify a sequence of tab stops), transformation from a specified DOS codepage to ISO 8859-1, etc. Today, I do not encounter such a variety of text files; besides, I believe that Notepad++ can do 95% of what my program did. Today, I use Notepad for such tasks.
|
|
|
|
|
Since were all programmers:
Open the file in VS, File -> Advanced Save options...
|
|
|
|
|
Jörgen Andersson wrote: were all programmers
Almost all, Jörgen, almost...
|
|
|
|
|
True, I understand some are managers.
|
|
|
|
|
I still am in development & I'd be using my editor (VSCode, where you just click on the 'line ending' item in the status bar and choose LF or CRLF...)
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Just use Excel. Load the file and re-save it. That should work unless Outlook is fussy about quoted strings - Excel always quotes strings in CSVs even if the original Griff string was unquoted and unchanged.
Anyway, glad to hear that you are on the mend, albeit slowly. Take it carefully.
|
|
|
|
|
I would gladly go back...
The eighties were awesome, totally!
Big hair, parachute pants, Walkman's... etc.
Hacking out basic code on a Radio Shack Color Computer (CoCo), and Apple IIe
Life was good... you could shake people's hands, hug a friend, go to the movies.
Remember, no matter where you go... there you are.
|
|
|
|
|
littleGreenDude wrote: go to the movies.
Hmmm ...
National Lampoon's European Vacation
Police Academy
Look Who's Talking
Red Sonja
K-9
Superman IV
Mommie Dearest
Howard the ing Duck.
Weird Science
E.T.
Trading Places
The Money Pit
...
OK, you also had Gremlins, Ghostbusters, and the Terminator, but ... you need very rose tinted glasses to watch most of 'em now!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I guess that you are talking about going back to your youth carrying with you the 30-40 years of experience you have gained since. If you could go back to your youthful body and old-style surroundings, it would be something very different: it wouldn't be experiencing the insecurities and doubts and conflicts and whathaveyou, but an old man's view upon the world.
That is what I could see as something desirable. But I never wanted to go back to my old mind, erasing all the experience I have gained. I never wanted to be a small kid again. Not a grown kid. Not a youth, nor a young adult, nor a middle aged man. I am happy that I am through with all those conflicts and demands and problems. It is much more satisfying leaning aback and relaxing with what I have gained.
|
|
|
|
|
While I essentially agree, why blame Microsoft rather than Google? They're actually equally to blame, but Google erred first.
Besides, saying that the line terminator is \r\n is still imprecise; a line begins with \n and ends with \r .
Get everything from the \n to the \r and you know you have a full and complete line; if not, you may have an incomplete line.
(Of course, you also have to honor quotes and escapes.)
Well, that and that it should be \n\r , but that's a different issue.
Would you also like to argue the issues involved in the lack of a proper CSV standard? Just five minutes? Or the full half hour?
Oh, wait, I also need to mention the superiority of the OpenVMS' file system...
|
|
|
|
|