saarinen has quit [Read error: Connection reset by peer]
<zorak>
fuck yeah!
<zorak>
works!
moritzs has joined #ruby
moted has quit []
saarinen has joined #ruby
starkhallo has joined #ruby
bricker`1A has joined #ruby
yezzie has joined #ruby
thumpba_ has joined #ruby
mkaesz has joined #ruby
virtualize has joined #ruby
wjimenez5271 has quit [Ping timeout: 246 seconds]
DanKnox_ has joined #ruby
gkra_ has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
yasu__ has joined #ruby
verto_ has joined #ruby
matrixise has joined #ruby
jpic has joined #ruby
MarcWebe2 has joined #ruby
ARCADIVS has joined #ruby
oso|away has joined #ruby
oso|away is now known as oso96_2000
gsd has joined #ruby
rs0 has joined #ruby
vinky has joined #ruby
mkaesz has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
michaeldeol has joined #ruby
matchaw_ has joined #ruby
metadave_ has joined #ruby
natewalck_ has joined #ruby
AlyssaDaemon has joined #ruby
irk_ has joined #ruby
<havenwood>
hobo: consider the following: array = [1, 2]; mid = (array.length)/2; right = array.slice(mid, -1)
<havenwood>
hobo: right #=> nil
<hobo>
ah
thejoecarroll has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h>
hobo, left = array.slice(0, mid) change this to left = array.slice(0...mid) right = array.slice(mid, -1) change this to right = array.slice(mid...-1)
Davey_ has joined #ruby
Numdox has joined #ruby
Kamilion|ZNC has joined #ruby
michaeldeol has quit [Client Quit]
waltz has joined #ruby
agrinb has quit [Remote host closed the connection]
Evan- has joined #ruby
sfire||work has quit [*.net *.split]
IcyDragon has quit [*.net *.split]
yezzie_ has quit [*.net *.split]
krz has quit [*.net *.split]
matchaw has quit [*.net *.split]
Photism has quit [*.net *.split]
_lexjm has quit [*.net *.split]
project2501a has quit [*.net *.split]
metadave has quit [*.net *.split]
natewalck has quit [*.net *.split]
andrewstewart_ has quit [*.net *.split]
verto has quit [*.net *.split]
DanKnox has quit [*.net *.split]
thejoecarroll_ has quit [*.net *.split]
waltz_ has quit [*.net *.split]
jpic_ has quit [*.net *.split]
thumpba has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
Morrolan has quit [*.net *.split]
starkhalo has quit [*.net *.split]
irk has quit [*.net *.split]
gkra has quit [*.net *.split]
matrixis1 has quit [*.net *.split]
yasu_ has quit [*.net *.split]
Tiesoul has quit [*.net *.split]
urtokk has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
Thanatermesis has quit [*.net *.split]
Davey has quit [*.net *.split]
catepillar has quit [*.net *.split]
vinky_ has quit [*.net *.split]
proxie has quit [*.net *.split]
Kamilion has quit [*.net *.split]
AlyssaDa1mon has quit [*.net *.split]
MarcWebe1 has quit [*.net *.split]
Evan_ has quit [*.net *.split]
dserodio_ has quit [*.net *.split]
gizmore has quit [*.net *.split]
rs0_ has quit [*.net *.split]
Numd0x has quit [*.net *.split]
DanKnox_ is now known as DanKnox
Davey_ is now known as Davey
natewalck_ is now known as natewalck
Kamilion|ZNC is now known as Kamilion
dserodio has joined #ruby
skysploit has quit [Remote host closed the connection]
bashrw_ has joined #ruby
sweeper_ is now known as sweeper
Sht0 has joined #ruby
drexxler has joined #ruby
HaniKazmi has quit [Remote host closed the connection]
metadave_ is now known as metadave
toretore has quit [Quit: This computer has gone to sleep]
<hobo>
yeah havenwood, im actually debugging my gfs code and it took me awhile to figure out the nil variables
<hobo>
.fdiv is cool
<havenwood>
ah the joy of nil hunting
<hobo>
i dont actually program much in ruby, except when my gf has problems
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
thomasxie has left #ruby [#ruby]
hamakn has joined #ruby
zubov has joined #ruby
zubov has quit [Quit: Leaving]
peret has joined #ruby
moritzschaefer has joined #ruby
xenomorp is now known as {xenomorph}
{xenomorph} has quit [Changing host]
{xenomorph} has joined #ruby
yacks has quit [Ping timeout: 260 seconds]
BeanDip has joined #ruby
{xenomorph} is now known as xenomorph
chrishou_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
bricker`1A is now known as bricker
RandyT has quit [Ping timeout: 246 seconds]
lw has joined #ruby
<benzrf>
iktf
<benzrf>
oops wrong channel
oo_ has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 260 seconds]
braincra- has quit [Quit: bye bye]
RandyT has joined #ruby
Takle has joined #ruby
linojon has joined #ruby
cirn0 has joined #ruby
braincrash has joined #ruby
freerobby has joined #ruby
icebourg_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
icebourg_ has quit [Max SendQ exceeded]
icebourg_ has joined #ruby
icebourg_ has quit [Max SendQ exceeded]
icebourg_ has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
icebourg has quit [Ping timeout: 240 seconds]
icebourg_ has quit [Client Quit]
cirn0 has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
SilkFox_ has joined #ruby
mkaesz has joined #ruby
dorei has quit [Ping timeout: 245 seconds]
krz has quit [Ping timeout: 244 seconds]
mkaesz has quit [Ping timeout: 260 seconds]
binaryhat has joined #ruby
upgrayeddd has joined #ruby
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
mockra_ has joined #ruby
chrishough has joined #ruby
mockra_ has quit [Remote host closed the connection]
chrishough has quit [Client Quit]
mockra_ has joined #ruby
chrishough has joined #ruby
gwb3 has quit [Quit: leaving]
ForkingPaths has joined #ruby
tkuchiki has quit [Remote host closed the connection]
_djbkd has joined #ruby
thomasxie has joined #ruby
mockra_ has quit [Ping timeout: 245 seconds]
tlarevo has joined #ruby
froggy_ has joined #ruby
rjhunter has quit [Remote host closed the connection]
Wolland has joined #ruby
Lewoco has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
jle` has joined #ruby
Guest59775 has quit [Ping timeout: 240 seconds]
Wolland_ has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
dseitz has joined #ruby
alexju has joined #ruby
upgrayeddd has quit [Quit: Leaving.]
iamjarvo has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
bmurt has joined #ruby
<Lewoco>
Why is bundler incapable of managing itself?
drexxler has quit [Remote host closed the connection]
<Lewoco>
For example, if I put (gem 'bundler', '1.6.6') in my Gemfile, why doesn't my system-wide bundler (possibly different version) just go and fetch it when I do 'bundle install'?
<Lewoco>
bundler wants us to believe that it can manage other gems but it can't even manage itself =)
ferno has joined #ruby
upgrayeddd has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
yetanotherdave has joined #ruby
narcan has joined #ruby
edwardloveall has quit [Quit: Leaving.]
lw has quit [Quit: s]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has left #ruby [#ruby]
iamjarvo has joined #ruby
mockra_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mockra_ has quit [Remote host closed the connection]
mockra_ has joined #ruby
ferno has quit [Ping timeout: 246 seconds]
IcyDragon has quit [Ping timeout: 260 seconds]
CaptainJet has quit []
BeanDip has quit [Ping timeout: 260 seconds]
IcyDragon has joined #ruby
Sauvin has joined #ruby
mockra__ has joined #ruby
devyn has quit [Ping timeout: 245 seconds]
mockra_ has quit [Ping timeout: 245 seconds]
IcyDragon is now known as IceDragon
fabrice31 has joined #ruby
pu22l3r_ has joined #ruby
Ankhers has joined #ruby
GriffinHeart has joined #ruby
jmbrown412 has joined #ruby
afhammad has joined #ruby
freerobby has quit [Quit: Leaving.]
upgrayeddd has quit [Quit: Leaving.]
ylluminarious has quit [Quit: Leaving...]
fabrice31 has quit [Ping timeout: 245 seconds]
mockra__ has quit [Remote host closed the connection]
mockra has joined #ruby
pu22l3r_ has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
devyn has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Ping timeout: 240 seconds]
upgrayeddd has joined #ruby
benlieb has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
afhammad has quit [Client Quit]
lukeholder has joined #ruby
kachi8 has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 244 seconds]
_djbkd has quit [Quit: My people need me...]
chrishough has quit [Read error: Connection reset by peer]
lukeholder has quit [Client Quit]
davedev24_ has joined #ruby
bashrw has quit [Quit: bashrw]
yetanotherdave has quit [Quit: Lost terminal]
Cheezebox has joined #ruby
cris1 has joined #ruby
bryanhowarth has quit [Quit: quit | bryan.howarth@gmail.com | twitter.com/bryanhowarth]
devyn has quit [Read error: Connection reset by peer]
devyn has joined #ruby
RTG`` has joined #ruby
RTG` has quit [Disconnected by services]
mordocai has joined #ruby
mordocai has quit [Remote host closed the connection]
mordocai has joined #ruby
BeanDip has joined #ruby
mkaesz has joined #ruby
chrishough has joined #ruby
ForkingPaths has quit [Ping timeout: 244 seconds]
mkaesz has quit [Ping timeout: 245 seconds]
Cheezebox has quit [Remote host closed the connection]
yacks has joined #ruby
<havenwood>
Lewoco: So to run in the context of the bundler in your bundle you'd?: bundle exec bundle exec bundle
<Lewoco>
havenwood, No. I don't care which version of bundle sets up my environment. I only care about the version of bundle seen by my program.
<Lewoco>
havenwood, But sadly bundler will throw up an error if you specify a bundler version in your Gemfile instead of just installing/using it (like it would any other gem).
<Lewoco>
havenwood, i.e. if I do 'bundle exec myprog' I want myprog to see whatever bundler I've specified in my Gemfile.
<havenwood>
Lewoco: I just always use latest bundler :P, but yeah, you'd have to manually run it with the version you wanted
zubov has joined #ruby
<Lewoco>
havenwood, Yeah, pretty lame.
lidaaa has quit [Read error: Connection reset by peer]
lidaaa has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
zubov has quit [Client Quit]
davispuh has quit [Ping timeout: 245 seconds]
mordocai has quit [Read error: Connection reset by peer]
<Lewoco>
havenwood, Apparently the recommended way of doing it is to tell all your users to manually install the particular bundler gem and then explicitly use it with 'bundler _1.6.6_ install'.
gsd has joined #ruby
mordocai has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
ferno has left #ruby ["WeeChat 0.4.2"]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
end_guy has quit [Remote host closed the connection]
Cheezebox has joined #ruby
jack_rabbit has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
end_guy has joined #ruby
danijoo has joined #ruby
oo_ has joined #ruby
<bricker>
so haproxy mysql-check user can't have a password? Seems like a bad design.
<bricker>
Lewoco: Look at the source for stringify keys, I bet it's really simple
<Hanmac>
yeah ... there IS a reason why Hash does treat Strings and Symbols differently ... only the rails users does not understand that
<bricker>
aww that's not fair
<bricker>
Hanmac: we understand, we just don't care ;)
<Lewoco>
Hanmac, I don't understand but I also don't care =)
<Hanmac>
yeah and then whining that rails got memory leaks
<Hanmac>
or secuitry leaks
<Lewoco>
Hanmac, Strings are shared globally right?
<bricker>
Hanmac: well hey, symbols being GC'd in 2.2... getting closer and closer
lkba has quit [Ping timeout: 260 seconds]
<bricker>
soon they'll be called Stringbols
<bricker>
Strymbols
<Lewoco>
Or maybe they'll figure out that C++ pass by copy was the right solution all along =)
<bricker>
fuck it, let's all use Erlang
<Hanmac>
bricker: currently: Strings, frozen Strings, Dynamic Symbols, pinned Symbols, Static Symbols ... all of them are treated differently by the GC
IceDragon has quit [Quit: Space~~~]
<Hanmac>
hm or did i forgot one category?
<bricker>
indeed
linojon has quit [Quit: linojon]
Bumptiou_ has quit [Remote host closed the connection]
<bricker>
but rails converts between (previously) static symbols and strings, now it will be converting between dynamic symbols and strings
<bricker>
so there is less harm
<bricker>
less potential harm, I should say
Bumptious has joined #ruby
Bumptious has quit [Remote host closed the connection]
<bricker>
YEAH my haproxy stats are all green and blue, god I am so happy
Bumptious has joined #ruby
fantazo has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
Channel6 has quit [Quit: Leaving]
GriffinHeart has quit [Ping timeout: 245 seconds]
ht__th has joined #ruby
ht__th has quit [Remote host closed the connection]
lidaaa has quit [Quit: Leaving]
peret has quit [Remote host closed the connection]
lkba has joined #ruby
heftig has joined #ruby
starkhallo has quit [Ping timeout: 240 seconds]
<arup_r>
Can any one tell me where is this document ?
<apeiros>
hrmpf, Kernel vs. Object… that one is not nice. ruby reports extend to be Kernel#extend, but it's documented under Object#extend…
<jhass>
Kernel#extend seems like a silly place anyway
sarkis has quit [Ping timeout: 240 seconds]
<mr-foobar>
apeiros: if I do Foo.extend(Bar), Foo.extend(Baz), Bar and Baz have to be modules right ? If they were classes that would be like multiple inheritance
<apeiros>
mr-foobar: yes, Object#extend expects a Module as argument
<apeiros>
though, I think other subclasses of Module work too, just Class does not
<mr-foobar>
thx a lot !
some1else is now known as skyofdwarf
<mr-foobar>
my head will explode on monday. I have to pick up php after python -> js -> ruby ...
autochthon has quit [Ping timeout: 246 seconds]
<apeiros>
ew, php…poor lad
Symbiosisz has joined #ruby
<mr-foobar>
i'll try to write a class Sanity and use that everywhere
<mr-foobar>
i wish ruby were an API
Ankhers has joined #ruby
IRLeif_AFK has quit [Quit: I'm away at the moment.]
HelperW___ has joined #ruby
bearish has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
Takumo has quit [Ping timeout: 250 seconds]
<apeiros>
I'm happy with ruby being a language, not an API ;-p
oo_ has joined #ruby
toretore has joined #ruby
culturelabs___ has left #ruby [#ruby]
tanath has quit [Remote host closed the connection]
tanath has joined #ruby
oo_ has quit [Remote host closed the connection]
dawkirst has joined #ruby
jmbrown412 has joined #ruby
Tiesoul_ has joined #ruby
BraddBitt has joined #ruby
qba73 has joined #ruby
jmbrown412 has quit [Ping timeout: 260 seconds]
carraroj has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
BraddPitt has quit [Ping timeout: 260 seconds]
diegoviola has quit [Remote host closed the connection]
Catzby has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Davedo has quit [Ping timeout: 245 seconds]
Wolland has joined #ruby
oo_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
spider-mario has quit [Read error: Connection reset by peer]
Davedo has joined #ruby
banister has joined #ruby
spider-mario has joined #ruby
Pharaoh2 has joined #ruby
bearish_ has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Remote host closed the connection]
IRLeif has joined #ruby
bearish has quit [Ping timeout: 244 seconds]
ndRx has joined #ruby
benlieb has quit [Quit: benlieb]
ndrei has quit [Ping timeout: 250 seconds]
timonv_ has quit [Remote host closed the connection]
kvad32 has quit [Ping timeout: 245 seconds]
Tiesoul_ has quit [Disconnected by services]
Tiesoul_ has joined #ruby
sarkis has joined #ruby
DEA7TH has joined #ruby
mfmfmfmfmfmf has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Remote host closed the connection]
Tiesoul_ has quit [Disconnected by services]
<pontiki>
uugggghhhh. why am i awake...
Tiesoul_ has joined #ruby
Pharaoh2 has quit [Remote host closed the connection]
Tiesoul_ has quit [Remote host closed the connection]
narcan has joined #ruby
sevenseacat has joined #ruby
_Andres has quit [Ping timeout: 240 seconds]
decoponio has joined #ruby
<arup_r>
pontiki: may be power cut :p
lxsameer has joined #ruby
lxsameer has joined #ruby
anaeem1 has joined #ruby
ndRx has quit [Ping timeout: 260 seconds]
kaspertidemann has joined #ruby
kachi8 has joined #ruby
Ankhers has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
<adironduck>
Regarding gem naming conventions: say you have a gem for doing Event Sourcing (http://martinfowler.com/eaaDev/EventSourcing.html) in ruby. It is storage agnostic, we can inject different storage drivers as long as they adhere to a common interface. We write a driver for SQL db storage as a separate gem. Should we consider the storage gem to be an extension to the main gem, or a standalone gem? In other words should it be event_sourcing and
<adironduck>
event_sourcing-sequel_driver (extension) or event_sourcing and event_sourcing_sequel_driver (standalone).
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
hellangel7 has joined #ruby
IRLeif is now known as IRLeif_AFK
IRLeif_AFK is now known as IRLeif
<adironduck>
The storage driver doesn’t depend on the main gem, so in that sense it can exist on its own, but on the other hand in practice it won’t ever be used in that way
<crome>
I think the current gem naming convention could be summed up like this: name it the first cool sounding word that pops up in your mind
<adironduck>
Haha, perhaps, but mayhaps not that helpful?
<jhass>
adironduck: what is the namespace of your storage driver?
<jhass>
EventSource::SequelDriver or EventSourceSequelDriver?
<adironduck>
well that would depend on whether I consider it an extension or not
Wolland has joined #ruby
nhhagen has quit [Remote host closed the connection]
<jhass>
I guess I'd make it an extension
<adironduck>
EventSource::SequelDriver is what I would intuitively go for
<jhass>
that's largely taste though
<adironduck>
yeah
<jhass>
yeah
sectionme has joined #ruby
<adironduck>
thanks for your input
<jhass>
I'd even consider making the extension dependent on the main gem
<adironduck>
I see your point
<jhass>
since then you can change the API that needs to be implemented by the storage driver
<jhass>
and it won't break in a subtle way
timonv_ has quit [Ping timeout: 260 seconds]
<adironduck>
good point
<toretore>
i would keep them separate
<toretore>
you never know how someone is going to be using your library
Wolland has quit [Ping timeout: 264 seconds]
<toretore>
if the sequel gem doesn't need the es gem, then don't add an artificial dependency
sparrovv has joined #ruby
sectionme has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby
sectionme has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
IRLeif is now known as IRLeif_AFK
sarkis has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
linduxed has joined #ruby
sarkis has quit [Ping timeout: 246 seconds]
icarus has quit [Quit: leaving]
IRLeif_AFK is now known as IRLeif
Pharaoh2 has joined #ruby
project2501a has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
yeticry has quit [Ping timeout: 260 seconds]
Pharaoh2 has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
kachi8 has quit [Ping timeout: 244 seconds]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Ping timeout: 240 seconds]
soixante has joined #ruby
Ankhers has joined #ruby
arup_r has joined #ruby
Takumo has joined #ruby
DaniG2k has quit [Quit: Lost terminal]
Ankhers has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
fabrice31 has joined #ruby
nhhagen has joined #ruby
drago777 has joined #ruby
matcouto has joined #ruby
davedev24_ has joined #ruby
j416_ has joined #ruby
bmoyles0117_ has joined #ruby
gnarld_ has joined #ruby
willgorm| has joined #ruby
bartj3_ has joined #ruby
mocchi_ has joined #ruby
jimeh_ has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
sectionme has quit [Ping timeout: 246 seconds]
avalarion has joined #ruby
sweeper_ has joined #ruby
IRLeif is now known as IRLeif_AFK
crome_ has joined #ruby
GriffinHeart has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
sivoais_ has joined #ruby
Blue_Ice has joined #ruby
Blue_Ice has joined #ruby
pasv has joined #ruby
yokel_ has joined #ruby
pasv is now known as Guest88400
oddraisi1 has joined #ruby
cHarNe2 has joined #ruby
m_3_ has joined #ruby
avi___ has joined #ruby
Hamled|Erp has joined #ruby
xhoy_ has joined #ruby
kloeri_ has joined #ruby
xxi has joined #ruby
LiquidIn1ect has joined #ruby
Gnubie_ has joined #ruby
TheMoonMaster_ has joined #ruby
hellangel7 has quit [Remote host closed the connection]
Andriama1itra has joined #ruby
franks2_ has joined #ruby
MonsieurApple has joined #ruby
pr00t_ has joined #ruby
vereteran has joined #ruby
michael_mbp has joined #ruby
David_Mi1ler has joined #ruby
stef_204 has joined #ruby
akkad_ has joined #ruby
mahlon_ has joined #ruby
Shidash_ has joined #ruby
snorkra has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
cyphactor has joined #ruby
pydave6367 has joined #ruby
pipecloud has joined #ruby
pipecloud has joined #ruby
pipecloud has quit [Changing host]
gzl_ has joined #ruby
Affix_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
Kilobyte|StupidC has joined #ruby
Sp4rKy_ has joined #ruby
sparrovv has joined #ruby
Iota-Spencer has joined #ruby
ndrei has joined #ruby
Guest3459 has joined #ruby
<Guest3459>
What is the @ in @var in a module?
<Guest3459>
I'm only used to seeing @ in classes
FIGO_ has joined #ruby
<jhass>
same thing
Wolland has joined #ruby
b1nd__ has joined #ruby
<Guest3459>
jhass: ...an instance variable?
<jhass>
when the module is included, the instance variable is stored in the class the module was included to
IRLeif_AFK has quit [Quit: I'm away at the moment.]
<jhass>
in the classes instances to be precise
<Guest3459>
jhass: what if the module is not included, and the method containing the @var is executed as in: ModuleName.methodname
bartj3 has quit [Ping timeout: 260 seconds]
willgorm- has quit [Ping timeout: 260 seconds]
nug has quit [Ping timeout: 260 seconds]
TheMoonMaster has quit [Ping timeout: 260 seconds]
drago777- has quit [Ping timeout: 260 seconds]
mocchi has quit [Ping timeout: 260 seconds]
adeponte has quit [Ping timeout: 260 seconds]
jimeh has quit [Ping timeout: 260 seconds]
snorkra_ has quit [Ping timeout: 260 seconds]
sivoais has quit [Ping timeout: 260 seconds]
pipework has quit [Ping timeout: 260 seconds]
sweeper has quit [Ping timeout: 260 seconds]
Blue_Ice_ has quit [Ping timeout: 260 seconds]
Gnubie__ has quit [Ping timeout: 260 seconds]
bmoyles0117 has quit [Ping timeout: 260 seconds]
Scientz has quit [Ping timeout: 260 seconds]
michael_imac has quit [Ping timeout: 260 seconds]
Guest24720 has quit [Ping timeout: 260 seconds]
naquad has quit [Ping timeout: 260 seconds]
akkad has quit [Ping timeout: 260 seconds]
crome has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 260 seconds]
Affix has quit [Ping timeout: 260 seconds]
tsunamie has quit [Ping timeout: 260 seconds]
oddraisin has quit [Ping timeout: 260 seconds]
bmn_ has quit [Ping timeout: 260 seconds]
go|dfish has quit [Ping timeout: 260 seconds]
shreknet has quit [Ping timeout: 260 seconds]
mahlon has quit [Ping timeout: 260 seconds]
mrapple has quit [Ping timeout: 260 seconds]
j416 has quit [Ping timeout: 260 seconds]
hobo has quit [Ping timeout: 260 seconds]
IotaSpencer has quit [Ping timeout: 260 seconds]
ixx has quit [Ping timeout: 260 seconds]
avi__ has quit [Ping timeout: 260 seconds]
xhoy has quit [Ping timeout: 260 seconds]
cHarNe2_ has quit [Ping timeout: 260 seconds]
Sp4rKy has quit [Ping timeout: 260 seconds]
Hamled has quit [Ping timeout: 260 seconds]
cuqa has quit [Ping timeout: 260 seconds]
LiquidInsect has quit [Ping timeout: 260 seconds]
Shidash has quit [Ping timeout: 260 seconds]
Kilo`byte has quit [Ping timeout: 260 seconds]
Andriamanitra has quit [Ping timeout: 260 seconds]
b1nd_ has quit [Ping timeout: 260 seconds]
David_Miller has quit [Ping timeout: 260 seconds]
Platini has quit [Ping timeout: 260 seconds]
gzl has quit [Ping timeout: 260 seconds]
pr00t has quit [Ping timeout: 260 seconds]
m_3 has quit [Ping timeout: 260 seconds]
franks2 has quit [Ping timeout: 260 seconds]
pydave6377 has quit [Ping timeout: 260 seconds]
kloeri has quit [Ping timeout: 608 seconds]
Affix_ is now known as Affix
gnarld_ is now known as nug
bartj3_ is now known as bartj3
akkad_ is now known as akkad
tsunamie has joined #ruby
bmoyles0117_ is now known as bmoyles0117
Shidash_ is now known as Shidash
yokel_ is now known as yokel
<Guest3459>
jhass: what if the module is not included, and the method containing the @var is executed as in: ModuleName.methodname << :)
<izzol2>
What is the best for sending e-mails from ruby? I already checked net/smtp but it doesn't work for me :(
kloeri_ has quit [Ping timeout: 624 seconds]
pandaant has joined #ruby
fabrice31 has joined #ruby
Platini has joined #ruby
<jhass>
the mail gem is quite popular
<toertore>
try the mail gem
gkra has joined #ruby
ahmads_ has joined #ruby
pandaant has quit [Remote host closed the connection]
MarcWebe1 has joined #ruby
yeticry_ has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
RTG`` has quit [Ping timeout: 244 seconds]
mostlybadfly has quit [Ping timeout: 244 seconds]
ahmads has quit [Ping timeout: 244 seconds]
peckermanzzz has quit [Ping timeout: 244 seconds]
Caius has quit [Ping timeout: 244 seconds]
mostlybadfly_ is now known as mostlybadfly
rfv__ has joined #ruby
fantazo has joined #ruby
moshee has joined #ruby
AlyssaDa1mon has joined #ruby
clocKwize_ has joined #ruby
Anarch has joined #ruby
tlarevo_ has joined #ruby
adeponte has joined #ruby
carraroj has quit [Ping timeout: 250 seconds]
hamakn_ has joined #ruby
jthomas_ has joined #ruby
cnj has joined #ruby
fella6s has joined #ruby
motto has joined #ruby
vereteran has joined #ruby
Ilyas_ has joined #ruby
sparrovv has quit [Remote host closed the connection]
qba73_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
callumacrae has quit [Ping timeout: 244 seconds]
HashNuke has quit [Ping timeout: 244 seconds]
AlyssaDaemon has quit [Ping timeout: 244 seconds]
yeticry has quit [Ping timeout: 244 seconds]
tlarevo has quit [Ping timeout: 244 seconds]
Mekkis has quit [Ping timeout: 244 seconds]
choke has quit [Ping timeout: 244 seconds]
b1nd__ has quit [Ping timeout: 244 seconds]
gkra_ has quit [Ping timeout: 244 seconds]
rfv_ has quit [Ping timeout: 244 seconds]
naquad has quit [Ping timeout: 244 seconds]
devyn has quit [Ping timeout: 244 seconds]
hamakn has quit [Ping timeout: 244 seconds]
mosheee has quit [Ping timeout: 244 seconds]
soulcake has quit [Ping timeout: 244 seconds]
MarcWebe2 has quit [Ping timeout: 244 seconds]
soulcake has joined #ruby
Anarch_ has quit [Ping timeout: 244 seconds]
clocKwize has quit [Ping timeout: 244 seconds]
Mekkis has joined #ruby
Caius has joined #ruby
peckermanzzz has joined #ruby
Deele has joined #ruby
qba73 has quit [Ping timeout: 244 seconds]
spider-mario has quit [Ping timeout: 244 seconds]
ItSANgo__ has quit [Ping timeout: 245 seconds]
TheDracle has quit [Ping timeout: 244 seconds]
ptierno_ has joined #ruby
spider-mario_ has joined #ruby
soulcake has quit [Changing host]
Caius has joined #ruby
soulcake has joined #ruby
Caius has quit [Changing host]
HashNuke_ is now known as HashNuke
sparrovv has joined #ruby
ItSANgo__ has joined #ruby
ndRx has quit [Ping timeout: 240 seconds]
zenspider has quit [Ping timeout: 255 seconds]
mikecmpb_ has quit [Ping timeout: 255 seconds]
cuqa has quit [Ping timeout: 255 seconds]
choke has joined #ruby
spider-mario_ is now known as spider-mario
DEA7TH has joined #ruby
davedev2_ has joined #ruby
mahlon has joined #ruby
callumacrae has joined #ruby
DrForr has quit [Ping timeout: 255 seconds]
fsapo has quit [Ping timeout: 255 seconds]
bmn has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Ping timeout: 255 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
yfeldblum has joined #ruby
froggy_ has joined #ruby
hydrajump has quit [Ping timeout: 255 seconds]
phutchin1 has quit [Ping timeout: 255 seconds]
axisys_ has quit [Ping timeout: 255 seconds]
uxp has quit [Ping timeout: 255 seconds]
m_3 has quit [Ping timeout: 255 seconds]
franks2 has quit [Ping timeout: 255 seconds]
dyreshark has quit [Ping timeout: 255 seconds]
akkad has quit [Ping timeout: 255 seconds]
ctp has quit [Ping timeout: 255 seconds]
xxi has quit [Ping timeout: 255 seconds]
yokel has quit [Ping timeout: 255 seconds]
claw__ has joined #ruby
clocKwize_ has quit [Ping timeout: 255 seconds]
ahmads_ has quit [Ping timeout: 255 seconds]
DEA7TH_ has quit [Ping timeout: 255 seconds]
fella7s has quit [Ping timeout: 255 seconds]
germanstudent_ has quit [Ping timeout: 255 seconds]
|stef_204| has quit [Ping timeout: 255 seconds]
Ilyas__ has quit [Ping timeout: 255 seconds]
yliu_ has quit [Ping timeout: 255 seconds]
claw_ has quit [Ping timeout: 255 seconds]
sumark_ has quit [Ping timeout: 255 seconds]
chrisg_ has quit [Ping timeout: 255 seconds]
Arahael_Twin has quit [Ping timeout: 255 seconds]
froggy__ has quit [Ping timeout: 255 seconds]
pr00t_ has quit [Ping timeout: 255 seconds]
pydave6367 has quit [Ping timeout: 255 seconds]
sivoais_ has quit [Ping timeout: 255 seconds]
devyn has joined #ruby
mahlon__ has quit [Ping timeout: 255 seconds]
Hamled has quit [Ping timeout: 255 seconds]
Kilobyte|StupidC has quit [Ping timeout: 255 seconds]
IceyEC has quit [Ping timeout: 255 seconds]
m8 has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
yfeldblu_ has joined #ruby
chrisg has joined #ruby
phutchins has joined #ruby
m_3 has joined #ruby
devdazed_ has joined #ruby
franks2 has joined #ruby
ixx has joined #ruby
yokel has joined #ruby
pydave6367 has joined #ruby
axisys has joined #ruby
anaeem1_ has joined #ruby
devdazed_ has quit [Client Quit]
sivoais has joined #ruby
yliu has joined #ruby
Arahael has joined #ruby
ixx is now known as Guest53170
Hamled has joined #ruby
IceyEC has joined #ruby
sparrovv has quit [Ping timeout: 240 seconds]
ctp has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
uxp has joined #ruby
agjacome has joined #ruby
<izzol2>
thanks jhass and toertore :-) I will.
b1nd__ has joined #ruby
dyreshark has joined #ruby
ahmads has joined #ruby
germanstudent has joined #ruby
Kilo`byte has joined #ruby
yfeldblu_ has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clocKwize has joined #ruby
kloeri has quit [Ping timeout: 624 seconds]
bmn has joined #ruby
sumark has joined #ruby
nickjj_ is now known as nickjj
W0rmDr1nk has joined #ruby
nickjj has quit [Changing host]
nickjj has joined #ruby
akkad has joined #ruby
pr00t has joined #ruby
kloeri has joined #ruby
agjacome_ has joined #ruby
agjacome_ has quit [Client Quit]
agjacome has quit [Ping timeout: 250 seconds]
Ilyas_ has quit [Ping timeout: 240 seconds]
britneywright has joined #ruby
hydrajump has joined #ruby
fsapo has joined #ruby
dseitz has joined #ruby
|stef_204| has joined #ruby
cuqa has joined #ruby
yfeldblum has joined #ruby
zenspider has joined #ruby
sparrovv has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
dioms___ has quit [Ping timeout: 240 seconds]
freerobby has quit [Read error: Connection reset by peer]
Bumptiou_ has joined #ruby
froggy__ has joined #ruby
tlarevo_ has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
Arahael has quit [Ping timeout: 240 seconds]
m8tt8 has joined #ruby
Arahael has joined #ruby
tlarevo has joined #ruby
motto has quit [Ping timeout: 240 seconds]
froggy_ has quit [Ping timeout: 240 seconds]
Bumptious has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
_Andres has joined #ruby
ndrei has quit [Quit: Lost terminal]
Pharaoh2 has joined #ruby
eam_ has joined #ruby
Nigel_ has joined #ruby
tessi_zz has quit [Ping timeout: 272 seconds]
tomgavin has quit [Ping timeout: 272 seconds]
MissionCritical has quit [Ping timeout: 272 seconds]
eam has quit [Ping timeout: 272 seconds]
Xuerian has quit [Ping timeout: 272 seconds]
Miron has quit [Ping timeout: 272 seconds]
kke has quit [Ping timeout: 272 seconds]
G has quit [Ping timeout: 272 seconds]
benlakey has quit [Ping timeout: 272 seconds]
vcoinminer____ has quit [Ping timeout: 272 seconds]
benlakey has joined #ruby
bmurt has joined #ruby
tessi_zz has joined #ruby
Xuerian has joined #ruby
_Andres has quit [Client Quit]
arup_r has quit [Ping timeout: 240 seconds]
vcoinminer____ has joined #ruby
cirn0 has joined #ruby
mjuszczak has quit [Ping timeout: 272 seconds]
sparrovv has quit [Remote host closed the connection]
mjuszczak has joined #ruby
kith_ has joined #ruby
freerobby has quit [Quit: Leaving.]
Pharaoh2 has quit [Ping timeout: 240 seconds]
sparrovv has joined #ruby
Nigel_ is now known as G
jusmyth has joined #ruby
jusmyth has quit [Remote host closed the connection]
OffTheRails has joined #ruby
perrier_ has quit [Ping timeout: 272 seconds]
cwc has quit [Ping timeout: 272 seconds]
sptq has quit [Ping timeout: 272 seconds]
BeanDip has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
mr_rich101 has quit [Ping timeout: 272 seconds]
DrForr has joined #ruby
Obversity has joined #ruby
bfrizzle_ has quit [Ping timeout: 272 seconds]
kaffepanna has quit [Ping timeout: 272 seconds]
bhaak has quit [Ping timeout: 272 seconds]
dfedde has quit [Ping timeout: 272 seconds]
snapcase has quit [Ping timeout: 272 seconds]
aep has quit [Ping timeout: 272 seconds]
parus has quit [Ping timeout: 272 seconds]
tonini has quit [Ping timeout: 272 seconds]
masak has quit [Ping timeout: 272 seconds]
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
tlarevo_ has joined #ruby
dphase has quit [Ping timeout: 272 seconds]
kith has quit [Ping timeout: 272 seconds]
TTilus has quit [Ping timeout: 272 seconds]
rtl has quit [Ping timeout: 272 seconds]
ryanneufeld has quit [Ping timeout: 272 seconds]
slash_beep has quit [Ping timeout: 272 seconds]
Rennex has quit [Ping timeout: 272 seconds]
teejar has quit [Ping timeout: 272 seconds]
xybre has quit [Ping timeout: 272 seconds]
SirCmpwn has quit [Ping timeout: 272 seconds]
finges has quit [Ping timeout: 272 seconds]
cirn0 has quit [Ping timeout: 240 seconds]
tlarevo has quit [Ping timeout: 240 seconds]
<Obversity>
Spent this weekend learning Ruby's syntax, feeling pretty confident. Anyone got any suggestions for where I should start with Rails?
RealMarc has joined #ruby
kaffepanna has joined #ruby
parus has joined #ruby
<toertore>
just start with any tutorial
<jhass>
guides.rubyonrails.org
<Obversity>
A website, a tutorial, a project idea to learn with -- I'll take any suggestions really
<a___>
I was going to facetiously say trashcan :)
sparrovv has quit [Ping timeout: 250 seconds]
rtl has joined #ruby
<toertore>
at this point they will all cover the stuff you need to know
kke has joined #ruby
earthquake has quit [Quit: earthquake]
<Obversity>
Cheers for the guides link. Looks great.
perrier_ has joined #ruby
ndrei has joined #ruby
ryanneufeld has joined #ruby
mr_rich101 has joined #ruby
<jhass>
Obversity: just pick a small project to built along the way, the hello world example is a todo list manager. If you have further questions about Rails visit #RubyOnRails
dphase has joined #ruby
teejar has joined #ruby
SirCmpwn has joined #ruby
bhaak has joined #ruby
bfrizzle has joined #ruby
toertore is now known as toretore
mist has quit [Ping timeout: 604 seconds]
<Obversity>
That's my problem: I'm awful at picking projects to learn with. Sometimes I wish I lived in a dictatorship. Then I remember how much I like food that's not potatoes.
sptq has joined #ruby
<toretore>
potatoes are awesome man
slash_beep has joined #ruby
mist_ has joined #ruby
<toretore>
you shall build a blog
cwc has joined #ruby
<toretore>
there. it's decided for you
<toretore>
benn
tonini has joined #ruby
<Obversity>
A blog? That sounds like a sufficiently simple task. Excellent. :D
<toretore>
do it
aep has joined #ruby
<toretore>
and if you're not done in 15 minutes you shall be reprimanded
<Obversity>
>.>
<Obversity>
*/regrets living in dictatorship now*
edwardloveall has joined #ruby
MissionCritical has joined #ruby
banister has joined #ruby
ndRx has joined #ruby
HeartbrokenTR has joined #ruby
tlarevo has joined #ruby
masak has joined #ruby
mist_ is now known as mist
masak is now known as Guest83561
sevenseacat has joined #ruby
Rennex has joined #ruby
dfedde has joined #ruby
xybre has joined #ruby
finges has joined #ruby
tlarevo_ has quit [Ping timeout: 240 seconds]
kachi8 has joined #ruby
timonv_ has joined #ruby
TheMoonMaster_ is now known as TheMoonMaster
SDr has quit [Ping timeout: 260 seconds]
SDr has joined #ruby
arup_r has joined #ruby
TTilus has joined #ruby
bashrw has joined #ruby
gaussblurinc1 has joined #ruby
bmurt has quit []
nucc has joined #ruby
claymore_ has quit [Ping timeout: 240 seconds]
rimenes_ has joined #ruby
ndRx has quit [Remote host closed the connection]
rimenes has quit [Ping timeout: 240 seconds]
<nucc>
$stdout = Thread.current[:stdout], in the main thread define it to STDOUT, in the subthread use the IO that you need...
<nucc>
ignore me...
claymore_ has joined #ruby
<matti>
;D
kaspergrubbe has quit [Remote host closed the connection]
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
HeartbrokenTR is now known as Heartbroken
Heartbroken is now known as Guest5302
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adironduck has quit [Quit: adironduck]
<edwardloveall>
i'm using pry, and i'm overriding inspect on a few objects
<edwardloveall>
however, when i override, i loose pry's nice color formatting of the objects
<edwardloveall>
is there a way to keep the nice automatic formatting
anaeem1_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 245 seconds]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewoco has quit [Read error: Connection reset by peer]
<a___>
def << comment; comments << comment; end
<a___>
what does that mean? :/
<a___>
Never seen def <<
BeanDip has joined #ruby
<edwardloveall>
that's defining the << method
<edwardloveall>
so like, when you have an array, and you do array << value to push it on to the end
<edwardloveall>
you can define what that does
fold has joined #ruby
<edwardloveall>
same with pretty much any other symbol (i think)
<a___>
uh-oh
<a___>
def <<(comment); comments << comment; end
<a___>
I believe I have now parsed it.
near77 has quit [Quit: Page closed]
<a___>
edwardloveall: thanks :)
<edwardloveall>
that makes more sense to me
<edwardloveall>
thumbs up
Deele has quit [Ping timeout: 244 seconds]
krz has joined #ruby
<a___>
I'm in two minds about omitting parens in ruby
<a___>
It just causes way too many parse errors to ever be used consistentl
<a___>
s/$/y/
<edwardloveall>
i'm also of two minds. it's probably my favorite and least favorite feature!
<edwardloveall>
i try to define it on all methods
<edwardloveall>
def foo (arg) should always have parens
<a___>
yup
Wolland has joined #ruby
<edwardloveall>
when calling it, that's where it gets a bit tricky
<edwardloveall>
things like .to in rspec i never use parens
<edwardloveall>
but always for expect()
cirn0 has joined #ruby
BeanDip has quit [Ping timeout: 250 seconds]
<edwardloveall>
so ¯\_(ツ)_/¯
<a___>
edwardloveall: ha, yeah, we pretty much follow the same conventions
Mekkis has quit [Excess Flood]
<edwardloveall>
i just aim for clarity
adironduck has quit [Quit: adironduck]
Mekkis has joined #ruby
<edwardloveall>
but it's hard when there are no magic bullet ruls
<edwardloveall>
rules*
banister has joined #ruby
soulcake has quit [Ping timeout: 244 seconds]
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
Deele has joined #ruby
<yxhuvvd>
personally I don't see how def foo(bar) is any clearer than def foo bar. def expressions are obvious anyhow since they are indented differently.
abuzze has joined #ruby
<edwardloveall>
it's certainly arguable
Wolland has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
<edwardloveall>
i just find for my eyes and scanning, parens when defining a method is best
tony_ is now known as mrapple
<edwardloveall>
for example, with a___
mrapple is now known as MonsieurApple
<edwardloveall>
's question, it would have been very clear what def << was
<edwardloveall>
or, at least clearer
cirn0 has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
abuzze has quit [Remote host closed the connection]
Cheezebox has joined #ruby
rimenes has joined #ruby
linojon has joined #ruby
Guest83561 is now known as masak_grr
toastynerd has joined #ruby
rimenes_ has quit [Ping timeout: 240 seconds]
eam_ is now known as eam
jonathan_alban has joined #ruby
seydar has joined #ruby
_maes_ has joined #ruby
<seydar>
i've got a rackup process running and i'm looking through the logs and i'm seeing a strange long line: http://pastie.org/9515215
<seydar>
what does it mean? why would the source host be so long?
klmlfl has joined #ruby
<edwardloveall>
i do not know
<edwardloveall>
sorry
smss1995 has joined #ruby
nhhagen has joined #ruby
KnownSyntax__ has joined #ruby
klmlfl_ has joined #ruby
zettam has quit [Ping timeout: 246 seconds]
havenn has joined #ruby
moxTreeDev has joined #ruby
ylluminarious has joined #ruby
sarkis has joined #ruby
shelling_ has joined #ruby
akitada__ has joined #ruby
<jhass>
seydar: could be a bug in the reverse proxy, hard to tell
skmp__ has joined #ruby
<jhass>
might as well be an attack attempt, who knows
nifty_ has joined #ruby
dukedave_ has joined #ruby
antonishen_ has joined #ruby
dmoe_______ has joined #ruby
<jhass>
I wouldn't worry too much unless it's always that way
bjeanes_ has joined #ruby
brianherman has joined #ruby
Y_Ichiro has joined #ruby
brianherman_ has joined #ruby
jeregrine_ has joined #ruby
xenogis has joined #ruby
Y_Ichiro has quit [Changing host]
Y_Ichiro has joined #ruby
ceej__ has joined #ruby
diegok has joined #ruby
mr-fooba_ has joined #ruby
ELLIOTTCABLE_ has joined #ruby
toastyne_ has joined #ruby
pagioss has joined #ruby
xMopxShe- has joined #ruby
totimkop1 has joined #ruby
linojon_ has joined #ruby
flori has joined #ruby
d3scala has joined #ruby
nhhagen has quit [Ping timeout: 250 seconds]
edwardly_ has joined #ruby
PaulePan1er has joined #ruby
raddazong has joined #ruby
Hien_ has joined #ruby
tarcwynne__ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
mage__ has joined #ruby
<seydar>
jhass: yeah maybe i should use someone else's proxy implementation
JaTochNietDan has quit [Ping timeout: 260 seconds]
dmoe______ has quit [Ping timeout: 260 seconds]
Seich has quit [Ping timeout: 260 seconds]
Mars` has quit [Ping timeout: 260 seconds]
halfdan has quit [Ping timeout: 260 seconds]
mr-foobar has quit [Ping timeout: 260 seconds]
nopc0de- has quit [Ping timeout: 260 seconds]
dukedave has quit [Read error: Connection reset by peer]
diego_k has quit [Ping timeout: 260 seconds]
edwardly has quit [Ping timeout: 260 seconds]
bjeanes has quit [Ping timeout: 260 seconds]
tadejm has quit [Ping timeout: 260 seconds]
tarcwynne_ has quit [Ping timeout: 260 seconds]
nifty has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
Jello_Raptor has quit [Ping timeout: 260 seconds]
zz_anildigital has quit [Ping timeout: 260 seconds]
zz_jrhorn424 has quit [Ping timeout: 260 seconds]
akitada_ has quit [Ping timeout: 260 seconds]
skmp_ has quit [Ping timeout: 260 seconds]
Norrin has quit [Ping timeout: 260 seconds]
jamooo has quit [Ping timeout: 260 seconds]
xMopxShell has quit [Ping timeout: 260 seconds]
s_e has quit [Ping timeout: 260 seconds]
elcuervo has quit [Ping timeout: 260 seconds]
[42] has quit [Ping timeout: 260 seconds]
Hien has quit [Ping timeout: 260 seconds]
Lulzon_ has quit [Ping timeout: 260 seconds]
cbetta has quit [Ping timeout: 260 seconds]
isomorphismes has quit [Ping timeout: 260 seconds]
C0deMaver1ck has quit [Ping timeout: 260 seconds]
toastynerd has quit [Ping timeout: 260 seconds]
Mongey has quit [Ping timeout: 260 seconds]
Kovensky has quit [Ping timeout: 260 seconds]
dmst has quit [Ping timeout: 260 seconds]
KnownSyntax_ has quit [Ping timeout: 260 seconds]
hoelzro has quit [Ping timeout: 260 seconds]
Apocalypse has quit [Ping timeout: 260 seconds]
lfox has quit [Ping timeout: 260 seconds]
george2 has quit [Ping timeout: 260 seconds]
trollface has quit [Ping timeout: 260 seconds]
Nightmare has quit [Ping timeout: 260 seconds]
zenojis has quit [Ping timeout: 260 seconds]
jpierre03 has quit [Ping timeout: 260 seconds]
Y_Ichiro_ has quit [Ping timeout: 260 seconds]
b06464f377 has quit [Ping timeout: 260 seconds]
shelling has quit [Ping timeout: 260 seconds]
neersighted has quit [Ping timeout: 260 seconds]
tris has quit [Ping timeout: 260 seconds]
rurban has quit [Ping timeout: 260 seconds]
moonshine has quit [Ping timeout: 260 seconds]
antonishen has quit [Ping timeout: 260 seconds]
onewheelskyward has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 260 seconds]
Lewix has quit [Ping timeout: 260 seconds]
madhatter has quit [Ping timeout: 260 seconds]
swartwulf has quit [Ping timeout: 260 seconds]
mordof has quit [Ping timeout: 260 seconds]
[BNC]pagioss has quit [Ping timeout: 260 seconds]
flori_ has quit [Ping timeout: 260 seconds]
PaulePanter has quit [Ping timeout: 260 seconds]
cmosguy has quit [Ping timeout: 260 seconds]
tommylommykins has quit [Ping timeout: 260 seconds]
blackgoat_ has quit [Ping timeout: 260 seconds]
mage_ has quit [Ping timeout: 260 seconds]
klmlfl has quit [Ping timeout: 260 seconds]
qpls has quit [Ping timeout: 260 seconds]
Dr3amc0d3r|away has quit [Ping timeout: 260 seconds]
MindfulMonk has quit [Ping timeout: 260 seconds]
nisstyre has quit [Ping timeout: 260 seconds]
totimkopf has quit [Ping timeout: 260 seconds]
ramblinpeck_ has quit [Ping timeout: 260 seconds]
acalewin has quit [Ping timeout: 260 seconds]
rotor has quit [Ping timeout: 260 seconds]
Brando753 has quit [Ping timeout: 260 seconds]
phreax_ has quit [Ping timeout: 260 seconds]
Nilium has quit [Ping timeout: 260 seconds]
descala has quit [Ping timeout: 260 seconds]
davidcelis has quit [Ping timeout: 260 seconds]
majoh has quit [Ping timeout: 260 seconds]
LBRapid has quit [Ping timeout: 260 seconds]
pgmcgee- has quit [Ping timeout: 260 seconds]
theRoUS has quit [Ping timeout: 260 seconds]
musicmatze has quit [Ping timeout: 260 seconds]
Guest85414______ has quit [Ping timeout: 260 seconds]
sfr^^ has quit [Ping timeout: 260 seconds]
jokke has quit [Ping timeout: 260 seconds]
amitchellbullard has quit [Ping timeout: 260 seconds]
linojon has quit [Ping timeout: 260 seconds]
Klumben has quit [Ping timeout: 260 seconds]
qpls has joined #ruby
Jello_Raptor has joined #ruby
Nilium_ has joined #ruby
asteve has joined #ruby
arup_r has quit [Ping timeout: 260 seconds]
bauruine has quit [Ping timeout: 260 seconds]
johnhamelink has quit [Ping timeout: 260 seconds]
SecretAgent has quit [Ping timeout: 260 seconds]
MindfulMonk_ is now known as MindfulMonk
DarkFoxDK_ is now known as DarkFoxDK
acalewin_ is now known as acalewin
lfox_ is now known as lfox
Guest5302 is now known as Heartbroken
NorrinRadd is now known as Norrin
onewheelskyward has joined #ruby
Pharaoh2 has quit [Ping timeout: 246 seconds]
tadejm has joined #ruby
<shevy>
cool.. a rack proxy
edwardly_ is now known as edwardly
JaTochNietDan_ is now known as JaTochNietDan
ramblinpeck_ has joined #ruby
pgmcgee has joined #ruby
<seydar>
oh man i work for the government and i can't have a computer or phone, so sometimes i get bored and write code on paper. it's actually super fun
nopc0de has joined #ruby
Lewix has joined #ruby
<waxjar>
i use it sometimes to write my shopping list
linojon_ is now known as linojon
LBRapid_ has joined #ruby
Guest85414______ has joined #ruby
dmoe_______ is now known as dmoe______
LBRapid_ is now known as LBRapid
jeregrine_ is now known as jeregrine
Brando753-o_O_o is now known as Brando753
Kov|kasumi is now known as Kovensky
skmp__ is now known as skmp_
george2 has joined #ruby
b06464f377 has joined #ruby
Mars` has joined #ruby
bauruine has joined #ruby
Paradox has joined #ruby
]42[ is now known as [42]
dmst has joined #ruby
tris- is now known as tris
amitchellbullard has joined #ruby
<jhass>
I only wrote code with pen and paper during exams
dukedave_ is now known as dukedave
cbetta_ has joined #ruby
Cheezebox has quit [Remote host closed the connection]
mordof has joined #ruby
<jhass>
not even in the preparations :D
krz has joined #ruby
majoh has joined #ruby
rotor has joined #ruby
Fusl has joined #ruby
jpierre03 has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
rurban has joined #ruby
musicmatze has joined #ruby
Dr3amc0d3r|away has joined #ruby
tarcwynne__ is now known as tarcwynne_
nifty_ is now known as nifty
<apeiros>
the last time I wrote code on paper must be >20y ago…
isomorphismes has joined #ruby
davidcelis has joined #ruby
bashrw has quit [Quit: bashrw]
asteve has quit [Client Quit]
sickdan has joined #ruby
Cheezebox has joined #ruby
swartwulf has joined #ruby
<apeiros>
fuck, I'm old :(
jokke has joined #ruby
<havenn>
yesterday for me
blackgoat_ has joined #ruby
<havenn>
paper isn't great at interpreting but it's decent at persistence
elcuervo has joined #ruby
Apocalypse has joined #ruby
<shevy>
true
nisstyre has joined #ruby
<havenn>
hard to refactor too
<shevy>
even toilet paper
<havenn>
then erasers don't even work
elcuervo is now known as Guest59329
<havenn>
just tears the paper
hoelzro has joined #ruby
<seydar>
apeiros: hey like 5 years ago you told me that when you get bored you write persistance systems or DBs, and ever since then whenever i'm bored i just rewrite something i enjoy using. i wanna thank you for that
<shevy>
I actually use small papers for "cheat sheets" to memorize content quickly
<havenn>
shevy: tp squares?
<shevy>
and I happily colourize them. sadly, most colourizers make the white paper semi-transparent :(
suy_ is now known as suy
<shevy>
I kinda need OLED papers one day...
toastyne_ has quit [Remote host closed the connection]
<apeiros>
seydar: heh, you're welcome :D
soasme has joined #ruby
<shevy>
havenn dunno, mostly I just realized that if I condense information as much as possible, I can memorize more, and colour emphasis helps as well
arup_r has joined #ruby
seydar has quit [Quit: leaving]
theRoUS has joined #ruby
<havenn>
shevy: color helps me remember too
<havenn>
shevy: and shape
antonishen_ is now known as antonishen
Mongey has joined #ruby
voodoofish1 has quit [Quit: Leaving.]
voodoofish has joined #ruby
<shevy>
yeah
zeroNones has joined #ruby
BeanDip has quit [Ping timeout: 250 seconds]
Klumben has joined #ruby
jamooo has joined #ruby
kith_ is now known as kit
kit is now known as kith
sea_local has joined #ruby
anildigital has joined #ruby
sea_local has quit [Remote host closed the connection]
SecretAgent has joined #ruby
wasa has joined #ruby
sea_local has joined #ruby
tommylommykins has joined #ruby
s_e has joined #ruby
s_e_ has quit [*.net *.split]
mage__ has quit [*.net *.split]
Deele has quit [*.net *.split]
soulcake has quit [*.net *.split]
Mekkis has quit [*.net *.split]
peckermanzzz has quit [*.net *.split]
Caius has quit [*.net *.split]
elementz has quit [*.net *.split]
soixante has quit [*.net *.split]
io_syl has quit []
mage_ has joined #ruby
claw__ has quit [Read error: Connection reset by peer]
claw__ has joined #ruby
poulet_a has joined #ruby
<shevy>
hmm
<shevy>
if you guys were to start a webframework from scratch today in ruby
rimenes_ has joined #ruby
<shevy>
what would you focus on getting right in the first place?
<Tom__Orrow>
Its 10mb on start and 18 on finish of the code even if all variables is nil now.
osvico has quit [Ping timeout: 245 seconds]
Cache_Money has quit [Quit: Cache_Money]
<apeiros>
Tom__Orrow: a) GC does not necessarily kick in the moment you no longer reference an object
gregf has quit [Quit: WeeChat 0.4.3]
<eam>
in fact it may never ever run
<apeiros>
b) even after GC, ruby may or may not return memory to the OS
<waxjar>
c) 8mb is peanuts :p
brianherman has joined #ruby
brianherman_ has joined #ruby
SCHAAP137 has quit [Ping timeout: 250 seconds]
lkba has quit [Ping timeout: 240 seconds]
<apeiros>
waxjar: not if you try to run 20 rails instances on a 512MB RAM VM :-D
<Tom__Orrow>
Well its 8mb here and about 1gb in working project. So how to deal with it?
<waxjar>
fair enough :p
<eam>
use a language that lets you control memory allocations :)
<apeiros>
Tom__Orrow: impossible to tell from the given example
<apeiros>
Tom__Orrow: write it in a way which avoids large allocations
<apeiros>
rewrite it as a native extension
kyunsiu has joined #ruby
<eam>
hackjob it with GC.start
<apeiros>
rewrite it to generally consume less memory
<apeiros>
buy more ram
<eam>
re-exec periodically
<apeiros>
fork off a process to do the work
<jhass>
Tom__Orrow: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<eam>
ramdoubler
smss1995 has quit [Quit: Leaving]
gondalier has joined #ruby
<apeiros>
blech
<apeiros>
I guess when I take that month of holidays I have left over, I'll finally write that chanop bot
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Tom__Orrow>
Actually its a sidekiq worker. At hte end of the work it can use about 100mb. And looks like on next call it still uses 100mb but after work its 200mb already...
Boohbah has quit [Read error: Connection reset by peer]
<apeiros>
that sounds like you indeed keep holding on to your objects somewhere. i.e., you leak
<waxjar>
maybe you're keeping a reference to your data somewhere
l0l0 has joined #ruby
<l0l0>
==
l0l0 has quit [Quit: leaving]
sea_local has joined #ruby
kaspergrubbe has joined #ruby
gondalier has quit [Read error: Connection reset by peer]
microdex has joined #ruby
gondalier has joined #ruby
claymore_ has quit [Ping timeout: 250 seconds]
hellangel7 has joined #ruby
Caius has joined #ruby
Deele has joined #ruby
peckermanzzz has joined #ruby
hellangel7 has quit [Max SendQ exceeded]
soulcake has joined #ruby
claymore_ has joined #ruby
Cache_Money has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellangel7 has joined #ruby
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
gondalier has quit [Client Quit]
osvico has joined #ruby
Mekkis has joined #ruby
Boohbah has joined #ruby
dorei has joined #ruby
jmbrown412 has joined #ruby
deyuan has joined #ruby
tlarevo has quit [Ping timeout: 250 seconds]
<AlexRussia>
i need in your help folks
Snowstormer has joined #ruby
<dorei>
share your problem with us AlexRussia
benzrf|offline is now known as benzrf
<AlexRussia>
dorei: i want in easy way to use one file(as layout) and other files(will be include somewhere in layout)
wallerdev has joined #ruby
<AlexRussia>
dorei: i will use erb, but i still sucks with understand :(
jmbrown4_ has joined #ruby
tlarevo has joined #ruby
<dorei>
what troubles you with erb?
<AlexRussia>
dorei: idk how to wrap it
<wasamasa>
clearly, erb is too easy to get
<dorei>
AlexRussia: let me find what I use
cirn0 has joined #ruby
yfeldblum has joined #ruby
<AlexRussia>
dorei: i mean, in layout i need something like 'lalalalal<%=yield%>lalalalalal', but idk how to wrap yield
<jhass>
I think you should tell us something about your context. Are you in any kind of webframework?
jmbrown412 has quit [Ping timeout: 240 seconds]
<AlexRussia>
jhass: no, my code should retun static page, isn't for dynamic
Cheezebox has quit [Remote host closed the connection]
<jhass>
did you consider a static page generator like middleman?
<dorei>
AlexRussia: why yield? i dont understard
mockra has joined #ruby
<jhass>
jekyll
Cheezebox has joined #ruby
<jhass>
*or ^
<dorei>
AlexRussia: what do you want to be yielded?
rimenes_ has joined #ruby
<shevy>
do you guys use numbers in methods?
<shevy>
like "def abc1"
cirn0 has quit [Ping timeout: 240 seconds]
<jhass>
no
yfeldblum has quit [Ping timeout: 255 seconds]
hamakn_ has quit [Remote host closed the connection]
Ilyas has joined #ruby
Lewix has quit [Remote host closed the connection]
axilla has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
joast has joined #ruby
<AlexRussia>
jhass: i mean, i just need something like jekyll, but not at all.And not like blog-style i guess :D
<shevy>
a few of these are probably outdated by now
<shevy>
but I think even a corrected list has well over +200 entries
Alina-malina has quit [Ping timeout: 240 seconds]
<havenwood>
ah yeah, i was just thinking server
<havenwood>
eek
<shevy>
the joy of modularity hehe
sparrovv has joined #ruby
speaking1ode has quit [Ping timeout: 246 seconds]
<havenwood>
oops, regexp fail, i shoulda tested that
mockra_ has quit [Remote host closed the connection]
mockra has joined #ruby
<shevy>
I guess they don't embed the version in a binary
GriffinHeart has joined #ruby
<havenwood>
shevy: if they were all installed at once you could look at ABI and extrapolate version numbers, but this is presuming various parts are various versions, yeah?
<havenwood>
uhg
<havenwood>
here lie dragons
<havenwood>
shevy: need it to be cross-platform?
mockra has quit [Ping timeout: 250 seconds]
<havenwood>
shevy: you might be able to query package manager, depending
yfeldblum has joined #ruby
<havenwood>
shevy: arch?
dioms___ has joined #ruby
<havenwood>
or wait, are you slackware? i can't recall
GriffinHeart has quit [Ping timeout: 240 seconds]
britneywright has joined #ruby
mockra has joined #ruby
carraroj has joined #ruby
<shevy>
yeah cross platform
<shevy>
nono it is not for me
<havenwood>
then nvm
<shevy>
it is just an additional feature for the sys-stat-info-showing thingy
<shevy>
I myself know what version I have
<shevy>
I just fetch the source :)
Wolland has quit [Remote host closed the connection]
<havenwood>
wouldn't be fun to do cross-platform package manager support, and only some would work anyways
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
banister: so you're the guy behind pry?
<banister>
wasamasa yeah
<wasamasa>
banister: thanks a lot
<banister>
wasamasa np, how did you find out ?
bjz has quit [Read error: Connection reset by peer]
<wasamasa>
although I have to admit I'm only using it because it doesn't have the "Continuation bug when hitting the Enter key on an empty line"
lolmaus has quit [Ping timeout: 250 seconds]
<wasamasa>
banister: I read the README
bjz has joined #ruby
<wasamasa>
banister: yes, I'm one of those guys
zorak has joined #ruby
<banister>
:)
<banister>
np
<wasamasa>
the other reason is because I'm trying to fix some issues in inf-ruby
Sawbones has joined #ruby
<wasamasa>
which can use pry among a few other things
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa>
banister: so, if something such as emacs has issues when running pry as subprocess, is the official solution to make pry aware of emacs and disable potentially problematic options?
<wasamasa>
banister: or is it rather advised to edit the pryrc yourself and make it check whether it's run inside emacs?
<havenwood>
maybe if we made Lattice really nice people would be willing to leave Rack for Webmachine?
Snowstormer is now known as moonshine
chrisg has joined #ruby
chrisg has joined #ruby
chrisg has quit [Changing host]
<apeiros>
havenwood: am I mistaken or does that URL not talk about how it goes from URL -> Resource?
IcyDragon has joined #ruby
OffTheRails has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 263 seconds]
nhhagen has quit [Ping timeout: 260 seconds]
BeanDip has joined #ruby
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
professor_soap has quit []
IceDragon has quit [Disconnected by services]
IcyDragon is now known as IceDragon
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
bearish has quit [Remote host closed the connection]
x1337807x has joined #ruby
willgorman has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
lolmaus_ has joined #ruby
sfr^ has quit [Max SendQ exceeded]
Heartbroken has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 240 seconds]
xp_prg has quit [Disconnected by services]
sfr^ has joined #ruby
sheath__ has joined #ruby
{xenomorph} is now known as xenomorph
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
RandyT has quit [Ping timeout: 240 seconds]
benzrf|offline is now known as benzrf
nucc has quit [Ping timeout: 250 seconds]
mr_rich101 has joined #ruby
lolmaus has quit [Ping timeout: 250 seconds]
LangeOortjes has quit []
xp_prg has joined #ruby
<havenwood>
apeiros: not in the sense that a Rack apps maps them
sailias has quit [Ping timeout: 260 seconds]
jheg has quit [Quit: jheg]
TheTFEF is now known as Nightmare
<havenwood>
but yeah, you can map a url to a resource
<apeiros>
havenwood: that's not what I asked :)
<apeiros>
havenwood: router or not, somehow you go from URL to "invoke some method on some class/object". and that page does not say how it's done there.
<apeiros>
at least I don't see it. and I'm interested in what its concept is.
dopie has joined #ruby
Wolland has joined #ruby
<apeiros>
given that from what you said I gathered that it does not use a router concept.
<dopie>
ugh
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Renich>
hey guys; why doesn't this work? (0..15).map( &:to_s(16) )
<Renich>
if you remove (16), it does
cirn0 has joined #ruby
<apeiros>
havenwood: so we're back at "yay! lets use a router!" :-p
<havenwood>
apeiros: the documentation is terribad and i'm not very familiar with webmachine internals :(
<havenwood>
apeiros: right, but the FSM part is good! :P
<apeiros>
havenwood: sure
<apeiros>
but that's not what I was complaining about to begin with ;-)
<havenwood>
fair enough
<apeiros>
I'm still not settled on how I'll solve the issue, though
tjortho has joined #ruby
cirn0 has quit [Remote host closed the connection]
<jhass>
Renich: &:to_s is &(:to_s) that is calling the & operator with the symbol :to_s
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
but the current approach is somewhat akin /api/v1/user:12/notes --> Api::V1::User::Notes.scope(user: 12).index
<dopie>
jhass, where do put pp json?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cirn0 has joined #ruby
ylluminarious has quit [Quit: Leaving...]
tlarevo has quit [Remote host closed the connection]
<jhass>
Renich: there's no method in that expression, thus you can't invoke it
<jhass>
dopie: somewhere after JSON.parse
<jhass>
json being the result of it
tlarevo has joined #ruby
<dopie>
ahhhh much better
tjortho has left #ruby [#ruby]
Wolland has quit [Remote host closed the connection]
<havenwood>
apeiros: :O what's that for?
<apeiros>
my own little webframework
Wolland has joined #ruby
<apeiros>
super opinionated and focused :)
<apeiros>
ETA: 2027
<havenwood>
cool
anaeem1 has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
<apeiros>
e.g. its ORM is rather minimal and only runs with postgres 9.4+. but it leverages quite a couple of postgres' specialities
<havenwood>
sweet
hamakn has joined #ruby
<havenwood>
i wanna read the source!
<shevy>
don't read it luke
<apeiros>
it's not OSS yet
<shevy>
use it
<havenwood>
boo, well tell me when it is!
<apeiros>
will do
<shevy>
after he finishes his game
<shevy>
and halsbe
<havenwood>
sounds really interesting
<apeiros>
shevy: yes. I'll rewrite it in halsbe before releasing ;-)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
na
<shevy>
:(
sectionme has quit [Ping timeout: 260 seconds]
<Renich>
jhass: symbol? I don't get it. I thought it would run the to_s method on each
darkxploit has joined #ruby
<havenwood>
apeiros: if you need any beta testers, poke me :P
<Renich>
(0..15).map( &:to_s )
<Renich>
that works
<jhass>
Renich: that's the effect but not the mechanism
Wolland has quit [Read error: No route to host]
<apeiros>
havenwood: sure thing :) I hope I get you to contribute too ;-)
<Renich>
jhass: oh
Wolland has joined #ruby
<jhass>
Renich: You know what a Symbol is, right?
<apeiros>
havenwood: I'll probably un-privatize the github repo when I've done the first demo app, including all basic aspects of the framework. even if it will still be very much in motion at that time.
<Renich>
jhass: ys
p0sixpscl has joined #ruby
bauruine has quit [Ping timeout: 260 seconds]
<apeiros>
havenwood: ah, the main target is webapps, as opposed to websites. it's built to load "packages" as single files. i.e. what would probably be ~50-100 requests in an ordinary website is 1 request with that
tlarevo has quit [Ping timeout: 255 seconds]
<apeiros>
+N requests for the dynamic data
<jhass>
Renich: so, the & operator takes a proc and passes it as a block to a method: my_to_s = proc {|o| o.to_s }; array.map(&my_to_s)
Cheezebox has quit [Remote host closed the connection]
<jhass>
Renich: if the object passed is not a Proc, it calls to_proc on it first
kaspergrubbe_ has quit [Remote host closed the connection]
Cheezebox has joined #ruby
<apeiros>
interesting… reloading fixed the missing indents
poulet_a has quit [Remote host closed the connection]
<apeiros>
seems to be a problem with how github displays code
<jhass>
Renich: Symbol#to_proc conveniently calls the method with the name of the symbol on the first param
darkxploit has quit [Max SendQ exceeded]
<havenwood>
apeiros: i've had github css freak out on me too
BeanDip has quit [Ping timeout: 260 seconds]
darkxploit has joined #ruby
<apeiros>
havenwood: anyway, right now I got to earn me some free massages by reworking my favorite spa's website :D
<havenwood>
ha, nice
<p0sixpscl>
Is it possible to use a ruby script and require an existing rails app? like require the rails app and then in the ruby script write sth like "User.create({})" ?
<apeiros>
p0sixpscl: you better do it the other way round
<apeiros>
p0sixpscl: see rails runner
<p0sixpscl>
thanks :)
<apeiros>
p0sixpscl: but yes, it is possible
bauruine has joined #ruby
<p0sixpscl>
rails runner seems like a suitable solution.
sectionme has joined #ruby
<apeiros>
it's certainly the less-hassle option :)
lw has joined #ruby
<apeiros>
as you don't need to keep up your game with rails internals changes
GriffinHeart has joined #ruby
<p0sixpscl>
yeah good point
<jhass>
as said, rails runner or require_relative config/application
Cheezebox has quit [Ping timeout: 255 seconds]
edwardloveall has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
<edwardloveall>
any ideas on how I might test if something calling a function 0 to 3 times?
<edwardloveall>
i have a random(0..3).times
<edwardloveall>
calling a method
sectionme has quit [Ping timeout: 260 seconds]
<edwardloveall>
is there a good way to test that?
<edwardloveall>
one thing i though of is pulling the randomness out into it's own method
<edwardloveall>
and stubbing it
zettam_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
TheTopBloke has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
niklasb has joined #ruby
CuriousMind has joined #ruby
<CuriousMind>
Hello.
<edwardloveall>
hi
<jhass>
edwardloveall: you could seed with a known value
Wolland has quit [Remote host closed the connection]
<edwardloveall>
that's a good idea
Cheezebox has joined #ruby
mistergibson has joined #ruby
<CuriousMind>
Can someone tell me a channel that I can go to that can help me with windows?
codecop has quit [Remote host closed the connection]
<havenwood>
ahh, works in Pry but not irb... those pesky already-require's
<havenwood>
so what's the culprit?
ale4L3 has joined #ruby
GriffinHeart has joined #ruby
St_Marx has joined #ruby
wchun has quit [Ping timeout: 240 seconds]
drago777 has quit [Ping timeout: 245 seconds]
snorkra has quit [Ping timeout: 250 seconds]
vinky has quit [Read error: Connection reset by peer]
BeanDip has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
vinky has joined #ruby
drago777 has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
GriffinHeart has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 250 seconds]
_lexjm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
TheNet_ has joined #ruby
<gizmore>
for String we have "replace" to change it´s "value". what is it for Integer and Float?
elementz has joined #ruby
<centrx>
gizmore, String#replace is kind of a silly thing that is rarely used
mfmfmfmfmfmf has joined #ruby
TheNet has quit [Ping timeout: 240 seconds]
<centrx>
gizmore, There is no need for it with Integer and Float because those are basically fixed constants, while a String is a more complicated data structure
<zenspider>
gizmore: =
mijicd has quit [Remote host closed the connection]
<zenspider>
there really is no analog, nor does one really make sense
<zenspider>
esp for fixnums
_lexjm has joined #ruby
Xaitec has joined #ruby
chrisg has quit [Ping timeout: 240 seconds]
_lexjm has quit [Client Quit]
mijicd has joined #ruby
chrisg has joined #ruby
mary5030 has joined #ruby
Takle has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
mfmfmfmfmfmf has quit [Remote host closed the connection]
timonv_ has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
rubytor has quit [Quit: No Ping reply in 180 seconds.]