<DouweM>
a - in a gem name usually means :: for the class, _ in the gem name means a new CamelCased word
<DouweM>
there's a logic to it
bradhe has quit [Remote host closed the connection]
<shevy>
you can make up any logic too :D
<DouweM>
it's not made up, I've concluded this from seeing a lot of gems :P
bradhe has joined #ruby
<DouweM>
your gem would be called human_being-shevy for HumanBeing::Shevy :P
<crome>
are you a jeweller?!
<centrx>
Louse Humans
<DouweM>
Assuming you are one, of course
<shevy>
DouweM but when you see it from a lot of gems, it still does not mean there is any logic to it, I mean look at flies and what they eat, would you also eat what flies eat :P
<DouweM>
haha
<shevy>
now if I ever find someone
<DouweM>
you don't have to like it, but there is a consensus/common practice to it
<shevy>
who names the gem
<shevy>
foo_bar-ble
<DouweM>
yeah that's hella ugly
<DouweM>
I wouldn't go with that either
<DouweM>
I've seen it though
<shevy>
in a lot of gems?
<DouweM>
It kind of helps with bundler's "main file" resolution
<crome>
but why would a gem name imply what modules are there in it?
<DouweM>
it does actually use the gem name to resolve the file name to require, and it works like I said with - and _ for :: and CamelCase
<DouweM>
crome: as I said, bundler automatically requiring. At least with Rails
<DouweM>
Which is a fairly large part of the Ruby universe
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
klaut has quit [Remote host closed the connection]
<crome>
so if I write a gem that can fetch kitten pictures and name it ballsack
platzhirsch has left #ruby [#ruby]
rahult_ is now known as rahult
<crome>
and I have some weird modules in it
<DouweM>
bundler will try to require lib/ballsack.rb, yeah
gogiel has joined #ruby
<DouweM>
which would include a Ballsack class, supposedly
<crome>
although the convention for having a module with the same name kind of stands
<crome>
I get that bit
<crome>
but sub-namespaces?
andy__ has joined #ruby
<shevy>
now why would you name that ballsack
<DouweM>
yup. quick example: carrierwave-backgrounder with lib/carrierwave/backgrounder.rb
<shevy>
kittensack would be more appropriate
gogiel has quit [Client Quit]
Vovko has joined #ruby
jaywastaken has quit [Quit: This computer has gone to sleep]
<DouweM>
that's a bad example though
sailias has quit [Ping timeout: 265 seconds]
<DouweM>
because it's actually called carrierwave_backgrounder :P
<DouweM>
but if they had used a -, I'm pretty sure it would have worked
<DouweM>
I may have made that up though, who knows
<DouweM>
shevy: :)
jaywastaken has joined #ruby
jaywastaken has joined #ruby
jaywastaken has quit [Changing host]
<shevy>
now that is weird
<shevy>
to have foo_bar.rb require the foo/bar.rb file
<shevy>
why do they do that?
<shevy>
what madness has driven them
<shevy>
what drugs did they take as teenagers
<DouweM>
Hmmmm
<riceandbeans>
shevy: what did you do differently to get it to work?
<shevy>
so many questions...
<DouweM>
Looks like I made all of this up, and whatever/stuff.rb isn't actually required for a gem named whatever-stuff
ezrios has joined #ruby
<DouweM>
whatever-stuff.rb probably is though, but I cannot be sure about anything I say anymore
<DouweM>
Ignore anything I've said tonight
chris_thomson has quit [Quit: Zzz...]
<DouweM>
I'm getting some sleep
<crome>
even the things you asked?
<shevy>
riceandbeans I am not sure it works? but the syntax you showed on the pastie definitely does not work. I did (a) require 'net-dns-rbl' and (b) Net::Dns::Rbl::Netcheck.new('127.0.0.1')
<shevy>
hmmm
<shevy>
there was this statistical stuff for ruby
<shevy>
that gathered a lot of data
<crome>
rand?
<shevy>
like "do people use () or not", and show in %
gogiel has joined #ruby
<shevy>
nono
<shevy>
a page about ruby habits
<shevy>
I need to find it again :(
<crome>
oh
<crome>
interesting
<crome>
show me
speakingcode has joined #ruby
<shevy>
hehe next time I will store the URL in a local file so I wont forget again
chris_thomson has joined #ruby
pel_daniel has left #ruby [#ruby]
<crome>
at some point I started thinking about parentheses as well
<freeone3000>
"Bookmarks". We call them "bookmarks".
blackmesa has quit [Read error: Operation timed out]
tylersmith has quit [Remote host closed the connection]
<shevy>
I hate bookmarks
<crome>
like, I wouldnt ever use them for puts, but I would for rand, just to stick with a few very standard calls
juarlex_ has quit [Remote host closed the connection]
<shevy>
ok crome but
<shevy>
more generally
<shevy>
do you always do this:
Vovko has quit [Ping timeout: 246 seconds]
<shevy>
def foo arg1,arg2,arg3,*args
<crome>
yeah, I get it
<crome>
no, I dont
<shevy>
do you do:
<shevy>
cat.meow()
<riceandbeans>
shevy: I got it
<crome>
no, I dont
<riceandbeans>
shevy: you can't have camelcase variables like he used in the readme
<riceandbeans>
if you do all lowercase it works fine
<crome>
I only do super() where I have to and it botheres me even there
<shevy>
riceandbeans ah
<shevy>
riceandbeans I did not even read the example carefully :D
<riceandbeans>
shevy: so yeah
<shevy>
yeah crome that one stumps me up too
<shevy>
super vs super()
rudisimo has quit []
<riceandbeans>
I revert back to statement, if your readme is broken, so is your gem
<shevy>
the ruby parser can be a cnofusing beast, especially if you don't know how it behaves yet
<riceandbeans>
bad docs == bad code
<shevy>
*confusing
<crome>
its one of those weird quirks of the language
<shevy>
riceandbeans kinda
<shevy>
at least a README or EXAMPLE file should work
shinobi_one has quit [Quit: shinobi_one]
<riceandbeans>
shevy: if you intend on anyone else using your code it is
<shevy>
hehe
<shevy>
you come from perl land?
rainmanjam has quit [Remote host closed the connection]
<crome>
riceandbeans: but ruby code is so beautiful its self documenting!
<shevy>
I never got into releasing anything I wrote in perl
<shevy>
I sucked in perl
<shevy>
I actually found perl rather hard :\
<shevy>
php I was more productive in
<shevy>
crome it can be beautiful
<shevy>
but it can also be rather ugly
toastynerd has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
<crome>
the funny thing about perl is that it can make perfect sense if you use it without all those weird shorthands syntactic sugar
<crome>
+and
njection has joined #ruby
codeFiend has joined #ruby
rainmanjam has joined #ruby
philcris_ has joined #ruby
Vivekananda has joined #ruby
wallerdev has joined #ruby
gogiel has quit [Quit: leaving]
jaywastaken has quit [Quit: This computer has gone to sleep]
whomp has quit [Ping timeout: 268 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev>
literally every program is an algorithm
<wallerdev>
what do you like to do in programming that isnt an algorithm
philcrissman has quit [Ping timeout: 252 seconds]
<shevy>
really?
<shevy>
I never really managed to find the real beauty of perl :(
timonv has joined #ruby
<hfp>
I don't know, I meant this kind of questions like the one on that codility practice test. i.e. write a solution to an abstract hypothetical mathematics problem
<wallerdev>
if you dont like math thats fine
<wallerdev>
i hate math
patrick99e99 has joined #ruby
<wallerdev>
but you will probably have to do some simple math if you ever interview haha
Ziarkaen has quit [Remote host closed the connection]
postmodern has joined #ruby
<hfp>
simple math is ok but I don't enjoy trying to solve problems like that codility one. Do you know what I mean?
<DallasG>
isn't that question incorrect anyhow
<DallasG>
it says 0 < P < N
Es0teric has quit [Quit: Computer has gone to sleep.]
<DallasG>
therefore, P can't be N
<DallasG>
ah, nvm, N is the count, not the end index
<shevy>
hfp I hate algorithms as well but it's kinda the thing one has to go through eventually
<wallerdev>
:p
<shevy>
hfp because I hate math, I try to write things down in a logical way, and colourize it, and keep it as short as possible (so I dont have to burden my poor brain with this math crap too much)
<wallerdev>
this is pretty much like what youll be asked in an interview, so youll need to learn it at some point haha
alexju has joined #ruby
<shevy>
I hate interviewers
shlant has quit [Quit: Leaving.]
<wallerdev>
everyone does
<shevy>
wallerdev
<shevy>
you sound like an interviewer
<centrx>
Do you think it is safe to install bundler 1.6.0.rc2
<wallerdev>
ill be an interviewer soon
<wallerdev>
never had to interview people at my last job, but this job i will have to
<wallerdev>
ill ask them this question :p
rezzack has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jollyy has quit [Quit: jollyy]
timonv has quit [Ping timeout: 240 seconds]
Speed has quit [Ping timeout: 246 seconds]
lolmaus has quit [Ping timeout: 246 seconds]
<wallerdev>
i actually need to think of some good interview questions
<wallerdev>
anyone got some
<shevy>
not me
<shevy>
but ask us one example question please
<crome>
if you interview someone for a bank to implement algorithms for statistical analysis, ask about maths
<crome>
if you need a web developer, dont
<wallerdev>
i can ask you stuff ive heard in interviews if you want haha
<hfp>
so what, virtually any software dev job interview will have this kind of questions?
<wallerdev>
yeah most will have a question like that
<wallerdev>
maybe not as mathy, but could be worse
patrick99e99 has quit [Ping timeout: 268 seconds]
mansi has joined #ruby
sambao21 has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
<hfp>
If I take my time, I can solve easier abstract math problems but the codility ones they do my head in
philcrissman_ has quit [Remote host closed the connection]
<shevy>
hehe
<wallerdev>
ive been asked stuff like reverse all the words in a string, remove all duplicates from an array, to more abstract stuff like design how a facebook timeline could be represented, or what is a good data structure for representing an excel spreadsheet
cndiv has quit [Ping timeout: 264 seconds]
<wallerdev>
and some mathy stuff like generate a list of suitably random numbers that contains at least n of x number
nari has joined #ruby
<shevy>
well all these seem fairly ok
heftig has quit [Quit: Quitting]
<crome>
hfp: its an interesting problem, btw
<shevy>
go ask us a math question
<crome>
(on your link)
heftig has joined #ruby
<wallerdev>
asked about BFS, DFS, build a connect 4 game
<wallerdev>
idk, interviews are all over the place lol
nanoyak has joined #ruby
chipotle has quit [Quit: cya]
smathieu has quit [Remote host closed the connection]
chipotle has joined #ruby
smathieu has joined #ruby
chipotle has quit [Client Quit]
chris_thomson has quit [Quit: Zzz...]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
sambao21 has quit [Client Quit]
<wallerdev>
anyway if you want a job in tech you should come to SF, so you can hang out with me
<hfp>
crome: I'd be curious to see how you solve it?
b00stfr3ak has quit [Ping timeout: 268 seconds]
<crome>
hfp: so would I
<shevy>
hehehe
<shevy>
that's how it is done
<shevy>
push the problem away to someone else, who has to solve it
<crome>
I used to do similar challenges long ago
<crome>
osix.net and stuff
jollyy has joined #ruby
<crome>
very good brain exercise
<riceandbeans>
what's the preferred way of sending email in ruby?
<wallerdev>
smtp
Vivekananda has quit [Ping timeout: 265 seconds]
<Nowaker>
hfp: if employers ask such questions, or ask you to do the c,odilitty, they are not worth anything
<riceandbeans>
is it in core? is there a specific gem?
<wallerdev>
thish question isnt that bad for an interview question
mikemar10 has joined #ruby
subbyyy_ has quit [Ping timeout: 252 seconds]
<wallerdev>
like you can go through it, take the first number, then sum all the rest, then move one over, add that number to the first variable, subtract it from the other and check if that difference is bigger than your last one
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
oso96_2000 has quit [Ping timeout: 240 seconds]
jottr has quit [Read error: Operation timed out]
rainmanjam has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
Es0teric has joined #ruby
oso96_2000 has joined #ruby
mikepack_ has quit [Read error: Operation timed out]
senayar_ has joined #ruby
yasushi has quit [Remote host closed the connection]
<hfp>
wallerdev: I'll hang out with you in SF, sure, but don't ask me those absurdly abstract math questions :)
<wallerdev>
:D
<wallerdev>
where you at hfp
geggam has quit [Remote host closed the connection]
<hfp>
Montreal. I could use SF's year-round summer
benzrf|offline is now known as benzrf
<benzrf>
hej da
<wallerdev>
oh cool
<wallerdev>
yeah i moved from michigan
<wallerdev>
weather is much nicer here
rahult is now known as rahult_
rahult_ is now known as rahult
mikepack has quit [Ping timeout: 265 seconds]
<wallerdev>
southern california has more summery weather though
<wallerdev>
like san diego area
<f0ster>
hfp except it never actually gets hot
f0ster has quit [Remote host closed the connection]
<wallerdev>
SF is kinda not too hot not too cold
dkamioka_ has quit [Remote host closed the connection]
predator217 has joined #ruby
senayar has quit [Ping timeout: 268 seconds]
The_NetZ has joined #ruby
<The_NetZ>
hallo o/
<benzrf>
hello The_NetZ
<The_NetZ>
benzrf: how do you do?
<benzrf>
quite well thank u
<The_NetZ>
lets see.. how to phrase this question. ok, current ruby excludes '.' from the loadpath(?); how to add this back in in an executable with embedded ruby?
<benzrf>
$: << '.'
smathieu has joined #ruby
skammer_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev>
or $LOAD_PATH R)
<The_NetZ>
benzrf: yes, this is the way one would do it in say irb or a script, but I'm writing in c/c++
<The_NetZ>
R) ?
<wallerdev>
sorry
<wallerdev>
its a pirate face on twitch
<wallerdev>
lol
<The_NetZ>
ah
predator117 has quit [Ping timeout: 252 seconds]
<benzrf>
shouldnt that be P)
<The_NetZ>
I was thinking it was some strange ruby thing I never ran into :P
<wallerdev>
no idea
zz_jrhorn424 is now known as jrhorn424
lolmaus has joined #ruby
incade_ has joined #ruby
ephemerian has left #ruby [#ruby]
markisonfire has quit [Quit: markisonfire]
<The_NetZ>
blarg.
speakingcode has quit [Ping timeout: 268 seconds]
saarinen has quit [Quit: saarinen]
speakingcode has joined #ruby
Photism2 has joined #ruby
x77686d has quit [Quit: x77686d]
badhatter_ has joined #ruby
Photism_ has quit [Read error: Connection reset by peer]
DallasG has quit [Read error: Operation timed out]
jzig has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
whomp has joined #ruby
senayar_ has quit [Remote host closed the connection]
<benzrf>
yo who wants to try out my 5% done half-baked experimental project thingy
afex has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
george2 has quit [Remote host closed the connection]
<wallerdev>
ill try it
<wallerdev>
as long as its legal
<wallerdev>
and runs on a mac
redlines has quit [Ping timeout: 265 seconds]
badhatter has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
<benzrf>
=o
redlines has joined #ruby
<benzrf>
wallerdev: you will need to acquire FUSE first
<benzrf>
libfuse-dev tbp
<wallerdev>
hm
<wallerdev>
not sure i trust something that needs access to a filesystem
<wallerdev>
lol
andy___ has joined #ruby
DallasG has joined #ruby
andy___ is now known as Guest72450
QuintinAdam has quit [Ping timeout: 268 seconds]
zz_jrhorn424 is now known as jrhorn424
andy__ has quit [Read error: Connection reset by peer]
whomp has quit [Ping timeout: 252 seconds]
<The_NetZ>
ditto XD
jorts has joined #ruby
lukec has quit [Quit: lukec]
agrinb has quit [Ping timeout: 265 seconds]
jrhorn424 is now known as zz_jrhorn424
x77686d has joined #ruby
<benzrf>
wallerdev: trust meeee
_Andres has quit [Ping timeout: 240 seconds]
<The_NetZ>
yes, trust some randome dude online :P
<wallerdev>
maybe if i had a vm on hand :p
jorts has left #ruby [#ruby]
fgo has joined #ruby
jorts has joined #ruby
<wallerdev>
i just foundout git checkout - works just like cd -
<wallerdev>
how cool is that
<wallerdev>
lol
tkuchiki has joined #ruby
evenix has quit [Remote host closed the connection]
nari has quit [Ping timeout: 240 seconds]
<benzrf>
sweet.
freerobby has quit [Quit: Leaving.]
<The_NetZ>
wallerdev: so git checkout something will do git clone something && cd something ?
lethjakman has quit [Ping timeout: 268 seconds]
razrunelord has quit []
<wallerdev>
no i meant git checkout - will take you to the last branch you checked out
<benzrf>
wallerdev: last commit, rather
<wallerdev>
so if youre on master and do git checkout cool_branch
Voodoofish430 has quit [Quit: Leaving.]
<benzrf>
you check out commits, not branches
<The_NetZ>
ah, interesting.
mansi has quit [Remote host closed the connection]
<benzrf>
and you can checkout refs that point to commits
weems has joined #ruby
weems has joined #ruby
<wallerdev>
you can do git checkout - to switch back to master, then git checkout - to switch back to the branch
Spami has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
<wallerdev>
you know what i mean benzrf haha
pu22l3r has joined #ruby
mansi has joined #ruby
<wallerdev>
git checkout branchname switches you to a branch
shlant has joined #ruby
shlant has left #ruby [#ruby]
robustus has quit [Ping timeout: 255 seconds]
jorts has left #ruby [#ruby]
snath has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus has joined #ruby
gilest has quit [Remote host closed the connection]
afex has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
george2 has joined #ruby
cover_ has joined #ruby
mary5030 has joined #ruby
juarlex has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
cover has quit [Ping timeout: 268 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
vpretzel has joined #ruby
jason___ has joined #ruby
mansi has joined #ruby
mansi has quit [Client Quit]
jason___ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
jason___ has joined #ruby
<The_NetZ>
what was the last version of ruby to include '.' in the loadpath by default?
patrick99e99 has joined #ruby
SidWu_ has joined #ruby
SidWu_ has quit [Max SendQ exceeded]
<benzrf>
1.8 i thinkws
<The_NetZ>
benzrf: hrm, can't find a 1.8 tarball...
amclain has joined #ruby
kbarry_ has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<The_NetZ>
there we go, just edited some links :P
jason___ has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<wallerdev>
benzrf: just installed it and got a kernel panic, and now i cant boot
<wallerdev>
:p
Solnse has quit [Quit: Leaving.]
freezey has joined #ruby
<benzrf>
>emblyeng
<benzrf>
stop lying u lyer
jason___ has joined #ruby
fieldfirst has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
dx7 has quit [Remote host closed the connection]
fieldfirst has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
dx7 has joined #ruby
byprdct has joined #ruby
michaeldeol has joined #ruby
zachalle_ has quit [Remote host closed the connection]
aspires has quit []
zachallett has joined #ruby
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shutchie has quit [Ping timeout: 252 seconds]
fbernier has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
dx7 has quit [Ping timeout: 252 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<benzrf>
wallerdev: did u install fuse =3
<hfp>
guys, it looks like I broke my ruby install... I did `brew remove ruby` and `sudo rm -rf /usr/local/ruby` because I think I installed it both ways a while ago (yeh, not very clever). Now I downloaded JewelryBox to reinstall rvm. But when I launch the actual JewelryBox app, nothing happens at all.
kennym has quit [Quit: Leaving.]
<wallerdev>
no i didnt haha sorry
<wallerdev>
dont trust it enough on my work computer
<wallerdev>
check your bashrc or bash_profile if you use bash
<hfp>
Otherwise, JewelryBox just doesn't open. Nothing happens. I double click and nothing
<The_NetZ>
hfp: is that even ruby?
fieldfirst has quit [Ping timeout: 252 seconds]
fieldfirst has joined #ruby
<hfp>
The_NetZ: well yes, RVM and Ruby work together if I understand everything
jamto11 has joined #ruby
<hfp>
wallerdev: Nothing about rvm in ~/.bash_profile
patrick99e99 has quit [Ping timeout: 268 seconds]
* The_NetZ
doesn't use rvm anymore since switching to arch, since its no longer needed to gain the latest ruby and jruby
sambao21 has joined #ruby
<wallerdev>
hfp: well im heading home, will be online again in like 15 mins from there, but good luck haha
wallerdev has quit [Quit: wallerdev]
kennym has joined #ruby
mikepack has joined #ruby
aspires has joined #ruby
<thoraxe>
dumb ruby question. if i create a new Foo, and don't pass in a param, and then do foo.to_json, the param i didn't pass in is not in the json. but if I do a new Foo and then foo.param=nil; foo.to_json then I get a "null". I'm wondering how I could "delete" the param from the instance of the object so that .to_json doesn't include the param, if that makes any sense
codeFiend has joined #ruby
cndiv has joined #ruby
jamto11_ has joined #ruby
lethjakman has joined #ruby
<benzrf>
thoraxe: you can't delete ivars afaik sorry
jorts has joined #ruby
<The_NetZ>
thoraxe: you could use json stuffs to remove that after the fact from the json
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
tjr9898 has joined #ruby
gilest has joined #ruby
rm__ has joined #ruby
postmodern has quit [Quit: Leaving]
<thoraxe>
eh, wasn't super important
juarlex has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
derek_c has joined #ruby
snath has joined #ruby
tvw has quit []
hfp is now known as hfp`away
mikepack has quit [Ping timeout: 264 seconds]
snath has quit [Client Quit]
snath has joined #ruby
fbernier has joined #ruby
smathieu has quit [Ping timeout: 265 seconds]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
hfp`away is now known as hfp
reset has quit [Ping timeout: 252 seconds]
keen__ is now known as keen_
stephenmac7 has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
axsuul has joined #ruby
patrick99e99 has joined #ruby
chipotle has quit [Quit: cya]
nanoyak has quit [Quit: Computer has gone to sleep.]
freezey has quit [Remote host closed the connection]
S0da has joined #ruby
mr_snowf1ake has joined #ruby
abdulsattar has joined #ruby
yasushi_ has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
muscle-man has joined #ruby
SonicX has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 265 seconds]
patrick99e99 has joined #ruby
JasmeetQA has joined #ruby
boombadaroomba has quit [Ping timeout: 246 seconds]
<mr_snowf1ake>
in the Ruby core library, why does Complex#real? always return false? i know this is by design, but it seems peculiar to me. Since Complex(7) is a real number in the complex space, wouldn't it be more logical if Complex#real? returned true?
lw has quit [Quit: s]
rahult_ is now known as rahult
<mr_snowf1ake>
in that, Complex(7).real? should return true, and Complex(7, 1).real? should return false
armyriad has quit [Quit: Leaving]
<timpa>
newbie problem w/my old ruby/rails site: video upload feature using open-uri (ruby 1.8) now getting 404.
patrick99e99 has quit [Ping timeout: 268 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
arietis has quit [Quit: Computer has gone to sleep.]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
tylersmith has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
tylersmith has joined #ruby
nfk has joined #ruby
pfg has joined #ruby
<pontiki>
can you get to the URL outside your app?
<timpa>
yes
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
MatthewsFace has joined #ruby
agrinb has joined #ruby
arietis has joined #ruby
tylersmith has quit [Ping timeout: 252 seconds]
yasushi_ has quit [Remote host closed the connection]
nfk has quit [Ping timeout: 240 seconds]
<pontiki>
mr_snowf1ake: i believe that Complex#real? always returns false, meaning that a Complex object is never real
agent_wh1te has joined #ruby
rahult is now known as rahult_
<mr_snowf1ake>
pontiki, i know. i'm wondering why that was designed as such.
aagdbl has quit [Quit: This computer has gone to sleep]
agent_wh1te has quit [Read error: Connection reset by peer]
<pontiki>
i believe to make it useful when checking the parent class, Numeric
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
<mr_snowf1ake>
hmm alright.
lyanchih_ has joined #ruby
<havenwood>
mr_snowf1ake: good point though, the real ones are real
boombadaroomba has joined #ruby
<havenwood>
Complex(7, 0) or Complex(7)
mattmcclure has quit [Quit: Connection closed for inactivity]
agent_white has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
badhatter_ has quit [Read error: Connection reset by peer]
<mr_snowf1ake>
havenwood: i figured there was a good reason for it and was just curious what that was, but perhaps you're right, i suppose it could be seen as an improvement.
<mr_snowf1ake>
*an issue
Hanmac has joined #ruby
IcyDragon has quit [Quit: Space~~~]
<pontiki>
it seems more structural than mathematical
<pontiki>
Numeric's .real? seems to only function as a means to detect whether it's a Complex structure or not
rahult_ is now known as rahult
<pontiki>
idk what ppl use it for, so i can't really say
browndawg has quit [Quit: Leaving.]
<havenwood>
i think just nobody asks a Complex if its real so it never came up :P
<havenwood>
it's real*
<pontiki>
if they *know* it's a Complex, there wouldn't be any point, sure
<pontiki>
and you can use is_a? to find out
<pontiki>
so, meh, idk
connor_goodwolf has joined #ruby
patrick99e99 has quit [Ping timeout: 265 seconds]
AussieDownUnder has quit [Ping timeout: 265 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
juarlex has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
f0ster has quit [Remote host closed the connection]
kevinykchan has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
Xiti` has joined #ruby
bricker_ has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Remote host closed the connection]
dgaffney_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
dgaffney has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 268 seconds]
DallasG has joined #ruby
tcstar has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
agent_white has joined #ruby
<mr_snowf1ake>
i suppose the reasoning could be, as pontiki says, entirely structural: the doc for Numeric#real? says "Returns true if num is a Real (i.e. non Complex)." the key point here is that Complex is capitalized, specifying that they are talking about the ruby class, not the mathematical class of numbers.
mary5030 has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
<havenwood>
mr_snowf1ake: I dunno though, those Complex numbers that are real...
browndawg has joined #ruby
mercwithamouth has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
rvraghav93_ has joined #ruby
<havenwood>
>> class Complex; def real?; imaginary.zero? end end; [Complex(7, 0).real?, Complex(7, 1).real?]
MatthewsFace has quit [Quit: This computer has gone to sleep]
PLejeck has joined #ruby
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
sdouglas has joined #ruby
joshwines has joined #ruby
joshwines has left #ruby [#ruby]
iliketurtles has joined #ruby
mikepack has joined #ruby
diegoviola has quit [Remote host closed the connection]
nfk has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
BeingUntoDeath has quit []
timonv has joined #ruby
Cache_Money has joined #ruby
bradhe has quit [Remote host closed the connection]
sigurding has joined #ruby
bradhe has joined #ruby
wallerdev has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
pwh has quit []
Celm has joined #ruby
dseitz has joined #ruby
Celm has quit [Remote host closed the connection]
dseitz_ has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
abdulsattar has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
cj3kim has joined #ruby
patrick99e99 has joined #ruby
Vlat- has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
dseitz has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
DallasG_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has quit [Remote host closed the connection]
papercode has quit [Quit: WeeChat 0.4.3]
axsuul has joined #ruby
lemonsparrow has joined #ruby
funburn has quit [Quit: funburn]
timonv_ has joined #ruby
juarlex has quit [Remote host closed the connection]
patrick99e99 has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
lister has joined #ruby
lister has left #ruby [#ruby]
spicerack has joined #ruby
papercode has joined #ruby
Celm has joined #ruby
lavaman1 has quit [Quit: Leaving.]
Celm_ has joined #ruby
whomp has quit [Ping timeout: 265 seconds]
tagrudev has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
aagdbl has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
gaussblurinc has joined #ruby
alexju has joined #ruby
timonv_ has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
sdouglas has quit [Remote host closed the connection]
mary5030 has joined #ruby
sdouglas has joined #ruby
dseitz_ is now known as dseitz
freerobby has joined #ruby
phansch has joined #ruby
jamto11 has joined #ruby
sigurding has quit [Quit: sigurding]
whomp has joined #ruby
jamto11_ has joined #ruby
AussieDownUnder has quit [Ping timeout: 268 seconds]
kobain has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
mary5030 has quit [Ping timeout: 265 seconds]
jamto11_ has quit [Read error: Operation timed out]
freerobby has quit [Ping timeout: 265 seconds]
iliketurtles has quit [Quit: zzzzz…..]
Macaveli has joined #ruby
Hamburglr has quit [Ping timeout: 265 seconds]
jamto11 has quit [Ping timeout: 264 seconds]
Macaveli has quit [Remote host closed the connection]
james_d_h has joined #ruby
Macaveli has joined #ruby
patrick99e99 has joined #ruby
chipotle has quit [Quit: cya]
<james_d_h>
If I wanted to print two values of a has, that is stored in an array, how would i do that? ideo.parsed_response[0]['title'] works, but ideo.parsed_response[0]['title', 'url'] doesn't.
cj3kim has quit [Remote host closed the connection]
<apeiros>
james_d_h: see Hash#values_at
whomp has quit [Ping timeout: 268 seconds]
pfg has joined #ruby
tvw has joined #ruby
wallerdev has quit [Read error: Connection reset by peer]
agent_wh1te has joined #ruby
anarang has joined #ruby
derek_c has joined #ruby
mbuf has joined #ruby
patrick99e99 has quit [Ping timeout: 246 seconds]
<mbuf>
is there an example on how to write RSpec tests for code using Mutex.synchronize?
ktosiek has joined #ruby
agent_white has quit [Ping timeout: 268 seconds]
aganov has joined #ruby
agent_wh1te has quit [Read error: Connection reset by peer]
hermanmunster has quit [Remote host closed the connection]
apeiros has joined #ruby
hermanmunster has joined #ruby
abdulsattar has joined #ruby
agent_white has joined #ruby
skammer has joined #ruby
cina has joined #ruby
AussieDownUnder has joined #ruby
agrinb has joined #ruby
apeiros has quit [Ping timeout: 265 seconds]
hermanmunster has quit [Ping timeout: 252 seconds]
Celm_ has quit [Remote host closed the connection]
agent_white has quit [Client Quit]
cina has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has quit [Ping timeout: 246 seconds]
bal has joined #ruby
rdark has joined #ruby
chipotle has joined #ruby
mrnugget has quit [Quit: mrnugget]
cina has joined #ruby
wallerdev has joined #ruby
<Vlat->
linking shared-object psych.bundle
<Vlat->
ld: warning: directory not found for option '-L/Users/travis/.sm/pkg/active/lib'
<Vlat->
…Facepalm :) Because there’s no and never was /Users/travis, it’s hardcoded to fetched gem :)
toastynerd has joined #ruby
reactormonk has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<reactormonk>
I run `gem install pry` but `gem list` doesn't show it installed afterwards
cj3kim has joined #ruby
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<reactormonk>
hmm, how do I add gem paths?
Shidash has quit [Ping timeout: 240 seconds]
<reactormonk>
fixed it with some handywork.
nomenkun has joined #ruby
redlines has quit [Ping timeout: 252 seconds]
redlines has joined #ruby
lemonsparrow has quit [Ping timeout: 245 seconds]
derek_c has quit [Ping timeout: 268 seconds]
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
patrick99e99 has joined #ruby
Macaveli has quit [Quit: Leaving]
robert_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<TuxLyn>
centrx, basickly I'm using row.match(regex) to match set of table rows <tr> but some <tr>'s are empty
<morenoh149>
I'll try that. It's just hard looking up documentation on what the heck $?.success? means
rahult has joined #ruby
<TuxLyn>
so it contains nils in it
rahult has quit [Client Quit]
napcae has quit [Quit: Reconnecting]
<centrx>
TuxLyn, If "title" is merely a "simple title", then why are you accessing it as an array?
<centrx>
TuxLyn, Put the rest of the real code
<TuxLyn>
sorry can't
<centrx>
morenoh149, What's $?.success? ?
<Hanmac>
hey Rdoc question, what is the best style to document what exceptions an method can raise?
freerobby has quit [Ping timeout: 265 seconds]
dagobah has joined #ruby
<TuxLyn>
all I want to know is how to remove stupid nil from when using match :)
<centrx>
morenoh149, If you mean looking up symbols, yeah it is hard. I just happen to know that the backtick function is in Kernel, so that helps.
<Vlat->
never ever try to use Erlang R16 with KERL Erlang package manager, and Ruby with RVM on same machine. Spent a whole morning, to figure out, why are my gems are failing to updating. Finally found, that KERL utility names (utility wrote by some dumb scholar) are confilicting with some system tools, like install. :)
poikon has quit [Remote host closed the connection]
tacos1de_ has joined #ruby
atmosx_ has joined #ruby
<TuxLyn>
it works when I do something like this > puts title[1] unless title.nil? too but when I try to put it into variable it breaks down.
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
tacos1de has quit [Ping timeout: 265 seconds]
end_guy has quit [Ping timeout: 265 seconds]
<morenoh149>
devdocs.io is the best thing that's ever happened for docs lol
<morenoh149>
there are two types of ruby .success?
<morenoh149>
I needed the second one :/
atmosx has quit [Ping timeout: 265 seconds]
<TuxLyn>
morenoh149, thanks man did not know about devdocs :D
nfk has quit [Ping timeout: 264 seconds]
NovapaX has joined #ruby
<TuxLyn>
damn it is very good ^_^
<TuxLyn>
better then official
<morenoh149>
jeez, it's really helped me. Like sometimes I'm doing js, but the function turns out to be a dom thing I've never heard about
<morenoh149>
wow glad I helped heh
bradhe has joined #ruby
patrick99e99 has joined #ruby
cina has quit [Quit: leaving]
cina has joined #ruby
cj3kim has quit [Remote host closed the connection]
incade_ is now known as incade
<TuxLyn>
got to love this dotIO domain websites :-)
<tcarlsen>
I accidently removed my system ruby on osx mavericks.. I downloaded the mavericks insatller and mounted InstallESB.dmg then ran "BaseSystemBinaries" and "BaseSystemResources" but dont seem to work any ideas?
<gr33n7007h>
Hanmac, How do I install latest version?
<crome>
it is a pretty broad question
patrick99e99 has joined #ruby
tcstar has quit [Ping timeout: 268 seconds]
Abak has quit [Quit: Leaving]
chipotle_ has joined #ruby
dangerousdave has joined #ruby
<gr33n7007h>
Hanmac, I'm arch linux you reckon a sudo pacman -Syu should do it, being a rolling release and all?
<shevy>
a trolling release?
<Hanmac>
i dont play with arch linux ... on my system i used selfcompiled nightly versions
chipotle_ has quit [Read error: Connection reset by peer]
<crome>
gr33n7007h: maintaining different versions of ruby system-wide is a pain, I don't know who specifically arch deals with it
<crome>
I recommend rbenv
<crome>
how*
chipotle_ has joined #ruby
oso96_2000 is now known as oso|away
<crome>
deoends on what you want to use ruby for
<crome>
and I cant type
chipotle has quit [Ping timeout: 268 seconds]
CyborgCygnus has quit [Ping timeout: 268 seconds]
<shevy>
lol
blackmesa has quit [Ping timeout: 265 seconds]
einarj has joined #ruby
<Hanmac>
apeiros: OMG did you read the recent ruby Changelog? "support Symbol GC" ;P !!
mehlah has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
<shevy>
maintaining system wide ruby can be simple
<shevy>
use --prefix into versioned directories
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has quit []
<gr33n7007h>
I'm gonna do a full system upgrade and see :)
chipotle has joined #ruby
<gr33n7007h>
be bk shortly
morenoh150 has joined #ruby
<crome>
shevy: its more like a hell for the package manager
<pipework>
gr33n7007h: I would use chruby and ruby-install
<crome>
at least it is totally ridiculous in gentoo
<pipework>
gr33n7007h: They're the simplest tools that don't do terrible and stupid things.
<shevy>
crome sure because package managers are not fit to deal with appdirs
<shevy>
they default to /usr prefix alone
<pipework>
Most system package managers, that is, shevy.
<shevy>
you know of one that can handle versioned directories?
rdark has quit [Quit: leaving]
<pipework>
shevy: Any one of them can.
<crome>
portage is smarter than that, it can keep the rubies separate alright
morenoh149 has quit [Ping timeout: 264 seconds]
<pipework>
It all has to do with packaging, not the limitations of the package manager.
<shevy>
pipework can you give a specific example how to achieve that?
dukz has quit [Remote host closed the connection]
<certainty>
crome: but you can only ever have one ruby activated no?
<certainty>
via eselect
<pipework>
shevy: Look at debian's ruby1.8 and ruby1.9 packages.
<crome>
certainty: its really only the ruby symlink in /usr/bin
<crome>
certainty: you can launch different rubies directly
sdouglas has quit [Remote host closed the connection]
<certainty>
yeah true. I meant with just /usr/bin/env ruby
sdouglas has joined #ruby
skammer has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
napcae_ has joined #ruby
<shevy>
pipework does debian's approach work with ruby 1.8.6 side by side with 1.8.7 ?
napcae_ has quit [Client Quit]
<pipework>
shevy: It could if someone packaged it up.
marcdel has joined #ruby
sk87 has joined #ruby
<pipework>
Debian's repos don't contain packages that does that though..
<shevy>
how so? they use the same prefix for ruby lib dir with the same ABI version
<pipework>
certainty: You can only have one file there, yeah. It can be the executable or a symlink.
dukz has joined #ruby
tacos1de_ has quit [Ping timeout: 265 seconds]
<pipework>
shevy: What makes you think a package can't do what you can do without a package management system?
Guest67249 has quit [Ping timeout: 268 seconds]
<shevy>
pipework because of conflicting targets - it's why they must symlink at /usr/bin/ruby to the appropriate binary in question. This of course won't work with /usr/lib prefix if they use the same ABI version
marcdel has quit [Client Quit]
<pipework>
shevy: If you want to have it update-alternatives to a specific ruby, yeah
<pipework>
But that's just pointing symlinks around and waffling other variables.
rdark has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<shevy>
does /etc/alternatives contain symlinks to libraries?
tacos1de has joined #ruby
<shevy>
yeah, symlinks is the most common solution, different distributions make use of that; I am unsure how eselect works though
morenoh150 has quit [Ping timeout: 246 seconds]
<shevy>
and whether eselect allows people to have ruby 1.9.2 and 1.9.3 at the same time :)
sdwrage has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 265 seconds]
browndawg has quit [Quit: Leaving.]
sdwrage has joined #ruby
<shevy>
certainty what is your OS btw?
<rdark>
shevy: there's also scl-utils in rhel 6, relatively new
<gr33n7007h>
"00:AA:11:BB:22:CC".split(":").map{ |b| b.to_i(16) } why can't i do "00:AA:11:BB:22:CC".split(":").map(&:to_i(16)) ?
obs has joined #ruby
<certainty>
to proc doesn't accept args
<gr33n7007h>
certainty, That solves that, thanks
<certainty>
there are a gazillion attempts to solve this. We've had this the other day. Almost everybody inhere has an implementation which does allow args
rahult has quit [Ping timeout: 240 seconds]
<shevy>
apeiros wizard robe... are you the guy that goes to show what's underneath that robe???
<certainty>
the nicest one was through callables. Something like #map(&:to_i.(16))
ben3 has joined #ruby
<gr33n7007h>
no biggy, just something that was on my mind :)
dukz has quit [Remote host closed the connection]
<certainty>
yeah i need that often too
popl has joined #ruby
popl has joined #ruby
<gr33n7007h>
would be nice though
agrinb has joined #ruby
ghr has joined #ruby
mikepack has quit [Ping timeout: 265 seconds]
Merks has joined #ruby
notjohn has quit [Read error: Connection reset by peer]
notjohn has joined #ruby
dangerousdave has quit [Quit: Leaving...]
rvraghav93_ has quit [Read error: Connection reset by peer]
Stalkr_ has joined #ruby
sdouglas has joined #ruby
<Hanmac>
i wrote a patch that allows Symbol -> proc to hold args like this, i think i still have them somewhere
maasha has joined #ruby
_root has joined #ruby
agrinb has quit [Ping timeout: 246 seconds]
<maasha>
morn
okdas_ has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
sski has joined #ruby
<apeiros>
hi maasha
lele has quit [Ping timeout: 246 seconds]
<apeiros>
maasha: can you relink me your forkpool?
sdouglas has quit [Ping timeout: 240 seconds]
<maasha>
apeiros: sure
fabrice31 has quit [Remote host closed the connection]
<maasha>
apeiros: what annoys me most is that I don't really know where to start finding out why it is hanging. I suspect that it is IO blocking and may have nothing to do with fork.
rahult has joined #ruby
<maasha>
apeiros: debugging and forking is a mess
<krz>
how can i turn ['a', 'b', 'c'] to "'a', 'b', 'c'"
<apeiros>
krz: map + join
<krz>
what would the map be doing?
<apeiros>
add the quotes
ikaros has joined #ruby
sski has quit [Ping timeout: 265 seconds]
<dumdedum>
"'"+foo.join("', '") + "'"
rahult has quit [Client Quit]
lele has joined #ruby
<krz>
actually array.join("', '") looks like it
fabrice31 has joined #ruby
timonv has quit [Remote host closed the connection]
<apeiros>
that only gets you "a', 'b', 'c" (unless you omitted the wrapping, as suggested by dumdedum)
lemonsparrow has joined #ruby
sski has joined #ruby
dangerousdave has joined #ruby
Xeago has joined #ruby
Advocation has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
canton7-mac has joined #ruby
b00stfr3ak has quit [Ping timeout: 264 seconds]
SonicX has joined #ruby
elaptics`away is now known as elaptics
lighthair has joined #ruby
francisfish has joined #ruby
agjacome has quit [Quit: leaving]
<lighthair>
what does "undefined method `ssl_version=' for #<Net::HTTP www.evernote.com:443 open=false>" means
nvrch has quit [Quit: nvrch]
camilasan has joined #ruby
nfk has quit [Ping timeout: 252 seconds]
* apeiros
puts on captain obvious hat
relix has joined #ruby
<apeiros>
it means that your instance of Net::HTTP does not have a method ssl_version=, which you try to call (directly or indirectly)
shaileshg has joined #ruby
luckyruby has quit [Remote host closed the connection]
deadlock has quit [Ping timeout: 268 seconds]
Abyss__ has joined #ruby
_root has quit [Quit: Leaving]
mbuf has quit [Ping timeout: 252 seconds]
Stalkr_ has quit [Quit: Leaving...]
<lighthair>
I know very little about ruby. When I see this tip, I want to install libopenssl-ruby on my Ubuntu 12.04, but the terminal always let me choose libruby1.8 to install. I don't konw why. What should I do?
flowerpot has joined #ruby
kitak_ has joined #ruby
yasushi has joined #ruby
yasushi has quit [Remote host closed the connection]
flowerpot has quit [Client Quit]
flowerpot has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
klaut has quit [Remote host closed the connection]
bradhe has joined #ruby
LexicalScope` has quit [Ping timeout: 265 seconds]
nopc0de has joined #ruby
keen_ has joined #ruby
nari has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
lolmaus_ has joined #ruby
andrewlio has joined #ruby
freerobby has joined #ruby
lolmaus has quit [Ping timeout: 268 seconds]
lighthair has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tsunamie>
Hi There, I am looking to start learning more a bout ruby for debugging purouses. I have done bash and java before so I am familare with programing. Was hoping you guys could advise me on the follow. I primarily want to learn ruby so I can help with the development/debugging of logstash. (jruby) I have a set of .rb files which I want to run thougth and see the values of each of the varables and loop throught the logic as
<tsunamie>
the system is running. Does anyone know how I would do that? Normally I would use eclipse and have the java project jecked out and built with Maven. Any guides you can provide would be great
pfg has quit [Client Quit]
Jetchisel has joined #ruby
<tsunamie>
any takers?
flowerpot has quit [Quit: leaving]
claymore has quit [Quit: Leaving]
mengu has quit [Remote host closed the connection]
<tsunamie>
values/variable as they change when each line is run
nvrch has joined #ruby
skammer has joined #ruby
<tsunamie>
an example is that I want to look at what happens every single time the s3.rb file is called and iterate throught each line as the code is run and look at all the values of the code as it's being run
fjfish has joined #ruby
dukz has quit [Remote host closed the connection]
<Hanmac>
apeiros: Oculus VR died yesterday :'( ... facebook did bought the aquire Oculus
<apeiros>
I know
lyanchih__ has joined #ruby
<apeiros>
doesn't mean it's dead, though
<sbob99>
Join #irc
sbob99 has quit [Quit: Bye]
blackmesa has joined #ruby
<Hanmac>
lets say it died for me ...
pedda has joined #ruby
Merks has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
poikon has quit [Remote host closed the connection]
poikon has joined #ruby
xcv has joined #ruby
yasushi has joined #ruby
shevy has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
noop has quit [Ping timeout: 264 seconds]
Speed has joined #ruby
francisfish has joined #ruby
arietis has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
fjfish has quit [Ping timeout: 246 seconds]
rahult has joined #ruby
_Andres has joined #ruby
Rix has quit [Ping timeout: 252 seconds]
mengu__ has joined #ruby
Rix has joined #ruby
pfg has joined #ruby
newbie1r has joined #ruby
newbie1r has quit [Client Quit]
kitak has joined #ruby
bradhe has joined #ruby
himsin has joined #ruby
poikon has quit [Remote host closed the connection]
timonv has joined #ruby
kitak_ has quit [Ping timeout: 260 seconds]
hiall has joined #ruby
bahar has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
rvraghav93 has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
noop has joined #ruby
yfeldblum has joined #ruby
cjk101010 has quit [Ping timeout: 268 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
freerobby has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago_ has quit [Read error: Connection reset by peer]
SonicX has quit [Ping timeout: 252 seconds]
Xeago_ has joined #ruby
tvw has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
<DouweM>
benzrf|offline: so, what'd you want me to try?
Xeago_ has quit [Remote host closed the connection]
Bounga has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
agrinb has joined #ruby
CyborgCygnus has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 265 seconds]
_5kg has joined #ruby
abra_ has joined #ruby
francisfish has quit [Remote host closed the connection]
abra has quit [Ping timeout: 268 seconds]
poikon has quit [Remote host closed the connection]
Vlat- has quit [Read error: Connection reset by peer]
poikon has joined #ruby
pfg has joined #ruby
senayar_ has quit [Ping timeout: 240 seconds]
Deele has joined #ruby
newUser1234 has quit [Remote host closed the connection]
strg has joined #ruby
mbuf has quit [Quit: Leaving]
agrinb has quit [Ping timeout: 240 seconds]
lemonsparrow has quit [Ping timeout: 245 seconds]
francisfish has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
oneawayman has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
_5kg has quit [Ping timeout: 268 seconds]
koderok has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac>
shevy: i dont like the tiobe ranking ... like "language of the Year" 2013 Transact-SQL => "Transact-SQL (T-SQL) is Microsoft's and Sybase's >>proprietary<< extension to SQL." that means that language is dead for me before i looked at it
shevy has quit [Ping timeout: 264 seconds]
mengu__ has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Remote host closed the connection]
cjk101010 has quit [Read error: Operation timed out]
mengu has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
notjohn has joined #ruby
mrnugget has quit [Quit: mrnugget]
pfg has joined #ruby
phansch has joined #ruby
tcstar has joined #ruby
jollyy has joined #ruby
endash_ has joined #ruby
Speed has joined #ruby
bradhe has joined #ruby
camilasan has quit [Remote host closed the connection]
maximski has joined #ruby
camilasan has joined #ruby
_5kg has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
camilasa_ has joined #ruby
senayar has quit [Remote host closed the connection]
shevy has joined #ruby
patrick99e99 has joined #ruby
camilas__ has joined #ruby
greenarrow has joined #ruby
cjk101010 has joined #ruby
camila___ has joined #ruby
greenarrow has quit [Client Quit]
camil____ has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
camilasan has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
mrnugget has joined #ruby
camilasa_ has quit [Ping timeout: 240 seconds]
camilasa_ has joined #ruby
camilas__ has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
cami_____ has joined #ruby
fabrice31 has joined #ruby
<gaussblurinc>
how to pass array-argument-option to OptionParser?
bambuka has joined #ruby
cami_____ has quit [Read error: Connection reset by peer]
cjk101010 has quit [Read error: Operation timed out]
camilasa_ has joined #ruby
camila___ has quit [Ping timeout: 240 seconds]
<gaussblurinc>
uh, see, Array
camil____ has quit [Ping timeout: 240 seconds]
camilas__ has joined #ruby
mehlah has quit [Quit: Leaving...]
camilas__ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
cjk101010 has joined #ruby
vlad_starkov has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
pyreal has joined #ruby
nari has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
pyreal has quit [Client Quit]
camilasan has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
camilasa_ has quit [Ping timeout: 240 seconds]
pyreal has joined #ruby
camilasan has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
Mrdarknezz has quit [Ping timeout: 264 seconds]
nvrch has quit [Quit: nvrch]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
lighthair has joined #ruby
banister has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 268 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
BaconOverflow has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
himsin has quit [Quit: himsin]
camilasan has joined #ruby
patrick99e99 has joined #ruby
mehlah has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
lighthair has quit [Remote host closed the connection]
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
cjk101010 has quit [Read error: Operation timed out]
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
lampe2_ has joined #ruby
ZoanthusR has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
yasushi has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
camilasa_ has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
nfk has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
nemesit|znc has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jollyy has quit [Quit: jollyy]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
popl has quit [Ping timeout: 268 seconds]
cjk101010 has joined #ruby
senayar has joined #ruby
klaut has joined #ruby
patrick99e99 has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has joined #ruby
dblessing has joined #ruby
cjk101010 has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
jollyy has joined #ruby
Ziarkaen has joined #ruby
djancak has quit [Ping timeout: 268 seconds]
notjohn has quit [Quit: notjohn]
cjk101010 has joined #ruby
Mrdarknezz has joined #ruby
sambao21 has joined #ruby
vt102 has joined #ruby
chaos___________ has joined #ruby
lkba has joined #ruby
sdouglas has joined #ruby
djancak has joined #ruby
djancak is now known as djancak
djancak has quit [Changing host]
djancak has joined #ruby
jollyy has quit [Read error: Connection reset by peer]
jollyy has joined #ruby
deadlock has joined #ruby
senayar has quit [Remote host closed the connection]
Xeago has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
DaniG2k has quit [Quit: leaving]
djancak has quit [Ping timeout: 240 seconds]
fieldfirst has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
shaunbaker has joined #ruby
cjk101010 has quit [Read error: Operation timed out]
Xeago has joined #ruby
jlast has joined #ruby
teddyp1cker has joined #ruby
cjk101010 has joined #ruby
bradhe has joined #ruby
Xeago_ has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
notjohn has joined #ruby
Advocation has quit [Quit: Advocation]
tcarlsen has left #ruby [#ruby]
djancak has joined #ruby
djancak is now known as djancak
djancak has joined #ruby
djancak has quit [Changing host]
teddyp1cker has quit [Ping timeout: 264 seconds]
bradhe has quit [Ping timeout: 252 seconds]
lw has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
browndawg has joined #ruby
djancak has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
fella6s has quit [Read error: Connection reset by peer]
abdulsattar has quit [Ping timeout: 265 seconds]
cjk101010 has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
eka has joined #ruby
cjk101010 has joined #ruby
yacks has quit [Ping timeout: 268 seconds]
proximo has joined #ruby
Advocation has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
djancak has joined #ruby
djancak has joined #ruby
djancak has quit [Changing host]
yfeldblum has joined #ruby
endash_ has quit [Quit: endash_]
toretore has joined #ruby
pmuens has joined #ruby
pmuens has left #ruby [#ruby]
tjr9898 has quit [Remote host closed the connection]
freerobby has joined #ruby
mbrgm has joined #ruby
mark_locklear has joined #ruby
<mbrgm>
hi everyone! can I use a method or class from a gem which has not been defined as a module_method?
<DouweM>
but why would you want to use the class directly? Just go through Metadown.parse
djancak has joined #ruby
djancak is now known as djancak
djancak has quit [Changing host]
djancak has joined #ruby
<DouweM>
as the readme prescribes
rmorello has joined #ruby
<mbrgm>
DouweM: the readme offers the metadata hash and a rendered version of the text (without metadata) included in the markdown file. however, i want to get the plain markdown text
<DouweM>
all right
jollyy_ has joined #ruby
jollyy has quit [Ping timeout: 265 seconds]
jollyy_ is now known as jollyy
nari has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
<mbrgm>
DouweM: ok, so I'm calling parser = Metadown::MetadataParser.new(filecontent) now, but it fails with uninitialized constant Metadown::MetadataParser (NameError)
<mbrgm>
obviously because i installed metadown as a gem.
<Hanmac>
hm nope it should work
freerobby has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
poikon has quit [Remote host closed the connection]
<Hanmac>
mbrgm: do you use rvm or bundler or something similar?
jaywastaken has joined #ruby
<mbrgm>
Hanmac: bundler
freerobby has joined #ruby
roolo has joined #ruby
<Hanmac>
i dont know but that might be the problem ... does metadown shows inside of "gem list" ?
brianeasley has quit [Quit: Lost terminal]
linojon has joined #ruby
<mbrgm>
Hanmac: yup
pu22l3r has joined #ruby
strg has quit [Ping timeout: 252 seconds]
abdulsattar has joined #ruby
Papipo has joined #ruby
<Papipo>
Hi there
habanera is now known as napcae
mostlybadfly has joined #ruby
dx7 has quit [Remote host closed the connection]
freezey has joined #ruby
<Papipo>
Hi there
<Papipo>
again
<Papipo>
:D
dx7 has joined #ruby
<Papipo>
anybody knows if there is a way to "precompile" a script in therubyracer?
<Papipo>
to save cycles for further executions
ezelohar has joined #ruby
<Papipo>
any other scripting implementation that allows that and is fest enough would do the trick
<Hanmac>
mbrgm: you installed wrong version of it
freezey has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
freezey has joined #ruby
<mbrgm>
Hanmac: damnit, you're right
strg has joined #ruby
<mbrgm>
Hanmac: ty!
agrinb has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
predator217 has quit [Ping timeout: 246 seconds]
benzrf is now known as benzrf|offline
predator117 has joined #ruby
dx7 has quit [Ping timeout: 268 seconds]
poikon has joined #ruby
davedev24 has joined #ruby
Frank13760 has joined #ruby
Celm has joined #ruby
mary5030 has quit [Remote host closed the connection]
mbrgm has quit [Quit: Page closed]
phansch has quit [Ping timeout: 264 seconds]
fella5s has joined #ruby
mary5030 has joined #ruby
agrinb has quit [Ping timeout: 264 seconds]
strg has quit [Ping timeout: 240 seconds]
jollyy has quit [Quit: jollyy]
nvrch has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
chris_thomson has joined #ruby
Celm has quit [Ping timeout: 265 seconds]
soulcake has joined #ruby
benzrf|offline is now known as benzrf
<benzrf>
hej da
bradhe has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
CreativeEmbassy has joined #ruby
danshultz has joined #ruby
dukz has joined #ruby
chris_thomson has quit [Quit: Zzz...]
yacks has joined #ruby
ephemerian has quit [Quit: Leaving.]
sailias has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
jkamenik has joined #ruby
jobewan has joined #ruby
mark_locklear has quit [Remote host closed the connection]
dukz has quit [Ping timeout: 252 seconds]
MohamedAlaa has joined #ruby
mark_locklear has joined #ruby
mikemar10 has joined #ruby
Xeago has quit [Remote host closed the connection]
dayepa has joined #ruby
kobain has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
larissa has quit [Quit: Leaving]
poikon has quit [Remote host closed the connection]
larissa has joined #ruby
okdas has quit [Read error: Connection reset by peer]
okdas_ has joined #ruby
okdas_ has quit [Client Quit]
okdas has joined #ruby
bubblehead has joined #ruby
simono_ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
dik_dak has joined #ruby
Advocation has quit [Quit: Advocation]
kobain has joined #ruby
alekst has joined #ruby
doodlehaus has joined #ruby
sk87 has joined #ruby
phansch has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
patrick99e99 has joined #ruby
ziyadb_ has joined #ruby
simono has quit [Ping timeout: 240 seconds]
juarlex has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
lukec has joined #ruby
senayar has joined #ruby
klaut has joined #ruby
sambao21 has joined #ruby
simono_ has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
nffff has joined #ruby
ezrios has quit [Ping timeout: 265 seconds]
momomomomo has joined #ruby
kitak has joined #ruby
havenwood has joined #ruby
cover has joined #ruby
coderxin has joined #ruby
gaussblurinc has joined #ruby
patrick99e99 has quit [Ping timeout: 268 seconds]
havenn has joined #ruby
predator117 has joined #ruby
S0da has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
Kneferilis has quit [Ping timeout: 268 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
tkuchiki has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
CreativeEmbassy has joined #ruby
troyreadyy has joined #ruby
simono has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dayepa has quit [Remote host closed the connection]
browndawg1 has joined #ruby
rudisimo has joined #ruby
browndawg has quit [Ping timeout: 265 seconds]
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
troyready has quit [Ping timeout: 246 seconds]
alexju has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
mercwithamouth has joined #ruby
afreidah has joined #ruby
m1lt0n_ has joined #ruby
alexju has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
simono has quit [Ping timeout: 240 seconds]
juarlex has quit [Remote host closed the connection]
meatherly has joined #ruby
pu22l3r has joined #ruby
kpshek has joined #ruby
enebo has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
nari has joined #ruby
troyreadyyy has joined #ruby
lw has quit [Quit: s]
bambuka has quit [Quit: Saliendo]
poikon has joined #ruby
troyreadyy has quit [Ping timeout: 268 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simono has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
codabrink has joined #ruby
juarlex has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
Advocation has joined #ruby
zachallett has joined #ruby
Advocation has quit [Client Quit]
krz has quit [Quit: WeeChat 0.4.3]
Advocation has joined #ruby
juarlex has quit [Remote host closed the connection]
arya_ has joined #ruby
larissa has quit [Quit: Leaving]
_tpavel has joined #ruby
banister has joined #ruby
rvraghav93 has quit [Quit: No Ping reply in 180 seconds.]
rvraghav93 has joined #ruby
coderxin has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 252 seconds]
jollyy has joined #ruby
bradhe has joined #ruby
depesz has joined #ruby
terrellt has joined #ruby
<depesz>
Hi, I have two hashes, both with multiple levels of values. Is there a way I can "combine" them? each value is either a scalar or a hash, there are no arrays.
DallasG has joined #ruby
MattStratton has joined #ruby
simono has quit [Ping timeout: 265 seconds]
ce_afk is now known as cescalante
<benzrf>
depesz: something tells me you come from perl
<DouweM>
depesz: example?
<depesz>
I do
evenix has joined #ruby
<benzrf>
1 sec let me write something
<depesz>
DouweM: hmmm ... let's say (i'm typing it in here, so there could be typos:
<benzrf>
you want to do a recursive merge, right?
arya_ has quit [Quit: bye]
<depesz>
a = { "b" => 1, "c" => { "d" => 2 } }
<benzrf>
depesz: hold on i got this
Frank13760 has left #ruby [#ruby]
<DouweM>
hehe
<depesz>
ok
<depesz>
yes. recursive merge.
<depesz>
i can write it myself, but I was hoping there is some kind of "builtin"
_Andres has quit [Read error: Connection reset by peer]
<benzrf>
i doubt it
<depesz>
:(
strg has joined #ruby
mansi has joined #ruby
alekst has quit [Quit: Leaving...]
bradhe has quit [Ping timeout: 252 seconds]
<depesz>
hash.merge() is almost ideal, but it overwrites subhashes
notjohn has quit [Quit: notjohn]
<benzrf>
does it take a block
<havenn>
depesz: You could use ActiveSupport's Hash#deep_merge I suppose: require 'active_support/core_ext/hash/deep_merge'
<depesz>
oooh. i like the idea of extending base class. nice.
senayar_ has joined #ruby
freezey has joined #ruby
andy__ has joined #ruby
<benzrf>
depesz: it is ruby's solution of the problem of having all functions as methods on appropriate objects while letting users create new functions
mercwithamouth has quit [Ping timeout: 245 seconds]
Kneferilis has joined #ruby
Xeago has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
DallasG has quit [Ping timeout: 265 seconds]
makara has quit [Quit: Leaving]
Xeago has quit [Ping timeout: 252 seconds]
rvraghav93 has quit [Ping timeout: 265 seconds]
juarlex has joined #ruby
Bumptious has joined #ruby
yfeldblum has joined #ruby
SCommette has joined #ruby
SCommette has joined #ruby
toastynerd has joined #ruby
tjr9898 has joined #ruby
rvraghav93 has joined #ruby
sdouglas has joined #ruby
zz_jrhorn424 is now known as jrhorn424
marcdel has joined #ruby
FiXion has joined #ruby
<FiXion>
trying to make ruby templates bend to my will. <% 1.upto(@instances.to_i) do | instanceno | %>127.0.0.1:<%= 2200+ instanceno %>:<%= instanceno %>, <% end -%>
<FiXion>
problem is that this ends with ,
Celm has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
_justin has quit [Quit: _justin]
Solnse has joined #ruby
<FiXion>
I figured I'd try to simply build an array of strings, containing "127.0.0.1:2201:1", "127.0.0.1:2202:2" etc.
andy__ has quit [Read error: Connection reset by peer]
<DouweM>
only insert the , if instanceno < ( @instances.to_i - 1) ?
<FiXion>
but I can't make it do that :(
jds has joined #ruby
tjr9898 has quit [Ping timeout: 264 seconds]
<DouweM>
you can also go the array way
andy__ has joined #ruby
<FiXion>
DouweM: I can't make either work :(
<DouweM>
why doesn't the if-way work?
<FiXion>
I'll try.. it should
ce_afk is now known as cescalante
lavaman has joined #ruby
anarang has quit [Quit: Leaving]
andy__ has quit [Read error: Connection reset by peer]
marcdel has quit [Ping timeout: 240 seconds]
fieldfirst has quit [Ping timeout: 252 seconds]
rvraghav93_ has joined #ruby
andy__ has joined #ruby
sski has quit [Remote host closed the connection]
<FiXion>
DouweM: any hints as to how I could build an array.. something like 1.upto(@instances.to_i) do |instanceno| mydests.push("string" ) ?
vlad_starkov has quit [Remote host closed the connection]
noop has quit [Ping timeout: 268 seconds]
<benzrf>
DouweM: because it needs to be dynamically updating to reflect the module hierarchy
<benzrf>
DouweM: and that would be a massive PITA with anything else
<benzrf>
cd ../Kernel/
<benzrf>
quick def new_kernel_method
<benzrf>
^not super ez to do w/o fuse
<DouweM>
right
<benzrf>
what if i make a new class
<benzrf>
how can i hook that
no6 has quit [Quit: leaving]
lxsameer has quit [Quit: Leaving]
arubincloud has joined #ruby
lethjakm1 has joined #ruby
aagdbl has joined #ruby
Xeago__ has quit [Remote host closed the connection]
Port3M5[Work] has joined #ruby
byprdct has joined #ruby
terrellt_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
aagdbl has quit [Client Quit]
geopet has joined #ruby
browndawg1 has quit [Quit: Leaving.]
x77686d has joined #ruby
aganov has quit [Quit: Leaving]
tagrudev has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
contradictioned has joined #ruby
terrellt has quit [Ping timeout: 268 seconds]
rm_ has joined #ruby
jollyy has quit [Ping timeout: 264 seconds]
jollyy_ has joined #ruby
skammer is now known as skammer|afk
vlad_starkov has joined #ruby
MatthewsFace has joined #ruby
axl_ has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
<shevy>
call a hooker
pietr0 has quit [Quit: pietr0]
nomenkun has joined #ruby
tkuchiki has quit [Remote host closed the connection]
skammer|afk is now known as skammer
tylersmith has quit [Remote host closed the connection]
poikon has joined #ruby
kevind_ has joined #ruby
lsmola_ has joined #ruby
tylersmith has joined #ruby
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bilbo_swaggins>
benzrf: I lack the vision of what you'll do with this project still, but if you can make it painless, I'll certainly keep playing with it.
<bilbo_swaggins>
Then again I haven't properly dug into Pry at all yet
dkamioka has joined #ruby
hobodave has joined #ruby
kevind has quit [Ping timeout: 252 seconds]
mauror has left #ruby ["Part"]
kevind_ is now known as kevind
dgaffney has quit [Remote host closed the connection]
dgaffney has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
nomenkun has quit [Ping timeout: 264 seconds]
lw has quit [Quit: b]
Dave is now known as Guest13603
<benzrf>
=D
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bilbo_swaggins>
just please don't sell out to Facebook. Or if you do be honest and say it was for the money.
<bilbo_swaggins>
I'd understand.
tylersmith has quit [Ping timeout: 265 seconds]
bufferloss has joined #ruby
baroquebobcat has joined #ruby
senayar_ has quit [Remote host closed the connection]
bklane has joined #ruby
<benzrf>
=)
Guest13603 has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mr_snowf1ake has joined #ruby
hobodave has quit [Ping timeout: 252 seconds]
patrick99e99 has quit [Ping timeout: 264 seconds]
simono has quit [Ping timeout: 268 seconds]
simono has joined #ruby
agrinb has joined #ruby
dgaffney has quit [Ping timeout: 268 seconds]
flowerpot has quit [Quit: leaving]
ktosiek has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
mieko has joined #ruby
ktosiek has joined #ruby
bilbo_swaggins has quit [Quit: Leaving]
bilbo_swaggins has joined #ruby
sdouglas has joined #ruby
snath has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
sdouglas has quit [Remote host closed the connection]
Maitiu has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
lethjakm1 has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
markisonfire has joined #ruby
eynj has quit [Quit: Leaving.]
wallerdev has joined #ruby
Maitiu has joined #ruby
marcdel has joined #ruby
sambao21 has quit [Client Quit]
<shevy>
everything has a prize
Celm has quit [Remote host closed the connection]
crzrcn has joined #ruby
<bilbo_swaggins>
well I need money too
<bilbo_swaggins>
I'd retire to the easy life with $400m
blackmesa has joined #ruby
rainmanjam has joined #ruby
dgaffney has joined #ruby
rippa has joined #ruby
sambao21 has joined #ruby
<benzrf>
bbl guys
<arubincloud>
bilbo_swaggins: Are you sure that you can survive on so little?
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
lethjakm1 has joined #ruby
crzrcn has left #ruby [#ruby]
benzrf is now known as benzrf|offline
<shevy>
that's a lot of money bilbo_swaggins
<bilbo_swaggins>
it's really enough that I'd have to go out of my way to spend it
<bilbo_swaggins>
there's a point where you have enough money that you can only waste it or turn it into even more money
brain_shim has quit [Ping timeout: 268 seconds]
<DouweM>
there's giving to charity / investing in research which I wouldn't put under waste
<DouweM>
but your point stands :)
jibi has quit [Ping timeout: 264 seconds]
Celm has joined #ruby
axl__ has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jibi has joined #ruby
chipotle has joined #ruby
cover has quit [Ping timeout: 268 seconds]
danno1 has joined #ruby
lethjakm1 has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mordocai has quit [Remote host closed the connection]
sski has joined #ruby
mordocai has joined #ruby
pyreal has quit [Read error: No route to host]
toastynerd has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
pyreal has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
aspires has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
pietr0 has joined #ruby
__class__ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
lsmola_ has quit [Ping timeout: 240 seconds]
dkamioka has quit [Remote host closed the connection]
simono has quit [Ping timeout: 252 seconds]
andikr has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
simono has joined #ruby
meatherly has joined #ruby
kpshek has quit []
bal has quit [Quit: bal]
freerobby has joined #ruby
skammer is now known as skammer|afk
skammer|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezey has quit [Remote host closed the connection]
maroloccio has quit [Quit: WeeChat 0.4.3]
brain_shim has joined #ruby
andy__ has joined #ruby
Guest89483 has quit [Read error: Connection reset by peer]
freerobby has quit [Read error: Connection reset by peer]
ahawkins has quit [Quit: leaving]
rm_ has quit [Remote host closed the connection]
freerobby1 has joined #ruby
dgaffney has quit [Remote host closed the connection]
banister has joined #ruby
rm_ has joined #ruby
dgaffney has joined #ruby
senayar has quit [Remote host closed the connection]
dstynchula has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
maletor has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
gaussblurinc has quit [Quit: Leaving.]
andy__ has joined #ruby
benzrf|offline is now known as benzrf
cndiv has joined #ruby
fabrice31 has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
phansch has joined #ruby
dgaffney has quit [Ping timeout: 268 seconds]
rm_ has joined #ruby
sambao21 has quit [Client Quit]
ktosiek has quit [Ping timeout: 240 seconds]
cover has joined #ruby
poikon has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
budrose has quit [Remote host closed the connection]
tectonic has joined #ruby
shadoi1 has joined #ruby
<AlexRussia>
shevy: google translater :P
<AlexRussia>
pipework: haha
kacperix has joined #ruby
afex has joined #ruby
sski has joined #ruby
kobain has quit []
yfeldblum has joined #ruby
bklane has joined #ruby
m8 has joined #ruby
m8 has quit [Changing host]
m8 has joined #ruby
gfunc has joined #ruby
qmfnp has joined #ruby
testcore has joined #ruby
coderxin has joined #ruby
Doc_X has quit []
coderxin_ has joined #ruby
<a13x212>
how would i match the following pattern, numbers 1 through 15
diegovio1 has joined #ruby
diegovio1 is now known as diegoviola
<depesz>
a13x212: variable >= 1 and variable <= 15
ioNull has quit [Ping timeout: 268 seconds]
<centrx>
variable.between?(1,15)
obs has quit [Quit: Konversation terminated!]
<Jamo>
or (1..15).cover? variable
cj3kim has joined #ruby
duggiefresh has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
pu22l3r_ has joined #ruby
ephemerian has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
CaptainJet has joined #ruby
lolmaus has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
bklane has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 240 seconds]
bklane has joined #ruby
oneawayman has quit [Read error: Operation timed out]
ioNull has joined #ruby
horofox has joined #ruby
sigurding has quit [Quit: sigurding]
jottr_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
rm_ has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
jottr has quit [Read error: Operation timed out]
jenskarlsen has quit [Quit: jenskarlsen]
kennym has joined #ruby
xcv has joined #ruby
troyready has joined #ruby
nolic has joined #ruby
bklane has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
Vovko has joined #ruby
toastynerd has joined #ruby
scelis has joined #ruby
sambao21 has joined #ruby
<scelis>
Is there a slick way of replacing all leading or trailing spaces in a string with the literal string "\u0020"? I want all non-leading and trailing spaces left alone
senayar has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
SonicX has joined #ruby
dzhulk has joined #ruby
<a13x212>
Jamo, i'm trying this if (1..15).cover? node['hostname'], would look like web1 or web15v or web20v
sdouglas has quit [Ping timeout: 265 seconds]
cj3kim has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<centrx>
a13x212, What exactly are you trying to do?
patrick99e99 has joined #ruby
dzhulk has left #ruby [#ruby]
iliketurtles has quit [Quit: zzzzz…..]
<centrx>
scelis, Something like str.gsub(/^(\s*)|(\s*)$/, " " => "\u0020")
cndiv has quit [Ping timeout: 265 seconds]
edwardly has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<a13x212>
if string contains 1 through 15, do X, string could look web1 or web15v or web20v
<shevy>
pipework nah, there lies no advantage in knowing russian language
<shevy>
pipework and you speak only english anyway so
jlast has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
cndiv has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
<pipework>
shevy: I speak many languages.
camilasan has joined #ruby
<pipework>
Only one human language.
luckyruby has joined #ruby
<apeiros>
centrx: ^ and $ are per line, not for the whole string. \A and \z
<centrx>
scelis, ^
<scelis>
centrx: thanks, but that isnt working for me. it strips the leading whitespace out completely
SonicX has quit [Read error: Connection reset by peer]
<centrx>
scelis, It's something like that, you have to figure it out
pu22l3r_ has quit [Remote host closed the connection]
<scelis>
centrx: Yeah. I've been trying to figure it out. Hence me asking for help. :P thanks for the attempt, though
kirun has joined #ruby
lbwski has joined #ruby
duggiefresh has joined #ruby
<centrx>
a13x212, Something like /web(\d\d?)\D*/.match(str).captures.first.between?(1,15)
pu22l3r has joined #ruby
saarinen has quit [Quit: saarinen]
rayners has quit [Remote host closed the connection]
<RubyPanther>
because it is only a substring of the needed pattern
<nobitanobi>
Hi guys. Given I have a Hash that looks like this: {[1, "a"]=>[{:first=>1, :second=>"a"}, {:first=>1, :second=>"a"}], [1, "b"]=>[{:first=>1, :second=>"b"}], [40, "c"]=>[{:first=>40, :second=>"c"}]} - How can get the key/value pair of that Hash which value has more elements?
<RubyPanther>
I only wrote out the part you guys were missing ;)
<RubyPanther>
apeiros: It isn't wrong, it is an incomplete substing to get the solution in the right direction, which I already TOLD you
<centrx>
I'm on your side RubyPanther
<slash_nick>
oh, he wants the one with the MOST elements?
<slash_nick>
baroquebobcat, nobitanobi ^
<apeiros>
RubyPanther: oh dear, this is getting pathetic. I'm not arguing with you. it doesn't do what was asked, period.
<Hanmac>
baroquebobcat: there is also min_by and max_by
nanno_ has joined #ruby
<baroquebobcat>
nice
<RubyPanther>
It does the part of what was asked that you were missing
<apeiros>
RubyPanther: do you have your own personal reality distortion field?
<RubyPanther>
so yes, it "does not do what was asked." Indeed. I wasn't trying to write it for you/him. I was pointing out the part you guys were missing.
DrShoggoth has joined #ruby
<nanno_>
angularjs
<apeiros>
the |\D is pointless regardless.
<RubyPanther>
If you don't find value, skip it! No need to be an ass and jump up and down shouting "you're wrong you're wrong"
shinobi_one has quit [Ping timeout: 252 seconds]
nanno_ has left #ruby [#ruby]
<RubyPanther>
you understand? pointless means, you can ignore it.
michaeldeol has joined #ruby
<apeiros>
RubyPanther: grow up.
MatthewsFace has quit [Ping timeout: 252 seconds]
<RubyPanther>
Somebody else will find value in it or not. Let them.
bufferloss has left #ruby [#ruby]
rm_ has joined #ruby
<centrx>
"For a long time GCC was shipped with a Toy programming language called Treelang which was essentially C without the advanced concepts such as pointers, arrays and records." - Discuss amongst yourselves.
<RubyPanther>
apeiros: Mirror chedck
MatthewsFace has joined #ruby
<apeiros>
QED
shinobi_one has joined #ruby
<shevy>
LED
dangerousdave has quit [Quit: Leaving...]
sski has quit [Remote host closed the connection]
Speed has quit [Ping timeout: 245 seconds]
<pipework>
GED
<RubyPanther>
it is dumb to be trying to solve it with a regex that is broken and doesn't even try to solve the problem, and then have to test the number outside. If you're gonna do that drop all the clever crap and just pull the \d+ out and test it. If you're going to do more work than that in the regex, it should be trying to do a complete match.
subbyyy_ has joined #ruby
<apeiros>
a13x212: if you want to match 1-15 with a regex (and IMO you shouldn't - centrx' approach is IMO better), it'd be (?:[1-9]|1\d), but you'd need anchoring which depends on the rest of your regex.
<apeiros>
RubyPanther: so you say you were trying to do something dumb? nice.
mansi has quit [Read error: Connection reset by peer]
duggiefresh has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
sk87 has quit [Client Quit]
rm_ has quit [Read error: No route to host]
sambao21 has quit [Quit: Computer has gone to sleep.]
rm_ has joined #ruby
senayar_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
whomp has joined #ruby
maasha has joined #ruby
rh1n0 has quit [Ping timeout: 265 seconds]
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
patrick99e99 has joined #ruby
jorts has quit [Quit: jorts]
Speed has joined #ruby
toastynerd has quit [Remote host closed the connection]
rm_ has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
echevemaster has quit [Remote host closed the connection]
<maasha>
evening.
Advocation has joined #ruby
sambao21 has joined #ruby
bilbo_swaggins has quit [Quit: Leaving]
<DouweM>
yo
nbezzala has joined #ruby
gregf has joined #ruby
alex88 has quit [Quit: Leaving...]
timonv has joined #ruby
<maasha>
apeiros: fyi. I got rid of the fork hang (gist updated). Next issue is that the work does not appear to be performed in parallel. It may be because the jobs are delegated linearly. Threads may be required.
jottr_ is now known as jottr
patrick99e99 has quit [Ping timeout: 264 seconds]
jorts has joined #ruby
sambao21 has quit [Ping timeout: 264 seconds]
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atno has joined #ruby
mansi has quit [Remote host closed the connection]
sambao21 has joined #ruby
mansi has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<RubyPanther>
/(?:(?:\D|\A)\d{1}(?:\D|\z))|(?:1[0-5])(?:\D|\z)/ # generalized for any first group of digits
<maasha>
bingo
motto has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
bradhe has quit [Remote host closed the connection]
<RubyPanther>
obviously < is superior to a regex here lol
<maasha>
hm, needs mutex to deal with order
Spami has joined #ruby
lbwski has quit [Quit: leaving]
decoponio has quit [Quit: Leaving...]
lbwski has joined #ruby
afex has quit [Ping timeout: 264 seconds]
<AlexRussia>
RubyPanther: hi man :)
bradhe_ has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
jorts has quit [Ping timeout: 268 seconds]
lolmaus has joined #ruby
iliketurtles has joined #ruby
sigurding has joined #ruby
<apeiros>
I guess I better don't point out the problems of that regex.
jlast has quit [Ping timeout: 268 seconds]
<RubyPanther>
apeiros: If you point out the problems of the code instead of pointing at the person who wrote it, I'm sure you'll get a normal response.
<centrx>
The main problem is it is too short
havenwood has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
<apeiros>
RubyPanther: that didn't help before either.
<RubyPanther>
My advice is to run some example data through it first, though ;)
havenwood has joined #ruby
agrinb has joined #ruby
Voodoofish430 has joined #ruby
<RubyPanther>
Since it works for the examples I used, I assume it is correct. Lots of parts could be done in different ways, to be sure; I doubt they'll be better than extracting the number and using < though, that should be the baseline
scelis has left #ruby [#ruby]
agrinb_ has quit [Ping timeout: 252 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<maasha>
race conditions. sounds like a case for KKK ...
<apeiros>
maasha: cool. and no, threads are not required. a fork will run parallely (or at least concurrently, depending on your computer)
agrinb has quit [Read error: No route to host]
agrinb has joined #ruby
abdulsattar has joined #ruby
<RubyPanther>
maasha: I doubt the KKK could race anywhere with those sheets blocking their view
chichou has quit [Remote host closed the connection]
<maasha>
toretore: oh really?
Azure has joined #ruby
deadlock has quit [Ping timeout: 245 seconds]
<toretore>
maasha: assuming i understand what you're trying to do that is
Bumptiou_ has joined #ruby
<toretore>
which is process n jobs in a pool concurrently
<maasha>
toretore: well, create a fork pool of workers to process tons of data reusing workers.
<apeiros>
without a fixed worker count (though, that's the pooling part) it'd be a good bit easier. with a fixed worker count, I'm not sure it can be simplified too much, though.
patrick99e99 has joined #ruby
<toretore>
unless you want it to work in parallel on mri and that's the reason you're forking
<maasha>
I want to utilize multiple cores.
<toretore>
with mri?
mikepack has quit [Ping timeout: 245 seconds]
<maasha>
toretore: yes
<toretore>
ok, carry on then :)
diegoviola has quit [Quit: WeeChat 0.4.3]
<maasha>
right
Bumptious has quit [Ping timeout: 255 seconds]
<toretore>
just one last thing: i'd like to officially frown upon your messing around with Enumerable
MatthewsFace has quit [Quit: This computer has gone to sleep]
chrisseaton has quit []
shutch has joined #ruby
<apeiros>
toretore: just imagine he used a Refinement
<toretore>
i frown upon refinements too :P
<maasha>
toretore: should be a module on its own and then extend Enumerable or such.
<toretore>
accepted
patrick99e99 has quit [Ping timeout: 240 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has joined #ruby
<maasha>
toretore: I already thought about it. Will come later.
chichou has joined #ruby
<apeiros>
maasha, toretore: problem is - including into a module doesn't work well
<apeiros>
any class already including the module won't gain the new methods
<lfox>
toretore: Haven't really played with refinements, but why the dislike, seems like they safely solve a problem?
<toretore>
apeiros: i was mostly referring to the "or such" part
<apeiros>
ah, that wasn't quite clear :-p
<apeiros>
curious as to what "or such" could be then
LiohAu has quit [Quit: LiohAu]
rvraghav93_ has joined #ruby
<atmosx_>
hello
atmosx_ is now known as atmosx
rabeldable has quit [Quit: Leaving.]
<maasha>
or such means me googling and reading.
rvraghav93 has quit [Ping timeout: 245 seconds]
<apeiros>
IMO there's 3 options: a) monkey-patch Enumerable (which you frown upon), b) use a Refinement on Enumerable (which you frown upon), c) use a non-OOish pattern like Forked.each(enumerable) { … }
zachallett has quit [Remote host closed the connection]
<toretore>
apeiros: i took it to mean a class that includes Enumerable
agent_white has joined #ruby
<toretore>
q=WorkQueue.new; q.each{|res| }
<apeiros>
ok, then there's a 4th option: not provide parallel execuation to enumerables in a generic way at all (IMO the worst of all 4)
<apeiros>
*execuation - wth
SHyx0rmZ has joined #ruby
<apeiros>
whaaaat? how did it happen *again*?
<toretore>
i don't think Enumerable should concern itself with that
rabeldable has joined #ruby
dseitz has joined #ruby
AlexRussia has joined #ruby
<apeiros>
toretore: your example is missing the data to iterate on
<AlexRussia>
how to convert deciman fixnum to hex number?O_O
<toretore>
apeiros: q << data
<apeiros>
AlexRussia: to_s(16)
einarj has joined #ruby
<apeiros>
toretore: you mean datum?
toastynerd has joined #ruby
<toretore>
oh u
<AlexRussia>
apeiros: thx
<toretore>
no, it's a collection of collections of data
<apeiros>
eeeeeew :D
<apeiros>
na, I get what you mean
Naoe-Kanno has joined #ruby
<toretore>
:)
duggiefresh has joined #ruby
toastyne_ has joined #ruby
toastynerd has quit [Read error: Connection reset by peer]
<apeiros>
I do think parallel each is a nice fit in Enumerable. I'd prefer it done similar to lazy, though. Enumrable#parallel # => ParallelWhatever with #each and #map and whateverelse
sepp2k has joined #ruby
sski has joined #ruby
bricker_ is now known as bricker
<apeiros>
directly constructing ParallelWhatever is IMO fine too, though
SHyx0rmZ has quit [Ping timeout: 252 seconds]
deadlock has joined #ruby
davy_ has joined #ruby
<toretore>
"parallel" can mean a lot of things, and i don't think Enumerable should be making that decision
jottr has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Ping timeout: 240 seconds]
yacks has quit [Quit: Leaving]
<toretore>
anyway, if it's just for personal use i don't really care
<toretore>
but if someone put that in *my* enumerable, i would frown so hard
nanoyak has quit [Quit: Computer has gone to sleep.]
zachallett has joined #ruby
tvw has quit []
agent_white has quit [Remote host closed the connection]
<apeiros>
toretore: uh, Enumerable isn't making that decision.
sdouglas has quit [Read error: Connection reset by peer]
relix has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<maasha>
apeiros: so do I have a bug in my code, or is the design faulty since it gives race condition nastiness. I was thinking about caching the results to output in order - but that could be an ugly memory hugger.
centrx has quit [Ping timeout: 245 seconds]
sdouglas has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dseitz has quit [Read error: Connection reset by peer]
centrx has joined #ruby
jkamenik has quit [Quit: Leaving.]
senayar has joined #ruby
jeregrine has joined #ruby
centrx is now known as Guest89261
<apeiros>
maasha: can't tell, sorry
<toretore>
maasha: i would suggest breaking it down into smaller pieces to figure out what's going on
sdouglas has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<toretore>
i wanted to have a look at it, but i couldn't be bothered to try to understand all of it
benzrf|offline is now known as benzrf
cntrx has joined #ruby
noop has quit [Ping timeout: 268 seconds]
cescalante is now known as ce_afk
cndiv has joined #ruby
<apeiros>
sports time anyway
heftig has joined #ruby
<benzrf>
hello ruby people
<toretore>
apeiros: SPORTS???
<apeiros>
hi ruby person :o)
<benzrf>
omg sprots
<toretore>
you disappoint me
kirun has quit [Ping timeout: 252 seconds]
sdouglas_ has joined #ruby
<apeiros>
toretore: yeah. government said the belly was too big :(
<toretore>
haha
<toretore>
government-mandated sports
<apeiros>
I know she'll complain about it no longer being soft afterwards
chichou has joined #ruby
newUser1234 has joined #ruby
cntrx is now known as centrx
<apeiros>
& comfy
<maasha>
toretore: I am afraid it doesn't break down very well. It's got forking of workers, inter process communication, and control code. Those has got to come together.
sdougla__ has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
mforrester has quit [Remote host closed the connection]
Guest89261 has quit [Ping timeout: 255 seconds]
SCommette has quit [Quit: SCommette]
sdougla__ has quit [Read error: Connection reset by peer]
alvaro_o has joined #ruby
bricker_ has joined #ruby
<toretore>
apeiros: well, good luck with the sports thing anyway :)
adi_ has joined #ruby
<toretore>
maasha: you just broke it down in that very sentence
james_d_h has joined #ruby
sdouglas_ has quit [Ping timeout: 240 seconds]
SCommette has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
pyreal has quit [Quit: pyreal]
<maasha>
toretore: but testing these separately doesn't make sense
<toretore>
of course it does
gr33n7007h has quit [Ping timeout: 252 seconds]
<toretore>
what are you using for ipc? pipes. can they block your program? yup.
shadoi1 has quit [Quit: Leaving.]
kirun has joined #ruby
<benzrf>
maasha: use zmq!
<benzrf>
zmq is da best for ipc coordination & communication
<benzrf>
B)
bricker_ is now known as bricker
<benzrf>
of course it is da best in general
freezey has joined #ruby
saarinen has joined #ruby
<bricker>
I really wish I didn't get bumped off of IRC every time I switch VPN... there must be some sort of timeout option in irssi right?
<benzrf>
bricker: just use a bouncer o=
shutch has quit [Ping timeout: 240 seconds]
freezey has quit [Read error: Connection reset by peer]
<bricker>
benzrf: I don't know what that is
freezey has joined #ruby
<toretore>
it's a mirc plugin
mary5030 has joined #ruby
nobitanobi has quit []
<maasha>
toretore: but investigating any blocking of IPC falls back on the forking i.e. worker spawning.
flowerpot has quit [Quit: leaving]
Bumptious has joined #ruby
sdouglas has joined #ruby
<benzrf>
toretore: no its not!
shadoi1 has joined #ruby
sdouglas has quit [Read error: Connection reset by peer]
Bumptiou_ has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
<benzrf>
bricker: a bouncer is basically an irc proxy that does useful things like buffering chat
whomp has joined #ruby
derek_c has joined #ruby
<freeone3000>
bricker: It's a TCP connection, you can't just "make it stick" when you switch IPs.
<benzrf>
im always online while not using irc as benzrf|offline
<benzrf>
because i use a bouncer =]
<benzrf>
if you whois me youll see im connected via benzrf.com
coderxin_ has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
<bricker>
benzrf: interesting, where can I get on to one of these "bouncers"
sdouglas_ has joined #ruby
smathieu has joined #ruby
sdouglas_ has quit [Read error: Connection reset by peer]
jprovazn is now known as jprovazn_afk
zeleiadi has joined #ruby
centrx has quit [Ping timeout: 268 seconds]
<benzrf>
bricker: i host mine myself
<benzrf>
bricker: do you have a server
bradhe_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<bricker>
benzrf: nah
<benzrf>
o=
dzhulk has joined #ruby
<bricker>
I mean, yeah, but not that I would install an IRC bouncer on :P
<benzrf>
k
<bricker>
I need to get on this "The Cloud" (tm)
carraroj has quit [Quit: Konversation terminated!]
timpa has quit [Ping timeout: 245 seconds]
shadoi1 has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
bradhe has joined #ruby
nari has quit [Ping timeout: 245 seconds]
smathieu has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
DrCode has joined #ruby
mansi has quit [Remote host closed the connection]
centrx has joined #ruby
centrx is now known as Guest88793
<benzrf>
gluh
<benzrf>
is there any way to hook into when methods are defined
<benzrf>
:-\
<benzrf>
AND get their src
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has quit [Quit: Leaving]
agjacome has joined #ruby
<benzrf>
ah, w/e
hobodave has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
phansch_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
rvraghav93 has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: FO SHO]
<toretore>
bline79: what for?
rvraghav93 has joined #ruby
<AlexRussia>
hey, help me
<AlexRussia>
how to delete in string every non-number symbold?
<AlexRussia>
symbols*
YamakasY has joined #ruby
anorek has joined #ruby
<toretore>
look at tr or gsub
<benzrf>
AlexRussia:
<bline79>
toretore: when I run that command, it doesn't finish until return key is pressed... I need the command to finish so I can use the output
aagdbl has quit [Quit: This computer has gone to sleep]
<AlexRussia>
string like +7-925-268-11-01 convert to 7925...
chrisseaton has quit [Ping timeout: 245 seconds]
<AlexRussia>
understand?
<canton7>
look at tr or gsub
<AlexRussia>
tr?
<canton7>
google 'ruby tr'
tylersmi_ has joined #ruby
<AlexRussia>
canton7: ri tr
danshult_ has quit [Remote host closed the connection]
<jhass>
String#tr, String#delete or String#gsub can solve this
<canton7>
or that
Vovko_ has quit [Ping timeout: 245 seconds]
centrx has quit [Ping timeout: 240 seconds]
sski has quit [Remote host closed the connection]
<maasha>
toretore: synchronization it is. I need to preserve the order without compromising efficiency
<toretore>
bline79: you mean you need to give it \n on stdin?
danshultz has joined #ruby
<toretore>
or send eof?
sski has joined #ruby
Lewix has quit [Remote host closed the connection]
<crome>
AlexRussia: one solution: input.scan(/\d/).join.to_i
<toretore>
maasha: well, that's simple, just reorder them when they're done
michaeldeol has joined #ruby
<crome>
or minus the to_i if you dont actually need a number
tylersm__ has joined #ruby
<bline79>
toretore: I need to simulate a carriage return, so I assume that's a \n ? I'm not sure
<jhass>
input.gsub(/\D/, '')
<AlexRussia>
crome: thanks brother ;)
<AlexRussia>
jhass: Oo
<crome>
jhass: even better
<toretore>
bline79: carriage return generally means \r
patrick99e99 has quit [Ping timeout: 265 seconds]
<toretore>
but it could mean just "user presses enter key"
momomomomo has quit [Quit: momomomomo]
<bline79>
I've tried putting in \n there and it doesn't seem to function properly
jprovazn_afk has quit [Quit: Odcházím]
<toretore>
you probably need to use popen
<bline79>
ie: result = %x[tsung-recorder status \n\n]
terrellt has quit [Read error: Connection reset by peer]
<toretore>
the process is waiting for something on stdin after it's been started
tylersmith has quit [Ping timeout: 268 seconds]
tcstar has joined #ruby
<toretore>
there is no program called "tsung-recorder status \n\n"
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
ohwhoa has quit [Quit: woah!]
jrhorn424 is now known as zz_jrhorn424
<AlexRussia>
how to get all string at file object?
danshultz has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 268 seconds]
tylersmi_ has quit [Ping timeout: 268 seconds]
<bline79>
It runs the command properly, but doesn't issue the return so it's waiting on input for it to finish
<toretore>
why is it waiting in the first place?
willcodeforfoo has joined #ruby
<toretore>
i mean it's not just waiting for a newline, that's stupid
<bline79>
default behavior of tsung-recorder.. not sure
willcodeforfoo has quit [Client Quit]
pragmatism has joined #ruby
<bline79>
it is extremely annoying, and has caused me to waste several hours
Burgestrand has quit [Quit: Burgestrand]
<maasha>
toretore: sure, but all of my data will blow the memory so it needs to be ordered on the fly. A cache that is output and cleared along the way could be a solution.
<pragmatism>
I'm writing a CLI using gem commander. What's the best way to test it?
davy_ has quit [Remote host closed the connection]
dx7 has joined #ruby
mansi has joined #ruby
<pipework>
pragmatism: With tests. I mean, there are three main kinds of tests. Functional, integration, and unit.
anorek has quit []
<pragmatism>
pipework: lol, sorry, I should have been more specific
<pipework>
pragmatism: Probably a fault of over-pragmatism. :p
<toretore>
maasha: well, time to get creative then
<pragmatism>
Is there a preferred framework for testing CLIs in ruby?
<maasha>
toretore: excellent. thanks! I will sleep on it and go to work tomorrow
willcodeforfoo has joined #ruby
<pragmatism>
At least something with a terminal mocker?
anorek has joined #ruby
<maasha>
apeiros: and thank you too. Your help is much appreciated.
dzhulk has quit [Remote host closed the connection]
adi_ has quit [Ping timeout: 245 seconds]
shaileshg has quit [Quit: Connection closed for inactivity]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Remote host closed the connection]
ehc has joined #ruby
zeleiadi has quit [Quit: Konversation terminated!]
MattStratton has quit [Ping timeout: 252 seconds]
chrisseaton has joined #ruby
jlast has joined #ruby
<unholycrab>
is it possible to specify a specific installed ruby version inside of the ruby script itself?
maasha has quit [Quit: Page closed]
<unholycrab>
instead of issuing 'rvm use' before running the script
moted has joined #ruby
<canton7>
chruby supports having a .ruby-version file, as does rbenv. dunno if rvm has that concept too
toastyne_ has quit [Remote host closed the connection]
<postmodern>
rvm supports .ruby-version files as well, it's a defacto standard
mikepack has joined #ruby
xeno has joined #ruby
mengu has joined #ruby
dseitz has joined #ruby
gfunc has quit [Remote host closed the connection]
<xeno>
I really have been looking for this: I have a file that will be included from many different directories, and it needs to do shell calls of scripts all over the tree. How do I specify the directory this file is in, NOT that the script is in, but that the required file is in?
dgaffney has quit []
chrisseaton has quit [Ping timeout: 265 seconds]
<canton7>
i'm lost. you can't have multiple directories include the same file. what's including what?
<benzrf>
canton7: scripts in many dirs will call require to get the file
quitobro has quit [Remote host closed the connection]
<toretore>
xeno: __FILE__
<benzrf>
toretore++
zachallett has quit [Remote host closed the connection]
Es0teric has quit [Ping timeout: 265 seconds]
<canton7>
wondered whether it might be
<canton7>
__dir__ too
MatthewsFace has quit [Ping timeout: 252 seconds]
<benzrf>
>> __DIR__
<bricker>
If anybody is good with firewall rules, is there an obvious reason this would fail to restart on ubuntu? "--append FIREWALL -p icmp --icmp-type 8 -s 205.144.162.128/255.255.255.224 -j ACCEPT"
<eval-in>
benzrf => undefined local variable or method `__DIR__' for main:Object (NameError) ... (https://eval.in/127431)
<near77>
I have 2 files in the modules folder, both have a function called start, I want to include each in my code and execute those functions and store the output
yasushi has joined #ruby
<near77>
this is so every time a new module needs to be added, only the file is uploaded to the modules folder, and nothing else needs to be modified
mengu has quit []
<near77>
but I want to run this scripts as part of my ruby master script, so they share common dependencies
randomnick_ has quit [Remote host closed the connection]
<havenwood>
near77: still not quite sure i follow, but something like?: Dir['modules/*.rb'].map { |filename| require File.basename filename }
<havenwood>
near77: these files you're requiring are '.rb', '.so', '.o', or '.dll', right? not something serialized?
emergion has joined #ruby
jottr has quit [Quit: WeeChat 0.4.2]
<near77>
exactly havenwood
<near77>
the require would be what I want
<near77>
(all the files are .rb)
<near77>
but im missing, how can I then call a function
<havenwood>
near77: how will you know the method's name that you want to call?
<near77>
sorry the example I gave was not the right one
cntrx has joined #ruby
cntrx has quit [Remote host closed the connection]
<near77>
it would be filename1_start() the other filename2_start()
northfurr has quit []
<havenwood>
near77: just asides, but i'd recommend two-space soft tabs, implicit returns (don't use `return` unless using it changes what the method returns), and omit parens on methods when there are no arguments.
<havenwood>
near77: though you don't need to get the basename to require a file
ktosiek_ has joined #ruby
<havenwood>
or map
quitobro has joined #ruby
<near77>
for example
<near77>
how would you execute a function
<near77>
that a user types?
<havenwood>
methods not functions
<near77>
for example function = $stdin.gets.chomp()
<near77>
yeah a method
ktosiek has quit [Read error: Connection reset by peer]
<havenwood>
so you want to define a method on a class based on #gets input? that seems odd
<benzrf>
ok wtf :(
monkegjinni has quit [Remote host closed the connection]
DallasG has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<near77>
no, the method exists
monkegjinni has joined #ruby
<near77>
I just want to call it after the require
<near77>
and it will depend on the name of the file
<near77>
like the file root.rb has a method called start_root()
<near77>
and I want to call it
<near77>
without typing the "start_root" but "start_#{filename}"
<havenwood>
near77: i don't at all follow, can you show example file structure and how you expect to call it and the desired output?
freeone3000 has quit [Quit: Konversation terminated!]
<havenwood>
i don't at all follow what you want
<havenwood>
benzrf: rabble rabble rabble!
davy has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
patrick99e99 has joined #ruby
linojon has quit [Quit: linojon]
cover has joined #ruby
<near77>
lets see
hiall has quit [Quit: hiall]
crystal77 has quit [Quit: Computer has gone to sleep.]
cntrx has joined #ruby
mansi has joined #ruby
<near77>
I have a file start.rb and a folder modules, I want to require each file in the folder modules and then execute a method which name is the filename_start()
<near77>
is that more clear=?
MohamedAlaa has quit []
workmad3 has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
meatherly has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
danman_ has quit [Quit: danman_]
Xiti has joined #ruby
bklane has joined #ruby
toastyne_ has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
<havenwood>
nope
patrick99e99 has quit [Ping timeout: 265 seconds]
chris_thomson has joined #ruby
Stalkr_ has joined #ruby
aspires has quit []
coderxin has quit [Remote host closed the connection]
aspires has joined #ruby
coderxin has joined #ruby
coderxin_ has joined #ruby
coderxin has quit [Read error: Connection reset by peer]
<near77>
found it
<near77>
I need send()
toretore has quit [Quit: This computer has gone to sleep]