yasushi has quit [Remote host closed the connection]
simoz111 has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
jailbot has joined #ruby
george2 has quit [Remote host closed the connection]
simoz112 has joined #ruby
george2 has joined #ruby
bricker has joined #ruby
aryaching has joined #ruby
simoz111 has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
rdevilla has quit [Ping timeout: 252 seconds]
motto has quit [Quit: Sto andando via]
aryaching_ has quit []
fgo has joined #ruby
Hanmac has joined #ruby
bricker has quit [Client Quit]
senayar has joined #ruby
mikepack has quit [Remote host closed the connection]
hiall has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 272 seconds]
griffindy has joined #ruby
<REdOG>
i get an undefined reference to `krb5_enctype_to_string' error trying to do gem install rkerberos
Wolland has quit [Remote host closed the connection]
<bnagy>
missing C headers?
senayar has quit [Ping timeout: 252 seconds]
deens has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has joined #ruby
hamakn has quit [Remote host closed the connection]
pr00t has quit [Ping timeout: 272 seconds]
pr00t has joined #ruby
wildroman2 has joined #ruby
SiliconG has quit [Ping timeout: 272 seconds]
Noldorin has joined #ruby
SiliconG has joined #ruby
SiliconG has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 245 seconds]
SiliconG has joined #ruby
Brolen has joined #ruby
tyl has joined #ruby
deens has quit [Ping timeout: 252 seconds]
cashnguns has joined #ruby
predator217 has joined #ruby
drdoom has joined #ruby
wildroman2 has quit [Ping timeout: 272 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
drdoom has quit [Read error: Connection reset by peer]
[krisbulman] is now known as krisbulman
drdoom has joined #ruby
bricker has joined #ruby
Al___ has quit [Quit: Al___]
drdoom has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 272 seconds]
hiall has quit [Quit: hiall]
snuffeluffegus has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
baroquebobcat has quit [Quit: baroquebobcat]
enebo has quit [Quit: enebo]
iajrz has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
griffindy has quit [Quit: Computer has gone to sleep.]
sarlalian has quit [Quit: WeeChat 0.4.0]
JBreit has quit [Ping timeout: 260 seconds]
standyro2 has quit [Ping timeout: 252 seconds]
CaptainJet has quit []
MrZYX is now known as MrZYX|off
tauebel has joined #ruby
Megtastique has joined #ruby
fgo has quit [Remote host closed the connection]
zz_karupanerura is now known as karupanerura
kobain has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: This computer has gone to sleep]
rdevilla has joined #ruby
kobain has joined #ruby
JBreit has joined #ruby
blsuffolk has quit [Remote host closed the connection]
standyro2 has joined #ruby
krisbulman is now known as krisbulman|afk
ndrei has quit [Ping timeout: 264 seconds]
tylersmith has quit [Remote host closed the connection]
tauebel has quit [Ping timeout: 272 seconds]
rdevilla has quit [Read error: Operation timed out]
pietr0 has quit [Quit: pietr0]
srji_ has joined #ruby
sarlalian has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
coca_rails has quit [Remote host closed the connection]
RaCx has joined #ruby
Virtualize|away has joined #ruby
srji has quit [Ping timeout: 252 seconds]
coca_rails has joined #ruby
mikepack has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
coca_rai_ has joined #ruby
saarinen has quit [Quit: saarinen]
SilentHobo has joined #ruby
_maes_ has quit [Ping timeout: 253 seconds]
Xiti has quit [Ping timeout: 252 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
Brolen has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 245 seconds]
Brolen has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
jailbot is now known as jailb0t
jailb0t is now known as jailbot
Wolland has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
rljohnsn has quit [Quit: Leaving.]
mojjojo has quit [Quit: mojjojo]
hamakn has quit [Remote host closed the connection]
Brolen has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Remote host closed the connection]
cephalopod has joined #ruby
robustus has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
yfeldblum has joined #ruby
meatherly has joined #ruby
meatherly has quit [Remote host closed the connection]
shevy has joined #ruby
meatherly has joined #ruby
mojjojo has joined #ruby
pietr0 has joined #ruby
<pontiki>
g'day
<pontiki>
Missing C Headers is the name of my shanty band
SilentHobo is now known as Hobogrammer
sparrovv has quit [Remote host closed the connection]
meatherly has quit [Read error: Connection reset by peer]
meatherly has joined #ruby
moosya has joined #ruby
tkuchiki has joined #ruby
mojjojo has quit [Client Quit]
soba has joined #ruby
chipotle_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Megtastique has quit []
VTLob has quit [Quit: VTLob]
jonno11 has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
larissa has quit [Quit: Leaving]
Brolen has joined #ruby
Brolen has quit [Client Quit]
Vivekananda has joined #ruby
Hobogrammer_ has joined #ruby
phipes has joined #ruby
SiliconG has quit [Ping timeout: 272 seconds]
mando has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
mzdravkov has left #ruby [#ruby]
nanothief has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
tharindu has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
jailbot has quit [Remote host closed the connection]
hamakn has joined #ruby
iamdoo2 has joined #ruby
meatherly has quit [Remote host closed the connection]
dx7 has quit [Ping timeout: 245 seconds]
Red_Onyx has joined #ruby
<dorei>
is there a more beautiful way to write: a && (b = a)
<dorei>
?
<pontiki>
cursive?
jtdowney has joined #ruby
Kricir has joined #ruby
<dorei>
cursive?
<pontiki>
there is b &&= a, but i never remember how that plays out excactly
<pontiki>
it's sort of the analog to ||= only if the precedant is true
<dorei>
i think it expands to b && (b=a)
<pontiki>
truthy, i mean
<pontiki>
i think you are right
iamdoo2 has quit [Ping timeout: 272 seconds]
<dorei>
b=a if a
<dorei>
looks nice too
Vitor has quit [Disconnected by services]
deens has joined #ruby
<pontiki>
*nod* i think that last is more understandable to me
chipotle_ has quit [Ping timeout: 245 seconds]
phipes has quit [Remote host closed the connection]
Vitor_ has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
bricker has quit [Ping timeout: 264 seconds]
davy_ has quit [Remote host closed the connection]
deens has quit [Read error: Operation timed out]
jailbot has joined #ruby
pietr0_ has joined #ruby
Kricir_ has joined #ruby
fgo has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
bleak has quit [Ping timeout: 252 seconds]
clamstar has joined #ruby
blaz3rz has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 252 seconds]
pietr0_ is now known as pietr0
bleak has joined #ruby
jailbot has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 248 seconds]
Kricir__ has joined #ruby
jailbot has joined #ruby
brennanMKE has quit [Remote host closed the connection]
sdwrage has joined #ruby
jrobertfox has joined #ruby
pr00t has quit [Ping timeout: 240 seconds]
slowcon has joined #ruby
nanothief has joined #ruby
Kricir_ has quit [Ping timeout: 272 seconds]
Asher has joined #ruby
Kricir__ has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
<slowcon>
hows it goin guys
jonno11 has quit [Read error: Connection reset by peer]
zeade has quit [Quit: Leaving.]
<Xuisce>
good
<slowcon>
first time in this channel
robert_ has quit [Quit: Connection reset by traffic clause.]
vlad_starkov has joined #ruby
mrsolo has joined #ruby
sski has quit [Remote host closed the connection]
snuffeluffegus has quit [Quit: Leaving]
sski has joined #ruby
simoz112 has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
deens has joined #ruby
sski has quit [Ping timeout: 240 seconds]
pr00t has joined #ruby
i_s has quit [Remote host closed the connection]
snath has quit [Ping timeout: 245 seconds]
knigitz has left #ruby [#ruby]
knigitz has joined #ruby
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
<pontiki>
i keep dozing off
kevind has quit [Quit: kevind]
mrsolo has left #ruby ["Leaving"]
aspires has quit []
senayar has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
snath has joined #ruby
Wolland has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
Hobogrammer_ has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
<pontiki>
derp
mando has quit [Remote host closed the connection]
tyl has quit [Ping timeout: 252 seconds]
mando has joined #ruby
ewnd9_ has joined #ruby
moosya has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
MattStratton has joined #ruby
<slowcon>
derrrppp
SCommette has joined #ruby
mando has quit [Ping timeout: 245 seconds]
bcz has joined #ruby
tauebel has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
bcz1 has quit [Ping timeout: 260 seconds]
phinfone_ has joined #ruby
reset has quit [Read error: Connection reset by peer]
xcv has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 245 seconds]
phinfonet has quit [Ping timeout: 245 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Kricir has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
jonno11 has joined #ruby
nanothief has quit [Read error: Connection reset by peer]
rismoney has quit [Read error: Operation timed out]
nanothief has joined #ruby
tauebel has quit [Quit: Leaving.]
tauebel has joined #ruby
fedesilva has joined #ruby
iamsean has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
aspires has quit []
lfox has joined #ruby
deens has quit [Remote host closed the connection]
iamdoo2 has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
cafhacker has joined #ruby
octoberry has joined #ruby
cafhacker has quit [Client Quit]
meatherly has joined #ruby
tharindu has quit [Quit: Leaving...]
mehlah has quit [Quit: Leaving...]
subbyyy_ has quit [Ping timeout: 260 seconds]
lifestream has joined #ruby
iamdoo2 has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
Virtualize|away has joined #ruby
Kricir_ has joined #ruby
hamakn has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 252 seconds]
gregoriokusowski has quit [Quit: gregoriokusowski]
<snkcld>
if i have x threads which are writing to a file, is it possible for a thread to be interrupted in the middle of a write, thus causing data to be mixed up?
Wolland has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
danshultz has joined #ruby
figgleberry has joined #ruby
<pontiki>
sure is
<bnagy>
just assume yes
freerobby has joined #ruby
blaz3rz has joined #ruby
<bnagy>
even if, irl the answer with ruby is probably no
Virtualize|away has quit [Ping timeout: 240 seconds]
<bnagy>
well MRI anyways
NaStYdoG has quit [Ping timeout: 252 seconds]
<bnagy>
it's a terrible pattern, so just avoid it
<snkcld>
rats.
deric_skibotn_ has quit [Ping timeout: 264 seconds]
<snkcld>
im trying to export from a database to a csv, and itd be faster if i had more threads
NaStYdoG has joined #ruby
phinfone_ has quit [Quit: exitiing]
NaStYdoG is now known as Guest6065
<pontiki>
what sort of database?
<pontiki>
it might be faster to just have the database do it
<snkcld>
postgresql
<snkcld>
the data is pretty complicated, the way its normalized...
<centrx>
Use a query
<bnagy>
you're going to lose all your time in processing, not in writing
<snkcld>
will postgresql use threading? im trying to leverage the fact htat i have 8 cores
<centrx>
The database will export a CSV extremely fast
<snkcld>
heh, ok that should be good then
<snkcld>
extremely fast on one thread is better than slow on 8
figgleberry has quit []
blaz3rz has quit [Ping timeout: 260 seconds]
<bnagy>
writing to a single file handle is not really a good showcase for parallelism
<centrx>
snkcld, And single threads use multiple cores
<centrx>
I don't know what postgresql threading model is
<centrx>
But yeah that too, you can't write to the disk faster by having more threads
aryaching has quit [Ping timeout: 272 seconds]
aryaching_ has joined #ruby
lukec has joined #ruby
<snkcld>
bnagy: yea good point
gja has joined #ruby
<snkcld>
centrx: yea thats true too heh.
<snkcld>
was just assuming that via buffering/etc it may help. meh. the postgres export sounds like a good idea anyway
<centrx>
snkcld, It will probably be 10x faster than doing it outside the database
Kricir_ has quit [Remote host closed the connection]
MacGruberGuy has quit [Quit: Leaving]
jailbot has quit [Remote host closed the connection]
<snkcld>
centrx: youre absolutely right. id venture to say almost 1000x faster heh
byprdct has joined #ruby
<snkcld>
though i need to join on other relevant data
<bnagy>
how often will you do this export?
aryaching has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<snkcld>
meh, just this once. its a good 500k entries though. as i figure out how i want to relate my data in my other database, i may adjust some things and run it again
dkamioka has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
fgo has quit []
<bnagy>
once?
<bnagy>
just write it the clearest way possible then
<bnagy>
job done
<bnagy>
you've been on here asking about it for days, you'd be done by now :)
<bleak>
hehe
havenwood has joined #ruby
<pontiki>
HAAAY BNAGY, IS THAT YOUR YAK THAT NEEDS SHAVING?
<snkcld>
haha
<snkcld>
well i expect that i will be adjusting it alot, as i play with the data
dkamioka_ has joined #ruby
vpretzel has quit [Quit: Adios!]
mocfive has quit [Remote host closed the connection]
<bnagy>
srsly though, it's something you should bear in mind for "ooh shiny" dev projects - will this run often enough to repay the time and effort I'm spending
<bnagy>
I go down that rabbithole all the time :(
sdwrage has joined #ruby
<snkcld>
oh no, i agree. its alot of morbid curiosity too really
<slowcon>
hahaha i just thought of the first thing that i will use daily
aryaching_ has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
<snkcld>
whats that
<slowcon>
I'm trying to start a script that goes to a forum, clicks a post title, clicks the download link in the post, then clicks the zippy share link
sensen has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
<bnagy>
seems legit
robbyoconnor has joined #ruby
brunops has joined #ruby
Wolland has joined #ruby
Kricir has joined #ruby
mikepack has quit [Remote host closed the connection]
Kricir_ has joined #ruby
WillAmes has joined #ruby
Shidash has joined #ruby
brunops has quit [Client Quit]
tvw has quit [Ping timeout: 272 seconds]
Wolland has quit [Ping timeout: 272 seconds]
Red_Onyx has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
Kricir has joined #ruby
dx7 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
dkamioka_ has quit [Remote host closed the connection]
top4o has joined #ruby
eka has joined #ruby
radic has quit [Ping timeout: 272 seconds]
Kricir_ has quit [Ping timeout: 252 seconds]
TaxmanBD has quit [Quit: Leaving]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
griffindy has quit [Quit: Computer has gone to sleep.]
dx7 has quit [Ping timeout: 248 seconds]
radic has joined #ruby
bleak has quit [Ping timeout: 245 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eka has quit [Client Quit]
clamstar has quit [Quit: Computer has gone to sleep.]
<havenwood>
bradding: It isn't printing it, it is showing you the return value. When the value is irrelevant `nil` can be used as a placeholder, it's got to return something.
meatherly has joined #ruby
<bradding>
even though it is returning the variable I asked for
<havenwood>
bradding: It is printing the variable as a string with a newline then returning `nil`.
p4tuxx has joined #ruby
aryaching_ has joined #ruby
kobain_ has joined #ruby
chipotle has joined #ruby
ewnd9_ has quit [Read error: Operation timed out]
aryaching has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
p4tux has quit [Ping timeout: 272 seconds]
<havenwood>
bradding: If you run the code outside a REPL you'll see that `nil` isn't being printed.
meatherly has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
w4pm has quit [Ping timeout: 252 seconds]
iamdoo2 has joined #ruby
<bradding>
havenwood, I have noticed that a few times. thanks havenwood
vlad_starkov has quit [Read error: Connection reset by peer]
mmcdaris has quit [Quit: mmcdaris]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
mocfive has joined #ruby
meatherly has joined #ruby
Spami has joined #ruby
agjacome has quit [Quit: leaving]
Spami has quit [Client Quit]
coca_rai_ has quit [Remote host closed the connection]
coca_rails has joined #ruby
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
lifestream has left #ruby ["(Goodbye)"]
gja has quit [Quit: This computer has gone to sleep]
braincrash has quit [Quit: bye bye]
coca_rails has quit [Ping timeout: 240 seconds]
rm_ has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
rm__ has joined #ruby
Hanmac has joined #ruby
gja has joined #ruby
Noldorin has quit []
Hanmac1 has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
saarinen has joined #ruby
thomasxie has joined #ruby
Wolland has joined #ruby
tauebel has quit [Quit: Leaving.]
danijoo_ has joined #ruby
danijoo has quit [Read error: Operation timed out]
rylinaux_ has joined #ruby
rylinaux- has joined #ruby
dodosan has joined #ruby
dodosan has quit [Client Quit]
postmodern has quit [Quit: Leaving]
<bradding>
havenwood, what kind of applications have you made?
rylinaux has quit [Quit: Quit - ZNC]
rylinaux_ has quit [Client Quit]
rylinaux- has quit [Remote host closed the connection]
rylinaux has joined #ruby
rylinaux is now known as Guest28478
ronal1102 has quit [Quit: Connection closed for inactivity]
<centrx>
The best kind
saarinen has quit [Quit: saarinen]
robert_ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
ewnd9_ has joined #ruby
robert_ has quit [Max SendQ exceeded]
kitak has quit [Remote host closed the connection]
Guest28478 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<havenwood>
bradding: mesh network cat collars, refrigerators with emotions, haptic feedback suspenders, that kinda thing
troyready has quit [Ping timeout: 248 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
nfk has quit [Quit: yawn]
m104 has joined #ruby
anildigital is now known as zz_anildigital
SiliconG has joined #ruby
estebistec has joined #ruby
Megtastique has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
seoNinjaWarrior has quit [Ping timeout: 252 seconds]
deens has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
senayar has joined #ruby
Virtualize|away has joined #ruby
<agent_white>
I made tic-tac-toe once
coca_rails has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
meatherly has quit [Ping timeout: 265 seconds]
senayar has quit [Ping timeout: 252 seconds]
x77686d has quit [Quit: x77686d]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
Megtastique has quit []
estebistec has quit [Remote host closed the connection]
Virtualize|away has quit [Ping timeout: 245 seconds]
sski has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
Guest55511 has quit [Ping timeout: 240 seconds]
ewnd9_ has quit [Ping timeout: 264 seconds]
coca_rails has quit [Ping timeout: 241 seconds]
sdwrage has joined #ruby
<bradding>
Am I doing something wrong, why am I getting hex?
<patrickv>
maybe I should replace filestreamer by a forked popen or something
james_d_h has quit [Ping timeout: 245 seconds]
shvelo has quit [Ping timeout: 272 seconds]
fluve has quit []
yuuki1224 has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
LiohAu has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
<littlebit>
hi people, I'm trying to install activerecord-mysql-adapter via 'gem install', but I get as a result this: http://pastebin.com/bhHKyqAc and looking at /var/lib/gems/1.9.1/gems/mysql-2.9.1/ext/mysql_api/gem_make.out doesn't really tell me much. Maybe someone could help? I use ubuntu as an OS
<patrickv>
littlebit, type apt-get install libmysqlclient-dev
michael_lee has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
meatherly has joined #ruby
<patrickv>
also, before your gem install, don't forget 'sudo'
<littlebit>
patrickv: ofcourse ;)
<patrickv>
does it work better after installing libmysqlclient-dev ?
Speed has joined #ruby
lxsameer has joined #ruby
charliesome has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
w4pm has quit [Ping timeout: 245 seconds]
<littlebit>
i'm now at "sudo gem install" and it worked :) thanks
ndrei has quit [Ping timeout: 260 seconds]
<patrickv>
there you go then
mojjojo has quit [Quit: mojjojo]
davy_ has quit [Ping timeout: 245 seconds]
michael_lee has joined #ruby
sensen has quit [Quit: leaving]
timonv has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
shime has joined #ruby
therod has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
<littlebit>
patrickv: the reason y I need to install that gem is because I'm initially trying to install redmine (ruby based server solution) and I still get this part: http://pastebin.com/dV47hP4j
jonno11 has joined #ruby
kitak has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
<workmad3>
littlebit: you don't really need to install the gem 'activerecord-mysql-adapter'
<workmad3>
littlebit: you need the gem 'mysql'
<Hanmac1>
littlebit: "(12:03:01) patrickv: does it work better after installing libmysqlclient-dev ?" <<< did you do that?
<patrickv>
workmad: I agree. I didn't know the context
<littlebit>
Hanmac1: i did
<littlebit>
Hanmac1: then the gem install part worked
<patrickv>
normally if redmine is installed through apt, then the deps should follow and no gem would need to manually install
<littlebit>
workmad3: ISTRIB_ID=Ubuntu
<littlebit>
DISTRIB_RELEASE=13.10
<littlebit>
DISTRIB_CODENAME=saucy
<littlebit>
DISTRIB_DESCRIPTION="Ubuntu 13.10"
Hanmac1 is now known as Hanmac
<patrickv>
ok saucy
xcv has quit [Remote host closed the connection]
<patrickv>
I'm guessing you are all up to date, right? apt-get update, apt-get dist-upgrade etc?
<workmad3>
I also wouldn't install redmine through apt-get :)
xcv has joined #ruby
<patrickv>
workmad: I wouldn't either
<patrickv>
well actually I wouldn't install redmine at all but that's yet another topic
<patrickv>
but as a general thing, I don't think that installing a web app via APT is a good idea
coca_rails has quit [Ping timeout: 240 seconds]
<patrickv>
it beats not being able to install it though
petey has joined #ruby
<patrickv>
littlebit, how is your apt-get update / dist-upgrade going?
<workmad3>
littlebit: btw, the redmine instructions say to do 'apt-get install redmine redmine-mysql' for the packaged version...
<littlebit>
patrickv: doing it now
<workmad3>
littlebit: dunno if you did both packages or not though...
ndrei has quit [Ping timeout: 252 seconds]
xcv_ has joined #ruby
<patrickv>
yup that makes sense. a good update before that will help though
tesuji has joined #ruby
<patrickv>
linux 3.1 in a saucy is clearly not up to date
<workmad3>
patrickv: yeah, I also wouldn't install redmine... we just use github issue trackers and physical walls :)
<workmad3>
but if I did, I'd use postgres
<patrickv>
mmmh, wouldn't recommend postgres
<patrickv>
not that postgres is bad at all
<littlebit>
patrickv: ok it is apparently downloading mysql-* deb-packages
<workmad3>
I'd recommend it over mysql :)
<patrickv>
but unless you have specific needs that only postgres covers, you're going to have a harder time getting support for it in general
<workmad3>
I wouldn't say that was true anymore
<patrickv>
hell yeah it's true
Davedo has quit [Ping timeout: 248 seconds]
mburns has quit [Ping timeout: 252 seconds]
<patrickv>
I just look around me. they all know mysql, none know postgres
<littlebit>
workmad3: the thing that I don't like about postgresql is that u don't clearly have a line between usershell and command shell of postgresql
<workmad3>
I'm entirely the opposite :)
khismetix has joined #ruby
<workmad3>
I know very few people that use mysql
<patrickv>
but do you know a lot people who know mysql?
<workmad3>
I know quite a lot of people that know and use postgres
xcv has quit [Ping timeout: 252 seconds]
<patrickv>
what location/context are you in?
petey has quit [Ping timeout: 245 seconds]
<workmad3>
UK, rails
SiliconG has joined #ruby
<patrickv>
interesting
zipper has joined #ruby
jtdowney has joined #ruby
<workmad3>
and that's both in person and online
zipper is now known as Guest42906
<patrickv>
then again, nothing against postgres, more of what I've seen in many countries and context
<workmad3>
as I said,
Guest42906 has quit [Client Quit]
<workmad3>
I definitely agree that it used to be true, but I'm not convinced it's true anymore, that postgres is less used, harder to get support, etc
zipper_ has joined #ruby
zipper_ is now known as zipper{-_-}
<tobiasvl>
we use postgres too, no mysql
_Andres has joined #ruby
<patrickv>
oh well. things can evolve
<tobiasvl>
haven't used mysql since i was a kid and learned php
<patrickv>
I'm old ha ha
xcv_ has quit [Remote host closed the connection]
<workmad3>
postgres has been getting a lot more notice in the last few years :)
<jlebrech>
postgres is webscale haha
xcv has joined #ruby
khismetix has left #ruby [#ruby]
<patrickv>
I'm from when we could actually use Ingress as a thing
<workmad3>
and there was quite a large change when oracle took over sun (and by extension mysql) and people got worried... the mysql market fragmenting at that point with mariadb didn't help IMO :)
rm__ has joined #ruby
<patrickv>
the management of mysql has always been dysfunctional
<workmad3>
still, experiences differ, and it definitely depends on your team and what they use
<littlebit>
ok during "apt-get dist-upgrade" I landed with the installation and configuration of the dep packages, and got this error "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"
<littlebit>
what to do?
Davedo has joined #ruby
vlad_starkov has joined #ruby
<workmad3>
I guess I'd say 'in the absence of notable experience or previous installs, I'd recommend postgres over mysql'
vlad_starkov has quit [Remote host closed the connection]
<patrickv>
you restart mysql. service mysql start.
<workmad3>
littlebit: sounds like your mysql server is either not installed or not started (could be because of a misconfiguration)
<workmad3>
littlebit: or your socket path is incorrect :)
<Nowaker>
the good thing of mysql, and the *only* good thing of mysql, is phpmyadmin. i have never used any better sql management software. ;)
<patrickv>
hey workmad, do you know of a pattern in ruby that allows to feed the output of a subprocess, in chunks, to a ruby eventmachine?
<patrickv>
I'm looking for the same behaviour as perl POE::Wheel::Run or maybe nodejs ChildProcess
mburns has joined #ruby
<rdark>
I hear good things about pgadmin, if you're into GUIs
<patrickv>
I could do it manually with fork/exec, and select on filehandles obviously, but there is probably a pattern that does it already, right?
<workmad3>
patrickv: I guess you'd use popen to open non-blocking streams to the subprocess in something like an EM::Deferred, then in the deferred code (which iirc runs in a separate thread) you can read the subprocess output in into a buffer and then trigger an EM event when the chunk is filled
rm__ has quit [Ping timeout: 272 seconds]
<patrickv>
yeah I could do that
<patrickv>
but that means double copy
<patrickv>
and I want to handle A LOT of data
<workmad3>
patrickv: there might be an EM plugin for talking to a subprocess
SiliconG has quit [Ping timeout: 245 seconds]
<workmad3>
patrickv: where's the double copy?
<Nowaker>
rdark: I use it every day just because there aren't any better alternatives. but it's really weak compared to phpmyadmin.
<patrickv>
"read the subprocess output into a buffer"
<workmad3>
patrickv: that only leaves one copy in memory
withnale has quit [Read error: Operation timed out]
<patrickv>
that I have to read again in my main process to do other stuff
<patrickv>
if I could feed a filehandle instead of a filename to this thing
<rdark>
Nowaker: The only thing I know about phpmyadmin is that it makes a mess in my logs when public webservers get scanned for vulnerable instances :)
<patrickv>
it would probs work
eka has quit [Quit: Computer has gone to sleep.]
<Nowaker>
rdark: phpmyadmin needs to be inside the vpn
<Nowaker>
we all know php software is a crap internally... ;-)
<workmad3>
Nowaker: you could always try PhpPGAdmin ;)
<patrickv>
yes. and just like mysql it's super easy to use so it's popuplar
<patrickv>
go figure ha ha ha :)
<Nowaker>
workmad3: I use it too. it's crap. :D
<patrickv>
ok time to eat
<Nowaker>
it's extremely unusable...
<patrickv>
see you guys
<rdark>
Nowaker: (I meant scanned as in scanned for non-existent instances - I wouldn't ever actually put something like that publicly accesible, obviously..)
<workmad3>
Nowaker: so just like PhpMyAdmin ;)
<Nowaker>
rdark: oh, I see. sorry :)
yfeldblum has joined #ruby
<Nowaker>
workmad3: nope. phpmyadmin is really cool, and I can do everything I need there without clicking too much - compared to pgadmin3 or phppgadmin
<Nowaker>
s/I can/I could/
lkba has joined #ruby
<Nowaker>
as I don't run production storage on mysql
<Nowaker>
:P
VTLob has joined #ruby
arctarus has left #ruby ["Leaving"]
RoxasShadowRS has joined #ruby
<littlebit>
workmad3: ok mysql-server was among the upgrades and is now working and the sock-file is present. And still get this: http://pastebin.com/dV47hP4j
kkrusty has joined #ruby
<kkrusty>
Hi. is it possible to debug a ruby script with gdb which is using some shared library internally?
Bumptious has joined #ruby
drumusician has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
kkrusty: hm it should be, i tested it with my bindings too
cid404 has joined #ruby
<kkrusty>
Hanmac: actually I've just realized I can do that too. I guess it should be gdb --args ruby script.rb instead of gdb --args script.rb
phinfonet has joined #ruby
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
<littlebit>
patrickv: u there?
xcv_ has joined #ruby
<littlebit>
anyone
poulson has joined #ruby
soba has quit [Ping timeout: 245 seconds]
withnale has joined #ruby
dEPy has joined #ruby
xcv has quit [Ping timeout: 245 seconds]
greenarrow has quit [Quit: 500]
yuuki1224 has quit [Remote host closed the connection]
zegerjan has quit [Ping timeout: 260 seconds]
ewnd9_ has joined #ruby
james_d_h has joined #ruby
mordocai has quit [Remote host closed the connection]
guardianx has joined #ruby
SiliconG has joined #ruby
james_d_h has quit [Ping timeout: 260 seconds]
larissa has joined #ruby
evenix_ has joined #ruby
gregoriokusowski has quit [Quit: gregoriokusowski]
meatherly has joined #ruby
fedesilva has joined #ruby
jtdowney has quit []
SiliconG has quit [Ping timeout: 260 seconds]
evenix_ has quit [Ping timeout: 240 seconds]
Rainicorn has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
VinceThePrince has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
ctp_ has joined #ruby
angusigu1ss has joined #ruby
tom____ has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
tom____ is now known as t0m0_
<littlebit>
please can someone help?
VinceThePrince has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
dx7 has joined #ruby
t0m0_ has quit [Client Quit]
tom____ has joined #ruby
tom____ has quit [Client Quit]
t0m0_ has joined #ruby
coca_rails has joined #ruby
littlebit has quit [Quit: littlebit]
<Hanmac>
littlebit: are both "activerecord-mysql-adapter" and "mysql" gems installed?
ctp has quit [Ping timeout: 252 seconds]
t0m0_ has quit [Client Quit]
t0m0_ has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
senayar has quit [Remote host closed the connection]
stryek has quit [Ping timeout: 248 seconds]
heftig has quit [Quit: Quitting]
<t0m0_>
has anyone had experience with tinymce?
coca_rails has quit [Ping timeout: 240 seconds]
<DouweM>
t0m0_: I'm sure lots of people have. What's the issue?
<t0m0_>
no issue
<t0m0_>
just wanting some help using it to edit a post
<t0m0_>
and update the "post" model
<t0m0_>
i'm a noob so not sure how to approach it.
<DouweM>
You can just write your model, views and controllers as you always would, and then use TinyMCE to transform the <textarea> into a WYSIWYG editor
<DouweM>
that's all client-side, doesn't touch Ruby (or Rails, which I'm assuming you're using)
<DouweM>
Also, if this is indeed a Rails thing, you may have better luck in #RubyOnRails
shime has quit [Ping timeout: 245 seconds]
jtdowney has joined #ruby
AntelopeSalad has joined #ruby
poulson has quit [Ping timeout: 245 seconds]
marcgg has quit [Ping timeout: 272 seconds]
VTLob has quit [Quit: VTLob]
greenarrow has joined #ruby
jackneill has joined #ruby
timonv has quit [Remote host closed the connection]
dkamioka has joined #ruby
Macaveli has quit [Ping timeout: 265 seconds]
<t0m0_>
yeah it's a Rails thing, I'm not executing tinymce on load, instead it's caled onClick as I'm using Jquery Dialog. I'll give #RubyOnRails a go if this is the wrong forum.
littlebit has joined #ruby
Mon_Ouie has joined #ruby
timonv has joined #ruby
<littlebit>
patrickv: u there?
yasushi has joined #ruby
poulson has joined #ruby
rm__ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
obs has quit [Quit: Konversation terminated!]
Rainicorn is now known as LadyRainicorn
wildroman2 has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<littlebit>
i need some help with intalling redmine, in the installation process I get a rake error: http://pastebin.com/rTGNLiez
<littlebit>
can someone help
davy_ has joined #ruby
Macaveli has joined #ruby
rm__ has quit [Ping timeout: 252 seconds]
SiliconG has joined #ruby
jrobertfox has joined #ruby
aryaching has quit [Ping timeout: 252 seconds]
boboc has joined #ruby
davy_ has quit [Ping timeout: 248 seconds]
yacks has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
timonv has joined #ruby
yfeldblum has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
therod has quit [Ping timeout: 245 seconds]
chrisseaton has joined #ruby
spacebug has joined #ruby
spacebug has left #ruby [#ruby]
greenarrow has quit [Quit: 500]
vlad_sta_ has joined #ruby
therod has joined #ruby
yasushi has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 260 seconds]
therod has quit [Client Quit]
mojjojo has joined #ruby
SiliconG has quit [Ping timeout: 260 seconds]
shime has joined #ruby
ndrei has joined #ruby
wildroman2 has quit [Remote host closed the connection]
popl has quit [Read error: Operation timed out]
dEPy has quit [Quit: Computer has gone to sleep.]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
Butcho has joined #ruby
e^0 has joined #ruby
VTLob has joined #ruby
ohwhoa has quit [Read error: Connection reset by peer]
ohwhoa_ has joined #ruby
ewnd9_ has quit [Ping timeout: 264 seconds]
dx7 has joined #ruby
jtdowney has quit []
|RicharD| has joined #ruby
<|RicharD|>
hi to all
<|RicharD|>
how i can search the character \ into a string ?
<|RicharD|>
i'm doing brand.name =~ /y/
<|RicharD|>
with y letter, but for \ how I can do ?
yuuki1224 has joined #ruby
aryaching has joined #ruby
obs has joined #ruby
<LadyRainicorn>
\\
<|RicharD|>
ty
<Hanmac>
littlebit: are both "activerecord-mysql-adapter" and "mysql" gems installed?
Virtualize|away has joined #ruby
heftig has joined #ruby
james_d_h has joined #ruby
bleak has quit [Read error: Connection reset by peer]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<LadyRainicorn>
ITS SMALLER MKAY.
xcv_ has quit [Remote host closed the connection]
<DouweM>
weren't we trying to make this more elegant? :p
bleak has joined #ruby
<LadyRainicorn>
lies it is golf
heftig has quit [Remote host closed the connection]
<bhaak>
in my particular case, it's unlikely that the array will ever grow to more than 100 elements, so I don't care about one or two iterations :)
<bhaak>
thx, LadyRainicorn
<DouweM>
bhaak: I think the inject example is plenty readable *shrug*
<Hanmac>
bhaak: array.lazy.map(&:some_number).inject(0,:+) might be the the best of the ways (PS: remember the default value of inject or it can bite in your ass)
nari has joined #ruby
IceyEC has joined #ruby
mojjojo has joined #ruby
<bhaak>
DouweM: the first one? yes it is readable, but the "sum" variable feels not necessary.
SiliconG has joined #ruby
<DouweM>
bhaak: sure
<Hanmac>
bhaak & DouweM: look also at: {|sum,o| sum += o.some_number } is unnessary, {|sum,o| sum + o.some_number } is enough (the difference, += compared to = might be a little bit slower)
Sou|cutter has quit [Ping timeout: 252 seconds]
Sou|cutter has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
kkrusty has quit [Quit: leaving]
<LadyRainicorn>
Do you need the default value here?
browndawg has left #ruby [#ruby]
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
vjt has quit [Ping timeout: 276 seconds]
jkamenik has joined #ruby
<DouweM>
LadyRainicorn: I guess not, because it'll just take the first value otherwise which is fine in this case
[krisbulman] is now known as krisbulman
coca_rails has joined #ruby
chipotle_ has joined #ruby
fedesilva has quit [Remote host closed the connection]
dblessing has joined #ruby
aryaching has quit [Ping timeout: 265 seconds]
SiliconG has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
daGrevis has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
petey has joined #ruby
<daGrevis>
hi! how can you pass the method X into a method call w/o calling the method X?
coca_rails has quit [Ping timeout: 240 seconds]
<DouweM>
daGrevis: pass its name as a symbol
vjt has joined #ruby
<daGrevis>
DouweM, what's the syntax for that? it's something like quoting in Lisp?
<daGrevis>
s/it's/is it/
<DouweM>
if the method is called 'upcase', use :upcase
<DouweM>
:foo that's Ruby symbol syntax
<daGrevis>
DouweM, ye, thanks. sounds cool :)
<daGrevis>
I had this in my mind for a long time. finally asked
daGrevis has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
daGrevis has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
x77686d has joined #ruby
sdwrage has joined #ruby
x77686d has quit [Client Quit]
vlad_starkov has joined #ruby
xcv has joined #ruby
heftig has joined #ruby
petey has quit [Ping timeout: 264 seconds]
sdwrage has quit [Client Quit]
heftig has quit [Remote host closed the connection]
yacks has joined #ruby
chrisseaton has quit [Read error: Connection reset by peer]
krisbulman is now known as [krisbulman]
Al__ has left #ruby [#ruby]
rm_ has joined #ruby
[krisbulman] is now known as krisbulman
phansch has quit [Quit: Leaving]
<littlebit>
Hanmac: zes
<littlebit>
Hanmac: yes i did
<Hanmac>
littlebit: error still happens?
kpshek has joined #ruby
freerobby has joined #ruby
<Hanmac>
littlebit: do you use bundler and/or rvm?
yacks has quit [Max SendQ exceeded]
<littlebit>
Hanmac: the error still happens, don't know anything about a bundler or rvm
<Hanmac>
littlebit: you can try in #rubyonrails if they can fix your problem
yacks has joined #ruby
<apeiros>
daGrevis: another way is to use block arguments
<apeiros>
daGrevis: and a third way is to use Method instances. See Object#method
mojjojo has quit [Quit: mojjojo]
rm_ has quit [Ping timeout: 252 seconds]
<apeiros>
I'd say order of "common-ness" is block > symbol > method
tjaco has joined #ruby
SeySayux has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
rmorello has joined #ruby
<littlebit>
Hanmac: ok
<DouweM>
daGrevis: it really depends on what you're trying to do
jrobertfox has quit [Remote host closed the connection]
<greenarrow>
is it possible to 'unrequire' a 'required' extension
<Hanmac>
greenarrow: nope
mojjojo has joined #ruby
<greenarrow>
trying to write a rake task to unload a gem
<greenarrow>
is it even possible
<Hanmac>
its like fixing an egg after it hits the ground ;P
<DouweM>
greenarrow: what problem are you trying to solve?
<greenarrow>
speeding up the launch of my rubymotion app by unloading a gem which causes a slowdown
yasushi has joined #ruby
<DouweM>
and why do you have to require the gem at all if you apparently don't need it?
* Hanmac
points and laugh at rubymotion
heftig has joined #ruby
<waxjar>
you can try loading it until you need it, it'll still cause the slowdown though.
yfeldblum has quit [Ping timeout: 264 seconds]
<greenarrow>
I do in some cases, I just want a rake task to remove that gem requirement for when i dont need it
marcgg has joined #ruby
SiliconG has joined #ruby
yuuki1224 has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
dEPy has quit [Quit: Computer has gone to sleep.]
Shidash has quit [Ping timeout: 245 seconds]
yuuki1224 has joined #ruby
<waxjar>
why don't you simply not load it, unless you need it? using an environment variable for example
<greenarrow>
I guess, was just wondering if it was possible through a rake task
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
vpretzel has joined #ruby
Advocation has joined #ruby
heftig has quit [Quit: Quitting]
DaniG2k has quit [Quit: leaving]
jrobertfox has joined #ruby
eka has joined #ruby
heftig has joined #ruby
yuuki1224 has quit [Ping timeout: 245 seconds]
rh1n0 has joined #ruby
rh1n0 has quit [Max SendQ exceeded]
ndrei has quit [Ping timeout: 272 seconds]
banister has joined #ruby
<shevy>
Hanmac that syntax is weird Dir["*"].sort_by(&File.method(:size))
<shevy>
how does it know which argument to take?
<Hanmac>
with magic?
<shevy>
there is no magic
t0m0_ has quit [Quit: Lost terminal]
<shevy>
File.size would not work
jtdowney has joined #ruby
SiliconG has quit [Ping timeout: 264 seconds]
<DouweM>
what's weird about it? the File.size method takes one argument: the file name, which is actually what sort_by will pass its block
rh1n0 has joined #ruby
<DouweM>
the block in this case being a proc for the File.size method
jtdowney has quit [Client Quit]
jtdowney has joined #ruby
adayzdone has joined #ruby
tkuchiki has quit [Remote host closed the connection]
stryek has joined #ruby
krawchyk has joined #ruby
danshultz has joined #ruby
<Hanmac>
shevy: Dir["*"].sort_by(&File.method(:mtime)) works too
<adayzdone>
Hi All... I need someone to help either A) translate a ruby script into pseudo code B) adapt the script to take 3 parameters and return the results ... Anyone interested?
dfranciosi has quit []
tvw has quit []
<adayzdone>
wil pay $50/hr
<shevy>
:\
james_d_h has joined #ruby
Megtastique has joined #ruby
wildroman2 has quit [Remote host closed the connection]
dawkirst_ has quit [Ping timeout: 272 seconds]
AxonetBE has joined #ruby
dfranciosi has joined #ruby
<AxonetBE>
how can I make from a string user.shop.estimates, where the last part is depending on a string I have so it can be estimates, orders or invoices
<DouweM>
adayzdone: show us the script, if it's interesting and not too much, chances are we'll do it for fun and for free
<Hanmac>
shevy: i think the question is why i need the Method #method right?
tonni has quit [Remote host closed the connection]
Guest6676 has quit [Read error: Operation timed out]
<shevy>
yes
<Hanmac>
"File.size would not work" << thats the reason why
<shevy>
Hanmac why does the method() variant work but not directly calling the method by its name?
<adayzdone>
DouweM There is a tab delimitted text file that has phrases in one language coupled with translations in another. I have blocks of text I need to parse with the translation text
<Hanmac>
shevy sort_by wants a block thats why i need &
<shevy>
hmm
<DouweM>
shevy: File.size would call the size method without an argument. what we want is a refernce to the method itself so that we can call it with random arguments like a block
bnjamin has quit [Remote host closed the connection]
diegoviola has joined #ruby
<shevy>
ok but in a block you normally do something like |foo| and then File.size(foo). I dont understand how that can be avoided in the context above
<DouweM>
adayzdone: meh, not interested. clean up the Ruby code and add some comments, and it should be just as readable as pseudocode, if not more
<adayzdone>
Unfortunately, I don't know ruby
<DouweM>
&File.method(:size) is basically the same thing as the block { |*args| File.size(*args) }
<shevy>
adayzdone it is better to paste the content of such ruby files on somewhere like pastie.org
chipotle_ has quit [Ping timeout: 260 seconds]
<Hanmac>
adayzdone: i dont know about quakeAction but "iconv will be deprecated in the future, use String#encode instead."
lfox has joined #ruby
blaz3rz has quit [Ping timeout: 240 seconds]
tobago has joined #ruby
sdwrage has joined #ruby
ndrei has joined #ruby
<adayzdone>
Hanmac If someone could walk me through the parsing logic, that would be enough. I either have to recreate parsing logic in another language, or make a new ruby script with same logic. New script would take 3 parameters: list of text blocks to translate, list of source language snippets, list of dest language snippets. New script would then return list of translated blocks
linojon has joined #ruby
Rylee has joined #ruby
mlpinit has joined #ruby
chrisseaton has joined #ruby
breakingthings has joined #ruby
Rylee has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
tjaco has quit [Read error: Connection reset by peer]
shime has joined #ruby
ffranz has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 245 seconds]
yuuki1224 has joined #ruby
ffranz has joined #ruby
yuuki1224 has quit [Remote host closed the connection]
tkuchiki has joined #ruby
yuuki1224 has joined #ruby
drumusician has joined #ruby
<shevy>
adayzdone did you put the script onto pastie.org yet
bean has joined #ruby
enebo has joined #ruby
dawkirst has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
w4pm has joined #ruby
mojjojo has joined #ruby
<adayzdone>
shevy Can I delete posts from there as well?
coca_rails has joined #ruby
<shevy>
ah well
<adayzdone>
I don't want to make it permanent
<shevy>
...
bricker`LA has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
dEPy has joined #ruby
SiliconG has joined #ruby
fedesilva has joined #ruby
ndrei has joined #ruby
yuuki1224 has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
yasushi has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
chipotle has joined #ruby
wildroman2 has joined #ruby
shime has quit [Ping timeout: 248 seconds]
SiliconG has quit [Ping timeout: 272 seconds]
chrisseaton has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
zoidberg- has left #ruby [#ruby]
Squarepy has joined #ruby
tvw has joined #ruby
dkamioka has quit [Remote host closed the connection]
dkamioka has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
platzhirsch has joined #ruby
<platzhirsch>
Python Version Management is a truckload full of horse crap
* platzhirsch
hugs RVM
<hoelzro>
platzhirsch: you mean virtualenv?
<platzhirsch>
hoelzro: yep
<Squarepy>
it is ok
<hoelzro>
I've not used it much, but I'm curious: what don't you like about it?
krz has quit [Read error: Operation timed out]
<platzhirsch>
hoelzro: in order to upgrade the Python version I need to create a new virtualenv
m8 has joined #ruby
rm_ has quit [Ping timeout: 272 seconds]
e^0 has quit [Quit: WeeChat 0.4.1]
<platzhirsch>
pip freeze my old packages and pip install -r them manually in the new one
bricker has joined #ruby
dawkirst has joined #ruby
tannerburson has quit [Remote host closed the connection]
krz has joined #ruby
tannerburson has joined #ruby
tannerburson has left #ruby [#ruby]
rljohnsn has joined #ruby
banister has joined #ruby
AlSquirrel has quit [Quit: Quitte]
sethen has joined #ruby
sambao21 has joined #ruby
<Squarepy>
well would be a nice feature, but does that make it horse crap :)
byprdct has joined #ruby
yfeldblum has joined #ruby
<platzhirsch>
fine, it's just disfigured
yasushi has joined #ruby
sailias has joined #ruby
Vivekananda has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
yfeldblum has quit [Ping timeout: 252 seconds]
pietr0 has quit [Quit: pietr0]
phansch has joined #ruby
allaire has joined #ruby
tonni has quit [Read error: Connection reset by peer]
dawkirst has quit [Ping timeout: 248 seconds]
<shevy>
hehe
dawkirst has joined #ruby
<shevy>
it fits
<shevy>
an inferior solution for an inferior language
<Squarepy>
ha
AlSquire has joined #ruby
shvelo has joined #ruby
petey has joined #ruby
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
though that then gives us the question
<shevy>
why platzhirsch is using python in the first place
sethen has quit [Quit: Leaving...]
<platzhirsch>
shevy: We used it at work, because we work with CKAN (metadata/data storage mainly used for open data)
<platzhirsch>
s/used/use
e^0 has joined #ruby
sebouboubou has joined #ruby
<platzhirsch>
Which is written in Python, hence the plugins are written in Python, too. I probably could use any language and just use the API somehow, but this is rubbish, too. It's more the attitude I don't care what you do, I just implement it in Perl, becuase that's what I have done in the last 10 years and it always worked for me
SiliconG has joined #ruby
Lewix has joined #ruby
Guest6065 is now known as NaStYdoG
jpstokes has joined #ruby
lxsameer has quit [Quit: Leaving]
alexfreidah has joined #ruby
bnjamin has joined #ruby
tonni has joined #ruby
whitepaper has joined #ruby
pixelgremlins_ba is now known as pixelgremlins
james_d_h has joined #ruby
ewnd9_ has quit [Ping timeout: 272 seconds]
wildroman2 has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
guardianx has quit [Remote host closed the connection]
SCommette has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dawkirst has quit [Ping timeout: 245 seconds]
griffindy has joined #ruby
brennanMKE has joined #ruby
coca_rails has joined #ruby
dawkirst has joined #ruby
sergicles has quit [Quit: sergicles]
jobewan has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
bricker`LA has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
x77686d has joined #ruby
kevinykchan has joined #ruby
kevinykc_ has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
coca_rails has quit [Ping timeout: 240 seconds]
brunops has joined #ruby
dawkirst_ has joined #ruby
asmodlol has quit [Remote host closed the connection]
mansi has joined #ruby
rippa has joined #ruby
jrobertfox has quit [Quit: Take it easy.]
zipper{-_-} has quit [Quit: leaving]
kobain has joined #ruby
mansi has quit [Client Quit]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
tobago has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 265 seconds]
larissa has quit [Quit: Leaving]
interactionjaxsn has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
clamstar has joined #ruby
mansi has joined #ruby
pmullin has joined #ruby
mary5030 has joined #ruby
vlad_sta_ has joined #ruby
vt102 has quit [Remote host closed the connection]
razibog has joined #ruby
mary5030 has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mengu has quit []
rm_ has joined #ruby
duggiefresh has joined #ruby
glen has joined #ruby
Megtastique has quit []
RoryHughes has quit []
b00stfr3ak has joined #ruby
<glen>
hi. i have array of elements, which value (mountpoint) i want to take as new array "key", thus elimitating duplicates by using last "match". how do i do it best?
adayzdone has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
Uranio has joined #ruby
pzula has joined #ruby
gazoombo_ is now known as gazoombo
Mattx has joined #ruby
IceDragon has joined #ruby
Kricir_ has joined #ruby
<Uranio>
a friend tell me not muchm time ago: "ruby will no be a lagn that exist in the next 5 or 6 year, better learn smalltalk". With make me wonder: What is the future of ruby?
pietr0 has joined #ruby
<bricker>
Uranio: Ruby will be around for much longer than 5 or 6 years from now
dkamioka has joined #ruby
<bricker>
Uranio: the future is that they will continue to work on it and improve it
<Uranio>
bricker: I answer him, that ruby is thinked to adapt to the times
<Uranio>
would be that correct?
troessner has quit [Quit: Leaving]
<bricker>
and people will continue to decide whether or not Ruby is the best tool for their task.
aryaching_ has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
dawkirst__ has joined #ruby
<bricker>
Uranio: Ruby is under constant development, so yes, it will keep up with new problems as they arise
<Uranio>
and then, hi respond: -ruby is only for web, when the web dry out or pass to the old fashion times, ruby will be old fashion to. But I think taht ruby will be ready for adapt to that "new thing who replace web". Would be that a correct think?
wildroman2 has joined #ruby
dawkirst_ has quit [Ping timeout: 264 seconds]
<bricker>
Ruby is just a computer language
snath has quit [Ping timeout: 272 seconds]
<bricker>
Ruby on Rails is a web framework, which may or may not be under active development in 5-6 years
Kricir has quit [Ping timeout: 260 seconds]
<Uranio>
good point
<bricker>
but Ruby is just a computer language like Java or Python
aryaching has quit [Ping timeout: 252 seconds]
msuszczy has quit [Quit: leaving]
razibog has quit [Ping timeout: 260 seconds]
whitepaper has quit [Quit: WeeChat 0.4.2]
freezey has joined #ruby
marcoecc has joined #ruby
OdNairy has joined #ruby
pzula has quit [Ping timeout: 252 seconds]
iceden has joined #ruby
Davey has joined #ruby
Solnse has joined #ruby
ctp has joined #ruby
digital-ghost has joined #ruby
bnjamin has quit [Remote host closed the connection]
<Xeago>
could anyone tell me where this has syntax errors?
<Xeago>
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.5.0] fixes it :3
vlad_starkov has quit [Remote host closed the connection]
<Xeago>
I am fookin stupid
RaCx_ has joined #ruby
pzula has joined #ruby
sdwrage has joined #ruby
robbyoconnor has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ is now known as RaCx
robbyoconnor has quit [Client Quit]
coca_rails has joined #ruby
hrh has joined #ruby
dawkirst__ has quit [Ping timeout: 252 seconds]
<hrh>
is anybody using Koala gem and knows how to get all friends' page likes?
Kricir_ has quit [Remote host closed the connection]
<apeiros>
Xeago: looking
<Xeago>
apeiros: I figured it out
<apeiros>
Xeago: oh, you used the wrong ruby?
<Xeago>
yea :|
tkuchiki has quit [Remote host closed the connection]
<apeiros>
:)
yacks has quit [Quit: Leaving]
<apeiros>
shit happens
ctp has quit [Ping timeout: 272 seconds]
pierre1_ has quit [Ping timeout: 264 seconds]
<littlebit>
hi people, I want to use bundle for my dependency management, and there is a part where it tells me that it is missing tilt v1.4.1. So I did "gem install tilt" , and it installed tilt 2.0, then I ran "bundle install" again and I get the following:
<littlebit>
Bundler::GemNotFound: Could not find tilt-1.4.1.gem for installation
<littlebit>
An error occurred while installing tilt (1.4.1), and Bundler cannot continue.
<littlebit>
Make sure that `gem install tilt -v '1.4.1'` succeeds before bundling.
<littlebit>
can someone help
momomomomo has joined #ruby
Solnse has quit [Remote host closed the connection]
coca_rails has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 252 seconds]
<littlebit>
wiat
chrisseaton has joined #ruby
Alina-malina has quit [Quit: Leaving]
adayzdone has joined #ruby
mando has joined #ruby
noop has quit [Ping timeout: 240 seconds]
noop has joined #ruby
<Uranio>
littlebit: gem sources
<Uranio>
exec ^
aganov has quit [Quit: Leaving]
mark_locklear has quit [Read error: Operation timed out]
<shevy>
wheee look Hanmac a bundler problem again, can you help with your beloved software O_O
olivier_bk has quit [Read error: Operation timed out]
freezey has quit [Remote host closed the connection]
ghr has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
sbos99 has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
petey has quit [Remote host closed the connection]
petey has joined #ruby
ndrei has quit [Ping timeout: 248 seconds]
ahawkins has quit [Remote host closed the connection]
freezey has joined #ruby
thesheff17 has joined #ruby
brtdv has quit [Ping timeout: 240 seconds]
chrisseaton has quit []
wildroman2 has quit [Remote host closed the connection]
ndrei has joined #ruby
<apeiros>
Hanmac: indeed
vpretzel has quit [Remote host closed the connection]
canton7-mac has quit [Quit: Leaving]
EminenceHC has joined #ruby
dwingo has joined #ruby
vpretzel has joined #ruby
<Hanmac>
apeiros: in the games some key items can be used (like item detector or similar) while the bike can only used outside of houses ;P
lukec has quit [Quit: lukec]
nvrch has quit [Quit: nvrch]
petey has quit [Ping timeout: 248 seconds]
<Uranio>
Hanmac: and what about the silver wind, you never use it
rljohnsn has joined #ruby
<Hanmac>
Uranio: like i said, only some items can be used
momomomomo has quit [Quit: momomomomo]
<shevy>
huh, Hanmac, this is valid shell: (autoconf --version)
mikecmpbll has quit [Quit: ciao.]
Yahkob has quit [Remote host closed the connection]
<Hanmac>
shevy: yes
iamsean has joined #ruby
allaire has quit []
iamsean has quit [Client Quit]
<shevy>
autoconf --version too
<shevy>
but not ((autoconf --version))
phansch has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
i_s has joined #ruby
momomomomo has quit [Client Quit]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
drumusician has quit [Ping timeout: 260 seconds]
deric_skibotn has joined #ruby
OdNairy has joined #ruby
cephalopodus has joined #ruby
cj3kim has joined #ruby
momomomomo has joined #ruby
v0n has joined #ruby
cephalopod has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
greenarrow has quit [Quit: 500]
existensil has quit [Quit: leaving]
momomomomo has quit [Client Quit]
havenwood has joined #ruby
yfeldblum has joined #ruby
tvw has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
drumusician has joined #ruby
maletor has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
zellio has quit [Ping timeout: 252 seconds]
romdi has joined #ruby
tauebel has joined #ruby
RaCx has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
rubyracer has joined #ruby
kpshek has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
ohwhoa has joined #ruby
einarj has quit [Remote host closed the connection]
timonv has joined #ruby
cj3kim has quit [Ping timeout: 272 seconds]
txdv has quit [Read error: Connection reset by peer]
andikr has quit [Read error: Connection reset by peer]
ephemerian has quit [Quit: Leaving.]
txdv has joined #ruby
havenwood has joined #ruby
arctaruz has quit [Remote host closed the connection]
saarinen has joined #ruby
lukec has joined #ruby
digital-ghost has left #ruby [#ruby]
saarinen has quit [Client Quit]
standyro2 has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
saarinen has joined #ruby
failshell has joined #ruby
e^0 has quit [Quit: WeeChat 0.4.1]
duggiefresh has joined #ruby
brunops has joined #ruby
RoryHughes has quit []
marr has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
Solnse has quit [Quit: Leaving.]
blaz3rz has quit [Remote host closed the connection]
breakingthings has quit []
danman has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nathancahill has quit [Quit: nathancahill]
RoryHughes has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
zoscoy has joined #ruby
breakingthings has joined #ruby
Celm has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
pmullin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JasmeetQA has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
link151 has joined #ruby
Trynemjoel has joined #ruby
drumusician has quit [Ping timeout: 260 seconds]
brunops has quit [Ping timeout: 264 seconds]
nathancahill has joined #ruby
Virtualize|away has quit [Read error: Connection reset by peer]
virt|work has joined #ruby
sski has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
x77686d has quit [Quit: x77686d]
p4tuxx is now known as p4tux
hl has quit [Ping timeout: 260 seconds]
pmullin has joined #ruby
aalmenar has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
ereslibre has quit [Ping timeout: 264 seconds]
rljohnsn has quit [Quit: Leaving.]
obs has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
sski has quit [Ping timeout: 252 seconds]
Neomex has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
obs has joined #ruby
Kricir has quit [Remote host closed the connection]
pietr0_ has joined #ruby
pietr0 has quit [Ping timeout: 252 seconds]
pietr0_ is now known as pietr0
predator117 has quit [Ping timeout: 240 seconds]
zellio has joined #ruby
tylersmith has joined #ruby
predator117 has joined #ruby
pietr0 has quit [Client Quit]
aspires has joined #ruby
pietr0 has joined #ruby
Czupa has joined #ruby
hl has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
aalmenar has joined #ruby
aalmenar has joined #ruby
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
RoryHughes has quit []
octoberry has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mocfive has joined #ruby
silentpost has joined #ruby
Wolland has joined #ruby
freezey has quit [Remote host closed the connection]
iAdam1n has joined #ruby
synergy_ has quit [Remote host closed the connection]
sickweezle has quit [Ping timeout: 265 seconds]
hetre85 has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
mark_locklear has quit [Ping timeout: 260 seconds]
rdark has quit [Quit: leaving]
mordocai has joined #ruby
x77686d has quit [Quit: x77686d]
tacos1de has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
Davey has quit [Read error: Connection reset by peer]
Txandy has joined #ruby
rmorello has joined #ruby
<mordocai>
Alright, so gem installs are slow. I fully realize this is because of the RI and rdoc documentation generation (rails in particular takes forever) and I realize I can skip these with flags. My question is: Why is generating RI and Rdoc so slow? I mean, it should be a pretty simple "parse each .rb file, grab strings, reformat, put in proper location". I just can't see why it is so ungodly slow.
<mordocai>
Anyone have insight into it?
silentpost has left #ruby [#ruby]
phansch has joined #ruby
Advocation has quit [Quit: Advocation]
cescalanl is now known as ce_afk
bluOxigen has quit []
tacos1de has joined #ruby
Solnse has joined #ruby
wyan has joined #ruby
phinfone_ has joined #ruby
phinfonet has quit [Read error: Connection reset by peer]
<apeiros>
mordocai: thousands of files?
<Hanmac>
mordocai: gem install is also slow then only downloading the files
sickweezle has joined #ruby
DrShoggoth has joined #ruby
<mordocai>
apeiros: Still. There are many other things that have to parse thousands of files and are much much faster. File IO just isn't that slow.
yalue has joined #ruby
brunops has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rickruby has joined #ruby
<mordocai>
This may be annoying enough that I will actually spend the time to run a profiler on RDoc and try to fix its performance and submit a patch.
<iAdam1n>
How do I import more modules on OS X?
<waxjar>
hmm, is there no way to get the namespace of a class from within that class?
<waxjar>
apeiros: yeah that worked well enough, but i'm also dealing with inheritance :(
cyrus_mc has joined #ruby
<apeiros>
waxjar: maybe you tell us what problem you try to solve instead of asking about your solution?
phipes has joined #ruby
<cyrus_mc>
ruby newbie here. What is the difference in doing puts variable vs puts "#{variable}"
<cyrus_mc>
both from what I can tell print out the value of the variable
blaz3rz has joined #ruby
ayaz has quit [Quit: leaving]
<apeiros>
cyrus_mc: the latter is more work for ruby and pointless
hobodave has joined #ruby
<xybre>
I've created a distinct_method_defined? method, now, I can't find anything built-in with the same functionality, but I might've missed something: https://gist.github.com/acook/8694054
<apeiros>
cyrus_mc: you use the latter when you want a string with contents of a variable/expression mixed
_maes_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<xybre>
apeiros: Yeah, I demonstrate the differences with that lower in the gist
axl_ has joined #ruby
<apeiros>
xybre: I use something similar to your methods in my pryrc, though
ghr has joined #ruby
g0bl1n has quit [Ping timeout: 248 seconds]
ghr has quit [Max SendQ exceeded]
virt|work has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
<apeiros>
OMG, I used require_relative
<waxjar>
apeiros: I'm not sure myself. typing out the problem feels like writing a novel. I'll do some more thinking :p
<xybre>
apeiros: I'm probably not going to use a real core extension in production, but its a good idea to drop it in my pryrc though.
jorge_ has joined #ruby
subbyyy_ has joined #ruby
ace_striker has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
x77686d has joined #ruby
mocfive has quit [Remote host closed the connection]
<xybre>
I pretty much only use require_relative when I don't trust the codebase I'm in and don't want to append to the LOAD_PATH.
dkamioka has quit [Ping timeout: 264 seconds]
mocfive has joined #ruby
rylinaux has joined #ruby
<apeiros>
xybre: $LOAD_PATH should only ever be manipulated by the app
<apeiros>
frameworks may be excused to do it too
sdwrage has quit [Quit: Leaving]
lethjakm1 is now known as lethjakman
renklaf has joined #ruby
ndrei has quit [Read error: Operation timed out]
<apeiros>
I used require_relative in my config.ru: require_relative 'bootstrap'
<xybre>
apeiros: I agree. That means there's not a whole lot of other options than require_relative in some cases, unfortunately. Typically it means something is about to get gemified though.
<apeiros>
and bootstrap is the code which sets up all load paths.
<apeiros>
the idea is that I can use bootstrap from wherever.
Kricir has quit [Ping timeout: 252 seconds]
<apeiros>
IMO require_relative is in most cases abused.
jorge_ has quit [Client Quit]
<xybre>
I haven't seen too many people use it actually.
Virtualize|away has quit [Read error: Connection reset by peer]
virt|work has joined #ruby
<apeiros>
along with horrible require File.expand_path abominations
<apeiros>
or now also require './…'
<apeiros>
waxjar: self.class::Prefix
mocfive has quit [Ping timeout: 272 seconds]
<apeiros>
hm, not sure that works for this…
<apeiros>
I think I understand your problem
subbyyy has joined #ruby
pushpak has joined #ruby
<apeiros>
I only see either registering or string manipulation :-/ none of which is satisfying IMO
Squarepy has quit [Quit: Leaving]
subbyyy has quit [Remote host closed the connection]
yfeldblum has joined #ruby
dkamioka has joined #ruby
subbyyy has joined #ruby
subbyyy_ has quit [Ping timeout: 272 seconds]
meatherl_ has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 240 seconds]
phipes has quit [Remote host closed the connection]
<waxjar>
hmm, oh well, thx :)
hukl has joined #ruby
<apeiros>
I succumb to dark practices… first require_relative, now globals…
<apeiros>
wtf?
mlpinit has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
saarinen has quit [Ping timeout: 272 seconds]
Beoran_ has quit [Read error: Connection reset by peer]
meatherl_ has joined #ruby
mlpinit has joined #ruby
<havenwood>
$LOAD_PATH << __dir__
saarinen has joined #ruby
rljohnsn has joined #ruby
<apeiros>
havenwood: no, bootstrap.rb is not in a lib dir
mocfive has joined #ruby
<apeiros>
it's the responsible party for setting up $LOAD_PATH
<apeiros>
I don't want that in config.ru
w4pm has joined #ruby
<havenwood>
apeiros: ah, i was just generally saying, i need more coffee to follow convo :O
<apeiros>
:)
<havenwood>
any thoughts on prepending versus appending __dir__ to load path, i see prepending usually but can see an argument for appending
benlieb has joined #ruby
<apeiros>
havenwood: http://pastie.org/8679550 - bootstrap.rb is mostly this. I could probably replicate its functionality with a Gemfile. but I'm not yet willing to enforce a Gemfile.
petey has quit [Remote host closed the connection]
vpretzel_ has joined #ruby
<havenwood>
ahh, interesting
<apeiros>
I used to prepend, since if there's indeed a collision, it's probably deliberate and I want mine to take precedence
heftig has quit [Quit: Quitting]
<apeiros>
nowadays I stopped caring and just append
heftig has joined #ruby
Wolland has quit []
<havenwood>
i tend to append as well, my thinking being it is easier to notice when you're clobbering your own code, but yeah not caring makes sense :P
<apeiros>
bootstrap.rb also does some requires and records the startup time (that's what I used the global for)
tauebel1 has joined #ruby
<xybre>
apeiros: I think require './...' is worse, because suddenly you can't trust your app to handle your paths at all anymore, so fragile. :/
<apeiros>
the global is later transferred into Application#startup_time
BalkM has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
RoryHughes has joined #ruby
<apeiros>
xybre: indeed. it's a sort of coupling.
phipes has joined #ruby
petey has joined #ruby
<apeiros>
xybre: I'm actually appalled that require allows './
RoryHughes has quit [Client Quit]
<apeiros>
if you really want to require relatively, then by all means use require_relative (and I'll still hold that in 99.999% you're doing it wrong :D)
vpretzel has quit [Ping timeout: 252 seconds]
<xybre>
apeiros: the ./ used to be implicit, so we've at least taken a baby step..
<apeiros>
(where "you" != "xybre")
soulcake has quit [Ping timeout: 260 seconds]
standyro2 has quit [Ping timeout: 265 seconds]
<apeiros>
xybre: it wasn't implicit. it was in $LOAD_PATH. you could remove it.
tauebel has quit [Ping timeout: 245 seconds]
banister has joined #ruby
<apeiros>
removing '.' from $LOAD_PATH was two steps forward. allowing require './…' was one backwards :(
<xybre>
apeiros: Oh, I missed the implementation detail that it was jsut in load path. So they actually had to add support for ./ to require explicitly?
soulcake has joined #ruby
<apeiros>
I think so
petey has quit [Remote host closed the connection]
<apeiros>
at least I don't think require supported it in 1.8
zeade has joined #ruby
octoberry has quit [Ping timeout: 252 seconds]
<apeiros>
as far as I understood it, require back then simply joined the paths
* xybre
ponders installing 1.8.7 to test it... naaah
petey has joined #ruby
<apeiros>
so require './foo' with $LOAD_PATH = ['/bar'] would just have been require '/bar/./foo'
<apeiros>
which is equivalent to just require '/bar/foo'
<apeiros>
it did support absolute paths, though
<xybre>
require in 1.8.7 was slooooow, they did something to speed it up in 1.9.3 iirc.
Speed has left #ruby ["WeeChat 0.4.2"]
lamba has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<RubyPanther>
./... is always a bear
SiliconG has quit [Ping timeout: 272 seconds]
<RubyPanther>
Thankfully I've never seen that rootkit first hand
mlpinit has quit [Read error: Connection reset by peer]
BalkM is now known as bMalum
agent_white has joined #ruby
Kricir has joined #ruby
mlpinit has joined #ruby
alex88 has quit [Quit: Leaving...]
dkamioka_ has joined #ruby
petey has quit [Ping timeout: 252 seconds]
davy_ has joined #ruby
reset has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
g0bl1n has joined #ruby
sepp2k has joined #ruby
voglster has joined #ruby
dkamioka has joined #ruby
LiohAu has quit [Ping timeout: 245 seconds]
dkamioka_ has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 272 seconds]
jedimind has quit [Quit: bbiab]
freezey has joined #ruby
<xybre>
awesome_print dynamically monkeypatches tons of core methods. :(
Xeago has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Ping timeout: 260 seconds]
romdi has quit [Ping timeout: 264 seconds]
mlpinit has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<apeiros>
xybre: ugh
mlpinit has joined #ruby
lfox has joined #ruby
danijoo_ has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
<apeiros>
funny, shouldn't the latter be in class Module instead of class Class?
<agent_white>
LeoDee: Use create instead of new?
<agent_white>
mt
danijoo has joined #ruby
eliasp_ is now known as eliasp
<apeiros>
0.3s time to startup framework and compile whole app, take that, rails!
<apeiros>
(ok, ok, it's a tiny app and the framework is far from completed :D)
<xybre>
apeiros: Yes, exactly. I was realizing my distinct_method_defined? should be on Module too, and when I went to pry show-method instance_methods I was greeted with a defined_method in awesome_print.
phipes has quit [Remote host closed the connection]
<apeiros>
still, I do intend to stay well below 10s with the app I'm building. which is far from the 1-2min rails takes…
guest3034032 has joined #ruby
<apeiros>
xybre: reminds me…
brunops has joined #ruby
<apeiros>
banister: ping? can you make `x = ` assignment patterns ignore commands? I regularly trip on e.g. `c = ` (pry-byebug)
mikepack has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Virtualize|away has joined #ruby
<lamba>
sorry for this noob question but im pulling my hair out. im trying to use httparty in my first ruby script, the examples show 'include HTTParty' (no quotes) but that gives an 'uninitilized constant' error. i've tried quotes, no quotes, upper,lower, and mixed case, all i can get to work is 'require httparty'. i've sudo gem installed, normal gem installed, and yum package installed the frikking thing, what am i doing wrong here ? ;-/ managed to fail hard at my
aspires has quit []
mercwithamouth has quit [Ping timeout: 272 seconds]
<xybre>
Wow, seeing my gist run without active_support require'd is really eye opening. 138 methods down to 70, 74 down to 53, etc.
dkamioka has quit [Remote host closed the connection]
poulson has quit [Remote host closed the connection]
standyro2 has joined #ruby
meatherl_ has quit [Remote host closed the connection]
Virtualize|away has quit [Client Quit]
meatherly has joined #ruby
<apeiros>
lamba: require 'httparty'; include HTTParty
<apeiros>
lamba: require takes a string argument, which is the path to load
RoryHughes has joined #ruby
<xybre>
lamba: You'll need a `require 'httparty'` at the top after installing them gem (`gem install httparty`). Then you can `include HTTParty` (no quotes) if you need its namespace, otherwise you can address it with HTTParty::... (where ... is stuff in its namespace).
danman has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 248 seconds]
<apeiros>
lamba: include takes a module which it then includes. the module must be loaded prior to that (which is require's job)
<Sawbones>
Yeah haha, on my local copy I have 2.1, but I have a bunch of servers that need a quick fix before I can go to each and update their version
devinus has quit []
mansi has quit [Remote host closed the connection]
<centrx>
Sawbones, It sounds like you are both totally new to Ruby, but are also administering Ruby applications?
<Sawbones>
Took over a project
phansch has quit [Read error: Connection reset by peer]
phansch_ has joined #ruby
<Sawbones>
Our application is in PHP, but the old dev wrote ruby scripts to help manage the application
flowerhack_ is now known as flowerhack
mikepack has joined #ruby
<Sawbones>
He's got a rake file that has the absolute_path method, but we have some older servers runnign 1.8, believe me I want to update them, but I have something that needs to get fixed by 5 today
<centrx>
PHP is an abomination
<Sawbones>
Tell me about it.
senayar has quit [Ping timeout: 252 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<Sawbones>
I wish I could start a company and freelance, but getting started seems to be the hardest part
phansch_ has quit [Client Quit]
RoryHughes has joined #ruby
phansch has joined #ruby
<xybre>
Sawbones: Is "expand_path" good enough?
wildroman2 has joined #ruby
brunops has joined #ruby
Czupa has quit [Ping timeout: 248 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
wildroman3 has joined #ruby
krisbulman is now known as [krisbulman]
<Sawbones>
let me give it a try
zoscoy has joined #ruby
predator117 has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
shvelo has quit [Read error: No route to host]
sbos99 has quit [Ping timeout: 245 seconds]
<Sawbones>
xybre: yeah it works!
yfeldblum has quit [Remote host closed the connection]
<Sawbones>
Woo now I can finish this up
tauebel has joined #ruby
<xybre>
woot
sethen has joined #ruby
i_s has quit [Remote host closed the connection]
pzula has quit [Quit: leaving]
shvelo has joined #ruby
jgoss has quit [Ping timeout: 252 seconds]
brunops has quit [Client Quit]
tacos1de has joined #ruby
ffranz has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
jgrevich has joined #ruby
mando_ has joined #ruby
Al__ has quit [Quit: Al__]
predator117 has joined #ruby
Shidash has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
RaCx has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
breakingthings has quit []
momomomomo has quit [Quit: momomomomo]
_Andres has joined #ruby
daxroc has quit [Client Quit]
sambao21 has joined #ruby
RoryHughes has joined #ruby
mojjojo has quit [Quit: mojjojo]
cbetta is now known as cbetta_afk
i_s has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
bMalum has quit [Remote host closed the connection]
petey has joined #ruby
BalkM has joined #ruby
Txandy is now known as Txandy|away
mikesplain has quit [Ping timeout: 260 seconds]
<benzrf>
is there a non-mutating version of []= on arrays
mojjojo has joined #ruby
<benzrf>
i.e. like !! in haskell
coca_rails has quit [Read error: Connection reset by peer]
oso96_2000 has joined #ruby
BalkM has quit [Remote host closed the connection]
<DouweM_>
isn't !! equivalent to #[] ? I'm not sure what you're asking
Hobogrammer_ has joined #ruby
g0bl1n has joined #ruby
rljohnsn has quit [Quit: Leaving.]
mocfive has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
Jdubs has joined #ruby
SilentHobo has quit [Ping timeout: 265 seconds]
SilentHobo has joined #ruby
jlast_ has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
_Andres has quit [Ping timeout: 272 seconds]
Virtualize|away has quit [Quit: Leaving...]
davy_ has joined #ruby
<chrisseaton>
benzrf: no, there isn't as far as I know
<chrisseaton>
benzrf: you'd have to slice each side and concatenate with the two slices and the new element
Hobogrammer_ has quit [Ping timeout: 248 seconds]
jerius has quit [Ping timeout: 272 seconds]
duggiefresh has joined #ruby
Lewix has quit [Remote host closed the connection]
pietr0_ has joined #ruby
Hobogrammer_ has joined #ruby
_Andres has joined #ruby
razibog has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duggiefresh has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
enebo has quit [Quit: enebo]
<DouweM_>
chrisseaton: what am I missing?
Hobogrammer has quit [Ping timeout: 265 seconds]
pietr0 has quit [Ping timeout: 272 seconds]
pietr0_ is now known as pietr0
DrShoggoth has quit [Quit: Leaving]
<chrisseaton>
DouweM_: benzrf wants a function that takes an array, an index, a new value, and returns the array with the new value at that index, but leaves the original array intact
<benzrf>
chrisseaton: lame
cbetta_afk is now known as cbetta
mary5030 has quit [Remote host closed the connection]
<chrisseaton>
benzrf: sorry for helping
<benzrf>
chrisseaton: not you ;p
<MrZYX>
.dup[]= ?
<benzrf>
your response
<DouweM_>
chrisseaton: aah okay, that makes more sense. I didn't understand the question
osoasfsdfjkh has joined #ruby
osoasfsdfjkh has left #ruby [#ruby]
SilentHobo has quit [Ping timeout: 265 seconds]
RoryHughes has quit []
hobodave_ has quit [Quit: Computer has gone to sleep.]
<bnagy>
remember that if the array contains ref types, which is almost always, dup etc etc will still get you a copy with the original refs
xardas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 26.0/20131205075310]]
Viridisignis has quit [Quit: Computer has gone to sleep.]
cescalante is now known as ce_afk
Hobogrammer_ has quit [Ping timeout: 260 seconds]
<bnagy>
which is to say that it is quite hard to ensure that you leave a passed array untouched if you're going to mess with the 'copy'
qubit has quit [Ping timeout: 248 seconds]
duggiefresh has quit [Ping timeout: 245 seconds]
aspires has quit []
<bnagy>
also, don't write ruby like haskell
mlpinit has quit [Remote host closed the connection]
razibog has quit [Quit: Leaving.]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
Noldorin has joined #ruby
gizmore has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
rylev has joined #ruby
hobodave has joined #ruby
fedesilva has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
bnagy: im aware <_<
Viridisignis has joined #ruby
Viridisignis has quit [Client Quit]
<benzrf>
bnagy: ive been coding for like 9 years remember ;p
diegovio1 has quit [Quit: WeeChat 0.4.2]
gizmore has joined #ruby
<bnagy>
either brag about your skills ^ ask basic questions
m8 has quit [Quit: Sto andando via]
cbetta is now known as cbetta_afk
Lewix has joined #ruby
glen has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
yinkum has quit [Quit: yinkum]
<glen>
what's best way to do this without regexp? the regexp is flawed as + needs escaping: version = stdout[/^#{package_name}-(.+)/, 1]
x77686d has quit [Quit: x77686d]
SCommette has quit [Quit: SCommette]
claymore has quit [Quit: Leaving]
rylev has quit [Ping timeout: 252 seconds]
wildroman2 has quit [Ping timeout: 252 seconds]
fartface has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
icantbecool has joined #ruby
wedgeV has joined #ruby
<apeiros>
I love "best" questions.
<benzrf>
what basic q did i ask?!
<apeiros>
glen: what qualifies as "best"?
<apeiros>
what's the metric?
<glen>
apeiros: approved by #ruby :), i'e i don't get beaten later of writing something silly
<fartface>
Super new question here: When doing string formatting for floating point numbers, what does the first digit after the % do? Like, if I have a value 3.11111 and I say "%3.1f", it outputs "3.1", but if I omit the 3, and just put "%.1f" I get the same result. So, what's the "3" for?
<bnagy>
benzrf: i.e. like !! in haskell
<apeiros>
glen: excellent metric! :D
<glen>
but really, with less operators
<glen>
i came up with this: version = stdout[package_name.length + 1, stdout.length]
<apeiros>
glen: honestly, that's probably the funniest response to that I've ever read
<glen>
but it's not exactly the same as regexp thing returns nil but no idea what this one gives when out of bounds
<apeiros>
glen: stdout[package_name.length + 1, stdout.length] can be written as stdout[(package_name.length + 1)..-1]
<bnagy>
glen: can you provide an example input and output?
cj3kim has joined #ruby
<bnagy>
like it looks like you can just sub package_name / ''
Wolland has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
<glen>
i'll go with nagy stuff :)
<apeiros>
yeah, looks pleasant
<bnagy>
the index slice will be a lot faster
danijoo has joined #ruby
<bnagy>
but the sub is kinda readable and has a bit more of the protection you wanted
<apeiros>
bnagy: not really
freezey has quit [Ping timeout: 252 seconds]
<apeiros>
(protection)
pietr0 has joined #ruby
<bnagy>
doesn't have the ^ anchor either
roolo has quit [Quit: Leaving...]
<glen>
bnagy version returns original string in case of mismatch
<apeiros>
if package_name is broken it will not substitute anything, so you get a wrong string back, not nil
<bnagy>
apeiros: well it won't sub out stuff that doesn't match
<apeiros>
yes, which doesn't help much in detecting
<apeiros>
k, you could verify by doing `version != input`
<glen>
there\s no weird %R available to do Regexp.escape?
<apeiros>
no
Deele has quit [Ping timeout: 260 seconds]
<benzrf>
theres %r
<benzrf>
oh
bleak has quit [Ping timeout: 260 seconds]
philcrissman has quit [Remote host closed the connection]
<apeiros>
hm… I just found a new application for contexts…
roolo has joined #ruby
obs_ has joined #ruby
<apeiros>
if a language has contexts + more than one syntax for interpolations, then you can use that to provide "escaped interpolation" + "unescaped interpolation"
<apeiros>
makes sense in a lot of places
<glen>
afaik %r is for inline strings, it doesn't do "variables"
<apeiros>
in regexen, escaped would be Regexp.escape
<apeiros>
in html template engines it'd be CGI.escapeHTML
<apeiros>
in URL generators it'd be CGI.escape
<apeiros>
etc.
<bnagy>
yeah go has content aware templating in the default package
<benzrf>
contexts?
danshultz has joined #ruby
<apeiros>
%r{} is just an alternative way to write //
obs has quit [Read error: Connection reset by peer]
<bnagy>
*context
i_s has quit [Ping timeout: 248 seconds]
<bnagy>
which is kind of cool, according to my friends that care about web stuff
<benzrf>
apeiros: you could abuse ``
<apeiros>
benzrf: similar to `self`, it provides contextual information to the code being executed
<benzrf>
ok
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hiall__ has quit [Quit: hiall__]
MrZYX is now known as MrZYX|off
<apeiros>
benzrf: consider e.g. a request in rails, which carries session data, which has information about the user
w4pm has quit [Ping timeout: 252 seconds]
<apeiros>
the request could be the context
<benzrf>
alrigh
<benzrf>
t
fedesilva has joined #ruby
<apeiros>
when you now e.g. have a method on the model which needs information about the "current user", it could take it from the context
<apeiros>
no need to pass it around
hukl has quit [Quit: Leaving...]
<benzrf>
how unfunctiona
<benzrf>
l
<apeiros>
similar to what ENV is to processes
<REdOG>
can anyone help me get rkerberos built/installed? I keep getting an undefined reference error
<apeiros>
benzrf: unfunctional as in: opposite to how a functional language works?
<apeiros>
if so, then I'd disagree. a context is strictly pass-down. i.e. it's "sugar" that you don't have to pass it manually. the language does it for you.
petey has quit [Remote host closed the connection]
Jetchisel has joined #ruby
x77686d has quit [Quit: x77686d]
<apeiros>
and an inner method can't mutate the outer context
havenwood has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
<benzrf>
i was joking ;p
<benzrf>
reader monad works like that sort ish
allaire has quit []
davy_ has quit [Remote host closed the connection]
obs_ has quit [Read error: Connection reset by peer]
obs_ has joined #ruby
shinobi_one has joined #ruby
<shinobi_one>
Has anyone here used Elasticsearch with Apache Tika plugin for parsing "attachments" and had any success?
bleak has joined #ruby
momomomomo has joined #ruby
<benzrf>
whats with apache and java
davy_ has joined #ruby
<shinobi_one>
benzrf: they <3 each other
rljohnsn has joined #ruby
rezzack1 has joined #ruby
momomomomo has quit [Client Quit]
icantbecool has quit [Quit: Computer has gone to sleep.]
fedesilva has quit [Remote host closed the connection]
rezzack has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
<glen>
oh. substr variant has another side effect. it kept the \n
bedouin has quit [Ping timeout: 245 seconds]
standyro2 has quit [Ping timeout: 245 seconds]
sebouboubou has quit [Remote host closed the connection]
poikon_ has quit [Ping timeout: 276 seconds]
<glen>
blah. i'm just using the .escape!
thesheff17 has quit [Ping timeout: 272 seconds]
shadoi has quit [Quit: Leaving.]
linojon has quit [Quit: linojon]
Viridisignis has joined #ruby
SHyx0rmZ has joined #ruby
aspires has joined #ruby
poikon_ has joined #ruby
<glen>
as the substr thing did not anchor for ^
<glen>
and i get mismatches from stdout='package kernel-module-build is not installed'
bedouin has joined #ruby
carif has joined #ruby
Amart41 has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
Wolland has joined #ruby
w4pm has joined #ruby
Amart41 has joined #ruby
g0bl1n has quit [Ping timeout: 248 seconds]
davy_ has quit [Remote host closed the connection]
dblessing has quit [Quit: dblessing]
dorei has joined #ruby
tauebel1 has quit [Read error: No route to host]
tauebel has joined #ruby
dseitz has joined #ruby
Amart41 has quit [Read error: Operation timed out]
Naoe-Kanno has joined #ruby
g0bl1n has joined #ruby
maletor has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
assurbanipal has quit [Remote host closed the connection]
SHyx0rmZ has quit [Ping timeout: 260 seconds]
<bnagy>
glen: how about stdout.split("#{package_name}-").last ?
sarlalian has quit [Quit: WeeChat 0.4.0]
<bnagy>
but by that point it has probably passed the easy readability threshold, so regex might just be clearer ( for once )
chrisja has quit [Quit: leaving]
pskosinski has joined #ruby
shvelo has quit [Read error: Operation timed out]
<benzrf>
bnagy: my abomination has over 200 dl's
<benzrf>
how does it make you feel to know that at least 10 people have installed it
<benzrf>
:D
nanoyak has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Remote host closed the connection]
chomskiii has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<glen>
bnagy: that split will fail if stdout is "package #{package_name} is not found" and give me "found" as "version" :)
chomskiii has joined #ruby
<glen>
ah, hmm "-" maybe matters
cbetta_afk is now known as cbetta
v0n has quit [Ping timeout: 248 seconds]
SCommette has joined #ruby
sarlalian has joined #ruby
nanoyak has joined #ruby
octoberry has joined #ruby
<bnagy>
it'll give you the unmodified string
<glen>
oh. seems upsteream solved it with a regexp as well pkg_info.stdout[/^#{Regexp.escape(package_name)}-(.+)/, 1]
brennanMKE has quit [Ping timeout: 245 seconds]
<glen>
and seems haha, they did it first with a split, and then with a regex