apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<shevy> what if a class is so small
<shevy> that it is allowed to have only one method
<shevy> and only one @ivar
<combusean> i don't know shevy, what if?
<combusean> i don't know how you would be forced into these conditions
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
metamaterial has joined #ruby
<shevy> combusean well
<shevy> I have to give some kind of name to things
<shevy> name to methods, name to @ivars
<shevy> that's starting to annoy me
<combusean> uhh
<combusean> that shouldn't annoy you
<shevy> hehe
<shevy> hmm take something like ...
mikepack has quit [Ping timeout: 264 seconds]
<shevy> class Shutdown
yfeldblum has joined #ruby
manlycode has joined #ruby
<shevy> let's say the only purpose of that class is to shutdown a computer
<combusean> why is Shutdown a class and not a module
Hydan has joined #ruby
<shevy> do I have to include it?
<combusean> you have to include any thing you write
<shevy> no no I mean via include
<centrx> shevy, If the class has only one variable and one method, call the variable "variable" and the method "method"
<centrx> duh
<shevy> centrx, well yeah, kinda
<shevy> I mean the names would not be really important
<shevy> it would do only one thing anyway
lukec has quit [Quit: lukec]
<shevy> obviously the name of the class would be important
<shevy> or name of the module, if combusean wants to
mrmargolis has joined #ruby
<Hydan> hello, quick question. I know there are couple of hash functions (i.e. murmurhash) for strings, but how can I generate hash of say mysql query result? let's say the result is quite sizable.
<benzrf> if something is a method make it a fucking method god damn
<benzrf> dont mess about with classes when there are no instances involved
bradhe has joined #ruby
enebo has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
* combusean gives benzrf some hot tea and a blanket
no6 has joined #ruby
reset has quit [Quit: Leaving...]
andrewlio has quit [Quit: Leaving.]
sailias has joined #ruby
nihils has joined #ruby
6JTAAD7VE has quit [Ping timeout: 265 seconds]
<Hydan> what I am trying to accomplish is to find if the result is the same over multiple runs of the program. a.i. store the hash of the result and compare it on next run.
doodlehaus has joined #ruby
pietr0 has quit [Quit: pietr0]
lw has joined #ruby
<centrx> Hydan, Every Ruby object has its own hash
mr_snowf1ake has joined #ruby
sdouglas has quit [Remote host closed the connection]
danman_ has joined #ruby
danman_ has quit [Client Quit]
kitak has quit [Remote host closed the connection]
<centrx> Hydan, I don't know the exact algorithm, or what your needs are, but http://www.ruby-doc.org/core-2.1.1/Array.html#method-i-hash
kitak has joined #ruby
nichtdiebohne has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
<Hydan> centrx: ty, but that function seems to produce different values on multiple runs
mrmargolis has quit [Remote host closed the connection]
saarinen has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
mansi has joined #ruby
<Hydan> centrx: I could make a dictionary/hash/alist from the mysql result object, cat that to string and then hash that with murmur. what I am trying to find out is if there a more efficient way.
<havenwood> Hydan: "Two arrays with the same content will have the same hash code"
<shevy> benzrf, do you use "the haskell platform"?
<Hydan> s/cat/cast/
GaryOak_ has quit [Ping timeout: 252 seconds]
<havenwood> Hydan: you want a diff or just to know if they differ?
<benzrf> shevy: ye
kayloos has quit [Remote host closed the connection]
<benzrf> haskell platform is ghc + a shitload of stdlibs
<Hydan> havenwood: the latter
bricker`LA has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
reset has joined #ruby
sdouglas has joined #ruby
CorySimmons has quit [Quit: Zzz...]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
oo_ has joined #ruby
no6 has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<havenwood> Hydan: how about an MD5?
djbkd has quit [Remote host closed the connection]
<bricker`LA> Anybody with chef experience (#chef is dead): Is it common to update a cookbook to change an action to :reinstall or :uninstall or something, and then immediately revert that change to the cookbook?
blackmesa has quit [Ping timeout: 240 seconds]
FL1SK has joined #ruby
eynj has joined #ruby
bradhe has quit [Remote host closed the connection]
goleldar has joined #ruby
WishBoy has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
<Hydan> havenwood: what's the upshot of that vs murmur? I'd still have to convert to string, no?
mansi has quit [Read error: Connection reset by peer]
Pynix has joined #ruby
jxf has joined #ruby
diegovio1 has joined #ruby
<havenwood> Hydan: ah, so you're not wanting a String in the first place?
mansi has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
<havenwood> Hydan: MD5 would be less collision i'd link, not sure
<havenwood> Hydan: SHA2 :P
WishBoy has quit [Remote host closed the connection]
<havenwood> i'd think*
sdwrage has joined #ruby
Hydan` has joined #ruby
dima__ has joined #ruby
<agent_white> bricker`LA: I can't answer that... but how do you like Chef? I've been meaning to try it since I hate the Puppet DSL with a passion.
yubrew has joined #ruby
<havenwood> Hydan: oh, maybe new murmer is better, nvm
supermarin has joined #ruby
Hydan has quit [Ping timeout: 245 seconds]
diegoviola has quit [Ping timeout: 276 seconds]
<shevy> agent_white what do you hate about the puppet dsl? (note: i know neither puppet nor chef myself)
arubin has joined #ruby
nisstyre has joined #ruby
<agent_white> shevy: Well maybe my use-cases are just too minimal, but it's just overly complex for no reason, tbh.
oo_ has quit [Remote host closed the connection]
<shevy> hehe
<agent_white> Just how they go about splitting up modules is fucking crazy.
nanoyak has quit [Quit: Computer has gone to sleep.]
binaryhat has joined #ruby
<agent_white> Or "manifests" rather
<havenwood> Hydan`: rereading what you asked i'm not sure i get the question at all :O you want to store the hash in the DB?
<bricker`LA> agent_white: chef is *pretty* good, but it definitely isn't perfect. I haven't used Puppet so I can't compare the two.
Speed has joined #ruby
chrisseaton has quit []
<agent_white> bricker`LA: Yeah I think I'll have to give it a try!
senayar_ has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
<Hydan`> havenwood: no, I am trying to verify if a db query returns the same result next time the program runs.
the_f0ster_ has quit [Remote host closed the connection]
<havenwood> Hydan`: gotcha, so if you're storing a #hash in the db, you may have another ruby process and get conflicting sums
fefr has joined #ruby
<fefr> whats the difference between if !(foo == nil) and if foo != nil
<bricker`LA> agent_white: what I like about it: Many projects exist to help you test your recipes - kitchen and serverspec, for example. knife (the CLI for managing chef server) is awesome. The fact that it's ruby lowers the learning curve (although the curve is still kind of steep, not really bad though).
Pynix has quit [Ping timeout: 240 seconds]
<bricker`LA> agent_white: Also, there seems to already be a cookbook for almost everything. And Berkshelf is pretty good (not as good as Rubygems/Bundler).
<Hydan`> storing it on disk, in an unique file, so far works fine with string. just don't want to cast huge dataset to string, that's it.
Biohazard has quit [Ping timeout: 252 seconds]
<fefr> if !(foo == nil) && (boo != 1) ..
senayar has quit [Ping timeout: 264 seconds]
jack_rabbit has joined #ruby
<agent_white> bricker`LA: Ooo didn't know it had a CLI... that's pretty awesome! I actually came to learn Ruby in the first place due to me needing to learn Puppet for work :P
sethen has joined #ruby
WishBoy has joined #ruby
nfk has quit [Quit: yawn]
Hanmac1 has joined #ruby
metamaterial has quit [Remote host closed the connection]
s2013 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
jamto11 has quit [Remote host closed the connection]
jason_ has joined #ruby
<bricker`LA> agent_white: what I don't like: The Chef Hosted interface is awful, buggy, terrible shit. The opscode-community website is horrible and ugly. Chef documentation is not very clear in many places.
<bricker`LA> agent_white: This is just my experience after working with it for a few weeks, I'm sure I'll feel differently in the future
reset has quit [Quit: Leaving...]
Hobogrammer has quit [Ping timeout: 255 seconds]
kitak has joined #ruby
echevemaster has quit [Ping timeout: 240 seconds]
djbender has joined #ruby
zz_karupa is now known as karupa
<fefr> whats the difference between if !(foo == nil) and if foo != nil
pskosinski_ has joined #ruby
elshaka has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
<bricker`LA> fefr: practically nothing
reset has joined #ruby
Nukepuppy has joined #ruby
<fefr> bricker`LA: dank you
rezzack has quit [Ping timeout: 252 seconds]
locriani has quit [Remote host closed the connection]
jason_ has quit [Remote host closed the connection]
pskosinski has quit [Ping timeout: 272 seconds]
sailias has quit [Quit: Leaving.]
jason_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
thomasxie has joined #ruby
doodlehaus has quit [Remote host closed the connection]
kitak has quit [Read error: Connection reset by peer]
ponga has joined #ruby
kitak has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nukepuppy has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
sputnik13net has quit [Ping timeout: 264 seconds]
jason_ has quit [Ping timeout: 255 seconds]
Es0teric has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
jonno11 has joined #ruby
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
emaxi has joined #ruby
Pynix has joined #ruby
oo__ has joined #ruby
<Pynix> can chanserv shutdown your message.
<Pynix> it 's boring
m_3 has quit [Remote host closed the connection]
Es0teric has quit [Ping timeout: 240 seconds]
Pynix has left #ruby [#ruby]
oo__ has quit [Remote host closed the connection]
oo__ has joined #ruby
<shevy> what message
oo_ has quit [Ping timeout: 276 seconds]
<shevy> guess he did not know how to configure his IRC client
jxf has quit [Ping timeout: 252 seconds]
Weaze has joined #ruby
<Weaze> Hello
<shevy> hey Weaze!
<shevy> let's peezy!
yfeldblum has quit [Remote host closed the connection]
<Weaze> haha I like that!
<Weaze> I just got my first ROR app going but just get to the default page when I go to :3000
blackavr has quit [Quit: blackavr]
<Weaze> Is there something else I need to do to be able to see the app??
jcs222 has joined #ruby
tkuchiki has joined #ruby
yfeldblum has joined #ruby
Derander_ has quit [Quit: ZNC - http://znc.sourceforge.net]
Hanmac1 has quit [Ping timeout: 240 seconds]
<agent_white> Weaze: You need to start setting up your routes! guides.rubyonrails.org/routing.html
supermarin has quit [Quit: Computer has gone to sleep.]
bollocks42 has joined #ruby
nc__ has joined #ruby
Hanmac has joined #ruby
supermarin has joined #ruby
bollocks42 has left #ruby [#ruby]
<nc__> Hello, I have a question. I have a module that is included in various classes. I would like to add a class method to the module, so that I can say “MyModule.debug = true” and all of the instances of classes that include MyModule will be able to say “self.class.debug” and see that variable. is this possible?
charliesome has joined #ruby
m_3 has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
<benzrf> nc__: sadly, methods on a module's singleton class are not transferred to a class's when it includes the module
zorak8 has joined #ruby
amclain has joined #ruby
<benzrf> nc__: the most common solution is to use the included hook
<benzrf> which is called on a
<benzrf> module with the including class as an arg
<benzrf> you can then extend the class from there
linojon has quit [Quit: linojon]
x1337807x has joined #ruby
supermarin has quit [Ping timeout: 245 seconds]
<shevy> anyone knows python addons? eggs I believe?
<shevy> is it possible to have the same name eggs?
rjhunter has joined #ruby
<nc__> thanks benzrf. module MyModule; def included(other_class); other_class.extend(SomeModuleContainingMyDebugMethod); end; end ?
javierbuilder has joined #ruby
rm__ has quit [Remote host closed the connection]
Milly_Bays has joined #ruby
rm__ has joined #ruby
binaryhat has quit [Quit: Leaving]
kyb3r_ has quit [Quit: Leaving]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nc__> hmm… that works for a single class, I can call SomeClass.debug = true. but I can’t seem to do MyModule.debug = true (which I think you may have been saying in the first statement).
rm__ has quit [Ping timeout: 240 seconds]
emaxi has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
emaxi has joined #ruby
yubrew has joined #ruby
diegovio1 has quit [Remote host closed the connection]
djbender has quit [Quit: djbender]
Biohazard has joined #ruby
benzrf is now known as benzrf|offline
Emmanuel_Chanel has quit [Quit: Leaving]
n0n3 has joined #ruby
emaxi has quit [Ping timeout: 255 seconds]
sdouglas has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
yubrew has quit [Ping timeout: 265 seconds]
dima__ has quit [Remote host closed the connection]
<benzrf> nc__: :)
Derander has joined #ruby
njection has quit []
sdwrage has quit [Quit: This computer has gone to sleep]
jason_ has joined #ruby
Emmanuel_Chanel has joined #ruby
benzrf is now known as benzrf|offline
manlycode has quit [Quit: leaving]
kyb3r_ has joined #ruby
nc__ has quit [Quit: nc__]
nc__ has joined #ruby
nc__ has quit [Client Quit]
manlycod_ has joined #ruby
benzrf|offline is now known as benzrf
ehc has joined #ruby
<benzrf> woah nope
benzrf is now known as benzrf|offline
r_rios has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
ddv has quit [Ping timeout: 245 seconds]
Weaze has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
Derander has quit [Excess Flood]
<benzrf> >.<
linojon has joined #ruby
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jack_rabbit has quit [Quit: Leaving]
supermarin has joined #ruby
sepp2k has quit [Quit: Leaving.]
echevemaster has joined #ruby
javierbuilder has quit [Ping timeout: 240 seconds]
digifiv5e has quit [Quit: quit]
rm__ has joined #ruby
mikepack has joined #ruby
r_rios has quit [Ping timeout: 240 seconds]
mityaz has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
r_rios has joined #ruby
ddv has joined #ruby
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
Derander has joined #ruby
led has joined #ruby
combusean has joined #ruby
led is now known as rokob
speakingcode has quit [Quit: leaving]
mikepack has quit [Ping timeout: 240 seconds]
locriani has joined #ruby
combusean has quit [Client Quit]
n0n3 has quit []
combusean has joined #ruby
crystal77 has joined #ruby
Derander has quit [Quit: ZNC - http://znc.sourceforge.net]
Xaitec has joined #ruby
locriani_ has joined #ruby
nateberkopec has joined #ruby
ponga has joined #ruby
rjhunter has quit [Remote host closed the connection]
<benzrf> woot
BWStearn2 has quit [Ping timeout: 255 seconds]
codabrink has quit [Read error: Operation timed out]
locriani has quit [Ping timeout: 276 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codabrink has joined #ruby
locriani_ has quit [Ping timeout: 264 seconds]
reset has quit [Quit: Leaving...]
ponga has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
rm__ is now known as servatoo
<combusean> why are you wooting benzrf?
goleldar has quit [Remote host closed the connection]
<shevy> he is young
saarinen has joined #ruby
<shevy> and needed the money
soasme has joined #ruby
soasme has quit [Remote host closed the connection]
Derander has joined #ruby
hamakn has joined #ruby
codabrin_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
afex has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
<benzrf> got my name-coloring script working in irssi
<benzrf> well
hamakn has quit [Read error: Connection reset by peer]
<benzrf> actually im not a huge fan
<benzrf> /bin/sh: 1: shfity: not found
<benzrf> oops
<benzrf> ¬_¬
SvenOostenbrink has joined #ruby
hamakn has joined #ruby
codabrink has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
geggam has quit [Ping timeout: 265 seconds]
omosoj has joined #ruby
The_NetZ has joined #ruby
sambao21 has joined #ruby
<The_NetZ> hey, quick question. I've been playing with swig a bit, and I think its making my extension a module; so how would I go about checking that via irb? Foo.is_a? Module seems likely...
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has joined #ruby
eynj has quit [Quit: Leaving.]
davispuh has quit [Remote host closed the connection]
SvenOostenbrink has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
Derander has quit [Quit: ZNC - http://znc.sourceforge.net]
ixti has quit [Ping timeout: 240 seconds]
saarinen has quit [Quit: saarinen]
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy> >> module Foo; end; Foo.is_a? Module
<eval-in__> shevy => true (https://eval.in/139355)
<shevy> >> class Foo; end; Foo.is_a? Module
<eval-in__> shevy => true (https://eval.in/139356)
Lightsword has quit [Ping timeout: 252 seconds]
alvaro_o has quit [Quit: Ex-Chat]
<The_NetZ> hrm
<shevy> class.name should probably reveal it
<The_NetZ> shevy: many thanks.
<shevy> >> class Yo; end; Yo.class.name
<shevy> >> module Yo; end; Yo.class.name
<eval-in__> shevy => "Class" (https://eval.in/139357)
<eval-in__> shevy => "Module" (https://eval.in/139358)
<shevy> hmmm the eval bot has some delay...
* shevy slaps eval-in__
omosoj has quit [Ping timeout: 240 seconds]
<The_NetZ> yep... even though its a c++ class I'm swigging, I'm getting a module :/
kreisys has quit [Quit: Computer has gone to sleep.]
rokob has quit [Remote host closed the connection]
saarinen has joined #ruby
yubrew has joined #ruby
kayloos has joined #ruby
echevemaster has quit [Ping timeout: 265 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
jxf has joined #ruby
<The_NetZ> thanks, though. working it out, think I may just be doing it a bit lazy :P
benzrf is now known as benzrf|offline
M1shka has joined #ruby
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
oo__ has quit [Remote host closed the connection]
_justin has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
enebo has quit [Quit: enebo]
mven_ has quit [Quit: This computer has gone to sleep]
mven_ has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
kayloos has quit [Ping timeout: 240 seconds]
MatthewsFace has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has quit [Quit: Computer has gone to sleep.]
_justin has quit [Client Quit]
supermarin has joined #ruby
omosoj has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Xaitec has quit [Remote host closed the connection]
M1shka has quit [Quit: Leaving]
sambao21 has joined #ruby
zack_ has joined #ruby
digifiv5e has joined #ruby
pskosinski_ is now known as pskosinski
supermarin has quit [Ping timeout: 252 seconds]
blackavr has joined #ruby
digifiv5e is now known as Guest74539
crzrcn has quit [Quit: Leaving.]
nffff has joined #ruby
sdwrage has joined #ruby
Derander has joined #ruby
<shevy> \o/
<combusean> hey shevy
IceDragon has quit [Ping timeout: 265 seconds]
<shevy> hey kombüse
_maes_ has joined #ruby
<shevy> it's so similar in german
<combusean> why are you \o/ing?
<shevy> combusean <The_NetZ> thanks, though. working it out, think I may just be doing it a bit lazy :P
IceDragon has joined #ruby
krz has joined #ruby
Lightsword has joined #ruby
michaeldeol has joined #ruby
<combusean> shevy, my name is dervived from kombucha and my first name, sean
Spami has quit [Quit: This computer has gone to sleep]
<shevy> hehe
<shevy> A Kombüse is a caboose
<combusean> o.O
nateberkopec has quit [Quit: Leaving...]
Hobogrammer has joined #ruby
supermarin has joined #ruby
freerobby has quit [Quit: Leaving.]
ws2k3 has quit [Ping timeout: 252 seconds]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
mehlah has quit [Quit: Leaving...]
manlycod_ has quit []
x1337807x has joined #ruby
Spami has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
freerobby has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
locriani has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
benzrf|offline is now known as benzrf
cjbottaro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
Spami has quit [Client Quit]
yarou has joined #ruby
saarinen has quit [Ping timeout: 252 seconds]
blackavr has quit [Quit: blackavr]
freerobby has quit [Ping timeout: 255 seconds]
mansi has quit [Quit: Leaving...]
bean__ has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
locriani has joined #ruby
TripTastic has joined #ruby
dorei has quit [Remote host closed the connection]
buzzybron has joined #ruby
mercwithamouth has joined #ruby
thomasxie has left #ruby [#ruby]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Guedes0 has quit [Ping timeout: 255 seconds]
Trip has joined #ruby
locriani has quit [Ping timeout: 252 seconds]
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
radic has quit [Ping timeout: 240 seconds]
TripTastic has quit [Ping timeout: 265 seconds]
ponga has quit [Ping timeout: 265 seconds]
radic has joined #ruby
pika_pika has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
skysploit has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
supermarin has quit [Ping timeout: 252 seconds]
jason_ has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zack_ has left #ruby [#ruby]
braincrash has quit [Quit: bye bye]
jeregrine has quit [Quit: Connection closed for inactivity]
skysploit has quit [Quit: This computer has gone to sleep]
rjhunter has joined #ruby
braincrash has joined #ruby
funburn has joined #ruby
brunops has quit [Ping timeout: 252 seconds]
linojon has quit [Quit: linojon]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
nowthatsamatt has joined #ruby
cfurrow has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
r_rios has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
freerobby has joined #ruby
yubrew has joined #ruby
cj3kim_ has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
s3ri0us|away has quit [Quit: Leaving...]
cfurrow has quit [Ping timeout: 240 seconds]
blackavr has joined #ruby
sdouglas has joined #ruby
sdouglas has quit [Remote host closed the connection]
kenndel has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 255 seconds]
kenndel has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
supermarin has joined #ruby
sdouglas has joined #ruby
_justin has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<combusean> grr
Hobogrammer has quit [Read error: Connection reset by peer]
Xiti` has joined #ruby
bradhe has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Xiti` has quit [Client Quit]
jamto11 has joined #ruby
mary5030 has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
supermarin_ has joined #ruby
<jamto11> is there a ruby library where i tell it a date range ex(Aug 23, 2013 - Aug 30,2013) and an interval type(ex: date, week, month) and i am able to get back an array for every date in between those dates?
Lightsword has quit [Ping timeout: 252 seconds]
danijoo has quit [Read error: Connection reset by peer]
<combusean> not that I'm aware of, but you could parse the first date and the second date and add 86400 (number of seconds in a day) to that value to get subsequent dates in a loop until you get what matches.
danijoo_ has joined #ruby
<combusean> to the first value
<combusean> till you get what matches the second
freerobby has joined #ruby
Lightsword has joined #ruby
<benzrf> jamto11: whoa i was tryin to do the same thing earlier o:
<jamto11> hmm
<jamto11> benz did u figure it out?
supermarin_ has quit [Ping timeout: 252 seconds]
<jamto11> for a way without custom adding for every interval (i have a lot of different intervals)
mercwithamouth has quit [Ping timeout: 265 seconds]
mikepack has joined #ruby
andy___ has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
s3ri0us has joined #ruby
<benzrf> i just did ints
<benzrf> :\
frobrob has quit [Read error: Connection reset by peer]
<benzrf> but im sure you can write a method for it
frobrob has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
sdouglas has quit [Remote host closed the connection]
armyriad has joined #ruby
kitak_ has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
kitak has quit [Ping timeout: 240 seconds]
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
LexicalScope has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
mercwithamouth has joined #ruby
andy___ has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
cina has joined #ruby
rjhunter has quit [Remote host closed the connection]
arietis has joined #ruby
locriani has joined #ruby
LexicalScope has quit [Ping timeout: 264 seconds]
cina has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cina has joined #ruby
bradhe_ has quit [Remote host closed the connection]
yarou_ has joined #ruby
Geniack has quit [Ping timeout: 276 seconds]
yacks has joined #ruby
bradhe has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
andy___ has joined #ruby
Geniack has joined #ruby
Steve21 has joined #ruby
yarou has quit [Ping timeout: 240 seconds]
<Steve21> anyone know of a way to get a Date from a Year and a Week Number. (not using .Commercial)?
<Steve21> Needs to support the Sunday being the first day of week
KanKava has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
<Steve21> strptime (2014-00, “%Y %U”) does not work without a week number
KanKava has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
blackavr has quit [Quit: blackavr]
michaeldeol has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
samsonjs has joined #ruby
echevemaster has joined #ruby
Musashi1 has joined #ruby
bthesorceror has joined #ruby
<Musashi1> benzrf: hola test
<benzrf> yo
samsonjs has quit [Read error: Connection reset by peer]
Musashi1 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
rokob has joined #ruby
Trip has left #ruby ["Leaving"]
sambao21 has quit [Quit: Computer has gone to sleep.]
eynj has joined #ruby
ponga has quit [Read error: Connection reset by peer]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
emaxi has joined #ruby
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
yubrew has joined #ruby
emaxi has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 240 seconds]
uxfi has joined #ruby
uxfi has quit [Changing host]
uxfi has joined #ruby
omegahm has quit [Ping timeout: 245 seconds]
tharindu has joined #ruby
nari has joined #ruby
browndawg has quit [Quit: Leaving.]
bean__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aemeredith has joined #ruby
<uxfi> hey all
<uxfi> whats a good way to get started with Ruby on OS X?
arietis has quit [Quit: Computer has gone to sleep.]
rokob has quit [Remote host closed the connection]
<agent_white> uxfi: You mean installing it?
<arubin> uxfi: Have you installed homebrew?
<uxfi> well no
<uxfi> I already have it :)
<uxfi> OS X has Ruby built in I think :)
<arubin> uxfi: Yes, but they never update it.
<uxfi> But it should be enough no?
<arubin> You can use it to get started, sure.
<uxfi> yep
<uxfi> well then I need a good text editor :)
paradisaeidae has joined #ruby
<arubin> Are you using Mavericks?
<uxfi> yep
<uxfi> :)
<arubin> Okay, so you have Ruby 2.0.0.
<uxfi> yep
<uxfi> thats pretty up to date
anaeem1_ has joined #ruby
<combusean> uxfi, system ruby tends to suck
<arubin> Everyone is going to give you a different answer as to which editor you should use.
agent_wh1te has joined #ruby
<arubin> Sublime Text is popular.
<combusean> uxfi, i HIGHLY recommend a version manager like rbenv
<combusean> erm, rvm
<agent_wh1te> uxfi: Asking what text editor is good is like asking people what their favorite food is... it varies across everyone, and you don't know till you try it!
<combusean> vi ftw!
<uxfi> I'll try pasta first
<uxfi> oh no not VI :P
<combusean> vi is awesome because it's everywhere on unix systems
<combusean> if i didn't know it i'd be fucked in my devopsish role
<Steve21> Anyone know how to calculate the first day of week (sunday) from a Week Number?
evenix has joined #ruby
<evenix> whats this thing with rails 4 and utf8, authenticity_token, commit
kayloos has joined #ruby
<evenix> with activeadmin is there a way arround that? it just started happening recently
<evenix> found unpermitted parameters: utf8, authenticity_token, commit
kukyakya has joined #ruby
<evenix> even for controller that were working totally fine
agent_white has quit [Ping timeout: 240 seconds]
nari has quit [Ping timeout: 240 seconds]
<benzrf> vi is dum vim is rule <- fax
oo__ has joined #ruby
mercwithamouth has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
uxfi has quit [Quit: Adios]
<agent_wh1te> vi is not hard to learn. People are just too stupid. :)
mary5030 has quit [Remote host closed the connection]
anaeem___ has joined #ruby
cina has quit [Quit: leaving]
skysploit has joined #ruby
kaplejon has joined #ruby
aemeredith has quit [Remote host closed the connection]
<agent_wh1te> Steve21: Did you see the "%w" param for strftime?
kayloos has quit [Ping timeout: 240 seconds]
<evenix> hey
<evenix> can anyone read me?
grieg has joined #ruby
<agent_wh1te> evenix: PONG
<evenix> thank you
<Steve21> ya but it does not supprt 00 week numbers
oo_ has quit [Ping timeout: 255 seconds]
<evenix> i thought I was mute because the last couple times i posted no one noticed
<Steve21> The issue is that for Week 0 and Week 53 you have to provide a Day of Week
<Steve21> >> puts Date.strptime("2014-0-3", "%Y-%U-%w")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139373)
<Steve21> >> require "date"; puts Date.strptime("2014-0-3", "%Y-%U-%w")
<eval-in__> Steve21 => 2014-01-01 ... (https://eval.in/139374)
<Steve21> require "date"; puts Date.strptime("2014-0", "%Y-%U")
<Steve21> >> require "date"; puts Date.strptime("2014-0", "%Y-%U")
s2013 has quit [Ping timeout: 255 seconds]
aemeredi_ has joined #ruby
anaeem1_ has quit [Ping timeout: 276 seconds]
<agent_wh1te> Steve21: Wait... what are you trying to do?
<agent_wh1te> Get a full date of the first day of the week, given the year/week of the day?
<Steve21> I need the calculate the first day of week for a week number
<Steve21> OR
<agent_wh1te> Why not use commercial?
supermarin_ has joined #ruby
<Steve21> commercial only supports Monday as first day of week
<combusean> hi supermarin_
armyriad has quit [Ping timeout: 240 seconds]
<Steve21> and I need to use %U as the week type. (0 to 53 weeks)
freerobby has joined #ruby
<agent_wh1te> Steve21: So you're only looking for a week that starts with a Sunday or a Monday?
armyriad has joined #ruby
<agent_wh1te> 0-53 weeks applies for both Sundays and Mondays*
<Steve21> I have a list of Years and Week Numbers. I need to turn those into proper dates
bthesorceror has quit [Remote host closed the connection]
RaptorJesus_ has joined #ruby
<Steve21> In this case its is 0-53 for weeks and Sunday was the first day of week
<Steve21> “Weeks begin on Sundays, and week 1 begins with the first Sunday of the year. Days preceding the first Sunday of the year are in week 0. This behavior is the same as the “%U” operator to the strftime standard library function."
bthesorceror has joined #ruby
supermarin_ has quit [Ping timeout: 264 seconds]
<Steve21> >>puts Date.strptime("2012-W0", "%Y-W%U")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139397)
RaptorJesus has quit [Ping timeout: 252 seconds]
<Steve21> better example:
<Steve21> >>puts Date.strptime("2014-0-2", "%Y-%U-%w")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139398)
<Steve21> >>puts Date.strptime("2014-0-3", "%Y-%U-%w")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139399)
freerobby has quit [Ping timeout: 252 seconds]
<Steve21> >>puts Date.strptime("2014-0", "%Y-%U-%w")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139401)
<Steve21> >>puts Date.strptime("2014-0", "%Y-%U")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139402)
<agent_wh1te> Steve21: You need to instantiate the class first.
<Steve21> >>puts Date.strptime("2014-1", "%Y-%U")
<eval-in__> Steve21 => undefined method `strptime' for Date:Class (NoMethodError) ... (https://eval.in/139403)
<agent_wh1te> Steve21: Why doesn'
<Steve21> Its just when its 0 week that is does not work
<agent_wh1te> Ahhh I see.
<combusean> >>puts Date.strftime("2012-W0", "%Y-W%U")
<eval-in__> combusean => undefined method `strftime' for Date:Class (NoMethodError) ... (https://eval.in/139404)
<Steve21> Its like the strptime is missing some logic
<combusean> doh
<Steve21> ya
<Steve21> It would be okay if W1 did not work
<Steve21> but W1 works. But it wont default for W0
<Steve21> seems to be related to the fact that its part of a previous year
<Steve21> >> require "date"; puts Date.strptime("2014-1", "%Y-%U")
<eval-in__> Steve21 => 2014-01-05 ... (https://eval.in/139406)
<Steve21> >>require "date"; puts Date.strptime("2014-0”, "%Y-%U")
<eval-in__> Steve21 => /tmp/execpad-c3ba7a47fefa/source-c3ba7a47fefa:2: unknown type of %string ... (https://eval.in/139407)
<Steve21> require "date"; puts Date.strptime("2014-0”-1, “%Y-%U-%w”)
<Steve21> >>require "date"; puts Date.strptime("2014-0”-1, “%Y-%U-%w”)
<eval-in__> Steve21 => /tmp/execpad-2947d9577434/source-2947d9577434:5: syntax error, unexpected tGVAR, expecting ')' ... (https://eval.in/139408)
* combusean senses a long night to make this staging deploy work
skysploit has quit [Quit: This computer has gone to sleep]
codabrin_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has quit [Ping timeout: 255 seconds]
aemeredi_ has quit [Remote host closed the connection]
jamto11_ has joined #ruby
<agent_wh1te> Steve21: Why not just use commercial as usual, and subtract one from it?
phoo1234567 has quit [Quit: Leaving]
<Steve21> Commercial supports 1-52 not 0-53
ndrei has quit [Ping timeout: 255 seconds]
<agent_wh1te> Or wrap the initializer for it so that weeks you pass in starting at index 0 just have 1 added?
Cache_Money has joined #ruby
<Steve21> agent, thought of that, just trying not to go down that path for processing reasons. but likely getting to tha tpoint
<agent_wh1te> Steve21: It would be MUCH easier that way... until you can tell data fetcher to start their damned weeks at 1. ;P
<Steve21> >>require "date"; puts Date.commercial(2014, 0)
<eval-in__> Steve21 => invalid date (ArgumentError) ... (https://eval.in/139409)
emaxi has joined #ruby
locriani has joined #ruby
<agent_wh1te> week = 0; Date.commercial(year, date+1)
* agent_wh1te shrugs
sdwrage has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
<agent_wh1te> rather week+1 *
jamto11_ has quit [Ping timeout: 240 seconds]
agent_wh1te has quit [Quit: leaving]
<Steve21> creates a issue at week 53
nari has joined #ruby
<Steve21> its the outliers
<Steve21> just not clear on the concequences
agent_white has joined #ruby
<Steve21> I am dealing with MongoDB Aggregation framework. Output for Week aggregation os 0-53 week numbers
<Steve21> But ruby mailny works with 1 to 52 week numbers
agent_white has quit [Read error: Connection reset by peer]
<Steve21> + the need for day of week number
phansch has joined #ruby
agent_white has joined #ruby
emaxi has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
bradhe has joined #ruby
arietis has joined #ruby
benzrf is now known as benzrf|offline
mary5030 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
eynj has left #ruby [#ruby]
kitak_ has quit [Remote host closed the connection]
crzrcn has joined #ruby
yubrew has joined #ruby
Lightsword has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
sputnik1_ has joined #ruby
sdouglas has joined #ruby
joelbrewer has joined #ruby
cina has joined #ruby
jamto11 has quit [Remote host closed the connection]
joelbrewer has quit [Quit: Lost terminal]
cj3kim has joined #ruby
gigetoo has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
kitak has joined #ruby
blackavr has joined #ruby
_justin has quit [Quit: _justin]
agent_white has quit [Quit: leaving]
<cina> hi! I want to write a grep equivalent with ruby in command line. My best effort is `cat file| ruby -p -e 'print if $_ =~ /search/'`. But -p prints all the lines, how can I stop it from printing all the lines and letting me decide when to print the line?
agent_white has joined #ruby
newbiemasih has joined #ruby
coderhs has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
phoo1234567 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
sdwrage has joined #ruby
<cina> I got it! I need to use -n instead of -p
funburn has quit [Quit: funburn]
mikepack has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
AliRezaTaleghani has joined #ruby
pwh has quit []
AliRezaTaleghani has left #ruby [#ruby]
mikepack has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
_justin has joined #ruby
combusean has quit [Ping timeout: 252 seconds]
ponga_ has joined #ruby
grieg has quit [Read error: Operation timed out]
supermarin_ has joined #ruby
freerobby has joined #ruby
larsam has joined #ruby
metamaterial has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
psyko666 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
JBreit has joined #ruby
phoo1234567 has quit [Quit: Leaving]
ndrei has quit [Read error: No route to host]
tonni_ has quit [Remote host closed the connection]
supermarin_ has quit [Ping timeout: 265 seconds]
tagrudev has joined #ruby
ndrei has joined #ruby
oo__ has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
freerobby1 has quit [Ping timeout: 240 seconds]
rjhunter has joined #ruby
<havenwood> g'evening
kyb3r_ has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Ping timeout: 252 seconds]
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
newbiemasih has quit [Quit: Ex-Chat]
omegahm has joined #ruby
emaxi has joined #ruby
funburn has joined #ruby
Milly_Bays has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
frobrob has quit [Ping timeout: 240 seconds]
skysploit has joined #ruby
locriani has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emaxi has quit [Ping timeout: 255 seconds]
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
sdwrage has quit [Quit: Leaving]
apeiros_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
locriani_ has quit [Read error: Connection reset by peer]
heftig has quit [Quit: Quitting]
shime has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
codenapper has joined #ruby
supermarin has joined #ruby
sputnik1_ is now known as sputnik13net
locriani_ has joined #ruby
sigurding has joined #ruby
<agent_white> Evenin'
combusean has joined #ruby
allfro has joined #ruby
helpa has quit [Remote host closed the connection]
<allfro> hi all
<allfro> I’m not a ruby guy but I am trying to fix a problem in a ruby program: i’d like to know what the difference is between {:a => 1} and {‘a’ => 1}
crazysim has quit [Max SendQ exceeded]
crazysim has joined #ruby
<combusean> a is a symbol, and 'a' is a string
<allfro> cool, so now my next question is… is there anyway to make a Hash type ignore string encoding?
<havenwood> >> [:a.class, 'a'.class]
locriani has quit [Ping timeout: 240 seconds]
<eval-in__> havenwood => [Symbol, String] (https://eval.in/139415)
adeponte has quit [Ping timeout: 255 seconds]
<allfro> I’m stuck in a pickle where the file’s string encoding is different than what the key’s encoding is
<allfro> and i want to come up with a solution that will be consistent
Royalb has joined #ruby
supermarin has quit [Ping timeout: 264 seconds]
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
justinmcp_ has quit [Quit: No Ping reply in 180 seconds.]
<allfro> my first thought is to convert keys into symbols?
<allfro> is that correct or incorrect?
justinmcp has joined #ruby
helpa has joined #ruby
<combusean> what's the encoding of the file?
<combusean> it's not unicode?
Riking has quit [Ping timeout: 240 seconds]
ahuman_ has joined #ruby
crazysim has quit [Excess Flood]
Riking has joined #ruby
Riking has quit [Changing host]
Riking has joined #ruby
quantsini has quit [Ping timeout: 255 seconds]
jso has quit [Ping timeout: 255 seconds]
ahuman has quit [Ping timeout: 252 seconds]
<allfro> it has coding binary
<allfro> and the default string encodings are ASCII-8BIT
<allfro> however the keys seem to be in USASCII
jso has joined #ruby
<allfro> it’s a big mess and i just wish i could solve it elegantly
crazysim has joined #ruby
<apeiros> USASCII is a subset of ASCII-8BIT
yubrew has joined #ruby
<apeiros> so just encode everything as ASCII-8BIT
justinmcp has quit [Read error: Operation timed out]
adeponte has joined #ruby
Royalb15_1 has quit [Ping timeout: 245 seconds]
sensen has joined #ruby
* apeiros still thinks those encoding names suck
agent_white has quit [Read error: Connection reset by peer]
<combusean> .force_encoding perhaps?
<apeiros> encode
justinmcp has joined #ruby
Es0teric has joined #ruby
<allfro> yes, but this would be an ugly patch
<apeiros> don't use force_encoding unless you know what you do
<allfro> as i’ve run into this issue before and i thought i had fixed it
<allfro> force_encoding was not the answer :|
tonni has joined #ruby
Lightsword has joined #ruby
* apeiros off for commute
apeiros has quit [Remote host closed the connection]
<allfro> the only thing i can think of as encoding agnostic is the use of symbols
apeiros has joined #ruby
<allfro> unless i’m incorrect?
yubrew has quit [Ping timeout: 240 seconds]
kitak has quit [Remote host closed the connection]
agent_white has joined #ruby
bradhe has quit [Remote host closed the connection]
senayar has joined #ruby
helpD has joined #ruby
quantsini has joined #ruby
kitak has joined #ruby
skysploit has quit [Quit: Leaving]
fgo has joined #ruby
Steve21 has quit [Quit: Steve21]
_justin has quit [Quit: _justin]
apeiros has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_justin has joined #ruby
cover has joined #ruby
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
iliketurtles has joined #ruby
sputnik1_ has joined #ruby
<iliketurtles> whats the best way to generate a hash of the alphabet in 1.9.3? in 2.1 I can use ('a'..'z').each_with_index.to_h, but there's no .to_h in 1.9.x
<iliketurtles> >> ('a'..'c').each_with_index.to_h
<eval-in__> iliketurtles => {"a"=>0, "b"=>1, "c"=>2} (https://eval.in/139420)
anarang has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
Morkel_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
robbyoconnor has joined #ruby
_maes_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
_tpavel has joined #ruby
Rubeh has quit [Ping timeout: 250 seconds]
dukz has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
_tpavel has quit [Client Quit]
Rubeh has joined #ruby
<Radar> >> Hash[('a'..'z').each_with_index.to_a]
<eval-in__> Radar => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, "m"=>12, "n"=>13, "o"=>14, "p"=>15, "q"=>16, "r"=>17, "s"=>18, "t"=>19, "u"=>20, "v"=>21, "w"=>22, "x" ... (https://eval.in/139422)
<Radar> iliketurtles: ^
robbyoconnor has quit [Remote host closed the connection]
WishBoy has quit [Read error: Connection reset by peer]
<iliketurtles> nice Radar (thumbsup)
WishBoy has joined #ruby
Deejay has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
Deejay is now known as Guest13715
pgmcgee has quit [Ping timeout: 250 seconds]
agent_white has quit [Read error: Connection reset by peer]
jericon has quit [Ping timeout: 250 seconds]
kmwhite has quit [Ping timeout: 250 seconds]
angelixd has quit [Ping timeout: 250 seconds]
mattrose has quit [Ping timeout: 250 seconds]
_tpavel has joined #ruby
supermarin has joined #ruby
gtc has quit [Ping timeout: 250 seconds]
orto has quit [Ping timeout: 250 seconds]
angelixd has joined #ruby
bigkevmcd has joined #ruby
kmwhite has joined #ruby
gtc has joined #ruby
jericon has joined #ruby
alexju_ has joined #ruby
alexju has quit [Ping timeout: 252 seconds]
pgmcgee has joined #ruby
kayloos has joined #ruby
Macaveli has joined #ruby
mattrose has joined #ruby
locriani_ has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
locriani has joined #ruby
senayar_ has joined #ruby
alexju_ has quit [Ping timeout: 252 seconds]
alexju has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
kayloos has quit [Ping timeout: 264 seconds]
orto has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
senayar_ has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
_justin has quit [Ping timeout: 252 seconds]
<certainty> >> Hash[('a' .. 'z').zip('0' .. '25')]
<eval-in__> certainty => {"a"=>"0", "b"=>"1", "c"=>"2", "d"=>"3", "e"=>"4", "f"=>"5", "g"=>"6", "h"=>"7", "i"=>"8", "j"=>"9", "k"=>"10", "l"=>"11", "m"=>"12", "n"=>"13", "o"=>"14", "p"=>"15", "q"=>"16", "r"=>"17", "s"=>"18", " ... (https://eval.in/139426)
<certainty> >> Hash[('a' .. 'z').zip(0 .. 25)]
<eval-in__> certainty => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, "m"=>12, "n"=>13, "o"=>14, "p"=>15, "q"=>16, "r"=>17, "s"=>18, "t"=>19, "u"=>20, "v"=>21, "w"=>22, "x" ... (https://eval.in/139427)
<certainty> iliketurtles: ^
<iliketurtles> certainty: nice solution also :)
johncjensen has joined #ruby
sputnik1_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
supermarin_ has joined #ruby
funburn has quit [Remote host closed the connection]
freerobby has joined #ruby
bthesorceror has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 252 seconds]
funburn has joined #ruby
<havenwood> moar than one way! \o/
<havenwood> >> Hash[[*(?a).upto(?z).with_index]]
<eval-in__> havenwood => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, "m"=>12, "n"=>13, "o"=>14, "p"=>15, "q"=>16, "r"=>17, "s"=>18, "t"=>19, "u"=>20, "v"=>21, "w"=>22, "x" ... (https://eval.in/139431)
<havenwood> but some bad ways too :O
<havenwood> >> 25.times.with_object({}) { |n, hash| hash[(n + 97).chr] = n }
<eval-in__> havenwood => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, "m"=>12, "n"=>13, "o"=>14, "p"=>15, "q"=>16, "r"=>17, "s"=>18, "t"=>19, "u"=>20, "v"=>21, "w"=>22, "x" ... (https://eval.in/139432)
<certainty> havenwood: the first one is nice
supermarin_ has quit [Ping timeout: 252 seconds]
CorpusCallosum has quit [Quit: Computer has gone to sleep.]
MatthewsFace has quit [Quit: This computer has gone to sleep]
freerobby has quit [Ping timeout: 252 seconds]
emaxi has joined #ruby
_justin has joined #ruby
<havenwood> this one takes advantage of #with_index's unique feature compared to #each_with_index:
<havenwood> >> 25.times.with_index(97).map { |x, y| [y.chr, x] }.to_h
<eval-in__> havenwood => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, "m"=>12, "n"=>13, "o"=>14, "p"=>15, "q"=>16, "r"=>17, "s"=>18, "t"=>19, "u"=>20, "v"=>21, "w"=>22, "x" ... (https://eval.in/139433)
kyb3r_ has joined #ruby
servatoo has quit [Remote host closed the connection]
AlexRussia has joined #ruby
aemeredith has joined #ruby
servatoo has joined #ruby
cina has quit [Quit: leaving]
apeiros has joined #ruby
emaxi has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
paradisaeidae has quit [Ping timeout: 252 seconds]
<havenwood> for a 1.9+ i do actually kinda like: ('a').upto('z').with_index.to_h
Kneferilis has joined #ruby
tyfighter has joined #ruby
brunops has joined #ruby
<certainty> yepp definitely
<havenwood> err, #to_h, that's no 1.9 >.>, but modern*
servatoo has quit [Ping timeout: 240 seconds]
Guest13715 has quit [Quit: Computer has gone to sleep.]
_maes_ has quit [Read error: Connection reset by peer]
Deejay_ has joined #ruby
shime has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
bradhe has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
zorak has joined #ruby
Lightsword has quit [Ping timeout: 252 seconds]
Deejay_ has quit [Client Quit]
DouweM has quit [Ping timeout: 252 seconds]
reset has joined #ruby
_maes_ has joined #ruby
Lair_ has joined #ruby
Xeago has joined #ruby
yubrew has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
brunops has quit [Ping timeout: 264 seconds]
jprovazn has joined #ruby
rakm has joined #ruby
frobrob has joined #ruby
<havenwood> >> 'a'.upto('z').zip(25.times).to_h
<eval-in__> havenwood => {"a"=>0, "b"=>1, "c"=>2, "d"=>3, "e"=>4, "f"=>5, "g"=>6, "h"=>7, "i"=>8, "j"=>9, "k"=>10, "l"=>11, "m"=>12, "n"=>13, "o"=>14, "p"=>15, "q"=>16, "r"=>17, "s"=>18, "t"=>19, "u"=>20, "v"=>21, "w"=>22, "x" ... (https://eval.in/139435)
dukz has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 265 seconds]
Hydan` has quit [Ping timeout: 276 seconds]
dukz has joined #ruby
claymore has joined #ruby
locriani has quit [Remote host closed the connection]
amundj has joined #ruby
echevemaster has quit [Quit: Leaving]
andy___ has quit [Remote host closed the connection]
senayar has joined #ruby
MatthewsFace has joined #ruby
ninegrid has joined #ruby
allfro has quit [Quit: allfro]
MatthewsFace has quit [Client Quit]
nomenkun has joined #ruby
bradhe has quit [Remote host closed the connection]
Es0teric has quit [Read error: Operation timed out]
<havenwood> one more for good measure: [[*?a..?z], [*0..25]].transpose.to_h
yfeldblum has quit [Ping timeout: 264 seconds]
frobrob has quit [Ping timeout: 252 seconds]
noop has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
<rdgawdzi> Does ruby dynamically evaluate "switch" statements? For example, in a case x ,when, end block, Some code executes and changes x, Can another "when" occur following that?
<rdgawdzi> Basically, I want to "waterfall" my switch statement to save code complexity
<Hanmac> rdgawdzi: ruby does not have fall trough
<rdgawdzi> Ah that sucks, I have to emulate that with if statements then
johncjensen has quit [Ping timeout: 240 seconds]
ddv has quit [Changing host]
ddv has joined #ruby
reset has quit [Ping timeout: 255 seconds]
pdtpatrick has quit [Ping timeout: 250 seconds]
zigomir has joined #ruby
mikepack has joined #ruby
zigomir has quit [Read error: No route to host]
tyfighter has quit [Quit: tyfighter]
agent_white has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
JohnBat26 has joined #ruby
agent_white has joined #ruby
jack_rabbit has joined #ruby
blackmesa has joined #ruby
funburn has quit [Quit: funburn]
<havenwood> rdgawdzi: alternatively you could put a `redo` at then end of each `when`
senayar has quit [Remote host closed the connection]
MacTrash has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
ziyadb_ has quit [Quit: Connection closed for inactivity]
<crome> havenwood: how would that help?
<havenwood> crome: so it'd fallthrough
<crome> wouldnt it just run first matching when block again?
<crome> +the
crzrcn has quit [Quit: Leaving.]
alex88 has joined #ruby
MacTrash has quit [Client Quit]
yfeldblum has joined #ruby
frobrob has joined #ruby
MacTrash has joined #ruby
senayar has joined #ruby
<Hanmac> i have seen ruby code with a "case" "when" structure WITHOUT a case-statement!!! yeah it works in ruby but imo its a NO-GO and the maker was only to lazy to use the correct if-else structure for that!
<havenwood> crome: this is what i mean: https://gist.github.com/havenwood/11168412
tonni has quit [Ping timeout: 252 seconds]
iliketur_ has joined #ruby
supermarin has joined #ruby
iliketur_ has quit [Remote host closed the connection]
locriani has joined #ruby
<havenwood> crome: presuming the case value is changed, fallthrough style*
iliketurtles has quit [Ping timeout: 265 seconds]
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
<crome> yeah, neat trick with the catch
<crome> Im not sure I ever used catch :)
qba73 has joined #ruby
_justin has quit [Ping timeout: 255 seconds]
<crome> but you cant really change the value if you have subequent when blocks you want to get into
senayar has quit [Remote host closed the connection]
supermarin has quit [Ping timeout: 264 seconds]
senayar has joined #ruby
nomenkun_ has joined #ruby
emaxi has joined #ruby
crzrcn has joined #ruby
<j416> there I simplified it for you http://pastebin.com/2Vmbh4LJ
<j416> :P
freerobby has joined #ruby
<havenwood> crome: maybe i'm misunderstanding, that's what i thought rdgawdzi wanted to do. change the case value in one when and have a subsequent when see the new value. i may just be confused. ;)
supermarin_ has joined #ruby
<havenwood> j416: lol
<havenwood> crome: borrowed the catch trick from drbrain. too insane to actually use? :O
<rdgawdzi> Is Ruby smart about enumerations? For example, what if I do fn().each {...}
<rdgawdzi> Will it call fn() each time? Or only once?
<rdgawdzi> *iterations
<atmosx> rdgawdzi: is fn an array of objects? or a hash?
seaned_ has joined #ruby
<rdgawdzi> atmosx: Does it matter?
nomenkun has quit [Ping timeout: 276 seconds]
<atmosx> if it's not enumerable it does, doesn't it?
ayaz has joined #ruby
<rdgawdzi> fn is a function that returns a Hash or an Object for example
emaxi has quit [Ping timeout: 240 seconds]
seaned has quit [Ping timeout: 240 seconds]
seaned_ is now known as seaned
<atmosx> rdgawdzi: then it doesnt
<atmosx> shevy: you here?
freerobby has quit [Ping timeout: 255 seconds]
ndrei has quit [Ping timeout: 255 seconds]
supermarin_ has quit [Ping timeout: 252 seconds]
robbyoconnor has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
_pingu has joined #ruby
<havenwood> rdgawdzi: smart
<rdgawdzi> haverwood: I wonder how far ruby can code golf lol
<havenwood> rdgawdzi: pretty decent
flughafen has quit [Quit: WeeChat 0.4.1]
narcan has joined #ruby
<havenwood> rdgawdzi: here's a fizzbuzz: 1.upto(100){|n|puts"FizzBuzz\n"[o=n**4%-15,o+13]||n}
<_pingu> did: gem install knife-solo without errors, but got the following error, when i run the new command: http://pastebin.com/WdVEeay1 I'
<_pingu> I'am ruby beginner
blackavr has quit [Quit: blackavr]
LiohAu has joined #ruby
<havenwood> _pingu: did you follow the Windows support caveats?: https://github.com/matschaffer/knife-solo/blob/master/README.rdoc#windows-support
yubrew has joined #ruby
poikon_ has joined #ruby
<havenwood> _pingu: it might be worth just setting up a linux command line for development ease. vagrant is a nice way: http://www.vagrantup.com/
tonni has joined #ruby
nvrch has joined #ruby
<havenwood> _pingu: oh, looks like you're already using Vagrant, so nvm!
relix has joined #ruby
akonny has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<_pingu> havenwood: just read your link. i
aemeredith has quit [Remote host closed the connection]
<_pingu> i'am not sure, if knife-solo supports windows
locriani_ has quit [Ping timeout: 255 seconds]
tharindu has quit [Quit: Leaving...]
Al_ has joined #ruby
locriani has joined #ruby
Al_ is now known as Guest17141
supermarin has joined #ruby
<_pingu> havenwood: don't see how your link helps me. i did gem install knife-solo, and there is nothing else described. there's a chapter for windows for the cook command, but that does not really help. the printed error comes for knife solo init, too.
kukyakya_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
coderhs has joined #ruby
<havenwood> _pingu: then i dunno, may just not support win
supermarin has quit [Ping timeout: 265 seconds]
banister has joined #ruby
mercwithamouth has joined #ruby
<_pingu> havenwood: ok. thanks for trying to help me!
<_pingu> :-)
peter_ss has joined #ruby
olivier_bK has joined #ruby
locriani_ has joined #ruby
<peter_ss> hello, i have a custom class that inherits from exception. is it possible to not display the full stacktrace error in ruby?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
drPoggs has joined #ruby
browndawg has quit [Quit: Leaving.]
locriani has quit [Ping timeout: 276 seconds]
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
Morkel has quit [Quit: Morkel]
kitak has quit [Remote host closed the connection]
joonty has joined #ruby
piv has quit [Ping timeout: 245 seconds]
piv has joined #ruby
kitak has joined #ruby
mengu has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
andy___ has joined #ruby
<apeiros> peter_ss: displaying backtrace is part of the rescue code
<apeiros> peter_ss: also, DO NOT EVER inherit from Exception directly
<apeiros> inherit from StandardError
winny_ has joined #ruby
<peter_ss> apeiros is it possible to not display it, it's for non programmers.
<apeiros> peter_ss: handle your exceptions. then you can do whatever you want.
<apeiros> begin …code which might raise… rescue; …handle exceptions… end
<peter_ss> i did, but it still displaying the full trace
<apeiros> peter_ss: that means you didn't.
deadlock has joined #ruby
ndrei has joined #ruby
<peter_ss> hmm
<apeiros> if you handle an exception, ruby does what you tell it to do in the exception handling. so either you didn't rescue the exception, or you yourself print out the backtrace.
<apeiros> I'd assume the former
Guest17141 is now known as Aaaaal
deadlock has quit [Remote host closed the connection]
andy___ has quit [Ping timeout: 252 seconds]
ktun has joined #ruby
timonv has joined #ruby
deadlock has joined #ruby
SonicX has quit [Read error: Connection reset by peer]
deadlock has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
virtualize has quit []
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
<peter_ss> am I doing it wrong?
kaspergrubbe has joined #ruby
atno has joined #ruby
piv has quit []
lkba has quit [Ping timeout: 240 seconds]
kayloos has joined #ruby
<Hanmac> peter_ss: i would use "if login.empty? || key.empty?" and CC_API_LOGIN and API_LOGIN are not the same
<peter_ss> I've updated it Hanmac
<Hanmac> like i said line 19-20 can be combined into one "raise_license_key_exception if login.empty? || key.empty?"
roolo has joined #ruby
einarj has joined #ruby
<peter_ss> Hanmac yup that's done
emaxi has joined #ruby
<peter_ss> but my issue I don't want to display the full trace to the user
winny_ has quit [Quit: Page closed]
ndrei has quit [Ping timeout: 252 seconds]
Kneferilis has quit [Quit: Leaving]
jackneill has joined #ruby
jackneill has joined #ruby
kayloos has quit [Ping timeout: 265 seconds]
<apeiros> peter_ss: so you rescue KeyError and reraise LicenseKeysException
<apeiros> where do you handle LicenseKeysException?
<peter_ss> line 23
<peter_ss> it's calling raise_license_key_exception method
emaxi has quit [Ping timeout: 252 seconds]
<apeiros> peter_ss: yes, I saw that. it's what I described. raise_license_key_exception raises LicenseKeysException.
andrewlio has joined #ruby
<apeiros> again, where do you handle LicenseKeysException?
heftig has joined #ruby
freerobby has joined #ruby
atno has quit [Remote host closed the connection]
supermarin_ has joined #ruby
agent_white has quit [Quit: g']
<peter_ss> apeiros sorry I didn't quite get that. you mean when should I raise that exception?
hamakn_ has quit [Remote host closed the connection]
<Macaveli> Any tig masters here? :D
<apeiros> peter_ss: where do you rescue LicenseKeysException? handling an exception means you somewhere have a rescue for it.
coderhs has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 265 seconds]
supermarin_ has quit [Ping timeout: 264 seconds]
ephemerian has joined #ruby
<peter_ss> apeiros I think I have fixed it
elaptic`` is now known as elaptics
<peter_ss> you guys right by inheriting to StandardError class and not to Exception
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
ziyadb_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__main__ has joined #ruby
marr has joined #ruby
Hanmac has quit [Ping timeout: 276 seconds]
yubrew has quit [Ping timeout: 252 seconds]
sk87 has quit [Ping timeout: 245 seconds]
tacos1de has quit [Ping timeout: 272 seconds]
droptone has quit [Ping timeout: 240 seconds]
jxport has quit [Ping timeout: 240 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
droptone has joined #ruby
patteh has quit [Ping timeout: 245 seconds]
jxport has joined #ruby
deavid has joined #ruby
WilfredTheGreat has joined #ruby
thejoecarroll has quit [Ping timeout: 240 seconds]
deavidsedice has quit [Ping timeout: 240 seconds]
patteh has joined #ruby
sebastianb has joined #ruby
tacos1de has joined #ruby
jamto11 has joined #ruby
jamto11_ has joined #ruby
tkuchiki_ has joined #ruby
tharindu has joined #ruby
obs has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
ikaros has joined #ruby
thejoecarroll has joined #ruby
sk87 has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
AlSquire has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
Zai00 has joined #ruby
supermarin has joined #ruby
helpD has quit [Remote host closed the connection]
aspiers has joined #ruby
rdark has joined #ruby
nfk has joined #ruby
workmad3 has joined #ruby
DouweM has joined #ruby
mikepack has joined #ruby
supermarin has quit [Ping timeout: 265 seconds]
nari has joined #ruby
kaichanvong has quit [Quit: _]
rakm has left #ruby [#ruby]
art-solopov has joined #ruby
hamakn has joined #ruby
mengu has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 264 seconds]
Hanmac has joined #ruby
kaichanvong has joined #ruby
Speed has joined #ruby
Squarepy has joined #ruby
locriani_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 240 seconds]
Hanmac1 has quit [Ping timeout: 255 seconds]
phansch has joined #ruby
timgauthier has joined #ruby
Xeago has joined #ruby
<timgauthier> don't tell me how to parse my code!
emaxi has joined #ruby
jsaak has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
jonno11 has joined #ruby
iaj has joined #ruby
Xeago_ has joined #ruby
spider-mario has joined #ruby
Squarepy has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
Lewix has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 252 seconds]
iaj_ has quit [Ping timeout: 258 seconds]
fefr has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 265 seconds]
<timgauthier> shevy back yet ? :P
sdouglas has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
mehlah has joined #ruby
_main_ has joined #ruby
_pingu has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140317233623]]
t4nk119 has joined #ruby
obs has quit [Remote host closed the connection]
AlSquirrel has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 265 seconds]
AlSquire has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
zigomir has joined #ruby
_main_ is now known as __main__
Hanmac has quit [Ping timeout: 265 seconds]
obs has joined #ruby
wallerdev has quit [Quit: wallerdev]
hamakn has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
combusean has joined #ruby
yubrew has joined #ruby
ponga_ is now known as ponga
ponga has quit [Changing host]
ponga has joined #ruby
george2 has quit [Quit: No Ping reply in 180 seconds.]
supermarin_ has joined #ruby
george2 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
akonny has quit [Quit: akonny]
Hanmac has joined #ruby
supermarin_ has quit [Ping timeout: 245 seconds]
yubrew has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
armyriad has joined #ruby
avril14th has joined #ruby
mengu has quit [Ping timeout: 265 seconds]
AlSquirrel has quit [Ping timeout: 276 seconds]
nari has quit [Ping timeout: 264 seconds]
claymore has quit [Quit: Leaving]
tjsousa has joined #ruby
tobago has joined #ruby
AlSquire has joined #ruby
tobago has quit [Client Quit]
tobago has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
helpD has joined #ruby
lkba has joined #ruby
AlSquirrel has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Aaaaal has quit [Quit: Aaaaal]
chipotle has quit [Quit: cya]
AlSquire has quit [Ping timeout: 252 seconds]
banister has joined #ruby
oo_ has joined #ruby
Hanmac1 has joined #ruby
arietis has joined #ruby
supermarin has joined #ruby
<certainty> timonv: \o
<timonv> sup
<timonv> can't say with any certainty who you are \o/
Hanmac has quit [Ping timeout: 252 seconds]
ws2k3 has joined #ruby
<timgauthier> ooohhhhhhraaah
<timgauthier> :P
nari has joined #ruby
tkuchiki has joined #ruby
benlieb has quit [Quit: benlieb]
supermarin has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
BizarreCake has joined #ruby
jenskarlsen has quit [Quit: jenskarlsen]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
locriani has joined #ruby
jcs222_ has joined #ruby
yarou has joined #ruby
Adawerk__ has joined #ruby
alexju_ has joined #ruby
apeiros_ has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
patronus has quit [Read error: Connection reset by peer]
mven_ has quit [Read error: Connection reset by peer]
nvrch_ has joined #ruby
patronus has joined #ruby
jcs222 has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
zonetti has quit [Ping timeout: 255 seconds]
Davedo has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 252 seconds]
t4nk119 has quit [Quit: Page closed]
_fumk has joined #ruby
_fumk has quit [Max SendQ exceeded]
hamakn has joined #ruby
_maes_ has quit [Ping timeout: 255 seconds]
yarou_ has quit [Ping timeout: 255 seconds]
_fumk has joined #ruby
alexju has quit [Ping timeout: 255 seconds]
nvrch has quit [Ping timeout: 255 seconds]
nvrch_ is now known as nvrch
fumk has quit [Ping timeout: 255 seconds]
Davedo has joined #ruby
locriani has quit [Ping timeout: 252 seconds]
zonetti has joined #ruby
sindork has joined #ruby
chipotle has joined #ruby
geeky-sh has joined #ruby
Al_ has joined #ruby
Al_ is now known as Guest10429
chrisseaton has joined #ruby
caveat- has quit [Ping timeout: 258 seconds]
nihils has quit [Quit: Linkinus - http://linkinus.com]
sdouglas has joined #ruby
Speed has quit [Ping timeout: 240 seconds]
Lair_ has quit [Ping timeout: 252 seconds]
evenix has quit [Remote host closed the connection]
evenix has joined #ruby
roolo has quit [Quit: Leaving...]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdouglas has quit [Ping timeout: 276 seconds]
Hanmac has joined #ruby
kayloos has joined #ruby
ponyfleisch has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
seaned_ has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 252 seconds]
chrisseaton has quit [Ping timeout: 276 seconds]
robustus has joined #ruby
ixti has joined #ruby
yubrew has joined #ruby
banister has joined #ruby
dorei has joined #ruby
caveat- has joined #ruby
Alina-malina has quit [Ping timeout: 276 seconds]
oneidos has joined #ruby
kayloos has quit [Ping timeout: 265 seconds]
oneidos has quit [Client Quit]
timgauthier has joined #ruby
canton7-mac has joined #ruby
Speed has joined #ruby
freerobby has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
karupa is now known as zz_karupa
sigurding has quit [Quit: sigurding]
freerobby has quit [Ping timeout: 265 seconds]
locriani has joined #ruby
marr has joined #ruby
Martxel_ is now known as Martxel
chrisseaton has joined #ruby
senayar_ has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 255 seconds]
Lewix has joined #ruby
<certainty> timonv: woops sorry that was supposed to go to timgauthier
<timgauthier> oh, ok :P
<timgauthier> that sucks
<timgauthier> what did you say?
<timonv> haha
<certainty> o/
<timgauthier> also why the heck can't i connect to my mail servers still
<timgauthier> hai!
senayar has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
mikepack has joined #ruby
jamto11_ has joined #ruby
nvrch has quit [Quit: nvrch]
hamakn has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
roolo has joined #ruby
lazyguru has quit [Ping timeout: 240 seconds]
pdtpatrick has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 264 seconds]
jamto11_ has quit [Ping timeout: 255 seconds]
hamakn has joined #ruby
<timgauthier> i kind of hate the internet :P
dukz has quit [Read error: Operation timed out]
atno has joined #ruby
<popl> timgauthier: I'm sure the Internet hates you right back.
<popl> I bet it hates you more than you hate it.
lazyguru has joined #ruby
<timgauthier> sweet!
supermarin has joined #ruby
<popl> You should go ask 4chan about it.
<timgauthier> naw /b/
<popl> What's the difference?
dukz has joined #ruby
<timgauthier> i don't know, i was never cool
lkjlk has joined #ruby
mehlah has quit [Quit: Leaving...]
jrhe has joined #ruby
<lkjlk> Aren't del and push methods defined for Hash?
<lkjlk> I'm trying to do movies.add() and movies.push()
blackmesa has quit [Read error: Operation timed out]
<lkjlk> and movies.del(name)
<lkjlk> but nothing is working for me
jason_ has joined #ruby
<lkjlk> I could add the movies like movies[name] = ratings
<lkjlk> right?
<popl> tias
seaned_ has quit [Quit: Zzzzzz....]
<lkjlk> tias?
<lkjlk> yes?
<canton7-mac> try it and see
<lkjlk> I'm on codecademy and it doesn't do that :(
<lkjlk> the last one does add but when I move from one page to other it goes down again
supermarin has quit [Ping timeout: 252 seconds]
<lkjlk> and del method and push doesn't work
LastWhisper has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
evenix has joined #ruby
nffff has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
<timgauthier> i should play more Kerbel space program.
nvrch has joined #ruby
yfeldblum has joined #ruby
heftig has quit [Quit: Quitting]
evenix has quit [Ping timeout: 276 seconds]
ndrei has quit [Ping timeout: 252 seconds]
rdark has quit [Ping timeout: 240 seconds]
metamaterial has quit [Quit: Leaving.]
mehlah has joined #ruby
rdark has joined #ruby
dukz has quit [Remote host closed the connection]
Milly_Bays has joined #ruby
sensen has quit [Quit: leaving]
yfeldblum has quit [Ping timeout: 265 seconds]
heftig has joined #ruby
Milly_Bays has quit [Read error: Connection reset by peer]
psyko666 has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
doodlehaus has joined #ruby
fgo has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 276 seconds]
poikon_ has quit [Remote host closed the connection]
sigurding has joined #ruby
yubrew has joined #ruby
simono has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
psyko666 has joined #ruby
xiella has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
chipotle has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
poikon_ has joined #ruby
mostlybadfly has joined #ruby
djbender has joined #ruby
browndawg has joined #ruby
moritzs has joined #ruby
djbender has quit [Client Quit]
nari has joined #ruby
seaned_ has joined #ruby
spier has joined #ruby
patteh has quit [Quit: leaving]
freerobby has joined #ruby
patteh has joined #ruby
tkuchiki has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
popl has quit [Quit: Touch the frog.]
michael_lee has joined #ruby
<krz> how can i use instance_variable_set against a block?
doodlehaus has quit [Remote host closed the connection]
fgo has joined #ruby
freerobby has quit [Ping timeout: 255 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 252 seconds]
poikon_ has quit [Remote host closed the connection]
ndrei has joined #ruby
nateberkopec has joined #ruby
poikon_ has joined #ruby
dkamioka has joined #ruby
virtualize has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
danshultz has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
ndrei has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
<avril14th> against?
tkuchiki has joined #ruby
jamto11 has joined #ruby
<timgauthier> anyone familiar with middleman know how to make a helper or filter? I want to make it obfuscate mailto links as ascii
<timgauthier> against i think they mean as logic argument against a block
<timgauthier> like check the block is true/false compared to the instance thingy
Es0teric has joined #ruby
peter_ss has quit [Ping timeout: 255 seconds]
malcolmva has quit [Ping timeout: 245 seconds]
jamto11 has quit [Ping timeout: 265 seconds]
locriani has joined #ruby
Guest10429 has quit [Quit: Guest10429]
seaned_ has quit [Quit: Abducted by aliens...]
thoraxe has quit [Ping timeout: 250 seconds]
s00pcan has quit [Quit: Lost terminal]
shashank_rs has joined #ruby
thoraxe has joined #ruby
Al_ has joined #ruby
supermarin has joined #ruby
Al_ is now known as Guest3402
s00pcan has joined #ruby
monsieur1 is now known as monsieurp
locriani has quit [Ping timeout: 276 seconds]
peter_ss has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<krz> avril14th: something like https://gist.github.com/c6ee7b8365c9451a29ce
supermarin has quit [Ping timeout: 264 seconds]
<krz> timgauthier: ^^
<krz> do i need a lambda for this?
kitak has quit [Remote host closed the connection]
<timgauthier> i don't know, i'm a huge newb :S
<avril14th> krz: yes
<timgauthier> i'm trying to figure out the way to get middleman to render out my YAML without using a for block
lkjlk has left #ruby ["Konversation terminated!"]
<avril14th> or a proc
<avril14th> did you try already?
chipotle has quit [Quit: cya]
rdark has quit [Ping timeout: 252 seconds]
malcolmva has joined #ruby
dkamioka has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
rvraghav93 has joined #ruby
Morkel has joined #ruby
kreisys has joined #ruby
<krz> @foo doesnt output 'foobar'
yfeldblum has joined #ruby
<krz> @foo.call does though
<krz> ah so https://gist.github.com/c6ee7b8365c9451a29ce is that how to do it?
Alina-malina has joined #ruby
<krz> seems to work
Devanon has joined #ruby
rdark has joined #ruby
blackmesa has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
lxsameer has quit [Quit: Leaving]
yfeldblum has joined #ruby
<avril14th> yes
<avril14th> but here
<avril14th> what you set your instance variable to
<avril14th> is the result of the call
<avril14th> not the proc itself
yubrew has joined #ruby
<avril14th> krz: now, I don't see a case where you need to do such things :) could you enlighten me? maybe there is a better way to it
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phoo1234567 has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
bluenemo_ has joined #ruby
bluenemo_ has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 276 seconds]
yalue has joined #ruby
caveat- has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
shashank_rs has quit [Ping timeout: 255 seconds]
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Adawerk__ has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
kitak has joined #ruby
lkba has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
mven has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
xcv has joined #ruby
mark_locklear has joined #ruby
sepp2k has joined #ruby
oo_ has quit [Remote host closed the connection]
decoponio has joined #ruby
caveat- has joined #ruby
sambao21 has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
jamto11 has joined #ruby
h0lyalg0rithm has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
tonni is now known as ta
kavinder has joined #ruby
oo_ has joined #ruby
freerobby has joined #ruby
mjsmith2 has joined #ruby
arietis has joined #ruby
blandflakes has joined #ruby
sindork has quit [Changing host]
sindork has joined #ruby
sigurding has quit [Quit: sigurding]
BAMbanda has joined #ruby
<BAMbanda> I'm a newb, can someone help me incorporate a hosted javascript lib into my rails app?
treehug88 has joined #ruby
rmorello has joined #ruby
fannye has joined #ruby
h0lyalg0rithm has quit [Client Quit]
<BAMbanda> I'm new to ruby dev in general, so I'm still getting used to the folder structure
<avril14th> BAMbanda: #rubyonrails
poikon_ has quit [Remote host closed the connection]
claymore has joined #ruby
mikepack has joined #ruby
dreamchaser has joined #ruby
wald0 has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
dANOKELOFF has joined #ruby
b2nary has joined #ruby
poikon_ has joined #ruby
spyderman4g63 has joined #ruby
puzanov__ has joined #ruby
nateberkopec has quit [Quit: Leaving...]
mikepack has quit [Ping timeout: 276 seconds]
Squarepy has joined #ruby
spyderman4g63 has quit [Client Quit]
jerius has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
puzanov_ has quit [Ping timeout: 240 seconds]
webgen has joined #ruby
hamakn has joined #ruby
treehug88 has quit []
<olivier_bK> how to parse a hash and apply gsub method ?
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<webgen> NameServ?
<webgen> how was that identification thing guys? with name serv?
jerius has quit [Client Quit]
<marahin> /msg nickserv identify nick password
<marahin> webgen: ^
jerius has joined #ruby
jespada has joined #ruby
jamto11 has quit [Remote host closed the connection]
cpruitt has joined #ruby
<webgen> marahin thank you!
emaxi has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
jerius has quit [Client Quit]
hamakn_ has joined #ruby
dblessing has joined #ruby
fgo has quit [Remote host closed the connection]
kavinder has quit [Remote host closed the connection]
locriani has joined #ruby
<webgen> is it possible to use ruby -v 1.9.3 when I already have 2.1.0 installed ?
spyderman4g63 has joined #ruby
jamto11_ has joined #ruby
<canton7-mac> look at rvm, chruby, or rbenv
simono has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
Caius has quit [Ping timeout: 255 seconds]
<BAMbanda> hi, im new to rails dev, and need to incorporate a hosted js library (d3.js) into my app, im still not too familiar with the folder structure either
<BAMbanda> any help?
<mikecmpbll> #rubyonrails
<webgen> canton7-mac thanks dude :)
dorei has quit [Read error: Operation timed out]
<BAMbanda> so what's the best way to add: <script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<mikecmpbll> BAMbanda: there's a room dedicated to ruby on rails questions at #rubyonrails, but you can just add it exactly like you said if you want.
tharindu has quit [Quit: Leaving...]
senayar has joined #ruby
bookies has joined #ruby
<BAMbanda> woooooooooops, i thought i was there, sorry about that
<bookies> How do I extract code from the "search" method into others and then call the newly created methods from the "search " method? https://gist.github.com/anonymous/2f40f6e449c8592ea5eb
locriani has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jxf has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
Caius has joined #ruby
BAMbanda has quit [Quit: leaving]
timgauthier has joined #ruby
<timgauthier> ALOHA!
<timgauthier> this one time i was coding PHP
<mikecmpbll> bookies: exactly like that?
efeldhusen has joined #ruby
linojon has joined #ruby
anaeem___ has quit [Remote host closed the connection]
<bookies> mikecmpbil: excuse me? like what?
chipotle has joined #ruby
supermarin has joined #ruby
locriani has joined #ruby
C0deMaver1ck has joined #ruby
pika_pika has joined #ruby
<shevy> what code bookies
<shevy> all I see is a single method
paulfm has joined #ruby
<timgauthier> sup
<shevy> you assign various @ivars to what a hash gives you
<crome> code cookies
<shevy> not only that
<shevy> @users = @users.where('availability = ?', @availability) if @availability.present?
<shevy> @users = @users.where('location_country = ?', @location) if @location.present?
<shevy> you also overwrite earlier @users ivar
<shevy> I have never seen something like this before
Devanon has quit [Quit: WeeChat 0.4.3]
<crome> shevy: its just chaining up ar scopes
Devanon has joined #ruby
moritzs has quit [Read error: Operation timed out]
<bookies> :|
<crome> it is technically overwriting @users but the new finder clause is added to it
<shevy> wtf
supermarin has quit [Ping timeout: 255 seconds]
jonno11 has joined #ruby
kreisys has joined #ruby
<shevy> this just makes me sad
<bookies> lol
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
Devanon has quit [Client Quit]
<workmad3> shevy: the AR query builder is chainable... so each method returns a new object rather than modifying the existing one
<shevy> workmad3 omg
<workmad3> shevy: which is fairly standard practice with that style of query builder
Devanon has joined #ruby
<shevy> now I am even sadder than before
locriani_ has joined #ruby
locriani has quit [Read error: Connection reset by peer]
<workmad3> shevy: why does that make you sad?
<shevy> workmad3 because in all my years of ruby, I never needed this
kreisys has quit [Read error: Connection reset by peer]
<crome> in rails you do this pretty much every day
Morkel has quit [Quit: Morkel]
<workmad3> shevy: I don't see why that makes you sad
<matti> workmad3: :)
<timgauthier> everything makes shevy sad
<matti> shevy: ;)
s2013 has joined #ruby
<shevy> because it is completely awful
moritzs has joined #ruby
<workmad3> shevy: how so?
<shevy> workmad3 to assign like that looks extremely incompetent
<shevy> x = x.do_something
<shevy> x = x.do_something_else
<workmad3> shevy: right... using it like *that* is something I avoid
<shevy> x = x.man_we_really_do_something_cool_here
<shevy> # add 100 more lines like that
<workmad3> shevy: and you don't need to do it like that
poikon_ has quit [Remote host closed the connection]
alexju_ has quit [Remote host closed the connection]
<shevy> I am sorry but that is the ultimate noobness
<matti> shevy: x.tap {|x| x.do }
<matti> ;]
Devanon has quit [Client Quit]
<shevy> matti where are the missing 99 lines here!
<j416> how can I rename a key in a hash and keep it at the same index? in effect I would want to delete a kv pair and replace it with another
<workmad3> shevy: more commonly, it's 'foo = Model.add_condition.add_other_condition.add_third_condition'
Devanon has joined #ruby
<matti> shevy: Cheeck under the table.
<shevy> now that seems much more normal
bookies has left #ruby [#ruby]
crystal77 has joined #ruby
<workmad3> shevy: and even that is frequently then put into a class method
<shevy> right, I don't object that too much
locriani_ has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has joined #ruby
<workmad3> shevy: :)
freerobby has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: basically - don't assume that bad code means that the underlying API is awful... more commonly, it's because someone is doing something badly :)
<shevy> bookies already left in shame
<workmad3> shevy: the AR style of building SQL queries is fairly typical of lazy query builders... but it's possible to write awful code with it :)
yubrew has joined #ruby
<workmad3> heh
wald0 has quit [Quit: Lost terminal]
Milly_Bays has joined #ruby
poikon_ has joined #ruby
rudisimo has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
_m_g_ has joined #ruby
maoko has joined #ruby
sailias has joined #ruby
dANOKELOFF has quit []
cpruitt has quit [Quit: cpruitt]
_m_g_ is now known as SlvrDragn
h0lyalg0rithm has joined #ruby
doodlehaus has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
banister has joined #ruby
Squarepy has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
CorySimmons has joined #ruby
oo_ has quit [Remote host closed the connection]
yubrew has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
Geniack_ has quit [Quit: leaving]
nateberkopec has joined #ruby
codabrink has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
buzzybron has left #ruby [#ruby]
bluenemo has quit [Quit: Verlassend]
Klumben has quit [Remote host closed the connection]
johnhamelink has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
skaflem has joined #ruby
<j416> is it even possible to insert a key in a hash at a specific index? :/
* j416 pulls hair
crystal77 has quit [Quit: Computer has gone to sleep.]
jprovazn has joined #ruby
mary5030 has joined #ruby
<tobiasvl> probably not. why would you want that?
<workmad3> j416: I'm not sure your question even makes sense...
tkuchiki has quit [Remote host closed the connection]
<shevy> j416 hash[key] = value
<shevy> there you go
<tobiasvl> j416: hashes are ordered after insertion.
mary5030 has quit [Remote host closed the connection]
<tobiasvl> <j416> how can I rename a key in a hash and keep it at the same index? in effect I would want to delete a kv pair and replace it with another
<tobiasvl> relevant info ^
evenix has joined #ruby
mary5030 has joined #ruby
ta has quit [Remote host closed the connection]
<tobiasvl> j416: hashes aren't meant to be used as an ordered data type. it just so happens that they're ordered by insertion, but this "order" should probably not be relied on
ta has joined #ruby
mrmargolis has joined #ruby
MillyBays has joined #ruby
end_guy has joined #ruby
Nukepuppy has joined #ruby
fgo has joined #ruby
CorySimmons has quit [Quit: Bye!]
ehc has quit [Quit: ehc]
spacebug has joined #ruby
fgo has quit [Read error: No route to host]
<j416> tobiasvl: I'm aware.
fgo has joined #ruby
<olivier_bK> how to give a column name in csv ?
mjsmith2 has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
<tobiasvl> j416: then how about you explain your use case so we can help you with your actual problem? why do you need the hash to be ordered?
mjsmith2 has joined #ruby
<Devanon> j416: As other said, you question is quite strange but check the OrderedHash doc http://www.ruby-doc.org/gems/docs/a/aq1018-rforce-0.5.2/OrderedHash.html
Milly_Bays has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 276 seconds]
donnoc has joined #ruby
sambao21 has joined #ruby
<tobiasvl> olivier_bK: what do you mean? to parse an CSV file's column names (headers), do this: CSV.open('filename.csv', :headers => true)
arietis has quit [Quit: Computer has gone to sleep.]
akonny has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<j416> tobiasvl: I'm trying to rspec-stub something to expect a hash, and it _seems_ that it is picky about the order of the keys
fgo has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
doodleha_ has joined #ruby
<olivier_bK> when you open the excel you have column A B C ... i would want to have name surname
momomomomo has joined #ruby
Nukepuppy has quit []
<j416> tobiasvl: but I kind of solved it by just not using that #with at all, it's not that important
<j416> blergh
<j416> thanks, anyway
<tobiasvl> olivier_bK: ages since I've used excel but I think it lets you create header cells.
<workmad3> tobiasvl: I don't think excel lets you rename the columns away from 'A', 'B', 'C', etc. though
doodlehaus has quit [Ping timeout: 240 seconds]
<workmad3> I'm not aware that any spreadsheet app lets you do that...
<tobiasvl> nope
<tobiasvl> but I think it lets you designate the top row as the header row
<tobiasvl> somehow
<tobiasvl> not that I know if it's properly exported as a header row to the CSV, but…
Pynix has joined #ruby
JBreit has left #ruby ["Leaving"]
<workmad3> a 'header row' in CSV == the first row
<Pynix> hi
ta has joined #ruby
doodlehaus has joined #ruby
jbzt has joined #ruby
krz has joined #ruby
<tobiasvl> sure sure sure, but it's frozen in excel
<tobiasvl> but I don't really know what olivier_bK wants so hey
IceDragon has joined #ruby
webgen has quit [Quit: Leaving]
mansi has joined #ruby
<workmad3> tobiasvl: I think olivier_bK wants to change the 'A', 'B', etc. names of the columns to the headers from a CSV file :)
failshell has joined #ruby
freerobby has quit [Quit: Leaving.]
catphish has joined #ruby
freerobby has joined #ruby
Morkel has joined #ruby
jeregrine has joined #ruby
<catphish> does ruby have a ulimit method? i need to increase my file descriptor limit and would prefer to do it inside my process
failshel_ has joined #ruby
doodleha_ has quit [Ping timeout: 252 seconds]
jobewan has joined #ruby
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman_ has joined #ruby
failshel_ has quit [Read error: Connection reset by peer]
failshel_ has joined #ruby
failshell has quit [Read error: Connection reset by peer]
evenix has quit [Remote host closed the connection]
locriani has joined #ruby
emaxi has joined #ruby
evenix has joined #ruby
rvraghav93 has quit [Read error: Connection reset by peer]
Klumben has joined #ruby
jamto11 has joined #ruby
pushpak has joined #ruby
jobewan has quit [Remote host closed the connection]
rokob has joined #ruby
Devanon has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Read error: Connection reset by peer]
FxK has joined #ruby
Devanon has joined #ruby
freerobby1 has joined #ruby
sigurding has joined #ruby
arietis has joined #ruby
evenix has quit [Ping timeout: 265 seconds]
supermarin has joined #ruby
Devanon has quit [Client Quit]
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
centipedefarmer has joined #ruby
alexju has joined #ruby
JohnBat26 has quit [Ping timeout: 240 seconds]
locriani has quit [Ping timeout: 252 seconds]
compleatang has joined #ruby
Caius has quit [Ping timeout: 255 seconds]
Czupa has joined #ruby
wald0 has joined #ruby
Hanmac1 has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
mcrmfc has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Caius has joined #ruby
sdouglas has joined #ruby
freezey has joined #ruby
jbzt has quit [Quit: jbzt]
avril14th has quit [Ping timeout: 240 seconds]
maroloccio has joined #ruby
jonno11 has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
agjacome has quit [Quit: leaving]
SilkFox has joined #ruby
sdouglas has quit [Ping timeout: 240 seconds]
omosoj has joined #ruby
andy___ has joined #ruby
johnhamelink has joined #ruby
shashank_rs has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dima__ has joined #ruby
<jamto11> whats the best way in ruby to convert something like "2014-03-18T00:00:00-04:00" to a date?
jprovazn has quit [Read error: Connection reset by peer]
Azulinho has joined #ruby
peter_ss has left #ruby [#ruby]
sambao21 has joined #ruby
<mrmargolis> jamto11: require 'date'; Date.parse('2014-03-18T00:00:00-04:00')
jprovazn has joined #ruby
MillyBays has quit [Read error: Connection reset by peer]
<jamto11> hmm i tried that but how do u add time to it? like if i wanted to add 86400 for it to turn to 2014-03-19?
SCommette has joined #ruby
yfeldblum has joined #ruby
Pynix has left #ruby [#ruby]
duggiefresh has joined #ruby
dima__ has quit [Ping timeout: 255 seconds]
sambao21 has quit [Client Quit]
wolfsoul has joined #ruby
wolfsoul has quit [Changing host]
wolfsoul has joined #ruby
mengu has quit [Remote host closed the connection]
eka has joined #ruby
wolfsoul has quit [Client Quit]
h0lyalg0rithm has joined #ruby
centrx has joined #ruby
LexicalScope has quit [Ping timeout: 265 seconds]
dik_dak has joined #ruby
treehug88 has joined #ruby
ehc has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
tobago has quit [Remote host closed the connection]
chrisseaton has quit [Ping timeout: 240 seconds]
<mrmargolis> jamto11: Use DateTime
rebelshrug has joined #ruby
Lemur has joined #ruby
blackavr has joined #ruby
mikepack has joined #ruby
swiley has joined #ruby
sambao21 has joined #ruby
noop has quit [Ping timeout: 265 seconds]
xcv has quit [Remote host closed the connection]
kayloos has joined #ruby
xcv has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<jamto11> thank you!
benzrf|offline is now known as benzrf
Pynix has joined #ruby
yacks has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
WilfredTheGreat has quit [Ping timeout: 246 seconds]
rjhunter has quit [Remote host closed the connection]
servatoo has joined #ruby
jprovazn has quit [Quit: Leaving]
ixti has quit [Ping timeout: 252 seconds]
<benzrf> hey
kayloos has quit [Ping timeout: 276 seconds]
tagrudev has quit [Remote host closed the connection]
<benzrf> what should i name the Quick subcommand to load the source code for a method
<benzrf> 'load'?
<benzrf> 'sourcify'?
rjhunter has joined #ruby
mansi has quit [Read error: Connection reset by peer]
freezey has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
parduse has quit [Ping timeout: 252 seconds]
DouweM has quit [Ping timeout: 265 seconds]
Guest3402 has quit [Quit: Guest3402]
swiley has quit [Read error: Connection reset by peer]
<j416> 'blorb'
<j416> maybe
<benzrf> mehlah:
<benzrf> *meh
pwh has joined #ruby
freezey has joined #ruby
<shevy> lol
<shevy> mehlah
ta has quit [Ping timeout: 276 seconds]
poikon_ has quit [Remote host closed the connection]
<shevy> benzrf load() is a bad choice because ruby has load already
acrussell has joined #ruby
<shevy> benzrf how about: load_subcommand or ... subload() or ... add()
fgo has joined #ruby
<shevy> or cmd_load() or load_cmd() or ...
<shevy> run()
SonicX_ has joined #ruby
ixti has joined #ruby
sambao21 has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
<centrx> loud_sourcify_to_the_extreme
arietis has quit [Quit: Computer has gone to sleep.]
freerobby1 has quit [Quit: Leaving.]
crystal77 has joined #ruby
Al_ has joined #ruby
s3ri0us has joined #ruby
poikon_ has joined #ruby
servatoo has quit [Remote host closed the connection]
<shevy> hey
Al_ is now known as Guest10374
<shevy> not with the PHP naming conventions please
servatoo has joined #ruby
jack_rabbit has quit [Ping timeout: 252 seconds]
<shevy> benzrf what did you pick
fgo has quit [Ping timeout: 255 seconds]
swiley has joined #ruby
evenix has joined #ruby
cjbottaro has joined #ruby
arietis has joined #ruby
aganov has quit [Quit: Leaving]
Xeago_ has quit [Read error: Connection reset by peer]
<benzrf> i picked nothing because these are all GARBAGE names
<benzrf> !!
Xeago has joined #ruby
vpretzel is now known as vpretzel|1339
ta has joined #ruby
servatoo has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
swiley has quit [Read error: Connection reset by peer]
Emmanuel_Chanel has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
sambao21 has joined #ruby
cjbottaro has quit [Client Quit]
swiley has joined #ruby
<shevy> haha
swiley has quit [Read error: Connection reset by peer]
<shevy> now you understand why I recently wanted to have just unnamed variables and methods
<shevy> you never have to pick any names anymore
locriani has joined #ruby
LastWhisper has joined #ruby
Emmanuel_Chanel has joined #ruby
frobrob has quit [Quit: flee fleeeee]
kavinder has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
frobrob has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
swiley has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
compleatang has quit [Remote host closed the connection]
swiley has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
glanzi_ has joined #ruby
anarang has quit [Quit: Leaving]
freerobby has joined #ruby
h0lyalg0rithm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
donnoc has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
glanzi_ is now known as glanzi
glanzi has quit [Changing host]
glanzi has joined #ruby
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
FL1SK has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
end_guy has quit [Remote host closed the connection]
survili has joined #ruby
end_guy has joined #ruby
webgen has joined #ruby
webgen has quit [Client Quit]
swiley has joined #ruby
swiley has quit [Read error: Connection reset by peer]
webgen has joined #ruby
webgen1 has joined #ruby
webgen1 has quit [Client Quit]
webgen has quit [Client Quit]
supermarin has joined #ruby
webgen has joined #ruby
evenix has quit [Remote host closed the connection]
<benzrf> ill just call it 'source'
sdwrage has joined #ruby
geeky-sh has quit [Ping timeout: 252 seconds]
webgen has quit [Client Quit]
rainmanjam has joined #ruby
evenix has joined #ruby
__julien has joined #ruby
<benzrf> hmm when will banister be here
phantasm66 has joined #ruby
LastWhisper has quit [Ping timeout: 240 seconds]
webgen has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
webgen has quit [Client Quit]
zigomir has quit [Remote host closed the connection]
<__julien> Hi, when I install rbenv, it works well for non system version, but using the system version, the gems I install are not in the $PATH . should I myself add the gem path manyally or should it be mnaged by rbenv when version=system ?
kevind has joined #ruby
shashank_rs has quit [Ping timeout: 255 seconds]
snath has quit [Ping timeout: 240 seconds]
Lightsword has joined #ruby
ixti has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
Alina-malina has joined #ruby
supermarin has quit [Ping timeout: 252 seconds]
freerobby1 has quit [Read error: Connection reset by peer]
evenix has quit [Ping timeout: 240 seconds]
jonno11 has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
geggam has joined #ruby
BSaboia has joined #ruby
ta has quit [Remote host closed the connection]
<havenwood> __julien: just curious but what os/distro?
<__julien> havenwood, archlinux, up to date
rokob has quit [Remote host closed the connection]
CorpusCallosum has joined #ruby
mark_locklear has joined #ruby
sdouglas has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
blackmesa has quit [Quit: WeeChat 0.4.3]
<__julien> havenwood, I might have mess up smething because I installed rbenv month ago, might have done some weid stuff, then I'm reusing it today, I do not remeber to have had that kind of problem when using rbenv on CentOS 6 before
<havenwood> __julien: hmm, yeah i dunno
jobewan has joined #ruby
xerxas has joined #ruby
muz0xd has joined #ruby
browndawg has quit [Quit: Leaving.]
<failshel_> is there a wrapper gem for net/http that can take care of auth, cookies, and follow redirects, all in the same http session? instead of having to code it all?
failshel_ is now known as failshell
sambao21 has joined #ruby
Lightsword_ has joined #ruby
Lightsword has quit [Ping timeout: 252 seconds]
Lightsword_ is now known as Lightsword
muz0xd has quit [Client Quit]
<havenwood> failshell: here's an updated spreadsheet of Ruby HTTP client options (if you can even see it, sorry for putting it on iCloud): https://www.icloud.com/iw/#numbers/BAJeQeTNVAaUXYSbM2aBfwFap7MSIqaK2yiF/nahi-ruby-http-clients
muz0xd has joined #ruby
Hanmac has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
blackmesa has joined #ruby
supermarin has joined #ruby
<havenwood> failshell: checkout Mechanize or HTTPClient
yfeldblum has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
b2nary has quit [Read error: Connection reset by peer]
SvenOostenbrink has joined #ruby
<havenwood> (well, Mechanize is a net/http wrapper, HTTPClient is pure Ruby)
Pynix has quit [Quit: Pynix]
ffranz has joined #ruby
<failshell> well, it's fine :)
kobain has quit []
treehug88 has quit []
Xeago has quit [Remote host closed the connection]
areil has joined #ruby
areil has left #ruby [#ruby]
Alina-malina has quit [Ping timeout: 240 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
yfeldblum has quit [Ping timeout: 264 seconds]
Alina-malina has joined #ruby
rjhunter has quit [Remote host closed the connection]
ixti has joined #ruby
grieg has joined #ruby
jason_ has quit [Remote host closed the connection]
<Lightsword> Hi, I'm trying to do a check if a key exists in a hash, but I'm getting an undefined method error for "has_key?" https://gist.github.com/jameshilliard/11183463
<hoelzro> Lightsword: are you sure that known_outdatd_fw method is returning a hash?
blackavr has quit [Quit: blackavr]
<mikecmpbll> Lightsword: what does the full error messag say
<hoelzro> also, .has_key? == true is overly pedantic
<mikecmpbll> undefined method `has_key?` for ........
<mikecmpbll> that'll give you a clue.
rokob has joined #ruby
helpD has quit [Read error: Connection reset by peer]
<Lightsword> thats the error and hash
<havenwood> >> self.hash_key?
<eval-in__> havenwood => undefined method `hash_key?' for main:Object (NoMethodError) ... (https://eval.in/139578)
<havenwood> Lightsword: it's `known_outdated_fw` that is undefined
lmickh has joined #ruby
mansi has quit [Remote host closed the connection]
<havenwood> Lightsword: did you defined a `known_outdated_fw` method before calling it?
CaptainJet has joined #ruby
sriehl has joined #ruby
kobain has joined #ruby
<havenwood> Lightsword: or is that the wrong error?
mansi has joined #ruby
WilfredTheGreat has joined #ruby
<Lightsword> I made a hash called known_outdated_fw
<havenwood> Lightsword: Show a Gist of more code?
sambao21 has quit [Quit: Computer has gone to sleep.]
<mikecmpbll> that's not even the error you said you were getting
kiri has quit [Ping timeout: 258 seconds]
apeiros_ has quit [Remote host closed the connection]
treehug88 has joined #ruby
dima__ has joined #ruby
zorak has quit [Ping timeout: 252 seconds]
apeiros has joined #ruby
<havenwood> Lightsword: so you're calling #has_key? on an Array
BWStearns has joined #ruby
<havenwood> Array literal: []
<havenwood> Hash literal: {}
armyriad has quit [Ping timeout: 252 seconds]
akonny has quit [Quit: akonny]
michaeldeol has joined #ruby
akonny has joined #ruby
armyriad has joined #ruby
kobain_ has joined #ruby
fgo has joined #ruby
arubincloud has joined #ruby
<havenwood> >> ['looks like a Hash inside' => 'really an Array with a Hash in it']
<eval-in__> havenwood => [{"looks like a Hash inside"=>"really an Array with a Hash in it"}] (https://eval.in/139579)
codabrink has quit [Read error: Connection reset by peer]
atno has quit [Remote host closed the connection]
sambao21 has joined #ruby
SonicX_ has quit [Remote host closed the connection]
codabrink has joined #ruby
<timgauthier> wwoah, didn't even get distracted by IRC once today, still got jack all finished :|
qba73 has quit []
<havenwood> Lightsword: so on line 12 replace the [] with {}
<kiki_lamb> True or false: 'x && x || y' is equivalent to 'x || y'?
kobain has quit [Ping timeout: 276 seconds]
<havenwood> kiki_lamb: well, it'd run `x` twice if truthy, but result would otherwise be the same
makerop has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<makerop> hi, im writing a custom gem, https://gist.github.com/anonymous/11183939
apeiros has quit [Ping timeout: 264 seconds]
phinfonet has joined #ruby
<crome> a custom gem!
allfro has joined #ruby
CaptainJet has quit []
<makerop> i just have a simple ruby file using it, but the dependencies do not seem to be loading
<makerop> Im using the correct ruby version, and the gem is installed it
<makerop> seems*
<kiki_lamb> havenwood: okay, so equivalent barring side effects, makes sense.
SilkFox has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
evenix has joined #ruby
akonny has quit [Client Quit]
spier has quit [Remote host closed the connection]
<mikecmpbll> boils down to x && x being equivalent to x
fgo has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Ping timeout: 240 seconds]
<makerop> is there an easy way to test which dependencies are being loaded?
<crome> makerop: I think its add_runtime_dependency
mansi has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 252 seconds]
<havenwood> crome: good eyes
mansi has joined #ruby
<benzrf> sup makerop
<makerop> nada
SilkFox has joined #ruby
<makerop> crome, , that didnt seem to work; Im calling MonitorMixin in the ruby file, and its an uninitialized constant
<makerop> MonitorMixin is in thread
einarj has quit [Remote host closed the connection]
<crome> have you required it?
s2013 has joined #ruby
jason___ has joined #ruby
<makerop> crom, not in the ruby script, no
<makerop> I want the the custom gem to install it, etc, as a dependency
_maes_ has joined #ruby
<makerop> if I do require it, it works fwiw
<crome> unless Im totally misunderstanding your issue, monitormixin is in the standard library and you just have to require monitor
atno has joined #ruby
<benzrf> >> 'foo'.to_string
<benzrf> >> 'foo'.to_str
<eval-in__> benzrf => "foo" (https://eval.in/139580)
moritzs has quit [Ping timeout: 240 seconds]
<benzrf> mm
<makerop> crome, I don't want it to be required my gem
Xeago has joined #ruby
<makerop> er...I DO*
<havenwood> >> MonitorMixin
<eval-in__> havenwood => MonitorMixin (https://eval.in/139581)
<makerop> I dont wnat ot have to declare require 'thread' and require 'agent_dsl'
<centrx> >> ('foo'.to_sym + MonitorMixin).to_s
<eval-in__> centrx => undefined method `+' for :foo:Symbol (NoMethodError) ... (https://eval.in/139582)
zorak has joined #ruby
<havenwood> makerop: use a Ruby that isn't past End-of-Life and it should just be there
<makerop> I want agent_dsl, to require thread, and load it
jason___ has quit [Remote host closed the connection]
<centrx> makerop, What version of Ruby are you using?
<makerop> havenwood, Im using 2.0.0-p247
mansi has quit [Ping timeout: 264 seconds]
LastWhisper has joined #ruby
<crome> makerop: you dont specify libraries to be required in gemspec. you specify other gems to be installed
jason___ has joined #ruby
<havenwood> ^
<makerop> ah, so i need to require it either way
<crome> yes
kobain_ has quit [Ping timeout: 276 seconds]
jamto11_ has joined #ruby
mansi has joined #ruby
cj3kim has quit [Remote host closed the connection]
agjacome has joined #ruby
<havenwood> unless you do something wonky like put a Bundler.require(:default) at the end of your Gemfile :P
<crome> makerop: do you actualy need something from the thread gem or you just put it there becaue you thought it would be required?
bean has joined #ruby
<havenwood> same for json?
atno has quit [Remote host closed the connection]
<makerop> crome, I originally had to use 1.8.7
<makerop> and i dont think it was in there (I cant rememeber honestly)
atno has joined #ruby
<havenwood> makerop: 1.8 has a Thread
<shevy> what exactly means "emptor" alone as a word?
<crome> shevy: buyer
<makerop> beware
JBreit has joined #ruby
<havenwood> buy
jason___ has quit [Ping timeout: 264 seconds]
<shevy> oh ok
<havenwood> makerop: caveat
<makerop> ya, nm
<makerop> buy
helpD has joined #ruby
<shevy> hehe yeah... first time I saw "caveat emptor" ... I read "caveats" before several times, but emptor ... hmm
echevemaster has joined #ruby
<havenwood> shevy: we didn't adopt the latter into English
<shevy> damn business legalese
mansi has quit [Ping timeout: 240 seconds]
<timgauthier> haha business
<havenwood> i'm going emptoring this weekend
Veejay has left #ruby ["WeeChat 0.4.0"]
<shevy> english is like the language of all the major assimiliations
<timgauthier> why do i have to always give myself impossibly hard design problems :(
<shevy> *assimilations
<timgauthier> ass simulations?
<shevy> kindergarten
<havenwood> timgauthier: masochist? stockholm syndrome?
<crome> timgauthier: so you can come up with really weird solutions
<shevy> timgauthier no what the BORG do... lower your pants, then you will be assimilated etc.. etc.. and become a BORG as well
<timgauthier> haha
<timgauthier> yeah, the first one that i ended up giving myself, and i still haven't really figured out how to solve is how to make recipes look good on a web browser + include some sort of advertisement so it looks nice
ta has joined #ruby
<timgauthier> second is/was now, how do you show examples of website design work, that looks nice.
nowthatsamatt has joined #ruby
locriani has joined #ruby
<shevy> yeah
<shevy> you build the wrapper
duggiefresh has quit [Remote host closed the connection]
<shevy> on the inside it is all rotten but the buyer will recognize only after he has it bought already
banister has joined #ruby
<timgauthier> most people just stuff images in, you click and it takes you to website, i may in the end break down and do that, but I want something better.
mansi has joined #ruby
<timgauthier> but thats the thing shevy i want to build something that shows it isn't just an ugly rotten core ;)
jamto11_ has quit [Ping timeout: 265 seconds]
_tpavel has quit [Quit: Leaving]
echevemaster has quit [Client Quit]
yfeldblum has joined #ruby
danijoo has quit [Quit: Leaving...]
_tpavel has joined #ruby
timlyo has joined #ruby
<crome> timgauthier: everything looks better in a browser if you add boobs
_tpavel has quit [Read error: Connection reset by peer]
<crome> Im 100% sure it works for recipes too
rokob has quit [Remote host closed the connection]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
<timgauthier> crome my god...
* timgauthier profits
FL1SK has joined #ruby
s2013 has quit [Ping timeout: 265 seconds]
Iniesta8 has joined #ruby
AlexRussia has joined #ruby
survili has quit [Quit: Page closed]
cina_ has joined #ruby
cina_ has quit [Client Quit]
psyko666 has quit [Ping timeout: 265 seconds]
s2013 has joined #ruby
kobain has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
cina has joined #ruby
heftig has quit [Quit: Quitting]
<shevy> timgauthier ok but *what* exactly do you want to build or make?
bigkevmcd has quit [Ping timeout: 252 seconds]
<cina> is there a public mirror of rubygems.org server? I cannot access it -- also I do not have a public server to run 'gem server' on it.
kaspergrubbe has quit [Remote host closed the connection]
treehug8_ has joined #ruby
jackj has joined #ruby
<timgauthier> on my portfolio, i want to show examples of the stuff i've done. but instead of just a picture I want them to get to play with it. I was thinking of putting an example of the site as a modal popup. The problem being is taking something that was build to be in a browser viewport and containing it inside of another page
Hanmac has quit [Ping timeout: 252 seconds]
jackj is now known as jackju
<shevy> cina unsure
<timgauthier> The recipe one is a site i want to build to share recipes and such. sort of like github for food y'know
<shevy> cina if you can access to any browser, you can download a .gem file from rubygems.org directly
JBreit has left #ruby ["Leaving"]
<shevy> cina what gem do you need?
bigkevmcd has joined #ruby
jackju has quit [Client Quit]
treehug88 has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
jackju has joined #ruby
cpruitt has quit [Quit: cpruitt]
<cina> I have a Gemfile (rails app) I need to run bundle on it. I have the gems locally... maybe I could scp my gems to my server. Is it possible? where should I copy them?
timlyo has left #ruby [#ruby]
helpD has quit [Remote host closed the connection]
<jackju> Hi all, I've question about bundler. Please take a look here: http://stackoverflow.com/questions/23224394/gemloaderror-when-trying-to-use-forked-gem
timonv has quit [Remote host closed the connection]
helpD has joined #ruby
<havenwood> cina: install the exact version of the gems from your Gemfile.lock locally?
MacTrash has quit [Quit: This computer has gone to sleep]
<Morkel> Why is a checkbox field not true/false in rails? I have every time “0” and i must then transform it to a boolean
bradhe has joined #ruby
phinfonet has left #ruby [#ruby]
<shevy> cina hmm good question
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> cina you can run a local gemserver
<apeiros> Morkel: because http does not know true/false
<apeiros> it only knows text
<shevy> cina like: gem server --port 1234
<apeiros> and for models, you don't have to transform it
<apeiros> Morkel: also, #rubyonrails
<Morkel> apeiros: Sorry wrong window
<cina> shevy: I can install the gems locally -- but I cannot access my local computer from the server
<shevy> cina or 'gem_server &'
<shevy> hmmmm
<shevy> on the machine where your local gems are installed, you can not run gem server or gem_server ?
sdouglas has joined #ruby
<Morkel> apeiros: i use it with models and any value == true dont work because its a string
Hanmac has joined #ruby
banister_ has joined #ruby
<cina> shevy: I can, but my local machine doesn't have a public IP -- so I cannot use its gem server from the remote server
banister_ has quit [Max SendQ exceeded]
servatoo has joined #ruby
UserNameInvalid has joined #ruby
<apeiros> Morkel: then you set your model up wrongly
UserNameInvalid has quit [Client Quit]
<apeiros> u.active = „0“; u.active # => false
<apeiros> Morkel: above is straight from a rails project I have - transformation properly done by the model.
helpD has quit [Ping timeout: 252 seconds]
<apeiros> (well, minus the automatic quote transformation - silly irc client :-S)
<shevy> whoa
<shevy> .downcase is slower than .downcase!
<timgauthier> whats the difference?
<apeiros> shevy: wonders over wonders, a method which has to do more is slower than one which does less :-p
banister has quit [Ping timeout: 255 seconds]
<apeiros> timgauthier: downcase! is in-place, while downcase returns a copy
mansi has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 265 seconds]
<shevy> oh it just reminds me because I think I once asked folks on #ruby-de
<Morkel> apeiros: i think this works not for virtual attributes
mansi has joined #ruby
<shevy> whether I should use: x = x.gsub or x.gsub!
<benzrf> timgauthier: another way to put it is that downcase is a function while downcase! is a mutator
makerop has quit [Quit: Leaving]
sdouglas has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
<apeiros> Morkel: and a virtual attribute is what? attr_accessor?
mansi has quit [Read error: Connection reset by peer]
<shevy> benzrf what is a mutator
<Morkel> apeiros: yes
<apeiros> Morkel: errr… well… of course not.
nomenkun_ has quit [Remote host closed the connection]
mansi has joined #ruby
<apeiros> Morkel: from where would rails (or AR) possibly know that you mean it to be a boolean?
Hobogrammer has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
nomenkun has joined #ruby
<apeiros> with column based attributes, it knows from the schema.
nomenkun has quit [Remote host closed the connection]
jxf has joined #ruby
mikepack has joined #ruby
<apeiros> and it defines the setter accordingly
freerobby1 has joined #ruby
<shevy> user system total real
<shevy> String#downcase 30.640000 0.270000 30.910000 ( 30.922614)
<shevy> String#downcase! 19.650000 0.030000 19.680000 ( 19.708855)
<Morkel> apeiros: Rails Magic :-). Know when i read this i realize that the last hour was for the trash can
sputnik1_ has joined #ruby
<Morkel> apeiros: thx
<apeiros> attr_accessor :foo is just def foo=(value); @foo = value; end
pietr0 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
<apeiros> Morkel: there's no magic.
<centrx> We call it "code"
mwagner_ has joined #ruby
<apeiros> shevy: memcpy is fast, but not for free.
duggiefr_ has joined #ruby
<shevy> conclusio: on #ruby-de there were some clueless folks!
cj3kim has quit [Remote host closed the connection]
<apeiros> might even be that it doesn't memcpy
<havenwood> apeiros: witches!
* Hanmac puts more quarter coints into his ruby maschine
<Hanmac> coins
<shevy> apeiros hehe it's the first time I reached a point where I need to think about speed in ruby ;(
browndawg has joined #ruby
DrShoggoth has joined #ruby
<apeiros> (second last panel)
<apeiros> shevy: yer doin it wrong! you should think about buying a new computer instead!
<Hanmac> apeiros: i totally like the TerryPratchett Reference!!! ;D
<shevy> that might solve it for me but not when I am at work, surrounded by perl guys who silently scratch their heads why my ruby code is slower than their perl code :(
<apeiros> Hanmac: it has one? =O
mikepack has quit [Ping timeout: 240 seconds]
mansi has quit [Read error: Connection reset by peer]
duggiefresh has quit [Ping timeout: 276 seconds]
SilkFox has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
<Hanmac> apeiros: it is, it was in "The Science of Discworld"
treehug8_ has quit [Ping timeout: 276 seconds]
<havenwood> shevy: Updated to 2.1.1 at work yet? :P
<apeiros> *sob*, another book on my list
<shevy> havenwood hey
<shevy> they have some 1.8.7 there, and a 1.9.3
<shevy> debian old school
<havenwood> so that'd be why it's slower :P
<shevy> they will upgrade to 2.1.1 in about 10 years I estimate
olivier_bK has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 264 seconds]
<havenwood> by then they'll be using perl11
<apeiros> havenwood: I'm sooo looking forward to upgrading our apps to 2.1.1 - it's so sad that the largest still runs on ruby1.9.3-p0 :-S
deric_skibotn has joined #ruby
<Hanmac> apeiros: another good quote " With magic, you can turn a frog into a prince. With science, you can turn a frog into a Ph.D and you still have the frog you started with. "
<shevy> havenwood I was angry, the server where the databases is has ruby 1.9.3 but the server that serves all web-requests has ruby 1.8.7
maletor has joined #ruby
xargoon has quit [Ping timeout: 276 seconds]
MatthewsFace has joined #ruby
<shevy> they don't have much consistency, it's more like a clusterfuck than a "cluster server for high throughput computing"
<havenwood> shevy: they're just keeping Ruby in the stone ages so Perl has something on it!
aspires has joined #ruby
cina has quit [Ping timeout: 255 seconds]
<shevy> havenwood even if perl6 would come out, they will never switch
<workmad3> Hanmac: I quite like the pratchettism - 'When you start trying to find out what makes a cat live, you start by taking the cat apart... this frequently results in a dead cat'
<shevy> evolution can run backwards in time, I have seen it at work
<shevy> workmad3 lol
<shevy> the orang-utan librarian was the coolest
<workmad3> Hanmac: although I see that 'Give a man a fire, he'll be warm for an hour. Set a man on fire and he'll be warm for the rest of his life' is doing the rounds atm :)
metamaterial has joined #ruby
<shevy> and the great plan to target dragon's balls only to lateron find out that it was a female dragon
maletor_ has joined #ruby
<havenwood> Give a man a fish and feed him for a day. Don’t teach a man to fish…and feed yourself. He’s a grown man. And fishing’s not that hard.
<shevy> havenwood hahaha
vlad_starkov has joined #ruby
<shevy> but it is true! fishing is not so hard
cina has joined #ruby
<Hanmac> workmad3: about the cat: or the club of new beginning gots a new member
GaryOak_ has joined #ruby
<workmad3> havenwood: give a man a fish, feed him for a day. Feed a man to fish...
<workmad3> just need to figure out an ending
<benzrf> solve all of his problems!
<centrx> Set a man on fire and he is warm for the rest of his life
<benzrf> *get rid of all of his problems
maletor_ has quit [Read error: Connection reset by peer]
<shevy> what would you guys use
<shevy> {:a => 1, :b => 2}.fetch(:c, 0)
<shevy> vs
<shevy> {:a => 1, :b => 2}[:c] || 0
jason___ has joined #ruby
<centrx> { a: 1, b: 2 }
<workmad3> shevy: somewhat depends
Alina-malina has quit [Ping timeout: 265 seconds]
<benzrf> shevy: do u want to be able to store nils or falses
<shevy> centrx you are out!
noop has joined #ruby
<workmad3> shevy: if someone sets :c explicitly to nil, should they get back nil or 0?
<shevy> benzrf well I think so far I only used [] all the time, never .fetch but also barely ever [] followed by || 0
<shevy> workmad3 hmm
xargoon has joined #ruby
<workmad3> >> {a: 1, b: 2, c: nil}[:c] || 0
<eval-in__> workmad3 => 0 (https://eval.in/139588)
<workmad3> >> {a: 1, b: 2, c: nil}.fetch(:c, 0)
<eval-in__> workmad3 => nil (https://eval.in/139589)
<shevy> that kinda sucks
djbkd has joined #ruby
<Hanmac> workmad3: "The Science of Discworld II: The Globe" => "If you gave a man a fat woman, he'd just have a fat woman for a day, but if you helped a man become very important because he knew the secret of buffaloes and fish, he could get himself as many fat women as he wanted. "
nvrch has quit [Quit: nvrch]
<shevy> why would he want more than one fat woman
maletor has quit [Ping timeout: 240 seconds]
maletor_ has joined #ruby
<workmad3> Hanmac: '"If you gave a man a fat woman,' <-- this part implies that you're going to jail for slave trafficking...
<havenwood> is just :c a 0? any rhyme or reason to the defaults? or just a one to one arbitrary mapping?
<Hanmac> workmad3: you need to read the book to get the context
cpruitt has joined #ruby
s2013_ has joined #ruby
<havenwood> Hanmac: i so need to read discworld series
<workmad3> Hanmac: I've got it on the shelf downstairs... just haven't read it for a while :)
centrx has quit [Quit: All this computer hacking is making me thirsty]
<benzrf> havenwood: god damn right you do
<Hanmac> workmad3: did you read the Science books too?
<benzrf> discworld is maziing
<shevy> havenwood I only wanted to compare .fetch vs. [] || mostly
locriani has joined #ruby
<benzrf> *mazing
<workmad3> Hanmac: 1, 2 and 3, not 4 (yet)
<shevy> but I kinda love [] on hashes
<Hanmac> i have book 4 two times (de/en) but not read yet
<workmad3> Hanmac: and unlike my wife, I read both the science bits and the story bits :)
<shevy> .fetch is just in some different part of my brain, rather inaccessible
<benzrf> could you say that
<benzrf> you cant fetch it?
<benzrf> (⌐■_■)
bradhe has quit [Remote host closed the connection]
<workmad3> benzrf: bad... this is rimshot-free tuesday, dontchaknow?
goleldar has joined #ruby
<benzrf> naah.
<havenwood> shevy: i was just thinking if there were known rules to the defaults you could set them in Hash.new
obs has quit [Remote host closed the connection]
* workmad3 starts the rimshot-free-tuesdays campaign
kayloos has joined #ruby
<Hanmac> workmad3: i likes the Mono-Inland with the God of Evolution ;P (the plants are crazy ;P )
charliesome has joined #ruby
crzrcn has quit [Quit: Leaving.]
* lagweezle reads workmad3's comment and is reminded yet again that his mind is a dangerous place.
AMcP has joined #ruby
<benzrf> workmad3: dont be absurd
<benzrf> rimshots are the best part of irc
<benzrf> another favorite of mine:
Guest10374 has quit [Quit: Guest10374]
Xeago has joined #ruby
<benzrf> 2 drums & a cymbal fall off a cliff
<benzrf> *rimshot*
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
s2013 has quit [Ping timeout: 276 seconds]
<Hanmac> shevy "1. All fungi are edible. 2. Some fungi are not edible more than once."
simono has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<workmad3> benzrf: that right there is why we need a day dedicated to no rimshots...
cina has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 240 seconds]
ephemerian has quit [Quit: Leaving.]
<Hanmac> workmad3: Rincewind is one of my favorit characters ... bad that he wasnt so good in the movies ...
twiceaday has joined #ruby
<benzrf> idk
<benzrf> i dont like rincewind that much
<benzrf> i enjoy ridcully & death more
<workmad3> similar... I never particularly liked the rincewind-centric books, much preferred guards, witches, etc.
kayloos has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
simono has quit [Client Quit]
<havenwood> >> hash = Hash.new { |_, k| 0 if k.is_a? Symbol }.merge({a: 0, b: 1}); [hash[:c], hash['other']]
<eval-in__> havenwood => [0, nil] (https://eval.in/139594)
<havenwood> shevy: meant like that ^
sigurding has quit [Read error: Connection reset by peer]
<shevy> hmm
RaCx has joined #ruby
<havenwood> shevy: (if there is logic to it not just arbitrary mappings)
<Hanmac> workmad3: i want a movie from "Last Hero" and from the Tiffany-series
Alina-malina has joined #ruby
rippa has joined #ruby
moritzs has joined #ruby
twiceday has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
timonv has joined #ruby
sigurding has joined #ruby
<benzrf> the last hero was p neat
ablemike has joined #ruby
<havenwood> >> hash = Hash.new { |_, k| case k; when :a..:c then 0; when :d..:f; 1; else :ok; end }.merge({a: 0, b: 1}); [hash[:c], hash['other']]
<eval-in__> havenwood => [0, :ok] (https://eval.in/139595)
cina has joined #ruby
<Hanmac> benzrf: " I commend my soul to any god that can find it. " ;P
h0lyalg0rithm has joined #ruby
pwh has quit []
<ablemike> does anyone know how to do a schema dump from datamapper?
timonv_ has joined #ruby
fgo has joined #ruby
mikecmpbll has quit [Read error: Operation timed out]
SilkFox has joined #ruby
SvenOostenbrink has quit [Read error: Connection reset by peer]
SvenOostenbrink has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 252 seconds]
h0lyalg0rithm has quit [Client Quit]
AMcP has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
ponga has quit [Quit: Leaving :)]
wallerdev has joined #ruby
ablemike has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
akoz has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
mark_locklear has joined #ruby
roolo has quit [Quit: Leaving...]
yekta has joined #ruby
t3ch has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
<t3ch> hello all, what can i do about that error: undefined method `name' for "aaronh-chronic":String
<t3ch> i have upgrade system and now i get that error
supermarin has joined #ruby
cj3kim has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
<apeiros> t3ch: since String never responded to .name, something obviously now returns a string which before did not
xcv_ has joined #ruby
canton7-mac has quit [Remote host closed the connection]
<apeiros> but you have the code. so take a look at what you're calling .name on, and check the docs of whatever you upgraded for differences between your old and current version.
s2013_ has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
rokob has joined #ruby
catphish has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
banister has joined #ruby
mcrmfc has quit [Quit: mcrmfc]
xcv has quit [Ping timeout: 240 seconds]
supermarin has quit [Ping timeout: 240 seconds]
<shevy> t3ch this means you try to invoke a method on an object that does not have it
Xeago has joined #ruby
<t3ch> ya i dont have the code.. :) maybe bether i install old version of ruby? :)
mwagner_ is now known as wagster
<apeiros> maybe you update that thing you have too…
SilkFox has quit [Read error: Operation timed out]
akoz has left #ruby ["Leaving"]
pel_daniel has joined #ruby
<shevy> t3ch that's bad if you dont have the code
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
<shevy> t3ch but sure you can try to use an older ruby versions
<apeiros> of course he has the code
<apeiros> otherwise he couldn't run it :-)
moritzs has joined #ruby
<shevy> but he said he does not have the code :(
Lightsword has quit [Ping timeout: 252 seconds]
<t3ch> ya but i ddint write that ruby.. dont get all thous files here :) it looks like it is compiled :D cand find index and nothing
<shevy> t3ch are you absolutely absolutely absolutely sure you "do not have the code"
cina has quit [Quit: leaving]
<shevy> huh compiled ruby code
<t3ch> :)
<shevy> now you have some fancy stuff going on there
cina has joined #ruby
<shevy> slowly I am inclined to believe apeiros
<shevy> t3ch you must have the code
ehc has quit [Quit: ehc]
SilkFox has joined #ruby
<apeiros> shevy: it doesn't matter
<shevy> his life depends on it!
<apeiros> as he says, it's not his. he won't patch it himself.
poikon_ has quit []
<shevy> it's probably awful code anyway
snath has joined #ruby
tvw has quit []
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toastynerd has joined #ruby
chrisja has joined #ruby
<shevy> hmmm
blackavr has joined #ruby
<shevy> can prawn, that ruby-pdf thingy, convert .png into .pdf ?
failshel_ has joined #ruby
Lightsword has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
papercode has joined #ruby
<Hanmac> workmad3: "Voodoo is a very interesting religion for the whole family, even those members of it who are dead. "
alexherbo2 has joined #ruby
alex88 has quit [Quit: Leaving...]
<benzrf> welp i did a dumb thing by accident >.<
<workmad3> Hanmac: :D
elaptics is now known as elaptics`away
mikecmpbll has joined #ruby
bradhe_ has joined #ruby
rmorello has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
failshell has quit [Ping timeout: 240 seconds]
MattStratton has joined #ruby
<t3ch> anyone know from this out: http://50.57.88.186/ what to do
<cina> shevy: in case you might be interested, I eventually used proxylocal.com to serve my local gem server. problem solved!
<t3ch> this: aaronh-chronic is some library and i have updated it but dont help
predator117 has joined #ruby
Xeago has quit [Remote host closed the connection]
<shevy> cina \o/
benzrf has quit [Killed (idoru (Spam is off topic on freenode.))]
andy___ has quit [Remote host closed the connection]
andy___ has joined #ruby
terrell_t has joined #ruby
<timgauthier> shevy \o/
<timgauthier> \o\
<timgauthier> <o>
zigomir has quit [Remote host closed the connection]
crzrcn has joined #ruby
<timgauthier> ./o/
zigomir has joined #ruby
zigomir has quit [Remote host closed the connection]
BSaboia has joined #ruby
klaut has quit [Remote host closed the connection]
<shevy> timgauthier you remind me of a cheerleader
SilkFox has quit [Ping timeout: 265 seconds]
<timgauthier> thanks
nanoyak has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<shevy> without any clothes on
kyle_ is now known as kyle__
RaCx has quit [Quit: Computer has gone to sleep.]
<timgauthier> I remind you of a vapid overly enthusiastic and likely mentally challenged stereo type
<timgauthier> actually thats pretty acurate!
<timgauthier> :D
<shevy> :D
<timgauthier> i just my clothes back on
anaeem1 has joined #ruby
<timgauthier> it was cold
<shevy> we succeed in making this channel dumb
<timgauthier> hah this channel already was dumb
<shevy> haha
<timgauthier> all the smart people use node
<shevy> you should have seen the old days of #ruby-lang
terrellt has quit [Ping timeout: 276 seconds]
<shevy> zenspider and tsume discussing stuff until zenspider banned him
<timgauthier> i'm glad i didn't
<timgauthier> never discuss with an admin
<shevy> zenspider and RubyPanther discussing stuff until zenspider banned him
<timgauthier> haha
nanoyak has quit [Client Quit]
<timgauthier> zoo thats how #ruby got borned?
<shevy> hmm no...
<shevy> I forgot which channel existed first
andy___ has quit [Ping timeout: 264 seconds]
<timgauthier> your mom existed first :|
<shevy> but people kinda have a point in that language-name == channel-name
RaCx has joined #ruby
<shevy> ##perl ##python ##php
<shevy> ##ruby-lang
<shevy> OH WAIT
<shevy> timgauthier I cloned myself before
treehug8_ has joined #ruby
ehc has joined #ruby
treehug8_ has quit [Max SendQ exceeded]
<havenwood> shevy: so as not to get confused with an *actual* ruby
<timgauthier> lol
treehug88 has quit [Ping timeout: 276 seconds]
<havenwood> i've come here to discuss gemstones
<timgauthier> WE TALKING ABOUT GEOLOGY!
<havenwood> Maglev!
treehug88 has joined #ruby
<timgauthier> huh?
<shevy> the train!
<havenwood> timgauthier: http://maglev.gemstone.com
nanoyak has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
peret has joined #ruby
<havenwood> Ruby running on GemStone VM
<timgauthier> i'm experiencing the difference between mac and windows right now as i'm running both on my desk, my laptop is over on a shoebox and i'm using the keyboard, and my pc monitor is on the other side and i'm using just am ouse
AlexRussia has joined #ruby
failshell has joined #ruby
<timgauthier> I can run windows with just a mouse, and i can run a mac with just a keyboard.
<timgauthier> obviously mac is better
<timgauthier> gemstone VM is?
anaeem1 has quit [Ping timeout: 240 seconds]
cina has quit [Quit: leaving]
jason___ has quit [Remote host closed the connection]
<peret> timgauthier: Nothing is obvious these days
<timgauthier> correct
<havenwood> timgauthier: a fancy proprietary VM that can store terabytes of live code
nanoyak has quit [Client Quit]
jason___ has joined #ruby
<timgauthier> ah
<shevy> MagLev 1.0.0 was released on October 31, 2011.
<shevy> 3 years
<timgauthier> that... sounds scary
<havenwood> timgauthier: nosql store built in
<timgauthier> what is nosql?
<timgauthier> like, i know its sql
<shevy> timgauthier you dont need a mouse for a mac?
<timgauthier> correct
<havenwood> timgauthier: persisting things in a non-relational way
<timgauthier> its a nice addition, but you can tab and keyboard command most of the OS
nanoyak has joined #ruby
Iniesta8 has joined #ruby
<timgauthier> so ... what? how the heck lol
<timgauthier> so every single record is in a single column/thingy
<timgauthier> ?
<havenwood> timgauthier: but it lets you do stuff like persist your app to the shared cache, fix a bug, then push the app back into production
glanzi has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
nowthatsamatt has joined #ruby
<timgauthier> ah, so like a temp production server environment for when you can't freeze the data in your app?
pwh has joined #ruby
failshel_ has quit [Ping timeout: 276 seconds]
akosednar has joined #ruby
<timgauthier> so someone took the phrase "Fuck it, we'll do it live" and put it into ruby dev?
<havenwood> timgauthier: public development seems to have slowed after the Maglev team got bought by VMWare (or something)
<shevy> they buy competition away
jason___ has quit [Ping timeout: 252 seconds]
anaeem1_ has joined #ruby
<timgauthier> ugh, what is with everyone being willing to sell out? :|
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> all the good apps i've enjoyed getting bought up, thinking "OH MAN THIS IS A GREAT OPPORTUNITY FOR US TO GROW WITH A COMPANY THAT UNDERSTANDS US. 3 weeks later, "shut down".
<timgauthier> so many dumb people
<havenwood> topaz development seems to have slowed as well: https://github.com/topazproject/topaz
<shevy> timgauthier money
browndawg has left #ruby [#ruby]
zigomir has joined #ruby
<havenwood> mruby is kicking ass: https://github.com/mruby/mruby
terrell_t has quit [Remote host closed the connection]
nowthatsamatt has quit [Client Quit]
cj3kim has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
cj3kim has joined #ruby
roolo has joined #ruby
<timgauthier> cool
crystal77 has quit [Quit: Computer has gone to sleep.]
Lewix has joined #ruby
<Hanmac> workmad3: witch + drugs = science: https://i.chzbgr.com/maxW500/8154518272/h6307688F/
supermarin has joined #ruby
<Eiam> havenwood: I don't understand the point of Topaz
<Eiam> why write Ruby, in Python?
<timgauthier> ok, video game time
<Eiam> even more amusing, to write Ruby in Python for *performance* ??
supermarin has quit [Client Quit]
supermarin has joined #ruby
<Hanmac> Eiam because long time ago, someone hasnt something better todo
ktosiek has joined #ruby
abra has quit [Ping timeout: 252 seconds]
<havenwood> Eiam: to show that interpreted dynamic languages aren't inherently slow when design is performant
dkamioka has joined #ruby
terrell_t has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
terrellt has quit [Read error: Connection reset by peer]
<shevy> they are slow!
<havenwood> Eiam: i think they did prove that a statically compiled subset of python can indeed make for blazing fast ruby implementation
<shevy> C just wasn't cool enough to convince people that it is worth to write everything in it
abra has joined #ruby
<havenwood> Eiam: it reminds me very much of Truffle/Graal for JRuby, which hopefully has a bright future ;)
timonv_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
RaCx has joined #ruby
roolo has quit [Quit: Leaving...]
supermarin has quit [Ping timeout: 252 seconds]
<havenwood> i like the looks of this red/black tree algo benchmark: http://www.infoq.com/resource/news/2013/09/jruby-9k/en/resources/jruby-perf-chart.png
mjsmith2_ has joined #ruby
cj3kim_ has joined #ruby
helpD has joined #ruby
carraroj has joined #ruby
<havenwood> i could handle my Ruby running on Graal VM faster than a C-ext version on MRI :P
sigurding has quit [Quit: sigurding]
SCommette has quit [Quit: SCommette]
IceDragon has quit [Ping timeout: 240 seconds]
<havenwood> so many VMs these days
<banister> havenwood what's graal
codenapper has quit [Quit: codenapper]
mjsmith2 has quit [Ping timeout: 240 seconds]
Azulinho has quit [Ping timeout: 252 seconds]
krz has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
cj3kim_ has quit [Read error: Connection reset by peer]
s2013 has quit [Ping timeout: 255 seconds]
danshultz has quit [Remote host closed the connection]
<havenwood> banister: extensible compiler vm
paulfm has quit []
maroloccio has quit [Quit: WeeChat 0.4.3]
cj3kim_ has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
danshultz has joined #ruby
endash has joined #ruby
mehlah has quit [Quit: Leaving...]
IceDragon has joined #ruby
<havenwood> banister: chrisseaton is behind the JRuby Truffle stuff for Graal: http://www.chrisseaton.com/rubytruffle/
RaCx has quit [Quit: Computer has gone to sleep.]
happytux has quit [Read error: Connection reset by peer]
rmorello is now known as rmorello|921
bradhe_ has quit [Remote host closed the connection]
SilkFox has joined #ruby
<havenwood> banister: i've heard there's a bunch of other languages in the works, but i think JRuby is furthest along
<banister> havenwood cool
bradhe has joined #ruby
doodlehaus has quit [Remote host closed the connection]
yfeldblum has joined #ruby
happytux has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
freerobby1 has quit [Read error: Connection reset by peer]
ce_afk is now known as cescalante
dpaulus has quit [Ping timeout: 252 seconds]
happytux has quit [Client Quit]
freerobby has joined #ruby
SilkFox has quit [Read error: Operation timed out]
yekta has quit [Quit: yekta]
danshultz has quit [Ping timeout: 276 seconds]
fgo has joined #ruby
dumdedum has quit [Quit: foo]
kirun has joined #ruby
dpaulus has joined #ruby
rhys_ has joined #ruby
RaCx has joined #ruby
rdark has quit [Quit: leaving]
rhys has quit [Ping timeout: 258 seconds]
dkamioka has quit [Remote host closed the connection]
paulfm has joined #ruby
garndt has joined #ruby
kavinder has quit [Remote host closed the connection]
andrewlio has quit [Remote host closed the connection]
cj3kim_ has quit [Read error: Connection reset by peer]
donnoc has joined #ruby
Shidash has joined #ruby
cj3kim has joined #ruby
sdwrage has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
ffranz has quit [Quit: Leaving]
muz0xd has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
buff3r has joined #ruby
buff3r has left #ruby [#ruby]
buff3r has joined #ruby
<buff3r> why do i need the Gemfile in the current working directory when running a script that depends on it?
ffranz has joined #ruby
ikaros has quit [Quit: Ex-Chat]
crzrcn has quit [Quit: Leaving.]
<shevy> havenwood can you show me some code of you that you think you documented fairly well? I want to get some ideas for my own code how to improve the docu
terrell_t has quit [Remote host closed the connection]
andy___ has joined #ruby
Lightsword has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
Valesk has joined #ruby
sepp2k has quit [Quit: Leaving.]
SCommette has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
terrellt has joined #ruby
m8 has joined #ruby
weaksauce has quit [Quit: Linkinus - http://linkinus.com]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 252 seconds]
dkamioka has joined #ruby
weaksauce has joined #ruby
jason___ has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
terrellt has quit [Remote host closed the connection]
cj3kim has joined #ruby
Lightsword has joined #ruby
jamto11_ has joined #ruby
testcore has joined #ruby
marr has quit [Read error: Operation timed out]
cj3kim_ has joined #ruby
<Hanmac> shevy an canadian pizza cake: https://i.chzbgr.com/maxW500/8154181632/hA8FBEAA5/
sambao21 has quit [Quit: Computer has gone to sleep.]
freezey has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 276 seconds]
cj3kim has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
<havenwood> shevy: here's a pretty well documented (but horribly in need of repair) gem of mine: https://github.com/havenwood/persist/blob/master/lib/persist/persist.rb
supermarin has joined #ruby
jamto11_ has quit [Ping timeout: 240 seconds]
jespada has quit [Ping timeout: 240 seconds]
<shevy> thanks
RaCx has quit [Client Quit]
<havenwood> shevy: i'm terrible at documentation (because i don't like it unless it actually needs explaining, for better or worse)
<shevy> well that is about +300% more than what I document usually haha
terrellt has joined #ruby
sambao21 has joined #ruby
mercwithamouth has joined #ruby
<havenwood> shevy: ^ is just me following TomDoc (i don't usually)
barratt has quit [Ping timeout: 255 seconds]
<shevy> and every method except for initialize_db is documented, I think I have classes with like 12 methods but only 2 of them documented
AlSquirrel has quit [Quit: This computer has gone to sleep]
altatistic has joined #ruby
vlad_starkov has quit []
<lagweezle> havenwood: TomDoc is what?
<havenwood> lagweezle: a doc spec: http://tomdoc.org/
timonv has joined #ruby
failshell has quit []
terrellt has quit [Read error: Connection reset by peer]
rixius has joined #ruby
sdouglas has joined #ruby
djbkd has quit [Remote host closed the connection]
KevinSjoberg has quit [Ping timeout: 252 seconds]
cj3kim_ has quit [Remote host closed the connection]
RaCx has joined #ruby
<certainty> shevy: i usually start by writing an essay about some topic of my choice. Then I take some code and sprinkle the essay text with snippets. Voila documentation upside down
<certainty> best served hot
senayar has quit [Remote host closed the connection]
FxK has quit [Ping timeout: 264 seconds]
<certainty> then print the thing and stick some pictures of unicorns and flowers on it. Draw a rainbow in the bottom left corner using a pencil
supermarin has quit [Ping timeout: 264 seconds]
<havenwood> shevy: documentation is a sea of grey whose mists occlude the one true code
<certainty> rainbows in shades of grey are a greyed thing
KevinSjoberg has joined #ruby
mikepack has joined #ruby
pwh has quit []
crystal77 has joined #ruby
klaut has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
papercode has joined #ruby
Es0teric has joined #ruby
f0ster has joined #ruby
afex has joined #ruby
djbkd has joined #ruby
centrx has joined #ruby
paulfm has quit []
centrx has quit [Client Quit]
terrellt has joined #ruby
danijoo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
jespada has joined #ruby
x1337807x has joined #ruby
wald0 has quit [Quit: Lost terminal]
mikepack has quit [Ping timeout: 252 seconds]
shinobi_one has joined #ruby
sdouglas has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
paulfm has joined #ruby
<havenwood> shevy: this is how i feel about documentation: https://gist.github.com/havenwood/3562c6f1acf0203c7dbc
<havenwood> shevy: (you need syntax highlighting to find the code.)
carraroj has quit [Quit: Konversation terminated!]
dkamioka has joined #ruby
<shevy> havenwood lol
sambao21 has joined #ruby
nari has quit [Ping timeout: 265 seconds]
<altatistic> havenwood: That's pretty good
mnemon has quit [Quit: No Ping reply in 180 seconds.]
mnemon has joined #ruby
sparrovv has joined #ruby
nopolitica has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
crzrcn has joined #ruby
<bean> hahaha
Hobogrammer has joined #ruby
sdouglas has joined #ruby
olivier_bK has joined #ruby
kobain_ has joined #ruby
s2013 has joined #ruby
s3ri0us has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
lw has joined #ruby
kukyakya has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
kobain has quit [Ping timeout: 252 seconds]
<shevy> havenwood, when you start docu like: "# Public: Fetch a list of persistent store root tables."
<shevy> does Public show up somewhere?
yfeldblum has quit [Remote host closed the connection]
<shevy> as in some collection of public vs. private methods
djbkd has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
yfeldblum has joined #ruby
efeldhusen has quit [Quit: Leaving]
djbkd has joined #ruby
Aaaal has joined #ruby
<havenwood> shevy: maybe if you used yard-tomdoc or something, it'd prolly list em separately - no use to me
<shevy> ok
arietis has joined #ruby
braincrash has joined #ruby
sdouglas has quit [Remote host closed the connection]
crystal77 has joined #ruby
nopolitica has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
moritzs has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
Iniesta8 has quit [Quit: Textual IRC Client: www.textualapp.com]
Aaaal has quit [Client Quit]
lw has quit [Quit: s]
donnoc has quit [Ping timeout: 252 seconds]
decoponio has quit [Quit: Leaving...]
metadave has joined #ruby
SonicX has joined #ruby
jprovazn has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mark_locklear has quit [Ping timeout: 265 seconds]
glanzi has joined #ruby
ktosiek has quit [Read error: Operation timed out]
kayloos has joined #ruby
Iniesta8 has joined #ruby
Azulinho has joined #ruby
armstrjare has joined #ruby
armstrjare has quit [Max SendQ exceeded]
timonv has joined #ruby
buff3r has quit [Quit: leaving]
Gooder has joined #ruby
poikon_ has joined #ruby
Su7_ is now known as Su7
Su7 has quit []
marianogg9 has joined #ruby
<marianogg9> hi guys
sdwrage has quit [Quit: This computer has gone to sleep]
poikon has quit [Ping timeout: 240 seconds]
reset has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
<marianogg9> Anyone?? "ERROR: While executing gem ... (Gem::ImpossibleDependenciesError) sabisu-0.1.1 requires sinatra (~> 1.4.4) but it conflicted: Activated sinatra-1.4.5 instead of (~> 1.3.0) via: sinatra-contrib-1.3.1, sabisu-0.1.1"
Su7 has joined #ruby
<marianogg9> I'm trying to install sabisu gem
<marianogg9> gem -v : 2.1.9
mikecmpbll has quit [Quit: i've nodded off.]
<shevy> hmmm
<shevy> %[] is the same as %w() right?
GlenK has joined #ruby
<shevy> oh no
<shevy> I misread
<shevy> thought both had w
<yxhuvud> no, %w creates an array
<shevy> in ruby one really needs to have sharp eyes :-)
RaCx has joined #ruby
<GlenK> hi hi
mikecmpbll has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
Marty- has joined #ruby
endash has quit [Read error: Connection reset by peer]
fgo has joined #ruby
endash has joined #ruby
p8952 has joined #ruby
sdouglas has joined #ruby
kitak has quit [Remote host closed the connection]
rezzack has joined #ruby
<crome> but %w(), %w[] and %w{} are the same :D
<Hanmac> shevy: i am now trolling:
<Hanmac> >> %w# A # # B
<eval-in__> Hanmac => ["A"] (https://eval.in/139627)
<shevy> no that is not trolling
<shevy> that is simply writing ugly code
<GlenK> ha
<GlenK> I like this channel
<shevy> but you are excuse, people who have to write a lot of C++ have a different sense of beauty
<shevy> *excused
<shevy> GlenK well it is ugly! look at it!!!
<shevy> %w# A # # B
sepp2k has joined #ruby
<shevy> it looks like someone embedded comments in code
<shevy> or code in comments
<Hanmac> hey! i write C code too ... i can even do more ugly if i want it
Xeago has quit [Remote host closed the connection]
<shevy> hah actually there is a comment
<shevy> you tricked me
Milly_Bays has joined #ruby
<shevy> C does not have those awful template stuff
fgo has quit [Ping timeout: 276 seconds]
<shevy> I dont even remember the syntax
<shevy> it is that ugly
doodlehaus has joined #ruby
<shevy> int bla<template clusterfuck::ble_wtf>bla_more_wtf
<GlenK> shevy: no, UI agree. I like this channel. hell, I love this language. I wish some of you fuckers could have an opinion one way or the other on J, but hey, I'd like to be king of the world too. and that's not going to happen
<shevy> GlenK Java?
<shevy> it's too verbose man
<GlenK> Argh. how did I do that. I agree I mean
<shevy> someone once wrote a game in java
<GlenK> shevy: haha, no you jerk. J
<Hanmac> shevy: there is an interesting part about that, bacause you cant use #{} for good reason
<Hanmac> >> %# A # # B
<eval-in__> Hanmac => " A " (https://eval.in/139629)
<shevy> it reached about 500.000 lines of code
<shevy> he then said he stopped writing that game
<shevy> and wrote a last blog entry about the cost of lines of code, and verbosity of languages
<workmad3> GlenK: never come across J
<shevy> I did not save the link though so I forgot who it was :(
Lewix has quit [Ping timeout: 276 seconds]
<workmad3> GlenK: as such, it probably sucks ;) <-- one opinion for you
<GlenK> hahaha
<shevy> nobody heard of J
tjsousa has quit [Ping timeout: 252 seconds]
<shevy> Glenk where did you hear of J?
<GlenK> workmad3: apl and J and K and madness is apparently the jerkaholic junk wall street goes with
<workmad3> shevy: I suspect in some hipster-coder channel
<workmad3> GlenK: I've heard of APL
rudisimo has quit []
yekta has joined #ruby
<Hanmac> shevy i recently added a new template function to my children ... like (const T&) creates a new Object is copy constructor, (T*) wraps into ruby object, and (const T*) does also wraps into ruby object but returns a frozen ruby object
<GlenK> where did I hear of J? dunno, but what little I've done with it makes it awesome, as in every operation works on arrays and stuff
IcyDragon has joined #ruby
ta has quit [Quit: Leaving...]
<workmad3> GlenK: I quite like pulling snippets of that out to scare people... I only grab them from wikipedia though, my kb lacks the thousands of UTF8 keys required to make APL feasible...
kaspergrubbe has joined #ruby
<GlenK> yeah, hipster, blah blah blah, have a seat over there jerk.
<workmad3> GlenK: ;)
thumpba has quit []
akemrir has joined #ruby
<workmad3> GlenK: I could go hipster now - I hated J before it was mainstream...
<GlenK> ha
<workmad3> GlenK: see my previous 'opinion' ;)
<Lemur> Lisp :D
<j416> what's a better way to check if a value is true or false (TrueClass, FalseClass), than: [true, false].include?(value)
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lemur> value
IceDragon has quit [Ping timeout: 255 seconds]
<GlenK> hahahaha
<Lemur> implied returns
<j416> Lemur: no
<Lemur> if value
s2013 has joined #ruby
<j416> no
moritzs has joined #ruby
<Hanmac> j416: dont test for true and false, just use !! ;P
<j416> heh
<j416> doesn't solve problem
<GlenK> scheme is awsome just because of those mit structure and interpretation of computer programs guys.
erikruthven has joined #ruby
<j416> I want to explicitly check for true or false
<j416> not nil or :blergh or anything
tonni has joined #ruby
donnoc has joined #ruby
<Lemur> Then you're making an odd problem for yourself for really not much of a good reason
<workmad3> j416: class Object; def is_bool?; false; end; end; class TrueClass; def is_bool?; true; end; end; class FalseClass; def is_bool?; true; end; end;
<Lemur> value.is_a? Boolean
<j416> Lemur: you don't even know my use case..
<Lemur> Don't have to
<GlenK> eh, ruby I love, more than python, way more than C. but J, I see it being the math language, and for good reason because so many operations work on huge data structures, and yeah blah blah blah what do I know I'll go take a time out in the corner over here.
<Lemur> You're doing something wrong if you need to explicitly check types like that in a dynamic language.
<workmad3> >> class Object; def is_bool?; false; end; end; class TrueClass; def is_bool?; true; end; end; class FalseClass; def is_bool?; true; end; end; "#{"".is_bool?} #{false.is_bool?} #{true.is_bool?}"
<eval-in__> workmad3 => "false true true" (https://eval.in/139638)
SilkFox has joined #ruby
<workmad3> GlenK: kinda like R is the stats language?
<j416> I'm making a method that accepts either a boolean, or a pattern match, if it's a boolean I'm doing one thing, if it's a string I'll do another thing
felipec has joined #ruby
<workmad3> GlenK: I'll put it on my todo list to check out :)
<Lemur> >> true.is_a? Boolean
<eval-in__> Lemur => uninitialized constant Boolean (NameError) ... (https://eval.in/139640)
<j416> it fits in this particular case
<felipec> how can I turn "foo bar roo" into ["foo", "bar", " ", "roo"] ?
thumpba has joined #ruby
<GlenK> R is way slow, and you have to save everything in memory, and ok, R. But R has limitations. and again, I'm a neophyte, so what do I know.
sepp2k1 has joined #ruby
<j416> >> 'foo bar roo'.split(/ /)
<eval-in__> j416 => ["foo", "bar", "", "roo"] (https://eval.in/139643)
<j416> felipec: ^
<Hanmac> workmad3: isnt that better?
<Hanmac> >> module Boolean;end; true.extend(Boolean);false.extend(Boolean); ["".is_a?(Boolean), false.is_a?(Boolean),true.is_a?(Boolean)]
<eval-in__> Hanmac => [false, true, true] (https://eval.in/139644)
<GlenK> workmad3: ok, so I've been trying to understand this programming paradigm for a while now: http://nsl.com/papers/origins.htm
<felipec> j416: thanks
metamaterial has quit [Quit: Leaving.]
sepp2k has quit [Ping timeout: 240 seconds]
papercode has quit [Quit: WeeChat 0.4.3]
mercwithamouth has quit [Ping timeout: 252 seconds]
<GlenK> and I sorta get it. if you have to program in C, then make things read like talking to yourself or whatever. But still, dude is insane, and insanely brilliant, and insane, and gah. I need to kill myself due to how inadequate that jerk stuff makes me feel.
crystal77 has quit [Quit: Computer has gone to sleep.]
papercode has joined #ruby
<havenwood> GlenK: J is one of the langs they're implementing on Graal first.
<havenwood> GlenK: Ruby \o/
metamaterial has joined #ruby
Es0teric has quit [Remote host closed the connection]
crystal77 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<shevy> Hanmac I am saddened to hear your children have now attached templates to them
<Hanmac> shevy: i think about my templates and my macros nearly as my children ... (but i hope i will not have much children as i have macros ;P )
IcyDragon is now known as IceDragon
supermarin has joined #ruby
pika_pika has quit [Read error: Operation timed out]
senayar has joined #ruby
Czupa has quit [Quit: Wychodzi]
Czupa has joined #ruby
<shevy> or as twisted as your macros
havenwood has quit []
<j416> thanks for the input, I'll [true, false].include?(value), seems most readable
duggiefr_ has quit []
mercwithamouth has joined #ruby
metamaterial has quit [Quit: Leaving.]
<shevy> ack
FxK has joined #ruby
<GlenK> Does anyone else struggle with how much what they've learned gets in the way? I mean, C, I wish I could just forget it all.
supermarin has quit [Ping timeout: 240 seconds]
<GlenK> mips assembly, that's no way to do things, unless you have to. I wish I could just forget it all. Gah.
noop has quit [Ping timeout: 252 seconds]
<GlenK> haha, I guess I'm the only jerk here.
<GlenK> fair enough.
<shevy> GlenK dunno, I naturally forgive a lot quickly
senayar has quit [Ping timeout: 265 seconds]
<shevy> erm
<shevy> obviously that should have been "forget"
momomomomo has quit [Quit: momomomomo]
<Hanmac> GlenK: so i heard you like C, do you want so see my macros ? ;P
<shevy> because I never forgive
<GlenK> haha, no!!!! I hate C. sucks that I'm well versed in it
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy> haha
<shevy> but that is good GlenK
metamaterial has joined #ruby
<shevy> you can help improve the ruby-gnome bindings
<GlenK> hell, I'm well versed in fortran. I like that better than C
<shevy> ack
Lightsword has quit [Ping timeout: 252 seconds]
<Hanmac> someone who thinks that he/she understands C, can try to look at THIS: https://github.com/Hanmac/rwx/blob/master/ext/main.hpp#L414-L453
<GlenK> ack nothing
<GlenK> fortran rocks for hpc junk
crystal77 has joined #ruby
SonicX has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
Morkel_ has joined #ruby
lw has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
<GlenK> Hanmac: just let me know where that person lives and I am now motivated to commit murder
kristiandelay has joined #ruby
<Hanmac> xD
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
<GlenK> ha, nah, any language can be shitty if one is shitty at it or purposely tries to obfuscate it or whatever.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
<GlenK> tech man. first class I took, they have you building self modifying code
<GlenK> the hell, everything you learn up to that point, don't do that. then the fuck?
bigkevmcd has quit [Ping timeout: 252 seconds]
<GlenK> gah, I miss those dudes from discrete math an whatnot
kristiandelay is now known as sugignal
sugignal is now known as SubSignal
<GlenK> and the crazy black football player nsa crypto jerk died of a heart attack or something
<GlenK> haha, I better stop talking to myself real soon
<GlenK> sorry sorry
SilkFox has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 240 seconds]
<Hanmac> GlenK: hm yeah i use them to turn macro_attr(Label,wxString) into VALUE _getLabel(VALUE self);{return wrap(_self->GetLabel());} VALUE _setLabel(VALUE self,VALUE val);{rb_check_frozen(self);_self->SetLabel(unwrap<wxString>(val));return val;} thats similar to what attr_accessor does in ruby ;P
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bigkevmcd has joined #ruby
ktosiek has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
GaryOak_ has quit [Remote host closed the connection]
s2013 has joined #ruby
wagster has quit [Quit: Textual IRC Client: www.textualapp.com]
RaCx_ has joined #ruby
cescalante is now known as ce_afk
RaCx has quit [Ping timeout: 240 seconds]
RaCx_ is now known as RaCx
yfeldblum has quit [Remote host closed the connection]
altatistic has quit [Remote host closed the connection]
rokob has quit [Remote host closed the connection]
felipec has quit [Quit: Leaving]
krz has quit [Ping timeout: 264 seconds]
tris has joined #ruby
krz has joined #ruby
<akemrir> hi, I am looking for someone who have experience with webkitgtk. How to start building application with it?
SilkFox has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
Hanmac has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
moritzs has quit [Ping timeout: 265 seconds]
<shevy> akemrir I cant even get it to compile
webgen_ has joined #ruby
<akemrir> shevy: do you try to install some custom gem?
phansch has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
benzrf has joined #ruby
<benzrf> yello
grieg has quit [Read error: Operation timed out]
<benzrf> banister: hey, is there a way for me to leverage whatever it is you use in pry to turn method names into method objects
<benzrf> i.e. when i do '? Foo::Bar#baz'
<banister> benzrf yes
mark_locklear has joined #ruby
<benzrf> sweet, how
webgen_ has quit [Client Quit]
<banister> benzrf pry APIs: Pry::Method.from_str() or from_string, i always forget
<shevy> ./Source/WTF/wtf/ByteSpinLock.h: In member function 'void WTF::ByteSpinLock::lock()':
<shevy> ./Source/WTF/wtf/ByteSpinLock.h:48:13: error: 'yield' is not a member of 'std::this_thread'
<shevy> GNUmakefile:77688: recipe for target 'Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o' failed
<shevy> akemrir nope, just the base one
webgen_ has joined #ruby
Phoenixz has joined #ruby
<benzrf> sweet
<benzrf> thanks man
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
MatthewsFace has quit [Quit: Leaving]
SvenOostenbrink has quit [Read error: Connection reset by peer]
<akemrir> shevy: webkitgtk 2.4.1?
<GlenK> akemrir: will that's some random weird question
pwh has joined #ruby
metamaterial has quit [Remote host closed the connection]
<shevy> akemrir yeah
vpretzel|1339 is now known as vpretzel
<GlenK> gah, lame as I am you're even worse
<shevy> akemrir what are you using?
<shevy> webkitgtk 2.2.x worked
<benzrf> banister: also with ur method_source gem is there a simple-ish way to hook into its file-opening stuff
<akemrir> I`am on arch right now, I have it from package
<benzrf> i wanna use it w/ Quick, but when method sources are in the quick fs it tries to read itself and gets ourobouros'd
<benzrf> i tried it earlier
<benzrf> the process is still idling >_>
<akemrir> GlenK: I want to start with webkitgtk, but I dont know where.
<benzrf> kill -9 doesnt work cuz its IO locked
Guest74539 has quit [Changing host]
Guest74539 has joined #ruby
razrunelord has joined #ruby
Guest74539 is now known as guyz
<razrunelord> Anyone used golang?
MatthewsFace has joined #ruby
<banister> benzrf file-opening stuff?
noop has joined #ruby
<benzrf> erm
<GlenK> and I thought I was weird...
<benzrf> is there a way to intercept it when it looks up the source
<GlenK> ha
<benzrf> so that i can tell it 'no get the source from this string not from File.open'
metamaterial has joined #ruby
webgen__ has joined #ruby
<benzrf> i assume not?
<benzrf> usually isnt an issue :b
lolmaus has quit [Ping timeout: 264 seconds]
SonicX has joined #ruby
<shevy> intercept a method call?
altatistic has joined #ruby
yekta has quit [Quit: yekta]
<shevy> I think you'd have to modify the existing method
senayar has joined #ruby
timgauthier has joined #ruby
<benzrf> hmmmm how evil would it be to override open() itself :-)
<benzrf> so that FS file lookups are internally redirected >:3
<timgauthier> don't tell me how to code
<shevy> timgauthier I tell you when you shall wash
<shevy> timgauthier not today
<shevy> timgauthier also not tomorrow
<timgauthier> lol
<shevy> in fact, you can skip it right away
<atmosx> hello fellow rubbyists
<shevy> think of the bacteria as your friends
<timgauthier> uh
<timgauthier> hi atmosx
<shevy> they cover you in layers of helpful and protective biofilms
marianogg9 has left #ruby [#ruby]
<timgauthier> the bacteria are my only friends shevy
djbkd has quit [Remote host closed the connection]
<atmosx> I think as E. Coli is my friend these days
<timgauthier> you've been doing lots of study for your new jorb there shevy :D
<atmosx> timgauthier: you talk to them?
webgen__ has quit [Remote host closed the connection]
<shevy> timgauthier not quite yet! this is the last week of holiday, shitload of work is coming up soon
webgen_ has quit [Remote host closed the connection]
bbloom has joined #ruby
<shevy> I am heavily procrastinating
webgen has joined #ruby
pel_daniel has quit [Ping timeout: 252 seconds]
<shevy> unlike atmosx
<shevy> who is doing serious rails work
abstrakt has joined #ruby
ce_afk is now known as cescalante
<shevy> so he has no time to procrastinate
<shevy> hmm
<shevy> timgauthier, aren't you also doing rails?
<atmosx> shevy: I'm not doing serious rails work :-( ... I spend all the time I have writing that silly Sinatra sequencer, but I think I'll be done by Saturday
<timgauthier> i'm not doing anything
<timgauthier> shush your mouth
<atmosx> and then I will be able to continue with my rails application which is way mor einteresting
<timgauthier> i have gotten the rails part of middleman working now
yekta has joined #ruby
MattStratton has joined #ruby
<timgauthier> now its figuring out how to show off my work in a way that fits what i had in my head even though i never really fully thought it out
<atmosx> everyone is raving about Go these days
<shevy> atmosx cool!
<shevy> atmosx don't forget to make screenshots
<shevy> why is everyone raving about Go?
webgen_ has joined #ruby
andrewlio has joined #ruby
webgen has quit [Remote host closed the connection]
webgen_ has quit [Remote host closed the connection]
<atmosx> shevy: of the app? I will upload it on Github but it's nothing smart really, just a PoC on how a dna/protein sequencing is done on computers :-)
webgen has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
marr has joined #ruby
jackneill has quit [Remote host closed the connection]
<shevy> http://blog.golang.org/gopher the go mascot
<atmosx> yeah
<shevy> atmosx everything is smart
webgen has quit [Client Quit]
<atmosx> It's fast but it would take a lifetime to write a rails app in go
<shevy> atmosx do you use bioruby for that?
<abstrakt> dunno about "everyone", but I'm sure some people like Go
<atmosx> especially one that handles all the heavy things
<abstrakt> some people don't tho
<atmosx> shevy: yeah, bioruby, sequel
webgen has joined #ruby
<atmosx> and sinatra
mjsmith2_ has quit [Ping timeout: 240 seconds]
<altatistic> atmosx: That sounds like a really cool project
webgen has quit [Client Quit]
<atmosx> abstrakt: I like almost every new language, Go, Rust.. I'll give it ago after JS
<atmosx> I'll give 'go' a go. lol
rmorello|921 is now known as rmorello|hmm
webgen has joined #ruby
diegoviola has joined #ruby
<atmosx> altatistic: ..which one?!
jonno11 has joined #ruby
<altatistic> The dna protein sequncer
<shevy> http://blog.golang.org/gopher <-- I have determined we need a mascot for ruby
webgen has quit [Client Quit]
<allfro> hi all
<altatistic> Or whatever the correct term is
sdouglas has quit [Remote host closed the connection]
<allfro> just wondering… what method do i have to def if i want somethinglike MyObject[] constructor (similar to Hash[]?
<benzrf> allfro: just []
webgen has joined #ruby
<allfro> def []?
<benzrf> on the class, i mean
WishBoy has quit [Ping timeout: 240 seconds]
<benzrf> thats the [] method on the class itself
<apeiros> def self.[](*args); …
yfeldblum has joined #ruby
<benzrf> >> Hash.method(:[])
<eval-in__> benzrf => #<Method: Hash.[]> (https://eval.in/139665)
<atmosx> altatistic: It's not hard really, you compare large strings... The meaning is interesting though. You check virtually if a bacteria can produce insulin for example
<allfro> apeiros: thank you :)
<altatistic> atmosx: I used to work for a cancer research lab that as a software engineer, so this stuff is really interesting to me
<atmosx> altatistic: mine is a proof of concept, more complicated projects could use statistical analysis, algorithms, etc.
<atmosx> altatistic: oooh... I'm just making my thesis in the masters degree for Pharmacy
<altatistic> Exactly. It's still cool though
crzrcn1 has joined #ruby
<altatistic> That's cool
<atmosx> altatistic: heh thanks :-) glad you like it
<altatistic> You're welcome
WishBoy has joined #ruby
<altatistic> It was using Django and python though
<abstrakt> atmosx, I'd recommend checking out one of the other JVM langs like clojure or scala before investing in go
bradhe has quit [Remote host closed the connection]
fgo has joined #ruby
freezey has joined #ruby
<atmosx> abstrakt: why is that?
<crome> go is pretty cool, I can see some potential in it. but at this point its huge work to get something properly done
<crome> the lack of libraries and "culture" does not help
mercwithamouth has quit [Ping timeout: 252 seconds]
crzrcn has quit [Ping timeout: 240 seconds]
<shevy> atmosx how do you determine whether a bacteria is able to produce insulin?
<shevy> I mean
<altatistic> atmosx: They gave me the rights to my code and I sold to a pharma company in san diego
<shevy> do you like feed-input a whole genome sequence
<abstrakt> atmosx, I'm trying to find the article I'm thinking of - quite a cogent and concise critique by a major/well-known organization on a big project they tried to use Go for and ran in to lots of problems
<shevy> and then it spits out "true" or "false"?
<shevy> altatistic python!!! :(
<abstrakt> also go is relatively specific and proprietary, google built it for google, clojure and scala were built for other/larger domain reasons
yfeldblum has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
<altatistic> Yeah..... Clients should never set project technologies
<shevy> hehe
<abstrakt> it's mostly opinion though, after all, so do what you want, I'm sure go is ok in its own ways
<atmosx> abstrakt: makes sense, it's a nwe language there are no libraries as you said... A big project i.e. an eshop would me an overkill to handle at this point.
<RubyPanther> They shouldn't be trying to use Go for a big project, that isn't what it is for
razrunelord has quit [Remote host closed the connection]
<shevy> they should just use ruby
<atmosx> altatistic: what was your code doing?
<shevy> but they can not compile ruby!
<shevy> so we need mruby
cj3kim has joined #ruby
<shevy> atmosx animating dancing girls as screensaver so that the lab teams could watch while the pre-cancer cells did the real work as they waited for results to analyze
<abstrakt> atmosx, also I'm personally quite partial to clojure, myself because lisp is pretty cool in its own right, just from a theoretical standpoint and has some cool features like macros
<RubyPanther> Go is A) a lua competitor for embedded languages B) a compiled language for running inside cloud containers, especially platform-as-a-service
<altatistic> It made sure that as the plate readers (invision and pherastar brands) were giving valid output
<abstrakt> atmosx, but at least one major benefit of clojure and scala is that they make concurrency a lot better
webgen has quit [Quit: Leaving]
<shevy> (I(like(Lisp(as(well
Iniesta8 has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<atmosx> shevy: You take the protein you need, you're trying to find patterns on the dna of your bacteria that match the protein. Every protein has a base, if the bacteria has the same bases then it's able to produce them. Say you want to produce Sortaze A enzyme in E. Coli. You can't because E. Coli doesn't. But the base is there, so all you need is a transplantation via plasmid, or virion... ay way will do.
agent_white has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
<abstrakt> heh, I kind of hate the (zomg ))))))))) deal that happens a lot in the standard/conventional style, but if you program in a nicely functional way and keep things down to lots of small functions that's less of a problem
<atmosx> shevy: and you get Sortaze A from E. Coli.
cj3kim has quit [Remote host closed the connection]
<shevy> atmosx need to re-read that sentence a few times before I can grok it ;)
<altatistic> atmosx: to make sure the lab assistants didnt screw anything up. It took a tsv as input from the plate reader and told them if there were any problems
<allfro> just wondering… is there anyway to completely replace the default Hash class in a ruby program
<abstrakt> atmosx, also, this is obviously debatable, but the scala folks somewhat consider scala to be, in many lights, the "successor" to java
<allfro> ?
fgo has quit [Ping timeout: 276 seconds]
<abstrakt> though I'm sure java's not "going away" just because of scala
<atmosx> abstrakt: you seem extremely proficient with programming, I'm not. I just a humble ruby hobbyist :-) who would like to be a programmer one day.
reset has quit [Quit: Leaving...]
<allfro> say i wanted to use HashWithIndifferentAccess instead
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
<altatistic> atmosx; And also did basic analysis before it went to the big analysis suite
<shevy> allfro hmm
<atmosx> altatistic: tsv is something liek a CVS?
<shevy> allfro interesting question
<RubyPanther> shevy: He said you need a virus so you can create Jurassic Park, but with Sortaze A
simono has joined #ruby
<atmosx> altatistic: a file containing data?
<benzrf> hm hm
webgen has joined #ruby
<abstrakt> atmosx, ahh, well in that case, I would highly recommend looking in to functional programming - it'll really expand your mind, clojure, haskell and erlang are all quite popular and all pretty nice, though specifically, haskell has a very nice book available
<altatistic> atmosx: Nooooo, like a csv but delimted with tabs
<altatistic> Awful format
<shevy> atmosx do you analyze the whole genome sequence though? because that would sound like a lot of processing work to do
agent_wh1te has joined #ruby
<allfro> i know in python you just need to overwrite the value of the name in the global dict
agent_white has quit [Read error: Connection reset by peer]
<abstrakt> atmosx, http://learnyouahaskell.com/ if you learn haskell, you'll up your ruby skills too because you'll start to understand where e.g. map/reduce come from and why they work the way they work
<benzrf> abstrakt: haskell five >>=
<shevy> allfro python is better than ruby :-)
<benzrf> [u =<<]
<atmosx> shevy: it's not, really. You just scan the aa-sequence of the protein to aa-sequence (1 for each strand, a grand total of 6) of the DNA.
<abstrakt> shevy, except, it's... not
<atmosx> shevy: it's ... a method with 3 regexp's AFAIK
<allfro> yeah…. i’m not getting into this religious debate
Hanmac has quit [Ping timeout: 264 seconds]
<abstrakt> there are projects I wouldn't choose ruby for, and there are projects I wouldn't choose python for
* allfro backs away slowly
<RubyPanther> allfro: you can't replace Hash entirely, no. Mostly, yes.
<abstrakt> and vice versa
<shevy> allfro perhaps ... HashWithIndifferentAccess = Hash; Hash = HashWithIndifferentAccess ? But I think that would not work with {}
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simono has quit [Read error: Connection reset by peer]
simono has joined #ruby
pika_pika has joined #ruby
<RubyPanther> but in C extensions people will be using a C constant to get the class, so overriding the constant from Ruby will not be complete
<abstrakt> I do *like* ruby better, personally, but the real world dictates that some things are better done with different technology stacks - requirements should be more important in deciding a language to use for a project
<allfro> RubyPanther: i understand… i think this is more for ruby files
<RubyPanther> that applies to Hash, Array, String, and a few others
<atmosx> hmm... I need a program to remind to do 'git commit' more often.
<abstrakt> it also helps if you actually have taken some time to garner some real world experience in many languages so you can accurately appraise how well each meets your requirements/desires
<shevy> yeah, RubyPanther sits in his crazy C world most of the time
<agent_wh1te> Testing
<allfro> abstrakt: don’t say that in #python
<agent_wh1te> M
<shevy> agent_wh1te SUCCESS! you earned 10 credits
<abstrakt> allfro, k, I won't :)
<agent_wh1te> shevy: Not yet :(
<atmosx> Like something that counts the lines of code tested and issues a warning... 'is it time to commit?!'
<RubyPanther> allfro: I would just copy what rails does with ...Indifferent...
<agent_wh1te> My nick has this damned 1 in it
noop has quit [Ping timeout: 240 seconds]
<allfro> abstrakt: their moto is “one language to rule them all"
<benzrf> agent_wh1te: ouch
cj3kim has joined #ruby
<agent_wh1te> benzrf: I'm not 1337 enuf for it
<shevy> allfro I agree to that
agent_wh1te is now known as agent_white
<atmosx> agent_wh1te: and I hate nicks with '_' in them
<shevy> it's just the mistake that the answer should be python
<RubyPanther> The last straw with Perl that caused me to switch to Ruby... having to learn a special glue language just to have C extensions. The Perl I can stomach, but not the XS
<agent_white> atmosx: I couldnt' help it, the one without was registered D:
pel_daniel has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
IceDragon has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<RubyPanther> If there is one language to rule them all it would have to be C. Otherwise nobody would get these other languages implemented
<abstrakt> well, perl is just bad, so no one can really be blamed for ditching perl for any language
agent_wh1te has joined #ruby
<abstrakt> hell I'd rather use brainfuck than perl
<shevy> C was so bad that it allowed scripting languages to rise
* abstrakt ducks
agent_white has quit [Read error: Connection reset by peer]
<shevy> C was also so useful that it gave rise to a language with ++
bradhe has joined #ruby
<RubyPanther> nobody cares if you use perl or parrot, even Perl people care a lot more about the Perl than perl
<workmad3> shevy: I'm starting work on ruby++ tomorrow
<shevy> http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html says that C rocks and ruby is dead
<shevy> workmad3 huh
<yxhuvud> C was also so good it outcompeted all other languages that existed when it was introduced.
mikepack has joined #ruby
<shevy> is that ruby from C++ land?
<agent_wh1te> Haskell scares me. The syntax looks like someone was introduced to symbols and went wild.
<RubyPanther> I'd believe it, half my Ruby is in C
<shevy> :\
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
metamaterial has quit [Quit: Leaving.]
<deepy> yxhuvud: that's such a naive statement
<deepy> COBOL still reigns supreme
<abstrakt> agent_wh1te, hah, part of why I prefer clojure to haskell/scala is though the parentheses can get out of hand, it's still easier to read than either scala or haskell
donnoc has quit [Ping timeout: 240 seconds]
<yxhuvud> deepy: not really. zombie languages can go on almost forever though.
<abstrakt> like anything though it's just a matter of "getting used to it", aka "gaining fluency"
<RubyPanther> COBOL is awesome <3 <3 <3 pass-by-value
Xeago has joined #ruby
nickgartmann has joined #ruby
cj3kim has quit [Remote host closed the connection]
tonini has quit [Read error: Operation timed out]
<deepy> yxhuvud: the marketshare of COBOL is still significant, C didn't outcompete it
<RubyPanther> it pushes the hardware budget so high, we can be totally inefficient and they'll never even notice the software cost
tonini has joined #ruby
olivier_bK has joined #ruby
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
<yxhuvud> deepy: is new systems built in cobol? new systems is the only thing that matters, since old systems never die.
agent_wh1te is now known as agent_white
<RubyPanther> nothing "competes" with existing legacy, so it is natural that C didn't displace them
nanoyak has joined #ruby
<workmad3> yxhuvud: fortran still counts then :P
akemrir has quit [Quit: WeeChat 0.4.3]
<agent_white> I used to program with smoke signals, now I program Ruby. It's going good so far.
<yxhuvud> fortran still counts for a very small set of applications. but it is a lot fewer than it used to be.
mercwithamouth has joined #ruby
metamaterial has joined #ruby
rokob has joined #ruby
<RubyPanther> and C won that one. Even in `99 I was writing COBOL but the new code was really all C. COBOL has supported C extensions for decades, and that is what you do to add capacity; you port methods and hide the reference-passing in the C
<deepy> If new systems was the only thing that mattered, why do peopel still learn COBOL?
timonv has quit [Remote host closed the connection]
<shevy> deepy money!
maoko has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
<RubyPanther> banks and governments pay well, that is who still has legacy COBOL
<bean> there's money on COBOL
<bean> but you'd have to pay me more than I'm worth to write it.
<shevy> haha
Devanon has joined #ruby
<deepy> I'm just saying that you can't measure a language solely by the amount of new software written in it. New software is irrelevant if nobody uses it
<RubyPanther> I've written COBOL in Ruby before. COBOL is simple, there were no hurdles at all embedding a Ruby interpreter. And that was before mRuby, even!
Xeago has quit [Ping timeout: 265 seconds]
BSaboia has quit [Ping timeout: 252 seconds]
crucify_me has joined #ruby
allfro has quit [Quit: allfro]
<atmosx> Native English speakers, is this syntactically/semantically correct: "However, my argument against the quote in question, is that comes beset with nobility that doesn't deserve." ?
<benzrf> no
<yxhuvud> atmosx: too many fancy words for my taste, though I'm not a native speaker
<benzrf> However, my argument against the quote in question is that it comes beset with nobility that it doesn't deserve.
yfeldblum has joined #ruby
<benzrf> ^grammared that for u
apeiros has quit [Remote host closed the connection]
<benzrf> yo what the fuck
<benzrf> pry is actin up
apeiros has joined #ruby
<mikecmpbll> atmosx: no one can tell you if it's semantically correct unless we know what it's intended to mean ;)
moted has quit [Ping timeout: 250 seconds]
<yxhuvud> mikecmpbll: well, we can tell him it means *something*
<mikecmpbll> sure, that's a fat lot of use though
<mikecmpbll> :'d
moted has joined #ruby
moted has quit [Client Quit]
moted has joined #ruby
<abstrakt> atmosx, you're definitely missing at least one word there at the end "doesn't deserve something" or maybe "that something doesn't deserve"
<crucify_me> benzrf: pry has been freezing on me for a few weeks. I can't figure it out . I thought it was in the terminal or my bash_profile got messed up
nickgartmann has left #ruby [#ruby]
nickgartmann has joined #ruby
<atmosx> mikecmpbll: It's about a statement that gives me the creeps when I read it "I want to change the world" (through software)
<mikecmpbll> ah okay
<atmosx> I'm getting suicidial when I read this kind of things on HN
<benzrf> well strictly it's pry-remote-em thats freakin up
<mikecmpbll> haha, i know what you mean
mark_locklear has quit [Quit: Leaving]
<crucify_me> there are a number of things wrong with the sentence ....
moritzs has joined #ruby
yalue has quit [Quit: Leaving]
<atmosx> mikecmpbll: yeah, it's like Steve jobs did the iPhone for the children in Africa
Milly_Bays has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
lw has quit [Quit: s]
<atmosx> mikecmpbll: so can I use that phrase or no?
<atmosx> I mean does it make sense?
<abstrakt> atmosx, sooo, don't read HN?
<abstrakt> that place is lame anyway
<crucify_me> how about: "the quote is pretentious "
<agent_white> ^
allfro has joined #ruby
<mikecmpbll> yep, pretentious is the word
<abstrakt> people who actually think HN is worth something are, by and large, not actually hackers (in any sense of the word)
maximski has joined #ruby
<crucify_me> the quote is imbued with a sense of stinkiness
<abstrakt> most real hackers are too busy programming to care about HN
momomomomo has joined #ruby
<atmosx> abstrakt: I love it
<mikecmpbll> lol
<atmosx> crucify_me: oh thanks
naw_ has joined #ruby
<Lemur> True that, half the time I have to set an alarm to tell me to go to sleep and get off github.
<abstrakt> atmosx, then again, you did basically admit you're not yet much of a programmer (i.e. you're learning still)
<crucify_me> no atmosx the first one is I think what you mean
krz has quit [Quit: WeeChat 0.4.3]
<mikecmpbll> ironically, you could easily fall in to the trap of sounding pretentious trying to tell someone else they're pretentious
<mikecmpbll> if you put it like that.
<Lemur> yo dawg
michaeldeol has joined #ruby
<crucify_me> mikecmpbll: in written language, some things are plain pretentious
<atmosx> crucify_me: the pretentious thing is something I understand the imbued with stinkiness sounds offense, I was abotu to write "When I read that shit I wanna cut my throat with a spoon"
<mikecmpbll> indeed
naw has quit [Ping timeout: 252 seconds]
<agent_white> Hahaha
<mikecmpbll> :D
<crucify_me> atmosx: that's a good sentence ! ...spoon
<atmosx> crucify_me: but might be a little extreme :-P and I'm trying to be more cautious when writing things that I don't intend to delete in the immediate future hehe
<atmosx> crucify_me: yeah spoon, to enhance the pain
<agent_white> Not even a spork
<agent_white> That would be cheating
Hanmac1 has quit [Ping timeout: 252 seconds]
<crucify_me> you could use the term "false nobility" atmosx
<atmosx> nop spoon
<atmosx> crucify_me: oh that's even better
<abstrakt> atmosx, I think the spoon remark is more true to life in the wild of the internet
<crucify_me> ^^ word
<atmosx> abstrakt: you liked it more?? lol
<abstrakt> yes, it's honest at least
freerobby has quit [Quit: Leaving.]
<abstrakt> also unpretentious
servatoo has quit [Remote host closed the connection]
<atmosx> okay..
freerobby has joined #ruby
servatoo has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
<mikecmpbll> lol
BizarreCake has quit [Quit: Leaving]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
lw has joined #ruby
alvaro_o has joined #ruby
<atmosx> abstrakt: HN is a good source of information to me. Many new projects etc come out every week and it's hard to follow. Plus I like the level of the comments. Then again as you said, I'm not a programmer, I'm learning things... So to me looks good.
bthesorceror has joined #ruby
SCommette has quit [Quit: SCommette]
supermarin_ has joined #ruby
<crucify_me> atmosx: I'm learning to program too. what's HN?
<benzrf> crucify_me: another name for http://reddit.com/r/programmingcirclejerk
bthesorceror has quit [Remote host closed the connection]
servatoo has quit [Ping timeout: 240 seconds]
motto has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has left #ruby ["Textual IRC Client: www.textualapp.com"]
skaflem has quit [Quit: Leaving]
<crucify_me> benzrf: thanks ...
yekta has quit [Quit: yekta]
jhass is now known as jhass|off
<abstrakt> benzrf, lol, accurate, can confirm :)
Shidash has quit [Ping timeout: 255 seconds]
m8 has quit [Ping timeout: 240 seconds]
ddd has quit [Ping timeout: 245 seconds]
pietr0 has quit [Quit: pietr0]
<benzrf> crucify_me: im messsing w/ u it's short for Hacker News
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
<benzrf> oops
michaeldeol has joined #ruby
<benzrf> y combinator y
omosoj has quit [Ping timeout: 240 seconds]
yekta has joined #ruby
<workmad3> benzrf: you write 'Hacker News', I read 'script kiddy breeding ground'
<benzrf> wenk wenk
kitak has joined #ruby
pika_pika has quit [Ping timeout: 252 seconds]
<RubyPanther> somebody told me that "hacker news" is the new slashdot, I glanced at it once and it looked weak.
djbkd has joined #ruby
<workmad3> awww, my cat is snoring on the bed behind me again
alpha123 has joined #ruby
Hanmac has joined #ruby
<peret> hehe
<RubyPanther> workmad3: start shouting "mouse, mouse!"
<workmad3> RubyPanther: he'd wake up, glare at me... possibly growl at me, then demand I turn the tap on so he can have a drink
<workmad3> he'd do similar if I had an actual frickin mouse and waved it under his nose...
<peret> workmad3: ironically there is a common thread on imgur today about cats sleeping on their owners
<RubyPanther> you're right, bad idea to anger your owner
<workmad3> peret: it's the spare bed :)
<peret> ;)
<timgauthier> lol RubyPanther
<workmad3> the snoring wouldn't be so bad... except the moggy sounds like a weird whistling window...
Devanon has quit [Quit: WeeChat 0.4.3]
obs has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
reset has joined #ruby
<shevy> sounds like noisy cancer cat again
Trevoke has joined #ruby
<Trevoke> Hey all, if I do "a = 3.times" then 'a' is an Enumerator object. How do I then pass a block to that object?
maximski has quit []
<apeiros> Trevoke: you don't
<apeiros> you can't pass something to an *object*. you pass something to *methods*
<apeiros> and Enumerator objects have methods to enumerate their "content"
bthesorceror has joined #ruby
<abstrakt> Trevoke, a.each { |x| puts "#{x}" }
<Trevoke> apeiros: quite right. I have #<Enumerator: 3:times> and I wonder HOW, that is which message I can send to that object, which will accept a block argument, and allow it to then behave the way "3.times { |x| puts x }" will.
<abstrakt> or .map or anything basically that enumerable will respond to
<apeiros> Trevoke: each
<Trevoke> Hmm.
<abstrakt> actually no x
<abstrakt> (apparently)
<abstrakt> just each
<abstrakt> or I could be wrong on that too, I'm being lazy, but .each works for sure
<workmad3> abstrakt: either is fine
<apeiros> abstrakt: hm? your example with x was quite right
crucify_me has quit [Remote host closed the connection]
<workmad3> depends on if you need the param or not
<Trevoke> abstrakt, apeiros, thanks. I was hoping there was some lower common denominator than 'each' but ... I guess not.
St_Marx has joined #ruby
<Trevoke> 3.times.each also returns a "3.times" enumerator, so .each must be it.
<workmad3> Trevoke: .each is the minimal interface for iteration
<apeiros> Trevoke: I don't see how there could be a loter…
<apeiros> *lower
simono has joined #ruby
<Trevoke> Thank you
<Trevoke> I didn't know either
<workmad3> s/iteration/enumeration
<Trevoke> Hence why I came here :)
* Trevoke nodnods.
<apeiros> wow, how did I type t instead of w?
<workmad3> apeiros: because you suck at typing? :P
bthesorceror has quit [Remote host closed the connection]
<apeiros> maybe
GaryOak_ has joined #ruby
* workmad3 hides that he typed iteration instead of enumeration
<apeiros> but usually the suckage has system
<zorak> any recomendation for non-hollywood action/fast movie?
* Trevoke hands workmad3 a magician's cloth to help
St_Marx has quit [Client Quit]
zorak is now known as zorak8
<RubyPanther> better get a brain scan "just to make sure"
<Trevoke> zorak: "The Raid: Redemption"
<workmad3> Trevoke: hey, this cloth is just a cheap nylon tablecloth from ikea!
<Trevoke> workmad3: Magic!
<Trevoke> workmad3: I transformed an argument about enumeration into an argument about cloth!
St_Marx has joined #ruby
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kitak has quit [Remote host closed the connection]
lw has quit [Quit: s]
<RubyPanther> lets enumerate the threads to check the quality of this "magician"
RaCx has quit [Quit: Computer has gone to sleep.]
<Trevoke> RubyPanther: Please. They are "Fiber". As patented by tenderlove.
<workmad3> RubyPanther: Thread.each ?
kitak has joined #ruby
kitak has quit [Read error: Connection reset by peer]
<apeiros> Trevoke: I think you mean fiburs
sdouglas has joined #ruby
tubuliferous__ has joined #ruby
kaspergr_ has joined #ruby
kitak has joined #ruby
bradhe has quit [Remote host closed the connection]
<RubyPanther> I've never even heard of nylon fibers, but I also don't shop at Ikea
<Trevoke> apeiros: Indeed! My apologies. https://github.com/tenderlove/fibur
<Trevoke> I'm a big fan of the implementation. Genius, really.
<apeiros> the implementation is awesome. such nice code
<apeiros> indeed
<Trevoke> I've never seen anything so expressive. I can only hope my code will one day achieve such elegance.
bradhe has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
iceden has joined #ruby
<apeiros> and succinctness
RaCx has joined #ruby
bthesorceror has joined #ruby
<tubuliferous__> Hey Ruby folks! So...I have a sorted array of integers, and given a random integer, I want to quickly pick out he nearest integer in the sorted array to the random integer (the random integer is unlikely to be in the array).
<slash_nick> Trevoke, apeiros: not too far from https://github.com/charliesome/future.rb
<tubuliferous__> Any ideas?
postmodern has quit [Quit: Leaving]
<zorak8> Trevoke: other one, gf dont like the trailer
<apeiros> tubuliferous__: see Enumerable#min_by
<tubuliferous__> There's no reason I have to keep the list of integers in an array data structure...I could them to a different structure.
<tubuliferous__> ah, ok
<benzrf> bye
<tubuliferous__> I'll do that...
<tubuliferous__> thanks!
kaspergrubbe has quit [Ping timeout: 240 seconds]
siert has joined #ruby
heftig has joined #ruby
<apeiros> tubuliferous__: if you need more performance and use a newer ruby, you can check the binary search methods
<Trevoke> slash_nick: the implementation's too ... ugly.
benzrf is now known as benzrf|offline
<Trevoke> zorak8: There are the French "Taxi" action movies
postmodern has joined #ruby
<zorak8> she like french movies, give me a title
garndt has quit [Quit: Connection closed for inactivity]
sriehl has quit []
fgo has joined #ruby
<tubuliferous__> Ok, I'll look into that as well.
<tubuliferous__> Thanks again.
jackju has quit [Ping timeout: 240 seconds]
<Trevoke> zorak: Taxi, Taxi 2, Taxi 3 I think..
crucify_me has joined #ruby
alexju has quit [Ping timeout: 252 seconds]
<Trevoke> zorak8: Or ... District B13, also French, lots of parkour and fighting in that one: http://www.imdb.com/title/tt0414852/?ref_=nv_sr_1
banister has joined #ruby
altatistic has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 265 seconds]
altatistic has joined #ruby
<siert> Compiling ruby myself, is it possible to avoid default gems being installed with a configure flag/option?
helpD has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
helpD has joined #ruby
<siert> The '--disable-rubygems' seems not to work :with 1.9/2.0/etc
fgo has quit [Ping timeout: 252 seconds]
<crucify_me> RubyPanther: HN not worth reading for noobs?
helpD_ has joined #ruby
fannye has quit [Remote host closed the connection]
razrunelord has joined #ruby
kirun has quit [Quit: Client exiting]
DEA7TH has joined #ruby
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
altatistic has quit [Ping timeout: 276 seconds]
Musashi1 has joined #ruby
Musashi1 has quit [Client Quit]
RaCx has quit [Quit: Computer has gone to sleep.]
bthesorceror has quit [Remote host closed the connection]
<crucify_me> siert rename gemset using rvm ?
jason___ has quit [Remote host closed the connection]
omosoj has joined #ruby
helpD has quit [Ping timeout: 276 seconds]
bthesorceror has joined #ruby
<dkamioka> hello anyone with experience with Minitest and VCR?
alexju has joined #ruby
<dkamioka> or TDD at all...
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
<dkamioka> I've read that it's ok to minitest to run my tests in an unordered way, but can I enforce an order? I think some initialisation isn't working
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
<apeiros> dkamioka: yes, it has a method for that, with a very nice name
sdouglas has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<dkamioka> apeiros: I tried it
<dkamioka> seems not working.
<dkamioka> seems it's not working*
jason___ has joined #ruby
<DEA7TH> My program needs to output a receipt. The receipt is modelled as a collection of services - each of which has a name, count, price, and possibly corresponds to a different DB table. What is the convention for modelling that in Ruby? I know that in a statically typed language, one could have an interface/mixin for Services, and store an object of each in a collection; or possibly even have a
<DEA7TH> special Receipt class, which stores multiple Services. But Ruby doesn't benefit from a type checker, so I thought a different approach is commonly used?
<apeiros> dkamioka: while I go to bed now anyway, let me tell you that "I tried it, it seems not to work" is not an actionable problem description.
<dkamioka> actually... now that I saw the way its should be implemented it SEEMS it's working. thanks apeiros
akonny has joined #ruby
<dkamioka> apeiros: indeed you are right.
bthesorceror has quit [Ping timeout: 252 seconds]
<DEA7TH> I read from a blog that in Clojure, one would often simply store a list of (string, float, float) and not bother with objects at all.
<apeiros> hm, and actionable may not mean what I thought it does…
jason___ has quit [Remote host closed the connection]
<DEA7TH> [ (string, float, float) stands for (name, count, price_per_count) ]
bradhe has quit [Ping timeout: 265 seconds]
danijoo_ has joined #ruby
<apeiros> DEA7TH: while it doesn't have a typechecker, it's still helpful if you use proper classes.
kitak has quit [Remote host closed the connection]
<apeiros> makes your code a) easier to understand and b) harder to make mistakes
larissa has joined #ruby
crucify_me has quit []
<DEA7TH> I know, but is that the convention?
<apeiros> for tuple like data with no further functionality, Struct can be a nice first step
<apeiros> Receipt = Struct.new(:name, :count, :price_per_count)
george2 has quit [Remote host closed the connection]
<yxhuvud> the difference to class Receipt; attr_accessor :name, :count, :price_per_count; end is not all that great though.
ktosiek has quit [Ping timeout: 240 seconds]
danijoo has quit [Ping timeout: 252 seconds]
<apeiros> yxhuvud: well, it gives you to_a, to_h, [], []= for free
Iniesta8 has joined #ruby
FxK has quit [Ping timeout: 240 seconds]
<apeiros> but yes, very often Struct is an intermediary step for me before I go with a "full" class
<DEA7TH> Well, I don't think a receipt will be used for anything further than printing it out
<yxhuvud> you never know.
<apeiros> DEA7TH: doesn't change what I said
<DEA7TH> A collection of tuples or structs should be perfectly fine then
<apeiros> DEA7TH: also common is to just use plain arrays or hashes. I don't like that, though.
<DEA7TH> I was just commenting on what I said
<apeiros> DEA7TH: ok
motto has quit [Quit: Sto andando via]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DEA7TH> if I used classes and objects, would that be awfully unusual for a Ruby program?
<apeiros> um, almost all the things in ruby are objects :-p
jrhe has quit [Quit: Connection closed for inactivity]
rmorello|hmm is now known as rmorello|1328
<apeiros> no, it's not unusual to define proper classes instead of going with all-purpose Array/Hash
pel_daniel has quit [Ping timeout: 264 seconds]
sski has joined #ruby
<DEA7TH> I think I know how to approach it now. Problem solved
WilfredTheGreat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> lol
paulfm has quit []
<shevy> that was the best problem solving I could ever witness on #ruby
naw_ has quit [Remote host closed the connection]
banister has joined #ruby
Trevoke has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
naw has joined #ruby
<DEA7TH> well I needed to know how to approach it because I am modelling a system and there are several similar problems
pel_daniel has joined #ruby
cescalante is now known as ce_afk
GaryOak_ has quit [Remote host closed the connection]
armyriad has quit [Quit: Leaving]
naw has quit [Remote host closed the connection]
naw_ has joined #ruby
bradhe has joined #ruby
RaCx has joined #ruby
yarou has quit []
sski has quit [Ping timeout: 255 seconds]
helpD_ has quit [Remote host closed the connection]
george2 has joined #ruby
Phoenixz has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SvenOostenbrink has joined #ruby
yfeldblum has quit [Remote host closed the connection]
sdwrage_ has joined #ruby
Atw has joined #ruby
SCommette has joined #ruby
lurch_ has joined #ruby
sdwrage has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
SubSignal has quit [Ping timeout: 240 seconds]
<tubuliferous__> Ok folks; this is the continuation of an earlier question. I have an array of sorted integers and a random integer. I want to find the array integer that is nearest to the random integer and less than the random integer. Apeiros suggested using Enumerable#min_by, and I was able to get the nearest element, but not the nearest element that is less than the random integer. Ideas?
<apeiros> change your block. return Float::INFINITY for numbers which are bigger than the random integer.
Iniesta8 has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> alternatively, select first
<apeiros> otherwise you have to test the result whether it is valid
<tubuliferous__> Ah...ok
<tubuliferous__> Thanks again!
sdwrage_ is now known as sdwrage
rainmanjam has quit []
<tubuliferous__> ok, I used Array#reject
mijoar has joined #ruby
jprovazn has quit [Quit: Odcházím]
jxf has joined #ruby
sambao21 has joined #ruby
Morkel has quit [Quit: Morkel]
yekta has quit [Quit: yekta]
rokob has quit [Remote host closed the connection]
jason___ has joined #ruby
nisstyre has joined #ruby
bradhe has quit [Remote host closed the connection]
Czupa has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
yubrew has quit [Remote host closed the connection]
FxK has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
danman_ has quit [Read error: Connection reset by peer]
lurch_ has quit [Quit: lurch_]
danshultz has quit [Remote host closed the connection]
zorak8 has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
__julien has quit [Quit: Leaving]
mcrmfc has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
Lightsword has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak has joined #ruby
zorak is now known as zorak8
zorak8 has quit [Client Quit]
ikaros has joined #ruby
zorak8 has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
evenix has quit [Ping timeout: 276 seconds]
relix has joined #ruby
banister has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
Tuxy has joined #ruby
abstrakt has quit [Quit: Leaving]
GaryOak_ has joined #ruby
mijoar has quit [Quit: Page closed]
rmorello|1328 is now known as rmorello
RaCx has quit [Quit: Computer has gone to sleep.]
schaary is now known as schaary|afk
bradhe has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
garndt has joined #ruby
fgo has joined #ruby
rebelshrug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
FxK has quit [Ping timeout: 252 seconds]
lw has joined #ruby
freezey has quit [Remote host closed the connection]
mcrmfc has quit [Quit: mcrmfc]
jason___ has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
frem_ has joined #ruby
freerobby has quit [Quit: Leaving.]
fgo has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
virtualize has quit [Quit: Leaving...]
rokob has joined #ruby
doodlehaus has quit [Remote host closed the connection]
northfurr has joined #ruby
mikepack has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 246 seconds]
acrussell has quit [Quit: Leaving.]
timonv has joined #ruby
lw has quit [Client Quit]
kyb3r_ has joined #ruby
mr_snowf1ake has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
bradhe has quit [Remote host closed the connection]
Squarepy has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
Lightsword has quit [Ping timeout: 265 seconds]
timonv has quit [Ping timeout: 276 seconds]
atno has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
Musashi1 has joined #ruby
Lightsword has joined #ruby
Musashi1 has quit [Client Quit]
danijoo has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
ce_afk is now known as cescalante
qhartman has joined #ruby
s3ri0us has joined #ruby
workmad3 has joined #ruby
kitak has joined #ruby
armstrjare has joined #ruby
bradhe has joined #ruby
j416 has quit [Quit: o/]
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
go|dfish has quit [Remote host closed the connection]
crucify_me has joined #ruby
<crucify_me> would anyone kindly give a 'classic' example of currying in ruby?
SilkFox has quit [Read error: Operation timed out]
<shevy> dont even know what that is
freezey has joined #ruby
<RubyPanther> >> proc {|x, y, z| (x||0) + (y||0) + (z||0) }.curry[1][2][3]
<eval-in__> RubyPanther => 6 (https://eval.in/139870)
<crucify_me> sweet thanks I've got homework for the night.
OZzl has quit [Quit: leaving]
<RubyPanther> example modified from stdlib docs
Azure has joined #ruby
dkamioka has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
papercode has quit [Quit: WeeChat 0.4.4-dev]
<crucify_me> RubyPanther: you're quick thanks
compleatang has joined #ruby
bradhe has joined #ruby
<Lewix> crucify_me: what's currying
go|dfish has joined #ruby
<RubyPanther> google helped with the "jump to curry" link :)
<Lewix> RubyPanther: thanks
djbkd has quit [Remote host closed the connection]
<RubyPanther> "In mathematics and computer science, currying [schönfinkeling[1][2]] is the technique of transforming a function that takes multiple arguments (or a tuple of arguments) in such a way that it can be called as a chain[disambiguation needed] of functions, each with a single argument (partial application). It was originated by Moses Schönfinkel[3] and later worked out by Haskell Curry."
<crucify_me> lew I don't know I'm learning the differences b/t functional and procedual langs.
<crucify_me> lewix
<RubyPanther> So it is basically something we don't do in Ruby ;)
SCommette has quit [Quit: SCommette]
<Lewix> crucify_me: ouch
<Lewix> crucify_me: good luck
reset has quit [Quit: Leaving...]
<crucify_me> yeah recursion either but I learned how to write some examples in ruby.
<RubyPanther> currying is what somebody is doing right before somebody tells them, "write a freakin' class already, that is way too much behavior for a one-liner"
<Lewix> RubyPanther: lol
<RubyPanther> recursion is still used in Ruby, especially now that we have tail call optimization
KanKava has quit [Quit: leaving]
<crucify_me> RubyPanther: more homework !
<crucify_me> Lewix: thanks
nolic has quit [Ping timeout: 258 seconds]
zigomir has quit [Remote host closed the connection]
cover has quit [Remote host closed the connection]
djbkd has joined #ruby
Lightsword has quit [Ping timeout: 265 seconds]
zigomir has joined #ruby
<crucify_me> yesterday I was kindly told: you must know recursion before you can know recursion. hehe
Azulinho has quit [Ping timeout: 240 seconds]
<workmad3> crucify_me: !g recursion
Hobogrammer has quit [Quit: WeeChat 0.4.3]
yfeldblum has quit [Remote host closed the connection]
treehug88 has quit []
<crucify_me> workmad3 thanks it's a bit confusing
<workmad3> crucify_me: you missed the easter egg :P
Lemur has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> crucify_me: 'Did you mean: recursion'
<crucify_me> sorry whats !g workmad3
happytux has joined #ruby
reset has joined #ruby
<happytux> hi
<happytux> So I want to know if a FileList in Rake can be reused in multiple tasks
<happytux> and if there is a dedicated rake channel although #rake doesn't seem to exist.
Hobogrammer has joined #ruby
<workmad3> crucify_me: a !g is just a bot command to do a google search... I was meaning you missed the google easter egg on searching 'recursion'
djbkd has joined #ruby
zigomir has quit [Ping timeout: 252 seconds]
dik_dak has quit [Quit: Leaving]
MatthewsFace has joined #ruby
mr_snowf1ake has quit [Ping timeout: 240 seconds]
blackmesa has quit [Read error: Connection reset by peer]
sailias has quit [Ping timeout: 276 seconds]
dblessing has quit [Quit: dblessing]
tubuliferous__ has quit [Quit: Leaving]
lw has joined #ruby
cescalante is now known as ce_afk
RaptorJesus_ is now known as RaptorJesus
crucify_me has quit [Remote host closed the connection]
skysploit has quit [Quit: This computer has gone to sleep]
cj3kim_ has joined #ruby
yubrew has joined #ruby
<happytux> Question: Can rake invoke another program? Can I pass arguments to it?
<happytux> And there is some kind of prefix before each command (rbenv exec bundle exec), can I prepend it so I don't have to duplicate it?
x1337807x has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<postmodern> happytux, um yes?
cj3kim_ has joined #ruby
crucify_me has joined #ruby
<postmodern> happytux, however you should rely on $PATH to be configured properly
kayloos has quit []
<happytux> postmodern: PATH is ok
<postmodern> happytux, i think bundler does a good job of infecting sub-ruby-processes
mary5030 has quit [Remote host closed the connection]
<happytux> postmodern: In ant (from which I want to migrate to rake) one can define an exec plus the arguments to be passed
klaut has quit [Remote host closed the connection]
crucify_me has quit [Remote host closed the connection]
<happytux> postmodern: is there an example for how to do this in rake, too?
<workmad3> happytux: you just use normal ruby... rake isn't like ant which mangles a build language into XML... rake just lets you do your stuff with ruby :)
SCommette has joined #ruby
<postmodern> happytux, well rake tasks invoke commands via the sh() or system() methods
<workmad3> ^^
<postmodern> happytux, if you want to prefix all commands, you could override those
MatthewsFace has quit [Quit: This computer has gone to sleep]
<happytux> workmad3: I have to use rbenv exec bundle exec <gem>
<happytux> postmodern: how can I prefix it?
_maes_ has quit [Read error: Connection reset by peer]
<postmodern> happytux, sounds like you need to add ~/.rbenv/shims to $PATH
yubrew has quit [Ping timeout: 255 seconds]
<postmodern> happytux, also bundle exec is redundant i believe, since you're already running inside of the bundle
<postmodern> happytux, bundler exports ENV variables so it can infect ruby sub-commands
<happytux> postmodern: It is on Jenkins CI server, a ruby plugin and the shims aren't applied in this case.
Lightsword has joined #ruby
Celm has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
<workmad3> happytux: I'd suggest you add the jenkins plugin that lets you set env variables and use that to set the PATH appropriately
<happytux> workmad3: this I could do
emaxi has quit [Remote host closed the connection]
<workmad3> happytux: or there may be a specific rbenv jenkins plugin that integrates rbenv more fully
crucify_me has joined #ruby
<happytux> workmad3: there is only this one
<workmad3> happytux: what I wouldn't do is try to mangle this into your rake tasks ;)
<happytux> so when I configured PATH correctly, I could directly start the gem clis, right?
jobewan has quit [Ping timeout: 265 seconds]
<happytux> I don't have to use rbenv exec or bundle exec or both?
<postmodern> happytux, nope
yfeldblum has joined #ruby
<workmad3> happytux: https://wiki.jenkins-ci.org/display/JENKINS/rbenv+plugin wow, 10s google search, 1 jenkins rbenv plugin...
<happytux> postmodern: hm, interesting point: What is expected from the build script (rakefile)? That it sets up rbenv automatically?
<happytux> workmad3: I use this plugin
<postmodern> happytux, $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
alexju has quit [Remote host closed the connection]
<happytux> workmad3: If I don't call exec explicitly I get strange problems.
<workmad3> happytux: 'strange problems' meaning?
<happytux> some ruby gems are called with wrong version (system ruby, not rbenv ruby) or dependencies are not satisfied.
<happytux> Should the buildscript (idempotently) install bundler tool or even prepare the ruby environment using rbenv? Or is this expected to be done before using the build script?
evenix has joined #ruby
<happytux> I will try this PATH thing now.
TripTastic has joined #ruby
TripTastic is now known as JBreit2
ktun has quit [Read error: Connection reset by peer]
ktun has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<happytux> seems to work without rbenv exec
<happytux> nice
mrmargolis has quit [Remote host closed the connection]
RaCx has joined #ruby
spider-mario has quit [Remote host closed the connection]
testcore has quit [Remote host closed the connection]
bthesorceror has joined #ruby
<happytux> Can I use a .gemrc also in project folder?
<shevy> ~~~
tacos1de has quit [Ping timeout: 272 seconds]
tacos1de has joined #ruby
SvenOostenbrink has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 276 seconds]
omosoj has quit [Ping timeout: 276 seconds]
Milly_Bays has joined #ruby
x1337807x has joined #ruby
_maes_ has joined #ruby
moritzs has joined #ruby
Gooder` has joined #ruby
mansi has quit [Quit: Leaving...]
fgo has joined #ruby
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
<shevy> $( document ).ready(function() { $('#cssmenu > ul > li > a').click(function() {
<shevy> no, I do not find this beautiful
Gooder has quit [Ping timeout: 252 seconds]
JBreit2 has left #ruby ["Leaving"]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
xcv_ has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 252 seconds]
bradhe has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
puzanov__ has quit [Read error: Connection reset by peer]
puzanov__ has joined #ruby
SCommette has quit [Quit: SCommette]
evenix has joined #ruby
crystal77 has joined #ruby
testcore has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Guedes0 has joined #ruby
<happytux> right
<happytux> shevy: and it is too nested
bradhe_ has joined #ruby
<happytux> shevy: on is much more elegant
<happytux> .on
Aaaal has joined #ruby
<shevy> it is very nested
<shevy> I was trying to instill the code to bare minimum of a hoverable menu
bthesorceror has quit [Remote host closed the connection]
<shevy> but this type of javascript coding is killing me
SilkFox has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
<happytux> shevy: $( "ul.foo" ).on( "click", "a", function() { });
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<happytux> shevy: much more performant
Squarepy has quit [Quit: Leaving]
DEA7TH has left #ruby [#ruby]
aedorn has quit [Ping timeout: 258 seconds]
MatthewsFace has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim_ has joined #ruby
baweaver is now known as Lemur
DrShoggoth has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
<shevy> ugly code is faster?
servatoo has joined #ruby
<mikecmpbll> hmmm
MatthewsFace has quit [Client Quit]
ylluminate has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<mikecmpbll> anyone explain to me how array.min{|x| x[1]} isn't equivalent to array.map{|x| x[1]}.min?
<mikecmpbll> or am i going insane.
p8952 has quit [Ping timeout: 276 seconds]
Phoenixz has joined #ruby
eguim has quit [Ping timeout: 245 seconds]
bradhe_ has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
bradhe has joined #ruby
omosoj has joined #ruby
eguim has joined #ruby
<mikecmpbll> scrap that, i misunderstood how min works with a block
shevy has quit [Read error: Connection reset by peer]
<mikecmpbll> sigh.
sdwrage has quit [Read error: Connection reset by peer]
binaryhat has joined #ruby
fearoffish has quit [Ping timeout: 252 seconds]
MatthewsFace has quit [Client Quit]
mengu has quit [Remote host closed the connection]
<happytux> hi
<happytux> So I used bundle package to install the gems locally to project.
<happytux> Now I want to use them.
michaeldeol has joined #ruby
<happytux> But just launching them doesn't work.
<happytux> Do I have to use bundle exec in this case?
larsam has quit [Ping timeout: 276 seconds]
<happytux> this is really a problem
GaryOak_ has joined #ruby
aedorn has joined #ruby
aspiers has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
arubincloud has quit []
havenwood has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
andy___ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
compleatang has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
nolic has joined #ruby
papercode has joined #ruby
bradhe has quit [Remote host closed the connection]
nisstyre has quit [Quit: WeeChat 0.4.3]
echevemaster has joined #ruby
compleatang has joined #ruby
cj3kim_ has quit [Ping timeout: 240 seconds]
bradhe_ has joined #ruby
bradhe_ has quit [Remote host closed the connection]
diegoviola has joined #ruby
Aaaal has quit [Ping timeout: 240 seconds]
keystonelemur has joined #ruby
Gooder`` has joined #ruby
helpD has joined #ruby
Aaaal has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
shevy has joined #ruby
ce_afk is now known as cescalante
MatthewsFace has joined #ruby
Lightsword has quit [Ping timeout: 265 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Client Quit]
Gooder` has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
keystonelemur has quit [Ping timeout: 264 seconds]
virtualize has joined #ruby
<happytux> I want to install ruby gems locally to directory.
<happytux> I use bundle pack for this.
<happytux> How can I start them?
sputnik1_ is now known as sputnik13net
supermarin_ has quit [Quit: Computer has gone to sleep.]
proxie has joined #ruby
supermarin_ has joined #ruby
Atrumx has joined #ruby
Picchioni1 has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
testcore has quit [Ping timeout: 272 seconds]
lmickh has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 240 seconds]
aspires has quit []
Lightsword has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
kevind has quit [Quit: kevind]
mikepack has joined #ruby
supermarin_ has quit [Ping timeout: 252 seconds]
<shevy> happytux no idea with bundle but you can pass --user-install to a gem install
bradhe has joined #ruby
pel_daniel has left #ruby [#ruby]
<Picchioni1> Hey folks, is there a way to ignore the version requirement when installing a gem (I understand the risks)? I was looking for some obvious flags but couldn't find any.
<happytux> shevy: I not only want to install them only for the user but also only for the directory.
<happytux> I use bundle exec [...] but I would like to get rid of this extra thing
andrewlio has quit [Quit: Leaving.]
anaeem1 has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
<happytux> ah, gem rubygems-bundler can shim/stub
nolic has quit [Ping timeout: 264 seconds]
snath has quit [Ping timeout: 255 seconds]
mikepack has quit [Ping timeout: 264 seconds]
ddv has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
metamaterial has quit [Quit: Leaving.]
crucify_me has quit []
sdwrage has joined #ruby
michaeldeol has joined #ruby
<allfro> hi all
sdouglas has quit [Remote host closed the connection]
<allfro> just wondering, what is the best way to force encode all keys in a hash?
metamaterial has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
testcore has joined #ruby
fgo has joined #ruby
crzrcn1 has quit [Quit: Leaving.]
timonv has quit [Ping timeout: 276 seconds]
<shevy> hmm
jjbohn has joined #ruby
<shevy> allfro .map! or .map ?
testcore has quit [Client Quit]
aspires has joined #ruby
rdark has joined #ruby
dima__ has quit [Remote host closed the connection]
lkba has joined #ruby
crucify_me has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
wald0 has joined #ruby
crzrcn has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kitak_ has quit [Remote host closed the connection]
jcs222 has joined #ruby
crzrcn has quit [Client Quit]
kitak has joined #ruby
RowdyChild|Away is now known as RowdyChildren
Aaaal has quit [Read error: Connection reset by peer]
spacebug has quit [Ping timeout: 240 seconds]
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
axisys has quit [Ping timeout: 240 seconds]
jcs222_ has quit [Ping timeout: 276 seconds]
snath has joined #ruby
predator117 has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
glanzi has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
predator117 has joined #ruby
djbkd has joined #ruby
helpD has quit [Remote host closed the connection]
ffranz has quit [Quit: Leaving]
helpD has joined #ruby
supermarin_ has joined #ruby
crucify_me has quit []
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
ddv has joined #ruby
momomomomo has joined #ruby
mr_snowf1ake has joined #ruby
helpD has quit [Ping timeout: 252 seconds]
niharvey is now known as Coolhand
garndt has quit [Quit: Connection closed for inactivity]
supermarin_ has quit [Ping timeout: 264 seconds]
SilkFox_ has joined #ruby
jason__ has joined #ruby
moritzs has quit [Ping timeout: 265 seconds]
supermarin_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
toastynerd has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
sdwrage has joined #ruby
yubrew has joined #ruby
Phoenixz has quit [Ping timeout: 264 seconds]