simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
omosoj has quit [Ping timeout: 252 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
(by someone i mean mpapis)
<havenwood>
Friday! \o/
<apeiros>
saturday :(
<apeiros>
3 day week-end! \o/
musashi1 has joined #ruby
binaryhat has quit [Quit: Leaving]
KAO has quit [Ping timeout: 240 seconds]
gstamp has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
dayepa has joined #ruby
sambao21 has joined #ruby
ner0x has joined #ruby
rm_ has joined #ruby
mary5030 has joined #ruby
jxf has joined #ruby
MrWharfsnort has quit [Ping timeout: 255 seconds]
jamto11 has joined #ruby
sambao21 has quit [Client Quit]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
rm_ has quit [Ping timeout: 252 seconds]
fella5s has quit [Read error: Connection reset by peer]
ddv has quit [Ping timeout: 245 seconds]
JokesOnYou77 has quit [Ping timeout: 276 seconds]
KAO has joined #ruby
marr has quit [Ping timeout: 258 seconds]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BWStearns has quit [Ping timeout: 255 seconds]
nanoyak has joined #ruby
ascarter has joined #ruby
ddv has joined #ruby
KAO has quit [Ping timeout: 255 seconds]
chrisseaton has quit []
nobitanobi has quit []
ascarter has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
sdwrage has quit [Quit: This computer has gone to sleep]
chrisseaton has joined #ruby
KAO has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has quit [Ping timeout: 252 seconds]
IceDragon has joined #ruby
chrisseaton has quit [Client Quit]
jxf has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
pu22l3r has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 252 seconds]
andrewjanssen has quit [Quit: Leaving...]
toky has joined #ruby
<toky>
hello
<Jnco>
hi
ascarter has joined #ruby
<toky>
i need help in setting http_proxy env variable from a ruby script but i need to unset it after the script ends...
nanoyak has quit [Quit: Computer has gone to sleep.]
JacobHayes has joined #ruby
<toky>
the script just calls aws cli tool (python) but it relies on the http_proxy env...and I have other apps that break if tehy try to traverse the proxy
maestrojed has quit [Quit: Computer has gone to sleep.]
ce_afk is now known as cescalante
<havenwood>
toky: ENV.delete 'http_proxy'
Connie has joined #ruby
<toky>
havenwood: thanks, but how do i set it first?
zigomir has quit [Remote host closed the connection]
Zenigor has joined #ruby
diegoviola has joined #ruby
zigomir has joined #ruby
replay_ has quit [Ping timeout: 252 seconds]
replay has joined #ruby
wallerdev has quit [Quit: wallerdev]
<toky>
can i execute that ruby script with ruby ./custom-fact.rb ?
Zenigor_ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
<toky>
currently for testing im just doing facter -p (to load puppet facts)
andrewjanssen has quit [Quit: Leaving...]
hermanmunster has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
toky: in its dir: ruby custom-fact.rb
qwyeth has quit [Quit: Leaving]
senayar_ has joined #ruby
Vivekananda has quit [Ping timeout: 252 seconds]
zigomir has quit [Ping timeout: 255 seconds]
<havenwood>
toky: or add a `#!/usr/bin/env ruby` to the first line, `mv custom-fact.rb custom-fact`, `chmod +x custom-fact` and run it with: ./custom-fact
Nexus_x1 has quit [Quit: Computer has gone to sleep.]
<havenwood>
toky: or you can drop the ./ if you put it in your PATH, e.g.: sudo mv custom-fact /usr/bin/local && custom-fact
sabfer has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
Vivekananda has joined #ruby
Zenigor has quit [Ping timeout: 240 seconds]
<toky>
k, i'll add ruby to the path... currently the only ruby on these boxes is the one that comes with puppet enterprise
hermanmunster has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hermanmunster has joined #ruby
<toky>
le sigh...
<toky>
the instances were not created with the right iam role...so it cant query ec2 anyways...
rm_ has joined #ruby
<toky>
i will test this on another place...thanks for all your help
charliesome has joined #ruby
<toky>
going to increase alcohol intake
diegoviola has quit [Quit: WeeChat 0.4.3]
benlieb has joined #ruby
omosoj has joined #ruby
reset has quit [Quit: Leaving...]
hermanmu_ has joined #ruby
reset has joined #ruby
johnnydiabetic has joined #ruby
troulouliou_dev has joined #ruby
omosoj has quit [Client Quit]
hermanmunster has quit [Ping timeout: 240 seconds]
<robert_>
is there an "elegant" way to display a default value for a string, if a variable is either A.) Not a string, or B.) Its length is 0?
rm_ has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
mgomezch has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
nari has joined #ruby
<robert_>
so, puts "#{'No input.' unless foo.is_a?(String) and not foo.empty? }" ?
Fire-Dragon-DoL has quit [Quit: Leaving.]
<centrx>
robert_, Depends on your other code. I might implement it like this:
<centrx>
def input_desc
freerobby has quit [Quit: Leaving.]
combusean has quit [Ping timeout: 258 seconds]
<centrx>
return "No input" unless s.is_a?(String) && s.present?
<centrx>
desc
<centrx>
end
<robert_>
oh, okay.
<centrx>
Hard to say without the rest of your code
<centrx>
but the return if/unless is a good technique for shortcutting a method
<omosoj>
hey guys, question about organizing data. i'm going to scrape a website for essays. how should i organize the data? like a hash of arrays? hash keys dates, and values of strings (or arrays?)?
<centrx>
You put a bunch of returns at the top of your method like that, and then the core of the method follows and is greatly simplified/clarified
<centrx>
robert_, If you wanted it to be inside a #{}
<centrx>
robert_, You could do: #{(foo.is_a?(String) && !foo.empty?) ? "No input" : "Input!"}
<centrx>
That's the ternary conditional
<centrx>
probably reversing things there
senayar_ has quit [Remote host closed the connection]
<centrx>
it's: if ? then : else
julian-delphiki has quit [Read error: Connection reset by peer]
<robert_>
yeah, that worked. :D
<centrx>
omosoj, I generally return a hash or array of hashes from a scraper to separate the scraping logic from other logic
johnnydiabetic has quit [Ping timeout: 240 seconds]
<centrx>
omosoj, Or save to a temporary/source table
Melpaws has joined #ruby
pen has joined #ruby
radic has quit [Ping timeout: 240 seconds]
ktun has joined #ruby
bean has joined #ruby
franzip has quit [Quit: ...]
<omosoj>
centrx, thanks. hm, how should i decide which one to use?
radic has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<alexbobp>
are activerecord questions ontopic here?
Es0teric has joined #ruby
<centrx>
alexbobp, Try #rubyonrails
<alexbobp>
thanks!
<pontiki>
return the hash data, let the caller decide what to do with it
alexbobp has left #ruby [#ruby]
freerobby has joined #ruby
echevemaster has joined #ruby
Spleeze has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
bahar has joined #ruby
musashi1 has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
Zenigor has joined #ruby
diegoviola has joined #ruby
bahar has quit [Client Quit]
troulouliou_dev has quit [Quit: Leaving]
JacobHayes has quit []
aiguu has joined #ruby
CodeBunny has joined #ruby
<omosoj>
centrx, just to clarify, you return (a) a hash of hashes or array of hashes, or (b) a hash or array of hashes?
michael_lee has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
<centrx>
omosoj, Depends on what kind of data you are getting and how it is going to be used.
<centrx>
omosoj, It might be natural to return the data in the same basic format it was scraped in
jamto11 has joined #ruby
<centrx>
omosoj, Or it might be more efficient/simpler to convert during the scraping to an appropriate form
Spleeze has joined #ruby
<centrx>
The data I happen to be scraping right now makes sense as an array of hashes, and if I need to get an efficient dictionary I can use index_by, group_by or whatever map, after the scraping
Zenigor_ has joined #ruby
BSaboia has quit [Quit: Fui embora]
<omosoj>
ok. i'm not sure how i'm going to use the info yet. I'm just fooling around. since the two main values are date and the essay, i guess i'll use a simple hash.
noob101 has joined #ruby
<omosoj>
ok, i see.
<noob101>
Hi
Hanmac1 has joined #ruby
<noob101>
Can someone please help me?
<omosoj>
noob101, yup, ask away.
<noob101>
How do I randomly select an object. Does that object have to be in something like an array to randomly select it?
<benzrf>
noob101: sup bro
Es0teric has quit [Quit: Computer has gone to sleep.]
<noob101>
benzrf, hi!!!!!
<centrx>
noob101, What kind of object?
<benzrf>
noob101: well, think about it this way
yacks has joined #ruby
<benzrf>
what if i said 'pick something' out of nowhere
<noob101>
Well, I would like that object to be a variable which would store something possibly an integer.
<benzrf>
there's no context for what i mean
<benzrf>
it would make more sense to say something like
<benzrf>
'pick one of these items'
<benzrf>
or
Zenigor_ has quit [Remote host closed the connection]
<benzrf>
'pick a number from 1 to 10'
Zenigor has quit [Read error: Connection reset by peer]
<centrx>
I pick benzrf
<noob101>
Ok look benzrf.
Zenigor has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
rezzack has quit [Ping timeout: 265 seconds]
Hanmac has quit [Ping timeout: 255 seconds]
<noob101>
How do I type in a line of code that says in ruby that picks a random object.
mary5030 has joined #ruby
<noob101>
Sorry, that didn't make sense.
<noob101>
I mean how do I get ruby to pick a random object which I created like a variable or something.
george2 has joined #ruby
Melpaws has quit [Quit: Leaving.]
<centrx>
noob101, You could use ObjectSpace
<centrx>
noob101, But what are you _really_ trying to do
<benzrf>
centrx is deliberately answering your question overly technically literally
<benzrf>
noob101: trust me you dont want to mess with objectspace
* centrx
is a robot and cannot understand human emotions
Es0teric has joined #ruby
<noob101>
benzrf: why? Is he correct?
<noob101>
Ok so here's the thing.
<omosoj>
what's the best way to encode the date as a key in a hash? integer? string?
Hanmac has joined #ruby
<noob101>
I want on an interview today to a company called Adcade in Manhattan, New York City.
sabfer has quit [Quit: Leaving...]
diegoviola has quit [Quit: WeeChat 0.4.3]
dsdeiz has joined #ruby
<centrx>
omosoj, You can use a Date object as a key
<noob101>
I met with the COO/Co-Founder Rob Prentice and he's thinking if giving me a job but he told me to solve a problem.
Vivekananda has quit [Quit: Ex-Chat]
<noob101>
So I created this game in ruby, I am a beginner rubyist and I explained to Rob that this is how I practice my programming skills by making a ruby game.
<centrx>
omosoj, Hash will use Date#hash, basically a hash key can be any object, though symbol/integer keys are probably the fastest
<centrx>
omosoj, Date is not particularly slow, so it should be fine
combusean has joined #ruby
<noob101>
Someone mention when cards are dealt in the game, does four cards of a number get dealt over the amount. Basically if we played 21 and you took four 6's, will the game deal more 6's?
Hanmac1 has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
<noob101>
So my job is to have my blackjack game not deal no more than 4 of the same number of a specific card.
agarie has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
<noob101>
Is that clear now?
jlast has joined #ruby
fgo has joined #ruby
ixti has quit [Ping timeout: 258 seconds]
<noob101>
Now that I explained myself, can anyone help me any better since I just explained what I want to do now?
<centrx>
noob101, I would make an array of 52 cards and then use sample with delete to deal one card
<omosoj>
centrx, ok, thanks.
fgo has quit [Read error: Connection reset by peer]
<noob101>
An array of 52 cards huh interesting, centrx .
fgo has joined #ruby
<noob101>
What is `sample`?
marcdel has joined #ruby
<omosoj>
sorry, another question. what are the drawbacks/benefit of organizing data into a complex array/hash system vs something like a sql database?
<noob101>
Ok thank you so don't use object space centrx ?
<centrx>
noob101, ObjectSpace would enable you to pick a random object out of _all_ objects in the running program "pick a random object"
rkj has joined #ruby
<centrx>
noob101, Instead, you want to pick a card from a specific kind of object (e.g. array)
Zenigor has quit [Ping timeout: 240 seconds]
sepp2k has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 252 seconds]
<noob101>
centrx I want that to happen when the user puts in a command, is that possible?
ce_afk is now known as cescalante
marcdel_ has joined #ruby
<noob101>
centrx, can I just show you my game then we can take it from there please/
<noob101>
?
marcdel has quit [Ping timeout: 240 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<centrx>
Sure
<centrx>
As long as Rob Prentice doesn't mind
svf has quit [Ping timeout: 276 seconds]
Asher has quit [Quit: Leaving.]
<noob101>
HAHAHAHAHAHAHAH, Of course not centrx!
<noob101>
LOL, goood one!
RaptorJesus_ has joined #ruby
newleaf has quit []
newleaf has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
braincrash has quit [Quit: bye bye]
<noob101>
centrx, this is my game. Can you tell me if it's good then can we try to implement that when the game deals cards, it cannot deal the same card more than 4 times?
<noob101>
centrx: It's bad, I tried practicing my programming skills but can you show me what you're talking about through pastie or whatever thing will help please?
RaptorJesus has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
sindork has joined #ruby
sindork has quit [Changing host]
<centrx>
noob101, You want a method like #deal_card
diegoviola has joined #ruby
<noob101>
centrx, I will write that down, "start with a method with deal_card", got it.
<centrx>
noob101, Given your context of keeping the cards in the deck, and maxing out at 4 cards, you would probably want to: a) select card at random to deal, b) check if that cards count > 4
Beoran_ has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
<centrx>
noob101, if the card is maxed out, do another random card (this would be in a loop, so it would check again if the card's count > 4)
RaptorJesus_ has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<centrx>
noob101, When a card is dealt, add +1 to a card counter hash you have
thesheff17_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<centrx>
noob101, But that technique may or may not perturb the randomness, making it not uniformly random
RaptorJesus has joined #ruby
thesheff17 has quit [Disconnected by services]
thesheff17_ has quit [Client Quit]
rm_ has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 276 seconds]
<centrx>
noob101, I think it probably breaks the uniformity of the randomness. The set to randomly select from should have no more cards than you want to select
andrewjanssen has joined #ruby
thesheff17 has joined #ruby
<noob101>
what is uniformity
RaptorJesus has joined #ruby
<centrx>
e.g. Aces always get dealt with the same frequency as Twos
<noob101>
yes centrx
<centrx>
The deal can be random, while favoring certain cards
<centrx>
(still "random")
voodoofish has joined #ruby
<noob101>
what about this card counter has, can you talk about that centrx please. I am taking notes.
<noob101>
o-o
Es0teric has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
rm_ has quit [Ping timeout: 276 seconds]
<centrx>
noob101, Cannot deal the same card more than 4 times -> Count how many times the card has been dealt so far and only deal it if the card has been dealt less than 4 times
Connie has quit [Ping timeout: 252 seconds]
RaptorJesus has quit [Remote host closed the connection]
<noob101>
centrx, can you please write a bit of code so I can get an idea on where to start, I am a bit confused. You mentioned the use of an array, loop and hash.
<noob101>
Should I use variables? You also mention make a deal_card method
<centrx>
deal_card is where all your new deal cards would come from
RaptorJesus has joined #ruby
Beoran_ has joined #ruby
<centrx>
I would do it a different
<centrx>
@deck = Deck.new # all 52 cards
<centrx>
deal_card would include @deck.delete_at(rand(@deck.length))
fieldfirst has joined #ruby
<noob101>
OMG, I am confused centrx :/
<centrx>
About what?
<noob101>
So now I should make a class or something?
<pontiki>
YES
<havenwood>
@deck.sample
<pontiki>
:)
replay_ has joined #ruby
<pontiki>
it's have to be sample_with_removal
<centrx>
noob101, It depends on what your goals are. I would make this code object-oriented. Right now it is a long script in procedural form
end_guy has quit [Remote host closed the connection]
RaptorJesus has quit [Write error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
atmosx has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
<pontiki>
but i don't think that exists :)
<centrx>
noob101, But that could be a major refactoring of your existing code.
<havenwood>
right dealing cards, they leave the deck >.>
<centrx>
isn't it beautiful
Es0teric has quit [Quit: Computer has gone to sleep.]
<noob101>
Object oriented means producing instances of classes right?
<havenwood>
decks aren't immutable
<centrx>
noob101, Yes, your classes would represent concepts of the problem, e.g. Dealer, Deck, Player
<centrx>
Hand
codeurge has joined #ruby
<noob101>
centrx: so I would have to make a class for dealer and a class for deck and stuff?
<centrx>
noob101, That would be the idea, yes
<havenwood>
and when a simple data structure suffices, stop making classes!
MrWharfsnort has joined #ruby
Cache_Money has joined #ruby
<pontiki>
but you could do @deck.shuffle, and then make it have an enumerator, and dealing would just be @deck.next
replay has quit [Ping timeout: 264 seconds]
<noob101>
That so hard, I am not good with classes really. I don't even know what an instance variable is and stuff or how to initialize properly, I don't know a lot.
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
it is time
<pontiki>
learn it
<havenwood>
heh, in my deck of cards drawing is #shift
<noob101>
centrx: Can you just show me an example of what you're trying to help me create using pastie please?
<shevy>
hey that fellow died a while ago didn't he
moritzs has joined #ruby
<agent_white>
shevy: Oh dayum. I work on a farm that produces goat products!
<agent_white>
shevy: Maybe he did. Now I'm sad :(
<shevy>
agent_white well it probably was not only that cheese alone, I also put something on it... some onion sauce... and I also ate chocolate afterwards... I'm gonna change my diet, I kinda was completely unproductive during those 2 days :(
<agent_white>
Hanmac: In the intro of AdventureTime, where Finn and Jake are going through the ice-kingdom at night (when Jake's legs are strectched), I have that. Goes from my knee to my ankle.
* Hanmac
likes the house-hunting song
memorozovm has joined #ruby
mengu has quit [Remote host closed the connection]
<LadyRainicorn>
haha
timonv has quit [Ping timeout: 264 seconds]
moosya has quit [Remote host closed the connection]
<agent_white>
My favorite episode lately is Grass-sword.
<certainty>
shevy: for good reasons!
<agent_white>
It made me so happy after seeing the end.
<shevy>
certainty well it shows that the www is too important to continue to want to ignore it!
alexju has quit [Remote host closed the connection]
banisterone has quit [Quit: Bye]
banisterone has joined #ruby
<Hanmac>
agent_white: "i am looking at my bits ... my leg is MATH" ;P
memorozovm has quit [Ping timeout: 276 seconds]
AndChat|102836 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
noob101 has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
klaut has joined #ruby
banisterone has quit [Ping timeout: 255 seconds]
<certainty>
shevy: i don't ignore the www :p. It's a bad place though. Also I'm not ignoring php. I like it. I'm on a mission. Revive the forgotten forces
sooik has joined #ruby
<LadyRainicorn>
You *like* PHP?
<shevy>
certainty you don't ignore the www - but you are also not a programming language :>
<certainty>
shevy: take that back!
<certainty>
LadyRainicorn: sure :)
sski has quit [Remote host closed the connection]
jamo_ has quit [Quit: Lost terminal]
danshultz has joined #ruby
sski has joined #ruby
<LadyRainicorn>
If you were a programming language, what would you be?
sski has quit [Remote host closed the connection]
sski has joined #ruby
<certainty>
LadyRainicorn: hmm i'm pretty sure i'd be brainfuck
<LadyRainicorn>
Seems appropriate given that you like PHP.
<certainty>
how can someone not like PHP?
<certainty>
i mean a sane someone
<certainty>
it's our beloved gaia
SegFaultAX has quit [Excess Flood]
<certainty>
it's my favorite piece of science fiction
<shevy>
I don't think you would be able to reach brainfuck
<shevy>
you would be more like ... dumbfuck
<shevy>
the new programming language!
<certainty>
you mean like brainfuck 2.0?
<shevy>
we are lucky that centrx is not here
SegFaultAX has joined #ruby
<shevy>
he'd show you what he thinks about php
koderok has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: NIGHT]
AndChat|102836 has quit [Read error: Connection reset by peer]
<certainty>
you ruby fundamentalists :p
banisterone has joined #ruby
<Hanmac>
hey! i could write a webpage or a webserver in C if i want
<certainty>
me too!
mercerist has joined #ruby
<certainty>
i'd like to do it in PHP though
<certainty>
because of its power
* LadyRainicorn
smells a troll.
jlast has joined #ruby
newleaf has joined #ruby
<certainty>
LadyRainicorn: where? don't feed it!
HashNuke has quit [Quit: Connection closed for inactivity]
<LadyRainicorn>
In the dungeons, obviously.
<Hanmac>
what? i thought they live under bridges
sooik has quit [Ping timeout: 265 seconds]
<certainty>
underneath a bridge, tarp has sprung a leak and the trolls i've trapped, have become my pets
jlast has quit [Ping timeout: 276 seconds]
AndChat|102836 has joined #ruby
banisterone has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
ktun has joined #ruby
cina_ has joined #ruby
<certainty>
shevy: wanna join PHP project?
ktun_ has joined #ruby
<shevy>
certainty I abandoned php when I went to ruby!
cina has quit [Ping timeout: 264 seconds]
<shvelo>
shevy: wow such php
yacks has joined #ruby
hey is now known as stenno
<certainty>
shevy: :(
<shvelo>
php not wow, php bad
nari_ has joined #ruby
<shevy>
I can't even say that monkeys designed php
<shevy>
because I don't wanna insult the poor monkeys
<certainty>
shevy: PHP must be a good language, since it is so popular
<shvelo>
religion is popular too
<shvelo>
also Reality TV
ktun has quit [Ping timeout: 240 seconds]
<certainty>
yeah and both are great things :)
<shevy>
certainty well that's an argument one can not negate
<shevy>
shit must be useful
<shevy>
after all, so many flies like it
<certainty>
yeah
<certainty>
so i have to look elsewhere to hire PHP developers
<certainty>
:(
<shevy>
haha
<shevy>
just look at all the "freelancers"
nari has quit [Ping timeout: 264 seconds]
<certainty>
i want to make a language in php
C0deMaver1ck has quit [Ping timeout: 240 seconds]
<shvelo>
shevy, hey brother, do you know any sites where I can freelance on Ruby projects?
bbloom has quit [Ping timeout: 276 seconds]
bakflash has joined #ruby
<shvelo>
certainty, languages are usually made in C
<shevy>
shvelo no real idea, I guess most of these are related to rails
<certainty>
C?
<shvelo>
C/C++ whatever
ce_afk is now known as cescalante
mercerist has quit [Quit: Computer has gone to sleep.]
<shevy>
shvelo I also seem to see job offers getting coupled with different languages; for instance, one programming job here for bioinformatician, mandates advanced knowledge in a scripting language (ok I guess ruby fits but they mentioned python and perl only); also in R, and deep knowledge of statistics (well I guess anyone who knows R will know enough about statistics as well)
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
<shevy>
oh yeah and
<shevy>
"Strong background in data mining, machine learning and statistical analysis"
<shevy>
whatever they mean with machine learning :\
<certainty>
:\
<certainty>
i once tried to learn all the machines I have
AlexRussia has quit [Ping timeout: 240 seconds]
<certainty>
i failed
<shevy>
lol
<certainty>
i'm not good at machine learning :/
<certainty>
maybe i need a supervisor
alem0lars has joined #ruby
<certainty>
then i can do supervised machine learning
<certainty>
nah, i want to become better in PHP first
<certainty>
at PHP?
sski has quit [Remote host closed the connection]
<shvelo>
certainty, k
sski has joined #ruby
<shevy>
certainty but you can do everything you can do in PHP in ruby as well!
<certainty>
shevy: nah I think that's only what the ruby guys want to make us believe
<certainty>
don't fall into that trap
<shevy>
we need challenges
ktun_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty>
yeah we all do
<certainty>
shevy: i once tried to use ruby instead of php. Didn't work. The apache would just serve the sourcecode
s2013 has joined #ruby
<certainty>
maybe it didn't understand my <?ruby ?> tags
mercerist has joined #ruby
<shevy>
I think you can enable that
<certainty>
yeah, i need to learn the apache language too!!
<shevy>
that guy on http://www.kuwata-lab.com/ even had a slight extension to .cgi so that it displayed the line of error
Jamo has quit [Remote host closed the connection]
Symbiosisz has quit [Remote host closed the connection]
sski has quit [Ping timeout: 258 seconds]
<certainty>
ruby is too brainy for me
<certainty>
I want to build information technology systems
<certainty>
shevy: maybe i should just ditch computer science and start growing flowers or something
<shevy>
certainty nothing wrong with flowers
AndChat|102836 has quit [Read error: Connection reset by peer]
<certainty>
nope
<shevy>
the dutch empire makes good money with these
pu22l3r has joined #ruby
<certainty>
and they make millions if not thousands of people happy
<certainty>
@>-\--
* LadyRainicorn
likes flowers.
<LadyRainicorn>
They are pretty.
eka has joined #ruby
<certainty>
like PHP!
<LadyRainicorn>
Considerably better.
<certainty>
subjective!!!1111
yetanotherdave has joined #ruby
<LadyRainicorn>
I think PHP is objectively bad.
<certainty>
nah you just don't get it!
<LadyRainicorn>
It is how badness is defined.
<certainty>
it's the unit of badness?
<LadyRainicorn>
bad (adj.) of or resembling PHP
<certainty>
it's badass, i say
<LadyRainicorn>
"That's so ~ I want to vomit."
<LadyRainicorn>
"Global variables are a ~ idea."
pu22l3r has quit [Ping timeout: 258 seconds]
<certainty>
i find them convenient
<LadyRainicorn>
"certainty is a ~ programmer."
<certainty>
:(
<certainty>
i think you're using them too
<certainty>
you just don't tell
<LadyRainicorn>
aw, maybe you will be better at growing flowers! :)
<certainty>
i hope so
olivier_bK has quit [Ping timeout: 265 seconds]
<shevy>
we all hope so
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
yetanotherdave has quit [Ping timeout: 240 seconds]
<certainty>
i want to grow species from the category of taraxacum
<certainty>
does one speak of species in the case of flowers?
<certainty>
nah, i think I'm going to become a herpetologist instead und grow geckos, phelsuma
cescalante is now known as ce_afk
danijoo has quit [Quit: Leaving...]
banisterone has joined #ruby
yakko_ has joined #ruby
ce_afk is now known as cescalante
sambao21 has joined #ruby
simono has joined #ruby
dayepa has quit [Ping timeout: 258 seconds]
yakko has quit [Ping timeout: 264 seconds]
dayepa has joined #ruby
_sambao21 has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
maximski has quit []
mikepack has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
sooik has joined #ruby
s2013 has joined #ruby
ktun has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
_sambao21 has quit [Quit: Computer has gone to sleep.]
lxsameer has quit [Quit: Leaving]
cescalante is now known as ce_afk
ce_afk is now known as cescalante
atmosx has quit [Quit: WeeChat 0.4.4-dev]
abra has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
shemerey has joined #ruby
abra has joined #ruby
jlast has joined #ruby
kaspergr_ has joined #ruby
alem0lars has quit [Quit: alem0lars]
sooik has quit [Ping timeout: 252 seconds]
alex88 has joined #ruby
shemerey has quit [Client Quit]
kaspergrubbe has quit [Ping timeout: 240 seconds]
_sambao21 has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
sambao21 has quit [Ping timeout: 240 seconds]
cescalante is now known as ce_afk
andrewlio has quit [Quit: Leaving.]
jamto11 has joined #ruby
xiq has joined #ruby
kaspergr_ has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
afhammad has joined #ruby
<afhammad>
What's the closest syntax in Ruby to do argument threading/pipeline similar to Clojure's -> or Elixir's |>
jamto11 has quit [Ping timeout: 255 seconds]
Dude007 has joined #ruby
Soda has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zybi1 has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
ndrst has joined #ruby
stenno has quit [Ping timeout: 252 seconds]
danshultz has quit [Remote host closed the connection]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
kaspergrubbe has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
moritzschaefer has joined #ruby
<jhass>
afhammad: since no one answered yet it might help to describe what that does. Do you mean function currying?
_sambao21 has quit [Quit: Computer has gone to sleep.]
memorozovm has joined #ruby
memorozovm has quit [Remote host closed the connection]
sambao21 has joined #ruby
danshultz has quit [Ping timeout: 265 seconds]
shvelo has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
<afhammad>
jhass: In Elixir for example: "test() |> test2() |> test3()" would take the output from test and pass it in as the first argument to test2, same with test2 to test3.
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
wald0 has quit [Quit: Lost terminal]
timonv has quit [Remote host closed the connection]
jhass is now known as jhass|off
Thanatermesis has joined #ruby
Thanatermesis has joined #ruby
Thanatermesis has quit [Changing host]
dayepa has joined #ruby
<shevy>
certainty wtf is a taraxacum
dsdeiz has quit [Ping timeout: 240 seconds]
nomadic has quit [Remote host closed the connection]
Dude007 has quit [Remote host closed the connection]
cina_ has quit [Quit: leaving]
timonv has joined #ruby
Bira_ has joined #ruby
<afhammad>
jhass: yeh, but instead of the source argument coming from the last method it comes from the first, so its easy to follow along achieve much cleaner code
<jhass>
afhammad: only in a functional context, in an object oriented context you instead return something on that you can call the next method. string.strip.downcase.chars
klaut has quit [Remote host closed the connection]
<shevy>
but it was shitty weather the last 3 days already. it's like a blade runner environment, permanent rain...
<certainty>
it's going to get better, isn't it?
<mordof>
shevy: looks like i'll be starting on my next project very shortly
<mordof>
shevy: will be starting work on tuesday :D
<shevy>
mordof YES
<certainty>
have you considered PHP?
<shevy>
FINALLY
<shevy>
project number #3
<mordof>
shevy: heh, yep
<mordof>
project 2 will happen over the weekend - then work kicks up
Martxel has joined #ruby
rippa has joined #ruby
<shevy>
certainty I am sure mordof has used php in the past
<mordof>
yeah, for quite a while
* mordof
reads the backlog
<certainty>
shevy: ah great, then he already knows about its power
<mordof>
lol
<mordof>
certainty: are you trying to be a PHP advocate here or something?
<certainty>
the one language to rule them all and in the web bind them
<shevy>
he is a webexpert
<shevy>
he even writes html parsers in his spare time
<certainty>
i'm a pretty serious expert
<shevy>
a pexpert
<certainty>
i do science!
billiam has quit [Quit: WeeChat 0.4.1]
<shevy>
science is big data
<mordof>
the seems like trolling... lol
<mordof>
this*
jjbohn has quit [Ping timeout: 240 seconds]
<shevy>
certainty are you trolling?
kevinykchan has joined #ruby
<knightwrestle>
i do science - excellent lol
<certainty>
shevy: did you ever see me trolling? :D
<certainty>
i'm dead serious. It's hard science
<certainty>
though I'd love to build information technology systems
<mordof>
PHP has it's place... but it isn't here.
<certainty>
:(
* mordof
goes back to reading about ruby metaprogramming
JokesOnYou77 has joined #ruby
<certainty>
you can do badass meta programming in PHP
<certainty>
call_user_func!
oo_ has quit [Remote host closed the connection]
<mordof>
certainty: i'm aware.. i've done it. it's also ugly
<certainty>
^5
shenkz has quit [Ping timeout: 265 seconds]
<certainty>
shevy: i tried big data. But didn't fit into my mysql store, so i decided to ditch it
<mordof>
haha
<certainty>
mysql is best!
<certainty>
mysql -> best db; PHP -> best language; -> WIN!!
<abstrakt>
wtf, why are we still on this PHP jag
<abstrakt>
mordof++ re "not here"
* mordof
puts a fancy hat on certainty. this hat has many bright colors, and a spinny propellor on top
pu22l3r has quit [Remote host closed the connection]
<mordof>
-> best hat
<certainty>
mordof: the clever hat?
<mordof>
sure
<certainty>
awesome!
<abstrakt>
more like ass hat
<knightwrestle>
lol
<certainty>
now i even look like doing science!
<mordof>
hehe
<knightwrestle>
lol
<certainty>
abstrakt: because PHP is a pretty good thing to talk about
<knightwrestle>
can we have enough hats for everyone?
<mordof>
knightwrestle: i only give out one a day, sorry
<abstrakt>
certainty, not in #ruby it's not
<abstrakt>
in ##php maybe
<certainty>
hmm
<mordof>
knightwrestle: you can fight certainty for his if you really want it
<knightwrestle>
mordof: only if we can fight using #gems
<certainty>
no need. I share it
<shevy>
certainty I had to dig deeper into postgresql for work
benmoss has left #ruby [#ruby]
aiguu has joined #ruby
<shevy>
complicated queries hurt my brain a lot
<certainty>
shevy: what does deeper mean?
<shevy>
well
<shevy>
you need to think about optimizing the ways how to store data AND how to most efficiently obtain them again lateron
freerobby has joined #ruby
eam has quit [Ping timeout: 252 seconds]
<abstrakt>
when mysql has a dedicated command buried in the manual called UNCORRUPT TABLES
<shevy>
when to create a new table
<abstrakt>
you know somethin'gs wrong
VTLob has joined #ruby
<shevy>
hehehe
eam has joined #ruby
<mordof>
abstrakt: ahaha, nice. is that honestly real?
<abstrakt>
mordof, yes, and it's happened to me twice now
<shevy>
dunno but there is a damn lot knowledge buried in the postgresql manual, that thing is gigantic
<mordof>
abstrakt: wow... that's awesome
<certainty>
shevy: because the data is so big?
<mordof>
mysql--
<shevy>
certainty yeah. it is more like GODZILLA size
<abstrakt>
certainty, that's what she said
<shevy>
abstrakt no lies please :)))
<knightwrestle>
is there something bigger than #bigdatat
<knightwrestle>
?
<certainty>
#reallybigdata
<knightwrestle>
#bigdata
<shevy>
#hugedata
freerobby1 has joined #ruby
<shevy>
#storingthewholeuniverse
freerobby has quit [Read error: Connection reset by peer]
<shevy>
the database that keeps track of the universe must be huge
yetanotherdave has joined #ruby
<abstrakt>
I heard youtube will soon have more hours of footage than the age of the universe
xiq_ has quit [Ping timeout: 240 seconds]
<shevy>
hmm
banisterone has quit [Read error: Connection reset by peer]
banisterone has joined #ruby
<shevy>
so many hours of
<shevy>
crap
<certainty>
shevy: postgres' support for partitioning doesn't suffice?
<jimbauds>
It's us human .. the universa database ;)
<abstrakt>
which universe does that database live in, and what database tracks that universe?
upsell5 has quit [Quit: upsell5]
svf has joined #ruby
JokesOnYou77 has quit [Quit: Leaving]
<mordof>
abstrakt: universe database inception
<shevy>
certainty hey, I wouldn't know! I think I did not understand postgresl fully yet, all I knew is that when I read a 20 lines SQL query, I went "wow... that thing is even harder to understand than shell scripts"
<mordof>
lol
<shevy>
abstrakt yeah it probably can not work if it is stored in the same universe
<abstrakt>
shevy, just wait until you try working with window queries inside stored procedures
<shevy>
but that's why we have black holes - these cheaters connect different universes, then it can work
<certainty>
shevy: complicated queries suck. Sometimes you can make think simpler with views or hide details with precedures. On the query level you might want to employ CTE's
<certainty>
erm CTEs
<certainty>
my typings sucks again
<certainty>
brb, kids callings
<certainty>
-s
<shevy>
CTOs?
freerobby1 has quit [Ping timeout: 252 seconds]
GlenK has joined #ruby
<mordof>
man.. this book on metaprogramming is geat
<mordof>
great*
<certainty>
shevy: alternatively just use MySQL
<certainty>
:p
<knightwrestle>
mordof: for real? which book are you reading
<shevy>
mordof what did you learn yet
<mordof>
Metaprogramming Ruby - by Paolo Perrotta
<certainty>
ruby metaprogramming (wild guess)
<certainty>
close!
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof>
it's just the writing of it.. it's engaging, and yet informative
SegFaultAX has quit [Excess Flood]
<mordof>
and i'm enjoying reading it through
<jimbauds>
Wich ones is more popular in ruby MySQL or Postgresql? What is the "defacto" database
<shevy>
jimbauds postgresql!
<certainty>
yeah but that's due to a conspiracy
<shevy>
php already has mysql covered
<shevy>
the better language needs the better database
<mordof>
jimbauds: like programming languages, database managers each have their own advantages/disadvantages, and it depends on the task that you're doing as to which is better suited
<certainty>
shevy: now you hear me talking
mclee has quit [Ping timeout: 258 seconds]
<shevy>
certainty hey I am just annihilating you here
St_Marx has quit [Remote host closed the connection]
<shevy>
certainty die, you PHP worm, die!!!
yetanotherdave has quit [Ping timeout: 240 seconds]
<certainty>
that's cybermobbing!!!
<mordof>
jimbauds: shevy and certainty are in a boxing match of trolling right now, pay no attention
St_Marx has joined #ruby
SegFaultAX has joined #ruby
<jimbauds>
mordof: thank you
<jimbauds>
shevy: thank you too
<jimbauds>
;)
<certainty>
jimbauds: no problem
<mordof>
lol
<certainty>
bbl
<mordof>
shevy: just learned a bunch about what classes, modules, objects etc actually are - and how they interact
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mordof>
shevy: while i had my suspicions about some of it due to the behavior, it's cool to get it confirmed and expanded
meatherl_ has quit [Remote host closed the connection]
dayepa has quit [Ping timeout: 240 seconds]
AndChat|102836 has joined #ruby
jamto11 has joined #ruby
ktun has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
danshultz has joined #ruby
dayepa has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
jamto11 has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
AlexRussia has quit [Ping timeout: 258 seconds]
danshultz has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
fenicks has joined #ruby
wldcordeiro|2 has quit [Read error: Connection reset by peer]
Iniesta8 has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
aspires has joined #ruby
dayepa has quit [Ping timeout: 240 seconds]
vekfautles has joined #ruby
Dude007 has quit [Remote host closed the connection]
<Hanmac>
bizancio: the problem is »name "xxxxx"« ... you might need self.name = "xxxxx"
dayepa has quit [Ping timeout: 240 seconds]
<bizancio>
Hanmac: Ahh you are right... because I'm using attr_accessor
freerobby has joined #ruby
<bizancio>
Hanmac: So I'm having that error in the instance_exec line but actually the error happens *inside* the block
mehlah has quit [Quit: Leaving...]
<bizancio>
Hanmac: Yes, that was the problem. Thanks for the help!
amclain has joined #ruby
kilk_ has joined #ruby
cescalante is now known as ce_afk
bigmac_ has joined #ruby
JBreit has left #ruby ["Leaving"]
anaeem1 has quit [Remote host closed the connection]
<havenwood>
shevy: but wouldn't you rather...? "abcdef".each_char.each_slice(3).map(&:join)
freerobby has quit [Ping timeout: 240 seconds]
<shevy>
ack
<mordof>
haha, nice havenwood
alem0lars has quit [Quit: Going AFK...]
cjsarette has joined #ruby
Zenigor has joined #ruby
andrewlio has joined #ruby
dayepa has joined #ruby
ktun has joined #ruby
marcdel_ has quit []
yetanotherdave has joined #ruby
Zenigor has quit [Remote host closed the connection]
bigmac_ is now known as i8igmac
Zenigor has joined #ruby
<bizancio>
How can I pass a variable to an EBR renderer with this line? renderer = ERB.new(File.read("template.erb"))
SegFaultAX has quit [Excess Flood]
Azure has quit [Remote host closed the connection]
<bizancio>
I saw an ugly hack in Internet using def_class but I hope there's a cleaner way
Azure has joined #ruby
SegFaultAX has joined #ruby
ktun has quit [Client Quit]
phansch has quit [Quit: WeeChat 0.4.3]
yetanotherdave has quit [Ping timeout: 252 seconds]
<bizancio>
Ahh maybe I should fill the variables *before* calling ERB new..
phansch has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
<bizancio>
Ahh maybe I should fill the variables *before* calling ERB new..
<bizancio>
Sorry
<bizancio>
Wrong console, I didn't want to repeat that
anaeem1_ has joined #ruby
<kke>
if you have a module like Benchmark that has methods "measure" and let's say "logger" and it allows you to do something like Benchmark.measure do ...doing something.. logger.info "hello" .. end how should you run the block inside of measure method so that calling logger inside the method will not call Benchmark.logger but the logger method outside the block? that came out overly complicated
newleaf has left #ruby [#ruby]
newleaf has joined #ruby
<kke>
"inside the block" that is
newleaf has quit []
<kke>
not "inside the method"
andrewjanssen has joined #ruby
newleaf has joined #ruby
<kke>
i guess yield would call Benchmark's logger instead of the callers logger
<mordof>
kke: i thought you wanted to call Benchmark.logger?
<mordof>
oh
<kke>
no, i don't want the block to be calling Benchmark's methods
eka has joined #ruby
<mordof>
i see what you're saying
<kke>
or see Benchmark::Configuration instead of Caller::Configuration
<mordof>
because Benchmark has a method of the same name - you want it to look elsewhere for the method owner
<mordof>
jhass: actually reading a book on metaprogramming that dove into an explanation of how methods are called, and how instance variable owners are determined (essentially pointing self around to different objects)
<jhass>
kke: I'm still not sure which variant you want, I gave you examples for both
<mordof>
made that code pretty clear - which is nice
dayepa has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.3]
<kke>
hmm
phansch has joined #ruby
<kke>
actually looks like yield does what i wanted, somehow i assumed it would be the other way around
mikepack has joined #ruby
dayepa has joined #ruby
marr has quit [Ping timeout: 258 seconds]
mengu__ has quit []
Dude007 has joined #ruby
Zenigor has quit [Remote host closed the connection]
toastynerd has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 240 seconds]
<kke>
great, my assumption was wrong, the yielding actually happens in the caller's scope. well of course it does, since local variables outside the do..end can be seen inside the block.
andrewjanssen has quit [Quit: Leaving...]
bahar has joined #ruby
subbyyy_ has quit [Ping timeout: 265 seconds]
akonny has joined #ruby
Es0teric has joined #ruby
newleaf is now known as davedev24
i8igmac has quit [Remote host closed the connection]
<kke>
i suppose you would be using instance_exec if you for example wanted to do something like Foo.configure do bars = 10 end instead of |config| config.bars = 10
maximski has joined #ruby
maoko has joined #ruby
<jhass>
yep, except that bars = 10 still would just create a local variable
<kke>
even if there's Foo.bars= method?
<jhass>
yes
<kke>
thats odd
<jhass>
no, locals just always win
<kke>
so you would need something like Foo.set_bars
<jhass>
no, self.bars = 10 would work in your previous example
Shidash has quit [Ping timeout: 240 seconds]
<jhass>
though many DSLs resort to something like def bars value; @bars = value; and you call just bars :foo then
St_Marx has quit [Ping timeout: 272 seconds]
redondos has quit [Excess Flood]
redondos has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
timonv has joined #ruby
alem0lars has joined #ruby
p8952 has quit [Ping timeout: 258 seconds]
p8952 has joined #ruby
p8952 has quit [Changing host]
p8952 has joined #ruby
GlenK has quit [Quit: Konversation terminated!]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterone has quit [Ping timeout: 258 seconds]
Vivekananda has joined #ruby
dayepa has quit [Ping timeout: 252 seconds]
banisterone has joined #ruby
dayepa has joined #ruby
Steve21 has joined #ruby
jrhe has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
<certainty>
lol the closing keynote of tenderlove at railsconf is awesome
linojon has quit [Quit: linojon]
phansch has joined #ruby
<Steve21>
does ruby / rvm cache gems ?
dayepa has quit [Remote host closed the connection]
St_Marx has joined #ruby
m8 has joined #ruby
bigmac_ has joined #ruby
bigmac_ is now known as i8igmac
<shevy>
Steve21 depends on the definition you use for cache. whenever you install a gem, it is also coped into cache/ subdirectory
<shevy>
on my system these are at /usr/lib/ruby/gems/1.9.1/cache/ right now
jjbohn has joined #ruby
<shevy>
*copied
benzrf|offline is now known as benzrf
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frosgy has joined #ruby
dayepa has joined #ruby
Lutece has joined #ruby
<Steve21>
I ask because I am locally working on a gem and i am finding that when i reinstall the gem it installs but the new code does not seem to work/exist in the gem
Lutece has quit [Quit: WeeChat 0.4.3]
anaeem1__ has joined #ruby
codeurge has joined #ruby
alex88 has quit [Quit: Leaving...]
rm_ has joined #ruby
<jhass>
Steve21: for local testing it's easier to just add your local dev copy to the load path of your target application
dayepa has quit [Remote host closed the connection]
marcdel has joined #ruby
fantazo has joined #ruby
anaeem1_ has quit [Ping timeout: 258 seconds]
frogssgy has quit [Ping timeout: 240 seconds]
jjbohn has quit [Ping timeout: 240 seconds]
Bumptious has quit [Remote host closed the connection]
Lucky_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21>
k
marcdel_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
<jhass>
bundler has some magic (the path option) for that if your application uses that
rm_ has quit [Ping timeout: 276 seconds]
phansch has quit [Ping timeout: 265 seconds]
<Steve21>
will check that out too
<Steve21>
thanks
marcdel has quit [Ping timeout: 255 seconds]
coder_neo has joined #ruby
dayepa has joined #ruby
yfeldblum has joined #ruby
codeurge has quit [Ping timeout: 258 seconds]
<Steve21>
is it possible to load a .gem file directly in your code?
<Steve21>
like require ‘123.gem’
<Steve21>
require_relative ‘123.gem’
<atmosx>
no
Dude007 has quit [Remote host closed the connection]
<atmosx>
we have Gemfiles for that
<RubyPanther>
Steve21: I try to use bundler with a git repo instead of a gem until I'm testing a release, and then I make sure to bump the version. That will keep it from getting cached
<Steve21>
mmmm version bump. thats a good idea too
<atmosx>
bump
Lutece has joined #ruby
Mattx has quit [Read error: Connection reset by peer]
Mattx has joined #ruby
Mattx has quit [Changing host]
Mattx has joined #ruby
benzrf is now known as benzrf|offline
Lucky_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
bahar has quit [Ping timeout: 265 seconds]
bahar has joined #ruby
sambao21 has joined #ruby
Dude007 has joined #ruby
pushpak has joined #ruby
coder_neo has quit [Quit: Leaving]
yetanotherdave has joined #ruby
txdv has quit [Ping timeout: 276 seconds]
mclee has joined #ruby
sambao21 has quit [Ping timeout: 265 seconds]
matchaw has joined #ruby
Mayank has quit [Ping timeout: 252 seconds]
LiohAu has joined #ruby
SegFaultAX has quit [Excess Flood]
Pkemon has joined #ruby
SegFaultAX has joined #ruby
<Pkemon>
Any good reason to use ruby instead of any other dynamic language?
Shidash has joined #ruby
<jhass>
any good reason to use just one dynamic language?
<Pkemon>
yes simplicity
<Pkemon>
I dont need 300 tools
ce_afk is now known as cescalante
<Pkemon>
so where does ruby shines?
yfeldblum has joined #ruby
Mayank has joined #ruby
<Pkemon>
if someone knows...
jamto11 has joined #ruby
fflush has joined #ruby
fflush has joined #ruby
<Pkemon>
so? no valid feedback about this?
rm_ has joined #ruby
Mayank has quit [Read error: Connection reset by peer]
yetanotherdave has quit [Ping timeout: 240 seconds]
<Pkemon>
ok great
Pkemon has quit []
jamto11 has quit [Ping timeout: 240 seconds]
<Hanmac>
he is away we can come out again ;P
Ardenzi has quit [Remote host closed the connection]
ftj has joined #ruby
chipotle has joined #ruby
gondalier has joined #ruby
relix has joined #ruby
rm_ has quit [Ping timeout: 276 seconds]
banisterone has quit [Ping timeout: 258 seconds]
ner0x has joined #ruby
rm_ has joined #ruby
kaleido has quit [Ping timeout: 240 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maximski has quit []
banisterone has joined #ruby
AndChat|102836 has joined #ruby
Hanmac1 has joined #ruby
aspires has quit []
Megtastique has joined #ruby
fflush has quit [Quit: fflush]
akonny_ has joined #ruby
banisterone has quit [Ping timeout: 258 seconds]
Zenigor has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
fflush has joined #ruby
akonny has quit [Ping timeout: 258 seconds]
akonny_ is now known as akonny
linojon has joined #ruby
marr has joined #ruby
mercerist has joined #ruby
Arkaniad has quit [Ping timeout: 276 seconds]
_maes_ has joined #ruby
ascarter has joined #ruby
akonny has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
Bumptious has joined #ruby
akonny has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
<RubyPanther>
The answer is no, there is no good reason to use Ruby. Good implies objective value. Ruby isn't better, it's just better for me. We might just both suck.
jlast has joined #ruby
<RubyPanther>
And if you're sure you want less tools, just use C for everything. Dynamic languages can't do it all, C can.
meatherly has quit [Remote host closed the connection]
fflush has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
chrisseaton has joined #ruby
<havenwood>
RubyPanther: Ruby is objectively better than ____. <- Fill in the blank.
jjbohn has joined #ruby
<Lutece>
VB
<RubyPanther>
VB has solid objective value, too bad it tastes like _____.
<Lutece>
Also child trafficing, both are pretty awful
<Lutece>
also the answer im going with is shit... survay says?
<RubyPanther>
Ruby is objectively better than COBOL because COBOL only supports pass-by-value, which is often inefficient, and Ruby can always simulate pass-by-value by #dup-ing. That's the only objectively worse language I can think of off the top of my head.
<Lutece>
I think this is one of those things that comes down to personal taste, some people like running about with pointers, some people don't see a reason for it
<Lutece>
etc etc
DarkFoxDK has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 255 seconds]
aiguu has quit [Ping timeout: 252 seconds]
banisterone has joined #ruby
jjbohn has quit [Ping timeout: 276 seconds]
jxf has quit [Ping timeout: 252 seconds]
simono has joined #ruby
oo_ has joined #ruby
<jimbauds>
Where can I start if I want to do some music stuff with ruby?
<Lutece>
jimbauds: you could look into some audio gems and look through either the documentation or the source
badhatter has quit [Ping timeout: 276 seconds]
DarkFoxDK has joined #ruby
phoo1234567 has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
<jimbauds>
Lutece: thank you
AndChat|102836 has quit [Ping timeout: 264 seconds]
<RubyPanther>
pointers are not just a matter of taste, there are real technical differences between references and values
BWStearns has joined #ruby
Arkaniad has joined #ruby
<Lutece>
True, and it's good to know, but some languages make them less of an issue, or less previlent
<RubyPanther>
hiding the reference inside an object, or having to pass it as an argument, that is certainly taste
<RubyPanther>
You can do dynamic OOP with plain C if you don't mind all the explicit reference passing. Some people are allergic.
<Lutece>
I never really got into C, although I have done C++ which I started at the beggining of this year.
oo_ has quit [Ping timeout: 252 seconds]
<Lutece>
I'm not much of a fan of mem management, preferance being that the GC take care of it
LiohAu has quit [Quit: LiohAu]
ixti has joined #ruby
LiohAu has joined #ruby
<RubyPanther>
Gtk is all plain-C OO-by-convention, with three layers (glib - a stdlib replacement, gdk - graphics primitives, gtk - high level graphics widgets) and the receiver as the first argument to each "method"
<RubyPanther>
"dynamic" is just "static" with 1 layer of abstraction on top
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
naw has quit [Ping timeout: 255 seconds]
jfoy has joined #ruby
naw has joined #ruby
<JordiGH>
Hm, installs to .gem. I wish gems followed some sort of FHS. I prefer ~/.local/bin, ~/.local/share ...
<JordiGH>
Now I have to update my PATH and possibly other env vars just for Ruby.
kirun has quit [Quit: Client exiting]
<jhass>
just PATH and GEM_HOME
<JordiGH>
Or maybe I'll write a wrapper shell script and dump it in ~/.local/bin
noop has quit [Ping timeout: 240 seconds]
naw has quit [Client Quit]
Steve21 has quit [Quit: Steve21]
einarj has quit [Remote host closed the connection]
<shevy>
JordiGH can't you symlink from that home dir into the path you want to use?
Burgestrand has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
<JordiGH>
shevy: I have to set GEM_HOME anyways, don't I?
matchaw has joined #ruby
maximski has quit []
<shevy>
not that I am aware of
yetanotherdave has joined #ruby
fflush has joined #ruby
elementz has joined #ruby
<JordiGH>
shevy: Yeah, the jekyll binary expects other things in its PATH. I have to set both of those variables. The cleanest thing I can do is just use a wrapper script.
fflush has quit [Read error: No route to host]
fflush has joined #ruby
jackneill has quit [Remote host closed the connection]