apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 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
aiguu has quit [Ping timeout: 276 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
omosoj has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> (by someone i mean mpapis)
<havenwood> Friday! \o/
<apeiros> saturday :(
<apeiros> 3 day week-end! \o/
musashi1 has joined #ruby
binaryhat has quit [Quit: Leaving]
KAO has quit [Ping timeout: 240 seconds]
gstamp has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
dayepa has joined #ruby
sambao21 has joined #ruby
ner0x has joined #ruby
rm_ has joined #ruby
mary5030 has joined #ruby
jxf has joined #ruby
MrWharfsnort has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
sambao21 has quit [Client Quit]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
rm_ has quit [Ping timeout: 252 seconds]
fella5s has quit [Read error: Connection reset by peer]
ddv has quit [Ping timeout: 245 seconds]
JokesOnYou77 has quit [Ping timeout: 276 seconds]
KAO has joined #ruby
marr has quit [Ping timeout: 258 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BWStearns has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
ascarter has joined #ruby
ddv has joined #ruby
KAO has quit [Ping timeout: 255 seconds]
chrisseaton has quit []
nobitanobi has quit []
ascarter has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
sdwrage has quit [Quit: This computer has gone to sleep]
chrisseaton has joined #ruby
KAO has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Ping timeout: 252 seconds]
IceDragon has joined #ruby
chrisseaton has quit [Client Quit]
jxf has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
pu22l3r has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 252 seconds]
andrewjanssen has quit [Quit: Leaving...]
toky has joined #ruby
<toky> hello
<Jnco> hi
ascarter has joined #ruby
<toky> i need help in setting http_proxy env variable from a ruby script but i need to unset it after the script ends...
nanoyak has quit [Quit: Computer has gone to sleep.]
JacobHayes has joined #ruby
<toky> the script just calls aws cli tool (python) but it relies on the http_proxy env...and I have other apps that break if tehy try to traverse the proxy
maestrojed has quit [Quit: Computer has gone to sleep.]
ce_afk is now known as cescalante
<havenwood> toky: ENV.delete 'http_proxy'
Connie has joined #ruby
<toky> havenwood: thanks, but how do i set it first?
<havenwood> toky: ENV['http_proxy'] = 'whatev'
AlSquire has joined #ruby
AlSquire has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
qwyeth has joined #ruby
<toky> nice... let me try that really appreciated
hermanmunster has joined #ruby
maximski has joined #ruby
x1337807x has joined #ruby
i_s has quit [Remote host closed the connection]
maroloccio has joined #ruby
GlenK has quit [Quit: Konversation terminated!]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
redondos has quit [Excess Flood]
BSaboia has joined #ruby
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
jlast has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
Hanmac1 has joined #ruby
toastynerd has quit [Remote host closed the connection]
jlast has joined #ruby
linojon has quit [Quit: linojon]
<toky> i dont think its working...taking too long to come back
Hanmac has quit [Ping timeout: 245 seconds]
bakflash has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
jhulten has quit [Remote host closed the connection]
jhulten has joined #ruby
Lutece has quit [Quit: WeeChat 0.4.3]
Lucky_ has joined #ruby
jlast has quit [Ping timeout: 255 seconds]
alvaro_o has quit [Quit: Ex-Chat]
gregf has quit [Quit: WeeChat 0.4.3]
Martxel has quit [Ping timeout: 258 seconds]
<toky> havenwood: now i get a uninitialized constant HTTP_PROXY error
jhulten has quit [Ping timeout: 258 seconds]
andrewjanssen has joined #ruby
pu22l3r has joined #ruby
freerobby has joined #ruby
lethan has joined #ruby
lethan has quit [Client Quit]
lethan has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
thomasxie has joined #ruby
Dysruption has joined #ruby
<havenwood> toky: http_proxy != HTTP_PROXY
upsell5 has joined #ruby
toastynerd has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
armyriad has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
KAO has quit [Ping timeout: 240 seconds]
moted has quit [Quit: moted]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aces1up9939 has joined #ruby
armyriad has joined #ruby
<aces1up9939> I am doing a puts on some data to file, sometimes I get an error "input length = 1" what exactly does this mean?
alexju has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 258 seconds]
<centrx> aces1up9939, Show the full error message
<aces1up9939> thats it.
benlieb has quit [Quit: benlieb]
dik_dak has joined #ruby
x1337807x has joined #ruby
rm_ has joined #ruby
<havenwood> aces1up9939: using JRuby on Windows or something?
<aces1up9939> hrmm you know what.. ok.
<aces1up9939> so each put is basically a hash i do to_yaml on.
<aces1up9939> now that i'm looking at the hashes its having troble on.
<havenwood> aces1up9939: Gist the code?
Tricon has quit [Quit: Leaving...]
shashin has quit [Quit: shashin]
<aces1up9939> there is a key :desc => "this has unicode characters"
<aces1up9939> i'm guessing to_yaml is brain farting on unicode characters?
x1337807x has quit [Client Quit]
<havenwood> but really, what Ruby and OS are you on?
amclain has joined #ruby
<aces1up9939> ruby 1.9.3 and windows
pu22l3r has quit [Remote host closed the connection]
AlSquire has joined #ruby
gregf has joined #ruby
AlSquire has quit [Client Quit]
KAO has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
<havenwood> aces1up9939: double check?: RUBY_PLATFORM
lethan has quit []
<havenwood> i mean in irb
<havenwood> or ruby -e "puts RUBY_PLATFORM"
codeurge has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
dayepa has quit [Ping timeout: 240 seconds]
deric_skibotn has quit [Ping timeout: 265 seconds]
Nexus_x1 has joined #ruby
Fire-Dragon-DoL has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
IceDragon has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
dayepa has joined #ruby
treehug8_ has quit []
robustus has joined #ruby
thomasxie has quit [Quit: Leaving.]
jlast has joined #ruby
dayepa1 has joined #ruby
IceDragon has joined #ruby
Nahra has quit [Remote host closed the connection]
* havenwood suspects java
Fire-Dragon-DoL has joined #ruby
dayepa1 has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
<headius> aces1up9939: sure sounds like the issue havenwood linked
<headius> comment there if so
davedev2_ has quit []
IceDragon has quit [Ping timeout: 264 seconds]
davedev24 has joined #ruby
<havenwood> utf-8 ALL THE THINGS JRuby 9k \o/
davedev24 has quit [Client Quit]
newleaf has joined #ruby
badhatter has quit [Ping timeout: 258 seconds]
KAO has quit [Ping timeout: 264 seconds]
hgl has joined #ruby
Nahra has joined #ruby
wallerdev has quit [Quit: wallerdev]
<havenwood> java problem with windows: http://imgur.com/psEoi6B
jfoy has quit [Quit: jfoy]
joelbrewer has quit [Ping timeout: 240 seconds]
dayepa has quit [Ping timeout: 258 seconds]
aspires has quit []
dayepa has joined #ruby
wallerdev has joined #ruby
joelbrewer has joined #ruby
aces1up9939 has quit []
kevinykchan has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
combusean has joined #ruby
alpha123 has joined #ruby
pu22l3r has joined #ruby
ktun has joined #ruby
codeFiend has joined #ruby
cescalante is now known as ce_afk
goleldar has quit [Remote host closed the connection]
maximski has quit []
mikepack has quit [Ping timeout: 240 seconds]
Vivekananda has quit [Excess Flood]
phinfonet has quit []
alpha123 has quit [Ping timeout: 258 seconds]
badhatter has joined #ruby
Vivekananda has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
Zenigor has joined #ruby
freerobby has joined #ruby
jack_rabbit has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
<toky> havenwood: same error after changing the case of the code
<havenwood> toky: ENV['HTTP_PROXY']?
ascarter has joined #ruby
<toky> i was not quoting the http_proxy within the square brackets
jlast_ has joined #ruby
<toky> the example the link you provided did not have it quoted
svf has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
<toky> thats what i have
<wallerdev> yeah you should use quotes
<wallerdev> otherwise it tries to look up HTTP_PROXY constant and use the value of that as your key
<toky> I tried it by making HTTP_PROXY http_proxy but same output
<wallerdev> itd be like saying x = "cool"; hash[x] = 10;
<wallerdev> its not gonna make a key named "x"
<wallerdev> its going to make a key named "cool"
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toky> ok
jai has quit [Quit: Leaving]
jlast has quit [Ping timeout: 276 seconds]
<toky> can u look at the paste bin and tell me if that even makes sense?
<toky> im trying it now withe the quotes
<wallerdev> does bin/aws look up the enviroment variable HTTP_PROXY or something
jlast_ has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
<toky> the aws cli looks for the HTTP_PROXY env variable
<wallerdev> then yeah
<wallerdev> should work with quotes
<wallerdev> ENV['HTTP_PROXY'] = 'http://10.99.0.12:3128'
zigomir has quit [Remote host closed the connection]
Zenigor has joined #ruby
diegoviola has joined #ruby
zigomir has joined #ruby
replay_ has quit [Ping timeout: 252 seconds]
replay has joined #ruby
wallerdev has quit [Quit: wallerdev]
<toky> can i execute that ruby script with ruby ./custom-fact.rb ?
Zenigor_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<toky> currently for testing im just doing facter -p (to load puppet facts)
andrewjanssen has quit [Quit: Leaving...]
hermanmunster has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> toky: in its dir: ruby custom-fact.rb
qwyeth has quit [Quit: Leaving]
senayar_ has joined #ruby
Vivekananda has quit [Ping timeout: 252 seconds]
zigomir has quit [Ping timeout: 255 seconds]
<havenwood> toky: or add a `#!/usr/bin/env ruby` to the first line, `mv custom-fact.rb custom-fact`, `chmod +x custom-fact` and run it with: ./custom-fact
Nexus_x1 has quit [Quit: Computer has gone to sleep.]
<havenwood> toky: or you can drop the ./ if you put it in your PATH, e.g.: sudo mv custom-fact /usr/bin/local && custom-fact
sabfer has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
Vivekananda has joined #ruby
Zenigor has quit [Ping timeout: 240 seconds]
<toky> k, i'll add ruby to the path... currently the only ruby on these boxes is the one that comes with puppet enterprise
hermanmunster has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hermanmunster has joined #ruby
<toky> le sigh...
<toky> the instances were not created with the right iam role...so it cant query ec2 anyways...
rm_ has joined #ruby
<toky> i will test this on another place...thanks for all your help
charliesome has joined #ruby
<toky> going to increase alcohol intake
diegoviola has quit [Quit: WeeChat 0.4.3]
benlieb has joined #ruby
omosoj has joined #ruby
reset has quit [Quit: Leaving...]
hermanmu_ has joined #ruby
reset has joined #ruby
johnnydiabetic has joined #ruby
troulouliou_dev has joined #ruby
omosoj has quit [Client Quit]
hermanmunster has quit [Ping timeout: 240 seconds]
<robert_> is there an "elegant" way to display a default value for a string, if a variable is either A.) Not a string, or B.) Its length is 0?
rm_ has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
mgomezch has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 258 seconds]
<centrx> return "default" unless s.is_a?(String) && s.present?
<centrx> robert_, ^
mary5030 has quit [Remote host closed the connection]
nari has joined #ruby
<robert_> so, puts "#{'No input.' unless foo.is_a?(String) and not foo.empty? }" ?
Fire-Dragon-DoL has quit [Quit: Leaving.]
<centrx> robert_, Depends on your other code. I might implement it like this:
<centrx> def input_desc
freerobby has quit [Quit: Leaving.]
combusean has quit [Ping timeout: 258 seconds]
<centrx> return "No input" unless s.is_a?(String) && s.present?
<centrx> desc
<centrx> end
<robert_> oh, okay.
<centrx> Hard to say without the rest of your code
<centrx> but the return if/unless is a good technique for shortcutting a method
<omosoj> hey guys, question about organizing data. i'm going to scrape a website for essays. how should i organize the data? like a hash of arrays? hash keys dates, and values of strings (or arrays?)?
<centrx> You put a bunch of returns at the top of your method like that, and then the core of the method follows and is greatly simplified/clarified
<centrx> robert_, If you wanted it to be inside a #{}
<centrx> robert_, You could do: #{(foo.is_a?(String) && !foo.empty?) ? "No input" : "Input!"}
<centrx> That's the ternary conditional
<centrx> probably reversing things there
senayar_ has quit [Remote host closed the connection]
<centrx> it's: if ? then : else
julian-delphiki has quit [Read error: Connection reset by peer]
<robert_> yeah, that worked. :D
<centrx> omosoj, I generally return a hash or array of hashes from a scraper to separate the scraping logic from other logic
johnnydiabetic has quit [Ping timeout: 240 seconds]
<centrx> omosoj, Or save to a temporary/source table
Melpaws has joined #ruby
pen has joined #ruby
radic has quit [Ping timeout: 240 seconds]
ktun has joined #ruby
bean has joined #ruby
franzip has quit [Quit: ...]
<omosoj> centrx, thanks. hm, how should i decide which one to use?
radic has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
alexbobp has joined #ruby
<alexbobp> are activerecord questions ontopic here?
Es0teric has joined #ruby
<centrx> alexbobp, Try #rubyonrails
<alexbobp> thanks!
<pontiki> return the hash data, let the caller decide what to do with it
alexbobp has left #ruby [#ruby]
freerobby has joined #ruby
echevemaster has joined #ruby
Spleeze has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
bahar has joined #ruby
musashi1 has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Zenigor has joined #ruby
diegoviola has joined #ruby
bahar has quit [Client Quit]
troulouliou_dev has quit [Quit: Leaving]
JacobHayes has quit []
aiguu has joined #ruby
CodeBunny has joined #ruby
<omosoj> centrx, just to clarify, you return (a) a hash of hashes or array of hashes, or (b) a hash or array of hashes?
michael_lee has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
<centrx> omosoj, Depends on what kind of data you are getting and how it is going to be used.
<centrx> omosoj, It might be natural to return the data in the same basic format it was scraped in
jamto11 has joined #ruby
<centrx> omosoj, Or it might be more efficient/simpler to convert during the scraping to an appropriate form
Spleeze has joined #ruby
<centrx> The data I happen to be scraping right now makes sense as an array of hashes, and if I need to get an efficient dictionary I can use index_by, group_by or whatever map, after the scraping
Zenigor_ has joined #ruby
BSaboia has quit [Quit: Fui embora]
<omosoj> ok. i'm not sure how i'm going to use the info yet. I'm just fooling around. since the two main values are date and the essay, i guess i'll use a simple hash.
noob101 has joined #ruby
<omosoj> ok, i see.
<noob101> Hi
Hanmac1 has joined #ruby
<noob101> Can someone please help me?
<omosoj> noob101, yup, ask away.
<noob101> How do I randomly select an object. Does that object have to be in something like an array to randomly select it?
<benzrf> noob101: sup bro
Es0teric has quit [Quit: Computer has gone to sleep.]
<noob101> benzrf, hi!!!!!
<centrx> noob101, What kind of object?
<benzrf> noob101: well, think about it this way
yacks has joined #ruby
<benzrf> what if i said 'pick something' out of nowhere
<noob101> Well, I would like that object to be a variable which would store something possibly an integer.
<benzrf> there's no context for what i mean
<benzrf> it would make more sense to say something like
<benzrf> 'pick one of these items'
<benzrf> or
Zenigor_ has quit [Remote host closed the connection]
<benzrf> 'pick a number from 1 to 10'
Zenigor has quit [Read error: Connection reset by peer]
<centrx> I pick benzrf
<noob101> Ok look benzrf.
Zenigor has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
rezzack has quit [Ping timeout: 265 seconds]
Hanmac has quit [Ping timeout: 255 seconds]
<noob101> How do I type in a line of code that says in ruby that picks a random object.
mary5030 has joined #ruby
<noob101> Sorry, that didn't make sense.
<noob101> I mean how do I get ruby to pick a random object which I created like a variable or something.
george2 has joined #ruby
Melpaws has quit [Quit: Leaving.]
<centrx> noob101, You could use ObjectSpace
<centrx> noob101, But what are you _really_ trying to do
<noob101> whats object space, I don't know.
<noob101> I will explain in a minute centrx.
<benzrf> noob101: ignore centrx
<centrx> yeah, centrx doesn't have a clue
<benzrf> centrx is deliberately answering your question overly technically literally
<benzrf> noob101: trust me you dont want to mess with objectspace
* centrx is a robot and cannot understand human emotions
Es0teric has joined #ruby
<noob101> benzrf: why? Is he correct?
<noob101> Ok so here's the thing.
<omosoj> what's the best way to encode the date as a key in a hash? integer? string?
Hanmac has joined #ruby
<noob101> I want on an interview today to a company called Adcade in Manhattan, New York City.
sabfer has quit [Quit: Leaving...]
diegoviola has quit [Quit: WeeChat 0.4.3]
dsdeiz has joined #ruby
<centrx> omosoj, You can use a Date object as a key
<noob101> I met with the COO/Co-Founder Rob Prentice and he's thinking if giving me a job but he told me to solve a problem.
Vivekananda has quit [Quit: Ex-Chat]
<noob101> So I created this game in ruby, I am a beginner rubyist and I explained to Rob that this is how I practice my programming skills by making a ruby game.
<centrx> omosoj, Hash will use Date#hash, basically a hash key can be any object, though symbol/integer keys are probably the fastest
<centrx> omosoj, Date is not particularly slow, so it should be fine
combusean has joined #ruby
<noob101> Someone mention when cards are dealt in the game, does four cards of a number get dealt over the amount. Basically if we played 21 and you took four 6's, will the game deal more 6's?
Hanmac1 has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
<noob101> So my job is to have my blackjack game not deal no more than 4 of the same number of a specific card.
agarie has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
<noob101> Is that clear now?
jlast has joined #ruby
fgo has joined #ruby
ixti has quit [Ping timeout: 258 seconds]
<noob101> Now that I explained myself, can anyone help me any better since I just explained what I want to do now?
<centrx> noob101, I would make an array of 52 cards and then use sample with delete to deal one card
<omosoj> centrx, ok, thanks.
fgo has quit [Read error: Connection reset by peer]
<noob101> An array of 52 cards huh interesting, centrx .
fgo has joined #ruby
<noob101> What is `sample`?
marcdel has joined #ruby
<omosoj> sorry, another question. what are the drawbacks/benefit of organizing data into a complex array/hash system vs something like a sql database?
<centrx> noob101, sample: pick random element(s) from array, http://www.ruby-doc.org/core-2.1.1/Array.html#method-i-sample
<noob101> Ok thank you so don't use object space centrx ?
<centrx> noob101, ObjectSpace would enable you to pick a random object out of _all_ objects in the running program "pick a random object"
rkj has joined #ruby
<centrx> noob101, Instead, you want to pick a card from a specific kind of object (e.g. array)
Zenigor has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 252 seconds]
<noob101> centrx I want that to happen when the user puts in a command, is that possible?
ce_afk is now known as cescalante
marcdel_ has joined #ruby
<noob101> centrx, can I just show you my game then we can take it from there please/
<noob101> ?
marcdel has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<centrx> Sure
<centrx> As long as Rob Prentice doesn't mind
svf has quit [Ping timeout: 276 seconds]
Asher has quit [Quit: Leaving.]
<noob101> HAHAHAHAHAHAHAH, Of course not centrx!
<noob101> LOL, goood one!
RaptorJesus_ has joined #ruby
newleaf has quit []
newleaf has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
<noob101> centrx, this is my game. Can you tell me if it's good then can we try to implement that when the game deals cards, it cannot deal the same card more than 4 times?
<noob101> centrx: http://pastie.org/9183458
Lucky_ has joined #ruby
<noob101> centrx: It's bad, I tried practicing my programming skills but can you show me what you're talking about through pastie or whatever thing will help please?
RaptorJesus has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
sindork has joined #ruby
sindork has quit [Changing host]
<centrx> noob101, You want a method like #deal_card
diegoviola has joined #ruby
<noob101> centrx, I will write that down, "start with a method with deal_card", got it.
<centrx> noob101, Given your context of keeping the cards in the deck, and maxing out at 4 cards, you would probably want to: a) select card at random to deal, b) check if that cards count > 4
Beoran_ has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
<centrx> noob101, if the card is maxed out, do another random card (this would be in a loop, so it would check again if the card's count > 4)
RaptorJesus_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<centrx> noob101, When a card is dealt, add +1 to a card counter hash you have
thesheff17_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<centrx> noob101, But that technique may or may not perturb the randomness, making it not uniformly random
RaptorJesus has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ has quit [Client Quit]
rm_ has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 276 seconds]
<centrx> noob101, I think it probably breaks the uniformity of the randomness. The set to randomly select from should have no more cards than you want to select
andrewjanssen has joined #ruby
thesheff17 has joined #ruby
<noob101> what is uniformity
RaptorJesus has joined #ruby
<centrx> e.g. Aces always get dealt with the same frequency as Twos
<noob101> yes centrx
<centrx> The deal can be random, while favoring certain cards
<centrx> (still "random")
voodoofish has joined #ruby
<noob101> what about this card counter has, can you talk about that centrx please. I am taking notes.
<noob101> o-o
Es0teric has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
rm_ has quit [Ping timeout: 276 seconds]
<centrx> noob101, Cannot deal the same card more than 4 times -> Count how many times the card has been dealt so far and only deal it if the card has been dealt less than 4 times
Connie has quit [Ping timeout: 252 seconds]
RaptorJesus has quit [Remote host closed the connection]
<noob101> centrx, can you please write a bit of code so I can get an idea on where to start, I am a bit confused. You mentioned the use of an array, loop and hash.
<noob101> Should I use variables? You also mention make a deal_card method
<centrx> deal_card is where all your new deal cards would come from
RaptorJesus has joined #ruby
Beoran_ has joined #ruby
<centrx> I would do it a different
<centrx> @deck = Deck.new # all 52 cards
<centrx> deal_card would include @deck.delete_at(rand(@deck.length))
fieldfirst has joined #ruby
<noob101> OMG, I am confused centrx :/
<centrx> About what?
<noob101> So now I should make a class or something?
<pontiki> YES
<havenwood> @deck.sample
<pontiki> :)
replay_ has joined #ruby
<pontiki> it's have to be sample_with_removal
<centrx> noob101, It depends on what your goals are. I would make this code object-oriented. Right now it is a long script in procedural form
end_guy has quit [Remote host closed the connection]
RaptorJesus has quit [Write error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
atmosx has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
<pontiki> but i don't think that exists :)
<centrx> noob101, But that could be a major refactoring of your existing code.
havenwood has joined #ruby
anibara has joined #ruby
<centrx> pontiki, array.delete_at(rand(array.length)) !
<havenwood> right dealing cards, they leave the deck >.>
<centrx> isn't it beautiful
Es0teric has quit [Quit: Computer has gone to sleep.]
<noob101> Object oriented means producing instances of classes right?
<havenwood> decks aren't immutable
<centrx> noob101, Yes, your classes would represent concepts of the problem, e.g. Dealer, Deck, Player
<centrx> Hand
codeurge has joined #ruby
<noob101> centrx: so I would have to make a class for dealer and a class for deck and stuff?
<centrx> noob101, That would be the idea, yes
<havenwood> and when a simple data structure suffices, stop making classes!
MrWharfsnort has joined #ruby
Cache_Money has joined #ruby
<pontiki> but you could do @deck.shuffle, and then make it have an enumerator, and dealing would just be @deck.next
replay has quit [Ping timeout: 264 seconds]
<noob101> That so hard, I am not good with classes really. I don't even know what an instance variable is and stuff or how to initialize properly, I don't know a lot.
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> it is time
<pontiki> learn it
<havenwood> heh, in my deck of cards drawing is #shift
<noob101> centrx: Can you just show me an example of what you're trying to help me create using pastie please?
ktun has joined #ruby
<pontiki> you're dealing off the bottom!!
<pontiki> oh, wait, that would be pop
<havenwood> pontiki: i deal of the top, sir!
codeurge has quit [Client Quit]
<noob101> Thank you, yes. finally something. Thank you havenwood .
cescalante is now known as ce_afk
mostlybadfly has quit [Quit: Connection closed for inactivity]
ktun has quit [Client Quit]
mikepack has joined #ruby
anibara has left #ruby [#ruby]
lw has joined #ruby
anibara has joined #ruby
<noob101> OMG Havenwood, this is very advance for me. I don't know even know 95% of what I am looking at.
<noob101> But I appreciate the help.
<noob101> havenwood: this is what I created in ruby, this is my blackjack, this should show you the code and stuff I know. http://pastie.org/9183458
<havenwood> noob101: well, just to see what such a thing might look like - i did that ^ learning, should fix it up
Nexus_x1 has joined #ruby
<pontiki> havenwood: need to add suits to value as well :)
<centrx> noob101, Here's...something: https://gist.github.com/anonymous/b78f98acb57f4540f79d
<havenwood> pontiki: suits have value?! :O
<centrx> actually shuffle is better
havenn has joined #ruby
<noob101> what does #product do?
<havenwood> >> [1, 2, 3].product ['red', 'green', 'blue']
<eval-in__> havenwood => [[1, "red"], [1, "green"], [1, "blue"], [2, "red"], [2, "green"], [2, "blue"], [3, "red"], [3, "green"], [3, "blue"]] (https://eval.in/152393)
<centrx> noob101, product crosses all the suits with the numbers, so you get 1 of clubs, 1 of hearts,...2 of clubs, 2 of hea
<havenwood> noob101: #zip is kinda similar-ish
<havenwood> >> [1, 2, 3].zip ['red', 'green', 'blue']
<eval-in__> havenwood => [[1, "red"], [2, "green"], [3, "blue"]] (https://eval.in/152395)
armyriad has quit [Ping timeout: 255 seconds]
mikepack has quit [Ping timeout: 264 seconds]
tacos1de has joined #ruby
jlast has joined #ruby
havenwood has quit [Quit: Leaving...]
andrewjanssen has quit [Quit: Leaving...]
<havenn> noob101: very good idea to learn the method on Array!: http://www.ruby-doc.org/core-2.1.2/Array.html
Nexus_x1 has quit [Client Quit]
atmosx has joined #ruby
havenn is now known as havenwood
RaptorJesus has joined #ruby
<havenwood> methods*
meatherly has joined #ruby
<havenwood> except #bsearch :P
* havenwood plots for an opportunity to use #rassoc
<centrx> bsearch no good?
<havenwood> centrx: i jest, was just looking at ones i never use
<noob101> this is too confusing to me im going to bed, thanks for helping me everyone.
<noob101> I guess U wukk use hases, attacys and methos for this one, I will search.
marcdel_ has quit []
<pontiki> noob101's p.tired, their fingers are slipping...
benzrf is now known as benzrf|offline
jlast has quit [Ping timeout: 276 seconds]
<pontiki> crapcrapcrap
<pontiki> *something* is resetting /Users to world writeable
YourBestFriend is now known as mozzarella
end_guy has joined #ruby
Bira has joined #ruby
<pen> is it possible to create instance variables via mixin??
<centrx> pen, Yes
<omosoj> How advanced a skill is scraping? I'm learning it now and I'm pretty stoked. Not sure how difficult this is though. Probably not very...
<centrx> omosoj, Being familiar with CSS, Nokogiri, and Mechanize is good
<pen> centrx: how?
redondos has quit [Excess Flood]
redondos has joined #ruby
<centrx> omosoj, Scraping is very useful and it's good to have it under your belt
<centrx> pen, Same way as if the mixin's instance method were actually defined in the class it's mixed into
Cache_Money has quit [Quit: Cache_Money]
<omosoj> centrx, k, cool.
<omosoj> is workwith.me defunct? i just hear about it on an old changelog episode and it doesn't seem to work now.
<omosoj> it was a website where you could find people to pair with. is there another similar service now?
<pen> centrx: let's say I have a activemodel and I define instance variable by setting self.variable = 'blah', how do I do that in a mixin??
<centrx> pen, self.variable = 'blah' is actually using a method (variable=) defined on self. It is not itself an instance variable
jimbauds has joined #ruby
<pen> isn't self the same as @?
<centrx> pen, nope
RaptorJesus has quit [Remote host closed the connection]
<centrx> pen, You probably have an attr_write/attr_accessor creating that method for you to access the @instance_variable
<centrx> pen, but yes, you can also call methods in a mixin, just as if you were in an instance method defined on the class
<pen> centrx: actually, I want to override one of the methods from Mongoid::Document called primary_key
<pen> centrx: I wrote a small mixin in initializer
<centrx> _in_ initializer?
<pen> yea, otherwise I have to go to each model.rb and add the self.primary_key
RaptorJesus has joined #ruby
<havenwood> pen: Have some code to Gist?
<pen> I want to save the pain
<pen> havenwood: it's actually started from a bug I found, here is to the link: https://github.com/elia/activeadmin-mongoid/issues/79
<pen> I found out that the class variable they use to get the primary_key is returning an array
<pen> so I want to override primary_key method in Mongoid::Document
upsell5 has quit [Quit: upsell5]
<pen> so all I did was to add the line self.primary_key = 'id' in the class definition in model folder
<pen> but I don't want to do that for every model created
<pen> so I want to try to override that in the initializer
<pen> see if that would work
<pontiki> is this a case for inheritence?
<pen> well, it's using include, it's not really inheritence
<pen> include Mongoid::Document
<pontiki> ah
moritzs has joined #ruby
<centrx> include is actually kind of like inheritance
<centrx> mixins are a better form of multiple inheritance
<pen> so I create an initializer for namespace Mongoid::Document and try to override primary_key
<pontiki> it's composition, not inheritence
<pen> but no success
Hobogrammer has quit [Read error: Connection reset by peer]
<pen> any ideas?
Hobogrammer has joined #ruby
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
<pontiki> nothing springing to mind, but i am sure it is possible
<pen> class << self doesn't work either
kate_r has joined #ruby
<centrx> pen, Are you trying to make a class method in a module?
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pen> if self. is a class method, I think it's rather like a variable, then yes
<pen> not only that, need to override the original method
<pontiki> 2if you do class << self in a module, doesn't that turn it into a singleton class? for that module?
<centrx> pen, Follow the first chunk of code as an example: http://api.rubyonrails.org/classes/ActiveSupport/Concern.html
<pen> pontiki: oh that's for singleton?
<pen> I forgot
BrownMountain has joined #ruby
<pen> centrx: using concerns?
Dude007 has joined #ruby
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
yetanotherdave has joined #ruby
<centrx> pen, That doc just has a good example of it I remember. Concerns are a nice ActiveSupport/Rails simplification of the syntax
<pen> centrx: oh nice, I think that works
<pen> fortunately mongoid is using that pattern
<centrx> I see, Mongoid uses activemodel and thus activesupport
<pen> oh yea
BrownMountain has quit [Remote host closed the connection]
<pen> I was confused when I see the self.included, when reading the source code in mongoid
<pen> now i know
alem0lars has joined #ruby
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
gdifo has joined #ruby
rm___ has joined #ruby
rm___ is now known as Guest65754
Dude007 has quit [Read error: Connection reset by peer]
Dude007 has joined #ruby
rkj has quit [Read error: Connection reset by peer]
Guest65754 has quit [Ping timeout: 240 seconds]
ffranz has quit [Quit: Leaving]
Dude007 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Dude007 has joined #ruby
gdifo has quit []
KanKava_ has joined #ruby
decoponio has joined #ruby
hgl has quit [Ping timeout: 264 seconds]
KanKava has quit [Ping timeout: 252 seconds]
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
MrWharfsnort has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
ClarusCogitatio has joined #ruby
Dude007 has quit [Ping timeout: 252 seconds]
<agent_white> eee shoes4 finally has been gemified!
* agent_white cheers
speakingcode has joined #ruby
<havenwood> agent_white: ooh, neat! :)
<agent_white> Wow they've updated it quite a bit... cool beans.
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> " We have introduced a new tag 'Newcomer Friendly' for issues we believe are suitable to get started with shoes contributing." :D
<agent_white> This is what I've been waiting for!
<centrx> shoes had no gem?
<agent_white> centrx: Not since they moved to "Shoes4"
<agent_white> It was a big ass hassle of an install... oddly enough for it being to learn programming stuffs.
* centrx has worn the same brand of shoes the past ten years
bluOxigen has joined #ruby
jlast has joined #ruby
mostlybadfly has joined #ruby
speakingcode has quit [Ping timeout: 240 seconds]
<pontiki> loyal
ClarusCogitatio has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 240 seconds]
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
Bira has quit [Remote host closed the connection]
ClarusCogitatio has joined #ruby
jamto11 has joined #ruby
Bira has joined #ruby
kilk_ has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
<agent_white> centrx: What shoes? They must be comfy.
<centrx> agent_white, Merrell
<agent_white> Ooo good choice.
newleaf has quit [Remote host closed the connection]
<centrx> High quality
<centrx> I've had one pair last three years wearing every time I wear shoes
Dysruption has quit [Quit: Dysruption]
aiguu has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
wolf__ has quit [Quit: Leaving]
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
Dysruption has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
fieldfirst has quit [Read error: Connection reset by peer]
fieldfirst has joined #ruby
Bira has quit [Remote host closed the connection]
kate_r has quit []
fgo has quit [Ping timeout: 252 seconds]
joelbrewer has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
Vivekananda has joined #ruby
MatthewsFace has joined #ruby
sski has joined #ruby
phansch has joined #ruby
MatthewsFace has quit [Client Quit]
rm_ has joined #ruby
ClarusCogitatio has quit [Ping timeout: 276 seconds]
maestrojed has joined #ruby
combusean has joined #ruby
JBreit has joined #ruby
Lucky_ has joined #ruby
ktun has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
ClarusCogitatio has joined #ruby
codeurge has joined #ruby
dsdeiz has quit [Ping timeout: 276 seconds]
gdifo has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
Cache_Money has joined #ruby
kitak_ has quit [Remote host closed the connection]
sooik has joined #ruby
oo_ has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
sooik has quit [Ping timeout: 265 seconds]
aiguu has joined #ruby
pu22l3r has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
jlast has joined #ruby
sinkensabe has joined #ruby
skysploit has quit [Remote host closed the connection]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
Dysruption has quit [Quit: Dysruption]
Xuerian has quit [Quit: Xuerian]
Xuerian has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
toastynerd has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fieldfirst has quit [Ping timeout: 255 seconds]
ktun has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
fieldfirst has joined #ruby
marcdel has joined #ruby
end_guy has quit [Remote host closed the connection]
tacos1de has quit [Write error: Connection reset by peer]
tacos1de has joined #ruby
end_guy has joined #ruby
MatthewsFace has joined #ruby
omosoj has quit [Quit: Leaving]
marcdel has quit [Ping timeout: 276 seconds]
s2013 has quit [Ping timeout: 240 seconds]
yakko has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
marcdel has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
phansch_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
phansch has quit [Ping timeout: 240 seconds]
tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
phansch^ has joined #ruby
meatherly has quit [Remote host closed the connection]
alexju has joined #ruby
Apocalypse has quit [Ping timeout: 252 seconds]
phansch has joined #ruby
phansch_ has quit [Ping timeout: 240 seconds]
marcdel has quit []
Apocalypse has joined #ruby
phansch^ has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
wallerdev has joined #ruby
Asher has joined #ruby
saarinen has joined #ruby
wallerdev has quit [Client Quit]
subbyyy_ has joined #ruby
agent_white has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
tacos1de has quit [Ping timeout: 272 seconds]
noop has joined #ruby
mikepack has joined #ruby
KAO has joined #ruby
tacos1de has joined #ruby
fieldfirst has quit [Read error: Connection reset by peer]
frogssgy has joined #ruby
fieldfirst has joined #ruby
subbyyy_ has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
fantazo has joined #ruby
musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
agent_white has quit [Remote host closed the connection]
toastynerd has joined #ruby
frosgy has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
dsdeiz has joined #ruby
joshuavial has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: All this computer hacking is making me thirsty]
KAO has quit [Ping timeout: 258 seconds]
fieldfirst has quit [Quit: Leaving]
Guest52266 has quit [Ping timeout: 252 seconds]
Darryl has joined #ruby
joshuavial has left #ruby [#ruby]
Mattx has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
ktun has joined #ruby
SegFaultAX has quit [Excess Flood]
banisterone has quit [Quit: Bye]
SegFaultAX has joined #ruby
banisterone has joined #ruby
jlast has joined #ruby
Solnse has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
ktun has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 264 seconds]
rm_ has joined #ruby
ktun has joined #ruby
timonv has joined #ruby
yakko has joined #ruby
Mattx has joined #ruby
rm_ has quit [Ping timeout: 258 seconds]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HashNuke has joined #ruby
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has joined #ruby
Lucky_ has joined #ruby
ktun has quit [Read error: Connection reset by peer]
Lucky_ has quit [Client Quit]
linojon has joined #ruby
ktun has joined #ruby
x1337807x has joined #ruby
toastynerd has quit [Remote host closed the connection]
Rahul_Roy has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
hermanmu_ has quit []
Jrz has joined #ruby
_justin has quit [Quit: _justin]
Jrz has quit [Max SendQ exceeded]
j00l^ has joined #ruby
j00l has quit [Ping timeout: 240 seconds]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
amclain has quit [Quit: Leaving]
mikepack_ has joined #ruby
yakko has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
Lucky_ has joined #ruby
Es0teric has joined #ruby
hermanmunster has joined #ruby
dik_dak has quit [Quit: Leaving]
hermanmunster has quit [Client Quit]
mikepack_ has quit [Ping timeout: 240 seconds]
relix has joined #ruby
pagioss is now known as pagios
yakko has joined #ruby
jack_rabbit has joined #ruby
_justin has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
kevinykchan has joined #ruby
Vivekananda has quit [Ping timeout: 265 seconds]
Es0teric has joined #ruby
Hobogrammer_ has joined #ruby
Vivekananda has joined #ruby
RohanRNS has quit [Quit: Connection closed for inactivity]
claymore has joined #ruby
Hobogrammer has quit [Ping timeout: 258 seconds]
ValicekB has quit [Ping timeout: 258 seconds]
lolmaus has quit [Remote host closed the connection]
agjacome has joined #ruby
mikepack has quit [Remote host closed the connection]
KAO has joined #ruby
jaimef has quit [Ping timeout: 258 seconds]
troyready has quit [Ping timeout: 258 seconds]
Nowaker has quit [Ping timeout: 258 seconds]
Rydekull has quit [Ping timeout: 258 seconds]
marcdel has joined #ruby
Rydekull has joined #ruby
lolmaus has joined #ruby
Nowaker has joined #ruby
KAO has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
rm___ has joined #ruby
rm___ is now known as Guest91002
kitak has quit [Remote host closed the connection]
jaimef has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
troyready has joined #ruby
combusean has quit [Ping timeout: 264 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
sooik has joined #ruby
senayar has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda has quit [Quit: Ex-Chat]
ValicekB has joined #ruby
memorozovm has joined #ruby
senayar has quit [Remote host closed the connection]
jlast has joined #ruby
klaut has joined #ruby
<agent_white> Holy balls.
<agent_white> You can add flags to `#!/usr/bin/env ruby` ?!?!
<agent_white> This is crazyness.
supergeek has joined #ruby
j00l has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
winny has left #ruby ["Textual IRC Client: www.textualapp.com"]
j00l^ has quit [Ping timeout: 276 seconds]
nw has quit [Quit: leaving]
nw has joined #ruby
timonv has joined #ruby
cina has joined #ruby
jack_rabbit has quit [Quit: Leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Hanmac> agent_white: in ruby everything is an Object ... eh "crazyness" ,P
_justin has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
supergeek has quit [Quit: Goodbye, cruel world.]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
yacks has joined #ruby
_justin has joined #ruby
linojon has quit [Quit: linojon]
<apeiros> agent_white: unrelated to ruby ;-) note that not every env executable supports passing flags
<agent_white> apeiros: Whoa! No shit?
echevemaster has quit [Quit: Leaving]
<apeiros> no shit
<agent_white> I'm going to have to look into that more...
yetanotherdave has joined #ruby
Morkel has quit [Quit: Morkel]
<agent_white> As in seeing what the "/usr/bin/env" means. ;P
combusean has joined #ruby
rOOb has quit [Quit: Bye]
rOOb has joined #ruby
yetanotherdave has quit [Ping timeout: 276 seconds]
cina has quit [Ping timeout: 265 seconds]
cina has joined #ruby
memorozovm has quit [Remote host closed the connection]
Jrz has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
x1337807x has joined #ruby
KanKava_ is now known as KanKava
maroloccio has joined #ruby
timonv has quit [Remote host closed the connection]
BackEndCoder_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
memorozovm has joined #ruby
bricker has quit [Ping timeout: 258 seconds]
sooik has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
moritzs has quit [Ping timeout: 276 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BackEndCoder has quit [Quit: https://github.com/BackEndCoder]
claymore has quit [Ping timeout: 276 seconds]
ner0x has quit [Quit: Leaving]
mengu has quit [Ping timeout: 252 seconds]
marr has joined #ruby
gdifo has quit [Ping timeout: 240 seconds]
Martxel has joined #ruby
phoo1234567 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BackEndCoder_ is now known as BackEndCoder
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
marcdel has quit []
timonv has joined #ruby
stenno has joined #ruby
stenno is now known as hey
_justin has quit [Quit: _justin]
havenwood has quit []
claymore has joined #ruby
cina has quit [Remote host closed the connection]
Es0teric has joined #ruby
codeFiend has quit [Quit: codeFiend]
codeFiend has joined #ruby
j00l has quit []
jlast has joined #ruby
zigomir has joined #ruby
cina has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
LexicalScope` has quit [Ping timeout: 252 seconds]
jlast has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Martxel has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
jamto11 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
jhass|off is now known as jhass
mengu has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
memorozovm has quit [Remote host closed the connection]
shvelo has joined #ruby
mikepack has joined #ruby
markour has joined #ruby
yetanotherdave has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
keppy has joined #ruby
bbtom has joined #ruby
roco has joined #ruby
<keppy> hello
<bbtom> keppy baby do you have it yet bottle brottle bingo bungo
<bbtom> hey guy you are you cool
<bbtom> hmu here if interest: allin@gm doot coom
<bbtom> with my 500 I loaned you we are now rdy baby tom
<roco> bbtom: Hey, what will we down non?
<bbtom> roco i will msg u later I have you covered
keppy has left #ruby [#ruby]
bbtom has quit [Remote host closed the connection]
roco has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yetanotherdave has quit [Ping timeout: 240 seconds]
jackneill has joined #ruby
jackneill has joined #ruby
_justin has joined #ruby
spider-mario has joined #ruby
mercerist has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
memorozovm has joined #ruby
SOLID000 has joined #ruby
mercerist has quit [Client Quit]
mercerist has joined #ruby
diegovio1 has joined #ruby
sgu has quit [Ping timeout: 255 seconds]
diegoviola is now known as Guest81153
diegovio1 is now known as diegoviola
Guest81153 has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
mercerist has quit [Client Quit]
blueOxigen has joined #ruby
kitak has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
memorozovm has quit [Ping timeout: 240 seconds]
JasmeetQA has joined #ruby
mercerist has joined #ruby
SegFaultAX has quit [Excess Flood]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SegFaultAX has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
timonv has quit [Remote host closed the connection]
Hobogrammer_ has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
wald0 has joined #ruby
AlexRussia has joined #ruby
kaspergrubbe has joined #ruby
jimbauds has quit [Remote host closed the connection]
mercerist has quit [Quit: Computer has gone to sleep.]
jlast has quit [Ping timeout: 240 seconds]
dEPy has joined #ruby
kirun has joined #ruby
_justin has quit [Quit: _justin]
shaileshg has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
ktun has joined #ruby
LadyRainicorn has joined #ruby
mercerist has joined #ruby
Ardenzi has joined #ruby
abra has joined #ruby
hgl has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
combusean has quit [Ping timeout: 258 seconds]
yetanotherdave has joined #ruby
yakko has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Ping timeout: 240 seconds]
Squarepy has joined #ruby
JasmeetQA has joined #ruby
banisterone has quit [Quit: Bye]
yakko has joined #ruby
banisterone has joined #ruby
VTLob has joined #ruby
matchaw has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
Shidash has joined #ruby
andrewlio has joined #ruby
yetanotherdave has quit [Ping timeout: 255 seconds]
Slavox|AFK is now known as Slavox
<agent_white> What jus happened.
AlexRussia has joined #ruby
jamo_ has joined #ruby
<LadyRainicorn> They've arrived.
mercerist has quit [Quit: Computer has gone to sleep.]
RaptorJesus has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaptorJesus has joined #ruby
pu22l3r has quit [Ping timeout: 264 seconds]
koderok has joined #ruby
<agent_white> LadyRainicorn: I don't want to ask who... other than I almost enjoy their PM's more.
<agent_white> _almost_...
nichtdiebohne has joined #ruby
cina has quit [Remote host closed the connection]
AlSquire has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
Loaft has quit [Ping timeout: 252 seconds]
codeFiend has quit [Quit: codeFiend]
nichtdiebohne has quit [Client Quit]
yakko has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
Soda has joined #ruby
fantazo has quit [Ping timeout: 252 seconds]
bricker has joined #ruby
Slavox is now known as Slavox|AFK
mercwithamouth has quit [Client Quit]
Loaft has joined #ruby
ikaros has joined #ruby
gigetoo has quit [Remote host closed the connection]
gigetoo has joined #ruby
alem0lars has quit [Quit: alem0lars]
sski has quit [Remote host closed the connection]
sski has joined #ruby
kilk_ has quit [Quit: kilk_]
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
jlast has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
sski has quit [Ping timeout: 255 seconds]
zybi1 has joined #ruby
mikepack has joined #ruby
JasmeetQA has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
txdv has quit [Ping timeout: 276 seconds]
mercerist has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
jamto11 has joined #ruby
everett has quit [Ping timeout: 276 seconds]
mikepack has quit [Ping timeout: 265 seconds]
dEPy has quit [Quit: Lingo - http://lingoirc.com]
maximski has joined #ruby
oo_ has quit [Ping timeout: 276 seconds]
jamto11 has quit [Ping timeout: 240 seconds]
Jnco has quit [Quit: Jnco]
yfeldblum has quit [Remote host closed the connection]
_justin has joined #ruby
oo_ has joined #ruby
txdv has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
mostlybadfly has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
gheegh has joined #ruby
everett has joined #ruby
Squarepy has quit [Quit: Leaving]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomaw has quit [Quit: Quitting]
_justin has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
unic0rn has quit [Quit: kab00m]
oo_ has joined #ruby
cina has joined #ruby
yetanotherdave has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
frank_____ has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
phoo1234567 has quit [Remote host closed the connection]
danijoo has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
banisterone has quit [Quit: Bye]
banisterone has joined #ruby
sski has joined #ruby
<shevy> sometimes folks here are nuts
klaut has quit [Remote host closed the connection]
Jake232 has joined #ruby
yakko has joined #ruby
yetanotherdave has quit [Ping timeout: 252 seconds]
moosya has joined #ruby
<agent_white> shevy: I thought you died
<agent_white> :D
<agent_white> Now I know your dirty secret that you're a euro.
<shevy> agent_white I was close
<shevy> ate some weird goat cheese, was downed for 2 days
<shevy> hey that fellow died a while ago didn't he
moritzs has joined #ruby
<agent_white> shevy: Oh dayum. I work on a farm that produces goat products!
<agent_white> shevy: Maybe he did. Now I'm sad :(
<shevy> agent_white well it probably was not only that cheese alone, I also put something on it... some onion sauce... and I also ate chocolate afterwards... I'm gonna change my diet, I kinda was completely unproductive during those 2 days :(
<shevy> http://www.imdb.com/name/nm0003817/?ref_=tt_cl_t3 yeah, he passed away 2012
<Hanmac> shevy you need to watch AdventureTime ... it has the "Dutchness of Nuts" ;P
timonv has joined #ruby
<shevy> whoa cool ... 194 cm tall
AlexRussia has joined #ruby
<agent_white> Hanmac: I have Finn and Jake tattooed on my leg :)
<agent_white> It's my favorite show.
<shevy> ack
<shevy> well
<shevy> as long as you don't tattoo your .....
<Hanmac> ;P (i didnt watches the newest episodes yet) but i have some of the comic books of it
<agent_white> Pfft. If you get a serious tattoo that's lame. Why get one that "is because of #{long_lost_memory...ENDOFTIME}"
<Hanmac> shevy: Jake is "stretchable" so i think it would make a bit sense ;P
fantazo has joined #ruby
<agent_white> My tattoos are of "#{FUCKING_ADVENTURE}"
<shevy> http://langpop.corger.nl/ man php is more popular than ruby
<agent_white> Hanmac: In the intro of AdventureTime, where Finn and Jake are going through the ice-kingdom at night (when Jake's legs are strectched), I have that. Goes from my knee to my ankle.
* Hanmac likes the house-hunting song
memorozovm has joined #ruby
mengu has quit [Remote host closed the connection]
<LadyRainicorn> haha
timonv has quit [Ping timeout: 264 seconds]
moosya has quit [Remote host closed the connection]
<agent_white> My favorite episode lately is Grass-sword.
<certainty> shevy: for good reasons!
<agent_white> It made me so happy after seeing the end.
<shevy> certainty well it shows that the www is too important to continue to want to ignore it!
alexju has quit [Remote host closed the connection]
banisterone has quit [Quit: Bye]
banisterone has joined #ruby
<Hanmac> agent_white: "i am looking at my bits ... my leg is MATH" ;P
memorozovm has quit [Ping timeout: 276 seconds]
AndChat|102836 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
noob101 has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
klaut has joined #ruby
banisterone has quit [Ping timeout: 255 seconds]
<certainty> shevy: i don't ignore the www :p. It's a bad place though. Also I'm not ignoring php. I like it. I'm on a mission. Revive the forgotten forces
sooik has joined #ruby
<LadyRainicorn> You *like* PHP?
<shevy> certainty you don't ignore the www - but you are also not a programming language :>
<certainty> shevy: take that back!
<certainty> LadyRainicorn: sure :)
sski has quit [Remote host closed the connection]
jamo_ has quit [Quit: Lost terminal]
danshultz has joined #ruby
sski has joined #ruby
<LadyRainicorn> If you were a programming language, what would you be?
sski has quit [Remote host closed the connection]
sski has joined #ruby
<certainty> LadyRainicorn: hmm i'm pretty sure i'd be brainfuck
<LadyRainicorn> Seems appropriate given that you like PHP.
<certainty> how can someone not like PHP?
<certainty> i mean a sane someone
<certainty> it's our beloved gaia
SegFaultAX has quit [Excess Flood]
<certainty> it's my favorite piece of science fiction
<shevy> I don't think you would be able to reach brainfuck
<shevy> you would be more like ... dumbfuck
<shevy> the new programming language!
<certainty> you mean like brainfuck 2.0?
<shevy> we are lucky that centrx is not here
SegFaultAX has joined #ruby
<shevy> he'd show you what he thinks about php
koderok has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: NIGHT]
AndChat|102836 has quit [Read error: Connection reset by peer]
<certainty> you ruby fundamentalists :p
banisterone has joined #ruby
<Hanmac> hey! i could write a webpage or a webserver in C if i want
<certainty> me too!
mercerist has joined #ruby
<certainty> i'd like to do it in PHP though
<certainty> because of its power
* LadyRainicorn smells a troll.
jlast has joined #ruby
newleaf has joined #ruby
<certainty> LadyRainicorn: where? don't feed it!
HashNuke has quit [Quit: Connection closed for inactivity]
<LadyRainicorn> In the dungeons, obviously.
<Hanmac> what? i thought they live under bridges
sooik has quit [Ping timeout: 265 seconds]
<certainty> underneath a bridge, tarp has sprung a leak and the trolls i've trapped, have become my pets
jlast has quit [Ping timeout: 276 seconds]
AndChat|102836 has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
ktun has joined #ruby
cina_ has joined #ruby
<certainty> shevy: wanna join PHP project?
ktun_ has joined #ruby
<shevy> certainty I abandoned php when I went to ruby!
cina has quit [Ping timeout: 264 seconds]
<shvelo> shevy: wow such php
yacks has joined #ruby
hey is now known as stenno
<certainty> shevy: :(
<shvelo> php not wow, php bad
nari_ has joined #ruby
<shevy> I can't even say that monkeys designed php
<shevy> because I don't wanna insult the poor monkeys
<certainty> shevy: PHP must be a good language, since it is so popular
<shvelo> religion is popular too
<shvelo> also Reality TV
ktun has quit [Ping timeout: 240 seconds]
<certainty> yeah and both are great things :)
<shevy> certainty well that's an argument one can not negate
<shevy> shit must be useful
<shevy> after all, so many flies like it
<certainty> yeah
<certainty> so i have to look elsewhere to hire PHP developers
<certainty> :(
<shevy> haha
<shevy> just look at all the "freelancers"
nari has quit [Ping timeout: 264 seconds]
<certainty> i want to make a language in php
C0deMaver1ck has quit [Ping timeout: 240 seconds]
<shvelo> shevy, hey brother, do you know any sites where I can freelance on Ruby projects?
bbloom has quit [Ping timeout: 276 seconds]
bakflash has joined #ruby
<shvelo> certainty, languages are usually made in C
<shevy> shvelo no real idea, I guess most of these are related to rails
<certainty> C?
<shvelo> C/C++ whatever
ce_afk is now known as cescalante
mercerist has quit [Quit: Computer has gone to sleep.]
<shevy> shvelo I also seem to see job offers getting coupled with different languages; for instance, one programming job here for bioinformatician, mandates advanced knowledge in a scripting language (ok I guess ruby fits but they mentioned python and perl only); also in R, and deep knowledge of statistics (well I guess anyone who knows R will know enough about statistics as well)
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
<shevy> oh yeah and
<shevy> "Strong background in data mining, machine learning and statistical analysis"
<shevy> whatever they mean with machine learning :\
<certainty> :\
<certainty> i once tried to learn all the machines I have
AlexRussia has quit [Ping timeout: 240 seconds]
<certainty> i failed
<shevy> lol
<certainty> i'm not good at machine learning :/
<certainty> maybe i need a supervisor
alem0lars has joined #ruby
<certainty> then i can do supervised machine learning
<certainty> nah, i want to become better in PHP first
<certainty> at PHP?
sski has quit [Remote host closed the connection]
<shvelo> certainty, k
sski has joined #ruby
<shevy> certainty but you can do everything you can do in PHP in ruby as well!
<certainty> shevy: nah I think that's only what the ruby guys want to make us believe
<certainty> don't fall into that trap
<shevy> we need challenges
ktun_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> yeah we all do
<certainty> shevy: i once tried to use ruby instead of php. Didn't work. The apache would just serve the sourcecode
s2013 has joined #ruby
<certainty> maybe it didn't understand my <?ruby ?> tags
mercerist has joined #ruby
<shevy> I think you can enable that
<certainty> yeah, i need to learn the apache language too!!
<shevy> that guy on http://www.kuwata-lab.com/ even had a slight extension to .cgi so that it displayed the line of error
Jamo has quit [Remote host closed the connection]
Symbiosisz has quit [Remote host closed the connection]
sski has quit [Ping timeout: 258 seconds]
<certainty> ruby is too brainy for me
<certainty> I want to build information technology systems
<certainty> shevy: maybe i should just ditch computer science and start growing flowers or something
<shevy> certainty nothing wrong with flowers
AndChat|102836 has quit [Read error: Connection reset by peer]
<certainty> nope
<shevy> the dutch empire makes good money with these
pu22l3r has joined #ruby
<certainty> and they make millions if not thousands of people happy
<certainty> @>-\--
* LadyRainicorn likes flowers.
<LadyRainicorn> They are pretty.
eka has joined #ruby
<certainty> like PHP!
<LadyRainicorn> Considerably better.
<certainty> subjective!!!1111
yetanotherdave has joined #ruby
<LadyRainicorn> I think PHP is objectively bad.
<certainty> nah you just don't get it!
<LadyRainicorn> It is how badness is defined.
<certainty> it's the unit of badness?
<LadyRainicorn> bad (adj.) of or resembling PHP
<certainty> it's badass, i say
<LadyRainicorn> "That's so ~ I want to vomit."
<LadyRainicorn> "Global variables are a ~ idea."
pu22l3r has quit [Ping timeout: 258 seconds]
<certainty> i find them convenient
<LadyRainicorn> "certainty is a ~ programmer."
<certainty> :(
<certainty> i think you're using them too
<certainty> you just don't tell
<LadyRainicorn> aw, maybe you will be better at growing flowers! :)
<certainty> i hope so
olivier_bK has quit [Ping timeout: 265 seconds]
<shevy> we all hope so
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<shevy> "certainty's pink flowers shop - call 555-FLOWERS_NOW!"
franzip has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
<certainty> pink flowers chop
elaptics`away is now known as elaptics
aiguu has quit [Ping timeout: 265 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
<certainty> i want to grow species from the category of taraxacum
<certainty> does one speak of species in the case of flowers?
<certainty> nah, i think I'm going to become a herpetologist instead und grow geckos, phelsuma
cescalante is now known as ce_afk
danijoo has quit [Quit: Leaving...]
banisterone has joined #ruby
yakko_ has joined #ruby
ce_afk is now known as cescalante
sambao21 has joined #ruby
simono has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
yakko has quit [Ping timeout: 264 seconds]
dayepa has joined #ruby
_sambao21 has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
maximski has quit []
mikepack has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
sooik has joined #ruby
s2013 has joined #ruby
ktun has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
_sambao21 has quit [Quit: Computer has gone to sleep.]
lxsameer has quit [Quit: Leaving]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
atmosx has quit [Quit: WeeChat 0.4.4-dev]
abra has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
shemerey has joined #ruby
abra has joined #ruby
jlast has joined #ruby
kaspergr_ has joined #ruby
alem0lars has quit [Quit: alem0lars]
sooik has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
shemerey has quit [Client Quit]
kaspergrubbe has quit [Ping timeout: 240 seconds]
_sambao21 has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
andrewlio has quit [Quit: Leaving.]
jamto11 has joined #ruby
xiq has joined #ruby
kaspergr_ has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
afhammad has joined #ruby
<afhammad> What's the closest syntax in Ruby to do argument threading/pipeline similar to Clojure's -> or Elixir's |>
jamto11 has quit [Ping timeout: 255 seconds]
Dude007 has joined #ruby
Soda has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zybi1 has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
ndrst has joined #ruby
stenno has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
kaspergrubbe has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
moritzschaefer has joined #ruby
<jhass> afhammad: since no one answered yet it might help to describe what that does. Do you mean function currying?
_sambao21 has quit [Quit: Computer has gone to sleep.]
memorozovm has joined #ruby
memorozovm has quit [Remote host closed the connection]
sambao21 has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
shvelo has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
<afhammad> jhass: In Elixir for example: "test() |> test2() |> test3()" would take the output from test and pass it in as the first argument to test2, same with test2 to test3.
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
wald0 has quit [Quit: Lost terminal]
timonv has quit [Remote host closed the connection]
jhass is now known as jhass|off
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
dayepa has joined #ruby
<shevy> certainty wtf is a taraxacum
dsdeiz has quit [Ping timeout: 240 seconds]
nomadic has quit [Remote host closed the connection]
memorozovm has joined #ruby
zybi1 has joined #ruby
jhass|off is now known as jhass
<jhass> afhammad: that's just nested method calls, isn't it? test3 test2 test1
nomadic has joined #ruby
Dude007 has quit [Remote host closed the connection]
cina_ has quit [Quit: leaving]
timonv has joined #ruby
Bira_ has joined #ruby
<afhammad> jhass: yeh, but instead of the source argument coming from the last method it comes from the first, so its easy to follow along achieve much cleaner code
<jhass> afhammad: only in a functional context, in an object oriented context you instead return something on that you can call the next method. string.strip.downcase.chars
dsdeiz has joined #ruby
<Hanmac> afhammad: [:test1,:test2,:test3].inject {|m,o| send(m,o) } ?
postmodern has quit [Quit: Leaving]
<Hanmac> hm no it was [:test1,:test2,:test3].inject {|o,m| send(m,o) }
<afhammad> Hanmac: interesting! was hoping for some native syntax though.
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira_ has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
noop has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 276 seconds]
afhammad has quit []
noop has joined #ruby
abra has quit [Quit: Textual IRC Client: www.textualapp.com]
maximski has joined #ruby
charliesome has joined #ruby
freerobby has joined #ruby
kirun has quit [Quit: Client exiting]
ce_afk is now known as cescalante
danijoo has joined #ruby
Shidash has quit [Quit: Leaving.]
aiguu has joined #ruby
carraroj has joined #ruby
jottr is now known as elementz
maximski has quit [Ping timeout: 240 seconds]
Iniesta8 has joined #ruby
bahar has joined #ruby
bahar has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
aiguu has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
jonahR has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
shvelo has joined #ruby
<shevy> native indian syntax
doodlehaus has joined #ruby
memorozovm has quit [Read error: Connection reset by peer]
memorozovm has joined #ruby
fwaokda has quit []
|RicharD| has joined #ruby
<|RicharD|> hi
<|RicharD|> how I can do :as => :select in ruby 1.9 syntax ?
<jhass> as: :select
SegFaultAX has quit [Excess Flood]
AlexRussia has joined #ruby
<shevy> cool
<shevy> that gives rise to syntax like
<shevy> ass: :hat
freerobby has quit [Quit: Leaving.]
SegFaultAX has joined #ruby
jjbohn has joined #ruby
<|RicharD|> ah cool
jlast has joined #ruby
cpruitt has quit [Quit: cpruitt]
mercwithamouth has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
yacks has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
setra has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
bahar has joined #ruby
St_Marx has joined #ruby
doodlehaus has quit []
danshultz has joined #ruby
bahar has quit [Client Quit]
bahar has joined #ruby
bahar has quit [Client Quit]
User458764 has joined #ruby
bahar has joined #ruby
User458764 has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bahar has quit [Changing host]
bahar has joined #ruby
upsell5 has joined #ruby
yacks has joined #ruby
VTLob has quit [Quit: VTLob]
danshultz has quit [Ping timeout: 240 seconds]
Iniesta8 has quit [Ping timeout: 252 seconds]
jxf has joined #ruby
jxf_ has joined #ruby
jxf_ has quit [Client Quit]
mjsmith2 has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
shashin has joined #ruby
shashin has quit [Changing host]
shashin has joined #ruby
pu22l3r has quit [Remote host closed the connection]
danijoo has quit [Quit: Leaving...]
shashin has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
franka_ has joined #ruby
freerobby has joined #ruby
timonv has quit [Remote host closed the connection]
dayepa has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
franka_ is now known as franka
pu22l3r has joined #ruby
freerobby1 has quit [Ping timeout: 265 seconds]
jjbohn has quit [Quit: Leaving...]
franka is now known as franka_
sambao21 has quit [Quit: Computer has gone to sleep.]
mikepack has joined #ruby
lw has quit [Quit: s]
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
ClarusCogitatio has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
sambao21 has joined #ruby
replay has joined #ruby
lw has joined #ruby
yetanotherdave has joined #ruby
maximski has quit []
replay_ has quit [Ping timeout: 255 seconds]
ClarusCogitatio has joined #ruby
ClarusCogitatio has joined #ruby
ClarusCogitatio has quit [Changing host]
mikepack has quit [Ping timeout: 264 seconds]
lw has quit [Client Quit]
replay has quit [Ping timeout: 255 seconds]
replay_ has joined #ruby
wald0 has joined #ruby
codeurge has joined #ruby
freerobby has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
blueOxigen has quit [Ping timeout: 252 seconds]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
xiq_ has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
qwyeth has joined #ruby
bakflash has quit [Quit: Konversation terminated!]
freerobby1 has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
Fire-Dragon-DoL has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
dayepa has joined #ruby
ClarusCogitatio has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Excess Flood]
shemerey has joined #ruby
ClarusCogitatio has joined #ruby
Martxel has joined #ruby
toastynerd has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
jlast has joined #ruby
kirun has joined #ruby
RohanRNS has joined #ruby
Dysruption has joined #ruby
havenwood has joined #ruby
bakflash has joined #ruby
Martxel has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has quit [Ping timeout: 240 seconds]
jjbohn has joined #ruby
jamto11 has joined #ruby
frank_____ has quit [Quit: Connection closed for inactivity]
dayepa has quit [Ping timeout: 240 seconds]
upsell5 has quit [Quit: upsell5]
sambao21 has joined #ruby
shaileshg has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Client Quit]
einarj has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
simono has joined #ruby
sailias has joined #ruby
meatherly has joined #ruby
Avahey_ has joined #ruby
ClarusCogitatio has quit [Ping timeout: 264 seconds]
danshultz has quit [Ping timeout: 252 seconds]
upsell5 has joined #ruby
sailias has quit [Remote host closed the connection]
Mayank has joined #ruby
Dude007 has joined #ruby
ClarusCogitatio has joined #ruby
darmou has joined #ruby
meatherly has quit [Ping timeout: 240 seconds]
Dysruption has quit [Quit: Dysruption]
dayepa has joined #ruby
alem0lars has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
mengu has joined #ruby
timonv has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
pu22l3r has quit [Remote host closed the connection]
ClarusCogitatio has quit [Ping timeout: 265 seconds]
relix has joined #ruby
ktun has joined #ruby
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
predator217 has quit [Ping timeout: 252 seconds]
ClarusCogitatio has joined #ruby
predator117 has joined #ruby
LadyRainicorn has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<newleaf> hi, anybody reading web dev with rails 4?
Rainicorn has quit [Ping timeout: 252 seconds]
<newleaf> that book is pretty awesome. I'm on chapter 10, anybody want to team up to study?
<Hanmac> havenwood: whats your DoctorWho Episode?
<havenwood> Hanmac: static
<Hanmac> :/
<havenwood> i know! been busy..
<havenwood> but... weekend \o/
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hgl has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 240 seconds]
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
maximski has joined #ruby
mehlah has joined #ruby
darmou has quit [Quit: darmou]
jjbohn has quit [Ping timeout: 255 seconds]
<shevy> you should work on weekend
mjsmith2 has quit [Remote host closed the connection]
dsdeiz_ has joined #ruby
linojon has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
dsdeiz has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
ce_afk is now known as cescalante
alexju has joined #ruby
Lucky_ has joined #ruby
bricker`LA has quit [Ping timeout: 252 seconds]
yetanotherdave has joined #ruby
memorozovm has quit []
yfeldblum has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
freerobby has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
benmoss has joined #ruby
meatherly has joined #ruby
<benmoss> is there any guide anyone knows of for working on rubygems?
freerobby has quit [Ping timeout: 265 seconds]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
yetanotherdave has quit [Ping timeout: 276 seconds]
elementz has quit [Ping timeout: 240 seconds]
<shevy> benmoss what do you wanna know
thesheff17 has quit [Ping timeout: 258 seconds]
<benmoss> how to get it running locally
<benmoss> like from the repo, in order to make a patch
dideler has quit [Quit: dideler]
xiq has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
moritzs has quit [Ping timeout: 252 seconds]
moritzschaefer has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
Slavox|AFK is now known as Slavox
dayepa has quit [Ping timeout: 240 seconds]
jlast_ has joined #ruby
bahar has quit [Ping timeout: 240 seconds]
joelbrewer has joined #ruby
setra has quit [Ping timeout: 264 seconds]
bahar has joined #ruby
dayepa has joined #ruby
marcdel has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit []
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anibara has quit [Quit: anibara]
thesheff17 has joined #ruby
marcdel_ has joined #ruby
danshultz has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
joelbrewer has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
meatherly has quit [Remote host closed the connection]
Solnse has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dayepa has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ruby
knightwrestle has joined #ruby
danshultz has quit [Ping timeout: 258 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
meatherl_ has joined #ruby
Bumptious has joined #ruby
LadyRainicorn has quit [Client Quit]
canton7 has quit [Remote host closed the connection]
pu22l3r has joined #ruby
ascarter has joined #ruby
shvelo has quit [Remote host closed the connection]
dayepa has joined #ruby
BBBThunda has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
anaeem1 has joined #ruby
cescalante is now known as ce_afk
abstrakt has joined #ruby
<certainty> in PHP we don't care about gems
Lucky_ has joined #ruby
canton7 has joined #ruby
<abstrakt> in ruby we don't care about PHP
<certainty> :(
maletor has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
<Hanmac> xD
mikepack has joined #ruby
<shevy> certainty, well they have pears
<abstrakt> and pecl
<shevy> "PEAR is a framework and distribution system for reusable PHP components."
<shevy> I am ashamed to admit that
<shevy> I never wrote any PEAR component :(
Megtastique has quit []
<shevy> huh
<shevy> http://pecl.php.net/ seems more active than pear
<certainty> does it work in a pear to pear fasion?
<certainty> fashion, even
<shevy> dunno
<shevy> I haven't been using php since so many years certainty
<abstrakt> certainty, no, it does not
<shevy> you may well be the last to know here certainty
<abstrakt> anyway, still not sure why we're talking about PHP in #ruby
<abstrakt> certainty, maybe you wanted #php
mikepack has quit [Ping timeout: 264 seconds]
qwyeth has quit [Quit: Leaving]
<shevy> he does not like you here certainty :(
<certainty> http://www.youtube.com/watch?v=HBsdV--kLoQ&t=1m21s ... haha, reminds me of DHH :D
<shevy> I hate that on Saturday, shops close earlier than during regular weekdays
jimbauds has joined #ruby
<certainty> shevy: yeah appears so :(
<shevy> and it also rains heavily...
jjbohn has joined #ruby
<certainty> abstrakt: we're talking about PHP in ruby, because we want to learn from the better languages
<shevy> certainty you have warmy weather?
<certainty> yeah, the sun is shining and like 20 degrees celsius
<shevy> damn
AlexRussia has joined #ruby
klaut has quit [Remote host closed the connection]
<shevy> but it was shitty weather the last 3 days already. it's like a blade runner environment, permanent rain...
<certainty> it's going to get better, isn't it?
<mordof> shevy: looks like i'll be starting on my next project very shortly
<mordof> shevy: will be starting work on tuesday :D
<shevy> mordof YES
<certainty> have you considered PHP?
<shevy> FINALLY
<shevy> project number #3
<mordof> shevy: heh, yep
<mordof> project 2 will happen over the weekend - then work kicks up
Martxel has joined #ruby
rippa has joined #ruby
<shevy> certainty I am sure mordof has used php in the past
<mordof> yeah, for quite a while
* mordof reads the backlog
<certainty> shevy: ah great, then he already knows about its power
<mordof> lol
<mordof> certainty: are you trying to be a PHP advocate here or something?
<certainty> the one language to rule them all and in the web bind them
<shevy> he is a webexpert
<shevy> he even writes html parsers in his spare time
<certainty> i'm a pretty serious expert
<shevy> a pexpert
<certainty> i do science!
billiam has quit [Quit: WeeChat 0.4.1]
<shevy> science is big data
<mordof> the seems like trolling... lol
<mordof> this*
jjbohn has quit [Ping timeout: 240 seconds]
<shevy> certainty are you trolling?
kevinykchan has joined #ruby
<knightwrestle> i do science - excellent lol
<certainty> shevy: did you ever see me trolling? :D
<certainty> i'm dead serious. It's hard science
<certainty> though I'd love to build information technology systems
<mordof> PHP has it's place... but it isn't here.
<certainty> :(
* mordof goes back to reading about ruby metaprogramming
JokesOnYou77 has joined #ruby
<certainty> you can do badass meta programming in PHP
<certainty> call_user_func!
oo_ has quit [Remote host closed the connection]
<mordof> certainty: i'm aware.. i've done it. it's also ugly
<certainty> ^5
shenkz has quit [Ping timeout: 265 seconds]
<certainty> shevy: i tried big data. But didn't fit into my mysql store, so i decided to ditch it
<mordof> haha
<certainty> mysql is best!
<certainty> mysql -> best db; PHP -> best language; -> WIN!!
<abstrakt> wtf, why are we still on this PHP jag
<abstrakt> mordof++ re "not here"
* mordof puts a fancy hat on certainty. this hat has many bright colors, and a spinny propellor on top
pu22l3r has quit [Remote host closed the connection]
<mordof> -> best hat
<certainty> mordof: the clever hat?
<mordof> sure
<certainty> awesome!
<abstrakt> more like ass hat
<knightwrestle> lol
<certainty> now i even look like doing science!
<mordof> hehe
<knightwrestle> lol
<certainty> abstrakt: because PHP is a pretty good thing to talk about
<knightwrestle> can we have enough hats for everyone?
<mordof> knightwrestle: i only give out one a day, sorry
<abstrakt> certainty, not in #ruby it's not
<abstrakt> in ##php maybe
<certainty> hmm
<mordof> knightwrestle: you can fight certainty for his if you really want it
<knightwrestle> mordof: only if we can fight using #gems
<certainty> no need. I share it
<shevy> certainty I had to dig deeper into postgresql for work
benmoss has left #ruby [#ruby]
aiguu has joined #ruby
<shevy> complicated queries hurt my brain a lot
<certainty> shevy: what does deeper mean?
<shevy> well
<shevy> you need to think about optimizing the ways how to store data AND how to most efficiently obtain them again lateron
freerobby has joined #ruby
eam has quit [Ping timeout: 252 seconds]
<abstrakt> when mysql has a dedicated command buried in the manual called UNCORRUPT TABLES
<shevy> when to create a new table
<abstrakt> you know somethin'gs wrong
VTLob has joined #ruby
<shevy> hehehe
eam has joined #ruby
<mordof> abstrakt: ahaha, nice. is that honestly real?
<abstrakt> mordof, yes, and it's happened to me twice now
<shevy> dunno but there is a damn lot knowledge buried in the postgresql manual, that thing is gigantic
<mordof> abstrakt: wow... that's awesome
<certainty> shevy: because the data is so big?
<mordof> mysql--
<shevy> certainty yeah. it is more like GODZILLA size
<abstrakt> certainty, that's what she said
<shevy> abstrakt no lies please :)))
<knightwrestle> is there something bigger than #bigdatat
<knightwrestle> ?
<certainty> #reallybigdata
<knightwrestle> #bigdata
<shevy> #hugedata
freerobby1 has joined #ruby
<shevy> #storingthewholeuniverse
freerobby has quit [Read error: Connection reset by peer]
<shevy> the database that keeps track of the universe must be huge
yetanotherdave has joined #ruby
<abstrakt> I heard youtube will soon have more hours of footage than the age of the universe
xiq_ has quit [Ping timeout: 240 seconds]
<shevy> hmm
banisterone has quit [Read error: Connection reset by peer]
banisterone has joined #ruby
<shevy> so many hours of
<shevy> crap
<certainty> shevy: postgres' support for partitioning doesn't suffice?
<jimbauds> It's us human .. the universa database ;)
<abstrakt> which universe does that database live in, and what database tracks that universe?
upsell5 has quit [Quit: upsell5]
svf has joined #ruby
JokesOnYou77 has quit [Quit: Leaving]
<mordof> abstrakt: universe database inception
<shevy> certainty hey, I wouldn't know! I think I did not understand postgresl fully yet, all I knew is that when I read a 20 lines SQL query, I went "wow... that thing is even harder to understand than shell scripts"
<mordof> lol
<shevy> abstrakt yeah it probably can not work if it is stored in the same universe
<abstrakt> shevy, just wait until you try working with window queries inside stored procedures
<shevy> but that's why we have black holes - these cheaters connect different universes, then it can work
<certainty> shevy: complicated queries suck. Sometimes you can make think simpler with views or hide details with precedures. On the query level you might want to employ CTE's
<certainty> erm CTEs
<certainty> my typings sucks again
<certainty> brb, kids callings
<certainty> -s
<shevy> CTOs?
freerobby1 has quit [Ping timeout: 252 seconds]
GlenK has joined #ruby
<mordof> man.. this book on metaprogramming is geat
<mordof> great*
<certainty> shevy: alternatively just use MySQL
<certainty> :p
<knightwrestle> mordof: for real? which book are you reading
<shevy> mordof what did you learn yet
<mordof> Metaprogramming Ruby - by Paolo Perrotta
<certainty> ruby metaprogramming (wild guess)
<certainty> close!
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> it's just the writing of it.. it's engaging, and yet informative
SegFaultAX has quit [Excess Flood]
<mordof> and i'm enjoying reading it through
<jimbauds> Wich ones is more popular in ruby MySQL or Postgresql? What is the "defacto" database
<shevy> jimbauds postgresql!
<certainty> yeah but that's due to a conspiracy
<shevy> php already has mysql covered
<shevy> the better language needs the better database
<mordof> jimbauds: like programming languages, database managers each have their own advantages/disadvantages, and it depends on the task that you're doing as to which is better suited
<certainty> shevy: now you hear me talking
mclee has quit [Ping timeout: 258 seconds]
<shevy> certainty hey I am just annihilating you here
St_Marx has quit [Remote host closed the connection]
<shevy> certainty die, you PHP worm, die!!!
yetanotherdave has quit [Ping timeout: 240 seconds]
<certainty> that's cybermobbing!!!
<mordof> jimbauds: shevy and certainty are in a boxing match of trolling right now, pay no attention
St_Marx has joined #ruby
SegFaultAX has joined #ruby
<jimbauds> mordof: thank you
<jimbauds> shevy: thank you too
<jimbauds> ;)
<certainty> jimbauds: no problem
<mordof> lol
<certainty> bbl
<mordof> shevy: just learned a bunch about what classes, modules, objects etc actually are - and how they interact
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof> shevy: while i had my suspicions about some of it due to the behavior, it's cool to get it confirmed and expanded
meatherl_ has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 240 seconds]
AndChat|102836 has joined #ruby
jamto11 has joined #ruby
ktun has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
danshultz has joined #ruby
dayepa has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
danshultz has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
fenicks has joined #ruby
wldcordeiro|2 has quit [Read error: Connection reset by peer]
Iniesta8 has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
aspires has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
vekfautles has joined #ruby
Dude007 has quit [Remote host closed the connection]
Iniesta8 has quit [Quit: Textual IRC Client: www.textualapp.com]
dayepa has joined #ruby
AlexRussia has joined #ruby
echevemaster has joined #ruby
atmosx has joined #ruby
<shevy> jimbauds don't take mordof too seriously, he is often drunk
<knightwrestle> mordof: u spend most of your time in #ruby?
ClarusCogitatio has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
Shidash has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
ce_afk is now known as cescalante
<havenwood> shevy: argument ad spiritum
michael_lee has quit [Ping timeout: 265 seconds]
AndChat|102836 has quit [Read error: Connection reset by peer]
<jimbauds> shevy: with the answer he gave to me, I will pay him a beer anytime!
banisterone has joined #ruby
ClarusCogitatio has joined #ruby
lkba has joined #ruby
<shevy> lol havenwood
<shevy> jimbauds right, he is always better off when drunk
alexju has quit [Remote host closed the connection]
<havenwood> jimbauds: PostgreSQL seems to be the standard these days. I like Sequel and have hopes for ROM's future.
<havenwood> Sequel gem*
centrx has joined #ruby
<havenwood> jimbauds: MySQL rapidly fell out of favor for several reasons.
LexicalScope has joined #ruby
LexicalScope` has joined #ruby
<shevy> what reasons
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
meatherly has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<jimbauds> havenwood: thank you
<knightwrestle> haverwood: elucidate?
<knightwrestle> re: MySQL, i am curious
<havenwood> shevy: Oracle was the last straw for many.
<havenwood> Sun was an excellent steward of its projects.
<havenwood> Oracle came in heavy handed and rude and showed little respect for the community.
<shevy> bastards
<certainty> it used to be the best db under the SUN :)
ascarter has joined #ruby
ClarusCogitatio has quit [Ping timeout: 258 seconds]
<knightwrestle> jaja
<havenwood> So the community forked to MariaDB, but a lot of folks had been eying Postgres for a while anyways.
<certainty> jaja :)
phinfonet has joined #ruby
<havenwood> A variety of technically nicer things and stuff like HStore as well.
Celm_ has joined #ruby
<certainty> that's like a liquor store just for H
<havenwood> and with Rails etc supporting Postgres types for free
nari_ has quit [Ping timeout: 255 seconds]
jjbohn has joined #ruby
<havenwood> or with effort i suppose, i think tenderlove has been doing some work on that?
yacks has quit [Ping timeout: 240 seconds]
upsell5 has joined #ruby
<certainty> yeah he did
dayepa has quit [Ping timeout: 240 seconds]
mengu__ has joined #ruby
dayepa has joined #ruby
ClarusCogitatio has joined #ruby
AlexRussia has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
AlexRussia has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
jjbohn has quit [Ping timeout: 252 seconds]
fantazo has quit [Ping timeout: 258 seconds]
OffTheRails has joined #ruby
bizancio has joined #ruby
ktun has joined #ruby
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<bizancio> Hello. Why I may be receiving "wrong number of arguments" when executing this code: @c.instance_eval &block?
<bizancio> That code block doesn't have any parameteres..
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jamo has joined #ruby
<jhass> try instance_exec
<bizancio> I've tried, but i get the same error (using Ruby 2.1.1)
<havenwood> bizancio: Can you Gist or show the code?
<bizancio> Sure
<Hanmac> bizancio: proc or lambda ?
<bizancio> lambda... I think, it's built with "{" and "}"
subbyyy_ has joined #ruby
<bizancio> I mean, It's a ruby block, i don't use Proc.new
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
<Hanmac> bizancio: let me guess you use ->() {} stabby syntax right?
xcesariox has joined #ruby
jamo_ has joined #ruby
<shevy> hmm how do I split "abcdef" into ["abc","def"]? I tried .split(/.../) but that one does not work
<bizancio> Just "{}"
Celm_ has quit [Remote host closed the connection]
OffTheRails has quit [Ping timeout: 265 seconds]
abra has joined #ruby
ktun has quit [Client Quit]
<havenwood> >> "abcdef".scan /.{3}/
<eval-in__> havenwood => ["abc", "def"] (https://eval.in/152466)
<havenwood> or /.../
<shevy> ohhh it was .scan
cjsarette has quit [Max SendQ exceeded]
<Hanmac> bizancio: the problem is »name "xxxxx"« ... you might need self.name = "xxxxx"
dayepa has quit [Ping timeout: 240 seconds]
<bizancio> Hanmac: Ahh you are right... because I'm using attr_accessor
freerobby has joined #ruby
<bizancio> Hanmac: So I'm having that error in the instance_exec line but actually the error happens *inside* the block
mehlah has quit [Quit: Leaving...]
<bizancio> Hanmac: Yes, that was the problem. Thanks for the help!
amclain has joined #ruby
kilk_ has joined #ruby
cescalante is now known as ce_afk
bigmac_ has joined #ruby
JBreit has left #ruby ["Leaving"]
anaeem1 has quit [Remote host closed the connection]
<havenwood> shevy: but wouldn't you rather...? "abcdef".each_char.each_slice(3).map(&:join)
freerobby has quit [Ping timeout: 240 seconds]
<shevy> ack
<mordof> haha, nice havenwood
alem0lars has quit [Quit: Going AFK...]
cjsarette has joined #ruby
Zenigor has joined #ruby
andrewlio has joined #ruby
dayepa has joined #ruby
ktun has joined #ruby
marcdel_ has quit []
yetanotherdave has joined #ruby
Zenigor has quit [Remote host closed the connection]
bigmac_ is now known as i8igmac
Zenigor has joined #ruby
<bizancio> How can I pass a variable to an EBR renderer with this line? renderer = ERB.new(File.read("template.erb"))
SegFaultAX has quit [Excess Flood]
Azure has quit [Remote host closed the connection]
<bizancio> I saw an ugly hack in Internet using def_class but I hope there's a cleaner way
Azure has joined #ruby
SegFaultAX has joined #ruby
ktun has quit [Client Quit]
phansch has quit [Quit: WeeChat 0.4.3]
yetanotherdave has quit [Ping timeout: 252 seconds]
<bizancio> Ahh maybe I should fill the variables *before* calling ERB new..
phansch has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
<bizancio> Ahh maybe I should fill the variables *before* calling ERB new..
<bizancio> Sorry
<bizancio> Wrong console, I didn't want to repeat that
anaeem1_ has joined #ruby
<kke> if you have a module like Benchmark that has methods "measure" and let's say "logger" and it allows you to do something like Benchmark.measure do ...doing something.. logger.info "hello" .. end how should you run the block inside of measure method so that calling logger inside the method will not call Benchmark.logger but the logger method outside the block? that came out overly complicated
newleaf has left #ruby [#ruby]
newleaf has joined #ruby
<kke> "inside the block" that is
newleaf has quit []
<kke> not "inside the method"
andrewjanssen has joined #ruby
newleaf has joined #ruby
<kke> i guess yield would call Benchmark's logger instead of the callers logger
<mordof> kke: i thought you wanted to call Benchmark.logger?
<mordof> oh
<kke> no, i don't want the block to be calling Benchmark's methods
eka has joined #ruby
<mordof> i see what you're saying
<kke> or see Benchmark::Configuration instead of Caller::Configuration
<mordof> because Benchmark has a method of the same name - you want it to look elsewhere for the method owner
<mordof> method container* ?
<jhass> >> module Benchmark; def self.measure; yield; end; def logger; :inside; end; end; def logger; :outside; end; Benchmark.measure do puts logger; end;
<eval-in__> jhass => outside ... (https://eval.in/152474)
bizancio has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Guest91002 has quit [Remote host closed the connection]
svf has quit [Quit: leaving]
<kke> my guess is something like instance_exec or what ever there is
<jhass> so you want it to return inside?
<jhass> >> module Benchmark; def self.measure(&block); instance_exec(&block); end; def self.logger; :inside; end; end; def logger; :outside; end; Benchmark.measure do puts logger; end;
<eval-in__> jhass => inside ... (https://eval.in/152475)
eka has quit [Client Quit]
<mordof> jhass: i take it instance_exec runs the block with the self pointing to Benchmark?
<kke> let's see. i wrote this one to demonstrate: https://eval.in/152476
<jhass> mordof: yep
<mordof> jhass: nice
<mordof> jhass: actually reading a book on metaprogramming that dove into an explanation of how methods are called, and how instance variable owners are determined (essentially pointing self around to different objects)
<jhass> kke: I'm still not sure which variant you want, I gave you examples for both
<mordof> made that code pretty clear - which is nice
dayepa has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.3]
<kke> hmm
phansch has joined #ruby
<kke> actually looks like yield does what i wanted, somehow i assumed it would be the other way around
mikepack has joined #ruby
dayepa has joined #ruby
marr has quit [Ping timeout: 258 seconds]
mengu__ has quit []
Dude007 has joined #ruby
Zenigor has quit [Remote host closed the connection]
toastynerd has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 240 seconds]
<kke> great, my assumption was wrong, the yielding actually happens in the caller's scope. well of course it does, since local variables outside the do..end can be seen inside the block.
andrewjanssen has quit [Quit: Leaving...]
bahar has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
akonny has joined #ruby
Es0teric has joined #ruby
newleaf is now known as davedev24
i8igmac has quit [Remote host closed the connection]
<kke> i suppose you would be using instance_exec if you for example wanted to do something like Foo.configure do bars = 10 end instead of |config| config.bars = 10
maximski has joined #ruby
maoko has joined #ruby
<jhass> yep, except that bars = 10 still would just create a local variable
<kke> even if there's Foo.bars= method?
<jhass> yes
<kke> thats odd
<jhass> no, locals just always win
<kke> so you would need something like Foo.set_bars
<jhass> no, self.bars = 10 would work in your previous example
Shidash has quit [Ping timeout: 240 seconds]
<jhass> though many DSLs resort to something like def bars value; @bars = value; and you call just bars :foo then
St_Marx has quit [Ping timeout: 272 seconds]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
timonv has joined #ruby
alem0lars has joined #ruby
p8952 has quit [Ping timeout: 258 seconds]
p8952 has joined #ruby
p8952 has quit [Changing host]
p8952 has joined #ruby
GlenK has quit [Quit: Konversation terminated!]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterone has quit [Ping timeout: 258 seconds]
Vivekananda has joined #ruby
dayepa has quit [Ping timeout: 252 seconds]
banisterone has joined #ruby
dayepa has joined #ruby
Steve21 has joined #ruby
jrhe has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
<certainty> lol the closing keynote of tenderlove at railsconf is awesome
linojon has quit [Quit: linojon]
phansch has joined #ruby
<Steve21> does ruby / rvm cache gems ?
dayepa has quit [Remote host closed the connection]
St_Marx has joined #ruby
m8 has joined #ruby
bigmac_ has joined #ruby
bigmac_ is now known as i8igmac
<shevy> Steve21 depends on the definition you use for cache. whenever you install a gem, it is also coped into cache/ subdirectory
<shevy> on my system these are at /usr/lib/ruby/gems/1.9.1/cache/ right now
jjbohn has joined #ruby
<shevy> *copied
benzrf|offline is now known as benzrf
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frosgy has joined #ruby
dayepa has joined #ruby
Lutece has joined #ruby
<Steve21> I ask because I am locally working on a gem and i am finding that when i reinstall the gem it installs but the new code does not seem to work/exist in the gem
Lutece has quit [Quit: WeeChat 0.4.3]
anaeem1__ has joined #ruby
codeurge has joined #ruby
alex88 has quit [Quit: Leaving...]
rm_ has joined #ruby
<jhass> Steve21: for local testing it's easier to just add your local dev copy to the load path of your target application
dayepa has quit [Remote host closed the connection]
marcdel has joined #ruby
fantazo has joined #ruby
anaeem1_ has quit [Ping timeout: 258 seconds]
frogssgy has quit [Ping timeout: 240 seconds]
jjbohn has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21> k
marcdel_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
<jhass> bundler has some magic (the path option) for that if your application uses that
rm_ has quit [Ping timeout: 276 seconds]
phansch has quit [Ping timeout: 265 seconds]
<Steve21> will check that out too
<Steve21> thanks
marcdel has quit [Ping timeout: 255 seconds]
coder_neo has joined #ruby
dayepa has joined #ruby
yfeldblum has joined #ruby
codeurge has quit [Ping timeout: 258 seconds]
<Steve21> is it possible to load a .gem file directly in your code?
<Steve21> like require ‘123.gem’
<Steve21> require_relative ‘123.gem’
<atmosx> no
Dude007 has quit [Remote host closed the connection]
<atmosx> we have Gemfiles for that
<RubyPanther> Steve21: I try to use bundler with a git repo instead of a gem until I'm testing a release, and then I make sure to bump the version. That will keep it from getting cached
<Steve21> mmmm version bump. thats a good idea too
<atmosx> bump
Lutece has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
benzrf is now known as benzrf|offline
Lucky_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
bahar has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
sambao21 has joined #ruby
Dude007 has joined #ruby
pushpak has joined #ruby
coder_neo has quit [Quit: Leaving]
yetanotherdave has joined #ruby
txdv has quit [Ping timeout: 276 seconds]
mclee has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
matchaw has joined #ruby
Mayank has quit [Ping timeout: 252 seconds]
LiohAu has joined #ruby
SegFaultAX has quit [Excess Flood]
Pkemon has joined #ruby
SegFaultAX has joined #ruby
<Pkemon> Any good reason to use ruby instead of any other dynamic language?
Shidash has joined #ruby
<jhass> any good reason to use just one dynamic language?
<Pkemon> yes simplicity
<Pkemon> I dont need 300 tools
ce_afk is now known as cescalante
<Pkemon> so where does ruby shines?
yfeldblum has joined #ruby
Mayank has joined #ruby
<Pkemon> if someone knows...
jamto11 has joined #ruby
fflush has joined #ruby
fflush has joined #ruby
<Pkemon> so? no valid feedback about this?
rm_ has joined #ruby
Mayank has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 240 seconds]
<Pkemon> ok great
Pkemon has quit []
jamto11 has quit [Ping timeout: 240 seconds]
<Hanmac> he is away we can come out again ;P
Ardenzi has quit [Remote host closed the connection]
ftj has joined #ruby
chipotle has joined #ruby
gondalier has joined #ruby
relix has joined #ruby
rm_ has quit [Ping timeout: 276 seconds]
banisterone has quit [Ping timeout: 258 seconds]
ner0x has joined #ruby
rm_ has joined #ruby
kaleido has quit [Ping timeout: 240 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximski has quit []
banisterone has joined #ruby
AndChat|102836 has joined #ruby
Hanmac1 has joined #ruby
aspires has quit []
Megtastique has joined #ruby
fflush has quit [Quit: fflush]
akonny_ has joined #ruby
banisterone has quit [Ping timeout: 258 seconds]
Zenigor has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
fflush has joined #ruby
akonny has quit [Ping timeout: 258 seconds]
akonny_ is now known as akonny
linojon has joined #ruby
marr has joined #ruby
mercerist has joined #ruby
Arkaniad has quit [Ping timeout: 276 seconds]
_maes_ has joined #ruby
ascarter has joined #ruby
akonny has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
Bumptious has joined #ruby
akonny has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
<RubyPanther> The answer is no, there is no good reason to use Ruby. Good implies objective value. Ruby isn't better, it's just better for me. We might just both suck.
jlast has joined #ruby
<RubyPanther> And if you're sure you want less tools, just use C for everything. Dynamic languages can't do it all, C can.
meatherly has quit [Remote host closed the connection]
fflush has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
chrisseaton has joined #ruby
<havenwood> RubyPanther: Ruby is objectively better than ____. <- Fill in the blank.
jjbohn has joined #ruby
<Lutece> VB
<RubyPanther> VB has solid objective value, too bad it tastes like _____.
<Lutece> Also child trafficing, both are pretty awful
<Lutece> also the answer im going with is shit... survay says?
<RubyPanther> Ruby is objectively better than COBOL because COBOL only supports pass-by-value, which is often inefficient, and Ruby can always simulate pass-by-value by #dup-ing. That's the only objectively worse language I can think of off the top of my head.
<Lutece> I think this is one of those things that comes down to personal taste, some people like running about with pointers, some people don't see a reason for it
<Lutece> etc etc
DarkFoxDK has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 255 seconds]
aiguu has quit [Ping timeout: 252 seconds]
banisterone has joined #ruby
jjbohn has quit [Ping timeout: 276 seconds]
jxf has quit [Ping timeout: 252 seconds]
simono has joined #ruby
oo_ has joined #ruby
<jimbauds> Where can I start if I want to do some music stuff with ruby?
<Lutece> jimbauds: you could look into some audio gems and look through either the documentation or the source
badhatter has quit [Ping timeout: 276 seconds]
DarkFoxDK has joined #ruby
phoo1234567 has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
<jimbauds> Lutece: thank you
AndChat|102836 has quit [Ping timeout: 264 seconds]
<RubyPanther> pointers are not just a matter of taste, there are real technical differences between references and values
BWStearns has joined #ruby
Arkaniad has joined #ruby
<Lutece> True, and it's good to know, but some languages make them less of an issue, or less previlent
<RubyPanther> hiding the reference inside an object, or having to pass it as an argument, that is certainly taste
<RubyPanther> You can do dynamic OOP with plain C if you don't mind all the explicit reference passing. Some people are allergic.
<Lutece> I never really got into C, although I have done C++ which I started at the beggining of this year.
oo_ has quit [Ping timeout: 252 seconds]
<Lutece> I'm not much of a fan of mem management, preferance being that the GC take care of it
LiohAu has quit [Quit: LiohAu]
ixti has joined #ruby
LiohAu has joined #ruby
<RubyPanther> Gtk is all plain-C OO-by-convention, with three layers (glib - a stdlib replacement, gdk - graphics primitives, gtk - high level graphics widgets) and the receiver as the first argument to each "method"
<RubyPanther> "dynamic" is just "static" with 1 layer of abstraction on top
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Lutece> And that layer is a wonderful thing that has made me rather lazy
<s2013> i think we use ruby gtk for some stuff
ktun has joined #ruby
<RubyPanther> <3 <3 <3 lazy stuff
blackmesa has joined #ruby
gondalier has quit [Quit: gondalier]
jxf has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
coffeina has joined #ruby
upsell5 has quit [Quit: upsell5]
SegFaultAX has quit [Excess Flood]
eka has joined #ruby
Jnco has joined #ruby
mikepack has joined #ruby
SegFaultAX has joined #ruby
BWStearns has quit [Ping timeout: 252 seconds]
banisterone has quit [Read error: Connection reset by peer]
<happytux_> hi
<happytux_> So I want to throw a warning in a Rake task, not a fail or exception.
<happytux_> Is this possible with Rake? Or do I have to use ruby warning throwing instead?
<happytux_> Or just a console print (it is a console application).
troulouliou_dev has joined #ruby
banisterone has joined #ruby
eka has quit [Client Quit]
Bumptious has quit [Remote host closed the connection]
_maes_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
deepy has quit [Ping timeout: 258 seconds]
mikepack has quit [Ping timeout: 252 seconds]
memorozovm has joined #ruby
BWStearn1 has joined #ruby
dorei has joined #ruby
deepy has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deepy is now known as Guest12406
phansch has joined #ruby
cescalante is now known as ce_afk
chrisseaton has quit []
Zenigor has quit [Remote host closed the connection]
Zenigor has joined #ruby
chrisseaton has joined #ruby
s00pcan has quit [Remote host closed the connection]
alem0lars has quit [Quit: alem0lars]
jxf has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
anaeem1 has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
memorozovm has quit []
Dude007_ has joined #ruby
bahar has quit [Ping timeout: 258 seconds]
jjbohn has joined #ruby
Dude007 has quit [Ping timeout: 240 seconds]
coffeina has quit [Quit: Wychodzi]
bahar has joined #ruby
wldcordeiro has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
workmad3 has quit [Ping timeout: 252 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
jjbohn has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<happytux_> I found it: warn
<happytux_> How can I change the current working directory (cwd) for a specific ruby task?
<happytux_> I guess this is not possible with Rake... sigh
<benzrf> > File.chdir
<benzrf> >> File.chdir
<eval-in__> benzrf => undefined method `chdir' for File:Class (NoMethodError) ... (https://eval.in/152519)
<benzrf> hmm
<benzrf> >> Dir.chdir
<eval-in__> benzrf => HOME/LOGDIR not set (ArgumentError) ... (https://eval.in/152520)
<benzrf> happytux_: ^
<benzrf> >> Dir.chdir '/home'; Dir.ls
<eval-in__> benzrf => (https://eval.in/152521)
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> >> Dir.pushdir
<eval-in__> benzrf => undefined method `pushdir' for Dir:Class (NoMethodError) ... (https://eval.in/152522)
<benzrf> lame
combusean has joined #ruby
BWStearn1 has quit [Ping timeout: 240 seconds]
blackratdog has joined #ruby
shenkz has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
redondos has quit [Excess Flood]
meatherly has joined #ruby
_main_ has joined #ruby
redondos has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
kilk_ has quit [Ping timeout: 240 seconds]
meatherly has quit [Read error: Connection reset by peer]
LiohAu has quit [Quit: LiohAu]
meatherly has joined #ruby
elaptics is now known as elaptics`away
Lucky_ has joined #ruby
Zenigor has quit [Remote host closed the connection]
coffeina has joined #ruby
_main_ is now known as __main__
AndChat|102836 has joined #ruby
blackmes1 has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
franzip has quit [Quit: ...]
__class__ has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
meatherly has quit [Ping timeout: 265 seconds]
<shevy> benzrf you can always add it
blackmesa has quit [Ping timeout: 240 seconds]
AndChat|102836 has quit [Read error: Connection reset by peer]
<shevy> happytux_ can't you use Dir.chdir ?
_sambao21 has joined #ruby
fflush has joined #ruby
banisterone has joined #ruby
aiguu has joined #ruby
<shevy> I am tempted to rewrite a large project
LexicalScope has quit [Ping timeout: 255 seconds]
LexicalScope` has quit [Ping timeout: 255 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<csmrfx> shevy: Sunday morning will come sooner than you think
aiguu has quit [Ping timeout: 276 seconds]
AlexRussia has joined #ruby
lw has joined #ruby
<shevy> hehehe
lw has quit [Max SendQ exceeded]
oo_ has quit [Ping timeout: 258 seconds]
<Jnco> shevy you any good with bundle?
simoz115 has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<shevy> Jnco nope, I don't use it
lw has joined #ruby
BWStearn1 has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
oo_ has joined #ruby
chrisseaton has quit []
nanoyak has joined #ruby
nanoyak has quit [Client Quit]
banisterone has quit [Ping timeout: 240 seconds]
<Steve21> whats the best way to change timezones of a date without rails
maletor has quit [Quit: Computer has gone to sleep.]
Bumptious has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
_sambao21 has quit [Quit: Computer has gone to sleep.]
carraroj has joined #ruby
maletor has joined #ruby
atmosx has quit [Ping timeout: 265 seconds]
SHyx0rmZ has joined #ruby
aiguu has joined #ruby
jjbohn has joined #ruby
shime has joined #ruby
VTLob has quit [Quit: VTLob]
Nick__ has joined #ruby
maximski has joined #ruby
SegFaultAX has quit [Excess Flood]
BWStearn1 has quit [Ping timeout: 252 seconds]
SegFaultAX has joined #ruby
timonv has quit [Remote host closed the connection]
fflush has quit [Quit: fflush]
carraroj has quit [Quit: Konversation terminated!]
carraroj has joined #ruby
mercerist has joined #ruby
Nick__ has quit [Client Quit]
vekfautles has quit [Quit: Leaving.]
maximski has quit [Ping timeout: 252 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
maximski has joined #ruby
jamto11 has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
bahar has quit [Ping timeout: 240 seconds]
BWStearn1 has joined #ruby
phansch has joined #ruby
JordiGH has joined #ruby
BBBThunda has quit [Remote host closed the connection]
<JordiGH> Is there a simple way to install gems in my homedir? Like "pip install --user" with Python?
<jhass> --user-install
bahar has joined #ruby
<JordiGH> Just that? Okay, let's try ti.
jamto11 has quit [Ping timeout: 240 seconds]
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
naw has quit [Ping timeout: 255 seconds]
jfoy has joined #ruby
naw has joined #ruby
<JordiGH> Hm, installs to .gem. I wish gems followed some sort of FHS. I prefer ~/.local/bin, ~/.local/share ...
<JordiGH> Now I have to update my PATH and possibly other env vars just for Ruby.
kirun has quit [Quit: Client exiting]
<jhass> just PATH and GEM_HOME
<JordiGH> Or maybe I'll write a wrapper shell script and dump it in ~/.local/bin
noop has quit [Ping timeout: 240 seconds]
naw has quit [Client Quit]
Steve21 has quit [Quit: Steve21]
einarj has quit [Remote host closed the connection]
<shevy> JordiGH can't you symlink from that home dir into the path you want to use?
Burgestrand has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
<JordiGH> shevy: I have to set GEM_HOME anyways, don't I?
matchaw has joined #ruby
maximski has quit []
<shevy> not that I am aware of
yetanotherdave has joined #ruby
fflush has joined #ruby
elementz has joined #ruby
<JordiGH> shevy: Yeah, the jekyll binary expects other things in its PATH. I have to set both of those variables. The cleanest thing I can do is just use a wrapper script.
fflush has quit [Read error: No route to host]
fflush has joined #ruby
jackneill has quit [Remote host closed the connection]
meatherly has joined #ruby
fflush has quit [Client Quit]
akonny has quit [Quit: akonny]
linojon has quit [Quit: linojon]
bahar has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 265 seconds]
andrewjanssen has joined #ruby
bahar has joined #ruby
Hanmac has joined #ruby
chrisseaton has joined #ruby
bbloom has joined #ruby
coffeina has quit [Quit: Wychodzi]
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Hanmac1 has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
BWStearn1 has quit [Ping timeout: 240 seconds]
akonny has joined #ruby
x1337807x has joined #ruby
<hfp> Hey guys, I'm having a hard time understanding the difference between a class method and an instance method.
Shidash has joined #ruby
<jhass> on a high or on an implementation level?
eka has joined #ruby
<JordiGH> Sorry to be so lazy, but I have no idea what this means: http://codepad.org/ztsMdwyO
<JordiGH> The internets think my Ruby version is too old?
<jhass> JordiGH: -t seems to expect a date or timestamp (don't know jekyll)
kaspergrubbe has quit [Ping timeout: 240 seconds]
Bira has joined #ruby
<JordiGH> Ah, wait, I'm not actually using the jekyll I just built, oops.
yetanotherdave has quit [Ping timeout: 258 seconds]
naw has joined #ruby
jjbohn has quit [Quit: Leaving...]
eka has quit [Client Quit]
Ankhers has joined #ruby
farn has quit [Remote host closed the connection]
Dude007_ has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Burgestrand]
kaspergrubbe has joined #ruby
ce_afk is now known as cescalante
* JordiGH juggles $PATH and stuff.
Dude007 has joined #ruby
farn has joined #ruby
<hfp> jhass: I'm not sure what you mean, was that for me?
<hfp> "17:19 jhass: on a high or on an implementation level?"
<jhass> yes that was for you. What is it that you don't understand about class methods?
lw has quit [Quit: s]
<hfp> I don't understand the difference between class method and instance method
<jhass> you said that already
<hfp> Indeed
<hfp> I can't see why they are not the same thing
<jhass> well, actually they pretty much are
<hfp> They both add a method to an object, right?
<jhass> just the place where they are defined is different
<hfp> Ok but why would you use one rather than the other?
<jhass> what's commonly called a class method, is an instance method defined on a Class objects singleton class (that's the implementation level)
<jhass> on the high level class methods are for things related to the classes domain but not working with the data of a particular instance
<jhass> like constructing new instances for example
<jhass> in fact .new is a class method
BWStearns has joined #ruby
darmou has joined #ruby
mikepack has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
<hfp> I'm still confused. "not working with the data of a particular instance", what does that mean?
claymore has quit [Quit: Leaving]
<jhass> well, not working with its instance variables
banisterone has joined #ruby
jfoy has quit [Ping timeout: 240 seconds]
<shevy> >> def Object.new; puts 'hi'; end; Object.new
<eval-in__> shevy => hi ... (https://eval.in/152565)
mikepack has quit [Ping timeout: 240 seconds]
banisterone has quit [Client Quit]
jxf has joined #ruby
banisterone has joined #ruby
blackmes1 has quit [Ping timeout: 265 seconds]
m8 has quit [Quit: Sto andando via]
benzrf is now known as benzrf|offline
Bumptious has quit [Ping timeout: 264 seconds]
<shevy> eval-in__ huh
ndrei has quit [Ping timeout: 265 seconds]
<JordiGH> Oh, great, Jekyll seems to have forkbombed me.
banisterone has quit [Client Quit]
<shevy> curious
<shevy> in irb it does not work
yakko_ is now known as yakko
banisterone has joined #ruby
phansch has quit [Ping timeout: 240 seconds]
matchaw has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
lw has joined #ruby
Guest12406 has quit [Changing host]
Guest12406 has joined #ruby
bawNg_ has quit [Ping timeout: 245 seconds]
weeb1e has quit [Ping timeout: 252 seconds]
AndChat|102836 has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
AndChat-102836 has joined #ruby
banisterone has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
BWStearns has quit [Ping timeout: 240 seconds]
coffeina has joined #ruby
SegFaultAX has quit [Excess Flood]
oo_ has joined #ruby
darmou has quit [Quit: darmou]
SegFaultAX has joined #ruby
akonny has quit [Quit: akonny]
AndChat|102836 has quit [Ping timeout: 265 seconds]
postmodern has joined #ruby
workmad3 has joined #ruby
coffeina_ has joined #ruby
elementz has quit [Ping timeout: 240 seconds]
oo_ has quit [Read error: Connection reset by peer]
coffeina_ has quit [Remote host closed the connection]
oo_ has joined #ruby
simoz115 has quit [Ping timeout: 258 seconds]
lw has quit [Ping timeout: 276 seconds]
simoz115 has joined #ruby
blackmes1 has joined #ruby
<hfp> shevy: I get a segmentation fault in irb
rich has joined #ruby
cescalante is now known as ce_afk
codeFiend has joined #ruby
sinkensabe has joined #ruby
simoz116 has joined #ruby
BWStearn1 has joined #ruby
Guest12406 is now known as deepy
marcdel_ has quit [Ping timeout: 240 seconds]
elementz has joined #ruby
roolo has joined #ruby
<RubyPanther> shevy: eval-in prefers to give you the STDOUT instead of the turn value. Also it sadly prefers STDERR to STDOUT
oo_ has quit [Ping timeout: 276 seconds]
jhass is now known as jhass|off
<RubyPanther> so once you say puts 'hi' you're not going to get anything else out of it unless you throw an error... or print a warning
rich has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Po-ta-to, boil em, mash em, stick em in a stew.]
oo_ has joined #ruby
simoz115 has quit [Ping timeout: 276 seconds]
marcdel has joined #ruby
sinkensabe has quit [Ping timeout: 276 seconds]
marcdel_ has joined #ruby
qwyeth has joined #ruby
sinkensabe has joined #ruby
kaleido has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
decoponio has quit [Read error: Connection reset by peer]
phinfonet has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
marcdel has quit [Ping timeout: 258 seconds]
phinfonet has joined #ruby
<shevy> hmmmmmm
roolo has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 240 seconds]
AndChat-102836 has quit [Ping timeout: 265 seconds]
chipotle has quit [Quit: cya]
dmitrykorotkov has joined #ruby
bbloom has quit [Ping timeout: 240 seconds]
bbloom has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
gondalier has joined #ruby
JordiGH has quit [Quit: Jacking out]
blackmes1 has quit [Ping timeout: 255 seconds]
xiq has joined #ruby
jlast has joined #ruby
kiri has joined #ruby
darmou has joined #ruby
roolo has joined #ruby
oo_ has joined #ruby
blackmes1 has joined #ruby
coffeina has quit [Quit: Wychodzi]
Bira has quit [Remote host closed the connection]
Lutece has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
oo_ has quit [Ping timeout: 264 seconds]
BWStearn1 has quit [Ping timeout: 255 seconds]
mercerist has quit [Read error: Connection reset by peer]
nwg has joined #ruby
darmou has quit [Quit: darmou]
mercerist has joined #ruby
<hfp> Is there a way to reset irb to its initial state without relaunching it?
WishBoy- has joined #ruby
Kisten has joined #ruby
ftj has joined #ruby
sambao21 has joined #ruby
WishBoy has quit [Ping timeout: 240 seconds]
<shevy> googling shows this result hfp
<shevy> def reset_irb; exec($0); end
<hfp> Thanks shevy
havenwood has quit [Remote host closed the connection]
<shevy> I tested it in irb, it seems to indeed "reload" it, though it probably spawns a new irb
chipotle has joined #ruby
Megtastique has quit []
spider-mario has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 240 seconds]
dayepa has quit [Ping timeout: 240 seconds]
dayepa has joined #ruby
apeiros has joined #ruby
WishBoy- has quit [Remote host closed the connection]
WishBoy has joined #ruby
mjs2600 has joined #ruby
upsell5 has joined #ruby
sdwrage has joined #ruby
Bira has joined #ruby
BWStearn1 has joined #ruby
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ktun has joined #ruby
shime has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
chipotle_ has joined #ruby
eka has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
atraylen has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
Kilo`byte has quit [Ping timeout: 245 seconds]
arrubin has quit [Quit: leaving]
ktun has joined #ruby
andrewlio has quit [Quit: Leaving.]
MindfulMonk has quit [Ping timeout: 276 seconds]
arrubin has joined #ruby
<wwalker> if I have a C function that is int foo(int *x) and it's been added as a native extension, how do I call it from ruby?
jamto11 has joined #ruby
<apeiros> wwalker: you write a wraper for it in C and add it to a module
<apeiros> see rb_define_* in README.EXT
<wwalker> apeiros: thank you
gondalier has quit [Quit: gondalier]
<apeiros> rb_define_module and rb_rb_define_module_function specifically
<apeiros> whoops, -rb_
jxf has quit [Ping timeout: 258 seconds]
happytux_ has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
gondalier has joined #ruby
Lucky_ has joined #ruby
saarinen has joined #ruby
Kilo`byte has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
saarinen has quit [Client Quit]
MindfulMonk has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
ce_afk is now known as cescalante
Bira has quit [Remote host closed the connection]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
dayepa1 has joined #ruby
dayepa has quit [Ping timeout: 252 seconds]
mjs2600 has quit [Remote host closed the connection]
nwg has quit [Quit: WeeChat 0.3.8]
janssen has joined #ruby
qwyeth has quit [Remote host closed the connection]
andrewjanssen has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
simoz116 has quit [Ping timeout: 255 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
matchaw has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Hanmac1 has quit [Ping timeout: 258 seconds]
saarinen has joined #ruby
codeFiend has quit [Quit: codeFiend]
dmitrykorotkov has quit [Quit: Ex-Chat]
dmitrykorotkov has joined #ruby
dmitrykorotkov has quit [Read error: Connection reset by peer]
dmitrykorotkov has joined #ruby
saarinen has quit [Client Quit]
txdv has joined #ruby
larissa has joined #ruby
codeFiend has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
rm_ has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 265 seconds]
WishBoy has quit [Ping timeout: 276 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dude007 has quit [Remote host closed the connection]
Dude007 has joined #ruby
codeFiend has quit [Client Quit]
centrx has quit [Quit: All this computer hacking is making me thirsty]
WishBoy has joined #ruby
rm_ has joined #ruby
sambao21 has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
centrx has joined #ruby
dik_dak has joined #ruby
Emmanuel_Chanel has joined #ruby
mercwithamouth has joined #ruby
LexicalScope` has joined #ruby
Dude007 has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
Kisten has quit []
mikepack has quit [Ping timeout: 264 seconds]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
simoz116 has joined #ruby
elementz has quit [Ping timeout: 240 seconds]
soulisson has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
simoz117 has joined #ruby
mjs2600 has joined #ruby
WishBoy has quit [Remote host closed the connection]
WishBoy has joined #ruby
<soulisson> Hi, i'm new to Ruby, i'd like to know if the threads are distributed between the different cores
<benzrf> soulisson: which impl?
<benzrf> YARV has a GIL
<centrx> it still uses all the cores
<centrx> for one thread
<soulisson> i think i'm using ruby-c
simoz116 has quit [Ping timeout: 264 seconds]
<centrx> soulisson, The main ones are MRI, JRuby, Rubinius, mruby
<centrx> MRI is the reference implementation - Ruby
predator217 has joined #ruby
<soulisson> centrx, yes i'm using MRI
ndrei has quit [Ping timeout: 265 seconds]
<centrx> soulisson, That has a global interpreter lock so only one thread uses the CPU at a time.
<centrx> soulisson, With that, threads are good for parallelizing I/O but not CPU
<centrx> soulisson, It still uses all cores
<soulisson> centrx, ok, so no more than one thread at a time
|RicharD| has quit [Quit: Sto andando via]
combusean has quit [Ping timeout: 258 seconds]
predator117 has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
numberten has joined #ruby
numberten has left #ruby [#ruby]
combusean has joined #ruby
matchaw has quit [Ping timeout: 265 seconds]
kitak has joined #ruby
mercerist has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
northfurr has joined #ruby
Hanmac has joined #ruby
gondalier has quit [Quit: gondalier]
sinkensabe has joined #ruby
simoz118 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
LexicalScope has quit [Ping timeout: 265 seconds]
LexicalScope` has quit [Ping timeout: 265 seconds]
simoz119 has joined #ruby
simoz117 has quit [Ping timeout: 240 seconds]
simoz1110 has joined #ruby
lw has joined #ruby
SegFaultAX has quit [Excess Flood]
lw has quit [Max SendQ exceeded]
lw has joined #ruby
yetanotherdave has quit [Ping timeout: 255 seconds]
lw has quit [Max SendQ exceeded]
simoz118 has quit [Ping timeout: 252 seconds]
lw has joined #ruby
george2|chakra has joined #ruby
SegFaultAX has joined #ruby
Martxel has quit [Ping timeout: 240 seconds]
simoz119 has quit [Ping timeout: 252 seconds]
george2 has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
lw has quit [Ping timeout: 240 seconds]
janssen has quit [Quit: Leaving...]
rm_ has quit [Remote host closed the connection]
ktun has joined #ruby
george2|chakra is now known as george2
dorei has quit []
funktor has joined #ruby