--- Log opened Mon Jun 08 00:00:04 2009 |
00:02 | <@McMartin> | OBJECTION |
00:13 | | SmithKurosaki [~jess@Nightstar-6870.dsl.teksavvy.com] has quit [Client exited] |
00:15 | | SmithKurosaki [~jess@Nightstar-6870.dsl.teksavvy.com] has joined #code |
00:26 | < SmithKurosaki> | yay! |
00:27 | <@Vornicus> | Yay? |
00:27 | | * Vornicus fiddles with design. |
00:28 | < SmithKurosaki> | tf getting closer and closer to fully fuctional spellcast :) |
00:28 | < SmithKurosaki> | ^5 tf |
00:29 | <@Vornicus> | Yay |
00:32 | | * gnolam stabs C++'s string handling. |
00:37 | | UndeadAnno [AnnoDomini@Nightstar-29880.neoplus.adsl.tpnet.pl] has quit [Quit: Now, I shall divide you... BY ZERO!] |
01:41 | | * Vornicus fiddles with eye placement for his dude. |
01:41 | <@Derakon> | I thought your dude was a ball. |
01:43 | <@Vornicus> | Yes. The eyes are so I can make sure I can tell what's going on. |
01:43 | <@Vornicus> | As far as the dude's rotation. |
01:43 | <@Derakon> | Ahh. |
01:49 | <@Vornicus> | There. Dude now has eyes. |
01:50 | <@gnolam> | SDL_Bilinear did indeed work fine. |
02:03 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?] |
02:24 | <@Vornicus> | okay why the hell is pygame failing now? |
02:39 | <@Derakon> | It's naptime. |
02:45 | <@Vornicus> | And now it's not failing, and I haven't done anything except add diagnostic prints. |
02:57 | <@Derakon> | If this were C/C++, I'd say you had a loose pointer problem. |
03:18 | <@Vornicus> | Well, now I have a dude. |
03:18 | <@Vornicus> | and he is drawn. |
03:52 | < Orthia> | holy crap |
03:53 | < Orthia> | That thing is awesome. |
03:53 | < Orthia> | What especially interests me is ... ehn, darnit, need a Cheap And Dirty Projector for that part ;_; |
03:53 | < Orthia> | I want an interactive D&D table~ |
03:53 | <@Derakon> | Are you talking about the finger-tracking video? |
03:54 | < Orthia> | Yes, yes I am. |
04:19 | <@Consul> | Johnny Chung Lee is a god. |
04:19 | <@Consul> | Nintendo should have snagged him before Microsoft did. Their loss. |
04:40 | | christ [~assapopul@Nightstar-16301.telebecinternet.net] has joined #code |
04:40 | | christ [~assapopul@Nightstar-16301.telebecinternet.net] has left #code [] |
04:47 | | christ [~assapopul@Nightstar-16301.telebecinternet.net] has joined #code |
04:47 | | christ [~assapopul@Nightstar-16301.telebecinternet.net] has left #code [] |
05:14 | <@Consul> | Well, I almost have everything back up and running on Windows, and so far, the system is absolutely stable. |
05:23 | | Alek [~omegaboot@Nightstar-24547.dsl.emhril.sbcglobal.net] has joined #code |
05:23 | | Consul [~dmlandrum@Nightstar-2808.dsl.sfldmi.ameritech.net] has quit [Quit: Leaving] |
05:23 | | Consul [~dmlandrum@Nightstar-2808.dsl.sfldmi.ameritech.net] has joined #code |
05:23 | | mode/#code [+o Consul] by ChanServ |
05:23 | <@Consul> | w00t! |
05:40 | <@Vornicus> | w00t? |
05:40 | <@Consul> | I'm now xchatting on my real computer instead of that netbook. |
05:41 | <@Vornicus> | W00t |
05:41 | <@Consul> | Well, Windows has been very stable so far. |
05:41 | <@Consul> | Kinda implies it's not a hardware issue, doesn't it? |
06:04 | | Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer] |
06:28 | | UndeadAnno [AnnoDomini@Nightstar-29880.neoplus.adsl.tpnet.pl] has joined #Code |
06:28 | | mode/#code [+o UndeadAnno] by ChanServ |
06:35 | | Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has joined #code |
06:55 | | Consul [~dmlandrum@Nightstar-2808.dsl.sfldmi.ameritech.net] has quit [Ping Timeout] |
06:56 | | Consul [~dmlandrum@Nightstar-2808.dsl.sfldmi.ameritech.net] has joined #code |
06:56 | | mode/#code [+o Consul] by ChanServ |
06:56 | < ToxicFrog> | And now I'm chatting from a liveCD as I resurrect Leela ;.; |
06:57 | <@Consul> | That was a complete spontaneous power down. |
06:57 | <@Consul> | So I clearly spoke too soon. |
06:57 | < ToxicFrog> | In retrospect, performing a totally unsupported procedure to hot-upgrade from 11.0 to 11.1, while using software from three different third-party repos, may not have been the wisest of ideas. |
07:01 | | Consul [~dmlandrum@Nightstar-2808.dsl.sfldmi.ameritech.net] has quit [Quit: Leaving] |
07:03 | | Consul [~dmlandrum@Nightstar-2808.dsl.sfldmi.ameritech.net] has joined #code |
07:03 | | mode/#code [+o Consul] by ChanServ |
07:07 | <@Consul> | So, the computer spontaneously powered down, and it wouldn't boot again until I opened the case and pushed the sound card firmly into the mobo. |
07:07 | <@Consul> | Sounds like a seating issue. |
07:07 | < SmithKurosaki> | shit |
07:08 | <@Consul> | But I can't help but notice that, yet again, it happened during the playing of a flash video in the browser. |
07:09 | < SmithKurosaki> | odd |
07:09 | < SmithKurosaki> | FLASH IS THE CAUSE OF ALL COMPUTER ISSUES! RUN FOR YOU LIVES! |
07:09 | | Derakon is now known as Derakon[AFK] |
07:10 | < ToxicFrog> | Which is of course going to be hitting the soundcard... |
07:10 | <@Consul> | I can't help but think that the solution is going to be a new sound card. |
07:10 | < ToxicFrog> | I wonder if this was a seating issue all along, and linux was just dealing with it less robustly |
07:10 | < ToxicFrog> | (or, as you say, a problem with the card itself) |
07:11 | <@Consul> | Well, this is the first time in a long time the spontaneous shutdown symptom happened. |
07:11 | <@Consul> | And before, it did seem to be an issue with the card seating. |
07:12 | <@Consul> | Keep in mind I've been pulling and re-installing the card a lot the past few weeks. |
07:12 | < SmithKurosaki> | yay! we have a potential solution |
07:13 | <@Consul> | I wish I had $550 for the Firewire interface I really want. |
07:15 | <@Consul> | http://www.motu.com/products/motuaudio/ultralite-mk3/ |
07:16 | < ToxicFrog> | Nice |
07:17 | <@Consul> | I guess I just need to bite the bullet and apply at the local 7-11 or fast food joint. |
07:17 | < SmithKurosaki> | yea |
07:17 | <@Consul> | The scant consultancy work I get isn't really cutting it. |
07:17 | < SmithKurosaki> | :( |
07:18 | < ToxicFrog> | bbiab, rebooting into installed OS |
07:23 | <@Consul> | Oh well, I'm off to bed. Night, all. |
07:24 | < SmithKurosaki> | night |
07:26 | < ToxicFrog> | NX is still installed. |
07:26 | < ToxicFrog> | I just did a complete OS reinstall. |
07:26 | < ToxicFrog> | This shouldn't be possible o.O |
07:27 | < SmithKurosaki> | cool |
07:28 | <@McMartin> | NX? |
07:28 | < ToxicFrog> | The detacheable X11 proxy client. |
07:28 | < SmithKurosaki> | suspendable x session |
07:30 | <@McMartin> | Maybe it lives in /home? |
07:31 | < SmithKurosaki> | normally its /usr/ |
07:31 | < ToxicFrog> | ben@linux-hm36:~> type nxclient |
07:31 | < ToxicFrog> | nxclient is /usr/NX/bin/nxclient |
07:32 | < ToxicFrog> | Maybe, since I installed it on the liveCD, it installed it to the target system as well? |
07:32 | < SmithKurosaki> | that would be cool |
07:32 | < ToxicFrog> | ...actually, yeah, that must be it |
07:33 | < ToxicFrog> | Because it's 3.3.0-6, which is a more recent version than the old one |
07:33 | < SmithKurosaki> | ^5 |
08:45 | | You're now known as TheWatcher |
08:58 | | * McMartin goes to play a little WADF before crashing out. |
08:58 | | * McMartin blames VornBall for this. |
09:01 | | * Vornicus should show McM his dude. |
09:02 | <@Vornicus> | http://www.flickr.com/photos/7861878@N06/3606083167/ <--- dude. |
09:04 | <@Vornicus> | Apparently flicker strips the alpha layer. |
09:12 | | * ToxicFrog gnaws on OpenSUSE |
09:12 | < ToxicFrog> | My $PS1 on Orias works just fine. |
09:13 | < ToxicFrog> | My $PS1 on Leela doesn't, because, inexplicably, ~/.profile isn't getting read. |
09:13 | <@Vornicus> | PS1? |
09:14 | < ToxicFrog> | The variable that defines the prompt. |
09:14 | < ToxicFrog> | The difference between $, and: |
09:14 | < ToxicFrog> | ben@orias:/usr/src/lua |
09:14 | < ToxicFrog> | $ |
09:15 | < ToxicFrog> | ...with the user@host part a different color for each machine on the network, and the whole thing turning bold red when superuser. |
09:15 | | * ToxicFrog symlinks ~/.profile to ~/.bash_profile, and that fixes it |
09:15 | <@Vornicus> | Aha |
09:17 | < ToxicFrog> | (the color-coding has dramatically reduced the frequecy of incidents where I type commands intended for one machine into a shell on the other) |
09:18 | <@Vornicus> | And that's shiny. |
09:20 | < ToxicFrog> | Sadly, it doesn't really help with, say, manipulating the jedit or opera on one machine when I meant to target the other~ |
09:20 | | Vornicus is now known as Vornicus-Latens |
09:21 | | * ToxicFrog fiddles root shells a bit so that they're really, really obvious |
09:23 | <@TheWatcher> | (red background, yellow text? ¬¬) |
09:24 | < ToxicFrog> | (close. Red and white.) |
09:24 | <@Vornicus-Latens> | red and yellow striped background, black text! |
09:24 | <@Vornicus-Latens> | diagonal striped. |
09:24 | < Namegduf> | Flashing. |
09:25 | < Namegduf> | And sending bell characters every five seconds. |
09:25 | < ToxicFrog> | # |
09:26 | <@Vornicus-Latens> | Red root |
09:26 | <@Vornicus-Latens> | Idunno, I had to look at that fora bit to see its color. |
09:26 | < ToxicFrog> | root@orias:/root |
09:26 | < ToxicFrog> | # |
09:26 | < ToxicFrog> | There we go. |
09:26 | < ToxicFrog> | That's what it looks like. |
09:27 | < ToxicFrog> | Well, almost. |
09:27 | < ToxicFrog> | root@orias:/root |
09:27 | < ToxicFrog> | # |
09:27 | | * TheWatcher notes that you should get a machine called Reykjanes Ridge |
09:27 | < ToxicFrog> | That's more like it. |
09:27 | < ToxicFrog> | TW: why? |
09:28 | < ToxicFrog> | Anyways, it's now basically impossible to not realize you're in a root shell on either of these machines~ |
09:28 | <@TheWatcher> | Because when you had a root prompt on it, you could call the prompt RedRootOne@Reykjanes: ¬¬ </obscureref> |
09:28 | <@TheWatcher> | Ahem, I'll just be over here now |
09:29 | < ToxicFrog> | ("not realizing I'm in a root shell" happens much less frequently than "sending commands to the wrong computer", but as long as I'm fiddling with $PS1 I might as well do this) |
09:30 | | * Vornicus-Latens tries to remember the last time he actually used root as opposed to sudo. |
09:30 | <@Vornicus-Latens> | ...three years ago? |
09:31 | <@Vornicus-Latens> | but I said I was going to bed. |
09:31 | < ToxicFrog> | I mostly use sudo, but sometimes I'm doing a whole sequence of things as root, or need finer environmental control than sudo gives me. |
09:31 | | * Namegduf actually prefers root. |
09:32 | < Namegduf> | Typically because when I want to make changes, I want to make a bunch at once for a task, then log out. |
09:33 | < ToxicFrog> | It's situational; for sequences su is better, for single commands sudo is. |
09:33 | < ToxicFrog> | And a lot of the time I'm doing single commands - sudo zypper install foo, for example. |
09:36 | < ToxicFrog> | And yeah, sleep would probably be good. |
09:36 | < ToxicFrog> | 'night |
09:41 | <@TheWatcher> | Night TF |
09:48 | | D_Traka [Tetra-Memb@Nightstar-1311.dynamic.sbb.rs] has joined #code |
09:48 | < D_Traka> | http://www.myspace.com/tetrapakbeats |
09:48 | | D_Traka [Tetra-Memb@Nightstar-1311.dynamic.sbb.rs] has left #code [] |
09:48 | <@McMartin> | Note to channel: #code does not mean "obscure messages from the Illuminati disguised as spam." |
10:15 | < Namegduf> | McMartin: But what about writing programs to identify obscure messages from the Illuminati disguised as spam? |
10:55 | <@TheWatcher> | McM: ... it doesn't? |
10:55 | <@TheWatcher> | Well, bugger. |
11:05 | | UndeadAnno [AnnoDomini@Nightstar-29880.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
11:12 | | UndeadAnno [AnnoDomini@Nightstar-28003.neoplus.adsl.tpnet.pl] has joined #Code |
11:12 | | mode/#code [+o UndeadAnno] by ChanServ |
11:53 | | gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code |
11:53 | | mode/#code [+o gnolam] by ChanServ |
12:06 | | Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has quit [Quit: Rhamphoryncus] |
13:04 | | * gnolam curses Intel chipsets. |
13:04 | | * simontwo curses along |
13:11 | | * Alek writes in curses. |
13:11 | | * Alek writes Intel chipsets in curses. |
13:13 | | * UndeadAnno writes processors in VHDL. |
13:15 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code |
13:15 | | mode/#code [+o Attilla] by ChanServ |
15:45 | | simontwo [~simon@78.129.201.ns-20882] has quit [Ping Timeout] |
15:45 | < SmithKurosaki> | AMD! |
15:51 | | edu_30 [~a@Nightstar-1390.dsl.telepac.pt] has joined #code |
15:54 | | edu_30 [~a@Nightstar-1390.dsl.telepac.pt] has quit [Quit: ] |
16:09 | | Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code |
16:10 | | Syloqs_AFH is now known as Syloqs-AFH |
16:38 | < ToxicFrog> | SK: not really any better from the programmer's perspective; they have to maintain binary compatibility with Intel, so the instruction set is still hellish. |
16:38 | < ToxicFrog> | RISC for life, yo. |
16:39 | < SmithKurosaki> | right |
16:40 | | Derakon[AFK] is now known as Derakon |
16:40 | < SmithKurosaki> | ill remember one of these days |
17:38 | < jerith> | 18:37 <@russell> @restmethod() |
17:38 | < jerith> | 18:37 <@russell> @logged |
17:38 | < jerith> | 18:37 <@russell> def update(self, key): |
17:38 | < jerith> | 18:37 <@russell> """TODO: """ |
17:38 | < jerith> | 18:37 <@russell> return super(BaseController, self)._do_update(key) |
17:38 | < jerith> | 18:37 <@russell> quite. |
17:38 | < jerith> | And on that note, I'm off to play music for a bit. |
17:48 | < ToxicFrog> | Hmm. |
17:48 | < ToxicFrog> | I think before I can really do more stuff, I need to write the lc subsystem. |
17:48 | < ToxicFrog> | That's going to be fun. |
17:50 | < SmithKurosaki> | lc sub? |
17:53 | < ToxicFrog> | The localization system. |
17:53 | < SmithKurosaki> | fun |
17:53 | < ToxicFrog> | So that, say, client.event.say can call lc.message { type = "say", who = evt.who, text = evt.text } |
17:54 | < ToxicFrog> | And get an appropriate output, rather than hardcoding the strings into the event handling code. |
17:54 | < SmithKurosaki> | ahh. good luck with that |
18:43 | | * Chalain makes a sci-fi VRRRMMMM noise as he delurks. |
18:43 | <@Chalain> | Hey, any Erlangers in the house? |
18:51 | <@gnolam> | jerith just left. |
18:52 | < ToxicFrog> | I've used it a bit, mostly to crush my Distributed Systems source beneath my armoured heels. |
19:02 | <@Chalain> | ah |
19:02 | <@Chalain> | Well, this may be soluble by noobs, for I am Utter Noob |
19:02 | <@Chalain> | srsly, I've been using Erlang for, oh, 20 minutes. |
19:02 | <@Chalain> | So |
19:03 | <@Chalain> | Say you have a struct like {person, {name, dave}, {weight, 237}} |
19:03 | <@Chalain> | You can select the name into Name with this mostly-anonymous pattern matcher: |
19:03 | <@Chalain> | {_, {_, Name}, {_, _}} = Person. |
19:04 | <@Chalain> | My question is, is there a way to evaluate Name without actually assigning it to a variable there? |
19:04 | <@Chalain> | E.g. I want to say the rough equivalent of "Person[0][1]" |
19:06 | < ToxicFrog> | I'm afraid I have no idea. |
19:08 | <@Chalain> | Yay! Me either. :-) |
19:08 | <@Chalain> | I'm sure I could write a function for it, assuming that when I learn how to write functions they will be called functions. If not, whatever the hell these wackos call them. |
19:08 | <@Chalain> | I tell you what, this book is pissing me off. |
19:09 | <@Chalain> | "When we want to say A holds the value 42, we write A |-> 42." WTF? SRSLY, WTF? A shoots an arrow at 42? You can't just fricking use an = sign like everybody else in the whole of creation? |
19:10 | <@Chalain> | (The sad thing is, now that I get Erlang's messed up "pattern match" + "variables don't" mentality, A -> 42 totally makes sense. It means A matches 42. But the fact that I have already been brain damaged by this language enough to understand it's fscked-up jibberjabber is a digression.) |
19:16 | <@TheWatcher> | ... and why do people want to learn this again? ¬¬ |
19:17 | <@Consul> | Erlang has some really powerful capabilities for hard-real-time systems, if you need them. |
19:18 | | crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Ping Timeout] |
19:18 | <@Consul> | You can upgrade components of a critical program in real-time without bringing a system or service down, for instance. |
19:18 | <@Consul> | Just swap out the code, and it keeps working. |
19:21 | <@TheWatcher> | And in other news: perlstats v1.0 - http://forums.starforge.co.uk/viewtopic.php?f=18&t=71 |
19:23 | <@Derakon> | Hm. You have a misaligned colon in the sample output for the "Av. functions per file" line. |
19:23 | <@TheWatcher> | Ah, so I do, thanks |
19:24 | <@Chalain> | TheWatcher: Yeah, Consul sums it up nicely. People use Erlang because it can do some seriously crazy stuff. Then they look at the syntax and realize it *IS* seriously crazy stuff.... |
19:25 | <@Consul> | Erlang runs most of the telephone switches in Europe. |
19:25 | <@TheWatcher> | That explains a lot, then ¬¬ |
19:25 | <@TheWatcher> | Dera: actually, looks like that's an artifact of phpbb3, the Real Thing outputs properly. |
19:26 | <@Consul> | Well, it runs all the ones made by Ericsson, anyway. |
19:26 | <@Chalain> | Surprises me exactly not all. In fact, the library bundle for erlang is called OTP, the "Open Telecom Protocol". The book explains this, then immediately says "but it's not just for Telecom anymore." |
19:26 | <@Derakon> | TW: Yay PHPBB3~! |
19:27 | <@TheWatcher> | Dera: yeah |
19:27 | | crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code |
19:38 | | * TheWatcher determines that his recipe webapp is actually 44% comment |
19:39 | <@Chalain> | TheWatcher: Nice! (Given 2 assumptions: it's in PHP and the comments are good comments.) |
19:39 | <@TheWatcher> | Perl |
19:39 | <@Chalain> | "Documentation is like sex. When it's good, it's REALLY good. And when it's bad, it's still pretty good." |
19:39 | <@Chalain> | Oooh. Okay, even better, then. |
19:39 | | * TheWatcher only does PHP under extreme protest |
19:40 | <@Chalain> | In Ruby, excessive comments are considered a code smell, but that's because you can code at the level of intent. PHP (and Perl) you often have to code at the level of implementation, so docco of intent is blessed. |
19:40 | <@Chalain> | Good on yez, then :-) |
19:41 | | * Chalain took a 30% pay cut to go work at a Rails shop so that he would never ever have to work in PHP again. |
20:11 | | * UndeadAnno wants to code something in Java, but using this here box. The one without massive hard drives, and without an IDE. Tries to remember how to do this. |
20:11 | | Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Ping Timeout] |
20:22 | | * UndeadAnno refreshes his memory. :D |
20:32 | <@TheWatcher> | emacs! ;) |
20:33 | <@UndeadAnno> | Notepad2. Not the current version, though, because it sucks as I cannot get a good white-on-black theme configured. |
20:35 | <@UndeadAnno> | Hmm. Can Java do cyrillics without undue hassle? |
20:37 | < ToxicFrog> | JEdit! |
20:37 | < ToxicFrog> | Also, \o/, replacement hard drive has arrived |
20:38 | < ToxicFrog> | $ cat /proc/mdstat |
20:38 | < ToxicFrog> | Personalities : [raid6] [raid5] [raid4] [raid0] [linear] [raid1] |
20:38 | < ToxicFrog> | md0 : active raid5 sdd2[4] sdb2[0] sda2[3] sdc2[2] |
20:38 | < ToxicFrog> | 2194703616 blocks level 5, 64k chunk, algorithm 2 [4/3] [U_UU] |
20:38 | < ToxicFrog> | [===>.................] recovery = 17.8% (130453632/731567872) finish=228.4min speed=43845K/sec |
20:39 | <@TheWatcher> | Woot |
20:40 | <@gnolam> | UndeadAnno: Yes. |
20:41 | <@gnolam> | You can even use Unicode /identifiers/ in Java if you're feeling adventurous. |
20:42 | <@UndeadAnno> | What're those? |
20:42 | <@UndeadAnno> | Oh, wait, you mean I can use Unicode characters in the CODE? |
20:43 | <@gnolam> | Yes. |
20:45 | <@UndeadAnno> | That's pretty cool. |
20:46 | | * UndeadAnno ponders sometimes writing everything but keywords in Russian and handing in an assignment. |
20:47 | < ToxicFrog> | It is. |
20:47 | <@gnolam> | Extra points for writing everything except keywords in Russian /mat/. |
20:47 | < ToxicFrog> | Lua has something similar in theory, but in practice it's functionally equivalent to not having it ;.; |
20:48 | <@UndeadAnno> | gnolam: Mat? |
20:48 | | * ToxicFrog wants his functions named with greek letters, dammit |
20:49 | <@gnolam> | http://en.wikipedia.org/wiki/Russian_mat |
20:52 | <@UndeadAnno> | Oh, so it's like vulgar Polish. |
21:00 | <@UndeadAnno> | What are the details of Unicode use here? |
21:00 | <@UndeadAnno> | It doesn't seem to be working for me. |
21:02 | <@UndeadAnno> | Before you crucify me for "doesn't work", however, let me explain. Currently, the code is set to UTF-8, but if I convert it to Unicode (no change in display in the editor), it fails to compile, citing pretty much every character as illegal or something. |
21:04 | < ToxicFrog> | What happens if you just leave it as UTF-8 but type extended characters? |
21:04 | <@UndeadAnno> | As strings? It works, but fails to display them correctly - I get garbage. |
21:06 | <@UndeadAnno> | BBL, getting my hair cut. |
21:09 | <@McMartin> | UndeadAnno: What does your editor think is "Unicode"? |
21:09 | <@McMartin> | If it's making it UTF16 in the editor, for instance, most compilers will freak. |
21:10 | <@McMartin> | If you're trying to emit Unicode in a Windows console, you're basically out of luck. |
21:11 | <@McMartin> | Speaking as someone who's actually managed it, manually handling Unicode is a sucker's game, and you're nearly always better off relying on someone else's library to deal with. |
21:11 | <@McMartin> | In Java, for instance, you can just hand it Strings with extended characters, and the GUI does what it needs to; you use the encoding arguments in String constructors to get them from the underlying bytestreams. |
21:12 | <@McMartin> | Qt has similar mechanisms with its QString classes. |
21:24 | | * Derakon eyes his environmental effects. |
21:24 | <@Derakon> | An envEffect is a region of the map that has slightly different physics or display rules or something. Like water, falling rain, lava, etc. |
21:24 | <@Derakon> | I have three functions I want to implement for them: enter(), exit(), and traverse(). |
21:25 | <@Derakon> | The former gets called when an object enters the effect. The latter when they move through it. |
21:25 | <@Derakon> | And exit() of course when they leave. |
21:25 | <@Derakon> | Right now effects are stored on a grid the same size as the terrain grid. |
21:26 | <@Derakon> | I was using a dict of objects that are currently in the effect to deal with enter() and traverse()... |
21:26 | <@Derakon> | But that doesn't help with exit(). I need some way to recognize when the object leaves the effect. |
21:27 | <@Derakon> | I think what I actually need is to recognize border cells for the effects...but that's a royal pain. >.< |
21:29 | | * UndeadAnno returns. |
21:29 | <@UndeadAnno> | http://pastie.org/504984 <- This is what I'm getting from javac when trying to compile Unicode code. |
21:29 | <@Derakon> | Anno: at a guess, javac is interpreting the files as ASCII instead of two-byte Unicode. |
21:30 | <@UndeadAnno> | McMartin: I'll look into those Strings, then. |
21:30 | <@Derakon> | No idea how to tell it the file is Unicode though. |
21:31 | | * UndeadAnno tries the -encoding thingie. |
21:33 | <@UndeadAnno> | It is super-effective! |
21:33 | <@Derakon> | Awesome. |
21:34 | <@UndeadAnno> | javac -encoding Unicode -classpath "F:\java quiz" Quiz.java |
21:40 | | * UndeadAnno needs refreshment. When doing constructors in Java, I go "public ClassName(parameters...) {}"? |
21:43 | | Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has joined #code |
21:49 | < jerith> | Chalain: element(2, element(2, Person)) |
21:49 | < jerith> | It's verbose, but you very seldom need that. |
21:50 | < jerith> | Also, _ will match any single term: {_, {name, Name}, _} = Person |
21:50 | < jerith> | (I put the 'name' in there as a sanity check.) |
21:52 | | * UndeadAnno goes to bathe, but before that - a question. I have a class that holds a Question and an Answer, with appropriate methods for retrieval and checking things. Would a List<MyClass> work for my purpose if I wanted to load it up from a text file and then randomly access it? |
21:53 | < jerith> | Assuming the List<> interface gives you what you need, sure. |
21:55 | < jerith> | Chalain: Also, the syntax comes from the early days, when dinosaurs roamed the limitless plains of Ericsson and Erlang was but a concurrency library for Prolog. |
22:00 | | devgrator [~bot@Nightstar-28462.ags.bellsouth.net] has joined #code |
22:00 | | devgrator [~bot@Nightstar-28462.ags.bellsouth.net] has left #code [] |
22:03 | <@Derakon> | Ahh, halfway done documenting classes. ¬.¬ |
22:04 | <@Derakon> | Animation, Block, Camera, EnvEffect, Line, Map, Polygon, Prop, QuadTree, Seed, and Sprite are all documented now. |
22:06 | < ToxicFrog> | message "say" '$capfirst:$who $verb:say,says, "$text"' |
22:06 | < ToxicFrog> | message "join" '$capfirst:$who $verb:have,has joined the game.' |
22:11 | | * gnolam ponders line triangulation. |
22:14 | < ToxicFrog> | Writing all of these will be a pain, but it's unambiguously The Right Thing ;.; |
22:29 | <@Vornicus-Latens> | "line triangulation"? |
22:31 | <@Vornicus-Latens> | ToxicFrog: Are you using gettext or whatever the gnu thing is? |
22:33 | <@UndeadAnno> | Which List would be best, though? There's quite a few types, for which I don't know what the differences are. |
22:33 | <@UndeadAnno> | And I would like to avoid wasting two days reading through them. :P |
22:36 | <@Vornicus-Latens> | ArrayList is best for random access. |
22:36 | <@UndeadAnno> | Thanks. |
22:38 | <@McMartin> | LinkedList is best for gradual expansion. |
22:38 | <@McMartin> | Those are the only two list classes that matter. |
22:38 | <@UndeadAnno> | I want to a) load it up from a file, b) roll a die and pick which question is next. |
22:38 | <@McMartin> | But you're only loading once? |
22:39 | <@McMartin> | ArrayList, all the way. |
22:39 | <@UndeadAnno> | I guess re-loading won't hurt. |
22:39 | <@McMartin> | ArrayList is expensive for inserting stuff in the middle, basically. |
22:39 | <@McMartin> | Because you have to copy over everything after it to make room. |
22:39 | <@UndeadAnno> | That won't happen. |
22:40 | <@McMartin> | Whereas in a LinkedList, this is a matter of three assignments. |
22:40 | <@McMartin> | ArrayList: Fast Access, Acceptable append, Slow Insert. LinkedList: Fast sequential access, Slow random access, Fast insert, append, prepend. |
22:53 | < ToxicFrog> | Vornicus-Latens: I'm not |
22:54 | < ToxicFrog> | This was more "hey it would be totally awesome to not have the strings scattered randomly through the code like they are now" |
22:57 | | * ToxicFrog examines gettext |
23:06 | < ToxicFrog> | Hmm. |
23:07 | < ToxicFrog> | It looks easy enough to bind, apart from xgettext. |
23:08 | < ToxicFrog> | (it is also clearly written for codebases that have hardcoded strings scattered throughout the source~) |
23:10 | < ToxicFrog> | Woot, one hour left on the rebuild |
23:10 | <@gnolam> | Vornicus: Yes. I want to go back to working on the wargame project, which uses a baroque amount of lines. |
23:11 | <@gnolam> | Unfortunately, lines aren't accelerated on modern consumer cards, it seems. :P |
23:11 | <@gnolam> | Which means that to get a usable speed out of it, I need to convert the lines into polygonal primitives. |
23:12 | <@gnolam> | And that, as far as I can tell, is going to be an utter PITA. |
23:16 | <@gnolam> | On the off chance that they've just done Something Incredibly Stupid in their driver - which, being ATI, is SOP - and just fubared the actual drawing and not the rasterization step, I'm going to try a pass-through fragment shader first though. |
23:16 | <@UndeadAnno> | Yay! Basic functionality achieved. Now to make it look non-crap. |
23:16 | <@gnolam> | But I'm not hopeful. |
23:19 | <@gnolam> | And the more I think about it, the less practical the vectorization idea seems. :-/ |
23:30 | | * Derakon deletes managers.py, having split out some of its classes to separate files and obviated the need for the others. |
23:31 | | You're now known as TheWatcher[T-2] |
23:32 | <@Derakon> | Still remaining undocumented: Player, TreeNode, Zone, Region. And those last two are really just containers for data. |
23:35 | | You're now known as TheWatcher[zZzZ] |
23:35 | <@Derakon> | Night, TW. |
23:37 | | * McMartin consumes espresso chocolate chip cookie |
23:37 | | * McMartin crackles with unholy power |
23:37 | <@Derakon> | Sugar and caffeine! |
23:38 | <@McMartin> | I think I'm going to be cracking my traditional 150mg today. |
23:40 | <@UndeadAnno> | Yay. I made something: http://www.mediafire.com/?0l5omqmmujd |
23:42 | <@UndeadAnno> | It doesn't yet handle what I intend it for, but it can ask questions! |
23:42 | <@McMartin> | That's a start |
23:52 | | * UndeadAnno checks if any of his editors manages to display cyrillics. |
23:54 | <@UndeadAnno> | MDE, OO, and Opera can. Notepad2, Wordpad and my application can't. |
23:57 | | * UndeadAnno ponders. How did one set encoding in a HTML document again? |
23:59 | < ToxicFrog> | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
23:59 | <@UndeadAnno> | charset=Unicode doesn't seem to work. |
23:59 | <@UndeadAnno> | Thanks, though. |
--- Log closed Tue Jun 09 00:00:06 2009 |