apeiros changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
nb_bez___ has quit [Quit: Connection closed for inactivity]
chrishough has joined #ruby
baweaver has quit [Remote host closed the connection]
nfk has quit [Remote host closed the connection]
paradoja has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
Wolland has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
jonr22 has quit [Remote host closed the connection]
CustosLimen has quit [Remote host closed the connection]
<mikecmpbll> syntax error, unexpected tLPAREN_ARG
<mikecmpbll> weight_func = -> (i) { 1.fdiv(i+1)**1 }
<mikecmpbll> sup widaaaat :'(
<mikecmpbll> trying to get jruby working
Wolland_ has joined #ruby
senayar has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 252 seconds]
CustosLimen has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
jonr22 has joined #ruby
<jhass> uh, maybe it dislikes the space?
<jhass> ->(i) { or -> i {
<mikecmpbll> hm
<jhass> just guessing, don't touch jruby
Takle has joined #ruby
<mozzarella> maybe jruby is a…
<mozzarella> 3POIECE OF CRAP
<mikecmpbll> yeah, holy shit it's the space
<mikecmpbll> pah.
DerisiveLogic has quit [Ping timeout: 265 seconds]
rbennacer has quit [Remote host closed the connection]
<mikecmpbll> good call, sir.
<Radar> LOL
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<mikecmpbll> i need some epic threads up in here though.
<mikecmpbll> only reason :)
Wolland has quit [Ping timeout: 246 seconds]
<mozzarella> use rubinius, then
<mikecmpbll> ._.
jottr has quit [Ping timeout: 264 seconds]
<mozzarella> I should use rubinius but I'm too lazy
<mikecmpbll> i thought jruby was preferred tbh. didn't really do much research
AndyBotwin has joined #ruby
DerisiveLogic has joined #ruby
Yzguy_ has quit [Quit: I'm sleeping, go away.]
jonr22 has quit [Ping timeout: 264 seconds]
Takle has quit [Ping timeout: 264 seconds]
sevvie has joined #ruby
morenoh149 has joined #ruby
shadoi1 has quit [Quit: Leaving.]
senayar has joined #ruby
<morenoh149> how do I use the net::http module to perform a post request? https://gist.github.com/morenoh149/4316a955865e7eee82c5#file-log-sh-L31
serivich has quit [Ping timeout: 272 seconds]
<jhass> morenoh149: you seem to do so successfully, the remote just answers with a 404
nii2361 has quit [Ping timeout: 252 seconds]
<morenoh149> jhass: wow okay that clears up everything. just realized I only enabled get on the remote
serivich has joined #ruby
<morenoh149> jhass: so I'm a ruby noob. Could I place the requires only in the method that needs it?
<jhass> it's useless to do so
<jhass> so just don't
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> jruby is certainly preferred over rubinius. that's certain.
gccostabr has quit [Quit: See you later!]
bruno- has joined #ruby
<zenspider> mikecmpbll: neural net?
<mikecmpbll> neh nothing that exciting.
bronson has joined #ruby
zorak8 has quit [Ping timeout: 250 seconds]
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vulcan090 has quit []
<mikecmpbll> well, kinda actually. in an naive way.
bruno- has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 252 seconds]
sepp2k has quit [Quit: Konversation terminated!]
<morenoh149> post_form puts the form data as query params or in the http body? http://devdocs.io/ruby/net/http#method-c-post_form
ghostpl_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
rorra has joined #ruby
beginner has quit [Quit: Leaving]
<jhass> it should, form-urlencoded afaik
davedev2_ has quit [Ping timeout: 272 seconds]
einarj has quit [Remote host closed the connection]
juanpablo___ has joined #ruby
zorak8 has joined #ruby
Sid05 has joined #ruby
davedev24_ has joined #ruby
SOLDIERz_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
oo_ has joined #ruby
agrinb has joined #ruby
Yzguy_ has joined #ruby
mois3x has quit [Quit: mois3x]
tvon has joined #ruby
tvon has quit [Client Quit]
sngeth has joined #ruby
mois3x has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
mois3x has quit [Client Quit]
rbennacer has joined #ruby
SOLDIERz_ has quit [Ping timeout: 246 seconds]
<jhass> morenoh149: if you just can't figure out, http://mitmproxy.org/ can help a lot to verify what's going on
VBlizzard is now known as _blizzy_
juanpablo___ has quit [Ping timeout: 245 seconds]
<jhass> the reverse proxy mode is the easiest
silkfox has joined #ruby
bruno- has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<morenoh149> jhass: pretty sure the params are urlencoded and delivered in the body. The other possiblity is that they are delivered as query params. Still looking into it
<jhass> that would be unexpected, yeah
<jhass> urlencoded in the body it should be
agrinb has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
rbennacer has quit [Ping timeout: 244 seconds]
<morenoh149> yep that's how it works :)
deric_skibotn has joined #ruby
Ankhers has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
ki0 has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
duncannz has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
steve-la has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beef-wellington has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
silkfox has quit [Ping timeout: 265 seconds]
Wolland_ has quit []
justin_pdx has quit [Quit: justin_pdx]
zorak8 has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
zorak8 has joined #ruby
NoNMaDDeN has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has joined #ruby
Jiyuhen has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
<HOrangeJewce> Hi, can I call sort on Time objects?
<HOrangeJewce> so if I have a hash containing a set of key, value pairs where all the values are Time objects I'm wondering if I can call hash.values.sort
razieliyo has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
tvon has joined #ruby
<jhass> !try
<helpa> Why don't you try it and find out for yourself?
<HOrangeJewce> lol
baweaver has joined #ruby
<HOrangeJewce> wp
<jhass> >> [Time.now, Time.now].sort
<eval-in_> jhass => [2015-03-17 00:48:42 +0000, 2015-03-17 00:48:42 +0000] (https://eval.in/300942)
nii2361 has joined #ruby
<HOrangeJewce> thanks
<HOrangeJewce> sorry for the scrub question
<jhass> >> a = Time.now; sleep 1; [Time.now, a].sort
<eval-in_> jhass => [2015-03-17 00:49:17 +0000, 2015-03-17 00:49:18 +0000] (https://eval.in/300943)
<jhass> it even works as expected!
bim has joined #ruby
<havenwood> >> [Time.now, sleep(1), Time.now]
<eval-in_> havenwood => [2015-03-17 00:49:36 +0000, 1, 2015-03-17 00:49:37 +0000] (https://eval.in/300944)
<havenwood> oh yeah, sort >.>
<havenwood> >> [Time.now, sleep(1), Time.now].sort
<eval-in_> havenwood => comparison of Fixnum with Time failed (ArgumentError) ... (https://eval.in/300945)
<havenwood> hehe
<havenwood> >> [Time.now, Time.at(sleep(1)), Time.now]
jespada has quit [Ping timeout: 250 seconds]
<eval-in_> havenwood => [2015-03-17 00:50:27 +0000, 1970-01-01 00:00:01 +0000, 2015-03-17 00:50:28 +0000] (https://eval.in/300946)
sankaber has joined #ruby
jonr22 has joined #ruby
<havenwood> well, then I forget to sort, i give up
sevenseacat has joined #ruby
<jhass> good :D
<havenwood> the important thing is sleep in your Arrays
<HOrangeJewce> havenwood: Do you always sleep when in your Arrays?
<HOrangeJewce> :P
<havenwood> HOrangeJewce: Yeah, otherwise they go by too fast for the VM to properly remember the whitespace for homeopathic refactoring later.
serivich has quit [Ping timeout: 272 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
<HOrangeJewce> haha
<HOrangeJewce> "Boss, my code is too fast"
<HOrangeJewce> I want that on a tshirt
ziyadb has quit [Quit: Connection closed for inactivity]
Zai00 has quit [Quit: Zai00]
DEA7TH has quit [Ping timeout: 240 seconds]
Yzguy_ has quit [Quit: I'm sleeping, go away.]
bim has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
senayar has quit []
marr has quit [Ping timeout: 244 seconds]
<HOrangeJewce> lolwut
kerframil has joined #ruby
<HOrangeJewce> i don't even
<havenwood> HOrangeJewce: That's how programming works. Like try `gem list --local` versus `gem lis --loc` or a fully diluted `gem li -l`.
<havenwood> They just run faster the more you dilute them.
Hijiri has joined #ruby
<HOrangeJewce> lol
<HOrangeJewce> Why not just write your code in Whitespace
<havenwood> HOrangeJewce: That's too diluted, it gets too potent.
kblake has joined #ruby
<HOrangeJewce> haha
felixjet__ has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
graydot has joined #ruby
n80 has quit [Quit: n80]
havenn has joined #ruby
oo_ has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
tkuchiki has joined #ruby
oo_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
reinaldob has quit [Remote host closed the connection]
kblake has quit [Ping timeout: 250 seconds]
jerematic has joined #ruby
bricker has quit [Quit: leaving]
steve-la has quit [Quit: Lingo: www.lingoirc.com]
ptrrr has quit [Ping timeout: 264 seconds]
Jiyuhen has joined #ruby
Hobogrammer has joined #ruby
willharrison has joined #ruby
Yzguy_ has joined #ruby
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
iteratorP has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
narcan has joined #ruby
riotjones has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
sngeth_ has joined #ruby
revoohc has joined #ruby
jespada has joined #ruby
havenwood has quit []
baroquebobcat has joined #ruby
juanpaucar has joined #ruby
nfk has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
amclain has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
Mia has quit [Ping timeout: 244 seconds]
joris974 has joined #ruby
Sawbones has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 255 seconds]
Yzguy_ has quit [Quit: I'm sleeping, go away.]
Joufflu has joined #ruby
Sawbones has joined #ruby
krisquigley has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
adriancb has quit [Remote host closed the connection]
Rephiax has joined #ruby
adriancb has joined #ruby
Sawbones has quit [Remote host closed the connection]
agrinb has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
krisquigley has quit [Ping timeout: 245 seconds]
Vile` has quit [Ping timeout: 255 seconds]
HOrangeJewce has quit [Quit: Leaving.]
yqt has quit [Ping timeout: 246 seconds]
jokester has quit [Quit: recharge]
sankaber has joined #ruby
jokester has joined #ruby
casadei has joined #ruby
jeramysingleton has joined #ruby
<jeramysingleton> good evening guys
ghr has joined #ruby
jxpx777 has joined #ruby
gaboesquivel has joined #ruby
nateberkopec has quit [Quit: Leaving...]
bruno- has quit [Ping timeout: 255 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
jeramysingleton is now known as jeramy
kblake has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
blackmesa has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
iliketurtles has quit [Quit: Textual IRC Client: www.textualapp.com]
Vile` has joined #ruby
Wolland has quit [Client Quit]
Joufflu has quit [Read error: Connection reset by peer]
sea_local has quit []
davidhq has joined #ruby
kblake has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
nii2361 has quit [Ping timeout: 265 seconds]
towski_ has quit [Remote host closed the connection]
nii2361 has joined #ruby
robustus has joined #ruby
havenwood has joined #ruby
kirun has quit [Quit: Client exiting]
milesmatthias has joined #ruby
digitalcake has joined #ruby
Joufflu has joined #ruby
adriancb_ has joined #ruby
nilobject has quit [Quit: nilobject]
apeiros has quit [Ping timeout: 265 seconds]
vivekananda has joined #ruby
apeiros has joined #ruby
lucianosousa_ has joined #ruby
apeiros_ has joined #ruby
adriancb has quit [Ping timeout: 272 seconds]
lucianosousa has quit [Ping timeout: 245 seconds]
lucianosousa_ is now known as lucianosousa
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
taiansu has joined #ruby
duper has joined #ruby
GnuYawk has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
dorei has quit []
reinaldob has joined #ruby
zachrab has quit [Ping timeout: 264 seconds]
meschi has quit [Ping timeout: 244 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
revoohc has quit [Quit: revoohc]
hmsimha has quit [Read error: Connection reset by peer]
jxpx777 has quit [Quit: Leaving...]
hmsimha has joined #ruby
Cache_Money has joined #ruby
reinaldob has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 245 seconds]
HOrangeJewce has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
Rephiax has quit [Read error: Connection reset by peer]
iamninja has quit [Ping timeout: 246 seconds]
Rephiax has joined #ruby
_cake has joined #ruby
juanpablo___ has joined #ruby
iamninja has joined #ruby
pork_clips has quit [Ping timeout: 250 seconds]
markholmes has joined #ruby
Crazy_Atheist has joined #ruby
juanpablo___ has quit [Ping timeout: 252 seconds]
Sawbones has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Ping timeout: 252 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jenrzzz has quit [Ping timeout: 264 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
davidhq has joined #ruby
Sawbones has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucianosousa has quit [Quit: lucianosousa]
mikepack has joined #ruby
dseitz has joined #ruby
MrSamuel has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Hijiri has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby
jxpx777 has joined #ruby
hmsimha has quit [Read error: Connection reset by peer]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Hijiri has joined #ruby
hmsimha has joined #ruby
mikepack has quit [Ping timeout: 264 seconds]
Sawbones has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 240 seconds]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pontiki has joined #ruby
Ankhers has quit [Ping timeout: 245 seconds]
ponga has quit [Quit: Leaving...]
baweaver has quit [Remote host closed the connection]
CMAXW_ has quit []
ponga has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livingstn has quit [Ping timeout: 240 seconds]
Mia has joined #ruby
Mia has joined #ruby
jxpx777 has quit [Quit: Leaving...]
jeramy has quit [Quit: Peace out!]
drocsid has quit [Quit: brb...]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has joined #ruby
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
adriancb_ has quit [Remote host closed the connection]
fuzzyhorns2 has quit [Ping timeout: 272 seconds]
riotjone_ has joined #ruby
willharrison has joined #ruby
digitalcake has quit [Quit: Leaving.]
echevemaster has quit [Quit: WeeChat 1.1.1]
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
juanpaucar has joined #ruby
Joufflu has joined #ruby
sevvie has quit [Ping timeout: 245 seconds]
_688as has joined #ruby
_688as has left #ruby [#ruby]
amystephen has quit [Quit: amystephen]
riotjone_ has quit [Ping timeout: 256 seconds]
sevvie has joined #ruby
Nahra has quit [Remote host closed the connection]
bigmac has quit [Ping timeout: 246 seconds]
bigmac has joined #ruby
jxpx777 has joined #ruby
Ankhers has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
Lucky__ has joined #ruby
sankaber has joined #ruby
acl_ has joined #ruby
tubuliferous has joined #ruby
krisquigley has joined #ruby
juanpablo___ has joined #ruby
bigmac has quit [Ping timeout: 255 seconds]
bigmac has joined #ruby
stylo_ has joined #ruby
gr33n7007h has quit [Quit: WeeChat 0.3.8]
stylo has quit [Ping timeout: 245 seconds]
Ankhers has quit [Ping timeout: 252 seconds]
tubuliferous has quit [Ping timeout: 246 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
juanpablo___ has quit [Ping timeout: 256 seconds]
sngeth_ has quit [Ping timeout: 250 seconds]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
digitalextremist has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
oo_ has quit [Remote host closed the connection]
dwn has joined #ruby
<dwn> hey #ruby
braincrash has joined #ruby
<dwn> if I do "hello #{userinput}"
<dwn> where userinput is arbitrary user input
<dwn> does that put me at risk of the issue where a user could create symbols and peg my memory?
<dwn> brakeman says it does
ghostpl_ has joined #ruby
beef-wellington has joined #ruby
<hoelzro> dwn: if you're just interpolating the variable into a string, I think that should be ok
lucianosousa has joined #ruby
<hoelzro> unless you're creating a symbol with that string, that is!
<hoelzro> or eval'ing it, or something dangerous
oo_ has joined #ruby
<dwn> hmm well
<dwn> I mean
braincras has quit [Ping timeout: 244 seconds]
<dwn> puts "Hello: #{userinput}"
<dwn> like
<dwn> the issue is
<dwn> does string interpolation try to convert to a symbol
<dwn> that's this specific issue
rbennacer has quit [Ping timeout: 272 seconds]
<dwn> because if I can call that line and create 10000000 different symbols, I've got DoS on your application
graydot has joined #ruby
<hoelzro> I don't *think* it does
<hoelzro> right
graydot has quit [Client Quit]
<dwn> right, I don't think it does either, but well, brakeman does
<hoelzro> as long as you don't to_sym that string
jonr22 has quit [Remote host closed the connection]
<dwn> well, right
<hoelzro> I'm not a Ruby expert, so I can't say for sure
yfeldblum has joined #ruby
<hoelzro> but I think interpolating by itself is ok
<havenwood> even if you do #to_sym it it'll be a mortal Symbol that's GCable in 2.2+
<hoelzro> havenwood: ah, thanks for pointing that out
beef-wellington has quit [Ping timeout: 256 seconds]
ghostpl_ has quit [Ping timeout: 256 seconds]
<dwn> ah, that's good
<dwn> stuck on older ver for this app tho
ghr has joined #ruby
oo_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
crdpink has joined #ruby
jxpx777 has quit [Quit: Leaving...]
crdpink2 has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 245 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
MrSamuel has quit [Quit: MrSamuel]
MyMind has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
Pisuke has joined #ruby
gr33n7007h has joined #ruby
Sawbones has joined #ruby
markholmes has joined #ruby
chrishough has joined #ruby
Sid05 has quit [Quit: Sid05]
jordsmi has quit [Quit: Connection closed for inactivity]
gaboesquivel has quit [Remote host closed the connection]
zachrab has joined #ruby
jespada has quit [Ping timeout: 256 seconds]
sngeth has quit [Ping timeout: 240 seconds]
ptrrr has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
jerematic has quit []
claptor has joined #ruby
astrobunny has joined #ruby
DerisiveLogic has joined #ruby
ptrrr has quit [Ping timeout: 264 seconds]
noobda has joined #ruby
<noobda> hey all, how do I select a programming language? (php, ruby, python, java, JS)!!!!!!!!!! so many of them!!!
<noobda> I am good with C++ and a bit of Java
<sevenseacat> for what?
<noobda> I want to make a web app
Rephiax__ has joined #ruby
automachin has joined #ruby
RegulationD has joined #ruby
<automachin> whats the difference between x.nil? and x == nil? my code only works for thee == comparison
<automachin> x.nil? and x == nil
Rephiax has quit [Ping timeout: 252 seconds]
<noobda> sevenseacat: I want to make a web app but I am unable to decide on which language to select for it :(
<sevenseacat> can understand decision paralysis
<sevenseacat> do a little research on each of them, and see which one looks best
<sevenseacat> start with it, and if you odnt like it, revisit that choice
<sevenseacat> obviously we're a bit biased towards ruby here
willharrison has joined #ruby
sngeth has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
<noobda> okay I see
adriancb has joined #ruby
noobda has quit [Quit: Page closed]
justin_pdx has joined #ruby
braincrash has quit [Quit: bye bye]
sngeth has quit [Ping timeout: 256 seconds]
MatthewsFace has joined #ruby
taiansu has quit [Remote host closed the connection]
craigp has joined #ruby
hmsimha has quit [Read error: Connection reset by peer]
ismaelga has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 256 seconds]
<triangles3> Is there a built-in Ruby method to restrict a string to ASCII characters?
techietrash has quit [Quit: Bye! <(^_^<)]
<triangles3> As in, if the string has non-ASCII characters, return a version with them removed
hmsimha has joined #ruby
braincrash has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
Zamyatin has joined #ruby
bim has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
zorak8 has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
Zamyatin has joined #ruby
<pontiki> if it's your first web app, make the same app in *all* the choices
<pontiki> then decide
bim has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
hmsimha has quit [Read error: Connection reset by peer]
porfa has quit [Remote host closed the connection]
hmsimha has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> too radical, hm?
tmtwd has joined #ruby
brb3 has quit [Quit: ZZZzzz…]
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Megtastique has quit []
taiansu has joined #ruby
arescorpio has quit [Excess Flood]
pdoherty has joined #ruby
adamjleonard has joined #ruby
Sawbones has quit [Remote host closed the connection]
pontiki has quit [Quit: good night]
pdoherty has quit [Client Quit]
lemur has joined #ruby
beef-wellington has joined #ruby
gokul has joined #ruby
triangles2 has joined #ruby
techsethi has joined #ruby
beef-wellington has quit [Ping timeout: 265 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
tjohnson has joined #ruby
triangles3 has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
oo_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jwaldrip_ has joined #ruby
Azure has quit [Ping timeout: 245 seconds]
jwaldrip__ has joined #ruby
<jwaldrip__> hello
<jwaldrip_> [jwaldrip] Hi!
lucianosousa has quit [Quit: lucianosousa]
oo_ has quit [Ping timeout: 252 seconds]
edwardly has quit [Quit: ??????????]
oo_ has joined #ruby
jwaldrip__ is now known as ruby-lang-slack
psy_ has quit [Remote host closed the connection]
ruby-lang-slack has quit [Quit: Lingo: www.lingoirc.com]
taiansu has quit [Remote host closed the connection]
<willharrison> anybody see that tdd video series that was on hn the other day?
<willharrison> meant to watch it and can't remember what it was called
taiansu has joined #ruby
crdpink2 has joined #ruby
hmsimha has quit [Read error: Connection reset by peer]
crdpink has quit [Ping timeout: 265 seconds]
hmsimha has joined #ruby
automachin has quit [Ping timeout: 246 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
jwaldrip_ has left #ruby [#ruby]
taiansu_ has joined #ruby
taiansu has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
VBlizzard has joined #ruby
ruby-lang-slack_ has joined #ruby
Hirzu has joined #ruby
reinaldob has joined #ruby
juanpaucar has joined #ruby
_blizzy_ has quit [Ping timeout: 252 seconds]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
<ruby-lang-slack_> [jwaldrip] <@U040R00TQ|jwaldrip> archived the channel (w/ 1 member)
duncannz has joined #ruby
ruby-lang-slack_ has left #ruby [#ruby]
reinaldob has quit [Ping timeout: 250 seconds]
duncannz has quit [Max SendQ exceeded]
juanpaucar has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
Joufflu has quit [Ping timeout: 256 seconds]
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
aganov has joined #ruby
sevvie has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
davedev24_ has quit [Ping timeout: 245 seconds]
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
triangles3 has joined #ruby
krisquigley has joined #ruby
davedev24_ has joined #ruby
ev_ has joined #ruby
Sawbones has joined #ruby
taiansu_ has quit []
triangles2 has quit [Ping timeout: 246 seconds]
Synthbread has joined #ruby
Sawbones has quit [Client Quit]
Hirzu has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 240 seconds]
iamninja has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
juanpablo___ has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
hakunin has quit [Ping timeout: 252 seconds]
justin_pdx has quit [Quit: justin_pdx]
triangles has joined #ruby
duncannz has quit [Ping timeout: 265 seconds]
milesmatthias has quit [Remote host closed the connection]
triangles3 has quit [Ping timeout: 272 seconds]
milesmatthias has joined #ruby
Sawbones has joined #ruby
justin_pdx has joined #ruby
AndyBotwin has quit [Quit: Leaving]
milesmatthias has quit [Ping timeout: 255 seconds]
pentanol has joined #ruby
casadei has joined #ruby
<pentanol> hi there,
bronson has joined #ruby
<pentanol> how can I install specifyed gem in bundler?
<pentanol> bundle exec gem install rails --version '= 3.2.13'
<pentanol> Could not find rails-4.1.1 in any of the sources
krz has joined #ruby
bronson has quit [Remote host closed the connection]
<pentanol> but I already uninstalled rails and want install 3.2.13 version
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
a5i has quit [Quit: Connection closed for inactivity]
jonr22 has joined #ruby
GnuYawk has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
justin_pdx has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
IrishGringo has joined #ruby
craigp has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
psy_ has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
psy_ has quit [Max SendQ exceeded]
hvxgr has quit [Ping timeout: 245 seconds]
duncannz has joined #ruby
psy_ has joined #ruby
astrobunny has quit [Ping timeout: 256 seconds]
avahey has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
oo_ has quit [Remote host closed the connection]
justin_pdx has joined #ruby
astrobunny has joined #ruby
oo_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
ponga has quit [Quit: Leaving...]
techsethi has quit [Quit: techsethi]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
ghr has joined #ruby
<sevenseacat> `gem install` doesnt require bundler
<sevenseacat> you also want `gem install rails -v 3.2.13`, though i'd ask why you're installing such an old version
arup_r has quit [Remote host closed the connection]
acl_ has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
ghr has quit [Ping timeout: 252 seconds]
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
Riking has joined #ruby
krz has quit [Ping timeout: 255 seconds]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
ramfjord has joined #ruby
varunwachaspati has joined #ruby
<Radar> maybe he found a not-so-old copy of the codebase I'm working on atm
ponga has joined #ruby
Sawbones has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
<varunwachaspati> Can anyone kindly suggest a ruby gem related to parsing of open document spreadsheet
<Radar> I kindly recommend https://rubygems.org/gems/spreadsheet
<sevenseacat> Radar: how old's yours?
<Radar> sevenseacat: current master Gemfile says rails ~> 3.2.21
<sevenseacat> yeah same as my projects
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar> Which to be fair is only < 1 year old
Olipro has quit [Ping timeout: 272 seconds]
<Radar> Buuuut 3.2 was first released > 3 years ago :P
<Radar> 3 years of maintenance for one version of Rails is pretty good
krz has joined #ruby
<varunwachaspati> Radar: Spreadsheet supports only Excel spreadsheets only, not open document spreadsheet
<Radar> varunwachaspati: !g open document spreadsheet gem
Olipro has joined #ruby
<Radar> Although that might onlyl be to create them, not to read
amclain has quit [Quit: Leaving]
Hijiri has quit [Ping timeout: 272 seconds]
<varunwachaspati> Radar: https://rubygems.org/gems/rods, came along this but have trouble using this
nii2361 has quit [Ping timeout: 246 seconds]
Hijiri has joined #ruby
markholmes has joined #ruby
pcboy_ has joined #ruby
Joufflu has joined #ruby
Channel6 has quit [Quit: Leaving]
anaeem1_ has joined #ruby
nii2361 has joined #ruby
IrishGringo has quit [Ping timeout: 256 seconds]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hvxgr has joined #ruby
Filete has joined #ruby
User458764 has joined #ruby
RegulationD has joined #ruby
Rephiax__ has quit []
rikai has joined #ruby
Morkel has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
triangles2 has joined #ruby
kerframil has quit [Quit: Leaving]
triangles has quit [Ping timeout: 244 seconds]
krz has quit [Ping timeout: 256 seconds]
Hirzu has joined #ruby
justin_pdx has quit [Ping timeout: 272 seconds]
tobago has joined #ruby
bronson has quit [Remote host closed the connection]
Hirzu has quit [Ping timeout: 252 seconds]
Hirzu has joined #ruby
triangles3 has joined #ruby
bruno- has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
arup_r has joined #ruby
nii2361 has quit [Ping timeout: 272 seconds]
psy_ has quit [Quit: Leaving]
triangles2 has quit [Ping timeout: 264 seconds]
felixjet has joined #ruby
Rephiax has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
beef-wellington has joined #ruby
nii2361 has joined #ruby
sandelius has joined #ruby
riotjone_ has joined #ruby
vivekananda has quit [Ping timeout: 244 seconds]
elaptics is now known as elaptics_away
milesmatthias has joined #ruby
sigurding has joined #ruby
varunwachaspati has quit [Ping timeout: 252 seconds]
beef-wellington has quit [Ping timeout: 252 seconds]
lele is now known as Guest24
<shevy> you guys are so into rails
NoNMaDDeN has quit [Remote host closed the connection]
<Nilium> http://monodraw.helftone.com ← I'm into shoving diagrams into my comments now.
milesmatthias has quit [Ping timeout: 252 seconds]
<sevenseacat> well some of us do work with rails for a living
oo_ has quit [Remote host closed the connection]
<Nilium> I mostly work with Go and node.js for a living now.
hanmac1 has joined #ruby
oo_ has joined #ruby
<sevenseacat> i'd like to play with new toys
Spami has joined #ruby
krz has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
martinbmadsen has quit [Ping timeout: 250 seconds]
iamninja has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
<shevy> mice!
<shevy> is that you drawing ascii art
zorak8 has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
<Nilium> It's monodraw drawing it for me.
<shevy> hmm
codecop has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
KramerC has quit [Ping timeout: 264 seconds]
relix has joined #ruby
ghr has quit [Ping timeout: 246 seconds]
KramerC has joined #ruby
echevemaster has quit [Remote host closed the connection]
iamninja has joined #ruby
iamninja has quit [Client Quit]
juanpaucar has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
lulzmachine has joined #ruby
sngeth has joined #ruby
krz has joined #ruby
hmsimha has quit [Read error: Connection reset by peer]
CorySimmons has joined #ruby
hmsimha has joined #ruby
apeiros__ has joined #ruby
apeiros_ has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
juanpaucar has quit [Ping timeout: 244 seconds]
markholmes has quit [Quit: So it goes.]
sngeth has quit [Ping timeout: 246 seconds]
hmsimha has quit [Read error: Connection reset by peer]
triangles has joined #ruby
hmsimha has joined #ruby
tubuliferous has joined #ruby
triangles3 has quit [Ping timeout: 252 seconds]
juanpablo___ has joined #ruby
krisquigley has joined #ruby
adriancb has joined #ruby
hakunin has joined #ruby
The_Phoenix has joined #ruby
apeiros__ has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 255 seconds]
krisquigley has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
craigp has joined #ruby
tagrudev has joined #ruby
adriancb has quit [Ping timeout: 256 seconds]
IrishGringo has joined #ruby
yfeldblum has joined #ruby
agrinb has quit [Remote host closed the connection]
apeiros_ has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby
duncannz has quit [Remote host closed the connection]
wicope has joined #ruby
sinkensabe has joined #ruby
SOLDIERz_ has joined #ruby
codegate has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
armyriad has quit [Ping timeout: 252 seconds]
CorySimmons has quit [Quit: Bye!]
arup_r has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 272 seconds]
ismaelga has joined #ruby
neanderslob has quit [Remote host closed the connection]
bronson has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
arup_r has joined #ruby
lemur has quit [Remote host closed the connection]
neanderslob has joined #ruby
yfeldblu_ has joined #ruby
jenrzzz has joined #ruby
ptrrr has joined #ruby
ismaelga has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 246 seconds]
starless has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 256 seconds]
narcan has joined #ruby
SouL_ has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
triangles2 has joined #ruby
<stoddart> hi everybody
stoddart has left #ruby [#ruby]
anti-freeze has joined #ruby
triangles has quit [Ping timeout: 246 seconds]
Pisuke has quit [Read error: Connection reset by peer]
anarang has joined #ruby
bal has joined #ruby
neanderslob has quit [Remote host closed the connection]
<certainty> moin
emilkarl has joined #ruby
neanderslob has joined #ruby
emilkarl has quit [Client Quit]
Dakuan has joined #ruby
<shevy> code code code
sinkensabe has quit [Remote host closed the connection]
<certainty> i wish i could
sinkensabe has joined #ruby
Willd has left #ruby [#ruby]
Hirzu_ has joined #ruby
bronson has quit [Remote host closed the connection]
<flughafen> sup guys
oo_ has quit [Remote host closed the connection]
agrinb has joined #ruby
wottam has joined #ruby
wottam has quit [Client Quit]
IrishGringo has quit [Ping timeout: 265 seconds]
triangles3 has joined #ruby
foooobear has joined #ruby
brandly has joined #ruby
<certainty> yow flughafen
<flughafen> cowabunga dudes
ramfjord has joined #ruby
Guest24 is now known as lele
Macaveli has joined #ruby
Hirzu has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
<certainty> damn looking at my agenda doesn't make me happy
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
triangles2 has quit [Ping timeout: 246 seconds]
krz has quit [Ping timeout: 245 seconds]
MyMind has joined #ruby
oo_ has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
craigp has quit [Remote host closed the connection]
pentanol has quit [Quit: leaving]
stylo has joined #ruby
<shevy> certainty quit man
stylo_ has quit [Ping timeout: 240 seconds]
<certainty> shevy: well i probably will some day
ghr has quit [Ping timeout: 252 seconds]
<shevy> but with drama
<shevy> eat some onions so you have tears in your eyes before talking
hs366 has joined #ruby
craigp has joined #ruby
<certainty> shevy: hah
emilkarl has joined #ruby
* flughafen is going to be writing a lot more python
* certainty wants to be writing alot more haskell, but i wont. That makes me sad
armyriad has joined #ruby
* flughafen thinks it's funny you mentioned haskell, as I discovered this weekend how much cabal sucks
<certainty> flughafen: heh, cabal hell
tchebb has quit [Ping timeout: 255 seconds]
<flughafen> certainty: i use xmonad
<certainty> on nixos haskell gets more fun
amundj has joined #ruby
<certainty> flughafen: me too
tchebb has joined #ruby
<flughafen> but due to cabal hell i'll be switching to i3
bim has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
<certainty> flughafen: i've never had problems with xmonad i must admit. I don't build it myself though
yfeldblu_ has joined #ruby
Dakuan has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
<flughafen> certainty: well, you have to build it yourself unless you're not using any kind of config file?
hmsimha has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
hmsimha has joined #ruby
epistrephein has joined #ruby
<certainty> flughafen: i meant i don't build the dependencies with cabal. I compile my xmonad conf and use the xmonad components within it of course. I don't manage that with cabal. i just use xmonad --recompile if i change things
<flughafen> ah
<flughafen> right
<flughafen> so do i, but i still manged the dependencies with cabal
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
<flughafen> i think it's changed a little bit but previously the opensuse xmonad/haskel repos were weird, and out of date
bim has quit [Ping timeout: 245 seconds]
<flughafen> so i used cabal which worked fine to first install things
havenwood has quit [Remote host closed the connection]
relix has joined #ruby
<flughafen> but all of a sudden i can't --recompile (i haven't touched cabal since I installed it)
<flughafen> then i tried to update it so i could do it, and now it's in such a crappy place i'm going to give up on it
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty> flughafen: hmm that's a shame. you should just fix it :)
<certainty> how long have you been using it?
<flughafen> 3-4 yhears
RegulationD has quit [Ping timeout: 256 seconds]
<flughafen> at work on my desktop
<flughafen> and 2 years on my laptop i guess
<certainty> nicely themed
<sevenseacat> so dark
gaboesquivel has quit [Ping timeout: 256 seconds]
<flughafen> holy crap can you turn that music off
anti-freeze has quit [Quit: Leaving]
<certainty> which music?
<certainty> hah your db_charquery looks funny. I mean the comments do
<certainty> function: db_charquery purpose: do pgsql query
<flughafen> hehe, it's not mine. i was just looking at it, i did get to delete it to
<flughafen> oh
<flughafen> the c code...
<flughafen> the ruby code no
<certainty> yeah the C code
<flughafen> dont' judge me
<certainty> also that it returns a muilti-dimensional char array. where it is declared to return an int :)
<certainty> i don't
brandly has quit [Remote host closed the connection]
<certainty> i don't know the codebase, nor the conventions
<certainty> at least i didn't mean to judge you
ptrrr has quit [Quit: ptrrr]
<certainty> flughafen: do you mind to share your xmonad.conf?
<flughafen> it doesn't return anything aside from 0 or -1
<certainty> flughafen: yeah i know, yet the comment says it does return a multi-dimensional char array
<certainty> thanks a bunch
<flughafen> you're welcome a little
<certainty> oh nice there is a contracts gem
lyuben_ has joined #ruby
<certainty> probably as good as we can get with the way ruby is typed
craigp has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
rdark has joined #ruby
<shevy> sevenseacat cats can see in the dark!
<flughafen> my un-focused windows dim
<shevy> actually I tried white background too
<shevy> but my eyes seem to have it easier with a dark background
beef-wellington has joined #ruby
<flughafen> but, i guess the saying goes once you go black... you save on energy costs.
<shevy> lol
<shevy> you save even more without a computer
craigp has joined #ruby
<ponga> shevy: i also find dark background way more comfortable for my eyes, its universal?
jeromelanteri has quit [Ping timeout: 252 seconds]
<ponga> i hate websites with white background
lulzmachine has quit [Quit: lulzmachine]
blackmesa has joined #ruby
apeiros_ has joined #ruby
<certainty> dark backgrounds are definitely better for your eyes if you happen to look at them alot
<gr33n7007h> flughafen: whats that font in vim?
ramfjord has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 255 seconds]
<flughafen> ummmmmm
craigp has quit [Ping timeout: 252 seconds]
<flughafen> it's either envycoder, terminux, or dejavu, or montecarlo
<certainty> did you try source code pro?
NoNMaDDeN has joined #ruby
martinbmadsen has joined #ruby
elfuego has quit [Quit: elfuego]
<flughafen> no
rhg135 is now known as rhg135|zzz
<flughafen> do you use it/
ki0 has joined #ruby
ki0_ has joined #ruby
einarj has joined #ruby
<gr33n7007h> flughafen: cheers, it was terminuz
<flughafen> terminus*
<flughafen> yeah
<certainty> flughafen: yes. i'm happy with it. probably the best font i've used so far
martinbmadsen has quit [Ping timeout: 255 seconds]
<flughafen> it's in the opensuse repo weirdly
NoNMaDDeN has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ki0 has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
techsethi has joined #ruby
tmtwd has quit [Remote host closed the connection]
danjordan has joined #ruby
agrinb has joined #ruby
dumdedum has joined #ruby
jeromelanteri has joined #ruby
terlar has joined #ruby
craigp has joined #ruby
sandelius has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
strixd has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
juanpaucar has joined #ruby
bronson has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
codecop has quit [Remote host closed the connection]
ghr has joined #ruby
spiderbyte has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
triangles2 has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
livathinos has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
juanpaucar has quit [Ping timeout: 264 seconds]
thebastl has joined #ruby
gr33n7007h has quit [Quit: WeeChat 0.3.8]
thebastl has quit [Remote host closed the connection]
triangles3 has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
krisquigley has joined #ruby
jenrzzz has joined #ruby
selu has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
tubuliferous has quit [Ping timeout: 245 seconds]
juanpablo___ has quit [Ping timeout: 246 seconds]
Rollabunna has quit [Remote host closed the connection]
stylo has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
krisquigley has quit [Ping timeout: 246 seconds]
Rollabunna has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
varunwachaspati has joined #ruby
arup_r has quit [Remote host closed the connection]
isoxtb has joined #ruby
Takle has joined #ruby
gr33n7007h has joined #ruby
jenrzzz has joined #ruby
mikecmpbll has quit [Quit: ciao.]
AlexRussia has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
nii2361 has quit [Ping timeout: 245 seconds]
DouweM has joined #ruby
jonr22 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Cust0sL1men has joined #ruby
iteratorP has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 256 seconds]
djellemah has joined #ruby
iteratorP has joined #ruby
msgodf has joined #ruby
<undeadaedra> Hello
DerisiveLogic has quit [Ping timeout: 264 seconds]
sevenseacat has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<SebastianThorn> im building a class where i have alot of methods, should i split these into files? Most methods comes in sets of 3 or 4 (get/set/add/delete).
<apeiros_> SebastianThorn: no
<apeiros_> SebastianThorn: keep classes in one file. but maybe your class has an identity crisis and does too much - i.e. maybe you should split your class up in more classes
<SebastianThorn> apeiros_: ok
martinbmadsen has joined #ruby
<SebastianThorn> the methods are API-calls, a total of something about 5000 of them, im not planning on impelemting all of them. But i would like to easely extend for when i need to
ghostpl_ has joined #ruby
<jhass> sounds like something I'd generate
<apeiros_> sounds like something I'd do dynamically
arup_r has joined #ruby
<SebastianThorn> for starters i dont nee many of them, and i had some trouble generating
<SebastianThorn> ok
ghr has joined #ruby
<apeiros_> 5000 methods certainly is too much for a class
<apeiros_> above 50 is usually an indicator that your class does too much
<SebastianThorn> apeiros_: ok
<apeiros_> you cross that threshold by a factor 100 :)
<undeadaedra> what, it’s not the Ruby way to put a lot of methods in a class ? :p
<apeiros_> undeadaedra: no, it's not. even if some core classes are huge.
Zai00 has joined #ruby
<SebastianThorn> well, then ill look more at generating the classes from the xsd's :) thanks
<apeiros_> SOAP?
Dakuan has joined #ruby
agrinb has joined #ruby
<apeiros_> there are libraries which can work with wsdl, afaik
martinbmadsen has quit [Ping timeout: 246 seconds]
<SebastianThorn> yes
<jhass> savon seems most popular there iirc
<SebastianThorn> well, then wsdl only has 4 operations, only one is used.
<apeiros_> you mean the wsdl doesn't describe the API?
<SebastianThorn> in this operation, another xml-file is encapuled
msgodf has quit [Ping timeout: 252 seconds]
<jhass> yay, broken cert
<apeiros_> I don't think in the range of giving free advice here I'll go read a wsdl…
<SebastianThorn> SOAP is used as a wrapper for another xml-protocol
<SebastianThorn> apeiros_: no need to :)
agrinb has quit [Ping timeout: 265 seconds]
<SebastianThorn> i just wanted to explain the situation, ill look more into generating now :)
MrSamuel has quit [Quit: MrSamuel]
Mia has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
<livcd> what does class MyClass class << self do ?
vivekananda has joined #ruby
<jhass> livcd: did you hear about an objects singleton class (sometimes called eigenclass) yet?
<livcd> kind of
<jhass> so you know what they are and do or you don't? Just asking to know where to start ;)
narcan has joined #ruby
iyan has joined #ruby
arup_r_ has joined #ruby
ptrrr has joined #ruby
vivekananda has quit [Ping timeout: 244 seconds]
<undeadaedra> This interests me, and I have no knowledge of singletons classes, jhass
<jhass> okay
elaptics_away is now known as elaptics
<jhass> the singleton class is the actual class of an object. it's unique to each object, no two share the same
nii2361 has joined #ruby
<jhass> it's also only created on demand but that's entirely transparent
RegulationD has joined #ruby
<jhass> >> "foo".singleton_class
<eval-in_> jhass => #<Class:#<String:0x41e9c208>> (https://eval.in/301011)
<jhass> here's one for you to look at, not too exciting I know
lkba has quit [Ping timeout: 256 seconds]
vivekananda has joined #ruby
<jhass> like with the regular class of an object, you can add methods to it, since no two objects share the same singleton class, those methods are unique to that object
arup_r has quit [Ping timeout: 245 seconds]
<undeadaedra> So all strings have one singleton string, but their own, right?
<jhass> all objects really
jenrzzz has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 272 seconds]
<livcd> jhass: sorry was busy...i know just "the basics"
<jhass> >> Object.new.singleton_class
<eval-in_> jhass => #<Class:#<Object:0x4065832c>> (https://eval.in/301013)
plashchynski has joined #ruby
ptrrr has quit [Read error: Connection reset by peer]
<undeadaedra> okay
elfuego has joined #ruby
<jhass> so let's define a method there
<jhass> >> o = Object.new; o.singleton_class.send(:define_method, :foo) { "hi" }; o.foo
<eval-in_> jhass => "hi" (https://eval.in/301014)
<jhass> >> o = Object.new; o.singleton_class.send(:define_method, :foo) { "hi" }; Object.new.foo
<eval-in_> jhass => undefined method `foo' for #<Object:0x41d13f6c> (NoMethodError) ... (https://eval.in/301015)
<jhass> as you can see it's really unique to a single object
RegulationD has quit [Ping timeout: 252 seconds]
<jhass> now that way is kind of clunky
<jhass> so ruby provides a better one
<jhass> >> o = Object.new; def o.foo; "hi"; end; Object.new.foo
<eval-in_> jhass => undefined method `foo' for #<Object:0x4184b854> (NoMethodError) ... (https://eval.in/301016)
<jhass> er
<jhass> >> o = Object.new; def o.foo; "hi"; end; o.foo
<eval-in_> jhass => "hi" (https://eval.in/301017)
Takle has quit [Read error: Connection reset by peer]
digitalextremist has quit [Ping timeout: 252 seconds]
<jhass> we can also query the methods defined, it's pretty much a regular class
<jhass> >> o = Object.new; def o.foo; "hi"; end; o.singleton_class.instance_methods(false)
<eval-in_> jhass => [:foo] (https://eval.in/301018)
jgt2 has quit [Ping timeout: 240 seconds]
<jhass> the next piece to understand that classes themselves are just objects too
<jhass> do you two know that or should I go into that a bit?
meschi has joined #ruby
iteratorP has quit [Remote host closed the connection]
<undeadaedra> Each classes are objects of instance Class right ?
iteratorP has joined #ruby
<jhass> right
<undeadaedra> And thus, they all have a singleton class
<jhass> exadeci:
<jhass> sorry^
jimms has joined #ruby
<jhass> exactly I meant to say
<exadeci> np :)
<jhass> livcd: you're still following too? :)
<livcd> still following
<livcd> mr teacher :)
Takle has joined #ruby
<jhass> classes are just objects assigned to constants is clear to you too?
<livcd> right
<undeadaedra> yes
senayar has joined #ruby
<jhass> okay, so if we do: class Foo; def self.bar; end; end;, we're just defining a method in the Class objects singleton class
digitalextremist has joined #ruby
<jhass> since self inside a class definition refers to said class object
krandi has joined #ruby
<jhass> >> klass = class Foo; self; end; klass == Foo
<eval-in_> jhass => true (https://eval.in/301020)
andikr has quit [Ping timeout: 272 seconds]
msgodf has joined #ruby
<jhass> as you probably know we can reopen a class in ruby, class Foo; end; # some code; class Foo; # legit; end
<undeadaedra> yes
<jhass> and class << is just how you reopen an objects singleton class
<livcd> aaha!
gurnoorinder has joined #ruby
<jhass> >> o = Object.new; class << o; def foo; "hi"; end; end; o.foo
<eval-in_> jhass => "hi" (https://eval.in/301022)
plashchynski has quit [Quit: plashchynski]
<gurnoorinder> Hey, can anyone explain me what does S.unshift do.
<jhass> gurnoorinder: that depends on what S is
<undeadaedra> >> a = [3, 4, 5]; a.unshift 2; a
<eval-in_> undeadaedra => [2, 3, 4, 5] (https://eval.in/301025)
<gurnoorinder> i am sorry
<apeiros_> gurnoorinder: it calls the unshift method on S
<gurnoorinder> $.unshift
<gurnoorinder> missed the dollar sign
<apeiros_> that'd be invalid
<apeiros_> i.e. what it would do: blow up your script with a syntax error
varunwachaspati has quit [Ping timeout: 256 seconds]
<jhass> let's be friendly
<gurnoorinder> actually this is what i wanted to ask
<gurnoorinder> $:.unshift File.dirname(__FILE__)
<jhass> gurnoorinder: you meant $:.unshift right?
<gurnoorinder> yes
<gurnoorinder> sorry.
<undeadaedra> $: is $LOAD_PATH
<jhass> gurnoorinder: do you know what $: or $LOAD_PATH is?
aswen has joined #ruby
<gurnoorinder> yea i have an idea what load path is
c0m0 has joined #ruby
<livcd> jhass: where would i want to use just a singleton of one class instead of N instances ?
Takle has quit [Remote host closed the connection]
<apeiros_> livcd: important - singleton_class is not the singleton pattern
<jhass> livcd: what motivated your initial question is actually the most common usecase, we emulate "class methods" using this technique
<apeiros_> livcd: singleton_class is how ruby enables methods which belong only to a single object
SOLDIERz__ has joined #ruby
<apeiros_> livcd: and as jhass just said, one common case of that are class methods.
<jhass> >> class Foo; class << self; def foo; end; end; end; Foo.foo
<eval-in_> jhass => nil (https://eval.in/301034)
iteratorP has quit [Remote host closed the connection]
<jhass> >> class Foo; class << self; def foo; end; end; end; Foo.singleton_class.instance_methods(false)
<eval-in_> jhass => [:foo] (https://eval.in/301035)
Takle_ has joined #ruby
iteratorP has joined #ruby
<jhass> gurnoorinder: and do you know Array#unshift?
<livcd> apeiros_: jhass ok thanks guys
<gurnoorinder> somewhat. but if you cud explain. that wud be better
ismaelga has joined #ruby
<gregf_> >> a = [1,2]; a.unshift(0);a; a.shift; a.push(3);a; a.pop
<eval-in_> gregf_ => 3 (https://eval.in/301037)
<jhass> gurnoorinder: undeadaedra posted an example, did you notice it?
rikai has quit [Ping timeout: 246 seconds]
beef-wellington has joined #ruby
<apeiros_> jhass.inquiry_mode? # => true
SOLDIERz_ has quit [Ping timeout: 252 seconds]
<jhass> gurnoorinder: here are its docs http://ruby-doc.org/core-2.2.0/Array.html#method-i-unshift
<gurnoorinder> i got that. but i am not able to figure out how it works with the following code
ismaelga has quit [Remote host closed the connection]
<gurnoorinder> $:.unshift File.dirname(__FILE__)
leafybasil has joined #ruby
<gurnoorinder> i know what it does. but need little bit more clarity
Takle_ has quit [Remote host closed the connection]
livathin_ has joined #ruby
<jokester> $: is a special variable
<jhass> well, you said you know what $:/$LOAD_PATH is, maybe you don't?
<undeadaedra> is there a particular part of that which bugs you, gurnoorinder ?
plashchynski has joined #ruby
olivier_bK has joined #ruby
<gurnoorinder> i know that it provides a path of the files where ruby needs to look while running a program
beef-wellington has quit [Ping timeout: 245 seconds]
<jhass> yes, it would be nice if you could pin down the part you don't quite get
ChoiKyuSang_ has joined #ruby
livathinos has quit [Ping timeout: 246 seconds]
meschi has quit [Ping timeout: 240 seconds]
<gurnoorinder> so is there anything else as well that, that code does ?
<jhass> because it's an array of paths where require is relative to it and unshift prepends a path to it is really all there is
<gurnoorinder> alright
<gurnoorinder> does it do anything else as well?
<jokester> shouldn't, unless someone overrides stdlib
<jhass> maybe somebody else should restate what I just said, looks like I didn't express that well or something
* wasamasa doesn't know about the perlisms in ruby either
<gurnoorinder> @jhass thanks.
ChoiKyuSang has quit [Ping timeout: 245 seconds]
<gurnoorinder> i think i got it
<gregf_> gurnoorinder: all that jhass said ;). unshift adds the path to the start of the path(dunno why, as how did it manage to find the current script :/).
LekeFly has joined #ruby
<gurnoorinder> alright
blackmesa has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<jhass> gregf_: __FILE__ just holds it, or since 1.9.3 is EOL we can start using __dir__ now
<gregf_> have you worked on any other language? java/c#, perl, python
<gregf_> er, gurnoorinder i mean
<gregf_> jhass: ah - ok
Rollabunna has joined #ruby
ChoiKyuSang_ has left #ruby [#ruby]
<jhass> >> __FILE__
<eval-in_> jhass => "/tmp/execpad-f1c0bd615883/source-f1c0bd615883" (https://eval.in/301042)
keen__ has joined #ruby
ChoiKyuSang has joined #ruby
<jokester> wow didn't know that
<jhass> >> __dir__
<eval-in_> jhass => "/tmp/execpad-f4abe7caeac6" (https://eval.in/301044)
<jokester> >> Math::PI
<eval-in_> jokester => 3.141592653589793 (https://eval.in/301045)
<gurnoorinder> i have used java
keen_ has quit [Ping timeout: 245 seconds]
<gregf_> gurnoorinder: ok so, like CLASSPATH the above will do the same i guess
varunwachaspati has joined #ruby
<gurnoorinder> alright.
<gurnoorinder> thanks a lot
bim has joined #ruby
rikai has joined #ruby
rrichardsr3 has joined #ruby
iteratorP has quit [Remote host closed the connection]
plashchynski has quit [Quit: plashchynski]
serivich has joined #ruby
astrobunny has quit [Remote host closed the connection]
agrinb has joined #ruby
lkba has joined #ruby
timonv has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
vtunka has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
avril14th has quit [Remote host closed the connection]
DouweM has quit [Quit: Linkinus - http://linkinus.com]
Dr3amc0d3r|away is now known as Dr3amc0d3r
livathin_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
Dr3amc0d3r is now known as dr3amc0d3r
bim has quit [Remote host closed the connection]
dr3amc0d3r is now known as Dr3amc0d3r
bronson has joined #ruby
juanpaucar has joined #ruby
senayar has quit [Remote host closed the connection]
bim has joined #ruby
plashchynski has joined #ruby
<gurnoorinder> I have a small question:
<gurnoorinder> before moving on to rails how much ruby expertise should one have
<undeadaedra> I’d say it depends on how far on your rails use you want to go
<undeadaedra> You can have things done with basic knowledge of Ruby, as Rails already does all the magic
<undeadaedra> But you’ll be limited when you’ll want to drill down even a bit when doing more advanced, not planned by Rails things
juanpaucar has quit [Ping timeout: 245 seconds]
bronson has quit [Ping timeout: 240 seconds]
a5i has joined #ruby
<jhass> that said I see people using rails without a clue about what's Ruby and what's Rails in what they're doing
<jhass> so you can expand both fronts at the same time
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
basiclaser has joined #ruby
zotherstupidguy has joined #ruby
<gurnoorinder> alright. i have done couple of tutorials already on ruby
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
<gurnoorinder> @jhass: codecademy, lean ruby the hard way, try ruby and nor doing lynda.com's ruby essential training
<gurnoorinder> but somehow i do not feel confident
krisquigley has joined #ruby
adriancb has joined #ruby
<jhass> maybe you're the type of person where that feeling just won't go away, just dive in ;)
<jhass> nobody expects anybody to start perfect
<jokester> i'm from the same type of person
<apeiros_> hi, I'm nobody
<gurnoorinder> i was planning on reading a book : programming ruby
<jhass> Hi nobody
doodlehaus has joined #ruby
<undeadaedra> Hi nobody
<jokester> yes, that's a fine book
<jhass> gurnoorinder: did you do any of your own project ideas in ruby yet? wrote any scripts?
<jokester> it's also fine if you want to write sth before finishes the book
plashchynski has quit [Quit: plashchynski]
bronson has joined #ruby
<livcd> what are the cases when to use super ? from what i understand super is used to call a superclass of a current class
<livcd> basically...where/when would i want to use it ?
avril14th has joined #ruby
LekeFly has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
juanpablo___ has quit [Ping timeout: 272 seconds]
<jhass> livcd: when you overwrite a method in a child class and still need behavior from the original in the parent
krisquigley has quit [Ping timeout: 244 seconds]
<livcd> ok fair enough
<gurnoorinder> @jhass: not the projects but i have practiced lots of scripts
adriancb has quit [Ping timeout: 256 seconds]
<jhass> livcd: or in other words, now that you know what it does, you'll probably notice when you need it, don't worry too much
<jhass> gurnoorinder: then it's time to stop reading and diving into a project you'd like to do
<gurnoorinder> okay.
<jhass> I think you got enough of the basics to learn what's missing on demand
<gurnoorinder> suggest any sample project.
<workmad3> livcd: also be aware that 'super' and 'super()' are very different
<gurnoorinder> that i can do
<jhass> nothing on your wishlist?
<gurnoorinder> i have few for ruby on rails. nothing for only ruby to be honest
varunwachaspati has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
<jhass> nothing you do on a regular basis that you could (partly) automate using Ruby?
<livcd> workmad3: what's the difference ?
<gurnoorinder> alright. got it.
<jhass> gurnoorinder: well, I already said it's okay to dive into rails at this point ;)
<gurnoorinder> that's actually a very nice idea.
<workmad3> livcd: 'super' calls the superclass method with the original arguments, 'super()' calls it with no arguments
<gurnoorinder> alright Jhass. thanks mate.
<livcd> workmad3: i am retard i just did not thought about it thoroughly :-)
bronson has quit [Ping timeout: 244 seconds]
<livcd> how obvious
<jhass> livcd: I wouldn't say it's obvious actually
<workmad3> livcd: it's obvious... except that it's completely not obvious considering that it's contrary to how ruby normally treats methods
<workmad3> livcd: congratulations on falling victim to hindsight bias ;)
<livcd> jhass: yes but it just poped on my mind right now that i have actually read about it before
<apeiros_> workmad3, livcd: note that even super() still passes on blocks
<livcd> going for lunch :-)
<apeiros_> if you also want to suppress that, you need super(&nil)
<livcd> thankgs guys you are awsome
<workmad3> apeiros_: how fun :)
<apeiros_> and yes, totally unobvious :-/
<apeiros_> I'd prefer to have an `arguments` keyword à la JS
<certainty> apeiros_: i had fun with that one
<apeiros_> certainty: yeah, me too. cost me ~30min of my life. that sucker.
<workmad3> heh
<certainty> apeiros_: i guess it was more in my case. i suspected the error somewhere else.
<workmad3> apeiros_: oh, I also recall that if you do 'def foo(&blk); blk = proc{something_else}; super; end' then it calls the superclass with the original block, not your reassigned one
<apeiros_> certainty: I'm a blitzdebugger ;-)
<workmad3> super - breaking people's minds since 0.1
<jhass> eh well, blk really is just a local variable at that point, nothing special about it
<workmad3> jhass: reassigning any other parameter passes on the new value
<apeiros_> hoh! I need to put that on my business card.
<apeiros_> "hi. I'm XY, blitzdebugger."
<jhass> workmad3: really? ugh, that's where it's unexpected for me :D
<certainty> apeiros_: hehe, nice skill
<workmad3> jhass: yeah... you expect one or the other... not both :D
Takle has joined #ruby
<jhass> I'll just put super on my list of banned keywords
hectortrope has joined #ruby
<jhass> Module#super_method here I come!
<workmad3> jhass: I'll use it... but only if I'm wrapping a method up and keeping the same interface
<workmad3> heh
<workmad3> you could probably implement that with binding_of_caller too
sngeth has joined #ruby
jonr22 has joined #ruby
mhib has joined #ruby
R1ck has joined #ruby
<hanmac1> jhass there is Method#super_method
<R1ck> which do people prefer: ruby on apache2 or ruby on nginx?
Hirzu_ has quit [Ping timeout: 240 seconds]
<jhass> hanmac1: you need to read more backlog :P
<jhass> R1ck: you're talking about passenger I guess?
Soda has joined #ruby
sngeth has quit [Ping timeout: 264 seconds]
<hanmac1> i remember i did once a klass.instance_method(meth).bind(obj).call(*args) into an function that does it make more nice for me
<R1ck> jhass: well yes
joonty has joined #ruby
bal has quit [Quit: bal]
<jhass> for passenger I recommend apache over nginx to spare recompiling nginx all the time
<R1ck> I read nginx scales and performs better
<R1ck> ah
<jhass> my general preferred setup is a nginx reverse proxy to puma or unicorn though
bal has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
<hectortrope> hi guys
Dr3amc0d3r has left #ruby [#ruby]
jimms has quit [Ping timeout: 252 seconds]
sandelius has joined #ruby
<jokester> hi
<R1ck> jhass: oh.. that sounds interesting
<hectortrope> hi jokester
<hectortrope> Any goot ruby developers?? I learned very basics of ruby How about any cool projects to work on other than learning rails
<jhass> hectortrope: best would be to find something that motivates you
rkgudboy has joined #ruby
<jhass> my general recommendation is to look for tasks you do on a regular basis and trying to, at least in part, automate them using ruby
<hectortrope> I learned basics of rails aswell but didn't find interesting to work as a webdeveloper
oo__ has joined #ruby
<hectortrope> hi jhass
<hanmac1> hectortrope: i wrote bindings for c++ libraries for ruby ;P but i might be not a "goot" example ;P
oo_ has quit [Ping timeout: 246 seconds]
MrSamuel has joined #ruby
<arup_r_> shevy: How are you ?
<hectortrope> hanmac1 I am a programming noob from mechanical background. Can you share me your work, What you have done?>
<zotherstupidguy> hectortrope, check out sinatra framework instead of rails
<hectortrope> hearing it for the first time
<zotherstupidguy> give it a try
<hanmac1> hectortrope: do you know C and or C++ ?
<hectortrope> basics yes
<hectortrope> i know basics of most languages
mhib has quit [Read error: Connection reset by peer]
<hectortrope> I can read and understand
martinbmadsen has joined #ruby
<hectortrope> zotherstupidguy can we build any chess online playing website using Sinatra? Is it ass good as rails or django?
lolmaus has joined #ruby
<hanmac1> hectortrope: there is my binding where i try to bind wxwidgets to ruby https://github.com/Hanmac/rwx
hectortrope_ has joined #ruby
<hectortrope_> Thank ypou han
<zotherstupidguy> hectortrope, as a noob you need to understand the difference between the application UI(user interface) and the application logic, interface can be css and javascript magic or desktop C++ lib. but logic is just simply code.
knut has joined #ruby
<hectortrope_> hey zother r u insulting me?
<zotherstupidguy> so when you ask something like chess online app, you are mixing a lot in one sentence
knut is now known as Guest22920
<zotherstupidguy> hectortrope: no no no no, my apologies
Guest22920 is now known as knutmithut_
SOLDIERz__ has quit [Quit: Be back later ...]
<zotherstupidguy> i am just saying that to make it clear
<hectortrope_> zother I am not botherd about UI I am othered about backend
<zotherstupidguy> friendly person here!
<hectortrope_> ok
hectortrope_ has left #ruby [#ruby]
<jhass> zotherstupidguy: just ban noob from your list of valid words ;)
agrinb has joined #ruby
hectortrope has quit [Ping timeout: 246 seconds]
martinbmadsen has quit [Ping timeout: 245 seconds]
<knutmithut_> hey, is there any existing scheduler, that delays the queued jobs when pause? e.g. rufus-scheduler saves fixed timestamps for his jobs and when resumed executes all jobs that are overdue
<zotherstupidguy> great, the backend is usually important and easy to do, best to hack it first then try to introduce some test-driven development
<hanmac1> it also might do a difference if you only connect two users between an api or if you try also to add AI enemies
<zotherstupidguy> jhass: got it :)
senayar has quit [Read error: Connection reset by peer]
hectortrope has joined #ruby
<zotherstupidguy> hectortrope: you might like to check codeschool videos for ruby
<hectortrope> any link please?
<zotherstupidguy> and try to think about a simpler game, chess isn't really that simple unless you find a ruby chess engine!
<hectortrope> zother there are so many opensource engines
<zotherstupidguy> find your way to this http://rutracker.org/forum/index.php
<zotherstupidguy> and hunt for ruby vids
sigurding has quit [Quit: sigurding]
<hectortrope> zother thats in different language
<hectortrope> not in english
<hanmac1> zotherstupidguy: apropos backend logic, i for my next project try to make an "engine" for RealTimeStategyGames like AgeOfEmpires for Ruby ...
<zotherstupidguy> hanmac1 ?
<hectortrope> hanmac1 I have great ideas for great developers but I am poor developer
<jhass> hectortrope: start with one anyway
<zotherstupidguy> hectortrope, the most important lesson is to tackle small problems, or you will get no where!
<zotherstupidguy> its a lot harder than you think :)
<avril14th> does anyone know which method RubyMine sends to an object to inspect its value in the debugger (hint: it's not #inspect)
<jhass> hectortrope: success is not important, a project that motivates you is
<hectortrope> Yes
agrinb has quit [Ping timeout: 256 seconds]
<hectortrope> Thanks guys
<zotherstupidguy> ur welcome, thats what irc is for :)
tvon has quit [Quit: leaving]
<hectortrope> Right now I am working somewhere with other irelavant field, I need to plan in such a way build my own website to earn like chess or someother
MrSamuel has quit [Ping timeout: 240 seconds]
<zotherstupidguy> complete a video series for ruby and try to make it solid (no UI or anything, just code and tests) then start from there
reinaldob has joined #ruby
rodfersou has joined #ruby
phutchins has joined #ruby
mhib has joined #ruby
<hectortrope> gone? ok bye
MrSamuel has joined #ruby
Zai00 has quit [Quit: Zai00]
lolmaus has quit [Remote host closed the connection]
workmad3 has quit [Quit: Lost terminal]
lolmaus has joined #ruby
oo__ has quit [Remote host closed the connection]
bruno- has joined #ruby
sdothum has joined #ruby
DouweM has joined #ruby
Dakuan has quit [Remote host closed the connection]
Dakuan has joined #ruby
bayed has joined #ruby
RegulationD has joined #ruby
lkba_ has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
avril14th has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
Dakuan has quit [Ping timeout: 264 seconds]
RegulationD has quit [Ping timeout: 246 seconds]
MrSamuel has quit [Ping timeout: 256 seconds]
<zotherstupidguy> hectortrope ?
lkba has quit [Ping timeout: 264 seconds]
isoxtb has quit [Remote host closed the connection]
MrSamuel has joined #ruby
rodfersou has quit [Remote host closed the connection]
workmad3 has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
avril14th has joined #ruby
d10n-work has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
iamninja has joined #ruby
oo_ has joined #ruby
bronson has joined #ruby
oo_ has quit [Remote host closed the connection]
rkgudboy has quit [Ping timeout: 252 seconds]
rodfersou has joined #ruby
oo_ has joined #ruby
sigurding has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 252 seconds]
rkgudboy has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
MrSamuel has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
rkgudboy has quit [Read error: Connection reset by peer]
davedev24_ has quit [Remote host closed the connection]
MrSamuel has joined #ruby
MasterNayru has joined #ruby
lordkryss has joined #ruby
gurnoorinder has left #ruby [#ruby]
MasterNayru has quit [Client Quit]
beef-wellington has joined #ruby
MasterNayru has joined #ruby
ldnunes has joined #ruby
davedev24_ has joined #ruby
norc has joined #ruby
Soda has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
banister has joined #ruby
willharrison has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<norc> Hi. Is the order of key/value pairs in a Hash guaranteed to be in insertion order (or specification order if I initialize using {a: 1, b: 2} in Ruby 2.2.1 ?
SouL_ has quit [Read error: Connection reset by peer]
SouL has joined #ruby
SouL has quit [Read error: Connection reset by peer]
<hanmac1> norc: yes
<certainty> norc: yes
<workmad3> norc: yes, but if you rely on it you're mis-using a hash
<norc> Alright thank you.
beef-wellington has quit [Ping timeout: 256 seconds]
MrSamuel has quit [Ping timeout: 255 seconds]
jeromelanteri has quit [Ping timeout: 246 seconds]
hmnhf has joined #ruby
Azure has joined #ruby
Akuma has joined #ruby
brb3 has joined #ruby
elfuego has quit [Quit: elfuego]
rsavage has joined #ruby
<norc> workmad3: Im wondering whether I would ask that question if I didnt want to rely on it. :D
MrSamuel has joined #ruby
oo_ has quit [Remote host closed the connection]
<workmad3> norc: it could be an intellectual curiosity
<jhass> norc: we're just informing you that it's a code smell ;)
User458764 has joined #ruby
<norc> workmad3: In a difference place I might get axed for asking questions about the underlying implementation, stoned for not respecting the blind faith coders put on their specification. ;)
Hirzu has joined #ruby
NoNMaDDeN has joined #ruby
<hectortrope> zotherstupidguy hi
jimms has joined #ruby
<hectortrope> hi jhass
shredding has joined #ruby
claptor has quit [Quit: this channel is bakas]
Dakuan has joined #ruby
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
<norc> workmad3: Ah well, but you are right.
oo_ has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectortrope has left #ruby [#ruby]
techsethi has quit [Quit: techsethi]
NoNMaDDeN has quit [Ping timeout: 252 seconds]
slackbotgz1 has quit [Remote host closed the connection]
MrSamuel has quit [Ping timeout: 264 seconds]
slackbotgz has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
techsethi_ has joined #ruby
neanderslob has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 245 seconds]
dropp has joined #ruby
<dropp> hey
MrSamuel has joined #ruby
<jhass> hi
SouL has joined #ruby
jespada has joined #ruby
fabrice31 has joined #ruby
codecop has joined #ruby
agrinb has joined #ruby
Rephiax has quit [Ping timeout: 244 seconds]
withnale has quit [Ping timeout: 246 seconds]
livathinos has joined #ruby
Takle has quit [Remote host closed the connection]
_tpavel has joined #ruby
jimms has quit [Remote host closed the connection]
withnale has joined #ruby
MrSamuel has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 244 seconds]
krz has joined #ruby
rkgudboy has joined #ruby
<livcd> jhass: do you have any resource for useful patterns in ruby/rails?
<jhass> no
bim has quit [Remote host closed the connection]
<jhass> I think of patterns as something to recognize and to have names for things to talk to about with other developers
bim has joined #ruby
<workmad3> jhass: do you have any guns I can point at my foot and fire repeatedly?
<livcd> okay :-)
<jhass> not as pre-made solutions to problems
<livcd> workmad3: yes that's what i wanted to ask for :D
<jhass> workmad3: I think I can get some
jokester has quit [Quit: nirvana]
<workmad3> \o/
<jhass> workmad3: just involves an airplane ticket to the right region of our beloved planet
juanpaucar has joined #ruby
_ixti_ has quit [Ping timeout: 240 seconds]
fenak has joined #ruby
aclearman037 has joined #ruby
<jhass> livcd: so IMO patterns help to maybe go the last step, but should emerge naturally
jokester has joined #ruby
Takle has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
_tpavel has quit [Ping timeout: 246 seconds]
bim has quit [Remote host closed the connection]
<workmad3> jhass: I find they can also be useful to short-circuit a design thought-process by allowing me to recognise general shapes of problems and solutions without having previously encountered that situation myself
lnx has joined #ruby
<workmad3> jhass: but I agree that they're not fully-formed solutions, and that their use requires care
dropp_ has joined #ruby
iyan has left #ruby [#ruby]
<certainty> also they make nice wall paper for the office
slackbotgz has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
<jhass> well, that's sort of in my definition of "last step", what I was getting at is to approach them as something you recognize, not actively seek to use
MrSamuel has joined #ruby
slackbotgz has joined #ruby
_ixti_ has joined #ruby
<certainty> btw. if i'm lookin for patterns that solve my problem, am i doing pattern matching to find the correct one?
<workmad3> (e.g. in order to prime that aspect, I'll read through something a pattern catalogue and read the descriptions, but not put any effort into memorising them, so that I prime the pattern matching aspects of my brain without consciously memorising all the details)
fabrice31 has joined #ruby
AnxiousGarlic has joined #ruby
<workmad3> *something like a
ev_ has quit [Ping timeout: 250 seconds]
<jhass> yeah exactly
juanpaucar has quit [Ping timeout: 255 seconds]
doodleha_ has joined #ruby
dropp has quit [Ping timeout: 246 seconds]
<certainty> also two devs showing their knowledge on design patterns, have a pattern match?
AnxiousGarlic has quit [Read error: Connection reset by peer]
<workmad3> certainty: that's more the two devs using the patterns as a pattern language to invoke shared understanding (sometimes referred to as 'communication') ;)
bim has joined #ruby
<workmad3> certainty: although there probably is a fair amount of pattern matching involved in any form of shared understanding
anarang has quit [Quit: Leaving]
anarang has joined #ruby
tubuliferous has joined #ruby
juanpablo___ has joined #ruby
tvw has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
krisquigley has joined #ruby
bim has joined #ruby
Zai00 has joined #ruby
marr has joined #ruby
bruno- has joined #ruby
Sid05 has joined #ruby
sngeth has joined #ruby
doodleha_ has quit [Remote host closed the connection]
juanpablo___ has quit [Ping timeout: 255 seconds]
tubuliferous has quit [Ping timeout: 256 seconds]
MasterNayru_ has joined #ruby
krisquigley has quit [Ping timeout: 245 seconds]
davidhq has joined #ruby
startupality has joined #ruby
gfawcettpq has joined #ruby
MasterNayru has quit [Ping timeout: 256 seconds]
MrSamuel has quit [Quit: MrSamuel]
bruno- has quit [Ping timeout: 240 seconds]
_tpavel has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
<hs366> how do i have a auto-completion : suppose i want to get read some argument and it's an option to a command
<apeiros_> hs366: autocompletion where? on the command line within your app?
nii2361 has quit [Ping timeout: 256 seconds]
aganov has quit [Remote host closed the connection]
<hs366> yes, im writing Docker command like: Docker rm "image name"
<hs366> in my app
<apeiros_> use readline
<hs366> ok ,
bim has quit [Remote host closed the connection]
<apeiros_> takes a bit to get used to how it works. but I bet there are examples online.
paulfm has joined #ruby
bim has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hirzu_ has joined #ruby
anarang has quit [Quit: Leaving]
<hs366> nice!
User458764 has joined #ruby
<hs366> thx a lot again!!!!!
senayar has joined #ruby
bruno- has joined #ruby
nfk has joined #ruby
doodlehaus has joined #ruby
Hirzu has quit [Ping timeout: 250 seconds]
shevy has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Akuma has quit [Quit: So long sukkas!]
krz has quit [Ping timeout: 240 seconds]
SouL has quit [Ping timeout: 256 seconds]
rrichardsr3 is now known as rrichardsr3_away
jerius has joined #ruby
techsethi_ has quit [Quit: techsethi_]
doodlehaus has quit [Remote host closed the connection]
jonr22 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Sid05 has quit [Quit: Sid05]
anaeem1 has joined #ruby
beef-wellington has joined #ruby
Takle has quit [Remote host closed the connection]
jxpx777 has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
n80 has joined #ruby
sngeth has quit [Ping timeout: 265 seconds]
mhib has quit [Quit: Wychodzi]
mhib has joined #ruby
techsethi_ has joined #ruby
mike32 has joined #ruby
sgambino has joined #ruby
Jiyuhen has quit [Quit: No Ping reply in 180 seconds.]
aclearman037 has joined #ruby
<shevy> we must overtake perl
<a5i> Can anyone help me with with this reverse proxy issue with ruby ?
Takle has joined #ruby
Jiyuhen has joined #ruby
zenith_ has joined #ruby
Megtastique has joined #ruby
<jhass> a5i: how sure are you the config matches the active one?
<jhass> did you try restarting nginx?
<a5i> hmm
vtunka has quit [Quit: Leaving]
MasterNayru_ has quit [Remote host closed the connection]
varunwachaspati has joined #ruby
martinbmadsen has joined #ruby
<a5i> jhass, I restarted, and http://stackin.
<a5i> http://stackin.money/updates still shows 404
<a5i> when it shouldnt according to the server ruby file
Takle has quit [Remote host closed the connection]
Abhijit has joined #ruby
<jhass> is the user nginx runs under allowed to read config.ru and list the contents of the directory that contains it?
mostlybadfly has joined #ruby
rkgudboy has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
<a5i> jhass, it never shows it access config.ru in the log
<workmad3> a5i: also, have you tested in your passenger setup what 'res.write(Dir.pwd)' is?
<a5i> and I gave it access to /root/ and /root/cubaa/ and /root/cubaa/public
zenith_ has quit [Ping timeout: 244 seconds]
Jiyuhen has quit [Ping timeout: 245 seconds]
<workmad3> a5i: i.e. have you tested your assumption that pwd (and so .) is /root/cubaa rather than /root/rubaa/public ?
<a5i> workmad3: No, how can I test?
Jiyuhen has joined #ruby
<workmad3> a5i: I just told you... a request that writes back Dir.pwd
<a5i> oh right, :P
agrinb has joined #ruby
martinbmadsen has quit [Ping timeout: 265 seconds]
delianides has joined #ruby
<a5i> workmad3: its /root/cubaa
<a5i> thats what it says
vtunka has joined #ruby
amystephen has joined #ruby
<jhass> I think it's not even running
<jhass> not finding the config.ru or something
agrinb has quit [Ping timeout: 265 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<workmad3> a5i: hmm... can you 'rackup config.ru' to test it please?
vtunka has quit [Remote host closed the connection]
<workmad3> (I have a suspicion it's gonna complain that Rack::Static hasn't been loaded...)
banister has joined #ruby
<workmad3> or possibly some other error in config.ru, which hasn't bee added to the gist
<workmad3> *been
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
felixjet has quit [Quit: Leaving]
<a5i> workmad3, no error when running config.ru
emilkarl has quit [Quit: emilkarl]
felixjet has joined #ruby
sankaber has joined #ruby
otisZart has joined #ruby
zenith_ has joined #ruby
<workmad3> a5i: weird... and you restarted nginx after updating the config?
<a5i> yes
revoohc has joined #ruby
vtunka has joined #ruby
rkgudboy has joined #ruby
<workmad3> a5i: and nothing in the error logs relating to passenger?
<a5i> workmad3: no
withnale has quit [Ping timeout: 264 seconds]
foooobear has quit [Quit: (null)]
<workmad3> a5i: ok, then I'm confused... everything you've shown looks right (although it may be useful to see your config.ru file still)
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<a5i> my config file is this
dblessing has joined #ruby
eighthbit has joined #ruby
<a5i> require "./server"run Cuba
withnale has joined #ruby
RegulationD has joined #ruby
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
varunwachaspati has quit [Ping timeout: 264 seconds]
<workmad3> a5i: and public/updates.htm definitely exists? it's not something crazy like the file is actually called public/updates.html?
revoohc has quit [Client Quit]
<workmad3> a5i: the error almost looks like it's trying to open /root/cubaa/public/updates rather that updates.htm, tbh
n80 has left #ruby [#ruby]
NoNMaDDeN has joined #ruby
Abhijit has quit [Quit: Bye.]
<jhass> a5i: do the debug log I linked, really
DEA7TH has joined #ruby
<jhass> maybe increase the log level per setting found right above
RegulationD has quit [Ping timeout: 252 seconds]
werelivinginthef has joined #ruby
juanpablo___ has joined #ruby
ndrei has joined #ruby
iamjarvo has joined #ruby
joonty has quit [Quit: joonty]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<a5i> jhass, ok
<a5i> workmad3: /public/updates doesnt exist, /public/updates.htm does, but stackin.money/updates should route to updates.htm
<workmad3> a5i: yeah... but the error is stating that the file /root/cubaa/public/updates doesn't exist, causing a failed open() call
<a5i> Yes
<a5i> which means that ruby isnt really running
bronson has joined #ruby
<jhass> or at least not called
<jhass> we need debug logs
<a5i> ok
enebo has joined #ruby
mhenrixon_ is now known as mhenrixon
juanpablo___ has quit [Ping timeout: 265 seconds]
Apocalypse has quit [Ping timeout: 256 seconds]
DerisiveLogic has joined #ruby
AnxiousGarlic has joined #ruby
elfuego has joined #ruby
nii2361 has joined #ruby
PaulCapestany has quit [Quit: .]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
tier has joined #ruby
ismaelga has joined #ruby
AnxiousGarlic has quit [Read error: Connection reset by peer]
krz has joined #ruby
<hanmac1> an "htm" extension is so MSDOS Like ;P
<workmad3> hanmac1: one day you will appreciate the joys of 8.3 naming
<jhass> http://www.windows93.net/ best of all times
varunwachaspati has joined #ruby
B1n4r10 has joined #ruby
PaulCapestany has joined #ruby
zenith_ has quit [Remote host closed the connection]
sngeth has joined #ruby
rkgudboy has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 252 seconds]
zenith_ has joined #ruby
Aswebb_ has joined #ruby
nii2361 has quit [Ping timeout: 252 seconds]
sevenseacat has joined #ruby
revoohc has joined #ruby
GambitK has joined #ruby
<a5i> jhass, add " passenger_debug_log_file passlog.log" to the server block ?
banister has joined #ruby
banister is now known as banisterfiend
piotrj has joined #ruby
<jhass> probably a full path
<jhass> I don't use passenger, I'm just able to read docs
dANO_ has joined #ruby
<jhass> a5i: and then don't forget to set a higher log level
<GambitK> I'm getting an error(ciflib.rb:91:in `<main>': undefined method `new' for nil:NilClass (NoMethodError)) on creating an instance of a class on this code(http://pastie.org/10032868), I can't find whats wrong
<jhass> >> logger = logger.new
<eval-in_> jhass => undefined method `new' for nil:NilClass (NoMethodError) ... (https://eval.in/301125)
decoponio has joined #ruby
shazaum has joined #ruby
<jhass> >> foo = foo.new
<eval-in_> jhass => undefined method `new' for nil:NilClass (NoMethodError) ... (https://eval.in/301126)
<jhass> it's Logger.new ;)
nszceta has joined #ruby
<nszceta> Could not find ffi-1.9.7 in any of the sources
<nszceta> what do?
varunwachaspati has quit [Ping timeout: 246 seconds]
<jhass> nszceta: bundle install
<nszceta> thats the error ^
<nszceta> nothing else
ismaelga has quit [Remote host closed the connection]
<a5i> jhass: what level should i put?
<jhass> ah, 1.9.7 was yanked
<jhass> nszceta: bundle update ffi
ismaelga has joined #ruby
<jhass> a5i: I'd say let's start with 5
<nszceta> and then bundle install after that?
<jhass> nszceta: can't harm but shouldn't be necessary
<jhass> if this isn't your project also report an issue upstream
<nszceta> k
adriancb has joined #ruby
senayar has quit [Remote host closed the connection]
SouL has joined #ruby
agrinb has joined #ruby
Rephiax has joined #ruby
juanpaucar has joined #ruby
workmad3 is now known as wm3|away
<a5i> jhass: I got an error when i added the log file in the server log
<a5i> passenger_log_level <integer>
<a5i> oops
<a5i> nginx: [emerg] "passenger_debug_log_file" directive is not allowed here in /etc/nginx/nginx.conf:17
ismael has joined #ruby
<jhass> a5i: did you put it into the server or http block?
ismael is now known as Guest65259
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
<a5i> jhass: the server block of the http block
<jhass> "This option may only occur once, in the http configuration block. The default is 3."
casadei has joined #ruby
Guest65259 has quit [Remote host closed the connection]
RegulationD has joined #ruby
ismaelga has quit [Ping timeout: 265 seconds]
<a5i> o
agarie has joined #ruby
SOLDIERz__ has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
ojacobson has joined #ruby
zenith_ has quit [Ping timeout: 256 seconds]
crazydiamond has quit [Remote host closed the connection]
hmnhf has quit [Ping timeout: 256 seconds]
<a5i> jhass: added in the http block, ran it, went to the website, came back and no og file at all
<a5i> log*
<a5i> i dont think ruby is being ran at all
<GambitK> jhass: thanks that was it
joonty has joined #ruby
<jhass> a5i: maybe your nginx uses the wrong config file after all? or you run a nginx binary without passenger support or something?
GambitK has quit [Quit: Page closed]
varunwachaspati has joined #ruby
plashchynski has joined #ruby
<a5i> sigh :(
Zamyatin has joined #ruby
Aswebb_ has quit []
zenith_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
IrishGringo has joined #ruby
Takle has joined #ruby
pontiki has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
senayar has joined #ruby
withnale has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
jokester has quit [Quit: nerdvana]
vtunka has quit [Quit: Leaving]
sandelius has joined #ruby
withnale has joined #ruby
<bradland> "This option may only occur once" is your best clue
arup_r_ has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
Takle has quit [Remote host closed the connection]
<bradland> you should grep around your nginx config to look for instances of 'passenger_debug_log_file'
<bradland> a5i &
Takle_ has joined #ruby
<bradland> a5i &^
rbennacer has joined #ruby
<bradland> le sigh
<a5i> :@
rbennacer has quit [Remote host closed the connection]
<bradland> do you know how to combine find and grep to search *.conf files?
<a5i> Oh god!
rbennacer has joined #ruby
<a5i> I think I know why!
<bradland> ... don't leave us hangin'!
<bradland> :)
startupality has quit [Quit: startupality]
last_staff has quit [Quit: last_staff]
tkuchiki has quit [Ping timeout: 246 seconds]
startupality has joined #ruby
nii2361 has joined #ruby
doodlehaus has joined #ruby
startupality has quit [Client Quit]
iamjarvo has joined #ruby
thiagovsk has joined #ruby
paulfm has quit [Quit: Zzzzz...]
Beoran has joined #ruby
mitchellhenke has quit [Quit: Textual IRC Client: www.textualapp.com]
lsmola has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
Beoran_ has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
vtunka has joined #ruby
lsmola has joined #ruby
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
lsmola has quit [Read error: Connection reset by peer]
lsmola has joined #ruby
fabrice31 has quit [Remote host closed the connection]
piotrj has quit [Read error: Connection reset by peer]
tubuliferous has joined #ruby
piotrj has joined #ruby
krisquigley has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
<shevy> hang him!
jokester has joined #ruby
lsmola has quit [Client Quit]
fabrice31 has joined #ruby
nateberkopec has joined #ruby
lsmola has joined #ruby
mitchellhenke has joined #ruby
<jhass> k, ________ [] 0/12
<apeiros_> jhass: E
<jhass> ________ [E] 1/12
sevvie has joined #ruby
<apeiros_> (somebody else…)
oo_ has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 245 seconds]
ych4k3r has joined #ruby
it0a has joined #ruby
fabrice31 has joined #ruby
_tpavel has quit [Ping timeout: 264 seconds]
leokaito has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
martinbmadsen has joined #ruby
ych4k3r_ has joined #ruby
willharrison has joined #ruby
piotrj has quit [Remote host closed the connection]
<apeiros_> oh dear, lame channel :(
<apeiros_> jhass: N
Takle_ has quit [Remote host closed the connection]
<lnx> jhass: O
<jhass> __N____N [E] 1/12
<jhass> __N____N [EO] 2/12
<shevy> wtf are you doing
rsavage is now known as R3dk1nG
<jhass> we hang him!
<apeiros_> shevy: what you incited us to do
tobago has quit [Remote host closed the connection]
piotrj has joined #ruby
ych4k3r has quit [Ping timeout: 245 seconds]
<apeiros_> jhass: I
<jhass> _IN____N [EO] 2/12
<apeiros_> btw., what language? english?
willharrison has quit [Client Quit]
<jhass> kind of, yes
<apeiros_> whaaaaat? kind of?
* apeiros_ brb
<jhass> that I bother to type uppercase should be a hint :P
<shevy> we must hang jhass
* avril14th fetches popcorn to watch the hang
martinbmadsen has quit [Ping timeout: 252 seconds]
<shevy> avril14th guess the missing characters
hidomel has joined #ruby
<avril14th> F
serivich has quit [Ping timeout: 246 seconds]
<jhass> _IN____N [FEO] 3/12
<avril14th> cause of the F word
<avril14th> L
<shevy> we'll never figure out
<jhass> _IN____N [EOFL] 4/12
<lnx> jhass: T
<jhass> _IN____N [EOFLT] 5/12
<avril14th> obviously it's not ROFL
<avril14th> R
juanpablo___ has joined #ruby
<avril14th> :)
<jhass> _IN____N [EOFLTR] 6/12
<lnx> jhass: A
serivich has joined #ruby
<jhass> _INA__AN [EOFLTR] 6/12
<shevy> what's the word
<lnx> surely now we can get it
<shevy> lnx guess a letter
Pupeno has quit [Remote host closed the connection]
<lnx> 7
ndrei has quit [Ping timeout: 264 seconds]
Akuma has joined #ruby
<avril14th> >> ('A'..'Z').to_a.combination(7).to_a
<eval-in_> avril14th => /tmp/execpad-d640b637d1d7/source-d640b637d1d7:1:in `inspect': failed to allocate memory (NoMemoryError) ... (https://eval.in/301164)
bigmac has quit [Ping timeout: 252 seconds]
OrbitalKitten has joined #ruby
<avril14th> :)
hectortrope has joined #ruby
fryguy9 has joined #ruby
HOrangeJewce has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
nii2361 has quit [Ping timeout: 244 seconds]
zotherstupidguy has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jonr22 has joined #ruby
_tpavel has joined #ruby
bigmac has joined #ruby
bim has quit [Remote host closed the connection]
pontiki has quit [Quit: time to go]
bim has joined #ruby
kirun has joined #ruby
paulfm has joined #ruby
bim has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
ismaelga has joined #ruby
agrinb has joined #ruby
<a5i> go it to work!
<a5i> being an idiot that I am, I didnt enable passenger :I
hmnhf has joined #ruby
DerisiveLogic has quit [Ping timeout: 255 seconds]
HOrangeJewce has quit [Quit: Leaving.]
danzilio has joined #ruby
danzilio has quit [Max SendQ exceeded]
rrichardsr3_away has quit [Quit: Textual IRC Client: www.textualapp.com]
danzilio has joined #ruby
<a5i> but instead of a 404
<a5i> I get an error message
<a5i> but I have log files @ jhass
danzilio has quit [Max SendQ exceeded]
<jhass> \o/
<hectortrope> hi jhass
agrinb has quit [Ping timeout: 265 seconds]
danzilio has joined #ruby
<hectortrope> any one interested to chat regarding a topic "startiung your own startup?"
<greedo> hectortrope: #startups
<a5i> jhass:
hiyosi has joined #ruby
sngeth_ has joined #ruby
<a5i> its alot of hoopla
<hectortrope> Thanks greedo
Takle has joined #ruby
<jhass> a5i: that's fairly explicit, isn't it?
<a5i> ya i even jumped it down to level 3
<a5i> bumped*
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crueber has joined #ruby
<jhass> a5i: I mean the error message
<a5i> jhass, seems the err is
<a5i> This web application process is being run as user 'nobody' and group 'nogroup' and must be able to access its application root directory '/root/cubaa'. However, the parent directory '/root' has wrong permissions, thereby preventing this process from accessing its application root directory. Please fix the permissions of the directory '/root' first.
<jhass> yes
<jhass> I see no value in restating the same thing?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> only thing I could add is that /root might not be the best place for the app after all ;)
<a5i> where is the best place? :P
techsethi_ has quit [Quit: techsethi_]
dANO_ has quit []
knutmithut_ has quit [Ping timeout: 246 seconds]
<jhass> something that you can safely own to nobody:nogroup (or another user you pick to run passenger as)
<jhass> roots $HOME is not so nice for that
<jhass> depending on your OS typical places are /var/www and /srv/http
<a5i> /var/www/ ?
<a5i> ah
sngeth_ has quit [Ping timeout: 250 seconds]
<a5i> thank god this is over with
<a5i> i hope
<apeiros_> _INA__AN [EOFLTR] 6/12
<apeiros_> jhass: B
chinmay_dd has joined #ruby
<jhass> _INA__AN [EOFLTRB] 7/12
<apeiros_> jhass: S
<jhass> _INAS_AN [EOFLTRB] 7/12
<sevenseacat> this is an obvious one
<jhass> yeah
<apeiros_> it is? =(
<jhass> took the channel way too long, I'm disappointed
<undeadaedra> something INAS something AN
<apeiros_> I guess I suck at hangman
Takle has quit [Remote host closed the connection]
giuseppesolinas has joined #ruby
hmnhf has quit [Ping timeout: 250 seconds]
plashchynski has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
gaboesquivel has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
slap_stick has joined #ruby
<eam> grep ^.inas.an$ /usr/share/dict/words # zero matches :(
<jhass> who said anything about dictionary words?
plashchynski has joined #ruby
<eam> I mean, no one :)
<apeiros_> oh, lol
<hanmac1> >> (('A'..'Z').to_a - "EOFLTRBINASAN".chars).combination(2).to_a.map {|a,b| "#{a}INAS#{b}AN".downcase}.size
<eval-in_> hanmac1 => 105 (https://eval.in/301190)
<apeiros_> hanmac1: combination doesn't give you all variants
* apeiros_ got it
<apeiros_> but I know it written differently tbh
<hanmac1> jhass: C
<apeiros_> without the A in INAS
<jhass> WP article is A
<jhass> *has the
piotrj has quit [Read error: Connection reset by peer]
<apeiros_> I see
havenwood has joined #ruby
piotrj has joined #ruby
<jhass> but both is valid I guess
<apeiros_> jhass: we're at _INAS_AN [CEOFLTRB] 8/12
<jhass> oh
<jhass> _INAS_AN [EOFLTRBC] 8/12
<apeiros_> jhass killed the CEO
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
lulzmachine has joined #ruby
<jhass> gotta get promotion somehow!
<hanmac1> jhass: P
<apeiros_> shevy: you're not doing much to hang him!
ghr has quit []
<undeadaedra> what, goal is to hang him?
vivekananda has quit [Ping timeout: 244 seconds]
<undeadaedra> Å
<apeiros_> yeah. so avoid matches
<shevy> apeiros_ yeah
<undeadaedra> Ç
<shevy> I don't think this word exists
<shevy> he is pulling a prank on us
eighthbit has joined #ruby
<hanmac1> jhass: i guessed for P
<eam> but I'm against the death penalty
<apeiros_> shevy: nah, at least 3 people already know the solution
<jhass> hanmac1: I don't know why I miss :(
<apeiros_> make that 4
<jhass> _INAS_AN [EOFLTRBCP] 9/12
freerobby has joined #ruby
<hanmac1> jhass: W
<undeadaedra> jhass: Z
<jhass> _INASWAN [EOFLTRBCPZ] 10/12
knutmithut_ has joined #ruby
ghr has joined #ruby
Takle has joined #ruby
<eam> M
<jhass> MINASWAN [EOFLTRBCPZ] 10/12 \o/
<undeadaedra> What’s a minaswan
<jhass> apeiros_: I also think the version with A speaks nicer actually
<apeiros_> undeadaedra: a special snow flake of a swan
<apeiros_> jhass: funny, I think the opposite
<havenwood> only the king eats swans!
mikepack has joined #ruby
sevenseacat has quit [Remote host closed the connection]
<apeiros_> shevy: mission failed. you have to start anew.
tjohnson has joined #ruby
dinhani has joined #ruby
dinhani has left #ruby [#ruby]
ojacobson_ has joined #ruby
mib_mib has joined #ruby
<shevy> guys we can't be playing hangman here
<shevy> people think we aren't using ruby
sinkensabe has quit [Remote host closed the connection]
<jhass> maybe I'm a bot written in Ruby?
<apeiros_> shevy: I bet jhass is running the game using ruby!
sinkensabe has joined #ruby
<mib_mib> hi all - working with google docs api requires oauth2 - although the oauth 'dance' seems to require going to a URL ? Is this really necessary?
joonty has quit [Quit: joonty]
Dakuan has quit [Remote host closed the connection]
<undeadaedra> Hangman.new.play
<jhass> mib_mib: yes
DerisiveLogic has joined #ruby
<jhass> you need a browser, as said as it is
larsam has quit [Ping timeout: 255 seconds]
<hs366> >> hangman
<eval-in_> hs366 => undefined local variable or method `hangman' for main:Object (NameError) ... (https://eval.in/301192)
<hs366> lol
<jhass> mib_mib: though many APIs allow tokens as a substitute, for example Githubs
<jhass> never looked into Googles
<undeadaedra> >> require ’hangman’
DouweM has quit [Read error: Connection reset by peer]
ojacobson has quit [Ping timeout: 265 seconds]
DouweM has joined #ruby
dinhani has joined #ruby
<shevy> lol
<shevy> there is indeed a gem for playing hangman https://rubygems.org/gems/hangman
<hs366> oh it's real !
<undeadaedra> \o/
<hs366> i thought you were joking about hangman
<hs366> lol
yqt has joined #ruby
<undeadaedra> _______
<jhass> undeadaedra: E
<undeadaedra> _______ [E]
ndrei has quit [Ping timeout: 255 seconds]
<shevy> are you guys changing as you go
<shevy> I am sure there was an E in that
joonty has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
<hanmac1> undeadaedra: N
<undeadaedra> __N___N [E]
spiderbyte has joined #ruby
<jhass> undeadaedra: T
spicerack has joined #ruby
spicerack has quit [Changing host]
spicerack has joined #ruby
<undeadaedra> __N___N [ET]
<jhass> hanmac1: mmh, I think entl works only in german though :P
zenith_ has quit [Remote host closed the connection]
bim has joined #ruby
<hanmac1> jhass: most other languages does have N too ;P
<undeadaedra> They do?
piotrj has quit [Read error: Connection reset by peer]
a5i has quit []
piotrj has joined #ruby
<hanmac1> undeadaedra: A
<undeadaedra> _AN__AN [ET]
craigp_ has joined #ruby
<jhass> undeadaedra: S
hmnhf has joined #ruby
sandelius has joined #ruby
<undeadaedra> _AN__AN [ETS]
sepp2k has joined #ruby
hs366 has quit [Quit: Leaving]
wm3|away has quit [Quit: Lost terminal]
jespada has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Read error: Connection reset by peer]
SouL has quit [Remote host closed the connection]
davedev24_ has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
hectortrope has quit [Ping timeout: 246 seconds]
_tpavel has quit [Ping timeout: 264 seconds]
SouL has joined #ruby
<hanmac1> undeadaedra: L
<undeadaedra> Heh, ##hangman is registered but unused.
davedev24_ has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<undeadaedra> _AN__AN [ETSL]
davedev24_ has joined #ruby
<jhass> lol
<jhass> undeadaedra: H
<undeadaedra> HAN__AN [ETSL]
josephleon has joined #ruby
DerisiveLogic has quit [Ping timeout: 245 seconds]
<shevy> now it is easy
jespada has joined #ruby
craigp_ has quit [Ping timeout: 252 seconds]
werelivinginthef has joined #ruby
christiandsg has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Quit: Leaving]
<jhass> shevy: don't leave'em hanging then!
<apeiros_> undeadaedra: M
<undeadaedra> HAN_MAN [ETSL]
<apeiros_> somehow there's not enough space to fit DY
<mib_mib> jhass: so my app just needs to periodically update the google doc, it stores the short lived token and periodically refreshes it, it should be fine?
<jhass> mib_mib: as said, didn't look into the google API myself. The browser is usually needed to do the initial authentication dance
OrbitalKitten has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> apeiros_ what is a handyman man
HOrangeJewce has joined #ruby
nii2361 has joined #ruby
<shevy> we could play german hangman
gaboesquivel has quit [Remote host closed the connection]
willharrison has joined #ruby
<shevy> got a word with 41 characters
<undeadaedra> I already have problems with english hangman, so german one...
<shevy> yes
<shevy> we have accents too
<shevy> so more choice
<undeadaedra> Ich bin nich sicher, dass es eine gute Idee ist.
ndrei has joined #ruby
zotherstupidguy has joined #ruby
rhg135|zzz is now known as RightHoofGone
gokul has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<shevy> then we need unusual words
<shevy> _____
kblake has joined #ruby
<jhass> shevy: V
josephleon has quit [Quit: Leaving...]
<shevy> _____ [V] (1/12)
<hanmac1> shevy: E
<shevy> _____ [VE] (2/12)
nii2361 has quit [Ping timeout: 245 seconds]
gaboesquivel has joined #ruby
<undeadaedra> 7962624 possible letter combinations.
<undeadaedra> shevy: A
<shevy> _____ [VEA] (3/12)
zenith_ has joined #ruby
aclearman037 has joined #ruby
soc42 has joined #ruby
wald0 has joined #ruby
RightHoofGone is now known as rhg135
msgodf has quit [Remote host closed the connection]
rhllor has joined #ruby
michael_mbp has quit [Excess Flood]
msgodf has joined #ruby
<avril14th> jhass is the perfect example that you don't need algos when you have cheap hands doing the loops
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephleon has joined #ruby
<shevy> jhass has cheap hands?
<jhass> avril14th: mh, if you say so
bim has quit [Remote host closed the connection]
* jhass pretends to not code a hangman plugin for his IRC bot
yourwebdevguy has joined #ruby
<shevy> I have cheap shoes!
SegFaultAX has quit [Excess Flood]
<avril14th> some raised millions with that techniques :)
<shevy> undeadaedra guess again before I forget the word
yourwebdevguy has quit [Max SendQ exceeded]
SegFaultAX has joined #ruby
<undeadaedra> shevy: U?
mistermocha has quit [Remote host closed the connection]
<shevy> damn
michael_mbp has joined #ruby
<undeadaedra> give me the word by mp, so I can remember it for you ;)
<undeadaedra> pm*
yourwebdevguy has joined #ruby
<shevy> moment need to find out what to change when a match occurs
eighthbit has joined #ruby
mistermocha has joined #ruby
josephleon has quit [Client Quit]
plashchynski has quit [Ping timeout: 245 seconds]
<shevy> __U__ [VEAU] (3/12)
<undeadaedra> \o/
<shevy> ARE YOU SAYING 'O'
<undeadaedra> NO
zenith__ has joined #ruby
<shevy> it's easy now anyway
<undeadaedra> I let other play
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has quit [Remote host closed the connection]
<shevy> haha
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pushpak has joined #ruby
Dakuan has joined #ruby
ixti has joined #ruby
Crazy_Atheist has quit [Ping timeout: 265 seconds]
<undeadaedra> Let’s say S
plashchynski has joined #ruby
norc has quit [Ping timeout: 246 seconds]
<shevy> damn
<shevy> I don't like you anymore
zenith_ has quit [Ping timeout: 264 seconds]
<shevy> S_U__ [VEAUS] (3/12)
jimms has joined #ruby
_maes_ has joined #ruby
Crazy_Atheist has joined #ruby
_ixti_ has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
<DefV> shevy: H?
<shevy> S_U__ [VEAUSH] (4/12)
hanmac1 has quit [Quit: Leaving.]
<DefV> T?
<shevy> S_U__ [VEAUSHT] (5/12)
baroquebobcat has joined #ruby
<shevy> keep on DefV I like it!
<DefV> I? O?
meschi has joined #ruby
<shevy> hey
<shevy> not all in one... what is next?
<undeadaedra> Don’t hang him like that
<undeadaedra> K
<shevy> S_U__ [VEAUSHTK] (6/12)
bean has quit [Ping timeout: 272 seconds]
bim has joined #ruby
sngeth_ has joined #ruby
<undeadaedra> L
ojacobson has joined #ruby
_shrine has joined #ruby
amundj has quit [Ping timeout: 265 seconds]
<shevy> S_U__ [VEAUSHTK] (7/12)
<shevy> oops
<shevy> S_U__ [VEAUSHTKL] (7/12)
christiandsg has joined #ruby
_cake has quit [Ping timeout: 264 seconds]
tubbo has joined #ruby
tubbo has left #ruby ["outie 5000"]
Limix has joined #ruby
<undeadaedra> though one, eh
paulfm has quit [Quit: Zzzzz...]
senayar has quit [Remote host closed the connection]
<apeiros_> shevy: M
tier has quit [Remote host closed the connection]
sngeth_ has quit [Ping timeout: 244 seconds]
<shevy> S_U__ [VEAUSHTKLM] (8/12)
tvw has joined #ruby
<undeadaedra> D
<apeiros_> oooh, I would have bet it was SMURF
snath has quit [Ping timeout: 250 seconds]
<shevy> S_U__ [VEAUSHTKLMD] (9/12)
ojacobson_ has quit [Ping timeout: 264 seconds]
GaryOak_ has joined #ruby
tagrudev has quit [Remote host closed the connection]
slap_stick has joined #ruby
<shevy> soon over undeadaedra!
slap_stick has quit [Max SendQ exceeded]
<undeadaedra> F
<shevy> S_U__ [VEAUSHTKLMDF] (10/12)
<shevy> undeadaedra one more, come on
<undeadaedra> ok, R
triangles has joined #ruby
<shevy> S_U__ [VEAUSHTKLMDFR] (11/12)
<shevy> and the last undeadaedra!!!
josephleon has joined #ruby
<undeadaedra> no, I let someone else
mloveless has joined #ruby
<SebastianThorn> I
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<shevy> damn
<shevy> S_UI_ [VEAUSHTKLMDFRI] (11/12)
Nahra has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<apeiros_> >> (("A".."Z")*"").delete("VEAUSHTKLMDFRI")
<eval-in_> apeiros_ => undefined method `*' for "A".."Z":Range (NoMethodError) ... (https://eval.in/301224)
<apeiros_> >> ([*"A".."Z"]*"").delete("VEAUSHTKLMDFRI")
<eval-in_> apeiros_ => "BCGJNOPQWXYZ" (https://eval.in/301225)
<SebastianThorn> was just gonna ask :P
tier has joined #ruby
<apeiros_> >> ([*"A".."Z"]*"").delete("VEAUSHTKLMDFRISUI")
<eval-in_> apeiros_ => "BCGJNOPQWXYZ" (https://eval.in/301226)
<apeiros_> remaining chars
paulfm has joined #ruby
<shevy> damn
sigurding has quit [Quit: sigurding]
triangles2 has quit [Ping timeout: 252 seconds]
<shevy> undeadaedra might have guessed one character twice without that help
plashchynski has quit [Ping timeout: 256 seconds]
tier has quit [Remote host closed the connection]
<undeadaedra> I keep track, don’t worry
<shevy> ok undeadaedra
<shevy> guess again :)))
josephleon has quit [Client Quit]
<shevy> it's only ever funny with weird words
tier has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
<SebastianThorn> ohh, it's german?
<SebastianThorn> ill try get my german co-worker in here ;)
<shevy> english word
Nahra has quit [Remote host closed the connection]
<apeiros_> shevy: Q
<shevy> damn
<shevy> SQUI_ [VEAUSHTKLMDFRIQ] (11/12)
<shevy> let undeadaedra resolve it though :D :D
AlexRussia has quit [Ping timeout: 246 seconds]
<undeadaedra> I don’t see it oO
<shevy> hmm actually, next time I should pick a word with several possible meanings
<shevy> hahaha yes!
<apeiros_> shevy's dream came true ;-)
<SebastianThorn> undeadaedra: neither do I
<shevy> a french guessing english words
* apeiros_ does
<undeadaedra> :<
jespada has quit [Ping timeout: 246 seconds]
<apeiros_> or rather, I know a word which would work
<shevy> well apeiros gave you the possible characters
danzilio has quit [Quit: My computer has fallen asleep!]
snath has joined #ruby
<undeadaedra> >> (('a'..'z').to_a - %w[v e a u s h t k l m d f r i q]).count
<eval-in_> undeadaedra => 11 (https://eval.in/301228)
<undeadaedra> that’s a lot of possibilities
tagrudev has joined #ruby
<shevy> just pick one undeadaedra
senayar has joined #ruby
danzilio has joined #ruby
<shevy> one character undeadaedra
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<undeadaedra> I’m thinking
senayar has quit [Remote host closed the connection]
<shevy> less thinking, more guessing!
<undeadaedra> Z ?
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
senayar has joined #ruby
<shevy> SQUI_ [VEAUSHTKLMDFRIQZ] (12/12)
tubuliferous has joined #ruby
livathinos has quit [Ping timeout: 240 seconds]
<apeiros_> B
<shevy> jhass now we need a hangman ascii picture
josephleon has joined #ruby
<shevy> undeadaedra http://goo.gl/Je6GTN squiiiib!
jespada has joined #ruby
<shevy> actually, I wanted to use squid
<undeadaedra> ok, never heard.
suy has left #ruby ["http://quassel-irc.org - Chatee cómodamente donde sea."]
<shevy> then I looked at the translation
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> a squib is a frog (???) but also some kind of fireworks
<shevy> undeadaedra well, you know those tiny but loud fireworks?
<SebastianThorn> haha
<shevy> you throw them on the ground and they explode with some noise
arclitgold has quit [Quit: leaving]
krisquigley has joined #ruby
danzilio has quit [Client Quit]
<elfuego> i’m trying to check if JSON object was called with parse, but i’m unable to, i’m getting this error
<elfuego> expected: 1 time with any arguments
<elfuego> received: 0 times with any arguments, code is here => http://www.codeshare.io/X78Ed
<shevy> undeadaedra here is some german version of that or something http://www.feuerwerkscontainer.de/artikel/115400.jpg
bal has quit [Quit: bal]
dinhani has quit [Ping timeout: 264 seconds]
danzilio has joined #ruby
<undeadaedra> I see
eighthbit has joined #ruby
_maes_ has joined #ruby
millerti has joined #ruby
<shevy> ponga why have manga been created in japan? why not somewhere else?
startupality has joined #ruby
<GaryOak_> their called comic books
tubuliferous has quit [Ping timeout: 252 seconds]
<GaryOak_> they're?? english :(
apeiros_ has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
<shevy> well
<shevy> can you really compare them to donald duck or mickey mouse
apeiros_ has joined #ruby
krisquigley has quit [Ping timeout: 265 seconds]
wottam has joined #ruby
<GaryOak_> The concept is the same
<GaryOak_> But that's where the cultural differences come in
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fabrice31 has quit [Ping timeout: 246 seconds]
<undeadaedra> That’s where japan come in
<SebastianThorn> jhass: apeiros_: im now generating the code from xsd's works fine :), thanks for the help
serivich has quit [Ping timeout: 252 seconds]
atomiccc has joined #ruby
tagrudev has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
apeiros_ has quit [Ping timeout: 272 seconds]
plashchynski has joined #ruby
Cache_Money has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
techsethi_ has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IrishGringo has quit [Ping timeout: 265 seconds]
rbennacer has quit [Remote host closed the connection]
Dakuan has quit [Remote host closed the connection]
SOLDIERz__ has quit [Quit: Be back later ...]
bronson has joined #ruby
christiandsg has quit [Remote host closed the connection]
aclearman037 has joined #ruby
arup_r has joined #ruby
User458764 has joined #ruby
jonr22 has joined #ruby
mib_mib has quit [Ping timeout: 246 seconds]
fabrice31_ has quit [Remote host closed the connection]
livingstn has joined #ruby
ferr has joined #ruby
hidomel has quit []
Takle has quit [Remote host closed the connection]
lulzmachine_ has joined #ruby
c0m0 has quit [Quit: Leaving]
Hirzu_ has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 255 seconds]
lulzmachine has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
alphaatom has joined #ruby
OrbitalKitten has joined #ruby
bricker has joined #ruby
Takle has joined #ruby
zotherstupidguy has quit [Remote host closed the connection]
iwaffles has quit [Quit: iwaffles]
zotherstupidguy has joined #ruby
iwaffles has joined #ruby
u6ydu665 has joined #ruby
<u6ydu665> hey
gaboesquivel has quit [Ping timeout: 252 seconds]
<undeadaedra> hello
<u6ydu665> So, what's up?
benlieb has joined #ruby
<undeadaedra> Sky
<u6ydu665> Smartass :D
<u6ydu665> Well, what is going on?
<undeadaedra> Thanks :D
gaboesquivel has joined #ruby
<u6ydu665> I want to learn Ruby, but it's not popular in my country. Is it worth the effort? How is it better than Python? lol
<havenwood> u6ydu665: fewer snakes
<u6ydu665> I can see that it is a popular language in Japan :P
<undeadaedra> I don’t think the popularity in the country is a big concern
<undeadaedra> Except if you want it to be your job, of course
<u6ydu665> Well, we all need to eat. From time to time ;_;
<u6ydu665> Tell me all about it ;p
ghr has quit []
jusmyth has joined #ruby
<undeadaedra> First, you can’t say it’s ”better” than python. It’s different.
ghr has joined #ruby
slackbotgz has quit [Remote host closed the connection]
ghr has quit [Client Quit]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<u6ydu665> I mainly use Python and C++. That's the biggest commercial segment as well... Why is Ruby so unpopular in Europe?
slackbotgz has joined #ruby
ghr has joined #ruby
<undeadaedra> It is?
<u6ydu665> At least in my shithole place :P
<u6ydu665> Where are you guys from?
<shevy> u6ydu665 lots of people here on #ruby are from europe. Where are you from?
<shevy> austria, vienna
phale has joined #ruby
<u6ydu665> Poland ;_;
<u6ydu665> We mostly code in Python
<u6ydu665> When it comes to webdev
<u6ydu665> lol
<shevy> jhass, hanmac, certainty and several others are from germany
<shevy> apeiros is from switzerland
<phale> good grief
<u6ydu665> What do you mean?
<u6ydu665> ;p
<shevy> undeadaedra is from france
<undeadaedra> Am I?
<shevy> yeah
max96at|off is now known as max96at
piotrj has quit [Remote host closed the connection]
lyuben_ has quit [Quit: This computer has gone to sleep]
<u6ydu665> I know how the Germans do webdev.... TYPO3 'nuff said...
<u6ydu665> lol
<shevy> isn't that php?
avahey has joined #ruby
<undeadaedra> no one does PHP
<u6ydu665> It is... And it's full of shit
riotjone_ has quit [Remote host closed the connection]
<phale> I'm from the tropical area of America
<shevy> well it is php after all
lyuben_ has joined #ruby
Pupeno has joined #ruby
<phale> I was born and raised by weirdly shaped monkeys.
<undeadaedra> 'MURICA
<shevy> phale you are from canada?
<phale> yes
<u6ydu665> FUCK YEAH AMERICA
<phale> no
<u6ydu665> lol
<phale> i'm not from america
<undeadaedra> non
<phale> i dont have autism
<phale> sorry
<u6ydu665> phale: What do you refer to?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<phale> nothing
<undeadaedra> let’s be nice to americans.
bigmac has quit [Ping timeout: 246 seconds]
<u6ydu665> Alright
<phale> then stop boastnig
<phale> boasting*
<u6ydu665> Hey, I have nothing against the autistic people...
User458764 has joined #ruby
lemur has joined #ruby
<phale> i do
mloveles_ has joined #ruby
<u6ydu665> WTF
<u6ydu665> Why?
<undeadaedra> :˚
mloveless has quit [Ping timeout: 240 seconds]
<phale> because they're annoying
deric_skibotn has joined #ruby
<u6ydu665> Hey, there is no need for hate... Really...
bigmac has joined #ruby
<undeadaedra> Er
<u6ydu665> I know people who are WAY MORE annoying
<u6ydu665> lol
<phale> me too
<undeadaedra> Let’s go back to the initial topic, shall we?
<phale> right
<u6ydu665> Sure
<phale> as I was saying
<phale> ruby is a highly bloated language
<havenwood> phale: That's really uncalled for and unwelcome.
<phale> sorry i rustled your bojangles
<u6ydu665> How is it bloated?
<phale> you know why
<u6ydu665> Some facts, if you please
<phale> there are some methods that do the same thing
<phale> and still exist in current ruby versions
<u6ydu665> I want to learn... Oh...
<phale> there's no need for that though
<u6ydu665> So, it's inconsistent...
<undeadaedra> u6ydu665: there are many resources for that on the internet, are you looking for something in particular?
<avril14th> is there a %x() writing that generates an array of bigdecimals?
phale has left #ruby ["Leaving"]
slap_stick has joined #ruby
hectortrope has joined #ruby
rbennacer has quit [Remote host closed the connection]
<u6ydu665> I have done my research, really... I just want to listen to the people, who deal with the language on a daily basis...
lyuben_ has quit [Ping timeout: 265 seconds]
<undeadaedra> It’s a nice language
werelivinginthef has quit [Remote host closed the connection]
<havenwood> phale: Insulting or demeaning certain groups of Rubyists is malignant. We want to make people feel welcome. Keep your neurotyical-supremacist attitude to yourself.
<alphaatom> He's gone, clearly not getting the reaction he wanted.
<DEA7TH> i've heard that Ruby is much better than Python for a Bash replacement. Which is neat because Bash is awful if you're going to write more than one line of code at a time.
werelivinginthef has joined #ruby
<u6ydu665> havenwood, aren't you an Aspie?
agarie has quit [Remote host closed the connection]
<undeadaedra> DEA7TH: bash is nice for some small tasks, but really get out of control
<undeadaedra> quickly*
jgt2 has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<undeadaedra> u6ydu665: personally, I like the wide array of libraries and good stdlib
sngeth_ has joined #ruby
<u6ydu665> Any good Ruby-based tools and applications?
lemur has quit [Remote host closed the connection]
nii2361 has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
<undeadaedra> As examples or for a precise need?
hmsimha has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
hmsimha has joined #ruby
<u6ydu665> Something useful and well-known?
<u6ydu665> I only know of the origami stuff
<u6ydu665> For the PDF disassembly :P
<u6ydu665> And the Ruby On Rails...
<havenwood> u6ydu665: Prawn is a nice gem for making PDFs.
<undeadaedra> The most known thing in Ruby is Rails, yes
<undeadaedra> Redmine is a popular Ruby application
<jsrn> I believe the metasploit framework for penetration testing is heavily ruby based
<u6ydu665> Oh, I see
<jsrn> That's pretty big
<undeadaedra> iirc, Puppet uses ruby too
<hectortrope> metasploit written on ruby??
<hectortrope> really?
<hectortrope> Puppet ruby Yes
yqt has quit [Ping timeout: 265 seconds]
<jsrn> hectortrope: I dunno about the core, but a lot of the modules/exploits themselves are ruby
<hectortrope> what is iirc?
<hectortrope> ok jsrn
<undeadaedra> homebrew, the Mac OS-package manager is in Ruby
<jsrn> if I recall correctly
<undeadaedra> iirc = if i remember correctly
sngeth_ has quit [Ping timeout: 246 seconds]
<undeadaedra> iirc ;)
<shevy> we must make an universal package manager
timonv has quit [Ping timeout: 256 seconds]
<hectortrope> ruby and python both are great and very useful for those who use them
<shevy> most programming languages are
<undeadaedra> http://awesome-ruby.com/ has a big list of ruby things for development
<hectortrope> Yes
<hectortrope> but all are complex compared to python and ruby
nii2361 has quit [Ping timeout: 245 seconds]
dinhani has joined #ruby
<shevy> ruby is quite complex too
<hectortrope> I don't think so
<wasamasa> ^
<shevy> havenwood showed me some trick not long ago
<wasamasa> hectortrope: write me a ruby parser then
werelivinginthef has quit [Remote host closed the connection]
<undeadaedra> wasamasa: writing a parser is complex for all languages
<shevy> if I could just remember it :(
<hectortrope> wasamasa I can't but ruby is very easy like python
<wasamasa> undeadaedra: nope
rbennacer has joined #ruby
<havenwood> u6ydu665: Adhearsion is a nice open source telephony framework in Ruby. Puppet and Chef for devops. There are really too many popular gems to list.
<wasamasa> undeadaedra: ever heard of brainfuck?
<wasamasa> undeadaedra: or lisp?
<undeadaedra> brainfuck, seriously.
agarie has joined #ruby
<wasamasa> undeadaedra: even java is easier to parse than ruby
<wasamasa> yes, seriously
thumpba has joined #ruby
<hectortrope> wasama I have a problem can u solve in ruby??
werelivinginthef has joined #ruby
DouweM has quit [Quit: Leaving...]
<hectortrope> same parsing from xml files
Eiam has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lulzmachine_ has quit [Quit: lulzmachine_]
<wasamasa> use nokogiri
<undeadaedra> ^
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> it's fast and there's a pretty good cheatsheet for it
Eiam has quit [Remote host closed the connection]
<wasamasa> only downside of it is that building it can become problematic
MatthewsFace has joined #ruby
varunwachaspati has quit [Ping timeout: 246 seconds]
plashchynski has quit [Quit: plashchynski]
Eiam has joined #ruby
eighthbit has joined #ruby
thumpba_ has joined #ruby
<wasamasa> oga looks interesting
<hectortrope> I never worked anytime with any kind of parsing
<havenwood> wasamasa: I've sure found it quicker and easier to get installed than Nokogiri. Though it still balks at various malformed HTML.
<hectortrope> for last 3 days I struggled for parsing even in python but a guy helped me
thumpba__ has joined #ruby
<wasamasa> hectortrope: well, I've only worked with processing output from libraries using libxml and friends so far
<undeadaedra> wasamasa: easier to install, but I’m sure that it also means inferior performance
<wasamasa> hectortrope: and looked a bit at how lisp is parsed, but other than that I lack the knowledge for doing that
adamjleonard has joined #ruby
vivekananda has joined #ruby
<wasamasa> undeadaedra: I dunno, can't comment on that
<undeadaedra> you go from wrapper to a C library to pure Ruby code
bigmac has quit [Ping timeout: 264 seconds]
<hectortrope> most people learn ruby to work on rails isn't it?
thumpba has quit [Ping timeout: 246 seconds]
<undeadaedra> It’s possible
* wasamasa did
* undeadaedra did
<hectortrope> rails very famous than ruby
<havenwood> hectortrope: Rails brought a lot of folk to the community. These days there are a ton of Rubyists off the Rails though.
<hectortrope> coz many jobs in rails than ruby
<jsrn> That's why I got into it, but my ruby usage has since seeped into everything else
<undeadaedra> Ruby is less ’hype’ nowadays I think
<wasamasa> undeadaedra: apparently oga comes with a C extension
<undeadaedra> oh
<wasamasa> undeadaedra: and a java backend, too
<undeadaedra> ah, nice
<hectortrope> puppet uses ruby another job area
<wasamasa> it's just easier to get running than libxml
<undeadaedra> I take back what I said then.
<hectortrope> java have somehing like backbone.js but its not famous like rails
thumpba__ has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kyle__> havenwood: Rails built up its own community, It didn't really feel like part of the ruby community to me.
DerisiveLogic has joined #ruby
mikepack has quit [Remote host closed the connection]
<kyle__> hectortrope: chef uses ruby, I didn't know puppet did?
<hectortrope> kyle yes
<undeadaedra> hectortrope: backbone.js is javascript
<hectortrope> kyle puppet yes
<undeadaedra> I think rails equivalent for Java is Grails
<hectortrope> yes javascript only
tier has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 245 seconds]
<havenwood> kyle__: Mmm, that's a good point.
vtunka has quit [Quit: Leaving]
<hectortrope> chef uses ruby too I don't know till now
User458764 has joined #ruby
<kyle__> I use it every day :) Lots and lots of ruby
<kyle__> chef that is.
blackmesa has joined #ruby
<hectortrope> kyle can u give me any lnks to learn chef?
green-big-frog has joined #ruby
<havenwood> kyle__: I've really been enjoying Roda. So nice.
<hectortrope> kyle i am on the same field, I want to learn chef
<green-big-frog> does anyone know if I can let/make configatron read settings out of a second file?
<hectortrope> what is roda?
<havenwood> hectortrope: A Rack adapter, like Rails or Sinatra: http://roda.jeremyevans.net/
<kyle__> hectortrope: I inherited an existing chef-install, that isn't exactly used (or at all) like chef was intended, so I'm probbably the worst possible resource. That said, the official training stuff here is good https://learn.chef.io/screencasts/chef-lab/
danjordan has quit [Quit: danjordan]
RegulationD has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 264 seconds]
tier has joined #ruby
Dakuan has joined #ruby
<hectortrope> Thanks havenwood and kyle
<hectortrope> is it free kyle?
wallerdev has joined #ruby
<green-big-frog> does anyone know if I can let/make configatron read settings out of a second file?
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
<hectortrope> I am using vagrant on windows, can I use that lab??
shredding has quit [Ping timeout: 245 seconds]
hmnhf has quit [Ping timeout: 255 seconds]
krandi has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<hectortrope> busy guys??
zeeraw has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
josephleon has quit [Quit: Leaving...]
olivier_bK has quit [Ping timeout: 240 seconds]
Cache_Money has quit [Quit: Cache_Money]
agarie has joined #ruby
plashchynski has joined #ruby
apeiros_ has joined #ruby
tier has quit [Read error: Connection reset by peer]
<jsrn> hectortrope: Just guessing, but I don't see why not
tier has joined #ruby
replay has joined #ruby
<hectortrope> havenwood I have a question Can we ever build a website like chesscube.com using something like roda
<hectortrope> jsrn
GumBall has joined #ruby
<havenwood> hectortrope: Sure. Though you'll find you need JavaScript or something that compiles to it like Opal or Coffeescript for the browser. It appears that site uses Flash/ActiveScript.
tubuliferous has joined #ruby
<hectortrope> havenwood Yes it uses flash
joonty has quit [Quit: joonty]
GumBall has left #ruby [#ruby]
u6ydu665 has left #ruby [#ruby]
User458764 has joined #ruby
<havenwood>
<headius> nice
shazaum has quit [Quit: Leaving]
mikepack has joined #ruby
<hectortrope> bye guys Need to go
ki0_ has quit [Ping timeout: 250 seconds]
hectortrope has quit [Quit: Page closed]
Darryl___ has joined #ruby
milesmatthias has joined #ruby
bigmac has quit [Ping timeout: 240 seconds]
<milesmatthias> Hi all. I integrated a rails app with a new API and I'm pretty new at abstracting that out into a gem-worthy client. Does anyone have some advice or resources on best practices/idioms for ruby api client gems?
christiandsg has joined #ruby
dcas has joined #ruby
graydot has joined #ruby
lyuben_ has joined #ruby
<jhass> milesmatthias: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Apocalypse has quit [Ping timeout: 245 seconds]
Rarikon has quit [Ping timeout: 245 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
AlexRussia has joined #ruby
<milesmatthias> jhass: sure.
danman has joined #ruby
The_Phoenix has joined #ruby
<milesmatthias> btw all, I'm cross posting this between #ruby and #rubyonrails, since it pertains to both subjects and some people may not be in both.
zotherstupidguy has quit [Ping timeout: 252 seconds]
mjuszczak has joined #ruby
<atomiccc> milesmatthias: please don't kill me
<havenwood> milesmatthias: What are you using as your HTTP client? Anything in particular you're wondering about or just seeking general advice?
zotherstupidguy has joined #ruby
<havenwood> milesmatthias: It partially depends on what you're doing. A lot of folk swear by Faraday, with it's common interface to adapters and Rack middleware approach.
<milesmatthias> havenwood: RestClient. More general advice on patterns. For example, what's the best pattern for switching between development and production endpoint/api keys within the state of the client?
<milesmatthias> havenwood: err, not even switching, but declaring initially and then scoping.
<green-big-frog> if someone has time could he please re style my code over here: https://github.com/green-big-frog/bugb0t
<green-big-frog> that would be great!
<undeadaedra> wut
green-big-frog is now known as frog|OFF
<havenwood> green-big-frog: The community consensus is pretty much two-space soft tabs.
senayar has quit [Remote host closed the connection]
<havenwood> frog|OFF: That'd help with readability on the Githubs too.
<undeadaedra> two spaces is too narrow imo
<havenwood> undeadaedra: Two-space soft tabs!!!
zotherstupidguy has quit [Ping timeout: 245 seconds]
<havenwood> frog|OFF: Drop the `require 'rubygems'` unless you really do need to support Ruby 1.8, then require it only for 1.8-.
spider-mario has joined #ruby
jottr has joined #ruby
<havenwood> frog|OFF: Use snake_case instead of headlessCamelCase for method names.
<undeadaedra> havenwood: I know what the community guidelines said, and I said I don’t like it as I find it too narrow. But do what suits you
DerisiveLogic has quit [Ping timeout: 245 seconds]
<havenwood> undeadaedra: When in Rome.
zotherstupidguy has joined #ruby
OrbitalKitten has joined #ruby
<undeadaedra> frog|OFF: If you look for compilance over guidelines, look for rubocop
n008f4g_ has joined #ruby
OrbitalKitten has quit [Client Quit]
DouweM has joined #ruby
mjuszczak has quit []
mjuszczak has joined #ruby
<havenwood> frog|OFF: ditch the `gem 'openssl'`: https://github.com/green-big-frog/bugb0t/blob/master/Gemfile#L8
<havenwood> err, json too. frog|OFF: is this a Ruby 1.8??
senayar has joined #ruby
<havenwood> Nope, not in your .travis.yml.
<havenwood> frog|OFF: Ditch all the Ruby 1.8 cruft.
juanpaucar has quit [Remote host closed the connection]
<milesmatthias> havenwood: you can see what I've published so far: https://github.com/milesmatthias/synapse_client
_hollywood has joined #ruby
mikepack has quit [Remote host closed the connection]
<havenwood> frog|OFF: Typically one claims copyright in the LICENSE, then the license. You've just got the license.
JimmyNeutron has quit [Read error: Connection reset by peer]
<benlieb> how can I ask `gem` to print out where it has installed a gem after gem install?
<havenwood> benlieb: gem which gem-name
strixd has quit [Quit: 500]
jottr has quit [Ping timeout: 256 seconds]
<benlieb> havenwood: that would go through the lookup chain...
<benlieb> which may or may not be where it just installed it, right?
riotjones has joined #ruby
<havenwood> benlieb: You are presumably using the same `gem` executable for the install and which, no?
<havenwood> milesmatthias: looking
yqt has joined #ruby
hoylemd has joined #ruby
<hoylemd> Hey, has anyone been able to get syntastic to use rubocop effectively?
bigmac has joined #ruby
Cust0sL1men has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
zenith__ has quit [Ping timeout: 252 seconds]
<havenwood> benlieb: You can look at `gem --debug install gem-name` if you don't believe what `gem` is telling you.
basiclaser has quit [Quit: Connection closed for inactivity]
tvw has quit []
lulzmachine has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
senayar has quit []
dinhani has quit [Ping timeout: 255 seconds]
monsieurp has quit [Ping timeout: 272 seconds]
zotherstupidguy has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 256 seconds]
nfk|laptop has joined #ruby
last_staff has joined #ruby
ramfjord has joined #ruby
zotherstupidguy has joined #ruby
Pupeno has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
ramfjord has quit [Client Quit]
ramfjord has joined #ruby
OrbitalKitten has quit [Client Quit]
mhib has quit [Remote host closed the connection]
msgodf has quit [Ping timeout: 246 seconds]
psy has joined #ruby
zeeraw has joined #ruby
<havenwood> milesmatthias: Just a nit aside, but I think it might be nice instead of `is_dev` to: attr_reader :dev; alias_method :dev?, :dev
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
tgunr has joined #ruby
JimmyNeutron has joined #ruby
<milesmatthias> havenwood: thanks, I can update that.
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> milesmatthias: Maybe consider keyword arguments instead of those long option Hashes. Hmm, what's the best way to make that pretty..?
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> milesmatthias: But yeah, I don't have any concrete suggestions. I'll yell if anything comes to me.
<elfuego> when doing blank? check on objects before using them, is it best practice to return false or nil if the object is invalid?
mikepack has joined #ruby
rhllor has quit [Quit: rhllor]
<milesmatthias> havenwood: okay, thanks. Do you see what I mean about a central spot for holding which endpoint we should be talking to? Having a central logger is another example of that.
<havenwood> milesmatthias: I'd add a SynapseClient::VERSION in: synapse_client/lib/synapse_client/version.rb
<milesmatthias> havenwood: yup, need to do that too.
zotherstupidguy has quit [Ping timeout: 246 seconds]
monsieurp has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenith_ has joined #ruby
terlar has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
krisquigley has joined #ruby
rhllor has joined #ruby
zotherstupidguy has joined #ruby
<havenwood> milesmatthias: Yeah, extracting those things cleanly and making nice interfaces should take some careful meditation.
DouweM has quit [Read error: Connection reset by peer]
Earthnail has joined #ruby
towski_ has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<milesmatthias> havenwood: I've tried looking at other ruby client gems (stripe, parse, etc.) but they're pretty complex, so I was trying to find some introduction level advice.
<Earthnail> is there a progress bar library out there that allows me to update multiple progresses from N threads (N is a known number) in N lines on the terminal?
<ramfjord> Earthnail: such a progress bar would have to use something like ncurses
<ramfjord> the normal one just uses carriage returns I believe
<ramfjord> which is only possible for 1 line
<Earthnail> ramfjord: I'd be fine with that dependency if it's necessary
alvaro_o has quit [Quit: Ex-Chat]
<Earthnail> ramfjord: thanks for the hint, googling ncurses and progressbar brings up https://github.com/Peeja/multi_progress_bar
doodlehaus has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
dumdedum has quit [Quit: foo]
jgt2 has quit [Ping timeout: 245 seconds]
krisquigley has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Ping timeout: 245 seconds]
mloveles_ has quit []
DouweM has joined #ruby
zotherstupidguy has joined #ruby
DerisiveLogic has joined #ruby
deric_skibotn has quit [Ping timeout: 246 seconds]
basiclaser has joined #ruby
lpnldl has joined #ruby
Dakuan has quit [Remote host closed the connection]
zorak8 has joined #ruby
piotrj has joined #ruby
mike32 has quit [Ping timeout: 265 seconds]
palosterud has joined #ruby
mike32 has joined #ruby
<Earthnail> ramfjord: turns out the library is outdated... seems like I have to do some of my own work here
martinbmadsen has joined #ruby
<palosterud> What ruby framework to use if I only need a REST API?
bronson has joined #ruby
adamjleonard has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 264 seconds]
<havenwood> palosterud: Sinatra is popular or a very polished, relatively new one is Roda: https://github.com/jeremyevans/roda#readme
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
Takle has joined #ruby
baweaver has joined #ruby
<palosterud> @havenwood, thx I'm looking at grape and rails-api right now. Have been using sinatra earlier on but not for api so I don't know how well it works
RegulationD has joined #ruby
Zai00 has quit [Quit: Zai00]
<havenwood> palosterud: It works well. Roda is delicious. Check it out.
<havenwood> palosterud: Here's a talk on Roda: https://www.youtube.com/watch?v=W8zglFFFRMM
zotherstupidguy has quit [Ping timeout: 252 seconds]
zotherstupidguy has joined #ruby
serivich has joined #ruby
<palosterud> @havenwood: Thanks
B1n4r10 has joined #ruby
<havenwood> There'll be another talk just on the subject of routing trees here when MountainWest RubyConf talks get posted: http://confreaks.tv/videos/mwrc2015-better-routing-through-trees
bronson has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
chinmay_dd has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 246 seconds]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lulzmachine_ has joined #ruby
lulzmachine has quit [Ping timeout: 246 seconds]
andikr has joined #ruby
dinhani has joined #ruby
shadoi1 has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
razrunelord has joined #ruby
zotherstupidguy has quit [Ping timeout: 252 seconds]
dcas has quit [Ping timeout: 264 seconds]
shadoi1 has quit [Client Quit]
dc has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
shadoi1 has joined #ruby
zenith_ has quit [Ping timeout: 252 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
tcrypt has joined #ruby
DerisiveLogic has quit [Ping timeout: 240 seconds]
zenith_ has joined #ruby
NoNMaDDeN has joined #ruby
christiandsg has joined #ruby
bigmac has quit [Ping timeout: 252 seconds]
adamjleonard has joined #ruby
Crazy_Atheist has quit [Ping timeout: 246 seconds]
DouweM has quit [Read error: Connection reset by peer]
<elfuego> i’m trying to write a unit test to checkif a method was called, but its failing with call times of 0, code snippet is here http://www.codeshare.io/X78Ed
gaboesquivel has quit []
DouweM has joined #ruby
mikepack has quit [Remote host closed the connection]
rhllor has quit [Read error: Connection reset by peer]
rhllor has joined #ruby
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
christiandsg has quit [Ping timeout: 252 seconds]
mjuszczak has quit []
it0a has quit [Ping timeout: 256 seconds]
ghostpl_ has joined #ruby
baweaver has quit [Remote host closed the connection]
dc has quit [Ping timeout: 256 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
eighthbit has joined #ruby
triangles2 has joined #ruby
nfk|laptop has quit [Quit: yawn]
Takle has quit [Remote host closed the connection]
_hollywood has quit [Ping timeout: 264 seconds]
jgt2 has joined #ruby
Zamyatin has joined #ruby
Crazy_Atheist has joined #ruby
it0a has joined #ruby
jottr has joined #ruby
checkit has joined #ruby
triangles has quit [Ping timeout: 252 seconds]
werelivinginthef has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 246 seconds]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
lpnldl has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
jxpx777 has quit [Quit: Leaving...]
bigmac has joined #ruby
martinbmadsen has quit [Ping timeout: 245 seconds]
einarj has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
nii2361 has joined #ruby
dc__ has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 265 seconds]
Filete has joined #ruby
RegulationD has joined #ruby
palosterud has left #ruby [#ruby]
bronson has joined #ruby
mikecmpbll has joined #ruby
juanpaucar has joined #ruby
nii2361 has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
sigurding has joined #ruby
Crazy_Atheist has quit [Ping timeout: 264 seconds]
dc has joined #ruby
_hollywood has joined #ruby
discypher has joined #ruby
paradoja has joined #ruby
piotrj has quit [Remote host closed the connection]
adamjleonard has quit [Quit: Linkinus - http://linkinus.com]
yqt has quit [Ping timeout: 252 seconds]
wottam has joined #ruby
mclee_ is now known as mclee
baweaver has joined #ruby
dc__ has quit [Ping timeout: 250 seconds]
<maletor> what's the diff between (a = [4]).clear vs a=[]
HOrangeJewce has quit [Quit: Leaving.]
<apeiros_> a=[] assigns a new object
<apeiros_> >> a = [4]; b = a; a.clear; a << 5; b
<eval-in_> apeiros_ => [5] (https://eval.in/301261)
sevvie has joined #ruby
<apeiros_> >> a = [4]; b = a; a = []; a << 5; b
<eval-in_> apeiros_ => [4] (https://eval.in/301262)
<apeiros_> maletor: ^ see the diff
Takle has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
<maletor> woah
<maletor> that is not obvious from the api at all
dropp_ has quit [Quit: leaving]
HOrangeJewce has joined #ruby
jlast has joined #ruby
speakingcode has joined #ruby
doodlehaus has joined #ruby
Xoro has joined #ruby
<apeiros_> maletor: it's obvious when you understand how ruby works
<apeiros_> (and many other OO languages)
ramfjord has quit [Ping timeout: 265 seconds]
dcas has joined #ruby
IrishGringo has joined #ruby
<shevy> maletor that seems to be a different object you are using there, with another object_id right?
plashchynski has quit [Ping timeout: 264 seconds]
dfinninger has quit []
jenrzzz has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
hcnewsom has joined #ruby
milesmatthias has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
claw has quit [Ping timeout: 256 seconds]
Crazy_Atheist has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
<maletor> apeiros_ got what i meant
bigmac has quit [Ping timeout: 250 seconds]
failshell has joined #ruby
claw has joined #ruby
baweaver has quit [Remote host closed the connection]
thebastl has joined #ruby
lsmola has quit [Ping timeout: 244 seconds]
atomi has quit [Quit: brb]
bigmac has joined #ruby
arup_r has joined #ruby
ismaelga has quit [Remote host closed the connection]
atomi has joined #ruby
zenith_ has quit [Ping timeout: 245 seconds]
serivich has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
hvxgr has quit [Ping timeout: 265 seconds]
werelivinginthef has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
mikepack has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
lulzmachine_ has quit [Quit: lulzmachine_]
zz_Outlastsheep is now known as Outlastsheep
_hollywood has quit [Quit: Leaving]
atomi has quit [Client Quit]
_hollywood has joined #ruby
Channel6 has joined #ruby
mjuszczak has joined #ruby
Crazy_Atheist has quit [Ping timeout: 256 seconds]
mjuszczak has quit [Client Quit]
atomi has joined #ruby
slap_stick has joined #ruby
atomi has quit [Client Quit]
slap_stick has quit [Read error: Connection reset by peer]
IrishGringo has quit [Ping timeout: 256 seconds]
eighthbit has quit [Ping timeout: 244 seconds]
bricker has quit [Ping timeout: 246 seconds]
govg has joined #ruby
Hirzu has joined #ruby
jarjar_prime has left #ruby ["Ready? Set? Go!"]
razrunelord has quit [Remote host closed the connection]
VBlizzard is now known as _blizzy_
sigurding has joined #ruby
Takle has quit [Remote host closed the connection]
atomi has joined #ruby
oetjenj has joined #ruby
ponga has quit [Remote host closed the connection]
amundj has joined #ruby
Crazy_Atheist has joined #ruby
bronson has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bigmac has quit [Ping timeout: 246 seconds]
riceandbeans has left #ruby [#ruby]
dstarh has joined #ruby
SOLDIERz__ has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
elaptics is now known as elaptics_away
wallerdev has quit [Quit: wallerdev]
AlexRussia has quit [Ping timeout: 244 seconds]
plashchynski has joined #ruby
Zamyatin has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
TheNet has joined #ruby
bigmac has joined #ruby
<TheNet> how do blocking methods ( such as .gets ) usually work? Is there just a loop running in the method?
<jhass> pretty much, yeah
riotjone_ has joined #ruby
ponga has joined #ruby
SOLDIERz__ has quit [Ping timeout: 264 seconds]
<jhass> I would assume there's some buffering and probably IO.select in place, but in the end it should loop until it hits the delimiter or EOF
milesmatthias has joined #ruby
<TheNet> ok thanks
pullphinger has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<shevy> hmm if you guys have a table
<shevy> 1 - some name here
<shevy> 2 - some other name here
<shevy> would you think it to be better if the - is replaced by a | or a , ?
DaniG2k has joined #ruby
hvxgr has joined #ruby
<GaryOak_> what sort of table?
<jhass> TheNet: http://rxr.whitequark.org/mri/source/io.c#2979 if you want to dare a peek at the source
workmad3 has quit [Ping timeout: 264 seconds]
<jhass> shevy: !best
<helpa> shevy: "Best" and "better" are subjective. Try to use a different term.
ptrrr has joined #ruby
<jhass> gotta love that bot :P
<shevy> would you think it to be cooler if the - is replaced by a | or a , ?
<TheNet> ,
<jhass> cooler is german, isn't it?
<shevy> according to leo there is no word match for "cooler" in german http://dict.leo.org/#/search=cooler&searchLoc=0&resultOrder=basic&multiwordShowSingle=on
<TheNet> | is more of a separator for completely individual components imo
<shevy> TheNet hmm
agarie has quit [Remote host closed the connection]
<GaryOak_> >> '|' > ','
<eval-in_> GaryOak_ => true (https://eval.in/301297)
<GaryOak_> it's obviously cooler
<shevy> ok
<shevy> but right now I have a - !
riotjone_ has quit [Ping timeout: 246 seconds]
<jhass> shevy: it depends on the data, try to choose a token that's ideally impossible to be in the fields
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse has quit [Ping timeout: 245 seconds]
<GaryOak_> like a unicode character
agarie has joined #ruby
agarie has quit [Remote host closed the connection]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
agarie has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ewww
<shevy> ASCII forever
<GaryOak_> use a ~ noone uses ~'s
parduse has joined #ruby
craigp has joined #ruby
Zai00 has joined #ruby
blackmesa has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
agarie has quit [Client Quit]
<jhass> ~/.gem/2.2.1/... right
leyluj has joined #ruby
<GaryOak_> hahaha
lolmaus has quit [Quit: Konversation terminated!]
atomiccc has joined #ruby
fenak has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
<TheNet> I've always thought » was a nice one
<leyluj> Hello readable syntax beings..
zenith_ has joined #ruby
Hirzu has quit [Remote host closed the connection]
<havenwood> shevy:
<jhass> hello there cloud being
mikepack has quit [Ping timeout: 246 seconds]
<havenwood> hello earth being
Hirzu has joined #ruby
thebastl has quit [Quit: Leaving...]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alvaro_o has joined #ruby
SOLDIERz__ has joined #ruby
dorei has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
ismaelga has joined #ruby
sngeth has quit [Quit: leaving]
ramfjord has joined #ruby
mikepack has joined #ruby
ndrei has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
startupality has quit [Quit: startupality]
Hirzu has quit [Ping timeout: 240 seconds]
krisquigley has joined #ruby
frog|OFF is now known as green-big-frog
<shevy> we have a frog in the channel
<leyluj> I'm from php, yeah I said it but I love the no bracket zone..
<leyluj>
Juanchito has quit [Quit: Connection closed for inactivity]
lulzmachine has joined #ruby
<leyluj> Def'ing and ending
MatthewsFace has joined #ruby
<leyluj> Objects.everywhere.split ' '
dcas has quit [Quit: Leaving]
mike32 is now known as colorados
dblessing has joined #ruby
<shevy> def is ok
<shevy> I don't overly love end though
sigurding has quit [Quit: sigurding]
krisquigley has quit [Ping timeout: 265 seconds]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
razrunelord has joined #ruby
Dakuan has joined #ruby
milesmatthias has quit [Remote host closed the connection]
a5i has joined #ruby
DouweM has quit [Quit: Leaving...]
<leyluj> BTW, what's the difference between sinatra and ror
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> leyluj: They're two different Rack adapters. Sinatra is relatively lightweight and Rails is heavy.
pdoherty has quit [Quit: Leaving]
spider-mario has quit [Ping timeout: 256 seconds]
<jhass> rails makes many choices for you, sinatra leaves many to you
<havenwood> leyluj: Here are some Hello Worlds in various Rack adapters: https://github.com/luislavena/bench-micro#readme
<leyluj> And by rack you mean middle ware?
R3dk1nG has quit [Remote host closed the connection]
baweaver has joined #ruby
<havenwood> leyluj: Rack is Rack. Rack can optionally have Rack middleware or a Rack adapter.
<leyluj> jhass: True man, you can't even control it man, for newbies though
<jhass> rack is an interface specification for ruby application servers
<havenwood> leyluj: You can write a plain vanilla Rack app. Using Sinatra or Roda or one of the other Rack adapter DSLs makes it more pleasant.
<jhass> so you can use any rack based framework with any rack based server
spider-mario has joined #ruby
robbyoconnor has joined #ruby
lucianosousa has joined #ruby
robbyoconnor has quit [Client Quit]
jalcine has quit [Quit: Later]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
<havenwood> leyluj: Rack web server (Unicorn Rainbows! Thin Puma Passenger Reel-Rack or default WEBrick ) -> Rack and optional Rack Middleware -> optional Rack adapter (Rails Roda Cuba Lotus Sinatra Padrino NYNY Hobbit Ramaze Camping Scorched Etc.)
uptownhr has joined #ruby
lulzmachine_ has joined #ruby
lulzmachine has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
<leyluj> So basically, it's the should and shouldn't on httpservers... More like implementing an interface (java / php bg)
mostlybadfly has quit [Quit: Connection closed for inactivity]
jalcine has joined #ruby
<leyluj> havenwood: okay, now that makes sense,
ghr has joined #ruby
<leyluj> Thanks guys.. And sorry for newbies kinda questions..
knutmithut_ has quit [Quit: Verlassend]
jonr22 has joined #ruby
<jhass> no worries
baweaver has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
milesmatthias has joined #ruby
<leyluj> But guys I heard there's no interface on ruby ... How to implement contracts / interfaces.. :)
<bradland> there's a contracts gem, if you're in to contracts
<jhass> leyluj: we just assume our interface is there, it's called duck typing
fantazo has quit [Quit: Verlassend]
frem has joined #ruby
ghr has quit [Client Quit]
<jhass> and just because they aren't formalized and enforced in a language construct, that doesn't mean the concept is absent ;)
jonr22 has quit [Ping timeout: 240 seconds]
<leyluj> Duck typing, how do you go about it?
green-big-frog has left #ruby [#ruby]
bricker has joined #ruby
Dakuan has quit [Remote host closed the connection]
<leyluj> As dhh put it the rubyconf.. Freedom!!
<leyluj> Lol..
<havenwood> leyluj: Walk and quack like a duck, and we'll buy it.
Dakuan has joined #ruby
<leyluj> Lool quaaaake
paulfm has quit [Quit: Goodbye]
Dakuan has quit [Remote host closed the connection]
<jhass> since what you really are, we don't care, as long as you give us what we need
tier has quit [Remote host closed the connection]
Dakuan has joined #ruby
plashchynski has quit [Ping timeout: 245 seconds]
jalcine has quit [Quit: Later]
atomiccc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leyluj> And how about monkey patching?
User458764 has joined #ruby
<jhass> anything specific you'd like to know?
AlexRussia has joined #ruby
lucianosousa_ has joined #ruby
christiandsg has joined #ruby
tier has joined #ruby
wallerdev has joined #ruby
lucianosousa has quit [Ping timeout: 264 seconds]
lucianosousa_ is now known as lucianosousa
<shevy> leyluj this is simply to extend a core class with new functionality
SOLDIERz__ has quit [Quit: Be back later ...]
<bradland> or overwrite, if you're evil
<bradland> leyluj: not everyone will agree with Atwood's opinions here, but i kind of like his piece on the topic: http://blog.codinghorror.com/monkeypatching-for-humans/
Spami has joined #ruby
aswen has joined #ruby
Crazy_Atheist has quit [Ping timeout: 255 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
lordkryss has quit [Quit: Connection closed for inactivity]
einarj has joined #ruby
yqt has joined #ruby
baweaver has joined #ruby
Channel6 has quit [Quit: Leaving]
craigp has quit []
techsethi_ has quit [Quit: techsethi_]
lyuben_ has quit [Quit: This computer has gone to sleep]
<uptownhr> would love it if anyone can chime in on this
triangles has joined #ruby
<uptownhr> converting a binary string to hex
<undeadaedra> Hi back
GambitK has joined #ruby
lucianosousa_ has joined #ruby
bronson has joined #ruby
lucianosousa has quit [Ping timeout: 264 seconds]
lucianosousa_ is now known as lucianosousa
<leyluj> You evil being..
<undeadaedra> If I have a constant, say A::B::C, is there a way to have the ’namespace’ of it, so here A::B ?
aswen has quit [Ping timeout: 245 seconds]
jottr has joined #ruby
amundj has joined #ruby
<GambitK> i'm parsing a json web server response with: response = JSON.parse(res.body), how do I then choose which json fields I want?
<leyluj> So duck typing, monkey patching, what else am I missing?
<apeiros_> uptownhr: you've got an answer
<GambitK> The response has 8 fields and I only want 3 of those
<uptownhr> let me check it out
<apeiros_> uptownhr: oh, whoops, `s` is supposed to be your binary string
<uptownhr> yea, i figured ;)
triangles2 has quit [Ping timeout: 246 seconds]
Crazy_Atheist has joined #ruby
DerisiveLogic has joined #ruby
electrical has left #ruby [#ruby]
<uptownhr> apeiros_: thanks that works
Outlastsheep is now known as zz_Outlastsheep
bronson has quit [Ping timeout: 246 seconds]
jottr has quit [Ping timeout: 252 seconds]
IrishGringo has joined #ruby
plashchynski has joined #ruby
<leyluj> So duck typing, monkey patching, what else am I missing? Cc bradland shevy jhass havenwood??
nii2361 has joined #ruby
Jiyuhen has quit [Ping timeout: 246 seconds]
juanpaucar has quit []
Jiyuhen has joined #ruby
anaeem1 has quit [Remote host closed the connection]
<apeiros_> GambitK: JSON.parse returns Arrays and Hashes as structures. you can use them just normally.
mostlybadfly has joined #ruby
anaeem1_ has joined #ruby
GnuYawk has joined #ruby
<shevy> leyluj those terms have not been made by matz
<shevy> leyluj the biggest part of ruby is its philosophy
jalcine has joined #ruby
jimms has quit [Remote host closed the connection]
Crazy_Atheist has quit [Ping timeout: 264 seconds]
andikr has quit [Remote host closed the connection]
nucular11 has joined #ruby
<leyluj> Shevy, okay.. I
nii2361 has quit [Ping timeout: 252 seconds]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
sngeth has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
Takle has joined #ruby
sevvie has quit [Ping timeout: 246 seconds]
<GaryOak_> monkey typing, duck patching
<undeadaedra> 9_6
anaeem1_ has quit [Ping timeout: 240 seconds]
<GaryOak_> It's almost 2 o'clock coffee time!
deric_skibotn has quit [Ping timeout: 245 seconds]
<undeadaedra> 21:30 tea time you mean
<GaryOak_> If you like
sngeth has quit [Ping timeout: 265 seconds]
Synthbread has joined #ruby
jherbst has joined #ruby
Crazy_Atheist has joined #ruby
<undeadaedra> :p
IrishGringo has quit [Ping timeout: 265 seconds]
<GaryOak_> I probably should have some tea instead of coffee
baroquebobcat has quit [Quit: baroquebobcat]
<eam> the biggest part of ruby is its parser BOOM ROASTED
<GaryOak_> the most complex, or the most large in size?
otisZart has quit [Ping timeout: 246 seconds]
<GaryOak_> or the most important?
<eam> I mean, sure, yes to all
neanderslob has joined #ruby
anaeem1 has joined #ruby
<GaryOak_> yeah!
<eam> yeah!! # syntax error
sevvie has joined #ruby
<GaryOak_> TypeError cannot convert nil to a String
deric_skibotn has joined #ruby
SegFaultAX has quit [Excess Flood]
zacts has joined #ruby
SegFaultAX has joined #ruby
Crazy_Atheist has quit [Ping timeout: 246 seconds]
atomiccc has joined #ruby
Ankhers has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
baroquebobcat has joined #ruby
techsethi_ has joined #ruby
altamic has joined #ruby
anaeem1 has quit [Ping timeout: 245 seconds]
DerisiveLogic has quit [Remote host closed the connection]
_hollywood has quit [Quit: Leaving]
DerisiveLogic has joined #ruby
Crazy_Atheist has joined #ruby
TheNet has quit [Remote host closed the connection]
lolmaus has joined #ruby
TheNet has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
tier_ has joined #ruby
<colorados> what is yours top10 gems?
postmodern has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
olivier_bK has joined #ruby
<baweaver> colorados: http://bit.ly/1xvGKZQ
rubie has joined #ruby
<TheNet> pretty print is pretty nice
<rubie> hi all: does anyone know of a good screencast paid or free, that explains how to make a binary tree in ruby?
anaeem1_ has joined #ruby
MasterNayru has joined #ruby
<undeadaedra> colorados: better_errors
tier has quit [Ping timeout: 240 seconds]
<baweaver> careful on building reliance on screencasts
yekta has joined #ruby
<baweaver> for the most part you can find answers in blogs
<TheNet> (actually called awesome print)
<undeadaedra> Aren’t binary trees just `Struct(:left, :right)` ?
adamjleonard has joined #ruby
<colorados> baweaver, i dont like google
<baweaver> then duckduckgo
<rubie> there are a few blogs that go over binary trees but they dont go into much detail
<colorados> he can advise shit
<rubie> what do you mean dont rely on screencasts?
<wallerdev> binary trees are just trees with two children
adamjleonard has quit [Client Quit]
<baweaver> for the most part they're not as common
jespada has quit [Ping timeout: 264 seconds]
milesmatthias has quit [Remote host closed the connection]
<baweaver> so if you rely on screencasts for your info, what happens when they don't cover it?
razrunelord has quit []
_cake has joined #ruby
<wallerdev> theres not much to go over for that haha, if youre interested in binary search trees you could find info on algorithms for that
<wallerdev> but theres nothing complicated about building a binary tree
<baweaver> rosettacode is probably the best algorithm resource out there.
<rubie> if you know how to do it it's not complicated :)
<baweaver> explains them in multiple languages
<baweaver> probably best to get an interviews book like 'Cracking the Coding Interview'
<rubie> ya i have that
<baweaver> colorados: have fun then, and welcome to my mute list
_shrine has quit [Ping timeout: 255 seconds]
kadoppe has quit [Ping timeout: 252 seconds]
<wallerdev> tbh i stay away from ruby most of the time in coding interviews
<rubie> well its my first language
<baweaver> any particular reason?
* baweaver is curious
zoo-zed has joined #ruby
<rubie> isn't this the ruby channel?
<wallerdev> most problems ive been given are best solved with standard for loops and moving back and forward in them
<baweaver> It is
<baweaver> doesn't mean we're necessarily limited to it
<wallerdev> and in ruby that basically means using a while loop instead which is a little more convoluted
kadoppe has joined #ruby
<baweaver> I've used a while loop all of 3 times in Ruby in 3 years
<wallerdev> right
<baweaver> what type of problems do you get?
<eam> rubie: what kind of detail are you looking for?
lulzmachine_ has quit [Quit: lulzmachine_]
<wallerdev> like reversing characters of a string in place
jxpx777 has joined #ruby
<wallerdev> stuff like that
<baweaver> >> 'string'.reverse
<eval-in_> baweaver => "gnirts" (https://eval.in/301339)
<wallerdev> sure but interviewers want you to write out the algorithm
<eam> reversing a string is super easy, just change the type to one that addresses it in the opposite order
<eam> O(1) string reversal
<wallerdev> and usually it's like reverse each word of a string in place or something
<baweaver> >> string.chars.reduce('') { |new_str, ch| ch + new_str }
<eval-in_> baweaver => undefined local variable or method `string' for main:Object (NameError) ... (https://eval.in/301340)
graydot has quit [Quit: graydot]
<baweaver> >> 'string'.chars.reduce('') { |new_str, ch| ch + new_str }
<eval-in_> baweaver => "gnirts" (https://eval.in/301341)
tier_ has quit [Ping timeout: 265 seconds]
zoo-zed has quit [Client Quit]
<rubie> eam: does a tree work the same way as a linked list?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dinhani has quit [Quit: Leaving.]
zenith_ has quit [Remote host closed the connection]
<baweaver> >> 'string with a lot of words'.split.map { |s| s.chars.reduce('') { |new_str, ch| ch + new_str } }.join(' ')
<eval-in_> baweaver => "gnirts htiw a tol fo sdrow" (https://eval.in/301342)
<undeadaedra> wallerdev: (0 .. n).each do { |i| ... }
<eam> rubie: yes, except a list element has a single #next reference and a tree element has two #left and #right
techsethi_ has quit [Quit: techsethi_]
soc42 has quit [Remote host closed the connection]
<wallerdev> using (0..n) gets much more confusing when you have to move back in your loop for whatever reason
zoo-zed has joined #ruby
rodfersou has quit [Quit: leaving]
<baweaver> though really most modern languages have a reverse function, which I tend to bring up
<wallerdev> and most interviews ive been in dont let you use things like map or reduce or split haha
most_wanted has joined #ruby
<baweaver> why?
<undeadaedra> it’s stupid
<baweaver> makes no sense
<undeadaedra> it shows you know the language
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ki0 has joined #ruby
lucianosousa_ has joined #ruby
<wallerdev> honestly if they did i'd write something like 'one two three'.gsub(/\w+/) { |s| s.reverse }
aclearman037 has quit [Quit: I'm out!]
<most_wanted> why does nil checking not work
Dakuan has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<baweaver> >> 'one two three'.split.map(&:reverse)
<eval-in_> baweaver => ["eno", "owt", "eerht"] (https://eval.in/301343)
<rubie> http://pastebin.com/9PkdhCvt heres what i have so far but i know i can improve on how to create new nodes, not sure how
<helpa> Hi rubie. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<wallerdev> i dont think people really care if you know the existing functions of a language as much as they care you understand the concepts of writing algorithms
<baweaver> >> 'one two three'.split.map(&:reverse).join(' ')
<eval-in_> baweaver => "eno owt eerht" (https://eval.in/301344)
<eam> wallerdev: just give them a pointer to the end of the string and say "address it backwards"
lucianosousa has quit [Ping timeout: 246 seconds]
lkba_ has quit [Ping timeout: 246 seconds]
lucianosousa_ is now known as lucianosousa
<baweaver> that is an algorithm though
<undeadaedra> >> %(one two three).gsub(/\w+/, &:reverse)
<eval-in_> undeadaedra => "eno owt eerht" (https://eval.in/301345)
<wallerdev> lol have you guys never had an interview? or are you guys just so cool that you tell your interviewer that you're too good to solve it how they want
<baweaver> an algorithm by definition is a method of getting a to b
graydot has joined #ruby
<baweaver> Worked for me quite well
<most_wanted> can anyone tell me why if ref.nil? then ref.value end
AndyBotwin has joined #ruby
<most_wanted> ref value gernerates nil pointer error
AndyBotwin has quit [Changing host]
AndyBotwin has joined #ruby
<baweaver> most_wanted: show code in a gist if you can, needs a bit more context
segv is now known as batman_
<baweaver> error at least
batman_ is now known as segv
<eam> wallerdev: for interviews I just talk about thought leadership
<wallerdev> anyway my point is, for loops are much more flexible haha
basiclaser has quit [Quit: Connection closed for inactivity]
<undeadaedra> >> ref = Struct.new(:value).new(4); if ref.nil? then ref.value end
<baweaver> wallerdev: I show the right way for it, then I delve into the nonsensicals
<eval-in_> undeadaedra => nil (https://eval.in/301346)
christiandsg has joined #ruby
IrishGringo has joined #ruby
<baweaver> >> nil.nil?
<eval-in_> baweaver => true (https://eval.in/301347)
<wallerdev> and interviews ive been in tend to add to the problem as you work on it, and if you start with something like each_with_index etc you end up not being able to solve it elegantly without changing to a while loop
<baweaver> you want the inverse
<undeadaedra> >> ref = Struct.new(:value).new(4); ref and ref.value
<eval-in_> undeadaedra => 4 (https://eval.in/301348)
<rubie> https://gist.github.com/4cc1481f7ed11e248b9e.git heres what i have so far, but its not efficient to make nodes this way
<wallerdev> so i stay away from ruby usually :p
<undeadaedra> >> ref = nil; ref and ref.value
<eval-in_> undeadaedra => nil (https://eval.in/301349)
<eam> I did my last interview in perl
pullphinger has quit []
<baweaver> I use recursion
<baweaver> I'll even define my helpers / higher orders if they're picky about it
<havenwood> recursive thought leadership in perl
<eam> it was a graph traversal problem, super easy
werelivinginthef has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 264 seconds]
<colorados> пля, ghjlktyrf hfcrjxtufhbkfcm
<undeadaedra> most_wanted: samples above; ref and ref.value should do the trick
<havenwood> colorados: Happy St. Patricks to you too!
duncannz has joined #ruby
<undeadaedra> colorados: gesundheit
GnuYawk has quit [Ping timeout: 245 seconds]
<eam> rubie: that looks fine
<most_wanted> undeadaedra: still having problems
duncannz has quit [Max SendQ exceeded]
Cache_Money has joined #ruby
Sid05 has joined #ruby
sngeth has joined #ruby
duncannz has joined #ruby
<undeadaedra> use arr[0].nil? ?
<colorados> havenwood, loloshki. who is patrick
<baweaver> most_wanted: see comment
duncannz has quit [Max SendQ exceeded]
<rubie> eam; should i make a parent accessor?
riotjones has joined #ruby
_br_ has quit [Ping timeout: 264 seconds]
shortdudey123 has quit [Max SendQ exceeded]
duncannz has joined #ruby
revoohc has quit [Quit: revoohc]
<eam> rubie: you could. "should" implies a need, do you need one?
jenrzzz has joined #ruby
duncannz has quit [Max SendQ exceeded]
shortdudey123 has joined #ruby
<colorados> мля. школота засрала чат
christiandsg has quit [Ping timeout: 248 seconds]
<baweaver> Anymore I try and avoid mutation wherever possible. Habit, or a kickback of spending a bit too much time around Elixir / Haskell / Scala
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<undeadaedra> Avoiding mutation is a good practice
<baweaver> Granted I have a very large bias against Java in general
<most_wanted> baweaver: no luck
<eam> not if you're applying GP
triangles2 has joined #ruby
Notte has joined #ruby
<most_wanted> undeadaedra: i have already tried that
pengin has joined #ruby
delianides has quit [Remote host closed the connection]
<baweaver> eam: GP?
<eam> genetic programming
<baweaver> even then it's not necessary
jgt2 has quit [Ping timeout: 265 seconds]
triangles has quit [Ping timeout: 255 seconds]
<eam> it's a joke, the programs mutate :)
<baweaver> ah
* baweaver is still stuck in Monday
The_Phoenix has quit [Read error: Connection reset by peer]
<colorados> eam, do u know GP?
jenrzzz has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 240 seconds]
<eam> I have used it once, in a toy application
<colorados> could you show your application?
<colorados> maybe its interesting
NoNMaDDeN has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
zoo-zed has quit [Quit: Textual IRC Client: www.textualapp.com]
lucianosousa_ has joined #ruby
lkba has joined #ruby
zoo-zed has joined #ruby
zachrab has quit [Remote host closed the connection]
_br_ has joined #ruby
<baweaver> most_wanted: I can take a look at it later tonight
failshell has quit [Ping timeout: 256 seconds]
zachrab has joined #ruby
<eam> don't think I have it anymore, was for an ICFP involving ant AI (and I didn't do much of it)
zoo-zed has quit [Client Quit]
plashchynski has quit [Ping timeout: 255 seconds]
anaeem1_ has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
lolmaus has quit [Quit: Konversation terminated!]
lucianosousa has quit [Ping timeout: 252 seconds]
lucianosousa_ is now known as lucianosousa
<GaryOak_> I want to make SimAnts with boids and some FSM
<GaryOak_> and have them build an ant farm
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<GaryOak_> eam: that sounds rad
ndrei has quit [Ping timeout: 250 seconds]
most_wanted has quit [Quit: Page closed]
triangles3 has joined #ruby
iamjarvo has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
elaptics_away is now known as elaptics
piotrj has joined #ruby
triangles2 has quit [Ping timeout: 255 seconds]
jerius has quit [Ping timeout: 244 seconds]
Altonymous has joined #ruby
krisquigley has joined #ruby
baweaver has quit [Remote host closed the connection]
claw has quit [Ping timeout: 245 seconds]
MasterNayru_ has joined #ruby
threh has joined #ruby
MasterNayru has quit [Read error: Connection reset by peer]
Morkel has quit [Quit: Morkel]
<Altonymous> I have 2 tab delimited files with 3 columns each. The first two columns contain the same data (except 1 file might have more some different records than the other and visa-versa). The 3rd column is what’s unique to the file. I’d like to create an array of the combined data.. so if fileA has “1, 2, 123” and fileB has “1, 2, 456”, I’d like to end up with “1, 2, 123, 456” 3rd column being from fileA and 4th being from
<Altonymous> fileB. If the record only exists in one of the files the other value should be set to a default, for this purpose say 0.
<Altonymous> I can’t for the life of me think of the most effecient way to do this…
claw has joined #ruby
baweaver has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<shevy> GaryOak_ in ruby?
jottr has joined #ruby
<shevy> I loved simants... I am not sure if I learned something but I think I did
GnuYawk has joined #ruby
jenrzzz has joined #ruby
brb3 has quit [Quit: <.<]
krisquigley has quit [Ping timeout: 272 seconds]
<GaryOak_> shevy: yeah!
<GaryOak_> Then they can use celluloid and make distributed ants
relix has joined #ruby
NoNMaDDeN has joined #ruby
<GaryOak_> spread them out over a cluster, ant cluster
<GaryOak_> then upload the ants to the cloud, cloud ants
<shevy> begins to sound like starcraft ants
<colorados> some interesting piece of code http://pastie.org/10033732
threh has quit [Ping timeout: 264 seconds]
MasterNayru_ has quit [Ping timeout: 264 seconds]
Sid05 has quit [Quit: Sid05]
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 245 seconds]
<undeadaedra> Comments are rather explicit
MasterNayru has joined #ruby
<undeadaedra> ... at least I think they are, I don’t understand them ._.
IrishGringo has quit [Ping timeout: 265 seconds]
gr33n7007h has quit [Quit: WeeChat 0.3.8]
bronson has joined #ruby
<GaryOak_> Put the ants on a graph!
jenrzzz has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<undeadaedra> what is this?
<undeadaedra> a program for ANTS?
SwimmingDolphin has joined #ruby
<GaryOak_> haha
<colorados> seems yes
doodlehaus has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 246 seconds]
MasterNayru has quit [Client Quit]
sngeth has quit [Ping timeout: 264 seconds]
<Altonymous> This is the only way I can think of to do it.. [fileA, fileB].transpose.map { |(k1,k2,v1), (_,_,v2)| [k1,k2,v1,v2] } I don’t know if there’s a more performant way though
shevy has quit [Ping timeout: 252 seconds]
morenoh149 has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 246 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yekta has quit [Quit: yekta]
nicolastarzia has joined #ruby
ramfjord has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
plashchynski has joined #ruby
jenrzzz has joined #ruby
threh has joined #ruby
GambitK has quit [Quit: Page closed]
decoponio has quit [Quit: Leaving...]
<colorados> game with big ants http://www.openclonk.org/download/
jonr22 has joined #ruby
sigurding has joined #ruby
mitchellhenke has quit [Quit: Computer has gone to sleep.]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
it0a has quit [Ping timeout: 272 seconds]
jimms has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
milesmatthias has joined #ruby
ych4k3r_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nicolastarzia has quit []
beef-wellington has quit [Ping timeout: 246 seconds]
jonr22 has joined #ruby
jgt2 has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
wallerdev has quit [Quit: wallerdev]
icebourg has joined #ruby
threh has quit [Ping timeout: 252 seconds]
icebourg has quit [Max SendQ exceeded]
shevy has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
SwimmingDolphin has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
threh has joined #ruby
icebourg has joined #ruby
DerisiveLogic has quit [Ping timeout: 252 seconds]
<GaryOak_> eam: Sweet :)
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Client Quit]
davidhq has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
FreeCandy has joined #ruby
FreeCandy has quit [Max SendQ exceeded]
piotrj has quit [Remote host closed the connection]
FreeCandy has joined #ruby
FreeCandy has quit [Max SendQ exceeded]
davidhq has quit [Client Quit]
FreeCandy has joined #ruby
FreeCandy has quit [Max SendQ exceeded]
Altonymous has quit [Quit: Altonymous]
FreeCandy has joined #ruby
FreeCandy has quit [Max SendQ exceeded]
FreeCandy has joined #ruby
FreeCandy has quit [Max SendQ exceeded]
Tuxero has joined #ruby
olivier_bK has joined #ruby
sevvie has quit [Ping timeout: 256 seconds]
livingstn has quit []
gr33n7007h has joined #ruby
GnuYawk has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
fuzzyhorns2 has joined #ruby
crueber has quit [Quit: Leaving.]
adriancb has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
triangles3 has quit [Ping timeout: 272 seconds]
CheeseBurga has joined #ruby
triangles has joined #ruby
piotrj has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
threh has quit [Ping timeout: 245 seconds]
milesmatthias has quit [Remote host closed the connection]
last_staff has quit [Remote host closed the connection]
replay has quit [Remote host closed the connection]
threh has joined #ruby
replay has joined #ruby
casadei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
speakingcode has quit [Ping timeout: 264 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
jgt3 has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
jgt2 has quit [Ping timeout: 246 seconds]
Channel6 has joined #ruby
graydot has quit [Quit: graydot]
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
nii2361 has joined #ruby
sevvie has joined #ruby
serivich has joined #ruby
pengin has joined #ruby
SouL has quit [Ping timeout: 240 seconds]
EvanGuru has quit [Remote host closed the connection]
ev_ has joined #ruby
jlast has quit [Remote host closed the connection]
bronson has joined #ruby
nii2361 has quit [Ping timeout: 240 seconds]
drocsid has joined #ruby
jlast has joined #ruby
morenoh149 has joined #ruby
piotrj has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 272 seconds]
elfuego has quit [Quit: elfuego]
davidhq has joined #ruby
threh has quit [Ping timeout: 264 seconds]
piotrj has joined #ruby
jespada has joined #ruby
danzilio has quit [Quit: My computer has fallen asleep!]
hcnewsom has quit [Quit: hcnewsom]
jenrzzz has joined #ruby
baweaver has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
enebo has quit [Quit: enebo]
altamic has quit [Quit: altamic]
jlast has quit [Ping timeout: 264 seconds]
Dakuan has joined #ruby
threh has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
sgambino has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
sngeth has joined #ruby
Sid05 has joined #ruby
piotrj has quit [Remote host closed the connection]
jgt3 has quit [Ping timeout: 245 seconds]
<shevy> sometimes it is best to rewrite from scratch
Dakuan has quit [Ping timeout: 265 seconds]
<drocsid> I'm using some inline ruby in a puppet module. I don't really know the language well. Seems like I'm trying to do something simple: psuedocode : if true; return va1 else; return val2. Here's my attempt: http://pastie.org/10033803
hcnewsom has joined #ruby
<drocsid> Can somebody help me to understand what's wrong?
<jhass> drocsid: get rid of the { }
Sid05 has quit [Client Quit]
Sid05 has joined #ruby
jgt3 has joined #ruby
Sid05 has quit [Client Quit]
jespada has quit [Ping timeout: 264 seconds]
<jhass> also match = @fqdn.match(/us3sm2[a-z]+([0-9]+)r([0-9]{2})(.comp.prod.local)?/); if match; match[1]; else; 0; end (with ; being newlines)
workmad3 has joined #ruby
<jhass> drocsid: tryruby.org might be worth the 20 minutes ;)
sankaber has joined #ruby
shanlar- has quit [Ping timeout: 264 seconds]
<drocsid> jhass: ok, I should probably do that.
<drocsid> jhass: thanks, thought ruby used { } for some reason
<jhass> it does for two common things, but not for if statements ;)
<undeadaedra> two?
<undeadaedra> I have do; end
<undeadaedra> What’s the other?
<jhass> well, two and a half if I didn't miss anything
<jhass> hash
<undeadaedra> of course
<undeadaedra> 2obvious4me
jespada has joined #ruby
jottr has joined #ruby
threh has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
<apeiros_> hash literals, %-literals, blocks - did I miss something?
mikepack has quit [Remote host closed the connection]
<jhass> "#{string} interpolation" was my "and half" ;P
pengin has joined #ruby
threh has joined #ruby
<apeiros_> ah, right. so three things. one of them being two halfs :)
iamjarvo has joined #ruby
<apeiros_> is it just me or did removing AR from rails become less annoying? only 4 places I have to edit now.
jottr has quit [Ping timeout: 252 seconds]
jimms has quit []
sepp2k has quit [Quit: Konversation terminated!]
<undeadaedra> rails -O ?
<undeadaedra> rails new -O ?*
baweaver has quit []
<apeiros_> undeadaedra: from an existing rails project
<undeadaedra> ah
<undeadaedra> this is another story
<apeiros_> but yes, that option exists for a while I think. didn't know it had that short-cut, though :)
hmnhf has joined #ruby
<undeadaedra> -G is for no git, -O for no AR, -T for no tests
<undeadaedra> (I just created a project, so I remember :p )
pengin has quit [Remote host closed the connection]
ojacobson has quit [Quit: Leaving...]
jenrzzz has quit [Ping timeout: 256 seconds]
sngeth has quit [Ping timeout: 256 seconds]
pengin has joined #ruby
threh has quit [Ping timeout: 265 seconds]
reinaldob has joined #ruby
replay has quit [Remote host closed the connection]
replay has joined #ruby
shanlar has joined #ruby
jgt4 has joined #ruby
nfk has quit [Quit: yawn]
jgt3 has quit [Ping timeout: 245 seconds]
DEA7TH has quit [Ping timeout: 256 seconds]
spider-mario has quit [Remote host closed the connection]
replay has quit [Ping timeout: 244 seconds]
jespada has quit [Ping timeout: 256 seconds]
morenoh149 has quit [Ping timeout: 250 seconds]
hmnhf has quit [Quit: Konversation terminated!]
hmnhf has joined #ruby
jobewan has quit [Quit: Leaving]
_maes_ has quit [Ping timeout: 265 seconds]
keen___ has joined #ruby
pengin has quit [Remote host closed the connection]
rhllor has quit [Quit: rhllor]
keen__ has quit [Ping timeout: 252 seconds]
pengin has joined #ruby
icebourg has quit []
codecop has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
christiandsg has joined #ruby
ptrrr has quit [Quit: ptrrr]
lucianosousa has quit [Quit: lucianosousa]
reinaldob has quit [Remote host closed the connection]
jgt has joined #ruby
Peter___ has joined #ruby
plashchynski has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
paradoja has quit [Ping timeout: 255 seconds]
christiandsg has quit [Ping timeout: 252 seconds]
duncannz has quit [Max SendQ exceeded]
jgt4 has quit [Ping timeout: 246 seconds]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
arescorpio has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
karmatr0n has joined #ruby
HOrangeJewce has quit [Quit: Leaving.]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
trampi has joined #ruby
it0a has joined #ruby
leafybasil has joined #ruby
elfuego has joined #ruby
jespada has joined #ruby
pengin has quit [Remote host closed the connection]
danman has quit [Quit: danman]
pengin has joined #ruby
bradleyprice has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 252 seconds]
Ankhers has joined #ruby
smcquaid has joined #ruby
karmatr0n has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
smcquaid has quit [Client Quit]
PNDPO has joined #ruby
PNDPO has left #ruby [#ruby]
wicope has quit [Remote host closed the connection]
jenrzzz has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
lordkryss has joined #ruby
krisquigley has joined #ruby
jlast has joined #ruby
reinaldob has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jgt has quit [Ping timeout: 252 seconds]
n_blownapart has joined #ruby
baweaver has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
SegFaultAX has quit [Excess Flood]
jlast has quit [Ping timeout: 250 seconds]
krisquigley has quit [Ping timeout: 265 seconds]
SegFaultAX has joined #ruby
SegFaultAX has quit [Changing host]
SegFaultAX has joined #ruby
jgt has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
d10n-work has quit [Quit: Connection closed for inactivity]
jxpx777 has quit [Quit: Leaving...]
einarj has quit [Remote host closed the connection]
zacts has quit [Quit: Lost terminal]
nii2361 has joined #ruby
Takle has quit [Remote host closed the connection]
baweaver_ has joined #ruby
Limix has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
baweaver_ has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 245 seconds]
baweaver_ has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
spiderbyte has quit [Quit: WeeChat 1.0.1]
baweaver has quit [Read error: Connection reset by peer]
nii2361 has quit [Ping timeout: 245 seconds]
neanderslob has quit [Remote host closed the connection]
jusmyth has quit [Quit: Leaving.]
n_blownapart has quit []
Sawbones has joined #ruby
eat_multi has quit [Ping timeout: 246 seconds]
ki0 has quit [Remote host closed the connection]
martinbmadsen has joined #ruby
max96at is now known as max96at|off
jottr has joined #ruby
nemesit|znc has quit [Ping timeout: 272 seconds]
lucianosousa has joined #ruby
nemesit|znc has joined #ruby
neanderslob has joined #ruby
a1fa has joined #ruby
<a1fa> what does csv[3][3] do in CSV gem? 3rd row, 3rd column?
jgt1 has joined #ruby
jgt has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 246 seconds]
neanderslob has quit [Remote host closed the connection]
apeiros_ has joined #ruby
GambitK has joined #ruby
<GambitK> how do I make JSON.parse return a hash, is returning an array by default
jottr has quit [Ping timeout: 245 seconds]
Apocalypse has quit [Ping timeout: 255 seconds]
eat_multi has joined #ruby
<Radar> a1fa: impossible to know without context
<Radar> GambitK: Parse a JSON object and not an array of JSON objects.
triangles2 has joined #ruby
adriancb has joined #ruby
zachrab has quit [Remote host closed the connection]
<wallerdev> .gsub(/][/, '')
zachrab has joined #ruby
<wallerdev> lol
leafybasil has quit [Ping timeout: 245 seconds]
Apocalypse has joined #ruby
Apocalypse has joined #ruby
<GambitK> Radar: I'm getting it from a response.body from an application, this is what's sending: {"tags"=>["suspicious", "rdata"], "firsttime"=>"2015-03-12T06:49:39Z", "id"=>"ecfc279764196b80283c90ceedfbe5c78489a1cb54796e24c31ac8f2b7608640", "related"=>"05afbd68e280d9682ec4bdffee124ea5bcb355cc628f9ef227c251248bdd62c0", "protocol"=>6, "otype"=>"fqdn", "provider"=>"spamhaus.org", "portlist"=>nil, "observable
commmmodo has joined #ruby
<Radar> GambitK: !gist
<helpa> GambitK: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
commmmodo has left #ruby [#ruby]
triangles has quit [Ping timeout: 246 seconds]
olivier_bK has quit [Ping timeout: 272 seconds]
triangles3 has joined #ruby
leafybasil has joined #ruby
<a1fa> Radar: csv.parse
jlast has joined #ruby
jlast has quit [Remote host closed the connection]
tmi has quit [Ping timeout: 256 seconds]
DrShoggoth has quit [Quit: Leaving]
<a1fa> csv = CSV.parse(file)
slackbotgz has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<Radar> a1fa: Still missing so much context.
<Radar> what is the file?
slackbotgz has joined #ruby
<a1fa> a comma separated value
zmyrgel has quit [Ping timeout: 265 seconds]
jlast has quit [Remote host closed the connection]
triangles2 has quit [Ping timeout: 272 seconds]
Aswebb_ has joined #ruby
<Radar> Sigh
<Radar> I am not going to play 20 questions with you today. Goodbye.
pengin has quit [Remote host closed the connection]
<Radar> If you're not willing to give me straight answers just please go away.
zachrab has quit [Ping timeout: 244 seconds]
<a1fa> that was a straight answer
<Radar> No, it wasn't.
<Radar> I want to see the file and you're not showing it to me.
Notte has quit []
OrbitalKitten has joined #ruby
<Radar> GambitK: Point to where in that 107 lines of code you're seeing an array please.
<a1fa> i dont think file is important, neither are [3][3] i just used them as an example
neanderslob has joined #ruby
<Radar> a1fa: !fake
<helpa> a1fa: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
<a1fa> does it mean line 3 or header 3
CheeseBurga has left #ruby [#ruby]
deric_skibotn has quit [Ping timeout: 252 seconds]
<a1fa> or whatever.. i think file is insignificant
<a1fa> i am not finding this in the ruby doc
Apocalypse has quit [Ping timeout: 252 seconds]
HakN99 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<a1fa> i'm assuming it means row 3, column 3
OrbitalKitten has quit [Client Quit]
sevvie has quit [Ping timeout: 256 seconds]
threh has joined #ruby
jottr has joined #ruby
baroquebobcat has joined #ruby
<Radar> 1try
<Radar> !try
<helpa> Why don't you try it and find out for yourself?
fryguy9 has quit [Quit: Leaving.]
Filete has joined #ruby
<a1fa> good point
sevvie has joined #ruby
<Radar> thanks.
<GambitK> Radar: pleas refresh the page: https://gist.github.com/GambitK/b4dba6b3e1475da6ea42, the error is on line 108
<Radar> GambitK: Show me what result is
GaryOak_ has quit [Remote host closed the connection]
tmi_ has joined #ruby
CpuID has joined #ruby
paradoja has joined #ruby
Filete has quit [Client Quit]
mistermocha has quit [Ping timeout: 250 seconds]
<GambitK> Radar: is in the botton of the gist.github page, named result
Ankhers has joined #ruby
<Radar> Nope.
<Radar> Show me what object this line returns.
<Radar> p result or something
uptownhr has quit [Quit: uptownhr]
ghostpl_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
vivekananda has quit [Quit: Leaving]
<GambitK> Radar: {"tags"=>["suspicious", "rdata"], "firsttime"=>"2015-03-12T06:49:39Z", "id"=>"ecfc279764196b80283c90ceedfbe5c78489a1cb54796e24c31ac8f2b7608640", "related"=>"05afbd68e280d9682ec4bdffee124ea5bcb355cc628f9ef227c251248bdd62c0", "protocol"=>6, "otype"=>"fqdn", "provider"=>"spamhaus.org", "portlist"=>nil, "observable"=>"ns2.altairhost.com", "tlp"=>"amber", "group"=>["everyone"],
baroquebobcat has quit [Client Quit]
<Radar> Nope.
<GambitK> "altid_tlp"=>"green", "altid"=>"http://www.spamhaus.org/query/dbl?domain=adoptionagenciesworld.com", "rdata"=>["ns1.altairhost.com"], "reporttime"=>"2015-03-12T06:49:35Z", "confidence"=>16.086, "lasttime"=>"2015-03-12T06:49:35Z", "application"=>nil, "lang"=>"EN", "rtype"=>"NS"}
vivekananda has joined #ruby
<Radar> GambitK: !gist anything longer than 50chrs please
<helpa> GambitK: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
jottr has quit [Ping timeout: 256 seconds]
<Radar> GambitK: That object you're showing me is a Hash but what your code is saying is that it's an array.
<GambitK> yes
<Radar> So the object that you're showing me there is probably different to the one that is getting .keys called on it
<Radar> Show me the right object, please.
MatthewsFace has quit [Remote host closed the connection]
bhaak has quit [Ping timeout: 264 seconds]
jgt1 has quit [Ping timeout: 256 seconds]
bhaak has joined #ruby
RegulationD has quit [Remote host closed the connection]
<GambitK> Radar: 'puts results' just gives me this: https://gist.github.com/GambitK/b4dba6b3e1475da6ea42#file-result
Armand has joined #ruby
reinaldob has quit [Remote host closed the connection]
<Radar> I can't help you thenm.
<GambitK> GambitK: puts result
Armand is now known as Guest99640
<GambitK> Radar: :(
emacer has joined #ruby
Yzguy_ has joined #ruby
<Radar> GambitK: You're showing me a Hash and Ruby claims it's an Array. Ruby isn't lying here.
jusmyth has joined #ruby
<emacer> hi, I'm having trouble with bundle exec. I'm trying to run a backup job for openproject (written in rails), and I don't know how to get bundle exec to not throw errors. I installed via apt, and the ruby install is in a /opt/openproject/vendor directory. What do I need to do to set up my environment properly?
deric_skibotn has joined #ruby
<havenwood> emacer: What are you running and what errors are you getting? Gist it.
<GambitK> Radar: maybe a one dimensional array?
<Radar> GambitK: nope
Ankhers has quit [Ping timeout: 255 seconds]
<jhass> emacer: also how are you running the app itself?
<Radar> it's clearly showing up as a Hash
<emacer> havenwood, RAILS_ENV=production bundle exec rake backup:database:create
<Radar> GambitK: I can't help you here because I can't see the problem happening for myself.
triangles has joined #ruby
<emacer> jhass, an /etc/init.d/ script included, which is "magic" because it looks like it should just recursively call itself (well, all 5 of them do)
<emacer> havenwood, `ruby_21` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :ruby_20, :mri, :mri_18, :mri_19, :mri_20, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19,
<emacer> :mingw_20]
<GambitK> Radar: yes, it returns a one dimensional array, if i print result[0] i get the json object
<Radar> GambitK: Ohhhh passing it to puts must be passing the array to puts.
<Radar> GambitK: This is why I use p results instead ;)
jgt1 has joined #ruby
<havenwood> emacer: gem update bundler
<emacer> havenwood, so I got past that by putting it in my PATH, but it just gives me different errors, like: /opt/openproject-ce/vendor/bundle/ruby/2.1.0/bin/bundle:23:in `load': cannot load such file -- /usr/share/rubygems-integration/1.9.1/gems/bundler-1.3.5/bin/bundle (LoadError)
<jhass> emacer: that sounds like your bundler version is old. remove the package and sudo gem install bundler
<Radar> emacer: What OS?
<emacer> havenwood, the bundler I have to use wasn't installed system-wide
<emacer> Radar, ubuntu 14.04
<Radar> jhass: please don't sudo gem install gems
triangles3 has quit [Ping timeout: 272 seconds]
<Radar> emacer: Delete your Ruby install, follow ^
<Radar> emacer: Pretty much guaranteed sucess.
<Radar> Even though I wrote the initial draft while 6 ciders down
<emacer> Radar, this isn't a development environment
<havenwood> Radar: :) It's St. Paddy's day and the text is even green!
<GambitK> Radar: I just returned result[0] and now is a propper hash