code logs -> 2010 -> Tue, 09 Mar 2010< code.20100308.log - code.20100310.log >
--- Log opened Tue Mar 09 00:00:23 2010
00:06 Derakon [Derakon@Nightstar-1ffd02e6.ucsf.edu] has quit [[NS] Quit: Leaving]
00:14 You're now known as TheWatcher[T-2]
00:16 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
00:29 You're now known as TheWatcher[zZzZ]
00:33
< gnolam>
Gah.
00:33
< gnolam>
I was going to implement dynamic tone mapping today, but I got stuck playing SteamBirds for... 4 hours instead.
00:34
< gnolam>
Avoid that game at all costs. :P
00:48 pvc [omega@Nightstar-cf22507d.co.comcast.net] has quit [Ping timeout: 121 seconds]
01:18 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection reset by peer]
01:22 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
01:23 Syloqs_AFH is now known as Syloqs-AFH
01:32 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
01:57 Attilla [Attilla@FBC920.642D35.8E1B10.5E8CBE] has quit [Connection reset by peer]
02:07 Derakon[AFK] is now known as Derakon
02:09 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
04:11 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
06:01 Vornotron [vorn@ServerAdministrator.Nightstar.Net] has joined #code
06:02 Netsplit *.net <-> *.split quits: Orthia, @Vornicus, @Kazriko, GeekSoldier, Taki^
06:03 Vornotron is now known as Vornicus
06:03 Netsplit over, joins: Taki^, Orthia
--- Log closed Tue Mar 09 06:05:07 2010
--- Log opened Tue Mar 09 06:05:25 2010
06:05 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
06:05 Irssi: #code: Total of 6 nicks [1 ops, 0 halfops, 0 voices, 5 normal]
06:06 Irssi: Join to #code was synced in 50 secs
06:07 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
06:07 Orthia [orthianz@Nightstar-aa72f2c9.xnet.co.nz] has joined #code
06:07 Taki^ [Meh@Nightstar-39d785ef.consolidated.net] has joined #code
06:07 Tarinaky [Tarinaky@Nightstar-d7a95e87.adsl.virginmedia.net] has joined #code
06:07 Bobsentme [Bobsentme@Nightstar-79f8b1cd.livnmi.sbcglobal.net] has joined #code
06:07 SmithKurosaki [Smith@Nightstar-1a7d4505.dsl.teksavvy.com] has joined #code
06:07 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
06:07 AnnoDomini [annodomini@Nightstar-8cf5f374.adsl.tpnet.pl] has joined #code
06:07 jerith [jerith@ServerAdministrator.Nightstar.Net] has joined #code
06:07 Namegduf [namegduf@Nightstar-5c10d129.beshir.org] has joined #code
06:07 mode/#code [+qo Reiver Reiver] by ChanServ
06:10 DiceBot [Reiver@Nightstar-019bfb55.xnet.co.nz] has joined #code
06:10 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
06:10 mode/#code [+o ToxicFrog] by Reiver
06:11 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
06:12 Syloqs_AFH is now known as Syloqs-AFH
06:17 Vornicus is now known as Vornicus-Latens
07:01
< Tarinaky>
... You're kidding me.
07:01
< Tarinaky>
Why does svn have quite possibly the shortest manual page ever?
07:01
< Tarinaky>
That provides no manual as such :/
07:03 You're now known as TheWatcher
07:19
< Rhamphoryncus>
Tarinaky: same reason git doesn't have normal output for --help?
07:21 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
08:14 You're now known as TheWatcher[afk]
09:03 NSJavaGuest-8919 [nsJChat@Nightstar-07158cc5.dynamic.acsalaska.net] has joined #code
09:14 NSJavaGuest-8919 is now known as vallen
09:15 vallen [nsJChat@Nightstar-07158cc5.dynamic.acsalaska.net] has left #code []
09:55 You're now known as TheWatcher
09:55 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
10:24 You're now known as TheWatcher[flail]
10:31 Tarinaky [Tarinaky@Nightstar-d7a95e87.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
10:45 Tarinaky [Tarinaky@Nightstar-bb7f4b6e.adsl.virginmedia.net] has joined #code
10:57 Attilla [Attilla@FBC920.A5C359.1AD11A.8AE8B2] has joined #code
10:57 mode/#code [+o Attilla] by Reiver
12:10 You're now known as TheWatcher
12:51 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
14:23 Tarinaky [Tarinaky@Nightstar-bb7f4b6e.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
14:37 Tarinaky [Tarinaky@Nightstar-985e55f2.adsl.virginmedia.net] has joined #code
14:49
<@ToxicFrog>
Tarinaky: svn,like most version control systems, is divided into lots of subcommands
14:49
<@ToxicFrog>
The 'svn' man page should, I think, point you at the man pages for those
15:00 You're now known as TheWatcher[afk]
15:00
< gnolam>
Under normal operation you basically only use "svn add [file]", "svn update" and "svn commit -m [message]" though.
15:19 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
15:31
< Bobsentme>
Dear Makers of JSP application from hell:
15:32
< Bobsentme>
I will find you. You can run to the ends of the earth and moon, but I will find you. And when I do, I will personally slice and dice you with a set of knives that have your horrible code etched onto them.
15:32
< Bobsentme>
That is all.
15:32
< Bobsentme>
-Bob.
15:56 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
16:26 Vornicus-Latens is now known as Vornicus
16:27 Attilla [Attilla@FBC920.A5C359.1AD11A.8AE8B2] has quit [Ping timeout: 121 seconds]
16:30 Attilla [Attilla@FBC920.174237.E2DF5D.3AFA0A] has joined #code
16:30 mode/#code [+o Attilla] by Reiver
17:27 Orthia [orthianz@Nightstar-aa72f2c9.xnet.co.nz] has quit [Client closed the connection]
18:04 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has quit [Ping timeout: 121 seconds]
18:16 GeekSoldier [Rob@Nightstar-e86e3e0d.ip.cablemo.net] has joined #code
18:47 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
19:02 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
19:03
< celticminstrel>
Hmm. Is it possible to have a terminal-like application using Unicode characters?
19:21
<@McMartin>
On Windows, link your console app in Unicode mode, use LPCTSTRs.
19:31
< celticminstrel>
I was hoping for portable. The program in question is actually a Windows console application using codepage 437 characters.
19:49
< celticminstrel>
And I want to port it to something that works on Mac. Is there no simple way to do this?
19:50
< celticminstrel>
I was going to try curses, but its alternate character set is extremely limited...
20:02
<@McMartin>
Handling unicode is the terminal's job, not yours. =/
20:05 Kazriko [kaz@Nightstar-e09690fa.client.bresnan.net] has joined #code
20:05 mode/#code [+o Kazriko] by Reiver
20:05
< celticminstrel>
Huh?
20:06
<@McMartin>
On Mac, as with all Unix-like terminals, the code page is set by the terminal emulator, not by the application running inside it.
20:06
<@McMartin>
In the simplest case, just emit UTF-8 in the first place and it'll probably Just Work on a Mac.
20:07
< celticminstrel>
Hm. I could try that.
20:07
< celticminstrel>
I remember some mention in this room of the Ncurses wide-character support lacking in some way.
20:08
<@McMartin>
Yes
20:08
<@McMartin>
It doesn't really have it.
20:08
<@McMartin>
But you can pretend by emitting it pre-formatted.
20:08
< celticminstrel>
What does that mean?
20:08
<@McMartin>
You will in all cases probably have to call setlocale(LC_ALL, "") first.
20:10
<@McMartin>
As in, writing out a UTF-8 byte stream with putch
20:10
<@McMartin>
Instead of having some opaque way of representing Unicode strings
20:14
< celticminstrel>
So, for two-byte characters I would need to call putch twice. And colours and stuff would still work?
20:16
<@McMartin>
Seems to have.
20:16
<@McMartin>
(nfrotz does this)
20:16 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
20:31
< celticminstrel>
I'm guessing it's not a good idea to use cout with ncurses?
20:33
<@McMartin>
s/cout/anything but the curses printw-style commands/
20:34
< celticminstrel>
...printw-style commands? You mean addstr?
20:34
< celticminstrel>
(and its relatives)
20:34
< celticminstrel>
...wait.
20:34
< celticminstrel>
Never mind, I guess.
20:35
<@McMartin>
That's a relative
20:35
<@McMartin>
Basically, if you have a curses window around, only use curses to do output. Otherwise, your output will not work right.
20:35
< celticminstrel>
It worked fine when I originally did it with conio.
20:36
<@McMartin>
conio isn't maintaining virtual cursors outside of the terminal itself, though.
20:36
< celticminstrel>
Ah.
20:37
< celticminstrel>
I also recall curses giving an error if I try to draw past the end of the screen, whereas conio just scrolled the screen up.
20:51
< celticminstrel>
Um, what? How does "cSpace=='\xE2' " generate a "comparison always false" warning?
20:51
< celticminstrel>
(cSpace is an unsigned char.)
20:52
< celticminstrel>
...unless it somehow thinks it is a multichar constant.
20:52 SmithKurosaki [Smith@Nightstar-1a7d4505.dsl.teksavvy.com] has quit [Client closed the connection]
20:54 SmithKurosaki [Smith@Nightstar-1a7d4505.dsl.teksavvy.com] has joined #code
20:55
< celticminstrel>
Does curses have the expected behaviour upon outputting a newline?
21:02
<@McMartin>
Try it and see, I guess
21:03
< celticminstrel>
'kay
21:14 Zed__ [Zed@Nightstar-d0088b95.or.comcast.net] has quit [Client closed the connection]
21:14 Zed__ [Zed@Nightstar-d0088b95.or.comcast.net] has joined #code
21:16
< celticminstrel>
Hm. I wonder if it'd be simpler to convert from the Unicode code point to UTF-8, or simply use UTF-8 to begin with.
21:27 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
21:37
< celticminstrel>
Uh, why does swprintf have a size_t argument? :/
21:38 You're now known as TheWatcher
21:43
< celticminstrel>
Ah. To prevent overflow.
21:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
21:53 mode/#code [+o Vornicus] by Reiver
21:54 * gnolam hugs science.
21:57
< gnolam>
(I'm about to argue against character-by-character printing in RPGs, and I just realized I have actual scientific arguments (messes with the human reading process) complete with references to back me up)
21:57
< gnolam>
I knew that cognitive psychology course was going to come in handy one day!
21:59
< Namegduf>
Haha, that's awesome.
22:00
<@Vornicus>
I'm pretty sure the original reason is that there wasn't enough power to handle extents for non-monospaced fonts on old old old consoles.
22:05
<@Vornicus>
Which meant that for programs that wanted it -- early RPGs come to mind because proportional fonts tend to be easier to take in large amounts of text with -- you'd /have/ to do it character by character or you wouldn't be able to get the first words in for a rather long time.
22:15
< celticminstrel>
Huh? What are we talking about?
22:16 Orthia [orthianz@Nightstar-993ef087.xnet.co.nz] has joined #code
22:16
<@Vornicus>
how, in many RPGs, the words come in letter by letter.
22:18
< celticminstrel>
Ah. I think I see what you mean now.
22:19
< Tarinaky>
There is one advantage though.
22:19
< Tarinaky>
It makes it harder to click past it by accident.
22:20
< Tarinaky>
But that could probably be achieved with a 0.5 second pause before it starts registering input again.
22:20
<@ToxicFrog>
Tarinaky: so include a summary button like in FF12.
22:20
< gnolam>
Instead, you pay no attention to /any/ of the text out of frustration.
22:20
< Tarinaky>
Long enough for someone to go "Oh shit. I wanted to read that."
22:20
< gnolam>
The correct solution is conversation logs.
22:20
<@ToxicFrog>
Also, if you develop a game and put pauses in it like that I will hunt you down and choke you to death with your own game script
22:20
< Tarinaky>
ToxicFrog: I know.
22:20
< celticminstrel>
...wait. There's seriously no wifstream::open(wchar_t*) ? :O
22:21
< celticminstrel>
That doesn't make any sense!
22:22 AbuDhabi [annodomini@Nightstar-8cf5f374.adsl.tpnet.pl] has joined #code
22:25 AnnoDomini [annodomini@Nightstar-8cf5f374.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
22:25
< celticminstrel>
Why wouldn't wifstream have a an open function that takes wchar_t* !?
22:30
< gnolam>
Hee.
22:30
< Tarinaky>
I'm guessing when it was written wchar file systems were rare?
22:31
< celticminstrel>
Well, it's actually a typedef of basic_ifstream<wchar_t>... and I'm pretty sure the templated version was developed due to the introduction of wchar_t or somesuch.
22:31
< celticminstrel>
The whole purpose of wifstream is to handle wide character streams.
22:32
< celticminstrel>
But I guess the open function's parameter type is not the template parameter.
22:34
< gnolam>
I'm watching a presentation video for a robot a friend is working on. Among other things, it does object recognition.
22:34
< gnolam>
In the video, it has three objects on a table in front of it - a matchbox, a can of coca-cola and a toy police car. They also have a voice synthesizer hooked up to it giving status updates.
22:35
< gnolam>
After identifying the different objects, it then sees if it can locate them again.
22:36
< gnolam>
Voice: "Target selected. Examining target. Coke found."
22:36
< gnolam>
Voice: "Looking for police car..."
22:37
< gnolam>
They've apparently accidentally made the world's first coke-head robot. :D
22:37
< celticminstrel>
Uh... "format argument not a string type"? It's wchar_t*, how is that not a string type?
22:38
<@McMartin>
You need the wide character version of printf, most likely.
22:39
< celticminstrel>
No, I'm trying to tell GCC that this function is a printf-style function.
22:40
< celticminstrel>
It's basically wprintf, but using curses output instead of standard output.
22:41
< gnolam>
So what format is the format string in?
22:41
< celticminstrel>
int putstr(const wchar_t*,...) __attribute__(( format(printf,1,2) ));
22:41
< celticminstrel>
There's the prototype.
22:41
< gnolam>
And are you passing a wchar literal?
22:42
< celticminstrel>
Yeah. But the error occurs at the prototype.
22:43
<@McMartin>
Can you make it be format(wprintf)?
22:44
< celticminstrel>
Hm. Let me try that.
22:44
< celticminstrel>
Nope. "'wprintf' is an unrecognized format function type"
22:46
<@McMartin>
I haven't messed much with gcc attributes here.
22:47
<@McMartin>
I would consult The Great Gizoogle.
22:47
< celticminstrel>
I guess the worst case is that the compiler simply can't type-check the format arguments.
22:56 MyCatVerbs [mycatverbs@Nightstar-58acb782.cable.virginmedia.com] has joined #code
22:56 mode/#code [+o MyCatVerbs] by Reiver
23:01 AbuDhabi [annodomini@Nightstar-8cf5f374.adsl.tpnet.pl] has quit [[NS] Quit: SWEEP.]
23:09
< celticminstrel>
Okay, nearly all the errors and warnings are gone; now I just need to determine how to convert a wchar_t to UTF-8 for output with addch...
23:39 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
23:49
< celticminstrel>
...where the kumquat did temp.o come from?
23:49
< celticminstrel>
Oh. Never mind.
23:57 You're now known as TheWatcher[T-2]
23:58
< celticminstrel>
And yay! It builds!
--- Log closed Wed Mar 10 00:00:24 2010
code logs -> 2010 -> Tue, 09 Mar 2010< code.20100308.log - code.20100310.log >