apeiros changed the topic of #ruby to: Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
ivanoats has joined #ruby
jacktrick has quit [Quit: Leaving]
<ericmathison> if you want to just get the directories you could do dir.glob('**/*').reject { |file| File.file?(file) }
<ericmathison> not sure i entirely understant the documentation about '**' but this method seems to work for me.
<ericmathison> maybe it will for you too.
havenwood has joined #ruby
zastern has joined #ruby
<axl_> ericmathison: thanks!
horofox_ has quit [Quit: horofox_]
bigoldrock has quit [Ping timeout: 260 seconds]
tspike has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
chattmatt has joined #ruby
mocfive has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
Spaceghost|work is now known as pipework
athst has joined #ruby
brennanMKE has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
platzhirsch has left #ruby [#ruby]
wmoxam has joined #ruby
apeiros has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
adramalech has joined #ruby
wesside_ has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
vwoo has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
<adramalech> had a question was wondering about writing data structures to tmpfs. I have seen about using tmpfs for database stuff, but was more wanting an alternative to using shared memory.
zastern has quit [Remote host closed the connection]
jlast has joined #ruby
vwoo has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
justsee has joined #ruby
justsee has joined #ruby
BarnacleBob has quit [Quit: This computer has gone to sleep]
henn1nk has quit [Ping timeout: 248 seconds]
_Renegade has quit [Ping timeout: 260 seconds]
ryan_turner is now known as ryan_turner_
_Renegade has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
Elico has joined #ruby
henn1nk has joined #ruby
Es0teric has joined #ruby
coreinfo99 has quit [Ping timeout: 248 seconds]
Es0teric has quit [Client Quit]
wald0 has joined #ruby
<wald0> how i can downgrade the version of an installed gem ?
<jkline> wald0: the only way I know is to uninstall the gem and then install a specific version
wmoxam has joined #ruby
<wald0> jkline: unfortunately i dont know ruby yet, im just installing redmine, can you tell me these commands?
<jkline> gem uninstall redmine
<jkline> to install a specific version is a little tricky, it is something like `gem install redmine "= 1.2.3"`
<wald0> ok let me see
<jkline> `gem help` and `gem help install` may help too
jerkbot1 has joined #ruby
<jkline> yeah, see I think I got the syntax wrong, I think you would need `gem install redmine --version "= 1.2.3"`
<wald0> aah
vwoo has quit [Ping timeout: 248 seconds]
Nisstyre-laptop has quit [Read error: Connection reset by peer]
moted has quit [Quit: moted]
vwoo has joined #ruby
<jkline> let me know if that works for you wald0
<ericmathison> axl_: if it interests you, i answered a related question on StackOverflow http://stackoverflow.com/questions/16283744/how-do-i-find-files-in-a-directory-that-do-not-have-extensions/
tchebb has quit [Read error: Operation timed out]
<ericmathison> you might find that the Dir['**/*'] syntax is preferable
jarin has joined #ruby
<ericmathison> or that you prefer Find.find('.') to the method I mentioned above
jimg has joined #ruby
Dummies_freelanc has quit [Remote host closed the connection]
dmiller has joined #ruby
jbueza has quit [Quit: Leaving.]
tylersmith has joined #ruby
jerkbot1 has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
bionhart has joined #ruby
axl_ has quit [Quit: axl_]
jerkbot1 has joined #ruby
slainer68 has joined #ruby
Dummies_freelanc has joined #ruby
jerkbot1 has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
timkohrumel has joined #ruby
tspike has joined #ruby
tchebb has joined #ruby
mmlac-bv has quit [Quit: mmlac-bv]
jerkbot1 has joined #ruby
coreinfo99 has joined #ruby
x1337807x has joined #ruby
ARCADIVS has joined #ruby
Dummies_freelanc has quit [Ping timeout: 256 seconds]
<wald0> jkline: seems like now i have an error of bundle saying that doesn't found the previous version, i should have used bundle or something like that ?
jerkbot1 has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
<ericmathison> wald0: yes, you should use bundler.
jerkbot1 has joined #ruby
nazty has quit [Ping timeout: 256 seconds]
<jkline> My understanding of bundler is that it installs specific versions of dependencies, so if you are installing something that makes use of bundler than you probably want to use it
slainer68 has quit [Ping timeout: 240 seconds]
tspike has quit [Ping timeout: 255 seconds]
hogeo has joined #ruby
<wald0> more exactly the problem is that the version of the 'mail' gem in 2.5.4 is buggy and i need to downgrade it to 2.5.3
tkuchiki has joined #ruby
zeade has quit [Quit: Leaving.]
mljsimone|away is now known as mljsimone
<wald0> mmh, i dont found in google how i can install a specific version of something with "bundle" (or to downgrade it)
milardovich has joined #ruby
milardovich has quit [Max SendQ exceeded]
DonRichie has quit [Quit: Verlassend]
ttt has joined #ruby
milardovich has joined #ruby
<jkline> bundle gets its instructions from Gemfile
baroquebobcat has joined #ruby
<jkline> and Gemfile.lock
dr_neek has joined #ruby
rsahae_ has quit [Quit: rsahae_]
ttt has quit [Ping timeout: 252 seconds]
ryan_turner_ is now known as ryan_turner
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
brianpWins has joined #ruby
twoism has joined #ruby
dankest has quit [Quit: Leaving...]
bradhe has joined #ruby
dankest has joined #ruby
end_guy has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
end_guy has joined #ruby
dankest has quit [Client Quit]
johnrlive has joined #ruby
ryan_turner is now known as ryan_turner_
v0n has quit [Ping timeout: 255 seconds]
dmiller has quit [Remote host closed the connection]
ravster has joined #ruby
adramalech has quit [Quit: leaving]
luckyruby has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
jdunck has quit [Quit: Computer has gone to sleep.]
<ericmathison> wald0: did you already try following the installation documentation (including running: bundle install --without development test)?
<chattmatt> anyone a regex expert?
ivanoats_ has joined #ruby
Dummies_freelanc has joined #ruby
vwoo has quit [Ping timeout: 260 seconds]
Mattix has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
vwoo has joined #ruby
Mattix has joined #ruby
fwaokda has quit []
ivanoats has quit [Ping timeout: 248 seconds]
mmlac-bv has joined #ruby
lyanchih has joined #ruby
<joelteon> has anyone here had a problem with capybara-webkit's extconf.rb returning 0 and not doing anyhing?
<jkline> chattmatt: what do you need your regex to match?
banisterfiend has joined #ruby
adramalech has joined #ruby
<chattmatt> jkline: account.id = 542 AND deleted_at = nil needing to match account, id and 542 (could be any combination of *.* = *)
machuga|away is now known as machuga
buzzybron has joined #ruby
<jkline> chattmatt: sounds like /(.*)\.(.*) = (.*)/
<jkline> except you might want to limit what goes in each capture parens
blitz has quit [Quit: This computer has gone to sleep]
<jkline> . will match any character, you might want only a-z or only word characters, or things that aren't dots
wallerdev has quit [Quit: wallerdev]
ryan_turner_ is now known as ryan_turner
<jkline> that is a pretty cool website chattmatt . Are you saying you want to match the same expression multiple times against the same line?
<jkline> the * is greedy by default, it will match the most characters possible
<jkline> so, you can do a non-greedy match, or match things that aren't the equal sign
<jkline> also there is probably a method to match multiple times against the same string. In perl it would be /g on the re, but I don't know what it is in ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
<chattmatt> jkline: ideally, a data structure like [[account, id, 542], [other, name, bob]] is what im looking for… im trying to parse an NSFetchRequest predicate in ObjC to match for relationship properties
Ortuna has joined #ruby
marr has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<jkline> chattmatt: you just said a bunch of words I don't know
dmiller has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
harrymoreno has quit [Ping timeout: 240 seconds]
<jkline> chattmatt: maybe this will help http://rubular.com/r/ajdHpSgUe3
<chattmatt> jkline: :)
<chattmatt> jkline: perfect!
harrymoreno has joined #ruby
<chattmatt> regex has always been my achilles heel
<jkline> there are other ways to parse things
<chattmatt> jkline: essentially what im trying to do is make /accounts/234/transactions out of "select * from transactions where account = 234"
<chattmatt> ^ account.id = 234
jonathanwallace has joined #ruby
saarinen has quit [Quit: saarinen]
<jkline> are you trying to parse sql?
DomKM has joined #ruby
sailias has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
<chattmatt> jkline: it's nspredicate format syntax in objc
<chattmatt> its similar
brennanMKE has joined #ruby
<jkline> how about /from (\w+) where (\w+) = (\d+)/ ?
<jkline> in ruby you can also do named capture groups, but I don't have experience with those
<chattmatt> jkline: i appreciate your help, much obliged
<jkline> you are welcome
nezumi has joined #ruby
<jkline> best of luck with your nspredicates (which I still don't know what those are, but that is ok :) )
ehaliewicz has joined #ruby
vwoo has quit [Quit: Computer has gone to sleep.]
eka has quit [Quit: Computer has gone to sleep.]
synthetix has joined #ruby
<chattmatt> jkline: :)
chipotle_ has joined #ruby
milardovich has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
adramalech has quit [Ping timeout: 248 seconds]
brianpWins has quit [Ping timeout: 246 seconds]
GeissT has joined #ruby
dankest has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
multi_io_ has quit [Read error: Operation timed out]
multi_io has joined #ruby
chipotle has quit [Read error: Operation timed out]
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
freerobby has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
Voodoofish430 has quit [Quit: Leaving.]
agjacome has quit [Quit: leaving]
redgirl has quit [Quit: This computer has gone to sleep]
vwoo has joined #ruby
paranox has joined #ruby
sambao21 has quit [Client Quit]
dankest has quit [Quit: Linkinus - http://linkinus.com]
v0n has joined #ruby
<paranox> pals
citizensinspace has quit [Quit: citizensinspace]
<paranox> is it good form to instantiate instance variables in the initialize method, and only in that method?
brennanMKE has quit [Remote host closed the connection]
etruscan has joined #ruby
bakingbread has quit [Ping timeout: 256 seconds]
brennanMKE has joined #ruby
<r0bgleeson> paranox: yeah it is
twoism has quit [Ping timeout: 276 seconds]
chrishough has quit [Quit: chrishough]
dhruvasagar has joined #ruby
harrymoreno_ has joined #ruby
phipes has quit [Quit: phipes]
ravster has quit [Quit: Leaving.]
synthetix has quit [Ping timeout: 240 seconds]
fierycatnet has joined #ruby
x1337807x has quit [Ping timeout: 248 seconds]
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
freerobby has quit [Quit: Leaving.]
ttt has joined #ruby
bakingbread has joined #ruby
Hanmac1 has joined #ruby
jetblack_ has quit [Quit: leaving]
jetblack has joined #ruby
ttt has quit [Ping timeout: 252 seconds]
GreatSUN_ has joined #ruby
Vivekananda has joined #ruby
iamjarvo has joined #ruby
Vivekananda has quit [Client Quit]
kofno has joined #ruby
AlbireoX has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
adramale1h has joined #ruby
Bosox20051 has joined #ruby
baroquebobcat has joined #ruby
chrishough has joined #ruby
GreatSUN has quit [Ping timeout: 252 seconds]
brennanMKE has quit [Remote host closed the connection]
freerobby has joined #ruby
cpruitt_ has joined #ruby
cpruitt_ has quit [Client Quit]
mmlac-bv has quit [Quit: mmlac-bv]
ttt has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
Guedes has quit [Ping timeout: 255 seconds]
phipes has joined #ruby
cpruitt has quit [Ping timeout: 255 seconds]
jbueza has joined #ruby
brennanM_ has joined #ruby
brennanM_ has quit [Remote host closed the connection]
saarinen has joined #ruby
rsahae_ has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
ivanoats has joined #ruby
mansi has joined #ruby
iamjarvo1 has joined #ruby
ivanoats_ has quit [Ping timeout: 255 seconds]
jkline has quit [Quit: jkline]
iamjarvo has quit [Ping timeout: 256 seconds]
brucelee has joined #ruby
havenwood has quit [Remote host closed the connection]
hollyw00d has joined #ruby
cads has joined #ruby
wmoxam has quit [Ping timeout: 248 seconds]
timkohrumel has quit [Remote host closed the connection]
purpleid1a has quit [Quit: leaving]
hollyw00d has quit [Quit: hollyw00d]
rsahae_ has quit [Quit: rsahae_]
viszu has joined #ruby
mmlac-bv has joined #ruby
jhowarth has joined #ruby
jonahR_ has joined #ruby
pskosinski has quit [Remote host closed the connection]
mljsimone is now known as mljsimone|away
freerobby has quit [Quit: Leaving.]
citizensinspace has joined #ruby
jonahR has quit [Ping timeout: 252 seconds]
jonahR_ is now known as jonahR
baroquebobcat has quit [Quit: baroquebobcat]
rsahae has joined #ruby
radic_ has joined #ruby
rabidpraxis has joined #ruby
slanger has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<slanger> If I have a class that extends a parent class, how can I set a variable in the child class that can then be accessed through the parent class?
radic__ has quit [Ping timeout: 256 seconds]
<slanger> Having issues with self.var_name
<slanger> When I try to access it, I get undefined method self.var_name from the parent
brucelee has quit [Ping timeout: 276 seconds]
mansi has quit [Ping timeout: 276 seconds]
gyre007 has quit [Remote host closed the connection]
io_syl has quit [Read error: Operation timed out]
fierycatnet has quit [Ping timeout: 248 seconds]
tspike has joined #ruby
ryan_turner is now known as ryan_turner_
chipotle_ has quit [Quit: cya]
zeade has joined #ruby
tspike has quit [Ping timeout: 240 seconds]
nari has joined #ruby
harrymoreno_ has joined #ruby
brennanMKE has joined #ruby
harrymoreno has quit [Ping timeout: 240 seconds]
harrymoreno_ is now known as harrymoreno
phipes has quit [Quit: phipes]
ryan_turner_ is now known as ryan_turner
tbrock_ has joined #ruby
dallasm has joined #ruby
vlad_starkov has joined #ruby
phipes has joined #ruby
moshee has joined #ruby
rsahae has quit [Quit: rsahae]
vwoo has quit [Quit: Textual IRC Client: www.textualapp.com]
phipes has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 248 seconds]
i_s has joined #ruby
rezzack has quit [Quit: Leaving.]
brennanMKE has quit [Ping timeout: 255 seconds]
harrymoreno_ has joined #ruby
freerobby has joined #ruby
harrymoreno has quit [Ping timeout: 276 seconds]
harrymoreno_ is now known as harrymoreno
DrShoggoth has joined #ruby
baroquebobcat has joined #ruby
phipes has joined #ruby
tw1sted has joined #ruby
jamesaxl_ has quit [Ping timeout: 264 seconds]
jcromartie has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
freerobby has quit [Ping timeout: 264 seconds]
DomKM has quit [Quit: Leaving.]
harrymoreno_ has joined #ruby
io_syl has joined #ruby
io_syl has quit [Client Quit]
gyre007 has joined #ruby
viszu has quit [Quit: Leaving.]
dhruvasagar has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 260 seconds]
dmiller has quit [Remote host closed the connection]
harrymoreno has joined #ruby
Opettaja has joined #ruby
harrymoreno_ has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
iamjarvo1 has quit [Quit: Leaving.]
bigmac has joined #ruby
Guga_ has quit [Quit: ~]
ryan_turner is now known as ryan_turner_
maroloccio has joined #ruby
gyre007 has quit [Ping timeout: 240 seconds]
dr_neek has quit [Quit: dr_neek]
osvico has quit [Ping timeout: 252 seconds]
harrymoreno_ has joined #ruby
Rix has quit [Ping timeout: 256 seconds]
harrymoreno has quit [Ping timeout: 260 seconds]
harrymoreno_ is now known as harrymoreno
freerobby has joined #ruby
freerobby has quit [Client Quit]
dhruvasagar has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
chattmatt has quit [Quit: chattmatt]
sambao21 has joined #ruby
rsahae has joined #ruby
athst has quit [Quit: athst]
freerobby has joined #ruby
harrymoreno has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
citizensinspace has joined #ruby
Rix has joined #ruby
synthetix has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
harrymoreno has joined #ruby
phipes has quit [Quit: phipes]
ivanoats has quit [Remote host closed the connection]
mmlac-bv has quit [Quit: mmlac-bv]
bradhe has joined #ruby
rsahae has quit [Quit: rsahae]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
r0bgleeson has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
hadees has joined #ruby
bradhe has quit [Remote host closed the connection]
ihelpsu has left #ruby [#ruby]
pcarrier_ has quit [Quit: Computer has gone to sleep.]
pitzips has quit [Ping timeout: 252 seconds]
tndrbt has joined #ruby
philcrissman_ has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 260 seconds]
philcrissman_ has joined #ruby
mmlac-bv has joined #ruby
dmiller has joined #ruby
bubblehead has quit [Remote host closed the connection]
subbyyy has joined #ruby
adramale1h has quit [Quit: leaving]
razi has quit [Quit: Leaving.]
Rix has quit [Ping timeout: 248 seconds]
iamjarvo has joined #ruby
Cyrus has joined #ruby
harrymoreno has quit [Quit: harrymoreno]
alvaro_o has quit [Quit: Ex-Chat]
browndawg has joined #ruby
zastern has joined #ruby
<zastern> When I subtract array bar from array foo, e.g. foo - bar, it position is irrelevant right? All matching objects are removed, and the results are returned.
<zastern> Is that accurate?
<zastern> the positions of objects in the array are irrelevant, i should say
sandGorgon has joined #ruby
hollyw00d has joined #ruby
dmiller has quit [Ping timeout: 248 seconds]
hoofed has joined #ruby
dallasm has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
ryan_turner_ is now known as ryan_turner
luckyruby has joined #ruby
iamjarvo has quit [Ping timeout: 256 seconds]
Rix has joined #ruby
havenwood has joined #ruby
rrecio has joined #ruby
pontiki has joined #ruby
phipes has joined #ruby
rrecio has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
BrianJ has quit [Quit: Computer has gone to sleep.]
ryan_turner is now known as ryan_turner_
v0n has quit [Ping timeout: 252 seconds]
cofin has quit [Quit: cofin]
tndrbt has quit [Quit: tndrbt]
v0n has joined #ruby
Mchl has quit [Ping timeout: 248 seconds]
citizensinspace has quit [Quit: citizensinspace]
pitzips has joined #ruby
tonini has joined #ruby
dmiller has joined #ruby
SegFaultAX has quit [Changing host]
SegFaultAX has joined #ruby
Mchl has joined #ruby
mmlac-bv has quit [Quit: mmlac-bv]
lyanchih has quit [Quit: lyanchih]
brunoro has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
<quazimodo> can we monkey patch within namespaces?
tonini has quit [Ping timeout: 248 seconds]
tonini has joined #ruby
Inside has quit [Ping timeout: 255 seconds]
sandGorgon has quit [Ping timeout: 255 seconds]
jonathanwallace has joined #ruby
shadoi1 has joined #ruby
yshh has joined #ruby
jlast has joined #ruby
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mahmoudimus has joined #ruby
jlast has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 240 seconds]
freakazoid0223 has quit [Ping timeout: 264 seconds]
wmoxam has joined #ruby
dmiller has quit [Remote host closed the connection]
ehaliewicz has quit [Read error: No route to host]
sayan has joined #ruby
x1337807x has joined #ruby
ivanoats has joined #ruby
Jackneill has joined #ruby
axsuul has joined #ruby
<axsuul> How do I write a newline character to file and not have it interpreted
airtonix has joined #ruby
tbrock_ has quit [Quit: Computer has gone to sleep.]
devoldmx3 has joined #ruby
dmiller has joined #ruby
rabidpraxis has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 246 seconds]
rabidpraxis has joined #ruby
hollyw00d has quit [Quit: hollyw00d]
devoldmx has joined #ruby
subbyyy has quit [Ping timeout: 260 seconds]
gtc has joined #ruby
ananthakumaran has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Sherwyn has joined #ruby
hoofed has quit [Quit: hoofed]
devoldmx3 has quit [Ping timeout: 276 seconds]
havenwood has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Levin_22 has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 264 seconds]
Deele has joined #ruby
bradhe has joined #ruby
Levin_22 has quit [Client Quit]
tw1sted has quit [Quit: tw1sted]
browndawg has quit [Quit: Leaving.]
ryan_turner_ is now known as ryan_turner
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
pitzips has quit [Ping timeout: 248 seconds]
philcrissman_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
x1337807x has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
bionhart has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
wmoxam has quit [Ping timeout: 256 seconds]
phipes has quit [Quit: phipes]
tylersmith has quit [Remote host closed the connection]
twoism has joined #ruby
stkowski has joined #ruby
rickruby has joined #ruby
huoxito has quit [Quit: Leaving]
ryan_turner is now known as ryan_turner_
v0n has quit [Ping timeout: 276 seconds]
slanger has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 276 seconds]
synthetix has quit [Ping timeout: 260 seconds]
pitzips has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
ivanoats has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
pootler_ has quit [Quit: leaving]
bionhart has joined #ruby
jlast has joined #ruby
dmiller has quit [Remote host closed the connection]
jaybe has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
alanjc has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
ryan_turner_ is now known as ryan_turner
phipes has joined #ruby
cschneid has quit [Ping timeout: 245 seconds]
G has quit [Ping timeout: 246 seconds]
gyre007 has joined #ruby
baroquebobcat has quit [Client Quit]
Bosox20051 has quit [Remote host closed the connection]
a_a_g has joined #ruby
baroquebobcat has joined #ruby
cyong has joined #ruby
yshh has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
gyre007 has quit [Ping timeout: 252 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
arya has joined #ruby
apeiros has joined #ruby
thebastl has joined #ruby
c0rn has joined #ruby
nomenkun has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
ntus1017 has joined #ruby
ryan_turner is now known as ryan_turner_
Leighton has joined #ruby
pitzips has quit [Ping timeout: 255 seconds]
sayan has quit [Ping timeout: 255 seconds]
shadoi1 has quit [Ping timeout: 240 seconds]
eldariof has joined #ruby
ryan_turner_ is now known as ryan_turner
tylersmith has joined #ruby
bionhart has quit [Remote host closed the connection]
shadoi has joined #ruby
twoism has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 255 seconds]
amh345 has joined #ruby
shadoi has joined #ruby
<amh345> is there a way to have ruby find the path to Documents? and more specifically find the path to documents on both osx and win?
greenarrow has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
tylersmith has quit [Ping timeout: 255 seconds]
nomenkun has quit [Remote host closed the connection]
icole has joined #ruby
Alina-malina has quit [Quit: Leaving]
Alina-malina has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
bionhart has joined #ruby
aspiers has quit [Ping timeout: 260 seconds]
jlast has quit [Remote host closed the connection]
aspiers has joined #ruby
rgoodwin has quit [Ping timeout: 240 seconds]
jimeh has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 240 seconds]
braoru has joined #ruby
icole has quit [Ping timeout: 248 seconds]
ryan_turner is now known as ryan_turner_
rgoodwin has joined #ruby
PhilK has joined #ruby
jimeh has joined #ruby
saarinen has joined #ruby
apeiros has quit [Remote host closed the connection]
bradhe has joined #ruby
drago777 has left #ruby [#ruby]
wallerdev has quit [Quit: wallerdev]
gildo has quit [Ping timeout: 256 seconds]
tagrudev has joined #ruby
jonahR has joined #ruby
ryan_turner_ is now known as ryan_turner
drago777 has joined #ruby
phipes has quit [Quit: phipes]
Opettaja has quit [Quit: WeeChat 0.4.1]
axsuul has quit [Quit: axsuul]
rabidpraxis has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
tylersmith has joined #ruby
browndawg has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
a_a_g has quit [Quit: This computer has gone to sleep]
rdark has joined #ruby
tacos1de has joined #ruby
rickruby has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 256 seconds]
<pontiki> amh345: File.join(File.expand_path(ENV['HOME']),"Documents") on osx/*nix
bleubeard1 has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
<pontiki> win i have no idea, sadly :(
eka has joined #ruby
himsin has joined #ruby
ryan_turner is now known as ryan_turner_
tomzx_mac has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
shadoi has quit [Ping timeout: 256 seconds]
jimg has quit [Remote host closed the connection]
ntus1017 has quit [Remote host closed the connection]
shadoi has joined #ruby
bubblehead has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
himsin has quit [Remote host closed the connection]
etruscan has quit [Ping timeout: 240 seconds]
eka has quit [Quit: Computer has gone to sleep.]
i_s has quit [Quit: i_s]
sayan has joined #ruby
arya has quit [Ping timeout: 246 seconds]
arya_ has joined #ruby
boblu has joined #ruby
justsee has quit [Ping timeout: 264 seconds]
scientes has joined #ruby
<scientes> /home/shawn/.rbenv/versions/1.8.7-p371/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: System error (SocketError)
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ryan_turner_ is now known as ryan_turner
aganov has joined #ruby
dmiller has joined #ruby
andikr has joined #ruby
dash__ has joined #ruby
bakingbread has quit [Ping timeout: 260 seconds]
danslo has quit [Quit: danslo]
<amh345> pontiki: oh. your way is much slicker then what i did. ill gist mine.
dmiller has quit [Ping timeout: 276 seconds]
tonini has quit [Ping timeout: 248 seconds]
akemrir has joined #ruby
havenwood has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
tonini has joined #ruby
pcarrier_ has joined #ruby
tommyvyo has joined #ruby
stkowski has quit [Quit: stkowski]
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
Godd2 has quit [Quit: Page closed]
bakingbread has joined #ruby
c0rn has joined #ruby
w400z has joined #ruby
bleubeard1 has quit [Read error: Connection reset by peer]
timonv has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
ddv has joined #ruby
pcarrier_ has quit [Ping timeout: 252 seconds]
_Renegade has quit [Ping timeout: 252 seconds]
w400z has quit [Client Quit]
ayaz has joined #ruby
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bakingbread has quit [Ping timeout: 256 seconds]
darkstar| has joined #ruby
workmad3 has quit [Read error: Operation timed out]
tommyvyo has quit [Quit:]
jimg has joined #ruby
rgoodwin has quit [Ping timeout: 240 seconds]
Apane has quit [Ping timeout: 256 seconds]
ayaz has quit [Ping timeout: 255 seconds]
tspike has joined #ruby
sleetdrop has joined #ruby
rgoodwin has joined #ruby
pcarrier_ has joined #ruby
danslo has joined #ruby
nomenkun has joined #ruby
arietis has joined #ruby
shammancer has quit [Ping timeout: 260 seconds]
tspike has quit [Ping timeout: 246 seconds]
mafolz has joined #ruby
jimg_ has joined #ruby
c0rn has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
bakingbread has joined #ruby
jimg has quit [Read error: Connection reset by peer]
eldariof has quit [Ping timeout: 255 seconds]
dagobah has joined #ruby
nomenkun has quit [Ping timeout: 260 seconds]
sayan has quit [Read error: Connection reset by peer]
maroloccio has quit [Quit: WeeChat 0.4.0]
redgirl has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
bionhart has quit [Remote host closed the connection]
zigomir has joined #ruby
bradhe has quit [Remote host closed the connection]
bakingbread has quit [Ping timeout: 255 seconds]
bionhart has joined #ruby
pcarrier_ has quit [Read error: Connection reset by peer]
marcgg has quit [Read error: No route to host]
pcarrier_ has joined #ruby
sr78ger has joined #ruby
bionhart has quit [Remote host closed the connection]
marcgg has joined #ruby
dr_bob has joined #ruby
Hanmac has joined #ruby
axsuul has joined #ruby
filipe has joined #ruby
a_a_g has joined #ruby
c0rn has joined #ruby
tylersmith has joined #ruby
charliesome has joined #ruby
dcunit3d has joined #ruby
Mon_Ouie has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
axsuul has quit [Quit: axsuul]
AlbireoX has joined #ruby
timonv has quit [Remote host closed the connection]
pcarrier_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rabidpraxis has joined #ruby
sayan has joined #ruby
reset has joined #ruby
bionhart has joined #ruby
hhtp has joined #ruby
arturaz has joined #ruby
sr78ger has quit [Ping timeout: 252 seconds]
<darkstar|> hi could somebody please help me out
rabidpraxis has quit [Ping timeout: 248 seconds]
a_a_g has quit [Quit: This computer has gone to sleep]
dcunit3d has quit [Ping timeout: 276 seconds]
dcunit3d has joined #ruby
hhtp has quit [Quit: Leaving]
jprovazn has joined #ruby
alem0lars has joined #ruby
sideshowcoder has quit [Read error: Operation timed out]
yxhuvud has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
cyong has quit [Quit: Leaving.]
bakingbread has joined #ruby
snearch has joined #ruby
dcunit3d has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
palyboy has quit []
dhruvasagar has joined #ruby
schaerli has joined #ruby
apeiros has joined #ruby
sideshowcoder has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
persand has joined #ruby
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
gstamp has quit [Quit: Computer has gone to sleep.]
_Andres has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
Al__ has joined #ruby
drfreeze_ has joined #ruby
sr78ger has joined #ruby
adac has joined #ruby
bradhe_ has quit [Ping timeout: 248 seconds]
sayan has quit [Read error: Connection reset by peer]
drfreeze has quit [Ping timeout: 256 seconds]
darkstar| has quit [Read error: Connection reset by peer]
rsahae_ has joined #ruby
Hobogrammer_ has joined #ruby
Hobogrammer has quit [Quit: さようなら]
arya_ has joined #ruby
brianpWins has joined #ruby
Criztian has joined #ruby
Kar- has joined #ruby
timonv has joined #ruby
icole has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
cj3kim has joined #ruby
<adac> On a ruby project, is it possible to set the encoding (ie utf8) somewhere?
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
<adac> mean so that is valid over the whole project
flori_ is now known as flori
icole has quit [Ping timeout: 256 seconds]
adambeynon has joined #ruby
dangerousdave has joined #ruby
thebastl_ has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
khushildep has joined #ruby
ferdev_ has joined #ruby
thebastl_ has quit [Remote host closed the connection]
<joshu> adac I believe you set it at the top of the source file but not 100% sure
threesome has joined #ruby
<joshu> adac pops you mean for a whole project. No idea sorry
ferdev has quit [Ping timeout: 255 seconds]
ferdev_ is now known as ferdev
<joshu> *opps
<Hanmac> adac use ruby2.0 it has utf8 as default
swex has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
thebastl has quit [Ping timeout: 260 seconds]
<joshu> Hanmac if using ruby < 2.0 is this the way to set it # encoding: utf-8
blaxter_ has joined #ruby
<adac> Hanmac, ok I'm already using it :)
error404_ is now known as error404
arya has joined #ruby
ephemerian has joined #ruby
pi3r has joined #ruby
swex_ has quit [Ping timeout: 255 seconds]
bradhe has joined #ruby
tylersmith has joined #ruby
echevemaster has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has joined #ruby
mikecmpbll has joined #ruby
nomenkun has joined #ruby
gasbakid has joined #ruby
yshh has joined #ruby
nomenkun has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 248 seconds]
jonahR has quit [Quit: jonahR]
bionhart has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
timonv has joined #ruby
DaniG2k has joined #ruby
camilasan has joined #ruby
troessner has joined #ruby
niceguyjames has joined #ruby
Coffers has joined #ruby
timonv has quit [Remote host closed the connection]
rsahae_ has quit [Quit: rsahae_]
slainer68 has joined #ruby
persand has quit [Ping timeout: 276 seconds]
persand has joined #ruby
k610 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
ccheney has quit [Read error: Connection reset by peer]
sr78ger has quit [Quit: Qui]
sr78ger has joined #ruby
staafl_alt has joined #ruby
scientes has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
tonini has quit [Ping timeout: 248 seconds]
fbernier has joined #ruby
ghr has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
tesuki has joined #ruby
TMM has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
zastern has quit [Ping timeout: 248 seconds]
ferdev has joined #ruby
cj3kim has quit [Remote host closed the connection]
tonini has joined #ruby
ybart has joined #ruby
timmow has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
erry has quit [Quit: Segmentation fault]
alem0lars has quit [Ping timeout: 260 seconds]
moshee has quit [Ping timeout: 246 seconds]
arya_ has joined #ruby
cj3kim has joined #ruby
gstamp has joined #ruby
girija has joined #ruby
dEPy has joined #ruby
noname001 has joined #ruby
icole has joined #ruby
arya has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
alem0lars has joined #ruby
erry_ has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
stef_204 has joined #ruby
persand has quit [Read error: Connection reset by peer]
s3m73x has joined #ruby
gyre007 has joined #ruby
Zai00 has joined #ruby
yshh has quit [Remote host closed the connection]
moshee has joined #ruby
chrishough has quit [Quit: chrishough]
vlad_starkov has joined #ruby
xerxas has joined #ruby
<joshu> apeiros hey what's up?
jamesaxl has joined #ruby
freeayu has quit [Ping timeout: 246 seconds]
jastix has joined #ruby
sam113101 has quit [Ping timeout: 256 seconds]
zastern has joined #ruby
dEPy has quit [Read error: Connection reset by peer]
dEPy has joined #ruby
gyre007 has quit [Ping timeout: 256 seconds]
jimg_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
persand has joined #ruby
sr78ger has quit [Quit: Qui]
Vert has joined #ruby
dfdf has joined #ruby
evelyette has quit [Ping timeout: 256 seconds]
sam113101 has joined #ruby
bradhe has joined #ruby
tylersmith has joined #ruby
evelyette has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
lkba has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 256 seconds]
eccstartup has joined #ruby
vadelius has joined #ruby
eccstartup has quit [Max SendQ exceeded]
luckyruby has quit [Remote host closed the connection]
ayaz has joined #ruby
atrR_ has joined #ruby
<atrR_> hi
eccstartup has joined #ruby
<atrR_> is there any method to know if certain string has a number even or odd of characteres ?
tommyvyo has joined #ruby
<tobiasvl> string.length % 2
<tobiasvl> ?
<tobiasvl> no, even easier: odd?
<atrR_> tobiasvl: thank you
<tobiasvl> >> "asd".length.odd?
<eval-in> tobiasvl => true (https://eval.in/33458)
<atrR_> and another question more difficult
<atrR_> xd
bubblehead has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
marr has joined #ruby
<atrR_> I have certain hex number, for example 00FF11, how can I give it the forma \x00\xFF\x11
<atrR_> *format
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
slainer68 has quit [Remote host closed the connection]
<canton7> atrR_, how is it a number if it starts with 0? Does it start off as a string? Is there a fixed length?
<atrR_> canton7: well I have a integer and I want to get the hex number of that integer (in little endian) with the forma \xAA\xFF\xDD
slainer68 has joined #ruby
<atrR_> I'm playing with "%x" but I don't get the correct format
tommyvyo has quit [Quit:]
gnagno has joined #ruby
<gnagno> hello all
<atrR_> so for example, I have 22222 --> in hex 56CE --> in little endian CE56
thebastl has joined #ruby
<atrR_> so I would need \xCE\x56
sepp2k has joined #ruby
<gnagno> I created a new hash that returns as default value another hash, that returns as default value an array: a = Hash.new(Hash.new([])) I want to store something in it with: a[4][:abc] << 'abc' , if I then make a I get back {}, if I make a[4] again I get back {}, but if I make a[4][:abc] I get back my string, how come?
<canton7> atrR_, look at Array#pack?
dangerousdave has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
dangerousdave has joined #ruby
<atrR_> canton7: thank you I'm gonna try it
<canton7> gnagno, use the form of Hash.new that takes a proc
emergion has joined #ruby
<gnagno> canton7, I try it now
Zai00 has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<canton7> gnagno, that form of Hash.new returns the *same* object each time the default value is needed, hence what you're seeing
<canton7> the proc form can create a *new* object each time the default value is needed
joonty has quit [Read error: Connection reset by peer]
<gnagno> canton7, am I not supposed to save something with this? a[4][:abc] << 'abc'
<canton7> atrR_, e.g. [0x56CE].pack("V"). Not that that will create the ASCII character if it can, or the \x form if not
buibex has joined #ruby
<canton7> gnagno, I'm still not getting your behaviour, even when creating the hash the same way as you
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
<canton7> >> a = Hash.new(Hash.new([])); a[4][:abc
<eval-in> canton7 => /tmp/execpad-619a48ca9cda/source-619a48ca9cda:3: syntax error, unexpected keyword_rescue, expecting ']' ... (https://eval.in/33462)
<canton7> oops
Leighton has quit [Quit: Leaving]
<atrR_> canton7: than kyou
<atrR_> thank you :D
<canton7> >> a = Hash.new(Hash.new([])); a[4][:abc] << 'foo'; p a; p a[4];
<eval-in> canton7 => {} ... (https://eval.in/33463)
<canton7> aah no, I messed up my tests. Using the default proc stuff has the expected results
<canton7> >> a = Hash.new{ |h,k| h[k] = Hash.new{ |h,k| h[k] = [] } }; a[4][:foo] << 'test'; p a
<eval-in> canton7 => {4=>{:foo=>["test"]}} ... (https://eval.in/33464)
Zai00 has joined #ruby
<gnagno> canton7, try to do this: first declare the hash and put something in some position: a = Hash.new(Hash.new([])); a[4][:abc] << 'foo'; now you expect to have something inside right?
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
xcv has joined #ruby
<canton7> gnagno, there's some weird stuff to do with fact that your statement doesn't actually add a new item to the outermost hash, if you don't use the proc form of Hash.new
brennanMKE has quit [Ping timeout: 248 seconds]
obs has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<canton7> whereas with the proc form of Hash.new, a new item is explicitely added to the outermost hash by the proc
pootler_ has joined #ruby
jbpros has quit [Quit: jbpros]
Peej has quit [Remote host closed the connection]
cha1tanya has quit [Ping timeout: 276 seconds]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
daniel_- has joined #ruby
vlad_starkov has joined #ruby
brianpWins has quit [Quit: brianpWins]
niklasb has joined #ruby
<apeiros> joshu: work :)
emergion has quit [Quit: Computer has gone to sleep.]
elaptics has joined #ruby
<joshu> apeiros ;)
dfdf has quit [Remote host closed the connection]
<Quadlex> Good Mornooning #ruby
ghr has joined #ruby
cha1tanya has joined #ruby
a_a_g has joined #ruby
<alem0lars> Quadlex: Good morning
sleetdrop has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Read error: Connection reset by peer]
jbueza has quit [Quit: Leaving.]
haxrbyte has joined #ruby
sleetdrop has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
TIJ has joined #ruby
tesuki has quit [Remote host closed the connection]
tesuki has joined #ruby
schaerli has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
pitzips has joined #ruby
Nigel_ has joined #ruby
alem0lars has quit [Quit: Leaving]
Nigel_ is now known as G
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
haxrbyte has quit [Remote host closed the connection]
amh345 has quit [Quit: amh345]
bradhe has joined #ruby
Inside has joined #ruby
tylersmith has joined #ruby
persand has quit [Quit: persand]
jimg has joined #ruby
LastBeerEver has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rdark has quit [Quit: leaving]
erry_ is now known as erry
tonini has quit [Ping timeout: 248 seconds]
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
LastBeerEver has quit [Quit: WeeChat 0.4.0]
Meatant has quit [Quit: free hat!]
tylersmith has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 256 seconds]
jimg has quit [Ping timeout: 264 seconds]
freeayu has joined #ruby
marr has quit [Ping timeout: 255 seconds]
alanjc has joined #ruby
cschneid has joined #ruby
jaybe has joined #ruby
schaerli has joined #ruby
mikecmpbll has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
Iszak has joined #ruby
tk___ has joined #ruby
Al__ has quit [Quit: Al__]
dfdf has joined #ruby
eldariof has joined #ruby
stef_204 has quit [Remote host closed the connection]
tesuki has quit [Remote host closed the connection]
talntid2 has quit []
Inside has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
Sherwyn has quit [Remote host closed the connection]
zai has joined #ruby
randomnick has quit [Ping timeout: 276 seconds]
randomnick has joined #ruby
ybart has quit [Quit: ybart]
kofno has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
Nisstyre-laptop has quit [Quit: Leaving]
gstamp has quit [Quit: Computer has gone to sleep.]
gstamp has joined #ruby
kofno has joined #ruby
dfdf has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
Shrink has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
shadoi has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
shadoi has joined #ruby
Taranis has quit [Read error: Connection reset by peer]
jerkbot1 has quit [Remote host closed the connection]
Taranis has joined #ruby
binaryplease has joined #ruby
Norrin has quit [Ping timeout: 240 seconds]
Apocalypse has quit [Ping timeout: 240 seconds]
camilasan has quit [Remote host closed the connection]
Amirh1 has joined #ruby
camilasan has joined #ruby
rgoodwin has quit [Ping timeout: 240 seconds]
arusso has quit [Ping timeout: 240 seconds]
nkr has joined #ruby
PhilK has quit [Ping timeout: 240 seconds]
Hien has quit [Ping timeout: 240 seconds]
ShapeShifter499 has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 245 seconds]
DrForr has quit [Ping timeout: 245 seconds]
qun_ has quit [Ping timeout: 264 seconds]
statarb3 has quit [Quit: Leaving]
lkba has joined #ruby
daniel_- has quit [Ping timeout: 276 seconds]
Schuyler has quit [Ping timeout: 264 seconds]
nightfly has quit [Ping timeout: 264 seconds]
jpun_ has quit [Ping timeout: 264 seconds]
bmn_ has quit [Ping timeout: 264 seconds]
Sou|cutter has quit [Ping timeout: 264 seconds]
jpun has joined #ruby
Amirh1 is now known as Amirh
anekos has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
arusso_znc has joined #ruby
rgoodwin has joined #ruby
Apocalypse has joined #ruby
nightfly has joined #ruby
camilasan has quit [Ping timeout: 248 seconds]
PhilK has joined #ruby
Amirh has quit [Client Quit]
Schuyler has joined #ruby
Sou|cutter has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Amirh has joined #ruby
bmn has joined #ruby
Amirh has quit [Client Quit]
k611 has joined #ruby
anekos has joined #ruby
Norrin has joined #ruby
razi has joined #ruby
hexbit has quit [Quit: leaving]
kofno has quit [Remote host closed the connection]
filipe has quit [Read error: Operation timed out]
filipe has joined #ruby
kofno has joined #ruby
Hien has joined #ruby
k610 has quit [Ping timeout: 252 seconds]
hexbit has joined #ruby
sayan has joined #ruby
Amirh has joined #ruby
buibex has quit [Remote host closed the connection]
qun has joined #ruby
_Renegade has joined #ruby
Guga_ has joined #ruby
dfdf has joined #ruby
DrForr has joined #ruby
maroloccio has joined #ruby
daniel_- has joined #ruby
ShapeShifter499 has joined #ruby
vlad_starkov has joined #ruby
razi has quit [Quit: Leaving.]
anderson has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
vlad_starkov has quit [Remote host closed the connection]
anderson has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
scrollback has joined #ruby
tesuki has joined #ruby
`p has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Amirh has quit [Quit: Leaving.]
tesuki has quit [Ping timeout: 255 seconds]
emergion has joined #ruby
cj3kim has quit [Remote host closed the connection]
allanm has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
TIJ has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
matrixise has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
bradhe has joined #ruby
tylersmith has joined #ruby
matrixise has joined #ruby
codecop has joined #ruby
Shrink has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 248 seconds]
tylersmith has quit [Ping timeout: 260 seconds]
atno has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
tesuki has joined #ruby
tesuki has quit [Remote host closed the connection]
timonv has joined #ruby
TMM has quit [Ping timeout: 260 seconds]
icole has quit [Remote host closed the connection]
jintux has joined #ruby
buibex has joined #ruby
TIJ has quit [Read error: Connection reset by peer]
TIJ has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
marr has joined #ruby
tvw has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
jimeh has joined #ruby
a_a_g has joined #ruby
Giorgio has joined #ruby
dfdf has quit [Remote host closed the connection]
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
nari has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
tesuki has joined #ruby
Monotoko has joined #ruby
reset has quit [Quit: Leaving...]
buibex has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
dfdf has joined #ruby
_veer has quit [Read error: Connection reset by peer]
danslo has quit [Quit: danslo]
robustus has quit [Ping timeout: 248 seconds]
Brando753 has joined #ruby
<Brando753> hey guys, so I want to convert some 100 or so images that my program generates into a single multipage pdf file, I figure I have to use RMagick but I am unsure on how to convert it so its a single pdf, any ideas?
sayan has quit [Ping timeout: 248 seconds]
xcv has quit [Remote host closed the connection]
robustus has joined #ruby
<joshu> Brando753 what format are you images in
atno has joined #ruby
<canton7> There is a pdf library around, I think? Another alternative is to output LaTeX, or reStructuredText, or some other markup language which can then be compiled to pdf by another tooll
<joshu> if they're TIFF you can use tiff2pdf http://www.remotesensing.org/libtiff/man/tiff2pdf.1.html
withnale has quit [Quit: ZNC - http://znc.in]
rdark has joined #ruby
<Brando753> they are png
jimg has joined #ruby
<Brando753> and it needs to be cross compatible
<Brando753> I am using windows, but my poor windows/mac users would like to use this as well >.>
<joshu> Brando753 right
<Brando753> I am using *LINUX!
<Brando753> wow
ybart has joined #ruby
<Brando753> but I am unsure how to convert the png into a multipart pdf :/
puppeh has joined #ruby
jprovazn has quit [Quit: Leaving]
<joshu> Brando753 maybe https://github.com/prawnpdf/prawn
<Brando753> that looks good
<Brando753> let me try it out real quick
robbyoconnor has quit [Read error: Connection reset by peer]
danslo has joined #ruby
Al__ has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
withnale has joined #ruby
mist has quit [Killed (njan (because))]
<pontiki> Brando753: i'm not that familiar with RMagick, but with the cli, you just do `convert *.png some.pdf`
lkba has joined #ruby
rafaelcaricio has joined #ruby
verto has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
tesuki has quit [Remote host closed the connection]
withnale has quit [Client Quit]
mrmist has joined #ruby
atno has quit [Ping timeout: 255 seconds]
mrmist is now known as mist
huoxito has joined #ruby
ichilton_ is now known as ichilton
_Renegade has quit [Quit: _Renegade]
Lennier has joined #ruby
tesuki has joined #ruby
gasbakid has quit [Remote host closed the connection]
<Brando753> I am aware, just unsure how to do that with the RMagick Library
persand has joined #ruby
atrR_ has quit [Quit: Lost terminal]
dfdf has quit [Remote host closed the connection]
withnale has joined #ruby
cj3kim has quit [Remote host closed the connection]
redgirl has quit [Quit: This computer has gone to sleep]
<quazimodo> The more I'm learning about software and the software communities, etc, the more I realise that devs are just not engineers
ldnunes has joined #ruby
<quazimodo> some are
<quazimodo> but ... good lord
DrCode has quit [Ping timeout: 240 seconds]
<quazimodo> no wonder the engineers at companies hate devs
<Lennier> hi guys
<Lennier> i have a encoding problem: Ruby 1.8.7, Rails 3.0
<zomg> quazimodo: Not sure if I see what you mean... not engineers, as in not quality/process oriented?
<Lennier> the generated text file is in ANSI instead of UTF-8
<Lennier> what am i doing wrong?
TMM has quit [Remote host closed the connection]
<joshu> Lennier I'm just guessing as I don't know RoR but what happens if you add this to the top of your file # encoding: UTF-8
boblu has quit [Read error: Connection reset by peer]
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
freeayu has quit [Read error: Connection reset by peer]
jimg has quit [Remote host closed the connection]
<Lennier> joshu: thanks
<Lennier> i will try it out, i thought it's only working for 1.9
freeayu has joined #ruby
boblu has joined #ruby
<Hanmac> Lennier: Ruby1.8.7 does not have encoding ... so "# encoding" does not work
<Lennier> ok, Hanmac
<Hanmac> Lennier: Ruby1.8 will die this current month ... you should update
<quazimodo> zomg: i guess you can say that for one, I guess I need to think about how to articulate what I mean more
<quazimodo> zomg: Take 1 example, monkey patching. No, No NO!!!!
<zomg> haha
<zomg> Yeah
<quazimodo> <- new guy
<quazimodo> not a seasoned ruby dude
dfdf has joined #ruby
zz_pinage404 is now known as pinage404
<quazimodo> I studied 2 engineering degrees though, monkey patching SCREAMS WRONG WRONG
<zomg> my ruby experience is about 5 months
<zomg> so..
<zomg> =)
<Lennier> yes, hanmac, i agree but unfortunately an update is not an option :(
alup has quit [Ping timeout: 256 seconds]
<zomg> but I've been doing development for like 14 years or something
Elico has quit [Ping timeout: 246 seconds]
<quazimodo> another is specifications and constraints
<quazimodo> i feel like just because you can do it, devs do all sorts of insane shit
<zomg> It's usually the bad developers who do that because they don't know of anything better
<quazimodo> and it's impossible to police
<zomg> or why what they're doing is wrong
osvico has joined #ruby
<zomg> it's possible to police but it requires a technical lead in the project to set up guidelines on how the development should be done
<quazimodo> sure, but I've seen even big projects commit some hard core no nos
* Hanmac wishes that every PC that uses Ruby1.8 after its date would explode :P
<zomg> and things like code reviews
DrCode has joined #ruby
hollyw00d has joined #ruby
<zomg> Often it's also a result of too tight deadlines
<zomg> Sometimes you need to cut corners when the business types tell you it needs to be done yesterday :P
<quazimodo> zomg: I totally understand, I've done contract work for clients
<zomg> Yeah
<quazimodo> you can't go out and learn mechanical engineering using bro science
<apeiros> Hanmac: hehe, old, but nice
<quazimodo> but you can totally go out and learn rails entirely on bro science
<quazimodo> brotelligence?
Ortuna has joined #ruby
<Lennier> guys, i'm stuck with this encoding problem for hours
<zomg> The results of using bro science to build a bridge can be quite fatal unlike the results of building a facebook clone used by your mom and friends
<apeiros> nagelligence :-p
<zomg> =)
<Lennier> does anyone have an idea that i can try out to force the file encoding to utf8?
<lupine> ruby code file?
<quazimodo> anyway, feels like dev houses should be making their devs use pen and paper, psuedocoding stuff on paper to work out whether it's even sane
<zomg> Not gonna help much :D
<Quadlex> Ther eis a sad confluence f the two concepts zomg
<zomg> If it looks sane in code it'll look sane on paper too
<zomg> to them anyway
<zomg> =)
<quazimodo> zomg: maybe :0
<Quadlex> In Australia, any Engineering degree is chartered, meaning it needs to be certified
<Quadlex> And it's technically illegal to call yourself an engineer without an Engineering degree
<zomg> I think the only thing that helps is education and bringing in someone more experienced to help sort out the issues
<Hanmac> Lennier: did you try at #rubyonrails ?
<Quadlex> But the coursework for the degrees isn't suitable for real-world development >.>
<Quadlex> It's kind of... nerd broscience
<zomg> and actually giving a schedule that includes being able to do it properly
<quazimodo> Quadlex: :D
<Lennier> hanmac, ok i will ask there, thanks
<quazimodo> Quadlex: the biomed course work was pretty good
buibex has joined #ruby
<apeiros> quazimodo: that's why we use ruby
<Quadlex> All about "Quality" and various means of pretending it's going to be done by writing a lot of docs
<apeiros> because ruby is running pseudo code
_Andres has quit [Quit: Textual IRC Client: www.textualapp.com]
fermion has joined #ruby
<quazimodo> apeiros: well I've found that i'm writing better code by moving away from the language (I like lisp and ruby among other things), putting it on paper as ideas and architecture, then working out how it makes sense to tie together
blaxter_ has quit [Ping timeout: 248 seconds]
malkomalko has joined #ruby
<zomg> Usually those methods largely depend on the individual
<apeiros> I use the autoarchitect brainplugin to create the architecture on the fly
<zomg> I find writing code in a test-first fashion leads to better quality results as well
k612 has joined #ruby
<zomg> So before you write any code you write a unit test
<quazimodo> zomg: thats what I do after my architecture on paper
<Quadlex> quazimodo: Biomed? At an Aussie uni?
<zomg> Some people find that approach difficult as well as they find it hard to reason about the code by writing a test first
dmerrick has quit [Read error: Connection reset by peer]
<quazimodo> Quadlex: yep, my biomed friends were fairly satisfied
<Quadlex> Ah, you're not an Aussie?
<quazimodo> I did biomed too, though yet to do that for a job
* Quadlex is wondering if you went to the same uni
<quazimodo> no i was at UNSW
JStoker_ has joined #ruby
dmerrick has joined #ruby
<quazimodo> it was great
<quazimodo> my mechanical eng friends were less satisfied by what they learnt than my biomed moatse
<quazimodo> *mates
<Quadlex> Ah, OK I went to GU
henn1nk has quit [Ping timeout: 256 seconds]
im0b has quit [Ping timeout: 256 seconds]
eldariof has quit [Ping timeout: 255 seconds]
alup has joined #ruby
tesuki has quit [Read error: No route to host]
krnflake has quit [Ping timeout: 256 seconds]
tesuki has joined #ruby
gildo has joined #ruby
<joshu> guys which of these methods do you prefer, e.g. using uri or not https://gist.github.com/anonymous/4d5e1fef9301daeaeace
JStoker has quit [Read error: Connection reset by peer]
JStoker_ is now known as JStoker
k611 has quit [Ping timeout: 256 seconds]
<quazimodo> Quadlex: :)
krnflake has joined #ruby
henn1nk has joined #ruby
ferdev has quit [Quit: ferdev]
jprovazn has joined #ruby
eka has joined #ruby
rockets has joined #ruby
jbpros has joined #ruby
bradhe has joined #ruby
tylersmith has joined #ruby
buibex has quit [Ping timeout: 240 seconds]
<quazimodo> zomg: another one is creating DSL's informally... no no no no no no!!! NONONO
_Renegade has joined #ruby
geekbri has joined #ruby
<quazimodo> simple_form's DSL fucked my life for awhile
<zomg> lol :P
dfdf has quit [Remote host closed the connection]
atno has joined #ruby
snearch has quit [Quit: Verlassend]
<zomg> I think part of the problem is that there's a lot of devs with no formal education in compsci
zastern has quit [Ping timeout: 248 seconds]
<zomg> I have none either, but I have studied compsci books etc.
snearch has joined #ruby
dr_neek has joined #ruby
<quazimodo> zomg: thing is, ruby is amazing, it makes ideas easy to do so I'm not sure why simple_form worked that way, I know and understand Ruby, which ROCKS for lots of problem domains, including the one simple_form solves... Why must I learn a new informal language/way of doing things
haxrbyte has joined #ruby
rfizzle has joined #ruby
<quazimodo> zomg: lisp massively suffers from this too, might I add
<zomg> I can imagine
xcv has joined #ruby
<zomg> Haven't used Lisp languages much but I did do some stuff with Clojure so I'm somewhat familiar
r0bgleeson has joined #ruby
<zomg> I can sort of understand DSL's if it makes something easier to do
<quazimodo> zomg: it's wonderful stuff, I actually enjoy writing emacs plugins
<zomg> Hard to say about the case with simple_form since I don't think I've used it
skaby has joined #ruby
<zomg> Eh, it has way too many ()()()()()() everywhere
<zomg> =)
bradhe has quit [Ping timeout: 248 seconds]
<zomg> Haskell is where it's at
<zomg> lol
sailias has joined #ruby
<quazimodo> zomg: haha well I make my parens almost background color and rely on indents and auto paren matching ine macs
jintux has quit [Quit: Ex-Chat]
tylersmith has quit [Ping timeout: 246 seconds]
<quazimodo> zomg: ah haskell. Now there's a solid language that's kind of a pain in the ass but solid
tvw has quit []
<zomg> It's a PITA when you don't fully grok it yet but I think after that it's pretty great =)
<zomg> Although there's always some new fancy library/thingy out there for it which is so crazy you don't understand it at all
snearch has quit [Client Quit]
<quazimodo> zomg: agreed, I do like a *lot* of the concepts. Harder to be an idiot using haskell... PITA tho lol
<zomg> hehe
<quazimodo> have you seed agda
<quazimodo> 0_o
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ewag has quit [Ping timeout: 246 seconds]
blaxter_ has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
<pontiki> joshu: i prefer the first form (using uri) when i don't necessarily have confidence in the url that the app would be connecting to. OTOH, option 2 (direct values) I use when the connection info is unchanging.
Sccoots has joined #ruby
<zomg> quazimodo: I have seen it but I was scared and didn't touch it.
<zomg> lol
ToApolytoXaos has joined #ruby
<joshu> pontiki ok in this case I'm creating the service this the client is connecting to as well, so I'll use option 2 following your advice
<quazimodo> zomg: see I consider myself to have a fair amount of technical intelligence and know how - if I don't understand something, usually it's a problem with communication. That being said... I don't fucking get agda
Spami has joined #ruby
buibex has joined #ruby
<quazimodo> and the documentation out there... it's written for people who already get agda XD
delay has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
thebastl_ has joined #ruby
xcv has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving.]
pinage404 is now known as zz_pinage404
xcv has joined #ruby
jimg has joined #ruby
schaerli has quit [Remote host closed the connection]
pskosinski has joined #ruby
nezumi has quit [Ping timeout: 260 seconds]
ericmathison has quit [Quit: leaving]
ewag has joined #ruby
icole has joined #ruby
thebastl has quit [Ping timeout: 276 seconds]
Giorgio has quit [Read error: Connection timed out]
razi has joined #ruby
dr_neek has quit [Quit: dr_neek]
icole has quit [Ping timeout: 246 seconds]
jimg has quit [Ping timeout: 246 seconds]
browndawg has quit [Ping timeout: 246 seconds]
cofin has joined #ruby
ntus1017 has joined #ruby
mikecmpbll has joined #ruby
thebastl_ has quit [Remote host closed the connection]
slainer6_ has joined #ruby
thebastl has joined #ruby
Hanmac has quit [Read error: Operation timed out]
danslo has quit [Quit: danslo]
dawkirst has joined #ruby
dfdf has joined #ruby
slainer68 has quit [Ping timeout: 264 seconds]
theRoUS has joined #ruby
thebastl has quit [Remote host closed the connection]
scrollback has quit [Remote host closed the connection]
browndawg has joined #ruby
cads has quit [Read error: Operation timed out]
a_a_g has joined #ruby
scrollback has joined #ruby
Spami has quit [Ping timeout: 248 seconds]
Trynemjoel has joined #ruby
arya_ has quit []
kil0byte has quit [Remote host closed the connection]
malkomalko has quit []
_Renegade has quit [Quit: _Renegade]
Giorgio has joined #ruby
rafaelcaricio has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 276 seconds]
pootler_ has quit [Quit: leaving]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
dfdf has quit [Remote host closed the connection]
shadoi has joined #ruby
pootler_ has joined #ruby
brbcoding has joined #ruby
mljsimone|away is now known as mljsimone
<dawkirst> Hi, really silly question (I'm busy learning): I work a lot with ENV variables, and I find myself spending a lot of time to set up my ENV variables every time I restart my machine. Is there a conventional way to set them up using some sort of config file?
Hanmac has joined #ruby
<noname001> hi
<noname001> I am having a problem with some of the part of my script
<noname001> Unable to load driver 'OBDC'
<noname001> this is a mesg I am getting
danslo has joined #ruby
<noname001> I have require rubygems and require dbi
<noname001> included into my script
<noname001> any ideas
<noname001> gem install dbi
<noname001> gem install dbi-odbc
yalue has joined #ruby
<noname001> done
<noname001> any suggestions
<noname001> ?
kreantos has joined #ruby
arya has joined #ruby
<joshu> dawkirst you can use dotenv gem
<joshu> you put your ENV variables in a .env file
vlad_starkov has joined #ruby
<dawkirst> joshu, thanks, will check that out, sounds exactly like what I need
<joshu> alternatively you can use a config yaml file
<joshu> dawkirst you would add this to load the file CONFIG = YAML.load(IO.read('./config/config.yml'))
vlad_starkov has quit [Remote host closed the connection]
scrollback has quit [Remote host closed the connection]
<joshu> and within config.yml specify each variable such as :some_variable value
<joshu> then when you need some_variable you can do CONFIG[:some_variable]
scrollback has joined #ruby
cofin has quit [Quit: cofin]
jimg has joined #ruby
<dawkirst> joshu, thanks, makes a lot of sense (building a CONFIG hash), I'll check out the dotenv gem as well (to keep simple I might go with the yaml file approach)
sailias has quit [Ping timeout: 248 seconds]
<joshu> dawkirst have fun ;)
<dawkirst> joshu ty :)
PaulePanter has joined #ruby
puppeh has left #ruby ["bb"]
<dawkirst> joshu, just out of curiosity though, what approach is more common?
<pontiki> dawkirst: yaml, by far, i think
<pontiki> it's just so bloody *easy*
persand has quit [Quit: persand]
<joshu> dawkirst yeah I think so too…I started using dotenv because heroku uses a .env with foreman, but I've also recently been using a CONFIG yaml file.
wesside has joined #ruby
tsunamie has joined #ruby
<pontiki> rails is just full of yaml
jimg has quit [Ping timeout: 252 seconds]
tsunamie has left #ruby ["Leaving"]
<dawkirst> joshu, pontiki, thanks
jbpros has quit [Quit: jbpros]
persand has joined #ruby
schaerli has joined #ruby
fuzzyhorns has joined #ruby
jbueza has joined #ruby
kobain has joined #ruby
pipework has quit [Remote host closed the connection]
jlast has joined #ruby
malkomalko has joined #ruby
cads has joined #ruby
<dawkirst> joshu, I see that dotenv supports different environments (dev, test, production), so that makes it easy (easier than yaml...?), right? That means I simply drop my production and development and production variables in the right files respectively and there I go. What would happen to the variables already set though the Heroku toolbelt?
Lennier has left #ruby [#ruby]
Lennier has joined #ruby
v0n has joined #ruby
Giorgio has quit [Ping timeout: 256 seconds]
<joshu> dawkirst I'm not sure but I believe that with heroku specifically although you use a .env locally, when you deploy to heroku you don't want to put your .env in the git rpo
bradhe has joined #ruby
<joshu> repo
breakingthings has joined #ruby
<dawkirst> joshu, ok, that would make more sense for me as well. Thanks :)
Giorgio has joined #ruby
<joshu> instead you specify the variables in your .env file using heroku's tool belt, e.g. heroku config:set MY_VAR=something
<joshu> BUT
Lubinski has joined #ruby
Ortuna has quit [Quit: Computer has gone to sleep.]
<joshu> I have come across a tool which will read the .env file so you don't have to set each variable manually using the toolbelt
<joshu> one sec
tylersmith has joined #ruby
<joshu> haven't used it myself yet
sambao21 has joined #ruby
<joshu> it's made by heroku employee
daniel_- has joined #ruby
jbpros has joined #ruby
<dawkirst> joshu, thanks. Also, when I do use dotenv, I'll have to build in a exists? check, otherwise it'll try to require on Heroku, even though the .env file won't be in that repo.
apod has joined #ruby
baordog has joined #ruby
<joshu> dawkirst yes I think so not sure if dotenv uses env variables set with tool belt if .env file doesn't exist. You could test
bradhe has quit [Ping timeout: 252 seconds]
splittingred has joined #ruby
<dawkirst> joshu, ok
subbyyy has quit [Ping timeout: 240 seconds]
al3xnull has joined #ruby
Lubinski has quit [Quit: Leaving]
Mattix has quit [Ping timeout: 246 seconds]
tylersmith has quit [Ping timeout: 252 seconds]
Sccoots has quit []
<al3xnull> Recently, I've been getting errors with downloading gems from rubygems. The certificate verification is probably picking up the firewall certificate and throwing a fit (we face it often) due to SSL being MITM'ed here.
<al3xnull> Is there a way to trust a certificate in a way the rubygems will be happy with it?
razi has quit [Quit: Leaving.]
tvw has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
browndawg has quit [Quit: Leaving.]
daniel_- has quit [Ping timeout: 276 seconds]
moshee has quit [Ping timeout: 246 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
persand has quit [Quit: persand]
Lubinski has joined #ruby
jamesaxl_ has joined #ruby
bionhart has joined #ruby
philcrissman_ has joined #ruby
jamesaxl has quit [Ping timeout: 276 seconds]
tesuki has quit [Remote host closed the connection]
Mattix has joined #ruby
freeayu has quit [Remote host closed the connection]
gstamp has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
moshee has joined #ruby
tesuki has joined #ruby
interactionjaxsn has joined #ruby
binaryplease has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
DaniG2k has joined #ruby
ybart has quit [Quit: ybart]
wmoxam has joined #ruby
tesuki has quit [Remote host closed the connection]
carloslopes has joined #ruby
ghr has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
ferdev has joined #ruby
ghr has joined #ruby
<joshu> first why does https://gist.github.com/anonymous/58b6c4674ba84563a6ec#file-gistfile1-rb-L52 throw an error undefined method `original_error' for NetHttpTimeoutError:Class (NoMethodError)
<lupine> joshu, rescue NetHttpTimeoutError => err ; err.original_error
<joshu> in the README it says "You can still get at the original error through NetHttpTimeoutError#original_error"
tommyvyo has joined #ruby
<lupine> yes, the # means "this is an instance method"
<lupine> and the form for rescue is "rescue <class> [=> <instance>]"
<lupine> well, the class is optional too
miskander has joined #ruby
<joshu> lupine great thanks!
thesheff17 has joined #ruby
<joshu> another question about the gist
<joshu> the two classes which make up the gem. Does it make sense to wrap them in a module to organise the code?
generalissimo has joined #ruby
burlyscudd has joined #ruby
<joshu> I can't use external source files or gems with my particular project, so that is why I've pasted the gem within my one source file
<lupine> it can't hurt
buibex has quit [Remote host closed the connection]
<lupine> I tend towards overly scoping things, but the ruby way is shallow scoping
<lupine> a single level of scope wont' be a bad thing
buzzybron has quit [Ping timeout: 264 seconds]
zaebst has joined #ruby
tommyvyo has quit [Quit:]
chattmatt has joined #ruby
burlyscudd has quit [Client Quit]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
zaebst has quit [Client Quit]
bigmac has quit [Quit: Leaving]
tomzx_mac has joined #ruby
burlyscudd has joined #ruby
<joshu> lupine ok module and class names follow the same CamelCase rules?
xAFIBx has joined #ruby
ar has left #ruby [#ruby]
<joshu> so I shouldn't call the module net_http_timeout_errors as the gem is called but module NetHttpTimeoutErrors
iamjarvo has joined #ruby
<iamjarvo> recommendations on well written api wrapper gems
<iamjarvo> for code reading
mljsimone is now known as mljsimone|away
devoldmx has joined #ruby
mljsimone|away is now known as mljsimone
zaebst has joined #ruby
<Lennier> hi guys, i'm still stuck on the file-encoding issue in ruby 1.8.7 and rails 3.0.20
<Lennier> please take a look on http://pastebin.mozilla.org/2515395
wolcanus has joined #ruby
devoldmx3 has joined #ruby
ffranz has joined #ruby
<Lennier> any help is highly appreciated
jonathanwallace has joined #ruby
binaryplease has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
deception has joined #ruby
<lupine> aye
<lupine> well, the only restriction is that the first letter is a capital
<lupine> but CamelCase is the norm
dmiller has joined #ruby
ttt has quit [Remote host closed the connection]
<canton7> Lennier, I don't have any ideas, but you don't say where the problem is. The sequence is @cover_page.registry -> xml string -> stream. At which point does it get converted to ANSI?
johnmilton has joined #ruby
jprovazn has quit [Ping timeout: 248 seconds]
mantas322 has joined #ruby
spider-mario has joined #ruby
<joshu> lupine ;)
chorkpop has quit [Read error: Connection reset by peer]
SoonerBourne has joined #ruby
chorkpop has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
GeissT has quit [Ping timeout: 276 seconds]
<brbcoding> Sorry for noob question, but, what's the easiest way to get up and running with a rails or sinatra application? Is heroku my best bet? I'm stuck on Winblows, unfortunately... (Sorry if this is the wrong room for this question)
<wuest> brbcoding: probably better to ask a rails-focused channel, indeed.
dmiller has quit [Ping timeout: 256 seconds]
generalissimo has quit [Remote host closed the connection]
<brbcoding> kk, will look around... Thanks
Trynemjoel has quit [Ping timeout: 245 seconds]
akells` has joined #ruby
failshell has joined #ruby
BizarreCake has joined #ruby
<Lennier> canton7: by generating the xml file the string gets converted
MarioEIU has joined #ruby
freerobby has joined #ruby
<Lennier> in the variable the special characters are correct
<canton7> Lennier, ok, so it has nothing to do with the stream?
<canton7> just in the serialisation
arya_ has joined #ruby
<Lennier> oh, wait
<Lennier> i have to check
enebo has joined #ruby
adac has quit [Quit: Leaving]
AndChat| has joined #ruby
bakingbread has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
<Lennier> canton7: oh, i was wrong: at the point "xml string" send_data(stream, …) the special characters are converted
franzliedke has joined #ruby
maxmanders has quit [Client Quit]
<Lennier> within send_data the variable stream has converted characters inside
<franzliedke> hello. is there a way to execute a class method automatically every time a subclass of my class is defined?
Fire-Dragon-DoL has joined #ruby
tkuchiki has quit [Remote host closed the connection]
fmcgeough has joined #ruby
<canton7> Lennier, so it is the serialisation?
<canton7> look at options for your serialiser
im0b has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<Lennier> canton7: do you have a link?
arya_ has quit [Ping timeout: 256 seconds]
<canton7> no. You don't say what serialiser you're using
<Lennier> oh, how can i figure it out?
tommyvyo has joined #ruby
<canton7> You're the one with the program
<canton7> you must be using some package to construct the xml
<canton7> the one that's providing the xml.tag! methods
dr_neek has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
<Lennier> ah, ok
rfizzle has quit [Quit: Leaving]
DomKM has joined #ruby
<Lennier> it's XML::Builder
<Lennier> sorry
ioNull has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
anonymuse has joined #ruby
mikepack has joined #ruby
<Lennier> Builder::XmlMarkup
arya has joined #ruby
<canton7> Cool. Look at the points for that
<canton7> (I've never used it, but if what you're saying is true, it's converting the characters when it serialises)
tw1sted has joined #ruby
MarioEIU has quit [Remote host closed the connection]
cmarques has joined #ruby
<Lennier> canton7: ok, thanks.
lyanchih has joined #ruby
<ghr> Am I right in saying that this change would remove feature envy? https://gist.github.com/garethrees/5765558
tylersmith has joined #ruby
<ghr> Remove feature envy by dependency injection?
dfdf has joined #ruby
pothibo has joined #ruby
samuel02 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
tomzx_mac has quit [Ping timeout: 256 seconds]
<ghr> Now I think about it, it would be better to pass the application to *Server.new, but its just for an example
haxrbyte_ has joined #ruby
bal has joined #ruby
pipework has joined #ruby
MrThePla_ has joined #ruby
<joshu> question about creating a request with net/http where the body is set like this request.body = '{"event":"#{data}"}'
<joshu> data = "some string"
bakingbread has joined #ruby
wesside has joined #ruby
tylersmith has quit [Ping timeout: 276 seconds]
khushildep has quit [Ping timeout: 246 seconds]
<joshu> The string concatenation is not working. Do I need to use to_json for this?
tbrock_ has joined #ruby
<Hanmac> joshu: you use '' not "" ... there is a difference
<tobiasvl> you can't interpolate in ''
<joshu> Hanmac tobiasvl I tried both and it didn't work let me give you the error
<nyuszika7h> anyone got an idea how to get this code to work in 1.8.7? http://privatepaste.com/7a452a5a85
haxrbyte has quit [Ping timeout: 256 seconds]
franzliedke has quit [Remote host closed the connection]
<joshu> Hanmac tobiasvl using this request.body = "{"event":"#{data}"}" I get this output {"event":"#{data}"}
<tobiasvl> joshu: request.body = "{\"event\":\"#{data}\"}"
<tobiasvl> ?
braoru has quit [Remote host closed the connection]
<Hanmac> nyuszika7h: ruby1.8 dies this month, you should upgrade
<tobiasvl> i don't know json but you have to balance your quotes and escape those that are inside the string
jamesaxl has joined #ruby
<nyuszika7h> Hanmac: I have RVM actually, this is an online sandbox I want to play around with, they're still on 1.8.7 >.>
<nyuszika7h> (yes, I know there are other sandboxes)
<joshu> tobiasvl ok gives the same output. Let me see if I can figure it out now that you said I have to escape
ntus1017 has quit [Remote host closed the connection]
ybart has joined #ruby
lyanchih has quit [Quit: lyanchih]
jtharris has joined #ruby
freerobby has quit [Quit: Leaving.]
<failshell> was there a change in 0.9.13 concerning check names? prior to the upgrade, we could use : in check names
dmiller has joined #ruby
<Hanmac> joshu did you set the data variable before or after the body= line?
jamesaxl_ has quit [Ping timeout: 256 seconds]
<joshu> Hanmac before
<nyuszika7h> meh, I guess I'm not going to get useful stuff from here anyway :P ./code_file.rb:1:in `open': Permission denied - / (Errno::EACCES)
<Hanmac> failshell: what do you mean with checknames? in ruby 1.9.3 it removes the : from the case when if you mean that
<joshu> Hanmac it works in IRB
buibex has joined #ruby
<Hanmac> joshu: make a pastie of your code
jprovazn has joined #ruby
lyanchih has joined #ruby
jonahR has joined #ruby
<joshu> Hanmac I was doing something stupid it works now. thanks tobiasvl ;)
dmiller has quit [Ping timeout: 256 seconds]
<ghr> Here's a better example. https://gist.github.com/garethrees/5765558 Good example to explain feature envy?
andikr has quit [Remote host closed the connection]
<ghr> (I want to use Application and WebServer specifically to tie in with the rest of a talk I'm giving)
jimg has joined #ruby
tommyvyo has quit [Quit:]
sailias has joined #ruby
Uranio has joined #ruby
rfizzle has joined #ruby
demet8 has joined #ruby
boblu has quit [Ping timeout: 246 seconds]
jimg has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dfdf has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
tagrudev has quit [Remote host closed the connection]
ntus1017 has joined #ruby
buibex has quit [Remote host closed the connection]
Cyrus has quit [Quit: Cyrus.sleep()]
devoldmx3 has quit [Ping timeout: 276 seconds]
ntus1017 has quit [Remote host closed the connection]
axl_ has joined #ruby
dr_bob has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
<joshu> when you use a module to namespace and you want to call a method within that module do you do MyModule::my_method or MyModule.my_method e.g. dot or double colon?
MrZYX|off is now known as MrZYX
mansi has joined #ruby
freerobby has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
nowthatsamatt has joined #ruby
<ghr> joshu dot
zeade has quit [Quit: Leaving.]
<joshu> thank ghr
kevinfagan has quit [Excess Flood]
generalissimo has joined #ruby
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
devoldmx has joined #ruby
kevinfagan has joined #ruby
breakingthings has quit [Ping timeout: 248 seconds]
kevinfagan has quit [Max SendQ exceeded]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
ananthakumaran has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
kevinfagan has quit [Max SendQ exceeded]
xcv has quit [Ping timeout: 276 seconds]
kevinfagan has joined #ruby
kevinfagan has quit [Max SendQ exceeded]
kevinfagan has joined #ruby
gnagno has quit [Ping timeout: 248 seconds]
rhys has joined #ruby
<Hanmac> joshu: but i also use :: in some cases
<Hanmac> like Nokogiri::XML()
<joshu> Hanmac how do you know when to use which? are they always interchangeable?
_maes_ has joined #ruby
browndawg has joined #ruby
devoldmx3 has joined #ruby
mark_locklear has joined #ruby
mafolz has quit [Read error: Connection reset by peer]
xcv has joined #ruby
<Hanmac> it depends ...
<Hanmac> Nokogiri::XML is a constant, Nokogiri::XML() is a method, Nokogiri::xml is a method, Nokogiri::xml() is a method
<Hanmac> Nokogiri.XML is a method, Nokogiri.XML() is a method, Nokogiri.xml is a method, Nokogiri.xml() is a method
cads has quit [Ping timeout: 276 seconds]
RORgasm_ has joined #ruby
zmike123 has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 252 seconds]
bionhart has quit [Remote host closed the connection]
Appineer has joined #ruby
<joshu> Hanmac ok I tried using dot and I got this error "undefined method `NetHttpTimeoutError' for NetHttpTimeoutErrorGem:Module (NoMethodError)
<joshu> from lib/tropo/test.rb:52:in `<main>'"
<joshu> but with :: it works
tk___ has quit [Quit: ばいばい]
<joshu> so I guess it's your first case a constant
ezkl has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has joined #ruby
<joshu> sorry class not a metod
TMM has quit [Remote host closed the connection]
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
Giorgio has quit [Ping timeout: 256 seconds]
devoldmx3 has quit [Read error: Connection reset by peer]
whowantstolivefo has quit [Quit: who wants to live forever ?]
sleetdrop has joined #ruby
buibex has joined #ruby
<Hanmac> joshu: its a constant
bionhart has joined #ruby
ttt has joined #ruby
<joshu> Hanmac another question about modules.
gnagno has joined #ruby
denver has joined #ruby
bionhart has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
<joshu> I read on RubyMonk just now that modules only hold behaviour and not state like classes. Does state refer to having instance variables within the class' methods?
tommyvyo has joined #ruby
Spami has quit [Quit: Leaving]
scrollback has quit [Remote host closed the connection]
persand has joined #ruby
<Hanmac> hmmm i dont know about that
sambao21 has quit [Quit: Computer has gone to sleep.]
alex__c2022 has joined #ruby
filipe has quit [Ping timeout: 246 seconds]
ttt has quit [Ping timeout: 256 seconds]
tspike has joined #ruby
persand has quit [Client Quit]
kenneth has joined #ruby
kenneth has quit [Client Quit]
Guest7959 has joined #ruby
TMM has quit [Remote host closed the connection]
sambao21 has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
TMM has joined #ruby
cofin has joined #ruby
akemrir has quit [Quit: WeeChat 0.4.1]
DomKM has quit [Quit: Leaving.]
<joshu> ok
Guest7959 is now known as _kenneth
acrussell has joined #ruby
acrussell has left #ruby [#ruby]
vlad_starkov has joined #ruby
vigintas has joined #ruby
BadDesign has joined #ruby
aknewhope has joined #ruby
aknewhope has joined #ruby
aknewhope has quit [Changing host]
generalissimo has quit [Remote host closed the connection]
vigintas has quit [Client Quit]
vigintas has joined #ruby
hogeo has joined #ruby
mfollett has joined #ruby
tylersmith has joined #ruby
w400z has joined #ruby
vigintas has quit [Client Quit]
vigintas has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
mafolz has joined #ruby
i_s has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
xcv has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 252 seconds]
redgirl has joined #ruby
vlad_starkov has joined #ruby
havenwood has joined #ruby
TIJ has quit [Quit: Konversation terminated!]
maroloccio2 has joined #ruby
timkohrumel has joined #ruby
dhruvasagar has joined #ruby
axl_ has joined #ruby
dr_bob has quit [Quit: Leaving.]
maroloccio has quit [Ping timeout: 260 seconds]
demet8 has quit [Quit: demet8]
scrollback has joined #ruby
wallerdev has joined #ruby
pootler_ has quit [Quit: Lost terminal]
malkomalko has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
sam_5748 has joined #ruby
devoldmx3 has joined #ruby
dr_bob has joined #ruby
gnagno has quit [Ping timeout: 248 seconds]
sleetdrop has quit [Quit: Computer has gone to sleep.]
saarinen has joined #ruby
buibex has quit [Remote host closed the connection]
RORgasm_ has quit [Read error: Connection reset by peer]
pootler_ has joined #ruby
pootler__ has joined #ruby
i_s has quit [Quit: i_s]
RORgasm has joined #ruby
pootler__ has quit [Client Quit]
pootler_ has quit [Client Quit]
vigintas has quit [Remote host closed the connection]
pootler_ has joined #ruby
pootler__ has joined #ruby
wargasm has joined #ruby
stkowski has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
ctp has quit [Ping timeout: 248 seconds]
astegman has joined #ruby
Lennier has quit [Quit: Lennier]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
tylersmith has joined #ruby
bean__ has joined #ruby
ckrailo has joined #ruby
jimg has joined #ruby
generalissimo has joined #ruby
amh345 has joined #ruby
bal has quit [Quit: Leaving]
maroloccio3 has joined #ruby
maroloccio2 has quit [Ping timeout: 264 seconds]
cofin has quit [Quit: cofin]
citizensinspace has joined #ruby
vlad_sta_ has joined #ruby
xcv has joined #ruby
jimg has quit [Ping timeout: 260 seconds]
carloslopes has quit [Remote host closed the connection]
zacts has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
baroquebobcat has joined #ruby
cofin has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
browndawg has quit [Ping timeout: 252 seconds]
ArchBeOS has quit [Ping timeout: 248 seconds]
d2dchat has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ArchBeOS has joined #ruby
<blz37> I have ruby 1.9.3 but will there be any problem if I only have rubygems 1.8.
bigoldrock has joined #ruby
arturaz has quit [Ping timeout: 264 seconds]
demet8 has joined #ruby
nari has quit [Ping timeout: 246 seconds]
djbkd has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
DonRichie has joined #ruby
browndawg has joined #ruby
bigoldrock has quit [Ping timeout: 276 seconds]
maroloccio3 has quit [Ping timeout: 276 seconds]
DomKM has joined #ruby
kleinerdrache has joined #ruby
ffio has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
DonRichie has quit [Quit: Verlassend]
wolcanus has quit [Remote host closed the connection]
xardas has joined #ruby
io_syl has joined #ruby
cburyta has joined #ruby
maroloccio has joined #ruby
gildo has quit [Remote host closed the connection]
DonRichie has joined #ruby
mrdtt has joined #ruby
dmiller has joined #ruby
viszu has joined #ruby
zai has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: pothibo]
sambao21 has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
saarinen has quit [Quit: saarinen]
carloslopes has joined #ruby
bionhart has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
Solnse has joined #ruby
denken has quit [Ping timeout: 252 seconds]
lyanchih has quit [Quit: lyanchih]
dmiller has quit [Ping timeout: 252 seconds]
ffio has quit [Read error: Connection timed out]
Davey has joined #ruby
sam_5748 has quit [Quit: Leaving]
x1337807x has joined #ruby
DaniG2k has left #ruby [#ruby]
geggam has joined #ruby
DaniG2k has joined #ruby
bradhe has joined #ruby
apod has quit [Quit: apod]
x1337807x has quit [Client Quit]
ffio has joined #ruby
aknewhope has quit [Quit: Leaving]
<havenwood> blz37: You might want to: gem update --system
dhruvasagar has joined #ruby
Giorgio has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
JumpMast3r has joined #ruby
malkomalko has joined #ruby
drfreeze has joined #ruby
arya_ has joined #ruby
daniel-s has quit [Disconnected by services]
x1337807x has joined #ruby
daniel-s has joined #ruby
blitz has joined #ruby
deception has quit [Remote host closed the connection]
zeade has joined #ruby
arya has quit [Ping timeout: 264 seconds]
deception has joined #ruby
samuel02 has quit [Remote host closed the connection]
mrdtt has left #ruby ["Leaving"]
axsuul has joined #ruby
x1337807x has quit [Client Quit]
drfreeze_ has quit [Ping timeout: 256 seconds]
ArchBeOS has quit [Ping timeout: 240 seconds]
Criztian has quit [Remote host closed the connection]
w400z has quit []
vlad_sta_ has quit [Remote host closed the connection]
jnix has quit [Ping timeout: 248 seconds]
hogeo has quit [Remote host closed the connection]
brunoro has joined #ruby
<nyuszika7h> how can I do something like this? my_numbers.filter(:even?)
vigintas has joined #ruby
<Hanmac> numbers.select(&:even?)
dcunit3d has joined #ruby
ivanoats has joined #ruby
<nyuszika7h> thanks
x1337807x has joined #ruby
ntus1017 has joined #ruby
timonv has quit [Remote host closed the connection]
arietis has joined #ruby
kenichi has quit [Quit: ZNC - http://znc.sourceforge.net]
BBonifield has quit [Quit: ZNC - http://znc.in]
krishna has quit [Ping timeout: 252 seconds]
demet8 has quit [Quit: demet8]
kenichi has joined #ruby
BBonifield has joined #ruby
AndChat| has quit [Quit: Bye]
amh345 has quit [Quit: amh345]
cout has quit [Ping timeout: 260 seconds]
cout has joined #ruby
amedeiros has joined #ruby
workmad3 has joined #ruby
krishna has joined #ruby
a_a_g has quit [Quit: Leaving]
dr_bob has left #ruby [#ruby]
<axl_> what is the operator `defined?` used for ? whats an example use case ?
cofin has quit [Quit: cofin]
jnix has joined #ruby
<joelteon> it does exactly what it sounds like
cburyta has quit [Remote host closed the connection]
dcunit3d_ has joined #ruby
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mrdtt has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
Banistergalaxy has joined #ruby
w400z has joined #ruby
aqil has joined #ruby
ArchBeOS has joined #ruby
supaiku has joined #ruby
mafolz has quit [Ping timeout: 276 seconds]
cofin has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
wu_1mao has quit [Remote host closed the connection]
cburyta has joined #ruby
freezey has joined #ruby
bradhe has joined #ruby
bigoldrock has joined #ruby
iamjarvo has quit [Quit: iamjarvo]
ybart has quit [Quit: ybart]
Appineer has quit [Remote host closed the connection]
wolcanus has joined #ruby
workmad3 has joined #ruby
freerobby has quit [Quit: Leaving.]
kil0byte has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
khismetix has joined #ruby
daniel_- has joined #ruby
ffranz has quit [Quit: Leaving]
Voodoofish430 has joined #ruby
eighty4 has left #ruby ["Textual IRC Client: www.textualapp.com"]
gstamp has joined #ruby
mafolz has joined #ruby
tylersmith has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
tylersmith has joined #ruby
bklane has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
DrShoggoth has quit [Quit: Leaving]
gstamp has quit [Ping timeout: 256 seconds]
zigomir has quit [Quit: zigomir]
wolcanus has quit [Ping timeout: 248 seconds]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
tylersmith has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
astegman has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astegman has joined #ruby
markalanevans has joined #ruby
markalanevans has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
twoism has joined #ruby
_kenneth is now known as kenneth
delay has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
jbueza has quit [Quit: Leaving.]
apeiros has quit [Remote host closed the connection]
k612 has quit [Quit: Leaving]
fashsolanki has joined #ruby
DaniG2k has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 264 seconds]
wolcanus has joined #ruby
pothibo has joined #ruby
fashsolanki has left #ruby [#ruby]
citizensinspace has quit [Quit: citizensinspace]
noname001 has quit [Read error: Operation timed out]
_md has joined #ruby
Giorgio has quit [Ping timeout: 264 seconds]
enebo has quit [Quit: enebo]
zigomir has joined #ruby
kreantos has quit [Ping timeout: 276 seconds]
Asher1 has joined #ruby
zaebst has quit [Ping timeout: 248 seconds]
jgarvey has quit [Quit: Leaving]
eldariof has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
jalcine has quit [Excess Flood]
Asher1 has quit [Client Quit]
Asher has quit [Ping timeout: 276 seconds]
demet8 has joined #ruby
binaryplease has quit [Read error: Operation timed out]
camilasan has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
demet8 has quit [Client Quit]
kenneth has quit [Quit: kenneth]
chichou has quit [Read error: Connection reset by peer]
ghatak has joined #ruby
jbueza has joined #ruby
xardas has quit [Read error: Connection reset by peer]
aqil has quit [Quit: Ухожу я от вас]
casheew has quit [Read error: Connection reset by peer]
Giorgio has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kenneth has joined #ruby
tommyvyo has quit [Quit:]
casheew has joined #ruby
chichou has joined #ruby
axsuul has quit [Quit: axsuul]
kenneth has quit [Client Quit]
demet8 has joined #ruby
browndawg has joined #ruby
zaebst has joined #ruby
stef_204 has joined #ruby
hadees has quit [Quit: hadees]
jalcine has joined #ruby
dagobah has quit [Remote host closed the connection]
demet8 has quit [Client Quit]
Maoko has joined #ruby
jdunck has joined #ruby
johnrliv_ has joined #ruby
johnrlive has quit [Read error: Operation timed out]
anonymuse has quit [Read error: Operation timed out]
jrajav has joined #ruby
freerobby has joined #ruby
mrdtt has quit [Quit: Leaving]
axsuul has joined #ruby
denken has joined #ruby
jamesaxl has quit [Read error: Operation timed out]
mljsimone is now known as mljsimone|away
delay has joined #ruby
jdunck_ has joined #ruby
ner0x has joined #ruby
ffranz has joined #ruby
jimg has joined #ruby
jdunck has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
jdunck has joined #ruby
axsuul has quit [Quit: axsuul]
freerobby has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
<joshu> semantic question. Should I do this ENV["HEROKU_URL"] = "http://xxxxxx.herokuapp.com" or this HEROKU_URL = "http://xxxxxx.herokuapp.com" ? And these variable assignments will be at the top of my single source file ;)
slainer6_ has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 248 seconds]
<MrZYX> variable = they change during runtime?
jimg has quit [Ping timeout: 276 seconds]
jdunck_ has quit [Ping timeout: 264 seconds]
<joshu> sorry MrZYX wrong formulation from me
<joshu> no they are constant throughout the script
vigintas has quit [Remote host closed the connection]
<MrZYX> then definitely the later
Peej has joined #ruby
amedeiros has quit [Quit: leaving]
tacos1de has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
tvw has quit []
Solnse has joined #ruby
<joshu> ok and apeiros showed me once in a previous project which I think you saw using a "class << self alias tap config" would you suggest that as well or just the latter option above?
miskander has quit [Quit: miskander]
c0rn has joined #ruby
amedeiros has joined #ruby
<MrZYX> depends on the amount of configuration you have I guess
iamjarvo has joined #ruby
mljsimone|away is now known as mljsimone
ctp has joined #ruby
ntus1017 has quit [Remote host closed the connection]
<MrZYX> if your script only ever runs on heroku I'd also consider just using environment varibales and heroku config
<lectrick> Is there a way to run Javascript with native Ruby code? (gem etc.)
timonv has quit [Remote host closed the connection]
<fryguy> lectrick: does ExecJS accomplish what you want?
miskander has joined #ruby
<joshu> MrZYX this script is not deployed to Heroku but Tropo so everything I do has to be self contained in a single source file ;)
<ghatak> I have a strange problem with a gem, while trying to install using gem install, it adds a dependency for json 1.6.1 when json.1.8.0 is installed on the system.
mklappstuhl has quit [Remote host closed the connection]
<ghatak> what/how dependency is calculated ?
nomenkun has quit [Ping timeout: 260 seconds]
pootler_ has quit [Ping timeout: 252 seconds]
pootler__ has quit [Ping timeout: 246 seconds]
<fryguy> ghatak: gems can specify specific versions or ranges that they require for gems
interactionjaxsn has quit [Remote host closed the connection]
gnagno has joined #ruby
mklappstuhl has joined #ruby
saarinen has joined #ruby
apeiros has joined #ruby
<ghatak> fryguy: thanks, where is it specified? and how do I modify it ?
interactionjaxsn has joined #ruby
<fryguy> ghatak: in the gemspec usually
<lectrick> fryguy: maybe. was hoping for something "purer" i guess :)
<ghatak> fryguy: makes sense, however I have been unable to find that file. I tried to unpack the gem file using gem unpack. and look for version string in the directory, but I can't find anything
<fryguy> what gem is it
<ghatak> chef
<fryguy> link
_md has quit [Quit: Leaving...]
browndawg has quit [Ping timeout: 248 seconds]
rupee has joined #ruby
<ghatak> MrZYX: the trouble is that when I unpack the gem, and do find chef-10.14.2 | grep gemspec on directory, I can't find a spec file in it
<MrZYX> I doubt you want to edit that anyway
<fryguy> you don't, since it's going to be broken
<ghatak> probably not, however I am trying to find what is setting the version, so that I can make amends
sambao21 has quit [Quit: Computer has gone to sleep.]
brennanMKE has joined #ruby
<fryguy> this commit is relevant
ddfreyne has quit [Excess Flood]
amedeiros has quit [Quit: Lost terminal]
interactionjaxsn has quit [Ping timeout: 248 seconds]
ddfreyne has joined #ruby
tacos1de has joined #ruby
<ghatak> fryguy: I get your point. on the flip side this whole issue started because I can't seem to compile the JSON gem on my Centos 6.3
<ghatak> sorry version 1.6.1
<ghatak> the version Chef gem seems to require
<ghatak> So I guess I should go back and workout why 1.6.1 is not compiling
ArchBeOS has quit [Remote host closed the connection]
zz_pinage404 is now known as pinage404
gyre007 has quit [Ping timeout: 260 seconds]
Appineer has joined #ruby
byprdct has joined #ruby
devoldmx3 has quit [Ping timeout: 252 seconds]
<joshu> need some feedback on this method please https://gist.github.com/anonymous/1591b8039007a5a5c936
HecAtic has joined #ruby
amedeiros has joined #ruby
echevemaster has joined #ruby
devoldmx has joined #ruby
osvico has quit [Ping timeout: 248 seconds]
iamjarvo_ has joined #ruby
<MrZYX> if you completely wrap a method into a begin just omit it
iamjarvo has quit [Read error: Connection reset by peer]
Monotoko has quit [Read error: Connection reset by peer]
iamjarvo_ is now known as iamjarvo
<joshu> this just does POSTing, but I basically need the same thing for GET requests as well. Instead of making two separate methods, one POST and one GET, what about adding an extra argument "request_type" and having an if statement or case statement within to trigger request.body for POST?
Guest17413 has joined #ruby
athst has joined #ruby
<joshu> MrZYX omit begin but keep rescue? I recall something about an implicit begin correct?
<MrZYX> yup
persand has joined #ruby
cj3kim has quit [Remote host closed the connection]
wallerdev has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
havenwood has joined #ruby
cofin has quit [Quit: cofin]
<joshu> MrZYX fixed. how's it looking otherwise? I have tried to make it as "robust" as possible.
<MrZYX> tbh. I'm pretty inexperienced with Net::HTTP, I just use a wrapper :P
ferdev has quit [Quit: ferdev]
rsahae_ has joined #ruby
citizensinspace has joined #ruby
<joshu> MrZYX no problem I can't do that for this. What about my suggestion to add an argument to specify the request type to avoid duplicating the method?
tylersmith has joined #ruby
<byprdct> Morning everyone
<MrZYX> not sure, I'd first write the get version next to it and look how big the overlap really is
timmow has quit [Ping timeout: 240 seconds]
<MrZYX> It's already fairly complex
dcunit3d_ has quit [Read error: Connection reset by peer]
tylersmith has quit [Remote host closed the connection]
bean__ has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
<joshu> MrZYX ok I'll do that. If anyone around gets their boat rocked by Net:HTTP please eh raise your hands ;) I'd welcome any improvements as my boat is not rocking :P
bklane has quit [Remote host closed the connection]
cj3kim has joined #ruby
jinie_ is now known as jinie
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
Es0teric has quit [Remote host closed the connection]
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
tylersmith has joined #ruby
bean__ has joined #ruby
Apane has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
gyre007 has quit [Remote host closed the connection]
m8 has joined #ruby
iamjarvo has quit [Quit: iamjarvo]
Asher has joined #ruby
saarinen has quit [Quit: saarinen]
miskander has quit [Quit: miskander]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
chattmatt has quit [Quit: chattmatt]
chattmatt has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
mljsimone is now known as mljsimone|away
saarinen has joined #ruby
DanKnox_away is now known as DanKnox
obs has quit [Quit: Konversation terminated!]
tommyvyo has joined #ruby
mark_locklear has quit [Ping timeout: 248 seconds]
arya has joined #ruby
Giorgio has quit [Ping timeout: 264 seconds]
halfie has quit [Read error: Operation timed out]
andrewh_ has quit [Read error: Operation timed out]
jwest has quit [Read error: Operation timed out]
freerobby has joined #ruby
johnrliv_ has quit [Remote host closed the connection]
WanderingGlitch has quit [Read error: Operation timed out]
andrewh has joined #ruby
WanderingGlitch has joined #ruby
ner0x has quit [Quit: Leaving]
Al__ has quit [Quit: Al__]
jwest has joined #ruby
halfie has joined #ruby
johnrlive has joined #ruby
virtuose has quit [Read error: Operation timed out]
monomyth has quit [Read error: Operation timed out]
breadtk_ has quit [Read error: Operation timed out]
chattmatt has quit [Client Quit]
monomyth has joined #ruby
breadtk has joined #ruby
virtuose has joined #ruby
KarlHungus has quit [Read error: Operation timed out]
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
pootler_ has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
Guest17413 has quit [Changing host]
Guest17413 has joined #ruby
dcunit3d has joined #ruby
jcromartie has joined #ruby
ianbrandt has joined #ruby
Solnse has joined #ruby
atno__ has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
jbueza has left #ruby [#ruby]
mljsimone|away is now known as mljsimone
sambao21 has joined #ruby
icole has joined #ruby
atno has quit [Ping timeout: 246 seconds]
bubblehe_ has joined #ruby
Pochacco has joined #ruby
bigoldrock has quit [Read error: Connection reset by peer]
blaxter_ has quit [Ping timeout: 248 seconds]
bigoldrock has joined #ruby
Pochacco has quit [Client Quit]
Pochacco has joined #ruby
bubblehead has quit [Read error: Connection reset by peer]
<joshu> Am I correct in that using a hash like this request = { :path => "/path", :body => "something } is faster than assigning two variables path = …. and body = hdhdhd
atno__ is now known as atno
pootler__ has joined #ruby
slash_nick has quit [Ping timeout: 260 seconds]
<MrZYX> faster as in execution speed?
brunoro has quit [Ping timeout: 276 seconds]
<joshu> MrZYX yes I guess
<MrZYX> I doubt that
<MrZYX> you need to allocate a new object
<MrZYX> with the hash
<MrZYX> well, three new objects in the worst case
<joshu> Oh ok I thought I saw that somewhere…must be dreaming…so assigning each variable individually is preferred? I thought I was being smart
slash_nick has joined #ruby
Pochacco has quit [Client Quit]
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<MrZYX> don't take it as a performance measure
Pochacco has joined #ruby
<MrZYX> if you have a method that really needs a ton of arguments and you can't change that fact it can be a better alternative to pass a hash
kayloos has joined #ruby
<MrZYX> but that's more readability
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<joshu> ok so few arguments better to stick with no hash?
<MrZYX> IMO yes
brianpWins has joined #ruby
kirun has joined #ruby
justsee has quit [Ping timeout: 255 seconds]
mfollett has quit [Remote host closed the connection]
ghatak has quit [Ping timeout: 255 seconds]
l3thal- has quit [Quit: leaving]
mark_locklear has joined #ruby
mfollett has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
HecAtic has quit [Quit: Àá¼ö]
<joshu> MrZYX I have removed my hash rocket :D
fmcgeough has joined #ruby
Maoko has quit [Quit: Textual IRC Client: www.textualapp.com]
rfizzle has quit [Ping timeout: 248 seconds]
arusso_znc has quit [Quit: Adios Amigos!]
DanKnox is now known as DanKnox_away
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arusso has joined #ruby
rsahae_ has quit [Quit: rsahae_]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
timonv has joined #ruby
mfollett has quit [Ping timeout: 255 seconds]
xAFIBx has quit [Quit: Try HydraIRC -> http://www.hydrairc.com <-]
mikepack has quit [Remote host closed the connection]
yacks has quit [Read error: Connection reset by peer]
PragCypher has joined #ruby
freerobby has quit [Quit: Leaving.]
jrajav has joined #ruby
athst has quit [Quit: athst]
PragCypher has left #ruby ["Leaving"]
jimg has joined #ruby
saarinen has quit [Quit: saarinen]
interactionjaxsn has joined #ruby
saarinen has joined #ruby
jinie is now known as jinie_
bionhart has quit [Remote host closed the connection]
MrThePla_ has quit [Remote host closed the connection]
freerobby has joined #ruby
ferdev has joined #ruby
strax has joined #ruby
Hanmac has joined #ruby
rsahae_ has joined #ruby
danslo has quit [Quit: danslo]
rezzack has joined #ruby
viszu has quit [Quit: Leaving.]
Guest17413 is now known as ArchBeOS
jimg has quit [Ping timeout: 264 seconds]
ananthakumaran has quit [Quit: Leaving.]
ferdev has quit [Client Quit]
DanKnox_away is now known as DanKnox
mburns has joined #ruby
ananthakumaran has joined #ruby
ferdev has joined #ruby
dougireton has joined #ruby
samuel02 has joined #ruby
<mburns> how could I find what version or URI added URIEncodeComponent?
iamjarvo has joined #ruby
elaptics is now known as elaptics`away
troessner has quit [Quit: Leaving]
yacks has joined #ruby
Zai00 has quit [Quit: Zai00]
buibex has joined #ruby
miskander has joined #ruby
miskander has quit [Client Quit]
Appineer has quit [Remote host closed the connection]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
miskander has joined #ruby
<MrZYX> can't find that constant in the ruby source
mahmoudimus has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
hydrozen has joined #ruby
<apeiros> mburns: assuming it is in the ruby source, then a) CHANGELOG, or b) git log
moted has joined #ruby
wallerdev has quit [Quit: wallerdev]
jerius has joined #ruby
ffranz1 has joined #ruby
slash_nick has quit [Ping timeout: 248 seconds]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
iamjarvo_ has joined #ruby
freerobby has quit [Quit: Leaving.]
buibex has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
dr_neek has quit [Ping timeout: 255 seconds]
devoldmx3 has joined #ruby
slash_nick has joined #ruby
ffranz has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Ping timeout: 264 seconds]
iamjarvo_ is now known as iamjarvo
dr_neek has joined #ruby
mljsimone is now known as mljsimone|away
RORgasm has quit [Read error: Connection reset by peer]
RORgasm_ has joined #ruby
hamakn has quit [Remote host closed the connection]
mfollett has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Odcházím]
sayan has joined #ruby
johnnyfuchs has joined #ruby
m8 has quit [Quit: Sto andando via]
rfizzle has joined #ruby
miskander has quit [Quit: miskander]
<r0bgleeson> >> Proc.new { "Hi" }.()
<eval-in> r0bgleeson => "Hi" (https://eval.in/33499)
xardas has joined #ruby
hadees has joined #ruby
boblu has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
rdark has quit [Quit: leaving]
jrajav has joined #ruby
mocfive has joined #ruby
chrishough has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
falk_ has joined #ruby
pitzips has quit [Ping timeout: 255 seconds]
hollyw00d has quit [Quit: hollyw00d]
denver has quit [Remote host closed the connection]
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
mfollett has quit [Ping timeout: 255 seconds]
thesheff17 has quit [Ping timeout: 260 seconds]
cofin has joined #ruby
freerobby has joined #ruby
reset has joined #ruby
khismetix has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
jlast_ has joined #ruby
bionhart has joined #ruby
whowantstolivefo has joined #ruby
jastix has quit [Quit: Leaving]
nomenkun has joined #ruby
beilabs has quit [Ping timeout: 255 seconds]
dougireton has quit [Ping timeout: 264 seconds]
mfollett has joined #ruby
browndawg has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
lushious has joined #ruby
ffranz1 is now known as ffranz
deception has quit [Quit: Goodbye]
Hanmac has joined #ruby
alvaro_o has joined #ruby
staafl_alt has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
cnrk has joined #ruby
devoldmx has joined #ruby
devoldmx3 has quit [Read error: No route to host]
devoldmx3 has joined #ruby
thesheff17 has joined #ruby
LennyLinux has joined #ruby
athst has joined #ruby
pootler_ has quit [Ping timeout: 240 seconds]
devoldmx27 has joined #ruby
bionhart has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 264 seconds]
pootler__ has quit [Ping timeout: 260 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
c0rn has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
devoldmx3 has quit [Ping timeout: 248 seconds]
kenneth has joined #ruby
Giorgio has joined #ruby
_md has joined #ruby
devoldmx has joined #ruby
<joshu> I've defined a module LogsAsData with two methods def emit and def drain…Why when I do either of these to call the emit method, LogsAsData.emit or LogsAsData::emit do I get this error "(NoMethodError) undefined method `emit' for LogsAsData:Module with "
ner0x has joined #ruby
khismetix has quit [Ping timeout: 276 seconds]
<joshu> I have no class within the module is that possibly the reason?
<MrZYX> because they aren't module_functions
agjacome has joined #ruby
_md has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
devoldmx27 has quit [Ping timeout: 240 seconds]
<fryguy> joshu: def self.emit and def self.drain
<fryguy> (among other solutions, but that is probably what you want in this circumstance)
browndawg has quit [Quit: Leaving.]
sambao21 has joined #ruby
thetristan has joined #ruby
gnagno has quit [Ping timeout: 246 seconds]
khismetix has joined #ruby
jerius has joined #ruby
samuel02 has quit [Remote host closed the connection]
<joshu> fryguy so I still call the method like this LogsAsData.emit but now it will "search" for the method within it's namespace as opposed to before?
<MrZYX> no
<MrZYX> did you understand class methods yet?
moted has quit [Read error: Connection reset by peer]
Taranis has left #ruby [#ruby]
pothibo has quit [Quit: pothibo]
<ner0x> Any easy way to get the number of lines in a file without having to read through the entire thing?
<joshu> MrZYX a class is like a factory..or blueprint for new objects
<MrZYX> not classes, class methods
cburyta has quit [Remote host closed the connection]
axsuul has joined #ruby
chichou has quit [Remote host closed the connection]
ssickle has joined #ruby
<terrellt> ner0x: Nein.
thibauts has quit [Ping timeout: 256 seconds]
juarlex has quit [Read error: Connection reset by peer]
alex__c2022 has joined #ruby
<terrellt> ner0x: Not only is there not an easy way, it can't be done.
juarlex has joined #ruby
<joshu> MrZYX a class method defines an object's behaviour?
<terrellt> ner0x: Well...I guess unless you know the number of characters per line.
mafolz has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
<joshu> MrZYX so a class Rectangle has a method such as perimeter
<MrZYX> joshu: do you have experience in any other language already?
<joshu> MrZYX no Ruby is really my main one
<joshu> I did som C++ at uni but that was not OOP
aedorn has joined #ruby
<joshu> just command line stuff and no I didn't do comp sci
jlast has joined #ruby
schaerli_ has joined #ruby
<MrZYX> okay, so the ruby way from ground up
mikepack has joined #ruby
<MrZYX> a class is an object, too, it's an instance of the class Class
<MrZYX> as such it can have instance methods too
uxp has quit [Ping timeout: 260 seconds]
<Morrolan> terrellt: How would you then get the number of lines? Depending on the encoding a character might be more than one byte, so the file's size won't help.
jlast has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
jlast_ has quit [Read error: Connection reset by peer]
schaerli has quit [Ping timeout: 248 seconds]
cburyta has joined #ruby
carloslopes has quit [Remote host closed the connection]
jlast has joined #ruby
<terrellt> Morrolan: Right, I modify my statement - if you know the precise size that constitutes a "line"
phipes has joined #ruby
<Morrolan> Heh, okay. :D
<MrZYX> joshu: now you can define instance methods on an object, foo = Object.new; bar = Object.new; def foo.baz; "Baz"; end; foo.baz #=> "Baz", bar.baz #=> NoMethodError
tbrock has joined #ruby
<MrZYX> so when defining a class you can add methods to the instance of your class: class Foo; def Foo.baz; "Baz"; end; end; Foo.baz #=> "Baz"; Foo.new.baz #=> NoMethodError;
<ner0x> terrellt: Terrible.
<terrellt> ner0x: Hm?
<MrZYX> inside a class definition the special keyword self is that same instance: class Foo; def self.baz; "Baz"; end; end; is equal and preferred
<MrZYX> all that basically just applies to modules too
<ner0x> terrellt: I guess I'll just slurp it in and and iterate over it rather than each_line'ing it.
boblu has quit [Ping timeout: 246 seconds]
<MrZYX> joshu: so class methods = methods you can call on the class object, instance methods = methods you can call on new instances of that object. class methods on a module object = module methods or module functions
iamjarvo has quit [Quit: iamjarvo]
carloslopes has joined #ruby
whowantstolivefo has quit [Quit: quit]
<terrellt> ner0x: I've heard you can create a lazy iterator with File.read that won't pull the whole file into memory, but I don't have the source on me.
<MrZYX> joshu: uhm "methods on a module object = module methods or module functions" would be better worded
<ner0x> terrellt: 40k lines.
schaerli_ has quit [Remote host closed the connection]
devoldmx3 has joined #ruby
<MrZYX> joshu: made any sense to you?
<joshu> MrZYX re-reading a few times one min please ;)
thibauts has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
ivanoats has quit [Remote host closed the connection]
scrollback has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
maroloccio has quit [Ping timeout: 248 seconds]
jamesaxl has joined #ruby
pskosinski has joined #ruby
<joshu> MrZYX yes I think it makes sense. So I'm calling the emit module method on the LogsAsData module object, correct?
cburyta has quit [Remote host closed the connection]
scrollback has joined #ruby
<MrZYX> I'd call it it "calling the emit module method on the LogAsData module" and "calling the emit (instance) method on the LogAsData module object" but yes
cburyta has joined #ruby
uxp has joined #ruby
tonini has joined #ruby
zacts has quit [Ping timeout: 246 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
supaiku_ has joined #ruby
zacts has joined #ruby
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
reset has quit [Quit: Leaving...]
ggordan has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
Leighton has joined #ruby
d3c has joined #ruby
<aedorn> I love when I code something that makes no sense the next day but works. It's like black magic.
pitzips has joined #ruby
axsuul has quit [Quit: axsuul]
supaiku has quit [Ping timeout: 248 seconds]
failshell has quit []
mklappstuhl has quit [Remote host closed the connection]
failshell has joined #ruby
kenneth has quit [Quit: kenneth]
sayan has quit [Read error: Connection reset by peer]
<lectrick> i assume you have a test covering that code which shows some use cases that might shed light on it
marcgg has quit [Read error: No route to host]
athst has quit [Quit: athst]
wu_lmao has joined #ruby
marcgg has joined #ruby
uxp has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
<joshu> ok thanks for the primer MrZYX
wallerdev has joined #ruby
uxp has joined #ruby
JZTech101 has joined #ruby
ivanoats has joined #ruby
jimg has joined #ruby
dcunit3d_ has joined #ruby
chrishough has quit [Quit: chrishough]
<aedorn> Tests? Nope. This is put together with virtual duct tape and happy thoughts.
rsahae_ has quit [Quit: rsahae_]
dcunit3d has quit [Ping timeout: 260 seconds]
<rfizzle> Anyone have any experience with sucker_punch?
sambao21 has quit [Quit: Computer has gone to sleep.]
pi3r has quit [Quit: Leaving]
vlad_starkov has joined #ruby
saarinen has quit [Quit: saarinen]
persand has quit [Quit: persand]
iamjarvo has joined #ruby
timonv has quit [Remote host closed the connection]
julian-delphiki has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
xcv has quit [Remote host closed the connection]
snearch has joined #ruby
bean has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
bionhart has joined #ruby
cofin has quit [Quit: cofin]
devoldmx3 has quit [Ping timeout: 255 seconds]
tatsuya_o has joined #ruby
reset has joined #ruby
tjbiddle has joined #ruby
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jacobw has joined #ruby
ghatak has joined #ruby
benlieb has joined #ruby
workmad3 has joined #ruby
emmanuelux has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Jackneill has quit [Ping timeout: 255 seconds]
mark_locklear has quit [Read error: Operation timed out]
sayan has joined #ruby
eighty4 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
alup has quit [Read error: No route to host]
persand has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
rhys has quit [Quit: Leaving]
persand has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
andres3 has joined #ruby
devoldmx has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
Meatant has joined #ruby
andres3 has quit [Client Quit]
jerius has quit [Quit: Computer has gone to sleep.]
ArchBeOS has quit [Ping timeout: 264 seconds]
wsterling has joined #ruby
andres2 has joined #ruby
saarinen has joined #ruby
dcunit3d has joined #ruby
sambao21 has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
dcunit3d_ has quit [Ping timeout: 260 seconds]
andres2 has quit [Client Quit]
brianpWins has joined #ruby
DomKM has quit [Quit: Leaving.]
atmosx has joined #ruby
andres2 has joined #ruby
andres2 has quit [Client Quit]
cofin has joined #ruby
andres__ has joined #ruby
wolcanus has quit [Remote host closed the connection]
andres__ has quit [Client Quit]
athst has joined #ruby
ianbrandt_ has joined #ruby
ghatak has quit [Quit: Leaving.]
rhys has joined #ruby
Rizzle has quit [Read error: Connection reset by peer]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Rizzle has joined #ruby
iamjarvo_ has joined #ruby
ianbrandt has quit [Ping timeout: 264 seconds]
ianbrandt_ is now known as ianbrandt
x1337807x has joined #ruby
behrz has joined #ruby
wolcanus has joined #ruby
viszu has joined #ruby
hollyw00d has joined #ruby
yalue has quit [Quit: Leaving]
mansi has quit [Read error: Connection reset by peer]
iamjarvo has quit [Ping timeout: 260 seconds]
iamjarvo_ is now known as iamjarvo
mansi has joined #ruby
jerius has joined #ruby
mansi has quit [Remote host closed the connection]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
mansi has joined #ruby
slainer68 has joined #ruby
Appineer has joined #ruby
chrishough has joined #ruby
RORgasm_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
icole has quit [Remote host closed the connection]
fermion has joined #ruby
arya has quit [Ping timeout: 248 seconds]
behrz has quit [Quit: WeeChat 0.4.0]
Munto has joined #ruby
MistuhKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
<Munto> Hey ! I have an issue with a script
tspike has quit [Ping timeout: 264 seconds]
<Munto> in a first time, I generate a html file, then I send it via ftp on my server
<Munto> the problem is that the file is sent before to be totally written
jnix has quit [Changing host]
jnix has joined #ruby
<Munto> so the end of the file is missing
<Munto> and I don't know how to be sure that the file is entirely written before sending it
<Munto> is there a trick ?
Nisstyre has joined #ruby
pinage404 is now known as zz_pinage404
<MrZYX> there are about a zillion ways to write such a script and thus a zillion possible mistakes you could've made causing that
tw1sted has quit [Quit: tw1sted]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
<MrZYX> impossible to say without seeing it ;)
cburyta has quit [Remote host closed the connection]
<Munto> hmm I see
arya has joined #ruby
colonolGron has joined #ruby
moted has joined #ruby
momomomomo has joined #ruby
spike|spiegel has joined #ruby
colonolGron has quit [Client Quit]
gnagno has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<joshu> Munto remove any private and show the code you'll benefit from the feedback you'll get here ;) I know
<joshu> *anything
freerobby has joined #ruby
RubyHunter has joined #ruby
stef_204 has joined #ruby
DomKM has joined #ruby
<Munto> yes, I am pruning the code
<Munto> just a moment...
zmike123 has quit [Quit: Выходжу]
hollyw00d has quit [Quit: hollyw00d]
RubyHunter has quit [Client Quit]
milardovich has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
citizensinspace has joined #ruby
jimg has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
Appineer has left #ruby [#ruby]
dmerrick has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
amedeiros has quit [Ping timeout: 276 seconds]
dcunit3d_ has joined #ruby
dcunit3d has quit [Ping timeout: 260 seconds]
danslo has joined #ruby
<Munto> I hope this is not too messy
workmad3 has quit [Ping timeout: 248 seconds]
kleinerdrache has quit [Ping timeout: 255 seconds]
jarin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Munto> the final file is about 1MB
workmad3 has joined #ruby
iamjarvo has quit [Quit: iamjarvo]
astegman has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac2 has joined #ruby
jimg has quit [Ping timeout: 260 seconds]
jcromartie has joined #ruby
chorkpop has quit [Read error: Connection reset by peer]
d3c has quit [Quit: Quit]
eldariof has quit [Ping timeout: 276 seconds]
ehaliewicz has joined #ruby
jcromartie has quit [Max SendQ exceeded]
<MrZYX> you never close the file
ianbrandt has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 276 seconds]
jcromartie has joined #ruby
ianbrandt has joined #ruby
<Munto> right
<Munto> I read that ruby does it automatically
geekbri has quit [Remote host closed the connection]
<MrZYX> built an array with the lines or a single string and then at the end do: File.open("index.html", "w") {|file| file.write File.read("header"); file.write body.join("\n"); file.write File.read("footer"); end
harrymoreno has joined #ruby
<MrZYX> only if you pass a block to open or if the script ends
<Munto> oh ok
sepp2k has joined #ruby
<terrellt> Munto: Nothing terrible happens if you don't close it, but it won't flush everything before exiting.
jarin has joined #ruby
mansi has joined #ruby
kofno has quit [Remote host closed the connection]
<MrZYX> eh, s/{/do/ of course
pitzips has quit [Quit: Leaving]
kofno has joined #ruby
wolcanus_ has joined #ruby
ELLIOTTCABLE has quit [Read error: Connection reset by peer]
ELLIOTTCABLE has joined #ruby
jerius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wolcanus has quit [Ping timeout: 248 seconds]
wolcanus_ has quit [Remote host closed the connection]
wolcanus has joined #ruby
chipotle has joined #ruby
brbcoding has quit [Ping timeout: 248 seconds]
fermion has quit [Ping timeout: 248 seconds]
fermion_ has joined #ruby
demet8 has joined #ruby
athst has quit [Quit: athst]
rabidpraxis has joined #ruby
alex__c2022 has quit [Ping timeout: 252 seconds]
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
freakazoid0223 has joined #ruby
phipes has quit [Quit: phipes]
<Munto> Ok, I understand now
alex__c2022 has joined #ruby
<Munto> I just did a test and it works like a charm
c0rn has quit [Quit: Computer has gone to sleep.]
rsahae has joined #ruby
<Munto> thank you for your help everyone !
sayan has quit [Read error: Connection reset by peer]
BadDesign has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
emmanuelux has quit [Read error: Operation timed out]
<apeiros> MrZYX: also when the finalizer of the File object is run - but that can be whenever
pipework has quit [Remote host closed the connection]
<apeiros> terrellt: yes, something terrible will happen if you don't close it - you can run out of file descriptors.
mantas322 has quit [Quit: Page closed]
jonathanwallace has quit [Ping timeout: 260 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
autumn has quit [Ping timeout: 248 seconds]
timkohrumel has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 276 seconds]
autumn has joined #ruby
<Munto> well, I will remember to close it from now on
<atmosx> the only apple's time capsule is misisng is a torrent client
<atmosx> but we have embedded devices for that
<atmosx> oops wrong #
ner0x has quit [Quit: Leaving]
adambeynon has joined #ruby
sailias has quit [Ping timeout: 255 seconds]
workmad3 has quit [Read error: Operation timed out]
<apeiros> Munto: preferably just use the block form
phipes has joined #ruby
syamajala has joined #ruby
<apeiros> it ensures the closing (e.g. in case of exceptions or premature return or whatever)
<apeiros> atmosx: but the new TC looks kinda odd, no?
x1337807x has joined #ruby
tommyvyo has quit [Quit:]
huoxito has quit [Quit: Leaving]
Hanmac1 has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
supaiku_ has quit [Quit: Verlassend]
Zai00 has joined #ruby
rabidpraxis has joined #ruby
Zai00 has quit [Client Quit]
chichou has joined #ruby
<Munto> ok, thanks for the advice :)
mikepack has quit [Remote host closed the connection]
Hanmac2 has quit [Ping timeout: 264 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<atmosx> apeiros: I like the new looks, but it's for 802.11ac and my macbook air supports just 'n' speeds so it wouldn't make 100% out of it.
syamajala has quit [Quit: leaving]
breakingthings has joined #ruby
<atmosx> apeiros: I might be good with the older model, if the price drops
jcromartie has quit [Quit: Computer has gone to sleep.]
Davey has joined #ruby
x1337807x has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
sambao21 has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
athst has joined #ruby
rabidpraxis has quit [Ping timeout: 252 seconds]
krainboltgreene has joined #ruby
axsuul has joined #ruby
chichou has quit [Ping timeout: 264 seconds]
citizensinspace has quit [Quit: citizensinspace]
machuga is now known as machuga|away
phipes has quit [Quit: phipes]
sambao21 has joined #ruby
demet8 has quit [Quit: demet8]
kirun has quit [Quit: Client exiting]
nazty has joined #ruby
demet8 has joined #ruby
freerobby has joined #ruby
ffranz has quit [Ping timeout: 252 seconds]
wolcanus has quit [Remote host closed the connection]
fomatin has joined #ruby
phipes has joined #ruby
stkowski has joined #ruby
ghatak has joined #ruby
burlyscudd has quit [Quit: Leaving.]
tonini has quit [Ping timeout: 248 seconds]
moted has quit [Quit: moted]
interactionjaxsn has quit [Remote host closed the connection]
Al__ has joined #ruby
dash__ has quit [Quit: Time to beer :)]
burlyscudd has joined #ruby
icole has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
Michae___ has joined #ruby
kx has quit [Ping timeout: 240 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has quit [Client Quit]
moted has joined #ruby
icole has quit [Read error: Connection reset by peer]
icole has joined #ruby
burlyscudd has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
ldnunes has quit [Quit: Leaving]
aedorn has quit [Read error: Operation timed out]
jdunck has quit [Ping timeout: 248 seconds]
byprdct has joined #ruby
jonathanwallace has joined #ruby
ghatak has quit [Ping timeout: 255 seconds]
mklappstuhl has joined #ruby
rsahae has quit [Quit: rsahae]
mikepack has joined #ruby
jdunck has joined #ruby
<fmcgeough> I'm getting an error doing an request = HTTPI::Request.new(url) on a particular server. the url is a https address. The error is state=SSLv3 read server certificate B: certificate verify failed. How do I tell the code to use my cert file ?
kx has joined #ruby
aedorn has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 248 seconds]
<zacts> I want to install ruby on FreeBSD 9.1 for the first time ever using the language.
<zacts> which one should I install, ruby20?
<burlyscudd> zacts: yeah
<havenwood> zacts: yup, 2.0 is latest stable
<zacts> ok, ty ^_^
MistuhKurtz has joined #ruby
MistuhKurtz has quit [Client Quit]
ghatak has joined #ruby
<atmosx> zacts: use rvm, don't go with ports
wolcanus has joined #ruby
<havenwood> zacts: You can install chruby via ports, which is a nice way to switch between Rubies: https://github.com/postmodern/chruby#freebsd
freerobby has quit [Quit: Leaving.]
DanKnox_away is now known as DanKnox
eighty4 has left #ruby ["Textual IRC Client: www.textualapp.com"]
BadDesign has joined #ruby
ffranz has joined #ruby
Astralum has joined #ruby
jeffreylevesque has joined #ruby
<burlyscudd> anyone know how to kill join annoncements on this here freenode?
<burlyscudd> "/ignore * JOINS PARTS QUITS" doesn't seem to work for me
<burlyscudd> (OS X LimeChat)
<havenwood> burlyscudd: Preferences < Log < Show join/leave events
x1337807x has joined #ruby
<havenwood> burlyscudd: Err, or is it under Events tab
<havenwood> burlyscudd: Yeah, under Event not Log
jacobw has quit [Quit: WeeChat 0.4.0]
fuzzyhorns has quit [Remote host closed the connection]
<havenwood> I don't know the command line command
cads has joined #ruby
dmiller has quit [Remote host closed the connection]
rsahae has joined #ruby
codecop has quit [Remote host closed the connection]
marcgg_ has joined #ruby
RORgasm_ is now known as RORgasm
dmiller has joined #ruby
atmosx has quit [Quit: And so the story goes…]
freerobby has joined #ruby
marcgg has quit [Ping timeout: 264 seconds]
<zacts> havenwood: ok thanks
<zacts> I'll check it out
workmad3 has joined #ruby
danneu has joined #ruby
WebDawg has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
stkowski has quit [Quit: stkowski]
<WebDawg> I want to have some code connected out but another piece of code listening for connections in. How do I do something like that?
Giorgio has quit [Ping timeout: 248 seconds]
dagobah has joined #ruby
Ortuna has joined #ruby
<Lubinski> its called netcat
reset has quit [Quit: Leaving...]
dcunit3d_ has quit [Quit: leaving]
dr_neek has quit [Quit: dr_neek]
c0rn has joined #ruby
delay has quit [Remote host closed the connection]
milardovich has quit [Quit: Leaving]
jonathanwallace has quit [Ping timeout: 240 seconds]
freezey has quit [Remote host closed the connection]
<WebDawg> I am maintaining an open socket connection with: http://pastebin.com/gSJpkV2D . How would I put that in the background and let the program do other things?
mixel has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
stonevil has joined #ruby
interactionjaxsn has joined #ruby
Michae___ has quit [Remote host closed the connection]
cnrk has quit [Quit: cnrk]
stonevil has quit [Remote host closed the connection]
<WebDawg> Just tell me something to google at least please.
Michae___ has joined #ruby
<WebDawg> I was looking into threads but is that the right way?
<WebDawg> Or should I do something like this: http://zguide.zeromq.org/rb:mspoller
<burlyscudd> havenwood: that works -- thanks
Michae___ has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
Michae___ has joined #ruby
chorkpop has joined #ruby
<terrellt> WebDawg: If you want one process to do two concurrent things then yes, threads are what you want.
cnrk has joined #ruby
Al__ has quit [Quit: Al__]
rzs has joined #ruby
crankyco_ has joined #ruby
<WebDawg> terrellt: I guess that is what I want then. I just want to start a IRC client and host a web based interface. Should I use threads or should I think about doing something else?
tcat has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has quit [Ping timeout: 252 seconds]
citizensinspace has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
crankyco_ has quit [Ping timeout: 240 seconds]
akells` has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
bitcycle has joined #ruby
rzs has left #ruby ["Leaving"]
<fryguy> WebDawg: you should think about event machine
wesside has quit [Quit: Computer has gone to sleep.]
bitcycle has quit [Remote host closed the connection]
<WebDawg> fryguy: thanks.
<havenwood> WebDawg: Another option would be Celluloid::IO.
timkohrumel has joined #ruby
<WebDawg> I was just looking at celluloid
tw1sted has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Pochacco has quit [Quit: Pochacco]
dagobah has quit [Remote host closed the connection]
Cyrus has joined #ruby
ArchBeOS is now known as enroxorz
enroxorz is now known as ArchBeOS
Dreamer3 has joined #ruby
udanteee has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
theRoUS has quit [Ping timeout: 264 seconds]
thams has joined #ruby
<havenwood> WebDawg: How many servers might there be?
devoldmx3 has joined #ruby
udanteee has quit [Quit: Linkinus - http://linkinus.com]
Lubinski has quit [Ping timeout: 248 seconds]
bean has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
breakingthings has quit [Quit: breakingthings]
<WebDawg> I am a n00b and I am just learning atm but I would want it to scale eventually. I just want to learn to code ruby right atm. Right now I want to be able to control the code. If I want to open up 10 servers in a single execution and a web interface for each on a sep port, I would want to do that. I want to be able to add other features down the road too. Like something that polls twitter and relays that information to irc or web serv
devoldmx has quit [Ping timeout: 264 seconds]
reset has joined #ruby
ArchBeOS is now known as enroxorz
baordog has quit [Remote host closed the connection]
tacos1de has quit [Remote host closed the connection]
<WebDawg> havenwood.
enroxorz is now known as ArchBeOS
tacos1de has joined #ruby
generalissimo has quit [Remote host closed the connection]
cnrk has quit [Quit: cnrk]
zaebst has quit [Quit: leaving]
chipotle has quit [Quit: cya]
<havenwood> WebDawg: Yeah, if it were guaranteed to be a low number I'd say just use processes. Evented IO with EM or Celluloid::IO would scale better. You could use threads in JRuby.
s3m73x has quit [Remote host closed the connection]
brennanMKE has joined #ruby
citizensinspace has quit [Quit: citizensinspace]
moted has quit [Quit: moted]
xardas has quit [Ping timeout: 276 seconds]
krainbol_ has joined #ruby
mocfive has quit [Remote host closed the connection]
<WebDawg> I mean lets say I have 100 servers or even 1000. If something goes wary and a thread errors that means the entire process is messed right?
<WebDawg> It just seems to me that the one process would be huge.
<Quadlex> Right. I'm now the proud owner of simultaneouslibations.com
sam113101 has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> awesome…
krainboltgreene has quit [Ping timeout: 276 seconds]
<joshu> Quadlex interesting domain what you hosting?
<WebDawg> I just know irc servers (not written in ruby) are very efficient and can handle huge loads with minimal resources. What are they using?
<apeiros> my company thinks we (the software development team) has already too much to do and outsourced porting an old intranet app… for a lower 5 digit USD price tag
daniel_-_ has joined #ruby
<apeiros> I tried - it took me ~2h to port it myself
<joshu> apeiros lol management
Dummies_freelanc has left #ruby [#ruby]
<apeiros> yeah, #lolmanagement indeed
<Quadlex> joshu: A sample app to show off our service
<joshu> it's not about what you pay but what you get but unfortunately few grasp that concept
daniel_- has quit [Read error: Operation timed out]
tcat2 has joined #ruby
<joshu> Quadlex cool
rabidpraxis has joined #ruby
<Quadlex> joshu: The idea is that you can register you owe someone a drink
dmiller has quit [Remote host closed the connection]
<Quadlex> And if A owe B, B owes C, C owes D and D and A are in the same location, it can tell A to but D a drink
rismoney has joined #ruby
<Quadlex> It's a derpy little fun idea and mainly intended to show off Sauce Labs' service
<joshu> I understand
<Quadlex> But the domain is mine 'cause it was too good a name to pass up. It's way too long... I'll rename it eventually :P
<joshu> Sauce Labs haha cool names all around
<rismoney> is there a website to validate a section of ruby code across versions ?
<joshu> first when I saw it I was thinking xxx :P
<joshu> haha
<havenwood> WebDawg: Try Celluloid::IO on JRuby for parallel threads with evented io.
<Quadlex> We're the premier provider of awesome first impressions
<Quadlex> Oh, and also Selenium as a Service :P
TheFuzzball has quit [Ping timeout: 256 seconds]
Lubinski has joined #ruby
<joshu> that's a good slogan for both the drink idea and mine..combine the two and you;ve hit gold :P
<havenwood> WebDawg: "Celluloid::IO is ideal for servers which handle large numbers of mostly-idle connections, such as Websocket servers or chat/messaging systems."
skaby has quit [Read error: Connection reset by peer]
<WebDawg> havenwood: thanks.
Es0teric has joined #ruby
<Quadlex> joshu: XXX as in porn?
Davey has quit [Quit: Computer has gone to sleep.]
<joshu> Quadlex well something naughty
nomenkun has quit [Remote host closed the connection]
daniel_- has joined #ruby
skaby has joined #ruby
huttan_ has joined #ruby
daniel_- has quit [Client Quit]
<Quadlex> I dunno man... We encourage people to support more browsers
<Quadlex> Some people think that's naughty
cofin has quit [Quit: cofin]
rabidpraxis has quit [Ping timeout: 252 seconds]
TheFuzzball has joined #ruby
yxhuvud2 has joined #ruby
<joshu> Quadlex each to his own I guess
yxhuvud has quit [Ping timeout: 252 seconds]
rhys has quit [Quit: Leaving]
<joshu> anyway I like the idea simple and fun
swwet has joined #ruby
daniel_-_ has quit [Ping timeout: 252 seconds]
<joshu> next you can create an iOS app
druonysus has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
thetristan has quit [Quit: thetristan]
ToApolytoXaos has quit [Quit: Leaving]
<Quadlex> joshu: Heh, definately. Especially since we do testing for that too:P
swwet has left #ruby [#ruby]
<Quadlex> I'm just stuck on a shorter name
<Quadlex> I was thinking something about shouting
huttan has quit [Ping timeout: 276 seconds]
<Quadlex> As in "My Shout"
<Quadlex> but iShout is too contrived
<Quadlex> And GetShouty is taken
rabidpraxis has joined #ruby
anderson has quit [Ping timeout: 255 seconds]
krainbol_ has quit [Quit: krainbol_]
anderson has joined #ruby
wmoxam has joined #ruby
osvico has joined #ruby
tbrock_ has quit [Quit: Textual IRC Client: www.textualapp.com]
s3m73x has joined #ruby
demet8 has quit [Quit: demet8]
ghatak has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
demet8 has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
demet8 has quit [Client Quit]
snearch has quit [Quit: Verlassend]
splittingred has quit [Quit: splittingred]
freerobby has joined #ruby
cmarques has quit [Ping timeout: 260 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
Dekade has joined #ruby
zigomir has quit [Ping timeout: 264 seconds]
ArchBeOS has quit [Remote host closed the connection]
Vert has quit [Ping timeout: 252 seconds]
c0rn has joined #ruby
hoofed has joined #ruby
A124 has quit [Read error: Operation timed out]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
mklappst_ has joined #ruby
jlast has quit [Remote host closed the connection]
<rfizzle> How do you crawl off domain with Anemone?
tcat2 has quit [Ping timeout: 250 seconds]
tcat has quit [Ping timeout: 250 seconds]
sam113101 has joined #ruby
kofno has joined #ruby
mklappstuhl has quit [Ping timeout: 276 seconds]
kayloos has quit [Remote host closed the connection]
<havenwood> rfizzle: You might look at Spidr as well: https://github.com/postmodern/spidr#readme
nari has joined #ruby
scrollback has quit [Remote host closed the connection]
<rfizzle> alright. Thanks
swex has quit [Quit: No Ping reply in 180 seconds.]
swex has joined #ruby
freerobby has quit [Quit: Leaving.]
MrZYX is now known as MrZYX|off
nuba has joined #ruby
dmiller has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
<Dekade> Hello, I'm new to programming and Ruby and I just wrote a small command-line game. It consists out of 1 class that has some different functions, like walking, eating, resting, he can level up and increase attributes and we keep track of time. now I would like to add something like a save function but I'm kind of lost on how. If anyone could point me in some directions, would be very kind.
<havenwood> Dekade: Do you want to save to file or db?
pipework has joined #ruby
<Dekade> to file
nowthatsamatt has quit [Quit: nowthatsamatt]
kayloos has joined #ruby
gyre007 has quit [Remote host closed the connection]
<havenwood> Dekade: Like to yaml, json, marshal or the like?
geggam has quit [Remote host closed the connection]
wolcanus_ has joined #ruby
druonysus has quit [Ping timeout: 264 seconds]
wolcanus_ has quit [Remote host closed the connection]
<Dekade> well, I have no clue to be honest :) like I said I'm all kind of new to this
<havenwood> Dekade: Ruby has PStore for Marshal or YAML::Store for YAML, to persist to disk transactionally.
dankest has joined #ruby
<havenwood> Dekade: Marshal is faster but not human readable. YAML is usually fast enough.
BadDesign has quit [Read error: Connection reset by peer]
<havenwood> Dekade: A key/value store DB like Redis would be a popular option as well. Easy to use.
<Dekade> alright, I'll have a look into those
johnnyfuchs has joined #ruby
wolcanus has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
A124 has quit [Read error: Operation timed out]
TheFuzzball has quit [Quit: Leaving...]
Dummies_freelanc has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
tomzx_mac has joined #ruby
tspike has joined #ruby
TheNumb has quit [Ping timeout: 264 seconds]
johnnyfuchs has quit [Remote host closed the connection]
gnagno has quit [Quit: Sto andando via]
superscott[8] has joined #ruby
grn has quit [Ping timeout: 256 seconds]
<havenwood> Dekade: I wrote a little wrapper for fun around PStore, a gem called Persist. You can: require 'persist'; Persist[:whatever] = {ruby: 'object'}
<havenwood> Dekade: It is just PStore though, really. :P
jtharris has quit [Quit: WeeChat 0.4.0]
emmanuelux has joined #ruby
crankyco_ has joined #ruby
Nimsical has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
Davey has joined #ruby
icole has quit [Remote host closed the connection]
ccheney has joined #ruby
axsuul has quit [Quit: axsuul]
Elico has joined #ruby
crankyco_ has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
stkowski has joined #ruby
A124 has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<dankest> I want to issue bash commands after opening an SSH connection using system(). When I call 'system "ssh root@asdf.com" however, it opens the connection in the window I'm running Ruby in and hangs. How can I run commangs through Ruby on SSH without it pausing?
<havenwood> Dekade: Or serialize and store Ruby objects in Redis with Bindi (uber simple wrapper around Ohm that support Marshal, YAML, JSON serialization): https://github.com/havenwood/bindi#readme
Dekade has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Operation timed out]
marcgg_ has quit [Read error: No route to host]
Dekade has joined #ruby
<havenwood> dankest: Run the system() command in its own Thread maybe. (You mean it pauses while blocking to run the ssh command?)
<Dekade> havenwood: cool thanks I'll keep it around :) I'd like to try to write it myself though, for the sake of learning hehe
marcgg has joined #ruby
yellow5 has quit [Read error: Operation timed out]
rcs has quit [Ping timeout: 264 seconds]
<dankest> havenwood: When I run system ssh something, it literally opens the ssh connection in the same terminal window I'm running the ruby script
<havenwood> Dekade: A cool serialization format you might consider storing in is MessagePack. You only have to add a dump and load method and it behaves like YAML, Marshal, or whatever in Ruby.
DonRichie has quit [Quit: Verlassend]
burlyscudd has joined #ruby
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
<havenwood> Dekade: Cept it is faster. http://msgpack.org
Kar- has quit [Remote host closed the connection]
yellow5 has joined #ruby
thams has quit [Quit: thams]
<dankest> havenwood: tried it in its own thread, same thing
rcs has joined #ruby
jimg has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
rabidpraxis has quit [Remote host closed the connection]
<rismoney> any idea on why an rspec expect(@dupemacs).to eq([]) could return expect [] but @dupemacs is Infinity?? My understanding is @dupemacs is an array but what might cause that
freerobby has joined #ruby
davetherat has quit [Ping timeout: 246 seconds]
autumn has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
<havenwood> dankest: It isn't blocking but is printing ssh responses in terminal? Or something else? You could use `` %x exec etc instead of system()
rfizzle has quit [Quit: Leaving]
burlyscudd has quit [Ping timeout: 246 seconds]
wolcanus has joined #ruby
<Dekade> thanks man :)
autumn has joined #ruby
jimg has quit [Ping timeout: 241 seconds]
twoism has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
ffio_ has joined #ruby
Ortuna has quit [Quit: Textual IRC Client: www.textualapp.com]
wolcanus has quit [Remote host closed the connection]
twoism has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
athst has quit [Ping timeout: 276 seconds]
ffio has quit [Ping timeout: 264 seconds]
crankyco_ has joined #ruby
<dankest> havenwood: okay, I have better lingo now
athst has joined #ruby
mikepack has joined #ruby
dangerousdave has quit [Ping timeout: 260 seconds]
<dankest> I'm trying to ssh to a machine, then ssh to another machine from that one.
horofox has joined #ruby
<dankest> then run a bunch of stuff, etc, drop back to the first machine, run some commands, and then drop back to MY machine, and run some commands
<dankest> What's the best tool to do this with in Ruby?
jamesaxl has quit [Ping timeout: 276 seconds]
devoldmx3 has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
orien has joined #ruby
<havenwood> dankest: You might want to take a look at how Mina does its ssh deploy. Sounds like a similar tactic: http://nadarei.co/mina/
<rismoney> is there any way to return infinity beside dividing a number into 0.0? Like a datatype issue with hash or arrays?
<havenwood> rismoney: Float::INFINITY
<dankest> havenwood: not really doing a deploy
devoldmx has quit [Ping timeout: 240 seconds]
<havenwood> dankest: Yeah, just that their deployment mechanism is to package the scripts, ssh over, then run the scripts. Seemed applicable, maybe it isn't.
hollyw00d has joined #ruby
hollyw00d has quit [Client Quit]
wmoxam has joined #ruby
devoldmx has joined #ruby
danneu has quit [Quit: Leaving.]
viszu has quit [Quit: Leaving.]
slash_nick has quit [Ping timeout: 264 seconds]
wsterling has quit [Remote host closed the connection]
demet8 has joined #ruby
Dummies_freelanc has quit [Remote host closed the connection]
Dummies_freelanc has joined #ruby
elaptics is now known as elaptics`away
devoldmx has quit [Read error: Connection reset by peer]
ner0x has joined #ruby
citizensinspace has joined #ruby
jetblack has quit [Read error: Connection reset by peer]
citizensinspace has quit [Client Quit]
gstamp has joined #ruby
jduan1981 has joined #ruby
apeiros has quit [Remote host closed the connection]
tcat-d has joined #ruby
apeiros has joined #ruby
Lubinski has quit [Ping timeout: 246 seconds]
hoofed has quit [Quit: hoofed]
tcat has joined #ruby
predator217 has joined #ruby
vwoo has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
nomenkun has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
enebo has quit [Quit: enebo]
ehaliewicz has quit [Remote host closed the connection]
subbyyy has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
nomenkun has quit [Read error: Operation timed out]
justsee has quit [Ping timeout: 246 seconds]
tatsuya_o has quit [Remote host closed the connection]
orien has quit [Quit: Computer has gone to sleep.]
vwoo has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
phantasm66 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
ianbrandt has quit [Quit: ianbrandt]
vwoo has joined #ruby
havenwood has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
brianpWins has quit [Quit: brianpWins]
danslo has quit [Ping timeout: 276 seconds]
mfollett has quit [Remote host closed the connection]
tbrock has joined #ruby
vwoo has quit [Ping timeout: 240 seconds]
demet8 has quit [Quit: demet8]
dmiller has quit [Remote host closed the connection]
Solnse has quit [Read error: Connection reset by peer]
superscott[8] has quit [Quit: superscott[8]]
pontiki has quit [Ping timeout: 252 seconds]
vwoo has joined #ruby
havenwood has joined #ruby
agjacome has quit [Quit: leaving]
dagnachew has joined #ruby
Xeago has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
dEPy has quit [Remote host closed the connection]
Raboo has quit [Ping timeout: 256 seconds]
Nisstyre-laptop has joined #ruby
kayloos has quit [Remote host closed the connection]
mixel has quit [Quit: mixel]
Kabaka has joined #ruby
pontiki has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
vlad_starkov has quit [Ping timeout: 246 seconds]
Nisstyre has quit [Quit: Leaving]
Nisstyre-laptop is now known as Nisstyre
wmoxam has quit [Ping timeout: 246 seconds]
tylersmith has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
mfollett has joined #ruby
freerobby has joined #ruby
icole has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
timkohrumel has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
Nimsical has quit [Quit: Textual IRC Client: www.textualapp.com]
timkohrumel has joined #ruby
jonathanwallace has joined #ruby
Nisstyre has quit [Quit: Leaving]
Lubinski has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
horofox has quit [Quit: horofox]
<swex> asd
<swex> zxc
Xeago has joined #ruby
<swex> asdsd
swex has quit [Quit: 66]
sepp2k has quit [Quit: Leaving.]
danslo has joined #ruby
wmoxam has joined #ruby
brennanMKE has quit [Remote host closed the connection]
Pochacco has joined #ruby
slainer68 has quit [Remote host closed the connection]
chrisja has joined #ruby
JimmyNeutron has joined #ruby
Lubinski has quit [Ping timeout: 240 seconds]
niklasb has quit [Ping timeout: 260 seconds]
Pochacco has quit [Read error: Connection reset by peer]