code logs -> 2007 -> Mon, 04 Jun 2007< code.20070603.log - code.20070605.log >
--- Log opened Mon Jun 04 00:00:59 2007
00:10 Mahal is now known as MahalOut
00:51 Serah [~Z@87.72.35.ns-26506] has joined #Code
00:51 mode/#code [+o Serah] by ChanServ
01:01 Derakon[AFK] is now known as Derakon
01:07 * Derakon discovers that his save-map routine is writing duplicate tiles sometimes. Very odd.
01:12
<@Derakon>
Ah hah. When I delete an object, a reference to it remains in the map table.
01:31
<@Derakon>
Hmm...when gprof tells me that the most expensive thing in my game is calling SDL_FillRect at 47.6% of runtime, and the next most expensive is only at 4.3%, I suspect I'm going to have trouble optimizing.
01:32
<@Derakon>
(Oh, and the third-most-expensive thing, at 1.9%, is BlitRGBtoRGBPixelAlphaMMX).
01:33
<@IanMusgrave>
What are you using SDL_FIllRect for? I know OpenGL at least has a specific clear function that's designed to be cheaper than drawing a rectangle.
01:33
<@Derakon>
Um, blanking the screen, I believe. I wrote that bit ages ago.
01:34
<@Derakon>
It's also remotely possible that drawing normal sprites involves calling FillRect, though I wouldn't know why.
01:35
<@IanMusgrave>
I don't think so - if they have transparency it shouldn't.
01:35
<@IanMusgrave>
Depending on various things you might not even need to blank the screen; Marathon, for instance, didn't.
01:36
<@Derakon>
If I'm redrawing every pixel every frame, then no, I wouldn't need to blank it.
01:36
<@IanMusgrave>
it's not a hard thing to have happen.
01:37
<@Derakon>
Yeah...eventually I'll write some configuration stuff so that game creators can decide what features of the engine to use without recompiling it; that's a natural one to include.
01:38
<@IanMusgrave>
I mean, you've got backgrounds...
01:38
<@Derakon>
Right.
01:38
<@Derakon>
Frankly, for the final game, if there are pixels that I'm *not* redrawing every frame, then I probably have a bug.
01:39
<@IanMusgrave>
unless it's in the status zone (and it's opaque like Super Metroid as opposed to overlaid like MZM)
01:39
<@IanMusgrave>
But then you're throwing around cliprects anyway.
01:39
<@Derakon>
Hmmm...what will need to be shown in status? Energy and currently selected drone mode, and I guess a minimap. That's it.
01:40
<@IanMusgrave>
And any limited tools - PBombs/Missiles/SMissiles, for MZM.
01:40
<@Derakon>
Oh, battery life.
01:40
<@Derakon>
I don't think I'll have any ammo-using abilities; at least, at this point I don't have any planned.
01:41
<@Derakon>
The way I see it, most ammo-using weapons are "you can deal lots of damage now, at the cost of having to stop to reload later". And reloading is usually boring. So why not just do away with the amo and lower the rate at which normally ammo-using abilities deal damage?
01:41
<@Derakon>
s/amo/ammo
01:47
<@ToxicFrog>
Well, ideally, reloading is something that happens on the side, as it were.
01:47
<@ToxicFrog>
Take metroid. You burn all your missiles on something, you'll be out of missiles for a while - but they'll gradually refill as you pick up drops.
01:48
<@Derakon>
Mmm, fair.
01:48
<@ToxicFrog>
Yeah, you can farm them, but in that case it's not so much that the game is boring as that you're making the game boring~
01:48
<@ToxicFrog>
And it's nice to have something you can use as a panic-button attack.
01:49
<@Derakon>
Hmm...thought, then - backup battery packs, which dump energy into your reserves at the press of a button.
01:49
<@Derakon>
Since the more powerful attacks (and jumping, etc.) are planned to use energy.
01:50 Takyoji [~Takyoji@Nightstar-25812.dhcp.roch.mn.charter.com] has joined #code
02:24 TakyojiClone [~Takyoji@Nightstar-25812.dhcp.roch.mn.charter.com] has joined #code
02:24 Takyoji [~Takyoji@Nightstar-25812.dhcp.roch.mn.charter.com] has quit [Killed (NickServ (GHOST command used by TakyojiClone))]
02:25 TakyojiClone is now known as Takyoji
02:27
< Takyoji>
What causes someone to be disconnected, yet for the server to think the user is yet connected when you log back in?
02:27
< Takyoji>
(out of curiousity)
02:28
<@Derakon>
The server keeps track of whether or not you're connected by pinging you on a regular basis.
02:28
<@Derakon>
Once you fail to respond to a set number of pings, it disconnects you.
02:28
< Takyoji>
No, I mean..
02:28
<@IanMusgrave>
TCP only knows you've disappeared if it gets an error.
02:28
<@IanMusgrave>
Since IRC doesn't send a whole lot of data, and packets just disappear into the void once in a while anyway, this can take a while.
02:29
< Takyoji>
Ahh
02:39 Derakon is now known as Derakon[blended]
02:40
< Takyoji>
What permission code should I set for my configuration files and such?
02:40
< Takyoji>
Because I'm trying to open MySQL but it isn't starting because it says the config files are 'world writable'
02:40
<@Derakon[blended]>
Turn off write-by-anybody, then.
02:41
< Takyoji>
k
03:04 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: http://img.photobucket.com/albums/v492/tai_ragnarok/MyManFacewhitebg.png]
03:19 Derakon[blended] is now known as Derakon[AFK]
03:20 ReivZzz is now known as Reiver
03:25 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has joined #code
03:47 Bob_work [~c6b3e33a@207.250.49.ns-12551] has joined #code
03:48
< Bob_work>
Anyone mind offering me advice?
03:48
< Reiver>
?
03:49
< Bob_work>
Ok, I work in a Datacenter, and have to go in and out of servers a lot.
03:50
< Bob_work>
I would like to setup an app, like a webpage, where I can go in and out of them with a couple of mouse clicks instead of typing
03:50
< Bob_work>
1) Because I'm lazy, and 2) just because I'd like to code something like that.
03:50
< Bob_work>
My question is: Which language would be best to code that in?
03:51
<@IanMusgrave>
"go in and out of them"?
03:52
< Bob_work>
We use SecureCRT 4.0 or Telnet into the Unix servers, and Remote Desktop connection for the windows servers.
03:52
< Reiver>
... Telnet
03:52 * Reiver coughs.
03:52
< Bob_work>
yeah yeah, I know.
03:53
< Reiver>
So what you want is effectively a 'webpage' that automates the login process, but runs the software proper?
03:53
< Reiver>
Basically, a glorified shortcut?
03:53
< Reiver>
(It's the best way I can think to describe it.)
03:53
< Bob_work>
Pretty much.
03:54 * Reiver hmns.
03:54
< Reiver>
Have you checked to see if *actual* shortcuts can't do half of it with -tags? >.>
03:54
<@IanMusgrave>
Actual shortcuts would likely be easier.
03:55
< Bob_work>
I suppose, but I also wanted a centralized point to make it easier.
03:55
< Takyoji>
What type of datacenter?
03:55
< Bob_work>
As well as just learn something
03:55
< Bob_work>
Retail company.
03:56
<@IanMusgrave>
A difficult thing - remember that you'd have to give your browser the ability to /run programs/ on each machine you admin from.
03:56
<@IanMusgrave>
This is Bad Juju.
03:56
< Bob_work>
True.
03:56
< Takyoji>
PHP or ASP.NET I'm thinking
03:57
< Takyoji>
Otherwise I haven't really used RoR
03:57
< Takyoji>
Since I don't know Ruby on Rails
03:57
< Bob_work>
We had someone on the helpdesk actually create one for their use (going down into the store servers), but it used HTML, Java, NT scripting, as well as ActiveX (which "hacked" IE to allow it to execute programs from the browser window)
03:57
< Takyoji>
PHP is nice since it's cross-compatible and all
03:58
< Reiver>
Bob: Yeah, that's about the level of bab juju you'd need to do.
03:58
< Bob_work>
Reiver: So...that idea is right out. Gotcha.
03:58
< Reiver>
You could probably write a workable program using Actual Java
03:59
<@IanMusgrave>
At that, though, you can use Shortcuts put on a share that say "Run Remote Desktop with these options" or "Run PuTTY with these options"
03:59
< Reiver>
Just also recall that you will of course, be typing the passwords by hand each time you log in...
04:00
<@IanMusgrave>
Well, PuTTY/ssh at least allows you to use asymmetric key login.
04:00
< Bob_work>
asymmetric key login?
04:01
< Bob_work>
So, basically PHP or Java?
04:01
<@IanMusgrave>
you put a public key in a file in your home folder on the system you want to log into without a pass
04:02
< Bob_work>
Ah.
04:02
<@IanMusgrave>
and then put a private key in a file in your home folder on the system you want to log in from
04:02
<@IanMusgrave>
and you have it.
04:02 Reiver is now known as ReivOut
04:04
< Bob_work>
Thanks all.
04:04 Bob_work [~c6b3e33a@207.250.49.ns-12551] has left #code []
04:04
<@IanMusgrave>
Seriously, though - neither PHP nor Java. Use shell scripts on *nix or shortcuts on Windows.
04:04
<@IanMusgrave>
...dammit
04:06
< Takyoji>
I know.. it is pretty stupid to have something operated by a server-side language
04:06
< Takyoji>
Although, I couldn't really understand what he needed..
04:06 mode/#code [+v KarmaBot] by ReivOut
04:07
< Doctor_Nick>
:D
04:07
< Doctor_Nick>
:E
04:07
< Doctor_Nick>
whoops
04:07
< Takyoji>
Hmm?
04:07
< Doctor_Nick>
pretend those are drive letters
04:08
< Doctor_Nick>
but i have dyslexia and reversed the colon and the letter
04:08
< Takyoji>
heheheh..
04:08
< Takyoji>
Wrong room I take it?
04:08
< Takyoji>
Happens..
04:10
< Takyoji>
Otherwise,
04:10
< Takyoji>
I'm trying to figure out how to make a module system in PHP
04:11
< Takyoji>
I mean, for a script in PHP but don't really have much ideas..
04:11
< Takyoji>
I know my needs are a little general, but does anyone have an idea?
04:12
< Takyoji>
Module system meaning a plug-in system
04:13
< Takyoji>
Kinda like what they are trying to get at with phpBB 3
04:13 PID1|work [~PID@59.188.36.ns-3793] has joined #Code
04:30 GeekSoldier|Sleep is now known as GeekSoldier|Work
04:47 drnickaway [AWT@Nightstar-12335.dmisinetworks.net] has joined #code
04:49 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has quit [Ping Timeout]
04:59 BlueTiger [BlueTiger@Nightstar-1362.natsoe.res.rr.com] has joined #code
04:59
< BlueTiger>
I don't suppose anyone here uses php much?
05:00
< Takyoji>
I'm probably the only one ;P
05:01
< Takyoji>
Everyone else uses Ruby on Rails and ASP.NET
05:01 drnickaway [AWT@Nightstar-12335.dmisinetworks.net] has quit [Ping Timeout]
05:01 Derakon[AFK] is now known as Derakon
05:09 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has joined #code
05:32
< Takyoji>
WB
05:52 IanMusgrave is now known as Vornicus
05:59 AnnoDomini [~farkoff@Nightstar-29212.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
05:59 KBot [~karma.bot@Nightstar-29654.neoplus.adsl.tpnet.pl] has joined #Code
06:00 KarmaBot [~karma.bot@Nightstar-29212.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
06:00 KBot is now known as KarmaBot
06:05 AnnoDomini [~farkoff@Nightstar-29654.neoplus.adsl.tpnet.pl] has joined #Code
06:05 mode/#code [+o AnnoDomini] by ChanServ
06:18 Takyoji [~Takyoji@Nightstar-25812.dhcp.roch.mn.charter.com] has quit [Quit: Leaving]
06:28 BlueTiger [BlueTiger@Nightstar-1362.natsoe.res.rr.com] has quit [Quit: ]
06:36 Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: MyCatVerbs, @AnnoDomini, @jerith, @Chalain
06:37 Netsplit over, joins: Chalain, jerith
06:37 mode/#code [+o Chalain] by ChanServ
06:37 Netsplit over, joins: MyCatVerbs
06:37 Netsplit over, joins: AnnoDomini
06:37 mode/#code [+o jerith] by ChanServ
06:37 mode/#code [+o AnnoDomini] by ChanServ
06:44 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has quit [Ping Timeout]
06:48 Derakon is now known as Derakon[AFK]
06:59 You're now known as TheWatcher
06:59 MahalOut is now known as Mahal
07:08 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has joined #code
07:34 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has quit [Ping Timeout]
07:45 Serah [~Z@87.72.35.ns-26506] has quit [Ping Timeout]
08:18 ReivOut is now known as Reiver
08:51 Serah [~Z@87.72.35.ns-26506] has joined #Code
08:51 mode/#code [+o Serah] by ChanServ
09:25 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has quit [Quit: reboot]
09:28 Mahal [~Mahal@Nightstar-12512.worldnet.co.nz] has joined #Code
09:28 mode/#code [+o Mahal] by ChanServ
09:34 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
09:35 mode/#code [+o gnolam] by ChanServ
10:19 Mahal is now known as MahalBedd
10:33 Chalcedon [~Chalcedon@Nightstar-1216.ue.woosh.co.nz] has quit [Quit: Gone]
10:51 MahalBedd is now known as MahalSlep
13:35 You're now known as TheWatcher[afk]
13:59 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has joined #code
14:46 GeekSoldier|Work is now known as GeekSoldier
15:06 You're now known as TheWatcher
17:19 You're now known as TheWatcher[afk]
17:49
<@ToxicFrog>
...p4merge has some issues.
17:49
<@ToxicFrog>
Common base: logging/event_log.cpp
17:49
<@ToxicFrog>
Your file: 0 differences from base
17:49
<@ToxicFrog>
Their file: 0 differences from base
17:49
<@ToxicFrog>
Conflicts: 1
17:57 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Go Go Gadget Hermit Mode!]
18:02 Stefan [~aristotel@Nightstar-1687.bredband.comhem.se] has joined #Code
18:02 Stefan [~aristotel@Nightstar-1687.bredband.comhem.se] has left #Code []
18:30 You're now known as TheWatcher
18:42 GeekSoldier_ [~Rob@Nightstar-3575.pools.arcor-ip.net] has joined #code
18:42 GeekSoldier [~Rob@Nightstar-5549.pools.arcor-ip.net] has quit [Killed (NickServ (GHOST command used by GeekSoldier_))]
18:43 GeekSoldier_ is now known as GeekSoldier
19:01 ToxicFrog is now known as ToxicFrog|W`rkn
19:05 MahalSlep is now known as Mahal
19:55 Mahal is now known as MahaLGone
19:55 MahaLGone is now known as MahalGone
20:13
<@ToxicFrog|W`rkn>
Guess what's wrong with this code!
20:13
<@ToxicFrog|W`rkn>
EXPORT32 void __stdcall
20:13
<@ToxicFrog|W`rkn>
SHIM_Wait_for_tcpip_init(void)
20:13
<@ToxicFrog|W`rkn>
{
20:13
<@ToxicFrog|W`rkn>
return Wait_for_tcpip_init();
20:13
<@ToxicFrog|W`rkn>
}
20:15 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
20:16
<@Vornicus>
um
20:16
<@Vornicus>
why is it returing?
20:20
<@ToxicFrog|W`rkn>
Bingo.
20:21 GeekSoldier is now known as GeekSoldier|Sleep
20:32 * Vornicus fiddles with PostScript.
20:39
<@Vornicus>
...ew, I just figured out what I need to do...
20:40 * Vornicus is trying to get two lines of different colors to merge and show a different color.
20:47
<@Vornicus>
and that, as far as I can tell, entails using the borders of the line and fill as opposed to the line itself and using a clip or something to get the combined section.
20:52
<@ToxicFrog|W`rkn>
...I thought PS had alpha?
20:52
<@Vornicus>
nope.
20:52
<@Vornicus>
and anyway there's a background on it, too.
20:53
<@Vornicus>
So even with alpha I'd get the (very dark) background showing through.
20:53
<@ToxicFrog|W`rkn>
Aah.
20:57
<@Vornicus>
on the other hand, PostScript is still relaxing to work with.
21:04 Doctor_Nick [AWT@Nightstar-12335.dmisinetworks.net] has quit [Ping Timeout]
21:08 Chalcedon [~Chalcedon@Nightstar-1216.ue.woosh.co.nz] has joined #code
21:08 mode/#code [+o Chalcedon] by ChanServ
21:16
<@Vornicus>
I'm trying also to figure out how to do things with images - I have a bunch of raster images that I need to put on this page, and some have (indexed) transparency.
21:18
<@ToxicFrog|W`rkn>
I believe this is possible, but I've never tried it.
21:18
<@Vornicus>
Looking through the reference I have found a thing that, if I can manage to get the image into a dictionary of the right format, would render the image straight.
21:20
<@Vornicus>
(section 4.10, starting on page 288 of the most recent reference from Adobe. Table 4.22 describes an image dictionary with masking.)
21:21
<@Vornicus>
The trick, of course, is turning the image into a dictionary.
21:38 * ToxicFrog|W`rkn throttles msdev
22:09
<@Vornicus>
PDF I know has alpha. I wonder if I can do a layer where alpha works only on that one layer and then underly that with my actual backing.
22:10
<@Vornicus>
And I know it can embed images.
22:21 Doctor_Nick [~AWT@12.11.93.ns-3325] has joined #code
22:52 You're now known as TheWatcher[T-2]
22:57 You're now known as TheWatcher[zZzZ]
23:55 jksfsa [AWT@Nightstar-12335.dmisinetworks.net] has joined #code
23:56 Doctor_Nick [~AWT@12.11.93.ns-3325] has quit [Ping Timeout]
23:57 jksfsa is now known as Doctor_Nick
--- Log closed Tue Jun 05 00:00:06 2007
code logs -> 2007 -> Mon, 04 Jun 2007< code.20070603.log - code.20070605.log >