delianides has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
kyrylo_ has joined #ruby
kyrylo has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ellis has joined #ruby
<Ellis>
i’ve been learning about ruby and programming for about 4 months, and i was wondering why don’t people build android apps with ruby? is it because android doesn’t have an interpreter on the phone?
kyrylo_ is now known as kyrylo
Filete has joined #ruby
<jhass>
pretty much, there is the ruboto project which provides a ruby runtime for android
tkuchiki has joined #ruby
FrenchieUser12 has joined #ruby
FrenchieUser12 has left #ruby [#ruby]
<jhass>
and I heard rubymotion added android support too, though I never fact checked that
baweaver has quit [Remote host closed the connection]
<Ellis>
jhass: thank you. ill check those two things out
sevvie has quit [Ping timeout: 244 seconds]
rajeshchawla has joined #ruby
Hobogrammer has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
Ellis has quit [Quit: Ellis]
pdoherty has quit [Quit: Leaving]
Lewix has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerematic has quit [Remote host closed the connection]
iliketur_ has quit [Ping timeout: 248 seconds]
xenokiller has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
michelperez has joined #ruby
robustus has joined #ruby
michelperez has quit [Client Quit]
n_blownapart has quit []
michelperez has joined #ruby
jerematic has joined #ruby
ducklobster has quit [Ping timeout: 244 seconds]
Cache_Money has quit [Quit: Cache_Money]
baweaver has joined #ruby
symbol__ has joined #ruby
michelperez has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 250 seconds]
Megtastique has joined #ruby
baweaver has quit [Remote host closed the connection]
sevenseacat has joined #ruby
delianides has joined #ruby
oo_ has joined #ruby
pietr0 has quit [Quit: pietr0]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexRussia has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
startupality has joined #ruby
paulcsmith_ has joined #ruby
swgillespie has joined #ruby
krisquigley has joined #ruby
rajeshchawla has quit [Remote host closed the connection]
yh has quit [Ping timeout: 252 seconds]
xenokiller has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrisja has quit [Quit: leaving]
paulcsmith_ has quit [Ping timeout: 265 seconds]
meschiv2 has joined #ruby
freerobby has quit [Quit: Leaving.]
duncannz has joined #ruby
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
JoshGlzBrk has joined #ruby
sevvie has joined #ruby
JoshGlzBrk has quit [Client Quit]
kyrylo_ has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
noname1 has quit [Ping timeout: 264 seconds]
arescorpio has quit [Read error: Connection reset by peer]
meschi has quit [Ping timeout: 265 seconds]
kyrylo has quit [Ping timeout: 264 seconds]
bigkevmc_ has joined #ruby
Soda has joined #ruby
davedev2_ has joined #ruby
avril14th has joined #ruby
bigkevmcd has quit [Ping timeout: 250 seconds]
Sembei has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
iasoon has quit [Ping timeout: 252 seconds]
razieliyo has quit [Remote host closed the connection]
startupality has joined #ruby
ralku is now known as ralku[away]
gr33n7007h has quit [Quit: WeeChat 1.1.1]
arrubin has joined #ruby
ralku[away] is now known as ralku
patrick99e99 has quit [Quit: leaving]
MatthewsFace has joined #ruby
wildroman2 has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
robertt_dex has joined #ruby
hpoydar has quit [Remote host closed the connection]
dorei has quit []
gr33n7007h has joined #ruby
nahtnam has joined #ruby
claptor has joined #ruby
prasselpikachu has quit [Ping timeout: 265 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
prasselpikachu has joined #ruby
djbkd has joined #ruby
paulcsmith_ has joined #ruby
nii2361 has joined #ruby
kblake has joined #ruby
icebourg has joined #ruby
Rollabunna has quit [Remote host closed the connection]
icebourg has quit [Client Quit]
rayleigh has joined #ruby
Rollabunna has joined #ruby
jeramy_s has joined #ruby
oo_ has quit [Remote host closed the connection]
MrSamuel has quit [Ping timeout: 256 seconds]
kyrylo__ has joined #ruby
iteratorP has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
kyrylo_ has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
kblake has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
sgambino has joined #ruby
MrSamuel has joined #ruby
ralku is now known as ralku[away]
jenrzzz has joined #ruby
AlexRussia has joined #ruby
amclain has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
rayleigh has quit []
reinaldob has joined #ruby
freerobby has joined #ruby
ralku[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ponga has joined #ruby
iceden has quit [Ping timeout: 250 seconds]
basex has joined #ruby
arescorpio has joined #ruby
nicolastarzia has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jmhmccr has joined #ruby
<certainty>
moin #ruby
<havenwood>
certainty: g'morn
zarubin has quit [Ping timeout: 252 seconds]
Volsus has quit [Ping timeout: 265 seconds]
elaptics is now known as elaptics_away
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rkazak_>
moring, evening….
zacts has quit [Remote host closed the connection]
lele is now known as Guest24
<certainty>
o/ early birds
tobago has joined #ruby
<sevenseacat>
guten tag
RegulationD has joined #ruby
* certainty
didn't know the cat speaks german
<jokester>
guten morgen
Pharaoh2 has joined #ruby
* jokester
neither know
jerematic has joined #ruby
<certainty>
oh nice you can store credentials for gem sources in the bundler config.
bigmac has quit [Ping timeout: 252 seconds]
<sevenseacat>
um, very very limited german >_>
bigmac has joined #ruby
<certainty>
good enough for a decent greeting
paulcsmith_ has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
<sevenseacat>
ich spreche Deutsch.... nicht gut
Pupeno has joined #ruby
* sevenseacat
makes things up
last_staff has joined #ruby
<certainty>
almost correct
<jokester>
lol
<certainty>
that's what i do in english all the time (making things up). I've come a long way with that xD
jerematic has quit [Ping timeout: 252 seconds]
<sevenseacat>
wouldnt have known you werent a native speaker
<certainty>
me neither
dkarter has quit []
<certainty>
now that i have read a bit of confident ruby i'm slightly disappointed. Not that the content isn't relevant but it's not much new. Having heared what others said about it my expectations were quite a bit higher
paulcsmith_ has quit [Ping timeout: 252 seconds]
<certainty>
maybe it will change in the next chapters
jeromelanteri has joined #ruby
<sevenseacat>
its not revolutionary content - all of the best books aren't completely new - but they package solid concepts in an easy-to-understand format
krisquigley has joined #ruby
dustpan has quit [Ping timeout: 244 seconds]
<sevenseacat>
same with sandi metz's book
arup_r_ has joined #ruby
<sevenseacat>
(IMO)
BTRE has quit [Read error: Connection reset by peer]
<certainty>
yeah seems like it, though i haven't read any books of her. I love her talks though and if the book(s) is/are like these i can imagine what they are like
aganov has joined #ruby
jottr_ has joined #ruby
BTRE has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
bal has joined #ruby
beneggett has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
tcrypt has joined #ruby
sevvie has quit [Ping timeout: 265 seconds]
Guest90919 has quit [Max SendQ exceeded]
codecop has quit [Remote host closed the connection]
rkazak_ has left #ruby [#ruby]
codecop has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
Dude007 has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
timonv has joined #ruby
sevvie has joined #ruby
amclain has quit [Quit: Leaving]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmc_ is now known as bigkevmcd
nahtnam has quit [Quit: Connection closed for inactivity]
bartj3 has quit [Quit: bye!]
duncannz has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
arup_r_: with great power comes great responsibility
MatthewsFace has joined #ruby
AlexRussia has quit [Ping timeout: 256 seconds]
jefus_ has quit [Ping timeout: 265 seconds]
<arup_r_>
certainty: yes indeed
bruno- has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
DavidDudson has joined #ruby
lolmaus has quit [Ping timeout: 246 seconds]
<steven43126>
Im trying to use ffi_lib to use a native extenstion bundled with a gem. Obviously the path to the extensions is different depending on rubygems version, OS, etc. Is there a way to deterine where a gems native extensions are placed ?
<jhass>
steven43126: did through the methods and classes under Gem, might have something
<jhass>
*dig
<steven43126>
jhass: looking thanks, the directory is present in the load_path added by bundler, so a require finds the native extensions but fails to load it as expected as it's meant to be used with ffi. ffi_lib it seems does not use the LOAD_PATH dirs during it's search
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
DavidDudson has quit [Client Quit]
<jhass>
yeah, I'd expect what `gem which` uses is available as API under Gem somewhere
lkba has quit [Ping timeout: 272 seconds]
musashi1 has joined #ruby
DavidDudson has joined #ruby
vtunka has quit [Quit: Leaving]
babykosh has quit [Quit: babykosh]
jimms has quit [Remote host closed the connection]
lolmaus has joined #ruby
RegulationD has joined #ruby
ralku has quit [Ping timeout: 250 seconds]
Guest744 has quit [Excess Flood]
sevenseacat has joined #ruby
jerematic has joined #ruby
<flughafen>
certainty: it snowed here
<certainty>
yeah here too
Olipro has joined #ruby
<certainty>
but now the sun is shining again
Olipro is now known as Guest82299
<adaedra>
Do you let the sunshine in?
<certainty>
sure
<flughafen>
ich lebe in dunkelheit!
DerisiveLogic has quit [Ping timeout: 244 seconds]
<adaedra>
ach so
RegulationD has quit [Ping timeout: 255 seconds]
<flughafen>
it was stupid, our blinds are on the outside and there is a wind sensor on the roof, so when it's too windy it makes all the blinds go up and locks the controls, so if it's windy and sunny there is nothing you can do
lolmaus has quit [Ping timeout: 252 seconds]
lolmaus has joined #ruby
<adaedra>
I hope you
jerematic has quit [Ping timeout: 264 seconds]
<adaedra>
're not in a windy region, then
<adaedra>
Return key, stahp
sandelius has joined #ruby
basex has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
sevvie has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
yqt has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 264 seconds]
govg has joined #ruby
riotjones has joined #ruby
<DeathCode>
guys
<DeathCode>
so i got my ruby and rails both to run on my command prompt
Pupeno has joined #ruby
<adaedra>
congrats
<DeathCode>
but the thing is ruby is set to v 1.9.3
<DeathCode>
rails is at v 4.2.1
<sevenseacat>
k?
<DeathCode>
how to update ruby to v 2.1.1
<sevenseacat>
you install that version of ruby.
<DeathCode>
ye installed
<DeathCode>
but cmd doesnt detect that
<sevenseacat>
no, you installed 1.9.3
<DeathCode>
when i do "ruby -v"
<DeathCode>
no i installed 2.2.1
<adaedra>
DeathCode: operating system?
<DeathCode>
windowns
<DeathCode>
windows*
<adaedra>
you installed 1.9.3 previously ?
<DeathCode>
ye
<DeathCode>
but then i installed 2.1.1
sevvie has quit [Ping timeout: 264 seconds]
<DeathCode>
and then installed ruby with "gem install...."
<DeathCode>
rails*
<adaedra>
so you have 1.9.3 and 2.2.1 installed at the same time?
<DeathCode>
but i also installed railsinstaller
<DeathCode>
ye kinda :P
<sevenseacat>
cripes
<DeathCode>
like i installed 2.2.1 on the system
jheg has joined #ruby
<sevenseacat>
glhf
<colorados>
sart installing from ubuntu
<colorados>
start installing from ubuntu
<DeathCode>
but the cmd doesnt detect the 2.2.1
<sevenseacat>
colorados: quiet.
<adaedra>
DeathCode: because it takes the first one.
<sevenseacat>
DeathCode: uninstall ruby 1.9.3.
alex88 has quit []
<adaedra>
Try having a clean, single installation of ruby.
<DeathCode>
how to uninstall
<adaedra>
Or use things like rvm, althrough I don’t know if it works with Windows.
<sevenseacat>
it doesnt
<DeathCode>
ye rvm i was thinking
<DeathCode>
oh no? ok
<adaedra>
If you went through installer, Control panel is the place to look.
<sevenseacat>
afaik
<workmad3>
you might be able to get RVM or similar working with something like cygwin that provides a shell that's more like bash
<workmad3>
but it would take a lot of effort and windows know-how, and I'm not certain you'd be able to do it (or how stable it would be if you did)
riotjones has quit [Ping timeout: 250 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
<DeathCode>
idk how to uninstall ruby 1.9.3 cause i think i did that manually
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
basex has quit [Remote host closed the connection]
rayleigh415 has quit [Remote host closed the connection]
epistrephein has quit []
<DeathCode>
now what happened was, i put the location of ruby from system path (advanced system settings) to the bin folder of ruby 2.2.1 and it works
<DeathCode>
but when i do that, the rails program stops working :(
<DeathCode>
so when i go rails -v then, it doesnt work
<sevenseacat>
DeathCode: uninstall ruby 1.9.3.
<DeathCode>
yes im trying, i dont know how
<sevenseacat>
how did you install it?
<DeathCode>
it doesnt show on control panel
<colorados>
why do you feed win users?
AlexRussia has joined #ruby
iteratorP has quit [Remote host closed the connection]
<DeathCode>
sevenseacat:i used the ruby installer
<sevenseacat>
colorados: because we're good people.
<colorados>
they should think about fundamental problems in operation systems
<sevenseacat>
DeathCode: ruby installer comes with an uninstaller
senayar has quit [Remote host closed the connection]
<jokester>
an interpreter is far from fundamental
Stalkr has joined #ruby
govg has quit [Ping timeout: 252 seconds]
<DeathCode>
yeah sevenseacat i checked there is no uninstaller
<sevenseacat>
...
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<sevenseacat>
open the folder you installed it to. run uninstaller.
jimms has joined #ruby
govg has joined #ruby
<avril14th>
I'm trying to find the index of the last element of an array that is not equal to 0. Is there better (faster) than array.length - array.reverse.index{ |i| i != 0 } - 1 ?
<DeathCode>
yeah there is none for ruby 1.9.3
<sevenseacat>
wat
<jhass>
avril14th: #rindex
<DeathCode>
ok i'm tring
<DeathCode>
trying*
<avril14th>
jhass you're the man
_1_chokeseskukus has joined #ruby
<DeathCode>
gonna try reinstalling 2.2.1
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_1_chokeseskukus>
hey;)
<jhass>
_1_chokeseskukus: how's your ruby?
<sevenseacat>
DeathCode: no seriously. uninstall 1.9.3.
<DeathCode>
sevenseacat:i'm looking for it
<DeathCode>
its not there
<DeathCode>
!
<_1_chokeseskukus>
cool
<sevenseacat>
DeathCode: open the folder you installed the rails installer to, and then uninstall it.
<jhass>
_1_chokeseskukus: watcha coding?
<avril14th>
jhass: thx buddy
<DeathCode>
sevenseacat:yes i found it
<_1_chokeseskukus>
new so give me a break
<jhass>
avril14th: yw, didn't know index takes a block :D
<DeathCode>
its in this railsinstaller sevenseacat
<sevenseacat>
hooray
<DeathCode>
ok but there is no uninstaller for the ruby part
<sevenseacat>
you are now level 2 at basic computer usage.
<sevenseacat>
say what?
hpoydar has joined #ruby
<DeathCode>
should i uninstall railsinstaller too?
<DeathCode>
ye inside the folder
Stalkr^ has joined #ruby
<sevenseacat>
.....thats what i just told you to do
<DeathCode>
oh ok i thought u told me to uninstall only the ruby part
<DeathCode>
but there is no
<sevenseacat>
please don't think too hard, just follow the instructions.
<DeathCode>
goddamn you're so condescending geez
<DeathCode>
giving me trouble with the help
<sevenseacat>
its hard not to be when you dont seem to understand basic instructions
<sevenseacat>
or know how to use your own computer
senayar has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby
<DeathCode>
no i kno
<sevenseacat>
apparently not.
<DeathCode>
this ruby shit has been fucking with me
<DeathCode>
k
Zai00 has quit [Quit: Zai00]
<sevenseacat>
two days ago i gave you a link to ruby installer. you still dont have a working environment.
ahmetkapikiran has joined #ruby
<DeathCode>
ye im trying
<DeathCode>
shits wack
<DeathCode>
they need to upgrade this
<sevenseacat>
call me crazy, but it really is as simple as downloading and running the file.
<DeathCode>
anyway
<DeathCode>
not really
<sevenseacat>
yes really.
<DeathCode>
anyway
tlarevo_ has quit []
wicope has quit [Remote host closed the connection]
<DeathCode>
this computer is not set up by me
<DeathCode>
i think the school that gave me this computer put some shit on here
<adaedra>
I already used ruby under Windows, it’s really simple indeed
<sevenseacat>
i set up dozens of windows computers to run rails apps, it really is.
<DeathCode>
congrats adaedra
<DeathCode>
k maybe im stupid then
<DeathCode>
anyway
<DeathCode>
so i uninstalled it all
<sevenseacat>
awesome.
<DeathCode>
and i went to cmd
leafybasil has joined #ruby
<DeathCode>
wrote ruby -v and got ruby 2.2.1. but now rails -v is gone. which makes sense but which rails do i install now?
leafybasil has quit [Remote host closed the connection]
Stalkr has quit [Ping timeout: 252 seconds]
<sevenseacat>
`gem install rails`
<DeathCode>
ye was gonna ask that
<sevenseacat>
it will get the latest by default.
<DeathCode>
thanks sevenseacat
leafybasil has joined #ruby
hpoydar has quit [Ping timeout: 250 seconds]
<sevenseacat>
for the record, the latest version is 4.2.1.
govg has quit [Ping timeout: 246 seconds]
<DeathCode>
ok so i did the install and it said the latest version is 4.2.1 blah blah. then it says successful
<DeathCode>
but then i went ahead and did rails -v
<DeathCode>
and it says its not there :P
<arup_r_>
Am I in Rails channel ?
govg has joined #ruby
<jhass>
no? oO
<sevenseacat>
arup_r_: nope.
<DeathCode>
no arup_r_ im just really stupid apparently so i have to ask about rails here
<adaedra>
tssk tssk
<DeathCode>
ye happens when you're dropped as a kid :(
<arup_r_>
DeathCode: IDC
jimms has quit [Remote host closed the connection]
<adaedra>
saying these kind of things won’t help yourself, you know
<sevenseacat>
"it says" isn't useful and not something we can help with. gist the error message.
<DeathCode>
arup_r_:i thought u did :(
<DeathCode>
hold up
<DeathCode>
the system cannot find the path specified
<DeathCode>
adaedra:help with ?
<adaedra>
anything
<adaedra>
anyway.
<DeathCode>
what u mean lol
_1_Nope has joined #ruby
<DeathCode>
sevenseacat:what u think?
<sevenseacat>
DeathCode: i asked you to gist the error message.
<sevenseacat>
!gist
<helpa>
http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<DeathCode>
the system cannot find the path specified
<adaedra>
echo %PATH%
<DeathCode>
thats all it said lmao
<sevenseacat>
you didnt say what path, so
<sevenseacat>
!ncnh
<helpa>
If you don't provide any code, it becomes really difficult for us to help you. Providing code to reproduce the problem increases your chances of getting great, accurate help immensely.
<DeathCode>
ok hold on
<arup_r_>
DeathCode: No I don't.. My client made me April fool.. :(
<_1_Nope>
Gosh, this app is terrible. It starts to make sense now though
<arup_r_>
I meant IRC client
<DeathCode>
hehe
<DeathCode>
hold on let me try something
<jhass>
_1_Nope: is me. There's an app that is an IRC client styled like WhatsApp etc. with Freenode as the top predefined server m(
<DeathCode>
lmao i'd do the path thing but idk how to copy from the command line
<sevenseacat>
your rails installer path is right there at the top.
<jhass>
and totally pretends to be a social thingy, asks you for your gender and shit like that
<sevenseacat>
in future, when we say gist, we *mean it*. dont flood the channel.
<adaedra>
Mh, isn’t it supposed to have a path for gems too ?
<DeathCode>
arup_r_:yeah happens. nobody cares
<jokester>
you have a splendid toolbox
<ahmetkapikiran>
gist.github.com !
basex_ has joined #ruby
<DeathCode>
sevenseacat:ok so what now?
<sevenseacat>
DeathCode: i asked you to gist the error message.
Pupeno has joined #ruby
Pupeno has joined #ruby
<sevenseacat>
we might get there eventually.
<jhass>
_1_chokeseskukus: remove this app, it's shit
<DeathCode>
all i did was write rails -v. and it replied
<adaedra>
DeathCode: system menu > edit > select, make selection, system menu > edit > copy
<DeathCode>
"the system cannot find the path specified" sevenseacat
_1_Nope has left #ruby [#ruby]
<sevenseacat>
sigh.
<DeathCode>
so how do i set it to the right path?
charliesome has joined #ruby
<sevenseacat>
I have a feeling you might need to reinstall the right version of rails installer - the old one might have wiped your gem path
<adaedra>
Er
<adaedra>
Hold on
<sevenseacat>
but i dont really care because i ask a simple question repeatedly and get no straight answer
<sevenseacat>
so i'm done
_1_chokeseskukus has quit [Remote host closed the connection]
<sevenseacat>
glhf
<DeathCode>
ok sevenseacat sorry to bother you
<adaedra>
He installed ruby though Rails installer, and has to run gem install rails?
iasoon has joined #ruby
<adaedra>
There’s something I don’t follow
<sevenseacat>
nfi.
<DeathCode>
thank you for all your help so far though
<hectortrope>
Hi all I have a bunch of linux commands, How can i write a script to execute all the commands
<arup_r_>
DeathCode: but your name has some internal meaning.. :)
<DeathCode>
lol what is it?
<arup_r_>
and that's like a DeathOver in Cricket..
<DeathCode>
LOL
<adaedra>
hectortrope: just run commands, or execute commands from a ruby script ?
bim has quit [Remote host closed the connection]
<DeathCode>
how did u enjoy the games?
<arup_r_>
cricket too much and football only worldcup
<jhass>
hectortrope: put them into a file, slap #!/bin/sh at the top
serivichi has joined #ruby
serivich has joined #ruby
<arup_r_>
In football also DetahHours are dangerous
<jhass>
hectortrope: and chmod +x it
<DeathCode>
i'm the opposite. mostly soccer/football worldcup
<DeathCode>
and dont understand cricket too much
sdothum has joined #ruby
<DeathCode>
sorry, watch*
<DeathCode>
dont watch cricket too much
bruno- has joined #ruby
<gregf_>
DeathCode: cricket is not a game for the chicken hearted. the only bird in there is a duck :/
<arup_r_>
There is nothing to understand Cricket.. too amt advertise in between ...
haxrbyte has joined #ruby
<arup_r_>
gregf_: hehehehe
<hectortrope>
jhass: I need to write a ruby script
<DeathCode>
gregf_ was that a joke cause *cricket* *cricket*
<hectortrope>
jhass: yes
SouL_ has quit [Ping timeout: 272 seconds]
<jhass>
hectortrope: who says you need to? a shell is much better at "running a bunch of linux commands" than ruby is
gfawcettpq has joined #ruby
rayleigh415 has joined #ruby
<hectortrope>
jhass: I have a Java based software installed. So i want to execute run many commands like "which java" then path of java then users like that many. Everytime i do manually but now I want to perform all tasks at a time
<jhass>
yeah, sounds like a job for shellscript
<hectortrope>
jhass: yess
<hectortrope>
but can i do it in ruby/
<hectortrope>
So that I can take help of chef
sevenseacat has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<DeathCode>
careful, dont bring java into this channel
<jhass>
well, then do it in ruby if you think that's better (I'm still not convinced)
<jhass>
look at Kernel#`, Kernel#system and Kernel#spawn
<hectortrope>
jhass: i don't even know basics of shell scripting
<hectortrope>
what kernel a channel or a book?
serivich has quit [Quit: Leaving]
<jhass>
?
<jhass>
I thought you wanted to write a ruby script?
<arup_r_>
No.. I don't know how to use it here in this channel.. What's the command ?
<jhass>
sorry?
<arup_r_>
BTW.. I never knew that IRCs are built top of Rails..
sandelius has joined #ruby
<zly>
they're not ;]
<sevenseacat>
wut...?
<jhass>
oO? why do you think... I don't even
<arup_r_>
jhass: as per your SLIM line if someone write **In Rails, how can I …?**.. something like that.. BOT will answer like *Please ask in #RubyOnRails.*.. Am I correct ?
<jhass>
no
<zly>
he's drunk or his english-fu is bit weak
astrobun_ has quit [Remote host closed the connection]
jmignault has joined #ruby
<arup_r_>
zly: I don't drink.. my english is bad..
astrobun_ has joined #ruby
nettoweb has joined #ruby
<DeathCode>
ok good bye guys
<arup_r_>
jhass: ok.. then what is the use of the line.. just trying to understand the feature..
<hectortrope>
kaspergrubbe: I just need explanation what's happening with that code then i can rewrite my own code with different language or same
<jhass>
hectortrope: what's wrong with the #chef channel?
Guest83620 has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
senayar has joined #ruby
govg_ has joined #ruby
startupality has quit [Quit: startupality]
davidhq has joined #ruby
ayaz has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
codecop has joined #ruby
nii2361 has joined #ruby
startupality has joined #ruby
martinbmadsen has quit [Quit: Bye!]
martinbmadsen has joined #ruby
mhib has joined #ruby
haxrbyte has quit [Ping timeout: 265 seconds]
unshadow has joined #ruby
charliesome has quit [Quit: zzz]
jefus has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has joined #ruby
martinbmadsen has quit [Client Quit]
<unshadow>
Hi guys, I need some advice, I created a proxy which does URL rewrite using data.gsub, what is the overhead of gsub ? is there a better why to manipulate the data so it will be faster (or consume less resources) ? thanks
martinbmadsen has joined #ruby
MatthewsFace has joined #ruby
nii2361 has quit [Ping timeout: 244 seconds]
<jhass>
unshadow: if it's a single replacement consider .sub and if it doesn't need a regexp consider String#[]=, other than that you won't get better
oo_ has quit [Remote host closed the connection]
<unshadow>
I see, thanks jhass
nii2361 has joined #ruby
Pharaoh2_ is now known as Pharaoh2
Pupeno has quit [Ping timeout: 265 seconds]
Asher has quit [Quit: Leaving.]
MatthewsFace has quit [Ping timeout: 250 seconds]
Asher has joined #ruby
Asher has quit [Client Quit]
senayar has quit [Remote host closed the connection]
SouL_ has joined #ruby
oo_ has joined #ruby
govg_ has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
govg_ has joined #ruby
robbyoconnor has joined #ruby
Asher has joined #ruby
Pupeno has joined #ruby
nii2361 has quit [Ping timeout: 245 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
serivichi has joined #ruby
rdark has joined #ruby
<hs366>
unless arg[0].nil! puts "not nill" is it ok if use this
<hanmac>
jhass: String#[]= works with regexp too ;P
djbkd has joined #ruby
<jhass>
hanmac: I know I know :P
<jhass>
hs366: still not a Ruby core method
reinaldob has joined #ruby
<hanmac>
jhass: did you know that Symbol#[] works with regexp too? ;P
<jhass>
doesn't all that stuff just delegate to to_s ?
<arup_r_>
hanmac: myself know
<arup_r_>
jhass: yes .. it is
hpoydar has joined #ruby
<hs366>
how can i use if arg[0] is empthy p "it's empty"
<unshadow>
hanmac, so what's the difference between String#[]= and .gsub ?
nettoweb has quit [Ping timeout: 248 seconds]
Mia has quit [Ping timeout: 252 seconds]
<jhass>
hs366: "empty" is not a well defined set of values
<hs366>
empty = nil
<arup_r_>
unshadow: gsub for multilple matches
<hs366>
can i use this in my code
<arup_r_>
unshadow: String#[] is like #sub
RegulationD has quit [Ping timeout: 250 seconds]
<jhass>
hs366: unless false is a valid value you can just puts "it's empty" unless arg[0]
ahmetkapikiran has joined #ruby
Vivex has joined #ruby
<hanmac>
unshadow: first: gsub does makes multiple, you mean sub ... and []= does return the value you set, while its also self changing like sub!
<arup_r_>
hanmac: Any difference between String#sub and String#[]
<arup_r_>
?
bim has joined #ruby
<jhass>
hs366: if you rely on the non-existing index returning nil there, another common and possibly more robust approach is to check the arrays .size
jerematic has quit [Ping timeout: 255 seconds]
<arup_r_>
ok got it
djbkd has quit [Ping timeout: 256 seconds]
<arup_r_>
hanmac: seems no difference between String#sub! and String#[]
stef204 has quit [Ping timeout: 250 seconds]
teddyp1cker has quit [Remote host closed the connection]
<arup_r_>
Well.. my last statement is wrong.. I got it now.. no more questions..
<hanmac>
arup_r_: you mean String#[]= and look at the return value
oo_ has quit [Remote host closed the connection]
hpoydar has quit [Ping timeout: 255 seconds]
<arup_r_>
yes.. I meant that
<arup_r_>
got it.. now
<hs366>
jhass, i sue optionparser and i expected to have input from user , otherwise it ask the use for help menu again
<hs366>
the input could be 1..4 param
nii2361 has joined #ruby
<jhass>
poor optionparser, being sued all the time :(
<hs366>
:))))
<unshadow>
so, gsub is like text.each_line do |line| ; line['match'] = 'newword' ?
<hs366>
my bad ruby knowledge
noname1 has quit [Ping timeout: 248 seconds]
bim has quit [Ping timeout: 250 seconds]
beilabs has quit [Ping timeout: 265 seconds]
<jhass>
unshadow: not really, it doesn't operate linewise
dEPy has joined #ruby
<jhass>
more like scan, it continues searching for matches after the previous match
noname1 has joined #ruby
sevvie has joined #ruby
rayleigh415 has joined #ruby
oo_ has joined #ruby
rdark has quit [Quit: leaving]
rdark has joined #ruby
ldnunes has joined #ruby
adriancb_ has quit [Ping timeout: 264 seconds]
rayleigh415 has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
fgo has joined #ruby
agrinb has quit [Ping timeout: 248 seconds]
krz has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
ralku is now known as ralku[away]
Sgeo has quit [Ping timeout: 250 seconds]
Darryl___ has joined #ruby
ralku[away] is now known as ralku
symbol__ has joined #ruby
joined has joined #ruby
joined has left #ruby [#ruby]
livathin_ has joined #ruby
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
#
<certainty>
DeBot: #
<DeBot>
␣␣␣␣␣␣␣␣#␣␣␣␣ [] 0/12
<certainty>
DeBot: ae
<DeBot>
␣␣␣␣␣␣␣␣#␣e␣␣ [a] 1/12
<certainty>
DeBot: s
<DeBot>
S␣␣␣␣␣␣␣#␣e␣s [a] 1/12
<certainty>
DeBot: t
<DeBot>
St␣␣␣␣␣␣#␣ets [a] 1/12
<certainty>
DeBot: ring
<DeBot>
StringI␣#gets [a] 1/12
nii2361 has quit [Ping timeout: 244 seconds]
<certainty>
DeBot: O
<DeBot>
StringIO#gets [a] 1/12 You won!
robertt_dex has joined #ruby
mostlybadfly has joined #ruby
<certainty>
\o/
robertt_dex has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 248 seconds]
oo_ has joined #ruby
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: g
<DeBot>
␣␣␣␣g␣␣␣␣␣␣␣␣␣ [] 0/12
emptyspace has joined #ruby
<certainty>
DeBot: #
<DeBot>
␣␣␣␣g␣␣#␣␣␣␣␣␣ [] 0/12
blankspace has quit [Ping timeout: 246 seconds]
<certainty>
DeBot: o
<DeBot>
␣␣␣␣g␣␣#␣o␣␣␣o [] 0/12
<unshadow>
DeBot: a
<DeBot>
␣␣␣␣g␣␣#␣o␣␣␣o [a] 1/12
<certainty>
DeBot: n
<DeBot>
␣n␣␣g␣␣#␣o␣n␣o [a] 1/12
<unshadow>
DeBot: m
<DeBot>
␣n␣␣g␣␣#␣o␣n␣o [am] 2/12
<certainty>
DeBot: it
<DeBot>
Int␣g␣␣#␣o␣nto [am] 2/12
<certainty>
DeBot: er
<DeBot>
Integer#␣o␣nto [am] 2/12
jenrzzz has joined #ruby
<certainty>
DeBot: dw
<DeBot>
Integer#downto [am] 2/12 You won!
<unshadow>
hahah
<unshadow>
nice :)
<ralku>
lol
stef204 has joined #ruby
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: #
<DeBot>
␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: s
<DeBot>
␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [s] 1/12
<ahmetkapikiran>
Debot: 21
<ahmetkapikiran>
lol
<certainty>
DeBot: a
<DeBot>
␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [sa] 2/12
<unshadow>
performance wise, does gsub! is better then text = text.gsub ?
joonty has quit [Quit: joonty]
<unshadow>
DeBot: f
<DeBot>
␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [saf] 3/12
krz has joined #ruby
<unshadow>
DeBot: I
<DeBot>
␣␣␣␣␣␣␣#␣␣␣␣␣␣␣ [safi] 4/12
<unshadow>
DeBot: l
<DeBot>
␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safi] 4/12
<unshadow>
DeBot: d
<DeBot>
␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid] 5/12
astrobun_ has joined #ruby
<ahmetkapikiran>
DeBot: 21
<DeBot>
␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid21] 7/12
<hectortrope>
DeBot:
blankspace has joined #ruby
blankspace has quit [Max SendQ exceeded]
<unshadow>
DeBot: \r\n
<DeBot>
␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid21\rn] 10/12
<hectortrope>
DeBot:
<hectortrope>
DeBot:
aclearman037 has joined #ruby
<hectortrope>
DeBot:
<unshadow>
DeBot: ?
<DeBot>
␣␣␣␣␣␣␣#␣␣␣l␣␣␣ [safid21\rn?] 11/12
<unshadow>
DeBot: g
<DeBot>
Mutex_m#mu_lock [safid21\rn?g] 12/12 You lost!
<certainty>
unshadow: i don't know but i suspect it's not better than #gsub if nothing gets substituted. If it does it is probably slightly better due to the copy operations
hectortrope has quit [Quit: WeeChat 0.4.2]
<certainty>
oh you can ask with ?
livathin_ has quit [Remote host closed the connection]
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: ?
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [?] 1/12
<certainty>
maybe not
<unshadow>
DeBot: \?
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\] 2/12
<certainty>
doesn't make sense anyway since methods can have ?
<unshadow>
DeBot: #
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\#] 3/12
<unshadow>
DeBot: .
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\#.] 4/12
<unshadow>
DeBot: f
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [?\#.f] 5/12
<unshadow>
DeBot: t
<DeBot>
␣t␣␣␣␣␣t␣␣␣␣t [?\#.f] 5/12
<unshadow>
nice !
<unshadow>
3 xt
nii2361 has joined #ruby
livathin_ has joined #ruby
<certainty>
DeBot: o
<DeBot>
␣t␣␣␣␣␣t␣␣␣␣t [?\#.fo] 6/12
<certainty>
DeBot: s
<DeBot>
␣t␣␣␣␣␣t␣␣␣␣t [?\#.fos] 7/12
brb3 has joined #ruby
<certainty>
erm
<certainty>
DeBot: e
<DeBot>
Et␣␣␣␣et␣␣e␣t [?\#.fos] 7/12
<hanmac>
DeBot: :
<DeBot>
Et␣::␣et␣␣e␣t [?\#.fos] 7/12
<certainty>
DeBot: c
<DeBot>
Etc::␣et␣␣e␣t [?\#.fos] 7/12
<certainty>
DeBot: g
<DeBot>
Etc::get␣␣e␣t [?\#.fos] 7/12
<certainty>
DeBot: p
<DeBot>
Etc::getp␣e␣t [?\#.fos] 7/12
<certainty>
DeBot: w
<DeBot>
Etc::getpwe␣t [?\#.fos] 7/12
<certainty>
DeBot: n
<DeBot>
Etc::getpwent [?\#.fos] 7/12 You won!
<oz>
:)
<unshadow>
lol, da hell is this Etc
emptyspace has quit [Ping timeout: 272 seconds]
<oz>
check the stdlib
astrobun_ has quit [Ping timeout: 255 seconds]
<certainty>
ok last round
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
(for me at least)
<certainty>
DeBot: #
<DeBot>
␣␣␣␣␣␣␣␣#␣␣␣␣ [] 0/12
<certainty>
DeBot: s
<DeBot>
␣␣␣␣␣␣␣␣#␣␣␣␣ [s] 1/12
<certainty>
DeBot: e
<DeBot>
␣␣␣␣␣␣␣␣#␣␣␣␣ [se] 2/12
<certainty>
DeBot: a
<DeBot>
␣a␣␣␣␣a␣#␣␣␣␣ [se] 2/12
<ralku>
hehe Etc:getpwned ;)
<certainty>
hmm
<certainty>
DeBot: n
<DeBot>
␣a␣␣␣na␣#␣␣␣␣ [se] 2/12
<certainty>
DeBot: m
<DeBot>
␣a␣␣␣na␣#␣␣␣␣ [sem] 3/12
<certainty>
DeBot: t
<DeBot>
␣at␣␣na␣#t␣␣␣ [sem] 3/12
<certainty>
DeBot: o
<DeBot>
␣at␣ona␣#to␣␣ [sem] 3/12
<certainty>
DeBot: ri
<DeBot>
Rationa␣#to␣␣ [sem] 3/12
<certainty>
DeBot: l_f
<DeBot>
Rational#to_f [sem] 3/12 You won!
mistermocha has joined #ruby
nii2361 has quit [Ping timeout: 252 seconds]
<certainty>
i should write a bot that solves those hangmans from DeBot xD
jerematic has joined #ruby
sevenseacat has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<certainty>
sevenseacat: perfect timing
<ralku>
then this channel will be unusable ;)
<certainty>
it's hangman time
<sevenseacat>
ooooooh
<sevenseacat>
i like hangman
<certainty>
ralku: of course it would only be used when no one's talking
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
banister has joined #ruby
<certainty>
DeBot: #
<DeBot>
␣␣␣␣␣␣#␣␣␣␣ [] 0/12
<certainty>
DeBot: to
<DeBot>
␣␣␣␣␣␣#to␣␣ [] 0/12
freerobby has joined #ruby
<certainty>
DeBot: in
<DeBot>
I␣␣␣␣␣#to␣i [n] 1/12
<certainty>
DeBot: _
<DeBot>
I␣␣␣␣␣#to_i [n] 1/12
antlong has joined #ruby
<certainty>
DeBot: o
<DeBot>
I␣␣␣␣␣#to_i [n] 1/12
<certainty>
erm silly me
<sevenseacat>
DeBot: rs
<DeBot>
I␣␣␣␣r#to_i [ns] 2/12
startupality has quit [Quit: startupality]
<sevenseacat>
DeBot: l
<DeBot>
I␣␣␣␣r#to_i [nsl] 3/12
<jhass>
DeBot: nteg
<DeBot>
I␣␣␣␣r#to_i [nsleg] 5/12
<sevenseacat>
DeBot: p
<DeBot>
IP␣␣␣r#to_i [nsleg] 5/12
<certainty>
DeBot: add
<DeBot>
IPAddr#to_i [nsleg] 5/12 You won!
<sevenseacat>
DeBot:ad
ghostpl_ has quit [Remote host closed the connection]
jottr_ has joined #ruby
<sevenseacat>
\o/
<certainty>
\o/
<ralku>
cheers ;)
<certainty>
damn i need to work
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: #
<DeBot>
␣␣␣␣#␣␣␣␣ [] 0/12
<certainty>
DeBot: o
<DeBot>
␣␣␣␣#␣o␣␣ [] 0/12
<sevenseacat>
DeBot: rste
<DeBot>
T␣␣e#to␣␣ [rs] 2/12
<certainty>
DeBot: _
<DeBot>
T␣␣e#to_␣ [rs] 2/12
<sevenseacat>
DeBot: im
<DeBot>
Time#to_i [rs] 2/12 You won!
<certainty>
\o/
* sevenseacat
breakdances
<certainty>
alright my tests are still running
mistermocha has quit [Ping timeout: 265 seconds]
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: #
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣#␣␣␣␣␣␣␣␣␣␣ [] 0/12
<sevenseacat>
DeBot: openssl
<DeBot>
S␣␣␣n␣S␣␣nne␣#pos␣␣␣␣␣␣␣ [l] 1/12
<certainty>
hehe
<sevenseacat>
damn
<sevenseacat>
DeBot: :
<DeBot>
S␣␣␣n␣S␣␣nne␣#pos␣␣␣␣␣␣␣ [l:] 2/12
<certainty>
DeBot: it
<DeBot>
St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:] 2/12
<sevenseacat>
DeBot: d
<DeBot>
St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:d] 3/12
<jhass>
DeBot: i
<DeBot>
St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:d] 3/12
<certainty>
DeBot: u
<DeBot>
St␣in␣S␣␣nne␣#post␣␣␣t␣␣ [l:du] 4/12
<sevenseacat>
DeBot: r
<DeBot>
Strin␣S␣␣nner#post␣␣␣t␣␣ [l:du] 4/12
<sevenseacat>
DeBot: g
<DeBot>
StringS␣␣nner#post␣␣␣t␣␣ [l:du] 4/12
<certainty>
DeBot: ca
<DeBot>
StringScanner#post␣␣atc␣ [l:du] 4/12
<sevenseacat>
DeBot: ca
<DeBot>
StringScanner#post␣␣atc␣ [l:du] 4/12
<jhass>
DeBot: _
<DeBot>
StringScanner#post_␣atc␣ [l:du] 4/12
<sevenseacat>
DeBot: _
<DeBot>
StringScanner#post_␣atc␣ [l:du] 4/12
konsolebox has joined #ruby
<sevenseacat>
DeBot: h
<DeBot>
StringScanner#post_␣atch [l:du] 4/12
<certainty>
DeBot: c
<DeBot>
StringScanner#post_␣atch [l:du] 4/12
<sevenseacat>
i dont know what letter that is
<certainty>
ah we ad that before
<jhass>
DeBot: h
<DeBot>
StringScanner#post_␣atch [l:du] 4/12
<sevenseacat>
DeBot: m
<DeBot>
StringScanner#post_match [l:du] 4/12 You won!
<sevenseacat>
yay!
<jhass>
lol
<certainty>
lol
<jhass>
anyone besides apeiros ever used StringScanner? :D
Takle has quit [Remote host closed the connection]
<apeiros>
stringscanner is da bomb!
<certainty>
yeah some years back when i was working on coderay
jheg has joined #ruby
<jhass>
it reminds of Java, maybe that's why I never consider it :/
startupality has joined #ruby
adriancb has joined #ruby
<certainty>
damn tests finished and they're failing. no more hangman for poor certainty
Lewix has joined #ruby
<sevenseacat>
aww
mrbond has joined #ruby
* sevenseacat
working on R4IA while fiance watches South Park in the background
joonty has joined #ruby
charliesome has quit [Quit: zzz]
<antlong>
I'm looking for any input on how to connect to a redis instance hosted on Elasticache from Heroku without using SSH. TLS and spiped were mentioned, would anyone know of anything else I can investigate?
livathin_ has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 255 seconds]
Hounddog has quit [Ping timeout: 272 seconds]
livathinos has joined #ruby
<jhass>
mmh, heroku blocks ssh?
<antlong>
no, we implemented ssh initially but the latency was too great.
lkba_ has joined #ruby
<unshadow>
Ok, it seems that text.gsub! is much faster then text = text.gsub
<jhass>
ah
Hounddog has joined #ruby
<jhass>
unshadow: well yes, it doesn't need to allocate a new string ;)
livathin_ has joined #ruby
<certainty>
if nothing is updated it shouldn't matter because of cow
lkba has quit [Ping timeout: 252 seconds]
<unshadow>
certainty and I talked about it before, just wanted to see how much faster, so I created a small test
<unshadow>
shuold be only "literalstring".gsub!(/era/,'o')
<unshadow>
thats the all point
<unshadow>
as it changes the value itself
RegulationD has joined #ruby
<certainty>
that doesn't change much
agrinb has quit [Ping timeout: 256 seconds]
<certainty>
the string has been updated in place before it is assigned. ruby has copy on write so that assignment doesn't hurt
spyderman4g63 has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
<certainty>
you can run the benchmark without the assignment and it doesn't change
startupality has quit [Quit: startupality]
rayleigh415 has quit [Ping timeout: 246 seconds]
<bradland>
whether it's faster or not, it's still a poor style choice
mwmnj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
startupality has joined #ruby
_hollywood has joined #ruby
hpoydar has joined #ruby
<unshadow>
true, not so much chages
<unshadow>
from 1.03 to 1.01
<unshadow>
intresting to know why
<unshadow>
jhass, what's your take on this ?
<jhass>
mh?
<certainty>
bradland: depends if you have a fresh string it might make sense to use it, especially if you have an otherwise somewhat pure interface around it
RegulationD has quit [Ping timeout: 244 seconds]
<certainty>
but generally i avoid it as well
MasterPiece has joined #ruby
sgambino has joined #ruby
<certainty>
jhass: i think he means the runtime of #gsub vs. #gsub! in that little benchmark. The results appear to be a bit strange.
musashi1 has quit [Ping timeout: 272 seconds]
* jhass
shrugs
<jhass>
I don't give much to micro benchs tbh :)
hpoydar has quit [Ping timeout: 264 seconds]
<unshadow>
certainty, when chaning this to work with a large file full of strings the pic looks different
<certainty>
unshadow: i suspect that since the allocation work is bigger
amystephen has joined #ruby
krz has quit [Ping timeout: 255 seconds]
<certainty>
it should perform better with bigger input
hectortrope has joined #ruby
<certainty>
compared to the non-destructive version
<r3dking>
say I have an array that has elements like array[3] = "["", "37.145.136.226\n"]" but I only want the ipaddres in array[3], what an easy waht to flatten that?
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
jerius has joined #ruby
<r3dking>
nevermind I figured it out
urbanmonk has quit [Quit: urbanmonk]
<colorados>
diaspora interesting project
roolo_ has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
<ddv>
r3dking: why do you have a such a weird array in the first place?
nettoweb has joined #ruby
<ddv>
r3dking: maybe map it out to a struct or class
dblessing has joined #ruby
<r3dking>
ddv: yep, that's exactly what I did, I fixed it first :)
amortimer has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
delianides has joined #ruby
Soda has joined #ruby
xenokiller has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
hiyosi has joined #ruby
michael_mbp has quit [Excess Flood]
shadoi1 has joined #ruby
livathin_ has quit [Remote host closed the connection]
ZJvandeWeg has joined #ruby
michael_mbp has joined #ruby
Dragonai has quit [Ping timeout: 246 seconds]
livathin_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
tvw has joined #ruby
RegulationD has joined #ruby
duggiefresh has joined #ruby
zenith_ has joined #ruby
freerobby has quit [Quit: Leaving.]
ahmetkapikiran has joined #ruby
laudo has quit [Quit: Page closed]
zcreative has joined #ruby
lavros has joined #ruby
symbol__ has quit [Ping timeout: 250 seconds]
yqt has joined #ruby
AlphaTech has quit [Quit: Connection closed for inactivity]
yalue has joined #ruby
_honning_ has joined #ruby
Megtastique has joined #ruby
thebatu1 has joined #ruby
<thebatu1>
can someone tell me please what is << means in ruby ?
Channel6 has joined #ruby
<bradland>
thebatu1: << is an operator that can do different things depending on the receiver
<bradland>
also, the channel #rubyonrails has lots of very knowledgable Rails folks
hgl has joined #ruby
<bradland>
this channel tends to focus more on generalized ruby questions
livathin_ is now known as livathinos
<thebatu1>
@ bradland thanks, that was clear.
<bradland>
sure thing
delianides has joined #ruby
kyrylo has joined #ruby
<certainty>
thinking of it php is actually a pretty good language to teach
<certainty>
i mean to teach how a programming language should not work
<adaedra>
if you want to teach bad practice…
O_the_Del has joined #ruby
triple_b has joined #ruby
lanemeyer has joined #ruby
Takle has quit [Remote host closed the connection]
dfinninger has joined #ruby
serivichi has quit [Ping timeout: 255 seconds]
dfinninger has quit [Remote host closed the connection]
triple_b_ has joined #ruby
serivichi has joined #ruby
teddyp1cker has joined #ruby
kyrylo_ has joined #ruby
triple_b has quit [Ping timeout: 246 seconds]
kyrylo has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
<amortimer>
Is there a road map for Ruby to support HTTP 2?
enebo has joined #ruby
huddy has joined #ruby
riotjones has joined #ruby
<amortimer>
I’m concerned with how Ruby will handle HTTP 2 multiplexing
Juanchito has joined #ruby
fryguy9 has joined #ruby
_maes_ has joined #ruby
shazaum has joined #ruby
teddyp1cker has quit [Ping timeout: 248 seconds]
jconnolly has joined #ruby
arup_r_ has quit [Remote host closed the connection]
symbol__ has joined #ruby
teddyp1cker has joined #ruby
albedoa has joined #ruby
nfk|laptop has joined #ruby
ChasedSpade has quit [Quit: No reason specified.]
noname1 has joined #ruby
symbol__ has quit [Client Quit]
riotjones has quit [Ping timeout: 272 seconds]
elfuego has joined #ruby
symbol has joined #ruby
<elfuego>
I have api application, and I want to document the functionality of each endpoint, I came across rdoc, but I was wondering if there was a more specialized tool for documenting ruby api applications.
ArchRogem has quit [Read error: Connection reset by peer]
awwaiid has joined #ruby
ChasedSpade has joined #ruby
<awwaiid>
er... does anyone know what the gem is that makes it _look_ like all rspec tests are passing? com.google is failing me.
teddyp1cker has quit [Ping timeout: 246 seconds]
tagrudev has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
aganov has quit [Remote host closed the connection]
<thebatu1>
I find my self unable to understand the synatx and code of a rails application. to solve this, I decided to purchase a book "lean ruby the hard way" , but I dont really have time and I want some advanced crash course on ruby, any recommendations ?
noname1 has quit [Ping timeout: 265 seconds]
Feyn has quit [Quit: Leaving]
last_staff has quit [Quit: last_staff]
fgo has quit [Quit: WeeChat 1.1.1]
ghr has quit [Read error: No route to host]
ghr has joined #ruby
<adaedra>
Look at ruby projects
willharrison has joined #ruby
kyrylo__ has joined #ruby
jwinder has joined #ruby
lolmaus has joined #ruby
kyrylo_ has quit [Ping timeout: 264 seconds]
<thebatu1>
yea good idea I will have a look in github
nettoweb_ has joined #ruby
wicope has joined #ruby
davedev2_ has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
Flowrhent has joined #ruby
nettoweb has quit [Ping timeout: 255 seconds]
Channel6 has quit [Quit: Leaving]
hpoydar has joined #ruby
agarie has joined #ruby
iamjarvo has joined #ruby
aclearma_ has joined #ruby
dEPy has quit [Ping timeout: 252 seconds]
<r3dking>
Question
<wasamasa>
amortimer: way too early for that
<wasamasa>
amortimer: heck, http2 could be a failure
marr has quit [Ping timeout: 256 seconds]
aclearman037 has quit [Ping timeout: 250 seconds]
<r3dking>
I have a hash which has an instance number as the key, and then a time stamp, and ip address as the value.... basically want I want to do, is figure out a way to count all of occrances of uniq ip address in a one hour time frame
<sweeper>
r3dking: if for some reason you don't want to use a data store that provides this sort of thing, what you would need is another hash, prolly with the ip as key
jlast has joined #ruby
<agarie>
hmm, how about in-memory SQLite?
<jhass>
r3dking: you can turn on syntax highlighting on gist by naming your files something.rb and you can add multiple files to a gist
Beliq has joined #ruby
<r3dking>
sweeper: thanks, but how can I have the ip as the key if the ip repeats?
startupality has joined #ruby
<sweeper>
r3dking: the value would be an array
livathinos has quit []
mistermocha has quit [Ping timeout: 256 seconds]
haxrbyte has joined #ruby
paulfm has joined #ruby
<r3dking>
sweeper: the value would be an array of what?
<agarie>
maybe the timestamp?
<agarie>
ip => [timestamp]
O_the_Del has left #ruby ["Leaving..."]
ekaleido has joined #ruby
nettoweb has joined #ruby
<wasamasa>
r3dking: I'd group the data by hour, then select all unique IP-adresses of each group
<jhass>
^
nettoweb_ has quit [Ping timeout: 265 seconds]
<r3dking>
I am dealing with alot of hits, the timestamp and ip might be the same over and over again
<wasamasa>
r3dking: that kind of operation is pretty common for a relational database
startupality has quit [Client Quit]
<jhass>
r3dking: and if you did that, please, please come back for a style review :)
ghostpl_ has quit [Remote host closed the connection]
icedp has quit [Remote host closed the connection]
<sweeper>
r3dking: an array of {instance number, timestamp}, sorted by timestamp
<wasamasa>
some people feel uncomfortable with letting a disk-backed database handle that and put redis between it and their server
<wasamasa>
for ZOMGSPEED
<r3dking>
sweeper the data is already stored by instance number, if you think about it
User458764 has joined #ruby
<User458764>
Hi, how do I 'rescue' an error like this one: File exists @ sys_fail2 - ?
<jhass>
User458764: full error message and we can dissect it together ;)
shadoi1 has quit [Quit: Leaving.]
JDiPierro has joined #ruby
ghostpl_ has joined #ruby
OtterCoder has joined #ruby
<sweeper>
r3dking: right, so what I'm saying is you need to pivot your data to do what you want, OR just use a store that supports this operation
<wasamasa>
doesn't ruby have sqlite3 as dependency?
<wasamasa>
or a dbm-style key-value store?
<jhass>
User458764: mkay weird. So the even more generic way to find out the class would be to do an open rescue => e; p(e.class); end
<wasamasa>
well, python should definitely have sqlite3 as dependency
paulfm has quit [Quit: Zzzzz...]
<User458764>
jhass right :) I will do that
<jhass>
User458764: but! Now you would be doing control flow with exceptions, there are two better solutions here
<jhass>
User458764: 1) Use File.exist before attempting the symlink
<r3dking>
sweeper: so if I created a second hash, say with the "ip" as the key, and the "instance and timestamp" as value... what would I do with the two hashes next?
JDiPierro has quit []
<jhass>
User458764: or 2) use a Rake rule which won't run if the target file already exists
DigitallyBorn has joined #ruby
<User458764>
jhass, ok good I will use a simple File.exists? good
bMalum has joined #ruby
chthon has joined #ruby
<jhass>
r3dking: I seem to have missed it, why doesn't wasamasas suggestion work again?
<jhass>
simply group by the hour and uniq the ips?
Kricir has joined #ruby
quimrstorres has joined #ruby
OtterCoder has quit [Quit: No Ping reply in 180 seconds.]
OtterCoder has joined #ruby
mitchellhenke has joined #ruby
<wasamasa>
jhass: it's too easy!
<r3dking>
jhass: which suggestion by wasamasa? I can't use a relational database, everything has to be done in plain jane ruby
quimrstorres has quit [Remote host closed the connection]
<jhass>
r3dking: the one I just restated
quimrstorres has joined #ruby
<wasamasa>
r3dking: just because GROUP BY and UNIQUE are sql things doesn't mean you can't do them in plain ruby
<Tomasso>
hey I get a json via rest client api, and there is one spanish word for example "opción" , the thing is that I got it as "opci\xE2\x94\x9C\xE2\x94\x82n" and there are manymany examples like that, my json parsing is failiing and I think is due to that. I try to autodetect encoding pasting text on the internet and it say KO :S what should i do ?
dfinninger has joined #ruby
MatthewsFace has joined #ruby
<bradland>
Tomasso: going to need to understand your problem description a little bit better.
agrinb has quit [Remote host closed the connection]
<bradland>
When you say "I get a json via rest client api", who controls this API? They should tell you the text encoding you expect.
<bradland>
Rather than guessing.
agrinb has joined #ruby
<bradland>
Guessing at text encoding is difficult.
<Tomasso>
bradland: the problem is that i control it myself xD
<bradland>
haha, ok
haxrbyte has quit [Remote host closed the connection]
<bradland>
so what you need to do is make your encoding consistent throughout the application
vyorkin has joined #ruby
<bradland>
UTF-8 is recommended in most cases.
<bradland>
you start at the client and work your way up through the stack.
<Tomasso>
yeahh,, gotta check that..
axl_ has joined #ruby
MatthewsFace has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
ahmetkapikiran has joined #ruby
milesmatthias has joined #ruby
sevvie has quit [Remote host closed the connection]
<bradland>
looks like you might still have to force_encoding('UTF-8')
agrinb has quit [Ping timeout: 265 seconds]
<bradland>
because of Net::HTTP (which underlies restclient)
paulfm_ has joined #ruby
<bradland>
depending on your ruby version
chinmay_dd has joined #ruby
<bradland>
welcome to text encoding hell
<bradland>
lol
paulfm has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
Zai00 has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
<DigitallyBorn>
To avoid db calls in a loop, I would like to fetch the results from a lookup table into a variable and locate a row. What's the best way to do this?
jaequery has joined #ruby
<jhass>
DigitallyBorn: what ORM?
mleung has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
msgodf has quit [Ping timeout: 244 seconds]
adriancb has joined #ruby
<DigitallyBorn>
jhass: ActiveRecord
<jhass>
can't you use eager loading?
Jackneill has joined #ruby
Takle has quit [Remote host closed the connection]
<DigitallyBorn>
jhass: Forgive me .. I'm a week into ruby (after flushing 15 years as a MS developer :D )
<DigitallyBorn>
jhass: Can you elaborate or blog post link me?
Asher has quit [Remote host closed the connection]
ascarter has joined #ruby
paulcsmith_ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
MatthewsFace has joined #ruby
ascarter has quit [Max SendQ exceeded]
LudicrousMango has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
MatthewsFace has joined #ruby
ascarter has joined #ruby
zenith_ has quit [Remote host closed the connection]
ebbflowgo has quit [Read error: Connection reset by peer]
allenn has quit [Remote host closed the connection]
fryguy9 has quit [Quit: Leaving.]
ebbflowgo has joined #ruby
Dude007 has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 272 seconds]
Cache_Money has joined #ruby
bim has joined #ruby
rikai has quit [Read error: Connection reset by peer]
nfk|laptop has quit [Quit: yawn]
it_tard has joined #ruby
S` has quit [Ping timeout: 248 seconds]
rikai has joined #ruby
S` has joined #ruby
elfuego has quit [Quit: elfuego]
vtunka has quit [Quit: Leaving]
Cust0sL1men has quit [Ping timeout: 272 seconds]
tus has quit [Ping timeout: 248 seconds]
colorados has quit [Quit: colorados]
ebbflowgo has quit [Read error: Connection reset by peer]
colorisco has joined #ruby
chthon has quit [Ping timeout: 244 seconds]
ebbflowgo has joined #ruby
jimms has quit [Ping timeout: 245 seconds]
Mives has quit [Quit: WeeChat 1.1.1]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
devoldmx_ has joined #ruby
jerematic has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
mitchellhenke has joined #ruby
spider-mario has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
spider-mario has joined #ruby
milesmatthias has quit [Remote host closed the connection]
tomeara has joined #ruby
freerobby has joined #ruby
Takle has quit [Remote host closed the connection]
nettoweb_ has joined #ruby
jerematic has joined #ruby
sigurding has joined #ruby
niftylettuce has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 252 seconds]
nettoweb has quit [Ping timeout: 252 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
piotrj has joined #ruby
noname1 has quit [Ping timeout: 244 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
paulcsmith_ has quit [Quit: Be back later ...]
albedoa has quit [Ping timeout: 265 seconds]
Takle has joined #ruby
jottr_ has joined #ruby
The_Phoenix has joined #ruby
iliketurtles has joined #ruby
paulcsmith_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
milesmatthias has joined #ruby
Soda has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
yh__ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
lemur has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
Hijiri has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
RegulationD has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 264 seconds]
The_Phoenix has joined #ruby
jayeshsolanki has quit [Quit: bye!]
yh has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
shadeslayer has joined #ruby
jonatin has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
Takle has joined #ruby
B1n4r10 has joined #ruby
GnuYawk has quit [Ping timeout: 248 seconds]
B1n4r10 has quit [Client Quit]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yh__ has quit [Ping timeout: 248 seconds]
B1n4r10 has joined #ruby
civim has joined #ruby
B1n4r10 has quit [Client Quit]
Aswebb_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
davidhq has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
ghr has joined #ruby
ghr has quit [Read error: Connection reset by peer]
lanemeyer has quit []
jheg has joined #ruby
spyderman4g63 has joined #ruby
lanemeyer has joined #ruby
Takle has quit [Ping timeout: 246 seconds]
c0m0 has quit [Ping timeout: 250 seconds]
elfuego has joined #ruby
cjim has quit [Quit: (null)]
edwinvdgraaf has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
workmad3 has quit [Ping timeout: 255 seconds]
cjim has joined #ruby
zcreative has quit [Quit: (null)]
fryguy9 has joined #ruby
rdark has quit [Quit: leaving]
josephleon has joined #ruby
krisquigley has quit [Remote host closed the connection]
wallerdev has joined #ruby
x1337807x has joined #ruby
krisquigley has joined #ruby
gsd has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
gfawcettpq has joined #ruby
graydot has joined #ruby
albedoa has joined #ruby
bMalum has quit [Quit: bMalum]
centrx has joined #ruby
tus has joined #ruby
benjwadams has joined #ruby
einarj has quit [Remote host closed the connection]
pothibo has joined #ruby
chinmay_dd has quit [Ping timeout: 248 seconds]
sigurding has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
<benjwadams>
Hi, I inherited a legacy rails app that works with a lot of observation data. Most of our stack is python and uses numpy and pandas and the like for data analysis on the backend. Does ruby have any libraries filling a similar niche?
towski_ has joined #ruby
chinmay_dd has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
eonbluez has joined #ruby
thumpba has joined #ruby
<eonbluez>
does sslmode = verify-full not work in Rails 3?
<jhass>
eonbluez: I think the OpenSSL library is about the only thing ActiveSupport doesn't touch
sigurding has joined #ruby
sigurding has quit [Client Quit]
<jokke>
hi
<jokke>
is Enumerator#next thread safe?
AlexRussia has joined #ruby
<agarie>
benjwadams: NMatrix and Daru
<agarie>
NMatrix works quite well and has a sparse storage type built-in
civim has quit [Quit: This computer has gone to sleep]
stevechiagozie has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<sweeper>
any way for an ensure block to know that an error has been caught?
<jhass>
put the code into a rescue
<benjwadams>
thanks, daru looks interesting. I'll have to take a look.
kirun has joined #ruby
<sweeper>
jhass: looks like else is actually the way to do it
<jhass>
well yeah, depends on what you want ;)
<jhass>
was preparing an example of else actually :)
<agarie>
we're working to improve the installation procedure for NMatrix in this google summer of code :)
<agarie>
there are several projects to make it compatible with various BLAS/LAPACK implementations as backends (openblas, lapacke, apple's accelerate framework, etc)
havenn has joined #ruby
<agarie>
benjwadams: daru's author is also quite approachable, he'll be sure to answer issues if you have any
krisquigley has joined #ruby
patrick99e99 has quit [Quit: leaving]
patrick99e99 has joined #ruby
piotrj_ has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
ZJvandeWeg has quit [Ping timeout: 256 seconds]
delianides has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
blahwoop has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
sandelius has joined #ruby
dfinninger has joined #ruby
piotrj has joined #ruby
DerisiveLogic has joined #ruby
existensil has quit [Ping timeout: 255 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
pothibo has quit [Quit: pothibo]
aclearma_ has quit [Quit: I'm out!]
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
Ellis has joined #ruby
duggiefresh has joined #ruby
ghr has joined #ruby
noname1 has quit [Ping timeout: 264 seconds]
fryguy9 has quit [Ping timeout: 245 seconds]
fryguy9 has joined #ruby
piotrj has quit [Remote host closed the connection]
lennae has quit [Ping timeout: 255 seconds]
piotrj has joined #ruby
leafybas_ has joined #ruby
<Ellis>
: i’ve searched the internet for when to use a hash instead of an array but i didn’t find anything besides “hashes don’t used numbers as keys”, can someone give an example of when you would use a hash in rails instead of an array and when you would use an array in rails instead of a hash
fryguy9 has quit [Client Quit]
towski_ has joined #ruby
Hijiri has joined #ruby
<jhass>
no, we're not #RubyOnRails
umby24|offline has quit [Ping timeout: 244 seconds]
<jhass>
we can try to come up with examples for Ruby in general though
<jhass>
Array is for when you need an ordered list of things, most likely similar things, let's say the lines in textfile
krisquigley has quit [Ping timeout: 250 seconds]
umby24|offline has joined #ruby
<jhass>
Hash is for when you need to map one value to another, let's say month name abbreviations to their full names {"Jan" => "January", "Feb" => "February", ...}
<apeiros>
eh, right. since 1.9 I should not say "hash map" but "ordered hash map"
<jhass>
I guess we're going way over Ellis head right now :)
<bradland>
yeah, sorry ellis
<bradland>
from a practical perspective, think of a hash as a way to define keys and values, which are associated
<jhass>
Ellis: don't worry too much, it'll click once you use them and maybe one or two times somebody points out "use the other one instead"
attamusc has joined #ruby
<Ellis>
so i guess i’m wondering what are the benefits for using referencing “january” with a hash key :jan instead of with an array index [0]
<bradland>
well, that's a bit of a contrived example
bim has joined #ruby
<apeiros>
Ellis: given you have the short name, how do you get the long name in your array?
Hijiri has quit [Quit: WeeChat 1.0.1]
<Ellis>
No i understand how they work, i just have to explain it for an assignment and i haven’t found any explanations on the web
<centrx>
...
<bradland>
what do you have to explain? the difference between a hash and an array?
<bradland>
or when to use them?
huddy has quit [Quit: Connection closed for inactivity]
<Ellis>
what the differences are, so i’m trying to figure out the pros and cons
baweaver has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<bradland>
differences are not the same as pros and cons
<bradland>
pros/cons are context specific
ndrei has joined #ruby
sephilix has quit [Quit: Konversation terminated!]
<Ellis>
gotcha. so what determines whether you use a hash or array
<bradland>
your use case
<bradland>
need to store key/value pairs? use a hash.
ghr has quit [Ping timeout: 264 seconds]
<apeiros>
Ellis: try to answer my question and you'll notice…
<bradland>
just need a list of items? use an array.
<centrx>
list vs dictionary
<centrx>
not actually that complicated
blackmesa has joined #ruby
f3lp has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
<Ellis>
centrx: so hashes simply the lookup process? instead of flooking up the meaning of television in a dictionary using the an index 38209, hashes allow you to look it up using the key word television.
MatthewsFace has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jimms_ has joined #ruby
jimms_ has quit [Client Quit]
<centrx>
Ellis, Yes
<jhass>
Ellis: assuming you had it in array, where would you get the index from?
baweaver has quit [Remote host closed the connection]
meschiv2 has quit [Ping timeout: 246 seconds]
jimms has quit [Ping timeout: 264 seconds]
<Ellis>
jhass: from your memory, so hashes simplify the lookup process by giving the value a memorable key?
yeticry has quit [Ping timeout: 265 seconds]
ndrei has quit [Quit: Lost terminal]
<jhass>
let's say you don't have television, you have a value that you read from user input
<jhass>
you write a dictionary program, the user can enter a keyword and you display its definition
<jhass>
if you stored your dictionary in an Array, where would you get the index from?
Pharaoh2 has quit [Read error: Connection reset by peer]
piotrj has quit [Remote host closed the connection]
jonatin has joined #ruby
Pharaoh2 has quit [Disconnected by services]
<apeiros>
somehow I think you people are doing Ellis' homework. I think it's them who should come up with the use-cases.
bMalum has joined #ruby
<Ellis>
so if i had a blog site, could i create a hash with a key called :health, and that corresponds to a tag so when people search the tag they get all the blog posts that are associated with that key
<jhass>
Ellis: yeah, if you use any of the examples we've done so far we will come and make you fail the assignment :P
<Ellis>
apeiros: i dont really care about the assignment, i just want to clarify this stuff
JDiPierro has joined #ruby
duncannz has quit [Remote host closed the connection]
<jhass>
well, in theory yes, it assumes a few things that makes it impractical in the real world, but we can disregard that here
adamholt has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
<jhass>
agarie: mh, Array is neither a linked list nor a binary tree though
<Ellis>
jhass: got it. i read a ruby book, then a rails book, and now i’m going over ruby again trying to relate all the concepts to rails, so that’s why i’m asking. i appreciate you clarifying these things
baweaver has joined #ruby
<storagedragon>
I am doing the codecadamy tutorial to help learn ruby, but I am not getting the expected prompts with this code http://repl.it/gZr/15 Is it me or something missing in the code?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agarie>
it isn't, but thinking about it in these terms was useful when I first studied the subject :P
<jhass>
storagedragon: can you clarify? what do you get, what do you expect?
<agarie>
but good point, I should've been more explicit about it
<Ellis>
storagedragon: use puts instead of print
teddyp1cker has joined #ruby
<storagedragon>
It outputs the first print = section and allows input of others but doesnt print subsequent prints
<storagedragon>
I was wondering about the print vs puts but I was trying to follow tutorial. lol
<Ellis>
ah that doesn’t work i tried it
colorisco has quit [Quit: colorisco]
<Ellis>
put it in a method maybe
ki0 has quit [Remote host closed the connection]
m8 has joined #ruby
<jhass>
storagedragon: print should be fine
colorisco has joined #ruby
<Ellis>
nvm that didn’t work
kadoppe has quit [Ping timeout: 248 seconds]
<jhass>
storagedragon: I think that site is crap, try locally
<storagedragon>
o.O <--- Very new. You really don't want ot have to explain all that to me. lol I gues really wondering if tut was bunk or I was just doing it wrong. lol
<jhass>
repl.it that is
adamholt has joined #ruby
baweaver has quit [Remote host closed the connection]
<storagedragon>
ah. Should I install the atom plugin to run locally or use irb then?
<jhass>
irb is fine
<jhass>
pry (pryrepl.org, gem install pry) is an even better irb
Hijiri has joined #ruby
kadoppe has joined #ruby
ki0 has joined #ruby
DexterLB has joined #ruby
<storagedragon>
Thank you very much. I appreciate all the help. Hopefully poort tuts don't kill it for me. lmao
Ellis has left #ruby [#ruby]
storagedragon is now known as stgdrgn|away
c355E3B has quit [Ping timeout: 272 seconds]
theberlin has joined #ruby
stgdrgn|away has quit [Quit: Leaving]
gr33n7007h has joined #ruby
quimrstorres has quit [Remote host closed the connection]
FF_ has quit [Quit: FF_]
User458764 has joined #ruby
delianides has quit [Remote host closed the connection]
Hounddog has quit [Ping timeout: 264 seconds]
jheg has joined #ruby
baroquebobcat has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
teddyp1cker has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
teddyp1cker has joined #ruby
Hijiri has joined #ruby
pengin has quit [Ping timeout: 255 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
Spami has joined #ruby
lavros has quit [Quit: leaving]
gr33n7007h has quit [Quit: WeeChat 1.1.1]
haxrbyte has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
Dreamer3 has quit [Quit: Leaving...]
<atmosx>
aloha
ghr has joined #ruby
fryguy9 has joined #ruby
fryguy9 has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
nfk|laptop has quit [Ping timeout: 252 seconds]
spyderman4g63 has quit [Remote host closed the connection]
ekaleido has quit [Quit: Leaving]
sigurding has joined #ruby
spyderman4g63 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimms has quit [Read error: Connection reset by peer]
jimms_ has joined #ruby
ghr has quit [Max SendQ exceeded]
Hijiri has quit [Quit: WeeChat 1.0.1]
ghr has joined #ruby
gr33n7007h has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk|laptop has joined #ruby
krz has joined #ruby
colorisco has quit [Quit: colorisco]
colorisco has joined #ruby
dmbennett has joined #ruby
riotjones has joined #ruby
yqt has joined #ruby
pengin has joined #ruby
tester007 has joined #ruby
jimms_ has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
HotTopic has joined #ruby
ping-pong has quit [Ping timeout: 272 seconds]
Soda has joined #ruby
iamjarvo has joined #ruby
patrick99e99 has quit [Read error: Connection reset by peer]
iamjarvo has quit [Max SendQ exceeded]
kyrylo_ has joined #ruby
ghr has joined #ruby
krisquigley has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
freerobby has joined #ruby
riotjones has quit [Ping timeout: 248 seconds]
HotTopic has left #ruby [#ruby]
bradleyprice has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 252 seconds]
gregf1 has quit [Quit: WeeChat 1.0.1]
Zai00 has joined #ruby
ghostpl_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
ghostpl_ has joined #ruby
lolmaus has joined #ruby
DavidDudson has joined #ruby
patrick99e99 has joined #ruby
pietr0 has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
iliketurtles has quit [Quit: zzzzz…..]
v0dro has quit [Quit: Leaving.]
Kricir has quit []
MatthewsFace has quit [Remote host closed the connection]
kyrylo__ has joined #ruby
DavidDudson has quit [Client Quit]
gfawcettpq has quit [Ping timeout: 272 seconds]
GaryOak_ has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
kyrylo_ has quit [Ping timeout: 250 seconds]
shadoi2 has joined #ruby
rbennacer has quit [Remote host closed the connection]
Zai00 has quit [Client Quit]
xcombelle has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
dpatel has joined #ruby
mrbond has quit [Ping timeout: 250 seconds]
shadoi1 has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
jenrzzz has joined #ruby
<mcpierce>
Hi, all. I have a question. I'm working on a Ruby extension and in the C code I tuck away an object in a Ruby Hash using a key created with rb_str_new.
ping-pong has joined #ruby
<mcpierce>
Later when I try to get that object back from the same hash (I've verified the hash has the object) using another call to rb_str_new I'm getting back Qnil.
matadoer has quit [Ping timeout: 248 seconds]
<mcpierce>
I've verified that both calls to rb_str_new are using the same string value (they're using the same char*) but I'm not getting my object back. What could I be doing wrong?
bradleyprice has joined #ruby
lanemeyer has quit [Ping timeout: 252 seconds]
gregf1 has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
ghr has quit [Ping timeout: 256 seconds]
rbennacer has joined #ruby
bim has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
stef204 has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
stef204 has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
sevvie has quit [Ping timeout: 244 seconds]
ki0 has quit []
naftilos76 has quit [Remote host closed the connection]
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
iliketurtles has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
<atmosx>
mcpierce: I'm no C expert, but if you share your code might be easier to spot something.
<atmosx>
mcpierce: e.g. a gist
ZJvandeWeg has quit [Quit: WeeChat 1.1.1]
spyderman4g63 has quit [Read error: Connection reset by peer]
<mcpierce>
The method "pni_rbdispatch" is called by library code and passed a struct with a char*, the same one used by pn_rbhandler to register a Ruby object.
matadoer has joined #ruby
<mcpierce>
lines 661-701
wallerdev has quit [Quit: wallerdev]
brb3 has quit [Quit: ZZZzzz…]
elaptics is now known as elaptics_away
yfeldblu_ has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
dmbennett has quit [Remote host closed the connection]
<atmosx>
mcpierce: nah, can't help. Try the mailing list.
<mcpierce>
atmosx: kk thanks anyway.
zarubin_ has joined #ruby
<mcpierce>
atmosx: I think it boils down to this: what does ::Hash use to find a key, ==, .eql? or .equal?
braincrash has joined #ruby
<eam>
mcpierce: uhm, where you construct your registry
<eam>
you're using rb_gv_get()
jenrzzz has quit [Ping timeout: 252 seconds]
<eam>
but you're not getting a global?
mjuszczak has joined #ruby
<eam>
that's probably your problem
<mcpierce>
eam: It's a global: $proton_registry is a global var.
<eam>
yes but you're not getting "$proton_registry", you're getting "proton_registry"
bradleyprice has quit [Remote host closed the connection]
<mcpierce>
eam: Inside of the app I can print the contents of $proton_global and I can see the object I stored from the C extension.
<eam>
so that's going to create a new registry every call
r3dking has quit [Quit: Konversation terminated!]
cefkamcau has quit [Ping timeout: 256 seconds]
<mcpierce>
eam: $ is optional in rb_gv_{get,set} according to the docs.
<mcpierce>
heftig: rb_str_new2 was giving us problems before.
quimrstorres has quit [Ping timeout: 264 seconds]
<mcpierce>
eam: From "Programming Ruby": Sets the global variable name (the $ prefix is optional) to value. Returns
<mcpierce>
value.
<mcpierce>
Sorry, for rb_gv_set
bMalum_ has joined #ruby
<mcpierce>
And it reads for rb_gv_get as well. This is the 2009 edition.
Rapier- has quit [Quit: (null)]
bMalum has quit [Ping timeout: 244 seconds]
bMalum_ is now known as bMalum
<mcpierce>
But I'll try making it consistent and see if that changes things.
DavidDudson has joined #ruby
nym has joined #ruby
<mcpierce>
atmosx: Thanks for the links. I'm aware of the differences between ==. eql? and equal? which is why I mention that. My issue is I'm not sure which (though I suspect equal?) is used by hash to find a key.
<eam>
mcpierce: hm interesting, I could've sworn I've seen otherwise
greenbagels has joined #ruby
<mcpierce>
eam: It's possible the book's not correct.
<mcpierce>
eam: Though re-reading my code, it's internally consistent and I did see the global var in my runtime so that's not it.
vyorkin has joined #ruby
<eam>
nah I'm sure you're right
<mcpierce>
I do think, though, that hash is likely using .equal? to test for keys and have verified that "foo".equal? "foo" returns false.
<mcpierce>
irb(main):001:0> "foo".equal? "foo"
<mcpierce>
=> false
OrbitalKitten has joined #ruby
mhib has quit [Quit: Leaving]
DeathCode has joined #ruby
brb3 has joined #ruby
sevvie has joined #ruby
<apeiros>
mcpierce: it uses eql?, not equal?
mjuszczak has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
DavidDudson has quit [Client Quit]
<apeiros>
== is order equality (iow, a == b when a <=> b # => 0), eql? is hash-key equality and equal? is identity (same object)
<mcpierce>
apeiros: Based on what I'm seeing,though, it's acting like it used .equal? in that the same string does not equal itself on lookup. Do you have a reference into the Ruby codebase?
stef204 has quit [Ping timeout: 246 seconds]
<apeiros>
mcpierce: you're misinterpreting what you see then.
<apeiros>
you can read the docs if you don't believe me.
<apeiros>
and if you don't believe the docs, you can read the source.
<mcpierce>
apeiros: It's possible (I'm misreading). And I don't disblieve you. :D
stef204 has joined #ruby
tomeara has quit [Read error: Connection reset by peer]
<apeiros>
from `ri Hash`: "See also Object#hash and Object#eql?"
DeathCode has left #ruby [#ruby]
<mcpierce>
apeiros: Do you have Matz's number in case I doubt the source code? :D
<apeiros>
from `ri Object#eql?`: "The eql? method returns true if obj and other refer to the same hash key."
<apeiros>
as for the source: left as an exercise to the reader :-p
mitchellhenke has joined #ruby
<apeiros>
if it used equal?, string lookups would not work.
<apeiros>
so no idea how you come to that conclusion.
<havenn>
mcpierce: Phone number: (03) 3834-5577
<mcpierce>
havenn: Ha.
<havenn>
mcpierce: Or... is that the Tokyo Metro Lost & Found? I guess you'll have to call it to see! :P
<mcpierce>
apeiros: Just based on what I'm seeing in my code. I'm nearly certain the rb_str_new is creating the same string value (it's using hte same char*) to fetch the value as it did to store it in the hash.
<apeiros>
explain that if Hash uses equal?
bim has joined #ruby
<atmosx>
mcpierce: Matz answers to +819022313381
<apeiros>
mcpierce: sure, if a string is equal?, it *necessarily* also is eql?
tenseiten is now known as seitensei
krz has quit [Quit: WeeChat 1.0.1]
<mcpierce>
apeiros: Whoa, dude, not challening you. Just saying based on what I'm seeing I thought it was working differently than expected. I'm certainly open to my being wrong in what I'm seeing/interpreting.
<apeiros>
the other way round is what's not true.
<atmosx>
havenn: at least I looked up for Japan's phonecall code :-P
<apeiros>
o0
<apeiros>
I don't feel challenged
startupality has joined #ruby
cyrus_mc has joined #ruby
<havenn>
atmosx: Wait, you're not calling from Japan?
<mcpierce>
apeiros: Okay, sorry. Just feeling like I said something inappropriate here to get flooded.
edwinvdgraaf has quit [Remote host closed the connection]
<heftig>
NaN wins again
startupality has quit [Client Quit]
<cyrus_mc>
Trying to compile ruby with SSL support on a RHEL 4.x system (as I need to run puppet on there). The version of openssl that comes with RHEL 4 appears to have an issue with the self signed certificate that puppet uses (gives a certificate signature failure error). Therefore I compiled the latest version of openssl. How can I instruct ruby to use this version of the library when building the SSL extension?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenn>
cyrus_mc: ./configure --with-opt-dir=
matadoer has quit [Ping timeout: 256 seconds]
<heftig>
hash seems to test object equality first before trying eql?
<apeiros>
heftig: makes sense. identity check is cheap.
<apeiros>
hash key equality check may be expensive
<cyrus_mc>
havenn: just to make sure I am doing this right, I initiially compiled ruby and installed, then went into ext/openssl; ruby extconf.rb; make; make install
ebbflowgo has quit [Read error: Connection reset by peer]
<eam>
>> a = b = "foo"; a.instance_eval { def eql?(x) false; end }; [a.equal?(b), a.eql?(b)]
<havenn>
cyrus_mc: it's `--with-opt-dir` that i'm accustomed to, but just confirmed that this seems to run: ./configure --with-openssl-dir="$(brew --prefix openssl)"
<eam>
(0.0).equal?(0.0) is true on my system
Cache_Money has joined #ruby
<eam>
why's it false in eval-in?
<hanmac>
apeiros: even more funny is that ruby does know about silent and non-quiet nan, but has no methods to check that
<hanmac>
eam: 32 vs 64 bit
jottr_ has quit [Ping timeout: 252 seconds]
<cyrus_mc>
havenn: and this configure was run in the main ruby source directory? And what version of Ruby
dmbennett has joined #ruby
dmbennett has quit [Remote host closed the connection]
<apeiros>
new flonums I guess
<heftig>
64-bit ruby has large enough values to make most floats immediate
<eam>
hanmac: why would that change an IEEE float behavior?
<apeiros>
equal? isn't part of IEEE
zenith_ has quit [Ping timeout: 255 seconds]
<apeiros>
== is
<eam>
integer width ought to be irrelevant
<havenn>
cyrus_mc: yeah, root dir. latest head.
<hanmac>
eam because Flonum only works with 64bit
yfeldblum has joined #ruby
<apeiros>
eam: ruby inlines the actual value of some objects into the C VALUE
<heftig>
eam: it's pointer width that matters
<hanmac>
and yeah i also voted for that negative zero gets fixed object id too, but it doesnt get implmented yet
<eam>
aah
chinmay_dd has quit [Ping timeout: 272 seconds]
<eam>
well that's super weird
<havenn>
cyrus_mc: What version of Ruby are you building?
pengin has joined #ruby
<cyrus_mc>
1.8.7-p358
Jackneill has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
bim has joined #ruby
bim has quit [Read error: Connection reset by peer]
bim has joined #ruby
wildroman2 has quit [Remote host closed the connection]
palms has joined #ruby
wildroman2 has joined #ruby
shazaum has joined #ruby
sevvie has joined #ruby
djbkd has quit [Remote host closed the connection]
<cyrus_mc>
havenn: that config option works in 2.2.1.. but not prior
<jhass>
yay for actually supported Ruby versions \o/
jefus_ is now known as jefus
GnuYawk has joined #ruby
<apeiros>
yay for ruby versions you don't have to exhume from their well deserved grave
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
you forgot the "\o/"
<apeiros>
\o/\o/\o/
shadoi2 has quit [Quit: Leaving.]
* apeiros
watches an episode of it crowd again
<apeiros>
forgot how brilliant those were :D
<havenn>
ruby 2.3.0dev successfully built against OpenSSL 1.0.2a \o/
existensil has joined #ruby
kyrylo_ has joined #ruby
<jhass>
anything exciting 2.3 will bring?
DavidDudson has joined #ruby
<kaleido>
code that writes itself
<kaleido>
!!!
n80 has quit [Quit: n80]
<apeiros>
Net::Neural
DavidDudson has quit [Remote host closed the connection]
<havenn>
acl777: I do really use zsh but I don't care for oh-my-zsh.
<shevy>
cool
devoldmx_ has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy>
if I understand it correctly, it tries to rework the pipe concept right?
xcombelle has quit [Remote host closed the connection]
MatthewsFace has quit [Ping timeout: 244 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
baroquebobcat has joined #ruby
MatthewsFace has joined #ruby
<shevy>
matz did not comment on it
<shevy>
he has no time to read all issues!
jheg has quit [Quit: jheg]
<havenn>
acl777: I ran into oh-my-zsh bugs and was disappointed when I actually looked at the plugins. I mostly like their ideas for prompts. It's easy to setopts yourself, and zsh even helps you pick em.
Darryl___ has quit [Quit: Connection closed for inactivity]
yh has joined #ruby
juanpaucar has joined #ruby
<acl777>
havenn: yeah, i'll have to get off oh-my-zsh one day...
milesmatthias has quit [Remote host closed the connection]
CorySimmons has joined #ruby
milesmatthias has joined #ruby
<havenn>
acl777: I think it's worth ditching when you have a chance to manually configure it the way you like it. :)
baweaver has joined #ruby
<acl777>
havenn: true. i just went with oh-my-zsh since i wanted all the pretty themes... :-)
cyrus_mc has quit [Quit: Page closed]
Guest57834 has quit [Max SendQ exceeded]
zarubin_ has quit [Remote host closed the connection]
znst has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
quimrstorres has joined #ruby
palms has joined #ruby
icedp has joined #ruby
mjuszczak has quit []
agarie has quit [Remote host closed the connection]
GnuYawk has quit [Quit: WeeChat 1.0]
baweaver has quit [Remote host closed the connection]
LudicrousMango has quit []
_hollywood has quit [Quit: Leaving]
startupality has joined #ruby
milesmatthias has quit [Ping timeout: 256 seconds]
quimrstorres has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
mjuszczak has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
e_w has joined #ruby
agarie has joined #ruby
rbennace_ has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: zzzzz…..]
djbkd has joined #ruby
adriancb has quit [Remote host closed the connection]
teddyp1cker has quit []
adriancb has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
e_w has quit [Quit: Bye]
jheg has joined #ruby
diego__ has joined #ruby
diego__ has quit [Changing host]
diego__ has joined #ruby
iliketurtles has joined #ruby
djbkd has quit [Ping timeout: 252 seconds]
<shevy>
hmm anyone knows if there is a ruby library that allows one to download a .swf file? in the html code, there is src="player.swf". problem is, the site is authenticated... hmm
sevvie has joined #ruby
<shevy>
I can watch it in the browser just fine though
diegoviola has quit [Ping timeout: 252 seconds]
<jhass>
mechanize?
zarubin_ has joined #ruby
<shevy>
hmm
lioninawhat has quit [Remote host closed the connection]
<jhass>
or plain faraday + faraday-cookiejar I guess
a5i has quit [Quit: Connection closed for inactivity]
lanemeyer has joined #ruby
DigitallyBorn has quit [Quit: leaving]
<jhass>
or even just doing the cookie handling yourself
einarj has joined #ruby
shazaum has quit [Quit: Leaving]
yh has quit [Ping timeout: 272 seconds]
kaleido has quit [Ping timeout: 256 seconds]
diego__ has quit [Read error: Connection reset by peer]
<adaedra>
go lower and use curb.
<wasamasa>
kick reason to the curb
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<colorisco>
what means such regex "(.+?)"?
baweaver has joined #ruby
yh has joined #ruby
<wasamasa>
group a non-greedy match of at least one character
rodfersou has quit [Quit: leaving]
momomomomo has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
tier_ has quit [Ping timeout: 244 seconds]
ebbflowgo has joined #ruby
jottr_ has quit [Ping timeout: 256 seconds]
riotjones has joined #ruby
delianides has quit [Remote host closed the connection]
havenn is now known as havenwood
kaspernj has quit [Remote host closed the connection]
jottr_ has joined #ruby
Axy has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
_honning_ has joined #ruby
symbol has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Affix has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
Affix is now known as Guest32166
lioninawhat has joined #ruby
krisquigley has joined #ruby
kyrylo_ is now known as kyrylo
silkfox has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 245 seconds]
<rbennace_>
colorisco: where did you find that?
enebo has quit [Quit: enebo]
relix has joined #ruby
<rbennace_>
colorisco: i literally had to use it 2 hours ago
Soda has quit [Remote host closed the connection]
<rbennace_>
heeh
Guest32166 is now known as Affix
Lewix has quit [Remote host closed the connection]
Affix has quit [Changing host]
Affix has joined #ruby
einarj has quit [Read error: Connection reset by peer]
Limix has joined #ruby
einarj has joined #ruby
brb3 has quit [Quit: <.<]
wildroman2 has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
<jhass>
there's no such thing as a "class constant", just constants. And relating them to instances doesn't make much sense, but I guess the answer is yes
davispuh has joined #ruby
DrShoggoth has joined #ruby
senayar has quit []
<apeiros>
chupacabra_: constants are lexically scoped, not by object
Zai00 has quit [Quit: Zai00]
kirun has quit [Quit: Client exiting]
<chupacabra_>
apeiros: ok thank you
gluten_hell_ has joined #ruby
lennae has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
Crazy_Atheist has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
lennae has joined #ruby
mjuszczak has joined #ruby
kaleido has joined #ruby
albedoa has joined #ruby
_honning_ has joined #ruby
antlong has quit []
riotjones has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
iasoon has quit [Ping timeout: 264 seconds]
Limix has joined #ruby
krisquigley has joined #ruby
Rephiax has joined #ruby
chupacabra_ has quit [Quit: Page closed]
riotjones has quit [Ping timeout: 248 seconds]
milesmatthias has quit [Remote host closed the connection]
<phroa>
is there any reasoning or is it just a result of different people writing the code?
MasterPiece has quit [Read error: Connection reset by peer]
<phroa>
(wondering if maybe there's a speed increase with one of those methods or something)
<Radar>
phroa: Different people
graydot has joined #ruby
<phroa>
okay, thanks :P
<phroa>
any personal recommendation of which to use? (or even (?i), who knows)
mjuszczak has quit []
dfinninger has joined #ruby
startupality has quit [Quit: startupality]
nobitanobi has quit []
duncannz has joined #ruby
freerobby has joined #ruby
duncannz has quit [Max SendQ exceeded]
<havenwood>
phroa: /[[:alpha:]]/
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<jhass>
mh, I think I'd use /i for when I really don't care about the case, like if I later normalize it and I explicitly list if I want to match both cases but handle them differently in the code
glenab has quit [Remote host closed the connection]