code logs -> 2010 -> Sun, 07 Feb 2010< code.20100206.log - code.20100208.log >
--- Log opened Sun Feb 07 00:00:34 2010
00:41 AnnoDomini [annodomini@Nightstar-df710180.adsl.tpnet.pl] has quit [[NS] Quit: Sleep.]
01:46 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: z?]
02:20 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has quit [Connection reset by peer]
03:14 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
03:46 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
04:08 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
06:15 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
06:38 Derakon is now known as Derakon[AFK]
07:49 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
09:12 You're now known as TheWatcher
09:17 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
--- Log closed Sun Feb 07 11:12:56 2010
--- Log opened Sun Feb 07 11:21:20 2010
11:21 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
11:21 Irssi: #code: Total of 18 nicks [5 ops, 0 halfops, 0 voices, 13 normal]
11:21 mode/#code [+o TheWatcher] by Reiver
11:22 Irssi: Join to #code was synced in 50 secs
11:33 AnnoDomini [annodomini@Nightstar-df710180.adsl.tpnet.pl] has joined #code
11:33 mode/#code [+o AnnoDomini] by Reiver
11:54 Vornicus is now known as Vornicus-Latens
12:44 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has joined #code
12:44 mode/#code [+o Attilla] by Reiver
13:33 AbuDhabi [annodomini@Nightstar-c4fc0609.adsl.tpnet.pl] has joined #code
13:36 AnnoDomini [annodomini@Nightstar-df710180.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
14:22 Serah [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
15:14 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
15:19 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
15:20 Bobsentme [Bobsentme@Nightstar-79f8b1cd.livnmi.sbcglobal.net] has joined #code
15:21
< Bobsentme>
Anyone got a second to help with a php file upload question / conundrum?
15:23
< Bobsentme>
My problem: I've got a large form where users have to enter data, and at the bottom, select a file to upload. The next page displays everything they've entered, and I'd like it to display the file (before it's uploaded)
15:23
< Bobsentme>
But $_FILES and $_POST keep getting undefined errors on the page.
15:23
< Bobsentme>
Isse can be seen here: http://nsar.udmercy.edu/manage/caseys_test_folder/
15:24
< Bobsentme>
Issue*
15:24
< celticminstrel>
So, like a preview function?
15:24
< Bobsentme>
Select an author, then a file to upload, and click submit.
15:25
< Bobsentme>
(everything else can be left blank)
15:25
< Bobsentme>
Well, I'd like to show them the file name at least, before it's uploaded. In case they choose the wrong file.
15:27
< Bobsentme>
My biggest problem is that I'm trying to do this all on one form. Everyone else has a completely different form / page setup. I may be integrating my input type=file field incorrectly in the form, or just using the wrong logic to display it on the next page. I'm a bit lost.
15:29
< Bobsentme>
and of course now it works. >.<
15:31 * Bobsentme wanders off shaking his head.
15:37
<@ToxicFrog>
I thought input type=file would upload on POST, making that sort of preview impossible?
15:39
< Namegduf>
Shouldn't input type=file provide that functionality itself?
15:40
< Namegduf>
Some browsers do, some don't, so it seems to be a decision they're making.
15:40
< Bobsentme>
I am not entirely certain.
15:40
< Bobsentme>
well, apparently not. I've got the page to display the file information $_FILE['file_name']['name'], and the file doesn't exist on the server.
15:41
< Bobsentme>
$_FILES*, sorry.
15:43
<@ToxicFrog>
PHP ;.;
15:43
<@ToxicFrog>
Bobsentme: I can verify that a file input will tell you the filename in both Opera and Firefox 3.x
15:44
< Bobsentme>
cool. Thanks ToxicFrog
15:45
<@ToxicFrog>
However, I'm not sure if the spec requires it to, and even if it did since when does any browser implement the spec correctly?
15:48
< Bobsentme>
hmmm...I'm trying to find the default upload directory for php, but not having any luck. Anyone know if it's /tmp for sure or not?
16:21 * TheWatcher bleghs, tries to get some kind of decent organisation to his projects/ dir so he has some better idea of where he stands code-wise
16:26 * Bobsentme blergs at trying to change the default upload folder on this server.
16:26
< Bobsentme>
as I don't think people uploading straight to the C:\windows\temp folder is a wise move.
17:13
<@ToxicFrog>
o.O
17:13
<@TheWatcher>
Anyone able to suggest a bugzilla alternative? Doesn't need bugzilla's range of features, but I need some vaguely decent bug tracker and really don't have time to write my own
17:18
< gnolam>
Do you need a pure bug tracker, or can you make do with the issue tracking in e.g. trac or redmine?
17:22
<@ToxicFrog>
Bobsentme: so this is a PHP-based system running on windows?
17:23
< Bobsentme>
unfortunately.
17:26 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!]
17:36
< Bobsentme>
HA! File uploaded!
17:36
< Bobsentme>
I'll be over here happy danceing
17:36
< Bobsentme>
dancing.
17:42 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
18:35
<@TheWatcher>
gnolam: pure bug tracking
18:41 Attilla [Attilla@FBC920.642D35.2D2998.D06FAA] has quit [Ping timeout: 121 seconds]
18:47 * Bobsentme checks file uploads off his list.
18:54 Attilla [Attilla@FBC920.58502B.4BF0F8.FCE0D3] has joined #code
18:54 mode/#code [+o Attilla] by Reiver
19:03 Vornicus-Latens is now known as Vornicus
19:18 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has joined #code
20:20 * TheWatcher vaguely eyes flyspray
20:22
<@TheWatcher>
Hm, I may have to try this one
20:37 celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code
20:41
< celticminstrel>
Occasionally I wish Python had a switch statement.
20:44 * TheWatcher is actually Quite Impressed with flyspray so far - seems to do all he needs without the issues bugzilla has
20:46
<@Vornicus>
celticminstrel: usually you use a dictionary for the switch statement.
20:48
< celticminstrel>
...wait, what?
20:49
<@Vornicus>
well, as a replacement.
20:49
< celticminstrel>
I'm using if...elif...elif...else...
20:49
< celticminstrel>
Though I've used dictionaries on other occasions.
20:50
< celticminstrel>
...for switch-like behaviour.
20:53
< celticminstrel>
Why is KEY_BACKSPACE labelled as unreliable?
20:55
<@TheWatcher>
They didn't want to say it was relaiable, in case they couldn't take it back?
20:56
< celticminstrel>
But every keyboard has a backspace key, right?
20:56
< celticminstrel>
At least, every Win/Mac keyboard.
20:59
< celticminstrel>
Wait. Maybe I could re-enable buffered input rather than attempting to do this myself.
21:13
< celticminstrel>
...except that doesn't seem to have the capability to limit the input to four characters.
21:50
< celticminstrel>
Placing all my curses de-initialization code in a finally clause.
21:53
<@McMartin>
celticminstrel: Hmm, you could probably use a destructor for that
21:53
<@McMartin>
Have a CursesEnvironment object, which does init in the constructor and deinit in the destructor
21:53
< celticminstrel>
I'd do that if I were using C++.
21:53
<@McMartin>
Then in main (or whereever the curses stuff completely happens) you declare "CursesEnvironment blah"
21:54
<@McMartin>
Ah
21:54
<@McMartin>
Python?
21:54
< celticminstrel>
Yup.
21:54
<@McMartin>
Doesn't the "with" statement give you that capability now?
21:54
< celticminstrel>
It does. I've no idea if it works for curses, though.
21:55
<@McMartin>
You ought to be able to do the object wrapper thing much like CursesEnvironment in C++, though
21:55
< celticminstrel>
But I should definitely figure out how to use "with" for files.
21:59
< celticminstrel>
It'd be nice if [[1,2]] were equivalent to [1][2]...
22:11
<@ToxicFrog>
Does python let you do things like override __call__ on arrays so that (1,2) works?
22:12
< celticminstrel>
Yeah, but then I'd need to write a custom dictionary type. And I don't feel like doing that.
22:14
< celticminstrel>
I found an alternate solution using lambda.
22:30
< celticminstrel>
Yay! Navigation works... well, mostly.
22:37 Rhamphoryncus [rhamph@Nightstar-8931f88f.abhsia.telus.net] has quit [Client exited]
23:29 * Bobsentme winds up in a river; eyes celticminstrel
23:33 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
23:38 Serah [Z@26ECB6.A4B64C.298B52.D80DA0] has joined #code
23:44
< celticminstrel>
...
23:44
< celticminstrel>
Something wrong, Bobsentme?
23:45
< Bobsentme>
I was making a joke about your navigation not working.
23:45
< celticminstrel>
Oh. XD
23:45
< Bobsentme>
but now, off to work!
23:45
<@McMartin>
Machine Faith, Bob?
23:46
< Bobsentme>
I don't know what you're talking about. Now, if you'll excuse me:
23:46 Bobsentme [Bobsentme@Nightstar-79f8b1cd.livnmi.sbcglobal.net] has quit [[NS] Quit: GOTO 10]
--- Log closed Mon Feb 08 00:00:12 2010
code logs -> 2010 -> Sun, 07 Feb 2010< code.20100206.log - code.20100208.log >