apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<shevy> I suppose most cheese types are soft, but there are also some like http://goo.gl/Nd9Rtw
Hobogrammer has quit [Ping timeout: 255 seconds]
pietr0 has quit [Quit: pietr0]
dvb_ua has joined #ruby
Dreamer3 has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
Dreamer3 has quit [Max SendQ exceeded]
<eam> Sardinia, Italy where Casu Marzu is standard fare
mikepack has quit [Ping timeout: 240 seconds]
<shevy> :)
<shevy> eam you've been there and ate your way through the cuisine?
Dreamer3 has joined #ruby
djbkd has quit [Remote host closed the connection]
<eam> nope
Bira has quit [Ping timeout: 245 seconds]
<lidaaa> so whats the problem just bite the holes
<lidaaa> the8thbit|work, check this http://hlee.iteye.com/blog/1318667
<eam> I hear the worst part is having to cover your eyes while you eat it
<the8thbit|work> shevy: what kind of cheese?
b00stfr3ak has quit [Ping timeout: 264 seconds]
<shevy> the8thbit|work hard to say... I kinda like the squishy ones the most
<shevy> but I meant the hard type of cheese in your case
<shevy> the one that is solid like granite
<lidaaa> Casu marzu (also called casu modde, casu cundídu, casu fràzigu in Sardinian language, or in Italian formaggio marcio, "rotten cheese") is a traditional Sardinian sheep milk cheese, notable for containing live insect larvae.
<lidaaa> yummi
ghostmoth has left #ruby [#ruby]
<shevy> I like gorgonzola-type cheese like this one http://goo.gl/Kztd2J the most
<shevy> cool
<eam> "Because the larvae in the cheese can launch themselves for distances up to 15 centimetres (6 in) when disturbed,[1][8] diners hold their hands above the sandwich to prevent the maggots from leaping."
<shevy> I don't think I know formaggio marcio
ghostmoth has joined #ruby
<shevy> ewwwww eam
<eam> you don't want them to jump into your eyes
b00stfr3ak has joined #ruby
<shevy> I don't wanna eat larvae
maletor has joined #ruby
<the8thbit|work> can they burrow into human flesh
<the8thbit|work> will the burrow into your eyes
tyfighter has joined #ruby
<lidaaa> eyes probably
<the8thbit|work> then you have maggot eyes
<shevy> I'm not gonna find out
<the8thbit|work> pew pew
<eam> burrow them into your belly
<the8thbit|work> omnomnom
aantix has quit [Quit: aantix]
jay___ is now known as rubyonrailed
oso96_2000 is now known as oso|away
havenwood has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sepp2k has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
sepp2k has joined #ruby
Pumukel has joined #ruby
toordog has quit []
tkuchiki has quit [Remote host closed the connection]
tylerkern has quit [Read error: Connection reset by peer]
jmeeuwen has quit [Ping timeout: 250 seconds]
tylerkern has joined #ruby
tylerkern has quit [Client Quit]
bruno- has joined #ruby
thetabyte has joined #ruby
thetabyte has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 264 seconds]
mikeg has quit [Remote host closed the connection]
guyz has quit [Quit: quit]
b00stfr3ak has quit [Ping timeout: 255 seconds]
asdasdasdasss has joined #ruby
maestrojed has joined #ruby
arya_ has joined #ruby
jmeeuwen has joined #ruby
robscormack has quit [Quit: This computer has gone to sleep]
_doctor has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_doctor has left #ruby [#ruby]
alexju_ has joined #ruby
alexju has quit [Read error: No route to host]
coldkey21 has quit [Remote host closed the connection]
Akagi201 has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
ra4king has joined #ruby
Primordus has quit [Quit: WeeChat 0.4.3]
mikesplain has joined #ruby
jmbrown412 has quit [Remote host closed the connection]
tyfighter has quit [Quit: <3]
jmbrown412 has joined #ruby
nanoyak has quit [Remote host closed the connection]
ramfjord has joined #ruby
godd2 has joined #ruby
Akagi201 has quit [Ping timeout: 240 seconds]
starkhallo has quit [Quit: WeeChat 1.0-dev]
asdasdasdasss has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
freerobby has joined #ruby
jmbrown412 has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
noop has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
dawkirst has quit [Read error: Connection timed out]
tylerkern has joined #ruby
noop has joined #ruby
slyv has joined #ruby
bradhe has joined #ruby
slyv has quit [Max SendQ exceeded]
crdsn has joined #ruby
fabrice31 has joined #ruby
crudson has quit [Ping timeout: 250 seconds]
Channel6 has joined #ruby
slyv has joined #ruby
linojon has joined #ruby
slyv has quit [Max SendQ exceeded]
rubyonrailed has quit []
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
ddv has quit [Ping timeout: 260 seconds]
digifiv5e has joined #ruby
ddv has joined #ruby
brianherman has joined #ruby
digifiv5e is now known as Guest59055
bruno- has quit [Ping timeout: 272 seconds]
<bradhe> What's the most efficient way to re-use an array without allocating a new one in terms of memory footprint? I'm assuming use a packed array?
britneywright has joined #ruby
tkuchiki has joined #ruby
<lidaaa> bradhe, are you storing the array to disk?
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Ping timeout: 255 seconds]
<bradhe> lidaaa: nope in memory
<bradhe> I'm parsing CSV, line by line, and I'm trying to come up with a way to avoid having to allocate a new array for each line.
Bira has joined #ruby
Spleeze has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lidaaa> CSV is just text, when you parse it, you are "converting" the text into an array. You basicaly allocate an array once
<bricker> bradhe: a.clear ?
<bradhe> once...for each line, as is. I'm reading the file line-by-line, and then parsing each line individually.
<bradhe> bricker: potentially, not sure how that works internally?
slyv has joined #ruby
<bricker> let's find out, shall we?
slyv has quit [Max SendQ exceeded]
<bradhe> let's indeed.
<lidaaa> are you using a CSV library or you are parsing each line by your self?
<bradhe> I was using a CSV library, but it turned out to be horribly inefficient for my needs, so I wrote a simple recursive descent parser for it
<bricker> bradhe: there you go: https://github.com/ruby/ruby/blob/trunk/array.c#L3408-3422 pretty simple
<bradhe> was just using the standard lib
Guest59055 has quit [Changing host]
Guest59055 has joined #ruby
Guest59055 is now known as guyz
kachi8 has quit [Ping timeout: 240 seconds]
codeFiend has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<bradhe> well, let's give it a try with my profiler and see what happens.
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bira has quit [Remote host closed the connection]
marr has quit [Ping timeout: 245 seconds]
hobogrammer1 has joined #ruby
aspires has quit []
djbkd has joined #ruby
<lidaaa> bradhe, so you are reading a csv file line by line. then you parse each line and you create an array for that line.
<lidaaa> then you push each line to another array.
<lidaaa> you then return the array and make operations on it. I am not sure where you are making extra allocations?
<bradhe> lidaaa: Nope, I don't push each line on to another array.
<lidaaa> what are you doing with each parsed line?
<bradhe> I'm basically parsing it, extracting the stuff I want, and dropping it on the floor.
dbasch has quit [Quit: dbasch]
<eam> >> require "ripper"; 1
<Mon_Robot> eam: Something went wrong when trying to evaluate your code.
<eam> damn
<lidaaa> bradhe, so where are you reallocating ?
<bradhe> basically on each parse.
hobogrammer1 has quit [Client Quit]
phoo1234567 has quit [Quit: Leaving]
j_mcnally has quit [Remote host closed the connection]
cg433n has joined #ruby
fnando has joined #ruby
<lidaaa> each line parse or each file parse?
djbkd has quit [Remote host closed the connection]
fgo has joined #ruby
zz_karupa is now known as karupa
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
jimmyhoughjr has joined #ruby
asdasdasdasss has joined #ruby
dbasch has joined #ruby
<lidaaa> ok never mind looks like you know what you are doing
jnoob22 has joined #ruby
fmendez has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
echooo has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Ping timeout: 250 seconds]
oo____ has joined #ruby
bradhe has quit [Remote host closed the connection]
fnando has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asdasdasdasss has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
johnmolina has quit []
harry_vp has quit [Quit: Lost terminal]
bricker has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
mikepack has joined #ruby
fnando has joined #ruby
robscormack has joined #ruby
havenwood has quit [Remote host closed the connection]
robscormack has quit [Client Quit]
s2013 has joined #ruby
Starless has joined #ruby
mikepack has quit [Ping timeout: 250 seconds]
alexju_ has quit [Ping timeout: 250 seconds]
banjara has quit [Quit: Leaving.]
opus has quit []
kache_ has joined #ruby
Tricon has quit [Quit: Linkinus - http://linkinus.com]
opus has joined #ruby
kache_ has left #ruby [#ruby]
alexju has joined #ruby
bruno- has joined #ruby
rp__ has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arya_ has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
rp__ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
JoshGlzBrk has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
s2013_ has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
IteratorP has joined #ruby
ghostmoth has joined #ruby
mikepack has joined #ruby
charliesome has quit [Ping timeout: 256 seconds]
Takle has quit [Remote host closed the connection]
Starless has quit [Quit: Leaving]
simoz1111117 has quit [Ping timeout: 250 seconds]
IteratorP has quit [Remote host closed the connection]
IteratorP has joined #ruby
dbasch has quit [Quit: dbasch]
s2013 has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Ping timeout: 255 seconds]
failshell has joined #ruby
<northfurr> a proc in ruby is basically the same as defining a function in javascript?
<hoelzro> northfurr: almost; slightly different
Pharaoh2 has joined #ruby
davispuh has quit [Ping timeout: 245 seconds]
Akagi201 has joined #ruby
cg433n has quit [Quit: Lingo - http://www.lingoirc.com]
coldkey21 has joined #ruby
<northfurr> okay good to know i have the right idea so far (kinda) :)
<hoelzro> =)
failshel_ has joined #ruby
yetanotherdave has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
drawingthesun has quit [Ping timeout: 240 seconds]
brianherman_ has joined #ruby
brianherman_ has quit [Remote host closed the connection]
kireevco has joined #ruby
axl_ has quit [Quit: axl_]
coldkey21 has quit [Client Quit]
asdasdasdasss has joined #ruby
Akagi201 has quit [Ping timeout: 240 seconds]
failshell has quit [Ping timeout: 240 seconds]
<benzrf> northfurr: well, {|n| n + 1} is not an expression
<benzrf> it's special separate syntax that's only valid to put after a method call
<benzrf> unlike function(){}, which is an Actual Normal Expression
axl_ has joined #ruby
GriffinHeart has joined #ruby
Akagi201 has joined #ruby
codeFiend has quit [Quit: codeFiend]
ahmeni has left #ruby [#ruby]
pothibo has joined #ruby
charliesome has joined #ruby
<northfurr> I’m not that far into ruby yet, but the proc and block concept so far seems analogous to passing a function into another function
sevenseacat has quit [Quit: Leaving.]
<northfurr> In this guide he mentions that being able to create a function outside of an object isn’t a feature of most languages which I didn’t know… Pretty new to this stuff
MartinCleaver has joined #ruby
<pothibo> northfurr every language can create function outside of an object
robustus has quit [Ping timeout: 255 seconds]
fnando has left #ruby ["Textual IRC Client: www.textualapp.com"]
<northfurr> maybe he means passing a function into another function
baweaver has joined #ruby
charliesome has quit [Client Quit]
teddyp1cker has joined #ruby
asdasdasdasss has quit [Ping timeout: 256 seconds]
robustus has joined #ruby
freerobby has quit [Quit: Leaving.]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnoob22 has quit [Quit: Leaving]
ValicekB has quit [Ping timeout: 256 seconds]
<pothibo> northfurr most language can do it. Ruby is nice. But it's not nice because it has features others don't have. It's nice because of function it provides and how easy it is to work with them.
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pothibo> It's just a matter of taste in the end. You like ruby for what it is. But if you try to justify yourself by comparing it with others, every language have their shortcoming and most feature are available in each language. It's just the consstruction that differs
patrick99e99 has quit [Ping timeout: 264 seconds]
Panicky has quit [Ping timeout: 250 seconds]
arya_ has joined #ruby
teddyp1cker has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
Zenigor has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has quit [Quit: ghostmoth]
ghostmoth has joined #ruby
arya_ has quit [Ping timeout: 260 seconds]
pzula has joined #ruby
sevenseacat has joined #ruby
ValicekB has joined #ruby
ixti has quit [Quit: WeeChat 0.4.3]
Pharaoh2 has quit [Read error: Connection reset by peer]
Pharaoh2 has joined #ruby
ghostmoth has quit [Ping timeout: 245 seconds]
lidaaa has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
fgo has joined #ruby
Takle has quit [Remote host closed the connection]
pzula has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
agjacome has quit [Quit: leaving]
troyready has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
hamakn has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
ghostmoth has joined #ruby
ghostmoth has quit [Client Quit]
Takle has quit [Ping timeout: 272 seconds]
PanPan has joined #ruby
tokik has joined #ruby
asdasdasdasss has joined #ruby
wallerdev has quit [Quit: wallerdev]
freerobby has quit [Quit: Leaving.]
braincra- has joined #ruby
phinfonet has quit []
MatthewsFace has joined #ruby
braincrash has quit [Ping timeout: 256 seconds]
raul782 has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
geggam has quit [Ping timeout: 260 seconds]
_reset has joined #ruby
asdasdasdasss has quit [Ping timeout: 245 seconds]
skysploit has joined #ruby
skysploit has joined #ruby
niftylettuce_ has quit [Quit: Connection closed for inactivity]
reset has quit [Ping timeout: 240 seconds]
loc22 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 250 seconds]
geggam has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
yetanotherdave has quit [Quit: Lost terminal]
mikesplain has quit [Ping timeout: 245 seconds]
_reset has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
hamakn has joined #ruby
arya_ has joined #ruby
Zenigor has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
freerobby has joined #ruby
matchaw has quit [Ping timeout: 250 seconds]
matchaw has joined #ruby
tkuchiki has joined #ruby
freerobby has quit [Client Quit]
Gannibal has joined #ruby
mikepack has quit [Remote host closed the connection]
fabrice31 has joined #ruby
binaryhat_ has quit [Quit: Leaving]
mikepack has joined #ruby
amclain has joined #ruby
binaryhat has joined #ruby
loc22 has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
razum2um has joined #ruby
TDJACR has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
TDJACR has joined #ruby
Arkaniad has quit [Ping timeout: 250 seconds]
jmbrown412 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
axl_ has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 240 seconds]
Pizza has joined #ruby
<Pizza> sup ruby
darkxploit has quit [Ping timeout: 264 seconds]
snath has joined #ruby
Pizza has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
nowthatsamatt has joined #ruby
matchaw has quit [Ping timeout: 240 seconds]
nowthatsamatt has quit [Client Quit]
matchaw has joined #ruby
diegoviola has joined #ruby
oo____ has quit [Remote host closed the connection]
codeFiend has joined #ruby
jmbrown412 has quit [Ping timeout: 255 seconds]
JohnFord has joined #ruby
wald0 has joined #ruby
krz has joined #ruby
dawkirst has joined #ruby
chrisja has quit [Quit: leaving]
weems|nix has quit [Remote host closed the connection]
failshel_ has quit []
codeFiend has quit [Quit: codeFiend]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
deric_skibotn has quit [Ping timeout: 256 seconds]
weems|nix has joined #ruby
fly2web has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
Zenigor has joined #ruby
macclearich__ has quit [Quit: Computer has gone to sleep.]
nanoyak has quit [Read error: Connection reset by peer]
macclearich__ has joined #ruby
fly2web has joined #ruby
nanoyak has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oo____ has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
Wolland has quit [Ping timeout: 245 seconds]
oo_____ has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
linojon has quit [Quit: linojon]
bwilson has quit [Ping timeout: 240 seconds]
macclearich__ has quit [Ping timeout: 255 seconds]
Gannibal has quit [Read error: Connection reset by peer]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo____ has quit [Ping timeout: 255 seconds]
mikemac has quit [Remote host closed the connection]
mikemac has joined #ruby
hl has quit [Ping timeout: 244 seconds]
helios157 has joined #ruby
coj has joined #ruby
codeFiend has joined #ruby
lw has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
vt102 has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
djbkd has joined #ruby
Arkaniad has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
Spami has joined #ruby
lw has quit [Max SendQ exceeded]
hl has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
fgo has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
baweaver has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
lw has joined #ruby
melik__ has joined #ruby
lw has quit [Max SendQ exceeded]
freerobby has joined #ruby
coj has quit []
tjr9898 has joined #ruby
tatsuya_o has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoyak has quit [Quit: Computer has gone to sleep.]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 240 seconds]
DrCode has quit [Ping timeout: 264 seconds]
lw has joined #ruby
MatthewsFace has quit [Ping timeout: 245 seconds]
lw has quit [Max SendQ exceeded]
lw has joined #ruby
charliesome has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
yacks has joined #ruby
lw has quit [Max SendQ exceeded]
tatsuya_o has quit [Ping timeout: 264 seconds]
bruno- has joined #ruby
lw has joined #ruby
djbkd has quit [Remote host closed the connection]
little_fu has joined #ruby
lw has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
vhsmaia has joined #ruby
lw has joined #ruby
vhsmaia has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
Takle has joined #ruby
bwilson has joined #ruby
vhsmaia has joined #ruby
jonr22 has joined #ruby
lw has joined #ruby
vhsmaia has quit [Client Quit]
asdasdasdasss has joined #ruby
lw has quit [Max SendQ exceeded]
bruno- has quit [Ping timeout: 264 seconds]
kireevco has quit [Quit: Leaving.]
mikesplain has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
lw has joined #ruby
GriffinHeart has joined #ruby
lw has quit [Max SendQ exceeded]
asdasdasdasss has quit [Ping timeout: 245 seconds]
jonr22 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lw has joined #ruby
tokik has quit [Ping timeout: 250 seconds]
braincra- has quit [Quit: bye bye]
chrishough has quit [Quit: chrishough]
mr_snowf1ake has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
lw_ has joined #ruby
lewix has joined #ruby
ascarter has joined #ruby
lw_ has quit [Max SendQ exceeded]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lw has quit [Read error: Connection reset by peer]
lw has joined #ruby
arup_r has joined #ruby
dawkirst has quit [Read error: Connection timed out]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby
lw has quit [Max SendQ exceeded]
zorak has quit [Ping timeout: 255 seconds]
braincrash has joined #ruby
lw has joined #ruby
arup_r has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
arup_r has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
zkay11 has left #ruby [#ruby]
GriffinHeart has joined #ruby
mikepack has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
opus has quit []
jonr22 has joined #ruby
lw has joined #ruby
freerobby has quit [Quit: Leaving.]
lw has quit [Max SendQ exceeded]
lw has joined #ruby
melik__ has quit [Ping timeout: 255 seconds]
lw has quit [Max SendQ exceeded]
arup_r has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Client Quit]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
tectonic has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
dawkirst has joined #ruby
jonr22 has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
jonr22 has joined #ruby
bwilson has quit [Ping timeout: 240 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Pharaoh2 has quit [Quit: Leaving...]
larissa has quit [Quit: Leaving]
lw has joined #ruby
wald0 has quit [Ping timeout: 255 seconds]
jonr22 has quit [Client Quit]
lw has quit [Max SendQ exceeded]
zorak has joined #ruby
lw has joined #ruby
root3d has joined #ruby
lw has quit [Max SendQ exceeded]
mikesplain has quit [Ping timeout: 245 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
jonr22 has joined #ruby
Fezzler has joined #ruby
lw has joined #ruby
dawkirst has quit [Remote host closed the connection]
lw has quit [Max SendQ exceeded]
lw has joined #ruby
Gue______ has joined #ruby
tokik has joined #ruby
lw has quit [Max SendQ exceeded]
patrick99e99 has joined #ruby
jgrevich has joined #ruby
raul782 has joined #ruby
lw has joined #ruby
phoo1234567 has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
teddyp1cker has joined #ruby
JBreit has joined #ruby
macclearich__ has joined #ruby
patrick99e99 has quit [Ping timeout: 250 seconds]
teddyp1cker has quit [Ping timeout: 255 seconds]
axl_ has quit [Quit: axl_]
macclearich__ has quit [Ping timeout: 255 seconds]
lethjakman has joined #ruby
dvb_ua has quit [Quit: WeeChat 0.4.3]
arup_r has joined #ruby
pu22l3r has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
tokik has quit [Ping timeout: 250 seconds]
lethjakman has quit [Read error: Connection reset by peer]
jonr22 has quit [Quit: leaving]
jonr22 has joined #ruby
lethjakman has joined #ruby
jonr22 has quit [Client Quit]
fgo has joined #ruby
lw has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
brianherman has quit [Read error: Connection reset by peer]
lw has joined #ruby
mikepack has joined #ruby
lw has quit [Max SendQ exceeded]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Remote host closed the connection]
lw has joined #ruby
bruno- has joined #ruby
axl_ has joined #ruby
tatsuya_o has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
b00stfr3ak has joined #ruby
saarinen has quit [Quit: saarinen]
mikepack has quit [Ping timeout: 255 seconds]
djbkd has joined #ruby
freerobby has joined #ruby
tylerkern has joined #ruby
Gue______ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 264 seconds]
tatsuya_o has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
freerobby has quit [Client Quit]
try has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
frankle has quit [Quit: Connection closed for inactivity]
lethjakman has quit [Ping timeout: 250 seconds]
asdasdasdasss has joined #ruby
JohnBat26 has joined #ruby
tatsuya_o has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
bwilson has joined #ruby
nateberkopec has joined #ruby
bwilson has quit [Client Quit]
skysploit has quit []
freerobby has joined #ruby
agrinb has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
tatsuya_o has quit [Ping timeout: 272 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
arup_r has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 245 seconds]
alexju_ has joined #ruby
alexju has quit [Read error: No route to host]
diegoviola has joined #ruby
bricker`LA has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
ViperChief has quit [Quit: Bai youse]
agrinb has joined #ruby
jshultz has quit [Quit: Connection closed for inactivity]
freerobby has quit [Quit: Leaving.]
ARCADIVS has joined #ruby
tylerkern has quit [Remote host closed the connection]
tylerkern has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
hellome has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
robscormack has joined #ruby
JohnFord has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
mary5030_ has quit [Remote host closed the connection]
ubernil has quit [Quit: WeeChat 0.4.3]
mary5030 has joined #ruby
<robscormack> hi there
<godd2> Can anyone point to resources explaining the purpose of using factories when testing? I feel I'm missing something.
lw has quit [Quit: s]
<sevenseacat> because as your objects get more complex, its a lot of hassle to set them up in the right state for each test
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whyy has joined #ruby
<godd2> What can a factory do that I can't fake on my own?
<sevenseacat> nothing
agrinb has quit [Ping timeout: 264 seconds]
<sevenseacat> its just a shortcut and a DRY way of doing so
<godd2> Looking further I think a problem is that I don't know what a 'fixture' is
<sevenseacat> predefined objects to use in tests
mary5030 has quit [Ping timeout: 264 seconds]
<godd2> but how is that different from the classes that I'm testing in the first place?
nanoyak has quit [Quit: Computer has gone to sleep.]
whyy has quit [Read error: Connection reset by peer]
<sevenseacat> huh?
whyy has joined #ruby
<godd2> 'predefined object'. isn't that what a class is?
<sevenseacat> you test behaviour of objects
<sevenseacat> no
macclearich__ has joined #ruby
<sevenseacat> an instance of an object
Channel6 has quit [Quit: Leaving]
charliesome has joined #ruby
<godd2> I apologize, I meant to say isn't that what a class is used to make
<sevenseacat> yes it is
dh64 has joined #ruby
<godd2> If I have a User class, and in a test I have some user = User.new, isn't user a fixture now?
<sevenseacat> no
bricker`LA has quit [Ping timeout: 240 seconds]
charliesome has quit [Client Quit]
<sevenseacat> for example, say you want to test a method on a user called invite, but it depends on the user being in a certain state with certain properties
seitensei has quit [Ping timeout: 245 seconds]
gchan has joined #ruby
<sevenseacat> you can stuff around before the test manually setting all the attributes to the right values, etc. or you get a factory to do it over there and then you can use that same factory in other places
<godd2> so instead of having lines like user.instance_variable_set(:is_friend, true)
robbyoconnor has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby
<godd2> you user a 'factory' to do it in a prettier way?
fly2web has left #ruby [#ruby]
gchan has quit [Client Quit]
<sevenseacat> no to both - its not about 'pretty' and if you're ever writing instance_variable_set in tests you're doing it very wrong
<sevenseacat> its about the test only having the relevant code in it - all the setup for a user is irrelevant to testing the actual invite method
oo_____ has quit [Remote host closed the connection]
<sevenseacat> and its about not repeating yourself - generating a user in a certain state is something you might do in dozens or hundreds of tests
macclearich__ has quit [Ping timeout: 245 seconds]
<godd2> I agree that it would be irresponsible to use instance_variable_set, but would it not be a way to "set all the attributes to the right values, etc,"?
r0bby_ has quit [Client Quit]
root3d has quit [Ping timeout: 260 seconds]
alexju_ has quit [Remote host closed the connection]
<sevenseacat> a way, yes
<sevenseacat> just because you can do it, doesnt make it right
alexju has joined #ruby
<godd2> oh don't worry, I wasn't about to manually set instance variables in a test
<godd2> I was just trying to understand the subject
lw has joined #ruby
lw has quit [Max SendQ exceeded]
<godd2> thanks for the input, I'll try to read more with your perspective
lidaaa has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
bruno- has joined #ruby
ra4king has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
lw has joined #ruby
<robscormack> factory like in FactoryGirl?
michaeldeol has joined #ruby
lw has quit [Max SendQ exceeded]
ra4king has joined #ruby
lw has joined #ruby
<sevenseacat> yarr
JoshGlzBrk has joined #ruby
<robscormack> ok, now I understand.
Fezzler has quit [Quit: Leaving]
jgrevich_ has joined #ruby
jgrevich_ has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgrevich has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 255 seconds]
lw has quit [Quit: s]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
JohnBat26 has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
seitensei has joined #ruby
noop has quit [Ping timeout: 255 seconds]
j_mcnall_ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexBlom has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
macclearich__ has joined #ruby
agrinb_ has joined #ruby
michaeldeol has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
EvanR_ has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
EvanR is now known as Guest94374
macclearich__ has quit [Ping timeout: 240 seconds]
asdasdasdasss has joined #ruby
theharshest has joined #ruby
mallu has joined #ruby
aganov has joined #ruby
agrinb_ has quit [Ping timeout: 240 seconds]
<mallu> Hello, I'm calling a bash command and assigning the value to a variable. However I'm getting \n at the end .. how can i get rid of \n?
asmodlol has joined #ruby
asdasdasdasss has quit [Ping timeout: 260 seconds]
phoo1234567 has quit [Remote host closed the connection]
<mallu> id = `command` id.each do |i| blah end Im getting undefined method `each' for "blah\n":String (NoMethodError)
<mallu> anyone?
oo____ has joined #ruby
Zenigor has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Zenigor has joined #ruby
<sevenseacat> chomp will remove the \n
<sevenseacat> but iterating over a string like that surely isnt what you want
diegoviola has quit [Quit: WeeChat 0.4.3]
seitensei has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
<mallu> what is the best way to do it?
<sevenseacat> what are you trying to do?
nobodyzzz has joined #ruby
tobago has joined #ruby
axl_ has quit [Quit: axl_]
jay__ has joined #ruby
oo____ has quit [Ping timeout: 255 seconds]
Squeatus has joined #ruby
axl_ has joined #ruby
benzrf is now known as benzrf|offline
Zenigor_ has joined #ruby
Zenigor_ has quit [Remote host closed the connection]
Zenigor has quit [Read error: Connection reset by peer]
Zenigor has joined #ruby
Zenigor_ has joined #ruby
<mallu> sevenseacat: I am using a bash command to query a list and assign it to a variable in ruby. They I iterate each item in the array to do something with them
Zenigor has quit [Ping timeout: 260 seconds]
seitensei has joined #ruby
seitensei has quit [Changing host]
seitensei has joined #ruby
<robscormack> why a bash command?
<sevenseacat> but 'blah' isnt a list
<mallu> thats the only way to get that list
<sevenseacat> its a string
sigurding has joined #ruby
geggam has quit [Ping timeout: 240 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898_ has joined #ruby
<robscormack> "i" is a string, can you post the output from the command?
fgo has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
amclain has quit [Quit: Leaving]
tjr9898 has quit [Ping timeout: 255 seconds]
bridge has quit [Ping timeout: 250 seconds]
kyb3r_ has joined #ruby
mallu has quit [Ping timeout: 246 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<robscormack> if it's a list, you'd first want to .chomp and divide it in many lines with .split($/)
tylerkern has joined #ruby
arup_r has joined #ruby
tkuchiki_ has joined #ruby
jay__ has quit []
Authenticator has quit [Quit: leaving]
teddyp1cker has joined #ruby
relix has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
lewix has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
lewix has joined #ruby
teddyp1cker has quit [Ping timeout: 264 seconds]
arup_r_ has joined #ruby
axl_ has quit [Quit: axl_]
Morkel has joined #ruby
bruno- has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
JoshGlzBrk has joined #ruby
nateberkopec has joined #ruby
aagdbl has joined #ruby
kireevco has joined #ruby
St_Marx has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 256 seconds]
Morkel has quit [Quit: Morkel]
sigurding has quit [Quit: sigurding]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki_ has quit [Remote host closed the connection]
seitensei has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
seitensei has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
noop has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
arup_r_ has quit [Remote host closed the connection]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
olivier_bK has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
arup_r has joined #ruby
seitensei has quit [Ping timeout: 250 seconds]
oo____ has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
Brando753 has quit [Ping timeout: 260 seconds]
Zenigor_ has quit [Remote host closed the connection]
Brando753 has joined #ruby
apeiros has quit [Remote host closed the connection]
axl_ has joined #ruby
apeiros has joined #ruby
dawkirst has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
dawkirst has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
agrinb has joined #ruby
Kricir has joined #ruby
noop has quit [Remote host closed the connection]
fgo has joined #ruby
noop has joined #ruby
axl_ has quit [Client Quit]
axl_ has joined #ruby
asdasdasdasss has joined #ruby
wallerdev has joined #ruby
apeiros has quit [Ping timeout: 250 seconds]
agrinb has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 245 seconds]
Kricir has quit [Ping timeout: 255 seconds]
Rahul_Roy has joined #ruby
tectonic has quit []
nszceta has joined #ruby
asdasdasdasss has quit [Ping timeout: 272 seconds]
seitensei has joined #ruby
ValicekB has joined #ruby
LexicalScope has joined #ruby
djbkd has joined #ruby
roolo has joined #ruby
alem0lars has joined #ruby
rdark has joined #ruby
try has quit [Ping timeout: 255 seconds]
JBreit has left #ruby ["Leaving"]
LexicalScope has quit [Ping timeout: 240 seconds]
abuzze has joined #ruby
djbkd has quit [Remote host closed the connection]
bal has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
northfurr has quit [Quit: northfurr]
bricker`LA has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
fantazo has quit [Quit: Verlassend]
rdark has quit [Ping timeout: 240 seconds]
Ilyas has joined #ruby
bricker`LA has quit [Ping timeout: 264 seconds]
autochthon has joined #ruby
bluehavana has joined #ruby
sinkensabe has joined #ruby
dawkirst has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 255 seconds]
Macaveli has joined #ruby
Kricir has joined #ruby
devyn has quit [Read error: Connection reset by peer]
claw___ has quit [Remote host closed the connection]
Morkel has joined #ruby
claw___ has joined #ruby
devyn has joined #ruby
tectonic has joined #ruby
craigbowen3 has joined #ruby
claw___ has quit [Remote host closed the connection]
claw___ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eeezkil has joined #ruby
saarinen has quit [Quit: saarinen]
claw___ has quit [Remote host closed the connection]
jprovazn has joined #ruby
claw___ has joined #ruby
eeezkil has quit [Max SendQ exceeded]
Kricir has quit [Ping timeout: 245 seconds]
claw___ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
vsoftoiletpaper has quit []
claw___ has joined #ruby
flori has quit [Remote host closed the connection]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
tatsuya_o has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
yfeldblum has joined #ruby
sigurding has joined #ruby
claw___ has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
claw___ has joined #ruby
relix has joined #ruby
reset has joined #ruby
tvw has joined #ruby
kireevco has joined #ruby
shredding has joined #ruby
eoinkelly has joined #ruby
bricker`LA has joined #ruby
oo____ has quit [Remote host closed the connection]
flori has joined #ruby
flori has quit [Client Quit]
fabrice31 has joined #ruby
tectonic has quit []
anarang has joined #ruby
oo____ has joined #ruby
kiri has joined #ruby
arup_r_ has joined #ruby
apeiros has joined #ruby
flori has joined #ruby
claw___ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
ddv has joined #ruby
ddv has quit [Changing host]
claw___ has joined #ruby
flori has quit [Client Quit]
arup_r has quit [Ping timeout: 240 seconds]
flori has joined #ruby
agrinb has joined #ruby
fgo has joined #ruby
obs has joined #ruby
claw___ has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
codeFiend has quit [Quit: codeFiend]
asdasdasdasss has joined #ruby
Xeago has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
claw___ has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
o0oo0o has quit [Remote host closed the connection]
asdasdasdasss has quit [Ping timeout: 240 seconds]
o0oo0o has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
_tpavel has joined #ruby
b00stfr3ak has quit [Ping timeout: 255 seconds]
timgauthier has joined #ruby
jhass|off is now known as jhass
aagdbl has joined #ruby
reset has quit [Quit: Leaving...]
claw___ has quit [Remote host closed the connection]
AlexRussia has quit [Quit: WeeChat 1.0-dev]
sinkensabe has quit [Remote host closed the connection]
Vile` has joined #ruby
claw___ has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
echooo has quit [Ping timeout: 240 seconds]
echooo has joined #ruby
Wolland has joined #ruby
jottr has joined #ruby
oo____ has quit [Remote host closed the connection]
bruno- has joined #ruby
gheegh has joined #ruby
Kricir has joined #ruby
rdark has joined #ruby
Squeatus has quit [Quit: Leaving]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo____ has joined #ruby
roolo has quit [Quit: Leaving...]
timgauthier has joined #ruby
s2013_ has quit [Ping timeout: 256 seconds]
claw___ has quit [Remote host closed the connection]
claw___ has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 240 seconds]
t_p has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
IceDragon has quit [Quit: Space~~~]
rdark has quit [Client Quit]
rdark has joined #ruby
duggiefresh has joined #ruby
eeezkil has joined #ruby
andrewlio has joined #ruby
claw___ has quit [Remote host closed the connection]
timonv_ has joined #ruby
claw___ has joined #ruby
alex88 has joined #ruby
GeekOnCoffee has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Ping timeout: 264 seconds]
amundj has joined #ruby
GeekOnCoffee has joined #ruby
claw___ has quit [Remote host closed the connection]
claw has joined #ruby
Bumptious has quit [Remote host closed the connection]
Darryl has joined #ruby
teddyp1cker has quit []
Bumptious has joined #ruby
AlexRussia has joined #ruby
timonv_ has quit [Remote host closed the connection]
sinkensabe has joined #ruby
lewix_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
sk87 has joined #ruby
abuzze has joined #ruby
lewix has quit [Ping timeout: 255 seconds]
Wolland_ has joined #ruby
sixxy has joined #ruby
Pharaoh2 has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
Atttwww has quit [Ping timeout: 264 seconds]
bridge has joined #ruby
Xeago_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
lidaaa has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
UlrikeRayne has quit [Quit: ZNC - http://znc.in]
mikecmpbll has joined #ruby
TheInkBunny has joined #ruby
bridge has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
bruno- has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
bruno- is now known as Guest38040
claw has quit [Remote host closed the connection]
agrinb has joined #ruby
fgo has joined #ruby
wallerdev has quit [Quit: wallerdev]
lxsameer has joined #ruby
jackneill has joined #ruby
asdasdasdasss has joined #ruby
Takle has joined #ruby
kaspergrubbe_ has joined #ruby
claw has joined #ruby
oo____ has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
whyy has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 240 seconds]
grzywacz has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
ylluminate has quit [Ping timeout: 250 seconds]
nateberkopec has joined #ruby
Joulse has joined #ruby
asdasdasdasss has quit [Ping timeout: 245 seconds]
claw has quit [Remote host closed the connection]
claw has joined #ruby
timonv_ has joined #ruby
ephemerian has joined #ruby
oo____ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
chth0n has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
ctp has joined #ruby
CryptoMoFox has joined #ruby
<CryptoMoFox> Ohai
<robscormack> ohayo gozaimazu
<sevenseacat> konnichiwa
claw_ has joined #ruby
<robscormack> minä en puhuu sinun kieli u_u
Zai00 has joined #ruby
<sevenseacat> D:
<robscormack> (Finnish)
<sevenseacat> google translate just told me that, yes :P
<robscormack> hahahaha good one
claw has quit [Remote host closed the connection]
r0bby_ has joined #ruby
<sevenseacat> the only finnish i know is from nightwish lyrics
<Vile`> what about sentenced, wintersun, and ensiferum
<Vile`> finns make the best metal
<sevenseacat> they do indeed
davedev24_ has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 250 seconds]
<robscormack> yeah, and the best rally drivers are from there
<robscormack> I studied music in Helsinki :)
davedev24_ has joined #ruby
seitensei has quit [Ping timeout: 250 seconds]
<sevenseacat> nice
mikepack has joined #ruby
<robscormack> well, enough about me, are you feeling better, sevenseacat?
<CryptoMoFox> can someone give me a hand on this ? I'm still newbie to ruby. I've created a function to convert some months name strings to months number : http://pastebin.com/kWShx16A
<CryptoMoFox> but it always returns me false
<CryptoMoFox> =(
<CryptoMoFox> dunno where i'm failing
<sevenseacat> robscormack: i'm still kicking :) always a plus
tokik has joined #ruby
anarang has joined #ruby
<jhass> CryptoMoFox: include some examples of calling that method
<jhass> I suppose you didn't came across hashes yet
<robscormack> jhass: he's still learning.
AlexRussia has quit [Ping timeout: 240 seconds]
<CryptoMoFox> well i extract a string with month name with a match like that : d = i.text.match(/([0-9]{1,2}) (.+) /)
seitensei has joined #ruby
seitensei has joined #ruby
seitensei has quit [Changing host]
<robscormack> CryptoMoFox: your function won't work if you use 'Mai', since strings are case sensitive
<CryptoMoFox> and i pass d[2] wich give me for exemple "juillet"
Morkel has quit [Ping timeout: 240 seconds]
<jhass> CryptoMoFox: start with using better variable names: m = month_name, i = input, d = ???
Morkel has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
TheInkBunny has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> now check that d[2] is exactly what you think it is, print it with p d[2] for example
r0bby_ is now known as robbyoconnor
davedev24_ has quit [Ping timeout: 245 seconds]
<CryptoMoFox> i get this :
<CryptoMoFox> d : juillet
<CryptoMoFox> false
<CryptoMoFox> so i get "juillet" as it should
memph1s has joined #ruby
whyy has joined #ruby
<CryptoMoFox> but the function doesn't get it in the case
arup_r has joined #ruby
timfoo has joined #ruby
<robscormack> how do you call the function?
timonv_ has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 245 seconds]
<CryptoMoFox> monthsToNbr(d[2].to_s)
<jhass> where does the d : come from? are you really using p d[2] to print it?
<CryptoMoFox> just like that
aagdbl has quit [Read error: Connection reset by peer]
<CryptoMoFox> i use puts d[2] and puts monthsToNbr(d[2].to_s)
aagdbl has joined #ruby
<jhass> use p instead of puts
<Pharaoh2> While of the two is faster? : "Some label here: #{value}" or "Some label here: %s" % value?
<CryptoMoFox> what's the difference ?
<Pharaoh2> s/while/whihc
roolo has joined #ruby
<DefV> Pharaoh2: I don't think it's worth the optimization
<CryptoMoFox> "d : juillet " <- might be due to the spaces then ?
<DefV> use what works best for you
<jhass> CryptoMoFox: p(s) is puts(s.inspect); s; so you get a better representation
<CryptoMoFox> ( used p that returned that )
<ddv> Pharaoh2: you're using Ruby not C
<DefV> speed between these 2 will be so comparable
noop has quit [Ping timeout: 240 seconds]
<jhass> CryptoMoFox: yes, it's likely the spaces
<CryptoMoFox> !
<CryptoMoFox> thanks for the tip <3
noop has joined #ruby
<Pharaoh2> DefV: Of course not, but I was just curious. I always though it was syntactical sugar for the same thing. but evidently now
<Pharaoh2> not
timonv_ has joined #ruby
fgo has joined #ruby
<CryptoMoFox> i'll try regexing to get rid of the spaces
<robscormack> Pharaoh2: from the code point of view, the second one is better, it saves one cycle of CPU... however that makes you crazy
<CryptoMoFox> or there's another magical function i dunno yet to get rid of it automaticly ? :p
Kricir has joined #ruby
<CryptoMoFox> it works \o/
<jhass> CryptoMoFox: There's .strip but it's better to adjust the regex
<CryptoMoFox> Thanks a lot jhass :)
<jhass> CryptoMoFox: a few more style notes if you don't mind: we choose snake_case for method names, not camelCase. All the return keywords in your example are implicit and can be left of. Most people indent with two spaces instead of tabs.
<robscormack> CryptoMoFox: .strip
bridge has joined #ruby
shredding has quit [Quit: shredding]
<CryptoMoFox> yeah, i have to configure my RTE, but as fatass lazy man i didn't do it yet
<CryptoMoFox> :p
<CryptoMoFox> and i take good note about the snake_case
<jhass> CryptoMoFox: lastly your method is just a hash with a default of false: MONTHS = {'janvier' => 1, 'février' => 2, ...}; MONTHS.default = false; MONTHS[d[2]]
tesuji has joined #ruby
mehlah has joined #ruby
<CryptoMoFox> i could just use MONTHS[d[2]] then ?
<jhass> yes
<DefV> robscormack: I'm not sure Ruby runtime doesn't optimize that away itself
<CryptoMoFox> cool cool cool :)
<jhass> if you have defined MONTHS as I've shown
<CryptoMoFox> sure
<robscormack> DefV: optimising occurs on compile time, and Ruby is interpreted.
fgo has quit [Ping timeout: 256 seconds]
<DefV> well, we're in 2014 and scripted languages get compiled and optimized on runtime
axl_ has quit [Quit: axl_]
elaptics`away is now known as elaptics
Kricir has quit [Ping timeout: 245 seconds]
Akagi201_ has joined #ruby
alem0lars has quit [Quit: Going AFK...]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Akagi201 has quit [Ping timeout: 260 seconds]
<robscormack> DefV true that, optimization isn't really a thing having fast processors
<DefV> yes it is.
aagdbl has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
bal has quit [Quit: bal]
aagdbl has joined #ruby
alem0lars has joined #ruby
<apeiros> MRI runtime doesn't optimize much for you. JRuby probably optimizes more.
fgo has joined #ruby
bal has joined #ruby
ezmobius has joined #ruby
Akagi201 has joined #ruby
Akagi201_ has quit [Ping timeout: 260 seconds]
die has joined #ruby
<die> ciaooooo
<die> List!
<robscormack> ciao, come stai?
<die> bene grazie
troulouliou_dev has joined #ruby
<robscormack> si puo parlare inglese per favore? grazie mille!
claw_ has quit [Remote host closed the connection]
claw_ has joined #ruby
<sevenseacat> errr.... no habla italiano
alem0lars_ has joined #ruby
alem0lars has quit [Ping timeout: 256 seconds]
alem0lars_ is now known as alem0lars
<robscormack> sevenseacat: was asking him to speak english.
<sevenseacat> figured something like that :) how many languages do you speak? >_>
<robscormack> 8
die has quit []
<robscormack> :)
die has joined #ruby
diegovio1 has joined #ruby
<sevenseacat> O_O
die has quit [Client Quit]
diegoviola is now known as Guest43425
diegovio1 is now known as diegoviola
timonv_ has quit [Read error: Connection reset by peer]
Guest43425 has quit [Ping timeout: 250 seconds]
alem0lars has quit [Client Quit]
timonv_ has joined #ruby
<robscormack> hahahaha, and you were speaking Spanish, not italian.
<sevenseacat> i know :P
crdsn has quit [Ping timeout: 245 seconds]
Akagi201 has quit [Read error: No route to host]
Akagi201_ has joined #ruby
<robscormack> I actually speak only Spanish and English well, can make myself understand in Finnish, German, Italian, French, Portuguese and Danish.
dieko has joined #ruby
<dieko> ciaooooo
<Nilium> I can read and write Esperanto if I have a dictionary on hand.
<Nilium> Since the grammar's pretty simple.
<sevenseacat> i practice german on duolingo and studied japanese in high school, thats about it
<dieko> List!
<Nilium> I'd probably have to re-learn it, though..
<robscormack> can I prove a theory now that we're talking about languages?
<Nilium> I should resume my french stuff on Duolingo
whyy has quit [Remote host closed the connection]
<Nilium> Was having fun re-learning it after I stopped when I was 10
<sevenseacat> i wish russian and swedish would hurry up on duolingo, i am interested in those
<sevenseacat> robscormack: what you trying to prove?
<robscormack> I noticed that the best programmers are the ones who have less grammatical errors in their native languages.
<Nilium> I have an English degree.
<Nilium> Does that make me god?
<sevenseacat> i failed english at high school.
kaspertidemann has joined #ruby
<robscormack> not without practice.
<Nilium> Also, on the topic of grammar, I'd think you should say "fewer," not "less"
<sevenseacat> oh snap
<Nilium> Since I think "less" applies to mass nouns and errors is a count noun.
<robscormack> Nilium: thank you (I'm not a native English speaker)
<Nilium> I think the term was count noun..
lanox has joined #ruby
claw_ has quit [Remote host closed the connection]
<Nilium> I'd have to pull out my old linguistics notes to remember, so we'll pretend I remember the right term
AlexRussia has joined #ruby
<robscormack> don't worry, it will always confuse me :c
<Nilium> Anyway, I was talking with someone during an interview about English majors and programmers, and he said English majors were particularly good at something because of attention to detail. I think that's probably true of anyone who's a particularly good writer, or at least worries about grammar.
<sevenseacat> i know what a noun, adjective and verb is - thats about it.
claw_ has joined #ruby
marr has joined #ruby
timonv_ has quit [Remote host closed the connection]
<sevenseacat> don't ask me what a pronoun or adverb or anything like that is
<Nilium> You're a pronoun.
dieko has quit []
timonv_ has joined #ruby
<robscormack> You're not a nun, at least.
<Nilium> I hope that made at least someone wince.
<robscormack> it did haha
<robscormack> well, at least with Spanish, that's true.
<Nilium> Continuing the grammar == programmer greatness thing though, I just think it's just down to how much someone cares to learn how to work with stuff. If you're concerned about grammar, it means you're concerned about learning how the language works and how to use it.
<robscormack> Nilium: i think so.
claw_ has quit [Remote host closed the connection]
<Nilium> If you're a good programmer, the same thing applies: you're concerned with how learning how things work and building similarly complex systems that hopefully make sense.
<Nilium> -how
<sevenseacat> makes sense.
<robscormack> it does... as not many people may remember, I teach at the University
<Nilium> The entire time I've been on IRC, it never fails that if I go back and edit what I wrote, I will accidentally leave a word in.
<robscormack> and we are planning to add Literature to it.
claw_ has joined #ruby
<Nilium> Sounds like a good idea.
<robscormack> but I haven't found any proof to make my point on it.
<Nilium> I say, as an English major, one who studied literature in addition to other stuff.
timonv_ has quit [Ping timeout: 264 seconds]
<robscormack> (sorry, I learned English by watching Rambo, Rocky and Terminator without subtitles :c )
Akagi201_ has quit [Ping timeout: 255 seconds]
<Nilium> What proof do you need? More literature increases the knowledge of the reader, literacy is a good thing, encouraging discussion of literature means you're discussing history in different contexts, and plenty of other things.
CryptoMoFox has quit [Quit: Quitte]
ssyrain_ has joined #ruby
<robscormack> Nilium: but we are talking about adding subjects to a career, we need to study it carefully before doing so
<Nilium> It probably doesn't need to be tied to a specific field, you can just as easily argue that literature is a core component of any education
bridge has quit [Ping timeout: 240 seconds]
<Nilium> I suppose, but my university required everyone to study literature.
<shevy> Nilium to be or dobedobedoo
<robscormack> not a point here due to cultural differences. it's a requirement from the Ministry of Education in Chile.
<Nilium> Fair enough
<robscormack> Ministry = the institution, Minister = the man, right?
<Nilium> Yes
<shevy> robscormack if you watched Terminator then you'll have austrian accent english right
<ddv> lol
<shevy> though Red Sonja was best for that.... "I am looking for Red Soooooooooooooooooooooouuuuuuuuuuuuuuuuuuuuuuunjjjja."
brandon has joined #ruby
<robscormack> shevy: I destroyed even my chilean accent by learning German and others
<shevy> lol
claw_ has quit [Remote host closed the connection]
cuqa has joined #ruby
whyy has joined #ruby
claw_ has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
codabrink has quit [Ping timeout: 272 seconds]
gruz0[russia] has joined #ruby
<robscormack> Nilium: based in what you told me, then I'll find something to make them approve the change
agrinb has joined #ruby
<robscormack> thank you so much!
supermarkettoday has joined #ruby
cuqa has quit [K-Lined]
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
Advocation has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
asdasdasdasss has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
malditogeek has joined #ruby
<Nilium> Well, good luck getting literature into the program. Everyone could use more of it.
klaut has joined #ruby
AlSquire has joined #ruby
<Nilium> (I say, though I'm probably biased heavily in favor of it.)
nateberkopec has joined #ruby
claw_ has quit [Remote host closed the connection]
codabrink has joined #ruby
<robscormack> I agree with you, although I'm not a great speaker, I think my ability to learn more languages helps me to understand programming languages too.
agrinb has quit [Ping timeout: 272 seconds]
asdasdasdasss has quit [Ping timeout: 245 seconds]
<Nilium> Probably, though I only speak English, so I can't really say anything about that.
LiquidInsect has quit [Ping timeout: 256 seconds]
supermarkettoday has joined #ruby
<Nilium> Anywho, I should go to sleep.
Akagi201 has joined #ruby
<robscormack> me too, it's 5.10am here
<robscormack> have a good night!
supermarkettoday has quit [Remote host closed the connection]
supermarkettoday has joined #ruby
timonv_ has joined #ruby
rdark has joined #ruby
postmodern has quit [Quit: Leaving]
whyy has quit [Remote host closed the connection]
claw_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jprovazn has quit [Remote host closed the connection]
bricker`LA has joined #ruby
supermarkettoday has quit [Ping timeout: 245 seconds]
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
Akagi201_ has joined #ruby
fgo has quit [Remote host closed the connection]
fgo has joined #ruby
troulouliou_dev has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
supermarkettoday has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
claw__ has joined #ruby
kiri has quit [Read error: Connection reset by peer]
Arkaniad has joined #ruby
supermarkettoday has joined #ruby
Akagi201 has quit [Ping timeout: 250 seconds]
danijoo has quit [Read error: Connection reset by peer]
claw_ has quit [Remote host closed the connection]
danijoo has joined #ruby
mikepack has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
Akagi201_ has quit []
claw__ has quit [Remote host closed the connection]
LACP has quit [Ping timeout: 240 seconds]
urtokk has quit [Quit: WeeChat 0.4.3]
claw__ has joined #ruby
LACP has joined #ruby
supermarkettoday has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 245 seconds]
timfoo has quit [Ping timeout: 244 seconds]
supermarkettoday has joined #ruby
Arkaniad has quit [Max SendQ exceeded]
supermarkettoday has quit [Remote host closed the connection]
Arkaniad has joined #ruby
Guest38040 has quit [Quit: leaving]
oo____ has quit [Remote host closed the connection]
ptrrr has joined #ruby
troulouliou_dev has joined #ruby
claw__ has quit [Remote host closed the connection]
workmad3 has joined #ruby
ramfjord has joined #ruby
timfoo has joined #ruby
patric100e99 has joined #ruby
Arkaniad has quit [Ping timeout: 255 seconds]
oo____ has joined #ruby
timonv_ has quit [Remote host closed the connection]
Duckily has quit [Quit: Duckily]
timonv_ has joined #ruby
whyy has joined #ruby
urtokk has joined #ruby
Duckily has joined #ruby
patric100e99 has quit [Ping timeout: 245 seconds]
gruz0[russia] has quit [Quit: Leaving]
timonv_ has quit [Ping timeout: 255 seconds]
Duckily has quit [Client Quit]
banister has joined #ruby
claw__ has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
Jon31 has joined #ruby
krz has joined #ruby
raul782 has left #ruby [#ruby]
matchaw_ has joined #ruby
skinny_much_ has joined #ruby
Gnubie__ has joined #ruby
Drakevr_ has joined #ruby
marr123 has joined #ruby
ptierno_ has joined #ruby
_ReBoRN- has joined #ruby
Freijo has joined #ruby
ihme-TTilus has joined #ruby
claw__ has quit [Remote host closed the connection]
FDj_ has joined #ruby
JarJarBi1ks has joined #ruby
axilla_ has joined #ruby
marr123 has quit [Remote host closed the connection]
bhaak_ has joined #ruby
bstrie_ has joined #ruby
saltsa_ has joined #ruby
chihhsin1wego has joined #ruby
SecretAg1nt has joined #ruby
Hamled|Erp has joined #ruby
karupa is now known as zz_karupa
zaargy_ has joined #ruby
micah`_ has joined #ruby
n88_ has joined #ruby
miah_ has joined #ruby
oddraisi1 has joined #ruby
daed_ has joined #ruby
tommylom1ykins has joined #ruby
urtokk has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
marr has quit [*.net *.split]
ctp has quit [*.net *.split]
Bumptious has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
fabrice31 has quit [*.net *.split]
robscormack has quit [*.net *.split]
aganov has quit [*.net *.split]
matchaw has quit [*.net *.split]
asmodlol has quit [*.net *.split]
Numdox has quit [*.net *.split]
drusepth has quit [*.net *.split]
ptierno has quit [*.net *.split]
gkra has quit [*.net *.split]
dRbiG has quit [*.net *.split]
Jon30 has quit [*.net *.split]
edwardly has quit [*.net *.split]
_5kg has quit [*.net *.split]
axilla has quit [*.net *.split]
seph429 has quit [*.net *.split]
devdazed has quit [*.net *.split]
anekos_ has quit [*.net *.split]
linduxed has quit [*.net *.split]
miah has quit [*.net *.split]
Morrolan_ has quit [*.net *.split]
Pro|_ has quit [*.net *.split]
Kruppe has quit [*.net *.split]
teejar_ has quit [*.net *.split]
machete has quit [*.net *.split]
drago777 has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Fraeon has quit [*.net *.split]
creede has quit [*.net *.split]
naw has quit [*.net *.split]
oddraisin has quit [*.net *.split]
FDj has quit [*.net *.split]
stopbit has quit [*.net *.split]
bhaak has quit [*.net *.split]
ClarusCogitatio_ has quit [*.net *.split]
oz has quit [*.net *.split]
Pro| has joined #ruby
Jelco_ has quit [*.net *.split]
sfiggins has quit [*.net *.split]
zaargy has quit [*.net *.split]
micah` has quit [*.net *.split]
seanmarcia has quit [*.net *.split]
ReBoRN- has quit [*.net *.split]
wwalker has quit [*.net *.split]
saltsa has quit [*.net *.split]
bier has quit [*.net *.split]
quantsini has quit [*.net *.split]
wmp has quit [*.net *.split]
jayne has quit [*.net *.split]
Drakevr has quit [*.net *.split]
daed has quit [*.net *.split]
paul_k has quit [*.net *.split]
davidcelis has quit [*.net *.split]
n88 has quit [*.net *.split]
Hamled has quit [*.net *.split]
Jamo has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
_izz has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
sindork has quit [*.net *.split]
TTilus has quit [*.net *.split]
rs0 has quit [*.net *.split]
Roa has quit [*.net *.split]
mahlon has quit [*.net *.split]
JarJarBinks has quit [*.net *.split]
bstrie has quit [*.net *.split]
cid404 has quit [*.net *.split]
bmn has quit [*.net *.split]
rcs has quit [*.net *.split]
sn0wb1rd has quit [*.net *.split]
skinny_much has quit [*.net *.split]
fumduq has quit [*.net *.split]
chihhsin_wego has quit [*.net *.split]
cwc has quit [*.net *.split]
xiphias has quit [*.net *.split]
timfoo has quit [Ping timeout: 244 seconds]
gkra_ has joined #ruby
claw__ has joined #ruby
sn0wb1rd has joined #ruby
oz has joined #ruby
jayne has joined #ruby
gkra_ has quit [Changing host]
gkra_ has joined #ruby
machete has joined #ruby
rcs has joined #ruby
davidcelis has joined #ruby
quantsini has joined #ruby
Jelco has joined #ruby
bricker`LA has joined #ruby
Jelco has joined #ruby
asmodlol has joined #ruby
urtokk has joined #ruby
stopbit has joined #ruby
Numdox has joined #ruby
fumduq has joined #ruby
ClarusCogitatio has joined #ruby
Morrolan has joined #ruby
seanmarcia has joined #ruby
teejar has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
robscormack has joined #ruby
drusepth has joined #ruby
anekos_ has joined #ruby
fabrice31 has joined #ruby
aganov has joined #ruby
Urocyon has joined #ruby
Bumptious has joined #ruby
naw has joined #ruby
edwardly has joined #ruby
_5kg has joined #ruby
cid404 has joined #ruby
paul_k has joined #ruby
drago777 has joined #ruby
devdazed has joined #ruby
sindork has joined #ruby
dRbiG has joined #ruby
mahlon has joined #ruby
wiuempe has joined #ruby
wiuempe is now known as Guest46158
linduxed has joined #ruby
bier has joined #ruby
bmn has joined #ruby
Kruppe has joined #ruby
timfoo has joined #ruby
cwc has joined #ruby
ctp has joined #ruby
GeekOnCoffee has joined #ruby
claw__ has quit [Remote host closed the connection]
claw__ has joined #ruby
kiri has joined #ruby
dumdedum has joined #ruby
seph429 has joined #ruby
_izz has joined #ruby
Roa has joined #ruby
rs0 has joined #ruby
wwalker has joined #ruby
xiphias has joined #ruby
Jamo has joined #ruby
marr has joined #ruby
Panicky has joined #ruby
Arkaniad has joined #ruby
claw___ has joined #ruby
claw__ has quit [Remote host closed the connection]
urtokk has quit [Quit: WeeChat 0.4.3]
Morkel has quit [Quit: Morkel]
bluehavana has quit [Quit: Connection closed for inactivity]
claw___ has quit [Remote host closed the connection]
claw___ has joined #ruby
ssyrain_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
urtokk has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
Takle has quit [Remote host closed the connection]
krz has joined #ruby
agrinb has joined #ruby
lewix_ has quit [Remote host closed the connection]
lewix has joined #ruby
asdasdasdasss has joined #ruby
claw___ has quit [Remote host closed the connection]
spider-mario has joined #ruby
claw___ has joined #ruby
nateberkopec has joined #ruby
kaspertidemann has quit []
agrinb has quit [Ping timeout: 245 seconds]
ValicekB has quit [Ping timeout: 245 seconds]
Duckily has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
claw___ has quit [Client Quit]
lewix has quit [Ping timeout: 250 seconds]
claw___ has joined #ruby
Bira has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
o0oo0o has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
o0oo0o has joined #ruby
spider-mario has quit [Remote host closed the connection]
fgo has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
fgo has quit [Ping timeout: 250 seconds]
DaniG2k has joined #ruby
Xeago has joined #ruby
shredding has quit [Quit: shredding]
ValicekB has joined #ruby
roolo has quit [Quit: Leaving...]
aagdbl has quit [Quit: This computer has gone to sleep]
nfk has joined #ruby
Xeago_ has quit [Ping timeout: 256 seconds]
whyy has quit [Remote host closed the connection]
Zackio is now known as CaveJohnson
Hobogrammer has quit [Ping timeout: 245 seconds]
Kricir has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
davedev24_ has joined #ruby
mostlybadfly has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
Panicky has quit [Ping timeout: 255 seconds]
Joulse has quit [Quit: Joulse]
pskosinski has joined #ruby
echooo has quit [Ping timeout: 256 seconds]
whyy has joined #ruby
sixxy has quit [Remote host closed the connection]
fly2web has joined #ruby
<fly2web> Hello
pskosinski has quit [Client Quit]
<fly2web> :P
malditogeek has quit [Quit: Leaving.]
pskosinski has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
malditogeek has joined #ruby
<fly2web> I think that rubymonk.com is good.
tjr9898_ has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
roolo has joined #ruby
little_fu has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
ramfjord has quit [Ping timeout: 250 seconds]
oo____ has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
bhaak_ is now known as bhaak
<godd2> I'm new to testing, and these feel a little verbose, but they pass. Is that all I should be concerned about for now?
diegovio1 has joined #ruby
Morkel has joined #ruby
diegoviola is now known as Guest28858
diegovio1 is now known as diegoviola
Guest28858 has quit [Ping timeout: 255 seconds]
<workmad3> godd2: I start newcomers to testing with the question - 'Do these tests increase your confidence that your code is working?'
earthquake has quit [Quit: earthquake]
<workmad3> godd2: followed by asking what other tests would also increase that confidence
<godd2> they do; at least for the things I've written expectations for
arup_r has quit [Remote host closed the connection]
<godd2> I'll keep that in mind, thanks
arup_r has joined #ruby
<workmad3> godd2: you also then keep in mind the tradeoff - 'is the boost in confidence from this test worth the time it'll take to write it?'
lanox has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
<godd2> well thats the thing. Not really, cause I was already relatively confident with the code, and the tests are simple things I don't expect to be broken
<godd2> but I just figured that was because of my lack of experiencing in writing tests
arup_r has joined #ruby
<workmad3> godd2: I get a confidence boost from confirming that stuff I don't think is broken isn't broken (afaict) ;)
<godd2> that's fair. and I'll keep your tradeoff point in mind if I find myself writing some ridiculous test
zaargy_ is now known as zaargy
Skwallinux has joined #ruby
Morkel has quit [Quit: Morkel]
aagdbl has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
whyy has quit [Remote host closed the connection]
agrinb has joined #ruby
Arkaniad has joined #ruby
amacou has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
asdasdasdasss has joined #ruby
nateberkopec has joined #ruby
Joulse has joined #ruby
agrinb has quit [Ping timeout: 255 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
asdasdasdasss has quit [Ping timeout: 240 seconds]
<robscormack> workmad3, godd2, I often scaffold projects and then write basic tests as I add features to the software. the time spent writing a test isn't a variable I consider because it saves time
o0oo0o has quit [Remote host closed the connection]
lkba has joined #ruby
o0oo0o has joined #ruby
<workmad3> robscormack: I consider it when I'm considering combinatorial testing mostly
phutchins has joined #ruby
<workmad3> robscormack: in the tradeoff of 'will testing all combinations here actually increase my confidence enough to justify the time taken to do so?'
dawkirst has joined #ruby
<robscormack> once upon a time (just before Rails 4.1.0 was out) I wrote a "stupid" test for awesome_nested_set. turns out that it broke with Rails 4.1.0 and it helped me to prevent a major disaster when upgrading a working software.
Bounga has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<robscormack> since then, even if it's stupid, I do write it. If it's sth new, I save the code to reuse it on a new app.
sixxy has joined #ruby
banister has joined #ruby
helios157 has quit [Remote host closed the connection]
chth0n has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
dawkirst has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
dawkirst has joined #ruby
whyy has joined #ruby
cajone has joined #ruby
mikepack has joined #ruby
Duckily has quit [Quit: Duckily]
Zai00 has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
<fly2web> https://rubymonk.com/learning/books/2-metaprogramming-ruby <— this is used to metasploit? who know it?
Darryl has quit [Quit: Connection closed for inactivity]
nateberkopec has joined #ruby
<cajone> Guys im trying to initialize an Array.new with a range of values, is there another method/method.chain other than a = Array.new(10,1).fill {|x| x+1} ?
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
groovehunter has quit [Remote host closed the connection]
<jhass> (1..10).to_a
mikepack has quit [Ping timeout: 250 seconds]
<jhass> if you just need that to iterate over the values: 1.upto(10) do |i|
Beoran has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
Joulse has quit [Quit: Joulse]
<cajone> jhass: thanks, thats a lot cleaner
chipotle has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nuck has quit [Read error: Connection reset by peer]
Advocation has quit [Quit: Advocation]
nuck has joined #ruby
chth0n has joined #ruby
diegovio1 has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
diegovio1 is now known as diegovio1a
sigurding has joined #ruby
gheegh has quit [Quit: ["has left the building"]]
phinfonet has joined #ruby
patric100e99 has joined #ruby
claymore has joined #ruby
Kricir has joined #ruby
diegoviola has quit [Ping timeout: 272 seconds]
<fly2web> http://pastebin.com/M3NfqqiG <—— why error occurs?
<ptrrr> the puts
<ptrrr> it returns a value
<fly2web> yes, what’s wrong?
<jhass> fly2web: inject feeds the result of the previous iteration as first argument into the next one
<ptrrr> accumulator is the return value of the previous invocation of the block
<jhass> fly2web: puts always returns nil
<jhass> fly2web: so accumulator is nil in the second iteration
Beoran has joined #ruby
<fly2web> p is ok?
hamakn has quit [Remote host closed the connection]
<jhass> if you can explain why
Advocation has joined #ruby
<fly2web> thanks but i don’t understand it.
<fly2web> :)
patric100e99 has quit [Ping timeout: 260 seconds]
<fly2web> this is example of rubymonkey.
Kricir has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
<ptrrr> it returns the value from the accumulator
<ptrrr> which goes back into the accumulator next iteration
Morkel has joined #ruby
<fly2web> but error don’t occur in p.
<fly2web> p accumulator
<jhass> fly2web: can you describe the differences between p and puts
<ptrrr> no but as jhass said, p/puts returns nil
<jhass> ptrrr: p doesn't
<ptrrr> no, right
<fly2web> :P thanks anyway.
<fly2web> i just continue my way although knowing hardly.
<ptrrr> p works for me
<fly2web> you?
<ptrrr> yes, me
<fly2web> what are you saying? then puts works me?
<ptrrr> your code but s/puts/p
<fly2web> puts works for me?
<jhass> on a side not to sum you can simply write .inject(:+)
<ptrrr> no! that’d be weird
<jhass> *note
MartinCleaver has joined #ruby
diegovio1a is now known as diegoviola
jamto11 has joined #ruby
JohnFord has joined #ruby
LiquidInsect has joined #ruby
<fly2web> yes?
<ptrrr> what?!
<DefV> no
<fly2web> no, then what is it?
<DefV> metaprogramming
<DefV> programming the programming
brianherman has joined #ruby
<DefV> writing code that writes code
fgo has joined #ruby
<ptrrr> but that code doesn’t write code
<ptrrr> that article confuses me
<fly2web> :(
<fly2web> oh too difficult
sixxy has quit [Ping timeout: 255 seconds]
MCDev has joined #ruby
<fly2web> i complete my course.
<ddv> did you already hack that bank, fly2web?
<ptrrr> is monkeypatching metaprogramming?
<jhass> no
<ptrrr> good
<fly2web> ddv: i just read 5 book. then i study ruby bisically.
<ddv> lol
<fly2web> who know this book?
<fly2web> my friend introduce it to me. so i will read it for a while.
creede has joined #ruby
<fly2web> i m too hard with studying ruby.
<fly2web> i think that there is no specialthing in ruby.
jottr has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
<fly2web> python == ruby == perl is my conclusion.
<AlexRussia> fly2web: lol
<AlexRussia> fly2web: sometimes is so much no
<fly2web> python == ruby == perl != haskell
<AlexRussia> :D
ldnunes has joined #ruby
<AlexRussia> fly2web: == Java? @_@
Takle has joined #ruby
<fly2web> yes i made android app with java
<AlexRussia> and for me ruby is easy to learn and understand
<AlexRussia> its something like C :D
CodeLicker has quit [Ping timeout: 250 seconds]
<ddv> ruby = easy to learn, hard to master
<fly2web> who can download ‘Liber Null & Psychonaut: An Introduction to Chaos Magic’ from torrent.
<fly2web> for me.?
kevkev_ has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<ddv> this guy ^ :p
jottr has quit [Ping timeout: 245 seconds]
<fly2web> ddv: you can do it?
<fly2web> 8)
<ddv> no I have better things to do
<ddv> like wasting time on irc
<fly2web> i heard that this book is good
malditogeek has quit [Quit: Leaving.]
niik00 has joined #ruby
<kevkev_> Does anyone here have experience with ruby+twitter api? I'm new to ruby and having trouble extracting the coordinates of a tweet: https://gist.github.com/kevster/f003ece7dd2885f8ac9b
<niik00> Hi guys. Can anybody tell me if there are better way to do this : http://www.rubular.com/r/vyl0IfRnkl
<niik00> I'd like to get 3 groups for each line : the first one all the text before ..X.., the second one ..X.. and the third one all the text after ..X..
phoo1234567 has joined #ruby
Wolland_ has quit [Remote host closed the connection]
pzula has joined #ruby
Wolland has joined #ruby
phoo1234567 has quit [Max SendQ exceeded]
<canton7> would be my approach, anyway
phoo1234567 has joined #ruby
Joulse has joined #ruby
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby
<niik00> canton7: yeah indeed, I'm kinda beginner with regex. But your (and mine too) method aren't totally correct. if there are 2 digits before the X, the first one is grouped with the group 1
Arkaniad has quit [Ping timeout: 264 seconds]
<niik00> but it should be with the second group
britneywright has joined #ruby
bmurt has joined #ruby
<hoelzro> niik00: are there always spaces on either side of the \d+x\d+?
Arkaniad has joined #ruby
spastorino has joined #ruby
Sgeo has quit [Read error: Connection reset by peer]
tokik has quit [Ping timeout: 250 seconds]
agrinb has joined #ruby
<fly2web> utorrent is good?
Wolland has quit [Ping timeout: 250 seconds]
asdasdasdasss has joined #ruby
<niik00> hoelzro: well I think so
pzula has quit [Ping timeout: 245 seconds]
earthquake has joined #ruby
<hoelzro> you could probably do \b(\d+x\d+)\b then
<niik00> jhass: It's exactly what I need
<hoelzro> jhass' would probably work too
Advocation has quit [Quit: Advocation]
<niik00> I tried with \D but I probably made a mistake cauz it didn't work
<hoelzro> can you tell Ruby to not capture a group by using (?:...)?
<niik00> it's nice like that :)
hamakn has joined #ruby
autochthon has quit [Read error: Connection reset by peer]
<workmad3> hoelzro: yes
<jhass> it didn't work is not very useful, if you got further examples for which the match is incorrect add them to the rubular
<hoelzro> good to know =)
<hoelzro> I can never remember which features are Perl-specific
<niik00> jhass: kinda hard to know data comes from a rss feed, I hope the author will *always* respect the same syntax.
agrinb has quit [Ping timeout: 250 seconds]
GriffinHeart has quit [Remote host closed the connection]
<workmad3> niik00: the only issue I could see with jhass's version is what if the show title or the episode title contains a digit?
pzula has joined #ruby
<jhass> yeah, probably safer to rely on the spaces, with the \b's or simply http://www.rubular.com/r/bNSvmqgSxS
GriffinHeart has joined #ruby
asdasdasdasss has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<Nowaker> hey guys. I have a question regarding ruby Timeout::timeout - is something like this possible? https://wklej.stratushost.eu/id/292/
fgo has joined #ruby
aagdbl has joined #ruby
amacou has quit [Read error: Connection reset by peer]
amacou has joined #ruby
<Nowaker> since Timeout::timeout is a very simple code, I can just write my own method that allows me to `prevent_timeout!`, but i'm just wondering if something like I want to achieve is possible with raw ruby
malditogeek has joined #ruby
<canton7> niik00, ah oops. this will do it: http://www.rubular.com/r/YUN7J9S71P
<niik00> If I don't say bullshit, this should work too : http://www.rubular.com/r/9UJwWSBKWx
agjacome has joined #ruby
pzula has quit [Ping timeout: 240 seconds]
<niik00> if an episode or a show title has special caracters like @, # or something like that it'll work too
<workmad3> Nowaker: don't think there's a built-in mechanism for that, no
<robscormack> Nowaker: nope, you can't
malditogeek has quit [Client Quit]
<Nowaker> workmad3, robscormack: thanks, will write my own Timeout::timeout-like method
hamakn has quit [Ping timeout: 264 seconds]
<jhass> Nowaker: btw. we tend to call methods with . not with ::
<Nowaker> def timeout(n, e = nil, &block) Timeout::timeout(n, e, &block)
jcromartie has joined #ruby
<Nowaker> end
<Nowaker> that's what in timeout.rb
<Nowaker> so even ruby devs use Timeout::timeout
<jhass> not in new code as far as I've noticed
<robscormack> now, you want to move out of the timeout method?
yfeldblum has quit [Ping timeout: 255 seconds]
<Nowaker> jhass: in 2.1.2
<jhass> that code is not new in 2.1.2
<jhass> it existed prior to that
<Nowaker> robscormack: will just write my method
paulfm has joined #ruby
teddyp1cker has joined #ruby
claymore has quit [Quit: Leaving]
mehlah has joined #ruby
nateberkopec has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
matrixdevuk has quit [Ping timeout: 256 seconds]
pabloh has joined #ruby
matrixdevuk has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
arup_r has quit [Ping timeout: 255 seconds]
krz has joined #ruby
Skwallinux has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
jamto11 has joined #ruby
jamto11 has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
nateberkopec has joined #ruby
zkay11 has joined #ruby
Kricir has joined #ruby
fly2web has left #ruby [#ruby]
luckyruby has quit [Quit: Leaving...]
amacou has quit [Remote host closed the connection]
amacou has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
notjohn has joined #ruby
obscured has joined #ruby
sk87 has joined #ruby
Gonzih has joined #ruby
lapidary has joined #ruby
amacou has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 0.4.3]
kaspertidemann has joined #ruby
ezmobius has quit []
anarang has quit [Quit: Leaving]
basiclaser has joined #ruby
MCDev has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
axilla_ is now known as axilla
kyb3r_ has quit [Read error: Connection reset by peer]
anarang has joined #ruby
MCDev has joined #ruby
robscormack has quit [Quit: Leaving]
<basiclaser> hey guys, ive been trying to learn/use JS for a couple years now, (not non-stop though) and I never seem to get to grips with it. It seems like a real mess of a language. Would you suggest I try ruby out instead? Im generally interested in visualizing data, 3d environments, automating things, little apps
<ddv> yes ruby is way cleaner
Hanmac has quit [Ping timeout: 272 seconds]
<ptrrr> you can even compile ruby to js
<ptrrr> :)
<cajone> ptrrr: can you elaborate on that point a little seems intersting?
<basiclaser> ooh cool :)
<cajone> ptrrr: thanks
klaut has quit [Remote host closed the connection]
<ptrrr> I haven’t tried it personally though
<workmad3> you can also use emscripten to compile pretty much anything that can be pushed through llvm into js
<workmad3> of course, that doesn't mean it'll 'just work' in a browser
<basiclaser> and making native apps for mobile devices?
calleerlandsson1 has joined #ruby
amacou has joined #ruby
<ruisantos> basiclaser: you have rubymotion (not free, iOS and android) and ruboto (free, android)
<Nowaker> basiclaser: visualizing data, 3d environemnts - I don't think so. automating things - surely, ruby is a great replacement for bash. little apps - depends on what apps. webapps - surely, desktop - there is only one desktop framework these days (shoes4) but requires java for clients to run; mobile - I don't know.
ctp has joined #ruby
<ddv> there is rubymotion ios/osx only
<niik00> mobile : rubymotion
<basiclaser> and what would you say the point of ruby is, for most people?
<niik00> android version coming soon
<pontiki> sheer joy in writing software
<pontiki> that's why i love ruby
<pontiki> but then you have to realize i love lisp, too :>
jamto11 has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
<basiclaser> hrmhrmhrhmphff
<ddv> pontiki: because all those parentheses are so fantastic :/
<pontiki> they are!
jespada has joined #ruby
pablo_ has joined #ruby
codeurge has quit [Quit: Sleep.]
jamto11 has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 255 seconds]
malditogeek has joined #ruby
Hanmac has joined #ruby
pabloh has quit [Ping timeout: 256 seconds]
<pontiki> see, basiclaser, no one else has a point for ruby
shredding has quit [Quit: shredding]
<pontiki> it's just another way to do the same stuff we all do
<pontiki> it's just a whole lot more fun
<Nowaker> basiclaser: well, a very flexible syntax and lots of language-provided features make writing in ruby the best experience, IMO. i'd say it's one of the most expressive languages.
jerius has joined #ruby
fly2web has joined #ruby
<Nowaker> writing nodejs isn't fun for me at all, though I use it because it fits better some use cases (e.g. http reverse proxy)
shredding has joined #ruby
jerius has quit [Client Quit]
<Nowaker> it's just joy to code ruby ;-) ...used to be a java developer in past ;P
agrinb has joined #ruby
arup_r has joined #ruby
chth0n has quit [Ping timeout: 250 seconds]
tkuchiki_ has joined #ruby
duggiefresh has joined #ruby
<apeiros> node for http reverse proxy? o0
<apeiros> in what twisted world have a slided into?
alexju has joined #ruby
qwyeth has joined #ruby
NinoScript_ has joined #ruby
<pontiki> look out for the ROUS
* apeiros hopes for a new vortex soon
<apeiros> ROUS?
Pharaoh2 has quit [Remote host closed the connection]
sixxy has joined #ruby
<pontiki> Rodents Of Unusual Size. not seen/read The Princess Bride?
asdasdasdasss has joined #ruby
<apeiros> hm, I think not
<apeiros> but I know mimmoths
<pontiki> recommended :)
<Nowaker> apeiros: of course node, super fast, support for complicated things like tls with forward secrecy in the standard library, etc.
tkuchiki has quit [Ping timeout: 264 seconds]
timfoo has quit [Ping timeout: 244 seconds]
<apeiros> what do you need a library for with a *proxy*?
linojon has joined #ruby
<apeiros> there's nothing to code…
<IteratorP> ruby gives me no language-specific stress.
Arkaniad has quit [Ping timeout: 250 seconds]
<apeiros> unless of course you choose to implement a new reverse proxy instead of using a proven one…
tkuchiki_ has quit [Ping timeout: 255 seconds]
vt102 has joined #ruby
<apeiros> you know, like nginx or apache
arup_r has quit [Remote host closed the connection]
<pontiki> mmmmmmmmmmmm mimmoth onna steek
<Nowaker> apeiros: so as not to fuck with nginx or apache, mate.
DrCode has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros> Nowaker: …because writing your own reverse proxy is better than just running another nginx instance :)
<apeiros> sorry, doesn't make sense to me.
timfoo has joined #ruby
* apeiros brb
<Nowaker> to you
Xeago has joined #ruby
<Nowaker> apache wasn't that reliable compared to http-master, a nodejs http reverse proxy.
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asdasdasdasss has quit [Ping timeout: 250 seconds]
<workmad3> Nowaker: I bet nginx is more reliable and probably faster :P
comma8 has joined #ruby
Zenigor has joined #ruby
tjr9898 has quit [Remote host closed the connection]
AlexBlom has joined #ruby
mark_locklear has joined #ruby
tjr9898 has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
<Nowaker> workmad3: but you can't just add and `if` to nginx to prevent some requests, can you? oh you can, if you write C code and recompile.
arup_r has joined #ruby
sambao21 has joined #ruby
<Nowaker> having the http proxy in ruby/node or something like that makes it more flexible and powerful.
<workmad3> Nowaker: or you use an 'if' in the server config...
<jhass> actually you can, it's just bad pratice (http://wiki.nginx.org/IfIsEvil) you can get very far with the location stuff though
<workmad3> Nowaker: or you set up a location block for those requests and reject them with a 404...
<Nowaker> workmad3: think of my `if` as `any code`
DrCode has joined #ruby
uxp has quit [Remote host closed the connection]
Bumptious has quit [Remote host closed the connection]
<workmad3> Nowaker: I doubt you want the ability to run arbitrary code in your reverse proxy though ;)
arup_r has quit [Remote host closed the connection]
Bumptious has joined #ruby
<ptrrr> you can script nginx using lua, can’t you?
<toretore> basiclaser: js the lang is not a mess, it's pretty clean. i'd say it's cleaner than ruby. what can be messy is the environment you use it in, like the dom
jobewan has joined #ruby
jcromartie has joined #ruby
shredding has quit [Quit: shredding]
<ddv> toretore: really? compare a a backbone.js model with a ruby model
<Nowaker> workmad3: i doubt anybody needs ruby, we could just write c code.
<ddv> -a
niik00 has left #ruby [#ruby]
<workmad3> Nowaker: I'm not talking about that sort of thing
<Nowaker> you are
<workmad3> Nowaker: I'm meaning that a reverse proxy needs to be fast and reliable... throwing arbitrary code execution into that destroys both aspects
<czaks> js seems clean if you know how to use it
<toretore> ddv: backbone != js
<toretore> i'm talking about javascript the language
<toretore> which has very few and easily understandable, elegant primitives
Scribblerockerz has joined #ruby
pzula has joined #ruby
<Nowaker> workmad3: it's what *you* think reverse proxy that *you* will use needs to be, not me.
banister has quit [Read error: Connection reset by peer]
<Nowaker> and for me is nodejs http reverse proxy, period.
chth0n has joined #ruby
banister_ has joined #ruby
<ddv> toretore: js is syntax bloat compared to ruby
<workmad3> Nowaker: it sounds like you want your reverse proxy to be your app :P
snath has quit [Ping timeout: 240 seconds]
uxp has joined #ruby
<workmad3> Nowaker: but fair enough, it's your environment... have fun with it ;)
<Nowaker> workmad3: not quite
<AntelopeSalad> is anyone familiar with the backup gem?
<pontiki> a little
<AntelopeSalad> it accepts a host option but it doesn't seem to actually connect to that host
<Nowaker> I wrote a module that scans for all certificates, private keys and such automatically
<ptrrr> ddv: what’s the syntax bloat? just curious
<AntelopeSalad> it always goes for localhost
tvw has quit [Remote host closed the connection]
<Nowaker> so i don't have to condifure these *(&(*& certs all the time
<Nowaker> configure*
<pontiki> i've only used it locally
<DefV> reverse proxy or reverse caching proxy?
<workmad3> Nowaker: I just scripted the config creation
<DefV> because a reverse caching proxy needs some programability
<toretore> var fn = function(){}; var obj = {}; obj.property = value;
<AntelopeSalad> pontiki, i have an app server and a db server , i had the backup script on my app server
<toretore> that's about it.
<toretore> not very bloated
<Nowaker> workmad3: I don't create any ssl configs for that, just put the certs and it works
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<AntelopeSalad> even with a remote host specified it tries to execute: sudo -n -u postgres pg_dump
tvw has joined #ruby
<apeiros> Nowaker: such logic sounds indeed more like application logic. a proxy is supposed to be "dumb" (which as workmad3 pointed out is what makes it both fast and reliable)
<pontiki> that's nice
<ptrrr> toretore: yeah, in my mind js has very slim syntax
<ddv> try to make a backbone.js model and compare it to a activerecord model
<AntelopeSalad> so it completely ignores the -h option
kaspertidemann has quit []
<toretore> ddv: i already told you that that's not a valid comparison
<ddv> toretore: arguments?
<toretore> above
sailias has joined #ruby
<toretore> you are comparing two libraries, not the languages
<Nowaker> apeiros: but you know, because proxy has been supposed to act like you say for years, doesn't mean it's not OK to act differently.
<AntelopeSalad> i guess it's time to stop using that gem :D
<ddv> toretore: it's a practical, real world example
<ptrrr> ddv: it’s not a fair comparison
<ptrrr> even between those libraries
anarang has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
<Nowaker> the goal of http-master is to have the most user friendly config as it's possible (see the examples), address real world issues (e.g. non-www redirects to www, done easily), provide sane security defaults (forward secrecy, beast mitigation), scan for certs automatically and be code-flexible if someone needs that
<toretore> ddv: so? that has nothing to do with the bloatedness/messiness/whatever of the lang
<Nowaker> and, of course, perform well. and it does for my business, http://atlashost.eu/
kiri has quit [Read error: Connection reset by peer]
<ddv> Nowaker: you think that will scale to the level of something like varnish?
<Nowaker> ddv: I don't have that much traffic so I'm not even able to check. but I don't think it will.
notjohn has quit [Quit: notjohn]
Arkaniad has joined #ruby
Xeago_ has joined #ruby
pothibo_ has joined #ruby
grzywacz has quit [Ping timeout: 256 seconds]
davedev24_ has quit [Remote host closed the connection]
jorendorff has left #ruby [#ruby]
pothibo has quit [Ping timeout: 245 seconds]
Xeago__ has joined #ruby
<kevkev_> Aah, found the solution to my problem. Apparently there's a geo-method which is an alias to coordinates
sambao21 has quit [Quit: Computer has gone to sleep.]
gruz0[russia] has joined #ruby
malditogeek has quit [Quit: Leaving.]
pzula has quit [Ping timeout: 264 seconds]
Pharaoh2 has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
robscormack has joined #ruby
anarang has joined #ruby
<Nowaker> ddv: my peak traffic is something around 100req/s, not so much. though, `ab -n 50000 -c 50` says 3160 req/s.
tjr9898 has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
JohnFord has joined #ruby
sambao21 has joined #ruby
<Nowaker> ddv: the machine is E5-2603 (a weak cpu) with ~200GiB ram
Xeago_ has quit [Ping timeout: 256 seconds]
<ddv> does ab fire off parallel requests?
tier has joined #ruby
<Nowaker> would be probably twice as much on E5-1650 that we have on different servers
<Nowaker> ddv: -c 50 means 50 parallel reqs
<ddv> ah ok
whyy has quit [Ping timeout: 250 seconds]
Zenigor_ has joined #ruby
Kricir has joined #ruby
Arkaniad has quit [Ping timeout: 264 seconds]
chipotle has quit [Quit: cya]
Zenigor_ has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
djcp has joined #ruby
Zenigor has quit [Ping timeout: 250 seconds]
tjr9898 has quit [Ping timeout: 264 seconds]
kevind has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
SilkFox has joined #ruby
uxp has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 255 seconds]
alexju has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 250 seconds]
alexju has joined #ruby
endash has joined #ruby
freerobby has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
timfoo has quit [Ping timeout: 244 seconds]
uxp has joined #ruby
Wolland has joined #ruby
rp__ has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
timfoo has joined #ruby
Kricir has joined #ruby
<apeiros> Nowaker: or you know, because you want logic in the place of where a proxy was before, it might no longer be a proxy and you should probably use a different word :)
Darryl has joined #ruby
DrCode has quit [Remote host closed the connection]
<DefV> I'm not convinced a proxy should be logicless
pothibo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
pothibo has joined #ruby
agrinb has quit [Remote host closed the connection]
NinoScript_ has quit [Ping timeout: 245 seconds]
alexju has quit [Ping timeout: 256 seconds]
DrCode has joined #ruby
<apeiros> they do have logic. the question is how much logic until it no longer fits the term.
agrinb has joined #ruby
<workmad3> Nowaker: also, is atlashost.eu using http-master? because it doesn't exactly fulfill the security spiel you gave earlier ;)
wald0 has joined #ruby
<workmad3> Nowaker: https://www.ssllabs.com/ssltest/analyze.html?d=atlashost.eu has poor FS, poor ciphers, no tls1.2 support...
<Nowaker> workmad3: yep, forward secrecy isn't enabled now unfortunately
ascarter has joined #ruby
<Nowaker> this is because of bugs in node 0.11, and we still need node 0.10
<Nowaker> once they fix, node 0.11 will be used, and forward secrecy will be there again
Jon31 has quit []
<workmad3> Nowaker: oh, you also have a DoS attack vector open ;)
mikesplain has joined #ruby
DaniG2k has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
<workmad3> Nowaker: I think I'll stick with my nginx config :P
agrinb_ has joined #ruby
<Nowaker> workmad3: atlashost.eu is a different server, for website only, it's some legacy server with ubuntu 10.10 or something like that haha, it's scheduled for shutdown
tylerkern has joined #ruby
<Nowaker> and it's rails 2.3 app (yeah!) behind lighttpd
agrinb has quit [Read error: Connection reset by peer]
<workmad3> Nowaker: still doesn't fill me with confidence
Ankhers has joined #ruby
<Nowaker> the only issue with jira.atlashost.eu is lack of forward secrecy (not present in nodejs 0.10, and nodejs 0.11 still buggy so can't use)
<workmad3> Nowaker: the only cipher you use is RC4, which is known to be flawed
NinoScript_ has joined #ruby
<workmad3> Nowaker: and the same DoS vector is open
freerobby has quit [Quit: Leaving.]
Zenigor has joined #ruby
<Nowaker> workmad3: it's not open, nodejs has a builtin limiter to 3 client-initiated renegotations
<Nowaker> so ssllabs thinks it's DoS vulnerable but it's not
<workmad3> Nowaker: how about SSL resumption?
<Nowaker> workmad3: what you say about RC4 is not true, other ciphers could be used but they had to be disabled to mitigate BEAST
Advocation has joined #ruby
Ankhers has quit [Remote host closed the connection]
<Nowaker> you have to read stuff just a bit more, because with beast vs rc4 there's a paradox
<Nowaker> rc4 may be weak
<Nowaker> on the other hand, non-rc4 ciphers are beast-vulnerable
Ankhers has joined #ruby
<Nowaker> therefore you either have to go with rc4 or beast-vulnerable ciphers
Advocation has quit [Client Quit]
<Nowaker> this won't be a case when we have forward secrecy back
tjr9898 has joined #ruby
<Nowaker> since ECDHE ciphers don't use rc4, and are not beast-vulnerable
jamto11 has joined #ruby
IteratorP has quit [Remote host closed the connection]
<workmad3> Nowaker: you mean like my nginx config is using right now? :P
<ddv> you don't have to act like a dick, workmad3
<workmad3> ddv: but it's so fun! :)
<Nowaker> workmad3: exactly
<ddv> :/
<apeiros> ddv: language
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ddv> same goes for you apeiros :P
<apeiros> ddv: ?
<apeiros> ddv: explain please.
<ddv> apeiros: never mind
aganov has quit [Quit: Leaving]
NinoScript_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlexBlom has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 272 seconds]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> ddv: ok, whatever you meant. but language like "act like a dick" is not acceptable here.
<ddv> apeiros: I know
<apeiros> good
GriffinHeart has quit [Remote host closed the connection]
<workmad3> Nowaker: btw, the ssl labs guide does say that, unless you absolutely have to support unpatched browsers that can't mitigate beast client-side, you should avoid RC4 ;)
<txdv> act like a python developer
<Nowaker> workmad3: are you really so cruel to disable rc4 altogether and prevent IE8 users on XP, or default browser on Android 2.3 (these phones still have 20% market share), from seeing a website? I am not. In fact, customers do *pay* to access the website from these devices as well, so I absolutely have to support these browsers.
<ddv> apeiros: how can it be good? I knew and I did it anyways
<ddv> :)
<workmad3> Nowaker: yes, I am 'so cruel' as to stop IE8 on XP from working... which I already do due to requiring SNI
arup_r has joined #ruby
<apeiros> ddv: but I know now that you know and will kick you next time :-p
<workmad3> Nowaker: I also prevent java 6 from talking to my server because it can't support dhparams over 1024bit
<ddv> :/
<Nowaker> workmad3: you have your customers, I have mine. please, stop
<apeiros> assuming my memory serves me well next time you do :)
<ddv> hehe
<workmad3> Nowaker: I said quite a while ago that it's your setup ;) I was just pointing out the inaccuracy in your 'more secure' spiel from earlier :)
asdasdasdasss has joined #ruby
<Nowaker> workmad3: it's not at the very moment, we are waiting for one bug fixed in node 0.11
<Nowaker> workmad3: but we do have a switch to disable rc4 altogether
Advocation has joined #ruby
Arkaniad has joined #ruby
<Nowaker> disableWeakCiphers: true
arturaz has joined #ruby
edmellum has joined #ruby
IceDragon has joined #ruby
codeurge has joined #ruby
djcp has left #ruby ["WeeChat 0.4.3"]
tylerkern has joined #ruby
diegovio1 has joined #ruby
asdasdasdasss has quit [Ping timeout: 245 seconds]
diegoviola is now known as Guest42018
davedev24_ has joined #ruby
baweaver has joined #ruby
hamakn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
AlexBlom has joined #ruby
Xiti` has joined #ruby
mary5030 has joined #ruby
nateberkopec has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
Xiti has quit [Read error: Connection reset by peer]
banister_ has quit [Read error: Connection reset by peer]
britneywright has quit [Read error: Connection reset by peer]
banister has joined #ruby
britneywright has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
dayepa has quit [Ping timeout: 245 seconds]
spacemud has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
Arkaniad has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
razum2um has quit [Quit: Leaving.]
teddyp1cker has quit [Remote host closed the connection]
spacemud has joined #ruby
dayepa has joined #ruby
ramfjord has joined #ruby
diegovio1 is now known as diegovio1a
eka has joined #ruby
arturaz has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Quit: Leaving...]
codeurge has quit [Quit: Sleep.]
tobago has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
daed_ is now known as daed
nateberkopec has joined #ruby
TDJACR has quit [Ping timeout: 250 seconds]
rayners has joined #ruby
codeurge has joined #ruby
agrinb_ has quit [Remote host closed the connection]
sk87 has joined #ruby
Fusl has quit [Ping timeout: 272 seconds]
wald0 has quit [Ping timeout: 255 seconds]
grzywacz has joined #ruby
paulfm has quit [Ping timeout: 245 seconds]
supermat has quit [Ping timeout: 272 seconds]
yekta has joined #ruby
pablo_ has quit [Remote host closed the connection]
Bounga has quit [Read error: No route to host]
AlexBlom has quit [Read error: Connection reset by peer]
wald0 has joined #ruby
sixxy has quit [Remote host closed the connection]
Bounga has joined #ruby
AlexBlom has joined #ruby
Fusl has joined #ruby
sambao21 has joined #ruby
QuintinAdam has joined #ruby
TDJACR has joined #ruby
jherbst has joined #ruby
<the8thbit|work> Hello there
NukePuppy has joined #ruby
paulfm has joined #ruby
supermat has joined #ruby
j_mcnall_ has joined #ruby
<ptrrr> hi 8bit
itspots has joined #ruby
itspots has joined #ruby
<the8thbit|work> I'm following some documentation which is telling me to put a line into a file called ./config/Gemfile.plugins
<the8thbit|work> and then run bundle install
<the8thbit|work> but bundle install seems to ignore Gemfile.plugins
vsoftoiletpaper has joined #ruby
Zenigor has quit [Remote host closed the connection]
<the8thbit|work> Is there something else I have to do to tell bundle to include ./config/Gemfile.plugins
Zenigor has joined #ruby
<the8thbit|work> hello ptrrr
<jhass> I've never seen such stuff
<the8thbit|work> nevermind
<the8thbit|work> figured it out from the man pages
Advocation has quit [Quit: Advocation]
<the8thbit|work> this documentation really should tell you that you have to point bundle install at the gemfile
treehug88 has joined #ruby
<jhass> we have no idea what docs you're talking about
agrinb has joined #ruby
nfk has quit [Ping timeout: 250 seconds]
<the8thbit|work> its not ruby docs, I'm not complaining about ruby lol
<the8thbit|work> I think these docs were generated by someone in house, actually
diegovio1a has quit [Remote host closed the connection]
Zenigor has quit [Ping timeout: 255 seconds]
<Nowaker> Gemfile.plugins
<Nowaker> interesting
aboudreault_ is now known as aboudreault
aboudreault has quit [Changing host]
aboudreault has joined #ruby
<Nowaker> it's probably something totally custom, interpreted by the app itself, not bundler
ffranz has joined #ruby
Photism has quit [Quit: Leaving]
TorpedoSkyline has joined #ruby
wald0 has quit [Ping timeout: 272 seconds]
<Nowaker> btw, nice find, https://www.openproject.org/
wald0 has joined #ruby
<the8thbit|work> Nowaker: how'd you figure out what docs I was talking about? lol
Bira has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: Leaving]
<Nowaker> the8thbit|work: with google, my friend
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zenigor has joined #ruby
Takle has quit [Remote host closed the connection]
<the8thbit|work> I see, so Gemfile.plugins is an openproject thing
mikepack has joined #ruby
mikespla_ has joined #ruby
Takle has joined #ruby
chipotle has joined #ruby
lw has joined #ruby
mahtennek has joined #ruby
DaniG2k has quit [Quit: leaving]
<mahtennek> hi can someone help me with processing files? i am trying to read 3 files and process the file information so as to put the information into one json. it keeps looping over and over again
<mahtennek> please advise
<jhass> show code (see topic)
geggam has joined #ruby
amargherio has joined #ruby
mikesplain has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
<mahtennek> jhass: i think it is running each line of each file and then creating the json based on that. so explains the repetition.
<mahtennek> please advise me a better way to code this.
Takle has quit [Ping timeout: 245 seconds]
j_mcnall_ has joined #ruby
agrinb has quit [Remote host closed the connection]
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
jshultz has joined #ruby
<the8thbit|work> hmmm
<jhass> mahtennek: what's in location_file and location_name? The names indicate something like single string, then calling zip indicates they're arrays
<the8thbit|work> when I run bundle exec rails generate open_project:plugin status_check ./plugins
<the8thbit|work> I get
<the8thbit|work> /home/psussman/openproject/Gemfile:260:in `read': Is a directory @ io_fread - /home/psussman/openproject/Gemfile.plugins (Errno::EISDIR)
bal has quit [Quit: bal]
<mahtennek> jhass: it's text of strings. give me a moment, i send an example over
AskSteve has joined #ruby
<the8thbit|work> oh, thats because thats a directory
<the8thbit|work> who'd of thought
Vivekananda_y510 has joined #ruby
codeFiend has joined #ruby
atmosx has quit [Remote host closed the connection]
dfglkdjglk54 has joined #ruby
AskSteve has left #ruby [#ruby]
<jhass> ah, I slowly see what you're doing
<jhass> or what you want, rather
amargherio has quit [Ping timeout: 240 seconds]
<mahtennek> yup
arup_r1 has joined #ruby
elico has quit [Ping timeout: 264 seconds]
amargherio has joined #ruby
<jhass> they're are quite a number of odd things in your code tbh.
<jhass> for example you build a json string just to parse it
failshell has joined #ruby
<jhass> instead of building the resulting hash directly
arup_r has quit [Read error: Connection reset by peer]
<jhass> you call .sub! in an assignment
<mahtennek> yeah please show me what is the better way to do it.
<mahtennek> the sub! i wanted to remove trailing spaces
<jhass> two of your subs are just .rstrips
<jhass> there's a difference between sub and sub!
Morkel has quit [Quit: Morkel]
jprovazn has quit [Quit: Leaving]
<mahtennek> i see...
<mahtennek> wow
<mahtennek> you can tell i am pretty new to ruby haha!
<jhass> I'd parse all three files into ruby datastructures first, then combine these datastructures to generate the wanted result
drusepth has quit [Remote host closed the connection]
maletor has joined #ruby
<mahtennek> any examples online i could look at?
ValicekB has quit [Ping timeout: 245 seconds]
Pharaoh2 has quit [Remote host closed the connection]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Takle has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ptrrr has quit [Quit: ptrrr]
Pharaoh2 has joined #ruby
tjr9898 has joined #ruby
tjr9898_ has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
dru has joined #ruby
IcyDragon has joined #ruby
Akagi201 has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
dfglkdjglk54 has quit [Remote host closed the connection]
<jhass> mahtennek: http://paste.mrzyx.de/p1928ff84/ something like that (completely untested)
<mahtennek> jhass: wow thanks. i will figure it out on the way. thank you so much for the advise and help! appreciated it
asdasdasdasss has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
fabrice31 has joined #ruby
Wolland has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
CaptainJet has joined #ruby
fly2web has left #ruby [#ruby]
grzywacz has quit [Ping timeout: 255 seconds]
ValicekB has joined #ruby
chrishough has joined #ruby
Spami has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 245 seconds]
terrellt has joined #ruby
reisl has joined #ruby
nateberkopec has quit [Quit: Leaving...]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
peta_ has joined #ruby
hamakn has quit [Remote host closed the connection]
mikespla_ has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
wald0 has quit [Ping timeout: 240 seconds]
exgf has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has joined #ruby
kotk_ has joined #ruby
maletor has joined #ruby
wald0 has joined #ruby
mikesplain has joined #ruby
kotk has quit [Ping timeout: 256 seconds]
jlovick has joined #ruby
Guest42018 has quit [Ping timeout: 250 seconds]
snath has joined #ruby
yalue has joined #ruby
IteratorP has joined #ruby
<the8thbit|work> hm bundle seems to generate that directory
<the8thbit|work> and then complains about it
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
grzywacz has joined #ruby
sigurding has quit [Quit: sigurding]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
AlexBlom has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
Bira has joined #ruby
jmbrown412 has joined #ruby
IcyDragon is now known as IceDragon
grzywacz has quit [Client Quit]
ramfjord has joined #ruby
SilkFox has quit [Ping timeout: 264 seconds]
apeiros has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 260 seconds]
tjr9898_ has quit [Remote host closed the connection]
apeiros has joined #ruby
atmosx has joined #ruby
GhettoJava has joined #ruby
<GhettoJava> I'm currently starting my ruby learn with the second edition pickaxe
<GhettoJava> covers 1.9
Wolland has joined #ruby
patric100e99 has joined #ruby
<GhettoJava> had it for a while but now I have a reason to learn Ruby. Can I still use that book or should I upgrade?
ta has quit [Quit: Leaving...]
<GhettoJava> sorry , second edition covers 1.8
<jhass> the differences between 1.8 and 1.9 are actually much much bigger than between 1.9 and 2.0/2.1
kevkev_ has quit [Quit: Computer has gone to sleep.]
<jhass> so I do would consider getting a newer version
apeiros has quit [Ping timeout: 272 seconds]
aagdbl has joined #ruby
ixti has joined #ruby
Scribblerockerz has quit []
<GhettoJava> Thanks jhass
<GhettoJava> I'll bite the bullet
ta has joined #ruby
<GhettoJava> btw, I get a blog site when I to that http://www.modruby.net/ listed above
patric100e99 has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
SilkFox has joined #ruby
<pontiki> what modruby site?
ValicekB has joined #ruby
<GhettoJava> it's the link in the greetings header of this channel
hamakn has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
<GhettoJava> sorry, it's from the ChanServ
<GhettoJava> [#ruby] Welcome to #ruby. || http://www.ruby-lang.org || http://www.modruby.net is what it outputs
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darkxploit has joined #ruby
M-Technic has quit [Quit: leaving]
abuzze has quit [Ping timeout: 240 seconds]
kevkev has joined #ruby
tjr9898 has joined #ruby
<pontiki> i'm guessing it's never been changed in 11 years...
itspots has quit [Remote host closed the connection]
MCDev has joined #ruby
Pharaoh2 has quit [Quit: Leaving...]
aagdbl has quit [Quit: This computer has gone to sleep]
HashNuke has joined #ruby
renderful has joined #ruby
aedorn has joined #ruby
yfeldblum has joined #ruby
nateberkopec has joined #ruby
Primordus has joined #ruby
elico has joined #ruby
kevkev has quit [Quit: Computer has gone to sleep.]
tylerkern has joined #ruby
_tpavel has quit [Quit: Leaving]
rippa has joined #ruby
icarus has joined #ruby
obs has quit [Quit: Saliendo]
maletor has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Ping timeout: 245 seconds]
ra4king has quit [Remote host closed the connection]
<aedorn> 'lo
IceDragon has joined #ruby
ra4king has joined #ruby
Ankhers has quit [Remote host closed the connection]
tylerkern has quit [Client Quit]
ramfjord has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
codecop has joined #ruby
spyderman4g63 has quit []
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylerkern has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
Wolland has quit [Remote host closed the connection]
kireevco has joined #ruby
agrinb has joined #ruby
gheegh has joined #ruby
mahtennek has quit []
kireevco has quit [Client Quit]
gkra_ is now known as gkra
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1cker has joined #ruby
maletor has joined #ruby
kireevco has joined #ruby
michaeldeol has joined #ruby
bricker`work has joined #ruby
pietr0 has joined #ruby
pzula has joined #ruby
tylerkern has quit [Quit: Textual IRC Client: www.textualapp.com]
alex88 has quit [Quit: Leaving...]
timonv_ has quit [Remote host closed the connection]
stef_204 has joined #ruby
timonv_ has joined #ruby
ramfjord has joined #ruby
britneywright has joined #ruby
klaut has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
klaut has joined #ruby
Bira has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Zebroid has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
gheegh has quit [Quit: Zzzzzz]
klaut has quit [Ping timeout: 245 seconds]
asdasdasdasss has quit [Ping timeout: 272 seconds]
banister has joined #ruby
Wolland has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
troyready has joined #ruby
ra4king1 has joined #ruby
ra4king has quit [Ping timeout: 245 seconds]
b00stfr3ak has joined #ruby
banjara has joined #ruby
ra4king2 has joined #ruby
isthisreallife has joined #ruby
isthisreallife has left #ruby [#ruby]
oso|away is now known as oso96_2000
Xeago__ has quit [Remote host closed the connection]
chihhsin has joined #ruby
Ankhers has joined #ruby
ra4king1 has quit [Ping timeout: 245 seconds]
kevkev has joined #ruby
amargherio has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
IteratorP has quit [Remote host closed the connection]
ssvo has joined #ruby
Zebroid has quit [Read error: Network is unreachable]
Xeago has joined #ruby
seamon has joined #ruby
aspires has quit []
Zebroid has joined #ruby
Bira has joined #ruby
aspires has joined #ruby
noop has quit [Ping timeout: 245 seconds]
the_jaba has joined #ruby
aantix has joined #ruby
noop has joined #ruby
tylerkern has joined #ruby
MCDev has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Wibbly Wobbly IRC]
the_jaba has quit [Client Quit]
Zenigor has quit [Remote host closed the connection]
timonv_ has joined #ruby
x1337807x has joined #ruby
dblessing has joined #ruby
Panicky has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
pzula has quit [Ping timeout: 256 seconds]
theharshest has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yekta has quit [Quit: yekta]
teddyp1cker has quit [Remote host closed the connection]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
tjr9898 has quit [Remote host closed the connection]
theharshest has quit [Client Quit]
lkba has joined #ruby
Joulse has quit [Quit: Joulse]
theharshest has joined #ruby
codeFiend has joined #ruby
kevkev has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
Zebroid has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Xeago has quit [Remote host closed the connection]
wallerdev has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
BBBThunda has quit [Ping timeout: 240 seconds]
wald0 has quit [Ping timeout: 245 seconds]
amacou has quit [Remote host closed the connection]
amacou has joined #ruby
Zenigor has joined #ruby
wald0 has joined #ruby
tylerkern has quit [Quit: Textual IRC Client: www.textualapp.com]
shredding has joined #ruby
codeFiend has quit [Quit: codeFiend]
Primordus has quit [Quit: WeeChat 0.4.3]
mikecmpbll has joined #ruby
gheegh has joined #ruby
wjimenez_5271_ has joined #ruby
Xeago has joined #ruby
wallerdev has quit [Quit: wallerdev]
tier_ has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
amacou has quit [Ping timeout: 264 seconds]
codeFiend has joined #ruby
codeFiend has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
dru is now known as drusepth
djbkd has joined #ruby
SilkFox has quit [Ping timeout: 250 seconds]
codeFiend has joined #ruby
bradleyprice has quit [Remote host closed the connection]
tjr9898 has joined #ruby
sambao21 has joined #ruby
bradleyprice has joined #ruby
tier has quit [Ping timeout: 256 seconds]
bayed has joined #ruby
deric_skibotn has joined #ruby
agarie has joined #ruby
Zebroid has joined #ruby
teddyp1cker has joined #ruby
peta_ has quit [Quit: peta_]
Xeago has quit [Remote host closed the connection]
BBBThunda has joined #ruby
ThirdSign has joined #ruby
codeFiend has quit [Client Quit]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
Zenigor has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 272 seconds]
Zenigor has joined #ruby
QuintinAdam has quit [Remote host closed the connection]
sputnik13 has joined #ruby
charliesome has joined #ruby
QuintinAdam has joined #ruby
bluOxigen has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
b00stfr3ak has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon has joined #ruby
yfeldblu_ has joined #ruby
b00stfr3ak has joined #ruby
SilkFox has joined #ruby
relix has joined #ruby
Zenigor_ has joined #ruby
lxsameer has quit [Quit: Leaving]
Zenigor has quit [Read error: Connection reset by peer]
QuintinAdam has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
tier_ has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
chth0n has quit [Ping timeout: 260 seconds]
danijoo has joined #ruby
yekta has joined #ruby
yfeldblu_ has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
Zebroid has quit [Read error: Network is unreachable]
Zebroid has joined #ruby
sindork has joined #ruby
sindork has quit [Changing host]
Spami has joined #ruby
kevkev has joined #ruby
Wolland_ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
cmarques has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
Wolland has quit [Ping timeout: 256 seconds]
Hobogrammer has joined #ruby
duggiefresh has joined #ruby
gheegh has quit [Quit: Zzzzzz]
kevkev has quit [Ping timeout: 255 seconds]
Wolland_ has quit [Remote host closed the connection]
Wolland has joined #ruby
lkba has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
timonv^ has joined #ruby
opus has joined #ruby
saarinen has joined #ruby
tier has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
chth0n has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
<wallerdev> good morning!!
Wolland has quit [Ping timeout: 255 seconds]
maestrojed has joined #ruby
lkba has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
pu22l3r_ has joined #ruby
asdasdasdasss has joined #ruby
rdark has quit [Quit: leaving]
yfeldblum has joined #ruby
SilkFox has joined #ruby
banjara has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
Zenigor_ has quit [Remote host closed the connection]
Zenigor has joined #ruby
CrashHD has joined #ruby
timonv^ has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 255 seconds]
pu22l3r_ has quit [Remote host closed the connection]
<CrashHD> how do I output available functions?
<CrashHD> in a template
pu22l3r has joined #ruby
asdasdasdasss has quit [Ping timeout: 240 seconds]
centipedefarmer has quit [Remote host closed the connection]
chth0n has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
gheegh has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
kireevco1 has joined #ruby
kireevco1 has quit [Client Quit]
SegFaultAX has quit [Excess Flood]
kireevco has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
razum2um has joined #ruby
Zenigor has quit [Ping timeout: 272 seconds]
<shevy> wat
razrunelord has joined #ruby
SegFaultAX has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roolo has quit [Quit: Leaving...]
qwyeth has quit [Ping timeout: 256 seconds]
qwyeth_ has joined #ruby
lewix has joined #ruby
pu22l3r has quit [Remote host closed the connection]
aagdbl has joined #ruby
pu22l3r has joined #ruby
alexju has joined #ruby
olivier_bK has quit [Ping timeout: 255 seconds]
Advocation has quit [Quit: Advocation]
claymore has joined #ruby
apeiros has joined #ruby
amargherio has joined #ruby
b00stfr3ak has quit [Ping timeout: 250 seconds]
opus has quit []
carraroj has joined #ruby
qwyeth_ has quit [Ping timeout: 250 seconds]
nanoyak has joined #ruby
b00stfr3ak has joined #ruby
michaeldeol has joined #ruby
lw has joined #ruby
chth0n has joined #ruby
<eam> is there a good irc gem that encapsulates the protocol without implying an evented framework?
codeFiend has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
<apeiros> eam: I tried to do that with silverplatter-irc. but it's a bit dated.
opus has joined #ruby
<apeiros> and "a bit dated" is a friendly expression for "antiquated". but I do accept pull requests to modernize it :)
tvw has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has joined #ruby
Arkaniad has joined #ruby
<apeiros> oh nice, rubyforge links…
<shevy> he also wrote butler
<apeiros> that's from where this lib comes
<apeiros> butler is antiquated too :-(
Gonzih has quit [Ping timeout: 240 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
seamon has quit [Quit: Zzzzzzz]
yetanotherdave has joined #ruby
AlSquire has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arkaniad has quit [Max SendQ exceeded]
<godd2> oh man are those tab indents?
sk87 has joined #ruby
<apeiros> yes. that was before I accepted that conforming was better than sticking to my own preferences :)
Arkaniad has joined #ruby
bricker`work has quit [Read error: Connection reset by peer]
AlSquire has quit [Client Quit]
sk87 has quit [Client Quit]
<pipework> My opinion is that you should read the code with the indentation that I crafted it with. Deal with it or go home.
<godd2> I hear tabs are webscale, though, bro
Hobogrammer has quit [Ping timeout: 250 seconds]
<apeiros> hm, it's a one-liner in ruby to switch them all to spaces
<C0deMaver1ck> FIGHT!
Bira has quit [Remote host closed the connection]
<C0deMaver1ck> um, I thought C convention was tabs
Zenigor has joined #ruby
chth0n has quit [Ping timeout: 240 seconds]
<apeiros> if you have a smart editor - tabs for indent and align. sadly no smart editor exists, and if it existed, people would still use vim & emacs. so we stick to spaces :)
ramfjord has quit [Ping timeout: 260 seconds]
kaspergrubbe_ has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 240 seconds]
teddyp1cker has joined #ruby
<apeiros> if you read rubys C source, you'll find tab & spaces mixed. that's IMO about the worst out of all available options.
kaspergrubbe_ has joined #ruby
<C0deMaver1ck> ick
<eam> apeiros: rad, thanks
qwyeth_ has joined #ruby
seamon has joined #ruby
<C0deMaver1ck> I have, I try to read MRI's source every x.x release
TDJACR has quit [Excess Flood]
<eam> if you have a smart editor it can do everything with spaces that it does with tabs
TDJACR has joined #ruby
bricker`work has joined #ruby
opus has quit []
yk has joined #ruby
yk has quit [Excess Flood]
yk has joined #ruby
aagdbl has quit [Quit: This computer has gone to sleep]
yk has quit [Excess Flood]
yk has joined #ruby
<yk> warning
<yk> you may be watched
<yk> do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to spy??
<yk> ÊÍÐíÑ
<yk> do they record&analyse everything we do on the internet,,can they harm you using these informations??
<yk> do usa&israel use the internet 2 collect informations,,can we call that spying??
yk has quit [Excess Flood]
testcore has joined #ruby
yk has joined #ruby
kaspergrubbe_ has quit [Ping timeout: 245 seconds]
dawkirst has quit [Remote host closed the connection]
lapidary has quit [*.net *.split]
Bumptious has quit [*.net *.split]
urtokk has quit [*.net *.split]
xiphias has quit [*.net *.split]
Kruppe has quit [*.net *.split]
Guest46158 has quit [*.net *.split]
drago777 has quit [*.net *.split]
anekos_ has quit [*.net *.split]
bricker`LA has quit [*.net *.split]
bricker`LA has joined #ruby
<apeiros> eam: it can do a lot, but I don't think you could do all. spaces are less intent revealing.
wmp has joined #ruby
urtokk has joined #ruby
drago777 has joined #ruby
anekos_ has joined #ruby
wmp is now known as Guest23551
zB0hs has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
ffranz has quit [Ping timeout: 260 seconds]
shredding has quit [Quit: shredding]
yk has quit [Excess Flood]
Shidash has joined #ruby
<apeiros> that said, it would be nice if there were separate characters for indent and alignment
yk has joined #ruby
yk was kicked from #ruby by apeiros [no]
yk has quit [Excess Flood]
patrick99e99 has joined #ruby
opus has joined #ruby
AskSteve has joined #ruby
AskSteve has left #ruby [#ruby]
<eam> so speaking of ruby syntax, I've been poking around in parse.y a bunch and I found if I replace literals like '(' with their tokens tLPAREN I uncover a lot of shift/reduce and reduce/reduce conflicts
abuzze has joined #ruby
chth0n has joined #ruby
reset has joined #ruby
<eam> which makes a lot of sense considering the weird parsing behavior around ()
Tricon has joined #ruby
fold has quit [Ping timeout: 255 seconds]
bricker`1A has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shredding has joined #ruby
einarj has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
iceden has quit [Remote host closed the connection]
postmodern has joined #ruby
bwilson has joined #ruby
onewheelskyward has joined #ruby
bwilson has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
ValicekB has joined #ruby
startupality has joined #ruby
pu22l3r has quit [Remote host closed the connection]
suffice_ has quit [Quit: leaving]
suffice has joined #ruby
benlieb has joined #ruby
zB0hs has quit [Ping timeout: 255 seconds]
ffranz has joined #ruby
diegoviola has joined #ruby
skaflem has joined #ruby
momomomomo has quit [Quit: momomomomo]
Panicky has quit [Ping timeout: 240 seconds]
nowthatsamatt has joined #ruby
aspires has quit []
Zamerick has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kevkev has joined #ruby
testcore has quit [Remote host closed the connection]
bradleyprice has joined #ruby
testcore has joined #ruby
einarj has quit [Ping timeout: 256 seconds]
centipedefarmer has joined #ruby
pu22l3r has joined #ruby
aagdbl has joined #ruby
Atttwww has joined #ruby
calleerlandsson1 has quit [Quit: WeeChat 0.3.8]
banjara has quit [Quit: Leaving.]
kevkev has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
ptrrr has joined #ruby
iceden has joined #ruby
claymore has quit [Quit: Leaving]
ctp has joined #ruby
Kruppe has joined #ruby
miah_ is now known as miah
AlSquire has joined #ruby
Bira has joined #ruby
shredding has quit [Quit: shredding]
darkxploit has quit [Ping timeout: 250 seconds]
startupality has quit [Quit: startupality]
jdj_dk has joined #ruby
rippa has joined #ruby
hololeap has joined #ruby
Zebroid has quit [Remote host closed the connection]
Bounga has quit [Quit: Bounga]
ctp has quit [Client Quit]
asdasdasdasss has joined #ruby
j_mcnall_ has joined #ruby
echevemaster has joined #ruby
Bira has quit [Ping timeout: 272 seconds]
phinfonet has quit []
Gooder has quit [Ping timeout: 260 seconds]
jlovick has quit [Ping timeout: 245 seconds]
ra4king2 has quit [Ping timeout: 255 seconds]
jlovick has joined #ruby
blackmesa has joined #ruby
<shevy> you still won't let it go won't you eam
asdasdasdasss has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
ascarter_ has joined #ruby
rezzack has quit [Quit: Leaving.]
claw has joined #ruby
claw___ has quit [Ping timeout: 260 seconds]
banister has joined #ruby
davispuh has joined #ruby
ascarter has quit [Ping timeout: 255 seconds]
renderful has quit [Remote host closed the connection]
tier_ has joined #ruby
jottr has joined #ruby
yfeldblum has quit [Remote host closed the connection]
renderful has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<eam> is not the fixing of bugs what sets us apart from mere animals?
kotk has joined #ruby
dawkirst has joined #ruby
yfeldblum has joined #ruby
jlovick has quit [Quit: No Ping reply in 180 seconds.]
drusepth has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
<godd2> No, it's the ability to disagree on what a bug is in the first place that separates us.
Squeatus has joined #ruby
<shevy> when I look around in #ruby I kinda notice a few hairy beings
<shevy> and in #python there are may scaly friends
olivier_bK has joined #ruby
<shevy> it's pretty animalistic out there really
<shevy> *my
kotk_ has quit [Ping timeout: 245 seconds]
jlovick has joined #ruby
St_Marx has quit [Remote host closed the connection]
hololeap has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
end_guy has quit [Write error: Connection reset by peer]
atmosx has quit [Write error: Broken pipe]
Ankhers has quit [Write error: Connection reset by peer]
exgf has quit [Write error: Broken pipe]
blackmesa has quit [Write error: Connection reset by peer]
o0oo0o has quit [Write error: Connection reset by peer]
testcore has quit [Write error: Connection reset by peer]
britneywright has joined #ruby
tier has quit [Ping timeout: 255 seconds]
reisl has quit [Quit: Leaving]
Takle has joined #ruby
sjouke has joined #ruby
exgf has joined #ruby
<sjouke> if i put "cucumber" in my gem file, will i also get rspec or do i also need to put "rspec" in the file?
crdsn has joined #ruby
codeFiend has quit [Quit: codeFiend]
hololeap has joined #ruby
<shevy> ohhh I have a problem at work
renderful has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
<jhass> sjouke: http://rubygems.org/gems/cucumber do you see rspec in the dependencies?
<shevy> is there a way that ftp gets blocked?
<sjouke> thank you jhass
yfeldblum has quit [Ping timeout: 255 seconds]
o0oo0o has joined #ruby
<shevy> because my ruby ftp scripts do not work once I connect via ssh to campus wlan
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> but ruby itself works fine there
<godd2> what's the best way to create getters and setters for class variables?
blackmesa has joined #ruby
<eam> shevy: active or passive?
<godd2> other than "don't use class variables."
atmosx has joined #ruby
<jhass> godd2: don't use class variables
<eam> shevy: ftp is a very weird protocol, in active the server connects back to the client
<godd2> is there an attr_reader type thing for them? or do I just have to code the method manually?
jdj_dk has quit [Remote host closed the connection]
testcore has joined #ruby
Sauvin has quit [Read error: Connection reset by peer]
opus has quit []
AskSteve has joined #ruby
banjara has joined #ruby
AskSteve has left #ruby [#ruby]
Gonzih has joined #ruby
<shevy> eam good question... I don't remember off the top of my head
speakingcode has joined #ruby
<eam> see if you can enforce passive mode in your code
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> ok
momomomomo has joined #ruby
gdae has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> it seems as if by default I use passive mode
endash has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
alexju has quit [Remote host closed the connection]
Bira has joined #ruby
endash has joined #ruby
jlovick_ has joined #ruby
jlovick has quit [Ping timeout: 272 seconds]
alexju has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
Squeatus has quit [Quit: Leaving]
drusepth has joined #ruby
dawkirst has quit [Remote host closed the connection]
jdj_dk has joined #ruby
tier_ has quit [Remote host closed the connection]
larsam has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
opus has joined #ruby
<shevy> is there some simple way to upload a .gem to a remote site
<wallerdev> scp
Bira has quit [Remote host closed the connection]
<shevy> ah, I forgot about that option
<shevy> you guys are giving me ideas!
<wallerdev> lol
endash has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
alexju has quit [Ping timeout: 260 seconds]
gdae has left #ruby ["Leaving"]
dawkirst has joined #ruby
drusepth has quit [Remote host closed the connection]
michaeldeol has joined #ruby
seamon has quit [Quit: Zzzzzzz]
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
Gonzih has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Bira has quit [Ping timeout: 256 seconds]
dumdedum has quit [Quit: foo]
lxsameer has joined #ruby
iamjarvo has joined #ruby
beef-wellington has joined #ruby
SilkFox has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
tier has joined #ruby
end_guy has joined #ruby
mehlah has quit [Quit: Leaving...]
nemesit|znc has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
renderful has quit [Ping timeout: 240 seconds]
vsoftoiletpaper has quit []
baweaver has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
Bira has joined #ruby
Hobogrammer has joined #ruby
Morkel has joined #ruby
baweaver has joined #ruby
tjr9898 has joined #ruby
JohnFord has joined #ruby
djbkd has joined #ruby
dru has joined #ruby
sinkensabe has quit [Ping timeout: 256 seconds]
nemesit|znc has joined #ruby
<godd2> Why are they called class variables if they behave like global variables?
jonahR has joined #ruby
Takle has joined #ruby
<tobiasvl> what? they don't
babykosh has joined #ruby
sambao21 has joined #ruby
<tobiasvl> godd2: are you talking about @@vars or @vars now
fabrice31 has joined #ruby
<heftig> class Foo; @@var = 1; end; class Bar; @@var = 2; end
<heftig> those are two different variables
<godd2> afterwards if you write @@var = 7 and then Foo.class_variable_get(:@@var) you won't get 1
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
Fire-Dragon-DoL has joined #ruby
<godd2> >> class Foo; @@var = 1; end; @@var = 7; Foo.class_variable_get(:@@var) == 1
pu22l3r_ has joined #ruby
<Mon_Robot> godd2: Something went wrong when trying to evaluate your code.
codeurge has quit [Quit: Sleep.]
<godd2> that will result in false in irb
<heftig> (granted, I think accessing instance variables of self.class that way would have been more useful)
<heftig> godd2: because you're defining a class variable on the Object class that way
<heftig> don't do that
<heftig> godd2: as I said, don't do that
<heftig> ruby will even warn about it
<tobiasvl> also don't use @@vars
<tobiasvl> at all
Darryl has quit [Quit: Connection closed for inactivity]
<heftig> tobiasvl: making @@vars local to the current class might be something for ruby 3
<czaks> there are class @vars btw.
<czaks> which are local to the current class and don't propagate
<apeiros> @@cvars are one of the rare things I consider a mistake in ruby
fabrice31 has quit [Ping timeout: 272 seconds]
<godd2> it seems like @@vars should behave how class instance variables to
<apeiros> I'd very much love them if they'd exist between self and self.class
<godd2> do*
<czaks> $SAFE anyone? xD
ascarter has joined #ruby
pu22l3r has quit [Ping timeout: 260 seconds]
ascarter has quit [Max SendQ exceeded]
<apeiros> if not $SAFE then exit end
<shevy> I notice then there
<apeiros> shevy: enables single line without ;
ascarter has joined #ruby
djbkd has quit [Remote host closed the connection]
jlovick_ has quit [Ping timeout: 245 seconds]
macclearich__ has joined #ruby
einarj has joined #ruby
<czaks> is there any good Heap implementation for ruby?
TorpedoSkyline has joined #ruby
<czaks> in stdlib maybe?
<apeiros> not in stdlib, no
<heftig> ruby stdlib isn't quite bursting with generic compsci structures
<apeiros> czaks: ruby-toolbox.com
<czaks> apeiros: kthx
_justin has joined #ruby
aspires has quit []
codecop has quit [Ping timeout: 250 seconds]
aspires has joined #ruby
mm011 has joined #ruby
ctp has joined #ruby
mark_locklear has quit [Ping timeout: 255 seconds]
baweaver has quit [Read error: Connection reset by peer]
aspires has quit [Client Quit]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
kevkev has joined #ruby
<czaks> this one seems nice
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
baweaver has joined #ruby
asmodlol has quit [Quit: Leaving]
<lxsameer> hey guys, json class can't parse a string with utf8 data. is there any solution ?
charliesome has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
razrunelord has quit [Remote host closed the connection]
charliesome has joined #ruby
relix has joined #ruby
mikepack_ has joined #ruby
johnmolina has joined #ruby
mikepack has quit [Remote host closed the connection]
<wallerdev> lxsameer: yes it can
kevkev has quit [Ping timeout: 250 seconds]
mm011 has left #ruby [#ruby]
<wallerdev> this works fine for me JSON.parse("{\"☃\": 2}")
wald0 has quit [Ping timeout: 240 seconds]
pandaant has quit [Remote host closed the connection]
Ulrike_Rayne has joined #ruby
mark_locklear has joined #ruby
aspires has quit [Client Quit]
diegoviola has joined #ruby
kirun has joined #ruby
<apeiros> lxsameer: your statement as is is almost certainly incorrect
<apeiros> please paste the precise error you get
<lxsameer> apeiros: sure
top4o has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
havenwood has joined #ruby
andrewjanssen has joined #ruby
relix has quit [Client Quit]
codecop has joined #ruby
lurimendes has joined #ruby
QuintinAdam has joined #ruby
<lxsameer> apeiros: wallerdev error : http://dpaste.com/3K13DMD code: http://dpaste.com/21V7BAZ
asdasdasdasss has joined #ruby
<apeiros> lxsameer: this error tells you that you told ruby your input was binary
<apeiros> and since json expects utf-8, it tries to transcode it from binary to utf-8. and that fails.
<apeiros> if your data *already is* utf-8, tell ruby that.
<lxsameer> apeiros: hmmm how ?
seamon has joined #ruby
aspires has joined #ruby
<wallerdev> did you set the meta charset on your page, might cause that
<lxsameer> wallerdev: let me check that
wald0 has joined #ruby
<wallerdev> should have something like <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
aagdbl has quit [Ping timeout: 264 seconds]
<apeiros> lxsameer: depends on your source. if you read a file by setting the encoding argument.
<apeiros> if you have the string from a source you can't control, by using .force_encoding
asdasdasdasss has quit [Ping timeout: 250 seconds]
rayners has quit [Remote host closed the connection]
<wallerdev> back in a bit getting lunch :p
<lxsameer> wallerdev: it's utf8
wald0 has quit [Ping timeout: 250 seconds]
TorpedoSkyline has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
wald0 has joined #ruby
beneggett has joined #ruby
britneywright has joined #ruby
aspires has quit []
phutchins has quit [Ping timeout: 245 seconds]
drakciR has joined #ruby
Duckily has joined #ruby
<apeiros> lxsameer: btw., why do you use a string "1" and "0" for the status code? why not a number?
dawkirst has quit [Remote host closed the connection]
<lxsameer> apeiros: no specific reason
dik_dak has joined #ruby
<shevy> wallerdev famous last words - that's how the tiger got them
Kricir has quit [Ping timeout: 250 seconds]
Kricir has joined #ruby
jlovick has joined #ruby
ptrrr has quit [Quit: ptrrr]
baweaver has quit [Read error: Connection reset by peer]
endash has joined #ruby
andrewjanssen has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
Bira has quit [Remote host closed the connection]
baweaver has joined #ruby
babykosh has quit [Quit: babykosh]
workmad3 has joined #ruby
fgo has quit [Remote host closed the connection]
beef-wellington has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
hydrozen has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlovick has quit [Ping timeout: 260 seconds]
<apeiros> pontiki: ping
arya_ has quit [Ping timeout: 240 seconds]
jlovick has joined #ruby
Jam___ has quit [Quit: Connection closed for inactivity]
jam__ has quit [Quit: Connection closed for inactivity]
ThirdSign has quit [Ping timeout: 245 seconds]
<cajone> if I wanted to copy an array into another variable how wouldI go about this say arr=[1,2,3] and I want to make a copy of arr as brr?
<apeiros> brr = arr.dup
<cajone> ah dup ok got you thanks
<apeiros> there's also .clone, which additionally copies the singleton class and frozen state
ctp has joined #ruby
<apeiros> note: it only copes the array. it does *not* copy the values.
timonv_ has joined #ruby
<apeiros> >> a = ["a", "b", "c"]; b = a.dup; b[0].upcase!; b << "d"; [a, b]
<Mon_Robot> apeiros: => [["A", "b", "c"], ["A", "b", "c", "d"]] (https://eval.in/173256)
fgo has quit [Ping timeout: 240 seconds]
ssvo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tylerkern has joined #ruby
<apeiros> you can see, A is upcased for both. as that was a mutation on the element, not the array. but d is only in b, because pushing is an operation on the array.
Kricir has quit [Remote host closed the connection]
startupality has joined #ruby
Kricir has joined #ruby
decoponio has quit [Quit: Leaving...]
tjr9898 has quit [Remote host closed the connection]
djbkd has joined #ruby
tjr9898 has joined #ruby
Kricir has quit [Ping timeout: 245 seconds]
benlieb has quit [Quit: benlieb]
Bira has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier_ has joined #ruby
ddoherty57 has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
tjr9898 has quit [Ping timeout: 245 seconds]
rezzack has joined #ruby
<hypnosb> is something like bloc.io worth it?
vdmgolub has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
yacks has quit [Read error: Connection reset by peer]
wald0 has quit [Ping timeout: 240 seconds]
ra4king has joined #ruby
tjr9898 has joined #ruby
memph1s has quit [Ping timeout: 260 seconds]
tier has quit [Ping timeout: 245 seconds]
crudson has joined #ruby
crdsn has quit [Ping timeout: 255 seconds]
tier_ has quit [Remote host closed the connection]
vifino has joined #ruby
tier has joined #ruby
razrunelord has joined #ruby
asdasdasdasss has joined #ruby
<baweaver> fast track programs have a very negative connotation
axl_ has joined #ruby
razrunelord has quit [Ping timeout: 245 seconds]
Takle has quit [Read error: Connection reset by peer]
lw has quit [Quit: s]
<baweaver> personally I see those types of things like freemium games
Takle has joined #ruby
<baweaver> you're going fine and then you hit a wall and have to wait or try harder
<baweaver> by introducing an option to buy out of it, you build a bit of reliance on such services
beef-wellington has joined #ruby
<baweaver> depending on who you are, you may learn and get out of it or you may become borderline addicted to having someone else solve things for you
aspires has joined #ruby
AskSteve has joined #ruby
<baweaver> and considering the most valuable skill a programmer has is their ability to find solutions and debug, it's a bad idea to skip some of that pain
<baweaver> as it will define you later in life
AskSteve has left #ruby [#ruby]
patrick99e99 has quit [Ping timeout: 250 seconds]
codeurge has joined #ruby
rdark has joined #ruby
seamon has quit [Quit: Zzzzzzz]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
n_blownapart has joined #ruby
Zamerick has quit [Quit: Leaving]
beef-wellington has quit [Ping timeout: 260 seconds]
davispuh has quit [Quit: rebooting]
kevkev has joined #ruby
eoinkelly has left #ruby [#ruby]
MOOTIE_ has joined #ruby
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
yfeldblum has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
binaryhat has quit [Quit: Leaving]
beef-wellington has joined #ruby
treehug88 has quit [Ping timeout: 264 seconds]
centipedefarmer has quit [Remote host closed the connection]
JohnFord has joined #ruby
peta_ has joined #ruby
kevkev has quit [Ping timeout: 260 seconds]
binaryhat has joined #ruby
jdj_dk has quit [Remote host closed the connection]
MOOTIE has quit [Ping timeout: 245 seconds]
Guest23551 is now known as wmp
wmp has quit [Changing host]
wmp has joined #ruby
startupality has quit [Quit: startupality]
<arup_r1> why not getting var as 10
<arup_r1> ?
ramfjord has quit [Ping timeout: 250 seconds]
elGr33k0 has joined #ruby
peta_ has quit [Client Quit]
jdj_dk has joined #ruby
renderful has joined #ruby
TorpedoSkyline has joined #ruby
Drakevr_ is now known as Drakevr
Drakevr has quit [Changing host]
Drakevr has joined #ruby
<mary5030> hello wise people can someone help me with this edge case, my test is failing today because today it a date edge case
<mary5030> Date.today.prev_month vs Date.today.next_day.prev_month
tjr9898 has quit [Ping timeout: 260 seconds]
<apeiros> arup_r1: because you told ruby that in your loop your `var` variable in the loop is a different one than the outer `var`
Zenigor has quit [Ping timeout: 260 seconds]
<mary5030> so this should give me 5 but it is giving me 3
<mary5030> redis.set("metrics:success:#{date}", 3)
<mary5030> redis.set("metrics:success:#{next_date}", 2)
godd2 has quit [Remote host closed the connection]
<mary5030> because of the date edge case
<arup_r1> `;var` doesn't shadow
n_blownapart has quit []
<arup_r1> 2.times { |var| } here var is block local var but
chrishough has quit [Quit: chrishough]
isthisreallife has joined #ruby
<arup_r1> I wrote `2.times { |;var| }`, it means I am taking the outside one
isthisreallife has left #ruby [#ruby]
nszceta has quit []
<AlexRussia> i am burning, i need know where sources to translate this page https://www.ruby-lang.org/ru/documentation/quickstart/
skaflem has quit [Quit: Leaving]
drakciR has quit [Read error: Connection reset by peer]
claymore has joined #ruby
Tricon has quit [Quit: Leaving...]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> arup_r1: um, yes, that's the entire point of ;var
maletor has joined #ruby
<apeiros> it is to shadow an outer variable which is not an argument to the block
CodeLicker has joined #ruby
drakciR has joined #ruby
CodeLicker has quit [Client Quit]
exgf has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
atmosx has quit [Write error: Broken pipe]
testcore has quit [Write error: Connection reset by peer]
yalue has quit [Quit: Leaving]
britneywright has joined #ruby
momomomomo has quit [Quit: momomomomo]
gattuso has joined #ruby
exgf has joined #ruby
<arup_r1> apeiros: Getting confused.. :(
pskosinski has joined #ruby
DrCode has joined #ruby
<arup_r1> 2.times { |x ; y| # }
<arup_r1> what is the diff between x and y ?
<apeiros> >> var = 2; 2.times { |_| var = 10 }; var
<Mon_Robot> apeiros: Something went wrong when trying to evaluate your code.
<apeiros> huh?
sigurding has joined #ruby
<arup_r1> Mon_Robot sleeping
<apeiros> >> var = 2; 2.times { |_| var = 10 }; var
<Mon_Robot> apeiros: => 10 (https://eval.in/173266)
<apeiros> better
<arup_r1> Yes.. I know this
<apeiros> you tell the code nothing about var within the block, so it closes over the outer var and you modify it
<apeiros> >> var = 2; 2.times { |_; var| var = 10 }; var
<Mon_Robot> apeiros: Something went wrong when trying to evaluate your code.
<arup_r1> Mon_Robot don't this feature
<apeiros> you tell the code that the block's var is not to be taken from the surrounding scope, that it is its own. that's shadowing.
<arup_r1> *know )
<apeiros> teh fuck is wrong with Mon_Robot?
<apeiros> >> var = 2; 2.times { |_; var| var = 10 }; var
<Mon_Robot> apeiros: Something went wrong when trying to evaluate your code.
<arup_r1> LOL
codeFiend has joined #ruby
Wolland has joined #ruby
codeFiend has quit [Read error: Connection reset by peer]
<apeiros> ok, result is # => 2
<wallerdev> comma instead of semicolon?
<robscormack> >> nick = 'apeiros' ; puts "#{nick}: Something went wrong when trying to evaluate your code."
<wallerdev> in block params?
Morkel has quit [Quit: Morkel]
<Mon_Robot> robscormack: Something went wrong when trying to evaluate your code.
brandon__ has joined #ruby
<apeiros> wallerdev: this syntax is to "declare" block local variables
<apeiros> they're not arguments
<wallerdev> oh ive never used that
<wallerdev> lol
<apeiros> yeah, rarely needed
Wolland has quit [Read error: Connection reset by peer]
<apeiros> it's a bad idea to shadow variables anyway
<arup_r1> apeiros: if i use only *var* it also hide the outside local var
<arup_r1> something I am missing here
fgo has joined #ruby
Panicky has joined #ruby
<apeiros> arup_r1: yes. because arguments to the block always shadow.
mjmac has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
<apeiros> there is no way to have an argument *not* shadow the outer variables
atmosx has joined #ruby
<apeiros> well, except using 1.8
<arup_r1> Then what is the point of |;x| ?
sinkensabe has joined #ruby
Bumptious has joined #ruby
<apeiros> arup_r1: I think I already said that. but I'll repeat:
<apeiros> arup_r1: tell ruby that a variable - which is NOT an argument to the block already - is local to the block
tjr9898 has joined #ruby
brandon__ has quit [Client Quit]
brandon__ has joined #ruby
codeFiend has joined #ruby
momomomomo has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
<arup_r1> humm
rdark has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Read error: Connection reset by peer]
<arup_r1> making sense..
<apeiros> arup_r1: it is rarely used because shadowing variables is a bad idea.
<arup_r1> suddenly I got confused
<apeiros> it's confusing for the reader. you have to keep track which variable applies to what scope.
drakciR has quit [Read error: Connection reset by peer]
<arup_r1> yeah
sinkensabe has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
elaptics is now known as elaptics`away
tjr9898__ has joined #ruby
jackneill has quit [Read error: Connection reset by peer]
dapz has joined #ruby
AskSteve has joined #ruby
havenwood has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AskSteve has left #ruby [#ruby]
<arup_r1> I started reading this http://blog.rubybestpractices.com/posts/gregory/anonymous_class_hacks.html since last 2 weeks back. Wanted to know, is there are any such blogs where good topics I can see and learn, which is very current .the above mentioned one seems are not being maintained anymore.. although it is good
jobewan has quit [Quit: Leaving]
sinkensabe has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
<diegoviola> how do i handle load for a rails app that will get 1k req/s?
HashNuke has quit [Quit: Connection closed for inactivity]
arup_r1 has quit [Quit: Leaving.]
<apeiros> diegoviola: ask in #rubyonrails ?
<timgauthier> is their a way to take a ruby script and make it say, run from a button in safari? like a safari type extension?
drakciR has joined #ruby
<diegoviola> apeiros: ok sorry
<apeiros> no need to apologize. I just think you get better answers there.
ssvo has joined #ruby
<diegoviola> ok, i see
<apeiros> timgauthier: should be possible
<apeiros> timgauthier: would be safari specific, though
<apeiros> timgauthier: or use something like opal, which compiles ruby to js
<timgauthier> that'd be fine
<timgauthier> i'd be okay with it being safari specific. I don't really use other browsers much
<timgauthier> i'd just be interested in making http://brettterpstra.com/2011/04/02/mirror-your-pinboard-bookmarks-with-openmeta-tags/ into a local only service(without the pinboard.in service requirement).
nanoyak has quit [Quit: Computer has gone to sleep.]
sinkensabe has quit [Remote host closed the connection]
sandelius has joined #ruby
fabrice31 has joined #ruby
alexju has joined #ruby
niftylettuce_ has joined #ruby
startupality has joined #ruby
crudson has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
nanoyak has joined #ruby
benlieb has joined #ruby
djbkd has joined #ruby
agarie has quit [Read error: Connection reset by peer]
nanoyak has quit [Client Quit]
agarie has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
nobitanobi has joined #ruby
jdj_dk has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
<nobitanobi> g'afternoon guys
jdj_dk has joined #ruby
brandon__ has quit [Quit: Changing server]
bwilson has joined #ruby
vsoftoiletpaper has joined #ruby
jdj_dk has quit [Remote host closed the connection]
startupality has quit [Ping timeout: 250 seconds]
Zenigor has joined #ruby
chrisja has joined #ruby
pandaant has joined #ruby
Zenigor has quit [Read error: Connection reset by peer]
cleopatra has joined #ruby
<timgauthier> yo
kaspergrubbe_ has joined #ruby
endash has quit [Quit: endash]
fgo has joined #ruby
awc737 has joined #ruby
awc737 has quit [Client Quit]
awc737 has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has joined #ruby
charliesome has joined #ruby
<shevy> hey timgauthier
<shevy> are you finalled married
jdj_dk has joined #ruby
<timgauthier> yes/no
<timgauthier> legally yes/havn't had the party yet
_justin has quit [Quit: _justin]
<apeiros> timgauthier: don't worry, don't hurry. we've had ours 3y after the legal marriage :D
<timgauthier> lol, our party is on the 9th
fgo has quit [Ping timeout: 250 seconds]
duggiefresh has quit []
relix has joined #ruby
noop has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
<timgauthier> anyone wanna donate me a 1 ios dev account :|
sepp2k has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
<timgauthier> thanks though apeiros :D
<apeiros> isn't it free now and only costs if you want to publish?
<timgauthier> no
<timgauthier> still 100 a year, which isn't bad, and i hope to get that much soonish, but it'd be cool not to have ot pay
tylerkern has joined #ruby
<timgauthier> to be honest, i should just start trying to build things in swift for mac before i bother getting into iOS
<apeiros> hu? when I got mine, it was 100 once, not a year
<timgauthier> naw man
<timgauthier> really, someone's name is naw?
<apeiros> I'm quite sure about that
<apeiros> timgauthier: I think you're mistaken. development seems to be free.
<apeiros> at least I see nothing to indicate you'd need a paid developer account to locally develop for iOS
<timgauthier> sort of, to get beta and some of the SDK you need a sub
elGr33k0 has quit [Quit: Leaving...]
<apeiros> only prerelease stuff
<apeiros> which is not that important if you're new
tylerkern has quit [Read error: Connection reset by peer]
jam__ has joined #ruby
<timgauthier> true
<timgauthier> well, except that i want to learn swift not obj c
<the8thbit|work> oh my god
<the8thbit|work> Im about to punch someone in the face
<timgauthier> but i can do swift mac with the appleseed program i'm in
<timgauthier> the8thbit|work that's likely a bad idea, but i encourage those
<apeiros> the8thbit|work: get a punching ball?
tylerkern has joined #ruby
<timgauthier> who punching in the balls?
<timgauthier> har har, DAD JOKE /suicide
<the8thbit|work> any reason why git reset HEAD --hard && bundle clean wouldn't put me back at my last commit with no gems?
tylerkern has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
uxp has quit [Remote host closed the connection]
dru is now known as drusepth
michaeldeol has joined #ruby
<the8thbit|work> Im not sure if I hate ruby or just openproject
drakciR has quit [Ping timeout: 245 seconds]
<the8thbit|work> its probably just openproject
opus has quit []
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
tier has quit []
paulfm has quit []
Xiti` has quit [Quit: Leaving]
blackmesa has joined #ruby
Xiti has joined #ruby
<shevy> the8thbit|work see the problem is you use special tools
banister has joined #ruby
<shevy> for instance, rvm etc... and bundler
<the8thbit|work> shevy: okay, if the advice is "dont use build tools" then it's ruby I hate :)
sinkensabe has joined #ruby
<shevy> how does that make sense
<shevy> I mean, rvm could suck, bundler could suck. don't use software that sucks?
<apeiros> the8thbit|work: "no gems" where?
<shevy> possibly openproject sucks as well
JohnBat26 has joined #ruby
<apeiros> bundler does not modify the gems installed on your system
Deele has quit [Ping timeout: 245 seconds]
tylerkern has joined #ruby
<shevy> now here is a project that rocks - prawn. https://github.com/prawnpdf/prawn if you ever need to generate .pdf files, here is the way
alvaro_o has joined #ruby
uxp has joined #ruby
<the8thbit|work> apeiros: bundle install doesn't install gems?
kevkev has joined #ruby
seamon has joined #ruby
codecop has quit [Remote host closed the connection]
bridge has joined #ruby
Sirupsen has joined #ruby
<apeiros> the8thbit|work: if they aren't on your system already, yes
<the8thbit|work> shevy: my point was that if a language doesn't have build tools that don't suck then its a pain to work with
agrinb has quit [Remote host closed the connection]
<shevy> oh but ruby has awesome tools
<apeiros> from `bundle help clean`: "Cleans up unused gems in your bundler directory"
<shevy> good old setup.rb for instance
<shevy> gem
<apeiros> bundler is a tool to isolate the gems used in one project
pu22l3r_ has quit [Remote host closed the connection]
centipedefarmer has joined #ruby
agrinb has joined #ruby
<apeiros> it is not the gem "package manager". that'd be `gem`
<shevy> bundler came out of the ruby on rails folks mostly
ramfjord has joined #ruby
<shevy> so that they can manage their 100 gems per project changing every second day
<the8thbit|work> apeiros: I've specifically used bundler to pull down gems from github, and I'm pretty sure another location as well
<shevy> openproject is https://www.openproject.org/ ?
<the8thbit|work> yes
<apeiros> the8thbit|work: yes. as said, installing gems it will indeed. if necessary. it won't uninstall from the system.
toastynerd has quit [Remote host closed the connection]
<apeiros> not sure, http://stackoverflow.com/questions/4361645/relationships-between-rubygems-bundler-and-rvm might help to understand what does what
centiped_ has joined #ruby
<apeiros> there might be better articles
<the8thbit|work> ah, I see, I misunderstood what you were saying, sorry, apeiros
<shevy> "OpenProject is a web based project management system built on Ruby on Rails"
kevkev has quit [Ping timeout: 240 seconds]
<apeiros> the8thbit|work: I assume you got into ruby through having to use this openproject app?
vsoftoiletpaper has quit []
<the8thbit|work> apeiros: yes, my boss had my learn ruby specifically to develop a plugin for this software
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centipedefarmer has quit [Remote host closed the connection]
tommylom1ykins is now known as tommylommykins
<apeiros> the8thbit|work: I'd spend a little bit of time to learn what the tools are about. specifically rubygems (`gem`) and bundler (`bundle`)
<apeiros> if you use a ruby version manager like rvm or rbenv, then that too
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> it won't take too long but it'll pay off IMO
yekta has quit [Quit: yekta]
ItSANgo has quit [Quit: Leaving...]
agrinb has quit [Read error: No route to host]
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agrinb has joined #ruby
<the8thbit|work> I think I get the basic gist of it... gem is a package manager for gems, RVM is for switching which version of ruby runs by default, and bundler is for pulling a list of dependencies specified in a gemfile?
chipotle has quit [Read error: Connection reset by peer]
linojon has quit [Quit: linojon]
testcore has joined #ruby
codeurge has quit [Quit: Sleep.]
<shevy> \o/
<apeiros> the8thbit|work: that's quite apt, yes
chipotle has joined #ruby
jdj_dk has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
<the8thbit|work> apeiros: no, apt is a debian thing
<apeiros> bundler will also isolate your application to only use the gems as specified in the Gemfile.lock
<the8thbit|work> :)
<apeiros> i.e. it will prevent conflicting version to be loaded
jerius has quit []
razrunelord has joined #ruby
<the8thbit|work> ahhh that's what Gemfile.lock does
<apeiros> apt is also an english word ;-)
<the8thbit|work> and that's probably the issue
<shevy> the8thbit|work technically, the dependencies in a gemfile could also be installed via a gem install chain, if the .gemspec would have been written in that way and the traversing whrough parent dependencies works as well
<shevy> *through
<shevy> that was a weird typo
<the8thbit|work> because I added .lock to .gitignore because I thought it was for restricting access
vsoftoiletpaper has joined #ruby
<the8thbit|work> apeiros: yeah, I was joking about apt :P
qwyeth_ has quit [Quit: Leaving]
<shevy> apt-get install ruby # and wonder why mkmf is not included
diegoviola has quit [Quit: WeeChat 0.4.3]
<robscormack> "mkmf" always makes me smile.
momomomomo has quit [Quit: momomomomo]
hydrozen has quit [Quit: Computer has gone to sleep.]
<the8thbit|work> apeiros: would it be safe to just rm Gemfile.lock && bundler clean
<the8thbit|work> ?
nanoyak has quit [Quit: Computer has gone to sleep.]
ItSANgo has joined #ruby
momomomomo has joined #ruby
hydrozen has joined #ruby
nanoyak has joined #ruby
jottr has joined #ruby
ldnunes has quit [Quit: Leaving]
momomomomo has quit [Client Quit]
<apeiros> to be honest, I've never used bundle clean
chrishough has joined #ruby
Kricir has quit [Remote host closed the connection]
<apeiros> I'd rather checkout Gemfile.lock instead of rm'ing it
<the8thbit|work> apeiros: just deleting my lockfile seems like it may have helped
<the8thbit|work> well, I made a backup dotfile
<apeiros> if you bundle install with no lock file, it'll recalculate the dependencies and use the newest versions which fit the Gemfile
Kricir has joined #ruby
<apeiros> and that might not be compatible
<the8thbit|work> ah, I see
GRIIDC-msw has joined #ruby
Bira has quit [Remote host closed the connection]
mehlah has joined #ruby
claw has quit [Quit: Konversation terminated!]
<GRIIDC-msw> Does ruby use libxml?
<apeiros> i.e. if the Gemfile somewhere has "too open" spec, like: gem "rails", ">= 3.2"
<apeiros> and by now rails 4.1 is out which vastly differs, but fits this Gemfile spec
<the8thbit|work> right
failshell has quit []
ItSANgo has quit [Client Quit]
<apeiros> GRIIDC-msw: nokogiri uses libxml2 afaik
momomomomo has joined #ruby
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
<GRIIDC-msw> Are you by chance familiar with building libxml catalogs?
<GRIIDC-msw> I'm stuck with online validation being too slow.
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
ItSANgo has joined #ruby
dingus_khan has joined #ruby
Kricir has quit [Ping timeout: 250 seconds]
bmurt has quit []
tvw has joined #ruby
coldkey21 has joined #ruby
wald0 has joined #ruby
patrick99e99 has joined #ruby
<apeiros> GRIIDC-msw: I don't know what a libxml catalog is
linojon has joined #ruby
kirun has quit [Quit: Client exiting]
jottr has quit [Ping timeout: 255 seconds]
odigity2 has joined #ruby
<odigity2> anyone know why I get a different value every time I call BCrypt::Password.create('token'), even though I'm using the same token each time?
seamon has quit [Quit: Zzzzzzz]
alexherbo2 has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Quit: Leaving.]
<GRIIDC-msw> no prob.
<apeiros> odigity2: because that's the point of it
<GRIIDC-msw> Neither does NOAA.
<GRIIDC-msw> ;-)
Zebroid has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
<apeiros> odigity2: google salted hash
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> hmm
<shevy> I can define << on my custom class, right?
<wallerdev> yup
mikesplain has quit [Ping timeout: 245 seconds]
dukedave has joined #ruby
<dukedave> Is there a way to define an array with one element per line?
JBreit has joined #ruby
<apeiros> dukedave: [a,\nb,\nc,…
dc_ has quit [Remote host closed the connection]
<apeiros> dukedave: ruby doesn't care whether you use space or newlines there
dc_ has joined #ruby
agarie has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
JBreit has left #ruby [#ruby]
CodeLicker has joined #ruby
nanoyak has joined #ruby
MartinCleaver has joined #ruby
wald0 has quit [Ping timeout: 250 seconds]
Pumukel has joined #ruby
dc_ has quit [Ping timeout: 264 seconds]
nateberkopec has quit [Quit: Leaving...]
Ilyas has quit [Read error: Connection reset by peer]
Jhonny has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jhonny has left #ruby [#ruby]
<dukedave> apeiros: well look at that! Thanks :)
nateberkopec has joined #ruby
GRIIDC-msw has quit [Quit: Leaving]
nowthatsamatt has quit [Quit: nowthatsamatt]
lxsameer has quit [Quit: Leaving]
jottr has joined #ruby
tylerkern has joined #ruby
GhettoJava has quit [Quit: Leaving]
mbwe has quit [Quit: WeeChat 0.4.2]
mbwe has joined #ruby
<zenspider> dukedave: nice thing about ruby is it is so lightweight you can just test that stuff out. it's usually quicker than asking in here
<zenspider> no compile, no link... just save and go
fgo has joined #ruby
<dukedave> zenspider: that is true! I just thought I'd have to use %W or something, I didn't even think to try just new lines
RxDx has joined #ruby
<apeiros> or just run `ruby` plain. hit ctrl-D to end your input and run the code
<dukedave> Also, I'm guessing this is yours? http://www.zenspider.com/Languages/Ruby/QuickRef.html#arrays :)
<dukedave> apeiros: ah nice, I didn't realize it would just read stdin
AntelopeSalad has quit [Read error: Connection reset by peer]
<apeiros> dukedave: for one liners, also ruby -e code
<apeiros> but that obviously doesn't apply to your current problem :)
<zenspider> apeiros: sure it does. you can do -e w/ multiple lines
<zenspider> dukedave: yup. that's mine
<apeiros> zenspider: yeah, but it's more annoying than plain ruby. no?
<apeiros> but well, rarely have multiline code I want to try without using a file
AntelopeSalad has joined #ruby
sailias has quit [Quit: Leaving.]
tylerkern has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> apeiros: I find it less annoying than the ^d approach, but they're really about the same
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 245 seconds]
Zebroid_ has joined #ruby
Zebroid has quit [Read error: Network is unreachable]
MartinCleaver has quit [Quit: MartinCleaver]
lw has joined #ruby
claymore has quit [Quit: night]
workmad3 has quit [Ping timeout: 272 seconds]
pandaant has quit [Remote host closed the connection]
aspires has quit []
ziyadb has joined #ruby
cmarques has quit [Remote host closed the connection]
jhass is now known as jhass|off
cmarques has joined #ruby
amargherio has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
momomomomo_ has joined #ruby
Zebroid has joined #ruby
Zebroid_ has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
TorpedoSkyline has joined #ruby
Arkaniad has quit [Ping timeout: 256 seconds]
j_mcnall_ has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
rubytor has joined #ruby
TorpedoSkyline has quit [Client Quit]
centiped_ has quit [Remote host closed the connection]
cmarques has quit [Ping timeout: 245 seconds]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
centipedefarmer has joined #ruby
timonv_ has quit [Remote host closed the connection]
wald0 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
rubytor has quit [Client Quit]
jonr22 has joined #ruby
mary5030 has quit [Remote host closed the connection]
rubytor has joined #ruby
jdj_dk has quit [Ping timeout: 272 seconds]
wald0 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
michaeldeol has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
gheegh has quit [Quit: Zzzzzz]
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
einarj has quit [Remote host closed the connection]
abuzze_ has joined #ruby
kevkev has joined #ruby
agrinb has quit [Remote host closed the connection]
centipedefarmer has quit [Ping timeout: 250 seconds]
startupality has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
alexju has quit []
jonr22 has quit [Client Quit]
startupality has joined #ruby
AlexBlom has joined #ruby
renderfu_ has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 250 seconds]
kevkev has quit [Ping timeout: 240 seconds]
abuzze_ has quit [Ping timeout: 250 seconds]
roolo has quit [Quit: Leaving...]
renderful has quit [Ping timeout: 245 seconds]
NukePuppy has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
beef-wellington has quit [Ping timeout: 260 seconds]
wald0 has joined #ruby
vsoftoiletpaper has quit []
MatthewsFace has joined #ruby
rubytor has quit [Quit: No Ping reply in 180 seconds.]
rubytor has joined #ruby
asdasdasdasss has quit [Quit: Computer has gone to sleep.]
bradleyprice has quit [Remote host closed the connection]
asdasdasdasss has joined #ruby
aspires has quit [Client Quit]
wald0 has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
wald0 has joined #ruby
obscured has quit [Quit: leaving]
Kricir has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.90.1 [Firefox 31.0/20140716183446]]
wald0 has quit [Read error: Connection reset by peer]
asdasdasdasss has quit [Ping timeout: 250 seconds]
andrewlio has quit [Quit: Leaving.]
tylerkern has joined #ruby
alexju has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikesplain has quit [Ping timeout: 240 seconds]
dblessing has quit [Quit: dblessing]
Arkaniad has joined #ruby
fabrice31 has joined #ruby
tylerkern has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
tylerkern has joined #ruby
Zebroid has quit [Remote host closed the connection]
rubytor has quit [Ping timeout: 272 seconds]
Kricir has quit [Ping timeout: 245 seconds]
razum2um has quit [Quit: Leaving.]
snath has quit [Ping timeout: 245 seconds]
jdj_dk has joined #ruby
opus has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
rubytor has joined #ruby
startupality has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
wald0 has joined #ruby
mania has joined #ruby
Sgeo has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
ssvo has quit [Ping timeout: 264 seconds]
ssvo has joined #ruby
peret has joined #ruby
RxDx has quit [Ping timeout: 246 seconds]
snath has joined #ruby
LadyRainicorn has joined #ruby
arya_ has joined #ruby
mania has quit []
johnmolina has quit []
jdj_dk has quit [Ping timeout: 245 seconds]
rubytor has quit [Ping timeout: 250 seconds]
lidaaa has joined #ruby
workmad3 has joined #ruby
fold has joined #ruby
jespada has quit [Quit: Leaving]
teddyp1cker has joined #ruby
aspires has joined #ruby
aspires has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oso96_2000 is now known as oso|away
lolmaus has joined #ruby
<lolmaus> Hey apeiros, you here?
jottr has joined #ruby
<apeiros> lolmaus: almost asleep
<lolmaus> apeiros: remember how i bothered you asking for a JS `setTimeout` equivalent in Ruby?
<apeiros> yes
workmad3 has quit [Ping timeout: 255 seconds]
teddyp1cker has quit [Ping timeout: 256 seconds]
<Beoran> lolmaus, it depends on what you want to do, but the equivanet on the command line would be to start a separate thread and then make that thread sleep for the timeout period, then execute whatever you want to execute then.
sjouke has quit [Quit: thanks again, i'll bbl]
<zenspider> or just use Timeout.timeout?
fgo has joined #ruby
Squeatus has joined #ruby
* apeiros ponders going down the rabbit hole again…
<Beoran> zenspider, ah yes, of course
<apeiros> not so short before sleeping.
<Beoran> I sometimes forget how convenient Ruby can be... :)
<lolmaus> apeiros: i tried your solution and discovered that it runs blocks sequentially. E. g. if you run five blocks with `sleep 5` through it, it will take 25 seconds to complete. But i studied threads and mutexes and took you solution as an example and came up with my own solution: http://stackoverflow.com/a/25047917/901944
<apeiros> Beoran, zenspider: consider javascripts lack of concurrency (i.e. two setTimeout callbacks will never execute at the same time, even when set to the same time) and some odd requirements…
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898__ has quit [Remote host closed the connection]
wald0 has quit [Read error: Connection reset by peer]
<apeiros> lolmaus: your own solution?
<lolmaus> Beoran: the question was how to run a block asynchronously in Ruby (so that it does not block main code execution), but without building a lot of scaffolding (collecting threads into an array, setting up a mutex, then ensuring all threads have finished).
<lolmaus> apeiros: yes.
<apeiros> ah, author lolmaus. I thought you pointed to the SO answer of somebody else
<lolmaus> apeiros: i've answered my own SO question
<lolmaus> zenspider: Ruby's Timeout has nothing to do with that.
<apeiros> lolmaus: well, TL;DR (right now)
<Beoran> lolmaus, yeah, you probably need to write your own 20 line module or so
pzula has joined #ruby
asdasdasdasss has joined #ruby
ffranz has quit [Quit: Leaving]
<lolmaus> zenspider: It's just Ruby using the word "timeout" properly while JS is using "timeout" when actually meaning "delay".
fgo has quit [Ping timeout: 260 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> Beoran: https://gist.github.com/apeiros/500d3188a81f133f1df9 was my emulation of JS' timeout behavior
<apeiros> though that's still the version where I omitted to actually sleep until the timeout :)
<Beoran> yp lolmous' coe also looks useful
<Beoran> anyway enough gotta zzz
<zenspider> TL;DR indeed. that code is crazy
wald0 has joined #ruby
<zenspider> lolmaus: so, you want something that'll simply sleep for N seconds before doing stuff?
Kricir has joined #ruby
<zenspider> def wait_for n, &block; Thread.new { sleep n; block.call }; end
<zenspider> it's the caller's responsibiltiy to group them and call join across all of them
<apeiros> zenspider: I wish you good luck figuring out what he actually wanted :) I'm off for the night. gn8
<zenspider> apeiros: go to bed. I got this
<zenspider> threads << wait_for(5) do ... end
<zenspider> no, I won't read that
<zenspider> if you can't summarize here, why the fuck should I have to dig into paragraphs of crazy complexity?
dh64 has quit [Quit: Konversation terminated!]
MartinCleaver has joined #ruby
<zenspider> there's no need for a mutex or any other mechanations based on what you're asking for
tylerkern has quit [Read error: Connection reset by peer]
tylerkern has joined #ruby
TorpedoSkyline has joined #ruby
<lolmaus> zenspider: i've already got a solution. I just wanted to tell apeiros that i did. You started suggesting irrelevant solutions. I told you that the problem to solve is described over that link. You started swearing.
Takle has quit []
<zenspider> what you did is crazy
<zenspider> I swear. get the fuck over it.
<zenspider> how does my code above not do the same thing as the js code?
Takle has joined #ruby
<zenspider> and in only 7 lines of ruby no less
<lolmaus> zenspider: 1) there is a need for a mutex when threads work with shared data or output. Not using a mutex in my second example (over the link) results in messed up output.
<lolmaus> zenspider: 2) your `do ... end` code would not be executed because you don't force Ruby to wait for threads to complete before exiting.
<zenspider> it also ends up in synchronous execution. you might as well not bother
codeFiend has quit [Quit: codeFiend]
<zenspider> lolmaus: you missed the part where I said it was the caller's responsibility to call join?
<wallerdev> lol
exgf has quit [Remote host closed the connection]
<lolmaus> zenspider: no, it does not end up in synchonous execution. Only the output part is synchronous. The time-consuming part is parallel.
exgf has joined #ruby
<zenspider> putting a synchronize around everything but the sleep? there's not much point
pzula has quit [Ping timeout: 245 seconds]
<lolmaus> zenspider: the sleep imitates a time-consuming operation: a calculation, a network request, a database write, etc.
Zenigor has joined #ruby
_ReBoRN- has quit [Ping timeout: 260 seconds]
<zenspider> lolmaus: soooo... this has nothing to do with emulating javascript's setTimeout?
lurimendes has quit [Remote host closed the connection]
<lolmaus> zenspider: not sure why you say that.
<zenspider> man... you can't describe your requirements... you overengineer your "solution", you can't accept critique w/o getting butthurt....
<zenspider> have fun with that.
kachi8 has joined #ruby
<zenspider> I'm done
michaeldeol has joined #ruby
<zenspider> lolmaus: because... setTimeout executes a block of code after N milliseconds
benlieb has quit [Quit: benlieb]
<zenspider> that's what your sleep looks like, now you're saying it is supposedly the "work" being done.
<lolmaus> zenspider: nope, that's only half of what it does.
<zenspider> wtf.
<lolmaus> zenspider: the other part is that `setTimeout` runs the passed callback asynchronously, and using setTimeout with zero milliseconds is a very common technique in JS.
<zenspider> enjoy your sty of needless complexity. wallow in it. I'll be over here with the clean code.
matrixdevuk has quit [Quit: Lingo - http://www.lingoirc.com]
Wolland has quit [Remote host closed the connection]
<zenspider> yes, my code does both of the things that setTimeout does... and it does it as a 1-liner that anyone can understand
Kricir has quit [Ping timeout: 240 seconds]
macclearich__ has quit [Read error: Network is unreachable]
kevkev has joined #ruby
Wolland has joined #ruby
<zenspider> I don't think you picked it up, but apeiros couldn't figure out what you wanted either. two smart guys getting confused by you... guess what the common thread is...
<zenspider> (no pun... gah)
macclearich__ has joined #ruby
Vivekananda_y510 has quit [Read error: Connection reset by peer]
britneywright has joined #ruby
ReBoRN- has joined #ruby
Vivekananda_y510 has joined #ruby
<zenspider> anyone here have good computer engineering / electronics fundamentals? I'm working on a talk on building a computer from scratch and could use some sanity checks against it.
<zenspider> tenderlove was CE and he's looked at it, but he's also very ADD. I'd like someone to beat this up.
dingus_khan has quit [Remote host closed the connection]
<lolmaus> zenspider: if you provided a complete example, it would contain: 1. collecting threads into an array; 2. creating a mutex; 3. waiting for threads to complete. The question was how to reduce all that to be as simple as `setTimeout`.
dingus_khan has joined #ruby
asdasdasdasss has quit [Ping timeout: 250 seconds]
<zenspider> lolmaus: you've flipped the bozo bit. we're _done_.
<zenspider> YOU are the common thread (again, no pun)
mjmac has joined #ruby
linojon has quit [Quit: linojon]
dingus_khan has quit [Read error: Connection reset by peer]
tvw has quit []
kevind has quit [Quit: kevind]
<zenspider> 5.times.map { wait_for(5) do ... end }.map &:join
<zenspider> holy crap that's so hard
kevkev has quit [Ping timeout: 245 seconds]
Wolland has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
RichardLitt has joined #ruby
RichardLitt has quit [Client Quit]
djbkd has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
RichardLitt has joined #ruby
<lolmaus> zenspider: can't find docs for `wait_for`, only a dead gem.
<lolmaus> zenspider: also, you're still missing `mutex = Mutex.new`.
matrixdevuk has joined #ruby
<zenspider> jesus christ. I gave you the code above. fuck off
<RichardLitt> I need some help with a conditional syntax. I’ve got `if name = row[loop_row] and name.present?` - but the name.present? doesn’t work because it throws an error at row[loop_row] if that is false. How can I validate that?
djbkd has quit [Remote host closed the connection]
opus has quit []
<lolmaus> RichardLitt: use double equals for comparison
djbkd has joined #ruby
n_blownapart has joined #ruby
<RichardLitt> lolmaus: I am setting name there. Wrong move?
<zenspider> RichardLitt: yeah. precedence. you're binding and higher than =
<zenspider> use parens or &&
<zenspider> if (name = ...) and blah
<zenspider> if name = ... && blah
<zenspider> personally I like the former, but I'm biased
<RichardLitt> Huh. Cool.
<zenspider> I also prefer NOT to do assignment in my conditionals
wald0 has quit [Read error: Connection reset by peer]
<zenspider> so I'd really write if name and name.present?
wald0 has joined #ruby
<zenspider> and have the assignment above
<RichardLitt> cool
<RichardLitt> thank you zenspider and lolmaus
<shevy> cool
<zenspider> simpler is better
<shevy> when I follow people on github
djbkd has quit [Remote host closed the connection]
<shevy> it feels as if I am sniffing after them
<zenspider> stalker :P
<shevy> aredridel forked xyz
<shevy> chneukirchen created repository abc
<shevy> yeah
<shevy> going to see if I stalk apeiros yet ...
beef-wellington has joined #ruby
<shevy> hey timgauthier - can I stalk you?
<timgauthier> yes
<shevy> huh... your github says you are in Erfurt... I thought you are in canada
<shevy> do you travel faster than the speed of light
<timgauthier> want ot help me make a ruby script into a swift app, or figure out some way to make it a local app that uses safari to create .webloc bookmarks in a folder?
<timgauthier> i havn't updated my github so fuck it
<timgauthier> i'm not even in erfurt in germany, i'm closer to chemnitz
<shevy> I don't really know much about mac
<Squeatus> question from a new learner: Someone here or in ruby-lang had a question about get/set methods on class variables, and the answer was "Don't ever use them." Is this generally true? What resource would teach me this? (many books/tuts teach about their use, obviously)
<shevy> I don't even know much about linux either :)
djbkd has joined #ruby
<shevy> Squeatus the resources teach you how to use class variables
<shevy> I used them many years ago. after like 4 months, I continued on that project (a game)
<zenspider> timgauthier: what are you doing?
<shevy> I had some weird bug, which eventually turned out to be asociated with dataset stored in class variables
<shevy> then I realized that I did not need class variables in the first place and since then I questioned their use
<zenspider> Squeatus: I disagree with that statement, out of context.
<zenspider> I prefer to use accessor methods for all non-local variables
<zenspider> that said, class vars are... special. I use them. I seem to be the only one :) ... but you have to understand their quirks
<Squeatus> thanks shevy. zenspider, there wasn't much context really, which made it hard for me to understand the answer as well. Someone asked "can i use attr_accessor" statements to build get/set methods or do them by hand, and the reply was an unconditional "Never use them." :)
<timgauthier> zenspider i'm looking to convert a brett terpstra script that takes pinboard.in bookmarks and saves them locally as .webloc files with tags and other meta data
<Squeatus> So I got a little worried
<timgauthier> i want that to be all local, without any need for pinboard
<shevy> Squeatus what does attr have to do with class vars :P
vdmgolub has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
<zenspider> timgauthier: ah. neat. I don't use pinboard, but the idea is useful
renderfu_ has quit [Remote host closed the connection]
<shevy> Squeatus ooooooh
<Squeatus> shevy as far as I know, nothing.
<shevy> Squeatus you mean, to use attr* for class variables?
arya_ has quit [Ping timeout: 260 seconds]
<zenspider> Squeatus: you can't use attr_* methods for @@classvars, period. but you can make your own accessor methods for them
<shevy> now that idea alone is truly awful
<timgauthier> exactly, i have pinboard but don't use it. so i want to remove that dependancy and find a way to make the browser able to just do the bookmarking directly to the script
n_blownapart has quit []
larissa has joined #ruby
<shevy> your class is going to have @foo and @@foo variables Squeatus. what is the gain you get there?
<Squeatus> zenspider, shevy: right, I knew that part, the question wasn't important to me so much as the answer was so very...absolute. It didn't seem right to me that they would *never* be used, heh
<zenspider> timgauthier: I would think that mechanize should make quick work out of pinboard
<zenspider> Squeatus: people are very biased against class vars in general. don't take it as anything more than that
<shevy> well there are always people who will use a feature, if you give it to them
<zenspider> they have their uses
<shevy> take autoload - matz does not like it but many people use autoload
<zenspider> take shevy for example. :P
<Squeatus> zenspider: so it's a cultural aversion, more or less?
<zenspider> pretty much
<Squeatus> thanks much
<timgauthier> what is mechanize?
<zenspider> like I said, they're quirky, but useful in the right place
<shevy> timgauthier you can use it to click on stuff on the web from ruby scripts
<timgauthier> ah, naw
<timgauthier> there is a misunderstand
<zenspider> timgauthier: a ruby web client that MOSTLY acts like a headless scriptable browser
<zenspider> it can't do javascript
<timgauthier> i want to remove the use of pinboard entirely
axl_ has quit [Quit: axl_]
<zenspider> but it can fill in forms and the like
<zenspider> I use it to scrape sites.
niftylettuce_ has quit [Quit: Connection closed for inactivity]
<timgauthier> i want to make it possible to create a bookmark from the browser, right now the way the script works is you make a bookmark in pinboard then it syncs the script and pulls the info into making a webloc
<timgauthier> i want to just create the webloc directly on my local machine
<zenspider> ah. I thought you wanted to port your data from pinboard first
patrick99e99 has quit [Ping timeout: 260 seconds]
<zenspider> how would you hook this into the browser?
<zenspider> script menu? or?
chrisja has quit [Quit: leaving]
momomomomo has quit [Quit: momomomomo]
nfk has quit [Quit: yawn]
<timgauthier> i was hoping to make it a safari extension or something
nowthatsamatt has joined #ruby
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
banjara has quit [Quit: Leaving.]
jdj_dk has joined #ruby
benlieb has joined #ruby
<zenspider> cool
jottr has quit [Ping timeout: 240 seconds]
<timgauthier> i just don't even know where to begin looking into figuring that out
razrunelord has quit [Remote host closed the connection]
<timgauthier> i've also considered doing something with swift (since i want to learn)
blackmesa has quit [Ping timeout: 264 seconds]
vifino has quit [Quit: Me sais Laptop sleepy.]
QuintinAdam has quit [Remote host closed the connection]
<shevy> that's how I often start
msch has left #ruby [#ruby]
<shevy> I have no idea where I am, what I need to do
<shevy> then I take a beer and enter the idle mode
<shevy> things slowly begin to fit in from that moment in time
tylerkern has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Photism has joined #ruby
Bira has joined #ruby
asdasdasdasss has joined #ruby
razrunelord has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
<shevy> though sometimes I need more beer
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> timgauthier I am rewriting a stupid exam-question script so that it also works on the www
phoo1234567 has quit [Quit: Leaving]
peret has quit [Remote host closed the connection]
<timgauthier> haha
Channel6 has joined #ruby
<timgauthier> sweet...
Kricir has joined #ruby
<timgauthier> i, uh may know someone who could use it
<timgauthier> could you write it in PHP so it runs on his server? :P
<shevy> man
<shevy> php kills brain cells
<eam> create_function() is the best
TorpedoSkyline has joined #ruby
agarie has joined #ruby
tylerkern has joined #ruby
dgarstang has joined #ruby
<dgarstang> Is there a way I can call getpwent in ruby Etc for a different user? It doesn't seem to take a parameter
MartinCleaver has joined #ruby
mikesplain has joined #ruby
arya_ has joined #ruby
Mongey has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 255 seconds]
ghostmoth has joined #ruby
<shevy> it indeed does not take a parameter
<shevy> you should be able to extract the information from other calls though
<shevy> uid = Etc.getpwnam("debug").uid
<shevy> uid = Etc.getpwnam(Etc.getlogin).uid
<shevy> gid = Etc.getgrnam("debug").gid
<dgarstang> thanks
mikecmpbll has quit [Quit: i've nodded off.]
<shevy> Owner name: Etc.getpwuid(uid).name
wald0 has quit [Read error: Connection reset by peer]
<shevy> Etc.getgrent and Etc.getgrent.passwd
jam__ has quit [Quit: Connection closed for inactivity]
patrick99e99 has joined #ruby
dik_dak has quit [Ping timeout: 240 seconds]
opus has joined #ruby
djbkd has quit [Remote host closed the connection]
Ulrike_Rayne is now known as Ulri[away]
aspires has joined #ruby
jdj_dk has quit [Ping timeout: 250 seconds]
wald0 has joined #ruby
fgo has joined #ruby
linojon has joined #ruby
djbkd has joined #ruby
opus has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
Mongey has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
asdasdasdasss has quit [Ping timeout: 264 seconds]
JammyHammy has joined #ruby
pietr0 has quit [Quit: pietr0]
razrunelord has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 240 seconds]
icarus has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
marr has quit [Ping timeout: 255 seconds]
Zenigor has joined #ruby
wjimenez_5271_ is now known as wjimenez_5271
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Ping timeout: 240 seconds]
terrellt has quit [Quit: Leaving...]
banister has joined #ruby
Zenigor has quit [Ping timeout: 255 seconds]
banister has quit [Max SendQ exceeded]
Bira has quit [Remote host closed the connection]
sinkensabe has joined #ruby
banister has joined #ruby
Bira has joined #ruby
banister has quit [Max SendQ exceeded]