havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
agent_white has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
northrup has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
tvw has quit [Ping timeout: 244 seconds]
Asher has quit [Ping timeout: 260 seconds]
ixti has quit [Ping timeout: 260 seconds]
poerror has joined #ruby
Asher has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
Waqas has joined #ruby
Xeago has quit [Remote host closed the connection]
nullwarp has quit [Quit: ZNC - http://znc.in]
nullwarp has joined #ruby
Ebok has joined #ruby
pawnbox has joined #ruby
thermistor has quit [Quit: Connection closed for inactivity]
shayan has joined #ruby
Balzrael has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
xaxisx has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 268 seconds]
Devalo has joined #ruby
Ebok has quit [Ping timeout: 276 seconds]
jschoolcraft has quit [Quit: peace]
Weavel has quit [Quit: When the chips are down, the buffalo is empty]
symm- has quit [Ping timeout: 250 seconds]
william3 has quit [Ping timeout: 244 seconds]
cdg has joined #ruby
ur5us has quit [Remote host closed the connection]
Ebok has joined #ruby
Devalo has quit [Ping timeout: 268 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
marr has quit [Ping timeout: 260 seconds]
tubuliferous has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
crdpink has joined #ruby
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
crdpink2 has quit [Ping timeout: 264 seconds]
ReK2 has joined #ruby
statelesscode has joined #ruby
hypercube32 has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
matp has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
KnownSyntax has joined #ruby
davedev24 has joined #ruby
baweaver has quit [Remote host closed the connection]
cdg_ has joined #ruby
stannard has joined #ruby
GinoMan2440 has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
freerobby has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
machinewar has joined #ruby
<machinewar> anyone know where to find in rails source how named route parameters are extracted?
poerror has left #ruby ["Textual IRC Client: www.textualapp.com"]
matp has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
daivyk has joined #ruby
cdg_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
d0lph1n98 has joined #ruby
d0lph1n98 has quit [Client Quit]
d0lph1n98 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 260 seconds]
GinoMan2440 has joined #ruby
ramfjord_ has quit [Ping timeout: 244 seconds]
eatsfoobars has joined #ruby
pawnbox has joined #ruby
stannard has quit [Remote host closed the connection]
Guest31968 is now known as cj
eatsfoobars has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
ropeney has joined #ruby
<Radar> machinewar: do you have an example of what you mean?
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<machinewar> Radar: lol yes, sorry for asking such an open question. Do you have a reference to source code for rails or something similar to how you pass for example the get function in routes.rb get 'myroute/:some_param' and then have access to some_param in the params hash as a key pointing to its value
<machinewar> does that make sense?
smathy is now known as smathy_afk
<Radar> Yes. I don't know where that is in Rails, sorry.
<machinewar> no problemo, thanks
d0lph1n98 has quit [Quit: leaving]
silverdu2t is now known as silverdust
silverdust has quit [Changing host]
silverdust has joined #ruby
IrishGringo has joined #ruby
d0lph1n98 has joined #ruby
d0lph1n98 has quit [Client Quit]
jaguarmagenta has joined #ruby
d0lph1n98 has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 264 seconds]
<machinewar> random thought. Do people use JSON schemas?
<machinewar> or is that just really an xml thing
jenrzzz has joined #ruby
d0lph1n98 has quit [Quit: leaving]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 276 seconds]
joneshf-laptop has joined #ruby
theunraveler has joined #ruby
Cohedrin_ has joined #ruby
theunraveler has quit [Client Quit]
ocmsRzr has joined #ruby
ensyde has joined #ruby
Cohedrin has quit [Ping timeout: 276 seconds]
william3 has joined #ruby
daivyk has quit [Quit: Part & Quit]
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
Azure has joined #ruby
brackson has quit [Ping timeout: 246 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
Yiota has joined #ruby
<ocmsRzr> hi all, I'm working on settting up a simple socket server. This is purely educational, so don't yell at me about doing amateur crypto, but its a diffie-hellman echo bot. ie I do diffie hellman to create a shared key, then I echo back whatever the client says. I'm basing my example off of: http://rosettacode.org/wiki/Echo_server#Ruby My implementation is here:
<ocmsRzr> https://github.com/dbjergaard/cryptopals-solutions/blob/master/bin/diffie_hellman_server when I read the strings from the server using TCPSocket::gets most of the time it works, but some of the time I receive a fragment of the expected string causing the program to crash
tjbiddle has joined #ruby
diegoaguilar has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
davedev24 has quit []
kobain has quit [Ping timeout: 260 seconds]
<ropeney> ocmsRzr, I'm wondering if it's a bad idea to have the strip there.
Azure has quit [Ping timeout: 268 seconds]
houhoulis has joined #ruby
aurum_infide has joined #ruby
<ocmsRzr> ropeney: I thought (I'm a ruby newb) that strip would just remove the \n for me
tubuliferous has joined #ruby
houhouli_ has joined #ruby
<ropeney> but isn't the message coming in, encrypted?
<ropeney> so \n is no longer... \n?
kobain has joined #ruby
LoneHerm_ has joined #ruby
<ropeney> I could be reading it all wrong btw
<ocmsRzr> let me try because maybe I'm doing something harebrained
houhoulis has quit [Ping timeout: 252 seconds]
smathy_afk is now known as smathy
crdpink has joined #ruby
<ocmsRzr> ok, so TCPServer::readline always appends a '\n' to the end
<ocmsRzr> and in the current incarnation of debugging, I send the plaintext, encrypt it, and send the encrypted text back
crdpink2 has quit [Ping timeout: 250 seconds]
hxegon has quit [Ping timeout: 244 seconds]
<ocmsRzr> I'm completely new to socket programming, could it have something to do with blocking? My client code looks like server.puts text; cipher_text=server.gets
<ocmsRzr> ie as soon as I send a line to the server, I ask for it back
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHerm_ has quit [Ping timeout: 260 seconds]
_WWW-BUKOLAY-COM has quit [K-Lined]
Azure has joined #ruby
blackgoat has joined #ruby
arescorpio has joined #ruby
<ropeney> ocmsRzr, just busy atm thought I'd skim over it to see anything obvious for you sorry. I do suggest trying wireshark and see if you can see the problem though. Or i can take a look in a bit again if you don't have it solved.
<ocmsRzr> ropeney: no problem! wireshark is a great idea, I'll check it out. I'm glad its not obvious since I've been stuck for a while, thanks for the help!
<ropeney> goodluck :D
IrishGringo has quit [Ping timeout: 276 seconds]
Yiota has joined #ruby
newjersey has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
william3 has joined #ruby
newjersey has joined #ruby
newjersey has quit [Max SendQ exceeded]
maletor has joined #ruby
Azure has quit [Remote host closed the connection]
shayan has quit [Quit: shayan]
william3 has quit [Ping timeout: 260 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bigkevmcd has quit [Ping timeout: 246 seconds]
IrishGringo has joined #ruby
hxegon has joined #ruby
yfeldblum has joined #ruby
houhouli_ has quit [Remote host closed the connection]
darkxploit has quit [Quit: Leaving]
brent__ has quit [Quit: Connection closed for inactivity]
<smathy> ocmsRzr, the main difference between gets and readline is that readline raises the EOFError on EOF from a client.
ocmsRzr has quit [Ping timeout: 276 seconds]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
icarus has joined #ruby
zenspider has joined #ruby
zzach1 has joined #ruby
zenspider has quit [Changing host]
zenspider has joined #ruby
nanoz has joined #ruby
william3 has joined #ruby
rkazak has joined #ruby
zzach has quit [Ping timeout: 276 seconds]
rkazak has quit [Client Quit]
william3 has quit [Ping timeout: 260 seconds]
Rixius|Alt has quit [Ping timeout: 250 seconds]
hxegon has quit [Quit: BRB]
Rixius has joined #ruby
d0nn1e_ has quit [Ping timeout: 250 seconds]
elifoster has joined #ruby
LoneHermit has joined #ruby
Axy has joined #ruby
rbennace_ has quit [Remote host closed the connection]
Mia has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Remote host closed the connection]
Chagel has joined #ruby
pawnbox has joined #ruby
baweaver has joined #ruby
Devalo has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
karmatr0n has joined #ruby
Ebok has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 276 seconds]
Devalo has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
william3 has joined #ruby
solocshaw has joined #ruby
BtcBen has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
william3 has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
statelesscode has quit [Quit: statelesscode]
nikger has joined #ruby
ensyde has quit [Ping timeout: 268 seconds]
tjbiddle has joined #ruby
pawnbox has joined #ruby
Peleus has joined #ruby
<Peleus> Hey all. I have RVM configuration for folder ~/foo. My program works fine in this folder. I want to be able to run it from folder "~/bar". How can I tell folder "~/bar" to use "~/foo"s configuration?
CloCkWeRX has quit [Ping timeout: 268 seconds]
Chagel_ has joined #ruby
Chagel has quit [Ping timeout: 250 seconds]
nikger has quit [K-Lined]
godzillaenlacasa has quit [Quit: ZZZZZ....]
nanoz has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
noService has quit [Ping timeout: 276 seconds]
GinoMan2440_ has joined #ruby
LoneHermit has quit [Remote host closed the connection]
GinoMan2440 has quit [Ping timeout: 252 seconds]
machinewar has quit []
zast has joined #ruby
Peleus has quit [Ping timeout: 250 seconds]
william3 has joined #ruby
braincras has quit [Quit: bye bye]
karmatr0n has quit [Ping timeout: 260 seconds]
nando293921 has joined #ruby
GinoMan2440_ has quit [Ping timeout: 268 seconds]
william3 has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
flashpoint9 has joined #ruby
braincrash has joined #ruby
LoneHermit has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
mondo has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
icarus has quit [Ping timeout: 260 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
s00pcan has quit [Quit: Lost terminal]
icarus has joined #ruby
s00pcan has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
sp4rrow has joined #ruby
GinoMan2440 has joined #ruby
william3 has joined #ruby
bigkevmcd has joined #ruby
Waqas has quit [Read error: Connection reset by peer]
sp4rrow has quit [Client Quit]
maletor has joined #ruby
CloCkWeRX has joined #ruby
pawnbox has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
blackgoat has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
SirCmpwn has quit [Ping timeout: 250 seconds]
csaunders has quit [Ping timeout: 246 seconds]
sp4rrow has joined #ruby
Phanes has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Client Quit]
Jello_Raptor has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
Phanes has joined #ruby
Phanes has quit [Changing host]
Phanes has joined #ruby
Drakx has quit [Ping timeout: 276 seconds]
Jello_Raptor has joined #ruby
Yiota has joined #ruby
hoylemd has quit [Ping timeout: 264 seconds]
monoprotic has quit [Read error: Connection reset by peer]
Drakx has joined #ruby
janelleb_ has quit [Ping timeout: 268 seconds]
janelleb has joined #ruby
hoylemd has joined #ruby
monoprotic has joined #ruby
Jello_Raptor has quit [Max SendQ exceeded]
Jello_Raptor has joined #ruby
csaunders has joined #ruby
solocshaw has quit [Ping timeout: 276 seconds]
Devalo has quit [Ping timeout: 250 seconds]
Jello_Raptor has quit [Max SendQ exceeded]
Jello_Raptor has joined #ruby
noService has joined #ruby
SirCmpwn has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
HaythamKenway has quit [Quit: DDoS has died, DDoS has risen, DDoS comin' again]
Jello_Raptor has quit [Max SendQ exceeded]
Nightmare has joined #ruby
gnufied has joined #ruby
Jello_Raptor has joined #ruby
gix has quit [Ping timeout: 276 seconds]
nisstyre has quit [Ping timeout: 260 seconds]
Jello_Raptor has quit [Max SendQ exceeded]
gregf has joined #ruby
Jello_Raptor has joined #ruby
TheMoonMaster has quit [Ping timeout: 276 seconds]
Caelum has quit [Ping timeout: 268 seconds]
Jello_Raptor has quit [Max SendQ exceeded]
null__ has quit [Ping timeout: 264 seconds]
Jello_Raptor has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
Jello_Raptor has quit [Max SendQ exceeded]
Jello_Raptor has joined #ruby
Peleus has joined #ruby
skweek has quit [Ping timeout: 268 seconds]
gix has joined #ruby
Jello_Raptor has quit [Max SendQ exceeded]
Snowy has joined #ruby
phpwebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snowy has quit [Ping timeout: 240 seconds]
tax has quit [Ping timeout: 260 seconds]
gnufied has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
flashpoint9 has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 246 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
nando293921 has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
tildes has joined #ruby
Yiota has joined #ruby
hakunin has joined #ruby
tubuliferous has joined #ruby
<hakunin> just saw this typo, and curious why it even works: you can add & to any object before method call, like this Foo&.bar, or user&.id, and ruby (2.3.0 here) won't complain
Yiota has quit [Client Quit]
karmatr0n has joined #ruby
<hakunin> fun little parser quirk i guess
eljimmy has quit [Quit: This computer has gone to sleep]
tax has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
bronson has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
null__ has joined #ruby
TheMoonMaster has joined #ruby
TheMoonMaster has joined #ruby
nisstyre has joined #ruby
GriffinHeart has joined #ruby
stunder has joined #ruby
saneax is now known as saneax_AFK
bronson has quit [Ping timeout: 252 seconds]
kareeoleez has joined #ruby
jaguarmagenta has joined #ruby
Peleus has quit [Quit: Bye bye]
stunder has quit [Ping timeout: 260 seconds]
SirCmpwn has quit [Ping timeout: 260 seconds]
chosen1_ has joined #ruby
Drakx has quit [Ping timeout: 250 seconds]
ec\_ has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
Caelum has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
SirCmpwn has joined #ruby
hk238 has joined #ruby
bb010g has joined #ruby
chosen1 has quit [Ping timeout: 276 seconds]
SirCmpwn has quit [Excess Flood]
SirCmpwn has joined #ruby
dionysus69 has joined #ruby
Drakx has joined #ruby
ec\ has joined #ruby
ta_ has quit [Remote host closed the connection]
TheMoonMaster has quit [Ping timeout: 276 seconds]
Caelum has quit [Ping timeout: 268 seconds]
null__ has quit [Ping timeout: 264 seconds]
SirCmpwn has quit [Ping timeout: 246 seconds]
Drakx has quit [Ping timeout: 252 seconds]
william3 has joined #ruby
AnoHito has quit [Read error: Connection reset by peer]
Drakx has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
lkba_ has quit [Remote host closed the connection]
maletor has joined #ruby
diegoaguilar has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
null__ has joined #ruby
s1kx has quit [Quit: bai]
IrishGringo has quit [Ping timeout: 250 seconds]
Drakx has quit [Ping timeout: 276 seconds]
TheMoonMaster has joined #ruby
Caelum has joined #ruby
karmatr0n has quit [Ping timeout: 268 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
blackgoat has joined #ruby
<smathy> hakunin, no, an intentional addition that many were waiting for.
AnoHito has joined #ruby
rbennacer has quit [Remote host closed the connection]
<smathy> hakunin, safe navigation (aka lonely) operator.
<hakunin> smathy: geez
hxegon has joined #ruby
<hakunin> smathy: i know about lonely operator
rbennacer has joined #ruby
<hakunin> smathy: was sitting at rubyconf, watching matz describe it
rbennacer has quit [Remote host closed the connection]
<hakunin> and completely didn't realize that was it
<smathy> Heh :) And there it is ;)
<havenwood> hakunin: Lonely person staring at the dot, indeed!
<smathy> It's obviously a no-op when your objects are defined ;)
stunder has joined #ruby
rbennacer has joined #ruby
<hakunin> smathy: yep
<havenwood> >> nil&.nil?
<ruby[bot]> havenwood: # => nil (https://eval.in/555882)
<hakunin> but to an untrained eye looks like a typo
rbennacer has quit [Remote host closed the connection]
<havenwood> Just peppering the code with ampersands.
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
rkazak has joined #ruby
SirCmpwn has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
Drakx has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
edv4rd0 has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
stunder has quit [Ping timeout: 268 seconds]
Chagel_ has quit [Ping timeout: 276 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
LoneHermit has quit [Remote host closed the connection]
r0b3rt has joined #ruby
terminal_ has joined #ruby
terminal_ has quit [Client Quit]
arescorpio has quit [Quit: Leaving.]
RegulationD has joined #ruby
krzkrz has joined #ruby
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
toretore has joined #ruby
segy has quit [Ping timeout: 244 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
<shevy> havenwood lol
neanderslob has quit [Remote host closed the connection]
<shevy> yeah... ruby syntax requires one to have good eyes
<shevy> I wonder if this is how perl evolved!
<zacts> hi rubyists
<smathy> No, Larry was a madman from day 1.
tildes has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
navneet has joined #ruby
blackgoat has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
blackgoat has joined #ruby
tax has quit [Quit: Leaving]
poguez_ has joined #ruby
BtcBen has quit [Ping timeout: 276 seconds]
A5101 has joined #ruby
Devalo has joined #ruby
KensoDev has joined #ruby
saneax_AFK is now known as saneax
navneet has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 268 seconds]
zenlot6 has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: Sleep.....ing....]
navneet_ has joined #ruby
maletor has joined #ruby
icarus has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
icarus has joined #ruby
mwlang has quit [Quit: mwlang]
william3 has joined #ruby
PedramT_ has joined #ruby
PedramT has quit [Ping timeout: 246 seconds]
icarus has quit [Read error: Connection reset by peer]
icarus has joined #ruby
GriffinHeart has joined #ruby
marktwo has joined #ruby
marktwo has quit [Client Quit]
marktwo has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
PedramT_ has quit [Ping timeout: 246 seconds]
marktwo has quit [Client Quit]
yardenbar has joined #ruby
Synthead has quit [Disconnected by services]
PedramT has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
Synthbread has joined #ruby
crdpink has quit [Quit: q term]
astrobunny has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
astrobunny has quit [Remote host closed the connection]
astrobu__ has joined #ruby
navneet_ has quit [Remote host closed the connection]
krzkrz has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
navneet has joined #ruby
Chagel has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
al2o3-cr has quit [Quit: WeeChat 1.4]
darkbulb has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
crdpink has joined #ruby
<darkbulb> I have an issue with a ruby run of a temperature conversion
sperant has joined #ruby
<darkbulb> why is puts not terminating
sauvin has joined #ruby
segy has joined #ruby
<shevy> that is not ruby
william3 has joined #ruby
Guest98513 is now known as awk
Chagel has quit [Ping timeout: 252 seconds]
jaguarma_ has joined #ruby
darkbulb has quit [Client Quit]
raeoks has joined #ruby
Chagel has joined #ruby
<ropeney> what is it then shevy ?
al2o3-cr has joined #ruby
wasane has joined #ruby
<shevy> ropeney did you look at it?
<ropeney> yes i did
<ropeney> oh he has left the room anyway
<shevy> cel = fahr (((9*Float(cel))/5) + 32)
<shevy> I can't even get to the thought process to produce code that is fairly complex
pawnbox has quit [Remote host closed the connection]
karmatr0n has joined #ruby
jaguarmagenta has quit [Ping timeout: 250 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<ropeney> i dont know whats complex about it, but I think he has mistaken some things; though its definitely ruby
<ropeney> like fahr = puts
<ropeney> ges cel after the calculator
<ropeney> s/ges/gets/
<shevy> that does not look right in any way
<ropeney> agreed its bad code
william3 has quit [Ping timeout: 260 seconds]
zenlot6 has joined #ruby
pawnbox has joined #ruby
GinoMan2440 has quit [Read error: Connection reset by peer]
<toretore> they're just confused about how expressions work in ruby
lagweezle has quit [Ping timeout: 244 seconds]
<toretore> in some other languages you'd express the problem in this way, "get something from stdin and put it in this variable"
lagweezle has joined #ruby
wasane has quit [Quit: Mutter: www.mutterirc.com]
pawnbox has quit [Remote host closed the connection]
PedramT has joined #ruby
GinoMan2440 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
icarus has quit [Read error: Connection reset by peer]
BtcBen has joined #ruby
flughafen has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
william3 has joined #ruby
PedramT has quit [Ping timeout: 244 seconds]
infra-red has joined #ruby
rrichardsr3 has joined #ruby
icarus has joined #ruby
coyo has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
GriffinHeart has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
blt has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 276 seconds]
ur5us has quit [Remote host closed the connection]
jaguarma_ has quit [Remote host closed the connection]
lyro` has quit [Read error: Connection reset by peer]
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flughafen has joined #ruby
hk238 has joined #ruby
infra-re_ has joined #ruby
icarus has quit [Ping timeout: 252 seconds]
icarus has joined #ruby
pawnbox has joined #ruby
infra-red has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
bigkevmcd has joined #ruby
infra-re_ has quit [Read error: Connection reset by peer]
PedramT has joined #ruby
william3 has joined #ruby
Devalo has quit [Remote host closed the connection]
blt has joined #ruby
PedramT has quit [Ping timeout: 246 seconds]
icarus has quit [Read error: Connection reset by peer]
william3 has quit [Ping timeout: 260 seconds]
rrichardsr3 has quit [Ping timeout: 240 seconds]
A5101 has quit [Remote host closed the connection]
Coldblackice_ has quit [Ping timeout: 252 seconds]
coyo has joined #ruby
firstdayonthejob has joined #ruby
pawnbox has quit [Remote host closed the connection]
nerium has joined #ruby
bigkevmcd has quit [Ping timeout: 246 seconds]
infra-red has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
pandaant has joined #ruby
krzkrz has joined #ruby
bigkevmcd has joined #ruby
CausaMortis has joined #ruby
nerium has quit [Ping timeout: 252 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
siaw has quit [Quit: siaw]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
pLaToOn has joined #ruby
ssiris has quit [Quit: End of Line]
firstdayonthejob has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
blt has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 268 seconds]
elifoster has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
rippa has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Madplatypus has joined #ruby
william3 has joined #ruby
NovapaX has joined #ruby
infra-red has quit [Remote host closed the connection]
Spami has joined #ruby
atzorvas has joined #ruby
nando293921 has quit [Quit: Lost terminal]
pawnbox has quit [Remote host closed the connection]
NovapaX_ has joined #ruby
pawnbox has joined #ruby
nando293921 has joined #ruby
tjvc has quit [Ping timeout: 246 seconds]
william3 has quit [Ping timeout: 260 seconds]
marktwo has joined #ruby
marktwo has quit [Client Quit]
tjvc has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
NovapaX has quit [Ping timeout: 276 seconds]
Lomex has joined #ruby
duncannz has quit [Ping timeout: 268 seconds]
bosnianboy has quit [Quit: This computer has gone to sleep]
Lomex has quit [Remote host closed the connection]
brunto has joined #ruby
waxxy has joined #ruby
Xiti has quit [Quit: Xiti]
amclain has quit [Quit: Leaving]
Sammichmaker has joined #ruby
Pumukel has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
the_drow has joined #ruby
nando293921 has quit [Quit: Lost terminal]
blt has joined #ruby
andikr has joined #ruby
nando293921 has joined #ruby
blt has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 250 seconds]
solars has joined #ruby
Xeago has joined #ruby
jaruga___ has joined #ruby
anisha has joined #ruby
nfk has joined #ruby
jaguarmagenta has joined #ruby
codecop has joined #ruby
brunto has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
kenbi has joined #ruby
mark_66 has joined #ruby
Shashikant86 has joined #ruby
Snowy has joined #ruby
Shashikant86 has quit [Client Quit]
Adam_FrVancouver has quit [Ping timeout: 276 seconds]
madgen has joined #ruby
joneshf-laptop has quit [Ping timeout: 276 seconds]
Devalo has quit [Ping timeout: 250 seconds]
kenbi has quit [Client Quit]
sepp2k has joined #ruby
antgel has joined #ruby
Shashikant86 has joined #ruby
aufi has joined #ruby
brunto has joined #ruby
tildes has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
p0p0pr37 has quit [Ping timeout: 244 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
aufi has quit [Read error: Connection reset by peer]
aufi has joined #ruby
infra-red has joined #ruby
krzkrz has quit [Ping timeout: 260 seconds]
<zenspider> toretore: no, that code is just wack
agent_white has quit [Quit: gnight]
mikecmpbll has joined #ruby
<zenspider> absolute lack of clarity of thought
anisha has quit [Quit: Leaving]
anisha has joined #ruby
noService has quit [Ping timeout: 260 seconds]
charlemagne has joined #ruby
NovapaX_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ellimist747 has joined #ruby
<toretore> zenspider: "confused about how programming works" then :)
<adaedra> Hello everyone
ellimist747 has left #ruby [#ruby]
<toretore> hello
edwinvdgraaf has joined #ruby
brunto has quit [Quit: leaving]
Adam_FrVancouver has joined #ruby
navneet has quit [Remote host closed the connection]
johnbat26 has joined #ruby
Dimik has quit [Ping timeout: 252 seconds]
aganov has joined #ruby
<manveru> anyone know a way to use refinements with methods you don't directly call?
<ruby[bot]> manveru: we in #ruby do not like irccloud.com, I reposted your paste to gist for you: https://gist.github.com/036089b4571b7d7ac52b56b10237a6c6
<ruby[bot]> manveru: irccloud.com has no syntax highlighting, distracting formatting and loads slowly for most.
<manveru> oh shut up bot, you didn't even try irccloud
xsdjoa has joined #ruby
Couch has joined #ruby
eatsfoobars has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<manveru> anw, i'd like to do the above, but with refinements, it goes via Bundler.setup -> Bundler::Runtime.setup -> Bundler::Definition.specs_for -> Bundler::Definition.specs
AlexRussia has quit [Ping timeout: 260 seconds]
crdpink has joined #ruby
charlemagne has quit [Ping timeout: 268 seconds]
<adaedra> tsssk tsssk tsssk.
finisherr has quit [Quit: finisherr]
Jello_Raptor has joined #ruby
icarus has joined #ruby
crdpink2 has quit [Ping timeout: 276 seconds]
<manveru> the only thing i changed about the specs method is that i pass an empty array as second argument to resolve.materialize
pawnbox has quit [Remote host closed the connection]
<manveru> because otherwise bundler will fail when a gemspec is missing
<manveru> and i only bundle the gemspecs needed for the groups given to Bundler.setup
krzkrz has joined #ruby
<adaedra> I see no refinements in your code
<manveru> because it's not working with refinements :P
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
<adaedra> but refinements are local to file
<manveru> exactly
<adaedra> so if your method is called from another file, it does not apply
biberu has joined #ruby
<manveru> so i'd have to copy all the method calls into my file and refine them all?
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<manveru> well, lemme try that just for fun
<adaedra> I don't understand what you're trying to do
<manveru> passing the empty array to resolve.materialize when i call Bundler.setup
<manveru> it's a bug in bundler i want to fix for my deployment
BtcBen has quit [Ping timeout: 276 seconds]
<manveru> maybe i'm just silly, but i wanted to use refinements just once in my life... they're so cool in theory, but so useless in practice :|
pawnbox has joined #ruby
TheHodge has joined #ruby
<manveru> oh, i forgot i can't refine Bundler.setup because it's on a module...
<manveru> well, back to monkeypatching
helpa-bot has joined #ruby
helpa has quit [Read error: Connection reset by peer]
aufign has joined #ruby
RazorX has joined #ruby
helpa-bot has quit [Remote host closed the connection]
x0f_ has quit [Ping timeout: 244 seconds]
helpa has joined #ruby
aufi2 has quit [Client Quit]
poguez_ has quit [Quit: Connection closed for inactivity]
ponga has joined #ruby
RazorX| has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
RegulationD has joined #ruby
charlemagne has joined #ruby
noService has joined #ruby
sepp2k has quit [Quit: Leaving.]
bruno- has joined #ruby
ocbtec has joined #ruby
pawnbox has quit [Remote host closed the connection]
kareeole_ has joined #ruby
pawnbox has joined #ruby
chosen1_ has quit [Ping timeout: 276 seconds]
tagaulap has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
CausaMortis has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Ping timeout: 250 seconds]
CausaMortis has joined #ruby
unsymbol_ has quit [Quit: cheerio]
kareeole_ is now known as kareeoleez
drptbl has quit [Quit: See you later!]
auzty has joined #ruby
unsymbol has joined #ruby
Xeago has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
drptbl has joined #ruby
myntcake has joined #ruby
Shashikant86 has quit [Ping timeout: 276 seconds]
nobitanobi has joined #ruby
Xeago has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
bigkevmcd has quit [Ping timeout: 268 seconds]
krandi has joined #ruby
tubuliferous has quit [Ping timeout: 268 seconds]
andikr has quit [Ping timeout: 276 seconds]
maufart has joined #ruby
Xeago has joined #ruby
aufi_ has joined #ruby
GinoMan2440 has quit [Ping timeout: 276 seconds]
bigkevmcd has joined #ruby
catpoop has quit [Remote host closed the connection]
maufart has quit [Client Quit]
GinoMan2440 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
ur5us has joined #ruby
crdpink2 has joined #ruby
jaguarmagenta has joined #ruby
crdpink has quit [Ping timeout: 276 seconds]
william3 has joined #ruby
evidex has joined #ruby
bigkevmcd has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
senayar has joined #ruby
astrobunny has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jaguarmagenta has quit [Ping timeout: 276 seconds]
myntcake has quit [Ping timeout: 244 seconds]
crdpink has joined #ruby
astrobu__ has quit [Ping timeout: 276 seconds]
crdpink2 has quit [Ping timeout: 268 seconds]
bigkevmcd has joined #ruby
moeabdol has joined #ruby
poerror has joined #ruby
Xeago has quit [Remote host closed the connection]
gh has joined #ruby
madgen has quit [Ping timeout: 246 seconds]
poerror has left #ruby [#ruby]
sperant has joined #ruby
pawnbox has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
nfk|laptop has joined #ruby
gdp has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
bigkevmcd has joined #ruby
x0f has joined #ruby
raeoks has quit [Ping timeout: 250 seconds]
myntcake has joined #ruby
joonty has joined #ruby
aufi_ has quit [Quit: Odcházím]
aufi_ has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Ping timeout: 276 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 268 seconds]
ur5us has quit [Remote host closed the connection]
Gasher has joined #ruby
krzkrz has quit [Ping timeout: 246 seconds]
Chagel_ has joined #ruby
Chagel has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
xsdjoa has quit [Read error: No route to host]
crdpink has joined #ruby
edwinvdgraaf has joined #ruby
noService has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
crdpink2 has quit [Ping timeout: 276 seconds]
aufi has quit [Quit: Konversation terminated!]
edwinvdgraaf has quit [Read error: Connection reset by peer]
Chagel_ has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
skislak has joined #ruby
Chagel has joined #ruby
tvw has joined #ruby
Xeago has joined #ruby
navneet has joined #ruby
jamesbrink has quit [Quit: Connection closed for inactivity]
rohit_ has joined #ruby
baweaver has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 246 seconds]
nwndry has joined #ruby
symm- has joined #ruby
yfeldblum has joined #ruby
bruno- has joined #ruby
icarus_ has joined #ruby
icarus has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
valeri_ufo has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 268 seconds]
valeri_ufo has joined #ruby
bigkevmcd has quit [Ping timeout: 260 seconds]
icarus_ has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
stupidystupid has joined #ruby
william3 has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
rbennacer has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
boomsie has joined #ruby
<boomsie> I was using string.match(regex) to extract data from a string (line by line). Now I'm using string.scan(regex) to just get as many matches as I can. But I can't access the matches with labels any more... any idea how to get around that? Here's my code: https://gist.github.com/anonymous/b647cd091ab7d0a88a4fc14fc85e77b9
<boomsie> @extracted_names[0][0] works, but I can't use the labels as I'd like
rkazak has joined #ruby
nando293921 has quit [Ping timeout: 268 seconds]
william3 has joined #ruby
Weavel has joined #ruby
bigkevmcd has joined #ruby
flopsec has joined #ruby
mame3 has joined #ruby
KillerFox has joined #ruby
forgot has joined #ruby
TomyWork has joined #ruby
hypnosb has joined #ruby
crdpink2 has joined #ruby
flopsec has joined #ruby
forgot has quit [Max SendQ exceeded]
flopsec has quit [Max SendQ exceeded]
hypnosb has quit [Max SendQ exceeded]
forgot has joined #ruby
crdpink has quit [Ping timeout: 268 seconds]
hypnosb has joined #ruby
platzhirsch has joined #ruby
flopsec has joined #ruby
ferr has joined #ruby
<boomsie> Is it because scan doesn't return a MatchData?
Xeago has joined #ruby
<jhass> pretty much, yeah
<jhass> one thing I dislike about scan too
<jhass> boomsie: I guess you could #zip up with Regexp#named_captures (well, its #keys)
<apeiros> you can have MatchData via $~
<jhass> oh, or ^
<apeiros> gist coming up…
<jhass> but only in the block variant then
al2o3-cr has quit [Read error: Connection reset by peer]
<apeiros> hm, not sure why I did enum_for in the else. .map will make it an array anyway.
rohit_ has quit [Ping timeout: 268 seconds]
rohit_ has joined #ruby
<apeiros> ah, of course, because otherwise I get an array where I can't get $~ :)
ocbtec has quit [Quit: leaving]
ocbtec has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
platzhirsch has left #ruby [#ruby]
Xeago has quit [Remote host closed the connection]
<boomsie> apeiros: thanks! I'll give that a whirl and get back to you
crdpink2 has quit [Ping timeout: 250 seconds]
crdpink has joined #ruby
atzorvas has quit [Quit: Page closed]
terlar has joined #ruby
blackms has joined #ruby
<boomsie> aperios: I know it's not as neat as your solution, but I might go for this: https://gist.github.com/anonymous/9a46aad54f41a0f1cef136c54187e910
<apeiros> ?tabnick boomsie
<ruby[bot]> boomsie: pro-tip - use tab completion for nicks. avoids typos in nicks.
mnrmnaugh has joined #ruby
marr has joined #ruby
<boomsie> apeiros: cheers!
pawnbox has quit [Remote host closed the connection]
<apeiros> boomsie: it's probably also slower. but hey, up to you :)
<boomsie> apeiros: the behaviour I want is to match as many of the data structures as I can in the string, and then access them later.
tubuliferous has joined #ruby
sid_fules has joined #ruby
<boomsie> apeiros: thanks for your help. I'll look into your solution more. Have a good day!
pawnbox has joined #ruby
johnmilton has joined #ruby
boomsie has quit [Quit: Page closed]
bosnianboy has joined #ruby
pawnbox has quit [Remote host closed the connection]
sid_fules has quit [Remote host closed the connection]
pawnbox has joined #ruby
hxegon has quit [Ping timeout: 252 seconds]
<apeiros> it'd be: `@extracted_names = name_list.match_all(name_regex)`. if you want to compare performance, use benchmark/ips (a gem)
<apeiros> it'll help you not make basic mistakes in benchmarking :)
Xeago has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
johnmilton has quit [Ping timeout: 250 seconds]
colegatron has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
krzkrz has joined #ruby
rohit_ has quit [Ping timeout: 240 seconds]
moeabdol has joined #ruby
sid_fules has joined #ruby
madgen has joined #ruby
Shashikant86 has joined #ruby
BtcBen has joined #ruby
yfeldblum has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
astrobunny has quit [Remote host closed the connection]
sid_fules has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
poerror has joined #ruby
poerror has quit [Client Quit]
Shashikant86 has joined #ruby
noService has joined #ruby
gh has quit [Quit: Leaving]
bigkevmcd has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
charlemagne has quit [Ping timeout: 276 seconds]
lkba has joined #ruby
ICantCook has quit [Ping timeout: 268 seconds]
aurum_infide has quit [Ping timeout: 250 seconds]
charlemagne has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 252 seconds]
konsolebox has joined #ruby
Shashikant86 has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
poerror has joined #ruby
poerror has quit [Client Quit]
jaguarmagenta has joined #ruby
william3 has quit [Remote host closed the connection]
davedev24 has joined #ruby
bigkevmcd has joined #ruby
GriffinHeart has joined #ruby
william3 has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
krzkrz has quit [Ping timeout: 260 seconds]
Drakx has quit [Quit: leaving]
freerobby has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
charlemagne has quit [Read error: No route to host]
charlemagne has joined #ruby
charlemagne has quit [Read error: No route to host]
charlemagne has joined #ruby
evidex has quit [Remote host closed the connection]
evidex has joined #ruby
auzty has quit [Quit: Leaving]
dn` has quit [Ping timeout: 244 seconds]
rbennacer has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
rbennacer has joined #ruby
noService has quit [Ping timeout: 268 seconds]
mikeiniowa has joined #ruby
Xeago has joined #ruby
csharper has quit [Ping timeout: 260 seconds]
noService has joined #ruby
csharper has joined #ruby
Xeago has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
krzkrz has joined #ruby
nobitanobi has joined #ruby
waxxy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
johnmilton has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
GinoMan2440_ has joined #ruby
moeabdol has joined #ruby
evidex has quit [Remote host closed the connection]
charlemagne has quit [Read error: No route to host]
charlema_ has joined #ruby
evidex has joined #ruby
krzkrz has quit [Ping timeout: 250 seconds]
dn` has joined #ruby
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
baweaver has joined #ruby
GinoMan2440 has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
krzkrz has joined #ruby
charlema_ has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
Chagel has quit [Ping timeout: 268 seconds]
moeabdol has quit [Ping timeout: 268 seconds]
baweaver has quit [Ping timeout: 250 seconds]
neanderslob_ has joined #ruby
brackson has joined #ruby
poerror has joined #ruby
poerror has left #ruby [#ruby]
krzkrz has quit [Ping timeout: 244 seconds]
joonty has quit [Ping timeout: 260 seconds]
stupidystupid has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
moeabdol has joined #ruby
bigkevmcd has quit [Ping timeout: 276 seconds]
kareeoleez has joined #ruby
r3v1x has joined #ruby
charlemagne has joined #ruby
<r3v1x> hey guys, anyone knows a good complexity lint for ruby?
bruno- has joined #ruby
freerobby has quit [Quit: Leaving.]
madgen has quit [Ping timeout: 268 seconds]
<shevy> <manveru> maybe i'm just silly, but i wanted to use refinements just once in my life... they're so cool in theory, but so useless in practice :|
<shevy> you are killing my hope to use refinements one day manveru! :(
moeabdol has quit [Ping timeout: 268 seconds]
moeabdol has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
sid_fules has joined #ruby
r0b3rt has quit [Ping timeout: 244 seconds]
blaxter has joined #ruby
stunder has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
trinaldi has joined #ruby
marr has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
postmodern has quit [Quit: Leaving]
trinaldi has left #ruby [#ruby]
stunder has quit [Ping timeout: 250 seconds]
navneet has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
ldnunes has joined #ruby
william3 has joined #ruby
charlemagne has quit [Ping timeout: 244 seconds]
william3 has quit [Ping timeout: 246 seconds]
charlemagne has joined #ruby
Xeago has joined #ruby
waxxy has joined #ruby
que has joined #ruby
kits has joined #ruby
Xeago has quit [Remote host closed the connection]
lsmola has quit [Ping timeout: 244 seconds]
brackson has quit [Ping timeout: 246 seconds]
bosnianboy has quit [Quit: This computer has gone to sleep]
solars has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
saneax is now known as saneax_AFK
Xeago has joined #ruby
charlemagne has quit [Read error: No route to host]
charlemagne has joined #ruby
tubuliferous has joined #ruby
bigkevmcd has quit [Ping timeout: 250 seconds]
konsolebox has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
bigkevmcd has joined #ruby
charlemagne has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
madgen has joined #ruby
joonty has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
que has quit [Quit: Page closed]
bigkevmcd has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
lsmola has joined #ruby
bigkevmcd has joined #ruby
neanderslob_ has quit [Read error: Connection reset by peer]
Abhijit has joined #ruby
<Abhijit> hi
<Abhijit> i have csv with column a,b,c,d. How can I sum all rows of column "d" where respective column "c" == value.
sdothum has joined #ruby
GinoMan2440_ has quit [Ping timeout: 276 seconds]
eatsfoobars has quit [Quit: Textual IRC Client: www.textualapp.com]
sgambino has joined #ruby
william3 has joined #ruby
krzkrz has joined #ruby
bigkevmcd has quit [Ping timeout: 268 seconds]
yeticry has joined #ruby
<jhass> &ri Enumerable#select Enumerable#map Enumerable#reduce @Abhijit
RegulationD has joined #ruby
charlemagne has joined #ruby
ICantCook has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
charlema_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charlemagne has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
shayan has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
newjersey has joined #ruby
newjersey has quit [Max SendQ exceeded]
bigkevmcd has joined #ruby
moeabdol has joined #ruby
rkoller has joined #ruby
<Abhijit> `derpy, thanks.
diegoaguilar has quit [Remote host closed the connection]
w1lson has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
gnufied has joined #ruby
charlema_ has quit [Ping timeout: 260 seconds]
navneet has joined #ruby
bigkevmcd has quit [Client Quit]
Yiota has joined #ruby
navneet has quit [Remote host closed the connection]
<shevy> derpy is such a nice guy
crameth has joined #ruby
solars has joined #ruby
jaguarmagenta has joined #ruby
shayan has quit [Quit: shayan]
bruno- has quit [Ping timeout: 250 seconds]
r3v1x has quit [Ping timeout: 240 seconds]
navneet has joined #ruby
Devalo has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
Bloomer has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
swills has quit [Ping timeout: 244 seconds]
navneet has quit [Remote host closed the connection]
aufi_ has quit [Ping timeout: 276 seconds]
ropeney has quit [Quit: Leaving]
aeterne has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
vishwa has left #ruby [#ruby]
Xeago has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
SporkWitch has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
nobitanobi has joined #ruby
IrishGringo has joined #ruby
<SporkWitch> so, new to ruby and rails, i'm a bit lost. I'm used to more traditional stuff, you yum install your deps and then your web app lives in some folder to get called when someone browses to the URL pointing at it. I'm not understanding at all where I'm supposed to install the ruby and rails stuff, what user i should be doing it as (do i create a user to run redmine as?). Trying to figure out how to
<SporkWitch> install redmine
<TheBrayn> SporkWitch: you should ask in the redmine irc-channel
madgen has joined #ruby
<SporkWitch> apologies, this seemed more applicable, since it's more general ruby that i'm not understanding. i'll of course ask there as well
<Abhijit> SporkWitch, use rvm to install ruby and rails. assuming you are on linux just do this as regular non root user
dn` has quit [Ping timeout: 260 seconds]
<Abhijit> SporkWitch, it will live inside your /home/user/.rvm
<Abhijit> SporkWitch, if that redmine is a gem, you have to add it to your rails project Gemfile and run bundle
<SporkWitch> that's what it seemed like and that's why it was confusing me, since normally server applications have their own no-login users
<Abhijit> SporkWitch, when you put your rails in production the nginx / apache will be running as their standard user or your non root user whatever is standand to them
stannard has joined #ruby
Xeago has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<Abhijit> SporkWitch, my nginx run as my non root user. i have project dir as /var/www/proj which is user:root group and nginx runs as user "user" here
<Abhijit> nginx + passenger
madgen has quit [Ping timeout: 252 seconds]
<SporkWitch> ok, so really i'm just telling it WHERE to install, and then apache would just point to that location like anything else, such as owncloud or w/e. the user i do it as is just determining location and owner?
<SporkWitch> assuming i understood that right, that helps; thanks
siaw has quit [Quit: siaw]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Abhijit> SporkWitch, no. "you" have to configure apache / nginx config file then it will know where is your rails. additionaly you have to do passenger / unicorn configuration also.
<SporkWitch> yeah, sorry, of course i have to point it at it still
<Abhijit> :-)
<Abhijit> yeah, so basically put app in location, then configure, passenger/unicorn/whatever then configure apache/nginxl/whatever and you are live!! :-)
noService has quit [Ping timeout: 260 seconds]
<Abhijit> SporkWitch, since you have to execute the command "bundle" as non root user (thats restriction from rails/ ruby) you have to chown the project dir to nonrootuser:root
Yiota has joined #ruby
<SporkWitch> yeah, that was the first thing that tipped me off that this was not like installing anything i was used to, heh. normally i just drop my web apps int /var/www, chown to apache:apache, and then create the vhost. done.
<SporkWitch> any "install" stuff just does the same, dropping stuff where it needs to go
madgen has joined #ruby
someish has joined #ruby
sid_fules has joined #ruby
stannard has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
AlexJakeGreen has joined #ruby
plantigrade has quit [Quit: WeeChat 1.0.1]
avelldiroll has joined #ruby
jrafanie has joined #ruby
navneet has joined #ruby
isaiahp has joined #ruby
infra-red has quit [Remote host closed the connection]
steve has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Remote host closed the connection]
Gasher has quit [Ping timeout: 246 seconds]
krzkrz has quit [Ping timeout: 260 seconds]
flashpoint9 has joined #ruby
ChiefAlexander has joined #ruby
someish has quit [Quit: someish]
cdg has joined #ruby
someish has joined #ruby
infra-red has joined #ruby
nobitanobi has joined #ruby
JakFrist has joined #ruby
dn` has joined #ruby
GodFather has joined #ruby
ramortegui has joined #ruby
aegis3121 has joined #ruby
kareeoleez has quit [Ping timeout: 240 seconds]
rbennacer has quit [Ping timeout: 240 seconds]
Ebok has joined #ruby
marr has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
pandaant has quit [Remote host closed the connection]
<nfk|laptop> i'm trying to use capistrano for deployment and i'm getting TypeError: no implicit conversion of Symbol into String
<nfk|laptop> is my ruby2.1 too old or what?
djcp has joined #ruby
n008f4g_ has joined #ruby
<shevy> that error can happen on ruby 2.1.x just as it can on 2.3.x and on 1.9.x and 1.8.x
Xeago has quit [Remote host closed the connection]
<nfk|laptop> so what is going on there?
<nfk|laptop> it's in vendor code so surely many would have hit it if it was a common issue
<nfk|laptop> oh, i know
<nfk|laptop> stupid
tvw has quit [Read error: Connection reset by peer]
<nfk|laptop> set :deploy_to, :application
<nfk|laptop> that has to be this
davedev2_ has joined #ruby
sgambino has joined #ruby
Canar has quit [Quit: Game over.]
davedev24 has quit [Ping timeout: 276 seconds]
minimalism has quit [Quit: minimalism]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
steve has joined #ruby
tvw has joined #ruby
bruno- has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
moeabdol has joined #ruby
ChiefAlexander has joined #ruby
william3 has quit [Remote host closed the connection]
william3 has joined #ruby
malconis has joined #ruby
godzillaenlacasa has joined #ruby
bruno- has quit [Ping timeout: 268 seconds]
<nfk|laptop> oh god, it requires an absolute path, i'm really starting to hate capistrano
Shashikant86 has joined #ruby
solars has quit [Ping timeout: 240 seconds]
<shevy> you just need a pat on the back
<ujjain> feature_branch_ci_deploys.feature: And I do not expect any HipChat messages to be sent < what are these kind of tests called?
<ujjain> rspec?
<ujjain> or cucumber?
OTORelic2 has joined #ruby
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> ujjain: that kind of test is usually parsed with gherkin and glued to ruby code using cucumber
* ujjain pats nfk|laptop on the back
<jhass> they're most often used for integration tests
<ujjain> ah thanks
<ujjain> yes, it looks like gherkin
<jhass> (that is cucumber uses gherkin to parse it)
Bloomer has quit [Remote host closed the connection]
harry_ has joined #ruby
<ujjain> does log.warn("") come from the log4j library?
<ujjain> log4r
<jhass> impossible to tell
<nfk|laptop> ujjain, what?
<jhass> check log.class
<ujjain> nfk|laptop shevy said you needed a pat on the back
<ujjain> jhass thanks
<nfk|laptop> oh, right, he did
kareeoleez has joined #ruby
terlar has quit [Quit: WeeChat 1.4]
terlar has joined #ruby
Gasher has joined #ruby
n008f4g_ has quit [Ping timeout: 244 seconds]
bkxd has joined #ruby
Amnez777 has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
yardenbar has joined #ruby
sid_fules has quit [Remote host closed the connection]
crazyphil has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Read error: Connection reset by peer]
crazyphil has joined #ruby
eljimmy has joined #ruby
<ujjain> I'd like to test if log.warn("hello") is executed in gherkin... any tips would be welcome. How can I check what was logged in the last line?
statelesscode has joined #ruby
Alina-malina has quit [Ping timeout: 250 seconds]
TheWhip has joined #ruby
sid_fules has joined #ruby
jobewan has joined #ruby
lsmola has quit [Ping timeout: 260 seconds]
<shevy> hmm... gherkin itself has means to log output?
krzkrz has joined #ruby
mustmodify has joined #ruby
bkxd has quit [Ping timeout: 250 seconds]
jobewan is now known as jobewan_away
alienaut has joined #ruby
jobewan_away is now known as jobewan
charlemagne has joined #ruby
harry_ has quit [Quit: harry_]
bruno- has joined #ruby
<mustmodify> Someone please tell me why this is a dumb idea. I'm trying to embrace "as simply as possible but not simpler." But my current plan almost seems too simple. I receive telemetry via UDP. I parse it, turn it into JSON, then append that and a comma ( so ... "{key: value, key: value},\n" to a file whose name is device_id/date.json ... then when I emit with sinatra I'll add [ + content + ]
Xeago has quit [Remote host closed the connection]
<mustmodify> deliverables from this microservice are: all positions for a day and most recent position... so for most recent, obviously just tail -n 1
AlexRussia has joined #ruby
<mustmodify> (less the comma)
<ujjain> shevy: my code will print a custom error message for execution expired (http://pastebin.com/Uz80GbuF) - can you link me a gherkin docs that would help me to build a test that looks if the timeout message was correctly displayed
<ruby[bot]> ujjain: as I told you already, please use https://gist.github.com
navneet has quit [Remote host closed the connection]
<mustmodify> rubybot: You're stateful, how nice. :P
<mustmodify> rubybot: kind of snarky for this early in the morning, but funny.
danielpclark has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
<jhass> ujjain: throwing a require "pry"; binding.pry before it should be just fine
SporkWitch has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
WaqasA has joined #ruby
<jhass> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
navneet has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
OTORelic2 has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
navneet has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
jschoolcraft has joined #ruby
chouhoulis has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
chouhoulis has joined #ruby
william3 has joined #ruby
charlemagne has quit [Ping timeout: 244 seconds]
lsmola has joined #ruby
rohit has joined #ruby
saneax_AFK is now known as saneax
<jhass> ujjain: btw rescue Timeout::Error, never rescue Exception
<ujjain> ah thanks
Rickmasta has joined #ruby
william3 has quit [Ping timeout: 250 seconds]
Rickmasta has quit [Max SendQ exceeded]
Rickmasta has joined #ruby
<jhass> ujjain: and just raise e to reraise
karmatr0n has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
sid_fules has quit [Read error: Connection reset by peer]
<jhass> ujjain: bundle exec cucumber ...
william3 has joined #ruby
<ujjain> ah thanks
Rickmasta has joined #ruby
Rickmasta has quit [Max SendQ exceeded]
<jhass> which the error message even mentions btw
chris2 has quit [Ping timeout: 276 seconds]
<ujjain> ah you are right
stannard has joined #ruby
joe1234567 has joined #ruby
chris2 has joined #ruby
joe1234567 has quit [Client Quit]
agent_white has joined #ruby
<Abhijit> ujjain, you are talking to whom?
<Abhijit> have I blocked someone or what?
<ujjain> jhass: thanks + you are right, the message did say "pretend bundle exec" was for him
<Abhijit> right
ElSif has joined #ruby
AlexJakeGreen has quit [Read error: Connection reset by peer]
conta has quit [Ping timeout: 250 seconds]
lxsameer has quit [Quit: WeeChat 1.4]
<ujjain> https://gist.github.com/ujjain/b9a077dd30168f4c3179222915ed94d9 => cannot load such file -- pry (LoadError)
<ujjain> must I add pry to the gemfile?
solars has joined #ruby
stannard has quit [Remote host closed the connection]
<jhass> sure
<jhass> bundle help exec
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.4]
stannard has joined #ruby
pLaToOn has quit [Read error: Connection reset by peer]
dhollinger has joined #ruby
sid_fules has joined #ruby
OTORelic2 has joined #ruby
Guest96311 is now known as duracrisis
duracrisis has quit [Changing host]
duracrisis has joined #ruby
idletask has quit [Ping timeout: 244 seconds]
idletask has joined #ruby
sid_fules has quit [Remote host closed the connection]
<ujjain> binding.pry gives Caught ArgumentError: wrong number of arguments
<ujjain> 0 for 1
sid_fules has joined #ruby
gnufied has quit [Quit: Leaving]
szulak has joined #ruby
sid_fules has quit [Remote host closed the connection]
infra-red has joined #ruby
sid_fules has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 276 seconds]
icarus has joined #ruby
noService has joined #ruby
crameth has quit [Quit: crameth]
icarus has quit [Read error: Connection reset by peer]
<waxxy> mustmodify as long as the json you receive is guaranteed to be valid, that should work fine right?
<waxxy> big conditional, though
gnufied has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
jolamb_ is now known as jolamb
equinox is now known as Guest73238
whippythellama has joined #ruby
noService has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
jhack has joined #ruby
Xeago has quit [Remote host closed the connection]
TomyWork has quit [Remote host closed the connection]
<ujjain> how would the gherkin-step look for this feature? http://i.imgur.com/PFv41mH.png
tildes has quit [Remote host closed the connection]
madgen has joined #ruby
<ujjain> it's at http://docs.behat.org/en/v2.5/guides/1.gherkin.html, but it doesn't show theh step
alienaut has quit [Remote host closed the connection]
charlemagne has joined #ruby
aegis3121 has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
noService has joined #ruby
ta_ has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 276 seconds]
marr has quit [Ping timeout: 260 seconds]
infernix has quit [Ping timeout: 264 seconds]
aufi_ has joined #ruby
Devalo has joined #ruby
aydintd has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
Ebok has quit [Read error: Connection reset by peer]
aydintd has left #ruby [#ruby]
Ebok has joined #ruby
aydintd has joined #ruby
Xeago has joined #ruby
xaxisx has joined #ruby
platzhirsch has joined #ruby
eatsfoobars has joined #ruby
freerobby has quit [Quit: Leaving.]
Devalo has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
Macaveli has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aegis3121 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
drptbl_ has joined #ruby
Shashikant86 has joined #ruby
SilverKey has joined #ruby
Xeago has quit [Remote host closed the connection]
infernix has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
drptbl has quit [Ping timeout: 250 seconds]
skislak has quit [Ping timeout: 252 seconds]
platzhirsch has quit [Ping timeout: 252 seconds]
Shashikant86 has quit [Client Quit]
infra-red has quit [Remote host closed the connection]
<agent_white> Mornin'
wldcordeiro has quit [Ping timeout: 276 seconds]
DoubleMalt has joined #ruby
<ujjain> how to make gherkin look if an exception was raised?
Shashikant86 has joined #ruby
Macaveli_ has joined #ruby
Macaveli has quit [Ping timeout: 276 seconds]
gregf has joined #ruby
<the_drow> Hi, I'm invoking Time.now and it returns a string for some reason although the docs specify it should return a Time object
<jhass> the_drow: how do you assert it returns a string?
kareeoleez has quit [Remote host closed the connection]
<toretore> >> Time.now
<the_drow> Time.now.class outputs String
<ruby[bot]> toretore: # => 2016-04-19 14:46:56 +0000 (https://eval.in/556387)
Shashikant86 has quit [Max SendQ exceeded]
<the_drow> At least for me...
<jhass> >> Time.now.class
<ruby[bot]> jhass: # => Time (https://eval.in/556388)
<toretore> the_drow: gist your code
<jhass> the_drow: what's Time.method(:now).source_location for you?
<the_drow> It's a whole project... I don't know where to begin
mustmodify has left #ruby [#ruby]
<the_drow> jhass, I'll check
<the_drow> Users/omer.katz/.rvm/gems/ruby-2.2.4@tracking_service/gems/rspec-mocks-3.4.1/lib/rspec/mocks/method_double.rb
<the_drow> Right so it's rspec's fault
lkba_ has joined #ruby
<jhass> the_drow: not quite, more likely somebody did Time.stub(:now).and_return("foo") or alike
harry_ has joined #ruby
<the_drow> Oh I see that now
sid_fules has joined #ruby
<the_drow> Thanks
Mekkis has quit [Excess Flood]
<jhass> check the timecop gem for some aid in Time stubbing
Mekkis has joined #ruby
infra-red has joined #ruby
infra-red has quit [Remote host closed the connection]
infra-red has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
<the_drow> jhass, thanks
ruby-lang153 has joined #ruby
phpwebdev has joined #ruby
TheWhip has quit [Remote host closed the connection]
icarus has joined #ruby
RegulationD has joined #ruby
Amnez777 has joined #ruby
Alina-malina has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
theunraveler has joined #ruby
Xeago has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
aegis3121 has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
xaxisx has quit [Quit: xaxisx]
xaxisx has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
william3 has quit [Remote host closed the connection]
eatsfoobars has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomatoes has joined #ruby
smathy has joined #ruby
<tubbo> why is there both `alias` and `alias_method`?
kam270 has joined #ruby
<tubbo> it's so confusing
<tubbo> for like no reason
baweaver has joined #ruby
Macaveli_ has quit [Quit: Textual IRC Client: www.textualapp.com]
ruby-lang153 has quit [Ping timeout: 250 seconds]
Balzrael has joined #ruby
stunder has joined #ruby
william3 has joined #ruby
infernix has quit [Ping timeout: 268 seconds]
<jhass> first of all alias is syntax, alias_method is a regular method call (Module#alias_method iirc?)
<smathy> Total reason.
<jhass> my guess is alias was first and not metaprogrammable
sunya7a is now known as Guest65163
<aegis3121> They also scope differently, I believe.
charlemagne has quit [Ping timeout: 260 seconds]
william3 has quit [Remote host closed the connection]
sunya7a_ is now known as sunya7a
william3 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: rkazak]
elifoster has joined #ruby
rodfersou is now known as rodfersou|lunch
rkazak has joined #ruby
icarus has quit [Ping timeout: 250 seconds]
<smathy> Yes, `alias` is lexically scoped, there's no way to make it work for subclasses.
wldcordeiro has joined #ruby
synthroid has quit [Remote host closed the connection]
polishdub has joined #ruby
sid_fules has joined #ruby
ayonkhan has joined #ruby
bruno- has joined #ruby
icarus has joined #ruby
TomyLobo has joined #ruby
aufi_ has quit [Ping timeout: 250 seconds]
Snowy has quit [Remote host closed the connection]
marr has joined #ruby
solars has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
thomasfedb_ has quit [Ping timeout: 268 seconds]
saneax is now known as saneax_AFK
ferr has quit [Quit: WeeChat 1.4]
the_drow has quit [Quit: This computer has gone to sleep]
thomasfedb has joined #ruby
thomasfedb has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
madgen has quit [Ping timeout: 252 seconds]
sid_fules has quit [Remote host closed the connection]
phaza has quit [Ping timeout: 250 seconds]
icarus has quit [Read error: Connection reset by peer]
Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
IrishGringo has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
infra-red has quit [Remote host closed the connection]
harry_ has quit [Quit: harry_]
CausaMortis has quit [Ping timeout: 276 seconds]
sid_fules has joined #ruby
tomatoes has quit [Ping timeout: 276 seconds]
kfpratt has joined #ruby
wldcordeiro has quit [Quit: WeeChat 1.3]
Computergeek01 has joined #ruby
pawnbox has quit [Remote host closed the connection]
<Computergeek01> Would it be inappropriate to post compilation questions here?
statelesscode has quit [Quit: statelesscode]
igam has joined #ruby
<shevy> compiling ruby?
<shevy> however give it a try anyway
<Computergeek01> Yes, well building it with rbenv
<igam> hi! How can I load and test a gem of which I have obtained the sources from github and that I have modified locally? $LOAD_PATH is read only, and gem install installs a new version from the network, not from the work directory,
<igam> .
<igam> require with an absolute pathname doesn't load it either…
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
ayonkhan has quit [Read error: Connection reset by peer]
ayonkhan has joined #ruby
<Computergeek01> So my issue is that the command "rbenv install 2.X.X" fails with because 'libruby-static.a' is being built for the wrong arhictecture. But if I manually configure it for dynamic linking it works
sadin has joined #ruby
aganov has quit [Remote host closed the connection]
<Computergeek01> OSX 10.11.4
GodFather has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
weckl has joined #ruby
<jhass> igam: $LOAD_PATH is not read only
sid_fules has quit [Read error: Connection reset by peer]
<jhass> igam: but ruby/irb -Ilib -rthe_gem might be the easiest
cpruitt has joined #ruby
carella has joined #ruby
<jhass> (well it does modify $LOAD_PATH actually)
northrup has joined #ruby
JakFrist has joined #ruby
<igam> the_gem would be a path or a name?
bradleyprice has quit [Remote host closed the connection]
<jhass> name
<jhass> filename (without the .rb) of the entry point
<jhass> just for convenience too
<igam> Yep, it seems to work. Thanks.
_tpavel has joined #ruby
_tpavel has quit [Read error: Connection reset by peer]
banister has quit [Remote host closed the connection]
openstruct has joined #ruby
sid_fules has joined #ruby
banister has joined #ruby
Abhijit has quit [Quit: Bye.]
<Computergeek01> Has anyone seen this error before? "ld: warning: ignoring file libruby-static.a, file was built for archive which is not the architecture being linked (x86_64): libruby-static.a"
waxxy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> seems harmless
pawnbox has joined #ruby
<igam> make clean perhaps?
<Computergeek01> It's leading to undefined symbols
kits has quit [Quit: Leaving]
<Computergeek01> Undefined symbols for architecture x86_64: "_ruby_init", referenced from: _main in main.o "_ruby_init_stack", referenced from: _main in main.o "_ruby_options", referenced from: _main in main.o "_ruby_run_node", referenced from: _main in main.o "_ruby_sysinit", referenced from: _main in main.o ld: symbol(s) not found for architecture x86_64
karapetyan has joined #ruby
kareeole_ has joined #ruby
<Computergeek01> I tried that too.
<Computergeek01> The only way I've been able to work around it is to build it for dynamic linking only
<Computergeek01> But I guess that breaks my groups build environment or some other crap.
baweaver has joined #ruby
bosnianboy has joined #ruby
kareeole_ has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
kareeoleez has quit [Ping timeout: 240 seconds]
infernix has joined #ruby
nodejunkie has joined #ruby
<WaqasA> I am a Java Web developer, working with Liferay. Also, I am starting to learn Ruby (and Rails), because I love Ruby. Do you guys think I should stick with learning Ruby or do PHP (Maybe Laravel)? I have experience with Laravel also.
maletor has joined #ruby
Xeago has joined #ruby
maletor has quit [Client Quit]
siaw has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
M-Shrike1 has joined #ruby
mfb2 has joined #ruby
diegoaguilar has joined #ruby
charlemagne has joined #ruby
Devalo has joined #ruby
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
madgen has joined #ruby
bmf has joined #ruby
amclain has joined #ruby
<apeiros> WaqasA: php IMO only if you've masochistic tendencies
ramfjord has joined #ruby
<WaqasA> ooo
pawnbox has quit [Remote host closed the connection]
<M-Shrike1> PHP is a satanist cult.
pawnbox has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
<apeiros> that would actually sound appealing
Cohedrin has joined #ruby
shredding has quit [Ping timeout: 276 seconds]
Couch has quit [Ping timeout: 250 seconds]
dfockler has joined #ruby
<smathy> WaqasA, I always respond to this question the same way, if you enjoy writing PHP then you should do that because if you can enjoy PHP then at some point you'll hate ruby.
<Computergeek01> OK, now I don't know what the heck to think. Here's my latest error: "bigdecimal.c:124:52: error: too few arguments to function call, expected at least 3, have 2"
noService has quit [Ping timeout: 276 seconds]
<Computergeek01> I got past the build failure for 'libruby-static.a' by reindexing it with "ranlib"
<Computergeek01> This is an actual error in a stable source release? Or am I reading this wrong?
aegis3121 has quit [Ping timeout: 250 seconds]
<smathy> Looks more like a build environment clusterfuck.
bradleyprice has joined #ruby
<apeiros> php still the only language from my not so small collection of known languages I never truly liked.
sid_fules has joined #ruby
nando293921 has joined #ruby
<Computergeek01> smathy : Go on, I'll try anything at this point
baweaver has quit [Read error: Connection reset by peer]
<smathy> apeiros, same.
<Computergeek01> But "... too few arguments to function call ... " seems like a source code error to me
Cohedrin_ has joined #ruby
baweaver has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<smathy> Computergeek01, that's easy to just be the wrong lib function being called, or wrong precompile branch.
bruno- has joined #ruby
BtcBen has quit [Ping timeout: 276 seconds]
flashpoint9 has quit [Remote host closed the connection]
<Computergeek01> OK, I think I follow. I'm cleaning and trying again now.
<WaqasA> Thanks guys!
Cohedrin has quit [Ping timeout: 246 seconds]
gdp has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 250 seconds]
bradleyprice has joined #ruby
joonty has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
dionysus69 has joined #ruby
william3 has quit [Remote host closed the connection]
charlemagne has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
rkazak has quit [Ping timeout: 250 seconds]
synthroid has joined #ruby
flashpoint9 has joined #ruby
<Computergeek01> OK, are there any scripts to santize a bash shell in order to compile Ruby?
<eam> Computergeek01: what's that mean?
<Computergeek01> Something that sets the environment variables to what they should be. Or at least runs a version control test on the dependencies.
M-Shrike1 has left #ruby ["User left"]
bronson has quit [Ping timeout: 260 seconds]
Xeago has quit [Read error: Connection reset by peer]
<eam> you don't necessarily need any environment variables set in order to build. Dependencies will differ depending on your system/distro
SilverKey has quit [Quit: Halted.]
tubuliferous has joined #ruby
<eam> I don't know of anything to set up the dependencies, but it should be a rather simple process (and you can then save what you did in a script)
mfb2_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
mfb2_ has quit [Remote host closed the connection]
<Computergeek01> Good point, now that you say that I realize that rbenv is probably the closest to what I am looking for.
<eam> most likely, yeah
rbennacer has joined #ruby
mfb2_ has joined #ruby
baweaver has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 260 seconds]
steve has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
bmf has quit [Remote host closed the connection]
mfb2 has quit [Ping timeout: 268 seconds]
SilverKey has joined #ruby
jaguarmagenta has joined #ruby
wldcordeiro has joined #ruby
noService has joined #ruby
jaruga___ has quit [Quit: jaruga___]
Pumukel has quit [Ping timeout: 240 seconds]
<Computergeek01> OK, looks like the nuclear option it is. Time to reformat the Mac
darkf has quit [Quit: Leaving]
mfb2_ has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 252 seconds]
<Computergeek01> I really miss Windows SxS
bmf has joined #ruby
mfb2 has joined #ruby
shinnya has joined #ruby
<eam> ruby shouldn't have any meaningful dependencies on system libraries on osx
mfb2 has quit [Remote host closed the connection]
psf has joined #ruby
mfb2 has joined #ruby
bmf has quit [Remote host closed the connection]
<Computergeek01> Do you know what version of C it's supposed to compile against? I have to wait until this evening to format the machine anyway
nofacade has joined #ruby
colegatron has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
mark_66 has quit [Remote host closed the connection]
Spami has joined #ruby
<eam> Computergeek01: it'll link against /usr/lib/libSystem.B.dylib, which is the osx libc
senayar has quit []
<eam> that's not something that's versioned in any meaningful way -- it will just work
<eam> are you running into a specific problem? Maybe describe the trouble?
babblebre has joined #ruby
<Computergeek01> Yeah, people keep telling me that. But it's either a package that I have is out of date or I have a default setting wrong
<eam> if you're encountering an error, can you describe it?
<eam> "when I do X, I see Y and I expect Z"
<Computergeek01> I just reinstalled brew to grab rbenv again, I'll have the error up agian in a minute if this doesn't work
Asher has quit [Quit: Leaving.]
baweaver has quit [Ping timeout: 268 seconds]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
moeabdol has joined #ruby
steve has joined #ruby
SilverKey has quit [Quit: Halted.]
pawnbox has joined #ruby
Yeomra has joined #ruby
symm- has joined #ruby
krandi has quit [Remote host closed the connection]
igam has quit [Ping timeout: 268 seconds]
sadin has quit [Ping timeout: 244 seconds]
stupidystupid has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest38 has joined #ruby
<Computergeek01> The error is that there are undefined symbols for "_ruby_init", "_ruby_init_stack", "_ruby_options", "_ruby_run_node" and _ruby_sysinit
JakFrist has joined #ruby
Regulati_ has joined #ruby
stupidystupid has quit [Client Quit]
<Computergeek01> nm says that these functions are all defined in 'libruby-static.a' but that is giving me a warning that says: "ld: warning: ignoring file libruby-static.a, file was built for archive which is not the architecture being linked (x86_64): libruby-static.a"
mikecmpbll has quit [Ping timeout: 276 seconds]
<Computergeek01> Until I run 'ranlib' against it to reindex it. Then I'm getting a different error depending on what version of ruby I'm trying to build
sadin has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
th0m has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
crdpink2 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
IrishGringo has joined #ruby
<Computergeek01> And now I'm getting a missing header file for something that should be in the include path. So we're back to me having a hoarked build env eam
<eam> which header file?
<Computergeek01> rubysig.h
crdpink has quit [Ping timeout: 268 seconds]
th0m has quit [Remote host closed the connection]
<Computergeek01> it's there in ./include/ruby/backward
nobitanobi has quit [Remote host closed the connection]
<Computergeek01> From 'tcltklib.c' by the way
<Computergeek01> In case that helps you find the problematic branch
tubuliferous has joined #ruby
szulak has quit [Quit: Textual IRC Client: www.textualapp.com]
SilverKey has joined #ruby
rodfersou|lunch is now known as rodfersou|afk
Lomex has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
bruno- has quit [Read error: Connection reset by peer]
Cohedrin_ has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
james1 is now known as jtperreault
bluOxigen_ has joined #ruby
Computergeek01 has quit [Quit: Page closed]
isaiahp has quit [Quit: Lost terminal]
SilverKey has quit [Quit: Halted.]
icarus has joined #ruby
nobitanobi has joined #ruby
SCHAAP137 has joined #ruby
Cohedrin has joined #ruby
JJM has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
rbennacer has quit [Remote host closed the connection]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
phaza has joined #ruby
dfockler has quit [Ping timeout: 276 seconds]
codecop has joined #ruby
<flashpoint9> I started getting into Ruby because I was getting into Rails and wanted to get better at a lower level. I've been coding some gems, enjoying myself and learning quite a bit but what do Ruby coders spend most of their time doing? What kinds of projects use only Ruby?
GriffinHeart has joined #ruby
poguez_ has joined #ruby
<shevy> flashpoint9 dunno, whatever I need to do, if it can be automated, I just write in ruby
<flashpoint9> shevy: so for your work you primarily code in ruby? or is it mostly rails and you automate things when needed using ruby?
<shevy> I never used ruby because of work
<shevy> I mean, I could ruby every now and then
gigetoo has quit [Ping timeout: 240 seconds]
<jhass> I'm not sure it's a useful line to draw, after all rails itself is written in "only ruby"
Amnez777 has quit [Ping timeout: 268 seconds]
<shevy> but I use ruby because it is a very good language
TheWhip has joined #ruby
<jhass> and most stuff that isn't one off scripts will use at least some library, rails is just a fairly big one
<flashpoint9> jhass: true, but I certainly felt like I could eek my way through rails without having a deep undertsaning of ruby, at least to be a crud jockey if nothing else
Alina-malina has quit [Ping timeout: 246 seconds]
<shevy> the overall ecosystem of rails is quite big
aegis3121 has joined #ruby
<jhass> the same way you could eek through ruby without having a deep understanding of it
malconis has joined #ruby
<jhass> IMO to write good rails code you need to understand ruby after all
nanoz has joined #ruby
<flashpoint9> jhass: hmmm, it certainly feels like I cant cheat through Ruby
Pumukel has joined #ruby
madgen has quit [Ping timeout: 276 seconds]
<flashpoint9> thanks for the info people :)
chouhoul_ has joined #ruby
GriffinHeart has quit [Ping timeout: 250 seconds]
weckl has quit [Quit: Leaving]
<shevy> the two biggest hurdles I have in regards to writing ruby code is, when I lack some particular domain knowledge, or when I simply lack the time
gigetoo has joined #ruby
elifoster has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
Amnez777 has joined #ruby
mikecmpbll has quit [Client Quit]
Asher has joined #ruby
joonty has joined #ruby
Alina-malina has joined #ruby
<shevy> there could perhaps be more smaller ruby gems out there
JJM has quit [Quit: Textual IRC Client: www.textualapp.com]
Rickmasta has joined #ruby
<shevy> stuff like apeiros' literal parser https://github.com/apeiros/literal_parser
pawnbox has joined #ruby
snockerton has joined #ruby
icarus has quit [Ping timeout: 260 seconds]
mleung has joined #ruby
joonty has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
infra-red has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
icarus has joined #ruby
chouhoulis has joined #ruby
MagePsycho_ has joined #ruby
icarus has quit [Client Quit]
ssiris has joined #ruby
nobitanobi has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
sid_fules has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen_ has left #ruby [#ruby]
nobitanobi has joined #ruby
rodfersou|afk is now known as rodfersou
aegis3121 has quit [Ping timeout: 252 seconds]
<n1colas> Hello
nodejunkie has left #ruby ["Leaving"]
aegis3121 has joined #ruby
skweek has joined #ruby
jhack has quit [Quit: jhack]
skweek has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
sid_fules has quit [Remote host closed the connection]
xue_ has joined #ruby
jhack has joined #ruby
infra-re_ has joined #ruby
bruno- has joined #ruby
charlemagne has joined #ruby
skweek has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
rcvalle has joined #ruby
xue_ has quit [Remote host closed the connection]
Gasher has quit [Ping timeout: 244 seconds]
mnrmnaugh is now known as catpoop
skweek has quit [Remote host closed the connection]
infra-red has quit [Ping timeout: 244 seconds]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 250 seconds]
jhack_ has joined #ruby
skweek has joined #ruby
VeryBewitching has joined #ruby
dfockler has joined #ruby
<VeryBewitching> o/
Xeago has joined #ruby
jhack has quit [Ping timeout: 246 seconds]
Dimik has joined #ruby
sperant has joined #ruby
jhack has joined #ruby
madgen has joined #ruby
mfb2 has quit [Read error: Connection reset by peer]
Abhijit has joined #ruby
<Abhijit> hi
jhack_ has quit [Ping timeout: 260 seconds]
<Abhijit> i am doing mycsvfileobj.each do |csfile| print("#{csfile}, Good) end . that " , Good " part is coming on newline. how to avoid that?
mfb2 has joined #ruby
<tobiasvl> Abhijit: there's evidently a newline at the end of csfile
<tobiasvl> strip it
<jhass> &ri String#chomp
<tobiasvl> chomp it I mean
<tobiasvl> I get language blind sometimes
<Abhijit> ok
<Abhijit> :-)
<Abhijit> `derpy, is a bot?
sperant has quit [Quit: Textual IRC Client: www.textualapp.com]
mfb2 has quit [Remote host closed the connection]
<jhass> yes
william3 has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
chosen1 has joined #ruby
mfb2 has joined #ruby
mfb2 has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 260 seconds]
mfb2 has joined #ruby
Rickmasta has quit [Ping timeout: 240 seconds]
william3 has quit [Ping timeout: 252 seconds]
JakFrist has joined #ruby
Ebok has joined #ruby
SilverKey has joined #ruby
eatsfoobars has joined #ruby
nobitanobi has quit [Remote host closed the connection]
staticfox has quit [Quit: ZNC - http://znc.in]
Rickmasta has joined #ruby
Rickmasta has quit [Client Quit]
flashpoint9 has joined #ruby
brent__ has joined #ruby
highbass has joined #ruby
nhhc has joined #ruby
dome22xl has joined #ruby
baweaver has joined #ruby
jhack_ has joined #ruby
diegoaguilar has quit [Read error: Connection reset by peer]
william3 has joined #ruby
jhack has quit [Ping timeout: 250 seconds]
jhack_ is now known as jhack
<highbass> not sure the best place to ask this but i got a puma process that i start in an init script (daemonized)... straight forward start bundle exec puma -c ./config/test.rb >> /var/log/x.log ... problem is that the app starts with init.d but the init holds the bash session ... it doesnt seem to run in the background and give proper exit codes... is there something i am missing?
charlemagne has quit [Ping timeout: 250 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
evidex has quit [Ping timeout: 268 seconds]
<jhass> mmh, a /usr/bin/systemd
* jhass crawls back into his troll cave
baweaver has quit [Ping timeout: 240 seconds]
<miah> highbass: put a '&' after your puma command
<highbass> lol
<miah> or nohup it
<miah> ensure its put into the background, because it doesnt by default
<highbass> ok
<highbass> o think i also just read -d deamonizes a puma process
<miah> personally, i use chpst to manage startup of my apps
<highbass> going to give that a shit
<highbass> chpst?
<miah> cool, good lucks
codecop has quit [Read error: Connection reset by peer]
<miah> its part of runit
dome22xl has quit [Ping timeout: 244 seconds]
<highbass> ah ok ... i was going to bundle it into monit
<miah> that will work too
<highbass> thanks miah
<miah> your welcome
conta has joined #ruby
codecop has joined #ruby
<Abhijit> you are*
tildes has joined #ruby
<miah> i was referring to their welcome ;)
xaxisx has quit [Quit: xaxisx]
nwndry has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
baweaver has joined #ruby
<Abhijit> gn.
Abhijit has quit [Quit: Bye.]
openstruct has quit []
harry_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
firstdayonthejob has joined #ruby
goodroot has quit [Quit: WeeChat 1.4]
conta has quit [Ping timeout: 260 seconds]
jhack has quit [Quit: jhack]
jhack has joined #ruby
jhack has quit [Client Quit]
<baweaver> Has anyone played with hosting RDoc on GH Pages for an Enterprise (private) installation?
<baweaver> That, and I need to find their default stylesheet in git, it's cringeworthy
* smathy makes obligatory crucifix sign - ENTERPRISE!
SilverKey has quit [Quit: Halted.]
<baweaver> I do the same for Java smathy
<smathy> Oh I just stab Java where it stands.
Ebok has quit [Quit: This computer has gone to sleep]
<smathy> ...but no, sorry, never done that.
Ispira has joined #ruby
<Ispira> Hi guys.
<Ispira> I'm picking up Ruby for web dev, I'm just a bit confused about the versioning system.
<baweaver> Hm, I'll have to write up on it later then or find something.
<baweaver> Ispira: which part?
<Ispira> current stable releases are... 2.3.0 2.2.4 and 2.1.9... RubyInstaller gives me the ioptions between 2.4.4 and 2.1.8
<Ispira> I'm not sure where I should start and why
<smathy> 2.3
<smathy> Why = because it's the latest stable.
<baweaver> Anything lower is patched for security bugs
<baweaver> The Windows installer will probably take a while to get up to date in any case.
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<Ispira> Alright that's what I assumed, Is there any resource on getting it set up with rails on Windows?
<baweaver> If you can avoid it, I would
<smathy> Ispira, you'll find that most big/responsible software projects maintain several versions of their software so that people aren't forced to upgrade just to get important fixes.
* baweaver has tried before, and still has nightmares
<Ispira> Alright sounds like I'm using Python instead then.
<baweaver> For the most part Ruby/Rails congregates on Mac and Linux
cdg has quit [Remote host closed the connection]
<smathy> Ispira, ok, have fun.
<baweaver> Too many odd bugs on Windows
<Ispira> I need something that'll work whether I'm on my mac mini, windows partition, or linux partition.
<Ispira> Thanks for the help baweaver and smathy
<baweaver> Vagrant
<smathy> Np.
<Ispira> sorry for wasting your time tho.
r0b3rt has joined #ruby
Ispira has left #ruby ["Bye guys!"]
joonty has joined #ruby
ramfjord has joined #ruby
boontdus` has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
moos3 has joined #ruby
<nfk|laptop> is it just me or is unicorn slower than rails default webrack?
zast has quit [Remote host closed the connection]
<nfk|laptop> *WEBrick
* nfk|laptop yawns
MagePsycho_ has quit [Quit: MagePsycho_]
eatsfoobars has quit [Quit: Textual IRC Client: www.textualapp.com]
bradleyprice has quit [Remote host closed the connection]
<adaedra> webcrack
<nfk|laptop> i have been setting up this server for like 10 hours now, mkey?
bradleyprice has joined #ruby
<adaedra> :p
joonty has quit [Ping timeout: 268 seconds]
karapetyan has joined #ruby
<nfk|laptop> why must every single piece of documentation ever be never complete and correct?
mikecmpbll has joined #ruby
[Butch] has joined #ruby
ta_ has joined #ruby
kareeoleez has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
barajasfab has quit [Quit: Leaving]
bradleyprice has quit [Ping timeout: 244 seconds]
PedramT has quit [Remote host closed the connection]
GinoMan2440 has joined #ruby
karapetyan has quit [Ping timeout: 268 seconds]
Bloomer has joined #ruby
SilverKey has joined #ruby
ixti has joined #ruby
<shevy> you don't even read the documentation
<nfk|laptop> i do
<pipework> shevy: That's my job.
bruno- has quit [Read error: Connection reset by peer]
<pipework> nfk|laptop: Read the professional level documentation.
<nfk|laptop> like capistrano documentation is hopeless
<nfk|laptop> and i'm not the only one saying that
<pipework> nfk|laptop: Open source, you get what you pay for, sometimes.
BtcBen has joined #ruby
MagePsycho_ has joined #ruby
<nfk|laptop> now, if this passes pre-compilation, i might be out of the woods (and we all know what will happen now)
sauvin has quit [Remote host closed the connection]
<nfk|laptop> also, i just noticed i'm slowly running out of free space on my 2 GB microSD card backed rasp
w1lson has quit [Quit: Textual IRC Client: www.textualapp.com]
Ebok has joined #ruby
<pipework> Just remove your graphical server and all related packages.
noService has quit [Ping timeout: 268 seconds]
spider-mario has joined #ruby
baweaver has quit [Remote host closed the connection]
<nfk|laptop> pipework, i'm not sure there is one but let's see
bruno- has joined #ruby
<nfk|laptop> yep, i don't think this one has X installed
<pipework> Is the pi the server you're installing it onto?
<nfk|laptop> i mean, the bare minimum for a full raspbian is 4 GB
<nfk|laptop> it's raspbian-lite or something
<pipework> How much memory do you have?
s00pcan has quit [Remote host closed the connection]
<nfk|laptop> 2 GB microSD from my 10yo nokia and 512 MB RAM
<pipework> nfk|laptop: The app you're trying to get up, it's not a rails app, right?
<nfk|laptop> of course it is
<pipework> 512, you'll want a single worker with unicorn.
<pipework> Maybe, maybe two.
<nfk|laptop> i have 3 right now
<pipework> nfk|laptop: How's the memory usage on that?
<nfk|laptop> but, thanks, i'll keep that in mind
<pipework> Is it your app?
s00pcan has joined #ruby
<nfk|laptop> i'm still trying to get it deployed via capistrano
<nfk|laptop> yes
sepp2k has joined #ruby
<pipework> nfk|laptop: Ah, so then you'll probably be able to monitor as you go. Things can kinda get big and wieldy. What's going on with your capistrano stuff?
n008f4g_ has quit [Ping timeout: 244 seconds]
<pipework> Got some logs you can gist up?
<nfk|laptop> i'm waiting for it to stop doing stuff
<nfk|laptop> we'll see then
Lomex has quit [Remote host closed the connection]
Bloomer has quit []
<nfk|laptop> it has printed some red text and some failed messages but it's going on
baweaver has joined #ruby
<nfk|laptop> ah, just failed
<nfk|laptop> Mysql2::Error: Access denied for user 'deploy'@'localhost' (using password: YES)
<nfk|laptop> weird
<nfk|laptop> should be working
<pipework> Do you have an environment variable set or the database.yml with a password?
<nfk|laptop> yes
<nfk|laptop> that is, the later
<nfk|laptop> err
<nfk|laptop> sorry
<nfk|laptop> former
<nfk|laptop> ENV["DB_PASSWORD"]
<nfk|laptop> weird, why is it defined in bash but not irb?
<pipework> nfk|laptop: I think it's supposed to be PGPASSWORD if you're going for the postgres environment variables.
konr has joined #ruby
<nfk|laptop> mariadb
<pipework> Oh, sorry.
<nfk|laptop> i'm already using capistrano and nginx for the first time in my life (successfully, anyway) and unicorn, too
postmodern has joined #ruby
<nfk|laptop> i thought i should not push my luck with yet another new software
JakFrist has joined #ruby
<pipework> nfk|laptop: We have neat things that help get things all jumpstarted quite often.
<pipework> Like, I'd suggest you to use passenger with nginx.
<nfk|laptop> the issue seems to be that $DB_PASSWORD is set in bash but not irb
<pipework> It's pretty simple and works whale with capistrano.
noService has joined #ruby
<nfk|laptop> pipework, thanks, i'll try it a bit later
<pipework> nfk|laptop: How do you set the variable?
<nfk|laptop> in ~/.profile
<pipework> Yeah, that won't get sourced with capistrano, iirc.
jackjackdripper has quit [Quit: Leaving.]
<nfk|laptop> but it's the environment it runs in
<nfk|laptop> since it logs in via git as that user
jackjackdripper has joined #ruby
<nfk|laptop> and HOME is defined
<nfk|laptop> is there some whitelist?
Pumukel has quit [Ping timeout: 250 seconds]
<nfk|laptop> pipework, i would have used pam authentication but debian being debian obviously is a few years too old for that
baweaver has quit [Ping timeout: 276 seconds]
malconis has quit [Read error: Connection reset by peer]
tagaulap has quit [Quit: Connection closed for inactivity]
dionysus69 has quit [Ping timeout: 276 seconds]
<nfk|laptop> and postgres docs did not make much sense regarding use of pam authentication other than adding some worrisome warning even though i had heard that postgres has had that feature for years
Madplatypus has joined #ruby
dionysus69 has joined #ruby
aegis3121 has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
mfb2 has quit [Remote host closed the connection]
tenderlove has joined #ruby
infra-red has joined #ruby
someish has quit [Quit: someish]
Puffball has quit [Read error: Connection reset by peer]
william3 has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 268 seconds]
Lomex has joined #ruby
mfb2 has joined #ruby
karapetyan has joined #ruby
mfb2 has quit [Remote host closed the connection]
patrick_star has quit [Quit: Leaving]
Puffball has joined #ruby
mfb2 has joined #ruby
yfeldblum has joined #ruby
CausaMortis has joined #ruby
mfb2 has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 252 seconds]
mfb2 has joined #ruby
<nfk|laptop> wtf, the current folder on server contains old database.yml?!!
bradleyprice has joined #ruby
tildes has quit [Ping timeout: 250 seconds]
wldcordeiro has quit [Read error: Connection reset by peer]
wldcordeiro has joined #ruby
sid_fules has joined #ruby
sid_fules has quit [Remote host closed the connection]
ferr has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
aegis3121 has joined #ruby
skweek has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
<nfk|laptop> i guess if deployment fails, it does not update the symlink or something
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
BtcBen has quit [Ping timeout: 276 seconds]
stupidystupid has joined #ruby
BtcBen has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
DynamicMetaFlow has joined #ruby
stupidystupid has quit [Client Quit]
ramfjord has quit [Ping timeout: 240 seconds]
mfb2 has quit [Remote host closed the connection]
staticfox has joined #ruby
malconis has joined #ruby
ReK2 has quit [Remote host closed the connection]
sid_fules has joined #ruby
Ebok has quit [Quit: This computer has gone to sleep]
<nfk|laptop> pipework, how do i set up a persistent database.yml? stackexchange implied i can just make a shared/config/database.yml but it seems that's not enough
Lomex has quit [Remote host closed the connection]
<pipework> nfk|laptop: That's how it works.
TheHodge has quit [Quit: Connection closed for inactivity]
<nfk|laptop> i have app/shared/config/database.yml that i copied from the latest version yet it running cap production deploy errors out with no database.yml error message
<nfk|laptop> since i also git mv'ed it to database.yml.sample
frem_ has joined #ruby
ramfjord has joined #ruby
madgen has quit [Ping timeout: 250 seconds]
gregf has quit [Quit: WeeChat 1.4]
joonty has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
mfb2 has joined #ruby
Lomex has joined #ruby
karapetyan has quit [Remote host closed the connection]
Scientz is now known as Scient
rgb-one has joined #ruby
<rgb-one> Hey
infra-re_ has joined #ruby
mg^^ is now known as mg^
mfb2 has quit [Remote host closed the connection]
<nfk|laptop> okay, that's it, i'm simply committing the DB password, who cares, if anyone gets that deep that they can even attempt to authenticate against the DB server, they probably have extensive access and are probably a single local exploit away from escalation to full root
tvw has quit [Remote host closed the connection]
bokayio has quit [Ping timeout: 276 seconds]
Synthbread has quit [Remote host closed the connection]
bokayio has joined #ruby
<rgb-one> I am using Middleman and running the server, but JQuery doesn't work. When I inspect a webpage in the browser the lines in the js file read //= require jquery etc. instead of actually requireing the jquery code
william3 has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
<rgb-one> Anyone know what's going on?
mfb2 has joined #ruby
karapetyan has joined #ruby
Synthead has joined #ruby
joonty has quit [Ping timeout: 252 seconds]
bradleyprice has joined #ruby
Scient_ is now known as Scient
stunder has quit [Ping timeout: 250 seconds]
<nfk|laptop> that's not jquery being broken, that's assets pipeline being broken
infra-red has quit [Ping timeout: 276 seconds]
<nfk|laptop> why, no idea
<rgb-one> hmm
<rgb-one> Ah well
<nfk|laptop> you are doing that in application.js, right?
<nfk|laptop> that's the entry point into JS pipeline as far as I know and the only one (afaik) where that magic works
<tubbo> nfk|laptop: #rubyonrails fwiw
<nfk|laptop> that channel is nearly as bad as #php
<tubbo> nfk|laptop: ask better questions
mdw has joined #ruby
pawnbox has quit [Remote host closed the connection]
Ebok has joined #ruby
<rgb-one> the name is app.js for my application nfk|laptop
<nfk|laptop> rgb-one, right, angular? you still need application.js where you do your //= require stuff
<nfk|laptop> that or you get to hack into rails assets pipeline
mfb2 has quit [Remote host closed the connection]
<rgb-one> so the name "application.js" is required?
<nfk|laptop> yes
yardenbar has joined #ruby
<rgb-one> Middleman initializes with app.js
<nfk|laptop> ah, no idea then
<rgb-one> maybe I should just include the jquery mobile file in a vendor directory
CausaMortis has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
mfb2 has joined #ruby
hxegon has joined #ruby
mfb2 has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
infra-red has joined #ruby
stunder has joined #ruby
nobitanobi has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
infra-re_ has quit [Ping timeout: 250 seconds]
skweek has quit [Ping timeout: 276 seconds]
mfb2 has joined #ruby
Guest10378 has quit [Quit: ¯\_(ツ)_/¯]
stunder has quit [Ping timeout: 240 seconds]
mfb2 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
paultreny has joined #ruby
paultreny is now known as Guest21156
Guest21156 has quit [Changing host]
Guest21156 has joined #ruby
mfb2 has joined #ruby
ramfjord has joined #ruby
Guest21156 has quit [Client Quit]
TheWhip has quit [Remote host closed the connection]
someish has joined #ruby
someish has quit [Client Quit]
brackson has joined #ruby
jhack has joined #ruby
mfb2 has quit [Ping timeout: 244 seconds]
madgen has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
poerror has joined #ruby
mfb2 has joined #ruby
gregf has joined #ruby
TheWhip has joined #ruby
Fabian has joined #ruby
stunder has joined #ruby
Fabian is now known as Guest23528
poerror has left #ruby [#ruby]
shayan has joined #ruby
R\w\C has joined #ruby
minimalism has joined #ruby
R\w\C has quit [Client Quit]
newb123 has joined #ruby
Guest23528 has quit [Client Quit]
baweaver has joined #ruby
kirun has joined #ruby
GodFather has joined #ruby
stunder has quit [Ping timeout: 260 seconds]
R\w\C has joined #ruby
dfockler has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
sid_fules has joined #ruby
bradleyprice has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
northrup_ has joined #ruby
northrup has quit [Ping timeout: 250 seconds]
<newb123> Hi, I'm new to ruby but have experience in other languages. I'm trying to convert a string to a symbol and compare it, but it fails to match afterwards. https://gist.github.com/anonymous/05a58e30aeaad957bd99398704c2e7a6
<newb123> When I try it out in irb "providers.find" seems to be able to find the provider.. but within the code itself it can't seem to match the symbol. any suggestions?
<Zarthus> print out the output of providers?
n008f4g_ has joined #ruby
<Zarthus> (and it wouldn't hurt to see box_provider either)
<Zarthus> ah, I see
<Zarthus> you made a typo :bhvye != :bhyve
<newb123> omg...
<Zarthus> (I totally missed you commenting the results of @logger.* statements)
<newb123> classic mistake
dionysus69 has joined #ruby
<Zarthus> sometimes all it takes is an extra pair of eyes
<newb123> well i guess that's why I'm a "newb"
<newb123> haha
<newb123> thanks a lot
DoubleMalt has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
nhhc has quit [Quit: Leaving]
bruno- has joined #ruby
R\w\C has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
stunder has joined #ruby
newb123 has quit [Quit: Leaving]
Ebok has quit [Quit: This computer has gone to sleep]
stannard has quit [Remote host closed the connection]
Ebok has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
nobitanobi has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 268 seconds]
moeabdol has quit [Ping timeout: 260 seconds]
stunder has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
karapetyan has quit [Remote host closed the connection]
northrup_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
stannard has joined #ruby
madgen has quit [Ping timeout: 260 seconds]
northrup has joined #ruby
northrup has quit [Client Quit]
TheWhip has quit [Remote host closed the connection]
northrup has joined #ruby
karapetyan has joined #ruby
TheWhip has joined #ruby
polishdub has quit [Quit: Leaving]
moeabdol has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
madgen has joined #ruby
DoubleMalt has joined #ruby
brackson has quit [Ping timeout: 268 seconds]
mikecmpbll has joined #ruby
mlakewood has joined #ruby
<mlakewood> Hi all, Does anyone know if you can compose an SQL String literal into an Arel Query?
joonty has joined #ruby
GinoMan2440_ has joined #ruby
TheWhip has quit [Ping timeout: 246 seconds]
shayan has quit [Quit: shayan]
r0b3rt has quit [Remote host closed the connection]
auxbuss has joined #ruby
r0b3rt has joined #ruby
GinoMan2440 has quit [Ping timeout: 240 seconds]
stannard has quit [Read error: Connection reset by peer]
bronson has joined #ruby
johnmilton has quit [Remote host closed the connection]
stunder has joined #ruby
nobitanobi has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
Dogmabase has joined #ruby
highbass has quit [Remote host closed the connection]
loincloth has joined #ruby
bradleyprice has quit [Remote host closed the connection]
MagePsycho_ has quit [Quit: MagePsycho_]
ta_ has quit [Remote host closed the connection]
jhack has quit [Ping timeout: 276 seconds]
bronson has quit [Ping timeout: 252 seconds]
davedev2_ has quit []
nobitanobi has quit [Remote host closed the connection]
jenrzzz has joined #ruby
MagePsycho_ has joined #ruby
stunder has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
stannard has joined #ruby
karapetyan has quit [Remote host closed the connection]
brackson has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
rkoller_ has joined #ruby
n008f4g_ has quit [Ping timeout: 250 seconds]
CausaMortis has joined #ruby
jaguarmagenta has joined #ruby
<jhass> puzzle of the day https://eval.in/556513
nando293921 has joined #ruby
cdg has joined #ruby
rkoller has quit [Ping timeout: 268 seconds]
Lomex has quit [Remote host closed the connection]
<smathy> Change to Time.now.to_s
<benzrf> jhass: works on MY end
Gasher has joined #ruby
<benzrf> oh wait
<benzrf> it works if i paste into pry, but not if i paste into ruby -
renderful has joined #ruby
<benzrf> wut
jaguarmagenta has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
<jhass> benzrf: well, let's add https://eval.in/556514 to the game
<smathy> pry forces the .to_s execution in order to display the value in your REPL.
x77686d has quit [Quit: x77686d]
<benzrf> wait
<benzrf> is it fixed once you to_s or something?
jhack has quit [Quit: jhack]
* smathy is talking to himself
<jhass> so Time delays fetching the local timezone until it's needed for something or what?
Xeago has quit [Remote host closed the connection]
DynamicMetaFlow has quit [Ping timeout: 276 seconds]
<smathy> Seems to be.
stunder has joined #ruby
<ramfjord> maybe memoizes the system timezone
Xeago has joined #ruby
lemur has joined #ruby
<jhass> rather unintuitive behavior IMO
David27 has joined #ruby
<ramfjord> pretty bad
<jhass> jruby gets it right
aegis3121 has quit [Ping timeout: 240 seconds]
<smathy> jhass, agreed, stinks.
<smathy> I can't imagine it's intentional, I can't think of a desirable use case for that late execution.
MagePsycho_ has quit [Quit: MagePsycho_]
<jhass> rbx shows MRI behavior
sid_fules has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
stunder has quit [Ping timeout: 276 seconds]
lemur has quit [Ping timeout: 276 seconds]
sid_fules has quit [Remote host closed the connection]
GinoMan2440 has joined #ruby
Dogmabase has left #ruby [#ruby]
neilnorthrop has joined #ruby
MagePsycho_ has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
neilnorthrop has quit [Client Quit]
aegis3121 has joined #ruby
GinoMan2440_ has quit [Ping timeout: 260 seconds]
william3 has quit [Remote host closed the connection]
stannard has quit [Remote host closed the connection]
mdw has quit [Quit: Sleeping Zzzzz]
synthroid has quit []
codecop has quit [Remote host closed the connection]
stannard has joined #ruby
auxbuss has quit [Quit: I'm gone.]
x77686d has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
rkazak has joined #ruby
GriffinHeart has joined #ruby
<Gasher> hello, I'm going to create a graph for parabola. can you recommend me a good library for easy graph creation?
carella has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
sid_fules has joined #ruby
bruno- has joined #ruby
GriffinHeart has quit [Ping timeout: 246 seconds]
bradleyprice has joined #ruby
mhoungbo has joined #ruby
MagePsycho_ has quit [Quit: MagePsycho_]
crdpink has joined #ruby
sid_fules has quit [Remote host closed the connection]
BrunoSaboia has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 244 seconds]
R\w\C has joined #ruby
ur5us has joined #ruby
biberu has quit []
bkxd has joined #ruby
R\w\C has quit [Client Quit]
BSaboia has quit [Ping timeout: 246 seconds]
rkazak has quit [Ping timeout: 250 seconds]
SilverKey has quit [Quit: Halted.]
wldcordeiro has quit [Ping timeout: 276 seconds]
krzkrz has quit [Quit: WeeChat 1.2]
GinoMan2440 has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
MagePsycho_ has joined #ruby
nanoz has quit [Ping timeout: 268 seconds]
madgen has joined #ruby
aegis3121 has quit [Ping timeout: 268 seconds]
sid_fules has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
hxegon is now known as hxegon_AFK
DoubleMalt has quit [Ping timeout: 246 seconds]
aegis3121 has joined #ruby
sid_fules has quit [Remote host closed the connection]
BSab has joined #ruby
sid_fules has joined #ruby
BSab has quit [Max SendQ exceeded]
Trynemjoel has quit [Ping timeout: 264 seconds]
sid_fules has quit [Remote host closed the connection]
hxegon_AFK is now known as hxegon
flashpoint9 has quit [Remote host closed the connection]
stunder has joined #ruby
joonty has joined #ruby
BSab has joined #ruby
BrunoSaboia has quit [Ping timeout: 246 seconds]
CausaMortis has quit [Ping timeout: 246 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
binaryplease1 has joined #ruby
eljimmy has joined #ruby
diegoaguilar has joined #ruby
ldnunes has quit [Quit: Leaving]
bradleyprice has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 250 seconds]
sid_fules has joined #ruby
stunder has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 252 seconds]
al2o3-cr has joined #ruby
w1lson has joined #ruby
presidentbeef has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
yfeldblum has joined #ruby
<nfk|laptop> alright, now i'm annoyed to no end, i removed a foreign_key that was messing things up and now i'm hitting some weirdness that might be a bug
binaryplease1 is now known as binaryplease
ChiefAlexander has quit [Remote host closed the connection]
sid_fules has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
symm-_ has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
infra-red has quit [Ping timeout: 244 seconds]
gnufied has quit [Quit: Leaving]
tekk has joined #ruby
alexherbo2 has quit [Ping timeout: 264 seconds]
nobitanobi has joined #ruby
MagePsycho_ has quit [Ping timeout: 250 seconds]
bkxd has quit [Ping timeout: 246 seconds]
presidentbeef has left #ruby [#ruby]
ramortegui has quit [Quit: Ex-Chat]
nobitanobi has quit [Remote host closed the connection]
bkxd has joined #ruby
aupadhye has quit [Remote host closed the connection]
thbounzer has joined #ruby
sadin has quit [Ping timeout: 252 seconds]
danielpclark has joined #ruby
MagePsycho_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
johnbat26 has quit [Remote host closed the connection]
<hxegon> How do I specify a contract with a nested array of strings? [[String]] doesn't seem to be working.
geek876 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
Puffball has quit [Remote host closed the connection]
<geek876> Hi, I have a string "2016-04-19 22:17:41,079000" I want to convert it into time using strftime. Any help please ? I am very new to ruby. Please note that I have 6 digits depicting Milliseconds, the last three can be ignored
thbounzer has quit [Remote host closed the connection]
alexherbo2 has joined #ruby
sadin has joined #ruby
Puffball has joined #ruby
jschoolcraft has quit [Quit: peace]
brackson has quit [Quit: Lost terminal]
[Butch] has quit [Quit: I'm out . . .]
<hxegon> geek876 what format do you want to convert it too?
<smathy> geek876, Time.parse
nofacade has quit [Ping timeout: 250 seconds]
Puffball has quit [Remote host closed the connection]
<geek876> hxegon, I want to convert it to date format
blackgoat has joined #ruby
<jhass> Time.strptime
<geek876> basically this is for elasticsearch. I am using fluentd and my log-file has got timestamp in this format so i want to convert it into time so i can sort it in elastic search
swills has joined #ruby
<smathy> >> Time.parse("2016-04-19 22:17:41,079000")
<ruby[bot]> smathy: # => undefined method `parse' for Time:Class (NoMethodError) ...check link for more (https://eval.in/556550)
<smathy> Heh, I forget !rails - sorry.
auxbuss has joined #ruby
wldcordeiro has joined #ruby
<jhass> >> require "time"; Time.strptime "2016-04-19 22:17:41,079000", "%F %T"
<ruby[bot]> jhass: # => 2016-04-19 22:17:41 +0000 (https://eval.in/556551)
<geek876> jhass: Thanks
kareeole_ has joined #ruby
<geek876> jhass: I will have 2016-04-19 22:17:41,079000 in a variable
<jhass> fun part is, it's a T and a . away from being a valid ISO8601 date
<jhass> >> require "time"; Time.iso8601 "2016-04-19 22:17:41.079000"
<smathy> Does that strptime get the subsecs there?
<ruby[bot]> jhass: # => invalid date: "2016-04-19 22:17:41.079000" (ArgumentError) ...check link for more (https://eval.in/556559)
<jhass> smathy: no, that'd need to add a %n or %p, let's see
<jhass> ah, %N
nobitanobi has joined #ruby
<jhass> >> require "time"; Time.strptime "2016-04-19 22:17:41,079000", "%F %T,%N"
<ruby[bot]> jhass: # => 2016-04-19 22:17:41 +0000 (https://eval.in/556560)
OTORelic2 has quit [Ping timeout: 260 seconds]
* smathy is so spoilt with Time.parse - hangs head
Guest_98762 has joined #ruby
<Guest_98762> Allah is doing
<jhass> thing is, it's a guess
kareeol__ has joined #ruby
<jhass> strptime doesn't have to guess
<Guest_98762> sun is not doing Allah is doing
bruno- has quit [Read error: Connection reset by peer]
<smathy> Sure, but with such an iso-ish string.
<adaedra> !spam Guest_98762
Guest_98762 was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
bruno- has joined #ruby
nobitanobi has quit [Remote host closed the connection]
kareeoleez has quit [Ping timeout: 260 seconds]
<adaedra> Praise the sun.
kareeoleez has joined #ruby
hoylemd has quit [Ping timeout: 250 seconds]
kareeole_ has quit [Ping timeout: 276 seconds]
peterhu_ has quit [Ping timeout: 250 seconds]
<hxegon> 420 praise it. Maybe lord Gwyn will gift me some better contracts.ruby docs :)
peterhu has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeol__ has quit [Ping timeout: 268 seconds]
johnmilton has joined #ruby
sid_fules has joined #ruby
ChiefAlexander has joined #ruby
kareeoleez has quit [Remote host closed the connection]
sid_fules has quit [Remote host closed the connection]
thbounzer has joined #ruby
hoylemd has joined #ruby
BtcBen has quit [Ping timeout: 276 seconds]
rgb-one has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<geek876> jhass: If i use this https://eval.in/556560, the milliseconds bit will always be zero i guess ?
Azure has joined #ruby
<hxegon> alright, it's not [[TypeHere]], it's ArrayOf[ArrayOf[TypeHere]], which seems a bit verbose to me, but whatever.
<Radar> hxegon: what are you on about
zeroDivisible has joined #ruby
<jhass> >> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T,%N").usec # geek876 nope
<ruby[bot]> jhass: # => 79000 (https://eval.in/556572)
<nfk|laptop> that's it, to hell with capistrano
<nfk|laptop> i have wasted like 10 hours on this
<jhass> >> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T").usec # geek876 with this one however
<hxegon> Radar I realized what contracts are, and that they are probably better than just putting a psuedo code type annotation next to functions :P
<ruby[bot]> jhass: # => 0 (https://eval.in/556573)
<Radar> right
<geek876> Thanks
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Exiting...]
sid_fules has joined #ruby
troulouliou_dev has joined #ruby
Spami has joined #ruby
<geek876> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T,%N").usec sorry about my ignorance but the .usec gives microseconds. I want the complete time with date and time. Essentially converting string to time here really
UserInNeed has joined #ruby
huyderman has quit [Ping timeout: 264 seconds]
Puffball has joined #ruby
theunraveler has quit []
<jhass> >> require "time"; Time.strptime("2016-04-19 22:17:41,079000", "%F %T,%N").class
<ruby[bot]> jhass: # => Time (https://eval.in/556576)
<jhass> &ri Time
bkxd has quit [Ping timeout: 276 seconds]
SilverKey has joined #ruby
joonty has joined #ruby
jackjackdripper1 has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
<geek876> thanks
MagePsycho_ has quit [Quit: MagePsycho_]
FastJack has quit [Remote host closed the connection]
nfk|laptop has quit [Quit: yawn]
jackjackdripper has quit [Ping timeout: 268 seconds]
callen92 has joined #ruby
freerobby has quit [Quit: Leaving.]
thbounzer has quit []
joonty has quit [Ping timeout: 268 seconds]
aegis3121 has quit [Ping timeout: 240 seconds]
ferr has quit [Quit: WeeChat 1.4]
Lomex has joined #ruby
BTRE has quit [Quit: Leaving]
TheMoonMaster has quit [Ping timeout: 268 seconds]
Caelum has quit [Ping timeout: 252 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
null__ has quit [Ping timeout: 268 seconds]
UserInNeed is now known as GrammarNazi
aufi has quit []
GrammarNazi is now known as jusrarandomguy
jusrarandomguy is now known as justarandomguy
justarandomguy is now known as randomguy
randomguy is now known as go_away
<geek876> jhass: Thanks. I am moving further with your help. Really appreciate. However, it trows this error now "failed to expand `%Q[#{ require 'time'; Time.strptime(time, "%F %T,%N") }]` error_class=TypeError error="no implicit conversion of Time into String""
<geek876> see my pastebin : pastebin.com/embed_js/DrUtQxAt, it is fluentd config but essentially doing ruby
<ruby[bot]> geek876: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
<jhass> you shouldn't do require "time"; inline
go_away is now known as InexpensiveCompu
<jhass> chances are it's already loaded in your environment anyway
<jhass> as for the error message, you pass a Time where a String is expected
null__ has joined #ruby
<geek876> Let me check
jaguarmagenta has joined #ruby
x77686d has quit [Quit: x77686d]
nando293921 has quit [Ping timeout: 250 seconds]
Caelum has joined #ruby
Oog has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
Ebok has quit [Quit: This computer has gone to sleep]
Lomex has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 244 seconds]
TheMoonMaster has joined #ruby
<geek876> sorry, still no joy. The error is gong now but " 2016-04-19 23:28:48,346000 " is getting converted to "2016-04-19 23:27:24 +0100"
<jhass> well, you embed it into a string using #{}, which calls Time#to_s
<jhass> so that's quite expected
aegis3121 has joined #ruby
Ebok has joined #ruby
s00pcan has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 250 seconds]
s00pcan has joined #ruby
aegis312_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
troulouliou_dev has quit [Quit: Leaving]
WaqasA has quit [Ping timeout: 276 seconds]
mhoungbo has quit [Quit: Quitte]
aegis3121 has quit [Ping timeout: 250 seconds]
<Oog> i would like something like coffeescript foo?.bar?.blah()
<Oog> where it only calls if foo exists etc and doesnt crash
<Oog> is there something?
<Oog> instead of foo.bar.blah if foo && foo.bar etc
yude has quit [Read error: Connection reset by peer]
yude has joined #ruby
Xiti has joined #ruby
Xiti has quit [Remote host closed the connection]
zenlot6 has quit [Ping timeout: 240 seconds]
<al2o3-cr> Oog: &.
<Oog> no way
<al2o3-cr> yes way
<Oog> omg
aegis312_ has quit [Ping timeout: 276 seconds]
zenlot6 has joined #ruby
<Oog> since when!?
<al2o3-cr> since man kind
<Oog> o&.asdfasd - SyntaxError: (irb):3: syntax error, unexpected '.'
<al2o3-cr> asdfasd isn't an object my friend
<Oog> oh wait
<Oog> foo=nil; foo&.blah - SyntaxError: (irb):7: syntax error, unexpected '.'
<Oog> i dont think this is it - in coffee script foo?.blah would only try to call blah if foo exists
<Oog> thats what i want
<al2o3-cr> blah isn't an object my friend
firstdayonthejob has quit [Ping timeout: 268 seconds]
<Oog> yes i know...
<smathy> ruby 2.3
<Oog> so &. is not what i want
flashpoint9 has joined #ruby
<Oog> smathy ah.. im using 2.2.2
<smathy> Oog, yeah, is why it's a syntax error.
<Oog> ok so not since mankind :)
<smathy> &. is precisely what you want, but only 2.3
ramfjord has joined #ruby
<smathy> Yeah, no idea when al2o3-cr's mankind began.
<al2o3-cr> me neither :P, and i should of asked version :(
workmad3 has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
* al2o3-cr is being silly
Regulati_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
mlakewood has quit [Quit: mlakewood]
rbennacer has joined #ruby
nisstyre has quit [Ping timeout: 250 seconds]
rkoller_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Oog> thanks!
Oog has quit []
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
SilverKey has quit [Quit: Halted.]
rbennace_ has joined #ruby
aibot has quit [Remote host closed the connection]
aibot has joined #ruby
tubuliferous has joined #ruby
BTRE has joined #ruby
dopie has quit [Quit: Lost terminal]
cpruitt has quit [Quit: cpruitt]
marr has quit [Ping timeout: 276 seconds]
ensyde has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
x77686d has joined #ruby
kirun has quit [Remote host closed the connection]
aibot has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
aibot has joined #ruby
baweaver has joined #ruby
johnmilton has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
symm-_ has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
aibot has quit [Remote host closed the connection]
geek876 has quit [Ping timeout: 250 seconds]
BtcBen has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
dopie has joined #ruby
Lomex has joined #ruby
sgambino has joined #ruby
bruno- has joined #ruby
Lomex has quit [Remote host closed the connection]
sid_fules has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
northrup_ has joined #ruby
saneax_AFK is now known as saneax
ocbtec has quit [Quit: leaving]
symm- has joined #ruby
northrup has quit [Ping timeout: 268 seconds]
sadin has quit [Quit: Leaving]
Xiti has joined #ruby
northrup_ has quit [Ping timeout: 244 seconds]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
ruby-lang578 has joined #ruby
Gasher has quit [Quit: Leaving]
Weavel has left #ruby [#ruby]
Weavel has joined #ruby
myntcake has quit [Ping timeout: 276 seconds]
snockerton has quit [Quit: Leaving.]
aeterne has quit [Read error: Connection reset by peer]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
bkxd has joined #ruby
aibot has joined #ruby
ruby-lang578 has quit [Ping timeout: 250 seconds]
Balzrael has quit [Remote host closed the connection]
davedev24 has joined #ruby
last_staff has quit [Quit: last_staff]
bkxd has quit [Ping timeout: 240 seconds]
joonty has joined #ruby
Puffball has quit [Remote host closed the connection]
Xeago has joined #ruby
Spami has joined #ruby
symm- has quit [Ping timeout: 268 seconds]
Puffball has joined #ruby
nisstyre has joined #ruby
mlakewood has joined #ruby
johnmilton has joined #ruby
Spami has quit [Client Quit]
PedramT has joined #ruby
joonty has quit [Ping timeout: 268 seconds]
Xeago has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
huyderman has joined #ruby
rbennace_ has quit [Remote host closed the connection]
zack6849 has quit [Ping timeout: 264 seconds]
PedramT has quit [Ping timeout: 276 seconds]
ChiefAlexander has quit [Remote host closed the connection]
jobewan has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
auxbuss has quit [Quit: I'm gone.]
idefine__ has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
idefine_ has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
Puffball has quit [Remote host closed the connection]
idefine_ has joined #ruby
Puffball has joined #ruby
idefine__ has quit [Ping timeout: 244 seconds]
baweaver has quit [Read error: Connection reset by peer]
lemur has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.4]
idefine has quit [Ping timeout: 240 seconds]
callen92 has quit [Quit: Leaving]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
madgen has quit [Ping timeout: 244 seconds]
idefine_ has quit [Ping timeout: 250 seconds]
rodfersou has quit [Quit: leaving]
rideh has quit [Ping timeout: 250 seconds]
epochwolf has quit [Ping timeout: 250 seconds]
epochwolf has joined #ruby
rideh has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
AustinMatherne has quit [Ping timeout: 276 seconds]
AustinMatherne has joined #ruby
DarkBushido has quit [Ping timeout: 244 seconds]
kam270 has quit [Ping timeout: 246 seconds]
staticfox has quit [Disconnected by services]
staticfox` has joined #ruby
staticfox` is now known as staticfox
jhack has quit [Quit: jhack]
Mendenhall has quit [Ping timeout: 250 seconds]
edulix has quit [Read error: Connection reset by peer]
ceej has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
eregon_ has quit [Read error: Connection reset by peer]
cybrside has quit [Ping timeout: 264 seconds]
Mendenhall has joined #ruby
ceej has joined #ruby
edulix has joined #ruby
cybrside has joined #ruby
Kamilion has quit [Quit: I am kamilion. But you knew that, didn't you.]
eregon has joined #ruby
DarkBushido has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
agent_white has quit [Quit: goingHome]
w1lson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 268 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
rkazak has joined #ruby
elifoster has joined #ruby
danielpclark has quit [Ping timeout: 246 seconds]
Kamilion has joined #ruby