<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]
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??
<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?
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]
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]
<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
<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."
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?
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
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: 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'
<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]
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
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?
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?
<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]
<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
<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."
<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]
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)
<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".
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…]
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]
<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>
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?}"
<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 :)
<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
<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]
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]
<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
<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]
<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?
<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!
<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).
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]
<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]
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.
<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
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?
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]
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