On Tue, 2008-10-07 at 10:54 +0100, Dave Hodgkinson wrote:
On 7 Oct 2008, at 10:10, Minty wrote:
On Tue, Oct 7, 2008 at 9:03 AM, Dave Hodgkinson [EMAIL PROTECTED]
wrote:
Then what's the benefit of an ORM? (general question, not just to
you :)
Dunno about ORMs in general, but
with exporting symbols into the callee namespace.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
?
Basically... No.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
foo { @_==2 ? shift-{foo} = pop : shift-{foo} }
This is semantically different, and therefore not an appropriate answer.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
.
I'm sure we've all met this before somewhere in a profiler.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Wed, 17 Sep 2003, Robin Berjon wrote:
Shevek wrote:
On Wed, 17 Sep 2003, Robin Berjon wrote:
sub foo { @_==2 ? shift-{foo} = pop : shift-{foo} }
This is semantically different, and therefore not an appropriate answer.
Semantically different from what, and an appropriate answer
, previous value].
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Tue, 16 Sep 2003 [EMAIL PROTECTED] wrote:
On Tue, Sep 16, 2003 at 01:07:12AM +0100, Shevek wrote:
Other random amusements include a PC with nearly 250 CD-ROMs. *snigger*
It's kind of rackmounted...
Wow, are they all connected? (128 channel ide controllers can't be
*that* expensive
On Tue, 16 Sep 2003, David Cantrell wrote:
On Tue, Sep 16, 2003 at 02:44:25PM +0100, Shevek wrote:
This whole chained accessors thing is a definite perl-ism and will do you
no favours with people for whom Perl is not a primary language.
I see similar method chaining in Java.
poing
(Foobar);
}
}
}
I would credit who wrote this, but I'm not sure if he'd want it known.
*snigger*
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
something perfectly simple. That
in itself quite clearly increases effort for the maintainer, in
contradiction of your earlier mail.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
=( split ',' = $line )[7];
?
I understand that you should have used two lines. Why not do so?
my @tmp = split /,/, $line;
my $foo = $tmp[7];
S.
i'm trying to get the split to return an array, of which I then get the
7th element (and assign to $foo).
/joel
--
Shevek
with
Pixie.
Whut?
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
on the fly when you
work out that you messed up. I don't suppose it works quite as nicely as
Tru64 with optional rebalancing though.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
4031152 86048 3740292 3% /tmp
750megswap
remaining lvm physical volume
drive2: 1024meg swap
remaining lvm physical volume
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
!
+Pete
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
of any one module is incomputable in
general, and most likely incomputable in the specific cases of many
popular modules, especially those with baroque plugin architectures.
Yay, I get to rain on Kake's parade again.
S.
--
Shevekhttp://www.anarres.org/
I am
On Mon, 8 Sep 2003, Kate L Pugh wrote:
Shevek wrote:
Surely identifying the dependencies of any one module is incomputable in
general, and most likely incomputable in the specific cases of many
popular modules, especially those with baroque plugin architectures.
On Mon 08 Sep 2003
On Mon, 8 Sep 2003, Paul Makepeace wrote:
Je 2003-09-08 15:29:16 +0100, Shevek skribis:
I like the suggestion later in this thread about having a standard way of
specifying optional modules. I think that such a feature could benefit
from considerable architecture support, and would make
growing your own using IPC.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Fri, 5 Sep 2003, Paul Crowley wrote:
Shevek [EMAIL PROTECTED] writes:
Isn't this the kind of thing grid engine and its ilk have been designed to
solve? There are many such architectures already written, I'm suprised
noone has mentioned it. There's not much point growing your own
, int * error) {
auto_ptrminer foo;
try {
foo = auto_ptrminer (new miner);
} catch (bad_alloc e) {
*error = ENDORIAN;
return foo;
}
.
return foo;
}
HTH. HAND.
--
Shevekhttp://www.anarres.org
access, whereas .tar files need to be scanned
to work out where each file starts and ends.
And plain `ar' doesn't do compression.
Neither, in the strictest sense, does tar.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http
:.*Returned
/dev/null
:0
* ^Subject:.*deliver
/dev/null
:0
* ^Subject:.*failure
/dev/null
# By now we've trapped 98% of the spam bounces, and we're left
# with a few.
:0:
spam
}
--
Shevek
suddenly hashing to different values.
Ideas?
Mark.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
.
S.
with hash key sorting you may get other random differences - offhand
I can't think what, although how numeric scalars are stored may vary
depending on whether they've been used in a string context.
Nicholas Clark
--
Shevekhttp://www.anarres.org
cards, with the legal protection as a primary backup mechanism
to prevent fraud.
Randomness.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
that a fancy multi-threaded implementation
might not guarantee it (so that very long lists could be mapped without
using too much memory).
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
the ___
can eixst in any position)
This is a job for a tree.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
Create a not-null join to a table containing only those values?
that my database design was wrong.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
this.
is it not simply:
UPDATE user
UPDATE user, user_names
SET user.user_realname = user_names.name
WHERE user.user_id = user_names.user_id
?
--
Shevekhttp://www.anarres.org/
I am the Borg. http
approach, using a hand-coded
SR-parser, generating and then emitting a tree. Cool, I will use it.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
seems to crop up a lot without actually giving much
detail on how to do it.
'strings' is probably a good start.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
a good but fast sandbox,
is to parse the thing properly, generate a parse tree, then emit
guaranteed clean Perl code from the parse tree, and eval that.
I do this on a fairly large scale.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
On Fri, 15 Aug 2003, darren chamberlain wrote:
* Shevek shevek at anarres.org [2003-08-15 12:39]:
The effective halfway house, which does produce a good but fast
sandbox, is to parse the thing properly, generate a parse tree, then
emit guaranteed clean Perl code from the parse tree
On Fri, 15 Aug 2003, Andy Wardley wrote:
Shevek wrote:
Yapp is a brilliant piece of code which I love both in architecture and
implementation, but it's desperately fucking slow.
Slow at compiling the grammar or when running the parser that it builds?
Very slow at running. I don't really
On Fri, 15 Aug 2003, Werm wrote:
Shevek wrote:
On Fri, 15 Aug 2003, Andy Wardley wrote:
Shevek wrote:
Yapp is a brilliant piece of code which I love both in architecture and
implementation, but it's desperately fucking slow.
Slow at compiling the grammar or when running the parser
something outside IT / planning to do something like this?
I'm going to be a perpetual student, because by all accounts, I'm probably
unemployable anyway by now.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
Some::Module::Extended(@_); }
sub new {
fuck_with(@_);
return smnew(@_);
}
# tum ti tum tiddle ti tum... this is why we are supposed to use factory
# methods...
1;
--
Shevekhttp://www.anarres.org/
I am the Borg. http
-[$_]-[$a] } (0..$#arr) } (0..$#{$arr-[0]})
S.
But does anyone know a module that can do this? Any super fast cleverness
that I don't want to even think about?
You could tie it to something that just pretends the coordinates are the
other way around?
S.
--
Shevek
On Mon, 11 Aug 2003, Leon Brocard wrote:
The Canon Security Group based at Canon Europa NV in Amstelveen
(Amsterdam) is currently recruiting a Security Analyst.
Aww shit. This is my ideal job. And I'm not going to apply. I suppose I
could chase them up in a year or two.
S.
--
Shevek
'} = \catch_signal; # best strategy
sub catch_signal
{
etc
etc
}
This should be a simple one
You might need to reset the signal handler in your routine. Different
unixen do this differently.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
. The invocation system might be easier for what
you're trying to do.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
targets, but not both (or something like that, I worked it
out once).
Anyway, does this build for anyone, and if so, how?
Tomorrow's pain in the arse will be: Apache::Test, a very good idea, but
not working with DSOs.
S.
--
Shevekhttp://www.anarres.org/
I am
In one place, it was looking at $], in another place it was looking at
some environment variable which nothing sets! It should look at $] in both
places if it's going to have a hope of working on 5.8
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
On Thu, 24 Jul 2003, Matthew Lawrence wrote:
Shevek wrote:
On Thu, 24 Jul 2003, Clayton, Nik [IT] wrote:
{# It's a scope!
my @warnbuffer;
$SIG{__WARN__} = sub { frob @warnbuffer; }
$SIG{__WARN__} = sub { frob @warnbuffer; die join , @warnbuffer
already, but couldn't
find anything.
http://www.cs.kent.ac.uk/people/staff/rej/gcbook/gcbook.html will give
some overview of the problems of memory management. Also read the (older?)
BSD malloc source code, which is short enough to understand in a few
minutes only.
S.
--
Shevek
allocation than overall memory optimality.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Fri, 18 Jul 2003, David Cantrell wrote:
Does anyone here have any experience of running Linux on IBM zSeries? Cos
Prentice Hall have a book on it.
Was this written by someone inside IBM?
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
how to make it build from apt-get source (anyone?). I
remember majordomo have a wrapper that's been around a long time,
so looked at that.
But then again, majordomo is pretty trivial to 0wn through the wrapper.
Look at -C.
S.
--
Shevekhttp://www.anarres.org
On Thu, 17 Jul 2003, Michael Stevens wrote:
On Thu, Jul 17, 2003 at 03:25:56PM +0100, Shevek wrote:
On Thu, 17 Jul 2003, Paul Makepeace wrote:
But then again, majordomo is pretty trivial to 0wn through the wrapper.
Look at -C.
If you can find holes in majordomo, I'm sure all the usual
RecDescent or FastDescent?
On Wed, 16 Jul 2003, Raf wrote:
Hi,
Just a quick query to find out if there's a good tried and tested module
for parsing lisp s-expressions into perl datastructures (or eventually
into xml?)?
thanks.
R.
--
Shevek
third party sources might not be. This is valid. A distribution of the
generated data is not free.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
a motherboard that supports memory being installed at an
angle that has been designed to provide for decent airflow through the
case.
I deny this, since I have owned several 1Us where this was not the case.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
On Mon, 7 Jul 2003, Jon Reades wrote:
Shevek wrote:
snip
But in answer to John's comments, look at what DBI does!
You assume that I think DBI is a good model for OO design. ;)
Personally, I'd be happier if DBI worked like:
my $db = DBI::MySQL-new(user, pass, db)
But if this were
. For some jobs, I've actually started
writing them in XS rather than in C, because then I get access to all
these nice primitives for doing various sorts of object management, and
this even if I don't have any pure Perl elements of my code.
S.
--
Shevekhttp
On Thu, 10 Jul 2003, Paul Makepeace wrote:
On Thu, Jul 10, 2003 at 04:09:31PM +0100, Shevek wrote:
http://www.gothnicity.org/
http://goth.paulm.com/the_new_black.jpg (75K, work safe)
contains one answer ;-)
To which question? The site displays a random question every time you load
On Thu, 10 Jul 2003, Richard Clamp wrote:
On Thu, Jul 10, 2003 at 04:14:21PM +0100, Shevek wrote:
But if this were the case (for a general system of this type), then the
type of storage now becomes a matter for the code, rather than just a
configuration variable, and
my $obj
On Thu, 10 Jul 2003, Paul Johnson wrote:
Shevek said:
On Thu, 10 Jul 2003, Richard Clamp wrote:
Or, if you're familiar with the fun of perls OO it remains the much
more similar:
my $obj = Factory-$type(...);
But now you are allowing configuration variables to modify actual code
of doing:
Acme-DBI(..). # return Acme::DBI object
Acme-CSV(...) # return Acme::CSV object
at least you wouldn't have to do the new bit... ;-)
I dislike it intensely. It's a whole new syntax.
But in answer to John's comments, look at what DBI does!
S.
--
Shevek
no reason in Perl why Acme::new has to return an Acme.
Perhaps this will illustrate.
sub new {
my $class = shift;
my $type = shift;
$class .= ::$type;
return $class-new(@_);
}
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
On Sun, 6 Jul 2003, Mark Overmeer wrote:
* Shevek ([EMAIL PROTECTED]) [030706 17:28]:
On Sun, 6 Jul 2003, Jonathan Peterson wrote:
Perhaps this will illustrate.
sub new {
my $class = shift;
my $type = shift;
$class .= ::$type;
return $class-new
to figure out if mod_perl is still cool or not.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Wed, 2 Jul 2003, Robin Berjon wrote:
Shevek wrote:
On Wed, 2 Jul 2003, Jonathan Peterson wrote:
Call me thick but so far as I can see the only way to access stuff in
the apache config file (such as PerlSetVar statements) is via the apache
Remember almost all of the config file
almost
syntactically identical in the shell anyway using a few shell variables.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Tue, 1 Jul 2003, Ben wrote:
On Tue, Jul 01, 2003 at 12:47:40PM +0100, Shevek wrote:
I do not understand the need for [the added complexity and perversion
of] [firewall rule management] packages since it is perfectly possible
to write something almost syntactically identical in the shell
On Tue, 1 Jul 2003, Ben wrote:
On Tue, Jul 01, 2003 at 01:21:03PM +0100, Shevek wrote:
On Tue, 1 Jul 2003, Ben wrote:
Anyway, even having looked at filtergen, who really gives a toss if it
came in on eth0? That's assembly programming for firewalls. What everyone
really wants to say
a compiler) was rather jumping in at the deep end, and how
useless h2xs is.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
, where HZ depends on your architecture. On
most x86s, it's 1/100.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
, they will probably want to do something
about it.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
On Sat, 21 Jun 2003, Ian Malpass wrote:
On Fri, 20 Jun 2003, Shevek wrote:
Can someone please recommend a core informational reference book for
the implementation of SQL used in Postgres.
I've got O'Reilly's SQL in a Nutshell:
http://www.oreilly.com/catalog/sqlnut/
It's got
On Fri, 20 Jun 2003, Luis Campos de Carvalho wrote:
Shevek wrote:
On Fri, 20 Jun 2003, Luis Campos de Carvalho wrote:
I'm writting quick so I can back to the today's problem here, a C /
ImageMagick program to manipulate images. My actual problem is that when
I WriteImage() back
of the 'with grant option' clause.
Is this information available online _anywhere_?
Thanks.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://www.gothnicity.org/
with the message
ERROR[-310] line [15] [ns1-handle:[69541] not found in tld registry]
This is normal. You need to register the hostname and IP of all
nameservers explicitly with the registry. I don't know how Joker deal with
this, I only use NSI.
S.
--
Shevek
transport if you are sufficiently determined to
walk from Thameslink.
I would recommend them.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
presents more logical limited
agreement that we should be using the -ize form; he refers to an article
in the OED specifying a precise list of forms which are to be terminated
-ize, all others must be terminated -ise.
I do not own an OED. I wish I did.
S.
--
Shevek
over the other.
Question now irrelevant.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
at 14.4;
management overhead costs more than bandwidth.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
to see if they are running and accepting connections?
Yes. Mon.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
reaping is just fragile under high load.
Ignore the SIGCHLD. POSIX only guarantees signal delivery within 4
minutes. Just reap a few whenever you get to an appropriate point in your
code.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
applications.
Er, isn't the 'M' in there something to do with , cough, MySQL ... ?
Sh. The 'P' is PHP.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
. This would probably be faster.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
fundamental library in the system. In order to get the
benefits of any changes for *all* programs - you must reboot.
This is not actually true. The change will affect all new processes, and
frankly the old libc was probably fine. Look in /proc/*/maps if you don't
believe me.
S.
--
Shevek
added), then forks
will fail.
I can't believe this is true.
It isn't. The old inode is still there until all processes close the file.
Read /proc/*/maps, the linker will annotate the old files as (deleted) and
add version numbers to the mmap()'d space for the new copies.
S.
--
Shevek
{0,1}[A-Z]{0,1}\W[1-9]{1,1}[A-Z]{2,2}/
I also assume you'll be using some form of case-insensitivity in
there...
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
of code that's
at stake? Code is seen as less critical somehow? Less subject to the
same stringent measures of correctness? Even when 99% of the time, a code
error will have a far greater effect than a hole in a firewall.
Anyway...
S.
--
Shevekhttp
, if not fewer.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
warnings at
deployment.
And Fleeg dies. Poor Fleeg.
Whoops. [weak anti-war joke snipped]
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
On Mon, 31 Mar 2003, Richard Clamp wrote:
On Mon, Mar 31, 2003 at 05:04:10PM +0100, Shevek wrote:
On 31 Mar 2003, Randal L. Schwartz wrote:
Wrong. I can't get this to shuttup in Perl 5.5:
my @punctuation = qw(. , ! ?);
I would argue for:
my @punct = do { no warnings; qw
called 'warnings' and not
'errors'.
Taken delightfully out of context. I'll modify that to probably
shouldn't, and my whole argument about only explicitly allowing the
peculiarities you really intended to use stands.
S.
--
Shevekhttp://www.anarres.org/
I am
issues no
warnings, it is always appropriate to use warnings. If your code issues
warnings, it's wrong.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
that Notes and Exchange are both the work of Iraq? When
will the triumphant US and British armies come to liberate?
No, Exchange is the system that will be put in by the liberating army, of
course.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg
? Remember the good old days when you couldn't send mail
to anyone using Exchange unless you had a trust relationship with them,
and it wans't SMTP either?
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
to use PCI
CL5434 or 5446 cards, because I have 8 or more years of using them and I
know them inside out. Right now I'm using an S3, a Diamond FireGL (urk),
an Elsa Gloria Glint/MX (urk! just got replaced actually), and several
onboard i810s.
S.
--
Shevekhttp
is $favorite );
} else {
print hr, start_form;
print p(Please select a flavor: , textfield(flavor,mint));
print end_form, hr;
}
Thanks for your help.
Regards
Brian Smart
--
Shevekhttp://www.anarres.org/
I am
the board in it.
S.
--
Shevekhttp://www.anarres.org/
I am the Borg. http://design.anarres.org/
the regex.
S.
or
if ($is_ok{lc($userinput)}) {
...
}
if($userinput =~ /^\s*y|(ok)/i) # nice
{
...
}
Heh, heh, *this* is nice?
I assume that this was supposed to be:
=~ m/\s*(?:y|(ok))/i
But this is hardly easier than 'eq'.
jon
--
Shevek
-del by mistake on the wrong keyboard.
--
Shevek, professional whore, more at http://design.anarres.org/
1 - 100 of 189 matches
Mail list logo