code logs -> 2013 -> Wed, 20 Feb 2013< code.20130219.log - code.20130221.log >
--- Log opened Wed Feb 20 00:00:34 2013
00:18 Kindamoody[zZz] is now known as Kindamoody
00:26 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Ping timeout: 121 seconds]
00:27 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
00:27 mode/#code [+o Courage] by ChanServ
00:30 EvilDarkLord [jjlehto3@Nightstar-a5db08cc.org.aalto.fi] has quit [Ping timeout: 121 seconds]
00:41 Derakon[AFK] is now known as Derakon
00:42
<&Derakon>
"Imperative" means "programs are sequences of commands".
00:43
<&Derakon>
An imperative, as a noun, is an order to do something.
02:15 Attilla [chatzilla@Nightstar-aced750e.range86-184.btcentralplus.com] has quit [Ping timeout: 121 seconds]
02:35
< Shiz>
in basic terms there is only imperative and declarative programming
02:36
< Shiz>
functional is a subset of declarative
02:36
< Shiz>
OOP can be a subset of either
02:48 [_-S1L3NC3-0F-T4UTH-_] [Guest93@Nightstar-50dd09c0.wi.charter.com] has joined #code
02:48 syksleep is now known as Syk
02:54 [_-S1L3NC3-0F-T4UTH-_] [Guest93@Nightstar-50dd09c0.wi.charter.com] has quit [[NS] Quit: ]
03:28 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
03:29 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
03:31
<@Tarinaky>
Shiz: Well what would you call non-OOP imperative?
03:32
< Shiz>
procedural
03:33 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [Client closed the connection]
03:33 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
03:33 mode/#code [+o celticminstrel] by ChanServ
03:39
<@Tarinaky>
I'm going to sleep.
03:39
<@Tarinaky>
At least I wrote some code today.
03:43 Kindamoody is now known as Kindamoody[zZz]
03:43 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:43 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:20 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:23
<&ToxicFrog>
Ok, so the bit that splits the stream into 14 bit words works
04:24
<&ToxicFrog>
It's just not unpacking them properly
04:24
<&ToxicFrog>
Er, not unpacking the data they represent properly
05:10
<&ToxicFrog>
Goddamnit. I need to actually understand this algorithm to implement it.
05:20 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Ping timeout: 121 seconds]
05:28 Pandemic [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
05:32
< Shiz>
ToxicFrog: what a shame
05:55 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:05 Pandemic [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
06:05 mode/#code [+o Pandemic] by ChanServ
06:19 Xires is now known as ^Xires
06:22 Typherix is now known as Typh[zZz]
06:23 * Alek eyes python.
06:23 * Alek eyes himself.
06:23
<@Alek>
so, the current lesson is to take the previous lesson's sample CYOA 4-room game and make your own.
06:23
<@Alek>
I'm making a whole text adventure from scratch, as I go, apparently.
06:25 Derakon is now known as Derakon[AFK]
06:25 * Alek also has an idea for a snake clone, later on. possibly graphical, if he can find os-hooked window management libraries for Win, X, and OsX.
06:32
<&jerith>
Alek: pygame is good for graphical games.
06:35 * Alek facedesks.
06:35
<@Alek>
now I need to either figure out how to make global variables, or pass all my variables at each room. -_-
06:36
<@Alek>
passing them isn't hard. just tedious.
06:37
< Syk>
why not just make an object?
06:37
< Syk>
object with all of the variables in it, pass the single object
06:37
<@Alek>
haven't gotten there yet.
06:37
<@Alek>
good idea.
06:37
<@Alek>
oh wait. array. >_>
06:38
<@Alek>
niice.
06:38
< Syk>
well what language
06:38
<@Alek>
python. <_<
06:38 * Alek florps.
06:38
< Syk>
oh yeah just make a class or whatever
06:38
< Syk>
then you get fancy names
06:38
<@Alek>
haven't gotten to classes either.
06:38
<@Alek>
I'm making up the story as I go, too.
06:46 ErikMesoy|sleep is now known as ErikMesoy
06:58 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
06:58 mode/#code [+o himi] by ChanServ
07:06 * Vornicus fiddles with his 4e character sheet, determines he's in for another round of Huge Piles Of Data Entry.
07:06
<~Vornicus>
and also I apparently need to make a requirements-monger function.
07:07
<~Vornicus>
Alek: build an object or dictionary with your state
07:07
<~Vornicus>
pass that around, not a stupid list where you have to remember the numbers to everything.
07:09 Kindamoody[zZz] is now known as Kindamoody|out
07:11 ^Xires is now known as Xires
07:16
<~Vornicus>
Okay, feats. For a character to choose a feat he must meet certain requirements: to get, for instance, Agile Hunter, the character must have 15 dex and be a Ranger and have the Hunter's Quarry ranger class feature (which might be important in the hybrid classes in phb3 but I don't have that book available to me and jesus christ).
07:18 Xires is now known as ^Xires
07:19
<~Vornicus>
For the most part this means creating and maintaining a list of features and stuff that the character has; this isn't too terrible. However, there's somthing more complicated lurking in here.
07:21
<~Vornicus>
If it were merely "and" that generates the requirements, then there would be no problem; each entry in the feat table would come with an array of requirements that it must meet.
07:25
<~Vornicus>
But there are also some feats - Chainmail Proficiency (str 13, con 13, proficiency with leather or hide armor), Improved Fate Of The Void (con 13 or cha 13, warlock, star pact), Ritual Casting (training in religion or arcana) - that require an "or" in there.
07:26
<~Vornicus>
multiclass feats are even better: in order to take a particular multiclass feat you must meet its normal requirements /and/ not be of the class in the first place /and/ have no other multiclass feats, unless you're a bard.
07:32 ^Xires is now known as Xires
07:33
<~Vornicus>
So long story short I have a variety of requirements that a feat must meet; these requirements range from nonexistent to extremely complicated.
07:34
< ErikMesoy>
Bard? That's a bard ability now, improved multiclassing?
07:34
<~Vornicus>
ErikMesoy: basically, yeah. Bards may take more than one multiclass entry feat.
07:35 You're now known as TheWatcher
07:41
<~Vornicus>
These requirements suggest that i need to make the requirement checker a function for each feat. That sounds like quite a lot of functions that look an awful lot alike; my best bet I suspect would be to make a higher-order function that I can feed data and create the actual requirements-check function.
08:08 Xires is now known as ^Xires
08:08
<&jerith>
Vornicus: Sounds like you need a little expression language.
08:09 Rhamphoryncus [rhamph@Nightstar-cc6253d6.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
08:15 * TheWatcher eyes his brain
08:18
<@TheWatcher>
jerith: so, a language that can only be used to produce things like "Yes!", "No!", "Yay!" and other little expressions, as opposed to something more powerful that can handle large expressions like "Indubitably, old bean!" or "Dreadfully compunctuous!"
08:19 * TheWatcher decides he needs more tea, yes
08:19
<&jerith>
TheWatcher: Indeed. And it produces these things when given a set of requirements.
08:22 ^Xires is now known as Xires
08:24 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has joined #code
08:24 mode/#code [+o Rhamphoryncus] by ChanServ
08:31 * Vornicus checks over the list.
08:33
<~Vornicus>
okay. The only feats with requirements beyond the powers of and/or are multiclass feats.
08:33
<&jerith>
Okay, my zsh setup is working nicely now.
08:38 Attilla [chatzilla@Nightstar-aced750e.range86-184.btcentralplus.com] has joined #code
08:40
<~Vornicus>
Which means that the functionfor handling simple requirements is relatively simple; the multiclass one is more complicated.
08:45
<&jerith>
Can't multiclass be reduced to and/or?
09:11
< ErikMesoy>
I'm pretty sure it can, but it would be a mess.
09:12 * ErikMesoy tried phrasing "two of" from a set of six in and/or once. Looooong and redundant.
09:12
<~Vornicus>
I'm missing "not", and there's some craziness in there.
09:13
<~Vornicus>
There are 16 multiclass feats in phb1 and 2 combined.
09:14
<~Vornicus>
and/or is simple enough that I've basically got it all done already.
09:21
<~Vornicus>
there's a couple of other toys in there that i need to handle; there are five feats you can take multiple times.
09:24
<~Vornicus>
(they're things like weapon focus and linguist, where each time you take them you make other choices as well)
09:29
<~Vornicus>
(which of course leads into the obvious: urggzob is ten linguists!)
09:57 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Ping timeout: 121 seconds]
09:58 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
09:58 mode/#code [+o Alek] by ChanServ
10:24 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [Ping timeout: 121 seconds]
10:25 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
10:25 mode/#code [+o Alek] by ChanServ
10:25 RichyB [richardb@Nightstar-228a334c.plus.com] has joined #code
11:01 EvilDarkLord [jjlehto3@Nightstar-a5db08cc.org.aalto.fi] has joined #code
11:01 mode/#code [+o EvilDarkLord] by ChanServ
11:13 * Tarinaky contemplates whether writing a class that constructs gui element positions from json is more, or less, work.
11:14
<@Tarinaky>
I suspect more.
11:15
<~Vornicus>
tarinaky: possibly less.
11:16
< Syk>
about the same
11:28
<@TheWatcher>
Depends how you'd be makign the gui elements otherwise, and how many you'll have
11:30
<@TheWatcher>
If you would need to hand-code them, and you have a lot, some means of specifying them in a simple format and then programmatically constructing the gui from that should work out a lot easier in the long run - it'll probably be more work /up front/, you'll only see the benefit over time.
11:50 RichyB [richardb@Nightstar-228a334c.plus.com] has quit [Client closed the connection]
12:26 Nemu_ [NeophoxProd@Nightstar-128f551e.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
12:30 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
12:42 Nemu [NeophoxProd@Nightstar-f4e567ac.asahi-net.or.jp] has joined #code
13:23 Nemu_ [NeophoxProd@Nightstar-9ca985bb.asahi-net.or.jp] has joined #code
13:25 Nemu [NeophoxProd@Nightstar-f4e567ac.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
13:42 Nemu [NeophoxProd@Nightstar-93f5f8ca.asahi-net.or.jp] has joined #code
13:43 Nemu_ [NeophoxProd@Nightstar-9ca985bb.asahi-net.or.jp] has quit [Client closed the connection]
13:45 Nemu_ [NeophoxProd@Nightstar-77c5ffc8.asahi-net.or.jp] has joined #code
13:45 Nemu [NeophoxProd@Nightstar-93f5f8ca.asahi-net.or.jp] has quit [Connection reset by peer]
13:47 Nemu [NeophoxProd@Nightstar-7e9f4d2f.asahi-net.or.jp] has joined #code
13:49 Nemu_ [NeophoxProd@Nightstar-77c5ffc8.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
13:50 Nemu_ [NeophoxProd@Nightstar-3cb86a83.asahi-net.or.jp] has joined #code
13:51 Nemu [NeophoxProd@Nightstar-7e9f4d2f.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
13:51 Nemu_ [NeophoxProd@Nightstar-3cb86a83.asahi-net.or.jp] has quit [Client closed the connection]
13:52 Nemu [NeophoxProd@Nightstar-6d07629e.asahi-net.or.jp] has joined #code
13:54
<&ToxicFrog>
Shiz: oh no jc a bomb?
13:55
<&ToxicFrog>
Shiz: more seriously, the problem here is that the algorithm is very poorly described in the literature, and all I have to work with apart from that is a terse and uncommented C implementation.
13:56
< Xires>
can anyone point me to a decent article/research paper on OpenMP vs MPI?
13:56
< Xires>
I'm trying to gather resources for a work proposal
13:56 Nemu_ [NeophoxProd@Nightstar-a4fd2968.asahi-net.or.jp] has joined #code
13:56 Nemu [NeophoxProd@Nightstar-6d07629e.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
14:01
<&ToxicFrog>
Hmm.
14:02
<&ToxicFrog>
I have a textbook that discusses them! I don't have any papers that do offhand, though.
14:02
<&ToxicFrog>
They might be harder to find than you think because they are used so differently.
14:03
< Xires>
indeed..but the differences are something that I'm specifically wanting to point out
14:03
< Xires>
a text book would be fantastic...could you give me the ISBN?
14:04
< Xires>
I can order a copy and I'm sure it'll prove useful at some point in the future
14:04 Nemu_ [NeophoxProd@Nightstar-a4fd2968.asahi-net.or.jp] has quit [Client closed the connection]
14:06 Nemu [NeophoxProd@Nightstar-0ad81439.asahi-net.or.jp] has joined #code
14:07
<&ToxicFrog>
I don't have a copy handy, but it's Lyn & Snyder's _Principles of Parallel Programming_. It doesn't discuss either in great depth, though; it's an overview of parallel programming techniques and theory.
14:08
< Xires>
K
14:08
<&ToxicFrog>
Just putting "mpi openmp" into google scholar turns up a bunch of stuff, although most of it is discussing hybrid MPI/openmp implementations, not contrasting the two approaches
14:09
< Xires>
I have The Art of Multiprocessor Programming which covers quite a bit of the basic theory & paradigms but not much specific about OpenMP or MPI
14:10 Nemu_ [NeophoxProd@Nightstar-c19b9314.asahi-net.or.jp] has joined #code
14:10
<&ToxicFrog>
"Performance evaluation of mpi, upc and openmp on multicore architectures" by D. Mallon et al. and "Performance comparison of pure MPI vs hybrid MPI-OpenMP parallelization models on SMP clusters" by N. Drosinos might be starting points
14:10
<&ToxicFrog>
PoPP might be mostly overlap with that :/
14:10
<@gnolam>
Xires: what kind of stuff are you looking for?
14:10 Nemu [NeophoxProd@Nightstar-0ad81439.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
14:11
<@gnolam>
If it's "which one is faster", then the answer depends on the architecture and implementation.
14:11
< Xires>
gnolam; I would personally _love_ to find something that indicates the major individual strengths & weaknesses of OpenMP & MPI
14:12
<&ToxicFrog>
...those are basically the strengths and weaknesses of shared-memory vs. local-memory parallel programming architectures in general
14:13
<&ToxicFrog>
(with the usual caveats about openmp not being as flexible as pthreads etc)
14:13
<@gnolam>
Yeah, that's basically something you should hit up Wikipedia for. >_>
14:14
< Xires>
am doing that as well but the more information that I can gather, the better I'll be able to explain, elaborate & advise
14:14
< Xires>
ack..I'll bbiab; must go get a marriage license
14:16
<&ToxicFrog>
Congratulations.
14:18
<&ToxicFrog>
Anyways, the one-paragraph-from-memory version is that openMP is very easy, but very limited. It's for cheaply parallelizing existing serial loops and whatnot. Doing anything sophisticated with it is painful (or impossible) and it doesn't scale beyond a single node.
14:19
<&ToxicFrog>
MPI is (over)complicated but vastly more flexible and scales to clusters of arbitrary size, with the usual caveat of local-memory parallelism that if you need to communicate more than you compute, you need to redesign your
14:19
<&ToxicFrog>
algo
14:19
<&ToxicFrog>
rithm
14:19
<@gnolam>
Well, depends on the cluster architecture. But in general, distributed shared memories are... urgh.
14:19
<&ToxicFrog>
thank you kitten
14:19
<@gnolam>
But there's nothing preventing you from mixing the two.
14:19
<&ToxicFrog>
00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000009
14:20
<@gnolam>
E.g. using OpenMP for node-level parallelism and MPI for cluster-level parallelism.
14:20
<&jerith>
Hello pixel.
14:20
<&ToxicFrog>
Yeah, a lot of the papers I found were discussing programs that used both in conjunction, one MPI node per SMP member of the cluster and then openMP on each node.
14:20
<&ToxicFrog>
jerith: pixel is...Mahal's, I think?
14:20
<&ToxicFrog>
This is Suzie.
14:21
<&ToxicFrog>
Xires: it is also worth noting in any discussion of MPI that's talking about actually using it that Pilot is a thing that exists.
14:21
<@gnolam>
Also: the supercomputer centre has a new fancy Top500 'puter and I don't have access anymore. :(
14:22
<@gnolam>
(And I think Pixel is Synfony's)
14:22
<&jerith>
ToxicFrog: Hrm. I have a miscategorised cat name.
14:22
<&jerith>
Tigra, Boomer and Candy are Mahal's.
14:24 Nemu_ [NeophoxProd@Nightstar-c19b9314.asahi-net.or.jp] has quit [Client closed the connection]
14:24
<&ToxicFrog>
Aah.
14:24
<&ToxicFrog>
Mine are Suzie and Epsilon.
14:24
< Syk>
mine are none :(
14:24 Nemu [NeophoxProd@Nightstar-aacc7cab.asahi-net.or.jp] has joined #code
14:25
< Syk>
as cats stop my breathing
14:25 * Syk pets her tamagotchi ;v;
14:25
<&jerith>
I have no cats, but I share a building with Mr Mia, Onyx and Webster.
14:26 JustBob [justbob@ServerAdministrator.Nightstar.Net] has quit [Client closed the connection]
14:27
<@Haeroe>
Syk: ;_;
14:27
<@Haeroe>
How about dogs?
14:27
< Syk>
Haeroe: rental agreement doesn't allow pets
14:27
< Syk>
dogs are fine
14:27
<@Haeroe>
Ah
14:27
< Syk>
but it's also too hot up here (live in north australia)
14:27
<@froztbyte>
jerith: do they all own you, or do each take custody in turn?
14:27
< Syk>
and there's cane toads
14:27
<@Haeroe>
Dogs are better anyway~
14:27
< Syk>
dog licks a cane toad and it has a heart siezure
14:27
<&jerith>
froztbyte: Two of them usually run away from me, actually.
14:28
<&jerith>
(They don't like people much.)
14:28
< Syk>
I also don't have a garden
14:28
< Syk>
...or a fence
14:28 JustLurk [justbob@ServerAdministrator.Nightstar.Net] has joined #code
14:35 Nemu [NeophoxProd@Nightstar-aacc7cab.asahi-net.or.jp] has quit [Client closed the connection]
14:35 Nemu [NeophoxProd@Nightstar-aacc7cab.asahi-net.or.jp] has joined #code
14:40 Nemu [NeophoxProd@Nightstar-aacc7cab.asahi-net.or.jp] has quit [Client closed the connection]
14:40 Nemu [NeophoxProd@Nightstar-e2628f43.asahi-net.or.jp] has joined #code
14:41 gnolam [lenin@Nightstar-fe1ac75d.cust.bredbandsbolaget.se] has quit [Client closed the connection]
14:42 Nemu_ [NeophoxProd@Nightstar-887ff271.asahi-net.or.jp] has joined #code
14:43 gnolam [lenin@Nightstar-fe1ac75d.cust.bredbandsbolaget.se] has joined #code
14:43 mode/#code [+o gnolam] by ChanServ
14:44 Nemu [NeophoxProd@Nightstar-e2628f43.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
15:20 * Tarinaky tries to remember how the hell this library was supposed to work.
15:20 * Tarinaky also prepares to send the axe-crazy maniac back in time.
15:54 hummer [hummer@Nightstar-c791eed3.wifi.ubc.ca] has joined #code
15:55
<&ToxicFrog>
Hah
15:55
<&ToxicFrog>
I think I finally understand the res file decompression algorithm
15:56
<&ToxicFrog>
Unfortunately this means I also understand that the reference implementation doesn't match the description in the specs
15:56
<&ToxicFrog>
I don't know which is right. It's possible that in practice they get the same answers.
15:56
<@Haeroe>
Not sure if victory
15:56
< Syk>
res as in MS' res format?
15:56
< Syk>
if so, then duh
15:56
<&ToxicFrog>
As in LGS's.
15:57
< Syk>
LGS?
15:57
<&ToxicFrog>
Although the documentation and reference implementation here are the result of reverse engineering.
15:57
<@Haeroe>
LGS?
15:57
<&ToxicFrog>
The only reference implementations from the original designers are in x86 machine code these days and, well, fuck that noise, even with a good disassembler.
15:57
<&ToxicFrog>
Looking Glass Studios.
15:57
< Syk>
ahh
15:57
<&ToxicFrog>
This is the archive format used for all of their DOS games.
15:58
<@Haeroe>
Oh, what are you doing with those?
15:59
<&ToxicFrog>
At the moment? Trying to figure out where it stores configuration data in the save files.
16:00
<&ToxicFrog>
But I have Plans for later.
16:00
<&ToxicFrog>
That will require writing a map editor.
16:00
<&ToxicFrog>
And now, thesis defence dry run
16:01
<@Haeroe>
Have fun
16:05
< hummer>
hey, i'm new here and i got a newbie coding question... is there anyone can help me with coding linked lists of struct nodes? trying to delete struct nodes of the list that contain certain char and return the remaining list.
16:10
<@Tarinaky>
Yay! I have my Library actually being vaguely useful/providing code re-use... http://i.imgur.com/xlVYslV.png
16:18
<@gnolam>
hummer: where are you getting stuck?
16:19
< hummer>
hey i'm having difficulty traversing through the list without deleting the list
16:19 Typh[zZz] is now known as Typherix
16:20
< hummer>
i just point to the next node if the current node is the one to be deleted, but how do i retain the previous parts of the list?
16:30 Netsplit *.net <-> *.split quits: @iospace, ShellNinja, @Pandemic, Xires, @Zemyla, @Derakon[AFK], @froztbyte, @Orthia, @Reiv, @PinkFreud, (+8 more, use /NETSPLIT to show all of them)
16:31 Netsplit over, joins: @PinkFreud, @Orthia, &jerith, @Pandemic, @iospace, &Derakon[AFK], &McMartin, @gnolam, @froztbyte, @Reiv (+8 more)
16:42 Netsplit *.net <-> *.split quits: @iospace, ShellNinja, @Pandemic, Xires, @Zemyla, @Derakon[AFK], @froztbyte, @Orthia, @Reiv, @PinkFreud, (+8 more, use /NETSPLIT to show all of them)
16:43 Netsplit over, joins: @PinkFreud, @Orthia, &jerith, @Pandemic, @iospace, &Derakon[AFK], &McMartin, @gnolam, @froztbyte, @Reiv (+8 more)
16:48
<@Haeroe>
hummer: It might help inspecting current.next rather than current
16:48
<@Haeroe>
Since then you will still have a 'hold' on current and can change what its next node is
17:01
< Shiz>
sup hae
17:01
<@Haeroe>
Sup Shiz
17:02
<@gnolam>
You don't modify the head pointer just to traverse through the list. You have your own pointer for that.
17:08
< hummer>
damn...this is the 9th hour i'm on this question
17:09
< hummer>
yeah i've tried making a temp node, but traversing through that i still have to delete and i don't know how to keep the original list pointing to the beginning
17:11
< hummer>
to the beginning of the edited list rather
17:11 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
17:11 mode/#code [+o celticminstrel] by ChanServ
17:12
<@gnolam>
Pastebin what you have.
17:14
< Shiz>
I'm considering using Stackless Python.
17:15 hummer [hummer@Nightstar-c791eed3.wifi.ubc.ca] has quit [Ping timeout: 121 seconds]
17:16 Kindamoody|out [Kindamoody@Nightstar-05577424.tbcn.telia.com] has quit [Client exited]
17:17 Kindamoody|afk [Kindamoody@Nightstar-05577424.tbcn.telia.com] has joined #code
17:17 mode/#code [+o Kindamoody|afk] by ChanServ
17:21 Netsplit *.net <-> *.split quits: @iospace, ShellNinja, @Pandemic, Xires, @Derakon[AFK], @Zemyla, @froztbyte, @Orthia, @Reiv, @PinkFreud, (+8 more, use /NETSPLIT to show all of them)
17:22 Netsplit over, joins: @PinkFreud, @Orthia, &jerith, @Pandemic, @iospace, &Derakon[AFK], &McMartin, @gnolam, @froztbyte, @Reiv (+8 more)
17:47 Syk is now known as syksleep
17:55 * Tarinaky blinks at some inexplicable behavior.
17:57
<@Tarinaky>
/What/
18:03 Netsplit *.net <-> *.split quits: @iospace, ShellNinja, @Pandemic, Xires, @Derakon[AFK], @Zemyla, @froztbyte, @Orthia, @Reiv, @PinkFreud, (+8 more, use /NETSPLIT to show all of them)
18:04 Netsplit over, joins: @PinkFreud, @Orthia, &jerith, @Pandemic, @iospace, &Derakon[AFK], &McMartin, @gnolam, @froztbyte, @Reiv (+8 more)
18:14
<@Haeroe>
Marvin appears to be going insane
18:21
< ErikMesoy>
It's just responding to netsplits
18:28 gnolam [lenin@Nightstar-fe1ac75d.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds]
18:31
<@celticminstrel>
...Marvin?
18:31
<@TheWatcher>
The botchecker script
18:33
<@Tarinaky>
...
18:33
<@Tarinaky>
I hate GUIs and programming them :/
18:34
<@Tarinaky>
I've been staring at this bug for the last hour and I am no closer to solving it than I was an hour ago.
18:34
<@Tarinaky>
Apparently this widget lives in negaspace, where mouse-clicks are unable to pass.
18:39
<@Tarinaky>
Ahah!
18:40
<@Tarinaky>
I have no idea why that bug wasn't causing issues in the draw system though.
19:33 Kindamoody|afk [Kindamoody@Nightstar-05577424.tbcn.telia.com] has quit [Client exited]
19:34 Kindamoody|afk [Kindamoody@Nightstar-05577424.tbcn.telia.com] has joined #code
19:34 mode/#code [+o Kindamoody|afk] by ChanServ
19:34 * Alek shiftyeyes.
19:34 Kindamoody|afk is now known as Kindamoody
19:34 * Alek looks into setting up github so he can share an exercise game he "made".
19:39
<@celticminstrel>
Why the quotes?
19:43 RichyB [richardb@Nightstar-228a334c.plus.com] has joined #code
19:43
<@Tarinaky>
He actually discovered it.
19:43
<@Tarinaky>
Precursor technology buried beneath the sands of Egypt.
19:43
< RichyB>
This is going to sound crazy, but does anyone know of a *really* high-precision implementation of log1p()?
19:44
<@Tarinaky>
He is attempting to pass off these pitiful, yet inexplicable, artifacts as his own work.
19:44
< RichyB>
Tarinaky: context?
19:44
<@Tarinaky>
19:34 * Alek looks into setting up github so he can share an exercise game he "made".
19:44
<@Tarinaky>
19:39 <@celticminstrel> Why the quotes?
19:44
< RichyB>
I have an arithmetic expression that involves exp(n * log(1 + <something really tiny>))
19:45
< RichyB>
Using libm's log1p helps, but I want to try this with actually hundreds of digits to make sure that I'm not just rounding myself to death anyway. :)
19:46 celticminstrel is now known as celmin|reading
19:51 gnolam [lenin@Nightstar-fe1ac75d.cust.bredbandsbolaget.se] has joined #code
19:51 mode/#code [+o gnolam] by ChanServ
19:53 VirusHome [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
19:56 Pandemic [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
20:04 VirusHome is now known as Pandemic
20:04 mode/#code [+o Pandemic] by ChanServ
20:28
< RichyB>
Damn, I miscalculated the first time around. Failure is distinctly less improbable than I had hoped. ?
20:35 Kindamoody is now known as Kindamoody[zZz]
20:49 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
21:07
<@Alek>
because I just modified a different exercise game that was done in one lesson, for a different lesson.
21:18 celmin|reading is now known as celticminstrel
21:21
<@Haeroe>
Shiz: Let's make program
21:21 * Haeroe fires up NetBeans
21:21
< ErikMesoy>
what
21:21
<@Haeroe>
ErikMesoy: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/68903_10200739689193557_2 049888814_n.jpg
21:22
<&McMartin>
IZ CAN HAZ BE PROGRAMMING TIEMS NAO.
21:22
<@Haeroe>
I was just referring an image both of us recognize, didn't intend to have people going cheezburger :b
21:23
< Shiz>
Haeroe: wow the numbers
21:23 * TheWatcher eyes that, wats
21:24
< Shiz>
actually haeroe
21:24
< Shiz>
I'm going to make that image the background that appears when my engine crashes
21:25 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
21:25 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:25
<@Haeroe>
Haha
21:28
<@Haeroe>
Shiz: STOP 0x00000002 NUMBERS_TOO_SMALL
21:28
< Shiz>
hah
22:16 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
22:20
<@Tarinaky>
What's the command that shows the difference between the last commit and the current working directory?
22:20
<@Tarinaky>
I seem to have forgotten to commit before dinner and I'd like a reminder of what I changed.
22:21
<@froztbyte>
RichyB: apply wrenches
22:22
<@froztbyte>
Haeroe: ......good god, where'd you find that
22:22
<&ToxicFrog>
Tarinaky: git diff
22:22
<&ToxicFrog>
Although technically that's a diff between the index and the working copy (i.e. it's changes made but not yet staged for commit)
22:23
<@Tarinaky>
It's exactly what I wanted.
22:23
<&McMartin>
froztbyte: The INTERNETS
22:23
<&ToxicFrog>
If you've added some stuff to the index but want to diff last commit <-> working copy (instead of last commit <-> index or index <-> working copy), use git diff HEAD.
22:23
<&ToxicFrog>
There's also 'git gui' for a nicer interface to the diffs.
22:24
<@Rhamphoryncus>
RichyB: I know Qalculate can handle stupid-high number of digits, but it's a calculator, not a library
22:24
<@Tarinaky>
Fortunately best practice being what it is it was a single line that I totally forgot I had changed.
22:25
<@Rhamphoryncus>
RichyB: still, it could help you sanity check. Also, it can do symbolic math to be *really* sure :)
22:26 ErikMesoy is now known as ErikMesoy|sleep
22:29
< RichyB>
Rhamphoryncus: cool! I didn't know that that existed, thank you.
22:30
< RichyB>
Fortunately, it turns out that I don't actually have the "insufficient numerical precision" problem because failures aren't actually as unlikely as I had thought that they were. :)
22:30
<@Rhamphoryncus>
heh
22:30
<@Rhamphoryncus>
GMP is the other tool I'd suggest
22:30 * McMartin relinks http://justinhileman.info/article/git-pretty/
22:30
<@Rhamphoryncus>
It lets you have arbitrarily large mantissa
22:31 * McMartin sends out the spams
22:31
<&McMartin>
GET A HUUUUUUUUGE M4NT1SS4
22:45 himi [fow035@D741F1.243F35.CADC30.81D435] has joined #code
22:45 mode/#code [+o himi] by ChanServ
23:07
<@Haeroe>
Hum, looks like they've made freshman algos harder than in my time..
23:16
<@Haeroe>
One of the six weekly assignments is a sudoku solver; one is getting 1-9 arranged randomly in a 3x3 grid and having to be moved into 123\n456\n789 order by rotating 2x2 squares
23:17
<&McMartin>
boo.
23:17
<&McMartin>
In the grim future of McMartin there is only merge conflicts
23:26
<@gnolam>
The gitdark future.
23:42 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has quit [Ping timeout: 121 seconds]
23:50 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
23:55 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has joined #code
23:55 mode/#code [+o Rhamphoryncus] by ChanServ
--- Log closed Thu Feb 21 00:00:49 2013
code logs -> 2013 -> Wed, 20 Feb 2013< code.20130219.log - code.20130221.log >

[ Latest log file ]