apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
ryanlecompte has joined #ruby
slainer6_ has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
<babykosh> ping
aharris6 has quit [Remote host closed the connection]
twopoint718 has quit [Ping timeout: 248 seconds]
ryanlecompte has quit [Read error: Connection reset by peer]
aharris6 has joined #ruby
byennen has joined #ruby
Shamgar has quit [Read error: Operation timed out]
ctwiz has joined #ruby
tbrock has joined #ruby
SCommette has joined #ruby
ctwiz is now known as dpg
<jrajav> jsilver: POSIX came after Windows
<jrajav> Well, after MS-DOS
<jsilver> jrajav: ah, didn't know that
doritostains has quit [Quit: Leaving...]
<jsilver> never quite understood what POSIX really meant
<jrajav> Yeah, there were several competing standards for OSes at the time. Those coherent Unixy standards we all know and love didn't emerge until the end of the 80's
jenrzzz has quit [Ping timeout: 252 seconds]
<jrajav> And to this day Windows held out, obviously.
<seanstickle> Windows is POSIX compliant
TechZombie has quit [Quit: Leaving.]
<sorbo_> again demonstrating the lack of correlation between merit and popularity
IceDragon has quit [Ping timeout: 265 seconds]
<jsilver> via CygWin
<seanstickle> No. Built in.
<jsilver> don't think so
<seanstickle> Look it up.
<seanstickle> Because you are quite wrong.
<jsilver> prove it
blazes816 has quit [Quit: blazes816]
<jsilver> because i know i'm not
<jsilver> im there
<jsilver> well
<jsilver> new versions may be
<seanstickle> :)
<jsilver> are you taslking about PowerShell?
<seanstickle> No.
<seanstickle> I thought we were talking about filesystems.
<jsilver> no, posix goes beyond that
<seanstickle> I know.
<jsilver> it allows talks about the names of the commands of the shel provided
<seanstickle> But the context we were discussing was filesystems.
<jsilver> windows sticks to its dos breaking that
<jsilver> ah, well then yes
<jsilver> i think so
<jsilver> not sure how far back "/" hash been support in Windows paths
<jsilver> got out of there years ago
<jsilver> ;)
<jrajav> Eh, barely
<jrajav> Hard links aren't really first class citizens, for instance
<seanstickle> There you go.
<jrajav> Though it's better now than it was
<seanstickle> Anyways, their POSIX subsystem sucks
<seanstickle> But it's there for FIPS compliance
marr has joined #ruby
<jrajav> And just because Windows technically conforms to a POSIX standard (it definitely doesn't conform to ALL of them) doesn't mean that that fact is necessarily useful
<jsilver> trippy
jrunning_ has quit [Ping timeout: 264 seconds]
<jsilver> what's FIPS compliance?
<seanstickle> Well… I never said the Windows POSIX stuff was good
<seanstickle> In fact, I said it sucked.
jsilver has quit [Remote host closed the connection]
<seanstickle> jsilver: Federal Information Processing Standard
jsilver has joined #ruby
<seanstickle> jsilver: Federal Information Processing Standard
wargasm has joined #ruby
<jsilver> right
<seanstickle> Required for acquisitions and purchasing
_bart has joined #ruby
axl_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
<jsilver> lol.
<Spaceghostc2c> Lol cygwin.
<jsilver> evidence of an obvious M$ scam
<jsilver> Spaceghostc2c: what's wrong with cygwin
<jsilver> isn't it like, used for stuff?
<Spaceghostc2c> jsilver: The 'win' part.
<jsilver> yea
<jsilver> :|
<jsilver> i got windows 8 tho
bgh has quit [Ping timeout: 256 seconds]
<jsilver> barely ever use it, the lighting terrible
h4mz1d has joined #ruby
jjang has quit [Remote host closed the connection]
jsilver has quit [Remote host closed the connection]
axl_ has quit [Read error: Connection timed out]
moshee has quit [Ping timeout: 264 seconds]
_bart has left #ruby [#ruby]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
<jrajav> msys is way better than cygwin btw
robotmay has quit [Remote host closed the connection]
c0rn has quit []
cakehero has joined #ruby
<babykosh> ping
<Spaceghostc2c> jrajav: True.
techhelp has quit [Quit: This computer has gone to sleep]
thone_ has joined #ruby
mindbender1 has quit [Ping timeout: 265 seconds]
L1 has quit [Quit: Quitter]
thone has quit [Ping timeout: 265 seconds]
Shamgar has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
dmiller has joined #ruby
arya_ has joined #ruby
hackerdude has joined #ruby
jimeh has joined #ruby
IceDragon has joined #ruby
kil0byte has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 245 seconds]
kil0byte has joined #ruby
mascool has joined #ruby
yshh has quit [Remote host closed the connection]
jds_ has joined #ruby
philips_ has quit [Excess Flood]
leonardorb has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 255 seconds]
machty has quit [Quit: machty]
philips_ has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
ikaros has quit [Remote host closed the connection]
daniel_- has joined #ruby
jds_ has quit [Ping timeout: 260 seconds]
otters has joined #ruby
bradhe_ has joined #ruby
chaosis has joined #ruby
c0rn has joined #ruby
<babykosh> ping
Guest80635 has joined #ruby
ephemerian has quit [Quit: Leaving.]
c0rn has quit []
u89 has quit [Remote host closed the connection]
yshh has joined #ruby
statarb3 has quit [Quit: Leaving]
c0rn has joined #ruby
jsilver has joined #ruby
guille has quit [Quit: guille]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
Guest80635 is now known as gurushah
cooler has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
dingus9 has joined #ruby
BoomCow has joined #ruby
GoGoGarrett has joined #ruby
slainer68 has joined #ruby
wei_ has quit [Quit: wei_]
<dingus9> hey, I have a symbol/method of an activerecord class that returns true for respond_to?, but doesn't show up in object.methods… I can't find it defined in any of my source files… Also it doesn't inherit any of the methods from the Methods objetc what is it
eldariof has quit []
eldariof has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
jlwestsr has quit [Quit: Ex-Chat]
<ryanf> dingus9: you forgot to say what it is
marr has quit [Ping timeout: 265 seconds]
doritostains has joined #ruby
ttt has joined #ruby
_nitti has joined #ruby
<dingus9> sorry it being my mystery callable
aharris6 has quit [Remote host closed the connection]
<dingus9> I'm trying to figure out where "it" is defined, all I know is that it is callable with User.find_or_create_by_login however, User.methods does not contain find_or_create_by_login
slainer68 has quit [Ping timeout: 260 seconds]
<dingus9> it is also available to an instantiated user object
pu22l3r has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
advorak has joined #ruby
hackerdude has quit [Read error: Connection reset by peer]
hackerdude has joined #ruby
fyolnish has joined #ruby
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
<dingus9> oooh dynamic finders
xyzodiac has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
levabalkin has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
freeayu has joined #ruby
<dingus9> ryanf thanks
SCommette has quit [Quit: SCommette]
Virunga has quit [Remote host closed the connection]
JStoker has quit [Excess Flood]
sheerun has quit [Quit: ZNC - http://znc.in]
xyzodiac has joined #ruby
x82_nicole has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
banisterfiend has quit [Read error: Connection reset by peer]
hackerdude has quit [Remote host closed the connection]
<ryanf> no problem
dzhulk has quit [Quit: Leaving.]
kil0byte has quit [Ping timeout: 256 seconds]
jrunning_ has joined #ruby
LouisGB has quit [Ping timeout: 244 seconds]
jimeh has quit [Quit: Computer has gone to sleep.]
twopoint718 has quit [Ping timeout: 264 seconds]
gabrielrotbart has quit [Remote host closed the connection]
cj3kim has joined #ruby
jrunning_ has quit [Ping timeout: 256 seconds]
advorak has quit [Quit: Leaving]
xscc has joined #ruby
aharris6 has joined #ruby
paolooo has joined #ruby
Slivka has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
d2dchat has joined #ruby
paolooo has quit [Client Quit]
paolooo has joined #ruby
levabalkin has quit []
googya has joined #ruby
babykosh has quit [Quit: babykosh]
JStoker has joined #ruby
huoxito has joined #ruby
andrewhl has joined #ruby
aharris6 has quit [Remote host closed the connection]
xscc has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
bgh has joined #ruby
jbermudes has quit [Read error: Connection reset by peer]
gridaphobe has quit [Read error: Connection reset by peer]
jbermudes has joined #ruby
jbermudes has quit [Changing host]
jbermudes has joined #ruby
drago757 has joined #ruby
paolooo has quit [Quit: Page closed]
TechZombie has joined #ruby
elementz_ has quit [Ping timeout: 265 seconds]
RickSchmitty has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
eldariof has quit []
Eldariof-ru has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elementz has joined #ruby
elementz has quit [Changing host]
elementz has joined #ruby
aharris6 has joined #ruby
Slivka has joined #ruby
banisterfiend has joined #ruby
generalissimo has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
<dingus9> im out for a while for a haircut
jrunning_ has joined #ruby
dingus9 has left #ruby [#ruby]
Slivka has quit [Read error: Operation timed out]
cableray has quit [Quit: cableray]
wei_ has joined #ruby
leonardorb has joined #ruby
Xeago has quit [Remote host closed the connection]
Shamgar has quit [Ping timeout: 252 seconds]
leonardorb has quit [Ping timeout: 256 seconds]
jrunning_ has quit [Ping timeout: 245 seconds]
reset has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
PhilK has quit [Ping timeout: 260 seconds]
slainer68 has joined #ruby
gbchaosmaster has quit [Quit: leaving]
icole has joined #ruby
kisoku has quit [Ping timeout: 260 seconds]
ElderFain has quit [Ping timeout: 264 seconds]
kisoku has joined #ruby
rellin has quit [Ping timeout: 260 seconds]
L1 has joined #ruby
randym has joined #ruby
arya_ has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
elementz has quit [Ping timeout: 256 seconds]
aquagrunty has left #ruby [#ruby]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
PhilK has joined #ruby
skaczor has joined #ruby
Erfankam has joined #ruby
mahmoudimus has joined #ruby
Slivka has joined #ruby
Goles has quit [Read error: Connection reset by peer]
PhilK has quit [Ping timeout: 250 seconds]
hotovson has quit [Remote host closed the connection]
mahmoudimus has quit [Client Quit]
blazes816 has joined #ruby
icole has quit [Remote host closed the connection]
Erfankam has quit [Ping timeout: 255 seconds]
gbchaosmaster has joined #ruby
mahmoudimus has joined #ruby
yewton has quit [Quit: (*´ω`*)]
eka has quit [Remote host closed the connection]
yewton has joined #ruby
cub949 has quit [Quit: Leaving]
cableray has joined #ruby
jeffreybaird has joined #ruby
kisoku has quit [Ping timeout: 255 seconds]
ElderFain has joined #ruby
gurushah has quit [Quit: gurushah]
moshee has quit [Remote host closed the connection]
hibariya has joined #ruby
danneu has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
byennen has quit [Read error: Connection reset by peer]
moshee has quit [Changing host]
moshee has joined #ruby
GoGoGarrett has joined #ruby
byennen has joined #ruby
bradhe has quit [Remote host closed the connection]
kisoku has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
rakl has joined #ruby
bradhe has joined #ruby
PhilK has joined #ruby
SCommette has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
h4mz1d has quit [Ping timeout: 252 seconds]
wookiehangover has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 244 seconds]
PhilK has quit [Ping timeout: 260 seconds]
sorbo_ has quit [Quit: sorbo_]
wookiehangover has joined #ruby
kisoku has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
kisoku has joined #ruby
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby
Shamgar has joined #ruby
gabrielrotbart has joined #ruby
s14 has joined #ruby
s14 has quit [Client Quit]
s14 has joined #ruby
danneu has joined #ruby
kisoku has quit [Remote host closed the connection]
krawchyk has joined #ruby
Tref has joined #ruby
al3xnull has joined #ruby
tomsthumb has joined #ruby
jmuniz has quit [Quit: Later Nerds!]
arya_ has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
bgh has quit [Ping timeout: 264 seconds]
xyzodiac has quit [Ping timeout: 256 seconds]
kisoku has joined #ruby
arya_ has joined #ruby
Hanmac1 has joined #ruby
xyzodiac has joined #ruby
techhelp has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
Slivka has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
bradhe has joined #ruby
krz has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
dzhulk has joined #ruby
Ruler_Of_Heaven_ has quit [Ping timeout: 264 seconds]
chendo_ has quit [Ping timeout: 264 seconds]
wei_ has quit [Quit: wei_]
dzhulk has quit [Client Quit]
x82_nicole has joined #ruby
CaptainJet has quit []
chendo_ has joined #ruby
vasile has quit [Ping timeout: 260 seconds]
ly- has joined #ruby
techhelp2 has joined #ruby
x82_nicole has quit [Client Quit]
niklasb has quit [Ping timeout: 252 seconds]
chendo_ has quit [Ping timeout: 255 seconds]
techhelp has quit [Ping timeout: 260 seconds]
chendo_ has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
jenrzzz has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
SCommette has quit [Quit: SCommette]
dpg has left #ruby [#ruby]
al3xnull has quit [Ping timeout: 260 seconds]
ddd has joined #ruby
x82_nicole has joined #ruby
daniel_- has quit [Ping timeout: 265 seconds]
mneorr has quit [Remote host closed the connection]
Drekonus has joined #ruby
chendo_ has quit [Ping timeout: 265 seconds]
freakazoid0223 has joined #ruby
CreativeEmbassy has joined #ruby
swarley| has joined #ruby
mjolk has joined #ruby
chendo_ has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
skaczor has quit [Remote host closed the connection]
cj3kim has joined #ruby
arya_ has joined #ruby
Drekonus has quit [Remote host closed the connection]
icole has joined #ruby
mneorr has joined #ruby
Zense has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
icole has quit [Ping timeout: 255 seconds]
xyzodiac has joined #ruby
Drekonus has joined #ruby
SCommette has joined #ruby
jlogsdon has joined #ruby
cableray has quit [Quit: cableray]
michaelmartinez has joined #ruby
ossareh has joined #ruby
mneorr has quit [Remote host closed the connection]
x82_nicole has quit [Quit: Computer has gone to sleep.]
SCommette has quit [Client Quit]
Drekonus has quit [Quit: Leaving.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sorbo_ has joined #ruby
SCommette has joined #ruby
ewag has joined #ruby
median has joined #ruby
byennen has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
<median> hi, learning ruby (on rails), and a friend pointed me here. not sure of the etiquette yet. : )
<median> basically curious how to have a shared form across 2 controllers
<median> and i tried a partial => 'shared/folder' approach but not working
Axsuul has joined #ruby
xsbeats has joined #ruby
postmodern has joined #ruby
seanstickle has quit [Quit: seanstickle]
mneorr has joined #ruby
ananthakumaran has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
g-ram has joined #ruby
<krz> how do i convert "false" into boolean?
<krz> or "true" for that matter
c0rn has quit []
<jtcoon> median, I am not a good repository of best practices, but using a partial sounds like the right route, perhaps passing in a local referencing the resource being operated on (avoid @instancevars)
soyapi has joined #ruby
soyapi has quit [Remote host closed the connection]
philips_ has quit [Excess Flood]
<jtcoon> krz, I don't think there's a built-in way, see google for examples (some add functionality to string)
CaptainJet has joined #ruby
chrisramon has joined #ruby
philips_ has joined #ruby
<sorbo_> krz: yeah, you can monkey patch String, as jtcoon mentions
<sorbo_> if you're feeling adventurous you can also just eval the strings
<krz> ty
<sorbo_> np
reset has quit [Quit: Linkinus - http://linkinus.com]
awarner has quit [Remote host closed the connection]
synthetix has joined #ruby
tbrock has joined #ruby
Tref has quit [Quit: Tref]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
GoGoGarrett has joined #ruby
median has quit [Ping timeout: 276 seconds]
malkomalko has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
rohit_ has joined #ruby
adrian has joined #ruby
Takehiro has joined #ruby
adrian is now known as Guest70692
c0rn has joined #ruby
rakunHo has joined #ruby
c0rn has quit [Client Quit]
doritostains has quit [Ping timeout: 244 seconds]
c0rn has joined #ruby
manizzle has joined #ruby
tomsthumb has quit [Read error: Connection reset by peer]
uris has joined #ruby
tomsthumb has joined #ruby
arya_ has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
bradhe_ has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
tomsthumb has quit [Read error: Connection reset by peer]
mascool has quit [Ping timeout: 244 seconds]
tomsthumb has joined #ruby
iamjarvo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
median has joined #ruby
iamjarvo has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
tomsthumb1 has joined #ruby
<median> thx jtcoon i'll try
tomsthumb has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
paolooo has joined #ruby
tnk1 has joined #ruby
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
Jamone has joined #ruby
Shrink has joined #ruby
sorbo_ has quit [Quit: sorbo_]
krawchyk has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 260 seconds]
roadt_ has joined #ruby
huoxito has quit [Quit: Leaving]
radic has quit [Read error: Operation timed out]
xpen has joined #ruby
areil has joined #ruby
Jamone has quit [Quit: Quit]
senj has quit []
rohit_ has quit [Read error: Connection reset by peer]
gabrielrotbart has quit [Remote host closed the connection]
gabrielrotbart has joined #ruby
malkomalko has joined #ruby
soyapi has joined #ruby
lolcathost has joined #ruby
soyapi has quit [Client Quit]
hemanth has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
hemanth has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
k610 has joined #ruby
radic has joined #ruby
Guest49392 has quit [Ping timeout: 264 seconds]
katherinem13 is now known as katherinem13_bed
mikepack has joined #ruby
RudyValencia has quit [Quit: Hacked By Chinese!]
bairui has quit [Read error: Connection reset by peer]
malkomalko has quit [Ping timeout: 250 seconds]
CreativeEmbassy has joined #ruby
bairui has joined #ruby
aharris6 has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 260 seconds]
x82_nicole has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 244 seconds]
Shrink has quit [Quit: ta]
xscc has joined #ruby
mneorr has quit [Remote host closed the connection]
fir_ed has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
bradhe has joined #ruby
Tearan has quit [Quit: Tearan]
slainer68 has joined #ruby
Monie has joined #ruby
macabre has quit [Remote host closed the connection]
Eldariof93-ru has joined #ruby
Eldariof-ru has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 260 seconds]
xscc has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
pu22l3r has quit [Remote host closed the connection]
rismoney has joined #ruby
pu22l3r has joined #ruby
mikepack has quit [Remote host closed the connection]
rismoney1 has quit [Ping timeout: 256 seconds]
Eldariof93-ru has quit [Client Quit]
jlwestsr has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
Tearan has joined #ruby
cakehero has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
tbrock has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Ping timeout: 260 seconds]
cakehero has quit [Client Quit]
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
joeycarmello has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
ananthakumaran has quit [Quit: Leaving.]
joeycarmello has joined #ruby
segv- has joined #ruby
rohit_ has joined #ruby
segv- has quit [Client Quit]
yewton has quit [Excess Flood]
yewton has joined #ruby
joeycarmello has quit [Ping timeout: 252 seconds]
bakis has quit [Ping timeout: 250 seconds]
gcds has joined #ruby
IceDragon has quit [Quit: Space~~~]
JStoker has quit [Excess Flood]
burgestrand1 has joined #ruby
Retistic has quit [Quit: Retistic]
wei_ has joined #ruby
jrunning has quit [Read error: Operation timed out]
acrocity_ has joined #ruby
yewton has quit [Max SendQ exceeded]
burgestrand has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
arya_ has joined #ruby
acrocity has quit [Ping timeout: 246 seconds]
acrocity_ is now known as acrocity
yewton has joined #ruby
burgestrand1 has quit [Ping timeout: 256 seconds]
bakis has joined #ruby
bakis is now known as Guest7543
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
ranjan has joined #ruby
ranjan is now known as Guest90303
Takehiro has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
A124 has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
gcds has quit [Ping timeout: 260 seconds]
JStoker has joined #ruby
CreativeEmbassy has joined #ruby
aharris6 has joined #ruby
mjolk has quit [Remote host closed the connection]
rking has quit [Quit: BBIAB]
ninp0 has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 264 seconds]
xpen has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
aces1up has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
<aces1up> what is the term or name for using a queue to organize threads.. basically, I have a function that finished, so the I fire a queue job that only has a single worker thread.. basically I do this as an alternative to mutex to ensure the job uses a single thread therefore that thread should be the only one accesses my un-thread safe variables.
ananthakumaran has joined #ruby
<aces1up> hope that makes sense.
moshee has quit [Remote host closed the connection]
pu22l3r has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
pu22l3r has quit [Remote host closed the connection]
kil0byte has joined #ruby
pu22l3r has joined #ruby
ninp0 has joined #ruby
Guest7543 is now known as bakis
bakis has quit [Changing host]
bakis has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
aharris6 has quit [Remote host closed the connection]
drago757 has quit [Quit: drago757]
xpen has quit [Ping timeout: 245 seconds]
Guest90303 has quit [Ping timeout: 252 seconds]
techhelp2 has quit [Quit: This computer has gone to sleep]
yewton has quit [Max SendQ exceeded]
jonahR has quit [Quit: jonahR]
yewton has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
joeycarmello has joined #ruby
wei_ has quit [Quit: wei_]
ossareh has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
bpfh has quit [Quit: Saindo]
pcarrier has quit []
djdb has joined #ruby
rellin has joined #ruby
pu22l3r has quit [Ping timeout: 248 seconds]
CaptainJet has quit []
arya_ has quit [Ping timeout: 260 seconds]
hemanth has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
lolcathost has quit [Ping timeout: 256 seconds]
hemanth has joined #ruby
arya_ has joined #ruby
swex_ has joined #ruby
BoomCow has joined #ruby
tyfighter has joined #ruby
swex has quit [Ping timeout: 265 seconds]
_nitti has quit [Ping timeout: 260 seconds]
Bosox20051 has quit [Quit: Leaving]
icole has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
Guest70692 has quit [Quit: Leaving...]
SPYGAME has joined #ruby
Z_Mass has quit [Quit: WeeChat 0.3.9.2]
x82_nicole has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
median has quit []
browndawg has joined #ruby
dmiller has quit [Remote host closed the connection]
rking has joined #ruby
pcarrier has joined #ruby
burgestrand has joined #ruby
blazes816 has quit [Quit: blazes816]
andrewhl has quit [Remote host closed the connection]
SCommette has joined #ruby
GoGoGarrett has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
danneu has quit [Quit: WeeChat 0.3.8]
ranjan has joined #ruby
ranjan is now known as Guest69540
GoGoGarrett has quit [Remote host closed the connection]
SPYGAME has quit [Ping timeout: 244 seconds]
freeayu has quit [Remote host closed the connection]
akemrir has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
chrisramon has quit [Quit: chrisramon]
moshee has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
freeayu has joined #ruby
lunks has quit [Remote host closed the connection]
moshee has quit [Remote host closed the connection]
moshee has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
rtd has quit [Quit: rtd]
haxrbyte has joined #ruby
rtd has joined #ruby
mahmoudimus has joined #ruby
ebouchut_ has joined #ruby
pcarrier has quit []
JohnBat26 has joined #ruby
J-_-L has quit [Ping timeout: 265 seconds]
SPYGAME has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
ikaros has joined #ruby
wei_ has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
Guest69540 has quit [Ping timeout: 264 seconds]
rohit_ has quit [Quit: Leaving]
haxrbyte has quit [Ping timeout: 260 seconds]
SCommette has quit [Quit: SCommette]
ebouchut_ has quit [Quit: This computer has gone to sleep]
Takehiro has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
zommi has joined #ruby
iamjarvo has quit [Quit: Leaving.]
browndawg has quit [Quit: Leaving.]
Takehiro has joined #ruby
kil0byte_ has joined #ruby
<aces1up> I have an asyncrounous queue i'm trying to get working can someone help me with this code?
arya_ has quit [Ping timeout: 244 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 250 seconds]
<burgestrand> aces1up: don’t understand what you want.
<reactormonk> aces1up, I'd go with jruby and something from java.util.concurrent ;-)
kil0byte has joined #ruby
tagrudev has joined #ruby
elsifaka has joined #ruby
<aces1up> burgestrand basically I need a way to callback the originating thread queue to pop off another job.
<aces1up> but if i don't do the call back it will run all jobs immediately, as the jobs themselves run in another thread.
<aces1up> and would return immediately thus poping off another job .
<aces1up> make sense?
CreativeEmbassy has joined #ruby
<burgestrand> aces1up: the spawn_thread goes to sleep after popping (and runnig) the first job, and is only woken up after 10 seconds, by looking at this code. Is it not?
areil_ has joined #ruby
piotr has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
<aces1up> no the Fibernode the one sleeping for 10secs is simulating an asyncrounous event. the queue itself does not sleep.
<burgestrand> aces1up: by the way, sleep (no arguments) sleeps forever (like Thead#stop), and the loop method is often preferred over “while true”
<aces1up> thought I could put the running thread to sleep then wake it up in the callback but doesn't seem to work.
areil_ has quit [Client Quit]
areil_ has joined #ruby
aharris6 has joined #ruby
charliesome has joined #ruby
areil_ has quit [Client Quit]
mneorr has quit [Remote host closed the connection]
areil has quit [Ping timeout: 256 seconds]
<aces1up> burgestrand any ideas, or do i need to clarify more?
<burgestrand> aces1up: I’m trying to run your code to try to understand what you are talking about it.
mneorr has joined #ruby
rtd has quit [Quit: rtd]
<burgestrand> aces1up: your code crashes.
<burgestrand> aces1up: what is “obj_info”?
bairui has quit [Ping timeout: 265 seconds]
<burgestrand> aces1up: line #15 in your paste.
FredLe has joined #ruby
<aces1up> sorry.. remove obj_info
<aces1up> its a kernel method I defined.
<aces1up> so when you run that code as is it won't run second job..
<aces1up> comment out line 36 and run again and it will run both jobs.
iamjarvo has joined #ruby
<burgestrand> aces1up: it runs both jobs, and then waits forever until a new job is added to the queue
areil has joined #ruby
<aces1up> but it shouldn't do that. it should only run second job when first job has completed.
<burgestrand> aces1up: actually.
<burgestrand> aces1up: Thread#stop does not exist.
<aces1up> huh?
<burgestrand> aces1up: your spawn_thread crashes.
<aces1up> works for me.. i'm on 1.9
<burgestrand> aces1up: Thread.stop works, Thread.current.stop doesn’t
<burgestrand> aces1up: line #36
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
kil0byte_ has joined #ruby
<aces1up> Thread.current.stop works on my platform. if I do Thread.stop does that assume current thread?
d2dchat has quit [Remote host closed the connection]
<burgestrand> aces1up: Thread#stop is not in the documentation: http://www.ruby-doc.org/core-1.9.3/Thread.html
<burgestrand> aces1up: what platform is that
ebouchut_ has joined #ruby
<aces1up> 1.9
<aces1up> wow
<burgestrand> aces1up: also, how do you know it works?
<aces1up> well thread.stop seems to make it work as i want.
<aces1up> weird.
<burgestrand> aces1up: no it’s not, it’s crashing your spawn_thread.
bairui has joined #ruby
<burgestrand> aces1up: before you run your code, do “Thread.abort_on_exception = true” and run it again with Thread.current.stop
<burgestrand> aces1up: by default ruby just hides exceptions raised in threads other than the main thread, and they won’t even print.
ebouchut_ has quit [Client Quit]
<burgestrand> aces1up: setting that flag will crash the main thread when *any* thread raises an uncaught error
answer_42 has joined #ruby
kil0byte has quit [Ping timeout: 260 seconds]
<aces1up> ok i see it now.. ok I changed line 36 to be Thread.stop
<aces1up> and it works as i want.
<aces1up> now another thing i need to figure out.
<aces1up> if i have x number of Fibernodes, I need to find a way to determine if all nodes have been processed by the spawn thread.
z has quit [Quit: Boom!]
bradhe has quit [Remote host closed the connection]
chaosis has quit [Ping timeout: 260 seconds]
<burgestrand> aces1up: check the size of your queue?
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
aharris6 has quit [Remote host closed the connection]
bradhe has joined #ruby
<aces1up> where though I guess just after the thread woke back up.
<aces1up> as I don't want to have another thread to poll that queue.
pcarrier has joined #ruby
nemesit has joined #ruby
zigomir has joined #ruby
pcarrier has quit [Ping timeout: 244 seconds]
maesbn has joined #ruby
bradhe has quit [Remote host closed the connection]
Retistic has joined #ruby
bradhe has joined #ruby
eldariof has joined #ruby
bigkevmcd has joined #ruby
tonini has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
frogstarr78 has quit [Ping timeout: 265 seconds]
lolmaus has joined #ruby
ToTo has joined #ruby
aeontech has quit [Quit: aeontech]
iamjarvo has quit [Quit: Leaving.]
postmodern has quit [Ping timeout: 245 seconds]
icole has quit [Remote host closed the connection]
Retistic has quit [Quit: Retistic]
jlogsdon has quit [Remote host closed the connection]
Elico has joined #ruby
Fabian_ has joined #ruby
proshot has joined #ruby
Fabian_ has quit [Client Quit]
xAndy is now known as xandy
xandy is now known as xAndy
kil0byte has joined #ruby
<aces1up> burgestrand you still there?
<aces1up> the built in Queue thread.
Mon_Ouie has quit [Ping timeout: 245 seconds]
<aces1up> its thread safe i'm guessing right? I mean I can't push and pop at the same time?
Retistic has joined #ruby
<burgestrand> aces1up: Queue is thread-safe.
<aces1up> i mean if 2 differrent threads 1 trying to do a push while the other does a pop.
<burgestrand> aces1up: pops and pushes are atomic, and if you have only one item in the Queue, only one thread will get that item.
<burgestrand> aces1up: which of those two threads get the item is unspecified though, I believe.
ToTo has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
h4mz1d has joined #ruby
pcarrier has joined #ruby
kil0byte_ has quit [Ping timeout: 255 seconds]
frogstarr78 has joined #ruby
tyfighter has quit [Quit: tyfighter]
bradhe has joined #ruby
icole has joined #ruby
Fabian_ has joined #ruby
<aces1up> what atomic mean? does it just mean thread safe?
aganov has joined #ruby
pcarrier has quit [Ping timeout: 244 seconds]
<Sp4rKy> atomic means that all the operations inside the atomic "block" will be executed together
<aces1up> hrm.
dr_bob has joined #ruby
bradhe has quit [Remote host closed the connection]
<Sp4rKy> no other call will be exectued between first and last operation of the atomic block
Guru has joined #ruby
<aces1up> no other call? like method call?
bradhe has joined #ruby
Guru is now known as Guest17246
<Sp4rKy> yep
Guest17246 is now known as gurushah
<aces1up> hrmm will have to read more about that one.
pcarrier has joined #ruby
postmodern has joined #ruby
elsifaka has quit [Quit: Veloma e!]
jds_ has joined #ruby
tyfighter has joined #ruby
kil0byte_ has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
wildcard0 has joined #ruby
Nisstyre-laptop has quit [Remote host closed the connection]
blaxter has joined #ruby
kil0byte has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has joined #ruby
Fabian_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
postmodern has quit [Ping timeout: 264 seconds]
undersc0re97 has joined #ruby
yewton has quit [Excess Flood]
mercwithamouth has quit [Ping timeout: 260 seconds]
elsifaka has joined #ruby
elsifaka has quit [Max SendQ exceeded]
u89 has joined #ruby
yewton has joined #ruby
xsbeats has quit [Read error: Connection reset by peer]
xsbeats_ has joined #ruby
elsifaka has joined #ruby
pcarrier has quit []
elsifaka has quit [Max SendQ exceeded]
u89 has quit [Remote host closed the connection]
elsifaka has joined #ruby
jprovazn has joined #ruby
cableray has joined #ruby
SeySayux has quit [Read error: Operation timed out]
neurotech has joined #ruby
bgh has joined #ruby
hotovson has joined #ruby
slainer68 has joined #ruby
generalissimo has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
Villadelfia has quit [Ping timeout: 265 seconds]
sspiff has joined #ruby
kil0byte has joined #ruby
odyssey4me has joined #ruby
dangerousdave has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
SeySayux has joined #ruby
dangerousdave has quit [Client Quit]
slainer68 has quit [Ping timeout: 248 seconds]
Villadelfia has joined #ruby
Villadelfia has quit [Changing host]
Villadelfia has joined #ruby
kil0byte_ has quit [Ping timeout: 260 seconds]
braoru has joined #ruby
jimeh has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
margle has joined #ruby
blaxter has quit [Quit: foo]
nemesit has quit [Ping timeout: 265 seconds]
blaxter has joined #ruby
pcarrier has joined #ruby
c0rn has quit []
arya_ has joined #ruby
elsifaka has quit [Quit: Veloma e!]
doritostains has joined #ruby
bradhe has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
browndawg has joined #ruby
cableray has quit [Quit: cableray]
cableray has joined #ruby
apeiros_ has joined #ruby
hoelzro|away is now known as hoelzro
Xeago has joined #ruby
vlad_starkov has joined #ruby
Virunga has joined #ruby
<Axsuul> Can anyone recommend a library better than Net::HTTP
arya_ has quit []
arya_ has joined #ruby
codezombie has joined #ruby
k610 has joined #ruby
reset has joined #ruby
L1 has quit [Changing host]
L1 has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
marr has joined #ruby
reset has quit [Ping timeout: 265 seconds]
odyssey4me has quit [Ping timeout: 264 seconds]
jackbrownhf has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
<krz> how would i use eval to convert 'true' to true
<apeiros_> krz: you wouldn't.
<apeiros_> you'd simply do string == 'true'
<krz> that would require a method right?
<apeiros_> eval is a method too
<krz> is there a one liner for something similar
<apeiros_> wtf?
<apeiros_> how's "string == 'true'" not a one-liner?
<apeiros_> do you write it on 2 lines or what? o0
<krz> how the hell do i convert "true" or "false" with that, if i don't have it as a method
<apeiros_> oh my
<apeiros_> converted_value = your_input == 'true'
<krz> 'true'.to_bool would work. assuming to_bool is a method that has string == 'true'
<apeiros_> I don't know how I can make it any clearer
bluOxigen has joined #ruby
<krz> you suggesting itinerary conditions?
cableray has quit [Quit: cableray]
<apeiros_> che?
<apeiros_> krz: you're aware that == returns an Object, yes?
<apeiros_> 'true' == 'true' # => true
<apeiros_> 'false' == 'true' # => false
<apeiros_> don't know where you're stuck with understanding that code…
Elhu has joined #ruby
ebouchut_ has joined #ruby
ebouchut has quit [Read error: Connection reset by peer]
<krz> apeiros_: foo can either be 'true', 'false' or nil
<apeiros_> and?
xpen has joined #ruby
<krz> i want to do. baz = foo
<krz> baz should be true, false, or nil
<wildcard0> baz = foo.to_s ?
<apeiros_> krz: I can't help you. I told you how. If by all the explanation I've already given, you still can't make sense of it, then I can't help you.
bluOxigen has quit [Ping timeout: 260 seconds]
<krz> bad = eval(foo)
<krz> bad=baz
<wildcard0> i must have missed the beginning
<krz> thats what i needed
<apeiros_> it's a bad solution
machty has joined #ruby
<krz> how so?
<apeiros_> srsly?
<krz> its eval. not evil :=P
* apeiros_ walks away
jds_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<apeiros_> hopeless case.
<krz> i was being sarcastic
L1 has quit [Quit: Quitter]
<krz> yes, i know its code smell
<apeiros_> it's a code STINK
<apeiros_> obviously foo is user-input
<krz> i was just trying to show you what i needed as a one liner
<apeiros_> yes, and you fail to read and understand replies you get.
<apeiros_> but srsly, I'm off. I have not enough patience for this.
L1 has joined #ruby
L1 has joined #ruby
L1 has quit [Changing host]
<wildcard0> krz: why not just baz == 'true' ?
z has joined #ruby
<krz> apeiros_: you suggesting: baz = foo == 'true' ? true : foo == 'false' ? false : nil
<wildcard0> oh preserving nil too
z is now known as Guest42657
Guest42657 has quit [Changing host]
Guest42657 has joined #ruby
codecaster has joined #ruby
<krz> isn't there a better way to do this?
Guest42657 is now known as z
tyfighter has quit [Quit: tyfighter]
<apeiros_> krz: no. I suggest exactly what I wrote. but that was back when you still failed to mention that you have more input than just 'true'.
<apeiros_> krz: see Hash.
igro has joined #ruby
arturaz_ has joined #ruby
mikecmpbll has joined #ruby
<krz> krz: apeiros_: foo can either be 'true', 'false' or nil <-- thats what i said
manizzle has quit [Ping timeout: 265 seconds]
<apeiros_> yeah, some 20 lines later. As said, a hash will solve that problem.
nemesit has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
cdt_ has joined #ruby
bradhe has joined #ruby
<wildcard0> so i scrolled up and looked at the original question
kil0byte_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
<wildcard0> a and a == "true"
<wildcard0> ^-- that's what you want
<wildcard0> it support "true" "false" and nil
<wildcard0> but not "nil" obviously
<apeiros_> that'd also work
TechZombie has quit [Quit: Leaving.]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
<apeiros_> it'd return false for unspecified input. but krz didn't specify the desired result for that case.
arya_ has joined #ruby
<wildcard0> yes that's totally true
Iszak has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 264 seconds]
<wildcard0> i just thought it was a worthwhile alternative
ryanf has quit [Quit: leaving]
<apeiros_> oh, yes it is
Takehiro has joined #ruby
<apeiros_> my comment wasn't meant to say that this was a weakness of the solution
codecaster has joined #ruby
<apeiros_> if at all, then it's a weakness of the problem specification…
bradhe has quit [Read error: Connection reset by peer]
pcarrier has quit []
workmad3 has joined #ruby
bradhe has joined #ruby
bgh has quit [Ping timeout: 244 seconds]
paolooo_ has joined #ruby
segv- has joined #ruby
manizzle has joined #ruby
paolooo_ has quit [Client Quit]
bradhe has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
BiHi has joined #ruby
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
nomenkun_ has joined #ruby
osvico has joined #ruby
pcarrier has joined #ruby
tvw has joined #ruby
adeponte has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
eka has joined #ruby
pcarrier has quit [Ping timeout: 244 seconds]
proshot has quit [Quit: Leaving]
paolooo has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
pcarrier has joined #ruby
robotmay has joined #ruby
x82_nicole has joined #ruby
LouisGB has joined #ruby
statarb3 has joined #ruby
xpen_ has joined #ruby
adambeynon has joined #ruby
jsilver has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 256 seconds]
adeponte has joined #ruby
ExxKA has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
nemesit has quit [Ping timeout: 264 seconds]
swex_ has quit [Remote host closed the connection]
browndawg has left #ruby [#ruby]
nemesit has joined #ruby
estan has quit [Ping timeout: 252 seconds]
elaptics`away is now known as elaptics
chussenot has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
rdark has joined #ruby
Virunga has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
leonardorb has joined #ruby
schaary has joined #ruby
workmad3 has joined #ruby
babinho has quit [Ping timeout: 264 seconds]
beiter has joined #ruby
segv- has quit [Quit: segv-]
CreativeEmbassy has joined #ruby
fyolnish has quit [Remote host closed the connection]
segv- has joined #ruby
nemesit|osx has joined #ruby
pcarrier has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
pcarrier has joined #ruby
berserkr has joined #ruby
nemesit|osx has quit [Read error: Connection reset by peer]
nemesit|osx has joined #ruby
estan has joined #ruby
mjolk has joined #ruby
CreativeEmbassy has quit [Ping timeout: 245 seconds]
nemesit has quit [Ping timeout: 260 seconds]
swex has joined #ruby
jsilver has joined #ruby
arturaz_ has quit [Remote host closed the connection]
jsilver has quit [Remote host closed the connection]
jsilver has joined #ruby
thomas has quit [Changing host]
thomas has joined #ruby
neurotech has quit [Remote host closed the connection]
kil0byte has joined #ruby
thomas has quit [Quit: leaving]
fenton has joined #ruby
<fenton> is it possible to have a uni-directional activerecord relationship?
<fenton> one model 'has-one' another model...
chaplain has joined #ruby
<Paradox> fenton, i'd assume so
<Paradox> but dont take my word for it
<Paradox> probably has and belongs to many
chaplain has quit [Client Quit]
<fenton> can u create the two models and associate afterwards... if so how, in general?
kil0byte_ has quit [Ping timeout: 260 seconds]
<fenton> car: has-one :color. Car.create(). Color.create(). ???
L1 has quit [Quit: Quitter]
<fenton> car: has-one :color. car=Car.create(). col=Color.create(). car.color = col?
gyre007 has joined #ruby
<fenton> apeiros_: didn't see it there...
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<apeiros_> it is in there.
<apeiros_> 4.2.1
nemesit|osx has quit [Ping timeout: 245 seconds]
igro has joined #ruby
<apeiros_> also irb (or pry), it doesn't bite, promised.
<fenton> apeiros_: ok I'll mull this over a bit...http://pastie.org/5470769
<JonnieCache> morning boys and girls
<JonnieCache> apeiros_: had a go of your rpg on the weekend
<JonnieCache> its cool
<apeiros_> fenton: one of the sides needs the ID
jds_ has joined #ruby
<apeiros_> has_* means the other side has the ide
<apeiros_> *id
<apeiros_> since you have "has_*" on both sides, you never store the association anywhere
daniel_- has joined #ruby
<fenton> apeiros_: so only one side need know about the other.
kil0byte_ has joined #ruby
<apeiros_> if it's a one-to-one or one-to-many, yes
<apeiros_> and the side having the ID is the one where you use 'belongs_to' instead of 'has_one'
<apeiros_> JonnieCache: cool :)
<apeiros_> JonnieCache: working on the switch to Gosu at the moment. prettier graphics :)
<JonnieCache> apeiros_: it crashes when i press the wrong key though
<fenton> apeiros_: ok, i'll mull that.
fenton has quit [Quit: WeeChat 0.3.9.2]
<bubuz> anyone know using the sqlite3 ruby gem, is there a sqlite.conf file anywhere ???
<apeiros_> JonnieCache: uh? it shouldn't… it should print "\a" (which "rings" a bell)
<JonnieCache> apeiros_: yeah i was gonna ask, what are your plans for the art style?
<apeiros_> bubuz: no
<JonnieCache> apeiros_: it throws some exception on a method called "shop" i didnt really invesitgate it tbh
<apeiros_> JonnieCache: for the start public tilesets. I'll try to find graphic artists.
punkrawkR has joined #ruby
<JonnieCache> apeiros_: but in general an oldschool 16bit thing?
<apeiros_> JonnieCache: ah, might be that some screens are not properly written
googya has quit [Ping timeout: 265 seconds]
<apeiros_> JonnieCache: yeah, appearance will probably be rather reminescent of good old snes games :)
<bubuz> thx apeiros_
kil0byte has quit [Ping timeout: 252 seconds]
<JonnieCache> i remember secret of mana was mentioned
<JonnieCache> this is good
<apeiros_> JonnieCache: example of public tilesets: http://forums.rpgmakerweb.com/index.php?/topic/84-lunas-tiles/
jds_ has quit [Ping timeout: 255 seconds]
<JonnieCache> yeah theres lots of good stuff like that out thtere
<JonnieCache> ok so my plan to make oldschool sfx and music is still ok
<apeiros_> or http://vxresource.wordpress.com/category/resources/tilesets/ (have to scroll a bit on both)
<apeiros_> yeah, totally :)
<JonnieCache> how far is the gosu port? because gosu has its own sound support doesnt it?
yshh has quit [Ping timeout: 264 seconds]
margle has quit [Quit: Computer has gone to sleep.]
<apeiros_> I'd expect the gosu port to be on par with the current terminal implementation at the end of december. it *may* be earlier. I wouldn't bet on it, though. effort is quite a bit higher.
staafl has joined #ruby
<apeiros_> also lots of initial effort is going on now, which will hopefully be a bit lower after december
<Paradox> ( ͡ಠ ͜ʖ ͡ಠ)
SPYGAME has quit [Ping timeout: 264 seconds]
hotovson has quit [Remote host closed the connection]
reinaldob has joined #ruby
Virunga has joined #ruby
googya has joined #ruby
leonardorb has quit [Remote host closed the connection]
morf has joined #ruby
cascalheira has joined #ruby
rakl has quit [Quit: sleeping]
ttt has quit [Disconnected by services]
<apeiros_> JonnieCache: ah, with regards to license - I assume you're fine with the game being completely under BSD?
ttt_ has joined #ruby
Takehiro has joined #ruby
<Xeago> is there a beta apeiros_, JonnieCache?
<apeiros_> Xeago: alpha at best
<apeiros_> https://github.com/apeiros/teaching_rpg - terminal only, with a couple of rough edges ;-)
<apeiros_> you run it by cd'ing into the project root, then `ruby -Ilib bin/ruby_rpg` (it's in the README too)
SPYGAME has joined #ruby
<JonnieCache> apeiros_: bsd is the one where you can do whatever the hell you want isnt it?
<JonnieCache> or is that MIT
<JonnieCache> i like that one yes
<apeiros_> both, yes
pcarrier has quit []
<apeiros_> both are "do whatever you want, but keep a note that I/we developed the original)
<apeiros_> s/)/"/
xpen_ has quit [Ping timeout: 265 seconds]
kil0byte has joined #ruby
burgestrand has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
burgestrand has joined #ruby
<jsilver> :p
kil0byte_ has quit [Ping timeout: 264 seconds]
<jsilver> chat yr whole net in ruby ! node coming soon
Takehiro has quit [Remote host closed the connection]
pcarrier has joined #ruby
<JonnieCache> number 1 most popular yeah?
<Xeago> never heard of it..
<Xeago> and version 1 is nonexistant?
wallerdev has quit [Quit: wallerdev]
arya_ has quit []
pcarrier_ has joined #ruby
<jsilver> nope, on my github @jsilverMDX
<jsilver> uses rails, heroku and shortpolling
<jsilver> but version 2 is tcp based no http
nkts has joined #ruby
<jsilver> version 3 update coming soon.. faster load speeds
<Xeago> what a horrible site layout
<jsilver> hm. ill have to fire my designer
postmodern has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pcarrier has quit [Ping timeout: 260 seconds]
pcarrier_ is now known as pcarrier
adeponte has quit [Remote host closed the connection]
aetcore has joined #ruby
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
JohnBat26 has joined #ruby
dzhulk has joined #ruby
himsin has joined #ruby
fyolnish has joined #ruby
beiter has quit [Quit: beiter]
Averna1 has joined #ruby
kil0byte_ has joined #ruby
segora has joined #ruby
larissa has joined #ruby
fyolnish has quit [Ping timeout: 255 seconds]
kil0byte has quit [Ping timeout: 260 seconds]
bgh has joined #ruby
rakunHo has quit [Remote host closed the connection]
margle has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
swex has quit [Remote host closed the connection]
elementz has joined #ruby
elementz has joined #ruby
elementz has quit [Changing host]
Hanmac has joined #ruby
tk__ has joined #ruby
arabi has joined #ruby
<hemanth> class << self; is not applicable with 1.9.X ?
<arabi> hey guys i am a ruby newbie , i was writing a code to find largest prime factor a number ... but it takes toooooo long to execute ... pls have a look at my code : http://pastie.org/5470941
swex has joined #ruby
roadt_ has quit [Ping timeout: 245 seconds]
<arabi> is there anyone to help :(
kil0byte has joined #ruby
<arabi> hey guys i am a ruby newbie , i was writing a code to find largest prime factor a number ... but it takes toooooo long to execute ... pls have a look at my code : http://pastie.org/5470941
<wildcard0> quick glace, you only need to search to num/2 for primes
<wildcard0> cause 3*9 = 9*3
<hoelzro> you could limit it further to sqrt(num)
<nomenkun_> you keep dividing yet as soon as you increase counter you can return false
<wildcard0> also, you only need to look at odd numbers
<wildcard0> so you can do (3..num).step(2) do
<arabi> ok
<arabi> lemme see what happens
<wildcard0> basically a bunch of small optimization that should cut out a huge number of cases
arturaz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
malkomalko has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kil0byte_ has quit [Ping timeout: 255 seconds]
swex has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
Retistic has quit [Quit: Retistic]
<hemanth> class << self; is not applicable with 1.9.X ?
guiocavalcanti has joined #ruby
yacks has quit [Quit: Leaving]
charliesome has quit [Ping timeout: 260 seconds]
fyolnish has joined #ruby
samphippen has joined #ruby
_nitti has joined #ruby
charliesome has joined #ruby
arturas_ has joined #ruby
krz has quit [Quit: krz]
arturaz has quit [Read error: Connection reset by peer]
yacks has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
FredLe1 has joined #ruby
mikecmpbll has joined #ruby
FredLe has quit [Ping timeout: 265 seconds]
ixti has joined #ruby
bluOxigen has quit [Read error: No route to host]
bluOxigen has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
arabi has quit [Ping timeout: 245 seconds]
Guest36259 has quit [Ping timeout: 252 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
gurushah has quit [Quit: gurushah]
hoelzro is now known as hoelzro|away
yshh has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
Hanmac_ has joined #ruby
krz has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
krz has quit [Client Quit]
eka has quit [Remote host closed the connection]
swex has joined #ruby
smi_ has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
arabi has joined #ruby
Takehiro has joined #ruby
guiocavalcanti has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
wermel has joined #ruby
leonardorb has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Guru has joined #ruby
nari has joined #ruby
Guru is now known as Guest76675
Paradox has quit [Read error: Operation timed out]
heftig has quit [Quit: leaving]
Guest76675 is now known as GuruShah
Paradox has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
GuruShah has quit [Client Quit]
machty has quit [Quit: machty]
arabi has quit [Quit: Leaving]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
leonardorb has quit [Ping timeout: 260 seconds]
Iszak has joined #ruby
Iszak has quit [Max SendQ exceeded]
Iszak has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
blacktul_ has joined #ruby
marr has quit [Ping timeout: 260 seconds]
nari has quit [Ping timeout: 245 seconds]
blacktulip has quit [Ping timeout: 264 seconds]
RickSchmitty has joined #ruby
cmarques has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
hoelzro|away is now known as hoelzro
<bubuz> anyone her used rubykoans?
pcarrier has quit []
lkba has quit [Ping timeout: 256 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
fir_ed has joined #ruby
vlad_starkov has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 255 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
malte_ has quit [Quit: malte_]
rohit_ has joined #ruby
kirun has joined #ruby
Takehiro has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
browndawg has joined #ruby
<banisterfiend> how do i build rbenv rubies with no optimization? (O0)
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
bier_ has quit [Read error: Operation timed out]
<postmodern> banisterfiend, think you can set CONFIGURE_OPTS
<postmodern> banisterfiend, or just build the rubies manually
hemanth has quit [Read error: Connection reset by peer]
<banisterfiend> postmodern: i prefer building it through rbenv so it's added to my rbenv versions
bier has quit [Ping timeout: 250 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<postmodern> banisterfiend, ./configure --prefix=~/.rbenv/versions/ruby-1.9.3-p327
<postmodern> er
<postmodern> banisterfiend, ./configure --prefix=~/.rbenv/versions/1.9.3-p327
mpereira has quit [Ping timeout: 260 seconds]
<JonnieCache> banisterfiend: rbenv (or rather ruby-build) doesnt do anything special to add it to rbenv. it just builds it in the .rbenv/versions directory. thats it
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
nemesit has joined #ruby
<postmodern> also a good trick is to set RUBY_BUILD_BUILD_PATH and use ruby-build -k
<postmodern> which keeps the source code, in case you have to patch/re-compile
fir_ed has quit [Ping timeout: 265 seconds]
chussenot has quit [Quit: chussenot]
mvangala has quit [Read error: Connection reset by peer]
rohit_ has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
hemanth has joined #ruby
bgh has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
leonardorb has joined #ruby
bgh has joined #ruby
topek has joined #ruby
cantonic has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
hemanth has joined #ruby
replore has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
samphippen has joined #ruby
kil0byte_ has joined #ruby
paolooo has joined #ruby
gregorg_taf has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 245 seconds]
hemanth has joined #ruby
hotovson has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
smi_ has quit [Quit: Page closed]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
bier has joined #ruby
bier_ has joined #ruby
jaygen has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
xkx has joined #ruby
xkx has quit [Client Quit]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
igro has quit [Quit: Computer has gone to sleep.]
piotr_ has joined #ruby
piotr has quit [Ping timeout: 245 seconds]
swarley- has joined #ruby
bgh has quit [Ping timeout: 252 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
pcarrier has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
SPYGAME has quit [Ping timeout: 260 seconds]
hamed_r has joined #ruby
hemanth has joined #ruby
swarley| has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
atmosx_ has joined #ruby
[Neurotic] has quit [Ping timeout: 264 seconds]
gbchaosmaster has quit [Read error: Operation timed out]
googya has quit [Quit: Leaving.]
xpen has joined #ruby
hemanth has joined #ruby
browndawg has quit [Quit: Leaving.]
hemanth has quit [Read error: Connection reset by peer]
swarley- has quit [Ping timeout: 246 seconds]
pcarrier has quit [Ping timeout: 245 seconds]
ExxKA has quit [Quit: This computer has gone to sleep]
mvangala has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
hemanth has joined #ruby
xpen has quit [Remote host closed the connection]
pcarrier has joined #ruby
topek has quit [Quit: Leaving.]
hemanth has quit [Read error: Connection reset by peer]
byennen has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
rohit_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
tobinharris has joined #ruby
undersc0re97 has quit [Ping timeout: 245 seconds]
hemanth has joined #ruby
aetcore has quit [Quit: aetcore]
hemanth has quit [Read error: Connection reset by peer]
yacks has quit [Quit: Leaving]
hemanth has joined #ruby
jdripper has joined #ruby
kil0byte has joined #ruby
lenovodroid has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
yacks has joined #ruby
hemanth has joined #ruby
cousine has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
kil0byte_ has quit [Ping timeout: 256 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ToTo has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
nyuszika7h has quit [Ping timeout: 246 seconds]
heftig has joined #ruby
hemanth has joined #ruby
himsin has quit [Ping timeout: 255 seconds]
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
hemanth has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
igro has joined #ruby
chaosis has joined #ruby
nyuszika7h has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
lkba has joined #ruby
nari has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
wei_ has quit [Quit: wei_]
yasu has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
malkomalko has quit [Read error: Connection reset by peer]
malkomalko has joined #ruby
piotr has joined #ruby
roadt_ has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
piotr_ has quit [Ping timeout: 245 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
lenodroid has joined #ruby
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
hemanth has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
hemanth has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
lenovodroid has joined #ruby
BiHi has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Guest30882 has joined #ruby
cakehero has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
Averna1 has quit [Quit: Leaving.]
Takehiro has quit [Ping timeout: 260 seconds]
carloslopes has joined #ruby
Takehiro has joined #ruby
browndawg has joined #ruby
kil0byte_ has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 245 seconds]
kil0byte has quit [Ping timeout: 244 seconds]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
dawkirst3 has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
hemanth has joined #ruby
chussenot has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
niklasb has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
codecaster has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
undersc0re97 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
replore has quit [Remote host closed the connection]
Hanmac_ has quit [Ping timeout: 245 seconds]
awarner has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
marr has joined #ruby
mark_locklear has joined #ruby
ttt_ has quit [Remote host closed the connection]
lenodroid has quit [Remote host closed the connection]
lenovodroid has quit [Remote host closed the connection]
iamjarvo has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<dawkirst3> Hello, I'm really new to Ruby and Linux. I'm trying to move a temporary file (uploaded through the browser) in /tmp/ to an app directory with FileUtils.move. I get a permission denied error. I've ran chmod -R 777 /tmp/ and confirmed with ls -l. Still getting the error though. Any ideas?
eka has joined #ruby
replore_ has joined #ruby
jeffreybaird has joined #ruby
<apeiros_> aren't tempfiles unlinked right after creation?
<hoelzro> dawkirst3: what are the permissions of the destination?
<dawkirst3> hoelzro also ran chmod -R 777 there
<hoelzro> dawkirst3: is the tempfile owned by the user that's running the Ruby process?
<hoelzro> also, you should be careful about arbitrarily changing permissions, especially in /tmp
jprovazn has quit [Quit: Leaving]
browndawg has quit [Ping timeout: 265 seconds]
eka has quit [Ping timeout: 245 seconds]
<dawkirst3> ok wait, I feel stupid: I've changed FileUtils.mv(path,/path) to FileUtils.mv(path,path/) and now it works. Did the formal look for a file in the root, and the latter for a directory?
<dawkirst3> hoelzro they were owned by root
leonardorb has quit [Remote host closed the connection]
<dawkirst3> I changed owner to my user, then changed owner back to root
<dawkirst3> but any new temp files are now still owned by my user (probably because my user is running the browser that creates the file)
braoru has quit [Ping timeout: 265 seconds]
thunderstrike has joined #ruby
thunderstrike has quit [Remote host closed the connection]
<dawkirst3> hoelzro why would the second path have worked though (I'm trying to understand Linux, as I said -- only installed Ubuntu today)
<hoelzro> dawkirst3: possibly some magic of how FileUtils works
<JonnieCache> path/ is realative to the current dir
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
<JonnieCache> /path is an absolute path starting at the root
<hoelzro> oh, I didn't see the leading slash in the former example
<hoelzro> JonnieCache: good catch
awarner has quit [Remote host closed the connection]
<JonnieCache> dawkirst3: /path is equivalent to c:\path
<dawkirst3> thanks JonnieCache, so path/ would be a relative path?
<dawkirst3> awesome, makes sense
advorak has joined #ruby
<dawkirst3> that is why I can navigate to tmp by going cd /tmp even though I'm not relative to that path
banisterfiend has quit [Ping timeout: 260 seconds]
<dawkirst3> hoelzro back to not arbitrarily changing owners and permissions in /tmp, is there a way to change it back?
<dawkirst3> or reset it to some default state?
<hoelzro> dawkirst3: well, rebooting it will likely fix that =)
a_a_g has quit [Quit: Leaving.]
<hoelzro> I can never remember what the default is
<dawkirst3> ok :)
<dawkirst3> thanks
<hoelzro> I want to say 755, but that's probably wrong
<hoelzro> or maybe it's 4777?
<maetthew> I'm trying to make an IRC bot with Cinch and DataMapper. I am having trouble saving to the database. Why am I getting this error when @player_create.save is called on line 21 (in tf2mixbot.rb) -- https://gist.github.com/4195052
<dawkirst3> I'll reboot
nomenkun_ has quit [Read error: Connection reset by peer]
margle has quit [Quit: Computer has gone to sleep.]
<hoelzro> it's 1777 on my box
nomenkun has joined #ruby
<maetthew> err
mikecmpbll has joined #ruby
<maetthew> nvm me i will refine my question
<dawkirst3> hoelzro one last question - I've played around with Ruby on a Windows box, but in Ubuntu I need to run ruby -rubygems somesrcript.rb for my gems to be required. Why is that? How does gem include paths work?
philips_ has quit [Excess Flood]
synthetix has quit [Ping timeout: 245 seconds]
<hoelzro> dawkirst3: is your Ubuntu ruby 1.8?
<dawkirst3> uhm
<apeiros_> maetthew: @player != @player_create
elementz has quit [Remote host closed the connection]
<dawkirst3> yes
<hoelzro> dawkirst3: that would be why =)_
<maetthew> apeiros_, I know I failed when making the gist..
<maetthew> apeiros_, I am making a new gist now
xyzodiac has joined #ruby
<dawkirst3> hoelzro, ok, explain please? :)
<hoelzro> dawkirst3: 1.9 implicitly uses Rubygerms
<hoelzro> er, Rubygems.
pcarrier has quit []
<maetthew> Ok I fixed my question :P
<maetthew> I'm trying to make an IRC bot with Cinch and DataMapper. I am having trouble saving to the database. Why am I getting this error when @player_create.save is called on line 21 (in tf2mixbot.rb) -- https://gist.github.com/4195052
<maetthew> apeiros_, ^
<maetthew> oops and its @player.save not @player_create
<maetthew> still haven't woken up :P
ner0x has joined #ruby
<maetthew> And it's actually not an error. It's just that nothing is happening
samphippen has joined #ruby
philips_ has joined #ruby
<apeiros_> maetthew: I'd read the datamapper docs
Adget has joined #ruby
<maetthew> apeiros_, that's what i'm doing. well not the docs but the "getting started" doc
<apeiros_> if datamapper works like AR wrt #save, then it might well be that your save returned false
<apeiros_> indicating that it could not save the data (e.g. because validation failed)
<dawkirst3> ok, can I update Ruby through apt or apt-get? (don't undersand the difference yet)
<apeiros_> maetthew: yeah, well, now you have a specific method, so you should check the API docs on that
ananthakumaran has quit [Quit: Leaving.]
<maetthew> apeiros_, hmm ok. i'm ruby noob and can not quite figure out API docs yet but I will try that
<apeiros_> states exactly what I said
<apeiros_> returns a boolean. and in your case, it probably returns false.
<dawkirst3> hoelzro ok, can I update Ruby through apt or apt-get? (don't undersand the difference yet)
pcarrier has joined #ruby
<maetthew> apeiros_, hmm ok. Will check if it's actually false
chaosis has quit [Ping timeout: 260 seconds]
<maetthew> apeiros_, I should be able to do if @player.save == true then?
<hoelzro> dawkirst3: I wouldn't recommend it
<apeiros_> you can drop the '== true'
<apeiros_> but yes
<hoelzro> dawkirst3: well, I think (but don't know) that there's a ruby19 package
<hoelzro> which would be ok to use
<hoelzro> however
<maetthew> apeiros_, Indeed i did an ifelse and it returns "save failed" :/
<hoelzro> the rule of thumb is to not mess with the system Ruby
freeayu has quit [Ping timeout: 255 seconds]
<maetthew> apeiros_, Any idea why it will return false?
<hoelzro> most people these days use rbenv or rvm
<apeiros_> maetthew: no, #datamapper might be more helpful for that
<dawkirst3> hoelzro ok
daniel_- has quit [Ping timeout: 245 seconds]
<hoelzro> maetthew: apt is the suite of tools; apt-get downloads and installs things
<maetthew> apeiros_, thank you didn't think of that
Tombar has joined #ruby
dawkirst3 is now known as dawkirst
fmsmkq has joined #ruby
rippa has joined #ruby
workmad3 has joined #ruby
<dawkirst> hoelzro thanks for that (I assume it was meant for me)
<hoelzro> dawkirst: indeed it was =)
<maetthew> :P
<dawkirst> hoelzro well thanks for the help and thanks for being so friendly (I was initially quite scared to ask the question)
<hoelzro> no problem! don't be scared to ask =)
reinaldob has quit [Remote host closed the connection]
eka has joined #ruby
bwwrd has joined #ruby
reinaldob has joined #ruby
binarypl1 has joined #ruby
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
nga4 has quit [Ping timeout: 250 seconds]
rippa has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
yewton has quit [Excess Flood]
yewton has joined #ruby
fmsmkq has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Quit: Leaving]
reinaldob has quit [Ping timeout: 260 seconds]
mjolk has quit [Quit: returning some videotapes]
yacks has quit [Ping timeout: 256 seconds]
jlwestsr has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
freeayu has joined #ruby
icole has joined #ruby
margle has joined #ruby
tommyvyo has joined #ruby
Slivka has joined #ruby
dawkirst has quit [Quit: Nettalk6 - www.ntalk.de]
rohit_ has quit [Quit: Leaving]
dawkirst has joined #ruby
banisterfiend has joined #ruby
nyuszika7h has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Emmanuel_Chanel has joined #ruby
icole has quit [Ping timeout: 244 seconds]
kil0byte has joined #ruby
kirun_ has joined #ruby
<dawkirst> hoelzro, ok :) Well in that case, here's my next question: do you happen to know how to do the equivalent of this in ruby? http://php.net/manual/en/function.http-build-query.php
v0n has joined #ruby
<hoelzro> I don't off the top of my head, but I'm sure that someone else here does =)
aquaranto has joined #ruby
cakehero has quit [Quit: Leaving...]
<dawkirst> ok, thanks
<maetthew> apeiros_, FWIW it seems to be a bug in DataMapper 1.2.0 that causes this..
kil0byte_ has quit [Ping timeout: 255 seconds]
<maetthew> in case you wanted to know :P
<apeiros_> maetthew: oy? that… sounds bad? I mean… saving data is like the main reason to use a persistence layer…
freeayu has quit [Ping timeout: 256 seconds]
kil0byte_ has joined #ruby
<maetthew> apeiros_, yeah my thought exactly :P
kirun has quit [Ping timeout: 265 seconds]
cheez0r has joined #ruby
dawkirst has quit [Quit: Leaving]
dawkirst_ has joined #ruby
dawkirst_ has quit [Client Quit]
dawkirst has joined #ruby
mikepack has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
<dawkirst> hoelzro, is there any way I can find out more about gems before I install them?
<hoelzro> dawkirst: perhaps visiting their page on rubygems.org?
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<dawkirst> ok thanks, no terminal command that fetches a description from rubygems.org?
ninp0 has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
yewton has quit [Max SendQ exceeded]
<hoelzro> not that I know of, but my Ruby-fu is actually quite weak
yewton has joined #ruby
<dawkirst> ok
slainer68 has quit [Remote host closed the connection]
bluenemo has joined #ruby
ninp0 has joined #ruby
jharris has joined #ruby
jrist-afk is now known as jrist
slainer68 has joined #ruby
brendan_ is now known as brendan`
niklasb has quit [Ping timeout: 252 seconds]
centipedefarmer has joined #ruby
<JonnieCache> dawkirst: theres `gem -r spec <gemname>` but that dumps the whole specfile
<JonnieCache> dawkirst: easiest probably to just go to rubygems.org
<dawkirst> thank JonnieCache. specfile?
<JonnieCache> the metadata file that defines the gem
<JonnieCache> try it and see
<dawkirst> ok, thanks
<dawkirst> will do
chussenot_ has joined #ruby
Adget1 has joined #ruby
elkclone has quit [Quit: It's never too late to unplug and run.]
elkclone has joined #ruby
jrunning has joined #ruby
jrist has quit [Ping timeout: 255 seconds]
chussenot has quit [Ping timeout: 245 seconds]
chussenot_ is now known as chussenot
yewton has quit [Max SendQ exceeded]
_nitti has joined #ruby
Adget has quit [Ping timeout: 245 seconds]
jrist has joined #ruby
yewton has joined #ruby
asobrasil has joined #ruby
kil0byte has joined #ruby
xpen has joined #ruby
devdazed has joined #ruby
_nitti has quit [Remote host closed the connection]
_nitti has joined #ruby
ttt has joined #ruby
staafl has quit [Quit: Leaving]
kil0byte_ has quit [Ping timeout: 264 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
<ner0x> Has anyone used geocoder with geonames service?
AndChat| has joined #ruby
<apeiros_> anyone surely has, but I think he left just 5min ago
king313 has joined #ruby
<dawkirst> JonnieCache, do people typically use ri?
Banistergalaxy has quit [Ping timeout: 245 seconds]
<iamjarvo> apeiros_: funny
ttt has quit [Ping timeout: 245 seconds]
<apeiros_> dawkirst: I do. And I'd advocate using it.
rtd has joined #ruby
<dawkirst> apeiros_, can I run ri from anywhere, or must it be in a dir with a ruby script in?
awarner has joined #ruby
<apeiros_> dawkirst: anywhere
sailias has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
<apeiros_> it's a normal shell utility
nga4 has joined #ruby
mpereira has joined #ruby
ananthakumaran has joined #ruby
<ner0x> apeiros_: Your humor. It amuses me.
cakehero has joined #ruby
<ner0x> apeiros_: Just curious as it doesn't seem to be one of the geocoding services built in, that's all. :)
<JonnieCache> dawkirst: i never use it but i probably should
<dawkirst> apeiros_, as an example, ri Hash responds with a "Nothing known about Hash". Should I update it somehow?
ixti has quit [Read error: Connection reset by peer]
<JonnieCache> i think you have to install the docs somehow
Tombar has quit [Remote host closed the connection]
binarypl1 has quit [Quit: WeeChat 0.3.9.2]
<dawkirst> JonnieCache, ok
<JonnieCache> someone here must know
Tombar has joined #ruby
ixti has joined #ruby
koshii has quit [Ping timeout: 265 seconds]
Coolhand has quit [Ping timeout: 252 seconds]
<dawkirst> JonnieCache, does ri get its documentation from ruby-doc.org?
ixti has quit [Read error: Connection reset by peer]
<JonnieCache> no, its stored locally
heathd has joined #ruby
S2kx has joined #ruby
kevinykchan has joined #ruby
<JonnieCache> and generated when things are installed. however that document generating step is optional and presumably in your case it was disabled
<dawkirst> JonnieCache, ok, so I assume it's a local copy of the stuff at ruby-doc.org?
<dawkirst> JonnieCache, ok
<JonnieCache> it is common to disable it because it makes installing everything take significantly longer
braoru has joined #ruby
<workmad3> especially as you can generate it on demand (although I can never remember the command for that)
<dawkirst> yup, I can image
<dawkirst> *imagine
<JonnieCache> dawkirst: its generated from comments in the source code, and therefore yes it is ultimately the same content from rubydoc.org, rdoc.info and many other places
king313 has quit [Read error: Connection reset by peer]
Coolhand has joined #ruby
ixti has joined #ruby
<dawkirst> workmad3, I imagine that's somehow done through the rdoc command?
ExxKA has joined #ruby
leonardorb has joined #ruby
bluenemo has quit [Remote host closed the connection]
<JonnieCache> ri is different from rdoc somehow. then theres YARD as well. i never use any of it, i just look it all up in the browser
pcarrier has quit []
<JonnieCache> partially because it seems so complicated and fractured like this
S1kx has quit [Ping timeout: 265 seconds]
<banisterfiend> JonnieCache: youer' supposed to just use pry for, traitor
tk__ has quit [Quit: ばいばい]
<banisterfiend> jk
ixti has quit [Read error: Connection reset by peer]
jeffreybaird has joined #ruby
samphippen has joined #ruby
<workmad3> banisterfiend: does pry generate ri on demand if nothing is found? :)
<banisterfiend> workmad3: it doesnt need to generate, i package a database with the pry-doc gem
CreativeEmbassy has joined #ruby
<workmad3> heh
<banisterfiend> workmad3: and that's only for core
<banisterfiend> workmad3: for everything else, pry grabs the docs directly from teh source itself on demand
<JonnieCache> pry(main)> ri String
<JonnieCache> error: 'String' not found
<banisterfiend> JonnieCache: dont use ri
<JonnieCache> is that because I lack pry-doc?
<banisterfiend> JonnieCache: use show-doc
leonardorb has quit [Ping timeout: 245 seconds]
<banisterfiend> JonnieCache: ah, but yes for core docs you need pry-doc
freeayu has joined #ruby
<JonnieCache> hmm i have that
ixti has joined #ruby
mpereira has quit [Ping timeout: 260 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
<banisterfiend> hm let me check
<JonnieCache> it spits out the rdoc with <code>tags</code> in it and the like
awarner has quit [Remote host closed the connection]
<JonnieCache> ill stick to the browser :P
ixti has quit [Read error: Connection reset by peer]
<workmad3> banisterfiend: hmm, 'ri String' shows nicer output than 'show-doc String' for me :P
<banisterfiend> JonnieCache: really? can u gist it?
Nick|laptop has joined #ruby
koshii has joined #ruby
<dawkirst> JonnieCache, banisterfiend guess I'll stick to the browser as well for now
ixti has joined #ruby
Nick|laptop has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
slainer68 has quit [Remote host closed the connection]
reinaldob has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<JonnieCache> i guess if youre shipping your own doc files you should be able to strip that however you want
<banisterfiend> JonnieCache: ah, ok we forgot to render <code>, it's weird, cos ruby docs use a tonne of different tags and we support most of it: ``, <tt>, etc
carlyle has joined #ruby
slainer68 has joined #ruby
<JonnieCache> what do you do, replace them with control codes?
<banisterfiend> JonnieCache: Yeah, we do for most of the stuff, check out this:
<banisterfiend> JonnieCache: workmad3: ? Enumerable#sort_by
hamed_r has quit [Quit: Leaving]
<banisterfiend> JonnieCache: yes, in the case of tags that indicate code, we render it using CodeRay so we properly syntax highlight the code
crankycoder has quit [Quit: leaving]
<banisterfiend> for other tags we bold the text, and so on
odyssey4me has joined #ruby
crankycoder has joined #ruby
<JonnieCache> the other reason i dont ever use ri is because to type # on a mac keyboard is alt+3
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
<JonnieCache> and alt+3 is bound to various things im my terminal
<banisterfiend> JonnieCache: workmad3 in most cases it shoudl output correctly (in my experience), for some reason we just forgot to deal with <code>
stopbit has joined #ruby
cousine has quit [Remote host closed the connection]
malkomalko has quit [Remote host closed the connection]
<banisterfiend> JonnieCache: oh ok..but another advantage in getting used to using show-doc in pry, is that it'll work on arbitrary gems that you install, even if you have --no-ri --no-rdoc set during gem installation (which most people do)
<JonnieCache> yeah i should start using it
<banisterfiend> show-source works on them too
<workmad3> banisterfiend: it wasn't just that btw :) https://gist.github.com/4195446
<JonnieCache> first step is to rebind the fucking § key to send # instead, without just binding it to alt+3
dmerrick has joined #ruby
<JonnieCache> which is something i have so far failed to do, because i havent really tried very hard
katherinem13_bed is now known as katherinem13
nyuszika7h has joined #ruby
techhelp has joined #ruby
<banisterfiend> workmad3: IMO, that's way too much information, if i want to know the methods an object has, i just use: ls -M in pry, i dont want to be spammed with that info just when reading docs
Tombar has quit [Ping timeout: 260 seconds]
<workmad3> banisterfiend: yeah, but pry pages it ;)
<dawkirst> banisterfiend, what is pry?
<workmad3> banisterfiend: and the includes and the superclass before the description are quite nice IMO
vasile has joined #ruby
xpen has quit [Remote host closed the connection]
<banisterfiend> sure, but, for me anyway, i'm just not interested in the methods an object has when i want to read docs, but everyone is diffrent
<banisterfiend> dawkirst: http://pryrepl.org
codecaster has quit [Quit: Leaving.]
bwwrd has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend> workmad3: yeah, we should steal some of that layout, some of it is pretty nice
xpen has joined #ruby
<banisterfiend> someone needs to invest time in improving our doc stuff
nari has quit [Ping timeout: 245 seconds]
king313 has joined #ruby
pcarrier has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
Neomex has joined #ruby
Virunga has quit [Remote host closed the connection]
synthetix_ has joined #ruby
jackbrownhf has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
philcrissman has joined #ruby
J-_-L has joined #ruby
jackbrownhf has joined #ruby
byennen has quit [Remote host closed the connection]
Tombar has joined #ruby
xpen_ has joined #ruby
vlad_starkov has joined #ruby
TechZombie has joined #ruby
rhys has joined #ruby
rhys has quit [Changing host]
rhys has joined #ruby
xyzodiac has joined #ruby
xyzodiac has quit [Max SendQ exceeded]
pcarrier has quit [Ping timeout: 244 seconds]
kil0byte_ has joined #ruby
xyzodiac has joined #ruby
jamiei has joined #ruby
xpen has quit [Ping timeout: 245 seconds]
_alejandro has quit [Remote host closed the connection]
pcarrier has joined #ruby
jonahR has joined #ruby
<aces1up> is there a max number of objects that can be created?
kil0byte has quit [Ping timeout: 250 seconds]
shiin has joined #ruby
<aces1up> seems my app just stops at around 92500 objects.
djdb has quit [Remote host closed the connection]
niklasb has joined #ruby
synthetix_ has quit [Remote host closed the connection]
undersc0re97 has quit [Quit: Leaving]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<JonnieCache> lol
Uranio has joined #ruby
frem has joined #ruby
Elhu has quit [Ping timeout: 265 seconds]
<workmad3> aces1up: theoretically, no
<workmad3> aces1up: practically, yes
nomenkun has quit [Remote host closed the connection]
<workmad3> aces1up: it depends on how much memory your system has available and how big the objects are
nomenkun has joined #ruby
<workmad3> aces1up: and whether you're keeping hold of the objects to prevent them from being garbage collected
<marr> aces1up: what is the type of those objects ?
Sigma00 has quit [Quit: ZNC - http://znc.in]
busybox42 has joined #ruby
chaosis has joined #ruby
Elhu has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
<apeiros_> dawkirst: fixed your "Nothing known"?
schaary has quit [Quit: Leaving.]
<apeiros_> (doc issue)
<apeiros_> workmad3: also whether you're on 64bit or 32bit ruby
<dawkirst> apeiros_, no
bbttxu has joined #ruby
<apeiros_> the 32bit ruby's limits can probably be reached (though I think you'll run out of memory first)
<apeiros_> dawkirst: did you install ruby via rvm?
<dawkirst> apeiros_, no, apt-get (I've heard that that was a bad idea)
_nitti has quit [Remote host closed the connection]
<apeiros_> yupp
<apeiros_> if via apt-get, you have to install the docs via apt-get too
<dawkirst> should I re-install
<dawkirst> ?
<apeiros_> I would. apt's ruby tends to lag behind, has a broken rubygems etc.
<dawkirst> ok, thanks apeiros_
Takehiro has joined #ruby
<apeiros_> with rvm, you can leave the apt ruby installed
vlad_starkov has quit [Remote host closed the connection]
danielpunt has joined #ruby
danielpunt has quit [Remote host closed the connection]
cousine has joined #ruby
freeayu has quit [Ping timeout: 265 seconds]
pcarrier has quit []
kirun__ has joined #ruby
freeayu has joined #ruby
<apeiros_> dawkirst: if you install ruby via rvm, run `rvm docs generate` after the installation.
<apeiros_> note that rvm will keep the docs per ruby. so if you install a new ruby version, you must regenerate the docs for it.
vlad_starkov has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
rmillerx has joined #ruby
SPYGAME has joined #ruby
rmillerx has quit [Client Quit]
<dawkirst> apeiros_, ok noted
<dawkirst> apeiros_, stupid question: how can I see what packages are installed in apt?
schaary has joined #ruby
phantasm66 has joined #ruby
<apeiros_> dawkirst: #ubuntu or #debian, I have no idea
sirecote is now known as sirecote
<apeiros_> or `man apt`
mneorr has quit [Ping timeout: 252 seconds]
kirun_ has quit [Ping timeout: 260 seconds]
machty has joined #ruby
<dawkirst> apeiros_, ok, thanks
mahmoudimus has joined #ruby
rhys has quit [Remote host closed the connection]
GitNick has joined #ruby
GitNick has quit [Client Quit]
<dawkirst> apeiros_, ruby comes with rvm, right? Does rubygems?
adac has joined #ruby
rhys has joined #ruby
rhys has joined #ruby
rhys has quit [Changing host]
<adac> is it possible to load my ruby project into an irb console?
freeayu has quit [Ping timeout: 260 seconds]
babykosh has joined #ruby
igro has quit [Ping timeout: 245 seconds]
babykosh has quit [Client Quit]
eldariof has quit [Ping timeout: 255 seconds]
babykosh has joined #ruby
<apeiros_> dawkirst: no
twopoint718 has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
Takehiro has quit [Remote host closed the connection]
<apeiros_> rvm is a project outside of ruby
<apeiros_> which helps with installing and managing your rubies
pcarrier has joined #ruby
<dawkirst> apeiros_, ok. So rubygems I can still install through apt-get then?
freeayu has joined #ruby
<JonnieCache> adac: irb -r your_project.rb
<apeiros_> dawkirst: no
macabre has joined #ruby
<apeiros_> rubygems comes with ruby as of 1.9
<JonnieCache> adac: or just start irb and then `require 'your_project'`
<apeiros_> and for 1.8, I think rvm by default installs it too
kirun__ has quit [Quit: Client exiting]
<adac> JonnieCache, thank you!
<dawkirst> apeiros_, I don't think so for 1.8
igro has joined #ruby
<apeiros_> dawkirst: are you using 1.8?
<dawkirst> I installed rvm and it gave me 1.8
techhelp has quit [Quit: This computer has gone to sleep]
zommi has quit [Quit: Leaving.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
pu22l3r has joined #ruby
mybrainis404 has joined #ruby
<dawkirst> apeiros_, guess I just don't understand rvm completely yet
pcarrier has quit [Ping timeout: 265 seconds]
<apeiros_> installing rvm doesn't give you a ruby :)
<apeiros_> installing rvm gives you rvm.
carloslopes has quit [Remote host closed the connection]
<apeiros_> and then you do `rvm install RUBY`
mneorr has joined #ruby
<dawkirst> apeiros_, ok wait, let me try and start over then
pcarrier has joined #ruby
king313 has quit [Quit: Saliendo]
yshh has quit [Remote host closed the connection]
Takehiro has joined #ruby
Sigma00 has joined #ruby
SCommette has joined #ruby
Takehiro has quit [Remote host closed the connection]
Adget has joined #ruby
<apeiros_> dawkirst: rvm is short for "ruby version manager"
<apeiros_> and I'd probably not install it via apt either ;-)
tomsthumb1 has quit [Quit: Leaving.]
<apeiros_> see http://rvm.io
<dawkirst> apeiros_, thanks
nomenkun has quit [Remote host closed the connection]
_alejandro has joined #ruby
Sigma00 has quit [Client Quit]
Direktor has joined #ruby
kil0byte has joined #ruby
<dawkirst> apeiros_, I think what confused me is that I tried to remove ruby with apt but it seems as if it wasn't removed
Direktor has quit [Read error: Connection reset by peer]
Spaceboy has joined #ruby
<apeiros_> dawkirst: just leave apt's ruby
Sigma00 has joined #ruby
<dawkirst> ok
yacks has quit [Ping timeout: 260 seconds]
tonini has quit [Remote host closed the connection]
Adget1 has quit [Ping timeout: 245 seconds]
<dawkirst> apeiros_, so when you say you won't install rvm through apt, how would you install it then?
kil0byte_ has quit [Ping timeout: 250 seconds]
tagrudev has quit [Quit: :||:"!@]
rippa has joined #ruby
<dawkirst> apeiros_, nm, read something on the site
Takehiro has joined #ruby
arya has joined #ruby
levabalkin has joined #ruby
levabalkin has quit [Client Quit]
k610 has quit [Ping timeout: 255 seconds]
levabalkin has joined #ruby
levabalkin has left #ruby [#ruby]
malkomalko has joined #ruby
freeayu has quit [Ping timeout: 265 seconds]
beardyjay has joined #ruby
ToTo has quit [Ping timeout: 244 seconds]
SPYGAME has quit [Ping timeout: 248 seconds]
mpereira has joined #ruby
Virunga has joined #ruby
leonardorb has joined #ruby
radic has quit [Excess Flood]
radic has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
skaczor has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Takehiro has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
Jefus has joined #ruby
Takehiro has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
BigO has joined #ruby
Slivka has joined #ruby
lenovodroid has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
Slivka has quit [Read error: Connection reset by peer]
jlogsdon has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
levabalkin has joined #ruby
philcrissman has joined #ruby
levabalkin has left #ruby [#ruby]
_nitti has joined #ruby
ly- has quit [Remote host closed the connection]
jgarvey has joined #ruby
cj3kim has joined #ruby
jenrzzz has joined #ruby
vjt has joined #ruby
levabalkin has joined #ruby
generalissimo has joined #ruby
ToTo has joined #ruby
pcarrier has quit []
daniel_- has joined #ruby
levabalkin has left #ruby [#ruby]
jlast has joined #ruby
<dawkirst> apeiros_, great success, thanks
levabalkin has joined #ruby
browndawg has left #ruby [#ruby]
lenovodroid has joined #ruby
Jefus has quit [Quit: leaving]
zigomir has quit [Quit: zigomir]
nascro has joined #ruby
SPYGAME has joined #ruby
icole has joined #ruby
mpereira has quit [Ping timeout: 255 seconds]
<apeiros_> dawkirst: great :)
techhelp has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
<dawkirst> apeiros_, I do have some sort of a consequent problem, and that is my ruby scripts don't pick up the required gems, something to do with the gem path (I'm *really* new to all this, so please bear with me)
beilabs has quit [Ping timeout: 244 seconds]
mmitchell has joined #ruby
beilabs has joined #ruby
icole has quit [Ping timeout: 265 seconds]
lejonet has joined #ruby
<lejonet> Are there any good libraries for bignum math? I'm getting Infinity from Math.sqrt 2**(2**13) + 1, which I doubt...
samphippen has joined #ruby
beardyjay has quit [Quit: WeeChat 0.4.0-dev]
<apeiros_> dawkirst: yeah, for rvm installed ruby, you should reinstall the gems
the_hack has joined #ruby
Bry8Star has quit [Remote host closed the connection]
<apeiros_> rvm separates its rubies completely from system ruby
marr has quit [Ping timeout: 256 seconds]
<apeiros_> #rvm is a very helpful and active channel btw. ;-)
jenrzzz has quit [Ping timeout: 265 seconds]
<the_hack> Hello, is there a way to ca
<dawkirst> apeiros_, I see, heading over there now :)
ToTo has quit [Quit: Leaving...]
<the_hack> Is there a way to look up a class from a string, for example, the exact reverse of variable.class.inspect ?
<banisterfiend> the_hack: yes
Neomex has quit [Quit: Neomex]
<banisterfiend> the_hack: eval(string), or...Object.const_get(string)
heathd has quit [Quit: heathd]
<the_hack> thanks bannisterfiend
banisterfiend has quit [Remote host closed the connection]
byennen has joined #ruby
jrajav has joined #ruby
<clocKwize> the_hack, or in rails "ClassName".constatize
<clocKwize> s/rails/ActiveSupport
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
blazes816 has joined #ruby
failshell has joined #ruby
<failshell> hello. i want to inherit Whois::Client in MyWhois and extend the query method. how would I go about that?
mpereira has joined #ruby
phantasm66 has quit [Quit: Textual IRC Client: www.textualapp.com]
<davidcelis> inherit from the Client class, redefine query and call `super` at some point if you want to use any of the original implementation
phantasm66 has joined #ruby
Takehiro has quit [Remote host closed the connection]
tomsthumb has joined #ruby
pcarrier has joined #ruby
danneu has joined #ruby
phantasm66 has quit [Client Quit]
<failshell> davidcelis: https://gist.github.com/4195982
<failshell> that's what I have
<failshell> can you elaborate please?
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
<the_hack> clocKwize: thanks to you as well
<failshell> im a bit confugsed
ninegrid has quit [Ping timeout: 265 seconds]
akemrir has quit [Quit: WeeChat 0.3.9.2]
ninegrid has joined #ruby
<davidcelis> failshell: you're already doing it?
<failshell> it doesnt work
<davidcelis> you're already inheriting from Whois::Client, and you're already redefining query
burgestrand has quit [Quit: Leaving.]
<davidcelis> failshell: you need to call `super`
<failshell> davidcelis: ok but where?
<failshell> i want to add to the original query method
maesbn has quit [Remote host closed the connection]
<davidcelis> it should be obvious where after you read that
pcarrier has quit [Ping timeout: 244 seconds]
philcrissman has quit [Remote host closed the connection]
pcarrier has joined #ruby
<danneu> ruby 2.0.0-preview2 is slower than preview1 in every benchmark in my benchmark folder. often slower than mri, too. preview1 always faster than mri
replore_ has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
jekotia has joined #ruby
mikecmpbll has joined #ruby
<davidcelis> thats a feature
niklasb has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
lolmaus has quit []
a_a_g1 has joined #ruby
adac has quit [Quit: Leaving]
alanp has quit [Ping timeout: 264 seconds]
failshell has quit [Quit: Lost terminal]
flip_digits has joined #ruby
phantasm66 has quit [Quit: *poof*]
dzhulk has joined #ruby
the_hack has quit [Quit: Computer has gone to sleep.]
Cicloid has joined #ruby
<danneu> im moving to duby
<danneu> er mirah
alanp has joined #ruby
joeycarmello has quit [Remote host closed the connection]
haxrbyte has joined #ruby
joeycarmello has joined #ruby
<ner0x> If I had a string. How can I replace the first and last " of the message?
<ner0x> I could replace it with '' huh.
daniel_- has quit [Ping timeout: 265 seconds]
carloslopes has joined #ruby
nascro has quit []
ckrailo has joined #ruby
mneorr has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
<danneu> ner0x: huh
<danneu> ner0x: sure you don't just want one of the methods here http://www.ruby-doc.org/core-1.9.3/String.html
browndawg has joined #ruby
<ner0x> I do.
<danneu> like gsub
<ner0x> Just trying to decide which one.
jrajav has quit [Quit: I tend to be neutral about apples]
<ner0x> gsub will work for the middle, .gsub( /$"/, '' ) didn't work though.
cheier has joined #ruby
ryanlecompte has joined #ruby
xpen_ has quit [Remote host closed the connection]
<danneu> ner0x: what's the msg look like
haxrbyte has quit [Ping timeout: 260 seconds]
<danneu> ner0x: %{"hello"}.gsub(/"/, '') ?
lenovodroid has quit [Ping timeout: 256 seconds]
the_hack has joined #ruby
the_hack has quit [Remote host closed the connection]
mneorr has joined #ruby
<ner0x> danneu: It's CSV but I'm removing the first " the last " and any "," in between. The middle I have, the first I have as well, it's the last one I'm having trouble with.
mneorr has quit [Remote host closed the connection]
<shevy> ner0x, you could reverse the string, find the position via .index, then deduct that number from string.size to find the top right element... or perhaps... .rindex
bradhe has quit [Remote host closed the connection]
banisterfiend has joined #ruby
* ner0x looks up the docs.
<danneu> or remove a '"' suffix if String#end_with?(suffix) exists?
geekbri has joined #ruby
freeayu has joined #ruby
<davidcelis> /$(").*(")^/
yshh has joined #ruby
<davidcelis> if you want to do it on each line of the CSV
kirun has joined #ruby
hoelzro is now known as hoelzro|away
<danneu> isnt $ and ^ swapped
<davidcelis> yes
<davidcelis> my bad
geekbri has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
flagg0204 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Slivka has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
yshh has quit [Ping timeout: 252 seconds]
ameech has joined #ruby
<ameech> Hello
flagg0204 has quit [Client Quit]
flagg0204 has joined #ruby
Xeago_ has joined #ruby
weasels has joined #ruby
<davidcelis> Hi
LBRapid has joined #ruby
<ameech> Does anyone have any experience with daemonizing Guard?
workmad3 has joined #ruby
freeayu_ has joined #ruby
ananthakumaran1 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
aganov has quit [Remote host closed the connection]
ehc_ has joined #ruby
cakehero_ has joined #ruby
weasels has quit [Ping timeout: 264 seconds]
danneu1 has joined #ruby
cheier has quit [Quit: cheier]
carlyle has quit [Ping timeout: 245 seconds]
arabi has joined #ruby
vertog has joined #ruby
vertog is now known as verto
BadLarry_ has joined #ruby
mneorr has joined #ruby
verto is now known as Guest97488
samphippen has quit [Quit: Computer has gone to sleep.]
freeayu has quit [*.net *.split]
danneu has quit [*.net *.split]
flip_digits has quit [*.net *.split]
beilabs has quit [*.net *.split]
otters has quit [*.net *.split]
capaterra has quit [*.net *.split]
Hanmac has quit [*.net *.split]
Xeago has quit [*.net *.split]
sonne_ has quit [*.net *.split]
BadLarry has quit [*.net *.split]
alup has quit [*.net *.split]
aquaranto has quit [*.net *.split]
theoros has quit [*.net *.split]
cakehero has quit [*.net *.split]
verto|off has quit [*.net *.split]
iamjarvo has quit [*.net *.split]
ananthakumaran has quit [*.net *.split]
ehc has quit [*.net *.split]
BadLarry_ is now known as BadLarry
davidcelis has quit [Quit: K-Lined.]
aquarant_ has joined #ruby
sonne has joined #ruby
theoros has joined #ruby
browndawg has left #ruby [#ruby]
iamjarvo has joined #ruby
obryan has joined #ruby
cody-- has joined #ruby
Jamone has joined #ruby
_dnyy has joined #ruby
twopoint818 has joined #ruby
<cody--> is there anything wrong with this? https://gist.github.com/08b1e73b0c3f844e8a44 I'm getting NoMethodError (undefined method `import' for #<Class:0x00000103e1f3a8>):
<arabi> helloo.... i am new to ruby... i was working on a program to find sum of prime numbers below 2million .. it takes too long to complete ...any help on the code http://pastie.org/5474669
Nykolla_ has joined #ruby
icole has joined #ruby
<danneu1> cody--: we can't see Video class. is there indeed a class method 'import'?
ameech has left #ruby [#ruby]
lenovodroid has joined #ruby
<tommylommykins> hmmm
centipedefarmer has quit [Remote host closed the connection]
mosheee has joined #ruby
mosheee has quit [Changing host]
mosheee has joined #ruby
twopoint718 has quit [Write error: Connection reset by peer]
Monie has quit [Write error: Connection reset by peer]
dnyy has quit [Write error: Connection reset by peer]
moshee has quit [Read error: Connection reset by peer]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
beiter has joined #ruby
larissa has quit [Quit: Leaving]
<arabi> helloo.... i am new to ruby... i was working on a program to find sum of prime numbers below 2million .. it takes too long to complete ...any help on the code http://pastie.org/5474669
<danneu1> arabi: trial division for primes is slow
awarner has joined #ruby
Vert has quit [Quit: No Ping reply in 180 seconds.]
Vert has joined #ruby
<cody--> any thoughts danneu1?
<danneu1> arabi: although using a sieve or Ruby's Prime class might defeat the challenge of waht sounds like a euler problem
mguy has quit [Read error: Connection reset by peer]
<arabi> what else algorithm I can use
<arabi> yes it is a euler problem
elkclone has quit [Quit: It's never too late to unplug and run.]
mguy has joined #ruby
Nykolla has quit [Ping timeout: 250 seconds]
carlyle has joined #ruby
<danneu1> cody--: that link doesnt even load for me. did you 'require' it in the file
beilabs has joined #ruby
icole has quit [Ping timeout: 250 seconds]
<cody--> It's a method active record has
alup has joined #ruby
<danneu1> oh, the link didn't load and i assumed you were using the mass import gem
capaterra has joined #ruby
dr_bob has quit [Quit: Leaving.]
phantasm66 has quit [Client Quit]
<danneu1> arabi: just look up prime number algorithm and implement it in ruby. check out sieve of erato
byennen has quit [Remote host closed the connection]
Hanmac has joined #ruby
<danneu1> iirc ruby does implement the erato sieve (and others?) in stdlib, but i see there's pretty bad documentation
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
froy has joined #ruby
nat2610 has joined #ruby
<tommylommykins> lol
<danneu1> arabi: but staying with your algorithm, i didnt really inspect it but you should cache the primes you find.
* tommylommykins was about to ask 'why is so hard to zip the natural numbers with the elements of an array?'
<tommylommykins> but then I remembered each_with_index :s
phantasm66 has quit [Client Quit]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
<arabi> danneu1 i have tried it with smaller ranges say 10, 100, 1000 ... it works fine
<danneu1> arabi: yeah but 2M is alrger than 1000
<JonnieCache> tommylommykins: i think you can even just do array.each |element, index|
<JonnieCache> tommylommykins: each_with_index is just for clarity. maybe im wrong though
<danneu1> especially when you're doing 2M iterations, each iteration iterating (2..2_000_000-iteration_number)
tommyvyo has quit [Quit: Computer has gone to sleep.]
LouisGB has quit [Ping timeout: 264 seconds]
<JonnieCache> >> ("a".."e").each {|e,i| puts e; puts i}
<eval-in> JonnieCache: Output: "a\n\nb\n\nc\n\nd\n\ne\n\n" (http://eval.in/4241)
vasile has quit [Ping timeout: 260 seconds]
<JonnieCache> nope
samphippen has joined #ruby
<JonnieCache> must be an optimization thing
banisterfiend has quit [Read error: Connection reset by peer]
timonv has joined #ruby
mosheee has quit [Ping timeout: 264 seconds]
Xeago_ is now known as Xeago
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
rakl has joined #ruby
igro has quit [Ping timeout: 260 seconds]
<tommylommykins> oh
<tommylommykins> JonnieCache: it doesn't work for me... %W{a b c d e f}.each {|a, b| puts b.inspect}
chaosis has quit [Ping timeout: 260 seconds]
<tommylommykins> #=> all the Nils
<tommylommykins> ohwait, you got there first
tvw has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
<arabi> %w[a b c d e f] << you may meant this tommylommykins
_nitti has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
cody-- has left #ruby [#ruby]
flagg0204 has quit [Quit: leaving]
<foucist> arabi: exact same result.. both produce an array
joeycarmello has joined #ruby
<foucist> which means .each {|a,b| don't work
<JonnieCache> there is a difference between %w and %W though isnt there?
tbrock has joined #ruby
* JonnieCache reaches for TRPL
<danneu1> JonnieCache: i found you can google that with 'ruby percent w'
Takehiro has joined #ruby
<danneu1> %W is ", %w is '
bradhe has joined #ruby
<JonnieCache> fuck google i have a book made of trees
tbrock has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
nateberkopec has joined #ruby
chussenot has quit [Quit: chussenot]
xsbeats_ is now known as xsbeats
Uranio has quit [Remote host closed the connection]
heathd has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]
lenovodroid has joined #ruby
niklasb has joined #ruby
heftig has joined #ruby
paolooo has quit [Quit: Page closed]
<arabi> but how can it be true... .each passes single argument to the block and there is two arguments a and b ... then b will be nil tommylommykins
heathd has quit [Client Quit]
moos3 has joined #ruby
skattyadz has joined #ruby
dawkirst2 has joined #ruby
<slainer68> https://bugs.ruby-lang.org/issues/4085#note-227 > no Refinements in Ruby 2.0. è_______é
<slainer68> :'(((((
<JonnieCache> arabi: it isnt true
chaosis has joined #ruby
flagg0204 has joined #ruby
gridaphobe has joined #ruby
<JonnieCache> thats what we rapidly discovered
flagg0204 has quit [Client Quit]
marr has joined #ruby
chussenot has joined #ruby
<dawkirst> JonnieCache, since you're still here, I'll ask you: if I found a gem on github, how do I include it? Do I download it and build it?
<arabi> %W{a b c d e f}.each {|a, b| puts b.inspect} when i type this i am getting all nill
<arabi> %W{a b c d e f}.each {|a, b| puts a.inspect} but it works fine
morf has quit [Quit: eof]
<arabi> that's what i meant
osvico has quit [Ping timeout: 256 seconds]
atmosx_ is now known as atmosx
cdt_ has quit [Ping timeout: 246 seconds]
<foucist> that's becuase the %W{} is giving you ["a", "b", "c", "d", "e", "f"]
codecaster has joined #ruby
<Xeago> there is no second argument to be passed to the block
sn0wb1rd has quit [Quit: sn0wb1rd]
atmosx has quit [Quit: WeeChat 0.4.0-dev]
flagg0204 has joined #ruby
slainer68 has quit [Remote host closed the connection]
<arabi> yes that is JonnieCache what you meant actually?
Xeago has quit [Remote host closed the connection]
codecaster has quit [Client Quit]
byennen has joined #ruby
<JonnieCache> yeah because theres no second argument
byennen has quit [Read error: Connection reset by peer]
<JonnieCache> i thought there was but there isnt. sorry for confusing everyone
<JonnieCache> dawkirst: no, its all automatic
<a_a_g1> arabi: ruby does not check the number of arguments passed to procs/lambdas. If you pass less, extra local args are set to nil. If you pass more, they are ignored
byennen has joined #ruby
<JonnieCache> dawkirst: you can install a gem with `gem install <gemname>` on the command line
a_a_g1 is now known as a_a_g
<JonnieCache> dawkirst: but in practise gem management is typically done through bundler
<arabi> JonnieCache ok....
<JonnieCache> dawkirst: http://gembundler.com
<dawkirst> JonnieCache, I've tried that, but there's a huge amount of dependencies that I'm struggling to understand
cousine has quit [Remote host closed the connection]
<JonnieCache> dependencies for bundler?
BoomCow has joined #ruby
<dawkirst> JonnieCache, ok I'll check that out. I've just installed rmv though, will it interfere with bundler?
<JonnieCache> nope
segora has quit [Quit: segora]
<dawkirst> JonnieCache, no dependencies for a particular gem I was trying to install through gem install <gemname>
<arabi> I am working on prime numbers right now....s that a problem of ruby r my algorithm?
<JonnieCache> it should install gem dependencies automatically
pu22l3r has quit [Remote host closed the connection]
SPYGAME has quit [Ping timeout: 250 seconds]
<dawkirst> JonnieCache, gem is meme_captain
huoxito has joined #ruby
<dawkirst> I'm having trouble installing it
Sigma00 has quit [Quit: ZNC - http://znc.in]
schaary has left #ruby [#ruby]
<a_a_g> dawkirst: where are you installing from?
lenovodroid has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<dawkirst> a_a_g, no idea, I just try to run gem install meme_captain...how can I check / specify?
<a_a_g> in that case, its probably from rubygems
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Sigma00 has joined #ruby
<dawkirst> a_a_g, yup. Can I install from another repository?
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
luckyruby has joined #ruby
geekbri has quit [Remote host closed the connection]
mark_locklear has quit [Read error: Connection reset by peer]
<a_a_g> whats the output of 'gem sources'?
<a_a_g> you can add more sources
<dawkirst> rubygems.org
<a_a_g> which gem do you want to install?
<moos3> what the best way to find memory leaks in ruby 1.9.x
<dawkirst> a_a_g, so is it possible to add a git repo as a source?
bluenemo has quit [Remote host closed the connection]
segora has joined #ruby
<a_a_g> no, you cant add a git repo, you can only add a gem server
<a_a_g> are you using bundler?
banister_ has joined #ruby
<luckyruby> is there a way to configure ActionMailer to use a different logfile to log emails sent?
alx- has joined #ruby
<luckyruby> oops, sorry wrong channel
jharris has quit [Quit: WeeChat 0.3.8]
dmiller has joined #ruby
<dawkirst> a_a_g, no, I need to wrap my head around bundler first (I've only just installed rvm). Can you recommend a good screencast or article for that?
<a_a_g> hm, not really. basic bundler usage is very simple
<dawkirst> Would bundler sort those dependencies for me?
adeponte has joined #ruby
<a_a_g> in your project directory, you create a file called Gemfile
<dawkirst> Or what I'm trying to understand: how would bundler help me where a normal gem install <gem> won't?
<dawkirst> a_a_g, ok
geggam has joined #ruby
flagg0204 has quit [Quit: leaving]
flagg0204 has joined #ruby
<dawkirst> a_a_g, I'll check out the site and come back here if I don't come right - reason I asked previous question is just for my own understanding
arya has quit []
<a_a_g> you can also install using gem only
<dawkirst> a_a_g, thanks for that, really appreciate it
<a_a_g> clone the git repository, cd into it. run gem build xyz.gemspec. you will get a .gem file. you install that with gem install >gemfile?
<a_a_g> gem install <gemfile>
<a_a_g> bundler does all that for you
<dawkirst> a_a_g, aha, ok, I think I understand then.
<dawkirst> Thanks or that Gemfile
<dawkirst> Why include mongoid and sinatra though?
<a_a_g> that was just a sample :)
SPYGAME has joined #ruby
<dawkirst> a_a_g, oh :P
<a_a_g> i picked it from my project and slapped on the :git line as an example
jackbrownhf has quit [Quit: Sto andando via]
J-_-L has quit [Ping timeout: 264 seconds]
<dawkirst> a_a_g, so bundler goes, clone the git repo, build the gem using the gemspec, and install it?
xyzodiac has joined #ruby
<a_a_g> i guess so. i havent checked the code. but I see no other way
robustus has joined #ruby
<shevy> spanking time! who's in for it!
<dawkirst> a_a_g, awesome, thanks. Anyway, I'm out for now. Thanks for the help.
davidcelis has joined #ruby
tyfighter has joined #ruby
machty has quit [Quit: machty]
<a_a_g> its probably a but late for this, but any opinions on the proposed changes in ruby 2.0?
codecaster has joined #ruby
yacks has joined #ruby
sn0wb1rd has joined #ruby
<danneu1> a_a_g: i'm with the jruby implementer on refinements: http://blog.headius.com/2012/11/refining-ruby.html
areil has quit [Remote host closed the connection]
barraponto has joined #ruby
<barraponto> is there a channel for middleman?
<a_a_g> i dont get what probem in particular it solves
<danneu1> barraponto: i google 'irc channel middleman'
carlyle_ has joined #ruby
Guest97488 is now known as verto
chussenot has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Vainoharhainen has joined #ruby
chussenot has joined #ruby
<barraponto> danneu1: swiftirc?
alvaro_o has joined #ruby
Elico has quit [Remote host closed the connection]
<danneu1> dunno mate, just a google query
byennen has quit [Remote host closed the connection]
carlyle has quit [Ping timeout: 245 seconds]
alx- has quit [Quit: alx-]
<barraponto> oh if it was obvious from a google query i wouldn't have asked.
barraponto has left #ruby [#ruby]
<danneu1> attitude
BigO has quit [Remote host closed the connection]
Elico has joined #ruby
eldariof has joined #ruby
dobbymoo` has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
dobbymoodge has quit [Ping timeout: 246 seconds]
Adget1 has joined #ruby
BigO has joined #ruby
slash_nick has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
Squarepy has joined #ruby
Adget has quit [Ping timeout: 256 seconds]
Squarepy has quit [Changing host]
Squarepy has joined #ruby
<lectrick> FizzBuzz in Ruby, done via functional style, without any conditionals whatsoever (yes, that last part was hard) :) https://gist.github.com/4196452
<ner0x> In order to fix broken csv, what would be the easier way to extract "Name "The Don" Lastname" out of it?
<ner0x> Notice the broken CSV with his nickname.
Elico has quit [Remote host closed the connection]
Elico has joined #ruby
moted has joined #ruby
SPYGAME has quit [Read error: Connection reset by peer]
Vainoharhainen has quit [Quit: Leaving...]
arietis has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
nat2610 has left #ruby [#ruby]
<waxjar> i don't understand your question ner0x
piotr_ has joined #ruby
vasile has joined #ruby
piotr has quit [Ping timeout: 245 seconds]
<ner0x> The program I'm forced to use exports broken CSV. As in "Name "nickname" Last" as a single column, which CSV considered broken.
codecaster has joined #ruby
BigO_ has joined #ruby
rismoney has quit []
sepp2k has joined #ruby
tobinharris has quit [Quit: tobinharris]
tommyvyo_ has joined #ruby
skattyadz has quit [Quit: skattyadz]
BigO has quit [Ping timeout: 256 seconds]
arabi has quit [Quit: Leaving]
iamjarvo has quit [Quit: Leaving.]
<waxjar> ah, i see. you could clean the cdv file perhaps by gsub'ing all "s, except the ones at the beginning and end of a column
makwanza has joined #ruby
makwanza has quit [Client Quit]
dv_ has quit [Read error: Connection reset by peer]
banister_ is now known as banisterfiend
evangelosavgerin has joined #ruby
<theRoUS> ruby 1.8.7. is there any way to tell 'bundle install --path=vendor' to *only* bundle gems that aren't available from the system libraries?
<evangelosavgerin> hello guyz, My team and I are builing a startup that aims to make developers life easier. At this moment we are doing our customer development and we would like some of your time for a brief interview (5 - 10 minutes). If you are interested in please contact us at hi@geembo.com
<evangelosavgerin> hello guyz, My team and I are builing a startup that aims to make developers life easier. At this moment we are doing our customer development and we would like some of your time for a brief interview (5 - 10 minutes). If you are interested in please contact us at hi@geembo.com
<Hanmac> ner0x are the cells splited with "," ?
<evangelosavgerin> hello guyz, My team and I are builing a startup that aims to make developers life easier. At this moment we are doing our customer development and we would like some of your time for a brief interview (5 - 10 minutes). If you are interested in please contact us at hi@geembo.com
evangelosavgerin has quit [Killed (idoru (Spam is off topic on freenode.))]
jdripper has quit [Quit: Leaving.]
<banisterfiend> what a piece of shit
<theRoUS> i only want to bundle the gems that are 'non-standard' for our environment, not *all* of them
<davidcelis> banisterfiend: ikr
tenmilestereo has joined #ruby
philcrissman has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<davidcelis> looks like he's trying to rebuild coderwall
<davidcelis> glwt
vlad_starkov has joined #ruby
dv_ has joined #ruby
cheier has joined #ruby
mrsolo has joined #ruby
kil0byte has quit [Remote host closed the connection]
SPYGAME has joined #ruby
<waxjar> ner0x, something like column[1..-1].gsub('"', '""') ? (i believe "s are escaped with "" in CSV files, not sure though)
xyzodiac has joined #ruby
tvw has joined #ruby
<banisterfiend> davidcelis: coderwall is pretty much a waste of time as it is IMO
<davidcelis> yep
<davidcelis> unnecessary resume wrapper around github when github serves as a resume already
voodoofish430 has joined #ruby
odyssey4me has quit []
straind has quit []
cascalheira has quit [Quit: Leaving...]
<babykosh> quick easy one……How to return the hash 'name' with the maximum 'value'…..all values have a number from 1-20….I want the hash 'name' with 'value' = 20?
<banisterfiend> babykosh: your two questions are contradictory
jharris has joined #ruby
tvw has quit [Remote host closed the connection]
<banisterfiend> babykosh: hash.max_by { |k,v| v }
dmiller has quit [Remote host closed the connection]
<danneu1> what came to my mind was hash.invert[h.values.max]
<danneu1> er, replace h with hash
<eka> babykosh: hash.max
Takehiro has quit [Remote host closed the connection]
<babykosh> kosh_hash = {a => 20, b=>10, c=>5, d=>1}…..want 'a'
<danneu1> and then there's the stdlib
<babykosh> ahhhhh hash.max got it
arya_ has joined #ruby
<danneu1> go figure
chussenot has quit [Ping timeout: 245 seconds]
<banisterfiend> babykosh: no, hash.max wont work
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend> babykosh: u need: hash.max_by { |k, v| v }
<eka> mmmm nope
<danneu1> {a: 2, c: 24, d: 3}.max #=> [:d, 3]
<eka> babykosh: that takes the max key... sorry
freakazoid0223 has quit [Quit: Leaving]
tobinharris has joined #ruby
<babykosh> hash.max_by {|k,v| v}
<banisterfiend> babykosh: even better, this: hash.max_by(&:last)
samphippen has quit [Quit: Computer has gone to sleep.]
SPYGAME has quit [Ping timeout: 244 seconds]
bradhe has quit [Remote host closed the connection]
joeycarmello has quit [Remote host closed the connection]
ananthakumaran1 has quit [Quit: Leaving.]
<babykosh> Thank you all
krawchyk has joined #ruby
roadt_ has quit [Ping timeout: 265 seconds]
banisterfiend has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
c0rn has joined #ruby
<babykosh> ah one more…..so if I say kosh_hash.max_by{|k,v|v}…..I get back a single array as so…[b, 20]…how do I rewrite kosh_hash.max_by{|k,v|v}….so I get back….b?
mascool has joined #ruby
<Hanmac> kosh_hash.max_by{|k,v|v}[0]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
alexim has joined #ruby
toto_ has joined #ruby
dv_ has quit [Ping timeout: 252 seconds]
ephemerian has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
xyzodiac has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
dv_ has joined #ruby
geekbri has joined #ruby
mengu has joined #ruby
bradhe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
uris has quit [Ping timeout: 245 seconds]
kil0byte has joined #ruby
PhilK has joined #ruby
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
dioms has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
codecaster has quit [Quit: Leaving.]
toto_ has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
ToTo has joined #ruby
Guest50800 is now known as ged
tbrock has joined #ruby
aquarant_ is now known as aquaranto
cascalheira has joined #ruby
joeycarmello has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
pcarrier has quit []
arturas_ has quit [Remote host closed the connection]
tobinharris has quit [Quit: tobinharris]
workmad3 has quit [Ping timeout: 250 seconds]
fred909 has joined #ruby
philcrissman has quit [Remote host closed the connection]
arya_ has quit []
dobbymoo` has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
ChampS666 has joined #ruby
dobbymoo` has joined #ruby
Rydefalk has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
jrajav has joined #ruby
BrianJ has joined #ruby
Russell^^ has joined #ruby
jamesaxl has joined #ruby
rtd_ has joined #ruby
rtd has quit [Read error: Connection reset by peer]
reinaldob has quit [Remote host closed the connection]
uris has joined #ruby
g-ram has joined #ruby
icole has joined #ruby
philcrissman has joined #ruby
malkomalko has quit [Remote host closed the connection]
grzywacz has quit [Ping timeout: 256 seconds]
xybre has quit [Changing host]
xybre has joined #ruby
nkts has quit [Remote host closed the connection]
dpk is now known as [[]]
[[]] is now known as []
[] is now known as [[[[]]]
<xybre> So, I'm looking at 2D array solutions in Ruby. There's nested Arrays [[]], Matricies (Matrix class in standard lib), and Narray (gem).
icole has quit [Ping timeout: 244 seconds]
[[[[]]] is now known as kpd
kpd is now known as applebloom
applebloom is now known as dpk
dzhulk has joined #ruby
dangerousdave has joined #ruby
pu22l3r has quit [Remote host closed the connection]
jrist is now known as jrist-afk
emmanuelux has joined #ruby
chaosis has quit [Ping timeout: 260 seconds]
Squarepy has quit [Quit: Leaving]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ossareh has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
mahmoudimus has joined #ruby
Mon_Ouie has joined #ruby
cousine has joined #ruby
toto- has joined #ruby
twopoint818 is now known as twopoint718
Spaceboy has quit [Remote host closed the connection]
brianpWins has joined #ruby
Slivka has joined #ruby
atno has quit [Ping timeout: 255 seconds]
alee has quit [Remote host closed the connection]
craq has joined #ruby
ToTo has quit [Ping timeout: 244 seconds]
a_a_g has quit [Quit: Leaving.]
i_s has joined #ruby
<ner0x> Is there a way to convert columns of nil to '' ?
<ner0x> In a \t delimited CSV file.
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
dankest has joined #ruby
swarley| has joined #ruby
Spaceboy has joined #ruby
thomas_6475 has joined #ruby
<thomas_6475> hi
<thomas_6475> im using qr ruby and i have overwritten an event handler, mousePressEvent
icole has joined #ruby
<thomas_6475> now i want to handle that event and then pass it to the superclass(QGraphicsScene) for further handling
<waxjar> ner0x, you can iterate trough the rows or columns and replace nil with ''
<waxjar> how to do that depends a bit on the library you're using
Takehiro has joined #ruby
craq has left #ruby [#ruby]
rippa has quit [Ping timeout: 256 seconds]
alee has joined #ruby
mmitchel_ has joined #ruby
JStoker has quit [Excess Flood]
cableray has joined #ruby
<ner0x> waxjar: CSV core
xyzodiac has joined #ruby
<thomas_6475> i tey this: "self.class.superclass.instance_method(mousePressEvent).bind(self).call event" but i get this error : `mousePressEvent': wrong number of arguments (0 for 1) (ArgumentError)
swarley- has joined #ruby
bricker has joined #ruby
<waxjar> I suppose you could use CSV.read, and iterate over the arrays with #map or #map! (they're methods on Enumerable)
<thomas_6475> how do i pass a parameter when i use .call =
<thomas_6475> ?
<waxjar> ner0x: altered = CSV.read('file.csv).map { |row| row.map { |column| '' if column.nil? } } something like that?
slainer68 has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
swarley- has quit [Read error: Connection reset by peer]
<Hanmac> thomas_6475: "self.class.superclass.instance_method(:mousePressEvent).bind(self).call event"
Takehiro has quit [Ping timeout: 255 seconds]
swarley- has joined #ruby
gridaphobe has quit [Ping timeout: 265 seconds]
<thomas_6475> Hanmac: tried that already, gives me `instance_method': undefined method `mousePressEvent' for class `Qt::GraphicsScene' (NameError)
swarley| has quit [Ping timeout: 246 seconds]
jlogsdon has quit [Remote host closed the connection]
_nitti has joined #ruby
juarlex has joined #ruby
rezzack has joined #ruby
nat2610 has joined #ruby
workmad3 has joined #ruby
doritostains has quit [Quit: Leaving...]
wargasm has left #ruby [#ruby]
arya_ has joined #ruby
chaosis has joined #ruby
Elfix has quit [Read error: Connection reset by peer]
malkomalko has joined #ruby
centipedefarmer has joined #ruby
joshman_ has joined #ruby
Elfix has joined #ruby
|Monie| has joined #ruby
piotr_ has quit [Ping timeout: 245 seconds]
froy has quit [Quit: kablam!]
apeiros_ has joined #ruby
swarley- has quit [Ping timeout: 260 seconds]
malkomal_ has joined #ruby
Jamone has quit [Ping timeout: 255 seconds]
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
doritostains has joined #ruby
malkomal_ has left #ruby [#ruby]
schaerli has joined #ruby
froy has joined #ruby
froy has quit [Read error: Connection reset by peer]
froy has joined #ruby
shevy2 has joined #ruby
manizzle has quit [Ping timeout: 244 seconds]
headius has joined #ruby
JStoker has joined #ruby
arturaz has joined #ruby
shevy has quit [Read error: Operation timed out]
kirun_ has joined #ruby
_nitti has quit [Remote host closed the connection]
centipedefarmer has quit [Remote host closed the connection]
Jamone has joined #ruby
<thomas_6475> Hanmac: the method i want to call is not listed when i print self.class.superclass.methods
ebouchut has joined #ruby
kirun has quit [Ping timeout: 256 seconds]
lampe2 has joined #ruby
<Hanmac> you need .instance_methods
Monie has joined #ruby
|Monie| has quit [Ping timeout: 244 seconds]
<lectrick> anyone here a ruby FP meister?
<apeiros_> FP?
centipedefarmer has joined #ruby
<lectrick> apeiros_: ?
<apeiros_> functional programming?
<lectrick> yeah
Neomex has joined #ruby
_nitti has joined #ruby
* apeiros_ is only a generic ruby sensei, not an FP meister
ebouchut has quit [Client Quit]
<lectrick> apeiros_: I am trying to rewrite this higher order function as one that takes an arbitrary number of other functions as arguments instead of just 3, but I'm stumped due to having to pass along the last 'n' argument: append_func1_func2_func3 = lambda{|func1, func2, func3, n| func1.(n) << func2.(n) << func3.(n)}.curry
<Hanmac> "functional programming" in ruby is a lie because it is still ObjectOrientated because everything is an object :P
Jamone has quit [Ping timeout: 244 seconds]
<apeiros_> PFP
<lectrick> ok ok just believe the lie for a second then
<apeiros_> pretend-FP
<lectrick> FFP? fake FP
ebouchut has joined #ruby
carloslopes has quit [Remote host closed the connection]
<Beoran_> P is a lie too sine in reality ,there is only a cpu that does nothing but numeric calculations with registers and pushing data around fro one memory location to another
<Beoran_> nothing but side effects
<apeiros_> hi Beoran_ :)
<Beoran_> hi apeiros_
JohnBat26 has joined #ruby
pyr0commie has joined #ruby
Spaceboy has quit [Quit: Reconnecting]
straind has joined #ruby
<ner0x> What's the syntax for inline if?
doritostains has quit [Quit: Leaving...]
<ner0x> I'm used to var = x > 2 ? true : false
soyapi has joined #ruby
<blazes816> do_something() if foo_bar
<thomas_6475> can anyone help with qt-ryby? whats the ruby equivalent to qgraphicsitem_cast ?
<apeiros_> ner0x: that'll work in ruby too
<blazes816> that also works
<apeiros_> and that's called ternary
<ner0x> Great. :)
<apeiros_> you can also write: var = if cond then a else b end
<apeiros_> inline-if has a different meaning
adambeynon has joined #ruby
<apeiros_> it's without the else: puts "it is morning" if Time.now.between?(six, ten)
Spaceboy has joined #ruby
<ner0x> Ah as in post.delete if params.delete == true etc
baphled has joined #ruby
thomas__3242 has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<lectrick> apeiros_: so you don't know how to write the function I was looking for, eh
craq has joined #ruby
<apeiros_> lectrick: no. I could probably figure it out, but I don't know it just like that. and sc2 livestream is more interesting than this problem ;-p
thomas_6475 has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby
soyapi has quit [Quit: Ex-Chat]
workmad3 has quit [Ping timeout: 252 seconds]
nat2610 has left #ruby [#ruby]
bwwrd has joined #ruby
manizzle has joined #ruby
cakehero_ has quit [Quit: Computer has gone to sleep.]
<lectrick> apeiros_: understood. i'm no stranger to gaming, although i'm too slow for sc2 :/
swarley| has joined #ruby
<lectrick> I probably average 1 cps
davidcelis has joined #ruby
<apeiros_> cps?
* apeiros_ only knows apm
<apeiros_> I'm only silver-league too
dzhulk has quit [Quit: Leaving.]
cousine has quit [Remote host closed the connection]
<lectrick> apeiros_: ah, 60 apm then lol
davidcelis has quit [Client Quit]
<lectrick> apeiros_: sorry, my web dev knowledge bled into my gamer knowledge
wermel has quit [Remote host closed the connection]
ewag has quit [Ping timeout: 264 seconds]
aetcore has joined #ruby
<apeiros_> I'm around 70. not much either :(
<reactormonk> apeiros_, still hate blizzard
<apeiros_> reactormonk: why's that?
verto is now known as verto|off
<wmoxam> heh, I'm silver league too :(
<reactormonk> apeiros_, because they said
<ner0x> Can you assign variables in array context. var1 = nil, var2 = nil, [ var1, var2 ] = [ 'lat', 'long' ].map { |x| model.x } ?
<reactormonk> "if you want to play on US servers, go buy a new game"
mneorr has quit [Remote host closed the connection]
h4mz1d has joined #ruby
toto- has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
mneorr has joined #ruby
Morkel has quit [Read error: Operation timed out]
swarley- has joined #ruby
Morkel has joined #ruby
<reactormonk> ner0x, nope, but you can plash stuff, var1, var2 = *%w(lat long).map {|x| model.x}
toto_ has joined #ruby
pu22l3r has joined #ruby
savage- has joined #ruby
<reactormonk> err, splash
Mon_Ouie has quit [Read error: Connection reset by peer]
ctwiz has joined #ruby
<apeiros_> reactormonk: srsly?
<apeiros_> reactormonk: I changed servers more than once…
<reactormonk> apeiros_, yep.
mneorr has quit [Remote host closed the connection]
<apeiros_> odd
mneorr has joined #ruby
swarley| has quit [Ping timeout: 246 seconds]
ryanlecompte has quit [Ping timeout: 256 seconds]
zodiak has quit [Read error: No route to host]
banisterfiend has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
heftig has quit [Read error: Connection reset by peer]
craq has left #ruby [#ruby]
<Hanmac> ner0x: are you sure that .map { |x| model.x } works? i dont think so
nonotza has joined #ruby
heftig_ has joined #ruby
zodiak has joined #ruby
bradhe has quit [Remote host closed the connection]
<reactormonk> apeiros_, burned by DRM. suppose everyone gotta make that experience
<apeiros_> :-S
hderms has joined #ruby
jenrzzz has joined #ruby
<hderms> is there anything in ruby like Object#tap that returns the value of the block instead of self
<hderms> so like
<hderms> 5.do_something{|x| x- 1}
<hderms> would return 4
pcarrier has joined #ruby
reset has joined #ruby
savage- has quit [Remote host closed the connection]
danneu1 has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
ctwiz is now known as dpg
<reactormonk> hderms, yep, but the other way round: {|x| x-1}.call(5)
pcarrier has quit [Client Quit]
<Hanmac> reactormonk you forgot the proc
<Hanmac> proc{|x| x-1}[5] #> 4
<banisterfiend> hderms: i really want this method in ruby: def let() yield end
<hderms> yeah
<hderms> that would be nice banisterfiend
<reactormonk> Hanmac, point.
<banisterfiend> Hanmac: do you watch 'one piece' ?
<reactormonk> banisterfiend, go to the ruby mailing list with that just because
weasels has joined #ruby
h4mz1d has joined #ruby
<hderms> hanmac what is with the array looking notation at the end of that
carloslopes has joined #ruby
<hderms> is that some kind of unpacking or something
carloslopes has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
<Hanmac> hderms it is short for .call
jamesaxl has quit [Ping timeout: 260 seconds]
<hderms> weird
<Hanmac> banisterfiend do you mean an spcific episode or in general?
<hderms> never seen that before
<banisterfiend> Hanmac: in genearl
<Hanmac> yes i do sometimes
Guest30882 has quit [Quit: Guest30882]
jamesaxl has joined #ruby
<Hanmac> hderms: look at this: proc{|x| x-1}.(5) ... :P
<hderms> heh that's ugly
<hderms> () is a call method
g0bl1n has joined #ruby
<banisterfiend> Hanmac: this is cuter: ->(x) { x - 1 }.(5)
slash_nick is now known as slash_me
slash_me is now known as slash_nick
<Hanmac> i not like the arrow ... it looks so agressive :/
<banisterfiend> Hanmac: it's a phallic symbol
Neomex has quit [Quit: Neomex]
<jlast> banisterfiend: is coffeescript phalic? -> =>
hadees has joined #ruby
<jlast> ((( -> => -> =>
dmiller has quit [Ping timeout: 265 seconds]
<hderms> banisterfiend: that's messed up
<Hanmac> ruby has a semen operator too "=~"
<banisterfiend> jlast: yeah, and with a thicker shaft too
<banisterfiend> jlast: sry :P
Synthead has joined #ruby
<jlast> not as thick as the pound comment #### foo
tPl0ch has joined #ruby
<hderms> banisterfiend: that doesn't work for me
<jlast> Hanmac: that is a semen operator
<hderms> is that particular to a certain version
chimkan has joined #ruby
thomas__3242 has quit [Quit: Leaving]
<banisterfiend> Hanmac: i thought the rubygems '~>' was the semen operator
dzhulk has joined #ruby
kingdias has joined #ruby
jrist-afk is now known as jrist
weasels is now known as otters
rtd_ has quit [Quit: rtd_]
Xeago has joined #ruby
dmiller has joined #ruby
braoru has quit [Ping timeout: 252 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
kingdias has left #ruby [#ruby]
Beoran_ has quit [Read error: Operation timed out]
<xybre> 2-dimensional lists: nested arrays, Matrix objects, or Narrays?
techhelp has quit [Quit: Leaving]
i_s has quit [Quit: i_s]
verto|off is now known as verto
<slash_nick> def method_name(&block); block.call; end # Is there a concept of an empty block I can use for &block's default value to prevent NoMethodError for block.call ???
<slash_nick> nevermind
frem has quit [Ping timeout: 265 seconds]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
tcdent has joined #ruby
darthdeus has joined #ruby
<apeiros_> slash_nick: block.call if block
tcdent has left #ruby [#ruby]
<apeiros_> slash_nick: but if you don't pass the block on, you should use `yield if block_given?` instead
haxrbyte has joined #ruby
<apeiros_> since that doesn't force ruby to create an object from the block
<foucist> xybre: gonna do math? i'd lean towrads the first if i wasn't doing a whole lot of math
bradhe has joined #ruby
<xybre> Matrix seems to try to be immutable, so thats probably a no go. Might be good for lookup speed though.
<foucist> crap, i saw a great snippet for adding arrays together, matrix style, without any matrix libs.. lost it
strangeworks has joined #ruby
arturaz has quit [Ping timeout: 260 seconds]
<epochwolf> xybre: what's your usecase?
<apeiros_> Matrix is implemented in pure ruby
<apeiros_> so no gain
EyesIsMine has quit [Ping timeout: 245 seconds]
<xybre> No math per se, the biggest trouble is loading and unloading the 2/3d array object, which has the potential to happen often. Loading a block of data and associated objects in the array, operating on it (mostly lookups, but some writes), dumping the changes, and loading up other blocks.
bricker has quit [Quit: leaving]
iamjarvo1 has joined #ruby
bricker has joined #ruby
nomenkun has joined #ruby
<epochwolf> xybre: I'd go with nested arrays
iamjarvo has quit [Read error: Connection reset by peer]
<xybre> Its basically terrain data, each gridsquare of terrain will be an object with attributes, but the terrain could be very large. If I go 3D with it, it grows exponentially.
<xybre> It'll be important to operate upon multiple gridsquares quickly, in a sparse manner (ie, non-sequentially).
philcrissman has quit [Remote host closed the connection]
workmad3 has joined #ruby
bubu\a has joined #ruby
g0bl1n has quit [Ping timeout: 245 seconds]
Adget1 has quit [Quit: Adget1]
dzhulk has joined #ruby
<epochwolf> xybre: if you're getting into that, I'd do some research into how to process that kind of data
<xybre> Hmm
<xybre> I could also use Hashes with an addressing system
toto_ has quit [Ping timeout: 260 seconds]
Beoran_ has joined #ruby
postmodern has joined #ruby
cakehero has joined #ruby
<epochwolf> xybre: if you're trying to optimize, you need to do research on the type of structures that are optimial for the processing you need to do.
<xybre> That would be more useful with a sparse field, since not every grid actually contains data.
bradhe has quit [Ping timeout: 264 seconds]
<epochwolf> xybre: if you're not going to do the research, just do anything that will work. Don't optimize.
philcrissman has joined #ruby
<epochwolf> xybre: trying to guess without data is unlikely to produce an optimal result
davidcelis has joined #ruby
<foucist> i don't recall nested arrays being slow when done at a low level
<xybre> epochwolf: I've looked around a bit, but not sure where to start. But I guess the best thing to do would be to create a sane API abstraction so the implementation could be swapped out easily if it becomes a bottleneck.
<foucist> lookups are fast afaik
pipopopo has joined #ruby
<foucist> hashes & addressing is probably even better.. hashmap
<epochwolf> foucist: it depnds, at the millions of datapoints level, ruby does not handle much well.
<foucist> epochwolf: yeah i wasj ust thinking at the C level
<foucist> course if the bottleneck is the ram/disk/bus, then gotta change approach :P
<epochwolf> foucist: xybre isn't using C, which is why I want to stab him for trying to optmize.
leonardorb has quit [Read error: Connection reset by peer]
<epochwolf> ruby isn't optmial
<foucist> what?!
<foucist> you tell me this now?
<hderms> lol
<epochwolf> foucist: ruby is too slow for real time operations
<foucist> after i've been coding ruby for years? ?:(
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
<xybre> If I keep the array a fixed size it shouldn't be too bad, but if its dynamically sized I think it would be a performance problem. ie unusuable.
<epochwolf> foucist: you're a dumbass but I already knew that.
leonardorb has joined #ruby
<foucist> heh :P
<epochwolf> xybre: ruby arrays are linked lists...
braoru has joined #ruby
bradhe has joined #ruby
<xybre> .. I know. I'm talking about iterating through all of them and adding elements to the subarrays being inefficient.
reset has quit [Quit: Leaving...]
<epochwolf> xybre: using ruby is inefficient
<xybre> Yes I know Ruby isn't C, but thats no reason to completely ignore performance.
<foucist> xybre: anyways the hashes & addressing sounds interesting, or something that basically isn't an array
<xybre> Ruby is written in C, Narray is a C extension, etc.
timonv has quit [Remote host closed the connection]
<epochwolf> you're looking at two to three orders of magititude slower to do stuff in ruby
<foucist> cheap looking ;)
<foucist> er
<foucist> keep looking*
<foucist> or use narray
<epochwolf> okay, I don't care anymore. Lunch time!
reset has joined #ruby
* epochwolf hunts for squirrels out back
<xybre> I like writing in Ruby. If I wanted to write in C, I'd write it in C.
EyesIsMine has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<cout> epochwolf: sounds like a good idea; it will keep you from being nasty to otherwise pleasant people :(
dpk is now known as \\
<epochwolf> cout: I'm usually a dick.
leonardorb has quit [Read error: Connection reset by peer]
\\ is now known as \\\
<epochwolf> cout: I'm trying to get better
\\\ is now known as \\\\
\\\\ is now known as \\\\\
\\\\\ is now known as \\\\\\
<xybre> I guess the bigger concern is all the objects loaded into memory, the array structure is just an addressing and lookup handler really. Hmm.
haxrbyte has joined #ruby
leonardorb has joined #ruby
schaerli has quit [Remote host closed the connection]
\\\\\\ is now known as Guest15193
Guest15193 is now known as \\\\\\\
\\\\\\\ is now known as \\\\\\\\
\\\\\\\\ is now known as \\\\\\\\\
<slash_nick> when passing a block to a method... does yield actually call the block?
J-_-L has joined #ruby
eldariof has quit []
darthdeu has joined #ruby
leonardorb has quit [Read error: Connection reset by peer]
<Hanmac> epochwolf with my bindings i could make 3D rendering and i still gets ~200FPS ... similar to the C++ SamplebBrowser
gbchaosmaster has joined #ruby
<epochwolf> Hanmac: bindings, you mean c extensions?
strangeworks has quit [Quit: Leaving]
<xybre> slash_nick: depends how you get the block to the method.
sepp2k1 has joined #ruby
<Hanmac> yep
darthdeus has quit [Read error: Connection reset by peer]
<slash_nick> gotcha
<epochwolf> Hanmac: of course, I'm talking pure ruby
sepp2k has quit [Ping timeout: 256 seconds]
leonardorb has joined #ruby
<epochwolf> slash_nick: if block_given? is true, yield calls the block
<epochwolf> otherwise I think it's a non-op or an exception
verto is now known as verto|off
workmad3 has quit [Ping timeout: 252 seconds]
segora has quit [Quit: segora]
afgeneralist has joined #ruby
<canton7> exception
stderr-_ is now known as stderr-
mikepack has joined #ruby
<Hanmac> epochwolf of cause its an extension, or show me how it should be possible to make 3D with pure ruby
<epochwolf> Hanmac: that was my point.
\\\\\\\\\ is now known as dpk
<epochwolf> Hanmac: 3D processing with anykind of speed isn't really doable in plain ruby.
<epochwolf> you either need a faster language or c extensions to do the heavy lifting quickly.
i_s has joined #ruby
<Hanmac> i choice Ogre for that
leonardorb has quit [Read error: Connection reset by peer]
nignaztic has joined #ruby
<epochwolf> Hanmac: my experience is helping a classmate of mine with 2d processing using ruby. It took hours to run on a few milllion entries even with optimizations and profiling.
leonardorb has joined #ruby
aquaranto has quit [Remote host closed the connection]
jackbrownhf has quit [Quit: Sto andando via]
<Hanmac> i did an rotating cube with RTT and compositor features with my binding
<epochwolf> I do remember needing to use a preview version of 1.9 just to avoid thrashing the GC
leonardorb has quit [Read error: Connection reset by peer]
<Hanmac> i cache my objects to i dont need to recreate them
lordnaz has joined #ruby
leonardorb has joined #ruby
nignaztic has quit [Ping timeout: 265 seconds]
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
<xybre> Ruby is written in C, it doesn't inherently have to be slow.
<epochwolf> Hanmac: It was a project for a neural networks class. Dead ends needed to be pruned, hence the GC,
codezombie has quit [Quit: Linkinus - http://linkinus.com]
leonardorb has quit [Read error: Connection reset by peer]
<Hanmac> "neural network" sounds interesting *g
soulcake has quit [Quit: ZNC - http://znc.in]
statarb3 has quit [Read error: Connection reset by peer]
iamjarvo1 has quit [Ping timeout: 260 seconds]
leonardorb has joined #ruby
segv- has quit [Quit: segv-]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
arya_ has quit []
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mrbrdo has joined #ruby
* Hanmac likes finite state maschines :P
<mrbrdo> could anyone give me an advice on how to run ruby without make install-ing it? (I already compiled it) right now I'm getting "dyld: Library not loaded: /usr/local/lib/libruby.2.0.0.dylib" so I probably need to recompile with some extra flags or change my bash environment?
Tearan has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
schaerli has joined #ruby
bubu\a has quit []
arturaz has joined #ruby
Neomex has joined #ruby
elaptics is now known as elaptics`away
kulp has joined #ruby
<kulp> i would like to do something like `thisvar = load("foo.rb")` and get access to the last expression in foo.rb. More generally I would like functionality like perl's "do"
nignaztic has joined #ruby
dankest is now known as dankest|away
<kulp> does it exist ? how would you write a code to have modules like this, without going to classes
adambeynon has quit [Quit: Computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 256 seconds]
savage- has joined #ruby
alexim has quit [Ping timeout: 264 seconds]
lordnaz has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Ping timeout: 255 seconds]
<wildcard0> kulp: in ruby everything is a class. if you run something outside of a class container, the interpreter puts it into a class for you
<wildcard0> well that's not totally true. s/class/object/
<kulp> aha. how do i get access to that object ? the result of load is a success/failure boolean, it seems
nga4 has quit [Ping timeout: 256 seconds]
piotr has joined #ruby
nignaztic has quit [Client Quit]
joshman_ has quit [Ping timeout: 256 seconds]
nignaztic has joined #ruby
Cicloid has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<kulp> well i'm not sure anything is clarified, sorry
<wildcard0> so if you have something outside of the object in a separate file, you end up with the new stuff being mixed into the current set
mengu has quit [Quit: Konversation terminated!]
bricker_ has joined #ruby
<kulp> well not if i do load(..., true), right ?
<kulp> i would prefer not to have it mixed in
daniel_- has joined #ruby
ryanlecompte has quit [Ping timeout: 244 seconds]
<kulp> since feasibly i would load multiple different modules which would use the same names internal to their files
<wildcard0> ya if it's true then it's in a different namespace
<kulp> i guess i will just have the loaded module call a register() function.
<wildcard0> if you need access to that, you should either name it or you have to start playing with ruby's reflection stuff
bricker has quit [Read error: Operation timed out]
<kulp> blegh
<kulp> `perldoc -f do` and `do EXPR` is nicer ;) but now i am going to get lynched !
<wildcard0> haha
<wildcard0> it's been probably 10 years since i've used perl
<wildcard0> i dont really remember the internals well
smw_ has joined #ruby
<kulp> i could get used to ruby, for certain
<kulp> unless there are many little niggles like i perceive this to be (perhaps wrongly)
<wildcard0> ruby in general is pretty nice to work with
<wildcard0> IMO at least
<wildcard0> there's certainly a bunch of language specific stuff you need to learn, but i've found it isn't really that painful
<wildcard0> there are definitely things ruby does better than others
<kulp> it seems to borrow the best parts of perl
<kulp> and for small jobs i am trying to learn it to replace perl
machty has joined #ruby
joshman_ has joined #ruby
<lupine> also, do pay attention to TOPLEVEL_BINDING
<wildcard0> so this do thing. it defines an anonymous function and returns the value of the last expression?
<wildcard0> do you could do like a = lambda { |x| puts "hi" x }
<wildcard0> and then a.call(5)
<wildcard0> ?
hotovson has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
froy has quit [Ping timeout: 244 seconds]
mascool has quit [Ping timeout: 250 seconds]
<wildcard0> er, typo, ; between the puts "hi" and the x
hp has joined #ruby
hp is now known as Guest62032
<kulp> wildcard0: yeah like that, except the contents of the lambda would be in a different file
<Guest62032> I'd like to modify a string in-place but doing self = self[n...-1] does not work: "Can't change the value of self"
<wildcard0> ah ok
arya_ has joined #ruby
<kulp> i mean i'm asking to do something that's idiomatic in perl, but maybe not in ruby
<kulp> so feel free to suggest a different solution that could get the same effect if you can see the underlying question (i haven't explained it well)
<kulp> i do have a solution now, just calling a function in the outer file from the inner file
<wildcard0> that'd work
<kulp> so i guess my question is largely moot, but it might be a learning experience anyway
ewag has joined #ruby
ChampS666 has quit [Ping timeout: 265 seconds]
bigmcq77 has joined #ruby
heftig_ is now known as heftig
<wildcard0> Guest62032: in ruby, "self" is a keyword, it has special meaning. try changing the variable name :)
chimkan has quit [Quit: chimkan]
<rking> Guest62032: Just do: chop!
L1 has joined #ruby
L1 has quit [Changing host]
L1 has joined #ruby
<rking> No explicit 'self' on that one
mascool has joined #ruby
cmarques has quit [Ping timeout: 256 seconds]
iamjarvo has joined #ruby
samphippen has joined #ruby
ChampS666 has joined #ruby
rellin has quit [Read error: Connection reset by peer]
fred909 has quit [Ping timeout: 260 seconds]
rellin has joined #ruby
Lemtzas is now known as peopel
segv- has joined #ruby
jamiei has left #ruby [#ruby]
<havenn> I thought it was interesting to compare the Perl 6 book solutions to equivalent in Ruby and Python. Perl 6 and Ruby really do sometimes mirror each other: https://gist.github.com/3928203
<Guest62032> rking: chop is for the last characters.
<Guest62032> wildcard0: I am an instance method of the String class
<rking> Guest62032: Yeah. What else is self[0...-1] doing?
braoru has quit [Ping timeout: 255 seconds]
nemesit has quit [Ping timeout: 252 seconds]
<Guest62032> (I solved my problem! Use self.replace(self[n..-1]))
nemesit has joined #ruby
<wildcard0> ya that works. self is the currently referenced object
<Guest62032> rking: self[n..-1] removes the first n characters (notice the n as leading index)
<wildcard0> it'd need to call a method
babykosh has quit [Quit: babykosh]
geekbri has quit [Remote host closed the connection]
<brendan`> in an if statement, can you add { } around the actions?
<rking> Guest62032: Ahh crud. My bad. I read 0 where you had n
<brendan`> ie: if a = b { puts "hi" }
<Guest62032> I'm lucky String has a built-in replace(), though. What about other types of objects?
<brendan`> mainly for my readability
<heftig> brendan`: no.
mmitchel_ has quit [Remote host closed the connection]
<rking> Guest62032: Other objects would all have an ivar representing stuff
<brendan`> ok
<heftig> puts "hi" if a == b
mmitchell has joined #ruby
<heftig> if a == b; puts "hi; end
<wildcard0> ya double = is important
<heftig> i always preferred pascal's :=, = to C style =, ==
smw_ has quit [Ping timeout: 248 seconds]
<rking> heftig: Have you seen the way Smalltalk does it?
segv- has quit [Client Quit]
<wildcard0> == was algol 68 right?
kulp has left #ruby [#ruby]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
babykosh has joined #ruby
bricker has joined #ruby
bricker has quit [Client Quit]
<reactormonk> heftig, agreed
bricker_ has quit [Ping timeout: 250 seconds]
tPl0ch has quit [Quit: Verlassend]
tfnorris has joined #ruby
nomenkun has quit [Remote host closed the connection]
darthdeu has quit [Quit: Leaving...]
nat2610 has joined #ruby
v0n has quit [Quit: Leaving]
advorak has quit [Quit: Leaving]
v0n has joined #ruby
schaerli has quit [Remote host closed the connection]
BigO_ has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 245 seconds]
v0n has quit [Client Quit]
v0n has joined #ruby
babykosh has left #ruby [#ruby]
ner0x has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
atmosx has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
Neomex has quit [Quit: Neomex]
mneorr has joined #ruby
sailias has quit [Quit: Leaving.]
tfnorris has left #ruby [#ruby]
nemesit has quit [Quit: Linkinus - http://linkinus.com]
nemesit has joined #ruby
_tca has joined #ruby
BigO has joined #ruby
pcarrier has joined #ruby
Morkel has quit [Quit: Morkel]
jarred has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
chaosis has quit [Ping timeout: 260 seconds]
arturaz has quit [Remote host closed the connection]
rellin2 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 265 seconds]
rellin has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: Leaving.]
schaerli has joined #ruby
bricker has joined #ruby
[Neurotic] has joined #ruby
fred909 has joined #ruby
pignata_ is now known as pignata
hadees has quit [Quit: hadees]
nat2610 has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
slash_nick has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
tenmilestereo has quit [Quit: Leaving]
beiter has quit [Quit: beiter]
piccalingo has joined #ruby
<aces1up> if i have a large hash table that many threads access, what are some of the side effect of un safe thread operations, trying to figure out a thread safe bug I might have, for instance could 1 thread delete a key, and then cause another thread key it holds to be different?
dankest|away is now known as dankest
gridaphobe has joined #ruby
stkowski has joined #ruby
mikeg has joined #ruby
<[Neurotic]> all sorts of crazy stuff could happen
c0rn has quit [Quit: Computer has gone to sleep.]
<[Neurotic]> nothing is atomic
gabrielrotbart has joined #ruby
<[Neurotic]> the hash could say there is something in it, and then return null, as the value has yet to be set internally
<[Neurotic]> or vice versa
Averna1 has joined #ruby
<[Neurotic]> the whole internal state is up for grabs
Averna1 has quit [Client Quit]
<lupine> Hash is threadsafe, more or less
<lupine> a[x] = 1 if a[x] == 0 isn't, though
Nisstyre-laptop has joined #ruby
<[Neurotic]> yah - was going to say, is it a Java HashMap or a JRuby Map?
schaerli has quit [Remote host closed the connection]
tommyvyo has joined #ruby
BrianJ has quit [Quit: Computer has gone to sleep.]
anna_ has joined #ruby
burntbit has joined #ruby
<lupine> jruby go out of their way to keep it all threadsafe, bless 'em
<lupine> (I guess 1.9 adopted that approach too)
<mikeg> having the following error trying to install gems: NoMethodError: undefined method `full_name' for nil:NilClass Full stacktrace is here: https://gist.github.com/4198729
<lupine> back with green threads, "thread-safe" was the default state, much of the time
<mikeg> ruby is 1.9.2-p290 gems is 1.8.24
<lupine> no special magic required
slash_nick has joined #ruby
krawchyk has quit [Remote host closed the connection]
<burntbit> can I create a default variable for a class so all new instances have it... and not use class << self ?
<mikeg> :q
jackbrownhf has quit [Ping timeout: 250 seconds]
baphled has quit [Ping timeout: 244 seconds]
dzhulk has quit [Quit: Leaving.]
<lupine> I guess I was getting confused with volatility
arya_ has quit [Ping timeout: 244 seconds]
<lupine> blarg. not my day
dzhulk has joined #ruby
bradhe has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
<burntbit> it looks like I need class << self attr_accessor myvar; end
<headius> lupine: we talk a bit about the JRuby::Synchronized module in there, and there's also some safe collection types in the thread_safe gem
davidcelis has quit [Quit: K-Lined.]
<lupine> yeah, I was vaguely recalling a blog post from ages ago
<lupine> inaccurately ^^
anna_ has quit [Client Quit]
* lupine is badly off form today
Slivka has quit [Remote host closed the connection]
bradhe has joined #ruby
headius has quit [Quit: headius]
anna_ has joined #ruby
forced_request has joined #ruby
dzhulk1 has joined #ruby
dzhulk has quit [Ping timeout: 260 seconds]
rakl has quit [Quit: sleeping]
hackerdude has joined #ruby
buscapepe has joined #ruby
buscapepe has quit [Remote host closed the connection]
phantasm66 has quit [Quit: *sleeeep….]
mjolk has joined #ruby
buscapepe has joined #ruby
Xeago has quit [Remote host closed the connection]
gyre007 has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
dzhulk1 has quit [Ping timeout: 244 seconds]
rakl has joined #ruby
<burntbit> I got it. I think I was using def init instead of def initialize
_nitti has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
burntbit has quit [Quit: Leaving]
nignaztic has quit [Ping timeout: 256 seconds]
piccalingo has quit [Remote host closed the connection]
ryanf has joined #ruby
obryan has quit [Remote host closed the connection]
slash_nick has quit [Ping timeout: 250 seconds]
dagnachew has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
davidcelis has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jds_ has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
workmad3 has joined #ruby
moos3 has quit [Quit: Off to blow shit up!]
Elico has quit [Quit: elico]
ephemerian has joined #ruby
jenrzzz has joined #ruby
jrist is now known as jrist-afk
nari has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
mneorr has quit [Remote host closed the connection]
tommyvyo has joined #ruby
mneorr has joined #ruby
Gm4n has quit [Ping timeout: 255 seconds]
mikepack has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
slash_nick has joined #ruby
willob has joined #ruby
forced_request has joined #ruby
moos3 has joined #ruby
65MABKLVI has quit [Read error: Connection reset by peer]
LBRapid has quit [Quit: Leaving]
mikepack has joined #ruby
jds_ has quit [Remote host closed the connection]
xnm has joined #ruby
nonotza has quit [Quit: nonotza]
babykosh has joined #ruby
mikepack has quit [Remote host closed the connection]
gabrielrotbart has joined #ruby
kuzushi has joined #ruby
Russell^^ has quit [Quit: Russell^^]
<slash_nick> kuzushi: you seem a little unbalanced
u89 has joined #ruby
nemesit has quit [Quit: Leaving...]
macabre has quit [Remote host closed the connection]
J-_-L has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<babykosh> I have a method that returns a hash like so….{:b1=>993, :c1=>-993}….I need to return the the name of the symbol with the highest number value…in this case :b1…how to do this?
<apeiros_> babykosh: max_by
jrajav has quit [Quit: I tend to be neutral about apples]
jeffreybaird has joined #ruby
matchaw_ has joined #ruby
alanp_ has joined #ruby
alanp has quit [Ping timeout: 252 seconds]
jgarvey has quit [Quit: Leaving]
alanp_ is now known as alanp
chimkan_ has joined #ruby
<kuzushi> slash_nick: ha-- I think you are the first person who knows what this means w/o me telling them :)
<kuzushi> you must be a judo guy :)
bradhe has quit [Remote host closed the connection]
machty has quit [Quit: machty]
froy has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
alexim has joined #ruby
danneu has joined #ruby
danneu has quit [Client Quit]
Choobie has joined #ruby
chimkan_ has quit [Client Quit]
withnale has quit [Read error: Operation timed out]
<babykosh> got it ..thanks all
withnale has joined #ruby
_tca has quit [Read error: Connection reset by peer]
nat2610 has quit [Quit: Leaving.]
bwwrd has quit [Quit: Textual IRC Client: www.textualapp.com]
bradhe has joined #ruby
huoxito has quit [Quit: Leaving]
babykosh has left #ruby [#ruby]
dzhulk has joined #ruby
nat2610 has joined #ruby
jharris has quit [Quit: WeeChat 0.3.8]
froy has quit [Remote host closed the connection]
stopbit has quit [Quit: Leaving]
froy has joined #ruby
_bart has joined #ruby
<slash_nick> kuzushi: jujutsu :) judo too
Drekonus has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
nignaztic has joined #ruby
<kuzushi> slash_nick: rockin
slash_nick is now known as shikaku
ikaros has quit [Quit: Ex-Chat]
chimkan has joined #ruby
nemesit has joined #ruby
nemesit has quit [Client Quit]
dmiller has quit [Ping timeout: 246 seconds]
buscapepe has quit [Remote host closed the connection]
nemesit has joined #ruby
nemesit has quit [Client Quit]
mmitchell has quit [Ping timeout: 264 seconds]
osvico has joined #ruby
shikaku is now known as slash_nick
vasile has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
jlast has quit [Remote host closed the connection]
willob has quit [Quit: Leaving.]
chrisja has joined #ruby
carlyle_ has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
neurotech has joined #ruby
philcrissman has quit [Remote host closed the connection]
neurotech has quit [Client Quit]
banisterfiend has joined #ruby
Drekonus has quit [Quit: Leaving.]
dcope is now known as threeve_ftl
statarb3 has quit [Ping timeout: 256 seconds]
lenovodroid has joined #ruby
jds has joined #ruby
dmiller has joined #ruby
c0rn has joined #ruby
fir_ed has joined #ruby
Gm4n has joined #ruby
threeve_ftl is now known as dcope
x82_nicole has joined #ruby
_alejandro has quit [Remote host closed the connection]
hadees has joined #ruby
tbrock has joined #ruby
nat2610 has quit [Read error: Connection reset by peer]
nat26101 has joined #ruby
ChampS666 has quit [Ping timeout: 265 seconds]
froy has quit [Ping timeout: 264 seconds]
kirun_ has quit [Quit: Client exiting]
daniel_- has quit [Ping timeout: 250 seconds]
cheier has quit [Quit: cheier]
bradhe has quit [Remote host closed the connection]
chaosis has joined #ruby
bradhe has joined #ruby
doritostains has joined #ruby
flagg0204 has quit [Quit: leaving]
ikaros has joined #ruby
dzhulk has left #ruby [#ruby]
_nitti has joined #ruby
slash_nick has quit [Ping timeout: 260 seconds]
nwertman has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 256 seconds]
flagg0204 has joined #ruby
dankest is now known as dankest|away
theRoUS has quit [Ping timeout: 244 seconds]
nignaztic has quit [Quit: WeeChat 0.3.7]
daniel_- has joined #ruby
nateberkopec has quit [Quit: Leaving...]
_nitti has quit [Ping timeout: 256 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
v0n has quit [Ping timeout: 245 seconds]
Spaceboy has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
Spaceboy has joined #ruby
Tombar has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 255 seconds]
fyolnish has quit [Remote host closed the connection]
twopoint718 has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby
Virunga has quit [Remote host closed the connection]
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Drekonus has joined #ruby
igro has joined #ruby
geggam has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
SCommette_ has joined #ruby
generalissimo has quit [Remote host closed the connection]
SCommette_ has quit [Client Quit]