--- Log opened Mon Feb 02 00:00:58 2009 |
00:22 | <@Derakon> | ... |
00:22 | <@Derakon> | In the list of things not to do in Unix, `cp -r .. .` is one of them. |
00:22 | <@Derakon> | Fortunately eventually the shell complains and cuts you off. |
00:23 | <@McMartin> | ... yes |
00:24 | | * Derakon replaces the old ship graphic with a set of new ones. |
00:24 | <@McMartin> | Though actually, you can rely on that and use other options to shift stuff around. |
00:25 | <@Derakon> | The ship now changes formation, Einhänder-like, when you change speed. |
00:25 | <@Derakon> | Now I just have to change the hitbox, which is located somewhere in the engines now. |
00:25 | <@McMartin> | Nice |
00:25 | <@McMartin> | For the record, I don't like the suggested main menu screen. |
00:26 | <@McMartin> | I much prefer the Galaga vibe over the Defcon one. |
00:26 | <@Derakon> | Well, I wouldn't use it as-is. There are ideas I could cherry-pick, though. |
00:26 | <@Derakon> | Heh. |
00:26 | <@Derakon> | The flavor's all wrong. |
00:26 | <@Derakon> | The presentation is interesting, though. |
00:29 | <@Derakon> | Agh, I suck with a relocated cockpit. >.< |
00:30 | <@McMartin> | Time to re-educate your spinal cord ;-) |
00:32 | <@Derakon> | You saw the new ingame layout? |
00:32 | <@Derakon> | http://derakon.dyndns.org/~chriswei/temp/bulletmlscreen17c.png if not. |
00:33 | <@Derakon> | My next step will be insetting the bomb meter inside the rank meter, with a different color; getting rid of the rank text; replacing the bomb text with a symbol; and adding "Loop: foo" to the interlude text. |
01:09 | | Bob_Work [c6b3e33a@Nightstar-14595.mibbit.com] has joined #Code |
01:14 | <@gnolam> | Derakon: At least it wasn't a fuck-up with rm. |
01:15 | <@gnolam> | Like my acquaintance who meant to do "rm -rf /foo" but instead did "rm -rf / foo". On a production server. |
01:16 | <@Derakon> | Whups. |
01:21 | | Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>] |
01:23 | < Bob_Work> | ouch |
01:24 | < Bob_Work> | silly question: If I need to write a Unix script that is compatible no matter what shell it is run in, then I want to write it in bash, no? |
01:25 | < Alek|gone> | um. not sure. maybe. |
01:25 | <@McMartin> | How broad is "no matter what shell"? |
01:26 | < Bob_Work> | Direct from extra credit assignment: "3. I will run the script, as is; you don't know what my default shell is." |
01:26 | <@McMartin> | AHa. |
01:26 | <@McMartin> | Yeah, that involves the #! construct |
01:26 | < Bob_Work> | Gotcha. |
01:26 | <@McMartin> | You can write it in any shell script, but you have to be name it with that construct |
01:26 | <@McMartin> | That said, you *should* use bash because the others are generally full of spiders and horrible gotchas |
01:27 | < Bob_Work> | heh |
01:27 | | * McMartin used tcsh for many years before he got bitten by bullshit one too many times. |
01:27 | < Bob_Work> | Ok, so start the script with: #! /usr/bin/ksh |
01:27 | <@McMartin> | If you're using the Korn Shell, yeah. |
01:27 | < Bob_Work> | err... |
01:27 | <@McMartin> | Make sure that's where it is. |
01:27 | < Bob_Work> | err... I meant #!/usr/bin/sh |
01:27 | <@McMartin> | (This may be a trick; after all, this won't work if they don't have your shell of choice *installed* |
01:28 | <@McMartin> | There's a cool command "which" that tells you where a file is. |
01:28 | <@McMartin> | sh is usually *not* in /usr/bin |
01:28 | < Bob_Work> | Damn. Ok. |
01:30 | < Bob_Work> | I figure I should probably write this in KSH. |
01:31 | < Bob_Work> | Teacher started first class with: "Look, we're all grown ups now, so we'll be using the Korn shell." |
01:31 | <@McMartin> | Yeah, so you'd name that one. |
01:32 | <@McMartin> | That said, the Korn shell isn't *that* widely installed, so out there in the world at large, you'll probably want to program to the Bourne Shell - some variant of it (including the Bourne Again Shell aka bash) is installed everywhere |
01:32 | <@McMartin> | However, very early versions of it are not very featureful and stuff might not work |
01:32 | <@McMartin> | But as your teacher noted, we're all grownups now. =P |
01:33 | <@McMartin> | And I suspect most of ksh and bash are similar. |
01:33 | < Bob_Work> | right |
01:33 | <@McMartin> | ... yeah, both ksh and bash are extensions of bsh. |
01:34 | <@McMartin> | For this class, use ksh |
01:34 | <@McMartin> | When writing for stuff you expect will be running on random Linux, BSD, or OSX machines, use bash. |
01:35 | <@McMartin> | ksh is apparently also generally mightier than bash, though, so be aware of that later. |
01:35 | <@McMartin> | http://en.wikipedia.org/wiki/Comparison_of_computer_shells has a nice little chart. |
01:36 | <@McMartin> | Yeah, from what I'm seeing, ksh is very nearly strictly more powerful than bash |
01:36 | <@McMartin> | the only thing bash has that ksh does not is $RANDOM, and there's a workaround that works in both |
01:37 | < Bob_Work> | awesome, thank you! |
01:37 | <@McMartin> | np |
01:52 | <@Derakon> | New screenshot: http://derakon.dyndns.org/~chriswei/temp/bulletmlscreen18.png |
01:53 | <@McMartin> | Nice. |
01:53 | <@McMartin> | The only remaining thing that could be made graphical is using sprite-stamps for the life counter. |
01:53 | <@Derakon> | It's starting to look like something with actual effort put into it~ |
01:53 | <@McMartin> | Or "(stamp)x3" |
01:53 | <@Derakon> | I never really liked that approach, to be honest. |
01:53 | <@Derakon> | Stamp x3 would be better. |
01:54 | <@McMartin> | What happens if bombs go double-digit? |
01:54 | < Bob_Work> | the program explodes. |
01:54 | <@Derakon> | There might be some slight overlap. |
01:54 | <@Derakon> | Text displayed over the meter. |
01:57 | <@Derakon> | Yeah. Very minor overlap with two digits, slightly worse with 3 but WTH are you doing with over 99 bombs anyway? |
01:57 | <@Derakon> | (Answer: testing) |
01:58 | <@ToxicFrog> | Bob_Work: also, if you aren't sure where the shell is but you do know where env is, you can use: |
01:58 | <@ToxicFrog> | #!/bin/env ksh |
01:58 | <@ToxicFrog> | Or similar. |
01:58 | <@McMartin> | Unfortunately, env is less-consistently placed than shells. |
01:58 | | * McMartin learned this the hard way when he was packaging Ophis. |
01:59 | <@McMartin> | Distros vary between /bin and /usr/bin for env. |
02:02 | <@Derakon> | Man, my drawText function has seven arguments. ;.; |
02:02 | <@Derakon> | surface to draw to, list of text lines to draw, location to draw at, name of font, size of font, text alignment of font, alpha. |
02:10 | <@ToxicFrog> | ;.; |
02:10 | <@Derakon> | Okay, no more words on the in-game UI! |
02:10 | <@Derakon> | Except between patterns. |
02:10 | <@ToxicFrog> | Mine's...surface (implicit this), x, y, text, colour (includes alpha) |
02:10 | <@ToxicFrog> | But it doesn't support fonts or sizing, so. |
02:11 | <@Derakon> | Yeah, there's an implicit self that I didn't count. |
02:28 | <@Derakon> | New splash screen for the new ship. http://derakon.dyndns.org/~chriswei/temp/bulletmlscene2.png |
02:39 | <@McMartin> | Hm. The engines kind of look like a cockpit from that angle |
02:39 | <@McMartin> | It looks like he's running |
02:39 | <@Derakon> | Mm, I see what you mean. |
02:40 | <@Derakon> | Removing the tail makes the ship look like a plucked goose, is the thing. :\ |
02:41 | <@McMartin> | I think it's the wings. |
02:41 | <@McMartin> | Can you delta those out more? |
02:42 | <@McMartin> | Right now they look like cannon pylons or something a la the Vic Viper |
02:42 | | * Derakon nods. |
02:46 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?] |
02:46 | <@Derakon> | http://derakon.dyndns.org/~chriswei/temp/bulletmlscene2b.png |
02:47 | <@McMartin> | better, yeah |
02:48 | <@Derakon> | I had shape keys set up for all the different wing positions anyway. It only took so long because radiosity (the glow from the engines and from under the plating) takes eons to process. |
02:53 | <@Derakon> | At this point, the game's pretty clearly named Fusillade~ |
02:53 | <@Derakon> | I guess I should work on coming up with a logo. |
02:56 | <@Derakon> | Thoughts on this font? http://www.dafont.com/ethnocentric.font?psize=s&l[]=10&l[]=1&text=1234567890+abc defghijklmnopqrstuvwxyz |
03:04 | <@McMartin> | I like it. It's much like Stop, my favorite retro-future font ever. |
03:12 | | * Derakon does lettering in Blender, arghs at the letter 's'. |
03:12 | < Bob_Work> | Can someone point me in the appropriate direction? I need to figure out how to deliminate a date in format mm/dd/yyyy into, say, a numeric string |
03:12 | | * Bob_Work sees millions of hits on google with his searches |
03:13 | < Bob_Work> | dates are, apparently, very painful to play with in the shell script. |
03:13 | <@Derakon> | Bob_Work: cut? |
03:14 | <@Derakon> | cut -d/ -f1-3 will, I think, do what you want. |
03:14 | | * Bob_Work smacks forhead |
03:14 | < Bob_Work> | yes, that's what I wanted. Thank you. |
03:14 | <@Derakon> | No problem. :) |
03:20 | < Bob_Work> | cut -c did the trick. |
03:23 | <@Derakon> | Mental note: remember how to spell your game's name when you're working on the logo. |
03:23 | | * Derakon ditches a redundant 's'. |
03:25 | < Bob_Work> | hehe |
03:59 | <@Derakon> | Thoughts? http://derakon.dyndns.org/~chriswei/temp/bulletmllogo1.png |
04:00 | < Bob_Work> | needs salt. |
04:01 | < Bob_Work> | Honestly: That was a little hard to read at first. |
04:01 | <@Derakon> | Well, it's a logo. |
04:01 | <@Derakon> | It's more "art with letters" than "communication". |
04:01 | < Bob_Work> | in that case, nevermind. |
04:01 | < Bob_Work> | right. |
04:02 | < Alek|gone> | make a more bullety logo, imo. |
04:02 | < Alek|gone> | bullet holes, like. |
04:02 | <@Derakon> | Putting round holes into meshes is surprisingly difficult. >.< |
04:02 | < Alek|gone> | then again, that's more of a FPS thing. |
04:02 | <@Derakon> | This is as-yet unstyled; it's just lettering at this point. |
04:04 | <@McMartin> | FJSILLADS |
04:04 | | * Derakon facepalms. |
04:05 | <@Derakon> | The epsilon shape is to match the D, you dork. :p |
04:05 | <@McMartin> | (sigma, not epsilon) |
04:05 | <@McMartin> | I know. |
04:05 | <@McMartin> | The U being a J, however, is more problematic |
04:05 | <@Derakon> | And the asymmetric U maintains a straight line from one end of the U to the other. |
04:07 | < Alek|gone> | sigma IS used as an "e" in many eastern-european languages. -_- |
04:07 | <@Derakon> | And yeah, sigma, not epsilon. My bad. |
04:30 | < Bob_Work> | yep, it's official: My unix teacher is an ASS. >.> |
04:31 | <@jerith> | BOFH ASS or Damagement ASS? |
04:31 | < Bob_Work> | I just realized that not only does he want us to write a script converting Gregorian dates to Julian, and counting the number of days between the dates, but also wants us to put in days of the week. |
04:31 | < Bob_Work> | Damagement Ass. |
04:31 | <@jerith> | In what language? |
04:32 | < Bob_Work> | shell script. Shell of our choice. |
04:32 | <@jerith> | Doesn't "date" do most of that for you? |
04:32 | < Bob_Work> | From what I read, date only sets the date of the system. I may be wrong. |
04:33 | <@ToxicFrog> | man 1 date |
04:33 | <@ToxicFrog> | At least on my system, the first option is: |
04:33 | <@ToxicFrog> | -d, --date=STRING |
04:33 | <@ToxicFrog> | display time described by STRING, not `now' |
04:33 | <@ToxicFrog> | And if you scroll down to "format" there's lots of stuff for output format. |
04:34 | <@jerith> | There's always "#!/bin/bash\nperl -e '...'" |
04:35 | <@jerith> | perl one-liners are a long-established chainsaw in bash's toolkit... |
04:36 | | * Derakon eyes his main menu. |
04:36 | <@Derakon> | Having the logo on there is more distracting than anything else... |
05:05 | <@Reiver> | Derakon: The logo is pretty. |
05:05 | <@Reiver> | I assume it's designed to take the reader twenty seconds to work out WTF, in order to hide the load time?~ |
05:07 | <@Reiver> | Though the U struck me as J until I looked at the URL, remembered the LJ conversation and realised what it was supposed to be saying. |
05:07 | <@Reiver> | Before then it was baffling me a bit. >_> |
05:23 | < Bob_Work> | that threw me, as well as the "L". I thought there were 3 of them for a moment. |
05:24 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
05:46 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
05:46 | | mode/#code [+o ToxicFrog] by ChanServ |
05:49 | < Bob_Work> | Ok, I can't seem to use date to determine the day of the week. Tried every variation I can think of, and am getting nowhere. |
05:49 | < Bob_Work> | date "+%a" shows me Mon, which is the current. But I can't figure out how to find the day for, say, Oct 10 2008 |
05:52 | <@Vornicus> | Bob: what language? |
05:52 | <@Derakon> | Shell. |
05:52 | < Bob_Work> | shell scripting. Korn shell. |
05:52 | <@Vornicus> | Okay, let me have a look-see. |
05:52 | <@McMartin> | Which is in turn apparently bash + floating point + multidimensional arrays |
05:52 | | * Bob_Work sighs |
05:54 | | * Vornicus examines man date; finds the -d flag, which appears to do what you ask. |
05:54 | | Serah [~Z@Nightstar-5401.atm2-0-1041217.0xc329e232.boanxx12.customer.tele.dk] has quit [Quit: :tiuQ] |
05:54 | < Bob_Work> | I get: "Not a recognized flag: d" |
05:55 | <@Vornicus> | ... |
05:55 | <@Vornicus> | Awesome. Not. |
05:55 | < Bob_Work> | right. |
05:56 | <@Derakon> | Honestly, dealing with dates without access to a module designed expressly for dealing with dates is not kind. |
05:56 | <@Vornicus> | I have a manual listing for gnu date 5.93 in front of me; what version are you doing? |
05:56 | <@Derakon> | There's too goddamn many gotchas. |
05:56 | <@Vornicus> | using* |
05:57 | < Bob_Work> | Not sure. |
05:58 | <@Derakon> | date --version |
05:58 | <@Vornicus> | Bob: also what's your complete command for this? |
05:58 | <@Derakon> | ...wait, that doesn't work. Stupid date command. |
05:58 | <@Derakon> | What the hell program doesn't respect --version or -v? |
05:58 | <@McMartin> | -v can mean verbose! |
05:58 | <@Vornicus> | I don't know. The version I have the manual for says --version works. |
05:59 | <@Derakon> | McM: that'd be fine, if it worked, which it doesn't. |
05:59 | | * Bob_Work just ran man date |
06:00 | < Bob_Work> | doesn't show a version other than AIX 4.3 |
06:00 | <@McMartin> | Which means it's not GNU date, for one. |
06:01 | < Bob_Work> | right. And it sucks. |
06:01 | <@McMartin> | AIX is somewhat infamous. |
06:01 | <@McMartin> | ("It's what you'd get if you told an alien from another world about UNIX and they tried to reconstruct it based on their memory of your conversation") |
06:01 | <@McMartin> | (Which is to say, it was a reimplementation from early specs of AT&T Unix.) |
06:01 | < Bob_Work> | heh |
06:02 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code |
06:03 | | * Bob_Work checks his data center for a more updated version of *nix |
06:29 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
06:29 | | mode/#code [+o gnolam] by ChanServ |
06:54 | | UndeadAnno [~farkoff@Nightstar-28198.neoplus.adsl.tpnet.pl] has joined #Code |
07:00 | | You're now known as TheWatcher |
07:27 | | Vornicus [~vorn@Admin.Nightstar.Net] has quit [Quit: ] |
07:34 | | Derakon is now known as Derakon[AFK] |
08:09 | | You're now known as TheWatcher[afk] |
08:15 | | RooWeazel [Roogle@Nightstar-25590.hsd1.co.comcast.net] has quit [Connection reset by peer] |
08:15 | | RooWeazel [Roogle@Nightstar-25590.hsd1.co.comcast.net] has joined #code |
08:30 | | Bob_Work [c6b3e33a@Nightstar-14595.mibbit.com] has quit [Quit: http://www.mibbit.com ajax IRC Client] |
09:58 | | You're now known as TheWatcher |
10:45 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus] |
10:46 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code |
12:15 | | UndeadAnno [~farkoff@Nightstar-28198.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
12:23 | | UndeadAnno [~farkoff@Nightstar-28198.neoplus.adsl.tpnet.pl] has joined #Code |
13:03 | | Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code |
13:04 | | mode/#code [+o Attilla] by ChanServ |
13:49 | | You're now known as TheWatcher[d00m] |
14:56 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus] |
15:02 | | You're now known as TheWatcher[afk] |
15:38 | | Vornicus [~vorn@64.252.6.ns-4046] has joined #code |
15:38 | | mode/#code [+o Vornicus] by ChanServ |
15:40 | | Vornicus [~vorn@64.252.6.ns-4046] has quit [Quit: ] |
15:40 | | Vornicus [~vorn@Admin.Nightstar.Net] has joined #code |
15:40 | | mode/#code [+o Vornicus] by ChanServ |
16:27 | | Derakon[AFK] is now known as Derakon |
16:39 | | KBot [AnnoDomini@Nightstar-29653.neoplus.adsl.tpnet.pl] has joined #Code |
16:40 | | UndeadAnno [~farkoff@Nightstar-28198.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
16:40 | | KarmaBot [AnnoDomini@Nightstar-28198.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
16:42 | | KBot is now known as KarmaBot |
16:42 | | UndeadAnno [~farkoff@Nightstar-29653.neoplus.adsl.tpnet.pl] has joined #Code |
16:42 | | mode/#code [+o UndeadAnno] by ChanServ |
16:45 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout] |
17:49 | | Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has quit [Connection reset by peer] |
17:50 | | Attilla [~The.Attil@Nightstar-9469.cdif.cable.ntl.com] has joined #code |
17:50 | | mode/#code [+o Attilla] by ChanServ |
18:13 | | You're now known as TheWatcher |
18:23 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
18:23 | | mode/#code [+o ToxicFrog] by ChanServ |
18:35 | <@gnolam> | ... and of course, I left the MSVS ISO on the other computer. Bleh. |
18:39 | <@gnolam> | It's probably faster to just redownload all 3.something gigs of it off MSDNAA instead of switching the hard drive... |
18:58 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Computer maintenance] |
19:29 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
19:29 | | mode/#code [+o gnolam] by ChanServ |
19:29 | <@gnolam> | I realized I needed access to all the por^W pictures and stuff on those drives anyway. |
19:35 | | * McMartin delves into shellscript madness |
19:35 | <@Derakon> | Colorscheme thoughts? http://derakon.dyndns.org/~chriswei/temp/bulletmlship5c.png |
19:36 | <@UndeadAnno> | Madness? I'm afraid you're far off. This is Sparta. Madness is that way. |
19:37 | <@UndeadAnno> | Derakon: For unclear reasons, that reminds me of a probe of some sort. |
19:50 | <@gnolam> | Hurr hurr hurr. |
19:51 | <@McMartin> | It's much clearer which end goes towards the enemy now. |
19:52 | <@Derakon> | It also looks less like a cornstalk. >.< |
19:53 | <@UndeadAnno> | Make an unlockable cornstalk mode! |
19:53 | <@McMartin> | Ah, Tyrian |
19:58 | <@Derakon> | Updated splash screen: http://derakon.dyndns.org/~chriswei/temp/bulletmlscene4.png |
19:59 | <@McMartin> | I still think the right arm of the u needs to be lower. |
19:59 | <@Derakon> | But this way it makes a nice line with the lower horizontal arm on the F... ;.; |
20:00 | <@McMartin> | I'll run it past my gaming group and see if *any* of them read it as a U. |
20:00 | <@Derakon> | Heh. |
20:01 | <@Derakon> | In the meantime I'll make the new ship sprites. Very tedious work. :\ |
20:01 | <@McMartin> | 12:00 <@Wang> Fusillade |
20:01 | <@McMartin> | 12:01 <@McMartin> OK, there's one. |
20:01 | <@McMartin> | 12:01 <@Wang> However! |
20:01 | <@McMartin> | 12:01 * McMartin is arguing that the 'u' looks too much like a 'j' |
20:01 | <@McMartin> | 12:01 <@Wang> I am very good at deciphering moon languages. |
20:01 | <@McMartin> | 12:01 <@Wang> And this took a little bit of effort. |
20:02 | <@Derakon> | Which bit took effort? |
20:03 | <@McMartin> | 12:03 <@Wang> Personally? I think the title needs to be reworked so it doesn't look so much like a cross between 80's hair metal band and early-90s l33t handle |
20:04 | <@McMartin> | So, uh, I'm going to go with "he thinks it's generally excessive"~ |
20:04 | <@Derakon> | Heh. |
20:04 | <@Derakon> | I put a lot of effort into that title~ |
20:04 | <@McMartin> | I liked that one Stop-like font, personally. |
20:05 | <@Derakon> | But it was also my first attempt at lettering. |
20:05 | <@McMartin> | Also, "a lot of effort" can become part of the problem. |
20:06 | | * gnolam stabs NTFS with a rusty shiv. |
20:17 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Reboot.] |
20:22 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
20:22 | | mode/#code [+o gnolam] by ChanServ |
20:24 | <@gnolam> | N EHYRHERYG |
20:24 | <@UndeadAnno> | Ia! Ia! |
20:24 | <@Derakon> | Right, time to delve into lettering again. >.< |
20:25 | <@gnolam> | All I want is to take control of the files on the two drives I just swapped into this box. HOW HARD CAN IT FUCKING BE!? |
20:25 | | * gnolam stabs Vista AGAIN AND AGAIN AND AGAIN. |
20:30 | <@gnolam> | RFEAFRQ#%Q%!"5 |
20:31 | | * Derakon comes to the conclusion that he has no idea what he's doing here. |
20:32 | <@UndeadAnno> | When in doubt, have a man walk through the door with a gun drawn. |
20:42 | <@gnolam> | KILL |
21:06 | | simontwo [~simon@78.129.201.ns-20686] has quit [Ping Timeout] |
21:21 | <@UndeadAnno> | Whyyyyyyy! |
21:21 | <@UndeadAnno> | Why are there so many idiots in fourth year?! |
21:22 | <@UndeadAnno> | This guy is asking me how to delete page breaks. |
21:26 | < EvilDarkLord> | Shouldn't people have a degree by then? |
21:27 | < EvilDarkLord> | (Not that this is relevant in any way, just curious.) |
21:27 | <@UndeadAnno> | This is the Engineer degree year. |
22:46 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code |
22:48 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: REboot] |
22:54 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
22:54 | | mode/#code [+o gnolam] by ChanServ |
22:58 | | UndeadAnno [~farkoff@Nightstar-29653.neoplus.adsl.tpnet.pl] has quit [Quit: Astro Cat will play for you... the Symphony of Space.] |
23:01 | < Tarinaky> | C++ I'm struggling to make sense of this function prototype: "bool Push( void (*Function)(void* CallerPtr, Purpose Purp), void* CallerPtr = NULL);" |
23:02 | < Tarinaky> | The function returns a boolean value but what the hell is the first argument and what's a pointer to a void look like? |
23:05 | <@gnolam> | The first argument is a function pointer, and a pointer to void looks like... whatever you cast it to. |
23:06 | < Tarinaky> | Any suggestions on what to search for/look up in an index on void pointers? I'm not quite grasping something here... |
23:08 | <@gnolam> | A void pointer is used in situations like these when you don't know what kind of data the user might like to pass in. |
23:09 | <@gnolam> | It holds a memory address, and that's it: you may not do pointer arithmetic on it, dereference it, or anything of that kind - since you don't know what type it actually represents. |
23:09 | <@gnolam> | Until you cast it to something useful, that is. |
--- Log closed Tue Feb 03 00:00:10 2009 |