[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.1079341 [View]

you choose the length based on the expected error.
say you have a file with 16 bits. and you expect 2 bits to fail. you want to make sure that you flip back the two correct bits.
say you have a bit of your checksum be the sum of the bits.
next bit is sum of first half of bits. next will be sum of first 4 bits and the sum of 3rd 4 bits then sum of 1,2,5,6,9,10,13,14
then odds.
I'm not sure, but I think this will give you a way to completely check a 16 bit file.
I'm no expert, just a thought.
Md5 checksums are huge (i think 32 bytes) and data errors are small. which gives an accurate sum for files with that many data points safe from single errors. I honestly don't know. Look it up other places on-line?

>> No.1079211 [View]

>>1079192
lol
so greco-roman gods don't count?

>> No.1079074 [View]

my earliest memory i can date is the birth of my sister. She was born at home, and i can remember hearing my mom scream. I don't know if a different memory is earlier or later, but I recall bouncing on a mattress in a large open room in the same house. I have frequent memories fromt the age of about 5, linked with the next house i lived in.

>> No.1072911 [View]

An infinite number of mathematicians, a polar bear, helium, and a neutrino walk into a bar (ouch). One of the mathematicians then says, "the bar is now empty" and they begin to play hide and seek. The neutrino is then stopped by a police officer. Officer Heisenberg says, "Do you know how fast you were going back there?" The neutrino replies, "I'm positive and a pascal but I don't know where I am." The bar tender then says "You're all idiots, the cows are all black" and pours 10 (in base 2, i mean 10) drinks and there is an extra dollar. The polar bear then dissolves in water while the helium does not react.

>> No.1072900 [View]
File: 214 KB, 2766x1364, saturn.jpg [View same] [iqdb] [saucenao] [google]
1072900

Who loves CERN? I love CERN?
http://press.web.cern.ch/press/PressReleases/Releases2010/PR08.10E.html
Pic not related.

>> No.1056551 [View]

>you're
>your
yes, i am trolled.

>> No.1055347 [View]

>>1054422

I approve this message.

>> No.1055340 [View]

You have no idea what you're talking about.
Just thought I'd let you know.
pi is not random, it is pi. I know that may sound philosophical to you, but that string of numbers has a set of properties, and they define that string. It's like saying "How do you explain 1*x=x"

>> No.1055319 [View]

Good luck getting an answer. Most people on here are either ignorant, or in the wrong field for pretty much any question. (I think I fall in the second, but probably the first as well).

>> No.1049736 [View]

TGA is a file format. Like gif or png.
So do I?
It wasn't supposed to be particularly interesting, only noteworthy because it was created with a very simple C program.

>> No.1049573 [View]

shameful self-bump.
Yes, I know i'm pathetic for seeking attention, but when I did the same thing 8 hours ago in python, people were interested.
Oh well.

>> No.1048875 [View]

source and an output are on my website:
http://doolittle.icarus.com/~joseph/Fractal.c
http://doolittle.icarus.com/~joseph/out.jpg
you have to compile Fractal.c
any c complier should work.
then run the output. it will generate a .tga file, which you should be able to convert to jpg.
I don't know of any problems with dimensions, but I think if you try to make an image of size 2000000x2000000 it will break. not sure.

>> No.1048792 [View]

keep in mind that this is /sci/ not /b/
Chris chan is not a part of /sci/ culture.

>> No.1048788 [View]

what a douche.
Congrats OP, way to put in the effort.
Have anything to brag with?

>> No.1048464 [View]
File: 117 KB, 512x512, bin.jpg [View same] [iqdb] [saucenao] [google]
1048464

I got a fully functional image maker working in C and TGA
It took me a long time to figure out TGA completely, and then a while more to do it with C. But here is an initial result. Fractal and program on net will come soon.

>> No.1046214 [View]

yay for anonmity.
if anyone was stalking me on here, they would actually know quite a lot about me.

>> No.1046207 [View]

>>1046201
orbital distance.
duh.

>> No.1046189 [View]

1/x^12-1/x^6
or any different values.

>> No.1045891 [View]

>>1045875
I'm rather sure I can handle the data-write.
I know the length of the header, I can create a "number" with the first 64 bites, write to file, repeat. at end of file, does TGA care if there are trailing zeros? do you know?

>> No.1045871 [View]

Ok, I think i got it. I'll repost code in about 24-36 hours. Using C and TGA.

>> No.1045839 [View]

>>1045829
00 00 02 00 00 00 00 20 00 00 00 00 80 07 38 04 18 00
so this is the header I want? after changing the diminsions?

>> No.1045821 [View]

>>1045805
gah, file formats.
i think i could do bmp.
i'll look at png.
i wish there was an easier way...

>> No.1045789 [View]

>>1045773
Thanks, I'll look it up. I may post something using that later.

>> No.1045755 [View]

>>1045740
i know. i could easily do it in C, but I don't know an easy way to turn the output into an image. and it would be a buttload faster.

Navigation
View posts[+24][+48][+96]