|
journal
all | Rob is 20,357 days old today. |
|
Entries this day: cheater-for-md5-live-count fun-in-park-with-takun-and-mikarin massage mikarin-and-takun-magic-show small-extension-to-md5-cheater cheater for md5 live count ##16:08 Saturday 15 November 2014 JST## To simplify Counting with md5sum, I wrote a little javascript thing to recursively look for required md5 strings. Travis wrote a different version which I modified to make it recursive. He had done things like "use strict" and maybe something else I hadn't done. Once we got to 100, no one posted for a month. I posted a few: GivInG Up aLready? (100) nah (101) so sad (102) /u/artbn mentioned that he was trying to search for strings one by one. I asked if he'd like a copy of the code for cheating at md5. He was like, "yep!" so I threw it up on Github. Now the recursive-cheater is available as a github page. After I posted the code, I realized I should have asked Travis about the License, which he did before posting code for hakyll-journal. Sorry!! permalinkfun in park with takun and mikarin ##15:47 Saturday 15 November 2014 JST## Today Lin and I are at Charu's house (with the whole family of her generation and under). I accompanied Makarin and Takumi to the park where we played games similar to Calvinball. While Takumi made up rules in realtime, Mikarin was like はいはい. I rather liked my game, basically throw a rubber ball onto a 3D monkey-bar grid and get points based on where it first touches the ground. It was conveniently a 5x5 grid, allowing for a sortof radial scoring system (closer to center if more points) permalinkmassage ##20:22 Saturday 15 November 2014 JST## Today I massaged Iru's, Lin's, and Tetsu's shoulders, respectively. Charu massaged Iru's feet, and my, and ママ's shoulders, respectively. permalinkmikarin and takun magic show ##20:09 Saturday 15 November 2014 JST## After ママ received presents and while we were eating cake, Mikarin and Takumi did a magic show. Most of them were "look over there!" tricks, but in one, Mikarin did a bit of memorization / card manipulation. They didn't Fool Us (or at least didn't fool me), but it better than an obvious misdirect trick. permalinksmall extension to md5 cheater ##22:16 Saturday 15 November 2014 JST## On the way home from Charu and Toru's house now. Lin is sleeping beside me because her phone is dead (because I used a lot of its battery power to have Wifi while at their house). I'm adding some not-very-extendable code to the md5 cheater thing: it will allow selecting which characters to convert. It's not extendable because I've just hard coded three sets: [A-Z] -> [a-z] [a-z] -> [A-Z] [ ] -> [] I eventually want to have fine grained control over each letter, but my current method of coding it would require an if then chain so long that if you laid it out end-to-end, then it would be too long to maintain easily: if(document.getElementById('bigToSmall') && document.getElementById('smallToBig') && document.getElementById('spaceToNone')) {
r = merge_objects(merge_objects(bigToSmall,smallToBig),spaceToNone);
} else if(document.getElementById('bigToSmall') && document.getElementById('smallToBig')) {
r = merge_objects(bigToSmall,smallToBig);
} else if(document.getElementById('bigToSmall') && document.getElementById('spaceToNone')) {
r = merge_objects(smallToBig,spaceToNone);
} else if(document.getElementById('smallToBig') && document.getElementById('spaceToNone')) {
r = merge_objects(smallToBig,spaceToNone);
} else if(document.getElementById('bigToSmall')) {
r = bigToSmall;
} else if(document.getElementById('spaceToNone')) {
r = spaceToNone;
} else if(document.getElementById('smallToBig')) {
r = smallToBig;
} else {
r = {};
}
If I figure out a smarter way to code it, then I will. ##22:22## Arriving in Kawasaki now. ##23:09 Oooh I have an idea. I can use JS to create all the checkboxes and loop through each one to see which are checked, adding its from -> to info to the replacement object. permalink |