apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
failshell has joined #ruby
MattyMcB has joined #ruby
rcosta has quit [Remote host closed the connection]
mikepack has joined #ruby
idkazuma has joined #ruby
chris__ has joined #ruby
mikepack has quit [Remote host closed the connection]
<jokke> i'm a little confused why i can't call private instance methods from class methods of the same class
<jokke> or private class methods
marr has quit [Ping timeout: 256 seconds]
decentrality has joined #ruby
<apeiros> jokke: because you probably use an explicit receiver
<apeiros> you must not use an explicit receiver to call private methods. self.some_private_method won't work.
jonahR has joined #ruby
Proshot has quit [Quit: Leaving]
<jokke> ofcourse not
<apeiros> jokke: also for your consideration, "can't X" is a poor problem description
<fschuindt> guys, how can I execute a ruby file without call ruby in shell? Like I am using "#!/usr/bin/env ruby" at the beginning and want to do "$ camelog -s" instead of "$ ruby camelog.rb -s". Any tip?
<apeiros> fschuindt: chmode 0755
v0n has joined #ruby
<fschuindt> apeiros: thanks mate!
<jokke> and then ./camelog.rb
<fschuindt> jokke: yeah, it worked :D
pkrnj has quit [Quit: Computer has gone to sleep.]
<fschuindt> jokke: there is anyway to do without ./ ?
Alamo777 has joined #ruby
baroquebobcat has joined #ruby
luckyruby has joined #ruby
Alamo777_ has quit [Read error: Connection reset by peer]
johnnyfuchs has joined #ruby
failshell has quit [Remote host closed the connection]
bitcycle has quit [Quit: Leaving]
<jokke> fschuindt: nope
<jokke> or yeah
<jokke> if you add it to your path
DonRichie has quit [Read error: Operation timed out]
wargasm has joined #ruby
tockitj has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
brianherman has joined #ruby
<fschuindt> jokke: I am looking to a way to do so automaticly, like software instalation
<fschuindt> automatically*
<jokke> eh
<jokke> what distro
<jokke> fschuindt: no wait
<jokke> make a gem
<fschuindt> jokke: mac osx
<jokke> oh ok
<jokke> still
<jokke> make a gem
<jokke> google it up
<fschuindt> jokke: sounds great
<fschuindt> jokke: fine :)
<jokke> put your executable inside the bin folder
pzula has joined #ruby
emmanuelux has joined #ruby
arubin has joined #ruby
Leighton has quit [Quit: Leaving]
<jokke> you can even get a rubyforge account, push the gem to their server and then installing your program is as easy as typing "gem install your-cool-program"
m8 has quit [Quit: Sto andando via]
<jokke> then your executable ruby file is callable from anywhere on the system. (because gem adds it to the path)
<jokke> fschuindt: ^
<fschuindt> jokke: yeah, I am reading about it right know, will be great, my program is a Rails tool
Chioque has joined #ruby
<fschuindt> helps to browse in logs, selecting by get or post
<fschuindt> ignoring the assets
threesome has quit [Ping timeout: 264 seconds]
<fschuindt> put, delete, etc
cantonic has quit [Quit: cantonic]
<jokke> great :)
richcollins has quit [Quit: richcollins]
rupee has quit [Quit: Leaving]
<jokke> also write some tests. People like gems that are well tested :)
<jokke> ideally push it to github too so people can give you feedback or improve upon the code
sambao21 has quit [Quit: Computer has gone to sleep.]
idkazuma has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
chrisja has quit [Quit: leaving]
<Ontolog> is there any way to find which line required a file?
<Ontolog> or gem
fmcgeough has joined #ruby
<Spooner> Ontolog, Nope, though you could wrap Kernel#require so you could track what was loading what.
backjlack has quit [Remote host closed the connection]
<Ontolog> i have bundler magically being required, yet for all the loaded gems, none depend on bundler
dr_neek has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
jamesfung14 has quit [Ping timeout: 260 seconds]
icole has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<jokke> can i check if a block is given? or give default values to blocks?
<jokke> oh
<jokke> block_given?
<jokke> :)
chris__ has quit [Remote host closed the connection]
Mattix has quit [Remote host closed the connection]
hogeo has joined #ruby
lonjil has quit [Quit: Leaving]
dr_neek has quit [Quit: dr_neek]
jcromartie has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
Soliah has joined #ruby
aeontech has joined #ruby
GeissT has joined #ruby
freeayu__ has joined #ruby
aeontech has quit [Client Quit]
tchebb has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
hogeo has quit [Ping timeout: 268 seconds]
emmanuelux has quit [Ping timeout: 268 seconds]
bobbyz has joined #ruby
MattyMcB has quit [Ping timeout: 276 seconds]
yshh_ has quit [Remote host closed the connection]
tchebb has joined #ruby
unflores has quit [Quit: unflores]
Chioque has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
freeayu has quit [Ping timeout: 276 seconds]
alexwh_ has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
emmanuelux has joined #ruby
emmanuelux has quit [Remote host closed the connection]
alexwh has joined #ruby
AlSquire has quit [Ping timeout: 252 seconds]
<bobbyz> If I am trying to use ruby in a manner similar to perl's -e flag (implicit while (<>) {}), reading from either stdin or from files specified on the command line, is ARGF the right tool for the job?
tommyvyo has quit [Quit:]
<Quadlex> Who wants free pizza in SF?
krainboltgreene has quit [Ping timeout: 256 seconds]
pkrnj has joined #ruby
timkohrumel has joined #ruby
krombr has quit [Read error: Operation timed out]
Mcilvena has joined #ruby
<solrize> pizza? where?
eka has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
Mcilvena has quit [Client Quit]
pevjan has quit [Remote host closed the connection]
pipewerk has quit [Remote host closed the connection]
wmoxam has joined #ruby
slash_nick has quit [Ping timeout: 248 seconds]
Mcilvena has joined #ruby
timkohrumel has quit [Ping timeout: 276 seconds]
codemonkey010101 has joined #ruby
slash_nick has joined #ruby
JMcAfreak has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
jdunck has quit [Ping timeout: 255 seconds]
Mcilvena has quit [Remote host closed the connection]
jcromartie has joined #ruby
dmiller__ has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 276 seconds]
pevjan has joined #ruby
dmiller has joined #ruby
bigkm has joined #ruby
Z_Mass has quit [Quit: Leaving]
Mcilvena has joined #ruby
peta_ has quit [Quit: peta_]
chrishough has quit [Quit: chrishough]
Spooner has quit [Remote host closed the connection]
<RubyPanther> bobbyz: -n
jetblack has quit [Quit: leaving]
banjara has quit [Quit: Leaving.]
mmitchell has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 252 seconds]
nhhagen_ has joined #ruby
mmitchell has joined #ruby
dankest has quit [Quit: Leaving...]
bradhe has joined #ruby
rolton has joined #ruby
spalenza has quit [Remote host closed the connection]
jetblack has joined #ruby
yshh has joined #ruby
wsterling has joined #ruby
nhhagen_ has quit [Ping timeout: 264 seconds]
newTech has quit [Quit: newTech]
mmitchell has quit [Ping timeout: 264 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
<fschuindt> How can I make an installed gem bin availible in terminal, just like rake and rails?
atyz has quit [Quit: Leaving...]
CocoStorm has joined #ruby
phipes has joined #ruby
<CocoStorm> what is Ruby used for?
Faris10 has quit [Ping timeout: 264 seconds]
Nuck has joined #ruby
<CocoStorm> So many different jobs require ruby alongside
fmcgeough has quit [Quit: fmcgeough]
wsterling has quit [Ping timeout: 256 seconds]
Xeago has quit [Read error: Connection reset by peer]
atyz has joined #ruby
Xeago has joined #ruby
mattbl has joined #ruby
ravster has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
<phipes> mostly for web apps
phipes has left #ruby [#ruby]
<CocoStorm> phipes, but you could do web apps in javascript
<CocoStorm> ass
icole has joined #ruby
tommyvyo has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
<banister`sleep> CocoStorm: what would you use on the server?
<CocoStorm> php
<Rennex> not just for web apps, also anything that perl and python are used for
yshh has quit [Remote host closed the connection]
niklasb has quit [Read error: Operation timed out]
Jedi_SCT1 has quit [Quit: See ya]
atyz has quit [Quit: Leaving...]
wargasm has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
a_a_g has joined #ruby
jp has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Jedi_SCT1 has joined #ruby
slash_nick has quit [Ping timeout: 276 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
<banister`sleep> CocoStorm: why would you want to use php? it's a horrible clusterfuck of a language
jnoob22 has joined #ruby
atyz has joined #ruby
jblack has quit [Quit: Lost terminal]
<Rennex> ^
bigkm has quit [Quit: Computer has gone to sleep.]
alexgordon2 is now known as alexgordon
vlad_starkov has joined #ruby
bigkm has joined #ruby
icole has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 264 seconds]
davetherat has quit [Remote host closed the connection]
wsterling has joined #ruby
davetherat has joined #ruby
codemonkey010101 has quit [Ping timeout: 255 seconds]
yshh has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mmitchell has joined #ruby
dallasm has joined #ruby
<fschuindt> any tip for how to listen the user's keyboard, to use keys as commands in the code?
wmoxam has quit [Ping timeout: 276 seconds]
<jokke> fschuindt: gets
rolton has quit [Quit: Konversation terminated!]
<jokke> or STDIN.gets
ARCADIVS has quit [Quit: WeeChat 0.3.8]
<fschuindt> jokke: gets don't need enter?
<jokke> it does
thomaslee has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
<jokke> please guys help me out. https://gist.github.com/5551828
Hanmac has joined #ruby
<fschuindt> jokke: I am looking for a vi style
<jokke> my code for some reason doesn't catch Errno::EACCES
<fschuindt> like games, press a key and do a thing
<jokke> fschuindt: yes i get you
<jokke> i once wanted to do something similar but gave up because it was too complicated
asteve has quit [Quit: Computer has gone to sleep.]
<fschuindt> jokke: damn :/
<jokke> s/catch/rescue/
arya has joined #ruby
slainer68 has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 276 seconds]
<sebastianb> fschuindt: STDIN.getc
<jokke> i get the error when trying to copy files which i don't have access to
<jokke> sebastianb: wow that was complicated
<jokke> :D
<sebastianb> yup
<jokke> there was a catch though, i remember it
<jokke> something about blocking terminals
<jokke> and buffering
`p has quit [Remote host closed the connection]
<sebastianb> never heard about it
<jokke> oh well
pskosinski has quit [Remote host closed the connection]
<jokke> sebastianb: any idea why my error isn't rescued?
<sebastianb> All I heard about getc was that in ruby 1.8 it would get a numeric
<sebastianb> jokke: nope
<sebastianb> I'm ruby beginner :D
tommyvyo has quit [Quit:]
<jokke> oh ok
<sebastianb> and I don't even know what Errno::EACCES is
io_syl has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
Ontolog has quit [Remote host closed the connection]
wsterling has quit [Remote host closed the connection]
kofno has joined #ruby
h4mz1d has joined #ruby
<jokke> okay, f* it.. I gotta get some sleep... class starts in < 5 hours.. -.-
codemonkey010101 has joined #ruby
<jokke> night all
zph has joined #ruby
zph has quit [Excess Flood]
Myconix has joined #ruby
d11wtq has joined #ruby
Domon has joined #ruby
pzula has quit [Remote host closed the connection]
bricker`LA has joined #ruby
robert_ has quit [Ping timeout: 245 seconds]
<fschuindt> well, I have decided to use the gem highline to listen the keys. there is a way to run a parallel loop to listen the keys and change an object attributes as they are pressed. And at the same time keep running my program?
<fschuindt> using these attributes
lawl has joined #ruby
robbyoconnor has joined #ruby
lawl has left #ruby [#ruby]
dmiller has joined #ruby
ttt has joined #ruby
`p has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
LiquidInsect has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
d2dchat has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
Mcilvena has left #ruby [#ruby]
brianpWins has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
pcarrier has quit [Ping timeout: 256 seconds]
emmanuelux has joined #ruby
pevjan has quit [Read error: Connection reset by peer]
pevjan has joined #ruby
paolooo has joined #ruby
reset has quit [Ping timeout: 268 seconds]
falood has joined #ruby
r0bby has joined #ruby
pcarrier has joined #ruby
nhhagen_ has joined #ruby
mattbl has quit [Quit: Leaving]
mattbl has joined #ruby
nezumi has joined #ruby
mattbl has quit [Client Quit]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 272 seconds]
LiquidInsect has joined #ruby
BrianJ has joined #ruby
paolooo has quit [Ping timeout: 245 seconds]
Opettaja has joined #ruby
<BrianJ> hey I'm getting RedirectLimitExceeded when i try to install sql server on a windows ec2 machine… windows 2008 rc2
<BrianJ> not too much luck googling this.. anyone else experience this problem?
tealmage has joined #ruby
saarinen has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
Myconix has quit [Quit: "Life would be so much easier if we could just look at the source code." --Dave Olson]
slainer68 has joined #ruby
codemonkey010101 has quit [Ping timeout: 264 seconds]
chimkan has joined #ruby
saarinen has quit [Client Quit]
bradhe has quit [Remote host closed the connection]
julytwilight has joined #ruby
yannis has joined #ruby
bradhe has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
jeebster1 has quit [Quit: Leaving.]
splittingred has joined #ruby
CocoStorm has quit [Ping timeout: 248 seconds]
nettoweb has quit [Quit: nettoweb]
dagnachew has joined #ruby
dallasm has quit [Remote host closed the connection]
mmitchell has joined #ruby
apok has quit [Quit: apok]
dagnachew has quit [Client Quit]
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
slainer68 has quit [Ping timeout: 252 seconds]
memborsky has quit [Quit: yup]
robustus has quit [Ping timeout: 255 seconds]
kemist has joined #ruby
jtperreault has left #ruby ["WeeChat 0.3.7"]
jtperreault has joined #ruby
robustus has joined #ruby
newTech has joined #ruby
codemonkey010101 has joined #ruby
dagnachew has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
solidus-lake has joined #ruby
bradhe has quit [Remote host closed the connection]
jnoob22 has quit [Remote host closed the connection]
wsterling has joined #ruby
yashshah_ has joined #ruby
markalanevans has quit [Read error: Operation timed out]
nettoweb has joined #ruby
atyz has quit [Quit: Leaving...]
theSHOW has joined #ruby
nettoweb has quit [Client Quit]
vlad_starkov has joined #ruby
yashshah has quit [Ping timeout: 248 seconds]
codemonkey010101 has quit [Ping timeout: 260 seconds]
pcarrier has joined #ruby
dagnachew has quit [Remote host closed the connection]
pevjan has quit [Remote host closed the connection]
yashshah has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
jonahR has quit [Quit: jonahR]
yashshah_ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
yashshah has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
wedgex has joined #ruby
undersc0re97 has joined #ruby
cbizzzzzl3 has joined #ruby
bradhe has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
kesor has quit [Quit: kesor]
Ontolog has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rezzack has quit [Quit: Leaving.]
sleetdrop has joined #ruby
solidus-lake has quit [Quit: Leaving.]
theSHOW has quit [Ping timeout: 255 seconds]
megha has joined #ruby
icole has joined #ruby
baba has quit [Ping timeout: 276 seconds]
Ontolog has quit [Remote host closed the connection]
yashshah_ has quit [Read error: Connection reset by peer]
alexgordon has quit [Quit: Computer has gone to sleep.]
Ontolog has joined #ruby
solidus-lake has joined #ruby
icole has quit [Ping timeout: 260 seconds]
undersc0re97 has quit [Quit: WeeChat 0.4.0]
yacks has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
yacks has joined #ruby
jcromartie has quit [Quit: Computer has gone to sleep.]
lyanchih has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
lyanchih has quit [Client Quit]
ravster has left #ruby [#ruby]
jovy88 has joined #ruby
LucidDreamZzZ has joined #ruby
icole has joined #ruby
linuxos has joined #ruby
atyz has joined #ruby
a_a_g has quit [Quit: Leaving.]
Heero has quit [Ping timeout: 264 seconds]
a_a_g has joined #ruby
krainboltgreene has joined #ruby
radic has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
browndawg has joined #ruby
tomzx_mac has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
bafilius has quit [Remote host closed the connection]
codemonkey010101 has joined #ruby
linuxos has quit [Quit: leaving]
wedgex has quit [Remote host closed the connection]
pkrnj has quit [Ping timeout: 268 seconds]
Ontolog has quit [Remote host closed the connection]
radic_ has quit [Ping timeout: 276 seconds]
LucidDreamZzZ has quit [Quit: Leaving]
pkrnj has joined #ruby
arya has joined #ruby
atyz has quit [Ping timeout: 272 seconds]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
tealmage has joined #ruby
tspike has joined #ruby
rickruby has joined #ruby
timkohrumel has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
krainboltgreene has quit [Ping timeout: 256 seconds]
lyanchih has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: Leaving.]
LucidDreamZzZ has joined #ruby
tspike_ has joined #ruby
solidus-lake has quit [Quit: Leaving.]
timkohrumel has quit [Remote host closed the connection]
timkohrumel has joined #ruby
tspike has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
greenarrow has quit [Ping timeout: 264 seconds]
solidus-lake has joined #ruby
greenarrow has joined #ruby
yashshah has joined #ruby
dankest has joined #ruby
markalanevans has joined #ruby
pevjan has joined #ruby
codemonkey010101 has quit [Ping timeout: 264 seconds]
Ripp__ has joined #ruby
krz has joined #ruby
wsterling has quit [Remote host closed the connection]
newTech has quit [Quit: newTech]
djwonk has joined #ruby
cofin has joined #ruby
lyanchih has quit [Quit: lyanchih]
newTech has joined #ruby
timkohrumel has quit [Remote host closed the connection]
solidus-lake has left #ruby [#ruby]
vlad_starkov has joined #ruby
nettoweb has quit [Quit: nettoweb]
vlad_starkov has quit [Ping timeout: 272 seconds]
bitZero__ has quit [Ping timeout: 252 seconds]
krainboltgreene has joined #ruby
ehaliewicz has joined #ruby
hadees has joined #ruby
wedgex has joined #ruby
<hadees> Can you expect the order of values in an hash to not really change? I'm using jquery sortable and instead of having a position field I was just going to order values array I get back from the params hash
twoism has quit [Ping timeout: 256 seconds]
chimkan has quit [Quit: chimkan]
mmitchell has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
mwillhite has joined #ruby
heftig has joined #ruby
wedgex has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
arya has joined #ruby
dallasm has joined #ruby
yashshah has quit [Read error: Operation timed out]
chandankumar has joined #ruby
<bnagy> hashes are ordered as of 1.9
<bnagy> not sure it's sound to rely on it though
bradhe has quit [Remote host closed the connection]
lyanchih has joined #ruby
icecandy has joined #ruby
arya has quit [Ping timeout: 248 seconds]
slash_nick has joined #ruby
generalissimo has joined #ruby
atyz has joined #ruby
lyanchih has quit [Quit: lyanchih]
arya has joined #ruby
cb0t has joined #ruby
nhhagen_ has joined #ruby
atyz has quit [Ping timeout: 272 seconds]
krainboltgreene has quit [Ping timeout: 276 seconds]
brianpWins has quit [Quit: brianpWins]
cbizzzzzl3 has quit [Ping timeout: 264 seconds]
bigkm has joined #ruby
tealmage has joined #ruby
nhhagen_ has quit [Ping timeout: 264 seconds]
huoxito has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
timkohrumel has joined #ruby
tspike has joined #ruby
djwonk has quit [Quit: djwonk]
slash_nick has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
djwonk has joined #ruby
tspike_ has quit [Ping timeout: 248 seconds]
freeayu3 has joined #ruby
freeayu__ has quit [Ping timeout: 276 seconds]
jamesfung14 has joined #ruby
arya has joined #ruby
cbizzzzzl3 has joined #ruby
daniel_hinojosa has quit [Ping timeout: 264 seconds]
chrishough has joined #ruby
ozzloy has joined #ruby
ozzloy has joined #ruby
freerobby has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
cb0t has quit [Ping timeout: 256 seconds]
johchri has joined #ruby
bradhe has joined #ruby
falood has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
yashshah has joined #ruby
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
freeayu3 has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
tspike has quit [Ping timeout: 256 seconds]
timkohrumel has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
Heero has quit [Ping timeout: 264 seconds]
heftig_ has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
tspike has joined #ruby
syamajala has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
freeayu3 has joined #ruby
krainboltgreene has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
wsterling has joined #ruby
tspike has quit [Ping timeout: 252 seconds]
tommyvyo has quit [Quit:]
tspike has joined #ruby
dallasm has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
f0ster has quit [Ping timeout: 260 seconds]
wsterling has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
kofno has quit [Remote host closed the connection]
arya has joined #ruby
bradhe has quit [Remote host closed the connection]
marcdel has joined #ruby
r0bby is now known as robbyoconnor
bigkm has quit [Quit: Computer has gone to sleep.]
Domon has quit [Remote host closed the connection]
bradhe has joined #ruby
bigkm has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
falood has joined #ruby
julytwilight has quit [Remote host closed the connection]
bigkm has quit [Client Quit]
krainboltgreene has joined #ruby
freerobby has joined #ruby
Kurion has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
thomasfedb has quit [Ping timeout: 252 seconds]
cbizzzzzl3 has quit [Ping timeout: 260 seconds]
bigkm has joined #ruby
thomasfedb has joined #ruby
falood has quit [Remote host closed the connection]
iMadper has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
brianpWins has joined #ruby
atyz has joined #ruby
iMadper is now known as iMadper|NTR
neataroni has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby
nhhagen_ has joined #ruby
atyz has quit [Ping timeout: 272 seconds]
richcollins has joined #ruby
arya has quit [Ping timeout: 248 seconds]
fschuindt has joined #ruby
ananthakumaran has joined #ruby
tealmage has joined #ruby
neataroni has joined #ruby
nhhagen_ has quit [Ping timeout: 264 seconds]
benjammin has quit [Remote host closed the connection]
arya has joined #ruby
a_a_g has joined #ruby
philcrissman has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 252 seconds]
LucidDreamZzZ has quit [Remote host closed the connection]
codecop has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
staafl has joined #ruby
<staafl> hey, rubyists :-)
<staafl> i need some help: is there a way to stop ruby from expanding asterisks in the arguments list
tspike has quit [Ping timeout: 260 seconds]
<staafl> i.e. calling "script.rb *.txt" gives me an array of matching files, but I want the wildcard pattern itself...
LucidDreamZzZ has joined #ruby
kil0byte has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
<bobbyz> staafl: that sounds like the shell itself globbing for you. Try: script.rb "*.txt"
timonv has joined #ruby
<staafl> bobbyz, I just found out the reason, it's not the shell but some runtime library my build is linked against
tspike has joined #ruby
<staafl> bobbyz, thanks anyway :-)
justsee has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
bradhe has quit [Remote host closed the connection]
chrishunt has quit [Quit: ZzZzZz...]
bigkm has joined #ruby
ariedler has quit [Remote host closed the connection]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
yannis has quit [Quit: yannis]
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
freerobby has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
julytwilight has joined #ruby
roadt_ has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
luckyruby has quit [Read error: Connection reset by peer]
headius has joined #ruby
joshlegs has joined #ruby
rakl has joined #ruby
roadt has quit [Ping timeout: 245 seconds]
headius has quit [Client Quit]
mahmoudimus has joined #ruby
<joshlegs> hey all. so i'm using neography and sinatra, and im not sure how to write my models to return instanes of "Donor" instead of instances of Neography
<joshlegs> any ideas? wrong channel?
bradhe has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
freakazoid0223 has quit [Ping timeout: 245 seconds]
Animawish has joined #ruby
Animawish is now known as notani
lkba has joined #ruby
notani is now known as Animawish
luckyruby has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
<atmosx> join #weechat
<atmosx> ops sorry didn/t type the /
<joshlegs> lol
dmiller has quit [Remote host closed the connection]
julytwilight has quit [Remote host closed the connection]
gvz has joined #ruby
rakl has quit [Quit: sleeping]
krz has quit [Ping timeout: 252 seconds]
pagios has quit [Quit: Leaving]
gvz has quit [Client Quit]
chandankumar has quit [Quit: Leaving]
Domon has joined #ruby
gvz has joined #ruby
gvz has quit [Client Quit]
snuglepuss has quit [Remote host closed the connection]
krz has joined #ruby
joshlegs has quit [Quit: leaving]
rakl has joined #ruby
pipewerk has joined #ruby
philcrissman has joined #ruby
freerobby has joined #ruby
arya has quit [Ping timeout: 248 seconds]
d2dchat has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
arya has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
Gooder has joined #ruby
atyz has joined #ruby
Hanmac1 has joined #ruby
Kurion has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
emptynine has quit [Ping timeout: 264 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
sailias has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 257 seconds]
nhhagen_ has joined #ruby
emptynine has joined #ruby
santana has joined #ruby
newTech has quit [Quit: newTech]
browndawg has quit [Quit: Leaving.]
tealmage has joined #ruby
atyz has quit [Ping timeout: 268 seconds]
icole_ has joined #ruby
nhhagen_ has quit [Ping timeout: 248 seconds]
Animawish has quit [Quit: Animawish]
danslo has quit [Quit: danslo]
jzig has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
solrize has quit [Ping timeout: 255 seconds]
pithagorians has joined #ruby
<pithagorians> which directories on my system Ruby will look in to find the libraries i require?
bradhe has quit [Remote host closed the connection]
tspike has quit [Ping timeout: 252 seconds]
icole__ has joined #ruby
<atmosx> pithagorians: depends on your setup. use rbenv/rvm
<atmosx> bbl
kil0byte has joined #ruby
lawl has joined #ruby
icole has quit [Ping timeout: 252 seconds]
icole___ has joined #ruby
lawl has left #ruby [#ruby]
tealmage has quit [Ping timeout: 256 seconds]
<postmodern> pithagorians, usually /usr/lib and /usr/local/lib
<postmodern> pithagorians, oh require
<postmodern> pithagorians, anything in $LOAD_PATH
jarray52 has left #ruby [#ruby]
<pithagorians> in my ubuntu, looks like /usr/lib/ruby/1.9.1
rohit_ has joined #ruby
icole_ has quit [Ping timeout: 272 seconds]
icole__ has quit [Ping timeout: 276 seconds]
generalissimo has quit [Remote host closed the connection]
whowantstolivefo has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
musl has quit [Read error: Connection reset by peer]
dawkirst has quit [Quit: Leaving]
bigkm has joined #ruby
lyanchih has joined #ruby
musl has joined #ruby
Caelum has quit [Ping timeout: 260 seconds]
Caelum has joined #ruby
marcdel has quit [Client Quit]
tagrudev has joined #ruby
d11wtq has quit [Ping timeout: 260 seconds]
d11wtq has joined #ruby
Hobogrammer_ has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
Hobogrammer_ has joined #ruby
DementedInsanity has quit [Ping timeout: 268 seconds]
roadt_ is now known as roat
roat is now known as roadt
zigomir has joined #ruby
falood has joined #ruby
vlad_starkov has joined #ruby
julytwilight has joined #ruby
dmiller has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
rickruby has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
krainboltgreene has joined #ruby
rickruby has quit [Ping timeout: 256 seconds]
dmiller has quit [Ping timeout: 264 seconds]
kemist has quit [Quit: kemist]
icole has joined #ruby
MattyMcB has joined #ruby
Sterlingg10 has quit [Quit: Leaving]
Al__ has quit [Quit: Al__]
browndawg has joined #ruby
icole has quit [Read error: Connection reset by peer]
icole has joined #ruby
clocKwize has joined #ruby
rohit_ has quit [Ping timeout: 272 seconds]
lyanchih has quit [Quit: lyanchih]
arya has quit [Ping timeout: 248 seconds]
icole___ has quit [Ping timeout: 272 seconds]
zigomir has quit [Ping timeout: 248 seconds]
noop has joined #ruby
MattyMcB has quit [Ping timeout: 255 seconds]
persand has joined #ruby
bradhe has joined #ruby
mafolz has joined #ruby
dankest has quit [Quit: Leaving...]
alexmreis has joined #ruby
ehaliewicz has quit [Ping timeout: 255 seconds]
alexmreis has left #ruby [#ruby]
ossareh has quit [Ping timeout: 245 seconds]
arya has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: Leaving.]
bigkm has quit [Quit: Computer has gone to sleep.]
ossareh has joined #ruby
danslo has joined #ruby
krombr has joined #ruby
bigkm has joined #ruby
a_a_g has joined #ruby
rohit_ has joined #ruby
jprovazn has joined #ruby
Hanmac has joined #ruby
falood has quit [Remote host closed the connection]
shock_one has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
richcollins has quit [Quit: richcollins]
pithagorians has quit [Ping timeout: 272 seconds]
threesome has joined #ruby
_dv_ is now known as dv_
arya has quit [Ping timeout: 264 seconds]
atyz has joined #ruby
syamajala has quit [Ping timeout: 264 seconds]
malte_ has joined #ruby
rohit_ has quit [Ping timeout: 260 seconds]
arya has joined #ruby
julytwilight has quit [Remote host closed the connection]
atyz has quit [Read error: Connection reset by peer]
atyz has joined #ruby
lewix has quit [Remote host closed the connection]
tealmage has joined #ruby
Tectonic has joined #ruby
sleetdrop has quit [Ping timeout: 268 seconds]
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
krombr has quit [Ping timeout: 272 seconds]
pevjan has quit [Remote host closed the connection]
Tectonic has quit [Client Quit]
thebastl has joined #ruby
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
icole has quit [Remote host closed the connection]
sleetdrop has joined #ruby
sleetdrop has quit [Max SendQ exceeded]
gstamp has quit [Quit: Computer has gone to sleep.]
tealmage has quit [Ping timeout: 268 seconds]
Tectonic has joined #ruby
ngoldman has joined #ruby
sleetdrop has joined #ruby
syamajala has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
pevjan has joined #ruby
jamesfung14 has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
rohit_ has joined #ruby
nhhagen_ has joined #ruby
krainboltgreene has joined #ruby
syamajala has quit [Ping timeout: 248 seconds]
tundrax has joined #ruby
arya has quit [Ping timeout: 256 seconds]
nhhagen_ has quit [Remote host closed the connection]
Nanuq has quit [Read error: Operation timed out]
justsee has joined #ruby
jgrevich has quit [Quit: jgrevich]
Guest14380 has quit [Remote host closed the connection]
sleetdrop has quit [Ping timeout: 264 seconds]
arya has joined #ruby
teclator has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 256 seconds]
Gruu_ has joined #ruby
ilpuccio has joined #ruby
chrishough has quit [Quit: chrishough]
vlad_starkov has joined #ruby
Zeev has quit [Disconnected by services]
Zeev has joined #ruby
Tectonic has quit [Quit: Tectonic]
jenrzzz has joined #ruby
pevjan has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 272 seconds]
tonini has joined #ruby
LyonJT has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
Gruu_ has quit [Quit: Gruu_]
camilasan has joined #ruby
reset has joined #ruby
predator117 has joined #ruby
brianpWins has quit [Quit: brianpWins]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Tectonic has joined #ruby
adit has joined #ruby
adit is now known as Guest3729
rakl has quit [Quit: sleeping]
lewix has joined #ruby
arya has quit [Ping timeout: 276 seconds]
Coffers has joined #ruby
Soliah has quit [Quit: Soliah]
bradhe has joined #ruby
mercwithamouth has joined #ruby
apeiros has joined #ruby
sleetdrop has joined #ruby
ngoldman has quit [Remote host closed the connection]
arya has joined #ruby
xpen has joined #ruby
saarinen has quit [Quit: saarinen]
lmf40 has joined #ruby
dhruvasagar has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Quit: leaving]
jenrzzz has joined #ruby
rohit_ has quit [Quit: Leaving]
dawkirst has joined #ruby
dangerousdave has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
pithagorians has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
falood has joined #ruby
roadt has joined #ruby
teclator has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
blaxter has joined #ruby
krz has quit [Ping timeout: 268 seconds]
AlSquire has joined #ruby
Criztian has joined #ruby
rickruby has joined #ruby
AlSquire has quit [Remote host closed the connection]
Nanuq has joined #ruby
Alamo777 has quit [Quit: Leaving]
foofoobar has joined #ruby
Guest3729 has quit [Remote host closed the connection]
Alamo777 has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Alamo777 has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
bluOxigen has joined #ruby
Alamo777_ has joined #ruby
ephemerian has joined #ruby
hotrine has joined #ruby
DaniG2k has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
GeissT has quit [Ping timeout: 256 seconds]
krz has joined #ruby
predator117 has joined #ruby
BonSequitur has quit [Remote host closed the connection]
nfk has joined #ruby
rickruby has quit [Remote host closed the connection]
Tectonic has quit [Quit: Tectonic]
pskosinski has joined #ruby
tealmage has joined #ruby
foofoobar has left #ruby ["Textual IRC Client: www.textualapp.com"]
osvico has joined #ruby
beiter has joined #ruby
DaniG2k has quit [Quit: Leaving.]
johchri has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
tealmage has quit [Ping timeout: 248 seconds]
chessguy has quit [Remote host closed the connection]
johchri has quit [Client Quit]
predator117 has joined #ruby
monkegjinni has joined #ruby
yacks has joined #ruby
Alamo777 has joined #ruby
Alamo777_ has quit [Quit: Leaving]
Kar- has joined #ruby
cek has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pyrac has joined #ruby
monkegji_ has joined #ruby
elaptics`away is now known as elaptics
santana has quit [Quit: Saliendo]
DaniG2k has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
pi3r has joined #ruby
arya has quit [Ping timeout: 256 seconds]
Arya_ has joined #ruby
mklappstuhl has joined #ruby
mockra has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 255 seconds]
monkegjinni has quit [Ping timeout: 272 seconds]
nhhagen_ has joined #ruby
malte__ has joined #ruby
d11wtq has quit [Ping timeout: 260 seconds]
icole has joined #ruby
charliesome has joined #ruby
vaicine has joined #ruby
LennyLinux has joined #ruby
marr has joined #ruby
malte_ has quit [Ping timeout: 252 seconds]
malte__ is now known as malte_
troessner has joined #ruby
niceguyjames has joined #ruby
nhhagen_ has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
vlad_starkov has joined #ruby
icole has quit [Ping timeout: 264 seconds]
ksmth has joined #ruby
gtuckerkellogg has joined #ruby
andikr has quit [Remote host closed the connection]
monkegjinni has joined #ruby
megha has quit [Ping timeout: 272 seconds]
atyz has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
tomzx_mac has joined #ruby
jrendell has quit [Quit: jrendell]
vlad_starkov has quit [Ping timeout: 264 seconds]
pskosinski has quit [Remote host closed the connection]
megha has joined #ruby
rdark has joined #ruby
Eldariof-ru has joined #ruby
Vert has quit [Quit: No Ping reply in 180 seconds.]
lyanchih has joined #ruby
freeayu__ has joined #ruby
freeayu3 has quit [Ping timeout: 264 seconds]
Vert has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
havenwood has joined #ruby
timmow has joined #ruby
Arya_ has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
staafl_alt has joined #ruby
Silent__ has joined #ruby
brian_000_ has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
notVert has joined #ruby
lyanchih has quit [Quit: lyanchih]
falood_ has joined #ruby
havenn_ has joined #ruby
mrmist_ has joined #ruby
musl_ has joined #ruby
it_tard has joined #ruby
buscon has joined #ruby
it_tard has quit [Changing host]
it_tard has joined #ruby
tonini has joined #ruby
Evixion` has joined #ruby
filipe__ has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
ejnahc_ has joined #ruby
d-best has joined #ruby
Skelz0r_ has joined #ruby
erry_ has joined #ruby
notVert has quit [Ping timeout: 252 seconds]
Eldariof-ru has quit [Ping timeout: 264 seconds]
leonidlm has joined #ruby
erry has quit [Killed (sendak.freenode.net (Nickname regained by services))]
erry_ is now known as erry
cheese1756_ has joined #ruby
havenwood has quit [*.net *.split]
nfk has quit [*.net *.split]
gtuckerkellogg has quit [*.net *.split]
yacks has quit [*.net *.split]
falood has quit [*.net *.split]
dangerousdave has quit [*.net *.split]
staafl has quit [*.net *.split]
brianherman has quit [*.net *.split]
arturaz has quit [*.net *.split]
jolleyjoe has quit [*.net *.split]
nhhagen has quit [*.net *.split]
musl has quit [*.net *.split]
Hobogrammer_ has quit [*.net *.split]
cheese1756 has quit [*.net *.split]
ejnahc has quit [*.net *.split]
mrmist has quit [*.net *.split]
filipe_ has quit [*.net *.split]
Evixion has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
thibauts has quit [*.net *.split]
d-snp has quit [*.net *.split]
mockra has joined #ruby
mrmist_ is now known as mrmist
enriclluelles has joined #ruby
adambeynon has joined #ruby
thibauts has joined #ruby
freerobby has joined #ruby
atno has quit [Remote host closed the connection]
ksmth has quit []
io_syl has quit [Ping timeout: 264 seconds]
Niamkik_ has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
kuzushi__ has joined #ruby
yacks has joined #ruby
arturaz has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
noname001 has joined #ruby
Luyt_ has joined #ruby
khismetix has joined #ruby
pskosinski has joined #ruby
Coolhand_ has joined #ruby
Al__ has joined #ruby
io_syl has joined #ruby
erry_ has joined #ruby
choobie has quit [Ping timeout: 264 seconds]
erry has quit [Killed (calvino.freenode.net (Nickname regained by services))]
erry_ is now known as erry
xxi has joined #ruby
casheew_ has joined #ruby
noname001 has quit [Remote host closed the connection]
ccooke_ has joined #ruby
noname001 has joined #ruby
atyz has quit [Quit: Leaving...]
mockra has quit [Ping timeout: 255 seconds]
jolleyjoe has joined #ruby
krainboltgreene has quit [Quit: krainboltgreene]
wesside_ has joined #ruby
io_syl has quit [Read error: Operation timed out]
_main_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
AlSquire has joined #ruby
monkegjinni has joined #ruby
xargoon_ has joined #ruby
withnale_ has joined #ruby
nemesit|- has joined #ruby
atno has joined #ruby
hamed_r has joined #ruby
SeySayux_ has joined #ruby
freerobby has quit [*.net *.split]
ejnahc_ has quit [*.net *.split]
hotrine has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
pithagorians has quit [*.net *.split]
ananthakumaran has quit [*.net *.split]
a_a_g has quit [*.net *.split]
codecop has quit [*.net *.split]
markalanevans has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
postmodern has quit [*.net *.split]
zastern has quit [*.net *.split]
shammancer has quit [*.net *.split]
corehook has quit [*.net *.split]
kuzushi_ has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
moos3 has quit [*.net *.split]
Niamkik has quit [*.net *.split]
withnale has quit [*.net *.split]
Coolhand has quit [*.net *.split]
ccooke has quit [*.net *.split]
mfridh has quit [*.net *.split]
wesside has quit [*.net *.split]
SeySayux has quit [*.net *.split]
casheew has quit [*.net *.split]
Luyt has quit [*.net *.split]
voodoofish has quit [*.net *.split]
TMM has quit [*.net *.split]
xargoon has quit [*.net *.split]
araujo has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
ixx has quit [*.net *.split]
__main__ has quit [*.net *.split]
xargoon_ is now known as xargoon
wookiehangover has joined #ruby
atyz has joined #ruby
_main_ is now known as __main__
dhruvasagar has joined #ruby
io_syl has joined #ruby
ejnahc has joined #ruby
postmodern has joined #ruby
peta_ has joined #ruby
16WAAVUNV has joined #ruby
markalanevans has joined #ruby
codecop has joined #ruby
zastern has joined #ruby
ananthakumaran has joined #ruby
shammancer has joined #ruby
a_a_g has joined #ruby
pithagorians has joined #ruby
moos3 has joined #ruby
r0bgleeson has joined #ruby
araujo has joined #ruby
kuzushi_ has joined #ruby
ixx has joined #ruby
16WAAUR22 has joined #ruby
Luyt has joined #ruby
Coolhand has joined #ruby
TMM has joined #ruby
wesside has joined #ruby
mfridh has joined #ruby
sideshowcoder has joined #ruby
voodoofish has joined #ruby
noname001 has quit [Excess Flood]
unflores has joined #ruby
16WAAVUNV has quit [Max SendQ exceeded]
mfridh has quit [Max SendQ exceeded]
16WAAUR22 has quit [Max SendQ exceeded]
markalanevans has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
Luyt has quit [Max SendQ exceeded]
TMM has quit [Excess Flood]
adit has joined #ruby
ixx has quit [Read error: Operation timed out]
araujo has quit [Excess Flood]
tealmage has joined #ruby
TMM has joined #ruby
kuzushi_ has quit [Ping timeout: 246 seconds]
TMM has quit [Changing host]
TMM has joined #ruby
adit is now known as Guest93829
Coolhand has quit [Read error: Operation timed out]
araujo has joined #ruby
mfridh has joined #ruby
skattyadz has joined #ruby
noname001 has joined #ruby
r0bgleeson has quit [Ping timeout: 256 seconds]
wesside has quit [Ping timeout: 256 seconds]
Asher has quit [Quit: Leaving.]
<linduxed> hey guys, is there some way to globally make tests always be colored?
eka has joined #ruby
Asher has joined #ruby
lewix has quit [Remote host closed the connection]
Guest93829 has quit [Ping timeout: 268 seconds]
Astralum has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 252 seconds]
choobie has joined #ruby
<Hanmac> linduxed: depends on the testing env ... what do you use? rspec, minitest, test-unit?
atno has quit [Ping timeout: 255 seconds]
codespectator has joined #ruby
corehook has joined #ruby
Zeev has quit [Disconnected by services]
Zeev has joined #ruby
rickruby has joined #ruby
tockitj has joined #ruby
ipalaus has quit [Quit: Computer has gone to sleep.]
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tockitj has quit [Changing host]
tockitj has joined #ruby
erry_ has joined #ruby
vlad_starkov has joined #ruby
peta__ has joined #ruby
erry has quit [Killed (wright.freenode.net (Nickname regained by services))]
erry_ is now known as erry
wesside has joined #ruby
wesside_ has quit [Read error: Connection reset by peer]
backjlack has joined #ruby
spacebug_ has joined #ruby
danslo_ has joined #ruby
Alamo777_ has joined #ruby
osvico has quit [Ping timeout: 256 seconds]
mklappstuhl has quit [Remote host closed the connection]
rwz_ has joined #ruby
notbrent_ has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
apeiros has quit [Remote host closed the connection]
csexton- has joined #ruby
a_a_g1 has joined #ruby
rickruby has quit [Ping timeout: 268 seconds]
tonini has joined #ruby
_musl_ has joined #ruby
* hoelzro wished Ruby used TAP more
jaredrhine_ has joined #ruby
emdub has joined #ruby
kalleth_ has joined #ruby
filipe_ has joined #ruby
ohcibi_ has joined #ruby
spider-mario has joined #ruby
<Hanmac> hoelzro: i did but they hated me because of it
<hoelzro> Hanmac: who's "they"?
codespec_ has joined #ruby
Johbe_ has joined #ruby
<Hanmac> the others i show my code
telling_ has joined #ruby
verma_ has joined #ruby
gyre007 has joined #ruby
flori_ has joined #ruby
breadtk_ has joined #ruby
zaargy_ has joined #ruby
arturaz has quit [Ping timeout: 260 seconds]
<hoelzro> how can you hate TAP?
staafl_123 has joined #ruby
iMadper|` has joined #ruby
<hoelzro> it abstracts test frameworks away from the mechanism for running tests
nemesit|znc has joined #ruby
predator117 has joined #ruby
justinmcp_ has joined #ruby
Mekkis_ has joined #ruby
icecandy_ has joined #ruby
tomzx_mac has quit [Ping timeout: 272 seconds]
a_a_g has quit [Ping timeout: 256 seconds]
drPoggs has joined #ruby
dross_ has joined #ruby
<Hanmac> huch ... miss readed ... i read TAB, not TAP ... it seems that i am not waked up yet
<hoelzro> heh
17SACS680 has quit [Ping timeout: 245 seconds]
lsone_ has joined #ruby
krombr has joined #ruby
yosafbridge` has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
Drewch_ has joined #ruby
seich- has joined #ruby
SeySayux has joined #ruby
pygmael has joined #ruby
phite has joined #ruby
icedp has joined #ruby
billy_ran_away_ has joined #ruby
ballmer has joined #ruby
mockra has joined #ruby
corehook_ has joined #ruby
SeySayux_ has quit [Ping timeout: 264 seconds]
notbrent has quit [Ping timeout: 264 seconds]
rwz has quit [Ping timeout: 264 seconds]
C0deMaver1ck has quit [Ping timeout: 264 seconds]
yosafbridge has quit [Ping timeout: 264 seconds]
Alamo777 has quit [Read error: Connection reset by peer]
musl_ has quit [Read error: Connection reset by peer]
danslo has quit [Read error: Connection reset by peer]
spacebug has quit [Read error: Connection reset by peer]
davetherat has quit [Ping timeout: 264 seconds]
csexton has quit [Ping timeout: 264 seconds]
nemesit|- has quit [Ping timeout: 264 seconds]
lsone has quit [Ping timeout: 264 seconds]
Johbe has quit [Ping timeout: 264 seconds]
bakingbread has quit [Ping timeout: 264 seconds]
verma has quit [Ping timeout: 264 seconds]
corehook has quit [Ping timeout: 264 seconds]
codespectator has quit [Ping timeout: 264 seconds]
telling has quit [Ping timeout: 264 seconds]
filipe__ has quit [Ping timeout: 264 seconds]
iMadper|NTR has quit [Ping timeout: 264 seconds]
nga4 has quit [Ping timeout: 264 seconds]
waxjar has quit [Ping timeout: 264 seconds]
darrik has quit [Ping timeout: 264 seconds]
dr_Poggs has quit [Ping timeout: 264 seconds]
jaredrhine has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
billy_ran_away has quit [Ping timeout: 264 seconds]
Mekkis has quit [Ping timeout: 264 seconds]
kalleth has quit [Ping timeout: 264 seconds]
ohcibi has quit [Ping timeout: 264 seconds]
emdub_ has quit [Ping timeout: 264 seconds]
seich has quit [Ping timeout: 264 seconds]
flori has quit [Ping timeout: 264 seconds]
gianlucadv has quit [Ping timeout: 264 seconds]
Daemoen has quit [Ping timeout: 264 seconds]
sn0wb1rdz has quit [Ping timeout: 264 seconds]
breadtk has quit [Ping timeout: 264 seconds]
staafl_alt has quit [Ping timeout: 264 seconds]
peta_ has quit [Ping timeout: 264 seconds]
pygmael_ has quit [Ping timeout: 264 seconds]
justinmcp has quit [Ping timeout: 264 seconds]
zaargy has quit [Ping timeout: 264 seconds]
icecandy has quit [Ping timeout: 264 seconds]
mattp__ has quit [Ping timeout: 264 seconds]
Drakevr has quit [Ping timeout: 264 seconds]
dross has quit [Ping timeout: 264 seconds]
Drewch has quit [Ping timeout: 264 seconds]
C0deMaver1ck has joined #ruby
danslo_ is now known as danslo
waxjar has joined #ruby
gianlucadv has joined #ruby
kapowaz has joined #ruby
Mekkis_ is now known as Mekkis
nyuszika7h has quit [Read error: Connection reset by peer]
kapowaz has quit [Changing host]
kapowaz has joined #ruby
Drewch_ is now known as Drewch
jovy88 has joined #ruby
sn0wb1rdz has joined #ruby
nga4 has joined #ruby
julytwilight has joined #ruby
predator117 has quit [Ping timeout: 255 seconds]
Daemoen has joined #ruby
icecandy_ has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
rwz_ is now known as rwz
notbrent_ is now known as notbrent
pyrac has quit [Quit: pyrac]
tonini has quit [Ping timeout: 248 seconds]
C0deMave- has joined #ruby
Nanuq has quit [Read error: Operation timed out]
mockra has quit [Ping timeout: 255 seconds]
jbueza has joined #ruby
darrik has joined #ruby
fermion has joined #ruby
icedp is now known as bakingbread
browndawg has quit [Quit: Leaving.]
kapowaz_ has joined #ruby
browndawg has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
C0deMaver1ck has quit [Ping timeout: 264 seconds]
waxjar has quit [Ping timeout: 264 seconds]
gianlucadv has quit [Ping timeout: 264 seconds]
kapowaz has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
Umren has joined #ruby
kapowaz_ is now known as kapowaz
waxjar has joined #ruby
alexwh has quit [Ping timeout: 252 seconds]
a_a_g has joined #ruby
telling_ is now known as telling
gianlucadv has joined #ruby
telling has quit [Changing host]
telling has joined #ruby
gianlucadv has quit [*.net *.split]
waxjar has quit [*.net *.split]
Eldariof-ru has joined #ruby
julytwilight has quit [Remote host closed the connection]
alexwh has joined #ruby
jbueza has quit [Quit: Leaving.]
roadt has quit [Ping timeout: 272 seconds]
roadt has joined #ruby
MrZYX|off is now known as MrZYX
a_a_g1 has quit [Ping timeout: 256 seconds]
browndawg has quit [Ping timeout: 272 seconds]
falood_ has quit [Remote host closed the connection]
mwillhite has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gianlucadv has joined #ruby
waxjar has joined #ruby
bradhe has joined #ruby
browndawg has joined #ruby
browndawg has quit [Client Quit]
a_a_g1 has joined #ruby
mercwithamouth has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
DonRichie has quit [Ping timeout: 268 seconds]
DonRichie has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
krz has quit [Quit: krz]
a_a_g has quit [Ping timeout: 252 seconds]
Nanuq has joined #ruby
arya has joined #ruby
<linduxed> Hanmac: rspec mostly, but sometimes testunit
<Hanmac> linduxed: about test-unit: it is colored when you use the test-unit gem (its also more advanced), the stdlib one uses minitest which is not colored, (you can use "turn" for that)
Faris10 has joined #ruby
<linduxed> Hanmac: hmmm, sounds a bit complicated, i think i'll start with rspec then
niceguyjames has joined #ruby
camilasan has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
corehook_ has quit [Ping timeout: 256 seconds]
Hanmac1 has joined #ruby
pyrac has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
<Hanmac1> hm i like the test-unit more ... i dont see benefits from using rspec
Hanmac has quit [Ping timeout: 260 seconds]
Hanmac1 is now known as Hanmac
predator117 has joined #ruby
xpen_ has joined #ruby
kalleth_ is now known as kalleth
xpen has quit [Read error: Connection reset by peer]
<kke> do i use return self if i want to break out of initializer?
<kke> ie. setting @errors = "foo"; return self without doing more initializing
<waxjar> i don't think you have to return anything, because really you're calling the class method .new, which will always return an instance (unless overwritten)?
<waxjar> but im not 100% sure
julytwilight has joined #ruby
reset has quit [Quit: Leaving...]
beiter has quit [Quit: beiter]
hamed_r has quit [Quit: Leaving]
<hoelzro> I think return; should be fine
julytwilight has quit [Remote host closed the connection]
<pi3r> kke: Why do you want to "break" from the initializer?
<waxjar> return early, instead of wrapping everything in a conditional? it's quite common
<hoelzro> indeed
tealmage has joined #ruby
jbueza has joined #ruby
iMadper|` is now known as iMadper
mercwith1mouth has joined #ruby
<kke> of course i could return false, but then i wouldn't have any error explanation, unless i do a raise, but then i would have to rescue which is slow.
lewix has joined #ruby
ipalaus has joined #ruby
<pi3r> waxjar: ahhhh, it's a guard then, did not understood the use case. sorry
<hoelzro> kke: how often are you constructing this object, though?
<hoelzro> if you do it once per program, using exceptions in an initializer isn't expensive.
<kke> possibly 1000 times per certain api call
predator117 has quit [Ping timeout: 252 seconds]
<hoelzro> jeez
<hoelzro> can you construct all 1000 in a single begin ... rescue block?
<kke> i don't want to fail them all if one fails
<hoelzro> well, you can still do that
<hoelzro> even if you use a single rescue block
tealmage has quit [Ping timeout: 272 seconds]
<hoelzro> honestly though, just use exceptions and wrap each construction in a being rescue for now
blacktulip has joined #ruby
<hoelzro> it's cleaner code, more understandable, and it may be fast enough
<hoelzro> if you find it's not fast enough, you can transition to a different strategy
Nanuq has quit [Read error: Operation timed out]
mklappstuhl has quit [Remote host closed the connection]
<waxjar> ah, returning when you should have raised an exception isn't a good idea
paolooo has joined #ruby
persand has quit [Quit: persand]
Nanuq has joined #ruby
brtdv has joined #ruby
Xeago has joined #ruby
lewix has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 260 seconds]
lewix has joined #ruby
predator117 has joined #ruby
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
C0deMave- is now known as C0deMaver1ck
zaargy_ is now known as zaargy
C0deMaver1ck is now known as Guest48897
sayan has joined #ruby
beiter has joined #ruby
mockra has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
jbueza has joined #ruby
Domon has quit [Remote host closed the connection]
Kabaka has quit [Excess Flood]
corehook has joined #ruby
havenn_ has quit [Remote host closed the connection]
havenwood has joined #ruby
cantonic has joined #ruby
forlin has joined #ruby
poga has joined #ruby
Kabaka has joined #ruby
mockra has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
havenwood has quit [Ping timeout: 268 seconds]
Domon has joined #ruby
arya has quit [Ping timeout: 256 seconds]
jbueza has quit [Ping timeout: 272 seconds]
jbueza has joined #ruby
heftig_ is now known as heftig
Spooner has joined #ruby
lyanchih has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
poga has quit [Ping timeout: 272 seconds]
zomgbie has joined #ruby
arya has joined #ruby
zomgbie has quit [Client Quit]
vlad_starkov has joined #ruby
bradhe has joined #ruby
zomgbie has joined #ruby
chichou has joined #ruby
GeissT has joined #ruby
monkegjinni has quit [Ping timeout: 276 seconds]
falood has joined #ruby
bradhe has quit [Ping timeout: 268 seconds]
malte_ has quit [Quit: malte_]
nhhagen has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
dkannan has joined #ruby
malte_ has joined #ruby
Domon has quit [Remote host closed the connection]
Kabaka has quit [Excess Flood]
Hanmac1 has joined #ruby
malte_ has quit [Remote host closed the connection]
jbueza has quit [Ping timeout: 268 seconds]
malte_ has joined #ruby
Kabaka has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
sayan has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
lyanchih has quit [Quit: lyanchih]
jnoob22 has joined #ruby
nhhagen_ has joined #ruby
mixel has joined #ruby
babinho has quit [Ping timeout: 260 seconds]
pyrac has quit [Quit: pyrac]
babinho has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
zekefast has joined #ruby
Domon has joined #ruby
camilasan has joined #ruby
nhhagen_ has quit [Ping timeout: 255 seconds]
<dawkirst> Hi, anyone awake?
<clocKwize> yeah
sleetdrop has quit [Read error: Operation timed out]
solrize has joined #ruby
pduin has joined #ruby
tundrax has quit [Remote host closed the connection]
<hoelzro> yes
niceguyjames has quit [Quit: Computer has gone to sleep.]
<dawkirst> I'm trying for the life of me to replicate https://gist.github.com/emilesilvis/5553719 in rest-client, and I just can't figure out why it's so difficult (it's fine in curl and in unirest)
slainer68 has joined #ruby
cantonic has quit [Quit: cantonic]
xpen_ has quit [Remote host closed the connection]
yashshah has quit [Ping timeout: 248 seconds]
r0bgleeson has joined #ruby
davetherat has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
evenix has joined #ruby
Domon has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gasbakid has joined #ruby
roadt_ has joined #ruby
Domon has joined #ruby
<dawkirst> My code is in a comment on that gist
tealmage has joined #ruby
malte_ has quit [Quit: malte_]
bluenemo has joined #ruby
<dawkirst> I get a '403 Forbidden', so it has to be something with the auth header
beiter has quit [Quit: beiter]
<clocKwize> dawkirst:
<clocKwize> params aren't headers
<dawkirst> sorry, meant params
<dawkirst> clocKwize, oh, I see what you mean
roadt has quit [Ping timeout: 272 seconds]
<clocKwize> params are like query string or post body url encoded arguments
<clocKwize> not sure how to pass headers in to RestClient but I'm sure there is a way, and now you have a good lead :)
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
jbueza has joined #ruby
<clocKwize> yeah that =]
tealmage has quit [Ping timeout: 272 seconds]
yacks has joined #ruby
Criztian has quit [Remote host closed the connection]
casheew_ has quit [Ping timeout: 252 seconds]
casheew has joined #ruby
jbueza has quit [Client Quit]
persand has joined #ruby
kofno has joined #ruby
lewix has quit [Remote host closed the connection]
<dawkirst> clocKwize, waxjar, thanks. So in my case I'd have the url, the params (which is the url), and the header (which is the auth)
CocoStorm has joined #ruby
<clocKwize> you have no params in that sample request
<clocKwize> oh wait
<clocKwize> yeah you do
<clocKwize> its the url=
<dawkirst> clocKwize, yes (but also, I just tested with hurl.it, it works both as post body and post params)
<clocKwize> so, RestClient.post "url", {url: "foo.jpg"}, {x_mashape_authorization: "blah"}
<waxjar> restclient is p neat
mattp__ has joined #ruby
kofno has quit [Ping timeout: 255 seconds]
bijumon has quit [Quit: "fucking tmux protocol mismatch"]
<dawkirst> Is {:x_mashape_authorization => "blah"} == {"X-Mashape-Authorization" => "blah"} == {x_mashape_authorization: "blah"}?
<Spooner> No, the first and last are the same.
<dawkirst> waxjar, p neat?
<waxjar> pretty neat
<dawkirst> ok ^_^
<dawkirst> Spooner, thanks
<clocKwize> {x: "blah"} is shortcut for {:x => "blah}
<Spooner> They are Symbol keys, the other is a String.
<clocKwize> which isn't the same as {"x" => "blah"}
<waxjar> i think rest-client converts the symbols for you to the string though
<clocKwize> it will
<waxjar> so in this case they're all equivalent
kofno has joined #ruby
<dawkirst> waxjar, got it, thanks
<dawkirst> Is the documentation at rdoc.info/ generated automatically?
<waxjar> more or less
<dawkirst> Guess I could get in pry as well
<clocKwize> pry rocks your sox
hamakn has joined #ruby
nari has joined #ruby
a_a_g has joined #ruby
sepp2k has joined #ruby
mockra has joined #ruby
monkegjinni has joined #ruby
altivec has joined #ruby
DaniG2k has quit [Quit: Leaving.]
leonidlm has quit [Ping timeout: 268 seconds]
a_a_g1 has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
mercwith1mouth has quit [Ping timeout: 256 seconds]
poga has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
machuga|away is now known as machuga
mercwithamouth has quit [Ping timeout: 268 seconds]
SAUCYSALAMANDER has quit [Ping timeout: 264 seconds]
poga has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
filipe_ has quit [Ping timeout: 272 seconds]
poga has joined #ruby
poga has quit [Remote host closed the connection]
poga has joined #ruby
bijumon has joined #ruby
samuel02 has joined #ruby
geekbri has joined #ruby
Liothen has quit [Ping timeout: 264 seconds]
hogeo has quit [Remote host closed the connection]
<bijumon> hi, howto render variables like site.title and site.subtitle in liquid?
pyrac has joined #ruby
krombr has quit [Ping timeout: 268 seconds]
ttt has quit [Remote host closed the connection]
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest7217 has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
<Spooner> bijumon, read the liquid documentation?
jovy88 has quit [Read error: Connection reset by peer]
khismetix has quit [Ping timeout: 252 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest84216
<Spooner> bijumon, It is even clear in the most simple example: https://github.com/Shopify/liquid
jovy88 has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Azulinho has joined #ruby
khismetix has joined #ruby
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
atyz has quit [Quit: Leaving...]
SAUCYSALAMANDER has joined #ruby
t_p has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
filipe_ has joined #ruby
vlad_sta_ has joined #ruby
Alamo777_ has quit [Quit: Leaving]
hamakn has quit [Remote host closed the connection]
edogawaconan has joined #ruby
<edogawaconan> hello
<edogawaconan> I wonder if there's a better way for this (instead of nesting the #{}s) http://0paste.com/366
<edogawaconan> (also, s/prefix/suffix/g
browndawg has joined #ruby
<tobiasvl> maybe something like #{id + "-" + (prefix if prefix.present?)}
<tobiasvl> you can interpolate any code
tealmage has joined #ruby
Alamo777 has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
SAUCYSALAMANDER has quit [Ping timeout: 255 seconds]
<edogawaconan> I need .to_s on that case since + refuses when it's nil
krombr has joined #ruby
<edogawaconan> so it'd be like >>> id + ("-#{suffix} if suffix.present?).to_s
style_ has joined #ruby
<style_> hello
<style_> someone here?
<edogawaconan> *add quote where appropriate
<style_> having problems installing shoes
<style_> error in line 391
<Alamo777> style_, what shoes?
<style_> xD
<edogawaconan> my shoes installed ok
<edogawaconan> (or put on)
mklappstuhl has joined #ruby
<edogawaconan> so, yeah, wondering if there's a better (as in less ugly) way to do it
<Hanmac1> what about: [prefix.present? ? prefix : nil,id,suffix.present? ? suffix : nil].compact.join("-")
Hanmac1 is now known as Hanmac
<edogawaconan> ah
<edogawaconan> sounds good
<style_> fxruby does not work : load such file -- fox16 (LoadError)
<style_> from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
<style_> from fxruby.rb:1:in `<main>'
<edogawaconan> [id, suffix].compact.join("-")
<style_> either shoes or fxruby r working... how to fix that
<edogawaconan> awesome
nettoweb has joined #ruby
mercwithamouth has joined #ruby
<edogawaconan> thanks, Hanmac
mercwith1mouth has joined #ruby
<MrZYX> Hanmac used the .present? mehtod. oO
<MrZYX> that's rails Hanmac!
<MrZYX> :D
cek has quit [Ping timeout: 276 seconds]
<Hanmac> MrZYX: i know, but he dad it in the code
style_ has quit [Remote host closed the connection]
<Hanmac> edogawaconan: beware, could suffix be "" because of rails?
<bijumon> Spooner: hi, I did read it, but if figured it out, i was passing symbols to the hash instead of string, like this site[:title] instead of site["title"], duh!
<edogawaconan> present? check will handle it
<bijumon> Spooner: ty for the reply
<edogawaconan> or presence
<edogawaconan> [id, suffix.presence].compact.join("-")
<Hanmac> edogawaconan: thats why [id, suffix] will not be enough ...
<dawkirst> I'm trying to wrap my head around something fundamental: what determines whther I go with instance methods versus class methods?
<edogawaconan> yeah
<edogawaconan> I got the idea though
<Hanmac> [id, suffix].select(&:present?).join("-")
<edogawaconan> id is guaranteed though
altivec has joined #ruby
<Hanmac> dawkirst: "class methods" are instance methods of the singleton class ;P
cek has joined #ruby
<edogawaconan> I still have lots more to learn
ghr has joined #ruby
wallerdev has joined #ruby
malte_ has joined #ruby
yashshah has joined #ruby
pipewerk has quit [Remote host closed the connection]
browndawg has quit [Read error: Operation timed out]
altivec has quit [Quit: Computer has gone to sleep.]
CocoStorm has quit [Ping timeout: 256 seconds]
Astralum has joined #ruby
syamajala has joined #ruby
akhet has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
yashshah has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Remote host closed the connection]
bluenemo has quit [Quit: Verlassend]
mercwith1mouth has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 276 seconds]
wallerdev has quit [Quit: wallerdev]
peta__ has quit [Quit: peta__]
chile_andes has joined #ruby
a_a_g has quit [Quit: Leaving.]
atyz has joined #ruby
codemonkey010101 has joined #ruby
mark_locklear has joined #ruby
kobain has joined #ruby
enriclluelles has quit [Remote host closed the connection]
ipalaus has quit [Quit: Computer has gone to sleep.]
anonymuse has joined #ruby
yshh has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 260 seconds]
Umren has quit [Remote host closed the connection]
freeayu3 has joined #ruby
m8 has joined #ruby
nari has quit [Ping timeout: 255 seconds]
pcarrier has joined #ruby
dustint has joined #ruby
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
rickruby has joined #ruby
<chile_andes> Hi, I'm having some problems with this.
<chile_andes> I installed selenium-webdriver, this depends on multiple_json, that need json >= 1.7.7.
<chile_andes> Doing "gem list | grep json" gives:
<chile_andes> multi_json (1.7.3)
<chile_andes> json (1.7.7, 1.5.5)
<chile_andes> But if I do: ruby -e "require 'json'; print JSON::VERSION"
dhruvasagar has quit [Ping timeout: 252 seconds]
<chile_andes> I get: 1.5.5
<chile_andes> How can I force to use the 1.7.7 version of json instead of 1.5.5?
bean__ has joined #ruby
bean__ has quit [Max SendQ exceeded]
<MrZYX> easiest way would probably just using bundler...
bean__ has joined #ruby
dhruvasagar has joined #ruby
altivec has joined #ruby
breakingthings has joined #ruby
sambao21 has joined #ruby
thebastl has quit [Remote host closed the connection]
yann_ck has joined #ruby
chichou has quit [Remote host closed the connection]
mixel has quit [Quit: mixel]
anonymuse has quit [Quit: Linkinus - http://linkinus.com]
niceguyjames has joined #ruby
mockra has joined #ruby
ohcibi_ is now known as ohcibi
anonymuse has joined #ruby
falood has quit [Ping timeout: 264 seconds]
falood has joined #ruby
ejnahc has quit [Quit: leaving]
<Hanmac> chile_andes: are you 100% sure that ruby and gem points to the right ruby version?
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
Criztian has joined #ruby
ejnahc has joined #ruby
<chile_andes> Thanks, Finally I used: bundle exec ruby script.rb
<chile_andes> Thanks <MrZYX>, <Hanmac>
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kobain is now known as sambio
sambio has quit [Quit: l'unica verità.. è la morte stessa!]
<Hanmac> maybe you have a different problem (it maybe works without bundler)
sambio has joined #ruby
sambio has quit [Excess Flood]
mockra has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
jan1337z has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
solrize has quit [Ping timeout: 268 seconds]
syamajala has quit [Ping timeout: 248 seconds]
tommyvyo has joined #ruby
mklappstuhl has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
yalue has joined #ruby
kf8a has joined #ruby
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
DaniG2k has joined #ruby
tommyvyo has quit [Quit:]
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
kristofers has joined #ruby
bean__ has joined #ruby
otherj has joined #ruby
dmiller has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
kobain has joined #ruby
chichou has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
hiyakashi has joined #ruby
splittingred has joined #ruby
Faris10 has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
yannis has joined #ruby
julytwilight has joined #ruby
julytwilight has left #ruby [#ruby]
dmiller_ has joined #ruby
pcarrier has quit [Ping timeout: 248 seconds]
syamajala has joined #ruby
monkegji_ has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
alexwh has quit [Ping timeout: 252 seconds]
csaunders has joined #ruby
vlad_starkov has joined #ruby
Faris10 has joined #ruby
alexwh has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
pcarrier has joined #ruby
philcrissman has joined #ruby
monkegjinni has quit [Ping timeout: 268 seconds]
dmiller_ has quit [Ping timeout: 264 seconds]
mixel has joined #ruby
carloslopes has joined #ruby
zmike123 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
adambeynon has joined #ruby
jcromartie has joined #ruby
persand has quit [Quit: persand]
tomzx_mac has joined #ruby
pipewerk has joined #ruby
thebastl has joined #ruby
marcgg has joined #ruby
kil0byte_ has joined #ruby
kidoz has joined #ruby
EPIK has quit [Ping timeout: 255 seconds]
anonymuse has quit [Quit: Leaving...]
Ortuna has quit [Quit: Computer has gone to sleep.]
Ortuna has joined #ruby
browndawg has joined #ruby
kil0byte has quit [Ping timeout: 268 seconds]
marcgg_ has quit [Ping timeout: 264 seconds]
rdxc has joined #ruby
_nitti has joined #ruby
ArchBeOS has joined #ruby
<ArchBeOS> hey guys. hopefully someone can help me here
syamajala has quit [Ping timeout: 272 seconds]
<ArchBeOS> I have a web app which is just a front end for some Front End automation stuff. Basically, if a process is running a lock file is set and a div should change colors to indicate that it is in process
<Hanmac> ArchBeOS: rails?
<ArchBeOS> the problem i am having is that i have no idea how to properly implement that
<ArchBeOS> Hanmac: sinatra
syamajala has joined #ruby
<Hanmac> sinatra has also its own channel #sinatra
<Hanmac> mayve you get faster help there
<ArchBeOS> last i tried to get help there no one spoke for hours
<ArchBeOS> i'll try again.
<MrZYX> I'd just do polling
<MrZYX> one index route to render the page and one route responding with some simple json wheter the lock is set
<MrZYX> and then just update the div with JS
ariedler has joined #ruby
dkannan has quit [Quit: dkannan]
includex has joined #ruby
falood has quit [Remote host closed the connection]
pipewerk is now known as wipework
feedbackloop has quit [Quit: Leaving]
thebastl has quit [Remote host closed the connection]
wipework is now known as busywork
wmoxam has joined #ruby
ariedler has quit [Remote host closed the connection]
iMadper is now known as iMadper|NTR
postmodern has quit [Quit: Leaving]
Lubinski has joined #ruby
_nitti has quit [Read error: No route to host]
codecop has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
dkannan has joined #ruby
enebo has joined #ruby
_nitti has joined #ruby
kpshek has joined #ruby
mixel has quit [Read error: Connection reset by peer]
mljsimone has joined #ruby
thebastl has joined #ruby
soc42 has joined #ruby
chrishunt has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
dkannan has quit [Quit: dkannan]
altamic has joined #ruby
osvico has joined #ruby
thebastl has quit [Remote host closed the connection]
jovy88 has joined #ruby
niklasb has joined #ruby
Azulinho has quit [Ping timeout: 255 seconds]
hiyakashi has quit [Ping timeout: 272 seconds]
yshh has joined #ruby
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
solidoodlesuppor has joined #ruby
mockra has joined #ruby
Alamo777 has quit [Read error: Connection reset by peer]
Alamo777 has joined #ruby
mercwith1mouth has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
dr_neek has joined #ruby
dr_neek has quit [Client Quit]
fermion has joined #ruby
mljsimone has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
_nitti has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
_nitti has joined #ruby
nezumi has quit [Ping timeout: 260 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
ariedler has joined #ruby
yashshah has joined #ruby
marcdel_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
chandankumar has joined #ruby
yshh has quit [Ping timeout: 264 seconds]
mockra has quit [Ping timeout: 276 seconds]
chrishunt has quit [Quit: ZzZzZz...]
alexwh has quit [Ping timeout: 252 seconds]
chandankumar has quit [Max SendQ exceeded]
DarthGandalf has quit [Ping timeout: 252 seconds]
chandankumar has joined #ruby
Asher has quit [Ping timeout: 248 seconds]
chandankumar has quit [Client Quit]
syamajala has quit [Ping timeout: 256 seconds]
kf8a has joined #ruby
kf8a has quit [Client Quit]
alexwh has joined #ruby
sambao21 has joined #ruby
Heero has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
tomzx_mac has quit [Read error: Operation timed out]
chrishunt has joined #ruby
bradhe has joined #ruby
mklappstuhl has joined #ruby
mljsimone has joined #ruby
tommyvyo has joined #ruby
gasbakid has quit [Read error: Operation timed out]
camilasan has quit [Read error: No route to host]
camilasa_ has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> how can I tell Pry to enter library code?
tethra has quit [Remote host closed the connection]
gisli has joined #ruby
akells` has joined #ruby
nettoweb has quit [Quit: nettoweb]
<banister`sleep> platzhirsch: what do u mean
GeissT has quit [Quit: MillBroChat AdIRC User]
lyanchih has joined #ruby
willob has joined #ruby
zph has joined #ruby
zph has quit [Excess Flood]
kf8a has joined #ruby
memborsky has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 276 seconds]
akells` has quit [Remote host closed the connection]
<gisli> if I have ruby version 1.9.3p392 installed is it normal that when I run `bundle install` the system tries to run: "home/gisli/.gem/ruby/1.9.1/cache/bundler/git/veewee-bfb64f32f065c8687b4cd87c127ce0d1adc99c39" --bare --no-hardlinks`"? (ruby 1.9.1)
alexgordon has joined #ruby
<MrZYX> the 1.9.1 in your path is the ABI version, not the interpreter version
v0n has joined #ruby
fmcgeough has joined #ruby
tealmage has quit [Remote host closed the connection]
<platzhirsch> banister`sleep: I am using the pry-debugger plugin and if I use 'step' on a library statement, the code is not entered but skipped
cofin has joined #ruby
<banister`sleep> platzhirsch: is it a C library?
nettoweb has joined #ruby
<banister`sleep> if it's C then it has to be skipped
mpajor_o15 has quit [Remote host closed the connection]
meskyanichi has quit [Quit: Linkinus - http://linkinus.com]
DarthGandalf has joined #ruby
<banister`sleep> platzhirsch: what library code are you trying to step into?
jtharris has joined #ruby
<platzhirsch> banister`sleep: no, Ruby only. But actually it enteres a const_missing method inside activesupport, so maybe the error is with me
<platzhirsch> but I don't get a const missing exception without debugging
<banister`sleep> platzhirsch: i'd have to see the actual code before i can comment
justsee has quit [Ping timeout: 272 seconds]
lyanchih has quit [Quit: lyanchih]
cbizzzzzl3 has joined #ruby
lyanchih has joined #ruby
mmitchell has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
chandankumar has joined #ruby
pcarrier has joined #ruby
<gisli> MrZYX: oh okay. I'm starting to think that my computer is seriously messed up
ffranz has joined #ruby
santana has joined #ruby
niklasb has quit [Ping timeout: 256 seconds]
stringoO has joined #ruby
gasbakid has joined #ruby
cantonic has joined #ruby
hiyakashi has joined #ruby
freerobby has joined #ruby
gasbakid has quit [Max SendQ exceeded]
mpajor_op5 has joined #ruby
gasbakid has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kf8a has quit [Quit: Computer has gone to sleep.]
akells` has joined #ruby
gasbakid has quit [Max SendQ exceeded]
_nitti has quit [Remote host closed the connection]
asteve has joined #ruby
enebo has quit [Quit: enebo]
gasbakid has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
cmarques has joined #ruby
gasbakid has quit [Max SendQ exceeded]
Targen has joined #ruby
gasbakid has joined #ruby
yashshah has joined #ruby
buscon has quit [Quit: Leaving]
_nitti has joined #ruby
failshell has joined #ruby
gasbakid has quit [Max SendQ exceeded]
gasbakid has joined #ruby
d2dchat has joined #ruby
jrajav has joined #ruby
cupakromer has joined #ruby
axl_ has joined #ruby
tealmage has joined #ruby
pyrac has quit [Quit: pyrac]
gasbakid_ has joined #ruby
Davey has joined #ruby
sailias has joined #ruby
tomzx_mac has joined #ruby
ipalaus has joined #ruby
ghr has quit [Quit: Textual IRC Client: www.textualapp.com]
bitZero__ has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
gasbakid has quit [Ping timeout: 272 seconds]
chile_andes has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
yashshah has quit [Ping timeout: 248 seconds]
anonymuse has joined #ruby
niklasb has joined #ruby
vlad_starkov has joined #ruby
yashshah has joined #ruby
`p has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
asteve has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
anderson has joined #ruby
Heero has quit [Read error: Connection reset by peer]
corehook has quit [Ping timeout: 276 seconds]
osvico has quit [Ping timeout: 252 seconds]
jaredrhine_ has quit [Read error: Operation timed out]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zebrarage has joined #ruby
benjammin has joined #ruby
pithagorians has quit [Read error: Operation timed out]
platzhirsch has quit [Quit: Leaving.]
platzhirsch1 has joined #ruby
pithagorians has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
jaredrhine has joined #ruby
paolooo has quit [Quit: Page closed]
asteve has joined #ruby
undersc0re97 has joined #ruby
apeiros has joined #ruby
csexton- is now known as csexton
kobain has quit [Quit: l'unica verità.. è la morte stessa!]
dv_ has quit [Ping timeout: 255 seconds]
clocKwize has quit [Quit: clocKwize]
platzhirsch1 has quit [Quit: Leaving.]
platzhirsch has joined #ruby
akashj87 has joined #ruby
aboudreault has quit [Ping timeout: 264 seconds]
acrussell has joined #ruby
jprovazn has quit [Quit: Leaving]
wsterling has joined #ruby
interactionjaxsn has joined #ruby
migimunz has joined #ruby
<migimunz> Hello, I'd like to construct a range between an an integer and my custom object, like so: 1..SomeClass.new. I wouldn't actually use this to iterate over anything,just need it for a DSL I'm working on
<migimunz> how would I implement that?
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
mockra has joined #ruby
dettoaltrimenti has quit [Ping timeout: 256 seconds]
gasbakid_ has quit [Ping timeout: 276 seconds]
swex has joined #ruby
gasbakid has joined #ruby
<migimunz> tobiasvl, yeah I saw it, but it didn't quite answer my question
<migimunz> I implemented the <=> method for my class
wallerdev has quit [Quit: wallerdev]
nga4 has quit [Ping timeout: 248 seconds]
<migimunz> should be enough to construct a range, right?
kf8a has joined #ruby
atyz has quit [Quit: Leaving...]
theRoUS has quit [Read error: Operation timed out]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Xeago> migimunz: I think you need both <=> and succ
Lubinski has quit [Read error: Connection reset by peer]
<migimunz> hm, says I need succ just for the first element, but I implemented succ aswell
tagrudev has quit [Remote host closed the connection]
<MrZYX> I guess you need to monkeypatch Fixnum#<=> to handle your class
<Xeago> at which point does an int return something comparable to your class
rickruby has quit [Remote host closed the connection]
Lubinski has joined #ruby
Guest48897 has quit [Changing host]
Guest48897 has joined #ruby
<migimunz> hm, yeah
Guest48897 is now known as C0deMaver1ck
swex_ has quit [Ping timeout: 245 seconds]
<Xeago> I also think numerics are handled specially
<migimunz> though I'd also need to do it for floats and strings too
<migimunz> it's a bit of a hacky solution, maybe I should avoid using ranges then
<MrZYX> In other words I'd avoid using a Range if you can
<MrZYX> yeah
<migimunz> too bad though, would make beautiful syntax :P
<MrZYX> just use a 2D array or a simple struct
<Xeago> why do you need a range with 2 different types?
mockra has quit [Ping timeout: 252 seconds]
<migimunz> well I'm playing around with sort of haskell-like function definitions, where you could say
<migimunz> let foo([1, 2 .. rest], b)
filipe_ has quit [Quit: Leaving]
<migimunz> and when you call it, it'd pattern match those, and bind the rest of the array to 'rest'
blandflakes has joined #ruby
freerobby has quit [Quit: Leaving.]
aboudreault has joined #ruby
freerobby has joined #ruby
dettoaltrimenti has joined #ruby
johnnyfuchs has joined #ruby
<migimunz> this, for example, works as expected: http://pastie.org/7827063
bubu has joined #ruby
<bubu> hey guys, prob an easy one but can anybody help with this? https://gist.github.com/joshmyers/ca18a753f3b803cb2dc3
<migimunz> obviously, all of this is for fun, but I'd like to be able to emulate pattern matching features from haskell and such
<MrZYX> almost there already :P
<migimunz> MrZYX: true :P
LennyLinux has quit [Remote host closed the connection]
huoxito has joined #ruby
<apeiros> bubu: it's usually a good idea to include a short description on irc already instead of relying on gist. elaborating the issue on gist is fine, though.
bradhe has joined #ruby
<bubu> oki
kemist has joined #ruby
ananthakumaran has joined #ruby
<apeiros> bubu: you can have multiple where's
backjlack has quit [Read error: Connection reset by peer]
<apeiros> either Device.where(:state => 'terminated', :updated_at => 1.month.ago)
backjlack has joined #ruby
<apeiros> or Device.where(:state => 'terminated').where(:updated_at => 1.month.ago)
<bubu> ooo
r0bgleeson has quit [Ping timeout: 252 seconds]
<apeiros> but I doubt that :updated_at => 1.month.ago will make you happy
<apeiros> it will check for equality
kemist has quit [Remote host closed the connection]
<bubu> whats equality? :)
<Xeago> 1==1
<bubu> i have required active_support/core_ext
<bubu> ah literally eh
<apeiros> bubu: get a dictionary :-p
<bubu> ;P
<waxjar> migimunz, that's pretty cool!
Asher has joined #ruby
<Kovensky> 1===1 is more equal than 1==1
teclator has quit [Ping timeout: 260 seconds]
<apeiros> Kovensky: this is not php or js
<waxjar> wish Ruby had pattern matching out of the box :p
jcromartie has quit [Ping timeout: 272 seconds]
<Kovensky> apeiros: but it has more equal!!
<apeiros> it has ===, it does not mean more equal.
<bubu> apeiros, i want like > 1.month.ago
<apeiros> bubu: you want a bit of sql then.
<bubu> Device.where(:state => 'terminated', :updated_at => > 1.month.ago)
<bubu> assume that wont work
<apeiros> where("updated_at > ?", 1.month.ago)
<apeiros> no, yours won't work.
<bubu> ok
nettoweb has quit [Quit: nettoweb]
monkegjinni has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 252 seconds]
<bubu> muchos gracias
<migimunz> waxjar: thanks!
dmiller has joined #ruby
LennyLinux has joined #ruby
Al__ has quit [Quit: Al__]
tethra has joined #ruby
jcromartie has joined #ruby
robbyoconnor has joined #ruby
kf8a has quit [Ping timeout: 252 seconds]
<waxjar> migimunz: a hash-y syntax would look a little prettier maybe, dunno if that'd be possible: let derp(:a => Numeric, :b => Numeric, 1)
dr_neek has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<platzhirsch> if there is a name collision in attributes/methods with class method definition and definition through 'include', does include have higher precedence?
<injekt> platzhirsch: try it
v0n has quit [Ping timeout: 268 seconds]
mneorr_ has joined #ruby
<platzhirsch> injekt: that's what I have experienced, any way to change that?
mikepack has joined #ruby
wallerdev has joined #ruby
marcdel_ has joined #ruby
<migimunz> waxjar: the thing is, you can actually use more than one predicate inside [], like b[Numeric, 1..3] etc
<waxjar> include shouldn't touch class methods, right?
<waxjar> migimunz: :b => [Numeric, 1..3] :)
<migimunz> seems a bit verbose though, doesn't it :D ?
<injekt> platzhirsch: what version of ruby are you using?
<platzhirsch> injekt: 2.0
<injekt> platzhirsch: Module#prepend
stoic_squirrel has joined #ruby
<waxjar> migimunz, perhaps. don't think there is a way that's not so verbose in Ruby. oh well, cool project :)
<migimunz> also you can do let foo(a[1..3] | a[-3..-1]) to match either of those
Ortuna has quit [Quit: Computer has gone to sleep.]
<migimunz> thanks!
<migimunz> hm, looking for a nice looking identifier that might signify "hey, I'm soaking up arguments"
mneorr has quit [Ping timeout: 260 seconds]
<migimunz> because I can't overload | either because who knows what might be on the left side, and I can't use unary *
agarie_ has joined #ruby
kf8a has joined #ruby
nettoweb has joined #ruby
<MrZYX> array perhaps? [args]
dmiller has quit [Remote host closed the connection]
scottmey has joined #ruby
dmiller has joined #ruby
agarie has quit [Ping timeout: 276 seconds]
<migimunz> hm, but then I'd have a problem when matching nested arrays like this: [a, b, [c, d], e, f]
<migimunz> the range solution would be perfect though, it would look like this: [a, b .. c]
<migimunz> oh I love abusing ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
kidoz has quit [Quit: Ухожу я от вас]
Ortuna has joined #ruby
skattyadz has quit [Quit: skattyadz]
nettoweb has quit [Client Quit]
theRoUS has quit [Ping timeout: 264 seconds]
<MrZYX> a bit verbose maybe, but stabby lambda: [a, b -> {c}], not sure if possible
<migimunz> hm, could be
<migimunz> eventually, I could just do [a, b, soak(c)], but it wouldn't be as fun or pretty
<migimunz> or [a, b, !c]
<ppppaul> anyone here use the emacs?
<MrZYX> you could use * if you leave of the comma
mikepack has quit [Remote host closed the connection]
dmiller_ has joined #ruby
<migimunz> could I ? as in [1, 2 *c] ?
dmiller has quit [Ping timeout: 256 seconds]
<migimunz> wouldn't that try to call 2.*(c) ?
<MrZYX> hm, yeah, you'd need to monkey patch core again :D
platzhirsch has left #ruby [#ruby]
<migimunz> yeah, doesn't sound like a good idea to patch the core :D
<migimunz> well, if only everything called super when it didn't know how to <=> on an object, I could just monkey patch Object
<migimunz> but they don't
wedgex has joined #ruby
kil0byte has joined #ruby
w400z has joined #ruby
v0n has joined #ruby
<MrZYX> hm, prefix with _ or __? [1, 2, __c]
mafolz has quit [Ping timeout: 272 seconds]
<migimunz> yep, could do that
<migimunz> or make it c! or c?
<migimunz> those are valid too
<apeiros> hurray! I'm a snake!
<apeiros> my skin comes off in huge chunks…
<MrZYX> I'd rather expect c? being a shortcut for c[Boolean] though
kil0byte_ has quit [Ping timeout: 272 seconds]
<migimunz> that is true
yusup has joined #ruby
<migimunz> but as you mentioned, I could just use a hash as the last arg, like this: [a, b => c]
<migimunz> so c would collect the rest
dmiller_ has quit [Remote host closed the connection]
dmiller has joined #ruby
mikepack has joined #ruby
banister`sleep is now known as banister`shop
krombr has quit [Quit: krombr]
<migimunz> well, thanks for the good ideas, MrZYX and waxjar
Al__ has joined #ruby
markalanevans has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
bradhe has joined #ruby
aganov has quit [Remote host closed the connection]
gkunno has joined #ruby
syamajala has joined #ruby
baroquebobcat has joined #ruby
_maes_ has joined #ruby
camilasa_ has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Al__ has quit [Client Quit]
janjos has quit [Quit: Konversation terminated!]
bradhe has quit [Ping timeout: 256 seconds]
wsterling has quit [Read error: Connection reset by peer]
_maes_ has quit [Read error: Connection reset by peer]
paulcc has joined #ruby
ravster has joined #ruby
wsterling has joined #ruby
skattyadz has joined #ruby
frem has joined #ruby
djwonk has quit [Quit: djwonk]
frem has quit [Max SendQ exceeded]
s0ber has quit [Remote host closed the connection]
memborsky has quit [Quit: brb]
memborsky has joined #ruby
djwonk has joined #ruby
djwonk has quit [Client Quit]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Groknor has joined #ruby
fryguy has quit [Read error: Connection reset by peer]
<Groknor> quick question that's probably easy to look up but I'm just playing around so I hope no one minds
w400z has quit []
<Groknor> does putting a ! in front of a parenthesized || operator create a XOR operator
<Groknor> or am I just confused
fryguy has joined #ruby
scottmey has quit [Quit: scottmey]
<Groknor> i.e. !(false || true)
carloslopes has quit [Remote host closed the connection]
<DaniG2k> it returns false thats for sure
headius has joined #ruby
<Groknor> I'm asking a more generic question; that was just an example
<apeiros> no, !(a or b) is not the same as a xor b
enebo has joined #ruby
<DaniG2k> im not sure but its an interesting question
noop has quit [Ping timeout: 272 seconds]
s0ber has joined #ruby
ffranz has quit [Excess Flood]
<apeiros> you can write out the truth table if that helps you.
malte_ has quit [Quit: malte_]
supergiantrobot has joined #ruby
cofin has quit [Ping timeout: 268 seconds]
Guedes has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
ckrailo has joined #ruby
yusup has quit [Ping timeout: 248 seconds]
mawueli has joined #ruby
mawueli is now known as Guest66787
<Groknor> I totally forgot how to write truth tables. anyway it's not important I guess
codecop has joined #ruby
tspike has joined #ruby
<mljsimone> a b or !
cofin has joined #ruby
<MrZYX> >> 0^1 == (!(true || false) ? 1 : 0)
<eval-in> MrZYX => false (http://eval.in/25383)
headius_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
headius has quit [Ping timeout: 256 seconds]
headius_ is now known as headius
mockra has joined #ruby
Groknor has left #ruby [#ruby]
markalanevans has quit [Quit: markalanevans]
codespec_ has quit [Quit: Computer has gone to sleep.]
benjammin has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
banjara has joined #ruby
cofin has quit [Client Quit]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
yusup has joined #ruby
rton has joined #ruby
nimor has quit [Quit: Leaving]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mikecmpbll has joined #ruby
tealmage has joined #ruby
nimor has joined #ruby
scottmey has joined #ruby
ananthakumaran has quit [Ping timeout: 276 seconds]
tealmage has quit [Remote host closed the connection]
<apeiros> o0
<apeiros> how can one forget how to write a truth table?
<apeiros> curious
altamic has quit [Quit: altamic]
mockra has quit [Ping timeout: 252 seconds]
sleetdrop has joined #ruby
pithagorians has quit [Ping timeout: 256 seconds]
<mljsimone> >> [5^145, (5 & ~145) | ((~5) & 145)]
<eval-in> mljsimone => [148, 148] (http://eval.in/25386)
mailo has joined #ruby
jgrevich has joined #ruby
<ppppaul> how do you guys compare ruby to diamond?
anderson has quit [Remote host closed the connection]
pduin has quit [Remote host closed the connection]
dmiller has joined #ruby
<santana> url for diamond please?
cofin has joined #ruby
cr3 has joined #ruby
<cr3> for some reason, rescue => e doesn't seem to be catching compile errors :(
<MrZYX> I think that's intended
hiroyuki has joined #ruby
tjbiddle has joined #ruby
<wmoxam> ppppaul: Rubies are redder
<hoelzro> cr3: what do you mean?
<hoelzro> do you have some example code?
<cr3> MrZYX: indeed, I'm suppose to rescue SyntaxError
<wmoxam> ppppaul: and diamonds are forever
yusup has quit [Ping timeout: 264 seconds]
<MrZYX> "By default StandardError and its subclasses are rescued"
jovy88 has quit [Read error: Connection reset by peer]
dross_ is now known as dross
jovy88 has joined #ruby
generali_ has joined #ruby
davedev24 has joined #ruby
soc42 has quit [Remote host closed the connection]
<ppppaul> my ruby has a bit of vomit on it, making it a bit off-red
<ppppaul> diamonds are also red... like, those blood diamonds
<ppppaul> i need to get some blood diamonds
<ppppaul> they sound sexy
<TTilus> cr3: rescue SyntaxError => e
arya has quit [Ping timeout: 256 seconds]
<ppppaul> can anyone here tell me if it's possible to get a jruby repl open in emacs?
<ppppaul> i'm googling for this and i'm coming up blank
kristofers has quit [Read error: Connection reset by peer]
* ppppaul ruby noob, but i'm a pro at wearing socks
banjara has quit [Quit: Leaving.]
santana has quit [Quit: Saliendo]
machuga is now known as zz_machuga
troessner has quit [Quit: Leaving]
BizarreCake has joined #ruby
codespectator has joined #ruby
<ppppaul> i found the ruby repl... M-x run-ruby
kristofers has joined #ruby
<ppppaul> this still isn't jruby, though
<ppppaul> so i am sad
Neomex has joined #ruby
<interactionjaxsn> ppppaul: pry?
<ppppaul> pry?
<interactionjaxsn> ppppaul: pry
<havenwood> yay Pry!
alx- has joined #ruby
rton has left #ruby [#ruby]
iMadper|NTR has quit [Read error: Operation timed out]
<ppppaul> how do i inspect an obj thingy in ruby?
<interactionjaxsn> ppppaul: obj.inspect
<ppppaul> i am using hamster, and i want to figure out what i can do with it without reading the documentation
Neomex has quit [Client Quit]
<wmoxam> obj.inspect
<ppppaul> oh, it looks like i don't have hamster loaded
ipalaus has quit [Quit: Computer has gone to sleep.]
<interactionjaxsn> ppppaul: you can get a good look at a t-bone steak by putting your head up a cows ass but i'd read the documentation
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<ppppaul> i did `require 'hamster'`
<ppppaul> it returned true
<ppppaul> what does that mean?
<interactionjaxsn> ppppaul: that your require was successful.
rudisimo has joined #ruby
<ppppaul> does this put some objects on my scope?
sander^work has quit [Ping timeout: 246 seconds]
<ppppaul> when i type `hamster` i get an error
ravster has left #ruby [#ruby]
bradhe has joined #ruby
<ppppaul> undefined local var
<ppppaul> (doing everything in the repl)
<interactionjaxsn> ppppaul: what about Hamster
undersc0re97 has quit [Read error: Connection reset by peer]
<ppppaul> that seems to exist
Akuma has quit [Ping timeout: 255 seconds]
vlad_starkov has quit [Remote host closed the connection]
<ppppaul> when i do Hamster.inspect -> "Hamster"
justsee has quit [Ping timeout: 256 seconds]
<ppppaul> i'm looking up pry, thanks
hiyakashi has quit [Ping timeout: 248 seconds]
danslo has quit [Quit: danslo]
<interactionjaxsn> ppppaul: pry will let you navigate the code like a file system. it's awesome
interactionjaxsn has quit [Remote host closed the connection]
corehook has joined #ruby
<ppppaul> that sounds nice
mljsimone has quit [Ping timeout: 256 seconds]
cantonic has quit [Quit: cantonic]
interactionjaxsn has joined #ruby
yannis has quit [Quit: yannis]
<ppppaul> since i don't think i'll be able to read ruby source for a while
Bry8Star has quit [Ping timeout: 276 seconds]
DrCode has quit [Excess Flood]
<ppppaul> pry work with jruby or emacs?
carloslopes has joined #ruby
undersc0re97 has joined #ruby
<TTilus> both
<ppppaul> i see :D
rangle has joined #ruby
marcgg_ has joined #ruby
<ppppaul> is it sane for me to remove ruby and try to get my system to only ever use jruby?
lmf40 has quit [Remote host closed the connection]
<TTilus> no particular integration to emacs tho, just shell to it
marcgg has quit [Ping timeout: 252 seconds]
<undersc0re97> ppppaul: you're insane
<Hanmac> there are some things you cant do with jruby ...
<ppppaul> like?
danman has joined #ruby
<TTilus> ppppaul: why would you want to limit yourself that way?
<ppppaul> i'm a masochist
DrCode has joined #ruby
<TTilus> oh, i see
atyz has joined #ruby
h8R has quit [Ping timeout: 245 seconds]
<ppppaul> but, seriously i would like to keep things simple
<ppppaul> production is with jruby
freeayu3 has quit [Remote host closed the connection]
<ppppaul> my background is JS and Clojure
<Hanmac> ppppaul: jruby does not work with my C++ extensions ... i have many cool stuff for them
<ppppaul> so, i may be a bit off compared to the general rubist
markalanevans has joined #ruby
<ppppaul> Hanmac, that's ok... i wouldn't be able to use those for my production app anyway.
interactionjaxsn has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<ppppaul> if they are super duper cool i could write clojure ports
freerobby has quit [Quit: Leaving.]
includex has quit [Quit: Leaving...]
tjbiddle has quit [Quit: tjbiddle]
<TTilus> jruby is not a bad choise at all
gasbakid has quit [Remote host closed the connection]
<havenwood> JRuby is nice. Best lang on the JVM! :P
<Hanmac> i can use them for GPU accelerated 3d rendering
<ppppaul> there are Java libs with GPU stuff
<ppppaul> my shit is on heroku, so that's not even an option fo rme
_huoxito has joined #ruby
<havenwood> ppppaul: You prefer Closure to Scala?
Bry8Star has joined #ruby
<ppppaul> clojure > scala
<havenwood> lolroku
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
<Hanmac> havenwood: thats not so difficult, its like the best fly in a pile of dung ;P
j^2 has joined #ruby
dv_ has joined #ruby
<ppppaul> scala takes a fuck load of discipline to write good code.
mljsimone has joined #ruby
mikepack has quit [Remote host closed the connection]
solrize has joined #ruby
icole has joined #ruby
adit has joined #ruby
thetristan has joined #ruby
chrishough has joined #ruby
adit is now known as Guest58881
arya has joined #ruby
<havenwood> Just remember that the JVM is one commit away from becoming SkyNet and killing us all...
carloslopes has quit [Read error: No route to host]
_carloslopes has joined #ruby
<ppppaul> which one?
dmerrick has joined #ruby
mikepack has joined #ruby
<ppppaul> JVM had many babies
JMcAfreak has joined #ruby
<TTilus> havenwood: i thought emacs was...
<ppppaul> ibm has one, zing has one, there is some gnu one
mikepack has quit [Remote host closed the connection]
_Amaan has joined #ruby
<ppppaul> s/zing/azul
huoxito has quit [Ping timeout: 256 seconds]
ilpuccio has quit [Quit: This computer has gone to sleep]
<Hanmac> ppppaul: i can use ogre3d with ruby ... with an very HIGH frame rate
mikepack has joined #ruby
<ppppaul> ruby or jruby?
<ppppaul> also, in either case i don't get it
Akuma has joined #ruby
<ppppaul> what is ruby's role in ogre?
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
<jcromartie> is there a Ruby equivalend to Clojure et al's "if-let" or "when-let"
<ppppaul> Hanmac, i have a graphics programming background as well (C++ + openGL, java + lwjgl)
<jcromartie> ppppaul: how do you like Java + LWJGL?
icecandy has joined #ruby
<ppppaul> does ruby have let?... let is important in clojure, but in ruby???
bobbyz has quit [Ping timeout: 264 seconds]
<ppppaul> i don't like java anymore, but with graphics programming i'm not fighting with the language much... lwjgl was awesome when i used it many many years ago
<headius> ppppaul: it may go without saying, but obviously startup time is a bitch for jruby...we want to fix it, but we're limited in how much we can do
<jcromartie> I just want to use the result of an expression only when it's non-nil
<Hanmac> ppppaul: ruby with MRI
pyrac has joined #ruby
<headius> it degraded quite a bit in 1.7 timeframe, but I think we can get a lot of that back
chile_andes has quit [Quit: Textual IRC Client: www.textualapp.com]
<jcromartie> vs. x = y; if x then ...
<ppppaul> startup time is a bitch with jvm... i use drip and it's still a problem
<jcromartie> if x = y then ...
style_ has joined #ruby
<style_> hello
<jcromartie> that triggers a warning
thebastl has joined #ruby
<ppppaul> jcromartie, that sounds nice
<style_> i need gui support for ruby and need assistence for getting one gui framework up, either shoes or fxruby is working....
<ppppaul> would making something like if-let in ruby be hard?
blf has joined #ruby
yann_ck has quit [Quit: Computer has gone to sleep.]
h8R has joined #ruby
<jcromartie> ppppaul, not at all
pothibo has joined #ruby
<headius> ppppaul: how's drip working out for you? it's still the most promising potential for reducing startup substantially
<Hanmac> jcromartie: it does not for me
zz_machuga is now known as machuga
<headius> it has some rough edges, but getting your own new JVM every time makes it much more viable than e.g. nailgun
thebastl has quit [Remote host closed the connection]
<ppppaul> headius, i use it with clojure... just for running tests... it saves a second or something, not even noticable
<headius> I believe more recent drip master allows you to set up a few instances in the pipeline so you don't starve available instances
<headius> mmm
<headius> yeah for JRuby we have some built-in drip support to pre-boot the JRuby runtime and attempt to warm it up
<headius> that can trim off a lot of the base cost
Akuma0n3 has joined #ruby
mahmoudimus has joined #ruby
<jcromartie> I can add when_truthy do |val|
<headius> DRIP_CLASS=org.jruby.main.DripMain DRIP_CLASS_INIT=""
<headius> I think you need both
dankest has joined #ruby
dankest has quit [Excess Flood]
<headius> but it will keep a JVM + jruby warm
<headius> not positive on those env names
<TTilus> ppppaul: sometimes second is a long time
<headius> if drip isn't pre-booting anything then you're only saving base JVM cost and code loading, which are already pretty fast
danman has quit [Quit: danman]
bobbyz has joined #ruby
<ppppaul> TTilus, i know... that's why i do all my code in a repl
d11wtq has joined #ruby
Akuma has quit [Ping timeout: 276 seconds]
<headius> jvm + loading JRuby bits only takes like 0.1s, but setting up the ruby runtime takes another 1s+
_nitti has quit [Ping timeout: 264 seconds]
akells` has quit [Remote host closed the connection]
nettoweb has joined #ruby
<headius> you can also specify a dripmain.rb in cwd that has something to pre-load, like config/environment.rb or something
<headius> we're trying :-)
<Spooner> style_, What is your problem with guis? Both work, as far as I know (and I've used wxwidgets recently).
<Spooner> *wxruby
<TTilus> headius: never got around to narrowing down that method definition slowness (long time ago) but its gone with 1.7
_huoxito has quit [Quit: Leaving]
<headius> that's good
<TTilus> headius: ...now that i remember not mentioning about it to you
r0bgleeson has joined #ruby
freerobby has joined #ruby
<jcromartie> seems like this might already exist? https://gist.github.com/jcromartie/5555463
Voodoofish430 has joined #ruby
style_ has quit [Ping timeout: 264 seconds]
<ppppaul> anyone use hamster here?
_nitti has joined #ruby
zeade has joined #ruby
madb055 has joined #ruby
<ppppaul> nice jcromartie
<ppppaul> now if-let
Akuma0n3 has quit [Read error: Operation timed out]
mark_locklear has quit [Quit: Leaving]
DaniG2k has quit [Quit: Leaving.]
stringoO has quit [Quit: stringoO]
tylersmi_ has quit [Remote host closed the connection]
jzig has joined #ruby
<Spooner> What is the point of "x.when_let { y }" when you can do "y if x". If-let doesn't really work since you can't really have two blocks easily.
<jcromartie> ppppaul, you'd have to pass two blocks
<ppppaul> jcromartie, my ruby = 0
<ppppaul> how is jruby java interop?
<Spooner> Or you could do "x and y" as well (for the same effect).
<jcromartie> Spooner: the point is x.some_method.when_let { |result| result.do_something }
<ppppaul> i'm wondering how easy it would be for me to do some stuff with clojure
vlad_starkov has joined #ruby
<jcromartie> Spooner: I could do x = y and x.do_something but that leaves x in the scope, which I don't need
vlad_starkov has quit [Read error: Connection reset by peer]
<jcromartie> ppppaul: if you're already using Java, then very easy
<jcromartie> Spooner: that is: result = x.some_method and result.do_something;
<jcromartie> so yeah, that's probably better
<Spooner> jcromartie, I believe andand gem provides the same functionality as that ("x.some_method.andand.do_something").
<jcromartie> ah
<ppppaul> :D
<jcromartie> nice!
dsabanin has joined #ruby
<blf> When unit testing, is it generally considered useful or overkill to test the different combinations of test expectations? (not exactly sure how to word this). I have constructed a short gist which I hope demonstrates my concern: https://gist.github.com/anonymous/5555491
<Spooner> Called and and because it is doing the equivalent of: x = y.meth1 && x.meth2 behind the scenes.
timkohrumel has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
kil0byte has quit [Remote host closed the connection]
baba has joined #ruby
<headius> ppppaul: I have played with hamster...would like to see it get wider use (and opto)
noname001 has quit [Remote host closed the connection]
megha has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
paulcc has quit [Quit: No Ping reply in 180 seconds.]
paulcc has joined #ruby
<Spooner> blf, I'd say you should probably test the latter two cases and not worry about the first (both fail). You also don't need to refute the verify, since it will raise if it fails (and, the framework should call that for you).
<ppppaul> anyone use stunted?
timkohrumel has left #ruby [#ruby]
emmanuelux has joined #ruby
dettoaltrimenti has quit [Ping timeout: 264 seconds]
rickmasta has quit [Read error: Connection reset by peer]
Akuma0n3 has joined #ruby
<blf> Spooner: Okay. That seems reasonable. I was initially thinking that testing all possible cases (including the first) would lead to a nightmare in maintainability as the number of conditions increased, but I can see that with your approach adding a condition only adds one extra check. Thanks :)
mockra has joined #ruby
rickmasta has joined #ruby
nga4 has joined #ruby
dettoaltrimenti has joined #ruby
aknewhope has joined #ruby
aknewhope has quit [Changing host]
aknewhope has joined #ruby
brandon has quit [Ping timeout: 256 seconds]
tealmage has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
heril has joined #ruby
flagg0204 has quit [Quit: leaving]
flagg0204 has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
zastern_ has joined #ruby
paulcc has quit [Quit: No Ping reply in 180 seconds.]
mockra has joined #ruby
corehook has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
paulcc has joined #ruby
My_Hearing is now known as Mon_Ouie
jamie_ca_ has joined #ruby
Ripp__ has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
zastern has quit [Read error: Operation timed out]
Ripp__ has quit [Client Quit]
hiroyuki has joined #ruby
bradhe has quit [Remote host closed the connection]
niklasb has quit [Read error: Operation timed out]
tjbiddle has joined #ruby
atyz has quit [Quit: Leaving...]
nwertman has joined #ruby
zastern_ has quit [Remote host closed the connection]
dankest has joined #ruby
zastern has joined #ruby
brianpWins has joined #ruby
<icecandy> hey guys, whats the difference between single and double quotes?
<Spooner> icecandy, doubles perform interpolation "I like #{pie}" ' don't.
<icecandy> sorry i'm new to programming, what does interpolation means?
aknewhope has quit [Quit: Leaving]
Azulinho has joined #ruby
<Spooner> pie = 5; puts "I like #{pie}" # This will print: I like 5
pothibo has quit [Quit: pothibo]
<icecandy> can i say that interpolation is related to manipulating strings?
corehook has joined #ruby
Akuma0n3 has quit [Ping timeout: 276 seconds]
zebrarage has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<Spooner> Not entirely. It is more about building strings using expressions. (You could use "I like #{pie * 10}" too).
<blf> icecandy: http://www.google.com/#hl=en&sclient=psy-ab&q=define:+interpolatin&oq=define:+interpolatin&gs_l=hp.3..0l4.736.3557.0.3675.22.19.1.0.0.0.284.2316.6j11j1.18.0...0.0...1c.1.12.psy-ab.ZOqVjgbKKYQ&pbx=1&bav=on.2,or.r_qf.&bvm=bv.46340616,d.aWc&fp=6fb67b1e00102f68&biw=1717&bih=831
`p has joined #ruby
brtdv has joined #ruby
bradhe has joined #ruby
nhhagen_ has joined #ruby
tootubular has joined #ruby
<Spooner> icecandy, You might like to read this if you are new to programming and Ruby: http://it-ebooks.info/book/36/ (free ebook and online versions).
huoxito has joined #ruby
d11wtq has quit [Ping timeout: 252 seconds]
thomasle_ has joined #ruby
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
<icecandy> Spooner: cool..thanks...currently i'm reading ruby the hardway and http://www.codecademy.com/tracks/ruby
<icecandy> someone also told me to read The Well-Grounded Rubyist
popework is now known as epochwolf
freerobby has quit [Quit: Leaving.]
gisli has quit [Quit: Page closed]
kiri has quit [Read error: Operation timed out]
nhhagen_ has quit [Ping timeout: 256 seconds]
kiri has joined #ruby
jdunck has joined #ruby
apok has joined #ruby
PhilG has joined #ruby
pskosinski has quit [Ping timeout: 272 seconds]
krainboltgreene has joined #ruby
pyrac has quit [Quit: pyrac]
adambeynon has quit [Quit: Computer has gone to sleep.]
Zeev has quit [Disconnected by services]
icecandy has quit [Remote host closed the connection]
Zeev has joined #ruby
enebo has quit [Quit: enebo]
hakunin has quit [Remote host closed the connection]
jigar_ has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
bradhe has quit [Remote host closed the connection]
bricker`LA has quit [Read error: Connection reset by peer]
forlin has quit [Remote host closed the connection]
mityaz has joined #ruby
nga4 has quit [Ping timeout: 252 seconds]
mailo has quit [Quit: Linkinus - http://linkinus.com]
<ppppaul> what does & mean?
blaxter has quit [Ping timeout: 252 seconds]
<MrZYX> context?
<ppppaul> counters.put(:odds, &:next) # => {:odds => 1, :evens => 0}
<MrZYX> in this context & converts a proc to a block and passes it to the method, additionally it calls .to_proc on the argument before that
twoism has joined #ruby
<ppppaul> ok
tootubular has left #ruby [#ruby]
<canton7> converts a symbol to a proc, surely?
<ppppaul> is :next some sort of special thing?
Sel has joined #ruby
<canton7> ruby has both :symboles and "strings"
alvaro_o has joined #ruby
<ppppaul> i understand symbols
<ppppaul> (clojure background)
<canton7> *symbols
<canton7> :next is a symbol
<ppppaul> :next looks like a keyword to me
zmike123 has quit [Ping timeout: 248 seconds]
<MrZYX> what's counters? array?
tylersmith has joined #ruby
<ppppaul> it's a hashmap
<canton7> &:next is shorthand for :next.to_proc, which creates a proc that's equivalent to calling #next
alvaro_o has quit [Read error: Connection reset by peer]
<ppppaul> updating :odds value
curtis has joined #ruby
Ripp__ has joined #ruby
<ppppaul> next(1) isn't working for me
jdunck has quit [Quit: Computer has gone to sleep.]
pyrac has joined #ruby
<MrZYX> canton7: no, & converts a proc to a block, .map(:to_s.to_proc) and .map(&:to_s) are not equivalent
Ripp__ has quit [Client Quit]
<ppppaul> ok
<MrZYX> hmm I see no put method in core
<ppppaul> i want to use next in isolation
* ppppaul got no rubies experiences right now
scottmey has quit [Quit: scottmey]
tspike_ has joined #ruby
jigar_ has quit [Quit: Page closed]
<ppppaul> 1.next is correct usage?
<Spooner> ppppaul, counters.put(:odds, &:next) is the shorthand for: counters.put(:odds) {|x| x.next }
<ppppaul> i see
Akuma has joined #ruby
<Sel> can someone tell me how to make this work https://gist.github.com/anonymous/a056ac364c395e263bf9
<ppppaul> woah, it's been so long for me since doing oop stuff
Yakko has joined #ruby
pitzips has joined #ruby
<Spooner> ppppaul, Integer#succ is core Ruby, so 1.succ == 2 - the method "next" isn't standard.
roadt_ has quit [Ping timeout: 272 seconds]
<MrZYX> actually Integer#next is defined
<canton7> Sel, what on earth is selected?
<MrZYX> String#next too
kil0byte has joined #ruby
<Sel> it is another hash created by sequel
<MrZYX> and Symbol#next Enumerator#next
tspike has quit [Ping timeout: 256 seconds]
<Spooner> MrZYX, Oh, I never noticed. Yeah, seems to do the same thing as succ. next is a keyword, so is probably less readable as a method name.
PhilG has quit [Remote host closed the connection]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<canton7> Sel, there isn't nearly enough information there to help you
<ppppaul> i've been helped
ehaliewicz has joined #ruby
<MrZYX> hm yeah, there isn't a Enumerator#succ though
<ppppaul> i'm not trying to solve a problem, just increasing my knowledge of how to do shit in ruby
<Sel> canton7 the only thing that is really missing is the selected hash
<canton7> ppppaul, that was directed at Sel..
zmike123 has joined #ruby
<ppppaul> oops
<canton7> Sel, and you haven't said what 'works' and 'not work' mean
pskosinski has joined #ruby
cofin has quit [Quit: cofin]
<Sel> canton7 its in the comments where it says #this works... etc
PhilG has joined #ruby
<Spooner> Sel don't use for. It is horrid and un-Rubyish. Use options.each do |key, value|
<Sel> spooner, yes sir will do, i do not think this will fix my problem though
<canton7> Sel, what are you trying to do? If selected = {:option => 'something'}, then selected[:option] will print 'something'. Is that works or not work? You see?
<Spooner> It isn't clear what your problem is though, as people have poitned out.
kf8a has quit [Quit: Computer has gone to sleep.]
<MrZYX> Sel: your problem is a fundamental misunderstanding about what are Strings, Symbols and hashes, read some beginner introductions about those
_musl_ has quit [Quit: WeeChat 0.4.0]
<PhilG> argh I want to program, but I friggin don't know what I should/could do -.-
tealmage has joined #ruby
<Spooner> PhilG, Make an application that sorts giraffes by number of spots.
musl has joined #ruby
<canton7> PhilG, write the server and client for a network-based game of tic-tac-toe that you and your buddy can play
philcrissman has quit [Remote host closed the connection]
jdunck has joined #ruby
tealmage has quit [Remote host closed the connection]
<canton7> write something to tell you when the next episode of <insert sitcom> is on. Make it remind you.
<MrZYX> PhilG: write a program that uses markov chain to generate new project ideas
<canton7> heh
<Spooner> Most people's problem is too many projects and too little time...
snrobot has joined #ruby
<MrZYX> ;D
hiroyuki has quit [Remote host closed the connection]
<canton7> write something that'll tell you how long it will take to drive to work that morning
<snrobot> Hi, any zeus experts around?
rupee has joined #ruby
banjara has joined #ruby
dhruvasagar has joined #ruby
sleetdrop has quit [Quit: Textual IRC Client: www.textualapp.com]
PhilG has quit [Remote host closed the connection]
philcrissman has joined #ruby
dwon has joined #ruby
theRoUS has joined #ruby
<ppppaul> hey guys. i have need of your help to make my brain rubized.
Guest58881 has quit [Remote host closed the connection]
<ppppaul> trying to do simple hashmap stuff, it's throwing errors
<ppppaul> i know it's a syntax thing, could use your help to correct my errors :)
<blf> Okay, I've hit a roadblock. mock.expect(:respond_to?, true, [:eof?]) does not work as expected. Is there any way to create a mock such that I can simulate sending the respond_to? message to an actual object?
<MrZYX> ppppaul: the outer () should be {}
<Sel> MrZYX, so the problem is that I'm trying to use a string as a symbol right?
interactionjaxsn has joined #ruby
<MrZYX> ppppaul: wait, actually just get rid of the outer parens and drop the space before the inner ones
ballmer has quit [Read error: Operation timed out]
<MrZYX> a.put Hamster.hash(3 => 3), 3
Davey has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby
<ppppaul> thanks
<ppppaul> woah... syntax hurts
<ppppaul> whitespace matters for function calls?
<MrZYX> yup
<ppppaul> hash() != hash ()?
<MrZYX> not inside another method call
<MrZYX> well the later one would be hash(())
<ppppaul> um
<ppppaul> i'll just refer to this gist when i run into this problem again :)
rdark has quit [Quit: leaving]
paulcc has quit [Ping timeout: 256 seconds]
Ripp__ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dr_neek has quit [Ping timeout: 252 seconds]
codespectator has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
engel has quit [Ping timeout: 268 seconds]
chrishough has quit [Quit: chrishough]
yacks has quit [Ping timeout: 255 seconds]
busywork is now known as pipework
dr_neek has joined #ruby
mklappstuhl has joined #ruby
bradhe has joined #ruby
Guest66787 has quit [Remote host closed the connection]
willob has quit [Ping timeout: 255 seconds]
Akuma has quit [Read error: Connection reset by peer]
Ripp__ has quit [Quit: This computer has gone to sleep]
willob has joined #ruby
tonini has joined #ruby
willob has quit [Max SendQ exceeded]
<ppppaul> hamster is awesome
eliasp_ has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Ping timeout: 245 seconds]
jrendell has joined #ruby
ArchBeOS is now known as KnockItOff
rezzack has joined #ruby
blf has quit [Quit: Page closed]
KnockItOff is now known as ArchBeOS
slash_nick has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
germanstudent has quit [Ping timeout: 248 seconds]
willob has joined #ruby
eliasp has joined #ruby
willob has quit [Max SendQ exceeded]
zomgbie_ has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
kf8a has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
chrishough has joined #ruby
elaptics is now known as elaptics`away
agent_white has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has joined #ruby
willob has joined #ruby
gstudent2 has joined #ruby
willob has quit [Max SendQ exceeded]
zomgbie has quit [Ping timeout: 272 seconds]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
jrendell has quit [Ping timeout: 252 seconds]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
adit has joined #ruby
Ripp__ has joined #ruby
adit is now known as Guest62588
_Amaan has quit [Quit: _Amaan]
mixel has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
thebastl has joined #ruby
hiroyuki has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
Astral_ has joined #ruby
kf8a has quit [Ping timeout: 246 seconds]
lushious has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
asteve has quit [Quit: Computer has gone to sleep.]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
unflores has quit [Quit: unflores]
willob has joined #ruby
Astralum has quit [Ping timeout: 268 seconds]
willob has quit [Max SendQ exceeded]
ARCADIVS has joined #ruby
thebastl has quit [Remote host closed the connection]
nga4 has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
sdeinum has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
scottmey has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
nhhagen_ has joined #ruby
Akuma has joined #ruby
achmode has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
dmiller has quit [Remote host closed the connection]
adambeynon has joined #ruby
mattbl has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
dmiller has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
alx- has quit [Quit: alx-]
hakunin has joined #ruby
willob has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
willob has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 246 seconds]
nhhagen_ has quit [Ping timeout: 256 seconds]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
dwon has quit [Quit: Leaving]
dmiller has quit [Ping timeout: 276 seconds]
BizarreCake has quit [Ping timeout: 264 seconds]
willob has joined #ruby
Umren has joined #ruby
willob has quit [Max SendQ exceeded]
niklasb has joined #ruby
dmiller has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
Gabri has joined #ruby
saispo has quit [Ping timeout: 256 seconds]
jovy88 has quit [Read error: Connection reset by peer]
neataroni has quit [Ping timeout: 260 seconds]
Gabri has quit [Remote host closed the connection]
willob has joined #ruby
willob has quit [Max SendQ exceeded]
jovy88 has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
bradhe has joined #ruby
banghouse has quit [Remote host closed the connection]
banister`shop is now known as banisterfiend
banisterfiend is now known as banister`shop
willob has joined #ruby
willob has quit [Max SendQ exceeded]
engel has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
jrajav has joined #ruby
otherj has quit []
pyrac has quit [Quit: pyrac]
evenix_ has joined #ruby
banghouse2 has joined #ruby
banghouse2 is now known as banghouse
bradhe has quit [Ping timeout: 245 seconds]
dmiller has quit [Remote host closed the connection]
backjlack has quit [Read error: Connection reset by peer]
pitzips has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
neataroni has joined #ruby
ToApolytoXaos has joined #ruby
bluOxigen has joined #ruby
rickruby has joined #ruby
pithagorians has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
lawl has joined #ruby
lawl has quit [Client Quit]
gyre007 has quit [Ping timeout: 268 seconds]
nimor has quit [Remote host closed the connection]
pinpin404 has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
Collin__ has joined #ruby
browndawg has left #ruby [#ruby]
tealmage has joined #ruby
<Collin__> How do I get an instance variable whose name contains a hyphen? i.e. I want to do something like { :foo => @foo-bar }
<MrZYX> not possible
<Collin__> Is there a reason hyphens are allowed in symbols if they can't be used normally?
akells` has joined #ruby
<MrZYX> >> a = Object.new; a.instance_variable_set :'foo-bar', true
<eval-in> MrZYX => /tmp/execpad-50c5cbf1258a/source-50c5cbf1258a:2:in `instance_variable_set': `foo-bar' is not allowed as an instance variable name (NameError) ... (http://eval.in/25905)
<MrZYX> it's not a 1:1 mapping
<apeiros> :'@…'
<apeiros> just saying
nimor has joined #ruby
yacks has joined #ruby
<MrZYX> right, sigh. But it doesn't work either
Ripp__ has quit [Quit: This computer has gone to sleep]
<apeiros> :)
tealmage has quit [Ping timeout: 256 seconds]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
cofin has joined #ruby
<apeiros> oh, right. time to remove some ban
ArchBeOS has left #ruby ["Leaving"]
saarinen has joined #ruby
kesor has joined #ruby
mattbl has joined #ruby
blacktulip has quit [Remote host closed the connection]
thetristan has quit [Quit: thetristan]
* Hanmac resets the timer until the troll is coming back
lyanchih has quit [Quit: lyanchih]
dr_neek has quit [Ping timeout: 276 seconds]
nwertman has quit [Read error: Operation timed out]
interactionjaxsn has quit [Ping timeout: 256 seconds]
dr_neek has joined #ruby
evenix_ has quit [Remote host closed the connection]
thetristan has joined #ruby
freakazoid0223 has joined #ruby
mityaz has quit [Quit: See ya!]
Banistergalaxy has joined #ruby
jenrzzz has joined #ruby
zomgbie_ has quit [Ping timeout: 256 seconds]
Ripp__ has joined #ruby
zomgbie has joined #ruby
hiyakashi has joined #ruby
johchri has joined #ruby
hotrine has joined #ruby
johchri has quit [Client Quit]
chandankumar has quit [Quit: Leaving]
rickruby has quit [Remote host closed the connection]
mark_locklear has joined #ruby
bradhe has joined #ruby
pyrac has joined #ruby
nwertman has joined #ruby
choobie has quit [Ping timeout: 268 seconds]
<ppppaul> hey guys. i have an issue with bundler
<ppppaul> Your Ruby engine is ruby, but your Gemfile specified jruby
<ppppaul> i have googled this and sorta came up blank
<apeiros> you're bundling with ruby, not jruby
<MrZYX> wild guess: jruby $(which bundle)
<apeiros> and you state that you want jruby in your gemfile
cmarques has quit [Ping timeout: 256 seconds]
kristofers has quit []
cmarques has joined #ruby
<ppppaul> GemFile -< ruby "1.9.3", engine: "jruby", engine_version: "1.7.3"
achmode has quit [Quit: ChatZilla 0.9.90 [Firefox 20.0.1/20130409194949]]
krainboltgreene has quit [Ping timeout: 256 seconds]
<ppppaul> ok. i'm still lost
<MrZYX> what about my suggestion?
<ppppaul> i did it
zmike123 has quit [Quit: Выходжу]
<ppppaul> reading the output now
theRoUS has quit [Ping timeout: 276 seconds]
brotatos has joined #ruby
mawueli has joined #ruby
kesor has quit [Ping timeout: 246 seconds]
mawueli is now known as Guest84049
saarinen has quit [Quit: saarinen]
<ppppaul> ok. says it can't find bundler
<ppppaul> hmm
<MrZYX> ah, you didn't even install bundler under jruby
enebo has joined #ruby
<ppppaul> ^_^
<MrZYX> again more a wild guess: jruby $(which gem) install bundler
<ppppaul> woah
saarinen has joined #ruby
<ppppaul> thanks
krainboltgreene has joined #ruby
machuga is now known as zz_machuga
huismon is now known as nate_h
<ppppaul> failing hard now :)
Guest84049 has quit [Ping timeout: 276 seconds]
auty is now known as autumn
<MrZYX> mkay, I've just not enough experience with jruby, they must have their own gem or whatever
<MrZYX> *rubygems
kesor has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kesor has quit [Client Quit]
<ppppaul> thanks MrZYX
<MrZYX> heh, /me just did /google jruby gem install
Ripp__ has quit [Quit: This computer has gone to sleep]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
<ppppaul> ruby is beating me into stupidity :)
interactionjaxsn has joined #ruby
_nitti has quit [Remote host closed the connection]
mattbl has quit [Quit: This computer has gone to sleep]
krainboltgreene has quit [Ping timeout: 264 seconds]
_nitti has joined #ruby
lusory has quit [Ping timeout: 252 seconds]
yshh has joined #ruby
shock_one has joined #ruby
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
curtis has quit [Ping timeout: 245 seconds]
cofin has quit [Quit: cofin]
<headius> jruby -S gem install bundler should work fine
Ripp__ has joined #ruby
<headius> or just gem install bundler if jruby's `gem` is in PATH
zz_machuga is now known as machuga
<headius> woah, what's that error
<ppppaul> thanks headius
<ppppaul> i'm in the middle of writing a make install for jruby
<headius> ppppaul: do you need to run in 1.8 mode?
<ppppaul> seems like i had a old version via ubuntu repos
<headius> I'd strongly recommend JRuby 1.7 in 1.9 mode
<headius> yeah, that's an old bug only in 1.8 mode
curtis has joined #ruby
robbyoconnor has joined #ruby
<ppppaul> headius, no idea what mode restrictions i have... depends on what heroku supports
Collin__ has quit [Ping timeout: 246 seconds]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
<headius> heroku supports jruby 1.7, which defaults to 1.9.3 mode
yshh has quit [Ping timeout: 252 seconds]
<ppppaul> then that is my limit
lusory has joined #ruby
yshh has joined #ruby
bubu has quit [Quit: Leaving]
stringoO has joined #ruby
agjacome has joined #ruby
bradhe has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
tonini has joined #ruby
_nitti has joined #ruby
Michael_ has joined #ruby
chile_andes has joined #ruby
lewix has joined #ruby
san has joined #ruby
chichou has quit [Remote host closed the connection]
zekefast has quit [Quit: Leaving.]
san has quit [Client Quit]
Ripp__ has quit [Quit: This computer has gone to sleep]
icole has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
akells` has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
icole has joined #ruby
Ripp__ has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
jsonper has joined #ruby
<jsonper> hi there... need a lil help compiling a c extension
mattbl has joined #ruby
Monkeyknits has joined #ruby
Michael_ has quit [Remote host closed the connection]
<jsonper> dyld: lazy symbol binding failed: Symbol not found: _AtlasPage_create
dr_neek has quit [Quit: dr_neek]
Michael_ has joined #ruby
saarinen has quit [Quit: saarinen]
Michael_ has quit [Remote host closed the connection]
Michael_ has joined #ruby
Monkeyknits is now known as AudreyJean
akells` has joined #ruby
pskosinski_ has joined #ruby
Coolhand_ is now known as Coolhand
pskosinski has quit [Disconnected by services]
makerbrakr has joined #ruby
<makerbrakr> is there a oneliner that can tell me if all the elements in an array equal eachother?
pskosinski_ is now known as pskosinski
mark_locklear has quit [Ping timeout: 256 seconds]
monkegjinni has joined #ruby
<apeiros> ary.each_cons(2).all? { |a,b| a == b }
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
vlad_starkov has joined #ruby
<injekt> a.count("foo") == a.length
<injekt> oh you dont know about foo eh
<makerbrakr> ya
mattbl has quit [Quit: This computer has gone to sleep]
mark_locklear has joined #ruby
<banister`shop> makerbrakr: array.all? { |i| i == array.first }
<banister`shop> but apeiros is cuter
zigomir has joined #ruby
axl_ has quit [Quit: axl_]
<injekt> dang count is fast
<apeiros> ah true, could just compare against the first one all the time
mattbl has joined #ruby
<apeiros> well, a.uniq.size == 1
<banister`shop> nice
<injekt> i was just typing that
<injekt> :(
<injekt> fml
<apeiros> but that uses eql?, and requires hash. it does not use ==
vlad_starkov has quit [Ping timeout: 252 seconds]
clocKwize has joined #ruby
<Xeago> apeiros: why does that require hash?
<apeiros> because it constructs a Hash behind the scenes
<pithagorians> hi all. ri File.open
<pithagorians> Nothing known about File
<pithagorians> any clue why?
<apeiros> i.e., it uses all values as hash keys. and Hash's keys need #hash
<apeiros> pithagorians: installed ruby via rvm?
<pithagorians> from ubuntu binaries
santana has joined #ruby
<apeiros> seems they don't install the docs along with ruby then
<pithagorians> ruby 1.9.3p194
slash_nick has quit [Ping timeout: 246 seconds]
<apeiros> might be a separate package
<apeiros> ask in #ubuntu
jenrzzz has quit [Quit: leaving]
jsonper has quit [Quit: Page closed]
khismetix has joined #ruby
<santana> or just apt-cache search ruby |grep doc
krainboltgreene has joined #ruby
bradhe has joined #ruby
rdg has joined #ruby
slash_nick has joined #ruby
alanp has quit [Read error: No route to host]
vlad_starkov has joined #ruby
<pithagorians> got it
<pithagorians> sudo apt-get install ri
<pithagorians> does the trick
alanp has joined #ruby
mattbl has quit [Ping timeout: 252 seconds]
scottmey has left #ruby [#ruby]
acrussell has left #ruby [#ruby]
corehook has quit [Ping timeout: 256 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
chrishough has quit [Quit: chrishough]
vlad_starkov has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
codemonkey010101 has quit [Ping timeout: 264 seconds]
platzhirsch has joined #ruby
chipotle_ has joined #ruby
jeebster1 has joined #ruby
centr0 has joined #ruby
<platzhirsch> When a method/attribute is added to a class with include, how can I override in my class definition? I have MyClass.index.name and I would like to change the behavior of 'name'
mawueli has joined #ruby
mark_locklear has quit [Ping timeout: 256 seconds]
mawueli is now known as Guest79063
DonRichie has quit [Ping timeout: 272 seconds]
tjbiddle_ has joined #ruby
chrishough has joined #ruby
mark_locklear has joined #ruby
DonRichie has joined #ruby
dr_neek has joined #ruby
kil0byte has quit [Remote host closed the connection]
Z_Mass has joined #ruby
rdg has quit [Quit: [quit]]
kil0byte has joined #ruby
kil0byte has quit [Remote host closed the connection]
jeebster1 has quit [Read error: Connection reset by peer]
Ripp___ has joined #ruby
jeebster has joined #ruby
fschuindt has joined #ruby
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
freerobby has joined #ruby
krainboltgreene has quit [Ping timeout: 276 seconds]
danman has joined #ruby
<fschuindt> there's any cool way to do something like "tail" in a ruby variable? like 'tail -f file.txt', but in a ruby array that is feeded by a parallel thread.
clocKwize has quit [Quit: clocKwize]
kirun has joined #ruby
<ppppaul> how can i test for deep equality with ruby?
rcosta has joined #ruby
<fschuindt> a loop that will shows all elements in a array, but will keep looking for news. never stoping
jcromartie has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Ripp__ has quit [Ping timeout: 252 seconds]
rcosta has quit [Remote host closed the connection]
hiroyuki has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
cofin has joined #ruby
KellyLSB has quit [Ping timeout: 255 seconds]
queequeg1 has quit [Ping timeout: 264 seconds]
slash_nick has quit [Ping timeout: 276 seconds]
<MrZYX> fschuindt: I'd just do loop { @mutex.synchronize { yield @array.shift while @array.size > 0; sleep 1 } }
<MrZYX> eh, just the shift inside the lock of course
codemonkey010101 has joined #ruby
pipework has quit [Quit: Leaving...]
fschuindt has quit [Quit: Computer has gone to sleep.]
<Spooner> MrZYX, There is a synched Queue class available if you require 'thread'
<MrZYX> ah, didn't know
im0b has quit [Ping timeout: 256 seconds]
77CAA2O6C has quit [Ping timeout: 252 seconds]
huoxito has quit [Read error: Connection reset by peer]
_rgn has quit [Ping timeout: 245 seconds]
stringoO has quit [Quit: stringoO]
paulswilliamsesq has joined #ruby
<Spooner> So you can just: counters.put(:odds, &:next)
<Spooner> Ack, bad paste :)
Collin__ has joined #ruby
fschuindt has joined #ruby
tspike_ has quit [Ping timeout: 245 seconds]
<Spooner> fschuindt, ^^
pitzips has joined #ruby
akells` has quit [Remote host closed the connection]
KellyLSB has joined #ruby
<fschuindt> MrZYX, Spooner : oh, ok, my mind is proccessing hahaha
strax has quit [Ping timeout: 264 seconds]
_rgn has joined #ruby
makkura has joined #ruby
<jokke> hey, can i iterate something with like 8 threads 8 indexes at a time?
<Spooner> jokke, Huh?
<jokke> :)
<jokke> i need to remove duplicates from a huge file
<MrZYX> I guess you want the Queue class too
<jokke> as in gigabytes huge
<C0deMaver1ck> um wouldn't make a difference unless you're in JRuby where there isn't a GIL
<jokke> GIL?
<Spooner> Global interpreter lock.
<C0deMaver1ck> Global Interpreter Lock for threading
queequeg1 has joined #ruby
danslo has joined #ruby
<MrZYX> well, it would if he lazily loads the data
<jokke> ?
<jokke> :D
<jokke> i could read it from stdin?
<MrZYX> btw guys, matz said there's no GIL anymore.
<Spooner> Yeah, in CRuby threads aren't as great as they could be. Useful for network blocking though.
<MrZYX> We got a GVL now :P
<Spooner> And that is different because?
<MrZYX> Global Virtual machine lock
<jokke> so.. no gain in threads?
momomomomo has joined #ruby
<MrZYX> it's not different from our point of view :D
<Spooner> Ah, Virtual Machine lock, not Interpreter lock - joy!
<jokke> this is gonna eat up my ram...
<jokke> anyways
<jokke> i'll just write it in python. will be faster probably
<Spooner> Depending on what you are doing, you could use something like the Parallel gem to use multiple processes.
nwertman_ has joined #ruby
<makkura> I have a multidimensional hash generated from a YAML file as a config. Doing checks against a depth that my not exist generates a TypeError. I've written a function that gets around this but I don't feel it's the best solution. What functions are actually being called that end up with this error? I'd like to override them to provide a nil for this case [if i can differentiate enough info to identify the attempt].
<Spooner> Because that would work fine in any Ruby.
<jokke> Spooner: i have to do this only once
<yxhuvud2> jokke: threads can be pretty gainful when you are doing stuff like waiting for IO, but it will not speed up executing ruby.
nwertman_ has quit [Client Quit]
axl_ has joined #ruby
cantonic has joined #ruby
tspike has joined #ruby
<jokke> i have to write a dictionary attack password cracker in ruby -.-
nettoweb has quit [Ping timeout: 264 seconds]
nwertman has quit [Read error: Connection reset by peer]
allaire has joined #ruby
<C0deMaver1ck> that's gonna be dog slow
<jokke> C0deMaver1ck: no shit :D
<C0deMaver1ck> lol
<lectrick> Is there any event I can hook into (like a new or an allocate) when, say, a literal Hash is created? Such as h = {};
nettoweb has joined #ruby
<lectrick> Any hacky monkeypatch to Hash.new or Hash.allocate or Hash#initialize won't seem to be called when I do a literal.
<Spooner> I don't think so. Those auto-creators (like "") don't use #new, as far as I am aware.
<jokke> C0deMaver1ck: on the other hand, dict attacs are IO heavy
<C0deMaver1ck> I would use C
<C0deMaver1ck> but that's just me
akells` has joined #ruby
<jokke> yeah me too
<jokke> or assembler :P
<jokke> or OpenCL
<jokke> as a matter of fact
<lectrick> Spooner: That's both interesting and unfortunate. ;)
ariedler has quit [Remote host closed the connection]
<MrZYX> jokke: program an fpga to do it!
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<jokke> :D
sambao21 has joined #ruby
dsabanin has quit [Quit: Leaving...]
<MrZYX> can't get any faster
<jokke> MrZYX: yeah wait, i'll just go and get one
LyonJT has quit [Quit: Leaving...]
momomomomo has left #ruby [#ruby]
<makkura> It's not something I've had to use but can't we still embed C into ruby? http://www.infoq.com/news/Embedding-C-in-Ruby
<makkura> Though it might be against the spirit of the project, according to why you're using ruby for it.
Davey has quit [Quit: Computer has gone to sleep.]
DonRichie has quit [Ping timeout: 246 seconds]
<jokke> makkura: yeah, besides i hate c
<jokke> it doesn't have to be fast.
<makkura> jokke: *nod* as do I. I just accept ruby's speeds, most of the time.
codezombie has joined #ruby
<jokke> i just need to crack some of the 1000 passwords
krainboltgreene has joined #ruby
krainboltgreene has quit [Client Quit]
bean__ has quit [Quit: Textual IRC Client: www.textualapp.com]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
krainboltgreene has joined #ruby
kf8a has joined #ruby
<jokke> it's a homework assignment :P
DonRichie has joined #ruby
norm has quit [Read error: Operation timed out]
hakunin has quit [Remote host closed the connection]
akells` has quit [Remote host closed the connection]
<MrZYX> so you got a file and need to remove the duplicated lines?
chessguy has joined #ruby
<Alamo777> jokke, what passwords are you cracking? Is it fast to do with ruby rather then python?
<jokke> but i'd really like to try to code some OpenCL
brianpWins has quit [Quit: brianpWins]
<jokke> Alamo777: it has to be ruby
mattbl has joined #ruby
<jokke> its a kind of "ruby is cooler than anything else"-class
shock_one has quit [Ping timeout: 252 seconds]
<makkura> ruby does has some cool ^^ but compiled languages tend to shine more for this kind of task.
wmoxam has quit [Ping timeout: 257 seconds]
<jokke> yup
<Alamo777> jokke, what is the previledge, should i use ruby for cracking passwords a.k.a hashes rather then anything else? any special algo?
yalue has quit [Quit: Leaving]
<jokke> sha
<jokke> no
<makkura> Reminds me a friend just finished a programming class where the professor has explicitly told him that javascript and ruby aren't 'real' programming languages
<jokke> dsa
fmcgeough has quit [Quit: fmcgeough]
<jokke> haha
<jokke> :D
nhhagen_ has joined #ruby
<jokke> damn.. i need more ram
yannis has joined #ruby
<jokke> i can't dedupe them like this
Collin_ has joined #ruby
Lubinski has quit [Quit: Leaving]
<MrZYX> read line by line, write lines to tmpfile as you read them, use .hash to check if that line already exists
pi3r has quit [Quit: Leaving]
<jokke> i still don't understand, why python uses > 11G ram for deduping a 6G file...
DonRichie has quit [Ping timeout: 256 seconds]
<jokke> MemoryError.. great
DonRichie has joined #ruby
Collin__ has quit [Remote host closed the connection]
<Alamo777> is john the ripper faster then ruby cracker?
akashj87_ has joined #ruby
huoxito has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
khismetix has quit [Quit: Computer has gone to sleep.]
norm has joined #ruby
_nitti has quit [Remote host closed the connection]
makkura has left #ruby ["Leaving"]
<MrZYX> require 'set'; seen = Set.new; file.each_line do |line| next if seen.include? line.hash; tmpfile.write line; seen << line.hash; end or something like that
sideshowcoder has quit [Ping timeout: 256 seconds]
tjbiddle has joined #ruby
<jokke> i have seen = set(); with open(sys.argv[1]) as f:; for line in f:; if line not in seen:; print(line, end=""); known.add(line)
<makerbrakr> why cant i get a return -1 here?
rudisimo has quit [Quit: Leaving.]
cupakromer has left #ruby [#ruby]
akashj87 has quit [Ping timeout: 252 seconds]
nhhagen_ has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
<MrZYX> makerbrakr: provide your real code, you aren't returning from the main context, are you?
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
<Spooner> Returning nil makes some more sense than -1 (which is a bit of an idiom from another language). Still, it should work. I'd use versions.uniq.one? instead though.
<makerbrakr> that is the real code
<makerbrakr> its for a puppet provider
sideshowcoder has joined #ruby
<MrZYX> ah, then it thows a Undefined local variable or method versions ....
<makerbrakr> i am printing the versions array also, so I know what those values are upon run
<makerbrakr> mrzyx, no, its returning versions.first everytime
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
ccooke_ is now known as ccooke
<MrZYX> anyway that example doesn't reproduce your problem, so....
krainboltgreene has quit [Ping timeout: 264 seconds]
<Spooner> The code is correct. The error must be somewhere else.
paulswilliamsesq has quit [Remote host closed the connection]
<makerbrakr> k
mark_locklear has quit [Ping timeout: 264 seconds]
chandankumar has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<Spooner> Yeah, we need more context to fathom the cause ;)
pkrnj has joined #ruby
akells` has joined #ruby
danman has quit [Quit: danman]
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
<platzhirsch> typical, the database declares to be schemaless, but the Ruby object mapper forces me to define all properties anyway
nettoweb has quit [Ping timeout: 256 seconds]
curtis has quit [Remote host closed the connection]
<MrZYX> then use/write a better ORM :P
<Hanmac> >> p (-0.0).inspect, (-0.0 + 0).inspect
<eval-in> Hanmac => "-0.0" ... (http://eval.in/26336)
codemonkey010101 has quit [Ping timeout: 256 seconds]
kf8a has quit [Quit: Computer has gone to sleep.]
akells` has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
allaire has quit [Quit: allaire]
vlad_starkov has joined #ruby
timonv has quit [Remote host closed the connection]
chandankumar has quit [Quit: Leaving]
jcromartie has joined #ruby
Criztian has quit [Remote host closed the connection]
<platzhirsch> MrZYX: absolustely, the repository gets already hammered with pull requests
ffranz1 has joined #ruby
Eldariof-ru has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
Progster has quit [Quit: Leaving]
dmiller has joined #ruby
undersc0re97 has quit [Quit: WeeChat 0.4.0]
vlad_starkov has quit [Ping timeout: 264 seconds]
gaahrdner has joined #ruby
wolcanus has joined #ruby
Kar- has quit [Remote host closed the connection]
gaahrdner has quit [Remote host closed the connection]
ffranz has quit [Ping timeout: 264 seconds]
sdeinum has quit [Quit: leaving]
undersc0re97 has joined #ruby
duply has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
akells` has joined #ruby
wolcanus has quit [Remote host closed the connection]
ravster has joined #ruby
nwertman has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ffranz1 is now known as ffranz
nhhagen_ has joined #ruby
gaahrdner has joined #ruby
whowantstolivef1 has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
akhet has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
headius has quit [Quit: headius]
tspike has quit [Ping timeout: 256 seconds]
ffranz1 has joined #ruby
Doc_X has quit [Read error: Operation timed out]
ffranz has quit [Ping timeout: 246 seconds]
v0n has quit [Ping timeout: 252 seconds]
ffranz1 is now known as ffranz
cmedeiros has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
_carloslopes has quit [Remote host closed the connection]
centr0 has quit [Quit: centr0]
codemonkey010101 has joined #ruby
mxweas has joined #ruby
danman has joined #ruby
danman has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
tonini has joined #ruby
LennyLinux has quit [Remote host closed the connection]
monkegjinni has joined #ruby
akells` has quit [Remote host closed the connection]
thebastl has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
kemist has joined #ruby
tspike has joined #ruby
dmiller has quit [Read error: No route to host]
kfoo__ has quit [Ping timeout: 255 seconds]
dankest has quit [Quit: Leaving...]
cbizzzzzl3 has quit [Ping timeout: 272 seconds]
reset has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 276 seconds]
viszu has joined #ruby
maycon has quit [Quit: Saindo]
zekefast has joined #ruby
sailias has quit [Ping timeout: 268 seconds]
SAUCYSALAMANDER has joined #ruby
rdxc has quit [Quit: Textual IRC Client: www.textualapp.com]
akells` has joined #ruby
jnoob22 has quit [Remote host closed the connection]
pkrnj has joined #ruby
pithagorians has quit [Ping timeout: 256 seconds]
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
workmad3 has joined #ruby
Mattix has joined #ruby
chile_andes has quit [Quit: Textual IRC Client: www.textualapp.com]
<platzhirsch> banister`shop: any idea why using next in pry, sometimes enters the method instead of skipping it anyway? This gets me often into very long loops
dr_neek has quit [Quit: dr_neek]
<banister`shop> platzhirsch: what ruby version?
<platzhirsch> banister`shop: 2.0
<banister`shop> platzhirsch: that's why, the 'debugger' gem (which pry relies on) is not stable under 2.0 yet
<banister`shop> platzhirsch: perhaps you want to try pry-byebug instead
<banister`shop> google it :)
<banister`shop> it uses a different debugging engine
<platzhirsch> banister`shop: that are the names where I have to explicitly tell Google that I meant the way I wrote it :P thanks for pointing me to it
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
<xibalba> anyone know where i can host a mailing list for free for a ruby project?
<injekt> xibalba: google groups?
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
thebastl has quit [Remote host closed the connection]
<xibalba> hmm i prefer a more traditional mailing list than having to do it via the web browser
LennyLinux has joined #ruby
headius has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<injekt> um you dont have to use the browser for google groups
<xibalba> oh you can use it via email too?
<xibalba> ill check it out, thanks
<injekt> it's a mailing list :P
bradhe has quit [Remote host closed the connection]
moted has quit [Quit: moted]
thebastl has joined #ruby
pyrac has quit [Quit: pyrac]
sambao21 has quit [Quit: Computer has gone to sleep.]
thebastl has quit [Remote host closed the connection]
hakunin has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<Yakko> hey guys, if I have the PID of a ruby process, can I get the live variables on that process?
slyv has joined #ruby
stoic_squirrel has joined #ruby
Hanmac has joined #ruby
sambao21 has joined #ruby
bradhe has joined #ruby
saarinen has joined #ruby
Ripp___ has quit [Quit: This computer has gone to sleep]
Hanmac1 has quit [Ping timeout: 264 seconds]
alexgordon has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
ravster has left #ruby [#ruby]
jerius has quit [Ping timeout: 276 seconds]
<ppppaul> i'm getting an error for this integers.filter({|n| prime?(n)}).take(50)
<ppppaul> but not this integers.filter{|n| prime?(n)}.take(50)
<ppppaul> why?
<Spooner> ppppaul, Because you are passing a block to filter, not a parameter.
<ppppaul> what is the difference?
<ppppaul> does filter take parameters?
<Spooner> Well, the block is a special parameter, but it is code to run, rather than just a variable to pass through.
<ppppaul> um
strax has joined #ruby
<ppppaul> what is the difference?
<ppppaul> (JS and clojure background)
<injekt> what is adding #filter ?
<apeiros> Yakko: with a debugger, should be possible. google for gdb and ruby
<ppppaul> addinf #filter?
<injekt> ppppaul: is this rails?
<ppppaul> hamster
<injekt> what
<injekt> ah ok
<ppppaul> persistent data structures in ruby
<Yakko> apeiros: what if I cannot change the sources of the process that's being analyzed?
<injekt> so Hamster adds the filter method
<ppppaul> yes
<ppppaul> why is a parameter and a lambda different?
danslo has quit [Quit: danslo]
<Spooner> There isn't anything magically different, but it is just a good way to use an anonymous function in a standard way.
<ppppaul> is there a special way to define a function that takes in an object or a functino?
<apeiros> Yakko: you don't have to change to source code for gdb
<Spooner> The method will yield values to the block.
jgarvey has quit [Remote host closed the connection]
<Yakko> apeiros: ok, thanks, I don't really need it, I'm just answering a java-neurotic friend :D
<Spooner> ppppaul, try in pry: def meth; yield 1; yield 2; end; meth {|n| puts n }
vlad_starkov has joined #ruby
<apeiros> Yakko: it's not really the common way to debug a ruby app, though
machuga is now known as machuga|away
martxel has quit [Quit: leaving]
Umren has quit [Read error: Connection reset by peer]
martxel has joined #ruby
<ppppaul> what does that mean?
martxel is now known as Guest57606
<ppppaul> def meth?
brianpWins has joined #ruby
machuga|away is now known as zz_machuga|away
<Yakko> apeiros: back in the day I was required to be a debug ninja, most of what I do now is around rails, so projects usually take a week so I'll finally open them in the browser =D
<Yakko> <3 ruby <3
<Spooner> In filter, it yields each value in the integers collection, filtering by the result of the block (anonymous function). We could just pass it as you did; using a lambda: integers.filter(n -> { prime?(n) }) but using blocks is just a nicer sugar for it.
<ppppaul> what does semicolon mean in ruby?
markalanevans_ has joined #ruby
<Yakko> ppppaul: means end of logical line
<Spooner> ppppaul, You really need to do some reading up on Ruby. #ruby isn't a replacement for learning; it is an aid for it.
<apeiros> was about to suggest the same @ ppppaul
Guest57606 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
<Spooner> Usually semi-colons aren't used in Ruby. It is just a nicer way to put code on one line for IRC.
martxel has quit [Client Quit]
markalanevans has quit [Ping timeout: 256 seconds]
markalanevans_ is now known as markalanevans
martxel has joined #ruby
<ppppaul> ^_^
saarinen has quit [Quit: saarinen]
martxel has quit [Changing host]
martxel has joined #ruby
<ppppaul> i did some stuff on my own
<ppppaul> i was playing around with hamster
rickruby has joined #ruby
Yakko_ has joined #ruby
<Spooner> I wouldn't worry how to use hamster until you know what a method definition looks like...
rickruby has quit [Read error: Connection reset by peer]
<ppppaul> too late
<jokke> lol
dsabanin has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<ppppaul> so, when i use a yield my function magically wants a function as a param
moted has joined #ruby
<ppppaul> what if i want to give 2 functions as params?
duply has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
<injekt> no
<injekt> ruby doesn't have functions per-say, and you dont pass them as params, what you're looking at is a block
Yakko has quit [Ping timeout: 246 seconds]
kfoo_ has joined #ruby
dsabanin has quit [Client Quit]
<ppppaul> it's a lambda
<injekt> you need to listen to what Spooner said earlier and read up more on the basics of Ruby
<jokke> guys, i think i asked about this before, but didn't get an answer.. If i were to use the Parallel gem, how would i read files with it in multiple processes (never the same line twice)
<injekt> no, it's not a lambda
<ppppaul> how is it not a lambda?
skattyadz has quit [Quit: skattyadz]
Groknor has joined #ruby
Groknor has quit [Quit: Page closed]
<workmad3> it's a lambda in the general functional sense of 'lambda is an anonymous function', but it's not a lambda in the ruby sense, which has a separate, slightly different construct called 'lambda'
LyonJT has joined #ruby
<Spooner> jokke, If you mean reading the same file, how would you expect to be able to do that?
<jokke> same
<jokke> Spooner: no idea.. with seek?
mrsolo has quit [Quit: Leaving]
<injekt> the semantics are slightly different too, a block works more like a proc, not a lambda
<ppppaul> hmmm
akells` has quit [Remote host closed the connection]
<ppppaul> i can't seem to replace my block with a named function that also accepts 1 arg
Zeev has quit [Disconnected by services]
<workmad3> injekt: yeah, and if you look at the block variable, it ends up as a proc, not a lambda :)
<ppppaul> hmm
<workmad3> ppppaul: the block argument is special
<jokke> ppppaul: yeah no you cant :D
<injekt> workmad3: I didn't argue that
<Spooner> ppppaul, You can, but you need some sugar.
<workmad3> ppppaul: it's treated different :)
<ppppaul> can i have more than 1 block arg?
<apeiros> jokke: lines are not that seekable, though
<jokke> apeiros: true..
Zeev has joined #ruby
<ppppaul> {|a b| fn(a b)}
<apeiros> but if you know that newlines are relatively well distributed in your format, it could still work out
<injekt> ppppaul: yes
<Spooner> filter(&method(:meth)) would use #meth
<jokke> apeiros: yep
tealmage has joined #ruby
<ppppaul> oh wow
<apeiros> don't know how I'd combine it with the parallel gem, as I don't use it
<apeiros> but the concept would be divide and conquer
<ppppaul> Spooner, i got it to work
<Spooner> You might be better off reading in the main process and parallelising the processing.
<ppppaul> but that is paaaainful
<workmad3> injekt: sorry, I was just adding more explanation
<jokke> i could divide the file size through number of processes. Then seek process_index times that amount in the file for each process
<jokke> and go to the next newline char
interactionjaxsn has quit [Ping timeout: 276 seconds]
<apeiros> split the file into N chunks, seek for the next newline, process
<ppppaul> so, how would i change meth to work with a block with 2 args?
<jokke> alright.. I'll give it a try
<ppppaul> yield [1 , 2]; ?
<Spooner> Yeah.
<apeiros> yield 1, 2
kemist has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> yield [1,2] yields 1 param (1 array)
akells` has joined #ruby
<ppppaul> hmm
<apeiros> ruby will autosplat it, so it should still work, though.
<ppppaul> 1,2 is a touple?
ipalaus has joined #ruby
<jokke> ppppaul: dude thats really annoing.. go read some basics..
<ppppaul> :)
<MrZYX> hm, 1, 2 isn't the implicit array form there?
kobain has joined #ruby
<apeiros> no
<MrZYX> like it is in a,b = 1,2
<Spooner> We don't have explicit tuples in Ruby, but we have them implicitly like that.
<apeiros> yield is like a method call
teclator has joined #ruby
<injekt> no it works like call
<apeiros> foo 1, 2 isn't an implicit array either
<ppppaul> i like reading source code... i find it hard to read books and language tutorials
<apeiros> foo(1, 2) is two arguments
<injekt> blah so slow on the trigger today
<apeiros> so is yield(1, 2)
<apeiros> foo([1, 2]) is one argument, so is yield([1, 2])
<ppppaul> this is interesting
<MrZYX> well, yield is a keyword so I'm not 100% sure about drawing an analogy here
Ripp__ has joined #ruby
failshell has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
tealmage has quit [Ping timeout: 256 seconds]
<ppppaul> def meth; yield 1, 2; end; meth {|n, m| puts n; puts m}
<ppppaul> got it working :)
<MrZYX> so lets just prove it with: def foo; yield 1, 2; end; foo {|a| p a } #=> 1 :)
<apeiros> and the autosplat: def foo; yield [1, 2]; end; foo {|a,b| p a } #=> 1
katsrc has joined #ruby
<apeiros> that it really splats:
hiroyuki has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
<apeiros> def foo; yield [1, 2]; end; foo {|a| p a } # => [1, 2]
icole has quit [Remote host closed the connection]
<MrZYX> yup, just thought it would behave more consistent :)
jrendell has joined #ruby
<MrZYX> if it would be an implicit array it would mean it would just always autosplat
im0b has joined #ruby
ipalaus has quit [Ping timeout: 264 seconds]
<apeiros> tbh, I dislike autosplat
r0bgleeson has quit [Read error: Connection reset by peer]
icole has joined #ruby
<ppppaul> thanks a lot guys, and sorry jokke for pissing you off
<ppppaul> i learned a lot
r0bgleeson has joined #ruby
katsrc has quit [Changing host]
katsrc has joined #ruby
<Spooner> autosplat was a mistake...
xerxas has joined #ruby
kpshek has quit []
<apeiros> still is - IMO
mballou has joined #ruby
gaahrdner has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
P1RATEZ has joined #ruby
dagnachew has joined #ruby
mballou is now known as ballou88
ballou88 has quit [Client Quit]
breakingthings has quit [Quit: breakingthings]
ballou88 has joined #ruby
thone has joined #ruby
<Spooner> If only we could clean house properly rather than doing it in penny packets :)
thone_ has quit [Read error: Operation timed out]
krainboltgreene has joined #ruby
chessguy has quit [Remote host closed the connection]
mboers has joined #ruby
tonini has quit [Remote host closed the connection]
headius has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
solidoodlesuppor has quit [Remote host closed the connection]
chrishunt has quit [Quit: ZzZzZz...]
<Spooner> Maybe for Ruby 3.0 ;)
d2dchat has quit [Remote host closed the connection]
saarinen has joined #ruby
<banister`shop> Hanmac: james baxter?
ravster has joined #ruby
jdunck has quit [Ping timeout: 252 seconds]
jgrevich_ has joined #ruby
pipework has joined #ruby
evenix has quit [Remote host closed the connection]
chessguy has joined #ruby
jgrevich has quit [Ping timeout: 276 seconds]
jgrevich_ is now known as jgrevich
cr3 has quit [Quit: leaving]
mljsimone has quit [Remote host closed the connection]
Davey has joined #ruby
neataroni has quit [Ping timeout: 264 seconds]
stoic_squirrel has quit [Quit: Computer has gone to sleep.]
r0bgleeson has quit [Read error: Connection reset by peer]
akells` has quit [Remote host closed the connection]
jamesfung14 has joined #ruby
r0bgleeson has joined #ruby
jdunck has joined #ruby
splittingred has quit [Quit: splittingred]
neataroni has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
chrishough has quit [Quit: chrishough]
havenwood has quit [Remote host closed the connection]
Emmanuel_Chanel has joined #ruby
Astral_ has quit [Ping timeout: 256 seconds]
Ripp__ has quit [Quit: This computer has gone to sleep]
cofin has quit [Quit: cofin]
cmarques has quit [Ping timeout: 276 seconds]
m8 has quit [Quit: Sto andando via]
shadoi has quit [Quit: Leaving.]
codemonkey010101 has quit [Ping timeout: 264 seconds]
neataroni has quit [Ping timeout: 245 seconds]
Ripp__ has joined #ruby
Ripp__ has quit [Client Quit]
enebo has quit [Quit: enebo]
theRoUS has quit [Ping timeout: 264 seconds]
Astralum has joined #ruby
Pequinno has joined #ruby
monkegjinni has quit [Ping timeout: 256 seconds]
whowantstolivef1 has quit [Quit: quit]
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
monkegjinni has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
Bry8Star_ has joined #ruby
Bry8Star_ is now known as Bry8Star
fixl has joined #ruby
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
Nuck has quit [Quit: Nuck Off]
Pequinno has left #ruby [#ruby]
codecop has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
deadalus has quit [Excess Flood]
moos3 has quit [Quit: Computer has gone to sleep.]
Proshot has joined #ruby
deadalus has joined #ruby
Azulinho has quit [Quit: WeeChat 0.4.0]
chrishough has joined #ruby
moos3 has joined #ruby
it_tard has quit [Quit: yawn]
markalanevans has quit [Quit: markalanevans]
markalanevans has joined #ruby
jrendell has quit [Quit: jrendell]
markalanevans has quit [Read error: Connection reset by peer]
markalanevans has joined #ruby
philcrissman has quit [Remote host closed the connection]
ToApolytoXaos has quit [Quit: Leaving]
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jgrevich_ has joined #ruby
baroquebobcat has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
roothacker has joined #ruby
LyonJT has quit [Quit: Leaving...]
graydot has joined #ruby
Nuck has joined #ruby
hiyakashi has quit [Quit: お前は知りすぎた]
anonymuse has quit [Quit: Leaving...]
roothacker has left #ruby [#ruby]
jgrevich has quit [Ping timeout: 264 seconds]
jgrevich_ is now known as jgrevich
Neomex has joined #ruby
sea6ear has left #ruby ["Killed buffer"]
vlad_starkov has quit [Ping timeout: 276 seconds]
BonSequitur has joined #ruby
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
Neomex has quit [Client Quit]
cmedeiros has quit [Ping timeout: 246 seconds]
wedgex has quit [Remote host closed the connection]
roothacker has joined #ruby
EPIK has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
Yakko has joined #ruby
rdg has joined #ruby
tealmage has joined #ruby
zekefast has quit [Read error: Connection timed out]
jovy88 has joined #ruby
pitzips has quit [Quit: Leaving]
katsrc has quit [Quit: leaving]
katsrc has joined #ruby
roothacker has left #ruby [#ruby]
LyonJT has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
arya has quit [Ping timeout: 256 seconds]
Yakko_ has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 264 seconds]
zeade has quit [Quit: Leaving.]
rickruby has joined #ruby
tjcravey has quit [Ping timeout: 264 seconds]
chipotle_ has quit [Quit: cya]
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
rdg has quit [Quit: [quit]]
jeekl has quit [Ping timeout: 246 seconds]
krombr has joined #ruby
F1skr has joined #ruby
jnoob22 has joined #ruby
lkba has joined #ruby
tjcravey has joined #ruby
cek has quit [Ping timeout: 276 seconds]
P1RATEZ has quit [Quit: Read error: Text overflow]
mockra has joined #ruby
mockra_ has joined #ruby
yfeldblum has joined #ruby
headius has quit [Quit: headius]
sambao21 has quit [Quit: Computer has gone to sleep.]
jamesfung14 has quit [Ping timeout: 246 seconds]
Ortuna has quit [Quit: Computer has gone to sleep.]
saarinen has quit [Quit: saarinen]
graft has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
mockra has quit [Ping timeout: 276 seconds]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<Olipro> if I read a file and the first four bytes are 0xEA, 0x00, 0x01, 0xDD, how can I convert that into the integer 0xEA0001DD (big endian)
dustint has quit [Quit: Leaving]
io_syl has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby
JMcAfreak has quit [Ping timeout: 256 seconds]
apok has quit [Quit: apok]
bradhe has quit [Remote host closed the connection]
headius has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
Mattix has quit [Ping timeout: 246 seconds]
Targen has quit [Ping timeout: 276 seconds]
<apeiros> Olipro: check String#unpack
rickruby has quit [Remote host closed the connection]
saarinen has joined #ruby
<Olipro> that'll do perfectly, thanks
headius has quit [Client Quit]
tspike has quit [Ping timeout: 272 seconds]
LyonJT has quit [Quit: Leaving...]
jdunck has quit [Quit: Computer has gone to sleep.]
AudreyJean has left #ruby [#ruby]
awarner has quit [Remote host closed the connection]
jamesfung14 has joined #ruby
jrendell has joined #ruby
saarinen has quit [Client Quit]
baroquebobcat has joined #ruby
<Olipro> apeiros: is there a reciprocal for FixNum?
SAUCYSALAMANDER has quit [Ping timeout: 246 seconds]
SAUCYSALAMANDER has joined #ruby
Sel has quit [Quit: irc2go]
saarinen has joined #ruby
philcrissman has joined #ruby
kirun has quit [Quit: Client exiting]
<apeiros> Olipro: pack, just wrap it into an array
mikepack has quit [Remote host closed the connection]
<Olipro> apeiros: well, an array is what I would want it as in the first place
TomJ has quit [Quit: TomJ]
postmodern has joined #ruby
<Olipro> i.e. convert the fixnum 0xEA0001DD to [0xEA, 0, 1, 0xDD]
jdunck has joined #ruby
<apeiros> that'd be just plain old divmod
wargasm has joined #ruby
<apeiros> or bitshift if you prefer that
<apeiros> anyway, via pack/unpack, it'd be:
<apeiros> >> [0xEA0001DD].pack("N").unpack("C*") == [0xEA, 0, 1, 0xDD]
<eval-in> apeiros => true (http://eval.in/26471)
marr has quit [Ping timeout: 252 seconds]
arya has joined #ruby
<ereslibre> hi there. is someone experiencing something like this on mac os x ? https://gist.github.com/ereslibre/5558196
<Olipro> apeiros: that only works if it's a 32 bit int
<Olipro> >> [0x1234].pack('N').unpack('C*')
<eval-in> Olipro => [0, 0, 18, 52] (http://eval.in/26472)
<apeiros> Olipro: you didn't say anything to indicate it wasn't a 32 bit int
<apeiros> you get as good an answer as your question is…
<Olipro> ok, so then I want it to scale from 8 to 64 bits
<apeiros> though, you actually got the answer fitting your new question too: bitshift+and, or divmod
centr0 has joined #ruby
Mattix has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
wsterling has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
thetristan has quit [Quit: thetristan]
sepp2k has quit [Ping timeout: 272 seconds]
kemist has joined #ruby
syamajala has quit [Ping timeout: 256 seconds]
<Olipro> apeiros: well, since it'll always be on a boundary I'll just detect the size and use pack
snrobot has quit [Remote host closed the connection]
arya has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
Ripp__ has joined #ruby
mockra_ has quit [Remote host closed the connection]
brunoro has joined #ruby
Z_Mass has quit [Quit: Leaving]
saarinen has quit [Quit: saarinen]
Guest79063 has quit [Remote host closed the connection]
zastern has quit [Ping timeout: 252 seconds]
Michael_ has quit [Remote host closed the connection]
marcdel_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zastern has joined #ruby
graydot has quit [Quit: graydot]
kemist has quit [Remote host closed the connection]
Michael_ has joined #ruby
zastern has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 276 seconds]
nga4 has quit [Read error: Operation timed out]
arya has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
brunoro has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
tspike has joined #ruby
tockitj has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Ping timeout: 264 seconds]
spider-mario has quit [Read error: Connection reset by peer]
rupee has quit [Quit: Leaving]
tommyvyo has quit [Quit:]
bradhe has quit [Ping timeout: 276 seconds]
nezumi has joined #ruby
pkill has joined #ruby
samuel02 has quit [Remote host closed the connection]
SAUCYSALAMANDER has quit [Ping timeout: 276 seconds]
_huoxito has joined #ruby
predator217 has joined #ruby
evenix has joined #ruby
`p has quit [Ping timeout: 245 seconds]
SAUCYSALAMANDER has joined #ruby
rangle has quit [Quit: Textual IRC Client: www.textualapp.com]
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
zastern has joined #ruby
rangle has joined #ruby
emergion has joined #ruby
Proshot has quit [Quit: Leaving]
huoxito has quit [Ping timeout: 256 seconds]
predator117 has quit [Ping timeout: 272 seconds]
idkazuma has joined #ruby
evenix has quit [Ping timeout: 276 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
moos3 has quit [Quit: Computer has gone to sleep.]
blischalk has joined #ruby
brunoro has joined #ruby