←2006-02-27 2006-02-28 2006-03-01→ ↑2006 ↑all
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 <nooga> i wonder how's eso
08:46:10 <jix> hmm....
09:00:42 <SimonRC> hi
09:01:17 <SimonRC> 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 <ihope_> I'm writing an IRC bot.
10:13:56 <nooga> i'm writing an OS ;p
10:14:07 <ihope_> Ooh...
10:14:40 <nooga> in (!) C++ :>
10:15:05 <nooga> 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 <nooga> http://video.google.com/videoplay?docid=-3406167981875572831
12:10:13 <nooga> 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 <SimonRC> hi
18:01:58 * SimonRC goes to bed
19:05:10 <ihope> 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 <calamari> GregorR_: ping
22:39:49 <GregorR_> Pong
22:39:49 -!- GregorR_ has changed nick to GregorR.
22:40:17 <calamari> http://rafb.net/paste/results/jagxaa69.html
22:40:20 <calamari> is that wrong?
22:40:29 <calamari> actually, let me rephrase
22:40:33 <calamari> that is wrong..
22:40:36 <calamari> but why
22:40:58 <GregorR> You need to cast, for one.
22:41:32 <GregorR> If you bitshift a character by 8 bits, it'll disappear ^^
22:41:43 <calamari> here are four "chars"
22:41:45 <calamari> ffffffad 41 d ffffffa2
22:42:39 <GregorR> Erm, how did you print those values?
22:42:54 <calamari> %i
22:43:04 <GregorR> Right, figured, so there's an implicit cast there.
22:43:11 <calamari> the first one I cast to (unsigned) first
22:43:16 <calamari> but it didn't seem to help
22:44:10 <GregorR> v[0] = ((unsigned long) block[0] << 24) | ((unsigned long) block[1] << 16) | ((unsigned long) block[2] << 8) | ((unsigned long) block[0])
22:44:17 <GregorR> Erm
22:44:21 <GregorR> v[0] = ((unsigned long) block[0] << 24) | ((unsigned long) block[1] << 16) | ((unsigned long) block[2] << 8) | ((unsigned long) block[3])
22:44:26 <GregorR> If I'm thinking properly, that should work.
22:44:57 <GregorR> I can't recall if a simple cast "(unsigned)" would cast it to an unsigned int or an unsigned char ...
22:45:15 <calamari> (unsigned int) doesn't do it either
22:45:51 <calamari> maybe it needs to be unsigned char for it to work
22:46:22 <GregorR> Oh, yes indeed.
22:46:34 <GregorR> If you cast them to an unsigned int, it'll fill the rest with 0xff
22:46:40 <GregorR> And then you'll get that or'd
22:46:52 <calamari> ahh yes
22:47:02 <calamari> casting to (unsigned char) did the trick
22:49:42 <calamari> v[0] = (unsigned char) block[0] << 24 | (unsigned char) block[1] << 16 | (unsigned char) block[2] << 8 | (unsigned char) block[3]
22:50:07 <GregorR> 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 <calamari> got encryption /decryption working (in C).. so now I can verify Linguine when I code it up
23:29:21 <calamari> actually, still need to implement some kind of public key system too, so I guess I'm only halfway there
23:30:03 <calamari> bbl
23:30:05 -!- calamari has quit ("Leaving").
←2006-02-27 2006-02-28 2006-03-01→ ↑2006 ↑all