--- Log opened Thu Jul 31 00:00:01 2008 |
00:07 | | Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout] |
00:13 | | Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code |
00:13 | | mode/#code [+o Reiver] by ChanServ |
00:35 | | Shel2476 [~Shel2476@Nightstar-9845.knology.net] has joined #code |
01:15 | < Consul> | Just by way of confirmation, I can make arrays of strings in the usual way in C++, right? string str[25]; |
01:15 | | * Vornicus is always scared of strings in C++. Isn't sure. |
01:17 | < Consul> | I'm getting conflicting info out in the interblags. |
01:25 | < Consul> | I'm learning a lot about templates, that's for sure. |
02:08 | | Shel2476 [~Shel2476@Nightstar-9845.knology.net] has left #code [] |
02:12 | | Thaqui [~Thaqui@Nightstar-13764.jetstream.xtra.co.nz] has joined #code |
02:12 | | mode/#code [+o Thaqui] by ChanServ |
02:27 | <@McMartin> | Consul: I believe so, but if you're going to use strings, you may as well use vectors too. |
02:30 | < Consul> | It's just for storage of user tags for synth/effect presets. |
02:31 | < Consul> | I've switched to an STL list. |
02:31 | <@McMartin> | Mm. vectors and lists are similar, but if you're planning on subscripting the vector will be much faster |
02:31 | < Consul> | Except now, I need to figure out how to delete an item from the list. |
02:31 | <@McMartin> | x[i] on a list is O(n) |
02:31 | <@McMartin> | Oh, if deletion happens to you're hosed~ |
02:31 | <@McMartin> | I believe there's a remove() op though |
02:32 | < Consul> | I'm seeing stuff about passing a pointer of a list iterator to a function, and I find it confusing. |
02:38 | < Consul> | Man, why can't we just have a list.delete() function? |
02:38 | <@McMartin> | I'm kind of surprised there isn't one. |
02:38 | <@McMartin> | It would probably be remove() though. |
02:38 | < Consul> | I finally found this: |
02:38 | < Consul> | Oh, I can't send a URL |
02:39 | < Shoukanjuu> | Someone OP him o: |
02:40 | < Consul> | What the heck? There IS a list.remove() |
02:41 | < Consul> | I just needed to find the right reference site. |
02:45 | < Consul> | Well, hopefully, that problem's solve. Thanks! |
02:46 | < Consul> | +d |
03:08 | <@McMartin> | Hm. OCaml Strings are distressingly stateful. |
03:09 | | Attilla [~The.Attil@92.20.0.ns-26568] has quit [Quit: <Insert Humorous and/or serious exit message here>] |
03:10 | < Consul> | Okay, how do I convert a C++ string to a C string so I can open a file? I've done it before, and I know there's a function... |
03:10 | <@McMartin> | .c_str(), I believe. |
03:10 | < Consul> | so: str.c_str() |
03:10 | <@McMartin> | It might be to_c_str or as_c_str or something. |
03:10 | <@McMartin> | Yeah. |
03:10 | <@McMartin> | But it's a method |
03:11 | | ReivUni [~82d94c4d@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #Code |
03:11 | < Consul> | You got it right. |
03:11 | < Consul> | Damn, you're good. |
03:13 | < Consul> | It's c_str(), BTW :-) |
03:19 | < Consul> | Now I get to decide on my file format. |
03:20 | < Shoukanjuu> | McMartin seems to know a lot. |
03:21 | < Shoukanjuu> | In fact, I think he has answered or had something to add to the answer of every question I've asked o.o; |
03:22 | < ReivUni> | McM is exceedingly competent. |
03:22 | < Shoukanjuu> | Indeed. |
03:22 | < Shoukanjuu> | But if he knows we know that, he might try to conquer us >_> |
04:16 | < Consul> | Well, I for one welcome our new competent overlords. |
04:25 | < Shoukanjuu> | It could be worse. |
04:30 | | Thaqui [~Thaqui@Nightstar-13764.jetstream.xtra.co.nz] has quit [Quit: MORE constitution LESS destitution MORE pros...perity.] |
04:59 | | Thaqui [~Thaqui@Nightstar-13303.worldnet.co.nz] has joined #code |
04:59 | | mode/#code [+o Thaqui] by ChanServ |
05:23 | | * McMartin has letters after his name and stuff, so, well, it's his day job. |
05:34 | | Thaqui [~Thaqui@Nightstar-13303.worldnet.co.nz] has left #code [MORE constitution LESS destitution MORE pros...perity.] |
05:38 | | ReivUni [~82d94c4d@Nightstar-29731.dsl.in-addr.zen.co.uk] has quit [Quit: CGI:IRC (EOF)] |
06:03 | | AnnoDomini [AnnoDomini@Nightstar-29412.neoplus.adsl.tpnet.pl] has joined #Code |
06:03 | | mode/#code [+o AnnoDomini] by ChanServ |
07:33 | | Consul [~darren@Nightstar-473.dsl.sfldmi.ameritech.net] has quit [Ping Timeout] |
07:34 | | Consul [~darren@Nightstar-473.dsl.sfldmi.ameritech.net] has joined #code |
08:04 | | crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Connection reset by peer] |
08:04 | | crem [~moo@Nightstar-28703.adsl.mgts.by] has joined #code |
08:08 | | Vornicus [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
08:27 | | Vornicus [~vorn@64.252.146.ns-21946] has joined #code |
08:27 | | mode/#code [+o Vornicus] by ChanServ |
08:27 | | Kazriko [~kaz@Nightstar-26352.gdj-co.client.bresnan.net] has quit [Operation timed out] |
08:29 | | Vornotron [~vorn@64.252.33.ns-11733] has joined #code |
08:30 | | Vornicus [~vorn@64.252.146.ns-21946] has quit [Ping Timeout] |
08:36 | | Vornotron is now known as Vornicus |
08:51 | | Vornicus [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
08:54 | | Vornicus [~vorn@Admin.Nightstar.Net] has joined #code |
08:54 | | mode/#code [+o Vornicus] by ChanServ |
08:54 | | Vornicus is now known as Vornicus-Latens |
09:16 | | You're now known as TheWatcher |
09:27 | <@Reiver> | ..."Die horribly" is coder jargon? |
10:26 | | Reiv [~reaverta@Nightstar-6941.xdsl.xnet.co.nz] has joined #Code |
10:27 | | Reiver [~reaverta@Admin.Nightstar.Net] has quit [Ping Timeout] |
10:28 | | Reiver [~reaverta@Admin.Nightstar.Net] has joined #Code |
10:28 | | mode/#code [+o Reiver] by ChanServ |
10:29 | | DiceBot [~Reiver@Nightstar-6941.xdsl.xnet.co.nz] has quit [Ping Timeout] |
10:29 | | Reiv [~reaverta@Nightstar-6941.xdsl.xnet.co.nz] has quit [Ping Timeout] |
10:30 | | Reiver is now known as Reiv |
10:31 | | Reiv is now known as Reiver |
10:47 | | Kazriko [~kaz@Nightstar-26352.gdj-co.client.bresnan.net] has joined #code |
10:47 | | mode/#code [+o Kazriko] by ChanServ |
10:51 | | Vornicus-Latens [~vorn@Admin.Nightstar.Net] has quit [Ping Timeout] |
11:14 | | Attilla [~The.Attil@92.20.0.ns-26568] has joined #code |
11:14 | | mode/#code [+o Attilla] by ChanServ |
14:01 | | crem_ [~moo@Nightstar-28703.adsl.mgts.by] has joined #code |
14:01 | | crem [~moo@Nightstar-28703.adsl.mgts.by] has quit [Connection reset by peer] |
15:16 | <@ToxicFrog> | Reiver: is it? |
15:23 | <@Reiver> | Apparently so. |
15:30 | < Shoukanjuu> | I've been using "Die horribly" for a long time >_> |
16:02 | <@McMartin> | Yeah, likewise. |
16:02 | <@McMartin> | Either it's jargon or extremely broad parallel invention |
16:06 | < Shoukanjuu> | Oh, well. |
16:08 | < Shoukanjuu> | I've never watched the FF4DS opening all the way through before. |
16:08 | < Shoukanjuu> | That's actually pretty good for the thing o: |
18:20 | | Vornotron [~vorn@Admin.Nightstar.Net] has joined #code |
18:20 | | Vornotron is now known as Vornicus |
18:21 | < Vornicus> | Reiver: yep |
20:46 | | AnnoDomini [AnnoDomini@Nightstar-29412.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
20:54 | | AnnoDomini [AnnoDomini@Nightstar-29194.neoplus.adsl.tpnet.pl] has joined #Code |
20:54 | | mode/#code [+o AnnoDomini] by ChanServ |
21:37 | | Thaqui [~Thaqui@Nightstar-13764.jetstream.xtra.co.nz] has joined #code |
21:37 | | mode/#code [+o Thaqui] by ChanServ |
22:50 | < Consul> | Now I get to figure out how to implement an error handling class. |
22:52 | < Consul> | I'm assuming the general idea is, I inherit std::exception, then overload the throw() with one of my own? |
23:08 | < Shoukanjuu> | I don't care how big your company is, if you don't have custom pens, you aren't big enough o: |
23:38 | <@MyCatVerbs> | Shoukanjuu: let us postulate two companies. |
23:39 | <@MyCatVerbs> | Shoukanjuu: the company on the left has about fifty employees. They harden chunks of steel and aluminium and titanium and bloody well any chunk of metal which you want the surface of to be slightly harder than the middle, you can give to them and they will do something useful with it. Say, about $2m USD goes through this company. |
23:40 | | Thaqui [~Thaqui@Nightstar-13764.jetstream.xtra.co.nz] has quit [Connection reset by peer] |
23:40 | <@MyCatVerbs> | Shoukanjuu: the company on the right is comprised of one dude with a powerful laptop, consulting for various organisations who happen to need various complicated tasks done quick. Let's say he's frighteningly good and moves $250k USD each year. |
23:41 | < Shoukanjuu> | It's a joke XD; |
23:41 | <@MyCatVerbs> | Shoukanjuu: now, the company on the left, they're *busy* and they don't have any time to go making pens. The guy on the right is an attention junkie, and has a whole freakin' cabinet full of custom stationery. |
23:41 | <@MyCatVerbs> | Shoukanjuu: WHO'S BIGGER, I ASK YOU? |
23:42 | < Shoukanjuu> | You can't tell me you thought I was serious. It's just that I got a pen in the mail And this brochure about custom pens |
23:42 | <@MyCatVerbs> | Actually it's the guy on the right. |
23:42 | <@MyCatVerbs> | His job is fairly sedentary and he's pretty lazy and likes cheetos. |
23:43 | < Shoukanjuu> | >___> |
23:43 | <@MyCatVerbs> | Whereas the people on the left haul ass all day schlepping large chunks of steel in and out of furnaces. |
23:43 | < Shoukanjuu> | v_V |
23:43 | <@MyCatVerbs> | Duh. :) |
23:46 | < Shoukanjuu> | So you're saying the bigger company is the one that has a lower work to money earned ratio |
23:57 | | You're now known as TheWatcher[T-2] |
--- Log closed Fri Aug 01 00:00:11 2008 |