Projects – Cedric's Cruft http://www.ce3c.be Yet another blog about ... stuff. Fri, 04 Jul 2014 23:13:03 +0000 en-US hourly 1 https://wordpress.org/?v=5.1.12 CountryBlock (CIPRG) downtime http://www.ce3c.be/35-countryblock-ciprg-downtime/ http://www.ce3c.be/35-countryblock-ciprg-downtime/#comments Sat, 08 Sep 2007 11:13:42 +0000 http://www.ce3c.be/2007,09,08/countryblock-ciprg-downtime/ I didn't notice yet the CIPRG had some problems caused by the update-proxy,
these are fixed now, and new problems will be auto-forwarded to my email-account from now on.

Sorry for any inconveniences! We're back, and everything's running smoothly now πŸ™‚

Update: something is wrong again, check the comments!
Update: Up and running on mirror hosting!

]]>
http://www.ce3c.be/35-countryblock-ciprg-downtime/feed/ 26
Flox, a new P2P-network http://www.ce3c.be/32-flox/ http://www.ce3c.be/32-flox/#comments Sun, 26 Aug 2007 20:36:36 +0000 http://www.ce3c.be/2007,08,26/flox/ Originally posted by Neglacio at the Flox forum.

This is a small introduction to what Flox must achieve in my eyes:

Flox will be a Blocks Enhanced Network. That's why I called the pre-project the abbreviation from it, BEN. It'll be a P2P network πŸ˜‰

What? Blocks, I hear you say. Well, blocks of files are wonderful! You can have similar files, like only one second missing from a song, but still 99% is the same.
With the current hashing system, that one second less will result in a total different hash, so classic networks will treat these two files, which are only 1 second different, as two totally different files with their own bunch of sources.
This is bad! That way, many sources will get lost, and speed will be cut into two.
So, everyone wants to download the file they want, but with more sources. Introducing blocks will speed up the download that you want, with sources from other files.

Looks nice isn't it? But tech-geeks will say this: "Well, shift one bit to another side, and the whole range of blocks will change, and so will the blocks."
That's right. Let's say we split the files in blocks of 100KB and we cut out the first 50KB from the file. Well, then 10 seconds less in a song will create another kind of 'HashChunkList'.
This can be solved by an own-made technique called Palindrom File Splitting (PFS). A Palindrom is a term from the biochemistry and is used to identify genes and molecules. Now, what is it? The application will search in the file for, so called, mirror sequences. They're a byte range, that'll occur again after it but then in a mirrored mode. An example: 101110011/110011101. The line is like the mirror. And on that line a chunk will be cut off. The nice thing is that a very similar file will have the same Palindrom's, for 98%. So all your blocks will also be 98% similar. So you could use the sources ,who have that 98% from the file you want, too πŸ˜‰

There's also a problem with the network structure (which will be a DHT). The pressure on it! If we are going to store 30 000 blocks for a 4 MB file inside the network, I think that may be a little bit too much. That's why we have this idea: Let's order the blocks in bytesize. Now, let's take the 10 biggest blocks. Hash them all together (see beneath). That will be the Big Master Hash (BMH). Then do the same for the 10 smallest blocks. That will be the Tiny Master Hash (TMH). Now spread those two hashes as two seperate files. Due to this way of working , similar files will either have the BMH or the TMH as the same. Then you can compare the list which contains all the hashes from a file. We'll call that list the Hash-Chunk List (HCL). If there are Chunks the same, well download them!

And next, the hash used. Well, I'm hoping to use Radio-Gatùn, a branch of PANAMA. Why RG? Well, it's a successor of SHA1. It's kinda new, from 2006, and has a kinda nice extra. You can use it as a Stream Cipher πŸ™‚ What's that? A Stream Cipher is a kind of network encryption :p In this world of Anti-P2P this IS necessary. You don't want the feds to know that you're downloading some webcam video from your girlfriend, or do you πŸ˜‰

]]>
http://www.ce3c.be/32-flox/feed/ 5
CrazyClips http://www.ce3c.be/26-crazyclips-2/ http://www.ce3c.be/26-crazyclips-2/#comments Wed, 18 Jul 2007 13:27:26 +0000 http://www.ce3c.be/2007,07,18/crazyclips-2/ It took a long while, but finally CrazyClips is finished πŸ™‚
In short: CrazyClips is a videoclip site linking to almost 5000 popular clips, where you can also listen to radio station and watch television.
The job: I had to rescript the whole site, this includes:

  • A videoclip archive
  • An AJAX-ed playlist feature (best viewed in FF)
  • Very secured flvlinks, the original link should be impossible to fetch by other clipsites when they are trying to rip the clipdatabase. (Mwuhaha!)

But actually the most beautiful part is serverside πŸ™‚
With it's average of 3665 visitors and 13511 pageviews/day, CrazyClips is a very popular site. View some statistics here.

During this project I got more familiar with Flash, which was quite tough because of some encryption class that didn't want to work together with PHP.. after all it was fun ^^

]]>
http://www.ce3c.be/26-crazyclips-2/feed/ 1