|
Book with times could be in love (7)
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I'm self-censoring for an hour!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I'll show em I posted late
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
OK I'll bite.
SMITTEN anag of TIMES + NT
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I was going to post that a while a oago but I got busy ... I think you are up tomorrow!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Well done Peter YAUT
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
Here's my compression formula..
bits = chrs input , turned into binary
n1 = mid( bits , a , 4 )
v1 = val( "&B" + n1 )
if v1 = 00 then s1 = "0" : map+= "0001" <-- 5 bits , expands a bit
if v1 = 01 then s1 = "1" : map+= "0001" <-- 5 bits , expands a bit
if v1 = 02 then s1 = "0" : map+= "00" <-- 3 bits compresses 1 bit
if v1 = 03 then s1 = "1" : map+= "00" <-- 3 bits compresses 1 bit
if v1 = 04 then s1 = "00" : map+= "10" <-- 4 bits
if v1 = 05 then s1 = "01" : map+= "10" <-- 4 bits
if v1 = 06 then s1 = "10" : map+= "10" <-- 4 bits
if v1 = 07 then s1 = "11" : map+= "10" <-- 4 bits
if v1 = 08 then s1 = "000" : map+= "1" <-- 4 bits
if v1 = 09 then s1 = "001" : map+= "1" <-- 4 bits
if v1 = 10 then s1 = "010" : map+= "1" <-- 4 bits
if v1 = 11 then s1 = "011" : map+= "1" <-- 4 bits
if v1 = 12 then s1 = "100" : map+= "1" <-- 4 bits
if v1 = 13 then s1 = "101" : map+= "1" <-- 4 bits
if v1 = 14 then s1 = "110" : map+= "1" <-- 4 bits
if v1 = 15 then s1 = "111" : map+= "1" <-- 4 bits
outs+= s1
Turn outs into characters..
Turn map into characters..
Compresses any size file down to around 20K after enough loops..
|
|
|
|
|
This is a topic more appropriate for an article or blog post. Not a lounge post.
"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?"
|
|
|
|
|
Maybe you should supply your algorithm to the makers of huge software downloads such as Visual Studio, Android Studio, etc., rather than writing it here.
|
|
|
|
|
I know nothing of compression or even the language your code is written in but "any size" to more or less the same size Surely you're joking Mr. Feynman That sounds like the person I no longer recall who suggested compressing the compressed file etc. until it was compressed down to one byte - Cheerio
|
|
|
|
|
PaltryProgrammer wrote: or even the language your code is written VB - Surely EVERYBODY knows that???
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
And... how do you decompress it later for normal usage?
Like reversing a logical "OR"[^]?
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.
modified 21-Oct-21 7:05am.
|
|
|
|
|
You can only reverse if you know the source! it's also an encryption!
|
|
|
|
|
In the same way that SHA-256 compresses any file to 32 bytes and makes its contents inaccessible to any intruder.
As SHA-256 for all practical purposes is unique to a file, decompression can be done by using the SHA-256 value as index into a table where the original file contents is found.
|
|
|
|
|
Hmmm...I was wondering if I could win with a compression down to 1 byte but then I saw the last part of the rules requirement.
" To enter, a competitor must submit a compression program and a decompressor that decompresses to the file"
|
|
|
|
|
That's why they push a DVD worth of updates to visual studio every 3 weeks.
And you can't abort an update, even on a metered connection.
My time doesn't matter to them. My money doesn't matter to them. My work doesn't matter to them.
Thank you Microsoft, for turning your best product into to the best reason I shouldn't give you any more money.
Real programmers use butterflies
modified 20-Oct-21 20:33pm.
|
|
|
|
|
I have a pc over for "repair" after apparently an update botched the windows installation.
Doing this for daily bread has given me plenty of opportunity to question, "Do they know?", "Why do they treat us like they do now?" " what did we do?" "Gosh M.S. you used to be cool. /
|
|
|
|
|
Right? I mean, I did work for them, so maybe this is punishment?
Real programmers use butterflies
|
|
|
|
|
No good deed goes unpunished.
|
|
|
|
|
If I were in charge, the punishment for working for Microsoft would be to keep on working for them, seeing all your best ideas ignored in favour of adding the latest "new shiny" to the product.
And that's just in this world. In the next world, you would be required to use nothing but buggy Microsoft products with terrible UIs for all eternity.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Change your settings to not automatically install updates.
|
|
|
|
|
It wasn't my computer that was the problem. It was a client's machine on the other end. He didn't pay attention, and just allowed for updates. Shut down the session to open a new project (don't know why he closed VS, but what ya gonna do?) anyway, he couldn't restart it anymore without it forcing the stupid update, so it meant we were done for the day.
We work over 3000 miles apart. He's not a dev, but because of what we're doing he has to have a debugger on his machine. VS is what he knows how to use, so it's what I recommended he buy a subscription to for the course of this project.
Well, mostly it works, but when an unintentional update kills the rest of my business day it makes me mad at the people who shipped the update, pretty much regardless.
Real programmers use butterflies
|
|
|
|
|
So it is Microsoft's fault that a user did not configure their personal system the way that would work for you?
It seems you are just angry at the situation and targeted Microsoft. No one seems to have been at fault here for you losing dev time with your client.
(Or everyone [you, the client, Microsoft] is at fault if that is how one chooses to view things)
|
|
|
|
|
No that's not it.
I felt I was clear in the OP. My gripe with the setup is you cannot cancel it, nor open VS until it is complete.
If you could cancel setup, like any reasonable application, this wouldn't be an issue.
Real programmers use butterflies
|
|
|
|
|
I used to do that, and it worked for a while. Eventually the b*****ers managed to force an update through, which screwed up my start menu, my Office toolbars, and effectively bricked my scanner and printer. I ranted about it on here and effectively got flamed for not updating regularly!
|
|
|
|