<Mon_Ouie>
No, inspect for strings will not display the object_id
predator117 has joined #ruby
<havenwood>
xibalba: I don't really know what you mean. But #inspect doesn't make sense to me.
sheap has left #ruby [#ruby]
<Mon_Ouie>
It just returns the string but replacing "special" characters by escaped form of them
<havenwood>
xibalba: Maybe look into #object_id and #hash.
Zai00 has quit [Quit: Zai00]
<xibalba>
check those. i'm just looking for the 0x0.....memory addr
<Mon_Ouie>
It's just object_id
<havenwood>
xibalba: ^
<xibalba>
b.object_id
<xibalba>
=> 12911240
<Mon_Ouie>
(#hash can be the same for two distinct objects, so long as they represent the same thing)
<xibalba>
so the memory location is 0x12911240 ?
<bnagy>
no
<DanKnox>
i think the real answer to your question is.... a = b is essentially creating a pseudo pointer to b from a... a will still technically be it's own object though
<Mon_Ouie>
No, you can't know what it is, but the only object for which object_id is 12911240 is b
<xibalba>
yeah i just wanted to verify the observastion via a memory address
<bnagy>
do the FFI thing I showed you above
<xibalba>
but the object_id is the same, so i suppose thats sufficient
<DouweM>
xibalba: object_id ~ address
<xibalba>
bnagy, ok
<DouweM>
xibalba: yeah, that's sufficient
<bnagy>
object_id is not memory address
<DouweM>
bnagy: it's not, but for our purposes they're equivalent
predator217 has quit [Ping timeout: 245 seconds]
<Mon_Ouie>
bnagy: 12… ≠ 0x12…
<bnagy>
thanks?
<Mon_Ouie>
0x… means hexadecimal notation, 12… is the decimal representation of a number
<xibalba>
any modification to a will modify b as well though
<xibalba>
correct?
<DouweM>
xibalba: the two vars point to the same object, so yeah
<Mon_Ouie>
Yes, since there is only one object
<xibalba>
how do i copy and create a new object for storing in b ?
<xibalba>
a = "foo"
<xibalba>
b = ....
lfox has joined #ruby
<DouweM>
#clone or #dup
mootpointer has joined #ruby
virtualize has joined #ruby
<xibalba>
ty
<xibalba>
perfect!
<xibalba>
ty fellas
komodo has quit [Ping timeout: 248 seconds]
johnnyfuchs has quit [Quit: Leaving.]
drumusician has quit [Read error: Connection reset by peer]
rushed has joined #ruby
mlpinit has joined #ruby
<xibalba>
in reading the docs i'm not sure i get the diff between clone & dup
ehc has quit [Quit: ehc]
<havenwood>
xibalba: clone copies singleton class and preserve freezyness
thumpba has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 252 seconds]
valesk has joined #ruby
shadoi1 has quit [Quit: Leaving.]
timonv has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
lyanchih has joined #ruby
thumpba has joined #ruby
Megtastique has joined #ruby
p4d4w4n has joined #ruby
havenwood has joined #ruby
pwh has joined #ruby
robustus has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
nateberkopec has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
code-cat has left #ruby ["Leaving..."]
hogeo has quit [Remote host closed the connection]
nateberkopec has quit [Read error: Connection reset by peer]
JJMalina has joined #ruby
bklane has joined #ruby
tkuchiki has joined #ruby
Monie has joined #ruby
Monie has quit [Max SendQ exceeded]
<ArchBeOS>
Hey Guys, im trying to do an attr_accessor for an array but when I try to add something to it I get an error. undefined method for <<. Here is my pastie
p4d4w4n has quit [Quit: This computer has gone to sleep]
iliketur_ has quit [Quit: zzzzz…..]
rootshift has quit [Quit: rootshift]
casheew has quit [Read error: Connection reset by peer]
iamjarvo_ has joined #ruby
casheew has joined #ruby
toretore has quit [Read error: Connection reset by peer]
jamesaanderson has quit [Ping timeout: 260 seconds]
ItSAN____ has quit [Read error: Connection reset by peer]
toretore has joined #ruby
lmickh has quit [Quit: lmickh]
sec^nd has quit [Ping timeout: 240 seconds]
ItSANgo has joined #ruby
m__s has joined #ruby
sailias has quit [Ping timeout: 248 seconds]
nobitanobi has joined #ruby
aryaching has quit []
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
gyre007_ has quit [Remote host closed the connection]
BeanDip__ has quit [Quit: No Ping reply in 180 seconds.]
sevenseacat has quit [Ping timeout: 240 seconds]
psyl0n has joined #ruby
VesQ has joined #ruby
plotter has quit [Quit: Leaving]
carlyle has joined #ruby
BeanDip has joined #ruby
brianpWins has quit [Quit: brianpWins]
superscott[8] has joined #ruby
DanielRb has joined #ruby
pdtpatri1k has quit [Quit: leaving]
pdtpatrick has joined #ruby
Sami345 has joined #ruby
Mattias has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
jamesaanderson has joined #ruby
p4d4w4n has joined #ruby
mgberlin has quit [Quit: mgberlin]
nobitanobi has quit [Read error: Connection reset by peer]
aapzak has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
Mattias has joined #ruby
aapzak has joined #ruby
valesk has quit [Remote host closed the connection]
carlyle has quit []
roolo has quit [Quit: Leaving...]
bradhe has quit [Remote host closed the connection]
gstamp has quit [Ping timeout: 256 seconds]
zeade1 has quit [Quit: Leaving.]
coca_rai_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
coca_rails has joined #ruby
Megtastique has quit []
ehaliewicz has quit [Remote host closed the connection]
kevinykchan has joined #ruby
gstamp has joined #ruby
valesk has joined #ruby
user5555 has joined #ruby
sevenseacat has joined #ruby
nhhagen has joined #ruby
coca_rails has quit [Ping timeout: 245 seconds]
<user5555>
So, if I am looking to have an if statment with a bunch of conditions like this: if x!= "and" || "for" || "the", how am I suppose to make something like that work while avoiding doing a bunch of if statements? I could do a million if statements, but it would look stupid.
koopa has quit [Ping timeout: 260 seconds]
closures999 has joined #ruby
charliesome has joined #ruby
Reach has quit [Remote host closed the connection]
sailias has joined #ruby
Megtastique has joined #ruby
nhhagen has quit [Remote host closed the connection]
<mootpointer>
user5555: I'd pull it out into different methods which allow you to express clearly what's going on.
<user5555>
hello?
<mootpointer>
Patience :)
<user5555>
I'm simply looking to do this within one method. Its a simple conditional.
Megtastique has quit [Client Quit]
<user5555>
Instead of laying out a million conditionals.
<user5555>
I want to do it all one one line, it is going on within a method? What are you talking about?
<mootpointer>
It doesn't seem like a *simple* conditional.
fandikurnia01 has joined #ruby
<user5555>
I'm looking to say if x does not contain one of those words, then do that.
<user5555>
Its pretty simple, no?
niklasb has quit [Ping timeout: 272 seconds]
<user5555>
How do you do that in one line?
falood has joined #ruby
<user5555>
Or are you familiar with this?
<mootpointer>
I'd still push it out into a method.
flubba has quit [Remote host closed the connection]
<mootpointer>
You could do something like this:
<user5555>
What are you talking about "push it into a method"
<user5555>
Sorry, I don't know why I didn't think about that.
<davy_>
unless is_unwanted_word x
<mootpointer>
davy_: +1
<kostine>
unless is unwanted ... :)
<mootpointer>
Although I'd consider losing the "is_" :)
<davy_>
;)
<davy_>
yeah, I'd totally rename and rearrange
<davy_>
but that matched more closely with original example
<mootpointer>
It means that you can extend your list of words easily.
<user5555>
Yeah, I'm just playing around with ruby right now.
<kostine>
if banned(x) maybe
<user5555>
So, I will check the docs for unless.
vlad_starkov has quit [Read error: Connection reset by peer]
<kostine>
and banned return true if its there
<davy_>
yep, you'd want to pull the array out of the method too
<mootpointer>
The domain term would tend to be "stopword"
joaoh82 has joined #ruby
<kostine>
array could be result of a method or a constant if it doesn't change
bklane has quit [Remote host closed the connection]
phipes has joined #ruby
Megtastique has joined #ruby
<davy_>
even if constant I'd still pull out of the method
<kostine>
if bad_bad_word(x)
<davy_>
BANNED_WORDS = [list]
bklane has joined #ruby
virtualize has quit [Quit: Leaving...]
<mootpointer>
In the end, I think it would probably be a method since it would be likely driven by a config file
mercwithamouth has quit [Ping timeout: 240 seconds]
superscott[8] has quit [Quit: superscott[8]]
<mootpointer>
Having done the stop-wording game before...
hogeo has joined #ruby
<davy_>
yeah, that definitely seems like the right thing to do
mickthenick has quit [Client Quit]
sec^nd has joined #ruby
ldnunes has quit [Quit: Leaving]
belak has joined #ruby
<belak>
Are there any good ruby wrappers for C++?
chrisja has quit [Quit: leaving]
Columcil1e is now known as Columcille
Reach has joined #ruby
komodo has quit [Ping timeout: 240 seconds]
mickthenick has joined #ruby
ElasticElephant has quit [Quit: ChatZilla 0.9.90.1 [Firefox 25.0.1/20131112160018]]
bklane has quit [Ping timeout: 260 seconds]
<bnagy>
no there is only swig
ArchBeOS has quit [Quit: Konversation terminated!]
<bnagy>
you can use FFI if it has a C api
sergicles has joined #ruby
petey has joined #ruby
mickthenick has quit [Client Quit]
bklane has joined #ruby
troyready has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
DouweM has quit [Ping timeout: 248 seconds]
<user5555>
K, I really gave some things a try. I made it so the method works that I'm looking to do. However, I have a bunch of repeating if, elsif, elsif, else stuff going on.
coca_rails has joined #ruby
joaoh82 has quit [Ping timeout: 272 seconds]
<user5555>
If you have a bunch of if elsif stuff going on, is there a method or something that can help avoid this?
joaoh82 has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
nwertman has quit [Ping timeout: 272 seconds]
mickthenick has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<bnagy>
case
<kostine>
and yank logic into methods
<rjhunter>
user5555: if you paste some code, we can offer suggestions more specific to your circumstance
sepp2k1 has quit [Quit: Leaving.]
IceDragon has quit [Ping timeout: 252 seconds]
<user5555>
Ok, I will try to paste it, one second.
<kostine>
in a gist or pasty
IceDragon has joined #ruby
<user5555>
word.scan(/\w+/).each do |word| if word.include?("and") && rounds!=0 array<<word rounds+=1 elsif word.include?("or") && rounds!=0 array<<word rounds+=1 elsif word.include?("the") && rounds!=0 array<<word rounds+=1 elsif word.include?("over") && rounds!=0 array<<word rounds+=1 else array<<word.capitalize rounds+=1 end end
batchitcray has joined #ruby
<user5555>
LOLZ
<user5555>
lets try this again.
<mootpointer>
user5555: Don
<mootpointer>
Don't paste it in here.
<rjhunter>
user5555: in a gist, please, not in the channel
<user5555>
So, round basically means once it goes above 0
hackeron_ has quit [Ping timeout: 260 seconds]
<kostine>
break sentence into words, only capitalize non stop words?
<user5555>
It ignores the first word
mercwithamouth has joined #ruby
p4d4w4n has quit [Client Quit]
<bnagy>
rjhunter: I think this is String#include though :/
hackeron has joined #ruby
gyre007 has joined #ruby
<rjhunter>
bnagy: yeah, I don't think String#include? is what he wants (although it kinda works)
<user5555>
Basically, here is what it is successfully achieving.
<kostine>
what dis it supposed to do
rushed has quit [Read error: Connection reset by peer]
xcv has quit [Ping timeout: 248 seconds]
<user5555>
It turns a texted into capitalized words. Unless they are one of those words.
rushed has joined #ruby
ewnd9 has joined #ruby
<user5555>
Also, if one of those words is in the first position.
joaoh82 has quit []
<user5555>
Then it will do that, because round will equal zero then.
<user5555>
It capitalizes
chomskiii has quit [Ping timeout: 246 seconds]
<user5555>
It then adds one and move on.
phipes has quit [Remote host closed the connection]
<user5555>
So I guess +=1 isn't necessary in the other parts.
<user5555>
Ok, here is what I would rather have instead of an answer.
stevenhaddox has quit [Quit: Zzzz...]
<user5555>
Could someone guide me to a page basically explaining in a situation like this how to avoid so many damn if elsif stuff?
<rjhunter>
user5555: when i mentioned earlier that the code had duplication *inside conditions*, you can reduce duplication by moving it outside the condition
<user5555>
rjhunter: Are you talking about basically putting it in another method then?
<bnagy>
I suspect the whole thing is a oneliner though
Authenticator has joined #ruby
fijimunkii has joined #ruby
colonolGron has quit [Quit: leaving]
<user5555>
Ok, here is my big question.
<mootpointer>
I don't think there's a page.
<mootpointer>
Problems come in many different shapes and sizes.
<rjhunter>
user5555: not necessarily. consider that `rounds += 1` happens at the end of every branch. if it happens at the end anyway, why not move it to after the `if/end` section
CpuID has joined #ruby
<user5555>
rjhunter: I deleted that and just left it in the else part.
<user5555>
rjhunter: It will only fire there anyways.
Loaft has quit [Ping timeout: 264 seconds]
<rjhunter>
user5555: the technique (observe "unconditional conditions", move them to outside) is a useful general technique
koopa has joined #ruby
koopa has quit [Client Quit]
<bnagy>
if you have an exceptional condition for only the very first word, deal with that immediately
<rjhunter>
user5555: and probably still applies to your `rounds != 0`
virtualize has quit [Quit: Leaving...]
maletor has quit [Quit: Computer has gone to sleep.]
ewnd9 has quit [Ping timeout: 260 seconds]
<bnagy>
also probably you can just rewrite this as a map
<davy_>
user5555: you are spending a lot of code checking for something when you know it's only going to affect the first word.
<user5555>
Sorry, also when I say homework, I meant for myself. Nevermind, I will try to solve it myself. I am lost.
<user5555>
But I guess I will just try to go on docs or something.
<rjhunter>
when you have a nest of complicated logic (if/else etc), the general thing you're looking for is to identify which bits are the same and which bits are different
<user5555>
I figured there is some page out there that helps avoid this if else repeating
<user5555>
The code solves my problem.
<davy_>
user5555: spend some time reading the enumerable module docs
<user5555>
But, I am just trying to clean it up, and I already did clean it up somewhat.
allaire has quit []
havenwood has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
<bnagy>
user5555: I already put ^^ up there a line that can compress those 4 elsifs
hamakn has joined #ruby
<user5555>
bnagy: How does "%w(blah bloo blee wah).any? {|s| word.include? s}" solve what my thing does?
vlad_starkov has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
<user5555>
I'll try it in IRb
<user5555>
But I dont' think it is doing the same thing.
<davy_>
kostine: don't just solve his homework for him
<bnagy>
boo ternary
hamakn has joined #ruby
<rjhunter>
booo
<kostine>
:)
maroloccio has joined #ruby
<user5555>
davy_: Its not "homework" for a class, its homework that I set for myself to learn ruby.
batchitcray has quit [Read error: Connection reset by peer]
<bnagy>
which is why you care if we post solutions publicly
Loaft has joined #ruby
<sevenseacat>
even more reason for us not to do it for you
<davy_>
user5555: you say that now, but that's not what it sounded like earlier ;)
batchitcray has joined #ruby
<user5555>
davy_: Sorry for using the word, I forgot that is associated with school, I graduated and have full time job now, lolz.
<kostine>
:/
<bnagy>
lolz OK WE BELIEVE YOU
<sevenseacat>
you dont learn anything if we do it for you
mickthenick has joined #ruby
<davy_>
user5555: read enumerable! =D it is the best and will help solve lots of your problems
tylersmith has quit [Ping timeout: 272 seconds]
<user5555>
enumerables on ruby docs?
<davy_>
yup
<mootpointer>
"<user5555> I dont want to be accussed of cheating, since I technically have solved this and it works."
<davy_>
there is a module called Enumerable
iliketur_ has joined #ruby
<mootpointer>
I have a confuse.
<davy_>
it's used within Array and other things you might want to loop over
<davy_>
it has cool things
<user5555>
mootpointer: I mainly do this because it achieves exactly this.
<user5555>
mootpointer: If I say something else, people just give me the answer.
justsee has joined #ruby
justsee has joined #ruby
casheew_ has joined #ruby
<mootpointer>
Enumerable ftw.
Patchou has quit [Read error: Connection reset by peer]
<davy_>
play around with Enumerable methods in irb
<davy_>
you can use arrays
<user5555>
mootpointer: But the flip sid also happens.
<user5555>
mootpointer: People can also be too condicending and not want to help if I say it too :/.
brianpWins has joined #ruby
<mootpointer>
"I don't want the answer, I just want you to point me in the right direction" seems like a viable middle ground.
<user5555>
mootpointer: So, I guess I don't know how to word it to not give me the answer, but also help me find the answer :/.
xea has quit [Ping timeout: 252 seconds]
<bnagy>
or just think you're lying through your teeth
fdelacruz has joined #ruby
mickthenick has quit [Client Quit]
<bnagy>
09:43 < user5555> PS: Try not to post publicly, I am doing this for homework.
<user5555>
bnagy: If I was lieing, I would just say nothing.
<sevenseacat>
now now
<user5555>
bnagy: Get the answer and move on O.o.
* mootpointer
shuffles off.
<davy_>
ANYWAY, back to helping you learn things
xea has joined #ruby
<rjhunter>
user5555: for the general case of complicated if/else structures, refactorings like "Replace nested conditional with guard clauses" and "Decompose conditional" are the general case (look 'em up, they apply in any language)
<davy_>
rjhunter has been saying some smart things
tylershi_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
<user5555>
rjhunter: I will google that, one second.
iamjarvo_ has quit [Remote host closed the connection]
casheew has quit [Ping timeout: 248 seconds]
flubba has joined #ruby
iamjarvo_ has joined #ruby
Tamae has joined #ruby
Hanmac1 has quit [Ping timeout: 248 seconds]
Voodoofish430 has quit [Ping timeout: 248 seconds]
predator117 has quit [Ping timeout: 248 seconds]
ambushsabre has quit [Ping timeout: 248 seconds]
tylershipe has quit [Read error: Connection reset by peer]
bricker`1ork has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
closures999 has quit [Ping timeout: 248 seconds]
bricker`work has quit [Ping timeout: 248 seconds]
g0bl1n has quit [Ping timeout: 248 seconds]
Elfix has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
Styles has joined #ruby
predator117 has joined #ruby
freggles has quit [Remote host closed the connection]
<Styles>
Hey guys I"m using RVM to install ruby and am running into an issue
g0bl1n has joined #ruby
<rjhunter>
Styles: do you see an error message?
<Styles>
rvm use system but it's not linking right. It's going to /usr/local/rvm/bin/ruby
closures999 has joined #ruby
ambushsabre has joined #ruby
<Styles>
instead of /usr/bin/ruby
Elfix has joined #ruby
Voodoofish430 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
Hanmac has joined #ruby
<mootpointer>
Isn't rvm just a shim?
<Styles>
I have no idea
<mootpointer>
So it will still point to the same place.
<Styles>
I need this for flvtool2
<bnagy>
no chruby does shims
nifty has joined #ruby
<mootpointer>
Yeah. It's been a long time since I've used rvm.
noob101 has joined #ruby
davy_ has quit [Remote host closed the connection]
<bnagy>
rvm is.. :<
Styles has left #ruby ["Leaving"]
Styles has joined #ruby
<Styles>
Well ruby on RPM forge is broken
<Styles>
soooooooo
<noob101>
How do I have random numbers 1-11 using rand?
<noob101>
How do I have random numbers 1-11 using rand? Any suggestions please?
<bnagy>
Styles: do you really need a systemwide install?
<nifty>
Styles: is there a problem with using RVM/rbenv/compiling from source?
<noob101>
rand(1,11) doesn't work.
<Styles>
bnagy, yeah flvtool2 requires it
<bnagy>
imho, and this is controversial, rvm is a bad choice, ESPECIALLY for systemwide
<Styles>
nifty, not exactly I just have RVM installed already :p
<bnagy>
I would go with a distro package
<bnagy>
otherwise chruby
<sevenseacat>
i'd go with chruby :)
<nifty>
noob101: try rand(1..11)
<Styles>
CentOS didin't have one and RPMForge is broken
<Styles>
chruby?
<bnagy>
least that's a much simpler path switcher
<nifty>
a number .. a number is a range
<bnagy>
hahah centos
<nifty>
rand expects a range
<nifty>
;)
<bnagy>
sorry :(
<noob101>
nifty thank you, You are a life saver!!!!
<noob101>
Thank you nifty nifty!
<nifty>
bangy: I thought it might be local just for development
<nifty>
no problem nood101
Hanmac1 has joined #ruby
shadoi1 has quit [Ping timeout: 245 seconds]
<nifty>
Styles: Why won't compiling from source work? Just curious what issues you might have for my own reference.
justsee has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
<bnagy>
there's even an rpm thing that makes rpms out of source tarballs afair
havenwood has joined #ruby
justsee has joined #ruby
<noob101>
I am having trouble with defining my own methods. Any recommendations?
<sevenseacat>
def method_name; end ?
<bnagy>
landscape gerdening
momomomomo has quit [Quit: momomomomo]
<sevenseacat>
lol
<bnagy>
*gardening
nomenku__ has joined #ruby
<bnagy>
it's outdoor work, the pay is OK...
jkhwan has quit [Remote host closed the connection]
<rjhunter>
noob101: what kind of trouble are you having?
<noob101>
It's confusing.^
araujo has joined #ruby
<noob101>
I'll try to define my own method right now.
<noob101>
Tell me if this is correct.
jkhwan has joined #ruby
<bnagy>
weeks this has been going on
culturelabs has joined #ruby
phipes has joined #ruby
<sevenseacat>
poor bnagy.
<noob101>
def dealer(user_cards)
<noob101>
user_cards + rand(1..11)
Loaft has quit [Ping timeout: 272 seconds]
<noob101>
end
<sevenseacat>
and the problem is?
nomenkun has joined #ruby
<rjhunter>
noob101: that's correct syntax
CaptainJet has quit [Read error: Connection reset by peer]
<noob101>
I am working on a game, 21. I am trying to excersize my programming skills.
<noob101>
I am only 16.
<noob101>
Oh really?
havenwood has quit [Ping timeout: 240 seconds]
<noob101>
How can a user use my method?
flubba has quit [Remote host closed the connection]
<rjhunter>
noob101: it might not do what you expect it to do, but it's syntactically correct
nomenkun_ has quit [Ping timeout: 272 seconds]
<kostine>
thats funny i wrote a blackjack game in ruby to test some math a while back :)
<rjhunter>
noob101: dealer(7)
echevemaster has quit [Quit: Leaving]
<rjhunter>
noob101: puts dealer(7)
<noob101>
Wait .
<noob101>
I don't need to use gets.chomp or something?
<sevenseacat>
or something, indeed
neoice has joined #ruby
gyzmodo has joined #ruby
falood has quit [Remote host closed the connection]
CaptainJet has joined #ruby
<rjhunter>
noob101: gets is for taking input and putting it into your Ruby code (like a variable)
agent_white has quit [Quit: Lost terminal]
nhhagen has joined #ruby
nomenku__ has quit [Ping timeout: 272 seconds]
coca_rails has quit [Remote host closed the connection]
<noob101>
I think I will need to paste my code up here.
Loaft has joined #ruby
<noob101>
I need to work on it.
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sergicles has quit [Quit: sergicles]
<rjhunter>
noob101: what resources are you using to learn programming?
jkhwan has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
phipes has quit [Read error: Connection reset by peer]
phipes_ has joined #ruby
<noob101>
LearnStreet
agent_white has joined #ruby
<noob101>
I went to CodeNow
closures999 has quit [Ping timeout: 240 seconds]
bogeyd6 has joined #ruby
jcarouth` is now known as jcarouth
nomenkun has quit [Ping timeout: 260 seconds]
<noob101>
I use codecademy
<noob101>
CodeNow = A non profit orgranization that teaches young adults how to code for free I attended their program for 6 weeks and got a free laptop
withnale_ has quit [Read error: Operation timed out]
<noob101>
rjhunter, how do I make sure if someone uses my program, whatever input they put, it will be stored in my temporary variable in my defined method?
closures999 has joined #ruby
raphaelivan has joined #ruby
<sevenseacat>
you dont have a temporary variable
zzak_ is now known as zzak
<sevenseacat>
and you're not storing anything
kobain_ has joined #ruby
withnale has joined #ruby
<sevenseacat>
6 weeks and you didnt learn this stuff?
<noob101>
sevenseacat how much can you learn in 6 weeks, I was working on new stuff. I am relatively new to programming.
eka has quit [Quit: Computer has gone to sleep.]
<rjhunter>
noob101: variables work the same way no matter what you put in them -- math, user input, or calling a method
kobain has quit [Read error: Connection reset by peer]
<noob101>
I did activities and projects.
<rjhunter>
noob101: my_var = 1
<rjhunter>
noob101: my_var = 'hello'
<rjhunter>
noob101: my_var = gets
<rjhunter>
noob101: those all store a value in the variable called `my_var`
<noob101>
rjhunter, I will give you an example.
komodo has joined #ruby
<noob101>
I want to develop a method that it's purpose is to be a command.
nhhagen has quit [Ping timeout: 252 seconds]
<noob101>
I am developing this game called 21, everyone is familar with it.
<rjhunter>
noob101: be careful, methods and commands are quite different things
vlad_starkov has quit [Read error: Connection reset by peer]
<noob101>
Gotchya, like I was stating.
rezzack has quit [Quit: Leaving.]
<noob101>
If the user puts "h", the method would run I guess so whatever value the variable is for the cards he has then it would increase.
fdelacruz has quit [Quit: EPIC5-1.1.6[1699] - amnesiac : WHAT? THE ROOF IS ON FIRE?]
raphaelivan has quit [Client Quit]
<noob101>
Example : If he has 10 as his value of cards and he puts in an input of "h" = hit, it would call a method I guess and add more value
nifty has quit [Ping timeout: 240 seconds]
cgcardona_ has joined #ruby
<noob101>
the method would include a rand which would randomly give him any number 1-11 since those are the values in the game of 21.
<noob101>
Are you with me rjhunter, I hope so.
vpretzel has quit [Quit: Adios!]
<bnagy>
popcorn.gif
<rjhunter>
noob101: OK, it sounds like you've got a reasonable idea of what you want. There are a couple of things that might trip you up.
<noob101>
great.
mickthenick has joined #ruby
timonv has joined #ruby
kaiza has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 248 seconds]
<cgcardona_>
Hello - I'm currently using this flow with the oauth2 gem to generate an auth_token and refresh_token in the coin base api. https://gist.github.com/cgcardona/7884879 I can't seem to figure out how to turn the refresh token into fresh auth_token. Any suggestions? Thanks in advance.
mickthenick has quit [Client Quit]
lfox has joined #ruby
<rjhunter>
noob101: before I get into the potential obstacles, I'll give you a couple of suggestions you might find helpful
<noob101>
rjhunter. May we please chat with PM?
<noob101>
Do you mind?
mgberlin has joined #ruby
<noob101>
I like 1 on 1
<rjhunter>
noob101: i don't PM, sorry
dseitz has joined #ruby
momomomomo has joined #ruby
<noob101>
No problem. Continue please.
jwingfi has joined #ruby
timonv has quit [Ping timeout: 272 seconds]
<pontiki>
felicitation, rubyists
mickthenick has joined #ruby
tylersmith has joined #ruby
falood has joined #ruby
rburton- has joined #ruby
w4pm_ has quit [Ping timeout: 240 seconds]
falood has quit [Remote host closed the connection]
mickthenick has quit [Client Quit]
<rjhunter>
noob101: The first suggestion is to try isolate any problem you have. In this case, you've described increasing variables, user input, and method calls. That's at least three separate problems, each of which could interfere with your understanding of the others.
jonathanwallace has joined #ruby
flubba has joined #ruby
echevemaster has joined #ruby
<rjhunter>
noob101: Try to get a program working with increasing variables. Then try another program with user input, but no increasing variables. Then another program with method calls, but no user input and no increasing variables.
<rjhunter>
noob101: Once you're comfortable with each concept separately, you can try adding in one at a time.
mkevin has quit [Quit: mkevin]
Elfix has quit [Read error: Operation timed out]
Elfix has joined #ruby
<rjhunter>
noob101: When you mix the new things together, it's often hard to tell which part or parts are going wrong.
jwingfi has quit [Read error: No route to host]
fdelacruz has joined #ruby
jwingfi has joined #ruby
jpinnix has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
varfoo has joined #ruby
<noob101>
rjhunter thanks a lot.
<rjhunter>
noob101: I have some other advice but it'll be more useful once you've written those separate programs :-)
<noob101>
Where's nifty, he is a big help to me.
jpinnix_ has joined #ruby
ItSANgo has quit [Read error: Connection reset by peer]
<noob101>
to be honest, I don't have time because I have school tomorrow but for another day. The advice would settle well for me.
<noob101>
Thanks rjhunter.
<noob101>
nifty if you can see this message please add me.
ItSANgo has joined #ruby
<rjhunter>
nifty was here earlier but not right now
DeProdigy has quit [Ping timeout: 246 seconds]
mickthenick has joined #ruby
mickthenick is now known as bigbals
ambushsa_ has joined #ruby
bigbals is now known as safsd
ambushsabre has quit [Read error: Connection reset by peer]
mkevin has joined #ruby
heidi has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
sensen has joined #ruby
<user5555>
Anyhow, thanks for everyones help. I am trying to learn ruby on my freetime outside work.
<user5555>
I was trying to not get the answer given to me basically is all. Sorry for all the confusion :/.
jamesaanderson has joined #ruby
mkevin has quit [Client Quit]
kevinykchan has joined #ruby
user5555_ has joined #ruby
<mgberlin>
so earlier today I was looking at a Project Euler solution that found the prime factorization of a number
fdelacruz has quit [Quit: EPIC5-1.1.6[1699] - amnesiac : when you're talking to yourself, and nobody's home]
<mgberlin>
i can't find the code now
<mgberlin>
but someone had used (0..2).find {block} in their solution
hamakn has quit [Remote host closed the connection]
<user5555_>
Anyhow, tahnks for all your guys help.
<mgberlin>
but range#find isn't in the documentation
virtualize has joined #ruby
<rjhunter>
user5555: I hope you find what you seek. Practicing to improve the design of existing code is a long but fruitful road.
<mgberlin>
can anyone tell me where to find out more about this method?
hamakn has joined #ruby
bigkevmcd has quit [Ping timeout: 264 seconds]
<user5555_>
I am currently learning ruby outside work is all.
user5555 has quit [Ping timeout: 250 seconds]
iliketu__ has joined #ruby
<user5555_>
So, I just try not to get the answers from people basically :).
<rjhunter>
mgberlin: Range#find is actually Enumerable#find
<mgberlin>
would I just do that with: class Thingy < Enumerable
<havenwood>
mgberlin: nope, they mixin Enumerable, they don't inherit from it
<rjhunter>
mgberlin: close, with `include Enumerable`.
<havenwood>
mgberlin: Enumerable is a module not a class.
<mgberlin>
got it
mickthenick has joined #ruby
nateberkopec has joined #ruby
<rjhunter>
mgberlin: Ruby classes only have a single parent, but can have many mixed-in modules
<mgberlin>
wait so is a gem a module?
<havenwood>
mgberlin: a gem could be either a module or a class
user5555_ has quit [Ping timeout: 250 seconds]
<havenwood>
mgberlin: up to the gem author
<rjhunter>
mgberlin: a gem is a way to package up some ruby code for distribution. doesn't have to be any particular ruby code (class, module, whatever)
bklane has left #ruby ["Leaving..."]
<rjhunter>
mgberlin: a Module is a Ruby concept like a Class or a Method
ryotarai has quit [Ping timeout: 260 seconds]
<rjhunter>
mgberlin: in fact, a Class happens to be a Module :-)
Reach has quit [Read error: Connection reset by peer]
Ogion has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Ping timeout: 246 seconds]
hogeo has quit [Remote host closed the connection]
felixjet__ has quit [Quit: Leaving]
user5555 has quit [Quit: Page closed]
nateberkopec has quit [Ping timeout: 272 seconds]
Reach has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
Ogion has joined #ruby
kevinykchan has quit [Ping timeout: 272 seconds]
<havenwood>
mgberlin: All Classes superclass is Module (whose superclass is Object) but some Classes mixin other modules (whose class is Module). Module's class is Class.
<mgberlin>
wait, you can pull up irb on this channel?
shoMo has joined #ruby
iliketu__ has quit [Ping timeout: 260 seconds]
<havenwood>
mgberlin: Well, it is a service called eval-in. Only in this channel for demonstration purposes. But you can go to eval.in and run Ruby code there (or better yet locally in Pry).
momomomomo has joined #ruby
<mgberlin>
yeah, I use pry all the time, i was just impressed by that little maneuver.
falood has joined #ruby
<havenwood>
mgberlin: htts://eval.in is pretty nifty, can run mruby, 1.8, 2.1, lots of options :)
<nhmood>
I am trying to use Regexp.escape() but the output I am getting doesn't seem to make sense
<nhmood>
When I try Regexp.escape("..") I get "\\.\\." whereas I would espect "\.\.", is there something I am missing?
blaskovicz has quit [Client Quit]
robbyoconnor has joined #ruby
<nhmood>
Also, I'm noticing that using " vs ' has a difference in output for some strings ('\*?{}.' vs "\*?{}.", as posted on RubyDoc has different outputs)
<nhmood>
bnagy: I'm not following, where is the extra \ coming from (or going??)
<bnagy>
nowhere. It doesn't exist.
nifty has quit [Ping timeout: 240 seconds]
<rjhunter>
nhmood: it's only showing up when you are looking at an inspectable representation of a string
dhruvasagar has joined #ruby
fmendez has quit [Quit: fmendez]
scruple has joined #ruby
hogeo has quit [Remote host closed the connection]
<nhmood>
Hmm...so if I was to use that return string as my actual regex, it should work correctly?
<rjhunter>
>> '\' == "\\"
<eval-in_>
rjhunter => /tmp/execpad-325c46a99c5e/source-325c46a99c5e:2: unterminated string meets end of file ... (https://eval.in/77876)
s2013 has quit [Ping timeout: 260 seconds]
Arzaga has joined #ruby
<bnagy>
lulz backslashes. Champagne comedy every time.
<rjhunter>
oops
diegoviola has quit [Quit: WeeChat 0.4.2]
kitak_ has quit [Remote host closed the connection]
<bnagy>
nhmood: yeah. What rjhunter said. You're just seeing irb saying "this is what you would need to type to get this string"
<nhmood>
So if I wanted to do a #gsub on the return from Regexp.escape(), I would use the singular '\' as opposed to the '\\', or is the return string going to be in the "type to get this string" format
kitak has joined #ruby
nisstyre has quit [Quit: Leaving]
<bnagy>
why would you.. whatever. There's only one backslash there.
hamakn has quit [Remote host closed the connection]
<bnagy>
but if you want to tell the interpreter you're looking for a backslash you're most likely going to have to escape it
<bnagy>
it's really hard to get \ :( even %q hates it
beardedninja has joined #ruby
IceDragon has quit [Quit: Space~~~]
<rjhunter>
nhmood: to clarify, you're only seeing the "type this string" format because IRB shows you return values using 'inspect'. if you do anything to the string (like `puts` it) you'll see there's no extra \
<nhmood>
I may be doing the regex thing totally wrong
<nhmood>
but I'm seeing the opposite behavior
kitak has joined #ruby
ewnd9 has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
<nhmood>
Not opposite I guess, it is as if the extra \ is actually there and it is messing up my regex down the road
<rjhunter>
let's take the problem up a level or two
<pipecloud>
To eleven!
ace_striker has quit [Ping timeout: 250 seconds]
<rjhunter>
it sounds like you're trying to match filenames using patterns like 'src/*.cpp'
<pontiki>
as an engineer, i can make that go up to twelve
<rjhunter>
those patterns are called "globs"
<rjhunter>
and ruby can deal with them natively
Arzaga has quit [Quit: Computer has gone to sleep.]
<rjhunter>
no regexes necessary
s2013 has joined #ruby
ewnd9 has quit [Excess Flood]
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
ner0x has quit [Quit: Leaving]
<nhmood>
rjhunter: I am globbing for Files / Dirs then using this regex block to ignore certain files/dirs
<nhmood>
rjhunter: I guess I could roll the things that should be ignored into the initial Glob?
saarinen has quit [Quit: saarinen]
elux has quit [Quit: Leaving...]
iliketur_ has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
dkamioka has quit [Ping timeout: 248 seconds]
yfeldblum has joined #ruby
michaeldeol has joined #ruby
zz_tsykoduk is now known as tsykoduk
<pipecloud>
As a supreme moral vigilant guardian, I demand it go up to 14.
mansi has quit [Ping timeout: 260 seconds]
ambushsa_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rjhunter>
nhmood: Rake (which comes with Ruby these days) has a bunch of handy things for working with files and patterns: FileList['myproject/**].exclude('**/src/*.cpp')
virtualize has quit [Ping timeout: 246 seconds]
<fijimunk1i>
hat
<pontiki>
hey, this is accorded neutral territory, innit?
hogeo has joined #ruby
ewnd9 has joined #ruby
Megtastique has quit []
roodee has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
phansch has joined #ruby
n88_ is now known as n88
nowthatsamatt has quit [Quit: nowthatsamatt]
ewnd9 has quit [Max SendQ exceeded]
iliketur_ has joined #ruby
ewnd9 has joined #ruby
mansi has joined #ruby
lagweezle is now known as plagueweezle
ewnd9 has quit [Read error: Connection reset by peer]
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
orionstein_away is now known as orionstein
ewnd9 has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
psyl0n has quit [Remote host closed the connection]
corehook has joined #ruby
flubba has quit [Remote host closed the connection]
kevinykchan has joined #ruby
cgcardona_ has quit [Quit: cgcardona_]
tylersmith has joined #ruby
ewnd9 has joined #ruby
ace_striker has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
L8D has quit [Ping timeout: 272 seconds]
phipes has quit [Remote host closed the connection]
OdNairy has joined #ruby
tylersmith has quit [Ping timeout: 248 seconds]
ewnd9 has joined #ruby
mootpointer has joined #ruby
mansi has quit [Remote host closed the connection]
brianpWins has joined #ruby
nateberkopec has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
nhhagen has joined #ruby
zz_N00D is now known as CripperZ
CripperZ is now known as N00D
vlad_starkov has quit [Read error: Connection reset by peer]
corehook has quit [Quit: Leaving.]
ewnd9 has quit [Read error: Connection reset by peer]
kobain has joined #ruby
kobain_ has quit [Ping timeout: 246 seconds]
s2013 has quit [Ping timeout: 248 seconds]
lmickh has quit [Quit: lmickh]
mansi has quit [Ping timeout: 272 seconds]
freakazoid0223 has quit [Ping timeout: 240 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
dkamioka has joined #ruby
ewnd9 has joined #ruby
hiyosi_ has joined #ruby
tsykoduk is now known as zz_tsykoduk
dkamioka has quit [Read error: Connection reset by peer]
g0bl1n has quit [Ping timeout: 260 seconds]
dkamioka has joined #ruby
hamakn has joined #ruby
browndawg has joined #ruby
parduse has quit [Killed (sendak.freenode.net (Nickname regained by services))]
parduse has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
Lewis_ has quit [Remote host closed the connection]
hiyosi_ has quit [Ping timeout: 260 seconds]
varfoo has quit [Ping timeout: 272 seconds]
hamakn has quit [Remote host closed the connection]
ewnd9 has joined #ruby
hamakn has joined #ruby
bnjamin has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
sensen has joined #ruby
horrorvacui has quit [Read error: Operation timed out]
hamakn has joined #ruby
kobain has quit []
hamakn has quit [Read error: Connection reset by peer]
orionstein is now known as orionstein_away
hamakn has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
dukz has joined #ruby
mary5030 has quit [Remote host closed the connection]
lyanchih has quit [Ping timeout: 260 seconds]
flubba has joined #ruby
ewnd9 has joined #ruby
lyanchih has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
sensen has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
dkamioka has quit [Ping timeout: 248 seconds]
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
closures999 has quit [Remote host closed the connection]
mmcdaris has joined #ruby
dukz has quit [Remote host closed the connection]
ewnd9 has quit [Max SendQ exceeded]
nhmood has quit [Quit: Page closed]
dukz has joined #ruby
ewnd9 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
valesk has quit [Remote host closed the connection]
OdNairy has joined #ruby
varfoo has joined #ruby
scruple has quit [Quit: leaving]
kaldrenon has joined #ruby
flubba has quit [Remote host closed the connection]
nouitfvf_ has quit [Ping timeout: 246 seconds]
nwertman has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
mootpointer has quit [Quit: ENOCAFFEINE.]
kiri has joined #ruby
hamakn has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 260 seconds]
freakazoid0223 has joined #ruby
hamakn has joined #ruby
zz_tsykoduk is now known as tsykoduk
schaerli has joined #ruby
iliketur_ has quit [Ping timeout: 272 seconds]
iliketur_ has joined #ruby
flubba has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
mootpointer has joined #ruby
mgberlin has quit [Quit: mgberlin]
w4pm has quit [Read error: Operation timed out]
io_syl has joined #ruby
nifty has joined #ruby
CaptainJet has quit []
weems has quit [Ping timeout: 260 seconds]
ahbrendan has joined #ruby
timonv has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
bnjamin has joined #ruby
dkamioka has joined #ruby
DeanH has quit [Ping timeout: 272 seconds]
Asitha has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
mootpointer has quit [Quit: Exit, pursued by a bear.]
jrobeson has joined #ruby
sayan has joined #ruby
clint_s has quit [Ping timeout: 272 seconds]
clint_s has joined #ruby
nifty has quit [Ping timeout: 272 seconds]
cha1tanya_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamesfung14 has quit [Ping timeout: 272 seconds]
fgo has quit [Remote host closed the connection]
davy_ has joined #ruby
ewnd9 has quit [Ping timeout: 272 seconds]
flubba has quit [Remote host closed the connection]
wongon has quit [Quit: wongon]
fgo has joined #ruby
dkamioka has quit [Ping timeout: 248 seconds]
tsykoduk is now known as zz_tsykoduk
nateberkopec has joined #ruby
gianlucadv has joined #ruby
noop has joined #ruby
ewnd9 has joined #ruby
petey has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
vlad_starkov has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
kaiza has joined #ruby
hamakn_ has quit [Remote host closed the connection]
ewnd9 has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
ewnd9 has joined #ruby
bigkevmcd has joined #ruby
schaerli has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
maletor has joined #ruby
petey has quit [Ping timeout: 260 seconds]
hamakn_ has joined #ruby
nhhagen has quit [Ping timeout: 246 seconds]
hamakn has quit [Read error: Connection reset by peer]
cbetta has quit [Changing host]
cbetta has joined #ruby
LexicalScope has quit [Ping timeout: 260 seconds]
w4pm has joined #ruby
jamesfung14 has joined #ruby
hiyosi_ has joined #ruby
michaeldeol has quit [Remote host closed the connection]
dseitz has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 248 seconds]
hiyosi_ has quit [Ping timeout: 240 seconds]
w4pm has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
sensen has joined #ruby
brtdv has joined #ruby
ewnd9 has quit [Read error: No route to host]
ewnd9 has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
butblack has quit [Quit: butblack]
ewnd9 has joined #ruby
bnjamin has quit [Ping timeout: 260 seconds]
ehc has quit [Quit: ehc]
carraroj has joined #ruby
sensen has quit [Ping timeout: 246 seconds]
cbetta is now known as cbetta_afk
ewnd9 has quit [Max SendQ exceeded]
ewnd9 has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
larissa has quit [Quit: Leaving]
ewnd9 has joined #ruby
jamesfung14 has quit [Quit: Leaving]
nwertman has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
amritanshu_RnD has joined #ruby
ewnd9 has joined #ruby
Tentra has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
ewnd9 has joined #ruby
tonni has joined #ruby
ewnd9 has quit [Max SendQ exceeded]
ewnd9 has joined #ruby
vlad_starkov has joined #ruby
mary5030 has joined #ruby
fgo has joined #ruby
shedd has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 240 seconds]
kitak has joined #ruby
zarul has quit [Ping timeout: 246 seconds]
taion809 has quit [Ping timeout: 240 seconds]
ewnd9 has quit [Max SendQ exceeded]
taion809 has joined #ruby
fgo has quit [Read error: No route to host]
timonv has joined #ruby
fgo has joined #ruby
ewnd9 has joined #ruby
roolo has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
kitak has quit [Read error: Connection reset by peer]
ewnd9 has quit [Max SendQ exceeded]
kitak has joined #ruby
kitak_ has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
tjad has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
Reach has quit [Remote host closed the connection]
nobitanobi has quit [Ping timeout: 240 seconds]
ewnd9 has quit [Max SendQ exceeded]
thesheff17 has quit [Read error: Operation timed out]
ewnd9 has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
browndawg has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker`LA has quit [Ping timeout: 246 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
klaut has joined #ruby
brtdv has quit []
michaeldeol has joined #ruby
aagdbl has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
brtdv has joined #ruby
dseitz has joined #ruby
michaeldeol has quit [Ping timeout: 240 seconds]
mmcdaris has quit [Quit: mmcdaris]
rjhunter has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
lyanchih has quit [Client Quit]
dkamioka has joined #ruby
brtdv has quit []
shime has joined #ruby
brtdv has joined #ruby
wongon has joined #ruby
sensen has joined #ruby
charliesome has joined #ruby
wongon has quit [Client Quit]
OdNairy has joined #ruby
ewnd9 has joined #ruby
lyanchih has joined #ruby
dkamioka has quit [Ping timeout: 260 seconds]
noop has quit [Ping timeout: 260 seconds]
shedd has joined #ruby
nhhagen has joined #ruby
nateberkopec has joined #ruby
charliesome has quit [Client Quit]
ewnd9 has quit [Max SendQ exceeded]
shime has quit [Ping timeout: 260 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 272 seconds]
mk_qi has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
io_syl has quit []
gyzmodo has quit [Ping timeout: 246 seconds]
nateberkopec has quit [Ping timeout: 272 seconds]
dagobah has joined #ruby
phansch has quit [Remote host closed the connection]
wongon has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
fandikurnia01 has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
fandikurnia01 has joined #ruby
vlad_starkov has joined #ruby
Kayzon has quit [Read error: Connection reset by peer]
noop has joined #ruby
shadoi1 has joined #ruby
wongon has quit [Client Quit]
fandikurnia01 has quit [Read error: Connection reset by peer]
fandikurnia01 has joined #ruby
fandikurnia01 has quit [Read error: Connection reset by peer]
phantomcircuit has quit [Excess Flood]
phantomcircuit_ has joined #ruby
fandikurnia01 has joined #ruby
schaerli has joined #ruby
batchitcray has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
shadoi1 has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
bnjamin has joined #ruby
d45h has joined #ruby
roodee has quit [Remote host closed the connection]
fandikurnia01 has quit [Ping timeout: 272 seconds]
<gr33n7007h>
Got a question about pry, say you write a function, class or any piece of code then execute in ipython, after execution you can press the up arrow and get all lines of code again. Is their a way of doing this in pry instead of line by line?
Mon_Ouie has quit [Ping timeout: 246 seconds]
andrewt has quit [Quit: Connection closed for inactivity]
YOURBESTFRIEND is now known as FlashCode`
kostine has quit [Quit: kostine]
kaiza has quit [Quit: Leaving]
<banisterfiend>
gr33n7007h look at the `play` command
<banisterfiend>
gr33n7007h and `edit`
zoee has joined #ruby
FlashCode` is now known as YOURBESTFRIEND
dukz has quit [Remote host closed the connection]
<gr33n7007h>
banisterfiend, digging into them now
vlad_starkov has quit [Remote host closed the connection]
Arzaga has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
dukz_ has joined #ruby
tesuji has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
vlad_starkov has joined #ruby
nouitfvf has joined #ruby
amacgregor has joined #ruby
dukz_ has quit [Remote host closed the connection]
aapzak has joined #ruby
dukz has joined #ruby
zipper has quit [Remote host closed the connection]
zipper has joined #ruby
h_kon has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
weems has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
carraroj has quit [Quit: Konversation terminated!]
maletor has quit [Quit: Computer has gone to sleep.]
nettoweb has joined #ruby
aganov has joined #ruby
ace_striker has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 260 seconds]
roolo has quit [Quit: Leaving...]
zipper has quit [Ping timeout: 240 seconds]
Arzaga has quit [Quit: Computer has gone to sleep.]
kevinykchan has joined #ruby
zipper has joined #ruby
jprovazn has joined #ruby
jhaals has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
hamakn_ has quit [Remote host closed the connection]
ws2k3 has joined #ruby
CpuID has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
charliesome has joined #ruby
ahawkins has joined #ruby
dangerousdave has joined #ruby
Apane has quit [Ping timeout: 272 seconds]
noop has quit [Ping timeout: 272 seconds]
jhaals has quit [Ping timeout: 248 seconds]
alup has joined #ruby
beardedninja has quit [Ping timeout: 260 seconds]
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
beardedninja has joined #ruby
threesome has joined #ruby
michaeldeol has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
jhaals has joined #ruby
yfeldblum has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
OdNairy has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Ping timeout: 246 seconds]
bnjamin has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
relix has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
aganov has quit [Quit: Leaving]
shime has joined #ruby
aganov has joined #ruby
LostMonk has quit [Read error: Connection reset by peer]
LostMonk has joined #ruby
yfeldblum has joined #ruby
dkamioka has quit [Ping timeout: 248 seconds]
fgo has joined #ruby
avril14th has joined #ruby
shedd has joined #ruby
marcgg has joined #ruby
nateberkopec has joined #ruby
petey has joined #ruby
ahawkins_ has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
marcgg_ has quit [Ping timeout: 245 seconds]
dawkirst_ has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
ValicekB has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Ping timeout: 260 seconds]
ahawkins has quit [Ping timeout: 246 seconds]
claymore has joined #ruby
noop has joined #ruby
petey has quit [Ping timeout: 246 seconds]
ahawkins_ has quit [Ping timeout: 272 seconds]
mansi has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
nhhagen has joined #ruby
troessner has joined #ruby
ValicekB has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
akonny has joined #ruby
falood has quit []
Floydzy has joined #ruby
olivier_bK has joined #ruby
Xeago has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
sjuxax has joined #ruby
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
OdNairy has joined #ruby
Floydzy has quit [Client Quit]
<sjuxax>
Hello. I have code that needs to run on both 1.9.3 and 2.0.0. I catch exceptions on HTTP timeouts, and 1.9.3 returns EOFError while 2.0.0 returns Net::ReadTimeout. How can I tell my rescue block to act on either exception when Net::ReadTimeout doesn't exist in 1.9.3?
ValicekB has quit [Ping timeout: 246 seconds]
Hanmac1 is now known as Hanmac
rushed has joined #ruby
sng|afk has quit [Ping timeout: 252 seconds]
iliketur_ has quit [Quit: zzzzz…..]
fandikurnia01 has joined #ruby
Vaibhav_Rajput has joined #ruby
<Vaibhav_Rajput>
how to install rvm in /bin directory in ubuntu 12
<Vaibhav_Rajput>
Do I need to do some trick here "curl -L https://get.rvm.io | bash -s"
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<tobiasvl>
why do you need to install it in /bin?
<YOURBESTFRIEND>
the point of rvm is to not install them there
<Vaibhav_Rajput>
but I wanted to be.
<Hanmac>
sjuxax: begin ... <code> rescue Net.const_defined?(:ReadTimeout) ? Net::ReadTimeout : EOFError; end
<tobiasvl>
Vaibhav_Rajput: but why?
dukz has quit [Remote host closed the connection]
<Vaibhav_Rajput>
I want to hardcode ruby path
vlad_starkov has joined #ruby
<Vaibhav_Rajput>
then what is the best location to install it?
<Hanmac>
Vaibhav_Rajput: are you sure you want /bin and not /usr/bin ??
fgo has joined #ruby
<Vaibhav_Rajput>
HAnmac, /usr/bin is fine
<YOURBESTFRIEND>
the default one
<Vaibhav_Rajput>
Hanmac, /usr/bin is fine
_Andres has joined #ruby
davy_ has quit [Remote host closed the connection]
Macaveli has joined #ruby
<Hanmac>
/usr/local/bin is better
<Vaibhav_Rajput>
^ ok fine so how I can install there?
avril14th has quit [Remote host closed the connection]
<tobiasvl>
Vaibhav_Rajput: why do you want to hardcode it btw? why not just use ubuntu's default path?
shedd has joined #ruby
<sjuxax>
Hanmac: Thanks, wasn't aware of const_defined?
iliketur_ has joined #ruby
iliketur_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<Vaibhav_Rajput>
tobiasvl, hardcode is worst thing yeah.
<tobiasvl>
yes. so why do you want to do it?
roolo has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
avril14th has joined #ruby
<tobiasvl>
<Vaibhav_Rajput> I want to hardcode ruby path
dukz has joined #ruby
<Vaibhav_Rajput>
I want to make executable of my ruby script so for that I have to add path on top of the rb file. Then I wanted to release it for testing to test team. How to give ruby path there then?
pranny has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
workmad3 has joined #ruby
<tobiasvl>
oh, the shebang?
lurch_ has joined #ruby
<Hanmac>
Vaibhav_Rajput: use "#!/usr/bin/env ruby"
<tobiasvl>
yes that
<Vaibhav_Rajput>
will that take care of any ruby path?
<tobiasvl>
yes
<Vaibhav_Rajput>
oh thanks let me try then
nari has quit [Ping timeout: 245 seconds]
gstamp has joined #ruby
joaoh82 has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
TMM has quit [Ping timeout: 240 seconds]
nvrch has joined #ruby
apeiros has joined #ruby
shedd has quit [Ping timeout: 272 seconds]
avril14th has quit [Remote host closed the connection]
phansch has joined #ruby
phil_b has joined #ruby
ValicekB has joined #ruby
avril14th has joined #ruby
canton7-mac has joined #ruby
bluOxigen has joined #ruby
ephemerian has joined #ruby
avril14th has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
DouweM has joined #ruby
michaeldeol has joined #ruby
bnjamin has joined #ruby
altvnk has joined #ruby
klaut has quit [Remote host closed the connection]
avril14th has joined #ruby
<olivier_bK>
hy all
bluOxigen has quit [Ping timeout: 240 seconds]
<Hanmac>
shevy: look your new "best friend" is there ;P
schaerli has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 240 seconds]
zz_tsykoduk is now known as tsykoduk
bluOxigen has joined #ruby
<shevy>
wat
<shevy>
you need to keep in mind that I don't remember anything from +3 days ago Hanmac ;)
<Hanmac>
bufferoverflow? ;P
ahawkins has joined #ruby
fgo has joined #ruby
fntzr has joined #ruby
nomenkun has joined #ruby
nomenkun has quit [Remote host closed the connection]
dukz has quit [Remote host closed the connection]
obs has joined #ruby
dukz has joined #ruby
<shevy>
no
bnjamin has quit [Ping timeout: 260 seconds]
<shevy>
I never really store IRC in any buffer
<shevy>
I just idle away and forget
kiri has quit [Ping timeout: 246 seconds]
rootshift has joined #ruby
rootshift has quit [Client Quit]
karupanerura is now known as zz_karupanerura
dangerousdave has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Hanmac>
Xeago: did you try to google the error message "SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed" in combination with OSX ?
zipper has quit [Ping timeout: 240 seconds]
dukz_ has quit [Remote host closed the connection]
zipper has joined #ruby
dukz has joined #ruby
mansi has quit [Ping timeout: 248 seconds]
reset has quit [Client Quit]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
Speed has joined #ruby
<apeiros>
Xeago: rvm? update the ssl certs
<apeiros>
`rvm osx-ssl-certs update all`
ahawkins has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
nari has joined #ruby
<Hanmac>
you should be happy that osx already support ssl
_Andres has joined #ruby
wallerdev has quit [Quit: wallerdev]
nstdloop has quit [Remote host closed the connection]
hiyosi_ has joined #ruby
ace_striker has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
decoponio has quit [Quit: My PC will restarting]
hiyosi_ has quit [Ping timeout: 246 seconds]
marr has joined #ruby
A124 has quit [Read error: Connection reset by peer]
klaut has joined #ruby
mephux has quit [Remote host closed the connection]
<Xeago>
apeiros: no rvm
<Xeago>
custom compile
<Xeago>
Hanmac: yes I did, seems to be an issue with the list of CA's for rubygems to be out of date in the compiled binaries
lurch_ has quit [Quit: lurch_]
mojjojo has joined #ruby
Zai00 has joined #ruby
decoponio has joined #ruby
butblack has joined #ruby
ahbrendan has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
ahbrendan has joined #ruby
A124 has joined #ruby
kiri has joined #ruby
<Xeago>
s/custom/manual
joaoh82 has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 260 seconds]
drumusician has joined #ruby
joaoh82 has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
claymore has quit [Quit: Leaving]
yfeldblum has joined #ruby
zipper has joined #ruby
shedd has joined #ruby
amacgregor_ has joined #ruby
amacgregor__ has joined #ruby
butblack has quit [Quit: butblack]
yfeldblum has quit [Ping timeout: 260 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
dukz has quit [Remote host closed the connection]
dukz has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
shaunbaker has joined #ruby
lyanchih has quit [Quit: lyanchih]
shedd has quit [Ping timeout: 272 seconds]
ahbrendan has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
joaoh82 has quit [Remote host closed the connection]
saurabh has joined #ruby
saurabh is now known as Guest13786
zipper has quit [Ping timeout: 248 seconds]
Guest13786 has quit [Client Quit]
davy_ has joined #ruby
varfoo has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
davy_ has quit [Ping timeout: 248 seconds]
MrZYX|off is now known as MrZYX
michaeldeol has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
bamdad has joined #ruby
mengu has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 272 seconds]
sbarkaoui has joined #ruby
mansi has joined #ruby
yjmsf20__ has joined #ruby
DrCode has joined #ruby
mr_red1 has joined #ruby
<maasha>
Lewis: I think I need some Enumerator.new { |y| } in a proc or such.
dmoe has quit [Ping timeout: 240 seconds]
mr_red has quit [Ping timeout: 240 seconds]
yjmsf20_ has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
mjc_ has quit [Quit: No Ping reply in 180 seconds.]
anderson has quit [Excess Flood]
rurban has quit [Ping timeout: 240 seconds]
Liothen has quit [Ping timeout: 240 seconds]
ozzloy has quit [Ping timeout: 240 seconds]
mjc_ has joined #ruby
anderson has joined #ruby
dmoe has joined #ruby
orionstein_away is now known as orionstein
ozzloy has joined #ruby
nateberkopec has quit [Ping timeout: 272 seconds]
ozzloy has quit [Changing host]
ozzloy has joined #ruby
mroth has joined #ruby
rurban has joined #ruby
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
jbpros has joined #ruby
A124 has quit [Quit: Reboot.]
ggherdov has quit [Ping timeout: 240 seconds]
<Lewis>
maasha: how do you expect the input to look like
<maasha>
Lewis: File.open().each.lazy
<maasha>
Lewis: which is a Lazy Enumerator, but an Enumerator nevertheless
zipper has quit [Ping timeout: 272 seconds]
mansi has quit [Ping timeout: 248 seconds]
bluOxigen has quit []
A124 has joined #ruby
<Lewis>
How about @input = Enumerator.new |y|; y << input ; end
ggherdov has joined #ruby
zipper has joined #ruby
<apeiros>
maasha: require input to respond to .next, let Foo respond to .next too. implement .each in terms of .next.
phansch has quit [Remote host closed the connection]
<maasha>
Lewis: That goes well for @input, but how about @output
<maasha>
apeiros: hmm
niklasb has joined #ruby
phansch has joined #ruby
<heftig>
maasha: class Foo < Enumerator; def initialize(input); super() { |output| input.each { |record| output << record } } end end
<Hanmac>
maasha: use File.foreach
hiyosi_ has joined #ruby
claymore has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
orionstein is now known as orionstein_away
joaoh82_ has joined #ruby
phansch has quit [Remote host closed the connection]
klipeto has left #ruby [#ruby]
<maasha>
interesting
hiyosi_ has quit [Ping timeout: 272 seconds]
sergicles has joined #ruby
ahbrendan has quit [Ping timeout: 272 seconds]
fmendez has joined #ruby
<Lewis>
maasha: what would be the parameters passed for input and output
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maasha>
Lewis: well, IO objects so reading from one and writing to the other (input/output)
zipper_ has joined #ruby
joaoh82_ has quit [Ping timeout: 260 seconds]
<workmad3>
apeiros: next? or succ?
zipper has quit [Ping timeout: 240 seconds]
<workmad3>
maasha: if this is still for your pipelines, then your output should be another input anyway ;)
<maasha>
workmad3: right you are.
xcv has joined #ruby
ddd has quit [Ping timeout: 272 seconds]
<maasha>
workmad3: I want to abstract away all the Enumerators
raphaelivan has joined #ruby
rdark has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<maasha>
workmad3: I think your pipe approach might just work for what I want - so I expanded the test to cover some real functionality so I could do some preliminary speed and memory tests (so far so good). But the code is ready for refactoring: https://gist.github.com/maasha/dfbca5690c2043b3054f
<workmad3>
maasha: so that you can (repeatedly if necessary) yield output to the next step in the pipeline rather than returning a single result? :)
sergicles has quit [Quit: sergicles]
ValicekB has joined #ruby
<maasha>
workmad3: I looked at it yes, but I was a tad confused, so ...
zipper_ is now known as zipper
kraljev has left #ruby [#ruby]
jbpros has quit [Read error: Connection reset by peer]
Guest47781 has joined #ruby
sergicles has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<maasha>
workmad3: I better find out what it does exactly. One thing that throws me off was the use of Cat and super-cat - not related to cmd(:cat), right?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rootshift has quit [Quit: rootshift]
<workmad3>
maasha: that was just a command example using some metaprogramming
dukz has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 260 seconds]
stormbytes has joined #ruby
<stormbytes>
morning folks
<workmad3>
maasha: just removed that for now
<maasha>
workmad3: Metaprogramming is awesome, it is just a complete new topic to me.
lyanchih has quit [Ping timeout: 240 seconds]
<workmad3>
maasha: the important bit in that gist is really that, instead of .call returning the entire output at once, instead it yields output
zoee has joined #ruby
<workmad3>
maasha: which frees you up to yield a line at a time
amedeiros has joined #ruby
<maasha>
workmad3: nice.
<maasha>
I am beginning to get it.
angusiguess has joined #ruby
jbpros has joined #ruby
<maasha>
ok, I'll go for lunch and come back to and really stare at it! :o)
<maasha>
workmad3: thanks dude :o)
kevinykchan has joined #ruby
ahbrendan has joined #ruby
blaskovicz has joined #ruby
<workmad3>
maasha: just added a file source to it, so you can do 'a = cmd(:file, filename: "foobar") | cmd(:foo) | cmd(:bar) | ...'
blaxter_ has joined #ruby
agjacome has joined #ruby
joaoh82 has joined #ruby
joaoh82 has quit [Client Quit]
mercwithamouth has joined #ruby
michaeldeol has joined #ruby
amoli has joined #ruby
platzhirsch has joined #ruby
hogeo has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 240 seconds]
tkuchiki has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: nettoweb]
blaxter_ is now known as blaxter
virtualize has joined #ruby
postmodern has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 240 seconds]
nadley has joined #ruby
funburn has quit [Quit: funburn]
mengu has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
bnjamin has joined #ruby
blaskovicz has quit [Quit: Leaving.]
<Hanmac>
maasha: what about a short from? like "cmd(:file, filename: "foobar") | cmd(:foo) | cmd(:bar)" can shorted to "cmd(:file, filename: "foobar") | :foo | :bar" for cmd that dont need parameters?
<nadley>
hi all I'm trying to build ruby-2.0.0-p247 in Centos and I got a small error http://pastebin.com/qYyVXQ6q any idea ?
jbpros has joined #ruby
Lewis has quit [Remote host closed the connection]
<shevy>
compiling ossl_pkey_ec.c
<shevy>
ossl_pkey_ec.c: In function ?ossl_ec_group_initialize?:
vlad_sta_ has quit [Remote host closed the connection]
w4pm has quit [Ping timeout: 248 seconds]
atno__ has quit [Client Quit]
atno has quit [Remote host closed the connection]
ahawkins has quit [Client Quit]
atno has joined #ruby
ahawkins has joined #ruby
<maasha>
Hanmac: that is an idea I have considered. (Btw, would (:foo, option: 1) | (:bar, option: 2) work?)
joonty_ has joined #ruby
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
tkuchiki has joined #ruby
jlast has joined #ruby
<Hanmac>
maasha: hm that may not but this would be possible [:foo, option: 1] | [:bar, option: 2]
<maasha>
Hanmac: right.
joonty has quit [Ping timeout: 272 seconds]
Lewis has joined #ruby
hiyosi_ has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<maasha>
Hanmac: workmad3 so it is possible to replace cmd() with [] :o) - That I want try as well
freerobby has joined #ruby
dweeb_ has joined #ruby
tvw has joined #ruby
<workmad3>
maasha: not really...
<maasha>
?
<workmad3>
maasha: you'd need to start with a cmd()
joaoh82 has joined #ruby
jamesaanderson has joined #ruby
dweeb_ has quit [Client Quit]
<workmad3>
maasha: and then your | operator would need to spot that it had been given an array
<maasha>
workmad3: what about a dummy command behind the scene?
fgo_ has quit [Remote host closed the connection]
<workmad3>
maasha: you can't change what a [] literal creates
<maasha>
ok
<workmad3>
maasha: so a single [] would never work... and to start with a [] and chain with | would require you to override Array#|
colonolGron has joined #ruby
einarj_ has joined #ruby
einarj_ has left #ruby [#ruby]
fgo has joined #ruby
<workmad3>
maasha: same is true with ':foo | :bar | :buzz' however, there isn't a | operator for Symbol normally so you could always add one without interfering with other stuff
robbyoconnor has quit [Ping timeout: 246 seconds]
<Hanmac>
what can work is "cmd(:foo) | :bar | :buzz" but not ':foo | :bar | :buzz' allone
<maasha>
right
lurch_ has joined #ruby
<workmad3>
Hanmac: well, the second one can work if you provide a Symbol#| method
cha1tanya_ has quit [Quit: cha1tanya]
<Hanmac>
yeah it can but i still would not recoment that (the first one of my two is better)
virtualize has joined #ruby
<nadley>
Hanmac: with a newer version of ruby make complete
linduxed has quit [Ping timeout: 272 seconds]
<workmad3>
Hanmac: adding a Symbol#| isn't too bad... there isn't one already, unlike with Array#|, so you're not stepping on toes to create a DSL at least :)
<Hanmac>
until you want to kombine it with something other that also defines that ;P
fijimunk1i has quit [Ping timeout: 272 seconds]
<workmad3>
well, that's always an issue ;)
<workmad3>
what happens when you want to combine with something that also has a Pipeline module
carraroj has quit [Ping timeout: 272 seconds]
<workmad3>
IMO that's the sort of thing that you deal with when it happens, rather than supposition beforehand... and there's not many DSLs (I suspect) that can make good, sensible use of Symbol#| ;)
drumusician has quit [Ping timeout: 246 seconds]
<workmad3>
also, I'm not saying I'd go for that route... I'd personally go for cmd(:foo) | cmd(:bar) | cmd(...) rather than a bare symbol shortcut, and I can't say I particularly like ':foo | :bar | :buzz', but I can't say, hand on my heart, that providing the latter would be worse in any respect other than I don't particularly like it
KevinSjoberg_ is now known as KevinSjoberg
rdark has quit [Ping timeout: 246 seconds]
thezanke has left #ruby ["Leaving"]
rdark has joined #ruby
clamstar has quit [Quit: Computer has gone to sleep.]
cgcardona_ has joined #ruby
virtualize has quit [Quit: Leaving...]
Wildhoney has joined #ruby
rootshift has joined #ruby
colonolGron has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: Leaving]
Speed has left #ruby ["WeeChat 0.4.2"]
hiall has joined #ruby
mikecmpbll has joined #ruby
fmendez has quit [Quit: fmendez]
clamstar has joined #ruby
kindjal has joined #ruby
Macaveli has joined #ruby
maycon has joined #ruby
maycon has quit [Read error: Connection reset by peer]
ace_striker has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
dkamioka has joined #ruby
virtualize has joined #ruby
bamdad has quit [Quit: bamdad]
michaeldeol has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
jbpros_ has joined #ruby
fmendez has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Apane has joined #ruby
Hanmac1 has joined #ruby
virtualize has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
mark_locklear has joined #ruby
sepp2k has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
fandikurnia01 has quit [Quit: Leaving]
colonolGron has joined #ruby
fmendez has quit [Quit: fmendez]
justsee has quit [Ping timeout: 272 seconds]
kindjal has quit [Quit: Computer has gone to sleep.]
preller has quit [Read error: Operation timed out]
cbetta_afk is now known as cbetta
matheuscaceres has quit [Quit: matheuscaceres]
breakingthings has joined #ruby
elux has joined #ruby
dkamioka has quit [Remote host closed the connection]
mklappst_ has joined #ruby
cleme1mp has joined #ruby
fgo has quit [Read error: Connection reset by peer]
dkamioka has joined #ruby
fgo has joined #ruby
Guest47781 has joined #ruby
<shevy>
"cmd(:foo) | :bar | :buzz" looks ugly
<shevy>
Hanmac is a genius, but please don't let him design any language
<shevy>
:>
himsin has quit [Quit: himsin]
mklapps__ has joined #ruby
burlyscudd has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
ffranz has joined #ruby
stringoO has joined #ruby
nomenkun has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
Vaibhav_Rajput has quit [Quit: Leaving]
fgo has quit [Remote host closed the connection]
shedd has joined #ruby
dkamioka has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
mklappst_ has quit [Ping timeout: 260 seconds]
falood has joined #ruby
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
gyre007 has joined #ruby
timonv has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 246 seconds]
orionstein_away is now known as orionstein
jmimi has joined #ruby
dkamioka has joined #ruby
dkamioka has quit [Remote host closed the connection]
gyre007 has quit [Read error: Operation timed out]
nateberkopec has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
banister has joined #ruby
phantummm has joined #ruby
Advocation has joined #ruby
mklappstuhl has joined #ruby
gregoriokusowski has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
p4d4w4n has joined #ruby
virtualize has joined #ruby
mklapps__ has quit [Read error: Connection reset by peer]
tesuji has quit [Read error: Connection reset by peer]
p4d4w4n has quit [Client Quit]
bamdad has joined #ruby
tesuji has joined #ruby
Fire-Dragon-DoL has joined #ruby
Apane has quit [Ping timeout: 248 seconds]
mojjojo has quit [Quit: mojjojo]
kevinykchan has quit [Ping timeout: 240 seconds]
hiyosi_ has joined #ruby
ArchBeOS-work has joined #ruby
nomenkun has joined #ruby
Hanmac has joined #ruby
timonv has joined #ruby
Bira has quit [Remote host closed the connection]
akonny has joined #ruby
RaCx has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
hiyosi_ has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
F1skr has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
Wildhoney has quit [Quit: Wildhoney]
machuga|away is now known as machuga
tonni has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 248 seconds]
tonni has joined #ruby
freerobby has quit [Quit: Leaving.]
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
dEPy has joined #ruby
aapzak has quit [Quit: leaving]
fijimunkii has joined #ruby
aapzak has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
kitak_ has joined #ruby
Hanmac has joined #ruby
dhruvasagar has joined #ruby
tonni has quit [Ping timeout: 248 seconds]
thesheff17 has joined #ruby
virtualize has quit [Ping timeout: 248 seconds]
stevenhaddox has joined #ruby
L8D has joined #ruby
RaCx has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinxreese has quit [Ping timeout: 246 seconds]
joshwines has quit [Ping timeout: 246 seconds]
von___ has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
platzhirsch has quit [Ping timeout: 246 seconds]
joshwines has joined #ruby
joaoh82 has quit [Remote host closed the connection]
RaCx has joined #ruby
nowthatsamatt has joined #ruby
platzhirsch has joined #ruby
stormbytes has quit [Ping timeout: 246 seconds]
robwilliamsukio has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 246 seconds]
breakingthings has quit [Ping timeout: 246 seconds]
mark_locklear has quit [Ping timeout: 246 seconds]
robwilliamsuk has joined #ruby
phil_b has quit [Ping timeout: 246 seconds]
carif_ has quit [Ping timeout: 246 seconds]
joaoh82 has joined #ruby
nowthatsamatt has quit [Remote host closed the connection]
Columcille has quit [Ping timeout: 246 seconds]
gr33n7007h has quit [Ping timeout: 246 seconds]
amacgregor has quit [Ping timeout: 246 seconds]
mansi has joined #ruby
von___ has joined #ruby
nowthatsamatt has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
buscon has quit [Remote host closed the connection]
blandflakes has joined #ruby
p0wn3d has joined #ruby
amritanshu_RnD has quit [Ping timeout: 246 seconds]
Anarch has quit [Ping timeout: 246 seconds]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
agjacome has quit [Ping timeout: 272 seconds]
sayan has quit [Ping timeout: 260 seconds]
pontiki has joined #ruby
Voodoofish4302 has joined #ruby
phansch has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
Columcille has joined #ruby
uxp_ has quit [Ping timeout: 246 seconds]
dandrade has quit [Ping timeout: 246 seconds]
breakingthings has joined #ruby
Anarch has joined #ruby
gyre007 has joined #ruby
jamesaanderson has quit [Ping timeout: 246 seconds]
dandrade has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
awarner_ has joined #ruby
sergicles has quit [Ping timeout: 246 seconds]
Voodoofish430 has quit [Ping timeout: 246 seconds]
daidoji has quit [Ping timeout: 246 seconds]
mark_locklear has joined #ruby
sergicles has joined #ruby
klaut has quit [Ping timeout: 246 seconds]
kofno_ has quit [Ping timeout: 246 seconds]
awarner has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
uxp has joined #ruby
BraddBitt has quit [Ping timeout: 246 seconds]
jamesaanderson has joined #ruby
whysobad has joined #ruby
blandflakes_ has joined #ruby
claymore has quit [Ping timeout: 246 seconds]
devdazed has quit [Ping timeout: 246 seconds]
thejoecarroll has quit [Ping timeout: 246 seconds]
lmickh has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blandflakes has quit [Disconnected by services]
blandflakes_ is now known as blandflakes
kofno has joined #ruby
whysomad has quit [Ping timeout: 246 seconds]
devdazed has joined #ruby
Guest36979 has quit [Excess Flood]
amedeiro1 has joined #ruby
Lewix has joined #ruby
klaut has joined #ruby
spyderma_ has joined #ruby
adamholt has quit [Ping timeout: 246 seconds]
colonolGron has quit [Ping timeout: 260 seconds]
deepy has joined #ruby
gverri has joined #ruby
deepy is now known as Guest63455
jerius has joined #ruby
BraddBitt has joined #ruby
lurch_ has quit [Quit: lurch_]
braincrash has joined #ruby
adamholt has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
thejoecarroll has joined #ruby
mansi has quit [Remote host closed the connection]
phansch has quit [Read error: Connection reset by peer]
phansch has joined #ruby
joaoh82 has quit [Remote host closed the connection]
niklasb has joined #ruby
spyderman4g63 has joined #ruby
banister has joined #ruby
shaunbaker has quit [Remote host closed the connection]
spyderma_ has quit [Ping timeout: 272 seconds]
hiall_ has joined #ruby
shime has quit [Read error: Operation timed out]
sayan has joined #ruby
phil_b has joined #ruby
carif_ has joined #ruby
gr33n7007h has joined #ruby
havenwood has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
fmcgeough has joined #ruby
hiall has quit [Ping timeout: 246 seconds]
hiall_ is now known as hiall
amritanshu_RnD has joined #ruby
h_kon has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
michaeldeol has joined #ruby
clamstar has quit [Remote host closed the connection]
soba has quit [Ping timeout: 272 seconds]
claymore has joined #ruby
tjad has quit [Ping timeout: 240 seconds]
Aloysius1 has quit [Read error: Connection reset by peer]
falood has quit [Remote host closed the connection]
h_kon has quit [Ping timeout: 260 seconds]
plotter has quit [Remote host closed the connection]
raphaelivan has quit [Quit: Leaving.]
falood has joined #ruby
ehc has joined #ruby
RaCx has quit [Ping timeout: 248 seconds]
michaeldeol has quit [Ping timeout: 272 seconds]
justinxreese has joined #ruby
batchitcray has joined #ruby
falood has quit [Remote host closed the connection]
falood has joined #ruby
RaCx has joined #ruby
dkamioka has joined #ruby
dkamioka has quit [Remote host closed the connection]
matheuscaceres has joined #ruby
dkamioka has joined #ruby
cbetta is now known as cbetta_afk
DeanH has joined #ruby
DeanH has quit [Max SendQ exceeded]
peregrine81 has joined #ruby
aspires has joined #ruby
jchristi has joined #ruby
sambao21 has joined #ruby
atno has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 248 seconds]
spyderman4g63 has joined #ruby
sergicles has quit [Quit: sergicles]
digifiv5e has joined #ruby
digifiv5e is now known as Guest16500
snath has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
mengu has quit [Remote host closed the connection]
shedd has joined #ruby
geekbri has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
shaunbaker has joined #ruby
nateberkopec has joined #ruby
kobain has joined #ruby
virtualize has joined #ruby
shedd has quit [Ping timeout: 260 seconds]
F1skr has quit [Quit: WeeChat 0.4.2]
plotter has joined #ruby
mmitchell has joined #ruby
mmitchell has quit [Remote host closed the connection]
DeProdigy has joined #ruby
nateberkopec has quit [Ping timeout: 260 seconds]
akonny has quit [Quit: akonny]
mmitchell has joined #ruby
rootshift has quit [Quit: rootshift]
Spleeze has quit [Quit: QUIT]
Spleeze has joined #ruby
preller has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mary5030 has quit [Remote host closed the connection]
duggiefresh has joined #ruby
<and0>
The Bengals
preller has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
mary5030 has joined #ruby
OdNairy has joined #ruby
CaptainKnots has quit [Ping timeout: 245 seconds]
nsarno has joined #ruby
jedimind has joined #ruby
hiyosi_ has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Client Quit]
asobrasil has joined #ruby
havenwood has joined #ruby
p4d4w4n has joined #ruby
bamdad has quit [Quit: bamdad]
rootshift has joined #ruby
joaoh82 has joined #ruby
xcv has quit [Remote host closed the connection]
avril14th_ has joined #ruby
bamdad has joined #ruby
seoNinjaWarrior has quit [Quit: Computer has gone to sleep.]
xcv has joined #ruby
bamdad has quit [Client Quit]
seoNinjaWarrior has joined #ruby
elux has quit [Quit: Leaving...]
seoNinjaWarrior has quit [Remote host closed the connection]
CaptainKnots has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
cbetta_afk is now known as cbetta
johnmilton has joined #ruby
hiyosi_ has quit [Ping timeout: 240 seconds]
d2dchat has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Guest45295 is now known as Gnubie__
p0wn3d has quit [Quit: I'm not here right now.]
elux has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Ping timeout: 260 seconds]
p0wn3d has joined #ruby
chrisja has joined #ruby
himsin has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
interactionjaxsn has joined #ruby
enebo has joined #ruby
himsin has quit [Client Quit]
tannerburson has joined #ruby
joaoh82 has quit [Ping timeout: 272 seconds]
xcv has quit [Ping timeout: 260 seconds]
Macaveli has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
Wildhoney has joined #ruby
kaiza has joined #ruby
michaellynch has joined #ruby
ambushsabre has joined #ruby
ramblex has joined #ruby
sambao21 has joined #ruby
Lewix has quit [Remote host closed the connection]
petey has joined #ruby
Megtastique has joined #ruby
johnnyfuchs has joined #ruby
acrussell has joined #ruby
iamjarvo_ has joined #ruby
hogeo has joined #ruby
nomenkun has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
jamesaanderson has joined #ruby
ndee has joined #ruby
<ndee>
when I'm in a @array.each do |item|, is it somehow possible to set a new value for the current element?
zeeraw has joined #ruby
carraroj has joined #ruby
<ndee>
s/set/add
kindjal has joined #ruby
Hamburglr has joined #ruby
DouweM has joined #ruby
<cbetta>
ndee you're looking for map
<cbetta>
vs each
gverri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest47781 has quit [Quit: Leaving]
<platzhirsch>
ndee: @array.each { |item| @array[some_index] = new_ value }
<ndee>
cbetta: sweet, thanks
<cbetta>
for example if you have an array of strings and you want to up case them: strings.each { |item| item.upcase }
<cbetta>
ugh
nomenkun has quit [Ping timeout: 246 seconds]
<cbetta>
strings.map { |item| item.upcase }
petey has quit [Remote host closed the connection]
<ndee>
got it, thanks!
johnnyfuchs has left #ruby [#ruby]
<tobiasvl>
platzhirsch: where do you get your some_index from?
<tobiasvl>
Array#each_with_index
<platzhirsch>
tobiasvl: my imagination
CaptainJet has joined #ruby
<tobiasvl>
hehe. ndee is probably looking for either map or each_with_index
<platzhirsch>
yeah, I noticed too late. I was curious if it is legal to manipulate an iterating enumerable
<cbetta>
platzhirsch just bnever a good idea to do
<cbetta>
*never
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
<platzhirsch>
yeah
kindjal has quit [Client Quit]
butblack has joined #ruby
clamstar has joined #ruby
rootshift has quit [Quit: rootshift]
synergy_ has joined #ruby
araujo has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
ahbrendan has quit [Ping timeout: 272 seconds]
butblack has left #ruby [#ruby]
araujo has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<workmad3>
platzhirsch: you get some odd behaviour if you delete from 'behind' while iterating... but not quite as bad as the memory leaks you can get doing that in C :)
rootshift has joined #ruby
<platzhirsch>
In Java there is always this CocurrentModificationException
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
gigetoo has quit [Remote host closed the connection]
apeiros has joined #ruby
kevind has joined #ruby
stl05 has joined #ruby
virtualize has quit [Quit: Leaving...]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
platzhirsch: yeah, that happens when you try to modify a container in one thread that's being used in another
tylershipe has joined #ruby
<platzhirsch>
workmad3: or no thread at all, which made it so confusing
<platzhirsch>
sequential program, trying to modify the collection you were iterating in a loop
otherj has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 272 seconds]
<workmad3>
oh yeah, I forgot it occurs then too
otherj has joined #ruby
<workmad3>
but then, java is all about its perceived safety...
ahbrendan has joined #ruby
tonni has joined #ruby
mando has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
avalarion has joined #ruby
otherj has quit [Client Quit]
yfeldblum has joined #ruby
tonni has quit [Read error: Connection reset by peer]
sailias has joined #ruby
tonni has joined #ruby
gverri has joined #ruby
tylershi_ has quit [Ping timeout: 272 seconds]
michaeldeol has joined #ruby
nomenkun has joined #ruby
skywebro has joined #ruby
rootshift has quit [Quit: rootshift]
Bira has joined #ruby
vlad_starkov has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
m8 has joined #ruby
kaiza has joined #ruby
dEPy has quit [Quit: Computer has gone to sleep.]
dEPy has joined #ruby
bean__ has joined #ruby
barratt has joined #ruby
aryaching has joined #ruby
freakazoid0223 has quit [Remote host closed the connection]
bean__ has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 272 seconds]
bnjamin has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 248 seconds]
tonni has joined #ruby
nomenkun has quit [Read error: No route to host]
RaCx has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
LadyRainicorn has joined #ruby
<avalarion>
Hey ho... I am working on a Chef enviroment normally we get users like this ( users = search(:users, 'groups:sysadmin') ) but if working on a Vagrantbox without databags we are using: users = [{'id' => "vagrant"}]
<avalarion>
no I would like to add another user to my users array, but it is not working.
bean__ has joined #ruby
rootshift has joined #ruby
petey has joined #ruby
ramblex_ has joined #ruby
dEPy has quit [Ping timeout: 260 seconds]
aapzak has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
tesuji has quit [Ping timeout: 246 seconds]
sayan has joined #ruby
angusiguess has quit [Disconnected by services]
<avalarion>
... works now ... but I do not know why it was not working before...
mansi has joined #ruby
michaellynch has quit [Ping timeout: 272 seconds]
jprovazn has quit [Quit: Leaving]
petey has quit [Remote host closed the connection]
freggles has joined #ruby
petey has joined #ruby
Xeago has quit [Remote host closed the connection]
ramblex has quit [Ping timeout: 248 seconds]
Atrophius has joined #ruby
Xeago has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
root_empire has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
nsarno has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
momomomomo has joined #ruby
ahbrendan has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
yfeldblum has joined #ruby
jbpros_ has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
joaoh82 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
dukz has quit []
Hanmac has quit [Ping timeout: 272 seconds]
<LadyRainicorn>
My first guess is that you need to be in a directory with a Gemfil for that xommand to work
tylershipe has quit [Remote host closed the connection]
joaoh82 has joined #ruby
tylershipe has joined #ruby
burlyscudd has joined #ruby
wallerdev has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<LuxuryMode>
right
<LuxuryMode>
i think its an rvm issue here
<LuxuryMode>
or
<LuxuryMode>
err
virtualize has quit [Ping timeout: 272 seconds]
<LuxuryMode>
that i need to export the path to the gem file
yfeldblum has joined #ruby
kaiza has joined #ruby
workmad3 has quit [Read error: Operation timed out]
<LuxuryMode>
How can I find out where a particular gem is installed?
schaerli has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
jbpros has joined #ruby
falood has quit [Remote host closed the connection]
dash__ has joined #ruby
petey_ has quit [Remote host closed the connection]
falood has joined #ruby
petey has joined #ruby
kaiza has quit [Max SendQ exceeded]
cgcardona_ has quit [Quit: cgcardona_]
jchristi has joined #ruby
s2013 has joined #ruby
kaiza has joined #ruby
the_mentat has joined #ruby
rippa has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
lurch_ has joined #ruby
Bira has joined #ruby
kaiza has joined #ruby
jbpros has quit [Client Quit]
falood has quit [Ping timeout: 240 seconds]
petey has quit [Ping timeout: 260 seconds]
nateberkopec has joined #ruby
nwertman has quit [Remote host closed the connection]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaiza has quit [Max SendQ exceeded]
Arzaga has quit [Quit: Computer has gone to sleep.]
kaiza has joined #ruby
workmad3 has joined #ruby
ahawkins has quit [Quit: leaving]
Bira has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 246 seconds]
jjbohn has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mengu has joined #ruby
RaCx has joined #ruby
<LadyRainicorn>
rvm path i think?
nwertman has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jrhe has quit [Quit: jrhe]
caesura has joined #ruby
zipper has quit [Ping timeout: 272 seconds]
_HolyCow has quit [Read error: Connection reset by peer]
fmendez has joined #ruby
stevenhaddox has quit [Quit: Zzzz...]
IceDragon has joined #ruby
blandflakes has quit [Quit: Page closed]
daidoji has joined #ruby
blandflakes has joined #ruby
DouweM_ has joined #ruby
xcv has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
petey has joined #ruby
workmad3 has quit [Quit: leaving]
mojjojo has joined #ruby
DouweM has quit [Ping timeout: 260 seconds]
jrhe has joined #ruby
tylersmith has quit [Remote host closed the connection]
jrhe has left #ruby [#ruby]
zipper has joined #ruby
workmad3 has joined #ruby
zipper has quit [Client Quit]
matheuscaceres has quit [Quit: matheuscaceres]
kostine has quit [Quit: kostine]
matheuscaceres has joined #ruby
michaeldeol has joined #ruby
stevenhaddox has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
bean__ has joined #ruby
bean__ has quit [Client Quit]
baroquebobcat has joined #ruby
jonathanwallace has joined #ruby
stevenhaddox has quit [Client Quit]
bean__ has joined #ruby
nhhagen has joined #ruby
s2013 has quit [Quit: Leaving]
michaeldeol has quit [Ping timeout: 272 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
stonevil has joined #ruby
jjbohn is now known as jjbohn|afk
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cbetta is now known as cbetta_afk
RaCx has joined #ruby
IceDragon has quit [Ping timeout: 240 seconds]
Tentra has joined #ruby
_HolyCow has joined #ruby
jjbohn|afk is now known as jjbohn
Spami has quit [Quit: This computer has gone to sleep]
Reach has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
jonathanwallace has joined #ruby
jonathanwallace has quit [Client Quit]
nomenkun has joined #ruby
matheuscaceres has quit [Quit: matheuscaceres]
nhhagen has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
nhhagen has joined #ruby
maletor has joined #ruby
<Hanmac>
shevy i make a very big change in my rwx binding ... BEWARE! ;P ... i through rb_hash_aref out of the cpp files an only use macros and templates ;P
dhruvasagar has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
AlSquire has quit [Read error: Connection reset by peer]
batchitcray has quit [Ping timeout: 248 seconds]
vt102 has joined #ruby
allaire has quit []
batchitcray has joined #ruby
kaiza has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
Atrophius has quit [Ping timeout: 246 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
kaiza has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
zomgbie has joined #ruby
AlSquire has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
burlyscudd has quit [Quit: Leaving.]
nhhagen has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
alup has quit [Quit: Leaving]
elux has quit [Quit: Leaving...]
olivier_bK has joined #ruby
geggam has joined #ruby
allaire has joined #ruby
Azure has joined #ruby
lurch_ has quit [Quit: lurch_]
kaiza has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
<gestahlt>
I have a question regarding threads: When i create a new thread (t = Thread.new(stuff)) and i have another new thread inside the new thread, will the "nested" thread also be killed when i kill the parent thread?
DouweM has joined #ruby
<LadyRainicorn>
No.
<gestahlt>
Ah
<gestahlt>
Good to know
<gestahlt>
So i need to take care of it somehow
<LadyRainicorn>
(Unless you set the thing on yhr thread that kills the progeam when it exists
<LadyRainicorn>
exits
<LadyRainicorn>
I think main_thread=
RaCx has quit [Ping timeout: 272 seconds]
nwertman has quit [Ping timeout: 246 seconds]
jchristi has quit [Ping timeout: 246 seconds]
<LadyRainicorn>
But I am lazy so use the docs if you want that
<gestahlt>
Hm, i have to read up on that
<gestahlt>
It just came to my mind spontaniously
wallerdev has quit [Quit: wallerdev]
<gestahlt>
Today i fought against the serial console with ruby
tannerburson has quit [Quit: tannerburson]
shadoi1 has quit [Ping timeout: 246 seconds]
tannerburson has joined #ruby
jchristi has joined #ruby
<gestahlt>
I had putty open for the same tty device where i got my code running. Sending commands worked fine, output didnt work.. and the cause was putty which i discovered like 2 hours of debugging
bricker`LA has quit [Ping timeout: 265 seconds]
amundj has joined #ruby
<gestahlt>
i also noticed you need to wait at least 2 seconds after you send a command to serial console before you send the next
w4pm has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
matheuscaceres has joined #ruby
CorySimmons has quit [Quit: Leaving.]
aapzak has joined #ruby
amundj_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
matchaw has quit [Quit: No Ping reply in 180 seconds.]
matchaw has joined #ruby
virtualize has joined #ruby
petey has quit [Remote host closed the connection]
CorySimmons has joined #ruby
rootshift has quit [Quit: rootshift]
nari has quit [Ping timeout: 248 seconds]
roodee has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
petey has joined #ruby
andikr has quit [Remote host closed the connection]
jrhe has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
aganov has quit [Remote host closed the connection]
benzrf has joined #ruby
virtualize has quit [Ping timeout: 252 seconds]
<benzrf>
hi, how are circular deps handled?
ambushsabre has joined #ruby
slap_stick has joined #ruby
jonathanwallace has joined #ruby
<DouweM>
benzrf: give us a concrete example
valesk has joined #ruby
nomenkun has joined #ruby
Apane has joined #ruby
nhhagen has joined #ruby
<benzrf>
a.rb requires b.rb which requires a.rb
<cleme1mp>
\quit
<benzrf>
both @ the top of the file
Jdubs has joined #ruby
cleme1mp has quit [Quit: leaving]
<DouweM>
benzrf: needing to do that indicates a problem with what's defined in the files. you shouldn't need circular dependencies like that, and Ruby doesn't support it
<benzrf>
not even python-style?
psyl0n has quit [Remote host closed the connection]
<DouweM>
I have no idea what that means :)
<DouweM>
why is there circular dependecy?
maletor has joined #ruby
<benzrf>
i guess i could refactor around it
slash_quit is now known as slash_join
skaflem has quit [Read error: Connection reset by peer]
<benzrf>
in python, importing a file which then imports you will give the second file an incomplete copy of you, which is then filled in when control finishes back in the first file
tylershipe has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
tylershipe has joined #ruby
skaflem has joined #ruby
<benzrf>
but i guess that wouldn't really work in ruby given the major diffs between the import systems...
ghr has quit [Quit: Computer has gone to sleep.]
<slap_stick>
hey i am trying to iterate over two hashes, (which could end up containing embeded hashes) i want to iterate all the way through comparing the two together but removing any keys that have '?' in them, if they are not inside the other hash from the hash itself and then return the hashes as they should be . https://gist.github.com/anonymous/4c5633574
<slap_stick>
55f542ecf3b explains what i have but obviously it a) doesnt work and b) seems maybe the wrong way to go, not sure. maybe i need to reconstruct the hash as i'm iterating and return the new ones?
jkhwan has joined #ruby
<shevy>
Hanmac when will you be finished?
sepp2k has quit [Quit: Konversation terminated!]
<benzrf>
shevy: what is Hanmac doing
<shevy>
benzrf he writes ruby bindings for wxwidgets
nobitanobi has joined #ruby
kaiza has joined #ruby
<benzrf>
require basically just execs a file, doesn't it?
ShinySides has left #ruby [#ruby]
Monie has joined #ruby
yfeldblum has joined #ruby
<shevy>
I think it loads the code, then evals it
Monie has quit [Max SendQ exceeded]
<shevy>
benzrf circular dependencies in ruby can be annoying
hogeo has joined #ruby
<ericwood>
ircular dependencies in any language are annoying
<shevy>
the way I try to avoid it is by requiring things only when needed, on a per-file basis
Monie has joined #ruby
kaiza has quit [Read error: Connection reset by peer]
<ericwood>
I just put everything in one file
jimmymad has joined #ruby
tylershipe has quit [Ping timeout: 245 seconds]
<shevy>
ericwood benzrf kinda said that python has a dream solution :D
blaxter has quit [Quit: foo]
moted has quit [Remote host closed the connection]
<ericwood>
I don't read scrollback
jimmymad has left #ruby [#ruby]
zz_tsykoduk is now known as tsykoduk
moted has joined #ruby
horrorvacui has joined #ruby
<benzrf>
shevy: dream solution?
roodee has quit [Remote host closed the connection]
dbjeepn has quit [Ping timeout: 264 seconds]
<shevy>
benzrf yeah
blaxter has joined #ruby
<shevy>
<benzrf> in python, importing a file which then imports you will give the second file an incomplete copy of you, which is then filled in when control finishes back in the first file
<benzrf>
what do you mean?
<benzrf>
what do you mean by 'dream solution'
<shevy>
there
<shevy>
a dream solution
kevind_ has joined #ruby
Tentra has quit [Quit: Rage quit!]
schaerli has quit [Remote host closed the connection]
<mojjojo>
are there any good examples of loading google analytics data with ruby?
<benzrf>
in python importing a file runs the file, then gives you an object containing all of that file's top-level vars as attributes
<benzrf>
so if you import a file that has already started running, you get an incomplete object that only has the variables that have been set so far
burlyscudd has quit [Quit: Leaving.]
echevemaster has joined #ruby
<benzrf>
then it gets fully filled in once execution continues in said file
hogeo has quit [Ping timeout: 260 seconds]
<mojjojo>
are there any good examples of loading google analytics data with ruby? and can the auth be done without the private key?
<DouweM>
havenwood `.none? &:nil` ~ `.any?`, although the latter trips on false
jbpros has joined #ruby
sguselnikov has joined #ruby
sguselnikov has quit [Remote host closed the connection]
stringoO has joined #ruby
<tfitts>
I need to evaluate date field (which is either a date or nil) and return true if it is a time that is > Time.now, otherwise I need to return false. Is there a common ruby way to do this?
roolo has quit [Remote host closed the connection]
<benzrf>
how can I iterate over each day between two Times?
<benzrf>
or DateTimes?
<gestahlt>
Say
<LadyRainicorn>
So if you could have any extinct animal for a pet, what would it be?
<gestahlt>
Hm
Apane has quit []
<havenwood>
benzrf: Time began and will end much sooner to now than DateTime. :P
joaoh82 has joined #ruby
<gestahlt>
A neanderthal
<gestahlt>
A lot of them
enape_101 has joined #ruby
rushed has quit [Quit: rushed]
<LadyRainicorn>
rofl
<apeiros>
benzrf: DateTime#+ operates with days
<LadyRainicorn>
TIL gestahlt aspires to be a slaveholder.
tylershipe has quit [Read error: Operation timed out]
<benzrf>
apeiros: what about Date?
<apeiros>
same
<benzrf>
ok, i'll use dates
virtualize has quit [Ping timeout: 245 seconds]
<benzrf>
since sequel uses em w/ my postgres table
zz_tsykoduk is now known as tsykoduk
<benzrf>
wait wut
nhhagen has quit [Ping timeout: 245 seconds]
ramblex_ has joined #ruby
clamstar has quit [Ping timeout: 265 seconds]
<benzrf>
hm
coca_rails has joined #ruby
barratt has quit [Ping timeout: 248 seconds]
<gestahlt>
I am an open book rainicorn
<benzrf>
huh, Sinatra modifies Date
<gestahlt>
What would you take?
shaunbaker has quit [Remote host closed the connection]
rootshift has quit [Quit: rootshift]
pwh has joined #ruby
Fidelix has joined #ruby
davy__ has quit [Remote host closed the connection]
nobitanobi has quit [Read error: Connection reset by peer]
<shevy>
damn those ponicorn posers
nomenkun has joined #ruby
<Fidelix>
Hello. I have installed ruby with rbenv but neither "ruby" nor "gem" commands ara available!
dash__ has quit []
jwiering1 has joined #ruby
akonny has joined #ruby
<shevy>
Fidelix always find out where rbenv is installed to. I assume in your home dir, so I suppose it would work if your $PATH variable includes that
jwiering1 has left #ruby [#ruby]
colonolGron has joined #ruby
<Fidelix>
shevy: I guess I found the problem. .bash_profile simply isn't loaded. I don't know how that's possible.
sepp2k has joined #ruby
Atrophius has joined #ruby
nhhagen has joined #ruby
wallerdev has quit [Quit: wallerdev]
nhhagen_ has joined #ruby
wallerdev has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
CorySimmons has joined #ruby
CorySimmons has left #ruby [#ruby]
kostine has joined #ruby
hiall has quit [Ping timeout: 272 seconds]
banister has joined #ruby
allaire has joined #ruby
nhhagen_ has quit [Ping timeout: 272 seconds]
jkhwan has quit [Read error: Connection reset by peer]
jkhwan has joined #ruby
lmickh has quit [Quit: lmickh]
klaut has quit [Remote host closed the connection]
<LadyRainicorn>
:x really is :x, always; 'x' is not necessarily the same as 'x'
<sec^nd>
kk
<benzrf>
sec^nd: don't overuse symbols
<sec^nd>
Can I clone a symbol into a string to mutate it?
<benzrf>
they're not gc'd
<benzrf>
sec^nd: yes, but if you do that you're doing something wrong
colonolGron has quit [Ping timeout: 245 seconds]
petey has quit [Remote host closed the connection]
<LadyRainicorn>
It is okay to do :sym.to_s if you must.
<sec^nd>
Symbols would like "<string>" in C in that they are stored in the code itself and stay in memory?
<Hanmac>
sec^nd: Strings with the same content still uses different places in memory, Symbols with the same content are always the same Object and only uses the same memory place
<LadyRainicorn>
But 'str'.to_sym is almost always bad.
<benzrf>
sec^nd: not exactly but more or less
petey has joined #ruby
<benzrf>
ish
maletor has quit [Quit: Computer has gone to sleep.]
<sec^nd>
What if I had a forloop / function which always called 'str'.to_sym, would that create a memory leak because symbols aren't GC'd or would it just store it in the same place in memory?
freerobby has joined #ruby
freerobby1 has quit [Read error: Connection reset by peer]
jjbohn is now known as jjbohn|afk
<benzrf>
sec^nd: same place in memory is kind of the point
<sec^nd>
Would it create a leak if '<str>' was a different value and I called to_sym on it (a different value generated each iteration)?
<benzrf>
like Hanmac _JUST SAID_
maletor has joined #ruby
<benzrf>
sec^nd: it would
<sec^nd>
benzrf: I mean does it keep a reference count then?
havenwood has quit [Ping timeout: 245 seconds]
<sec^nd>
no GC so I guess not
nomenkun_ has joined #ruby
<benzrf>
symbols are like variable names
<sec^nd>
more of a lookup table I assume is what is happening in the backend
<benzrf>
they are used to identify something, but the content doesn't matter
<benzrf>
*of the symbol
rubyracer has joined #ruby
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
tsykoduk is now known as zz_tsykoduk
<benzrf>
code that cares about the value of a symbol is like code that cares about the value of a variable name
<benzrf>
usually
<sec^nd>
also the respond_to? just checks that a method exists correct?
<benzrf>
right
<benzrf>
mostly
<LadyRainicorn>
Usually you would want that to print messages.
matheuscaceres has quit [Quit: matheuscaceres]
<benzrf>
matz doth decree that method names should be in second person
allaire has joined #ruby
jkhwan has joined #ruby
<benzrf>
that is, as though you are addressing the object
petey has quit [Ping timeout: 252 seconds]
<benzrf>
'Object, do you [respond to] this?'
<benzrf>
'Array, are you [empty?]'
<sec^nd>
'Object, do :method'
nomenkun has quit [Ping timeout: 265 seconds]
<benzrf>
send is kind of an oddball in this sense
kirun has joined #ruby
<sec^nd>
benzrf: What is send?
<Hanmac>
sec^nd: yes and no, there is a helper method named "respond_to_missing?" ... with that "respond_to?" can also return true for methods that does not exist (like for magic getter/setter)
<benzrf>
sec^nd: send is for calling methods by name
<matti>
Hanmac: I suppose of #rubyonrails they go for fairy creatures ;p Since there is so much magic there ;]
<sec^nd>
This method of not caring about the actual type of a variable, just relying on what methods it supports is known as “Duck Typing”, as in “if it walks like a duck and quacks like a duck…”
<sec^nd>
I see the "Duck Typing"
<MrZYX>
bricker what about hsh = options.fetch(:something) { {} }?
nomenkun has joined #ruby
rudisimo has joined #ruby
rudisimo1 has quit [Client Quit]
<benzrf>
sec^nd: i like my scripting langs to be duck typed
<platzhirsch>
worth aspiring for, just sometimes a bit hard to imagine that someone can cover all these fields :)
* Hanmac
can write an HTTP server in C ;P
yfeldblu_ has joined #ruby
enape_101 has quit [Ping timeout: 260 seconds]
<xibalba>
i can, void main { while(true) { fork(); } return; }
rudisimo1 has quit [Quit: Leaving.]
<momomomomo>
Hanmac: I can't do that, but I consider having to be my own PM, define / outline the project, run and sys admin my own servers, build the front and back end including any additional services needed in addition to the web app, etc. to make me a full stack dude
gyre007 has joined #ruby
<xibalba>
platzhirsch, cool sections #1 and #2 check
<matti>
Hanmac: In C?
<matti>
Hanmac: Will it handle 10k problem?
clamstar has quit [Quit: Computer has gone to sleep.]
<matti>
;]
jbpros has quit [Quit: jbpros]
<Hanmac>
matti yes, i am an full educated programmer ... when learning programing languages, one of the first was C and then we managed to make an http server in C with listen and other functions
<momomomomo>
Hanmac: I started with C but didn't make an http server, did some bit level jpeg analysis etc
<momomomomo>
I do want to dig into the mine craft clone in C I saw on HN earlier though
Guedes0 has quit [Ping timeout: 252 seconds]
enape_101 has joined #ruby
asobrasil has quit [Read error: Connection reset by peer]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
nobitanobi has quit [Read error: Connection reset by peer]
coca_rails has joined #ruby
justsee has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 250 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<matti>
Hanmac: Full-Educated programmer ;]
flubba has joined #ruby
<matti>
Hanmac: I started with C and made into Kernel changelog ;p
<matti>
Hanmac: It can power your HTTP server now.
<matti>
;]
<xibalba>
do you guys find alot of jobs requiring a college degree? or self-taught is fine too
bradhe has quit [Remote host closed the connection]
<matti>
xibalba: I graduated physics ;p
<xibalba>
i have yet to graduate!
breakingthings has joined #ruby
<xibalba>
only did about 50% of college
asobrasil has joined #ruby
<platzhirsch>
xibalba: most of the time I saw that a college-degree is not required, if you have the same years of industry experience
fmendez has quit [Quit: fmendez]
<platzhirsch>
US based jobs
asobrasil has quit [Max SendQ exceeded]
<matti>
xibalba: My point was - I work in IT and nobody cares ;p
randomnick_ has joined #ruby
<xibalba>
yea i'm US based
<xibalba>
ok
<xibalba>
why didn't you do something in physics?
<xibalba>
physics is cool man
CpuID has quit [Ping timeout: 265 seconds]
<matti>
xibalba: I would starve to death as Physicist in Poland ;s
<xibalba>
ah, good point
<xibalba>
come to the USA!
<platzhirsch>
Though I wouldn't advise to go to college just to get a job afterwards, although study fees is an issue here
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kpshek has quit []
<xibalba>
im torn on going back to school. i'm 29, did about half of it. have 13 years of industry experience (sys admin mostly, some coding about 8 years ago)
<Hanmac>
matti: Kernel ... okay i didnt reached that level YET ... but i am commited things in many other projects like cegui or wx or sfml or glfw (mostly to inproof my bindings)
<Hanmac>
matti: shevy says that when my commits will reach the Kernel, the IT worldwide will collapse and the universe will end ;P
mmitchel_ has joined #ruby
<matti>
Hanmac: No ;p
<platzhirsch>
xibalba: you are already half-away through, why quit now?
<matti>
Hanmac: I just did bug fixes in shit I was workig with day-to-day.
<matti>
Hanmac: Its not a rocket science.
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xibalba>
platzhirsch, school has gone up almost 3x the price :(
benzrf has left #ruby [#ruby]
<xibalba>
use to be $12 per unit credit, now it's $45-$50
asobrasil has joined #ruby
<xibalba>
i should ask my work to pay
jibi has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<matti>
Hanmac: I used to work on embedded devices and WiFi ...
<platzhirsch>
By the way, what's if you just study at a community college?
nhhagen has quit [Remote host closed the connection]
<platzhirsch>
isn't that legitimate?
p4d4w4n has joined #ruby
<matti>
xibalba: You have to be crazy to study in the US.
<matti>
xibalba: Unless you are dirt rich.
b00stfr3ak has quit [Ping timeout: 245 seconds]
asobrasil has joined #ruby
<xibalba>
ha, what choice do i have? i was born here
<matti>
xibalba: You finish and you are in debt already.
asobrasil has quit [Max SendQ exceeded]
kpshek has joined #ruby
thevishy has quit [Ping timeout: 260 seconds]
<matti>
xibalba: UK is cheaper.
<xibalba>
yeah, i put my wife through school. she only had $5k in debt
<platzhirsch>
Well it's too late to tell now matti ;)
* Hanmac
maybe wanted to study a bit but i would need abi for that
io_syl has joined #ruby
<xibalba>
matti, only for its citizens
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<matti>
xibalba: Woo some English girl ;]
<platzhirsch>
come to Germany, we have cookies
shadoi has joined #ruby
<xibalba>
ha i wish
<xibalba>
i can't speak a word of German
<matti>
Hanmac: Haha
<xibalba>
Bratwurst?
<matti>
xibalba: They are classes in English.
<platzhirsch>
xibalba: that should suffice
<matti>
xibalba: Education in Poland is free on any level
<matti>
xibalba: Also, classes in English ;s
<platzhirsch>
xibalba: what college are you attending?
<matti>
xibalba: Granted, its not MIT ;p
elux has quit [Quit: Leaving...]
<xibalba>
i only went to a local community college
mmitchell has quit [Ping timeout: 272 seconds]
<platzhirsch>
ah ok
<platzhirsch>
and how high are the fees there?
<xibalba>
now about $50 per credit
<xibalba>
use to be $12
<xibalba>
less than 10 years ago
mengu has quit [Remote host closed the connection]
<platzhirsch>
and how many credits do you need to make for a bachelor's degree
<platzhirsch>
180?
mmitchel_ has quit [Ping timeout: 260 seconds]
asobrasil has joined #ruby
p4d4w4n has quit [Client Quit]
<xibalba>
i think so
asobrasil has quit [Max SendQ exceeded]
batchitcray has quit [Ping timeout: 240 seconds]
liamkeily has joined #ruby
<matti>
360
<matti>
IIRC
<platzhirsch>
well, that's about the same loan I have to pay back to the state
<matti>
Its 360 in UK.
<xibalba>
brb
kitak_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
thevishy has joined #ruby
asobrasil has joined #ruby
duggiefresh has quit [Remote host closed the connection]
kitak_ has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<platzhirsch>
360 would be different :D I always thought community colleges are free
<platzhirsch>
mostly
CpuID has joined #ruby
<matti>
platzhirsch: Is education in Germany free?
asobrasil has joined #ruby
* matti
has no idea.
<platzhirsch>
Matti: yes
aryaching_ has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<matti>
Same then.
<platzhirsch>
you have to pay a small fee, for your ticket, but it's not comparable
<matti>
Yeah
interactionjaxsn has quit [Remote host closed the connection]
<matti>
150k in the US? Nuts.
<matti>
I rather save that and buy a house.
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<matti>
Or invest in own business.
interactionjaxsn has joined #ruby
mikepack has joined #ruby
<platzhirsch>
I don't know. It's easy to see from the perspective abroad :)
<platzhirsch>
s/see/say
LiquidInsect has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
dev1x is now known as rfx86
ItSANgo has quit [Quit: Leaving...]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
asobrasil has joined #ruby
d2dchat has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 252 seconds]
asobrasil has quit [Max SendQ exceeded]
<matti>
;p
<shevy>
that debt-system is a true perversion
<matti>
+1
CpuID has quit [Ping timeout: 245 seconds]
asobrasil has joined #ruby
<matti>
shevy: Well said.
slash_join is now known as slash_nick
asobrasil has quit [Max SendQ exceeded]
<platzhirsch>
Ivy-league is a perversion
nettoweb has quit [Quit: nettoweb]
interactionjaxsn has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
<platzhirsch>
How would you get all keys from a hash, also the nested ones?
<shevy>
by sanitizing the hash, then calling .keys on it
<shevy>
:D
jrhe has quit [Quit: jrhe]
nhhagen has joined #ruby
<matti>
For sanitising hash use Domestos.
virtualize has quit [Quit: Leaving...]
havenn has joined #ruby
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
havenwood has quit [Read error: Connection reset by peer]
<platzhirsch>
I'd rather sanitize it than santise
duggiefresh has joined #ruby
breakingthings has quit []
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
alekst has quit [Quit: Leaving...]
thevishy has quit [Remote host closed the connection]
bradhe has joined #ruby
m8 has quit [Quit: Sto andando via]
zombiebit has quit [Quit: alem buysa kral ruby]
sailias has quit [Ping timeout: 272 seconds]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
iamjarv__ has joined #ruby
nwertman has quit [Quit: leaving]
<bnagy>
platzhirsch: simple recursion is probably the most readable
<apeiros>
Hash#unretardize
Lewis has joined #ruby
<platzhirsch>
haha
tylersmith has quit [Read error: Connection reset by peer]
<platzhirsch>
Hash you are drunk, go home
<apeiros>
Hash#soberize ?
iamjarv__ has quit [Read error: Connection reset by peer]
phipes has quit [Remote host closed the connection]
duggiefr_ has joined #ruby
shime has joined #ruby
Lewis has joined #ruby
tjbiddle has joined #ruby
roolo has joined #ruby
MattStratton has quit [Remote host closed the connection]
ringaroses has joined #ruby
charliesome has quit [Ping timeout: 246 seconds]
<speakingcode-wor>
anyone use geminabox to host private gems? is it possible for a client without geminabox to push to a geminbox server via gem push w/ some flag to specify the location?
cdolan has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
tjbiddle has quit [Client Quit]
dkamioka has joined #ruby
<speakingcode-wor>
oh, --host
stringoO has quit [Quit: stringoO]
duggiefresh has quit [Ping timeout: 250 seconds]
polaco has quit [Quit: HTTP/1.1 410 Gone]
IceDragon has quit [Ping timeout: 265 seconds]
IceDragon has joined #ruby
danman has quit [Quit: danman]
freerobby has joined #ruby
coffeina has joined #ruby
polaco has joined #ruby
drugdiq has joined #ruby
burlyscudd has joined #ruby
<drugdiq>
hi what is a good debugger to check execution steps for ruby ?
mootpointer has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
elux has joined #ruby
tylersmith has joined #ruby
jrhe has quit [Quit: jrhe]
havenwood has joined #ruby
Rollabun_ has quit [Remote host closed the connection]
benweint has quit [Quit: Computer has gone to sleep.]