fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
tommyvyo has quit [Quit: Computer has gone to sleep.]
iocor has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sneakyness_wk has quit [Quit: bbl, decided to be amish]
lledet has joined #ruby
panpainter has joined #ruby
timrom has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
khakimov has joined #ruby
lggr has joined #ruby
PragCypher has joined #ruby
jgarvey has quit [Quit: Leaving]
shuriken has quit [Quit: Hey! Where'd my controlling terminal go?]
timrom_ has quit [Ping timeout: 264 seconds]
jimeh has joined #ruby
gfontenot has joined #ruby
havenn has joined #ruby
panpainter has quit [Client Quit]
shiki has quit [Remote host closed the connection]
jimeh has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 264 seconds]
hemanth has quit [Read error: Connection reset by peer]
shiki has joined #ruby
hemanth has joined #ruby
shiki has quit [Read error: Connection reset by peer]
shiki has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
xaq has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
jso has joined #ruby
c0rn_ has joined #ruby
yaymukund has left #ruby [#ruby]
simon_weber has joined #ruby
cj3kim has quit [Quit: Leaving]
lggr has joined #ruby
<simon_weber> asking for a friend - what's the preferred intro text/tutorial these days? I'm about to recommend the bastards book
<GoHuyGo> hartl?
guns has joined #ruby
<GoHuyGo> nevermind
<GoHuyGo> thought this was rails channel :p
cburyta has joined #ruby
xaq has joined #ruby
<davidcelis> simon_weber: ruby koans
jso has quit []
<davidcelis> simon_weber: if he's new to programming, Lean to Program by Chris Pine is good
<davidcelis> simon_weber: if he's not a beginner programmer but new to ruby, i'd say The Well Grounded Rubyist
<simon_weber> yeah, I should have added that - limited programming experience
Guedes has quit [Remote host closed the connection]
mmitchell has joined #ruby
<davidcelis> then i'd say the Chris Pine book
CodeFriar has joined #ruby
machty has quit [Quit: machty]
<simon_weber> davidcelis: great; thanks
<davidcelis> sure thing buddy
davidcelis has quit [Quit: K-Lined.]
lggr has quit [Ping timeout: 248 seconds]
mmitchell has quit [Ping timeout: 244 seconds]
notVert has quit [Read error: Connection reset by peer]
gmci has quit [Quit: Computer has gone to sleep.]
tyfighter has quit [Quit: tyfighter]
lggr has joined #ruby
gfontenot has quit []
williamcotton has quit [Quit: williamcotton]
ckrailo has quit [Quit: Computer has gone to sleep.]
williamcotton has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ttt_ has joined #ruby
test has joined #ruby
test has quit [Client Quit]
havenn has quit [Remote host closed the connection]
superjoe has left #ruby ["Leaving"]
apok_ has joined #ruby
linoj has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
apok has quit [Ping timeout: 240 seconds]
apok_ is now known as apok
ttt_ has quit [Ping timeout: 240 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
chrisja has quit [Quit: leaving]
jso has joined #ruby
linoj has quit [Client Quit]
stuartrexking has quit [Quit: Leaving...]
stuartrexking has joined #ruby
aantix_ has joined #ruby
aantix_ has quit [Client Quit]
hbpoison has quit [Ping timeout: 246 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
QKO_ has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
pu22l3r has joined #ruby
delinquentme has quit [Quit: Leaving]
fyolnish has joined #ruby
jso has quit []
fyolnish has quit [Remote host closed the connection]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
fyolnish has joined #ruby
QKO has joined #ruby
Aenigma has joined #ruby
aantix has quit [Ping timeout: 268 seconds]
mikeg has quit [Quit: Leaving]
drago757 has joined #ruby
billyoc has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
mikehoy has quit [Quit: Lost terminal]
yshh has joined #ruby
havenn has joined #ruby
sspiff has quit [Ping timeout: 246 seconds]
jso has joined #ruby
lggr has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
tbbach has joined #ruby
joofsh has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
chrxn has joined #ruby
chrishunt has quit [Ping timeout: 246 seconds]
Aenigma has quit [Quit: leaving]
ken_barber1 has joined #ruby
ken_barber has quit [Ping timeout: 260 seconds]
iori has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
tbbach has quit [Quit: tbbach]
xaq has quit [Remote host closed the connection]
lledet has quit [Quit: lledet]
artOfWa__ has quit [Ping timeout: 246 seconds]
savage- has quit [Ping timeout: 244 seconds]
tbbach has joined #ruby
twoism has joined #ruby
kay-z has joined #ruby
kay-z has quit [Read error: Connection reset by peer]
jasonkuhrt has joined #ruby
kay-z has joined #ruby
CodeFriar has quit [Read error: Connection reset by peer]
sent-hil has joined #ruby
simon_weber has left #ruby [#ruby]
himsin has quit [Ping timeout: 246 seconds]
jso has quit []
tds has quit [Quit: tds]
hbpoison has joined #ruby
tds has joined #ruby
Drewch has quit [Excess Flood]
frogstarr78 has joined #ruby
lggr has joined #ruby
rubious has quit [Quit: Leaving...]
Drewch has joined #ruby
adeponte has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 268 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
tds has quit [Ping timeout: 248 seconds]
emmanuelux has quit [Ping timeout: 246 seconds]
khakimov has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
yasushi has joined #ruby
gmci has joined #ruby
havenn has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
havenn has joined #ruby
TomJ has quit [Quit: TomJ]
lggr has joined #ruby
josh^ has joined #ruby
eignerchris has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
mmitchell has joined #ruby
makerbreaker has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
Elico1 has quit [Quit: Elico1]
<makerbreaker> im having some trouble with a ruby nad an API gem im using
<makerbreaker> I keep getting java.lang.String cannot be cast to java.lang.Number, when passing an argument
<makerbreaker> but i call it with @obj.to_i
thunderstrike has quit [Remote host closed the connection]
<makerbreaker> if i replace the @obj, with just '1' it works
xaq has joined #ruby
neurotech has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
swarley| has joined #ruby
havenn has quit [Remote host closed the connection]
Criztian has quit [Read error: Connection reset by peer]
mmitchell has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
swarley has quit [Ping timeout: 264 seconds]
lggr has joined #ruby
AlbireoX`Laptop has joined #ruby
ncr100 has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
sent-hil has quit [Remote host closed the connection]
ttt_ has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 248 seconds]
hbpoison has quit [Ping timeout: 245 seconds]
h4mz1d has joined #ruby
joelsbeard has quit [Ping timeout: 264 seconds]
ttt_ has quit [Ping timeout: 260 seconds]
peteyg_ has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
pskosinski has quit [Ping timeout: 276 seconds]
niklasb has quit [Ping timeout: 245 seconds]
stuartrexking has quit [Quit: Leaving...]
AlbireoX`Laptop has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
kay-z has quit [Quit: Leaving...]
swarley| has quit [Ping timeout: 245 seconds]
tds has joined #ruby
adeponte has joined #ruby
chrishunt has joined #ruby
hbpoison has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
lggr has joined #ruby
ZachBeta has joined #ruby
awarner has joined #ruby
guns has quit [Quit: guns]
machty has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
ttt_ has joined #ruby
juarlex has joined #ruby
tbbach is now known as tbbach_
uris has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
bapa has joined #ruby
AlbireoX has joined #ruby
lggr has joined #ruby
AlbireoX has quit [Remote host closed the connection]
himsin has joined #ruby
neurotec_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 240 seconds]
loves_co_ has quit [Remote host closed the connection]
pipopopo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
Ruler_Of_Heaven_ has quit [Ping timeout: 246 seconds]
neurotech has quit [Ping timeout: 256 seconds]
awarner has quit [Remote host closed the connection]
AlbireoX has joined #ruby
loves_color_text has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
tarwich has joined #ruby
neurotec_ is now known as neurotech
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
lggr has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
nari has joined #ruby
wuzzzzaah has joined #ruby
havenn has joined #ruby
rubious has joined #ruby
techhelp has joined #ruby
banisterfiend` has joined #ruby
ibash has quit [Quit: ibash]
ckrailo has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
banisterfiend` has quit [Remote host closed the connection]
awarner has joined #ruby
philips_ has quit [Excess Flood]
gmci has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
vitor-br has joined #ruby
gmci has joined #ruby
philips_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
dmnd has quit [Quit: dmnd]
havenn has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 252 seconds]
JustinCa_ has quit [Remote host closed the connection]
forced_request has joined #ruby
GoHuyGo has quit [Quit: Leaving]
neurotech has quit [Remote host closed the connection]
sn0wb1rd has joined #ruby
h4mz1d has joined #ruby
sent-hil has joined #ruby
madtalentz has quit []
lggr has joined #ruby
dmiller_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 246 seconds]
dmiller_ has quit [Remote host closed the connection]
ttt_ has quit [Remote host closed the connection]
ttt_ has joined #ruby
jeeky has joined #ruby
stuartrexking has joined #ruby
MasterIdler has joined #ruby
<jeeky> Hey! does anyone have any experience sending an HTTP POST request with headers and a body via Mechanize?
gmci has quit [Ping timeout: 248 seconds]
blazes816 has quit [Quit: blazes816]
awarner has quit [Remote host closed the connection]
lggr has joined #ruby
davidcelis has joined #ruby
adeponte has quit [Remote host closed the connection]
apok has quit [Quit: apok]
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
cburyta has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
mrdodo has joined #ruby
dagnachewa has joined #ruby
horofox has joined #ruby
makerbreaker has left #ruby ["Leaving"]
rakl has joined #ruby
ken_barber1 has quit [Remote host closed the connection]
hbpoison has joined #ruby
michaelmartinez has joined #ruby
ken_barber has joined #ruby
headius has quit [Quit: headius]
lggr has joined #ruby
blazes816 has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
cardoni has joined #ruby
AlbireoX has quit [Remote host closed the connection]
idletom has quit [Ping timeout: 244 seconds]
jeeky has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
tarwich has quit [Quit: Leaving.]
swarley_ has quit [Ping timeout: 245 seconds]
ken_barber has quit [Ping timeout: 256 seconds]
AlbireoX has joined #ruby
seoaqua has joined #ruby
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
<seoaqua> any suggestion for ruby gems to read or create mind maps?
zeromodulus has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 240 seconds]
ghanima has joined #ruby
<ghanima> hello all
cantonic has quit [Quit: cantonic]
hbpoison has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
wargasm has joined #ruby
<ghanima> question I am playing around with the Resolv library and I am looking at some data structures that I haven't seent before and I am not sure what kinda of collection this is it look like an array http://pastebin.com/HgV1Y2Eu
<ghanima> but when I try to parse it all the values come back as nil
xyzodiac has quit [Quit: Computer has gone to sleep.]
cantonic has joined #ruby
ken_barber has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
stuartrexking has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 244 seconds]
stuartrexking has joined #ruby
tammater has joined #ruby
<tammater> hi
<sent-hil> ghanima: looks like an array of Resolv::DNS::Resource instances
<ghanima> but when I try to do a
lggr has joined #ruby
<ghanima> print ress[#]
<ghanima> it prints some instance object but that is it and there is more in the data structure that doesn't appear as simple element
<sent-hil> have to tried to print with #each?
horofox has quit [Quit: horofox]
<sent-hil> or obj.inspect
<ghanima> sorry I am not familiar with those methods is #each a method of print
<ghanima> obj.inspect does what exactly?
<sent-hil> [your_array].each {|x| x.inspect}
hbpoison has joined #ruby
verto is now known as verto|off
<ghanima> what is the inspect method
<sent-hil> inspect provides a readable output of the object
tammater has quit [Remote host closed the connection]
ken_barber has quit [Ping timeout: 264 seconds]
dagnachewa has quit [Remote host closed the connection]
<ghanima> So I see something like this "#<Resolv::DNS::Resource::IN::NS:0x007f858a895190 @name=#<Resolv::DNS::Name: ns-944.amazon.com.>, @ttl=600>"
<ghanima> is this a sub array
<sent-hil> that's an object
<ghanima> never seen anything that starts like #<>
<sent-hil> that's just formatting, its Resolv::DNS::Resource::IN::NS object
bradhe has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
ryanf has joined #ruby
Bosox20051 has joined #ruby
<ghanima> sent-hil: OH that god ok... thanks man I was racking my brain on this one
PragCypher has quit [Ping timeout: 245 seconds]
<ghanima> sent-hil: so just to be clear... This "#<Resolv::DNS:\:Resource::IN:\:NS:0x007f858a895190 @name=#<Resolv::DNS::Name: ns-944.amazon.com.>, @ttl=600>"
<ghanima> to that entore string is an the full array element of the object
<sent-hil> umm, array element of the object?
<sent-hil> that entire thing is just one object
<sent-hil> they're returning multiple objects like that in an array
Spooner has quit [Ping timeout: 252 seconds]
<sent-hil> laptop battery running out, gotta go
<ghanima> thanks sent-hil
<sent-hil> you bet
sent-hil has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 264 seconds]
rakl has quit [Quit: gone]
h4mz1d has quit [Ping timeout: 264 seconds]
MasterIdler has quit [Quit: MasterIdler]
lggr has joined #ruby
horofox has joined #ruby
MasterIdler has joined #ruby
hbpoison has joined #ruby
pu22l3r has joined #ruby
rakl has joined #ruby
DrShoggoth has quit [Quit: Leaving]
elico has joined #ruby
PragCypher has joined #ruby
havenn has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
cantonic has quit [Quit: cantonic]
havenn has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
apok has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
cody1 has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
horofox has quit [Quit: horofox]
<cody1> anyone around?
bradhe has joined #ruby
swarley has joined #ruby
dmiller_ has joined #ruby
zeromodulus has joined #ruby
<davidcelis> no
lggr has joined #ruby
cody1 has quit [Quit: node-irc says goodbye]
tommyvyo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
AlbireoX has quit [Remote host closed the connection]
steffes has joined #ruby
<steffes> hello
AlbireoX has joined #ruby
Quadlex has joined #ruby
Bosma has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 246 seconds]
machty has quit [Ping timeout: 246 seconds]
jasonkuhrt has joined #ruby
techhelp has quit [Ping timeout: 246 seconds]
AlbireoX has quit [Ping timeout: 256 seconds]
billyoc has quit [Quit: carrier pigeon dropped]
peteyg_ has joined #ruby
jasonkuhrt has quit [Ping timeout: 246 seconds]
AlbireoX has joined #ruby
lggr has joined #ruby
idletom has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
flaccid_ has joined #ruby
yasushi has joined #ruby
ghanima has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
<flaccid_> i'm doing a `domainname` =~ /(none)/ but for some reason its not matching. the parenthesis is text. because this is regex, do i need to escape the brackets for it to match or something?
tbbach_ has quit [Ping timeout: 240 seconds]
jimeh has joined #ruby
Guest64548 has joined #ruby
lggr has joined #ruby
derpops has joined #ruby
Jamone has quit [Read error: Connection reset by peer]
<Quadlex> Non-threadsafe libraries make me cry
lggr has quit [Ping timeout: 240 seconds]
sent-hil has joined #ruby
Guest64548 has quit [Quit: Guest64548]
blazes816 has quit [Quit: blazes816]
sn0wb1rd_ has joined #ruby
elico has quit [*.net *.split]
radic has quit [*.net *.split]
rakl has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
uris has quit [*.net *.split]
xaq has quit [*.net *.split]
iori has quit [*.net *.split]
Axsuul has quit [*.net *.split]
Eiam has quit [*.net *.split]
Hanmac has quit [*.net *.split]
nilg has quit [*.net *.split]
Shrink has quit [*.net *.split]
ryanRT has quit [*.net *.split]
gyre007 has quit [*.net *.split]
thone has quit [*.net *.split]
jbw has quit [*.net *.split]
octarine has quit [*.net *.split]
avalarion has quit [*.net *.split]
canton7 has quit [*.net *.split]
tchebb has quit [*.net *.split]
allyraza has quit [*.net *.split]
kstephens has quit [*.net *.split]
mvangala has quit [*.net *.split]
goraxe has quit [*.net *.split]
mr-rich has quit [*.net *.split]
duracrisis has quit [*.net *.split]
X-Jester has quit [*.net *.split]
TommyBotten has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
bigmeow has quit [*.net *.split]
herbnerder has quit [*.net *.split]
methoddk has quit [*.net *.split]
ben_alman has quit [*.net *.split]
sn0wb1rd_ is now known as sn0wb1rd
techhelp has joined #ruby
JohnBat26 has joined #ruby
lggr has joined #ruby
thomasfedb has joined #ruby
kstephens has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
swarley has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Remote host closed the connection]
elico has joined #ruby
GeekOnCoffee has joined #ruby
bigmeow has joined #ruby
radic has joined #ruby
methoddk has joined #ruby
goraxe has joined #ruby
rakl has joined #ruby
iori has joined #ruby
uris has joined #ruby
jbw has joined #ruby
xaq has joined #ruby
mvangala has joined #ruby
allyraza has joined #ruby
Shrink has joined #ruby
Axsuul has joined #ruby
octarine has joined #ruby
nilg has joined #ruby
ryanRT has joined #ruby
gyre007 has joined #ruby
avalarion has joined #ruby
thone has joined #ruby
mr-rich has joined #ruby
TommyBotten has joined #ruby
canton7 has joined #ruby
duracrisis has joined #ruby
tchebb has joined #ruby
herbnerder has joined #ruby
X-Jester has joined #ruby
ben_alman has joined #ruby
Hanmac has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
[Neurotic] has quit [Excess Flood]
josh^ has quit [Excess Flood]
ckrailo has quit [Quit: Leaving...]
Guest64548 has joined #ruby
josh^ has joined #ruby
[Neurotic] has joined #ruby
ken_barber has joined #ruby
otters has quit [Quit: WeeChat 0.3.8]
maletor has joined #ruby
michaelmartinez has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
michaelmartinez has quit [Client Quit]
lggr has joined #ruby
ken_barber has quit [Remote host closed the connection]
ken_barber has joined #ruby
Elico1 has joined #ruby
uris has quit [Quit: Lost terminal]
ghanima has joined #ruby
seoaqua has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 268 seconds]
elico has quit [Ping timeout: 256 seconds]
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Ping timeout: 246 seconds]
ken_barber has quit [Ping timeout: 248 seconds]
beneggett has joined #ruby
macmartine has joined #ruby
Elico1 has quit [Quit: Elico1]
bananagram has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
otters has joined #ruby
machty_ has joined #ruby
xnm has joined #ruby
Guest64548 has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 244 seconds]
nat2610 has quit [Ping timeout: 246 seconds]
steffes has quit [Ping timeout: 245 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
dmiller_ has quit [Remote host closed the connection]
lggr has joined #ruby
jasonkuhrt has joined #ruby
<RubyPanther> That's why we love the GIL
techhelp has quit [Quit: Leaving]
horofox has joined #ruby
jasonkuhrt has quit [Ping timeout: 264 seconds]
fyolnish_ has joined #ruby
<Hanmac> Quadlex the problem is easy ... when you have an Non-threadsafe c++lib you cant make an threadsafe binding ...
<Hanmac> and when you get angry why the c++ lib is not threadsafe, ask the guys at #Ogre for sample
lggr has quit [Ping timeout: 246 seconds]
yasushi_ has joined #ruby
elico has joined #ruby
yasushi__ has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yasushi has quit [Ping timeout: 252 seconds]
rakl has quit [Quit: sleeping]
hemanth has quit [Read error: Connection reset by peer]
yasushi_ has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
seoaqua has joined #ruby
macmartine has joined #ruby
areil has joined #ruby
pingfloyd has joined #ruby
adeponte has quit [Remote host closed the connection]
freeayu has quit [Quit: This computer has gone to sleep]
apok has quit [Ping timeout: 264 seconds]
ananthakumaran has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
_blackbird_ has joined #ruby
_blackbird_ has quit [Client Quit]
radmacd has joined #ruby
ananthakumaran has quit [Client Quit]
lggr has quit [Ping timeout: 264 seconds]
radmacd has quit [Client Quit]
Mon_Ouie has joined #ruby
tds has quit [Quit: tds]
apok has joined #ruby
lggr has joined #ruby
rakunHo has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
eldariof has quit []
AlbireoX`Laptop has quit [Remote host closed the connection]
AlbireoX has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
vitor-br has quit [Quit: Saindo]
a_a_g has joined #ruby
lggr has joined #ruby
xaq has quit [Remote host closed the connection]
freeayu has joined #ruby
invisime has left #ruby [#ruby]
dunric has joined #ruby
<dunric> @botsnap
stuartrexking has quit [Quit: Linkinus - http://linkinus.com]
tagrudev has joined #ruby
<Hanmac> dunric i think you are in the wrong channel ...
lggr has quit [Ping timeout: 246 seconds]
dunric has left #ruby [#ruby]
macmartine has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
ananthakumaran has joined #ruby
dunric has joined #ruby
dunric has left #ruby [#ruby]
lggr has quit [Ping timeout: 264 seconds]
xaq has joined #ruby
m3pow has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120907231657]]
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
dunric has joined #ruby
<dunric> :)
* dunric ♫
dunric has left #ruby ["WeeChat 0.3.8"]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
joofsh has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
dmiller has joined #ruby
<Hanmac> ♭♬
cj3kim has quit [Quit: This computer has gone to sleep]
dmiller has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
bobnormal has joined #ruby
Chryson has quit [Quit: Leaving]
<bobnormal> what does it mean when eventmachine crashes with "in 'start_tcp_server': no acceptor (RuntimeError)" ?
zeromodulus has quit [Remote host closed the connection]
fantazo has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 264 seconds]
xaq has quit [Remote host closed the connection]
m3pow has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
CodeFriar has joined #ruby
a_a_g has quit [Quit: Leaving.]
c0rn_ has joined #ruby
drago757 has quit [Quit: drago757]
bobnormal has quit [Quit: Leaving]
senny has joined #ruby
senny has quit [Remote host closed the connection]
lggr has joined #ruby
horofox has quit [Ping timeout: 246 seconds]
yoklov has quit [Quit: computer sleeping]
justinmcp has quit [Remote host closed the connection]
senny has joined #ruby
idletom has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
rippa has joined #ruby
derpops has quit []
rakl has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
lggr has joined #ruby
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mrdodo has quit [Remote host closed the connection]
machty_ has quit [Ping timeout: 264 seconds]
cardoni has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
dr_bob has joined #ruby
mrdodo has joined #ruby
RubyPanther has quit [Ping timeout: 240 seconds]
maesbn has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
arietis has joined #ruby
justinmcp has joined #ruby
gregorg_taf has quit [Changing host]
gregorg_taf has joined #ruby
gregorg_taf is now known as gregorg
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
mahmoudimus has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
kay-z has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
arturaz has joined #ruby
CodeFriar has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
lggr has joined #ruby
gabrielrotbart has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
peteyg_ has quit [Quit: leaving]
sepp2k has joined #ruby
maesbn has quit [Remote host closed the connection]
PragCypher has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
hadees has quit [Quit: hadees]
lggr has quit [Ping timeout: 264 seconds]
jasonkuhrt has joined #ruby
aganov has joined #ruby
rubious has quit [Quit: Linkinus - http://linkinus.com]
himsin has quit [Remote host closed the connection]
framling has joined #ruby
hadees has joined #ruby
lggr has joined #ruby
Bosox20051 has quit [Quit: Leaving]
dmiller has joined #ruby
jasonkuhrt has quit [Ping timeout: 264 seconds]
senny has quit [Remote host closed the connection]
<sent-hil> i think the port is already being used
cardoni has joined #ruby
cezar has joined #ruby
cezar has quit [Client Quit]
dmiller has quit [Ping timeout: 264 seconds]
maesbn has joined #ruby
senny has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
senny has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
senny has joined #ruby
ibash has joined #ruby
ibash has quit [Client Quit]
djdb has joined #ruby
ryanf has quit [Quit: leaving]
lggr has joined #ruby
Neil_ has quit [Remote host closed the connection]
rohit has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
flingbob has joined #ruby
Nathandim has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
LouisGB has joined #ruby
ken_barber has joined #ruby
rakl has quit [Quit: sleeping]
lggr has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
elaptics`away is now known as elaptics
ken_barber has quit [Ping timeout: 264 seconds]
Solnse has joined #ruby
Banistergalaxy has joined #ruby
a_a_g has joined #ruby
lolmaus has joined #ruby
lggr has joined #ruby
alextheger has joined #ruby
tyfighter has joined #ruby
alextheger has left #ruby [#ruby]
flingbob has quit [Remote host closed the connection]
Eldariof18-ru has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
tr4656 has joined #ruby
Solnse2 has joined #ruby
zeromodulus has joined #ruby
rohit has quit [Ping timeout: 244 seconds]
kay-z has quit [Quit: Leaving...]
RichieEvan has joined #ruby
Vinzgore has joined #ruby
Solnse has quit [Ping timeout: 246 seconds]
budha has joined #ruby
rohit has joined #ruby
<RichieEvan> hello ruby I've decided to start learning you, hopefully it will be a fun journey
Solnse2 has quit [Ping timeout: 245 seconds]
RubyPanther has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
vaclavt has joined #ruby
xpen has joined #ruby
mrdodo has quit [Remote host closed the connection]
rohit has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
timonv has joined #ruby
fyolnish_ has quit [Remote host closed the connection]
Solnse has joined #ruby
RichieEvan has quit [Ping timeout: 260 seconds]
pingfloyd has quit [Quit: pingfloyd]
stephenjudkins has quit [Quit: stephenjudkins]
Solnse2 has joined #ruby
bigkevmcd has joined #ruby
SCommette has joined #ruby
sent-hil has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 264 seconds]
elaptics is now known as elaptics`away
Solnse2 has quit [Client Quit]
lggr has joined #ruby
SCommette has quit [Client Quit]
fyolnish_ has joined #ruby
MasterIdler has quit [Ping timeout: 246 seconds]
Neil_ has joined #ruby
amaya_ has joined #ruby
RichieEvan has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
flype has joined #ruby
bigmac has joined #ruby
<bigmac> how do i retry if socket gives me error
<bigmac> retry if sock=TCPSocket.open("www.facebook.com",80)==@error
<bnagy> begin .. rescue retry end
Forevernade has joined #ruby
<bigmac> its just rescute on the next line after sock=TCPSocket.open("www.facebook.com",80)
und3f has joined #ruby
bodik has joined #ruby
lggr has joined #ruby
<bigmac> begin rescue retry else end
<bnagy> no else
<bnagy> begin; #do stuff; rescue; retry; end
<bnagy> as soon as it doesn't error it will continue after end
dmiller has joined #ruby
ttt_ has quit [Read error: Connection reset by peer]
<bigmac> what was print "last #{@error}"
<bigmac> %error
<bigmac> im not sure
<bnagy> ?
<bnagy> last error is in $! - warn "Failed - #{$!}"
ttt has joined #ruby
<bigmac> $! ,-)
<bigmac> thank you
<bigmac> i new some one named bnagy
<bigmac> 253 ?
<bnagy> it's a very common hungarian surname
lggr has quit [Ping timeout: 246 seconds]
Iszak has joined #ruby
dmiller has quit [Ping timeout: 252 seconds]
RichieEvan has quit [Quit: RichieEvan]
skogis has joined #ruby
tyfighter has quit [Quit: tyfighter]
lggr has joined #ruby
\13k has joined #ruby
bradhe has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
jgrevich has quit [Quit: jgrevich]
haxrbyte has joined #ruby
justinmcp has quit [Remote host closed the connection]
alex88 has joined #ruby
drub has joined #ruby
bigmac has quit [Quit: Leaving]
<alex88> hi guys, can i ask here for ruby on rails within apache mod passenger support? because i'm trying to run graylog2 within passenger and i have to select the production environment
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
chussenot has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 248 seconds]
<drub> hello all am fairly new to programming and ruby in particular and was wondering if anyone could help show me how to writer a tree iterator with different levels in ruby?
<Hanmac> alex88 #rubyonrails
<alex88> Hanmac: thank you!
k610 has joined #ruby
Vainoharhainen has joined #ruby
doomMonkey has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
berserkr has joined #ruby
iocor has joined #ruby
zigomir has quit [Quit: Leaving]
lggr has joined #ruby
ztirf has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
monkegjinni has joined #ruby
wallerdev has quit [Quit: wallerdev]
lggr has joined #ruby
zigomir has joined #ruby
senny has quit [Remote host closed the connection]
matrixise has joined #ruby
elaptics`away is now known as elaptics
timmow has joined #ruby
a_a_g has quit [Quit: Leaving.]
a_a_g has joined #ruby
sent-hil has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<shevy> drub hmm
<shevy> I have an ascii tree :P
ForevernadeAFK has joined #ruby
m3pow has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120907231657]]
<shevy> drub, here is my ascii tree :P http://pastie.org/4770815
senny has joined #ruby
haxrbyte_ has joined #ruby
<drub> thank you very much shevy let me go through this
zigomir has quit [Ping timeout: 268 seconds]
baphled has joined #ruby
zigomir has joined #ruby
mrdodo has joined #ruby
lggr has joined #ruby
josh^ has quit [Ping timeout: 246 seconds]
zommi has joined #ruby
zommi has left #ruby [#ruby]
<drub> shevy this looks very intense haha
haxrbyte has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
<drub> is this the most basic implementation of a tree traversal with many levels?
arkiver has joined #ruby
tvw has joined #ruby
josh^ has joined #ruby
bobbbo has joined #ruby
mrdodo has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
hoelzro|away is now known as hoelzro
jasonkuhrt has joined #ruby
lggr has joined #ruby
Criztian has joined #ruby
notVert has joined #ruby
jasonkuhrt has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
lkba has quit [Quit: Bye]
Xeago has joined #ruby
bradhe has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
tr4656 has quit [Quit: ZNC - http://znc.in]
doomMonkey has joined #ruby
lggr has joined #ruby
Vinzgore has quit [Remote host closed the connection]
thunderstrike has joined #ruby
pskosinski has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
hoelzro is now known as hoelzro|away
F1skr has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
bradhe has quit [Ping timeout: 240 seconds]
frogprince_mac has joined #ruby
zigomir has joined #ruby
lggr has joined #ruby
workmad3 has joined #ruby
Shrink has quit [Ping timeout: 244 seconds]
fyolnish_ has quit [Remote host closed the connection]
adambeynon has joined #ruby
fyolnish_ has joined #ruby
cascalheira has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
fyolnish_ has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
hiroyuki has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<shevy> drub nah it's too complex
<shevy> but I like classes
<shevy> it's like putting things into a container, labelling it, and storing it in a shelf
lggr has joined #ruby
<shevy> (when the logic is stored in classes, respectively used via methods)
iocor has quit [Quit: Computer has gone to sleep.]
<shevy> drub you should build up slowly on your own, for example, I am quite sure you will need to use at least one array for your problem
<shevy> drub are you comfortable with irb yet?
<drub> yes am comfortable with irb now
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<shevy> ok good, irb is always a good start
<shevy> the available methods for an Array, in ruby, can be found at http://www.ruby-doc.org/core-1.9.3/Array.html
<shevy> hmm the methods I use the most are << and []
<shevy> array = []; array << 'cat'; array << 'dog'; array[1]
<drub> ok << is to append and [] is to create an empty array right?
<shevy> << is to append, yes
<shevy> yeah
lggr has quit [Ping timeout: 244 seconds]
<shevy> [] is almost the same as Array.new
<shevy> but [] is also used to access the element there
nohonor has joined #ruby
<shevy> the above code could be rewritten like:
<shevy> array = Array.new; array << 'cat'; array << 'dog'; array[1]
ttt has quit [Remote host closed the connection]
<shevy> but [] is shorter, and a tiny bit faster too
<drub> oh that i get
<drub> makes sense
<shevy> array[1] is accessing the second element of the array
<Hanmac> you could cat directly like: array << 'cat' << 'dog'
<shevy> yeah, like in C++
freeayu__ has joined #ruby
<shevy> cout << "Hanmac knows more C++ than Ruby" << endl;
<shevy> drub now for your tree iterator with different levels...
<Hanmac> knowing c++ is not so bad :P
<shevy> hehe
<bobbbo> does arr << cat << dog give you arr[1] = cat, arr[2] = dog, or arr[1] = catdog
<shevy> yeah... you can write ruby bindings for C++ things :P
freeayu has quit [Ping timeout: 268 seconds]
<shevy> bobbbo, index starts at [0], so the first element is [0], the second element is [1] and so forth
Shrink has joined #ruby
<bobbbo> ok sure, 0/cat 1/dog ?
<shevy> so arr[2] would be nil, as it has only two elements
<shevy> yeah
<bobbbo> kool :)
lggr has joined #ruby
<shevy> drub for your tree iterator, you should first think a bit what information you will need to collect
<drub> ok
<shevy> or perhaps how you want to store it hmm
<shevy> once you have it stored properly, displaying this data is trivial
<Hanmac> shevy: http://jezebel.com/5945024/did-mitt-romney-seriously-just-wear-brownface-to-appear-on-univision << look, the white guy was to long in the sun :D
ttt has joined #ruby
<drub> so from what i understand am supposed to do something to the root node
<shevy> Hanmac hehe... the USA must love shows... all this fakeness and "need to look good" crap ...
<shevy> what comes next... lip gloss? :P
<drub> or rather process it in someway
<shevy> drub yeah, I suppose that is your entry level... the respective root node
<shevy> with file systems, this is easy
<shevy> like, what files are stored in which directories
ltsstar has joined #ruby
<shevy> ruby uses Dir class for that
<shevy> for instance
<shevy> Dir['/*']
<shevy> you can try that in IRB. this will try to get all files and directories in the / root level
<shevy> an array
apok_ has joined #ruby
<Spitfire> Or use filetools
lggr has quit [Ping timeout: 245 seconds]
<Hanmac> th Pathname klass is funny too
rtdp has joined #ruby
<shevy> you can compare the above Dir, with this Dir drub: Dir['/*/**']
Banistergalaxy has quit [Ping timeout: 264 seconds]
<drub> i get the error "undefined method Dir"
<drub> is it supposed to belong to a particular class?
apok has quit [Ping timeout: 244 seconds]
apok_ is now known as apok
kryl99_ has joined #ruby
seoaqua has quit [Ping timeout: 256 seconds]
arkiver has quit [Quit: Leaving]
lggr has joined #ruby
F1skr has quit [Ping timeout: 260 seconds]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ij has left #ruby ["WeeChat 0.3.7"]
dmnd has quit [Quit: dmnd]
jasonkuhrt has joined #ruby
<shevy> drub hmmm
<shevy> what do you get when you do
<shevy> Dir.class ?
bobbbo has quit [Quit: bobbbo]
<shevy> drub the convention is in ruby, that upcased names are constants
<shevy> Dir is a constant
<shevy> Dir() is a method call however
<shevy> you will always see things like:
bradhe has joined #ruby
<shevy> module Foo, or, class Bar
<shevy> and never
<shevy> module foo, class bar
<shevy> you see that distinction?
<drub> oh ok
<drub> yes i do
<shevy> Dir should be available though... I am not sure why you get this odd error "undefined method Dir"
<drub> Dir.class returns Class
<timmow> is !!array.index {|x| x.prop == value} the best way to check for existence of an object with certain condition in an enumerable / array and give boolean result?
<Hanmac> it seems he uses Dir() but he should use Dir[]
lggr has quit [Ping timeout: 252 seconds]
chussenot has quit [Read error: Connection reset by peer]
jasonkuhrt has quit [Ping timeout: 246 seconds]
<drub> no i actually used Dir[]
<shevy> drub ok so we now know, Dir exists
dmiller has joined #ruby
chussenot has joined #ruby
<shevy> drub when I do this Dir['/*'] in irb, I get back an array with the entries of my filesystem at /
<shevy> if that does not work for you, then something is odd
<shevy> you could try to put this into a .rb file though and call it
bobbbo has joined #ruby
<shevy> like, create a new file... test.rb
<shevy> and put this into it:
<drub> oh its ok now
<shevy> puts Dir['/*'].join ', '
<shevy> ok good
bradhe has quit [Ping timeout: 240 seconds]
<shevy> with Dir[] you can also get all subdirectories, and their contents
<shevy> Dir['/*/**']
justinmcp has quit [Remote host closed the connection]
<shevy> now, if you want to count the level, you could count the numbers of "/"
<shevy> you could build a hash from this array
justinmcp has joined #ruby
<shevy> to count how many characters are in a string you can use .count
<shevy> like "abc/def/ghi".count('/')
<shevy> would return 2
dmiller has quit [Ping timeout: 240 seconds]
<shevy> ruby is like a very succint dialect of english language :)
yasushi__ has quit [Ping timeout: 268 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
m3pow has joined #ruby
lggr has joined #ruby
erdos has quit []
<drub> am loving it a lot
<drub> just a bit anxious coz i have a ton of homework and its a bit advanced for my level
<shevy> yeah it takes a little while to get used to things
<shevy> but, all the scripting languages are quite similar
<drub> so am kind of learning it on the go
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy> so when you learned one, it should be easy to learn another scripting language
<shevy> I learned (the little I know about) Regexes from a perl book
krz has joined #ruby
<drub> thank you very much for all the help today though
kryl99_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<drub> really appreciate it
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
hbpoison has joined #ruby
hbpoison has quit [Client Quit]
lggr has quit [Ping timeout: 246 seconds]
a_a_g has left #ruby [#ruby]
m3pow has quit [Remote host closed the connection]
hbpoison has joined #ruby
m3pow has joined #ruby
xpen has quit [Remote host closed the connection]
<shevy> sure
<shevy> I first got into perl, then PHP, then ruby
<shevy> from these 3, ruby is the best in my opinion
<shevy> I could have gone perl, php, python though
<shevy> but the old matz interview made me try ruby first
<Xeago> python looked like magic to me, hence I went to ruby
<shevy> drub, here is the old interview http://www.artima.com/intv/ruby.html - matz made a few really great points
<shevy> "The Philosophy of Ruby"
<shevy> Xeago, hehe
<Xeago> even tho everyone says there's no magic in python and python hates magic
sent-hil has left #ruby [#ruby]
sent-hil has joined #ruby
<shevy> hmm Xeago
<shevy> if you would have to pick from: perl, php, python. but you can pick only one... for your own use, but also when you need to work for clients, which one would you pick?
lggr has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
<drub> ok am out have a good one shevy and thanks again!
wuzzzzaah has joined #ruby
nari has quit [Ping timeout: 260 seconds]
drub has quit [Quit: Page closed]
lggr has quit [Ping timeout: 252 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
arkiver has joined #ruby
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
nilg` has joined #ruby
lggr has joined #ruby
nilg has quit [Ping timeout: 244 seconds]
zz_chrismcg is now known as chrismcg
sergy has joined #ruby
ltsstar has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
<ndrei> Hello
<ndrei> I'm having some issues with Pry. 'show-doc' doesn't work properly, for instance, 'show-doc File.read' generates this error 'Error: Cannot locate this method: read. Try `gem install pry-doc` to get access to Ruby Core documentation.'
<ndrei> I've installed the 'pry-doc' gem, but still, the same
lggr has quit [Ping timeout: 256 seconds]
haxrbyte_ has quit [Ping timeout: 246 seconds]
<ndrei> This issue also occurs with ri, so 'ri File.read' generates 'File.read not found, maybe you meant: File::read_binary'
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
arkiver has quit [Quit: Leaving]
rtdp has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
timonv has joined #ruby
iori has quit [Remote host closed the connection]
<Hanmac> ndrei whats your ruby version?
ij has joined #ruby
haxrbyte has joined #ruby
<Hanmac> File.read is "new" ... maybe your ruby version is to old :(
<ij> Are the same Fixnums' object_ids in other ruby implementations the same? (thus 3 === 3?)
<Hanmac> 3.object_id returns 7 for me
lggr has quit [Ping timeout: 246 seconds]
<ij> clarification: other than MRI*
<Hanmac> jruby shows 7 too
<ij> Cool.
Shrink has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
bradhe has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
BrokenCog has quit [Quit: leaving]
rtdp has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
jimeh2 has joined #ruby
nilg` has quit [Ping timeout: 252 seconds]
jimeh has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 240 seconds]
answer_42 has joined #ruby
timonv has quit [Remote host closed the connection]
dmiller has joined #ruby
alex88 has quit [Quit: Bye bye guys ;)]
Shrink has joined #ruby
lggr has joined #ruby
Guedes_out is now known as Guedes
flaccid_ has left #ruby [#ruby]
dmiller has quit [Ping timeout: 268 seconds]
hemanth has quit [Quit: Leaving]
matrixise has quit [Read error: No route to host]
ztirf has quit [Ping timeout: 252 seconds]
frogprince_mac has joined #ruby
timonv has joined #ruby
larissa has joined #ruby
ztirf has joined #ruby
matrixise has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-people) Red Eclipse servers: http://altred.tk/list]
lggr has quit [Ping timeout: 248 seconds]
haxrbyte has quit [Remote host closed the connection]
ztirf has quit [Client Quit]
haxrbyte has joined #ruby
Elhu has joined #ruby
eikko has joined #ruby
aganov has quit [Remote host closed the connection]
yalue has joined #ruby
elsifaka has quit [Quit: Veloma e!]
elsifaka has joined #ruby
lggr has joined #ruby
s1n4 has joined #ruby
aganov has joined #ruby
<shevy> is there something like webmin for ruby? webmin is written in perl mostly, and a few .sh shell scripts
xpen has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
* shevy pokes Hanmac
<Hanmac> ... what does webmin?
ForevernadeAFK has quit [Read error: Connection reset by peer]
<Xeago> why do oyu want an administration interface in a specific language
<Xeago> who cares what it is written in, what matters is what it can administer
diegoviola has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
pskosinski has joined #ruby
machty has joined #ruby
bigkevmcd has quit [Quit: outta here]
bigkevmcd has joined #ruby
s1n4 has quit [Quit: leaving]
bradhe has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
ph^ has quit [Remote host closed the connection]
mucker has joined #ruby
freeayu has joined #ruby
freeayu__ has quit [Ping timeout: 264 seconds]
dpk has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
fbernier has quit [Read error: Connection reset by peer]
allyraza has quit [Ping timeout: 244 seconds]
lolzie has joined #ruby
<ij> Xeago, Maybe he wants to edit it.
<Xeago> there's a plugin adapter for that
<ij> edit != writing plugins
<Xeago> wanting to edit a project for some goal, without knowing any of it's functionality or features is weird to me
Nathandim has quit [Read error: Connection reset by peer]
Guest64548 has joined #ruby
wuzzzzaah has quit [Quit: wuzzzzaah]
<ij> It's shevy.
lggr has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
linoj has joined #ruby
josh^ has quit [Remote host closed the connection]
zaydana has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
niklasb has joined #ruby
invisime has joined #ruby
<invisime> turns out, creating a chroot jail is harder than I thought.
F1skr has joined #ruby
lggr has joined #ruby
<ij> invisime, What exactly did you find hard about it?
<ij> IMO it's rather easy.
<ij> The securing part?
sent-hil has quit [Remote host closed the connection]
JohnBat26 has quit [Remote host closed the connection]
<invisime> ij: the getting the bins and libs in there correctly.
trevortwining has joined #ruby
jasonkuhrt has joined #ruby
<Hanmac> invisime the bast bot has only a few bins
<ij> I did that with the pkg manager, simply by setting different root directory.
<ij> Archlinux powery.
lggr has quit [Ping timeout: 246 seconds]
<Xeago> invisime: did you try vagrant?
<Hanmac> this are the bins the last bot has, ["usr/bin/timeout", "usr/bin/node", "usr/bin/ruby", "usr/bin/gem", "usr/bin/sudo", "usr/bin/pkill"]
eikko has quit [Ping timeout: 244 seconds]
yshh has quit [Remote host closed the connection]
jasonkuhrt has quit [Ping timeout: 240 seconds]
philcrissman has joined #ruby
dmiller has joined #ruby
<invisime> Xeago: yeah, the chef files confused the crap out of me.
allyraza has joined #ruby
<invisime> Xeago: and I don't think my intended host box would deal well with running a complete VM under the hood. it was originally intended to just be a file server.
notVert has quit [Ping timeout: 252 seconds]
moshef has joined #ruby
<invisime> Hanmac: the bins are the problem as much as the ldds. at least since I've decided to make the install process more push button so the next guy can get set up easier.
<invisime> aren't*
<moshef> why do I see, in documentation of methods (of rails for example) people refer to the params/variables as +param_name+ ? any reason?
dmiller has quit [Ping timeout: 245 seconds]
<invisime> moshef: that's so the rdoc formats all nicely.
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
<invisime> moshef: I think the + is for fixed width font?
<Hanmac> invisime ... symlinks are not possible or?
mark_locklear has joined #ruby
Forevernade has joined #ruby
<invisime> Hanmac: not symbolic ones, anyway. and hard links to important binaries kind of scare me.
jaydg has quit [Quit: Verlassend]
lkba has joined #ruby
<Hanmac> are you sure sympolic does not work? ... ask the bot creator how he manage that ...
eikko has joined #ruby
Poapfel has quit [Quit: WeeChat 0.3.7]
<invisime> Hanmac: he said he just copied. but he did so manually. and, as I said, I want to make an outcome of this to be push-button installation.
lggr has quit [Ping timeout: 252 seconds]
shiki has quit [Remote host closed the connection]
<invisime> Hanmac: I found a utility that claims to copy binaries/libs with symlinks intact to chroot jails, but it was giving me errors. http://www.dzone.com/snippets/copy-files-chrooted-env
<invisime> a big part of the problem is that my bash-fu isn't where it needs to be.
workmad3 has joined #ruby
<moshef> invisime: THANKS
<Xeago> invisime: do it manually in a vagrant
shiki_ has joined #ruby
<Xeago> make it a box
timonv has joined #ruby
<Xeago> and then it's just re-installing that box
yshh has joined #ruby
<Xeago> whenever something needs to be changed, make the change how you'd want to (no editing of scripts that set up the environment), and make the box
lkba has quit [Ping timeout: 240 seconds]
<Xeago> invisime: if you can send me the instructions jraf sent you, I'll see if I have time to make a vagrantbox
<invisime> Xeago: two objections to that: 1) I'd probably have to learn chef, which I'm not particularly interested in. 2) I don't think my intended host can run a virtualbox instance.
alextheger has joined #ruby
fbernier has joined #ruby
<invisime> Xeago: that might solve the first problem, but probably not the second one. pm me your email?
<Xeago> vagrantboxes usually require little memory, the default is around 256-300 mb
bradhe has joined #ruby
alextheger has left #ruby [#ruby]
kpshek has joined #ruby
<Xeago> I've ran 4 hlds's in vagrant with 512mb, 64 players max, then memory became an issue
<invisime> Xeago: maybe I'm over-estimating how much I'd have to dedicate to VM.
<Xeago> not sure what the usage of al2o3cr is, anyone has information on this?
ZachBeta has joined #ruby
lggr has joined #ruby
cardoni has quit [Quit: Leaving...]
carloslopes has joined #ruby
<invisime> Xeago: you just run "ruby bot.rb".
<invisime> Xeago: one of the other things I was thinking of doing was writing a small init.d script to bring the bot up and down.
notVert has joined #ruby
iocor has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 240 seconds]
<Xeago> well, I do understand what chrooting is, but not how to accomplish it, lol
flype has joined #ruby
<Xeago> gotta read the email a few more times
sagax has joined #ruby
eikko has quit [Ping timeout: 268 seconds]
xpen has quit [Ping timeout: 252 seconds]
verto|off is now known as verto
alek_b has quit [Remote host closed the connection]
xpen has joined #ruby
<shevy> Xeago it's not about the interface, it is what one can do in the respective language
<shevy> it's like with PHP - it's a fairly awful language as a whole, but mediawiki is awesome and so is phpbb
<Xeago> am still baffled
zigomir has quit [Ping timeout: 245 seconds]
<workmad3> Xeago: iirc, chrooting is just done with the 'chroot' command
lggr has joined #ruby
moshef has quit [Quit: moshef]
<Xeago> mediawiki is unsuitable for the tasks it fulfills - The authors..
<workmad3> Xeago: the harder part of a chroot jail is making sure you have the right stuff available in it
<shevy> wikipedia is still the largest wiki on planet earth
<Xeago> shevy: agree :)
<shevy> it's not that good though
<shevy> I'd wish they would change some things, often when reading an article, I seem to be overwhelmed with details that are not really important :(
<Xeago> there's the simple english language for that lol
<Xeago> tho, the coverage is low
frogprince_mac has quit [Quit: Leaving...]
machty has quit [Quit: machty]
<workmad3> shevy: you could always add a summary section to articles where you find that's the case
chrismcg is now known as zz_chrismcg
adambeynon has joined #ruby
berserkr has quit [Read error: Connection reset by peer]
nga4 has joined #ruby
nilg has joined #ruby
<shevy> we need some kind of brilliant AI that rewrites all of wikipedia with a certain style
<shevy> like a teacher
matthewrobbins has joined #ruby
<Xeago> lol
<workmad3> shevy: nice idea
<workmad3> shevy: shame I don't think it would work :P
<workmad3> shevy: one style does not fit all
lggr has quit [Ping timeout: 260 seconds]
<shevy> :(
zaydana has quit [Quit: zaydana]
senny has quit [Remote host closed the connection]
<workmad3> shevy: I think even you would agree that a good style for writing up a comic book series would not be the same as a good style for talking about quantum tunnelling
ncamargo is now known as BIGX333
<shevy> hey
cantonic has joined #ruby
fantazo has joined #ruby
<shevy> I had a friend who only looked at the pictures in comics :)
<workmad3> shevy: hah :D
<shevy> he collected like all donald duck books back then
<shevy> workmad3, well, something like a teacher who would be more clever and could know what kind of answers one would desire
<workmad3> shevy: yes, but that's an even more advanced AI :P
<Xeago> shevy: I've rarely seen teachers that are that good lol
<shevy> perhaps a learning AI for every human being
senny has joined #ruby
<shevy> Xeago hehe yeah
<shevy> there are some who know a lot, but who fail at giving a good lecture
Poapfel has joined #ruby
<invisime> shevy: actually, you laugh, but I read an article about doing the opposite: an AI that every student teaches. not to make the AI smarter, but to give the student the practice of explaining something.
timrom has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
ph^ has joined #ruby
cardoni has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
<Hanmac> invisime what would really cool: an AI/Robot that really "belives" that is human :P
<lolzie> Hanmac: quite likely the first "real" AI would do that
krz has quit [Quit: krz]
<lolzie> Hanmac: Human Brain Project, heard of that?
tommyvyo has joined #ruby
zigomir has joined #ruby
nari has joined #ruby
<Hanmac> yeah i heard
lggr has quit [Ping timeout: 246 seconds]
<shevy> invisime hmm that isn't bad, often when trying to explain something to someone else, one can quickly notice if one has success at that or fails
<shevy> though, teaching an AI sounds a bit ... geeky
nanderoo has joined #ruby
<Hanmac> shevy but if this works ... it would cool
ph^ has quit [Ping timeout: 264 seconds]
<Hanmac> better would be an AI wich could read and understand what it reads ... :D
<invisime> shevy: yeah, I couldn't find the article I was talking about. it hides the innards. since a school kid is probably going to have a harder time with a concept map than they would with the fraction/decimal conversions or whatever they're supposed to be learning.
<invisime> Hanmac: that field is called natural language processing.
justinmcp has quit [Remote host closed the connection]
<invisime> and it's hard.
<Hanmac> so it does not work yet? :(
<workmad3> invisime: it's not just natural language processing, it's also getting into what 'understanding' actually means
<Xeago> soon we no longer have programming languages! we'll just write english
<Xeago> and then we can point our compiler at wikipedia
<lolzie> Hanmac: in my lifetime, we are forecasted to have the computing power to not only run one human brain, but the entire human races'
<Xeago> and we have all the programs in the world :D
<lolzie> Matrix time!
<invisime> workmad3: in order to resolve many types of ambiguity, the ontology has to be there.
<Hanmac> i want to met the first AI wich read and understand the entire wikipedia :D
<workmad3> invisime: yes, but does an ontolgy actually constitute 'understanding'?
<invisime> workmad3: by my interpretation of the chinese room, yes.
failshell has joined #ruby
<workmad3> invisime: even with an ontology, it's still just transforming one symbol into another
<failshell> hello. does anyone know of a gem that would list installed packages on a machine? like RPMs or dpkgs?
<invisime> workmad3: even with your squishy brainmeats, you're still just transforming one symbol into another. :-P
<workmad3> invisime: yes, so do we actually 'understand' things?
<workmad3> invisime: this is the issue ;)
<invisime> workmad3: <3
adeponte has quit [Remote host closed the connection]
<workmad3> invisime: which gets to the root of what 'understand' actually means :)
xpen_ has joined #ruby
lggr has joined #ruby
<workmad3> invisime: and we don't know enough about squishy brainmeats to know if, fundamentally, we are just transforming symbols or if something else is occuring
<invisime> workmad3: we are capable of understanding things enough for lossy data storage/transmission to take place.
thone_ has joined #ruby
<invisime> workmad3: not in an exact way, but conceptually, it's some kind of computation. the same way (without appropriate debuggers), you don't know what the assembly or machine language looks like for any code you're running. nor could you predict which nand gates point which way on the chip at any given tick.
<invisime> workmad3: the systems are just too complex to hold all of the metalevels in your head at once.
<workmad3> invisime: yes, but I know that the nand gates are actually being invoked and performing that style of computation
<lolzie> I would imagine Ketamine has great potential for inspiring AI designers.
MasterIdler__ has joined #ruby
<workmad3> invisime: the same is not true with thought processes... we don't know that consciousness is actually operating in that fashion, it's just a good way to think about it
krawchyk has joined #ruby
<lolzie> Especially when combined with MDMA too.
tvw has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 246 seconds]
<workmad3> invisime: which is what I mean... we don't know that squishy brainmeats work in the same conceptual way as computation, or if something fundamentally different is going on but can to some extent be modelled by symbolic transformation
<workmad3> invisime: sort of like the difference between newtonian mechanics and relativity
<invisime> workmad3: I believe that brains are turing complete. :-P
thone has quit [Ping timeout: 244 seconds]
<workmad3> invisime: believe away, my point is that it hasn't been proven ;)
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
frogprince_mac has joined #ruby
shiki_ has quit [Remote host closed the connection]
<workmad3> invisime: it's an unknown... are brains actually operating under turing complete limitations, or are we fundamentally different
linoj has quit [Quit: linoj]
<invisime> workmad3: of course not. neuroscience is still looking for its first dominant scientific paradigm.
<lolzie> I believe the human brain is an autonomous information gathering system with established goals. It operates upon its gathered information to perform evaluations to lead towards these goals.
otters has quit [Ping timeout: 268 seconds]
<invisime> lolzie: they're not established. they're based on complex interactions with other wetware via hormones and neural stimulus.
linoj has joined #ruby
<lolzie> invisime: the goals may be revised, I don't deny that
<lolzie> But any time it is operating, it has goals established. Mutable.
kryl99_ has joined #ruby
<lolzie> These are revelations poignantly discovered on the influence of a combination of Ketamine/MDMA recently.
kryl99_ has quit [Client Quit]
<lolzie> A truly profound combination, I feel upgraded after the experience as a biocomputer.
<shevy> hehe
<workmad3> I'm dubious of any claims made under the influence of chemicals that provably alter the way the brain works
ddv has quit [Ping timeout: 246 seconds]
<invisime> lolzie: self-hacking is dangerous. but potentially rewarding.
<lolzie> workmad3: I love you, let's see
<lolzie> workmad3: are you asserting that the Darwinian survivalism has produced the very most perfect optimal human brain
<workmad3> that said, I'm also dubious of claims made not under said influence
<shevy> workmad3, what about natural drugs. when you are running for one hour straight and the body gives out dopamine and endorphines
<shevy> those are chemicals too!
<workmad3> lolzie: fuck no :)
<workmad3> I'm just dubious of claims ;)
<invisime> ^
<shevy> I am going to hack on me a third arm on my back
<lolzie> workmad3: as you should be, let me tell you though
jbw has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<lolzie> The other night, I was more objective than ever. And it has rubbed off on me still, as habit.
<workmad3> lolzie: how do you know you were more objective than ever?
dmiller has joined #ruby
<lolzie> I was talking with my friend, for approx 10 hours straight. I was communicating incredible amounts of information in short spaces of time - complex concepts, talking fast.
<invisime> shevy: it's been done: http://en.wikipedia.org/wiki/Stelarc
<workmad3> lolzie: how do you know that the drugs weren't just making you think you were more objective than other while actually altering your biases and making you even more biased and irrational than usual?
<workmad3> s/other/ever
<shevy> lolzie about which topics
<workmad3> lolzie: was your friend also under the influence?
<workmad3> lolzie: was his judgement also potentially compromised?
<lolzie> workmad3: we both shared a quantifiably improved rate of understanding - not once did he not understand what I said. It was as if we were sharing a whiteboard, or a mental universe/scratchpad between us
CodeFriar has joined #ruby
havenn has joined #ruby
ddv has joined #ruby
<lolzie> And we had the exact same model of ideas in our heads. That is communication, after all. But it was so much more effective than usual.
<workmad3> lolzie: and is it quantifiable?
<workmad3> lolzie: or is that a subjective viewpoint?
<lolzie> workmad3: indeed he was; but the feedback of conversation proved he knew exactly what I was talking about
matthewrobbins_ has joined #ruby
<workmad3> lolzie: can you categorically prove that your judgement of that fact wasn't compromised by the drugs?
<lolzie> You could analyse it statistically, for sure. Less times than usual (never) did he say "what do you mean", yet I was talking faster than usual. Very cogently.
failshell has quit [Quit: leaving]
<workmad3> lolzie: or is it possible that the drugs actually impaired your judgement so that you were actually more likely to accept incomplete understanding?
<lolzie> workmad3: I admire your skepticism
matthewrobbins has quit [Ping timeout: 244 seconds]
matthewrobbins_ is now known as matthewrobbins
xaq has joined #ruby
spopescu has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
spopescu has left #ruby [#ruby]
<lolzie> workmad3: it seems incredibly unlikely. What he was saying matched my mental models of the ideas
<lolzie> I would have to be recreating the past in my head
<workmad3> lolzie: entirely possible even without drugs
mohits has quit [Ping timeout: 245 seconds]
<workmad3> lolzie: false memories that seem real is a provable phenomenon
dmiller has quit [Ping timeout: 268 seconds]
<lolzie> workmad3: I know
<lolzie> workmad3: yes but in this such precise and repeatable manner, with such intricate ideas, highly unlikely
<workmad3> lolzie: except that your judgement and mental state was potentially compromised
geekbri has joined #ruby
<lolzie> workmad3: it is beyond the point of reasonable doubt to me
<workmad3> lolzie: science doesn't work like a court of law... reasonable doubt isn't the metric to judge by
<lolzie> The way the conversation flowed, so engaged, everything so relevant
<lolzie> workmad3: OH.
<lolzie> workmad3: we discussed the next day what we had spoken about.
<lolzie> Completely consistent.
<workmad3> lolzie: that doesn't mean you haven't actually reached different conclusions
<lolzie> workmad3: we spoke considerably the next day because we found the previous night so profound. We were in complete agreement about our findings
<workmad3> lolzie: besides, anecdotal evidence isn't enough to go by for forming conclusions... it's an interesting hypothesis that might be worth further investigation under more rigourous frameworks though ;)
<lolzie> workmad3: agreed, I assert nothing more
jasonkuhrt has joined #ruby
<lolzie> workmad3: what the true beauty of our mental workings during that period was the apparent ability to completely shed one's mental model of assumptions.
<lolzie> Starting from complete scratch, apparently.
bradhe has joined #ruby
Nathandim has joined #ruby
nwest has joined #ruby
<workmad3> lolzie: that I'd take as evidence against your viewpoint tbh
binaryplease has joined #ruby
<workmad3> lolzie: it's impossible to start from scratch without assumptions... assumptions from our senses, the way our brain works, etc. colour *everything*
<lolzie> workmad3: are you familiar with John Lilly's works
<lolzie> workmad3: I did say apparently here - it isn't necessarily the ultimate.
lggr has joined #ruby
<workmad3> lolzie: yes, but you thought you were coming without assumptions... which indicates that your judgement of what constituted assumptions was impaired (to me)
<lolzie> Belief systems. Ideas are modeled in the mind. Shaped, limited and given meaning to by assumptions + beliefs.
<lolzie> We were able to tweak these assumptions and beliefs in fine detail, and we both maintained the same modified model in our minds, exploring it
<workmad3> interesting as this is though, I need to go get food :)
<lolzie> Then the limits, or assumptions, can be identified. And transcended. Thus each belief system can be transcended - to infinity.
<workmad3> now you've gone to the ridiculous :P
<lolzie> Which actually corroborates your point about it not being completely devoid of assumptions - which I agree with, now I say it
sspiff has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
zigomir has quit [Ping timeout: 245 seconds]
<workmad3> and the issue is that, if your judgement was impaired during the experience, then your memory of the experience is also likely to be impaired
<lolzie> workmad3: this is K-speak dude. You know when someone has spent good time in K-space. But as us K-spacers each understand each other, our mental models must be compatible.
<lolzie> You say ridiculous. Each belief system is unbelievable. ;)
<workmad3> lolzie: that's going into your own belief system though
lggr has quit [Ping timeout: 240 seconds]
<lolzie> workmad3: the true ability was for me to go outside of my own belief systems.
<workmad3> lolzie: 'K-space'... the way you just described it was as a faith - 'you can't know what I mean unless you have experienced it yourself'
<lolzie> workmad3: for example, I was able to adopt viewpoints that I would ordinarily not believe in, and really explore them. You see?
<workmad3> lolzie: I can do that without using drugs
<lolzie> workmad3: so can I - however, having experienced both; it is done in a much more poignant fashion under the influence of K
<workmad3> lolzie: except that you can't prove your judgement wasn't compromised
<workmad3> lolzie: so anything you say regarding it has to be taken under the view of skepticism
<lolzie> The anaesthesia gives the brain more computing capacity for ideas and mental models, not bothering so much with external sensory input
<lolzie> workmad3: I'm going to make a guess here, not that this affects the validity of what you say scientifically speaking
<workmad3> lolzie: and weighed against the viewpoint of 'this person has taken drugs that have compromised his reasoning'
<lolzie> I would guess you have not much experience with psychedelics, correct?
<workmad3> lolzie: none
<lolzie> That's just out of personal interest, not scientific inquiry per se
<lolzie> workmad3: it does show
<workmad3> lolzie: however, I am personally intrigued by your viewpoint
<workmad3> lolzie: and I find it kind of interesting
<lolzie> workmad3: given what I say about belief systems
<lolzie> You should know I really enjoy talking to you about this topic regardless of your own viewpoint
<workmad3> lolzie: right now I'm actually taking the viewpoint of complete skepticism, even though I'm not fully believing in it
Criztian has quit [Remote host closed the connection]
urma has joined #ruby
Spooner has joined #ruby
lolzie has quit [Quit: Page closed]
lolzie has joined #ruby
<lolzie> Sorry got d/c'd
<lolzie> As I was saying - I'm not offended by your skepticism or differing viewpoints, or wish to aggressively push my own belief system upon you
<lolzie> After all, my current belief system will quite certainly be transcended/modified as I progress further through time ;)
iamjarvo has joined #ruby
lggr has joined #ruby
theRoUS_ has joined #ruby
jbw has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
urma has quit [Ping timeout: 245 seconds]
<workmad3> lolzie: '14:25 < workmad3> lolzie: right now I'm actually taking the viewpoint of complete skepticism, even though I'm not fully believing in it' Not sure you got that ;)
<lolzie> workmad3: see, what me and my friend were effectively doing the other night, was adopting ...
<workmad3> lolzie: what I love doing personally is playing devil's advocate :)
<lolzie> I almost said "ridiculous" belief systems. But it's only ridiculous according to the assumptions of my current belief system operating in my mind
sailias has joined #ruby
<lolzie> My mental model's "fitness function" of "sensibility"
<Xeago> I'm thinking of loading my terminal configuration files into a ramdisk, any suggestions how?
<workmad3> lolzie: and the reason I said 'ridiculous' was because you were saying it could be transcended 'infinitely' :)
<Xeago> as my harddrive is slow
lggr has quit [Ping timeout: 252 seconds]
rtdp has quit [Ping timeout: 256 seconds]
zigomir has joined #ruby
<lolzie> workmad3: so ridiculous? Is the mind infinite?
<workmad3> lolzie: no
<lolzie> workmad3: visualise 3D space in your mind. Go to the end of it.
<lolzie> ;)
<lolzie> Or die trying.
h4mz1d has joined #ruby
<workmad3> lolzie: that's a flawed example ;)
<workmad3> lolzie: better would be - visualise a 3d space
<workmad3> now visualise a 4d space
<workmad3> now keep on going until you visualise an infinitely dimensional space
<lolzie> But yeah, essentially me and my friend were temporarily assuming radically different belief systems when considering mental models. And then attempting to validate them as best representing reality or attaining the best outcome in it
linoj_ has joined #ruby
<lolzie> And if it did better represent/outcome than our currently adopted models, we could integrate it. Otherwise, discard it.
rtdp has joined #ruby
otters has joined #ruby
<lolzie> Now you have to be careful doing this in such a state. If you integrate poor models into your mind, this could be dangerous. Essential to validate
enriclluelles has joined #ruby
maesbn has quit [Remote host closed the connection]
linoj has quit [Ping timeout: 252 seconds]
linoj_ is now known as linoj
timrom has joined #ruby
<lolzie> The biocomputer that is the brain has myriad "programs", or mental models with belief systems. These can operate at a level "outside" of conscious mind, which is why one must be careful to select them.
<invisime> Xeago: get your tech questions out of our drug philosophy discussion. :-P
<lolzie> Note I say "outside", I feel it has less unverifiable assumptions than "under" or "sub"
<workmad3> lolzie: you're venturing into pop-psychology now ;)
<lolzie> workmad3: psychology is psychology regardless of the popularity my friend ;)
<workmad3> lolzie: by which i mean the pseudo-pschology theories that are deemed 'popular' without necessarily having any actual basis
<workmad3> and they are popular because the seem to be 'reasonable'
<workmad3> *they
<Xeago> invisime: booh
<lolzie> workmad3: can you really deny that your brain has a whole stack of mental models and belief systems which it uses to operate?
<Xeago> lolzie: yes
<Xeago> I just did
<workmad3> lolzie: I can't deny it... I also can't confirm it
<Xeago> if it has anything that fulfills a function similair to a stack, it will be a heap
hashpuppy has joined #ruby
<workmad3> lolzie: that's the problem with pop-psychology... not being able to deny it is taken as confirmation
<lolzie> workmad3: I have the assumption that in life, things fall down. I have been programmed with this assumption having been environmentally programmed by inputs from this planet
<hashpuppy> looking at someone's code and they are rescuing and then calling send_data $!. what is $!?
<workmad3> lolzie: when the true answer is 'I don't actually know enough to confirm or deny it'
<lolzie> workmad3: a pen slips out of my hand, before seeing it move I know it's going DOWN based upon this established assumption, or "model of reality".
zigomir has quit [Ping timeout: 246 seconds]
<workmad3> lolzie: yes, but that doesn't mean that things fall down
<lolzie> And I move my hand down to try catch it. Is that not a pure example of the brain using assumptions + mental models to guide my operation in reality?
adambeynon has joined #ruby
<invisime> hashpuppy: it's a built-in ruby global that holds the value of the last raised error.
zeromodulus has quit [Remote host closed the connection]
<workmad3> lolzie: that's a potential explanation
timrom_ has joined #ruby
lggr has joined #ruby
<workmad3> lolzie: it's not the only reasonable explanation or only possible explanation though
<workmad3> lolzie: and thus it is not automatically the 'correct' explanation
timrom has quit [Ping timeout: 240 seconds]
<hashpuppy> invisime: thanks. is there a difference between using that and ex when you have "rescue => ex"?
<workmad3> lolzie: but it's a working explanation by which you can base some conjecture on
<lolzie> workmad3: hmm. What is it missing to make it sufficient evidence of causality?
nacengineer has quit [Remote host closed the connection]
<invisime> hashpuppy: yeah, there's a difference. especially if there's multiple threads.
<workmad3> lolzie: the issue is the assumption underneath it all that you are portraying... 'this is *an* explanation that fits, therefore it must be *the* explanation'
pu22l3r has joined #ruby
<lolzie> workmad3: well. Conversely, let's just say someone comes from another planet where things go up. They have their mental model, and their operation/response follows that one accordingly. Is that not sufficient logic?
<hashpuppy> invisime: in which case, ex is better
derpops has joined #ruby
<lolzie> Hmm.
<hashpuppy> right?
<workmad3> lolzie: as I said, it seems reasonable
<workmad3> lolzie: but reasonable doesn't make it correct
<workmad3> lolzie: it's *that* which is the problem
<Xeago> wait there's a term for this
<matti> ;]
<invisime> hashpuppy: yeah, globals are to be avoided where possible.
<hashpuppy> invisime: thanks a bunch
<invisime> hashpuppy: any time. :-)
<lolzie> workmad3: I think your point actually moves into the realm of philosophy, although science is certainly concerned with it - causality
<lolzie> Proving causality absolutely
greg_ has joined #ruby
<workmad3> lolzie: my point is actually related to pop-psychology
atmosx has quit [Remote host closed the connection]
<Xeago> the thing that is currently going on with the Standard Model, because of Higgs Boson
<Xeago> particle*
<workmad3> lolzie: and the acceptance of 'reasonable explanation' as equivalent to 'this is the correct explanation'
dr_bob has quit []
atmosx has joined #ruby
cardoni has quit [Ping timeout: 240 seconds]
paolooo has joined #ruby
<lolzie> workmad3: but isn't this what the entire scientific method is based upon? We only "know" causality if it fits our scientific model
lggr has quit [Ping timeout: 240 seconds]
<Xeago> what is it called that if you prove 99% of something, the other 1% can be aught to be true because of the successful verification of the 99%
<workmad3> lolzie: the scientific method isn't a method of proof though
<lolzie> Repeatability and such. The tweaking of a mental model producing a suitable tweaked result in the exact manner in which it was tweaked suggests direct relation
<workmad3> lolzie: it's a method of dis-proof
<workmad3> lolzie: things are accepted as the current most-accurate explanation or theory, not as the correct theory
<workmad3> and evidence mounts in favour of it until something disproves it
<lolzie> workmad3: agreed, we MIGHT be "violently agreeing" here
tro11 is now known as mynameisdeleted
<invisime> a short story one what science and rationality is good for: http://yudkowsky.net/rational/the-simple-truth
<invisime> on*
<workmad3> theories are never proven, they are only even accepted until disproved
<lolzie> The things I've asserted are only true within current models
<workmad3> exactly :)
Guest29702 has joined #ruby
<workmad3> and it's important to examine from within different models to see if that provides a more accurate predicition
Banistergalaxy has joined #ruby
<lolzie> workmad3: PRECISELY
<lolzie> That's what me and my friend were doing
<lolzie> And then integrating the better model into our normal modes of thinking
<lolzie> Of course, you don't want to do this (or otherwise get trapped in) a model of nihilism or "must kill humans" ;)
c0rn_ has quit []
<workmad3> so your viewpoint of 'ketamine makes me more objective, etc.' is one model, contrasted to the viewpoint of 'ketamine has compromised my mental chemistry to the point of I can no longer tell if I'm objective or not'
lggr has joined #ruby
Eldariof18-ru has quit [Ping timeout: 260 seconds]
<lolzie> workmad3: exploring from within the latter model/viewpoint,
<lolzie> one can then aggregate the information gathered the subsequent day, which very much backs it up (of course, we're not saying 100%) that there was objectivity in the night before
<workmad3> lolzie: except that it was still being aggregated by potentially compromised viewpoints
<lolzie> I was very keen to discuss these things the next day for verification
<invisime> lolzie: it's also the case that you're making the assumption that ketamine wears off and doesn't permanently compromise your perceptions.
<lolzie> Haha, like it :)
<lolzie> workmad3: if the viewpoints are compromised, and therefore not objective,
pu22l3r has quit [Read error: Connection reset by peer]
<lolzie> workmad3: then surely our ideas/conclusions/explanations would not have perfectly matched the following day
<workmad3> lolzie: you would need to discuss these things with an independent, uncompromised 3rd party who would be able to assess that you were both talking about the same thing
pu22l3r_ has joined #ruby
<lolzie> And had been instead our own, differing subjective interpretations
<workmad3> lolzie: except that the ketamine could have compromised your objectivity to the point that you can no longer tell if your ideas actually match or not
frogprince_mac has quit [Quit: Leaving...]
<workmad3> lolzie: you could be agreeing and actually be talking about completely different things, but because you are compromised you will never know
<lolzie> workmad3: this is when the ketamine wore off next day. Of course, this involves the assumption that ketamine wears off.
<workmad3> lolzie: exactly
<lolzie> But that's an assumption I think sensible to make
lggr has quit [Ping timeout: 240 seconds]
mucker has quit [Ping timeout: 246 seconds]
<workmad3> lolzie: I don't think it's a sensible one to make
<workmad3> lolzie: it has altered your brain chemistry
<lolzie> Agreed on that, but we're talking objectivity here;
ananthakumaran has quit [Quit: Leaving.]
<workmad3> lolzie: you can't know it has actually reverted to its original state
<invisime> actually, workmad3. the more interesting question to me, is the solipsist one: how do you verify that you're in contact with another mind at all in the first place. presumably the same methods can be used to verify that you're both communicating.
<lolzie> Would it not become quite readily apparent over time that my objectivity has been screwed, if ketamine never wore off?
<workmad3> lolzie: not to you
<workmad3> lolzie: your objectivity has been compromised
<lolzie> But to others?
matthewrobbins has quit [Quit: matthewrobbins]
<invisime> solipsism!
xyzodiac has joined #ruby
zigomir has joined #ruby
<lolzie> Of course, I'd rely on my own objectivity to realise that others are telling me. But there has been no discoveries of such alterations to the brain with particular regard to objectivity
matthewrobbins has joined #ruby
<lolzie> workmad3: as you explore all of these different assumptions, which can lead to rather "wacky" models - can you see how one can say "my own beliefs are unbelievable"? :)
<Xeago> lolzie: lol, becaus ethey've been altered to not know of such alterations
shiki has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
matthewrobbins has quit [Client Quit]
<lolzie> invisime: are you referring to the.. I forget the name, zombie philosophy thing. That other people aren't necessarily conscious minds and just appear to have the outputs that one would have?
mynameisdeleted has left #ruby [#ruby]
awarner has joined #ruby
matthewrobbins has joined #ruby
<workmad3> lolzie: it's down to can you prove that other minds exist
moshef has joined #ruby
<moshef> if there an easy way to do hash.merge only if there is no value present? or do I have to check that value doesn't exists in the hash?
<lolzie> Oh yeah, I didn't give the John Lilly quote. "In the province of the mind what one believes to be true, either is true or becomes true within certain limits. These limits are to be found experimentally and experientially. When so found these limits turn out to be further beliefs to be transcended. In the province of the mind there are no limits. However, in the province of the body there are definite limits not to be transcended."
<workmad3> lolzie: here's a question though... is your mind capable of recognising the limits that it cannot transcend?
<invisime> lolzie: yeah, it's called solipsism. and it's the idea that you're the only conscious mind and everything else is just a figment of your imagination.
<workmad3> lolzie: or would the mere fact of recognising them give us an ability to transcend them, thereby making that not the limit?
lggr has joined #ruby
<invisime> moshef: the whole point of Hash#merge is that it'll take care of all the checking for you. I don't understand what you're asking.
deryl-android has joined #ruby
xpen_ has quit [Remote host closed the connection]
<lolzie> invisime: your rationale would completely depend upon the assumptions you make in your model of reality. Of which you could have an infinite variety of assumptions, there are infinite rationales
<lolzie> Which says to be it is intractable as a problem.
<lolzie> me*
lledet has joined #ruby
rtdp has quit [Quit: Leaving]
<workmad3> lolzie: yes, solipism is a philosophical stance, not a provable statement
<moshef> invisime: what do you mean?
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
<lolzie> workmad3: as per John Lilly, and me, as a K-cadet so far (hehe), the mind has not demonstrated any limits
<Hanmac> moshef hash.merge(other) {|k,o,n| o }
<moshef> Hash#merge will merge anyone
<workmad3> lolzie: yes, but can you, trapped within your mind, actually observe the limits?
<moshef> Hanmac: checking
<deryl-android> Does anyone know of a code analysis gem that scans your code and emits skeletal rspec or test::unit tests to files?
<lolzie> workmad3: well, if the limits are my assumptions in my current mental model, and I know them assumptions, surely yes
<workmad3> lolzie: or are you just operating under the idea that because you cannot observe the limits, that they therefore don't exist?
PragCypher has quit [Ping timeout: 246 seconds]
<lolzie> Limits/assumptions give shape, give form to mental models.
<lolzie> This is why I believe them infinitely transcendable.
<invisime> deryl-android: not of the top of my head, but it wouldn't be hard to write one.
<moshef> Hanmac: thanks dude you're awesome
theRoUS_ has quit [Ping timeout: 246 seconds]
<lolzie> Otherwise a mental model would not have form if it did not have limits. Infinite regress. Without form, surely it cannot exist?
pricees has joined #ruby
<workmad3> lolzie: so that would mean that your mind is capable of holding an infinite amount of information?
<atmosx> aloha
deryl-android has quit [Remote host closed the connection]
<Hanmac> moshef or reverse the order: other.merge(hash)
kaleido has quit [Quit: Lost terminal]
pricees_ has joined #ruby
<moshef> Hanmac: how about the other way around? merge only if present?
stopbit has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
<workmad3> lolzie: and my point is that there are limits to mental reasoning itself... but we are not able to recognise them because the limits to the reasoning are not approachable within the confines of the reasoning available to us
<invisime> lolzie workmad3: oh man, relevant reddit discussion I ran into just now: http://www.reddit.com/r/philosophy/comments/108eez/antirealism_and_solipsism/
<lolzie> workmad3: definite limits of the body, as John Lilly said. The skull is not big enough to support infinite neural pathways and that much physical representation of knowledge in our current mind vessel - the default biological human body.
kaleido has joined #ruby
Virunga has joined #ruby
devdazed has joined #ruby
<lolzie> workmad3: now what if our brain size was not constrained. It would still have mind, but no definite physical size limits. Space is infinite in size. So surely it could fit infinite information.
<lolzie> Eh? :)
timonv has quit [Remote host closed the connection]
iocor has joined #ruby
<invisime> lolzie: you're still constrained by your light-cone.
busybox42 has quit [Quit: Leaving.]
matthewrobbins has quit [Quit: matthewrobbins]
<workmad3> lolzie: that doesn't mean that all the information is accessible to the reasoning that the brain or mind can use
shiki has quit [Remote host closed the connection]
busybox42 has joined #ruby
<invisime> workmad3: exactly what I just said. ;-)
baphled has quit [Ping timeout: 248 seconds]
<workmad3> invisime: except more abstract ;)
shiki has joined #ruby
<lolzie> The mind is, after all, an abstract concept
timonv has joined #ruby
<lolzie> (Assumption ;-)
<workmad3> invisime: I'm thinking more along the lines of the incompleteness theorem than physical limits btw :)
<invisime> workmad3: that, too.
<lolzie> I'm afraid I didn't quite understand either of your points, on either level of abstraction
johnlcox has joined #ruby
<invisime> lolzie: say you could build a really really really big computer.
<invisime> so big that it could store everything.
linoj has quit [Quit: linoj]
<shevy> === THE UNIVERSAL COMPUTER
<invisime> some of the storage would be waaaaaaay over there.
<workmad3> lolzie: have you ever come across Godel's Incompleteness Theorem?
<shevy> CONTAINING ALL INFORMATION THAT HAS EVER BEEN IN THE UNIVERSE.
chrishunt has quit [Read error: Connection reset by peer]
gurps has quit [Quit: bye]
<invisime> it would take a long time for you to retrieve that information because you're still bound by the speed of light for communication.
<shevy> BUT NOT HAVING THE INFORMATION ABOUT HOW TO USE LOWER CAPS.
<lolzie> workmad3: yes although I confess I've either forgotten the details or didn't understand it the first time i read it (ages ago)
<shevy> wait
<invisime> lol, shevy.
<shevy> bound by the speed of light
<shevy> my thoughts travel faster than light!
<invisime> shevy: no they don't.
<shevy> :(
<invisime> but if they do, can you teach me? :-P
chrishunt has joined #ruby
<lolzie> invisime: assumption! What if our brains are essentially interdimensional transceivers
<workmad3> lolzie: ok, so basically, the incompleteness theorem proves that there are true statements within number theory that are impossible to prove within number theory
bradhe has joined #ruby
<lolzie> Light speed limits wouldn't apply in such a reality
<workmad3> lolzie: godel also proved that any formal system is isomorphic to number theory
sailias has quit [Ping timeout: 246 seconds]
<shevy> what does this mean
<shevy> isomorphic
<workmad3> shevy: equivalent to
<invisime> shevy: you can translate back and forth between them without loss of information.
<lolzie> Okay
elsifaka has quit [Read error: No route to host]
<shevy> cool
shiki has quit [Ping timeout: 246 seconds]
<lolzie> invisime: great explanation, I've been looking for that for a long time
elsifaka has joined #ruby
<shevy> I never read godel... I am scared shitless by math... but I like information systems
linoj has joined #ruby
<invisime> read godel, escher, bach. and take notes.
<workmad3> shevy: godel numbering is a really important concept :)
<Hanmac> moshef hm not with the merge method .. but you could look at this: Hash[{a: 1,b: 2}.map{|k,v|[k,{b: 3,c: 4}.fetch(k,v)]}] #=> {:a=>1, :b=>3}
elux has joined #ruby
<lolzie> workmad3: here's where I might get blown away, how does he know them to be true without provability?
<workmad3> and yeah GEB is a great book for this sort of stuff :)
<lolzie> Oh, because of the isomorphism?
lggr has joined #ruby
<shevy> invisime but isn't that like with thousand formulas?
<workmad3> lolzie: the statement is equivalent to 'This statement is not provable in number theory'
<invisime> shevy: yeah, but he takes it slow.
<Xeago> can we put this crap in #yourownroom?
<Xeago> it's a neverending story
<moshef> Hanmac: rather just check if value is present then :D
<Xeago> with recursion
<moshef> Hanmac: but thanks anyway buddy
<lolzie> A isomorphic to B. Theory applied to A proves true. Theory applied to B is not testable. One infers from the isomorphism of A and B, and the trueness of the theory in A, that the theory is true in B.
<lolzie> workmad3: correct? ^
<invisime> Xeago: ruby questions are still getting addressed. I don't see it as a problem.
<workmad3> lolzie: no
<Xeago> I can't find ruby questinos :D
<workmad3> lolzie: because if it were probable in A, it would be provable in B
<workmad3> *provable
<Xeago> but fine
<Hanmac> moshef why? the fetch method is cool in this context
gurps has joined #ruby
<workmad3> lolzie: that would be another aspect of the isomorphism ;)
<lolzie> Gotcha
bradhe has quit [Ping timeout: 246 seconds]
<lolzie> workmad3: I still need to get to grips with your and invisime's assertion from before that related to this by the way
<shevy> Hanmac's code is scary
<lolzie> I recall the other night me and my friend would take massively long tangents when explaining a sub-part of a theory before returning to it. Which is actually pretty cool. hehe
<shevy> it's a mixture of C++ and ruby
<workmad3> lolzie: I didn't actually make an assertion, I posited a viewpoint ;)
bbttxu has joined #ruby
<rking> shevy: URL?
<Xeago> anyone want to provide help to put my shell config files in a ramdisk?
<Xeago> as my hd is slow?
<invisime> Xeago: I don't know about that. you might try #linux or something?
<shevy> rking no just in general on #ruby... Hash[{a: 1,b: 2}.map{|k,v|[k,{b: 3,c: 4}.fetch(k,v)]}] #=> {:a=>1, :b=>3} scares me, look how close the { is to the p character
<atmosx> Xeago: shell config files? like... .zshrc etc?
horofox has joined #ruby
<Xeago> atmosx: and in my case .oh-my-zsh
<shevy> zshers!
<shevy> bashers fight back!
<rking> shevy: Hehe
<workmad3> right, I'm gonna drop this discussion now btw
<workmad3> I think it's reached as much fruitfulness as it will
nari has quit [Ping timeout: 246 seconds]
<Xeago> atmosx: do you sue something like ohmyzsh?
<Hanmac> shevy & rking, be happy that i dont show my c++ code :D
<Xeago> Hanmac: delight me please
<atmosx> Xeago: mkdir /mnt/ramzsh; mount -t ramfs -o size=20m ramfs /mnt/ramzsh
<havenn> oh-my-zsh knock-off for bash: https://github.com/revans/bash-it
Bosma has joined #ruby
<atmosx> Xeago: then just copy your ~/.oh-my-zsh folder to /mnt/ramzsh and will run on ram.. ln -s /mnt/ramzsh/oh-my-zsh ~/.oh-my-zsh and you're fine
<Hanmac> rking look at this: https://github.com/Hanmac/libogre-ruby :D
<atmosx> Xeago: I use oh-my-zsh
<atmosx> Xeago: on the macbook air
<lolzie> workmad3: sorry, boss came over, had to minimise chat. Hehe. Believe it or not I'm being paid to write PHP, not be a philosopher.
<lolzie> workmad3: but I'm sure as a philosopher I can rationalise my actions somehow
<shevy> now I understand why you need drugs lolzie
<workmad3> lolzie: that's the problem with the world today
<workmad3> lolzie: philosophers rarely get paid :)
PragCypher has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<lolzie> Problems with the world
<shevy> but PHP is like a drug. when I realized it changes my brain I quitted
<lolzie> Me and my friend performed a hugely extensive critique of society
timonv has quit [Remote host closed the connection]
<rking> Hanmac: .cg??
theRoUS_ has joined #ruby
<Xeago> atmosx: now comes the issue, it needs to be done automatically
<lolzie> I also psychoanalysed him extensively too. Ahhh. Even if things are possible without certain drugs, they do inspire these things more often generally.
<Hanmac> not the cg files ... i mean the cpp files D
<atmosx> Xeago: there's fstab for that
<atmosx> Xeago: /etc/fstab
<lolzie> workmad3: oh I didn't get your viewpoint in the end then, sadface :(
Emmanuel_Chanel has joined #ruby
<lolzie> Disruptions prevented the flow
<rking> Hanmac: Yeah. I don't see anything untoward so far. I don't know what .cg is though
<Xeago> I don't have fstab atmosx
<atmosx> Xeago: ramfs on /mnt/ramzsh type ramfs (rw,size=20m) .. or whatever you might want 80m
<workmad3> lolzie: read Godel Escher and Bach, that portrays my viewpoint better than I ever could :) (also it's a 900-odd page book... very hard to get it across using an hour-long IRC discussion :) )
<atmosx> Xeago: what OS r u on?
<Hanmac> rking the .cg files are GPUprogramms for the the sample
<Xeago> osx
<rking> Hanmac: What reads them?
<atmosx> Xeago: you need an init file, take a look here https://blog.tuinslak.org/mounting-a-ramfs-disk-at-boot-in-mac-os-x
<atmosx> Xeago: launchd script is ready there, just adjust the paths
<Hanmac> the bindings does :P
<rking> Hanmac: Wait, are they GLSL?
<lolzie> workmad3: this looks very interesting. So much to read though. I have to focus on my "out-sanity" studies such as Rails too, in addition to my "in-sanity" studies of philosophy and mind
tris has quit [Excess Flood]
bobbbo has quit [Quit: bobbbo]
<workmad3> lolzie: yeah, it's a big read
<Hanmac> they are in Gpuprogramms (cg,glsl,hlsl) ... the binding picks the right one depending on your system
timonv has joined #ruby
<workmad3> lolzie: it actually took me 3 attempts spanning about 18 months before I finished it, and I know I didn't pick it all up and want to re-read it at some point
axl_ has joined #ruby
zz_chrismcg is now known as chrismcg
<lolzie> workmad3: but I think this could hugely inspire thinking during future K experimentation.
sailias has joined #ruby
<havenn> lolzie: Psh, I tried coding on ketamine and all that happened is I thought I became a keyboard.
<rking> Hanmac: On Linux what would handle them?
lggr has joined #ruby
<lolzie> People with intelligence definitely have a better time on drugs than the dumbasses.
<Xeago> atmosx: I kinda want the following, ~/.oh-my-zsh on disk, however for faster loading in memory aswell, e.g. I want modifications to ram to go to disk aswell (and viceversa)
philips_ has quit [Excess Flood]
xaq has quit [Remote host closed the connection]
<lolzie> havenn: perhaps you should have mixed in the MDMA too to prevent too much internal kinesthetic sensory effects from taking over.
philips_ has joined #ruby
<Hanmac> rking cg, or glsl
<lolzie> havenn: and used text-to-speech coding, no keyboard. People love to talk on MDMA.
<lolzie> haha
<invisime> lolzie: if you're looking for more digestible piece of discourse on rationality, I highly recommend anything by http://yudkowsky.net/
<rking> Hanmac: Aha, e.g. media-gfx/nvidia-cg-toolkit
arya_ has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
<lolzie> There is a word that describes the quality of something being measured by "much" instead of "many". Any resident sesquipedalians familiar with it?
iamjarvo has quit [Ping timeout: 246 seconds]
<Hanmac> rking it depends on what is ogre compiled against
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<lolzie> invisime: I've saved that to read at home :)
<lolzie> invisime: I've come across this before, but my mind is much more prepared for this now
iocor has quit [Quit: Computer has gone to sleep.]
answer_42 has joined #ruby
<atmosx> Xeago: you're on an SSD hd?
<Xeago> nope
freeayu has quit [Ping timeout: 252 seconds]
<Xeago> that's my problem :)
<Xeago> I basically want ~/.oh-my-zsh to be cached somewhere
<rking> Hanmac: Nothing wrong with macro_attr()
<Xeago> I guess I can handle failover in my ~/.zshrc
<rking> Hanmac: Though honestly, if I had to code C/C++, I'd be writing .hpp.erb files.
<Xeago> lol
<rking> The preprocessor isn't complete enough for me.
lggr has quit [Ping timeout: 260 seconds]
<rking> Xeago: Wait, what do you need failover for?
<Xeago> failover asin I change ~/.oh-my-zsh
<lolzie> havenn: a quick question - from the ketamine do you think on ketamine you've ever achieved trains of thought enabling better understandings than you might have normally attained in default mind state (i.e. no ketamine)
freeayu has joined #ruby
tris has joined #ruby
<lolzie> ignore the "on ketamine" part, bad edit!
gfontenot has joined #ruby
<Hanmac> rking ... so do you like my macro_attr?
tagrudev has quit [Remote host closed the connection]
headius has joined #ruby
cakehero has joined #ruby
<rking> Hanmac: Definitely.
<rking> Hanmac: Do you see what I mean re .cpp.erb though?
<Hanmac> :D
arya_ has quit [Ping timeout: 244 seconds]
<Xeago> failover asin I change ~/.oh-my-zsh, and I want those changes to be updated :)
<Hanmac> maybe ... but erb files are currently not needed
lggr has joined #ruby
vaclavt has quit [Quit: vaclavt]
ananthakumaran has joined #ruby
withnale has joined #ruby
TheX1le has joined #ruby
jenrzzz has joined #ruby
<rking> Hanmac: I guess you're right. I was going to point out a spot, but it could actually be done in the preprocessor.
boodle has joined #ruby
twooster has joined #ruby
BdeUtra has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
<TheX1le> new to ruby, and trying to fix the following extconf file. http://bpaste.net/show/46768/ i need to get it to link against pcap. any suggestions? iv been reading various docs and so far seem to be missing what im looking for
lggr has quit [Ping timeout: 252 seconds]
hsbt has quit [Ping timeout: 260 seconds]
ZachBeta has joined #ruby
horofox has quit [Quit: horofox]
quest88 has joined #ruby
<deryl> invisime: thanks for the response (had to scroll back. my android irc client puked and i missed the message)
<rking> TheX1le: -lpcap ?
hsbt has joined #ruby
<rking> TheX1le: Nono, that's not very extconfy of me.
<invisime> deryl: no problem.
und3f has quit [Quit: Leaving.]
<invisime> deryl: sorry it wasn't more helpful.
<rking> TheX1le: Looks like you could copy exactly the style of that orcon2 stuff.
<deryl> invisime: not a problem. it was a random thought i had for use in a project i'm working on
matthewrobbins has joined #ruby
paolooo has quit [Quit: Page closed]
nilg has quit [Ping timeout: 246 seconds]
CodeFriar has quit [Quit: Leaving...]
<shevy> Hanmac curious bug... they must re-assemble the map or something
<shevy> but I would sure enough not use apple to fly to mars
alek_b has joined #ruby
<Hanmac> imo China and Japan should fuse to one cool country ... :D
lggr has joined #ruby
boodle has quit [Quit: boodle]
xaq has joined #ruby
halfie has left #ruby ["WeeChat 0.3.5"]
<m3pow> but keep Japan's quality
<xaq> hey guys, I'm trying to run a sinatra app on ec2, nginx, and passenger, and every request hangs indefinitely. Accessing static files in the public directory works just fine though if I directly request them. Anyone got this working?
<twooster> I'm getting occasional strange conversion exceptions out of BigDecimal: http://pastebin.com/YLwRGcgE -- has anyone ever seen this before?
<Hanmac> m3pow Japan's Quality with China's Quantity :D
ph^ has joined #ruby
<m3pow> lol Q&Q
senny has quit [Remote host closed the connection]
<Vainoharhainen> How should i specify port with Faraday?
bobbbo has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
<TheX1le> rking: so i should add it to the same line as the orcon2 stuff? or add a new one?
<TheX1le> i tried just tacking it into that list
headius has quit [Quit: headius]
<TheX1le> and it didnt seem to work
horofox has joined #ruby
Xeago_ has joined #ruby
elsifaka has quit [Ping timeout: 245 seconds]
ttt has quit [Remote host closed the connection]
<lectrick> anyone know how to exit all future binding.pry calls with Pry? (for a test run, in this instance)
headius has joined #ruby
ken_barber has joined #ruby
ken_barber has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
ken_barber has joined #ruby
<rking> TheX1le: New one
<twooster> Even more simplified version of the bug: http://pastebin.com/jps3T0NW -- BigDecimal just randomly throws on #power
MasterIdler__ has quit [Quit: MasterIdler__]
ken_barber has quit [Remote host closed the connection]
aantix has joined #ruby
<rking> TheX1le: You'll want to figure out an example of a function that you can test from have_library()
ken_barber has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
DrShoggoth has joined #ruby
lggr has joined #ruby
joeycarmello has joined #ruby
idletom has joined #ruby
pu22l3r has joined #ruby
matthewrobbins has quit [Ping timeout: 252 seconds]
JonValt has left #ruby [#ruby]
pu22l3r_ has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
ken_barber has quit [Ping timeout: 244 seconds]
joofsh has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
sergy has quit [Remote host closed the connection]
quest88 has quit [Quit: quest88]
SCommette has joined #ruby
jasonkuhrt has joined #ruby
theRoUS_ has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 246 seconds]
nacengineer has joined #ruby
axl_ has quit [Quit: axl_]
lggr has joined #ruby
joofsh has quit [Ping timeout: 264 seconds]
virgul has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
pricees_ has quit [Quit: leaving]
lggr has quit [Ping timeout: 256 seconds]
axl_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
freeayu has quit [Remote host closed the connection]
radic has quit [Ping timeout: 244 seconds]
reisl has joined #ruby
lggr has joined #ruby
iori has joined #ruby
Neomex has joined #ruby
larissa has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 264 seconds]
theRoUS_ has joined #ruby
hsbt has joined #ruby
ken_barber has joined #ruby
tds has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
elico has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 268 seconds]
xaq has quit [Ping timeout: 268 seconds]
Xeago has joined #ruby
Synthead has joined #ruby
elico has joined #ruby
joofsh has joined #ruby
elico has quit [Client Quit]
frogprince_mac has joined #ruby
Aristata has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
niklasb has joined #ruby
radic has joined #ruby
LBRapid has joined #ruby
lggr has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
eldariof has joined #ruby
Criztian has joined #ruby
ph^ has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 246 seconds]
iocor has joined #ruby
iocor has quit [Changing host]
iocor has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
GoGoGarrett has joined #ruby
joofsh has quit [Ping timeout: 246 seconds]
aganov has quit [Quit: aganov]
a_a_g has joined #ruby
Criztian has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 268 seconds]
wallerdev has joined #ruby
timonv has quit [Remote host closed the connection]
vaclavt has joined #ruby
ltsstar has joined #ruby
Spooner has quit [Read error: Connection reset by peer]
kuzushi has joined #ruby
araujo has quit [Remote host closed the connection]
<wunz> hi, i'm currently getting & method error on this code: http://pastebin.ca/2206292
<wunz> blah:82:in `block in encode': undefined method `&' for "p\x18\xEF\x10\x80\b`":String (NoMethodError)
lggr has joined #ruby
yoklov has joined #ruby
<wunz> what would be the reason for that as the code works on older version of ruby but not 1.9.3
hsbt has quit [Ping timeout: 240 seconds]
chrishunt has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
hsbt has joined #ruby
KL-7 has joined #ruby
ph^ has joined #ruby
<shevy> wunz hmmm
<shevy> this is an odd method
MasterIdler_ has joined #ruby
<shevy> isn't it?
<shevy> decoded += ((right & (0xFF << ((3 - i) * 8))) >> ((3 - i) * 8)).chr
<shevy> what is this doing
lggr has quit [Ping timeout: 256 seconds]
<wunz> im not even sure shevy, i took an old code on internet and trying to change it to work with openssl blowfish
<wunz> rather than the rubygems, crypt
<wunz> new to ruby here
bodik has left #ruby [#ruby]
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zeromodulus has joined #ruby
uris has joined #ruby
timonv has joined #ruby
<wunz> shevy: original: http://pastebin.ca/LCKgv29k - pswd: muti
<shevy> it's odd code
<shevy> for instance
<shevy> people who use ruby a lot, usually prefer << rather than +=
<shevy> as += creates a new object, whereas << just appends to the given object
chrismcg is now known as zz_chrismcg
joofsh has joined #ruby
<wunz> guses he felt comfortable with +=
jso has joined #ruby
<shevy> hmm the += is not the only thing
el_diablo has joined #ruby
<shevy> I feel that the style is a bit strange
timonv has quit [Remote host closed the connection]
<shevy> let's get workmad3 to comment :)
<shevy> workmad3: http://pastie.org/4772874
moshef has quit [Quit: moshef]
cakehero has quit [Quit: Leaving...]
Synthead has quit [Read error: Connection reset by peer]
<shevy> what is with these strange pictures
<shevy> wunz, usually I found that it takes much longer to understand code written by others
el_diablo has quit [Remote host closed the connection]
PragCypher has quit [Read error: Connection reset by peer]
matrixise has quit [Ping timeout: 264 seconds]
<workmad3> shevy: wtf am I looking at?
lggr has joined #ruby
Nathandim has quit [Quit: Leaving]
<shevy> workmad3 haha no... just give a comment about the style used there if you have time :)
PragCypher has joined #ruby
<shevy> if you would grade this code from A to F
<workmad3> seems a bit verbose
jso has quit []
<workmad3> also a bit inconsistent
<workmad3> not very clear either...
<workmad3> probably a C?
<workmad3> going on a very quick look at it :)
<shevy> yeah guess a C at best
hsbt has quit [Ping timeout: 256 seconds]
<shevy> wunz you are going to stick to ruby in the long run? or is it the "one script, then I move on" thing :)
superguenter has joined #ruby
<wunz> stick to runlong
carloslopes has quit [Quit: Leaving.]
<Hanmac> shevy line 64-72 looks after a job for a loop ...
<wunz> since i like the lang and want to learn it for rails
<shevy> yeah Hanmac
<wunz> right now i'm working on an ircbot as a project to learn using the cinch framework
\13k has quit [Quit: Leaving]
<shevy> well
<shevy> wunz, write your own ircbot, it teaches you more. then use cinch afterwards... that's how everyone starts in ruby... hehehe
timonv has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
joofsh has quit [Ping timeout: 264 seconds]
vitoravelino is now known as vitoravelino`afk
<shevy> k = k.next
<shevy> this is odd
vaclavt has quit [Quit: vaclavt]
<wunz> that makes since shevy
<wunz> sense* to write my own
jasonkuhrt has quit [Quit: Leaving...]
<shevy> why does this code have a module called IRC
<shevy> and inside that module, it cares about encryption? does that make sense?
blazes816 has joined #ruby
hsbt has joined #ruby
<shevy> see, that's where I think things should be splitted up into another class
<shevy> def self.decode(encoded)
<shevy> raise IRC::BadInputError,
lolzie has quit [Quit: Page closed]
mikepack has joined #ruby
<wunz> because there's also a IRC module that isn't necessary for me to paste that file
matthewrobbins has joined #ruby
nga4 has quit []
<wunz> since the error isn't there
<shevy> yeah but this is odd
<shevy> because the error raised resides in IRC, I don't like this conceptually, it feels unclean
bradhe has joined #ruby
<wunz> most likely is unclean
flype has joined #ruby
<wunz> its 6 yr old code, hehe
<shevy> what is B64 by the way?
<shevy> wunz, yeah tell me... I am trying to update ruby fpdf, the code is awful
<shevy> def Header()
<shevy> def Footer()
<shevy> def Cell()
LBRapid has quit [Quit: Farewell.]
trevortwining has quit [Quit: trevortwining]
Synthead has joined #ruby
<shevy> andit uses a style that I don't recognize much
<wunz> base 64
jso has joined #ruby
<shevy> require "base64"
<wunz> na, thats the standard mime base64
<shevy> hmm
<wunz> the irc encryption uses a non-standard one
<shevy> so there is base64 and B64 ...
<shevy> aaaah
lggr has joined #ruby
<shevy> IRC has encryption?
<wunz> so have to write custom one
<wunz> which is why that guy wrote his own
<shevy> I see... makes more sense now
<wunz> there's a good explanation there
timmow has quit [Quit: has left the building]
<dominikh> there isn't "base64 and B64" -- B64 is simply a constant name for the alphabet that particular implementation uses
<wunz> but that's python
<wunz> correct dominikh
<wunz> dominikh is awake ;o
beneggett has joined #ruby
<dominikh> it's 18:00, would be odd if I wasn't.
<shevy> yeah he sleeps too long
<shevy> self.public = 0
<wunz> ^ he has a very nice blog post on encryption stuff
<shevy> python code is kinda strange
<wunz> i forget youre in .de dom
mikepack has quit [Ping timeout: 256 seconds]
<wunz> python code looks almost as similar to ruby
mucker has joined #ruby
DrShoggoth has quit [Ping timeout: 244 seconds]
ewag has joined #ruby
<shevy> somewhat yeah
lggr has quit [Ping timeout: 268 seconds]
<shevy> kind of easier to look at and make a guess what is going on, as opposed to perl code
timonv has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
elsifaka has joined #ruby
frogprince has joined #ruby
joofsh has joined #ruby
Neomex has quit [Quit: Neomex]
ttt has joined #ruby
atmosx has quit [Quit: WeeChat 0.3.9-rc1]
yoklov has quit [Quit: computer sleeping]
s1n4 has joined #ruby
fmcgeough has joined #ruby
mahmoudimus has joined #ruby
DrShoggoth has joined #ruby
greg_ has quit [Quit: Linkinus - http://linkinus.com]
lggr has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
teriyaki has quit [Remote host closed the connection]
savage- has joined #ruby
samflores has joined #ruby
tvw has joined #ruby
<wunz> hehe, perl code confuses crap outta me
<wunz> but i love its regexp
ttt has quit [Ping timeout: 240 seconds]
<wunz> perl is so famous for its regexp, wonder how come other langs didn't incorporate their rexexp style
atmosx has joined #ruby
s1n4 has quit [Client Quit]
nga4 has joined #ruby
hsbt has joined #ruby
<avalarion> Hey ho, I wrote a redmine Plugin after updating redmine to the newest version I get "uninitialized constant RepositoryObserver". As this are my first ruby lines I need help with fixing it... does somebody has got time?
lggr has quit [Ping timeout: 240 seconds]
deadghost has quit [Ping timeout: 246 seconds]
tewecske has joined #ruby
joofsh has quit [Quit: Leaving]
hadees has quit [Quit: hadees]
joofsh has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
<blazes816> wunz: perl -e 'my $w = (1, 2, 3); print $w;' #=> 3
lggr has joined #ruby
timonv has joined #ruby
<blazes816> nobody knows why
<wunz> 3 index?
adambeynon has joined #ruby
<blazes816> the $ sigil denotes scalar context, and an array in the context of a scalar is considered to be its length
teriyaki has joined #ruby
idletom has quit [Ping timeout: 245 seconds]
happosade has quit [Ping timeout: 252 seconds]
<wunz> so then yea, length of array
deadghost has joined #ruby
horofox has quit [Quit: horofox]
jeeky has joined #ruby
<wunz> avalarion: set the variable to something...
<wunz> initialize it
stephenjudkins has joined #ruby
shaman42 has quit [Ping timeout: 252 seconds]
matthewrobbins_ has joined #ruby
<avalarion> wunz, but I am only using it once...
<avalarion> $ grep -R "RepositoryObserver" plugins/redmine-bitbucket/
<avalarion> plugins/redmine-bitbucket/app/models/repository_observer.rb:class RepositoryObserver < ActiveRecord::Observer
cantonic has quit [Quit: cantonic]
fyolnish has joined #ruby
<wunz> so its just a class name?
lggr has quit [Ping timeout: 246 seconds]
<avalarion> wunz, yep =)
binaryplease has quit [Quit: WeeChat 0.3.8]
elsifaka has quit [Quit: Veloma e!]
<avalarion> oh, and I am using it here:
<avalarion> plugins/redmine-bitbucket/init.rb:ActiveRecord::Base.observers << :repository_observer
nw has quit [Ping timeout: 248 seconds]
<wunz> and how are you calling it?
<avalarion> if it is like FLOW3 _letter will force the _ to disapear and the l to be uppercase
trevortwining has joined #ruby
<avalarion> wunz, that is one of my questions^^ I would say with adding it to the observer
s1n4 has joined #ruby
<avalarion> in the init.rb file... Do I have to include my classFile to the init.rb in Ruby?
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
samflores has quit [Quit: Linkinus - http://linkinus.com]
tewecske has quit [Max SendQ exceeded]
chimay has joined #ruby
deadghost has quit [Ping timeout: 248 seconds]
matthewrobbins has quit [Ping timeout: 248 seconds]
<wunz> not even sure, shevy or workmad3 would be able to better assit
<wunz> im nooby here
<avalarion> ;) Help is help, thanks mate
matthewrobbins_ has quit [Ping timeout: 244 seconds]
a_a_g has quit [Quit: Leaving.]
cantonic has joined #ruby
<wunz> but you can try requiring it and see what happens
lggr has joined #ruby
havenn has quit [Remote host closed the connection]
chrishunt has joined #ruby
hadees has joined #ruby
bluenemo has quit [Remote host closed the connection]
notVert has quit [Remote host closed the connection]
apok has quit [Ping timeout: 260 seconds]
mrsolo has joined #ruby
<shevy> ah I am absolutely clueless about ActiveRecord
<shevy> if there is someone in the know, it is workmad3
tyfighter has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy> if there would be a non-rails way to get into active record, I could get into it, but it seems to be coupled so much to rails that I am not so enthusiastic about wanting to learn and use it much :(
<Hanmac> shevy this is the way to make a sandwich http://www.youtube.com/watch?v=gvLMQ-taBPk
happosade has joined #ruby
nw has joined #ruby
<wunz> workmad3 epochwolf dominikh - these 3 usually knows and responds to * :D
<shevy> what is this crazy cartoon Hanmac
lggr has quit [Ping timeout: 260 seconds]
<Hanmac> just look :P
* epochwolf picks up a brick and hits wunz in the face
<epochwolf> shevy: active record works without rails
<jgwong> shevy: I used ActiveRecord without Rails years ago, it's not so difficult
Elhu has quit [Quit: Computer has gone to sleep.]
robustus has joined #ruby
Spooner has joined #ruby
KL-7 has quit [Quit: Leaving]
iori has quit [Read error: Connection reset by peer]
sepp2k has quit [Ping timeout: 246 seconds]
superguenter has quit [Ping timeout: 264 seconds]
sepp2k has joined #ruby
iori has joined #ruby
lggr has joined #ruby
ken_barber has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 268 seconds]
shaman42 has joined #ruby
ken_barber has joined #ruby
artOfWar has joined #ruby
ffranz has joined #ruby
iori has quit [Remote host closed the connection]
<deryl> my dtf gem uses it. not even remotely rails related (so far)
<savage-> hey dudes
<savage-> come watch the shuttle in SF with us!
<deryl> though I do plan on having a rails frontend for remote workers at some future date
<deryl> savage-: hehe already there
aantix_ has joined #ruby
<savage-> hehehe
<savage-> sweeet :)
Xeago has quit [Remote host closed the connection]
<deryl> savage-: you the one with the beard aint ya ;)
<savage-> hahaha
<savage-> nope :)
<savage-> I'm Ryan LeCompte
<savage-> not on air right now
reisl has quit [Quit: Leaving]
lggr has quit [Ping timeout: 268 seconds]
<deryl> ah
deadghost has joined #ruby
aantix has quit [Ping timeout: 244 seconds]
aantix_ is now known as aantix
ianbrandt has joined #ruby
danryan has joined #ruby
<danryan> Hey folks! Where can I find best practices for extending core classes in Ruby?
<danryan> Looking to be as unobtrusive as possible
<deryl> i believe its class.extend see ri extend
<deryl> or ri Object.extend
GoGoGarrett has quit [Remote host closed the connection]
<danryan> deryl: thank you for the suggestions! I understand obj.extend as a way of injecting methods into an object. Allow me to elaborate what it is I wish to achieve:
drago757 has joined #ruby
carloslopes has joined #ruby
arya_ has joined #ruby
mikepack has joined #ruby
<workmad3> danryan: as deryl is suggesting, one of the more unobtrusive ways is to put your extensions in a module and then do Whatever.extend YourModule
trevortwining has quit [Quit: trevortwining]
lggr has joined #ruby
paolooo has joined #ruby
shevy has joined #ruby
khakimov has joined #ruby
<danryan> I have custom methods to modify strings. The potential exists for these methods to be overridden by someone who loads my library in their own way. Class.extend MyModule will inject my methods, yes, but it won't stop someone from overriding them, or stop me from overriding theirs.
jenrzzz has joined #ruby
<danryan> I just want to be a good citizen :)
<danryan> Would you folks recommend extending instances of classes?
ncr100 has joined #ruby
<danryan> Say, `str = "foo"; str.extend MyModule` ?
<Spooner> danryan : It is generally bad form to modify core classes in a gem, but do what you like if your own applications. Whether you re-open the class or include/extend it with your own classes doesn't matter so much. As Deryl says, you probably should extend individual objects rather than the entire class, if you can.
geekbri has quit [Remote host closed the connection]
apok has joined #ruby
jasonkuhrt has joined #ruby
<Spooner> Extending an object like that (str.extend MyModule) is like class String; include MyModule; end, but just for the single object.
deadghost has quit [Ping timeout: 246 seconds]
moshee has quit [Ping timeout: 252 seconds]
Vainoharhainen has quit [Quit: Leaving...]
apok_ has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
hippiehacker has joined #ruby
<Spooner> Oh, but when I say "do what you like in your own applications", I really meant add what you like, but if you alter any core behaviour by replacing or extending methods, don't expect other people's gems not to break ;)
<shevy> yeah that keeps coming back
<hippiehacker> is rubygems.org having trouble?
<shevy> the ability to modify classes and modules and the ability to undo those modifications
mrdodo has joined #ruby
<danryan> Spooner: cool, thank you :)
<shevy> hippiehacker, seems to lag for me
<shevy> hippiehacker, but it just finished loading
<danryan> Spooner: I thought about subclassing core classes, like `class MyString < String;end` but that feels like too much :D
<Spooner> shevy Isn't there a magic way to do it added in 2.0? So that you can modify a class within a scope?
chrisja has joined #ruby
flype has quit [Quit: Computer has gone to sleep.]
jeeky has quit [Remote host closed the connection]
stephenjudkins_ has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<shevy> Spooner no real idea. hopefully... and I think someone said that ... I think it was RubyPanther or something, he is the 2.0 dude after all
<shevy> hmm and I think matz also made a presentation about this years ago... traits or?
<danryan> Spooner: shevy: was that the `refine/ using` suggestion?
apok has quit [Ping timeout: 246 seconds]
apok_ is now known as apok
<Spooner> danryan : That could work, depending on your use-case, but it is likely then that any operations on MyString would generate a String, not another MyString. Probably more effort than it is worth. A wrapper class might be more appropriate, depending on your needs.
<shevy> never heard of refine or using before... hmm... or was it use TraitName... let me try to find that video
<danryan> shevy: it might have been just a PoC. Here's the article I found: http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/
adambeynon has quit [Quit: Computer has gone to sleep.]
jasonkuhrt has quit [Ping timeout: 246 seconds]
<shevy> aaaah
<Spooner> danryan : That is the thing I was thinking about.,
notVert has joined #ruby
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins_ is now known as stephenjudkins
<shevy> danryan, in this video http://www.youtube.com/watch?v=t9LMOydfc4k at about 18:00 minutes
lggr has joined #ruby
<danryan> shevy: Nice! Thank you :)
<shevy> you may have to get used to his english style a bit, but he got better hehe
<danryan> hehe
havenn has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
sn0wb1rd has joined #ruby
ebobby has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
kpshek has quit []
apok has quit [Remote host closed the connection]
apok has joined #ruby
tbbach has joined #ruby
br4ndon has joined #ruby
nat2610 has joined #ruby
frogprince has quit [Ping timeout: 245 seconds]
voodoofish430 has joined #ruby
adamkittelson has joined #ruby
areil has quit [Remote host closed the connection]
adambeynon has joined #ruby
a_a_g has joined #ruby
CodeFriar has joined #ruby
mrdodo has quit [Ping timeout: 244 seconds]
maletor has joined #ruby
enriclluelles has quit [Remote host closed the connection]
Synthead has quit [Read error: Connection reset by peer]
joppe has quit [Read error: Operation timed out]
lggr has joined #ruby
tbbach_ has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Virunga has quit [Remote host closed the connection]
Synthead has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Ping timeout: 256 seconds]
c0rn_ has joined #ruby
DrShoggoth has joined #ruby
tbbach has quit [Ping timeout: 246 seconds]
tbbach_ has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
<hashpuppy> in my class MyServer < EventMachine::Connection, I have def log_request(msg); request_time = @request_time or Time.now; end. why am I getting unitialized constant MyServer::Time?
beneggett has joined #ruby
RegEchse has joined #ruby
GoHuyGo has joined #ruby
horofox has joined #ruby
AlbireoX has joined #ruby
tvw has quit [Ping timeout: 246 seconds]
deadghost has joined #ruby
moted has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
ph^ has joined #ruby
ananthakumaran1 has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
wpaulson has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
digitcake has joined #ruby
lggr has joined #ruby
<digitcake> hello , trying to get rvm to install rails but I'm getting an error and not sure what do about it https://gist.github.com/3762707
lolmaus has quit []
sailias has joined #ruby
<canton7> hashpuppy, require 'time' ?
timonv has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
<hashpuppy> same thing
jjbohn has joined #ruby
ePirat has quit [Quit: ZNC - http://znc.in]
<Hanmac> hm no ... time is in core ...
<hashpuppy> yeah
moshee has quit [Ping timeout: 260 seconds]
<RubyPanther> shevy: actually I haven't done anything at all with new features, I'm mostly using it for the improved memory performance when forking
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<canton7> oops, so it is
digitcake is now known as digitcakestudi
toastie has quit [Ping timeout: 252 seconds]
<shevy> but you praised it with a purry voice :(
wpaulson has quit [Client Quit]
Criztian has joined #ruby
<shevy> well, I have become conservative... I was stuck on 1.8.7 for years, am on 1.9.3 since perhaps a year ... I can be patient
digitcakestudi has quit [Client Quit]
dakine has joined #ruby
digitcakestudi has joined #ruby
digitcakestudi has quit [Client Quit]
<RubyPanther> Ruby as a language is already perfect and I don't want enhancements, and now with the bitmapped marking for GC I can use my crufty old tried and true *nix forking strategies and have shared memory work like it is supposed to... at a lower level than Ruby.
digitcakestudi has joined #ruby
digitcakestudi is now known as digitcakestudio
digitcakestudio has quit [Client Quit]
<RubyPanther> I mean in Perl we had that in the 90s.
digitcakestudio has joined #ruby
digitcakestudio has quit [Client Quit]
lggr has quit [Ping timeout: 248 seconds]
evaryont has joined #ruby
<evaryont> Does ruby have a tracing function, analogous to bash -x ?
<RubyPanther> It is like Back to the Future with Ruby 2, like omg everything works now! And it's faster too!
<hashpuppy> is there a way for me to specify core?
sepp2k has quit [Ping timeout: 264 seconds]
<hashpuppy> Core::Time
<hashpuppy> ?
bobbbo has quit [Quit: bobbbo]
<Hanmac> do: ::Time.now
jjbohn has quit [Quit: Leaving...]
<shevy> evaryont what does bash -x do?
<evaryont> shevy: outputs every line, every condition, every variable set.
<shevy> Hanmac what shell do you use btw?
<shevy> evaryont, oh, that is cool
<shevy> hmmm... not sure if ruby offers the same
<evaryont> basically, as lines are evaluated, it outputs the current state.
<shevy> cool
<evaryont> 1.9 does, with -rtrace however I'm using 1.8 :-/
<shevy> hah, I did not know about -rtrace either :)
<shevy> that is so cool
<shevy> "ruby -rtracer colourizer.rb" all with the line numbers
<Hanmac> shevy still normal bash
sneakyness_wk has joined #ruby
<Spooner> The trace gem just tells you about method calls, by the look of it.
sepp2k has joined #ruby
ztirf has joined #ruby
ebobby has quit [Ping timeout: 246 seconds]
<Spooner> And since it uses set_trace_func, it should also work in 1.8.6+
lggr has joined #ruby
<Spooner> In fact, using that method directly gives you potentially a lot more info than the trace gem does.
<evaryont> Spooner: would need a built-in way outside of evaulating code. Don't have control over the code. (The program ssh's into and executes a ruby script)
arturaz has quit [Ping timeout: 246 seconds]
<evaryont> passing in something via RUBYOPT (like -rtrace) is doable
sn0wb1rd has quit [Quit: sn0wb1rd]
Synthead has quit [Ping timeout: 244 seconds]
juarlex has quit [Read error: No route to host]
burgestrand has joined #ruby
Synthead has joined #ruby
juarlex has joined #ruby
<Spooner> evaryont : all that -rtrace is does "require 'trace'" before it runs the code, so you could just load any Ruby code with that (you may need to set -I too, so it knows where to look for the file).
sn0wb1rd has joined #ruby
superguenter has joined #ruby
timonv has quit [Remote host closed the connection]
theRoUS_ has quit [Ping timeout: 268 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
<Spooner> So setting RUBYOPT="-I/path/to/my/scripts -rmy_magic_tracer" would run /path/to/my/scripts/my_magic_tracer.rb before Ruby ran the main code.
<Spooner> That is, if you don't want to make it into a full gem, of course!
ztirf has quit [Quit: Nettalk6 - www.ntalk.de]
beneggett has quit [Quit: Computer has gone to sleep.]
xnm has quit [Quit: WeeChat 0.3.7]
<evaryont> Spooner: yeah. the problem is distributing it to the host. I don't have a lot of control over it...
lggr has quit [Ping timeout: 264 seconds]
bbttxu has quit [Quit: bbttxu]
<Spooner> evaryont : You could put all the code in -e"" instead, if all you have control over is the command line?
atmosx has quit [Remote host closed the connection]
dakine has quit [Read error: Connection reset by peer]
<Spooner> Oh, there is tracer in the standard library. trace is a gem. Both were mentioned and I was assuming you meant the latter.
alvaro_o has joined #ruby
jjbohn has joined #ruby
<evaryont> Spooner: heh. tracer in stdlib exists in 1.9.3, don't know if it existed in an different name :)
<evaryont> Spooner: but yeah, CLI and environment variables, I have control over.
lggr has joined #ruby
<evaryont> hrm, I did -rtracer and got no such file to load
c0rn_ has joined #ruby
<Spooner> It is in my 1.8.7 and it seems to work.
Forevernade has quit [Remote host closed the connection]
<evaryont> herp
<evaryont> I did -rtrace, no trailing 'r'.
mockra has joined #ruby
<Spooner> However, you don't jsut require it - you need to wrap the code in a Trace.on {}
havenn has quit [Remote host closed the connection]
<Spooner> Yes, that is what I saw you paste in, which does exist as a gem. Tracer is the standard lib.
atmosx has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
schwap has quit [Ping timeout: 240 seconds]
icooba has quit [Quit: Computer has gone to sleep.]
<Spooner> You could -e"Tracer.on" I suppose.
lggr has quit [Ping timeout: 246 seconds]
emmanuelux has joined #ruby
<Spooner> I'm not convinced that would be a good idea though, since you'd trace through EVERYTHING, such as all the code being run in gems.
pnkbst has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
schwap has joined #ruby
eignerchris has joined #ruby
<Spooner> I'm guessing the code works on your machine, but fails in production, which is why you barely have access to it?
<evaryont> yar.
<evaryont> and -e in RUBYOPT throws an error. Silly ruby, being safe & all.
<Spooner> I'd suggest you drop some "Trace.on if ENV['TRACING_MODE']" and Trace.off's in your code and re-upload it.
c0rn_ has quit [Quit: Computer has gone to sleep.]
<Spooner> Then you can just trace the bits you are interested in.
<Spooner> Or look to see if something like Pry solves your problem in another way (it seems to do everything nowadays).
theRoUS_ has joined #ruby
iamjarvo has joined #ruby
JonValt has joined #ruby
lggr has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.8]
teriyaki has quit [Ping timeout: 240 seconds]
<JonValt> Hey all. I have a line: ** if File.directory?("c:/users") do ** in my code, and I'm getting an error (in metasploit) ** NoMethodError undefined method `directory?' ** Any help for this hopeless n00b?
<Spooner> JonValt : Er, looks fine to me. What Ruby version are you using?
bradhe has quit [Remote host closed the connection]
CodeFriar has quit [Quit: Leaving...]
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
xzy has joined #ruby
<Spooner> Mmm, it was already in 1.8.6, so that does seem like an odd error.
<evaryont> Spooner: thanks for your help. Looks like I'll have to do the re-upload
remmy444 has joined #ruby
evaryont has left #ruby ["may the ruby always be with you~"]
<JonValt> Spooner: sorry, google-fu not working. How would I tell?
lggr has quit [Ping timeout: 244 seconds]
mikepack has quit [Remote host closed the connection]
<Spooner> JonValt : ruby -v
<JonValt> What's weird for me is that this works in irb
<JonValt> (metasploit's irb)
<JonValt> ruby 1.9.2dev (2010-07-02) [x86_64-linux]
DrShoggoth has quit [Ping timeout: 246 seconds]
<Spooner> I haven't used metaspoit. File.directory? Seems pretty standard. Maybe something else in the file is at fault?
<JonValt> Figured I'd ask here, but if it is a metasploit problem, I'll ask there. :-)
dmnd has quit [Client Quit]
<JonValt> ok I'm a total ruby gimp, so that's likely. But it does point to that line as the error.
bradhe has joined #ruby
<Spooner> Can you post the code to pastie.org ?
remmy444 has left #ruby ["Leaving"]
chrisja has quit [Quit: leaving]
hsbt has quit [Ping timeout: 246 seconds]
GoHuyGo has quit [Quit: Leaving]
linoj_ has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
alexbst has joined #ruby
k610 has joined #ruby
DrShoggoth has joined #ruby
<JonValt> http://pastie.org/4773647 now I feel embarrassed cuz my code is so bad. :-P
<wunz> can't learn if feel embarassed
<Spooner> JonValt : You don't use "do" with "if"
linoj has quit [Ping timeout: 256 seconds]
linoj_ is now known as linoj
lggr has joined #ruby
<Spooner> do/end is a block, but if/end is different
<JonValt> ok
<Spooner> Well, #39-41 are garbled really.
hsbt has joined #ruby
<Spooner> Not sure what you are trying to achieve, so hard to tell you how to fix it.
<JonValt> There will eventually be code in the middle. Trying to do "if directory /users exists, do all this stuff" elsif do all this other stuff
jrist is now known as jrist-afk
<JonValt> right now I was writing the "elsif" part
k610 has quit [Ping timeout: 240 seconds]
<Spooner> elsif needs a condition. You probably just mean else
<JonValt> (refer to earlier me saying I was a gimp
<Spooner> Remove the do/end on 39-40 and it looks like it might work. Consistent indentation would make the code significantly easier to read.
<JonValt> roger that. So no "do" and no "elsif" - else instead
Guest29702 has quit [Ping timeout: 268 seconds]
<JonValt> thanks. I'll revise it, try again, and also make it easier to read.
k610 has joined #ruby
<JonValt> I appreciate it. I suck but I'm trying. :-D
<Spooner> By the way .reject {|o| not File.directory?(o)} => .select {|o| File.directory?(o)}
ersoy- has quit [Ping timeout: 240 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<JonValt> HAHA. Double-negative?
savage- is now known as ryanlecompte
<Spooner> Yep.
<JonValt> Thank. I promise mah english is more weller than that.
manizzle has joined #ruby
<GeekOnCoffee> Spooner: reject is !select
mucker has quit [Remote host closed the connection]
rubious has joined #ruby
<Spooner> GeekOnCoffee : Yes. And?
GoGoGarrett has joined #ruby
Chryson has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
pnkbst has quit [Ping timeout: 240 seconds]
zigomir has quit [Quit: Leaving]
k610 has quit [Ping timeout: 256 seconds]
<GeekOnCoffee> ah you were suggesting a refactor
<Spooner> Yep. Just a little thing.
k610 has joined #ruby
lggr has joined #ruby
deadghost has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
jjbohn has quit [Quit: Leaving...]
twooster has quit [Ping timeout: 256 seconds]
jimeh2 has quit [Ping timeout: 268 seconds]
JarJar has joined #ruby
bondar has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
joast has quit [Ping timeout: 250 seconds]
GoHuyGo has joined #ruby
joofsh has quit [Quit: Leaving]
k610 has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
<JonValt> Spooner: I divided it up better, calling a new function for each action. Should something like this work better?
bananagram has joined #ruby
khakimov has joined #ruby
<Spooner> xp/vista_paths should perhaps be a constant rather than a method (XP_PATHS = "c:/documents and settings") ? But yes, working out the path in a method makes more sense.
drago757 has quit [Quit: drago757]
<JonValt> Okay, and the if, end, and else look better as well? :-)
friskd has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
<Hanmac> File.directory?("c:/users") ? VISTA_PATHS : XP_PATHS
<JonValt> Hanmac can you explain that?
friskd has quit [Client Quit]
<Spooner> ?: Is the trinary operator that is a shorthand for if/else/end
k610 has joined #ruby
<Spooner> if x then y else z ==> x ? y : z
<JonValt> wow, nice!
<JonValt> Thanks
friskd has joined #ruby
deadghost has joined #ruby
<Spooner> Oops: if x then y else z end ==> x ? y : z
hsbt has quit [Ping timeout: 245 seconds]
headius has joined #ruby
<JonValt> Thanks again. Gonna clean it up a little and try it out.
Nisstyre-laptop has quit [Ping timeout: 268 seconds]
hsbt has joined #ruby
lggr has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
k610 has quit [Ping timeout: 245 seconds]
Virunga has joined #ruby
elico has joined #ruby
bluenemo has quit [Remote host closed the connection]
k610 has joined #ruby
yoklov has joined #ruby
swarley has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
Solnse has joined #ruby
tntc has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
yoklov has quit [Client Quit]
cbuxton has quit [Ping timeout: 240 seconds]
<Spooner> JonValt : Incidentally, you can use ENV['USERPROFILE'] to get to "c:/users/me", which is a bit more robust.
<Spooner> Probably a bit more robust.
xyzodiac has quit [Quit: Computer has gone to sleep.]
<Spooner> or ENV['HOME']
k610 has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 240 seconds]
<JonValt> That's true. But this is for forensics, and it'll be running as a random user with admin privileges or SYSTEM. So it has to go to the "users" directory and look in each folder that exists there.
jenrzzz has quit [Quit: Time is an illusion. Lunchtime doubly so.]
k610 has joined #ruby
<JonValt> This needs to parse all users folders regardless of name, etc. if that makes sense.
<Spooner> Yes, but you could use File.dirname ENV['HOME'] to get "c:/users" or "d:/documents and settings" or whereever it is.
axl_ has joined #ruby
lggr has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
br4ndon has joined #ruby
cbuxton has joined #ruby
vitoravelino`afk is now known as vitoravelino
adambeynon has quit [Quit: Computer has gone to sleep.]
k610 has quit [Ping timeout: 256 seconds]
k610 has joined #ruby
Juul has joined #ruby
cbuxton1 has joined #ruby
arya__ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
superguenter has quit [Quit: Leaving.]
neosimago has joined #ruby
chussenot_ has joined #ruby
chussenot_ has quit [Client Quit]
nwest has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 244 seconds]
<JonValt> Spooner Yeah, I'm not sure about that. irb on my win7 box returns "u:\" for that env
hsbt has quit [Ping timeout: 244 seconds]
<Spooner> JonValt : print them all out with: ENV.each {|k, v| puts "#{k}: #{v}" }
hsbt has joined #ruby
<Spooner> What I suggested works on my win7 machine, but now I think about it, my env could have a lot of non-standard stuff in it.
ph^ has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
cbuxton has quit [Ping timeout: 246 seconds]
k610 has quit [Ping timeout: 256 seconds]
<JonValt> http://pastie.org/4773887 - Still getting the same error. This should be easier to read. (it defaulted to black bg)
chussenot has quit [Ping timeout: 240 seconds]
mrdodo has joined #ruby
k610 has joined #ruby
<Spooner> Oooh, Msf has its own File! You should use ::File.directory to ensure you use the regular one.
lggr has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
wmoxam_ has joined #ruby
br4ndon has quit [Ping timeout: 264 seconds]
rcs has quit [Ping timeout: 264 seconds]
nwest has joined #ruby
mwilson` has quit [Ping timeout: 268 seconds]
ph^ has joined #ruby
joast has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
<Spooner> JonValt : VISTA_PATHS won't map onto the method vista_paths. You need: http://pastie.org/4773904
<JonValt> So change File.directory to ::File.directory ?
<Spooner> Yes.
ryanf has joined #ruby
schwap has quit [Ping timeout: 264 seconds]
<Spooner> If I'd been given the full error message, I could have said earlier ;)
schwap has joined #ruby
dpk has joined #ruby
rcs has joined #ruby
<JonValt> Oh, sorry about that. :-/
k610 has quit [Ping timeout: 268 seconds]
<JonValt> I don't want to be the unhelpful guy asking questions. :-)
adambeynon has joined #ruby
k610 has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
hashpuppy has left #ruby [#ruby]
<atmosx> using ruby on Windows is evil
<atmosx> actually, using windows is evil
<wmoxam_> Using windows is pretty normal
superguenter has joined #ruby
<JonValt> Spooner: Okay, it did it with no errors. But I didn't get any output either (metasploit's print_status is like puts)
<JonValt> BUT the error went away.
<Spooner> You don't have any print_status in that last test.
jonathanwallace has joined #ruby
joofsh has joined #ruby
theRoUS_ has quit [Ping timeout: 268 seconds]
mockra has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 248 seconds]
k610 has quit [Ping timeout: 244 seconds]
<JonValt> ah, it was the caps from the code
<JonValt> fixed it.
lggr has joined #ruby
<JonValt> I did not have a print_status, but what I also didn't have was a direction to go to xp_paths or vista_paths :-)
<atmosx> wmoxam_: yes, that's why 9 out of 10 users have problems with paths
k610 has joined #ruby
hsbt has joined #ruby
<JonValt> IT WORKS. :-)
<atmosx> cool
<atmosx> finally :D
<JonValt> haha!
<JonValt> yeah no kidding. But thanks. You guys made me a better programmer. I have a ways to go, but every little bit helps. Thanks again.
<wmoxam_> atmosx: like, that's there are differences between paths on different OS versions?
xaq has joined #ruby
iamjarvo has joined #ruby
<wmoxam_> Good thing that *nix has never had that problem
<wmoxam_> they're all exactly the same!
havenn has joined #ruby
<atmosx> It also had gnu tools, shells like zsh, it has open source versions of everything, freely available for everyone.
<JonValt> Yeah, it sucks for me too, because Vista/7 also have a Documents and Settings folder, but it's generally empty. Don't get me started on Application Data versus "APPDATA"
<JonValt> :)
<atmosx> wmoxam_: also it has decent file systems and some sort of system design that makes sense.
Vinz_ has joined #ruby
<joofsh> jonvalt…..nice user name
<wmoxam_> atmosx: I run two versions of *nix that don't have GNU tools
<Vinz_> Hi :)
<JonValt> joofsh thanks.
<wmoxam_> and have run GNU tools on Windows
* wmoxam_ shrugs
metrix has joined #ruby
<wmoxam_> lets all beat the dead horse together
lggr has quit [Ping timeout: 264 seconds]
<atmosx> wmoxam_: the fact that you *do* not want gnu tools on your unix version have nothing to do with the *fact* that windows suck big time.
k610 has quit [Ping timeout: 246 seconds]
<wmoxam_> atmosx: Why would I want to replace my system tools with GNU ones?
<atmosx> wmoxam_: I never argued against your system tools.
<wmoxam_> atmosx: and what does any of this have to do with your bitching about some stupid OS?
<atmosx> I said that windows suck, you on windows? if yes, compared to linux/osx/bsd sucks.
k610 has joined #ruby
<atmosx> end of story.
hsbt has quit [Ping timeout: 260 seconds]
<wmoxam_> atmosx: for your use case it does
<atmosx> wmoxam_: the discussion started about paths.
<wmoxam_> atmosx: stop trying to bully others because they might not share your use case
superguenter has quit [Quit: Leaving.]
<metrix> what does f do some; methods; end actually do? is this a shortcut that passes f as the first parameter to each of my methods??
<wmoxam_> it's a cancer in the Ruby community
<atmosx> wmoxam_: if he were on linux he would probably never had this issue. He is not the first one comming here complaining about issues on windows. Myself had quite a few when installed ruby on WindowsXP
<atmosx> wmoxam_: no, I'll keep on going
<atmosx> lol
<atmosx> wmoxam_: you *HAVE* to buy the new iPhone5 to support Apple!
Eiam has joined #ruby
Eiam has quit [Changing host]
Eiam has joined #ruby
<wmoxam_> "lol, why do you use such a shit OS bro?" <-- Windows user's perception of the average Rubyist
fmcgeough has joined #ruby
superguenter has joined #ruby
<havenn> I liked the Apple releases Nothing (we're just coasting) keynote: http://www.blippitt.com/apple-unveils-nothing-to-begin-coasting-video/
fmcgeough has quit [Client Quit]
fmcgeough has joined #ruby
<wunz> if << appends text, what does >> do?
<atmosx> wmoxam_: seriously though, windows is a lame dev envinroment, apart from that... I agree with you, OS doesn't matter ultimately if you are able to configure your settings properly.
invisime has quit [Quit: Leaving.]
jenrzzz has joined #ruby
elaptics is now known as elaptics`away
<wunz> i cant live without the google maps :x
<metrix> Are we having a Windows vs Linux debate? Because I still remember the time I went to #Python channel asking how to get Python to compile on SCO somewhere around 2005...
<atmosx> I don't open links from unknown people on IRC
<wunz> so until apple makes better map apps, i wont' switch
Monie has joined #ruby
<atmosx> metrix: yeap, but we'll switch to vim vs emacs shortly
<metrix> LOL
<wmoxam_> lolz
k610 has quit [Ping timeout: 245 seconds]
<wmoxam_> #ruby is a ghetto
wmoxam_ has quit [Quit: leaving]
sepp2k has quit [Read error: Connection reset by peer]
<atmosx> hmmm he has never been to #openbsd for sure...
c0rn_ has joined #ruby
hsbt has joined #ruby
lggr has joined #ruby
k610 has joined #ruby
xaq has quit [Remote host closed the connection]
tntc has joined #ruby
<metrix> wmoxam_: if they aren't helpful with answers on your Windows problems: wait a day, change your nick name and say that Ruby is so terrible because it won't do X on Windows
adeponte has joined #ruby
horofox has quit [Quit: horofox]
workmad3 has joined #ruby
ztirf has joined #ruby
<wunz> lol, nice
bigkevmcd has quit [Read error: Connection reset by peer]
atmosx has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 256 seconds]
k610 has joined #ruby
frogprince_mac has quit [Read error: Connection reset by peer]
frogprince_mac has joined #ruby
timonv has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
horofox has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
triptec has joined #ruby
hsbt has joined #ruby
horofox has quit [Client Quit]
lggr has joined #ruby
k610 has quit [Ping timeout: 248 seconds]
<joofsh> lol, anyone else just loving the apple hate today?
a_a_g has quit [Quit: Leaving.]
<joofsh> poor iOS maps
superguenter has quit [Quit: Leaving.]
k610 has joined #ruby
<Hanmac> "apple bashing" is folks sport :D
timonv has quit [Ping timeout: 244 seconds]
superguenter has joined #ruby
<joofsh> lol, i guess it comes with the territory of being the richest company in the world
<Hanmac> richest does not mean the best :P
theRoUS_ has joined #ruby
<joofsh> nope, just means most trendy :P
beneggett has joined #ruby
Juul has quit [Quit: laters]
<joofsh> do you think they're will be, in the near future, a shift from OSX to linux among rails developers?
DrShoggoth has quit [Quit: Leaving]
lggr has quit [Ping timeout: 260 seconds]
<joofsh> lol man, i love that tumblr
<joofsh> all the "earthquake" maps
k610 has quit [Ping timeout: 240 seconds]
<Hanmac> i heard in the news, that the fanboys buy the newest applephone, because they have a RELATIONSHIP with the phone .. oO
<Hanmac> even for a nerd like me, does it sound crank oO
mrdodo has quit [Remote host closed the connection]
<Spooner> joofsh : Only if all the hipsters can still wave around a shiny Mac laptop, even if it has Linux on it ;)
<joofsh> lol
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
k610 has joined #ruby
<joofsh> i really prefer linux, I don't like the restrictive culture of apple
superguenter has quit [Quit: Leaving.]
<joofsh> but all the rails developers i know or work with use mac, and i'm by no means a "sheep", but for pair programming and such, it was easier to have a similar setup
iocor has joined #ruby
lggr has joined #ruby
s1n4 has quit [Quit: leaving]
mikepack has quit [Ping timeout: 246 seconds]
pskosinski has quit [Ping timeout: 276 seconds]
hsbt has quit [Ping timeout: 246 seconds]
bbttxu has joined #ruby
<Spooner> I use windows (and a linux VM on Windows) and learned to have a thick hide around Ruby people ;D
k610 has quit [Ping timeout: 246 seconds]
hsbt has joined #ruby
<reactormonk> Spooner: yeah, if you build rock on sand, it won't get stable ;-)
<joofsh> haha, good for you then, you are braver than I
<libryder_> is there a ruby idiom for indenting after private/protected keywords?
k610 has joined #ruby
<reactormonk> libryder_: I haven't seen private/protected used, it's here to make conservative people feel confortable.
<Spooner> The usual thing is to have them at the class/end indentation, not at the code level. I keep them at the def level though.
kirun has joined #ruby
<libryder_> reactormonk: i use it as an indicator to anyone working with my code, not to prevent anything
<Spooner> Dunno, I am a bit believer in them, reactormonk
<libryder_> public interface at the top, private at the bottom
deadghost has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
bradhe_ has joined #ruby
cnf has joined #ruby
<Spooner> MyObject.public_methods is useful to find out the API. Useless if people don't bother with protected on internal stuff.
cody-- has joined #ruby
<Spooner> *my_object.public_methods
ztirf has quit [Quit: Nettalk6 - www.ntalk.de]
macmartine has joined #ruby
jimeh2 has joined #ruby
<Spooner> Also prevents all your internal logic being published by docs. I won't go on ;)
hbpoison has joined #ruby
timonv has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
c0rn_ has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Ping timeout: 248 seconds]
<reactormonk> Spooner: they should show up, just as private - I hate people using :nodoc: when I try to reconstruct how the code works
deadghost has joined #ruby
k610 has quit [Ping timeout: 264 seconds]
fmcgeough has quit [Quit: fmcgeough]
k610 has joined #ruby
mikepack has joined #ruby
<Spooner> Depends on what you put in your .yardoc. Makes considerably more sense to use public/protected rather than :nodoc: though, since then the user can decide how much is documented.
<reactormonk> see rails... last time I checked, that is
kemet has joined #ruby
Mon_Ouie has joined #ruby
nicoulaj has joined #ruby
ryanlecompte has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
kemet has left #ruby [#ruby]
pskosinski has joined #ruby
manizzle has quit [Ping timeout: 260 seconds]
<Spooner> Yes, but there is a difference between API docs, which should only really show public stuff and documentation you might generate as a reference.
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<Spooner> *more general reference, for example, to help you patch it.
nanderoo has quit [Quit: Leaving.]
k610 has quit [Ping timeout: 246 seconds]
jrist-afk is now known as jrist
lggr has quit [Ping timeout: 245 seconds]
<Spooner> I actually put protected/public directly before a lot of my methods individually. The thing is that it is then a reference, without me having to scroll up until I see "protected" or the start of the class, to remind myself what type of method it is ;)
mikepack_ has joined #ruby
<Spooner> And no, I am not suggesting other people should do it that way.
mikepack has quit [Ping timeout: 246 seconds]
kpshek has joined #ruby
virgul has quit [Remote host closed the connection]
whitenoise has joined #ruby
lggr has joined #ruby
luckyruby has joined #ruby
sailias has quit [Quit: Leaving.]
Criztian has quit [Remote host closed the connection]
alienvenom has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 264 seconds]
johnlcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
lggr has quit [Ping timeout: 248 seconds]
<swarley> so, i have a math problem
<libryder_> 42
<swarley> trying to remember something. Lets say i have x = y/z and i want to find z. How would i do that?
<swarley> I thought -x = z/y was an option but i'm not sure
axl_ has quit [Quit: axl_]
<swarley> and then multiply both sides by y
<joofsh> z= y/x
<joofsh> multiply both sides by z, then both sides by x
metrix has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
paolooo has quit [Quit: Page closed]
<joofsh> 1/x = z/y , not negative x
Jonatin has joined #ruby
<lectrick> multiply both sides by z. Divide both sides by x. Congratulations.
iamjarvo has joined #ruby
<lectrick> z * (x = y/z) == zx = y; (zx = y)/x == z = y/x
<swarley> ohh thank you
<bananagram> I like algebra
<lectrick> it's not that hard once you get the swing of it
hsbt has joined #ruby
manizzle has joined #ruby
Forevernade has joined #ruby
lggr has joined #ruby
alienvenom has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
hbpoison has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
jso has quit []
pdelgallego has joined #ruby
dpk has quit [Ping timeout: 246 seconds]
<swarley> okay, so let me try this again
dpk has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
S1kx has quit [Quit: Leaving]
mikepack has quit [Ping timeout: 244 seconds]
krawchyk has quit [Remote host closed the connection]
rubious has quit [Quit: Leaving...]
joeycarmello has quit [Remote host closed the connection]
<diegoviola> i'm working with some code that saves data to a mongodb database, and i want to show notifications with websockets or ajax when data is saved on a collection... but i don't think mongodb supports triggers or anything like that, what do you guys recommend?
<diegoviola> the ajax client-side is the easy part, but how do i tell that changes have been made in mongo?
maletor has joined #ruby
lggr has joined #ruby
c0rn_ has joined #ruby
dpk has quit [Ping timeout: 246 seconds]
dpk has joined #ruby
deryl1 has joined #ruby
mikepack has joined #ruby
deryl has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 240 seconds]
BigFatFatty has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<havenn> Hmmm, Ruby 2.0 Refinement for pig latin - I need a more productive way to procrastinate: https://gist.github.com/3763549
eldariof has quit []
beneggett has quit [Quit: Computer has gone to sleep.]
cody-- has quit [Quit: node-irc says goodbye]
<havenn> diegoviola: If you haven't tried #mongodb, those guys would know.
<diegoviola> ty
PragCypher has quit [Read error: Connection reset by peer]
mikepack has quit [Ping timeout: 248 seconds]
superguenter has joined #ruby
adeponte has joined #ruby
<Hanmac> "piglatin sounds funny" XD
PragCypher has joined #ruby
<shevy> grunt
<shevy> grunt
<shevy> I speak piglatin
lggr has joined #ruby
<havenn> Iay opehay efinementsray akemay itay inay Ubyray 2.0, ersonallypay.
<Hanmac> its banisters native language :P
<Spooner> Hanmac : That makes everything make a lot more sense.
Chryson has quit [Quit: Leaving]
hsbt has quit [Ping timeout: 240 seconds]
und3f has joined #ruby
nga4 has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 246 seconds]
ibash has joined #ruby
hsbt has joined #ruby
etank has quit [Quit: WeeChat 0.3.8]
axl_ has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
etank has joined #ruby
<swarley> So to be more specific about what i'm trying to do.
<swarley> I'm doing kinematics (physics) and I have velocity, and distance. I'm trying to get time from that
mmitchell has joined #ruby
<swarley> Velocity = Distance / Time
<Hanmac> Time = Distance / Velocity (if Velocity != 0)
workmad3 has joined #ruby
<canton7> (and technically still true if velocity = 0)
jgrevich has joined #ruby
<swarley> this is what i'm trying
<swarley> and if velocity is 0, time results as infinite for me
<canton7> why '+0.0' ?
<swarley> to ensure that it has precision
<canton7> use #to_f to #fdiv
<canton7> s/to/or
<swarley> k
blazed has joined #ruby
theRoUS_ has quit [Ping timeout: 256 seconds]
<swarley> should i just add an exception for when velocity is zero?
<canton7> well, depends what you want to do
<canton7> if velocity is zero then time *is* infinite
<swarley> what about initial velocity of zero?
<workmad3> why would initial velocity be 0?
<swarley> because there is no time or distance to put it against
<swarley> you can have v0 = 0
mrsolo has quit [Quit: This computer has gone to sleep]
<swarley> oh, well duh i forgot
<swarley> i'm using average velocity
neosimago has quit [Ping timeout: 246 seconds]
<swarley> instantaneous velocity has a limit
<workmad3> swarley: also, have[:distance].to_f
<workmad3> rather than +0.0
<swarley> which i have NO idea how to do, to be honest
<swarley> workmad3, already using fdiv like canton7 suggested
<workmad3> that works too :)
<workmad3> I forget about fdiv
<swarley> well i suppose i could use a longer formula
<workmad3> and yeah, if you want to handle initial velocity, you're going to need acceleration and you're going to really want to be doing calculus
lggr has joined #ruby
<workmad3> and if you're doing calculus, I'd suggest you do an RK4 numerical integrator ;)
<swarley> i hate when i dont have time in physics equations, it makes it so annoying to do anything else
mrsolo has joined #ruby
* Hanmac does not much care about the laws of physics :P
xnm has joined #ruby
mark_locklear has quit [Quit: Leaving]
strmpnk has joined #ruby
timonv has quit [Remote host closed the connection]
<workmad3> Hanmac: how about the 'suggestions' of physics?
hsbt has quit [Ping timeout: 256 seconds]
<Hanmac> there are more "guidelines" than "laws"
<workmad3> well, I guess it depends on what you class as the 'laws'
Xeago has joined #ruby
<workmad3> do you class the things we have as the laws, or the things that we're attempting to approximate with our equations as the 'laws'?
hsbt has joined #ruby
Rydefalk has quit [Remote host closed the connection]
<Hanmac> "every" law can be "broken" :P
gmci has joined #ruby
<workmad3> well, if you count our current knowledge as the laws, then yes they can be 'broken' because they are only ever approximations
lggr has quit [Ping timeout: 256 seconds]
<workmad3> if you count the actual universe as the laws, then no, I don't think you can 'break' them...
<workmad3> but that's getting into semantics and philosophy, and I had my fill of philosophy earlier :)
Bosma has quit [Quit: leaving]
enriclluelles has joined #ruby
deryl1 has quit [Quit: Leaving.]
deryl has joined #ruby
whitenoise has quit [Quit: This computer has gone to sleep]
lggr has joined #ruby
<Hanmac> workmad3: quote: "You're right! This is a violation of the laws of physics. I'll notify the physics police at once! " :D
<workmad3> :D
hsbt has quit [Ping timeout: 245 seconds]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
GoHuyGo has quit [Quit: Leaving]
beneggett has joined #ruby
hsbt has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
derpops has quit []
idletom has joined #ruby
<avalarion> Is someone able to help me to update my redmine plugin to version 2? Its for enabling bitbucket support
adambeynon has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
superguenter has quit [Quit: Leaving.]
Guedes0 has joined #ruby
Will-0351 has joined #ruby
timonv has joined #ruby
dinkytoy has joined #ruby
beneggett has quit [Ping timeout: 260 seconds]
Will-0351 has left #ruby [#ruby]
lggr has joined #ruby
cpruitt has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
sixtycakes has joined #ruby
sixtycakes has quit [Remote host closed the connection]
beneggett has joined #ruby
pu22l3r_ has quit [Ping timeout: 244 seconds]
moted has quit [Remote host closed the connection]
dpk has quit [Ping timeout: 246 seconds]
gfontenot has quit []
carloslopes has quit [Quit: Leaving.]
piefke has quit [Quit: piefke]
lggr has quit [Ping timeout: 246 seconds]
dpk has joined #ruby
crystalz999 has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
hsbt has quit [Ping timeout: 240 seconds]
horofox has joined #ruby
<crystalz999> Just focusing on lines 1-12, does that mean every new object that is initialized will have the ability to use the "sing_me_a_song" method? http://pastebin.com/5LahPLEX
xclite has quit [Quit: Leaving]
dakine has joined #ruby
dagnachewa has joined #ruby
hsbt has joined #ruby
<swarley> [86] pry(main)> Physics::Kinematics::LinearMotion.solve(acceleration: ??, time: 2, distance: 10, velocity: ??)
<swarley> => {:time=>2, :distance=>10, :velocity=>5.0, :acceleration=>2.5}
<swarley> seems to work now
lggr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
QKO has quit [Changing host]
QKO has joined #ruby
<swarley> if only i could make units of measurement valid in the syntax *sigh*
MasterIdler_ has quit [Quit: MasterIdler_]
Jonatin has quit [Quit: Quit]
bondar has quit []
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mrdodo has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
<TTilus> swarley: like 2.km
yoklov has joined #ruby
awarner has quit [Remote host closed the connection]
<swarley> yeah
<swarley> i guess
<swarley> but it would have to return something like
cakehero has joined #ruby
<TTilus> swarley: i did that for an app im working with
<swarley> Metric::Meter
<TTilus> swarley: check quantity gem or something like that
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lggr has quit [Ping timeout: 264 seconds]
<swarley> crystalz999, yes
<swarley> that is a basic class method
<swarley> anything initialized by Class.new will have the standard class methods
timonv has quit [Remote host closed the connection]
ibash has quit [Quit: ibash]
<crystalz999> Do I have to use .new? I thought there was another way, perhaps assigning methods outright
<swarley> TTilus, thanks, i'll check it out
<TTilus> i made method_missing magic to look up units and instantiate quantities with proper units
love_color_text has joined #ruby
khakimov has joined #ruby
<swarley> crystalz999, what? are you trying to get around making a new object?
<swarley> the other option is to do
mrdodo has quit [Remote host closed the connection]
<swarley> def self.sing_me_a_song(text)
<swarley> and then you can do
<swarley> Song.sing_me_a_song(["Can you feel,", "the love tonight?"])
<crystalz999> I'm just trying to understand OOP in general. Going through several guides, and it just isn't sitting with me.
<swarley> Ah
<swarley> what language are you coming from?
jjbohn has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
<TTilus> html?
<TTilus> ;)
adeponte has quit [Remote host closed the connection]
<swarley> C?
<swarley> if youre from C, i can help explain that one fairly well, i think
moshee has quit [Remote host closed the connection]
Forevernade has joined #ruby
lggr has joined #ruby
headius has quit [Quit: headius]
<TTilus> crystalz999: one helpful mindset is to think of objects as entities and method calls as messages sent to them
<crystalz999> PHP :(
<TTilus> ive been told php is an oo language ;)
<swarley> crystalz999, oh, you must be using an old version for a while then
<swarley> must have been*
<swarley> php5 i think
dpk has quit [Quit: Asleep at the keyboard.]
xyzodiac has joined #ruby
<swarley> well, think about it like this
<swarley> you meet a girl and make her your wife (Wife.new)
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bbttxu has quit [Quit: bbttxu]
<swarley> and then you want to have a kid, so you consumate the marraige (wife.have_crazy_bunny_sex)
<swarley> then you have a kid, (class Kid < Wife)
<swarley> and you tell the kid to pick up his room (kid.clean_room)
sebastorama has joined #ruby
<swarley> if you were in php, you would say something like tell_kid_to_clean_room(kid, room)
lggr has quit [Ping timeout: 256 seconds]
<swarley> but that's just silly! he came out of your wife didnt he? you can yell at the bastard if you felt like it
adeponte has joined #ruby
<swarley> so just tell him directly with a dot
stephenjudkins has joined #ruby
<TTilus> theres a slight problem with that analogy
<TTilus> Kid.new.is_a? Wife # => true
jimeh2 has quit [Ping timeout: 245 seconds]
<TTilus> awww...
<TTilus> ;)
ncr100_ has joined #ruby
robustus has quit [Quit: ZNC - http://znc.in]
faen has joined #ruby
<BigFatFatty> maybe use a last name instead, like Jones.new
<swarley> TTilus, if you're morman it could be accurate
ncr100 has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<swarley> well you could do something like
Goles has joined #ruby
hsbt has quit [Ping timeout: 260 seconds]
<swarley> hm
<swarley> well either way
<swarley> i got to say wife.have_crazy_bunny_sex, so i'm happy
<swarley> also, i learned about Class.inherit for the first time today lol. I was so excited
<swarley> Class#inherit
jso has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
lggr has joined #ruby
enriclluelles has quit [Remote host closed the connection]
shiki has joined #ruby
tommyvyo has quit [Client Quit]
davidcelis has quit [Quit: K-Lined.]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
workmad3 has quit [Ping timeout: 248 seconds]
lggr has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
adamkittelson has quit [Ping timeout: 246 seconds]
QKO has quit [Ping timeout: 256 seconds]
hsbt has joined #ruby
bradhe_ has quit [Read error: Connection reset by peer]
jimeh2 has joined #ruby
bradhe has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
jjbohn has quit [Quit: Leaving...]
shuriken has joined #ruby
sailias has joined #ruby
lggr has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
horofox has quit [Quit: horofox]
jimeh2 has quit [Ping timeout: 244 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
QKO has joined #ruby
PragCypher has quit [Quit: Leaving]
rubious has joined #ruby
mmitchell has quit [Remote host closed the connection]
<havenn> swarley: Hrmm, I'm getting: NoMethodError: undefined method `crazy' for Wife:Class
<havenn> swarley: That method only works on Girlfriend.
lggr has quit [Ping timeout: 264 seconds]
<swarley> havenn, ah right
<swarley> i meant to say
<swarley> wife.my_head_hurts_im_too_tired_i_have_a_meeting_im_on_my_period
<swarley> looks like a java method to me though
<swarley> maybe i'm getting my languages mixed up
asklov has joined #ruby
jimeh2 has joined #ruby
<shevy> swarley nah
<shevy> java would require () and ;
<swarley> also the method name would be longer
<shevy> ruby overcome this silliness
<swarley> and camel case
<shevy> ruby 3.0 will have the brain interface
<swarley> ya
burgestrand1 has joined #ruby
<swarley> i would like jruby better if i didnt have to use java libraries
jarred has joined #ruby
jasonkuhrt has joined #ruby
lggr has joined #ruby
sailias has quit [Quit: Leaving.]
burgestrand has quit [Ping timeout: 240 seconds]
<swarley> oh boy, now i get to do linear motion with constant acceleration
<shevy> lol
<shevy> you would like jruby more if you would not have to use java KIND OF ;P
<shevy> what I always hated with jruby was that I would need java
<swarley> ya
kirun has quit [Quit: Client exiting]
JarJar has quit [Quit: This computer has gone to sleep]
lggr has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
BdeUtra has quit [Quit: BdeUtra]
lggr has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
GoHuyGo has joined #ruby
lledet_ has joined #ruby
timonv has joined #ruby
wpaulson has joined #ruby
c0rn_ has joined #ruby
ckrailo has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
diegoviola has quit [Ping timeout: 244 seconds]
lledet has quit [Ping timeout: 252 seconds]
lledet_ is now known as lledet
ghanima has quit [Ping timeout: 248 seconds]
hadees has quit [Quit: hadees]
fantazo has quit [Ping timeout: 245 seconds]
moshee has quit [Remote host closed the connection]
fantazo has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
ij has quit [Read error: Connection reset by peer]
Nisstyre-laptop has joined #ruby
ij has joined #ruby
naz has quit [Read error: Connection reset by peer]
lggr has joined #ruby
bradhe has quit [Remote host closed the connection]
hsbt has quit [Ping timeout: 246 seconds]
hsbt has joined #ruby
nga4 has joined #ruby
ghanima has joined #ruby
havenn has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
lggr has quit [Ping timeout: 256 seconds]
sn0wb1rd has joined #ruby
cakehero has joined #ruby
diegoviola has joined #ruby
deadghost has quit [Ping timeout: 268 seconds]
sailias has quit [Quit: Leaving.]
QKO has quit [Changing host]
QKO has joined #ruby
ltsstar has quit [Quit: ltsstar]
<elico> I want to trigger a "reconfigure" on runtime or "reload" from command line for a running daemon, any suggestions?
davidcelis_ has joined #ruby
friskd has quit [Quit: friskd]
Neil_ has quit [Remote host closed the connection]
danryan has left #ruby [#ruby]
lggr has joined #ruby
davidcelis_ is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
nicoulaj has quit [Remote host closed the connection]
jasonkuhrt has quit [Quit: Leaving...]
ghanima has quit [Ping timeout: 264 seconds]
fantazo has quit [Ping timeout: 264 seconds]
diegoviola has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
dagnachewa has quit [Remote host closed the connection]
budha has quit []
Guest64548 has quit [Ping timeout: 248 seconds]
frogprince has joined #ruby
Solnse has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
bradhe has joined #ruby
timonv has quit [Remote host closed the connection]
hadees has joined #ruby
stopbit has quit [Quit: Leaving]
deadghost has joined #ruby
* kenichi assumes the daemon is ruby
hsbt has quit [Ping timeout: 268 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Ping timeout: 248 seconds]
hippiehacker has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
hoelzro|away is now known as hoelzro
hsbt has joined #ruby
hoelzro is now known as hoelzro|away
asobrasil has left #ruby [#ruby]
jrist is now known as jrist-afk
lledet has quit [Quit: lledet]
joeycarmello has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
mmitchell has joined #ruby
bananagram has quit [Quit: WeeChat 0.3.8]
lggr has quit [Ping timeout: 245 seconds]
bananagram has joined #ruby
horofox has joined #ruby
alesguzik has joined #ruby
horofox has quit [Client Quit]
arubin has quit [Quit: arubin]
banannagram has joined #ruby
bananagram has quit [Read error: Connection reset by peer]
Chryson has joined #ruby
lggr has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
cpruitt has quit [Quit: cpruitt]
arubin has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
CaptainJet has joined #ruby
<elico> kenichi: yes I was thinking of it... abd it seems to work ok but I was thinking about maybe there is another way that I can send message to the process.
kpshek has quit []
mmitchell has quit [Remote host closed the connection]
<elico> I can think of socket. by the way kenichi is a nice name
lggr has quit [Ping timeout: 240 seconds]
Juul has joined #ruby
headius has joined #ruby
yalue has quit [Quit: Leaving]
friskd has joined #ruby
awarner has joined #ruby
joofsh has left #ruby ["Leaving"]
lggr has joined #ruby
arya__ has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
stephenjudkins has joined #ruby
bier has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 256 seconds]
SCommette has quit [Quit: SCommette]
awarner has quit [Remote host closed the connection]
wpaulson has quit [Ping timeout: 256 seconds]
pdelgallego has quit [Quit: pdelgallego]
lggr has joined #ruby
faen has quit [Remote host closed the connection]
adeponte has joined #ruby
Guest29702 has joined #ruby
dakine has quit [Remote host closed the connection]
h4mz1d has joined #ruby
jenrzzz has joined #ruby
<shevy> he is a true samurai
lggr has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 256 seconds]
joeycarmello has quit [Remote host closed the connection]
Juul has quit [Quit: Leaving]
diegoviola has joined #ruby
chrishunt has quit [Ping timeout: 246 seconds]
bier has joined #ruby
Xeago has quit [Remote host closed the connection]
lggr has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
crystalz999 has quit [Ping timeout: 245 seconds]
thunderstrike has quit [Remote host closed the connection]
null- has joined #ruby
skogis has quit [Ping timeout: 268 seconds]
fmcgeough has joined #ruby
chrishunt has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
fmcgeough has quit [Client Quit]
Guedes0 has quit [Ping timeout: 240 seconds]
und3f has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 248 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
dinkytoy has quit []
jenrzzz has quit [Ping timeout: 264 seconds]
tr4656 has joined #ruby
* kenichi blushes
ckrailo has quit [Quit: Computer has gone to sleep.]
artOfWar has quit [Remote host closed the connection]
kenichi is now known as kenichi-away
jasonkuhrt has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
eignerchris has quit [Remote host closed the connection]
<elico> >> puts "works?"
<elico> they killed keny!
<elico> !reset
lggr has joined #ruby
<fir_ed> Trying to debug
<fir_ed> my ruby code
alesguzik has quit [Quit: leaving]
<fir_ed> but the console disappears
snearch has joined #ruby
<fir_ed> too quickly and I can't read the error
<fir_ed> What do I do?
sebastorama has quit [Quit: Computer has gone to sleep.]
<Vinz_> Hey guys, i was wondering if it was possible to do a match on an array entry ?
<Vinz_> Linke array[0].match(/regex/)
<Vinz_> like*
tommyvyo has quit [Quit: Computer has gone to sleep.]
chrishunt has quit [Ping timeout: 264 seconds]
kapowaz has quit [Remote host closed the connection]
cpruitt has joined #ruby
<Vinz_> fir_ed: Hm, execute your code inside a console so it won't close by itself ?
jasonkuhrt has quit [Ping timeout: 256 seconds]
<fir_ed> Vinz_, Thank you that worked.
<Vinz_> :)
mrsolo has quit [Quit: Leaving]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
dmiller has joined #ruby
<Vinz_> Nevermind, I found by myself :)
jimeh2 has quit [Ping timeout: 246 seconds]
Beoran_ has joined #ruby
Juul has joined #ruby
jamjam has joined #ruby
<elico> fir_ed: log it into file..
<Vinz_> Or just read the output in a console
<Vinz_> While executing the code by ruby myfile.rb
lggr has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Client Quit]
chrishunt has joined #ruby
koshii has joined #ruby
luckyruby has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 252 seconds]
kapowaz has joined #ruby
shadoi has joined #ruby
TomJ has quit [Quit: TomJ]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
moted has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
koshii has quit [Client Quit]
lggr has joined #ruby
und3f has joined #ruby
koshii has joined #ruby
davidpk has joined #ruby
davidpk is now known as dpk
TomJ has quit [Ping timeout: 264 seconds]
jjbohn has quit [Client Quit]
BigFatFatty has left #ruby [#ruby]
lggr has quit [Ping timeout: 256 seconds]
pricees has quit [Ping timeout: 252 seconds]
apok_ has joined #ruby
manizzle has quit [Ping timeout: 248 seconds]
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
und3f has quit [Quit: Leaving.]
artOfWar has joined #ruby
apok has quit [Ping timeout: 244 seconds]
apok_ is now known as apok
lggr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
freeayu has joined #ruby
Forevernade has joined #ruby
wargasm has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
toastie has joined #ruby
emmanuelux has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
verto is now known as verto|off
yxhuvud has quit [Ping timeout: 256 seconds]
khakimov has joined #ruby
jso has quit []
yxhuvud has joined #ruby
devdazed has quit [Quit: Bye]
ghanima has joined #ruby
timonv has joined #ruby
ewag has quit [Ping timeout: 248 seconds]
bradhe has quit [Remote host closed the connection]
ij has quit [Read error: Connection reset by peer]
ij has joined #ruby
bradhe has joined #ruby
workmad3 has joined #ruby
lggr has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
ghanima has quit [Ping timeout: 240 seconds]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
williamcotton_ has joined #ruby
williamcotton has quit [Ping timeout: 264 seconds]
williamcotton_ is now known as williamcotton
SCommette has joined #ruby
tommyvyo has quit [Client Quit]
lggr has quit [Ping timeout: 246 seconds]