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