<agent_white>
Hahah I was curious if that was blocked... :D
nwertman has joined #ruby
larissa has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
njs126 has joined #ruby
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
<shevy>
you hacker
aspires has joined #ruby
SidWu has joined #ruby
jobewan has joined #ruby
<agent_white>
such h4x
rm__ has quit [Ping timeout: 240 seconds]
funktor has quit [Ping timeout: 269 seconds]
fgo has quit [Ping timeout: 269 seconds]
yubrew has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
<irishcoder4>
Does anyone have a favorite lib for css selectors and xpath?
snath has quit [Ping timeout: 240 seconds]
<benzrf>
nokogiri seems like what everyone uses
ctruett has joined #ruby
paulfm has quit []
<irishcoder4>
Ok, that is what I'm seeing everywhere. Thanks.
snath has joined #ruby
i_s has quit [Remote host closed the connection]
bricker`LA has joined #ruby
i_s has joined #ruby
<bricker`LA>
What do you guys set the version number to on the development branch? I've been trying to keep it at the "next" version but that ends up getting way too confusing.
Rober9393 has quit [Quit: Computer has gone to sleep.]
<bnagy>
I use whatever it would be
arya_ has joined #ruby
<bnagy>
like if next is going to be 2.2 and master is 2.1 then.. use 2.2
chrisseaton has quit []
<pipework>
bricker`LA: I typically only change version numbers on my release branch, whatever that is.
<pipework>
Until then, I don't usually bump in my development branches.
mjs2600 has quit [Remote host closed the connection]
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
danno1 has quit [Ping timeout: 240 seconds]
chrisseaton has joined #ruby
rm__ has joined #ruby
mikepack has joined #ruby
Celm has quit [Remote host closed the connection]
zxq9 has quit [Quit: Konversation terminated!]
chrisseaton has quit [Client Quit]
zxq9 has joined #ruby
Robbo_ has joined #ruby
<Robbo_>
what is the main used deployment script for ruby?
mlpinit has joined #ruby
<Robbo_>
as in running shh tasks
<Robbo_>
ssh even
AussieDownUnder has quit [Remote host closed the connection]
blackjid has joined #ruby
SCommette has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
<centrx>
Robbo_, huh?
<Robbo_>
nvm
<blackjid>
Hi! How can I hide the cursos in the command line with ruby? I tried Curses::curs_set(0) but that clears up the whole screen... any other approach?
funktor has joined #ruby
jgrevich has joined #ruby
sdouglas has joined #ruby
paulfm has joined #ruby
nwertman has quit [Ping timeout: 264 seconds]
sdouglas_ has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
saarinen has quit [Quit: saarinen]
bynaryshef has quit []
funktor has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
SonicX has joined #ruby
culturelabs_ has quit [Ping timeout: 252 seconds]
benzrf is now known as benzrf|offline
mroth has quit [Read error: Connection reset by peer]
jgrevich has quit [Ping timeout: 240 seconds]
mroth__ has joined #ruby
culturelabs_ has joined #ruby
<bnagy>
not sure what you're asking
hyperreal has joined #ruby
<bnagy>
you mean in irb, or you mean for a running ruby program?
tylersmith has joined #ruby
ephemerian has quit [Ping timeout: 246 seconds]
hamakn has quit [Remote host closed the connection]
jgrevich has joined #ruby
endash has quit [Quit: endash]
axsuul has joined #ruby
nwertman has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
Solnse has quit [Ping timeout: 246 seconds]
montyboy has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
danno1 has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
snath has quit [Ping timeout: 264 seconds]
ga1j1n has quit [Remote host closed the connection]
ga1j1n has joined #ruby
endash has joined #ruby
<blackjid>
bnagy I'm writing a CLI tool with ruby
<pipework>
Have you considered extending the acronym one more letter to the right?
<bnagy>
blackjid: ok well ruby doesn't produce any 'cursors' by itself
<bnagy>
anyway, afaik your only real options are line-by-line demand and parse, which is ( from memory ) highline and friends
zachallett has quit [Remote host closed the connection]
<bnagy>
next you can just extend an existing REPL like irb or pry
ga1j1n has quit [Ping timeout: 264 seconds]
<bnagy>
finally you have to own the whole terminal with eg curses, but imvho that approach is for the birds
<pipework>
bnagy: It sure produced cursers though. :D
Hanmac has joined #ruby
circuit has quit [Quit: leaving]
zachalle_ has joined #ruby
<bnagy>
I've used termbox from Go, but not from ruby.. I liked it though
<bnagy>
anyway it's easier to write a basic GUI than a curses TUI
<pipework>
bnagy: Yeah, but unless it's a TUI, who cares? :D
hamakn has joined #ruby
<bnagy>
QQ
lethjakman has quit [Ping timeout: 240 seconds]
<pipework>
ZZ
<bnagy>
pff vim heretics
Hobogrammer has joined #ruby
<pipework>
:D
<popl>
The 1990s called, they want their controversy back.
toastynerd has quit [Remote host closed the connection]
<pipework>
:!apt-get purge emacs
Hanmac1 has quit [Ping timeout: 246 seconds]
jeregrine has quit [Quit: Connection closed for inactivity]
<pipework>
popl: It's a war for the ages.
<bnagy>
true story - my first 6 months of using sublime I would end up with :w littered throughout my code
<bnagy>
popl: I'm actually arguing about ZZ vs wq not vim vs world
wallerdev has joined #ruby
<bnagy>
so it's a micro-controversy
samuel02 has joined #ruby
<blackjid>
i'm using io/console to write and get input from stdin and stdout, also to getch from user
<bnagy>
yeah that approach is what the highline family of gems is for
<bnagy>
it also sucks, imho, but enjoy
x77686d has quit [Quit: x77686d]
<bnagy>
there's another family that is made for adding your stuff to eg irb, so you get to leverage the REPL which is a LOT of the shitty heavy lifting
<bnagy>
but I can't remember what they're called :/
alvaro_o has quit [Quit: Ex-Chat]
Steve445 has joined #ruby
<bnagy>
blackjid: what does the app actually do?
<blackjid>
really I'm working on top of this https://github.com/arlimus/inquirer.rb is a ruby port from inquirer.js which is a very nice library to have interactive user promts
<popl>
bnagy: There are probably splinter sects waging war about that
<popl>
.
samuel02 has quit [Ping timeout: 265 seconds]
<popl>
Instead of shelling out I usually just ctrl-z.
Solnse has joined #ruby
<popl>
unless I need to filter something
<blackjid>
I want to add some funcionality, and one thing I want to do is to hide the cursor while I'm in a prompt that expect to selection from options with arrow keys
<bnagy>
I don't know which caret you are talking about, but whoever wrote that gem knows how to lay stuff out - like I 'get' it after only a quick look
postmodern has joined #ruby
<popl>
bnagy: Is the shark sanctuary as cool as it sounds?
yfeldblu_ has quit [Ping timeout: 240 seconds]
<bnagy>
popl: yeah, it is a very weird place
<blackjid>
mmm
<bnagy>
well it's not like a sanctuary you go and see
<popl>
right
<bnagy>
it's just 'not allowed to kill sharks'
<popl>
right
<popl>
I wonder if the sharks figured that out.
<blackjid>
if you git clone git@github.com:arlimus/inquirer.rb.git
<bnagy>
blackjid: can you give me an example based on the screenshots on the gem or something, or describe exactly how your hide behaviour is different from what it does now?
<blackjid>
and then run uby -Ilib example/list.rb
<bnagy>
I can see the example png
<blackjid>
your are going to get the same as the screenshot for the list prompt but with a new line with a white rectangle
krz has joined #ruby
<bnagy>
ok, so like a waiting-for-input
<blackjid>
right!
<blackjid>
I want to hide that..
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
teddyp1cker has joined #ruby
maximski has joined #ruby
<bnagy>
I guess it must be part of the list ask
<bnagy>
looks like it's just the footer
maximski has quit [Client Quit]
<bnagy>
wait are you sure it's not YOUR terminal's prompt?
<bnagy>
eg mine colors the current terminal cursor position
<blackjid>
mm, maybe... I mean, probably...
yfeldblum has joined #ruby
<bnagy>
like all I can see as a default footer is ' '
tectonic has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
aspires has quit []
<bnagy>
ugh no it's not even, it's a 0 length string
danshultz has quit [Ping timeout: 240 seconds]
teddyp1cker has quit [Ping timeout: 265 seconds]
mlpinit has joined #ruby
<bnagy>
ok now I think I know what's going on at least
axsuul has joined #ruby
<blackjid>
yea?
<bnagy>
yeah, it's your terminal drawing that
<bnagy>
the curses approach is going to be just sending the correct ansi codes
confounds has joined #ruby
<bnagy>
so you only need curses to save you all the pain in the ass of getting $TERM and working out which code to send
nwertman has joined #ruby
thomasxie has quit [Ping timeout: 265 seconds]
<bnagy>
like ^[25l or whatever
funktor has joined #ruby
mlpinit has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
jlast has quit [Remote host closed the connection]
<bnagy>
wonder if you can stty
<blackjid>
So, I don't know if I fully understand... Can I control whats being drawn by my terminal from withing that ruby script??
mostlybadfly has quit [Quit: Connection closed for inactivity]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
sk_keeper has joined #ruby
samuel02 has joined #ruby
jmeeuwen has joined #ruby
<blackjid>
there is a line thats doing system "stty #{old_state}"
<blackjid>
iohelper:50
<bnagy>
blackjid: this might work...
<bnagy>
you can use tput to get the right code
<bnagy>
`tput civis`
<bnagy>
=> "\e[?25l"
<bnagy>
(for me)
<bnagy>
try in irb
<bnagy>
do print (whatever string you get) or just print `tput civis`
<bnagy>
but remember that will turn it off for that whole terminal session, until you turn it back on
fgo has joined #ruby
<blackjid>
irb(main):001:0> `tput civis`
<blackjid>
=> "\e[?25l"
timonv has joined #ruby
skkeeper has quit [Ping timeout: 260 seconds]
<bnagy>
yeah.. you need to print that though
<bnagy>
to send it to the terminal
randomnick_ has quit [Quit: Leaving]
saarinen has joined #ruby
samuel02 has quit [Ping timeout: 265 seconds]
<blackjid>
wow!
<blackjid>
it dissapead
<blackjid>
!
dkamioka has joined #ruby
<bnagy>
turn it back on with the same process but cnorm
danno1 has quit [Ping timeout: 269 seconds]
<blackjid>
wow!... thanks!!!
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<blackjid>
civis is cursor invisible?? and cnorm cursor normar??
<bnagy>
I can't vouch for the avilability of tput on every *nix, but I think your odds are good
dgaffney has joined #ruby
<blackjid>
why does this work???
derek_c has quit [Ping timeout: 240 seconds]
<bnagy>
it's two parts
<bnagy>
tput tells you the ansi escape code needed for your current $TERM
<bnagy>
apparently we're both on vt100-ish
<bnagy>
then printing that escape code first gets read by the terminal ( that's what escapes are ) and parsed as a special-thing
sdouglas has quit [Remote host closed the connection]
funktor has quit [Remote host closed the connection]
duggiefresh has quit []
Spami has quit [Quit: This computer has gone to sleep]
timonv has quit [Ping timeout: 240 seconds]
<bnagy>
so instead of blatting that char to stdout it parses it and does what you asked, which is make the cursor invisible
sdouglas has joined #ruby
funktor has joined #ruby
<bnagy>
\r or \n are the same
<bnagy>
just less spectacular
<blackjid>
right... :)
<blackjid>
hey thanks!!!
<bnagy>
no worries, TIL about tput, so that's a win
moneydouble has quit [Quit: Leaving.]
axsuul has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
Spami has joined #ruby
pu22l3r has joined #ruby
<blackjid>
when I finish my pull request to inquirer.rb I'll let you know if I found you here... :) thanks again!..
ga1j1n has joined #ruby
zachalle_ has quit [Remote host closed the connection]
funktor has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 265 seconds]
marcdel has quit []
freerobby has quit [Quit: Leaving.]
greenride has joined #ruby
linojon has joined #ruby
alexju has joined #ruby
kitak_ has joined #ruby
jhn_ has joined #ruby
sdouglas has joined #ruby
kitak has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
noop has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
dgaffney has quit [Remote host closed the connection]
yubrew has joined #ruby
dgaffney has joined #ruby
tewlz has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
confounds has quit []
alexju has quit [Remote host closed the connection]
mauro has joined #ruby
nari has joined #ruby
dgaffney has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 240 seconds]
ga1j1n has quit [Remote host closed the connection]
x77686d has joined #ruby
ga1j1n has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
mikepack has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
bradhe has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
mordof has joined #ruby
JasmeetQA has joined #ruby
sski has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
<mordof>
I don't really know much of anything about ruby.. only that i've had a number of people recommend i start learning it. I know rails can handle website dev - but i'm curious, what other things generally would fall into Ruby's domain for "what's good to make" with it?
<mordof>
at least from what i know, i don't think it's just website stuff - right?
vpretzel has quit [Read error: Connection reset by peer]
charliesome has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
fgo has joined #ruby
vpretzel has joined #ruby
<centrx>
mordof, Anything
<centrx>
mordof, Not the best for Windows desktop applications
<centrx>
mordof, Or high-performance games
seggy has joined #ruby
<mordof>
does it compile entirely, or is it similar in a way to a java application (needing run-time stuff)?
MatthewsFace has joined #ruby
<mordof>
or interpreted, i suppose is the third option it could be
tectonic has quit []
<centrx>
mordof, Ruby is an interpreted language. The default interpreter (MRI) requires the ruby program.
<centrx>
mordof, JRuby will do it on the JVM. mruby is a new thing, a limited subset that will compile to C.
<mordof>
ahh, ok
<mordof>
centrx: good to know, thanks :)
<centrx>
There are also things that will compile/translate it to Javascript, etc.
charliesome has joined #ruby
sdouglas has quit [Remote host closed the connection]
byprdct has joined #ruby
sdouglas has joined #ruby
<mordof>
odd.. heh
<mordof>
that's not referring to Coffeescript in rails though right? you're talking about actually writing normal Ruby and having it spit out js?
<mordof>
can't say i trust anything like that, no matter what language it is
mary5030 has quit [Remote host closed the connection]
samuel02 has joined #ruby
agarie has quit [Remote host closed the connection]
Cache_Money has joined #ruby
evenix has quit [Remote host closed the connection]
agarie has joined #ruby
michaeldeol has joined #ruby
Solnse has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 265 seconds]
evenix has joined #ruby
mansi has joined #ruby
samuel02 has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Remote host closed the connection]
bradhe has joined #ruby
evenix has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
agent_white has joined #ruby
rabeldable has joined #ruby
gizmore has joined #ruby
lw has quit [Quit: s]
kevinykchan has quit [Read error: Connection reset by peer]
lethjakman has joined #ruby
sdouglas has joined #ruby
timonv has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
kevinykchan has joined #ruby
mlpinit has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
YamakasY has joined #ruby
irishcoder4 has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
fella5s has joined #ruby
Xiti has quit [Quit: Leaving]
mlpinit has quit [Ping timeout: 240 seconds]
r0nin has joined #ruby
YamakasY has quit [Ping timeout: 240 seconds]
Mongey has quit [Ping timeout: 240 seconds]
rm__ has quit [Read error: Connection reset by peer]
rm__ has joined #ruby
bradhe_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
fella6s has quit [Ping timeout: 264 seconds]
sparrovv has joined #ruby
kevinykchan has joined #ruby
irishcoder4 has quit [Ping timeout: 240 seconds]
seggy has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
axsuul has quit [Read error: Connection reset by peer]
JasmeetQA1 has quit [Read error: Connection reset by peer]
mansi has joined #ruby
rkazak has joined #ruby
relix has joined #ruby
sski has joined #ruby
sharpJennifer is now known as emanon
rdark has joined #ruby
NovapaX_ has quit [Ping timeout: 265 seconds]
emanon is now known as Guest89245
Elhu has joined #ruby
mengu has joined #ruby
yubrew has joined #ruby
abdulsattar has joined #ruby
relix_ has quit [Read error: Connection reset by peer]
RyanV has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
teddyp1cker has joined #ruby
Hanmac has joined #ruby
rkazak has left #ruby [#ruby]
Guest89245 is now known as druiddesign
sski has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
wallerdev has quit [Quit: wallerdev]
NovapaX has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 240 seconds]
Jeticus has quit []
shevy has quit [Ping timeout: 252 seconds]
paolooo has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 240 seconds]
spacebug has joined #ruby
shevy has joined #ruby
mox_ has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
havenwood has quit [Remote host closed the connection]
mr_snowf1ake has quit [Quit: Leaving]
<certainty>
shevy: long live rugby?
Hanmac1 has joined #ruby
havenwood has joined #ruby
<mox_>
Im working on a scorecard project at the office, and I have to deal with tons of different excel workbooks.
<mox_>
What would be the best way to make a scorecard card that collects automaticcaly to those excel files without intervention. What programming langage would suit me best or what alternatives
<mox_>
do I have?
mlpinit has joined #ruby
<apeiros>
mox_: VBA
* apeiros
hides
<abdulsattar>
Is there a way I can get current_user (the user that is signed in) in Cucumber step definitions?
Hanmac has quit [Ping timeout: 264 seconds]
<mox_>
would it be slow like excel? or it would make everything more faster?
dzhulk has joined #ruby
<apeiros>
abdulsattar: #rubyonrails ?
<abdulsattar>
ok, sorry
<apeiros>
abdulsattar: also, a) yes, of course, b) how depends *a lot* on how you actually implement 'current_user'.
Zunonia__ has quit [Quit: Computer has gone to sleep.]
klaut has joined #ruby
Hanmac has joined #ruby
Advocation has joined #ruby
charliesome has joined #ruby
bradhe has joined #ruby
Doppp has quit [Ping timeout: 264 seconds]
aagdbl0 is now known as aagdbl
crazysim has quit [Excess Flood]
nari has quit [Ping timeout: 240 seconds]
crazysim has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
senayar has quit [Remote host closed the connection]
AlSquire has joined #ruby
hugoxrosa has quit [Remote host closed the connection]
davidcelis has quit [Ping timeout: 252 seconds]
decoponio has joined #ruby
mansi has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
shredding has joined #ruby
mansi has quit [Remote host closed the connection]
NovapaX_ has joined #ruby
mansi has joined #ruby
mlpinit has joined #ruby
kitak has quit [Remote host closed the connection]
NovapaX has quit [Ping timeout: 240 seconds]
NovapaX has joined #ruby
hiall has quit [Quit: hiall]
kitak has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
davidcelis has quit [Ping timeout: 240 seconds]
n88_ has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
NovapaX_ has quit [Ping timeout: 240 seconds]
mlpinit has quit [Ping timeout: 265 seconds]
andrewlio has joined #ruby
NovapaX_ has joined #ruby
dkamioka has joined #ruby
<shevy>
ImportError: No module named dsextras
<shevy>
I hate python
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
shaunbaker has joined #ruby
<apeiros>
shevy: yousssss dontsssss ssssspeakssss the sssslanguage?
<shevy>
there was a sudden error, now gimp suddenly no longer works in the way it did an hour ago
NovapaX has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<crome>
I think its the point of gimp
arturaz has joined #ruby
<crome>
it doesnt really work the way you expect it would
<shevy>
I hate gimp as well
sk87 has joined #ruby
NovapaX_ has quit [Read error: Connection reset by peer]
<shevy>
actually I hate that there are so few alternatives to gimp
NovapaX has joined #ruby
n88 has joined #ruby
dkamioka has quit [Ping timeout: 265 seconds]
<workmad3>
shevy: you have a hex editor? just create jpgs directly!
<Robbo_>
so umm, I have been working locally with ruby etc but now need to deploy and realized I don't know how
<Robbo_>
what webserver should I be using?
Kneferilis has quit [Ping timeout: 246 seconds]
r0nin has joined #ruby
<shevy>
File "/usr/lib/gimp/2.0/python/gimpfu.py", line 76, in <module>
<shevy>
ImportError: could not import pygtk
<Robbo_>
I got all the ruby things installed and working on the server
hamakn has quit [Read error: Connection reset by peer]
<shevy>
workmad3 don't tempt me, I may add a ruby-commandline image maker eventually
hamakn has joined #ruby
<abdulsattar>
Robbo_: people generally reverse proxy nginx to your server
<shevy>
I actually need to do only a bit of cropping, and sharpening. could do that with imagemagick probably
<shevy>
damn gimp
<workmad3>
Robbo_: if you're talking rails or another rack framework, there are several options... it's fairly typical to use nginx nowadays although apache is also a valid choice... and then it's either passenger as a module in nginx or apache, or reverse proxy to e.g. unicorn or puma
Xeago has quit [Remote host closed the connection]
<Robbo_>
well I already use nginx so that would be a good choice
<Robbo_>
I'll get to the googling
hamakn_ has joined #ruby
<Robbo_>
thanks
mehlah has quit [Quit: Leaving...]
<workmad3>
Robbo_: plenty of people in #rubyonrails will talk your ear off on server setup if you ask nicely :)
senayar has joined #ruby
<Robbo_>
I'm not using rails
senayar has quit [Remote host closed the connection]
<crome>
Robbo_: puma is a fashionable choice nowadays
hyperreal has joined #ruby
<Robbo_>
I am seeing a lot of results for thin
senayar has joined #ruby
<workmad3>
Robbo_: so? rails is still a rack app, the server config is the same
<Robbo_>
I'll use nginx and proxy to puma
<shevy>
workmad3 you just convinced me, I will eventually start a new rubygem project that does fancy and simplified image manipulation - which surely can be done in rmagick and imagemagick, I'll just make it so braindead that even noobs can use it without having to think much about it
johncjensen has quit [Remote host closed the connection]
<Robbo_>
it isn't too important to have the best ever atm anyway, that comes when more stuff is moved to ruby and they can hire someone who knows more than me
r0nin has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
inkblot_ has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
<shevy>
hehe
dzhulk has quit [Ping timeout: 240 seconds]
<workmad3>
shevy: that's worrying... I need to be more careful with my jokes and sarcasm if they can be that influential!
<gaussblurinc>
does ruby understand path with tilde (~)?
<shevy>
gaussblurinc yeah, File.expand_path '~'
<crome>
gaussblurinc: feel fry to try it in irb
<shevy>
you need to replace them usually though
<shevy>
like via expand_path
<bnagy>
the same as your shell does, btw. ~ is not magic
<shevy>
File.stat '~/diamond_shell_history'
<shevy>
Errno::ENOENT: No such file or directory @ rb_file_s_stat - ~/diamond_shell_history
camilasan has quit [Read error: Connection reset by peer]
<phazer>
i keep getting this error: constant Logger::Format not defined (NameError)
<phazer>
and no idea where it comes from.
<phazer>
actually im a total ruby newbie n00b
camilasan has joined #ruby
<phazer>
any help is much appreciated
r0nin has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
lolmaus has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
_justin has quit [Read error: No route to host]
sailias has joined #ruby
camilasan has joined #ruby
lolmaus has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
fabrice31 has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
_justin has joined #ruby
<ghr>
what are you requiring in line 10?
drx___ has joined #ruby
camilasan has joined #ruby
ZoanthusR has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
Gadgetoid has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
drx_ has quit [Ping timeout: 264 seconds]
dkamioka_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has joined #ruby
drx___ has quit [Read error: Connection reset by peer]
Gadgetoid has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
mattwb has quit [Changing host]
mattwb has joined #ruby
rabeldable has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<phazer>
ghr: action_mailer
Macaveli has joined #ruby
camilasan has joined #ruby
prosperva has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
<phazer>
ghr: env.rb in the gist comment
OdNairy has quit [Ping timeout: 240 seconds]
<phazer>
*shrug*
camilasan has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
* ghr
shrug :)
vlad_starkov has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<ghr>
I'm guessing Logger::Format is used in ActionMailer somewhere but the file you're loading doesn't have that included anywhere
<ghr>
not sure sorry
<prosperva>
i love ruby and have been playing around with it for one year
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has quit [Ping timeout: 264 seconds]
dkamioka_ has quit [Ping timeout: 264 seconds]
<prosperva>
i have developed an invoice system with ruby on rails but would like to master it and i am wondering what are the best ways to do that
vlad_starkov has joined #ruby
<dachi>
Hello. I am upgrading a fairly huge app (205 MB) from 1.9 to 2.1.0. Do you know if Psych can read Syck format for metadata?
<phazer>
ghr: well. when commenting out the action_mailer.. it should "work" ... but then the error got raised by the next include. its something somewhere else
camilasan has quit [Read error: Connection reset by peer]
* phazer
smashes head on the table
drx_ has joined #ruby
camilasan has joined #ruby
OdNairy has joined #ruby
irishcoder has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
drx_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
camilasan has joined #ruby
<workmad3>
phazer: have you installed cucumber-rails?
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
drx_ has quit [Read error: Connection reset by peer]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
camilasan has joined #ruby
rm_ has joined #ruby
<phazer>
workmad3: hm
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
dzhulk has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
linojon has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
jollyy has quit [Quit: jollyy]
camilasan has joined #ruby
fabrice31 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
joonty has joined #ruby
canton7-mac has joined #ruby
intuxicated has quit [Quit: Leaving]
camilasan has joined #ruby
fannye has joined #ruby
<phazer>
workmad3: Using cucumber-rails (1.3.0)
camilasan has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Quit: Leaving]
sailias has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
jollyy has joined #ruby
jollyy has quit [Client Quit]
camilasa_ has joined #ruby
BRMatt has joined #ruby
<workmad3>
phazer: ok, make sure that's required close to the top of env/support.rb
<workmad3>
phazer: and don't require action_mailer directly
camilas__ has joined #ruby
mjs2600 has joined #ruby
drx_ has joined #ruby
camilas__ has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
amundj has quit [Read error: Connection reset by peer]
camilas__ has joined #ruby
amundj has joined #ruby
cj3kim has joined #ruby
bradhe has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
drx_ has quit [Read error: Connection reset by peer]
cj3kim has quit [Read error: Connection reset by peer]
tt1187 has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
francisfish has quit [Remote host closed the connection]
camilasa_ has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
drx_ has joined #ruby
<phazer>
workmad3: just a guess in the wild from a noob - requiring it on the top of the env.rb because later required librarys have dependencies to the cucumber rails lib. eh?
bradhe has quit [Ping timeout: 265 seconds]
<workmad3>
phazer: not exactly dependencies... but cucumber rails sets up your process to run cucumber in a rails context
drx_ has quit [Read error: Connection reset by peer]
sparrovv_ has joined #ruby
hamakn_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mlpinit has joined #ruby
timfoo has quit [Quit: leaving]
francisfish has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
<rdark>
even though the default task points to a single task
<soahccc>
Google really don't want me to use ruby stdlib for it's API :( This whole oauth crap is really a pain
h0lyalg0rithm has quit [Ping timeout: 264 seconds]
drx_ has quit [Read error: Connection reset by peer]
drx_ has joined #ruby
shredding has quit [Quit: shredding]
irishcoder has quit [Remote host closed the connection]
cover has joined #ruby
nvrch has quit [Quit: nvrch]
drx_ has quit [Read error: Connection reset by peer]
senayar has quit []
blackmes1 has joined #ruby
mengu has quit [Ping timeout: 264 seconds]
danshultz has joined #ruby
senayar has joined #ruby
mjs2600 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
roolo has quit [Quit: Leaving...]
<soahccc>
Okay google you won, I build my own shortener :/
Amart41 has joined #ruby
mansi has joined #ruby
<blackjid>
bnagy are you there?
<workmad3>
soahccc: couldn't you use a different shortener? bitly or tinyurl?
<apeiros>
workmad3: NIH!
<soahccc>
workmad3: they don't support statistics as far as I know
gaussblurinc has quit [Quit: Leaving.]
nari has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
<soahccc>
I already can shorten links with google but despite API key (which has no use here whatsoever) it doesn't show up in my dashboard, I need more auth for this
doodlehaus has quit [Remote host closed the connection]
<workmad3>
soahccc: so why not use one of the oauth libraries?
irishcoder has joined #ruby
<soahccc>
I want it to be a one-file script without Gemfile and all that stuff
<blackjid>
bnagy don't worry :P
<apeiros>
embedded gemfile!
<apeiros>
curious… I bet you could use bundler that way
<workmad3>
apeiros: hmm... could be kinda cool if you could use the data section as a gemfile :)
<apeiros>
workmad3: nooo!
<apeiros>
I mean, yes, but no
<apeiros>
I want to either pass a string or a block. they can provide a convenience constructor which takes the string from DATA
mjs2600 has joined #ruby
chrisseaton has joined #ruby
roolo has joined #ruby
cj3kim has joined #ruby
<soahccc>
Okay I just screw it and use a gem, no single file then
jollyy has joined #ruby
<dachi>
Can anyone do $gem install be_valid_asset -v '1.1.2' ? I get ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) ;(((
cj3kim has quit [Read error: Connection reset by peer]
<workmad3>
AlexRussia: it'll be in the C code for the Kernel module
<AlexRussia>
workmad3: just irb don't have run kernel.`(<string>) , cause should some `
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sparrovv_ has quit [Remote host closed the connection]
yalue has joined #ruby
r0nin has quit [Ping timeout: 265 seconds]
peterellisjones has joined #ruby
rvraghav93 has joined #ruby
aagdbl has quit [Quit: Leaving]
blandflakes has joined #ruby
dkamioka has joined #ruby
<canton7-mac>
there is no method called kernel.`. backticks are syntax, and using them calls the c function rb_f_backquote
<AlexRussia>
RubyPanther: hi man
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
Xeago has joined #ruby
<AlexRussia>
canton7-mac: sorry, but how to using method, called when i write `ls` or something like that?
bluenemo has joined #ruby
<canton7-mac>
I'm afraid I don't understand the question. To use backticks, you use them, like `ls`
mjs2600 has quit [Remote host closed the connection]
<AlexRussia>
canton7-mac: how to call Kernel method `?
<canton7-mac>
by using backticks
<AlexRussia>
`` ?
<canton7-mac>
`ls`, etc
<AlexRussia>
:(
<canton7-mac>
is that a probem?
<canton7-mac>
*problem
<apeiros>
canton7-mac: it's not just syntax, it's really a method
<apeiros>
Kernel.send(:`, 'ls -la') works
funktor has joined #ruby
<apeiros>
Kernel.`('ls -la') actually too
dkamioka has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
<AlexRussia>
apeiros: lol, but in irb dont work last :(
<canton7-mac>
hmm doesn't for me - sits there waiting for the next backtick. maybe that's just irb getting confused
<apeiros>
AlexRussia: irb's parser isn't identical with ruby's
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Xeago has quit [Ping timeout: 242 seconds]
<AlexRussia>
apeiros: ha
<canton7-mac>
ah yeah that does work
<canton7-mac>
my bad!
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
<apeiros>
when in doubt, try with ruby -e 'yourcode'
<apeiros>
anyway, the common way to use it is indeed as canton7-mac already said - just quote the code with backticks
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
AlexRussia____ has joined #ruby
x77686d has joined #ruby
<AlexRussia____>
my bad....internet connection :P
diegoviola has joined #ruby
mailo has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
mlpinit has quit [Remote host closed the connection]
rm_ has joined #ruby
bluOxigen has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
roolo has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
blackmesa has joined #ruby
no0code has joined #ruby
r0nin has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
rm_ has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
Villadelfia has joined #ruby
rails426 has quit []
bradhe has quit [Ping timeout: 240 seconds]
Villadelfia has quit [Client Quit]
browndawg has joined #ruby
vlad_starkov has joined #ruby
funktor has quit [Remote host closed the connection]
rabeldable has quit [Quit: Leaving.]
cbreeze has joined #ruby
jim87 has joined #ruby
cj3kim has joined #ruby
Al__ has quit [Quit: Al__]
SrPx has quit [Remote host closed the connection]
<jim87>
Hello! I'm trying to install therubyracer using gem install therubyracer... I've installed python 2.7, still it won't recognise it throwing the following output: http://pastebin.com/RzEXBRyt
evenix has joined #ruby
<jim87>
may you please help me? Thanks!
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Al__ has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
Xeago has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
kaspergrubbe has quit [Client Quit]
<AlexRussia____>
jim87: stop.you install therubyracer and talk about python?Oo
<workmad3>
jim87: are you installing therubyracer for rails asset pipeline stuff on windows?
<jim87>
workmad3: yep, unfortunately here at work I don't have linux :P
mjs2600 has joined #ruby
<jim87>
I need it for lessc
<workmad3>
jim87: ah crap, less...
rmorello has joined #ruby
<workmad3>
jim87: if it was for anything reasonable that just used execjs, you wouldn't need therubyracer... execjs can use scripthost on windows, so no need to install another js runtime
CreativeEmbassy has joined #ruby
<workmad3>
jim87: unfortunately, less isn't reasonable like that (it's part of the reason I never use less :)
tt1187 has quit [Ping timeout: 264 seconds]
hyperreal has quit [Quit: WeeChat 0.4.1]
<jim87>
workmad3: less or sass help in maintaining things clean. Specially now that you can create maps for them
<workmad3>
jim87: agreed... I use sass, not less
mjs2600 has quit [Remote host closed the connection]
peterellisjones has quit [Quit: Leaving.]
<workmad3>
jim87: sass doesn't need a js runtime in order to compile CSS ;)
<jim87>
workmad3: our designer is currently using Bootstrap as base, so I'd prefere using less instead of the sass' conversion
<workmad3>
jim87: and, more importantly, sass doesn't require a js runtime that allows you to call back into ruby code from JS in order to function (this is why less 'needs' therubyracer)
punkcat has joined #ruby
punkcat has left #ruby [#ruby]
mjs2600 has joined #ruby
<jim87>
workmad3: yeah, I know, I should switch to scss :P
<jim87>
soahccc: TBH I'd never trust a converted library
<soahccc>
it's offical :D
shredding has joined #ruby
<workmad3>
jim87: which is fine, as long as your designer isn't jumping straight onto bleeding-edge bootstrap updates :)
<jim87>
soahccc: yep, it's official, but they officially say they didn't made by hand
pu22l3r has quit [Remote host closed the connection]
<jim87>
workmad3: it's always good to have the latest release, in case of bug fixing... but they're not releasing a new version every day :P
<soahccc>
jim87: well the CSS at the end isn't made by hand as well
diegoviola has quit [Quit: WeeChat 0.4.3]
sparrovv has joined #ruby
davedev24 has joined #ruby
workmad3 is now known as wm3|lunch
sparrovv has quit [Remote host closed the connection]
sparrovv has joined #ruby
mrevd has joined #ruby
benzrf|offline is now known as benzrf
Elhu has joined #ruby
dEPy has joined #ruby
ruby991 has joined #ruby
mehlah has quit [Quit: Leaving...]
mrevd has left #ruby [#ruby]
Azure has quit [Quit: My MBP went to sleep.]
ruby991 has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
GreekFreak has joined #ruby
<GreekFreak>
hi all
Kneferilis has joined #ruby
stringoO has joined #ruby
<GreekFreak>
I would like to use Dir.mkdir("/directory/path/"), but I'm not sure how to tell it to create it as root.
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
abdulsattar has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
<benzrf>
GreekFreak: run the script with sud
<benzrf>
*sudo
CreativeEmbassy has quit [Quit: FO SHO]
<canton7>
there's also FileUtils.chown - change the ownership after you've made t
abdulsattar has joined #ruby
<gizmore>
isn´t there race condition exploit possible?
<GreekFreak>
benzrf, I've got that in a rake task (Ruby on Rails). so are you saying that I should run the rake task with sudo?
<GreekFreak>
canton7, I need to make it to change the ownership lol
<canton7>
"make it to change the ownership"?
nvrch has joined #ruby
CreativeEmbassy has joined #ruby
|stef_204| has joined #ruby
evenix has quit [Ping timeout: 240 seconds]
no0code has quit [Quit: Lost terminal]
<GreekFreak>
canton7, It won't let me create the directory to begin with. And I need the directory to exist to change it's ownership (which I do want to do) lol
<canton7>
ah, the first bit was the bit you didn't say
<canton7>
if the user your script's running under doesn't have permission, then run your script under another user
ntz has joined #ruby
<ntz>
hello
<canton7>
like benzrf said
<canton7>
it'd be a bit of a security hole if there was an API command to circumvent file system security :P
<ntz>
i am completely not familiar with ruby (however I am familiar with another script languages) .. how can I extend a path, where ruby checks for its libs ? something like perl @INC or include for C ?
<apeiros>
ntz: $LOAD_PATH
_justin has quit [Quit: _justin]
yfeldblum has joined #ruby
<apeiros>
plain ordinary array (can't assign, but can mutate)
aspires has joined #ruby
<GreekFreak>
canton7, agreed. But it doesn't let me to do "$sudo rake ..." It says sudo: rake: command not found
<canton7>
yay changeing environment stuffs
<ntz>
apeiros: thanks .. does it overwrite default paths ? i need to just add /opt/msma/puppet-34/usr/lib/ruby/site_ruby/1.8/
<apeiros>
ntz: it doesn't do anything. you do something to it :)
<canton7>
there's a flag to sudo to stop it mucking about with your environment so much. can't remember what it is off the top of my head
tvw has joined #ruby
benzrf is now known as benzrf|offline
<apeiros>
ntz: so if you want to keep the existing paths, then just modify it in a way which won't remove them. e.g. push your new path.
brain_shim has quit [Ping timeout: 265 seconds]
ghazi1 has joined #ruby
<ntz>
apeiros: i don't know how
<ntz>
can you show me example ?
Skelz0r_ has quit [Quit: Changing server]
<apeiros>
ntz: again, it's a normal array. how do you add a value to an array?
Dreamer3 has quit [Ping timeout: 264 seconds]
<ntz>
i don't play with any ruby code
<ntz>
when I want to put something to array in perl i'd unshift or push
Dreamer3 has joined #ruby
mansi_ has joined #ruby
<apeiros>
same here
ghazi has quit [Ping timeout: 240 seconds]
<apeiros>
well, IMO learn you some ruby. but here you go: $LOAD_PATH << 'new_path'
jlast has joined #ruby
<ntz>
apeiros: wait .. i'm fine to just write a wrapper launching our app
peterellisjones has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
cbreeze has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has quit [Ping timeout: 264 seconds]
<ntz>
i don't want to modify any code .. i need to run './foo' but it wants what is actually in /opt/msma/puppet-34/usr/lib/ruby/site_ruby/1.8/
<apeiros>
ruby -I
<ntz>
apeiros: i can put this to /usr/lib/ruby and it works then
<ntz>
okay, thanks !!!!
<Hanmac>
ntz i need to warn you but ruby1.8 is totally dead
<apeiros>
but it sounds to me like you installed your software badly
<apeiros>
you shouldn't have to use -I for installed stuff
mansi_ has quit [Remote host closed the connection]
jrhe has joined #ruby
<ntz>
apeiros: great .. it works with -I .. i'm stupid .. i was looking on rubby --help before
mansi_ has joined #ruby
yubrew has joined #ruby
<ntz>
apeiros: and I was playing with -r
<apeiros>
ntz: well, again, it should not be necessary for something you've installed properly
<apeiros>
-r performs the actual loading
<apeiros>
-I adds paths to $LOAD_PATH
chris_thomson has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<ntz>
apeiros: it is installed properly .. default installation of this thing (lib for a foo) just populates /usr/lib/ruby which we don't want, so we use --destdir=/opt/msma/foo
arietis has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
dkamioka has joined #ruby
<GreekFreak>
canton7, running system "sudo mkdir ..." seemed to work
<GreekFreak>
thanks guys
thomas3141592653 has joined #ruby
thomasxie has joined #ruby
kevind has joined #ruby
nfk has quit [Excess Flood]
xbob has joined #ruby
mansi_ has quit [Ping timeout: 265 seconds]
jlebrech has quit [Write error: Broken pipe]
yubrew has quit [Ping timeout: 240 seconds]
krz has quit [Write error: Broken pipe]
ghr has quit [Ping timeout: 264 seconds]
makara has quit [Excess Flood]
tvw has quit [Write error: Broken pipe]
zxq9 has quit [Write error: Broken pipe]
Dreamer3 has quit [Ping timeout: 464 seconds]
gaussblurinc has joined #ruby
arietis has joined #ruby
mjs2600 has quit [Write error: Broken pipe]
mjs2600_ has joined #ruby
zxq9 has joined #ruby
makara has joined #ruby
GreekFreak has quit [Quit: Leaving]
sk87 has joined #ruby
juarlex has joined #ruby
nfk has joined #ruby
francisfish has joined #ruby
dkamioka has quit [Ping timeout: 246 seconds]
mlpinit has joined #ruby
sailias has joined #ruby
jollyy has quit [Quit: jollyy]
gigetoo has joined #ruby
nateberkopec has joined #ruby
bradhe has joined #ruby
sambao21 has joined #ruby
ghr has joined #ruby
ZoanthusR has quit [Ping timeout: 264 seconds]
irishcoder has quit [Remote host closed the connection]
afreidah has joined #ruby
doodlehaus has joined #ruby
snath has quit [Ping timeout: 264 seconds]
chris_thomson has quit [Quit: Zzz...]
redlines has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jprovazn has quit [Quit: Leaving]
redlines has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
lolmaus has quit [Remote host closed the connection]
dik_dak has joined #ruby
samuel02 has quit [Remote host closed the connection]
samuel02 has joined #ruby
jeregrine has joined #ruby
irishcoder4 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
samuel02 has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
zachallett has joined #ruby
irishcoder4 has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
chrisseaton has quit []
jprovazn has joined #ruby
lolmaus has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chrisseaton has joined #ruby
cj3kim has joined #ruby
_maes_ has joined #ruby
pothibo has joined #ruby
njection_ has quit [Ping timeout: 240 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
aspires has quit []
diegoviola has joined #ruby
alexju has joined #ruby
CreativeEmbassy has joined #ruby
kaspergrubbe has joined #ruby
cj3kim has quit [Ping timeout: 265 seconds]
sparrovv has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
blandflakes has quit [Ping timeout: 245 seconds]
dzhulk1 has joined #ruby
sk87 has joined #ruby
njection has joined #ruby
dzhulk has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
hfp`away is now known as hfp
francisfish has joined #ruby
evenix has joined #ruby
codabrink has joined #ruby
lw has joined #ruby
<hfp>
Hey guys! So I'm training to code for interviews and I am stuck on a fizzbuzz question. This is my code: https://eval.in/123622. The fizz buzz counting part works fine on its own when passed three digits but the question also demands that it takes the values from a file with three numbers separated by a space on every line. When I run this script, it returns the three numbers on each line of the file but not the actual fizzbuz
<hfp>
z counting. What am I missing?
<gizmore>
i want to execute a shell command and print lines as soon as they are available... something like:
<gizmore>
system("git clone") do |line|
codabrink has quit [Client Quit]
<gizmore>
is this somehow possible?
codabrink has joined #ruby
<apeiros>
hfp: `tr('\n', '')` <-- '\n' is not a newline
momigi has quit [Remote host closed the connection]
himsin has quit [Quit: himsin]
<hfp>
gizmore: I'm no expert, but have a look at the each_line method
<apeiros>
hfp: '\n' is a literal backslash followed by a literal n
<apeiros>
"\n" <-- this is a newline
Dreamer3 has joined #ruby
momigi has joined #ruby
<hfp>
apeiros: Oh...
<apeiros>
hfp: also, if you replace newlines with an empty string, why call .each_line on it afterwards? you don't have any lines anymore…
<gizmore>
hfp: i doubt it helps, but i think process_open is what i want... thanks anyway :)
<hfp>
apeiros: Right, I did this because each_line returns \n at the end of the string and this confused split
funktor has quit [Read error: Connection reset by peer]
lw has quit [Client Quit]
<gizmore>
hfp: each_line with popen it is, i guess. Thx!
camilas__ has quit [Remote host closed the connection]
<hfp>
apeiros: I removed the tr altogether but I'm still getting the same output
camilasan has joined #ruby
failshell has joined #ruby
<hfp>
How am I supposed to see what went wrong? Is there something that will show you what your variables and values look like after every line?
camilasan has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
<apeiros>
pry-byebug with ruby 2.0+
shaunbaker has quit [Remote host closed the connection]
<apeiros>
lets you step your code
camilasa_ has quit [Read error: Connection reset by peer]
momigi has quit [Read error: Connection reset by peer]
funktor has joined #ruby
momigi has joined #ruby
<apeiros>
hfp: you don't return result in the end
camilasan has joined #ruby
<apeiros>
you return whatever .each_line returns
njection has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
crystal77 has quit [Quit: Computer has gone to sleep.]
camilasan has joined #ruby
<hfp>
so I should but an explicit `return` when I do the join?
<apeiros>
no, you should put that statement in the right place.
skammer has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
enebo has joined #ruby
camilasan has joined #ruby
<apeiros>
but you can try to put an explicit return there, to see and learn why that will create a new problem.
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<hfp>
Yes, I tried and it breaks the loop
lupine has quit [Ping timeout: 255 seconds]
camilasa_ has joined #ruby
<ntz>
apeiros: completely resolved .. do you want to know how I did it ?
camilasan has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
camilasan has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
Thanatermesis has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
njection has joined #ruby
robbyoconnor has joined #ruby
camilasan has joined #ruby
samuel02 has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
lupine has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
bigkevmcd has joined #ruby
<hfp>
apeiros: So my problem is that line 16 is never executed because the each loop always breaks on one of the ifs. Thus, it never gets to line 16 ever, correct?
ntz has left #ruby [#ruby]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
funktor has quit [Remote host closed the connection]
tt1187 has joined #ruby
benzrf|offline is now known as benzrf
njection has quit [Ping timeout: 245 seconds]
wolfsoul has joined #ruby
wolfsoul has quit [Changing host]
wolfsoul has joined #ruby
ananke has joined #ruby
lkba has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
samuel02 has quit [Ping timeout: 246 seconds]
bynaryshef has joined #ruby
makara has quit [Ping timeout: 240 seconds]
Celm has joined #ruby
razibog has joined #ruby
yubrew has joined #ruby
rdark has joined #ruby
njection has joined #ruby
TheLarkInn1 has quit [Quit: Leaving.]
yfeldblum has joined #ruby
TheLarkInn has joined #ruby
coderxin has joined #ruby
Celm has quit [Remote host closed the connection]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
osvico has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
fgo has quit [Remote host closed the connection]
mando has joined #ruby
m4n1f3st0 has joined #ruby
jollyy has joined #ruby
Thanatermesis has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
momigi has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
momigi has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
momigi has quit [Read error: Connection reset by peer]
coderxin has quit [Ping timeout: 264 seconds]
SCommette has joined #ruby
momigi has joined #ruby
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
bradhe has joined #ruby
duggiefresh has joined #ruby
zz_jrhorn424 is now known as jrhorn424
momigi_ has joined #ruby
mansi_ has joined #ruby
pu22l3r has joined #ruby
momigi_ has quit [Read error: Connection reset by peer]
claymore has joined #ruby
mansi_ has quit [Client Quit]
njection has quit [Ping timeout: 245 seconds]
snath has joined #ruby
wm3|lunch is now known as workmad3
mary5030 has joined #ruby
michael_lee has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
jprovazn has quit [Quit: Leaving]
lmickh has joined #ruby
x77686d has quit [Quit: x77686d]
alexju has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 264 seconds]
mansi has joined #ruby
njection has joined #ruby
jamto11 has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
jjbohn has joined #ruby
<alexherbo2>
Why spaces are used for function application and commas for argument ?
ghazi1 has quit [Read error: No route to host]
jamto11 has joined #ruby
kaen has joined #ruby
<Hanmac>
alexherbo2: what do you mean?
<alexherbo2>
→ foo(1, 2) or even foo 1, 2
<alexherbo2>
→ foo 1 2
momigi has joined #ruby
<alexherbo2>
like Lisp or Haskell
funktor has joined #ruby
<apeiros>
alexherbo2: spaces are not used for function application
<apeiros>
and commas are used because the syntax was defined that way.
eka_ has joined #ruby
sdouglas has joined #ruby
freerobby has joined #ruby
Celm has joined #ruby
crystal77 has joined #ruby
OdNairy has quit [Ping timeout: 265 seconds]
OdNairy has joined #ruby
<tobiasvl>
alexherbo2: parentheses are optional in ruby, commas are not
tonni has quit [Remote host closed the connection]
<tobiasvl>
if you skip the parens, you need a space
jprovazn has joined #ruby
<tobiasvl>
spaces between commas are optional
<tobiasvl>
that should cover it ;)
brain_shim has joined #ruby
jlast has joined #ruby
francisfish has quit [Remote host closed the connection]
yubrew has quit []
njection has quit [Ping timeout: 265 seconds]
<alexherbo2>
tobiasvl: why commas are not optional ?
xcv has joined #ruby
<soahccc>
As I write a lot of coffescript atm I omit commas in multiline hashes a lot, doesn't work :(
<alexherbo2>
→ foo bar(1 2) 3
camilasan has quit [Remote host closed the connection]
<alexherbo2>
→ foo (bar 1 2) 3
<tobiasvl>
alexherbo2: weeeeell, good question.
camilasan has joined #ruby
<apeiros>
alexherbo2: you can't just arbitrarily change syntax. that's why.
DrShoggoth has joined #ruby
<apeiros>
if you remove comas, lots of things will become ambiguous.
camilasan has quit [Read error: Connection reset by peer]
<tobiasvl>
apeiros: what things though?
m104 has joined #ruby
camilasan has joined #ruby
<tobiasvl>
I was trying to think of an example
<Hanmac>
alexherbo2: lets replace it with variables not numbers: foo bar(a b) is parsed as: foo(bar(a(b))) ... thats why your plan does not work
derek_c has joined #ruby
<workmad3>
tobiasvl: foo bar baz buzz... is that foo(bar baz buzz), foo(bar(baz(buzz))), ...?
<tobiasvl>
workmad3: of course there would have to be rules for precedence
arietis has quit [Quit: Computer has gone to sleep.]
prosperva has quit [Ping timeout: 245 seconds]
<apeiros>
alexherbo2: if you think you can come up with a better syntax, go ahead and create a language. if you want to code in coffescript syntax, go ahead, use coffeescript.
f0ster has joined #ruby
<workmad3>
tobiasvl: there already are... but if the rules aren't reasonably easy, it's just really annoying to keep them in mind while decoding some arbitrary code :)
<apeiros>
syntax is all about tradeoffs.
<apeiros>
matz chose to use , as arg separator. that's about it.
<f0ster>
so, I have a string that looks like , "---\nclient_id: 29\nstreet: 1142 N 13th way\nstate: AZ\nzip: '10005'\nphone: 'xxxxxxx'\ncity: Phoenix", etc,I am trying to pull out a certain field of info, right now I am just doing lines = string.split("\n"), which gives me an array of each "entry", is there an easy way I can create a hash from this array ?
<apeiros>
there's IMO little point in questions like "why does ruby use syntax construct X?" - because matz chose to design the syntax that way. that's why.
relix has joined #ruby
<apeiros>
f0ster: looks like yaml
<workmad3>
f0ster: that kinda looks like yaml...
<workmad3>
heh
<apeiros>
f0ster: YAML.load(yourstring)
<apeiros>
f0ster: pro-tip: figure what serialization your data uses instead of handrolling a parser which will fail.
Solnse has joined #ruby
<f0ster>
ha I guess so, it is the object string from a Version record in papertrail
krz has joined #ruby
flowerhack has joined #ruby
cj3kim has joined #ruby
larsam has quit [Ping timeout: 264 seconds]
paolooo has joined #ruby
njection has joined #ruby
snath has quit [Quit: Leaving]
snath has joined #ruby
<apeiros>
f0ster: I'm pretty sure the papertrail model has the deserialization built-in
<f0ster>
hmm
bal has quit [Quit: bal]
<f0ster>
im doing a hack data recovery because one of the junior devs rewrote a bunch of values in the database in sql
deadlock has joined #ruby
chrisseaton has quit []
<f0ster>
but i have the original values when the records were created
cj3kim has quit [Read error: Connection reset by peer]
rm_ has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
sparrovv has quit [Ping timeout: 265 seconds]
duggiefresh has quit [Remote host closed the connection]
duggiefresh has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Guest86340 has joined #ruby
tonni has joined #ruby
braincrash has quit [Ping timeout: 240 seconds]
lemonsparrow has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 240 seconds]
Guest5613 is now known as digifiv5e
yubrew has joined #ruby
LastWhisper has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
sparrovv has joined #ruby
njection has quit [Ping timeout: 240 seconds]
geopet has joined #ruby
Doppp has joined #ruby
rdark has quit [Ping timeout: 245 seconds]
rm_ has quit [Remote host closed the connection]
meatherly has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm_ has joined #ruby
wottam has joined #ruby
glebm has quit [Read error: Connection reset by peer]
Murci3lago has joined #ruby
glebm_ has joined #ruby
glebm has joined #ruby
sparrovv has quit [Remote host closed the connection]
rdark has joined #ruby
glebm has quit [Read error: Connection reset by peer]
thomasxie has left #ruby [#ruby]
glebm has joined #ruby
glebm has quit [Remote host closed the connection]
axsuul has joined #ruby
glebm has joined #ruby
njection has joined #ruby
yfeldblum has joined #ruby
cbreeze has joined #ruby
blackmesa has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
glebm_ has quit [Ping timeout: 264 seconds]
ga1j1n has joined #ruby
Guest86340 has quit []
gregf has quit [Quit: WeeChat 0.4.3]
wottam has quit [Quit: WeeChat 0.4.3]
Shidash has joined #ruby
skammer has quit [Ping timeout: 240 seconds]
momigi has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
mike_k has joined #ruby
<gaussblurinc>
how to filter paths '.' and '..' directories in dir_object.each?
momigi has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
sski has joined #ruby
njection has quit [Ping timeout: 265 seconds]
soulcake has quit [Read error: Connection reset by peer]
momigi_ has joined #ruby
soulcake has joined #ruby
coderxin has joined #ruby
arietis has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sski has quit [Remote host closed the connection]
Azure has joined #ruby
sski has joined #ruby
baroquebobcat has joined #ruby
sk87 has joined #ruby
<benzrf>
gaussblurinc: why not just do "next if ['.', '..'].include? dir"
momigi has quit [Ping timeout: 264 seconds]
juarlex has quit [Remote host closed the connection]
<crome>
I wish ruby came with Object#is_in?(collection) instead of doing it the other way around
ayaz has joined #ruby
<gaussblurinc>
crome: so, which way?
ayaz has quit [Max SendQ exceeded]
iceden|2 has joined #ruby
njection has joined #ruby
davidnl has joined #ruby
poguez_ has joined #ruby
greenride has joined #ruby
sski has quit [Ping timeout: 245 seconds]
greenride has left #ruby [#ruby]
<apeiros>
crome: so Object has to know every possible type passed as `collection`? not very clever.
jkamenik has quit [Ping timeout: 240 seconds]
glebm has quit [Remote host closed the connection]
greenride has joined #ruby
<crome>
apeiros: not reaily, it could just call include? self on it :)
<crome>
half assed solutions ftw
glebm has joined #ruby
<apeiros>
ew
havenwood has joined #ruby
<gaussblurinc>
and why not include no_upwards method to Dir?
bradhe has joined #ruby
dzhulk has joined #ruby
_lynX has quit [Ping timeout: 265 seconds]
_lynX has joined #ruby
willb1 has quit [Read error: Operation timed out]
vadeRcUser has joined #ruby
Gate_ is now known as Gate
danno1 has joined #ruby
cj3kim has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
vadeRcUser has quit [Client Quit]
shaunbaker has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jlebrech has joined #ruby
sdouglas has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has quit [Ping timeout: 245 seconds]
mikemar10 has joined #ruby
mikemar10 has quit [Max SendQ exceeded]
mikemar10 has joined #ruby
lampe2 has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 245 seconds]
njection has quit [Ping timeout: 252 seconds]
mroth__ is now known as mroth
maletor has joined #ruby
mroth has quit [Changing host]
mroth has joined #ruby
mroth has joined #ruby
f0ster has quit [Remote host closed the connection]
beneggett has joined #ruby
beneggett has quit [Client Quit]
agjacome has joined #ruby
toastynerd has quit [Remote host closed the connection]
rayners has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
root828 has joined #ruby
geggam has joined #ruby
funktor has quit [Remote host closed the connection]
xbob has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
njection has joined #ruby
SrPx has joined #ruby
wolfsoul has quit [Quit: Leaving]
XxLocutusxX has joined #ruby
ananke has left #ruby [#ruby]
rippa has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
XxLocutusxX has quit [Excess Flood]
byprdct has joined #ruby
willb1 has joined #ruby
IceDragon_ has joined #ruby
lw has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
lethjakman has joined #ruby
mmoretti has joined #ruby
<crome>
apeiros: it wouldnt be too bad with a method on Enumerable
alexju has joined #ruby
tylersmith has joined #ruby
diegoviola has joined #ruby
lampe2 has joined #ruby
dx7 has joined #ruby
beneggett has joined #ruby
arturaz has quit [Ping timeout: 240 seconds]
derek_c has quit [Ping timeout: 245 seconds]
nichtdiebohne1 has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
IceDragon_ has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
glebm_ has joined #ruby
kevind_ has joined #ruby
blom_ has joined #ruby
njection has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
sski has joined #ruby
sambao21 has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
jprovazn has quit [Quit: Leaving]
geoffw8_ has joined #ruby
sdouglas has joined #ruby
bousquet has joined #ruby
_maes_ has joined #ruby
maasha has quit [Quit: Page closed]
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
mrsolo has joined #ruby
glebm has quit [Ping timeout: 264 seconds]
meinside has quit [Quit: Connection closed for inactivity]
CreativeEmbassy has quit [Quit: FO SHO]
abdulsattar has quit [Ping timeout: 240 seconds]
mando has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
rm_ has joined #ruby
njection has joined #ruby
momigi_ has quit [Remote host closed the connection]
AlexRussia____ is now known as AlexRussia
momigi has joined #ruby
shaunbaker has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
cina has joined #ruby
tagrudev has quit [Ping timeout: 240 seconds]
ephemerian has quit [Ping timeout: 240 seconds]
r0nin has quit [Remote host closed the connection]
ga1j1n has quit [Remote host closed the connection]
_justin has joined #ruby
ga1j1n has joined #ruby
michaeldeol has joined #ruby
ga1j1n has quit [Remote host closed the connection]
ga1j1n has joined #ruby
cj3kim has joined #ruby
ga1j1n has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 264 seconds]
rainmanjam has joined #ruby
njection has quit [Ping timeout: 240 seconds]
jollyy has quit [Quit: jollyy]
m1lt0n_ has quit [Quit: Lost terminal]
Macaveli has quit [Ping timeout: 252 seconds]
krz has quit [Quit: WeeChat 0.4.3]
arietis has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mostlybadfly has joined #ruby
robbyoconnor has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
jollyy has joined #ruby
baroquebobcat has quit [Client Quit]
jollyy has quit [Client Quit]
cj3kim has quit [Ping timeout: 264 seconds]
s2013_ has joined #ruby
<lolmaus>
Is there a standard method to convert a file size into a human readable format?
arubin has joined #ruby
mercwithamouth has joined #ruby
njection has joined #ruby
brain_shim has quit [Read error: Connection reset by peer]
hobodave has joined #ruby
<crome>
lolmaus: divide it :)
s2013 has quit [Remote host closed the connection]
sk87 has joined #ruby
s2013_ is now known as s2013
benzrf is now known as benzrf|offline
juarlex has joined #ruby
m4n1f3st0 has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
<apeiros>
crome: Enumerable already has #include?
<apeiros>
and that's why you do enum.include?(value) and not value.is_in?(enum)
SrPx has quit [Remote host closed the connection]
<apeiros>
because it's the enums responsibility to know whether it contains a value or not. not the value's.
<apeiros>
lolmaus: activesupport has a method for it, human_number or somesuch. I keep forgetting the name.
davy_ has joined #ruby
wald0 has joined #ruby
davy_ has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: Leaving]
shaunbaker has joined #ruby
m4n1f3st0 has joined #ruby
benzrf|offline is now known as benzrf
lethjakman has quit [Ping timeout: 246 seconds]
davy_ has joined #ruby
m4n1f3st0 has quit [Client Quit]
vadviktor has quit [Read error: Operation timed out]
mikepack has joined #ruby
abstractj has quit [Read error: Operation timed out]
byprdct has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
<lolmaus>
apeiros: thx
SonicX has joined #ruby
tt1187 has quit [Ping timeout: 265 seconds]
abstractj has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
sski has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
<lolmaus>
apeiros: It's number_to_human_size and it's awesome, thank you.
vadviktor has joined #ruby
sski has joined #ruby
klaut has quit [Remote host closed the connection]
<gizmore>
i am writing an irc bot. I am creating a thread that shall system("git clone $args"). This thread shall be able to read the shell output when new lines are available... how would i achieve this best?
byprdct has joined #ruby
<apeiros>
by not using system
<apeiros>
because that won't return you the output
<apeiros>
see popen
njection has joined #ruby
<gizmore>
apeiros: i am trying with popen... getting broken pipes
<gizmore>
may i query you?
shaunbak_ has quit [Remote host closed the connection]
makara has joined #ruby
<apeiros>
private consulting costs $250/h
rvraghav93 has joined #ruby
<gizmore>
hehe
tonni has quit [Remote host closed the connection]
coderxin has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
smathieu has joined #ruby
coderxin has joined #ruby
apeiros has joined #ruby
sepp2k has joined #ruby
arietis has joined #ruby
saarinen has joined #ruby
wallerdev has joined #ruby
hobodave has joined #ruby
bluenemo has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
njection has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
ga1j1n has quit [Ping timeout: 264 seconds]
RaCx has joined #ruby
<hfp>
Hey, why is it that if I want to use Prime.new I have to also `require 'prime'` but if I do Random.new in another independent file I don't have to `require 'random'` ?
coderxin has quit [Ping timeout: 246 seconds]
LiohAu has joined #ruby
<Hanmac>
hfp: Random is in core, while Prime is in stdlib
xbob has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
enebo has quit [Quit: enebo]
timonv has quit [Remote host closed the connection]
mjw1 has joined #ruby
timonv has joined #ruby
rm_ has joined #ruby
<redlines>
what gem do people most often use for handling media transcodes?
toastynerd has joined #ruby
jim87 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
sambao21 has joined #ruby
njection has joined #ruby
xbob has quit [Ping timeout: 240 seconds]
<RubyPanther>
redlines: I call out to ffmpeg
mjw1 has quit [Client Quit]
<redlines>
just directly, with a shell command?
sambao21 has quit [Client Quit]
timonv has quit [Ping timeout: 265 seconds]
<RubyPanther>
I'm not sure what the difference would be, normally it doesn't matter
<RubyPanther>
if you want to to things like read back the available formats, then I recommend popen3 or similar
maletor has quit [Quit: Computer has gone to sleep.]
<RubyPanther>
Mostly I know what it will support, and I only need the exit value
shevy has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
<SirFunk>
Anyone know a link to a good explanation of class/class instance/instance variables and how they work with class inheritance?
<redlines>
hmm, well i'm writing something that checks the audio bitrate of a file and transcodes if it it's above a certain value, so i think i'd need a ruby gem for that functionality anyway
xbob has joined #ruby
maletor has joined #ruby
<SirFunk>
I'm trying to understand a way that a class can have a variable that can be overridden in a class that inherits it and there can be methods defined in the parent class that act upon the variable overridden in the child
<hfp>
Hanmac: Thanks. Is it safe to assume that if it's not in stdlib then it's in core?
ohwhoa has quit [Quit: woah!]
<Hanmac>
hm yo Random is in core
robbyoconnor has joined #ruby
<RubyPanther>
>> class Klass;@@omg = 'omg'; def self.omg;@@omg end end; class Klassy < Klass; @@omg = 'Ponies!!!' ; def self.omg; super end end ; Klassy.omg # SirFunk
<hfp>
Hanmac: Maybe that's why I was confused. I'm using http://devdocs.io/ruby and I guess they aggregate core with stdlib so it's hard to tell which is where without looking it up
<pineapple25>
hello could anyone help me pick a good ide for dev please?
tewlz has quit [Ping timeout: 265 seconds]
<Hanmac>
hfp hm yeah i think its better to use the primal source ;P
<hfp>
Hanmac: Understood!
njection has quit [Ping timeout: 265 seconds]
<Hanmac>
RubyPanther: ithink that shows it a bit more clean for SirFunk:
<Hanmac>
>> class Klass;@@omg = 'omg'; def self.omg;@@omg end end; class Klassy < Klass; @@omg = 'Ponies!!!' ; end ; Klass.omg
shaunbak_ has quit [Remote host closed the connection]
jobewan has joined #ruby
<SirFunk>
RubyPanther: I think i got it
shaunbaker has joined #ruby
<SirFunk>
I could have sworn I was doing something like that.... maybe active record is messing with something. I shall try again
SCommette has joined #ruby
klaut_ has joined #ruby
pyrac has joined #ruby
<RubyPanther>
SirFunk: Often people use an instance var at the class level to hide it from descendants
pineapple25 has left #ruby [#ruby]
<SirFunk>
instance var is single @, right?
klaut has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
<SirFunk>
err... that's a class instance?
axsuul has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
<SirFunk>
the terminology is a little confusing
<Hanmac>
each class is an instance of the class Class ;P
jibi has quit [Ping timeout: 264 seconds]
* Hanmac
uses "confusion" ... it is very effective
<RubyPanther>
Klass is a class of type Klass which subclasses Class and also an instance of Class
vlad_starkov has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<RubyPanther>
I hope that clears it up
<SirFunk>
Right, so class variables, class instance variables and instance variables are different things?
<wallerdev>
morning rubyists
<RubyPanther>
class instance variables and instance variables are exactly the same, just hanging off different objects
lkba has joined #ruby
jibi has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Altonymous has joined #ruby
<RubyPanther>
whereas some people hate class variables because they are too shared by relatives. But usually those are Java people.
<RubyPanther>
They hate their children, and don't want them to know what toys are in the garage
ghr has quit [Ping timeout: 265 seconds]
<wallerdev>
i can never remember the inheritance rules for class instance variables and class variables haha
klaut_ has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
njection has joined #ruby
Hanmac1 has joined #ruby
<SirFunk>
Ok. I think i've got it
<Altonymous>
I'm not really good with bit masks.. so I can't even ask this question correctly.. but I'll try. Let's say I have the number 19 and I want to know the numbers that create it… 1, 2, 16 How would I go about that in ruby?
apeiros has quit [Ping timeout: 264 seconds]
mrfoto has joined #ruby
DaniG2k has quit [Quit: leaving]
sdwrage has joined #ruby
<wallerdev>
you could bitshift it and check the last bit until the value is 0
Deele has joined #ruby
joelmo has joined #ruby
<Altonymous>
The only way I can find to do it is.. to use something like 19.to_s(2) then loop through the result and look for on bits.. then figure out what they represent
benzrf is now known as benzrf|offline
<joelmo>
what does for example: f.brew do ... code ... end mean? in ruby
Hanmac has quit [Ping timeout: 265 seconds]
<wallerdev>
Altonymous: like x = 19; (x & 1) will be the last bit value, 0 or 1, then you move all the bits one to the right with x = x >> 1, then you can check the last bit value again with (x & 1)
<wallerdev>
so youd get a 1, the first time, then a 1, then a 0, then a 0, then a 1
Mrdarknezz has quit [Ping timeout: 264 seconds]
<wallerdev>
and those would represent *1*, *2*, 4, 8, *16*
bradhe has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
paulfm has quit []
<mostlybadfly>
hola everyone
<Altonymous>
thanks walterdev, i get what you're saying appreciate it
<wallerdev>
np
<wallerdev>
hola mostlybadfly
bradhe has joined #ruby
fgo has joined #ruby
<mostlybadfly>
i had a quick question. are double quotes required for string interpolation?
<wallerdev>
yes
<mostlybadfly>
ok I guess i knew that based on my error :P
<wallerdev>
or double quote equivalent
mikecmpbll has quit [Ping timeout: 264 seconds]
<mostlybadfly>
just making sure
<mostlybadfly>
what is double quote equivalent?
<canton7>
something like %Q{hello}
<mostlybadfly>
ah ok
<mostlybadfly>
what is i wanted to do something like display double quotes as well as interpolate
<wallerdev>
thats why for maximum speed you should rewrite all ruby apps to use single quotes where you dont need interpolation
shinobi_one has joined #ruby
<mostlybadfly>
' "quote" #{x}' ?
<wallerdev>
you can use %Q if you want to use double quotes, or escape them
SonicX has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<mostlybadfly>
ah ok
<wallerdev>
%Q{ “quote” #{x}}
LiohAu has quit [Quit: LiohAu]
sdouglas has quit [Remote host closed the connection]
<mostlybadfly>
ooooo ok
<mostlybadfly>
interesting
seekage has joined #ruby
<wallerdev>
or “ \”quote\” #{x}”
browndawg has left #ruby [#ruby]
<mostlybadfly>
yeah i saw \ as an option but that seems like it can get convoluted
CorySimmons has joined #ruby
<Hanmac1>
Altonymous & wallerdev
<Hanmac1>
>> a=19;Math.log2(a).ceil.times.map {|i| a & (2 ** i) }.reject(&:zero?)
mike_k has quit [Remote host closed the connection]
njection has joined #ruby
shaunbaker has joined #ruby
<seekage>
wallerdev: yeah, that worked. for some reason it didn't take effect until restarting. thanks!
<wallerdev>
np
ghr has quit [Ping timeout: 252 seconds]
irishcoder4 has joined #ruby
yfeldblu_ has joined #ruby
Sawbones has joined #ruby
bynaryshef has quit []
crystal77 has joined #ruby
mikepack has quit [Remote host closed the connection]
<Sawbones>
Alright so I'm confused about something, When I call: puts convo['message'] I get the value returned, if I put puts convo[:message] it returns blank, why?
Xeago has joined #ruby
fannye has quit [Ping timeout: 240 seconds]
<crome>
Sawbones: because :message and 'message' are actually different keys
yfeldblu_ has quit [Read error: Connection reset by peer]
<Sawbones>
???
yfeldblu_ has joined #ruby
mikepack has joined #ruby
<shinobi_one>
Sawbones if you set convo['message'] = "the message", this is different from convo[:message] = "the message"
mikepack has quit [Remote host closed the connection]
<shinobi_one>
they are different keys
mikepack has joined #ruby
<Sawbones>
wow
<crome>
:message is a symbol. 'message' is a string
<crome>
they are totally differnt objects
<Sawbones>
i don't know how i feel about that
bradhe has quit [Remote host closed the connection]
<crome>
you should feel good about it
irishcoder4 has quit [Ping timeout: 240 seconds]
<crome>
different objects are supposed to be different keys ina hash
<Sawbones>
So if I do something like list_of_stuff[myClassInstance] = 'a_thing' that will store my class instance as a key?
CorySimmons has quit [Quit: Zzz...]
bradhe has joined #ruby
njection has quit [Ping timeout: 240 seconds]
<crome>
Sawbones: yes
<Sawbones>
ok, then I can accept it
geoffw8_ has quit [Quit: Connection closed for inactivity]
SCommette has quit [Quit: SCommette]
<shinobi_one>
Sawbones: you could do convo[:"message"] => "the message", and access it by either :message or :"message"
paolooo has joined #ruby
vpretzel_ has joined #ruby
<Sawbones>
thanks for the tip!
mikecmpbll has joined #ruby
<Sawbones>
I was using the cleverbot api to just play around and it was @params['message'] so I figured I could do that
<Sawbones>
got more ruby learning to do
<crome>
:'message' is really just a symbol, you can use this notation to create symbols with characters that would otherwise confuse the interpreter, like :'asd-qwe'
kirun has quit [Ping timeout: 240 seconds]
RubyNoviceH has joined #ruby
r0nin has quit [Remote host closed the connection]
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?!
blandflakes has quit [Ping timeout: 245 seconds]
shaunbaker has quit [Remote host closed the connection]
jgabrielygalan has quit [Quit: Leaving]
vpretzel has quit [Ping timeout: 240 seconds]
<GaryOak_>
what's an equivalent to symbols in other languages?
matchaw_ has joined #ruby
<crome>
atoms in erlang maybe?
matchaw has quit [Ping timeout: 240 seconds]
tgkokk has joined #ruby
vpretzel_ is now known as vpretzel
karl___ has joined #ruby
tgkokk has quit [Client Quit]
<RubyNoviceH>
Crome; Have you used google charts with ruby?/
<centrx>
GaryOak_, Most languages have no equivalent except strings
njection has joined #ruby
<karl___>
when assigning a string, is there an easy way to input it and escape all characters by default (such as using a different quoting scheme or something)?
jollyy has quit [Quit: jollyy]
<GaryOak_>
centrx: aren't symbols like named pointers almost?
Advocation has quit [Quit: Advocation]
<crome>
RubyNoviceH: nope
vhsmaia has quit [Remote host closed the connection]
<karl___>
nvm
<RubyNoviceH>
This is insane, I have spent the last 6 hours trying to do a simple graph!
<RubyNoviceH>
I am evne putting in FIXED data
apeiros has joined #ruby
<RubyNoviceH>
The chart is backwards
<RubyNoviceH>
w.t.f
<centrx>
GaryOak_, Can the names of named pointers be passed around and defined at runtime?
ga1j1n has joined #ruby
<GaryOak_>
centrx: nope
samuel02 has joined #ruby
bahar has joined #ruby
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?!
CorySimmons has joined #ruby
Doc_X has joined #ruby
peterellisjones has quit [Quit: Leaving.]
samuel02 has quit [Ping timeout: 246 seconds]
ga1j1n has quit [Ping timeout: 265 seconds]
<GaryOak_>
RubyNoviceH: did you mix up your y-min and y-max?
<RubyNoviceH>
GaryOak; I didn't put any of those values, because they are 'default'
<RubyNoviceH>
bar_chart = Gchart.bar(
afreidah has quit [Read error: Connection reset by peer]
<wallerdev>
usually i skip them for things where im going to need the latest version
dorei has joined #ruby
<rdark>
(TypeError/ no implicit conversion of Symbol into Integer)
endash_ has joined #ruby
RaCx has joined #ruby
<wallerdev>
you set mock_dist on line 10
<centrx>
shinobi_one, Because Ubuntu 12.04 is from 2011
<havenwood>
rdark: on line 10 you set `mock_dist` to the String `"epel", then on line 11 you `"epel"[:release]`
tvw has joined #ruby
mosez has quit [Ping timeout: 252 seconds]
<havenwood>
>> "epel"[:release]
<eval-in>
havenwood => no implicit conversion of Symbol into Integer (TypeError) ... (https://eval.in/123809)
Xiti` has joined #ruby
Salve has quit []
<dorei>
hello
<havenwood>
dorei: hi
<dorei>
any of u using capybara?
<shinobi_one>
centrx: but it's LTS :(
kirun has joined #ruby
<rdark>
havenwood: thanks, has been a long day, total code blindness
<centrx>
shinobi_one, Right, that means security updates, not feature upgrades
<havenwood>
shinobi_one: Trusty Tahr!
CaptainJet has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
* rdark
lets out a long deep sigh
<wallerdev>
ive used capybara
sepp2k1 has joined #ruby
njection has joined #ruby
<dorei>
wallerdev: i'm submiting a form by sending :enter and then a sleep 5 so as to wait for the new page to load, do you know if there's a more elegant way?
<jhass>
dorei: assert that some (unique) element on the new page (possibly a value you entered on the form?) is visible
senayar has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
smathieu has quit [Remote host closed the connection]
<jhass>
you should never have the need to sleep
<shinobi_one>
guess i'll just replace the system ruby from source >.>
toastynerd has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
chipotle has joined #ruby
endash_ has quit [Read error: Connection timed out]
dx7 has quit [Read error: Connection reset by peer]
atno has quit [Ping timeout: 246 seconds]
<bitcycle>
Hey all. Can someone help me with ruby > OpenSSL? I'm trying to add an extension to a public cert, but I'm not sure if I have the subject/issuer cert right. I'm having a hard time understanding what the subject certificate is, exactly. Can someone help me understand what the subject certificate in the extension factory is?
mike_k has joined #ruby
breakingthings has quit [Ping timeout: 252 seconds]
atno has joined #ruby
dx7 has joined #ruby
Astralum has joined #ruby
breakingthings has joined #ruby
jsilver-ipod has joined #ruby
basex has joined #ruby
bradhe has joined #ruby
mosez has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
maletor has joined #ruby
jollyy has joined #ruby
njection has joined #ruby
job_ has joined #ruby
r0bby has joined #ruby
r0bby has quit [Changing host]
r0bby has joined #ruby
toastynerd has quit [Remote host closed the connection]
Wolland has joined #ruby
apeiros has joined #ruby
<perlsyntax>
hi all
xcv has quit [Remote host closed the connection]
poikon__ has quit []
ktosiek has joined #ruby
lw has joined #ruby
Speed has left #ruby ["WeeChat 0.4.3"]
mehlah has quit [Quit: Leaving...]
mjs2600_ has quit [Remote host closed the connection]
irishcoder4 has quit [Remote host closed the connection]
<Altonymous>
anyone able to scroll far enough back in their IRC client to grab a small bit of code for me.. there was a method someone did that got the values of the on bits for a number.. so 9 = 1,8 or 19, 1,2,16
<Altonymous>
19 = 1,2,16
<Altonymous>
My client doesn't scroll far enough back.. I want to look at it again
irishcoder4 has joined #ruby
davy_ has quit [Remote host closed the connection]
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
<lethjakman>
got it! thanks
Jrz has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
f0ster has joined #ruby
njection has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
rootshift has joined #ruby
nisstyre has joined #ruby
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
RaCx has quit [Ping timeout: 252 seconds]
<jhass>
RubyNoviceH: please repost a lot less frequent
Doc_X_ has joined #ruby
Doc_X_ is now known as dylannorthrup_
Gabri has joined #ruby
wallerdev has quit [Quit: wallerdev]
<centrx>
RubyNoviceH, Have you tried looking through the GCharts code?
Doc_X has quit []
obs has quit [Quit: Saliendo]
dylannorthrup_ is now known as Doc_X
<RubyNoviceH>
centrx; Yes.. I have
geopet has quit []
<RubyNoviceH>
Centrix; I spent 4 hours on this!
irishcoder has joined #ruby
<RubyNoviceH>
Centrix; I even posted a question
<RubyNoviceH>
Centrix, If you run that code you will see.... i am not CRAZY
<centrx>
I'm just proposing the idea
<centrx>
Your line of code looks fine based on the docs
<RubyNoviceH>
Yes, see what the file generates
<RubyNoviceH>
its a backwards graph!
<centrx>
There might be something from tracking it through the code base that would explain
andrewlio has quit [Quit: Leaving.]
bradhe has joined #ruby
kristiandelay has quit [Remote host closed the connection]
<jhass>
make one operand a float (.0) or just use .fdiv instead of /
<canton7>
in order to get a floating-point output, at least one of the inputs has to be floating-point
wallerdev has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
lxsameer has quit [Quit: Leaving]
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
irishcoder has quit [Remote host closed the connection]
r0nin has joined #ruby
havenwood has quit [Remote host closed the connection]
andrewlio has joined #ruby
momigi has joined #ruby
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
havenwood has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby
<centrx>
RubyNoviceH, Did you try the vAxis/direction suggestion from the stack overflow question?
kpshek has joined #ruby
postmodern has joined #ruby
<canton7>
pastie an image of the output
<canton7>
?
njection has quit [Ping timeout: 265 seconds]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
vpretzel has quit [Remote host closed the connection]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
smathieu has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
vpretzel has joined #ruby
saarinen has joined #ruby
mansi has quit [Remote host closed the connection]
havenwood has joined #ruby
smathieu has joined #ruby
RaCx has joined #ruby
mansi has joined #ruby
xcv has joined #ruby
bklane has joined #ruby
shadoi1 has joined #ruby
coderxin has joined #ruby
anoldhacker has joined #ruby
bklane has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
mehlah has joined #ruby
<anoldhacker>
If I store a block for use in an instance eval, how can I pass args to the block at the time of evaluation?
jlast has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bynaryshef has joined #ruby
jlast has joined #ruby
<centrx>
anoldhacker, Example?
<anoldhacker>
Oh. Looks like instance_exec might work...
njection has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
Wolland has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
smathieu has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
einarj has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
_justin has quit [Quit: _justin]
x1337807x has joined #ruby
SCommette has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
momigi has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 240 seconds]
senayar has joined #ruby
mrsolo has joined #ruby
momigi has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
arcanez has joined #ruby
mansi has joined #ruby
UserNameInvalid has quit [Quit: Leaving]
lw has quit [Quit: s]
tvw has quit []
<arcanez>
is there a better way to write 'foo = "bar" if options[:foo].sym != :bar'
<arcanez>
er
<arcanez>
to_sym, not sym
SHyx0rmZ has quit [Ping timeout: 240 seconds]
<arcanez>
but any way I can not have to use .to_sym?
<centrx>
store it as a symbol?
<canton7>
!= 'bar' ?
toastynerd has joined #ruby
<arcanez>
I'd like to think I'd know if it was going to be a symbol or string
senayar has quit [Ping timeout: 240 seconds]
<arcanez>
I'd also like to think we'd always use symbols
michael_lee has quit [Quit: Ex-Chat]
bitcycle has quit [Quit: Page closed]
andrewhl has joined #ruby
jlast has joined #ruby
davy_ has joined #ruby
nanoyak has joined #ruby
jollyy has quit [Quit: jollyy]
<arcanez>
better to .to_sym when I set it or when I compare?
toastynerd has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
<centrx>
what is the data?
<centrx>
symbols are smaller and faster but not garbage collected
njection has quit [Ping timeout: 265 seconds]
<arcanez>
AR pkey
<centrx>
yeah just convert it before you set it
<arcanez>
I think rails HashWithIndifferentAccess has spoiled people into forgetting if they're using symbols or strings
Gabri has quit [Quit: Gone to sleep. ZZZzzz…]
<arcanez>
(I realize that only involves the keys, but it makes them forget to care)
<jhass>
if it's user data .to_s instead of to_sym
<jhass>
when in doubt .to_s too
<jhass>
String#to_sym can be harmful if you're not sure about the data source / the possible values, Symbol#to_s doesn't have that problem
<anoldhacker>
This code works, but I cannot pass a block in the final c.x, which is a problem. I want c.foo{ more_stuff_here } to work as well. https://gist.github.com/student/9672895
geggam has joined #ruby
<anoldhacker>
If you want to know I I'm looking at something so complex, it's because @r really is a variable—it will change with time.
bricker has quit [Ping timeout: 246 seconds]
<jhass>
I don't think you can pass a block to a block
sailias has quit [Ping timeout: 240 seconds]
<jhass>
you could let your block optionally accept a proc and convert a passed block to one
claymore has joined #ruby
<jhass>
but tbh. I have doubts the whole thing leads to a clean design
SonicX has joined #ruby
maximski has quit []
linojon has quit [Quit: linojon]
<jhass>
if you want to stick to the general design another possibility is replace your @methods hash with calls to define_method inside declare
<anoldhacker>
No doubt this is going ugly places. This is low-level plumbing of a system that violates some of the basic rules of what OO is. More of a demonstration about what can be done if these capabilities are in place than anything else.
afreidah has quit [Read error: Operation timed out]
toastynerd has quit [Remote host closed the connection]
njection has joined #ruby
larissa has joined #ruby
<shevy>
ewww
DrShoggoth has quit [Quit: Leaving]
JBreit has joined #ruby
<anoldhacker>
If I go with define method, I'll need another level of wrapping, as different R objects have different methods.
<anoldhacker>
But yeah, I can see that getting me there.
<jhass>
anoldhacker: right, you'd want to define_singleton_method inside the instance of R
nanoyak has quit [Read error: Operation timed out]
axsuul has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
tewlz has quit [Ping timeout: 240 seconds]
TripTastic has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
lolmaus_ has joined #ruby
julio_ has quit [Quit: leaving]
baroquebobcat has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
<anoldhacker>
Nope. Still bad. The block that is sent to R#method has to be executed in the context of the C instance. Using define_singleton_method ends up with it executing on the R instance...
maletor has joined #ruby
njection has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
itadder has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
afreidah has joined #ruby
<jhass>
right, let's get dirty: @r.singleton_class.instance_method(meth).bind(self).call(*args, &block)
nanoyak has joined #ruby
sambao21 has joined #ruby
<jhass>
if that ends up in any production code I'll personally find and kill you ;)
sdwrage has quit [Quit: This computer has gone to sleep]
<anoldhacker>
I thought that required self and @r to be in the same class or module...
momigi has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Ping timeout: 264 seconds]
momigi has joined #ruby
<jhass>
hm right
irishcoder has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
<anoldhacker>
yep. :( TypeError: singleton method called for a different object
pyrac has quit [Quit: pyrac]
toastynerd has joined #ruby
<RubyNoviceH>
Anyone here have knowledge with the ruby Gcharts. My Y Axis seems to be inverted?! This is literally ONE line of code http://pastebin.com/zCfLs17t
<centrx>
What have you tried so far?
RaCx has quit [Quit: Computer has gone to sleep.]
<RubyNoviceH>
Its ONE line
Wolland has joined #ruby
<RubyNoviceH>
searched through every databaswe
<RubyNoviceH>
and tried every option, except for the right one!
dingus_khan has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
njection has joined #ruby
dkamioka has joined #ruby
<jhass>
anoldhacker: you could define_singleton_method inside method_missing, call it and undef right after
sambao21 has joined #ruby
<jhass>
in an ensure block to make sure it happens even with exceptions
crystal77 has quit [Quit: Computer has gone to sleep.]
<anoldhacker>
Name mangling. I should have known it would come to that….
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass>
I mean I see no real world application for this anyway, so I wouldn't spend too much effort personally
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
dstynchula has joined #ruby
RubyNoviceH has quit [Ping timeout: 245 seconds]
axsuul has joined #ruby
Wolland has quit [Ping timeout: 265 seconds]
Jrz has joined #ruby
<anoldhacker>
Sadly, there really is. Have you heard of DCI? It's a really powerful innovation from the guy that gave us MVC. I've come to the conclusion, however, that these objects are NOT proper OO objects. Because it take so much pain to make them work.
jrhorn424 is now known as zz_jrhorn424
crystal77 has joined #ruby
klaut has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<anoldhacker>
s/take/takes/
lele` is now known as lele
<anoldhacker>
gtg
anoldhacker has left #ruby [#ruby]
dstynchu_ has quit [Ping timeout: 264 seconds]
johncjensen has joined #ruby
beneggett has joined #ruby
ejfinneran has joined #ruby
jackneill has quit [Remote host closed the connection]
njection has quit [Ping timeout: 264 seconds]
mlpinit has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
apeiros has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
benzrf|offline is now known as benzrf
<benzrf>
hej da
<shevy>
die
<shevy>
oops
<shevy>
hi
lele is now known as lele|z
lele|z is now known as lele
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
shredding has joined #ruby
workmad3 has joined #ruby
zachallett has quit [Remote host closed the connection]
rm_ has quit [Ping timeout: 265 seconds]
njection has joined #ruby
cina has quit [Ping timeout: 264 seconds]
brain_shim has quit [Remote host closed the connection]
cina has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
wallerdev has joined #ruby
gregf has joined #ruby
agrinb has joined #ruby
pablovilas has joined #ruby
saarinen has joined #ruby
yubrew has joined #ruby
samuel02 has quit [Remote host closed the connection]
<hfp>
Quick question: when you're writing code, do you start with setting the variables and then defining functions or the other way around?
SonicX has quit [Remote host closed the connection]
johncjensen has quit [Remote host closed the connection]
druiddesign has joined #ruby
njection has quit [Ping timeout: 265 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tewlz has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
OdNairy has joined #ruby
claymore has quit [Quit: Leaving]
evenix has quit [Ping timeout: 246 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
circuit has joined #ruby
<pipework>
hfp: I start with tests.
<pipework>
Sometimes I spike things out a bit though.
kbarry has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: dblessing]
blom_ has quit [Remote host closed the connection]
juarlex has joined #ruby
blom_ has joined #ruby
kpshek has quit []
njection has joined #ruby
RaCx has joined #ruby
Wolland has joined #ruby
kobain has joined #ruby
senayar has joined #ruby
geopet has quit []
kbarry has joined #ruby
bricker has joined #ruby
<hfp>
pipework: I mean when writing the actual ruby script, not when starting to plan a project/feature
Astralum has quit [Ping timeout: 246 seconds]
<shevy>
hfp variables usually come after methods
dstynchula has quit [Remote host closed the connection]
<hfp>
ok
<shevy>
hfp the less variables you can get away with, the better
blom_ has quit [Read error: Operation timed out]
popl has quit [Ping timeout: 265 seconds]
bradhe has quit [Remote host closed the connection]
<hfp>
I see, thanks.
<hfp>
Any of you tried CodeEval as an exercise?
senayar has quit [Ping timeout: 240 seconds]
<shevy>
not me
<shevy>
hfp, I think most more advanced ruby users won't need many exercise, and the amount of newcomers here in the channel is ... I think 5%, many of which just idle silently to power
bricker_ has joined #ruby
<centrx>
Your numbers are way off
x1337807x has joined #ruby
bricker_ is now known as bricker`work
x1337807x has quit [Max SendQ exceeded]
bricker has quit [Disconnected by services]
<centrx>
Although a lot of newcomers join #ruby-lang instead
x1337807x has joined #ruby
irishcoder has quit [Remote host closed the connection]
<b00stfr3ak>
thanks to who ever pointed me to dispatch tables
wjlafrance has joined #ruby
<philcrissman>
hfp: had never heard of CodeEval. But I probably wouldn't bother; I did like codewars.com a lot though.
Speed has joined #ruby
tvw has joined #ruby
<philcrissman>
Similar except it was just for personal progress, not for "unlocking awesome startup jobs".
dstynchula has joined #ruby
janjos_ has joined #ruby
x1337807x has quit [Client Quit]
pyrac has joined #ruby
blom_ has joined #ruby
njection has quit [Ping timeout: 265 seconds]
irishcoder4 has joined #ruby
Xeago has quit [Remote host closed the connection]
johncjensen has joined #ruby
timonv has quit [Remote host closed the connection]
shadoi1 has quit [Quit: Leaving.]
coderxin has quit [Remote host closed the connection]
kpshek has joined #ruby
jmpf has joined #ruby
evenix has joined #ruby
relix has joined #ruby
pyrac has quit [Ping timeout: 245 seconds]
failshell has quit []
agarie has quit [Remote host closed the connection]
<wallerdev>
looks like the first param is a number not a stream
<gizmore>
it is IO:Fd
sambao21 has quit [Quit: Computer has gone to sleep.]
<gizmore>
according to byebug and => stdout
<wallerdev>
the docs say the first param is a pid
<wallerdev>
Open4::popen4("sh") do |pid, stdin, stdout, stderr|
johncjensen has quit [Remote host closed the connection]
<gizmore>
oh
njection has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<gizmore>
let me try!
wjlafrance has quit [Quit: This computer has gone to sleep]
<gizmore>
i copy and pasted that line somewhere... probably docs wrong
xcv has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
xcv has joined #ruby
rezzack has joined #ruby
<gizmore>
awesome.... thx wallerdev!
glebm_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore>
now i only need to find out when a user/password is requested in stdin
evenix has quit [Remote host closed the connection]
obs has joined #ruby
obs has quit [Client Quit]
<hfp>
philcrissman: Yes it's also for my own progress but if I can "unlock an awesome startup job" I wouldn't mind
<philcrissman>
more power, then.
<philcrissman>
But startups are hiring like crazy right now. You seriously don't need CodeEval to get a startup job.
<hfp>
Don't I need to show I know how to do something, even if I apply for junior positions?
<philcrissman>
hfp: what's your experience level?
<wallerdev>
yeah come to SF, tons of startups here
nari has quit [Ping timeout: 240 seconds]
<philcrissman>
Or Seattle.
<philcrissman>
hfp: that's what an interview is for.
<philcrissman>
:)
ga1j1n has quit [Remote host closed the connection]
<shevy>
hfp then go and write more code!
mjs2600 has quit [Remote host closed the connection]
<wallerdev>
it can snow in seattle and no one knows how to drive in it though
<shevy>
haha
<hfp>
philcrissman: I'd say I'm junior. Never studied in school, self taught as a hobby for 10 years, now learning more seriously from the ground up to bridge the gaps I have
SHyx0rmZ has joined #ruby
ga1j1n has joined #ruby
alexju has quit [Remote host closed the connection]
<philcrissman>
hfp: okay, if you're beginning and thinking jr dev position, yes, you want something to show. But OSS/github stuff is probably more meaningful than codeeval scores.
davy__ has joined #ruby
_lynX has quit [Quit: Leaving]
baroquebobcat has joined #ruby
danshultz has quit [Remote host closed the connection]
jmpf has quit [Quit: leaving]
<wallerdev>
yeah tech companies love to see things on github
<philcrissman>
hfp: 10 years, even part time, is not bad. I'm sure you could land a jr dev role. I mean, I don't know you, but, all things being equal, I'd say it's possible.
<hfp>
philcrissman: I see. I found CodeEval through codingforinterviews.com because I wanted to see what are the kind of questions you get at coding interviews
bradhe has joined #ruby
danshultz has joined #ruby
geopet has joined #ruby
xcv has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
<shevy>
mostly stupid questions
xcv has joined #ruby
<philcrissman>
hfp: for that, it may be good practice. Interviews can be nerve wracking, always good to have some practice with that sort of problem.
njection has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
<philcrissman>
wallerdev: it snowed twice here this year. Both times it lasted on the ground less than a day. But yeah, one time (iirc) was at night, so it was cold, and yep, people don't know how to drive in it. :(
claymore has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
razibog has quit [Read error: Connection reset by peer]
<philcrissman>
Still, not bad. I came here from Minnesota, so it felt like spring all winter long. :)
razibog1 has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
<wallerdev>
i was there in like 2008 for a tech interview and they got me a rental car and it had no snow scraper, and everyone was going 25mph on the highway with like an inch of snow haha
<shevy>
Minnesota is cold?
matcouto has joined #ruby
<philcrissman>
shevy: :/
<hfp>
I live in QC, we have about 40cm of snow in the garden right now :(
* philcrissman
can't tell if trolling or serious
<shevy>
hey I cant remember unimportant areas :)
<wallerdev>
minnesota is next to texas shevy
<wallerdev>
:p
ga1j1n has quit [Ping timeout: 245 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
<shevy>
we have ... california... texas... new york and perhaps florida. seattle should fall to canada already, the rest is like non existing
<philcrissman>
wallerdev: for certain uses of the term "next to"
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
nhmood has quit [Quit: Connection closed for inactivity]
<philcrissman>
but then what would Chris Cornell feel like when he was looking California? :(
samuel02 has quit [Ping timeout: 240 seconds]
* soahccc
took out his bicycle today… tshirt weather
danshultz has quit [Ping timeout: 245 seconds]
<wallerdev>
shorts weather today in SF, super nice out
<philcrissman>
wallerdev: nice. It's nice here, too, but not shorts (though I've seen them around). Sweatshirt weather.
<maxmanders>
If I have a Gemfilem I can specify a name, version, github source etc. and do bundle install / update. How do I achieve the same effect without a Gemfile, i.e. install directly into RVM from a Github source?
hobodave has quit [Quit: Computer has gone to sleep.]
<wallerdev>
weather app says its 70 out right now here
<philcrissman>
hm, only 48 here. You win.
doodlehaus has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
ga1j1n has joined #ruby
beneggett has joined #ruby
mmoretti has quit [Quit: Leaving...]
khagler_ has joined #ruby
basex has quit [Quit: basex]
Sawbones has quit []
Gabri has joined #ruby
<benzrf>
what are the downsides of mruby atm
<benzrf>
is it super slow or anything
<centrx>
benzrf, It is a subset of the complete Ruby language. Also it's very new. Those are the downsides.
<benzrf>
subset?
<benzrf>
in what sense
njection has joined #ruby
<centrx>
benzrf, "mruby is the lightweight implementation of the Ruby language complying with part of the ISO standard."
<centrx>
I don't know what it's missing
<benzrf>
oh
<shevy>
benzrf you cant easily require stuff in it
itadder has quit []
jerius has quit []
mrsolo has quit [Quit: This computer has gone to sleep]
agrinb has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
agrinb has joined #ruby
jerius has joined #ruby
shadoi has quit [Client Quit]
<benzrf>
oh dang
<benzrf>
why not?
<shevy>
dunno
<shevy>
I think the focus may be different
<shevy>
they praise embeddability all over the homepage
<benzrf>
mm
Gabri has quit [Client Quit]
<shevy>
so perhaps you may then have to compile stuff into it
<benzrf>
well im planning on using it for my 'image-based' ruby widget
<benzrf>
so requiring should not be such a big deal
<centrx>
What is your image-based ruby widget?
irishcoder4 has quit [Remote host closed the connection]
<shevy>
require 'pp'
<shevy>
(mirb):1: undefined method 'require' for main (NoMethodError)
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<benzrf>
1 sec
perlsyntax has joined #ruby
<shevy>
I really would like to know how to extend mruby
njection has quit [Ping timeout: 265 seconds]
pyrac has joined #ruby
<benzrf>
centrx: im planning on working out serialization of mruby states
MatthewsFace has joined #ruby
<benzrf>
should i be able to figure that shit out, i intend to set up some kind of framework for interacting with a running ruby instance, smalltalk/SLIME style
<wallerdev>
thatd be cool
<benzrf>
possibly with some kind of interface like a FUSE fs corresponding to namespaces and stuff
adam_ is now known as adam12
<wallerdev>
will it have twitter integration?
<benzrf>
should i work out enough to make it usable
tcstar has quit [Read error: Connection reset by peer]
<benzrf>
(which i probably wont)
<hfp>
philcrissman: I just checked codewars, looks so much nicer haha I might switch
coderxin has joined #ruby
<benzrf>
id probably include some kinds of hooks for saving the code for methods
coderxin has quit [Read error: Connection reset by peer]
Xiti` has quit [Quit: Leaving]
<benzrf>
so that you could then export to plain text when youre done for standard use
JBreit has left #ruby ["Leaving"]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderxin has joined #ruby
momigi has quit [Remote host closed the connection]
<benzrf>
wallerdev: do you know how smalltalk/slime-style dev works
yubrew has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
<philcrissman>
hfp: codewars is pretty cool.
<wallerdev>
ive seen an old youtube video on it a few years back
<benzrf>
codewars is the shit
ejfinneran has quit [Remote host closed the connection]
zachallett has joined #ruby
jollyy has joined #ruby
<wallerdev>
basically you write live code while your application is running right?
<benzrf>
try out my katas =3
<benzrf>
wallerdev: sorta.
<benzrf>
in smalltalk, at least, the env you use to program is the program that you are modifying
<benzrf>
it's as if you did all your dev in pry
<benzrf>
but x100
ner0x has joined #ruby
Jetchisel has joined #ruby
<benzrf>
and also you can save the state of the VM and continue working later
<wallerdev>
cool :)
<benzrf>
so in the case that i actually make this thing work...
<wallerdev>
yeah i remember reading a bit about it when i was looking at new languages to learn
<ner0x>
Any UMO tools for linux (non KDE/Gnome) people in here use?
<shevy>
benzrf cool, you do a smalltalk-like VM in ruby?
<ner0x>
s/UMO/UML
<benzrf>
you could, of course, add method definition hooks to the system you're interacting with to tweet that you made a new method
<wallerdev>
ended up learning erlang instead haha
<benzrf>
=]
afreidah1 has joined #ruby
<shevy>
wallerdev hahaha
<benzrf>
shevy: im planning on harnessing mruby to do something like that
<shevy>
we need to assimilate erlang's pros into ruby
<benzrf>
=o
<hfp>
Is it less focussed on solving mathematics problems? I hate maths and a lot of the codeeval exercises are math-relted
momigi has joined #ruby
<hfp>
related*
<benzrf>
hfp: certainly
mrsolo has joined #ruby
<shevy>
hfp is this really important... I mean, just write some good projects in ruby, you will learn the same as you go and solve real problems
michaeldeol has joined #ruby
<benzrf>
hfp: just write a metacircular evaluator
nfk has quit [Quit: yawn]
<benzrf>
u goddamn pleb
<hfp>
shevy: What I like about these exercises is that they are made to show you some concepts/patterns. Kind of like the koans. If I write my own stuff I might always do things the same way and never go where the codewars/eval challenges take me
<shevy>
back then I had the pickaxe, and went through chris pine learn to program tutorial
<shevy>
benzrf where will rubyconf 2014 be?
<benzrf>
isnt it san diegok
<shevy>
damn
<hfp>
the koans are pretty cool but it's a lot to take in, you can't possibly remember eveything
<benzrf>
if you have ice cream, i will give it to you
<benzrf>
if you do not have ice cream, i will take it from you
<shevy>
lol
<benzrf>
this is an ice cream koan
rainmanjam has quit [Remote host closed the connection]
<hfp>
haha
jamto11 has joined #ruby
<shevy>
sounds like a simple toggle flag
<shevy>
var = ! var
jamto11 has quit [Client Quit]
rm__ has joined #ruby
nfk has joined #ruby
heidi1 has joined #ruby
heidi1 has quit [Client Quit]
jamto11 has joined #ruby
pablovilas has quit [Quit: Leaving]
<hfp>
yes it's only assertions to point out specific things in ruby. it's easy to cheat but it's not the point
Xiti has joined #ruby
coderxin has quit [Ping timeout: 240 seconds]
danno1 has quit [Ping timeout: 264 seconds]
nc__ has joined #ruby
tvw has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
jerius has joined #ruby
sparrovv has joined #ruby
<nc__>
hello, I am trying to use the Settingslogic gem with the newest version of Ruby 2.0 and running into some issues
<nc__>
I am wondering if anyone can suggest a definitive fork of the gem
<nc__>
I see that on github there are some languishing pull-requests to the gem that should fix the issues I'm facing (something wrong with to_ary handling in method_missing)
njection has quit [Ping timeout: 240 seconds]
ga1j1n has quit [Remote host closed the connection]
<nc__>
.rvm/gems/ruby-2.0.0-p451/gems/settingslogic-2.0.9/lib/settingslogic.rb:189:in `missing_key': Missing setting 'to_str' in 'database' section in config/settings.yml (Settingslogic::MissingSetting)
<centrx>
nc__, They are in order of popularity, and then you can measure how active they are by looking at the "Released" and "Last commit" fields
<nc__>
cool
mrsolo has quit [Quit: This computer has gone to sleep]
mike_k has quit [Remote host closed the connection]
RaCx has joined #ruby
francisfish has quit []
afreidah1 has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
mary5030 has quit [Remote host closed the connection]
kirun_ has joined #ruby
senayar has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danno1 has joined #ruby
kirun_ has quit [Client Quit]
tonni has quit [Quit: Leaving...]
byprdct has quit [Ping timeout: 246 seconds]
Amart41 has quit [Remote host closed the connection]
kirun has quit [Ping timeout: 240 seconds]
Amart41 has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
pyrac has quit [Ping timeout: 240 seconds]
njection has joined #ruby
AussieDownUnder has joined #ruby
rickruby has joined #ruby
toastynerd has quit [Remote host closed the connection]
beneggett has joined #ruby
toastynerd has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
beneggett has quit [Client Quit]
ifmatch has joined #ruby
shedd has joined #ruby
toastynerd has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
Amart41 has quit [Ping timeout: 265 seconds]
juarlex has quit [Remote host closed the connection]
juarlex has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
maletor has quit [Ping timeout: 264 seconds]
mrsolo has joined #ruby
andrewhl has quit [Quit: andrewhl]
chipotle has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
sambao21 has joined #ruby
njection has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
juarlex has quit [Read error: Connection reset by peer]
juarlex_ has joined #ruby
danno1 has quit [Ping timeout: 240 seconds]
<nc__>
fwiw, I was doing something silly (I made a mistake) - my bug was not a Settingslogic issue, but attempting to load some YAML that was already loaded.
<nc__>
thanks all
<nc__>
bye
nc__ has quit [Quit: nc__]
charliesome has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
glebm has joined #ruby
maletor has joined #ruby
Burgestrand has joined #ruby
saarinen has joined #ruby
toastynerd has joined #ruby
njection has joined #ruby
jerius has quit [Read error: Operation timed out]
mikepack has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
geggam has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
dingus_khan has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
xcv_ has joined #ruby
userx has joined #ruby
Danibal has joined #ruby
xcv has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 245 seconds]
crystal77 has joined #ruby
toastynerd has joined #ruby
fgo has joined #ruby
claymore has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 240 seconds]
shadoi has joined #ruby
vpretzel has quit [Quit: Adios!]
njection has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
SHyx0rmZ has joined #ruby
teddyp1cker has joined #ruby
Wolland has joined #ruby
johncjensen has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
havenwood has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
havenwood has joined #ruby
lethjakman has joined #ruby
chris_thomson has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
njection has joined #ruby
dkamioka has quit [Remote host closed the connection]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
nateberkopec has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
dingus_khan has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
Squarepy has quit [Quit: Leaving]
irishcoder has joined #ruby
h4mz1d has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
quatron has joined #ruby
h4mz1d has quit [Max SendQ exceeded]
vky has joined #ruby
workmad3 has joined #ruby
shedd has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
dstynchula has quit [Remote host closed the connection]
dstynchula has joined #ruby
mansi has quit [Remote host closed the connection]
SonicX has quit [Remote host closed the connection]
mansi has joined #ruby
<hfp>
I hate regexes so much
h4mz1d has joined #ruby
<shevy>
hfp yeah I do as well
h4mz1d has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
<shevy>
but they are too useful to avoid them
<shevy>
I try to keep them as simple as possible and use them only when it is really necessary or gives a clear advantage
<GaryOak_>
if you can get away with not using them it's better
toastynerd has quit [Remote host closed the connection]
matcouto has joined #ruby
grayWolf has joined #ruby
irishcoder has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
<hfp>
Nice, I was using regex101.com but I am never sure which engine to pick. I'll try rubular
dstynchula has quit [Ping timeout: 240 seconds]
atno has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
Speed has quit [Ping timeout: 265 seconds]
Burgestrand has quit [Quit: Burgestrand]
sailias has quit [Ping timeout: 240 seconds]
grayWolf is now known as Speed
<hfp>
found my regex in 2 seconds with rubular. What is the name of Ruby's regex engine? When I try on regex101 with PCRE, Pythin or JS engines, I don't get the same matches than with Rubular
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mike_k has joined #ruby
<centrx>
hfp, Onigurama I believe
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderxin has joined #ruby
<apeiros>
no longer I think. it's still based in oniguruma, but patched up afair
mrsolo has quit [Quit: This computer has gone to sleep]
<workmad3>
hfp: ruby 1.9 uses onigurama, ruby 2.0 uses Onigmo (a fork of onigurama)
dik_dak has quit [Quit: Leaving]
rickruby_ has joined #ruby
<workmad3>
*oniguruma
jobewan has quit [Quit: Leaving]
<apeiros>
"Regular expression engine is changed to Onigmo"
njection has joined #ruby
<apeiros>
yeah
<apeiros>
what workmad3 said
<apeiros>
dunno about 2.1, but I guess still Onigmo
<workmad3>
apeiros: heh :) my source was wikipedia ;)
<apeiros>
well, regexes, like every other code, just does precisely what you tell it to do…
doodlehaus has joined #ruby
tils has joined #ruby
<apeiros>
you tell it to match zero or more characters, and it happily matches zero characters.
doodlehaus has quit [Client Quit]
<dx7>
hey
<hfp>
apeiros: I understand it's just that logic can be very counter-intuitive
chrisseaton has joined #ruby
<apeiros>
then don't use intuition
<hfp>
that's why I'm learning
johncjensen has quit [Remote host closed the connection]
<apeiros>
at least until you developed a matching one for regexes
timonv has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 240 seconds]
mrsolo has joined #ruby
<hfp>
Now I have this regex http://rubular.com/r/Ff4k3VJNsE but when I try it there https://eval.in/123958 I'm getting a different result. Why is that? It seems to be stopping at the first match despite the regex?
kevind has quit [Quit: kevind]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
slice only gets you the first match
<apeiros>
rubular shows you all possible matches
jsilver-ipod has quit [Ping timeout: 265 seconds]
blom_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
njection has quit [Ping timeout: 240 seconds]
geopet has quit []
blom_ has joined #ruby
dingus_khan has joined #ruby
lethjakman has joined #ruby
vky has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0a2/20140317004002]]
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
shedd has joined #ruby
<hfp>
ah, that makes more sense
lolmaus has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<hfp>
I appreciate the explanations, I hope I'm not coming across as thick as I feel like I do
rabeldable has quit [Quit: Leaving.]
lkba has quit [Ping timeout: 252 seconds]
<shevy>
well that would mean that people would care about it
blom_ has quit [Ping timeout: 240 seconds]
<shevy>
hfp but what about those people who don't care one way or the other ;P
<bnagy>
regex is hard to write and almost impossible to read
saarinen has quit [Quit: saarinen]
<bnagy>
its only redeeming features are that it's concise and fast
afreidah1 has quit [Ping timeout: 245 seconds]
njection has joined #ruby
ifmatch has quit []
<bnagy>
so just treat it as a last resort and move on with writing good code
shedd has quit [Ping timeout: 252 seconds]
Vovko has quit [Remote host closed the connection]
centrx has joined #ruby
<benzrf>
parsec is the shit
<benzrf>
too bad this is RubyPanther
<benzrf>
*ruby
<benzrf>
god dammit
rootshift has joined #ruby
megaputer has joined #ruby
<centrx>
How has it benzrf
<gizmore>
i receive ascii control chars from a stream. when i puts it, all looks short and fine... however when i send it to irc all the whole stuff is sent... can i somehow replay the cursor movement before sending?
mansi has joined #ruby
mikepack has joined #ruby
saarinen has joined #ruby
_reset has joined #ruby
njection has quit [Ping timeout: 265 seconds]
jjbohn has quit [Quit: Leaving...]
lmickh has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
<hfp>
also, what do you favour when writing code? Readability, number of lines or execution speed?
flowerhack has quit [Quit: Connection closed for inactivity]
<dorei>
execution speed and ruby? :D
Altonymous has quit [Quit: Altonymous]
ktosiek has quit [Remote host closed the connection]
<centrx>
Clear, maintainable code is most important.
njection has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]