Luna_Moonfang has quit [Ping timeout: 250 seconds]
LuckyABA has quit [Client Quit]
duckpuppy has joined #ruby
smathy has joined #ruby
bronson has joined #ruby
CausaMortis has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 276 seconds]
sdwrage has joined #ruby
Vile` has quit [Ping timeout: 244 seconds]
cpup has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 248 seconds]
yqt has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
Luna_Moonfang has joined #ruby
cpup has joined #ruby
wolffles has quit [Quit: wolffles]
mhoungbo has quit [Ping timeout: 268 seconds]
belkins has quit [Quit: What is gone today, may still be gone tomorrow]
mhoungbo has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xiti has joined #ruby
tildes has joined #ruby
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
shmuli_ has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
solocshaw has joined #ruby
crameth has joined #ruby
rubie has joined #ruby
wsk has joined #ruby
joaumg has quit [Changing host]
joaumg has joined #ruby
Chagel_ has joined #ruby
jenrzzz has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
shmuli has joined #ruby
mistermocha has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Chagel has quit [Remote host closed the connection]
Djole has quit [Remote host closed the connection]
tax has joined #ruby
mistermocha has quit [Ping timeout: 268 seconds]
Chagel has joined #ruby
chipotle has joined #ruby
kam270 has quit [Ping timeout: 244 seconds]
PaulCape_ has joined #ruby
marcdel has joined #ruby
braincrash has quit [Quit: bye bye]
jenrzzz has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Ping timeout: 260 seconds]
_djbkd has quit [Quit: My people need me...]
zast has joined #ruby
marcdel has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
ekinmur_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
chipotle has quit [Quit: cheerio]
chipotle has joined #ruby
djbkd_ has quit [Ping timeout: 248 seconds]
braincras has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
nodejunkie has joined #ruby
astrobunny has joined #ruby
Chagel has quit [Remote host closed the connection]
jorum has joined #ruby
<A124>
Is there anything wrong with this, when using it on queue and callback proc 'cb'? q.pop &cb
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
cpruitt has joined #ruby
chipotle has quit [Quit: cheerio]
<benzrf>
A124: does pop take a callback
limon_ has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
limon_ is now known as limono7
gix has quit [Ping timeout: 240 seconds]
Chagel has joined #ruby
<A124>
benzrf, well it is everywhere on net with EventMachine examples, but Rubocop warns me about Ambiguous block operator. Parenthesize the method arguments if it's surely a block operator, or add a whitespace to the right of the `&` if it should be a binary AND. (Lint/AmbiguousOperator)at line 22 col 11
<A124>
If I add () it yells with error, so got confused
bruno- has quit [Read error: Connection reset by peer]
jorum has quit [Ping timeout: 248 seconds]
tmtwd has joined #ruby
gix has joined #ruby
OTORelic2 has joined #ruby
<benzrf>
oh
<benzrf>
it means, like
<benzrf>
wait no
<A124>
Trying to make EM client that does work on itself as well as takes user input, no luck on keyboard so far.
shmuli has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 250 seconds]
djbkd_ has joined #ruby
<A124>
Ox0dea Thank you. That enlightened me a lot more, valuable reference. .. I have to guess its problem with the linter. *me had no idea what linter is mere week ago*
rbennacer has quit [Remote host closed the connection]
kareeoleez has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
djbkd_ has quit [Ping timeout: 246 seconds]
DLSteve has joined #ruby
DLSteve has quit [Client Quit]
marcdel has joined #ruby
pawnbox has quit [Remote host closed the connection]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<Ox0dea>
A124: I've never seen the complaint about the ambiguous `&` be relevant. It whines because #& is a method, so maybe you meant to do a Boolean AND instead of pass a block, but that's vanishingly unlikely.
duncannz has joined #ruby
pawnbox has joined #ruby
bluOxigen has joined #ruby
<A124>
No, I did not, But it said to use parenthesis, but if I do q.pop (&cb) it gives error.
<Ox0dea>
Nix that space.
rbennacer has joined #ruby
<Ox0dea>
With it in, the `(&cb)` gets interpreted as a standalone expression, but passing a block is only a valid thing to do when you're invoking a method.
<A124>
Oooh. So both ruby itself and rubocop thinks this is the proper way to write it. Ok. So now got to know a lot more on blocks and some on syntax, thank again.
cpruitt has quit [Read error: Connection reset by peer]
jorum has joined #ruby
cpruitt has joined #ruby
<Ox0dea>
No problem. Ruby's parser is pretty lenient, but its only real option is to bail if it can't unambiguously determine what you meant to do.
hxegon has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
<Ox0dea>
*MRI's parser, technically.
ssiris has quit [Quit: End of Line]
<A124>
Well, the linter does use ruby -s -w or something to check the syntax.
kam270 has joined #ruby
<A124>
As I was new into the IDE and linters and tools and stuff I tried and installed both, so sometimes they yell both, but mostly only rubocop complaining at coding style xD
<A124>
Luckily, in most cases the autocorrect does fix stuff without screwing what I do not like. So not bad.
<Ox0dea>
No, not really bad, just noisy. :P
<Ox0dea>
Are you using Reek for your linter?
jorum has quit [Ping timeout: 246 seconds]
skade has joined #ruby
<A124>
No.
diegoaguilar has quit [Remote host closed the connection]
<havenwood>
juria_roberts: ^ that seem right? have an example of the missing previous value?
Cohedrin has joined #ruby
Spami has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
nartes has quit [Ping timeout: 260 seconds]
Spami_ has quit [Ping timeout: 276 seconds]
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<juria_roberts>
havenwood: sorry...i guess if its in a function it will return nil if i dont put steps in the end...do you know an elegant way of appending to an array if a condition is satisfied?
bob434 has quit [Quit: This computer has gone to sleep]
rubie has quit [Remote host closed the connection]
<Ox0dea>
But there's not much good reason to do that.
moeabdol has quit [Ping timeout: 244 seconds]
<juria_roberts>
Ox0dea: is there a simpler way?
<Ox0dea>
juria_roberts: You're optimizing for the wrong thing.
nartes has joined #ruby
<Ox0dea>
You're not entering your code into some sort of beauty pageant, are you?
abyx has joined #ruby
<juria_roberts>
Ox0dea: haha no...its gonna be code reviewed and i just want it to be easy to understand for a person who doesnt know ruby ( I don't know ruby as well)
<Ox0dea>
Ruby methods implicitly return the last expression in their bodies, and conditional branches which don't get taken evaluate to `nil`. These are both Good Things.
aeterne has quit [Remote host closed the connection]
Suntzu has quit [Read error: Connection reset by peer]
<Ox0dea>
Er, that was a bad example.
<Ox0dea>
The point was to have the pruning done on the new value.
djbkd_ has joined #ruby
Chagel_ has quit [Remote host closed the connection]
Chagel has joined #ruby
mhoungbo has quit [Remote host closed the connection]
dopie has quit [Quit: Leaving]
agit0 has joined #ruby
jas02 has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
<Ox0dea>
baweaver: Do you reckon you could say definitively whether #select->#map sees more use than #map->#select?
<baweaver>
map select for me
<baweaver>
though there have been inverse cases
pawnbox has quit [Remote host closed the connection]
polyidus has joined #ruby
pawnbox has joined #ruby
Musashi007 has quit [Quit: Musashi007]
LaT0rtue has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
OTORelic2 has joined #ruby
klka has quit [Read error: Connection reset by peer]
krz has joined #ruby
ascarter has joined #ruby
sdwrage has quit [Quit: Leaving]
bronson has joined #ruby
Macaveli has joined #ruby
bkxd has joined #ruby
symm- has joined #ruby
OTORelic2 has quit [Ping timeout: 246 seconds]
jorum has quit [Ping timeout: 276 seconds]
agentmee1kat has joined #ruby
hxegon has quit [Quit: BRB]
agentmeerkat has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 248 seconds]
mark2 has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
GnuYawk has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
ljames has quit []
<djellemah>
baweaver: Out of curiosity, I did some performance testing on select_map and friends a little while ago. Turns out map{}.compact is faster in most useful cases. I was sad.
<baweaver>
reduce is probably slower
<baweaver>
do it with each in the background and it'd be faster
<Ox0dea>
djellemah: #compact won't drop `false`s, though.
<djellemah>
That might be worth trying. But I think the slowdown is because of the reallocations of the array as its being built up.
ur5us has quit [Remote host closed the connection]
nartes has joined #ruby
jorum has joined #ruby
bry4n_ has quit [Ping timeout: 250 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<djellemah>
Ox0dea: I had a go at finding a generic way to handle falsy, but I gave up when I realised that I also couldn't think of any realworldish uses.
pawnbox has quit [Remote host closed the connection]
aeontech has joined #ruby
pawnbox has joined #ruby
<Ox0dea>
djellemah: Fair enough. I do wonder if allocating a large enough return Array just the once and returning a slice of it would be optimal.
spikeheadon has joined #ruby
<Ox0dea>
MRI does use structural sharing, but that doesn't help much with growth reallocations.
aeontech has quit [Client Quit]
<djellemah>
I couldn't think of a way to track the end of such an array. But Doh! you just keep an index and increment it.
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea>
Welcome back to C. :P
infra-red has joined #ruby
infra-red has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
<djellemah>
turns out random access structures can be quite useful...
Suntzu has joined #ruby
infra-red has joined #ruby
nartes has quit [Ping timeout: 276 seconds]
bry4n_ has joined #ruby
abyx has quit [Quit: This computer has gone to sleep]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
infra-red has quit [Remote host closed the connection]
ascarter has joined #ruby
leksster has joined #ruby
solars has joined #ruby
<djellemah>
I'm looking for solid information on DRb reliability. I'm not finding much - I'm guessing because the material I'm looking for is in Japanese. I asked last night, and I'm asking again to see if anyone on the other side of the planet knows of anything?
<ag4ve>
is there a way to automagically define variable types w/in a hash so i can do: h[thing].push(foo)
<ag4ve>
w/o first doing h[thing] = Array.new
infra-red has joined #ruby
<djellemah>
ag4ve: see Hash#default_proc, also Hash.new
<Ox0dea>
djellemah: I vaguely recall seeing some RubyConf talk that centered on DRb.
<Ox0dea>
ag4ve: I trust you're familiar with Perl's autovivification semantics?
bohr has joined #ruby
<ag4ve>
err, right Hash.new :)
<Ox0dea>
Ah, I jumped the shark a bit, then.
<ag4ve>
i mean, in perl, push(@{$h[thing]}, foo); would work on a new 'thing'
<ag4ve>
blah, ruby got me using [] vs {}... w/e
<Ox0dea>
>> auto = Hash.new { |h, k| h[k] = Hash.new &h.default_proc }; auto[1][2][3] = 4; auto
chouhoulis has quit [Remote host closed the connection]
charlemagne has quit [Ping timeout: 276 seconds]
<shevy>
something is wrong with your code anyway
<shevy>
even if you put the argument to true, your array has [Kernel, Object, String]
<shevy>
expected Numeric got Comparable - not sure how you can get from there, there
perlgod has joined #ruby
noService has joined #ruby
ChiefAlexander has joined #ruby
Kanibal has quit [Quit: WeeChat 1.1.1]
<roelof>
shevy: im also not. IM trying to learn ruby by using ruby monk and never see this before
mosez has joined #ruby
<workmad3>
roelof: there's two annoyances that aren't being made clear there - 1: it only wants classes, not modules (both appear in ancestors), 2: it wants the first class that the method appears under, which means that for stuff defined in a module you need to find the first class after it in the chain
cdg has joined #ruby
fourq has left #ruby ["twip"]
elaptics`away is now known as elaptics
_stu_ has joined #ruby
<roelof>
workmad3: so I cannot use ancestors to find the answer
<workmad3>
roelof: you can, but you need to be a bit more careful about it
<roelof>
then I have to rewrite it using superclass
<workmad3>
roelof: again, you can use ancestors, but you need to be a bit more careful
openstruct has joined #ruby
sesquipedalian has quit [Read error: Connection reset by peer]
<roelof>
oke, how can I solve this so modules are not part of it
chipotle has joined #ruby
jero_ has joined #ruby
someish has quit [Quit: someish]
ekinmur has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
griffindy has joined #ruby
diegoaguilar has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
crameth has joined #ruby
madgen has joined #ruby
triangles has joined #ruby
malconis has joined #ruby
vdamewood has quit [Ping timeout: 244 seconds]
triangles3 has quit [Ping timeout: 252 seconds]
charlemagne has joined #ruby
noway_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
roelof has quit [Quit: Page closed]
emilkarl_ has joined #ruby
akkmaxon has joined #ruby
pawnbox has joined #ruby
pifon has joined #ruby
emilkarl has quit [Ping timeout: 244 seconds]
madgen has quit [Ping timeout: 260 seconds]
andywojo has joined #ruby
jorum has quit [Quit: Lost terminal]
pawnbox has quit [Remote host closed the connection]
swills has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
sgambino has joined #ruby
bry4n_ has joined #ruby
platzhirsch has joined #ruby
pifon1 has joined #ruby
imperator has joined #ruby
madgen has joined #ruby
pifon has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
guardian has joined #ruby
skweek has joined #ruby
rippa has joined #ruby
bob434 has quit [Quit: Leaving]
JesseH2 has quit [Quit: Leaving]
Begi has joined #ruby
CloCkWeRX has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
moeabdol has quit [Ping timeout: 264 seconds]
limono7 has quit [Quit: leaving]
nanoz has joined #ruby
pawnbox has joined #ruby
merida has joined #ruby
marcoecc has quit [Ping timeout: 248 seconds]
LaT0rtue has joined #ruby
dvinciguerra__ has quit [Ping timeout: 244 seconds]
Yeomra has quit [Quit: WeeChat 1.4]
sesquipedalian has joined #ruby
noService has quit [Ping timeout: 246 seconds]
tubuliferous has joined #ruby
JesseH has joined #ruby
jmorgado1 has joined #ruby
danand has quit [Ping timeout: 252 seconds]
dvinciguerra__ has joined #ruby
rolha has quit [Ping timeout: 248 seconds]
jmorgado has quit [Ping timeout: 264 seconds]
dvinciguerra__ has quit [Max SendQ exceeded]
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
davee_ has quit [Quit: Leaving]
dvinciguerra__ has joined #ruby
emilkarl has joined #ruby
dvinciguerra__ has quit [Max SendQ exceeded]
kareeoleez has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
dANOKELOFF has joined #ruby
diegoaguilar has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
kareeoleez has joined #ruby
PedramT has quit [Remote host closed the connection]
M-shine has quit [Ping timeout: 260 seconds]
myntcake has quit [Ping timeout: 246 seconds]
jschoolcraft has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
borodin has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
<OTORelic2>
exit
OTORelic2 has quit [Quit: WeeChat 1.4]
frem has joined #ruby
OTORelic has joined #ruby
skislak has quit [Remote host closed the connection]
millerti has joined #ruby
jmorgado1 has quit [Quit: Leaving]
nfk|laptop has joined #ruby
senayar has quit []
neohunter has joined #ruby
aufi has quit [Quit: Konversation terminated!]
platzhirsch has joined #ruby
petertretyakov has joined #ruby
<yorickpeterse>
OTORelic: command not found
<crime>
yorickpeterse: try <exit></exit>
M-shine has joined #ruby
<irick>
So i'm looking for some advice. I've read through The Well Grounded Rubyist, I've done the codecademy ruby course, I'm working through the ruby koans, I've got Practical Object Oriented Design and Design Patterns In Ruby. Are there any other steps I can be taking to really drill the language and some of the best practices into my head?
platzhirsch has quit [Quit: Leaving.]
infra-red has quit [Remote host closed the connection]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saneax is now known as saneax_AFK
jdm has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
[Butch] has joined #ruby
Guest71601 has quit [Remote host closed the connection]
Zai00 has joined #ruby
symm- has joined #ruby
noService has joined #ruby
<workmad3>
irick: write some code :P
<workmad3>
(sorry, it's friday afternoon, my sarcasm circuits are dialed to full)
platzhirsch has joined #ruby
<apeiros>
workmad3: nice to see that your dial maxes out at "tame" ;-p
<irick>
I am. I don't think i'm going to learn best practices by banging out C style ruby though.
<apeiros>
irick: ask for reviews here
<apeiros>
make sure you make small examples, ideally still runnable/reproducible
<havenwood>
irick: What you listed is good stuff. Reading lots of code is also well worthwhile.
<workmad3>
apeiros: there wasn't a huge amount of source to build decent sarcasm on :(
TomyWork has quit [Ping timeout: 244 seconds]
hxegon has quit [Quit: BRB]
M-Kodo has joined #ruby
w0jtas has quit [Quit: Leaving.]
GG is now known as sexytime
sudoubuntu has joined #ruby
zast has joined #ruby
kareeoleez has quit [Remote host closed the connection]
nartes has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
rolha has joined #ruby
<irick>
It's kinda funny, I'm at ACR right now and there have been very few ruby talks. Thought it would be a better learning experience but it seems a lot more a social experience.
CausaMortis has quit [Read error: Connection reset by peer]
merida has joined #ruby
djellemah_ has joined #ruby
gizmore has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
skweek has quit [Ping timeout: 276 seconds]
marxarelli has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
jdm has joined #ruby
KnownSyntax has quit [Ping timeout: 240 seconds]
drptbl has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
djellemah has quit [Ping timeout: 260 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
merida has quit [Remote host closed the connection]
Blaguvest has joined #ruby
BSaboia has quit [Ping timeout: 240 seconds]
KensoDev has joined #ruby
kareeoleez has quit [Ping timeout: 244 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
nfk|laptop has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 264 seconds]
rkazak has quit [Ping timeout: 252 seconds]
tubuliferous has joined #ruby
M-mistake has joined #ruby
baweaver has joined #ruby
davedev24 has joined #ruby
bogn has joined #ruby
sexytime is now known as GitGud
Xeago has joined #ruby
dANOKELOFF has quit []
bluOxigen_ has joined #ruby
danand has quit [Read error: Connection reset by peer]
bogn has quit [Client Quit]
danand has joined #ruby
jdm_ has joined #ruby
jdm has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 264 seconds]
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
floatingpoint has joined #ruby
jgt4 has quit [Ping timeout: 248 seconds]
tubuliferous has quit [Ping timeout: 240 seconds]
norc has joined #ruby
kareeoleez has joined #ruby
platzhirsch has left #ruby [#ruby]
gnufied has quit [Quit: Leaving]
grill has quit [Ping timeout: 276 seconds]
ascarter has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
jdm_ has quit [Ping timeout: 244 seconds]
Suntzu has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Snowy has quit [Quit: ragequit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
ramfjord has joined #ruby
madgen has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
Alayde has joined #ruby
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
hxegon has joined #ruby
wsk has joined #ruby
platzhirsch has joined #ruby
<platzhirsch>
With an array of tuples [[Time, Integer]] and Time contains days, for instance 2016-03-01, 2016-03-02 and so on
wsk has quit [Client Quit]
<platzhirsch>
there are gaps in between, what's the neatest way to fill them with [_, 0] ?
<platzhirsch>
is there a way with zip?
<havenwood>
platzhirsch: gaps?
<platzhirsch>
havenwood: gaps as in missing days
hinbody has quit [Ping timeout: 244 seconds]
nanoz has quit [Read error: Connection reset by peer]
<apeiros>
platzhirsch: are they sorted?
<platzhirsch>
yep
PedramT has joined #ruby
jackjackdripper has joined #ruby
<apeiros>
then you can use lut=ary.to_h; (ary.first.first.to_date..aray.last.first.to_date).map { |d| [d, lut[h] || 0] }
<apeiros>
might need some parens
<platzhirsch>
ahh sweet
<apeiros>
plain ruby might not have .to_date
crime has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
lsmola has quit [Ping timeout: 252 seconds]
platzhirsch has left #ruby [#ruby]
tomchapin has joined #ruby
<apeiros>
oh, right, needs h.to_time in the lookup
<apeiros>
and at least ruby 2.3 has Time#to_date and Date#to_time :)
<apeiros>
though IMO you should use Date instead of Time anyway there.
skweek has joined #ruby
Begi has left #ruby [#ruby]
tildes has joined #ruby
evidex has quit [Ping timeout: 240 seconds]
rake_db__ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
kareeoleez has quit [Ping timeout: 248 seconds]
ramfjord has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
knopkodav has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
rcvalle has joined #ruby
trinaldi has joined #ruby
PedramT has quit [Remote host closed the connection]
hakunin has quit [Remote host closed the connection]
kareeoleez has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
knopkodav has quit [Client Quit]
The_Phoenix has joined #ruby
shinnya has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
<norc>
apeiros, to_date is probably one of the most widely used 2.3 features then in my applications. ;-)
<apeiros>
norc: I'm actually not sure when it was added to plain ruby. I just remember at least 1.8 not having them. and it was PITA.
DoubleMalt has joined #ruby
The_Phoenix has joined #ruby
rbennacer has joined #ruby
_stu_ has quit [Quit: _stu_]
baweaver has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
kareeoleez has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
freerobby has quit [Quit: Leaving.]
elifoster has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
mark2 has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
freerobby has joined #ruby
tubuliferous has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tomchapin has joined #ruby
merida has joined #ruby
Devalo has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
veloutin has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Max SendQ exceeded]
rbennacer has quit [Remote host closed the connection]
gregf has quit [Read error: No route to host]
abyx has joined #ruby
The_Phoenix has joined #ruby
abyx has quit [Client Quit]
The_Phoenix has quit [Max SendQ exceeded]
Zai00 has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
GodFather has quit [Ping timeout: 248 seconds]
The_Phoenix has joined #ruby
kadoppe has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
n008f4g_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
abrausch has quit []
bb010g has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
benlieb has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
codecop has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Max SendQ exceeded]
kareeoleez has joined #ruby
aegis3121 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<gizmore>
how could i check if two objects overlap in class hierarchy.... eg: check_compatible(4, 4.0) # => true
<gizmore>
hmm... all inherit from object :/
<norc>
gizmore, use composition, not inheritance.
The_Phoenix has joined #ruby
<norc>
Oh silly me.
<norc>
My head failed to parse that sentence.
aegis312_ has joined #ruby
<norc>
gizmore, be more specific what you mean.
The_Phoenix has quit [Max SendQ exceeded]
chocoelho has left #ruby [#ruby]
kadoppe has quit [Ping timeout: 244 seconds]
noService has quit [Read error: Connection reset by peer]
noService has joined #ruby
noService has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
noService has quit [Changing host]
<norc>
gizmore, what are you trying to do?
<gizmore>
background: i have some merge_options function, and want to check if the option is valid... thought checking classA == classB is cool
polyidus has joined #ruby
GodFather has joined #ruby
<gizmore>
i guess it´s not a good idea :)
<norc>
gizmore, if you gist some code it would be easier to tell how it can be solved elegantly.
stannard has quit [Remote host closed the connection]
<norc>
Though testing for both Object and BasicObject seems a bit silly.
PedramT has joined #ruby
<norc>
Oh wait, today I really suck at this.
madgen has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
fedexo has quit [Ping timeout: 250 seconds]
ramfjord has joined #ruby
<gizmore>
havenwood: haha... it complains about 7.seconds vs 8.0 now
ChiefAlexander has joined #ruby
kareeoleez has joined #ruby
BSaboia has joined #ruby
PedramT has quit [Remote host closed the connection]
jmacdonald has joined #ruby
<jmacdonald>
hi. ruby-nuby here.
<havenwood>
jmacdonald: welcome!
<gizmore>
puts "Hello jmacdonald"
gregf has joined #ruby
Karix has joined #ruby
<jmacdonald>
actually i know zero ruby. I just know that i'm trying to run bundle exec rake test on a puppet repo.. and i keep getting this : Rake Aborted \n NameError: uninitialized constant Syck
<jmacdonald>
so i installed the gem syck
<jmacdonald>
still no go
<gizmore>
jmacdonald: probably put it in your Gemfile?
nerium has quit [Quit: nerium]
huyderman has quit [Ping timeout: 248 seconds]
<jmacdonald>
touche.
<jmacdonald>
i'll read into that some. tks
<gizmore>
very welcome
sudoubuntu has joined #ruby
sudoubuntu has quit [Client Quit]
<havenwood>
jmacdonald: prefixing `bundle exec` runs it "in the context of your bundle," meaning only with the exact gems from your Gemfile.lock file
<havenwood>
jmacdonald: putting new gems in your Gemfile and running `bundle install` will update the Gemfile.lock
<gizmore>
norc: the command will open a thread, and when it finished triggers the arm_subscribe thingy.... i thought wrapping with the above function is enough to wait for the result
eljimmy has joined #ruby
PedramT has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 248 seconds]
kareeoleez has joined #ruby
huyderman has quit [Ping timeout: 246 seconds]
<norc>
gizmore, nope, yield is just a fancy way of saying "call that block"
stannard has quit [Read error: Connection reset by peer]
tubuliferous has quit [Ping timeout: 244 seconds]
<norc>
gizmore, the trick will lie in the implementation of arm_subscribe that makes this asynchronous.
<norc>
So you will have to look at whatever library lies behind that to figure out how you can get notified. Maybe it implements a Deferred object.
<gizmore>
i want to turn the async into sync
<norc>
gizmore, generally you dont.
<gizmore>
so wait with my func for the result
<gizmore>
for my spec i want :)
<norc>
Mock it.
<norc>
Dont write custom code to satisfy your specs.
aegis312_ has quit [Ping timeout: 240 seconds]
<gizmore>
i need that async to sync there generally
<norc>
I doubt that.
<gizmore>
it will be possible to call plugins from command line
<gizmore>
and the command has to finish before it can return results
<norc>
Go write some JavaScript code with lots of XHR - after a day you will begin to realize how awesome writing async code is.
kareeoleez has quit [Ping timeout: 260 seconds]
<gizmore>
you are not helping by saying don´t do what you want :D
<norc>
gizmore, you are solving the problem in the wrong way.
<gizmore>
i just wanna write a function that waits for the command and returns the output then
<norc>
And by locking your mind into a solution you are effectively preventing from actually tackling the problem.
veloutin has joined #ruby
<norc>
gizmore, what library are you using?
PedramT has joined #ruby
<gizmore>
none/mine... activerecord-magic/events
<gizmore>
and ricer4 :P
gnufied has joined #ruby
<norc>
gizmore, well without knowing how it works and what it does nobody here can help you.
<chosen1>
@gizmore I think what you are looking for is to join the threads.
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
<gizmore>
chosen1: yeah :(
PedramT has quit [Ping timeout: 268 seconds]
<gizmore>
i think i have to look into that one lib...
<norc>
chosen1, unless of course its async because of IO..
kadoppe has joined #ruby
<gizmore>
ruby-concurrency
jaruga__ has quit [Quit: jaruga__]
<norc>
Or some completely different mechanism.
<chosen1>
gizmore the function is called join, I belive.
<gizmore>
chosen1: the general design does not feature to know if a plugin uses threads or not
<chosen1>
I'm new myself so I can't provide a working poc for you.
<gizmore>
so i don´t know how many and which thread to join
<gizmore>
i just have to wait for an event in the subscribe... ruby-concurrency seems to feature that, but looked complicated
ldnunes has quit [Read error: Connection reset by peer]
merida has quit [Remote host closed the connection]
<norc>
gizmore, it sounds like your library already uses a publish/subscribe from the methods being used.
<gizmore>
yes
ldnunes has joined #ruby
Cohedrin has joined #ruby
<gizmore>
but how could i wait inside a func for the publish?
<norc>
Stacking another ontop to derail the asynchronous behavior. Im fairly certain that you should rethink your goals.
<norc>
Its a lightweight solution that lets you derail the async code of your library entirely.
chipotle has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
<gizmore>
thanks... will look at it
<gizmore>
lunchtime :)
<norc>
Of course.
<norc>
It wont do what you expect it to.
stannard has joined #ruby
cdg has quit [Remote host closed the connection]
kareeoleez has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
dmr8 has joined #ruby
<norc>
gizmore, in a nutshell your callback needs to emit a signal/message, and your controlling code needs to continuously poll until it seems that message.
workmad3 has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 264 seconds]
Devalo has joined #ruby
polyidus has quit [Quit: Later]
chouhoul_ has joined #ruby
Xeago has quit [Remote host closed the connection]
emilkarl has joined #ruby
Suntzu has joined #ruby
Xeago has joined #ruby
Devalo has quit [Remote host closed the connection]
<apeiros>
yuung: no. iirc java works the same way as ruby there. which might cause confusion - see norc's explanation (hoping he'll explain properly :D)
hxegon_AFK has quit [Quit: BRB]
<yuung>
>> s = "a"; def foo(a); a = "b"; end; foo(s); p s
<norc>
And then locally compile this C++ program and execute it: #include <iostream> void q(int &x) { x++; } int main() { int a = 1; q(a); std::cout << a << std::endl ;}
<yuung>
norc okay nvm don't look at that i had a brainfart
<gizmore>
yuung: java is pass by reference, except for primitives.... same as ruby. but in ruby: There are no primitives \o/
<norc>
yuung, the method foo returns its last expression, which is an assignment, which returns the assignment expression, which is "john"
<norc>
gizmore, java is pass by value, sorry.
<gizmore>
no... it´s pass by ref
<gizmore>
they say the ref is a value
<norc>
gizmore, that still makes it pass by value.
<norc>
gizmore, its just pointers renamed to references.
tildes has quit [Ping timeout: 260 seconds]
<gizmore>
everything is a value then
<norc>
gizmore, look at my C++ example.
<norc>
That is pass by reference.
baweaver has quit [Remote host closed the connection]
<norc>
gizmore, only very few langauges have pass by reference, mostly because its difficult to implement and hard to use right.
tjohnson has joined #ruby
hxegon has joined #ruby
polyidus has quit [Quit: Later]
<norc>
Especially since pointers provide a really easy workaround to modify things outside your function.
<gizmore>
ruby is pass by reference... it does not copy values
bronson has quit [Ping timeout: 276 seconds]
<gizmore>
java the same
freerobby has quit [Quit: Leaving.]
<norc>
gizmore, if you have the need to redefine the terminology then fine.
chouhoul_ has quit [Remote host closed the connection]
freerobby has joined #ruby
<norc>
But both Java and Ruby are 100% pass-by-value.
<norc>
I have shown you examples.
<yuung>
norc got it. ty :)
<norc>
Either show me proof or accept it.
<gizmore>
if you confuse reference and value then java is pass by value
chouhoulis has joined #ruby
polyidus has joined #ruby
<norc>
gizmore, java has that tendency to name things differently. What Java calls a reference is a pointer in reality.
<norc>
The difference is really important.
<gizmore>
yes... and you pass pointers
<norc>
#include <iostream> void q(int &x) { x++; } int main() { int a = 1; q(a); std::cout << a << std::endl ;}
<gizmore>
it does not do a copy of an object, if you pass it
<norc>
That is not a pointer.
<gizmore>
i see
crameth has quit [Quit: crameth]
<norc>
Let me show you what how a pointer works instead
<gizmore>
that´s ugly!
<norc>
void q(int *x) { x++; } int main() { int a = 1; q(a); std::cout << a << std::endl ;}
<gizmore>
a refernce is a hidden pointer?
<norc>
No.
<norc>
A reference is just that - an actual reference to the object.
<gizmore>
what is a pointer then?
<norc>
A memory address.
<norc>
A number if you want.
<gizmore>
:)
<norc>
And in my last snipped I modified that pointer.
<gizmore>
and a reference is in fact just a pointer too
<gizmore>
but i got your point... thanks
<norc>
No it is not.
<norc>
They are so inherently different in so many ways.
<shevy>
this is fun
<norc>
But
<norc>
I dont have time to explain this to you.
<norc>
Go read a book or something.
duckpuppy has joined #ruby
<gizmore>
i understood the namings now, thanks
rake_db__ has joined #ruby
<gizmore>
under the hood, a reference is just a number too.... kinda pointer as well :P but whatever
Spami_ has quit [Quit: This computer has gone to sleep]
<norc>
Ignore what happens under the hood.
<norc>
The important thing is the behavior.
<norc>
References provide an absolutely elegant solution in C++ to do a lot of things that pointers can do, without the bugs.
<norc>
Without the crashes.
<gizmore>
because a reference can´t be null?
jgt4 has joined #ruby
<norc>
Pointers mean you need to manage memory, which leads to null ptr deferencings, access violations, double freeing, overflows errors
<norc>
Memory leaking
<norc>
All kinds of nasty things.
rake_db_migrate has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
Musashi007 has quit [Quit: Musashi007]
rake_db_migrate has joined #ruby
<norc>
yuung, I kind of have hidden one important thing about this whole though.
Suntzu has quit [Read error: Connection reset by peer]
<benzrf>
hold on
stannard has quit [Remote host closed the connection]
brendan- has quit [Ping timeout: 244 seconds]
<yuung>
norc yes?
<benzrf>
i thought references were a feature where you could pass a sort of "reference to a variable", so that you can assign to the variable which you have a reference to
<norc>
yuung, the relevant bit here is that variables are basically like "pointers" to objects.
stannard has joined #ruby
<gizmore>
benzrf: in c++ (and C#, others?) there are indeed "references" ... which is a pointer with another syntax
rake_db__ has quit [Ping timeout: 250 seconds]
stannard has quit [Remote host closed the connection]
<norc>
And when you call a method with an argument, it effectively passes the value of that pointer.
madgen has joined #ruby
stannard has joined #ruby
<norc>
yuung, but it still is pass by value - but you can still wreck havocs on external objects by using destructive methods
<benzrf>
honestly, all this confusion becomes irrelevant when you go purely functional
<benzrf>
#haskell4lyfe
<gizmore>
a function is just a pointer!!!
<gizmore>
;D
<gizmore>
terminology fml
mr_oh has joined #ruby
Xeago has joined #ruby
DANI111 has quit []
<mr_oh>
mr. weaver?
Zai00 has joined #ruby
Xeago has quit [Remote host closed the connection]
workmad3 has joined #ruby
<shevy>
benzrf is a monad like a pointer?
<norc>
yuung, so in summary: Variables are pointers to objects. Arguments are passed by value (giving you access to the same object without copying it). Assignment does not change the object, but changes the pointer of your variable.
alexherbo2 has quit [Quit: WeeChat 1.4]
<norc>
That also shows how Ruby objects die. Once there is no variable or object pointing at a given object, it will get marked and sweeped.
<norc>
By the garbage collector.
dionysus69 has joined #ruby
<benzrf>
shevy: not even slightly
Es0teric has joined #ruby
devbug has joined #ruby
<mr_oh>
as far as I could figure, when I read about them, monad is a funnel with its own scope
rcvalle has quit [Quit: rcvalle]
idletask has quit [Quit: .]
rake_db__ has joined #ruby
dvinciguerra__ has quit [Ping timeout: 246 seconds]
mr_oh has quit [Ping timeout: 250 seconds]
rake_db_migrate has quit [Ping timeout: 276 seconds]
rake_db__ has quit [Remote host closed the connection]
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
yuung has quit [Ping timeout: 244 seconds]
rcvalle has quit [Client Quit]
rake_db_migrate has joined #ruby
symm- has joined #ruby
Devalo has joined #ruby
aqoom has quit [Ping timeout: 264 seconds]
dvinciguerra__ has joined #ruby
rcvalle has joined #ruby
renatosilva has joined #ruby
<renatosilva>
hi, I have deleted old versions of some gems but they keep appearing in version list, how can I remove these ghost references?
<norc>
renatosilva, how did you delete them, what are you doing to think they are there?
<majuscule>
norc: one odd thing i noticed - when i do this from another project, i see it saying Fetching gem metadata from https://rubygems.org/........ etc
<norc>
Oh wait
<norc>
Silly me again
<norc>
.I give up.
<majuscule>
it does not do that here, it just immediately errors
<shevy>
renatosilva these are not ghost versions, they are gone
<shevy>
renatosilva I guess the proper answer is that this is not possible because the feature is not available. You'd have to suggest this to the rubygems.org issue tracker: https://github.com/rubygems/rubygems.org/issues
<majuscule>
i didn't realize they were even different things
diegoviola has joined #ruby
<norc>
majuscule, oh my, I didnt spot that.
<renatosilva>
shevy: thanks for sharing your thought with the world
<shevy>
I am simply stating how it is
<renatosilva>
I never said you are not
<norc>
majuscule, well one is for managing bundles (bundler), while the other one allows you to work inside a specific bundle.
elifoster has joined #ruby
mdw has quit [Ping timeout: 246 seconds]
Devalo has quit [Remote host closed the connection]
<majuscule>
norc: bundler{,r} --help give the exact same man page...
<majuscule>
lol
<renatosilva>
is there a concept of deleting/yanking "the gem itself" so that when you access its page there's a 404?
<norc>
majuscule, Im thinking now.
infernix has quit [Ping timeout: 260 seconds]
<renatosilva>
...so that I reach my goal, if anyone knows of a way please tell me, thanks :)
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zapata has quit [Ping timeout: 260 seconds]
mr_oh has joined #ruby
<norc>
majuscule, sorry again Im confused.
<norc>
majuscule, this should not happen.
ekinmur has joined #ruby
<norc>
They are identical.
Musashi007 has joined #ruby
<norc>
majuscule, use which on both
<norc>
see what happens
ged has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
<majuscule>
norc: they are both ruby_executable_hooks script text executable .rvm/gems/ruby-2.3.0/bin/bundle{,r}
ged has joined #ruby
<majuscule>
which are identical except one does load Gem.bin_path('bundler', 'bundler', version)
<majuscule>
and the other loads bundle...
mahlon has joined #ruby
<norc>
majuscule, and both executables are 100% identical.
<norc>
Ive dug into bundler a minute ago.
<majuscule>
except one works and one doesn't :D
<norc>
This makes no sense at all.
<majuscule>
agreed
<norc>
majuscule, Im really thinking RVM is to blame.
<majuscule>
i believe it
<norc>
Which is another reason why I use chruby. ;-)
mdw has joined #ruby
<majuscule>
haha, i have no affiliation. just trying to get a setup working
<majuscule>
i'd heard of rvm in the past
<majuscule>
thought it might help another dev who's osx el capitan ruby install is broken
<norc>
majuscule, I just dislike how highly intrusive RVM is. Its a recipe for bugs and problems.
_djbkd has quit [Remote host closed the connection]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 45.0.1/20160315153207]]
Sou|cutter has joined #ruby
Begi has joined #ruby
majuscule has joined #ruby
papercode has joined #ruby
jdm has joined #ruby
<shevy>
hah
<shevy>
that reminds me of the marble piano
workmad3 has joined #ruby
bmn has joined #ruby
<gizmore>
ricer4 bot is the 4th ruby version of my irc bot :)
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt4 has quit [Ping timeout: 248 seconds]
<gizmore>
it speaks netcat,websockets,irc,libpurple and tty
infernix has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mr_oh>
don't really get it
BrunoSaboia has joined #ruby
Begi1 has joined #ruby
<gizmore>
mr_oh: me?
Begi has quit [Ping timeout: 250 seconds]
Begi1 is now known as Begi
<gizmore>
nvm
<mr_oh>
No. The puts thing with writing to file
<gizmore>
mr_oh: which line?
treehug88 has quit [Read error: Connection reset by peer]
ekinmur has joined #ruby
<mr_oh>
In my gist? Line 36... and the write to file on line 124
Giauzar has quit [Ping timeout: 244 seconds]
rcvalle has quit [Quit: rcvalle]
BSaboia has quit [Ping timeout: 268 seconds]
abyx has joined #ruby
rcvalle has joined #ruby
BrunoSaboia has quit [Ping timeout: 252 seconds]
gheegh has joined #ruby
jt__ has quit [Remote host closed the connection]
<mr_oh>
Or maybe it is writing it all, but the last items overwrite the previous text
polyidus has quit [Quit: Later]
<shevy>
have you tried append mode?
CloCkWeRX has quit [Quit: Leaving.]
rcvalle has quit [Client Quit]
<weaksauce>
mr_oh puts returns nil and prints to stdout not to a file stream
ethnologic has quit [Ping timeout: 248 seconds]
<mr_oh>
yeah but it emits the text that I can feed to write
x77686d has quit [Quit: x77686d]
Shidash has joined #ruby
polyidus has joined #ruby
ur5us has joined #ruby
pawnbox has quit [Remote host closed the connection]
quakephil has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
<quakephil>
I have an object like this: [{"text"=>"test"}, {"text"=>"hello"}] what's the coolest way I can combine it to result in something like this: "test hello"
stannard has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
codecop has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
<weaksauce>
mr_oh f.puts is different than puts... f.puts is operating on the file stream that you opened up. the blank puts is operating on the stdout stream that is implicitly opened when you have a program running.
<mr_oh>
I wanto to take the results as displayed in stdout and write it to file
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
Begi has left #ruby [#ruby]
devbug has quit [Read error: Connection reset by peer]
<shevy>
yeah that is easy
PedramT has quit [Remote host closed the connection]
_djbkd has joined #ruby
mdw has joined #ruby
<weaksauce>
you have to write to a file, build up the result as a string and write to a file or redirect your shell output into a file from the command line mr_oh
<Ox0dea>
_mak: `require 'foo' if RUBY_PLATFORM[/linux/]` or some such.
swills has joined #ruby
stannard has quit [Remote host closed the connection]
<VeryBewitching>
You know, I still haven't been able to get Ruby working well on a Windows box.
<shevy>
I used to just throw in the rubyinstaller
<_mak>
Ox0dea: thanks!
<shevy>
even ruby-gtk worked on it
<Ox0dea>
_mak: Sure thing.
<_mak>
ruby works fine on windows for me
nettoweb has quit [Read error: Connection reset by peer]
<Ox0dea>
Famous last words.
OTORelic has quit [Ping timeout: 264 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
<VeryBewitching>
shevy: Last time I tried to get it running under Windows I was trying to get a Rails env on Windows; 5 hours and some pain later I gave up.
nettoweb has joined #ruby
mistermocha has joined #ruby
stannard has joined #ruby
<mr_oh>
Got it. clunky, but I got it
moeabdol has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has joined #ruby
<smathy>
VeryBewitching, you're saying the expected thing as if it's unexpected.
biberu has quit []
<shevy>
can't recall having tried rails but I found rails got increasingly more annoying to install and get running over the years, just that javascript addon extra step, that wasn't necessary in the older days
<VeryBewitching>
smathy: I was following a HOWTO at the time :D
<VeryBewitching>
I expected that someone else who got it working would benefit my situation at the time, it didn't
<smathy>
VeryBewitching, :) Just might be better to save the announcements for if you ever DO get it to work on Windows.
yos7ph has quit [Quit: Leaving]
<VeryBewitching>
Nah, I use Windows for games exclusively these days.
mistermocha has quit [Ping timeout: 246 seconds]
<smathy>
Windows has just never been a friendly software dev platform, unless its your target platform.
<VeryBewitching>
That's some truth right there.
kadoppe has joined #ruby
<VeryBewitching>
I don't even know how I'd compiled native extensions on Win64
pawnbox has joined #ruby
<VeryBewitching>
Does the free version of VS include everything required for most gems?
<VeryBewitching>
wrt to build environment
camilasan has quit [Remote host closed the connection]
mhoungbo has joined #ruby
chipotle has quit [Quit: cheerio]
ChiefAlexander has quit [Quit: Leaving...]
<smathy>
VeryBewitching, no clue.
jhack has quit [Quit: jhack]
camilasan has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdm has quit [Ping timeout: 244 seconds]
aupadhye has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 244 seconds]
polyidus has quit [Quit: Later]
shmoon_ has quit [Quit: Connection closed for inactivity]
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
akkmaxon has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
polyidus has joined #ruby
hxegon is now known as hxegon_AFK
ramfjord has quit [Ping timeout: 244 seconds]
gheegh has quit [Ping timeout: 246 seconds]
BD8 has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
ramfjord has joined #ruby
dunpeal has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
jdm has joined #ruby
postmodern has quit [Quit: Leaving]
hxegon_AFK is now known as hxegon
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BD8 has quit [Client Quit]
Xeago has joined #ruby
PedramT has quit [Remote host closed the connection]
<dunpeal>
Hi. I want to render a dependency graph; i.e. which file requires which other files. How do I do that?
chipotle has joined #ruby
bluOxigen_ has quit [Ping timeout: 250 seconds]
kareeoleez has quit [Remote host closed the connection]
jt__ has joined #ruby
Xeago has quit [Remote host closed the connection]
<irick>
okay, so I know this is not a good solution, i'm going to refactor later, but I don't get anywhere near the correct values so... what am I missing here? http://pastebin.com/UnvpDr1L
<ruby[bot]>
irick: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
magikid has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
Ikzi has quit [Quit: No Ping reply in 180 seconds.]
sp4rrow has joined #ruby
sp4rrow has quit [Client Quit]
Ikri has joined #ruby
swills has quit [Remote host closed the connection]
rake_db_migrate has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.4]
iwaffles has joined #ruby
iwaffles has quit [Client Quit]
aegis3121 has quit [Ping timeout: 246 seconds]
huyderman has joined #ruby
<Ox0dea>
irick: && and || don't work like that.
pawnbox has joined #ruby
dfockler has joined #ruby
zenspider has quit [Remote host closed the connection]
metalic has quit [Quit: Leaving]
<Ox0dea>
You can't say `(1 && 2) < 3`; you have to say `1 < 3 && 2 < 3`.
<Ox0dea>
>> [1, 2, 3].all? { |x| x < 4 } # Or do this.