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]
<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]
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
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]
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]
<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!
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]
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]
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>
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.
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
<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
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.
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).
<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).
<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
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]
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
<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
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]
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]
<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 ;)
<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?
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?