01:12:46 -!- GregorR has quit (Remote closed the connection). 01:13:02 -!- GregorR has joined. 03:13:31 -!- GregorR has quit (Remote closed the connection). 03:13:40 -!- GregorR has joined. 03:34:35 -!- pgimeno has quit (Read error: 104 (Connection reset by peer)). 03:49:06 -!- pgimeno has joined. 05:04:47 -!- kipple has joined. 05:19:37 -!- GregorR has quit (Remote closed the connection). 05:19:51 -!- GregorR has joined. 06:13:09 -!- jix has joined. 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 08:24:34 -!- nooga has joined. 08:38:00 i wonder how's eso 08:46:10 hmm.... 09:00:42 hi 09:01:17 What was up in the last few days with: [a]"pager" [b]"hawkbot" [c] someone coming on via netcat? 09:04:02 -!- CXI has quit (Read error: 104 (Connection reset by peer)). 09:05:45 -!- CXI has joined. 09:21:59 -!- GregorR has quit (Remote closed the connection). 09:22:14 -!- GregorR has joined. 09:53:47 -!- EgoBot has joined. 10:08:00 -!- ihope_ has joined. 10:13:19 I'm writing an IRC bot. 10:13:56 i'm writing an OS ;p 10:14:07 Ooh... 10:14:40 in (!) C++ :> 10:15:05 only the very basic kernel functionality and entry point is in assembly 11:06:45 -!- EgoBot has quit (Read error: 104 (Connection reset by peer)). 11:07:54 -!- GregorR has quit (Remote closed the connection). 11:33:27 -!- ihope_ has quit (Read error: 110 (Connection timed out)). 11:39:47 -!- GregorR has joined. 11:40:49 -!- GregorR has quit (Remote closed the connection). 11:42:10 -!- GregorR has joined. 11:45:18 http://video.google.com/videoplay?docid=-3406167981875572831 12:10:13 how to write lambda f-tion in C++? :P 12:12:38 -!- nooga has quit. 12:25:12 -!- GregorR_ has joined. 12:26:08 -!- GregorR has quit (Remote closed the connection). 14:46:08 -!- ihope_ has joined. 14:46:10 -!- ihope_ has changed nick to ihope. 14:46:16 -!- jix has left (?). 17:55:27 -!- calamari has joined. 18:01:55 hi 18:01:58 * SimonRC goes to bed 19:05:10 So far my IRC bot doesn't work. 20:35:50 -!- ihope has quit (Read error: 110 (Connection timed out)). 20:42:25 -!- wooby has joined. 21:58:47 -!- kipple has quit (Read error: 110 (Connection timed out)). 22:06:02 -!- Arrogant has joined. 22:23:43 GregorR_: ping 22:39:49 Pong 22:39:49 -!- GregorR_ has changed nick to GregorR. 22:40:17 http://rafb.net/paste/results/jagxaa69.html 22:40:20 is that wrong? 22:40:29 actually, let me rephrase 22:40:33 that is wrong.. 22:40:36 but why 22:40:58 You need to cast, for one. 22:41:32 If you bitshift a character by 8 bits, it'll disappear ^^ 22:41:43 here are four "chars" 22:41:45 ffffffad 41 d ffffffa2 22:42:39 Erm, how did you print those values? 22:42:54 %i 22:43:04 Right, figured, so there's an implicit cast there. 22:43:11 the first one I cast to (unsigned) first 22:43:16 but it didn't seem to help 22:44:10 v[0] = ((unsigned long) block[0] << 24) | ((unsigned long) block[1] << 16) | ((unsigned long) block[2] << 8) | ((unsigned long) block[0]) 22:44:17 Erm 22:44:21 v[0] = ((unsigned long) block[0] << 24) | ((unsigned long) block[1] << 16) | ((unsigned long) block[2] << 8) | ((unsigned long) block[3]) 22:44:26 If I'm thinking properly, that should work. 22:44:57 I can't recall if a simple cast "(unsigned)" would cast it to an unsigned int or an unsigned char ... 22:45:15 (unsigned int) doesn't do it either 22:45:51 maybe it needs to be unsigned char for it to work 22:46:22 Oh, yes indeed. 22:46:34 If you cast them to an unsigned int, it'll fill the rest with 0xff 22:46:40 And then you'll get that or'd 22:46:52 ahh yes 22:47:02 casting to (unsigned char) did the trick 22:49:42 v[0] = (unsigned char) block[0] << 24 | (unsigned char) block[1] << 16 | (unsigned char) block[2] << 8 | (unsigned char) block[3] 22:50:07 I'm mildly surprised that that worked, but I'm not sure what cohersion << uses. 23:08:20 -!- Arrogant has quit ("Leaving"). 23:08:35 -!- Arrogant has joined. 23:28:33 got encryption /decryption working (in C).. so now I can verify Linguine when I code it up 23:29:21 actually, still need to implement some kind of public key system too, so I guess I'm only halfway there 23:30:03 bbl 23:30:05 -!- calamari has quit ("Leaving").