|
It is amazing how often metaphors and similes are confused.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
When that happens, I settle for a simile.
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
People suggesting I stick to similes... what are you like?
|
|
|
|
|
inspired by Bill Woodruff's prev message (and just in case others have the same)
stupid new Android phone kept on losing my calendar entries (old phone was fine for years)
I'd duly re-create the entries, and after some random interval later would disappear again.
today resolved to try and fix it.
(and yes, sync -> google calendar is enabled, entries showed up multiple in gcalendar, but lost from phone)
searching the google (and others): lot's of people same problem (since some android update...)
lots of the same stupid advice (just like microsoft forums): enable sync, confirm on gcalendar, click sync now - you know, all the simpleton textbook responses that never fixes sh*t.
....finally a single reference to another article on something else
turns out in: app permissions -> storage -> calendar: it was disabled. (why??)
so adding entries was fine; and the random lossage? reboot / shut down for sure, but also more often: just because.
Message Signature
(Click to edit ->)
|
|
|
|
|
lopatir wrote: but also more often: just because. [irony]They know better what we need than us. [/irony]
Everytime someone in the family got an update in the last times, something stop working as it used to and I had to get through the full settings again to put the switches as they were, at least the ones I remember / recognise again (it wouldn't be the first time I don't find a setting because it was renamed / moved to other place)
It pisses me off to unexpected limits.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Go to settings, and turn off the "Android shall randomly fail" option.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
in sum: a Win 10 update has, evidently, made all my user folders readonly, and permissions can't be changed.
note: i post this here because i think the issue goes beyond specific code used here to illustrate the issue.
Lo and behold, some serialization code using DataContractSerializer (worked fine two months ago) that creates a file on the desktop throws a "file not found exception" when creating a new FileStream.
using (var writer =
new FileStream(filename1, FileMode.Create, FileAccess.Write))
{
dcs.WriteObject(writer, instance);
} So:
1 verify the directory exists. i know the File does not exist because i delete it if it does exist.
2 try using File.Create to create the Stream, experiment with all the various params to 'new FileStream'
3 scratch my head
4 a suspicion dawns that permissions on the Directory have changed. yep: iit's readonly: i change permissions on the Directory: they immediately revert back to readonly.
5 Turns out that a Win update has made everything on my primary drive readonly.
6 go google and find ... yep ... other people are having the same problem after an update: [^]
7 try the various remedies suggested in the above link: they don't work.
8 post on Lounge
9 scratch head
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
modified 14-Sep-19 0:11am.
|
|
|
|
|
Bill,
You would need to enable or disable controlled folder access[^] to prevent this from happening again in the future.
The problem here is that the operating system needs to protect 80 year old grandmothers, your kids, your lawyer, the scientists in your office building while annoying most of the software engineers and power users.
Best Wishes,
-David Delaune
Scientiæ de conservata veritate.
|
|
|
|
|
Thanks, David, you nailed it !
Disabling the ":controlled access" setting, and re-booting: now, i can write to the file.
i had not thought of a possible Win Defender change as the demon at work, here; my long-term sub to EmsiSoft AV just expired, and i guess Win Defeater took over. Interesting i didn't see any Google hits mentioning Win Defender in my searching.
Also, interesting, the Desktop folder i am using still shows up as readonly, and undoing that setting does not persist: it goes back to readonly
Please come to Chiang Mai, and let me take you for a bowl of the famous northern Thai noodles called kao soi (your choice of beef, chicken, or fish; it's customarily a halal dish, so no pork in the really old establishment i go to)
cheers, Bill
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Hmmmm,
BillWoodruff wrote: Please come to Chiang Mai, and let me take you for a bowl of the famous northern Thai noodles called kao soi (your choice of beef, chicken, or fish; it's customarily a halal dish, so no pork in the really old establishment i go to) The last time I ate Thai noodles... I was out with 5 friends. Then the friend from New Zealand managed to get poked in the eye with an asian chopstick. Pretty soon we'll have to call them 4 eyes.
Best Wishes,
-David Delaune
Scientiæ de conservata veritate.
|
|
|
|
|
BillWoodruff wrote: note: i post this here because i think the issue goes beyond specific code used here to illustrate the issue. And IMHO it is right posted.
I need to upgrade lappie and was a "ok, nice to know" for me
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
|
Flail?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
|
Yup
|
|
|
|
|
I'm considering writing a B+ tree in C# but in order to make it worthwhile it needs to be disk backed.
My question is, and it's a weird one but i have my reasons:
Did Btrieve use separate files for its indexes versus its data or was it all in one file?
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
modified 13-Sep-19 16:39pm.
|
|
|
|
|
I remember it very good. Everything was in _one_ file.
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Thanks! You just helped me understand ISAM a lot better than you maybe know you did.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
You are welcome I don't think this was a important help. Btw way some details e.g. here: Btrieve Files[^]
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
it was because it told me how records are managed and a bit about how they're stored. Thanks for the format. I'm not looking to read BTrieve files but I'll save the link because it may answer questions that come up.
My primary interest in ISAM is in how it maps a B+ tree structure to disk, because that's what I'd need to do with a B+tree implementation.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: My primary interest in ISAM is in how it maps a B+ tree structure to disk, because that's what I'd need to do with a B+tree implementation.
You could always take a look at either gnu GDBM or Oracle-Berkeley DB to see how they solved the issue. Unless that's cheating, or you want to avoid any license issues.
|
|
|
|
|
yeah i don't even want to touch anything GNU
besides, that code is mature. it's not so easy to dissect.
I'd rather either start from scratch, or from something simple.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
k5054 wrote: You could always take a look at either gnu GDBM or Oracle-Berkeley DB to see how they solved the issue. Unless that's cheating, or you want to avoid any license issues. Those DBM libraries simply work in a contiguous memory region and write the entire database back to disk when saved. That's why everyone avoided key-value-store (NoSQL is the new buzzword) databases for over a decade. When RAM became cheap and you build a server with terabyte of RAM... the old things became new again.
By the way... let's give credit to the inventing author... Ken Thompson[^] who wrote the first DBM implementation... sometime in the late 1970's. It's not even mentioned in his wikipedia bio... I wonder if anyone will remember that in 30 years.
Best Wishes,
-David Delaune
Scientiæ de conservata veritate.
|
|
|
|
|
I do. The worlds DOS speed demon data systems used it.
RDP (Resort Data Processing) software was one. Ran on Novell Servers.
And we made a lot of money then.
|
|
|
|