|
FreeBasic source code
n1 = mid( bits , a , 8 )
v1 = val( "&B" + mid( n1 , 1 , 4 ) )
v2 = val( "&B" + mid( n1 , 5 , 4 ) )
if v2 <= 9 then
outs+= chr( ( v1 * 10 ) + v2 )
else
outs+= chr( ( v1 * 16 ) + v2 )
end if
Is there a way to tell if v2 <= 9 or >= 10??
If i divide by 10 or 16 would it reveal v2??
The formula along with Zlib , compresses 5.5% on loop one and can be recursed to get 90+% after 100 lops.
|
|
|
|
|
Wrong forum.
Read the paragraph at the top of this page.
|
|
|
|
|
albert_redditt wrote: The formula along with Zlib , compresses 5.5% on loop one and can be recursed to get 90+% after 100 lops. That alone should already tell you that there is a fundamental issue.
|
|
|
|
|
You are using the wrong compression algorithm: just throw away all the zero bits - they mean "nothing" after all.
"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!
|
|
|
|
|
101010 - There are at least 3 non-padding-related zeroes that are critical to life, the universe, and everything
|
|
|
|
|
Back in the 80's we had a senior hardware engineer who devised this compression algorithm.
He insisted that decompression was "just an implementation detail" and "should be handled in software".
Strangely, we didn't use his method.
"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!
|
|
|
|
|
01000010 the answer to life and without 0s would be meaningless.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
Douglas Adams - Life, the Universe and Everything: Now the world has gone to bed,
Darkness won't engulf my head,
I can see in infrared,
How I hate the night.
Now I lay me down to sleep,
Try to count electric sheep,
Sweet dream wishes you can keep,
How I hate the night.
"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!
|
|
|
|
|
albert_redditt wrote: If i divide by 10 or 16 would it reveal v2??
No, you'd have to find the modulus of 10 or 16 to get v2. But you have no way of knowing which one to use (except for a few values listed below).
e.g. if you have asc(outs) = 31,
using mod 10: v2 = 31 mod 10 = 1, v1 = 31 / 10 = 3; so original bits = 00110001 = 49
using mod 16: v2 = 31 mod 16 = 15, v1 = 31 / 16 = 1; so original bits = 00011111 = 33
Decoding numbers 0 to 9 can only have v2 <= 9
Decoding numbers 10 to 159 are ambiguous (as demonstrated for 31, above)
Decoding numbers 170 to 175, 186 to 191, 202 to 207, 218 to 223, 234 to 239, 250 to 255 can only have v2 >= 10
Decoding numbers 160 to 169, 176 to 185, 192 to 201, 208 to 217, 224 to 233, 240 to 249 is an error as they cannot occur with the algorithm
|
|
|
|
|
If you move your mouse really really fast, like at the speed of light, time (and thus dates) are compressed (or expanded, depending upon your point of view).
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
After about 5 months now I finally did something to crash Visual Studio. I am truly amazed it took so long.
So many years of programming I have forgotten more languages than I know.
|
|
|
|
|
I have been working with Visual Studio since the beginning and have never once crashed it, ever. It has done weird and annoying things over the years, but never a crash.
Kudos to you.
|
|
|
|
|
I have it crash or lock up once per week, on average. Maybe I just beat on it too hard. Obviously harder than it likes.
The update before the last one was absolutely horrendous. One of the worst I can remember. Top three anyway. The latest one seems to have straightened most things out. Find in Files is usable again, at least, and that is very welcome.
"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?"
|
|
|
|
|
I work with VS 2019 8-10 hours a day have no clue what you are talking about.
WTF are you guys doing with VS that crashes once per week? Not one update has been bad for me.
|
|
|
|
|
Read a few other posts. I am not particularly unique.
"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?"
|
|
|
|
|
Congratulations.
I'm not sure how many cookies it makes to be happy, but so far it's not 27.
JaxCoder.com
|
|
|
|
|
michaelbarb wrote: After about 5 months
Slacker.
|
|
|
|
|
dandy72 wrote: Slacker. No, he claims never he never crashed it
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.
|
|
|
|
|
It crashes on me at least a couple of times a week. Full Total Existence Failure type crash. Just disappears and then sheepishly restarts.
cheers
Chris Maunder
|
|
|
|
|
Quote: disappears and then sheepishly restarts My LG TV often does that just when I start to stream a program. It especially does not like my watching Expanse!
Get me coffee and no one gets hurt!
|
|
|
|
|
When I say crash I mean the VS stops responding and never comes back. It also will not totally close. The only way to recover is to Restart. However, just to make sure I shutoff power and then power back on. That way I make sure and dump any memory on all the supporting chips. Not as much of a problem now as it used to be but I am overly cautious.
Come to think of it I have not had the fade, sheepishly restarts either. I know what you are talking about. Wow, that is a long time without these either.
So many years of programming I have forgotten more languages than I know.
|
|
|
|
|
Some crash some don't. I wonder if it is more of a bad memory problem that Linus Torvalds has been harping about. Or may is just some installed junk.
In my case it was a brand new laptop. Engineering quality that they gave me 5 months ago. They had done a clean install so it had none of the HP junk. Just Office and Visual Studio and corporate stuff.
So many years of programming I have forgotten more languages than I know.
|
|
|
|
|
I have yet to actually crash VS2017. I've had components inside it crash but not VS as a whole.
|
|
|
|
|
I had to get a tooth extracted that was beyond salvation. Dentists suffer as much as I do when extracting my teeth, as several have told me that my "bones are extremely hard" and consequently my teeth are very, very difficult to work loose.
Well today my dentist was a petite young thing, 5ft tall and weighing around 100 pounds. I took one look at her and thought "Oh sh@t!". But she surprised me. She turned out to be very competent. She drilled and broke the tooth into 3 pieces, since it was impossible to get it out in one piece. I really suffered through the procedure, but no more than I did in the past on previous extractions. I don't blame her for a moment. She offered to put me to sleep, but I am too chicken for that. I rather stay awake and suffer!
She gave me a prescription for hydrocodone for the pain, which I picked up on my way home. So here I sit, no pain but having a nice buzz as I write this!
Get me coffee and no one gets hurt!
modified 13-Jan-21 21:10pm.
|
|
|
|
|
Went for a root canal treatment this week, but that did not work out as planned, the dentist said the canals were too narrow so I will have to go to a specialist for further treatment
On the positive side, it was painless ...
|
|
|
|