bradhe has quit [Remote host closed the connection]
mrmargolis has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
nisstyre has quit [Quit: WeeChat 0.4.3]
troyronda has joined #ruby
Snarkz has joined #ruby
kitak has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
testcore has quit [Quit: BitchX: stays crunchy in milk!]
freerobby has quit [Client Quit]
mansi has joined #ruby
doodlehaus has joined #ruby
codeFiend has joined #ruby
hermanmunster has joined #ruby
bradhe has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 246 seconds]
omosoj has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
baweaver has joined #ruby
the_f0ster has quit [Remote host closed the connection]
carlyle has joined #ruby
Nukepuppy has joined #ruby
enebo has quit [Quit: enebo]
maestrojed has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
pietr0 has quit [Quit: pietr0]
enebo has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
troyronda has quit [Ping timeout: 264 seconds]
soheil has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
Beoran__ has quit [Read error: Operation timed out]
Toordog has joined #ruby
carlyle has quit [Ping timeout: 246 seconds]
alvaro_o has quit [Quit: Ex-Chat]
jrhorn424 is now known as zz_jrhorn424
mrmargolis has quit [Remote host closed the connection]
pwh_ has joined #ruby
WillAmes has quit [Read error: Operation timed out]
Bira has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
pwh has quit [Ping timeout: 264 seconds]
pskosinski has quit [Remote host closed the connection]
omosoj has joined #ruby
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troyronda has joined #ruby
zach23 has quit [Quit: zach23]
jonr22 has joined #ruby
chipotle has quit [Quit: cya]
kilk_ has quit [Ping timeout: 255 seconds]
zz_karupa is now known as karupa
chipotle has joined #ruby
echevemaster has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
Port3M5[Work] has joined #ruby
<Jnco>
Hi, looking for an experienced ruby programmer / modeler for lvl 1 startup (getsortbox.com). Anyone interested in side work let me know, I can really use the help.
northfurr has quit [Quit: northfurr]
nateberkopec has joined #ruby
bthesorceror has quit [Remote host closed the connection]
Guedes0 has left #ruby ["Saindo"]
bthesorceror has joined #ruby
Es0teric has joined #ruby
Beoran__ has joined #ruby
bradhe has quit [Remote host closed the connection]
michaeldeol has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Client Quit]
<reactormonk>
how would you split a string and keep the character position of each splitted element?
fgo has quit [Remote host closed the connection]
mehlah has joined #ruby
<havenwood>
reactormonk: like turn a string into an Array of tuples with the char and index?
AlexRussia has quit [Remote host closed the connection]
<havenwood>
well, i counted whitespace in range, could fix that
jonr22 has quit [Ping timeout: 240 seconds]
<havenwood>
>.>
kapowaz_ has joined #ruby
jeregrine has joined #ruby
AlexRussia has joined #ruby
JaTochNietDan has joined #ruby
<reactormonk>
but \S is better in this case
jonr22 has joined #ruby
terrellt has joined #ruby
<havenwood>
don't oft get a chance to use strscan :P
jonr22 has quit [Client Quit]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mg^ has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
jcarouth has joined #ruby
SCommette has quit [Quit: SCommette]
<havenwood>
reactormonk: fixed the Gist with proper ranges
sdouglas has quit [Remote host closed the connection]
clov3r has joined #ruby
sdouglas_ has joined #ruby
chipotle has quit [Quit: cya]
pietr0 has joined #ruby
northfurr has quit [Quit: northfurr]
bauruine has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
freerobby has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
Vovko has quit [Remote host closed the connection]
zmansiv has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
omosoj has joined #ruby
Sawbones has joined #ruby
fgo has joined #ruby
obscured has joined #ruby
_maes_ has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Ping timeout: 255 seconds]
omosoj has quit [Client Quit]
jamto11 has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
omosoj has joined #ruby
pietr0 has quit [Quit: pietr0]
AlexRussia has quit [Remote host closed the connection]
Es0teric has quit [Remote host closed the connection]
troyronda has quit [Remote host closed the connection]
bogeyd6 has joined #ruby
AlexRussia has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
redondos has quit [Excess Flood]
treehug88 has quit []
carlyle has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
pietr0 has joined #ruby
codeFiend has quit [Quit: codeFiend]
jcs222 has joined #ruby
JaTochNietDan has quit [Ping timeout: 252 seconds]
ikkyu has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lectrick__ is now known as lectrick
carlyle has quit [Ping timeout: 246 seconds]
pwh_ has quit []
lectrick has quit [Changing host]
lectrick has joined #ruby
benwoody has joined #ruby
benwoody has quit [Client Quit]
obscured has quit [Quit: leaving]
JaTochNietDan has joined #ruby
benwoody has joined #ruby
gregf has joined #ruby
yxhuvud has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
zensavona_ has joined #ruby
WillAmes has joined #ruby
benwoody has quit [Client Quit]
sdouglas_ has quit [Remote host closed the connection]
clov3r has joined #ruby
doodlehaus has quit [Remote host closed the connection]
momomomomo has joined #ruby
sepp2k has quit [Quit: Leaving.]
subbyyy has quit [Ping timeout: 252 seconds]
ikkyu has quit [Remote host closed the connection]
rokob has quit [Remote host closed the connection]
northfurr has joined #ruby
clov3r has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
lethjakman has quit [Ping timeout: 252 seconds]
northfurr has quit [Client Quit]
havenwood has joined #ruby
Shidash has joined #ruby
SCommette has joined #ruby
BWStearns has quit [Ping timeout: 276 seconds]
roadie has quit [Ping timeout: 265 seconds]
Hanmac has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
SCommette has quit [Client Quit]
Atrumx has joined #ruby
troyronda has joined #ruby
benwoody has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
goleldar has quit [Remote host closed the connection]
nisstyre has joined #ruby
momigi has quit [Remote host closed the connection]
bthesorceror has joined #ruby
osvico has joined #ruby
armyriad has quit [Read error: Operation timed out]
Jon30 has joined #ruby
ddv has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
<Jon30>
i am using a recaptcha gem which uses net::http post_form, and it takes about 60 seconds to execute that method. I tried to use curl from shell on the same URL and it took less than a second. any ideas?
<Jon30>
ruby 2.0
<wallerdev>
is it timing out
mercwithamouth has quit [Ping timeout: 255 seconds]
zensavona_ has quit [Ping timeout: 252 seconds]
x77686d has joined #ruby
fluve has quit []
havenwood has joined #ruby
zensavona_ has joined #ruby
<shevy>
your mum is timing out!
bricker`LA has joined #ruby
<Jon30>
wallerdev: no it's not
<Jon30>
wallerdev: it just takes 60 seconds
<wallerdev>
thats pretty odd haha
<Jon30>
yeah
<Jon30>
i am updating now to 2.1
<Jon30>
but i don't think that's the issue
tonyhb has joined #ruby
<wallerdev>
maybe try the same request that you used in curl in just a regular net/http call in irb or something
bthesorceror has quit [Remote host closed the connection]
freerobby has joined #ruby
pwh has joined #ruby
WillAmes has quit [Read error: Operation timed out]
codeFiend has joined #ruby
penzur has quit [Ping timeout: 252 seconds]
AlexRussia has quit [Remote host closed the connection]
naturegirl has joined #ruby
AlexRussia has joined #ruby
yubrew has joined #ruby
brian___ has joined #ruby
<brian___>
hi all is it possible to use each_with_index in conjunction with reduce?
<havenwood>
brian___: sure
Spami has quit [Quit: This computer has gone to sleep]
<brian___>
where do you put index though? array.each_with_index.reduce([]) do |result, article, x| ?
hamakn has quit [Remote host closed the connection]
<havenwood>
brian___: |result, (article, x)|
<brian___>
niiiice
<brian___>
thanks!
<havenwood>
brian___: no :)
<havenwood>
np*
Bira has quit []
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<brian___>
so awesome… is this covered in the docs? i couldnt really find anything about it
jrhe has quit [Quit: Connection closed for inactivity]
yubrew has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Remote host closed the connection]
dapz has joined #ruby
aspires has quit []
AlexRussia has joined #ruby
zach23 has joined #ruby
zach23 has quit [Client Quit]
<shevy>
brian___ you mean the |x, (y,z)| notation?
<brian___>
yeah
<brian___>
well that and just combining each_with_index.reduce()
wallerdev has quit [Quit: wallerdev]
lethjakman has joined #ruby
<shevy>
ruby's docs are notoriously awful, I can't seem to find |()|
<shevy>
now the only thing that's left for him is to find out what in ruby has the same object id all the time
dogurness has quit [Quit: dogurness]
arietis has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
<mordof>
true, false, nil, and Fixnum's
codeFiend has quit [Quit: codeFiend]
<shevy>
hehe
<shevy>
did you google?
<mordof>
of course
<shevy>
ok
<shevy>
you missed one thing!
<mordof>
well, then the person who wrote the article missed it, lol
<shevy>
yeah
<shevy>
but I am afraid other articles may include that info
<shevy>
googling should be banned :(
<mordof>
shevy: i already told you i had no idea
<mordof>
and you said "to find out"
<mordof>
which means searching
rezzack has quit [Ping timeout: 264 seconds]
<mordof>
your fault, not mine :p
<shevy>
hehe
deric_skibotn has quit [Ping timeout: 252 seconds]
<shevy>
hmm
<shevy>
obviously it has to be something that returns the same value when .object_id is used
* mordof
nods
<mordof>
ah, symbols
<mordof>
i was wondering
<shevy>
you googled :(
<mordof>
i just confirmed it myself actually
<shevy>
I am trying stuff too
<mordof>
using multiple instances of irb
<shevy>
I start irb, I do: Kernel.object_id
<shevy>
i quit irb, I start irb, I do the same above, it returns a different id
<shevy>
but
<shevy>
oh yeah
<shevy>
always different object ids
<shevy>
even for ObjectSpace.object_id
<mordof>
not everything goes based on the VALUE
<mordof>
if it's something that's stored in the memory, it's based ont he memory location
<mordof>
that's why true, false, nil, and Fixnum's are different - they go based on value instead
aspires has quit []
<mordof>
and symbols are a variation of that
<mordof>
since none of those 5 are actually stored in the memory for their own location
dogurness has joined #ruby
s2013 has joined #ruby
postmodern has quit [Quit: Leaving]
braincrash has quit [Quit: bye bye]
aspires has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest47115 has quit [Quit: Leaving]
aspires has quit [Client Quit]
mansi has joined #ruby
braincrash has joined #ruby
tonyhb has quit [Quit: peace]
AlexRussia has quit [Remote host closed the connection]
Ginfuru has joined #ruby
Xiti` has joined #ruby
Xiti` has quit [Client Quit]
jamto11_ has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
dogurness has quit [Quit: dogurness]
momomomomo has quit [Quit: momomomomo]
pontiki has joined #ruby
Vovko has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
Sawbones has joined #ruby
WillAmes has quit [Ping timeout: 265 seconds]
<pontiki>
hi
kitak_ has joined #ruby
Ginfuru has quit [Ping timeout: 264 seconds]
jamto11_ has quit [Ping timeout: 252 seconds]
troyronda has joined #ruby
parduse has quit [Ping timeout: 265 seconds]
kitak has quit [Ping timeout: 240 seconds]
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
karupa is now known as zz_karupa
Vovko has quit [Client Quit]
omosoj has quit [Quit: Leaving]
bthesorceror has joined #ruby
benwoody has quit [Quit: benwoody]
<shevy>
pontiki!
<shevy>
now you can take over
phantasm66 has quit [Quit: *sleeeep….]
<shevy>
the training of mordof
<mordof>
lol
AlexRussia has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
troyronda has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
benwoody has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
sailias has quit [Ping timeout: 276 seconds]
<mordof>
shevy: does that mean there's not really much else you can think of to train me? or just passing it off because you're bored / have other things to do? heh
<shevy>
it means that others should also take their share of training!
saarinen has joined #ruby
<mordof>
:)
<mordof>
meh - i learn well enough as i go
<mordof>
although the help has been very much appreciated
parduse has quit [Ping timeout: 252 seconds]
<mordof>
certainly speeds things up ^_^
havenn has quit [Remote host closed the connection]
sparrovv has joined #ruby
Lewix has joined #ruby
havenwood has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
<pontiki>
mordof: wax on, wax off
kevinykchan has quit [Quit: Computer has gone to sleep.]
sparrovv has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
havenwood has quit [Ping timeout: 264 seconds]
sski has quit [Remote host closed the connection]
phinfonet has quit []
instantaphex has joined #ruby
<mordof>
nice
sski has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
<mordof>
pontiki: currently doing that :)
<mordof>
shevy: almost at the point where i can start adding in the code to spot reccuring html structures :)
sambao21 has quit [Quit: Computer has gone to sleep.]
<mordof>
going to attempt to have it so that my script can identify, somewhat, the types of components on the page (only for a small amount of scenarios)
<mordof>
without relying on actual tags used
sski has quit [Ping timeout: 255 seconds]
<mordof>
just structures and style of data inside
lethjakman has quit [Ping timeout: 265 seconds]
AlexRussia has quit [Remote host closed the connection]
yubrew has joined #ruby
helpD has quit [Remote host closed the connection]
roadie has joined #ruby
benwoody has quit [Quit: benwoody]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit []
AlexRussia has joined #ruby
<shevy>
ewww
<shevy>
what a boring project
<shevy>
I look forward to your second project
oo_ has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
<mordof>
my second project will be learning rails and getting to know the file structure / environment i'll be working with for my job
<mordof>
:p
Es0teric has joined #ruby
mrdtt has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
oo_ has joined #ruby
Sawbones has joined #ruby
dik_dak has quit [Quit: Leaving]
aspires has joined #ruby
Sawbones_ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 252 seconds]
Sawbones has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
troyronda has joined #ruby
oo_ has quit [Remote host closed the connection]
jimbauds has joined #ruby
sambao21 has joined #ruby
havenwood has joined #ruby
mr_snowf1ake has joined #ruby
fgo has quit [Remote host closed the connection]
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cashnguns has quit [Remote host closed the connection]
aspires has quit []
Slavox is now known as Slavox|AFK
lurch_ has joined #ruby
armyriad has joined #ruby
oo_ has joined #ruby
agarie has quit [Quit: Leaving...]
phantasm66 has joined #ruby
lurch_ has quit [Client Quit]
fgo has joined #ruby
<shevy>
ack
* mordof
shrugs
<mordof>
shevy: yep - my ruby learning purposes are entirely spurred on by work. no matter, once i get into it more i'll take on some more interesting personal projects
<mordof>
besides - i don't much care what the problem is that needs to be solved - i just like being presented with interesting coding projects
mrnugget has joined #ruby
mansi has joined #ruby
anaeem1_ has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rafaelmagu has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
bluehavana has joined #ruby
arietis has joined #ruby
saarinen has quit [Quit: saarinen]
naturegirl has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
fgo has quit [Remote host closed the connection]
Deele has joined #ruby
crzrcn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
pen has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
nari has joined #ruby
wjlafrance has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
x77686d has quit [Quit: x77686d]
fgo has joined #ruby
kevinykchan has joined #ruby
yubrew has joined #ruby
<pontiki>
wax on, wax off is very boring, but that's not the point
<pontiki>
having a problem to solve is a great way to learn coding
Doppp has joined #ruby
<pontiki>
find many small problems that could be automated
<pontiki>
code code code code
yubrew has quit [Ping timeout: 255 seconds]
davedev24 has quit [Remote host closed the connection]
davedev24 has joined #ruby
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
richy_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<richy_>
can some1 help me with the dns on a server that's hosting my domain
<richy_>
i have like $19 on my moms card
<richy_>
plz some1 I try to run a php script and i get
<richy_>
Not Acceptable An appropriate representation of the requested resource /Script.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
<mordof>
pontiki: oh for sure - i generally don't do the same things over and over :) i like to think of new projects that have components that i haven't really dealt with before (just enough that i get some challenges along the way) and make them for fun
charliesome has joined #ruby
razrunelord has joined #ruby
mrdtt has joined #ruby
brucelee_ has joined #ruby
<certainty>
mordof: interesting coding problem. Write a compiler :)
<mordof>
pass, lol
bodeezl has quit [Ping timeout: 240 seconds]
fgo has quit [Remote host closed the connection]
<mordof>
certainty: currently writing an HTML parser, i'll focus on that for now :p
<certainty>
mordof: that's cool too
<mordof>
similar structure to the two either way
razrunelord has quit [Ping timeout: 255 seconds]
<certainty>
mordof: bonus points for turning it into a lazy parse tree
<mordof>
lazy parse tree?
* mordof
is bad with terminology
<certainty>
lazy just means that you don't expand all branches
<certainty>
you expand as you need them and memoize afterwards
<mordof>
i'm just doing a state machine for my parsing
<mordof>
character by character
shock_one has joined #ruby
<certainty>
mordof: the tokenizer deals with characters :p
* mordof
doesn't know what that means
<certainty>
mordof: i'm just rambling, don't take me too serious. It's just that the tokenizer (lexical analyzer) normally operates on the character/word level whereas the parser mostly works on the phrase level, where the words are tokens (tokenclass,lexeme)
coderhs has quit [Ping timeout: 240 seconds]
<mordof>
ah
<certainty>
mordof: you will have to reperesent the html page somehow, that's usually your parse tree
<mordof>
certainty: not really - i'm not going to be spitting out the results so much
<mordof>
it's for a different purpose
senayar has joined #ruby
<mordof>
it's going to be looking for structural patterns, and using those to determine different content areas of certain pages
mary_synthesizin has quit [Remote host closed the connection]
<certainty>
mordof: oh ok. Then again, i oracled too much. I often do this and i'm often wrong :/
mary_synthesizin has joined #ruby
<mordof>
well, html parsers *usually* are for a purpose to output for whatever reason
<mordof>
so that's not an inaccurate guess
<certainty>
mordof: ok so you're going to work on the textual representation of the html page, with for example a regex like search (that's where your statemachine comes into play)
LetErikTry has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
<mordof>
nope. just the html structure mainly, and no regex-like (or regex itself) involved
Kricir has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<mordof>
of course the data inside the structure will be relevant, but not a whole lot has to be done with that
<mordof>
it's a rather specific use-case
<mordof>
data analysis
freerobby has joined #ruby
shock_one has quit [Ping timeout: 255 seconds]
<certainty>
no way to get the data in a different format? One that's better suited to be "read" by a machine?
mrdtt has left #ruby [#ruby]
<mordof>
nope
jamto11 has quit [Remote host closed the connection]
Dick_Stallman has joined #ruby
mary_synthesizin has quit [Ping timeout: 240 seconds]
<certainty>
alright :) have fun. Gotta run now
baweaver has quit [Ping timeout: 240 seconds]
<mordof>
o/
Dick_Stallman has quit [Remote host closed the connection]
jamto11 has joined #ruby
meatherly has quit [Remote host closed the connection]
aganov has joined #ruby
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
AlexRussia has quit [Remote host closed the connection]
nfk has joined #ruby
michael_mbp has quit [Ping timeout: 255 seconds]
senayar has quit [Remote host closed the connection]
AlexRussia has joined #ruby
senayar has joined #ruby
michael_mbp has joined #ruby
Dick_Stallman has joined #ruby
michael_mbp has quit [Excess Flood]
<instantaphex>
wtf?
coderhs has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
jamto11 has quit [Ping timeout: 252 seconds]
Dick_Stallman has quit [Remote host closed the connection]
<mordof>
?
michael_mbp has joined #ruby
Lewix has joined #ruby
Dick_Stallman has joined #ruby
tobago has joined #ruby
miah has quit [Ping timeout: 252 seconds]
miah has joined #ruby
oo_ has quit [Remote host closed the connection]
fgo has joined #ruby
cina has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
Milly_Bays has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
dawkirst has joined #ruby
Splourian has joined #ruby
wallerdev has quit [Quit: wallerdev]
timonv has quit [Remote host closed the connection]
bubbajones has joined #ruby
yubrew has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
Mongey has quit [Ping timeout: 255 seconds]
cescalante is now known as ce_afk
sensen has quit [Ping timeout: 276 seconds]
dawkirst has quit [Ping timeout: 255 seconds]
mengu__ has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bbloom has quit [Read error: Operation timed out]
arietis has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
brunops has quit [Quit: leaving]
richy_ has left #ruby [#ruby]
Mongey has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1_ has joined #ruby
Jon30 has quit [Ping timeout: 252 seconds]
anay has joined #ruby
Dick_Stallman has quit [Remote host closed the connection]
lurch_ has joined #ruby
grubles has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
fgo has quit [Remote host closed the connection]
mikepack has joined #ruby
makara has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
instantaphex has quit [Ping timeout: 240 seconds]
Splourian has left #ruby [#ruby]
apeiros has joined #ruby
<redondos>
how can i generate a hash from an array of n length and assign a value to it? e.g. array = [1,2,3,4] --> hash[1][2][3][4] = foo
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
postmodern has joined #ruby
meatherly has joined #ruby
codeFiend has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
_tpavel has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: Quitting]
meatherl_ has joined #ruby
dapz has joined #ruby
sensen has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
CodeBunny has joined #ruby
ce_afk is now known as cescalante
ahawkins has joined #ruby
ahawkins has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 265 seconds]
grubles has joined #ruby
grubles has quit [Changing host]
grubles has joined #ruby
meatherl_ has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
funburn has quit [Ping timeout: 276 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
Arkaniad has quit [Remote host closed the connection]
bodeezl has joined #ruby
oo_ has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
kalz has quit [Ping timeout: 245 seconds]
cescalante is now known as ce_afk
OffTheRails has joined #ruby
OffTheRails has left #ruby ["Leaving"]
razrunelord has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
funburn has joined #ruby
yfeldblum has joined #ruby
Spami has joined #ruby
bodeezl has quit [Ping timeout: 240 seconds]
Lewix has quit [Remote host closed the connection]
richy_ has joined #ruby
<richy_>
can someone please help me in cpannel on my web host's server i'm having trouble running a php script, plz I have $19 on my mom's card i need help making a form for my middle school i can use teamviewer 9
bal has joined #ruby
freerobby has joined #ruby
Lewix has joined #ruby
<richy_>
The requested URL was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
<richy_>
for all my requests
<richy_>
i dnt know what im doing wrong plz some1`
<redondos>
you've got to be kidding me.
<richy_>
i have $19 on my mom's visa plz help me
<mntzn>
yea #ruby is a great place to as why php doesn't work with apache
<mntzn>
to ask*
coderhs has joined #ruby
<richy_>
i need it for a form for my middle school
Hanmac has quit [Ping timeout: 240 seconds]
richy_ has left #ruby [#ruby]
richy_ has joined #ruby
<richy_>
plz man my mom unplugs the router cause she says I dnt get enough sleep
<richy_>
I have like 1 more hour and 30 mins
mengu__ has quit [Remote host closed the connection]
spinx^ has joined #ruby
<richy_>
i think its cause I messed with the .htaccess files
<richy_>
or somthing, it will be fast
<richy_>
i have teamviewer 9 and I can give you money
<richy_>
$19
SegFaultAX has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
SegFaultAX has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mary_synthesizin has joined #ruby
Macaveli has joined #ruby
Kricir has joined #ruby
mrnugget has quit [Quit: mrnugget]
fgo has quit [Remote host closed the connection]
mary_synthesizin has quit [Ping timeout: 252 seconds]
redondos has quit [Excess Flood]
yubrew has joined #ruby
redondos has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
richy_ has left #ruby [#ruby]
crzrcn has quit [Quit: Leaving.]
fgo has joined #ruby
ktun has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
whomp has joined #ruby
anarang has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
Zesty has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
<Hanmac>
whomp_: it seems it is not updated for 2.0 yet ... it might only work for ~1.9.3
oo_ has joined #ruby
<whomp_>
Hanmac, no dice on 1.9.2. it tells me in the log, "library not found for -lfftw3", so i guess the linker can't figure out this flag that fftw uses
<Hanmac>
whomp_: ruby-fftw3 is a binding ... so you need the extra fftw3 package (check your distry)
flughafen has joined #ruby
dawkirst has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
goleldar has joined #ruby
funburn has quit [Quit: funburn]
funburn has joined #ruby
mehlah has quit [Quit: Leaving...]
funburn has quit [Client Quit]
gaussblurinc1 has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
ddv has quit [Changing host]
ddv has joined #ruby
seuros has quit [Ping timeout: 264 seconds]
klaut has joined #ruby
yevon has joined #ruby
kalz has joined #ruby
gr33n7007h has joined #ruby
alem0lars has joined #ruby
Speed has joined #ruby
amclain has quit [Quit: Leaving]
Darryl has quit [Ping timeout: 252 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]
amundj has joined #ruby
Hytosys has joined #ruby
meatherly has joined #ruby
ClarusCogitatio has quit [Ping timeout: 264 seconds]
Darryl__ has joined #ruby
gr33n7007h has quit [Quit: Leaving]
ce_afk is now known as cescalante
Speed has quit [Ping timeout: 264 seconds]
ClarusCogitatio has joined #ruby
Hanmac1 has joined #ruby
ClarusCogitatio has quit [Excess Flood]
Hanmac has quit [Ping timeout: 240 seconds]
bodeezl has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
crzrcn has joined #ruby
coderhs has joined #ruby
claymore has joined #ruby
robbyoconnor has joined #ruby
seuros has joined #ruby
fabrice31 has joined #ruby
crzrcn has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Ping timeout: 265 seconds]
cescalante is now known as ce_afk
bricker`LA has joined #ruby
andikr has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
bryanjswift has quit [Quit: Computer has gone to sleep.]
osvico has quit [Ping timeout: 255 seconds]
whomp_ has quit [Quit: leaving]
richy__ has joined #ruby
monkegjinni has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
whomp has joined #ruby
oo_ has quit [Remote host closed the connection]
freerobby has joined #ruby
<whomp>
so i'm installing a wrapper for fftw3, and although compiling it with the -lfftw3 flag works fine for a normal file from the command line, it can't seem to link -lfftw3 when it's building the native extensions for the ruby-fftw3 gem. any ideas?
tris has joined #ruby
oo_ has joined #ruby
mansi has joined #ruby
relix has joined #ruby
jamto11 has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
cover has joined #ruby
yfeldblum has joined #ruby
yubrew has joined #ruby
stormbytes has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
<stormbytes>
I'm creating a gem wit GLI, a basic command line app (skeleton) and when i try to access it (after installing) directly from the command line I get this: https://gist.github.com/stormbytes/c9a78ffff01cc8c2007b
mrnugget has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<stormbytes>
I'm just trying to test out GLI at this point so.. like i said, there's no code or modifications, its just the basic scaffolding + a single test command that outputs a string
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
rbenv has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
MacTrash has joined #ruby
SidWu has joined #ruby
kiri has joined #ruby
SidWu has quit [Max SendQ exceeded]
rbenv has quit [Client Quit]
yubrew has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mrnugget has quit [Client Quit]
whomp has quit [Quit: leaving]
crzrcn has joined #ruby
mikecmpbll has joined #ruby
LiohAu has joined #ruby
ikaros has joined #ruby
mengu has quit [Read error: Connection reset by peer]
albertgrala has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
shock_one has joined #ruby
<stormbytes>
hello
Lewix has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
MacTrash has quit [Read error: Connection reset by peer]
coderhs has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby
MacTrash has joined #ruby
psycho_one has joined #ruby
qba73 has joined #ruby
mikepack has joined #ruby
crzrcn has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
oo_ has quit [Remote host closed the connection]
MacTrash has quit [Client Quit]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
Firebox has joined #ruby
MacTrash has joined #ruby
<Firebox>
puts “Hello” vs puts (“hello”), which is used more?
albertgrala has quit [Quit: Leaving]
echevemaster has quit [Ping timeout: 240 seconds]
ndrei has quit [Read error: No route to host]
andrewlio has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
oo_ has joined #ruby
obs has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
klaut_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<Firebox>
shevy: hi :)
ayaz has joined #ruby
kossnocorp has joined #ruby
thoraxe has quit [Ping timeout: 252 seconds]
mikecmpbll has joined #ruby
alem0lars has joined #ruby
sk87 has joined #ruby
mansi has quit [Remote host closed the connection]
klaut has quit [Ping timeout: 276 seconds]
RaptorJesus has quit [Ping timeout: 255 seconds]
<apeiros>
Firebox: if you use parens, then do *not* put a space between the method-name and the parens
<apeiros>
i.e., puts("hello"), never puts ("hello")
<apeiros>
and with puts, the paren-less version is probably used more often
arietis has quit [Quit: Computer has gone to sleep.]
suffice_ has quit [Read error: Operation timed out]
suffice has joined #ruby
roadie` has joined #ruby
funburn has joined #ruby
<Hytosys>
ah ok, that's not too bad
<apeiros>
for ruby <2.0, it doesn't use refinements, but still globally patches
roadie has quit [Ping timeout: 252 seconds]
moritzschaefer has joined #ruby
<Hytosys>
good work-around
ce_afk is now known as cescalante
meatherly has quit [Ping timeout: 276 seconds]
<apeiros>
so what it does behind the scenes is it creates anonymous modules, accessible via attr_readers
<apeiros>
and it now includes up to 4 modules
<Hytosys>
how much code is that? 17 loc in the current version is nice
<apeiros>
in the example: Inheritable, Inheritable.inheritable_constants, Inheritable.inheritable_class_methods and Inheritable.inheritable_instance_methods
rdark has joined #ruby
<j416>
apeiros: are you saying that puts("Hello") and puts ("Hello") are semantically different?
meatherl_ has quit [Ping timeout: 252 seconds]
<j416>
i.e. interpreted differently in effect?
guardian` is now known as guardian
mikecmpbll has quit [Ping timeout: 255 seconds]
<apeiros>
Hytosys: 40 LoC
<Hytosys>
not bad :)
<apeiros>
Hytosys: it will be a bit more to satisfy both variants of using it (ruby 1.9 with monkey patch vs. 2.0+ with refinements)
<apeiros>
but I doubt it'll ever go beyond 100 LoC
<apeiros>
j416: as said, in the former form it delimits the arguments, in the latter form it's part of the argument
<apeiros>
>> puts (1)+2 # works, because it'll run (1)+2 and pass the result
<lisberoia>
it is not a revolutionary solution for storage
<lisberoia>
for the author it was a personal exercise
<lisberoia>
for me, an awesome way to remember the eighties
<lisberoia>
I'd like it to work properly
<lisberoia>
funny video! I recently gave the tape recorder (a lot like a walkman) to my five-years-old daughter; now she is nothing like the kids in that video clip!
jottr has quit [Read error: Operation timed out]
postmodern has quit [Quit: Leaving]
<lisberoia>
I have an eighties tape recorder now, which works perfectly with Ctape
<Hanmac>
yeah "first reaction: try to use the touchsceen" ;P
<lisberoia>
how come the last byte is always left ou ... except if the file is in base64 format?? what gives??
<lisberoia>
hahha
seuros has joined #ruby
workmad3 has joined #ruby
Martxel__ has quit [Ping timeout: 264 seconds]
Lewix has quit [Remote host closed the connection]
Firebox has left #ruby [#ruby]
psycho_one has quit [Remote host closed the connection]
whomp has joined #ruby
AlSquire has joined #ruby
Lewix has joined #ruby
mansi has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Darryl__ is now known as Darryl
<whomp>
i ran "gem install ruby-fftw3" and i got an error, telling me that there was more info in the mkmf.log file, but there's no mkmf.log file for fftw3 anywhere on my machine!
<whomp>
any ideas what the issue is?
sce has quit [Quit: Leaving]
<lisberoia>
the kids in the video were selected, they looked for posh close-minded kids ...
HashNuke has joined #ruby
<lisberoia>
my daughter was nothing like those kids :)
codeFiend has quit [Quit: codeFiend]
lurch_ has quit [Quit: lurch_]
<Hanmac>
whomp: you didnt read the error message to the very end ...
<whomp>
Hanmac, what didn't i read?
<Hanmac>
whomp: very last line of the output "Results logged to <>"
mansi has quit [Ping timeout: 252 seconds]
<whomp>
the "results" in there are just what it printed in the terminal
meatherly has joined #ruby
<whomp>
not a description of the actual work it was doing at the time that the error occurred
arietis has joined #ruby
<Hanmac>
did you install the libfftw3 stuff i did tell you about?
<whomp>
yes, although it's hard to know whether i installed it exactly as the package wants it
meatherl_ has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
lurch_ has joined #ruby
<Hanmac>
whomp: on ubuntu there is a package named "libfftw3-dev" ... did you install it or something similar?
bluOxigen has quit [Ping timeout: 240 seconds]
<whomp>
i'm on mac
timonv has quit [Remote host closed the connection]
<whomp>
except idk how to run "ruby extconf.rb", because i assume that the folder it's discussing is for lib fftw, which wouldn't have any ruby files
jimbauds has quit [Quit: Leaving]
ce_afk is now known as cescalante
<Hanmac>
on mac? man i am sorry for you
<whomp>
i know it's too bad, but it's what i'm on
<whomp>
and i've spent too long on my dotfiles to move off of it :)
meatherl_ has quit [Ping timeout: 252 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<whomp>
Hanmac, i also have an issue where it says "extconf.rb:4:in `<main>': uninitialized constant Gem::GemPathSearcher (NameError)"
m3nTe has joined #ruby
m3nTe has quit [Changing host]
m3nTe has joined #ruby
nvrch has quit [Quit: nvrch]
lkba has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 264 seconds]
m3nTe has quit [Client Quit]
fgo has joined #ruby
razrunelord has joined #ruby
Xeago has quit [Remote host closed the connection]
senayar_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
cescalante is now known as ce_afk
<whomp>
Hanmac, any ideas? or anyone else?
fgo_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
<Hanmac>
whomp: yeah the problem is that the gem is not designed for ruby2.0 ... and i cant fix it because if this narray shit
spider-mario has joined #ruby
Xeago has joined #ruby
bluOxigen has joined #ruby
<whomp>
so if i did `rvm use 1.9.2 && gem install ruby-fftw3` it would work? because i did that and it didn't
moritzschaefer has joined #ruby
ndrei has joined #ruby
momigi has quit [Remote host closed the connection]
<whomp>
Hanmac, ^^
yubrew has quit [Ping timeout: 255 seconds]
<Hanmac>
did you try to "gem install narray" first before you install ruby-fftw3 ?
gogohome has joined #ruby
<gogohome>
hi
robustus has joined #ruby
<gogohome>
how long it take to master ruby?
<whomp>
Hanmac, yeah narray works like a charm
<Hanmac>
whomp: when you "rvm use 1.9.2" you swichied the ruby version ... did you install that narray gem for this version too?
<whomp>
Hanmac, here's what i think: there's something about my installation of fftw3 that ruby doesn't like. to figure out what is, i need to get to the mkmf.log file. but that file doesn't exist anymore! at one point, ruby produced it in ~/Downloads/ruby-fftw3/mkmf.log. now, for whatever reason, it doesn't produce that
nvrch has joined #ruby
<mikecmpbll>
gogohome: 13 minutes and 52 seconds
<gogohome>
too fast.
<gogohome>
i m not geneous.
<whomp>
because already i've had the issue where it needed a special configure flag in my fftw3 install, so it's likely other stuff isn't working
<gogohome>
i m not genius
tvw has joined #ruby
<whomp>
mikecmpbll, come join our discussion! i need all of the help i can get
<whomp>
also Hanmac, i tried 1.9.2 narray and then ruby-fftw3, no dice
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<Hanmac>
man ... it seems i cant help you with that ...
freerobby has joined #ruby
<whomp>
anyone else who could? i feel like no matter how big the irc chan, i only ever find one person interested in my questions lol
<whomp>
and thank you very much for trying
claymore has quit [Quit: Leaving]
ClarusCogitatio has quit [Ping timeout: 252 seconds]
<Hanmac>
whomp: and when you do `rvm use 1.9.2 && gem install ruby-fftw3` ... what error did you get then?
<whomp>
same thing
<mikecmpbll>
whomp: update bundler and rubygems
crzrcn1 has joined #ruby
<Hanmac>
mikecmpbll: the problem: fftw3 uses outdated Gem::GemPathSearcher ... 2.0+ doesnt have this anymore
mengu has quit [Remote host closed the connection]
JensOfSweden has quit [Ping timeout: 252 seconds]
funburn has quit [Quit: funburn]
<mikecmpbll>
where does it use Gem::GemPathSearcher ?
crzrcn has quit [Ping timeout: 252 seconds]
<mikecmpbll>
oh nvm
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
crzrcn1 has quit [Ping timeout: 255 seconds]
lurch_ has quit [Quit: lurch_]
psyko666 has quit [Remote host closed the connection]
JensOfSw_ has quit [Remote host closed the connection]
JensOfSweden has joined #ruby
CodeBunny has quit [Ping timeout: 276 seconds]
sensen has quit [Ping timeout: 265 seconds]
sensen has joined #ruby
<Hanmac>
mikecmpbll: goto into the dir where the gem is currently installed "Gem files will remain installed in <>" change the lines with Gem::GemPathSearcher into this:
tkuchiki_ has quit [Remote host closed the connection]
<whomp>
Hanmac, and then reinstall with gem?
<whomp>
now it just gives me a blank error msg
<Hanmac>
oO
DouweM has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
lurch_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
<Hanmac>
whomp i mean goto into the dir, change the file and then do "ruby extconf.rb; make" (and maybe make install"
meatherly has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
<Hanmac>
whomp: imo this this ruby-fftw3 seems a bit broken for me :/
<whomp>
haha yeah
<whomp>
i give up
<whomp>
there are other fft libs for now, albeit prob slower
<whomp>
thx for the help
ClarusCogitatio has quit [Ping timeout: 265 seconds]
<gogohome>
$ is global variable?
<j416>
gogohome: it's a dollar sign, but used as a prefix it will create a global variable
<mikecmpbll>
:D
<gogohome>
ok thanks j416
Martxel has joined #ruby
nfk has quit [Ping timeout: 264 seconds]
meatherly has quit [Ping timeout: 276 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
ce_afk is now known as cescalante
sensen has quit [Ping timeout: 252 seconds]
sensen has joined #ruby
<Hanmac>
with each $ used in php code, USA gets one cent ;P
Lewix has quit [Remote host closed the connection]
<gogohome>
int is object?
zensavona_ has quit [Quit: Connection closed for inactivity]
<Hanmac>
gogohome: in ruby first suspect everythng might be an object ;P
<mikecmpbll>
gogohome: int is a three letter word. what do you mean by int? :)
<mikecmpbll>
and that.
<workmad3>
looks more like a variable identifier or a method name to me....
<mikecmpbll>
yep
<gogohome>
int is not object in java.
dumdedum has joined #ruby
<Hanmac>
thats java's problem, not ours ;P
<workmad3>
gogohome: ah, do you mean the class Integer and instances of it's subtype Fixnum such as 1,2,3,4 ?
<workmad3>
s/it's/its
<gogohome>
just 1, 2, 3, 4, ……
<workmad3>
gogohome: which are instances of Fixnum, which is a subclass of Integer
yubrew has joined #ruby
canton7-mac has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
<workmad3>
gogohome: and not this 'int' you talk about ;)
<gogohome>
:)
<gogohome>
workmad3: you use mac?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
cina has quit [Quit: leaving]
ClarusCogitatio has joined #ruby
arietis has joined #ruby
razrunelord has joined #ruby
ClarusCogitatio has quit [Excess Flood]
mrchrisman has joined #ruby
chrisseaton has joined #ruby
rubo has joined #ruby
Hytosys has quit [Quit: Hytosys]
<workmad3>
gogohome: not sure of the relevance, but yes, my current terminal session happens to be on the Unix branded as 'OS X'
<mrchrisman>
Is it wrong that i've started using named parameters a lot now since 2.1?
yubrew has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
<workmad3>
mrchrisman: why would it be wrong? named parameters are fun
<gogohome>
workmad3: your talking is too difficult
tjbiddle has joined #ruby
<mrchrisman>
workmad3: I'm still trying to figure out when to use them and when not to.
<mrchrisman>
At the moment, they seem like a good idea for almost everything
<rubo>
Hi, is the equivalent of the classic lambda syntax with the literal syntax of the following code correct ? lambda { |foo| } / ->(foo) {}
ClarusCogitatio has joined #ruby
<workmad3>
gogohome: I humbly apologise, I shall endevour in the future to use less precise language during our conversations over text-based internet chat mediums
<mrchrisman>
workmad3: when are they not a good idea?
<mikecmpbll>
:D
oo_ has joined #ruby
havenwood has quit [Remote host closed the connection]
<gogohome>
thanks workmad3
<mikecmpbll>
text-based internet chat mediums are the worst kind of fraudsters
<Hanmac>
mrchrisman: when you are using outdated ruby, like 1.8 or the stone-cycle-editon REE
razrunelord has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
<mrchrisman>
when are they not a good idea in ruby 2.1?
jonathanwallace has quit [Ping timeout: 240 seconds]
vt102 has quit [Remote host closed the connection]
<mikecmpbll>
mrchrisman: when you don't want their functionality?
moritzschaefer has quit [Ping timeout: 264 seconds]
<mrchrisman>
Yes, but what should I want? What is a good use for them and what isn't?
whomp has quit [Ping timeout: 252 seconds]
<workmad3>
mrchrisman: I probably wouldn't use them for niladic or monadic methods :)
<mrchrisman>
:-)
bluOxigen has quit [Ping timeout: 252 seconds]
<chrisseaton>
mrchrisman: they are harder for implementations to optimise, so I woudln't use them in tight inner loops
<workmad3>
mrchrisman: I've started using them for two-argument methods though, so I can write a method call like 'set_foobar_to "hello", on: my_thing'
havenwood has quit [Ping timeout: 245 seconds]
popl has quit [Ping timeout: 252 seconds]
ClarusCogitatio has quit [Ping timeout: 250 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
rubo has quit [Quit: Page closed]
gogohome has quit [Quit: gogohome]
tjsousa has joined #ruby
freerobby has joined #ruby
ClarusCogitatio has joined #ruby
gogohome has joined #ruby
alem0lars has quit [Quit: Going AFK...]
funburn has quit [Quit: funburn]
mercwithamouth has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
freerobby has quit [Ping timeout: 240 seconds]
momigi has joined #ruby
whomp has joined #ruby
hermanmunster has joined #ruby
fabrice31 has quit [Remote host closed the connection]
spinx^ has quit [Remote host closed the connection]
ValicekB has joined #ruby
Advocation has joined #ruby
<certainty>
aka "the friedl"
<apeiros>
certainty: ?
<j416>
how come, I cannot set File.umask? It seems read-only
<certainty>
apeiros: mastering regular expressions is also known here as "der Friedl"
fannye has joined #ruby
<certainty>
j416: File.umask? is a predicate.
<certainty>
j416: bad joke, ignore me :)
<certainty>
*scnr*
meatherly has joined #ruby
decoponio has joined #ruby
<j416>
certainty: ... lol
<j416>
very funny
chrisseaton has quit []
spinx^ has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
Firebox_ has joined #ruby
yubrew has joined #ruby
nvrch has quit [Quit: nvrch]
chrisseaton has joined #ruby
ce_afk is now known as cescalante
oo_ has quit [Remote host closed the connection]
moritzschaefer has joined #ruby
JensOfSweden has joined #ruby
psyko666 has joined #ruby
oo_ has joined #ruby
advorak has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
kilk_ has quit [Quit: Leaving]
kilk_ has joined #ruby
oo_ has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
oo_ has joined #ruby
DouweM has joined #ruby
gf3 has quit [Ping timeout: 255 seconds]
lurch_ has joined #ruby
Rollabunna has joined #ruby
razrunelord has joined #ruby
evenix has joined #ruby
gf3 has joined #ruby
moritzschaefer has quit [Ping timeout: 252 seconds]
cescalante is now known as ce_afk
blackmesa has joined #ruby
evenix has quit [Ping timeout: 252 seconds]
razrunelord has quit [Ping timeout: 265 seconds]
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
nari has quit [Quit: Ex-Chat]
helpD has joined #ruby
Milly_Bays has joined #ruby
sensen has quit [Quit: leaving]
Milly_Bays has quit [Read error: Connection reset by peer]
<j416>
aaah, I'm doing Tempfile.open, and that's setting the permissions to 600, which is why File.umask has no effect
<j416>
or, seems to be monkeypatched or whatnot, not sure
<j416>
I wonder if I should just chmod the tempfile after moving it (I'm retrieving something into a tempfile, then moving it into the right place when the transfer is done)
helpD_ has joined #ruby
moritzschaefer has joined #ruby
freerobby has joined #ruby
jottr has joined #ruby
Biohazard has joined #ruby
jamto11 has joined #ruby
cgj has joined #ruby
ktun has joined #ruby
kossnocorp has quit [Quit: kossnocorp]
helpD has quit [Ping timeout: 265 seconds]
<cgj>
what ||= means in ruby?
freerobby has quit [Ping timeout: 276 seconds]
ndrei has quit [Ping timeout: 264 seconds]
kossnocorp has joined #ruby
<canton7-mac>
cgj, you can think of 'a ||= b' as shorthand for 'a = a || b', i.e. 'if a is nil or false, assign b to a'
<canton7-mac>
(it's not *exactly* that, as someone will point out in a minute, but it's close enough for a first pass)
jamto11 has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
Firebox_ has left #ruby [#ruby]
<mikecmpbll>
it's not exactly that!
Fire-Dragon-DoL has joined #ruby
jtdowney has quit []
<canton7-mac>
:P
Fire-Dragon-DoL has quit [Max SendQ exceeded]
ua has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
<workmad3>
canton7-mac: a || a = b
<workmad3>
canton7-mac: is closer, but not *quite* right :)
<canton7-mac>
workmad3, I know ;)
<cgj>
ok, is like gnumake's ?= assignment
<cgj>
thanks
tonyhb has joined #ruby
<workmad3>
canton7-mac: what I quite like is that you wrote out 'a = a || b' and then described 'a || a = b' in long-hand :)
TTilus has quit [Ping timeout: 250 seconds]
<canton7-mac>
workmad3, yes. I know what ||= does. 'a = a || b' is, I think, easier for a beginner to grasp
crzrcn has joined #ruby
<canton7-mac>
and I new someone would jump in and say exactly what you're saying :P
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
SirFunk has quit [Ping timeout: 255 seconds]
<j416>
whoa, I just learnt something the hard way
TTilus has joined #ruby
SirFunk has joined #ruby
<j416>
prefix a number with 0 and ruby assumes it's octal o_O
<j416>
0644 is _not_ 644, but 420
<workmad3>
canton7-mac: as I said, I mostly found it amusing that your code and your long-hand didn't really match up :)
krz has quit [Quit: WeeChat 0.4.3]
chipotle has joined #ruby
heftig has joined #ruby
crystal77 has joined #ruby
ua has joined #ruby
claymore has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
grzywacz has quit [Ping timeout: 252 seconds]
sdouglas has quit [Ping timeout: 245 seconds]
stormbytes has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
helpD_ has quit [Remote host closed the connection]
helpD has joined #ruby
m00nlight has joined #ruby
<mrchrisman>
prboom
<mrchrisman>
oops
kyb3r_ has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bogeyd6 has quit [Read error: Connection reset by peer]
mansi has joined #ruby
helpD has quit [Ping timeout: 276 seconds]
RTG` has quit []
SargoDarya has joined #ruby
<SargoDarya>
Hey guys, short question. I'm trying to use compass in conjunction with rvm and for some reason compass tries to import files from .gem instead from the .rvm directory
yubrew has joined #ruby
yfeldblum has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
<shevy>
perhaps it is a bug
<shevy>
workmad3 my right hand often does not match up either!
yfeldblu_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
yubrew has quit [Ping timeout: 252 seconds]
grzywacz has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
dangerousdave has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
dumdedum has quit [Quit: foo]
ce_afk is now known as cescalante
twiceday has joined #ruby
seuros1 has joined #ruby
seuros has quit [Ping timeout: 255 seconds]
kossnocorp has quit [Ping timeout: 250 seconds]
mikecmpbll has quit [Quit: ciao.]
twiceaday has quit [Ping timeout: 252 seconds]
anarang has quit [Ping timeout: 252 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
bthesorceror has joined #ruby
jonathanwallace has joined #ruby
rippa has joined #ruby
razrunelord has joined #ruby
sdouglas has joined #ruby
AlexRussia has joined #ruby
cescalante is now known as ce_afk
phoo1234567 has joined #ruby
mehlah has joined #ruby
simono has joined #ruby
momomomomo has joined #ruby
troyronda has quit [Ping timeout: 255 seconds]
razrunelord has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 252 seconds]
vt102 has joined #ruby
lkba has joined #ruby
coderhs has joined #ruby
sk87 has joined #ruby
sk87 has quit [Client Quit]
blackmesa has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
freerobby has joined #ruby
anarang has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
sk87 has joined #ruby
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
ktun has joined #ruby
DouweM has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
bthesorceror has quit [Ping timeout: 240 seconds]
ktun has quit [Client Quit]
DouweM has joined #ruby
phutchin1 has joined #ruby
<phutchin1>
Anyone know a way to troubleshoot getting "previous devinition of APP_PATH was here" ? i can't seem to find a way to run it in debug mode so it tells me what is really going on...
ktun has joined #ruby
Kedare has joined #ruby
ktun has quit [Client Quit]
crzrcn has joined #ruby
anarang has quit [Ping timeout: 252 seconds]
tonyhb has quit [Read error: Connection reset by peer]
tonyhb has joined #ruby
osvico has joined #ruby
sdouglas has joined #ruby
<shevy>
who sets APP_PATH
<shevy>
I would normally grep for this constant
crzrcn has quit [Ping timeout: 255 seconds]
sdwrage has joined #ruby
<phutchin1>
shevy: same thing i thoguht. its only set in the bin/rails where it should be... its very misleading error
osvico has quit [Ping timeout: 276 seconds]
<phutchin1>
it turned out it was being caused by a require that didn't need to be there i beleive
zoraj has joined #ruby
<phutchin1>
it was in one of my jobs in app/jobs
sdouglas has quit [Ping timeout: 252 seconds]
alexju has quit [Remote host closed the connection]
alem0lars has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
hamakn has quit [Remote host closed the connection]
Ginfuru has joined #ruby
alexju has joined #ruby
benzrf|offline is now known as benzrf
<phutchin1>
its very weird that an incorrrect require would create that error.
dblessing has joined #ruby
yubrew has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Firebox has joined #ruby
<Firebox>
1.between(1, 3) <——Try using a method that takes two arguments - use the between? method to determine if the number 2 lies between the numbers 1 and 3.
mehlah has quit [Quit: Leaving...]
Darryl has quit [Quit: Connection closed for inactivity]
<Firebox>
is it wrong?
<Firebox>
1.between(1, 3)
anarang has joined #ruby
<phutchin1>
that would be false
<phutchin1>
2.between(1, 3) => true
yubrew has quit [Ping timeout: 245 seconds]
<Firebox>
2.between(1, 3) <——The Master says : "Look at this tree, Shifu: I cannot make it blossom when it suits me nor make it bear fruit before its time."
<apeiros>
the method name is 'between?', not 'between'
<Firebox>
ruby is well maden in the website tutorial.
SubSignal has joined #ruby
<DefV>
3
yfeldblum has joined #ruby
lurch_ has quit [Quit: lurch_]
mikecmpbll has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<Firebox>
learn_to_program is old version of ruby?
yfeldblum has quit [Ping timeout: 245 seconds]
ce_afk is now known as cescalante
anaeem1_ has quit [Remote host closed the connection]
bthesorceror has joined #ruby
kpshek has joined #ruby
advorak has quit [Ping timeout: 255 seconds]
poikon has quit [Remote host closed the connection]
poikon has joined #ruby
RTG` has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
mforrester has joined #ruby
advorak has joined #ruby
Sawbones has joined #ruby
qwertyu has joined #ruby
qwertyu has quit []
lurch_ has joined #ruby
michael_lee has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
paulfm has joined #ruby
cescalante is now known as ce_afk
mrmargolis has joined #ruby
kron4eg has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
Aaaal has joined #ruby
vpretzel has joined #ruby
mehlah has joined #ruby
bbloom has joined #ruby
crystal77 has joined #ruby
kron4eg has left #ruby [#ruby]
flops has quit [Quit: leaving]
arietis has quit [Quit: Computer has gone to sleep.]
jprovazn has quit [Quit: Leaving]
cina has joined #ruby
michael_lee has joined #ruby
freerobby has joined #ruby
failshell has joined #ruby
jamto11 has joined #ruby
ponga has quit [Quit: Leaving :)]
<cina>
I have a problem when creating a CSV file with backslash values. I'm importing it into MySQL and I need to manually escape the backslashes from something like "hello \ 1" to "hello \\ 2". But I don't want to manually do that...
<cina>
MySQL inserts "hello \ 1" as "hello 1"
ce_afk is now known as cescalante
aagdbl has joined #ruby
failshell has quit [Client Quit]
psycho_one has quit [Remote host closed the connection]
<cina>
i.e. I need CSV writer to replace backslashes with double-bakcslashes when writing to file
Morkel has quit [Read error: Connection reset by peer]
JensOfSweden has quit [Remote host closed the connection]
agarie has joined #ruby
snath has quit [Ping timeout: 276 seconds]
alem0lars has quit [Quit: Going AFK...]
psyko666 has quit [Remote host closed the connection]
Morkel has joined #ruby
alexju has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
mengu has quit [Remote host closed the connection]
mary_syn_ has joined #ruby
mary_syn_ has quit [Remote host closed the connection]
dik_dak has joined #ruby
mary_syn_ has joined #ruby
cover has quit [Ping timeout: 252 seconds]
rebelshrug has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Soda has joined #ruby
sk87 has joined #ruby
<instantaphex>
exit
<j416>
benzrf: doesn't mean you're offline.. :P
instantaphex has quit [Quit: leaving]
mary_synthesizin has quit [Ping timeout: 245 seconds]
SilkFox has joined #ruby
momigi has joined #ruby
TWWOC is now known as G
lisberoia has quit [Quit: Lost terminal]
* mordof
meanders into the channel
<timgauthier>
oh hi mordof
rostam has quit [Remote host closed the connection]
<mordof>
timgauthier: ahoy :)
Advocation has quit [Quit: Advocation]
tobago has quit [Remote host closed the connection]
kevinykc_ has joined #ruby
rostam has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
wallerdev has joined #ruby
cocotton has joined #ruby
poikon has joined #ruby
BWStearns has joined #ruby
mengu has quit []
mansi_ has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
shevy has joined #ruby
diegoviola has joined #ruby
mansi has joined #ruby
kevinykchan has quit [Ping timeout: 265 seconds]
jobewan has joined #ruby
gfunc has quit [Remote host closed the connection]
amundj has quit [Ping timeout: 252 seconds]
Deele has joined #ruby
apeiros has quit [Remote host closed the connection]
crzrcn has joined #ruby
<timgauthier>
so if i use a pull request to send a commit that ignores folders and content, it shouldn't delete any content on his local repo when it ignores those files right?
eka has joined #ruby
tonyhb has quit [Quit: peace]
apeiros has joined #ruby
ninegrid has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
Andromed_ has joined #ruby
Ginfuru has joined #ruby
<timgauthier>
opinions on homebrew for mac?
skaflem has joined #ruby
<workmad3>
timgauthier: I likes it
* mordof
has no knowledge on that
<havenwood>
timgauthier: works well for single user install systems
<canton7-mac>
yup, very nice
flops has joined #ruby
<timgauthier>
havenwood so if you have multiple users the others don't have anything that homebrew installed ?
<workmad3>
timgauthier: I like it with brew-cask as well
timonv has quit [Remote host closed the connection]
bakflash has joined #ruby
mojoe has quit [Ping timeout: 276 seconds]
<michael_mbp>
TL;DR - I've got a mixin that associates any Refinery resource with the concept of a 'Site'. The actual context of current_site however, is stored in the session; so my mixin can't set the resource's site association via a simple AR callback. Hence my having to mix this in at the controller level within the CRUD create action.
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
<apeiros>
hm, ok, I guess it returns the first valid match
bthesorceror has quit [Read error: Connection reset by peer]
codeFiend has quit [Quit: codeFiend]
<apeiros>
and without anchoring, that's ""
bthesorceror has joined #ruby
<michael_mbp>
yeah just truncates the path from vendor/...
<apeiros>
michael_mbp: I meant wrt my "wtf… my ruby is broken or my brain…"
<michael_mbp>
oops
<apeiros>
I expected it to return "ll". but that expectation was wrong.
GaryOak__ has joined #ruby
EminenceHC has joined #ruby
internet_user has joined #ruby
andrewjanssen has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
<michael_mbp>
"hello"[/(l)+/]
<michael_mbp>
try that
ninegrid has quit [Ping timeout: 255 seconds]
cina has joined #ruby
rippa has joined #ruby
andrewjanssen has joined #ruby
Morkel has quit [Quit: Morkel]
<apeiros>
michael_mbp: no need for ()
<michael_mbp>
true.
deric_skibotn has joined #ruby
ninegrid has joined #ruby
Ginfuru has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj has quit [Remote host closed the connection]
cina has quit [Client Quit]
<EminenceHC>
How can I chain logical operators? For example I am doing if foo == true || if foo.bar.present? all in one line but I want them to be on separate lines.
<apeiros>
don't repeat the if
<ericwood>
if foo || foo.bar.present?
<apeiros>
also, unless you want to explicitly exclude truthy values, don't do == true, just do if foo
<EminenceHC>
Oops i don't know why I repeated the if
<apeiros>
and foo || foo.bar.present? is pointless because foo.bar.present? implies foo
<EminenceHC>
but how can I put each variable inside the || on a separate line?
alekst has quit [Quit: Computer has gone to sleep.]
<EminenceHC>
forget what examples I used it can be anything, I just want to know if its possible to chain them on separate lines.
<workmad3>
apeiros: if foo is nil then 'foo.bar.present?' will be a NoMethodError
<workmad3>
EminenceHC: end the line with the ||
bryanjswift has joined #ruby
<apeiros>
EminenceHC: just start a new line after ||
<workmad3>
EminenceHC: then the interpreter knows that the expression hasn't finished so continues to the next line
<apeiros>
workmad3: so even worse actually :)
<ericwood>
.present? just checks if foo.bar is a present that hasn't been opened yet :D
<EminenceHC>
workmad3: apeiros: Ahh ok I didn't realized it worked that way I thought i needed to add a semi colin or something.
ascarter has joined #ruby
<apeiros>
EminenceHC: IMO don't do that
<EminenceHC>
realize*
<EminenceHC>
apeiros: Why is that?
<apeiros>
EminenceHC: refactor your code to be sane
<apeiros>
multiline if's == ultra yuk
<ericwood>
^^^^^^^^
<EminenceHC>
apeiros: Ya its pretty ugly right now I have way too many conditionals
<ericwood>
if you have a ton of logic in an if you should break out the conditionals into separate vars
<ericwood>
but it depends on the structure of yo codes
<Hanmac>
it could be worse ... i have seen a case when without case statement ...
<EminenceHC>
ericwood: separate vars that return true or false?
<bean>
Maybe you should create a function
<bean>
that checks that stuff for you.
Ginfuru has quit [Ping timeout: 276 seconds]
<apeiros>
yeah, no silver-bullet recipe. I'd need to see code to give proper advice.
<ericwood>
EminenceHC: test1 = ______; if test1
<EminenceHC>
I haven't ever used functions not quite sure what they are but I will look into them.
<bean>
if present_has_been_opened?(present)
<bean>
etc
<yo61>
Afternoon all. I'm working with puppet, which has the gem binary in /opt/puppet/bin and gems in /opt/puppet/lib/ruby/gems/1.9.1. It also has some code in /opt/puppet/lib/ruby/site_ruby/1.9.1. I'm struggling to load files that are in the site_ruby dir.
troyronda has quit [Remote host closed the connection]
<Hanmac>
the_f0ster: are you sure it need to be [self.documents.map {|d| d.id}] ? because map already reaturns an array
<ericwood>
EminenceHC: notice that bitchin ternary
s2013_ has joined #ruby
<ericwood>
which I'm sure will be controversial
<apeiros>
EminenceHC: # Counselors; elsif … --> drop the comment and make a method: elsif counselors?(…)
<EminenceHC>
ericwood: Ive never used : I will look it up
<apeiros>
self explaining code++
<the_f0ster>
Hanmac: that's true I don't need the to_a, I could pluck to
<the_f0ster>
I've had issues with pluck not always working, and it just returns the whole record ssometimes, so I try not to use it unless I can test it
<Hanmac>
ericwood: & EminenceHC ... (survey.schools.map(&:id).include? current_user.schools.map(&:id).join.to_i) << i am 99.99% sure this will do not what you want
<yo61>
So, how can I use the code in opt/puppet/lib/ruby/site_ruby/1.9.1 ?
bricker`LA has joined #ruby
mikecmpbll has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<Hanmac>
EminenceHC: the difference is, why making the array & the counting yourself when ruby can do it for you?
<NivenHuH>
hey all, a quick question on hashes and keys.. is it possible to evaluate a method (which returns a symbol) and concisely use that method while defining a hash? eg { my_fn_that_returns_a_symbol: my_fn_that_returns_a_val }
<EminenceHC>
Hanmac: So that would remove the need for my @ivar = []?
<Hanmac>
jo
<EminenceHC>
Hanmac: @ivar = 0 **
<havenwood>
NivenHuH: not with 1.9 hash syntax, instead: { symbol_returning_method => value_returning_method }
<NivenHuH>
havenwood got it, thanks
pu22l3r_ has quit [Ping timeout: 276 seconds]
sparrovv has joined #ruby
lolmaus has joined #ruby
boshhead has joined #ruby
gancl has joined #ruby
timonv_ has joined #ruby
mikecmpbll has joined #ruby
aarkerio has quit [Quit: Verlassend]
<boshhead>
In Rails, if I'm using RSpec to test my views, what is the best way to use xpath selectors to verify parts of my document are there? I'm trying to use the selectors that capybara/rspec provides, but I can't find any documentation for using it that way... is there something else?
endash has quit [Quit: endash]
timonv has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
Ginfuru has joined #ruby
djbkd has quit [Remote host closed the connection]
<razrunelord>
Hey guys, I have a question. I am getting a missing source file in this folder i686-darwin13.1.0 location since it doesn't exist. But, there exists i686-darwin11.4.0 folder. I want to know which ruby version and patch uses that platform :)
helpD has quit [Remote host closed the connection]
<flughafen>
eval-in is happy t see me
helpD has joined #ruby
cocotton has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
relix has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
michael_lee has quit [Ping timeout: 255 seconds]
ndrei has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: ciao.]
relix has joined #ruby
ndrei has joined #ruby
gr33d has joined #ruby
nanoyak has joined #ruby
poikon has quit []
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
SCommette has joined #ruby
cocotton has joined #ruby
freezey has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
shadoi has joined #ruby
danshultz has joined #ruby
codeFiend has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
endash has joined #ruby
freezey has joined #ruby
danshultz has joined #ruby
kirun has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
oo__ has quit [Ping timeout: 276 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Ping timeout: 240 seconds]
albertgrala has quit [Ping timeout: 250 seconds]
adefa has joined #ruby
adefa has left #ruby [#ruby]
jack_rabbit has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
dstynchula has quit [Read error: Connection reset by peer]
dstynchula has joined #ruby
djbkd has joined #ruby
reset has joined #ruby
subbyyy has joined #ruby
dogurness has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
IceDragon has quit [Ping timeout: 265 seconds]
oo__ has joined #ruby
crzrcn has joined #ruby
ninegrid has joined #ruby
aspires has quit []
<Firebox>
0 and “” is evaluated by true?
ce_afk is now known as cescalante
oo_ has quit [Ping timeout: 246 seconds]
alem0lars has joined #ruby
Snarkz has joined #ruby
aspires has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yxhuvud>
firebox: Yes. only nil and false is considered as false.
mojoe1 has joined #ruby
endash has quit [Quit: endash]
oo__ has quit [Ping timeout: 265 seconds]
<Firebox>
too strange!! other language evaluate 0 and “” as false in java.
senayar_ has quit [Remote host closed the connection]
oo_ has joined #ruby
havenwood has quit []
<stormbytes>
hello folks
senayar has joined #ruby
vpretzel|storybo is now known as vpretzel|hotfix
<stormbytes>
I'm creating a gem wit GLI, a basic command line app (skeleton) and when i try to access it (after installing) directly from the command line I get this: https://gist.github.com/stormbytes/c9a78ffff01cc8c2007b
bthesorceror has joined #ruby
<stormbytes>
I'm just trying to test out GLI at this point so.. like i said, there's no code or modifications, its just the basic scaffolding + a single test command that outputs a string
Soda has quit [Remote host closed the connection]
dapz has joined #ruby
ktosiek has joined #ruby
estaban has quit [Ping timeout: 255 seconds]
petertretyakov has joined #ruby
dapz has quit [Client Quit]
<apeiros>
GLI?
jottr has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
stormbytes: you probably don't have a properly set up $LOAD_PATH
crystal77 has quit [Quit: Computer has gone to sleep.]
ninegrid has quit [Ping timeout: 252 seconds]
<apeiros>
if you make it a gem and install it, rubygems takes care of that. when it's not installed, you can add the lib dir to load path by e.g. running it via `ruby -Ipath/to/lib gtest`
<Firebox>
Array#map <— this mean Array’object have map method?
<stormbytes>
apeiros - exactly, but i don't really understand how to fix that :)
<apeiros>
Firebox: yes
<Firebox>
thanks
<stormbytes>
the tutorial says to run rake package and then gem install app.gem
<apeiros>
Firebox: ClassName#instance_method_name and ClassName::class_method_name is documentation style
ninegrid has joined #ruby
<stormbytes>
which I did, and everything works fine.
<Firebox>
oh good thanks apeiros
bthesorceror has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
bthesorceror has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
andrewjanssen has quit [Quit: Leaving...]
zorak has quit [Ping timeout: 240 seconds]
senayar has quit [Ping timeout: 265 seconds]
anay has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
Alina-malina has quit [Read error: Connection reset by peer]
petertretyakov has quit [Ping timeout: 245 seconds]
manacit is now known as bogon
Alina-malina has joined #ruby
crystal77 has joined #ruby
bthesorceror has joined #ruby
AlexRussia has quit [Remote host closed the connection]
seuros has joined #ruby
decoponio has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
mehlah has quit [Quit: Leaving...]
<Hanmac>
Firebox try "ri File#size" "ri File::size" and "ri File.size" and look at the output
davispuh has joined #ruby
ClarusCogitatio has quit [Ping timeout: 265 seconds]
<Firebox>
ri?
AlexRussia has joined #ruby
oo_ has joined #ruby
<Firebox>
./Users/lee/Documents/workspace/RubyPicture/exam.rb:1:in `<main>': undefined method `ri' for main:Object (NoMethodError)
x1337807x has quit [Ping timeout: 252 seconds]
<workmad3>
Firebox: ri is a command for the shell, not in ruby
<Firebox>
ok
zorak has joined #ruby
<Firebox>
Nothing known about File
razrunelord has quit [Read error: Connection reset by peer]
mark_locklear has quit [Quit: Leaving]
soheil has joined #ruby
dapz has joined #ruby
<Firebox>
ri File#size
<Firebox>
Nothing known about File
razrunelord has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
beef-wellington has joined #ruby
<apeiros>
means your docs are not installed @ Firebox
<apeiros>
did you use rvm?
ua has quit [Ping timeout: 250 seconds]
oo__ has joined #ruby
<Firebox>
rvm? what is it?
oo_ has quit [Ping timeout: 245 seconds]
razrunelord has quit [Read error: Connection reset by peer]
<workmad3>
then the config option '–with-readline-dir=/usr/lib/x86_64-linux-gnu/libreadline.so' caused configure to basically go 'nope, that's not a readline dir... we won't build readline' so I'm going with that atm (fine on a server :) )
nouitfvf_ has joined #ruby
<workmad3>
Hanmac: enjoy
alem0lars has joined #ruby
benwoody has joined #ruby
alem0lars has quit [Client Quit]
tvw has quit []
skysploit has quit []
oo__ has quit [Read error: Connection reset by peer]
oo__ has joined #ruby
oo_ has quit [Ping timeout: 276 seconds]
mrmargolis has quit [Ping timeout: 255 seconds]
jheg_ has joined #ruby
nouitfvf has quit [Ping timeout: 246 seconds]
<atmosx>
hello
dogurness has quit [Quit: dogurness]
pu22l3r has quit [Remote host closed the connection]
afex has joined #ruby
segfalt has joined #ruby
<segfalt>
Is there a good way to create a class that has a factory method and disallow other creation of instances, forcing MyClass.new to raise an exception?
<atmosx>
what is a factory method?
ce_afk is now known as cescalante
uxp has quit [Read error: Connection reset by peer]
<segfalt>
a class method that creates a configured instance or instances
uxp has joined #ruby
<segfalt>
I want to create instances in a particular way, and want to prevent people from using MyClass.new to do so by hand.
whomp has quit [Ping timeout: 240 seconds]
timgauthier has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
bthesorceror has joined #ruby
oo__ has quit [Ping timeout: 240 seconds]
pidu has quit [Ping timeout: 240 seconds]
<apeiros>
segfalt: undefine new
* apeiros
hands segfalt an u
aetaric has quit [Ping timeout: 258 seconds]
<Firebox>
brew install homebrew/versions/ruby193
<Firebox>
i install it like this.
<Firebox>
is it right?
<apeiros>
Firebox: oh. any reason to install an ancient version?
<lectrick>
Having issues installing the mysql2 gem on an Ubuntu fork (elementaryOS). MySQL and its libraries are definitely installed. Extconf.rb failed due to inability to find the mysql libraries... I think. I installed mysql-server and mysql-client via "sudo apt-get install".
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SegFaultAX has quit [Excess Flood]
ClarusCogitatio has quit [Excess Flood]
Es0teric has quit [Quit: Computer has gone to sleep.]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lectrick>
I am wondering if (for some reason) I need to manually specify the --with-mysql-dir or --with-mysql-include options.
<segfalt>
There's just a lot of gotchas, because you'll need to recompile the results in the main thread and use mutexes to ensure you don't stomp all over each other.. probably a good guide somewhere on the 'net.
<segfalt>
Firebox: No problem.
<s2013>
gotcha. its fine for now. was just curious
Es0teric has joined #ruby
<segfalt>
s2013: Would definitely recommend you try it and find out, you'll probably learn a ton in the process ;-)
<s2013>
how would i do the word frequency thing? just iterate over the word and create a new hash key with that word and then increase the count (value) everytime i come across it?
jackneill has quit [Remote host closed the connection]
<segfalt>
You have a file with 5 million words, and you want to know the frequency of the words in that file?
the_f0ster has quit [Ping timeout: 265 seconds]
mehlah has joined #ruby
<s2013>
yeah
<segfalt>
Ruby is probably going to waste a lot of memory, but yeah you could use a Hash keyed on the word, break the file by spacing and each time you encounter a word increment or create the hash value at that key.
<atmosx>
s2013: with a hash
<s2013>
atmosx, i know
<segfalt>
If you wanted to make threads you could split the file up into chunks (on a word boundry) and have each thread count it's own section, then join the threads and assemble the results.
<s2013>
im just trying to figure out the most efficient way of doing it
<s2013>
the way id do it is how i mentioned earlier
<s2013>
i guess that would be fastest as its in linear time
centrx has joined #ruby
soheil has quit [Remote host closed the connection]
<atmosx>
actually now I use spaces, but I used to use tabs (never had a prob really switched because too many people started to complain about my snippets :-( )
<s2013>
segfalt, genearlly id use something like python for stuff like this
<s2013>
it does segfalt
<canton7>
segfalt, yeah, but don't use it
<segfalt>
Yeah, I prefer blocks and iterators.
<canton7>
it mutates the loop variable, which causes all sorts of problems if you then use it in a block
<atmosx>
segfalt: it has everything older languages have actually (and more e.g. mixins)
<banister>
atmosx 10 months isn't that old ;)
<segfalt>
I've learned a lot of Ruby in 10 months.
<atmosx>
segfalt: I don't have the luxury to spend time on programming every day, I study pharmacy and I'm in a hell of an continues exam session trying to get the degree in 3.5 years...
oo_ has quit [Read error: Connection reset by peer]
<atmosx>
segfalt: that said, I love ruby
<segfalt>
atmosx: I don't have a choice to spend time with Ruby every day :P
alem0lars has quit [Quit: Going AFK...]
<atmosx>
segfalt: but you are a professional programmer or something? Because I'm studying here and then javascript. I have a book but didn't started it yet. Concepts seem to be the same
Es0teric has quit [Remote host closed the connection]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
So I guess if you know a couple of langauges, 2-3 you're able to pick up other languages quickly.
<segfalt>
atmosx: Yeah, I'm a professional programmer. Learning a few languages makes picking more up much easier, you start to learn the core differences and design goals behind the languages and understand what they're trying to accomplish.
<baweaver>
I'm a full time engineer, and learning languages is trivial at best.
<atmosx>
baweaver: really? what's the hard part then?
<segfalt>
The real difficulty, and maybe baweaver will agree, is learning the standard libraries. I get the syntax down in an afternoon but then I have no idea what the core libraries and common community libraries offer.
<baweaver>
...if you have a solid backing of languages in the Lisp / Haskell family, Algol / C family, and Logic / Prolog family.
<baweaver>
yep
<Firebox>
segfalt: how can i know the ruby’s version in the script like ‘something.rb’ not shell?
razrunelord has joined #ruby
<baweaver>
definitely, that, 1000x over
Es0teric has joined #ruby
<segfalt>
Firebox: The RUBY_VERSION constant.
<baweaver>
that and trying to learn all the odd community libraries and things they do.
<segfalt>
I'ts a string, like "1.8.7"
jameswlane has joined #ruby
<Firebox>
oh thanks
alem0lars has joined #ruby
<banister>
baweaver learning haskell sure as heck wasn't trivial for me :)
rurban_ has quit [Ping timeout: 240 seconds]
chad59 has quit [Quit: chad59]
<atmosx>
baweaver: and how much time do you think that will take?
<katlogic>
"haskell family" sounds like bunch of aggresive rednecks.
<baweaver>
the first in a family is hard
Xeago has joined #ruby
chad59 has joined #ruby
chad59 has quit [Client Quit]
<baweaver>
depends entirely.
sambao21 has joined #ruby
<segfalt>
atmosx: Getting really good at a language (stdlib, tools), probably 6-12 months of using it regularly (not necessarily daily) for me.
<atmosx>
segfalt: yeah, but you need to define *good*
<baweaver>
seems about right, and about 1-2 weeks to be useful in it
razrunelord has quit [Remote host closed the connection]
chad59 has quit [Client Quit]
<segfalt>
atmosx: good… I can write a complex OO multi-class program and only reference api docs a few times.
<baweaver>
The closer it is to your core languages that you've spent a ton of time in, the more you're going to have out the gate in a new language.
<atmosx>
segfalt: hm, okay.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<baweaver>
if that's the case, under a month for me
<segfalt>
It's hard to quantify, but you can see if in your velocity when you're working on something.
chad59 has joined #ruby
chad59 has quit [Client Quit]
<baweaver>
but then again that's from the young and single with too much time bit more than anything.
gr33d has joined #ruby
gr33d has quit [Client Quit]
<katlogic>
baweaver: I dare you to grok C++ in 2 weeks.
<katlogic>
Most people dont know C++ full well even after 10 years of using it.
freezey has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<baweaver>
There's a difference between can and wanting to
andrewjanssen has joined #ruby
<atmosx>
katlogic: I'm sure they don't mean that after2 months they write ruby cod elik Matz or rails like DHH
<segfalt>
Any language is a constant process.
fgo has joined #ruby
<segfalt>
My ruby from 6 months ago was garbage.
<baweaver>
after a few weeks I can write non-trivial programs is my point.
<segfalt>
I'll say the same thing in 6 months.
<segfalt>
:)
rurban_ has joined #ruby
<katlogic>
atmosx: I was more refering to languages with insane semantics, like Prolog, Cobol or C++
<katlogic>
Or Haskell, to a degree.
<baweaver>
how pretty they are...
<baweaver>
Haskell isn't too bad.
<atmosx>
segfalt: yeah I want to remove my github code every 3 months... :-/
<baweaver>
then again I knew scheme beforehand.
<katlogic>
Haskell is very bad at being practically useable.
<baweaver>
I dare you to say that on #haskell
Xeago has quit [Ping timeout: 250 seconds]
<atmosx>
katlogic: I know, that's why I mentioned ruby because it's apparently easier.
<katlogic>
Scheme has side effects, Haskell does not. The only, but huge difference.
<segfalt>
katlogic: That was my experience learning Clojure.
<atmosx>
katlogic: but it all depends on how you define *good*, better, best, etc.
<segfalt>
atmosx: I always recommend Python to new programmers, Ruby is dangerous by comparison.
BizarreCake has quit [Read error: Connection reset by peer]
<katlogic>
segfalt: Clojure/Scala are good if you know their parents and want to target JVM, but probably not a good choice as a starting language for family representant.
<atmosx>
segfalt: I tried python before ruby.
instantaphex has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<baweaver>
My qualification for *knowing* a language is that I can have an idea and write it out naturally. (Not consulting docs 80% of the time, etc)
klaut has joined #ruby
<baweaver>
Haskell can be extremely useful practically, but you have a lot larger learning curve for it.
<baweaver>
One word: Monads
<atmosx>
baweaver: I really would like to see a professional programmer's workflow.
<workmad3>
atmosx: it would probably make you both laugh and cry
<segfalt>
Ever seen hackers?
<atmosx>
workmad3: why?
<baweaver>
Vim + Tmux + Pry, repl driven development in Ruby
fgo has quit [Ping timeout: 240 seconds]
<baweaver>
there's a lot of poking around and guest work.
<segfalt>
repl driven development, never heard that term, i like it
dapz has joined #ruby
<atmosx>
segfalt: hackers? I know couple of them, but they are *too good*, out of my league ... freebsd core developer one, security freak the other one... they breath programming code (in C).
<baweaver>
essentially treat pry like Prelude or Slime
maestrojed has quit [Quit: Computer has gone to sleep.]
<segfalt>
atmosx: No, the Movie.
<katlogic>
baweaver: IMO language itself, and its "batteries" included are separate issues. Though my editor shows docstring hints all the time. I am old, but what is exactly point to memoize standard libraries?
<segfalt>
:)
<atmosx>
segfalt: I don't want to be like them. I'd like more mainstream thing, backend developers for applications etc.
<atmosx>
segfalt: hahaha the movie is a shit-storm although I loved it at the time.
<baweaver>
Just happens naturally for me
<segfalt>
katlogic: What editor do you use for Ruby?
<katlogic>
benwoody: I'd define knownledge as 1) Knowing what to do 2) Don't screw up in terms of semantics, not keeping library reference in head.
dapz has quit [Client Quit]
_sillymarkets has joined #ruby
<baweaver>
Then again I can also memorize entire pieces of music among other things in a few days.
<atmosx>
baweaver: I use tmuxinator for my projects :-) and my thesis... rails and sinatra.
<atmosx>
baweaver: and vim sure
<_sillymarkets>
Anyone play with Ruboto in here ?
<baweaver>
I started as a SysAdmin
<baweaver>
vaguely
<baweaver>
very vaguely
<segfalt>
baweaver: me too :)
<katlogic>
segfalt: Vim.
eka has quit [Ping timeout: 276 seconds]
<banister>
baweaver where did you learn about that pry workflow?
<enebo>
_sillymarkets: donv might be a good person to ask on #jruby when he is there (he is in EU so not on currently)
<_sillymarkets>
I need a simple one-button android app that will take the information in Phone Network Settings (or screen capture it) along with Call Logs and email it to a pre-defined email address. You think you could point me to any code that I could learn off to accomplish that?
<atmosx>
baweaver: well in a way me too. I started messing up with linux.. since 2000 so I write my own firewalls, setup every possible combo of db+server+this+and+that... :-P never had issues with ruby/rvm paths/etc. Seems silly to me when I see "how to ssh forward" on HackersNews but I guess most devs where *devs* since day1.
<baweaver>
I'll probably have a conference talk posted within a few months on it myself.
dapz has joined #ruby
<segfalt>
atmosx: Good devs aren't just devs, imo.
ndrei has joined #ruby
ukd1 has joined #ruby
<baweaver>
I set up php servers at ~8, including apache.
<atmosx>
segfalt: you saw the movie 'sneakers' ?
claymore has quit [Ping timeout: 245 seconds]
kirun has quit [Quit: Client exiting]
eka has joined #ruby
<atmosx>
baweaver: I bought my first computer at 17 :-)
* lectrick
LOVES that movie
<baweaver>
(not well mind you)
chrisseaton has joined #ruby
<Firebox>
oh my god ‘Could not find i18n-0.6.5 in any of the sources’
<atmosx>
baweaver: I was not *allowed* to have one before, my parents hated computers with a passion.
<Firebox>
msfconsole not work.
<baweaver>
eesh
<segfalt>
atmosx: I haven't. I bought my first PC at 13 for $50 off my friend's dad. Was a 386 :-)
claymore has joined #ruby
<segfalt>
DOS 4.22, IIRC.
Arkaniad has joined #ruby
<lectrick>
atmosx: High five for growing up with a luddite family!
<atmosx>
segfalt: wow 386, a friend of mine had one and we were playing silly games at the time.
Arkaniad|Laptop has joined #ruby
bryanjswift has quit [Quit: Computer has gone to sleep.]
<baweaver>
I was hacking type to learn at ~10, something was storing scores in plaintext files in hex.
Arkaniad has quit [Max SendQ exceeded]
<workmad3>
atmosx: sorry, was looking up that link :)
blackmesa has joined #ruby
* katlogic
wrote demos for VIC-20
<lectrick>
this will date me for anyone who recognizes it: POKE 53281,1
<baweaver>
Windows 95 for me.
<instantaphex>
I wrote device drivers in binary when I was 3
<atmosx>
lectrick: hahaha thanks :D ... when my mother at age 19 saw me typing at the computer (I was faster than she could ever imagine... in just 2 years) she asked: "You are joking right? You didn't really type anything on that machine like that!"
GaryOak__ has joined #ruby
<atmosx>
hahaha
<katlogic>
lectrick: Is that how you set wallpaper on c64?
treehug88 has quit []
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
<lectrick>
katlogic: Bingo
alem0lars has quit [Quit: Going AFK...]
<baweaver>
comadores eh?
<Firebox>
msfconsole
<Firebox>
Could not find i18n-0.6.5 in any of the sources
<Firebox>
Run `bundle install` to install missing gems. <—— seafalt how can i do?
<atmosx>
lectrick: I love my parents, they just thought that I should go out and play basketball (which I did) instead of "being in front of a screen" they couldn't predict how till turn out the future.
<segfalt>
my uncle had a C64 would not let me touch it.
<segfalt>
:(
<redondos>
how can i fetch the value of a hash using the elements of an array as keys? e.g. array = [1, 2, 3] --> hash[1][2][3]
<workmad3>
my first computer was a 386 (well, it was the family's) when I was 2
<Firebox>
becuause of ruby2.1.1
<lectrick>
atmosx: yeah i was doing "magic" on the C64, people thought I was an alien. then my parents also couldn't believe how fast I typed.
<workmad3>
so I never really had time on C64, spectrum, atari, etc... I grew up on a PC
<segfalt>
redondos: You mean to have each array element be a lookup on the NEXT hash depth?
<lectrick>
atmosx: SAME AS MINE! "Get off the computer, go for a swim!" "Get off the computer, go to the beach!" "Get off the computer, take a bike ride!" (Honestly, it well-rounded me, a little.)
alem0lars has joined #ruby
kilk_ has joined #ruby
<atmosx>
lectrick: I feel you man,, more than you know...
alvaro_o has joined #ruby
blackmes1 has joined #ruby
<segfalt>
My parents gave up on that when I was 10 or so. I wish they hadn't, I'd probably be in better shape :-)
<lectrick>
I was plunking away at Microsoft BASIC, making games and figuring out physics long before I took the class, because I needed it to simulate balls falling and whatnot
<workmad3>
DouweM: aww, why not 'array.inject(hash, &:[])' ;)
maZtah has quit [Ping timeout: 252 seconds]
<DouweM>
workmad3: I always forget using & with :[] :(
<segfalt>
workmad3: Nice.
<lectrick>
segfalt: WELL LET'S JUST SAY I'M STILL TRYING TO GET BACK... to the skinny fuck I was at 17
<DouweM>
workmad3: but yeah, that looks great
<redondos>
thanks, DouweM
<Mon_Ouie>
You don't need the '&' with inject so it doesn't matter if you forget it :)
<lectrick>
atmosx: Oh I was also learning the Hayes AT command set and connecting to BBS's
<segfalt>
lectrick: Same here, only 10 years ago for me, but it feels like a distant memory.
<DouweM>
Mon_Ouie: I forget that that's possible at all ;)
<katlogic>
10 years ago? Modem?
<katlogic>
segfalt lives in india :)
<workmad3>
DouweM: that's because it's only possible with inject, not with map or any other enumerable
maZtah has joined #ruby
<atmosx>
lectrick: You were in the US... I was in Greece. I first got online in 1996, I still remember that chatropolis shit
<DouweM>
workmad3: knew that, but in instances like this I forget that [] is just a method
<segfalt>
katlogic: I think you crossed the messages, lectrick was talking about BBSes
<segfalt>
:)
<lectrick>
segfalt: yeah well, I'm not really that overweight but heavy for my frame so THREE doctors have said I have to lose... so I'm in the middle of doing so.
<workmad3>
DouweM: heh :)
<atmosx>
lectrick: first computer came in 1999, by 2000 I had redhat linux
<Firebox>
`bundle install` vs bundle install, what difference?
<atmosx>
lectrick: hmm by 2002 Gentoo up to 2006 or something then switched to mac
<workmad3>
lectrick: see that's your problem... you go to the doctor...
<lectrick>
Firebox: You don't need quotes
<atmosx>
Firebox: there's a huge difference
<segfalt>
Firebox: Sometimes people use backticks to indicate that you shoudl run something in a terminal.
<atmosx>
`which bundle` install
blackmesa has quit [Ping timeout: 250 seconds]
LastWhisper has joined #ruby
<Firebox>
thanks
<segfalt>
atmosx: I used Gentoo when i was 15 or so, learned a TON getting that beast going. Nowadays work gave me a MBP, love it.
<workmad3>
atmosx: yeah, you may as well just do 'bundle install' though
<lectrick>
Also a MBP guy, but I've also been a Mac guy since... 1984
<segfalt>
I did not like Macs pre-X.
<lectrick>
They had their charm.
<segfalt>
Mostly just ignorance, I never learned anything about the OS and felt lost.
<segfalt>
I *knew* DOS/Windows
<workmad3>
atmosx: and `which bundle` install won't be much good if you've got 'bundle' as a shell function doing snazzy stuff either :)
<segfalt>
and Linux a few years after that.
<segfalt>
Which is why OS X was so nice.
<atmosx>
segfalt: yeah me too. I think I was struggling like a week or so. I had a compaq laptop, was my father's he didn't want it so he gave it to me... 100 mhz and can't remember how much ram it had, with a PCMCIA, had windows 95. I installed NetBSD on it because it was the only OS running out of the box with floppies :D
yalue has quit [Read error: Connection reset by peer]
seuros has quit [Ping timeout: 255 seconds]
<atmosx>
workmad3: I know :-)
<workmad3>
atmosx: wow... 100mhz... luxery
<segfalt>
I bricked the home PC with Mandrake at 13, I think I messed up the partition table, had no idea how to recover. So at 15 I built my own PC with Gentoo. Christmas morning, building the pc. 3 AM christmas night.. still compiling X.
<workmad3>
*luxury
<atmosx>
workmad3: yeah, pcmcia was a luxury at the time too.
<workmad3>
atmosx: that would have been a 486 though ;)
Gooder has joined #ruby
<segfalt>
lectrick: Released the year I was born for Mac, I'd say I missed it by a bit.
<atmosx>
workmad3: eyah, I'd like to have kept that laptop somewhere...
<atmosx>
it was a compaq something
<atmosx>
with a wheel for amouse
<atmosx>
2 buttons
<lectrick>
segfalt: Probably the best (and one of the hardest, and most interesting) platformers I've ever played.
<atmosx>
12-11 inch or something
<workmad3>
atmosx: I think my mum finally got rid of our first 386 a few years ago... an old desktop, 16mhz with 4mb of ram and 40mb HDD
pu22l3r has quit [Remote host closed the connection]
<segfalt>
Time to pull out an emulator… :)
havenwood has joined #ruby
<lectrick>
segfalt: You not only moved around with the keyboard, you could aim your arm with the mouse and throw rocks (and later, fireballs)
sparrovv has joined #ruby
pu22l3r has joined #ruby
<atmosx>
segfalt: haha no I don't miss it. these days I can't wait for the RPi to finnish installing... I have capistrano takes so much to deploy on that machine
<Firebox>
i can’t excute ‘msfconsole’ for ruby2.1.1 installing.
<Firebox>
oh my god
chipotle has quit [Quit: cya]
<lectrick>
segfalt: If you have a Mac (or access to one), you can play Return to Dark Castle, which is the same feel more or less and should still run on OS X as it only came out a few years ago. (Longer development time than Duke Nukem Forever... for the record)
<segfalt>
lectrick: Impressive.
<workmad3>
segfalt: or find the DOS version and use boxer on a mac
<atmosx>
but I'm not into games, I get bored easily
<workmad3>
atmosx: boxer is the best dos-box thing I've found on a mac
<workmad3>
atmosx: nice front-end for importing and keeping track of any games you have :)
seuros has joined #ruby
mcrmfc has joined #ruby
<Firebox>
segfalt: how can i fix it? Could not find i18n-0.6.5 in any of the sources
soheil has quit [Ping timeout: 246 seconds]
<segfalt>
Firebox: I don't know what msfconsole is.
<Firebox>
i just ruby for msfconsole
<lectrick>
segfalt: I don't know if it's aged well, but it's still fun, and holds a special place in my kid-gamer heart. And RtDC includes "remastered" versions of the original games' levels. Which is cool
<Firebox>
oh my god
benwoody has quit [Quit: benwoody]
<atmosx>
segfalt it's metasploit
<atmosx>
segfalt: once upon a time you had to search download compile, find some payload that wroks, now being a script-kiddie is automated.
<atmosx>
segfalt: you load 'metasploit' and launch attacks
pu22l3r has quit [Ping timeout: 246 seconds]
<segfalt>
lectrick: RtDC looks pretty. I love sprite games. I assume the original was monochrome line-art?
<atmosx>
it's written in ruby
<canton7>
.... *that* explains how someone with so little of a clue was trying to install ruby so loudly. I was wondering
funburn has joined #ruby
<havenwood>
ronin ftw
wallerdev has joined #ruby
<segfalt>
atmosx: Oh yeah, I've heard of that.
<segfalt>
canton7: My thoughts exactly… sigh.
<lectrick>
segfalt: It is pretty. Yes, the very original one was monochrome, but they colorized it. The exact same digitized sounds were present in the original one, though. Something the Mac had at the time that Windows did not have until years later.
<havenwood>
Hanmac: nope, i started first minute but it looked good and i can't concentrate because of work at the moment
<havenwood>
Hanmac: gunna wait till this eve
<Hanmac>
;P
<atmosx>
havenwood: omg.
<Hanmac>
havenwood: this epside did had a warning ... its a moffat episode ... you should only watch them in a good lighted room ... otherwise you might risk a heart-attack ;P
phutchin1 has quit [Ping timeout: 265 seconds]
benzrf|offline is now known as benzrf
kevind has quit [Ping timeout: 252 seconds]
<workmad3>
Hanmac: dr who?
<Hanmac>
workmad3: yeah, havenwood's next epsiode is Blink ;P
alexju has quit [Remote host closed the connection]
IcyDragon has joined #ruby
<workmad3>
oh fun :D
<workmad3>
havenwood: you *really* need to watch closely :D
<workmad3>
Hanmac: I have the dr's iconic line from that on a t-shirt, arranged into a tardis :)
senayar has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
<Mon_Ouie>
You can use an a hash with a default value
albertgrala has quit [Quit: Leaving]
<Mon_Ouie>
Hash.new(0)
randomnick_ has joined #ruby
senayar has joined #ruby
<katlogic>
s2013: Only marginally as Mon_Ouie said. I assume the rand is for testing, in real world you'll use some other input where you want letter freq.
<s2013>
yeah katlogic
x1337807x has joined #ruby
<s2013>
Mon_Ouie, ah that helps
<s2013>
forgot about that
<s2013>
thanks
<s2013>
that should make it even faster right
<s2013>
since i wont have to check the value of the hash
crystal77 has quit [Quit: Computer has gone to sleep.]
mcrmfc has quit [Quit: mcrmfc]
<katlogic>
If you care about what "faster" is in ruby, you're doing something wrong :) But it is shorter.
<apeiros>
s2013: I actually disagree with the notion "if speed is a concern"
<baweaver>
word count?
mjsmith2 has quit [Remote host closed the connection]
<arubincloud>
First get it work and clear. Then optimize if necessary.
<arubincloud>
s/work/working/
rurban_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
mjsmith2 has joined #ruby
<apeiros>
a) you can go quite far with ruby alone, b) often the speed concern happens to concentrate on small parts of the overall app, which can be reimplemented in C
<arubincloud>
s2013: And create the a-z array once.
<mikecmpbll>
a = 100000.times.map{ ('a'..'z').to_a.sample } is probably faster
<s2013>
arubincloud, well we already went over all that. thanks tho
<mikecmpbll>
you don't need to do 100,000 * <<
<baweaver>
take the to_a outside
<baweaver>
faster
<s2013>
interesting
end_guy has joined #ruby
<mikecmpbll>
yeah
<s2013>
i do think if i took the ('a'..'z').to_a outside that would be faster
<mikecmpbll>
that too.
alvaro_o has quit [Quit: Ex-Chat]
fgo has joined #ruby
mansi has joined #ruby
advorak has joined #ruby
<s2013>
see thats why i was asking.. just wrote the quickest code i could (not quickest running but quickest i could write it)
CaptainKnots has quit [Ping timeout: 252 seconds]
<s2013>
and i wanted to optimize tht
<s2013>
that*
<s2013>
didnt watn to get in an online debate about programming languages
<lectrick>
In Ruby's case, the lack of any guarantee of no-side-effects (the "mutability" problem) is starting to bug me as I can't minimize my integration test suite and maximize my unit test suite unless side effects are minimized as much as possible
<lectrick>
benzrf: they're a good idea for ANY projects. Even my one-off "single-file ideas" have a built in test suite at the bottom.
<mikecmpbll>
dems letters
<benzrf>
lectrick: disgusting
<benzrf>
bbiab
oo_ has joined #ruby
<lectrick>
Whatever works :)
<apeiros>
you can also bench rand(97..122).chr
snooc has quit [Ping timeout: 246 seconds]
benzrf is now known as benzrf|offline
<lectrick>
apeiros: OT: is "rand" quicker than SecureRandom.random_number ?
<apeiros>
if you need a string, Array.new(n) { rand(97..122) }.pack("C*")
<apeiros>
lectrick: of course
<apeiros>
the more guarantees your prng must make, the slower it will be
<lectrick>
apeiros: yeah i figured. do you know if it's quite a bit less secure as the latter, or just somewhat less secure?
<lectrick>
apeiros: yep that's what my intuition said
<apeiros>
lectrick: not qualified to tell that. sorry.
<apeiros>
as I understood it, you should not use rand for anything critical.
CaptainKnots has joined #ruby
<lectrick>
where's a crypto nerd when you need one
nanoyak has quit [Quit: Computer has gone to sleep.]
<lectrick>
apeiros: hmmm. i am adding a small random amount of delay to thwart a certain kind of timing attack.
<apeiros>
i.e., unless you really really care about performance, and you really really know that security isn't a concern in any way, just use SecureRandom
<baweaver>
#openbsd
<arubincloud>
lectrick: Busy introducing vulnerabilities in some C library.
<apeiros>
better safe than sorry
<baweaver>
well, busy fixing them in that case.
<lectrick>
arubincloud: hahaha ;)
cocotton_ has joined #ruby
<arubincloud>
Do the letters even matter in this case?
SCommette has joined #ruby
<arubincloud>
He basically wants 26 random numbers.
<arubincloud>
In theory they must add up to 100K.
<arubincloud>
But is that a hard requirement?
oo_ has quit [Ping timeout: 255 seconds]
dstynchu_ has joined #ruby
benzrf|offline is now known as benzrf
aspires has quit []
nanoyak has joined #ruby
cocotton_ has quit [Ping timeout: 246 seconds]
Guedes0 has joined #ruby
mcrmfc has joined #ruby
cocotton has quit [Ping timeout: 276 seconds]
dstynchula has quit [Ping timeout: 245 seconds]
eka has quit [Ping timeout: 276 seconds]
grzywacz has quit [Quit: :wq]
<s2013>
you guys are still talking about it
<arubincloud>
s2013: This is IRC.
<arubincloud>
The problem is not solved until everyone loses interest.
eka has joined #ruby
Shidash has joined #ruby
OliverJAsh has joined #ruby
djbkd has quit [Remote host closed the connection]
benweint has joined #ruby
<s2013>
true
<Nilium>
The problem is not solved until it's been code golfed into one line.
mcrmfc has quit [Quit: mcrmfc]
<s2013>
ah that reminds me of something. let me see if i can dig it up Nilium
benzrf is now known as benzrf|offline
claymore has quit [Quit: Leaving]
armyriad has joined #ruby
Bira has quit []
OrionKissinger has joined #ruby
oo_ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
Nilium: also missing for conclusion: at least one godwin, a reductio ad absurdum and half a dozen misunderstandings
andrewjanssen has joined #ruby
crystal77 has joined #ruby
<Nilium>
Also a 5 hour argument about semantics.
Fire-Dragon-DoL has joined #ruby
<apeiros>
s2013: entry for code obfuscation contest?
Fire-Dragon-DoL has quit [Max SendQ exceeded]
<apeiros>
Nilium: true, true
<s2013>
i forgot who but it was one of the regulars on this channel pasted it as a refactor of my code lol
Fire-Dragon-DoL has joined #ruby
<s2013>
my friend calls these types of codes 'fuck you' code
razrunelord has joined #ruby
beef-wellington has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
<apeiros>
s2013: I can see why
<arubincloud>
2.1.1 does not like that code.
aspires has joined #ruby
<arubincloud>
Sorry, 1.9.3.
<Nilium>
I'm not even going to try to figure out what this does.
oo_ has quit [Ping timeout: 246 seconds]
<s2013>
lol
<Nilium>
For all I know, it reads its own source code and then transforms it into a script that runs rm -rf /
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
arubincloud: did you require 'time'?
dapz has joined #ruby
consumerism has joined #ruby
<s2013>
maybe
<apeiros>
because 2.1 has no issue with it
kpshek has quit []
<arubincloud>
apeiros: No.
<s2013>
yeah you gotta require 'time'
<arubincloud>
apeiros: What is the Time that exists before I imported time?
<consumerism>
i'm a sysadmin and i've been handed a rails app which works fine with RAILS_ENV=development, i am the first to try it with RAILS_ENV=production evidently and i get the same error for any route: 'ActionController::RoutingError (No route matches [GET] "/app/xxx/yyy"):' googling has pointed me to static assets precompilation, that's not the problem (i'm not requesting a static asset, but i compiled them anyway and
code-cat has quit [Ping timeout: 252 seconds]
<consumerism>
they seem to work fine, it's just dynamic routes that don't work) and rake routes prints the same output for both RAILS_ENV=production and development. what else can i try?
<apeiros>
arubincloud: core
<Nilium>
I almost put tabasco on my lunch
<Nilium>
Then I remembered my gums are currently bleeding and getting tabasco in them would be a very regrettable decision
<apeiros>
arubincloud: but parts of Time are in stdlib
<s2013>
consumerism, #rubyonrails also gist your routes.rb
x1337807_ has joined #ruby
<s2013>
im starving
x1337807x has quit [Ping timeout: 265 seconds]
<apeiros>
Nilium: following your lead in not trying to decipher that code
Guedes0 has left #ruby ["Saindo"]
<s2013>
and its raining like a bitch outside. this whole day i had no work to do. and all of a sudden we have an emergency :\ so im waiting to hear back more on it before i work on it and leave
<apeiros>
from the output, it seems to split the duration into seconds per hour
doodleha_ has quit [Remote host closed the connection]
<apeiros>
no idea what use case would require something like that. especially in such a format.
mjsmith2 has quit [Remote host closed the connection]
<s2013>
basically it would show # of seconds each hour between the two times
baweaver has quit [Remote host closed the connection]
<apeiros>
s2013: yeah, what I said :)
<apeiros>
using Time is a bad idea for that. Time is not Duration.
<apeiros>
ah, though… actually those are times
<s2013>
yeah apeiros this was from few months ago. i wrote something and i asked for opinion or something. and someone here pasted that. obviously they were joking
<apeiros>
and you create a duration between those.
<s2013>
yeah
<apeiros>
i hope they was joking
<s2013>
they were.
Sawbones has quit []
<s2013>
its one of the regulars here. i forgot who. might have been Hanmac or havenwood
<apeiros>
grmbl, I keep forgetting - what's the gender neutral form for he/she? I think "they", no?
<s2013>
yeah
<apeiros>
most likely hanmac
<apeiros>
looks like code he'd write
* Hanmac
uses thyme for that
benweint has quit [Quit: Computer has gone to sleep.]
_sillymarkets has quit [Ping timeout: 240 seconds]
<apeiros>
"Though singular they has a long history of usage"
dayepa has joined #ruby
<bricker>
apeiros: hm
<s2013>
yay now its a debate about a different type of language
benweint has joined #ruby
<apeiros>
#language
<s2013>
consumerism, wtf is that
havenwood has quit [Remote host closed the connection]
<bricker>
apeiros: I'm basing my argument on The Elements of Style
<s2013>
how old is that app
<Nilium>
Let's just say that if people understand it, it's grammatical
<s2013>
anyways #rubyonrails would be able to help you better
<apeiros>
they is perfectly cromulent.
<s2013>
i are see
havenwood has joined #ruby
crystal77 has joined #ruby
shadoi has joined #ruby
<consumerism>
s2013: wtf is what?
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<consumerism>
like i said, an app that i was handed
postmodern has joined #ruby
<consumerism>
i didn't write any of it
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<consumerism>
and it was the developer's first ror project afaik
<s2013>
yeah i know
<s2013>
it shows
<s2013>
even my first ror project wasnt that bad.
<consumerism>
ok so...what can i do about it
<apeiros>
bricker: funny, it's mentioned in that article: "Strunk & White, the authors of The Elements of Style find use of they with a singular antecedent unacceptable"
<s2013>
see how they can help on the rails channel.
<consumerism>
and can you be more specific about what's wrong
<s2013>
what version ofrails is it
<consumerism>
i already asked on the other channel, no response yet
<s2013>
paste the gist
<s2013>
gist whets the appetite of all the people on that channel
mikeg has joined #ruby
angel_66 has joined #ruby
<consumerism>
4.0.2
<s2013>
well for one match is deprecated
<angel_66>
Hi. Does any1 knows if the ruby gems for oDesk (ruby_desk, odesk) are still working?
snql has joined #ruby
oo_ has joined #ruby
<angel_66>
Or if there's an oauth gem sample of how I can use without those gems? (I've tried by myself but it's failing at the first step)
SegFaultAX has quit [Excess Flood]
combusean has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
<consumerism>
s2013: what should the developer use instead? and what else?
SegFaultAX has joined #ruby
<s2013>
use get/ post
<s2013>
its just messy.
<s2013>
root should go in the bottom
<s2013>
etc
kilk_ has quit [Quit: Leaving]
pskosinski has quit [Ping timeout: 272 seconds]
mikecmpbll has quit [Quit: ciao.]
alem0lars has quit [Quit: alem0lars]
sailias has quit [Quit: Leaving.]
Nukepuppy has quit [Ping timeout: 252 seconds]
dorei has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 250 seconds]
mary_syn_ has quit [Remote host closed the connection]
afex has quit [Ping timeout: 240 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has quit [Quit: Leaving...]
mary_synthesizin has joined #ruby
nateberkopec has quit [Quit: Leaving...]
crystal77 has quit [Quit: Computer has gone to sleep.]
mary_syn_ has joined #ruby
randomnick_ has quit [Quit: Leaving]
HashNuke has quit [Quit: Connection closed for inactivity]
afex has joined #ruby
senayar has joined #ruby
SCommette has quit [Quit: SCommette]
ktosiek has quit [Ping timeout: 255 seconds]
pskosinski has joined #ruby
mary_syn_ has quit [Remote host closed the connection]
mary_synthesizin has quit [Ping timeout: 265 seconds]
SCommette has joined #ruby
davispuh has quit [Remote host closed the connection]
nateberkopec has joined #ruby
andrewjanssen has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
shevy has joined #ruby
davispuh has joined #ruby
<shevy>
test
<shevy>
am I back?
senayar has quit [Ping timeout: 276 seconds]
adlerdias has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
<dorei>
no, u aint back :p
<shevy>
:(
<shevy>
it's so awful, I get down every once in a while
momigi has quit [Read error: Connection reset by peer]
end_guy has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
tacos1de has quit [Write error: Connection reset by peer]
end_guy has joined #ruby
momigi has joined #ruby
oo_ has joined #ruby
momigi has quit [Read error: Connection reset by peer]
tacos1de has joined #ruby
pskosinski has joined #ruby
havenwood has quit [Remote host closed the connection]
momigi has joined #ruby
blackmes1 has joined #ruby
Stalkr_ has joined #ruby
senayar has joined #ruby
jobewan has quit [Quit: Leaving]
andrewjanssen has quit [Quit: Leaving...]
nfk has quit [Quit: yawn]
mcrmfc has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
agarie has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 252 seconds]
oo_ has quit [Ping timeout: 240 seconds]
zorak has joined #ruby
wjlafrance_ has joined #ruby
benzrf|offline is now known as benzrf
oo_ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
meatherly has quit [Remote host closed the connection]
fgo has joined #ruby
mcrmfc has quit [Client Quit]
senayar has quit [Ping timeout: 265 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
ua has quit [Ping timeout: 240 seconds]
andrewlio has quit [Quit: Leaving.]
wjlafrance has quit [Ping timeout: 276 seconds]
Speed has joined #ruby
s2013 has quit [Quit: Leaving]
oo_ has quit [Ping timeout: 255 seconds]
crucify_me has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
Azure has joined #ruby
momomomomo has quit [Quit: momomomomo]
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
jxf has quit [Ping timeout: 265 seconds]
enebo has quit [Quit: enebo]
s2013 has joined #ruby
SilkFox has joined #ruby
<crucify_me>
hi there is something basic I don't understand here : http://pastie.org/9128961 #freeze operates on an obj. reference, not on a variable. but isn't a variable an obj. reference as well?
jobewan has joined #ruby
afex has quit [Ping timeout: 246 seconds]
<apeiros>
crucify_me: + creates a new object
michaelpjohnson has quit [Remote host closed the connection]
<apeiros>
the original string remains unchanged
lmickh has joined #ruby
<apeiros>
>> a = "hi "; b = a+"there"; [a.object_id, b.object_id]
<apeiros>
and variables can't reference anything but objects either. you can't e.g. reference a method, or another variable.
<crucify_me>
apeiros: one sec I'm trying to articulate my question
<Stalkr_>
I have tried use_cassette 'api/catalog', record: :new_episodes as well
ctp has joined #ruby
ringo2 has joined #ruby
<Stalkr_>
I also tried to write a new cassette around that method
ctp has quit [Client Quit]
troyronda has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
mansi has quit [Ping timeout: 246 seconds]
franzip has quit [Quit: ...]
ixti has quit [Quit: WeeChat 0.4.3]
<crucify_me>
http://pastie.org/9128992 so I run it like this and can see the object_id 's differ. but the tutorial states that freeze operates on "an object reference, not on a variable." apeiros
ixti has joined #ruby
<apeiros>
eugh, IMO a bad way to phrase it
einarj has joined #ruby
geggam has quit [Quit: commute]
<apeiros>
freeze works on an object. period. not "on an object reference".
<crucify_me>
dang well at least you can understand my confusion. apeiros :)
failshell has quit []
SCommette has quit [Quit: SCommette]
combusean has quit [Ping timeout: 240 seconds]
<apeiros>
IMO it's even wrong.
<apeiros>
variables reference objects. if something is an object reference, then a variable. so that'd be self-contradictory.
s2013_ has joined #ruby
treehug88 has quit []
ndrei has quit [Ping timeout: 240 seconds]
zommi has joined #ruby
<crucify_me>
apeiros: could be non-native speaker speak. but it weird because @string ends up referencing to separate objects so I don't see what freeze actually does.
<crucify_me>
two*
<apeiros>
freeze prevents you from mutating an object
<apeiros>
@string << "Attempt to change string" # <-- would mutate the object, which is why it fails in your example
s2013 has quit [Ping timeout: 265 seconds]
<apeiros>
>> a = "hi "; before = a.object_id; a << "there"; [before, a.object_id, a]
Aaaal has quit [Read error: Connection reset by peer]
<apeiros>
dorei: it is consistent. you just don't seem to know how it's supposed to work :)
eka has joined #ruby
<dorei>
oh, i see
thomas_d has joined #ruby
<dorei>
first time i come accross .cover? :)
renier has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
<thomas_d>
Math.cbrt(27) gives me 3.0000000000000004
<thomas_d>
why the .0000000000000004?
mansi has joined #ruby
<apeiros>
thomas_d: welcome to the world of floats
tacos1de has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<crucify_me>
kind people helping me earlier, this webpage on immutability is driving me crazy. how can @string be reference an unchanged object and a new, second object?
Firebox has joined #ruby
<apeiros>
floats are approximations. also rounding errors will occur.
<apeiros>
crucify_me: by changing what it references
lmickh has quit [Remote host closed the connection]
Nogbit has joined #ruby
<Firebox>
how can i ruby-1.9.3 switch in rvm?
<apeiros>
>> a = 1; a = "hello" # a referenced two entirely different objects during its lifetime
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
<thomas_d>
thanks guys... is there a better solution or should I just live with these approximations?
jameswlane has joined #ruby
BWStearns has quit [Ping timeout: 255 seconds]
<apeiros>
thomas_d: there is no generic answer to that question
mansi has quit [Remote host closed the connection]
GaryOak__ has quit [Remote host closed the connection]
angel_66 has quit [Remote host closed the connection]
mansi has joined #ruby
<thomas_d>
I see... Well thanks for your help anyway
nanoyak has quit [Ping timeout: 255 seconds]
<dorei>
thomas_d: i'm pretty sure that there're some fixed point gems for ruby
troyronda has quit [Read error: Connection reset by peer]
dogurness has joined #ruby
<Firebox>
apeiros: hi
funburn has joined #ruby
<apeiros>
hi Firebox
<Firebox>
how can i ruby-1.9.3 switch in rvm? apeiros
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros>
rvm use RUBY
<apeiros>
e.g. rvm use ruby-2.1
<apeiros>
`rvm list` gives you a list of available rubies
troyrond_ has joined #ruby
<Firebox>
rvm use ruby-1.9.3?
<apeiros>
f.ex., yes.
hermanmunster has joined #ruby
dangerousdave has quit [Ping timeout: 240 seconds]
<Nowaker>
or simply rvm use 1.9
AlexRussia has joined #ruby
<crucify_me>
apeiros: but here http://pastie.org/9128992 the += operation on line 13 creates a reference to a new object (new object_id is returned) so can I find the object_id of the unaltered object?
<apeiros>
yes, some abbreviations work. beware though, some don't. but that's easily figured out.
<Firebox>
thanks apeiros
<apeiros>
crucify_me: "creates a reference". no.
hermanmunster has quit [Remote host closed the connection]
<Firebox>
thanks Nowaker
mansi has quit [Ping timeout: 252 seconds]
<apeiros>
+= creates a new object, and lets the lhs (left-hand-side) reference that object
<apeiros>
crucify_me: and if you still want to access the old object, you need to reference it from somewhere else.
mikeg has quit [Remote host closed the connection]
sambao21 has joined #ruby
troyrond_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
troyronda has joined #ruby
dayepa has quit [Ping timeout: 246 seconds]
razrunelord has quit [Remote host closed the connection]
locriani has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
dik_dak has quit [Quit: Leaving]
<crucify_me>
apeiros: why would a tutorial featuring immutability take an object, freeze it, then alter it with += so that the initial lhs is referencing a new object.
armyriad has quit [Ping timeout: 240 seconds]
Solnse has joined #ruby
nanoyak has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
troyronda has quit [Ping timeout: 276 seconds]
cpruitt has quit [Quit: cpruitt]
nanoyak has quit [Client Quit]
dvarrui has joined #ruby
CaptainJet has quit []
mansi has joined #ruby
caleb_io has joined #ruby
<apeiros>
crucify_me: it does *not* alter it with +=. that's the point. += does *not* alter the object.
iceden has quit [Read error: Connection reset by peer]
<apeiros>
crucify_me: a += b is short for a = a + b
Nukepuppy has joined #ruby
<apeiros>
crucify_me: a = expression alters *what* a references
<apeiros>
and a + b returns a new object, not the object a references.
<apeiros>
so a += b alters what a references. it does not alter the object which a referenced.
freezey has quit [Remote host closed the connection]
momigi has joined #ruby
<crucify_me>
Ok thanks very much apeiros I'll get it by next tuesday.
havenwood has joined #ruby
nanoyak has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
Firebox_ has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
r0ast has joined #ruby
s2013_ has quit [Ping timeout: 245 seconds]
ffranz has joined #ruby
armyriad has joined #ruby
freezey_ has joined #ruby
<shevy>
hmm
<shevy>
next tuesday
Nukepuppy has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
dstynchu_ has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has joined #ruby
dstynchula has joined #ruby
Royalb15_Laptop has joined #ruby
<dvarrui>
hi everbody¡ i'm writting an app that works on shell. but my users demands a gui frontend. a suggestion¿ i would like to use ruby option gui.¿ thanks¡
Martxel has quit [Ping timeout: 255 seconds]
<apeiros>
¿a sugggestion?
roadie has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
AlexRussia has joined #ruby
<dvarrui>
i mean i dont know what choose
<apeiros>
¡shoes! ¡gtk! ¡qt! ¡macruby!
<shevy>
dvarrui ruby-gnome bindings
nanoyak has quit [Quit: Computer has gone to sleep.]
<dvarrui>
but i need something crossplatform (linux,win,mac)
<crucify_me>
shevy it was grim but I get it.
<dorei>
dvarrui: a web frontend then :p
<shevy>
dvarrui yes, why do you assume ruby-gnome is not crossplatform?
<crucify_me>
<< see moniker
havenwood has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
Soliah has joined #ruby
jamto11 has quit [Remote host closed the connection]
paulfm has joined #ruby
nanoyak has joined #ruby
<reactormonk>
anything like a counter in the stdlib?
<dvarrui>
shevy: i didnt know thanks. dorei: thanks... perhaps something easy like sinatra... :)