code logs -> 2008 -> Wed, 10 Dec 2008< code.20081209.log - code.20081211.log >
--- Log opened Wed Dec 10 00:00:59 2008
00:32 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Ping Timeout]
00:33 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code
00:33 mode/#code [+o Attilla] by ChanServ
00:51 Derakon[AFK] is now known as Derakon
01:02 AnnoDomini [~farkoff@Nightstar-29084.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
01:09 AnnoDomini [~farkoff@Nightstar-29828.neoplus.adsl.tpnet.pl] has joined #Code
01:09 mode/#code [+o AnnoDomini] by ChanServ
01:55 gnolam [lenin@79.136.60.ns-4387] has quit [Quit: So... tired...]
06:30 Alek|gone [~omegaboot@Nightstar-25985.dsl.emhril.sbcglobal.net] has quit [Quit: reboot...]
06:39 Derakon is now known as Derakon[AFK]
06:57 GeekSoldier_ [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has joined #code
06:57 GeekSoldier [~Rob@Nightstar-8573.midstate.ip.cablemo.net] has quit [Ping Timeout]
07:14 Alek [~omegaboot@Nightstar-25985.dsl.emhril.sbcglobal.net] has joined #code
07:57 crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout]
08:09 crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code
08:12 grossroot[idle] is now known as grossroot
08:18 Vornicus is now known as Vornicus-Latens
08:41 You're now known as TheWatcher
09:01 grossroot is now known as grossroot[idle]
10:32 AttillaUni [~nsJChat@Nightstar-22345.chemy.cf.ac.uk] has joined #Code
10:36
< AttillaUni>
Could I have a voice, need to paste a link.
10:37
< AttillaUni>
(Well paste the pastebin link for some code I have
10:38
< AttillaUni>
Otherwise try 83435 - Care to look at this gents? Whenever I compile it, it gives no warnings or errors, but when I run it, all it does is generate the output file but not actually output into it or anything, giving no printfs or anything that I can see.
10:39
< AttillaUni>
(It's in C, as hopefully stated in the link)
10:43
< AttillaUni>
(I don#'t think the long integers are necessary to be long but it was something I was trying to debug it)
10:48
< AttillaUni>
The gcc compiler i'm using doesn't seem to have helpful debugging options
10:49 mode/#Code [+v AttillaUni] by TheWatcher
10:50
<+AttillaUni>
http://paste.ubuntu.com/83435/
10:50
<@TheWatcher>
(also, with gcc, compile and link with -g -O0 then use gdb or ddd)
10:52
<@TheWatcher>
for (j=1;j==M;j++) shouldnt that be for (j=1;j<=M;j++)
10:52
<@TheWatcher>
?
10:53
<@TheWatcher>
Similarly for the i=1;i==N;i++
10:53
<@TheWatcher>
(also, why the 1-indexing in C?)
10:53
<+AttillaUni>
You might have a point. What do you mean on 1-indexing?
10:54
<@TheWatcher>
In C, the convention is generally to do for(j=0; j < M; ++j) rather than starting at 1 and looping while <=
10:56
<+AttillaUni>
Because this is a Random Walk algorithm and as such there is no zeroth step or zeroth iteration (j being the current iteration, i being the current step)
10:56
<+AttillaUni>
It's important more for the output's appearance, but eh.
10:57
<+AttillaUni>
Oof, okay that solved the problem with the not really working but now it's doing the random value of j thing again :(
10:58
<@TheWatcher>
Define random?
10:58
<+AttillaUni>
Basically it keeps outputting the "current iteration" point as some large probably random number
10:58
<+AttillaUni>
I got 888205418, 1419248454, 1942677093, 1392995888, 847707617 and more
10:58
<+AttillaUni>
When the iterations should just be 1 -> M
10:59
<+AttillaUni>
Hmm I think I see a problem
11:00
<@TheWatcher>
Also
11:00
<+AttillaUni>
The "current position" value appears to be the current iteration :S
11:00
<+AttillaUni>
(At least at the print on line 41)
11:01
<+AttillaUni>
brb, lecture starting
11:32 grossroot[idle] is now known as grossroot
11:51
<+AttillaUni>
Okay, back
11:51
<+AttillaUni>
You were saying something The_Watcher?
11:52
<@TheWatcher>
Just vaguely concerned about the repeated calls to srand(), unless there is a well-established need for it
11:52
<+AttillaUni>
Well I'm changing the seed with each call.
11:53
<@TheWatcher>
Yeah, but do you actually need to?
11:54
<@TheWatcher>
Repeated calls to srand() will actually reduce the quality of the random sequence (although, that said, if you want actual random you should be reading /dev/random as srand()/rand() are pretty lousy)
11:54
<+AttillaUni>
Since Time(NULL) is a function of time it will be identical with each call unless I put some silly time-delay mechanism in
11:55
<+AttillaUni>
(Or I manipulate it with incremented values)
11:55
<@TheWatcher>
Why reseed at all?
11:56
<+AttillaUni>
Because i'm silly, that's why.
11:56
<+AttillaUni>
Anyway i've changed that around, unfortunately j is still printing out as memory values from where it's pointing for some reason
11:56
<+AttillaUni>
At least that's what I assume are the weird large values
11:57
<@TheWatcher>
post your latest code, and give me some values to imput to replicate it?
12:00
<+AttillaUni>
http://paste.ubuntu.com/83464/ Here. Also values of 1000, 250, 2, and 1 (or 0 if you want to have lots of step-by-step data I guess but for that I tend to go for smaller numbers of steps and iterations)
12:01
<+AttillaUni>
brb
12:07
<@TheWatcher>
aaah, of course
12:08
<@TheWatcher>
yOr, maybe not. Hm. This is weird
12:09 * TheWatcher facepalms
12:11
<@TheWatcher>
here's your problem:
12:12
<@TheWatcher>
float ....,ran,seed;
12:12
<@TheWatcher>
ran should be an int, not a float
12:13
<@TheWatcher>
otherwise you'll screw with the printf
12:16
<+AttillaUni>
back
12:16
<+AttillaUni>
Ah...
12:18
<+AttillaUni>
Cheers
12:35 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
12:35 mode/#code [+o gnolam] by ChanServ
12:58 GeekSoldier_ is now known as GeekSoldier
13:17 Alek [~omegaboot@Nightstar-25985.dsl.emhril.sbcglobal.net] has quit [Quit: ]
13:18 Alek [~omegaboot@Nightstar-25985.dsl.emhril.sbcglobal.net] has joined #code
14:00 AttillaUni [~nsJChat@Nightstar-22345.chemy.cf.ac.uk] has quit [Quit: Nightstar's Java Chat http://www.nightstar.net]
16:55 helsing_m [~helsing_m@88.240.24.ns-3724] has joined #code
16:55 helsing_m [~helsing_m@88.240.24.ns-3724] has left #code []
17:09 You're now known as TheWatcher[afk]
17:27 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Ping Timeout]
18:08 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code
18:08 mode/#code [+o Attilla] by ChanServ
18:28 ToxicFrog [~ToxicFrog@69.171.152.ns-20825] has quit [Ping Timeout]
18:30 You're now known as TheWatcher
19:06 ToxicFrog [~ToxicFrog@67.212.7.ns-3924] has joined #code
19:06 mode/#code [+o ToxicFrog] by ChanServ
19:21 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Ping Timeout]
19:26 ToxicFrog [~ToxicFrog@67.212.7.ns-3924] has quit [Ping Timeout]
19:29 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code
19:29 mode/#code [+o Attilla] by ChanServ
19:32 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Ping Timeout]
20:41 Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code
20:41 mode/#code [+o Attilla] by ChanServ
20:49 ToxicFrog [~ToxicFrog@67.212.7.ns-3924] has joined #code
20:49 mode/#code [+o ToxicFrog] by ChanServ
21:41
<@ToxicFrog>
Ok, Deluge is pretty awesome.
22:06
<@McMartin>
Deluge?
22:09
<@AnnoDomini>
"11 In da liek 6 hunderd year of Noah's lief, on teh sevententh dai ov teh second munth-on dat dai all teh spreengs ov teh grate deepz liek spewed teh waterz on teh urf and teh floodgatez ov teh heavenz wuz opend.12 An' teh wetnessez came to teh urf an' it was all wet."
22:10
<@McMartin>
I much prefer the bits of the Lolcat Bible that aren't simply packed with misspellings.
22:10
<@AnnoDomini>
Word.
22:11
<@McMartin>
(w00t to teh Ceilingcat & all his buds)
22:23
<@ToxicFrog>
McMartin: bittorrent client. Daemon backend does the actual work, has shell, GTK, and HTTP frontends.
22:24
<@AnnoDomini>
What's the daemon written in? C?
22:26
<@ToxicFrog>
Python.
22:33 You're now known as TheWatcher[t-2]
22:35 You're now known as TheWatcher[zZzZ]
23:08 AnnoDomini [~farkoff@Nightstar-29828.neoplus.adsl.tpnet.pl] has quit [Quit: Why is there a jalapeno in the Aegean Sea?]
23:24 Vornotron [~vorn@Admin.Nightstar.Net] has joined #code
23:25 Vornicus-Latens [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout]
23:26 Vornotron is now known as Vornicus
--- Log closed Thu Dec 11 00:00:10 2008
code logs -> 2008 -> Wed, 10 Dec 2008< code.20081209.log - code.20081211.log >