Camelia, the Perl 6 bug

IRC log for #padre, 2010-04-02

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

All times shown according to UTC.

Time Nick Message
00:13 dolmen left #padre
00:16 Hyppolit svn: r11270 | zenogantner++ | http://padre.perlide.org/trac/changeset/11270
00:16 Hyppolit added a password prompt
00:16 Hyppolit trunk/Padre/lib/Padre/File/
00:17 teejay joined #padre
00:30 Haarg joined #padre
00:33 zenog n8 guys
00:34 waxhead cya zenog
00:37 takadonet joined #padre
01:01 Hyppolit svn: r11271 | adamk++ | http://padre.perlide.org/trac/changeset/11271
01:01 Hyppolit Added skeleton for the worker object, and switch to using simple unserialised arrays as the queue elements
01:01 Hyppolit branches/Padre-TaskRewrite/lib/Padre/
01:03 Hyppolit svn: r11272 | adamk++ | http://padre.perlide.org/trac/changeset/11272
01:03 Hyppolit Clarifying sectional header comments to be clearer where each method runs
01:03 Hyppolit branches/Padre-TaskRewrite/lib/Padre/
01:07 Hyppolit svn: r11273 | adamk++ | http://padre.perlide.org/trac/changeset/11273
01:07 Hyppolit Remove the use of Params::Util
01:07 Hyppolit branches/Padre-TaskRewrite/lib/Padre/
01:11 jazzanova joined #padre
01:31 leprevost joined #padre
01:34 jazzanova joined #padre
01:41 leprevost how can I change the text collor from the output ? Its almost white as the background
02:13 jazzanova joined #padre
02:18 user_4912 joined #padre
02:40 jazzanova joined #padre
03:03 jazzanova joined #padre
03:07 jazzanova joined #padre
03:30 GabrielVieira joined #padre
04:04 jazzanova joined #padre
05:07 pece joined #padre
05:13 jazzanova joined #padre
05:54 kaare joined #padre
06:02 jazzanova joined #padre
06:02 jazzanova joined #padre
06:03 jazzanova joined #padre
06:06 jazzanova joined #padre
07:11 marcela joined #padre
07:13 jazzanova joined #padre
07:13 jazzanova joined #padre
07:30 dolmen joined #padre
07:42 danlucraft joined #padre
07:48 jjore joined #padre
07:50 jjore joined #padre
08:33 jazzanova joined #padre
09:36 rbaumer joined #padre
09:58 jazzanova joined #padre
09:59 jazzanova joined #padre
10:44 zenog joined #padre
10:46 waxhead #900
10:46 Hyppolit #900: opening binary files may crash Padre (new defect) [ http://padre.perlide.org/trac/ticket/900 ]
11:15 zenog apparently I am breaking a lot of stuff these days ...
11:25 Sewi ->new() usually creates an object and should be few more than a bless call.
11:26 Sewi For Padre::File->new(), it detects the required handler and returns an object which could be used for any kind of meta-operations which don't require any access to the file.
11:27 Sewi Padre::File->new("http://padre.ide.perl/file.txt")->atime would return undef (because atime isn't supported by http) but won't detect that there is no ".perl" tld.
11:28 Sewi @zenog
11:49 daxim joined #padre
11:58 Sewi left #padre
11:58 Sewi joined #padre
11:59 Sewi szabgab, garu, jq, Ryan52: Please op Hyppolit :-)
12:42 Sewi ping Getty
12:43 Getty Sewi: in hurry, no time
12:43 zenog Getty: I have a patch for Hyppolit, can I send it to you?
12:43 zenog Or shall I just post it here again?
12:44 zenog Or just commit to SVN?
12:44 Getty you can also just commit it, the problem is, hyppolit needs anyway fixing
12:44 Getty the modules has changed since i use them and the current version doesnt run with current CPAN
12:44 zenog okay, I have never run Hyppolit, so it is not really tested.
12:44 zenog I could try, though.
12:45 Getty yeah, i hope i get some time the next days, i have that on stash since 2 months :-/
12:56 user_3152 joined #padre
12:57 user_3152 Hi There
12:57 Sewi Hi user_3152
12:57 user_3152 Hi sewi...I am newbie using padre
12:58 Sewi great
12:58 user_3152 when i try to run the code...it says no execution mode defined
12:58 user_3152 am I missing some settings to be done in padre
12:59 user_3152 any ideas sewi?
13:00 Sewi In the bottom status bar, which value is in the 4st field from the right?
13:00 user_3152 Scintilla
13:00 Sewi Sorry, one right of Scintilla
13:01 user_3152 text
13:01 Sewi (Scintilla is the current highlighter)
13:01 user_3152 oh ok
13:01 Sewi Okay, click on View -> View as (below 2nd line) and select Perl
13:02 Sewi Padre didn't recognize your file as a Perl script and it can't run text files :-)
13:02 user_3152 ahh worked like charm.....thanks man
13:03 user_3152 I am assuming this chat room is open for all kind of problem related to padre and perl....is it true?
13:03 user_3152 also knowledge sharing
13:04 Sewi sure. Do you have a IRC client?
13:05 user_3152 you mean remote connection?
13:06 Sewi No, IRC is a chat protocol. Doesn't matter...
13:06 Sewi You could type "/nick nickname" to set your nickname so something other than "user_3152"
13:06 user_3152 sure buddy
13:07 user_3152 i will login again with my name as - Skywalker
13:08 Skywalker joined #padre
13:10 Skywalker Back again Sewi!!
13:29 patspam joined #padre
13:50 Alias joined #padre
14:09 Ryan52 Sewi: done.
14:14 Sewi Ryan52: thanks
14:37 dolmen joined #padre
14:42 Haarg joined #padre
15:37 pece joined #padre
15:55 pece joined #padre
16:17 Hyppolit #917: ORLite v1.42 don't install (new defect) [ http://padre.perlide.org/trac/ticket/917 ]
16:25 jagd joined #padre
16:38 zenog joined #padre
16:41 pece joined #padre
17:14 kyanardag joined #padre
17:20 kaare hm, why doesn't Padre recognize and highlight simple sql files :-(
17:22 kaare_ joined #padre
17:26 Sewi You could select the filetype using the "View" -> "view as" menu
17:26 Sewi And you're welcome to add SQL autodetection to Padre :-)
17:29 kaare Eh, of course. *slaps head* But it turns out it is detected as SQL, but just doesn't have any hiliting. How dull.
17:30 kaare I was looking in File -> Document Statistics for information about file type btw. My bad, but there your are.
17:31 kaare Is scintilla really that poor? *wonders*
17:32 Sewi Don't know, but why not add it?
17:34 kaare Eh, add what?
17:34 zenog I guess newer versions of Scintilla have better support, but they need to be included in wxWidgets ...
17:35 Sewi sure
17:35 Sewi kaare: SQL highlighting support
17:35 Sewi Shouldn't be that hard
17:35 zenog One question about the Padre::File API: What is the exact difference between mtime and browse_mtime?
17:36 Sewi mtime is the modification time of the file and browse_ are methods for actions of other things related to the file (like the directory where the file lives or other files who live next to it)
17:36 Sewi It's only partly used atm :-(
17:36 Sewi partly = rarely
17:36 zenog okay
17:37 kaare We have PPI highlighting for Perl. How many other file types have their own highlighters?
17:37 zenog Will try to implement it properly anyway ;-)
17:37 zenog afaik, none besides Perl5 and Perl6, but I have no idea about the different plugins.
17:38 zenog but I am also new to Padre ...
17:39 kaare I _woild_ like to do some sql stuff. A beautifier with dialect knowledge would be nice.
17:40 zenog mh, I just checked, the SQL highlighting support is really not that great.
17:41 zenog There is an SQL plugin, though.
17:42 zenog http://svn.perlide.org/pad​re/trunk/Padre-Plugin-SQL/
17:42 zenog I don't how mature it is, but it may be a starting point.
17:43 kaare It's not on CPAN. Could indicate sth about the quality/maturity...
17:43 Sewi Noone ever released it :_)
17:43 Sewi :-)
17:43 Sewi svn?
17:43 Hyppolit svn is http://padre.perlide.org/tr​ac/wiki/DownloadRepository
17:43 Sewi It's there
17:46 * kaare updates repository. Takes a while... Been a while... ;-)
17:52 zenog One question: I will implement/change the FTP file access that for each query to the server I will establish a new connection (and close it afterwards).
17:52 zenog I know it is not the most elegant+fast way, but rather robust.
17:52 zenog I am open for comments, though.
17:52 zenog Right now, it just opens the connection, but never closes it.
17:52 kaare Padre-Plugin-SQL "Provides database access to Padre"
17:53 Sewi zenog: Don't do this
17:53 Sewi It opens the connection and caches it.
17:53 kaare Is ver 0.01 and works with Padre 0.26.
17:53 kaare Should perhaps be renamed and updated...
17:54 Sewi If the connection is lost, it's reopened. Otherwise you would do a big stress test to the FTP server. In addition, file objects share a connection to a server as long as username and server are identical.
17:55 zenog Okay, good that I asked.
17:55 zenog Are you sure that the file objects share the connection?
17:56 zenog I did not see that in the code - but maybe I haven't seen all the important code.
18:05 Sewi They should, let me look if they do...
18:05 Sewi But a FTP connect could take 1 to 2 seconds on a fast and up to 10 on a slow server/link
18:06 Sewi I usually have 10-30 files open per project and now one file changes an triggers the "reload some files" selection dialog which checks the state of each file...
18:06 zenog Okay.
18:07 Sewi Seems the connection stuff for FTP isn't as far as it should be
18:07 zenog I also see that there are really lots of calls to the File interface.
18:08 Sewi Did you change anything to the FTP.pm which isn't committed?
18:08 zenog Sewi: No, it is really incomplete.
18:08 Sewi I'd like to upgrade it a bit
18:08 zenog I am currently working on it, that's why I asked.
18:08 zenog But if you want to, I'll gladly hand it over to you ;-)
18:09 zenog I just wanted to remotely edit my Aikido club's website over FTP yesterday, and saw that there was no support for passwords ...
18:09 Sewi I'd improve the conn handling because it shouldn't connect on ->new
18:09 Sewi There is passwort support!?
18:09 Sewi ftp://user:pass@server/path/file.txt
18:10 * Sewi checking
18:10 Sewi Line 51 to 66
18:10 zenog I added it yesterday.
18:11 zenog I mean, in the case that there is now password in the URL.
18:11 Sewi Sorry, but I'm pretty sure I did this when writing the module!?
18:11 zenog If a password is missing, but necessary, it should be prompted.
18:12 Sewi Oh, yes, this is new.
18:13 Sewi But we usually advoid exports in Padre
18:13 Sewi imports. sorry
18:13 Hyppolit svn: r11274 | Sewi++ | http://padre.perlide.org/trac/changeset/11274
18:13 Hyppolit Quick export fix
18:13 Hyppolit trunk/Padre/lib/Padre/File/
18:15 zenog good to know.
18:16 Sewi Do you want to go on or should I add the conn caching/checking things?
18:16 zenog Just go ahead.
18:16 zenog It's not that I have anything fancy yet.
18:17 Sewi Sorry, I really though the FTP module would be better :-(
18:17 kaare_ joined #padre
18:17 zenog The password prompt thing could be still more refined - sometimes you don't need a password, and I also haven't checked how anonymous FTP is supported.
18:17 zenog no problem.
18:18 Sewi look at the 9* tests, there are simple sample calls against some FTP servers
18:19 Sewi Most of the methods (I think even all) are documented in the File.pm module
18:21 zenog If you have a plan how to do the connection caching, do it ;-)
18:21 Sewi Should be easy :-)
18:21 zenog That would be good for remote editing.
18:30 Hyppolit svn: r11275 | Sewi++ | http://padre.perlide.org/trac/changeset/11275
18:30 Hyppolit Improve skip test message
18:30 Hyppolit trunk/Padre/t/
18:33 Hyppolit svn: r11276 | Sewi++ | http://padre.perlide.org/trac/changeset/11276
18:33 Hyppolit Add Padre FTP connection caching
18:33 Hyppolit trunk/Padre/ trunk/Padre/lib/Padre/File/
18:33 Sewi Test it, please?
18:34 Sewi t/94 said it's ok :-)
18:37 zenog okay, one moment
18:37 dolmen left #padre
18:37 Steffen joined #padre
18:37 Sewi Hi Steffen
18:38 Steffen Hey.
18:38 Sewi I think, szab meant that transmissions should only be done if the user agreed with it before.
18:39 Steffen See. That's why I sad I wouldn't appreciate any nagging.
18:39 Steffen *said, even.
18:39 Sewi Kannst Du mir kurz auf Deutsch sagen, was Du damit meinst, irgendwie versteh ich Dich gerade nicht :-)
18:40 Steffen Naja, als Benutzer einer Anwendung geht es mir total auf die Nerven, wenn sie gelegentlich meine Zeit mit popups verschwendet.
18:41 Sewi ok, I agree. (This is why I added the main->info handler :-) ).
18:41 Sewi The user should be able to say "transmit once", "transmit always" or "transmit never"
18:41 Steffen Actually, the user should choose to enable this feature by himself.
18:41 Steffen IMO, anyway.
18:42 Sewi Do you think many people would do this?
18:42 Steffen No. Tough luck.
18:42 Sewi :-)
18:42 Steffen But I think that many people would be severely annoyed by being asked about the transmission.
18:42 Steffen And they would be suspicious.
18:43 zenog Sewi: If I open another file one the same server, I am again asked for the password.
18:44 Sewi Sure
18:44 Sewi Everything else would be bad security :-)
18:44 * Steffen &
18:44 zenog Sewi: It is because the password is initially undef, I guess.
18:45 zenog Sewi: Wait, I am not sure.
18:45 Sewi No, it's because the password is the only line of defense between an user and an unexpected action :-)
18:46 Sewi We should add a option to store that password for that host/port/user combination until Padre exit or forever, but this is something different from the connection caching...
18:46 zenog Okay.
18:47 zenog Padre crashes when I hit 'cancel' in the password dialog.
18:47 Sewi Not good
18:47 zenog Can't locate object method "ls" via package "Padre::File::FTP" at /mnt/data/src/padre/Padre/lib/Padre/File/FTP.pm line 218.
18:48 Sewi strange
18:48 zenog And there are warnings because of the undef password.
18:49 Hyppolit svn: r11277 | Sewi++ | http://padre.perlide.org/trac/changeset/11277
18:49 Hyppolit Add empty password option
18:49 Hyppolit trunk/Padre/lib/Padre/File/
18:52 Sewi My connection-alive-checking is not working :-(
18:52 zenog Gotta eat. See you later ...
19:09 Hyppolit svn: r11278 | Sewi++ | http://padre.perlide.org/trac/changeset/11278
19:09 Hyppolit Add checks for FTP connection caching
19:09 Hyppolit trunk/Padre/lib/Padre/File/ trunk/Padre/t/
19:39 jagd joined #padre
19:39 jagd Hi, Sewi
19:40 Sewi Hi jagd
19:41 jagd Sewi: something about r11239 :
19:41 Hyppolit Changeset #11239 http://padre.perlide.org/trac/changeset/11239
19:41 jagd Sewi: it still crashes , if the cursor is at first line, when calling "Join lines"
19:42 Sewi Fix it if you want :-)
19:42 Sewi There was a test failing afair
19:43 * Sewi back to watching air crash investigation reports...
20:24 jagd a stupid question :P , how can i run the test "xt/crashtest.t"  ?
20:25 Sewi prove -lv t/crashtest.t
20:25 Sewi or make test
20:25 jagd make test does not run the things in xt/*
20:26 jagd all skipped: Author tests not required for installation
20:32 Sewi RELEASE_TESTING=1 make test
20:35 kyanardag_ joined #padre
20:45 jagd i've tried but it complains "You tried to run a test without a plan at xt/actions.t line 37"
21:27 cognominal joined #padre
22:00 zenog Sewi: Connection cache works, but one has to enter the password 3 times ...
22:01 zenog Sewi: One possible fix would be to move the password dialog to right before the FTP object creation.
22:02 zenog Sewi: ... and to remove the password from the cache key.
22:07 zenog Sewi: nope ... I am wrong ... there could be more complicated access control policies.
22:10 zenog Sewi: Instead, we could move the password dialog to right before the cache key creation.
22:12 kaare left #padre
22:14 zenog Sewi: Ah no, this still triggers the password dialog several times ...
23:14 Hyppolit svn: r11279 | zenogantner++ | http://padre.perlide.org/trac/changeset/11279
23:14 Hyppolit fixed test failure; FTP: enter password only once per file; rm unnecessary defaults - there are some in Net::FTP
23:14 Hyppolit trunk/Padre/lib/Padre/File/ trunk/Padre/xt/
23:17 zenog Sewi: Can you review those changes?
23:24 Hyppolit svn: r11280 | zenogantner++ | http://padre.perlide.org/trac/changeset/11280
23:24 Hyppolit File::FTP - error handling could still be nicer, but at least Padre doesn't crash any more
23:24 Hyppolit trunk/Padre/lib/Padre/File/
23:53 Sewi zenog: The Passwort should be part of the URL

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