<j0xf>
it works in that terminal. but if I close out and open a new terminal, it's fucked. doesn't look like it adds the directory to ruby and gem to my $PATH
<j0xf>
why isn't it? should I be installing rvm / ruby differently?
supermarin has joined #ruby
kenneth_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonno11 has joined #ruby
<centrx>
robertjpayne, It sure looks like it copies in the C source
Z-Lishiss has joined #ruby
hamakn has joined #ruby
Z-Lishiss has left #ruby ["AndroIRC"]
newbie1r has quit [Ping timeout: 265 seconds]
hamakn_ has joined #ruby
meatherl_ has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
tris has joined #ruby
<havenwood>
j0xf: I think you need to add a snippet to your .bashrc or use --auto-dotfiles, you might try #rvm.
h4mz1d has joined #ruby
supermarin has quit [Ping timeout: 245 seconds]
montyboy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
hamakn has quit [Ping timeout: 264 seconds]
lyanchih has quit [Quit: lyanchih]
trhodes_ has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 252 seconds]
<havenwood>
j0xf: you could see if `echo \source ~/.rvm/scripts/rvm >> ~/.bashrc` does the trick.
Hanmac has joined #ruby
newbie1r has joined #ruby
freggles has quit [Remote host closed the connection]
<havenwood>
mozzarella: i don't know how to type the capital E one :O
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
sincereness has joined #ruby
mr_red- has quit [Quit: Bye :)]
<havenwood>
mozzarella: NOËL <- fixed ;)
axalix has joined #ruby
freezey has joined #ruby
<sincereness>
this might be more of an agorithums/comp sci question but can anyone point me to the right google links if i wanted to scrape a bunch of images and add them to tshirts via software
fgo has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
lw has quit [Quit: s]
IceDragon has quit [Quit: Space~~~]
<sincereness>
like if i had 100 images and i wanted them on 1 page on tshirts how would i build a programm to do that
<mozzarella>
"add them to tshirts"?
<havenwood>
sincereness: you might want to use the mechanize gem, i don't know about the tshirts part though
afex has quit [Ping timeout: 240 seconds]
<sincereness>
scraping the images wont be ahrd but i want the images to litterally look like they are on tshirts
<sincereness>
amazon does it all the time
<sincereness>
like they have algorithums thatll put different stuff on the same image of a black hoodie
yubrew has quit [Ping timeout: 264 seconds]
<havenwood>
sincereness: maybe a composite image with ImageMagick
maletor has quit [Quit: Computer has gone to sleep.]
jimmyy has quit [Ping timeout: 264 seconds]
afex has joined #ruby
<sincereness>
omg thanks a bunch!
CreativeEmbassy has joined #ruby
<sincereness>
Montage: juxtapose image thumbnails on an image canvas.
<sincereness>
says on the site
<pontiki>
montage i think puts them side-by-side
<sincereness>
pretty sure this is EXACTLY what i needed...sorry about the poor descriptions but this helps x1000
marcdel has quit []
CreativeEmbassy has quit [Client Quit]
<pontiki>
never the less, you're in the right area
<pontiki>
not that this sort of thing is easily automated to look good
yacks has joined #ruby
<sincereness>
yea i kinda need the colors to match but thanks for pointing me in the right direction
<sincereness>
this is exactly what i was looking for though
armyriad has joined #ruby
kitak has joined #ruby
<pontiki>
i'd suggest you play around with the command line stuff until you get the hang of it
Mongey_ has joined #ruby
<sincereness>
yea thoes links r enough to keep me busy for a while
nateberkopec has joined #ruby
hfp`away is now known as hfp
tonyhb has quit [Quit: peace]
mikecmpbll has joined #ruby
nari has quit [Ping timeout: 245 seconds]
kitak_ has quit [Ping timeout: 260 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Skaag has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
dkamioka has joined #ruby
yakko has joined #ruby
sdouglas has joined #ruby
rickruby has quit [Remote host closed the connection]
CreativeEmbassy has joined #ruby
tylersmith has joined #ruby
mikepack has joined #ruby
axalix has quit [Quit: Leaving.]
<yakko>
hey guys, I'm trying to install rubinus thru rbenv on a mac, but I'm getting "ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame", can anybody help?
lyanchih has quit [Quit: lyanchih]
supermarin has quit [Remote host closed the connection]
Vovko has quit []
meatherly has joined #ruby
j0xf has quit [Ping timeout: 265 seconds]
supermarin has joined #ruby
meatherl_ has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
zono has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
smathieu has quit [Remote host closed the connection]
sambao21 has joined #ruby
sterlingcalder has joined #ruby
tris has quit [Ping timeout: 252 seconds]
smathieu has joined #ruby
SCommette has joined #ruby
lyanchih has joined #ruby
baroquebobcat has joined #ruby
dkamioka has quit [Remote host closed the connection]
supermarin has quit [Ping timeout: 246 seconds]
jonno11 has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
Mongey has joined #ruby
tris has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
armyriad has quit [Ping timeout: 245 seconds]
Mongey_ has quit [Quit: Mongey_]
<havenwood>
yakko: you might ask in #rubinius if you haven't yet, does it abort the install? there isn't a ruby-build/rbenv channel afaik.
mlpinit has quit [Remote host closed the connection]
<yakko>
havenwood: :(
yfeldblum has joined #ruby
<havenwood>
yakko: might try updating to the latest OS X and Xcode
<havenwood>
yakko: on OS X?
<yakko>
ruby + puma is not running workers, so I'm trying jruby/rbx see if that works
<yakko>
the server is ubuntu13
<havenwood>
yakko: ahh, looked like most people running into that one were on OS X - i assumed
<havenwood>
yakko: what version of GCC?
koell has joined #ruby
<yakko>
stress tests showed no different when running 1 or 10 workers, and threads ultimately lock on the LLVM thing
danshultz has quit [Remote host closed the connection]
<yakko>
havenwood: how do I find out the version?
jjbohn has joined #ruby
<havenwood>
yakko: gcc --version
postmodern has quit [Quit: Leaving]
danshultz has joined #ruby
sdouglas has quit [Remote host closed the connection]
go|dfish has joined #ruby
<yakko>
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix
pu22l3r has quit [Remote host closed the connection]
jjbohn_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
meatherly has quit []
yfeldblum has quit [Ping timeout: 245 seconds]
Mongey_ has joined #ruby
DylanJ has joined #ruby
<havenwood>
yakko: yeah, puma does seem nice for jruby/rbx but i usually use unicorn with mri
<yakko>
I don't want to go back to uni, I want threads :(
jjbohn has quit [Ping timeout: 245 seconds]
danshultz has quit [Ping timeout: 252 seconds]
<yakko>
I want 10 workers and 16 threads in each, making my most active action serve 3000 simultaneous requests
<yakko>
=P
<havenwood>
yakko: or Rainbows::XEpollThreadPool :P
nisstyre has joined #ruby
<yakko>
tell me about it, I'm dying to test it
browndawg has joined #ruby
<yakko>
but I'd need rbx for rainbow anyways, so...
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yakko>
I just really wish I could install rubinus
<yakko>
hey...
<yakko>
maybe I can just tell Travis to test on it and keep my shit on mri in development
rezzack has quit [Ping timeout: 264 seconds]
<yakko>
can't say it sounds genius, but it solves my problem for the time being
<havenwood>
yakko: installed rbx 2.2.6 today with ruby-install, i guess you could try: ruby-install --rubies-dir ~/.rbenv/versions rbx
<yakko>
mac?
<havenwood>
yakko: make sure you're on latest Xcode and have it's command line tools installed
<havenwood>
yakko: yup
<havenwood>
its*
<yakko>
how could it not have command line tools?
larissa has quit [Quit: Leaving]
<yakko>
ok, let's update this goddamn apple thing
<havenwood>
yakko: after installing Xcode now you have to go fiddle or in Terminal.app you can run: xcode-select --install
<yakko>
oh gosh, both xcode and osx need an update
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<havenwood>
^ then click "Install"
<yakko>
hope that's what it is
<yakko>
wish me luck!!!!!
<bnagy>
yakko: fwiw rbx was why I eventually shifted to chruby / ruby-install
<havenwood>
yakko: yeah, with Apple's GCC 5.1 (you're on 5.0) i'm fine
<yakko>
oh, gotta do itunes too... no :(
<bnagy>
for some reason it just worked with ruby-install, not rbenv
<yakko>
bnagy: for real?
<bnagy>
aint even lyin bro
<bnagy>
may be nothing to do with your problem though *shrug*
axl_ has joined #ruby
<yakko>
I got caught on CWNURI, Coding While Not Using Ruby Install
<havenwood>
bnagy: i think brixen is recommending chruby now ;)
krz has joined #ruby
<havenwood>
moar mindshare!
<yakko>
quick question, what about I just fucking download this shit and install manually?
<havenwood>
yakko: get new GCC and you should be good to go i suspect, for manual install as well
<yakko>
guess ur right =/
<havenwood>
yakko: or ruby-install does work fine with rbenv as long as you tell it the --rubies-dir
<yakko>
updating itunes, here we come
jamto11_ has quit [Remote host closed the connection]
funburn has joined #ruby
Skaag has joined #ruby
<yakko>
shoot, it wants to restart
<yakko>
bbl
yakko has quit []
<havenwood>
yakko: be sure to grab the latest ruby-build since rbx 2.2.6 came out yesterday
joelteon has quit [Quit: I'm out]
<havenwood>
progress!
xuisce has joined #ruby
xuisce has quit [Client Quit]
saarinen has joined #ruby
mmitchel_ has joined #ruby
jamto11 has quit [Remote host closed the connection]
mmitchel_ has quit [Remote host closed the connection]
Mongey has joined #ruby
supermarin has joined #ruby
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
<pontiki>
jeeprs. 2.2.6??
<pontiki>
they're just flying out the door
felixflores has joined #ruby
<pontiki>
i haven't even installed 2.1 yet
klue has joined #ruby
klue has quit [Changing host]
klue has joined #ruby
Mongey_ has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
<pontiki>
i'm so behind the times!! :((
lw has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
xBradPittx has quit [Quit: Leaving]
hobodave has joined #ruby
axl_ has quit [Quit: axl_]
freerobby has quit [Quit: Leaving.]
kayloos has joined #ruby
felixflores has quit [Client Quit]
michael_lee has joined #ruby
felixflores has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
mlpinit has joined #ruby
snath has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
xuisce has joined #ruby
sdouglas has joined #ruby
supermarin has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
xuisce has quit [Client Quit]
xuisce has joined #ruby
supermarin has joined #ruby
kayloos has quit [Ping timeout: 252 seconds]
_lynX has joined #ruby
Nyyx has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
supermarin has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
michaeldeol has joined #ruby
shadoi has joined #ruby
rickruby has joined #ruby
kennym has quit [Quit: Leaving.]
nateberkopec has joined #ruby
<hfp>
Hum, I thought I had at least this much nailed in Ruby but it seems I don't... What's going on there: http://repl.it/PqC/1 ? Why is the output `nil`??
thomasxie has joined #ruby
<havenwood>
hfp: #puts returns `nil`
mikecmpbll has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
<hfp>
Ok but why doesn't it print the time like I expect it to before returning?
nateberkopec has quit [Ping timeout: 240 seconds]
sdouglas has quit [Remote host closed the connection]
<havenwood>
hfp: try eval.in so you can see printed output and use a modern Ruby: https://eval.in
sincereness has quit [Quit: Page closed]
CpuID3 has quit [Read error: Connection reset by peer]
kobain has quit [Ping timeout: 252 seconds]
thomasxie has quit [Quit: Leaving.]
<hfp>
havenwood: works there, thanks, I was very confused
_5kg has quit [Ping timeout: 264 seconds]
koell has quit [Quit: So say we all!]
thesheff17_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
kobain has joined #ruby
freezey has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
radic_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Mongey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echevemaster has quit [Remote host closed the connection]
robertjpayne has joined #ruby
<robertjpayne>
Is there any reason "\r\n" is different than '\r\n' in ruby? Maybe I'm missing something but I can't see why escape characters don't work in single quotes?
ahuman_ has quit [Quit: No Ping reply in 180 seconds.]
meinside has quit [Quit: Connection closed for inactivity]
michael_mbp has joined #ruby
apeiros has joined #ruby
mlpinit has joined #ruby
jayne has quit [Ping timeout: 619 seconds]
sski has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 246 seconds]
sski has joined #ruby
tonni has joined #ruby
kayloos has quit [Ping timeout: 264 seconds]
pyrac has joined #ruby
rails426 has joined #ruby
mlpinit has quit [Ping timeout: 246 seconds]
pyrac has quit [Client Quit]
aagdbl has joined #ruby
aagdbl has quit [Remote host closed the connection]
sski has quit [Ping timeout: 245 seconds]
aagdbl has joined #ruby
aagdbl has quit [Client Quit]
NovapaX has joined #ruby
LiohAu has joined #ruby
Skaag has quit [Ping timeout: 252 seconds]
aagdbl has joined #ruby
nateberkopec has joined #ruby
kukyakya has quit [Ping timeout: 246 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
Gadgetoid has quit [Read error: Operation timed out]
nateberkopec has quit [Ping timeout: 240 seconds]
bal has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
michael_lee has quit [Remote host closed the connection]
pierre1_ has quit [Ping timeout: 246 seconds]
bal has joined #ruby
Xeago has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Hobogrammer has quit [Remote host closed the connection]
rjk808 has quit [Remote host closed the connection]
abdulsattar has joined #ruby
Elico has quit [Quit: Leaving.]
dkamioka has quit [Remote host closed the connection]
yubrew has joined #ruby
Squarepy has joined #ruby
gneral has quit [Changing host]
gneral has joined #ruby
crystal77 has joined #ruby
ndrei has joined #ruby
estebanrules has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
Es0teric has quit [Remote host closed the connection]
momigi has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
toastynerd has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
estebanrules has joined #ruby
jprovazn has joined #ruby
rjk808 has joined #ruby
_1_alik has joined #ruby
_1_alik has left #ruby [#ruby]
aagdbl has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
shredding has joined #ruby
xuisce has quit [Quit: Leaving]
jjbohn has joined #ruby
yacks has joined #ruby
toastynerd has quit []
chipotle has quit [Quit: cya]
dumdedum has joined #ruby
<tobiasvl>
robertjpayne: that's exactly the reason: escape characters don't work in single quotes
<tobiasvl>
and interpolation
bluOxigen has quit [Ping timeout: 245 seconds]
<tobiasvl>
robertjpayne: single quotes support \' and \\ but apart from that it's a verbatim string
leonidlm has joined #ruby
<robertjpayne>
yea noticed! Thanks a ton boggling my mind for a bit
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wuest_ is now known as wuest
jjbohn has quit [Ping timeout: 245 seconds]
havenwood has quit []
aagdbl has joined #ruby
roolo has quit [Quit: Leaving...]
SteveBenner09 has joined #ruby
SteveBenner09 has quit [Client Quit]
sski has joined #ruby
BeingUntoDeath has joined #ruby
BeingUntoDeath has quit [Client Quit]
sterlingcalder has joined #ruby
<dmarr>
hi, i install librarian-chef via my Gemfile, but I don't know why theres no librarian-chef binary in my path anywhere
<tobiasvl>
dmarr: well, what's your path?
<dmarr>
it includes the following ruby related paths: /Users/dmarr/.rvm/gems/ruby-1.9.3-p448/bin:/Users/dmarr/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/dmarr/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/dmarr/.rvm/bin
<tobiasvl>
and where did you install the gem? if you don't know that: how did you install it?
tonni has quit [Remote host closed the connection]
<havenwood>
dmarr: maybe make sure you're using latest rvm: rvm get latest
kitak has quit [Ping timeout: 260 seconds]
dkamioka_ has joined #ruby
dkamioka has quit [Read error: Connection reset by peer]
<dmarr>
good call havenwood
vlad_starkov has joined #ruby
kloeri__ is now known as kloeri
aagdbl2 has joined #ruby
aagdbl has quit [Disconnected by services]
yfeldblu_ has joined #ruby
Zespre has quit [Quit: leaving]
francisfish has joined #ruby
sigurding has joined #ruby
<dmarr>
worked after another bundle install
<dmarr>
after installing latest rvm
mlpinit has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
abdulsattar has quit [Ping timeout: 246 seconds]
invinceable has quit [Ping timeout: 264 seconds]
pothibo has joined #ruby
dkamioka_ has quit [Ping timeout: 246 seconds]
thomasxie has joined #ruby
DarthGandalf has quit [Ping timeout: 252 seconds]
Zespre has joined #ruby
claymore has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
tyranjofffffffff is now known as tyranja
jack_rabbit has quit [Ping timeout: 240 seconds]
gischy_ is now known as gischy
m1lt0n_ has joined #ruby
DarthGandalf has joined #ruby
Skaag has joined #ruby
dweeb_ has joined #ruby
sk87 has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
nateberkopec has joined #ruby
dangerousdave has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
phansch has quit [Quit: WeeChat 0.4.2]
Jeticus has quit []
francisfish has quit [Ping timeout: 245 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
LexicalScope has quit [Ping timeout: 264 seconds]
andrewlio has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
ekarlso has quit [Changing host]
ekarlso has joined #ruby
ndrei has joined #ruby
nomenkun has joined #ruby
guilleiguaran has quit [Quit: Connection closed for inactivity]
yubrew has quit [Ping timeout: 264 seconds]
tonni has joined #ruby
gasbakid has joined #ruby
camilasan has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
obs has joined #ruby
estebanrules has quit [Ping timeout: 245 seconds]
BeingUntoDeath has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
Maitiu has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
<BeingUntoDeath>
i heard a guy on youtube say people in rubyland don't deal with concurrency. is this true? I'm learning code and i was thinking about looking into the tlearn gem for concurrency and neural networking
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
<dweeb_>
In my admin system I want to load images through a proxy to hide the referrer url to avoid showing info about the system. Does that make sense?
<dweeb_>
(remote images)
razibog has joined #ruby
marcdel has quit []
dkamioka has joined #ruby
lyanchih has quit [Quit: lyanchih]
<apeiros>
BeingUntoDeath: that's a broad overgeneralizing statement which as such is simply wrong
<lolmaus>
Are global methods like `puts` actually methods of some built-in object?
lyanchih has joined #ruby
senayar has quit [Remote host closed the connection]
Maitiu has joined #ruby
<apeiros>
lolmaus: they're module_function on Kernel
ikaros has joined #ruby
<apeiros>
(see Module#module_function)
senayar has joined #ruby
jjbohn has joined #ruby
<apeiros>
lolmaus: you can figure such things by using:
<lolmaus>
apeiros: so `puts` is sugar for `Kernel.puts` ?
<apeiros>
lolmaus: no
<apeiros>
Kernel.puts and puts are the same. no sugar.
<apeiros>
s/the same/copies/
<apeiros>
(technically, module_function copies the method)
nvrch has joined #ruby
<lolmaus>
apeiros: if i add a method to Kernel, will it become available in the short form?
<apeiros>
lolmaus: yes, because Object includes Kernel
<apeiros>
and every object inherits from Object (well, every except BasicObject and descendants of BasicObject)
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mourest has joined #ruby
momigi has joined #ruby
ndrei has joined #ruby
timonv has joined #ruby
dkamioka has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<lolmaus>
apeiros: so if i add a method to Kernel, ALL objects will posess it?
gberger has quit [Ping timeout: 264 seconds]
<apeiros>
yes
<apeiros>
if you add a method to Kernel, don't forget to mark it as a module_function.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Merks has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
dangerousdave has quit [Quit: Leaving...]
sk87 has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
Skaag has quit [Ping timeout: 246 seconds]
<lolmaus>
apeiros: if i mark a custom Kernel method as a module_function, it will only be available as a global method and a Kernel's method, but not in other objects?
<apeiros>
define "but not in other objects"
<apeiros>
it marks the instance method as private, so you can't call foo.puts
<lolmaus>
apeiros: and it is also possible to safely override the method in a custom class?
momigi has quit [Ping timeout: 264 seconds]
jhass|off is now known as jhass
sterlingcalder has joined #ruby
yfeldblum has joined #ruby
<lolmaus>
Yeah it is, tried it in IRB.
<lolmaus>
Thank you, apeiros.
jhass is now known as jhass|off
monkegjinni has joined #ruby
camilasan has quit [Remote host closed the connection]
DaniG2k has joined #ruby
<apeiros>
lolmaus: define "safely"
<apeiros>
it's as safe as overriding puts
<lolmaus>
apeiros: without damaging global puts behavior and raising any errors :)
<apeiros>
people can still call it via Kernel
<lolmaus>
Yeah, thx
camilasan has joined #ruby
<apeiros>
you should get rid of the notion of "global puts" (or "global method")
<apeiros>
there is no such thing
monkegjinni has quit [Remote host closed the connection]
<apeiros>
what you perceive as a global method is a method that is inherited
ndrei has quit [Ping timeout: 245 seconds]
camilasa_ has joined #ruby
_1_AS has joined #ruby
monkegjinni has joined #ruby
camilas__ has joined #ruby
sterlingcalder has quit [Ping timeout: 245 seconds]
<_1_AS>
hi
heftig has joined #ruby
camila___ has joined #ruby
jespada has joined #ruby
blackcave_ has joined #ruby
<lolmaus>
apeiros: by "global" i only meant "invokable without specifying its object".
<blackcave_>
hello
camil____ has joined #ruby
mehlah has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
cami_____ has joined #ruby
jamto11 has joined #ruby
_1_AS has quit [Client Quit]
camilasan has joined #ruby
monkegjinni has quit [Ping timeout: 252 seconds]
camilasa_ has quit [Ping timeout: 264 seconds]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
camilas__ has quit [Ping timeout: 264 seconds]
camilasa_ has joined #ruby
<blackcave_>
can anyone help me please?
camilasan has quit [Read error: Connection reset by peer]
<BeingUntoDeath>
apeiros: glad to hear it. have you used tlearn? Do you work with recurrency?
camila___ has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
<popl>
blackcave_: Just ask your question. If anyone can help they might.
<BeingUntoDeath>
that.
camilasan has joined #ruby
camil____ has quit [Ping timeout: 264 seconds]
<blackcave_>
I can't get out after using "bundle --help" command
camilasan has quit [Read error: Connection reset by peer]
<shevy>
open the door!
<blackcave_>
how?
camilasan has joined #ruby
cami_____ has quit [Ping timeout: 264 seconds]
jamto11 has quit [Ping timeout: 245 seconds]
camilasan has quit [Read error: Connection reset by peer]
jaxxstorm has left #ruby [#ruby]
<popl>
get out?
<blackcave_>
i tried escape, enter and whatever i can to quit the help message
<blackcave_>
but no luck
camilasan has joined #ruby
<popl>
blackcave_: q
<popl>
blackcave_: What OS are you using?
camilasan has quit [Read error: Connection reset by peer]
<blackcave_>
thank you soo much
<blackcave_>
that works
<blackcave_>
i'm using ubuntu
camilasan has joined #ruby
<popl>
You're probably using less as your pager.
<popl>
at the commandline type «echo $PAGER» then hit enter
<blackcave_>
pager?
camilasan has quit [Read error: Connection reset by peer]
<shevy>
I use most
camilasan has joined #ruby
jtza8 has joined #ruby
<shevy>
blackcave_ try this: ls | more
<popl>
blackcave_: It's a program that displays whatever it receives via STDIN one "page" at a time.
camilasan has quit [Read error: Connection reset by peer]
<popl>
blackcave_: Are you familiar with the command line in Windows?
camilasan has joined #ruby
<blackcave_>
yea
<blackcave_>
but new in linux
<popl>
blackcave_: less is more
<blackcave_>
how to use echo $PAGER?
<popl>
type it at the prompt, hit enter.
camilasa_ has joined #ruby
<blackcave_>
how it affects?
<popl>
it just echos the contents of $PAGER
rjk808 has quit []
<popl>
so you can see what you're using
<shevy>
blackcave_ you need to use the commandline more often, soon you will know all these things ^^^
<popl>
blackcave_: type «set» then hit enter.
<blackcave_>
sure
crystal77 has joined #ruby
<popl>
blackcave_: this will show you what is defined in your current environment.
<popl>
blackcave_: If you want help with your shell (which is probably bash) then you can ask in #bash.
<blackcave_>
there was a lot of codes
<shevy>
:)
<shevy>
popl is the teacher
nari has quit [Ping timeout: 245 seconds]
<blackcave_>
but i couldn't see first lines
elaptics`away is now known as elaptics
<popl>
blackcave_: type «set|less» then hit enter
<shevy>
blackcave_ well you already learned the pager now :P
<shevy>
set | more
<shevy>
haha :D
<popl>
or more
mlpinit has joined #ruby
klaut has quit [Remote host closed the connection]
<blackcave_>
haha
<popl>
or «set|$PAGER»
Advocation has joined #ruby
<blackcave_>
you really are a good teacher
<shevy>
don't with the flattery, you make him blush
<blackcave_>
:)
deadlock has quit [Quit: fuck off]
camilasan has quit [Ping timeout: 252 seconds]
<popl>
I'm happy to help.
armyriad has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
<blackcave_>
one more thing, when i'm reading a big doc using less, how to escape the rest of the doc?
monkegjinni has joined #ruby
<popl>
blackcave_: type «man less» then hit enter
<popl>
blackcave_: This will show you the manual page for less, which contains the information you desire.
mlpinit has quit [Ping timeout: 245 seconds]
thomasxie has quit [Quit: Leaving.]
<blackcave_>
right. and q helped here, too! :)
<jtza8>
Stylistically, when should {} be used rather than do end? Only for single-line blocks?
<shevy>
jtza8 is that not up to the one to use it?
<shevy>
{} vs. do/end have different precedence
<shevy>
you can always do:
<shevy>
Foo.new {
<shevy>
hi()
<shevy>
there()
<shevy>
}
<sigurding>
what is the best way to store configuration settings at runtime, which should be recoverable, when the application is restarted?
<shevy>
sigurding usually when I ask the same question, I am told "use a hash" :)
TMM has joined #ruby
<shevy>
you probably need to save that hash somewhere
<shevy>
like into a yaml file
<matti>
::)
<shevy>
configuration = {}
<shevy>
matti do you have 4 eyes?
<matti>
Yes.
<shevy>
ewww
<shevy>
you freak!
<matti>
:(
ahawkins has joined #ruby
S0da has joined #ruby
nateberkopec has joined #ruby
<sigurding>
shevy: ok, but what I don't like about the yaml solution is resolving and deleting entries
yubrew has joined #ruby
<shevy>
what do you mean
<shevy>
you can use methods to do that
<sigurding>
the only thing I can always to is: load the hash, change a value and dump the file completely
<apeiros>
BeingUntoDeath: I don't know tlearn. yes, I have a couple of things which run concurrently.
<sigurding>
shevy: that's what I am thinking about
* jtza8
thanks shevy.
<apeiros>
lolmaus: yes, those are methods which are defined on your object's class or any of its ancestors -> inherited methods, as I said ;-)
<shevy>
sigurding no I mean, because you don't want to store the whole thing, you would look for a replacement that would change only what is required, and I wonder what can fit there. SQL?
sski has quit [Remote host closed the connection]
deadlock has joined #ruby
<sigurding>
shevy: was an idea as well, but a bit overkill I guess
<shevy>
hehe
<sigurding>
;)
sski has joined #ruby
<shevy>
sigurding you could always do: create one file per entry in your hash key
St_Marx has quit [Quit: Ex-Chat]
<sigurding>
yep, perhaps the best idea
<shevy>
I do that myself actually. my larger projects have a dir usually called config/ and all yaml files there are assumed to be configuration files
lolmaus has quit [Ping timeout: 246 seconds]
lolmaus_ has joined #ruby
phansch has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 246 seconds]
razibog has quit [Quit: Leaving.]
crystal77 has quit [Quit: Computer has gone to sleep.]
sski has quit [Remote host closed the connection]
sski has joined #ruby
oneawaymann has joined #ruby
Al__ has joined #ruby
karupanerura is now known as zz_karupanerura
pfg has joined #ruby
mbuf has joined #ruby
armyriad has joined #ruby
<mbuf>
is there a recommended way in Ruby to open a file exclusively for reading?
timonv has quit [Remote host closed the connection]
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<apeiros>
mbuf: File.read(path) or File.readlines(path) if you want all of its content anyway
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros>
else, File.open(path, 'r') do |fh| … end
sski has quit []
sski has joined #ruby
workmad3 has joined #ruby
LexicalScope has quit [Ping timeout: 245 seconds]
BeingUntoDeath has quit [Ping timeout: 245 seconds]
AndChat| has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
klaut has joined #ruby
dkamioka has joined #ruby
alexherb1 has joined #ruby
kayloos has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
St_Marx has joined #ruby
obs has quit [Remote host closed the connection]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jjbohn has joined #ruby
obs has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
camilasa_ has quit [Remote host closed the connection]
kobain has quit []
Skaag has joined #ruby
camilasan has joined #ruby
Advocation has quit [Quit: Advocation]
arietis has joined #ruby
dkamioka has quit [Ping timeout: 252 seconds]
compleatang has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
abdulsattar has joined #ruby
sk87 has joined #ruby
kaliya has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
aspiers_ has joined #ruby
deadlock has quit [Read error: Connection reset by peer]
Rhainur has joined #ruby
<Rhainur>
how do I pass parameters to AASM events?
<apeiros>
DaniG2k: and Regexp#=== is the same as #=~
<apeiros>
so you can use that
<DaniG2k>
hmm right but can I do something like
<DaniG2k>
case "hello"
<DaniG2k>
when sorry
<DaniG2k>
str = "hello"
Rober9393 has joined #ruby
<tobiasvl>
what is that supposed to do
<tobiasvl>
when sorry?
<apeiros>
Rhainur: just commenting on what I see. and I agree with you that it doesn't seem to make sense to pass in the next state explicitly.
<DaniG2k>
case str; when str.include? "h"
<Rhainur>
apeiros: that leaves me confused on how to pass arguments in :(
<apeiros>
DaniG2k: you can't use str.include? "h"
<tobiasvl>
you can do `case str; when /h/`
<apeiros>
DaniG2k: as I already wrote, it'd evaluate as (str.include? "h") === str
aef has joined #ruby
burgess has quit [Quit: ^zzz]
<DaniG2k>
the regex version seems cleaner
<DaniG2k>
I'll go with that, thanks
glebm has joined #ruby
<apeiros>
"the regex version seems cleaner" - than what? the .include? because that makes no sense, the include *does* *not* *work*, as stated about 3 times now…
fella7s is now known as fella5s
shaunbaker has joined #ruby
mlpinit has joined #ruby
Speed has joined #ruby
Speed has quit [Client Quit]
yubrew has joined #ruby
pcarrier has quit [Quit: Connection closed for inactivity]
<DaniG2k>
apeiros: did you say it evaluates as (str.include? "h") === str
<DaniG2k>
*dint' you say
mlpinit has quit [Ping timeout: 246 seconds]
<apeiros>
yes. and now think about how well that will work out.
mengu has quit [Remote host closed the connection]
<DaniG2k>
right
<DaniG2k>
so regex :P
mostlybadfly has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
<apeiros>
gah, fuck
sparrovv has joined #ruby
<apeiros>
I named my class TableData. now I renamed the file from tabledata.rb to table_data.rb
<apeiros>
and now I notice that the gem name is tabledata
<apeiros>
damn, damn, damn
andrewlio has quit [Ping timeout: 246 seconds]
pfg has joined #ruby
<apeiros>
soooo… reregister the gem as table_data or rename files again and change constant to Tabledata
samuel02 has joined #ruby
pfg has quit [Client Quit]
yubrew has quit [Ping timeout: 246 seconds]
Skaag has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
bal has quit [Ping timeout: 245 seconds]
MrBoolean has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<sigurding>
may anyone explain me why my yaml has :item (I mean the : ), when I safe it?
<sigurding>
*save
kayloos has quit [Remote host closed the connection]
bal has joined #ruby
robertjpayne has quit [Remote host closed the connection]
rails426 has quit [Ping timeout: 252 seconds]
<apeiros>
sigurding: because you put it in?
<apeiros>
:item is a Symbol instance
<sigurding>
apeiros: I am justing saving an object
<apeiros>
that information doesn't change my answer
<Rhainur>
apeiros: I continued digging in google for that aasm issue
blackmesa has joined #ruby
yfeldblu_ has quit [Ping timeout: 252 seconds]
<Rhainur>
and I found a code sample where instead of passing in :running, someone passed in a nil
<Rhainur>
and they said "Second, notice we also pass in a nil... I'll explain that in a future blog post - in short, it is an undocumented feature in AASM where we can choose different transitions we might want to perform. Since we aren't using that, we just pass in nil.
<Rhainur>
"
andrewlio has joined #ruby
AlexRussia has joined #ruby
hermanmunster has joined #ruby
caustic has joined #ruby
dagobah has joined #ruby
oneawaymann has quit [Ping timeout: 264 seconds]
dkamioka has joined #ruby
SegFaultAX has quit [Ping timeout: 246 seconds]
evenix has joined #ruby
rcs has quit [Ping timeout: 252 seconds]
jhass|off is now known as jhass
sparrovv has quit [Remote host closed the connection]
hostess has quit [Ping timeout: 252 seconds]
jjbohn has joined #ruby
obs has quit [Quit: Saliendo]
Hien has quit [Ping timeout: 245 seconds]
Azulinho has joined #ruby
DylanJ has quit [Ping timeout: 245 seconds]
nomenkun has quit [Remote host closed the connection]
oneawayman has quit [Read error: Connection reset by peer]
IceyEC has joined #ruby
sparrovv has quit [Remote host closed the connection]
sensen has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Speed has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
<MrPopinjay>
Not really useful unless it's in the core, as no one will use it
<MrPopinjay>
Oh well
Maitiu has joined #ruby
<MrPopinjay>
Plus, I think that guy is missing the point if he's more interestedin keeping the syntax the same, rather than just wanting the functionality :P
<MrPopinjay>
Cheers though!
vlad_starkov has joined #ruby
lyanchih has quit [Ping timeout: 246 seconds]
kitak_ has quit [Remote host closed the connection]
_tpavel has joined #ruby
<dweeb_>
I have a method that sends a notification. If the method is called multiple times during 5 seconds I only want to send the last notification. What is the best way to accomplish that? (thread-safe)
shredding has quit [Quit: shredding]
Maitiu has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
Maitiu has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<abdulsattar>
dweeb_: Kind of like debounce in underscore.js?
<MrPopinjay>
dweeb_: add message to array. exit if flag is true. Else, set flag to true, wait 5 seconds, send the last message from the array and clear array contents
banister has joined #ruby
<MrPopinjay>
?
monkegjinni has quit [Remote host closed the connection]
<MrPopinjay>
oh, and then set flag to false
<dweeb_>
abdulsattar: yeah
monkegjinni has joined #ruby
<dweeb_>
MrPopinjay: sounds like a solution, I will give it a try after lunch. brb
<MrPopinjay>
tara
dkamioka has quit [Ping timeout: 264 seconds]
Skaag has quit [Ping timeout: 245 seconds]
caustic has quit []
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
YamakasY has quit [Quit: The best revenge is massive success...]
camilasa_ has joined #ruby
jjbohn has quit [Ping timeout: 252 seconds]
devyn has quit [Ping timeout: 264 seconds]
camilas__ has joined #ruby
philcrissman has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
camila___ has joined #ruby
sterlingcalder has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
camil____ has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
cami_____ has joined #ruby
camil____ has quit [Read error: Connection reset by peer]
camilasan has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
camilasa_ has joined #ruby
duggiefresh has joined #ruby
camilas__ has quit [Ping timeout: 264 seconds]
mbuf has quit [Quit: Leaving]
sterlingcalder has quit [Ping timeout: 252 seconds]
camilas__ has joined #ruby
camila___ has quit [Ping timeout: 264 seconds]
jds_ has quit [Quit: Connection closed for inactivity]
devyn has joined #ruby
camil____ has joined #ruby
cami_____ has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
sambao21 has joined #ruby
camil____ has quit [Read error: Connection reset by peer]
camil____ has joined #ruby
yasushi has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
camil____ has quit [Read error: Connection reset by peer]
camilasa_ has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
mlpinit has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
camilasa_ has joined #ruby
camilas__ has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Read error: Connection reset by peer]
larissa has joined #ruby
camilasa_ has joined #ruby
tkuchiki has joined #ruby
camilasa_ has quit [Read error: Connection reset by peer]
VTLob has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camilasan has quit [Read error: Connection reset by peer]
Mongey has joined #ruby
camilasan has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Tranquility_ is now known as Tranquility
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
chrisseaton has quit []
camilasan has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
camilasan has joined #ruby
ringaring has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
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]
camilasan has joined #ruby
sdouglas has joined #ruby
camilasa_ has joined #ruby
duggiefresh has quit [Ping timeout: 246 seconds]
mjs2600 has joined #ruby
SegFaultAX has joined #ruby
cbreeze has joined #ruby
<DaniG2k>
apeiros: remember i was asking you about case str when /regex/ before?
dblessing has joined #ruby
momigi has joined #ruby
<apeiros>
DaniG2k: yes
<DaniG2k>
apeiros: I just learned a trick that might be useful
weems has quit [Read error: Connection reset by peer]
* apeiros
hopes it isn't expressionless case
camilasan has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
sepp2k has joined #ruby
<DaniG2k>
apeiros: so the regex version is identical to "hello" =~ /lo/ right?
_tpavel has quit [Quit: Leaving]
<DaniG2k>
apeiros: if you do s = "hello"; s["lo"] it's actually the same thing
<apeiros>
no, it is identical to /lo/ === "hello"
<apeiros>
which is equivalent to what you described (not identical, tho)
<DaniG2k>
ah but this doesnt work on cases nonetheless
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Klumben has quit [Ping timeout: 240 seconds]
jpierre03 has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
Rober9393 has quit [Quit: Computer has gone to sleep.]
oneawaystyle has joined #ruby
abdulsattar has quit [Ping timeout: 246 seconds]
Merks has joined #ruby
webgen has joined #ruby
_maes_ has joined #ruby
sski has joined #ruby
yacks has quit [Quit: Leaving]
jeregrine has joined #ruby
knigitz has joined #ruby
flowerhack has joined #ruby
oneawaymann has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
petey has joined #ruby
devdazed has joined #ruby
Merks has quit [Ping timeout: 240 seconds]
phantomtiger has joined #ruby
sski has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
jobewan has joined #ruby
cover has joined #ruby
felixflores has joined #ruby
Rober9393 has joined #ruby
jpierre03 has joined #ruby
jackneill has joined #ruby
RaCx has joined #ruby
scarolan has joined #ruby
camilasa_ has quit [Ping timeout: 246 seconds]
francisfish has quit [Remote host closed the connection]
gfunc has joined #ruby
npearson has joined #ruby
Shidash has joined #ruby
evocore has joined #ruby
francisfish has joined #ruby
<evocore>
hello, I am just starting to learn ruby but having an issue with something, how can I do this self.exec *args, args.unshift('git'), system *args
<evocore>
I keep getting conversion of array into string but I thought *args kept it an array
evenix has joined #ruby
<tobiasvl>
no, the other way around
<tobiasvl>
def foo(*args) makes a method that creates an array from individual arguments
<shevy>
evocore well you have to start somewhere when it comes to gems
<shevy>
3 years down the road you'll either have (a) abandoned those projects or (b) polished them immensely anyway
jamto11_ has joined #ruby
jamto11 has joined #ruby
<shevy>
apeiros for instance abandoned his gem projects ;-)
mengu has joined #ruby
<apeiros>
shevy: hu?
<shevy>
butler!
<evocore>
ahha planning on refactoring away, at least until the main project dies but I am just beginning with it
<shevy>
the only bot with class
sterlingcalder has quit [Ping timeout: 246 seconds]
momigi has joined #ruby
<apeiros>
shevy: I'd rephrase that as "hasn't maintained some of his gems in a long time"
cover has joined #ruby
quatron has quit [Ping timeout: 246 seconds]
quatron_ is now known as quatron
<evocore>
so I have to republish the gem to fix the website :(
<shevy>
well updating a gem is trivial
<evocore>
good thing I started on 0.0.1
aryaching has quit []
aryaching_ has joined #ruby
<shevy>
yeah, I reached 0.0.147 for some project
<evocore>
is there an easy way to get the end user to update it?
<shevy>
though I think I should start to yank the old ones, nobody would use these anyway
<shevy>
by force?
quatron_ has joined #ruby
<evocore>
ya
<shevy>
sure
<shevy>
grab a shotgun
<shevy>
and start the hunt
<evocore>
ahhaha
eka has joined #ruby
<shevy>
evocore they must do some command or use something that requires a newer version
<evocore>
gotcha
<shevy>
that seems to be one of the use cases why "bundler" was created
Maitiu has quit [Read error: Connection reset by peer]
<shevy>
but other than that, a .gem file is downloaded locally and installed, among other locations, into the cache/ subdirectory
<shevy>
hmm
<shevy>
probably that part of the bundler functionality will be integrated into gems eventually
sdouglas has quit [Remote host closed the connection]
nowthatsamatt has joined #ruby
yfeldblum has joined #ruby
sdouglas has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
francisfish has joined #ruby
<evocore>
now im working on a main gem that works globally and will install the second gem hahah
quatron has quit [Ping timeout: 246 seconds]
quatron_ is now known as quatron
rayners has joined #ruby
mmachine has quit [Quit: mmachine]
kayloos has quit [Remote host closed the connection]
<evocore>
What are your thoughts on requiring mac/pc users to install a gem before they can use some software... this is based on vagrant which is ruby based so my thought process was it shouldnt put people out to much
<evocore>
alternatively they can git clone and interact with it without the CLI tools, but they would have to install the gem for the best user experience
<evocore>
not sure if that would put people off though
sdouglas has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
<gaussblurinc>
how to put pp output to logger.debug?
<Buck>
I'm trying to escape quotes in a string. But when I do this: "hur'hur".gsub(/'/, "\\'"), I get => "hurhurhur". I don't quite understand why. How do I properly escape a quote in ruby?
tils has joined #ruby
yasushi has quit [Remote host closed the connection]
<shevy>
I am also not sure that it works evocore ... are you sure it works? I never saw it used like that before
<evocore>
haha shevy: makes sense, well I'd like to make it amazing
jobewan has joined #ruby
oneawaystyle has quit [Ping timeout: 252 seconds]
<evocore>
ya it works, bad spacing on the error though that hte unless ads
<evocore>
its magic (tm)
mercwithamouth has quit [Ping timeout: 264 seconds]
<shevy>
Buck I usually add more \ until it works
<evocore>
I guess I could wrap it all in an IF just seemed not sexy
<evocore>
but I guess it cant get worse
<shevy>
Buck but what do you mean with escaping in this context, you want to add a \ before it right?
<gaussblurinc>
Buck: $1-$9999999 came from perl … :D
<shevy>
gaussblurinc case when also allows you to use regex. i = 'foobar'; case i; when /^fo/; puts 'yeah leading fo here!'; end
lmickh has joined #ruby
<gaussblurinc>
shevy: that's what I need, thanks
<shevy>
\o/
<shevy>
we need to carry the old perl hackers to ruby
Skaag has quit [Ping timeout: 264 seconds]
<Buck>
I tried python for a while, but it didn't fit like perl did
<Buck>
ruby does
mmoretti has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<shevy>
which python
<shevy>
python 3?
mansi_ has joined #ruby
<shevy>
in ruby you can use what is nice and ignore what sucks
<shevy>
like $$
<shevy>
nope
<shevy>
like @@
<shevy>
:-)
<cHarNe2>
possible to make WEBrick ignore ctrl-c?
<Buck>
no, python 2.4 I think it was
geggam has joined #ruby
ehc has joined #ruby
<shevy>
cHarNe2 not sure if you can "ignore" it, but you can intercept it: def register_sigint; Signal.trap('SIGINT') { puts 'Hi!'}; end; register_sigint
snath has quit [Ping timeout: 246 seconds]
binw_ has quit [Remote host closed the connection]
<cHarNe2>
shevy: ok, so if i intercept it before webrick, that should do the trick?
<paulfm>
cHarNe2 should be able to rescue it
lw has joined #ruby
<paulfm>
cHarNe2: rescue Interrupt
<cHarNe2>
ok, thing is that i run WEBrick in another Thread, will this work anyway?
<cHarNe2>
ok, will try it out :)
freezey has joined #ruby
lw has quit [Client Quit]
<shevy>
cHarNe2 yeah
<shevy>
hmm
bluehavana_ has quit [Quit: Connection closed for inactivity]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
tharindu has joined #ruby
anarang has quit [Quit: Leaving]
freerobby has joined #ruby
vpretzel has quit [Remote host closed the connection]
james_d_h has joined #ruby
mlpinit has quit [Remote host closed the connection]
mlpinit has joined #ruby
vpretzel has joined #ruby
perlsyntax has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
speakingcode-wor has joined #ruby
paulfm has joined #ruby
mlpinit_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
compleatang has joined #ruby
Mongey has joined #ruby
tyranja is now known as tyranjoff
paulfm has quit [Read error: Connection reset by peer]
felixflores has quit [Remote host closed the connection]
paulfm has joined #ruby
yubrew has quit []
SonicX has joined #ruby
felixflores has joined #ruby
felixflores has quit [Read error: Connection reset by peer]
felixflores has joined #ruby
mlpinit has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
tonni has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
<shevy>
what is the difference between file mode "w" and "w+"?
<tobiasvl>
overwrites
jobewan has quit [Quit: Leaving]
jobewan has joined #ruby
<tobiasvl>
no
Skaag has joined #ruby
momomomomo has joined #ruby
npearson has quit [Remote host closed the connection]
<samuel02>
does any? return on first found true or will it continuing iterating through the entire array?
oneawaymann has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
oneawaymann has joined #ruby
<chrisbolton>
Does anyone know a clean way to get the first digit in an integer? I'm running with this (49.to_s.chars.first.to_i #=> 4) currently but it's not pretty.
<dideler_work>
i have an array of objects that i want to filter based on another array of integer. e.g. sponsor.codes.select { |code| code.id == used_code_ids }
<tobiasvl>
i think that's pretty enough. first beats indexing imo
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
<dideler_work>
is there an easy way to do this?
mordocai has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
DouweM has joined #ruby
<chrisbolton>
shevy: 49[0] returns 1
<tobiasvl>
dideler_work: is the criterion that the id exists in used_code_ids?
<apeiros>
jhass: he wants to go from one problem to two problems! that's why!
<LastWhisper>
I was using the wrong variable
<LastWhisper>
I was formatting Time with year instead of day haha
<centrx>
sigurding, Usually gem install errors are for missing (build) dependencies
<paulfm>
jhass: yeah not sure why I said that
claymore has quit [Ping timeout: 264 seconds]
<LastWhisper>
As for all the regex advocates, I think that would be a great solution too, but I'd like to stay away from that as it seems generally slower for me
<LastWhisper>
not entirely sure which one is literally faster though
<sigurding>
centrx: how do I check them?
<centrx>
sigurding, In this case, it seems like an incompatibility in the gem with your build environment (gcc flags)
<jhass>
sigurding: looks like that gem doesn't like to be compiled with clang, try gcc
<apeiros>
LastWhisper: if you search your array with large strings often and write rarely, you should consider indexing it
m4n1f3st0 has quit [Ping timeout: 240 seconds]
<LastWhisper>
it's really only an array of 6 elements
<LastWhisper>
each string is like .. idk .. 30 words
<LastWhisper>
its not "that" large
<apeiros>
it isn't large at all :)
<apeiros>
that's a small array with short strings
<LastWhisper>
hehe :X
<sigurding>
jhass: gcc is installed
claymore has joined #ruby
<jhass>
sigurding: export CC=gcc
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
<sigurding>
ok, trying it
fgo has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sigurding>
jhass: no change
<jhass>
does it still try to use clang?
werdnativ has joined #ruby
jamto11__ has quit [Remote host closed the connection]
Mongey has quit [Read error: Connection reset by peer]
supermarin has quit [Remote host closed the connection]
grayWolf has joined #ruby
Mongey has joined #ruby
<sigurding>
jhass: mh installing other gems is no problem, let me see
mike_k_ has quit []
DrShoggoth has quit [Ping timeout: 264 seconds]
dideler_work has joined #ruby
mikepack has joined #ruby
maddddh has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
mikecmpbll has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
Speed has quit [Ping timeout: 246 seconds]
<havenwood>
sigurding: other gems with C-extensions work? like nokogiri?
<sigurding>
havenwood: let me try
maddddh has quit [Client Quit]
DrShoggoth has joined #ruby
larissa has quit [Quit: Leaving]
senayar_ has joined #ruby
iliketurtles has joined #ruby
<sigurding>
havenwood: nope, same error
<havenwood>
sigurding: You're on Apple LLVM version 5.1?: gcc --version
iliketurtles has quit [Max SendQ exceeded]
maddddh has joined #ruby
<sigurding>
yes: Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
m4n1f3st0 has joined #ruby
stytown has left #ruby [#ruby]
supermarin has joined #ruby
iliketurtles has joined #ruby
<sigurding>
idea, what's wrong?
kenneth has joined #ruby
<havenwood>
sigurding: Just curious, but try?: CFLAGS=-Wunused-command-line-argument-hard-error-in-future sudo gem install ruby-debug-ide
<sigurding>
to curious thing is: it worked before
Mon_Ouie has quit [Ping timeout: 264 seconds]
senayar has quit [Ping timeout: 264 seconds]
godd2 has joined #ruby
<havenwood>
sigurding: it appears to be an issue with the new Xcode command line tools
wallerdev has joined #ruby
<havenwood>
sigurding: paired with system ruby
<sigurding>
ok, understand
<sigurding>
so other option would by installing an additional version via rvm?
grayWolf has quit [Ping timeout: 240 seconds]
fraterlaetus has quit [Read error: Connection reset by peer]
fraterla_ has joined #ruby
<havenwood>
sigurding: or ruby-install/chruby or ruby-build/rbenv
<sigurding>
mh
CaptainJet has joined #ruby
Al__ has quit [Quit: Al__]
<sigurding>
there seems to be something broken fundamentally: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/psych/visitors/to_ruby.rb:266: [BUG] Segmentation fault
<havenwood>
sigurding: my ruby-install version of ruby-2.1.1 isn't having this problem at least, let me try on system ruby version
crystal77 has quit [Quit: Computer has gone to sleep.]
<havenwood>
i mean on manually installed version matching system ruby**
zachallett has joined #ruby
supermarin has quit []
RaCx has joined #ruby
supermarin has joined #ruby
Celm has joined #ruby
supermarin has quit [Client Quit]
xerxas has joined #ruby
pu22l3r_ has joined #ruby
<havenwood>
sigurding: i'm only able to reproduce this into this on system Ruby with the most recent Xcode so far
<sigurding>
havenwood: ok, so I should switch to a separate version?
<sigurding>
may I installed ruby via brew?
<havenwood>
sigurding: yeah, sure
Mongey has quit [Read error: Connection reset by peer]
<havenwood>
sigurding: just google how to get your path setup right for gems with the brew Ruby, but that should do the trick
nobitanobi has joined #ruby
Mongey has joined #ruby
<havenwood>
sigurding: Or you could ruby-install a Ruby to /usr/local.
<havenwood>
sigurding: 2.1.1 ftw! \o/
<sigurding>
havenwood: brew is installing like that. ./configure --prefix=/usr/local/Cellar/ruby/2.1.1
mikecmpbll has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
<nobitanobi>
Hi guys. I have a method that by default returns a JSON object. If an exception is caught though, I return false. Is that a 'correct' approach? Or should I always return the same type of object? https://gist.github.com/novito/9512245
<sigurding>
havenwood: how do I switch the path for the terminal?
mansi_ has quit [Remote host closed the connection]
geopet has joined #ruby
SonicX has joined #ruby
<havenwood>
sigurding: one option is to just put brew first in the path: export PATH="$(brew --prefix ruby)/bin:$PATH"
Skaag has joined #ruby
<sigurding>
havenwood: ok that worked!
<havenwood>
sigurding: now add that to your .bashrc/.zshrc or whatever dotfile is appropriate so it sticks
Fin1te has joined #ruby
<havenwood>
sigurding: if you decide you want to be able to switch between Rubies in the future, I'd recommend ruby-install/chruby - but if you need just the latest Ruby then brew should do nicely!
<sigurding>
havenwood: one version is enough,
fraterla_ has quit []
<sigurding>
havenwood: may ask you a last question regarding bundler?
mansi_ has joined #ruby
<havenwood>
sigurding: sure
<havenwood>
nobitanobi: hmm, interesting question
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
momigi_ has quit [Read error: Connection reset by peer]
Mongey has quit [Read error: Connection reset by peer]
maddddh has quit [Read error: Connection reset by peer]
estebanrules has quit [Read error: Connection reset by peer]
Mongey has joined #ruby
<havenwood>
sigurding: chruby is 99 lines of code, tries to be the simplest thing that can possibly work (other than just having a single Ruby in /usr/local)
tonni has joined #ruby
kevinykc_ has joined #ruby
jjbohn has joined #ruby
<havenwood>
which if you just need one Ruby is quite nice :)
baroquebobcat has quit [Ping timeout: 264 seconds]
maddddh has joined #ruby
Azulinho has quit [Ping timeout: 264 seconds]
<nobitanobi>
havenwood: once concern is that I need to propagate that 'exception' to other classes...And I am not particularly sure if this is a good practice in Ruby to keep passing 'nil' from method to method.
nanoyak has joined #ruby
<sigurding>
havenwood: installed it via ruby-install ruby, how do I switch the version?
rayners has quit [Remote host closed the connection]
<apeiros>
LastWhisper: I hope that helped. I'm off now for ~30min
<LastWhisper>
so apeiros I've got a create_appointment_user method, and inside of it I've got some ActiveRecord calls(dont think its relevant), that basically I change the datetime, appointment.start_datetime = Time.current+1.hour then appointment.save / end
apeiros has quit [Remote host closed the connection]
hydrat has quit [Remote host closed the connection]
<nhmood>
to see what happens on each iteration of reduce
yubrew has joined #ruby
<nhmood>
i cant figure out why the :debug key/value isn't being used or iterated on
rails426 has joined #ruby
stytown has joined #ruby
<nhmood>
i feel like each_pair.reduce |a, (k, v)| just doesn't do what i expect it to
xaq has joined #ruby
petey has quit []
fgo has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
<havenwood>
nhmood: did you mean to?: each_pair.reduce([]) |a, (k, v)|
Mongey has quit [Client Quit]
yubrew has quit [Ping timeout: 240 seconds]
<havenwood>
nhmood: or: flags.each_with_object([]) do |(k, v), a|
<apeiros>
nhmood: an if statement as the last expression in a reduce/inject is a rather bad idea
<havenwood>
nhmood: no need for #each_pair in any case
freezey has joined #ruby
<apeiros>
nhmood: you're aware that the last expression's value is fed back into the accumulator, and that and if-statement evaluates as nil if it is not satisfied?
<centrx>
nhmood, Look at the docs for Enumerable#reduce, "If you do not explicitly specify an initial value for memo, then the first element of collection is used as the initial value of memo."
<apeiros>
>> [1,2,3].inject { |acc,x| x if x.even? }
echevemaster has quit [Remote host closed the connection]
SonicX has joined #ruby
<nhmood>
apeiros: ok yeah so the first arg is the accumulator, or at least i thought it was
<sigurding>
ok, the issue I have with rufus, is that I am not able to define a initialize method in the class, where rufus is used
<apeiros>
yes. and what value does it have?
m4n1f3st0 has joined #ruby
mark_locklear has joined #ruby
<nhmood>
apeiros: if you dont specify anything, apparently the first element of the collection you are reducing on
<apeiros>
nhmood: I mean, what value will it have, except for the first iteration
_bart has quit [Ping timeout: 264 seconds]
<apeiros>
for the first iteration it is the first element of the collection, yes. but what is it in the second, third etc. iteration?
<nhmood>
oh is it the return value of the last iteration?
<apeiros>
s/last/previous/, yes
<nhmood>
ohhh i see where the problem is now
<nhmood>
i think my misunderstanding was that the accumulator BECOMES the returned value
<nhmood>
i assumed, stupidly, that it appends to
<nhmood>
which wouldnt make much sense
Azulinho has quit [Ping timeout: 246 seconds]
<nhmood>
so then yes, i can see how you could nil.push
xaq has quit [Remote host closed the connection]
<certainty>
fun fact if you're reducing a monoid, then your init value is the identity element
Mongey has joined #ruby
maddddh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
monoid? another term for scalar?
stytown has quit [Quit: stytown]
senayar has quit []
<certainty>
a monoid a set of elements and a binary operation along with an identity element
maddddh has joined #ruby
<apeiros>
I guess I've been out of academia for too long to parse that :)
<certainty>
for example the natural numbers and + along with 0 for a monoid
maletor has quit [Quit: Computer has gone to sleep.]
<certainty>
form
<apeiros>
or * and 1?
jackneill has quit [Remote host closed the connection]
<certainty>
correct
SonicX has quit [Read error: Connection reset by peer]
<centrx>
What is a monoid in terms of a group
Steve445 has quit [Quit: Steve445]
stringoO has quit [Quit: stringoO]
stytown has joined #ruby
samfisher has quit [Quit: exit error code 434]
phantasm66 has quit [Quit: *sleeeep….]
<certainty>
centrx: a monoid is a group if it fullfills the group axioms (having inverts and the operation being associative) but I may be inaccurate here. It's been a while
<certainty>
the reason why i remember the monoid thing is because haskell has a monoid typeclass
RaCx has quit [Quit: Computer has gone to sleep.]
gfunc has quit [Remote host closed the connection]
<sigurding>
dyld: lazy symbol binding failed: Symbol not found: _rb_vm_get_sourceline ...
<certainty>
sigurding: why is that?
<sigurding>
certainty: because it does not work at all
<nhmood>
do you have any more explicit examples of when a inject/reduce is the correct use? rubydocs example isnt very informative as to when you *should* use it
<certainty>
sigurding: damn, i use to use the debugger alot
m4n1f3st0 has quit [Ping timeout: 240 seconds]
<certainty>
not with ruby > 2.0 yet though
<sigurding>
certainty: it does not work here properly...
phutch1ns has quit [Ping timeout: 264 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
<sigurding>
I installed 1.6.6 which should be compatible with 2.1.1
pfg has joined #ruby
michaeldeol has joined #ruby
zerun0_ has joined #ruby
<apeiros>
sigurding: try pry-byebug ?
Lewix has quit [Remote host closed the connection]
<sigurding>
apeiros: pry-byebug?
<jhass>
sigurding: pry-byebug
<apeiros>
pry-byebug.
<sigurding>
apeiros: yeah found it
<sigurding>
does not make it any better for me
<sigurding>
currently frustrated like hell
ebetancourt has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<apeiros>
you installed and used it in less than 1min?
<sigurding>
apeiros: no
rickruby has joined #ruby
bitri has joined #ruby
sigurding has left #ruby [#ruby]
sigurding has joined #ruby
jmbrown412 has joined #ruby
godd2 has quit [Ping timeout: 240 seconds]
bitri has quit [Client Quit]
endash has quit [Read error: Connection reset by peer]
<jmbrown412>
Any ideas why I might get a 200 OK on a Net::HTTP post but a blank response.body? This is on a production server, on staging I get an actual response.body.
<jmbrown412>
I also get the response body back when using Chrome Advanced Rest Client.
<sigurding>
apeiros: I am constantly getting such errors: psych/visitors/to_ruby.rb:300: [BUG] Segmentation fault at 0x00000000000000
Mongey_ has quit [Read error: Connection reset by peer]
<Eiam>
apeiros: that seems clear like map vs each, one is for enumerating through the same object, one is for mutating
<sigurding>
but I am not able to figure out, where it comes from
Mongey has joined #ruby
<apeiros>
Eiam: I always thought it was clear too - then I visited irc…
<apeiros>
;-)
<Eiam>
apeiros: =0
<havenwood>
apeiros: haha
stytown has quit [Quit: stytown]
endash has joined #ruby
<apeiros>
to be honest… when we were looking for another ruby/rails coder, we had people who claimed themselves to be experts, who failed to understand the differences between those methods
GaryOak_ has joined #ruby
<Eiam>
so my trick works
<apeiros>
at first we thought the head hunters were inflating the skill tables of the applicants. then we started to ask them directly how they estimate their skills…
<Eiam>
I say I'm really basic
ga1j1n has joined #ruby
<Eiam>
come in, understand each vs map, and look like a king! hired!
Dwarf has joined #ruby
<apeiros>
Eiam: you'd have beaten ~80% of the candidates. I'm not kidding. :(
* certainty
is an expert at being a noop
Xiti has joined #ruby
<Eiam>
(I've been using ruby for about 2 years actively, coding for 15 years, I rate my ruby as "basic ruby")
<certainty>
noob
<sigurding>
when you need to access a yaml configuration from many different Classes, how do you design that?
mjs2600 has quit [Remote host closed the connection]
<apeiros>
certainty: so noob, you even draw the tail on the wrong side of the letter? :D
<shevy>
you don't need to know all of ruby
<sigurding>
using singleton instances?
<centrx>
Some places 95% of applicants can't do Fizz-Buzz in the language of their choice.
<shevy>
sigurding what is your configuration - a hash?
<sigurding>
shevy: right
<apeiros>
sigurding: usually a constant and set that as default arg
<shevy>
a changeable hash constant! :D
stytown has joined #ruby
<apeiros>
Config = YAML.load_file(blah); class SomeClass; def initialize(config=Config) …
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
sigurding: that way you don't paint yourself into a corner too much. gives you 2 change options - a) constants can be namespaced, b) explicitly pass in the config
<Eiam>
centrx: yeah.. I recall doing a programming interview a few years ago, I didn't do so hot in it
<certainty>
apeiros: hehe yeah, apparently :)
<Eiam>
they said I was barely a beginning programming based on their analysis
grzywacz has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
alvaro_o has joined #ruby
<Eiam>
which was a little embarrassing as I clearly don't think thats the case, but interviews are weird micro stackshots of people
freezey has quit [Remote host closed the connection]
<Eiam>
programming/programmer
<centrx>
Eiam, well fizz-buzz is pretty basic, maybe you were just nervous
<Eiam>
centrx: it wasn't fizz buzz lol
mikepack has quit [Remote host closed the connection]
bauruine has quit [Excess Flood]
<Eiam>
one question was about how to handle resources scheduling in the kernel for an OS
<Eiam>
but it was in the guise of a puzzle question
Mongey has quit [Read error: Connection reset by peer]
vongrippen is now known as jwood
<certainty>
i don't care too much about what someone knows already. I care about if he/she is able and willing to learn new stuff (quickly)
<havenwood>
Impostor syndrome and the Dunning–Kruger effect together conspire to make self assessment as meaningless as nil.
Mongey_ has joined #ruby
jwood is now known as vongrippen
jamto11_ has quit [Read error: Connection timed out]
blandflakes has joined #ruby
<Eiam>
a lot of times also there is a sense of superiority
<Eiam>
I have seen a lot of cases where people ask really hard things that have nothing to do with their jobs
<Eiam>
and they hold new hires accountable for not knowing things that they themselves didn't know, or don't have to know
tonyhb has quit [Quit: peace]
<Eiam>
and there is something to be said for A's hiring A's vs B's hiring C's or whatever, but there is also just being an ass
tonyhb has joined #ruby
bauruine has joined #ruby
jamto11_ has joined #ruby
carraroj has joined #ruby
yubrew has joined #ruby
<shevy>
hehe
nisstyre has quit [Quit: WeeChat 0.4.3]
<shevy>
classical master servant situation
<apeiros>
Eiam: it's actually quite difficult to come up with a good set of questions and properly calibrate them
shinobi_one has quit [Quit: shinobi_one]
<Eiam>
apeiros: much the same conclusion I've come to
<sigurding>
when I define vars in class A and I have clas B which extends A (B < A), how do I access the vars from A?
<Eiam>
I honestly don't like interviewing people and have been asking upper management to just let us do contract -> Hire
<apeiros>
Eiam: though, IMO the best question was: bring a piece of code you wrote or contributed to, which you're proud of, and explain it to us
<Eiam>
but some people don't wanna work like that which i can understand
fgo has joined #ruby
<apeiros>
that showed strengths & weakness of people, also their enthusiasm and preferences
byprdct has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 240 seconds]
<arubin>
Eiam: Some? I would guess that most do not.
Mongey_ has quit [Read error: Connection reset by peer]
<Eiam>
arubin: *shrug* I moved across the country on a Contract job
chuk has joined #ruby
<Eiam>
with the knowledge that I would damn well convert it to a full time job. and I did after 4 months
Mongey has joined #ruby
<bricker>
Okay I think I know the kind of response I'm going to get, but is `JSON.parse(open(href).read)` considered safe?
<Prometheian>
Anyone experience an issue on windows where their capybara tests won't hit websites? The tests think they do but if I use a save_and_open_page I just get blank pages.
shinobi_one has joined #ruby
<Eiam>
I wasn't at all worried because I knew that they would want to hire me full time and i was going to make sure they wanted it
<arubin>
Eiam: Most people are not going to quit their existing jobs for the possibility of obtaining another.
<Eiam>
arubin: right =) which is why I acknowledged that point
<slash_nick>
bricker: safe how?
<Eiam>
hiring is a rather unfortunate business
sepp2k1 has quit [Read error: Connection reset by peer]
<bricker>
slash_nick: safe in that there's no (known) way that someone could use that to run arbitrary ruby on the server running it
<bricker>
slash_nick: in the way `eval(open(href).read)` would be "not safe"
<Eiam>
arubin: I was just noting that I did exactly that
<apeiros>
bricker: I thought it should be. alas, it seems it isn't.
<bricker>
apeiros: no?
_bart has joined #ruby
dcfedde has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
Squarepy has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
ikaros has joined #ruby
<apeiros>
bricker: don't have any links handy, I'd guess googling something like "ruby json parse security vulnerability" should yield some results
dcfedde has joined #ruby
freezey has joined #ruby
<toretore>
people parse untrusted json all the time
mjs2600 has quit [Remote host closed the connection]
Speed has quit [Ping timeout: 246 seconds]
haga41 has left #ruby ["Her zaman, her yerde, en büyük Fener!"]
acrussell has quit [Quit: Leaving.]
zachallett has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
<Prometheian>
Anyone experience an issue on windows where their capybara tests won't hit websites? The tests think they do but if I use a save_and_open_page I just get blank pages. I can't send outgoing pings/tracert's so I'm worried it might be my router since my firewall is disabled. Thing is, linux machines don't have the issue.
<shinobi_one>
Prometheian: Windows? What's that?
mjs2600 has joined #ruby
Czupa has quit [Remote host closed the connection]
<Prometheian>
A widely used OS that's good for .net languages.
<shinobi_one>
Prometheian: Are you using Iron Ruby?
IceyEC has quit [Quit: IceyEC]
mjs2600 has quit [Remote host closed the connection]
maddddh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DarthGandalf has joined #ruby
<havenwood>
Prometheian: 32-bit Windows?
mikepack has joined #ruby
<Prometheian>
I am not. I've installed Ruby and Cucumber and Capybara and such, and I'm running the tests via command line. Added the stuff to my path.
mansi has quit [Ping timeout: 240 seconds]
<shinobi_one>
Prometheian: Since Linux machines don't have this issue. Can you just use those instead? They're better ;)
sparrovv has joined #ruby
enebo has quit [Ping timeout: 264 seconds]
<shevy>
Prometheian hmm - I think one problem is reception. Most people here use mostly linux or osx, not many windows users
<shevy>
I couldn't even test on windows myself
oso|away is now known as oso96_2000
<Prometheian>
I acknowledge this statement, but the windows machine I've been using has all my crap on it and it'd be easier to continue using it. :s
<havenwood>
Prometheian: Partition and install Arch, Debian, Fedora, openSUSE or FreeBSD!
<Prometheian>
Rofl
paulfm has quit []
<Prometheian>
There are some Mac's in the office that don't have the issue either.
<shevy>
do you make backups on external HDDs?
Salve has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
<Prometheian>
Have Ubuntu on a flash drive that I've got booted on another system. I CAN develop on that, but I'm looking for a way to use this one. :S
Salve has joined #ruby
ndrei_ has joined #ruby
<shinobi_one>
Prometheian: Can you dual boot on the machine? Just run Linux, but still keep Windows for whatever ;)
<shevy>
ewwww ubuntu
jamto11_ has quit [Remote host closed the connection]
mansi has joined #ruby
mikepack has quit [Remote host closed the connection]
<Prometheian>
Ubuntu has been most stable for a flash drive, tried KDE but that bugged out :(
<shinobi_one>
shevy: play nice ;p
jamto11_ has joined #ruby
<shinobi_one>
KDE is not a Linux distribution.
jamto11_ has quit [Remote host closed the connection]
<shevy>
yes, you see shinobi_one, the problem was that KDE on ubuntu did not work
<shevy>
I understand that he wants to stay on windows rather than go to ubuntu
mark_locklear has quit [Ping timeout: 246 seconds]
<Prometheian>
Point here isn't to get a linux distro, I have one... it's to make my windows system work w/ this... if it can,.
<shevy>
well you already reached the point where it works for you on linux but it does not work on windows :)
<havenwood>
Prometheian: Might try #rubyonrails. I'm not sure if there is a Windows specific Ruby channel?
<shinobi_one>
Prometheian: Our point is you're only going to have an extremely hard time trying to do this stuff on Windows.
<Prometheian>
afaik no windows ruby channel
<Prometheian>
Will try out RoR though, ty
<shinobi_one>
afaik nobody wants to do ruby on windows because it sucks.
kirun has quit [Quit: Client exiting]
<Prometheian>
If this falls through, linux it is!...
<shinobi_one>
^ it will
ndrei has quit [Ping timeout: 264 seconds]
<havenwood>
Prometheian: just do linux and don't look back!
<Prometheian>
But Linux doesn't have all the things
klaut_ has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
<havenwood>
Prometheian: boot on a partition until you realize you never switch to Windows anymore then
Mongey has joined #ruby
ndrei_ has quit [Ping timeout: 240 seconds]
<shinobi_one>
Prometheian: what things does linux not have that you need?
<havenwood>
Prometheian: or OS X :P
<havenwood>
or FreeBSD
wallerdev has joined #ruby
<Prometheian>
Atm nothing. I needed the windows install cause I was making something in Powershell and now that I've got it all tweaked and configured, plus familarlty, I'm loathe to jump ship.
ndrei has joined #ruby
<havenwood>
Prometheian: An aside, but there is a project called `pash` that is PowerShell for *nix.
<Prometheian>
Oh, yeah. And google remote desktop.
<havenwood>
Prometheian: Remote Desktop works on linux afaik.
* shinobi_one
reads This project is not yet useful for any real work.
<shevy>
Prometheian hmm but there is mono and wine
_HolyCow has quit [Quit: Leaving.]
<havenwood>
mnemon: but being actively developed, and who doesn't want to bleed a little? :O
<shinobi_one>
lol yes remote desktop over rdp and whatever works in linux
maddddh has joined #ruby
<Prometheian>
I maintain/create Regression scripts for my work (last guy who did it was bad at it) so I was going to convert some of his scripts into a good form. All that's in java. Supervisor wants me to make in Ruby so...
<havenwood>
Prometheian: JRuby?
<shinobi_one>
lol i love supervisors and their random ass things
klaut_ has quit [Ping timeout: 246 seconds]
grayWolf has quit [Ping timeout: 240 seconds]
<shevy>
haha
Rhainur has quit [Quit: Leaving]
<shevy>
that's indeed a strange switch, from java to ruby
<Prometheian>
Selenium
<Prometheian>
Java + Selenium
dcfedde has quit [Remote host closed the connection]
<shinobi_one>
"Convert all our shit from Java to Ruby, no particular reason though, just do it."
<Prometheian>
He wants in Ruby + Capybara
m4n1f3st0 has joined #ruby
<shevy>
shinobi_one I guess the supervisor must know ruby
<mnemon>
havenwood: well, I bleed enough when using powershell on windows already :(
<Prometheian>
I was converting shitty java scripts into good java scripts... But...
<Prometheian>
Most of my shop uses Ruby
<havenwood>
mnemon: hehe
dcfedde has joined #ruby
<shevy>
mnemon but the idea behind it is cool, I'd wish we'd have object orientated shells on linux
<shinobi_one>
Prometheian: Ruby + Selenium works, you wouldn't have to really rewrite everything
<Prometheian>
Nope! Have to use Capybara.
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
<havenwood>
Prometheian: well, ought work on 32-bit Windows, with 64 i think you're out in the cold
<shinobi_one>
lol
<Prometheian>
Cause that's what they're using...
<shevy>
shinobi_one you don't get it, the supervisor said what he must use!!!
<shinobi_one>
lol
kennym has quit [Quit: Leaving.]
<mnemon>
shevy: yeah, it's great for managing windows environments, but it's also slow as hell and buggy :/
<Prometheian>
This shit happens whenever I bring up a project or something I'm working on. He's convinced that I'll end up liking Ruby but I've grown up on Java and C#. Ruby isn't bad but Ruby + Capybara feels strange to me.
<havenwood>
i feel lucky that nothing i work on touches windows
wallerdev has quit [Quit: wallerdev]
<shinobi_one>
Prometheian: He's an idiot if he's making you switch these things for no reason other than to do it.
<shinobi_one>
But hey, aren't most supervisors?
<Prometheian>
lol...
mojjojo has joined #ruby
wallerdev has joined #ruby
mojjojo has left #ruby [#ruby]
mojjojo has joined #ruby
<havenwood>
Prometheian: Use JRuby and just require the existing jar.
<havenwood>
:P
<havenwood>
done.
rootshift has quit [Ping timeout: 264 seconds]
<Prometheian>
Sadly won't work out like that :S
r0nin has joined #ruby
RaCx has joined #ruby
timonv has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
sailias has quit [Ping timeout: 240 seconds]
tyfighter has joined #ruby
<havenwood>
go figure
<shinobi_one>
he HAS to use Ruby + Capybara lol
nateberkopec has joined #ruby
rootshift has joined #ruby
YamakasY has joined #ruby
<havenwood>
JRuby's future with Truffle really is exciting!
<Prometheian>
I don't think this will be hugely difficult, but it'll hurt my productivity while I adjust
<shevy>
Prometheian I dont know Capybara. Ruby is nice, but that does not mean that everything written in ruby must be nice as well.
<shinobi_one>
Prometheian: sounds like you've got time
<shevy>
well typical DSL style
danshultz has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Prometheian>
I do.. unless I can land a better job soon :P
x1337807x has joined #ruby
Shidash has joined #ruby
<shinobi_one>
Prometheian: even better, then you can go back to your .net environment and java on windows ;p
Jetchisel has joined #ruby
diegoviola has joined #ruby
Mongey_ has joined #ruby
<Prometheian>
If I thought supervisor would let me get away with it...
Shidash has quit [Client Quit]
Shidash1 has joined #ruby
<shevy>
haha
<centrx>
Sounds like you are trapped in a Windows-based dungeon
Mongey has quit [Ping timeout: 264 seconds]
tonyhb has quit [Quit: peace]
kennym has joined #ruby
stytown has quit [Quit: stytown]
centrx has quit [Quit: All this computer hacking is making me thirsty]
<Prometheian>
My home system uses Windows cause of games. I'm most familar w/ it.
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
RaCx_ is now known as RaCx
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
randomnick_ has joined #ruby
centrx has joined #ruby
yubrew has joined #ruby
maletor has joined #ruby
aspires has joined #ruby
zachallett has joined #ruby
grzywacz has joined #ruby
m4n1f3st0 has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
mmochan has joined #ruby
agarie has quit [Remote host closed the connection]
tonyhb has joined #ruby
philcrissman has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
peterellisjones has joined #ruby
peterellisjones has quit [Client Quit]
<shevy>
:)
<shevy>
without the gamers, windows would be already dead
<shinobi_one>
nah
<shinobi_one>
corporate man, corporate
dcfedde has quit [Remote host closed the connection]
<apeiros>
without gamers and beancounter-corpocrates
<shinobi_one>
^ better
<apeiros>
it's sad really. microsoft could do better.
dcfedde has joined #ruby
<shinobi_one>
could they?
<shinobi_one>
have you seen the windows phones?
<shinobi_one>
have you seen the xbox?
ianbrandt has joined #ruby
<shinobi_one>
have you seen the zune?
<apeiros>
no, but I've seen some of their research projects
<shevy>
shinobi_one well, gamers are often younger, more eager to learn and enthusiastic; the corporate users are slow ass movers, many are still WinXPing
<shinobi_one>
i could go on..
<apeiros>
their stuff usually starts to suck when $managers reign in
<shevy>
hehe
ianbrandt has quit [Client Quit]
ianbrandt has joined #ruby
<Prometheian>
Hey! I still use my Zune! I helps with my 30 min VCR workouts.
ianbrandt has quit [Client Quit]
<apeiros>
shinobi_one: for all which is bad about the xbox - the kinect technology is awesome
<shevy>
omg
<shevy>
workouts
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy>
another reason why you should switch to linux entirely
fgo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
rootshift has quit [Ping timeout: 240 seconds]
Slavox is now known as Slavox|AFK
<centrx>
Windows? They still make that?
<shinobi_one>
apeiros: i can agree with that
<Prometheian>
apeiros: NSA always on webcam!
<shevy>
oh man
<shevy>
they sure want to see your penis
<shinobi_one>
i'm showing them my penis right now
<Prometheian>
Always game vigorously and pantless.
kayloos has quit [Remote host closed the connection]
failshell has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
endash has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
havenwood has joined #ruby
Slavox|AFK is now known as Slavox
phantasm66 has quit [Quit: *poof*]
enebo has quit [Ping timeout: 246 seconds]
failshel_ has quit [Ping timeout: 264 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
shadoi has quit [Quit: Leaving.]
Bosox20051 has quit [Remote host closed the connection]
grapFler has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
oneawaymann has quit [Read error: No route to host]
oneawayman has joined #ruby
Hobogrammer_ has joined #ruby
sigurding has quit [Ping timeout: 246 seconds]
dcfedde has quit [Remote host closed the connection]
rootshift_ has joined #ruby
havenwood has joined #ruby
dcfedde has joined #ruby
mlpinit has quit [Quit: Leaving...]
jprovazn has quit [Quit: Odcházím]
sigurding has joined #ruby
YamakasY has quit [Remote host closed the connection]
<matti>
shevy: shevy
centrx has quit [Quit: All this computer hacking is making me thirsty]
Jetchisel has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<grapFler>
I have a question about how to best structure a notification system. We need a way for our app to send notifications to our company chat client. Right now, I have a superclass that handles the API requests, and each different type of notification inherits from that class
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sparrovv has quit [Remote host closed the connection]
niklasb has quit [Quit: WeeChat 0.4.3]
jonno11 has joined #ruby
<grapFler>
The problem with this is it requires instantiation of the child class like Notifier.new.notify when I'd really prefer to just do Notifier.notify
aspires has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
whomp has joined #ruby
<whomp>
how can i match the character '\r' in a regex?
centrx has joined #ruby
Skaag has quit [Ping timeout: 240 seconds]
pel_daniel1 has joined #ruby
maddddh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
alexherb1 has joined #ruby
pel_daniel has quit [Ping timeout: 264 seconds]
james_d_h has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 264 seconds]
r0nin has quit []
kayloos has joined #ruby
<shevy>
how could I easily display content of a directory, in human readable format - MB or Gig or KB, depending on how large it is
shadoi has joined #ruby
larissa has joined #ruby
<centrx>
du
rickruby has quit [Remote host closed the connection]
mehlah has joined #ruby
rickruby has joined #ruby
maroloccio has joined #ruby
sski has joined #ruby
glosoli has joined #ruby
postmodern has joined #ruby
DrShoggoth has quit [Quit: Leaving]
<shinobi_one>
du -sh directory
sambao21 has joined #ruby
x1337807x has joined #ruby
tfitts has quit [Remote host closed the connection]
tfitts has joined #ruby
<sigurding>
shevy: you want to automatically resolve an applicable divisor?
cantonic has joined #ruby
Mongey has joined #ruby
Lewix has joined #ruby
ffranz has quit [Quit: Leaving]
rickruby has quit [Ping timeout: 246 seconds]
Mongey_ has quit [Read error: Connection reset by peer]
luckyruby has joined #ruby
slowcon has quit []
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
maddddh has joined #ruby
npearson has quit [Remote host closed the connection]
maddddh has quit [Client Quit]
samuel02 has quit [Remote host closed the connection]
echevemaster has joined #ruby
nifty has quit [Ping timeout: 264 seconds]
sigurding has quit [Read error: Connection reset by peer]
Steve445 has joined #ruby
sputnik13 has joined #ruby
maddddh has joined #ruby
sigurding has joined #ruby
rootshift_ is now known as rootshift
sputnik13 has quit [Client Quit]
Vovko has quit [Remote host closed the connection]
YamakasY has joined #ruby
oneawayman has quit [Ping timeout: 240 seconds]
aspires has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
echevemaster has quit [Remote host closed the connection]
RaCx has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
jespada has joined #ruby
RaCx_ has joined #ruby
CaptainJet has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
Mongey has joined #ruby
iliketurtles has joined #ruby
sigurding has quit [Quit: sigurding]
axsuul has joined #ruby
aspiers_ is now known as aspiers
kevind has joined #ruby
saarinen has quit [Client Quit]
nowthatsamatt has quit [Quit: nowthatsamatt]
jamto11_ has joined #ruby
<shevy>
du requires du binary
mikepack has joined #ruby
freerobby has quit [Quit: Leaving.]
aspires has joined #ruby
james_d_h has joined #ruby
iliketurtles has quit [Client Quit]
mojjojo has joined #ruby
Sid05 has joined #ruby
hermanmunster has joined #ruby
monkegjinni has joined #ruby
timonv has joined #ruby
olivier_bK1 has quit [Ping timeout: 246 seconds]
stytown has joined #ruby
maletor has joined #ruby
freerobby has joined #ruby
YamakasY has quit [Remote host closed the connection]
<shinobi_one>
shevy: what distro are you on that doesn't have du?
freerobby has quit [Client Quit]
chrisja has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
mikepack has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
Soliah has joined #ruby
superscott[8] has joined #ruby
jobewan has quit [Quit: Leaving]
hobodave has quit [Quit: Computer has gone to sleep.]
jaimef has quit [Excess Flood]
klaut has quit [Remote host closed the connection]
chrisja has joined #ruby
<shevy>
shinobi_one I can have a lot of things; when I use it, it ties me to it
luckyruby has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
aspires has quit []
<shinobi_one>
wat?
mikepack has joined #ruby
aspires has joined #ruby
mojjojo has joined #ruby
<pipework>
shinobi_one: lululul
jaimef has joined #ruby
whatasunnyday has joined #ruby
jespada has quit [Quit: Leaving]
fgo has joined #ruby
<pipework>
shevy: you can get by in life without knowing and depending on anything.
sdouglas has joined #ruby
Mongey has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
mnms__ is now known as mnms
Mongey has joined #ruby
mikepack has quit [Remote host closed the connection]
mnms is now known as mnms_
<shevy>
pipework lol
<shevy>
pipework drunk again eh
cescalante is now known as ce_afk
RaCx_ has quit [Quit: Computer has gone to sleep.]
<pipework>
shevy: :D
<shevy>
oh well, time for writing another gem then :(
simplyaubs has joined #ruby
iliketurtles has joined #ruby
simplyaubs is now known as Guest59717
mengu has quit [Remote host closed the connection]