whackatre has quit [Remote host closed the connection]
whackatre has joined #ruby
zastern has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
tacos1de has joined #ruby
jalcine has quit [Excess Flood]
whackatre has quit [Remote host closed the connection]
jalcine has joined #ruby
classix has quit [Ping timeout: 245 seconds]
jalcine has quit [Excess Flood]
diegoviola has joined #ruby
cburyta has quit [Remote host closed the connection]
Jefus has quit [Ping timeout: 240 seconds]
bzitzow has joined #ruby
adeponte has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
carlyle has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
freeayu has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
rickmasta has joined #ruby
twoism has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 248 seconds]
classix has joined #ruby
robustus has joined #ruby
<alainus>
is there a way to delete an item from an array (as with .delete), but that returns an array without the item, instead of actually changing the variabel
<alainus>
*variable
zeade has joined #ruby
<fryguy>
alainus: try using select instead (and inverting logic)
<r0bgleeson>
or reject
<fryguy>
yah was just going to say
druonysus has quit [Quit: Konversation terminated!]
codesoda has joined #ruby
reset has quit [Ping timeout: 248 seconds]
<alainus>
[1,2,3,4] - [3] also works
viszu has quit [Quit: Leaving.]
jalcine has joined #ruby
<r0bgleeson>
even better
classix has quit [Ping timeout: 248 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
Hobogrammer has joined #ruby
zeade has quit [Ping timeout: 240 seconds]
nezumi has joined #ruby
nezumi has quit [Remote host closed the connection]
<alainus>
in a .map statement, can I invoke the next item for a mathematical operation? (example: [40, 20, 10, 5, 1].map{ |v| v/v+1 } = [2, 2, 2, 5]
nezumi has joined #ruby
arya_ has joined #ruby
<alainus>
where v+1 is the next value, not the value plus 1
sambao21_ has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
<bnagy>
it would be ugly.
pcboy__ has quit [Read error: Operation timed out]
<bnagy>
>> new=[];[40,20,10,5,1].each_cons(2) {|a,b| new << a/b}; p new
codesoda has quit [Remote host closed the connection]
chimkan has joined #ruby
haxrbyte has quit [Ping timeout: 268 seconds]
krainboltgreene has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
zarubin has joined #ruby
sambao21 has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
thepumpk_ has joined #ruby
malcolmva has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
thepumpkin has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby
maxmanders has quit [Client Quit]
tundrax has quit [Remote host closed the connection]
saarinen has joined #ruby
<TheNotary>
As I understand it, an "Internet Cafe" is a physical place that exists where human beings can go perform digital acts and meet other human beings doing the same.
<TheNotary>
Sure, why not ban them, and while we're at it, let's ban English too, we'll all talk in New Speak to each other, that'll show 'em
havenwood has quit [Remote host closed the connection]
tundrax has joined #ruby
yekta has joined #ruby
<bnagy>
oh no, HN has found me :< HIDE!
cha1tanya_ has joined #ruby
<alainus>
I'm getting a huge infinite loop on my code and I'm not able to fix it for the life of me. Can anyone help me with a small revie
<alainus>
I think I might have seen the problem by trying to explain it in the comments, though. I'm using @differentials where I should be using @order in the if conditional
<alainus>
but this .sort! thing is making @order appear backwards at the end
tylersmith has joined #ruby
<bnagy>
uh.. wat
<bnagy>
what are you trying to do?
<TheNotary>
^
<TheNotary>
the method would look prettier to me (and be easier/possible to test) if it had two parameter inputs (order, additions), and it returned what ever it is you're trying to return
ranmocy has joined #ruby
syamajala has joined #ruby
syamajala has quit [Client Quit]
<TheNotary>
and might be clearer too, it's kind of hard to get to the bottom of in this state
syamajala has joined #ruby
<bnagy>
the recursive call with no clear bailout makes me queasy
pierre1 has quit [Remote host closed the connection]
Mars` has joined #ruby
kpshek has quit []
queston has joined #ruby
endomorphism has joined #ruby
gstamp has joined #ruby
<endomorphism>
Hello. Does anybody know if it's possible to test shoes4 GUI with rspec and cucumber? For example, I want to make sure that the button contains specified text or that it does the right thing.
jhowarth_ has quit [Quit: Connection closed for inactivity]
wookiehangover has quit [Quit: i'm out]
diegoviola has quit [Quit: WeeChat 0.4.1]
wookiehangover has joined #ruby
fgo has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 256 seconds]
rupee has joined #ruby
pranny has joined #ruby
banjara has quit [Quit: Leaving.]
pranny1 has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
adeponte has quit [Remote host closed the connection]
banjara1 has joined #ruby
nomenkun has joined #ruby
marvelous has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
wesside has quit [Ping timeout: 246 seconds]
pranny has quit [Ping timeout: 256 seconds]
renderful has quit [Remote host closed the connection]
jkline has joined #ruby
marvelous has left #ruby [#ruby]
vlad_starkov has joined #ruby
poseid has joined #ruby
yaboo has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
tjbiddle has joined #ruby
ayaz has joined #ruby
banjara1 has quit [Quit: Leaving.]
yaboo has joined #ruby
chriskk has quit [Quit: chriskk]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
rupee has quit [Ping timeout: 264 seconds]
poseid has quit [Quit: poseid]
osvico has quit [Ping timeout: 264 seconds]
mahmoudimus has joined #ruby
hadees has quit [Quit: hadees]
mrfoo has joined #ruby
apeiros has joined #ruby
julweber has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter has joined #ruby
yaboo has quit [Remote host closed the connection]
yaboo has joined #ruby
yaboo has quit [Client Quit]
yaboo has joined #ruby
workmad3 has quit [Ping timeout: 268 seconds]
hadees has joined #ruby
madb055 has quit [Read error: No route to host]
madb055 has joined #ruby
ayaz has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Quit: tjbiddle]
optimusprimem has quit [Ping timeout: 245 seconds]
b0oh has joined #ruby
cj3kim has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 240 seconds]
ayaz has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
sdogruyol has joined #ruby
statarb3 has quit [Quit: Leaving]
Mars^ has quit [Ping timeout: 240 seconds]
rosario has joined #ruby
timonv has joined #ruby
codeplay has joined #ruby
<rosario>
Hello
zigomir has joined #ruby
jds has joined #ruby
<rosario>
Not to start a debate over which language is better, but could you say if there is an advantage of using Ruby vs using Perl or Python?
darth_chatri1 has joined #ruby
ninegrid has joined #ruby
<sevenseacat>
lol
<sevenseacat>
try them all, see which you prefer.
darth_chatri has quit [Ping timeout: 240 seconds]
brennanMKE has joined #ruby
jprovazn has joined #ruby
eightbitraptor has joined #ruby
_Andres has joined #ruby
b0oh has quit [Quit: Leaving.]
colonolGron has joined #ruby
<codeplay>
Ruby's large gemset is one quick advantage.
b0oh has joined #ruby
wisewizard has joined #ruby
fgo has joined #ruby
eightbitraptor has quit [Client Quit]
<popl>
Perl has CPAN.
<bnagy>
yeah and python has about a billion libs
eightbitraptor has joined #ruby
<bnagy>
in fact I'd probably put ruby last on 'availability of other people's code'
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
<bnagy>
quality of same is a different matter
bondar has joined #ruby
bondar has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
statarb3 has joined #ruby
ssvo has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
<bnagy>
starting perl as a new language now is probably bad, because all the perl users are very old and will die soon
<bnagy>
so hard to get advice
Mars^ has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
<zendeavor>
not really difficult to get advice though
wisewizard is now known as wizard_
wizard_ is now known as wisewizard
<popl>
heh
buibex has joined #ruby
brennanMKE has quit [Ping timeout: 256 seconds]
<bnagy>
all ruby's idiotci global vars are from our aged perl forefathers ( @$ @! @: @< ...)
<zendeavor>
but learning perl's core language sucks
relix has joined #ruby
pen has quit [Remote host closed the connection]
<zendeavor>
"there's a cpan module for that"
jkline has quit [Quit: jkline]
<bnagy>
the way I see it, python has waaay more mindshare, so if you want to use other people's code and don't mind a slightly headfucked approach to OO python is good
<zendeavor>
but i wanna learn how to implement it myself
<zendeavor>
"read the cpan module source"
<zendeavor>
"that's already the best way"
<zendeavor>
i wanna learn my own way
<zendeavor>
same as C really
blaxter has quit [Quit: foo]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
<sevenseacat>
i couldnt wrap my brain around python. that was some years ago though, before i learnt ruby
goodgame has joined #ruby
bondar has quit [Excess Flood]
<bnagy>
if you want to do web crap ruby is definitely the way to go
<zendeavor>
popl: perl's still kewl tho.
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Client Quit]
ayaz has quit [Read error: Operation timed out]
clocKwize has joined #ruby
<bnagy>
yeah fortran has its moments too
mickeyd has joined #ruby
bondar has joined #ruby
bondar has quit [Client Quit]
<bnagy>
I hear F90 or whatever is really slick
blaxter_ has joined #ruby
<zendeavor>
i don't mind using other people's code, but i had so much trouble getting into python with the thought hanging over my head "the stdlib probably already does this in some obscure way"
yaboo has quit [Remote host closed the connection]
fwaokda has quit [Ping timeout: 260 seconds]
<goodgame>
MrZYX: I'm sorry if it double posts (I'm encountering network pb) but what is the -I mode you've talked about yesterday?
pootler has quit [Ping timeout: 264 seconds]
<bnagy>
rosario: what areas of programming interest you?
v0n has quit [Ping timeout: 256 seconds]
clocKwize has quit [Client Quit]
romockee has joined #ruby
ayaz has joined #ruby
<rosario>
It struggle with it, but mostly want to use it in sysadmin roles for automation purposes.
eightbitraptor has quit [Quit: eightbitraptor]
_seanc_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
<bnagy>
python, then learn ansible
<bnagy>
hands down
blaxter_ has quit [Ping timeout: 256 seconds]
<rosario>
Perl looks archaic and complex. Python seems readable but it was a little difficult to learn. I don't know much about ruby.
persand has joined #ruby
<zendeavor>
administration leans toward perl because "it's already everywhere"
yaboo has joined #ruby
<bnagy>
hm. I'm seeig a lot less perl and a lot more python for general *nix utility scripting
<bnagy>
and I expect that trend to continue imho
<zendeavor>
these days, for sure
<bnagy>
plus ansible is pretty sweet
<rosario>
I guess what sparks my interest is, puppet's inherit scripting lang is ruby. Puppet is a big deal now for admins
<zendeavor>
but if you're working with legacy systems, which is absurdly common, generally "perl's already there"
<zendeavor>
rosario: puppet is just one of many
<bnagy>
puppet is wank
sayan has joined #ruby
<bnagy>
it's what web designers prodice when you ask them for a devops tool
b0oh has quit [Quit: Leaving.]
staafl has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
havenwood has joined #ruby
<zendeavor>
if you're setting up new systems that you are the initial administartor for, choose your favourite tool for the job. you aren't constrained by maintaining legacy compatibility with existing automation
darth_chatri1 is now known as darth_chatri
optimusprimem has joined #ruby
_seanc_ has quit [Quit: _seanc_]
jds has quit [Remote host closed the connection]
ephemerian has joined #ruby
blaxter_ has joined #ruby
ericmathison has quit [Quit: leaving]
adeponte has joined #ruby
philipe1 has joined #ruby
threesome has joined #ruby
renderful has joined #ruby
sdogruyol has quit [Quit: sdogruyol]
adeponte has quit [Ping timeout: 256 seconds]
blitz has quit [Quit: This computer has gone to sleep]
mroth has quit [Quit: Connection closed for inactivity]
colonolG1on has joined #ruby
fphilipe has joined #ruby
lapsa has joined #ruby
havenwood has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 248 seconds]
nowthatsamatt has joined #ruby
colonolGron has quit [Ping timeout: 240 seconds]
wisewizard has quit [Remote host closed the connection]
yaboo has quit [Remote host closed the connection]
gstamp has quit [Quit: Computer has gone to sleep.]
Mars^ has quit [Ping timeout: 256 seconds]
tonini has quit [Remote host closed the connection]
tonini has joined #ruby
rdark has joined #ruby
marvelous1 has joined #ruby
maxmanders has joined #ruby
jonahR has quit [Quit: jonahR]
danslo has joined #ruby
danslo has quit [Client Quit]
tatsuya_o has joined #ruby
danslo has joined #ruby
binaryplease has joined #ruby
J2000_ca has joined #ruby
pootler has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
marvelous1 has quit [Quit: Leaving.]
sdogruyol has joined #ruby
denver has joined #ruby
J2000_ca has quit [Quit: Page closed]
Vivekananda has quit [Ping timeout: 248 seconds]
arya__ has joined #ruby
dotemacs has quit [Quit: Connection closed for inactivity]
havenwood has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
__wizard has joined #ruby
jbpros has joined #ruby
julweber has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<rosario>
Thanks for all the feedback, all.
niceguyjames has joined #ruby
popl has quit [Quit: We must make an idol of our fear, and call it God.]
camilasan has joined #ruby
fgo has quit [Remote host closed the connection]
jds has joined #ruby
troessner has joined #ruby
danslo has quit [Quit: danslo]
<__wizard>
whois
__wizard has left #ruby ["Leaving"]
lkba has quit [Ping timeout: 248 seconds]
__wizard has joined #ruby
Vivekananda has joined #ruby
corehook has joined #ruby
jbueza has quit [Quit: Leaving.]
marr has joined #ruby
jbueza has joined #ruby
headius has quit [Quit: headius]
CaptainJet_ has quit []
vigintas has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.1]
danslo has joined #ruby
jds has quit [Ping timeout: 256 seconds]
DaniG2k has joined #ruby
hogeo has quit [Remote host closed the connection]
Shipow has joined #ruby
Shipow has quit [Client Quit]
fphilipe has quit [Ping timeout: 246 seconds]
zets has quit [Ping timeout: 276 seconds]
philipe1 has quit [Ping timeout: 264 seconds]
<sdogruyol>
anyone here tried laravel ?
b0oh has joined #ruby
zets has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
Rix has quit [Ping timeout: 248 seconds]
<joonty>
sdogruyol: the PHP framework?
<sdogruyol>
joonty : yes that one
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
b0oh has quit [Ping timeout: 246 seconds]
<joonty>
I'm losing faith in PHP, after 5 years :(
DestinyAwaits has joined #ruby
<sdogruyol>
joonty : well i thought so but laravel gonna be the saviour of php soon imho
<sevenseacat>
i just installed laravel today actually
<sdogruyol>
sevenseacat : really ?
<sevenseacat>
yep
<joonty>
PHP will always be unattractive as a language, and imo the closures make it look worse
<sevenseacat>
it looks like a nice framework, but then again i havent got much past hello world :p
<sdogruyol>
joonty: also not a fan of Php but have to admit that it's kinda everywhere
<sdogruyol>
sevenseacat: yeah it's pretty nice one combining the best of a lot of good frameworks
<sdogruyol>
sevenseacat: currently messing up with laravel via a vagrant box
<joonty>
sdogruyol: true. A lot of that had to do with the fact that it was the language with the smallest learning curve during a time when the other web language options were asp and java
<joonty>
don't get me wrong, I think PHP is fine. It's just not ruby.
Rix has joined #ruby
<sdogruyol>
joonty: yeah and you know in most parts of the world it's really easy to find some php guy
<sdogruyol>
joonty: ah don't worry i got you :) off it's not ruby wish it was :)
blackmesa has joined #ruby
<joonty>
sdogruyol: yeh, it's sad when employers have to pick a language due to abundance of developers rather than the best choice for the job
<joonty>
here, .NET and PHP reign, closely followed by Java
<sdogruyol>
yeah sad but true
<DaniG2k>
i need to learn groovy -_- fml
<DaniG2k>
cause they want to use it at my company
<sdogruyol>
joonty: actually the same here . where you from ?
<DaniG2k>
worst piece of crap ever
shaunbaker has joined #ruby
<joonty>
sdogruyol: UK - Birmingham
<sdogruyol>
joonty : ah Turkey - Istanbul here
<joonty>
sdogruyol: hah, some things are the same everywhere then!
<sdogruyol>
joonty: though working in a UK based company lol
<joonty>
sdogruyol: good stuff
<joonty>
DaniG2k: I feel your pain
<sdogruyol>
DaniG2k: groovy on rails at least the name resembles :D
Zai00 has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<joonty>
"It's almost the same thing!"
<sdogruyol>
joonty: how's the work ratio in UK for ruby and for stuff
elaptics`away is now known as elaptics
<joonty>
sdogruyol: growing, but slowly. Generally you're better off as a ruby dev than a company looking for ruby devs, due to shortage
TIJ has joined #ruby
robbyoconnor has joined #ruby
senayar has joined #ruby
<joonty>
Also, lots more going on in London, but not everyone lives there :P
krz has joined #ruby
<sdogruyol>
joonty: well quite the same here lol you know people get jobs from saying things like .net is more secure etc
noname001 has joined #ruby
vlad_starkov has joined #ruby
<joonty>
I love how people talk about security
ybart has joined #ruby
dodosan has quit [Remote host closed the connection]
<joonty>
the most secure program is one that accepts no user input and is running on a machine disconnected from the internet
<sdogruyol>
joonty: ROFL so true :)
dodosan has joined #ruby
<zendeavor>
i don't
<zendeavor>
they need to stfu.
goshakkk has joined #ruby
<joonty>
zendeavor: sarcasm :D (unless you double-sarcasm'd me)
leonid__ has joined #ruby
devoldmx has joined #ruby
jbueza has quit [Quit: Leaving.]
<zendeavor>
no i super srs'd you
devoldmx3 has quit [Ping timeout: 256 seconds]
julweber has joined #ruby
dodosan has quit [Ping timeout: 256 seconds]
<joonty>
hehe
devoldmx3 has joined #ruby
hogeo has joined #ruby
ebobby has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
buzzybron1 has left #ruby [#ruby]
fwaokda has joined #ruby
mickeyd has quit [Ping timeout: 264 seconds]
persand has quit [Quit: persand]
ZadYree has quit [Ping timeout: 240 seconds]
ebobby has quit [Ping timeout: 256 seconds]
mickeyd has joined #ruby
eightbitraptor has joined #ruby
saarinen has quit [Quit: saarinen]
fwaokda has quit [Ping timeout: 264 seconds]
codezombie has quit [Read error: Connection reset by peer]
b0oh has joined #ruby
mikecmpbll has joined #ruby
davout has joined #ruby
khushildep has joined #ruby
jkline has joined #ruby
<davout>
hello all
<davout>
can someone point me to a robust and maintained DSL-creation gem ?
persand has joined #ruby
nomenkun has joined #ruby
Villadelfia has quit [Ping timeout: 268 seconds]
SeySayux has quit [Ping timeout: 264 seconds]
LennyLinux has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Villadelfia has joined #ruby
ged has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fivethreeo has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
WhereIsMySpoon_ has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
atmosx_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
jds has joined #ruby
blackmes1 has joined #ruby
vlad_starkov has joined #ruby
eightbitraptor has quit [Ping timeout: 248 seconds]
foohey_ has joined #ruby
alo1_ has joined #ruby
Muz_ has joined #ruby
arya_ has joined #ruby
lump has joined #ruby
arya__ has quit [Ping timeout: 248 seconds]
eka has joined #ruby
colonolG1on has quit [Quit: Lost terminal]
jds has quit [Ping timeout: 248 seconds]
spacemud_ has joined #ruby
Meatant has quit [Quit: wibble]
Azure|dc has joined #ruby
Azure|dc has quit [Changing host]
Azure|dc has joined #ruby
nomadic_ has joined #ruby
eightbitraptor has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
optimusprimem has quit [*.net *.split]
Azure has quit [*.net *.split]
willb1 has quit [*.net *.split]
foohey has quit [*.net *.split]
Tarential has quit [*.net *.split]
nomadic has quit [*.net *.split]
rotor has quit [*.net *.split]
Muz has quit [*.net *.split]
nuba has quit [*.net *.split]
elektronaut has quit [*.net *.split]
Zelest has quit [*.net *.split]
aedorn has quit [*.net *.split]
froy has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
alo1 has quit [*.net *.split]
fivethre1o has quit [*.net *.split]
TMM has quit [*.net *.split]
Guest92337 has quit [*.net *.split]
wuest has quit [*.net *.split]
Guest82294 has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
phreax_ has quit [*.net *.split]
rpgsimmaster_ has quit [*.net *.split]
jayne has quit [*.net *.split]
pdtpatrick has quit [*.net *.split]
daaaan has quit [*.net *.split]
lancepantz has quit [*.net *.split]
spacemud has quit [*.net *.split]
eregon has quit [*.net *.split]
mljsimone|away has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
Boohbah has quit [*.net *.split]
Guest60009 has quit [*.net *.split]
BeanDip_ has quit [*.net *.split]
marcellu1 has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
goshakkk has quit [*.net *.split]
Zai00 has quit [*.net *.split]
DestinyAwaits has quit [*.net *.split]
corehook has quit [*.net *.split]
vigintas has quit [*.net *.split]
rdark has quit [*.net *.split]
lapsa has quit [*.net *.split]
threesome has quit [*.net *.split]
statarb3 has quit [*.net *.split]
jprovazn has quit [*.net *.split]
jmimi has quit [*.net *.split]
radic__ has quit [*.net *.split]
bhaak has quit [*.net *.split]
GeissT has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
ryanhirsch has quit [*.net *.split]
cads has quit [*.net *.split]
autumn has quit [*.net *.split]
[0x1a] has quit [*.net *.split]
JoeTheGuest has quit [*.net *.split]
sarcilav has quit [*.net *.split]
keyvan has quit [*.net *.split]
JMcAfreak has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
yeban has quit [*.net *.split]
echevemaster has quit [*.net *.split]
ziyadb has quit [*.net *.split]
chxane has quit [*.net *.split]
devdazed has quit [*.net *.split]
filipe has quit [*.net *.split]
joonty has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
jericon has quit [*.net *.split]
ttt_ has quit [*.net *.split]
closer has quit [*.net *.split]
rismoney has quit [*.net *.split]
nomenkun has quit [*.net *.split]
cibs has quit [*.net *.split]
ybart has quit [*.net *.split]
hogeo has quit [*.net *.split]
jkline has quit [*.net *.split]
__wizard has quit [*.net *.split]
tatsuya_o has quit [*.net *.split]
sayan has quit [*.net *.split]
romockee has quit [*.net *.split]
ayaz has quit [*.net *.split]
rosario has quit [*.net *.split]
tagrudev has quit [*.net *.split]
Shirakawasuna has quit [*.net *.split]
nazty has quit [*.net *.split]
malcolmva has quit [*.net *.split]
nezumi has quit [*.net *.split]
Domon has quit [*.net *.split]
dayepa has quit [*.net *.split]
NsOmNiAc has quit [*.net *.split]
takezawa has quit [*.net *.split]
sevenseacat has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
AlbireoX has quit [*.net *.split]
andredieb has quit [*.net *.split]
sumark has quit [*.net *.split]
bnagy has quit [*.net *.split]
mnms has quit [*.net *.split]
digifiv5e has quit [*.net *.split]
freakazoid0223 has quit [*.net *.split]
rblackwe has quit [*.net *.split]
undert has quit [*.net *.split]
caveat- has quit [*.net *.split]
ThePicard has quit [*.net *.split]
blz37 has quit [*.net *.split]
blast_hardcheese has quit [*.net *.split]
hexbit has quit [*.net *.split]
nyuszika7h has quit [*.net *.split]
naquad has quit [*.net *.split]
yellow5 has quit [*.net *.split]
Schmidt has quit [*.net *.split]
Kudos has quit [*.net *.split]
Guest66930 has quit [*.net *.split]
Cork has quit [*.net *.split]
bakedb_ has quit [*.net *.split]
iaj has quit [*.net *.split]
jacobw has quit [*.net *.split]
effbiai has quit [*.net *.split]
erichmenge has quit [*.net *.split]
billiam has quit [*.net *.split]
zets has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
Mo0O has quit [*.net *.split]
zavier has quit [*.net *.split]
choobie has quit [*.net *.split]
is_null has quit [*.net *.split]
DandyPandy_ has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
KRF has quit [*.net *.split]
adrian1 has quit [*.net *.split]
robert_ has quit [*.net *.split]
wykydtron has quit [*.net *.split]
heftig has quit [*.net *.split]
Guest73681 has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
tommyblue has quit [*.net *.split]
tethra has quit [*.net *.split]
sweet_kid has quit [*.net *.split]
e-dard has quit [*.net *.split]
swistak35 has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
kzrl_ has quit [*.net *.split]
seich has quit [*.net *.split]
ShapeShifter499 has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
oz has quit [*.net *.split]
shtirlic has quit [*.net *.split]
chee has quit [*.net *.split]
drizz has quit [*.net *.split]
aboudreault has quit [*.net *.split]
drfreeze has quit [*.net *.split]
Catie has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
fearoffish has quit [*.net *.split]
scrogson has quit [*.net *.split]
spacebug has quit [*.net *.split]
pontiki has quit [*.net *.split]
toddWork__ has quit [*.net *.split]
codex has quit [*.net *.split]
ec_ has quit [*.net *.split]
yasu has quit [*.net *.split]
Veejay has quit [*.net *.split]
rgoodwin has quit [*.net *.split]
zaargy has quit [*.net *.split]
zphobic has quit [*.net *.split]
flurick has quit [*.net *.split]
jalcine has quit [*.net *.split]
randym_ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
xerxas has quit [*.net *.split]
davidboy has quit [*.net *.split]
ILoveYou[ has quit [*.net *.split]
brasten has quit [*.net *.split]
s0ber has quit [*.net *.split]
bubblehead has quit [*.net *.split]
Anarch has quit [*.net *.split]
airtonix has quit [*.net *.split]
jeremy_c has quit [*.net *.split]
Desert_eagle has quit [*.net *.split]
wchun has quit [*.net *.split]
yugui_zzz has quit [*.net *.split]
deallocate has quit [*.net *.split]
joelteon has quit [*.net *.split]
ainame has quit [*.net *.split]
s00pcan_ has quit [*.net *.split]
Guest46529 has quit [*.net *.split]
epochwolf has quit [*.net *.split]
ismlages has quit [*.net *.split]
hakunin has quit [*.net *.split]
bier has quit [*.net *.split]
Columcille has quit [*.net *.split]
gf3 has quit [*.net *.split]
coaster has quit [*.net *.split]
Coolhand has quit [*.net *.split]
idoru has quit [*.net *.split]
Azure|dc is now known as Azure
spacemud_ is now known as spacemud
darth_chatri has quit [Quit: Leaving.]
Cork has joined #ruby
nyuszika7h has joined #ruby
s0ber has joined #ruby
Mo0O has joined #ruby
KRF has joined #ruby
DandyPandy_ has joined #ruby
adrian1 has joined #ruby
is_null has joined #ruby
choobie has joined #ruby
aboudreault has joined #ruby
wykydtron has joined #ruby
Guest73681 has joined #ruby
oz has joined #ruby
sweet_kid has joined #ruby
DarkFoxDK has joined #ruby
zaargy has joined #ruby
zavier has joined #ruby
GeekOnCoffee has joined #ruby
robert_ has joined #ruby
Catie has joined #ruby
tobiasvl has joined #ruby
seich has joined #ruby
kzrl_ has joined #ruby
Freeaqingme has joined #ruby
tommyblue has joined #ruby
heftig has joined #ruby
swistak35 has joined #ruby
tethra has joined #ruby
scrogson has joined #ruby
rgoodwin has joined #ruby
e-dard has joined #ruby
fearoffish has joined #ruby
ShapeShifter499 has joined #ruby
codex has joined #ruby
pontiki has joined #ruby
drfreeze has joined #ruby
zphobic has joined #ruby
flurick has joined #ruby
shtirlic has joined #ruby
chee has joined #ruby
ec_ has joined #ruby
toddWork__ has joined #ruby
spacebug has joined #ruby
drizz has joined #ruby
yasu has joined #ruby
Veejay has joined #ruby
SegFaultAX has joined #ruby
AliRezaTaleghani has joined #ruby
<AliRezaTaleghani>
I have an array of values which I need to loop on it's row multiple times....
dayepa1 has joined #ruby
Zelest has joined #ruby
SeySayux has joined #ruby
elektronaut has joined #ruby
rpgsimmaster has joined #ruby
jayne_ has joined #ruby
lapsa has joined #ruby
ybart has joined #ruby
wuest has joined #ruby
romockee has joined #ruby
__wizard has joined #ruby
jprovazn has joined #ruby
Sp4rKy has joined #ruby
sayan has joined #ruby
corehook has joined #ruby
mikecmpbll has joined #ruby
goshakkk has joined #ruby
threesome has joined #ruby
jkline has joined #ruby
zets has joined #ruby
rosario has joined #ruby
nazty has joined #ruby
tatsuya_o has joined #ruby
tagrudev has joined #ruby
rdark has joined #ruby
ttt has joined #ruby
radic__ has joined #ruby
vigintas has joined #ruby
jmimi has joined #ruby
Shirakawasuna has joined #ruby
daaaan has joined #ruby
NsOmNiAc has joined #ruby
malcolmva has joined #ruby
GeissT has joined #ruby
nomenkun has joined #ruby
statarb3 has joined #ruby
BeanDip__ has joined #ruby
cads has joined #ruby
takezawa has joined #ruby
bhaak has joined #ruby
jonathanwallace has joined #ruby
dayepa has joined #ruby
nezumi has joined #ruby
autumn has joined #ruby
hogeo has joined #ruby
[0x1a] has joined #ruby
JoeTheGuest has joined #ruby
jalcine has joined #ruby
tkuchiki has joined #ruby
xerxas has joined #ruby
ayaz has joined #ruby
JMcAfreak has joined #ruby
Domon has joined #ruby
keyvan has joined #ruby
r0bgleeson has joined #ruby
yeban has joined #ruby
[Neurotic] has joined #ruby
davidboy has joined #ruby
sarcilav has joined #ruby
randym_ has joined #ruby
ryanhirsch has joined #ruby
echevemaster has joined #ruby
Zai00 has joined #ruby
45PAA0Q19 has joined #ruby
kapowaz has joined #ruby
brasten has joined #ruby
AlbireoX has joined #ruby
devdazed has joined #ruby
chxane has joined #ruby
ILoveYou[ has joined #ruby
ziyadb has joined #ruby
filipe has joined #ruby
andredieb has joined #ruby
sumark has joined #ruby
joonty has joined #ruby
Anarch has joined #ruby
airtonix has joined #ruby
bubblehead has joined #ruby
tommylommykins has joined #ruby
jericon has joined #ruby
Desert_eagle has joined #ruby
jeremy_c has joined #ruby
wchun has joined #ruby
yugui_zzz has joined #ruby
deallocate has joined #ruby
ainame has joined #ruby
joelteon has joined #ruby
s00pcan_ has joined #ruby
Guest46529 has joined #ruby
epochwolf has joined #ruby
ismlages has joined #ruby
bnagy has joined #ruby
freakazoid0223 has joined #ruby
mnms has joined #ruby
bier has joined #ruby
hakunin has joined #ruby
digifiv5e has joined #ruby
rblackwe has joined #ruby
caveat- has joined #ruby
gf3 has joined #ruby
ThePicard has joined #ruby
coaster has joined #ruby
undert has joined #ruby
Coolhand has joined #ruby
Columcille has joined #ruby
hexbit has joined #ruby
blz37 has joined #ruby
idoru has joined #ruby
willb1 has joined #ruby
cibs has joined #ruby
blast_hardcheese has joined #ruby
yellow5 has joined #ruby
rismoney has joined #ruby
Kudos has joined #ruby
rotor has joined #ruby
Tarential has joined #ruby
naquad has joined #ruby
closer has joined #ruby
Schmidt has joined #ruby
nuba has joined #ruby
Guest66930 has joined #ruby
iaj has joined #ruby
bakedb_ has joined #ruby
jacobw has joined #ruby
aedorn has joined #ruby
effbiai has joined #ruby
erichmenge has joined #ruby
TMM has joined #ruby
phreax_ has joined #ruby
yeltzooo has joined #ruby
pdtpatrick has joined #ruby
billiam has joined #ruby
AntelopeSalad has joined #ruby
eregon has joined #ruby
marcellu1 has joined #ruby
mljsimone|away has joined #ruby
lancepantz has joined #ruby
Guest82294 has joined #ruby
Guest60009 has joined #ruby
Boohbah has joined #ruby
ILoveYou has joined #ruby
blast_hardcheese has quit [Ping timeout: 268 seconds]
obs has joined #ruby
AlbireoX has quit [Max SendQ exceeded]
caveat- has quit [Max SendQ exceeded]
dayepa has quit [Remote host closed the connection]
AlbireoX has joined #ruby
45PAA0Q19 has quit [Max SendQ exceeded]
SeySayux has quit [Max SendQ exceeded]
threesome has quit [Max SendQ exceeded]
vigintas has quit [Max SendQ exceeded]
[0x1a] has quit [Max SendQ exceeded]
cads has quit [Max SendQ exceeded]
vigintas has joined #ruby
cads has joined #ruby
SeySayux has joined #ruby
ILoveYou[ has quit [Ping timeout: 248 seconds]
[0x1a] has joined #ruby
DestinyAwaits has joined #ruby
optimusprimem has joined #ruby
Bry8Star{T2 has joined #ruby
caveat- has joined #ruby
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
samuel02 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
ananthakumaran1 has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
pdtpatrick has quit [Remote host closed the connection]
blast_hardcheese has joined #ruby
pdtpatrick has joined #ruby
dhruvasagar has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
BizarreCake has joined #ruby
saarinen has joined #ruby
choobie has quit [Read error: Operation timed out]
saarinen has quit [Client Quit]
gyre007 has joined #ruby
saarinen has joined #ruby
threesome has joined #ruby
obs has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<YaNakilon>
WUT?
sdogruyol has quit [Quit: sdogruyol]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
ffio_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
ffio has quit [Ping timeout: 264 seconds]
<davout>
anyone using the docile gem for custom DSLs ?
tvw has joined #ruby
<davout>
looks nice, however there isn't much in the documentation concerning nested DSLs
vlad_starkov has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
DrCode has quit [Remote host closed the connection]
choobie has joined #ruby
choobie has quit [Changing host]
choobie has joined #ruby
joshu has quit [Quit: Bye.]
DrCode has joined #ruby
AlSquire has joined #ruby
Astralum has quit [Ping timeout: 264 seconds]
lessless has joined #ruby
<lessless>
is it possible to decompose array to literals with splat operator?
Vivekananda has quit [Quit: Ex-Chat]
sdogruyol has quit [Quit: sdogruyol]
jonkri has quit [Quit: jonkri]
DaniG2k has quit [Ping timeout: 256 seconds]
DaniG2k1 has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
nari has joined #ruby
DaniG2k1 has quit [Client Quit]
DestinyAwaits1 has joined #ruby
DaniG2k has joined #ruby
DestinyAwaits is now known as Guest54515
DestinyAwaits1 is now known as DestinyAwaits
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
Guest54515 has quit [Ping timeout: 246 seconds]
lkba has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
pyrac has joined #ruby
<Olipro>
lessless: you mean basically dump it into variables?
<Olipro>
you can do this:
<Olipro>
one, two, three = *[1,2,3]
Spooner has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Read error: Operation timed out]
razi has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
poseid has joined #ruby
<poseid>
anyone here not satisfied with status quo of Sprockets?
sleetdrop has joined #ruby
GeissT_ has joined #ruby
GeissT_ has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
persand has quit [Quit: persand]
nfk has quit [Quit: yawn]
GeissT has quit [Ping timeout: 246 seconds]
marr has quit []
elentras has joined #ruby
jbpros has quit [Quit: jbpros]
obs has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
queston has joined #ruby
dotemacs_ has joined #ruby
anay has quit [Remote host closed the connection]
adac has joined #ruby
dotemacs_ is now known as dotemacs1
dotemacs1 is now known as dotemacs_
_Andres has joined #ruby
<adac>
If I have a "protected" or "private" is the code that follow normally indented?
__wizard has quit [Ping timeout: 268 seconds]
sdogruyol has joined #ruby
ttt has quit [Remote host closed the connection]
freerobby has joined #ruby
Neomex has joined #ruby
<dotemacs_>
Hello, I'm "speaking" an API which is returning one of the attributes as '#<Date: 1986-01-02 ((2446433j,0s,0n),+0s,2299161j)>'. What's the best way to deal with it ?
<dotemacs_>
correction: speaking with an API
andikr has quit [Remote host closed the connection]
poikon_zombie has joined #ruby
persand has joined #ruby
ttt has joined #ruby
darth_chatri has joined #ruby
poikon_zombie has quit [Client Quit]
jkline has quit [Quit: jkline]
poikon has joined #ruby
<elentras>
dotemacs_ : the simplest is to play with a regexp. then you will get a string than you can convert to_date
includex has joined #ruby
zets has quit [Ping timeout: 252 seconds]
<dotemacs_>
elentras: thanks
freeayu has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
SeySayux has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
Neomex has quit [Quit: Neomex]
jds has joined #ruby
pedda has joined #ruby
pyrac has quit [Quit: pyrac]
sdogruyol has quit [Quit: sdogruyol]
<Mon_Ouie>
adac: No (because visibility modifiers are just method calls)
SeySayux has joined #ruby
Villadelfia has joined #ruby
<adac>
Mon_Ouie, thanks! I
jds has quit [Ping timeout: 248 seconds]
joshu has joined #ruby
<apeiros>
dotemacs_: are you sure it returns that as a *string*?
<apeiros>
because that is the inspect of a Date
<joonty>
adac: some people unindent the "protected" or "private" to make it inline with the "class" declaration
<apeiros>
if it *really* returns that as a String, I'd report a bug, because that's certainly wrong.
<apeiros>
adac, joonty: I do that, same for module_function
<dotemacs_>
yea, but i found a way to deal with, thanks @apeiros
<joonty>
dotemacs_: is it an HTTP API
<dotemacs_>
joonty: yea
<joonty>
dotemacs_, apeiros: then surely, it has to be a string?
<apeiros>
joonty, dotemacs_: depends on the client he uses
sdogruyol has joined #ruby
<joonty>
as long as the raw data is what you printed dotemacs_
<dotemacs_>
joonty: it is a string, so you can't use it as an object
<apeiros>
if he's accessing it raw via e.g. net/http, then yes. and then it's clearly a bug IMO.
<adac>
joonty, apeiros that would make sense then with the explanation Mon_Ouie gave.
hogeo has quit [Remote host closed the connection]
<joonty>
yup, we're all on the same page
<apeiros>
adac, joonty: to clarify, I only deintent argument-less
<apeiros>
I keep `private :foo` on the same indent level as e.g. `def` or `attr_*`
optimusprimem has joined #ruby
<adac>
Ok I see apeiros thanks
<joonty>
apeiros: yes, same here, though I rarely use private/protected with args
<apeiros>
I'd prefer if it was `private do … end`, though
<apeiros>
then I'd not deindent
<apeiros>
I don't really get why they didn't implement it that way anyway. the current implementation is… shady.
<joonty>
yes, it is a bit strange
<joonty>
like `alias` as well
hogeo has joined #ruby
<apeiros>
well, alias has the non-quirky alias_method counterpart
<joonty>
true, just learnt about that recently!
<apeiros>
unlike private, protected etc., alias is not a method but syntax.
machuga|away is now known as machuga
<apeiros>
alias_method can't alias globals, though (and now: discuss why we'd want global aliasing…)
<joonty>
i didn't realise that private and protected were methods tbh
<joonty>
because their behaviour is so different
<apeiros>
well, the method-less variant couldn't written in plain ruby. so that's somewhat understandable.
<apeiros>
(ok, it could - but only with trace_func trickery)
<joonty>
so, global aliasing
<joonty>
is that something like `alias :$- :stdin`?
gustavn has joined #ruby
eightbitraptor has quit [Quit: eightbitraptor]
Xeago has joined #ruby
LiquidInsect has quit [Ping timeout: 248 seconds]
camilasan has quit [Remote host closed the connection]
<Mon_Ouie>
For example $PROGRAM_NAME is an alias for $0
<Mon_Ouie>
if you do $0 = "test", then $PROGRAM_NAME.equal? $0 will still be true
<raddy__>
I have configured a different version of passenger and its module in httpd
<_br_>
Does anyone here successfully run rack::livereload and guard-livereload with Sinatra and Slim templates?
bmn has joined #ruby
<raddy__>
But it is still using the older version.
DestinyAwaits has quit [Ping timeout: 248 seconds]
enebo has joined #ruby
cabottoo has joined #ruby
browndawg has joined #ruby
lkba has joined #ruby
<dEPy>
I have a JSON string which I parse, and I get Hash, Array, and stuff nested one into each other. Is there any way to traverse all of that and rename all the hash keys even if the hash is nested somewhere deep?
<matti>
Spooner: He could install newer rdoc ;p
cabottoo has left #ruby [#ruby]
<raddy__>
So, people here would only ask questions, is it ?
DestinyAwaits1 has quit [Ping timeout: 264 seconds]
<Xeago>
raddy__: I don't use passenger
<raddy__>
okk
julweber has quit [Read error: Connection reset by peer]
poikon has quit [Remote host closed the connection]
kindjal has joined #ruby
<Xeago>
my issues with apache and mod_* were resolved with recompiling
<Xeago>
you might have luck in #passenger
julweber has joined #ruby
<Xeago>
or what the channel is
<raddy__>
Xeago : ohh, i didn't know that
raddy__ has left #ruby [#ruby]
monkegjinni has joined #ruby
momomomomo has quit [Quit: momomomomo]
thoolihan has joined #ruby
v0n has joined #ruby
kevinykchan has joined #ruby
fredjean has quit [Ping timeout: 264 seconds]
Coolhand has quit [Remote host closed the connection]
rickruby has quit [Read error: Connection reset by peer]
Davey has joined #ruby
johnmilton has joined #ruby
monkegjinni has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
chxane has joined #ruby
camilasan has quit [Remote host closed the connection]
kofno has joined #ruby
<jonjo>
I am Using rake (10.0.4) but get the error You have already activated rake 10.1.0, but your Gemfile requires rake 10.0.4. Using bundle exec may solve this.
<kasper>
bundle exec rake yourcommand
<kasper>
prepend your command with bundle exec
burlyscudd has joined #ruby
pwnfactory has joined #ruby
viszu has joined #ruby
kofno_ has quit [Ping timeout: 256 seconds]
rickruby has joined #ruby
voglster has joined #ruby
codeplay has quit [Quit: Page closed]
phracker has joined #ruby
rickruby has quit [Remote host closed the connection]
headius has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Leaving]
relix has joined #ruby
jprovazn has joined #ruby
nbouscal has joined #ruby
Coolhand has joined #ruby
axl_ has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
<maloik>
Has anyone used the SLOP gem for option parsing? I just don't get how to display the help... I can set it to true when calling the block but then it stops doing anything else
lapsa has quit [Quit: leaving]
tonini has joined #ruby
sayan has quit [Read error: Connection reset by peer]
marr has joined #ruby
thebastl_ has joined #ruby
jprovazn has quit [Quit: Leaving]
huoxito has joined #ruby
phutchins has joined #ruby
fridim_ has joined #ruby
thebastl has quit [Ping timeout: 240 seconds]
_seanc_ has joined #ruby
carloslopes has joined #ruby
niceguyjames has quit [Remote host closed the connection]
niceguyjames has joined #ruby
jerius_ has joined #ruby
sleetdrop has joined #ruby
jprovazn has joined #ruby
cool has quit [Quit: Connection closed for inactivity]
elux has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
kofno has quit [Remote host closed the connection]
queston has quit [Ping timeout: 240 seconds]
corehook has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
alem0lars has joined #ruby
mikecmpbll has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jprovazn has quit [Client Quit]
colonolGron has quit [Quit: Lost terminal]
interactionjaxsn has joined #ruby
akashj87 has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jefflyne has joined #ruby
sailias has joined #ruby
crankycoder has joined #ruby
LarsSmit has joined #ruby
mmitchell has joined #ruby
kasper has quit [Remote host closed the connection]
TIJ has quit [Ping timeout: 248 seconds]
syamajala has joined #ruby
phracker has quit [Ping timeout: 256 seconds]
thebastl_ has quit [Remote host closed the connection]
thebastl has joined #ruby
_JamieD_ has joined #ruby
v0n has joined #ruby
rhys has joined #ruby
jeffreylevesque_ has joined #ruby
LarsSmit has quit [Quit: Leaving.]
acrussell has joined #ruby
andrewh_ has quit [Quit: leaving]
closer has quit [Ping timeout: 256 seconds]
cibs has quit [Ping timeout: 256 seconds]
rismoney has quit [Ping timeout: 256 seconds]
rismoney has joined #ruby
k3rn3lit1 has joined #ruby
closer has joined #ruby
k3rn3lito has quit [Ping timeout: 260 seconds]
<ericwood>
hey, how would I do a string match for variations of the word "inbox"
<ericwood>
as in "in" and "inb" etc. would match?
kloeri has quit [Remote host closed the connection]
<ericwood>
can't think of a good way to do the partial matching with regex :\
asteve has joined #ruby
ttt has joined #ruby
talntid has quit [Ping timeout: 260 seconds]
kloeri has joined #ruby
talntid2 has joined #ruby
doritostains has joined #ruby
<_br_>
Variations of the word inbox means stemming?
<ericwood>
well
<ericwood>
just partial completions of the whole word
soukihei has quit [Ping timeout: 260 seconds]
jonkri has joined #ruby
jonkri has quit [Changing host]
jonkri has joined #ruby
<ericwood>
so "i" "in" "inb", etc. match
jlast has joined #ruby
havenwood has joined #ruby
<_br_>
hm
ah9 has joined #ruby
diego_k has quit [Ping timeout: 260 seconds]
<ericwood>
it's for an autocomplete-esque thing
BillCriswell has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<ericwood>
this is just a special case for it :\
devoldmx has quit [Ping timeout: 268 seconds]
_seanc_ has quit [Quit: _seanc_]
diegok has joined #ruby
tonini has quit [Remote host closed the connection]
<ah9>
does anyone know of a yaml document that YAML.load_file would fail on for 1.8.7 and 1.9.3?
<ericwood>
I could programatically generate permutations on "inbox"
<ericwood>
_br_: there doesn't seem to be an elegant way to do what I want :P
cburyta has quit [Remote host closed the connection]
<_br_>
ericwood: I think the only possible way is by opening up Regex class and fiddle around in there. Otherwise I wouldn't know how to do it "properly" without some hack e.g. creating permutations.
asteve has joined #ruby
<ericwood>
that's true
<_br_>
its more a data structure issue though in my opinion.
ttt has quit [Ping timeout: 256 seconds]
dwirc_ has quit [Ping timeout: 264 seconds]
<ericwood>
kind of
<ericwood>
the other stuff I autocomplete uses ILIKE in postgres
danbeck has joined #ruby
pipework has joined #ruby
rosario has quit [Ping timeout: 268 seconds]
queston has joined #ruby
[Nies] has joined #ruby
queston has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<_br_>
Well if you want something like the "like" operator you can use "?" in regular expressions e.g. /inb?/ matches inbox in inb inbox etc.
TheBatMan has joined #ruby
brennanMKE has joined #ruby
mary5030 has joined #ruby
dillwithers has joined #ruby
<ericwood>
ooooh!
Nies has quit [Ping timeout: 240 seconds]
<ericwood>
ewll
<ericwood>
kind of
syamajala has quit [Ping timeout: 256 seconds]
<_br_>
but again, depending on the search space I think this is a data structure issue
mary5030_ has joined #ruby
tonini has joined #ruby
TheBatMan has left #ruby [#ruby]
<ah9>
ericwood: that seems to pass on 1.8.7 :)
[Nies] is now known as Nies
tk_ has quit [Quit: ばいばい]
<ericwood>
ah9: D:
alem0lars has quit [Quit: Leaving]
TheBatMan has joined #ruby
<_br_>
ah9: Why do we care about MRI anyway? I thought that is retired?
<TheBatMan>
Well..Rubinius 2.0 now has full thread support and a concurrent gc.
LaPetiteFromage has joined #ruby
<TheBatMan>
We should just screw mri
kernelpanik has joined #ruby
<TheBatMan>
and move to rubinius
viszu has quit [Ping timeout: 268 seconds]
<kernelpanik>
hi guys!
<kernelpanik>
how can I write a file using EOF?
<TheBatMan>
just sayin.
<kernelpanik>
like in bash
binaryplease has quit [Ping timeout: 264 seconds]
<_br_>
TheBatMan: is there any "good" benchmarks for the different rubies flying around anywhere?
<ah9>
_br_: indeed, but supporting 1.8.7 is still important for a lot of shops :)
chriskk has quit [Quit: chriskk]
tagrudev has quit [Remote host closed the connection]
<_br_>
TheBatMan: Well they still all deal with the GIL issue no?
<ericwood>
*gang sign*
<TheBatMan>
end of life.
<TheBatMan>
no more support.
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
persand has quit [Quit: persand]
<TheBatMan>
_br_: GIL not in Rubinius or Jruby
mary5030 has quit [Ping timeout: 268 seconds]
<ericwood>
the GIL won't be removed from IRB ever
<TheBatMan>
ericwood: Why not?
<apeiros>
TheBatMan: GIL still in production rubinius afaik
<TheBatMan>
apeiros: Try the new 2.0 branch. But yes, 1.2.4 still has the gil
<apeiros>
from rubini.us: "The current version Rubinius is 1.2.4" - and 1.2.4 has a GIL
<apeiros>
TheBatMan: I know. but advertising non-production versions is bad form :-p
<ericwood>
TheBatMan: idk, not my decision to make
<_br_>
Yeah that was kind of surprising...
<apeiros>
but rbx2 is sure taking its time…
<apeiros>
kernelpanik: what do you mean?
__wizard has joined #ruby
<TheBatMan>
apeiros: :P
codecop has joined #ruby
<TheBatMan>
Yeah, soon.
<TheBatMan>
I have an idea
wallerdev has joined #ruby
<kernelpanik>
cat > test << EOF
<TheBatMan>
why don't we take all MRI core committers, and move them to rubinius. Win.
<kernelpanik>
FOOO
<kernelpanik>
like that in bash
<apeiros>
kernelpanik: close the file for write
senayar_ has joined #ruby
<apeiros>
oh, you mean you want to read from stdin?
* apeiros
still confused as to what kernelpanik wants…
<apeiros>
IO#read will read until EOF
<apeiros>
File::write will write a file and close it after writing
dash_ has quit [Quit: Time to beer :)]
<kernelpanik>
ah ok! sorry my question was confused :)
<apeiros>
and if you want to read continuously then you can use IO#gets
enroxorz has joined #ruby
<apeiros>
(i.e. line for line)
hogeo has quit [Remote host closed the connection]
<_br_>
I'm totally guessing here but do you mean something like this kernelpanik ? File.open( "/tmp/blubb", "w" ) << "hello"
senayar_ has quit [Remote host closed the connection]
<kernelpanik>
yes!
enroxorz is now known as ArchBeOS
senayar has quit [Ping timeout: 264 seconds]
zeade has quit [Quit: Leaving.]
senayar has joined #ruby
<kernelpanik>
in order to not write for each line foo.write("hello") and foo.write("\n")
sayan has joined #ruby
tvw has quit []
<apeiros>
well, File.write(path, content) # writes a complete file in 1 go
acrussell has left #ruby [#ruby]
<kernelpanik>
y
<kernelpanik>
so.. File.open( "/tmp/blubb", "w" ) << "hello" and for close I can just put EOF ?
tonini has quit [Remote host closed the connection]
zmike123 has joined #ruby
<kernelpanik>
I was looking for something related to it in my ruby guide, but I did not find anything
tommyvyo has joined #ruby
<ah9>
_br_: TheBatMan: thanks for replying, naturally I know 1.8.7's status, but I need to make sure my tests pass for it - period. I've created a separate test fixture for 1.8.7.
viszu has joined #ruby
<TheBatMan>
ah9: I wasn't here for the question
ebobby has joined #ruby
<TheBatMan>
The initial question
akashj87 has joined #ruby
<_br_>
kernelpanik: Use apeiros version.
altivec has joined #ruby
ananthakumaran has joined #ruby
<_br_>
Btw. did you guys see this benchmark? (I know benchmarks, and then this webstuff) Still quite interesting in terms of ruby vs jruby though. http://www.techempower.com/blog/
obs has joined #ruby
thoolihan has quit [Quit: thoolihan]
Skelz0r has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
Mattix has joined #ruby
mrfoo has quit [Ping timeout: 250 seconds]
adac has quit [Quit: Leaving]
altivec has quit [Client Quit]
ArchBeOS is now known as WarChief
burlyscudd has quit [Quit: Leaving.]
Skelz0r has quit [Client Quit]
Skelz0r has joined #ruby
bondar has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
__wisewizard has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
__wizard has quit [Quit: Leaving]
madb055 has joined #ruby
__wisewizard has quit [Read error: Connection reset by peer]
Mattix has left #ruby [#ruby]
_seanc_ has joined #ruby
dwirc has joined #ruby
takezawa has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
nnww has joined #ruby
supergiantrobot has joined #ruby
apeiros has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
enebo has quit [Quit: enebo]
<havenwood>
_br_: Topaz and MagLev are other neat Ruby implementations to look at for speed. Now if they'd just run Sinatra already! :P
kevinykchan has quit [Read error: Connection reset by peer]
<havenwood>
resure: oh... lol, hosted on RubyForge... >.>
<resure>
:D
enebo has quit [Remote host closed the connection]
<_br_>
havenwood: Huh? In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it.
danslo has quit [Ping timeout: 248 seconds]
<resure>
And list of rubyforge mirrors is only on rubyforge too
angusiguess has quit [Ping timeout: 264 seconds]
<havenwood>
resure: They might know then, #railsinstaller
enebo has joined #ruby
axl_ has quit [Ping timeout: 256 seconds]
axl__ is now known as axl_
poseid has quit [Quit: Leaving.]
freerobby has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
<_br_>
resure: Thats a nice catch-22
<havenwood>
_br_: Ah, anthropomorphizing. The script itself is a polyglot. Scripts get angry when you anthropomorphize them, as it hurts their feelings.
cha1tanya_ has joined #ruby
<_br_>
havenwood: Ah!! That was the term I was looking for, thanks.
cha1tanya has quit [Read error: Connection reset by peer]
BrianJ has joined #ruby
ckrailo has joined #ruby
cha1tanya_ is now known as cha1tanya
goshakkk has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
drfreeze has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
Ripp__ has joined #ruby
Sep1 has quit [Quit: Leaving.]
philipe1 has joined #ruby
jefflyne has joined #ruby
poseid has quit [Quit: Leaving.]
cih has joined #ruby
mickeyd has quit []
darth_chatri has joined #ruby
mickeyd has joined #ruby
ForSpareParts has quit [Remote host closed the connection]
mickeyd is now known as fwaokda
<cih>
Hi Guys, I have a question I was hoping someone could help me with. I have built a ruby cli that interacts with an api through a gem. I wan't this to be used system wide without having the gems installed globally. Is having all of the gems code within mine a good option?
fphilipe has joined #ruby
kil0byte has quit [Remote host closed the connection]
cih has left #ruby [#ruby]
cih has joined #ruby
KarlHung1s is now known as KarlHungus
nomenkun has quit [Remote host closed the connection]
<_br_>
cih: You want to include gem dependencies locally directly in your own gem? Well you can package it together I suppose, its pretty unclean though.
havenwood has quit [Remote host closed the connection]
ciziar has joined #ruby
<cih>
_br_: Yeah that's what I thought, I don't like that approach, is there a better way I can do it?
b0oh has quit [Quit: Leaving.]
Davey has joined #ruby
_JamieD_ has quit [Ping timeout: 264 seconds]
_JamieD__ is now known as _JamieD_
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_br_>
cih: whats wrong with it being installed via normal rubygems etc. ?
thebastl_ has joined #ruby
lessless has quit [Remote host closed the connection]
razi has quit [Read error: Operation timed out]
ebobby has joined #ruby
grillermo has joined #ruby
Kruppe has joined #ruby
blaxter_ has quit [Ping timeout: 240 seconds]
MindSpark has quit [Quit: MindSpark]
<cih>
_br_: Well I it is a script I want to be able to be called system wide and it has a couple of dependencies. As I understand this would mean that the the gems would need to be installed globally which may not be ideal?
<MrZYX>
it may not be ideal because....?
sarkis has joined #ruby
thoolihan has joined #ruby
darth_chatri has quit [Quit: Leaving.]
<cih>
MrZYX: Someone who wished to use it could have a different version of a gem for something else
thebastl has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
<_br_>
cih: Isn't a local user better off relying on rbenv/rvm for things like that ?
sarkis has quit [Client Quit]
<_br_>
If this is integrated as callable system wide I feel you should rely on the package manager of the system for this kind of issue.
sarkis has joined #ruby
ebobby has quit [Ping timeout: 240 seconds]
<cih>
_br_: So using a specific gemset defined within my gem somewhere? This is how I use it but did not know wether that would be the best approach for others
Pip has joined #ruby
<_br_>
cih: is your gem installed via the gem command of your $distro ?
kil0byte has joined #ruby
redgirl has joined #ruby
thebastl_ has quit [Remote host closed the connection]
durango has joined #ruby
<durango>
Does anyone know of a utility that lets me create a private tunnel from my locla machine to the world? I know there was a ruby gem out there.. was wondering if anyone knew of anything / for nodejs in particular
<MrZYX>
tunnel from where to where?
maxmanders has quit [Quit: Computer has gone to sleep.]
fredjean has quit [Quit: Computer has gone to sleep.]
senayar has quit [Remote host closed the connection]
robscomputer_ has joined #ruby
<_br_>
durango: ruby gem for that? Not ssh?
<durango>
nah
<durango>
something like showoff.io
<durango>
but not that
<durango>
something free >.>
<cih>
_br_: That is the plan, initially expecting that it would just be cloned, run bundle and away you go but want it to be as simple to use as possible
<MrZYX>
hm, pagekite?
londerson has joined #ruby
<_br_>
cih: via clone? Whats wrong with creating a simple gemspec and publishing it properly ?
<durango>
MrZYX: thanks, does this last forever / as long as I want or is it limited free edition?
<MrZYX>
dunno
<MrZYX>
never used it
b0oh has joined #ruby
<MrZYX>
I'm able to configure my router :P
<durango>
:p
<MrZYX>
site says pay what you want for personal use
adeponte has joined #ruby
<durango>
i cant :(
<durango>
thanks :D
fredjean has joined #ruby
<cih>
_br_: Nothing wrong with that approach, I will do that but it still does not solve the problem.. So you would package as a gem and have a config option for a gemset to use, something like that?
<_br_>
Pagekit? Eh, I see dyndns + ssh -R didn't know this is a problem these days.
julweber has quit [Remote host closed the connection]
renderful has joined #ruby
Davey has joined #ruby
viszu has quit [Quit: Leaving.]
Ry0_ has joined #ruby
kil0byte has quit [Remote host closed the connection]
darth_chatri has joined #ruby
Ry0_ has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
Ry0_ has joined #ruby
ntus1017 has quit [Remote host closed the connection]
adeponte has quit [Read error: Connection reset by peer]
_adeponte has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
moos3 has joined #ruby
Ry0_ has quit [Remote host closed the connection]
Shirakawasuna has quit [Quit: Leaving]
_adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
durango has left #ruby [#ruby]
adeponte has quit [Read error: Connection reset by peer]
Ry0_ has joined #ruby
ebobby has joined #ruby
adeponte has joined #ruby
terracatta has joined #ruby
axeman- has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
zeade has joined #ruby
jbueza has joined #ruby
pwnfactory has quit [Quit: Leaving]
adeponte has quit [Ping timeout: 264 seconds]
jjbohn has joined #ruby
razi has quit [Quit: Leaving.]
elaptics is now known as elaptics`away
<dEPy>
can anyone check this https://gist.github.com/carmivore/5959047 and tell me what I'm doing wrong? I'm trying to traverse parsed json (nested hashes and arrays) and "camelize" every hash key for every hash even nested ones
Mars^ has joined #ruby
<dEPy>
my solution works for but if I nest hash -> array -> hash it doesn't works
mljsimone is now known as mljsimone|away
monkegjinni has quit [Remote host closed the connection]
_seanc_ has joined #ruby
katherinem13 has quit [Ping timeout: 248 seconds]
blitz has joined #ruby
ssvo has quit [Quit: Lost terminal]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
BSaboia has joined #ruby
<havenwood>
dEPy: Just an aside, but i'd be more idiomatic to "Camelizing #{k}" and `.is_a? Class` instead of `.class == Class`.
mark_locklear has quit [Quit: Leaving]
jjbohn has quit [Ping timeout: 248 seconds]
<MrZYX>
dEPy: if you want a fast answer add sample input and expected output ;)
mahmoudimus has joined #ruby
Pip has quit [Ping timeout: 276 seconds]
jblack has quit [Quit: Lost terminal]
mklappstuhl has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
ssvo has joined #ruby
includex has quit [Quit: Leaving...]
mansi has quit [Ping timeout: 241 seconds]
noop has joined #ruby
ciziar has quit [Quit: Computer has gone to sleep.]
katherin1m13 is now known as katherinem13
skane has quit [Ping timeout: 256 seconds]
adeponte has joined #ruby
gyre007 has quit [Remote host closed the connection]
sarcilav has quit [Quit: Connection closed for inactivity]
drejohnson has joined #ruby
pootler has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
DanKnox_away is now known as DanKnox
_JamieD_ has quit [Quit: _JamieD_]
YaNakilon has quit [Ping timeout: 240 seconds]
rupee has joined #ruby
DrCode has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
jwest has quit [Quit: WeeChat 0.4.0]
jwest has joined #ruby
jwest has quit [Client Quit]
marcdel has joined #ruby
vigintas has quit [Read error: Connection reset by peer]
Voodoofish430 has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
enebo has joined #ruby
darth_chatri has joined #ruby
msuszczy has joined #ruby
jarray52 has joined #ruby
Appineer has joined #ruby
thebastl has joined #ruby
dougireton has quit [Quit: Leaving.]
troessner has quit [Quit: Leaving]
deception is now known as deception-idle
jmimi has quit [Ping timeout: 246 seconds]
cofin has quit [Quit: cofin]
jeffreylevesque_ has quit [Quit: ChatZilla 0.9.90 [Firefox 21.0/20130511120803]]
Appineer has left #ruby [#ruby]
headius has quit [Quit: headius]
adeponte has joined #ruby
monkegjinni has joined #ruby
dodosan has joined #ruby
camilasan has quit [Remote host closed the connection]
kpshek has quit []
tjbiddle_ has joined #ruby
saarinen has joined #ruby
breakingthings has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
tjbiddle_ has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
mocfive has joined #ruby
goodgame has joined #ruby
cj3kim has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
dougireton has joined #ruby
tkuchiki has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 240 seconds]
trepidaciousMBR has joined #ruby
adeponte has quit [Remote host closed the connection]
<trepidaciousMBR>
If I have a string of bytes, which are just bytes and NOT text, unicode or otherwise, how do I get the number of bytes in that string?
kpshek has joined #ruby
<MrZYX>
#bytesize
sambao21 has joined #ruby
zmike123 has quit [Read error: Connection reset by peer]
twoism has joined #ruby
<apeiros>
trepidaciousMBR: all strings are just bytes :-p
dougireton has quit [Ping timeout: 248 seconds]
<apeiros>
text is just bytes, unicode too. it's a decision to interpret those bytes in a specific way.
<trepidaciousMBR>
Yes, but in this case I'm being sort of forced to use a String as a substitute for a byte array...
monkegjinni has quit [Remote host closed the connection]
<trepidaciousMBR>
If it was a byte array, I imagine it would have a length, size or similar
<trepidaciousMBR>
That's what I'm after
<apeiros>
ruby doesn't have a byte array. strings are rubys byte arrays.
<trepidaciousMBR>
Yes, so given that this String is a byte array, what is its length?
<apeiros>
(and MrZYX gave the answer)
<trepidaciousMBR>
in bytes, not characters
<trepidaciousMBR>
ah cool, thanks
<Morrolan>
apeiros: So a string is a sequence of bytes, and not a sequence of unicode codepoints?
<trepidaciousMBR>
I managed to miss that ;)
<apeiros>
Morrolan: can be both
<apeiros>
bytes can be interpreted as unicode codepoints
LaPetiteFromage has joined #ruby
ToApolytoXaos has joined #ruby
<trepidaciousMBR>
In this case that interpretation is juts wrong though :)
<Hanmac>
hy OSX users i am looking for something like ldd for osx
<apeiros>
for certain byte sequences it'd also be invalid
burlyscudd has quit [Quit: Leaving.]
end_guy has joined #ruby
Astral_ has joined #ruby
jjbohn has joined #ruby
jcoglan has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
m_3 has quit [Remote host closed the connection]
cih has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
danslo has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
interactionjaxsn has quit [Remote host closed the connection]
julweber has quit [Remote host closed the connection]
wagster has quit [Quit: Computer has gone to sleep.]
cofin has joined #ruby
freerobby has quit [Quit: Leaving.]
robscomputer_ has quit [Remote host closed the connection]
freerobby has joined #ruby
robscomputer_ has joined #ruby
burlyscudd has joined #ruby
<epitron>
alainus: what're you doing that for? faking scientific data?
headius has quit [Client Quit]
mocfive has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
adeponte has quit [Read error: Connection reset by peer]
akashj87 has quit [Quit: Leaving]
spider-mario has joined #ruby
<epitron>
(kidding!)
cj3kim has joined #ruby
<epitron>
seriously though, it helps to know why you're doing that crazy thing
c0rn has joined #ruby
Catbuntu has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
alvaro_o has joined #ruby
Catbuntu is now known as Guest56834
mduvall has joined #ruby
alvaro_o has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
BSaboia has quit [Ping timeout: 248 seconds]
nomenkun has joined #ruby
Guest56834 has quit [Client Quit]
HelenCrowley has joined #ruby
HelenCrowley is now known as Catbuntu
rgreen_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
<rgreen_>
hello
<rgreen_>
I have a question about strings, can anyone help?
m_3 has joined #ruby
<havenwood>
rgreen_: Just go ahead and ask. :)
jlast has quit [Ping timeout: 268 seconds]
<apeiros>
we can't help with unspoken questions.
mocfive has joined #ruby
breakingthings has joined #ruby
fenicks has joined #ruby
mocfive has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
_adeponte has joined #ruby
cha1tanya has quit [Quit: Leaving]
jlast has joined #ruby
adeponte has quit [Read error: No route to host]
mansi has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
wallerdev has quit [Quit: wallerdev]
inimit has joined #ruby
adeponte has joined #ruby
<rgreen_>
i have a string like "sadhkjfths=2345<p>aslkdfhsk;hs=3245,sfsdfdsfs" I want to search the string for the numbers (2345 and 3245) which always come after the string "hs="
<Hanmac>
pontiki ldd shows on linux wich library files an program require (mostly recusiv) you can use it to look if the program can find the library you need
xargoon has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
axeman- has quit [Remote host closed the connection]
<apeiros>
rgreen_: if you tell me what you understand, and what you don't understand
Catbuntu has quit [Quit: Tschüß french people]
poga has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros>
banister`gym: omg, no! no crazy for me now! :)
browndawg has left #ruby [#ruby]
sambao21 has joined #ruby
<apeiros>
banister`gym: how do you do those long statements?
xargoon has joined #ruby
<banister`gym>
apeiros: what long statement?
<rgreen_>
sure, scan(/(?<=hs=)\d+/) I know that scan is searching through the string for the arguments its is given. I know that the \d+/ is searching for integers and the + sign allows the integers to be grouped together. I dont understand the "?<=" part however
poseid has joined #ruby
<apeiros>
banister`gym: the class definition e.g.
<banister`gym>
apeiros: what do u mean? that's just pry multi-line support
<apeiros>
banister`gym: ok. how do you do multiline in pry? :)
<Hanmac>
banister`gym: i like that crazy shit ;D
<banister`gym>
apeiros: it's automatically multi-line, same as irb
rosario has quit [Disconnected by services]
<apeiros>
rgreen_: \d+, the + is actually "1 or more", not grouping.
<rgreen_>
ah ok
<banister`gym>
apeiros: you really can't enter multi line expressions in pry?
gnerol_ has joined #ruby
<apeiros>
rgreen_: the (?<=…) group is a look-behind
eldariof has joined #ruby
<apeiros>
it does not consume and not capture, but must be matched in front of the next expression
timonv has quit [Remote host closed the connection]
<apeiros>
i.e., it's quite literally "1 or more digits with 'hs=' in front of it"
druonysuse has quit [Ping timeout: 240 seconds]
<banister`gym>
apeiros: i just have a differnet prompt :)
v0n has quit [Read error: Connection reset by peer]
v0n has joined #ruby
<rgreen_>
got it, what would it mean to have (?=hs=)\d+/ ?
<apeiros>
banister`gym: ah, hm
<apeiros>
banister`gym: I mean afaik you somehow tell pry that something is one statement
druonysuse has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
<apeiros>
so that when you go back in the history, the multiple lines appear as a single statement again
<apeiros>
no?
ericmathison has joined #ruby
<banister`gym>
apeiros: pry just looks for 'complete expressions'
<apeiros>
rgreen_: either include both delimiters of the regex or none, only including the ending delimiter is confusing :-p
<banister`gym>
if the expression is incomplete, pry will keep requesting input
<banister`gym>
otherwise it executes it
devoldmx has joined #ruby
<apeiros>
banister`gym: sure, but if I define a 3-line class and hit arrow-up after that, I get "end" only (the last line)
wallerdev has joined #ruby
<banister`gym>
apeiros: oh, yeah, you can't get multiline stuff in history
<apeiros>
how would I be able to get the whole thing as one? afair pry can do that
<waxjar>
how did you get the prompt to be whitespace with a pipe instead of [x] pry(main)* ?
<rgreen_>
got it, what would it mean to have (?>=hs=)\d+/ ?
<banister`gym>
you can't
<apeiros>
rgreen_: aaaaaah!
<rgreen_>
lol what?
<apeiros>
/(?>=hs=)\d+/, that starting / is part of the regex. srsly :)
<rgreen_>
sorry i guess i dont even know what a regex is
<apeiros>
and (?>=) is invalid I'd say
<apeiros>
well, /…/ is a regex. /foo/.class # => Regexp
<rgreen_>
ok, and also what part of the regex are the delimiters?
baordog has joined #ruby
<apeiros>
the /
<apeiros>
same as it's " for strings
ner0x has joined #ruby
<rgreen_>
ahhhhh ok haha i understand what is the difference between doing /(?<=hs=)\d+/ aand /(?<=hs=)[0-9]+/
<apeiros>
none
<rgreen_>
hmm ok thanks
<apeiros>
[0-9] is equivalent to \d
Astral_ has quit [Ping timeout: 245 seconds]
rezzack has joined #ruby
<alainus>
epitron, sorry I wasn't here... hahaha, no, it's for a small game we're building. It's going to be used to determine the position of some things on the screen
fwaokda has quit [Ping timeout: 264 seconds]
mocfive has joined #ruby
kennym has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
druonysuse has quit [Quit: Konversation terminated!]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
<rgreen_>
ok last question, if i had lets say string1="sadhkjfths=2345<p>aslkdfhsk;hs=3245,sfsdfdsfs" string2="sadhkjfths=1234<p>aslkdfhsk;hs=3455,sfsdfdsfs" and I want to create an array of arrays with each subarray containing the results from the scan method we were talking about. I have tried something like string.each do |i| b=string.scan(/(?<=hs=)\d+/) where b should the array of arrays
cantonic has quit [Quit: cantonic]
devoldmx has quit [Ping timeout: 276 seconds]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<rgreen_>
or rather b=i.scan...
denver has quit [Remote host closed the connection]
robscomputer_ has quit [Read error: Connection reset by peer]
robscomputer_ has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
banister`gym has quit [Remote host closed the connection]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
jastix has quit [Quit: Leaving]
devoldmx has quit [Ping timeout: 240 seconds]
poseid has quit [Quit: poseid]
<rgreen_>
it tells me that i cannot map a string
mickeyd has joined #ruby
<MrZYX>
sure
<MrZYX>
I didn't write string1.map
tatsuya_o has joined #ruby
gustavn has joined #ruby
<epitron>
alainus: so it's a level generator?
johnmilton has quit [Ping timeout: 276 seconds]
tatsuya_o has quit [Remote host closed the connection]
mickeyd is now known as fwaokda
robscomputer_ has quit [Ping timeout: 248 seconds]
<rgreen_>
ok well I guess I havnt explained this correctly. I have an array of strings to begin with. I want to go through each one and find the numbers in it and in a new array create a subarray for each of the strings that contains the numbres that were found in it
cpruitt has joined #ruby
thepumpkin has quit [Remote host closed the connection]
xardas has quit [Quit: ChatZilla 0.9.90 [Firefox 22.0/20130618035212]]
_adeponte has joined #ruby
randym_ has quit [Quit: Connection closed for inactivity]
corehook has quit [Read error: Operation timed out]
robscomputer_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Vivekananda has quit [Ping timeout: 264 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Ping timeout: 276 seconds]
druonysuse has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Quit:]
bondar has joined #ruby
Ry0_ has joined #ruby
zastern has joined #ruby
banister`gym has joined #ruby
goshakkk has joined #ruby
<banister`gym>
apeiros: ah, you might have meant the 'play' command, which can be used to play back previous expressions in their entirety
<banister`gym>
ditto for the 'edit' command which enables you to re-edit them in an editor
kenneth has joined #ruby
<kenneth>
hey
viszu has joined #ruby
enherit has joined #ruby
<rgreen_>
say i had a string like""mynameishello;fsf=3253"this is more writing" and i want to split the string around hello;fsf=3253
_Andres has joined #ruby
tommyvyo has joined #ruby
vlad_starkov has joined #ruby
<rgreen_>
how would i do that?
<MrZYX>
.split /hello;fsf=\d+/
interactionjaxsn has joined #ruby
haxrbyte has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<rgreen_>
what is the difference between that and /(?<=hello;fsf...?
Ripp__ has quit [Quit: This computer has gone to sleep]
<MrZYX>
you asked for splitting around hello;fsf=3253 ?
<rgreen_>
yes
<MrZYX>
get irb and try it out
danslo has quit [Quit: danslo]
<rgreen_>
your first answer is what im looking for, i am trying irb and i see whats happening but I was just wondering if you could give an english explanation for it
_adeponte has quit [Read error: No route to host]
adeponte has joined #ruby
<MrZYX>
I can't because I don't fully get your question ;)
<rgreen_>
lol ok nvm, thanks for your help
adeponte has quit [Remote host closed the connection]
inimit has left #ruby [#ruby]
vlad_starkov has quit [Ping timeout: 260 seconds]
ffranz has quit [Quit: Leaving]
v0yager has joined #ruby
marr has joined #ruby
WarChief is now known as ArchBeOS
Vivekananda has joined #ruby
flaritycat has joined #ruby
Ripp__ has joined #ruby
sepp2k has joined #ruby
rsahae has quit [Quit: rsahae]
vlad_starkov has joined #ruby
adeponte has joined #ruby
seitensei has quit [Ping timeout: 248 seconds]
rgreen_ has quit [Ping timeout: 250 seconds]
carloslopes has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
banister`gym has quit [Read error: Connection reset by peer]
chriskk has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
Ry0_ has quit [Remote host closed the connection]
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
devoldmx has joined #ruby
burlyscudd has quit [Quit: Leaving.]
musl_ has joined #ruby
musl has quit [Ping timeout: 245 seconds]
statarb3 has quit [Read error: Connection timed out]
statarb3 has joined #ruby
gsvolt_ has joined #ruby
Vivekananda has quit [Ping timeout: 264 seconds]
haxrbyte_ has joined #ruby
gsvolt has quit [Quit: No Ping reply in 180 seconds.]
mark_locklear has quit [Quit: Leaving]
<eliasp_>
what's the "official" name for a statement like '$foo = $bar ? { /something/ => "blah", /anything/ => "blub", default => nil }'? the first part is ternary-like to me, but the evaluation block is something I can't find the "offical name" for to read about it…
haxrbyte has quit [Ping timeout: 260 seconds]
<kenneth>
is .to_json deterministic?
grillermo has quit [Quit: bandtastic.me]
<kenneth>
i.e., will it always output the same json for the same hash?
<kenneth>
how does it sort keys etc?
<pontiki>
it better
fmcgeough has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
druonysuse has quit [Read error: Connection reset by peer]
happydude has joined #ruby
johchri has joined #ruby
<pontiki>
hash keys are in insertion order
<apeiros>
eliasp_: it's a Hash
<apeiros>
{a => b}
<eliasp_>
apeiros: hmm, but what about the regex matching? that's no regular KV hash to me…
<apeiros>
eliasp_: you confuse objects and methods
<apeiros>
/foo/ is a regexp *object*, it does not do anything on its own.
Ripp__ has quit [Quit: This computer has gone to sleep]
<apeiros>
and regexp objects (like most objects) are fine hash keys.
<eliasp_>
apeiros: well, you're right ;)
johchri has quit [Client Quit]
<eliasp_>
apeiros: I need to make myself think more everything-is-an-object like…
<pontiki>
eliasp_: can you show a real example of what you're talking about there?
v0yager has quit [Remote host closed the connection]
<pontiki>
i can't say i've seen ? as a standalong operator
<apeiros>
kenneth: as of ruby 1.9, it should during the same run, doesn't have to over multiple runs.
<pontiki>
standalone*
<apeiros>
but it also depends on how you construct your hashes.
<asteve>
what do I need to do to preserve the decimal places?
jonathanwallace has quit [Quit: WeeChat 0.4.0]
romockee has quit [Quit: romockee]
angusiguess has quit [Ping timeout: 246 seconds]
<apeiros>
asteve: what?
<apeiros>
the code you show is invalid…
Liothen has quit [Read error: Operation timed out]
<pontiki>
eliasp_: omitted the else part sets $foo to nil then?
<asteve>
sorry, x = 18; replace 18 with x
rsahae has joined #ruby
<eliasp_>
pontiki: I think so
<pontiki>
lemme check
<apeiros>
asteve: it's still not valid. you can't assign to an expression.
Trynemjoel has joined #ruby
yacks has quit [Ping timeout: 256 seconds]
jjbohn has quit [Quit: Leaving...]
thepumpkin has joined #ruby
<pontiki>
nope, SyntaxError, it requires the :
yacks has joined #ruby
Ry0_ has joined #ruby
yashshah has joined #ruby
jonahR has quit [Quit: jonahR]
jonathanwallace has joined #ruby
endzyme has joined #ruby
_seanc_ has quit [Quit: _seanc_]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
Pinas has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
popl has joined #ruby
<eliasp_>
pontiki: well, this code (it's not mine) works and this statement is quite often used in Puppet modules… this might be something Puppet DSL specific then…
daidoji has joined #ruby
<pontiki>
probably
<Pinas>
hello, one question. Is there kind of an environment variable that tells ruby where to look for additional libraries. I currently have the problem, that ruby searches for libs on a file share - thats works finde, but now i tried to mirror this fileshare (i simpley copied the files in share A to a new fileshare) and ruby won't find these libs.
<pontiki>
might be a method called #operatingsystem? in fact
LaPetiteFromage has joined #ruby
zastern has quit [Remote host closed the connection]
angusiguess has joined #ruby
RichardBaker has joined #ruby
Vivekananda has joined #ruby
Nies has quit [Quit: Saliendo]
cr3 has joined #ruby
druonysus has quit [Quit: Konversation terminated!]
c0rn has joined #ruby
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
alvaro_o has joined #ruby
yashshah has quit [Ping timeout: 256 seconds]
tatsuya_o has joined #ruby
jjbohn has joined #ruby
sepp2k has quit [Read error: Operation timed out]
dillwithers has joined #ruby
havenwood has quit [Remote host closed the connection]
adeponte has quit [Read error: Connection reset by peer]
adeponte has joined #ruby
havenwood has joined #ruby
zmike123 has quit [Quit: ~]
<apeiros>
Pinas: not an environment variable. $LOAD_PATH in ruby itself.
headius has joined #ruby
cads has joined #ruby
horofox_ has joined #ruby
rh1n0 has quit [Quit: -- I'm out --]
Vivekananda has quit [Ping timeout: 246 seconds]
zastern has joined #ruby
enherit has quit [Ping timeout: 264 seconds]
syamajala has joined #ruby
jmimi has joined #ruby
axl_ has quit [Quit: axl_]
bondar has quit []
tatsuya_o has quit [Remote host closed the connection]
enherit has joined #ruby
burlyscudd has joined #ruby
theRoUS has quit [Ping timeout: 246 seconds]
happydude has quit [Quit: Leaving]
thebastl has quit [Remote host closed the connection]
sambao21 has joined #ruby
nbouscal has joined #ruby
axl_ has joined #ruby
sepp2k has joined #ruby
robscomp_ has joined #ruby
Ortuna_ has joined #ruby
pootler has quit [Ping timeout: 248 seconds]
daidoji70 has joined #ruby
maxmanders has joined #ruby
zastern has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
spider-mario_ has joined #ruby
prophile_ has joined #ruby
davidcel- has joined #ruby
Guedes0 has joined #ruby
jonathanwallace1 has joined #ruby
ananthakumaran has joined #ruby
robscomputer_ has quit [Read error: Connection reset by peer]
lusory_ has joined #ruby
spider-mario has quit [Disconnected by services]
spider-mario_ is now known as spider-mario
spacebug_ has joined #ruby
enhance_ has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
wildcard1 has joined #ruby
jbpros has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
Pinas has quit [Quit: Page closed]
_seanc_ has joined #ruby
stkowski_ has joined #ruby
billy_ran_away_ has joined #ruby
tvw has quit []
monkegjinni has joined #ruby
TheNumb_ has joined #ruby
workmad3_ has joined #ruby
SecretAg1nt has joined #ruby
felipe has quit [Ping timeout: 260 seconds]
arubin has joined #ruby
tylersmith has quit [Ping timeout: 256 seconds]
JZTech101 has joined #ruby
endzyme_ has joined #ruby
maxmanders has quit [Ping timeout: 246 seconds]
conceal_rs_____0 has joined #ruby
philipe1 has joined #ruby
jlast has quit [Remote host closed the connection]
kindjal has joined #ruby
brjannc has joined #ruby
ananthakumaran has quit [Client Quit]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
8OWAAIGLJ has joined #ruby
ehaliewicz has joined #ruby
Ortuna has quit [Ping timeout: 260 seconds]
mansi has quit [Read error: Connection reset by peer]
Brando753 has joined #ruby
matematikaadit has joined #ruby
headius has quit [*.net *.split]
syamajala has quit [*.net *.split]
daidoji has quit [*.net *.split]
druonysus has quit [*.net *.split]
devoldmx has quit [*.net *.split]
endzyme has quit [*.net *.split]
fmcgeough has quit [*.net *.split]
workmad3 has quit [*.net *.split]
Rubas__ has quit [*.net *.split]
terracatta has quit [*.net *.split]
moos3 has quit [*.net *.split]
sarkis has quit [*.net *.split]
apeiros has quit [*.net *.split]
keyvan has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
LBRapid has quit [*.net *.split]
prophile has quit [*.net *.split]
lusory has quit [*.net *.split]
stkowski has quit [*.net *.split]
didlix has quit [*.net *.split]
Guedes has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
Olipro has quit [*.net *.split]
wildcard0 has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
Drakevr has quit [*.net *.split]
ElderFain has quit [*.net *.split]
nitrodex has quit [*.net *.split]
Guest60400 has quit [*.net *.split]
spacebug1 has quit [*.net *.split]
marsLantern has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
Norrin has quit [*.net *.split]
davidcelis has quit [*.net *.split]
babinho has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
maddog_ has quit [*.net *.split]
conceal_rs______ has quit [*.net *.split]
Scient has quit [*.net *.split]
brjannc| has quit [*.net *.split]
wyrd1 has quit [*.net *.split]
enhance has quit [*.net *.split]
elaptics`away has quit [*.net *.split]
Guest75672 has quit [*.net *.split]
TheNumb has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
zendeavor has quit [*.net *.split]
stkowski_ is now known as stkowski
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
Scient has joined #ruby
mansi has joined #ruby
_ffio_ has quit [Quit: WeeChat 0.4.1]
pskosinski has joined #ruby
fphilipe has joined #ruby
druonysuse has quit [Ping timeout: 248 seconds]
jztech101_ has joined #ruby
didlix_ has joined #ruby
poseid has joined #ruby
bubblehe_ has joined #ruby
tylersmith has joined #ruby
Kelet_ has joined #ruby
Olipro has joined #ruby
jbpros has quit [Ping timeout: 256 seconds]
Meatant has joined #ruby
Hanmac has quit [Read error: Operation timed out]
xargoon has quit [Read error: Operation timed out]
thebastl has joined #ruby
bubblehead has quit [Ping timeout: 276 seconds]
ArchBeOS has left #ruby [#ruby]
vlad_starkov has joined #ruby
JZTech101 has quit [Ping timeout: 276 seconds]
nitrodex has joined #ruby
terracatta has joined #ruby
wang has joined #ruby
Norrin has joined #ruby
zendeavor has joined #ruby
keyvan has joined #ruby
gianlucadv has joined #ruby
DarthGandalf has joined #ruby
apeiros has joined #ruby
ElderFain has joined #ruby
Rubas__ has joined #ruby
elaptics`away has joined #ruby
Drakevr has joined #ruby
wyrd1 has joined #ruby
Spaceghost|cloud has joined #ruby
moos3 has joined #ruby
babinho has joined #ruby
maddog_ has joined #ruby
Guest60400 has joined #ruby
LBRapid has joined #ruby
Y_Ichiro has joined #ruby
Jelco___ has joined #ruby
ElderFain has quit [Remote host closed the connection]
nitrodex has quit [Max SendQ exceeded]
Y_Ichiro has quit [Max SendQ exceeded]
nitrodex has joined #ruby
vdandre has joined #ruby
fenicks has quit [Excess Flood]
ElderFain has joined #ruby
wang is now known as Guest5415
nitrodex is now known as Guest94606
<Kelet_>
Hi, sorry if this is kind of off topic, but does anyone have a suggestion for a good editor for Ruby? I'm probably going to knock out most options, but here goes: No large learning curve (no emacs/vim), open source and free as in beer, doesn't require files to be in a project, is able to use ruby interpreter to find syntax errors, has support for erb syntax, and preferably has some way of accessing ruby docs.
Y_Ichiro has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
<Kelet_>
Komodo Edit comes extremely close to the point where I may use it, but it has a few issues that make it inconvenient for me.
Kelet_ is now known as Kelet
jalcine has quit [Excess Flood]
Kar-_ has joined #ruby
arubin has quit [Ping timeout: 240 seconds]
prophile_ is now known as prophile
prophile has quit [Changing host]
prophile has joined #ruby
fenicks has joined #ruby
<Kelet>
Redcar also seems interesting but I'm having trouble getting it to work with Ruby 2.0 on Windows 7.
tatsuya_o has joined #ruby
clocKwize has joined #ruby
krainboltgreene has joined #ruby
<londerson>
Hello guys, i need an advice for a projects made with Rack. Can anyone point me to one?
jztech101_ has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
vlad_starkov has quit [Ping timeout: 240 seconds]
<havenwood>
Kelet: Switch to OS X, use TM2. :P
<havenwood>
londerson: Oh, a pure Rack app?
<waxjar>
Sublime Text with a linter plugin?
<havenwood>
violates the free as in beer
<londerson>
@havenwood: Yep, Rails and Sinatra i know!
freerobby has quit [Quit: Leaving.]
<apeiros>
sublime text
<apeiros>
@Kelet_
<Kelet>
I mean, I'm open to suggestions that aren't totally in line with what I said, but yeah - I tried Sublime and honestly Komodo Edit seemed better and free in 'all ways'
elaptics`away is now known as elaptics
<apeiros>
checking syntax with ruby is not part of it, but you can add it. (either through ruby -c, or some other tool)
graft has quit [Ping timeout: 248 seconds]
xargoon has joined #ruby
johnmilton has joined #ruby
ElderFain has quit [Ping timeout: 260 seconds]
mikeg has joined #ruby
headius has joined #ruby
FF7terra has joined #ruby
Guest26975 has joined #ruby
milardovich has joined #ruby
Guest26975 has quit [Client Quit]
gyre007 has joined #ruby
milardovich has quit [Max SendQ exceeded]
<Kelet>
Anyways, while I'm here, I had another question that may be kind of newbie and/or slightly off topic. I'm working on a Sinatra app, and in addition to serving the webpages I want it to scrape some data and update my database every couple of minutes. It seems like just sticking it in a thread 'works' but is this bad? I'm just using the 'default' Ruby not JRuby or anything.
Astralum has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
flaritycat has quit [Remote host closed the connection]
flaritycat has joined #ruby
jefflyne has joined #ruby
elaptics` has joined #ruby
jbpros has joined #ruby
milardovich has quit [Max SendQ exceeded]
_adeponte has joined #ruby
milardovich has joined #ruby
brbcoding has quit []
thebastl has quit [Remote host closed the connection]
wildcard1 is now known as wildcard0
S0da has joined #ruby
zastern has joined #ruby
babinho_ has joined #ruby
thebastl has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
jjbohn has quit [Quit: Leaving...]
freerobby has joined #ruby
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
thebastl has quit [Remote host closed the connection]
<pontiki>
that sounds like it could be a completely separate thing
<pontiki>
Kelet: just make it a rake task and schedule it with cron
<pontiki>
there's really no part of that the sinatra app needs to know about
<Kelet>
Hmm yeah I was thinking something like that may be a better approach
nomenkun_ has joined #ruby
<pontiki>
(unless you want to add a route that will set the task off, or something like that)
<pontiki>
just make sure if you do that you've set it in the background so you don't obstruct your sinatra app
Y_Ichiro has quit [*.net *.split]
Guest94606 has quit [*.net *.split]
Guest5415 has quit [*.net *.split]
wyrd1 has quit [*.net *.split]
Rubas__ has quit [*.net *.split]
moos3 has quit [*.net *.split]
terracatta has quit [*.net *.split]
apeiros has quit [*.net *.split]
keyvan has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
LBRapid has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Guest60400 has quit [*.net *.split]
Norrin has quit [*.net *.split]
babinho has quit [*.net *.split]
maddog_ has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
elaptics has quit [*.net *.split]
zendeavor has quit [*.net *.split]
elaptics` is now known as elaptics
<Morrolan>
If, for one reason or another, you want it to be part of your Sinatra application, then there's gems to execute code in certain intervals. rufus-scheduler is said to be quite nice.
<pontiki>
but really, rake task run with cron sounds safest
goodgame has quit [Ping timeout: 264 seconds]
mupkoo has quit [Remote host closed the connection]
zigomir has joined #ruby
Y_Ichiro has joined #ruby
ElderFain has joined #ruby
Guest60400 has joined #ruby
Guest5415 has joined #ruby
LBRapid has joined #ruby
maddog_ has joined #ruby
DarthGandalf has joined #ruby
Drakevr has joined #ruby
Spaceghost|cloud has joined #ruby
apeiros has joined #ruby
wyrd1 has joined #ruby
Nitrodex- has joined #ruby
zendeavor has joined #ruby
Rubas__ has joined #ruby
moos3 has joined #ruby
keyvan has joined #ruby
gianlucadv has joined #ruby
Jelco___ has joined #ruby
Norrin has joined #ruby
bubblehead has joined #ruby
Y_Ichiro has quit [Max SendQ exceeded]
S0da has quit [Ping timeout: 264 seconds]
anonymus_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
8OWAAIGLJ has quit [Quit: This computer has gone to sleep]
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
<pontiki>
Kelet: would there be any time you sinatra app would be updating the same tables the scraper might?
anonymuse has quit [Ping timeout: 264 seconds]
<pontiki>
or will the sinatra app just be reading?
<Kelet>
No the sinatra app is only reading the database.
<pontiki>
then i think it's best to just separate them
monkegjinni has quit [Remote host closed the connection]
Guest6063 has joined #ruby
clocKwize has quit [Quit: clocKwize]
<pontiki>
it doesn't specifically need to be a rake task; it could just be another script
headius has quit [Quit: headius]
jkline has joined #ruby
bubblehe_ has quit [Ping timeout: 276 seconds]
prsimp has joined #ruby
S0da has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit:]
darth_chatri has quit [Quit: Leaving.]
S0da has quit [Remote host closed the connection]
s0ber has joined #ruby
ffranz has joined #ruby
F1skr has joined #ruby
ElderFain has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
Nitrodex- has quit [*.net *.split]
Guest5415 has quit [*.net *.split]
Rubas__ has quit [*.net *.split]
moos3 has quit [*.net *.split]
apeiros has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
keyvan has quit [*.net *.split]
LBRapid has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
gianlucadv has quit [*.net *.split]
Guest60400 has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Norrin has quit [*.net *.split]
Jelco___ has quit [*.net *.split]
maddog_ has quit [*.net *.split]
zendeavor has quit [*.net *.split]
Liothen has joined #ruby
monkegjinni has joined #ruby
jbpros has quit [Quit: jbpros]
devoldmx has joined #ruby
awc737 has quit [Ping timeout: 246 seconds]
Nitrodex- has joined #ruby
Y_Ichiro has joined #ruby
Rubas__ has joined #ruby
keyvan has joined #ruby
DarthGandalf has joined #ruby
Jelco___ has joined #ruby
Spaceghost|cloud has joined #ruby
LBRapid has joined #ruby
Norrin has joined #ruby
moos3 has joined #ruby
gianlucadv has joined #ruby
Guest5415 has joined #ruby
zendeavor has joined #ruby
maddog_ has joined #ruby
Guest60400 has joined #ruby
ElderFain has joined #ruby
Drakevr has joined #ruby
zastern has joined #ruby
Y_Ichiro has quit [Max SendQ exceeded]
soulcake has joined #ruby
Y_Ichiro has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
tommyvyo has joined #ruby
aramus_ has joined #ruby
<aramus_>
Hello, is there a way to convert output from a bash command to a string?
mansi has joined #ruby
<aramus_>
For example, in the case hostname = `'hostname`, hostname.class says it is not a string.
maxmanders has joined #ruby
<cr3>
hi folks, I'm trying to create a local gem repository so I did gem fetch into a gems/ directory, then ran gem generate_index to create the specs.4.8.gz file, then ran gem source -a file:///path/to/gems, and finally tried to gem install but it complains when looking under gems/gems :(
<Kelet>
aramus_, It does for me
cofin has quit [Quit: cofin]
<aramus_>
Kelet: it says command not found for me.
<Kelet>
What happens when you type hostname in bash?
<aramus_>
It works
jlast has joined #ruby
<Kelet>
type in 'where hostname' and ensure it's in your PATH variable?
<aramus_>
I can do a system( "echo #{hostname} " fine but hostname.class does not exist
cburyta has joined #ruby
zastern has quit [Remote host closed the connection]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
LaPetiteFromage has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
BlakeRG has joined #ruby
gasbakid has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Spami__ has joined #ruby
statarb3 has quit [Quit: Leaving]
maxmanders has quit [Ping timeout: 240 seconds]
<aramus_>
The output of hostname = `hostname` system( "echo #{hostname}: #{hostname.class} is example.com: command not found
brennanMKE has quit [Remote host closed the connection]
dodosan has quit [Remote host closed the connection]
mroth has joined #ruby
yekta has quit [Quit: yekta]
lushious has joined #ruby
enherit has quit [Ping timeout: 240 seconds]
zastern has joined #ruby
ToApolytoXaos has quit [Quit: Leaving]
zastern has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
rsahae has quit [Quit: rsahae]
kindjal has quit [Quit: Computer has gone to sleep.]
<BlakeRG>
what's generally the "best" Facebook graph API gem?
philipe1 has quit [Read error: Operation timed out]
danslo has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
blackmes1 has quit [Quit: WeeChat 0.4.1]
kindjal has joined #ruby
hadees has quit [Quit: hadees]
sambao21 has joined #ruby
<Kelet>
aramus_, I don't get it
<Kelet>
aramus_, Why not just do hostname = `hostname` and then do puts hostname.class
ffranz has quit [Quit: Leaving]
<Kelet>
I think your system command is messed up
awc737 has joined #ruby
cofin has joined #ruby
codecop has quit [Read error: Operation timed out]
F1skr has quit [Quit: WeeChat 0.4.1]
codecop has joined #ruby
kkh has joined #ruby
zastern has joined #ruby
afd___ has quit [Read error: Operation timed out]
gasbakid has quit [Read error: Connection reset by peer]
afd__ has joined #ruby
rsahae has joined #ruby
krawchyk has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
<cr3>
if anyone is interested, the problem I mentionned earlier is that I need a trailing slash when running gem source -a file:///parent/path/to/gems/
<cr3>
the only problem now is that gem install doesn't actually respect the source I've given it
ffranz has joined #ruby
pootler has joined #ruby
burlyscudd has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
workmad3_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
Kar-_ has quit [Remote host closed the connection]
milardovich has quit [Read error: Connection reset by peer]
spider-mario has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 276 seconds]
poseid has quit [Quit: poseid]
Pip has joined #ruby
dash_ has joined #ruby
postmodern has joined #ruby
trepidaciousMBR has joined #ruby
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
druonysuse has joined #ruby
druonysuse has quit [Changing host]
druonysuse has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
druonysuse has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
hadees has joined #ruby
poga has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
rupee has quit [Quit: Leaving]
jrendell has joined #ruby
jrendell has quit [Client Quit]
jrendell has joined #ruby
_seanc_ has quit [Quit: _seanc_]
danslo has quit [Quit: danslo]
angusiguess has joined #ruby
ldnunes has quit [Quit: Leaving]
leonid__ has joined #ruby
c0rn has joined #ruby
mansi has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
pyx has quit [Quit: WeeChat 0.4.1]
Kruppe has quit [Read error: Operation timed out]
zastern has quit [Remote host closed the connection]
jjbohn has joined #ruby
zeade has quit [Quit: Leaving.]
jayne_ is now known as jayne
zastern has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
psyomn has quit [Quit: Lost terminal]
sayan has quit [Quit: Leaving]
tatsuya_o has quit [Ping timeout: 264 seconds]
obs has joined #ruby
jjbohn has quit [Ping timeout: 240 seconds]
aramus_ has left #ruby [#ruby]
johnmilton has quit [Remote host closed the connection]
jonahR has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
cburyta has quit [Remote host closed the connection]
kasper has joined #ruby
dash_ has quit [Quit: Time to beer :)]
FF7terra has quit [Read error: Operation timed out]
breakingthings has quit [Quit: breakingthings]
germanstudent has quit [Quit: Server does not respond.]
tatsuya_o has joined #ruby
drejohnson_ has joined #ruby
vdandre has quit [Quit: leaving]
drejohnson has quit [Ping timeout: 264 seconds]
thepumpkin has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
_seanc_ has joined #ruby
mduvall has quit [Ping timeout: 248 seconds]
Astralum has joined #ruby
redgirl has quit [Quit: This computer has gone to sleep]
Pip has quit [Ping timeout: 264 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
codecop has quit [Remote host closed the connection]
Max_ has joined #ruby
tommyvyo has quit [Ping timeout: 240 seconds]
Spami__ has left #ruby ["Leaving"]
jerius has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
horofox_ has quit [Read error: Connection reset by peer]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
horofox_ has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
jmimi1 has joined #ruby
zeade has joined #ruby
jmimi1 has left #ruby [#ruby]
brennanMKE has joined #ruby
jmimi1 has joined #ruby
brennanMKE has quit [Remote host closed the connection]
dvarrui has joined #ruby
brennanMKE has joined #ruby
jmimi1 has left #ruby [#ruby]
jjbohn has joined #ruby
jmimi has quit [Ping timeout: 240 seconds]
Pip has joined #ruby
workmad3 has joined #ruby
leonid__ has quit [Ping timeout: 248 seconds]
cantonic has joined #ruby
wmoxam has quit [Ping timeout: 240 seconds]
BillCriswell has quit [Remote host closed the connection]
reset has joined #ruby
thepumpkin has joined #ruby
burlyscudd has quit [Quit: Leaving.]
pootler has quit [Ping timeout: 246 seconds]
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmimi has joined #ruby
dvarrui has quit [Remote host closed the connection]
germanstudent has joined #ruby
Pip has left #ruby ["Leaving"]
pootler has joined #ruby
enherit has joined #ruby
freerobby has quit [Quit: Leaving.]
Davey has joined #ruby
v1n has joined #ruby
cantonic has quit [Quit: cantonic]
dodosan has joined #ruby
flaritycat has quit [Remote host closed the connection]
anonymus_ has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
anonymuse has joined #ruby
jcoglan has joined #ruby
<zeade>
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. —Jamie Zawinski, 1997
TheNotary has quit [Ping timeout: 268 seconds]
dodosan has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jjbohn has joined #ruby
bionoid has quit [Remote host closed the connection]
ColKurtz has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
robert_ has quit [Quit: Connection reset by traffic clause.]
asobrasil has joined #ruby
anonymuse has quit [Ping timeout: 248 seconds]
matled- has joined #ruby
musl_ has quit [Quit: WeeChat 0.4.1]
dodosan has joined #ruby
franks2_ is now known as franks2
franks2 has quit [Changing host]
franks2 has joined #ruby
matled has quit [Ping timeout: 246 seconds]
matled- is now known as matled
hotrine has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
ephemerian has left #ruby [#ruby]
<popl>
zeade: I wonder where I've seen that before…
vlad_starkov has quit [Ping timeout: 256 seconds]
Patteh has quit [Ping timeout: 264 seconds]
Patteh has joined #ruby
Bry8Star{T2 has joined #ruby
cih has joined #ruby
cburyta has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
tacos1de has joined #ruby
rgreen_ has joined #ruby
cantonic has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
<rgreen_>
hey guys i have a question: if i have an array of strings called
Vivekananda has joined #ruby
<rgreen_>
"strings"
<rgreen_>
and then in each string i need to replace a certain substring with another, depending on the content of the substring
geggam has quit [Remote host closed the connection]
[[thufir]] has joined #ruby
hadees has quit [Quit: hadees]
<rgreen_>
i am doing something like strings.each.gsub(/substring that i want to replace, id=1234'/, matching replacement to id=1234 in another array)
[[thufir]] has quit [Client Quit]
<alainus>
how do I set a timer at the beginning of a script and then output the time it took to complete?
<rgreen_>
i think you use benchmark
<Kelet>
alainus, Set a variable to Time.now before and after the operation
<Kelet>
then subtract them
TheNotary has joined #ruby
<alainus>
Kelet, great, thanks
<rgreen_>
Kelet did you catch my quesstion?
<Kelet>
alainus, Time.now.to_f will give you greater accuracy
<rgreen_>
if i have an array of strings called "strings" and then in each string i need to replace a certain substring with another, depending on the content of the substring i am doing something like strings.each.gsub(/substring that i want to replace, id=1234'/, matching replacement to id=1234 in another array)
<alainus>
Kelet, the substraction will always be in seconds right?
<rgreen_>
what does the ! add?
<heftig>
do it in-place
<heftig>
oh, and I forgot a }
<Kelet>
alainus, Without to_f, it will be in seconds. With to_f, it will not be truncated to seconds and thus will be more accurate (depends on your system, but at least milliseconds)
bradhe has quit [Remote host closed the connection]
<rgreen_>
ok and also what does Integer($1) come from? how does that get the value of id?
<heftig>
$1 is the first group in the regexp, (\d+)
redgirl has quit [Quit: This computer has gone to sleep]
bradhe has joined #ruby
mikeg has quit [Remote host closed the connection]
<heftig>
Integer converts the string to an integer
<Kelet>
alainus, Alternatively look into absolute_time or benchmark gems
<heftig>
(and causes an exception if it's not a valid representation of an integer)
<terrellt>
Benchmark's standard.
axl_ has joined #ruby
predator217 has joined #ruby
marcdel has joined #ruby
<rgreen_>
hmm ok thanks a lot! im gonna go try it out
<r0bgleeson>
and Integer() raises if the argument can't be coerced into an integer
BSaboia has joined #ruby
<r0bgleeson>
i.e: nil.to_i / Integer(nil)
<alainus>
>> a = Time.now.to_f; sleep(3); b = Time.now.to_f; p b-a
<rgreen_>
i have been trying to do strings.map! { |s| s.sub(/id=(\d+)/) { replacement_url.id.index[Integer($1)]}} but it keeps throwing an exception undefined method `[]' for #<Enumerator:0x0000000146fa68> (NoMethodError)
gstamp has joined #ruby
<alainus>
is there a way to make: case a; when "1"; when "2"; always ; else ; end
alvaro_o has quit [Quit: Ex-Chat]
<alainus>
(an "always" statement in the case select)
danbeck has quit [Quit: danbeck]
syamajala has joined #ruby
<onewheelskyward>
else
end_guy has quit [Remote host closed the connection]
<alainus>
but that won't evaluate if one of the selected options is true
<onewheelskyward>
If you want it to always run, put it after your case block.
jrendell has quit [Quit: jrendell]
<onewheelskyward>
Or before.
<onewheelskyward>
Or really anywhere else. :)
alexspeller has quit [Ping timeout: 240 seconds]
<rgreen_>
i have been trying to do strings.map! { |s| s.sub(/id=(\d+)/) { replacement_url.id.index[Integer($1)]}} but it keeps throwing an exception undefined method `[]' for #<Enumerator:0x0000000146fa68> (NoMethodError)
cjsarette has quit [Ping timeout: 264 seconds]
<rgreen_>
oh nvm sorry
canton7 has quit [Ping timeout: 240 seconds]
nopper has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Inside has joined #ruby
Inside has quit [Changing host]
Inside has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
alexspeller has joined #ruby
end_guy has joined #ruby
dayepa1 has quit [Quit: dayepa1]
nopper has joined #ruby
dayepa has joined #ruby
tylersmith has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]