jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
Silox| has quit [Quit: Connection closed for inactivity]
sdwrage has quit [Quit: This computer has gone to sleep]
andywojo has joined #ruby
Motoservo has joined #ruby
fgo has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
<Ox0dea> bootstrappm: Process just sticks some of its class methods in the global namespace.
tuxero has quit [Quit: tuxero]
djbkd has quit [Quit: My people need me...]
<RickHull> is there a way to see here http://ruby-doc.org/core-2.2.2/Process.html that Process is itself a module?
<zenspider> havenwood: there's a method called display for that
<zenspider> >> [1, 2, 3].each &:display
<ruboto> zenspider # => 123[1, 2, 3] (https://eval.in/418488)
<zenspider> tho it is more like print, than puts
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
BrazenBraden has quit [Quit: Leaving]
mandarinkin has quit [Quit: Leaving]
Wolland has quit []
<bootstrappm> thanks Ox0dea
<bootstrappm> RickHull now as far as I can tell
<Ox0dea> >> Process.class # RickHull?
<ruboto> Ox0dea # => Module (https://eval.in/418489)
einarj has quit [Remote host closed the connection]
RegulationD has joined #ruby
dstarh has joined #ruby
Ropeney has joined #ruby
SenpaiSilver has joined #ruby
msnyon has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
renderful has quit [Remote host closed the connection]
linuxboy_ has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
RobertBirnie has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 256 seconds]
finisherr has quit [Quit: finisherr]
marr has quit [Ping timeout: 244 seconds]
linuxboytoo has quit [Ping timeout: 255 seconds]
christiandsg has joined #ruby
maletor has quit []
bmurt has quit []
stevednd has quit [Ping timeout: 246 seconds]
elton has joined #ruby
keen_______ has joined #ruby
baweaver has joined #ruby
atomical has joined #ruby
mistermocha has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
keen______ has quit [Ping timeout: 250 seconds]
rbowlby has quit [Remote host closed the connection]
roolo has joined #ruby
cajone has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 264 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
uri_ has joined #ruby
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
radgeRayden has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
roolo has quit [Ping timeout: 244 seconds]
Ox0sd has joined #ruby
christiandsg has joined #ruby
icarus has quit [Ping timeout: 240 seconds]
uri_ has quit [Client Quit]
ishahnaz has quit []
diegoviola has joined #ruby
Feyn has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
ivanf has quit [Ping timeout: 245 seconds]
eminencehc has quit [Remote host closed the connection]
<shevy> ruby ruby ruby
oo_ has joined #ruby
ivanf has joined #ruby
saddad has quit [Ping timeout: 250 seconds]
rubie has joined #ruby
sevenseacat has joined #ruby
richardburton has joined #ruby
christiandsg has quit [Quit: Leaving...]
dimasg has joined #ruby
finisherr has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wprice has quit [Quit: wprice]
rubie has quit [Ping timeout: 265 seconds]
<RickHull> ruby can't fail
baweaver has quit [Remote host closed the connection]
cajone has joined #ruby
Azure has joined #ruby
Lucky__ has joined #ruby
<ght> Ruby can't fail? Is there talk of Ruby failing?
rbowlby has joined #ruby
<RickHull> some smurfs smurfed the smurf smurf so instead Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo
howdoico1 has quit [Ping timeout: 264 seconds]
* ght 's head explodes
amenramen has quit [Ping timeout: 246 seconds]
<Ox0dea> ght: Buffalo bison [that] Buffalo bison bully bully [other] Buffalo bison.
* ght is away - dead
jbw has quit [Ping timeout: 272 seconds]
<Ox0dea> Any number of consecutive instances of "buffalo" greater than three forms a valid English sentence.
dstarh has joined #ruby
<shevy> Ox0dea what the ... is this link
<Ox0dea> +or equal to three
<ght> I've heard the buffalo thing, yes.
<shevy> why are there arrays populated with the word ruby
<RickHull> shevy: what's the output?
<Ox0dea> shevy: Why not?
<RickHull> >> ruby ruby ruby
<shevy> RickHull I am way too scared to run it
<ruboto> RickHull # => undefined local variable or method `ruby' for main:Object (NameError) ...check link for more (https://eval.in/418495)
<shevy> ruby ruby.ruby(ruby.Ruby)
<Ox0dea> shevy: It's not malicious, and it's in fact quite humorous.
mary5030 has joined #ruby
iloverubynoob has joined #ruby
<shevy> module Ruby :: class Ruby :: module Ruby
Xiti` has joined #ruby
richardburton has left #ruby [#ruby]
fgo has joined #ruby
rubie has joined #ruby
troyready has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fschuindt has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
Xiti has quit [Ping timeout: 255 seconds]
<nofxx> Ox0dea, that's rancid... destination unknown, ruby ruby ruby soho
iloverubynoob has quit [Ping timeout: 246 seconds]
elton has quit [Quit: elton]
elton_ has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
<BraddPitt> will the super call in the child class still cause its build_phone_number implementation to be used?
<BraddPitt> or will the exception be raised?
rehat has joined #ruby
icharlie has joined #ruby
<sevenseacat> easy way to find out!
rehat has quit []
<shevy> let the cat try for you!!!
rehat has joined #ruby
<shevy> well I did not run it yet but
binaryplease1 has quit [Ping timeout: 265 seconds]
<BraddPitt> ok
<BraddPitt> it works
<shevy> you redefine the method or? since you don't call super I would assume that the parent method is not being run
<BraddPitt> (I should really just paste my shit into IRB and try it )
<shevy> you were scared
<BraddPitt> I was
<sevenseacat> yes, you should
jtdoncas has joined #ruby
<shevy> lol
<BraddPitt> super was called, shevy
<shevy> in initialize
<shevy> not in the other method
<BraddPitt> in the Child class?
<shevy> yeah
<BraddPitt> it is
devoldmx has quit [Ping timeout: 250 seconds]
gh0strider has joined #ruby
<nofxx> BraddPitt, we forgive you that. But we'll never forgive world war z
<BraddPitt> :^)
<shevy> BraddPitt well you run that code without error yes?
<shevy> aka no raise is being invoked
techsethi has joined #ruby
atomical has joined #ruby
abdoudjanifresh has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
bootstrappm has left #ruby [#ruby]
abdoudjanifresh has joined #ruby
niko has joined #ruby
dopamean_ has joined #ruby
skydiver has joined #ruby
jamesaxl|2 has joined #ruby
<BraddPitt> yes shevy
<BraddPitt> if I call Child.new
<BraddPitt> if I call Parent.new i get the raised exception
<BraddPitt> so working as intended
uri_ has joined #ruby
<shevy> yeah
<shevy> if you add super() in the method of the child then the parent method will be called
axsuul has joined #ruby
sarkyniin has quit [Remote host closed the connection]
axsuul has quit [Max SendQ exceeded]
<Ox0dea> shevy: Did you really not run it?
uri_ has quit [Client Quit]
<shevy> the strange code?
<shevy> with the ruby things?
bmurt has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
<Ox0dea> Oui.
<shevy> I am scared by that
skydiver has quit [Ping timeout: 250 seconds]
<pontiki> hi, folks o/
axsuul has joined #ruby
<Ox0dea> It just prints a link to this video: https://youtu.be/qObzgUfCl28?t=50
<shevy> I did run BraddPitt's code, it seemed simple
<shevy> hey tikiponters
saddad has joined #ruby
oo_ has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Ox0dea I am also scared to click on that link :D
<Ox0dea> Jesus.
<shevy> I let BraddPitt click on it, if he declares it is safe, I'll trust him
troyready has joined #ruby
<BraddPitt> man
TheHodge has quit [Quit: Connection closed for inactivity]
<BraddPitt> which of these is faster? https://gist.github.com/anonymous/c9639b8dc0b83e962112
<Aeyrix> ?try
<ruboto> Why don't you try it and see for yourself?
<BraddPitt> ahahahaha Ox0dea
<shevy> probably .any?
<BraddPitt> my gf sings that every time I mention I'm coding in ruby
<BraddPitt> she yells 'RUBAY RUBAY RUBAY"
<shevy> what the ... is rubya
<shevy> erm rubay
<BraddPitt> shevy ^
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt> is there a better way of checking? Like maybe intersection of arrays
<BraddPitt> wait nvm
finisherr has quit [Quit: finisherr]
<shevy> the only way of real testing is if you run via Benchmarks
freerobby has joined #ruby
frozen3 has joined #ruby
<BraddPitt> right
cluelesscoder has joined #ruby
dorei has quit []
stevednd has joined #ruby
devdazed has joined #ruby
Rickmasta has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
<cluelesscoder> so I'm running into this certificate issue (described at http://stackoverflow.com/a/10430331) and one of the recommendations is to do `gem update --system` - but that gives me the same security issue!
<cluelesscoder> how can I find the relevant Gemfile and change it from https to http?
<cluelesscoder> I'm trying the find utility and coming up empty
jenrzzz has joined #ruby
Rickmasta has joined #ruby
freerobby has joined #ruby
houhoulis has joined #ruby
Feyn has quit [Quit: Leaving]
bmurt has quit []
yayfoxes has quit [Quit: WeeChat 1.1.1]
<cluelesscoder> my understanding is that Gemfiles are typically at project roots, but is there a systemwide Gemfile?
sdwrage has joined #ruby
sdwrage has quit [Remote host closed the connection]
<Aeyrix> what
<Aeyrix> no
<Aeyrix> what
rbowlby has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
gz_rain has joined #ruby
<BraddPitt> Gemfiles are per-project/repo
<BraddPitt> wherever you are running `bundle install` from, that is where your gemfile woudl be
<cluelesscoder> ok
mistermocha has joined #ruby
<cluelesscoder> I know hardly anything about ruby, but if I type gem list and I have a bunch of "local gems" - is there necessarily a Gemfile for these?
jhack has quit [Remote host closed the connection]
<Aeyrix> I think you're misunderstanding what a Gemfile does.
frozen3 has quit [Remote host closed the connection]
<Aeyrix> A Gemfile is, for lack of a better definition, a list of gems that the application (that you've written in Ruby) requires to run.
<shevy> cluelesscoder usually a Gemfile came through bundler-based projects, the .gemspec file predated Gemfile files
iamninja has quit [Read error: Connection reset by peer]
<cluelesscoder> yeah, it's probably not applicable for me, but workaround #1 at http://railsapps.github.io/openssl-certificate-verify-failed.html suggests changing the Gemfile to source http rather than https
iamninja has joined #ruby
<cluelesscoder> I just want to fix this openssl error
<Aeyrix> You're installing Ruby on Windows, aren't you?
<cluelesscoder> no
<Aeyrix> I only ever see this error on Windows.
<cluelesscoder> this is inside a CentOS virtualbox loaded up using vagrant
<Aeyrix> Sidebar
northfurr has joined #ruby
<Aeyrix> CentOS for development?
<Aeyrix> Oh wait, Vagrant, right, ok
<Aeyrix> never mind
Vile` has quit [Remote host closed the connection]
<Aeyrix> cluelesscoder: Use workaround #3.
wldcordeiro has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
<shevy> helping made easy
<shevy> we just link to the # :)
akash89 has joined #ruby
sdwrage has joined #ruby
vdamewood has joined #ruby
Vile` has joined #ruby
<Aeyrix> The best solution is to grab the correct cacert.pem file and store it appropriately
<Aeyrix> Off the top of my head it'd be `curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt`
<BraddPitt> whew, done with a big refactor
<BraddPitt> code is much cleaner and logical now
fgo has quit [Ping timeout: 246 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
olyx has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
GPrime has joined #ruby
<BraddPitt> rejected from YC Fellowship though :(
dimasg has quit [Ping timeout: 255 seconds]
olyx has left #ruby [#ruby]
jackjackdripper has quit [Quit: Leaving.]
veduardo has joined #ruby
veduardo has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Quit: Leaving because reasons...]
gh0strider has quit [Quit: leaving]
rubie has joined #ruby
<pontiki> is that your church?
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
finisherr has joined #ruby
<cluelesscoder> Aeyrix: thanks, that changed the error to "gem update --system Updating rubygems-update ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Not Found 404 (https://your-dns-needs-immediate-attention.dev/quick/Marshal.4.8/rubygems-update-2.4.8.gemspec.rz)"
iloverubynoob has joined #ruby
<Ox0dea> pontiki: Does pg worship Saint IGNUcius?
wldcordeiro has joined #ruby
<pontiki> *chuckle*
<Ox0dea> He uses vi, apparently: https://usesthis.com/interviews/paul.graham/
iloverubynoob has quit [Ping timeout: 264 seconds]
Musashi007 has joined #ruby
Ox0sd has left #ruby ["WeeChat 1.2"]
ReK2 has joined #ruby
siempref_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> wonder if anything has changed for him since 2009
tkuchiki has joined #ruby
northfurr has quit [Quit: northfurr]
Vile` has quit [Remote host closed the connection]
northfurr has joined #ruby
modern has quit []
<Aeyrix> Not a Ruby / Rails issue as far as I know.
tkuchiki has quit [Client Quit]
Vile` has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Quit: Leaving because reasons...]
dimasg has joined #ruby
modern has joined #ruby
choke has joined #ruby
tkuchiki has joined #ruby
bronson has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wldcordeiro has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 260 seconds]
<shevy> is there a way to do attr_reader for methods that end via '?' such as: attr_reader :foo?
lannonbr has joined #ruby
fgo has joined #ruby
hmsimha_ has joined #ruby
<RickHull> :"foo?" maybe
<RickHull> but how can you make an accessor for a method?
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> RickHull: Why? :foo? is a valid Symbol.
<shevy> NameError: invalid attribute name `foo?'
<RickHull> quotes are free and i've been neglecting my keycap
<RickHull> shevy: attr_* are for ivars, not methods
roolo has joined #ruby
renderful has joined #ruby
rbowlby has joined #ruby
<Ox0dea> shevy: Maybe relevant: https://bugs.ruby-lang.org/issues/11326
metamp has quit [Ping timeout: 246 seconds]
<Ox0dea> But yeah, RickHull's observation is sound:
<Ox0dea> >> instance_variable_set('@foo?', 42) rescue $!
<ruboto> Ox0dea # => #<NameError: `@foo?' is not allowed as an instance variable name> (https://eval.in/418502)
diegoaguilar has quit [Quit: Leaving]
devoldmx has joined #ruby
rbennacer has joined #ruby
wldcordeiro has quit [Quit: Leaving because reasons...]
oo_ has quit [Remote host closed the connection]
Feyn has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
roolo has quit [Ping timeout: 244 seconds]
_metamp has joined #ruby
devbug has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
siemprefresco has joined #ruby
elton_ has quit []
elton has joined #ruby
skydiver has joined #ruby
wldcordeiro has joined #ruby
<pontiki> say bbl
northfurr has quit [Quit: northfurr]
oo_ has joined #ruby
_blizzy_ has quit [Ping timeout: 260 seconds]
dopamean_ has quit [Ping timeout: 252 seconds]
whiteline has quit [Ping timeout: 260 seconds]
towski_ has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
rbowlby has quit [Remote host closed the connection]
wprice has joined #ruby
axsuul has joined #ruby
baweaver has joined #ruby
spcmastertim has quit [Remote host closed the connection]
Lucky__ has joined #ruby
Fezzler has joined #ruby
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
abdoudjanifresh has quit [Ping timeout: 260 seconds]
abdoudjanifresh has joined #ruby
tmtwd has joined #ruby
wldcordeiro has quit [Quit: Leaving because reasons...]
Fezzler has quit [Client Quit]
icharlie has quit [Remote host closed the connection]
hydrozen has joined #ruby
<cluelesscoder> Aeyrix: yeah, I traced it down to https://github.com/rubygems/rubygems.org/issues/834#issuecomment-68956885 altho haven't quite fixed it yet
wprice has quit [Quit: wprice]
cgrieger^away has quit [Ping timeout: 252 seconds]
cgrieger^away has joined #ruby
rbennacer has quit [Remote host closed the connection]
darwingr has quit [Quit: bye bye]
iloverubynoob has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
jeadr has quit [Remote host closed the connection]
Eleeleth has joined #ruby
tmoor has joined #ruby
abdoudjanifresh has quit []
tmoor has quit [Client Quit]
benlieb has joined #ruby
hotpancakes has quit [Remote host closed the connection]
banister has quit [Ping timeout: 255 seconds]
jeadr has joined #ruby
iloverubynoob has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 256 seconds]
_metamp has quit [Ping timeout: 256 seconds]
AccordLTN has joined #ruby
PaulCape_ has quit [Quit: .]
PaulCapestany has joined #ruby
jesterfraud has joined #ruby
AccordsLTN has quit [Ping timeout: 252 seconds]
jesterfraud has quit [Client Quit]
braincrash has quit [Quit: bye bye]
darkf has joined #ruby
ahmetkapikiran has joined #ruby
rakm has joined #ruby
jesterfraud has joined #ruby
benlieb has quit [Quit: benlieb]
arup_r has joined #ruby
sphex_ has joined #ruby
arup_r has quit [Remote host closed the connection]
Motoservo has quit [Quit: Over & out.]
hotpancakes has joined #ruby
wldcordeiro has joined #ruby
sphex has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby
bap1313 has joined #ruby
braincrash has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
pen has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
gf3 has quit [Ping timeout: 246 seconds]
Hijiri has quit [Ping timeout: 256 seconds]
xxx has quit [Ping timeout: 250 seconds]
nahtnam has quit [Quit: Connection closed for inactivity]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chrisarcand has quit [Ping timeout: 244 seconds]
low-profile has quit [Ping timeout: 246 seconds]
Sthebig has quit [Ping timeout: 246 seconds]
dimasg has quit [Ping timeout: 260 seconds]
oddalot has quit [Ping timeout: 260 seconds]
wldcordeiro has quit [Ping timeout: 246 seconds]
xxx has joined #ruby
low-profile has joined #ruby
Sthebig has joined #ruby
Sthebig has quit [Changing host]
Sthebig has joined #ruby
akash89 has quit []
oddalot has joined #ruby
gf3 has joined #ruby
tmtwd has quit [Remote host closed the connection]
jesterfraud has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopie has joined #ruby
devoldmx has quit [Remote host closed the connection]
jtdowney has quit [Ping timeout: 244 seconds]
qiukun has joined #ruby
Guest28446 has quit [Ping timeout: 256 seconds]
sshuff|gone has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
gsingh93 has quit [Ping timeout: 260 seconds]
gf3 has quit [Ping timeout: 245 seconds]
bhorn1|away has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
cscheib has quit [Ping timeout: 256 seconds]
sparr has quit [Ping timeout: 256 seconds]
ericwood_ has quit [Ping timeout: 265 seconds]
gf3 has joined #ruby
xcesariox has joined #ruby
gsingh93 has joined #ruby
C0deMaver1ck has joined #ruby
jesterfraud has joined #ruby
ericwood has joined #ruby
C0deMaver1ck is now known as Guest76524
bhorn1|away has joined #ruby
bhorn1|away is now known as bhorn1
cscheib has joined #ruby
sshuff|gone has joined #ruby
jtdowney has joined #ruby
jtdowney has joined #ruby
sparr has joined #ruby
chrisarcand has joined #ruby
oo_ has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
<diegoviola> building 2.2.3
Musashi007 has joined #ruby
<diegoviola> thanks ruby-install
oo_ has joined #ruby
Hijiri has joined #ruby
techsethi has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
<sevenseacat> whoa, 2.2.3 came out?
amystephen has quit [Quit: amystephen]
<RickHull> one small patch for CVE IIRC
<RickHull> one giant leap for rubykind
rubie has quit [Remote host closed the connection]
mistermocha has joined #ruby
mary5030 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<diegoviola> sevenseacat: y
mary5030 has joined #ruby
<RickHull> described as a TEENY version release
oo_ has joined #ruby
techsethi has quit [Client Quit]
cynosures has joined #ruby
<RickHull> interesting that the changelog goes back to December 2013
<havenwood> ruby-install ruby 2.2.3 --sha256 c745cb98b29127d7f19f1bf9e0a63c384736f4d303b83c4f4bda3c2ee3c5e41f
dopamean_ has joined #ruby
msnyon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RickHull> it would be nice to see the changes *since the previous release* i.e. 2.2.2 (presumably)
babykosh has joined #ruby
<diegoviola> havenwood: I've only did: ruby-install ruby 2.2.3 -- do I want the --sha256 to sign the file or something?
oo_ has quit [Remote host closed the connection]
<Ox0dea> The 2.2.3 release hasn't been tagged yet, but it'll happen eventually.
oo_ has joined #ruby
<havenwood> diegoviola: Just to validate the checksum of the archive.
mary5030 has quit [Ping timeout: 246 seconds]
<havenwood> diegoviola: You don't have to.
<diegoviola> havenwood: ok thanks
<havenwood> diegoviola: Or you can check more than one, like md5 and sha512.
<RickHull> unless you want cosmic rays in your codebase killing ur doodz
<Ox0dea> TIL `defined?(yield)` is another way to spell `block_given?`.
<Ox0dea> Which is a little scary?
finisherr has quit [Quit: finisherr]
<Ox0dea> >> def foo; defined? yield end; [foo, foo {}]
<ruboto> Ox0dea # => [nil, "yield"] (https://eval.in/418511)
msnyon has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
pencilcheck has joined #ruby
icharlie has joined #ruby
_blizzy_ has joined #ruby
<RickHull> don't you need a semicolon after `defined? yield` ?
<Ox0dea> No.
<Ox0dea> Obviously.
oo_ has quit [Remote host closed the connection]
<RickHull> for ruboto to give output, obviously not
lannonbr has quit [Quit: WeeChat 1.2]
<RickHull> but for your intended behavior, why not?
<Ox0dea> Why?
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<RickHull> why do you need a semicolon after `def foo` ?
oo_ has joined #ruby
<Ox0dea> parse.y says so.
<RickHull> ah, the man behind the curtain
<RickHull> fair enough
<Ox0dea> Really, it's necessary to distinguist between parameters and method bodies.
<Ox0dea> *distinguish
pen has quit [Ping timeout: 246 seconds]
astrobun_ has joined #ruby
<RickHull> i just instinctively replace newlines with semicolons when writing contrived oneliners
<Ox0dea> I've gotten into the habit of writing code for ruboto to execute.
<RickHull> and not for people to read?!
<Ox0dea> Y'got me.
xxneolithicxx has quit [Remote host closed the connection]
<Ox0dea> >> module Foo 1 end
<ruboto> Ox0dea # => 1 (https://eval.in/418517)
<Ox0dea> Note the non-necessity of the semicolon there.
<Ox0dea> Because no need to disambiguate.
jenrzzz has joined #ruby
cantaberry has joined #ruby
<Ox0dea> Same for classes as of a few days ago.
oo_ has quit [Remote host closed the connection]
hotpancakes has joined #ruby
oo_ has joined #ruby
gix has quit [Ping timeout: 255 seconds]
rbowlby has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
babykosh has quit [Quit: babykosh]
s00pcan has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Musashi007 has joined #ruby
s00pcan has joined #ruby
jeadr has quit [Remote host closed the connection]
iloverubynoob has joined #ruby
gix has joined #ruby
demonlove has joined #ruby
n_blownapart has joined #ruby
eminencehc has quit [Remote host closed the connection]
dimasg has joined #ruby
astrobun_ has quit [Remote host closed the connection]
devdazed has quit [Quit: Computer has gone to sleep.]
jeadr has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
tlarevo has joined #ruby
tlarevo has quit [Remote host closed the connection]
hmsimha_ has quit [Ping timeout: 265 seconds]
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
robbyoconnor has quit [Ping timeout: 250 seconds]
maletor has joined #ruby
iloverubynoob has quit [Ping timeout: 246 seconds]
xxneolithicxx has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oka has joined #ruby
lorn has quit [Quit: ZNC - http://znc.in]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
radgeRayden has quit [Ping timeout: 255 seconds]
jeadr has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
roolo has joined #ruby
jeadr has joined #ruby
astrobun_ has joined #ruby
siemprefresco has quit [Max SendQ exceeded]
demonlove has quit [Read error: Connection reset by peer]
siemprefresco has joined #ruby
radgeRayden has joined #ruby
djbkd has joined #ruby
oo_ has quit [Remote host closed the connection]
RickHull has left #ruby [#ruby]
workmad3 has joined #ruby
oo_ has joined #ruby
GPrime has joined #ruby
gf3 has quit [Ping timeout: 260 seconds]
roolo has quit [Ping timeout: 246 seconds]
choke has joined #ruby
bronson has joined #ruby
Hijiri has quit [Ping timeout: 244 seconds]
jtdowney has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
Sthebig has quit [Ping timeout: 244 seconds]
frem has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
sparr has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 265 seconds]
siemprefresco has quit [Max SendQ exceeded]
jpfuentes2 has joined #ruby
siemprefresco has joined #ruby
gsingh93 has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
low-profile has quit [Ping timeout: 256 seconds]
GPrime has quit [Read error: Connection reset by peer]
siemprefresco has quit [Client Quit]
GPrime has joined #ruby
jtdowney has joined #ruby
jtdowney has joined #ruby
eminencehc has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
psy_ has joined #ruby
sshuff|gone has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
gf3 has joined #ruby
josh4 has joined #ruby
Sthebig has joined #ruby
Sthebig has joined #ruby
oo_ has quit [Remote host closed the connection]
GPrime has quit [Client Quit]
oo_ has joined #ruby
astrobu__ has joined #ruby
astrobu__ has quit [Read error: Connection reset by peer]
astrobun_ has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
cscheib has quit [Ping timeout: 264 seconds]
towski_ has joined #ruby
towski_ has quit [Remote host closed the connection]
cscheib has joined #ruby
gsingh93 has joined #ruby
zz_Outlastsheep has joined #ruby
josh4 has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
xcesariox has joined #ruby
xcesariox has quit [Client Quit]
houhoulis has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
sparr has joined #ruby
codecop has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
charliesome has quit [Client Quit]
sshuff|gone has joined #ruby
iateadonut has joined #ruby
jesterfraud has quit [Quit: Textual IRC Client: www.textualapp.com]
shinnya has quit [Ping timeout: 240 seconds]
jeadr has quit [Remote host closed the connection]
bluOxigen has joined #ruby
blueOxigen has joined #ruby
jeadr has joined #ruby
low-profile has joined #ruby
Olipro- has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Olipro- is now known as Guest2252
amystephen has joined #ruby
Guest87023 has quit [Ping timeout: 256 seconds]
jeanlinux has joined #ruby
jtdoncas has quit [Ping timeout: 256 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
Norelec has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
oo_ has joined #ruby
lxsameer has joined #ruby
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
oo_ has quit [Remote host closed the connection]
sameerynho has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
mistermocha has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 272 seconds]
techsethi has joined #ruby
oo_ has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
oo_ has joined #ruby
n_blownapart has quit [Ping timeout: 264 seconds]
Guest76524 has quit [Ping timeout: 244 seconds]
neanderslob_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
mary5030 has joined #ruby
gf3 has quit [Ping timeout: 256 seconds]
davidcelis has quit [Ping timeout: 272 seconds]
nofxx has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 244 seconds]
Sthebig has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
oo_ has quit [Remote host closed the connection]
Sthebig has joined #ruby
Sthebig has quit [Changing host]
Sthebig has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
qiukun has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 246 seconds]
qiukun has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
gf3 has joined #ruby
C0deMaver1ck has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
C0deMaver1ck is now known as Guest57947
oo_ has quit [Remote host closed the connection]
iloverubynoob has joined #ruby
lxsameer_ has joined #ruby
neanderslob has quit [Remote host closed the connection]
neanderslob_ has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 256 seconds]
neanderslob_ has joined #ruby
neanderslob_ has quit [Remote host closed the connection]
msnyon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
icharlie has quit [Remote host closed the connection]
neanderslob has joined #ruby
pawnbox has quit [Remote host closed the connection]
skydiver has quit [Ping timeout: 250 seconds]
gamov has joined #ruby
icharlie has joined #ruby
iloverubynoob has quit [Ping timeout: 264 seconds]
youch has quit [Quit: Konversation terminated!]
diegoviola has quit [Quit: WeeChat 1.2]
roolo has joined #ruby
codecop has quit [Remote host closed the connection]
skydiver has joined #ruby
n008f4g_ has joined #ruby
lxsameer_ has quit [Ping timeout: 244 seconds]
riotjones has joined #ruby
hotpancakes has quit [Remote host closed the connection]
icharlie has quit [Remote host closed the connection]
lxsameer_ has joined #ruby
chrissonar has joined #ruby
bruno- has joined #ruby
sameerynho has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vdamewood has quit [Quit: Life beckons.]
n008f4g_ has quit [Ping timeout: 260 seconds]
riotjones has quit [Ping timeout: 272 seconds]
bluOxigen has joined #ruby
pawnbox has joined #ruby
choke has joined #ruby
lxsameer_ has quit [Ping timeout: 260 seconds]
blueOxigen has quit [Ping timeout: 264 seconds]
lxsameer_ has joined #ruby
kellray has joined #ruby
kellray has left #ruby [#ruby]
bruno- has quit [Ping timeout: 264 seconds]
xxx has quit [Ping timeout: 255 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
skydiver has quit [Quit: WeeChat 1.2]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skydiver has joined #ruby
j_mcnally has joined #ruby
charliesome has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Client Quit]
towski_ has joined #ruby
bap1313 has quit [Ping timeout: 260 seconds]
j_mcnall_ has joined #ruby
kies has joined #ruby
cornerma1 has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
j_mcnally has quit [Ping timeout: 240 seconds]
dhjondoh has joined #ruby
neanderslob has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
hydrozen has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
xxx has joined #ruby
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
pencilcheck has quit [Read error: Connection reset by peer]
pen has joined #ruby
Hijiri has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sameerynho has joined #ruby
hotpancakes has joined #ruby
icharlie has joined #ruby
Oka has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
grotewold has joined #ruby
amystephen has joined #ruby
ramfjord has joined #ruby
lxsameer_ has quit [Ping timeout: 256 seconds]
opensource_ninja has quit [Quit: opensource_ninja]
Oka has joined #ruby
ferhaty has joined #ruby
jenrzzz has joined #ruby
fgo has joined #ruby
icharlie has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 272 seconds]
keen________ has joined #ruby
skade has joined #ruby
Oka has quit [Ping timeout: 252 seconds]
keen_______ has quit [Ping timeout: 244 seconds]
Rutix has joined #ruby
Rutix has joined #ruby
aganov has joined #ruby
shadoi has joined #ruby
ahmetkapikiran has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
icarus has joined #ruby
Oka has joined #ruby
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
skydiver has quit [Ping timeout: 250 seconds]
yardenbar has joined #ruby
TomyLobo has joined #ruby
grvgr has quit [Quit: grvgr]
fsvehla has joined #ruby
qiukun has quit [Quit: qiukun]
grotewold has quit [Quit: Textual IRC Client: www.textualapp.com]
amystephen has quit [Quit: amystephen]
ramfjord has quit [Ping timeout: 265 seconds]
sdfgsdfg has joined #ruby
eminencehc has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
nofxx has joined #ruby
fsvehla has quit [Quit: fsvehla]
frem has joined #ruby
AlxAltea has joined #ruby
Pupp3tm4st3r has joined #ruby
grvgr has joined #ruby
shadoi has quit [Quit: Leaving.]
shadoi has joined #ruby
qiukun has joined #ruby
sheperson has joined #ruby
skydiver has joined #ruby
fgo has joined #ruby
wprice has joined #ruby
ta has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 245 seconds]
iloverubynoob has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
eGGsha has joined #ruby
ReK2 is now known as rek2gnulinux
oo_ has quit [Remote host closed the connection]
iloverubynoob has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Remote host closed the connection]
r0x0rZ_ has quit [Remote host closed the connection]
oo_ has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
_aeris_ has quit [Ping timeout: 246 seconds]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei has joined #ruby
_aeris_ has joined #ruby
solars has joined #ruby
roolo has quit [Remote host closed the connection]
Hijiri has quit [Quit: ZNC - http://znc.in]
Hijiri has joined #ruby
<slani> hello, is there any easy way to check if number 7 in all doc has value 0 , if true then remove 7 from all doc in docs http://paste.ubuntu.com/12122432/
casadei has quit [Ping timeout: 244 seconds]
hotpancakes has joined #ruby
<baweaver> what have you tried?
crowell has quit [Remote host closed the connection]
crowell has joined #ruby
iloverubynoob has joined #ruby
<baweaver> and I have a sneaking feeling you're doing something really off to get to this format of datastructure
<baweaver> back up, what exactly are you trying to do?
Musashi007 has quit [Quit: Musashi007]
bronson has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<baweaver> and better yet, what code is producing this and what is the input?
dopamean_ has quit [Ping timeout: 265 seconds]
tkuchiki has joined #ruby
<baweaver> slani: ^^^
skydiver has quit [Quit: WeeChat 1.3]
Guest32 has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<slani> baweaver: I need to geat average for doc1, doc2, but if user has 0 vaule on all docs it should not be included in average for any doc
<baweaver> you didn't see all of that
<baweaver> What is an example input for your program, and what is the program that generates this datastructure you provided?
<slani> this is reads from database
<slani> doc1
<slani> doc2
SolarSailor has joined #ruby
<slani> and I put them into hash
wprice has quit [Quit: wprice]
<baweaver> what code are you using to do this?
bronson has quit [Ping timeout: 244 seconds]
ta has joined #ruby
<slani> baweaver: I didn't wrrite code for readint from database
User458764 has joined #ruby
<baweaver> Do you have the code though?
kies has quit [Ping timeout: 252 seconds]
<baweaver> you do realize how incredibly vague this all is
<slani> baweaver: yes I know
<slani> but I can't do any thing abouth this
<baweaver> what have you tried so far.
<slani> I just need average
Pupp3tm4st3r has quit [Remote host closed the connection]
<baweaver> no
<baweaver> what have you tried
lsmola has joined #ruby
charliesome has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<slani> I know how to slove this problem, but code will be very ugly.
renderful has joined #ruby
<baweaver> then show me
jeadr has quit [Remote host closed the connection]
hs366 has joined #ruby
<baweaver> ugly code can be improved upon
<baweaver> no code does neither of us any good
ta has quit [Remote host closed the connection]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
<slani> baweaver: I didn't write it yet. but ugly approach is to iterate more times and save stuf in new hashs
<baweaver> then do that, and show me
jeadr has joined #ruby
<slani> baweaver: ok. it will take some time
cheniel has joined #ruby
cheniel has quit [Client Quit]
howdoi has joined #ruby
renderful has quit [Ping timeout: 246 seconds]
iloverubynoob has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
rubie has joined #ruby
devoldmx has joined #ruby
kies has joined #ruby
duderonomy has quit []
<certainty> moin guys
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
Pupp3tm4st3r has joined #ruby
AlexRussia_ has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
<Oka> o/
devoldmx has quit [Ping timeout: 256 seconds]
_blizzy_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
arup_r has joined #ruby
wprice has joined #ruby
wprice has quit [Client Quit]
Musashi007 has joined #ruby
sheperson has quit [Quit: sheperson]
Macaveli has joined #ruby
oo_ has quit [Remote host closed the connection]
psy_ has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
Pupp3tm4_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
oo_ has joined #ruby
_blizzy_ has joined #ruby
amclain has quit [Quit: Leaving]
Pupp3tm4st3r has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
rehat has quit [Read error: Connection reset by peer]
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
mistermocha has joined #ruby
Synthbread has joined #ruby
ta has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
CloCkWeRX has joined #ruby
oo_ has quit [Remote host closed the connection]
iloverubynoob has joined #ruby
ta has quit [Ping timeout: 246 seconds]
grvgr has quit [Quit: grvgr]
mutuma has joined #ruby
Musashi007 has quit [Quit: Musashi007]
baweaver has quit [Remote host closed the connection]
oo_ has joined #ruby
mutuma is now known as Pathfinder
Pupp3tm4_ has quit [Remote host closed the connection]
klaas has quit [Remote host closed the connection]
roolo has joined #ruby
Pupp3tm4st3r has joined #ruby
TomyWork has joined #ruby
_ht has joined #ruby
doublemalt_ has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 250 seconds]
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
eGGsha is now known as eGGshke
Pupp3tm4st3r has quit [Ping timeout: 264 seconds]
psy_ has quit [Ping timeout: 244 seconds]
<slani> why this dosen't work http://paste.ubuntu.com/12122679/
Neon has joined #ruby
krz has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
Pupp3tm4st3r has joined #ruby
armyriad has joined #ruby
<sevenseacat> XF: you removed the error
Ilyes512 has joined #ruby
<sevenseacat> so.... no-one can
arup_r has quit []
<XF> sevenseacat what?
arup_r has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<sevenseacat> and you also missed the code that causes it.
<XF> which code?
<XF> help please
<sevenseacat> the code that the error that we can't see, points to
Norelec has left #ruby ["Leaving"]
<sevenseacat> whatever was on the line that you cut off on line 1
<XF> ok let me paste whole
<sevenseacat> good idea.
hotpancakes has joined #ruby
Pupp3tm4st3r has joined #ruby
ta has joined #ruby
iloverubynoob has quit [Remote host closed the connection]
<slani> why this dosen't work http://paste.ubuntu.com/12122679/
<slani> why I get error Array can't be coerced into Fixnum
blueOxigen has joined #ruby
eGGshke is now known as eGGsha
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> slani: because date.values is an array
<sevenseacat> and you're trying to add it to 0
<sevenseacat> nuh-uh
<slani> sevenseacat: if i puts date.values I get numbers 0.20652173913043478
<sevenseacat> what does the "s" stand for in puts ?
<sevenseacat> (hint: string)
<sevenseacat> so it will convert your array into a string
<slani> sevenseacat: thanks
<apeiros> slani: puts is inadequate to inspect objects
zeroDivisible has quit [Ping timeout: 265 seconds]
<apeiros> slani: either use `p obj` or `puts obj.inspect`
hotpancakes has quit [Ping timeout: 250 seconds]
<bnagy> slani: doesn't matter if it's numbers or strings, that's irrelevant
<bnagy> you can't add arrays of anything to a number
Musashi007 has quit [Quit: Musashi007]
<bnagy> date.values is always going to be an array
<slani> ok then I can do val[0] or how can I get number directly from date.values
bluOxigen has quit [Ping timeout: 265 seconds]
<bnagy> about 20 ways, I guess
Violentr has joined #ruby
<Neon> Please have a look at https://gist.github.com/Neosublimation/55c68ee7d62155a2f56d (15 lines), where I'm trying to describe what I want to do. Any ideas how I can achieve that? I've tried using IRB::Irb, but it always runs into code that is missing some methods.
<slani> bnagy: the best way
<bnagy> if you don't know how to do that you need to go back to basics
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
charliesome has joined #ruby
timonv has joined #ruby
shay- has joined #ruby
oo_ has quit [Remote host closed the connection]
rubie has joined #ruby
<shay-> hi, I want to listen on a unix domain socket. I can make it working using UNIXServer.open, but this creates a new socket file. How can I resue a already existing socket file?
oo_ has joined #ruby
<sevenseacat> XF: so the first line of the error message references calling downcase on nil, on line 315 of lib/requests.rb
<sevenseacat> XF: so why is something nil that you're calling downcase on?
<XF> ok wait
<bnagy> shay-: I don't think you can
skade has joined #ruby
<Ox0dea> shay-: UNIXSocket.new, no?
[k- has joined #ruby
<bnagy> at least not easily. Creating the sock is part of listening. You can _connect_ to an existing now
<bnagy> *one
<XF> sevenseacat the line on 315 is if a.downcase == ip.downcase
<bnagy> maybe you can do fd tricks *shrug*
<sevenseacat> XF: so either a or ip is nil
<bnagy> but at the libc level sockfiles aren't supposed to exist when you bind, I think
_metamp has joined #ruby
terlar has joined #ruby
_metamp has quit [Client Quit]
Oka has quit [Read error: Connection reset by peer]
rubie has quit [Ping timeout: 265 seconds]
ruby-lang022 has joined #ruby
ishahnaz has joined #ruby
<ruby-lang022> hi guys
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
amystephen has joined #ruby
nux443 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<corpsicle> im trying to execute a script like "scl enable ruby193 *absolute_path_to_script* *argument_to_script*" but i get "/etc/scl/prefixes/" added to the script path. what am i doing wrong?
tommek has left #ruby [#ruby]
c0m0 has joined #ruby
anisha has joined #ruby
<Ox0dea> Using scl?
<corpsicle> why is that bad?
<ruby-lang022> I want to place my ruby vaiable @id in ftp.getbinaryfile. how can I place it in <% ftp.getbinaryfile("file."+"<%= @id %>"+".dynamicScanreport") %>
Pupp3tm4st3r has quit [Remote host closed the connection]
workmad3 has joined #ruby
thermatix has joined #ruby
Ilyes512 has joined #ruby
<[k-> you mean file.686445780?
<[k-> "file.#{@id}" would do the trick
<Ox0dea> As would "file.#@id", but don't tell anybody.
nuttermb has joined #ruby
<apeiros> ah yes, please don't :)
rbowlby has quit []
jeanlinux has joined #ruby
* [k- erases that from memory yet again
* Neon notes it down.
<[k-> anybody is jhass
workmad3 has quit [Ping timeout: 250 seconds]
Pupp3tm4st3r has joined #ruby
thermatix has quit [Ping timeout: 246 seconds]
<Neon> Doesn't this documentation say that IRB.irb createa a new IRB::Irb? http://ruby-doc.org/stdlib-2.0.0/libdoc/irb/rdoc/IRB.html#method-c-irb
<Neon> I'm getting a NoMethodError when trying to access IRB.irb
<Ox0dea> >> IRB.methods.include?(:irb) # Neon
<ruboto> Ox0dea # => uninitialized constant IRB (NameError) ...check link for more (https://eval.in/418635)
<Ox0dea> >> require 'irb'; IRB.methods.include?(:irb) # Neon
<ruboto> Ox0dea # => (https://eval.in/418636)
<Ox0dea> What even?
<corpsicle> so how do i force SCL to see my absolute path as absolute?
<Neon> Oh so this is a Module to be included again. Why?
Iskarlar has joined #ruby
<ruby-lang022> it is not working. Actually i am getting the file through ftp server. I am having files like file.1.dynamicscanreport, file.2.dynamicscanreport ... etc here 1,2,3, ... are ids. so i want to place dynamically with @id
<[k-> `forbiddebn access to file`
<[k-> corpsicle maybe try a leading slash?
BloodyHistory has joined #ruby
BloodyHi_ has joined #ruby
<[k-> ruby-lang022: that sounds like it's working?
r0x0rZ has joined #ruby
<Ox0dea> Neon: The documentation does say that method should exist, but it doesn't.
<Ox0dea> Why not
<Ox0dea> just use IRB::Irb.new?
duncannz has joined #ruby
<[k-> Ox0dea have you tried it on your local irb?
<Ox0dea> The most recent suggestion?
BloodyHistory has quit [Client Quit]
BloodyHi_ has quit [Client Quit]
<Neon> Ox0dea, my problem is that I can't find the right way of using IRB::Irb. I'll upload the snippet I've come up with so far.
senayar has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
paradoja has joined #ruby
<[k-> yes, if your most recent suggestion is the one im thinking about
Pupp3tm4st3r has joined #ruby
<[k-> ruby-lang022: do you want to insert the id into the string or get it out of the filename
<[k-> what do you mean by place dynamically
DoubleMalt has joined #ruby
Salehi has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
Pupeno has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Neon> The IRB.CurrentContext method (http://ruby-doc.org/stdlib-2.0.0/libdoc/irb/rdoc/IRB.html#method-c-CurrentContext) is returning nil and so I assume I'm doing something wrong.
<ruby-lang022> it is working fine when i try to call statically <% ftp.getbinaryfile("file.1.dynamicScanreport") %>
mistermocha has joined #ruby
<Ox0dea> >> @id = 42; "file.#{@id}.blah" # ruby-lang022
<ruboto> Ox0dea # => "file.42.blah" (https://eval.in/418638)
Pupp3tm4st3r has joined #ruby
oo_ has quit [Remote host closed the connection]
casadei has joined #ruby
joonty has joined #ruby
<Ox0dea> Neon: Are you getting the NoMethodError on #last_value?
mistermocha has quit [Read error: Connection reset by peer]
axsuul has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
<Neon> Ox0dea, yes, it's basically this code causing the error: @workspace.evaluate self, "_ = IRB.CurrentContext.last_value" (in lib/ruby/2.0.0/irb/context.rb:264)
lxsameer_ has joined #ruby
axsuul has joined #ruby
<Neon> (in IRB::Context#set_last_value)
<Ox0dea> > Maybe IRB bug!
<Ox0dea> :P
<Neon> I don't know what they mean with last_value unfortunately. I couldn't find an elaborate documentation on how the IRB class/module works.
<Ox0dea> #last_value returns, well, the value of the most recently evaluated expression.
<Neon> Ox0dea, yeah, that's the default output when an error is raised somewhere in the IRB module.
<Ox0dea> It gets stored in _ for convenience.
last_staff has joined #ruby
<slani> why this doesn't work
<sevenseacat> magic.
<Ox0dea> Neon: Sorry, nothing jumps out as egregiously incorrect. :/
casadei has quit [Ping timeout: 264 seconds]
<sevenseacat> slani: h[1] is nil.
<sevenseacat> seems pretty obvious, no?
<Neon> Maybe I can simply assign a Context to IRB.conf[:MAIN_CONTEXT] manually as this is the field IRB.CurrentContext gets the context from.
sameerynho has quit [Ping timeout: 264 seconds]
<sevenseacat> slani: if h = {}, then h[1] is always nil.
<Ox0dea> slani: Are you coming from Perl?
pen has quit [Read error: Connection reset by peer]
fgo has joined #ruby
pen has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<slani> Ox0dea: no
postmodern has quit [Quit: Leaving]
<Ox0dea> Okay. I only ask because Perl lets you magically insert into hashes like that.
<Ox0dea> It's called autovivification.
jenrzzz has quit [Ping timeout: 256 seconds]
<slani> sevenseacat: how can I then create a nested hash
<Ox0dea> >> auto = Hash.new { |h, k| h[k] = Hash.new &h.default_proc }; auto[1][:a][2] = :b; auto
<ruboto> Ox0dea # => {1=>{:a=>{2=>:b}}} (https://eval.in/418640)
mistermocha has quit [Ping timeout: 244 seconds]
<sevenseacat> that kind of auto-vivication is quite dangerous... I've seen it go very wrong.
ndrei has quit [Ping timeout: 255 seconds]
<Ox0dea> It's not the greatest idea.
faces has joined #ruby
<apeiros> it's just a tribute
<sevenseacat> you should always be in control of your data.
<sevenseacat> apeiros: lol
<Ox0dea> sevenseacat: Then again, using ||= to check for existence and create if not isn't very pretty either.
<Ox0dea> >> h = {}; (h[1] ||= {})[:a] = 10; h
<ruboto> Ox0dea # => {1=>{:a=>10}} (https://eval.in/418641)
ndrei has joined #ruby
<sevenseacat> if you put it in a one-liner like that, sure
face has quit [Ping timeout: 255 seconds]
<Ox0dea> I get to blame the tool this time.
<sevenseacat> >> h = Hash.new({}); h[1] = "foo"; h
<ruboto> sevenseacat # => {1=>"foo"} (https://eval.in/418642)
<sevenseacat> I see no problem of doing one level like that
<Ox0dea> That ain't no nested hash.
fgo has quit [Ping timeout: 250 seconds]
timonv has quit [Read error: Connection reset by peer]
<sevenseacat> what slani wants to do isn't a nested hash either
bumbar_ has joined #ruby
<sevenseacat> wait, i fooked it up
<sevenseacat> I blame 4pm
<slani> If I understand it is better to avoid this
* sevenseacat goes back into hole
<sevenseacat> s/hole/punching Draper in the face/
<Ox0dea> slani: It's fine if you know what you're doing, but that's almost tautological.
workmad3 has joined #ruby
<Ox0dea> Generally, if your thing can be of arbitrary depth, something has already gone wrong.
<sevenseacat> aye.
Macaveli has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
Macaveli has joined #ruby
ferhaty has quit []
dopamean_ has joined #ruby
<Neon> Tell this a file system developer.
oo_ has joined #ruby
sheldonh has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sheldonh> on linux, when i set ENV["HOME"]="scrubbed", i still see the original value of HOME in /proc/PID/environ. does mutation of ENV affect the process's environment? is /proc/PID/environ just a copy of the env that was given to the exec syscall?
jeanlinux has quit [Remote host closed the connection]
<Ox0dea> Where will you be when you will be where you will be when you will be where you will be when the recursion hits?
hotpancakes has quit [Ping timeout: 245 seconds]
jeanlinux has joined #ruby
ahmetkapikiran has joined #ruby
<c0m0> sheldonh: because the environ file is populated when the process begin created
bronson has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
<sheldonh> c0m0: okay cool. so /proc/PID/environ is not a view into the current environment; it's a copy of the env argument to the exec syscall. yes?
<Ox0dea> I'm not sure that's right.
yardenbar has quit [Ping timeout: 240 seconds]
<sheldonh> the proc(5) manpage is inconclusive
<Ox0dea> At least, /proc/PID/cmdline is "dynamic".
<sheldonh> Ox0dea: yes, that's what confused me
<c0m0> environ isn't dinamic
AlxAltea has quit [Ping timeout: 252 seconds]
<sheldonh> Ox0dea: fire up this process: ruby -e 'ENV["HOME"] = "scrubbed"; puts $$; sleep'
Salehi has quit [Remote host closed the connection]
<sheldonh> Ox0dea: then take the pid printed and do: tr '\0' '\n' /proc/PID/environ | grep HOME
<XF> sevenseacat there?
<sevenseacat> yep
<Ox0dea> sheldonh: Aye, it hasn't changed.
<XF> sevenseacat if i give you my ssh details can you fix erros please?
<sevenseacat> hell no.
<XF> :/
Violentr has quit [Ping timeout: 246 seconds]
<XF> im just getting one error
<adaedra> XF: never give your ssh access to strangers,
<XF> idk how to fix
<adaedra> s/,/./
<sevenseacat> right, and I've helped you determine exactly whats causing it
<sevenseacat> now you need to fix it
<XF> idk where the ip is missing
<sevenseacat> neither do we, because you havent shown any code.
<sevenseacat> we haven't even established if its the ip thats missing.
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> sheldonh: Mucking with **argv in C does change the value in /proc/PID/cmdline, but I can't test the same in Ruby.
tno has joined #ruby
<Ox0dea> ARGV's elements are frozen strings and thawing them causes the interpreter to segfault.
<XF> seven can i give the github source code of the scripts
bronson has quit [Ping timeout: 272 seconds]
<XF> sevenseacat can i give the github source code of the scripts
kr3ssh has joined #ruby
<sevenseacat> sure. if someone wants to trawl the whole project to fix your problem for you, is a whole different question though.
* wasamasa just learned about syscall() in ruby
zeroDivisible has joined #ruby
<wasamasa> is it possible to use the syscalls requiring pointers to structs as arguments though?
<sevenseacat> XF: you're verging on the 'hire someone to fix my problem' solution
<ruby-lang022> @<Ox0dea>, @<[k-> it is working fine with local textfile like test.1.txt but when i try to connect to ftp server to get file -- I'm getting error "invalid byte sequence in UTF-8"
<XF> :/
Soda has joined #ruby
<XF> i thought u are trusted
<wasamasa> I've tried using gettimeofday with a variable containing an empty string and promptly got a segfault
<Ox0dea> ruby-lang022: Thousands of people have had your problem.
<sevenseacat> XF: you have not shown any kind of competency at fixing your own problem
<Ox0dea> They have left a trail of knowledge in their wake.
TheHodge has joined #ruby
<sheldonh> Ox0dea: yeah, i don't care about cmdline. i'm trying to protect some environment variables (used to configure a configuration service client) from accidental exposure in programs that dump ENV in their exception handlers. stupid, but common
<sevenseacat> ergo we can determine you are not a programmer and should hire someone who is
<Ox0dea> sheldonh: /proc/PID/environ is dynamic.
<Neon> All people whose nicknames end with 'cat' are officially trusted.
<ruby-lang022> and i was confused it is working fine when i directly given that filename
<Ox0dea> Using the "third argument" (char **environ) to main(), I can modify its values.
<sheldonh> Ox0dea: how have you tested that claim?
<Ox0dea> sheldonh: See above.
<XF> sevenseacat i got bot scripts from github idk how to use but tried and i am at end
<XF> just 1 error to solve and whole done
<sevenseacat> uh huh.
oo_ has quit [Remote host closed the connection]
<sheldonh> Ox0dea: ah. so you're saying the kernel supports it, but ruby doesn't bother
<Ox0dea> That does seem to be the case, yes.
<c0m0> Ox0dea: but if you change a variable when your process is up && running, the change to env variable isn't show in environ file
<Neon> wasamasa, don't you think you're doing it wrong? :S
<XF> sevenseacat :/
<r0x0rZ> hi i'm just starting out with Ruby. I was wondering how can I read documentation in terminal emulator? (something like pydoc in python)
<wasamasa> Neon: oh, sure
<sevenseacat> r0x0rZ: you probably want ri
<Ox0dea> c0m0: Perhaps not from Ruby, but a very simple C program will demonstrate that it is indeed possible.
<wasamasa> Neon: not like I'd get a segfault for no reason :v
<r0x0rZ> sevenseacat: oh yeah that's it. thanks
oo_ has joined #ruby
<c0m0> show me C code
<sevenseacat> lol
Guest32 is now known as leverky
<sevenseacat> show me teh codez
<rmrrn> lol
<XF> what should i do?
<sevenseacat> XF: hire someone to fix your script.
devoldmx has joined #ruby
<XF> sevenseacat where can i find?
<Neon> wasamasa, I mean if you operate on that layer you shouldn't be using Ruby probably. Although I must say I'm curious about the pointer thing. :P
chipotle has joined #ruby
<sevenseacat> XF: not here.
<wasamasa> Neon: well, of course
<wasamasa> Neon: I'm currently preparing a talk for my operating systems class about syscalls and wanted to show something different from C for a change
yardenbar has joined #ruby
<Neon> wasamasa, have you tried using malloc and getting the pointer value and passing that?
<XF> sevenseacat where then?
sideshowcoder has joined #ruby
<sevenseacat> XF: please stop pestering me, or I'll mute you.
conor_ has joined #ruby
<XF> srry
riotjones has joined #ruby
<wasamasa> Neon: I've heard a similiar argument against FFI, citing that most don't support structs or pointers to them, rendering a good amount of libraries useless
DoubleMalt has quit [Ping timeout: 264 seconds]
<wasamasa> Neon: that person then argued for the module approach
AndroUser has joined #ruby
eGGsha is now known as eGGshke
DoubleMalt has joined #ruby
<sheldonh> c0m0, Ox0dea thanks for helping me work through it
<Ox0dea> Sure thing.
devoldmx has quit [Ping timeout: 256 seconds]
bright_day has joined #ruby
rdark has joined #ruby
banister has joined #ruby
<livcd> in theory if i would be looking to reimplement an authentication system like Devise where should i start first ?
paradoja has quit [Ping timeout: 240 seconds]
<c0m0> Maybe you can find the way to change the environ file, but I'm doing some test with a simple c program like this http://hastebin.com/gitefujune.tex
Pathfinder has quit [Ping timeout: 272 seconds]
<c0m0> gcc -o sleep sleep.c -g
mutuma has joined #ruby
<c0m0> and now, gdb -q ./sleep
<c0m0> Reading symbols from /home/c0m0/programmin/C/sleep...(no debugging symbols found)...done
<Ox0dea> Environment variable names cannot contain '=', so that little program should be sufficiently demonstrative.
<c0m0> sorry that was the wrong output, Reading symbols from /home/c0m0/programmin/C/sleep...done.
<Neon> wasamasa, oh I'm not against FFI in general. It just appeared to me as if you were to kind of reinventing the wheel with syscalls, but if you're doing it for a class it's probably pretty cool (although maybe, depending on the people you're teaching, it might more confuse them).
<wasamasa> Neon: haha, no
<c0m0> And i put a breakpoint in line 8
jgt1 has joined #ruby
<wasamasa> Neon: this isn't for any serious programming, just to fill up 45 minutes of standing in front of my bored classmates
<c0m0> now I will try to change the HOME ENV, http://hastebin.com/ufufileqik.coffee
Iskarlar has joined #ruby
mutuma_ has joined #ruby
<c0m0> Now i going to check If the variable change in environ file: result http://hastebin.com/ajabukigak.rb
mutuma has quit [Ping timeout: 252 seconds]
Hounddog has joined #ruby
volk has joined #ruby
sdwrage has joined #ruby
eGGshke is now known as eGGsha
<XF> anyone can fix my ruby scripts please only 1 error :)
mutuma_ is now known as Pathfinder
charliesome has joined #ruby
volk has quit [Client Quit]
paradoja has joined #ruby
volk has joined #ruby
volk has quit [Client Quit]
<c0m0> 0x0dea: why If I use the syscall setenv nothing is begin to be changed and using the array of pointer yes?
volk has joined #ruby
platzhirsch has joined #ruby
volk has left #ruby [#ruby]
<Ox0dea> c0m0: Writing into the pointer directly modifies the memory at that location.
<Ox0dea> Using the "proper" environment manipulators works on copies, more or less.
<Ox0dea> It's these copies which get passed to children, so mucking about in /proc/self/environ is both silly and largely pointless.
charliesome has quit [Client Quit]
<c0m0> 0x0dea: do you have some deep documentation about that? I was asking me the same question some month ago
radgeRayden has joined #ruby
<Ox0dea> I suppose I could go looking for where it's spelled out explicitly, but proofs by observation are so simple. :P
SolarSailor has joined #ruby
SolarSailor has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
<wasamasa> TLPI is a good resource for these kinds of things
roolo has joined #ruby
jgt1 has quit [Ping timeout: 272 seconds]
charliesome has quit [Client Quit]
<c0m0> wasamasa: sorry for my ignorant, but what is TLPI?
charliesome has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wasamasa> c0m0: http://www.man7.org/tlpi/
<Neon> Do you know of a way to use eval with partial statements? Like eval 'a.each do |i|'; eval 'puts i'; eval 'end'; so the last one actually executes the code?
<Ox0dea> Neon: Isn't that why you're using IRB?
<Neon> Ox0dea, exactly.
roolo has quit [Ping timeout: 252 seconds]
jbw has joined #ruby
<Neon> I've got to a point where it kind of works, but I'm not sure if it's stable. It's not documented well and IRB appears to be a singleton-like thing as relevant references are stored in the global IRB object.
sdwrage has quit [Quit: This computer has gone to sleep]
<corpsicle> [k-: sorry for late answer, yea i have absolute path already, thats not helping. its wierd though, if i run from commandline it helps to put "" around the path. but when executing from pyton subprocess that doesnt seem to help
chipotle has quit [Read error: Connection reset by peer]
<Ox0dea> Neon: Aye, I think banister would've made pry piggy-back on IRB if it were sensible to do so.
<Neon> And now I'm looking for a cooler alternative, before I go the dirty path. I found out that eval accepts a Binding, which is kind of a context that can hold variables etc. so I can carry a state over from one eval to another, but my statements may not be complete at the time of evaluation.
<Ox0dea> Neon: In that case, you might consider wrapping them in begin blocks and rescuing Exception until the code doesn't raise.
<Ox0dea> That's a little crazy, though.
Karpah has joined #ruby
sameerynho has joined #ruby
[k- has quit [Ping timeout: 260 seconds]
<Neon> Yeah, I thought of that as well, but that path is probably not much cleaner. Also if a part contains both a partial that ends the previous statement and starts a new one it will raise an Error as well, although the first statement is complete already.
DoubleMalt has quit [Ping timeout: 255 seconds]
davedev24 has quit [Remote host closed the connection]
dumdedum has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<Ox0dea> Well, how would IRB help with that?
sevenseacat has quit [Ping timeout: 245 seconds]
Pupp3tm4st3r has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> If you complete a statement and begin a new one on the same line, the "completed" value gets discarded.
charliesome has joined #ruby
DoubleMalt has joined #ruby
<Neon> Ox0dea, hm, right, it waits until the second one is complete as well before execution
<Ox0dea> Neon: No, it'll execute the first, but the value won't be accessible.
chipotle has joined #ruby
DoubleMalt has quit [Max SendQ exceeded]
lxsameer_ has quit [Ping timeout: 244 seconds]
<Ox0dea> Of course, any stateful effects will have been performed.
<Neon> Ox0dea, I don't care about return values.
DoubleMalt has joined #ruby
<Neon> So that's not an issue.
<Ox0dea> Neon: I suppose now's as good a time as any to ask you what you're trying to do.
<Neon> Maybe there's a sytax checker?
<Ox0dea> There are several.
<Neon> So I can make a string buffer and append my partial statements until the syntax checker says "Yup, here you go"
fgo has joined #ruby
<Ox0dea> Neon: ruby has a -c flag for checking syntax.
marr has joined #ruby
<Neon> Ox0dea, so that would mean I'd start a new ruby process for each check. :S
<Ox0dea> I admit, it's not the best option.
jamesaxl|2 has quit [Remote host closed the connection]
<Ox0dea> Neon: whitequark/parser or seattlerb/ruby_parser would obviate the need to shell out.
<Ox0dea> Then again, SyntaxError can be rescued. :)
nux443 has quit [Ping timeout: 240 seconds]
chipotle has quit [Read error: Connection reset by peer]
Karpah is now known as sevenseacat
dumdedum has quit [Ping timeout: 265 seconds]
<Neon> I just wonder why there's no easy access to the native syntax checker.
stan has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
jeanlinux has quit [Remote host closed the connection]
ferhaty has joined #ruby
suchness has joined #ruby
jeanlinux has joined #ruby
<Ox0dea> Neon: It essentially works by asking Bison whether anything went wrong.
<Neon> Maybe I'll simply go for the SyntaxError-rescue-approach.
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Neon: http://git.io/vsqM2
<Ox0dea> It's what fast_method_source does to decide what constitutes a method definition, so it's at least workable.
iloverubynoob has joined #ruby
platzhirsch has joined #ruby
abdoudjanifresh has joined #ruby
chipotle has joined #ruby
conor_ has quit [Remote host closed the connection]
bruno- has joined #ruby
elepedus has joined #ruby
Iskarlar has joined #ruby
einarj has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
conor_ has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
finisherr has joined #ruby
dumdedum has joined #ruby
workmad3 has joined #ruby
finisherr has quit [Client Quit]
benlovell has joined #ruby
Timba-as has joined #ruby
<Aeyrix> Yo anyone here write C# on the regular?
* Aeyrix hopes.
<Aeyrix> paging Ox0dea because I know you do weird programming shit a lot.
<Ox0dea> Aeyrix: Alas, not that weird. :P
hotpancakes has joined #ruby
<Aeyrix> :(
<Aeyrix> Do we have a .tell bot?
<Aeyrix> I think bnagy may do.
<yorickpeterse> &ri CSV.open
<yorickpeterse> `derpy: ty
<Ox0dea> `derpy: Are you open-source?
<gregf_> Aeyrix: one of havenwood/canton7 maybe
workmad3 has quit [Ping timeout: 265 seconds]
<Aeyrix> gregf_: Good point! Thank you.
Pupp3tm4st3r has quit [Remote host closed the connection]
* canton7 waves
<Aeyrix> You do C#?
<canton7> yeah
<Aeyrix> y a s
<Aeyrix> a
<Aeyrix> s
<Aeyrix> How well-versed are you?
<rmrrn> Aeyrix: he is the man for c# ;)
<canton7> depends on the area, heh. pretty good
<Aeyrix> Nothing serious, I just was looking to bug someone on ocassion for (probably really dumb) C# questions for a university course.
<Aeyrix> I have nothing to offer in return.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<Aeyrix> Unless you want $, I guess.
<Aeyrix> Not asking you to do it or anything just to clarify.
<Aeyrix> I just find the language very convoluted.
<canton7> ##csharp exists, but homework is banned
<Aeyrix> Fuq.
<canton7> (but if you're nice and don't phrase it as homework, you can often get away with it)
<Aeyrix> Hmm.
<canton7> but yeah, if I'm around, I'm happy to answer sensible questions
pawnbox_ has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Neon> Some learn to do C#, others just get glasses.
hotpancakes has quit [Ping timeout: 252 seconds]
<Ox0dea> /part /r/ProgrammerHumor
AndroUser has left #ruby ["Quit"]
pawnbox has joined #ruby
charliesome has joined #ruby
<Aeyrix> Illegal channel name.
UtkarshRay has joined #ruby
<ljarvis> uh, I don't really understand the Ruby bugfix version release notes
mandarinkin has joined #ruby
gambl0re has quit [Ping timeout: 264 seconds]
<ljarvis> does this Rubygems issue affect everyone?
livathinos has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Meow-J has joined #ruby
workmad3 has joined #ruby
Pupp3tm4st3r has joined #ruby
<Neon> So is is possible to get a Binding that is completely isolated from the global Binding?
gamov has quit [Quit: gamov]
pawnbox has quit [Ping timeout: 250 seconds]
<Neon> Or, at point of creation, a clone/copy of the global Binding?
<Ox0dea> >> TOPLEVEL_BINDING.clone # Neon
<ruboto> Ox0dea # => #<Binding:0x410f0334> (https://eval.in/418681)
CloCkWeRX has quit [Ping timeout: 244 seconds]
<yorickpeterse> ljarvis: if you're not on the latest version, yes
<yorickpeterse> but you can just `gem update --system` IIRC
<Neon> My test is basically: bnd = TOPLEVEL_BINDING.clone; x = 5; eval 'puts x', bnd; and I want it to puts nil.
<Neon> Ox0dea: and it puts 5.
<ljarvis> yorickpeterse: if it requires SRV validation wouldn't it only affect if you were using an untrusted source? (or someone change rubygems.org SRV)
<Ox0dea> Neon: I'm afraid I don't follow.
<yorickpeterse> ljarvis: not sure
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Neon> Ox0dea: Well, I'd expect x to not be defined in the context I pass to eval.
<Neon> So puts nil was wrong, it should raise a not defined error.
<Ox0dea> Oh, right. You're trying to be very tricksy.
<Neon> Probably clone does only a flat clone and copies references.
<Neon> I thought about making a subprocess and sending it to eternal sleep, then getting it's Binding somehow.
paradoja has quit [Remote host closed the connection]
<ljarvis> yorickpeterse: yeah me either, vague post is vague
DEac- has quit [Ping timeout: 252 seconds]
<Ox0dea> Neon: You could use a BEGIN block to grab as empty a Binding as is feasible?
<ljarvis> looking at the commit tells me i'll be fine without upgrading unless i'm using a custom source
DEac- has joined #ruby
astrobun_ has quit [Remote host closed the connection]
codecop has joined #ruby
eminencehc has joined #ruby
codecop_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<Neon> Ox0dea: I don't know about BEGIN-blocks.
<adaedra> Ox0dea: the doc plugin is open-source, yes
<Neon> I just know =BEGIN and =END can be used to make ugly multi-line comments.
oo_ has joined #ruby
<Ox0dea> Neon: BEGIN { foo } will execute before anything else, more or less.
jeadr has quit [Remote host closed the connection]
<r0x0rZ> what could be a reason for not having syntax highlighting in Pry? I installed it via `gem install pry` and my user shell is ZSH with a theme (could that be aconflict?)
leverky has quit [Ping timeout: 265 seconds]
<Neon> Ox0dea: Okay, but I don't think that'd solve the problem. binding.clone doesn't seem to make a proper clone but rather create a new set of the same reference as modifying it's origin will affect the clone as well.
<Neon> references*
sgambino has joined #ruby
jeadr has joined #ruby
<Ox0dea> Neon: Ah, yeah, I derped there.
<Neon> Hm, i could try using a subprocess and IPC.
eminencehc has quit [Ping timeout: 245 seconds]
<Ox0dea> I was going to suggest that you probably just want to drive an external process a while back.
ReK2 has joined #ruby
ReK2 has joined #ruby
<Ox0dea> It seemed inappropriate given how close you seemed to have gotten with IRB.
rek2gnulinux has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 246 seconds]
<Neon> Ox0dea: I don't like the IRB solution. It's not meant to be used like that (thus may hold some surprises) and it comes with the whole formatting and prompt overhead.
<Neon> I'd use that if nothing else worked.
<Ox0dea> Neon: And it remains the case that you're interested only in side effects?
DEac- has quit [Ping timeout: 265 seconds]
DEac- has joined #ruby
<Neon> Ox0dea: Not completely, but if there are statements chained with semicolons I want to have only the last output and I think eval will give that to me.
Pupp3tm4st3r has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Pupp3tm4_ has joined #ruby
<Ox0dea> Neon: Open3 + irb is arguably the "right" way to do it, but shoveling into a buffer until it doesn't constitute a SyntaxError isn't as terrible as it might seem for such purposes.
eGGsha is now known as eGGshke
Macaveli has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
fgo has joined #ruby
tvw has quit []
<Neon> Ox0dea: So you think I should rather run IRB in the subprocess?
Synthbread has quit [Quit: Leaving]
ascarter has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<Ox0dea> It's an option.
ferhaty has quit []
ascarter has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
wookiehangover has quit [Ping timeout: 246 seconds]
robbyoconnor has quit [Excess Flood]
Pupp3tm4_ has quit [Remote host closed the connection]
hahuang65 has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
eGGshke is now known as eGGsha
hahuang65 has joined #ruby
hotpancakes has joined #ruby
arup_r has quit [Remote host closed the connection]
wookiehangover has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shidash has joined #ruby
fgo has quit [Ping timeout: 264 seconds]
<Neon> Ox0dea: Is it magic? ;D
BLuEGoD has quit [Ping timeout: 244 seconds]
universa1 has quit [Ping timeout: 244 seconds]
sfr^ has quit [Ping timeout: 244 seconds]
<Ox0dea> Neon: "After all, He-Who-Must-Not-Be-Named did great things — terrible, yes, but great."
<Neon> Ox0dea: And he did it by rescuing SyntaxErrors.
<Ox0dea> It is known.
jordanm has quit [Ping timeout: 246 seconds]
jbw_ has joined #ruby
stamina has joined #ruby
tonini has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
conor_ has quit [Remote host closed the connection]
sfr^ has joined #ruby
pawnbox has joined #ruby
amystephen has quit [Quit: amystephen]
hotpancakes has quit [Ping timeout: 265 seconds]
universa1 has joined #ruby
<Neon> Ox0dea: And is that a minecrafty avatar you're using on GitHub?
conor_ has joined #ruby
BLuEGoD has joined #ruby
tonini has joined #ruby
<Ox0dea> Neon: That's my face...
jbw has quit [Ping timeout: 260 seconds]
<Neon> Ox0dea: ...in Minecraft?
<workmad3> haha
<`derpy> That's one of the default avatars
rodfersou has joined #ruby
<`derpy> Oops, wrong window
<workmad3> Neon: gravatar default avatar
<Neon> lol
[k- has joined #ruby
pawnbox has quit [Remote host closed the connection]
bronson has joined #ruby
qiukun has quit [Quit: qiukun]
<Neon> It would've been a weird Minecraft skin, but I've seen weirder.
eGGsha is now known as eGGshke
<workmad3> Neon: https://en.gravatar.com/site/implement/images/ the options for default styles of gravatar are there... I wish that github was using monsterid or wavatar personally :(
sheldonh has quit [Quit: gone]
pawnbox has joined #ruby
maasha has joined #ruby
<adaedra> yuck
<maasha> How do you check the if the mode of a unix file is 640 in Ruby?
pawnbox_ has joined #ruby
<maasha> File.stat can do certains things ...
<adaedra> .mode & 0777 == 0640
bronson has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
conor_ has quit [Remote host closed the connection]
abdoudjanifresh has quit []
nofxx has quit [Ping timeout: 252 seconds]
eGGshke is now known as eGGsha
<workmad3> adaedra: I don't like octal... .mode & 511 == 420 looks much nicer... right? :D
pawnbox has quit [Ping timeout: 245 seconds]
<adaedra> >> 0640
<ruboto> adaedra # => 416 (https://eval.in/418699)
<workmad3> oh right, I was checking for 0644
<adaedra> 420?
<workmad3> in my quick test ;)
conor_ has joined #ruby
<adaedra> But it's clearer in octal!
elepedus has quit [Ping timeout: 250 seconds]
<workmad3> adaedra: bah... how about hex then?
<adaedra> :v
<workmad3> .mode & 0x1ff == 0x1a0 <-- see how nice that is :D
<adaedra> What about binary? Reads almost like rwxrwxrwx !
* workmad3 stops tormenting adaedra and goes back to crappy JS
<adaedra> hehe
benlovell has quit [Ping timeout: 244 seconds]
<chris2> that will accept 01640 too btw, may not be what you want
elepedus has joined #ruby
<adaedra> It will?
<workmad3> adaedra: oh, you mean like `.mode & 0b111111111 == 0b110100000`
<adaedra> Oh wait, I don't even remember what I wrote 5 mn before -_-'
<chris2> if you and the higher bits away...
duncannz has quit [Ping timeout: 256 seconds]
Pwnna has quit [Ping timeout: 256 seconds]
<chris2> just use ==...
<workmad3> adaedra: hehe :) `.mode & 0b111_111_111 == 0b111_100_100` actually doesn't look too bad!
<maasha> wow, rsync is stupid
<adaedra> workmad3: _100_000*
<maasha> or rather, the chmod syntax is convoluted big time
<workmad3> adaedra: :D
devoldmx has joined #ruby
<workmad3> adaedra: you missed the other error too ;)
ferhaty has joined #ruby
<adaedra> indeed
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> adaedra: still... it's pretty nice that you can actually specify bit-masks as bit-masks, rather than having to store them converted into some other representation
r0x0rZ has quit [Remote host closed the connection]
<adaedra> indeed
<workmad3> I'll need to remember that if I'm ever doing bit-masking again
fgo has joined #ruby
qiukun has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
ahmetkapikiran has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
krisquigley has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has joined #ruby
yfeldblum has joined #ruby
fgo_ has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
yfeldblu_ has joined #ruby
whiteline has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
Iskarlar has joined #ruby
krz has quit [Quit: WeeChat 1.2]
<maasha> anisha: hm, a file with -rw-r--r-- == 644 permissions and .mode & 0777 returns 420?
<adaedra> >> 0644
<ruboto> adaedra # => 420 (https://eval.in/418708)
<adaedra> :>
<maasha> ah
Pupp3tm4st3r has joined #ruby
<adaedra> File modes are octal
Ilyes512 has joined #ruby
andywojo has quit [Ping timeout: 256 seconds]
<adaedra> The heading 0 is not optional
iloverubynoob has quit [Remote host closed the connection]
codecop_ has quit [Quit: Išeinu]
yfeldblum has quit [Ping timeout: 264 seconds]
ruby-lang022 has quit [Ping timeout: 246 seconds]
banister has quit [Read error: Connection reset by peer]
eGGsha is now known as eGGshke
Tempesta has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
Salehi has joined #ruby
Kalov has quit []
_blizzy_ has joined #ruby
jeadr has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
nettoweb has joined #ruby
qiukun has quit [Quit: qiukun]
jeadr has joined #ruby
eGGshke is now known as eGGsha
Macaveli has quit [Read error: Connection reset by peer]
volk has joined #ruby
Macaveli has joined #ruby
psy_ has joined #ruby
arup_r has joined #ruby
pawnbox has quit [Remote host closed the connection]
rubie has joined #ruby
oo_ has joined #ruby
moss has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
Pupp3tm4st3r has joined #ruby
jgt1 has joined #ruby
pawnbox has joined #ruby
hotpancakes has joined #ruby
sdothum has joined #ruby
kt2 has joined #ruby
phutchins has joined #ruby
Pupeno has quit [Quit: Leaving...]
benlovell has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
tsvenson has quit [Read error: No route to host]
kt2 has quit [Client Quit]
kt2 has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
jgt1 has quit [Ping timeout: 272 seconds]
hotpancakes has quit [Ping timeout: 260 seconds]
User458764 has quit [Ping timeout: 245 seconds]
lxsameer_ has joined #ruby
r0x0rZ has joined #ruby
User458764 has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
SenpaiSilver has quit [Quit: Leaving]
greg has joined #ruby
sameerynho has quit [Ping timeout: 244 seconds]
leafybasil has joined #ruby
greg is now known as demonlove
fgo_ has quit [Ping timeout: 245 seconds]
maasha has quit [Quit: Page closed]
Pupp3tm4st3r has joined #ruby
Cust0sLim3n has quit [Ping timeout: 244 seconds]
yfeldblu_ has quit [Ping timeout: 244 seconds]
blueOxigen has quit [Ping timeout: 255 seconds]
leafybasil has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
pawnbox has joined #ruby
SenpaiSilver has joined #ruby
dgutierrez1287 has joined #ruby
conor_ has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 252 seconds]
nuttermb has quit [Read error: Connection reset by peer]
conor_ has joined #ruby
msnyon has joined #ruby
nuttermb has joined #ruby
patrick_star has quit [Ping timeout: 250 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 246 seconds]
gnarf has quit [Excess Flood]
demonlove has quit [Remote host closed the connection]
cynosures has quit []
gnarf has joined #ruby
Voker57 has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rodfersou has quit [Quit: leaving]
Cust0sLim3n has joined #ruby
Iskarlar has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
shay- has left #ruby [#ruby]
AlxAltea has joined #ruby
patrick_star has joined #ruby
bright_day has quit [Quit: Connection closed for inactivity]
pawnbox has joined #ruby
conor_ has quit [Remote host closed the connection]
bruno- has joined #ruby
iloverubynoob has joined #ruby
dionysus69 has quit [Quit: dionysus69]
Coldblackice has quit [Ping timeout: 265 seconds]
iloverubynoob has quit [Read error: Connection reset by peer]
iloverub_ has joined #ruby
tkuchiki has joined #ruby
tkuchiki has quit [Remote host closed the connection]
psy_ has quit [Read error: No route to host]
pawnbox has quit [Remote host closed the connection]
IceyEC has joined #ruby
psy_ has joined #ruby
pawnbox has joined #ruby
charliesome has joined #ruby
elepedus has quit [Ping timeout: 250 seconds]
terlar has quit [Quit: WeeChat 1.2]
Coldblackice has joined #ruby
charliesome has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
charliesome has joined #ruby
vdamewood has joined #ruby
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
iamninja has quit [Read error: Connection reset by peer]
charliesome has quit [Ping timeout: 246 seconds]
iamninja has joined #ruby
AlexRussia_ has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
but3k4 has joined #ruby
Pwnna has joined #ruby
lele has quit [Quit: Coyote finally caught me]
conor_ has joined #ruby
joonty has quit [Quit: joonty]
rideh has joined #ruby
pawnbox has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
frozen3 has joined #ruby
platzhirsch has quit [Quit: Leaving.]
platzhirsch has joined #ruby
platzhirsch has quit [Client Quit]
platzhirsch has joined #ruby
blackjid has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
blackjid has joined #ruby
lele has joined #ruby
bayed has joined #ruby
hotpancakes has joined #ruby
dhjondoh has quit [Remote host closed the connection]
absolutejam has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
absolutejam has joined #ruby
sameerynho has joined #ruby
tvw has joined #ruby
rodfersou has joined #ruby
amystephen has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
lxsameer_ has quit [Ping timeout: 260 seconds]
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
volk has quit [Quit: leaving]
tmtwd has joined #ruby
M-prosodyContext has quit [Remote host closed the connection]
M-mistake1 has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 245 seconds]
mistermocha has quit [Ping timeout: 255 seconds]
volk has joined #ruby
bronson has joined #ruby
dhjondoh has joined #ruby
amystephen has quit [Ping timeout: 255 seconds]
ldnunes has joined #ruby
pawnbox has joined #ruby
RegulationD has joined #ruby
Cust0sLim3n has quit [Ping timeout: 255 seconds]
krisquigley has quit []
dimasg has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
s00pcan has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 265 seconds]
pawnbox has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
techsethi has quit [Quit: techsethi]
pawnbox has joined #ruby
renderful has joined #ruby
lxsameer_ has joined #ruby
<shevy> good morning ruby
roolo has joined #ruby
<[k-> ?ugt shevy
<ruboto> shevy, it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
diegoaguilar has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 246 seconds]
eGGsha is now known as eGGshke
Pupp3tm4st3r has joined #ruby
tmtwd has quit [Ping timeout: 244 seconds]
renderful has quit [Ping timeout: 240 seconds]
conor_ has quit [Remote host closed the connection]
conor_ has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
pawnbox has quit [Remote host closed the connection]
Tempesta has joined #ruby
leafybasil has joined #ruby
conor_ has quit [Client Quit]
krisquigley has joined #ruby
dstarh has joined #ruby
<shevy> yeah
Cust0sLim3n has joined #ruby
linuxboytoo has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
R1ck has joined #ruby
lannonbr has joined #ruby
<R1ck> hi. when running rake db:migratie, I get a lot of warnings like "rake.rb:24: warning: already initialized constant Rake::VERSION" and eventually "rake aborted! SystemStackError: stack level too deep" - whats the cause of this?
chinmay_dd has joined #ruby
eGGshke is now known as eGGsha
<apeiros> R1ck: the two are unrelated. one means that you redefine a constant, the other that you do something recursively and have too many recursions.
<apeiros> (though, of course, the recursion could include the code which redefines the constant - so they could be related in that way)
nuttermb has quit [Ping timeout: 244 seconds]
<R1ck> well.. one thing at a time.. I have an app in the directory "app" - how can I test if this app runs at all?
atomical has joined #ruby
<apeiros> well, rails channel is #rubyonrails
benlovell has quit [Ping timeout: 246 seconds]
<R1ck> oh, thanks
CloCkWeRX has quit [Ping timeout: 256 seconds]
<R1ck> it looks like there are two rake gems, one installed at /usr/local/lib/ruby/... and one in the application directory vendor/bundle
ahmetkapikiran has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
sarkyniin has joined #ruby
Iskarlar has joined #ruby
marr has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
blue_deref has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Kallis has joined #ruby
lxsameer_ has quit [Ping timeout: 264 seconds]
dhjondoh has quit [Quit: dhjondoh]
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
rubie has joined #ruby
thermatix has joined #ruby
banister has joined #ruby
jeremy04 has joined #ruby
tvw has quit []
sanguisdex has quit [Quit: Leaving.]
nuttermb has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
sdwrage has joined #ruby
rbennacer has joined #ruby
Pwnna has left #ruby ["Leaving"]
thermatix has quit [Ping timeout: 246 seconds]
sanguisdex has joined #ruby
pawnbox has joined #ruby
jeremy04 has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
havenwood has joined #ruby
terlar has joined #ruby
bmurt has joined #ruby
ItSANgo__ has quit [Quit: Leaving...]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
jtdoncas has joined #ruby
victortyau has joined #ruby
<shevy> does a typical .json file have a trailing \n? I just generated a .json via ruby ...
<[k-> yes
<[k-> like all files
<Psi-Jack> Not needed.
BLuEGoD has quit [Quit: oh cruel destiny]
Cust0sLim3n has quit [Ping timeout: 245 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
dgutierrez1287 has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 245 seconds]
sarkyniin has joined #ruby
Pupp3tm4st3r has joined #ruby
hotpancakes has joined #ruby
sdfgsdfg has quit [Remote host closed the connection]
krz has joined #ruby
jgt1 has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
sepp2k has joined #ruby
unver has joined #ruby
chicken_wangs has left #ruby ["Leaving"]
northfurr has joined #ruby
joonty has joined #ruby
bnizzle has joined #ruby
gamename has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 244 seconds]
gamename has joined #ruby
ItSANgo has joined #ruby
mistermocha has joined #ruby
jgt1 has quit [Ping timeout: 256 seconds]
tonios57 has joined #ruby
dhjondoh has joined #ruby
Cust0sLim3n has joined #ruby
gamename has quit [Ping timeout: 252 seconds]
<ljarvis> bleh, i need some kind of Hash#verified_merge
malconis has joined #ruby
dhjondoh has quit [Client Quit]
<[k-> verified_merge?
<ljarvis> safe_merge might be a better name, although less obvious
Coldblackice has quit [Ping timeout: 264 seconds]
M-mistake has joined #ruby
M-prosodyContext has joined #ruby
<[k-> safe_merge?
<[k-> merge already provides ways to address conflicts?
dblessing has joined #ruby
stamina has quit [Ping timeout: 255 seconds]
<jhass> neither seems obvious :P
mistermocha has quit [Ping timeout: 256 seconds]
<[k-> ^
hinbody has joined #ruby
DroidBurgundy has joined #ruby
<ljarvis> heh, having "verified" in the name means the keys are known/verified.. thus more obvious than "safe"
whippythellama has joined #ruby
kedare has joined #ruby
freerobby has joined #ruby
<ljarvis> but yes it was just an example
<jhass> I have no idea what a "verified key" would be
dhjondoh has joined #ruby
rbennacer has quit [Remote host closed the connection]
<[k-> has_only_these_keys
<ljarvis> and key that is verified? seriously? :|
<ljarvis> a*
<[k-> WHAT IS A KEY THAT IS VERIFIED GODDAMNIT
dhjondoh has quit [Client Quit]
dstarh has joined #ruby
<[k-> that seems like an awful move on my paet
<[k-> sorrry
dhjondoh has joined #ruby
* jhass puts [k- in a pink room
<tobiasvl> ljarvis: what functionality are you looking for?
<ljarvis> tobiasvl: I spotted a bug where keys are not being overwritten, so for a.merge(b) i'd prefer to verify that keys in b exist in a (hence looking for a better method name)
<ljarvis> (not replace)
<XF> anyone here knows about znc?
<ljarvis> ?anyone XF
<ruboto> XF, Just ask your question, if anyone has or can, they will respond.
<ljarvis> XF: that's not Ruby related (if you're talking about the irc bouncer)
<ljarvis> please take non Ruby discussion to #ruby-offtopic or look for the znc channel
knrz has joined #ruby
dhjondoh has quit [Client Quit]
<[k-> b.keys & a.keys == b.keys.size?
<ljarvis> wat
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<[k-> your first description was completely off
<ljarvis> I know how to write the code anyway, I was just making a comment
fgo_ has joined #ruby
eGGsha is now known as eGGshke
eGGshke is now known as eGGsha
<[k-> we dont need a verified_merge if merge does its job properly
<jhass> mmh, if Hash#update weren't an alias already...
<ljarvis> ...
<ljarvis> [k-: please stop
<ljarvis> jhass: right
eGGsha is now known as eGGshke
jeremy04 has joined #ruby
juanpaucar has joined #ruby
Ropeney has joined #ruby
<ljarvis> a.fetch(key) && b[key] = value is fair enough
lannonbr has quit [Ping timeout: 246 seconds]
<ljarvis> er other way around
pawnbox has quit [Remote host closed the connection]
bronson has joined #ruby
<jhass> a[key] = value if a.has_key? key ?
Ropeney has quit [Client Quit]
<ljarvis> yeah works well enough
jerius has joined #ruby
kitfox has joined #ruby
<[k-> so, you want to merge keys that are only present in the original hash
<[k-> people in production ;-; i dont get you
Salehi has quit [Quit: Leaving]
* ljarvis redefines Hash#update and waits to get fired
socialjackie has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
<jhass> in rails: a.merge(b.slice(*a.keys))
eGGshke is now known as eGGsha
bronson has quit [Ping timeout: 246 seconds]
<ljarvis> yep
Lucky__ has quit [Ping timeout: 272 seconds]
<ljarvis> to be honest, i just added a spec and forgot about it, but it's worth considering where else it might have caught me
Torrieri has quit [Quit: Be back later ...]
timonv has joined #ruby
<[k-> a.keys.zip(b.values_at(*a.keys)) maybe?
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> oh god im horrible
banister has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
kies has quit [Ping timeout: 246 seconds]
amystephen has joined #ruby
<[k-> might as well use select, which is more expressive, but its O(n)
knrz has quit [Quit: Textual IRC Client: www.textualapp.com]
casadei has joined #ruby
neohunter has joined #ruby
pawnbox has joined #ruby
fgo_ has quit [Ping timeout: 272 seconds]
ahmetkapikiran has joined #ruby
ItSANgo has quit [Quit: Leaving...]
Ropeney has joined #ruby
kitfox has quit []
northfurr has quit [Read error: Connection reset by peer]
Ropeney has quit [Client Quit]
cashnguns has joined #ruby
cash_n_guns has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Iskarlar has joined #ruby
patrick_star has quit [Ping timeout: 255 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
northfurr has joined #ruby
patrick_star has joined #ruby
nofxx has joined #ruby
vdamewood has quit [Quit: Life beckons.]
CloCkWeRX has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
d10n-work has joined #ruby
rubie has joined #ruby
hotpancakes has joined #ruby
Ropeney has joined #ruby
pawnbox has joined #ruby
cash_n_guns has quit [Quit: I'm just an old fashioned cowboy]
bigbadbear has joined #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
rubie has quit [Ping timeout: 265 seconds]
DroidBurgundy has quit []
AlxAltea has quit [Read error: Connection reset by peer]
iCyb3r has joined #ruby
patrick_star has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Ping timeout: 240 seconds]
fibbel has quit [Read error: Connection reset by peer]
podman has joined #ruby
AlxAltea has joined #ruby
fibbel has joined #ruby
fibbel has quit [Client Quit]
<adaedra> !ops
<ruboto> apeiros, fflush, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, jhass, Havenn, sevenseacat, miah, workmad3, Coraline, drbrain, rubyhacker1, slyphon, zenspider, Aria, ljarvis
<havenwood> !mute iCyb3r
icharlie has joined #ruby
<adaedra> thanks, havenwood
<sevenseacat> :)
dopamean_ has quit [Ping timeout: 250 seconds]
iCyb3r has left #ruby [#ruby]
<[k-> could havenwood have responded in just 2 seconds?
arup_r has quit [Remote host closed the connection]
<adaedra> look in the !ops line, no havenwood
<pipework> [k-: More likely that he saw the same thing that in the history
<pipework> s/history/scroll/
ItSANgo_ has joined #ruby
ItSANgo has joined #ruby
<[k-> havenwood is havenn :(
<havenwood> adaedra: I do get pinged for havenn. ;)
<jhass> yeah, apeiros still didn't deploy my fix
<adaedra> havenwood: oh ok.
<adaedra> jhass: apeiros deploy things? :p
Kallis has quit [Read error: Connection reset by peer]
<jhass> soon™
rbennacer has joined #ruby
<havenwood> pipework: spied you in #elixir :D
<[k-> patent pending
<pipework> havenwood: Please forgive me!
* adaedra patents [k-
<jhass> havenwood: btw http://paste.mrzyx.de/pwulwqauk/rf2dto/raw getting a CentOS 6 chroot was the hardest part :P
<havenwood> jhass: ahahaha
ItSANgo_ has quit [Client Quit]
<adaedra> lxc-create -t download -n centos6
skade has quit [Quit: Computer has gone to sleep.]
<adaedra> select centos6
Macaveli has quit [Read error: Connection reset by peer]
<adaedra> profit
<pipework> You lost me at centos6
arup_r has joined #ruby
paulcsmith_ has joined #ruby
Macaveli has joined #ruby
icharlie has quit [Client Quit]
northfurr has quit [Quit: northfurr]
<jhass> I ended up downloaded the qcow2 cloud image, mounting it and copy stuff out
JoshL has joined #ruby
<pipework> centos\d* really
<jhass> because the yum version in the AUR is too new obviously
arup_r has quit [Remote host closed the connection]
<jhass> adaedra: meh, lxc has too much config file
blackjid has quit [Max SendQ exceeded]
<adaedra> wut
<jhass> systemd-nspawn has none, can hardly beat that :P
blackjid has joined #ruby
<adaedra> I got a working setup with one line to edit so it uses libvirt's bridge, then I let the templates do it for me
<adaedra> Only problem I had is that centos7 template uses settings from centos6 which makes it unusable
rbennacer has quit [Ping timeout: 246 seconds]
ferhaty has quit []
rbennacer has joined #ruby
gard has joined #ruby
davedev24 has joined #ruby
lannonbr has joined #ruby
jtdoncas has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
Feyn has quit [Quit: Leaving]
choke has joined #ruby
rideh has quit [Quit: zap]
ckinniburgh has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
hotpancakes has quit [Remote host closed the connection]
AlxAltea has quit [Ping timeout: 255 seconds]
moss has joined #ruby
roolo has joined #ruby
shmilan has joined #ruby
xhosae has joined #ruby
jeanlinu_ has joined #ruby
benlovell has joined #ruby
chrissonar has quit [Remote host closed the connection]
jordanm has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
banister has joined #ruby
jeanlinux has quit [Ping timeout: 255 seconds]
melter has joined #ruby
aganov has quit [Remote host closed the connection]
jerius has quit [Quit: /part]
Pathfinder has quit [Quit: Pathfinder]
atmosx has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
jerius has joined #ruby
juanpaucar has quit [Remote host closed the connection]
atmosx has joined #ruby
qwertme has joined #ruby
fgo_ has joined #ruby
chuy has quit [Ping timeout: 255 seconds]
jimms has joined #ruby
marsjaninzmarsa has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
fgo_ has quit [Client Quit]
juanpaucar has joined #ruby
joonty has quit [Quit: joonty]
mistermocha has quit [Ping timeout: 252 seconds]
Illusioneer has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
mrj has joined #ruby
mrj has quit [Max SendQ exceeded]
qwertme has quit [Client Quit]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mrj has joined #ruby
mrj has quit [Changing host]
mrj has joined #ruby
mrj has quit [Max SendQ exceeded]
marsjaninzmarsa has joined #ruby
ips|malc has joined #ruby
mrj has joined #ruby
mrj has quit [Changing host]
mrj has joined #ruby
chuy has joined #ruby
gard has quit [Remote host closed the connection]
joonty has joined #ruby
platzhirsch has quit [Ping timeout: 252 seconds]
mrj has quit [Max SendQ exceeded]
iamninja has joined #ruby
platzhirsch has joined #ruby
Spami has joined #ruby
mrj has joined #ruby
mrj has quit [Changing host]
mrj has joined #ruby
R1ck has left #ruby [#ruby]
hotpancakes has joined #ruby
mrj has quit [Client Quit]
casadei has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
dopamean_ has joined #ruby
devoldmx has joined #ruby
Guest___ has joined #ruby
mrj has quit [Changing host]
mrj has joined #ruby
mrj has quit [Max SendQ exceeded]
rubie has joined #ruby
dimasg has quit [Ping timeout: 245 seconds]
devdazed has joined #ruby
gamename has joined #ruby
qwertme has joined #ruby
freerobby has quit [Quit: Leaving.]
devoldmx has quit [Ping timeout: 252 seconds]
rideh has joined #ruby
kies has joined #ruby
<shevy> ewww systemd
The_Phoenix has joined #ruby
sshuff|gone is now known as sshuff
ndrei has quit [Ping timeout: 246 seconds]
<adaedra> what, systemd
freerobby has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
kr3ssh has quit [Ping timeout: 265 seconds]
Chau has joined #ruby
freerobby has quit [Client Quit]
blue_deref has quit [Quit: bbn]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest___ has joined #ruby
mrj has quit [Changing host]
mrj has joined #ruby
dopie has joined #ruby
tvw has joined #ruby
eminencehc has joined #ruby
user1138_ has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
Ariadeno has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
jcutrell has joined #ruby
kedare has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
timonv has joined #ruby
Hounddog has quit [Remote host closed the connection]
fgo has joined #ruby
skade has joined #ruby
platzhirsch has joined #ruby
Spami has quit [Ping timeout: 246 seconds]
sevenseacat has quit [Quit: .]
hotpancakes has quit [Remote host closed the connection]
diegoviola has joined #ruby
hmsimha_ has joined #ruby
slash_nick is now known as rthbound
rthbound is now known as slash_nick
pawnbox has quit [Read error: Connection reset by peer]
kellray has joined #ruby
casadei has joined #ruby
fedexo has joined #ruby
RegulationD has joined #ruby
kellray has left #ruby [#ruby]
pawnbox has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
nscheurich has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xhosae has quit [Ping timeout: 240 seconds]
choke has joined #ruby
terlar has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
xhosae_ has joined #ruby
mary5030 has joined #ruby
nettoweb has joined #ruby
jpfuentes2 has joined #ruby
paulcsmith_ has quit [Quit: Be back later ...]
jpfuentes2 has quit [Client Quit]
solars has quit [Ping timeout: 265 seconds]
xhosae_ has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
<nofxx> ⚅ I win
paulcsmith_ has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> there;s dominoes in utf8... did you know? =D heh
devdazed has quit [Quit: Computer has gone to sleep.]
kitfox has joined #ruby
kitfox has left #ruby [#ruby]
mary5030 has joined #ruby
<shevy> there is a lot of useful stuff
<shevy> like the snowman
tkuchiki has joined #ruby
<shevy> you can build whole games with utf8
<adaedra> &roll
* `derpy rolls a dice… got 3. Total: 3
<nofxx>
* adaedra ponders putting unicode dice into the dice plugin
<nofxx> adaedra, hey, let's utf8 that bot
<adaedra> nofxx: It only works for 6-faced dice
lxsameer has quit [Quit: Leaving]
<nofxx> shevy, very true. There's also whole chess
iloverub_ has quit [Remote host closed the connection]
<adaedra> shevy: you finally accepted unicode?
<nofxx> adaedra, yup, only up to 6 I see here
chouhoul_ has joined #ruby
<nofxx> no RPG for you
<`derpy> :(
hotpancakes has joined #ruby
casadei has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 255 seconds]
<adaedra> funny nofxx, your second "I win" does not display on the logs
<nofxx> haha, ok this is the best utf8 char ever:
<nofxx> adaedra, ahh..dominoes might be more exotic.. how about the card?
<adaedra> cut the message too
<shevy> adaedra accepted? what do you mean
Pupp3tm4st3r has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
shmilan has quit [Ping timeout: 244 seconds]
malconis has quit [Ping timeout: 260 seconds]
tvw has quit []
xhosae has joined #ruby
yardenbar has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
DoubleMalt has quit [Remote host closed the connection]
r0x0rZ has quit [Remote host closed the connection]
skade has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
krz has quit [Quit: WeeChat 1.2]
cschneid_ has joined #ruby
jgt1 has joined #ruby
tvw has joined #ruby
iloverubynoob has joined #ruby
r0x0rZ has joined #ruby
flegercovateam has joined #ruby
tkuchiki has quit [Remote host closed the connection]
bluOxigen has joined #ruby
erts has joined #ruby
luksaur has quit [Ping timeout: 260 seconds]
jcutrell has quit [Quit: jcutrell]
ndrei has joined #ruby
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
paulcsmith_ has quit [Quit: Be back later ...]
jgt1 has quit [Ping timeout: 250 seconds]
jtdoncas has joined #ruby
erts has quit [Client Quit]
paulcsmith_ has joined #ruby
michaeldeol has joined #ruby
jeadr has quit [Remote host closed the connection]
tkuchiki has joined #ruby
foureight84_____ has joined #ruby
dgutierrez1287 has joined #ruby
socialjackie has quit [Changing host]
socialjackie has joined #ruby
jeadr has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
ndrei has quit [Remote host closed the connection]
ndrei has joined #ruby
mistermocha has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
<r0x0rZ> how can I access first numeral of any Fixnum number? let's say I have 25 and I want to know what the first digit is.
haxrbyte has joined #ruby
ta has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
<[k-> 25.to_s[0].to_i
<r0x0rZ> [k-: was hoping there's a Fixnum method for that but this will work too
terlar has joined #ruby
luksaur has joined #ruby
<r0x0rZ> [k-: is there something like 25.length?
tkuchiki has quit [Remote host closed the connection]
<[k-> or, a = 25; while a > 10; a /= 10.0; end; a.floor
rideh has quit [Quit: zap]
hoov has joined #ruby
clarkenciel has joined #ruby
<[k-> r0x0rZ: no such thing unfortunately
_blizzy_ has joined #ruby
<[k-> \o/
rbennacer has quit [Read error: Connection reset by peer]
dimasg has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
jgt1 has joined #ruby
<[k-> clever people
ndrei has joined #ruby
xhosae_ has joined #ruby
tkuchiki has joined #ruby
DoubleMalt has joined #ruby
skade has quit [Ping timeout: 264 seconds]
melter_ has joined #ruby
melter_ has quit [Read error: Connection reset by peer]
qwertme_ has joined #ruby
melter has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
melter has joined #ruby
qwertme has quit [Remote host closed the connection]
techsethi has joined #ruby
hobodave has joined #ruby
dimasg has quit [Ping timeout: 264 seconds]
luksaur has quit [Ping timeout: 246 seconds]
xhosae has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
qwertme_ has quit [Client Quit]
hotpancakes has quit [Remote host closed the connection]
hobodave has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
hobodave has joined #ruby
xhosae_ has quit [Ping timeout: 245 seconds]
DoubleMalt has quit [Ping timeout: 240 seconds]
xhosae has joined #ruby
jiada has joined #ruby
jimms has quit [Remote host closed the connection]
rehat has joined #ruby
clarkenciel has quit [Remote host closed the connection]
mwlang has joined #ruby
EagleDelta has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
Cache_Money has joined #ruby
rubie has quit [Remote host closed the connection]
r0x0rZ has quit [Remote host closed the connection]
<[k-> did he quit before he saw the links? D:
hmsimha_ has quit [Ping timeout: 265 seconds]
Motoservo has joined #ruby
EagleDelta is now known as dhollinger
<[k-> i wonder how __LINE__ is used by people
skade has joined #ruby
hotpancakes has joined #ruby
<cashnguns> does anyone have experience converting application/msword; charset=binary files to ASCII in ruby ?
erts has joined #ruby
maletor has joined #ruby
rubie has joined #ruby
AlexRussia_ has joined #ruby
Neon has quit [Quit: Leaving]
riotjones has quit [Remote host closed the connection]
blue_deref has joined #ruby
benlieb has joined #ruby
dumdedum has quit [Ping timeout: 250 seconds]
gamename has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
luckyruby has joined #ruby
r0x0rZ has joined #ruby
<adaedra> you need a library that can read msword documents
XF has quit [Quit: uff homework!]
benlieb has quit [Ping timeout: 245 seconds]
dfockler has joined #ruby
XF has joined #ruby
renderful has joined #ruby
amystephen has quit [Quit: amystephen]
fgo has quit [Ping timeout: 250 seconds]
XF has quit [Changing host]
XF has joined #ruby
r0x0rZ has quit [Remote host closed the connection]
<cashnguns> does that mean I can't do it on linux?
Violentr has joined #ruby
<adaedra> no
dman777_alter has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<cashnguns> okay, so I saved it as an rtf seems fine
chouhoulis has joined #ruby
skade has quit [Ping timeout: 245 seconds]
dimasg has joined #ruby
momomomomo has joined #ruby
Torrieri has quit [Quit: Lingo: www.lingoirc.com]
EllisTAA has joined #ruby
<dman777_alter> is there a way to detect between json object and json string?
<EllisTAA> what’s the name of the off topic ruby channel?
<shevy> #python
xhosae has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<adaedra> ?ot EllisTAA
<ruboto> EllisTAA, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
towski_ has joined #ruby
<shevy> dman777_alter isn't a json string just a '' string in ruby?
Torrieri has joined #ruby
amclain has joined #ruby
centrx has joined #ruby
<[k-> if JSON.parse gives you some sort of reasonable looking thing, it is a JSON String
<adaedra> dman777_alter: a JSON string is a string, of class String. Decoded, it can be anything.
roolo has joined #ruby
<[k-> huehuehue
<dman777_alter> ya
<dman777_alter> thanks
fedexo has quit [Ping timeout: 244 seconds]
r0x0rZ has joined #ruby
Soda has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 265 seconds]
djhal3 has joined #ruby
sdothum has joined #ruby
fibbel has joined #ruby
ruby-lang373 has joined #ruby
chinmay_dd has joined #ruby
flegercovateam has left #ruby [#ruby]
roolo has quit [Ping timeout: 245 seconds]
hoov has quit [Quit: Leaving]
malconis has quit [Ping timeout: 260 seconds]
chinmay_dd has quit [Read error: Connection reset by peer]
joonty has quit [Quit: joonty]
hanmac has quit [Ping timeout: 244 seconds]
Iskarlar has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 244 seconds]
saddad has joined #ruby
RobertBirnie has joined #ruby
northfurr has quit [Quit: northfurr]
araujo has quit [Quit: Leaving]
timonv has quit [Ping timeout: 250 seconds]
krisquigley has quit [Remote host closed the connection]
nux443 has joined #ruby
chinmay_dd has joined #ruby
momomomomo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ruby-lang373 has quit [Ping timeout: 246 seconds]
jpfuentes2 has joined #ruby
<dman777_alter> man... I have body = { 'template' => attributes }.to_json but when I puts body it's a string {"template":"{\"content\": \"aaa\", \"type\": \"adx_running\", \"name\": \"n2\", \"user\": \"Admin Test\"}"}
jeadr has quit [Remote host closed the connection]
<[k-> of course its a string
maletor has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
<shevy> it must be a string
<shevy> { 'template' => :attributes }.to_json.class # => String
jeadr has joined #ruby
<[k-> json is text
<[k-> so it is a string
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
<shevy> dman777_alter you can use JSON# related activities such as JSON.parse() ruby-doc.org/stdlib-2.0.0/libdoc/json/rdoc/JSON.html
malconis has joined #ruby
<shevy> btw why did they not use yaml?
<dman777_alter> the recieving server of the json is complaining (undefined method `each_pair' for #<String:0x007f54d246cb10>) so I'm not sure why it's not converting it to a ruby hash
<[k-> you dont transmit yml over the internets
<[k-> Hash#to_json -> String
<[k-> JSON.parse -> Hash
<[k-> this is how it works
skade has joined #ruby
<shevy> we even transmit xml over the internets! and cats
<[k-> JSON is natively represented as a Hash in Ruby
<dman777_alter> it will convert {"template":{"name":"foo,"content":"apple","user":"Admin Test"}} to a hash with no issues. but not {"template":"{\"content\": \"aaa\".....
<[k-> you have to unescape the string first
zekriad has joined #ruby
<dman777_alter> ah...ok.
<dman777_alter> both were using body = { 'template' => attributes }.to_json
bricker has joined #ruby
Oka has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<[k-> note: "{\"content is a string, not a hash
sinkensabe has joined #ruby
<shevy> :)
lannonbr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<dman777_alter> but {"template":{"name":"foo,"content":"apple","user":"Admin Test"}} is a string also, correct? since it also came from body = { 'template' => attributes }.to_json
anisha has quit [Quit: Leaving]
<[k-> >> {"template":{"name":"foo,"content":"apple","user":"Admin Test"}}
[Butch] has joined #ruby
<ruboto> [k- # => /tmp/execpad-37c00334b5a9/source-37c00334b5a9:2: syntax error, unexpected tIDENTIFIER, expecting '}' ...check link for more (https://eval.in/419072)
haylon has joined #ruby
hanmac has joined #ruby
<haylon> Has anyone here successfully setup Razor server without using Puppet? I'm not getting much of a response in the #puppet-razor channel
<[k-> should have parsed correctly :/
mleung has joined #ruby
matp has quit [Excess Flood]
<[k-> oh i see the mistake
skade has quit [Ping timeout: 250 seconds]
<[k-> >> {"template":{"name":"foo","content":"apple","user":"Admin Test"}}
<ruboto> [k- # => {:template=>{:name=>"foo", :content=>"apple", :user=>"Admin Test"}} (https://eval.in/419073)
<[k-> this, is a hash
<[k-> >> require "json"; {"template":{"name":"foo","content":"apple","user":"Admin Test"}}.to_json
<ruboto> [k- # => "{\"template\":{\"name\":\"foo\",\"content\":\"apple\",\"user\":\"Admin Test\"}}" (https://eval.in/419074)
<[k-> this is a string
<[k-> If you pass this to json.parse, it will work
skade has joined #ruby
Musashi007 has joined #ruby
kellray_ has joined #ruby
jimms has joined #ruby
<dman777_alter> [k-: thanks! I see now
mistermocha has joined #ruby
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
chinmay_dd_ has joined #ruby
chinmay_dd has quit [Ping timeout: 252 seconds]
rideh has joined #ruby
devoldmx has joined #ruby
UtkarshRay has quit [Quit: Leaving]
<shevy> [k- is the man
That1Guy has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
<[k-> :D
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
hinbody has quit [Read error: Connection reset by peer]
hinbody has joined #ruby
ivanskie has joined #ruby
That1Guy has quit [Remote host closed the connection]
<ivanskie> hi all
chinmay_dd_ is now known as chinmay_dd
iloverubynoob has quit [Remote host closed the connection]
<[k-> Hi
dojobo has joined #ruby
<ivanskie> anyone know if this is any standard, or an easy way to parse this time stamp? "13:46:35.143 PDT Tue May 12 2015"
mikecmpbll has quit [Ping timeout: 250 seconds]
nscheurich has quit [Quit: Lost terminal]
techsethi has quit [Quit: techsethi]
bronson has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
jtdoncas has quit [Ping timeout: 240 seconds]
<shevy> hmm odd format
<ivanskie> yah.
<ivanskie> its from a cisco cdr file
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> Time.parse "13:46:35.143 PDT Tue May 12 2015" # => 2015-05-12 13:46:35 -0700
<ivanskie> i've tried time and datetime..
<shevy> is that right?
<ivanskie> ya if only that worked..
<shevy> hehe
<shevy> what does not work
<ivanskie> Time.parse "13:46:35.143 PDT Tue May 12 2015"
<ivanskie> this doesnt
<jhass> >> require "time"; Time.strptime("13:46:35.143 PDT Tue May 12 2015", "%H:%M:%S.%N %Z %a %B %d %Y")
<ruboto> jhass # => 2015-05-12 13:46:35 -0700 (https://eval.in/419076)
devdazed has joined #ruby
<shevy> ivanskie weird, my above line was copy pasted directly from irb
<ivanskie> oh
<ivanskie> my bad
<ivanskie> forgot the format
paulcsmith_ has quit [Quit: Be back later ...]
bronson has quit [Ping timeout: 245 seconds]
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby
<ivanskie> of course would help to change chruby to correct 2.2.2 also
momomomomo has quit [Ping timeout: 250 seconds]
Chau has quit [Quit: Leaving]
episage has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
techsethi has joined #ruby
jacaballero has joined #ruby
tvw has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
ahmetkapikiran has joined #ruby
<shevy> you can even upgrade to 2.2.3 now
<shevy> ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] \o/
<ivanskie> ah cool
jtdoncas has joined #ruby
darkf has quit [Quit: Leaving]
<havenwood> ivanskie: ruby-install ruby 2.2.3 --sha256 c745cb98b29127d7f19f1bf9e0a63c384736f4d303b83c4f4bda3c2ee3c5e41f
<ivanskie> interesting, now some of the cells are nil, i tried doing the Time.strp.... || " ".. but realized that wont negate the fact that Time still tries to parse a nil column..
techsethi has quit [Client Quit]
c0m0 has quit [Ping timeout: 246 seconds]
<ivanskie> i'm trying to parse a csv file full of cdr, call detail record..
<ivanskie> i can't really pass an empty string to Time either can I/
mary5030 has quit [Remote host closed the connection]
<ivanskie> documentation where are thou
<[k-> false && (not parsed); false || (parsed)
riotjones has joined #ruby
<jhass> meh
fgo has joined #ruby
mary5030 has joined #ruby
<jhass> time = Time.strptime(...) unless time.empty?
ledestin has joined #ruby
Timba-as has quit [Quit: Be back later ...]
<ivanskie> oh
axsuul has joined #ruby
<ivanskie> nein
eminencehc has quit [Remote host closed the connection]
<ivanskie> oh wait
<ivanskie> i see what u
hs366 has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 255 seconds]
pietr0 has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
terlar has quit [Ping timeout: 260 seconds]
<ivanskie> still nein
<shevy> hehe
<ivanskie> wait
eminencehc has joined #ruby
<shevy> why do you mix english and german
<[k-> true && (parsed); true || (not parsed)
<shevy> this will totally verwirren jhass
<ivanskie> bah
<jhass> meh
<ivanskie> i don't actually speak german lol
<jhass> don't && / || for control flow
<ivanskie> just like to say nein sometimes
<adaedra> nein, nein, nein, nein, NEIN!
Violentr has quit [Ping timeout: 246 seconds]
<[k-> if unless else and or
rbennacer has joined #ruby
<jhass> and don't and/or at all :P
<[k-> adaedra is Hitlerv2
riotjones has quit [Ping timeout: 252 seconds]
<adaedra> not funny
hotpancakes has quit [Remote host closed the connection]
<jhass> yeah, crossed the line there
<[k-> sorry
<shevy> can we kick him!
<jhass> no you can't
XF has quit [Ping timeout: 244 seconds]
skade has quit [Read error: No route to host]
bootstrappm has joined #ruby
<bootstrappm> morning
foureight84_____ has quit [Ping timeout: 245 seconds]
<shevy> hi bootstrapper
Guest50 has joined #ruby
sdwrage has joined #ruby
Guest50 is now known as dmitch
tkuchiki has quit [Remote host closed the connection]
EllisTAA has joined #ruby
<[k-> you misspelled their name
<bootstrappm> s'ok
rideh has quit [Quit: zap]
techsethi has joined #ruby
<ivanskie> thats code without all the attempts at avoiding nil
crazydiamond has quit [Ping timeout: 245 seconds]
sarkyniin has quit [Remote host closed the connection]
andywojo has joined #ruby
sarkyniin has joined #ruby
<jhass> what do you want to do if it's nil?
<jhass> skip?
tvw has joined #ruby
youch has joined #ruby
choke has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<ivanskie> yeah..
<jhass> next if row[9].nil? || row[10].nil?
<jhass> and get rid of that silly false ||
<lannonbr> Maybe try using the null object pattern instead of checking for nil?
<ivanskie> oh yeah meant to remove that
<ivanskie> ooh perrdy
<ivanskie> thanks jhass
Torrieri has quit [Quit: Be back later ...]
blackjid has quit [Max SendQ exceeded]
josh4 has joined #ruby
blackjid has joined #ruby
rakm has joined #ruby
spider-mario has joined #ruby
dorei has joined #ruby
umgrosscol has joined #ruby
unver has quit [Ping timeout: 260 seconds]
<dorei> hello
<dorei> >> "ab\xA0cd\xc2\xa0ef".gsub(/\xC2?\xA0/,' ')
<ruboto> dorei # => /tmp/execpad-9b474f7738ca/source-9b474f7738ca:2: too short escaped multibyte character: /\xC2?\xA0/ (https://eval.in/419089)
shadoi has joined #ruby
<dorei> any idea why this fails with mri >= 2.0 but doesnt fail with 1.9.3 ? for 1.9.3: https://eval.in/419087
ndrei has joined #ruby
<shevy> works fine here
mandarinkin has quit [Ping timeout: 265 seconds]
<shevy> ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
<dorei> shevy: which mri version?
<dorei> hmm
user1138 has joined #ruby
<shevy> >> RUBY_VERSION
<ruboto> shevy # => "2.2.0" (https://eval.in/419092)
kies has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 256 seconds]
<dorei> it fails at my ruby 2.1.1p76 and also fails at eval.in 2.2
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
AlphaAtom has joined #ruby
<jhass> >> "ab\xA0cd\xc2\xa0ef".b.gsub(/\xC2?\xA0/n,' ')
<ruboto> jhass # => "ab cd ef" (https://eval.in/419095)
devdazed has quit [Quit: Computer has gone to sleep.]
<dorei> #b ?
<jhass> shortcut for .force_encoding('ASCII-8bit') basically
user1138_ has quit [Ping timeout: 255 seconds]
dopie has quit [Quit: This computer has gone to sleep]
<dorei> thanx :)
chinmay_dd_ has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
chinmay_dd_ is now known as chinmay_dd
sdwrage has joined #ruby
unver has joined #ruby
stan has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
hotpancakes has joined #ruby
hinbody has quit [Read error: Connection reset by peer]
eminencehc has quit [Remote host closed the connection]
rideh has joined #ruby
ips|malc has joined #ruby
radgeRayden_ has joined #ruby
millerti has joined #ruby
jhack has joined #ruby
hinbody has joined #ruby
Cust0sLim3n has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
radgeRayden has quit [Ping timeout: 255 seconds]
eminencehc has joined #ruby
ht__ has joined #ruby
lodgenbd has joined #ruby
bricker has quit [Ping timeout: 245 seconds]
Cust0sLim3n has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
krisquigley has joined #ruby
<Norrin> When people say that ruby is dynamically typed.... they just mean that there's no type safety until runtime right?
<Norrin> but a scripting language only ever checks anything at runtime.... so how can ruby ever be statically typed?
<Norrin> or any scripting language for that matter
<shevy> cool
<shevy> didn't know about .b()
arup_r has joined #ruby
jonee has joined #ruby
<shevy> Norrin don't think that the term types is a good one. what exactly is a "type" in ruby?
jgt1 has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
zeroDivisible has quit [Ping timeout: 250 seconds]
<Norrin> in ruby, pretty synonomous with 'Class'
jhack has quit [Remote host closed the connection]
<Norrin> i don't wan to be pedantic though. a type in a fully OO language is a collection of methods and properties
<Norrin> want*
jackjackdripper has joined #ruby
<Norrin> so without being pedantic, how can any scripting language be considered anything other than dynamically typed?
northfurr has quit [Client Quit]
puppeh_ has joined #ruby
jeanlinu_ has quit [Remote host closed the connection]
<Norrin> meh never mind. i'm thinking of dynamic linking
krisquigley has quit [Ping timeout: 265 seconds]
juanpaucar has quit [Remote host closed the connection]
<puppeh_> `URI('file:///foo/bar').to_s # => "file:/foo/bar"` <-- isn't this wrong? shouldn't it print "file:///foo/bar"?
gamename has joined #ruby
yfeldblum has joined #ruby
jeanlinux has joined #ruby
nuttermb has quit [Ping timeout: 246 seconds]
gamename has quit [Remote host closed the connection]
<Norrin> wow roubyconf is cheap
<Norrin> rubyconf*
axsuul has quit [Ping timeout: 246 seconds]
<shevy> well the compiled languages require the extra information
skade has joined #ruby
<shevy> like how much to allocate
radgeRayden_ has quit [Ping timeout: 265 seconds]
gamename has joined #ruby
gamename has quit [Remote host closed the connection]
blueOxigen has joined #ruby
jackjackdripper has quit [Client Quit]
gamename has joined #ruby
cornerma1 has joined #ruby
radgeRayden has joined #ruby
benlieb has quit [Quit: benlieb]
jackjackdripper has joined #ruby
Pupp3tm4st3r has joined #ruby
bluOxigen has quit [Ping timeout: 255 seconds]
krisquigley has joined #ruby
<tubbo> Norrin: it's all about syntax
DoubleMalt has quit [Remote host closed the connection]
<tubbo> nothing much to do with how it's actually implemented
<Norrin> i see
<tubbo> strongly-typed languages aren't faster because the compiler/interpreter/et. al. "knows" what type it is beforehand and can allocate enough RAM for that
mistermocha has joined #ruby
<tubbo> the way code is parsed, the compiler would already know that information by inferring it through how the var is used throughout the codebase
<Norrin> funny to me, one article seemed to think ruby becoming more statically typed would improve code reuseability
The_Phoenix has quit [Read error: Connection reset by peer]
<tubbo> the argument for strong typing is readability and compile-time error catching
freerobby has joined #ruby
<tubbo> you tried to pass nil into a String attribute? error.
<tubbo> you tried to pass a String into an Integer attr? error.
<tubbo> this, for better or worse, does not happen with RUby
<tubbo> Ruby*
cornerman has quit [Ping timeout: 256 seconds]
jimms has quit [Remote host closed the connection]
cornerma1 is now known as cornerman
banister has joined #ruby
nscheurich has joined #ruby
<nscheurich> exit
nscheurich has quit [Client Quit]
djhal3 has quit []
<Norrin> actually i guess it could. you can require types on parameters and ensure more safety, causing errors that would be caught earlier on in development
<Norrin> i've always found ruby very hard to read. not sure its due to types though
marr has joined #ruby
<puppeh_> isn't this a bug ^ ?
krisquigley has quit [Ping timeout: 252 seconds]
<Norrin> the fact that parenthesizes can be excluded from parameter lists, blocks, and in-line hashes i think are the main reasons
casadei has joined #ruby
<Norrin> and symbols and hashes look too similar when hashes have no parens
mistermocha has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby
chouhoul_ has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
mikecmpbll has joined #ruby
RegulationD has quit [Remote host closed the connection]
choke has joined #ruby
casadei has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
jeadr has quit [Remote host closed the connection]
dabradley has quit [Ping timeout: 244 seconds]
northfurr has joined #ruby
amystephen has joined #ruby
Jackneill has joined #ruby
chouhoulis has quit [Ping timeout: 265 seconds]
jhack has joined #ruby
jeadr has joined #ruby
skade has quit [Ping timeout: 246 seconds]
<atmosx> hello people!
amystephen has quit [Ping timeout: 255 seconds]
<atmosx> does this look okay? https://gist.github.com/atmosx/54a7e4904d4b36aea3bb I wanna recursively enter a dir and print the dir.
<atmosx> hm, come to think of it, better save the output to a file.
techsethi has quit [Quit: techsethi]
shadoi has quit [Quit: Leaving.]
dopie has joined #ruby
skade has joined #ruby
casadei has joined #ruby
hotpancakes has quit [Remote host closed the connection]
chohe has joined #ruby
Novice201y has joined #ruby
<chohe> in general are there any major differences between different -p's i.e p647 or are you generally safe to upgrade to the latest patch level?
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
Soda has joined #ruby
<Novice201y> Hello. I did "rbenv install 2.2.2" (from https://gorails.com/setup/ubuntu/15.04 ), but it just printed "Installing ruby-2.2.2" and for few minutes nothing more. How to solve this?
__enrique has joined #ruby
erts has quit [Quit: erts]
hinbody_ has joined #ruby
ishahnaz has quit []
<atmosx> Novice201y: you buy a new computer? :-P it's probably compiling
<atmosx> please check the processes running on your system (e.g. ps auwx)
sshuff is now known as sshuff|gone
EllisTAA has quit [Quit: EllisTAA]
hinbody has quit [Ping timeout: 244 seconds]
<havenwood> chohe: Ruby has been semantically versioned starting with 2.1. Read more here: https://www.ruby-lang.org/en/news/2013/12/21/ruby-version-policy-changes-with-2-1-0/
<shevy> Norrin you can use parens as you wish, so if you find them to be better, use them :)
roolo has quit [Ping timeout: 245 seconds]
_enrique has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
alankis has joined #ruby
ChoiKyuSang has joined #ruby
puppeh_ has quit [Remote host closed the connection]
_djbkd has quit [Remote host closed the connection]
tonios57_ has joined #ruby
_Cronon_ has joined #ruby
sarkyniin has quit [Remote host closed the connection]
<havenwood> Novice201y: Ruby 2.2.3 has just recently been released. That would be the one to start with if you're compiling today.
sarkyniin has joined #ruby
<ivanskie> was looking on how to get csv into table.. found this on the webs. is the .map(&:to_hash) depricated? http://qiita.com/labocho/items/fdfcc3ba26857b45d066
ahmetkapikiran has quit [Quit: ahmetkapikiran]
SenpaiSilver_ has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SenpaiSilver has quit [Read error: Connection reset by peer]
valeri_ufo has quit [Read error: Connection reset by peer]
Tempesta has quit [Read error: Connection reset by peer]
nickjj has quit [Read error: Connection reset by peer]
ChoiKyuSang is now known as Tempesta
nickjj_ has joined #ruby
valeri_ufo has joined #ruby
baweaver has joined #ruby
modern has quit [Ping timeout: 246 seconds]
<Novice201y> atmosx: top says that make takes about 0,3 of CPU
<shevy> ivanskie this runs .to_hash
<shevy> ivanskie so it depends on whether the elements in your collection do respond to .to_hash
modern has joined #ruby
linduxed has quit [Ping timeout: 246 seconds]
<ivanskie> k gonna try something different.. I don't have headers in my csv.. so that code won't work, since nothing to hash
<Norrin> shevy, that doesn't change what others do
<Norrin> that's why what the lang allows is so critical
sarkyniin has quit [Remote host closed the connection]
dstarh has quit [Ping timeout: 246 seconds]
tonios57 has quit [Ping timeout: 246 seconds]
armyriad has quit [Ping timeout: 246 seconds]
Guest42660 has quit [Ping timeout: 246 seconds]
sarkyniin has joined #ruby
<shevy> Norrin in other languages people write code that is hard to read too
sarkyniin has quit [Remote host closed the connection]
<Norrin> same thing with the auto agruments like $0 and etc. $_ and stuff. there's more isoteric ones... i actually know what those two mean. but perl and ruby have gone that route to dislike of many
<chohe> havenwood: that is much appreciated but doesn't really answer my question of whether or not I should be concerned when upgrading between patch versions :)
<shevy> and when you restrict freedom, you also enforce the restriction onto other people
<Norrin> even swift has some stuff like that though
armyriad has joined #ruby
<Norrin> auto agruments that give no hint as to what they mean
<alankis> Hello everyone
<shevy> the $ variables were a lot inherited from perl
sarkyniin has joined #ruby
<shevy> matz said that he didn't overly like them
<Norrin> shevy, the rules of a language can greatly enhance readability
<havenwood> chohe: For Ruby 2.0?
kirun has joined #ruby
<chohe> yup we were using RVM which was installing 643 i believe
<Norrin> convention plays a major part also
<shevy> Norrin you still find lots of alternatives in python too
<chohe> and i just upgraded to 647 because of an ASCII error issue when using grunt
<havenwood> chohe: Yeah, all the 2.0s are compatible.
<havenwood> chohe: Then semantic versioning after that.
<chohe> kk
<Norrin> shevy, what 'alternatives'?
linduxed has joined #ruby
<shevy> 'One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.?'
<havenwood> chohe: It's in maintenance mode, so no bug fixes, but the 2.0 to use is 2.0.0-p647.
atmosx has quit [Ping timeout: 256 seconds]
jerius_ has joined #ruby
<alankis> I have some strange issue when trying to install pgsql gem, (migrated app from win dev env to ubuntu)
<Norrin> shevy, lol... you mean a modified version of python?
<Norrin> yeah a cool core tenant of python is 'there's only 1 way to do things'.
<shevy> Norrin nah, they defaulted to python, the philosophy is "there should be one way and only one way" and they couldn't really comply
<alankis> gist of gem_make.out is here https://gist.github.com/alankis/66fe0b3d80d0373dc01e
<havenwood> chohe: You may find it *just works* in 2.1.7 and 2.2.3. Depends.
<Novice201y> atmosx: but cc1 takes about 60% of CPU. Thanks
baweaver has quit [Remote host closed the connection]
<shevy> it's really a difference in philosophy
<Norrin> shevy, i'm not sure what you're trying to say
<havenwood> Norrin: How many CPUs?
rubie has quit [Remote host closed the connection]
doctorly has joined #ruby
<shevy> Norrin your argument was that code will be more readable when there are less possibilities
<havenwood> Norrin: make -j 8
jeadr has quit [Remote host closed the connection]
doctorly has quit [Quit: leaving]
jeanlinux has quit [Ping timeout: 260 seconds]
<shevy> I found that other people write a lot of awful code in every language
r0x0rZ has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 245 seconds]
malconis_ has joined #ruby
jerius_ has quit [Client Quit]
<havenwood> -j [jobs], --jobs[=jobs] Specifies the number of jobs (commands) to run simultaneously.
<Norrin> i didn't bring up possibilities until just recently. i do like the python opinion of possibilities.
<Norrin> you brought up python and i can't understand what your message is there
jeadr has joined #ruby
<shevy> it was not me who said that mandatory parens improve readability
<havenwood> shevy: ruby-install -j8 --system ruby 2.2.3
<shevy> havenwood I have 2.2.3!
<Norrin> but anyway, yes you can write crap code in any language. but lang syntax and convention play a huge part in how easy it is to read the language on average
fullofcaffeine has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
<havenwood> shevy: I'm just slowly trying to get you accustomed to ruby-install until you accidentally use it without realizing.
rubie has joined #ruby
<shevy> but I don't need it
<havenwood> shevy: You'd just add the -j8 to your make step. :P
<shevy> I can have versioned appdirs for all programs thanks to gobolinux
<anon_> whats the difference between running a ruby script like this: "bundle exec ruby myRubyScript.rb" and "ruby myRubyScript.rb" ?
youch has quit [Ping timeout: 255 seconds]
<shevy> what is the -j8, is that a multiprocessor thingy?
<Norrin> my parens statement wasnt about possibilities. simply put, the parens are easy to run. its got nothing to do with whether there's a choice or not
<Norrin> easy to read*
<havenwood> anon_: Bundler is a gem that lets you run your_ruby_script.rb in the "context of your Bundle."
<shevy> easy to run :)
wprice has joined #ruby
malconis has quit [Ping timeout: 265 seconds]
platzhirsch has quit [Ping timeout: 246 seconds]
<shevy> Norrin I for instance use parens in def: statements, but I don't want them to be mandatory all the time for non-def statements
<havenwood> anon_: If resolves dependencies for gems listed in your Gemfile file and creates a Gemfile.lock file with resolved versions locked in.
<shevy> cat.jump_to :tree
<shevy> cat.jump_to(:tree)
<shevy> thanks I prefer the non-paren variant there
<havenwood> anon_: By default it will install gems to your $GEM_HOME but you can set a path that it remembers to "vendor" your gems separately than your regular gems.
<anon_> havenwood, so if i have requireers in my file it will gem install them
<havenwood> anon_: When you prefix `bundle exec` you're using the gem versions from the Bundle .
<havenwood> (Gemfile.lock)
<Norrin> i really prefer it with parens, because without them, if :tree was some variable instead, you can't tell that its an argument
<havenwood> anon_: Read a bit about Gemfiles: http://bundler.io/gemfile.html
<anon_> havenwood, oh so bundle already has a bundle of gems
<shevy> I can easily tell that it is an argument
kith has quit [Ping timeout: 246 seconds]
<shevy> and :tree is a symbol always
<Norrin> i know. that's why i said if it was a variable identifier instead
<Norrin> it can get confusing
<havenwood> anon_: Modern RubyGems can resolve dependencies from the Gemfile and create the Gemfile.lock so you practically don't need Bundler except for Rails, which hardcodes to it.
<shevy> I see that you know symbols :)
<havenwood> anon_: That said, Bundler is very widely used.
jimms has joined #ruby
<havenwood> anon_: It's good to learn how it works.
skade has quit [Ping timeout: 260 seconds]
paulcsmith has joined #ruby
juanpaucar has joined #ruby
luckyruby has quit [Quit: Leaving...]
youch has joined #ruby
rdark has quit [Quit: leaving]
<havenwood> anon_: Try installing Bundler (`gem install bundler`), creating a Gemfile (that ^ link), creating a Gemfile.lock (`bundle install`) and then running a Ruby command in the context of the Bundle (`bundle exec <command>`).
einarj has joined #ruby
_djbkd has joined #ruby
JohnBat26 has joined #ruby
ramfjord has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
Timba-as has joined #ruby
r0x0rZ has joined #ruby
youch has quit [Ping timeout: 265 seconds]
benlieb has joined #ruby
skade has joined #ruby
neilnorthrop has joined #ruby
amystephen has joined #ruby
dgutierrez1287 has joined #ruby
banister has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 246 seconds]
jgt1 has joined #ruby
crazydiamond has joined #ruby
platzhirsch has joined #ruby
jonee has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0/20150807094952]]
ndrei has quit [Ping timeout: 264 seconds]
youngbaks has joined #ruby
ndrei has joined #ruby
Guest50 has joined #ruby
rikkipitt has joined #ruby
suchness has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
hotpancakes has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
jiada has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
akash89 has joined #ruby
anon__ has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
Guest50 has joined #ruby
puppeh_ has joined #ruby
<puppeh_> is this expected behavior or a bug in URI? https://bugs.ruby-lang.org/issues/9912
einarj has quit [Ping timeout: 272 seconds]
radgeRayden has quit [Ping timeout: 265 seconds]
DoubleMalt has joined #ruby
einarj has joined #ruby
<ivanskie> can someone lend me a second set of eyes plz? i'm trying to convert a block to a one liner for irb play.. but im doing something wrong.. https://gist.github.com/i5okie/92e813eb10ccb40bd3fa
_djbkd has quit [Remote host closed the connection]
devoldmx has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
anon_ has quit [Ping timeout: 272 seconds]
<jhass> irb accepts multiline input
<jhass> but you have an extra do there
<jhass> it's foo do end or foo { }
ndrei has quit [Ping timeout: 250 seconds]
<ivanskie> o
wheresmyjetpack has joined #ruby
<ivanskie> hmm
<ivanskie> i tried just pasting the whole block into irb but it refused to cooperate
<shevy> you should make a newline after your starting { eventually
<shevy> you have 207 characters in one line there
RegulationD has joined #ruby
JakFrist has joined #ruby
<ivanskie> and thats bad?
ndrei has joined #ruby
yfeldblum has joined #ruby
<ivanskie> i thought we add ; instead of new line when inside {}
<shevy> hehe
<shevy> it's making it harder to read
mistermocha has joined #ruby
tenderlove has quit [Remote host closed the connection]
rbennacer has quit [Read error: Connection reset by peer]
matp has joined #ruby
<shevy> you can use newlines \o/
jeadr has quit [Remote host closed the connection]
thermatix has joined #ruby
<dman777_alter> why is params.merge({ 'user' => current_user.try(:display_name) }) adding {"format"=>:json?
bronson has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> jhass is young, he has sharp eyes so he noticed it
dstarh has joined #ruby
<ivanskie> i really need to buy "The ruby way" book..
devoldmx has quit [Ping timeout: 240 seconds]
jgt1 has joined #ruby
silkfox has joined #ruby
jenrzzz has joined #ruby
<shevy> dman777_alter what does params contain prior to that call?
platzhirsch has quit [Quit: Leaving.]
<shevy> or respectively what is .try doing there
<shevy> but whatever it is, either of these two must add that key
platzhirsch has joined #ruby
skade has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
chinmay_dd_ has joined #ruby
jeadr has joined #ruby
benlovell has quit [Quit: Lost terminal]
nuttermb has joined #ruby
chinmay_dd has quit [Ping timeout: 255 seconds]
<dman777_alter> shevy: {"content"=>"aaa", "type"=>"adx_running", "name"=>"n2"}
<dman777_alter> shevy: it's just adding a user to the json
JakFrist has quit [Client Quit]
gavit has joined #ruby
<jhass> dman777_alter: how did you verify that?
<ivanskie> man... jhass genius
<gavit> anyone care to look at why my script seems to run so slow? https://gist.github.com/gavit/0a4a88e1424996f1bf9c
<dman777_alter> shevy: it's used as so.... params.merge(JSON.parse(request.body.read)) with def params_with_user(params={}) params.merge({ 'user' => current_user.try(:display_name) }) end
<ivanskie> k now to figure out why table_print doesn't like my array
<dman777_alter> jhass: with the puts statment before and after
bigbadbear has quit [Ping timeout: 260 seconds]
<shevy> gavit no idea but you can simplify that
<shevy> File.read() directly for instance
<jhass> dman777_alter: given it's called params ... is it actually an ActionController::Parameters ?
<toretore> gavit: what is the input?
<shevy> and apply the .gsub only when you really need it, the regex engine is not very light weight compared to other parts
<gavit> shevy: it's only a 72K file I'm reading
lannonbr has quit [Quit: WeeChat 1.2]
einarj has quit [Read error: Connection reset by peer]
<dman777_alter> jhass: almost...using MongoId instead
einarj_ has joined #ruby
<jhass> gavit: try to use File.foreach
nickjj_ is now known as nickjj
<toretore> and what is "slow"?
<gavit> toretore: the output of this: https://www.telesur.sr/mijn-telesur/telefoonboek/
bronson has quit [Ping timeout: 244 seconds]
<jhass> oh, mmh, nvm
<gavit> jhass: I am only placing 1 file in :p
<jhass> dman777_alter: so what's params.class ?
<gavit> toretore: after 5 mins still just a "I was passed: filename"
Novice201y has quit [Quit: Page closed]
<jhass> gavit: [\s\S]* is everything
thermatix has quit [Ping timeout: 255 seconds]
<jhass> just .
benlovell has joined #ruby
<gavit> jhass: but then I need to add /m?
mistermocha has quit [Ping timeout: 244 seconds]
<jhass> possibly
<dman777_alter> jhass: ActiveSupport::HashWithIndifferentAccess
jgt1 has quit [Ping timeout: 265 seconds]
<jhass> dman777_alter: so whats p params.to_h printing prior?
<toretore> gavit: how do i get it to output exactly what you're using?
youngbaks has quit [Quit: WeeChat 1.2]
benlieb has quit [Quit: benlieb]
<dman777_alter> jhass: {"format"=>:json, "action"=>"update", "controller"=>"api/templates", "id"=>"57d950119d000000"}
DLSteve has joined #ruby
<gavit> toretore: I entered 'chm' as input for name
rbennacer has joined #ruby
<jhass> dman777_alter: there you go
<dman777_alter> jhass: fascinating....why doesn't it print that with JSON.parse(request.body.read)?
<jhass> that's where it comes from
chinmay_dd_ is now known as chinmay_dd
<jhass> because it's in params?!
<gavit> toretore: and then downloaded the file and ran the myfile.rb mydownloadedfile.html
skade has joined #ruby
<jhass> dman777_alter: ever ran rake routes?
NeverDie has joined #ruby
nertzy has joined #ruby
freerobby has quit [Quit: Leaving.]
<toretore> gavit: you should probably use something like nokogiri for that
freerobby has joined #ruby
<dman777_alter> jhass: ah! I see... I was thinking params didn't exist before. Thanks!
<toretore> and possibly some web automation thingamajiggy because it uses retarded js navigation
DCameronMauch has joined #ruby
<gavit> toretore: I'm don't even care about the navigation :P
<gavit> I'm just trying to read the first 20 'entries'
DLSteve has quit [Client Quit]
northfurr has quit [Quit: northfurr]
camm has joined #ruby
<diegoviola> I want to make a vending machine in ruby
haylon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tmtwd has joined #ruby
<pipework> diegoviola: Have it vend advice for people who want to make vending machines in ruby.
<pipework> It'd be fantastically circular. Points for self-deprecating vending machine advice.
bruno- has quit [Read error: Connection reset by peer]
failshell has joined #ruby
rbennacer has quit [Remote host closed the connection]
einarj_ has quit [Ping timeout: 246 seconds]
r0x0rZ has quit [Remote host closed the connection]
ne1l has joined #ruby
<camm> Hello everyone, I'm just learning about ruby and rails. I have a question: when I use $bundle I install the gems that are described in my Gemfile, but what is the difference using $bundle install? Is the same or not?
ne1l is now known as Guest31298
<diegoviola> pipework: not sure I get what you mean
<pipework> camm: I'm not sure what you mean. Are you asking about the difference between `bundle` and `bundle install`?
<pipework> If so, it's nothing. They're equivalent.
hydrozen has joined #ruby
Guest31298 is now known as nei1
<camm> pipework: Yes, thats my question exactly.
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> perhaps bundle without a command defaults to 'install'
cabreraM516 has joined #ruby
cabreraM516 has quit [Client Quit]
<shevy> or it shows the help menu
<shevy> let's see
AlexRussia_ has quit [Read error: Connection reset by peer]
<pipework> shevy: It defaults to install
<shevy> hmm "bundle" without command tries to do something "Could not locate Gemfile or .bundle/ directory"
* pipework would rather it show help, but whatevskies
einarj has joined #ruby
<shevy> and that is the same I get via "bundle install" \o/
nei1 has left #ruby [#ruby]
r0x0rZ has joined #ruby
<shevy> yeah, "gem" alone shows help
<jhass> camm: install is the default subcommand of bundle
<diegoviola> pipework: I'm not really looking for advice about how to write one
bruno- has joined #ruby
<pipework> diegoviola: So?
lordkryss has joined #ruby
hotpancakes has joined #ruby
<camm> Thanks guys.
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has quit [Ping timeout: 256 seconds]
<pipework> You offered an unsolicited idea to a public channel, I offered an unsolicited idea on the public channel. Free exchange of ideas has been reached.
<jhass> ?guys camm
<ruboto> camm, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<diegoviola> pipework: ok
JakFrist has joined #ruby
ivanskie has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kidoz has joined #ruby
andywojo has quit [Ping timeout: 246 seconds]
<gavit> toretore: https://gist.github.com/gavit/0a4a88e1424996f1bf9c <- I tried copying from vi to the browser :p
n3il has joined #ruby
n3il has quit [Remote host closed the connection]
andywojo has joined #ruby
northfurr has joined #ruby
<gavit> This is where my first match should arrive: https://gist.github.com/gavit/0a4a88e1424996f1bf9c#file-input-html-L297
DCameronMauch has quit [Quit: Leaving...]
nux443 has quit [Quit: leaving]
<toretore> gavit: cat t | ruby -rnokogiri -e'p Nokogiri::HTML(STDIN.read).css("table.troitabelmedium tr").select{|tr| tr.css(".listingname").any? }.map{|tr| %w[.listingname .listingaddress].map{|s| tr.css(s).inner_html } }'
<camm> ll
camm has left #ruby [#ruby]
northfurr has quit [Client Quit]
renderfu_ has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alankis has quit [Quit: Page closed]
hobodave has quit [Quit: Computer has gone to sleep.]
northfurr has joined #ruby
mwlang has quit [Quit: mwlang]
JakFrist has joined #ruby
<gavit> toretore: I'm assuming I should replace t with my file?
<toretore> yes
renderful has quit [Ping timeout: 255 seconds]
<gavit> the regex seems to work on rubular though
<toretore> fuck the regex
<gavit> hahahaa
skade has quit [Ping timeout: 245 seconds]
<ivanskie> i don't even know how to ask google this. but i tried. uh, if my csv file does not have files.. and i want to end up with an array of hashes with my own headers (csv has over 120 columns, i'm only using like 5...). how would one do that? i have an idea.. but i think its an ugly one
<gavit> lemme check if I have nokogiri, cause I get a blank output
clarkenciel has joined #ruby
Guest50 has joined #ruby
kies has joined #ruby
<toretore> ivanskie: 1) create array 2) iterate through csv entries 3) take the fields you're interested in and stick them in a hash and then in the array
<jhass> ivanskie: imo just assign a bunch of constants with the indexes, START_DATE = 9; END_DATE = 10; row[START_DATE]; row[END_DATE]
<ivanskie> hm
n3il has joined #ruby
n3il has quit [Remote host closed the connection]
<Ox0dea> ivanskie: Consider #values_at as well.
djbkd has quit [Remote host closed the connection]
hobodave has joined #ruby
hinbody has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
icarus has quit [Ping timeout: 272 seconds]
rodfersou has quit [Quit: leaving]
djbkd has joined #ruby
jamesaxl has joined #ruby
rodfersou has joined #ruby
n3il has joined #ruby
n3il has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 250 seconds]
leafybasil has joined #ruby
hinbody_ has quit [Ping timeout: 264 seconds]
araujo has joined #ruby
nuttermb has quit [Ping timeout: 255 seconds]
iateadonut1 has joined #ruby
jimms has quit [Remote host closed the connection]
n3il has joined #ruby
nfk has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
n3il has quit [Client Quit]
iateadonut has quit [Ping timeout: 246 seconds]
ne1l has joined #ruby
benlovell has joined #ruby
kt2 has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
kt2 has joined #ruby
hackeron has joined #ruby
valetudo has quit [Read error: Connection reset by peer]
hackeron_ has quit [Ping timeout: 272 seconds]
Dreamer3 has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
SenpaiSilver_ has quit [Quit: Leaving]
skade has joined #ruby
SenpaiSilver has joined #ruby
kadoppe has quit [Ping timeout: 245 seconds]
northfurr has quit [Quit: northfurr]
eminencehc has quit [Remote host closed the connection]
icarus has joined #ruby
josh4 has quit [Ping timeout: 265 seconds]
kadoppe has joined #ruby
atomical has joined #ruby
devdazed has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
mleung has quit [Quit: mleung]
baweaver has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<gavit> toretore: disceting this oneline of yours :P
yqt has joined #ruby
joonty has joined #ruby
<gavit> I think your oneliner assumes listingaddress is a part of listingname, but I think they ae both on the same level
yfeldblum has quit [Ping timeout: 246 seconds]
<ivanskie> uhm so back to csv to array of hashes.... i couldn't really wrap my head around how to do what u guys suggested.. but this is basically what I'd like to end up with: https://gist.github.com/i5okie/92e813eb10ccb40bd3fa
baweaver has quit [Remote host closed the connection]
<jhass> ?guys ivanskie
<ruboto> ivanskie, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
benlieb has joined #ruby
northfurr has joined #ruby
axsuul has joined #ruby
<ivanskie> csv has no headers, so i made my own hash with symbol values. so how would you end up with something like that?
<ivanskie> oops :S
powersurge has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<powersurge> in delayed_job is there a way to get the id of a job just after enqueuing it? having a bear of a time working out how to do it
<ivanskie> oh i think i have an idea (about the hash thing)
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
yardenbar has joined #ruby
<ivanskie> lol that was easy
ishahnaz has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
krisquigley has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
CorySimmons has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has joined #ruby
rubie has quit [Remote host closed the connection]
pen has quit [Remote host closed the connection]
kies has quit [Ping timeout: 260 seconds]
pen has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
iateadonut1 has quit [Quit: Leaving.]
baweaver has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lwu_ has joined #ruby
lkba has joined #ruby
sdwrage has joined #ruby
lwu_ has quit [Client Quit]
arturhoo has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
Guest50 has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
leafybasil has joined #ruby
benlovell has joined #ruby
bronson has joined #ruby
lkba has quit [Read error: Connection reset by peer]
jbw_ has quit [Ping timeout: 256 seconds]
Illusioneer1 has joined #ruby
jgt1 has joined #ruby
pen has quit [Ping timeout: 244 seconds]
Illusioneer has quit [Ping timeout: 244 seconds]
rikkipitt has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
hobodave has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
einarj has joined #ruby
yasha0x80 has joined #ruby
lkba has joined #ruby
mistermocha has joined #ruby
jbw_ has joined #ruby
alem0lars has quit [Quit: Quit]
dabradley has joined #ruby
sdwrage_ has joined #ruby
benlieb has quit [Quit: benlieb]
bronson has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 255 seconds]
lwu_ has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
pragmatism has joined #ruby
sdwrage has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
lwu_ has quit [Client Quit]
jeadr has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
JoshGlzBrk has joined #ruby
flegercovateam has joined #ruby
jeadr has joined #ruby
r0x0rZ has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
imperator has joined #ruby
shadoi has joined #ruby
jacaballero has quit [Read error: Connection reset by peer]
sdwrage_ has quit [Quit: Leaving]
jacaballero has joined #ruby
meliboo has joined #ruby
matcouto has joined #ruby
benlieb has joined #ruby
DroidBurgundy has joined #ruby
eminencehc has joined #ruby
meliboo has left #ruby [#ruby]
luksaur has joined #ruby
AlxAltea has joined #ruby
hotpancakes has quit [Remote host closed the connection]
bigkevmcd has quit [Ping timeout: 240 seconds]
icharlie has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
bigkevmcd has joined #ruby
JoshGlzBrk has quit [Client Quit]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
jimms has joined #ruby
atmosx has joined #ruby
Lingo has joined #ruby
<Lingo> Hello. I'm trying to require a file in some code I'm working on, and I'm getting strange errors. Would anyone happen to know what the issue is? https://gist.github.com/dkindler/6347e33f067c551f4b82
kies has joined #ruby
n008f4g_ has joined #ruby
<saddad> if that's your file you need to use require_relative
hotpancakes has joined #ruby
<jhass> Lingo: use require_relative or better yet add the directory euler-help.rb lives in to the $LOAD_PATH
<Lingo> but euler-help is in the same dir as this file, does that matter?
<jhass> Lingo: protip: gist supports syntax highlighting and multiple files
baweaver has quit [Remote host closed the connection]
<saddad> require_relative gets files that aren't in your $LOAD_PATH
<Lingo> oh, got it
<Lingo> and will do next time
<Lingo> thanks guys!
<jhass> ?guys Lingo
<ruboto> Lingo, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<gavit> toretore: solved!
Rutix has quit []
casadei has quit [Remote host closed the connection]
<Lingo> Uh ok. Where i'm from you can use the term "guys" to refer to a group of people, not really a gender-related thing
<gavit> now, I have a string "De naam '.*' heeft (\d+) vermeldingen. <- should I do this with regex?
<Lingo> but sure, thank you both!
shinnya has joined #ruby
<pipework> saddad: It also doesn't even check the $LOAD_PATH
<pipework> so it can be beneficial for startup time and whatnot
rikkipitt has joined #ruby
<Lingo> guys
chouhoul_ has quit [Remote host closed the connection]
Lingo has quit [Quit: (null)]
chouhoulis has joined #ruby
<ashleyhindle> Ruby is pretty nice
<shevy> \o/
<ashleyhindle> Though map(&:downcase) looks odd
<shevy> you can write .map {|e| e.downcase }
<ashleyhindle> I might stick to that with my own stuff for now :D
puppeh_ has quit [Quit: Leaving...]
<shevy> nah you will use the shorter variant quickly
<shevy> because it's shorter :D
<shevy> it's slower though so perhaps you should indeed use the longer variant
<ashleyhindle> It looks really weird, though I suppose I'll get used to it eventually
<shevy> yeah the & disturbs me too
<Ox0dea> ashleyhindle: It only "looks weird" because you don't yet understand its component parts.
<Ox0dea> Symbols are useful for denoting "static strings" like method names, and & is "to/from Proc".
EllisTAA has joined #ruby
kirun has quit [Quit: Client exiting]
northfurr has quit [Quit: northfurr]
radgeRayden has joined #ruby
<ashleyhindle> I get symbols but not "to/from Proc"
<ashleyhindle> I shall google
<Ox0dea> Explicit blocks are actually slower.
svdb64 has joined #ruby
<Ox0dea> ashleyhindle: Blocks aren't actually "arguments" in the purest sense, so you can't always pass a Proc to a method expecting a block.
krisquigley has joined #ruby
<shevy> weird
<Ox0dea> Not weird at all.
<shevy> I could swear that other benchmarks I saw were totally opposite of these results
<Ox0dea> You might be thinking of 1.8.7?
lwu_ has joined #ruby
<shevy> no in general
<shevy> lemme google
axsuul has quit [Ping timeout: 245 seconds]
<Ox0dea> It's a pretty trivial optimization, really. MRI caches Symbol#to_proc invocations, whereas blocks must be explicitly created each time.
blue_deref has quit [Quit: bbn]
arup_r has quit [Quit: Leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 272 seconds]
rbennacer has joined #ruby
r0x0rZ has joined #ruby
axsuul has joined #ruby
JakFrist has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> I got other results
Coldblackice has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
<Ox0dea> shevy: Needs more benchmark/ips.
<shevy> .map(&:one) versus .map {|x| x.one }
<shevy> .map(&:one) is slower
frozen3 has quit []
<bradland> i think it's because of the call to Symbol#to_proc
radgeRayden has quit [Ping timeout: 246 seconds]
gerep has joined #ruby
ivanskie has joined #ruby
shmilan has joined #ruby
rikkipitt has quit [Remote host closed the connection]
<bradland> Ox0dea's suggestion to use benchmark/ips is a good one though, because you may just be seing overhead artifacts
devdazed has joined #ruby
<bradland> which is another way of saying, you must construct additional pylons
<gerep> Hi all. I have the 1.9.3 version installed and upgrade to 2.0.0 using "yum upgrate ruby", the upgrade was OK but when I try to run bundle it says: "-bash: /usr/bin/bundle: No such file or directory" and I need to restart the machine for it to work, any ideas?
<gerep> I'm using RedHat 6.6
<ivanskie> anyone know of an alternative to this https://github.com/davetron5000/methadone for windows?
* imperator can't remember how to do inline search & replace
jbw_ has quit [Ping timeout: 260 seconds]
<weaksauce> gerep consider using a proper ruby manager and bundler
<weaksauce> look at ruby-install and chruby gerep
<imperator> ivanskie, i'd just use powershell ;)
decoponyo has quit [Quit: Leaving...]
<bradland> gerep: you'll probably have better luck in the RedHat channel for that one, since it sounds like a dist concern
<gerep> weaksauce, no doubt it is a good idea but I can't use that right now :(
<gerep> bradland, good point
<gerep> Thank you all! :D
mleung has joined #ruby
<bradland> the error you've received indicates that bundler is not installed
<ivanskie> yeah already doing that. just had a thought of maybe writing it in ruby, and make it look better (backup script, with better progress representation than whats available)
<bradland> yep
<shevy> bundler is normally a standalone .gem
ledestin has joined #ruby
<gerep> bradland, but why it works when I restart?
<ivanskie> and better error handling... right now i can't really automate my ps script cause if it errors out or doesnt finish. it just sits there in an open window.
<gerep> Oh!!! Forgot to say, I have also updated rubygem-bundler
<shevy> the homepage at rubygems.org is at https://rubygems.org/gems/bundler - you can also download the gem on the right hand side, then install it
<imperator> ivanskie, use sys-proctable :)
<bradland> gerep: does it actually work when you restart? when does it stop working again?
<ivanskie> but if it succeeds it emails me.
<shevy> imperator are you still using ruby on windows by the way?
benlieb has joined #ruby
<imperator> shevy, i use ruby on all platforms
jeadr has quit [Remote host closed the connection]
<gerep> bradland, yes it does work, it doesn't work when I finish the upgrade
hinbody has quit [Quit: leaving]
<shevy> so yum fails
<imperator> ruby -ne "s/Hello/Goodbye/g" temp.txt - doesn't seem to like that
<shevy> yum is even written in ruby these days I think
<Ox0dea> shevy: It seems Symbol#to_proc is only faster for "built-in" methods.
devdazed has quit [Quit: Computer has gone to sleep.]
bumbar_ has quit [Ping timeout: 246 seconds]
<shevy> Ox0dea heisenspeed!
<shevy> sometimes faster sometimes not!
jeadr has joined #ruby
<Ox0dea> Blame BASIC_OP_UNREDEFINED_P().
mleung has quit [Client Quit]
<shevy> I don't dare to dig into the internals like you do :D
<Ox0dea> It checks whether a "core" method hasn't been redefined and so can be optimized.
<shevy> I see you will be having a word with nobu again
baroquebobcat has joined #ruby
<Ox0dea> I don't know how to optimize arbitrary methods to Ruby bytecode.
michael_mbp has quit [Excess Flood]
<ivanskie> would be nice to have this on windows http://backup.github.io/backup/v4/ without having to pay some company $$$$$$$$$$$$$ for some gui based bs
<Ox0dea> (I don't think anybody does?)
devdazed has joined #ruby
devdazed has quit [Client Quit]
<bradland> gerep: so, you finish the upgrade, restart, and it works again?
programmerq has quit [Read error: Connection reset by peer]
<gerep> bradland, yes hahaha
<gerep> bradland, weird, isn't it?!
tmtwd has quit [Read error: Connection reset by peer]
michael_mbp has joined #ruby
michael_mbp has quit [Excess Flood]
<bradland> you said it works when you restart. so, presumably, it'd have to stop working again at some point, right?
rubie has joined #ruby
<bradland> when does it stop working again?
lannonbr has joined #ruby
mleung has joined #ruby
tmtwd has joined #ruby
<shevy> can't you run "yum" in a verbose manner gerep?
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gerep> bradland, I can't tell you when it stop working but I'm going to try that again and see if I can find something
<gerep> shevy, I'm not sure, will check that
<shevy> sorry
<shevy> I mixed up yum with yast
r0x0rZ has quit [Ping timeout: 245 seconds]
<Ox0dea> >> def foo; defined?(yield); end; [foo, foo {}]
<ruboto> Ox0dea # => [nil, "yield"] (https://eval.in/419212)
<bradland> gerep: the situation you're describing presents a paradox. i think you've missed a critical part of your description that would allow us to understand your problem
<Ox0dea> How does this even?!
<shevy> yast is definitely written in ruby though - you can see that here https://github.com/yast/yast-storage/tree/master/src/clients
<shevy> ugh
<shevy> Yast.import "Popup"
Guest50 has joined #ruby
<shevy> Ox0dea are you still trying to break ruby?
<shevy> you took over hanmac's job!
devoldmx has joined #ruby
<darix> shevy: there is even an irc channel for it if i recall correctly
michael_mbp has joined #ruby
dhollinger has quit [Read error: Connection reset by peer]
Guest50 has quit [Client Quit]
zekriad has quit [Read error: Connection reset by peer]
<shevy> I approve that it is written in ruby
qhartman has joined #ruby
<Ox0dea> shevy: No, just learning new things even now.
opensource_ninja has joined #ruby
<Ox0dea> defined? is a little crazy.
<shevy> I don't know how to get all components though, a single "gem install yast" would be nice
<bradland> i cannot wait to here the explanation for this one
<Ox0dea> bradland: Hm?
<yorickpeterse> Ox0dea: haha yeah, defined? is messed up
<Ox0dea> yorickpeterse: Special cases for days.
<darix> shevy: i would be happy if they would switch to gems :p
<bradland> Ox0dea: i'm presuming that someone smart is going to come along and explain it :)
<shevy> darix hmm lookst like 'yast' namespace has been occupied by inactivity :(
<Ox0dea> bradland: I know what's happening, it's just... well, it's not even surprising now.
casadei_ has joined #ruby
<Ox0dea> yorickpeterse: Do you know offhand whether `defined?(yield)` was valid before the advent of `block_given?`?
<darix> shevy: i know
<shevy> would be nice if secondary namespaces would be possible for rubygems.org
Guest50 has joined #ruby
<bradland> where is `defined?`? i don't see it in Module.
<Ox0dea> bradland: It's not a method.
<Ox0dea> It's a VM instruction, actually.
rideh has quit [Quit: zap]
baweaver has joined #ruby
<bradland> ah, thx. this'll be my stop then. cya! :)
<Ox0dea> And there's where it's defined exactly like block_given?.
<shevy> haha yeah bradland
<shevy> only the brave Ox0dea is still on his journey into the ruby neverland lands
<Ox0dea> Fuck curiosity, right?
devoldmx has quit [Ping timeout: 240 seconds]
* bradland casts lvl 3 unsee
<darix> curiosity killed the cat
<shevy> case DEFINED_ZSUPER:
<shevy> what the ... is ZSUPER
<Ox0dea> darix: Unnecessarily morbid?
<Ox0dea> shevy: Let's go find out!
dede has joined #ruby
rehat has quit [Remote host closed the connection]
<bradland> shevy: it's how christopher walts says super
<bradland> obvs
<darix> hmm i think i block the OBS a bit with the ruby version updates *whistles*
<shevy> lol
svdb64 has quit [Quit: WeeChat 1.2]
<shevy> darix what ruby version do you use right now?
<darix> shevy: depends
baroquebobcat has quit [Quit: baroquebobcat]
jgt1 has joined #ruby
<powersurge> anyone ever have to execute a job after an array of other jobs complete with delayed job?
<powersurge> having a hard time finding a good solution
<darix> shevy: but it doesnt matter much. you can get ruby 2.2 e.g. from http://download.opensuse.org/repositories/devel:/languages:/ruby/ + a lot of packaged gems from http://download.opensuse.org/repositories/devel:/languages:/ruby:/extensions/
failshell has quit []
<bradland> powersurge: something like this? https://github.com/Bill/orchestrated
jeremy04 has quit [Remote host closed the connection]
<darix> shevy: i actually got rubinius building and soon the gems should be building for it too
<powersurge> maybe! I'll take a peek bradland
skade has joined #ruby
<powersurge> thanks for the lead
_blizzy_ has quit [Ping timeout: 240 seconds]
programmerq has joined #ruby
baroquebobcat has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
jgt1 has quit [Ping timeout: 250 seconds]
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
<gerep> bradland, I made a test that worked but I'll check it again. I have installed rubygem-bundler first and then ruby
<gerep> bradland, I'll do the process again and make sure that's the reason
<gerep> bradland, does it sound possible? hahah
baroquebobcat_ has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
northfurr has quit [Quit: northfurr]
frem has joined #ruby
<ashleyhindle> Is there a well written, up to date, smallish ruby library/app that you've used recently that I could study?
dgutierrez1287 has joined #ruby
[gmi] has joined #ruby
mistermocha has joined #ruby
baroquebobcat has quit [Ping timeout: 244 seconds]
baroquebobcat_ is now known as baroquebobcat
<shevy> gerep make sure to check "gem env" output too, and try to find out how many ruby versions + have, and how many install paths you use for your local .gem files (when you download a .gem, it is stored locally too in a directory)
clarkenciel has quit [Ping timeout: 265 seconds]
<gerep> shevy, ok
Averna has joined #ruby
benlieb has quit [Quit: benlieb]
snockerton has joined #ruby
<snockerton> begin
<dfockler> ashleyhindle: frappuchino is interesting, and it's up to date ish
dojobo has quit [Ping timeout: 246 seconds]
<ashleyhindle> Thanks dfockler I'll look
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<dfockler> I think it's actually spelled frappuccino
dotix has joined #ruby
dotix has joined #ruby
skade has quit [Ping timeout: 245 seconds]
baweaver has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 246 seconds]
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kies has quit [Ping timeout: 244 seconds]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
einarj has quit [Ping timeout: 250 seconds]
einarj_ has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
bruno- has quit [Quit: Lost terminal]
northfurr has joined #ruby
benlieb has joined #ruby
bruno- has joined #ruby
TheNet has joined #ruby
rfizzle has joined #ruby
ishahnaz has quit []
hotpancakes has quit [Remote host closed the connection]
<eam> spelled "starbucks intends to vigorously defend our trademarks"
msnyon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dojobo has joined #ruby
jenrzzz has joined #ruby
benlieb has quit [Quit: benlieb]
Motoservo has joined #ruby
sheldonh has joined #ruby
unver has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
skade has joined #ruby
<sheldonh> i'm struggling to get my docs to hyperlink class and method names on rubydoc.info, which i understand uses yard. yard says its compatible with rdoc, but i seem to have to wrap class and method names in braces to get them linked, which then breaks linking in rdoc
rehat has joined #ruby
jackjackdripper has joined #ruby
rideh has joined #ruby
bmurt has quit []
josh4 has joined #ruby
rodfersou has quit [Quit: leaving]
benlovell has joined #ruby
yeticry_ has quit [Ping timeout: 244 seconds]
gerep has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 246 seconds]
jamo_ has quit [Ping timeout: 246 seconds]
benlieb has joined #ruby
mary5030 has quit [Remote host closed the connection]
yeticry has joined #ruby
jamo_ has joined #ruby
[gmi] has quit [Quit: Leaving]
dotix has quit [Quit: Leaving]
mary5030 has joined #ruby
tenderlove has joined #ruby
northfurr has quit [Quit: northfurr]
chinmay_dd has quit [Quit: See ya!]
benlovell has quit [Ping timeout: 260 seconds]
codecop has quit [Remote host closed the connection]
renderful has joined #ruby
josh4 has quit [Read error: Connection reset by peer]
gamename has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 260 seconds]
<snockerton> any tips for finding a missing 'end' ?
<Ox0dea> snockerton: gg=G
<pipework> snockerton: align your code and then read it.
<snockerton> in a huge nested structure
<snockerton> -_-
<pipework> Reading is fundamental.
<Ox0dea> snockerton: Install Vim, open the file, gg=G, look for the first sign of wonkiness.
rideh has quit [Quit: zap]
DroidBurgundy has quit []
finisherr has joined #ruby
<Ox0dea> Perhaps there's some Vim as a Service you could use to avoid having to install it.
devdazed has joined #ruby
northfurr has joined #ruby
bhorn1 is now known as bhorn1|away
renderfu_ has quit [Ping timeout: 250 seconds]
<snockerton> i'm morally opposed to installing vim
<pipework> Not everyone can have good taste.
<toretore> cast him into the fire
<pipework> snockerton: Align your code and then read it. Use whatever you want.
<eam> Ox0dea: M-x viper-mode
<Ox0dea> Needs more VimL.
<Ox0dea> (Not really, obviously.)
<snockerton> i would expect rubucop to do this for me
rideh has joined #ruby
ldnunes has quit [Quit: Leaving]
<snockerton> but it prefers to complain about more useful issues like column length...
<pipework> snockerton: I'd expect it to do my job for me so I can retire early.
<Ox0dea> > My tools are to blame.
<pipework> I got what I paid for though. :(
devdazed has quit [Client Quit]
<snockerton> pipework: i don't deny being lazy
<pipework> Ox0dea: I don't know what you're talking, I just use ( in lisp and then automatically close all ) so I don't have to type them.
<Ox0dea> pipework: To clarify, I was castigating VimL, not Lisp.
<pipework> snockerton: Whale, it's also a funny thing to suggest if you think about how to actually get that to work.
<shevy> (stop(making(fun(of(lisp(already
<pipework> Ox0dea: Was just a lul about not wanting to put closing stuff where it belongs.
<Ox0dea> ))))))
<Ox0dea> snockerton: Do you know how to auto-align your entire file?
bap1313 has joined #ruby
iloverubynoob has joined #ruby
jimms has quit [Remote host closed the connection]
<snockerton> atom has auto-indent
<Ox0dea> Do you know how to invoke it?
socialjackie has quit [Read error: Connection reset by peer]
<Ox0dea> pipework: Do you use electric-indent-mode?
abdoudjanifresh has joined #ruby
<pipework> Ox0dea: I don't know what that is.
<Ox0dea> But you use Emacs?
<pipework> What made you think I use emacs?
<snockerton> yea i click on "Auto Indent"
<Ox0dea> pipework: Shit, I conflated you with eam, it seems.
<pipework> snockerton: the presence of the word 'click' is telling.
<snockerton> pipework: because all ass holes use emacs
<pipework> snockerton: Anyways, fix your code!
<pipework> Stop screwing up!
<snockerton> lol
casadei_ has quit [Remote host closed the connection]
<pipework> There are other perfectly good directions you can choose from.
<snockerton> there i just created a key binding for auto-indent
binaryplease has joined #ruby
<Ox0dea> So fookin' h4xx0r, mate.
<snockerton> i know right
rideh has quit [Quit: zap]
skade has quit [Ping timeout: 272 seconds]
<Ox0dea> In any case, it should become quite obvious where you're missing an `end` after you've aligned your code.
<snockerton> i just want to live up to the folks in #ruby
<Ox0dea> A method definition will go on much longer than it ought to, or something along those lines.
rideh has joined #ruby
<Ox0dea> snockerton: We're considering sacrificing you to the red god.
blackmesa has joined #ruby
cndiv has joined #ruby
bronson has joined #ruby
<sheldonh> sometimes i get "expecting keyword_end" because i opened with do but closed with a brace. fun times
<snockerton> sry, already done in #rubyonrails
<cndiv> Hey all, is there a great Ruby "cheat sheet / basic defintions" PDF that you all know about? Something for me to stare at, tacked to my wall?
<Ox0dea> ?quickref cndiv
<sheldonh> cndiv: also, well worth becoming familiar with the documentation for String, Numeric, Array, Hash and Enumerable. they will take you far
<cndiv> Ox0dea: I've seen that, it's great! What about the same idea, but reduced to something designed for printing out on a wall?
<Ox0dea> cndiv: A loving hand + wkhtmltopdf, I suppose.
<cndiv> I benefit from having a stereotype poster to stare at in early stages.
JoshL has quit []
<sheldonh> cndiv: i meant Integer, not Numeric
<cndiv> Ox0dea: That might be it.
<cndiv> sheldonh: note taken, thank you.
icarus has joined #ruby
solars has joined #ruby
<cndiv> I'll give those a try, thank you all.
<dorei> is there some gem that would help me convert \r\n to \n, remove/collapse whitespaces/nbsp, remove html entities, etc from strings? too lazy to reinvent the wheel
baweaver has joined #ruby
<sheldonh> so it looks like i have to choose between rdoc and yard. meh
<snockerton> finally found it, was because I had a blah.each do |x| if stuff
<Ox0dea> dorei: require 'cgi'
chichou has quit [Ping timeout: 252 seconds]
<dorei> really? cgi is what i'm looking for? :O
<dorei> let me check :)
<Ox0dea> dorei: Well, it's got lots of relevant convenience methods.
<shevy> Ox0dea do you use Go? they had a new release
<Ox0dea> 1.6, you mean?
<miah> 1.5
<shevy> dorei yeah CGI.... hmmm.. escape_html or something
<shevy> it has all those thingies
bronson has quit [Ping timeout: 252 seconds]
ne1l has quit [Quit: Hasta la vista baby!]
skade has joined #ruby
<Ox0dea> >> ObjectSpace.each_object(Class).select { |c| c < Numeric } # sheldonh
<ruboto> Ox0dea # => [Complex, Rational, Bignum, Float, Fixnum, Integer] (https://eval.in/419214)
<shevy> "The compiler tool chain was translated from C to Go"
<Ox0dea> shevy: That's very old news?
<miah> is the recent news.
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
cndiv has quit [Quit: Quit]
<miah> says "The compiler and runtime are now written entirely in Go (with a little assembler). C is no longer involved in the implementation, and so the C compiler that was once necessary for building the distribution is gone. "
Limix has joined #ruby
<miah> anyways. this is OT =)
Oka has quit [Remote host closed the connection]
<shevy> Ox0dea quit living in the future man!
<shevy> everything is old news now to him :(
jerius has quit [Quit: /quit]
<sheldonh> Ox0dea: the reason i suggest Integer is that it has methods that are useful for control flow and a few useful predicates
<sheldonh> dorei: you could try the sanitize gem
EllisTAA has quit [Quit: EllisTAA]
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
symm- has joined #ruby
yfeldblum has joined #ruby
<shevy> redirecting stdin and stdout taxes my poor brain
umgrosscol has quit [Remote host closed the connection]
<Ox0dea> sheldonh: Sure, I was mostly just clarifying your correction.
<sheldonh> Ox0dea: shush, you're clarifying something else :P
rideh has quit [Quit: zap]
axsuul has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> #rubychannelinanutshell
<sheldonh> baweaver: you're late. the text editor conversation was ages ago ;)
imperator has left #ruby ["Leaving"]
<baweaver> it was, and we decided vim
<baweaver> are people still pretending that's an issue?
FernandoBasso has joined #ruby
Azure has quit [Quit: Oops.]
<bougyman> I see a lot more variety in editor choices these days, not less.
<bougyman> surely there's some emacsers in here.
platzhirsch has left #ruby [#ruby]
Azure has joined #ruby
* baweaver holds up cross and splashes holy water on screen
<shevy> vim and emacs are fossil coders
yardenbar has quit [Quit: Leaving]
<bougyman> shevy: you're using atom, aren't you?
<shevy> bluefish 1.0.7!
<shevy> I'd like to switch though
<baweaver> Vim <3
devdazed has joined #ruby
<shevy> It would be cool if one could cherry pick from among all existing editors out there
<bougyman> that loks horrible
<bougyman> *looks
Averna has quit [Ping timeout: 264 seconds]
* baweaver started as a SysAdmin and is used to Headless Servers
blackmesa has quit [Ping timeout: 272 seconds]
<bougyman> if it can't run in a tmux it's not an option, for me.
<bougyman> and of those that can i'm best with vim.
silkfox has quit [Ping timeout: 264 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> </thread>
kies has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
blackmesa has joined #ruby
<baweaver> <thread topic="text-editors">
<baweaver> NeoVim
hotpancakes has joined #ruby
<Ox0dea> :terminal is fookin' awesome.
<adaedra> MorpheusVim
<Aria> <4 neovim
northfurr has quit [Quit: northfurr]
iamninja has quit [Read error: Connection reset by peer]
<baweaver> I still think it's funny that XBox tried to get XBox One to be called 'The One' and we all contributed to getting it redubbed the XBone
iamninja has joined #ruby
KnownSyntax has quit [Ping timeout: 255 seconds]
lwu_ has quit [Quit: This computer has gone to sleep]
iloverubynoob has quit [Remote host closed the connection]
havenwood has joined #ruby
bootstrappm has left #ruby [#ruby]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
mistermocha has joined #ruby
kr3ssh has joined #ruby
KnownSyntax has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flegercovateam has quit [Quit: Leaving.]
<cschneid_> when does ruby parse regexp literals? I have a `if RUBY_VERSION newer than 1.9 then use fancy regexp, otherwise use boring`. But ruby 1.8 still attempts to parse the fancy one at boot (and fails & errors)
<jhass> time to drop 1.8 support \o/
<baweaver> +1 ^
<baweaver> 1.8 is a massive security hole
<baweaver> deprecated long ago
whiteline has quit [Remote host closed the connection]
<Aria> Are there open CVEs against it?
<cschneid_> yeah, I'm aware. but I need to do this. I'm more curious about the parse-time of regex literals
<cschneid_> if condition then /abc/ else /xyz/ end
<cschneid_> no matter the condition, both seem to be parsed?
<baweaver> you need to upgrade
<jhass> Aria: iirc some minor ones, yes. Basically it's also affected by the last couple of things fixed in the last security releases for 1.9 iirc
ckinniburgh has quit [Quit: Leaving]
chichou has joined #ruby
<baweaver> 2.2.3 just came out, trying to mitigate against ancient bugs is ill-advised
<baweaver> that should be your priority
chichou has quit [Client Quit]
<sheldonh> cschneid_: i wouldn't be surprised if ruby performed some syntax checking of regular expressiong while loading a source file
mistermocha has quit [Ping timeout: 252 seconds]
<jhass> cschneid_: you could probably workaround with Regexp.new, but please just upgrade instead
<sheldonh> cschneid_: put the regular expression in each of two files and require the right one based on ruby version
<cschneid_> yeah, not my code. Writing a plugin to a customer who I don't have any control over.
lwu_ has joined #ruby
<cschneid_> regexp.new is probably the easiest workaround, but you're right that it's annoying to work around ancient rubies.
<sheldonh> cschneid_: in a constant in a module in each of two files, obviously :)
hydrozen has joined #ruby
ivanskie has joined #ruby
Jackneill has quit [Ping timeout: 256 seconds]
whiteline has joined #ruby
chichou has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
icharlie has quit [Remote host closed the connection]
greenride has joined #ruby
arturhoo has quit [Quit: arturhoo]
<zenspider> cschneid: (least tab completable nick here) ... it'll parse regardless of your RUBY_VERSION trap (has to be able to parse to find the end of the conditional). You can stringify both regexps, pop them in DATA, or separate files. I prefer stringify myself
freerobby has quit [Quit: Leaving.]
<Ox0dea> zenspider: Your client doesn't prioritize recent speakers for completion?
victortyau has quit [Quit: Leaving]
platzhirsch has joined #ruby
<pipework> Haha, just you wait until I /nick to |work for a long while.
last_staff has quit [Ping timeout: 265 seconds]
bogn has joined #ruby
lwu_ has quit [Ping timeout: 250 seconds]
qhartman has quit [Quit: Ex-Chat]
sheldonh has quit [Quit: oh well]
chohe has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Quit: Leaving...]
<zenspider> don't think so... also "csch" is hella-awkward on dvorak.
<zenspider> tho, doesn't look much better on qwerty
<zenspider> at least it is two handed there
jenrzzz has quit [Ping timeout: 240 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> what is a nice generic name for some webserver instances
jenrzzz has joined #ruby
<shevy> dropsies
radgeRayden has joined #ruby
thermatix has joined #ruby
jbw has joined #ruby
rfizzle has quit [Quit: Textual IRC Client: www.textualapp.com]
<cschneid_> zenspider: sorry my name offends your IRC :) I ended up doing the multi-file require since it least interferes with the 99% case of newer rubies.
sepp2k has joined #ruby
<cschneid_> was just surprising that it did regex literal verification at parse time, not run time.
EllisTAA has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
Schmidt has quit [Ping timeout: 260 seconds]
rbennacer has quit [Remote host closed the connection]
<lagweezle> phreakocious_: webserver_instance_<some hash here>
devdazed has quit [Read error: Connection reset by peer]
jgt1 has joined #ruby
<lagweezle> That ... was the wrong name.
<lagweezle> platzhirsch: webserver_instance_<some hash here>
* lagweezle goes in search of caffeine.
n008f4g_ has quit [Ping timeout: 250 seconds]
jtdoncas has quit [Ping timeout: 260 seconds]
* platzhirsch follows lagweezle
devdazed has joined #ruby
<Ox0dea> cschneid_: Were you getting a SyntaxError?
thermatix has quit [Ping timeout: 265 seconds]
hotpancakes has quit [Remote host closed the connection]
<cschneid_> Ox0dea: SyntaxError: compile error (irb):1: undefined (?...) sequence:
juanpaucar has quit [Remote host closed the connection]
chichou has quit []
<cschneid_> I was using a negative lookbehind in a regex, and it bit me when trying to go for our one customer still running 1.8
<Ox0dea> Right, I think that's to be expected, honestly. It's not as if Ruby's regexen aren't part of the language proper.
jbw has quit [Ping timeout: 250 seconds]
<cschneid_> Ox0dea: yeah, and they did the wholesale engine swap in ... 1.9?
Akkad has quit [Ping timeout: 260 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
c0ncealed has quit [Ping timeout: 256 seconds]
yfeldblum has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
<Ox0dea> cschneid_: From Oniguruma to Onigmo, you mean?
axl_ has quit [Quit: axl_]
TheNet has quit [Quit: Leaving...]
<cschneid_> yeah, that.
<Ox0dea> I thought that was much more recent?
<cschneid_> and it brought along some of the fancier regex features like lookbehinds.
<hfp> Hey all, is there something like this http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-distance_of_time_in_words but for plain numbers (i.e. 1.83 return "about 2")? Before you tell me #RoR: I'm not using Rails :)
jbw has joined #ruby
chichou has joined #ruby
<Ox0dea> hfp: Fixnum#round?
<cschneid_> Ox0dea: looks like it was from Something (1.8) => Oniguruma (1.9) http://stackoverflow.com/questions/7484748/is-ruby-1-9-2s-new-regex-engine-oniguruma-very-slow
<Ox0dea> >> def human n; (r = n.round) == n ? n.to_s : "about #{r}" end; [human(2), human(1.83)] # hfp
<ruboto> Ox0dea # => ["2", "about 2"] (https://eval.in/419223)
eminencehc has quit [Remote host closed the connection]
Averna has joined #ruby
hotpancakes has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jud has quit [Quit: Leaving]
_ht has quit [Quit: Konversation terminated!]
dopamean_ has quit [Ping timeout: 240 seconds]
Akkad has joined #ruby
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
charliesome has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whippythellama has quit [Quit: WeeChat 1.3]
symm- has quit [Quit: Leaving...]
<shevy> stringio confuses me
doublemalt_ has joined #ruby
roolo has quit [Remote host closed the connection]
Oka has joined #ruby
c0ncealed has joined #ruby
eminencehc has joined #ruby
dojobo has quit [Quit: Leaving]
<shevy> why does this not output anything? http://pastie.org/10362599
dman777_alter has quit [Quit: Lost terminal]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
banister has joined #ruby
DoubleMalt has quit [Ping timeout: 245 seconds]
radgeRayden has quit [Ping timeout: 246 seconds]
radgeRayden_ has joined #ruby
<Ox0dea> shevy: It... does?
[k- has quit [Ping timeout: 250 seconds]
hobodave has quit [Quit: Computer has gone to sleep.]
Illusioneer1 has quit [Ping timeout: 244 seconds]
rakm has joined #ruby
<shevy> it does?
<Ox0dea> Yes.
<Ox0dea> Check the value of `Bar.new.tap(&:test).string`.
ivanskie has joined #ruby
rideh has joined #ruby
<shevy> huh
andywojo has joined #ruby
<shevy> now I am confused
<shevy> can I not get any output from a StringIO object?
baweaver has quit [Remote host closed the connection]
<Ox0dea> You seem to have misunderstood the thing's purpose.
djbkd has quit [Remote host closed the connection]
<shevy> hmm it is stored in string
<shevy> yeah. I thought it would be a simple toggle
sideshowcoder has quit [Quit: Connection closed for inactivity]
devoldmx has joined #ruby
<Ox0dea> Well, yes, that's one way to get at its data, but you can also interact with it more or less like any other IO object.
diegoaguilar has quit [Remote host closed the connection]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
bodgix has left #ruby [#ruby]
jtdoncas has joined #ruby
hotpancakes has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoaguilar has joined #ruby
<shevy> hmmm
devoldmx has quit [Ping timeout: 240 seconds]
<zenspider> shevy: what are you ACTUALLY trying to do?
<shevy> so all puts and print will be redirected in such a sublcass
<shevy> I am trying to redirect all puts and print into an @ivar
wasamasa is now known as wasmmasm
<zenspider> shevy: go steal my captureio method from minitest
skade has quit [Ping timeout: 246 seconds]
roolo has joined #ruby
<shevy> ok lemme see
pencilcheck has joined #ruby
<zenspider> or... use minitest. :P
wasmmasm is now known as wasamasa
skade has joined #ruby
crazydiamond has quit [Ping timeout: 246 seconds]
<zenspider> >> require "minitest/assertions"; include Minitest::Assertions; capture_io { puts "woot" }
<ruboto> zenspider # => ["woot\n", ""] (https://eval.in/419224)
<zenspider> hah. I didn't exactly expect that to work
jenrzzz has quit [Ping timeout: 250 seconds]
tonios57_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pencilcheck has quit [Remote host closed the connection]
<miah> neat
<zenspider> there's some synchronization code in there but the default is implemented as `yield`
hs366 has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
<havenwood> >> require 'minitest/assertions'; include Minitest::Assertions; module Minitest::Assertions; attr_accessor :assertions end; @assertions = 0; assert true
<ruboto> havenwood # => true (https://eval.in/419225)
jbw has quit [Ping timeout: 265 seconds]
<havenwood> zenspider: It'd be nifty to have a single module to include to get top level assertions for playing.
<havenwood> <3 Minitest
einarj has joined #ruby
IceyEC has quit [Quit: iceyec]
einarj_ has quit [Ping timeout: 256 seconds]
kr3ssh has quit [Ping timeout: 252 seconds]
kies has quit [Ping timeout: 260 seconds]
kr3ssh has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<Ox0dea> zenspider: Did you know about defined?(yield)?
roolo has quit [Remote host closed the connection]
banister has quit [Read error: Connection reset by peer]
decaff has joined #ruby
banister has joined #ruby
Wolland has joined #ruby
<banister> Ox0dea is that the same as block_given?
Wolland has quit [Client Quit]
<havenwood> Ox0dea: block_given? seems so much more refined and sophisticated :P
skade has quit [Quit: Computer has gone to sleep.]
<zenspider> block_given? is much more expressive to intent
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
<Ox0dea> Yes to all.
<zenspider> havenwood: like, writing assertions in irb?
<havenwood> zenspider: yup
<zenspider> not really sure what'd that get you
<zenspider> failed assertions raise. it'd be messy
AlxAltea is now known as Nykalt
jbw has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<havenwood> zenspider: mostly just newcomers or playing with assertions you're not sure on
hs366 has quit [Ping timeout: 256 seconds]
<havenwood> zenspider: you can of course always run your tests, just the super tight feedback loop of the REPL makes trying each assertion quick
mistermocha has joined #ruby
<havenwood> zenspider: or Pry to explore the assertions then try them
<drbrain> might not be so terrible if you augmented irb to rescue the exception and print only the message
greymeister has joined #ruby
benlieb has quit [Quit: benlieb]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chohe has joined #ruby
hydrozen has joined #ruby
bodgix has joined #ruby
choke has joined #ruby
benlovell has joined #ruby
powersurge has quit [Quit: WeeChat 0.4.3]
chohe has quit [Client Quit]
jenrzzz has joined #ruby
RegulationD has quit [Remote host closed the connection]
radgeRayden_ has quit [Ping timeout: 255 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
episage has quit [Ping timeout: 272 seconds]
jimms has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
abdoudjanifresh has quit [Ping timeout: 260 seconds]
abdoudjanifresh has joined #ruby
TheRealHansonE has joined #ruby
whiteline has quit [Read error: Connection reset by peer]
dopie has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
<zenspider> havenwood: it'd be nice if irb/pry had a logging mode that helped you capture the exploration better...
<zenspider> that could be interesting... log the results as comments or something
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Timba-as has quit [Quit: Be back later ...]
jimms has quit [Remote host closed the connection]
Timba-as has joined #ruby
rakm has joined #ruby
lannonbr has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
Schmidt has joined #ruby
dopie has quit [Client Quit]
hotpancakes has joined #ruby
ivanskie has joined #ruby
Log1x has quit [Remote host closed the connection]
MisterRusty has quit [Remote host closed the connection]
whiteline has joined #ruby
Timba-as has quit [Ping timeout: 250 seconds]
troyready has quit [Ping timeout: 244 seconds]
<baweaver> zenspider: context?
* baweaver works on pry on occasion.
lodgenbd has quit [Quit: Leaving]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has quit [Ping timeout: 246 seconds]
einarj has quit [Read error: Connection reset by peer]
jbw has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
djbkd has joined #ruby
decaff has quit [Quit: Leaving...]
dgutierrez1287 has joined #ruby
Log1x has joined #ruby
patrick99e99 has joined #ruby
<patrick99e99> Hey there ruby friends.. I am trying to spy in a test that sleep gets called, and I can't seem to make my test pass: expect(Kernel).to have_received(:sleep) ................ Unless I actually do Kernel.sleep in my real code
<patrick99e99> Why is calling "sleep" not delegating to Kernel?
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
icarus has quit [Ping timeout: 256 seconds]
leafybasil has quit [Ping timeout: 255 seconds]
<workmad3> patrick99e99: because Kernel.sleep is the class method on Kernel, not the instance method of the object you're trying to stub it on
shmilan has quit [Ping timeout: 245 seconds]
nertzy has joined #ruby
<drbrain> ↑ while they're the same implementation, how you get there is different
<patrick99e99> yeah.. I guess I as assuming under the hood was something like --> def sleep(*args); Kernel.sleep(args); end
<drbrain> Kernel uses module_function to have both #sleep and ::sleep
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iloverubynoob has joined #ruby
<baweaver> >> Object.ancestors
<ruboto> baweaver # => [Object, Kernel, BasicObject] (https://eval.in/419277)
<baweaver> ^
<patrick99e99> hmm so how can I stub this?
jackjackdripper has quit [Ping timeout: 246 seconds]
jbw has joined #ruby
finisherr has quit [Quit: finisherr]
<baweaver> expect(subject).to receive(:sleep)
dgutierrez1287 has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
icarus has joined #ruby
ivanskie has joined #ruby
<drbrain> fun fact: you can also def subject.sleep; end and prevent sleeping in your tests
benlieb has joined #ruby
<patrick99e99> yeah expect(subject).to receive(:sleep) does not work...............
<patrick99e99> but I think def subject.sleep will... Ill try that
binaryplease has quit [Quit: WeeChat 1.2]
iloverubynoob has quit [Ping timeout: 260 seconds]
blackjid has quit [Max SendQ exceeded]
jiada has joined #ruby
Cronon has joined #ruby
blackjid has joined #ruby
jbw has quit [Ping timeout: 255 seconds]
omegahm_ has joined #ruby
charliesome has joined #ruby
jzigmund_ has joined #ruby
bronson has joined #ruby
omegahm has quit [Ping timeout: 244 seconds]
omegahm_ is now known as omegahm
jzigmund has quit [Ping timeout: 244 seconds]
_Cronon_ has quit [Ping timeout: 244 seconds]
<zenspider> patrick99e99: does that seem like a valuable test to you?
<zenspider> patrick99e99: you can also test a subclass that defines its own override of sleep that does nothing
GeissT has joined #ruby
r0x0rZ has joined #ruby
<pontiki> if i'm the subject, that test definitely fails
platzhirsch has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 245 seconds]
bogn has quit [Remote host closed the connection]
jacaballero has joined #ruby
Nykalt is now known as AlexAltea
<zenspider> pontiki: hah
diegoviola has joined #ruby
r0x0rZ has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
renderful has quit [Remote host closed the connection]
noname has quit [Quit: WeeChat 1.0.1]
snockerton has quit [Quit: Leaving.]
TheRealHansonE has quit [Quit: TheRealHansonE]
kt2 has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 256 seconds]
kt2 has joined #ruby
einarj has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fedexo has joined #ruby
jbw has joined #ruby
phutchins has joined #ruby
rideh has quit [Quit: zap]
benlieb has quit [Quit: benlieb]
leafybasil has joined #ruby
tmtwd has quit [Ping timeout: 250 seconds]
IceyEC has joined #ruby
mary5030 has joined #ruby
matled has quit [Remote host closed the connection]
matled has joined #ruby
jgt1 has joined #ruby
dopamean_ has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
Motoservo has quit [Read error: Connection reset by peer]
EllisTAA has quit [Quit: EllisTAA]
rehat has quit [Remote host closed the connection]
rubie has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
mleung has quit [Quit: mleung]
binaryplease has joined #ruby
akurilin2 has quit [Quit: WeeChat 1.2]
dimasg has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Motoservo has joined #ruby
M0ni has joined #ruby
chichou has quit [Remote host closed the connection]
chichou has joined #ruby
hotpancakes has quit [Remote host closed the connection]
blackmesa has joined #ruby
mistermocha has joined #ruby
symm- has quit [Quit: Leaving...]
dimasg has quit [Ping timeout: 255 seconds]
Musashi007 has quit [Quit: Musashi007]
pen_ has joined #ruby
<ivanskie> ook i think i need a reminder.. lol uuh how do u do a wildcard of string? in my ruby i'm iterating through list of files, i need to skip all starting with .* ... without listing everything manually this doesnt work https://github.com/i5okie/CDR/blob/master/app#L18
<ivanskie> :(
IceyEC has quit [Quit: iceyec]
<ivanskie> Im trying to scan my memory for all those codeschool and teamtreehouse lessons i watched now. argh
josh4 has joined #ruby
ICantCook has joined #ruby
pen_ is now known as pen
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
RegulationD has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<baweaver> regex