--- Log opened Sat Apr 04 00:00:37 2009 |
00:32 | <@Derakon> | Oh now that's just mean. |
00:33 | <@Derakon> | I'm getting screen jitter because the player's Y location is alternating between 4064.0 and 4063.9999999999995. |
00:33 | <@Derakon> | 'Scuse me. 4064.0000000000005. |
00:36 | | Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Ping Timeout] |
00:39 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout] |
00:42 | | Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code |
00:43 | | mode/#code [+o Vornicus] by ChanServ |
00:49 | <@gnolam> | Back to the old drawing board with your collision functions then? |
00:49 | <@Derakon> | Actually, so far that hack I put it specifically for the toestubbing problem seems to be working. |
00:50 | <@Derakon> | The screen jitter was a separate issue stemming from the fact that SDL only renders integer numbers of pixels. |
00:54 | <@gnolam> | Yes. But the jittering in those situations depends on how you handle collision with the ground. :) |
00:54 | <@gnolam> | And I'm getting jitter in my dose rate readings. Blergh. :P |
00:55 | <@McMartin> | "!: Illegal operation on bound member function" |
00:55 | <@McMartin> | Oh, C++. Your LISP envy is so adorable. |
00:58 | | KBot [~karma.bot@Nightstar-29021.neoplus.adsl.tpnet.pl] has joined #Code |
00:58 | | AbuDhabi [~farkoff@Nightstar-29021.neoplus.adsl.tpnet.pl] has joined #Code |
00:59 | | AnnoDomini [~farkoff@Nightstar-28438.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
00:59 | | KarmaBot [AnnoDomini@Nightstar-28438.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
01:01 | | KBot is now known as KarmaBot |
01:12 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer] |
01:13 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
01:13 | | mode/#code [+o Attilla] by ChanServ |
01:14 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>] |
01:20 | | AbuDhabi [~farkoff@Nightstar-29021.neoplus.adsl.tpnet.pl] has quit [Quit: The body is alive, but the eyes are dead.] |
01:20 | | * McMartin fiddles with Parsec. |
01:21 | <@Consul> | Not too much or you'll go blind. |
01:23 | | Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Ping Timeout] |
01:30 | | Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code |
01:30 | | mode/#code [+o Vornicus] by ChanServ |
01:50 | | * gnolam ponders static variables. |
01:56 | | TarinakyKai [~Tarinaky@Nightstar-16638.plus.com] has quit [Quit: Leaving] |
02:25 | | Derakon is now known as Derakon[AFK] |
03:06 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
03:06 | | mode/#code [+o ToxicFrog] by ChanServ |
03:11 | | Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Connection reset by peer] |
03:18 | | Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code |
03:18 | | mode/#code [+o Vornicus] by ChanServ |
03:39 | | Alek [~omegaboot@Nightstar-317.dsl.emhril.sbcglobal.net] has joined #code |
03:43 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?] |
04:51 | | Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Ping Timeout] |
04:56 | | Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code |
04:56 | | mode/#code [+o Vornicus] by ChanServ |
06:02 | | * Vornicus blows Euler problem 70 out of the sky. |
06:02 | | Syloqs-AFH [Syloq@Admin.Nightstar.Net] has quit [Connection reset by peer] |
06:33 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Client exited] |
06:42 | <@McMartin> | Man, it's not even 11 but I feel like I've been hit by a truck. |
06:43 | | * McMartin brews some peppermint tea |
06:43 | <@McMartin> | Also, I conclude that Parsec is possibly the best parser library I've ever seen. |
06:44 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
06:44 | | mode/#code [+o ToxicFrog] by ChanServ |
06:44 | | * McMartin throws a beyond-CFG monadic combinator-based parser generator at ToxicFrog. |
06:48 | <@ToxicFrog> | Yay, parsec? |
06:48 | <@McMartin> | Yeah. |
06:49 | | * McMartin has been fiddling a bit with it and is fairly impressed. |
06:54 | | Vornicus [Vornicus@Admin.Nightstar.Net] has quit [Quit: ] |
06:54 | <@McMartin> | eof = notFollowedBy anyToken <?> "end of input" |
08:08 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out] |
08:14 | | Derakon[AFK] is now known as Derakno |
08:14 | | Derakno is now known as Derakon |
08:36 | | Derakon is now known as Derakon[AFK] |
08:38 | | ToxicFrog` [~ToxicFrog@67.204.47.ns-13499] has joined #code |
08:41 | | ToxicFrog` [~ToxicFrog@67.204.47.ns-13499] has quit [Ping Timeout] |
08:45 | | AnnoDomini [~farkoff@Nightstar-29021.neoplus.adsl.tpnet.pl] has joined #Code |
08:45 | | mode/#code [+o AnnoDomini] by ChanServ |
09:51 | <@AnnoDomini> | Damn it. What's the default password for a PostgreSQL server? |
09:51 | <@AnnoDomini> | I've just installed the damn thing, and don't know it. |
09:54 | <@EvilDarkLord> | AnnoDomini: Quick googling suggests there is no tsuch thing. Also, http://docs.planetargon.com/PostgreSQL_Reset_Password might help. |
09:54 | <@AnnoDomini> | Thanks. |
09:57 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus] |
11:23 | | Tarinaky [~Tarinaky@Nightstar-16638.plus.com] has joined #code |
12:12 | | * AnnoDomini scratches head. Will UTF-8 correctly do Central European characters? |
12:13 | <@jerith> | UTF-8 will correctly do the entire unicode range. |
12:14 | <@jerith> | You may need a suitable typeface to map the codepoints into appropriate glyphs, however. |
12:15 | <@jerith> | ??? |
12:15 | <@AnnoDomini> | I'll rephrase. I'm setting up a MySQL server and I have to select a default character set. I know my database will have CE characters. I want them to be properly represented when put on a website. |
12:16 | <@jerith> | That's not the db's job. |
12:16 | <@AnnoDomini> | jerith: That looks like the bastard child of a question mark and an exclamation mark with headphones on. |
12:18 | <@jerith> | It's an interrobang (0x203D) surrounded by a matched pair of black bullets (0x204C, 0x204D). |
12:23 | <@jerith> | I'm rather partial to 0x26B0, also: ? |
12:24 | <@AnnoDomini> | That's a thin rectangle. |
12:24 | <@jerith> | Then your font isn't big enough. The symbol name is COFFIN. ;-) |
12:25 | <@AnnoDomini> | Is it just me, or is MySQL's producer being a dick in requiring a slew of personal data just to download the fucking free version of the software? |
12:25 | <@jerith> | aptitude install mysql-server |
12:25 | <@jerith> | yum install mysql-server (I thing) |
12:25 | <@AnnoDomini> | Not on Lunix, dude. |
12:26 | <@jerith> | ? |
12:27 | <@AnnoDomini> | Unhappy face. |
12:27 | <@jerith> | You're probably bettor off grabbing a WAMP stack, then. |
12:27 | <@AnnoDomini> | A what? |
12:28 | <@jerith> | There are a bunch of Apache/MySQL/PHP packages for Windows. |
12:28 | <@jerith> | They come with pretty installers and sane configurations, or so I am told. |
12:29 | <@jerith> | However, my battery is about to be empty. |
12:31 | <@jerith> | ? <-- Have some benzine. |
12:32 | | * AnnoDomini the hell out of MySQL. What DON'T you understand about 'create database library;'?! |
12:33 | <@jerith> | s/?!/?/ |
12:36 | <@jerith> | Anyways, you need to make sure your app is using unicode rather than ASCII. |
12:37 | <@AnnoDomini> | Eh. I don't think the teacher will be bothered much by silly symbols instead of characters much. |
12:38 | | * AnnoDomini makes sure to go to the bloody consultations, because he's stumbling over setting up a god-damned server, even. |
12:38 | <@jerith> | And now I must flee. Cheerio. |
13:03 | <@AnnoDomini> | Mm'kay. I'm connected to the SQL shell of postgreSQL, but how the fuck do I tell where I am? |
13:03 | <@AnnoDomini> | It fails to load a script file given with an absolute path. |
13:13 | <@AnnoDomini> | Finally. How the hell was I supposed to KNOW that using the wrong slash? It's a fucking local path, the obvious choice is \. |
13:15 | < Tarinaky> | I expect it was mentioned in the manual. |
13:17 | <@AnnoDomini> | I don't care if it was mentioned in the 500 page manual. I care that the error message was absolutely unhelpful, as was the \help command. |
13:31 | | * AnnoDomini wonders how the hell to make a table INSIDE the database he created. |
13:31 | <@AnnoDomini> | It seems that it's for some reason creating a database, and a table independently. |
13:56 | <@jerith> | AnnoDomini: Most apps accept '/' as a path separator in Windows, because '\' is an escape character. |
14:02 | < Alek> | what's that thin interrobang with a caret hat that is enclosed on the right? |
14:03 | < Alek> | oh wate. |
14:03 | < Alek> | ?! |
14:03 | | * Alek obviously hasn't quite woken up yet. |
14:47 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
14:48 | | mode/#code [+o gnolam] by ChanServ |
15:04 | | PinkFreud is now known as PinkCoffeeZombie |
15:52 | | Derakon[AFK] [~Derakon@Nightstar-5066.hsd1.ca.comcast.net] has quit [Operation timed out] |
16:03 | | Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code |
16:04 | | Syloqs_AFH is now known as Syloqs-AFH |
16:09 | | watching [~similarit@219.159.67.ns-24094] has joined #code |
16:15 | | PinkCoffeeZombie is now known as PinkFreud |
16:15 | | watching [~similarit@219.159.67.ns-24094] has left #code [] |
16:19 | | troy^2000 [~Guest@Nightstar-21074.range86-128.btcentralplus.com] has joined #code |
16:19 | | troy^2000 [~Guest@Nightstar-21074.range86-128.btcentralplus.com] has left #code [] |
17:01 | | ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code |
17:01 | | mode/#code [+o ToxicFrog] by ChanServ |
17:49 | | Consul [~consul@Nightstar-634.dsl.sfldmi.ameritech.net] has quit [Ping Timeout] |
17:51 | | Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has joined #code |
17:51 | | mode/#code [+o Consul] by ChanServ |
18:03 | | Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code |
18:03 | | mode/#code [+o Vornicus] by ChanServ |
18:31 | | Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code |
19:07 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
19:07 | | mode/#code [+o Attilla] by ChanServ |
19:36 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer] |
19:36 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
19:36 | | mode/#code [+o Attilla] by ChanServ |
19:53 | <@AnnoDomini> | TextBox.cpp:24: warning: comparison between signed and unsigned integer expressi |
19:53 | <@AnnoDomini> | ons |
19:54 | <@AnnoDomini> | Should I be worried? |
19:54 | <@jerith> | Only if it's likely to be an issue. |
19:55 | <@jerith> | I tend to jump through hoops to avoid warnings, just because many of them are real problems that I don't want to mask with craploads of noise. |
19:57 | <@AnnoDomini> | I don't think it's an issue. |
20:01 | <@AnnoDomini> | Eh. I think I'll use abs() or something to get rid of this. |
20:02 | <@AnnoDomini> | abs() was in math.h, right? |
20:02 | <@ToxicFrog> | man 3 abs and find out. |
20:02 | <@AnnoDomini> | What? |
20:03 | <@ToxicFrog> | The command "man 3 abs" will give you the manual page for abs in section 3 of the manual (the C standard library) |
20:03 | <@ToxicFrog> | Among other things, that tells you what headers and defines you need, if any. |
20:03 | <@AnnoDomini> | On Windows? |
20:04 | <@gnolam> | AnnoDomini: or just cast the offending variable? |
20:04 | <@ToxicFrog> | Oh. No cygwin/msys? |
20:04 | <@ToxicFrog> | In that case |
20:04 | <@ToxicFrog> | NAME |
20:04 | <@ToxicFrog> | abs, labs, llabs, imaxabs - compute the absolute value of an integer |
20:04 | <@ToxicFrog> | SYNOPSIS |
20:04 | <@ToxicFrog> | #include <stdlib.h> |
20:04 | <@ToxicFrog> | int abs(int j); |
20:05 | <@AnnoDomini> | Curiously, it works without including stdlib. |
20:05 | <@ToxicFrog> | Something else you're including might be including stdlib. |
20:05 | <@AnnoDomini> | I see. So I'd better. |
20:05 | <@gnolam> | *cough*cast*cough* |
20:06 | <@gnolam> | If it's not safe to cast, it's not safe to just abs() it either. |
20:06 | <@AnnoDomini> | Cast? You mean that thing with the very funky syntax? |
20:06 | <@ToxicFrog> | Oh right, you're in C++ |
20:07 | <@ToxicFrog> | So, first of all, you want to include <cstdlib> |
20:07 | <@AnnoDomini> | (abs()ing took care of the issue.) |
20:08 | <@gnolam> | (type)(variable) |
20:08 | <@gnolam> | (And the parentheses around the variable are pretty much optional) |
20:09 | <@ToxicFrog> | In C++, you can also static_cast<type>(var) |
20:09 | <@AnnoDomini> | That was what I meant. |
20:09 | <@AnnoDomini> | Funky. |
20:09 | <@AnnoDomini> | ToxicFrog: Where am I to include <cstdlib>? The file where I'm using a cast? |
20:10 | <@ToxicFrog> | The file where you're using abs |
20:11 | <@ToxicFrog> | For using C functions, if the C include is <foo.h>, the C++ include is <cfoo> |
20:11 | <@AnnoDomini> | I see. |
20:12 | <@gnolam> | And I maintain that it should be a cast and not an abs() - unless you're Doing Something Wrong that leads to the warning. |
20:13 | <@gnolam> | (But this is C++, so I assume it's just being anal for anal retentiveness' sake) |
20:13 | <@AnnoDomini> | I'm not doing anything wrong. I'm checking if the length of the substring is less than what I demanded, thus signifying that the substring contains the end of the base string. |
20:16 | <@ToxicFrog> | ...what are you using abs for, then? |
20:17 | <@ToxicFrog> | Now I'm worried and want to see your code. |
20:19 | <@AnnoDomini> | I'm using casting now, since it looks nicer. |
20:20 | <@AnnoDomini> | http://pastie.org/437014 |
20:33 | <@AnnoDomini> | How insane is it? |
20:34 | <@ToxicFrog> | Actually, not as insane as I feared. |
20:35 | <@ToxicFrog> | The problem stems from the fact that you have rows and cols as int rather than unsigned int |
20:36 | <@ToxicFrog> | (well, the warning, it's not actually a problem) |
20:36 | <@ToxicFrog> | And .length() returns an unsigned int, or more likely a size_t |
20:37 | <@AnnoDomini> | Well, one way or another, I'm comparing columns and lastSpace which has to be an int if I understood the find_last_of() documentation correctly. |
20:39 | <@ToxicFrog> | size_t find_last_of ( const string& str, size_t pos = npos ) const; |
20:39 | <@ToxicFrog> | It returns a size_t. |
20:39 | <@ToxicFrog> | Which is generally something like "unsigned long int" |
20:40 | <@AnnoDomini> | And what does it return if it doesn't find? |
20:44 | <@ToxicFrog> | string::npos, which is the greatest possible value of a size_t and also -1. |
20:44 | <@AnnoDomini> | So yeah. |
20:47 | <@ToxicFrog> | So, there's pretty much no reason for any of your numbers there to be signed. |
20:49 | <@ToxicFrog> | (and len and lastSpace should ideally be size_t) |
20:50 | <@AnnoDomini> | Eh. It works now. I might fix it sooner or later, but not now. |
20:53 | <@ToxicFrog> | Yeah, it'll work fine as written, it's just...style. |
21:19 | <@AnnoDomini> | Mm'kay. Thanks. |
21:45 | <@AnnoDomini> | Hmm. I'm fuzzy here - if I wanted to get a hexadecimal value as an argument, what type would I use? int? |
21:45 | <@AnnoDomini> | I mean, I've got things like 0x009999FF for colours. |
21:47 | <@jerith> | int or long, I suppose. |
21:49 | <@McMartin> | Are there any particular libraries you're using here? |
21:49 | <@McMartin> | And how portable are you trying to be? |
21:51 | <@McMartin> | uint32_t is the UNIX standard one, but it's not universally respected. SDL has UInt32, which will be. |
21:52 | <@AnnoDomini> | Libraries: SDL, SDL_gfx. |
21:53 | <@AnnoDomini> | I suppose it'd be good to have portability to Linux, since a friend of mine showed interest in testing. |
21:59 | <@gnolam> | Haha! Take /that/, c__hl_weapon_stubs.h! |
21:59 | <@gnolam> | Now I just need to figure out how to send a boolean... |
22:06 | <@McMartin> | Yeah, if you're using SDL, use the UInt32 type for 32-bit colors. |
22:06 | <@McMartin> | I forget offhand if the I is capitalized. |
22:07 | <@McMartin> | (If it were DirectX, I'd say use the Windows DWORD type.) |
22:20 | <@AnnoDomini> | It isn't. |
22:21 | <@AnnoDomini> | http://i44.tinypic.com/2rh8tv4.jpg |
22:22 | <@McMartin> | > BOW TO NO MAN |
22:22 | | * AnnoDomini laughs. |
22:26 | | * AnnoDomini ponders sometime in the future making something akin to internationalization and hooking up a thesaurus to the in-game messages. Just for the case that the player names himself "Grignr". |
22:31 | <@gnolam> | Hah. |
22:32 | <@gnolam> | On the topic of interesting in-game messages, attempting to use the primary attack key in RadiaX currently results in "I BRING BROCCOLI AND WAR" being printed on the screen. |
22:32 | <@gnolam> | I think I was tired when I wrote that... |
22:49 | | somnolence [~somnolenc@Nightstar-3790.hsd1.ca.comcast.net] has joined #code |
22:52 | <@McMartin> | AnnoDomini: Is this a random-swearing generator or something? |
22:53 | <@McMartin> | There is a game called "Treasures of a Slaver's Kingdom" which is a parody of high fantasy |
22:53 | <@McMartin> | It has an OATH command which will make up random swear words. |
22:57 | <@AnnoDomini> | Uh... no, I just wanted it to swap normal words for absurd words from a thesaurus. You know, like in the book. :P |
22:57 | <@McMartin> | No, I meant, in the screenshot. |
22:57 | <@McMartin> | As in, when discovering something, is it randomly saying "By Thor's half-swilled meadhorn!" or what have you |
22:58 | <@AnnoDomini> | Naw. I just needed text to test the TextBox code. |
22:58 | <@AnnoDomini> | I took your response to an earlier screenshot. :) |
23:02 | <@McMartin> | Yeah, I'd been working on modifying a system that was randomly named after Mrifk at the time |
23:11 | | AnnoDomini [~farkoff@Nightstar-29021.neoplus.adsl.tpnet.pl] has quit [Quit: Black, the colour of despair.] |
23:18 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout] |
23:19 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
23:19 | | mode/#code [+o Attilla] by ChanServ |
23:26 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout] |
23:29 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
23:29 | | mode/#code [+o Attilla] by ChanServ |
23:30 | | somnolence [~somnolenc@Nightstar-3790.hsd1.ca.comcast.net] has quit [Ping Timeout] |
23:59 | <@Consul> | I just had an interesting idea that TheDailyWTF would positively hate me for. |
--- Log closed Sun Apr 05 00:00:41 2009 |