soulcake has quit [Read error: Connection reset by peer]
<selite>
And ruby is the most beautiful thing ive seen.
<wallerdev>
lol
<wallerdev>
eval is fine
marcdel has quit [Ping timeout: 258 seconds]
<benzrf>
n-no
SilkFox has quit [Ping timeout: 252 seconds]
<benzrf>
never ever use eval except for toys
soulcake has joined #ruby
<wallerdev>
if you dont want to use eval, then id suggest returning a different format like json
<wallerdev>
and using JSON.parse
<selite>
wallerdev: That's not in my control.
<selite>
OK thanks guys.
pwh has quit []
selite has quit [Quit: Page closed]
<shevy>
if you can guarantee that eval() can't be abused in that context then it is ok to eval
pwh has joined #ruby
jamto11 has quit [Remote host closed the connection]
vpretzel_gone has quit [Ping timeout: 258 seconds]
marcdel has joined #ruby
kitak has joined #ruby
<benzrf>
yes but guarantees are tricky
fuhgeddaboudit has quit [Ping timeout: 276 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jasonwebster has quit [Quit: Computer has gone to sleep.]
afreidah1 has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
iateadonut has quit [Max SendQ exceeded]
stopbit has quit [Quit: Quitting.]
danshultz has quit [Remote host closed the connection]
zchrykng-work_ has quit [Quit: Leaving]
iateadonut has joined #ruby
danshultz has joined #ruby
<shevy>
I guarantee that when I meet benzrf I will give him a wedgie
iateadonut has quit [Max SendQ exceeded]
marcdel has quit []
sincereness has joined #ruby
<sincereness>
ello
<sincereness>
if im scraping links off a page and i want mechanize to click the link and determine if there is a download button whats the best way to go about this
Doppp has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
<sincereness>
like whats the best way to determine if a webpage contains an element
jrhe has joined #ruby
amclain has joined #ruby
Hobogrammer has joined #ruby
Lightning has joined #ruby
Lightning has left #ruby ["Leaving"]
<wallerdev>
look for buttons that have the text download on them? its more of an AI problem you're asking
<wallerdev>
lots of different ways to make a download button unless you're targeting a specific site
earth has joined #ruby
danshultz has quit [Ping timeout: 250 seconds]
mrsolo has joined #ruby
lw has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
Lightning has joined #ruby
SilkFox has joined #ruby
Hobogrammer has quit [Ping timeout: 276 seconds]
absolutezeroff has joined #ruby
Lightning has left #ruby ["Leaving"]
soulcake has joined #ruby
Nukepuppy has joined #ruby
CaptainJet has quit []
<dorei>
sincereness: you can use nokogiri and xpath queries
<dorei>
be warned though that xpath is a little bit peculiar
<sincereness>
ok so assuming I have the links I want how would I click each link and then determine if THAT resulting page contains an element
<sincereness>
would i page.links.click ....
lw has quit [Client Quit]
<sincereness>
in some conditional?
<dorei>
well, if u actually want to emulate the "clicking" it might be better to try capybara with phantom_js (via capybara's poltegeist driver)
<shevy>
poltergeist???
gregf has quit [Quit: WeeChat 0.4.3]
Solnse has quit [Ping timeout: 250 seconds]
<sincereness>
adding another gem seems a little more than i want to get into
sdouglas has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
[[genji]] has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
slawrence00 has joined #ruby
wallerdev has joined #ruby
m0s^away is now known as m0s
ephemerian has quit [Quit: Leaving.]
kayloos has joined #ruby
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
lw has joined #ruby
rmillerx has joined #ruby
rmillerx has quit [Client Quit]
rmillerx has joined #ruby
kayloos has quit [Ping timeout: 250 seconds]
emaxi has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
markisonfire is now known as holmes
mrsolo has joined #ruby
holmes is now known as markisonfire
thomasxie has joined #ruby
ddv has joined #ruby
reset has quit [Quit: Leaving...]
andy__ has joined #ruby
ghr has joined #ruby
sambao21 has joined #ruby
<wallerdev>
hope you all have a great weekend
Wolland has joined #ruby
SatansDeer has joined #ruby
iateadonut has joined #ruby
george2 has joined #ruby
iateadonut has quit [Max SendQ exceeded]
linojon has quit [Quit: linojon]
ghr has quit [Ping timeout: 276 seconds]
iateadonut has joined #ruby
iateadonut has quit [Max SendQ exceeded]
<combusean>
bye wallerdev
Cache_Money has quit [Quit: Cache_Money]
<combusean>
mysteriously, deploys stop working ...
<bricker`LA>
combusean: it's the Friday curse
mrsolo has quit [Quit: This computer has gone to sleep]
mattmcclure has quit [Quit: Connection closed for inactivity]
pu22l3r has quit [Remote host closed the connection]
rakm has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
markisonfire has quit [Quit: markisonfire]
marcdel has joined #ruby
rurban_ has quit [Ping timeout: 240 seconds]
rurban_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
<combusean>
bricker`LA, it seems one of those things where i'm not sure how it worked before :P
tjr9898 has quit [Remote host closed the connection]
dima_ has joined #ruby
rmillerx has quit [Quit: rmillerx]
SatansDeer has quit [Quit: Leaving.]
<shevy>
games games games
Deele has quit [Ping timeout: 255 seconds]
dima_ has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
iateadonut has joined #ruby
iateadonut has quit [Max SendQ exceeded]
iateadonut has joined #ruby
iateadonut has quit [Max SendQ exceeded]
Milly_Bays has joined #ruby
<shevy>
anyone of you using apache multiviews?
iateadonut has joined #ruby
sincereness has quit [Ping timeout: 240 seconds]
iateadonut has quit [Max SendQ exceeded]
camilasan has quit [Ping timeout: 250 seconds]
iateadonut has joined #ruby
SatansDeer has joined #ruby
ukd1 has quit [Quit: Leaving...]
<snkcld>
any other chruby users in here?
not_satoshi_101 has left #ruby [#ruby]
<snkcld>
when i do "cd" in my zsh script, it doesnt change to the new ruby version specified
<snkcld>
when i do it manually it works fine, but cding in a zsh script doesnt change the ruby version
<postmodern>
snkcld, probably because zsh's preexec_functions do not work within scripts
jeregrine has quit [Quit: Connection closed for inactivity]
<snkcld>
postmodern: i see
blackavr has joined #ruby
zcreative has joined #ruby
<snkcld>
postmodern: so.... should i find another way to get to the specified ruby?
<postmodern>
snkcld, you could try adding #!/usr/bin/zsh -l to the script
niharvey has quit [Ping timeout: 252 seconds]
<snkcld>
id like for my script to work for ppl not using chruby, eg ppl using rvm, so id rather not do anything that is "ruby version manager specific"
<snkcld>
ah, -l ?
<snkcld>
ok
<postmodern>
snkcld, this will run the script in an interactive shell, so preexec_functions should be populated
<snkcld>
OH
cgore has joined #ruby
<snkcld>
so my problem is that my script isnt 'interactive'
<snkcld>
ok
<postmodern>
snkcld, because scripts normally run in non-interactive shells that do not load any of the shells config files
radic has quit [Disconnected by services]
<snkcld>
so interactive vs non-interactive means not running preexec functions, amongst other things i imagine
radic_ has joined #ruby
<snkcld>
ohhhhhh
<snkcld>
not even bashrc, zshrc, etc?
crystal77 has joined #ruby
<snkcld>
ok i remember hearing this
<snkcld>
now, what if my user isnt using zsh?
<snkcld>
heck, what if there shell isnt at a specific place?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 258 seconds]
[[genji]] has quit []
reset has joined #ruby
<zcreative>
Anybody ever done resumable uploads?
jeregrine has joined #ruby
reset has quit [Client Quit]
SatansDeer has quit [Quit: Leaving.]
<centrx>
zcreative, Isn't it just some kind of HTTP header?
<zcreative>
Sort of. There is a special server back end too.
ukd1 has joined #ruby
vpretzel_gone has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Celm has quit [Ping timeout: 258 seconds]
iliketurtles has joined #ruby
sepp2k has quit [Quit: Leaving.]
anshin has quit [Ping timeout: 276 seconds]
james_d_h has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
stopbit has joined #ruby
yfeldblum has joined #ruby
skkeeper has quit [Ping timeout: 265 seconds]
skkeeper has joined #ruby
nateberkopec has joined #ruby
wallerdev has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Celm has joined #ruby
Domon has joined #ruby
einarj has joined #ruby
nisstyre has joined #ruby
SCommette has quit [Quit: SCommette]
anshin has joined #ruby
baroquebobcat has joined #ruby
sdouglas has joined #ruby
ukd1 has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
glide has joined #ruby
einarj has quit [Ping timeout: 258 seconds]
Martxel_ has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
mrmargolis has joined #ruby
Martxel has quit [Ping timeout: 258 seconds]
glide has quit [Client Quit]
Solnse has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
cgore has quit [Remote host closed the connection]
glanzi has quit [Remote host closed the connection]
agjacome has quit [Ping timeout: 258 seconds]
Solnse has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
<benzrf>
whoa wtf
<benzrf>
matz is mormon i did not know this o-O
yfeldblum has quit [Remote host closed the connection]
kevinfagan has quit [Ping timeout: 255 seconds]
timmow has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
jamto11 has joined #ruby
jrdnull has quit [Ping timeout: 246 seconds]
KevinSjoberg has quit [Ping timeout: 252 seconds]
<shevy>
well
<shevy>
the japanese are freaky
<shevy>
just watch youtube pranks of japanese
browndawg has quit [Ping timeout: 240 seconds]
<shevy>
they also have ninja and samurai and anime
mhenrixon has quit [Ping timeout: 252 seconds]
SCommette has quit [Client Quit]
Slavox is now known as Slavox|AFK
senayar_ has joined #ruby
vadviktor has quit [Quit: No Ping reply in 180 seconds.]
vadviktor has joined #ruby
Sirupsen has joined #ruby
<benzrf>
shevy: i sent those chats to my friend who is a weeb
<benzrf>
he sez:
<benzrf>
10:41 <ruukasu> what a racist
kevinfagan has joined #ruby
<shevy>
where is that dude
<shevy>
why is he not using ruby
<shevy>
benzrf is your brother learning ruby?
KevinSjoberg has joined #ruby
<benzrf>
no i am learning him a python
mhenrixon has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
jrdnull has joined #ruby
deric_skibotn has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
davedev24 has quit []
timmow has joined #ruby
senayar has quit [Ping timeout: 250 seconds]
mr_snowf1ake has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
james_d_h has quit [Quit: Lost terminal]
freerobby has joined #ruby
coderhs has joined #ruby
pdtpatrick has joined #ruby
<shevy>
:(
freerobby has quit [Read error: Connection reset by peer]
Slavox|AFK is now known as Slavox
meatherly has joined #ruby
fgo has joined #ruby
<combusean>
what's wrong with python shevy?
rezzack has quit [Quit: Leaving.]
<gry>
As I asked earlier I have this issue http://askubuntu.com/questions/81939/foreman-command-not-found after gem install foreman. It apparently didn't adjust my path, nor does `rbenv rehash`. How can I fix this please, I don't even know where the binaries live. Thanks.
<gry>
.
meatherly has quit [Remote host closed the connection]
<chenillen>
that’s weird. i’ve been using passenger for a while. touching works effectively for my project. the only reason i gave up it was it need a long time to first load after restarting
tharindu has quit [Client Quit]
mrmargolis has quit [Remote host closed the connection]
<combusean>
yeah, chenillen whats your solution for long load time?
SilkFox has joined #ruby
<combusean>
cause that's a problem with our app now
<chenillen>
swtiching to unicorn combusean
<combusean>
also killing connections when we deploy
<centrx>
that's the underlying C code that determines whether to return nil
<centrx>
and what to do with offsets like -1
<Hytosys>
centrx: where’s the C code that returns []?
<pontiki>
combusean: you can join railscasts for $9. right now, it's just a one-time fee, all-you-can-eat, if/until Ryan decides to start making them again
chasingcakes has quit [Remote host closed the connection]
<combusean>
oh, i just payed for it monthly
<combusean>
within the last 5 minutes
<centrx>
Hytosys, If you search for a Ruby function name one of the top results will be whitequarks MRI code searching thing
<pontiki>
it says it's monthly, but if you read further, it's only being charged once
<Hytosys>
I wonder if it’s a meaningful implementation that a blank array gets returned though… if that’s what you’re asking
<combusean>
Hytosys, i'm not centrx
<Hytosys>
oops thanks, I meant zorak anyway…
<combusean>
oh
<combusean>
haha
<Hytosys>
it seems like autocomplete tabbing does more harm than good
* combusean
wishes he had more pepperoncinis to eat
<Hytosys>
how do you feel about pepperoni and pepperoncini pizza?
<combusean>
i get supreme pizza from papa john's and eat the pepperoncini that comes with it
<pipework>
Hytosys: Only if you aren't paying attention.
BHensley has joined #ruby
<Hytosys>
I purposely order pepperoni and pepperoncini pizza… such a combo a flavors
<combusean>
i'm one of those supreme/everything on it types of people
<combusean>
the subway club cause it has all the meats
<Hytosys>
I can dig it
crucify_me has joined #ruby
funburn has quit [Quit: funburn]
vpretzel_gone has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<pipework>
I either need to catch a cab or walk to get near any fast food that isn't Chipotle, which I don't like. So my fast food consumption is embarrassingly low. :(
<crucify_me>
hi I'm in a pry session, inside an 'order' instance : [1] pry(#<Order>)> cd .. trying to cd out of the instance and it won't let me. any clues?
* combusean
blinks
<Hytosys>
no such thing >embarrassingly low consumption of fast food
<combusean>
cd .. is a bash command crucify_me
<combusean>
s/bash/shell/
<combusean>
or bash
<combusean>
...
<pontiki>
pipework: what sort of slow food are you eating, then?
chenillen has quit [Quit: chenillen]
<crucify_me>
combusean: but its how you navigate in pry right?
<combusean>
no
<combusean>
run help
<combusean>
there's commands like continue and next and shit like that
<combusean>
or just
<combusean>
help
<crucify_me>
thanks k combusean
<combusean>
np
<pipework>
pontiki: American, because at least I can catch it that way. :(
queequeg1 has joined #ruby
<pontiki>
hmmm
<pontiki>
i resemble that remark
BHensley has quit [Remote host closed the connection]
gancl has quit [Ping timeout: 258 seconds]
joonty has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cya]
tjr9898_ has quit []
<crucify_me>
combusean: so I can move into a new scope but can't move out of it?
queequeg1 is now known as queequeg
rkazak has joined #ruby
zcreative has quit [Quit: Computer has gone to sleep.]
iateadonut has left #ruby [#ruby]
Zespre has quit [Quit: leaving]
northfurr has joined #ruby
<combusean>
crucify_me, try next or finish
slarv has joined #ruby
<pontiki>
crucify_me: after you cd into a scope, you quit to get back up
kitak has quit [Remote host closed the connection]
funburn has joined #ruby
queequeg is now known as queequeg1
<pontiki>
you can also just do cd ..
Cache_Money has joined #ruby
<crucify_me>
pontiki: combusean thanks I was trying to use cd .. but it doesn't budge.
kitak has joined #ruby
<pontiki>
"cd .." -- the .. is essential
<crucify_me>
yeah that's what I thought was right pontiki
Zespre has joined #ruby
<pontiki>
try quit then
<pontiki>
hmm
<pontiki>
brb
pontiki has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Fire-Dragon-DoL has joined #ruby
slarv has quit [Client Quit]
[[genji]] has joined #ruby
slarv has joined #ruby
pontiki has joined #ruby
kitak has quit [Remote host closed the connection]
_justin has joined #ruby
crucify_me has quit [Remote host closed the connection]
<pontiki>
re
funburn has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: rkazak]
funburn has joined #ruby
CaptainJet has joined #ruby
rkazak has joined #ruby
[[genji]] has quit []
sdouglas has joined #ruby
mary5030 has joined #ruby
chenillen has joined #ruby
rkazak has left #ruby [#ruby]
_justin has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
earth has quit [Quit: earth]
mynyml has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
kitak has joined #ruby
rh1n0 has joined #ruby
browndawg1 has left #ruby [#ruby]
BHensley has joined #ruby
marcdel has quit []
kayloos has joined #ruby
BHensley_ has joined #ruby
havenwood has joined #ruby
chenillen has quit [Quit: chenillen]
dima_ has joined #ruby
t_p has joined #ruby
IceDragon has quit [Read error: Connection reset by peer]
BHensley has quit [Ping timeout: 276 seconds]
kayloos has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Remote host closed the connection]
Doppp has joined #ruby
jarray52 has joined #ruby
jacky has quit [Excess Flood]
dima_ has quit [Ping timeout: 240 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has joined #ruby
jackyalcine has joined #ruby
pwh has quit []
funktor has quit [Remote host closed the connection]
ghr has joined #ruby
lw has quit [Quit: s]
rh1n0 has quit [Quit: Hopefully you don't see this...]
et09 has joined #ruby
<et09>
i have a string which includes "\x92s"
m104 has joined #ruby
<et09>
which is a '
<et09>
how do i make these conversions safely and programmatically?
tectonic has joined #ruby
_justin has quit [Quit: _justin]
kitak has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toretore has quit [Quit: Leaving]
Hobogrammer has joined #ruby
chenillen has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
shack has left #ruby [#ruby]
kitak has quit [Remote host closed the connection]
zeroXten has joined #ruby
kitak has joined #ruby
kobain has quit [Ping timeout: 276 seconds]
fabrice31 has joined #ruby
<zeroXten>
hi all. I've got got 4 unit tests i need to run in slightly different contexts quite a few times. What is the correct approach to keeping it DRY? thanks
kobain has joined #ruby
<pontiki>
how are the contexts defined?
<pontiki>
if you can define the contexts simply enough, such as make them an array, you can just loop through the array
rhys has quit [Ping timeout: 264 seconds]
<pontiki>
oh, wait, is this is rspec?
<zeroXten>
pontiki: it's testing different api calls
<zeroXten>
so many of them have some parameters in common
aspires has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: Leaving]
SatansDeer has joined #ruby
<pontiki>
i guess i'm not seeing what the issue it in that?
<zeroXten>
well, i need to test an id parameter for a whole different bunch of calls (sinatra). I could copy paste the test function changing the get url slightly each time, but there must be a cleaner way
<pontiki>
ultimately, it's just ruby, so you can do whatever you'd need to keep things DRY
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
<shock_one>
join /#rubyonrails
morenoh152 has quit [Ping timeout: 258 seconds]
carraroj has quit [Ping timeout: 258 seconds]
jackneill has joined #ruby
jackneill has joined #ruby
<shock_one>
In the RoR channel there are not so many people, so I'll ask here, if you don't mind. I'm experiencing a strange behavior after upgrading to rails 4.1: my string is encoded incorrectly. Look at this: https://dl.dropboxusercontent.com/u/608214/scrn/1397296181.png . Any ideas what it can be?
senayar has joined #ruby
makara has joined #ruby
<Nilium>
What encoding is it and what encoding is it supposed to be?
<shock_one>
I suppose it's utf-8. But there are no special characters, I belies $ is included in ascii.
<Nilium>
Ok, instead of saying suppose, go see what encoding the string says it is.
<shock_one>
Nope, it/s ASCII-8BIT.
makara has quit [Read error: Connection reset by peer]
<shock_one>
There is another key, which is set to number 2, and it returns "\x04\bi\x06"
<Nilium>
What's your Encoding.default_internal/external?
<Nilium>
Former should be nil, latter should presumably be UTF-8.
<shock_one>
Both UTF_8.
Nukepuppy has joined #ruby
<Nilium>
Does Setting.defaults store stuff in a DB or something where it would be transcoded and end up with a different encoding upon reading?
<Nilium>
I don't use Rails, so I'm just suggesting you look at where things could go wrong at this point.
<jhass>
well, then it's clearly the cache messing things up
<shock_one>
Yes, most likely. Thank you very much.
dyoko has quit [Ping timeout: 240 seconds]
mrjensen has quit [Remote host closed the connection]
Milly_Bays has joined #ruby
chenillen has joined #ruby
obs has quit [Remote host closed the connection]
tharindu has joined #ruby
mostlybadfly has joined #ruby
dorei has joined #ruby
browndawg has joined #ruby
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
fusillicode has joined #ruby
senayar has quit [Remote host closed the connection]
<fusillicode>
hi guys :)
fusillicode has left #ruby [#ruby]
yacks has joined #ruby
rm_ has joined #ruby
postmodern has quit [Quit: Leaving]
senayar_ has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
_justin has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
funburn has joined #ruby
Doppp has joined #ruby
Mon_Ouie has joined #ruby
JacobHayes has joined #ruby
_justin has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
Doppp has quit [Ping timeout: 258 seconds]
m0s^away is now known as m0s
indiche has joined #ruby
Deele has joined #ruby
jasonwebster has joined #ruby
Rix has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 250 seconds]
YamakasY has joined #ruby
Xeago has joined #ruby
indiche has quit [Quit: WeeChat 0.4.3]
obs has joined #ruby
Loaft has quit [Remote host closed the connection]
jasonwebster has quit [Ping timeout: 250 seconds]
klaut has quit [Remote host closed the connection]
rainmanjam has quit [Remote host closed the connection]
chenillen has quit [Quit: chenillen]
dima_ has joined #ruby
_justin has joined #ruby
Xeago has quit [Remote host closed the connection]
<hackeron_>
hey, I'm getting the rubocop error "Use Kernel#loop with break rather than begin/end/until or begin/end/while for post-loop tests." but I don't understand the benefits? - Can someone please explain this to me? < http://pastie.org/9074893
Domon has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
Xeago has joined #ruby
evenix has joined #ruby
hackeron_ is now known as hackeron
hackeron has quit [Changing host]
hackeron has joined #ruby
Martxel has joined #ruby
dima_ has quit [Ping timeout: 240 seconds]
donnoc has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 252 seconds]
_justin has quit [Quit: _justin]
obs has quit [Quit: Konversation terminated!]
<shevy>
Hanmac did not see that but then again I am clueless about git
<Hanmac>
PS: this are fake man pages ;P
browndawg has quit [Quit: Leaving.]
dyoko has joined #ruby
Martxel has quit [Quit: Leaving]
Martxel has joined #ruby
Waheedi has joined #ruby
Speed has joined #ruby
m0s is now known as m0s^away
YamakasY has quit [Quit: The best revenge is massive success...]
tharindu has quit [Quit: Leaving...]
agjacome has joined #ruby
dut has joined #ruby
<shevy>
I wouldn't be able to tell the difference
coderhs has quit [Remote host closed the connection]
Martxel has quit [Quit: Leaving]
<Hanmac>
i think thats the joke on it
maximski has joined #ruby
<apeiros>
hackeron: ugh, rubocop author should be spanked for that suggestion
<apeiros>
break in a loop…
<apeiros>
hackeron: I strongly disagree with rubocop.
<apeiros>
hackeron: also, don't cross-post without stating in each channel that you are cross-posting.
Martxel has joined #ruby
fabrice31 has joined #ruby
maximski has quit [Ping timeout: 252 seconds]
arianit has joined #ruby
<Mon_Ouie>
hackeron: Probably because begin … end while … does not follow the normal rule for postfix-while (since the expression is always run at least once).
sambao21 has quit [Quit: Computer has gone to sleep.]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
jamto11 has joined #ruby
nouitfvf has joined #ruby
etqqkoiflwhb has joined #ruby
ferr has joined #ruby
sambao21 has joined #ruby
Doppp has quit [Ping timeout: 258 seconds]
evenix has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
badhatter has joined #ruby
evenix has joined #ruby
vpretzel_gone has quit [Quit: Adios!]
jamto11 has quit [Ping timeout: 240 seconds]
Stalkr_ has joined #ruby
rankine_ has joined #ruby
bennylope has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has joined #ruby
JBreit has left #ruby [#ruby]
evenix has quit [Ping timeout: 240 seconds]
<lagweezle>
I feel like I'm missing something.
ashp has joined #ruby
<lagweezle>
Is this a variant of "x = 4; // random as determined by die roll" ?
toastynerd has quit [Remote host closed the connection]
<ashp>
I'm after some advice - what's the generally accepted best http/rest gem for writing a client that uses rest, as well as the best mocking framework for being able to write tests
<DouweM>
lagweezle: variant of, but different, because the salt *should* stay the same, right? :/
rankine has quit [Disconnected by services]
donnoc has joined #ruby
<ashp>
so far I'm leaning towards rest-client or httpclient and then trying to decide between webmock/vcr
<lagweezle>
My understanding is that it should not, DouweM.
<DouweM>
I guess the point is that the salt is the same for every instance of that framework, which would be stupid
<lagweezle>
Ah!
<DouweM>
lagweezle: this looks like an application-wide salt used on every password, which should not be rand()'d at runtime
* lagweezle
snickers as he finds the bug that even includes a graphic from XKCD.
Guedes0 has quit [Ping timeout: 258 seconds]
<DouweM>
lagweezle: the problem is though that it's become a framework-wide salt rather than secret and application-wide
rankine_ is now known as rankine
<lagweezle>
salt = magic.that.reads.salt.from.config.file() <-- win
<lagweezle>
It's been a long time since I've cared about crypto, and it definitely shows. ^^;
<DouweM>
Hehe
sambao21 has quit [Quit: Computer has gone to sleep.]
<DouweM>
lagweezle: well, right now it's a app-wide salt which is fine and makes dictionary attack harder, but yeah, they should probably have a salt per account
<DouweM>
lagweezle: this isn't as big a misunderstanding as stated though
mehlah has quit [Quit: Leaving...]
<DouweM>
from what I understand of salting, anyway
<DouweM>
in the sense that the problem is that it's framework-wide and out of the open. it being fixed for every account isn't that big a deal, as long as it's secret and per-app. having a salt per account would be even better, but salt and pepper (app-wide) are often used in conjunction
donnoc has quit [Ping timeout: 252 seconds]
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
<lagweezle>
And now my brain goes on a completely unrelated tangent, wondering if a photo store is open early enough to go get a new CF card for my camera at a reasonable price (hah?). Hooray for 'needing' UDMA 7 or better.
<lagweezle>
DouweM: That sounds about dead on. :)
<lagweezle>
... pepper?
<DouweM>
yeah, pepper is sometimes used for "per-app salt" as opposed to "per-user salt"
senayar has quit [Remote host closed the connection]
<DouweM>
same principle though
<lagweezle>
Cute. :)
claymore has joined #ruby
etqqkoiflwhb_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
fabrice31 has joined #ruby
zcreative has joined #ruby
kayloos has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 276 seconds]
eka has joined #ruby
red234324 has joined #ruby
<shevy>
cooks need to understand when to use salt and when to use pepper
lioninawhat has joined #ruby
senayar has joined #ruby
<ashp>
hmm, maybe faraday/webmock/vcr makes sense for this REST stuff
mehlah has joined #ruby
donnoc has joined #ruby
<lagweezle>
shevy: and when to use liquid nitrogen
banister has joined #ruby
<shevy>
hey don't ask me!
<shevy>
ask timguither
freerobby has joined #ruby
<shevy>
*timgauthier
<shevy>
difficult names
<shevy>
I like short names
<shevy>
or funny names
<lagweezle>
wombat
<shevy>
like lagweasel
Dr3amc0d3r is now known as Dr3amc0d3r|away
alexju has joined #ruby
earth has joined #ruby
donnoc has quit [Ping timeout: 276 seconds]
SilkFox has joined #ruby
mr_snowf1ake has joined #ruby
kobain has joined #ruby
bricker`LA has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
donnoc has joined #ruby
<lagweezle>
woo
* lagweezle
sighs
LadyRainicorn has joined #ruby
<lagweezle>
welp, off to go deal with dumb family decisions *rolls eyes*
lolmaus has joined #ruby
SilkFox has quit [Ping timeout: 246 seconds]
jorts has quit [Quit: jorts]
kayloos has joined #ruby
mr_snowf1ake has quit [Ping timeout: 258 seconds]
nateberkopec has quit [Quit: Leaving...]
<shevy>
which one
lkba has quit [Ping timeout: 252 seconds]
<shevy>
"our son must leave home today"
kobain has quit []
<shevy>
"no more internetz for you for 6 months"
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
kobain has quit [Excess Flood]
kobain has joined #ruby
arietis has joined #ruby
klaut has quit [Remote host closed the connection]
klaut_ has joined #ruby
sambao21 has joined #ruby
pr0ggie has joined #ruby
klaut_ has quit [Read error: Connection reset by peer]
klaut has joined #ruby
jason_ has joined #ruby
_sambao21 has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
rkazak has joined #ruby
einarj has joined #ruby
maximski has quit []
sambao21 has quit [Ping timeout: 258 seconds]
morenoh152 has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
blackmes1 has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
arubin has joined #ruby
Doppp has joined #ruby
_sambao21 has quit [Quit: Computer has gone to sleep.]
tungd has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
Doppp has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
spider-mario has joined #ruby
rkazak has quit [Quit: rkazak]
mynyml has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
tharindu is now known as tharindu|away
tharindu|away is now known as tharindu
lkba has joined #ruby
pwh has joined #ruby
arianit has quit [Ping timeout: 252 seconds]
crystal77 has joined #ruby
twiceaday has quit [Ping timeout: 240 seconds]
twiceaday has joined #ruby
<lolmaus>
I'm using a gem that makes use of a config.rb file. I would like to split the config file into multiple files. I've created another file, i. e. config_foo.rb and from config.rb i did `require './config_foo`. The problem is that all gem-specific classes and methods are not available in config_foo. Why?
yfeldblum has joined #ruby
<lolmaus>
It says: undefined method "configure".
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
etqqkoiflwhb_ has joined #ruby
sdouglas has joined #ruby
MatthewsFace has joined #ruby
toastynerd has joined #ruby
MatthewsFace has quit [Client Quit]
Doppp has joined #ruby
snuffeluffegus has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
aspires has quit []
etqqkoiflwhb_ has quit [Ping timeout: 245 seconds]
maroloccio has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
etqqkoiflwhb_ has joined #ruby
toastynerd has quit [Ping timeout: 245 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
LadyRainicorn has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
Speed has quit [Ping timeout: 258 seconds]
Shidash has quit [Quit: Leaving.]
davispuh has joined #ruby
Billy2 has quit [Ping timeout: 252 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
LadyRainicorn has joined #ruby
djbender has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
LadyRainicorn has joined #ruby
madb055 has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
rainmanjam has joined #ruby
Bumptious has quit [Remote host closed the connection]
<etqqkoiflwhb_>
lolmaus: can you paste the code in a gist?
Bumptious has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
ukd1 has joined #ruby
SilkFox has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
arianit has joined #ruby
cj3kim_ has joined #ruby
pwh has quit []
havenwood has joined #ruby
dima_ has joined #ruby
morenoh152 has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
ferr has quit [Ping timeout: 250 seconds]
SilkFox has joined #ruby
BHensley has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
Rainicorn has joined #ruby
endash_ has quit [Quit: endash_]
Rainicorn has quit [Client Quit]
eynj has joined #ruby
LadyRainicorn has joined #ruby
CaptainJet has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
lw has quit [Quit: s]
dima_ has quit [Ping timeout: 258 seconds]
thomasxie has joined #ruby
aspires has joined #ruby
JonathanNeal has joined #ruby
<JonathanNeal>
When working with a regex like ([A-z]([0-9]))-\2 ... would \2 match for the result of [0-9]? I’m coming from a JS background where it would.
MindfulMonk has quit [Changing host]
MindfulMonk has joined #ruby
Xiti` has quit [Quit: Leaving]
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
MindfulMonk has quit [Quit: Have fun]
mynyml has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
mrjensen has joined #ruby
amclain has joined #ruby
MindfulMonk has joined #ruby
Milly_Bays has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
momomomomo has quit [Quit: momomomomo]
northfurr has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
lw has joined #ruby
klaut has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
Vovko has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 258 seconds]
Vovko has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 276 seconds]
<apeiros>
JonathanNeal: btw., [0-9] is better written as just \d
<tobiasvl>
JonathanNeal: note that outside of the actual regex, you'd use $2 to refer to the second match (for example in the second argument to gsub)
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
<DouweM>
apeiros: there's difference between those though, with [0-9] being more performant. But we had a convo about this a cuople of months back and I'm not sure if Ruby actually implements the difference
<apeiros>
DouweM: utter nonsense :)
<DouweM>
apeiros: ?
<apeiros>
got a proof?
<DouweM>
sure, gimme a sec
<apeiros>
in any sane regex engine, \d will not be different in any way from [0-9]
ccham_ has quit [Remote host closed the connection]
madb055 has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
<sandelius>
Hi all. I'm building a CMS using rack as a foundation. Is it possible to make ruby reload certain files on each request? What I mean is e.g plugin and themes should be able to be loaded and activated in runtime (for non programming users). The same way Drupal and WordPress does with PHP.
Shidash has quit [Ping timeout: 240 seconds]
tungd has quit [Ping timeout: 258 seconds]
elaptics is now known as elaptics`away
rm__ has joined #ruby
einarj has joined #ruby
ktosiek_ is now known as ktosiek
ferr has quit [Ping timeout: 240 seconds]
SilkFox has joined #ruby
jgoss has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
<niko>
/14/Wc
niko has left #ruby [#ruby]
edwardly_ has joined #ruby
<benzrf>
sandelius: i feel like theres probably already something like that
donnoc has quit [Quit: WeeChat 0.4.3]
<sandelius>
benzrf cms?
einarj has quit [Ping timeout: 252 seconds]
edwardly has quit [Ping timeout: 246 seconds]
edwardly_ is now known as edwardly
doodlehaus has joined #ruby
evenix has quit [Remote host closed the connection]
etqqkoiflwhb_ has quit [Quit: Computer has gone to sleep.]
<benzrf>
hmm
edwardly has quit [Ping timeout: 250 seconds]
funktor has joined #ruby
evenix has quit [Ping timeout: 258 seconds]
morenoh152 has quit [Ping timeout: 240 seconds]
edwardly has joined #ruby
Hanmac1 has joined #ruby
wallerdev has joined #ruby
jgoss has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
etqqkoiflwhb_ has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
jackyalcine is now known as jacky
mrmargolis has joined #ruby
rylev has joined #ruby
freerobby has joined #ruby
tharindu is now known as tharindu|away
arianit has quit [Quit: Leaving]
<nhmood>
anyone familiar with datamapper?
crazymykl has quit [Remote host closed the connection]
shashank_rs has joined #ruby
crazymykl has joined #ruby
rylev has quit [Ping timeout: 252 seconds]
tharindu|away is now known as tharindu
ukd1 has quit [Remote host closed the connection]
morenoh152 has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
ukd1 has joined #ruby
centrx has joined #ruby
blackmes1 has quit [Quit: WeeChat 0.4.3]
ukd1 has quit [Read error: Connection reset by peer]
ukd1_ has joined #ruby
blackmesa has joined #ruby
endash_ has quit [Quit: endash_]
doodlehaus has joined #ruby
duggiefresh has joined #ruby
sdouglas has joined #ruby
locriani has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
shashank_rs has quit [Ping timeout: 252 seconds]
shashank_rs has joined #ruby
MatthewsFace has joined #ruby
flowerhack has joined #ruby
dima_ has joined #ruby
browndawg has quit [Quit: Leaving.]
MatthewsFace has quit [Client Quit]
nouitfvf_ has quit []
ahuman has quit [Remote host closed the connection]
ahuman has joined #ruby
<tobiasvl>
agh. i need to parse a CSV like file format, with values delimited by , and rows delimited by \n ... except that the values are in "" and they can be multiline, so i only have a new row if i'm not inside a value
coderhs has joined #ruby
<tobiasvl>
is there any easy way to parse that that i'm missing?
IceDragon has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
aspires has joined #ruby
IceDragon has joined #ruby
sdouglas has joined #ruby
brian___ has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
red234324 has quit [Quit: Leaving]
dima_ has quit [Ping timeout: 252 seconds]
<centrx>
tobiasvl, Did you try it?
<centrx>
with CSV
<benzrf>
tobiasvl: that IS csv
dyoko has quit [Quit: Leaving.]
arietis has quit [Quit: Computer has gone to sleep.]
twiceaday has quit [Ping timeout: 252 seconds]
ukd1_ has quit [Remote host closed the connection]
<tobiasvl>
good night
etqqkoiflwhb_ has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
<tobiasvl>
think I'll have a beer
etqqkoiflwhb_ has joined #ruby
aspires has quit [Client Quit]
SilkFox has joined #ruby
jamto11 has joined #ruby
<shevy>
haha
<shevy>
that's a great reply
sepp2k has quit [Quit: Leaving.]
nisstyre has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
<tobiasvl>
:(
Cache_Money has quit [Quit: Cache_Money]
<tobiasvl>
:)
<tobiasvl>
:V
Nukepuppy has joined #ruby
twiceaday has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
snuffeluffegus has quit [Quit: Leaving]
lw has quit [Quit: s]
klaut has joined #ruby
lolmaus has quit [Ping timeout: 258 seconds]
tonni_ has joined #ruby
tonni has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
mrmargolis has quit []
ktosiek has quit [Ping timeout: 252 seconds]
mrmargolis has joined #ruby
Milly_Bays has joined #ruby
wiscas has quit [Quit: That's what she said]
etqqkoiflwhb__ has joined #ruby
etqqkoiflwhb_ has quit [Ping timeout: 245 seconds]
jason_ has quit [Read error: Connection reset by peer]
mrjensen has quit [Remote host closed the connection]
SolarBoom has joined #ruby
jason_ has joined #ruby
Guedes0 has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
pwh has joined #ruby
etqqkoiflwhb___ has joined #ruby
arietis has joined #ruby
jgoss has quit [Ping timeout: 252 seconds]
mrjensen has joined #ruby
etqqkoiflwhb__ has quit [Ping timeout: 245 seconds]
<shevy>
tobiasvl did you have your beer yet?
fabrice31 has joined #ruby
CaptainJet has quit []
emaxi has joined #ruby
Hobogrammer has joined #ruby
ukd1 has quit [Remote host closed the connection]
testcore has joined #ruby
Fire-Dragon-DoL has joined #ruby
tharindu is now known as tharindu|away
fabrice31 has quit [Ping timeout: 252 seconds]
camilo_ has joined #ruby
wiscas has joined #ruby
SolarBoom1 has joined #ruby
decoponio has quit [Quit: Leaving...]
arubin has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
funktor has quit [Remote host closed the connection]
<DouweM>
Rydekull: haha I'd actually never seen that one
<shevy>
poor djinni
<DouweM>
Great title too: "That was definitely not in my top three wishes." "Who said anything about YOUR wishes?"
rm__ has quit [Remote host closed the connection]
<zorak>
whats mean rubbing scripts?
evenix has quit [Ping timeout: 245 seconds]
arubin has joined #ruby
rm_ has joined #ruby
<DouweM>
zorak: read your previous message again ;)
<shevy>
zorak do you not know what rubbing means?
<shevy>
<zorak> if i try to rub the script
<zorak>
lol
kayloos has joined #ruby
jorts has quit [Quit: jorts]
tharindu has joined #ruby
evenix has joined #ruby
<DouweM>
zorak: thanks for setting up the funniest thing I've ever said, according to one shevy
<zorak>
no problem :P
<shevy>
yeah
<shevy>
in the future, if I find a bug in my scripts
<shevy>
I'm gonna rub them good
prakriti has joined #ruby
anaeem1 has joined #ruby
<zorak>
i need apache to read my rb scrips, how i do that?
rm_ has quit [Ping timeout: 252 seconds]
<zorak>
already have the libapache2-ruby
<shevy>
zorak my apache runs ruby .cgi just fine
<zorak>
but when i try to run the simple_cgi.rb i get a 500 server error
<zorak>
if a i change the name of the scrip to .cgi run fine
<shevy>
I use these settings:
<shevy>
Options Indexes FollowSymLinks ExecCGI Includes Multiviews
<shevy>
AddHandler cgi-script .cgi .pl
<zorak>
where?
<shevy>
and of course
<shevy>
LoadModule cgi_module modules/mod_cgi.so
<shevy>
in httpd.conf
<shevy>
yeah zorak
<shevy>
apache by default expects .cgi file ending
<shevy>
I am not sure how you can tell apache to run .rb files as .cgi files
<zorak>
where is httpd.conf?
<shevy>
find it on your system
<shevy>
locate httpd.conf
<shevy>
or
combusean has quit [Ping timeout: 258 seconds]
<shevy>
find / -name httpd.conf # <-- always works even if it takes long
<shevy>
I compiled from source into /usr prefix though
<shevy>
you seem to run debian I bet
<zorak>
this one? /usr/share/doc/libapache2-mod-ruby/examples/httpd.conf-apache2
<bufferloss>
zorak, no that's an example one
<bufferloss>
you want the real one
<zorak>
/etc/mini-httpd.conf
<zorak>
??
<bufferloss>
probably in /etc/apache2 somewhere on debian
<bufferloss>
/etc/httpd on RPM
<shevy>
zorak no just httpd.conf
<bufferloss>
also, why are you using apache? what's wrong with just using e.g. passenger
<bufferloss>
or use nginx to reverse proxy puma or something
<shevy>
the more important question is... why are you using debian hahaha ;D
<bufferloss>
that is a good question too
<tobiasvl>
hmm, I have a pseudo-JSON file which contains some non-JSON lines I'd like to ignore. is there a way to easily do that without having to loop through the file once and throw away all invalid lines?
<zorak>
i learing and the book said "use apache, install with apt-get install apache2"
<shevy>
yeah that's the problem with books
<zorak>
(i use aptitude)
m0s^away is now known as m0s
<bufferloss>
"and the book said" <- there's your first problem
<shevy>
somewhere there must be debian documentation
<bufferloss>
I don't like books for anything programming related
obs has quit [Quit: Konversation terminated!]
<bufferloss>
just about anything you want to learn you can learn for free and better online
<zorak>
you cant go to [not know anything] to [full programming] with just codeacademy
<bufferloss>
the notion that you must get to "full programming" before you can do anything useful is wrong
<zorak>
im doing this book (Ruby by example) and the koans
<bufferloss>
also the notion that deploying ruby code in a CGI container in apache will at all help you get towards that goal of "full programming" is wrong as well
<bufferloss>
that's system administration
earth has joined #ruby
jackneill has quit [Remote host closed the connection]
<bufferloss>
zorak, there's a ton of stuff available for free, listed here https://www.ruby-lang.org/en/documentation/ which is better than what you're currently trying to do
<shevy>
zorak running .cgi scripts is easy with apache, but if you do not even know where your httpd.conf is then you can not modify apache's behaviour
<zorak>
yes, that some problem with the book im doing is in 1.8.7 a some things work different now
evenix has quit [Ping timeout: 240 seconds]
<bufferloss>
zorak, http://www.sinatrarb.com/ shows you how to write a web app in like 4 lines of code, right there on the home page
<zorak>
i dont even think i have a http.conf in my sistem :-/
<bufferloss>
doesn't get much simpler than that
morenoh152 has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Remote host closed the connection]
<shevy>
zorak blame debian for that ;)
<bufferloss>
zorak, seriously, get up to date, use something modern, ruby koans is fine, but use a better book
<bufferloss>
zorak, ruby-lang.org is the official site and has tons of links to good up to date books
tharindu has quit [Ping timeout: 258 seconds]
<zorak>
im already in the page 236 from 300
<bufferloss>
or if your goal is to learn to make web sites specifically, stop wasting your time with "zomg full programmer" and just go learn rails from http://guides.rubyonrails.org
<zorak>
thats the next step
<shevy>
he has the steps to world domination well planned ahead
<bufferloss>
zorak, the notion that "I can't stop eating this poop now, I'm almost done eating the whole turd!" is, well, I can't say it's wrong per se, but it's not advantagous nor particularly rational
<bufferloss>
shevy, yes I see that
<shevy>
lol
<shevy>
DouweM, the channel is getting funnier and funnier by the minute
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<DouweM>
it's a great day
<bufferloss>
zorak, seriously, no one would benefit from reading a guide on programming a DEC-PDP anymore, you are not benefitting from reading an out of date ruby book, you should stop and read something else
<shevy>
we have had rubbing ruby scripts the right way, now we philosophize about eating the poop before one gets to do the whole turd
<bufferloss>
zorak, quit before you waste even MORE of your time
<zorak>
->end this book ->make the overtime calculator->learn rails->do some project in rails->star searching work with ruby/rails
rylev has joined #ruby
<bufferloss>
zorak, change that to simply ->make the overtime calculator->learn rails->do some project in rails->star searching work with ruby/rails
<bufferloss>
oh and btw that whole "start looking for work" thing ain't gonna go well when they find out you learned ruby from a book written for 1.8
ndrei has joined #ruby
ciwolsey has joined #ruby
rylev has quit [Read error: No route to host]
djbender has quit [Quit: djbender]
combusean has joined #ruby
rylev has joined #ruby
<zorak>
grrrrrrr
<zorak>
ok
gnutz has joined #ruby
<zorak>
im gonna close the book
<zorak>
and start with the calculator
<bufferloss>
cool, I think you'll probably learn more by doing that actually
<bufferloss>
zorak, I'll be around most of the day if you have questions on, well, stuff
<zorak>
thank, im find this chat very nice
prakriti has quit [Quit: Leaving]
<combusean>
same here.
<combusean>
if i can be of use
<zorak>
cya later, im gonna take a bath and clean the house
<zorak>
thanks for your support!
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
rylev has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
northfurr has joined #ruby
Morkel has quit [Quit: Morkel]
dima_ has joined #ruby
nateberkopec has joined #ruby
dima_ has quit [Ping timeout: 240 seconds]
kalz has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 252 seconds]
prakriti has joined #ruby
morenoh152 has joined #ruby
cek has joined #ruby
cek has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
scare_byte has joined #ruby
freerobby has joined #ruby
Avahey_ has joined #ruby
ndrei has joined #ruby
<shevy>
I am working through my old ruby docu
kirun has quit [Quit: Client exiting]
ukd1 has joined #ruby
kalz has joined #ruby
marr has joined #ruby
etqqkoiflwhb____ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
ukd1 has quit [Ping timeout: 276 seconds]
Slavox is now known as Slavox|AFK
lolmaus has joined #ruby
jamto11 has joined #ruby
yfeldblum has joined #ruby
ndrei has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
doodlehaus has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
<northfurr>
trying to preview posts before submitting them, but localhost:4000 isn’t working
Slavox|AFK is now known as Slavox
timonv has quit [Ping timeout: 258 seconds]
rkazak has joined #ruby
tcurdt has joined #ruby
rkazak has left #ruby [#ruby]
shashank_rs has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
lolmaus has joined #ruby
etqqkoiflwhb____ has quit [Ping timeout: 276 seconds]
rm_ has joined #ruby
brupeb has joined #ruby
<DouweM>
not working how?
etqqkoiflwhb____ has joined #ruby
slawrence00 has joined #ruby
__class__ has joined #ruby
Xeago_ has joined #ruby
obesd has quit [Ping timeout: 250 seconds]
rm_ has quit [Ping timeout: 245 seconds]
SilkFox has quit [Ping timeout: 245 seconds]
SilverKey has joined #ruby
gnutz has quit [Quit: Lost terminal]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
mostlybadfly has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
tcurdt has quit [Quit: Computer has gone to sleep.]
sdouglas has joined #ruby
glide has joined #ruby
em0ral has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
lioninawhat has quit [Remote host closed the connection]
Cooler_ has quit [Ping timeout: 255 seconds]
earth has quit [Quit: earth]
arietis has joined #ruby
rylev has joined #ruby
trhodes_ has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
Cooler_ has joined #ruby
ndrei has joined #ruby
claymore has quit [Quit: Leaving]
shashank_rs has joined #ruby
maximski has joined #ruby
arietis has quit [Ping timeout: 250 seconds]
rylev has quit [Ping timeout: 252 seconds]
moritzs has quit [Ping timeout: 250 seconds]
ellbot has joined #ruby
ukd1 has joined #ruby
maximski has quit [Ping timeout: 245 seconds]
Nukepuppy has joined #ruby
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
lioninawhat has joined #ruby
maximski has joined #ruby
lioninawhat has quit [Read error: Connection reset by peer]
lioninawhat has joined #ruby
trhodes_ has quit [Ping timeout: 264 seconds]
maximski has quit [Max SendQ exceeded]
ukd1 has quit [Ping timeout: 240 seconds]
Nukepuppy has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
rm_ has joined #ruby
duggiefresh has quit [Ping timeout: 276 seconds]
northfurr has quit [Quit: northfurr]
maximski has joined #ruby
atno has quit [Ping timeout: 252 seconds]
ahuman has quit [Read error: Connection reset by peer]
ahuman has joined #ruby
baweaver has joined #ruby
lagweezle has quit [Quit: leaving]
josiah14_ has joined #ruby
Hanmac has joined #ruby
<josiah14_>
does anyone know of any gotchas with sending e-mail notifications from Heroku?
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<baweaver>
Noted that it comes from Devise
<josiah14_>
I'm using Devise and action_mailer to send confirmation e-mails to users when they sign-up, works locally but not out on the Heroku deployment
<DouweM>
InfraRuby: you can add me because I'm curious, but you're holding yourself back not making it public
<zorak>
there is a link with the spreadsheet i did
<Senjai>
InfraRuby: Theres no reason to not make it public, hacked shit is just hacked shit. We're all developers here, we hack shit together all the time for poc's
<Senjai>
InfraRuby: Lol... reputation..
* crome
grabs the duct tape
<benzrf>
bluhg
<benzrf>
bye
senayar has joined #ruby
benzrf is now known as benzrf|offline
atno has joined #ruby
radar_1991 has joined #ruby
radar_1991 has quit [Remote host closed the connection]
<shevy>
zorak I dont want to click on anything to agree
RowdyChild|Away is now known as RowdyChildren
<InfraRuby>
DouweM: sure, github account?
<DouweM>
InfraRuby: same username
<shevy>
and you need to break the problem down into problems you can manage, or at least ask specific, small questions for how to solve it
<zorak>
where other part i can upload a file?
radar_1991 has joined #ruby
<zorak>
easly
radar_1991 has quit [Read error: Connection reset by peer]
evenix has quit [Ping timeout: 252 seconds]
Bumptious has joined #ruby
<shevy>
make a screenshot, upload to a shotter
<DouweM>
zorak: put it in your dropbox, rightclick, get a link
<zorak>
a screenshot of the spreedshed dont work because have code
<zorak>
and a looooooooooooot of columns
<InfraRuby>
DouweM: added!
cibs has quit [Ping timeout: 256 seconds]
<InfraRuby>
not much there yet
W0rmDr1nk has joined #ruby
<InfraRuby>
there's some things I want to rename before pushing to github
<crome>
InfraRuby: me too
<InfraRuby>
crome: account?
radar_1991 has quit [Remote host closed the connection]
<crome>
cromega
WormDrink has quit [Ping timeout: 252 seconds]
cibs has joined #ruby
<shevy>
zorak you cant even solve the problem of simplifying data from a spreadsheet
<shevy>
how can you think you can program in ruby :)
radar_1991 has joined #ruby
<zorak>
shevy: thats why im learning
<InfraRuby>
crome: done!
radar_1991 has quit [Remote host closed the connection]
<shevy>
let's learn differently
<shevy>
zorak, how do you write a class in ruby?
senayar has quit [Ping timeout: 258 seconds]
<DouweM>
InfraRuby: that doesn't look like a web framework, and your directory structure is a weird ;)
radar_1991 has joined #ruby
<InfraRuby>
DouweM: haha, that's just part of the first gem
<zorak>
class NameOfTheClass
<DouweM>
InfraRuby: is there any web framework code?
<shevy>
zorak good
* Senjai
facepalms
tjr9898_ has quit [Read error: Connection reset by peer]
<crome>
attr_reader :__x
<crome>
nice!
<shevy>
zorak now you wish to write a class that solves one small problem for you
<DouweM>
crome: you work at HouseTrip?
tjr9898_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
<shevy>
zorak try to identify a small but useful problem that you could solve in your given problem
<InfraRuby>
DouweM: not yet
<crome>
I happen to
Xeago has quit [Remote host closed the connection]
<DouweM>
InfraRuby: what the hell do you want us to check out/ contribute to then? :p
<shevy>
converting a string like '8:50' to n_seconds would be one
<DouweM>
crome: interesting. I happen to work in the travel industry too
lioninawhat has quit [Remote host closed the connection]
<shevy>
illegal immigration!
northfurr has quit [Quit: northfurr]
<InfraRuby>
DouweM: lol, patience!
sdouglas has quit [Remote host closed the connection]
wethu has joined #ruby
<crome>
booking.com? :)
radar_1991 has quit [Remote host closed the connection]
<DouweM>
InfraRuby: I'll check back when you actually have something to show :P
grieg has quit [Ping timeout: 252 seconds]
<InfraRuby>
DouweM: sure, I'll push some more every day
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM>
crome: hehe, nah, stinngo.com, but we run the #1 directories in Google for "amsterdam apartmant,", "amsterdam bed and breakfast" and "amsterdam houseboat" as well, and are looking to expand in that area :)
<DouweM>
According to http://news.bbc.co.uk/2/hi/8335868.stm, "No prisoners who are "an escape risk or a risk to society" will be sent to Tilburg, Dutch officials said."
<shevy>
yeah you never have any guarantee for that
<crome>
DouweM: Im wondering how they assess it :D
Cooler__ has joined #ruby
<shevy>
crome by studying how well behaving they are
einarj has joined #ruby
<DouweM>
I'm sure they can make an educated guess
<shevy>
"Such a fine gentleman, he really shouldn't be in prison at all!"
Cooler_ has quit [Read error: Connection reset by peer]
<DouweM>
length of sentence, nature of crime, things like that
mr_snowf1ake has joined #ruby
<shevy>
lol
<DouweM>
shevy: hehe
<shevy>
length of sentence
<shevy>
man
<crome>
the nature of crome
<shevy>
I am gonna fail through these tests
<DouweM>
hahaha
<shevy>
when I was 18, there were examinations for ability to have to go to mandatory military service. in one of the queries I noted down that I have problem with authority
<shevy>
I was cross-interviewed by three idiots in a room because of that :(
noob101 has joined #ruby
* noob101
I love ruby
<DouweM>
shevy: nice
<shevy>
noob101 are you still not using ruby?
* noob101
hugs ruby
<noob101>
I am using ruby.
<crome>
:D
Geniack has joined #ruby
<noob101>
Hello shevy, I remember you cause you help me understand ruby.
<shevy>
you said that weeks before
<noob101>
Thank you shevy, you're awesome.
<shevy>
yes but I never see you do something
<shevy>
zorak on the other hand is continually asking things here
<shevy>
I was in part of a jury a few times, though it was not a "real" jury, just two citizens and two judges finding punishments
<DouweM>
gizmore: I have no idea what you were expecting
<shevy>
I always voted to set the guys free
Geniack_ has quit [Ping timeout: 245 seconds]
<gizmore>
i wanted to impress noob101 :(
<shevy>
noob101 did you upload your game as a gem?
<DouweM>
shevy: were you able to convince the others 12 Angry Men style?
<shevy>
DouweM nope, I actually was grilled by the lead judge
<shevy>
he tried to persuade me otherwise
<DouweM>
lol
<shevy>
when I did not want to be persuade I felt his contempt
<noob101>
shevy no
<noob101>
A gem is a program right?
<shevy>
but in my opinion, the judges are trying MUCH harder than the citizens to find anyone guilty
<noob101>
I don't even know what that is really, I heard of it a couple of times in my programming class.
<noob101>
classes*
Stalkr_ has quit [Quit: Leaving...]
lkba has joined #ruby
<shevy>
afterwards I was wondering why the hell I did partake in such a system anyway given that the judge is a "professional" and has much harsher and stricter opinions (because he works with or against criminals every day, which I don't)
<shevy>
noob101 a gem is a way to ditribute ruby addons
<shevy>
the point is you give your game a name
saarinen has quit [Quit: saarinen]
<shevy>
like noob_game
<shevy>
then others can install it like:
<shevy>
gem install noob_game
<shevy>
which is very convenient
<DouweM>
shevy: a juriy-based legal system has always seemed weird to me
glide has quit [Quit: Leaving]
<noob101>
hold on you're going to fast for me
emaxi has quit [Ping timeout: 240 seconds]
<DouweM>
noob101: shevy'll hold your hand
<noob101>
"a gem is a way to ditribute ruby addons" please explain and break it down
<noob101>
ditribute ruby addons
mary5030 has joined #ruby
<shevy>
DouweM haha yeah... a few years ago they wanted to get rid of citizens being able to take part in decision making; I always thought because the judges hated how soft citizens tend to be... or perhaps a judge gets a bounty for convicted folks
george2 has quit [Remote host closed the connection]
<shevy>
I dont hold your hand unless you are a girl
<shevy>
but I may give you a beer
<shevy>
noob101 ok, you write some ruby code
<shevy>
now you want to have other people use your code
<noob101>
yes sir
<shevy>
so what do you have to do? you must distribute it
<shevy>
rubygems is one way of doing so
<shevy>
gems that are distributed that way conform to a specification
Bumptious has quit [Remote host closed the connection]
<shevy>
certain things you have to define
<shevy>
like "what are the dependencies"
<shevy>
"will I bundle any documentation"
Bumptious has joined #ruby
<shevy>
"what ruby version can be used"
<shevy>
etc...
<noob101>
Hmm alrighty.
chipotle has quit [Quit: cya]
<shevy>
but you can omit most of that really
hedgehog has joined #ruby
<shevy>
the only important thing is that you make your game available on rubygems!
<noob101>
But my ruby game isn't pro yet. It looks trashy kind of, it's not worth becoming a gem.
<shevy>
then give it a version
<shevy>
0.0.1
<noob101>
I made it myself.
<shevy>
and as you add more code to it, you can slowly update
<DouweM>
noob101: want us to critique your code?
dima_ has joined #ruby
<shevy>
the thing is you need to start somewhere noob101
<noob101>
Critique, why sure.
<noob101>
give me a sec, I will send a link of my code.
momomomomo has quit [Quit: momomomomo]
* crome
gets ready for some code criticising
Cooler__ has quit [Ping timeout: 258 seconds]
<noob101>
thank you everyone for being so nice to me. Other rooms are meaner to noobs. :(
<InfraRuby>
noob101: names?
<DouweM>
noob101: we were young once too. other channels seem to have forgotten that :p
<DouweM>
I'm still young fwiw, 20yo
lw has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
lw has quit [Max SendQ exceeded]
<DouweM>
we were noobs once too
<InfraRuby>
I was born at a young age
<DouweM>
InfraRuby: were you now
lw has joined #ruby
<shevy>
I never was young
<shevy>
DouweM don't worry
<shevy>
DouweM you'll get older
Bumptious has quit [Ping timeout: 264 seconds]
<DouweM>
I don't doubt that
Shidash has quit [Ping timeout: 240 seconds]
<noob101>
Hello I am back loving ruby community. This is my 21 blackjack game, it took me a month to create.
<noob101>
Quick question, I am also new to using Git,Github and Gists. How do you run a gists?
<DouweM>
shevy: lol, sounds like a great movie :P
<noob101>
DouweM: Yes sir
<shevy>
DouweM hehe... the music is awesome, the movie is semi-semi ok
<DouweM>
noob101: it's not something you can run, it's just that site you posted to
<crome>
shevy: hah
<shevy>
noob101 you need to use a consistent style
momomomomo has joined #ruby
<DouweM>
noob101: it's backed by git, so you can easily make changes and see the difference. and when we fork (~ copy) your file, you can see any changes we make to your original
<shevy>
noob101 look at line 17, you did not indent there: cpu_cards += rand(1..11)
<shevy>
there is a god called Crom in Conan's universe!
<shevy>
noob101 did you use case/when before?
<DouweM>
noob101: lines 59..65, you don't actually need the if-statement. if you use `while ... end` instead of `begin ... end while`, it will work as well
<crome>
its not crome ;<
<noob101>
Nope, shevy. I never use case/when before.
<DouweM>
noob101: and you don't need those parentheses ( and ) around `user_input != "Y"`
saarinen has joined #ruby
<DouweM>
noob101: like in math, there's a set precendence, and you only need parentheses when you want to do something "special". == always binds stronger than &&
<shevy>
noob101 try to use it, you will be able to eliminate some lines in your code
<DouweM>
noob101: lines 67..74, you don't need `elsif ...`, just `else`, because you already know it's one of those 2 values
Hytosys has joined #ruby
<DouweM>
noob101: same thing with the begin/end/while on lines 87..94. same thing with the if/elsif on lines 96..10
<DouweM>
6
chipotle has joined #ruby
<noob101>
wow this is a lot of information
<DouweM>
noob101: let's hope you're a quick study
rylev has joined #ruby
TripTastic has joined #ruby
<noob101>
DouweM: I don't get what you said "lines 59..65, you don't actually need the if-statement. if you use `while ... end` instead of `begin ... end while`, it will work as well"
<DouweM>
noob101: I've forked it and made the change
Cooler_ has joined #ruby
<noob101>
yes, thanks
<DouweM>
noob101: we're now combining your if-statement with the while statement, by checking the while condition statement before running lines 60..62, instead of after
<noob101>
DouweM: Thanks a lot, I appreciate your time and service,
<noob101>
You too shevy
JBreit has quit [Ping timeout: 240 seconds]
maletor has joined #ruby
<DouweM>
noob101: you're one of the nicest noobs I've seen here btw. channels can be unwelcoming, but noobs can be hella annoying too :P channels don't get cynical out of nowhere
robbyoconnor has joined #ruby
tectonic has joined #ruby
<DouweM>
noob101: but keep this up and you'll be all right in #ruby
Hanmac1 has joined #ruby
<shevy>
noob101 yes it's a lot of information but the idea is that you get it into your blood, so that you don't have to think about it anymore