Perl 6 - the future is here, just unevenly distributed

IRC log for #rosettacode, 2011-01-28

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

All times shown according to UTC.

Time Nick Message
00:08 asdtoob left #rosettacode
00:16 parsleyfirefly joined #rosettacode
00:17 asdtoob joined #rosettacode
00:25 asdtoob left #rosettacode
00:34 kpreid joined #rosettacode
00:46 SoniaKeys joined #rosettacode
00:50 Mathnerd314 left #rosettacode
01:00 Mathnerd314 joined #rosettacode
01:42 mwn3d_phone left #rosettacode
03:02 mwn3d_phone joined #rosettacode
07:04 FireFly joined #rosettacode
07:47 borkamaniac left #rosettacode
08:27 SoniaKeys left #rosettacode
08:31 FireFly left #rosettacode
11:33 BenBE left #rosettacode
11:40 BenBE joined #rosettacode
11:45 BenBE left #rosettacode
11:52 BenBE joined #rosettacode
11:59 BenBE left #rosettacode
12:06 BenBE joined #rosettacode
12:11 BenBE left #rosettacode
12:15 BenBE joined #rosettacode
12:31 BenBE left #rosettacode
12:39 BenBE joined #rosettacode
12:42 BenBE left #rosettacode
12:51 BenBE joined #rosettacode
12:53 BenBE left #rosettacode
13:02 BenBE joined #rosettacode
13:04 BenBE left #rosettacode
13:11 BenBE joined #rosettacode
13:16 BenBE left #rosettacode
13:23 BenBE joined #rosettacode
13:28 BenBE left #rosettacode
13:36 BenBE joined #rosettacode
13:40 BenBE left #rosettacode
13:41 Mathnerd314 left #rosettacode
13:48 BenBE joined #rosettacode
13:51 BenBE left #rosettacode
13:58 BenBE joined #rosettacode
14:02 BenBE left #rosettacode
14:10 BenBE joined #rosettacode
14:16 BenBE left #rosettacode
14:18 FireFly joined #rosettacode
14:24 BenBE joined #rosettacode
14:27 BenBE left #rosettacode
14:37 BenBE joined #rosettacode
14:41 MigoMipo joined #rosettacode
14:53 BenBE left #rosettacode
15:02 BenBE joined #rosettacode
15:04 BenBE left #rosettacode
15:13 BenBE joined #rosettacode
15:51 parsleyfirefly left #rosettacode
16:08 parsleyfirefly joined #rosettacode
16:12 BenBE left #rosettacode
16:12 BenBE joined #rosettacode
16:33 BenBE XPath-Minichallenge: XPathSpeak for an A tag containing an IMG tag with an attribute title ending/containing in "report".
16:37 opticron a/img@*report
16:37 opticron I think
16:38 opticron not sure the * is going to work properly
16:38 BenBE and where is the "attribute 'title'" part?
16:38 opticron wait...
16:38 opticron i misrea
16:38 opticron d
16:38 opticron so the attribute name needs to be "title
16:38 opticron "
16:38 BenBE Yep.
16:38 opticron and the value needs to be or end in "report"
16:39 BenBE yes.
16:39 opticron a/img@title....I'll have to look it up
16:40 BenBE I basically have some HTML page like this: <td> ... <><><> ... <a href="..."><img title="Report post" src="..." /></a> (in the German page I need it for it's "Beitrag _melden_" ... That's why at the end.
16:40 BenBE And I explicitely need the A tag, not the contained IMG tag.
16:41 opticron oh
16:41 opticron that's doable
16:44 opticron a[contains(img@title,"report")]
16:44 opticron but that's only contains
16:44 opticron I'd try ends-with
16:44 opticron and if it throws errors, tack a :: in front of the function name, iirc
16:44 opticron unfortunately, I only saw begins-with as a valid string function
16:45 opticron ooh...
16:45 * opticron thinks
16:47 opticron a["report"=substring(img@title,string-length(img@title)-6)]
16:47 opticron that might work
16:48 BenBE Well, as the source is quite controlled, contains should work fine too.
16:48 opticron well, that second one should do exactly what you want
16:48 opticron it'd be nice if they hand ends-with
16:49 opticron does it work?
16:49 BenBE Well, I first have to write the test page for it.
16:49 BenBE Need it for a userscript.
16:50 kpreid left #rosettacode
16:57 BenBE The second one doesn't work ...
17:06 opticron yeah, I don't trust the dash in the function name
17:06 opticron it might need a :: in front of it
17:06 opticron not sure, though
17:08 BenBE Doensn't work either.
17:09 BenBE even with the contains it only works for like a{contains(href,"...")] ...
17:15 opticron put // in front of the a
17:15 opticron makes it a deep search
17:17 shortcircuit It would be nice to have a good set of tasks designed for problems query languages are usually used for, and to get good coverage from a few SQL variants and other query languages.
17:17 shortcircuit I tried starting on that around when RC was first created, but the set of tasks I created was laughable.
17:18 opticron query tasks are hard since different languages can't really operate on the same data set (unless they're all DB langs that understand tables)
17:19 shortcircuit Can the fundamental problem be described and then mapped into each language?
17:20 opticron well, I guess there are table-oriented databases, tree-oriented databases, not sure what else
17:20 Coderjoe docdb
17:20 shortcircuit On a semi-related note, tasks for managing, searching and manipulating DOM trees might be useful. Granted, they're likely to show off language libraries and extensions more than core language features.
17:21 shortcircuit Coderjoe: Are docDBs fundamentally different from a key-value store like a perl5 hash?
17:21 opticron i guess hashes could be considered a kind of DB (a very simple one)
17:21 shortcircuit The question then comes back to query languages, and how they relate to them.
17:21 BenBE Well, in words: My Problem is on e.g. http://www.delphi-forum.de/viewtopic.php?p=630936#630936 there is this orange triangle button for each post, which I want to iteratoe over and replace some handlers in the link the image is in.
17:21 Coderjoe well, a number of them can have multiple levels. and also each "record" is sparse
17:31 kpreid joined #rosettacode
17:49 kpreid left #rosettacode
18:03 mwn3d_phone1 joined #rosettacode
18:06 mwn3d_phone left #rosettacode
18:16 mwn3d_phone1 is now known as mwn3d_phone
18:56 fedaykin left #rosettacode
18:56 fedaykin joined #rosettacode
19:38 mwn3d_phone Man did I have to bend my brain a bit to make that language template change work
19:39 mwn3d_phone They have ifeq but no ifnoteq. It took me a lot of stupid ideas before I came up with reversing the branches.
19:39 mwn3d_phone Then I found that didn't even need the noteq part in the first place
19:40 slavik mwn3d_phone: that sucks
19:40 mwn3d_phone And before I was trying to nest table rows in the branches and tried to use the {{!}} thing
19:40 mwn3d_phone It was freaking me out man
19:41 mwn3d_phone Whatevs its done and it seems to work right. So I'm happy.
19:47 opticron oh yeah, I have some crazy fun with wiki templates
19:47 opticron I use the wiki at work as a test document repository
19:48 opticron so I have this giant tree of transcludes with conditional inclusion and parameterization
20:35 mwn3d_phone MW syntax can get hairy pretty quick. I wish there were a better way to signify template parameters
20:36 opticron instead of {{{#}}}?
20:36 mwn3d_phone The language template is just a pile of curly braces
20:36 opticron yes, it is
20:36 mwn3d_phone its probably hacky but you get what you pay for :p
20:37 opticron I think some of the stuff I have is at least {{{{{{ and none of those are parameters
20:37 opticron and that's only 3 levels deep
20:37 opticron I've written some extensions for MW and I have to say, it's one of the most powerful wiki packages out there
20:38 opticron my company wanted to move to atlassian's confluence wiki
20:38 opticron it's like a little red tricycle compared to MW
20:38 opticron (if MW was some kind of Mac truck)
20:38 mwn3d_phone I don't doubt the power. Its just a little bit crazy sometimes. They probably can't avoid that too much.
20:38 opticron the internals are worse
20:38 opticron sooooo much worse
20:39 mwn3d_phone All the PHP?
20:39 opticron yeah
20:40 slavik I was actually thinking about web site design ... and how MVC is horrible
20:40 opticron they do weird text->wikiDOM translations and back again after tweaking nodes in the wikiDOM
20:40 opticron and then some stuff gets replaced with a unique identifier instead of being convered to wikiDOM
20:40 opticron then there are event hooks in the parser
20:40 slavik oh god
20:40 opticron but only in some places
20:40 slavik sounds terribad
20:41 opticron so there are critical areas that I need access to for extensions that don't have hooks
20:41 opticron and there are other places that literally run 3 different hooks right after one another
20:41 opticron with no differences in between
20:43 opticron but if you're just looking at it from the extensions interface, it's not TOO horrible
20:44 opticron it's just really hard to have that much functionality and not have it be complicated as hell unless you specifically planned for all of that functionality
21:01 BenBE left #rosettacode
21:08 waldwolf joined #rosettacode
21:08 waldwolf left #rosettacode
21:08 waldwolf joined #rosettacode
21:09 BenBE joined #rosettacode
21:12 BenBE left #rosettacode
21:21 BenBE joined #rosettacode
21:32 BenBE left #rosettacode
21:40 BenBE joined #rosettacode
21:43 BenBE left #rosettacode
21:43 shortcircuit opticron, mwn3d_phone: Yeah, I had to dig into the MW core in order to figure out how to fix things like the AmazonPlus extension.
21:50 BenBE joined #rosettacode
21:53 BenBE left #rosettacode
21:56 parsleyfirefly left #rosettacode
22:02 BenBE joined #rosettacode
22:05 BenBE left #rosettacode
22:14 BenBE joined #rosettacode
22:16 BenBE left #rosettacode
22:23 mwn3d_phone opticron: high five for grapher on the SD card
22:24 mwn3d_phone Its pretty small but ever byte counts
22:24 BenBE joined #rosettacode
22:28 BenBE left #rosettacode
22:29 parsleyfirefly joined #rosettacode
22:36 BenBE joined #rosettacode
22:38 BenBE left #rosettacode
22:48 BenBE joined #rosettacode
22:51 BenBE left #rosettacode
22:54 waldwolf left #rosettacode
22:59 BenBE joined #rosettacode
23:02 BenBE left #rosettacode
23:11 BenBE joined #rosettacode
23:17 Mathnerd314 joined #rosettacode
23:33 FireFly left #rosettacode

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