#perl
18 October 2007
Total 49 pages. You are browsing page 5/49.
First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last
02:22 <****> hell`: as well as use warnings and use strict
02:22 <****> Deemer: don't ask to ask, just ask the question :)
02:22 <****> Somni: i was checking it, it doesn't fail
02:22 <****> Perhaps the DBD::mysql perl module hasn't been fully installed <--- keep getting that error
02:22 <****> i bet ActiveState has a perl dist for slow-laris
02:22 <****> they provide HP-UX's perl
02:22 <****> hell`: checking it one time you ran the script is inadequate
02:22 <****> Somni: I have the open() way up in the other part of the code
02:22 <****> mst, on the Solaris 8 boxes, I have the newer perl 5.8.7 installed, and on the Solaris 10 boxes, it comes with perl, compiled with Fortran C, so you need to use perlgcc to install modules.. blah
02:22 <****> idiotben: ew
02:22 <****> i just put it there to see if it made a difference
02:22 <****> hell`: ALWAYS check the return value of calls you're relying on to succeed
02:23 <****> i try to avoid activestate when at all possible
02:23 <****> yeah? never noticed anything different about it tbh
02:23 <****> I have DBI installed but still get - Perhaps the DBD::mysql perl module hasn't been fully installed
02:23 <****> i'm not a seasoned perl hacker by any stretch tho
02:23 <****> idiotben: i've moved to vanilla/strawberry-perl for windows. uhm... perl for everything else :)
02:23 <****> hell`: okay well then remove that, and then provide a _useful_ paste that shows "the other part" (at least the neighborhood) as well :)
02:23 <****> program: that was the sort of crap I used pkgsrc to deal with. ran 5.6, 5.8, 5.10
02:24 <****> Deemer: so install DBD::mysql
02:24 <****> program: actually, the job before that I ran 2.5 but that was a whole different hell :)
02:24 <****> i just run cygwin perl on winders
02:24 <****> sounds like hell
02:24 <****> Deemer: you'll also need to install the MySQL client libraries
02:24 <****> 5.8 is bad enough, but not "that" bad, once you have it setup the way you need it
02:25 <****> program: I liked 5.5, it said "System V Release 4" at the login prompt and it meant it
02:25 <****> once you get cygwin with X/bash/perl/vim/openssh windows is almost bearable to use
02:25 <****> program: provided you could handle that it behaved itself beautifully
02:25 <****> Yum install DBD::mysql does nothing
02:25 <****> idiotben: i keep windows tucked away in a VM and try not to use it ;)
02:25 <****> mst, i haven't been around that long.
02:25 <****> but i'll take your word for it
02:25 <****> how do I get the client libraries
02:25 <****> program: nor have I, but that company's customers did
02:25 <****> ah
02:25 <****> Deemer: i don't know anything about yum, but that's probably not the name of the package.
02:26 <****> program: I ran the dev servers for a software house. Sol 2.5+, AIX 4.2+, IRIX, HPUX, SCO OpenServer
02:26 <****> I have to for work mostly just for Lotus Notes =(
02:26 <****> program: the worst was the Windows 98 Chinese Edition box :)
02:26 <****> idiotben: :(
02:26 <****> Lotus Croaks
02:26 <****> I do all my coding and real work on HP-UX and linux tho
02:26 <****> you know, i did a lot of searching online for a difinitive answer about the development/production thing, and it was difficult to find, so this was my last resource :)
02:26 <****> eww
02:26 <****> yeah
02:26 <****> lotus notes sucks rancid monkey shit
02:27 <****> Lotus has actually made me despise ldap.
02:27 <****> Hi there, how can i convert numbers from X base (e.g binary) to X base (e.g hex) (Note, I mean generically not binary-to-hex only)? Can't find any usefull, and my math skills are horrible :D
02:27 <****> I did some work for Hamada of Japan out here and saw the Windows 98 Chinese Edition, it was weird.
02:27 <****> program: we had a normal win98 box next to it. the rule was "duplicate exactly what you do on each system" :)
02:28 <****> yeah
02:28 <****> XayOn: a short something using oct and sprintf if your bases of interest happen to be only 2, 8, 10, and 16; otherwise search.cpan.org and put in base convert or something :)
02:28 <****> program: oh. the other thing you could try is to use installwatch and checkinstall
02:28 <****> program: to track exactly what a particular CPAN invocation builds+installs
02:28 <****> program: then use that list to build a .pkg
02:28 <****> program: but really, if you can script that, you can write the world's hackiest CPANPLUS::Dist::SolPkg
02:29 <****> hmmm
02:29 <****> program: and if you can write something that works at all, you're welcome to come back here and I'll help you make it CPAN-able
02:29 <****> hobbs, they are not only 2,8,10 or 16, that was the problem, and cpan don't return any usefull (and less base search)
02:29 <****> program: I still have a netra lying around I can test on, took it in part-ex for some consulting way back
02:29 <****> XayOn: Math::BaseCnv looks quite useful for me
02:29 <****> that's what I have sitting next to me
02:29 <****> s/for/to/
02:29 <****> also, Pip for President!
02:29 <****> hobbs thanks :)
02:29 <****> XayOn: http://pound-perl.pm.org/code/base-convert
02:29 <****> program: c'mon, you're a sol admin with recent experience and some perl
02:30 <****> program: I'm a perl hacker with recent experience and some sol
02:30 <****> program: let's do it :)
02:30 <****> XayOn: I haven't looked at the code in a long time; it did work at the time, however
02:30 <****> program: it'll look good on our CVs if nothing else
02:30 <****> alright, i'll get back to you on it
02:30 <****> Ok.. how do I get MySQL client libraries for the DBD perl module?
02:30 <****> i frequent here, just haven't been on irc for a few weeks.
02:30 <****> afk
02:30 <****> somni, hobbs, thanks, it sounds like it'll work, its to work only with small numbers, I mean, it's for my homeworks :-D
02:30 <****> program: good man. my client is 24/7, just prefix stuff with 'mst:' or privmsg me and I'll see it when I get back
02:30 <****> Deemer: same way you would get any other library, that has nothing to do with perl.
02:31 <****> Deemer: consult your OS's manuals
02:32 <****> Hey, do you see? there are a lot of questions system-related with db related (everything is related Doh! =D) things
02:32 <****> Deemer: on usually called libmysql-dev or -devel
02:32 <****> I think it's libmysqlcient in this case
02:33 <****> oh, point.
02:33 <****> hobbs++
02:33 <****> wtf is POE!
02:33 <****> perlbot poe
02:33 <****> POE - multitasking and network framework for perl - http://poe.perl.org/ - POE Cookbook: http://poe.perl.org/?POE_Cookbook
02:33 * idiotben stumbles off to read perldocs
02:33 <****> idiotben: event-driven perl. best way ever to write network services and stuff
02:33 <****> idiotben: serious kick-ass
02:34 <****> oh yeah?
02:34 <****> CPAN is like pr0n for d0rks
02:35 <****> hey. If I have a list of things, is there an easy way to count up the number of occurrences of each thing?
02:35 <****> easier than using a hash of counter vars?
02:35 <****> threexk: my %count; $count{$_} ++ for LIST of things;
02:35 <****> how much easier do you want?
02:36 <****> hobbs: is that valid syntax?
02:36 <****> if you replace the last three words with a useful expression, yes.
02:36 <****> $count{$_}++ for MYLIST?
02:36 <****> right
Total 49 pages. You are browsing page 5/49.
First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last
