Camelia, the Perl 6 bug

IRC log for #padre, 2011-05-16

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

All times shown according to UTC.

Time Nick Message
00:00 Alias But how do you define the boundary of the selection when the content within it is changing
00:00 garu just a minute, dinner is burning
00:25 garu Alias: maybe differentiating between finding with a dialog, and via f3?
00:25 garu after all, the dialog is a modal, it doesn't really allow document change
00:26 bowtie Alias, Hi
00:26 garu we could also store begin/end positions, buffer the content, replace, then store it back into the document
00:26 garu (for replace all)
00:27 Alias If you buffer, you need to track it as it changes
00:28 jnap joined #padre
00:29 garu I do? how come? I meant it like cut the text into a buffer, replace all (from 0 to GetLength of the buffer), then paste back whatever is in the buffer now
00:30 garu but that's not what I was looking for at first
00:30 garu I just want to be able to search in a selection
00:30 garu even if to implement replace after that means I need to track changes and update the limits
00:31 Alias OK, so first step
00:31 Alias Add the actual search logic to Padre::Search
00:31 garu but I saw the new separation of control, not sure where to store that
00:32 garu Alias: assuming I have start and end stored somewhere, I already implemented
00:32 Alias I think that is probably best, so Padre::Search still spits out the document-relative position instead of a selection-relative position
00:33 garu searching in a selection is just a matter of changing the first argument of all calls to $self->matches() under Padre::Search
00:34 garu so they get begin/end, instead of 0, document_end
00:34 Alias ah, ok
00:34 garu see it?
00:34 Alias Anyways, replace all is simple enogh
00:35 garu thing is I can't store that information on Padre::Search unless I make it a singleton or something
00:35 garu or go for the main object
00:35 garu (since Padre::Search is being destroied every time)
00:36 garu argh... destroyed even
00:38 garu Alias: come to think of it, the only point of going for selections is during replace/replace all
00:39 garu I don't really see how "find in selection" can be usefull at all
00:39 Alias So it's really a dialog property
00:39 garu yup, think so
00:39 Alias Find in Selection can be useful
00:39 Alias Imagine you have a document you know has 1000 instance of "Foo" and you want to find all the "Foo" in one particular area
00:39 garu for what?
00:40 garu replacing? :)
00:40 Alias For finding
00:40 Alias You select 100 lines out of 100,000
00:40 Alias Or select 1000 out of 100,000
00:40 Alias etc
00:40 Alias But if we want to implement it in Replace first, that's fine with me
00:40 Alias Solve the most important case first
00:40 garu yeah, I know... I just don't really see it happening
00:40 garu yeah
00:40 garu let's do replace
00:40 Alias And I like making it a dialog feature, rather than a Padre::Search on
00:40 Alias one
00:41 Alias I REALLY don't see any kind of refactoring automation needing it
00:41 Alias It's more a user interface thing, so having it in the dialog is the most obvious home for it
00:41 garu okay, I'll give it a try and see how it goes... don't go away :)
00:41 Alias BTW, nice to see you back on features :)
00:41 Alias I've been feeling rather solo-alpha lately
00:42 garu thanks :)
00:42 Alias Most of the others just step in to fix things I'm breaking
00:42 garu hehe
00:42 garu that's noble too
00:42 Alias But a bit depressing
00:42 garu but yeah, I really want to make padre do new things
00:42 Alias It's much more encouraging when people are taking initiative
00:43 garu Never fear! Garu is here =)
00:43 garu only now you'll just have to come to YAPC::Brazil early november :)
00:43 Alias Done
00:44 garu done?
00:44 Alias I missed QA hackathon this year, and I can't seem to get to YAPC::Asia, so I'd be happy to come to YAPC::Brazil
00:44 garu \o/
00:44 garu Alias++
00:44 Alias Even more so if you can find a sponsor to help with air fares
00:44 Alias I've never done south america
00:44 garu I'll do my best
00:45 garu we're already looking for sponsors
00:45 garu I'll let you know as soon as I have more information
00:45 Alias I'm on a holiday ban from now till september, so by November I'll be going a bit crazy and need a break
00:45 garu perfect
00:45 Alias And I've got shitloads of material for talks
00:46 garu make sure to separate a whole week for the trip, there's a lot to do here :)
00:48 Alias Yeah, normally I don't leave long enough
00:48 Alias But if someone's happy to host, I'll tack on extra time
00:51 bowtie left #padre
00:56 garu Alias: my house is kinda big, and you're more than welcome to stay if you like
00:57 garu in fact, I'm planning on turning it into a "YAPC GuestHouse" or something
00:58 garu free stay for people with CPAN ids and YAPC talks :)
00:59 Alias Sounds excellent
01:15 waxhead Alias, what's with the holiday ban?
01:15 Alias Big release at work
01:15 Alias 5 years worth of work leading up to it
01:15 waxhead got to love those...
01:15 Alias People on the "who to call when the shit hits the fan" are banned from holidays
01:15 waxhead not that I have such a big release at work
01:16 waxhead perl stuff?
01:16 Alias This is a 50-100 million dollar project
01:16 Alias My part of it is Perl
01:16 Alias It's a non-public 200,000 line shopping cart website that turns over 1.3 billion dollars a year
01:17 garu impressive
01:17 garu waxhead: btw I also expect you over here :D
01:17 Alias It does some pretty impressive things, yeah
01:17 waxhead garu, I have no talks.. :)
01:18 waxhead far out, that's a big project budget..
01:18 Alias And the majority of it is manpower
01:18 waxhead always is...
01:19 Alias $5ish in licenses, $5m in hardware
01:19 waxhead is it an internal project?
01:19 Alias Yup
01:19 garu Alias: back to Replace, ok if I pass the range from the dialog down the calls until it reaches Padre::Search->editor_replace?
01:19 Alias garu: Yup
01:19 waxhead wow.. and still it cost that much...
01:19 waxhead what's the perl stuff do?
01:19 Alias The website
01:19 waxhead are you allowed to talk about it?
01:20 Alias Only in general terms :)
01:20 waxhead Alias, really?? any frame work or custom code?
01:20 garu like "shopping cart" and "awesome" :)
01:20 Alias Internally written framework
01:20 * waxhead is getting distracted...
01:20 Alias 200ish CPAN dependencies
01:20 waxhead I really need to code my planned projects...
01:20 Alias Loading the entire app into memory, before any data is loaded, is about 150meg of ram
01:20 * garu bets at least 50 belong to Alias
01:21 waxhead and we all know how alias feels about ram usage...
01:21 Alias This is a bit different
01:21 Alias RAM is irrelevant
01:21 Alias It was a constraint for a while, but we moved some of the cache loading before the Apache fork, and saved 10gig of ram
01:21 Alias So now it's not an issue
01:30 waxhead hmmm.. does local::lib and perlbrew clash?
01:34 Alias No idea, I don't use either
01:34 waxhead my perl install is likely a mess these days..
01:35 garu waxhead: yes
01:35 garu waxhead: you either use perlbrew, or local::lib
01:35 waxhead I might have to rebuild this laptop from scratch at some point, the system perl is poluted with previous cpan updates
01:35 waxhead right!
01:35 garu reason is perlbrew needs to have its own local lib for each perl version
01:35 waxhead so I should be right to remove ~/perl5 and start again...
01:35 garu because of binary incompatibilities
01:36 waxhead makes sense..
01:36 garu you can just rm -rf ~/perl5/lib I think
01:36 waxhead I think so..
01:36 garu perlbrew installs itself under ~/perl5/perlbrew
01:36 garu also remember to remove local::lib's bashrc thingie
01:36 garu (if you use it)
01:39 waxhead garu, thanks... already removed it.. :)
01:39 garu waxhead: is it working?
01:40 waxhead we'll see soon enough.. :)
01:40 waxhead I could see the perl binary was 5.14.0, but none of the modules were installed correctly...
01:40 waxhead so starting again
01:40 waxhead luckily my ISP mirrors cpan
01:40 waxhead so free downloads
01:48 asarch left #padre
01:59 waxhead say I want  my script to output to a text file, only I want it to manage the output file for me, ie when I get to the end of each day, start a new file named something like weather-20110515.txt
01:59 waxhead what's a good module to do that for me
02:04 garu plain tee with logrotate should suffice I think
02:05 garu waxhead: cpan for "rotate", that might give you some options
02:07 waxhead garu, a lot of them have to do with logging...
02:07 waxhead which I guess isn't too much of a problem, just simply wrap the "print" to an info() and should be ok
02:08 garu printing to a file is a form of logging :)
02:14 waxhead it is, but I was hoping to avoid the need to manage it myself.... it shouldn't be too hard though...
02:17 jnap left #padre
02:31 geck left #padre
02:42 garu awesome, I think I got it working :)
02:47 garu Alias: do we have a test suite for Padre::Search? are there any helpers for testing wx? Or should I just commit on a "works for me" basis?
03:06 Alias 81-search.t looks like the obvious choice to me
03:14 garu cool, I'll have a look
04:09 |Sno| joined #padre
04:13 Sno| left #padre
04:34 k2t0f12d joined #padre
04:35 katofiad left #padre
04:51 verrukta left #padre
04:51 verrukta joined #padre
04:58 kaare joined #padre
05:05 k2t0f12d left #padre
05:06 katofiad joined #padre
05:06 waxhead well, there you go, i can't seem to get Locale::Msgfmt to install into my perl brewed 5.14.0
05:06 waxhead so of course Padre won't install with out it
05:08 pece joined #padre
05:13 toi joined #padre
05:13 katofiad left #padre
05:33 asarch joined #padre
05:39 Sewi joined #padre
05:42 katofiad joined #padre
05:52 marcela joined #padre
06:04 asarch left #padre
06:11 katofiad left #padre
06:14 pece left #padre
06:23 katofiad joined #padre
06:36 katofiad left #padre
06:42 danlucraft joined #padre
06:42 danlucraft left #padre
07:03 toi left #padre
07:09 toi joined #padre
07:09 toi left #padre
07:15 Alias left #padre
07:21 toi joined #padre
07:24 dolmen joined #padre
07:29 mj41 joined #padre
07:29 katofiad joined #padre
07:57 danlucraft joined #padre
08:38 macroz joined #padre
08:42 Di-ima left #padre
08:48 daxim joined #padre
08:53 Di-ima joined #padre
08:56 danlucraft1 joined #padre
08:56 danlucraft left #padre
09:07 danlucraft joined #padre
09:11 danlucraft1 left #padre
09:25 macroz left #padre
09:29 macroz joined #padre
10:30 waxhead so from that stackoverflow question, I can mainly see the debugger being one of the more widely viewed requirements.
10:30 waxhead which I have to say, makes a lot of sense.. it's what I love about Visual Studio...
10:31 waxhead left #padre
10:39 pece joined #padre
11:12 szabgab anybody around?
11:12 szabgab I wonder what are the most complex open source projects?
11:12 szabgab in terms of deployment - I think
11:13 szabgab projects that have multiple "entities" (client/server/database/etc)
11:13 szabgab any ideas?
11:21 szabgab Getty: maybe you ?
11:22 Sewi szabgab: KDE. You can't compile any part of it without full KDE dev environment. Even supporting tools which are standalone programs.
11:23 szabgab do you have an environment setup?
11:25 szabgab though I am not sure it is really the kind of thing I am looking for as in the end it always run on one machine
11:27 El_Che hello
11:28 szabgab hi El_Che
11:38 bowtie joined #padre
11:41 bowtie Opps Reload All Plug-ins, It Works, It was me and the POD Padre::Plugin, which dose not cover plugin dialogs, correctly :)
11:44 bowtie szabgab, any feedback re: #1176 and #1220, thanks
11:44 Hyppolit # 1176 :  Preferences 2.0.  Screen is to big (assigned defect) by bowtie  [ http://padre.perlide.org/t​rac/ticket/1176#comment:3 ]
11:46 bowtie Q why did Hyppolit only show first ticket, when 2 referenced
11:51 El_Che I am testing padre on perl 5.14.0
12:13 El_Che szabgab: do you know the ticket for the screen corruption on ubuntu 11.04?
12:17 szabgab bowtie: I guess that's how it was programmed
12:18 szabgab El_Che: nope, but it was a recent one
12:25 El_Che padre runs on perl 5.14.0 but the screen corruption is still there
12:27 szabgab on ununtu 11.4 ?
12:27 El_Che yes
12:27 El_Che shall I disable wherefrom.pm? it crashes a fresh padre install
12:28 El_Che Can't call method "Append" on an undefined value at /home/claudio/Code/Padre/trunk/Padr​e/lib/Padre/Wx/Dialog/WhereFrom.pm line 33.
12:28 szabgab I'd rather have it fixed though I think it was quite underused so I'd say we can disable it
12:29 El_Che I would fix it, but no time now
12:29 El_Che Append does not ring able
12:29 El_Che Capitals make me think of Wx
12:30 szabgab it is probably Alias who "fixed" that dialog as well
12:31 El_Che yes
12:31 El_Che our @ISA     = qw{ Padre::Role::Task Padre::Wx::FBP::WhereFrom
12:31 El_Che I'll have a look there
12:53 El_Che is there a way to trigger the first run question?
13:05 Sewi left #padre
13:06 Sewi joined #padre
13:08 El_Che our classes would make a lot more sense with mouse/moose
13:29 Hyppolit svn: r14380 | claudio++ | http://padre.perlide.org/trac/changeset/14380
13:29 Hyppolit Temporarely disable WhereFrom dialog to prevent startup crash (FBP migration)
13:29 Hyppolit trunk/Padre/lib/Padre/Wx/
13:34 szabgab El_Che: I was wondering to try to Moosify Padre in a branch to see how that would look like
13:34 szabgab though I am really not sure what would be the gain?
13:34 szabgab other than me learning more Moose
13:34 El_Che metaprogramming is pretty cool for classes with repetitive code
13:35 szabgab what problems does Padre have that it would solve?
13:44 Sewi Wouldn't Moose slow down things at run time?
13:46 szabgab Sewi: as I understand that's not really an issue, but we won't know for sure without trying
13:47 szabgab I am using it here and there but I have not seen the huge benefits yet
13:48 bowtie Sewi, not run time but initial startup would be longer, less boiler plate, more of a single way :)
13:52 szabgab El_Che: I was not trying to get you shut up, but I really don't know what would be the advantage, and I am very down to earth person, I need very specific examples
13:52 szabgab without that I can't understand things
13:52 asarch joined #padre
13:53 szabgab (though I am now not sure if 'down to earth' was the right expression or if I should have wrote 'simple minded')
13:53 bowtie szabgab, are you having a bad day?
13:54 szabgab I don't think so, maybe a bit tired :(
13:56 szabgab though t drives me craazy that there are no good examples how to use some very basic modules
13:56 szabgab e.g. http://perldoc.perl.org/IO/Socket/INET.html
13:57 szabgab so I know how to call its ->new method in 4 different ways
13:57 szabgab no, 5
13:57 szabgab but what do I do then?
13:57 szabgab then I need to look it up in my training material where I do have an example
14:14 macroz left #padre
14:16 toi left #padre
14:42 marcela left #padre
14:59 bowtie szabgab, you think that's bad, some of the newer e-mail module authors don't no what an rfc is, hence bits are missing, thus you can't make all the protocol calls even though they purport to be compatible, nice way to wast a day or so.
15:01 toby joined #padre
15:02 toby left #padre
15:28 Sewi bowtie: We (Perl) should compare our projects to the best, not the worst examples.
15:36 danlucraft left #padre
15:52 Sewi left #padre
16:04 pece2 joined #padre
16:10 toi joined #padre
16:12 estranho joined #padre
16:15 estranho left #padre
16:27 estranho joined #padre
16:30 katofiad left #padre
16:31 katofiad joined #padre
16:45 toi left #padre
16:46 toi joined #padre
16:51 asarch left #padre
16:54 dapatrick joined #padre
17:03 dodathome joined #padre
17:09 jnap joined #padre
17:11 mj41 left #padre
17:13 danlucraft joined #padre
17:46 asarch joined #padre
17:47 Sewi joined #padre
17:47 mj41 joined #padre
18:10 Steffen joined #padre
18:48 katofiad left #padre
18:48 katofiad joined #padre
18:55 verrukta left #padre
19:20 katofiad left #padre
19:41 user_5844 joined #padre
19:41 user_5844 left #padre
19:47 garu ha!
19:48 * garu finishing up tests for ticket 1212 now
19:52 Sewi left #padre
20:06 katofiad joined #padre
20:19 kaare left #padre
20:19 asarch left #padre
20:24 toi left #padre
20:28 sugar joined #padre
20:29 sugar why padre may crash then I change settings (font and visual)?
20:30 sugar what module i need to reinstall?
20:30 sugar I think that some modul in my distr is too old...
20:31 bowtie sugar, what is your os and padre version please
20:32 sugar sorry, linux, padre is 0.84
20:32 bowtie sugar,  did you install from cpan?
20:33 sugar crashes 0.82 (from my own linux dsitributiun) and 0.84 (installed from CPAN)
20:33 mj41 left #padre
20:34 bowtie sugar, have you tried to reinstall from cpan?
20:34 sugar no, all tests are successfull
20:35 sugar I think, that Padre uses some too old module from my distribution, and crashes after it
20:35 sugar and I need to reinstall this module from CPAN
20:35 sugar but i don't know that is the module
20:36 dodathome left #padre
20:37 bowtie sugar, have you installed Wx and Alien::wxWidgets, have a look at http://padre.perlide.org/trac/wiki/Download and sub pages
20:38 sugar yes, Alien::wxWidgets has installed from cpan
20:38 sugar Wx has installed from my repo of my linux distr
20:39 bowtie sugar, have you also got the wx core not just the perl wapper
20:40 sugar yep, because padre started normally
20:41 asarch joined #padre
20:42 bowtie sugar, have you run padre from a terminal ?
20:42 sugar yes
20:42 sugar $ padre
20:42 sugar starts
20:42 sugar now I try to reinstall Wx from CPAN
20:44 bowtie sugar, this is quite upto date and might help with version numbers: http://padre.perlide.org/trac/wiki/DownloadUbuntu
20:45 katofiad left #padre
20:49 ajmrch joined #padre
20:49 asarch left #padre
20:50 sugar thanx, very much
20:50 bowtie sugar, cool ;)
21:10 sugar left #padre
21:10 katofiad joined #padre
21:25 danlucraft left #padre
21:26 jnap left #padre
21:39 Steffen left #padre
21:39 pece2 left #padre
22:12 ajmrch left #padre
23:04 dapatrick left #padre
23:13 Alias joined #padre
23:22 bowtie Alias, hi
23:22 Alias hi
23:26 bowtie Alias, I have been using wxformbuilber (FBP), FBP wx-check boxes, is this going to be developed further, as I had manually add to get status and a event?
23:27 Alias Events should all bind properly and create stub methods
23:27 Alias If I've missed an event, let me know which
23:28 bowtie Alias, FBP no support at present for radio buttons,
23:28 Alias Entirely possible :)
23:28 Alias The size of wxFormBuilder is so large, I've add features only as they get used
23:29 Alias Development is incremental
23:29 Alias I haven't felt the need for radio buttons myself yet
23:29 Alias But I can add them for you
23:29 Alias I have half an hour before a meeting, let me see if I can get them in
23:30 Alias wxRadioBox or wxRadioButton?
23:32 Alias I will do wxRadioBox first
23:33 bowtie Alias, would rather have full function for Wx::Choice
23:33 Alias What is missing
23:33 bowtie $self->{choices} = $choices->GetId;
23:34 Alias I don't understand, that should be there for everything
23:34 Alias oh
23:34 Alias OK, kind of non-obvious feature :)
23:34 bowtie Opps wrong one I mean.. Wx::CheckBox
23:34 Alias On the widget, in the "C++" section, set "permission" to "public"
23:35 bowtie $self->{pong} = $pong->GetId; #added
23:35 bowtie sub pong_checked {
23:35 bowtie $_[0]->main->error('Handler method pong_checked for event pong.OnCheckBox not implemented');
23:35 bowtie }
23:35 bowtie sub pong {
23:35 bowtie Wx::Window::FindWindowById($_[0]->{pong});
23:35 Alias That should save the id and add the accessor method
23:35 Alias wtf?
23:35 Alias ok, looking
23:36 Alias I've started wxRadioBox anyway, might as well finish it
23:36 bowtie Alias, smarty pants
23:38 bowtie my $pong = Wx::CheckBox->new(
23:38 bowtie $self,
23:38 bowtie -1,
23:38 bowtie Wx::gettext("pong"),
23:38 bowtie Wx::wxDefaultPosition,
23:39 bowtie i missed that bit, sorry opps
23:40 garu bowtie: please consider http://scsys.co.uk:8001 instead of pasting directly on the channel
23:40 bowtie garu, what is scsys?
23:40 garu bowtie: it helps us see and refer to your issues better, not to mention avoid channel flooding
23:41 garu bowtie: it's just a pasting website
23:41 garu bowtie: scsys stands for "shadowcat systems"
23:41 garu bowtie: there's even a combobox there to let us know whenever you pasted something, right here :)
23:42 bowtie garu, will look, tomorrow, thanks
23:43 garu no problem
23:44 bowtie garu, can you pass an array to Wx::Choice via Append?
23:45 bowtie or a hash ?
23:46 garu not sure, can you check Padre's source code to see how we do it? Btw you might get better responses to plain wx questions in #wxwidgets or in the wxperl mailing list
23:46 Alias You can pass an array ref
23:47 Alias The wxChoice series don't support HASH selection
23:47 bowtie Alias, thanks
23:47 Alias (Where a label is printed as the hash value, but it returns the hash key as the return value)
23:47 Alias I do something specific for wxChoice for preferences
23:48 Alias But we might want to build an enhanced Padre::Wx::ChoiceHash or something that does support it
23:52 Alias http://svn.ali.as/cpan/releases/FBP-0.28.tar.gz
23:52 Alias Have to upgrade FBP::Perl yet
23:52 bowtie Alias, that’s ok, a plugin should be in dependant, and do it's own thing?
23:53 Alias Sure, but the issue of selecting a HASH entry using key as value and value as visual label keeps coming up
23:53 Alias Especially when that label needs to be localised
23:53 bowtie Alias, ok the support packages, got it
23:57 bowtie Alias, half hours up, take your time, it's time for bed for me. night, thanks
23:57 Alias ok
23:57 Alias Night
23:58 bowtie left #padre

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