<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?
<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
<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]
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]
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]
<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]
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]
<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]
<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
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
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?
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 :/
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
<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
<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>
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]
<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?
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…]
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
<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.
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…]
<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.
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
<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