apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
<pipework> It's a service like nickserv and chanserv.
<Radar> E.V.E.R.
<data-cat> Thanks, is helpful.
<pipework> Doesn't freenode clear banlists every april 1st?
<Radar> People who waste their time of people in this channel are not welcome.
Cubix_ has joined #ruby
<mwlang> heh. what did he do?
Cubix has quit [Ping timeout: 276 seconds]
infinitone has joined #ruby
nobitanobi has joined #ruby
<Radar> I mastered Ruby, I leave here now" and then continued to pester the channel.
<pipework> Certainly a seemingly annoying personality.
<pipework> Masterful ejection, I must say.
<Radar> Rather.
<mwlang> Radar: nice logger
<Radar> mwlang: thanks :)
<infinitone> sup
toretore has quit [Quit: This computer has gone to sleep]
Stalkr^ has quit [Quit: Leaving...]
emptyflask has joined #ruby
mary5030 has joined #ruby
<mwlang> I see by your logs I’m talking entirely too much this week and working not entirely enough.
<shevy> you are a big chatter
<mwlang> shevy: yeah…avoiding some grunt work.
lidenskap has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
<mwlang> ok, now that that’s out in the open, I’m gonna get it done.
sevenseacat has joined #ruby
_djbkd has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
<mwlang> speaking of which…is it possible to fork ruby processes (not just thread ‘em) so that each process can hit any of the cpu-cores? MRI Ruby 2.2
<pipework> Yeah.
<Radar> infinitone: hello
<drocsid> if I have a block
turtil has joined #ruby
<pipework> drocsid: You may want to put your whole question on one line, and failing that, try a gist.
kbarry has quit [Ping timeout: 240 seconds]
mary5030 has quit [Ping timeout: 272 seconds]
<mwlang> pipework: his block is writer’s block...
<mwlang> :-)
<drocsid> I want to use backticks with the block variable
woodruffw has joined #ruby
<drocsid> how do I do it?
<pipework> drocsid: You might want to explain what you're doing more fully. But try system
nobitanobi has quit [Remote host closed the connection]
<mistergibson> mwlang: might look into celluloid
<drocsid> {|variable| `/path/to/some/command --arg1 variable`}
AlphaAtom has quit [Read error: Connection reset by peer]
<Radar> drocsid: Did you try variable interpolation?
AlphaAtom has joined #ruby
scripore has joined #ruby
<drocsid> Radar: is that the same as string interpolation?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drocsid> wasn't sure if there was a special symbol to use for the block variable
juanpaucar has quit [Remote host closed the connection]
<Senjai> drocsid: {|variable| `/path/to/some/command --arg1 #{variable}`}
<Senjai> I think interpolation can be used in backticks
<Encapsulation> can you do anything with ruby
tvw has quit []
<Senjai> Encapsulation: yes
<Radar> drocsid: try it and find out :)
<mwlang> mistergibson: I’m digging through them thar docs now…It might be the trick I need…I was actually just thinking to fork and run rake task passing commandline argument…but if I can just spin up cells and that’ll span CPU cores, then that’s good, too.
<Encapsulation> is it really that easy to have concurrency
<Encapsulation> how does threading work
<zenspider> no. you can't do anything with ruby. you should use python.
<Encapsulation> ok
<Encapsulation> thats what I was wondering
<Encapsulation> I'm deciding between the two
<Encapsulation> coming from c++
<mwlang> Encapsulation: the answer to that question is different, depending on what version of Ruby you’re using.
<Encapsulation> I'd like to develop software for the pi
rahult has joined #ruby
mrsolo has quit [Quit: Leaving]
nanoyak has quit []
gaboesquivel has quit [Read error: Connection reset by peer]
<Encapsulation> zenspider, what are some reasons I might choose python over ruby?
infinitone has quit [Remote host closed the connection]
<Encapsulation> is ruby a "web language?
<mozzarella> have you never heard of ruby on rails?
<Encapsulation> I read about ruby and see rails, but there is more to it
<Encapsulation> ?
rahult is now known as rahult_
astrobun_ has joined #ruby
<Encapsulation> I have but what about normal ruby
rahult_ is now known as rahult
<havenwood> Encapsulation: Do you prefer blackberry cobbler or strawberry rhubarb pie?
<zenspider> Encapsulation: so we can avoid more questions like "can you do anything with ruby"
<Encapsulation> havenwood, blackberry cobbler by far
<zenspider> blackberry. no question
<havenwood> Encapsulation: The eat that!
<havenwood> Then*
<awwaiid> Encapsulation: one really fun thing on the pi done in ruby is Sonic Pi
_djbkd has quit [Remote host closed the connection]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
<Encapsulation> awwaiid, thank you. this is excellent
nobitanobi has joined #ruby
dorei has quit []
DynamicMetaFlow has joined #ruby
<awwaiid> ya, it's pretty fun. It is both written in ruby and you implement the sound generation in ruby -- it is basically a sound-generation IDE
tuelz has joined #ruby
P1RATEZ has joined #ruby
DynamicMetaFlow has quit [Client Quit]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
baweaver has joined #ruby
BTRE has joined #ruby
kappy has quit [Remote host closed the connection]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
rawrmonstar has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
nateberkopec has quit [Quit: Leaving...]
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
fschuindt has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
alderamin has joined #ruby
oo_ has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
CustosLimen has quit [Read error: Connection timed out]
nobitanobi has quit [Remote host closed the connection]
CustosLimen has joined #ruby
tkuchiki has joined #ruby
oo_ has quit [Remote host closed the connection]
lidenskap has quit [Remote host closed the connection]
mistermo_ has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
pontiki has joined #ruby
nobitanobi has joined #ruby
<pontiki> g'evening
oo_ has quit [Ping timeout: 252 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
FernandoBasso has quit [Quit: leaving]
oo_ has joined #ruby
casadei_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
DEA7TH has quit [Ping timeout: 252 seconds]
duderonomy has quit [Ping timeout: 250 seconds]
fella5s has quit [Read error: Connection reset by peer]
rahult has quit [Read error: Connection reset by peer]
rahult_ has joined #ruby
fella5s has joined #ruby
casadei_ has quit [Ping timeout: 246 seconds]
startupality has quit [Quit: startupality]
yfeldblum has joined #ruby
Igorshp has quit [Ping timeout: 276 seconds]
MatthewsFace has quit [Remote host closed the connection]
eyeamaye has quit [Quit: Leaving.]
charliesome has joined #ruby
marr has joined #ruby
michaeldeol has quit [Ping timeout: 256 seconds]
marr has quit [Client Quit]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
tuelz has joined #ruby
wallerdev has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
davedev24_ has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
robustus has joined #ruby
iotouch has joined #ruby
Channel6 has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
scripore has quit [Quit: This computer has gone to sleep]
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
iteratorP has joined #ruby
scripore has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
shakes has joined #ruby
bruno-_ has quit [Ping timeout: 255 seconds]
Spami has quit [Quit: This computer has gone to sleep]
AlphaAtom has quit [Read error: Connection reset by peer]
Akagi201 has joined #ruby
tuelz has quit [Ping timeout: 272 seconds]
CloCkWeRX1 has joined #ruby
casadei_ has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
neanderslob has quit [Read error: Connection reset by peer]
TheNet has joined #ruby
sinkensabe has joined #ruby
<TheNet> was ruby-lang.org redesigned?
iotouch has quit [Quit: This computer has gone to sleep]
neanderslob has joined #ruby
<pontiki> looks like
AlphaAtom has joined #ruby
d34th4ck3r has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<sevenseacat> that was done a while ago
<pontiki> shows how often i go there :)
RegulationD has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
jefus has left #ruby ["Leaving"]
AlphaAtom has quit [Max SendQ exceeded]
jenrzzz has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
<pontiki> man, ruby.com goes to kay jewelers :P
willharrison has joined #ruby
zz_barkerd427 is now known as barkerd427
dstarh has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
MatthewsFace has joined #ruby
nobitanobi has quit [Remote host closed the connection]
qiukun has joined #ruby
charliesome has joined #ruby
qiukun has quit [Client Quit]
CloCkWeRX1 has quit [Quit: Leaving.]
AlphaAtom has joined #ruby
rodferso1 has quit [Quit: leaving]
iotouch has joined #ruby
CloCkWeRX has joined #ruby
tus has quit []
baweaver has quit [Remote host closed the connection]
Spami has joined #ruby
avahey has joined #ruby
KrzaQ has joined #ruby
multi_io has quit [Ping timeout: 276 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
multi_io has joined #ruby
starless has joined #ruby
tcrypt has quit [Remote host closed the connection]
d34th4ck3r has quit [Quit: zzz]
juanpablo_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
AlphaAtom has joined #ruby
ndrei has quit [Ping timeout: 276 seconds]
ebernhardson is now known as ebernhard|night
tuelz has joined #ruby
mengu has joined #ruby
juanpablo_ has quit [Ping timeout: 272 seconds]
Igorshp has quit [Ping timeout: 272 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
duderonomy has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
TheNet has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
simpyll has joined #ruby
DerisiveLogic has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlphaAtom has quit [Read error: Connection reset by peer]
dwithers has joined #ruby
chipotle has joined #ruby
TheNet has joined #ruby
dwithers1 has joined #ruby
pl1ght has quit [Read error: Connection reset by peer]
amclain has joined #ruby
mary5030 has joined #ruby
TheNet has quit [Client Quit]
AlphaAtom has joined #ruby
fedexo has joined #ruby
TheNet has joined #ruby
chipotle has quit [Max SendQ exceeded]
TheNet has quit [Client Quit]
mistermocha has joined #ruby
dwithers has quit [Ping timeout: 265 seconds]
Cubix_ has quit [Quit: Leaving]
chipotle has joined #ruby
Akagi201 has quit []
starless has quit [Quit: Leaving]
Cust0sLim3n has quit [Read error: Connection timed out]
chipotle has quit [Max SendQ exceeded]
Cust0sLim3n has joined #ruby
chipotle has joined #ruby
kwekuanase has quit [Quit: Connection closed for inactivity]
scripore has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
_seanc_ has joined #ruby
drocsid has quit [Quit: leaving]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CustosLimen has quit [Read error: Connection timed out]
AlphaAtom has quit [Read error: Connection reset by peer]
CustosLimen has joined #ruby
scripore has joined #ruby
bruno- has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
cryptograms has joined #ruby
AlphaAtom has joined #ruby
jeromelanteri has joined #ruby
jzigmund has quit [Ping timeout: 272 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
RegulationD has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Guest1421 has quit [Ping timeout: 255 seconds]
sinkensabe has quit [Ping timeout: 256 seconds]
Filete has quit [Ping timeout: 256 seconds]
d34th4ck3r has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
scripore has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rahult has joined #ruby
crazydiamond has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeromelanteri has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
swgillespie has joined #ruby
Papierkorb has quit [Ping timeout: 256 seconds]
Guest1421 has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
n008f4g_ has quit [Ping timeout: 265 seconds]
jgt has quit [Ping timeout: 256 seconds]
lessless has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dstarh has joined #ruby
joelataylor has quit [Quit: Be back later ...]
joelataylor has joined #ruby
krz has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mocha has joined #ruby
cyberarm_ has quit [Quit: Leaving]
mocha is now known as Guest53642
Guest1421 has quit [Ping timeout: 264 seconds]
joelataylor has quit [Ping timeout: 244 seconds]
jeromelanteri has joined #ruby
ISK has joined #ruby
AirStar has joined #ruby
AirStar has left #ruby [#ruby]
tuelz has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
ISK has quit [Quit: leaving]
User458764 has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
ohaibbq has quit [Remote host closed the connection]
bootstrappm has left #ruby [#ruby]
willharrison has joined #ruby
amystephen has quit [Quit: amystephen]
fschuindt has quit [Ping timeout: 244 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
krz has quit [Ping timeout: 258 seconds]
troulouliou_dev has quit [Quit: Leaving]
emptyflask has quit [Read error: No route to host]
emptyflask has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
akurilin has joined #ruby
Guest53642 has quit [Ping timeout: 265 seconds]
<akurilin> question: can i both pipe something into a ruby script's stdin and pass an argument into it?
<akurilin> looks like ARGF isn't too fond of that
<ebonics> akurilin, why not?
scripore has joined #ruby
duderonomy has quit [Ping timeout: 272 seconds]
hmsimha_ has joined #ruby
<akurilin> ebonics: looks like argf also contains the arguments instead of just stdin
<akurilin> e.g. cat foo.txt > ./myscript 1 2 3
<akurilin> err
<akurilin> supposed to be a pipe :)
<ebonics> oh you mean from command line
<akurilin> yes
fschuindt has joined #ruby
mitchellhenke has joined #ruby
<ebonics> cat blah.txt | ruby app.rb arg1 arg2
<ebonics> ?
<akurilin> I already have /usr/bin/env ruby inside the script so it's the same
<akurilin> at least I hope :|
CustosLimen has joined #ruby
kbarry has joined #ruby
Joufflu has joined #ruby
emptyflask has quit [Write error: Connection reset by peer]
<ebonics> i dont understand why there would be an issue
<akurilin> Oh looks like I need to shift ARGV or ARGF will still contain the first argument
emptyflask has joined #ruby
Cust0sLim3n has quit [Max SendQ exceeded]
<akurilin> Got it, thank you
Cust0sLim3n has joined #ruby
rahult is now known as rahult_
frem has quit [Quit: Connection closed for inactivity]
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
braincrash has quit [Quit: bye bye]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest1421 has joined #ruby
tjbiddle has joined #ruby
braincrash has joined #ruby
sinkensabe has joined #ruby
ponga has joined #ruby
Pupeno has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has quit []
mary5030 has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 240 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
chipotle has quit [Quit: cheerio]
parduse has joined #ruby
P1RATEZ has quit []
emptyflask has quit []
diegoaguilar has quit [Quit: Leaving]
hgl- has joined #ruby
jtdowney has joined #ruby
pontiki has quit [Ping timeout: 258 seconds]
tjbiddle has quit [Ping timeout: 245 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MyMind has joined #ruby
Sembei has quit [Ping timeout: 252 seconds]
bmurt has quit []
laurentide has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
hgl- is now known as hgl
lidenskap has joined #ruby
krz has joined #ruby
davedev24_ has quit []
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tjbiddle has joined #ruby
rahult has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
Guest1421 has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
jeromelanteri has joined #ruby
wolfleemeta_ has quit [Remote host closed the connection]
wolfleemeta_ has joined #ruby
Fezzler has joined #ruby
oo_ has quit [Remote host closed the connection]
Igorshp has quit [Ping timeout: 265 seconds]
zenguy_pc has quit [Ping timeout: 246 seconds]
St1gma has joined #ruby
zenguy_pc has joined #ruby
baweaver has joined #ruby
tuelz has joined #ruby
<St1gma> anybody with some sinatra experience? What would be the best way of terminating a session when a user logs in and provide them with a new authenticated session?
joelataylor has joined #ruby
amystephen has joined #ruby
jtdowney has quit []
<Radar> huh?
fschuindt has quit [Ping timeout: 272 seconds]
jeromelanteri has quit [Ping timeout: 240 seconds]
tuelz has quit [Ping timeout: 258 seconds]
Deele has joined #ruby
simpyll has quit [Ping timeout: 265 seconds]
joelataylor has quit [Ping timeout: 265 seconds]
<Encapsulation> is ruby better than emerald
<Radar> Encapsulation: Certainly.
<Encapsulation> are there any major limitations or could I use ruby to develop a full application
<Radar> "Full application" is very vague.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<mwlang> Encapsulation: still asking language questions? I suggest googling “comparison of programming languages” and start reading if you want in-depth treatment on the topic.
<Encapsulation> embedded control software for a hwardware device
<Encapsulation> mwlang, I'm doing a bit of that as well
<Encapsulation> trying to pull info from all sources
<Radar> Encapsulation: And what is Emerald anyway?
<Encapsulation> another language
<Radar> Link?
<Radar> You can't seriously be looking at that as an alterantive.
<Radar> Can you please not troll in here?
<Radar> It doesn't go well for those who troll.
<Encapsulation> it doesnt say much about it
<Encapsulation> I wasn't sure if they were somehow related
<Radar> Their only relation is that they're named after precious gemstones.
<sevenseacat> we've had worse trolls.
<Encapsulation> I see that now
<Radar> sevenseacat: indeed
bruno- has joined #ruby
jeromelanteri has joined #ruby
mallu has joined #ruby
Channel6 has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
cryptograms has quit [Quit: Leaving]
rowie_ has joined #ruby
MyMind has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
hmsimha_ has quit [Quit: Leaving]
simpyll has joined #ruby
hmsimha__ has joined #ruby
charliesome has joined #ruby
ponga has quit [Quit: Leaving...]
rowie_ has left #ruby [#ruby]
RegulationD has joined #ruby
parduse has quit []
jenrzzz has joined #ruby
Pisuke has joined #ruby
hmsimha__ is now known as hmsimha
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
RegulationD has quit [Ping timeout: 272 seconds]
Eiam_ has joined #ruby
<shevy> there is a language called emerald?
<shevy> so we have... ruby ... perl ... crystal ...
<shevy> animal languages... python... falcon ... hmm
<mwlang> Encapsulation: at the end of the day, the choice of language to use for any application must be made based on task at hand and whether its the right tool for the job. If you’re looking for *the* language that’s going to get you hired somewhere making the big bucks and you don’t care what you’re building with that language, then hit tieboe’s language rankings and pick on in the top 10 and start mastering it.
<mwlang> Encapsulation: on the other hand, if you’re looking to do something rather specific, like say, build a website that can talk to a database backend and hads scads of how-to’s on doing that, then pick Ruby. If you’re wanting to do the same but think speed is paramount importance, then pick node.js, python, or php.
sinkensabe has joined #ruby
<mwlang> shevy: then you have the one letter languages…. a, b, c, k, j, r, …
yfeldblum has joined #ruby
<mwlang> two beers and I can’t type straight no more. (yeah, I’m a lightweight). I’m done troll slayin’. Off to bed I go.
<ebonics> mwlang, did you actually miss d?
<ebonics> m8 u trying to pick a fight
fedexo has quit [Ping timeout: 256 seconds]
<mwlang> ebonics, I typed d, thought about it, couldn’t remember with absolute certainity and removed it…I blame the beers. ;-)
sinkensabe has quit [Ping timeout: 264 seconds]
<ebonics> thot so m8
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
P1RATEZ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
psy_ has quit [Remote host closed the connection]
Fezzler has quit [Quit: Leaving]
iotouch has quit [Quit: This computer has gone to sleep]
iotouch has joined #ruby
axisys has quit [Ping timeout: 240 seconds]
ych_ has joined #ruby
Musashi007 has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
mary5030 has joined #ruby
<kbarry> I am wondering if its possible to install gems for "the system" alltogether?
<kbarry> instead of per user?
<Radar> kbarry: Why do you want to do that?
Channel6 has quit [Quit: Leaving]
axisys has joined #ruby
d34th4ck3r has quit [Quit: zzz]
bb010g has joined #ruby
<kbarry> I am trying to install "redmine" and am getting an error telling me that i need a higher version of bundler, that 1.1.4 is bieng used.
<kbarry> and apparently bundler 1.1.4 is being installed when i apt-get bundler
iotouch has quit [Quit: This computer has gone to sleep]
arescorpio has quit [Excess Flood]
<kbarry> but when i apt-get remove bundler its uninstalling rails3 aswell.....
astrobun_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
<kbarry> I have bundler 1.9.* installed on the account thats running the app, but apparently itsusing the version that comes with the package.
<kbarry> .......
<kbarry> I'm a ruby newb, and this is a bit of a trick to troubleshoot for me.
jeromelanteri has quit [Ping timeout: 264 seconds]
jeromelanteri has joined #ruby
Sembei has joined #ruby
oo_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Pisuke has quit [Ping timeout: 265 seconds]
<shevy> kbarry isn't that the default when you do gem install bla.gem?
<shevy> like on my system gems would be installed into /usr/lib/ruby/gems/
<kbarry> Not sure. I know that each account seems to have a different set of gems installed.
<kbarry> ie, as root, gem list bundler shows one set
<shevy> yeah, that's bundler screwing things up. you can use "gem" just fine and ahve it installed system wide
thatslifeson has joined #ruby
<Radar> kbarry: Don't install Ruby things with apt-get.
<kbarry> I didn't (inherited it)
pwnz0r_ has joined #ruby
pwnz0r_ has quit [Remote host closed the connection]
<kbarry> And i am a newb
<shevy> awww
<shevy> debian-ruby
<shevy> these are annoying
<kbarry> when i uninstalled bundler with apt-get remove bundler, i lose rails aswell. yet, rails is installed with the use running the website.
<kbarry> ......
<kbarry> wait, are you saying that this is tricky because its debian?
<shevy> they use another gem path by default for instance
<shevy> mkmf is usually also not available by default
<kbarry> (all my experience is w/ centos, this is my first time working with debian, so....... not sure what is normal....
<Radar> I'm saying it's tricky because the Debian package maintainers fail to understand how to setup Ruby correctly.
<shevy> normal is what the plain sources are doing
<Radar> Use ruby-install + chruby and you'll be fine
<Radar> And why are you even wanting to use Redmine anyway? There are better tools out there that do the same thing.
<Radar> What does Redmine provide that you care about?
<kbarry> ticket system,
<kbarry> Free
<Radar> GitHub
pwnz0r_ has joined #ruby
<Radar> BitBucket
<kbarry> Private
<Radar> BitBucket can be private + free
<Radar> Bonus: you don't have to host it yourself.
<kbarry> I hear you.
<kbarry> I have only recently started using redmine (Can you tell I am new here?)
casadei_ has quit []
<kbarry> but i understand we are using it mostly for ticket system.,
oo_ has quit [Ping timeout: 264 seconds]
<Radar> I strongly advise switching away from that to something else.
MasterPiece has quit [Quit: Leaving]
krz has quit [Ping timeout: 250 seconds]
<kbarry> from redmine to something else?
kenndel_ has quit [Ping timeout: 256 seconds]
<kbarry> Have any of you used the stnad-along appliace
<kbarry> ir bitnami?
_djbkd has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
<Radar> Yes, go from Redmine to Bitbucket or Trello.
Musashi007 has joined #ruby
konsolebox has joined #ruby
pocketprotector has joined #ruby
oo_ has joined #ruby
<sevenseacat> there are so, so many online services that offer ticket tracking and basic project management
areologist has joined #ruby
<sevenseacat> i can see the appeal of redmine but honestly, not worth the hassle
rippa has joined #ruby
<Nilium> We just use GitLab at work.
<areologist> peace and long life, rubyists
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
avahey has quit [Quit: Connection closed for inactivity]
<Nilium> Self-hosted, since we didn't want to pay for stuff.
ohaibbq has joined #ruby
<sevenseacat> see: not worth the hassle
workmad3 has joined #ruby
<Nilium> It has basic issues, that's all I need. If I wanted something more, I'd use Jira.
malcolmva has quit [Ping timeout: 250 seconds]
<kbarry> but jira isnt free is it?
<Nilium> Well, I'd use YouTrack if I didn't have to convince people to use it over Jira.
<Nilium> Jira isn't free, but it costs like $10 for 10 people.
rejerson69 has quit [Remote host closed the connection]
<Nilium> And as long as I limit it to our dev team, the next license after that is all we should need.
<areologist> What are the best sites, free or sub, for learning and keeping current with Ruby? I'd like to upgrade Ruby from its current position in my skill set. For .NET I use Pluralsight.com, for JS-related things I use egghead.io and frontendmasters.com... So that kind of thing. Thanks!
<shevy> never heard of any of that
<sevenseacat> we use pivotal tracker at work for project management... it does the job, kinda
cgrieger^away is now known as cgrieger
<Nilium> We also use Asana at work. By we I mean people who are not me.
<Nilium> areologist: https://www.ruby-lang.org/
<Nilium> I don't know what else you mean by keeping current.
mistermocha has joined #ruby
<sevenseacat> Nilium: spoonfeeding distilled information, i presume.
psy has joined #ruby
amystephen has quit [Quit: amystephen]
<sevenseacat> pluralsight also has a lot of ruby content.
thirdknife has joined #ruby
doritostains has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<shevy> areologist you could scavenge the ruby-forum regularly :D https://www.ruby-forum.com/
<shevy> sometimes there are blogs elsehwere but they are dispersed
<shevy> I liked the peter cooper ones but he seems to have given up
<zenspider> areologist: pluralsight bought peepcode, so it has a lot of ruby content
jenrzzz has quit [Ping timeout: 264 seconds]
<sevenseacat> pluralsight also bought codeschool
<zenspider> some of it is older... but usually that doesn't matter
Pupeno has quit [Quit: Leaving...]
<areologist> yes, "spoonfeed distilled content is kind of correct". for my focus platforms I try to read at least one book a month, listen to podcasts during exercise, subscribe to the mailing lists, read release notes for tooling and frameworks that I use, follow the best blogs, and continually experiment and explore.. The video sites like egghead.io held particularly with the latter.
<sevenseacat> i have a five-hour plane ride tomorrow that has to use up one of my professional development days from work. recommend me stuff to read/do
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nilium> Learn Go?
<areologist> I've yet to get *that* into Ruby but I'd like to, so seeing what people have to say with respect to resources. And thank you, those who have replied so far.
lidenskap has quit [Remote host closed the connection]
DynamicMetaFlow has quit [Quit: Leaving]
<diegoviola> I tend to read source code when traveling
<Nilium> Could study the Quake 1 engine source code.
<diegoviola> source code I wouldn't usually read otherwise
<Nilium> That said, that's code I'd read for fun.
<sevenseacat> eh i'll probably go on a book-buying spree and then not read any of them
<pipework> Just don't go on a book buying spree.
<pipework> I don't know if books about spree would be worth it.
<sevenseacat> lol
<areologist> Looking now and indeed, pluralsight has a decent amount of Ruby content.
Cust0sLim3n has quit [Ping timeout: 265 seconds]
<Nilium> I still have a pile of books on walled communities that I need to get through.
<shevy> I can't recommend any books because the books I read are fat, non-computer science-related books
<areologist> I buy more books than I can read too. Plenty of obsolete Java and Flex and DirectX 9 books on my shelf. ha
felixjet__ has joined #ruby
<shevy> omg java books
<Nilium> I stopped buying most programming books.
* sevenseacat looks at Programming Elixir
<Nilium> Programming Pearls was the last one I got.
<diegoviola> gosh, never in my 15 years of using linux a DE frustrated me as much as GNOME
pwnz0r_ has quit [Remote host closed the connection]
<diegoviola> GNOME 3
<shevy> diegoviola did you use unity
malcolmva has joined #ruby
<pipework> I buy lots of ebooks.
<Nilium> Insert insistence that Fluxbox is the correct WM/desktop thing combo.
<shevy> and you read them as well?
<areologist> Elixir? Friend of mine who hits a lot of conferences (and a Rubyist, incidentally) was at an Elixir conference recently and said it was the best conference he'd been to in a while.
crus has joined #ruby
<diegoviola> shevy: yes, frustrating too, but GNOME frustrated me more because I actually tried to use it, I didn't use unity as much
MuffinPimp_ has joined #ruby
<areologist> By "recently" I suppose I mean late last year. time flies..
<shevy> diegoviola yeah GNOME is for eye candy, use xfce or fluxbox :>
<diegoviola> with GNOME it feels like they took all the possible bad decisions and smashed it into a DE to annoy users on purpose
<Nilium> Alternatively: tiling WMs.
andrew-l` has joined #ruby
<pipework> My favorite DE is just a full screen terminal emulator.
<diegoviola> shevy: GNOME looks nice, sure
<Nilium> My favorite DE is Mac OS.
<pipework> TTY's just don't have the eye candy I need.
Cust0sLim3n has joined #ruby
<diegoviola> pipework: unless you are using kmscon
jerryberry__ has joined #ruby
<diegoviola> that will give you some eyecandy
musty_ has joined #ruby
<pipework> Nilium: The correct way to refer to that is _windowserver
<diegoviola> on the tty
patteh has joined #ruby
<Nilium> And then I just spend all day with three monitors running iTerm2 fullscreen.
<diegoviola> like 256 colors and antialiased fonts on the tty
kbarry_ has joined #ruby
<diegoviola> plus other niceties
<diegoviola> I think it can do more than 256 colors actually
<Nilium> pipework: That would be correct if I said window manager.
<pipework> Nilium: _windowserver does more than that, or appears to.
<pipework> It's fun to kill.
<Nilium> Been there, done that, not trying it twice.
<pipework> diegoviola: Huh, Owl be able to get this to run on a TTY?
orionstein_ has joined #ruby
dyce_ has joined #ruby
<pipework> That'd be pretty great.
<diegoviola> shevy: I would use fluxbox/openbox/i3 but I can't find a terminal emulator that gets the copy/paste right
<Nilium> You just need more modifier keys.
jobewan_ has joined #ruby
sinkensabe has joined #ruby
thefynx_ has joined #ruby
<Nilium> And a Linux DE that uses meta as a Mac OS command-like key.
PaulePan1er has joined #ruby
ccooke_ has joined #ruby
<Nilium> Instead of the weird obsession with imitating Windows keys
xiphiasx_ has quit [Quit: sec]
Dopagod has joined #ruby
tommylom1ykins has joined #ruby
gigetoo_ has joined #ruby
crus` has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
<pipework> diegoviola: Oh I see, the note makes sense.
<pipework> Neat, thanks!
<diegoviola> pipework: you just disable agetty and enable kmscon, you don't have to disable all agettys, you can enable kmscon just for one or two ttys and so on
<diegoviola> yeah sure
wookiehangover_ has joined #ruby
<diegoviola> but it requires KMS (kernel mode setting), that is, free drivers like intel/nouveau/radeon
<diegoviola> afaik
ukd1_ has joined #ruby
kent\n_ has joined #ruby
kent\n_ has quit [Changing host]
kent\n_ has joined #ruby
jenrzzz has joined #ruby
<pipework> diegoviola: I virtualize my lunixen these days, so perhaps it'll work fine.
<diegoviola> you can have comic sans in your tty with this
nnnn has joined #ruby
<pipework> If not, I can find another way to get it.
<diegoviola> pipework: it should
rejerson69 has joined #ruby
<pipework> fuck yeah
<diegoviola> it links to freetype iirc
<diegoviola> so any fonts should work
spider-mario has quit [Ping timeout: 256 seconds]
<diegoviola> not sure
mosez_ has joined #ruby
maloik has joined #ruby
<diegoviola> waiting for my new ThinkPad T450
<diegoviola> I'll remove that windows crap and install arch
Musashi007 has quit [Quit: Musashi007]
<pipework> Slackware!
kent\n has quit [Killed (orwell.freenode.net (Nickname regained by services))]
kent\n_ is now known as kent\n
kloeri_ has joined #ruby
<Nilium> Also known as best distro.
juanpablo_ has joined #ruby
<diegoviola> heh
avelldiroll has quit [Ping timeout: 245 seconds]
matled- has joined #ruby
<Nilium> It only took six hours and about ten reboots for my Windows 8 VM to successfully install updates.
<Nilium> Good job, Windows.
sinkensabe has quit [Ping timeout: 252 seconds]
<Nilium> Oh wait, it might've failed the updates.
<pipework> Nilium: Certain things cannot change in the universe. Change and windows installs taking no less than 4 reboots.
Igorshp has joined #ruby
<diegoviola> kmscon is actually a good solution if you are using vim/emacs and want to have 256 colors (or more) so you can switch between X/Wayland and the TTY and still have those nice colors. agetty tends to degrade those colors because it doesn't support anything more than 8 colors (afaik)
<Nilium> This wasn't even an install.
hanmac1 has joined #ruby
<Nilium> It was just running Windows update.
brixen_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
<Nilium> And then it failed and got in a reboot cycle where it kept telling me it was reverting changes.
<pipework> diegoviola: Yeah, that checks out here. I've always just dealt with it because I never tried to replace agetty.
<pipework> I'm super stoked to try.
<diegoviola> it's a pain when you are on vim and then you Ctrl + Alt + F4 and then your vim breaks there (colors)
daed_ has joined #ruby
mr_rich101 has joined #ruby
<diegoviola> kmscon fixes this
RedDwarf has joined #ruby
<Nilium> Going to have to keep kmscon in mind for my work machine.
scripore has quit [Quit: This computer has gone to sleep]
<diegoviola> I wish I could move to a modern editor sometimes but there's nothing that beats vim yet
thirdknife_ has joined #ruby
<diegoviola> f*ck sublime
<Nilium> I went from Sublime to vim, but that was for semi-petty reasons
<Nilium> i.e., Sublime was crashing a lot, I got impatient, and finally just went back to vim.
parduse has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<Nilium> The crashes were proooobably my fault but I really don't care to diagnose that stuff.
<areologist> I've been using Atom lately in cases where I'd have used Sublime
<Nilium> I object to Atom on moral grounds.
<pipework> I'm pretty into vim.
juanpablo_ has quit [Ping timeout: 272 seconds]
<areologist> Can't vouch for its Ruby experience
bier_ has joined #ruby
<Nilium> Using an editor that's just stuffed into a browser window isn't my idea of fun.
<diegoviola> Vim is nice but sometimes I have to admit I want a modern editor with real colors, gvim doens't cut it
<Nilium> That way lies madness.
<pipework> I even know a good amount of vim compatibility mode.
scripore has joined #ruby
<diegoviola> neovim is not there yet
<pipework> It's frustrating, but nice that I can use an editor without configuration.
<Nilium> I only use terminal vim, but I'm not really hurting for colors
thatslifeson has quit [Remote host closed the connection]
<pipework> I use vim within tmux mostly.
Igorshp has quit [Ping timeout: 252 seconds]
thirdknife has quit [*.net *.split]
rippa has quit [*.net *.split]
braincrash has quit [*.net *.split]
kbarry has quit [*.net *.split]
Deck` has quit [*.net *.split]
jobewan has quit [*.net *.split]
A124 has quit [*.net *.split]
gigetoo has quit [*.net *.split]
maloik_ has quit [*.net *.split]
jerryberry_ has quit [*.net *.split]
thefynx has quit [*.net *.split]
dwn has quit [*.net *.split]
matled has quit [*.net *.split]
orionstein has quit [*.net *.split]
daed has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
andrew-l has quit [*.net *.split]
Zackio has quit [*.net *.split]
SHyx0rmZ has quit [*.net *.split]
musty has quit [*.net *.split]
ping-pong has quit [*.net *.split]
felixjet_ has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
kloeri has quit [*.net *.split]
mr_rich102 has quit [*.net *.split]
brixen has quit [*.net *.split]
patteh_ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
mosez has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
dyce has quit [*.net *.split]
vroomanj has quit [*.net *.split]
ccooke has quit [*.net *.split]
GnuYawk has quit [*.net *.split]
ukd1 has quit [*.net *.split]
bier has quit [*.net *.split]
matled- is now known as matled
gigetoo_ is now known as gigetoo
MuffinPimp_ is now known as MuffinPimp
wookiehangover_ is now known as wookiehangover
* pipework rides the netsplit
ping-pong has joined #ruby
thatslifeson has joined #ruby
vroomanj has joined #ruby
<areologist> Doesn't JetBrains make a Ruby IDE? Is that popular at all?
rawrmonstar has quit [Quit: Textual IRC Client: www.textualapp.com]
thatslifeson has quit [Remote host closed the connection]
shakes has quit [Quit: Leaving]
<pipework> rubymine? Fairly.
<pipework> People who seem to like IDEs also seem to like Rubymine.
<Nilium> Stopped using tmux with it 'cause I couldn't find an acceptable prefix key that didn't swallow a key I wanted in vim.
<pipework> Nilium: I just use ^a
braincrash has joined #ruby
<pipework> Then I just press ^a^a to send ^a to vim.
tuelz has joined #ruby
<areologist> Having a handy debugger and tools for refactoring and things like that is nice, I suppose
andikr has joined #ruby
<Nilium> I have C-a bound to jump to the start of the line since I borrowed that from emacs.
<Nilium> C-a and C-e, basically.
<pipework> Or really, (^a*nested_tmuxen) + ^a
wldcordeiro_ has joined #ruby
<pipework> Nilium: Pressing ^a twice isn't a big deal though.
<Nilium> It's sufficiently annoying.
iotouch has joined #ruby
<pipework> Nilium: It's something I got used to. Seemed silly to let bother me and then it stopped bothering me.
d34th4ck3r has joined #ruby
brixen_ is now known as brixen
mallu has quit [Ping timeout: 246 seconds]
SOLDIERz has joined #ruby
tkuchiki_ has joined #ruby
<shevy> I can't be friends with you vimsters out there
tuelz has quit [Ping timeout: 258 seconds]
<areologist> A couple more noob questions... It's been a while since I've gone down the Ruby path... 1. Is RSpec still the way to go for testing? 2. What are people using for web sockets and/or REST with Ruby?
techsethi has joined #ruby
nanoyak has joined #ruby
<pipework> areologist: RSpec is a way to go. I'm fond of minitest.
joelataylor has joined #ruby
<sevenseacat> rspec is awesome. i like it a lot.
<pipework> As for wobsockets, thin-based stuff seems to be what people are into.
<zenspider> for screen (I don't use tmux) I remapped from ^a to ^], since that's the escape for telnet and nobody telnets anymore
hakunin has joined #ruby
tkuchiki has quit [Ping timeout: 258 seconds]
<shevy> I used to telnet +20 years ago to play a MUD!
<areologist> interesting. thanks!
<pipework> zenspider: Except when I'm on windows and have no time for that nonsense when trying to connect to a socket with a plaintext protocol.
dented42 has quit [Quit: Textual IRC Client: www.textualapp.com]
<pipework> But then again, I don't tmux on windows either, so your point stands.
<shevy> lots of mention of windows here
<pipework> shevy: Just try not to get defenestrated.
<areologist> I think the Thin website was designed for the original Gameboy
Luyt__ has quit [Ping timeout: 258 seconds]
Joufflu has quit [Read error: Connection reset by peer]
joelataylor has quit [Ping timeout: 265 seconds]
A205B064 has quit [Ping timeout: 240 seconds]
<baweaver> shevy: </3
<shevy> yo beaver
Guest90 has joined #ruby
_seanc_ has quit [Quit: _seanc_]
Guest90 has quit [Client Quit]
konsolebox has quit [Ping timeout: 258 seconds]
A124 has joined #ruby
parduse has quit []
d34th4ck3r has quit [Quit: zzz]
A124 is now known as Guest36132
<areologist> anyone into reactive extensions for Ruby, or some other attempt at the reactive paradigm in Ruby?
SouL_|_ has quit [Ping timeout: 272 seconds]
lidenskap has joined #ruby
atom3_ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
konsolebox has joined #ruby
psy has quit [Disconnected by services]
parduse has joined #ruby
psy_ has joined #ruby
lessless has joined #ruby
<hanmac1> areologist: what are "reactive extensions" ?
atom3 has quit [Ping timeout: 276 seconds]
sinepreggin has joined #ruby
<pipework> hanmac1: Functional reactive programming.
<pipework> Basically, when data comes in, shit happens.
<sevenseacat> i'm glad i'm not the only one who has no idea what that means.
<areologist> libraries for composable async and events via observables, and concurrency with schedulers, adn some other goodies
<pipework> areologist: Look at celluloid
<areologist> ooh, actor-based. thanks, pipework
Hijiri has joined #ruby
krz has joined #ruby
<hanmac1> areologist: apropos about "observable" stuff, did you also creckout http://ruby-doc.org/stdlib-2.2.2/libdoc/observer/rdoc/Observable.html ? maybe it already does what you want
parduse has quit []
MatthewsFace has quit [Remote host closed the connection]
* pipework crecks out with his dreck out.
<sinepreggin> why can't self be renamed to current_object?
<pipework> sinepreggin: Why would you ever want that?
fabrice31 has joined #ruby
<sinepreggin> because it makes a lot more sense in english
<pipework> sinepreggin: Not really, no.
<pipework> self is the basis of metaprogramming.
<pipework> The notion of self is central to it.
<areologist> thanks, hanmac1, I'll take a look at that.
<sinepreggin> central to the current object
<sinepreggin> it would be nice if self was renamed to current_object
<pipework> sinepreggin: Do you refer to you as 'your_current_person'?
<pipework> my_current_person
<pipework> sinepreggin: It would be a worthless change for the sake of change.
<pipework> Feel free to try to suggest it at bugs.ruby-lang.org but you'll probably be summarily shot down.
<sinepreggin> where is self located? and what kind of repercussions would i face if i change the name?
<sinepreggin> pipework: i will be shot down because of people being used to it
<pipework> sinepreggin: You can define a method called #current_object if you want.
<sinepreggin> and set #current_object to self?
<pipework> yup.
<sinepreggin> wouldn't that make the code slower though?
<areologist> there was a talk at a Ruby conference years back in which the speaker was warning that Ruby may be the next Scheme if the Ruby community doesn't make nice with the enterprise domain etc...
<pipework> sinepreggin: not enough to really care.
<pipework> areologist: Scheme is pretty great, but I bet they meant with regard to the commercial market?
krz has quit [Ping timeout: 250 seconds]
tagrudev has joined #ruby
mistermocha has quit [Remote host closed the connection]
<areologist> .. yeah, how at one point there was a lot of hype about Scheme and was the next big thing, conferences, etc. but the strongly typed OOP langauges killed it bad
mistermocha has joined #ruby
<areologist> and allegedly part of the reason was not playing nice with enterprise needs.
<Radar> sinepreggin: I think the bike shed should be blue.
funburn has joined #ruby
<funburn> I have a question about turning an array of hashes into a hash of arrays. https://gist.github.com/mtuckerb/a0f862d65b0b3333a338
fschuindt has joined #ruby
<sinepreggin> Radar: blue is a nice color :)
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<areologist> nm.. I was leading up to a complicated question but I'll just research it elsewhere
<zenspider> `it would be nice if self was renamed to current_object` ???
<Radar> funburn: See comment on Gist.
* sevenseacat munches on more popcorn
<zenspider> what?
<Radar> zenspider: It really should be called the_current_object.
<zenspider> the_current_object_at_this_point_in_execution
<Radar> oh yes true
<zenspider> _right_now
<sevenseacat> lol
<funburn> Radar: oh nice i was trying to figure out how to see the new hash. perfect. thank you
knikolov has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
fschuindt has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
mistermocha has quit [Remote host closed the connection]
wottam has joined #ruby
sinkensabe has joined #ruby
wldcordeiro_ has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Remote host closed the connection]
<Eiam_> zenspider: lol
<Eiam_> I rather like "self" and "this" as concepts
<Eiam_> ( in programming)
diegoviola has quit [Quit: WeeChat 1.1.1]
kbarry_ has quit [Ping timeout: 258 seconds]
<mozzarella> python missed an opportunity to call it __current_class_instance__
last_staff has joined #ruby
existensil has quit [Quit: WeeChat 0.4.2]
d34th4ck3r has joined #ruby
existensil has joined #ruby
dh64 has joined #ruby
parduse has joined #ruby
fabrice31 has joined #ruby
arturaz has joined #ruby
<pipework> zenspider: don't forget in_this_current_context
P1RATEZ has quit [Quit: bed]
Oka has quit [Quit: さようなら]
Mon_Ouie has quit [Ping timeout: 246 seconds]
bartkoo has joined #ruby
nanoyak has quit []
emilkarl has joined #ruby
<baweaver> Every time I see 'this' in Javascript I have a mini heart attack
amclain has quit [Quit: Leaving]
SouL_|_ has joined #ruby
<sinepreggin> why baweaver
<baweaver> Mainly because people don't bind things right
<baweaver> and then 'this' is bound to window and you inadvertently make a nasty psuedo-global state on the parent object.
iotouch has quit [Read error: Connection reset by peer]
iotouch has joined #ruby
<baweaver> As far as redefining self, it's pointless.
<baweaver> Ruby has sane scoping
sinkensabe has quit [Remote host closed the connection]
<baweaver> Arguing about names of things isn't going to do you a shred of good
<areologist> 'strict mode'; or gtfo
CustosLimen has quit [Ping timeout: 240 seconds]
<baweaver> Instead, go out and build something
<sevenseacat> baweaver: but it's so much more fun to troll.
<baweaver> sevenseacat: The scary part is that sometimes I'm not sure if it's trolling or just plain ignorance
fabrice31 has quit [Remote host closed the connection]
mistermocha has joined #ruby
<baweaver> Some of these people are entirely serious when they mention something, and will hold to their guns on it fully believing in what they just said.
funburn has quit [Quit: funburn]
parduse has quit []
<baweaver> see anti vaccine movement
mistermocha has quit [Remote host closed the connection]
<areologist> 'this' in JS is a great concept, but misnamed and thus conflated with 'this' or 'self' in other languages where it's a very different thing
<baweaver> I didn't say it was bad, just that most people misuse it liberally
sinkensabe has joined #ruby
<areologist> when the nature of 'this' in JS is properly understood it's fine, so I agree with you
<sinepreggin> so this and self are not the same exact thing?
<baweaver> !try
iotouch has quit [Ping timeout: 245 seconds]
<baweaver> Nope, bot doesn't like me
<baweaver> Try it out
<Nilium> Rightly so.
<sevenseacat> helpa isnt here anymore.
fabrice31 has joined #ruby
iotouch has joined #ruby
<sevenseacat> oh, it is?
<sevenseacat> !try
<baweaver> use this in a nested function and console.log(this) in Ruby
<Nilium> Well, neither of those would work in Ruby
<areologist> in JS 'self' is a property on the global scope from the Netscape days that's still there, which is why the common var self = this; trope irks me slightly
<baweaver> Javascript
<baweaver> cri[es
<baweaver> ....
<baweaver> cripes*
<baweaver> Monday......
lidenskap has quit [Remote host closed the connection]
<areologist> in JS 'this' is available in functions but doesn't refer to the function itself but to the context from which it was invoked
codecop has joined #ruby
codecop_ has joined #ruby
<Nilium> The only thing that really irks me about most scripting languages is that control structures don't create scopes.
lidenskap has joined #ruby
<Nilium> But that's what I get for coming from C and C-like languages.
<areologist> so in a properly JavaScript style you might have something that interacts with 'this' and you could pass in different things with .apply or .call and have different thises
<baweaver> Haskell :D
<areologist> but yes, from a C-ish background it's confusing as hell
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Nilium> It's not too confusing, just.. annoying.
<areologist> I mean for JS noobs coming from a C-ish background
astrobun_ has joined #ruby
quimrstorres has joined #ruby
<Nilium> I'd basically just like to limit the lifespan of local variables, isn't really doable in JS.
<areologist> block scope in ES6
<Nilium> Can't rely on new standards when it comes to JS.
<flughafen> moring
<areologist> transpile to ES5 with Babel or Traceur, if you don't mind the hacks that mimic the ES6 stuff
<Nilium> C++11 and C++14 have better adoption than anything new in JS.
lkba has quit [Remote host closed the connection]
unshadow_ has quit [Ping timeout: 252 seconds]
<wasamasa> trololol
<wasamasa> first I'd need C++11 support in my text editor
surs has joined #ruby
<areologist> since ES3 catch creates a block scope, so your lovely ES6 code might be transpiled to some god-awful try { var s; throw s; } catch (s) { s = "hi"; }
thatslifeson has joined #ruby
<Nilium> Hacks produced by compilers are less preferable to just working with what's actually supported.
<areologist> the generators to ES5 is worse
surs has quit [Changing host]
surs has joined #ruby
chipotle has joined #ruby
<Nilium> Just a matter of being clear when writing code, for now.
<areologist> ES6 standard is being published next month, browsers are supported it quickly, and it's an evergreen world, for th emost part
<zenspider> baweaver: hah! did you just equate language mentarbation with anti-vaxxers?
<baweaver> I aim to please
* sevenseacat smiles and nods at JS talk
<Nilium> As long as any portion of the world continues to use a browser that doesn't support something, it won't work
<Nilium> It's a pain in the arse
<zenspider> stop talking about JS.... take it to #masochism or something
<areologist> haha\
sohrab has quit [Ping timeout: 258 seconds]
<baweaver> Right next to enterprise Java
<Nilium> Hey, I haven't gone off on a rant about how node.js is garbage yet.
<pipework> Better yet, take it to a support group.
rahult has joined #ruby
<baweaver> Try a JSON.parse when Node.JS does a GC for great fun
<Nilium> baweaver: Not enterprise enough. Needs XML.
<baweaver> (hint: segfault)
knikolov has quit [Remote host closed the connection]
<Nilium> https://github.com/tenderlove/enterprise ← This is the superior Enteprise Option.
<zenspider> "superior"
<areologist> that's hilarious, baweaver
aganov has joined #ruby
thirdknife_ has quit [Quit: This computer has gone to sleep]
<areologist> I'm seriously laughing out loud looking at this code
DexterLB has quit [Ping timeout: 240 seconds]
<zenspider> years later... and I still feel like apologizing for enterprise
jenrzzz has quit [Ping timeout: 272 seconds]
thirdknife_ has joined #ruby
ta has quit [Remote host closed the connection]
<baweaver> zenspider: would it make you feel worse if I told you some companies herald it as a style guide? (they do)
thatslifeson has quit [Ping timeout: 272 seconds]
DexterLB has joined #ruby
<zenspider> what??
<zenspider> bullshit.
CustosLimen has joined #ruby
<zenspider> full-fuckin'-shit
<zenspider> wait... are you talking about the java fizzbuzz thing or aaron's abomination?
<pipework> zenspider: I see your Tuesday is still in full effect.
ahmetkapikiran has joined #ruby
<baweaver> baweaver's commentary on Murphy's Law: If it exists, someone's using it in Production
<zenspider> I was saddened when I heard that andand was being used in rails apps
<baweaver> https://gist.github.com/andkerosine/3356675 - Saw this in prod once
<baweaver> (not us)
<sevenseacat> andand?
ndrei has joined #ruby
<pipework> sevenseacat: why the +o?
<baweaver> sevenseacat: https://github.com/raganwald/andand
<sevenseacat> pipework: keeping an eye on certain people.
<zenspider> "Please do not actually use this"
<baweaver> The banhammer thirsts for blood
<baweaver> zenspider: Like that works
<zenspider> pipework: +@ unary plus
<sevenseacat> dafuq at andand
<baweaver> try before try
<pipework> zenspider: I was talking about the ops stuff.
<sinepreggin> hi sevenseacat
<pipework> sinepreggin: I'd suggest not poking the bear.
<sevenseacat> sinepreggin: good afternoon.
<baweaver> zenspider: I made this once as a joke https://github.com/baweaver/izzy
<baweaver> apparently people are using it in prod as well
Igorshp has joined #ruby
<Nilium> I think I may need to write a Javascript source processor at work
* zotherstupidguy likes how sevenseacat acts as good samaritan, almost like an irc-superhero!
<Nilium> Which means having to parse Javascript. :|
thirdknife_ has quit [Quit: This computer has gone to sleep]
<ebonics> youd write it froms cratch?
<Nilium> Oh hell no.
<Nilium> I'm sure someone's already got something that's at least sufficient.
gauke has joined #ruby
User458764 has joined #ruby
krz has joined #ruby
<zenspider> baweaver: :(
<baweaver> Hence the commentary above
<zenspider> hence the :(
<baweaver> I have something worse
<baweaver> far far worse
<baweaver> that's in production too
<Nilium> what
ramfjord has joined #ruby
<baweaver> Rails in COBOL :D
<zenspider> hah! that's fantastic
<Nilium> what
<sevenseacat> love the name
<baweaver> See their mascot halfway down the page
<Nilium> I mean, that is cool from a technical POV.. but holy crap that's in production?
<zenspider> my InlineFortran is in use in NASA
<baweaver> Yep
<zenspider> :D
<sinepreggin> sevenseacat: i want to tell you a secret in pm
<baweaver> COBOL engineers don't want to learn a new language
<Nilium> I'm trying to figure out the scenario that someone had where that seemed like a good idea
<baweaver> sinepreggin: I wouldn't
<sinepreggin> baweaver: why would you learn a new language after learning cobol? cobol is the best programming language ever invented
Igorshp has quit [Ping timeout: 276 seconds]
<sinepreggin> baweaver: what do you mean?
<zenspider> baweaver: nah. I taught several cobol coders at a railsbridge
DerisiveLogic has quit [Read error: Connection reset by peer]
<baweaver> zenspider: There are some
<baweaver> but back home in Missouri? Good luck
<pipework> I got to learn RPG from a pretty cool guy.
<baweaver> I know RPG and COBOL
<baweaver> won't ever use them
<Nilium> Friend of mine had to use RPG IV at an insurance company. He quit not long after.
DerisiveLogic has joined #ruby
<baweaver> At least he got IV, so Free can be used
<zenspider> I intentionally never learned fortran or cobol so I'd never get stuck
<baweaver> I had to use III with straight C for calc lines.....
<sinepreggin> imo it should be ruby on cobol
longfeet has quit [Quit: Leaving]
<baweaver> zenspider: Didn't have a choice
<sevenseacat> sinepreggin: please stop trolling.
<Nilium> I've never learned Cobol and my general assumption is that I'd have to be desperately trying to get a Cobol job if I learned it
<baweaver> required classes
<zenspider> everone has a choice
jgt has joined #ruby
<zenspider> everyone. ugh.
<sinepreggin> sevenseacat: i'm not trolling
<zenspider> yes, you are. just stop.
<sinepreggin> just because you don't agree with me, it doesn't mean that i'm trolling... cobol is a superior language
<sevenseacat> sinepreggin: this is an actual warning, or we can go back to the kicking stuff.
<sinepreggin> huh?
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rdark has joined #ruby
<baweaver> zenspider: Already most of the way through my (admittedly kinda worthless) degree, so technically had a choice but just bit the bullet on it.
<Nilium> I'm just glad at my current job I at least get some range of choice for what I implement stuff in.
<pipework> sinepreggin: You may want to evaluate the possible scenarios in which you find yourself still welcome here and possibly execute any one of them.
<Nilium> Or at least nobody has ever stopped me.
<sinepreggin> you hate cobol that much pipework ?
<pipework> sinepreggin: Just a thought.
<zenspider> strike two?
<sinepreggin> cobol is the best language because it makes the most sense
<baweaver> batters up?
<zenspider> can we just pull the trigger?
<Nilium> The Cobol schtick really isn't funny, so you can drop it.
<zenspider> wait... I mixed metaphores
<sinepreggin> i know 17 languages and cobol is my favorite for its ease and near-english syntax
<pipework> zenspider: I made a pretty tasteless but apropos Kurt Cobain joke earlier.
<zenspider> only 17? meh.
<baweaver> Shotgun baseball is a thing
<certainty> moin
<baweaver> zenspider: so no mixed metaphors :D
<zenspider> baweaver: do you just have the world's biggest bookmarks file?
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
parduse has joined #ruby
<pipework> zenspider: It's so big this huge company indexes it for him.
tvw has joined #ruby
<baweaver> Fastest CMD + Tab, CMD + T, Google in the west
<zenspider> haha
* baweaver crashed chrome once with too many tabs open
<baweaver> ironically whilst looking for a tab manager
<baweaver> pipework: I self index it, they always mess it up
sinkensabe has quit [Remote host closed the connection]
<Nilium> I should go to sleep and anticipate ripping off a particularly ugly band-aid at work tomorrow
<baweaver> Still like the blame, but older file
<Nilium> Replacing more legacy systems with their new equivalents without introducing any hiccups.
<Nilium> Everything is terrifying.
Macaveli has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<baweaver> zenspider: Also, it's the internet. If it sounds remotely amusing someone's probably done it and put it on youtube.
pontiki has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
fschuindt has joined #ruby
data-cat has quit [Ping timeout: 256 seconds]
sigurding has joined #ruby
<zotherstupidguy> according to this vid https://www.youtube.com/watch?v=8sH31sg6VMQ ryan davis died in 2013?
iotouch has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
fschuindt has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 265 seconds]
gagrio has joined #ruby
sinkensabe has joined #ruby
<zenspider> zotherstupidguy: yup
doertedev has joined #ruby
<zenspider> that'd be the giantbomb.com / gamer ryan davis... but yes.
<zenspider> there are a lot of us. we die ALL the time
<sevenseacat> there can be only one!
<baweaver> Killing off yourself in other multiverses there zenspider?
<flughafen> sevenseacat: it's the quickening!
* zotherstupidguy found the ruby version of spider journalism
<zenspider> man... I'm still only #7 on google. jerkface with a wikipedia entry
arup_r has quit [Remote host closed the connection]
ta has joined #ruby
<sevenseacat> hey i actually have a few hits on the first page when i google my name. woo.
RegulationD has joined #ruby
lidenskap has quit [Remote host closed the connection]
<baweaver> zenspider: Speaking of multiverse http://smbc-comics.com/index.php?id=3660
<pipework> My name is far too unique to not be the whole page.
ghr has joined #ruby
icebourg has joined #ruby
<pipework> Even the weird chinese site that uses my name is referencing me.
<sevenseacat> you do have a unique name.
<pipework> I don't even need to use my full name, just the first name works. :(
ebernhard|night has quit [Read error: Connection reset by peer]
parduse has quit []
Spami has quit [Quit: This computer has gone to sleep]
icebourg has quit [Client Quit]
iotouch has quit [Quit: This computer has gone to sleep]
astrobun_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 244 seconds]
ghr has quit [Ping timeout: 255 seconds]
iotouch has joined #ruby
<zotherstupidguy> why sevenseacat and not sevenseafish? cats don't like to swim!
terlar has joined #ruby
<zenspider> depends on the cat
<pipework> zotherstupidguy: Never heard of a catfish?
<pipework> Or a fishcat?
<pipework> Or a sevenseacat?
rahult has joined #ruby
unshadow has joined #ruby
terlar has quit [Client Quit]
terlar has joined #ruby
<pipework> zenspider: Quick, get that sevenseacat some coffee or we might all be doomed.
<zenspider> baweaver: see?? I'm getting better at it!
Deck` has joined #ruby
<zenspider> fuck off... can't have MY coffee
tuelz has joined #ruby
<baweaver> If you're in SF I can get you coffee
ta has quit [Remote host closed the connection]
<baweaver> but that's about it
ta has joined #ruby
User458764 has quit [Ping timeout: 250 seconds]
<pipework> there's no amount of zen an arachnid can have that will stop the feline of no less than seven seas, but no more than seven seas. Yea, the count of seas will be seven.
avelldiroll has joined #ruby
* zotherstupidguy used to have a cat, she was amazing, i trained her like bitbull, dogs were actually afraid from her. she was crazy and i love her
<pipework> And here I am just a stupid fucking unit of work related to pipes. Creativity isn't my strongsuit.
jogara has joined #ruby
<zotherstupidguy> anyone build a chatting app in ruby before?
<baweaver> baweaver -> B.A. Weaver -> Brandon A Weaver. *shrugs* I'm not being creative either
Hounddog has joined #ruby
<zenspider> hahaha
<baweaver> though @baweaver is some sorority girl that's pretty pissed at me on twitter
<baweaver> recruiters thought she was me for a while
<baweaver> hilarity ensued
<baweaver> blocks all around
<pipework> I read it as Bad Ass Weaver.
<zotherstupidguy> recruiters love me
<baweaver> Funny that that's mildly on purpose ;)
<baweaver> Also, I am a badass developer
<zenspider> I pity the foo' that wrote that code
<zotherstupidguy> lol
Starf0x has joined #ruby
<baweaver> Build and Deployment Automation Support System that is
Starf0x has left #ruby [#ruby]
User458764 has joined #ruby
<hanmac1> baweaver: hm reminds me at "i r baboon" from the Ren and Stimpy Show ;P
<baweaver> shevy is convinced I'm a beaver
tuelz has quit [Ping timeout: 258 seconds]
anisha has joined #ruby
riotjones has quit [Quit: Leaving...]
pontiki has joined #ruby
joelataylor has joined #ruby
riotjones has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
xxneolithicxx has quit [Ping timeout: 255 seconds]
astrobun_ has joined #ruby
<zenspider> baw-eaver ?
<zenspider> I could see that
<zenspider> I like the MrT ref better
arup_r has joined #ruby
<baweaver> I pity the foo who doesn't take his Earl Grey hot.
<zenspider> haha
<baweaver> Woot tshirt
<baweaver> bought it, still waiting for it to come in
edwinvdgraaf has joined #ruby
<baweaver> Still tempted to get that one from Teefury today.
<baweaver> http://www.dayoftheshirt.com - Your wallet will hate me.
joelataylor has quit [Ping timeout: 265 seconds]
<baweaver> Ha, zenspider, I could come visit. Microsoft's trying to recruit me to their cloud ops teams
edwinvdgraaf has quit [Remote host closed the connection]
<baweaver> Something about us stealing a lot of their Xbox staff lately.
edwinvdgraaf has joined #ruby
* baweaver isn't particularly interested in Microsoft
hmsimha has quit [Ping timeout: 256 seconds]
thatslifeson has joined #ruby
<pontiki> lol @ Mr Tea shirt
ndrei has quit [Ping timeout: 264 seconds]
<pontiki> it's like 3 puns in one
<baweaver> It's perfect for me then :D
<pontiki> another paronomasiac, then?
PaulePan1er is now known as PaulePanter
<baweaver> Enough so that when I mentioned contributing to Rails Docs I was told to keep the pun to content count below 20%
ghr has joined #ruby
<baweaver> 'night, time for sleep
<pontiki> night
baweaver has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 276 seconds]
thatslifeson has quit [Ping timeout: 256 seconds]
unshadow_ has joined #ruby
bruno- has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
ghr has quit [Ping timeout: 264 seconds]
hanmac has joined #ruby
jenrzzz has joined #ruby
sevenseacat has quit [Remote host closed the connection]
livathinos has joined #ruby
antgel has joined #ruby
ohaibbq has quit [Quit: Leaving...]
bruno- has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
marr has joined #ruby
rahult is now known as rahult_
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cheeti has joined #ruby
ki0 has joined #ruby
<cheeti> hi my ruby mails showing bcc mail id sending mail how to hide bcc mail?
wolfleemeta__ has joined #ruby
selu has joined #ruby
wldcordeiro_ has joined #ruby
ahmetkapikiran has quit [Read error: No route to host]
edwinvdg_ has joined #ruby
ahmetkapikiran has joined #ruby
codecop_ has quit [Quit: Išeinu]
jonatin has quit [Quit: Textual IRC Client: www.textualapp.com]
wolfleemeta_ has quit [Ping timeout: 240 seconds]
ahmetkapikiran has quit [Client Quit]
edwinvdgraaf has quit [Ping timeout: 272 seconds]
edwinvdg_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
ki0_ has joined #ruby
ki0_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
charliesome has quit [Quit: zzz]
aswen has joined #ruby
edwinvdg_ has joined #ruby
<sinepreggin> i hate niggers white power!!!!
<cheeti> hi my ruby mail showing bcc mail id sending mail how to hide bcc mail?
ki0 has quit [Ping timeout: 258 seconds]
<adaedra> What do you mean, "showing bcc mail"
astrobun_ has joined #ruby
rahult has joined #ruby
<pipework> Radar: Mind unwelcoming sinepreggin?
Ropeney has quit [Remote host closed the connection]
musty_ has quit [Changing host]
musty_ has joined #ruby
musty_ is now known as musty
edwinvdgraaf has quit [Ping timeout: 246 seconds]
ki0 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ahmetkapikiran has joined #ruby
davidhq has joined #ruby
oo_ has quit [Remote host closed the connection]
<sinepreggin> NIGGER
<sinepreggin> pipework: mind going to fuck yourself?
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
<sinepreggin> NIGGER
sinepreggin was kicked from #ruby by kloeri_ [sinepreggin]
lessless has joined #ruby
oo_ has joined #ruby
<adaedra> thanks kloeri_
KrzaQ has quit [Ping timeout: 272 seconds]
<kloeri_> np
mikecmpbll has joined #ruby
d34th4ck3r has quit [Quit: zzz]
<adaedra> I don't know if jhass finally added !ops
dumdedum has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
KrzaQ has joined #ruby
d34th4ck3r has joined #ruby
astrobun_ has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 255 seconds]
antgel has quit [Ping timeout: 252 seconds]
_djbkd has quit [Remote host closed the connection]
stoffus has joined #ruby
BTRE has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
Hounddog_ has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
<zotherstupidguy> sinepreggin you are no good samaritan!
theRoUS has quit [Quit: Coyote finally caught me]
<zotherstupidguy> sevenseacat kill kill kill
<pipework> zotherstupidguy: They're gone, for now.
<pipework> Not sure why kloeri_ didn't seem to +b though
<cheeti> hi my ruby mails showing bcc mail id sending mail how to hide bcc mail?
lidenskap has joined #ruby
charliesome has joined #ruby
<adaedra> cheeti: what do you mean by "showing bcc mail id sending mail"
quimrstorres has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
astrobun_ has joined #ruby
antgel has joined #ruby
TheHodge has joined #ruby
iotouch has joined #ruby
jogara has quit [Quit: jogara]
<cheeti> adaedra bcc mail not shows in our mails but it showing in my mail which i received
edwinvdgraaf has quit [Ping timeout: 264 seconds]
<pipework> cheeti: BCC only shows for the sender.
arup_r has quit [Remote host closed the connection]
avat has joined #ruby
<cheeti> pipework yes but in this it's showing for receiver mail also
<pipework> cheeti: Then use CC
edwinvdg_ has quit [Remote host closed the connection]
arup_r has joined #ruby
granthatcher has joined #ruby
granthatcher has quit [Max SendQ exceeded]
edwinvdgraaf has joined #ruby
<cheeti> pipework i am using bcc mail because to hide the mail id from client
<adaedra> cheeti: how do you send your mails?
iotouch has quit [Quit: This computer has gone to sleep]
granthatcher has joined #ruby
MichaelT has joined #ruby
<MichaelT> HI NIGGERS =D
Zai00 has joined #ruby
<adaedra> sigh.
j416 has quit [Quit: o/]
<adaedra> !ops
<ruboto> sepp2k, fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, Karpah, miah, workmad3, Coraline
<adaedra> \o/
<zotherstupidguy> !ops
<ruboto> sepp2k, fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, Karpah, miah, workmad3, Coraline
dumdedum has quit [Quit: foo]
<pipework> No need to repeat.
<zotherstupidguy> i like to play XD
<pipework> No need to repeat.
<MichaelT> why can't we get rid of all the niggers?
<MichaelT> also why is it whenever a racist nigger joins here nobody calls ops
<MichaelT> you are racist assholes
<adaedra> yeah, playing with mass highlight, with op people, is far from being a good idea, zotherstupidguy
<zotherstupidguy> adaedra you talking to me?
sinkensabe has quit [Remote host closed the connection]
alex88 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
charliesome has quit [Ping timeout: 256 seconds]
<adaedra> .
<zotherstupidguy> then put my name in the begining to si can recongize it! please :)
dorei has joined #ruby
laurentide has quit [Ping timeout: 265 seconds]
<zotherstupidguy> anybody used multicast to chat locally on the same network before?
<pipework> zotherstupidguy: Does your client suck that much?
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<MichaelT> white power
<MichaelT> WHITE POWER
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<adaedra> zotherstupidguy: er, it was at the end...
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<al2o3-cr> +r time
<pipework> zotherstupidguy: Ever consider using bonjour?
<MichaelT> I HATE NIGGERS AND KIKES GAS THE FUCKING JEWS WHITE POWER SIEG HEIL 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<adaedra> cheeti: try to remove not TO: addresses from #send_message call
<dorei> MichaelT: plz, go back into your dustbin
iamninja has joined #ruby
charliesome has joined #ruby
<pipework> dorei: Please ignore the troll and don't encourage him.
<zotherstupidguy> pipework will give it a try
<zotherstupidguy> pipework thanks
<MichaelT> dorei: PLEASE GO FUCK YOURSELF NIGGER
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<zotherstupidguy> pipework its a mac protocol?
<cheeti> adaedra i am not getting
<pipework> zotherstupidguy: nope.
sinkensabe has joined #ruby
<zotherstupidguy> link please?
oo_ has quit [Remote host closed the connection]
rahult has quit [Ping timeout: 258 seconds]
<pipework> zotherstupidguy: There's other bonjour implementations on other platforms.
dtscode has joined #ruby
Equinoxdawg has joined #ruby
<pipework> It's just zeroconf networking.
granthatcher_ has joined #ruby
<MichaelT> STUPID FUCKING HYPOCRITES NIGGER LOVING SCUM OF THE EARTH FAGGOTS YOU ARE
granthatcher_ has quit [Max SendQ exceeded]
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<MichaelT> TAKE THAT YOU FUCKING PIECES OF SHIT
<MichaelT> RESPECT THE SWASTIKA
<MichaelT> RESPECT THE SWASTIKA
<zotherstupidguy> MichaelT marry me?
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
matthiaskrgr has joined #ruby
<adaedra> seriously.
granthatcher_ has joined #ruby
matthiaskrgr has left #ruby [#ruby]
<zotherstupidguy> pipework thanks
<pipework> The less you acknowledge the troll, the better.
<MichaelT> NIGGES JEWS AND FAGGOTS WILL NOT BE TOLERATED
<MichaelT> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
* zotherstupidguy breakfast time, cheers
<dtscode> Breakfast sounds good right now :/
Pricey has joined #ruby
<MichaelT> zotherstupidguy: yes i will marry you if you're not a guy because i'm not a faggot
<adaedra> cheeti: on line 24, remove bccAddress
granthatcher has quit [Ping timeout: 256 seconds]
iotouch has joined #ruby
sigurding has quit [Quit: sigurding]
nelmaven has joined #ruby
oo_ has joined #ruby
Cust0sLim3n has quit [Ping timeout: 246 seconds]
msgodf has joined #ruby
edwinvdg_ has joined #ruby
CustosLimen has quit [Ping timeout: 276 seconds]
edwinvdg_ has quit [Remote host closed the connection]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
Cust0sLim3n has joined #ruby
lidenskap has quit [Remote host closed the connection]
<pipework> zotherstupidguy: https://github.com/tenderlove/dnssd
sigurding has joined #ruby
MichaelT has quit [Ping timeout: 246 seconds]
<adaedra> \o/
astrobun_ has joined #ruby
lidenskap has joined #ruby
joonty has joined #ruby
fschuindt has joined #ruby
Equinoxdawg has left #ruby ["There is a reason I am leaving, chances are that reason is you."]
<cheeti> adaedra if i removed that bcc mal not sending
<adaedra> mmmh
d34th4ck3r has quit [Quit: zzz]
roshanavand has joined #ruby
<zotherstupidguy> pipework yeah i found dnssd
fara_ has joined #ruby
quimrstorres has joined #ruby
fara_ is now known as fara
edwinvdg_ has joined #ruby
fara has quit [Changing host]
fara has joined #ruby
davidhq_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
lidenskap has quit [Ping timeout: 244 seconds]
<adaedra> cheeti: I don't have a lot to say to you, I don't use Net::SMTP. If you can, check the email as processed by the mail server.
fschuindt has quit [Ping timeout: 272 seconds]
dtscode has left #ruby ["Leaving"]
<adaedra> Check that the To:, Cc: and Bcc: fields are set correctly in outgoing mail.
<zotherstupidguy> pipework the question is can i use multicast over the internet?
davidhq has quit [Ping timeout: 265 seconds]
nelmaven has quit [Remote host closed the connection]
<pipework> zotherstupidguy: I bet you google has better answers to that question than I do.
<adaedra> also cheeti, when you do a gist, give the right extension to the file so syntax color works, thanks :)
edwinvdgraaf has quit [Ping timeout: 276 seconds]
<rdark> zotherstupidguy: you need a routable multicast address to communicate with
<pipework> see mbone as well.
<rdark> in general, it's ISP specific, and most ISPs don't implement multicast
<zotherstupidguy> so the short answer is impossible?
<pipework> Nope.
<pipework> The short answer is "no", with a slightly less short answer being "No."
<rdark> possible if all nodes are connected to the same ISP, and that ISP will do multicasting for you. but in general, no
<zotherstupidguy> pipework mbone looks intersting
vtunka has joined #ruby
<pipework> Whale, not really dependent on the ISP. Just that people route things for multicast properly, which most don't.
<pipework> zotherstupidguy: If you want a rich and robust messaging system to build upon, try xmpp.
bMalum has joined #ruby
postmodern has quit [Quit: Leaving]
RegulationD has joined #ruby
djellemah has joined #ruby
<zotherstupidguy> pipework xmpp doesn't support VoIP?
davidhq has joined #ruby
<pipework> zotherstupidguy: Oh when you said chat, I assumed text.
<adaedra> It's a difficult topic I think
<zotherstupidguy> yeah, i am just checking
davidhq_ has quit [Ping timeout: 255 seconds]
<zotherstupidguy> from my java days, i remmber a lot of weird stuff in this area, none of them was simple.
<zotherstupidguy> personally what got me into this i was reading the other day about the skype protocol and it caught my intrest! i wanted to do a simple ruby thing to apprecaite the complexity
wolfleemeta__ has quit [Remote host closed the connection]
wolfleemeta__ has joined #ruby
<rdark> zotherstupidguy: jingle is an xmpp extension that supports p2p stuff (including rtp/voip)
Igorshp has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
terlar has joined #ruby
<zotherstupidguy> rdark stackoverflow say it doesnt exit in ruby http://stackoverflow.com/questions/3414557/ruby-jabber-jingle-library
<zotherstupidguy> rdark any ideas?
CustosLimen has joined #ruby
workmad3 has joined #ruby
<rdark> no clue on ruby implmentations of
<rdark> people seemed to have been gradually moving away from xmpp related things in recent years
<zotherstupidguy> what about maintained ruby xmpp?
wldcordeiro_ has quit [Ping timeout: 258 seconds]
<zotherstupidguy> rdark i agree
<Macaveli> I'm doing birthdate.month and it returns 9 is it possible to let it return 09?
<zotherstupidguy> things like whatsapp, viber and skype
<Macaveli> or do I have to write it custom
roolo has joined #ruby
<adaedra> Macaveli: I suppose it returns an Integer. You can force format with format strings.
excpt has joined #ruby
<adaedra> Macaveli: see http://www.rubydoc.info/stdlib/core/String#%25-instance_method
dumdedum has joined #ruby
lxsameer has quit [Quit: Leaving]
<pontiki> Macaveli: that's typically a display concern. you can easily manage to display data how you wish
<Macaveli> adaedra pontiki could you tell me how cause I'm not really getting the ruby doc
tuelz has joined #ruby
<adaedra> Macaveli: ever used C printf?
chrisarcand has quit [Ping timeout: 250 seconds]
<zotherstupidguy> Macaveli d.strftime('%d')
tvw has quit [Remote host closed the connection]
<Macaveli> adaedra never used c print
bMalum has quit [Quit: bMalum]
<adaedra> ok
edwinvdg_ has quit [Remote host closed the connection]
<zotherstupidguy> eval: p "hi"
<zotherstupidguy> whats the eval bot?
<adaedra> >> "hi"
<ruboto> adaedra # => "hi" (https://eval.in/353571)
blackmesa has joined #ruby
edwinvdgraaf has joined #ruby
<adaedra> don't use it as your personal irb tho
<Macaveli> eval: d = 9
<Macaveli> eval: d.strftime('%d')
troulouliou_dev has joined #ruby
<adaedra> Macaveli: % operator will operate replacements in source string with arguments given after
blackmesa has quit [Client Quit]
bhaak has quit [Ping timeout: 256 seconds]
<adaedra> the placeholders are under the %[flags][type] format
<zotherstupidguy> >> require 'date'; d = Date.parse("3rd Feb 2001"); d.strftime('%d')
<ruboto> zotherstupidguy # => "03" (https://eval.in/353572)
techsethi has quit [Quit: techsethi]
tuelz has quit [Ping timeout: 264 seconds]
bhaak has joined #ruby
<Macaveli> adaedra sprintf '%02d', birthdate.month
<zotherstupidguy> rdark is there an on the rise opensource protocol i should use for my lil hack project?
joelataylor has joined #ruby
<adaedra> >> sprintf '%02d', 6
<ruboto> adaedra # => "06" (https://eval.in/353573)
<Macaveli> that's it :)
<adaedra> which can also be written
<zotherstupidguy> adaedra NICE!
<pipework> zotherstupidguy: What are you doing in this project?
neanderslob has quit [Read error: Connection reset by peer]
<adaedra> >> '%02d' % 6
<ruboto> adaedra # => "06" (https://eval.in/353574)
<Macaveli> aha
jogara has joined #ruby
<Macaveli> like a boss
<adaedra> also, if you have a Date object, zotherstupidguy is also valid
<zotherstupidguy> pipework well i want to make a messaging app, p2p
<adaedra> See Date#strfitme
blackmesa has joined #ruby
<adaedra> String#% solution is more generic
startupality has joined #ruby
<adaedra> zotherstupidguy: you may have to implement jingle yourself :/
<pipework> zotherstupidguy: Whale, xmpp is pretty good.
techsethi has joined #ruby
<adaedra> pipework: Too bad it's not widely used.
<pipework> adaedra: LOLOLOL
<adaedra> what now.
<zotherstupidguy> yahoo use it
<pipework> It's the most widely used IM protocol in history.
arup_r has quit [Remote host closed the connection]
<zotherstupidguy> google use it
quimrstorres has joined #ruby
<pipework> facebook, google, yahoo, anything jabber-based.
<zotherstupidguy> pipework, i doubt it beats irc!
<adaedra> ok, if you remove implementations which forbid inter-server communication?
<pipework> zotherstupidguy: It does.
<pipework> It might not be oldest, but it is the most proliferated.
arup_r has joined #ruby
<pipework> So many things have been built on it. It's been deployed in so many environments.
<zotherstupidguy> anybody remmbers google wave?
<zotherstupidguy> from google australia
<pipework> I tried it, didn't like the amount of flexibility. It didn't embrace new users and halp them go from beginner to power user very well.
<pontiki> i wish they'd kept that
joelataylor has quit [Ping timeout: 265 seconds]
<pontiki> but i can understand why they quashed it
<pipework> Ahead of its time.
<pipework> At least they shared it.
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zotherstupidguy> true, but it was meant to kill email
<adaedra> pipework: I think I was talking about Jabber itself
neanderslob has joined #ruby
<pipework> adaedra: Jabber is XMPP.
<adaedra> yeah, so
edwinvdg_ has joined #ruby
<adaedra> the widely usable, s2s solution
<adaedra> not the closed thing google and facebook offers.
<pontiki> zotherstupidguy: i don't really think so. it extended email
<pipework> adaedra: The 'closed thing' you refer speaks XMPP.
<adaedra> yes, I know
techsethi has quit [Client Quit]
<pipework> It's closed in the same way that it has protocols and routing rules.
thatslifeson has joined #ruby
<adaedra> But I wished it would be possible to use it as planned, decentralized, open
<zotherstupidguy> any idea what viber and whatsapp uses?
<pipework> adaedra: It is.
<pipework> The protocol is all you need.
<adaedra> no
rohit has joined #ruby
<pipework> Yes it is.
<adaedra> there's noone on this
charliesome has quit [Read error: Connection reset by peer]
<adaedra> everyone is on closed implementations
<adaedra> (almost)
<pipework> That's some serious bullshit.
jenrzzz has quit [Ping timeout: 256 seconds]
techsethi has joined #ruby
livathinos has quit []
charliesome has joined #ruby
<adaedra> no it isn't
<pipework> A minute ago you were saying no one uses XMPP, I don't think you're an expert on this topic.
<zotherstupidguy> pipework please elobrate
<adaedra> ok, misunderstanding
bruno- has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
<pipework> But I'm sure your 2 minute google spree makes you one.
<adaedra> ok, stop
<pipework> zotherstupidguy: On what?
<adaedra> this is becoming insulting
<rdark> facebook chat is based on XMPP, as is hipchat
<rdark> I think slack is as well
<zotherstupidguy> hipchat is a mobile app?
<pipework> And many other things, even non-IM messaging systems.
arup_r has quit []
<rdark> they have a mobile app
<pipework> zotherstupidguy: It's a service.
livathinos has joined #ruby
techsethi has quit [Client Quit]
<zotherstupidguy> cool, its hard to keep track of all the things!
edwinvdgraaf has quit [Ping timeout: 256 seconds]
<rdark> if you're just doing text-based chat, XMPP is probably the default choice
<zotherstupidguy> i appreciate adaeadra input to the discussion nevertheless :)
havenwood has quit [Ping timeout: 246 seconds]
<zotherstupidguy> rdark is xmpp p2p?
astrobun_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pipework> XMPP is a protocol, and that's the only thing that needs to be open and describe a system for decentralization. The rest is up to routing/networking and the freedom of others to choose to allow federation to extend to networks outside of their control.
<rdark> nope - s2s or c2s
<rdark> jingle is p2p
<pipework> There is... ^
thatslifeson has quit [Ping timeout: 255 seconds]
coderhs has joined #ruby
coderhs has quit [Client Quit]
joonty has joined #ruby
<zotherstupidguy> https://xmpp4r.github.io/ is outdated?
<adaedra> pipework: I know what XMPP is, I know it's widely used under the hood by many services, I used many things based on it. What I was noticing, is that most of the time, those are closed platforms which are preferred - you named a lot of them - and a lot less of people seems to be using the jabber thing - s2s, with open communication outside, that's all
hgl has quit [Max SendQ exceeded]
<pipework> adaedra: Each one of those services work with XMPP clients.
<pipework> That's really all that matters.
<adaedra> yes, they do
hgl has joined #ruby
<adaedra> but they can't inter-communicate with other servers, or personnal ones
<pipework> In what way?
gigetoo has quit [Ping timeout: 246 seconds]
astrobun_ has joined #ruby
<adaedra> I can't with a @facebook.com xmpp address communicate with a person in the @google.com server
<zotherstupidguy> a google account can talk to yahoo account, right?
bruno- has quit [Ping timeout: 258 seconds]
d34th4ck3r has joined #ruby
<zotherstupidguy> linux pidgin thingy
<rdark> zotherstupidguy: google killed s2s a while back
<pipework> Choosing not to interoperate between other networks is a choice of the network operator, and not a limitation of the protocol.
<adaedra> Last time I tried getting out of @google zone, it didn't work
<adaedra> No, I know
<adaedra> I used XMPP with s2s and chat rooms, it was nice
<pipework> There is implementations that you can run on your own server that handle forwarding.
* atmosx has a jabber account
<zotherstupidguy> xmpp extenstion?
<adaedra> I have some of them somewhere, but don't use them, without anyone to talk to :x
<adaedra> everyone is on Google Talk or Facebook Chat :x
<rdark> I was running ejabberd at $dayjob for a while
<zotherstupidguy> if google is using xmpp, how they do the VoIP, jingle?
<pipework> I'm glad that my jabber client allows multiple accounts.
<pipework> zotherstupidguy: I'm not personally sure. I bet it's a proprietary solution on top though.
<adaedra> pipework: that also means that if someone has a Google Talk account and gives it to you, you *have* to have a Google account to communicate with him.
<pipework> Though I heard something about XMPP not being the real base of google talk's platform anymore, though they support that interface.
<pipework> adaedra: So?
gigetoo has joined #ruby
<pipework> It's not like they're not free.
<adaedra> So if I don't want to have a google account, I can't discuss.
<pipework> Sounds like a funny problem to have.
<pipework> My XMPP client supports OTR.
<pontiki> imagine if your phone worked like that
<zotherstupidguy> they key here is to be free
sigurding has quit [Quit: sigurding]
<adaedra> +1 pontiki
<pipework> pontiki: That I had to sign up for services to use them?
<pontiki> now imagine if phone communication were completely unregulated
<pipework> Don't we already have that with everyone and their dog having apps on the store?
<adaedra> I don't have a Facebook account, so I can't chat with people on this platform
<pipework> adaedra: Sounds entirely reasonable.
<pontiki> that you have to sign up for whatever service one of your mates is on to call them on the phone
areologist has quit [Quit: Leaving]
<pipework> There's not much of a benefit for facebook to allow communication outside of their realm of control.
<adaedra> pipework: with open platform and s2s available, this would not be a problem.
<zotherstupidguy> we are discussing the protocol not the services...
<pontiki> and to talk on the phone to all your mates, you need to sign up for a dozen different services
<adaedra> If having accounts everywere is not a problem for you, good for you then.
shock_one has joined #ruby
<pipework> adaedra: 1password or keepass
<pontiki> the reason you only need to have one phone service to talk to nearly everyone in the world is because phone service, and especially service interconnects, are *highly* regulated
<adaedra> pipework: not the issue
oo_ has quit [Remote host closed the connection]
<pontiki> it's not the protocols
<pontiki> it's the social question
<pipework> adaedra: Some silly personal issue with signing up for a service is?
Pumukel has quit [Ping timeout: 256 seconds]
<adaedra> "silly"
<adaedra> That's a choice
<pipework> It's a choice to not allow communication outside your realm of control.
<pontiki> IM client authors came up with the best solution
<pipework> pontiki: Who are you to try to force someone to provide a service to users they can't benefit from?
<zotherstupidguy> personally all i care about is the rise and fall of a communication protocol,
<pontiki> clients that can connect on multiple services *simultaneously*
<pontiki> pipework: i'm the government and i'm here to help
<pipework> pontiki: :D
<pipework> I could use a drink then.
DeBot has quit [Ping timeout: 272 seconds]
<adaedra> pipework: and with inter-communication of services, this would not be a problem, that's my point.
<adaedra> "realm of control" tssk.
<pipework> adaedra: There is zero benefit for google or facebook to allow it.
<adaedra> no
oo_ has joined #ruby
excpt has quit [Ping timeout: 246 seconds]
nszceta has joined #ruby
<adaedra> But there's an open playspace outside of google and facebook.
<pipework> I mean, you can say 'no' all you like, I don't think it matters one iota worth of difference to them.
<adaedra> It's not to make a difference to them.
einarj has joined #ruby
ArchRogem has joined #ruby
<pipework> Then I think we're at a point where there's no point in further discussing the issue.
<pipework> zotherstupidguy: XMPP is great.
<adaedra> :|
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> http://xmpp.org/extensions/xep-0297.html is the forwarding mechanism, iirc.
<pontiki> i want more tv shows to use Massive Attack music
pigoz has joined #ruby
<pontiki> they really need to
chthon has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SouL_|__ has joined #ruby
SouL_|_ has quit [Ping timeout: 256 seconds]
wottam has joined #ruby
<zotherstupidguy> pipework thankx
<zotherstupidguy> pontiki i like dubstep now :)
iasoon has joined #ruby
* wasamasa roasts zotherstupidguy
<zotherstupidguy> pontiki i bought a samsung muse mp3player filled it with dubstep and its cool
<atmosx> like a soul without a mind, in a body without a heart...
User458764 has joined #ruby
selu has joined #ruby
Pumukel has joined #ruby
wottam has quit [Client Quit]
DeBot has joined #ruby
Ropeney has joined #ruby
rahult has joined #ruby
livathinos has quit [Ping timeout: 244 seconds]
rohit has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
noobQ has joined #ruby
n008f4g_ has joined #ruby
leafybasil has quit [Remote host closed the connection]
Stalkr_ has joined #ruby
bartkoo has quit [Quit: bartkoo]
sigurding has joined #ruby
startupality has quit [Quit: startupality]
DeBot has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
DerisiveLogic has quit [Remote host closed the connection]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
DeBot has joined #ruby
noobQ has quit [Quit: WeeChat 0.4.2]
penzur has joined #ruby
jimms has joined #ruby
joonty has joined #ruby
fschuindt has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
mrdmi has quit [Read error: Connection reset by peer]
scripore has quit [Quit: This computer has gone to sleep]
n008f4g_ has quit [Ping timeout: 265 seconds]
livathinos has joined #ruby
toretore has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
sdothum has joined #ruby
iteratorP has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
emilkarl has quit [Quit: emilkarl]
slackbotgz has joined #ruby
astrobun_ has joined #ruby
banister has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
joonty has quit [Read error: Connection reset by peer]
avril14th has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 256 seconds]
edwinvdgraaf has joined #ruby
_blizzy_ has joined #ruby
joonty has joined #ruby
lordkryss has joined #ruby
edwinvdg_ has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
edwinvdgraaf has quit [Ping timeout: 265 seconds]
Guest36132 has joined #ruby
Guest36132 has quit [Changing host]
Guest36132 is now known as A124
stoffus has quit [Ping timeout: 246 seconds]
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 246 seconds]
lolmaus has joined #ruby
seal has joined #ruby
ndrei has joined #ruby
ajaiswal has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
_whitelogger has joined #ruby
selu has quit [Ping timeout: 264 seconds]
sami has joined #ruby
EnergyCoffee has joined #ruby
EnergyCoffee has quit [Max SendQ exceeded]
BLuEGoD has joined #ruby
Drakevr has joined #ruby
fella5s has quit [Read error: Connection reset by peer]
joonty has joined #ruby
demophoon has quit [Ping timeout: 256 seconds]
selu has joined #ruby
picasso has joined #ruby
Paradox has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
Zarthus has joined #ruby
EnergyCoffee has joined #ruby
EnergyCoffee has quit [Max SendQ exceeded]
mhenrixon has joined #ruby
aswen has joined #ruby
mathie has joined #ruby
diegok has joined #ruby
Liothen has quit [Ping timeout: 240 seconds]
hasB4K has joined #ruby
EnergyCoffee has joined #ruby
ruboto_ has joined #ruby
hasB4K has joined #ruby
Diabolik has joined #ruby
Rollabunna has joined #ruby
zotherstupidguy has joined #ruby
preller has joined #ruby
hollywood has joined #ruby
hasB4K has quit [Quit: This is not a quit message.]
go|dfish has joined #ruby
Mekkis has joined #ruby
daxroc has joined #ruby
hellschreiber has joined #ruby
argoneus has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Remote host closed the connection]
jeromelanteri has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ruboto has quit [Remote host closed the connection]
elektronaut has quit [Ping timeout: 272 seconds]
doertedev has quit [Ping timeout: 240 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
rvchangue has quit [Ping timeout: 256 seconds]
Liothen has joined #ruby
jimms_ has joined #ruby
jblancett has quit [Ping timeout: 272 seconds]
jblancett has joined #ruby
susmus has quit [Ping timeout: 240 seconds]
doertedev has joined #ruby
unshadow has quit [Ping timeout: 256 seconds]
jimms has quit [Ping timeout: 255 seconds]
Billias has joined #ruby
DeBot has quit [Ping timeout: 272 seconds]
ElderFain has joined #ruby
nszceta has joined #ruby
susmus has joined #ruby
unshadow has joined #ruby
Trieste has joined #ruby
comma8 has joined #ruby
elektronaut has joined #ruby
CaptainCibai has joined #ruby
blackmesa has joined #ruby
rvchangue has joined #ruby
qwertme has joined #ruby
bascht has joined #ruby
wottam has joined #ruby
jogara has quit [Quit: jogara]
Igorshp_ has joined #ruby
argoneus has joined #ruby
roshanavand has quit [Quit: Konversation terminated!]
wottam has quit [Client Quit]
roshanavand has joined #ruby
demophoon has joined #ruby
maloik has joined #ruby
wottam has joined #ruby
startupality has quit [Quit: startupality]
Igorshp has quit [Ping timeout: 245 seconds]
RegulationD has joined #ruby
ccooke_ is now known as ccooke
fella5s has joined #ruby
astrobun_ has quit [Remote host closed the connection]
Earthnail has quit []
sigurding has joined #ruby
astrobun_ has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
thatslifeson has joined #ruby
DerisiveLogic has quit [Ping timeout: 276 seconds]
serivich has joined #ruby
sepp2k has joined #ruby
quimrstorres has quit [Remote host closed the connection]
tuelz has joined #ruby
doodlehaus has quit [Remote host closed the connection]
emilkarl has joined #ruby
thatslifeson has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
DeBot has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
startupality has joined #ruby
parduse has joined #ruby
programmerq has joined #ruby
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
fschuindt has quit [Ping timeout: 256 seconds]
vdamewood has joined #ruby
tuelz has quit [Ping timeout: 256 seconds]
parduse has quit [Client Quit]
rodfersou has joined #ruby
charliesome has quit [Client Quit]
negev has joined #ruby
terlar has joined #ruby
<negev> hi, i'm using erubis as a very basic CGI handler. how can i access the POST data?
pontiki has quit [Quit: zzzzzzz]
parduse has joined #ruby
quimrstorres has joined #ruby
joelataylor has joined #ruby
simpyll has quit [Ping timeout: 264 seconds]
j416 has quit [Quit: o/]
leafybasil has joined #ruby
allcentury has joined #ruby
j416 has joined #ruby
roshanavand has quit [Quit: Konversation terminated!]
chipotles has joined #ruby
leafybasil has quit [Remote host closed the connection]
roshanavand has joined #ruby
leafybasil has joined #ruby
AlexRussia has joined #ruby
joelataylor has quit [Ping timeout: 265 seconds]
Mon_Ouie has joined #ruby
negev has quit [Quit: Lost terminal]
astrobun_ has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
mengu has joined #ruby
shock_one has joined #ruby
parduse has quit []
doodlehaus has joined #ruby
shazaum has joined #ruby
avril14th has joined #ruby
purezen has joined #ruby
shazaum has joined #ruby
shazaum has quit [Changing host]
purezen has left #ruby [#ruby]
tvw has joined #ruby
davidhq has joined #ruby
shock_one has quit [Client Quit]
slackbotgz has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 264 seconds]
stoffus has joined #ruby
Guest40060 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
fabrice31 has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
phutchins has joined #ruby
fabrice31 has joined #ruby
mistnim has joined #ruby
Guest1421 has joined #ruby
<mistnim> hello, can you explain me this behaviour? http://paste.debian.net/176246/
<adaedra> >> defined? t
<ruboto_> adaedra # => nil (https://eval.in/353923)
<adaedra> mh
stoffus has quit [Ping timeout: 244 seconds]
<adaedra> do you not just want t ||= 3 ?
chipotles has quit [Quit: Textual IRC Client: www.textualapp.com]
<mistnim> adaedra: what does ||= mean?
<adaedra> same as t = t || 3
ndrei has quit [Ping timeout: 264 seconds]
<mistnim> I want t to be = 3
fschuindt has joined #ruby
<adaedra> not exactly same, but that's the idea
<adaedra> If I read your code, you want it to be 3 if not defined, no?
<mistnim> yes
<adaedra> ||= will set the variable if it's not defined or falsy
yfeldblum has quit [Ping timeout: 256 seconds]
Guest1421 has quit [Ping timeout: 256 seconds]
<mistnim> adaedra: got it, why that code doesn't work though?
<adaedra> Looking
<toretore> mistnim: your question has been answered in #ruby-lang
doodlehaus has quit [Remote host closed the connection]
<toretore> it is a peculiarity of the way it gets interpreted
jeromelanteri has joined #ruby
jeromelanteri has quit [Client Quit]
<hanmac1> defined? also shows the tiny difference between "-1" and "- 1" ;P
fschuindt has quit [Ping timeout: 256 seconds]
Guest86229 has quit [Ping timeout: 250 seconds]
SouL_|__ has quit [Ping timeout: 244 seconds]
doodlehaus has joined #ruby
Mohan_ has joined #ruby
<mistnim> adaedra: btw there is a problem with t ||= 3, t will get assigned every time to 3, not just when it's not defined
trouloulioud_dev has joined #ruby
<adaedra> >> t ||= 3; t ||= 4; t
<ruboto_> adaedra # => 3 (https://eval.in/353930)
<adaedra> works for me?
<toretore> mistnim: why are you using defined? anyway?
ndrei has joined #ruby
<toretore> t ||= 3 works, but not for the reason you think it does
<mistnim> toretore: how does it work?
<toretore> it's already been explained
<mistnim> I missed it
<toretore> here's a better example:
<toretore> >> if false; n = 3; end; n
<ruboto_> toretore # => nil (https://eval.in/353931)
<toretore> >> n
<ruboto_> toretore # => undefined local variable or method `n' for main:Object (NameError) ...check link for more (https://eval.in/353932)
charliesome has joined #ruby
<toretore> anyway, tell us why it is that you want to do this instead, it sounds like there should be a better way
troulouliou_dev has quit [Ping timeout: 252 seconds]
lidenskap has joined #ruby
<mistnim> toretore: define a global variable in a function and the next time it is called it should still exist but the value shouldn't be changed
ldnunes has joined #ruby
<mistnim> but yeah, it's probably not a good practice, and it's better to define the variable outside of the method
<toretore> gist your code
<toretore> !gist
<toretore> ?gist
<ruboto_> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
davedev24_ has joined #ruby
jmignault has joined #ruby
<toretore> global variables behave differently from local variables
<toretore> specifics matter
<mistnim> toretore: there is no code, it's just an idea
oo_ has quit [Remote host closed the connection]
<toretore> why do you want to do this?
lidenskap has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
<mistnim> toretore: keeping the definition of the global variable close to where it is used (in the method)
<toretore> no, i mean *why*.. what is the purpose of the whole thing?
<mistnim> toretore: let's say I want to keep track of how many time the methods was called
davidhq_ has joined #ruby
<hanmac1> mistnim: hm are you sure you want a global variable and not a instance variable?
<mistnim> hanmac1 what if I'm not in a class
Papierkorb has joined #ruby
<hanmac1> mistnim: nearly everything is an object and can have instance variables
davidhq has quit [Ping timeout: 245 seconds]
<mistnim> hanmac even a method in the topmost level?
hectortrope has quit [Quit: WeeChat 0.4.2]
mike_c_11 has joined #ruby
hectortrope has joined #ruby
<toretore> mistnim: is this just for excercise or curiosity?
<toretore> because if so that's ok, but for real code there's most likely a better way
<toretore> and to find that way you have to explain its real purpose
doodlehaus has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 258 seconds]
<mistnim> toretore: how would you track how many times a method is called? (a method defined outside a class)
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<toretore> why would i?
stoffus has joined #ruby
mengu has quit [Remote host closed the connection]
<hanmac1> mistnim: toplevel is still main object
<toretore> i feel like you're trying to achieve something specific, but you won't share that with us
<toretore> and without knowing that we can only give shitty advice to shitty problems
CamonZ has joined #ruby
glcx has joined #ruby
|Zz_fan| has joined #ruby
<mistnim> toretore: I understand what you mean, it depends on the context, I'll try to come up with a real situation you might want it
thatslifeson has joined #ruby
<mistnim> now I have to go, thanks though
shazaum_ has joined #ruby
mistnim has quit [Remote host closed the connection]
shazaum has quit [Read error: Connection reset by peer]
bhaak has quit [Ping timeout: 246 seconds]
timonv has joined #ruby
thatslifeson has quit [Ping timeout: 250 seconds]
dumdedum has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
arup_r has joined #ruby
<arup_r> Hi All... Hope you are doing well!
bhaak has joined #ruby
duckson has quit [Ping timeout: 272 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
dumdedum has joined #ruby
duckson has joined #ruby
Guest1421 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
mengu has joined #ruby
dwithers1 is now known as pl1ght
fschuindt has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Silex has quit [Quit: WeeChat 0.4.3]
cheeti has quit [Quit: Page closed]
wald0 has joined #ruby
zz_barkerd427 is now known as barkerd427
workmad3 has quit [Ping timeout: 256 seconds]
but3k4 has joined #ruby
Guest1421 has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
amystephen has joined #ruby
thoffmeyer has quit [Quit: Leaving]
iotouch has joined #ruby
goodcodeguy has joined #ruby
diegoaguilar has joined #ruby
turtil has quit [Ping timeout: 244 seconds]
Hirzu has joined #ruby
roshanavand has quit [Quit: Konversation terminated!]
ghr has quit [Ping timeout: 246 seconds]
Mohan_ has quit [Ping timeout: 245 seconds]
n008f4g_ has joined #ruby
Soda has joined #ruby
Mohan has joined #ruby
Mohan is now known as Guest39032
doodlehaus has joined #ruby
fold has joined #ruby
chinmay_dd has joined #ruby
Edward_Hyde has joined #ruby
Edward_Hyde has left #ruby [#ruby]
doodlehaus has quit [Remote host closed the connection]
iotouch has quit [Quit: This computer has gone to sleep]
joelataylor has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
startupality has quit [Quit: startupality]
alderamint has quit []
Guest17606 has quit [Quit: Don't flap your BGP at me sonny]
RegulationD has joined #ruby
Guest39032 has quit [Ping timeout: 256 seconds]
gsd has joined #ruby
Musashi007 has joined #ruby
Lingo has joined #ruby
gsd has quit [Max SendQ exceeded]
joelataylor has quit [Ping timeout: 245 seconds]
Mohan_ has joined #ruby
Lingo has quit [Client Quit]
gsd has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
dstarh has joined #ruby
konsolebox has quit [Quit: Leaving]
astrobunny has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 245 seconds]
<arup_r> Need help...
antgel has joined #ruby
tuelz has joined #ruby
<arup_r> This is a working method.... https://github.com/aruprakshit/music_track/blob/master/lib/tasks/csv.rake#L22-L54 ... But my pain point is my system is crashing after processing 1 lakhs recorrds.. and my csv has 3-4 lakhs or more
<arup_r> How can I speed up this ?
<pipework> What's a lakh?
<toretore> lakh lol
<toretore> it's 100k or 10k
<pipework> I love `parallel`
andikr has quit [Remote host closed the connection]
<arup_r> pipework: sorry.. that's Indian term.. it means 1,00,000
<arup_r> toretore: 100k :)
Musashi007 has quit [Read error: Connection reset by peer]
<arup_r> pipework: means threading ?
allcentury has quit [Ping timeout: 256 seconds]
tuelz has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 252 seconds]
Mohan_ has quit [Ping timeout: 250 seconds]
Stichoza has joined #ruby
Rollabunna has quit [Remote host closed the connection]
<pipework> arup_r: man parallel would tell you more than I can.
<toretore> well, first of all, define what "crashing" means
Rollabunna has joined #ruby
<arup_r> system is getting shut down toretore: :( 3 times I ran this.. and after 25 mins.. it is shutting down abruptly..
<arup_r> after that if I count my model.. it is showing 70K to 80K records are there
<toretore> did you yank out the power cable, or did the power go out?
Rollabunna has quit [Remote host closed the connection]
<arup_r> nothing.. I did..
Mohan_ has joined #ruby
Rollabunna has joined #ruby
<arup_r> I was doing otherwork..
<arup_r> and it went down
Rollabunna has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<toretore> *what* "went down"?
<arup_r> shut down...
Rollabunna has joined #ruby
Cust0sLim3n has quit [Ping timeout: 272 seconds]
Rapier- has joined #ruby
<toretore> i give up
<arup_r> you didn't get me ?
Rollabunna has quit [Remote host closed the connection]
<arup_r> my laptop "shut down" .... no power cut.. and nothing...
Rollabunna has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
Rollabunna has quit [Client Quit]
<arup_r> anyway.. 3 times I ran this script and it happened.... so I thought might be the script is causing havey CPU load or something else...
pontiki has joined #ruby
sigurding has quit [Quit: sigurding]
sgambino has joined #ruby
<arup_r> I need to make this script "parallel" for faster processing.. pipework: said..
<pipework> arup_r: No, I said to use the tool called parallel
millerti has joined #ruby
ghr has joined #ruby
<arup_r> Thread is very heard concept :)
<toretore> use actors
<pipework> arup_r: `man parallel`
<arup_r> pipework: I got you..
<arup_r> ok
<toretore> it'll solve your problems
<pipework> No thread needed on your end.
<pipework> toretore: I don't know, you still are reading in all that data and hoping GC releases properly.
<pipework> I've had issues with this very problem
<arup_r> toretore: `actor` is a Gem ?
<pipework> GC just isn't aggressive enough.
JDiPierro has joined #ruby
sigurding has joined #ruby
scripore has joined #ruby
mengu has quit []
tjbiddle has joined #ruby
Cust0sLim3n has joined #ruby
tjbiddle has quit [Remote host closed the connection]
rahult has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
leafybas_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
orionstein_ has quit [Quit: ZNC - http://znc.in]
orionstein has joined #ruby
<arup_r> toretore: I am sorry.. I didn't get what you have suggested
tkuchiki has joined #ruby
lessless has joined #ruby
leafybasil has quit [Ping timeout: 256 seconds]
codecop has quit [Remote host closed the connection]
Ropeney has quit [Remote host closed the connection]
<arup_r> pipework: Are you saying to write code shell scripting like this -- http://www.gnu.org/software/parallel/man.html#EXAMPLE:-Working-as-mutex-and-counting-semaphore ?
wpp has joined #ruby
jimms_ has quit [Remote host closed the connection]
<pipework> arup_r: Something like that, yeah. The idea is that you'd use awesome unix tools to feed the data into your ruby process in small chunks, which you'd handle and then exit the process correctly.
thirdknife_ has joined #ruby
RedDwarf is now known as Zackio
Ropeney has joined #ruby
CloCkWeRX has left #ruby [#ruby]
jgt has joined #ruby
sankaber has joined #ruby
griffindy has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
konsolebox has joined #ruby
<arup_r> pipework: humm.. I just gave it a quick look -- http://www.gnu.org/software/parallel/parallel_tutorial.html#Chunk-size ... But thing is if I try it in windows it will be broken,, as I don't know what OS my client do use ....
konsolebox has quit [Max SendQ exceeded]
wald0 has quit [Quit: Lost terminal]
jerius has joined #ruby
Hounddog has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
Hounddog_ has quit [Ping timeout: 264 seconds]
Stichoza has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
shredding has joined #ruby
dblessing has joined #ruby
ferr has joined #ruby
shellfu has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
Rollabunna has joined #ruby
doodlehaus has joined #ruby
crazydiamond has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
fschuindt has quit [Ping timeout: 250 seconds]
jimms has joined #ruby
Luyt__ has joined #ruby
edwinvdg_ has joined #ruby
thatslifeson has joined #ruby
ych_ has joined #ruby
<arup_r> pipework: I will use `http://www.postgresql.org/docs/9.3/static/sql-copy.html` this.. I hope it will be fastest,,,
workmad3 has joined #ruby
edwinvdgraaf has quit [Ping timeout: 245 seconds]
<arup_r> workmad3: o/
thoffmeyer has joined #ruby
thoffmeyer has joined #ruby
wald0 has joined #ruby
shellfu has quit [Remote host closed the connection]
ndrei has joined #ruby
senayar has joined #ruby
utkukaynar has joined #ruby
KrzaQ has quit [Ping timeout: 244 seconds]
scripore has quit [Quit: This computer has gone to sleep]
quimrstorres has quit [Remote host closed the connection]
fschuindt has joined #ruby
Rollabunna has quit [Remote host closed the connection]
davedev2_ has joined #ruby
Vitor has joined #ruby
Vitor has quit [Remote host closed the connection]
<arup_r> pipework: and using this Rake command.. http://ruby-doc.org/stdlib-2.2.1/libdoc/rake/rdoc/FileUtils.html#method-i-sh let's see how it behaves
davedev24_ has quit [Ping timeout: 264 seconds]
penzur has quit [Quit: dc]
jimms has quit [Remote host closed the connection]
gizless has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
gizmore has quit [Ping timeout: 256 seconds]
<pipework> arup_r: Yeah, what I bet you're seeing is that you're eating gobs of memory while parsing out this CSV
spastorino has quit []
<arup_r> humm.. I feel so
<mwlang> arup_r: one approach I’ve used successfully is to build up a SQL file that can be batch loaded by the database tools? This almost always an order of magnitude faster than ActiveRecord in a loop.
spastorino has joined #ruby
<arup_r> pipework: one advice.. Would you agree if I use postgres native command ?http://postgresguide.com/utilities/copy.html
andrew-l` is now known as andrew-l
RegulationD has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
<pipework> I've tried many approaches to handle huge CSVs in a single process, and while I haven't exhausted every option, I found that by essentially breaking up the work and passing it into ruby, that I was able to keep the transformations in ruby, but I had to create and throw away processes to sidestep whatever is preventing strings from not being garbage collected properly.
<pipework> It was causing a leak of sorts.
KrzaQ has joined #ruby
<pipework> arup_r: I'm not familiar with it personally. I don't see a problem with it though.
Guest1421 has joined #ruby
chinmay_dd has quit []
fschuindt has quit [Ping timeout: 245 seconds]
<arup_r> ok.. thanks for the input..
<arup_r> I think Rake's `sh` will handle OS related stuff too.. Let me give it a try and I'll let you know.. how it works
iotouch has joined #ruby
<arup_r> Bye all..
Leef_ has joined #ruby
arup_r has quit []
RegulationD has quit [Ping timeout: 240 seconds]
iamninja has quit [Ping timeout: 252 seconds]
fschuindt has joined #ruby
tuelz has joined #ruby
joelataylor has joined #ruby
leslie has quit [Ping timeout: 252 seconds]
utkukaynar has quit []
shellfu has joined #ruby
_blizzy_ has joined #ruby
leslie has joined #ruby
leslie has quit [Changing host]
leslie has joined #ruby
quimrstorres has joined #ruby
vikaton has joined #ruby
hgl has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
bjornar has quit [Remote host closed the connection]
vtunka has quit [Quit: Leaving]
mike_c_11 has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
willharrison has joined #ruby
willharrison has quit [Client Quit]
hgl has joined #ruby
quimrstorres has joined #ruby
scripore has joined #ruby
paulcsmith has joined #ruby
chipotles has joined #ruby
Igorshp_ has quit [Remote host closed the connection]
17SACJ96L has joined #ruby
17SACJ96L has quit [Remote host closed the connection]
Igorshp has joined #ruby
chipotles has quit [Client Quit]
ferr has quit [Quit: WeeChat 1.1.1]
ferr has joined #ruby
leafybas_ has quit [Remote host closed the connection]
axl_ has joined #ruby
leafybasil has joined #ruby
KrzaQ has quit [Disconnected by services]
huddy has joined #ruby
KrzaQ has joined #ruby
Encapsulation has quit [Quit: Leaving]
User458764 has joined #ruby
kobain has joined #ruby
coderhs has joined #ruby
ta has quit [Remote host closed the connection]
sarkyniin has joined #ruby
<sarkyniin> hey
<adaedra> hej
<sarkyniin> I'm having trouble installing nokogiri
coderhs has quit [Client Quit]
<sarkyniin> and I can't seem to figure out what's the issue
Ropeney has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
jtdowney has joined #ruby
n80 has joined #ruby
<adaedra> Paste /tmp/bundler20150513-5026-17q8k40/nokogiri-1.5.0/extensions/x86_64-linux/2.2.0/nokogiri-1.5.0/gem_make.out too please.
tagrudev has quit [Remote host closed the connection]
<hanmac1> sarkyniin: try to install newer one like nokogiri "1.6.*"
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<sarkyniin> hanmac1: one of my gems seem to need the older version
neanderslob has quit [Remote host closed the connection]
<sarkyniin> also adaedra
<sarkyniin> the /tmp/bundler-xxxx folder is empty
<adaedra> :)
<adaedra> try to install it by hand through gem, bundler may clean its directories.
<hanmac1> sarkyniin: you can try first to install the newer version of nokogiri, if that works then you know where the problem is ... if you cant install the newer version then the problem is somewhere else
AlphaAtom has joined #ruby
<sarkyniin> looks like installing through gem
<sarkyniin> works
sinkensabe has quit [Remote host closed the connection]
<sarkyniin> doing "gem install nokogiri -v '1.5.0'" fails btw
senayar has quit [Remote host closed the connection]
rbennacer has joined #ruby
<sarkyniin> here's the content of the generated gem_make.out when using gem install: https://waa.ai/v3PP
chthon has quit [Remote host closed the connection]
<hanmac1> hm yeah ok then it seems that this nokogiri seems to old for your ruby ... maybe you should see what gem does need that version and get it updated
unshadow_ has quit [Quit: leaving]
rbennacer has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
rbennacer has joined #ruby
unshadow has quit [Remote host closed the connection]
gambl0re has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rippa has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mitchellhenke has joined #ruby
fabrice31 has joined #ruby
badhatter has quit [Ping timeout: 264 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sarkyniin> huh
dstarh has joined #ruby
<sarkyniin> it's strange
<sarkyniin> installing all the gems in the gemfile manually
<sarkyniin> with gem install produces no error
<sarkyniin> but doing so with bundle gives me an error
fabrice31_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
senayar has joined #ruby
<hanmac1> hm one of the reasons i never does trust bundler ;P
wpp has quit []
<mozzarella> are you sure you have installed the right version of every gem, and not just teh latest?
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
vikaton has quit []
umgrosscol has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<sarkyniin> mozzarella: my gemfile just contains the latest versions
<sarkyniin> of every gem
cgrieger is now known as cgrieger^away
P1RATEZ has joined #ruby
mary5030 has joined #ruby
<mozzarella> weird then
Guest1421 has quit [Ping timeout: 272 seconds]
Cust0sLim3n has quit [Ping timeout: 256 seconds]
Soda has quit [Remote host closed the connection]
Rollabunna has joined #ruby
qwertme has joined #ruby
scripore has joined #ruby
idafyaid has joined #ruby
idafyaid has joined #ruby
vikaton has joined #ruby
jzigmund has joined #ruby
jzigmund has quit [Client Quit]
SOLDIERz has quit [Ping timeout: 265 seconds]
CorySimmons has joined #ruby
jzigmund has joined #ruby
lidenskap has joined #ruby
thirdknife_ has quit [Quit: This computer has gone to sleep]
slash_nick has joined #ruby
certainty has quit []
fabrice31_ has quit [Remote host closed the connection]
certainty has joined #ruby
<hanmac1> i hate rubocop more and more ... the next joke it gots is: "Do not use parallel assignment." ... very funny when it also says: "Dont use methods longer than 10 lines" ... and now i want to ask you guys: HOW THE FUCK should i do that WITHOUT "parallel assignment"? ... PS: ther is also a "Dont use classes with more than 10 methods" or something -.-
fabrice31 has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
<adaedra> hanmac1: tweak it
<hanmac1> adaedra: hm yeah i could change rubocop so that my stuff does pass the tests ;P
<adaedra> it's made to be tweaked
konsolebox has joined #ruby
The_Phoenix has joined #ruby
<adaedra> if you find that some of the limits are too low, and think it's fine, make them higher, or remove the cops
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ddv> hanmac1: nothing wrong with that
Tennis has joined #ruby
lidenskap has quit [Ping timeout: 255 seconds]
<ddv> hanmac1: don't blame rubocop when your code sucks
Cust0sLim3n has joined #ruby
GnuYawk has joined #ruby
Encapsulation has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<pipework> ddv: rubocop's rules aren't reflectant of what I consider beautiful code.
<hanmac1> ddv there is everything wrong with that ... i cant write that script if i should put nearly every line into an extra function and each 10 functions into an extra class ...
<pipework> If matz included a ruby version of gofmt, I'd consider that canonical.
jtdowney has quit []
<hanmac1> also hands up when you did wrote a class with more than 10 methods
<adaedra> >> String.instance_methods.count
<ruboto_> adaedra # => 168 (https://eval.in/354484)
* pipework keeps his hands down
tjohnson has joined #ruby
jtdowney has joined #ruby
iasoon has joined #ruby
hanmac1 has quit [Quit: Leaving.]
symbol has joined #ruby
emilkarl has quit [Quit: emilkarl]
fmcgeough has joined #ruby
jtdowney has quit [Remote host closed the connection]
jimms has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has quit [Quit: WeeChat 0.4.3]
mistermocha has joined #ruby
certainty has joined #ruby
ItSANgo__ has quit [Quit: Leaving...]
CorySimmons has quit [Quit: Bye!]
chinmay_dd has joined #ruby
pdoherty has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
startupality has joined #ruby
thefynx_ is now known as thefynx
tkuchiki has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
toretore has quit [Quit: Leaving]
certainty has quit [Client Quit]
certainty has joined #ruby
toretore has joined #ruby
w0jtas has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
<w0jtas> hello, i am trying to upload file using fog-google gem, but i don't know where to pass project-id, anybody could help me ?
<pontiki> i don't so much mind rubocop as an advisory, but putting it in between a commit or push is heinous project management
chinmay_dd has quit [Ping timeout: 265 seconds]
mhoungbo_ has joined #ruby
mhoungbo__ has joined #ruby
a346 has joined #ruby
fschuindt has quit [Ping timeout: 265 seconds]
mhoungbo__ has quit [Client Quit]
mistermocha has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
Hirzu has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
mistermocha has joined #ruby
kedare has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
aryaching has joined #ruby
<Encapsulation> can ruby do everything c++ can do?
<adaedra> N/A
<toretore> everything c++ can do ruby can do better
<adaedra> (I wouldn't go as far as this)
theRoUS has joined #ruby
<Encapsulation> can you use python or c code inline
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<apeiros> Encapsulation: no. but you can always write in C/C++ if you need.
<Encapsulation> how can I access sensors etc I use c and python libraries for
<Encapsulation> but built my larger app in ruby perhaps
<apeiros> that depends on the sensors.
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<Encapsulation> well I'm interffacing with boards over i2c, as well as gpio pins
BTRE has quit [Quit: Leaving]
sargas has joined #ruby
havenwood has joined #ruby
<adaedra> How do you access them in C/C++?
<apeiros> I have no personal experience. but afaik many sensors can be read like a regular file/socket.
<Encapsulation> the i2c stuff and one of the sensors I'm using c and C++ libraries
<Encapsulation> the other sensor is bitbang reads over gpio
thirdknife_ has joined #ruby
<Encapsulation> I'm using a c library for that as well
startupality has joined #ruby
<Encapsulation> I know I can do gpio stuff on my pi with pi-piper ruby library
<Encapsulation> but these sensors I'm concerned about
ponga has joined #ruby
Jackneill has joined #ruby
<Encapsulation> I was also shocked to see how easy it looked to start watches and enable concurrency?
<Darkwater> generally, ruby can do everything c++ can do because you can compile and ron c++ with ruby :v
<ponga> ruby shoes irc channel ? anyone know where it is?
<Darkwater> shoes?
<Encapsulation> so I can use these libraries in my ruby program?
<apeiros> ponga: use the alis service?
<Encapsulation> call some c++ function
<Encapsulation> have it return back a value into my rubvy code
<Darkwater> not like that, at least not easily
<apeiros> Encapsulation: yes, you can write native extensions
<ponga> apeiros: sorry but what is alis?
<adaedra> There's ffi too
<apeiros> ponga: like chanserv and nickserv, a service
<Encapsulation> is this diffficult to do?
startupality has quit [Client Quit]
<apeiros> ponga: /msg alis help
<Encapsulation> I would be switching to ruby because iot looks like I could rebuild my software in half the time and it would be better
jokester has quit [Quit: recharge]
<Encapsulation> I also want a web interface and I think ruby would mesh well with that?
startupality has joined #ruby
<adaedra> Encapsulation: calling C is easy, C++ less because of mangling.
mistermocha has quit [Ping timeout: 264 seconds]
<Encapsulation> they might both be c libraries
<toretore> Encapsulation: are you not happy with python/c/c++? why do you think it'll be easier/better with ruby?
Rollabunna has quit [Remote host closed the connection]
<adaedra> Encapsulation: https://github.com/ffi/ffi
<Encapsulation> well I'm just starting out and c++ is so convoluted. It's a love hate relationship
<Encapsulation> so I'm browsing the market
vikaton has quit []
<Encapsulation> I'm looking at python as well
<Encapsulation> concurrency is confusing me for sure
<toretore> so you don't have much experience with those?
<adaedra> python is known to be great at low level
jokester has joined #ruby
<Encapsulation> I need to poll from sensors and have objects change state and call methods at intervals and in reaction to sensors etc
<Encapsulation> right now I'm spawning threads and detatching them and they watch global bools
<Encapsulation> and its probably a big fing mess
<Encapsulation> so I'd like to do it right, and pick the best language for the application as well this time
mistermocha has joined #ruby
<Encapsulation> I'm only about one semester in to coding
fara has quit [Ping timeout: 255 seconds]
<ponga> ok im throwing away shoes and use gud ol' java swing
<ponga> ;(
<adaedra> Encapsulation: you may also mix and make all interract
<adaedra> The low level stuff in C++, the high level in Ruby
workmad3 has quit [Ping timeout: 265 seconds]
Ulrar has joined #ruby
rbennacer has quit [Remote host closed the connection]
<toretore> Encapsulation: if you're doing mostly i/o, look into using select
<Ulrar> Hi, I did a gem install compass, and it did create a /usr/local/bin/compass which seems to work fine as root, but throws error about not finding compass when ran as a user
dfinninger has joined #ruby
Hirzu has joined #ruby
rbennacer has joined #ruby
<Encapsulation> toretore what it boils down to is that I need to read from sensors
<Ulrar> Is there some procedure to apply when trying to install gems ?.
<Encapsulation> and run timers and call funcs
<Encapsulation> indepedent from the users ios
<Encapsulation> io
mistermocha has quit [Remote host closed the connection]
<Encapsulation> I don't want to break io
<Encapsulation> I got myself stuck in an infinite menu loop in my c++ code
<Encapsulation> and I use threads to solve it
<Encapsulation> but It hink thats bad
<Encapsulation> I could use a web interface witrh ruby
<Encapsulation> and watches?
<Encapsulation> and do this properly? is there a tutorial somewhere
<Encapsulation> on how to have concurrency like this
<Encapsulation> provide user io but also run the system
<adaedra> Hi Ulrar
<Encapsulation> I can't have a timer stop while getting input from a user, iof that makes sense
qwertme has joined #ruby
<toretore> Encapsulation: there is no simple answer or solution to concurrency problems
<Encapsulation> =S
<toretore> it always depends on the situation
<Ulrar> adaedra: Fancy seeing you there
<adaedra> :)
<toretore> and ou always have to understand what's going on in order to make it work properly
<adaedra> Ulrar: what system?
<Ulrar> adaedra: debian 7
Spami has joined #ruby
mistnim has joined #ruby
fara has joined #ruby
anisha has quit [Quit: Leaving]
<adaedra> Ulrar: nothing like rbenv/rvm on the user side that may interfere?
konsolebox has quit [Read error: Connection reset by peer]
aganov has quit [Quit: Leaving]
snockerton has joined #ruby
<Ulrar> adaedra: Not that I know of, created that user half an hour ago, the client only uploaded his code
willharrison has joined #ruby
ych_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
terlar has quit [Ping timeout: 255 seconds]
<adaedra> Ulrar: `gem env` says what?
<Ulrar> adaedra: http://dpaste.com/0ZM0VR1
symbol has quit [Quit: WeeChat 1.1]
<adaedra> ruby 1.9.3
WildBamboo-Josh has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
wald0 has quit [Quit: Lost terminal]
WildBamboo-Josh has joined #ruby
apt-get_ has joined #ruby
chinmay_dd has joined #ruby
<Ulrar> when I gem install compass the binary is root:staff with 700 permissions
<adaedra> Ulrar: and as root, along with `gem which compass` ?
<Ulrar> the env seems to be the same, and the which : /var/lib/gems/1.9.1/gems/compass-1.0.3/lib/compass.rb
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
<adaedra> seems ok
<Ulrar> /var/lib/gems/1.9.1/gems/compass-1.0.3/lib/compass.rb seems to have ridiculous permissions too
<Ulrar> Guess that's the problem
andikr has joined #ruby
<adaedra> If you're in deployment process and have a Gemfile, using bundle with local path may be a solution (bundle install --path ...)
<Ulrar> /var/lib/gems is 700
w0jtas has quit [Quit: Leaving.]
<Ulrar> That's a problem.
charliesome has quit [Quit: zzz]
<Ulrar> adaedra: Yeah I have no idea about what the client is trying to do, he just wants the command "compass" to work
<adaedra> ah
nobitanobi has joined #ruby
<Ulrar> chmod 755 -R /var/lib/gems solves it
sarkyniin has quit [Ping timeout: 258 seconds]
<Ulrar> We'll go with that then, thanks
ghr has joined #ruby
gauke has quit [Quit: gauke]
nobitanobi has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nobitanobi has joined #ruby
iotouch has quit [Quit: 离开]
sdothum has joined #ruby
gagrio has quit [Ping timeout: 255 seconds]
hmsimha has joined #ruby
serivich has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
lkba has joined #ruby
RegulationD has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
EasyCo has joined #ruby
edwinvdgraaf has joined #ruby
User458764 has joined #ruby
konsolebox has joined #ruby
konsolebox has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
decoponio has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Remote host closed the connection]
hmsimha has quit [Ping timeout: 256 seconds]
jackjackdripper has joined #ruby
lavros has joined #ruby
startupality has joined #ruby
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
Leef_ has quit [Quit: Leaving]
<adaedra> Encapsulation: looked at https://github.com/eventmachine/eventmachine ?
<adaedra> There's https://celluloid.io too
edwinvdg_ has joined #ruby
Ulrar has left #ruby ["WeeChat 1.2-dev"]
doertedev has quit [Quit: Lost terminal]
aryaching has quit [Ping timeout: 245 seconds]
prphp has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hmsimha has joined #ruby
Pumukel has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
edwinvdgraaf has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
Mohan_ has quit [Ping timeout: 245 seconds]
seal has quit [Quit: Ex-Chat]
phutchins has quit [Ping timeout: 264 seconds]
Mohan has joined #ruby
Mohan is now known as Guest54275
hmsimha has quit [Ping timeout: 256 seconds]
thirdknife_ has quit [Quit: This computer has gone to sleep]
That1Guy has joined #ruby
<arup_r> from where the error is coming ? https://gist.github.com/aruprakshit/eedb8c01671c81ce2f67
Guest1421 has joined #ruby
ziggles has joined #ruby
granthatcher has joined #ruby
<That1Guy> https://github.com/Willardgmoore/Learn-to-program/blob/master/6.4 Why is line 1's result different than line 2?
konsolebox has joined #ruby
<havenwood> >> 1/2
<ruboto_> havenwood # => 0 (https://eval.in/354729)
konsolebox has quit [Read error: Connection reset by peer]
<havenwood> >> 1/2r
<ruboto_> havenwood # => (1/2) (https://eval.in/354730)
K-LINE has joined #ruby
<K-LINE> I HATE NIGGERS!!!!!!!!!!!!!!!!! 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<ziggles> Any opinions on The Ruby Way by Hal Fulton (3rd edition) ?
<adaedra> !ops
<ruboto_> sepp2k, fflush, apeiros, seanstickle, Mon_Ouie, zzak, banisterfiend, Radar, Havenn, Karpah, jhass, workmad3, miah, Coraline
<havenwood> !mute K-LINE
K-LINE is now known as Guest42487
<adaedra> too slow :o
Guest42487 has quit [K-Lined]
<havenwood> adaedra: ;)
<adaedra> havenwood: you're not in the !ops list?
granthatcher_ has quit [Ping timeout: 256 seconds]
<havenwood> adaedra: I'm Havenn
<adaedra> ah ok
<adaedra> this defeats the purpose of the hightlight :x
<adaedra> *-t
KLINE_ has joined #ruby
<KLINE_> hello again =D
<jhass> !mute KLINE_
<KLINE_> 卐卐卐卐卐卐卐卐卐卐卐卐卐卐
<adaedra> wut
dumdedum has quit [Quit: foo]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<KLINE_> DIE JUDEN WIR MUSSEN AUSROTTEN 卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐卐
fmcgeough has quit [Ping timeout: 272 seconds]
<jhass> !kick KLINE_
KLINE_ was kicked from #ruby by ruboto_ [KLINE_]
KLINE_ has joined #ruby
<KLINE_> HI =D
ki0_ has joined #ruby
<KLINE_> ULU <3
<jhass> apeiros: with op bug ^
<KLINE_> ILU <3
allcentury has quit [Ping timeout: 245 seconds]
<jhass> !ban KLINE_ !T 1d bye
KLINE_ was kicked from #ruby by ChanServ [Banned: bye]
avat has quit [Quit: Page closed]
_blizzy_ has quit [Ping timeout: 256 seconds]
KLINE__ has joined #ruby
<KLINE__> YOU CAN'T BAN ME =D
<jhass> !ban KLINE_ !T 1d bye
<ruboto_> jhass, could not find a matching user for "KLINE_"
<jhass> !ban KLINE__ !T 1d bye
KLINE__ was banned on #ruby by ChanServ [KLINE__!*@*]
KLINE__ was kicked from #ruby by ChanServ [Banned: bye]
<dudedudeman> ha, watching a ban happen is quit fun
Igorshp has quit [Remote host closed the connection]
KLINE_____ has joined #ruby
<jhass> !ban KLINE___ !T 1d bye
<ruboto_> jhass, could not find a matching user for "KLINE___"
<KLINE_____> NOPE
<jhass> !ban KLINE_____ !T 1d bye
<arup_r> ^^ hehehehe
allcentury has joined #ruby
premera has quit [Remote host closed the connection]
Igorshp has joined #ruby
KLINE_____ was banned on #ruby by ChanServ [*!*@gateway/web/freenode/ip.103.10.197.211]
KLINE_____ was kicked from #ruby by ChanServ [Banned: bye]
<arup_r> he is powerful...
<pontiki> need a better hostmask for that ban
<pontiki> there we go
<That1Guy> what does the r stand for in 1/2r?
Guest1421 has quit [Ping timeout: 245 seconds]
<adaedra> That1Guy: rationnal
ta_ has quit [Remote host closed the connection]
<havenwood> That1Guy: Rational literal
granthatcher_ has joined #ruby
<adaedra> >> (1/2r).class.name
ta_ has joined #ruby
<ruboto_> adaedra # => "Rational" (https://eval.in/354761)
<arup_r> jhass: you own......... :D
<arup_r> Now.. teach me some Ruby...
<adaedra> he may come back
phizzbuzz has joined #ruby
<adaedra> those people are always really resourcefull
_KLINE__ has joined #ruby
<_KLINE__> HI NIGGERS =D
<arup_r> why i am getting that error ....
<jhass> !ban _KLINE__ !T 1d bye
_KLINE__ was banned on #ruby by ChanServ [_KLINE__!*@*]
_KLINE__ was kicked from #ruby by ChanServ [Banned: bye]
ki0 has quit [Ping timeout: 245 seconds]
<adaedra> what did I say
<arup_r> OMG.........
<That1Guy> Cool website, I haven't seen eval.in before.
<arup_r> adaedra: humm.... :/
bb010g has quit [Quit: Connection closed for inactivity]
<adaedra> jhass: maybe just bam *KLINE*
<adaedra> ban*
<jhass> then he'll pick nicks that I need longer to tab complete :P
<That1Guy> Any other cool tips for a student like me?
ki0_ has quit [Ping timeout: 240 seconds]
<havenwood> adaedra: But all those non-troll HAPPY_KLINE and KLINE_FLAVORED_ICE_CREAM, etc.
<jhass> That1Guy: know pry?
<adaedra> havenwood: for the time being. Reducing the noise for a while.
<havenwood> adaedra: :)
<adaedra> arup_r: what, hum.
alex88 has quit []
<That1Guy> :jhass what's that?
<adaedra> ?pry
<ruboto_> Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<havenwood> That1Guy: Here's another nifty REPL, but this one is mruby and runs in your browser: https://joshnuss.github.io/mruby-web-irb/
<dyce_> Q-Line the name k-line
haxrbyte_ has quit [Read error: Connection reset by peer]
<adaedra> That1Guy: short answer: your best friend.
<havenwood> <3 REPLs
<havenwood> Especially nice ones.
granthatcher has quit [Ping timeout: 276 seconds]
nobitanobi has quit []
Igorshp_ has joined #ruby
nobitanobi has joined #ruby
Igorshp has quit [Ping timeout: 255 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<pontiki> yay pry
<arup_r> resolved..anyway
aswen has quit [Ping timeout: 240 seconds]
TuxOtaku has quit [Quit: <insert clever quit message here>]
shuber_ has joined #ruby
<havenwood> arup_r: With `<<END` you can't have any spaces or indentation before the `END` but with `<<-END` you can.
haxrbyte has joined #ruby
<arup_r> EOF was the problem.. I removed it and it is working....
<That1Guy> It looks like pry is mostly for those that are working straight in irb
fmcgeough has joined #ruby
<adaedra> That1Guy: it replaces irb
<adaedra> But it's really helpful for experimenting and debugging
<adaedra> couple it with pry-byebug and you got a really great tool
maletor_ has joined #ruby
<nobitanobi> when doing hsh.key?(arg) - Is it idiomatic to call it without () ? In the style guide: https://github.com/bbatsov/ruby-style-guide it says: "Omit parentheses in methods that have "keyword" status in Ruby (e.g. attr_reader, puts)" What does keyword status mean?
haxrbyte_ has joined #ruby
davidhq has joined #ruby
<adaedra> nobitanobi: methods you usually call like that without giving an explicit object (e.g. attr_reader, puts)
<nobitanobi> adaedra: ok. So key? should have parentheses
<adaedra> I hope g has disabled highlights.
<nobitanobi> thanks adaedra
<havenwood> nobitanobi: There isn't a single right way to do parens in Ruby, but most everyone agrees not to use them in certain circumstances (but there are exceptions where you need to). I often follow Seattle style where you omit parens unless it breaks the interpreter.
<adaedra> nobitanobi: I'd say it depends
<adaedra> people like to leave parenthesis out
senayar has quit [Remote host closed the connection]
diegoaguilar has quit [Remote host closed the connection]
stoffus has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<adaedra> nobitanobi: so you do def a b, c, d ?
SleepDeprived has joined #ruby
livathinos has quit []
Guest54275 has quit [Ping timeout: 258 seconds]
senayar has joined #ruby
senayar has joined #ruby
ReK2WiLdS has quit [Remote host closed the connection]
konsolebox has joined #ruby
sohrab has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
pwattstbd has joined #ruby
joonty has quit [Quit: joonty]
davidhq_ has quit [Ping timeout: 256 seconds]
Mohan_ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<dudedudeman> jhass is angry
* dudedudeman bows to the great and mighty jhass
edwinvdgraaf has joined #ruby
<jhass> gotta make some room in the banlist...
<adaedra> that's some cleaning
<mozzarella> we need a bigger banlist
shuber_ has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
<dudedudeman> can it only be of a certain size?
<jhass> yeah
<dudedudeman> huh
paulcsmith has quit [Quit: Be back later ...]
senayar has quit [Client Quit]
antgel has quit [Ping timeout: 246 seconds]
<adaedra> you could use the banlist to store data
<adaedra> encoded as base64
Diranged has joined #ruby
gsd has joined #ruby
<mwlang> havenwood: “seattle style” ?
<gambl0re> i'm doing puts ?A but irb is not return the ASCII value, its just print A
<wasamasa> adaedra: lol
antgel has joined #ruby
<jhass> gambl0re: yes, whatever you're reading that told you otherwise is ancient, pick a better resource
slash_nick has quit [Ping timeout: 265 seconds]
JDiPierro has quit [Remote host closed the connection]
<adaedra> It's .ord iirc
<adaedra> >> 'A'.ord
<ruboto_> adaedra # => 65 (https://eval.in/354796)
User458764 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<Diranged> Can I make my Gemfile (and even Gemfile.lock) support both Ruby 1.8 and 1.9?
<havenwood> mwlang: It's the style Seattle.rb uses and they have some prominent projects, including some that ship with Ruby. :)
rehat has joined #ruby
<gambl0re> A= 65
<adaedra> Diranged: why would you?
<Diranged> (Don't start in on the obvious .. 1.8 is deprectated. This is a transitional thing)
<jhass> Diranged: it should by default, but note that both of those versions are out of official security maintenance
<adaedra> I'd say it's technically possible
<havenwood> Diranged: Both 1.8 and 1.9 are past end-of-life, but yeah as long as the gems work on both.
<Diranged> So the problem is the versins of packages are different
scripore has joined #ruby
shuber_ has joined #ruby
<Diranged> So right now our Gemfile is very specific to 1.8… listing a ton of old packages that are 1.8 specific.
<adaedra> It's a Ruby file, you could do if RUBY_VERSION :˚
<Diranged> adaedra: ahhh
scripore has quit [Client Quit]
<jhass> that's not good for the .lock though
<havenwood> Diranged: And the Gemfile is Ruby.
<jhass> bundler 1.10 will support conditional gems
<adaedra> Yeah, the .lock is a problem
<jhass> pre release is available, so you could give it a try
<adaedra> jhass: tbf, this problem also exist when you have a Gemfile with differences between ruby and jruby
<gambl0re> who would i inverse A.ord to get the ascii value and find it's character?
<gambl0re> how
<havenwood> gambl0re: chr
<jhass> adaedra: that can be handled with platform already, no?
msgodf has quit [Ping timeout: 246 seconds]
<adaedra> jhass: Gemfile.lock is different if I remember correctly
<jhass> I doubt it
<gambl0re> i tried that.,.. puts 65.char
<willharrison> trying to make sure I am writing ok tests. do these specs look ok? https://github.com/willharrison/ruby-gabbro/blob/master/spec/gabbro/adapter/mysql_spec.rb
<adaedra> I'll try latter if I remember to do it
blackmesa has joined #ruby
<adaedra> >> 65.chr
<ruboto_> adaedra # => "A" (https://eval.in/354798)
Hijiri has quit [Quit: WeeChat 1.0.1]
<Senjai> willharrison: Are you writing your own adapter?
<gambl0re> chr..not char
<gambl0re> ok
<willharrison> Senjai I think adapter was the wrong word to use
<adaedra> be careful when you read gambl0re ;)
<Senjai> willharrison: Why not just use Sequel to migrate databases?
rbennacer has quit [Remote host closed the connection]
<willharrison> Senjai this is just a project for fun
<gambl0re> hai...
freerobby has joined #ruby
<dudedudeman> hey gambl0re!
freerobby has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
<nobitanobi> adaedra: I like putting parentheses
<nobitanobi> just wondering what did you guys think
<adaedra> then do so
<willharrison> Senjai but I wanted to make sure I am testing correctly and as least brittle as I can before I continue to keep doing this
<adaedra> Guidelines are... well, guidelines.
<adaedra> It's a file, not a cop.
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
<arup_r> why from Ruby `COPY` command is not inserting records ? https://gist.github.com/aruprakshit/eedb8c01671c81ce2f67 any idea ?
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hectortrope has joined #ruby
qwertme has joined #ruby
timonv has quit [Ping timeout: 256 seconds]
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
JDiPierro has joined #ruby
<Senjai> willharrison: Theres quite a few problems IMO. Given that this is rspec
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Senjai> willharrison: First, you shouldnt be using allow, or doing setup in it blocks
<Senjai> it blocks should only have one expectation
pontiki has joined #ruby
<Senjai> Use lets, and contexts
sigurding has quit [Quit: sigurding]
<Senjai> context "when given an argument" .... context "when an argument was not given"
chipotle has quit [Quit: cheerio]
<willharrison> ah I see
<Senjai> And nest them from there on
<Senjai> context "when given an integer field" etc.
<willharrison> I will read up on them then
<Senjai> willharrison: They usually (but not always) come in pairs or more
<Senjai> when something happens, when something doesnt happen
dfinninger has quit [Remote host closed the connection]
<Senjai> Ideally it should read well if you run your specs with --format documentation
<willharrison> I see
<Senjai> it should read like english
maletor_ has quit [Quit: Computer has gone to sleep.]
<Senjai> (i use --format documentation by default)
<willharrison> can I use format documentation when I run rake?
paulcsmith has joined #ruby
<mwlang> havenwood: do they have a style guide?
<Senjai> E.g. if your thing requires an argument, you should test what happens when it has one, and when it doesnt. If it does something based on different types of arguments, you should have a context for each one AND one that it doesnt understand
<Senjai> a lot of that is more work than most people do
dfinninger has joined #ruby
<Senjai> But if your starting out, I recommend it
Deck` has quit [Read error: Connection reset by peer]
hectortrope has quit [Quit: WeeChat 0.4.2]
<Senjai> willharrison: bundle exec rake rspec --format documentation
<willharrison> ok cool
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
<Senjai> willharrison: bundle exec rake rspec --format documentation --color
<willharrison> I think format doc might be default on mine? I get the same output as `rspec`
<Senjai> willharrison: Might as well throw --color on there too
<Senjai> dots?
<Senjai> or words
<willharrison> words
<Senjai> yeah
<Senjai> probably is
<Senjai> a project can have a .rspec or whatever
<Senjai> that can set defaults
<havenwood> mwlang: Not that I know of but there's some writing on the reasoning for no parens. I think the style guide is the code but I don't know: https://github.com/seattlerb
<willharrison> it reads out all my `it`s
<Senjai> or in your home directory
<willharrison> ah ok I see
<arup_r> any idea why it is not working ?
rbennacer has joined #ruby
casadei has joined #ruby
icebourg has joined #ruby
Spami has joined #ruby
<Senjai> willharrison: also before :each is not required, just use before. Each is the default
<willharrison> ok cool
<willharrison> are my mocks ok or are they too invasive?
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maletor_ has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
n008f4g_ has quit [Ping timeout: 276 seconds]
dfinninger has quit [Remote host closed the connection]
<mwlang> havenwood: ok, I’m just curious…I’ve been experimenting with omitting parentheses more aggressively of late. I’ve *always* included parantheses in the method definitions, but have started dropping them almost subconciously in the last couple of months and I think it’s because I have been reading a lot of other people’s code of late.
That1Guy has joined #ruby
<gambl0re> i dont understand this code... "This is a test".scan(/\w\w/) { |x| puts x }
<gambl0re> what is it doing??
<havenwood> gambl0re: Do you know what `/\w\w/` is?
tuelz has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
<gambl0re> \w = any alphanumeric character or underscore
rocknrollmarc has joined #ruby
pocketprotector has quit [Ping timeout: 246 seconds]
<GaryOak_> Without parens that code is ambiguous as to what it is actually passing to the load_file function
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
ziggles has quit []
rippa has joined #ruby
<gambl0re> Th
<gambl0re> is
<gambl0re> is
<gambl0re> te
<gambl0re> st
bricker has joined #ruby
rocknrollmarc has joined #ruby
<mwlang> havenwood: I guess I’m a Weirich-style parentheses user currently transistioning into a Seattle-style parentheses user.
<gambl0re> i dont get how that is the output.
<pontiki> what are you expecing, gambl0re ?
<pontiki> you're asking scan to return all the spans of two alphanumeric characters
rocknrollmarc has quit [Max SendQ exceeded]
scripore has joined #ruby
<gambl0re> talk to me in english man....i'm new to this stuff.
<adaedra> this is english -_-
<pontiki> which word did you not understand?
uptownhr has joined #ruby
<adaedra> what word you not understand?
<gambl0re> "scan to return all the spans of two alphanumeric characters"
<pontiki> scan is the method you called
<pontiki> to
<pontiki> return : give back
<pontiki> all: all of them
<gambl0re> scan goes through each letter in the string?
<pontiki> yes
<adaedra> scan returns all substring which matches the regex
Hounddog has quit [Read error: Connection reset by peer]
<gambl0re> why does /w/w mean?
<pontiki> 11:28 < gambl0re> \w = any alphanumeric character or underscore
<pontiki> \w\w means two of them together
<willharrison> Senjai would you recommend this site? http://betterspecs.org/
idafyaid has quit [Quit: idafyaid]
<gambl0re> it replaces it with x?
idafyaid has joined #ruby
<pontiki> no
<gambl0re> whats the put x variable?
slash_nick has joined #ruby
ferr has quit [Quit: WeeChat 1.1.1]
<pontiki> each span
<gambl0re> what do youo mean by each span?
Mohan_ has quit [Ping timeout: 272 seconds]
<gambl0re> each two joining characters?
<pontiki> the two alphanumeric characters
<havenwood> gambl0re: Consider the following?: chars = 'gambl0re'.scan /./; chars.each { |x| puts x }
<pontiki> whatever is matching the expression you used in the scan method
<havenwood> gambl0re: Understand that? ^
CustosLimen has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
<gambl0re> scanning through each letter in gambl0re
<havenwood> gambl0re: Then a slightly shorter version: 'gambl0re'.scan(/./) { |x| puts x }
claw has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
Mohan has joined #ruby
<gambl0re> single character represented by the single dot
<gambl0re> i dont understnad the block..
<havenwood> gambl0re: So now change the Regexp and it's doing the same thing but with a different Regexp.
Mohan is now known as Guest99295
<havenwood> gambl0re: It's an #each block if you will.
jgt has quit [Ping timeout: 264 seconds]
<pontiki> gambl0re: blocks in general or that one in particular?
n008f4g_ has joined #ruby
wald0 has joined #ruby
<havenwood> gambl0re: It's part of the #scan method, see the docs: http://ruby-doc.org/core/String.html#method-i-scan
<gambl0re> i know what a block is
edwinvdg_ has joined #ruby
<gambl0re> it printed each letter of my name on a single line
scripore has quit [Quit: This computer has gone to sleep]
<gambl0re> but why did it put a space. couldnt i just do {|x| puts " ")
<havenwood> gambl0re: That would print a space on a newline for each match.
failshell has joined #ruby
<mozzarella> guys
ForkingPaths has joined #ruby
mikecmpbll has joined #ruby
<adaedra> and girls!
<mozzarella> I want to use (a|b|c) in a regex but I don't want to capture the group, wat do?
<havenwood> folk
<adaedra> [abc] ?
<gambl0re> ok....i got confused. puts method automatically created a new line
<gambl0re> so for each character it finds on a string it will print each letter on a new line.
serivich has joined #ruby
thirdknife_ has joined #ruby
<adaedra> By the way, is there something shorter than $stdout.write to print without line return?
<havenwood> >> 'haha!'.scan /(?:a|b|c)/
<ruboto_> havenwood # => ["a", "a"] (https://eval.in/354868)
<havenwood> mozzarella: ^ non capture groups
<gambl0re> but the previous example... "This is a test".scan(/\w\w/) { |x| puts x } isnt this the same thing? "This is a test".scan(/../) { |x| puts x }
edwinvdgraaf has quit [Ping timeout: 246 seconds]
<adaedra> \w and . are different
scripore has joined #ruby
<havenwood> mozzarella: ?:
<adaedra> Try to put some symbols in that string and test with boths
<gambl0re> i'll skip this chapter!..
conta_ has joined #ruby
conta_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<mwlang> *grumble* Why do companies still send emails using a “noreply” email address? Surely in this day and age, they can take a reply and route it automatically to support or wherever instead of auto-responding to tell you to do so.
<GaryOak_> You've just realized a million dollar business idea...
rocknrollmarc has joined #ruby
<adaedra> send a mail at noreply@adaedra.eu to have an answer.
rocknrollmarc has quit [Max SendQ exceeded]
sohrab has quit [Ping timeout: 276 seconds]
rocknrollmarc has joined #ruby
<adaedra> See ya'll!
<havenwood> adaedra: later!
<gambl0re> \w
<gambl0re>
<gambl0re> Matches any word character.
rocknrollmarc has quit [Max SendQ exceeded]
sohrab has joined #ruby
<gambl0re> "This is a test".scan(/\w\w/) { |x| puts x } ok so this code matched "this,is,test,"
<mwlang> GaryOak_: yeah, it’s called mailgun. :-)
<GaryOak_> ahh well
<gambl0re> it didnt print out "a" becaues it isd a single character and not a word??
ki0 has joined #ruby
Guest99295 has quit [Ping timeout: 258 seconds]
<havenwood> gambl0re: "a" is indeed a word character, but you didn't say one word character...
<havenwood> gambl0re: try with one: \w
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
Mohan_ has joined #ruby
baweaver has quit [Remote host closed the connection]
Matachin_ has joined #ruby
allcentury has joined #ruby
<gambl0re> i get it now...
tuelz has joined #ruby
<havenwood> gambl0re: \o/
<gambl0re> "This is a test".scan(/\w\w/) { |x| puts x } th|is|(space)a|te|st
banister has joined #ruby
<gambl0re> the a was ommitted because it was grouped with a space
michaeldeol has joined #ruby
DynamicMetaFlow has quit [Quit: Leaving]
DexterLB has quit [Read error: Connection reset by peer]
ki0 has quit [Ping timeout: 272 seconds]
<gambl0re> the space didnt match the regular expression but if i did a (/../) it would give me |th|is| a|te|st
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
<havenwood> gambl0re: yup, you got it
<gambl0re> the (..) matches any character including spaces.
DerisiveLogic has joined #ruby
<gambl0re> you guys could have just said something along those lines....
mjuszczak has joined #ruby
<havenwood> gambl0re: :O
<apeiros> gambl0re: you could also have read any regex doc
Zai00 has quit [Quit: Zai00]
djbkd has quit [Remote host closed the connection]
AlphaAtom has quit [Read error: Connection reset by peer]
gizless has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Hijiri has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
<mwlang> gambl0re: or play with regexpr real-time: http://www.regexr.com/
djbkd has joined #ruby
<havenwood> gambl0re: The first thing I asked was whether you understood \w, and from your answer it seemed you did. That's not a very nice way to say thanks! :P
x1337807x has joined #ruby
<gambl0re> couldnt you tell that i copied my answer from somewhere?...
<pontiki> no
DexterLB has joined #ruby
lkba_ has quit [Ping timeout: 256 seconds]
<apeiros> gambl0re: so you make people waste their time trying to help you - and then have the audacity to be annoyed about how they help you?
<gambl0re> who said i was annoyed..
<apeiros> "gambl0re: you guys could have"
<gambl0re> you shouldnt make assumptions..
freerobby has quit [Quit: Leaving.]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> and you should show more gratitude..
<gambl0re> thanks..i appreciate the help
<havenwood> gambl0re: I actually couldn't tell if you just said the answer or copy/pasted, but if the latter I'd have thought you'd read it in the process of pasting.
vdamewood has quit [Quit: Life beckons.]
GnuYawk has quit [Ping timeout: 252 seconds]
<havenwood> gambl0re: I assumed comprehension from the correct answer. If there's a small part of code you don't understand, show just that in the snippet. We can't tell which part you don't understand, hence the questions.
pontiki has quit [Quit: leaving]
ki0 has joined #ruby
<gambl0re> let me give you an example why i dont read the doc files...
<mozzarella> havenwood: thank you
rocknrollmarc has joined #ruby
<havenwood> mozzarella: You're welcome!
<gambl0re> lets say i want to learn strings..i go to the ruby doc files
rocknrollmarc has quit [Max SendQ exceeded]
<gambl0re> this is the first paragraph they write.
<gambl0re> A String object holds and manipulates an arbitrary sequence of bytes, typically representing characters. String objects may be created using String::new or as literals.
rocknrollmarc has joined #ruby
<gambl0re> how the hell is a beginner gonna understand that?
rocknrollmarc has quit [Max SendQ exceeded]
ramfjord has quit [Ping timeout: 256 seconds]
<gambl0re> was the doc files written by a robot?
<apeiros> gambl0re: probably by reading it first?
bootstrappm has joined #ruby
rocknrollmarc has joined #ruby
<apeiros> and not just freaking out at the first word they don't understand
<havenwood> gambl0re: It's not written for programming novices. But there are good books like Chris Pine's Learn to Program for that.
<eam> gambl0re: the docs aren't great, but they're also not aimed at complete newbies
rocknrollmarc has quit [Max SendQ exceeded]
<mozzarella> adaedra: is that not what 'print' does?
<ccooke> gambl0re: That's a pretty nice succinct definition. It's written so that someone new to Ruby (but not new to programming) will understand it easily
<mwlang> gambl0re: what part of the definition of a String was unclear there? It was definitely written by a human.
<havenwood> gambl0re: If you wrote all docs for novices the docs would be so expansive they wouldn't be as useful for programmers.
<mozzarella> >> print 'test'
<ruboto_> mozzarella # => testnil (https://eval.in/354936)
<apeiros> they're also API docs, not prose docs. not tutorials.
rocknrollmarc has joined #ruby
<ccooke> gambl0re: if you want to learn programming from scratch, you need a different type of document.
<havenwood> gambl0re: There could be multiple versions of the docs for different levels. That seems neat to me. But we'd have to write them!
<eam> there are lots of legit beefs with the api docs -- loads of stuff aren't documented or are vaguely specified
rocknrollmarc has quit [Max SendQ exceeded]
bahar has joined #ruby
mhoungbo_ has quit [Ping timeout: 256 seconds]
<apeiros> eam: IMO that's improved a lot in the newer versions.
<havenwood> eam: Lots of stuff better documented in Japanese... :O
<eam> but if they were written for someone who didn't know anything about general programming concepts they'd be totally useless to me!
<mwlang> eam: its the vaguely spec’d stuff that kills me every time.
<apeiros> and they're happily accepting patches to improve :)
<havenwood> apeiros: I need to do more of that.
<ccooke> Learning to program is a special case, and better handled by dedicated ddocuments
<mwlang> apeiros: where’s the repo?
<apeiros> mwlang: github.com/ruby/ruby
MatthewsFace has joined #ruby
wallerdev has joined #ruby
<havenwood> mwlang: http://documenting-ruby.org/
rocknrollmarc has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
Tennis has quit [Read error: Connection reset by peer]
rocknrollmarc has quit [Max SendQ exceeded]
<mwlang> havenwood: ah, even better!
Matachin_ is now known as Matachines
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
rocknrollmarc has joined #ruby
Squarepy has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
scripore has quit [Quit: This computer has gone to sleep]
rocknrollmarc has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
wald0 has quit [Ping timeout: 265 seconds]
Matthews_ has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
MatthewsFace has quit [Remote host closed the connection]
Squarepy has joined #ruby
RegulationD has joined #ruby
Guest1421 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
rocknrollmarc has joined #ruby
cajone has joined #ruby
rocknrollmarc has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 256 seconds]
sami has quit [Ping timeout: 256 seconds]
rocknrollmarc has joined #ruby
mhoungbo_ has joined #ruby
zarubin has quit [Remote host closed the connection]
rocknrollmarc has quit [Max SendQ exceeded]
zarubin has joined #ruby
vickleton has joined #ruby
dling has quit []
zarubin has quit [Client Quit]
RegulationD has quit [Ping timeout: 256 seconds]
Xoro has quit [Quit: Leaving]
zarubin has joined #ruby
Mohan_ has quit [Ping timeout: 264 seconds]
lavros has quit [Quit: leaving]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xoro has joined #ruby
sohrab has quit [Ping timeout: 245 seconds]
User458764 has quit [Ping timeout: 264 seconds]
kloeri_ is now known as kloeri
Mohan_ has joined #ruby
scripore has joined #ruby
bahar has quit [Ping timeout: 276 seconds]
scripore has quit [Client Quit]
granthatcher_ has quit []
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
_blizzy_ has joined #ruby
That1Guy has joined #ruby
mwlang has quit [Quit: mwlang]
einarj has quit [Remote host closed the connection]
tvw has quit [Read error: Connection reset by peer]
sami has joined #ruby
aswen has joined #ruby
scripore has joined #ruby
michaeldeol has quit [Max SendQ exceeded]
bahar has joined #ruby
certainty has quit [Remote host closed the connection]
certainty has joined #ruby
certainty has quit [Client Quit]
michaeldeol has joined #ruby
blandflakes has joined #ruby
certainty has joined #ruby
constantinexvi has quit [Max SendQ exceeded]
constantinexvi has joined #ruby
simpyll has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
scripore has quit [Client Quit]
certainty has quit [Remote host closed the connection]
scripore has joined #ruby
certainty has joined #ruby
ramfjord has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sami has quit [Ping timeout: 250 seconds]
That1Guy has joined #ruby
startupality has quit [Quit: startupality]
Diranged has quit [Quit: Leaving.]
Diranged has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
chinmay_dd is now known as chinmay_dd|away
That1Guy has quit [Client Quit]
x1337807x has joined #ruby
wjimenez5271 has joined #ruby
slash_nick has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
ghr has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
devoldmx has quit [Ping timeout: 276 seconds]
poguez_ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
That1Guy has joined #ruby
sami has joined #ruby
lidenskap has joined #ruby
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
sigurding has joined #ruby
sigurding has quit [Client Quit]
IrishGringo has joined #ruby
scripore has joined #ruby
Guest1421 has quit [Ping timeout: 256 seconds]
scripore has quit [Client Quit]
mjuszczak has quit []
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
w0jtas has joined #ruby
freerobby has quit [Quit: Leaving.]
serivich has quit [Ping timeout: 244 seconds]
infinitone has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
thatslifeson has quit [Remote host closed the connection]
<That1Guy> Can someone explain why https://eval.in/355009 doesn't return a stack error but https://eval.in/354999 does?
ponga has quit [Quit: Leaving...]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
n80 has quit [Quit: n80]
<yxhuvud> that1guy: because you have a condition that stop the recursion.
<havenwood> That1Guy: That1Guy Try the former with a larger number, something above 10,000 or so.
<That1Guy> What is the condition that stops the recursion?
mhoungbo_ has quit [Quit: Quitte]
<havenwood> That1Guy: if num <= 1
ramfjord has joined #ruby
mitchellhenke has joined #ruby
wildroman2 has joined #ruby
<That1Guy> I don't see how that stops the recursion. I see that would only keep * 1 every time it moves to -1, -2 and so on
Hijiri has quit [Ping timeout: 252 seconds]
<havenwood> That1Guy: So in the case where it returns `1` you have: num * 1
<havenwood> That1Guy: And you're done. No more recursing.
<That1Guy> Is that not what the other one is doing? *1 for each new loop for lack of a better way of saying it
<havenwood> That1Guy: The other is going forever.
<havenwood> That1Guy: There's no case in which it doesn't recurse further.
<That1Guy> Oh,
thirdknife_ has quit [Ping timeout: 258 seconds]
<That1Guy> Idk why I missed it before.
<That1Guy> yeah, I get it now
<havenwood> That1Guy: Even with the former, you'll hit SystemStackError with larger numbers because Ruby's default is to support trace instruction rather than tailcall optimization. You can enable tailcall optimization when you compile Ruby.
jenrzzz has joined #ruby
<That1Guy> I should probably stop and take a break. Been reading the book for 3 hours straight now.
<havenwood> That1Guy: :)
freerobby has joined #ruby
sankaber has quit [Ping timeout: 250 seconds]
<adaedra> thanks, mozzarella
zotherstupidguy has quit [Quit: leaving]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
sankaber has joined #ruby
Hijiri has joined #ruby
mjuszczak has joined #ruby
mistermocha has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
startupality has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
bmusson has joined #ruby
edwinvdgraaf has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
thirdknife_ has joined #ruby
roshanavand has joined #ruby
tuelz has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
endash has joined #ruby
That1Guy has joined #ruby
nnnn is now known as dwn
quimrstorres has quit [Ping timeout: 250 seconds]
dwn has quit [Changing host]
dwn has joined #ruby
allcentury has joined #ruby
perrier has quit [Read error: Connection reset by peer]
perrier has joined #ruby
mwlang has joined #ruby
That1Guy has quit [Client Quit]
That1Guy has joined #ruby
mjuszczak has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 255 seconds]
Guest1421 has joined #ruby
mjuszczak has joined #ruby
iasoon has quit [Ping timeout: 256 seconds]
Igorshp_ has quit [Remote host closed the connection]
perrier has quit [Read error: Connection reset by peer]
perrier has joined #ruby
iasoon has joined #ruby
<mwlang> has celluloid’s basic usage changed since the documentation was written? A very basic example that they provide does not work. It seems that appending bang (!) to method calls is not the way to call asyncronously. https://gist.github.com/mwlang/5aab67c937d647a86add
nullset68 has joined #ruby
gizmore has joined #ruby
<Senjai> mwlang: Short answer: Yes
<Senjai> mwlang: There has been major refactorings on celluloid done
<Senjai> mwlang: They have an IRC channel, Id check there
<mwlang> also, with celluloid, is the only wait to wait for all actors to finish is to “sleep” ?
<Senjai> mwlang: You can join on the supervision pool. But I think that was pulled from core. I havent used the 'new' version
<mwlang> Senjai: thanks. I’ll hop over to there.
quimrstorres has joined #ruby
RegulationD has joined #ruby
baweaver has joined #ruby
kwekuanase has joined #ruby
<mwlang> quiet channel over a #celluloid Senjai do you know offhand if celluloid pushes work onto every CPU core available when using the pool?
diegoaguilar has quit [Remote host closed the connection]
tuelz has joined #ruby
<Senjai> mwlang: Ruby uses native threads, yes.
<mwlang> using MRI Ruby 2.2
nux443 has joined #ruby
<Senjai> mwlang: However if you're using MRI, you have the GIL
<Senjai> mwlang: Which is still the same thing as always
<Senjai> will only ever run one thread at a time
<Senjai> This isn't that bad... as the actor system accomodates this pretty well
<Senjai> unless you need high performance threading
<Senjai> mwlang: Also, just ask, and people will eventually respond. It is a slower channel
<Senjai> but it is active
lxsameer has joined #ruby
lxsameer has joined #ruby
<mwlang> Senjai: I’m just wanting to tax all CPU cores since I’m loading data from file and inserting into DB
<Senjai> mwlang: Won't happen on MRI.
Mohan_ has quit [Ping timeout: 272 seconds]
<Senjai> mwlang: Use a DRB/process based approach
TheBrayn has quit [Quit: ZNC - http://znc.in]
<Senjai> or used Rbx, or jruby
RegulationD has quit [Ping timeout: 258 seconds]
<mwlang> Senjai: ah, drb…I’d totally forgotten that option.
<Senjai> :)
Mohan has joined #ruby
Mohan is now known as Guest94214
<mwlang> Senjai: really all I need to do, I think is set up the rake task to fire off a whole new process for each *.xml file and that’ll tax the cores plenty good.
Guest1421 has quit [Ping timeout: 276 seconds]
<mwlang> I just haven’t done fork or spawn within ruby before…but I think those are sub processes of the main process (and hence same core) anyway…
moretti has joined #ruby
nanoyak has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
That1Guy has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
chinmay_dd|away is now known as chinmay_dd
nanoyak has quit [Client Quit]
moretti_ has joined #ruby
SouL_|_ has joined #ruby
tus has joined #ruby
_ixti_ has joined #ruby
jespada has joined #ruby
moretti has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 245 seconds]
huddy has quit [Quit: Connection closed for inactivity]
Juanchito has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
certainty has quit [Quit: WeeChat 0.4.3]
DEA7TH has joined #ruby
certainty has joined #ruby
edwinvdg_ has joined #ruby
jerius has quit [Quit: /quit]
alam has joined #ruby
<alam> wanna hear something funny?
<dudedudeman> i like jokes
edwinvdg_ has quit [Remote host closed the connection]
thiagovsk has joined #ruby
<alam> yesterday there was a black guy claiming he's good at programming at chipotle and bragging
certainty has quit [Client Quit]
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdg_ has joined #ruby
certainty has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
* GaryOak_ can feel the admin ban in the air
<alam> he's like i'm becoming really good at programming i know what this string of code does and but i don't have any friends who are programmers because i all they are good at is code and have no social skills
kadoppe has joined #ruby
ramfjord has joined #ruby
<dudedudeman> i don't like joke
<alam> all the while he's trying to sound whiter than george bush
<alam> this is not a joke dudedudeman
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<alam> this just happened
<alam> string of code lmao
phutchins has joined #ruby
<dudedudeman> ...
<alam> he's still got a long way to go if he can only understand strings
<alam> idiot
<alam> XD
<dudedudeman> two things. where's the funny part? and what does him being black have to do with it?
<dudedudeman> also... why am i even bothering
trouloulioud_dev has quit [Quit: Leaving]
* dudedudeman sniffs the air with GaryOak_
<alam> because he doesn't belong in the programming circle
thirdknife_ has left #ruby ["Leaving"]
freerobby has joined #ruby
<alam> his ignorance is so thick
<alam> it's disgusting
jerius has joined #ruby
doodlehaus has joined #ruby
uri_ has joined #ruby
dfinninger has joined #ruby
<arup_r> No records got inserted to the table
bnobu has joined #ruby
x1337807x has quit [Ping timeout: 252 seconds]
colorados has joined #ruby
dfinninger has quit [Ping timeout: 272 seconds]
baweaver has joined #ruby
startupality has quit [Quit: startupality]
alam has quit [Ping timeout: 246 seconds]
mjuszczak has quit []
gusrub has joined #ruby
<arup_r> I got this idea from this link --- http://www.thegeekstuff.com/2010/03/how-to-execute-postgresql-commands-inside-unix-shell-scripts/ but not getting executted the psql command it seeems
krz has joined #ruby
alam has joined #ruby
diegoviola has joined #ruby
<shevy> someone permaban alam, he is back again trolling
w0jtas has quit [Quit: Leaving.]
<alam> what?
<alam> i'm not trolling
<shevy> you know you are lying man
<alam> lying about what?
<shevy> did you do the same thing the last 5 days here
<alam> no
<shevy> are you telling the truth right now
<alam> yes
mjuszczak has joined #ruby
alam was kicked from #ruby by apeiros [your racism is not welcome here.]
gagrio has joined #ruby
<shevy> excellent timing :D
<dudedudeman> Thank you, apeiros. that was almost magically seeing that
<shevy> dudedudeman don't get your hopes up
<shevy> he'l be back
<dudedudeman> ugh.
<shevy> it took sevenseacat about 11 bans yesterday
xxneolithicxx has joined #ruby
<dudedudeman> i hope i'm here for it
<dudedudeman> good lord
edwinvdgraaf has joined #ruby
<apeiros> you're welcome. I know I wasn't responsive the last few days. been sick :( (and sometimes just not my timezone). but please keep using !ops
* arup_r feels helpless
kirun has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
ninjs is now known as firevolt
<shevy> jhass was also fighting the troll
<dudedudeman> what does !ops do?
<dudedudeman> yeah, saw that one earlier
A205B064 has joined #ruby
<dudedudeman> i know i can ignore anyone, but that's no fun
StevenXL has joined #ruby
dfinninger has joined #ruby
<GaryOak_> arup_r: is it giving you an errors?
xcyclist has joined #ruby
codecop has joined #ruby
edwinvdg_ has quit [Ping timeout: 246 seconds]
<StevenXL> Hi - does anyone know any source code that I can use to learn how to use the CSV Standard Library?
slash_nick has joined #ruby
griffindy has joined #ruby
<arup_r> GaryOak_: no..
baweaver has quit [Remote host closed the connection]
dfinning_ has joined #ruby
<StevenXL> I am having a hard time utilizing it even after reading the documentation on the library, so I was hoping real code might help solidify the ideas.
dfinninger has quit [Read error: Connection reset by peer]
<arup_r> only records are not getting inserted,,
rbirch has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
roqo has joined #ruby
<arup_r> StevenXL: search SO
Hijiri has quit [Quit: WeeChat 1.0.1]
roshanavand has quit [Ping timeout: 264 seconds]
<mwlang> StevenXL: lots of examples in the docs: http://ruby-doc.org/stdlib-2.2.0.preview1/libdoc/csv/rdoc/CSV.html
ramfjord has quit [Ping timeout: 256 seconds]
<arup_r> lots of code you will get there.....
<GaryOak_> arup_r: on line 14 of output.sh your \t changed
<StevenXL> arup_r: thanks I'll do that.
<arup_r> humm.. that's strange..
<arup_r> i hv no idea why so... GaryOak_
<mwlang> hot speedalio…jruby has really cleaned up nicely since I last touched it. I can actually type “gem install” and “ruby ….” etc. on command line.
alam has joined #ruby
<GaryOak_> mwlang: you mean running ruby lolz
rbirch_ has joined #ruby
lxsameer has quit [Quit: Leaving]
<jhass> !kick alam
alam was kicked from #ruby by ruboto_ [alam]
<mwlang> GaryOak_: yeah…I mean it actually feels familiar to MRI vs. having to call “jruby” or build my war/jars myself.
ki0 has quit [Remote host closed the connection]
EasyCo has quit [Quit: Connection closed for inactivity]
endash has quit [Quit: endash]
<GaryOak_> mwlang: the last time I used jruby was for RubyProcessing, and it worked ok
colorados has quit [Ping timeout: 276 seconds]
<mwlang> and rvm installed it just fine, too…so barrier to entry is nice and low.
lordkryss has quit [Quit: Connection closed for inactivity]
endash has joined #ruby
scripore has joined #ruby
quimrstorres has quit [Remote host closed the connection]
w0jtas has joined #ruby
anisha has joined #ruby
leafybas_ has joined #ruby
rbirch has quit []
rbirch_ is now known as rbirch
Matthews_ has quit [Remote host closed the connection]
turtil has joined #ruby
<mwlang> ah, too good to be true…failing on nokogumbo gem.
<arup_r> GaryOak_: any suggestion ?
<GaryOak_> arup_r: you probably need to figure out why that \t is getting changed
leafybasil has quit [Ping timeout: 264 seconds]
psy_ has quit [Ping timeout: 272 seconds]
leafybas_ has quit [Ping timeout: 244 seconds]
jokke has quit [Quit: ninja vanish]
tvw has joined #ruby
<GaryOak_> otherwise pg is looking for ' ' as a delimiter
jackjackdripper has quit [Quit: Leaving.]
danman has joined #ruby
roshanavand has joined #ruby
postmodern has joined #ruby
sohrab has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ForkingPaths has quit [Quit: Textual IRC Client: www.textualapp.com]
wldcordeiro_ has joined #ruby
thatslifeson has joined #ruby
jenrzzz has joined #ruby
<GaryOak_> arup_r: whoa what did you do?
<arup_r> thanks for ur helping mind... :D
mary5030 has quit [Ping timeout: 255 seconds]
<arup_r> SEE the EOF heredoc
<arup_r> I added
jackjackdripper has joined #ruby
<GaryOak_> Ahhh, cool dude
<arup_r> that's the trick.. I was missing..
<arup_r> havenwood: addressed... I didn't get that time...
<cosmicfires> I'm looking for a ruby method to take seconds and return hours, minutes and seconds
rbirch has quit [Remote host closed the connection]
Guest94214 has quit [Ping timeout: 276 seconds]
mjmac_ has joined #ruby
Timba-as has joined #ruby
<yxhuvud> cosmicfires, Time.at
wallerdev has quit [Quit: wallerdev]
<cosmicfires> thanks yxhuvud
ngr_ is now known as ngr
<yxhuvud> and then strformat
fibbel has joined #ruby
baweaver has joined #ruby
Mohan has joined #ruby
Matachines has quit [Quit: Textual IRC Client: www.textualapp.com]
Mohan is now known as Guest95697
shuber_ has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
jokke has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
moretti_ has quit [Quit: Leaving...]
mary5030 has joined #ruby
mwlang has quit [Quit: mwlang]
Jackneill has quit [Quit: Leaving]
ItSANgo has joined #ruby
<That1Guy> I'm missing something. I want it to return 0 if it runs off the map
ramfjord has joined #ruby
pjackson has joined #ruby
devoldmx has joined #ruby
<That1Guy> I thought the condition on 21 would have taken care of it. I don't see what I'm missing. Just a student working on a problem from the book.
<pjackson> can anyone explain this apparent bug in keyword arguments? https://gist.github.com/faoiseamh/08fab11a2dfb7ace4192
<That1Guy> if it's nil it's != 'land'
d10n-work has joined #ruby
fmcgeough has quit [Ping timeout: 256 seconds]
shuber_ has joined #ruby
<apeiros> pjackson: I can't even reproduce your first example
sinkensabe has joined #ruby
moretti has joined #ruby
<apeiros> line 8: Demo1.new a: 'one', b: 'two' # => @a = nil and @b = "two"
<apeiros> for me, that's the expected #<Demo1:0x007f8e264750e8 @a="one", @b="two">
mjmac_ has quit [Quit: ZNC - http://znc.sourceforge.net]
<havenwood> ditto
<weaksauce> That1Guy when world[y] is out of bounds it will be nil. then nil[x] gives you that error
fmcgeough has joined #ruby
<pjackson> apeiros: weird - this is with ruby 2.1.2p95
<pjackson> i'll try updating and see if that's just a bug in my ruby version
<apeiros> pjackson: your problem is only the first example?
<adaedra> hi
<apeiros> hi adaedra
wildroman2 has quit [Remote host closed the connection]
<That1Guy> weaksauce: Can I not just add something like || world[y] == nil to the end of 21
DEA7TH has quit [Ping timeout: 265 seconds]
<adaedra> apeiros: weather was full of bans on the channel today :o
sankaber has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
_mak has joined #ruby
Stalkr_ has joined #ruby
sankaber has joined #ruby
weemsledeux has joined #ruby
lxsameer has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
<weaksauce> yeah. typically That1Guy, you'd drop the == nil
<weaksauce> but you need to reverse the order
<weaksauce> actually That1Guy with an or you'd still have the error. rewrite it using an && and have the earlier check be for nil
ngr has quit [Remote host closed the connection]
<adaedra> or use .nil?
<pjackson> apeiros: yes, although the second fixes it by assigning a random instance variable first
<_mak> I have an optimization problem. The code in the lines 60-67 is reeeaaaalllyyyy slow. Is there anything I can do to run it faster? http://privatepaste.com/0a65041ba3
<pjackson> which makes no sense
<apeiros> pjackson: and you're sure you ran the right file? as in, cat it first, then run it with ruby?
<apeiros> (you'd not be the first to edit the wrong file…)
krz has quit [Quit: WeeChat 1.0.1]
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/2015041600]]
<pjackson> yes i'm sure, i made this just to demonstrate it after observing it in my actual app
<havenwood> pjackson: Works in 2.1 and 2.2, so dunno...
<havenwood> pjackson: Just tried it on 2.1.6 and 2.2.2 but both are as expected.
CustosLimen has joined #ruby
giuseppesolinas has joined #ruby
<That1Guy> weaksauce: https://eval.in/355272
<apeiros> actually, I can reproduce in 2.1.2
momomomomo has joined #ruby
<apeiros> seems to indeed be a bug in 2.1.2
BlaDe^ has quit [Remote host closed the connection]
DeBot has quit [Quit: Crystal]
iamninja has joined #ruby
<havenwood> pjackson: Always use latest TINY version!
DeBot has joined #ruby
<pjackson> yeah figured it was an actual ruby bug, updating should fix
Hijiri has joined #ruby
<weaksauce> That1Guy https://eval.in/355306
moretti has quit [Quit: Leaving...]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
jerius has quit [Quit: /quit]
sinkensabe has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
<havenwood> _mak: `!File.zero? json_file_location` instead of `File.exists?(json_file_location) && File.size(json_file_location) != 0`
scripore has quit [Quit: This computer has gone to sleep]
sinkensabe has joined #ruby
simpyll has quit [Ping timeout: 255 seconds]
<havenwood> _mak: #any? instead of #find
dblessing has joined #ruby
psy_ has joined #ruby
<_mak> havenwood: cool
einarj has joined #ruby
baweaver has quit [Remote host closed the connection]
Cope has left #ruby [#ruby]
<havenwood> _mak: It'd be interesting to see which part is taking the most time with a profiler.
Musashi007 has joined #ruby
<_mak> havenwood: is there any way to avoid having the file zeroed before adding content again?
<_mak> sometimes when I interrupt the script, the file will be empty
<_mak> because of json_file = File.open(json_file_location, "w")
RegulationD has joined #ruby
<_mak> I could not find a way to use append
Guest95697 has quit [Ping timeout: 264 seconds]
duderonomy has quit [Ping timeout: 265 seconds]
<_mak> if I comment the lines 60-67 the thing runs really fast
icebourg has quit []
<_mak> I guess is the parsing and find that takes time
zacts has joined #ruby
jerius has joined #ruby
Mohan_ has joined #ruby
icebourg has joined #ruby
<havenwood> _mak: Profile it: https://github.com/ruby-prof/ruby-prof
* pipework wishes the debugging options for ruby 2.0.0 weren't abominable
Hirzu has quit [Remote host closed the connection]
<That1Guy> weaksauce: I don't understand why yours worked and this one didn't https://eval.in/355310
almostworking has joined #ruby
<That1Guy> I just spent the last ten minute looking it over. Github shows the only changes are /Users/TheMoores/Desktop/Screen Shot 2015-05-13 at 12.44.13 PM.png
swgillespie has joined #ruby
<_mak> havenwood: will do. thanks mate!
_seanc_ has joined #ruby
RegulationD has quit [Ping timeout: 258 seconds]
<That1Guy> if world[y][x] != 'land' || world[y].nil?
<That1Guy> if world[y].nil? || world[y][x] != 'land'
<weaksauce> That1Guy order matters
almostworking has quit [Remote host closed the connection]
Soda has joined #ruby
<weaksauce> execution is from left to right until it satisfies the logic.
ki0 has quit [Remote host closed the connection]
<adaedra> >> a = 1; b = 2; if a = 3 || b = 4 ; end ; [a, b]
<ruboto_> adaedra # => [3, 2] (https://eval.in/355341)
<weaksauce> since it's an or(||) type statement it will stop at the first truthy value. with an and(&&) it will stop at the first falsy value
IrishGringo has quit [Ping timeout: 256 seconds]
konsolebox has quit [Quit: Leaving]
<adaedra> >> a = 1; b = 2; if b = 3 || a = 4 ; end ; [a, b]
<ruboto_> adaedra # => [1, 3] (https://eval.in/355342)
sinkensabe has quit [Remote host closed the connection]
zzxc has joined #ruby
juanpaucar has joined #ruby
<_mak> jhass: you always have some great tips to give :) Do you see any obvious improment on the lines 60-67? http://privatepaste.com/0a65041ba3
<adaedra> See, evaluation only take the first truthy expression.
<That1Guy> the && isn't working when I try it though
nullset68 has quit [Quit: WeeChat 0.4.2]
bb010g has joined #ruby
chinmay_dd has quit []
sinkensabe has joined #ruby
baweaver has joined #ruby
roolo has joined #ruby
<weaksauce> That1Guy it's different logic. it means if this is true AND that is true then do the following block
n80 has joined #ruby
nobitanobi has joined #ruby
<jhass> _mak: my tip is please see channel rule 2.7 http://ruby-community.com/pages/user_rules
<weaksauce> That1Guy whereas with or it means if this is true do the block OR that is true do the block
<That1Guy> So if I use and, it breaks again because it won't stop when it finds 'land'
<That1Guy> ?
Hirzu has joined #ruby
<_mak> jhass: ok, sorry about that
mjuszczak has quit []
<havenwood> _mak: It's usually idiomatic to use a block with File.open for automatic closing etc. You can write to a file with File.write without manually opening and closing.
braincrash has quit [Quit: bye bye]
<havenwood> _mak: More folk would view your code if you pasted to gist.github.com. Your choice has an outdated certificate, etc.
maletor_ has quit [Quit: Computer has gone to sleep.]
<shevy> I won't look at his code!
leafybasil has joined #ruby
MatthewsFace has joined #ruby
<That1Guy> Thanks weaksauce:
<_mak> havenwood: is just that the code is so ugly that I want it to vanish from the web after some time :) on gist it will stay from what I understood
<havenwood> _mak: You can gist anonymously. Then delete the gist.
<_mak> havenwood: oh, let me check it again then..
<weaksauce> always use && for logic That1Guy
<weaksauce> well && or || is what I mean
<weaksauce> don't use the `and` or `or` keyword
mjuszczak has joined #ruby
quimrstorres has joined #ruby
dfinning_ has quit [Remote host closed the connection]
ernham has joined #ruby
GnuYawk has joined #ruby
einarj has quit [Remote host closed the connection]
<_mak> :)
Musashi007 has quit [Quit: Musashi007]
<pipework> Mmm, `and` & `or`.
<havenwood> _mak: Now just name the gist filename with a .rb extension. You can edit gists or add files to them.
<shevy> _mak you can also remove your gists from gisthub again btw
<havenwood> _mak: If you update the same gist folk can just refresh.
mjuszczak has quit [Client Quit]
tuelz has quit [Quit: WeeChat 1.1.1]
nobitanobi has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<havenwood> _mak: Naming files correctly lets people clone your gist and try locally.
<adaedra> "gisthub"
nobitanobi has joined #ruby
<zzxc> Hey, I don't know if this is the place to ask this. But I'm having an issue with Bundle install not listing Rmagick. Do I need to change some config or what not?
uptownhr has quit [Read error: Connection reset by peer]
<havenwood> adaedra: ha, it actually does redirect :)
<havenwood> gisthub.com
<adaedra> havenwood: awesome
<adaedra> zzxc: well, is it in your Gemfile?
braincrash has joined #ruby
Igorshp has joined #ruby
ghr has quit [Ping timeout: 255 seconds]
<havenwood> _mak: You deleted the latter too fast. But instead of a second gist, add a second file to your first gist.
<havenwood> _mak: Edit the gist, and in the lower left "Add file"
<zzxc> adaedra: Let me look. the gemfile references gem.local
<adaedra> what?
<_mak> havenwood: I don't have an edit button and anonymous I think
<_mak> havenwood: oh you mean when I'm creating it
maletor_ has joined #ruby
<havenwood> _mak: I actually meant to edit it, but maybe I don't create sekret gists enough. :P
<_mak> havenwood: yes, I have only the delete button
<zzxc> adaedra: I don't actaully see anything in the gemfile to reference any gem.
<adaedra> zzxc: if you're unsure, gist it
axl__ has joined #ruby
<shevy> I can edit and delete my gists on github just fine. I am logged in though
<havenwood> _mak: Okay, looks like you have to be slightly less super-sekret to edit... You can edit a secret gist but not an anonymous sekret gist apparently.
<_mak> ahh
<adaedra> shevy: not everyone has a github account :/
<canton7> not anonymous, no
axl_ has quit [Ping timeout: 256 seconds]
axl__ is now known as axl_
<shevy> adaedra do you have one
<adaedra> yes
<shevy> if the french can use an english interface, then everyone else can!
<adaedra> shevy: ...
<adaedra> this is getting old
<shevy> never :)
<zzxc> adaedra: This is for redmine for what its worth.
<adaedra> aah, it's redmine?
frem has joined #ruby
freerobby has quit [Quit: Leaving.]
<adaedra> Let me check a thing then
gaganjyot has joined #ruby
quimrstorres has quit [Remote host closed the connection]
zacts has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
zacts has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<zzxc> adaedra: More or less. I already have Redmine Installed. I just installed it without install rmagick first.
zacts has quit [Remote host closed the connection]
<_mak> havenwood: I guess that this seems to be taking some resource: .encode!('UTF-8', 'UTF-8', :invalid => :replace)
<havenwood> _mak: aye, a lot
<apeiros> use String#scrub
<adaedra> zzxc: and now you want to have rmagick
<apeiros> @ _mak
<zzxc> adaedra: Yep
unlimitednigga has joined #ruby
<havenwood> _mak: profiling is handy to find the culprit
<adaedra> what command do you use zzxc ?
<_mak> apeiros: I'll check it, thanks
<zzxc> For the bundle install?
<zzxc> bundle install --without development test
<adaedra> Yes
apt-get__ has joined #ruby
<adaedra> ok, seems correct
<adaedra> and it doesn't list rmagick?
almostworking has joined #ruby
<zzxc> adaedra: Nope. Bundle show list bundler and httpclient. No rmagick
<adaedra> So I suppose it's not in Gemfile.lock either?
<unlimitednigga> bruh why is crackers tryna take ova dat programmin and not let black ppl in n shit what cud we do to stop dem bitch ass racists from oppressing n shi
<unlimitednigga> i lurned ruby in 12 dayz nigga
<zzxc> adaedra: That would be correct. just httplient.
<adaedra> just httpclient? o_O
codecop has quit [Remote host closed the connection]
<adaedra> redmine should be much more than just httpclient
<unlimitednigga> we need to make a thing where we is tryna get black ppl on dat programmin asap nigga
<adaedra> apeiros
almostworking has left #ruby [#ruby]
<apeiros> oh dear. today is mentally underprepared day…
<adaedra> zzxc: to be sure, you call bundle install from redmine's root, not a subfolder?
unlimitednigga was kicked from #ruby by apeiros [your racism is still not welcome. piss off.]
<zzxc> Pretty postive let me double check.
<adaedra> "piss off."
apt-get_ has quit [Ping timeout: 244 seconds]
<adaedra> it sounds like you're getting angry
<apeiros> slightly
GnuYawk has quit [Ping timeout: 256 seconds]
<adaedra> I'm going slightly mad ♫
<apeiros> I want to watch my netflix in peace.
<adaedra> oh, sorry
<apeiros> always have to rewind due to that asshole.
bluOxigen has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zzxc> adaedra: Nope its in /usr/share/redmine
<apeiros> huh? nono, not angry because of you adaedra. because of that racist asshole.
<adaedra> I know
Musashi007 has joined #ruby
<havenwood> every time i step away for a second the trolls emerge
<adaedra> Next time, I'll try another op :x
<zzxc> Yeah I had a roommate like that at one point. Sorry to hear it.
<apeiros> adaedra: just !ops as you've done before. that's the best :)
<adaedra> zzxc: and you run bundle install from this folder, right?
<adaedra> apeiros: yeah, sure, but your netflix!
<apeiros> can be rewinded
<adaedra> good guy netflix
<jhass> apeiros: mh, do you know offhand how to turn authname into cinch user object? might hotfix it for (available) nicks
<adaedra> zzxc: (soory if I seem repetitive, I'm not sure to see what happends, so shoots in the dark)
<zzxc> adaedra: Yep. Its only uses httpclient and bundler when you do a bundle install.
<apeiros> jhass: nope, sorry
<adaedra> that's insane
<_mak> line = CSV.parse(row.scrub!("_").gsub(/"/,"'"),{:col_sep => "|"}) if row is a string why do I get 'undefined method `scrub!' for #<String:0x00000000d9ae40> (NoMethodError)' ?
failshell has quit [Remote host closed the connection]
<zzxc> adaedra: No worries. I'm really hoping its something simple. I don't know much about ruby unforantly.
<apeiros> jhass: in the upcoming api, it'll be bot.user_by_auth_name
<apeiros> too bad I've been sick for a couple of days :-/
<adaedra> :(
<havenwood> Any Textual user know how to silence join/part without also silencing the rest of the general messages? Been trying it out but can't figure out how to fine tune general messages.
<adaedra> havenwood: if you find, tell me
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<adaedra> mmmh
<adaedra> zzxc: i'll look with a redmine install
Rapier- has quit [Quit: (null)]
adaedra_ has joined #ruby
<zzxc> havenwood, adaedra Found it.
ernham has left #ruby [#ruby]
adaedra_ has left #ruby [#ruby]
<zzxc> Textual → Preferences → Style → Show general event messages (you want it unchecked)
<adaedra> Ah
<havenwood> zzxc: But I do want general event message other than joins and parts.
<adaedra> I worked it by putting an ignore on *!*@* for this kind of messages
<adaedra> zzxc: what kind?
<adaedra> oops.
<adaedra> havenwood: what kind?
Azure|dc has joined #ruby
That1Guy has joined #ruby
danman has quit [Quit: danman]
<adaedra> zzxc: I thought you found why your bundle was acting weird :/
<havenwood> adaedra: mode changes and such
<zzxc> adaedra: ?
<adaedra> Ah, this I can't test here
<adaedra> havenwood: if you can't find, bug the textual github
<adaedra> zzxc: you said 'Found it' :)
nobitanobi has quit [Remote host closed the connection]
duderonomy has joined #ruby
workmad3 has joined #ruby
<zzxc> adaedra: Ahahaha I thought you said you found it just now. Sadly no.
<zzxc> Would it work to add it to the gemfile somehow?
Azure has quit [Ping timeout: 256 seconds]
<_mak> apeiros: sorry mate, I can't understand what is wrong with the way I'm trying to use scrub. line = CSV.parse(row.scrub!.gsub(/"/,"'"),{:col_sep => "|"}) is this wrong?
<adaedra> So, who will be the slowest tonight, hg or bundler?
That1Guy has quit [Client Quit]
<adaedra> zzxc: I'm not even sure your redmine install would work reliably here with how your bundle react...
mjuszczak has joined #ruby
bluOxigen has left #ruby [#ruby]
<adaedra> zzxc: for reference, this is what I get https://gist.github.com/adaedra/2d3c47d191e1b2658883
nobitanobi has joined #ruby
<certainty> o/
<adaedra> \o
<zzxc> adaedra: Wow. Thats an impressive list.
<adaedra> zzxc: yeah, but it also means you have a problem with your redmine :x
<zzxc> Well the thing is it works fine.
msmith_ has joined #ruby
<adaedra> so it don't rely on bundler
<zzxc> Database, Svn & git integration, front end all work fine.
<zzxc> adaedra: Where did you install yours from?
<adaedra> you can try to install rmagick manually and see if redmine picks it up?
<adaedra> zzxc: hg clone, like in the documentation
banister has joined #ruby
<zzxc> adaedra: And that might be source of that issue. I ended up being lazy and just using apt-get install
<adaedra> for redmine?
<zzxc> Yep.
pjackson has left #ruby [#ruby]
<adaedra> then you can try to install rmagick the same way if it exists as a package
<zzxc> It installs 2.5.X
<adaedra> I installed redmine though apt-get in 2013 iirc
<zzxc> adaedra: Its a ruby gem file.
msmith_ has quit [Read error: Connection reset by peer]
<adaedra> zzxc: debian package manager has many gems available.
<zzxc> Funky. I didn't think gem would like that.
msmith_ has joined #ruby
<zzxc> Uhm anyways I didn't see it. I did install the gem for however.
al2o3-cr has quit [Ping timeout: 256 seconds]
<adaedra> Restart your redmine instance and check if rmagick is picked up.
<zzxc> I just can't get it redmine to use it.
<zzxc> adaedra: Did that a few times.
<adaedra> You can try putting it in the Gemfile
<adaedra> I just don't know anymore
wildroman3 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
<zzxc> adaedra: Alright I'll try that. Thak you.
Joufflu has joined #ruby
<adaedra> Debian, debian, debian.
<zzxc> What are you running off of?
<zzxc> (Just wondering)
doodlehaus has quit [Ping timeout: 264 seconds]
<adaedra> Desktop OS X, Personal server FreeBSD
<certainty> eek
<certainty> *scnr*
<adaedra> here we go
<certainty> hehe
<adaedra> let me guess, you don't like FreeBSD?
kappy has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
<certainty> well not as a server OS
<certainty> at least not when i have more than one server
<adaedra> did you read what I wrote?
<adaedra> ah no
<zzxc> adaedra: Ahh nice. My brother was always loved freeBSD for server. Has hardware support gotten better?
x1337807x has joined #ruby
<adaedra> should stop doing so many things at the same time -_-
<certainty> :)
<adaedra> certainty: well, it's a personal one. But I like FreeBSD a lot.
sumark has quit [Remote host closed the connection]
<certainty> I'm biased. I work for a company that ran most of their servers with FreeBSD. We've replaced most of them to linux now. Maintenance was a real pain in the ass.
nobitanobi has joined #ruby
<certainty> s/to/with/
<adaedra> zzxc: dunno
<adaedra> it works for mine
<adaedra> certainty: how so? (curious)
doodlehaus has joined #ruby
<certainty> there are however still some left. 4.3 no way to get it uptodate :/
sumark has joined #ruby
<adaedra> 4.3?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<certainty> adaedra: the upgrade procedure is so lengthy.
<certainty> yeah
<adaedra> ahah
granthatcher has joined #ruby
<adaedra> ok, I understand better
granthatcher has quit [Max SendQ exceeded]
<adaedra> we're at like, 10.1 now
<certainty> i know
Soda has quit [Remote host closed the connection]
<certainty> we actually run a few recent FreeBSDs
<adaedra> zzxc: strange, your Gemfile looks nothing like the one I have here. Will look with your version of redmine.
<certainty> my boss loves that OS :)
granthatcher has joined #ruby
<adaedra> I love it
granthatcher has quit [Max SendQ exceeded]
<adaedra> I use it mainly for the jail system and the ports, tbh
<certainty> i actually dislike the ports
zarubin has quit [Remote host closed the connection]
granthatcher has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> Haven't used hg in a while it seems
<zzxc> adaedra: Jail system?
<adaedra> Let's be lazy and use GUI tools :x
<certainty> i'm cool with source distros. We use gentoo as the main os. But ports is just so painful.
<adaedra> certainty: how so?
<zzxc> chroot users?
granthatcher has quit [Client Quit]
<adaedra> zzxc: a chroot, but pushed further
<certainty> adaedra: dependency management just doesn't work well. Also cleaning up or upgrading a port with many dependencies like apache + php + modules can be frustrating.
<certainty> go to 10 different places and make uninstall, then go back to the original port and make install, just to see that you forgot something
<adaedra> certainty: until recently, I used poudriere for ports building and pkg for installing. Work'd well for me.
<certainty> doesn't pkg just install binary packages?
<certainty> ah, wait i think i got you wrong
<adaedra> yes, it does
<adaedra> poudriere builds the binary packages
<certainty> from the ports?
<adaedra> yes
<certainty> i see
<adaedra> you give the list of packages you want, and it does everything automatically
wallerdev has joined #ruby
<certainty> i might suggest that to our admins.
nobitanobi has quit [Remote host closed the connection]
<adaedra> had some trouble with some package building, but it was a minority
swgillespie has joined #ruby
Mohan_ has quit [Ping timeout: 272 seconds]
<adaedra> uses zfs (if you have) and jails and build packages in parallel.
wilornel has quit [Quit: Changing server]
<zzxc> adaedra:I had to set up a jailed sftp use with in the first couple of weeks of my first CS job (I was physics major).
nobitanobi has joined #ruby
<adaedra> zzxc: so I have the same thing as you have in my redmine Gemfile. Only difference, I have 94 lines before...
<adaedra> ah nice
Mohan has joined #ruby
<adaedra> my irc bouncer is in a jail
dented42 has joined #ruby
<certainty> poor bouncer
<adaedra> he doesn't seems to mind
Mohan is now known as Guest94613
<adaedra> actually, everything is jailed, "host" is a base FreeBSD with nothing extra installed.
<zzxc> adaedra: My boss was comepletely content just giving them unrescricted sftp & ssh connection to our integration partners.
<adaedra> :|
tcrypt has joined #ruby
xnr has quit [Quit: <3]
<certainty> what could possibly go wrong? (TM)
decoponio has quit [Quit: Leaving...]
lkba has joined #ruby
diegoviola has quit [Quit: WeeChat 1.1.1]
Zai00 has joined #ruby
<adaedra> Ah, where is it again?
<zzxc> Small start up. Rather not say beyond that.
<adaedra> ™
nobitanobi has quit [Remote host closed the connection]
<adaedra> zzxc: you don't have to :)
icebourg has quit [Ping timeout: 252 seconds]
claw has joined #ruby
<adaedra> He didn't even stay one second :o
CloCkWeRX has joined #ruby
claw has joined #ruby
xnr has joined #ruby
sn0wb1rd has quit [Ping timeout: 265 seconds]
shuber_ has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
icebourg has joined #ruby
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty> DeBot: _
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣ [_] 1/12
<certainty> DeBot: :
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣ [_:] 2/12
<certainty> DeBot: .
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣ [_:.] 3/12
<adaedra> DeBot: #
<DeBot> ␣␣␣#␣␣␣␣␣␣␣ [_:.] 3/12
<certainty> woops
<adaedra> bim
<adaedra> DeBot: net
<DeBot> ␣␣␣#␣n␣␣e␣t [_:.] 3/12
<certainty> DeBot: r
<DeBot> ␣␣␣#␣n␣␣e␣t [_:.r] 4/12
<adaedra> derp.
<certainty> DeBot: i
<DeBot> ␣␣␣#in␣␣e␣t [_:.r] 4/12
<adaedra> DeBot: u
<DeBot> ␣␣␣#in␣␣e␣t [_:.ru] 5/12
martinbmadsen has quit [Remote host closed the connection]
<certainty> DeBot: s
<DeBot> ␣S␣#ins␣e␣t [_:.ru] 5/12
<adaedra> DeBot: r
<DeBot> ␣S␣#ins␣e␣t [_:.ru] 5/12
<certainty> DeBot: p
<DeBot> ␣S␣#inspe␣t [_:.ru] 5/12
<certainty> DeBot: c
<DeBot> CS␣#inspect [_:.ru] 5/12
<certainty> DeBot: v
<DeBot> CSV#inspect [_:.ru] 5/12 You won!
<adaedra> gg
<adaedra> http://_:.ru
axl_ has quit [Quit: axl_]
<adaedra> aw, not valid.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty> heh
yqt has joined #ruby
<certainty> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [#] 1/12
<certainty> -.-
<adaedra> :D
<certainty> DeBot: :
<DeBot> ␣␣␣::␣␣␣␣::␣␣␣␣␣ [#] 1/12
<adaedra> DeBot: :.
<DeBot> ␣␣␣::␣␣␣␣::␣␣␣␣␣ [#.] 2/12
ghr has joined #ruby
<adaedra> wut
<adaedra> DeBot: net
<DeBot> Net::␣TT␣::␣t␣␣t [#.] 2/12
shuber_ has joined #ruby
<adaedra> DeBot: hp
<DeBot> Net::HTTP::␣t␣␣t [#.] 2/12
martinbmadsen has joined #ruby
<certainty> hmm
<adaedra> HMM
nobitanobi has joined #ruby
<adaedra> DeBot: a
<DeBot> Net::HTTP::␣ta␣t [#.] 2/12
kirun has quit [Quit: Client exiting]
<adaedra> DeBot: sr
<DeBot> Net::HTTP::start [#.] 2/12 You won!
<certainty> well done
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
<adaedra> thanks
<zzxc> Hey adaedra does your redmine install. Is your yml files in config or in /etc/?
<adaedra> no
<adaedra> actually, I just cloned and ran bundle install
thatslifeson has quit [Remote host closed the connection]
That1Guy has joined #ruby
<adaedra> what's your debian version?
programm1 has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
<zzxc> Its ubuntu 14.04.
<adaedra> :˚
djbkd has quit [Remote host closed the connection]
<zzxc> Haha, yeah I know. But It was the best option AWS at the time.
programmerq has quit [Ping timeout: 256 seconds]
<adaedra> I was :˚ for my error about debian/ubuntu.
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> I try not to juge OS in here when helping.
mcpierce has quit [Ping timeout: 264 seconds]
<zzxc> Also I mangae 4 machines that run the same thing, so it makes it signicifally easier
<zzxc> actually 5
x1337807x has joined #ruby
ramfjord has joined #ruby
programm1 is now known as programmerq
<adaedra> mmh, website says redmine is 2.4.2
crdpink2 has quit [Quit: q term]
<adaedra> OMFG DEBIAN
<zzxc> Ah no I'm running for an svn repo
<zzxc> ?
<adaedra> ah, you run it from svn?
<adaedra> because
<zzxc> Well I am now.
anisha has quit [Quit: Leaving]
<zzxc> Its the 2.6 version. Figured I might as well. Might explain some of the funky behavior I've had with ssl as well.
nobitanobi has quit [Remote host closed the connection]
duderonomy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
Perdomo has joined #ruby
sinkensabe has quit [Remote host closed the connection]
vikaton has joined #ruby
<adaedra> There's this wonderful thing in "debian" package source for your ubuntu version
crdpink has joined #ruby
<adaedra> Which explains why bundler installs nothing
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
scripore has joined #ruby
sinkensabe has joined #ruby
mcpierce` has joined #ruby
<zzxc> Hahaha yep.
<adaedra> They actually completly remove bundler from redmine
umgrosscol has quit [Remote host closed the connection]
<adaedra> Oh my god ubuntu what are you doing
<adaedra> (Sorry for the exclamation above, it may not be debian this time)
nateberkope has joined #ruby
charliesome has joined #ruby
paulcsmith_ has joined #ruby
crdpink has quit [Client Quit]
thoffmeyer has quit [Quit: Leaving]
<zzxc> adaedra: Yeah. I've talked to some people who have stopped using the ubuntu version of this because they keep running into so many issues. I think this is the source.
<adaedra> zzxc: so you're trying with a clean install from svn?
<zzxc> Yep.
<vikaton> How do I append to a file instead of overwriting it?
<adaedra> great
jespada has quit [Ping timeout: 255 seconds]
<adaedra> vikaton: see File#open flags
P1RATEZ2 has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
scripore has quit [Client Quit]
n80 has quit [Quit: n80]
orionstein is now known as orionstein_away
sargas_ has joined #ruby
<adaedra> oh my god, all this lost time for something so simple.
ghr has quit [Ping timeout: 264 seconds]
<zzxc> adaedra: Haha. I'm sorry about that.
P1RATEZ2 has quit [Client Quit]
<adaedra> don't be, not your fault
nobitanobi has quit [Remote host closed the connection]
superspring_ has joined #ruby
bkutil__ has joined #ruby
nobitanobi has joined #ruby
P1RATEZ has quit [Disconnected by services]
blazes816 has joined #ruby
iasoon has quit [Ping timeout: 264 seconds]
P1RATEZ has joined #ruby
ramfjord_ has joined #ruby
ghr has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
ryotarai_ has joined #ruby
ptierno_ has joined #ruby
pygospa has quit [Disconnected by services]
sinkensabe has quit [Remote host closed the connection]
gkra_ has joined #ruby
rgs_ has joined #ruby
TheRealPygo has joined #ruby
crdpink has joined #ruby
nwkr has joined #ruby
duderonomy has joined #ruby
izzol_ has joined #ruby
eythoriu1 has joined #ruby
dahl_ has joined #ruby
sohrab_ has joined #ruby
x1337807_ has joined #ruby
uri__ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ruboto__ has joined #ruby
allcentury has joined #ruby
m4rCsi_ has joined #ruby
livathinos has joined #ruby
adam- has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
bigmac_ has joined #ruby
gaganjyot has quit [Quit: Leaving]
cats has joined #ruby
orionstein_away is now known as orionstein
_mak has left #ruby [".."]
x1337807x has quit [Ping timeout: 250 seconds]
Spleeze has quit [Ping timeout: 250 seconds]
Brando753 has quit [Ping timeout: 250 seconds]
Ankhers has quit [Ping timeout: 250 seconds]
lostcat has quit [Ping timeout: 250 seconds]
paulcsmith has quit [Ping timeout: 250 seconds]
bkutil has quit [Ping timeout: 250 seconds]
ryotarai has quit [Ping timeout: 250 seconds]
opes has quit [Ping timeout: 250 seconds]
mclee has quit [Ping timeout: 250 seconds]
Nilium has quit [Ping timeout: 250 seconds]
ptierno has quit [Ping timeout: 250 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
sargas has quit [Ping timeout: 250 seconds]
ldnunes has quit [Ping timeout: 250 seconds]
GGMethos has quit [Ping timeout: 250 seconds]
v0n has quit [Ping timeout: 250 seconds]
dudedudeman has quit [Ping timeout: 250 seconds]
rgs has quit [Ping timeout: 250 seconds]
skakri has quit [Ping timeout: 250 seconds]
jtperreault has quit [Ping timeout: 250 seconds]
tcrypt has quit [Ping timeout: 250 seconds]
sohrab has quit [Ping timeout: 250 seconds]
A205B064 has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Ping timeout: 250 seconds]
Giorgio has quit [Ping timeout: 250 seconds]
bigmac has quit [Ping timeout: 250 seconds]
noname1 has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Ping timeout: 250 seconds]
nricciar has quit [Ping timeout: 250 seconds]
xybr_ has joined #ruby
cosmicfires has quit [Ping timeout: 250 seconds]
gkra has quit [Ping timeout: 250 seconds]
choke has quit [Ping timeout: 250 seconds]
xybre has quit [Ping timeout: 250 seconds]
Nowaker has quit [Ping timeout: 250 seconds]
eythorium has quit [Ping timeout: 250 seconds]
superspring has quit [Ping timeout: 250 seconds]
izzol has quit [Ping timeout: 250 seconds]
adam12 has quit [Ping timeout: 250 seconds]
maoi has quit [Ping timeout: 250 seconds]
m4rCsi has quit [Ping timeout: 250 seconds]
ryotarai_ is now known as ryotarai
dahl has quit [Ping timeout: 250 seconds]
cosmicfires has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
skakri has joined #ruby
ldnunes has joined #ruby
A205B064 has joined #ruby
opes has joined #ruby
mclee has joined #ruby
dudedudeman has joined #ruby
Giorgio has joined #ruby
GGMethos_ has joined #ruby
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
Nilium has joined #ruby
jtperreault has joined #ruby
nricciar has joined #ruby
v0n has joined #ruby
Brando753 has joined #ruby
<StevenXL> Hi everyone. I have created a new object, called dinosaur. I then put a handful of those objects in an array.
phizzbuzz has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
Ankhers has quit [Changing host]
Ankhers has joined #ruby
Spleeze has joined #ruby
uri_ has quit [Ping timeout: 264 seconds]
michael_imac has joined #ruby
P1RATEZ has quit [Quit: wow the network is taking a shit]
livathinos has quit [Client Quit]
<adaedra> An array of dinosaurs?
<adaedra> Let no one escape
scripore has joined #ruby
failshell has joined #ruby
<StevenXL> haha
amystephen has quit [Ping timeout: 256 seconds]
<StevenXL> exactly
<Obfuscate> dinosaurs.shuffle
<StevenXL> I don't want Jurassic Park on my hands.
Guest36286 has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
Igorshp has quit [Remote host closed the connection]
<StevenXL> Actually, I think my problem is that I didn't tell the object how to use to_s
<adaedra> how to use, or how to respond to?
<StevenXL> how to respond to.
<adaedra> ok
A124 has quit [Ping timeout: 264 seconds]
<adaedra> and so?
jtdowney has joined #ruby
jimms has quit [Ping timeout: 246 seconds]
ldnunes has quit [Quit: Leaving]
choke has joined #ruby
<zzxc> Ack alright I'm taking a break I need to head home anyways.
failshell has quit [Ping timeout: 265 seconds]
<zzxc> adaedra: Thank you for your help. I'll see you around.
<adaedra> Good luck!
<zzxc> Thanks =]
nobitanobi has quit [Remote host closed the connection]
noname1 has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
shazaum_ has quit [Quit: Leaving]
fara has quit [Changing host]
fara has joined #ruby
JDiPierro has quit [Remote host closed the connection]
noonius has joined #ruby
fara has quit [Quit: Changing server]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
<StevenXL> adaedra: I'm not getting the right results when I call puts on my new class.
d10n-work has quit [Quit: Connection closed for inactivity]
JimmyNeutron has joined #ruby
zzxc has quit [Ping timeout: 244 seconds]
sepp2k has quit [Quit: Leaving.]
nobitanobi has quit [Ping timeout: 244 seconds]
<StevenXL> I've pasted the code there. Basically, I created a new class called Dinosaurs. I also created a new class called Dinodex. Dinodex is simply an array of Dinosaurs. When I call puts on a Dinodex object, I'd like it to have the same behavior as if I called puts on an array.
roshanavand has quit [Quit: Konversation terminated!]
<adaedra> Qui me parle ?
phizzbuzz has joined #ruby
<adaedra> Your gist 404.
<adaedra> 404s.*
<weaksauce> delete the %25 adaedra
<adaedra> ?
<weaksauce> from the url
<adaedra> Thank you
noonius has quit [Quit: noonius]
<toretore> ?gist-usage
<ruboto__> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<adaedra> It's 23:26, you have to excuse me :x
<toretore> StevenXL: ^
seal has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
A124 has joined #ruby
<StevenXL> adaedra: it was my fault, I messed up the link.
Guest1421 has joined #ruby
<adaedra> np
<adaedra> let's put some colors on that.
startupality has joined #ruby
<adaedra> Well, I think it calls #inspect, not #to_s
<StevenXL> adaedra: I chose Ruby as the language, not sure why there's no syntax highlighting
<StevenXL> adaedra: ok, let's see if I can over-ride inspect
wildroman3 has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
tvw has quit [Remote host closed the connection]
wildroman2 has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xray has joined #ruby
baweaver has quit [Remote host closed the connection]
<adaedra> wait
nobitanobi has joined #ruby
<StevenXL> OK.
baweaver has joined #ruby
GaryOak_ has joined #ruby
<GaryOak_> #ruby is the best place to hang out in the afternoon!
sevvie has joined #ruby
<adaedra> StevenXL: If i read correctly, your dinosaurs should be printed twice
aswen has quit [Ping timeout: 240 seconds]
scripore has quit [Quit: This computer has gone to sleep]
njs126 has quit [Quit: Leaving]
<adaedra> well, without the csv I won't be able to try it >_>
<adaedra> GaryOak_: "afternoon"
Guest1421 has quit [Ping timeout: 240 seconds]
<weaksauce> puts calls to_s and p calls inspect
<adaedra> well, it's technically after noon.
Azure|dc is now known as Azure
<adaedra> weaksauce: yeah, I saw that, hence my "wait"
doodlehaus has quit [Remote host closed the connection]
<adaedra> StevenXL: is it the case?
<GaryOak_> adaedra: Yeah it's my afternoon
bahar_ has joined #ruby
FernandoBasso has joined #ruby
<StevenXL> adaedra: You'd like me to post the csv as well? It's already in a repo
<StevenXL> I'll link you to it
RegulationD has quit [Ping timeout: 258 seconds]
<adaedra> To be able to test, yes
<StevenXL> that's the raw CSV
starless has joined #ruby
jerius_ has joined #ruby
freerobby has quit [Quit: Leaving.]
<adaedra> well, that's what happens
<adaedra> StevenXL: what is #to_s supposed to do?
<weaksauce> StevenXL override to_s in the Dinosaur class
jerius has quit [Ping timeout: 258 seconds]
<adaedra> weaksauce: the problem is in Dinodex#to_s
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<StevenXL> weaksauce: I did over ride it so that I could print the two-dimensional array like a you'd expect
<StevenXL> dang thinkg won't do it
<StevenXL> thing*
<adaedra> StevenXL: because you don't override #to_s correctly
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<StevenXL> adaedra: I don't? Sorry, can you explain?
<adaedra> StevenXL: what is #to_s supposed to do?
wldcordeiro_ has quit [Remote host closed the connection]
thoffmeyer has joined #ruby
Guest94613 has quit [Ping timeout: 264 seconds]
mistnim has quit [Remote host closed the connection]
Sou|cutter has quit [Quit: bbiab]
wldcordeiro_ has joined #ruby
SleepDeprived has quit [Quit: SleepDeprived]
<adaedra> (In general)
<StevenXL> adaedra: I'd like it to behave as a "normal" two-dimensional array would behavo when you call puts and pass that in as an argument.
<adaedra> Yeah, in this case
<adaedra> But in a general case
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mohan has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
bennyklo2z has joined #ruby
thatslifeson has joined #ruby
Mohan is now known as Guest47284
Yzguy_ has joined #ruby
zzxc has joined #ruby
zzxc has joined #ruby
bennyklo2z has quit [Client Quit]
<adaedra> StevenXL: no guess?
blackmesa has joined #ruby
thoffmeyer has quit [Client Quit]
<StevenXL> adaedra: yea sorry, computer froze up
<adaedra> oh
quimrstorres has quit [Remote host closed the connection]
<StevenXL> adaedra: to_s returns the string representation of the object.
<adaedra> ok
<adaedra> so now, what does Dinodex#to_s do?
<StevenXL> The default behavior is exactly what I am getting - i.e., the object's class and the object_id
<adaedra> Just read the code you gave me, and tell me what does your #to_s method do
<StevenXL> My to_s calls puts, with @dinosaurs (an array) as the argument to puts.
<adaedra> ok
paulcsmith_ has quit [Quit: Be back later ...]
<adaedra> so what does it returns?
noonius has joined #ruby
<StevenXL> it returns the object's class (Dinodex) and the object_id
<adaedra> no
DerisiveLogic has quit [Remote host closed the connection]
<adaedra> Let's take it the other way
<StevenXL> OK.
phizzbuzz has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
<adaedra> You say your function calls puts, so output to the console, right?
<StevenXL> right
Guest1421 has joined #ruby
bahar_ has quit [Quit: My lazy computer has decided to sleep. ZZZzzz…]
<adaedra> How does that fits "to_s returns the string representation of the object."
SouL_|_ has quit [Ping timeout: 244 seconds]
rbennacer has quit [Ping timeout: 276 seconds]
Zai00 has quit [Quit: Zai00]
iasoon has joined #ruby
sinkensabe has joined #ruby
<StevenXL> ah - I see. I should be using the method to_s on the @dinosaurs instance variable?
wildroman3 has joined #ruby
<adaedra> that's a start
<adaedra> what will your method looks like then?
<StevenXL> def to_s
<StevenXL> @dinosaurs.to_s
<StevenXL> end
seal has quit [Quit: Ex-Chat]
<adaedra> well try it
zzxc has quit [Ping timeout: 256 seconds]
<StevenXL> I did; the output is "a start", like you said.
wildroman2 has quit [Ping timeout: 264 seconds]
wildroman3 has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
<StevenXL> but not what I expected.
<adaedra> ah?
<adaedra> what does it looks like?
<adaedra> and what do you expect?
mary5030 has quit [Remote host closed the connection]
<adaedra> (gist, please)
uptownhr has joined #ruby
<StevenXL> adaedra: gist of the output or of the code? I'll include both.
JDiPierro has joined #ruby
<adaedra> yes
djbkd has joined #ruby
<adaedra> expectation/reality
zzxc has joined #ruby
<adaedra> And a haiky
<adaedra> haiku
sinkensabe has quit [Remote host closed the connection]
<adaedra> :p
Guest1421 has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
chipotle has joined #ruby
sinkensabe has joined #ruby
barkerd427 is now known as zz_barkerd427
vivekananda has joined #ruby
<StevenXL> :-)
Zai00 has joined #ruby
quimrstorres has joined #ruby
bahar_ has joined #ruby
<adaedra> same as mine
<adaedra> outputs?
<StevenXL> No the output is different than last time
<adaedra> got the same
<adaedra> what did you got, last time?
startupality has quit [Quit: startupality]
<StevenXL> Last time I got only the class and the object_id, but it didn't include all teh information it does now.
<StevenXL> Now it includes the instance variable for each dinosaur
axl_ has joined #ruby
mwlang has joined #ruby
GGMethos_ is now known as GGMethos
<adaedra> mmh
<StevenXL> before I was getting only the dinosaur object_id and class
Limix has joined #ruby
vickleton has quit [Quit: Ex-Chat]
uptownhr has quit [Quit: uptownhr]
<adaedra> well, best would be to override #to_s for Dinosaur to obtain exactly what you want
<StevenXL> hmmm, let's try that
sinkensabe has quit [Remote host closed the connection]
Igorshp has joined #ruby
<mwlang> so I spawn a bunch of processes with spawn and have a list of pids. How do I query running processes to see if a specific pid is still running?
baweaver has quit [Remote host closed the connection]
thoffmeyer has joined #ruby
thoffmeyer has joined #ruby
<adaedra> mwlang: wait
werelivinginthef has quit [Remote host closed the connection]
neanderslob has joined #ruby
<adaedra> (the wait group of method, if this was not understood)
<mwlang> adaedra: I don’t want to wait on it. I actually Process.detach intentionally. I’m putting together a rake task I can run every now and then to report on the pids still running.
jespada has joined #ruby
<adaedra> Ah, so it actually terminates?
<mwlang> I know I can do this with backticks and call the ps command.
Yzguy_ has quit [Quit: I'm sleeping, go away.]
<adaedra> It doesn't go zombie?
<mwlang> adaedra: yeah, the processes are completely detached, so when they finish, they really do finish up.
<adaedra> wait
<mwlang> Process#detach for more info.
<adaedra> (now it's a request to wait)
<adaedra> yeah, I see
<adaedra> I finish something with StevenXL problem first
<StevenXL> adaedra: I tried to over-ride to_s the same way in Dinosaurs class, but I got the same result.
vikaton has quit []
<mwlang> adaedra: ah…I thought you were mentioning Process#wait. :-p
axl_ has quit [Quit: axl_]
<adaedra> StevenXL: what did you put in Dinosaur#class?
<adaedra> (If it's a one line, paste it here, without def/end)
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
airdisa has joined #ruby
DEA7TH has joined #ruby
<adaedra> err, wait
<adaedra> abort
<StevenXL> [@name, @period, @continent, @diet, @weight, @locomotion, @description].to_s
<StevenXL> that's what I did to override to_s
<adaedra> StevenXL: I'm saying shit anyway.
<adaedra> Array#to_s seems to call #inspect on sub-elements.
<adaedra> However, I would not recommend overriding #inspect
<StevenXL> adaedra: hm... ok.
<adaedra> What you can do, is restoring Dinosaur#to_s, and modify Dinodex#to_s by using Array#map to have an array of stringified elements
<adaedra> mwlang: I only know a "dirty" method for this, I'll be looking if there's nothing better
jerius_ has quit [Ping timeout: 264 seconds]
Yzguy has joined #ruby
jespada has quit [Ping timeout: 256 seconds]
phizzbuzz has joined #ruby
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<StevenXL> adaedra: I will try that.
<mwlang> If there’s not a ruby way to inspect all running processes of the system, then I’ll just backtick my way to what I need.
freerobby has joined #ruby
<adaedra> Ok, stack overflow says to use my trick -_-
<StevenXL> adaedra: my battery is running out; going to save this stuff and try out your suggestion when I get home.
<StevenXL> thanks for the help!
<adaedra> StevenXL: ok, good luck!
<StevenXL> I'll let you know how it goes once I get back to an outlet.
<StevenXL> :-)
Hien has quit [Ping timeout: 265 seconds]
<bricker> mwlang: "Backticks of Success" we call them
<StevenXL> (my nick will be around since I'm sshing with irssi)
Sawbones has joined #ruby
mengu has quit [Remote host closed the connection]
<adaedra> mwlang: send a signal 0 to the process. The signal is not really sent, but the process checking is done anyway. So if the process is gone, it will fail.
<mwlang> bricker: lol
<weaksauce> mwlang do you control the other processes?
mengu has joined #ruby
mrdmi has joined #ruby
<adaedra> weaksauce: "I’m putting together a rake task I can run every now and then to report on the pids still running."
<mwlang> weaksauce: I spawned and detached in a rake task. The intent is to at any point, log into the system and call “rake process:status” and see everything still running.
slash_nick has quit [Ping timeout: 256 seconds]
<adaedra> mwlang: seems the best solution
Guest47284 has quit [Ping timeout: 258 seconds]
<weaksauce> yeah Process.kill(0,pid) and catch exceptions if there aren't any processes with that pid
gambl0re has quit [Ping timeout: 265 seconds]
mengu has quit [Read error: Connection reset by peer]
<adaedra> That's what I may have done in C
Yzguy has quit [Client Quit]
<weaksauce> Errno::ESRCH mwlang
mengu has joined #ruby
reinaldob has joined #ruby
<adaedra> C knowledge is not wasted after all :p
Mohan_ has joined #ruby
gagrio has quit [Ping timeout: 246 seconds]
Squarepy has quit [Quit: Leaving]
<mwlang> weaksauce: thanks!
ddarkpassenger has joined #ruby
<weaksauce> C knowledge is never wasted adaedra
baweaver has joined #ruby
w0jtas has quit [Quit: Leaving.]
mjuszczak has quit []
bogdanteleaga has quit [Ping timeout: 244 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<adaedra> weaksauce: good to know.
mjuszczak has joined #ruby
apt-get__ has quit [Remote host closed the connection]
<adaedra> a = 5; a = ++a + a++; /* What will be the value of a? */
ddarkpassenger has quit [Client Quit]
allcentury has quit [Ping timeout: 245 seconds]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> undefined probably but 13 likely?
ddarkpassenger has joined #ruby
<apeiros> would be my guess too
<adaedra> undefined.
<weaksauce> depends on the compiler and if it compiles.
<adaedra> as soon as you have multiple ++/--.
fmcgeough has quit [Ping timeout: 240 seconds]
<adaedra> But since I have only clangs, I won't check
<adaedra> But it's funny, I'd have said 11.
<apeiros> I'm always baffled by how much C keeps as undefined behavior.
riotjone_ has joined #ruby
<adaedra> rust ftw
mjuszczak has quit [Client Quit]
<ebonics> have you used rust code for anything production related
<mwlang> weaksauce: thanks for the search fodder as kill with signal 0 didn’t seem to be cutting it. but your Errno::ESRCH led me to SO answer: http://stackoverflow.com/questions/325082/how-can-i-check-from-ruby-whether-a-process-with-a-certain-pid-is-running and the last answer using getpgid
scripore has joined #ruby
<adaedra> clang say 12 :-
<adaedra> ebonics: I only started, actually :x
shellfu is now known as shellfu_afk
uri__ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> gcc 12
<ebonics> youll learn fast how unstable it is i think
<ebonics> :P
<ebonics> i assume youre using the nightlies?
scripore has quit [Client Quit]
fmcgeough has joined #ruby
mjuszczak has joined #ruby
<adaedra> mwlang: it was the answer I had open, and kill 0 seemed like the accepted solution. What doesn't works?
bmusson has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 256 seconds]
jespada has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<mwlang> adaedra: I didn’t own the processes.
bogdanteleaga has joined #ruby
<adaedra> Ah, not the same user?
<weaksauce> mwlang that should have thrown a different error though
<mwlang> it did.
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
<adaedra> So what's the issue?
bahar_ has quit [Quit: My lazy computer has decided to sleep. ZZZzzz…]
<adaedra> don't want to rescue two different exceptions?
<weaksauce> you can catch both those errors instead. but the other solution works well
<adaedra> Well, signal 0 is really made to check process existence, according to the documentation
bahar_ has joined #ruby
chipotle has quit [Quit: cheerio]
thatslifeson has quit [Remote host closed the connection]
bmusson has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
gizmore has quit [Excess Flood]
gizmore has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
airdisa has quit []
fmcgeough has quit [Ping timeout: 255 seconds]
troulouliou_dev has joined #ruby
bahar_ has quit [Quit: I'm melting! melting! oh, what a world! what a world...]
enebo has quit [Quit: enebo]
jtdowney has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
msmith_ has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
thoffmeyer has quit [Quit: Leaving]
<Radar> That mode set should stop anonymous users spamming the channel.
BTRE has joined #ruby
swgillespie has joined #ruby
fmcgeough has joined #ruby
bnobu has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> so it's like #RubyOnRails now, no talk if not authenticated?
Radar changed the topic of #ruby to: Can't talk? Register/identify with Nickserv first! || http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<Radar> adaedra: correct
endash has quit [Quit: endash]
ghr has quit [Ping timeout: 255 seconds]
<Radar> The users who have been spamming this channel have all been unauthenticated with nickserv.
<Radar> I'm hoping that that will be a barrier to them spamming the channel.
<Radar> The spam has been a daily occurrence.
a346 has quit [Remote host closed the connection]
<Radar> !mute Radar
<Radar> TIL
<Radar> !unmute Radar
<adaedra> apeiros: ruboto__ is multiplying the underscores
mengu has quit []
pontiki has joined #ruby
<pontiki> gd'evenin'
infinitone has quit [Remote host closed the connection]
<adaedra> g'night
<apeiros> interesting. when did that happen?
FernandoBasso has quit [Remote host closed the connection]
scripore has joined #ruby
FernandoBasso has joined #ruby
scripore has quit [Client Quit]
Limix has quit [Ping timeout: 265 seconds]
<apeiros> derp, how do you change the nick in cinch?
<wasamasa> ruboto is betraying us for the python side
<wasamasa> and stealing underscores from their private methods
<adaedra> :D
<adaedra> __ruboto__
<adaedra> YOU WERE THE CHOSEN ONE
scripore has joined #ruby
scripore has quit [Client Quit]
failshell has joined #ruby
dyce_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
uptownhr has joined #ruby
uptownhr has quit [Client Quit]
failshell has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Radar> apeiros: where's a list of ruboto commands?
maletor_ has quit [Quit: Computer has gone to sleep.]
goodcodeguy has joined #ruby
<jhass> Radar: there's none yet, !mute nick, !kick nick <reason>, !ban (!P|!T duration) <reason>, !fact (mk|ed|mv|rm) key <content>, ?fact_key <nick>
ruboto__ is now known as ruboto
baweaver has quit [Remote host closed the connection]
<jhass> I'm not sure I agree with the +q btw
<Radar> !kick Radar lulz
Radar was kicked from #ruby by ruboto [lulz]
longfeet has joined #ruby
Radar has joined #ruby
marens has quit [Remote host closed the connection]
<Radar> jhass: Ok. I nominate you to deal with the n-word spammers when they come on.
<jhass> eh, !ban has nick as first arg of course
<Radar> jhass: Because you can watch the channel 24/7 unlike the rest of us, right? :O)
jgt has joined #ruby
<jhass> we have a bit of a hole around 5-11 UTC from what I've observed
<jhass> well, more like 6-7 actually
CloCkWeRX has joined #ruby
<jhass> instead of 5
Sawbones has quit [Remote host closed the connection]
<bricker> giggity
fmcgeough has quit [Ping timeout: 240 seconds]
Sawbones has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
yqt has quit [Ping timeout: 265 seconds]
<Radar> Do we need an american op?
avahey has joined #ruby
DEA7TH has quit [Ping timeout: 272 seconds]
mjuszczak has quit []
bmusson has quit [Ping timeout: 272 seconds]
Porfa has joined #ruby
ghr has joined #ruby
jespada has quit [Ping timeout: 240 seconds]
<jhass> not sure, I think asian would almost fit the hole better
shazaum has joined #ruby
serivich has joined #ruby
<apeiros> Radar: https://gist.github.com/apeiros/8d3bed136d188f35712d probably not complete
Stalkr_ has quit [Quit: Leaving...]
<Radar> @apeiros: great :)
<apeiros> and more ops is always good.
failshell has joined #ruby
nakilon_ has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
quimrstorres has quit [Remote host closed the connection]
qwertme has joined #ruby
nakilon_ has quit [Quit: WHY NOT?]
baweaver has joined #ruby
nakilon_ has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jespada has joined #ruby
rdark has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
CloCkWeRX has joined #ruby
goodcodeguy has joined #ruby
<bricker> I'm American :O
edwinvdgraaf has joined #ruby
<bricker> And, in America
ghr has quit [Ping timeout: 250 seconds]
<jhass> 5-7 UTC is getting late in the states and is being early in EU
<adaedra> This remembers me that Europe is 3 time zones.
marens has joined #ruby
reinaldob has joined #ruby
fmcgeough has joined #ruby
scripore has joined #ruby
reinaldob has quit [Remote host closed the connection]
nakilon_ has quit [Client Quit]
meph has joined #ruby
jespada has quit [Ping timeout: 272 seconds]
jgt has quit [Ping timeout: 264 seconds]
PaulCapestany has quit [Quit: .]
Eiam_ has joined #ruby
Papierkorb has quit [Ping timeout: 272 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
P1RATEZ has joined #ruby
reinaldob has joined #ruby
meph has quit [Client Quit]
startupality has joined #ruby
mbwe has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mbwe has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
zarubin has joined #ruby
mbwe has joined #ruby
roolo has quit [Remote host closed the connection]
maletor_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
failshell has quit []
scripore has joined #ruby
thiagovsk has joined #ruby
scripore has quit [Client Quit]
RegulationD has joined #ruby
marr has quit [Ping timeout: 256 seconds]
rkazak has quit [Ping timeout: 256 seconds]
reinaldob has quit [Ping timeout: 246 seconds]
That1Guy has joined #ruby
havenwood has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
rehat has quit [Remote host closed the connection]
xcyclist has quit [Quit: Page closed]
Soda has joined #ruby
charliesome has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
dyce has joined #ruby
RegulationD has quit [Ping timeout: 255 seconds]
Perdomo has left #ruby [#ruby]
Perdomo has joined #ruby
noonius has quit [Quit: noonius]
Perdomo has quit [Client Quit]
charliesome has quit [Client Quit]
msmith_ has joined #ruby
Ropeney has joined #ruby
Perdomo has joined #ruby
Sawbones has quit [Remote host closed the connection]
Perdomo has quit [Client Quit]
jespada has joined #ruby
dented42 has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest1421 has joined #ruby
dyce has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
Musashi007 has quit [Quit: Musashi007]
Azure has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Porfa_ has joined #ruby
reinaldob has joined #ruby
mjuszczak has joined #ruby
Azure has joined #ruby
nobitanobi has quit [Remote host closed the connection]
wldcordeiro_ has quit [Ping timeout: 250 seconds]
xray has quit [Quit: Page closed]
jackjackdripper has joined #ruby
zzxc has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
reinaldob has quit [Remote host closed the connection]
rgs_ has left #ruby [#ruby]
rgs has joined #ruby
rgs has left #ruby [#ruby]
mbwe has quit [Quit: WeeChat 0.4.2]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
thatslifeson has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Quit: WeeChat 1.1.1]
jtdowney has joined #ruby
juanpaucar has quit [Remote host closed the connection]
reinaldob has joined #ruby
orionstein is now known as orionstein_away
reinaldob has quit [Remote host closed the connection]
BTRE has quit [Remote host closed the connection]
reinaldob has joined #ruby
blackmesa has joined #ruby
msmith_ has quit [Remote host closed the connection]
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nahtnam has joined #ruby
nobitanobi has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
rahult has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
devoldmx has quit [Ping timeout: 240 seconds]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
jenrzzz has joined #ruby
reinaldob has joined #ruby
paradisaeidae has joined #ruby
rahult is now known as rahult_
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<Senjai> I'm Canadian. And not in America.
<Senjai> Just saying.
pontiki has quit [Ping timeout: 265 seconds]
sargas_ has quit [Quit: Leaving]
prphp has quit [Ping timeout: 255 seconds]
sargas has joined #ruby
reinaldob has quit [Remote host closed the connection]
rahult_ has quit [Client Quit]
sargas has quit [Remote host closed the connection]
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
reinaldob has joined #ruby
reinaldob has quit [Remote host closed the connection]
sargas has joined #ruby
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
That1Guy has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
mjuszczak has quit []
mbwe has joined #ruby
qwertme has joined #ruby
icebourg has quit []
toretore has quit [Quit: This computer has gone to sleep]
DynamicMetaFlow has joined #ruby
DynamicMetaFlow has quit [Max SendQ exceeded]
DynamicMetaFlow has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas has quit [Remote host closed the connection]
Guest36286 is now known as rager
startupality has quit [Quit: startupality]
BTRE has joined #ruby
ddarkpassenger has quit [Quit: Leaving]
<bricker> Senjai: close enough
JDiPierro has joined #ruby
rahult has joined #ruby
Zai00 has quit [Quit: Zai00]