Camelia, the Perl 6 bug

IRC log for #padre, 2009-09-21

| Channels | #padre index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:19 tracbot #529: Suggestion: Toolbar buttons for 'Run' and 'Stop' (closed enhancement) [ http://padre.perlide.org/trac/ticket/529#comment:2 ]
01:53 SvenDowideit joined #padre
01:55 SvenDowideit__ joined #padre
02:00 tokuhirom____ joined #padre
03:33 Alias joined #padre
04:48 MMS joined #padre
05:18 Sewi ping Alias
05:37 Hyppolit svn: r8170 | Sewi++ | http://padre.perlide.org/trac/changeset/8170
05:37 Hyppolit Updated Changes
05:37 Hyppolit trunk/Padre/
05:52 marcela joined #padre
05:58 kaare joined #padre
06:11 JoshWeiss joined #padre
06:17 pece joined #padre
06:20 JRWeiss joined #padre
07:07 azawawi joined #padre
07:07 azawawi good morning
07:26 abraxxa joined #padre
07:37 azawawi Alias: ping
07:37 Alias pong
07:38 * Alias is trying to debug the plugin manager
07:38 azawawi im working on the the padre pl2bat wperl problem
07:39 submersible joined #padre
07:39 azawawi can Module::Install solve that problem to patch installed padre.bat files to s/perl -x -S/wperl -x -S/
07:40 Alias Maaaaybe
07:40 azawawi and if i say pretty please with sugar on top :)
07:40 Alias I could do a boring string replace
07:41 azawawi only for padre right?
07:41 Alias That's half the point of using Module::Install
07:41 Alias You can tune or tweak absolutely anything if you want it enough
07:42 azawawi aha where do i start then? :)
07:42 Hyppolit svn: r8171 | adamk++ | http://padre.perlide.org/trac/changeset/8171
07:42 Hyppolit Tweak the plugin manager slightly smaller so that it will fit on a 800x600 screen with a teensy bit of border
07:42 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
07:42 azawawi privinc right?
07:42 Alias hrm
07:43 Alias TBH, I'm not sure right this instant
07:43 szabgab gm
07:43 Alias There's a fix_up_makefile type method
07:43 szabgab Alias, have you seen the problem with no DISPLAY again ?
07:43 Alias But that should mean forking Module::Install
07:43 Alias Not lately
07:43 szabgab it seems to be brought back by MI, but I am not sure
07:43 azawawi hi szabgab
07:43 szabgab hi azawawi
07:46 * azawawi investigates hacking M:I for padre for the /perl/wperl padre.bat hack
07:56 szabgab azawawi, you mentioned that there are no Perl activity in Africa, right?
07:56 azawawi yeah but that was based on my blog stats
07:57 azawawi which is not an indicator
07:57 szabgab I am quite sure the activity is quite close to 0
07:57 szabgab both in Africa in many other places
07:58 szabgab even if you look at the pm.org map
07:58 szabgab http://www.pm.org/
07:58 azawawi yeah no perl there whatsoever...
07:59 szabgab but not only in Africa, there is nearly no perl activity in Turkey or Greece
07:59 azawawi im very surprised that south africa has none
07:59 szabgab or Hungary, for that matter
07:59 szabgab according to the list http://www.pm.org/groups/africa.html
08:00 azawawi Turkey = they dont speak english
08:00 szabgab there is some but I think non of them are active
08:00 azawawi Try going to turkey's airport and you'll instantly know that
08:00 azawawi :)
08:00 szabgab exactly, my point is that in many pleaces few people speak English
08:00 szabgab I was in Istanbul a month ago
08:00 azawawi yeah but south africa?
08:00 szabgab when flying to Lisbon
08:01 szabgab actually I should talk to Allison Randal about that, I think she lives in South Africa
08:02 szabgab anyway, I think the same is true for most of the other Open Source technologies
08:03 szabgab I think this is an opportunity to create a movement : prepare a short tutorial in English and translate it to many other languages
08:04 azawawi have u watched "District 9" ?
08:04 szabgab I don't think so
08:06 azawawi it is pretty cool
08:06 azawawi Halo meets Africa :)
08:07 szabgab but let's get back to my agenda :-)
08:07 azawawi hehe
08:07 azawawi :)
08:09 szabgab and not just Africa as I mentioned
08:09 szabgab there are lots of other countries with other languages
08:15 tracbot #595: F6 (Stop Executing of script) doesnt work with Output window in Windows (closed defect) [ http://padre.perlide.org/trac/ticket/595#comment:1 ]
08:17 azawawi tracbot is slow
08:20 submersible joined #padre
09:00 szabgab (close all files progress bar)++
09:16 MoC joined #padre
09:30 ppant joined #padre
09:36 ppant joined #padre
09:45 Alias Anyone mind if I do some refactoring on the plugin manager?
09:46 Alias I want to dumb down the code a bit and see if I can find why it's not working properly on Windows
09:57 szabgab do you people know about any non-English perl resource ? I'd like to collect the major such web sites on azawawi, do you know about an
09:57 szabgab broken copy paste
09:58 szabgab on http://www.perlfoundation.org/perl5/i​ndex.cgi?international_perl_resources
10:08 azawawi Alias: sure, go ahead
10:17 Alias szabgab: Hey, you said your son wanted a registration/login thingy right?
10:18 Alias szabgab: So he can have a "sekrit" part of the site that only his friends etc can see?
10:18 szabgab well, he wants many things,
10:18 Alias Have you ever seen the thing that runs svn.ali.as?
10:18 szabgab I saw your comment
10:18 Alias It's really really simple
10:18 Alias And all the html pages are listed in the one .pl file
10:18 szabgab but in general he want s to write some games
10:18 Alias of course he does :)
10:19 szabgab so finally he has designed a game that is almost fully text only
10:19 szabgab they are playing it on paper
10:19 Alias Should hold him until SDL? :)
10:19 szabgab that's already reasonable for him to implement in code as well
10:19 Alias It should start working soon
10:20 szabgab SDL works on his computer
10:20 szabgab which is Ubuntu
10:20 Alias ah
10:20 Alias Must be tricky to have all the programming languages in English
10:20 szabgab but SDL is way too difficult as it is now
10:20 szabgab look at scratch
10:20 szabgab its huge
10:20 Alias I don't suppose anyone has tried a source filter?
10:20 szabgab and I am going to implement it for perl :-)
10:21 Alias Hebrew to English source filter for all the basics
10:21 szabgab that's what I started in some of our plugins
10:21 Alias print, foreach, my, our, etc
10:21 szabgab I don't think that would work
10:21 szabgab RTL LTR
10:21 Alias hrm
10:21 Alias I suppose you could invert the braces
10:22 szabgab a year ago he still needed the keywords in Hebrew, today hea can already read Enough English to deal with the keywords
10:22 szabgab but the explanations and the tutorial should still be in Hebrew
10:23 szabgab and my daughter would kill me if Frozen bubble did not work on their computer as that is her favorite game
10:23 Alias heh
10:35 szabgab F1 does not work on Ubuntu now
10:36 rogerl joined #padre
10:38 rogerl joined #padre
10:43 azawawi is bat2exeConvertor an acceptable solution?
10:43 azawawi i tried it and created padre.exe with padre's icon
10:43 azawawi and it runs perfectly
10:44 azawawi include padre.exe in distro and install it INST_SCRIPT_DIR ?
10:44 azawawi s/it/it in/
10:44 Alias It doesn't reliably work on Portable
10:44 Alias But should work on the regular install
10:45 azawawi yeah but it is a step forward to making padre work from a cpan distro right?
10:45 Alias joined #padre
10:45 azawawi on win32 i.e.
10:49 azawawi Alias, szabgab : are you ok with including a ready-made padre.exe (using Bat To Exe Convertor) inside padre's distro?
10:51 MoC joined #padre
10:51 Sewi Hi all
10:51 azawawi hi Sewi
10:52 Sewi Alias: I heart that PopularityContest is yours, may I work a bit on it?
11:02 azawawi Alias: ouch, after fixing Alien::BatToExeConverter , AVG antivirus croaked on make test... lovely
11:02 azawawi Alias: seems to make it is not a good idea to have that module as antiviri dont generally like re-packers...
11:03 azawawi Alias: 2 dlls were created in the temporary folder while make test was running...
11:03 azawawi Alias: and the test died also...
11:14 szabgab azawawi, I don't think so, (re exe in the padre distro)
11:20 azawawi szabgab: i thought of another cool solution
11:21 azawawi szabgab: rename padre.bat to padre_debug.bat
11:21 azawawi szabgab: and create padre shortcut to "wperl -x -S c:\strawberry\perl\bin\padre"...
11:22 azawawi szabgab: that works perfectly when typing 'padre'
11:22 azawawi szabgab: since 'padre.bat' takes percedence over 'padre' shortcut
11:23 szabgab probably this can work but that path should be probably relative to where the bat file is
11:25 Sewi Any plans for the release branch timeline?
11:25 azawawi szabgab: another thing we could do,
11:25 szabgab Sewi, there is an issue with F1 on Ubuntu now
11:25 azawawi szabgab: is copy a padre.vbs
11:25 szabgab it is gone
11:25 azawawi szabgab: but then you have to call it as "padre.vbs" in the run menu...
11:26 azawawi szabgab: not as "padre" since only bat, exe, com are implicit on win32
11:26 szabgab the .bat file should work
11:26 Sewi szabgab: which issue?
11:26 Sewi r8153 worksforme
11:26 szabgab you fixed the F1F1 issue right?
11:26 Sewi I won't say fixed... did a workaround...
11:26 szabgab I am an 8171
11:27 * Sewi ups
11:27 szabgab yes I saw it
11:27 szabgab the real code is in Padre::Actions
11:27 szabgab Padre::Action
11:27 Sewi I don't know where the other F1 comes into place, maybe through the ID?
11:27 azawawi yup
11:27 azawawi through ID
11:28 Sewi Ok, than it was a fix :-)
11:28 szabgab that menu item does not evan have an id
11:28 azawawi take a look at ID_COPY and ID_PASTE , magic happens automatically...
11:28 azawawi wxwidgets magic...
11:28 szabgab I am looking at Wx::Menu::Help.pm
11:29 Sewi the help ID is on the previous
11:29 szabgab and that gives Ctrl-H
11:29 Sewi ok
11:30 Sewi Then it doesn't come from an ID.
11:31 Sewi szabgab: F1 doesn't work on your side?
11:31 szabgab nope, and it does not show up on the menu either
11:33 Sewi here: Perl 5.10.0 Wx 0.91
11:33 szabgab Sewi, try to add back the F1 shortcut and then add print $label;  statements to the Padre::Action::label_menu before and after the if()
11:36 Sewi ok, F1 is working again, but there is no F1F1!?
11:39 marcela joined #padre
11:40 azawawi szabgab: http://pastebin.ca/1573847
11:41 azawawi szabgab: that's a more acceptable solution than the shortcut imho
11:41 azawawi szabgab: the lnk format is not portable and you need Win32::Shortcut to create it
11:41 azawawi & lunch
11:44 Sewi szabgab: Sorry, didn't save Help.pm.
11:44 szabgab save Help?
11:45 Sewi I added the shortcut again, then added the prints, saved Action.pm but had Help.pm unsaved.
11:46 Sewi got it
11:46 Sewi szabgab: I guess you're using Padre in English or ebrew
11:46 Sewi Hebrew
11:47 Sewi The German translation was: "Kontexthilfe\tF1"
11:48 Hyppolit svn: r8172 | Sewi++ | http://padre.perlide.org/trac/changeset/8172
11:48 Hyppolit Re-Fixed Help/F1 problem
11:48 Hyppolit trunk/Padre/lib/Padre/Wx/Menu/
11:49 szabgab So that's a bug in the translation then :-)
11:49 Sewi Wait a moment...
11:49 Hyppolit svn: r8173 | Sewi++ | http://padre.perlide.org/trac/changeset/8173
11:49 Hyppolit Fixed F1 bug in German translation
11:49 Hyppolit trunk/Padre/share/locale/
11:49 Sewi It was a bug in translation now ;-)
11:50 Sewi Sorry, I didn't check the translation. And Getty - who did the ticket - is also from DE, so we both were using the same translation while testing.
11:50 szabgab so maybe a test should check all the translation file to make sure they don't have \t in them
11:50 szabgab or that we know why there are
11:50 Sewi Doesn't work, because some english texts also have it.
11:50 szabgab no problem
11:51 szabgab so maybe they should not have it
11:51 szabgab I am not sure
11:51 Sewi This is an open issue I planned to work on when converting the Actions thing to make menus/toolbar/key bindings configurable.
11:51 Sewi Once all of them were removed, I'ld add a badcode - test.
11:52 szabgab can you update that bug report about F1F1 to describe the real bug and real solution  (the translation isue)
11:52 szabgab so we have that logged
11:52 Sewi ok, will do so.
11:52 kentnl joined #padre
11:52 szabgab I would add the badcode test now and make it a TODO test
11:53 Sewi Updating Actions was one of the reasons why I asked for the release branch. I don't want to do big changes before the release branch is created.
11:54 Sewi szabgab: Are there chances that your mailserver is a little bit slow? tracbot and I get the update mails sometimes some hours late. He's using my own mailserver and I signed up to trac using a freemail service.
11:55 szabgab maybe
11:55 szabgab I am far from being an expert in sysadmin and mail server configuration
11:55 Sewi The last mails I checked showed no relevant delay once the mail left your server.
11:57 Sewi szabgab: Which mailserver software do you use?
11:58 szabgab postfix
11:59 szabgab damn my notebook is sooo slow
12:00 Sewi Just got the last update mail regarding the F1 problem.
12:00 szabgab I think I'll buy a new desktop machine when I get back from vacation
12:00 Sewi I'm using sendmail, sorry, can't help you with that.
12:29 JRWeiss joined #padre
12:53 Hyppolit svn: r8174 | Sewi++ | http://padre.perlide.org/trac/changeset/8174
12:53 Hyppolit Another use of uninitlized value gone
12:53 Hyppolit trunk/Padre/lib/Padre/
12:56 Hyppolit svn: r8175 | Sewi++ | http://padre.perlide.org/trac/changeset/8175
12:56 Hyppolit Perl tidy
12:56 Hyppolit trunk/Padre/lib/Padre/ trunk/Padre/lib/Padre/Wx/Dialog/ trunk/Padre/lib/Padre/Wx/Menu/
12:58 azawawi :)
13:01 Sewi You are responsible for this ;-))
13:02 Hyppolit svn: r8176 | azawawi++ | http://padre.perlide.org/trac/changeset/8176
13:02 Hyppolit [Padre] Fixed ticket:582 "'Run this test' in broken on win32 when there is a space in the test file name"
13:02 Hyppolit trunk/Padre/lib/Padre/Wx/
13:10 Hyppolit svn: r8177 | szabgab++ | http://padre.perlide.org/trac/changeset/8177
13:10 Hyppolit add wx version and path to config to the about box
13:10 Hyppolit trunk/Padre/lib/Padre/Wx/
13:23 tracbot #571: About window does not show the path to the config file any more (closed defect) [ http://padre.perlide.org/trac/ticket/571#comment:2 ]
13:25 azawawi szabgab: ping
13:25 azawawi szabgab: damn
13:25 azawawi :)
13:27 Hyppolit svn: r8178 | azawawi++ | http://padre.perlide.org/trac/changeset/8178
13:27 Hyppolit [Padre] Second part of fixing ticket:582 "'Run this test' in broken on win32 when there is a space in the test file name"
13:27 Hyppolit [Padre] This actually fixes "Run Tests". Damn Perl glob()....
13:27 Hyppolit trunk/Padre/lib/Padre/Wx/
13:30 szabgab joined #padre
14:02 tsee joined #padre
14:14 azawawi tsee: ping
14:14 azawawi tsee: busy?
14:14 tsee pongish
14:14 tsee as usual.
14:14 tsee What can I do for you?
14:15 azawawi ah quick question
14:15 azawawi $post_event( MY_EVT, ..., $data)
14:15 azawawi can $data contain hashes/arrays?
14:15 tsee I don't think so => Storable
14:16 azawawi i need to send 2 parameters...
14:16 azawawi progress bar ref, and percent
14:16 tsee I think I wrote a wrapper for such somewhere in the ::Task
14:16 tsee But no promises, my memory is bad.
14:16 PacoLinux joined #padre
14:16 azawawi i followed your WxEvent example
14:16 azawawi and now need to send 2 parameters
14:16 azawawi i tried modifying it to post to my object instead of main
14:17 azawawi and it doesnt work...
14:17 tsee Ah. You're passing the progress bar, which is a Wx object?
14:17 azawawi yeah
14:18 * azawawi fetches the file...
14:18 tsee You must NEVER have any Wx objects in a worker thread.
14:19 azawawi http://padre.perlide.org/trac/brow​ser/trunk/Padre-Plugin-Perl6/lib/P​adre/Plugin/Perl6/UpdateDialog.pm
14:19 azawawi http://padre.perlide.org/trac/browser/trunk/Padre-​Plugin-Perl6/lib/Padre/Plugin/Perl6/UpdateTask.pm
14:19 azawawi tsee: i know
14:20 azawawi on_progress in update task
14:20 tsee Essentially, I think you want to serialize the data with storable. Then just send the serialized data as the event data.
14:21 azawawi yeah
14:22 azawawi and in on_progress i have $main which really does nt give me anything
14:22 azawawi since everything is stored in my $dialog...
14:23 azawawi i thought that you could postevent to your Wx Object but apparently that's not the case...
14:23 azawawi only $main works...
14:23 tsee azawawi, there is a facility in the Task system to pass Wx stuff to the main-thread-event-handler.
14:24 tsee Seach for "main_thread_only" in the Padre::Task docs.
14:24 tsee Whatever you put there in the main thread before submission of the task will be there when you process events
14:25 azawawi accessible through?
14:25 azawawi i see ($main, $event)
14:26 tsee I was confusing things.
14:26 tsee You'd have to include the Task object in the data you pass through the event.
14:26 tsee Sorry :(
14:27 tsee You could do something like this: $self->post_event($FUN_EVENT_TYPE, $data); where $data is the serialized form of [$task_obj, @yourstuff]
14:27 tsee Uh. Let me check something.
14:28 tsee Nevermind what I said in the past five minutes.
14:29 Hyppolit svn: r8179 | azawawi++ | http://padre.perlide.org/trac/changeset/8179
14:29 Hyppolit [Padre] Added Padre::Util::Win32 for win32-specific utility functions
14:29 Hyppolit [Padre] which are usually based on Win32::API
14:29 Hyppolit trunk/Padre/lib/Padre/ trunk/Padre/lib/Padre/Util/
14:29 * azawawi Nevermind-ing :)
14:29 azawawi done
14:29 azawawi :)
14:30 tsee azawawi, sorry, I'm too much out of the loop.
14:31 azawawi i'll try serializing stuff
14:32 azawawi and putting it in $data
14:32 azawawi We need that in refactoring for instance...
14:32 azawawi progress bar inside dialogs
14:32 azawawi Wx::gauge to be exact
14:32 azawawi threads has always been a grey area with Wx...
14:32 azawawi to me at least...
14:33 azawawi tsee: thanks for your help :)
14:33 kaare joined #padre
14:36 dapatrick joined #padre
14:39 bepi joined #padre
14:47 Hyppolit svn: r8180 | azawawi++ | http://padre.perlide.org/trac/changeset/8180
14:47 Hyppolit [Padre] Perl tidy
14:47 Hyppolit trunk/Padre/lib/Padre/Wx/
14:50 tracbot #582: "Run this test" in broken on win32 when there is a space in the test file (closed defect) [ http://padre.perlide.org/trac/ticket/582#comment:1 ]
14:53 Hyppolit svn: r8181 | azawawi++ | http://padre.perlide.org/trac/changeset/8181
14:53 Hyppolit [Padre] Updated Changes
14:53 Hyppolit trunk/Padre/
14:54 Hyppolit svn: r8182 | azawawi++ | http://padre.perlide.org/trac/changeset/8182
14:54 Hyppolit [Padre] Refactored Win32-API specific-code into Padre::Util::Win32::GetLongPathName
14:54 Hyppolit trunk/Padre/lib/Padre/File/ trunk/Padre/lib/Padre/Util/
15:00 Hyppolit svn: r8183 | azawawi++ | http://padre.perlide.org/trac/changeset/8183
15:00 Hyppolit [Padre] Cleaned Changes from ticket:999 and removed extra "" around ticket description. Sewi++
15:00 Hyppolit [Padre] Fixed typos.
15:00 Hyppolit trunk/Padre/
15:20 Alias hrm
15:21 Alias I can't work out how to fix the plugin manager
15:21 Alias When I do enable/disable, it doesn't update the status
15:21 Sewi Alias: I heart that PopularityContest is yours, may I work a bit on it?
15:21 Alias What do you plan to do?
15:21 Alias It's pretty useless without a server to receive the data
15:22 Sewi Nothing before the release, but I'ld prepare something to collect statistic data on usage, prepare the transmission and create a script which accepts and parses the data.
15:22 Sewi Then talk to szabgab how to store it :)
15:22 Alias Sure thing
15:22 Alias Be careful what you collect
15:23 Sewi Yes.
15:23 Sewi One of the reasons why I want to do it after 0.47 is out.
15:23 Alias Stuff like which features and what not people use would be interesting
15:23 * Woody2143 starts writing a new post about how Padre Devs plan on collecting super-secret information from all users... :P
15:24 Woody2143 Morning all
15:25 Sewi Hi Woody2143
15:26 Sewi Woody2143: Don't worry, nothing more than your DNA, bank account data, love affairs and what you eat for lunch :-)
15:26 Woody2143 What I eat for lunch! I object!
15:34 dapatrick joined #padre
15:36 Hyppolit svn: r8184 | Sewi++ | http://padre.perlide.org/trac/changeset/8184
15:36 Hyppolit Updates messages.pot
15:36 Hyppolit trunk/Padre/share/locale/
15:37 Hyppolit svn: r8185 | Sewi++ | http://padre.perlide.org/trac/changeset/8185
15:37 Hyppolit Updated German translation
15:37 Hyppolit trunk/Padre/share/locale/
15:46 Hyppolit svn: r8186 | azawawi++ | http://padre.perlide.org/trac/changeset/8186
15:46 Hyppolit [Padre] Beautified GetLongPathName with some Win32::API magic
15:46 Hyppolit trunk/Padre/lib/Padre/Util/
15:54 tracbot #485: Ctrl-keys don't work properly (closed defect) [ http://padre.perlide.org/trac/ticket/485#comment:4 ]
15:59 Hyppolit svn: r8187 | azawawi++ | http://padre.perlide.org/trac/changeset/8187
15:59 Hyppolit [Padre] Added Win32 Recycle() for 'Move to trash' function
15:59 Hyppolit trunk/Padre/lib/Padre/Util/
15:59 Sewi azawawi: You stole my deal with Getty :-)
15:59 Sewi ping azawawi
16:02 azawawi hmmm
16:02 azawawi idk
16:02 Sewi azawawi: What do you think about a return instead of die for Win32 functions? This would reduce the number of if (Constant::WIN32) calls
16:03 azawawi Sewi: let us keep it now until we finish :)
16:03 azawawi premature optimization...
16:04 Sewi s/\s+\s// is the same as s/\s+//,isn't it? (In this case having one or two \s doesn't matter)
16:07 azawawi nop
16:07 azawawi \s+\s => at least 2
16:07 azawawi \s+ => at least 1
16:08 Sewi Yes, but for $pid it looks more like a dev error...
16:08 Hyppolit svn: r8188 | azawawi++ | http://padre.perlide.org/trac/changeset/8188
16:08 Hyppolit [Padre] Fixed ticket:553 Directory browser's "Move to trash" feature is not working on Vista (win32)
16:08 Hyppolit trunk/Padre/lib/Padre/Wx/Directory/
16:08 Getty azawawi is a coding machine
16:08 Hyppolit svn: r8189 | Sewi++ | http://padre.perlide.org/trac/changeset/8189
16:08 Hyppolit Added AllowSetForegroundWindow to the Win32-API
16:08 Hyppolit trunk/Padre/lib/Padre/Util/
16:08 Sewi Getty: He is.
16:09 Getty i had my coderush with Apocalypse beginning of the year
16:09 Hyppolit svn: r8190 | Sewi++ | http://padre.perlide.org/trac/changeset/8190
16:09 Hyppolit Moved Win32-API function to Padre::Util::Win32
16:09 Hyppolit trunk/Padre/lib/
16:09 Getty but then the project and all code got worthless cause of political bullshit
16:09 Getty and so i sit in a coding depression ;)
16:10 Getty and Apocalypse is missing :-(
16:10 Getty since several months
16:10 azawawi cool
16:10 azawawi Getty: hi there
16:11 Getty hiho
16:13 Hyppolit svn: r8191 | Sewi++ | http://padre.perlide.org/trac/changeset/8191
16:13 Hyppolit Made Win32.pm loadable on Linux (not usable, but doesn't crash)
16:13 Hyppolit trunk/Padre/lib/Padre/Util/
16:14 Hyppolit svn: r8192 | azawawi++ | http://padre.perlide.org/trac/changeset/8192
16:14 Hyppolit [Padre] Updated Changes
16:14 Hyppolit trunk/Padre/
16:16 azawawi Sewi: I have several solutions for solving Padre's black screen (console) on startup...
16:16 azawawi Sewi: 1) use Bat2ExeConverter which gives a padre.exe with the icon and everything
16:16 Sewi azawawi: I won't touch Win32.pm any longer now. :-)
16:17 azawawi con: Bat2ExeConverter is considered a virus/trojan by some antiviri...
16:17 azawawi repacks/unpack its dlls in temp dir...
16:18 azawawi and padre.exe in padre distro can look bad...
16:18 azawawi 2) padre.vbs
16:18 azawawi con: you need to call "padre.vbs" explicitly, "padre"  does not work; other than that it works flawlessly...
16:19 azawawi 3) create a win32 shortcut via Win32::Shortcut in win32 via a menu...
16:20 azawawi general con: padre does not work well with wperl; syntax check does not work!
16:20 azawawi wperl has no stdout/stderr...
16:20 azawawi im finished :)
16:20 azawawi sorry for the spam lol
16:22 Sewi azawawi:  What is wrong by starting Padre via .bat?
16:22 azawawi Sewi: black console is always with it...
16:23 azawawi Sewi: in win32, invoking .bat = console at startup
16:23 Getty its disgusting
16:23 azawawi Sewi: and perl.exe is another console
16:23 Getty if i search for "Module::Install" on google, i get first as alternative suggestion: "installing modules on joomla"
16:23 Getty <shiver>
16:24 azawawi even if we modify padre.bat to use wperl
16:24 azawawi that's a quick annoying splash black console at Padre's startup...
16:25 Sewi Let me try something...
16:26 azawawi the best thing to do is to call wperl on win32 and supply two file arguments for stdin/stdout... for background tasks
16:26 azawawi so Padre atm under wperl simply sucks :)
16:26 azawawi ticket:9999
16:28 Getty so i get my ugly box away?
16:28 Getty finally?
16:28 Sewi azawawi: Which is your priority: A clean looking solution or a working solution?
16:29 azawawi what do you mean?
16:31 azawawi Sewi: we need to make Padre a win32 native application
16:31 azawawi Sewi: so people working on it do not feel the difference/get annoyed...
16:31 Sewi Ok, so you choose working :-)
16:32 Sewi What's in padre.bat?
16:33 azawawi a call to perl -x -S ....
16:33 Sewi so it's a oneliner?
16:33 azawawi yup
16:34 perletc joined #padre
16:34 Sewi Is the content generated dynamically during installation or fixed?
16:34 azawawi pl2bat generated... always the same as long as script/padre is the same
16:34 azawawi http://pastebin.ca/1574091
16:36 azawawi s/perl/start wperl/g
16:37 Sewi Let me check an idea...
16:38 azawawi and this the VBS launcher
16:38 azawawi http://pastebin.ca/1574096
16:38 azawawi if we put that in path, 'padre.vbs' can launch easily
16:38 azawawi no console
16:38 azawawi Getty: pingo
16:39 szabgab azawawi, talk to Alias and CSJewell before running out and adding a .vbs
16:39 Getty pingo?
16:39 szabgab I am far from sold on the idea
16:39 Getty you want me to test something?
16:39 szabgab but I am not a windows user either
16:39 szabgab usually not
16:39 Alias grr
16:39 azawawi Alias: hehe
16:40 azawawi we really need to fix this on win32...
16:40 azawawi usability...
16:40 Getty what?
16:41 azawawi Getty: try the padre.vbs http://pastebin.ca/1574096 please
16:41 szabgab Alias, did I wake you up?
16:42 Getty works fine
16:42 Getty no blackwindow
16:42 Getty its cool
16:42 Getty i want that
16:42 abraxxa left #padre
16:42 azawawi Alias: Bat2ExeConverter is really bad/cool... unpacks dlls while make test, AVG stopped it...
16:42 Sewi azawawi: Sorry, need to eat, family is waiting, brb
16:42 azawawi Sewi: np
16:43 azawawi szabgab: did u see the vbs script, it simply launch padre.bat without a console...
16:43 azawawi szabgab: s/launch/launches/
16:44 szabgab I belive it does, I just have no idea what are the implications of that, dependency wise, how it looks for a windows user etc
16:44 Getty family... life.... with this attitude you never get something in opensource ;)
16:45 azawawi szabgab: from wikipedia, "VBScript has been installed by default in every desktop release of Microsoft Windows since Windows 98[1]; as part of Windows Server since Windows NT 4.0 Option Pack[2]; and optionally with Windows CE (depending on the device it is installed on)."
16:45 Getty VBS is 100% standard
16:45 Getty its required for nearly any stuff in windows
16:45 Hyppolit svn: r8193 | adamk++ | http://padre.perlide.org/trac/changeset/8193
16:45 Hyppolit Heavy refactoring of the Plugin Manager, the status updates should now work properly on all platforms, and the code should generally be a lot more maintainable.
16:45 Hyppolit trunk/Padre/lib/Padre/Wx/Dialog/
16:46 Getty even installer of hardware sometimes use VBS scripts
16:47 azawawi szabgab: adding padre.vbs is the easiest solution here. It is simply a copy operation to ${PERL_INST_DIR}/bin
16:47 Getty oh oh...
16:47 Getty wait
16:47 azawawi szabgab: and we'll make it win32-only ofcourse
16:47 Getty let me test
16:47 Getty if it has any effect in path
16:47 Getty i dont think he executes it as commando
16:48 Getty ok wonderful
16:48 Getty works
16:48 Getty awesome
16:48 azawawi Getty: it detaches itself from console
16:48 Getty yeah
16:48 Getty works fine
16:48 azawawi Getty: like a real win32 app
16:48 Getty i dont even need the ending
16:50 azawawi if you install it in C:\strawberry\c\bin , i think yes
16:50 Getty i tried it works
16:50 Getty i installed it in windows\system32
16:50 Getty and entered padrevbs (i called the file padrevbs.vbs)
16:50 Getty and it started up
16:50 Getty wonderful
16:51 szabgab azawawi, and can that have path relative to the .vbs file?
16:51 szabgab so you won't need to hardcode c:\strawberry?
16:52 azawawi no no need
16:52 azawawi we need only to rename padre.bat to padre_debug.bat
16:53 Getty i wouldnt
16:53 azawawi nop that theory does not work...
16:53 Getty i would call the new one wpadre and link that to the startmenu
16:53 azawawi win32 needs full name
16:53 Getty so if you enter "padre" on console you get the output
16:53 Getty but that is just opinion
16:53 azawawi Getty: that's the Win32::Shortcut solution,...
16:54 azawawi Getty: which is what CSJewell is doing
16:54 Getty but i get the black box
16:54 Getty when i start from start menu
16:54 azawawi padre.vbs
16:54 Getty no no
16:54 Getty if i use the CSJewell installer, and there i hit padre in the startmenu
16:54 azawawi padre => padre.bat
16:54 Getty then i get the cmd box still
16:54 azawawi yeah
16:54 azawawi CSJewell didnt point it to wperl
16:55 azawawi it is really easy... the problem is the api he's using is not allowing him to do it...
16:56 Getty but if he just adds a shortcut to the vbs that you install as wpadre.vbs
16:56 Getty then we are all cool :D
16:56 azawawi yup
16:56 azawawi 100% correct
16:56 Getty i win!
16:56 azawawi hehe
16:57 Getty what you guys did without me ;)....
16:57 Getty just hoping it is fine on windows, eh? ;)
16:57 azawawi who's with adding padre.vbs to padre on win32 ? raise your hands :)
16:57 Getty wpadre.vbs?
16:57 Getty or padre.vbs?
16:57 Getty cause if we got padre.vbs AND padre.bat then we got a problem
16:58 skeeterbug joined #padre
16:58 azawawi Getty: why a problem?
16:59 Getty then i dont know what windows takes first, and an experienced user cant really decide what he wants
16:59 azawawi if you type padre, win32 => padre.com, padre.exe, padre.bat, padre.cmd...
17:00 azawawi if you type padre.vbs, then win32 launches it...
17:00 Getty but why not go with perl.exe wperl.exe convention and call it wpadre.vbs ?
17:00 Getty so that padre.bat behaves like perl.exe and wpadre.vbs behaves like wperl.exe
17:00 Getty just what i would suggest as windows user who is already used to the perl.exe <=> wperl.exe problem
17:01 azawawi hmm padre.vbs is one-char shorter? :)
17:01 Alias righto
17:01 Alias Well, the plugin manager is finally working right
17:01 * azawawi updates
17:02 Alias All the status icons/etc in the list actually work now
17:02 Getty azawawi: but collides to much for the people who want the output
17:02 Alias Although maybe they used to work on non-Win32
17:02 Getty azawawi: call it wadre :-P
17:03 azawawi Alias++ # for fixing that annoying plugin manager bug
17:03 Alias It kept pissing me off
17:03 azawawi padre.vbs , wpadre.vbs  ... hmmm
17:04 Alias As usual, it was 6 hours of fucking around and rearranging to discover I just had to stop using method ->SomeRandomThing and switch to ->SomeOtherThing
17:04 Getty azawawi: you do wpadre, cause of wperl :-P
17:04 Getty azawawi: you arent even a windows user, why you think about it? :)
17:05 azawawi Alias: so what do u think about installing a (w)?padre.vbs script to c:\strawberry\perl\bin ?
17:05 azawawi Getty: dont worry. We need to install it first :)
17:12 Hyppolit svn: r8194 | azawawi++ | http://padre.perlide.org/trac/changeset/8194
17:12 Hyppolit [Padre] Added a share/scripts/wpadre.vbs experiment... Getty++
17:12 Hyppolit trunk/Padre/share/ trunk/Padre/share/scripts/
17:18 Sewi azawawi: What about a launcher.exe?
17:18 azawawi Sewi: i have one but anti-virus hate it
17:19 Sewi Small C (plusplus) tool which does the same as padre.bat or even just starts padre.but
17:19 azawawi Sewi: i suppose we can write one
17:19 azawawi Sewi: but it will take time a bit :)
17:20 Sewi Let me bring my kids to bed and I'll try one, shouldn't be too hard.
17:20 azawawi I'll give you the win32 code if you need
17:21 azawawi Win32::Process->CreateProcess...
17:21 azawawi DETACHED_PROCESS
17:21 azawawi or DETACHED_CONSOLE
17:21 azawawi if i remember correctly
17:21 Alias joined #padre
17:22 Alias sorry, back
17:22 Alias I'm totally fine with anything that makes a gui and a start menu work
17:22 Alias hey, 46 people
17:22 Alias new record
17:23 Hyppolit svn: r8195 | azawawi++ | http://padre.perlide.org/trac/changeset/8195
17:23 Hyppolit [Padre] wpadre.vbs at your service...
17:23 Hyppolit trunk/Padre/
17:24 mj41_ joined #padre
17:25 Hyppolit svn: r8196 | azawawi++ | http://padre.perlide.org/trac/changeset/8196
17:25 Hyppolit [Padre] Simplified wpadre.vbs installation...
17:25 Hyppolit trunk/Padre/ trunk/Padre/script/ trunk/Padre/share/
17:25 Hyppolit svn: r8197 | adamk++ | http://padre.perlide.org/trac/changeset/8197
17:25 Hyppolit Noting the plugin manager half-rewrite
17:25 Hyppolit trunk/Padre/
17:27 Alias um "Merged OS detection" ?
17:28 Sewi ok, let me try...
17:28 Alias There's only one OS detection in ::Constant
17:28 Alias The other is a Wx underlying widget library detection
17:28 Alias Which just HAPPENS to be rather similar :)
17:28 Sewi Alias: There was a second one in ::Util
17:30 Alias oh, that one
17:30 Alias I left that in case one of the plugins needed it
17:30 Alias But yeah, probably time to kill it
17:30 Sewi I left the comment there so that everybody who runs into warnings/errors knows how to fix it right.
17:31 Alias yup
17:31 Alias ++ on that one
17:31 * Alias heads to bed
17:31 Hyppolit svn: r8198 | Sewi++ | http://padre.perlide.org/trac/changeset/8198
17:31 Hyppolit Just a try...
17:31 Hyppolit branches/ branches/PadreLauncher/
17:31 Sewi azawawi: Please rename padre.bat to padrestart.bat and try this (r8198)
17:32 Hyppolit svn: r8199 | Sewi++ | http://padre.perlide.org/trac/changeset/8199
17:32 Hyppolit Use Padre::Util::Win32
17:32 Hyppolit trunk/Padre/lib/
17:32 Hyppolit svn: r8200 | Sewi++ | http://padre.perlide.org/trac/changeset/8200
17:32 Hyppolit Added dirname and fixed basename support
17:32 Hyppolit trunk/Padre/lib/Padre/File/
17:33 azawawi Sewi: ok :)
17:33 Hyppolit svn: r8201 | Sewi++ | http://padre.perlide.org/trac/changeset/8201
17:33 Hyppolit Added tests for dirname and new tests for basename in Padre::File::HTTP
17:33 Hyppolit trunk/Padre/t/
17:33 Sewi got 8200 :-)
17:34 azawawi oops
17:34 azawawi hehehe
17:35 * Sewi aims at 10k :-)
17:35 azawawi VB + + Sewi++ :)
17:35 azawawi karma VB
17:35 Hyppolit Karma of VB is 0
17:35 azawawi :)
17:36 Sewi karma Perl
17:36 Hyppolit Karma of Perl is 0
17:36 Sewi What???
17:36 Sewi karma C
17:36 Hyppolit Karma of C is 27
17:37 Sewi azawawi: I could get a C version of this...
17:37 Sewi Does it work?
17:37 Hyppolit svn: r8202 | azawawi++ | http://padre.perlide.org/trac/changeset/8202
17:37 Hyppolit [Padre] Install padre.exe . Sewi++. VB-- :)
17:37 Hyppolit trunk/Padre/ trunk/Padre/script/
17:38 * azawawi building it to make sure
17:38 azawawi let us see if pl2bat croak on it or not
17:38 azawawi s/croak/croaks
17:39 azawawi padre.exe first, then padre.bat
17:39 azawawi should work
17:39 Sewi It launches "padrestart.bat"
17:39 Sewi Having a .exe/.bat name collision isn't good.
17:39 azawawi yeah we can modify that to padre.bat
17:39 azawawi Sewi: in win32, padre.exe is first then padre.bat
17:40 azawawi Sewi: if you say 'padre.bat' then it gets padre.bat
17:40 azawawi Sewi: the side effect to that is having pl2bat adding padre.exe.bat
17:40 dapatrick1 joined #padre
17:41 Hyppolit svn: r8203 | Sewi++ | http://padre.perlide.org/trac/changeset/8203
17:41 Hyppolit Now launching padre.bat
17:41 Hyppolit branches/PadreLauncher/
17:41 Hyppolit svn: r8204 | azawawi++ | http://padre.perlide.org/trac/changeset/8204
17:41 Hyppolit [Padre] Changes was in win32 format...
17:41 Hyppolit trunk/Padre/
17:42 azawawi Sewi: add this ico please...
17:42 Sewi I thought start had an option to "launch without window", then padre.bat could just be @start /nowin padre2.bat, but it doesn't work
17:42 azawawi Sewi: Perl-Dist-Padre\share\padre.ico
17:42 Sewi azawawi: Does it work?
17:43 * azawawi building...
17:44 azawawi M:I should have an install_exe or something like that
17:45 Sewi Perl just needs a real perl2exe compiler. It could use perl.dll which should be installable like .NET, but it must create idependet EXE-files.
17:46 Alias yup
17:46 Sewi Modules may be DLLs or linked into the EXE.
17:46 Hyppolit svn: r8205 | azawawi++ | http://padre.perlide.org/trac/changeset/8205
17:46 Hyppolit [Padre] new padre.exe ... Please commit here... not in the branch :) Sewi++
17:46 Hyppolit trunk/Padre/script/
17:46 Alias That bat2execonverter isn't really good enough
17:46 Alias It's a stopgap measure
17:46 * Sewi didn't want to fill the trunk with waste :-)
17:46 azawawi Alias: it is an anti-viri's nightmare.. unpacking dlls!
17:47 azawawi waste it please lol
17:47 azawawi and optimize EXE if there is an option for that
17:47 azawawi for size
17:47 Alias azawawi: I had my network admins visit my desk in person to ask some questions about viruses they spotted me intentionally downloading in source form
17:47 Alias Turns out it was the official international "test virus"
17:47 azawawi hehe
17:47 Alias A harmless sequence of bytes that every virus detection is required to respond false positive to
17:48 Alias It's in minicpan in a few places, apparently
17:48 Alias :)
17:48 Sewi azawawi: I'll get a C version of it if it works.
17:48 Hyppolit svn: r8206 | Sewi++ | http://padre.perlide.org/trac/changeset/8206
17:48 Hyppolit Clean up
17:48 Hyppolit branches/PadreLauncher/
17:48 azawawi Getty: svn up please and test it :)
17:48 Alias night
17:49 tracbot #310: vertical alignment is a bit broken (assigned defect) [ http://padre.perlide.org/trac/ticket/310#comment:1 ]
17:49 Sewi night alias
17:49 azawawi g'night alias
17:49 azawawi Sewi++ # for exe
17:50 azawawi Sewi: we need only the ico file for Padre
17:50 azawawi Sewi: and optimize for size
17:50 azawawi Sewi: and we're done here
17:50 azawawi Sewi: "padre" works!!!
17:50 Getty azawawi: how i test it really?
17:50 azawawi Sewi: "padre.bat" still works
17:50 azawawi Getty: cpan . in trunk
17:50 Sewi azawawi: Just as an idea... If perl.exe would be perl.dll, it should be possible to create exe files which just load perl.lib and run an eval over the .pl source compiled into the exe.
17:50 azawawi Getty: it will install it
17:51 Getty azawawi: so that i kill my installation? ;) ok i do it
17:51 Sewi Modules could live in C:\windows\perl32 and be pm's
17:51 azawawi Sewi: that's what obfuscators do...
17:51 * Sewi grabs a phone and orders a C app...
17:52 azawawi Sewi: im dropping the vbs version if it works for Getty :)
17:52 Sewi got no answer :-(
17:52 azawawi Sewi: i hate vbs to tell you the truth... lol
17:52 Getty i dont care as long as it works
17:53 Sewi But I'll catch him asap
17:53 Getty even tho the vbs isnt that bad
17:53 Getty vbs is better then .bat ;)
17:53 azawawi Sewi: i dont see why we need C for now
17:53 Sewi azawawi: The VB exe requires the VB runtimes...
17:53 azawawi Sewi: if it doesnt need any other dll dependencies...
17:53 Sewi and it's big.
17:53 azawawi Sewi: aha
17:54 Sewi and I got a C guru who likes things like this :-)
17:54 azawawi Sewi: then post the source code in that branch please
17:54 Sewi yes.
17:54 azawawi Sewi: and i'll cook you a mean gcc app :)
17:54 Sewi Here is the final VB source:
17:54 Sewi Shell "padre.bat " + Command$, vbHide
17:54 Sewi End
17:54 Sewi :-)
17:54 azawawi hehehe
17:55 azawawi Sewi: could you please modify it to use padre's bufferfly ico (Perl-Dist-Padre\share\padre.ico)
17:55 azawawi Sewi: i made that and it is cool :)
17:57 Hyppolit svn: r8207 | azawawi++ | http://padre.perlide.org/trac/changeset/8207
17:57 Hyppolit [Padre] die wpadre.vbs... hehe :)
17:57 Hyppolit trunk/Padre/ trunk/Padre/script/
17:58 azawawi Getty: remember to clean up your system32 from that vbs file
17:58 Sewi azawawi: I get "invalid picture" when trying
17:58 azawawi Sewi: maybe it needs a png/bmp ?
17:59 azawawi Sewi: or ico?
17:59 Sewi lol, I got this URL: http://padre.perlide.org/trac/browser/​trunk/Perl-Dist-Padre/share/padre.ico
17:59 Sewi Try it in your browser :-)
17:59 azawawi hehe
18:00 azawawi i use iconfx to generate it
18:00 azawawi and it worked on xp / vista
18:00 azawawi vb 6?
18:00 Sewi eys
18:00 Sewi yes
18:00 azawawi ah...
18:00 azawawi 64x64 ico maybe
18:00 Sewi It works if I use the file's url, not the trac page :-)
18:01 azawawi lol
18:01 azawawi so it worked?
18:01 azawawi http://padre.perlide.org/trac/export/820​7/trunk/Perl-Dist-Padre/share/padre.ico
18:02 Sewi try yourself :)
18:02 Hyppolit svn: r8208 | Sewi++ | http://padre.perlide.org/trac/changeset/8208
18:02 Hyppolit Updated PadreLauncher
18:02 Hyppolit trunk/Padre/script/
18:02 Getty dudes
18:03 Getty you messed up something
18:03 Getty no i got: padre, padre.exe, padre.bat, padre.exe.bat
18:03 azawawi Getty: didnt mess up
18:03 azawawi Getty: that's pl2bat
18:03 azawawi Getty: simply run "padre"
18:03 Getty is that an excuse or what? ;)
18:04 Getty padre starts it
18:04 azawawi Getty: we'll ask Alias to provide us with an install_exe or something
18:04 azawawi Getty: im using install_script 'padre.exe' atm :)
18:04 Getty but i'm confused
18:04 Getty now i got .bat and .exe
18:04 azawawi confused with that?
18:04 Getty or is the .bat old then?
18:04 azawawi Getty: i'll explain
18:05 azawawi Getty: we have 2 scripts now
18:05 azawawi Getty: script/padre => bin\padre.bat
18:05 azawawi Getty: script/padre => bin\padre.exe.bat
18:05 azawawi Getty: and it also copies bin\padre and bin\padre.exe
18:05 azawawi Getty: that's how it works :)
18:06 azawawi pl2bat copies script/padre and generates script/padre.bat in perl\bin folder
18:06 Getty AH!
18:06 azawawi when you say install_script 'script/padre' in Makefile.PL
18:06 Getty cause it messes up
18:06 azawawi but works :)
18:06 azawawi right?
18:06 Getty its chaos
18:06 azawawi perl 101 lol
18:08 azawawi Sewi++, Getty++ # for creating and testing padre.exe :)
18:08 Sewi thanks azawawi
18:08 Sewi Hmm, my C guy is still hiding :-(
18:09 Sewi But I'll catch him sooner or later.
18:09 Getty i'm also a C guy :-P not just a good one lol
18:09 azawawi we can do it via gcc
18:09 Sewi Getty: Feel free to convert the VB source above.
18:10 Getty nah, as i said, no good ;)
18:10 azawawi vb runtimes seem to be installed by default on vista
18:10 azawawi and most probably xp
18:10 Sewi maybe you got it by some program.
18:11 Getty i dont think it is on xp
18:11 Sewi it isn't.
18:11 Getty but vbs is ;)
18:12 azawawi downloading mingw32
18:12 azawawi :)
18:12 Getty oha!
18:12 Getty ;)
18:12 Getty oh man that compiling stuff under windows suxx so hard
18:13 Getty cause you must always think about the Visual Studio morons if you want to let others also compile it
18:13 Getty and some opensource libraries are even just made for being compiled under VS and arent compilable by mingw
18:13 Sewi 99,99% of the users won't compile this tool themself.
18:13 Getty (btu you need all compiled with VC++ OR mingw)
18:13 azawawi Getty: gcc is included in strawberry lol
18:14 azawawi Alias++
18:14 Sewi karma Alias
18:14 Hyppolit Karma of Alias is 31
18:14 Getty doesnt change the situation ;)
18:14 azawawi Karma
18:14 azawawi karma
18:14 azawawi karma *
18:14 Hyppolit Karma of * is 0
18:14 azawawi karma all
18:14 Hyppolit Karma of all is 0
18:14 Sewi azawawi: I won't risk compiling the launcher as a 32 bit exe runs everywhere.
18:15 Sewi means: Compile it on-thy-fly during install.
18:15 azawawi Sewi: yeah i noticed that
18:16 azawawi Sewi: perl6.exe didnt work on 64-bit 2003
18:16 Sewi Really?
18:16 azawawi yeah
18:16 Sewi Was it precompiled?
18:16 azawawi dll problems i think
18:16 azawawi yup
18:17 azawawi parrot.exe hello.pir # worked
18:17 Sewi ok, but the launcher shouldn't require any dll
18:17 azawawi perl6.exe hello.pl # no output
18:18 Sewi azawawi: Any news on release-time?
18:19 Hyppolit svn: r8209 | azawawi++ | http://padre.perlide.org/trac/changeset/8209
18:19 Hyppolit [Padre] Updated changes
18:19 Hyppolit trunk/Padre/
18:19 azawawi no idea there
18:19 azawawi szabgab seems busy these days
18:19 azawawi i'll talk 2 Ryan52 in the morning
18:19 azawawi if you see him tonight, tell him to branch out...
18:20 azawawi please :)
18:20 Ryan52 hmmm?
18:20 Ryan52 oh
18:20 Ryan52 k
18:20 Sewi Ryan52: hi, azawawi asked me to talk to you... :-)
18:20 Sewi azawawi: btw, what is the requirement to get here? http://padre.perlide.org/developers.html
18:21 azawawi you arent there?
18:21 azawawi template.padre.perlide.org\data\developers
18:21 Ryan52 Sewi: sorry I didn't get to it this weekend. today I stayed home because I'm sick, so I guess I have time to do it today...
18:22 azawawi Sewi: http://padre.perlide.org/trac/browser/trunk​/template.padre.perlide.org/data/developers
18:22 azawawi Sewi: add you name there...
18:22 Sewi azawawi: ok, thanks
18:22 azawawi Ryan52: i hope you get well soon :)
18:22 Sewi Ryan52: Don't worry. Get well, then work.
18:23 azawawi Sewi: let us move release date to wed night
18:23 azawawi Sewi: so Ryan52 can sleep :)
18:24 azawawi Sewi: besides i think i need to test padre under wperl, now that padre.exe (Sewi++) is here :)
18:24 Sewi I guess a later release date is better for me anyway, I really need to work on my other project because Padre  don't gets me money :-(
18:24 azawawi Sewi: next week?
18:25 Sewi There are things I'ld like to do, but not before the release :-)
18:25 Sewi azawawi: Don't belong on me, I've to force myself to work on it.
18:25 * Sewi just tries this now, but Padre is much more fun.
18:25 azawawi Sewi: you can always disable functionality if you feel it is not ready for public use...
18:25 azawawi Sewi: but once disabled, it will bitrot :)
18:27 azawawi interesting, http://ajaxian.com/archives/web​gl-available-in-firefox-nightly
18:29 Getty webgl.. they should stop taking drugs
18:31 azawawi they're moving fast
18:38 Sewi Does the changed-marker ("*") really work for you?
18:50 tracbot #598: Ctrl-L kills clipboard (new enhancement) [ http://padre.perlide.org/trac/ticket/598 ]
19:01 PerlJam that sounds more like a bug than an enhancement
19:08 Getty can someone tell me btw when does this stops that i always must check on the web for read and write of files?
19:09 * Sewi doesn't understand the question
19:12 Sewi Getty: Could you explain, please?
19:13 Getty lets say: when i get to know that read and write file stuff out of mind and dont need to check it on the net always ;)
19:13 Getty i can write Moose classes, POE classes out of mind, but if i need to read or write a file, i must check on net always
19:13 Sewi Do you know F2?
19:14 Getty lol not in padre
19:14 Getty in perl
19:14 Getty :)
19:14 Getty ah you mean using the help in padre
19:14 Getty i dont code in padre right now
19:14 Getty doing some remote work
19:14 Getty didnt wanted to scare myself with using padre for it
19:15 Sewi You could just use it as a reference: F2 is a full perl reference including all your installed modules.
19:15 Getty which still doesnt explain about read and write files ;) hey but someone can answer me
19:16 Getty how i can check for an used $fh? i want to recycle it, close it and reopen it if its closed, so make packages of my data
19:16 Getty but !$fh isnt a suitable test it seems
19:17 azawawi good night *
19:17 azawawi &
19:17 Sewi azawawi: good night
19:17 Sewi Getty: fileno
19:17 Getty fileno?
19:17 Getty fileno $fh ?
19:17 Getty so !(fileno $fh) ?
19:17 Sewi open $c,"Changes"; print fileno($c); close $c; print fileno($c);
19:18 Sewi Returns the FD-Number for a fh or undef.
19:18 Getty doesnt work it seems...
19:18 Sewi win or linux?
19:19 Getty AH! wait
19:19 Getty how i make it a $fh before?
19:19 Getty fileno crashs if its not a filehandle
19:19 Sewi just try the oneliner I wrote you above.
19:20 Sewi assuming that there is a "Changes" - file in this dir ;-)
19:20 Getty yeah but i got a for loop so i start with if (!(fileno $c))
19:20 Getty but before i do the first open $c
19:20 Getty its not a filehandle
19:20 Getty and so fileno crashs
19:20 Sewi Not here, just returns undef.
19:20 Sewi eval it.
19:20 Getty wait, you open it first
19:20 Getty so its a $fh
19:21 Getty try this: print fileno($c); open $c,"Changes"; print fileno($c); close $c; print fileno($c);
19:21 Sewi print $c; open $c,"Changes"; print fileno($c); close $c; print fileno($c);
19:21 Sewi I just did
19:21 Getty no
19:21 Getty you did print $c, of course that works ;)
19:21 Sewi print fileno($c); open $c,"Changes"; print fileno($c); close $c; print fileno($c);
19:21 Getty yes that
19:21 Sewi Yes, I changed the line, but I tried it on my linux pc.
19:21 Getty and it worked?!
19:21 Getty ah wait
19:21 Getty use strict;
19:21 Getty ;)
19:22 Sewi And because I didn't find any working clipboard-copy-between-linux-and-win - tool, I had to retype it for IRC :)
19:22 Getty Can't use an undefined value as a symbol reference at ./parsecoast.pl line 52.
19:22 Sewi use my
19:22 Getty i cant?! then i must change the code flow
19:22 Getty and do 2 opens
19:22 Getty and so
19:22 Getty not cool
19:22 Getty how i can define $fh is a symbol reference?
19:23 Getty i dont know about that file handle magic of perl much, so also about that kind of special vars
19:23 Sewi if (defined($fh) and (fileno($fh)) {
19:23 Getty mh also an idea
19:23 Sewi Hmm, easier:
19:23 Sewi if (defined($fh)) {
19:23 Sewi should do the job
19:23 Getty you think?
19:23 Sewi yes
19:23 Getty no doesnt work
19:24 Getty cause i do: my $fh before
19:24 Getty and if i dont do that, i get a strict problem again
19:24 Getty BUT
19:24 Sewi my doesn't define anyth
19:24 Sewi thing
19:24 Getty but it gives errors
19:24 Sewi my $fh;
19:24 Sewi $fh is still undef, but declared.
19:24 Getty but wait wait
19:24 Sewi It doesn't work without fileno
19:24 Getty the if (!$fh or !(fileno $fh)) works fine
19:24 Getty its a one time script
19:25 Sewi ok, go ahead
19:25 Getty cool...
19:25 Getty now the packages are ready for the scan
19:35 Getty ok i got a logical problem where i come into a deep recursion...
19:36 Getty fuck, goto could solve it
19:36 Sewi For a one time script? use it
19:36 Getty nah its on several machines and reused
19:36 Getty that other one
19:36 Getty i got goto, yes?
19:37 Getty and its no recursion problem?
19:37 Sewi Use an exit variable.
19:37 Sewi $self->{exit} = 1;
19:37 Sewi $self->{exit} and last; # in the loops, use and return for subs
19:38 Getty let me epxlain the problem, i got a function "newscan()" which wants to make a specific new scan, and if it sees that the scan is already in progress or done, it calls newscan again
19:38 Getty if there are 1000< scans already done.. you know
19:38 Getty probably with my headache i think wrong, but it was logical for me todo it that way
19:38 Sewi go up one level.
19:38 Sewi while (1) {
19:38 Sewi my $Result = newscan();
19:38 Getty no no
19:38 Getty its POE
19:38 Sewi last if $Result;
19:38 Sewi }
19:38 Getty it triggers a post
19:39 Getty i dont have a while(1)
19:39 Sewi Why?
19:39 Getty cause its POE?
19:39 Sewi You just need to call this loop instead of newscan.
19:39 Getty but then the POE loop nevers executes the scans ;)
19:40 Sewi and instead of re-calling newscan, just return 0, otherweise return 1
19:40 * Sewi don't know POE
19:40 Getty oh.....
19:40 Getty you should get it known
19:40 Getty event based coding
19:40 Sewi Sounds very resouce-eating :-)
19:41 Sewi Okay, now you have:
19:41 Sewi sub newscan_event {
19:41 Sewi if ($scan_done) { &newscan_event; return; }
19:41 Getty no newscan is just a function that triggers something that makes an event
19:41 Sewi }
19:41 Sewi right?
19:41 Getty after that event newscan is triggered again
19:41 Getty wait i show you source
19:42 Getty http://cubestats.net/files/MCS.Scan.pm.txt
19:42 Sewi While reading about POE on CPAN it sounds very... umst�ndlich?
19:44 Getty oh its so handy
19:44 Getty i use MooseX::POE so i combine it with Moose to make it more handy
19:45 Getty if you see the components and combine them you get into a total candystore rush
19:45 Getty i made a server with: API Console, HTTP Server, XML Server (Streaming), 2 Bot Connections and parsing a Gameserver output
19:45 Getty all in one task, and without any big "scoping" problems
19:45 Getty POE is so awesome
19:46 Sewi http://pastebin.com/d57697aa5
19:47 Getty got it
19:47 Getty good idea
19:48 Sewi Even easier: http://pastebin.com/d1201cd04
19:51 Getty no it doesnt change the required var ;) but yes i get also this idea
19:51 Sewi I don't understand what your code really does, just scrolled over it, but as long as you got the idea, everything seems good :-)
19:52 Getty you see he does a lookup($id) to see if he needs to scan
19:52 Getty but if inside your while(1) loop the $id never changes => fail ;)
19:53 Sewi http://pastebin.com/d1201cd04
19:53 Getty you gave the same url again ;)
19:53 Sewi yes, but I changed it
19:54 Sewi http://pastebin.com/dce9383c
19:54 Sewi sorry
19:54 Sewi didn't save
19:54 * Sewi is a little sleepy
19:58 dapatrick joined #padre
19:58 Sewi Hi dapatrick
19:58 dapatrick Hello.
20:00 Sewi Getty: While we're talking about solutions: I have to save some data in a DB about relationships between two objects. So I added Col A and Col B, each of them contains an object ID.
20:01 Sewi Each time I look up something, I need to check both cols, because a relationship of A => B is the same as B => A. Any idea how to make this better?
20:03 Getty so we talk about relation inside the same table?
20:03 Getty written in another
20:04 Sewi There is a table of objects with an ID and some data for each.
20:04 Getty but i dont think there is any very good trick if the relation is "unweighted"
20:05 Sewi There is really no difference between A => B and B => A. Even worse, the relations should be unique.
20:05 Getty yeah sounds a bit messy situation
20:05 Sewi When there is a A => B, the must not be a B => A.
20:06 Getty but there can be A => C A => D A => E ?
20:06 Sewi yes
20:06 Getty and its no parent concept?
20:06 Sewi and E => C, if they want.
20:06 Sewi There are no parents which have anything to do with the relations.
20:06 Getty then you must check lots of stuff all the time on INSERT and UPDATE ;)
20:07 Sewi If A and E are childs of the same parent, it won't make logical sense that they get a relation, but this is a human thing, technically there is no problem if they do
20:10 Sewi It doesn't use SQL at all, but I think I got an idea...
20:10 dapatrick joined #padre
20:11 Sewi dapatrick: Do you need help? Got any questions?
20:12 dapatrick Nope, sorry.  I just lurk.
20:12 Sewi no problem, just asking :)
20:12 dapatrick I had my network connection winked out and back on.  Sorry to draw attention.
20:12 dapatrick Thanks for asking!
20:39 Sewi good night
20:39 * Sewi &
21:45 dapatrick left #padre
21:55 SvenDowideit__ joined #padre
22:35 tracbot #594: I cant hit F1 on Windows (closed defect) [ http://padre.perlide.org/trac/ticket/594#comment:3 ]
22:51 patspam joined #padre
23:17 Sewi joined #padre
23:51 awnstudio joined #padre

| Channels | #padre index | Today | | Search | Google Search | Plain-Text | summary