Skip to main content
24 events
when toggle format what by license comment
Sep 29, 2012 at 3:29 comment added Dr. belisarius Here is the first try NotebookPut@ImportString[Uncompress@FromCharacterCode@Flatten@ImageData[Import@ "https://i.sstatic.net/gylFH.png","Byte"],"NB"]
Sep 28, 2012 at 17:01 comment added Dr. belisarius @SjoerdC.deVries Sz is the master of the trade. His code is full of little and very well thought details, like the auto upgrade feature. I'm trying to understand it
Sep 28, 2012 at 13:56 comment added Sjoerd C. de Vries That makes two of us. We can steal some of Szabolcs'code.
Sep 28, 2012 at 11:44 comment added Dr. belisarius @SjoerdC.deVries Only if you don't mind waiting until I learn how. I never made one :(
Sep 28, 2012 at 11:41 comment added Sjoerd C. de Vries Well, let's start using it. Will you be making a convenient palette? Perhaps we should delete this post too? We can always amend it while deleted.
Sep 28, 2012 at 8:24 comment added Dr. belisarius @SjoerdC.deVries I understand the limitations. But I still believe there is not a better alternative yet to share relatively large data/code. The whole thing linked above is under 100KB while the nb is 134 KB
Sep 28, 2012 at 8:17 comment added Sjoerd C. de Vries True, but we should take care not to be packing tens of megabytes in a single image. Putting notebooks with images themselves in an image, might not be the best idea (though it is feasible). It might annoy certain people.
Sep 28, 2012 at 7:42 comment added Dr. belisarius @SjoerdC.deVries Another usage example mathematica.stackexchange.com/a/11206/193. Also, many questions posted recently that uploaded large data files to public storage may benefit from this kind of thing
Sep 3, 2012 at 17:29 comment added Dr. belisarius @SjoerdC.deVries See my answer here ... using it :) mathematica.stackexchange.com/a/10166/193
Aug 29, 2012 at 13:39 comment added Dr. belisarius @SjoerdC.deVries yeap. the current implementation of Compress seems to start with a minimum string length of 22, and then increase in 4 bytes steps
Aug 29, 2012 at 13:11 comment added Sjoerd C. de Vries Mod It's probably better code design not to base your code on that, though.
Aug 29, 2012 at 13:10 comment added Sjoerd C. de Vries Mod Quite a bit of redundancy built into Compress
Aug 29, 2012 at 13:01 comment added Dr. belisarius @SjoerdC.deVries Uncompress /@ (StringTake[Compress@"123", {1, -#}] & /@ Range[10]) ... damn :)
Aug 29, 2012 at 12:51 comment added Sjoerd C. de Vries Mod Interesting: execute Compress /@ {"1", "12", "123", "1234", "12345", "123456", "1234567", "12345678", "123456789"} // Column and you will understand it as well as I do ;-)
Aug 29, 2012 at 12:25 comment added Sjoerd C. de Vries Mod True. About Partition: my remark was about how you wouldn't need padding if you don't do 2D pictures. But in this case we're gathering color triplets which again would introduce the need for padding if our data is not a multiple of three. Still it works. I'll be looking at that.
Aug 29, 2012 at 12:20 comment added Dr. belisarius @SjoerdC.deVries Now, here you have a nice application for something like this. The OP cites a certain (large) piece of code from another answer, but the cite is somewhat vague (it takes a few minutes to understand). Instead, he could cite the answer and post an image representing a notebook with the proper code. That way you save some time while answering and if the targeted cite is changed or deleted, this question continues to be relevant.
Aug 29, 2012 at 12:15 comment added Dr. belisarius @SjoerdC.deVries The partition mod works, but I don't undesrstand why. It chops zero, one or two bytes at the end of the string ...
Aug 28, 2012 at 17:56 history edited Sjoerd C. de VriesMod CC BY-SA 3.0
added 42 characters in body
Aug 28, 2012 at 17:32 comment added Sjoerd C. de Vries Mod see update above
Aug 28, 2012 at 17:32 history edited Sjoerd C. de VriesMod CC BY-SA 3.0
added 480 characters in body
Aug 28, 2012 at 4:05 history edited Dr. belisarius CC BY-SA 3.0
added 85 characters in body; added 9 characters in body
Aug 28, 2012 at 3:34 history edited Dr. belisarius CC BY-SA 3.0
added 164 characters in body
Aug 27, 2012 at 12:41 history edited Dr. belisarius CC BY-SA 3.0
added 8 characters in body; deleted 5 characters in body
Aug 27, 2012 at 12:34 history answered Dr. belisarius CC BY-SA 3.0