Re: Barbie and Perl

2014-11-19 Thread Gianni Ceccarelli
Here you can rewrite the pages with whatever text you choose http://computer-engineer-barbie.herokuapp.com/ Also, sort-of apology from Mattel: https://www.facebook.com/BarbieNAD/posts/362944293876701 -- Dakkar - GPG public key fingerprint = A071 E618 DD2C 5901 9574

Re: Getting the "latest" related record from a SQL DB

2014-10-09 Thread Gianni Ceccarelli
I think you want a window function (see for example http://www.postgresql.org/docs/9.1/static/tutorial-window.html ) Something like: SELECT name,title FROM ( SELECT artist.name,album.title,rank() OVER ( PARTITION BY artist.id ORDER BY album.date DESC ) as r FROM artist JOIN a

Re: YAPC::EU travel plans

2014-07-21 Thread Gianni Ceccarelli
Obligatory link: http://act.yapc.eu/ye2014/wiki?node=Arrivals both for you and for anyone else looking to share the flights. -- Dakkar - GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88

Re: Westfield (W12) Lunch - SPAM

2014-07-08 Thread Gianni Ceccarelli
On 2014-07-08 Schmoo wrote: > I've recently discovered that NAP have moved into Network House in > W12 To be pedantic, NAP has been in W12 for the last four years, inside the Westfield shopping centre. *Some* NAP employees have been moved to Network House while renovation and expansion is going

[ANNOUNCE] London.pm July social: July 3rd, Defector's Weld W12 8AA

2014-06-19 Thread Gianni Ceccarelli
Hello Perlish people! The July social is going to be in Shepherd's Bush, at the Defector's Weld http://london.randomness.org.uk/wiki.cgi?Defectors_Weld,_W12_8AA Why there? Because it's close to where I happen to work :) The nearest stations are: - Shepherd's Bush (Central) - Shepherd's Bush (O

Re: Unexpected lc behaviour

2013-08-19 Thread Gianni Ceccarelli
$ perl -MDevel::Peek -Mfeature=unicode_strings -e '$a=lc chr(201);Dump($a)' SV = PV(0x15e9cf0) at 0x1613fc0 REFCNT = 1 FLAGS = (POK,pPOK) PV = 0x1603ab0 "\351"\0 CUR = 1 LEN = 16 "-E" enables the "unicode_strings" feature. -- Dakkar - GPG public key fingerprint = A071

Re: Regex lookahead example not as stated in Camel 4th

2013-06-19 Thread Gianni Ceccarelli
On 2013-06-19 Bob MacCallum wrote: > so, forgetting the typo for a moment, why doesn't it output > 012 > 012 > 012 > 012 > ... > ? > > From my reading of the 5.12 perlre docs, there is no mention of > moving the cursor along by one position after each match. Maybe > that is a more general thing

Re: Regex lookahead example not as stated in Camel 4th

2013-06-19 Thread Gianni Ceccarelli
I'd say typo in the book. A "look-ahead assertion" looks like C<< (?= ) >> (note C<=> instead of C<:>). C<< (?: ) >> is just a non-capturing group. $ perl -E 'say for "0123456789" =~ /(?=(\d{3}))/g' 012 123 234 345 456 567 678 789 -- Dakkar - GPG public key fi

Re: Living with smart match breakage

2013-06-13 Thread Gianni Ceccarelli
On 2013-06-13 gvim wrote: > I hear Perl 5.18 issues warnings when the smart match operator is > used Yes, and also when C / C are used. > and some convoluted boilerplate is necessary to work around > them. That boilerplate is spelled: no warnings 'experimental::smartmatch'; or, if you want

Re: API wrapper best practices?

2013-03-26 Thread Gianni Ceccarelli
On 2013-03-26 Ashley Hindmarsh wrote: > Just wonder if the XML Schema wrapping could be extracted Isn't that what XML::Compile does? -- Dakkar - GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88

Re: GNU Texinfo

2013-02-18 Thread Gianni Ceccarelli
On 2013-02-18 Yitzchak Scott-Thoennes wrote: > In a few minutes of searching the online repo, then downloading and > building, I wasn't able to find this putative new makeinfo in the > texinfo 5 source? It's in the ``tp`` directory: http://cvs.savannah.gnu.org/viewvc/texinfo/texinfo/tp/ It's wri

Re: Testsuites and External Dependancies?

2012-12-06 Thread Gianni Ceccarelli
On 2012-12-06 Mark Fowler wrote: > But the OS *is* supported. You just don't have keyboard maestro > installed... From that same wiki page: "How can I stop getting FAIL reports for missing libraries or other non-Perl dependencies?" If you have some special dependencies and don't want to get CP

Re: Agenda Perl and open source events

2012-12-05 Thread Gianni Ceccarelli
That should have probably been http://lanyrd.com/ -- Dakkar - GPG public key fingerprint = A071 E618 DD2C 5901 9574 6FE2 40EA 9883 7519 3F88 key id = 0x75193F88 "Do not meddle in the affairs of wizards, for you are

Re: Hotels for the LPW

2012-10-30 Thread Gianni Ceccarelli
Job van Achterberg wrote: >My wife and I hope to attend this year (last year was grand). Here's a >humble request for couch surfing! I have a guest room with a queen-size bed. It takes about 1h to get to the LPW from my house. -- dakkar - mobilis in mobile

Schwern in London: emergency social

2012-03-23 Thread Gianni Ceccarelli
Schwern is in London. This calls for beer, I asked him on Twitter if he preferred Sunday or Tuesday (which are the days I'm easily free-able), and he said "both". Someone please propose a place, my knowledge of pubs is deplorable. -- dakkar - mobilis in mobile

Re: Matching an array of strings to strings in a file.

2011-08-29 Thread Gianni Ceccarelli
On 2011-08-29 "Martin A. Brooks" wrote: > I have an array of strings. I have some plain text files on disk. I > want to see if any of the lines in the text files contain any of the > strings in the array. I can stop as soon as I find one match. #!perl use Test::More; sub look_in_file { my

Re: Git Config

2011-08-20 Thread Gianni Ceccarelli
On 2011-08-20 Smylers wrote: > Hello. How can I make the git diff command use the -b flag (aka > --ignore-space-change) by default? There does not seem to be a way: - no support in config http://git.kernel.org/?p=git/git.git;a=blob;f=diff.c;h=d3d8daec77142bc6a67aacdc2e62ee522ddf12db;hb=HEAD#l

Re: Damian Conway: Understanding Regular Expressions (properly)

2010-06-24 Thread Gianni Ceccarelli
On 2010-06-24 Léon Brocard wrote: > If you're not going to YAPC in Pisa then you might want to catch > Damian's excellent regexp tutorial in London: And if you *are* going to Pisa, you can catch it there! http://conferences.yapceurope.org/ye2010/training_courses.html Please spread the word, book

Re: On-topic: HTML/JS help please

2010-02-05 Thread Gianni Ceccarelli
On 2010-02-05 David Cantrell wrote: > I want to add a Thingy to CPANdeps to let users collapse/expand > portions of the dependency tree. How would one go about this? http://www.w3.org/1999/xhtml";> Collapse test http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js";>

Re: Help me become a Londoner!

2009-11-24 Thread Gianni Ceccarelli
On 2009-11-24 Richard Huxton wrote: > Ah, walking distance doesn't count as travel. Oh that's another point > for our original poster - you will walk lots in London. If it takes > less than 15 mins to walk somewhere, just do that (unless somewhere is > another tube station on the same line as you*

Re: Help me become a Londoner!

2009-11-19 Thread Gianni Ceccarelli
On 2009-11-19 James Laver wrote: > I used to live in W12 and you can probably pick up a nice flat for a > little over a grand a month. If you want cheaper but a short commute, > try heading west on the central line. Nice and snappy and a regular > service without *too many* breakages. This seems

Re: Help me become a Londoner!

2009-11-19 Thread Gianni Ceccarelli
Ok, based on feedback from the list and IRC, I'll add some more information. Job is (going to be in a few months' time, but let's simplify) in W12, Westfield IIRC. That would suggest looking westward. Also, my "30 minutes" commute seems a bit optimistic: I'll probably have to raise my expected co

Help me become a Londoner!

2009-11-19 Thread Gianni Ceccarelli
Hi all! I'll be starting a job (permanent position) in London at the beginning of January. I have until then to: - find an apartment (renting, I think) - open a bank account - set up all utilities, and an ADSL - move some of my stuff from Pisa Now, since I know very little about how these things

Re: [ANNOUNCE] Emergency Social 12-Nov-09 - The Star Tavern SW1X 8HT

2009-11-11 Thread Gianni Ceccarelli
This is tomorrow! See you there. On 2009-11-09 Sue spence wrote: > Why? > Gianni Ceccarelli (dakkar) is visiting from Italy. Gianni is one of > the founders of perl.it (http://www.perl.it/), helped organise Italian > Perl Workshop 2009 and will no doubt be involved with next

Re: JoCo concert at Union Chapel

2009-11-05 Thread Gianni Ceccarelli
Let's revive this thread, and see if I can avail myself of the famed london.pm hospitality. As I wrote in earlier messages, I'll be in London (near Marble Arch) next Thursday (the 12th). I'm landing at Gatwick at 15:40, so I should be in town at a decent hour for a visit to a pub. So, where and w

Re: Perl linked list segfault

2009-11-04 Thread Gianni Ceccarelli
On 2009-11-04 Andy Wardley wrote: > Ah! That's the magic incantation I needed. I was trying these: > >$ gdb linked_list_segfault.pl >$ gdb perl linked_list_segfault.pl The other way is: gdb --args perl linked_list_segfault.pl -- Dakkar - GPG public key fingerprint

Re: JoCo concert at Union Chapel

2009-10-15 Thread Gianni Ceccarelli
On 2009-10-15 Nicholas Clark wrote: > In which case, the question isn't "which station will you be arriving > at?" but "where abouts are you staying?" I'm staying near Marble Arch, but I'm not afraid of the tube :) (BTW, thank for the help!) -- Dakkar - GPG public key fingerpr

Re: JoCo concert at Union Chapel

2009-10-15 Thread Gianni Ceccarelli
On 2009-10-15 Nicholas Clark wrote: > What time do you arrive, and at which airport, on the evening of > Thursday 12th? 15:40 at Gatwick, so it's not really "evening", but I'm not sure of how much time it'll take between getting my bags and reaching the city But I would certainly be on time for

JoCo concert at Union Chapel

2009-10-15 Thread Gianni Ceccarelli
Is any of you going to the Jonathan Coulton concert (with Paul and Storm) at the Union Chapel on November 13th? I am, and I'll be in London from the evening of the 12th to the the early morning of the 15th. Is anyone up for an emergency social, or a lunch, in those days? -- Dakkar -

Re: Win32 tester for TAP::Harness?

2009-09-12 Thread Gianni Ceccarelli
On 2009-09-12 Steve Purkis wrote: > Does anyone have some free time, a copy of Win32, and some desire to > help test a feature we're trying to get into TAP::Harness (pluggable > source handlers)? Would this help? http://use.perl.org/~Alias/journal/39318 (No, I haven't tried it) signature.a

Re: Perl Christmas Quiz

2008-12-16 Thread Gianni Ceccarelli
On 2008-12-16 Nicholas Clark wrote: > Cheap joke I know, but isn't the canonical example of this simply to > write it in Java? > > What does the most golfed down Java implementation look like? class A{public static void main(String[]a){System.out.println("Hello World");}} Save to a file called