apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
predator117 has joined #ruby
Bira has quit [Remote host closed the connection]
yubrew has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
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?
bthesorceror has quit [Ping timeout: 255 seconds]
<reactormonk> havenwood, sounds slow as fuck
<havenwood> >> 'hiya'.each_char.with_index.to_a
<eval-in> havenwood => [["h", 0], ["i", 1], ["y", 2], ["a", 3]] (https://eval.in/144041)
moritzschaefer has joined #ruby
<shevy> how can it be faster!
<havenwood> reactormonk: ^
phoo1234567 has quit [Remote host closed the connection]
<reactormonk> shevy, I'd do something slike splitting, then count up length of each splitted string
<havenwood> reactormonk: that whatcha mean?
Hobogrammer has quit [Ping timeout: 252 seconds]
<reactormonk> havenwood, nah, .split(" ") and I need the position of each string
<reactormonk> actually, its /\s/, but that shouldn't matter too much
<wallerdev> id probably use a regex you can get the position of each match that way haha
<havenwood> >> 'okay then this?'.split.each_with_index.to_a
<eval-in> havenwood => [["okay", 0], ["then", 1], ["this?", 2]] (https://eval.in/144042)
papercode has quit [Quit: WeeChat 0.4.4-dev]
jamto11 has joined #ruby
seuros1 has quit [Quit: Leaving.]
<wallerdev> he wants the position of the words in the string, not in the array haha
sailias has quit [Ping timeout: 265 seconds]
<benzrf> >> 'okay then this?'.split.with_index.to_a
<eval-in> benzrf => undefined method `with_index' for ["okay", "then", "this?"]:Array (NoMethodError) ... (https://eval.in/144043)
<reactormonk> yeah, index in the array is easy
<benzrf> huh.
<havenwood> oh, ha
Kricir has quit [Remote host closed the connection]
<benzrf> oic
<benzrf> lame
<reactormonk> benzrf, yeah, .with_index only works for enumerators
<havenwood> wallerdev: i didn't get what was wanted >.>
Kneferilis has quit [Read error: Connection reset by peer]
papercode has joined #ruby
<reactormonk> havenwood, so far it's 50/50 if my explanation or your understanding sucks
grzywacz has quit [Ping timeout: 265 seconds]
<banisterfiend> >> 'okay then this?'.split.each_with_index.to_a
<eval-in> banisterfiend => [["okay", 0], ["then", 1], ["this?", 2]] (https://eval.in/144044)
moritzs has quit [Ping timeout: 255 seconds]
<reactormonk> ok, 1:2 against me
<havenwood> reactormonk: probably better to give example input and expected output...
thomasxie has joined #ruby
bizancio has joined #ruby
<havenwood> reactormonk: okay, i just understood what you actually want >.>
penzur has joined #ruby
Ginfuru has joined #ruby
bizancio has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<reactormonk> 'okay then this?' => [["okay", 0..3], ["then", 4..8], ["this?", 9..14]] - the second number is optional
<havenwood> reactormonk: much better :)
binaryhat has joined #ruby
nateberkopec has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
psyko666 has joined #ruby
CMoH has left #ruby ["Konversation terminated!"]
Shidash has quit [Ping timeout: 276 seconds]
vpretzel has joined #ruby
vpretzel has quit [Remote host closed the connection]
sailias has joined #ruby
djbkd has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
doodlehaus has quit [Remote host closed the connection]
momigi has joined #ruby
<wallerdev> >> [].tap { |ary| "one two three".scan(/\S+/) { |r| ary << [r, $~.begin(0)] } }
<eval-in> wallerdev => [["one", 0], ["two", 4], ["three", 8]] (https://eval.in/144045)
<wallerdev> lol
<wallerdev> probably not the best way
x77686d has quit [Quit: x77686d]
<reactormonk> wallerdev, good idea
Nukepuppy has quit [Ping timeout: 265 seconds]
northfurr has joined #ruby
omosoj has quit [Ping timeout: 264 seconds]
<reactormonk> not too sure if I like the \S+ pattern, but it should do
Hobogrammer has joined #ruby
Hanmac has joined #ruby
oo_ has joined #ruby
amclain has joined #ruby
jmeeuwen_ has joined #ruby
JaTochNietDan has quit [Ping timeout: 252 seconds]
jrhe has quit [Ping timeout: 252 seconds]
Darryl has quit [Ping timeout: 252 seconds]
kapowaz has quit [Ping timeout: 252 seconds]
jonr22 has quit [Remote host closed the connection]
andrewstewart has quit [Ping timeout: 252 seconds]
cmaxw_____ has quit [Ping timeout: 252 seconds]
alol has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
doodlehaus has joined #ruby
octarine has quit [Ping timeout: 252 seconds]
<benzrf> >> $~
<eval-in> benzrf => nil (https://eval.in/144046)
<benzrf> ??
terrellt has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
jeregrine has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<wallerdev> >> 'abc' =~ /a/; $~
<eval-in> wallerdev => #<MatchData "a"> (https://eval.in/144047)
im0b has quit [Ping timeout: 252 seconds]
msch has quit [Ping timeout: 252 seconds]
bryanjswift has joined #ruby
bauruine has quit [Ping timeout: 252 seconds]
jmeeuwen has quit [Ping timeout: 252 seconds]
eythorium has quit [Ping timeout: 252 seconds]
jmeeuwen_ is now known as jmeeuwen
jrhe has joined #ruby
cmaxw_____ has joined #ruby
andrewstewart has joined #ruby
MatthewsFace has joined #ruby
phpisthebest has joined #ruby
eythorium has joined #ruby
alol has joined #ruby
<havenwood> reactormonk: StringScanner solution: https://gist.github.com/havenwood/ce0dad2e8eb3bb26f4c8
mg^^ has joined #ruby
Darryl has joined #ruby
tris has quit [Quit: Leaving]
octarine has joined #ruby
yubrew has joined #ruby
phpisthebest has left #ruby [#ruby]
msch has joined #ruby
im0b has joined #ruby
<havenwood> reactormonk: 'omg wtf bbq' #=> [["omg", 0..3], ["wtf", 4..7], ["bbq", 8..11]]
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 |()|
havenn has joined #ruby
havenwood has quit [Ping timeout: 276 seconds]
<havenn> brian___: it's a sekret, shhhh!
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
andrewjanssen has joined #ruby
<mordof> shevy: that's because that's not something specific to that area
<mordof> shevy: o.O
<shevy> mordof k where can I find it then
<mordof> shevy: sec
<mordof> shevy: it's generic variable assignment
Sawbones has quit [Remote host closed the connection]
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
Ginfuru has quit [Quit: Computer has gone to sleep.]
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
<shevy> mordof had any luck so far?
<mordof> i have no idea how to peruse the docs in general, lol
reset has quit [Ping timeout: 255 seconds]
CorySimmons has joined #ruby
tyll has quit [Ping timeout: 252 seconds]
george2 has joined #ruby
aspires has joined #ruby
<mordof> though, it doesn't actually describe it in the context you're talking about... which i can see how that is not very useful
mary_synthesizin has joined #ruby
<shevy> ah
<shevy> it is "Array Decomposition"
<mordof> Array Decomposition down at the bottom
<mordof> yeah
AlexRussia has quit [Remote host closed the connection]
<shevy> I actually never knew that name until yet :)
<mordof> ^_^
<mordof> woo i helped, lol
tyll has joined #ruby
AlexRussia has joined #ruby
<shevy> yeah well
<shevy> you have the advantage of fresh eyes to the foray here
rm__ has joined #ruby
<shevy> you should have been here in like 2003 or 2004
<shevy> the docu was completely different
<shevy> have you ever seen iframe docu?
<brian___> reduce and inject are the same right?
<mordof> shevy: not for ruby, but yes. i've been in web dev for 17 years
<mordof> shevy: i know allll about how docs and specs have been upgraded since
mansi has quit [Remote host closed the connection]
terrellt has quit [Quit: Leaving...]
<shevy> hehe
<shevy> brian___ the source for inject is:
<shevy> static VALUE enum_inject(int argc, VALUE *argv, VALUE obj)
<mordof> back when people were discovering that they could actually use tables to structure their layout!!! woo the next big thing
Parker0 has quit [Ping timeout: 264 seconds]
<shevy> the source for reduce is:
hamakn has joined #ruby
<shevy> static VALUE enum_inject(int argc, VALUE *argv, VALUE obj)
<shevy> so yeah brian___ one must be an alias to the other
<mordof> lolwhat
<shevy> mordof I still use tables!
<mordof> shevy: FOR SHAME!
<mordof> lol
<mordof> shevy: only if it's for tabular data
<brian___> shevy: is the idea that you call it reduce when youre making the array smaller and inject when making it bigger?
<shevy> brian___ are you trying to sex me up
<mordof> rofl
<shevy> brian___ no real idea, I usually settle for one
<shevy> I think I am using mostly, or only, inject
<shevy> reduce sounds haskell-area
fgo has joined #ruby
<brian___> haha. so not a good idea to mix and match
<shevy> like .collect vs .map
<shevy> I use only .map and the .collect users are my enemies
x77686d has quit [Quit: x77686d]
<mordof> what's the differences between .collect and .map?
<mordof> i'm used to .map
<shevy> one is an alias to the other
<mordof> ah
<ericwood> yep
<brian___> i use collect : /
* mordof shuns brian___
<shevy> yeah, .collect is the real one, .map is only an alias :(
<ericwood> map is a more language-agnostic term for it imho
<mordof> oh >.>
* mordof coughs
<shevy> ericwood yeah, also it is shorter to write haha
cashnguns has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<ericwood> that too
<shevy> k mordof time for another quiz
<mordof> x.x
<mordof> ok
<shevy> mordof, you must build an array, consisting of 4 strings: 'cat' 'fish' 'frog' 'antilope'
<shevy> and then
AlexRussia has quit [Remote host closed the connection]
jxf has joined #ruby
<shevy> you must return, as string, the largest member as in the one with most characters
<shevy> mordof but! here is the catch
<mordof> OOOHH i saw how to do that!!! hmm
ponga has quit [Quit: Leaving :)]
<shevy> mordof you must try to use as little characters (in your code) as possible
<shevy> well there are several ways
AlexRussia has joined #ruby
<mordof> ["cat", "fish", "frog", "antilope"].inject { |x, y| x.length > y ? x : y } i think it is?
x77686d has joined #ruby
<shevy> hmm
<mordof> unless i needed x = y
* mordof has never used that before
<mordof> i just remember it from reading up on inject earlier today
<shevy> I think you forgot something there
<shevy> but it's almost solved
<mordof> oh right
<shevy> mordof you still need to make it shorter though :)
<mordof> x.length > y.length
semihelix has joined #ruby
<mordof> shorter? o.O
<mordof> go for it
<shevy> yeah
<shevy> two tricks
<shevy> first, you can use %w() to build an array of strings
<mordof> right
<shevy> so in this case
<shevy> %w(cat fish frog antilope)
bodeezl has quit [Ping timeout: 240 seconds]
<shevy> then also, .size is an alias to .length
<mordof> it's { } isn't it?
<shevy> you can use anything there
<shevy> even ' '
<mordof> oh right
<shevy> >> %w cat fish frog antilope
<eval-in> shevy => /tmp/execpad-7317bcae4dbd/source-7317bcae4dbd:2: unterminated string meets end of file ... (https://eval.in/144069)
<mordof> chosen delimiter
<shevy> grrrr
<shevy> stupid bot
<mordof> lol
wallerdev has joined #ruby
<shevy> >> %w'cat fish frog antilope'
<eval-in> shevy => ["cat", "fish", "frog", "antilope"] (https://eval.in/144070)
<shevy> >> %w(cat fish frog antilope).inject{|x, y|x.size>y.size ? x:y}
<eval-in> shevy => "antilope" (https://eval.in/144071)
carlyle has joined #ruby
<shevy> oh
<shevy> x, y to x,y
<shevy> not sure if it can be made even shorter
<mordof> right - so you dropped like 12 - 15 chars
<mordof> lol
<shevy> yeah
* mordof shrugs
<shevy> :)
* mordof prefers readability most of the time
penzur has joined #ruby
<mordof> i've done stuff like this in js where the goal is to make something actually functional in the least amount of characters
troyronda has quit [Remote host closed the connection]
Vovko has joined #ruby
<mordof> i forget what it was - but i got a small game down to 4 lines, 74 characters
<mordof> i don't think i have it anymore though :/
jack_rabbit has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<mordof> heh, my minesweeper definitely wasn't that
<brian___> thanks guys battery is dying … later
ixti has quit [Ping timeout: 252 seconds]
brian___ has quit [Quit: brian___]
rostam has quit [Remote host closed the connection]
carlyle has quit [Ping timeout: 246 seconds]
<mordof> shevy: oh man, i completely forgot that i had actually completed my minesweeper implementation using js and the DOM
<mordof> it's so nice
The_Doctor is now known as Adran
mrdtt has joined #ruby
Vovko has quit [Ping timeout: 276 seconds]
rostam has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
WillAmes has joined #ruby
troyronda has joined #ruby
phantasm66 has joined #ruby
WishBoy has joined #ruby
bubbajones has quit [Quit: leaving]
<mordof> shevy: anyway, yeah i can't find what i had made before. oh well. were there other parts to this quiz of yours?
aspires has quit []
Hanmac1 has joined #ruby
jamto11 has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
s2013 has joined #ruby
troyronda has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
krz has joined #ruby
binaryhat has quit [Quit: Leaving]
andrewjanssen has quit [Quit: Leaving...]
n0n3 has quit []
<shevy> mordof ewwww
ce_afk is now known as cescalante
<shevy> javascript
AlexRussia has quit [Remote host closed the connection]
<shevy> mordof not really, I am unsure how to make it any shorter really
m00nlight has quit [Quit: Konversation terminated!]
<shevy> let me think
chrisja has quit [Quit: leaving]
AlexRussia has joined #ruby
<shevy> >> %w(cat fish frog antilope).sort{|x|x.size}[0]
<eval-in> shevy => "antilope" (https://eval.in/144072)
<shevy> mordof perhaps another quiz then
<shevy> mordof you have an array, with 3 elements, each one has a trailing \n character
<shevy> mordof how can you get rid of it? try to find a very short solution
<mordof> oh, we did this earlier, heh
<shevy> really?
<mordof> mhmm
<shevy> here is an example array
<shevy> array = ["abc\n","def\n","ghi\n"]
<mordof> .each($:strip!)
fuhgeddaboudit has joined #ruby
<mordof> er
<mordof> &:strip!
<mordof> and .each_value for a hash
<shevy> a moment
Dreamer3 has quit [Remote host closed the connection]
<shevy> what is the code?
<mordof> >> %w'abc\n def\n ghi\n'.each(&:strip!)
<eval-in> mordof => ["abc\\n", "def\\n", "ghi\\n"] (https://eval.in/144073)
<mordof> bah
<mordof> lol, it escaped it
<mordof> oh
<mordof> >>["abc\n","def\n","ghi\n"].each(&:strip!)
pietr0 has quit [Quit: pietr0]
<mordof> ...
<shevy> k
<benzrf> eval-in is a bit disabled
<benzrf> sometimes u need to repeat yourself
<shevy> did you break it benzrf
<mordof> >>["abc\n","def\n","ghi\n"].each(&:strip!)
<eval-in> mordof => ["abc", "def", "ghi"] (https://eval.in/144074)
<mordof> shevy: there
<mordof> benzrf: thanks for the tip
<shevy> >> ["abc\n","def\n","ghi\n"].each(&:strip)
<eval-in> shevy => ["abc\n", "def\n", "ghi\n"] (https://eval.in/144075)
<shevy> curious
<mordof> the !
CorySimmons has quit [Quit: Bye!]
Dreamer3 has joined #ruby
<mordof> shevy: why is that curious?
Dreamer3 has quit [Client Quit]
yubrew has joined #ruby
<shevy> mordof well
<shevy> >> ["abc\n","def\n","ghi\n"].map(&:chomp)
<eval-in> shevy => ["abc", "def", "ghi"] (https://eval.in/144076)
<mordof> map creates a new array though
<shevy> it does? but we also have .map! hmm
<mordof> .each strip! iterates and overwrites using the same array
<mordof> map! would create a new array and then assign over-top
dogurness has joined #ruby
<mordof> instead of individual assignments
<mordof> i believe
<mordof> i'm not sure
<havenn> mordof: #map! changes in place, no new array
<mordof> ah good to know
<havenn> >> ["abc\n","def\n","ghi\n"].map! &:chomp
<eval-in> havenn => ["abc", "def", "ghi"] (https://eval.in/144077)
penzur has quit [Quit: WeeChat 0.4.3]
<shevy> ohhhh
<shevy> that reminds me
<shevy> mordof, how can you find out whether a new object was created or not?
<mordof> >> ["\nabc\n", "\ndef\n", "\nghi\n"].map! &:chomp
<eval-in> mordof => ["\nabc", "\ndef", "\nghi"] (https://eval.in/144078)
<mordof> >> ["\nabc\n", "\ndef\n", "\nghi\n"].map! &:strip
<eval-in> mordof => ["abc", "def", "ghi"] (https://eval.in/144079)
<mordof> shevy: i have no idea
arietis has joined #ruby
momigi has joined #ruby
radic has quit [Ping timeout: 240 seconds]
<shevy> aha!
<shevy> it's a very fundamental part of ruby
<shevy> >> x = 'abc'; x.object_id
<eval-in> shevy => 550916630 (https://eval.in/144080)
<shevy> >> x = 'abc'; x.object_id
<eval-in> shevy => 544928350 (https://eval.in/144081)
<shevy> tada!
<mordof> ooh
<shevy> mordof can you name things in ruby that have a static object id?
<shevy> as in - won't change
<mordof> nope
AlexRussia has quit [Remote host closed the connection]
* mordof hasn't got that far
<shevy> mordof do string objects have a static object id?
<shevy> hmm perhaps static is the wrong term
<mordof> again, no idea, lol
<shevy> yeah, I don't like that term...
papercode has quit [Quit: WeeChat 0.4.3]
<shevy> that'll be part of a tutorial another day... when I have a better term.
<mordof> lol, ok
yubrew has quit [Ping timeout: 276 seconds]
AlexRussia has joined #ruby
radic has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
afex has quit [Ping timeout: 240 seconds]
lethjakman has quit [Ping timeout: 252 seconds]
momigi has quit [Ping timeout: 255 seconds]
<mordof> >> arr = ["abc\n", "def\n"]; print arr.object_id; arr.map! &:chomp; print arr.object_id;
<eval-in> mordof => 552276370552276370nil (https://eval.in/144082)
<mordof> hm, indeed it is the same
sensen has joined #ruby
<mordof> >> arr = ["abc\n", "def\n"]; print arr.object_id; arr.each &:chomp!; print arr.object_id;
<eval-in> mordof => 541823400541823400nil (https://eval.in/144083)
* mordof nods
m00nlight has joined #ruby
Parker0 has joined #ruby
maximski has quit []
sambao21 has joined #ruby
JimHy has quit [Quit: Lost terminal]
<shevy> mordof is a fast learner
<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.
davedev24 has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
bthesorceror has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
Jnco has quit [Quit: Jnco]
oo_ has quit [Remote host closed the connection]
crus has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
yfeldblum has quit [Ping timeout: 240 seconds]
rafaelmagu has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has joined #ruby
ndrei has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
skysploit has quit []
oo_ has joined #ruby
havenwood has joined #ruby
bo- has joined #ruby
coderhs has joined #ruby
bo- is now known as bodeezl
Kricir has joined #ruby
<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!]
seuros has joined #ruby
whomp_ has joined #ruby
<whomp_> i'm having trouble installing a gem. any ideas? here's the error output: https://gist.github.com/michaeleisel/5060bb8ea5f54622d099
kilk_ has joined #ruby
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.]
<Firebox> thanks
<Hytosys> apeiros I just ran across your name about an hour ago looking at https://github.com/apeiros/inherit
<Hytosys> are you actively using this?
<apeiros> puts ("hello") # <-- the parens are not considered as argument delimiters here, but as part of the argument expression
<Firebox> the i use puts “Hello” not puts(“Hello”)
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<apeiros> Hytosys: not in the released form. but yes, I have a project where I intend to use it.
<Hytosys> cool, I was thinking about my own sort of implementation and luckily ran across yours
<apeiros> Hytosys: the newer version makes a trade I'm not sure yet I want to do. you see, the current inherit has a disadvantage:
meatherly has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<apeiros> class Foo; inherit Bar; end; Foo.new.is_a?(Bar) # => false
moritzschaefer has quit [Ping timeout: 265 seconds]
<Hytosys> oh, why is that?
<apeiros> because Bar is never included in Foo, to avoid adding Bar's constants to Foo
<apeiros> the newer version does that correctly, but uses a bit of magic for it. and I quite dislike magic :-/
fgo has quit [Remote host closed the connection]
<Hytosys> oh right, you use the ClassMethod sort of classes
<Hytosys> hmm what's the magic?
arietis has joined #ruby
<apeiros> moment, being interrupted. brb
lazyguru has quit [Ping timeout: 252 seconds]
<Hytosys> sure
FL1SK has quit [Read error: Operation timed out]
meatherl_ has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
codeFiend has quit [Quit: codeFiend]
codeFiend has joined #ruby
<apeiros> Hytosys: the current draft looks like this: https://gist.github.com/apeiros/6bdd02afc1d1a6217763
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
<eval-in> apeiros => 3 ... (https://eval.in/144254)
<j416> yes, I understand what you are saying. I'm just wondering if it is in effect also parsed differently and treated differently
<apeiros> >> puts(1)+2 # fails, because it passes 1 to puts, puts returns nil, and nil+2 raises
<eval-in> apeiros => 1 ... (https://eval.in/144255)
<j416> aah, that is what you mean
<j416> thank you!
<apeiros> you need to take a look at the eval-in link to see the error
pu22l3r_ has joined #ruby
seuros has quit [Quit: Leaving.]
<j416> yes, got that already, thanks
<j416> apeiros++
VictorBjelkholm has joined #ruby
<apeiros> :)
<apeiros> yw
codeFiend has quit [Quit: codeFiend]
<j416> if apeiros charged a cent for every satisfying answer he gave, he'd be rich by now. :D
<popl> He might've spent it already.
Sw|ss has joined #ruby
ua has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
moritzschaefer has quit [Ping timeout: 255 seconds]
nvrch has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<j416> popl: true. He'd need to be replacing his keyboards after they wear I suppose.
cescalante is now known as ce_afk
oo_ has joined #ruby
mikecmpbll has joined #ruby
yacks has joined #ruby
oo_ has quit [Remote host closed the connection]
<apeiros> I probably earn still more where I work atm ;-)
<popl> :(
* popl makes minimum wage.
<apeiros> =(
timonv has joined #ruby
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<ua> popl, minimum wage where :P
<popl> ua: Oregon, US
ghr has joined #ruby
<popl> Well, $.15 over minimum wage because I work swing shift.
claymore has quit [Ping timeout: 240 seconds]
thelamest has quit [Quit: thelamest]
claymore has joined #ruby
senayar_ has joined #ruby
Xeago has quit [Remote host closed the connection]
Sw|ss has quit []
senayar has quit [Read error: Operation timed out]
oo_ has joined #ruby
yubrew has joined #ruby
olivier_bK has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
danijoo has quit [Read error: Connection reset by peer]
momigi has joined #ruby
danijoo has joined #ruby
codeFiend has joined #ruby
kaspergrubbe has joined #ruby
freerobby has joined #ruby
* popl pukes on ua's shoes
<popl> ;P
m00nlight has quit [Read error: Connection reset by peer]
lisberoia has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
poikon has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
mcrmfc has joined #ruby
<popl> ua: A start-up's odds of success are statistically low.
BizarreCake has joined #ruby
<certainty> what's crackin'?
<popl> It's also a huge fiscal risk.
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
einarj has joined #ruby
RaptorJesus has joined #ruby
tcstar has quit [Ping timeout: 276 seconds]
<lisberoia> there seems to be something wrong with this short ruby script: https://github.com/windytan/ctape
<ua> popl, nah if you do it in your free time for year or two and drop your job only after you have income from startup :P
nvrch has quit [Ping timeout: 252 seconds]
obs has quit [Remote host closed the connection]
<popl> ua: Have you done this successfully?
<lisberoia> I posted the details of the issue here: https://github.com/windytan/ctape/issues/2 (I am Gabriel)
<lisberoia> what can be the problem? thanks
<popl> ua: I'm not saying it's not possible. I'm saying the likelihood is very low.
<ua> popl, im working on my first startup, no income so far so i guess no
<popl> ua: Well I hope it works out for you.
<popl> ua: One must be realistic, you know?
Hanmac has joined #ruby
obs has joined #ruby
<ua> popl, read the essay on wealth, please :P
<popl> I have, dude.
<popl> I've read pretty much everything on his site.
crzrcn has joined #ruby
nvrch has joined #ruby
<ua> ah ok then
<ua> ;p
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<popl> I read it like ten years ago when he wrote it.
brucelee_ has quit [Ping timeout: 252 seconds]
<ua> ok i see x)
<lisberoia> anyone?
<ua> so im noob in here :p
ephemerian has joined #ruby
<ua> popl, have you tried startups?
<popl> No, I'm the perpetual noob. :P
Hanmac1 has quit [Ping timeout: 255 seconds]
<ua> i mean noob as in im reading this stuff just now
<popl> ah
fgo has joined #ruby
zorak has quit [Ping timeout: 252 seconds]
jenskarlsen has joined #ruby
<lisberoia> there seems to be something wrong with this short ruby script: https://github.com/windytan/ctape
<ua> popl, so, have you actually tried to do a startup? :P
yfeldblum has quit [Ping timeout: 276 seconds]
<popl> we read it the first time
<popl> ua: nope
yfeldblum has joined #ruby
Xeago has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
klaut_ has quit [Remote host closed the connection]
goleldar has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
jxf has quit [Ping timeout: 240 seconds]
<ua> lisberoia, nice project lol
<ua> lisberoia, how much data fits on a cassette? :D
FL1SK has joined #ruby
<lisberoia> 90 minutes, a little over 1 MB :)
<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> i followed these instructions: https://github.com/mgomes/ruby-fftw3
<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]
ClarusCogitatio has joined #ruby
<Macaveli> I have 2 arrays is it possible to merge the one into the other? https://www.evernote.com/shard/s389/sh/c92e3d21-b1fd-4863-a573-93c4d71ab624/67b269062725fdf5d33da26efd99f68d
tcstar has joined #ruby
jamto11 has joined #ruby
senayar_ has joined #ruby
<Hanmac> Macaveli:
<Hanmac> >> [1,2,3] + [2,3,4]
<eval-in> Hanmac => [1, 2, 3, 2, 3, 4] (https://eval.in/144339)
ClarusCogitatio has quit [Excess Flood]
kaspergrubbe has quit []
<Hanmac> >> [1,2,3] & [2,3,4]
<eval-in> Hanmac => [2, 3] (https://eval.in/144340)
<Hanmac> >> [1,2,3] || [2,3,4]
<eval-in> Hanmac => [1, 2, 3] (https://eval.in/144341)
oo_ has quit [Remote host closed the connection]
timonv has joined #ruby
<Hanmac> >> [1,2,3] | [2,3,4]
<eval-in> Hanmac => [1, 2, 3, 4] (https://eval.in/144343)
<Hanmac> Macaveli: i thik you want eigher + or |
Guest1866 is now known as yvemath
<Macaveli> I will try it :)
<Hanmac> depending if you want to allow dupplicates or not
ClarusCogitatio has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
oo_ has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
<mikecmpbll> whomp: gist your whole error
<Macaveli> I think it's not going to be this simple NoMethodError: undefined method `full_messages='
<Macaveli> going to probably read them into another one
<mikecmpbll> plus the command that produced the error, obviously.
jamto11 has quit [Ping timeout: 250 seconds]
klaut has joined #ruby
roadie` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<mikecmpbll> Macaveli: pretty sure that accepts_nested_attributes_for handles error messages for you
<Macaveli> Indeed
<mikecmpbll> is that what you're using?
roadie has joined #ruby
marr has joined #ruby
ixti has joined #ruby
Xeago has quit [Remote host closed the connection]
crzrcn has joined #ruby
oo_ has quit [Remote host closed the connection]
JensOfSw_ has joined #ruby
oo_ has joined #ruby
Xeago has joined #ruby
<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:
<Hanmac> s=Gem::Specification.find_by_name("narray"); narray_include = narray_lib = s.full_gem_path
Dr3amc0d3r|away has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Excess Flood]
JensOfSweden has quit [Ping timeout: 250 seconds]
SegFaultAX has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<Hanmac> whomp: sorry i mean you with ^^
dumdedum has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
funburn has joined #ruby
alem0lars has joined #ruby
mansi has joined #ruby
tkuchiki_ has joined #ruby
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]
skulker has left #ruby ["Leaving..."]
<gogohome> where can i learn patten match?
momigi has quit [Ping timeout: 245 seconds]
toretore has joined #ruby
whomp has quit [Ping timeout: 240 seconds]
jtdowney has joined #ruby
oo_ has quit [Remote host closed the connection]
thejoecarroll has quit [Quit: ZNC - http://znc.in]
dyoko has joined #ruby
oo_ has joined #ruby
crzrcn has joined #ruby
thejoecarroll has joined #ruby
dyoko has quit [Client Quit]
cgj has quit [Quit: leaving]
metamaterial has quit [Ping timeout: 272 seconds]
flops has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
senayar_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
senayar has joined #ruby
nvrch has quit [Quit: nvrch]
dapz has joined #ruby
maximski has joined #ruby
nvrch has joined #ruby
chipotle has quit [Quit: cya]
<apeiros> gogohome: Mastering Regular Expressions by O'Reilly
tkuchiki has joined #ruby
<apeiros> gogohome: also http://www.regular-expressions.info
gogohome has quit [Ping timeout: 250 seconds]
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'
<apeiros> >> 1.between?(1, 3)
<eval-in> apeiros => true (https://eval.in/144513)
<phutchin1> yes, what apeiros said.
<Firebox> oh thanks
<Firebox> between?
<Firebox> i see
shevy has quit [Ping timeout: 276 seconds]
psycho_one has joined #ruby
skysploit has joined #ruby
alexju has quit [Ping timeout: 276 seconds]
skysploit has quit [Changing host]
skysploit has joined #ruby
<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
imkmf has joined #ruby
danshultz has joined #ruby
freerobby has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
timgauthier has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
matchaw_ has joined #ruby
_tpavel has quit [Quit: Leaving]
doodlehaus has joined #ruby
oo_ has quit [Remote host closed the connection]
unl0ck has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
SargoDarya has left #ruby ["Fork this shit. I quit."]
matchaw has quit [Ping timeout: 240 seconds]
codabrink has joined #ruby
rmorello has joined #ruby
eka has joined #ruby
shaileshg has joined #ruby
dfinly has joined #ruby
rmorello has left #ruby [#ruby]
Companion has joined #ruby
sambao21 has joined #ruby
<Companion> Hello, I am trying to deploy a board, once starting it tells me Connection refused - connect(2) and stops
Ginfuru has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
Ginfuru has joined #ruby
matchaw_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<Companion> Currenty bumping into this: http://pastebin.com/MpQvuSEm
matchaw has joined #ruby
crzrcn has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fgo_ has quit [Remote host closed the connection]
freerobby has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cescalante is now known as ce_afk
Ginfuru has quit [Ping timeout: 252 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
eka has joined #ruby
eka has quit [Client Quit]
lbwski has joined #ruby
sparrovv has joined #ruby
crzrcn has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
sparrovv has quit [Remote host closed the connection]
matchaw_ has joined #ruby
sski has joined #ruby
failshell has joined #ruby
gaussblurinc1 has quit [Quit: Leaving.]
mengu has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 265 seconds]
OrionKissinger has joined #ruby
dfinly has quit [Quit: Farewell]
cocotton has joined #ruby
<timgauthier> Companion are you a cube?
<Companion> timgauthier, unfortunately that joke is too old :[
paulfm has quit []
<timgauthier> NEVARRR!!!!
tkuchiki has quit [Read error: Connection reset by peer]
<timgauthier> i'm a newb so i'm useless to actually help you
arietis has joined #ruby
sk87 has joined #ruby
yubrew has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
tkuchiki has joined #ruby
helpD has joined #ruby
doodleha_ has joined #ruby
mark_locklear has quit [Read error: Operation timed out]
paulfm has joined #ruby
mark_locklear has joined #ruby
mojoe has quit [Read error: Connection reset by peer]
gsvolt has quit [Quit: No Ping reply in 180 seconds.]
jamto11 has joined #ruby
mojoe has joined #ruby
coz has quit [Quit: Leaving]
gsvolt has joined #ruby
doodlehaus has quit [Ping timeout: 252 seconds]
ddd has quit [Read error: Operation timed out]
<workmad3> Companion: can you ssh into board.anininja.com manually?
gfunc has joined #ruby
snooc has joined #ruby
ddd has joined #ruby
<Companion> workmad3, I can
makara has quit [Quit: Leaving]
yubrew has joined #ruby
linojon has quit [Ping timeout: 240 seconds]
linojon has joined #ruby
Nukepuppy has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
jcs222 has quit [Ping timeout: 255 seconds]
benzrf is now known as benzrf|offline
jcs222 has joined #ruby
s2013 has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<j416> benzrf|offline: but still online, what a paradox
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
oo_ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
flughafen has quit [Ping timeout: 240 seconds]
instantaphex has joined #ruby
bluOxigen has joined #ruby
seuros1 is now known as seuros
imkmf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary_synthesizin has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
mary_synthesizin has quit [Remote host closed the connection]
alekst has joined #ruby
mojoe has quit [Ping timeout: 265 seconds]
anay has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving :)]
instantaphex has quit [Quit: leaving]
mary_synthesizin has joined #ruby
anay has joined #ruby
advorak has quit [Ping timeout: 265 seconds]
frobrob has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
momomomomo has quit [Quit: momomomomo]
cocotton has quit [Remote host closed the connection]
<timgauthier> okay I googled and I am lost.. How do i tell git to ignore a file it was tracking previously? how about the entire contents of a folder?
<timgauthier> :p j416 nice name dropping
<timgauthier> ping as many people at once as you can! ')
meatherly has joined #ruby
instantaphex has joined #ruby
mansi has joined #ruby
lxsameer has quit [Quit: Leaving]
anay has quit [Ping timeout: 250 seconds]
Mon_Ouie has quit [Ping timeout: 264 seconds]
anarang has quit [Quit: Leaving]
<workmad3> timgauthier: add it to .gitignore and then 'gim rm --cached <file>'
<workmad3> s/gim/git
<workmad3> timgauthier: basically, you need to ignore it, and then remove it from the git index
mr_snowf1ake has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<timgauthier> thanks!
<timgauthier> thats what i needed
ffranz has joined #ruby
mansi_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
fgo has joined #ruby
ce_afk is now known as cescalante
<timgauthier> and hopefully the other person knows how to merge this without losing their own data in the folders i've just ignored.
anaeem1 has joined #ruby
mansi has quit [Read error: Connection reset by peer]
<timgauthier> I just figure, I don't need a repo with his posts in it on github, just the actual templates and theme
Xeago has joined #ruby
poikon has quit [Read error: Connection reset by peer]
<timgauthier> just to confirm, _posts/**/* ignores all of the children files and folders but not the actual folder itself right?
alexju has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 255 seconds]
<workmad3> timgauthier: if there's nothing in the folder, git won't add it to the index
<timgauthier> okay
baweaver has joined #ruby
<workmad3> timgauthier: hence the use of a .gitkeep file in a folder that you otherwise want to ignore
<timgauthier> woooo, didn't know about that, sweet!
<workmad3> timgauthier: so you can always do 'touch _posts/.gitkeep; git add -f _posts.gitkeep'
<workmad3> err, missed a / there
<workmad3> but you get the idea :)
LexicalScope has quit [Ping timeout: 245 seconds]
tjbiddle has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
Deele has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
<benzrf> j416: i have a bouncer
anaeem1 has quit [Ping timeout: 265 seconds]
<timgauthier> holycrap. this is billgates!~? .gitkeep
* benzrf bounces
<timgauthier> err
roadie has quit [Ping timeout: 240 seconds]
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
blackmesa has quit [Ping timeout: 240 seconds]
<timgauthier> what is brew-cask?
ninegrid has joined #ruby
<timgauthier> I was just looking at http://www.cakebrew.com which is a gui for homebrew
crzrcn has quit [Ping timeout: 240 seconds]
<workmad3> extension for homebrew that lets you install binary apps via brew
BWStearns has quit [Ping timeout: 252 seconds]
<havenwood> timgauthier: i've been playing with cake brew too
<workmad3> timgauthier: gui? crazy
<timgauthier> so what is it? like a package manager in something like ubuntu?
<timgauthier> so like an FOSS App store?
apeiros has quit [Ping timeout: 265 seconds]
BWStearns has joined #ruby
<havenwood> timgauthier: ubuntu's package manager is apt
Avahey_ has joined #ruby
<workmad3> timgauthier: homebrew on its own is a package manager of sorts
<sweeper> protip, #homebrew is not relevant to this disucssion
<timgauthier> yeah but what i mean is that it is a similar paradim as the package manager in other distro's
<sweeper> *discussion
enebo has quit [Ping timeout: 252 seconds]
<havenwood> sweeper: hehe, made that mistake more than once :P
<havenwood> sweeper: what's the actual brew chan calleD?
alem0lars has joined #ruby
<timgauthier> lol
<sweeper> no clue, but I make cider so I hang out there sometimes :P
<timgauthier> i've used homebrew before, i think i used it to install ruby environment things
<sweeper> #macbrew or something iirc
<havenwood> sounds right
<timgauthier> lol, oh yeah, so i HAVE homebrew installed lol
<havenwood> timgauthier: brew update && brew upgrade
Ginfuru has quit [Ping timeout: 255 seconds]
marr has joined #ruby
<timgauthier> yeah wait
<shevy> you damn booze addicts
<timgauthier> what is the difference between those too
<timgauthier> and hello shevy
<shevy> die
<shevy> I mean
<shevy> hi
ixti has joined #ruby
treehug88 has joined #ruby
<timgauthier> indeed, excited for hexxus fire?~!
mansi has quit [Remote host closed the connection]
zachallett has joined #ruby
<shevy> the biggest problem with machomebrew is that
<shevy> ruby ought to be agnostic of the underlying operating system
<shevy> but it's mac only!
mansi has joined #ruby
<timgauthier> meh
<shevy> E-L-I-T-I-S-M!
<timgauthier> they're having to interact in a pretty system specific manner
<shevy> E-X-C-U-S-E-S!
<timgauthier> lol'
<timgauthier> you just sad cause you are not privlidged
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> I am excluded from the elites
<shevy> so there is only one solution
<shevy> destroy the elites
mikepack has joined #ruby
oddie has joined #ruby
enebo has joined #ruby
richy__ has quit [Quit: Page closed]
Rollabunna has quit [Remote host closed the connection]
<workmad3> shevy: what's wrong with elitism?
himsin has quit [Quit: himsin]
cout is now known as P1azma
<timgauthier> workmad3 he isn't elite, he wouldn't have the mental capacity to understand
<shevy> workmad3 it excludes people and creates separatism and apartheid
<timgauthier> see, he doesn't understand why these things are good for him
cina has quit [Ping timeout: 265 seconds]
<shevy> timgauthier I even think all distributions should be abolished
<workmad3> shevy: that's why I practice intellectual elitism... at least then the people I exclude are too stupid to realise
<shevy> that's an assumption
<shevy> like saying that ruby is better than php
<sweeper> so is your om
<sweeper> *mom
<havenwood> timgauthier: update fetches updates formula, upgrade installs them
<sweeper> a rather *large* assumption at that
ndrei has quit [Ping timeout: 252 seconds]
<shevy> sweeper hi kindergarten boss
sambao21 has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
<shevy> mac pretty much dominates the ruby world :\
<sweeper> I mean are we seriously going to have an argument because someone wrote a system-specific utility in a portable language?
mansi has joined #ruby
<workmad3> sweeper: today must be wednesday
<sweeper> I guess
geggam has joined #ruby
momomomomo has joined #ruby
SCommette has joined #ruby
<sweeper> maybe shevy would have preferred that machomebrew be written in AppleScript or ObjectiveC
<timgauthier> yes
<sweeper> he probably doesn't install any native C extensions to ruby either, ever
<timgauthier> indeed
<timgauthier> i have no clue what to install with brew anyhow
anay has joined #ruby
benwoody has joined #ruby
P1azma is now known as cout
<havenwood> timgauthier: git, wget, etc
<workmad3> timgauthier: dunno... git, chruby, vim, postgresql, irssi, mysql, neo4j....
<workmad3> timgauthier: then with brew-cask, maybe chrome, firefox, adium, spotify....
zz_jrhorn424 is now known as jrhorn424
<timgauthier> i think i used brew to git
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
shevy has quit [Ping timeout: 255 seconds]
<workmad3> heh - 'We agreed to the Qt opensource license for you.
<workmad3> If this is unacceptable you should uninstall.
Andromed_ has quit [Remote host closed the connection]
Andromed_ has joined #ruby
<timgauthier> can you install brew cask through cakebrew? :P
<workmad3> dunno
<workmad3> I don't use cakebrew
<timgauthier> how install brew-cask?
freerobby has quit [Quit: Leaving.]
<workmad3> brew tap phinze/cask; brew install brew-cask
mrchrisman has quit [Quit: Page closed]
yfeldblum has joined #ruby
<workmad3> if I wanted to mouse around a GUI to install my shit, I'd use xcode and download dmgs manually in a browser ;)
<timgauthier> I LIKE MY GUI'S MKAY?!
<timgauthier> its hard to visualize things in the commandline
<DefV> I beg to differ!
<DefV> cowsay visualises all my insults in commandline
<workmad3> timgauthier: what's to visualize? you're installing stuff!
terrellt has joined #ruby
poikon_ has joined #ruby
streetlight has joined #ruby
<workmad3> timgauthier: I'm not suggesting you use command line tools to edit layers in a PSD or something insane... ;)
mojoe has joined #ruby
<streetlight> hey, has anyone set up CI with capybara-webkit
<streetlight> ?
Bira has joined #ruby
<streetlight> i have it working well in Ubuntu 14
<streetlight> but on CentOS 6.5 I'm getting crazy issues
mercwithamouth has joined #ruby
Andromed_ has quit [Ping timeout: 240 seconds]
<streetlight> and there's no official documentation on 6.5
<workmad3> streetlight: if your tests work with phantomjs and poltergeist, I'd suggest using that tbh
poikon has quit [Ping timeout: 255 seconds]
lurch_ has quit [Quit: lurch_]
<streetlight> workmad3 I was working with that before but ran into some issues running on CentOS as well
<streetlight> i think think the issue may have to do with a redirect on our page
<streetlight> but that's just a hunch
wjlafrance has joined #ruby
<workmad3> streetlight: capybara-webkit needs a full install of Qt SDK in order to compile :)
lurch_ has joined #ruby
<workmad3> streetlight: of course, it's obvious what your issue really is....
<streetlight> I think I've installed qt, but im not sure about the sdk workmad3
<workmad3> streetlight: CentOS
<streetlight> do you know of a quick way to see if the SDK is installed on my system?
<streetlight> Here was the issue I was running into on poltergeist -- https://github.com/teampoltergeist/poltergeist/issues/121
lurch_ has quit [Client Quit]
<workmad3> not with centos... I don't use that
poikon has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
anay has quit [Remote host closed the connection]
anay has joined #ruby
poikon_ has quit [Ping timeout: 255 seconds]
<streetlight> workmad3 ah okay
yevon has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Ping timeout: 276 seconds]
momomomomo has quit [Read error: Connection reset by peer]
jeregrine has joined #ruby
momigi has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shevy has joined #ruby
anay has quit [Ping timeout: 246 seconds]
terrellt has quit [Remote host closed the connection]
Spami has joined #ruby
terrellt has joined #ruby
aganov has quit [Quit: Leaving]
zachalle_ has joined #ruby
michaelpjohnson has joined #ruby
maximski has quit []
momigi has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
bricker`1A has joined #ruby
kevinykc_ has quit [Quit: Computer has gone to sleep.]
bricker`LA has quit [Ping timeout: 252 seconds]
momigi has quit [Remote host closed the connection]
terrellt has quit [Remote host closed the connection]
lazyguru has joined #ruby
OliverJAsh has joined #ruby
apeiros has joined #ruby
zachallett has quit [Ping timeout: 252 seconds]
sdwrage has joined #ruby
terrellt has joined #ruby
fgo has joined #ruby
franzip has joined #ruby
shevy has quit [Ping timeout: 265 seconds]
vpretzel is now known as vpretzel|1424
acrussell has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
olivier_bK has quit [Read error: Operation timed out]
BubonicPestilenc has joined #ruby
BubonicPestilenc has left #ruby [#ruby]
flughafen has joined #ruby
pen has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 245 seconds]
mehlah has quit [Quit: Leaving...]
kevind has joined #ruby
Hobogrammer has joined #ruby
SCommette has quit [Quit: SCommette]
toastynerd has joined #ruby
mehlah has joined #ruby
momigi has joined #ruby
agjacome has joined #ruby
SCommette has joined #ruby
sambao21 has joined #ruby
x77686d has joined #ruby
bal has quit [Quit: bal]
jottr has quit [Ping timeout: 276 seconds]
bean has joined #ruby
JensOfSweden has joined #ruby
kitak_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
endash has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
anay has joined #ruby
tkuchiki has quit [Remote host closed the connection]
pskosinski has joined #ruby
pskosinski has quit [Remote host closed the connection]
danijoo has quit [Quit: Leaving...]
wallerdev has quit [Quit: wallerdev]
ndrei has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
Advocation has joined #ruby
ascarter has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
BWStearns has quit [Ping timeout: 250 seconds]
evenix has joined #ruby
baroquebobcat has joined #ruby
MacTrash has quit [Quit: This computer has gone to sleep]
BWStearns has joined #ruby
pskosinski has joined #ruby
snath has joined #ruby
bthesorceror has quit [Remote host closed the connection]
reset has joined #ruby
bthesorceror has joined #ruby
Martxel is now known as mrogne
mjsmith2 has joined #ruby
zoraj has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
fabrice31 has quit [Remote host closed the connection]
mrogne is now known as Martxel
poikon has quit [Remote host closed the connection]
crzrcn has joined #ruby
troyronda has joined #ruby
ck has joined #ruby
axisys has quit [Read error: Connection reset by peer]
poikon has joined #ruby
nateberkopec has joined #ruby
bean__ has joined #ruby
bean has quit [Ping timeout: 255 seconds]
flughafen has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
crzrcn has quit [Ping timeout: 240 seconds]
gigetoo has quit [Remote host closed the connection]
freerobby has joined #ruby
stan has joined #ruby
gigetoo has joined #ruby
agarie has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
binaryhat has joined #ruby
maletor has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
arietis has joined #ruby
<stan> anyone point out what i'm doing wrong? https://gist.github.com/anonymous/064a5b530b10d1e46726
LiohAu has quit [Quit: LiohAu]
shaileshg has quit [Quit: Connection closed for inactivity]
armyriad has quit [Ping timeout: 255 seconds]
<apeiros> stan: you don't pass on the block
<apeiros> stan: also, next time please paste the exception you get
jpinnix____ has quit [Ping timeout: 245 seconds]
bean__ has quit [Ping timeout: 240 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
<Mon_Ouie> He didn't get any exception (except the one he was creating because his test failed)
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> Mon_Ouie: yes he did
<apeiros> LocalJumpError: no block given (yield)
<Mon_Ouie> Oh, right
<apeiros> with that information, I wouldn't have needed to run it locally myself.
jpinnix____ has joined #ruby
<stan> how do i pass on the block?
andikr has quit [Remote host closed the connection]
<apeiros> def walk_hash(hash, &block) and walk_hash(value, &block)
bean has joined #ruby
wjlafrance has quit [Read error: Connection reset by peer]
skysploit has quit [Remote host closed the connection]
OrionKissinger has quit []
SilverKey has joined #ruby
wjlafrance has joined #ruby
ayaz has joined #ruby
haroldwu has quit [Quit: leaving]
crzrcn has joined #ruby
haroldwu has joined #ruby
haroldwu has quit [Changing host]
haroldwu has joined #ruby
charliesome has quit [Ping timeout: 276 seconds]
s2013_ has joined #ruby
s2013 has quit [Disconnected by services]
kiri has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
s2013_ is now known as s2013
phinfonet has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
gyre007___ has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
mansi has quit [Quit: Leaving...]
jtdowney has joined #ruby
kevin1999 has joined #ruby
gyre007____ has joined #ruby
arubincloud has joined #ruby
freezey has joined #ruby
jtdowney has quit [Client Quit]
dnyy has joined #ruby
kevin1999 has left #ruby [#ruby]
kevin1999 has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
alexju has joined #ruby
Andy1991 has joined #ruby
Andy1991 has left #ruby [#ruby]
cocotton has quit [Remote host closed the connection]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
ghr has quit [Read error: Operation timed out]
skysploit has joined #ruby
Darryl has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
troyronda has quit [Remote host closed the connection]
mcrmfc has quit [Quit: mcrmfc]
cocotton has joined #ruby
eataix has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
troyronda has joined #ruby
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
Guest85414______ has quit [Ping timeout: 252 seconds]
albertgrala has joined #ruby
ninegrid has quit [Ping timeout: 265 seconds]
eataix has joined #ruby
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
mikeg has joined #ruby
ikaros has quit [Quit: Ex-Chat]
ninegrid has joined #ruby
Guest85414______ has joined #ruby
<billy_ran_away> Can anyone spot the redundant operator? debugger-1.6.6/lib/ruby-debug/command.rb:184: warning: redundant nested repeat operator: /Email:<\/td>(?:\s*)?<td(?:[^>])*>([^<]*)/
stan has quit [Ping timeout: 245 seconds]
crystal77 has joined #ruby
<apeiros> billy_ran_away: (?:\s*)?
_bart has quit [Ping timeout: 252 seconds]
<apeiros> just \s*
<billy_ran_away> apeiros: Isn't the ?: mean not capturing?
<billy_ran_away> Ohhh
<billy_ran_away> I thought that one too, but it doesn't match w/out the *
fgo has joined #ruby
Lewix has joined #ruby
<billy_ran_away> apeiros: Okay, I don't need the ?
Deele has quit [Ping timeout: 255 seconds]
pietr0 has joined #ruby
<billy_ran_away> apeiros: thank you very much
<apeiros> billy_ran_away: you don't need the (?: ) either
<apeiros> \s* doesn't capture anyway
<billy_ran_away> apeiros: Oh? No shit... hmmm TIL
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> lol
<apeiros> you need () to capture
codeFiend has joined #ruby
<apeiros> so yes, anything without () does not capture anyway
<michael_mbp> hi all
<apeiros> so really, (?:\s*)? == \s*
<billy_ran_away> apeiros: I thought * did 1 or more
<apeiros> no
<apeiros> * is 0 or more
<billy_ran_away> not 0, 1 or whateva
danman_ has joined #ruby
<apeiros> + is 1 or more
<workmad3> billy_ran_away: that would be +
<apeiros> * --> {0,}
<billy_ran_away> gotcha
<apeiros> + --> {1,}
<apeiros> ? --> {0,1}
ninegrid has quit [Ping timeout: 252 seconds]
<billy_ran_away> apeiros and workmad3: My two favorite helpers in #ruby!
<michael_mbp> I'm trying to override certain aspects of Refinery::Crud.crudify without having to monkeypatch the entire method
_tpavel has joined #ruby
<billy_ran_away> apeiros and workmad3: Haven't asked a question in so long, but I still remember all the help you guys have given me over the years!
sambao21 has joined #ruby
<apeiros> glad to be of help :)
<workmad3> michael_mbp: you (probably) can't
ninegrid has joined #ruby
<michael_mbp> Refinery::Crud is a superclass of Refinery::Admin::BaseController, and is there in the ancestor chain for every controller in Refinery.
<michael_mbp> workmad3: hey David!
maestrojed has joined #ruby
<michael_mbp> workmad3: I'm doing something like this at the moment https://gist.github.com/bsodmike/d83a683846aa44eef62e
bthesorceror has quit [Remote host closed the connection]
<michael_mbp> but if you look at the entire crudify method, it's waayyy verbose than that tiny snippet that I'm replacing.
fgo has quit [Ping timeout: 252 seconds]
<workmad3> michael_mbp: am I allowed to vomit at that class_eval now? :)
bizancio has joined #ruby
bthesorceror has joined #ruby
<michael_mbp> it's much longer in Refinery itself LOL
kevin1999 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
_bart has joined #ruby
<apeiros> wtf… my ruby is broken or my brain…
<apeiros> >> "hello"[/l*/]
<eval-in> apeiros => "" (https://eval.in/144571)
<apeiros> that ain't right…
<apeiros> 20>> "hello"[/l*/]
<eval-in> apeiros => "" (https://eval.in/144572)
<apeiros> 19>> "hello"[/l*/]
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.
<apeiros> 18>> "hello"[/l*/]
<eval-in> apeiros => "" (https://eval.in/144573)
<michael_mbp> workmad3: ^^
armyriad has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
<apeiros> anyway, michael_mbp: __FILE__.match(/(vendor[\/\w\.]+)/).to_s --> __FILE__[/vendor[\/\w\.]+/]
<michael_mbp> ooh nice, ta.
lethjakman has joined #ruby
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.
nvrch has quit [Quit: nvrch]
diegoviola has joined #ruby
<bean> yo61: #puppet
pushpak has joined #ruby
<yo61> Nope, this is a ruby thing
Shidash has joined #ruby
<EminenceHC> Just look how ugly it is for shits and giggles :P https://gist.github.com/EminenceHC/8243b0053609b9c2ab8d
<yo61> There's a gem: hiera-eyaml, which is installed to /opt/puppet/lib/ruby/gems/1.9.1/gems/hiera-eyaml-2.0.1
weems has quit [Quit: Leaving]
<bean> looks like a puppet thing to me
the_f0ster has joined #ruby
<the_f0ster> I have this little ruby method which code climate says is too complex, any ideas how I Can fix it? https://gist.github.com/f0ster/d71e3e0d613cf61cc149
freezey has quit [Remote host closed the connection]
<yo61> It is an extension for hiera, which is in /opt/puppet/lib/ruby/site_ruby/1.9.1/
<workmad3> apeiros: wow, I just came across a boolean expression that I didn't know really existed...
ghr has joined #ruby
aarkerio has joined #ruby
<Hanmac> yo61 checkout $LOAD_PATH
<yo61> That's the sort of thing I'm looking for
qba73 has quit [Remote host closed the connection]
<workmad3> apeiros: someone had put (for getting a status line) - 'if foo "string" elsif !foo "other string" else "Unknown state, please contact sysadmin" end'
<aarkerio> hi!! instead of this: if foo_boolean_method?(params) == false
<Xeago> bean: it is just a custom prefix when installing ruby
<aarkerio> can I do this: if !foo_boolean_method?(params)
<aarkerio> ??
<bean> *shrug* If you google "hiera" the first thing that comes up is puppet.
<apeiros> workmad3: sensible now, since we can override !
<workmad3> apeiros: hehe
<Xeago> bean: this is most likely an issue with gem env not being properly setup
<Xeago> e.g. ruby not being properly installed
<ericwood> EminenceHC: I refactored like the first 10 lines or whatever
<ericwood> then got bored
LexicalScope has quit [Ping timeout: 255 seconds]
<yo61> Gah - underscore
<yo61> Mmm, that makes no difference:
bricker`1A has quit [Ping timeout: 246 seconds]
<EminenceHC> ericwood: hehe thanks man
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]
anay has quit [Remote host closed the connection]
nfk has joined #ruby
<ericwood> Hanmac: I didn't get that far
obs has quit [Remote host closed the connection]
dstynchula has joined #ruby
anay has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
ghr has quit [Ping timeout: 252 seconds]
goleldar has joined #ruby
ldnunes has joined #ruby
internet_user has quit []
s2013_ is now known as s2013
kitak has joined #ruby
ephemerian has quit [Quit: Leaving.]
timonv has joined #ruby
<EminenceHC> apeiros: I am not quite sure what you mean by drop the comment?
crystal77 has quit [Quit: Computer has gone to sleep.]
canton7-mac has quit [Remote host closed the connection]
freezey has joined #ruby
anay has quit [Ping timeout: 255 seconds]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
<EminenceHC> ericwood: I like those ternary operators, I can use those in all sorts of places. Why is it controversial?
zachalle_ has quit [Remote host closed the connection]
bryanjswift has quit [Quit: Computer has gone to sleep.]
<apeiros> EminenceHC: I mean that your comment tells you that your code is bad.
<apeiros> if you need to comment your code, your code is not self explaining
<EminenceHC> apeiros: Ah
<apeiros> and your comment tells you how to refactor your code.
<apeiros> your comment says # Counselors
<apeiros> great, so that condition is for when it's counselors.
<apeiros> hence your code should be: if counselors?(…)
<apeiros> voilà, no need to write a comment anymore.
<havenwood> \o/
* apeiros brb
davedev24 has quit [Read error: Connection reset by peer]
<Hanmac> EminenceHC: PS: " all_surveys.each do |survey| " ... you are looking for "@surveys = all_surveys.select do |survey|"
rm__ has quit [Remote host closed the connection]
Nogbit has joined #ruby
<havenwood> grey goop that junks up code :P
x77686d has quit [Quit: x77686d]
rm__ has joined #ruby
<EminenceHC> Hanmac: Ok, what is the difference?
NivenHuH has joined #ruby
wallerdev has quit [Quit: wallerdev]
davedev24 has joined #ruby
<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]
<Firebox> def string_length_interpolater(incoming_string)
<Firebox> "The string you just gave me has a length of #{incoming_string.length} "
<Firebox> end <———given a String as the argument, inserts the length of that String into another String:
<Firebox> how can i do?
olivier_bK has joined #ruby
razrunelord has joined #ruby
paradoja has joined #ruby
razrunelord has quit [Remote host closed the connection]
<Hanmac> boshhead: #rubyonrails ?
<havenwood> boshhead: might try #rubyonrails as well if you haven't yet
sski has quit [Remote host closed the connection]
<Hanmac> haha faster ;P
<boshhead> thanks.
reset has quit [Quit: Leaving...]
<havenwood> Firebox: the method you pasted does just that
sski has joined #ruby
yfeldblum has joined #ruby
<havenwood> Firebox: whatcha asking?
<havenwood> Hanmac: on S3E11 today
<Firebox> first.
<Hanmac> havenwood: GOOD ... what did you think about the Family of Blood and their punishment?
francisfish has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
binaryhat has quit [Quit: Leaving]
carraroj has joined #ruby
<havenwood> Hanmac: like mayflies!
jameswlane has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
<havenwood> Firebox: you put extra whitespace after the interpolation
<Hanmac> havenwood: tell me when you start watching S3E11
Martxel has quit [Quit: ¿oh?]
cocotton has quit [Remote host closed the connection]
<Firebox> i found ‘see the solution’ button.
x77686d has joined #ruby
<havenwood> Hanmac: kk
binaryhat has joined #ruby
sski has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
pskosinski has joined #ruby
djbkd has joined #ruby
bryanjswift has joined #ruby
EminenceHC has quit [Remote host closed the connection]
dapz has joined #ruby
wallerdev has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
terrellt has quit [Read error: Connection reset by peer]
weems has joined #ruby
cherry_lin has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
terrellt has joined #ruby
Spami has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
oo_ has joined #ruby
cocotton has joined #ruby
senayar has quit [Remote host closed the connection]
<Hanmac> havenwood: "we wanted to live forever .... and the doctor took care that we did ..." ;P *evil quote*
anay has joined #ruby
moritzschaefer has quit [Ping timeout: 255 seconds]
klaut has quit [Remote host closed the connection]
ndrei has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
SilkFox has quit [Read error: Operation timed out]
oo_ has joined #ruby
<Firebox> index ‘r’ vs index(‘r’) <—— which is right?
bryanjswift has quit [Quit: Bye.]
GaryOak__ has quit [Remote host closed the connection]
<apeiros> Firebox: didn't you ask that like 8h ago already? just with puts?
<apeiros> both are right
fgo has joined #ruby
<Firebox> yes, but i dont understand it correctly.
<Firebox> which is more used?
<Hanmac> it can be difficult when a block {} or do..end is added ... but currently both works
<apeiros> Firebox: depends on the context
binaryhat has quit [Quit: Leaving]
blackavr has joined #ruby
cherry_lin has joined #ruby
crystal77 has joined #ruby
senayar has joined #ruby
ACPe is now known as Lucien
<apeiros> Firebox: you see, if one was universally better, why'd there even be another?
<Hanmac> for p, puts, or print, etc... without () are more common, for others
CaptainJet has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<Firebox> ok thanks
AlexRussia has quit [Remote host closed the connection]
<Firebox> Hanmac: and apeiros
binaryhat has joined #ruby
<benzrf> if i have 1 method call, i usually leave off parens
<benzrf> i.e. 'foo.bar baz'
bizancio has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<benzrf> if im chaining and need () for one, i make them all ()
<Hanmac> >> Array
<eval-in> Hanmac => Array (https://eval.in/144632)
<benzrf> i.e. 'foo.bar(baz).quux(quuux)'
<Hanmac> >> Array 1
<eval-in> Hanmac => [1] (https://eval.in/144633)
AlexRussia has joined #ruby
<wallerdev> never use () when calling a method with no arguments
<benzrf> wallerdev++
<benzrf> i always use {} for one liners and do..end for multiline
<benzrf> for control-structure looking things i leave off the () in a do-end
<benzrf> for others i put ()
<apeiros> i always use {} when I care about the return value, I always use do..end when I don't care about return value
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> wallerdev: depends, if you have capilized functions, you need () for method without args
cek has joined #ruby
<wallerdev> { } multiline is a sin against the ruby gods
<benzrf> i dislike c-style {} for blocks so i avoid it
<benzrf> :P
<benzrf> wallerdev++
<apeiros> wallerdev: um, no.
<wallerdev> if you capitilize your methods you are also a sinner
fgo has quit [Ping timeout: 245 seconds]
<baweaver> If I'm chaining things I do
oo_ has joined #ruby
<baweaver> Opinions are opinions for a reason
<cek> needs YAML help with merging hashes. Would like to merge *defaults, but at the same time override 1 key in the hash that's merged..
<Hanmac> wallerdev: compare Array vs Array()
<apeiros> cek: did you ask in ##ruby already?
Advocation has quit [Quit: Advocation]
rokob has joined #ruby
<cek> ##ruby is only for core rails developers questions
<wallerdev> module#Array is a weird one
ktun has joined #ruby
Es0teric has joined #ruby
<apeiros> cek: but that sounds like a hardcore rails question. perfect fit then.
benzrf is now known as benzrf|offline
<Hanmac> cek since when is ##ruby for rails??
<wallerdev> lol
Advocation has joined #ruby
<wallerdev> same thing guys calm down
<cek> oh wait, that's another channel I own
<s2013> whats the problem
evenix has quit [Remote host closed the connection]
m8 has joined #ruby
<Hanmac> cek #rubyonrails vs #ruby vs #ruby-lang vs #ruby-dev
<cek> okay, the problem is that I don't know yaml construct that would allow me to do that. https://gist.github.com/celesteking/e0d8450817885586818f
<apeiros> Hanmac: ##ruby, not #ruby ;-)
evenix has joined #ruby
<cek> ##ruby to rule them all
ninegrid has quit [Ping timeout: 252 seconds]
<apeiros> ##ruby for fools, that's all
kevinykchan has joined #ruby
<Hanmac> löl i didnt know about ##ruby ;D
<cek> haters gonna hate
m8 has quit [Max SendQ exceeded]
oo_ has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
m8 has joined #ruby
<apeiros> sure. and the others gonna ridicule :)
ninegrid has joined #ruby
oo_ has quit [Remote host closed the connection]
SilkFox has joined #ruby
michaeldeol has joined #ruby
oo_ has joined #ruby
<cek> don't be envious
<wallerdev> lol
chipotle has quit [Quit: cya]
timonv_ has quit [Remote host closed the connection]
<certainty> abal repl
<certainty> -.-
Doppp has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
evenix has quit [Ping timeout: 255 seconds]
<razrunelord> Is there a way to check the platform for a particular patch of a ruby version?
<apeiros> razrunelord: RUBY_*
chrisja has joined #ruby
NivenHuH has joined #ruby
<apeiros> RUBY_VERSION and RUBY_PATCHLEVEL in particular
evenix has joined #ruby
<razrunelord> I wanna know before installing it apeiros, is there a table online?
senayar has quit [Remote host closed the connection]
<apeiros> o0
<apeiros> you don't know what patchlevel you install?
<Firebox> String#concat. <—— # is what mean?
<toretore> lol
whomp has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
<razrunelord> apeiros: I only know the version, don't the patch level unfortunately :(
armyriad has joined #ruby
testcore has joined #ruby
<apeiros> razrunelord: no idea. I guess it's defined somewhere in the source-code
dfinly has joined #ruby
oo_ has joined #ruby
<apeiros> I mean, RUBY_PATCHLEVEL comes from somewhere after all, also ruby -v needs to know it
<toretore> grep rb_set_const('RUBY_PATCHLEVEL'
<razrunelord> ok, thanks apeiros
evenix has quit [Remote host closed the connection]
aspires has joined #ruby
<Hanmac> ruby scource has a version.h
oo_ has quit [Read error: Connection reset by peer]
mojoe has joined #ruby
evenix has joined #ruby
codeFiend has joined #ruby
oo_ has joined #ruby
chipotle has joined #ruby
<apeiros> and that seems easy enough to parse
jxf has joined #ruby
ninegrid has quit [Remote host closed the connection]
ninegrid has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
evenix has quit [Ping timeout: 250 seconds]
oo__ has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
zachallett has joined #ruby
crzrcn has quit [Quit: Leaving.]
nouitfvf has joined #ruby
jottr has joined #ruby
helpD has quit [Remote host closed the connection]
pen has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
adlerdias has joined #ruby
vpretzel|1424 is now known as vpretzel|storybo
helpD has joined #ruby
oo_ has joined #ruby
cpruitt has joined #ruby
fannye has quit [Remote host closed the connection]
gancl has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
shinobi_one has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
helpD has quit [Ping timeout: 240 seconds]
<Firebox> 'RubyMonk Is Pretty Brilliant'.match(/ ./, 9) <—— what mean ’9’?
helpD has joined #ruby
alem0lars has quit [Quit: Going AFK...]
oo_ has joined #ruby
ng-ralph has joined #ruby
ninegrid has quit [Remote host closed the connection]
ninegrid has joined #ruby
beef-wellington has joined #ruby
<Firebox> rubymonk sites is very good.
agarie has joined #ruby
jamto11 has quit [Remote host closed the connection]
ng-ralph has left #ruby [#ruby]
SilkFox has quit [Ping timeout: 255 seconds]
SilverKey has quit [Ping timeout: 246 seconds]
SilverKe_ has joined #ruby
agarie has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 264 seconds]
oo_ has quit [Ping timeout: 240 seconds]
SilverKe_ has quit [Max SendQ exceeded]
ng-ralph has joined #ruby
agarie has joined #ruby
ng-ralph has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
ng-ralph has joined #ruby
iceden has joined #ruby
codeFiend has quit [Quit: codeFiend]
gbt has joined #ruby
cescalante is now known as ce_afk
ng-ralph has quit [Client Quit]
jxf has quit [Ping timeout: 255 seconds]
papercode has joined #ruby
KanKava has joined #ruby
ng-ralph has joined #ruby
jprovazn has joined #ruby
Musashi1 has joined #ruby
wjlafrance has quit [Quit: Leaving]
paulfm has quit []
oo_ has joined #ruby
paulfm has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
VictorBjelkholm has quit [Quit: Leaving]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
ndrei has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
blackmesa has joined #ruby
ck is now known as flughafen
senayar has joined #ruby
<flughafen> that's right everybody, flughafen is here
<flughafen> >> puts "yeaaaaaah"
<eval-in> flughafen => yeaaaaaah ... (https://eval.in/144644)
<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.
<Firebox> and c
rdark has quit [Ping timeout: 252 seconds]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_bart has quit [Quit: leaving]
treehug88 has quit [Ping timeout: 240 seconds]
<apeiros> Firebox: emphasis on "other"
<Firebox> c and java
<apeiros> if all languages were the same, there would not be a need for different languages
tjsousa has quit [Remote host closed the connection]
<Firebox> oh i see.
<apeiros> Firebox: yes, c and java. as in: not ruby.
<Firebox> your saying is right
tjsousa has joined #ruby
blaxter_ has joined #ruby
mojoe has quit [Remote host closed the connection]
blaxter_ has quit [Client Quit]
fgo has joined #ruby
kevind has quit [Quit: kevind]
alexju has quit [Ping timeout: 276 seconds]
sailias has quit [Quit: Leaving.]
<yxhuvud> apeiros: I'd argue the opposite, that there would be plenty need for different languages if all languages were the same ;)
ninegrid has quit [Ping timeout: 240 seconds]
diegoviola has quit [Ping timeout: 250 seconds]
klaas has quit [Remote host closed the connection]
<Xeago> Firebox: java does not consider "" to be false
rdgawdzi has quit [Quit: leaving]
alexju has joined #ruby
<Xeago> at least not in if conditions, that is not allowed since jdk1.1
ninegrid has joined #ruby
<Firebox> oh then what is “” in java?
<Firebox> Xeago:
treehug88 has joined #ruby
<Firebox> true?
<Xeago> if ("") is a syntax error in java
<Firebox> oh
<Firebox> i see.
<Firebox> thanks
<Xeago> there might be some funky stuff where you do something like new Boolean("")
<Xeago> dno
relix has joined #ruby
<Xeago> s/jdk1.1/the java version distributed with jdk1.1/
djbkd has quit [Remote host closed the connection]
aspires has quit []
fgo has quit [Ping timeout: 240 seconds]
senayar_ has joined #ruby
<Xeago> Java doesn't do implicit type conversions
<Xeago> and an if expression expects a boolean
SCommette has quit [Quit: SCommette]
Xeago has quit [Remote host closed the connection]
cescalante is now known as ce_afk
Ginfuru has quit [Quit: Computer has gone to sleep.]
pel_daniel has joined #ruby
helpD has quit [Remote host closed the connection]
Ginfuru has joined #ruby
imkmf has joined #ruby
IceDragon has joined #ruby
helpD has joined #ruby
benwoody has quit [Quit: benwoody]
pu22l3r has joined #ruby
Advocation has quit [Quit: Advocation]
carlyle has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
albertgrala has joined #ruby
senayar has quit [Ping timeout: 276 seconds]
x77686d has quit [Quit: x77686d]
oo_ has joined #ruby
<apeiros> yxhuvud: heh, ok
ukd1 has joined #ruby
<apeiros> you've got a point there :)
wjlafrance has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
<Firebox> [1, 2, 3, 4, 5][-5] is two-dimensional array in c but [-5] is index in ruby. right?
robbyoconnor has quit [Ping timeout: 240 seconds]
Ginfuru has quit [Ping timeout: 246 seconds]
jxf has joined #ruby
Alina-malina has joined #ruby
helpD has quit [Ping timeout: 240 seconds]
<apeiros> Firebox: no
OliverJAsh has quit [Quit: Connection closed for inactivity]
<Firebox> what mean?
claymore has joined #ruby
<apeiros> [1, 2, 3, 4, 5][-5] is calling [] with arg -5 on [1, 2, 3, 4, 5], which is a one-dimensional array
<apeiros> >> [1, 2, 3, 4, 5][-5]
<eval-in> apeiros => 1 (https://eval.in/144664)
<Firebox> ok that is in ruby.
<apeiros> ah, sorry, missed the "in C"
<Firebox> ok i see.
<apeiros> in that case - above explanation is what the same expression means in ruby :)
oo__ has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
yfeldblu_ has joined #ruby
omosoj has joined #ruby
dapz has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
<Firebox> if i study monksites, then i know ruby all?
stormbytes has joined #ruby
Aaaal has quit [Quit: Aaaal]
helpD has joined #ruby
rezzack has joined #ruby
Alina-malina has joined #ruby
tstark has joined #ruby
<tstark> welcome
shock_one has quit [Ping timeout: 264 seconds]
beef-wellington has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
flughafen has quit [Ping timeout: 276 seconds]
zorak has joined #ruby
arietis has joined #ruby
cocotton has quit [Remote host closed the connection]
claymore has quit [Client Quit]
claymore has joined #ruby
benzrf|offline is now known as benzrf
paradoja has quit [Ping timeout: 276 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
oo__ has quit [Ping timeout: 250 seconds]
alexju has quit [Remote host closed the connection]
cocotton has joined #ruby
pen has quit []
kilk_ has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
claymore has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 245 seconds]
ninegrid has quit [Ping timeout: 245 seconds]
claymore has joined #ruby
aspires has joined #ruby
oo_ has joined #ruby
sguselnikov has joined #ruby
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Ping timeout: 240 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pidu has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jnor has joined #ruby
<tstark> exit
tstark has quit [Quit: leaving]
ninegrid has joined #ruby
michaeldeol has joined #ruby
seuros has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 276 seconds]
cocotton has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 250 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
aspires has quit []
bthesorceror has quit [Remote host closed the connection]
dapz has quit [Client Quit]
aspires has joined #ruby
dapz has joined #ruby
x77686d has joined #ruby
dapz has quit [Client Quit]
rokob has quit [Remote host closed the connection]
rokob has joined #ruby
Ginfuru has joined #ruby
relix has joined #ruby
Ginfuru has quit [Client Quit]
oo_ has joined #ruby
Speed has joined #ruby
dapz has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
codeFiend has quit [Quit: codeFiend]
oo_ has joined #ruby
dapz has quit [Client Quit]
oo_ has quit [Read error: Connection reset by peer]
Kedare has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
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]
<Firebox> ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0]
razrunelord has joined #ruby
SubSignal has quit [Remote host closed the connection]
petertretyakov has joined #ruby
ktosiek has quit [Ping timeout: 245 seconds]
bthesorceror has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
Martxel has joined #ruby
senayar has joined #ruby
flughafen has joined #ruby
<Firebox> i m using modern ruby?
oo_ has joined #ruby
<apeiros> Firebox: how did you install ruby?
oo__ has quit [Read error: Connection reset by peer]
ninegrid has quit [Ping timeout: 255 seconds]
<Hanmac> Firebox: 2.1.1 is last release, i for myself use 2.2.dev
ua has joined #ruby
<mozzarella> LIVING ON THE EDGE
oo__ has joined #ruby
ninegrid has joined #ruby
chad59 has joined #ruby
<workmad3> Hanmac: oh, while you're around... any suggestions on solving compilation issues with ruby readline on ubuntu 14.04?
<Hanmac> i updated to ubuntu14.04 last week ... Xorg is currently using 4times!!! the RAM of my firefox !!! oO
oo__ has quit [Remote host closed the connection]
<Hanmac> workmad3: hm i dont know, i always compile ruby-trunk and it works for me ...
oo__ has joined #ruby
<Hanmac> afk eating
hellome has joined #ruby
<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?
<Firebox> no
<Firebox> yes
<apeiros> Firebox: don't know what package brew puts the docs in.
<Firebox> how can i install ruby?
vpretzel_ has joined #ruby
joelteon has quit [Ping timeout: 258 seconds]
tobiasvl has quit [Ping timeout: 258 seconds]
aetaric has joined #ruby
Snarkz has quit [Quit: Textual IRC Client: www.textualapp.com]
<segfalt> apeiros: If I undefine new, how can my factory create an instance, I use new currently.
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tobiasvl has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
sguselnikov has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby
carlyle has quit []
fgo has joined #ruby
senayar has quit [Remote host closed the connection]
<Firebox> help me.
grzywacz has quit [Read error: Operation timed out]
senayar has joined #ruby
vpretzel|hotfix has quit [Ping timeout: 255 seconds]
petertretyakov has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 240 seconds]
tjsousa has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
joelteon has joined #ruby
vpretzel_ has quit [Quit: Adios!]
alexju has joined #ruby
LostDatagram has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
mrmargolis has joined #ruby
oo_ has joined #ruby
advorak has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
albertgrala has quit [Ping timeout: 245 seconds]
flops has quit [Ping timeout: 252 seconds]
LostDatagram has quit [Client Quit]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
freezey has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
benzrf|offline is now known as benzrf
vpretzel has joined #ruby
LostDatagram has joined #ruby
bryanjswift has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> segfalt: alias new, then make the alias private
<benzrf> or better yet, just make new private
helpD has quit [Remote host closed the connection]
<benzrf> >> class Object.class; private :new; end; Object.new
<eval-in> benzrf => /tmp/execpad-269596718ce0/source-269596718ce0:2: syntax error, unexpected ';', expecting :: or '[' or '.' ... (https://eval.in/144676)
<benzrf> yo what
<canton7> yup, using private_class_method :new, like my link said :P
oo_ has quit [Ping timeout: 250 seconds]
<benzrf> oh
<benzrf> :P
<heftig> you could also use allocate and then configure the instance you allocated
<benzrf> i didnt see that
<heftig> (allocate won't call initialize)
<segfalt> canton7: Yes, that worked fine, thanks a bunch. Now I need to fix my unit tests which rely on that heavily… lol.
_tpavel has quit [Quit: Leaving]
<apeiros> segfalt: allocate + initialize
<apeiros> or as benzrf suggests, alias new before and privatize it
albertgrala has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
<benzrf> alias is more like duplicate isnt itman
<benzrf> *it
<Firebox> brew install ruby <—— is it okay?
<benzrf> wow that's a long dash
ClarusCogitatio has quit [Ping timeout: 240 seconds]
ninegrid has joined #ruby
<LastWhisper> rvm use > brew install
<LastWhisper> ----
<LastWhisper> wow
<LastWhisper> how did he do such a dashing dash
SCommette has joined #ruby
ClarusCogitatio has joined #ruby
alem0lars has joined #ruby
<heftig> LastWhisper: two em dashes (—)
nanoyak has quit [Quit: Computer has gone to sleep.]
ClarusCogitatio has quit [Excess Flood]
ClarusCogitatio has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Client Quit]
Darryl has quit [Quit: Connection closed for inactivity]
sambao21 has joined #ruby
<heftig> though there's also ⸺, a two-em dash, and ⸻, a three-em dash
dapz has joined #ruby
dunckr has joined #ruby
acrussell has quit [Quit: Leaving.]
<Firebox> i will stop ruby because i dont know the method of installing ruby on mac.
carraroj has quit [Ping timeout: 276 seconds]
evenix has joined #ruby
LostDatagram has quit [Quit: Bye :P - znc.in]
<Firebox> apeiros:
<Firebox> i will be stopped. perhaps.
<segfalt> Firebox: Install rvm. Install ruby using rvm.
troyronda has joined #ruby
afex has quit [Ping timeout: 252 seconds]
<Firebox> segfalt: give me sites.
skaflem has quit [Quit: Leaving]
ClarusCogitatio has quit [Excess Flood]
LastWhisper has quit [Ping timeout: 240 seconds]
<segfalt> Firebox: http://lmgtfy.com/?q=rvm&l=1
<Firebox> thanks
LostDatagram has joined #ruby
ClarusCogitatio has joined #ruby
<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.
pu22l3r has joined #ruby
<lectrick> --with-mysql-lib etc.
SegFaultAX has joined #ruby
ClarusCogitatio has joined #ruby
binaryhat has quit [Quit: Leaving]
sparrovv has quit [Remote host closed the connection]
michaeldeol has joined #ruby
helpD has joined #ruby
kpshek has quit []
SCommette has quit [Quit: SCommette]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
cocotton has joined #ruby
oo_ has joined #ruby
bluOxigen has joined #ruby
razrunelord has quit [Remote host closed the connection]
kpshek has joined #ruby
<Firebox> http://octopress.org/docs/setup/rvm/ <—— is it right?segfalt
<segfalt> Firebox: What was wrong with the main RVM page?
sambao21 has quit [Quit: Computer has gone to sleep.]
ClarusCogitatio has quit [Ping timeout: 255 seconds]
<Firebox> \curl -sSL https://get.rvm.io | bash -s stable
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
ClarusCogitatio has joined #ruby
bcavileer has quit [Ping timeout: 252 seconds]
r0ast has joined #ruby
Guest85414______ has quit [Ping timeout: 245 seconds]
cocotton has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
claymore has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 245 seconds]
soheil has quit [Remote host closed the connection]
kevind has joined #ruby
bcavileer has joined #ruby
Guest85414______ has joined #ruby
cocotton has joined #ruby
claymore has joined #ruby
gr33d has quit [Ping timeout: 240 seconds]
troyronda has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
crystal77 has quit [Quit: Computer has gone to sleep.]
ktosiek has joined #ruby
ukd1 has quit [Remote host closed the connection]
momomomomo has joined #ruby
ClarusCogitatio has quit [Ping timeout: 265 seconds]
s2013_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has quit [Disconnected by services]
s2013_ is now known as s2013
cocotton has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
ClarusCogitatio has joined #ruby
sepp2k has joined #ruby
r0ast has quit []
<Firebox> segfalt: i installed rvm then how can i install ruby?
afex has joined #ruby
jrhorn424 is now known as zz_jrhorn424
nanoyak has joined #ruby
momomomomo has quit [Client Quit]
flughafen has quit [Ping timeout: 246 seconds]
mrmargolis has quit [Remote host closed the connection]
momomomomo has joined #ruby
<Firebox> rvm install 2.1.1 <—— is it right?
<segfalt> Firebox: They have some good documentation here: http://rvm.io/rvm/basics
<segfalt> That looks right, assuming you want to isntall Ruby 2.1.1.
wallerdev has quit [Quit: wallerdev]
ClarusCogitatio has quit [Ping timeout: 245 seconds]
mforrester has quit [Remote host closed the connection]
<Firebox> 1.9.3 is stable version of ruby?
<s2013> does ruby support multi threading?
<Firebox> segfalt:
oo_ has quit [Ping timeout: 265 seconds]
soheil has joined #ruby
<segfalt> Firebox: According to https://www.ruby-lang.org/en/downloads/, Ruby 2.1.1 is considered the current stable release.
vlad_starkov has quit []
<Firebox> ok thanks then i will rvm install 2.1.1
<s2013> if i have a file with lets say 5million words
<Firebox> ok
dblessing has quit [Quit: dblessing]
<s2013> and i want to find the frequency of each word, i assume i put them in a hash table
<s2013> would it be faster/recommended to open up 2 threads to calculate it?
<segfalt> s2013: Ruby supports multi-threading with the Thread class, but they're no native OS threads until Ruby 2.0, if I recall correctly.
newUser1234 has joined #ruby
<segfalt> If your OS puts threads into different processors, it will likely be faster once the file is loaded into memory.
dunckr has quit []
benzrf is now known as benzrf|offline
<s2013> i think i have 4 processors
streetlight has quit [Ping timeout: 250 seconds]
<segfalt> s2013: Have you worked with Threads before?
<s2013> but anyways back to the q about doing the word frequency.. how would it work? years ago i believe. i learned about them in class atleast
sgen has joined #ruby
<s2013> but that was with c++
<Firebox> ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
<Firebox> thanks segfalt
maletor has joined #ruby
<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]
oo_ has joined #ruby
<banister> atmosx jesus christ, your code
<atmosx> banister: it's old
<segfalt> taaaaabs
<segfalt> :P
<s2013> is it cause of the tabs banister
<atmosx> nah, that's my old vim, I use tabs...
<s2013> cool. thanks
<segfalt> I never knew ruby had for X in Y.
<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> banister: it's only 10 months old?
<atmosx> omg
crystal77 has joined #ruby
<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.
<Firebox> puts RUBY_VERSION ——> 2.1.1 really thanks segfalt
chad59 has joined #ruby
<Firebox> today is very hard
<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?
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<baweaver> confreaks, search for pry
x1337807x has joined #ruby
<baweaver> watch all the videos
<_sillymarkets> thanks enebo
<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.]
<segfalt> Installed Windows 3.1 from floppies.
Arkaniad|Laptop has quit [Max SendQ exceeded]
<katlogic> Yo kids get off my lawn.
<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?
<redondos> yes
<DouweM> redondos: array.inject(hash) { |hash, key| hash[key] }
<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
imkmf has quit [Quit: Textual IRC Client: www.textualapp.com]
<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.
<lectrick> segfalt: You missed out on a pretty cool game. http://en.wikipedia.org/wiki/Dark_Castle
<atmosx> 56k
soheil has joined #ruby
<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
jheg_ has quit [Quit: jheg_]
armyriad has quit [Ping timeout: 252 seconds]
<atmosx> I played SWOS using a dos-emulator
<atmosx> on 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.
<atmosx> canton7 segfalt yeap :-)
lkba has joined #ruby
<Firebox> segfalt: see it.
<lectrick> segfalt: And when it did, it usually ran into IRQ and DMA conflicts. :O
<segfalt> Firebox: Are we going to get credit when you take down some poor guys wordpress website? :-(
<Hanmac> havenwood: ! did you watch S3E11 yet?
<atmosx> ronin-ruby?
metamaterial has joined #ruby
<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 :)
kevind has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<Hanmac> workmad3: did you need a new DoctorWho - T-Shirt? http://shirtoid.tumblr.com/post/40792238625/may-the-fez-be-with-you-is-available-at-ian
benweint has joined #ruby
chrisseaton has quit []
ukd1 has quit [Quit: Leaving...]
cocotton has joined #ruby
<baweaver> I look like Tennant apparently.
oo_ has quit [Remote host closed the connection]
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
<segfalt> Hanmac: Totally buying that shirt for my girlfriend right now. Thanks. :-)
cocotton has quit [Read error: Connection reset by peer]
<workmad3> Hanmac: I think this is gonna be my next purchase tbh :) http://www.shotdeadinthehead.com/silent-scream-mug.html
cocotton has joined #ruby
oo_ has joined #ruby
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
<segfalt> or it's out of stock.
chrisseaton has joined #ruby
* Hanmac never drink coffee ... it might cause my imagination to make a bufferoverflow ;P
treehug88 has joined #ruby
<metamaterial> lol
SegFaultAX has quit [Excess Flood]
<metamaterial> caffiene gives my tummy a net split )=
nanoyak has quit [Quit: Computer has gone to sleep.]
Jon30 has joined #ruby
Jon30 has quit [Changing host]
Jon30 has joined #ruby
zarubin has joined #ruby
nisstyre has joined #ruby
SegFaultAX has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
mehlah_ has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
mikecmpbll has joined #ruby
IcyDragon is now known as IceDragon
grzywacz has joined #ruby
nateberkopec has joined #ruby
<s2013> is there a better way to do that?
jitsii has joined #ruby
maestrojed has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
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.
bean has quit [Quit: Textual IRC Client: www.textualapp.com]
<s2013> i guess
<ua> yeah like using ruby at all
<ua> lol
<s2013> why is ruby so slow?
<mikecmpbll> it's not "so slow".
<ua> mirah.org if youre into jruby
<mikecmpbll> but it's an interpreted language.
senayar has quit [Ping timeout: 240 seconds]
<s2013> well so is python
<s2013> python is much faster from what ive seen
<ua> or C + fft
<ua> s2013, not really
<s2013> fft or ffi
<canton7> depending on whose benchmarks you trust, ruby and python are about the same speed
<ua> erm ffi *
<s2013> cause python is used for data mining and analyzing
psmolen has quit [Ping timeout: 276 seconds]
<atmosx> s2013: ok, then use python
<ua> s2013, nope python isnt fast at all
<canton7> I'd be interested to see which is quicker in your scenario
<ua> it just has wrappers to lots of scientific libraries
<ua> python is on top of code in C and fortran
<ua> as a glue
<canton7> python is also easy for non-programmers to write, hence it's popular with the scientist types
<s2013> atmosx, i do use python but i like ruby much better
<atmosx> s2013: yeah but if python is faster you should python.
<mikecmpbll> heh
<s2013> well i use rails mostly anyways
<atmosx> s2013: write a clone in python
<baweaver> Django?
<s2013> its not an attack on ruby. ive been using ruby and i like ruby
<s2013> django is meh
<baweaver> the speed difference isn't enough to be concerned with
Speed has left #ruby ["WeeChat 0.4.3"]
<atmosx> s2013: it's a stupid argument that has been discussed time and again here and elsewhere and canton7 gave the only answer which applies
<baweaver> if speed is really an issue, interpreted languages are a bad idea period.
<s2013> well this debate started simply because i asked if giving hash default value would be faster
danshultz has quit [Remote host closed the connection]
<canton7> no, it started when you asked why ruby was "so slow"
<mikecmpbll> no it started because you said "why is ruby so slow?"
<mikecmpbll> heh
<canton7> snap!
afex has quit [Ping timeout: 245 seconds]
<atmosx> baweaver: was about to say the same thing
bthesorceror has quit [Remote host closed the connection]
<mikecmpbll> ^5
<baweaver> yeah, them're fightn words
danshultz has joined #ruby
Tricon has joined #ruby
<s2013> mikecmpbll, no because someone said if speed is a concern then ruby isnt the right one. which is why i asked why is it so slow
<s2013> because thats like the 3rd time today someone said the same thing on this channel
jnor has quit [Quit: WeeChat 0.4.3]
<s2013> i was mainly concerned about relative speed between what i wrote and what someone suggested
<baweaver> about to, I just saw that
danshultz has quit [Read error: Connection reset by peer]
<atmosx> s2013: there's a benchmark method, use it and find out
Soda has joined #ruby
<mikecmpbll> fair enough.
<baweaver> require 'benchmark'
<baweaver> Benchmark.measure { code here }
<baweaver> done
<baweaver> or....
<s2013> yes i know about benchmark. i was asking more from a computational point of view. anyways its fine. thanks
<baweaver> shameless plug
<mikecmpbll> :)
bryanjswift has joined #ruby
end_guy has quit [Ping timeout: 272 seconds]
psmolen has joined #ruby
afex has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<arubincloud> Do you really need 10K random letters in production code?
funburn has quit [Quit: funburn]
popl has quit [Ping timeout: 240 seconds]
<baweaver> ....wat?
advorak has quit [Quit: Ex-Chat]
advorak has joined #ruby
advorak has quit [Client Quit]
<baweaver> why?
<s2013> no arubincloud i need 100k
nanoyak has joined #ruby
mikeg has quit [Remote host closed the connection]
<mikecmpbll> :D
benweint has quit [Quit: Computer has gone to sleep.]
zachallett has quit [Remote host closed the connection]
<atmosx> baweaver: interesting.
Shidash has quit [Quit: Leaving.]
Shidash1 has joined #ruby
<arubincloud> s2013: Forget about the performance argument, h = Hash.new(0) is cleaner.
<arubincloud> And use h[l] += 1.
<arubincloud> Then you can get rid of the nil check.
<baweaver> File.open('lorem.txt', 'r').readlines.split.sample(100_000)
<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
<mikecmpbll> ;)
<baweaver> [2] pry(main)> Benchmark.measure { a = 100000.times.map{ ('a'..'z').to_a.sample } }.real
<baweaver> [3] pry(main)> Benchmark.measure { letters = ('a'..'z').to_a; a = 100000.times.map{ letters.sample } }.real
<baweaver> => 0.906166
<baweaver> => 0.015685
<baweaver> a lot faster
<lectrick> there is no debate. the one you like the best is the best. sometimes you outgrow it, and end up liking another one.
<lectrick> s2013: ^
<mikecmpbll> +1 baweaver
alvaro_o has joined #ruby
Shidash1 has quit [Ping timeout: 246 seconds]
<baweaver> except....
instantaphex has quit [Quit: leaving]
<baweaver> [4] pry(main)> Benchmark.measure { letters = ('a'..'z').to_a; letters.sample(100_000) }.real
<baweaver> => 1.7e-05
<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
gbt has quit [Quit: Linkinus - http://linkinus.com]
<baweaver> whoopsie
<mikecmpbll> ...
<baweaver> that takes things out
<mikecmpbll> lmao
<lectrick> and even something like naming a new symbol is technically a side-effect, because it modifies the symbol table
ldnunes has quit [Quit: Leaving]
<baweaver> Mate, I have a 4300 test suite running in 1:30
<baweaver> use freeze if you're allergic to state
<lectrick> baweaver: High five. Fast test suites are the fucking best.
sailias has joined #ruby
<lectrick> baweaver: Yep, freeze peppers all my complex object globals, such as class constants.
<benzrf> test suites seem like a good idea for bigger projects o=
<benzrf> especially for leveraging git bisectr
<benzrf> *bisect
<benzrf> :D
<atmosx> baweaver: usign spork with DRb?
<baweaver> it's integrated in Rails4
<apeiros> baweaver: um, that doesn't work the way you want
<apeiros> >> letters = ('a'..'z').to_a; letters.sample(100_000).size
<eval-in> apeiros => 26 (https://eval.in/144716)
<baweaver> I noticed
fgo has quit [Ping timeout: 240 seconds]
<baweaver> see above, the whoopsie part
<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]
Valesk has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
nanoyak has joined #ruby
shadoi has quit [Ping timeout: 265 seconds]
blackmes1 has quit [Ping timeout: 245 seconds]
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.]
<s2013> Hanmac, did you write it? https://gist.github.com/ss2k/cf2a6a38ecdd60e9823c i forgot
<s2013> but im 90% sure it was you or havenwood
crystal77 has quit [Quit: Computer has gone to sleep.]
* Nilium uses burritos.
<s2013> someday i wanan be able to write code like that for fun
<Hanmac> hm yeah it looks similar to my code
<bricker> apeiros: "they" is technically incorrect when referring to a single person, but I don't know how grammatically correct you need to be
<s2013> yeah grammatically its incorrect
<s2013> but practically its correct
<apeiros> bricker: afaik you're mistaken
_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]
<eval-in> apeiros => [541381100, 541381080] (https://eval.in/144747)
<crucify_me> thanks apeiros yeah so if I change this problem to @str = String.new and run it, it works fine.
<apeiros> crucify_me: and no, variables are *not* objects
<apeiros> variables reference objects.
jobewan has quit [Read error: Connection reset by peer]
Avahey_ has quit [Quit: Connection closed for inactivity]
jsutch has joined #ruby
<apeiros> ugh, don't use String.new. just ""
sambao21 has quit [Quit: Computer has gone to sleep.]
<crucify_me> apeiros: I said a variable is also an obj. reference above.
<apeiros> crucify_me: ok. I misunderstood because of your silly abbreviation.
<crucify_me> sorry.
<apeiros> freeze works on the object itself
mansi has quit [Remote host closed the connection]
<apeiros> it doesn't work on a reference. no method does. all methods are invoked on the actual object.
MarianM has joined #ruby
sambao21 has joined #ruby
mansi has joined #ruby
<apeiros> referencing in ruby is really only a thing variables do
<Stalkr_> When I run this test http://pastie.org/9128982, why do I suddenly receive a no inserted cassette error? http://pastie.org/pastes/9128986/text
<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]
<eval-in> apeiros => [540799380, 540799380, "hi there"] (https://eval.in/144764)
<apeiros> as you can see, still the same object, but now with different content
<apeiros> i.e., the object was mutated
aspires has quit []
<crucify_me> ok thanks apeiros .. working on it.
momigi has quit [Remote host closed the connection]
<benzrf> crucify_me: think about it this way
<apeiros> you can also spot that + doesn't mutate by having to assign the result somewhere
<benzrf> crucify_me: think about the phrase 'my laptop'
<apeiros> >> a = "hi "; a + "there"; a
<eval-in> apeiros => "hi " (https://eval.in/144765)
<benzrf> that's like a variable
arietis has joined #ruby
<benzrf> it's a name that refers to something
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> >> a = "hi "; b = a + "there"; b
<eval-in> apeiros => "hi there" (https://eval.in/144766)
<benzrf> there are 2 things you can do
<benzrf> 1 is to change the thing the name refers to
<benzrf> i.e. put a sticker on the laptop
<benzrf> 2 is to change what the name refers to
dayepa has quit [Ping timeout: 246 seconds]
<benzrf> i.e. get a new laptop
<benzrf> in the second case, the original laptop still exists and hasnt been changed
<benzrf> but not 'my laptop' refers to something doff
<benzrf> *diff
<benzrf> 'mutation' is the former
<benzrf> 'assignment' is the latter
troyronda has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
OrionKissinger has quit []
SilkFox has quit [Ping timeout: 246 seconds]
OrionKissinger has joined #ruby
zommi has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<crucify_me> benzrf: thanks for your time working on it.
Loryto2014 has joined #ruby
mjsmith2 has quit [Client Quit]
kyb3r_ has joined #ruby
dayepa has joined #ruby
djbkd has quit [Remote host closed the connection]
Aaaal has joined #ruby
tris has quit [Quit: Leaving]
jottr has joined #ruby
Firebox has quit [Ping timeout: 240 seconds]
james_d_h has joined #ruby
Soda has quit [Quit: Soda]
ng-ralph has quit [Remote host closed the connection]
nzbb has joined #ruby
paulfm has quit [Ping timeout: 240 seconds]
NivenHuH has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
aspires has joined #ruby
Nahra has quit [Quit: leaving]
troyronda has joined #ruby
wjlafrance_ has quit [Quit: This computer has gone to sleep]
simono has joined #ruby
baweaver has joined #ruby
Nogbit has quit [Read error: Operation timed out]
EminenceHC has joined #ruby
nzbb has quit [Quit: nzbb]
nzbb has joined #ruby
djbkd has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
bousquet has joined #ruby
james_d_h has quit [Quit: leaving]
sparrovv has quit [Remote host closed the connection]
senayar has joined #ruby
<dorei> i think i've found a bug :p
<dorei> >> ('Α'..'Ω').include? 'Χ'
<eval-in> dorei => false (https://eval.in/144770)
<dorei> that's not correct, it should be true
<dorei> but
<EminenceHC> I am trying to get this method to return a survey object which has the correct record attached. https://gist.github.com/EminenceHC/3ff2c4c6acdbaab72645 How can I accomplish this?
<dorei> >> 'Χ' =~ /[Α-Ω]/
<eval-in> dorei => 0 (https://eval.in/144771)
jxf has joined #ruby
<dorei> regexps work fine with utf8 strings, unlike string methods :(
endash has joined #ruby
Nahra has joined #ruby
Milly_Bays has joined #ruby
mehlah_ is now known as mehlah
Azure has quit [Quit: Blue Sky Fish]
chrisseaton has quit []
Stalkr_ has quit [Quit: Leaving...]
senayar has quit [Ping timeout: 240 seconds]
<apeiros> dorei: that's not a bug
eka has quit [Read error: Connection reset by peer]
tacos1de has quit [Ping timeout: 272 seconds]
<apeiros> >> ('Α'..'Ω').cover? 'Χ'
<eval-in> apeiros => true (https://eval.in/144772)
<dorei> apeiros: shouldnt it be consistent?
<apeiros> dorei: ^
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.
combusean has joined #ruby
<apeiros> >> a = "hi "; b = a; a += "there"; a
<eval-in> apeiros => "hi there" (https://eval.in/144773)
<apeiros> >> a = "hi "; b = a; a += "there"; b
<eval-in> apeiros => "hi " (https://eval.in/144774)
arubincloud has quit []
fgo has joined #ruby
bousquet has quit []
Azure has joined #ruby
wjlafrance has joined #ruby
ffranz has quit [Ping timeout: 250 seconds]
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... :)
caleb_io has quit [Ping timeout: 246 seconds]
r0ast has quit [Ping timeout: 265 seconds]
marr has quit []
jamto11 has joined #ruby
ringo2 has quit [Quit: Page closed]
afex has joined #ruby
Nahra has quit [Remote host closed the connection]
danman_ has quit [Quit: danman_]
jitsii has quit [Read error: No route to host]
iceden has joined #ruby
skysploit has quit [Remote host closed the connection]
Es0teric has joined #ruby
Nahra has joined #ruby
hermanmunster has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
crucify_me has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
Avahey_ has joined #ruby
qhartman has quit [Remote host closed the connection]
<Firebox> `bundle install` -bash: Could: command not found <--- how can i do?
ghr has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<apeiros> "Could"?
<apeiros> did you literally type `bundle install`, including the backticks?
<Firebox> yes do you know it?
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Firebox> yes
<Firebox> `bundle install`
<apeiros> um, yeah, don't
crystal77 has joined #ruby
<apeiros> the backticks are there to delimit the code in the irc message
<Firebox> -bash: Could: command not found <--- how can i do? [08:35] == ghr [~ghr@05427806.skybroadband.com] has joined #ruby
<apeiros> they are not part of the command.
jamto11 has quit [Remote host closed the connection]
jcs222 has quit [Quit: leaving]
<mg^^> Using backticks accidentally could lead to some very interesting effects... some of which may be undesirable.
spider-mario has quit [Remote host closed the connection]
pel_daniel has left #ruby [#ruby]
saarinen has quit [Quit: saarinen]
nateberkopec has joined #ruby
klaut has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Ping timeout: 240 seconds]
OliverJAsh has left #ruby [#ruby]
rm_ has joined #ruby
troyronda has joined #ruby
mrmargolis has joined #ruby
SilkFox has joined #ruby
omosoj has joined #ruby
Speed has quit [Ping timeout: 276 seconds]
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Speed has joined #ruby
sdwrage has joined #ruby
funktor has joined #ruby
djbkd has quit [Remote host closed the connection]
funktor is now known as shishi
<dvarrui> apeiros: thanks. i didnt know shoes... i see it is a good option too.. shoes ruby-gnome sinatra. i,ll try it.
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
rm__ has quit [Ping timeout: 265 seconds]
bizancio has joined #ruby
shishi is now known as kleing
<bizancio> Hey, does any1 is using oauth gem with oDesk API (or one of the gems like ruby_desk or odesk)? Is it working? (Ruby 2.1.1)
nisstyre has quit [Quit: WeeChat 0.4.3]
djbkd has joined #ruby
lagweezle has left #ruby [#ruby]
Nahra has quit [Remote host closed the connection]
<apeiros> oh-em-gee, any1…
snath has quit [Ping timeout: 245 seconds]
osvico has joined #ruby
<apeiros> kiddos these days… writing irc via sms or somesuch it seems
wallerdev has joined #ruby
kitak has quit [Remote host closed the connection]
Royalb15_Laptop is now known as Royalb15
AlexRussia has joined #ruby
Bira has joined #ruby
Nahra has joined #ruby
agarie has joined #ruby
sski has joined #ruby
dstynchu_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has joined #ruby
afex has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Quit: Leaving...]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
predator217 has joined #ruby
dstynchula has quit [Ping timeout: 246 seconds]
codeFiend has joined #ruby
<shevy> Firebox go use xchat man
<Firebox> shevy: what mean?
OrionKissinger has quit []
<Firebox> bundle install -----> Could not locate Gemfile
<Firebox> shevy: how can i do?
<shevy> Firebox it is a great chat client: http://www.xchat.org/files/source/
<shevy> Firebox don't use bundler
Solnse has quit [Remote host closed the connection]
nateberkopec has joined #ruby
soheil has joined #ruby
senayar has quit [Ping timeout: 246 seconds]
<bizancio> apeiros: I'm not a native english speaker. I didn't notice was something someone could complaint about. Sorry.
thomas3141592653 has joined #ruby
seuros has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 265 seconds]
seuros has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
IceDragon has quit [Ping timeout: 265 seconds]
eka has joined #ruby
troyronda has quit [Ping timeout: 276 seconds]
soheil has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]