mikepack_ has quit [Read error: Connection reset by peer]
<landodger>
a boring beginning :)
sepp2k has quit [Ping timeout: 240 seconds]
Georg3 has quit [Ping timeout: 260 seconds]
rgarver has quit [Quit: Computer has gone to sleep.]
Tricon has quit [Quit: Leaving...]
MCDev has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ddv has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
tvw has quit []
ddv has joined #ruby
billycravens has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has joined #ruby
marr has quit [Ping timeout: 240 seconds]
ziyadb has joined #ruby
sixxy has quit [Quit: Leaving]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cashnguns has joined #ruby
saarinen has quit [Quit: saarinen]
M-Technic has quit [Quit: Lost terminal]
fabrice31 has joined #ruby
sputnik1_ has joined #ruby
axsuul has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
QKO has quit [Ping timeout: 256 seconds]
crudson has quit [Quit: q term]
Aryasam has joined #ruby
i_s has quit [Remote host closed the connection]
testcore has joined #ruby
QKO has joined #ruby
Aryasam has quit [Client Quit]
jmbrown412 has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
jmbrown412 has joined #ruby
havenwood has joined #ruby
rgarver has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest69190
testcore has quit [Client Quit]
arya_ has quit [Ping timeout: 240 seconds]
Hobogrammer has joined #ruby
jmbrown412 has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
aspires has joined #ruby
knite has quit [Quit: knite]
dayepa1 has joined #ruby
matchaw has quit [Remote host closed the connection]
Guest69190 has quit [Ping timeout: 272 seconds]
zz_karupa is now known as karupa
lukec has quit [Ping timeout: 250 seconds]
matchaw has joined #ruby
g0bl1n has joined #ruby
abdulsattar has joined #ruby
lukec has joined #ruby
g0bl1n has quit [Client Quit]
<abdulsattar>
Hi, let port:int = from_str(std::os::getenv("PORT").unwrap_or("6767")).unwrap_or(6767); gives me mismatched type expected collections::String, found &'static str. Can anyone explain this please?
tkuchiki has quit [Remote host closed the connection]
stytown has quit [Quit: stytown]
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
djbkd has joined #ruby
mary5030 has joined #ruby
MickeyO has quit [Ping timeout: 240 seconds]
jay has quit []
yetanotherdave has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
Takle has joined #ruby
hsps_ has quit [Ping timeout: 256 seconds]
arrubin has joined #ruby
gbaway has joined #ruby
SilkFox_ has joined #ruby
charliesome has joined #ruby
b00stfr3ak has quit [Ping timeout: 240 seconds]
bmurt has quit []
asdasdasdasss has quit [Ping timeout: 264 seconds]
hsps_ has joined #ruby
<bricker`work>
Is there a way to reverse URI.split() ?
charliesome has quit [Client Quit]
Takle has quit [Ping timeout: 240 seconds]
aspires has quit []
nanoyak has quit [Quit: Computer has gone to sleep.]
MickeyO has joined #ruby
arya_ has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
sdouglas has quit [Remote host closed the connection]
fold has joined #ruby
SilkFox_ has joined #ruby
robbyoconnor has joined #ruby
mikepack has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
oo_ has joined #ruby
mr_snowf1ake has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
JoshGlzBrk has joined #ruby
linojon has quit [Quit: linojon]
Georg3 has joined #ruby
benzrf|offline is now known as benzrf
aspires has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
frellnet has joined #ruby
ehlovader has quit [Ping timeout: 250 seconds]
rubytor has quit [Remote host closed the connection]
stytown has joined #ruby
j_mcnally has quit [Ping timeout: 240 seconds]
ehlovader has joined #ruby
kaihara has quit [Ping timeout: 240 seconds]
hgl__ has joined #ruby
hgl has joined #ruby
sailias has joined #ruby
aspires has quit [Ping timeout: 240 seconds]
Georg3 has quit [Ping timeout: 240 seconds]
britneywright has joined #ruby
Davey is now known as Eomar
abdulsattar has quit [Ping timeout: 240 seconds]
peret has joined #ruby
Shidash has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<gzl>
yeah, why would you do that? I don't get it.
<mr_snowf1ake>
ruby is i feel more suited to this thing than python
<mr_snowf1ake>
hence, i asked
agent_white has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
<dda>
mr_snowf1ake: It depends if it would be helpful to use a ruby gem/lib to complex or verbose tasks.
<dda>
Sometimes it's simpler to do it with bash script. (Also a little more protable)
<mr_snowf1ake>
dda: when i want those tasks, i just run pry and i can access all of those, but all the main tasks i do are in zsh
<dda>
s/protable/portable
agent_white has joined #ruby
<mr_snowf1ake>
dda: backticks
bruno-_ has joined #ruby
bricker`work has quit [Ping timeout: 256 seconds]
<dda>
mr_snowf1ake: Recurring tasks might benefit being written in a file, so... It's almost a personal taste to this point.
<dda>
Since every person has access to a good enough hardware and access to internet in their 'work' machines.
<mr_snowf1ake>
dda: agreed. i do write a fair number of ruby scripts for administrative tasks. but i use it for just that: scripting or application development
nanoyak has quit [Ping timeout: 240 seconds]
moted has quit [Quit: moted]
<mr_snowf1ake>
dda: the implication of that stackoverflow q seemed to be more along the lines of using it as an everyday replacement for bash.
charliesome has joined #ruby
nanoyak has joined #ruby
<mr_snowf1ake>
so i figured, if anyone does that with ruby, they would probably be here :P
codabrink has joined #ruby
jfran has quit [Ping timeout: 240 seconds]
<dda>
Oh, no. I personally don't think there should be a complete replacement.
GriffinHeart has joined #ruby
Hanmac1 has joined #ruby
mikepack has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
<dda>
e.g. Initialization scripts
stytown has quit [Quit: stytown]
nanoyak has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
<mr_snowf1ake>
dda: haha agreed.
bmurt has joined #ruby
hgl__ has quit [Remote host closed the connection]
codabrink has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
hgl__ has joined #ruby
terryb has joined #ruby
codabrink has joined #ruby
terryb has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Ping timeout: 260 seconds]
mehlah has quit [Quit: Leaving...]
vickleford has joined #ruby
djbkd has quit [Remote host closed the connection]
chipotle has joined #ruby
djbkd has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
chipotle has quit [Client Quit]
danielpclark has joined #ruby
lw has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
robustus has joined #ruby
mattalexx has joined #ruby
dopiee has quit [Remote host closed the connection]
<mattalexx>
If I run code like this, I get "-" in the __FILE__ var: cat script.rb | ruby
<mattalexx>
I can't find that documented anywhere though. Where can I get exact details about it?
nateberkopec has joined #ruby
alvaro_o_ has quit [Quit: Ex-Chat]
frank_ has quit [Ping timeout: 264 seconds]
alvaro_o has quit [Quit: Ex-Chat]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl__ has quit [Quit: Computer has gone to sleep.]
rtdp has joined #ruby
toastynerd has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl__ has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
dopie has joined #ruby
<dopie>
hello beautiful and nice #ruby folk
havenwood has quit []
hgl has joined #ruby
oo_ has joined #ruby
hgl__ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
<dda>
dopie: hi
hgl__ has joined #ruby
wookiehangover has quit [Ping timeout: 256 seconds]
toastynerd has joined #ruby
<dopie>
hey dda
crudson has joined #ruby
wookiehangover has joined #ruby
arya_ has joined #ruby
BadQuanta has joined #ruby
rtdp has quit [Ping timeout: 272 seconds]
<agent_white>
Herro
<mr_snowf1ake>
hello, dopie.
<dopie>
hey mr_snowf1ake
<dopie>
agent_white,
<mr_snowf1ake>
how you doin'?
<dopie>
alright
<dopie>
watching ufc
<mattalexx>
If I run code like this, I get "-" in the __FILE__ var: "cat script.rb | ruby" I can't find that documented anywhere though. Where can I get exact details about it?
<mr_snowf1ake>
ahh, i see
<mr_snowf1ake>
hmm... mattalexx, i'm not sure. may i ask why you're trying to run it that way?
<dopie>
mattalexx, you doing pragmatic studios?
<dopie>
ruby course?
<mattalexx>
I'm trying to implement a single command download/install script like Composer has (getcomposer.com). I don't know what pragmatic studios is.
<mattalexx>
Yes, Ruby
alexju has quit [Remote host closed the connection]
<mattalexx>
I need to detect whether the install.rb script is being run that way or not, and download the rest of the package to a default location if it is.
hamakn has quit [Remote host closed the connection]
Georg3 has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
<mattalexx>
Yeah like RVM too, forgot about that
<mr_snowf1ake>
why do you need to get the name of the file? is there a way around that bit?
hmsimha has joined #ruby
<mr_snowf1ake>
mattalexx: the difficulty there is that by the time it's been piped, there is no notion of a file
<mr_snowf1ake>
afaik
bmurt has quit []
<mattalexx>
I don't need the name of the file. I was think I'd do something like "if __FILE__ == '-' download_files"
kachi8 has joined #ruby
<mr_snowf1ake>
oh, clever
j_mcnally has joined #ruby
<mattalexx>
But before I write that logic I wanted to get a definitive description about what I can expect from __FILE__
asdasdasdasss has quit [Ping timeout: 240 seconds]
<mr_snowf1ake>
mattalexx: i would look at arguments sent by pipe.
<mattalexx>
Unfortunately the docs don't talk about it
crudson has quit [Quit: q term]
<mr_snowf1ake>
sounds like something not ruby specific
<mr_snowf1ake>
file is generally $0 is it not?
<mattalexx>
mr_snowf1ake: What do you mean by "sent by pipe"
lucianosousa has joined #ruby
<mr_snowf1ake>
mattalexx: sorry, i'm not being clear... umm... the output that's sent by cat and piped to your ruby script
<mattalexx>
Yes it is, in bash
bmurt has joined #ruby
<mattalexx>
Right
<mattalexx>
Maybe I can read stdin somehow
hgl__ has quit [Read error: Connection reset by peer]
hgl___ has joined #ruby
<mattalexx>
I'm relatively new to Ruby so I still have to look stuff up
gbaway has quit [Read error: Connection reset by peer]
* mattalexx
goes and looks up stdin access in Ruby
djbkd has quit [Remote host closed the connection]
<mr_snowf1ake>
mattalexx: i'm not sure how ruby gets __FILE__ but if it's from $0, then that would explain the weird result
jshultz has quit [Quit: Connection closed for inactivity]
terryb has joined #ruby
<mr_snowf1ake>
or something similar
NinoScript_ has quit [Ping timeout: 256 seconds]
<mattalexx>
Yeah I can't figure out how to get the STDIN of the ruby exec, only to a ruby file
* mattalexx
looks at $0
<mr_snowf1ake>
mattalexx: looks like that's not why ruby gives
<mr_snowf1ake>
- for file
<mr_snowf1ake>
__FILE__
<mr_snowf1ake>
in the documentation: The name of the file currently being executed, including path relative to the directory where the application was started up (or the current directory, if it has been changed). The current file is, in some cases, different from the startup file for the running application, which is available in the global variable $0.
<mr_snowf1ake>
let me check the sources though
<mattalexx>
Interesting, $0 seems to behave exactly like __FILE__
<mattalexx>
Same content. If I run from stdin, I get "-" (single dash)
<mr_snowf1ake>
ahh
<mattalexx>
I think I'm going to trust it
larissa has joined #ruby
<mr_snowf1ake>
it's not gonna be portable i think
<mr_snowf1ake>
watch out
<mattalexx>
Even if there's no docs
<mattalexx>
Well, that's what I'm worrying about
<mattalexx>
Why not?
bmurt has quit []
nateberkopec has quit [Quit: Leaving...]
<mr_snowf1ake>
well, idk, but it makes me uncomfortable haha
axsuul has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<mattalexx>
Yeah you and me both
saarinen has joined #ruby
<mattalexx>
It's not mission critical
<mr_snowf1ake>
do you have a simplified version of what you're doing that produces the "-" that you could put on a pastebin?
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
<j_mcnally>
Anyone know where I can get some DVD organization software?
GriffinHeart has quit [Remote host closed the connection]
axl_ has joined #ruby
rtdp has quit [Ping timeout: 240 seconds]
danielpclark has joined #ruby
rtdp has joined #ruby
<pontiki>
as in library of DVD type stuff?
benzrf is now known as benzrf|offline
<krz>
whats a good ruby test I can give an applicant coming in for an interview?
yacks has joined #ruby
<godd2>
have them describe NCC1701 with classes without a crew
doritostains has quit [Quit: doritostains]
<pontiki>
waste of time
ghr has joined #ruby
<godd2>
ok have them list as many core classes as they can
<pontiki>
no, i meant having a ruby test
<krz>
is there a more advanced ruby exercise of fizzbuzz. hopefully one with the use of ruby objects, modules, inheritance or compositions, etc
<godd2>
what do you want them to demonstrate? that is, what level of working knowledge of the language/what for?
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has quit [Ping timeout: 240 seconds]
<pontiki>
at least do something like insert/delete sorted singly linked list
mikepack has quit [Remote host closed the connection]
<pontiki>
design an elevator interface
<krz>
godd2: a good level of ruby OO. something that tells me that theyve used ruby not just for rails
Solnse has quit [Quit: Leaving.]
<pontiki>
an atm machine
<krz>
yea an elevator app was something i was thinking of
ghr has quit [Ping timeout: 260 seconds]
hgl___ has joined #ruby
hgl___ has quit [Remote host closed the connection]
<pontiki>
sorry for the redundant redundancy
<pontiki>
but i repeat myself, again
hgl___ has joined #ruby
mikepack has joined #ruby
<godd2>
you can either explicitly state that you want multiple files to see if they know how to include, or just give them some specs and see what they do
<pontiki>
implement a titlecase for String
<pontiki>
complete with stopwords
amystephen has quit [Quit: amystephen]
<pontiki>
what sort of data structures are people expected to know how to implement these days?
fenicks has quit [Remote host closed the connection]
dc has joined #ruby
theharshest has joined #ruby
lkba has joined #ruby
centrx has joined #ruby
Pharaoh2 has quit [Read error: Connection reset by peer]
centrx has quit [Remote host closed the connection]
theharshest has quit [Client Quit]
Pharaoh2 has joined #ruby
x1337807x has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
nobodyzzz has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
lukec has joined #ruby
yetanotherdave has joined #ruby
sara2010 has left #ruby [#ruby]
dc has quit [Read error: Connection reset by peer]
papercode has quit [Quit: WeeChat 0.4.3]
asdasdasdasss has joined #ruby
dc has joined #ruby
gbaway has quit [Ping timeout: 240 seconds]
SilkFox_ has joined #ruby
konflikt has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
bradleyprice has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
robbyoconnor has quit [Quit: Konversation terminated!]
mercwithamouth has joined #ruby
stytown has joined #ruby
lukec has quit [Quit: lukec]
robbyoconnor has joined #ruby
SilkFox_ has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
zkay11 has joined #ruby
terryb has joined #ruby
alexju has quit [Remote host closed the connection]
Tricon has joined #ruby
toastynerd has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
aganov has joined #ruby
northfurr has quit [Quit: northfurr]
yetanotherdave has quit [Ping timeout: 264 seconds]
anarang has joined #ruby
sdouglas has quit [Remote host closed the connection]
soahccc has joined #ruby
Prandium has quit [Ping timeout: 264 seconds]
<soahccc>
Hey guys. I'm having a problem with signal trapping. I have an Open3.popen2e process which I'm controlling. I trap int, term and tstp and my main script indeed stays alive but the process seems to ignore that and just quits. Is there something obvious I'm missing?
danijoo has quit [Read error: Connection reset by peer]
dc has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
<agent_white>
Ncurses... I have a love-hate relationship with.
oo_ has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
nfisher has joined #ruby
nfisher has quit [Client Quit]
SCommette has quit [Quit: SCommette]
rtdp has quit [Ping timeout: 256 seconds]
diptanuc has joined #ruby
Pharaoh2 has quit [Ping timeout: 240 seconds]
diptanuc has quit [Client Quit]
diptanuc has joined #ruby
<agent_white>
soahccc: I'm late to this, and probably cannot answer your question... but I guarantee you that posting your code would help you get an answer.
MickeyO has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
<Radar>
CODE OR BAN
<Radar>
imho
mgberlin_ has joined #ruby
<pontiki>
yes, shevy
<pontiki>
*very* naughty thoughts
j_mcnally has quit [Read error: Connection reset by peer]
lucianosousa has quit [Quit: lucianosousa]
nateberkopec has joined #ruby
mgberlin has quit [Ping timeout: 240 seconds]
relix has joined #ruby
j_mcnally has joined #ruby
tagrudev has joined #ruby
ixcoder has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
CaptainJet has quit []
fabrice31 has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
memph1s has joined #ruby
starkhalo has quit [Ping timeout: 240 seconds]
asdasdasdasss has joined #ruby
sdouglas has quit [Remote host closed the connection]
Guest43867 has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
Prandium_ has joined #ruby
ghr has joined #ruby
parzo has quit [Ping timeout: 240 seconds]
<agent_white>
zipzapzoopbopbingbangbam
parzo has joined #ruby
Wolland has joined #ruby
djbkd has quit [Remote host closed the connection]
parzo_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
parzo_ has joined #ruby
hgl_ has quit [Remote host closed the connection]
hgl_ has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
parzo has quit [Ping timeout: 240 seconds]
parzo__ has joined #ruby
djbkd has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
__JokerDoom has joined #ruby
kith_ has joined #ruby
bricker`1A has joined #ruby
felixjet_ has joined #ruby
fjfish has joined #ruby
naw_ has joined #ruby
davedev2_ has joined #ruby
ItSAN____ has joined #ruby
soahccc^ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
utkarsh__ has joined #ruby
Coolhand has joined #ruby
claw_ has joined #ruby
yeticry_ has joined #ruby
Morkel_ has joined #ruby
vdmgolub has joined #ruby
mjuszcza1 has joined #ruby
Pharaoh2 has joined #ruby
michael_imac has joined #ruby
matchaw_ has joined #ruby
adamholt_ has joined #ruby
ptierno has joined #ruby
bhaak_ has joined #ruby
miah_ has joined #ruby
shaman42 has joined #ruby
binw_ has joined #ruby
certaint1 has joined #ruby
cHarNe2_ has joined #ruby
skyjumpe1 has joined #ruby
lolmaus_ has joined #ruby
Sp4rKy_ has joined #ruby
tonini_ has joined #ruby
gwb3_ has joined #ruby
nwkr has joined #ruby
sumark_ has joined #ruby
xxi has joined #ruby
Lewix has quit [Remote host closed the connection]
kiki_lam1 has joined #ruby
davedev2_ has quit [Remote host closed the connection]
droptone_ has joined #ruby
parzo_ has quit [Ping timeout: 240 seconds]
hgl_ has quit [Ping timeout: 240 seconds]
cuqa has quit [Ping timeout: 240 seconds]
s_e has quit [Ping timeout: 240 seconds]
Morkel has quit [Ping timeout: 240 seconds]
cHarNe2 has quit [Ping timeout: 240 seconds]
MissionCritical has quit [Ping timeout: 240 seconds]
certainty has quit [Ping timeout: 240 seconds]
skyjumper has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
war32 has quit [Ping timeout: 240 seconds]
Adran has quit [Ping timeout: 240 seconds]
sumark has quit [Ping timeout: 240 seconds]
gwb3 has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
Sp4rKy has quit [Ping timeout: 240 seconds]
dRbiG has quit [Ping timeout: 240 seconds]
csfrancis has quit [Ping timeout: 240 seconds]
tonini has quit [Ping timeout: 240 seconds]
arup_r has quit [Ping timeout: 240 seconds]
memph1s has quit [Ping timeout: 240 seconds]
jarto has quit [Ping timeout: 240 seconds]
hsps_ has quit [Ping timeout: 240 seconds]
Beoran__ has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Ping timeout: 240 seconds]
jle` has quit [Ping timeout: 240 seconds]
matti has quit [Ping timeout: 240 seconds]
kiri has quit [Ping timeout: 240 seconds]
Spleeze has quit [Ping timeout: 240 seconds]
iamayam has quit [Ping timeout: 240 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
utkarsh_ has quit [Ping timeout: 240 seconds]
mgomezch has quit [Ping timeout: 240 seconds]
davzie has quit [Ping timeout: 240 seconds]
zalmoxes has quit [Ping timeout: 240 seconds]
soahccc has quit [Ping timeout: 256 seconds]
IceyEC_ has joined #ruby
Morkel_ is now known as Morkel
matti_ has joined #ruby
j_mcnally has quit [Ping timeout: 240 seconds]
rebelshrug has quit [Ping timeout: 240 seconds]
felipe has quit [Ping timeout: 240 seconds]
yeticry has quit [Ping timeout: 240 seconds]
Koshian has quit [Ping timeout: 240 seconds]
samuelkadolph has quit [Ping timeout: 240 seconds]
marcel has quit [Ping timeout: 240 seconds]
_Havoc_ has quit [Ping timeout: 240 seconds]
fearoffish has quit [Ping timeout: 240 seconds]
miah has quit [Ping timeout: 240 seconds]
ptierno_ has quit [Ping timeout: 240 seconds]
bhaak has quit [Ping timeout: 240 seconds]
KWALL has quit [Ping timeout: 240 seconds]
relix has quit [Ping timeout: 240 seconds]
magicien has quit [Ping timeout: 240 seconds]
ehlovader has quit [Ping timeout: 240 seconds]
francisfish has quit [Ping timeout: 240 seconds]
binw has quit [Ping timeout: 240 seconds]
mordof has quit [Ping timeout: 240 seconds]
ItSANgo_ has quit [Ping timeout: 240 seconds]
naw has quit [Ping timeout: 240 seconds]
vadzimt has quit [Ping timeout: 240 seconds]
_JokerDoom has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 240 seconds]
elico has quit [Ping timeout: 240 seconds]
helpa has quit [Ping timeout: 240 seconds]
shaman42_ has quit [Ping timeout: 240 seconds]
anekos_ has quit [Ping timeout: 240 seconds]
diptanuc has quit [Ping timeout: 240 seconds]
anarang has quit [Ping timeout: 240 seconds]
matchaw has quit [Ping timeout: 240 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
riotjones has quit [Ping timeout: 240 seconds]
claw has quit [Ping timeout: 240 seconds]
kith has quit [Ping timeout: 240 seconds]
mjuszczak has quit [Ping timeout: 240 seconds]
adamholt has quit [Ping timeout: 240 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
nemesit|znc has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Ping timeout: 240 seconds]
devyn has quit [Ping timeout: 240 seconds]
farn has quit [Ping timeout: 240 seconds]
felixjet has quit [Ping timeout: 240 seconds]
fwaokda has quit [Ping timeout: 240 seconds]
Nowaker has quit [Ping timeout: 240 seconds]
droptone has quit [Ping timeout: 240 seconds]
niharvey has quit [Ping timeout: 240 seconds]
iceyec has quit [Ping timeout: 240 seconds]
ixx has quit [Ping timeout: 240 seconds]
kiki_lamb has quit [Ping timeout: 240 seconds]
monsieurp has quit [Ping timeout: 240 seconds]
csfranci1 has joined #ruby
magicien has joined #ruby
magicien has quit [Changing host]
magicien has joined #ruby
hsps_ has joined #ruby
djbkd has joined #ruby
dRbiG has joined #ruby
matti_ is now known as matti
relix has joined #ruby
marcel has joined #ruby
devyn has joined #ruby
zalmoxes has joined #ruby
riotjones has joined #ruby
arup_r has joined #ruby
s_e has joined #ruby
yxhuvud has joined #ruby
kiri has joined #ruby
Beoran__ has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
nemesit|znc has joined #ruby
Adran has joined #ruby
ehlovader has joined #ruby
war32 has joined #ruby
elico has joined #ruby
jarto has joined #ruby
davedev24_ has joined #ruby
farn has joined #ruby
davzie has joined #ruby
mordof has joined #ruby
iamayam has joined #ruby
fearoffish has joined #ruby
jack_rabbit has joined #ruby
malcolmva has joined #ruby
Koshian has joined #ruby
anekos_ has joined #ruby
anarang has joined #ruby
KWALL has joined #ruby
mercwithamouth has joined #ruby
diptanuc has joined #ruby
jle` has joined #ruby
jle` has joined #ruby
jle` has quit [Changing host]
kloeri__ has joined #ruby
michael_imac has quit [Excess Flood]
monsieurp has joined #ruby
Eyess has quit [Read error: Connection reset by peer]
yetanotherdave has joined #ruby
Spleeze has joined #ruby
fwaokda has joined #ruby
samuelkadolph has joined #ruby
nateberkopec has joined #ruby
Havoc][ has joined #ruby
michael_mbp has joined #ruby
apeiros has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
OffTheRails has joined #ruby
MissionCritical has joined #ruby
abdulsattar has joined #ruby
crazymykl has quit [Remote host closed the connection]
crazymykl has joined #ruby
i_s has joined #ruby
ndrei has joined #ruby
asdasdasdasss has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
chipotle has quit [Quit: cya]
yetanotherdave has quit [Quit: Lost terminal]
dc has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
bhaak_ is now known as bhaak
danielpclark has quit [Quit: Leaving]
<arup_r>
I am doing some scrapping using Mechanize gem. Mostly ok.. But there is 2 fields, where data loads using Ajax call. There I am getting failed.. I found one http://stackoverflow.com/questions/1327495/ruby-mechanize-post-with-header, but that's a POST request not the case of mine. Any idea how to go ahead?
Takle has joined #ruby
hgl has joined #ruby
crazymykl has quit [Remote host closed the connection]
fabrice31 has joined #ruby
crazymykl has joined #ruby
sigurding has joined #ruby
PanPan has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
alem0lars has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<roolo>
michael_mbp: I guess first_or_create(nil, {}) &my_proc . But it's really a guess from how blocks are passed normally
<michael_mbp>
yup that works :)
<michael_mbp>
ta!
<canton7>
just pass it normally?
<michael_mbp>
then it's a Proc, not a block.
<michael_mbp>
but that's what I did, as first_or_create has &block
<michael_mbp>
rather than block.
<michael_mbp>
but I was getting undefined method `stringify_keys' for #<Proc:0x000000086a90e8>
<canton7>
ah yeah, you do need that &
<canton7>
first_or_create(nil, {}, &my_proc)
<jhass>
no need for the {}
<jhass>
or nil even
<jhass>
first_or_create(&my_proc)
<michael_mbp>
jhass, thanks
asdasdasdasss has joined #ruby
parzo has joined #ruby
abdulsattar has quit [Ping timeout: 264 seconds]
SilkFox_ has joined #ruby
_Andres has quit [Quit: jazz]
StopJones has joined #ruby
<michael_mbp>
jhass, shouldn't &block as a method argument mean it'll convert any Proc to a block?
arya_ has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
<jhass>
in a method definition it means capture the passed block, convert it to a proc and assign it to the given local variable. In a method call it means call .to_proc on the passed object, convert the result to a block and pass it to the method
<michael_mbp>
aha!!!
StopJones is now known as StopJ
<jhass>
Proc#to_proc obviously just returns self
<michael_mbp>
aye.
parzo has quit [Ping timeout: 250 seconds]
terryb has joined #ruby
SilkFox_ has quit [Ping timeout: 250 seconds]
<michael_mbp>
what's &Foo called, as in the &?
Photism has quit [Quit: Leaving]
jobewan has quit [Quit: Leaving]
<michael_mbp>
'x to Proc'?
terryb has quit [Remote host closed the connection]
<jhass>
never heard a name for it
<jhass>
ampersand operator? I don't know
<michael_mbp>
&:foo is 'symbol to proc' as I recall.
<jhass>
well, same mechanism, :foo.to_proc is called and happens to return a handy proc that is converted to a block then
<michael_mbp>
yeah
hgl_ has quit [Quit: Computer has gone to sleep.]
mijicd has quit [Remote host closed the connection]
DanielRb has quit [Remote host closed the connection]
<michael_mbp>
"More precisely: the ampersand unpacks the Proc object so that it gets passed as if it was a literal block. Only if the object is not already a Proc object, does it call to_proc"
<jmd>
Ruby doesn't seem to be inlucded in Guix. are there plans to add it?
relix has quit [Read error: Connection reset by peer]
relix has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
<michael_mbp>
Guix?
Pharaoh2 has joined #ruby
mijicd has joined #ruby
<gregf_>
w
<gregf_>
:/ sorry
arya_ has quit [Ping timeout: 264 seconds]
raluxgaza has quit [Remote host closed the connection]
Aaaal has quit [Quit: Aaaal]
MrSamuel has quit [Read error: Connection timed out]
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
MrSamuel has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<Mon_Ouie>
There's no proc -> block. A block is just the name of the syntax we use to write them ({} in your example, also do … end). You can get a proc object from a block if it is passed to a method
<Mon_Ouie>
(well it has to be passed to a method… but you don't have to get a proc object from it necessarily)
davedev24_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
ctp has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
BadQuanta has quit [Ping timeout: 240 seconds]
qba73 has quit []
<Hanmac1>
Mon_Ouie: the only difference is if func {} is used, and func only used yield, no proc object is created
nateberkopec has joined #ruby
compAz has quit [Remote host closed the connection]
Rubeh has quit [Ping timeout: 260 seconds]
MCDev has quit [Ping timeout: 250 seconds]
agjacome has joined #ruby
roolo has joined #ruby
phinfonet has joined #ruby
xm has quit [Ping timeout: 272 seconds]
tokik has joined #ruby
eka has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
parzo has joined #ruby
phoo1234567 has joined #ruby
Aaaal has joined #ruby
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
SilkFox_ has joined #ruby
MrSamuel has quit [Read error: Connection timed out]
phoo1234567 has quit [Max SendQ exceeded]
Ayey_ has joined #ruby
phoo1234567 has joined #ruby
MrSamuel has joined #ruby
juco has joined #ruby
mijicd_ has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
<jmd>
Building 2.1.2 I get the following error:
<jmd>
check libraries....
<jmd>
Use ActiveTcl libraries (if available).
<jmd>
Search tclConfig.sh and tkConfig.sh....................
<jmd>
Fail to find [tclConfig.sh, tkConfig.sh]
<jmd>
Use X11 libraries (or use TK_XINCLUDES/TK_XLIBSW information on tkConfig.sh).
<jmd>
Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk \
<jmd>
will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.
<jmd>
Can't find X11 libraries.
<jmd>
<jhass>
jmd: /topic !
<jmd>
I don't understand this. What has x11 got to do with Tcl ? Which is it telling me to do?
whyy has quit [Remote host closed the connection]
<jhass>
and as a GUI framework Tk needs X11 dev headers
parzo has quit [Ping timeout: 245 seconds]
asdasdasdasss has joined #ruby
mijicd has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 250 seconds]
Vivekananda_y510 has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
<jmd>
So I need to depend on libx11 or on tk, or both ?
DaniG2k has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
tokik has quit [Ping timeout: 264 seconds]
<Hanmac1>
jmd what kind of linux distry?
<apeiros>
Mon_Ouie: should I get pedantic on that? :)
Hanmac1 is now known as Hanmac
<Mon_Ouie>
Feel free :p
<apeiros>
though I'm actually not sure ruby truly does that… I should check that some time…
asdasdasdasss has quit [Ping timeout: 245 seconds]
SouL_ has joined #ruby
<apeiros>
so with an afaik: someproc = proc { "blah" }; foo(&someproc) # will convert the proc to a block
<apeiros>
ruby internally does use different structures for both
<apeiros>
which is why `def foo; yield; end; foo { "blah" }` is more efficient than `def foo(&block); block.call; end; foo(&proc { "blah" })`
SouL has quit [Ping timeout: 260 seconds]
<jmd>
Hanmac: Guix
<apeiros>
/pedantry
yazgoo has joined #ruby
Xeago has joined #ruby
MCDev has joined #ruby
konflikt_ has joined #ruby
konflikt has quit [Read error: Connection reset by peer]
lkba has joined #ruby
makeable has joined #ruby
spider-mario has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
<Hanmac>
jmd hm debianoid systems has something like "apt-get build-dep ruby2.0" ... seems that jmd miss such a feature ... if i can see it right you need tk-dev or tk8.5-dev if that not helps add libx11-dev packages
nateberkopec has joined #ruby
<jmd>
Hanmac: Should it matter what distro? Surely the dependencies are the same regardless of what OS?
fabrice31 has joined #ruby
<Hanmac>
jmd no, depending on the distri the packages are named different ... suse/redhat uses "xyz-devel" while debianoid might use "libxyz-dev"
whyy has joined #ruby
banister has joined #ruby
compAz has joined #ruby
decoponio has joined #ruby
<jmd>
They might have different names. But the actually dependencies are the same. My question is, do I need to depend on Tk or X11 or do I need to depend on both?
MicroPat has joined #ruby
lolmaus_ has quit [Read error: Connection reset by peer]
MrSamuel has quit [Read error: Connection timed out]
MrSamuel has joined #ruby
konflikt_ has quit []
<Hanmac>
jmd from what i can see, it first only dpenends on TK dev ... X11 might not needed itself (but TK-dev might need it, BUT a good package system should install that too automaticly)
yfeldblum has quit [Ping timeout: 240 seconds]
konflikt has joined #ruby
mostlybadfly has joined #ruby
phutchins has joined #ruby
DaniG2k has quit [Quit: leaving]
byteoverfl0w has joined #ruby
<jmd>
Hanmac: ok. I will try try tk
<jmd>
(right now I am battling with the scripts in the build system)
mehlah has joined #ruby
<MicroPat>
help
SouL_ has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
doev has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Soda has joined #ruby
dANOKELOFF has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adamholt_ is now known as adamholt
phutchins has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
ARCADIVS has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
MrSamuel has quit [Read error: Connection timed out]
Shidash has joined #ruby
MrSamuel has joined #ruby
Takle has quit [Remote host closed the connection]
MicroPat has quit [Quit: Quitte]
ndrei has joined #ruby
<shevy>
lol
havenwood has joined #ruby
<shevy>
best comment on IRC so far
<shevy>
HELP!!!
parzo has joined #ruby
sdouglas has joined #ruby
Benny1992 has quit [Quit: leaving]
Benny1992 has joined #ruby
phutchins has joined #ruby
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ldnunes has joined #ruby
Morkel has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 256 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
NuckingFuts has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
timonv^ has joined #ruby
bluenemo has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
nuck has joined #ruby
Takle has joined #ruby
Soda has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
havenwood has quit [Remote host closed the connection]
hgl_ has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
moritzs has quit [Quit: Verlassend]
SouL has joined #ruby
MrSamuel has quit [Read error: Connection timed out]
MrSamuel has joined #ruby
whyy has quit [Remote host closed the connection]
makeable has quit [Quit: Computer has gone to sleep.]
whyy has joined #ruby
kalusn has quit [Read error: Connection reset by peer]
kalusn has joined #ruby
arup_r has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
Takle has quit [Remote host closed the connection]
makeable_ has joined #ruby
krz has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<phutchins>
Anyone know the correct way to inject environment variables (I.E. for setting RUBY_HEAP_FREE_MIN, etc...) into unicorn/rails?
agent_white has quit [Quit: bbl]
<jhass>
export ?
<phutchins>
Particularly, I'm on AWS OpsWorks so I will need to do it in a way that can be automated...
arup_r has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
<phutchins>
jhass: yeah but trying to find a "clean" way to do it on OpsWorks
<phutchins>
i attempted to add it to the unicorn.conf but doesn't seem to be propegating to the rails processes
<phutchins>
all of the suggestions that I've seen online say to create a wrapper script for the rails process but I'm not controlling the way that my rails processes are launched.
<jhass>
dunno, #rubyonrails might have more expertise in deploying rails stuff
<phutchins>
ok cool. thanks. I was trying to remember the name of that channel... :)
dawkirst_ has joined #ruby
terryb has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 250 seconds]
Morkel has quit [Quit: Morkel]
workmad3 has quit [Quit: Lost terminal]
dawkirst has quit [Ping timeout: 272 seconds]
terryb has joined #ruby
dawkirst_ has quit [Client Quit]
fold has joined #ruby
Notte has joined #ruby
dawkirst has joined #ruby
bruno- has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
hmsimha has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
kayloos has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
<jmd>
My build seems to be hanging at "Generating RDoc documentation"
tagrudev has quit [Remote host closed the connection]
kiki_lam1 is now known as kiki_lamb
dawkirst has joined #ruby
abdulsattar has joined #ruby
konflikt has quit [Client Quit]
dumdedum has joined #ruby
aganov has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
dawkirst has quit [Remote host closed the connection]
sdouglas has joined #ruby
<claw_>
hey there, anybody know how Net::NNTP works ? documentation seams to be wrong somehow
Lulzon has joined #ruby
Lulzon has quit [K-Lined]
Lewix has quit [Remote host closed the connection]
relix has quit [*.net *.split]
hamakn has quit [*.net *.split]
knuxwild has quit [*.net *.split]
sixxy has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
ldnunes has quit [*.net *.split]
dwts has quit [*.net *.split]
<claw_>
if i use the example with authentication i get test.rb:10:in `<main>': undefined method `connect' for #<Net::NNTP localhost:443 started=false> (NoMethodError)
Gonzih has quit [Ping timeout: 245 seconds]
bal has quit [Quit: bal]
Gonzih has joined #ruby
Dreamer3 has joined #ruby
bal has joined #ruby
sputnik1_ has joined #ruby
mehlah has quit [Quit: Leaving...]
lolmaus has quit [Read error: Connection reset by peer]
claw has joined #ruby
lolmaus has joined #ruby
DivineEntity has quit [Quit: leaving]
<jhass>
claw_: I usually just pull out pry in these situations and look around what methods are available (ls Foo, $ foo.bar, ? foo.bar)
fmauz_ has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
exgf has quit [Remote host closed the connection]
bal has quit [Client Quit]
bal has joined #ruby
fmauz has quit [Ping timeout: 256 seconds]
exgf has joined #ruby
sixxy has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
r0bby has quit [Excess Flood]
jackneill has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
r0bby has joined #ruby
lolmaus has joined #ruby
Xeago has joined #ruby
byteover_ has quit [Quit: Leaving... have a good one...]
<jhass>
do you see how self returned two different values?
Hanmac has quit [Read error: Connection reset by peer]
<jhass>
the @foo you defined outside the method belongs to the former, the @foo you access inside the method belongs to the later
<Pro|_>
maybe i just use @@
<havenwood>
Pro|_: no!
<jhass>
they're two completely different @foo's
<jhass>
Pro|_: do you ever change the value of @foo ?
<Pro|_>
i'm using this in controller
<jhass>
(in your real code)
cesare has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby
axl_ has joined #ruby
<jhass>
Pro|_: if you describe your actual usecase we might be able to suggest a nice solution
troulouliou_dev has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 250 seconds]
xaxisx has joined #ruby
kireevco has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
treehug88 has joined #ruby
SilkFox_ has joined #ruby
<Pro|_>
actually i just figured out a better way
<Pro|_>
this wasn't suitable in the first place
arya_ has quit [Read error: Connection reset by peer]
MickeyO has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
kevind has joined #ruby
chipotle has joined #ruby
anarang_ has quit [Quit: Leaving]
snath has joined #ruby
frellnet_ has joined #ruby
phutchin1 has joined #ruby
asdasdasdasss has joined #ruby
davedev2_ has joined #ruby
enebo has joined #ruby
garethrees has joined #ruby
makeable_ has joined #ruby
apeiros_ has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
freerobby1 has joined #ruby
fjfish has joined #ruby
Photism has joined #ruby
renderful has joined #ruby
phutchins has quit [Disconnected by services]
phutchin1 is now known as phutchins
jeysusmeister_ has left #ruby [#ruby]
makeable has quit [Disconnected by services]
ebragapa_ has joined #ruby
rubytor_ has joined #ruby
Joulse_ has joined #ruby
rubytor_ is now known as Guest46632
makeable_ is now known as makeable
renderful has quit [Remote host closed the connection]
csfrancis has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
bal1 has joined #ruby
chipotle_ has joined #ruby
agjacome_ has joined #ruby
starkhalo has joined #ruby
KnownSyntax_ has joined #ruby
puppeh has quit [Quit: Leaving...]
terryb has joined #ruby
amacou has quit [Remote host closed the connection]
amacou has joined #ruby
DanielRb_ has joined #ruby
jamto11 has joined #ruby
bal1 has quit [Client Quit]
nemesit|- has joined #ruby
terrellt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
KnownSyntax has quit [Ping timeout: 240 seconds]
chipotle has quit [*.net *.split]
mehlah has quit [*.net *.split]
bal has quit [*.net *.split]
Gonzih has quit [*.net *.split]
lkba has quit [*.net *.split]
rubytor has quit [*.net *.split]
MrSamuel has quit [*.net *.split]
ARCADIVS has quit [*.net *.split]
ghr has quit [*.net *.split]
francisfish has quit [*.net *.split]
elico has quit [*.net *.split]
apeiros has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
mordof has quit [*.net *.split]
freerobby has quit [*.net *.split]
davedev24_ has quit [*.net *.split]
ebragaparah has quit [*.net *.split]
frellnet has quit [*.net *.split]
northfurr has quit [*.net *.split]
agjacome has quit [*.net *.split]
DanielRb has quit [*.net *.split]
papercode has quit [*.net *.split]
Joulse has quit [*.net *.split]
jle` has quit [*.net *.split]
hsps_ has quit [*.net *.split]
magicien has quit [*.net *.split]
csfranci1 has quit [*.net *.split]
Joulse_ is now known as Joulse
DanielRb_ is now known as DanielRb
DanielRb has joined #ruby
DanielRb has quit [Changing host]
dc has quit [Remote host closed the connection]
compAz has quit [Remote host closed the connection]
northfurr has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terryb has quit [Ping timeout: 264 seconds]
r0bby has quit [Excess Flood]
jwing has joined #ruby
jerius has quit []
natewalck has quit []
r0bby has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
amacou has quit [Ping timeout: 256 seconds]
<jwing>
if I instantiate an object how can I use that object to then call a method in a subclass of that object?
natewalck has joined #ruby
zB0hs has joined #ruby
<jhass>
You can't, instantiate the subclass instead
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
renderful has joined #ruby
mordof has joined #ruby
papercode has joined #ruby
hsps_ has joined #ruby
<jwing>
Hmm.. but what happens if I have A::B and A::C.. and want to use the parent environment across both?
ARCADIVS has joined #ruby
<jhass>
huh, are you confusing namespaces with subclasses maybe?
eugene4968 has joined #ruby
<jhass>
maybe provide real code of your problem
jle` has joined #ruby
<jwing>
well.. instantiation of A sets up overall driving configurations.
awkwords has joined #ruby
Gonzih has joined #ruby
dawkirst has joined #ruby
magicien has joined #ruby
MrSamuel has joined #ruby
<kaspergrubbe>
A::Image (sub) and ::Image (parent)
elico has joined #ruby
<jwing>
And B and C provide methods for differing objects w/in that parent class
Notte has joined #ruby
<jhass>
I do think you're confusing namespaces and subclasses
apeiros_ has quit [Remote host closed the connection]
Beoran_ has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
apeiros has joined #ruby
<jwing>
recommendation ?
<jwing>
assuming I am confusing them. :)
<jhass>
class A; class B; end; end; A::B is namespaced in A. class A; end; class B < A; end; end; B is a sublcass of A. class A; class B < A; end; end; A::B is namespaced inside A and a subclass of A
<jhass>
namespaces are to organize your stuff: module MySystem; module MyComponent; class Thing; end; end; end;
<jhass>
subclasses are to specialize an class: class Animal; def walk; end; end; class Dog < Animal; def bark; end; end;
wsirc_6919 has joined #ruby
yfeldblum has joined #ruby
Beoran__ has quit [Ping timeout: 240 seconds]
<jhass>
there's not much recommendation if you have confused these two concepts, except getting them straight and then rethinking the design of your system
sixxy has quit [Ping timeout: 256 seconds]
<jwing>
basically.. I have overall configuration data that I need to set which applies to both sets of methods in two classes.
jfran has joined #ruby
codabrink has joined #ruby
<jhass>
For configuration I usually prefer dependency or composition, not inheritance
Hanmac has joined #ruby
<gregf_>
jwing: so do you need to subclass?
apeiros has quit [Ping timeout: 256 seconds]
<jwing>
Well. the two classes are part of a whole
<jhass>
module MySystem; class Configuration; ...; end; class A; def foo; Configuration.bar; end; end; class B; def bar; Configuration.baz; end; end;
<jhass>
jwing: if you maybe describe your real stuff at hand we can tell if you're right about that or not
Notte has quit [Remote host closed the connection]
<jwing>
Just that I am creating interfaces to an external device. That device manages 3 types (classes) of functions.
yfeldblum has quit [Ping timeout: 240 seconds]
<gregf_>
if you're subclassing you would'nt usually instantiate the base class :/. you'd make it abstract or move the reusable code to a mixin :/
<jwing>
So.. was going to define a "Class" for the whole device and then subclasses to each of the function types.
qmfnp has joined #ruby
<jhass>
yeah, that sounds like a job for a mixin (module) in the ruby world
fabrice31 has quit [Remote host closed the connection]
<jwing>
ok. thanks.. will go back to the books and read up on mixin. :)
* jwing
obviously very new to Ruby.
<gregf_>
er, well its OO :). inheritance v/s delegation :/
zB0hs has quit [Read error: Connection reset by peer]
<jhass>
vs. composition
abdulsattar has joined #ruby
clamstar has quit [Remote host closed the connection]
g0bl1n has joined #ruby
<jwing>
yeah.. each language has it's own way of supporting it. Which makes it entertaining. :)
lukec has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
clamstar has joined #ruby
clamstar has quit [Remote host closed the connection]
jespada has joined #ruby
moted has joined #ruby
charliesome has joined #ruby
clamstar has joined #ruby
wsirc_6919 has quit [Remote host closed the connection]
ebragapa_ has quit [Remote host closed the connection]
_maes_ has joined #ruby
SiliconDon has joined #ruby
arya_ has quit [Read error: Connection reset by peer]
abdulsattar has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Quit: Leaving...]
arya_ has joined #ruby
Hobogrammer has joined #ruby
lmickh has joined #ruby
NinoScript_ has joined #ruby
yalue has quit [Quit: Leaving]
awc737 has joined #ruby
SiliconDon has quit []
ebragaparah has joined #ruby
Gonzih has quit [Ping timeout: 240 seconds]
gbaway has joined #ruby
compAz has joined #ruby
kevind_ has joined #ruby
weems|work has joined #ruby
SiliconDon has joined #ruby
Takle has quit [Remote host closed the connection]
medusar has joined #ruby
mehlah has joined #ruby
medusar has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
kevind has quit [Ping timeout: 245 seconds]
kevind_ is now known as kevind
NinoScript_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
makeable has quit [Quit: Computer has gone to sleep.]
anaeem1 has joined #ruby
vindictive27 has joined #ruby
vindictive27 has joined #ruby
xaxisx has left #ruby [#ruby]
Takle has joined #ruby
asdasdasdasss has joined #ruby
baroquebobcat has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
Hanmac has quit [Remote host closed the connection]
dANOKELOFF has quit []
davedev2_ has quit [Read error: Connection reset by peer]
terrellt has quit [Remote host closed the connection]
davedev24_ has joined #ruby
terrellt has joined #ruby
lukec has quit [Quit: lukec]
havenwood has joined #ruby
alex88 has quit [Quit: Leaving...]
asdasdasdasss has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
garethrees has quit []
dumdedum has quit [Quit: foo]
ghr has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
SCommette has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
cesare has joined #ruby
lucianosousa has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
maestrojed has joined #ruby
davedev24_ has joined #ruby
toastynerd has joined #ruby
shredding has joined #ruby
cesare_ has quit [Ping timeout: 256 seconds]
echevemaster has joined #ruby
Hanmac has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pietr0 has joined #ruby
alem0lars has joined #ruby
jmd has joined #ruby
lucianosousa has quit [Quit: lucianosousa]
nobitanobi has joined #ruby
eka has quit [Ping timeout: 250 seconds]
Joulse has quit [Quit: Joulse]
SiliconDon has quit []
bricker`work has joined #ruby
terryb has joined #ruby
SiliconDon has joined #ruby
pietr0 has quit [Client Quit]
pietr0 has joined #ruby
makeable_ has joined #ruby
sambao21 has joined #ruby
jay__ has joined #ruby
ramfjord has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
<jmd>
Still having trouble building 2.1.2 -
<jmd>
it gets as far as: # Running tests:
sandelius has joined #ruby
sdouglas has joined #ruby
<jmd>
Then prints about 200 dots
kil0byte has quit [Remote host closed the connection]
<jmd>
then waits for an hour doing nothing before the builder times out.
fjfish has quit [Remote host closed the connection]
M-Technic has joined #ruby
sailias has quit [Ping timeout: 240 seconds]
aaronrl has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
terryb has quit [Ping timeout: 240 seconds]
rickybobby has joined #ruby
<rickybobby>
Good Morning..
<k0m>
Good morning!
<jmd>
rickybobby: Good Evening.
sputnik1_ has joined #ruby
shanlar has joined #ruby
icarus_ has joined #ruby
francisfish has quit [Remote host closed the connection]
sailias has joined #ruby
<rickybobby>
I am learning Ruby and Rails, is it possible to just be backend, or do I need front end also..( I know html, css some js)
icarus_ is now known as icarus
francisfish has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
* rickybobby
wonders if anyone is alive in here.
<sirecote>
if you want just backend, why do you want the whole stack?
<rickybobby>
I am not the most creative designer.
klaut has quit [Remote host closed the connection]
<sirecote>
also there is #rubyonrails
g0bl1n has quit [Quit: g0bl1n]
<jhass>
these days more and more webapps have quite some logic in the javascript
<rickybobby>
yes i am learning ruby and rails
<jmd>
jhass: Those webpages will get blocked.
<jhass>
jmd: what google products do you use?
<rickybobby>
I will try rails channel
<jmd>
Not many at all. Occasionally google scholar and google images.
theharshest has joined #ruby
<sirecote>
rickybobby: it's entirely possible, but it seems a bit overkill...
francisfish has quit [Ping timeout: 240 seconds]
<jhass>
what phone do you have?
<rickybobby>
Fullstack developer is the best?
<jmd>
I have no idea. A small black one.
<rickybobby>
lol
sdouglas has joined #ruby
<jmd>
(I presume you meant a mobile phone)
<jhass>
rickybobby: start with what's fun for you. You'll probably start glancing at that and be able to leave the other stuff to other people
LiohAu has quit [Quit: LiohAu]
rickybobby is now known as fakam
mikepack has joined #ruby
krz has joined #ruby
timonv_ has quit [Remote host closed the connection]
agjacome_ has quit [Quit: leaving]
dawkirst has quit [Remote host closed the connection]
<fakam>
Okay, i will master ruby and rails then dve into other stuffs
timonv_ has joined #ruby
Channel6 has joined #ruby
lukec has joined #ruby
sigurding has quit [Quit: sigurding]
<krz>
is Date.today based on utc by default?
<jhass>
I think it defaults to your system timezone
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geggam has joined #ruby
bronson has joined #ruby
aaronrl has joined #ruby
ebragaparah has quit [Remote host closed the connection]
_tpavel has quit [Quit: Leaving]
anaeem1__ has joined #ruby
roolo has quit [Quit: Leaving...]
frank_ has joined #ruby
dawkirst has joined #ruby
timonv_ has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
awkwords has quit [Ping timeout: 240 seconds]
fmauz_ has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 240 seconds]
doritostains has joined #ruby
havenwood has quit [Remote host closed the connection]
jfran has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
lxsameer has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlHafoudh has joined #ruby
mercwithamouth has joined #ruby
zigomir has joined #ruby
<gaussblurinc1>
hi! I like os x way of 'smart' folder recognition. they give folders special names and folders have become packages and 'wow!' magic happens here. dot_xcodeproj is a package (special folder). app - also a package. Now my question: if I want to write a class that will behave as 'smart' folder, for example: dotApp class, do I need to inherite from Directory class or I need to make my own implementation?
<AlHafoudh>
hiwhat is the gem/tool called that can take gem version information and overwrite Gemfile with those versions?
<AlHafoudh>
.. from Gemfile.lock
GlenK has joined #ruby
<jhass>
AlHafoudh: bundler ?
fakam has quit [Ping timeout: 246 seconds]
<AlHafoudh>
just found it
gaussblurinc1 has quit [Quit: Leaving.]
<AlHafoudh>
jhass, no, version_gemfile
Guest3324 has quit [Remote host closed the connection]
awkwords has joined #ruby
billy_ran_away has quit [Ping timeout: 264 seconds]
funktor has quit [Remote host closed the connection]
juco has quit [Quit: Leaving...]
sdouglas_ has joined #ruby
havenwood has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
apeiros has joined #ruby
moh1 has joined #ruby
moh1 has quit [Quit: WeeChat 0.3.8]
jamto11 has quit [Remote host closed the connection]
Poky has quit [Remote host closed the connection]
tvw has quit []
jfran has joined #ruby
Takle has quit [Remote host closed the connection]
<nobitanobi>
You mean I don't need to set it when spawning the process?
axsuul has joined #ruby
<jhass>
I don't think so
xaxisx has joined #ruby
xaxisx has left #ruby [#ruby]
dumdedum has joined #ruby
<nobitanobi>
right, I just proved it
ybit has quit [Changing host]
ybit has joined #ruby
<nobitanobi>
I just want to avoid the errors be outputed to the same pipe
<nobitanobi>
as I am JSON.parse the output
danijoo has quit [Read error: Connection reset by peer]
SilkFox_ has joined #ruby
danijoo has joined #ruby
<jhass>
you mean you get the errors too if you just setup a pipe for out?
paulfm has joined #ruby
timonv_ has joined #ruby
<nobitanobi>
jhass: I would like to have three pipes. One for standard output, one for input and one for error. But IO.pipe just returns 2 pipes. Should I just create another IO.pipe to use it for the error pipe?
stytown has quit [Quit: stytown]
<jhass>
IO.pipe returns the two ends of one pipe!
johnmolina has quit [Remote host closed the connection]
felipe has joined #ruby
NinoScript has quit [Ping timeout: 256 seconds]
asdasdasdasss has joined #ruby
zigomir has joined #ruby
sdouglas has quit [Remote host closed the connection]
SiliconDon has quit []
<nobitanobi>
jhass: I see...
ironman85 has joined #ruby
Guest24383 has joined #ruby
SilkFox_ has quit [Ping timeout: 240 seconds]
<jmd>
join them together and get a cyclotron.
<nobitanobi>
oh boy
NinoScript has joined #ruby
ebragaparah has quit [Remote host closed the connection]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
<jhass>
so for stdin you would pass the read end and keep the write end for your side, for out and err you pass the write end and keep the read end for your side
jerius has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
britneywright has joined #ruby
* jmd
in desperation tries rebuilding ruby without the -j flag
pu22l3r has quit [Ping timeout: 256 seconds]
i_s has joined #ruby
<lagweezle>
What is the -j flag?
davedev24_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
NinoScript has quit [Ping timeout: 240 seconds]
davedev24_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
jottr has joined #ruby
NinoScript has joined #ruby
fabrice31 has joined #ruby
<headius>
shevy, inukshuk, apeiros: exposing raw memory addresses is terrible idea
<headius>
I just added a comment to that effect
<shevy>
hehe
<headius>
of course rbx and JRuby wouldn't support it, but if MRI adds it it's one more thing that limits how far they can improve the GC
luckyruby has joined #ruby
alexju has quit [Remote host closed the connection]
circ-user-YZE4n has joined #ruby
<jmd>
lagweezle: It builds in parallel.
terryb has joined #ruby
<lagweezle>
jmd: Ah! Yeah. Some things doo poorly when built that way. :/
Dreamer3 has joined #ruby
sigurding has joined #ruby
stytown has joined #ruby
<nobitanobi>
jhass: I see. The problem is that if for err I pass the same that for out, I can't do JSON.parse(out). That's why I was thinking on having another pipe just for the error.
jottr has quit [Ping timeout: 240 seconds]
<jmd>
lagweezle: Normally it works fine. Occasionally when some programmer thinks he knows better than autotools and has tried to roll his own scripts things break.
<jhass>
nobitanobi: sure, just make enough pipes ;)
<nobitanobi>
jhass: that's not a problem, right?
<lagweezle>
jmd: BUT IT WASN'T BUILT HERE! ;)
fabrice31 has quit [Ping timeout: 264 seconds]
Zenigor has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
weems|work has quit [Quit: weems|work]
<jmd>
Another possibility is the lack of Tcl causes the problem.
namxam has quit [Remote host closed the connection]
SiliconDon has joined #ruby
pu22l3r has joined #ruby
nanoyak has joined #ruby
<jmd>
At any rate, whatever the problem is, I wish it would give an error message and barf, instead of just hanging ad infinitum
terryb has quit [Ping timeout: 250 seconds]
dawkirst_ has joined #ruby
mehlah has quit [Quit: Leaving...]
cleopatra has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
dawkirst_ has quit [Client Quit]
Zesty has joined #ruby
Spami has joined #ruby
yetanotherdave has joined #ruby
timonv_ has quit [Remote host closed the connection]
weems|work has joined #ruby
lkba has joined #ruby
<lagweezle>
Aye. That is not useful behavior.
larsam has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
IcyDragon has joined #ruby
Aaaal has quit [Quit: Aaaal]
paulfm has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
frank_ has quit [Ping timeout: 264 seconds]
bootstrappm has joined #ruby
doritostains has quit [Quit: doritostains]
IcyDragon is now known as IceDragon
Xeago has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
johnmolina has joined #ruby
johnmolina has quit [Remote host closed the connection]
johnmolina has joined #ruby
doritostains has joined #ruby
Czupa has joined #ruby
djbkd has joined #ruby
fmauz has quit [Remote host closed the connection]
gaussblurinc1 has joined #ruby
ValicekB has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Hanmac1 has joined #ruby
havenwood has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 240 seconds]
rdark has quit [Quit: leaving]
frankle has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
asdasdasdasss has quit [Ping timeout: 264 seconds]
<jhass>
that's... unexepcted
binaryhat has joined #ruby
renderful has joined #ruby
parzo has quit [Read error: Connection timed out]
ramfjord has joined #ruby
Channel6 has quit [Quit: Leaving]
wallerdev has quit [Ping timeout: 250 seconds]
<apeiros>
headius: somehow I expected your opinion to be in that general direction :)
parzo has joined #ruby
<jhass>
nobitanobi: and you're not confusing that with the default of redirecting the spawned processes stdout to the ruby processes stdout?
<headius>
apeiros: I think _ko1 will probably agree with me
<jhass>
the second form works for me in a minimal example with cat btw.
<nobitanobi>
jhass: that's a good point. I might be just looking the default stdout for phantomjs
<headius>
apeiros: you can either have a VM with a bad GC that exposes pointers, or a VM with a good GC that doesn't
zorak has quit [Ping timeout: 264 seconds]
troyready has joined #ruby
<apeiros>
headius: I was really surprised to see him suggest that in the first place. but now that I think about it, I start to think that he might have been more looking for instrumentation tools
<nobitanobi>
yeah, jhass right I actually see a nil
<nobitanobi>
right after the default stdout
<headius>
not a whole lot of wiggle room in th middle
<nobitanobi>
right after the default stdout
<apeiros>
and since it's in a dump function, performance wouldn't be much of a consideration either
<nobitanobi>
jhass: I guess I need to tell PhantomJS to use the passed pipe to write...
havenwood has joined #ruby
<apeiros>
how does the jvm provide such information to instrumentation tools?
<jhass>
nobitanobi: I don't really think so, I mean my simple example with cat works
<jmd>
IceDragon: I don't follow that.
jobewan has joined #ruby
<nobitanobi>
jhass: what do you mean? But you pass it the pipe right?
<headius>
or you can use it to rewrite code to gather allocation info, stack traces, etc
AlexRussia has quit [Read error: Connection reset by peer]
<nobitanobi>
jhass: I should have specified that this problem is just when the JSON coming from PhantomJS is pretty big.
<jmd>
Everthing seems fine so far as the make check stage.
zorak has joined #ruby
<nobitanobi>
By big I mean 132648 when doing .length in the PhantomJS script.
Zesty has joined #ruby
Mr_Doctor has quit [Ping timeout: 240 seconds]
<headius>
apeiros: exposing implementation details just to do instrumentation is really counterproductive
AlexRussia has joined #ruby
terryb has quit [Ping timeout: 264 seconds]
<jhass>
nobitanobi: I don't know, I'd experiment a bit, setting IO#sync, not waiting for the process to finish etc.
spider-mario has joined #ruby
SCommette has joined #ruby
ironman85 has quit [Remote host closed the connection]
<jhass>
read untile IO#eof? stuff like that
stytown has quit [Quit: stytown]
<nobitanobi>
jhass: ok... let's see
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
headius: re "why'd you need that" - no idea. I haven't written instrumentation tools on that level :) but I'd assume something like valgrind needs addresses.
timonv_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
brandonshowers has joined #ruby
<headius>
apeiros: then valgrind is not compatible with a modern GC :-)
sheperson has joined #ruby
parzo has quit [Read error: Connection timed out]
Neomex has joined #ruby
stytown has joined #ruby
sixxy has quit [Ping timeout: 250 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
<apeiros>
headius: given that it's the kind of tool you use to debug a GC, I don't think it needs to be compatible with it :D
sixxy has joined #ruby
dangerousdave has joined #ruby
dc has joined #ruby
agjacome_ has joined #ruby
ffranz has joined #ruby
parzo has joined #ruby
jay__ has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
jay__ has joined #ruby
JBreit has left #ruby ["Leaving"]
Alina-malina has quit [Ping timeout: 245 seconds]
stytown has quit [Quit: stytown]
sepp2k has joined #ruby
Lewix has joined #ruby
Takle has joined #ruby
Mr_Doctor has joined #ruby
Biohazard has joined #ruby
agjacome has quit [Ping timeout: 250 seconds]
stytown has joined #ruby
timonv_ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
jfran_ has joined #ruby
MrDoctor_ has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 250 seconds]
ffranz has quit [Quit: Leaving]
timonv_ has quit [Remote host closed the connection]
ffranz has joined #ruby
jfran has quit [Ping timeout: 240 seconds]
mijicd has joined #ruby
mikepack has quit [Remote host closed the connection]
mijicd_ has joined #ruby
dopie has quit [Remote host closed the connection]
Gonzih has joined #ruby
saarinen has quit [Quit: saarinen]
Hanmac has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
memph1s has quit [Quit: I couldn't come up with quit message :(]
dc has quit [Remote host closed the connection]
ghr has joined #ruby
vsoftoiletpaper has joined #ruby
jfran_ has quit [Ping timeout: 264 seconds]
Ayey_ has joined #ruby
SiliconDon has quit []
reset has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
Mr_Doctor has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
jamto11 has joined #ruby
Mr_Doctor has joined #ruby
<jmd>
Do other people experience problems with the tests or is it just me?
<Ayey_>
How can i convert an Ruby object to JSON? After requring the json gem, i have tried calling #to_json and JSON#generate, but nothing like i excepted. The ruby object is a class with some variables assigned to it
snowyrooftops has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
ffranz has quit [Ping timeout: 250 seconds]
<jhass>
Ayey_: define an as_json method in that class that returns a hash that represents the structure and data you ant
<jhass>
*want
dc has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
<Ayey_>
jhass: Like overriding an toString method in Java? or is this an sperate method
<slowcon>
the page title, but I cant seem to get it to pull the correct page. any ideas?
banister has quit [Quit: Computer has gone to sleep.]
jottr has joined #ruby
EMoreth has left #ruby [#ruby]
<jhass>
you probably need to POST the right data and follow the redirect
EMoreth has joined #ruby
<jhass>
did you consider mechanize?
banister has joined #ruby
<slowcon>
i used mechanize to log into the forum
<slowcon>
ill try it for this part as well
stopbit has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
cobakobodob has quit [Ping timeout: 240 seconds]
dvbbot has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<slowcon>
jhass, tried with mechanize, think the problem is that the forum is not keeping me logged in
cobakobodob has joined #ruby
wallerdev has joined #ruby
itspots has joined #ruby
dvb_ua has joined #ruby
dvb_ua has quit [Client Quit]
CpuID has joined #ruby
CpuID has joined #ruby
wallerdev has quit [Client Quit]
pu22l3r_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
Gonzih has joined #ruby
pu22l3r has joined #ruby
larsam has quit [Quit: Exit]
jamto11 has joined #ruby
compAz has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
britneywright has joined #ruby
dvbbot has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
mijicd has joined #ruby
improv32 has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doritostains has quit [Quit: doritostains]
Notte has quit [Remote host closed the connection]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
SilkFox_ has joined #ruby
Wolland_ has quit [Ping timeout: 240 seconds]
banister has quit [Quit: Computer has gone to sleep.]
namxam has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
carraroj has joined #ruby
dvbbot has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
djbkd has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
fold has quit [Ping timeout: 250 seconds]
dvbbot has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 264 seconds]
relix_ has quit [Read error: Connection reset by peer]
DrShoggoth has quit [Quit: Leaving]
relix has joined #ruby
DrShoggoth has joined #ruby
kireevco1 has joined #ruby
djbkd has joined #ruby
soahccc^ has quit [Quit: Legalize it!]
weems|work has quit [Quit: weems|work]
kireevco has quit [Ping timeout: 264 seconds]
dvbbot has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
improv32 has quit [Ping timeout: 250 seconds]
r_rios has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
anaeem1__ has quit [Remote host closed the connection]
awkwords has joined #ruby
Wolland has joined #ruby
dvbbot has quit [Remote host closed the connection]
anaeem1 has joined #ruby
weems|work has joined #ruby
dvbbot has joined #ruby
larsam has joined #ruby
sambao21 has joined #ruby
stytown has joined #ruby
djcp has joined #ruby
sambao21 has quit [Client Quit]
geardev has joined #ruby
stytown has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
dvbbot has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
charlied3 has quit [Quit: WeeChat 0.4.2]
cobakobodob has quit [Ping timeout: 250 seconds]
Jake232 has joined #ruby
terryb has joined #ruby
funktor has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
stytown has joined #ruby
brandonshowers has joined #ruby
charliesome has joined #ruby
andrewjanssen has joined #ruby
MrDoctor has joined #ruby
djbkd has joined #ruby
MrDoctor has quit [Changing host]
MrDoctor has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
terryb has quit [Ping timeout: 256 seconds]
x1337807x has joined #ruby
dvbbot has joined #ruby
MrDoctor_ has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
Hanmac has joined #ruby
MrDoctor_ has joined #ruby
Gonzih has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 256 seconds]
mijicd has quit [Remote host closed the connection]
echevemaster has quit [Ping timeout: 250 seconds]
MrDoctor has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
dvbbot has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
mijicd has joined #ruby
Mr_Doctor has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
dvbbot has joined #ruby
Mr_Doctor has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
djbkd has quit [Remote host closed the connection]
Mr_Doctor has joined #ruby
Zenigor has joined #ruby
jaimef has quit [Excess Flood]
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
nanoyak has joined #ruby
dvbbot has quit [Remote host closed the connection]
djbkd has joined #ruby
dvbbot has joined #ruby
MrDoctor_ has quit [Ping timeout: 264 seconds]
banister has joined #ruby
GlenK has quit []
edgarjs is now known as edgarjs_afk
stytown has quit [Quit: stytown]
dvb_ua has joined #ruby
asdasdasdasss has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
circ-user-YZE4n is now known as timbo_
gaussblurinc1 has quit [Quit: Leaving.]
awkwords has quit [Ping timeout: 250 seconds]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timbo_ is now known as twhittley
dvbbot has quit [Ping timeout: 250 seconds]
brandonshowers has joined #ruby
jmd has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
jaimef has joined #ruby
axsuul has joined #ruby
awkwords has joined #ruby
maletor has joined #ruby
ninegrid has quit [Ping timeout: 272 seconds]
baweaver has quit [Read error: Connection reset by peer]
vsoftoiletpaper has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
aspires has quit []
sandbags has joined #ruby
vsoftoiletpaper has joined #ruby
dideler has joined #ruby
vsoftoiletpaper has quit [Client Quit]
fold has joined #ruby
benzrf|offline is now known as benzrf
aspires has joined #ruby
CpuID has quit [Read error: Connection reset by peer]
vsoftoiletpaper has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sandbags has quit [Client Quit]
ghr has joined #ruby
sandbags has joined #ruby
sandbags has left #ruby [#ruby]
claymore_ has quit [Quit: Leaving]
sambao21 has joined #ruby
stytown has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
vsoftoiletpaper has quit [Client Quit]
danijoo has joined #ruby
awkwords_ has joined #ruby
cDuff has joined #ruby
agjacome has joined #ruby
renderful has joined #ruby
vsoftoiletpaper has joined #ruby
baweaver has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
yfeldblum has joined #ruby
cobakobodob has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
awkwords has quit [Ping timeout: 240 seconds]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
agjacome_ has quit [Ping timeout: 263 seconds]
zorak_ has joined #ruby
agjacome_ has joined #ruby
Czupa has quit [Quit: Wychodzi]
DrShoggoth has quit [Quit: Leaving]
Takle has joined #ruby
agjacome has quit [Ping timeout: 250 seconds]
LouisR has quit [Quit: Computer has gone to sleep.]
rp__ has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
fabrice31 has joined #ruby
LouisR has joined #ruby
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
asdasdasdasss has joined #ruby
zorak has quit [Ping timeout: 250 seconds]
lucianosousa has quit [Quit: lucianosousa]
sandelius has joined #ruby
edgarjs_afk is now known as edgarjs
CpuID has joined #ruby
funktor has quit [Ping timeout: 240 seconds]
Notte has joined #ruby
r_rios has quit [Read error: Connection reset by peer]
LouisR has quit [Ping timeout: 240 seconds]
renderful has quit [Remote host closed the connection]
jdj_dk has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
fmauz has joined #ruby
asdasdasdasss has quit [Ping timeout: 264 seconds]
makeable_ has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
fmauz has quit [Remote host closed the connection]
aspires has quit []
beneggett has joined #ruby
hephaestus_rg has joined #ruby
doritostains has joined #ruby
aspires has joined #ruby
jdj_dk has quit [Remote host closed the connection]
<hephaestus_rg>
hello there!
Xeago has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
<hephaestus_rg>
i'd like to use the dotenv gem as a dependencey in my own gem, but i'm not sure where i should `Dotenv.load`
_maes_ has quit [Ping timeout: 250 seconds]
gattuso has quit [Ping timeout: 260 seconds]
makeable_ has quit [Ping timeout: 240 seconds]
gattuso has joined #ruby
jottr has joined #ruby
frellnet_ has quit [Remote host closed the connection]
cesare has quit [Ping timeout: 240 seconds]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
CpuID2 has quit [Changing host]
SilkFox_ has joined #ruby
rp__ has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
obscured has quit [Quit: leaving]
CpuID has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<nehaljwani>
Umm, how do I write a grok pattern for this: "[INFO] 2014-03-24 06:28:32 +0000 [101fb7dcb4e8cc8f8479e6972b3ff756] [14.141.125.250] Completed 200 OK in 43ms (Views: 2.2ms | ActiveRecord: 2.1ms)"
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has quit [Remote host closed the connection]
paulfm has quit []
GriffinHeart has joined #ruby
mikepack_ has quit [Remote host closed the connection]
mikepack has joined #ruby
paulfm has joined #ruby
Notte has quit [Remote host closed the connection]
paulfm has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
frellnet has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
codezomb has joined #ruby
ndrei has joined #ruby
mr-foobar has quit [Ping timeout: 245 seconds]
frellnet has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
MrDoctor_ has joined #ruby
apeiros has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zenigor has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Mr_Doctor has quit [Ping timeout: 240 seconds]
MrDoctor has joined #ruby
spyderma_ has quit [Remote host closed the connection]
MrDoctor_ has quit [Read error: Connection reset by peer]
johnmolina has quit []
terryb has joined #ruby
jespada has quit [Quit: Leaving]
spyderman4g63 has joined #ruby
<shevy>
hydrajump YAML.dump is the default way for yaml
geggam has quit [Remote host closed the connection]
Sauvin has joined #ruby
geggam has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
Vivekananda_y510 has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 264 seconds]
bmurt has quit []
asdasdasdasss has joined #ruby
funktor has quit [Ping timeout: 264 seconds]
terryb has quit [Ping timeout: 245 seconds]
namxam_ has joined #ruby
Zenigor has joined #ruby
Kricir has quit [Remote host closed the connection]
Nahra has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
ldnunes has quit [Quit: Leaving]
funktor has joined #ruby
twhittley has quit [Ping timeout: 264 seconds]
<eam>
hydrajump: you never need to "convert" json -> yaml. yaml is a superset of json
djbkd has quit [Remote host closed the connection]
namxam has quit [Ping timeout: 240 seconds]
<hydrajump>
shevy: shsss
<AlHafoudh>
is it possible to package all dependant gems of my gem into the gem when building it?
kaiserpathos has quit []
<shevy>
AlHafoudh hehe I had the same question a few weeks ago
<AlHafoudh>
:)
Vivekananda_y510 has joined #ruby
<AlHafoudh>
and what was the answer? :)
renderful has joined #ruby
Nahra has quit [Remote host closed the connection]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hydrajump>
sorry lost my connection.
Zenigor has quit [Remote host closed the connection]
sigurding has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
soahccc has joined #ruby
Hanmac1 has joined #ruby
<hydrajump>
eam so "parse" yaml into json? In any case I just wanted feedback if I was doing the parsing in a good way in both directions
cDuff has quit [Read error: Connection reset by peer]
dc has quit [Read error: Connection reset by peer]
mikesplain has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
Nahra` has joined #ruby
linojon has quit [Quit: linojon]
starkhalo has quit [Ping timeout: 256 seconds]
awc737 has joined #ruby
awc737 has quit [Max SendQ exceeded]
terrell_t has joined #ruby
dc has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
lw has joined #ruby
axsuul has joined #ruby
sailias has quit [Quit: Leaving.]
gizmore has joined #ruby
funktor_ has joined #ruby
freerobby1 has quit [Quit: Leaving.]
funktor has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
charliesome has joined #ruby
<soahccc>
Is there any way to reopen a closed stdout stream? I have multiple log destinations so I have multiple loggers (multiIO). The problem is that if I close them the one using STDOUT closes the output and I can't "puts" anymore :/ https://gist.github.com/anonymous/b49abab2d10757198bd0
<shevy>
AlHafoudh there is no way
doodlehaus has quit [Remote host closed the connection]
<AlHafoudh>
ok
<shevy>
AlHafoudh I wrote up a script that puts my own gems into a new gem, but...
Nahra` has quit [Remote host closed the connection]
<shevy>
these are more complicated; you could copy the generated code, probably into the .gem and repackage
zorak_ has quit [Read error: Connection reset by peer]
ghr has joined #ruby
Nahra has joined #ruby
nobodyzzz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnally has quit [Ping timeout: 250 seconds]
<AlHafoudh>
thanks, saved me a lot of time shevy
jamto11 has quit [Remote host closed the connection]
czaks has joined #ruby
starkhalo has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
zorak_ has joined #ruby
<shevy>
\o/
<shevy>
it would be neat if gem itself could support this
<shevy>
then I could repackage ALL my stuff into one fat .gem
<shevy>
and distribute just that :P
<czaks>
i have a quick question, i have some old code using Hash#synchronize method. is it true, that old Ruby had Mutex#synchronize as Object#synchronize actually?
lw has quit [Quit: s]
ghr has quit [Ping timeout: 250 seconds]
shredding has quit [Quit: shredding]
Notte has joined #ruby
<czaks>
i ask, because that seemed to be an idiom in some languages
Xeago has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
bronson has quit [Quit: bronson]
sargas has joined #ruby
sigurding has quit [Quit: sigurding]
<sargas>
Hello, does middleman have an IRC channel?
beneggett has quit [Ping timeout: 250 seconds]
memph1s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Notte has quit [Ping timeout: 250 seconds]
spider-mario has quit [Remote host closed the connection]
Notte has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
eka_ has joined #ruby
bronson has joined #ruby
sambao21 has joined #ruby
freerobby has quit [Client Quit]
Aaaal has joined #ruby
freerobby has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
eka has quit [Ping timeout: 250 seconds]
sambao21 has quit [Client Quit]
terrell_t is now known as terrellt
amargherio has quit [Read error: Connection reset by peer]
yfeldbl__ has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
davedev24_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
peret has joined #ruby
davedev2_ has quit [Ping timeout: 245 seconds]
doritostains has quit [Quit: doritostains]
<ericwood>
sargas: how did you go about installing it?
amacou has quit [Remote host closed the connection]
<ericwood>
do "gem list"
<agent_white>
shevy: We are the friendly folks :)
kirun has quit [Quit: Client exiting]
amacou has joined #ruby
<sargas>
ericwood: I ran a 'bundle install'
<sargas>
ericwood: and if it helps, ruby was installed with sudo
amacou has quit [Read error: No route to host]
charliesome_ has joined #ruby
<ericwood>
sargas: ah okay
yfeldblum has joined #ruby
<ericwood>
I'm not much help here then
jaimef has joined #ruby
freerobby has joined #ruby
yfeldblum has quit [Remote host closed the connection]
fabrice31 has joined #ruby
amacou has joined #ruby
<sargas>
ericwood: thanks anyways
sdouglas has quit [Remote host closed the connection]
<ericwood>
yeah I'm headed out :(
<ericwood>
godspeed
ndrei has joined #ruby
doritostains has joined #ruby
renderful has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 240 seconds]
hmsimha has joined #ruby
jobewan has quit [Quit: Leaving]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
snath has quit [Ping timeout: 250 seconds]
mijicd has quit [Remote host closed the connection]
ghr has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
hadees has joined #ruby
benzrf|offline is now known as benzrf
jhass is now known as jhass|off
fabrice31 has quit [Ping timeout: 240 seconds]
Sgeo has joined #ruby
MCDev has joined #ruby
sdouglas has joined #ruby
<hadees>
i’m trying to tag some methods in my class like so def foobar; something; end; virtual_attribute :foobar; I was just goint to set a class variable but I don’t want the values to be changable after the class is defined.
<hadees>
i basically want like a dynamic constant
Notte has quit [Remote host closed the connection]
<hadees>
that gets set first and then doesn’t change
sailias has joined #ruby
<shevy>
now is it a constant or is it not
klaut_ has quit [Remote host closed the connection]
icarus has quit [Remote host closed the connection]
<shevy>
huh
charliesome has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
<shevy>
that works for me
<hadees>
shevy: I guess it’s a constant that gets set while the class is getting defined using the method virtual_attribute
mijicd has joined #ruby
charliesome_ has quit [Ping timeout: 240 seconds]
mijicd_ has quit [Ping timeout: 264 seconds]
<shevy>
if it is a constant in ruby then it can be changed at any time
<hadees>
shevy: i just want an array, i could just write it myself as VIRTUAL_ATTRIBUTE=[‘foobar’] but I think it’s cleaner to have it after the method definition
<shevy>
that array constant can also be changed
amystephen has joined #ruby
<hadees>
shevy: how do you do it with out a warnign?
peret has quit [Ping timeout: 256 seconds]
<shevy>
I don't think there is a simple way to suppress that warning; you could cause the whole script to be silent, and then restore again lateron perhaps