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/
northfurr has joined #ruby
dfockler has quit [Remote host closed the connection]
charliesome has joined #ruby
<Ox0dea> shevy: Have events transpired not in correlation with what you had planned?
Musashi007 has quit [Quit: Musashi007]
<al2o3-cr> bamboozle, wish that was still on teletext :p
charliesome has quit [Client Quit]
<Aeyrix> Has my careful abstraction of the truth led you to a frustration?
<Aeyrix> Ox0dea: Are your
<Aeyrix> whizzbangs
<Aeyrix> shellacked?
shadoi has quit [Quit: Leaving.]
<Ox0dea> My jimmies remain sufficiently unrustled.
<al2o3-cr> pull your trollies up
dopie has joined #ruby
stardiviner has quit [Quit: Weird in coding now, or make love, only two things push me away from IRC.]
<Ox0dea> The first rule of Troll Club is that you must pay the troll toll.
sideshowcoder has quit [Quit: Connection closed for inactivity]
nb_bez___ has joined #ruby
<Aeyrix> So you'd say your jimmies aren't jambleD?
<Aeyrix> s/D/d/
andybernard has quit [Ping timeout: 246 seconds]
uber has quit [Ping timeout: 244 seconds]
platzhirsch has left #ruby [#ruby]
RegulationD has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
<miah> they're not jimmies, they're sprinkles!
anon_ has joined #ruby
frozen3 has joined #ruby
<Aeyrix> meant to say jimbles
<Aeyrix> fucked up
Yzguy has joined #ruby
<shevy> Ox0dea what Aeyrix wrote!
yqt has quit [Ping timeout: 244 seconds]
<Ox0dea> al2o3-cr: What shevy wrote!
<Aeyrix> kek
<Aeyrix> wait did al2 say something?
<Aeyrix> i have a lot of people on ignore
<Aeyrix> I CAN'T EVEN CHECK MY IGNORE LIST ON THIS APP
RobertBi_ has quit [Ping timeout: 256 seconds]
<Ox0dea> Aeyrix: Issue the appropriate IRC command and monitor your traffic?
<Aeyrix> ok al2 isn't ignore
<Aeyrix> cole
<Aeyrix> I think I did temporarily due to the spamming of ? ot
skade has quit [Quit: Computer has gone to sleep.]
robh71 has joined #ruby
<Ox0dea> Non-initial ?ot is safe.
frozen3 has quit [Remote host closed the connection]
<Aeyrix> Can't be too careful fam.
xxneolithicxx has quit [Ping timeout: 255 seconds]
Silox| has quit [Quit: Connection closed for inactivity]
<Ox0dea> ​?ot is borked?
<Ox0dea> ​?ot is borked.
michael_mbp has quit [Excess Flood]
marr has quit [Ping timeout: 252 seconds]
doublemalt_ has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
doublemalt_ has joined #ruby
xwct has quit [Ping timeout: 245 seconds]
jobewan has quit [Ping timeout: 246 seconds]
<Aeyrix> might be offtopic
<Aeyrix> maybe ssc removed it
<Aeyrix> i wouldn't be surprised
bruno- has joined #ruby
charliesome has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
silkfox has joined #ruby
rubie has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<Aeyrix> Ox0dea: give me reaction images
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
northfurr has quit [Quit: northfurr]
ramfjord has quit [Ping timeout: 265 seconds]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Looking forward to immutable String literals?
decaff has joined #ruby
chouhoulis has quit [Remote host closed the connection]
northfurr has joined #ruby
chouhoulis has joined #ruby
northfurr has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
<Ox0dea> Aeyrix: I don't has. :/
<Ox0dea> havenwood: 3.0 this Christmas?
<havenwood> Ox0dea: 2.3 this Christmas with a flag, 3.0 by default.
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
polpak has quit [Quit: leaving]
takenory has joined #ruby
ramfjord has joined #ruby
Yzguy has quit [Quit: Zzz...]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
stardiviner has quit [Client Quit]
neilnorthrop has quit [Remote host closed the connection]
jenrzzz has joined #ruby
northfurr has joined #ruby
stardiviner has joined #ruby
takenory has quit [Ping timeout: 246 seconds]
Azulinho has quit [Ping timeout: 246 seconds]
plshelpmeee has joined #ruby
devoldmx has joined #ruby
rfmind has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<plshelpmeee> Hello -- anyone ever able to run a Ruby file from a shell script?
northfurr has quit [Client Quit]
djbkd has joined #ruby
CloCkWeRX has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uber has joined #ruby
rfmind has quit [Client Quit]
lkba_ has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
charliesome has joined #ruby
<BraddPitt> I believe it is the same as running it from the command line, plshelpmeee
<BraddPitt> i.e. `ruby my_script.rb`
SenpaiSilver has joined #ruby
<plshelpmeee> @BraddPitt - my thoughts exactly
<plshelpmeee> However, no avail
<BraddPitt> is there any output?
Raboo has quit [Ping timeout: 252 seconds]
<plshelpmeee> works fine from the command line without encompassed in a shell script
Mia has quit [Read error: Connection reset by peer]
<BraddPitt> can you paste your shell script?
<plshelpmeee> yeah
<plshelpmeee> only one line needed for testing, really
SenpaiSilver has quit [Max SendQ exceeded]
Raboo has joined #ruby
<plshelpmeee> #!/usr/bin/ruby
northfurr has joined #ruby
<plshelpmeee> ruby file.rb "input data"
bronson has joined #ruby
<plshelpmeee> the file is in root of a rails app
<plshelpmeee> so file.rb
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
SenpaiSilver has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
tsigo has joined #ruby
<plshelpmeee> does require a file in config/constants
devoldmx has quit [Ping timeout: 250 seconds]
<plshelpmeee> too which i get
<plshelpmeee> "/Users/rudd/.rvm/rubies/ruby-2.1.4/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)"
jenrzzz has quit [Ping timeout: 245 seconds]
northfurr has quit [Client Quit]
jenrzzz has joined #ruby
blackmesa has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<tsigo> I've got a regex question! I'm trying to exclude certain characters at the end of links found in a string. I've got it working for excluding periods and commas, but I seem to have trouble excluding HTML entities (like &gt;) as well. Rubular is here: http://rubular.com/r/cxjPyZc7Sb
bronson has quit [Ping timeout: 260 seconds]
<tsigo> The regex I've currently got is `([a-z][a-z0-9\+\.\-]+:\/\/\S+)(?<!,|\.)`
xxneolithicxx has joined #ruby
barhum2013 has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<plshelpmeee> @BraddPitt -- just going to give up
<plshelpmeee> I put this up tho
<plshelpmeee> so fingers crossed
plshelpmeee has quit []
polysics has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cibs_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
n_blownapart has joined #ruby
dented42 has joined #ruby
dented42 has quit [Client Quit]
tkuchiki has joined #ruby
cibs has quit [Ping timeout: 272 seconds]
polysics has quit [Ping timeout: 260 seconds]
tkuchiki has quit [Remote host closed the connection]
bb010g has joined #ruby
<tsigo> Ox0dea: Not what I'm trying to do ;) I just want to find links inside text. I want to get rid of the HTML entity.
<nofxx> tsigo, I'm trying something like this: (\()?([a-z][a-z0-9\+\.\-]+:\/\/\S+)(?<!,|\.|^\\1)
<nofxx> use a match to see if the ( was before
<nofxx> not working , just so you might fix it faster, an idea
snath has joined #ruby
<tsigo> nofxx: Hmm, I'm not sure how that helps
snath has left #ruby [#ruby]
ledestin has joined #ruby
System42 has quit [Quit: Leaving]
<nofxx> tsigo, can't think of another way w/o look-behind
nolbuk has joined #ruby
maletor has quit []
arooni-mobile has joined #ruby
<Aeyrix> How can plshelpmeee not work out that error
<Aeyrix> fucking hell just read
sargas has quit [Quit: Leaving]
<sphex_> hey. is there any way to call a method found by starting at a certain point in the ancestor chain? specifically, calling a method from the same module as the one of the current method being invoked.
nolbuk has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
hmsimha_ has joined #ruby
_ht has quit [Quit: Konversation terminated!]
wollner has joined #ruby
houhoulis has joined #ruby
oo_ has quit [Remote host closed the connection]
decaff has quit [Quit: Leaving...]
oo_ has joined #ruby
diegoviola has joined #ruby
<Ox0dea> sphex_: Alas, __callee__ and __method__ both return paltry ol' Symbols. :/
ohaibbq has joined #ruby
Soviet_Jesus_ has left #ruby [#ruby]
<Ox0dea> sphex_: Does `self` not refer to the relevant Module for your purposes?
baweaver has quit [Ping timeout: 245 seconds]
dgutierrez1287 has joined #ruby
<sphex_> Ox0dea: ok. I just found info on "calling a super-super-method": self.class.superclass.superclass.instance_method(:method).bind(self).call
baweaver has joined #ruby
<sphex_> dunno if it works yet... or how it'll handle "super".
RegulationD has joined #ruby
frozen3 has joined #ruby
baweaver has quit [Remote host closed the connection]
keen_________ has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
<sphex_> Ox0dea: what I'm trying to do is a method that "translates" unhandled behavior by calling other methods, but it should skip the modules that handled it, and jump to the fallback methods starting from the current module only. there's a lot of "super" going on.
<wollner> guys need a help with a YAML syntax (not sure if I can achieve that) https://gist.github.com/anonymous/ca39d53313634a42546f
keen________ has quit [Ping timeout: 260 seconds]
<Aeyrix> wollner: no
pietr0 has quit [Quit: pietr0]
dgutierrez1287 has quit [Ping timeout: 245 seconds]
meph has joined #ruby
<wollner> Aeyrix: tks
Limix has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
<Ox0dea> wollner: Yes.
<Aeyrix> Ox0dea: that is fucking awful
<shevy> lol
<Ox0dea> Aeyrix: Anchors considered harmful?
<Aeyrix> You actually made yaml look like a bag of dicks
<Aeyrix> I didn't know that was possible.
<shevy> it is not valid yaml
<Ox0dea> This guy.
<Ox0dea> shevy: It should take you at most ten seconds to execute a gist.
<diegoviola> http://sprunge.us/VjBZ?rb <-- vending machine simulator I've wrote in ruby
<diegoviola> any ideas what I can improve?
<diegoviola> in my code
<Ox0dea> diegoviola: #chomp before #to_i is unnecessary.
<Ox0dea> >> "42\n\n\n".to_i
<ruboto> Ox0dea # => 42 (https://eval.in/419997)
<nofxx> diegoviola, make beer cheaper... kidding, I'd rather take the coffee =D
n_blownapart has quit []
<diegoviola> nofxx: rofl ok
cibs has joined #ruby
davedev2_ has quit [Ping timeout: 246 seconds]
<Ox0dea> diegoviola: You shouldn't impose heterogenous data upon yourself.
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
<diegoviola> Ox0dea: what do you mean?
davedev24 has joined #ruby
<wollner> Ox0dea: that doest no accomplish what I want...you are still repeating the values
mary5030 has quit [Remote host closed the connection]
allcentu1 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
cibs_ has quit [Ping timeout: 272 seconds]
davedev24 has quit [Client Quit]
jaycee has joined #ruby
dented42 has joined #ruby
robh71 has joined #ruby
tsigo has quit [Quit: Page closed]
bricker has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
mistym has joined #ruby
<Ox0dea> wollner: How do you mean?
mary5030 has quit [Ping timeout: 244 seconds]
danielpclark has joined #ruby
<Ox0dea> diegoviola: Your price data.
jhn has joined #ruby
towski_ has quit [Remote host closed the connection]
jhn has quit [Client Quit]
<diegoviola> Ox0dea: ok but this data is not real
elepedus has joined #ruby
<diegoviola> Ox0dea: it's just made up
jenrzzz has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
<diegoviola> actually, it's not far from the real data
icharlie has quit [Remote host closed the connection]
<diegoviola> Ox0dea: I still don't understand your point in saying that though
<Ox0dea> >> (1.methods - 1.0.methods).size # diegoviola
<diegoviola> imposing data on myself? wat?
<ruboto> Ox0dea # => 22 (https://eval.in/419999)
<Ox0dea> Just something to bear in mind.
jenrzzz has joined #ruby
<Ox0dea> diegoviola: Not sure how you missed that big-ass "heterogenous" back there.
jiada has joined #ruby
<diegoviola> Ox0dea: sorry that still doesn't make sense for me
devoldmx has quit [Ping timeout: 240 seconds]
segy has quit [Quit: ZNC - http://znc.in]
bronson has joined #ruby
dopieee has joined #ruby
<shevy> the Oracle can be cryptic
elepedus has quit [Ping timeout: 260 seconds]
FernandoBasso has quit [Ping timeout: 265 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dopie has quit [Ping timeout: 260 seconds]
lore- has joined #ruby
northfurr has joined #ruby
<lore-> I"m trying to print a int but leading 0's, for instance my int of 5 I want it output'd like 05. is there a method I can use to do that similar to decimal places with .round
<Ox0dea> >> '%02d' % 5 # lore-
<ruboto> Ox0dea # => "05" (https://eval.in/420000)
rek2gnulinux has joined #ruby
ReK2 has quit [Ping timeout: 246 seconds]
<Ox0dea> &ri sprintf
<`derpy> No results
<Ox0dea> adaedra: ^?
bronson has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
<lore-> Ox0dea: what do you call that?
DelDotB has joined #ruby
<Ox0dea> lore-: String formatting, in the most general sense.
<lore-> what did I do there, it worked
<Ox0dea> You told Kernel.sprintf to print a number to width 2 using leading 0s.
<Ox0dea> More or less.
segy has joined #ruby
barhum2013 has quit [Quit: barhum2013]
tvw has quit []
DelDotB has quit [Client Quit]
barhum2013 has joined #ruby
<nofxx> still trying to fix this regex, going to use it... any help with this look-behind, got invalid patter in look-behind trying a \1 on the escapes in the end
<nofxx> match 6 and 7
xxneolithicxx has joined #ruby
xwct has joined #ruby
tkuchiki has joined #ruby
<nofxx> might be easier just clean it up laters with another regex =/
xxneolithicxx has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
dopieee has quit [Quit: This computer has gone to sleep]
blackmesa has quit [Ping timeout: 252 seconds]
diego2 has joined #ruby
frozen3 has quit [Remote host closed the connection]
diego2 has quit [Changing host]
diego2 has joined #ruby
User458764 has joined #ruby
diegoviola is now known as Guest99161
Guest99161 has quit [Ping timeout: 244 seconds]
diego2 is now known as diegoviola
bruno- has quit [Ping timeout: 250 seconds]
northfurr has quit [Quit: northfurr]
riskish has joined #ruby
segy has quit [Quit: ZNC - http://znc.in]
phutchins has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Quit: Leaving]
djbkd has quit [Quit: My people need me...]
allcentu1 has joined #ruby
segy has joined #ruby
<lore-> thanks Ox0dea
saddad has quit [Ping timeout: 246 seconds]
jbw has quit [Ping timeout: 245 seconds]
<shevy> a new version of perl is out, it's the ultimate showdown battle - ruby versus perl, who will prevail with released versions \o/
robh71 has joined #ruby
tkuchiki has joined #ruby
<diegoviola> ruby \o/
allcentu1 has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
frozen3 has joined #ruby
northfurr has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
d2dchat has quit [Remote host closed the connection]
weemsledeux has joined #ruby
dorei has quit []
sevenseacat has joined #ruby
workmad3 has joined #ruby
oo_ has joined #ruby
dopie has joined #ruby
binaryplease1 has quit [Ping timeout: 265 seconds]
polysics has joined #ruby
tkuchiki has quit [Remote host closed the connection]
fullofcaffeine has quit [Read error: Connection reset by peer]
vdamewood has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robh71 has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
hmsimha_ has joined #ruby
maletor has joined #ruby
northfurr has quit [Quit: northfurr]
banghouse2 has joined #ruby
polysics has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
Limix has quit [Quit: Limix]
ramfjord has quit [Ping timeout: 245 seconds]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
Raidboss has joined #ruby
Raidboss has left #ruby [#ruby]
_blizzy_ has joined #ruby
rubie has quit [Remote host closed the connection]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dimasg has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
havenwood has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
lucyinthesky has joined #ruby
icarus has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
lucyinthesky has quit [Quit: Leaving]
bronson has quit [Remote host closed the connection]
avahey has quit [Quit: Connection closed for inactivity]
wheresmyjetpack has quit [Ping timeout: 260 seconds]
j_mcnally has joined #ruby
robh71 has joined #ruby
mclee has quit [Ping timeout: 246 seconds]
robh71 has quit [Client Quit]
tkuchiki has joined #ruby
banghouse2 has quit [Quit: What if the hokey pokey really is what it's all about?]
gambl0re has joined #ruby
mclee has joined #ruby
ericwood has quit [Ping timeout: 265 seconds]
ericwood has joined #ruby
danielpclark has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
modern has quit [Ping timeout: 240 seconds]
modern has joined #ruby
modern has quit [Changing host]
modern has joined #ruby
sarkyniin has quit [Ping timeout: 244 seconds]
dented42 has joined #ruby
bruno- has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
j_mcnall_ has joined #ruby
frozen3 has quit []
bjmllr has joined #ruby
j_mcnally has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 255 seconds]
ivanskie has joined #ruby
lostcuaz has quit [Quit: ZNC - http://znc.in]
danielpclark has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
<Ox0dea> diegoviola: I can has more than one item?
wallerdev has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
<diegoviola> Ox0dea: not currently
<Ox0dea> This vending machine a shit.
<shevy> give him fish
<diegoviola> Ox0dea: I'm happy to add that feature if you can help
<Ox0dea> diegoviola: Do you know how to loop?
<diegoviola> sure
<diegoviola> Ox0dea: I add a loop in the main method and add the items in an array?
<Ox0dea> Why do you figure you need an array?
<diegoviola> where else to add the items?
arooni-mobile has quit [Ping timeout: 244 seconds]
<Ox0dea> diegoviola: For telling me what all I bought, do you mean?
<diegoviola> Ox0dea: also, do real machines allow you to have more than one item at the same time?
sarkyniin has joined #ruby
<diegoviola> Ox0dea: yes
<Ox0dea> diegoviola: I expect there must be some out there, sure.
<Ox0dea> diegoviola: I thought you thought you needed an array to properly issue a potential refund.
<diegoviola> Ox0dea: no
<diegoviola> please don't insult my vending machine
<Ox0dea> Machines love constructive criticism.
havenwood has joined #ruby
<Ox0dea> An aesthetic consideration: display prices right-aligned and to two decimal places in the left "column", and then item names will naturally align as well.
<Ox0dea> UX is very important when it comes to vending machines.
<diegoviola> ok
dimasg has quit [Ping timeout: 265 seconds]
<Ox0dea> Also, look what happens if I have a dollar and buy something that costs seventy cents:
<Ox0dea> >> 1 - 0.7
<ruboto> Ox0dea # => 0.30000000000000004 (https://eval.in/420007)
<Ox0dea> Even Bitcoin isn't that granular.
braincrash has quit [Quit: bye bye]
tkuchiki has quit [Remote host closed the connection]
<diegoviola> Ox0dea: how do I align in the CLI? \t?
RegulationD has joined #ruby
<diegoviola> I mean with puts
<diegoviola> can you give me an example?
Aria has joined #ruby
Aria has quit [Client Quit]
aredridel is now known as Aria
<Ox0dea> diegoviola: Right-align the prices and left-align the item names.
<Ox0dea> A natural "divide" will form right down the middle.
dijikul is now known as jenksy
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
<diegoviola> Ox0dea: like this you mean? http://sprunge.us/UUAa
RegulationD has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
dented42_ has joined #ruby
User4587_ has joined #ruby
polysics has joined #ruby
<shevy> diegoviola you can align with .ljust and .rjust
<shevy> >> "abc".ljust(12) +'|'+ 'def'.rjust(10)
<ruboto> shevy # => "abc | def" (https://eval.in/420008)
RandyT_ has quit [Quit: ZNC - http://znc.in]
<Ox0dea> diegoviola: Oh, right. I forgot you were numbering the options.
grenierm has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
dented42 has quit [Ping timeout: 252 seconds]
<diegoviola> ty
RandyT_ has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
<Ox0dea> diegoviola: http://git.io/vs49A
oo_ has joined #ruby
<Ox0dea> The "scannability" is quite good in either case, but the latter is more appropriate for your purposes.
polysics has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
hydrozen has joined #ruby
diego3 has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
diego3 is now known as diegoviola
<diegoviola> Ox0dea: yes, numbering
grenierm has quit [Quit: grenierm]
bronson has joined #ruby
darkf has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Ox0dea> diegoviola: Aye, but you want users to be able to operating your thingamajig efficiently and painlessly.
<Ox0dea> Think of the children!
<diegoviola> numbers are easy
<diegoviola> what's so hard about them
saddad has joined #ruby
oo_ has quit [Remote host closed the connection]
<diegoviola> not that I'm against changing my program, but what's better?
<Ox0dea> I'm talking about displaying the prices more legibly.
<Ox0dea> I'm almost ninety, and my vision is thus not quite what it used to be, so I have to stick my finger on the screen and slowly move along the line to ensure I know how much I'm going to be wasting on this exorbitantly priced beer.
iateadonut has joined #ruby
eminencehc has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<shevy> lol
<shevy> 90
<Ox0dea> Almost!
<diegoviola> lol
<shevy> twice pontiki's age!
<Ox0dea> Isn't she Heinz?
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> No that is ketchup
<Ox0dea> s/ketch/cats/, I think.
<Ox0dea> diegoviola: If you wanted to get duper-fancy, you could ditch the numbers and highlight a "selection character" in a different color.
<Ox0dea> 'c' for coffee, 'b' for beer, 'h' for chocolate and whatnot.
<Ox0dea> And then you could require 'io/console' and use STDIN.getch so that the user doesn't even have to press Enter to make their selection.
<Ox0dea> The future is now!
Lucky__ has joined #ruby
<diegoviola> Ox0dea: that's cool
<Ox0dea> No, you.
<diegoviola> ?
<shevy> he is a marketing salesman
n_blownapart has joined #ruby
eminencehc has joined #ruby
* Ox0dea promises he doesn't process insurance claims.
<diegoviola> my machine has Coffee and Chocolate
<Ox0dea> That it does, so you'll need to disambiguate somehow.
dented42_ has quit [Ping timeout: 250 seconds]
<diegoviola> I can't use c
<Ox0dea> Well, you can use it once?
<diegoviola> maybe
<diegoviola> but when you go to an elevator, you also press numbers, numbers work well
devoldmx has joined #ruby
<diegoviola> but this is different
<Ox0dea> >> $vending_machine == $elevator
<ruboto> Ox0dea # => true (https://eval.in/420009)
<Ox0dea> Dammit, ruboto!
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<diegoviola> what about STDIN.getch?
<Ox0dea> ?try
<ruboto> Why don't you try it and see for yourself?
<shevy> diegoviola you could just use numbers
dgutierrez1287 has joined #ruby
ngscheurich has joined #ruby
elepedus has joined #ruby
saddad has quit [Ping timeout: 256 seconds]
leat has quit [Ping timeout: 240 seconds]
<Ox0dea> diegoviola: http://git.io/vs45u
<Ox0dea> That should clearly demonstrate the utility of `STDIN.getch`.
maletor has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
dgutierrez1287 has quit [Ping timeout: 245 seconds]
<Ox0dea> diegoviola: Also, the relevant authorities are likely to get on your case if chocolate is the only foodstuff your machine vends.
elepedus has quit [Ping timeout: 252 seconds]
maletor has joined #ruby
<n_blownapart> hi does ruby have math modules like python numpy et al ?
<shevy> n_blownapart depends on what you need
<Ox0dea> >> %w[cmath mathn matrix].each(&method(:require)) # n_blownapart
<ruboto> Ox0dea # => ["cmath", "mathn", "matrix"] (https://eval.in/420011)
<Ox0dea> So, yeah, sort of.
<shevy> PI can be found in Math :)
<Ox0dea> Alas, Ruby's facilities in this domain still pail in comparison. :/
<Ox0dea> *pale
<shevy> there is SciRuby https://github.com/SciRuby
<n_blownapart> Ox0dea, shevy yeah I went to an ipython talk today. yeah looked at SciRuby thanks.
<n_blownapart> it is huge at UC Berkeley but I hate looking at python code.
<shevy> haha
<shevy> well python has like 3x the people that ruby has :(
<diegoviola> Ox0dea: what else would you add in a machine?
<diegoviola> Ox0dea: I had pizza previously in my machine but then figured out machines don't sell pizza
<shevy> diegoviola a shotgun
<Ox0dea> diegoviola: I've seen vending machines with pizza in.
khebbie has joined #ruby
<shevy> bread. cookies
<shevy> zombies
<shevy> this will be the best vending machine ever
<Ox0dea> diegoviola: ^
<n_blownapart> I am planning to start learning ruby over. shevy will teach it to me.
<diegoviola> lol
<pontiki> isn't there a pizza vending machine that actually cooks the pizza, too?
<Ox0dea> Make it better than any vending machine ever devised.
<shevy> n_blownapart \o/ btw if you already know another programming language then it should be easy to transition
<Ox0dea> diegoviola: Are you familiar with combo boxes?
<diegoviola> Ox0dea: yes
Musashi007 has quit [Quit: Musashi007]
<shevy> the key to ruby is to keep it small and elegant
<Ox0dea> diegoviola: Your vending machine should totally use them.
<Ox0dea> "Small and elegant" does not mean "paltry".
<n_blownapart> shevy do you remember my moniker? I am notorious for asking basic questions. my other moniker is crucify_me ..
<diegoviola> Ox0dea: I don't know how to do combo boxes in the CLI, will I have to use GTK+?
<Ox0dea> diegoviola: I didn't mean that you should use "actual" combo boxes, only that the notion is applicable to a full-featured vending machine.
<n_blownapart> I dropped programming and started looking at math again. I love pencil and paper
<diegoviola> ah
<Ox0dea> diegoviola: Food -> Hot -> Pizza
<diegoviola> I appreciate all the help and advice though, this is an amazing channel
<Ox0dea> Alcohol -> Best -> Crown
bronson has quit [Remote host closed the connection]
<diegoviola> Ox0dea: right, I can see doing something like that, maybe with ncurses?
<Ox0dea> That might be overkill, but why not?
<diegoviola> that's probably overkill yeah
khebbie has quit [Ping timeout: 252 seconds]
qiukun has joined #ruby
<diegoviola> time for me to add some specs
eminencehc has quit [Remote host closed the connection]
CloCkWeRX has quit [Quit: Leaving.]
<diegoviola> with rspec
CloCkWeRX has joined #ruby
<shevy> n_blownapart not entirely sure... I have an ultra-short memory on IRC, no timestamps, it's a never-ending scroll to me
<diegoviola> I just want to practice some rspec
<diegoviola> should I only be testing input and output for different methods?
<shevy> diegoviola you can use ncurses. but did you actually finish the non-combo box CLI variant already?
bronson has joined #ruby
<Ox0dea> diegoviola: Ideally, but the world is not an ideal place.
<diegoviola> shevy: not yet
<diegoviola> shevy: one step at a time
<shevy> and how do you have so much time to ask questions, aren't you coding anything at all? :D
<Ox0dea> n_blownapart: What means "dropped programming"?
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<diegoviola> shevy: I don't know about that
<shevy> he gave up!
<n_blownapart> shevy, you've helped me a lot so a retroactive thanks. I do have the best monikers at least.
<diegoviola> ?
<Ox0dea> Aye, but I'm curious as to whether he went so far as to switch majors or something.
<Ox0dea> Math -> CS is fairly common, but not so much the reverse.
<n_blownapart> Ox0dea, it means I was teaching myself and annoying people here, then I stopped working on it after an injury.
gix has quit [Ping timeout: 264 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
<n_blownapart> Ox0dea, dropped means to give up in idiomatic English
<diegoviola> incidentally, I've been trying to find some examples of vending machines written in Ruby and I couldn't find any before I started writing this
<Ox0dea> n_blownapart: Did you just call me an idiom?
<Ox0dea> Sorry, this is my first day on the English.
<Ox0dea> diegoviola: There are any number of menu-like systems written in Ruby, and many of the ideas transfer seamlessly.
<diegoviola> Ox0dea: right
<n_blownapart> no Ox0dea an idiom is for example "to see the light." (it means to understand). you cannot tell its meaning by the individual words.
<Ox0dea> This guy.
gix has joined #ruby
<n_blownapart> Ox0dea, you were joking, sorry.
sarkyniin has quit [Quit: Quit]
tkuchiki has joined #ruby
oo_ has joined #ruby
grenierm has joined #ruby
<shevy> Ox0dea is a very serious Oracle
<shevy> when he writes "This guy." it is a statement of utter disapproval
eminencehc has joined #ruby
danielpclark has quit [Ping timeout: 256 seconds]
<diegoviola> I'm trying to write some specs for my code... but when I do require "./vending_machine" my script will just execute and termite, I want to test each method separately
<diegoviola> what I'm doing wrong?
siovene has joined #ruby
<siovene> Hi, sorry about the possibly stupid question, I'm new to this. Also sorry if this is about the language and not other things, but can you help with this? http://dpaste.com/08JXNTR
<n_blownapart> That guy.
<shevy> strange error
oo_ has quit [Remote host closed the connection]
darkf has quit [Read error: Connection reset by peer]
<siovene> shevy: I instaled ruby 2.0.0 with rvm because Ubuntu has 1.9 by default, and it looks like sup needs 2.0.0.
jacaballero has joined #ruby
<shevy> only reason I can think of is that you must have installed more than one ruby version
darkf has joined #ruby
<siovene> shevy: yeah that's right. I'll try uninstalling the system one.
<shevy> I guess it is using the gem from the 1.9 one then
<sevenseacat> ubuntu does not 'have 1.9 by default'
<sevenseacat> it comes with no version of ruby preinstalled and offers 1.9, 2.0, and i believe 2.1 now in its repos
jacaballero has quit [Max SendQ exceeded]
<Ox0dea> diegoviola: It's likely the case that the building isn't up to code. I seem to recall modern architects use some sort of lacquer on the wood to prevent such incursions.
<siovene> sevenseacat: what I meant is apt-get install ruby installs 1.9 on 15.04.
<Ox0dea> What a tragedy.
<sevenseacat> siovene: yes, you wanted apt-get install ruby2 .
<siovene> sevenseacat: oh thanks.
xxneolithicxx has joined #ruby
<diegoviola> Ox0dea: no really, can you actually help?
xxneolithicxx has quit [Max SendQ exceeded]
<sevenseacat> not that you should be using apt-packaged rubies anyway. just wanted to clear up the misconception.
<Ox0dea> diegoviola: If your program has termites, you need to stop and reconsider some things.
<diegoviola> Ox0dea: my terminal emulator is called termite, not my program
shadoi has joined #ruby
casadei_ has quit [Remote host closed the connection]
<diegoviola> anyway, any ideas?
<Ox0dea> Extract testable pieces.
<Ox0dea> Your thing is pretty much all IO right now.
<diegoviola> yes, and that can't be tested with rspec?
<Ox0dea> It would be ill-advised at this point in your journey.
rbowlby has joined #ruby
<diegoviola> that's fine, thanks
fedexo has joined #ruby
<toretore> diegoviola: your library should function independently of any user input or other io
jbw has joined #ruby
khebbie has joined #ruby
polysics has joined #ruby
danielpclark has joined #ruby
khebbie has quit [Remote host closed the connection]
braincra- has joined #ruby
<diegoviola> toretore: yes I agree
dudedudeman has joined #ruby
jiada has quit [Quit: Connection closed for inactivity]
<dudedudeman> wasssup #ruby
hydrozen has joined #ruby
n_blownapart has quit [Quit: Leaving]
<diegoviola> toretore: I'm not sure how I'll go into writing a library that is independently of input though for this purpose... are there any examples?
spewbaby has joined #ruby
<nofxx> diegoviola, pass what the input will be to it on init
<dudedudeman> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<dudedudeman> ah. i forgot what that one was
braincrash has quit [Ping timeout: 272 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polysics has quit [Ping timeout: 246 seconds]
<diegoviola> nofxx: oh so I just remove my gets and I pass the data from my specs instead?
moss has quit [Read error: Connection reset by peer]
jhack has quit [Ping timeout: 244 seconds]
<toretore> diegoviola: class VendingMachine;end; machine = VendingMachine.new; loop{ cmd = gets.chomp; case cmd; when /^buy (.+)$/ then machine.buy($1); end }
moss has joined #ruby
<diegoviola> toretore: cool thanks
<toretore> def test_buying_chocolate; assert_equal 'chocolate bar', machine.buy('chocolate'); end
veduardo has quit [Ping timeout: 240 seconds]
astrobun_ has joined #ruby
<toretore> and don't complicate things with this spec bs
framling has quit [Remote host closed the connection]
framling has joined #ruby
<Ox0dea> Belay that.
blue_deref has joined #ruby
<toretore> once you're become familiar with minitest and understand what xspec gives you that it doesn't, then make the switch
<nofxx> ok, after giving up, had a supper and a coffee, I'm about to give up again with this bloody regex http://rubular.com/r/KTmRdzfuFW match 6 & 7 .. any tips please.
sdwrage has quit [Quit: This computer has gone to sleep]
<bougyman> most of them seem wrong.
<bougyman> not just 6 and 7
<nofxx> bougyman, why? how?
tubbo has quit [Ping timeout: 256 seconds]
<Ox0dea> nofxx: Look at the start of the matches?
<Ox0dea> Only #4 is correct.
<nofxx> Ox0dea, that's what I'm trying with the first match and the \1 , but doesn't work
luckymeerza has joined #ruby
<nofxx> the \1 inside the look-behing gives crazy parse error, would be a fit
jenksy has quit [Ping timeout: 246 seconds]
<nofxx> bloody parenthesis
yfeldblum has joined #ruby
rikai has quit [Ping timeout: 244 seconds]
nwhirschfeld_ has quit [Ping timeout: 246 seconds]
<nofxx> jez, didn't updated, sorry just a sec
<Ox0dea> It got worse.
<nofxx> hehehe
User4587_ has quit [Ping timeout: 255 seconds]
<nofxx> Ox0dea, but there's the idea...
<nofxx> thinking of making a gem out of it, a information grabber ... out of any chunk of text: txt, html, pdf, retrieve all URL, phonenumber, and address... the latter the trickier
jenrzzz has quit [Ping timeout: 265 seconds]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
<toretore> http://rubular.com/r/EYkzgvQDLN - path must be defined more narrowly probably
<toretore> address haha good luck
yfeldblu_ has joined #ruby
RandyT_ has quit [Quit: ZNC - http://znc.in]
<toretore> you need some deep learning neural shit for that
<nofxx> toretore, heheh... yeah, my only hope: all geonames DB to match. at least match city or zip
<bougyman> it's too late and i'm too many beers in
<nofxx> grab the line, hope for the best
spewbaby has quit [Quit: WeeChat 1.3]
khebbie has joined #ruby
amystephen has quit [Quit: amystephen]
<Ox0dea> >> $too_many_beers == true
<bougyman> I don't know how you solve Link (http://the.link) as well as http://wikipedia/link_(with_parens)
<ruboto> Ox0dea # => false (https://eval.in/420018)
<nofxx> toretore, with a geocoding service (paid) you might check for validity... then I see a great success ratio
<bougyman> http://rubular.com/r/XvmKmwI2Bo that's close.
<toretore> regex tip #345: it's often easier to say what you don't expect than what you do
<bougyman> you really need an engine for this, not a single regex.
<toretore> nofxx: try putting a japanese, chinese or nigerian address into that
khebbie has quit [Remote host closed the connection]
<bougyman> mine wouldn't much care about language or encoding.
<bougyman> but the two parenthetical expressions aren't really differentiatable by regex.
RandyT_ has joined #ruby
<bougyman> there's just no math for it.
<Ox0dea> See: Markdown.
yfeldblum has quit [Ping timeout: 252 seconds]
<nofxx> Ox0dea, I totally agree name is impossible. Only way is join all that's left with a space. =D
<Ox0dea> (As a demonstration of the infeasibility of matching nested parentheses with regular expressions, to clarify.)
<bougyman> it's not the nesting, it's the sample data.
<toretore> markdown sucks tho
<Ox0dea> nofxx: The regular expression for matching human names is /.*/.
bricker has joined #ruby
<bougyman> nofxx: did you look at http://rubular.com/r/XvmKmwI2Bo ?
<nofxx> toretore, named matches are nice, ty. But the bug persists here. I'm on the right rubular?
<toretore> nofxx: what's the bug?
<nofxx> no one, just missed that link
<nofxx> thank you guys, who did it ??
arooni-mobile has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
<nofxx> ah.. match 4 is a invalid, but anyways is better... gonna try it a lil
<toretore> you have to define what is valid and invalid
<toretore> it's a machine
<bougyman> nofxx: you can't diff between 4 and 5 with regular expression
<bougyman> .you just can't.
<bougyman> if you want to see what a proper (?really?) url regex looks like, take a look at some of these: https://mathiasbynens.be/demo/url-regex
<nofxx> bougyman, submatch inside and permit it to have parenthesis and brackets only if it's matched inside... ( i was trying the opposite w/o lock: matching if it starts )
<bougyman> I recommend @scottgonzales (1347 chars)
<siovene> Hey again. Attempting to apt-get install ruby2.0 on Ubuntu also tries to install ruby1.9. That doesn't sound normal... is it?
<nofxx> siovene, add the brightbox repo
<bougyman> siovene: sometimes debuntu would name 2.0 1.9
<siovene> Here's the list of the packages that would be installed: libruby1.9.1 libruby2.0 ruby ruby1.9.1 rubygems-integration
psy_ has quit [Ping timeout: 246 seconds]
<bougyman> siovene: apt-cache show ruby1.9.1
<bougyman> is it actually 1.9.1?
<bougyman> or is it 1.9.1-2.0.0 ?
<nofxx> bougyman, ahh.. I see now, I can't match for opening ( and use \1 I would want ending )
<bougyman> nofxx: exactly.
hmsimha_ has joined #ruby
<bougyman> you'd need logic in the engine.
<bougyman> not much, but a little.
jpfuentes2 has joined #ruby
shadoi has quit [Quit: Leaving.]
<siovene> bougyman: actually 1.9.1. No mention of anything 2.0.
<bougyman> weird
<siovene> nofxx: yeah that repo seems to work, now installing only 2.0.0
blackmesa has joined #ruby
RandyT_ has quit [Quit: ZNC - http://znc.in]
greenride has quit [Quit: Leaving.]
RandyT_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Antiarc has quit [Read error: Connection reset by peer]
qiukun has quit [Quit: qiukun]
Antiarc has joined #ruby
wollner has quit [Ping timeout: 245 seconds]
wollner has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
meph has quit [Remote host closed the connection]
NivenHuH has joined #ruby
ivanskie has joined #ruby
psy has joined #ruby
icharlie has joined #ruby
robbyoconnor has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
pawnbox has joined #ruby
khebbie has joined #ruby
cgfbee has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
cgfbee has joined #ruby
sdwrage has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
hmsimha_ has quit [Ping timeout: 265 seconds]
flegercovateam has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
dudedudeman has left #ruby [#ruby]
fullofcaffeine has joined #ruby
ohaibbq_ has joined #ruby
ohaibbq has quit [Read error: Connection reset by peer]
neilnorthrop has joined #ruby
pawnbox_ has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
tkuchiki has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
neilnorthrop has quit [Remote host closed the connection]
nickenchuggets has joined #ruby
neilnorthrop has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox_ has quit [Remote host closed the connection]
fullofcaffeine has quit [Ping timeout: 265 seconds]
krz has joined #ruby
ruby-lang426 has joined #ruby
towler has joined #ruby
polysics has joined #ruby
pawnbox has joined #ruby
qiukun has joined #ruby
kies has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
mpicci has quit [Quit: Connection closed for inactivity]
polysics has quit [Ping timeout: 246 seconds]
dhjondoh has joined #ruby
Guest97877 has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 240 seconds]
ItSANgo has quit [Ping timeout: 255 seconds]
sgambino_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
ruby-lang426 has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
nahtnam has joined #ruby
aganov has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
aiesec has quit [Quit: WeeChat 0.4.2]
devoldmx has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
elepedus has joined #ruby
Musashi007 has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
Fevrale has joined #ruby
last_staff has joined #ruby
kriskropd has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby
elepedus has quit [Ping timeout: 272 seconds]
diego2 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 244 seconds]
pawnbox has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
v0n has quit [Ping timeout: 256 seconds]
arooni-mobile has quit [Ping timeout: 244 seconds]
jeadre has joined #ruby
duncannz has joined #ruby
Contigi777 has joined #ruby
diego2 has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexAltea has joined #ruby
blackmesa has joined #ruby
User458764 has joined #ruby
kriskropd has joined #ruby
Contigi has quit [Ping timeout: 256 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
v0n has joined #ruby
inversesquarelaw has joined #ruby
tagrudev has joined #ruby
inversesquarelaw has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
mrodrigues has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has joined #ruby
yardenbar has joined #ruby
<mrodrigues> I have some code where a user can pass a block as a callback. The callback gets run in a separate thread. If the user's code raises an error it kills the thread without warning until #join is called on the thread. Should I be trusting users to handle errors here? Should I be notifying them if their block fails? https://github.com/mikerodrigues/orderbook/blob/master/lib/orderbook.rb#L173
maletor has quit [Quit: Computer has gone to sleep.]
joe2 has joined #ruby
benlovell has joined #ruby
DelDotB has joined #ruby
AnoHito_ has joined #ruby
jokester has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
AnoHito has quit [Ping timeout: 246 seconds]
neilnorthrop has quit []
User4587_ has joined #ruby
Oog_ has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
AnoHito_ has quit [Ping timeout: 244 seconds]
AnoHito has joined #ruby
AnoHito_ has joined #ruby
ngscheurich has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
Pupp3tm4st3r has joined #ruby
<dymk> jesus, some guy is suggesting that it's bizzare for ruby to be used for string manipulations
AnoHito has quit [Ping timeout: 250 seconds]
freeze has quit [Ping timeout: 256 seconds]
<dymk> he's asking for an example program on github that does string manipulation
<dymk> Does ActionView still append to an internal string buffer? In which case any rails app counts...
bronson has joined #ruby
<sevenseacat> o.O
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
freeze has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
<baweaver> Ruby, Perl, and Python are pretty well meant for string manipulation
<dymk> at this point i can't tell if the fella is serious or not
<dymk> or maybe I'm totally misinterpreting what he's asking
<baweaver> ed -> sed -> awk -> perl -> ruby
<dymk> yep
tkuchiki has joined #ruby
timonv has joined #ruby
<baweaver> I'll let you in on a secret though
<baweaver> listen closely
* sevenseacat listens
* dymk scoots his chair in
<baweaver> a majority of ruby reddit has no idea what they're talking about
htmldrum has joined #ruby
<sevenseacat> lol
<dymk> no kidding
<dymk> they're asking for a better C api, and i'm sitting here like "have you even used it before?"
<baweaver> Honestly most of reddit tends to be frustrated males between the ages of 20-30
<sevenseacat> I knew there was a reason I didn't use it.
<dymk> there was an announcement post from the new CTO today
<mrodrigues> what's the general makeup of #ruby-lang?
<baweaver> I consider myself a tolerable frustrated male between the ages of 20 and 30
<dymk> someone was saying that reddit costs something on the order of $20M per year to run
<baweaver> I'd believe it.
bronson has quit [Ping timeout: 240 seconds]
<dymk> lol
<sevenseacat> I bet someone else argued
<baweaver> You should see our AWS costs some time.
<sevenseacat> for the sake of it
hs366 has joined #ruby
<baweaver> not that I can share though.
<sevenseacat> 'nuh uh, if they were using linode it would be cheaper' or some shit
<dymk> baweaver, seriously? damn, remind me never to scale
<baweaver> dymk: I seriously doubt you scale to our level
<dymk> sevenseacat, there was something in that vein in there, hah
ndrei has quit [Ping timeout: 250 seconds]
polysics has joined #ruby
<dymk> baweaver, i'll have you know i store gigabytes (gigabytes!) of porn on my little home server
<sevenseacat> I've been on the internet a long time.
<baweaver> not meant as a challenge, mind.
<dymk> just sayin', gigabytes
<sevenseacat> dymk: do you know where baweaver works? >_>
tkuchiki has quit [Ping timeout: 244 seconds]
<dymk> do you know where *i* work?
tkuchiki has joined #ruby
<baweaver> We extract something on the order of 100 TB of data every hour
<dymk> but no, where do you work baweaver?
<baweaver> Sony
<dymk> Apple
<baweaver> PS4 team
<fatsum> :(
<fatsum> No Amazon employees?
<baweaver> I know a few
<sevenseacat> my former boss just got a job at amazon, does that count?
<Ox0dea> baweaver: Enjoy your nightmare fuel: http://git.io/vsBsf
<baweaver> they're very keen on switching
<nofxx> you can get 1500 linodes with 120gb ram / 20 cores / 2TB SSD for an year
<fatsum> I found that interesting.
<baweaver> Not my division :D
<dymk> baweaver, that's pretty cool, i'm only an intern, so I can't wave my apple around too much :P
<fatsum> dymk: What do you do at AAPL?
<fatsum> Ah, intern.
ndrei has joined #ruby
<dymk> core kernel
<Aeyrix> Nice.
<Aeyrix> I almost worked for Apple/
<dymk> so that ps4.html link is pretty nifty looking
<baweaver> Hm, I'll have to read that one later.
<baweaver> Aeyrix: same
<fatsum> Wrote an XNU fuzzer once, was pretty ugly.
<sevenseacat> didnt mean to get all name-droppy like that >_>
<baweaver> infrastructure automation here
<baweaver> my name is bigger sevenseacat
<dymk> sevenseacat, something something you should see the CS page of my uni ;_;
DelDotB has quit [Quit: DelDotB]
<Aeyrix> AWS is pretty damn expensive.
<fatsum> baweaver: Not sure if I want a console or not.
<baweaver> It is
<Aeyrix> Source: Currently competing with AWS.
<dymk> fatsum, XNU is ugly, only fitting the fuzzer is too
<fatsum> Aeyrix: I have 17 instances on AWS, and I don't use them. :(
<baweaver> Source: I see the contracts and weep
<Aeyrix> kek
Macaveli has joined #ruby
<fatsum> yorickpeterse: Touche.
<fatsum> dymk: Touche.
<sevenseacat> fwiw I think the string immutability idea is good
freeze has quit [Ping timeout: 260 seconds]
<dymk> sure, as long as they have a fallback for having mutable strings
<baweaver> As long as GC keeps up
<dymk> it won't
<nofxx> or, 30.000 cores + 150.000gb of ram for an year
<baweaver> Haskell / Scala do fine with it.
<sevenseacat> also means the difference between symbols and strings is getting smaller
<fatsum> dymk: Sure you heard 2006 wants its null pointer dereferences back ;p
<fatsum> And the DYLD mess.
<dymk> don't remind me D:
sinkensabe has joined #ruby
<Aeyrix> What's the current proposal on instantiating an immutable string versus a mutable one?
<fatsum> So many local privilege escalation bugs in OS X - a bit of a surprise that "HackingTeam" had none.
<Aeyrix> "dongs" is still mutable?
<dymk> baweaver, sure, but their type system is built around immutability, and nice thread local heaps, etc
AnoHito has joined #ruby
<Aeyrix> String.new("dongs") is not?
benlovell has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
<baweaver> I have a feeling Ruby is going to borrow a lot from Scala coming up here soon.
polysics has quit [Ping timeout: 265 seconds]
<dymk> it's gonna be interesting to see how they bolt immutable whatnots onto the current vm
<Aeyrix> I'll just move to Elixir.
DelDotB has joined #ruby
freeze has joined #ruby
<fatsum> I've heard good things about rust.
<Aeyrix> No you haven't.
<dymk> Aeyrix, i tried it, it's.... not a great story yet
Macaveli has quit [Read error: Connection reset by peer]
<dymk> elixir/phoenix that is
<Aeyrix> dymk: Tell that to sevenseacat or Radar?
<Aeyrix> s/\?/./
<sevenseacat> waaaaaat
<Aeyrix> dymk is calling Elixir not great.
<dymk> i hope i didn't wake the phoenix evangelicals ;)
<sevenseacat> phoenix is an awesome story
Macaveli has joined #ruby
<dymk> and I like the language... as a concept
arup_r has joined #ruby
<dymk> LOL
<dymk> not to be hostile, I really do like the language
<baweaver> run
<dymk> and phoenix is on the right track
<baweaver> run quickly
<baweaver> before Radar sees
* dymk ducks for cover
<Radar> before who
AnoHito_ has quit [Ping timeout: 244 seconds]
<dymk> stop pinging him on irc! he'll see me!
* baweaver grabs popcorn
<dymk> OH SHIT
<dymk> uh hi radar
<baweaver> 'alo
* Radar would like to share baweaver's popcorn
<Radar> dymk: continue
* baweaver passes some over
<sevenseacat> btw phoenix 1.0 is due soon.
<sevenseacat> \o/
<baweaver> Is it now? Nice.
<certainty> moin
<baweaver> Bom dia
<dymk> Radar, I tried phoenix, its ORM is nowhere near activerecord's
<sevenseacat> bonan tagon, certainty
<fatsum> Phoneix?
<sevenseacat> sure, activerecord's is 10 years more mature
<certainty> sevenseacat: did you just put a spell on me?
<dymk> well yeah and that's what I'm saying :P
<Aeyrix> Does anyone use DataMapper?
<dymk> it's not a good story, right now
<baweaver> sevenseacat: heh, you win. My portuguese is weak right now.
<fatsum> Meh.
<sevenseacat> lotus does, and i've just started looking at lotus today
<fatsum> I need to learn Catalan.
<Aeyrix> Why?
<certainty> sevenseacat: lotus is great
<Aeyrix> certainty: Talk Lotus to me.
<baweaver> Well honestly I never judge a book too much by its first chapter or two
<dymk> also docs could use some love
Oog_ has quit []
arup_r_ has joined #ruby
<baweaver> some go amazingly and flop later
<baweaver> and the converse is true as well
<sevenseacat> seems to have lots more smaller parts, compared to a ruby app
<sevenseacat> *rails app
<certainty> Aeyrix: :)
<Aeyrix> You mean inverse, right?
<Aeyrix> Converse means to engage in conversation.
<dymk> there also aren't many good resources on what a "good" elixir application should look like out there
<Aeyrix> Oh wait it also means the opposite
<Aeyrix> wtf
<Aeyrix> English is so fucking broken
<baweaver> hehehe
<baweaver> yes
<Aeyrix> English is like Python 3
<baweaver> test it is
<sevenseacat> dymk: welcome to the scenario of early adopters.
<baweaver> wow aliases work here too
<baweaver> fun
benlovell has quit [Ping timeout: 252 seconds]
<dymk> sevenseacat, indeed
MasterPiece has joined #ruby
* baweaver needs to remember that later so he doesn't alias an entire rails controller into chat
<certainty> to me lotus looks very appealing. It's way closer to what i'd build outside the rails context.
<dymk> oh, elixir's metaprogramming story: it's way more difficult than even D is
<sevenseacat> I have not yet built anything significant in Elixir/Phoenix (nor have I even looked at Ecto) but it looks very promising
<Aeyrix> I tried Haskell again like
<baweaver> Now you want to see fun
<Aeyrix> two days ago
<dymk> things like not being able to extend structs at compile time
jenksy has joined #ruby
<baweaver> Aeyrix: Big Data
<Aeyrix> Big egos
wallerdev has joined #ruby
<certainty> Aeyrix: didn't you like it?
tubbo has joined #ruby
<Aeyrix> certainty: no
* sevenseacat keeps following the lotus Getting Started guide
<Aeyrix> I dislike functional programming as a whole tbq
<Aeyrix> h
<baweaver> it's definitely something that takes a bit
<Aeyrix> I don't need my shit to be mathematically provable.
<dymk> it's like they tried to keep the core language as small as possible and thus nerfed the usefulness of things like structs
WilfredTheGreat has joined #ruby
<dymk> but there's still techncially special language support for structs?
<dymk> things like that which might get fixed in v2.x
<certainty> Aeyrix: oh ok i see. It's not about being mathematically provable most of the time though. Having a mathematical foundation can be good, since there is strong theory about how things compose
<Aeyrix> certainty: I write Ruby though.
<Aeyrix> It's like
<Aeyrix> why bother
<Aeyrix> Ruby is so much easier to write
<Aeyrix> 99% of the time, if not more
User4587_ has quit [Ping timeout: 250 seconds]
pawnbox has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 272 seconds]
<dymk> anyways, that's why i think the story isn't that great (re: sevenseacat and Radar)
<sevenseacat> fair enough
<Aeyrix> dymk: Rails 4 in Action isn't a story book
<Aeyrix> it's a nonfiction guide to origami
* sevenseacat checks so many things right now
<dymk> you mean artesian, hand crafted with love, non GMO code?
<Aeyrix> Yes.
noethics has quit [Quit: Leaving]
<Aeyrix> It's even locally grown.
Tempesta has quit [Read error: Connection reset by peer]
blue_deref has quit [Quit: bbn]
benlovell has joined #ruby
Tempesta has joined #ruby
pawnbox has joined #ruby
<dymk> all it needs now is an Our Amazing Journey bankruptcy Medium blog entry
<Aeyrix> lmfao
<baweaver> sevenseacat: welcome to programming
<baweaver> again
<Aeyrix> "Why we Failed"
<Aeyrix> "We fucked up p hard tbh"
<certainty> Aeyrix: the ideas apply equally to all languages
<baweaver> dymk: dangit
<dymk> "Would I do it again? Of-fucking-course"
<baweaver> my sides
<dymk> i'll be here all night folks
<baweaver> Don't forget to post links on HN and Reddit
<dymk> but really i won't, because work calls tomorrow
<baweaver> or it didn't really happen
<dymk> into the intern silos
eminencehc has quit [Remote host closed the connection]
<Aeyrix> tfw no internship
<baweaver> How much interning do you have left
<Aeyrix> tfw full time job insteafd
<Aeyrix> s/fd/d
<dymk> 1 month or thereabouts, then back to school
<nofxx> need a cool name for my gem... it fetches useful (url, phones and emails currently) information out of text
<baweaver> bay area?
<baweaver> or seattle?
<dymk> bay area
jbw has quit [Ping timeout: 260 seconds]
<baweaver> oho
<dymk> ikr
<baweaver> we'll be getting some type of Ruby thing going again for Coffee
<Aeyrix> nofxx: Forager
* baweaver lives in East Bay
* baweaver works in SoMA
<Aeyrix> South Maryland?
<dymk> whut
icharlie has quit [Remote host closed the connection]
<dymk> I'm from norcal, dunno what these areas are
khebbie has joined #ruby
<baweaver> South of Market Area in San Francisco.
<nofxx> Aeyrix, that's a cool name. And rubygems available.
<Aeyrix> nofxx: :D
<dymk> baweaver, oh solid, are there ruby meetups often?
<Aeyrix> I'm good with project names.
<baweaver> I just managed to knick rapture as a gem name :D
* zenspider doesn't want to rewrap libsdl...
jbw has joined #ruby
<Aeyrix> >knick
<Aeyrix> m8
<dymk> nofxx: prism_on_a_budget
<zenspider> there's no place like home. there's no place like home. there's no place like home.
<Aeyrix> don't make me
<baweaver> already got clairvoyant too
<Aeyrix> define:knick
<Aeyrix> t b h
<Aeyrix> i'm kinda worried about what this immutable string thing will do to Ruby
oo_ has joined #ruby
<dymk> baweaver, but please do let me know about dev meetups, i'm always down for that
<baweaver> english slang is nick, american slang on top of it is knick in some cases.
<dymk> gotta make the best out of my time in the bay
<Aeyrix> baweaver: Brits say 'lift'
<baweaver> Probably next Friday is when I plan
oo_ has quit [Remote host closed the connection]
<dymk> please do pm me with details
skade has joined #ruby
<dymk> zzz
<baweaver> watch the ruby meetup group
<baweaver> should be posting soon.
<dymk> meetup.com meetup group?
finges_ has quit [Ping timeout: 252 seconds]
<nofxx> dymk, didn't find, some sort of this one? https://www.parsehub.com/
russt has quit [Max SendQ exceeded]
<baweaver> yep
<dymk> perfect
<baweaver> Aeyrix: American english you can literally make crap up and someone will believe you.
russt has joined #ruby
mrodrigues has quit [Quit: Page closed]
<baweaver> yep
ddv has quit [Changing host]
ddv has joined #ruby
arup_r_ has quit [Remote host closed the connection]
<baweaver> We're working on getting devs to take back over
<baweaver> bunch of project managers and business men got a hold of the scheduling
<dymk> cool, joined the group
<baweaver> zenspider: SeattleRB is far better at this point, we might steal a few ideas ;)
<zenspider> steal away. I gave a talk about this
<baweaver> orly?
<baweaver> What was the title on that one?
<zenspider> nerd party v3.1
<baweaver> (looks through zenspider's site)
<baweaver> ah, very nice,
AlphaAtom has joined #ruby
ElSif has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
<zenspider> ugh... FFI or C... I'm fucked either way. :(
jiada has joined #ruby
<zenspider> esp fucked with FFI
<baweaver> SF Ruby consists of (that I remember on the channel) eam, cirwin, miah, xshay, and a few others I don't remember
benlovell has quit [Ping timeout: 244 seconds]
<baweaver> but seriously, zenspider, just look at the names of most of the meetups we have :'(
<sevenseacat> lawl
skade has quit [Quit: Computer has gone to sleep.]
<sevenseacat> "How to Make Users Win: Customer Development "
<baweaver> lean guides, making the user win, etc etc
<zenspider> ya got hijacked by douchebags. you let them.
krz has quit [Ping timeout: 265 seconds]
<baweaver> oi, been here for a year
<baweaver> Working on fixing.
jbw has quit [Ping timeout: 250 seconds]
<zenspider> you, collectively. not YOU
jbw has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 245 seconds]
krz has joined #ruby
blackmesa has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
<baweaver> ah
<baweaver> fair
codecop_ has quit [Read error: Connection reset by peer]
<baweaver> still working on fixing that
<Aeyrix> lmao
<Aeyrix> casuals
<baweaver> it'd help if there was more support for open source and meetups here.
bruno- has joined #ruby
<baweaver> referring to my work
<Aeyrix> baweaver: Has Sony tried git?
<Aeyrix> More specifically
<Aeyrix> git --gud
<Aeyrix> :^)
<baweaver> Working on OSS, legal is a freaking pain.
<Aeyrix> kek i think that joke went over your head
<baweaver> probably
<Aeyrix> "get good"
<Aeyrix> "git good"
<Aeyrix> "git gud"
<baweaver> didn't think it was that funny, or that it was a joke
<Ox0dea> Joke is kill.
amclain has quit [Quit: Leaving]
<Aeyrix> yeah that's what we thought about sony's sec :^)
<Aeyrix> okay shitposting over
dumdedum has joined #ruby
<Aeyrix> that's a pretty good reworking of the League of Legends logo tbh
michael_mbp has quit [Excess Flood]
blackmesa has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 244 seconds]
Pupp3tm4st3r has joined #ruby
<Aeyrix> this is really cool
r0bby_ has joined #ruby
dionysus69 has joined #ruby
michael_mbp has joined #ruby
<zenspider> not as cool as britian's 1.2km long pycrete aircraft carrier
sts_ has joined #ruby
<Aeyrix> wait what
jbw has quit [Ping timeout: 252 seconds]
sts_ is now known as Guest18028
weemsledeux has joined #ruby
nirix has joined #ruby
<sevenseacat> still doing the getting started guide for lotus, but so far I'm not sold
<zenspider> sevenseacat: wherefore?
juanpaucar has joined #ruby
<sevenseacat> seems to be very verbose and explicit, which isnt necessarily a bad thing, but it is a tedious thing
dhjondoh has quit [Quit: dhjondoh]
<zenspider> pity
<sevenseacat> and a view deciding which template to render just squicks me out a little bit
<sevenseacat> though that may be because I'm not used to it
<miah> sup
<baweaver> hehe
<baweaver> alo miah
<Aeyrix> just read about the aircraft carrier zenspider
<Aeyrix> you're right, that's cooler
<baweaver> #14 be broke
<Aeyrix> because it was an iceberg :^)
juanpauc_ has joined #ruby
<baweaver> they said ruby test, was curious, going through practice. Lots of fun little typos
oo_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<zenspider> Last update: Aug 3, 2015
<zenspider> file a bug
<baweaver> will eventually, writing down it all for now
n_blownapart has joined #ruby
dhjondoh has joined #ruby
Meow-J has joined #ruby
juanpaucar has joined #ruby
vondruch has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
<baweaver> while laughing at their ruby code
<baweaver> I should feel bad
<baweaver> I was also correcting parts of that Mazes book I bought
RTG` has quit [Ping timeout: 272 seconds]
<baweaver> Not sure why people do this: ary = []; ary << v if v; ary << x if x
<baweaver> instead of just doing this: ary = [v,x].compact
<n_blownapart> hi why can't I use a comma in this parallel assignment at line 2? http://pastie.org/10365649
<baweaver> or select(&:itself) if it's false
<baweaver> still
elepedus has joined #ruby
<fatsum> baweaver: disturbing that people pay $150 for a certification that shows they know what chomp, for and if means. ;o
juanpauc_ has joined #ruby
RTG` has joined #ruby
<baweaver> n_blownapart: that's not parallel
<fatsum> Seen worse things, but christ.
<baweaver> indeed
pawnbox has quit [Ping timeout: 246 seconds]
<sevenseacat> thats enough lotus for me
<zenspider> n_blownapart: that's not assignment, nor is it parallel
<baweaver> ^
* baweaver is half asleep
* sevenseacat goes back to phoenix
<zenspider> n_blownapart: you can do that with `return a, b` if you want
polysics has joined #ruby
<zenspider> or an array
<n_blownapart> baweaver, zenspider oh line 2 is missing return ?
juanpau__ has joined #ruby
<baweaver> not sure if trolling
<baweaver> ruby implies returns
<fatsum> n_blownapart: Read a book.
juanpauc_ has quit [Read error: Connection reset by peer]
<zenspider> fatsum: knock it off
juanpaucar has quit [Read error: Connection reset by peer]
<n_blownapart> does Tolstoy count fatsum ?
<baweaver> what are you trying to return there?
<baweaver> n_blownapart: not helping, ignore it.
<zenspider> baweaver: it does, but explicit return allows multiple expressions sans-array
<baweaver> TIL
* baweaver goes to experiment
<zenspider> I would do an array, personally... but the explicitness is sometimes nice
<fatsum> I'd use an array for clarity, really.
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
<baweaver> well I'll be
stan_ has joined #ruby
<fatsum> All of this is well documented in Chapter 2 of pickaxe, but I suppose that's a bad recommendation.
juanpau__ has quit [Read error: Connection reset by peer]
<baweaver> fatsum: his point was more of saying just read a book does little to help
<baweaver> recommending a book and a chapter however may be valid in conjunction with an immediate reference
<fatsum> baweaver: Bleh.
<baweaver> though I don't pretend to know what he's thinking either.
<zenspider> assuming you can also stifle the asshattery and condescending tone
roolo has quit [Quit: Leaving...]
<fatsum> baweaver: He's a competent scripter.
<Aeyrix> rekt
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<nofxx> is there some similar to %w{} but uses newlines instead of space to split?
<baweaver> hm?
<zenspider> yes: %w{}
<baweaver> nofxx: try it with newlines
<zenspider> you can use any whitespace
Timba-as has joined #ruby
<nofxx> that doesn't split the spaces... to write a big array of phrases
rbowlby has quit [Remote host closed the connection]
ohaibbq_ has quit [Quit: Leaving...]
<zenspider> ah. you can either escape the spaces (ugly), or do a heredoc and split on newline
<nofxx> yeah, was using a heredoc... what's the escape?
<zenspider> ary = <<-EOD.split(/\n/)
djbkd has quit [Remote host closed the connection]
juanpaucar has joined #ruby
<zenspider> just a backslash on each space. it gets ugly fast
juanpauc_ has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
<baweaver> or just use a regular array
<nofxx> could swear the backslash wasnt working... something else. Ty zenspider
<nofxx> zenspider, yeah, heredoc better
<zenspider> nofxx: %w vs %W probably
<zenspider> little is like '', big is like ""
<zenspider> tho... backslash _should_ work in both?
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<baweaver> >> %w(word\ maybe) + %W(word\ maybe)
<ruboto> baweaver # => ["word maybe", "word maybe"] (https://eval.in/420080)
<zenspider> thought so
luckymeerza has quit []
<Aeyrix> w e w
jenrzzz has joined #ruby
<baweaver> >> "This works" " too by the way"
<ruboto> baweaver # => "This works too by the way" (https://eval.in/420081)
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DelDotB has quit [Quit: DelDotB]
<baweaver> and is actually faster than + or <<
<fatsum> apeiros: Around?
cornerma1 has joined #ruby
<baweaver> not very nice to rely on parser tricks though.
juanpaucar has joined #ruby
<baweaver> >> ?a # is another one.
<ruboto> baweaver # => "a" (https://eval.in/420082)
<Aeyrix> ?dongs
<ruboto> I don't know anything about dongs
juanpauc_ has quit [Read error: Connection reset by peer]
<Aeyrix> >> ?dongs
<ruboto> Aeyrix # => /tmp/execpad-73924e292cd7/source-73924e292cd7:2: syntax error, unexpected '?' ...check link for more (https://eval.in/420083)
<Aeyrix> nice meme
<Ox0dea> >> ?w'tf'
<ruboto> Ox0dea # => "wtf" (https://eval.in/420084)
<fatsum> :(
<baweaver> huh, guess it works that way too. Of course you know that Ox0dea
<zenspider> dongs? really? are we 10?
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
<n_blownapart> zenspider , sorry, to regress, why is that return not implied as said earlier?
tkuchiki has quit [Remote host closed the connection]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
<fatsum> n_blownapart: The last statement of a method is implied to return from that method; explicitly using a `return` allows for multiple expressions to be returned.
<baweaver> I want to say because return behaves like a method that can take multiple values.
qiukun has quit [Quit: qiukun]
mutuma has joined #ruby
<baweaver> though I wouldn't rely on that
kedare has joined #ruby
<baweaver> instead just return an array: [(x-y), (x + y)]
juanpauc_ has quit [Read error: Connection reset by peer]
mutuma is now known as Pathfinder
juanpaucar has joined #ruby
<fatsum> Cleaner, yes.
<baweaver> not sure how common that return bit is
<zenspider> n_blownapart: in short: because it is a syntax error
<baweaver> but I've not seen that before myself anywhere.
<fatsum> I use `system` way too much in irb.
elepedus has quit [Quit: elepedus]
<baweaver> well, bed for me. 'night
<fatsum> Should use pry a little.
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
<n_blownapart> fatsum, zenspider baweaver thanks all . so the example was just an oversight?
oo_ has quit [Remote host closed the connection]
roolo has joined #ruby
<baweaver> probably
baweaver has quit [Remote host closed the connection]
<n_blownapart> pax
<Ox0dea> That's a new one.
<zenspider> n_blownapart: afaik, there's no version of ruby that works with that code.
<Ox0dea> zenspider: Did you try 0.49?
ndrei has quit [Ping timeout: 260 seconds]
<fatsum> Heh.
krz has quit [Read error: Connection reset by peer]
<zenspider> never got that one to build
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
icharlie has joined #ruby
<Ox0dea> charliesome has a patch.
<zenspider> I only have 1.8 - 2.2 right now. had 1.6 but it didn't like 64bit or something w/ my compiler setup
<fatsum> Think I'm going to get this 27" retina thingy.
<Ox0dea> zenspider: multilib?
<zenspider> old 1.8 and 1.6 would build before you could blink tho... it was great to hack on
<Ox0dea> ccache makes mucking about with current trunk not terrible.
timonv has quit [Ping timeout: 252 seconds]
qiukun has joined #ruby
<zenspider> unfamiliar with multilib... historical-rubies looks awesome tho
juanpauc_ has joined #ruby
<fatsum> Is Ruby 2.2.x supported by debugger?
rbowlby has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
MasterPiece has quit [Remote host closed the connection]
juanpauc_ has quit [Read error: Connection reset by peer]
polysics has quit []
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpaucar has joined #ruby
qiukun has quit [Client Quit]
devoldmx has joined #ruby
lsmola has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
benlovell has joined #ruby
charliesome has joined #ruby
choke has joined #ruby
terlar has joined #ruby
blackmesa has joined #ruby
Iskarlar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 244 seconds]
juanpaucar has joined #ruby
<fatsum> I need to sort out my .emacs.d/init.el for rc files sometime in the next two years.
toretore has quit [Quit: This computer has gone to sleep]
workmad3 has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
blackmesa has quit [Client Quit]
juanpaucar has joined #ruby
xhosae has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
psy has quit [Ping timeout: 272 seconds]
matled- has joined #ruby
matled has quit [Remote host closed the connection]
matled- is now known as matled
benlovel1 has joined #ruby
juanpauc_ has joined #ruby
icharlie has quit []
devbug has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
qiukun has joined #ruby
juanpaucar has joined #ruby
qiukun has quit [Client Quit]
qiukun has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
choke has joined #ruby
kloeri has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
kloeri has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
astrobun_ has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
<blarghlarghl> I've noticed that RSpec 2.99 and above (maybe even some lower versions) no longer raise at the end of spec execution if there was a failure in the spec run. My 'run all specs' task list did: begin; Rake::Task[t].invoke; rescue; failed << t; end. this no longer works since rspec no longer raises. can I get rspec to raise again if one of the specs failed?
<blarghlarghl> I don't mean fail-fast, because I want it to finish the run despite the failure.
anisha has joined #ruby
wallerdev has quit [Quit: wallerdev]
juanpaucar has joined #ruby
juanpau__ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
juanpauc_ has quit [Ping timeout: 260 seconds]
Ropeney has quit [Read error: Connection reset by peer]
joonty has joined #ruby
juanpau__ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<fatsum> Yeah, that's better. http://i.imgur.com/gaJOYDl.png
mikecmpbll has joined #ruby
<adaedra> wow that spacing
n_blownapart has quit [Remote host closed the connection]
<fatsum> adaedra: font character spacing?
juanpauc_ has joined #ruby
<adaedra> yeah
juanpaucar has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has quit [Remote host closed the connection]
<Ox0dea> fatsum: Is this real?
devdazed has quit [Quit: Bye]
<fatsum> Yes, why wouldn't it be?
<Ox0dea> Because you seem to be sighted?
<fatsum> adaedra: Smaller is much too close together on OSX.
devdazed has joined #ruby
<fatsum> Sighted?
<Ox0dea> sighted == !blind
juanpaucar has joined #ruby
<fatsum> You're an odd little ferret.
juanpauc_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fatsum> adaedra: I'll try other fonts, OSX terminal fonts are horrible when you aren't using urxvt or something.
benlovel1 has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
charliesome has quit [Client Quit]
<adaedra> meh
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
astrobun_ has joined #ruby
<Ox0dea> It must look different on your screen or something.
<fatsum> What are you using to view it on?
<adaedra> Personal tastes, I'd guess. Nothing wrong with that.
<Ox0dea> People can be wrong about themselves, for what that's worth.
<fatsum> adaedra: scrot your terminal.
juanpaucar has quit [Read error: Connection reset by peer]
<fatsum> Ox0dea: Certainly, but I'm not sure what I'm wrong about here when it comes to font char spacing.
juanpaucar has joined #ruby
<Ox0dea> >> 'Gdkkn'.gsub /./, &:succ # fatsum
<ruboto> Ox0dea # => "Hello" (https://eval.in/420097)
<Ox0dea> Slightly fancier, methinks.
Musashi007 has joined #ruby
<Ox0dea> fatsum: To clarify, I'm only poking fun.
_ht has joined #ruby
<fatsum> You have a habit of doing this.
roolo has quit [Remote host closed the connection]
<Ox0dea> Are you going to phone the authorities?
<fatsum> I am the authority.
WilfredTheGreat has quit [Remote host closed the connection]
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
<fatsum> adaedra: Which mac are you using?
<adaedra> Which version, you mean? Yosemite
<fatsum> No, which mac.
<fatsum> Retina/non-retina.
<adaedra> Non-retina
Iskarlar has joined #ruby
krz has joined #ruby
bronson has joined #ruby
juanpaucar has joined #ruby
<zenspider> fatsum: your authority: https://www.youtube.com/watch?v=gx4jn77VKlQ
Pupp3tm4st3r has joined #ruby
<zenspider> "oh no! nothing's worse than Cartman with authoritah"
juanpau__ has joined #ruby
<fatsum> zenspider: Are you trying to be funny?
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has quit [Ping timeout: 260 seconds]
<zenspider> nope
<fatsum> Don't believe I watched that.
<fatsum> Sets zenspider on ignore.
<adaedra> :/
juanpau__ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<fatsum> adaedra: I've been a stickler for terminal font settings for a while, and never quite managed to get it right where character spacing is involved; but I do have sight problems. So it's excusable I suppose.
<Ox0dea> And much was explained.
bronson has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<adaedra> fatsum: note that I was not saying it's wrong. I was just surprised.
postmodern has quit [Quit: Leaving]
<Ox0dea> fatsum: Apologies for making light of your disability.
NivenHuH has joined #ruby
bumbar_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<fatsum> adaedra: Oh no, I'd like a "prettier" terminal if I could find a way of having one - I spend 90% of my computer usage in it.
juanpaucar has joined #ruby
NivenHuH has quit [Client Quit]
<fatsum> Ox0dea: You're so bad at trolling, you should speak to weev for lessons.
<fatsum> (add-to-list 'auto-mode-alist '("\\.*rc$" . conf-unix-mode))
nahtnam has quit [Quit: Connection closed for inactivity]
<fatsum> Whoops.
<zenspider> hrm... can he see me type !mute if I'm on ignore?
<sevenseacat> depends on the client i think.
juanpaucar has quit [Read error: Connection reset by peer]
rolfb has joined #ruby
<adaedra> I don't think he would see you typing it, but would see the mode change.
<zenspider> coming from ruboto... not me.
juanpaucar has joined #ruby
<Ox0dea> zenspider: Gonna do some science?
<zenspider> well... if it is for science... I guess I must
<Ox0dea> For the good of all of us.
m8 has joined #ruby
Musashi007 has joined #ruby
<zenspider> I kinda want to give them a chance to hang themselves one more time... seems only fair. they were on a very short leash to begin with
<Ox0dea> Short leashes do not good nooses make.
m8 has quit [Max SendQ exceeded]
Pupp3tm4st3r has quit [Remote host closed the connection]
<adaedra> Verb at end? Is that german?
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
<adaedra> :p
m8 has joined #ruby
hyy has joined #ruby
<Ox0dea> I concede that my usage was incorrect in this case.
jas02 has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
<zenspider> you didn't use "doth" :P
charliesome has joined #ruby
<Ox0dea> Nor an initial action phrase. :/
juanpaucar has joined #ruby
<hyy> ahahahah my program is funny
<rolfb> i thought it was Yoda
<hyy> it's a WIP
<zenspider> hyy: you might want to look at the method called 'even?'
<yorickpeterse> morning
<zenspider> and then learn string interpolation. it'll clean up a fair amount
<Ox0dea> hyy: You've almost got yourself a Collatz sequence generator there.
<adaedra> everyone hides, yorickpeterse is here
<yorickpeterse> roar
juanpauc_ has joined #ruby
lkba_ has quit [Ping timeout: 245 seconds]
<fatsum> Need to figure out how to get *rc files working nicely in this editor.
<fatsum> zenspider: You could mute me if you want, I'm not sure I care a whole lot eitherway.
<fatsum> Ah, I'm an idiot.
<Ox0dea> !quote fatsum
<fatsum> Figured it out.
<zenspider> bad regexps. :P
<fatsum> No. My regexp is perfectly fine, spider.
<hyy> 0x0dea: I'm wanting to learn if statements
<adaedra> Regular exceptions lead to irregular problems.
<fatsum> I was using emacsclient instances, instead of a new emacs instance.
juanpaucar has quit [Read error: Connection reset by peer]
<hyy> so have I really learned them?
<adaedra> er, exceptions
juanpauc_ has quit [Read error: Connection reset by peer]
<adaedra> expressions*
juanpaucar has joined #ruby
<hyy> where's the nested if statement?
<zenspider> adaedra: heh
<zenspider> hyy: some
<zenspider> adaedra: I liked your original version better :)
<fatsum> zenspider: Do you have a problem with me you'd like to address, or are you just grumpy?
einarj has joined #ruby
<hyy> I'm at chapter 5 of Learn to Program by Chris Pine
workmad3 has joined #ruby
<Ox0dea> Leash looks long enough to me.
marr has joined #ruby
<zenspider> hyy: what editor are you using?
<zenspider> Ox0dea: yeah?
<fatsum> hyy: That's a nice introdocutry book.
<hyy> zenspider: Pe on Haiku/BeOS
<Ox0dea> zenspider: Well, he's certainly going for it.
<zenspider> a very good book
<zenspider> kk
<zenspider> !mute fatsum
<Ox0dea> Does Learn to Program teach using `then`?
juanpaucar has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
juanpauc_ has joined #ruby
r0bby_ is now known as robbyoconnor
<hyy> um, not sure, let me check...
<zenspider> Ox0dea: IIRC.... I don't think so. but I'm in the minority on that keyword
<Ox0dea> You... like it?
<zenspider> ?banned
<ruboto> I don't know anything about banned
<zenspider> damnit.
<zenspider> fatsum, you're welcome to take it up in #ruby-banned
<zenspider> Ox0dea: I do
<adaedra> ruboto: no snack for you
tesuji has joined #ruby
towski_ has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> hyy: Implementing the Collatz sequence is a good way to apply a rudimentary understaning of loops and conditionals.
<Ox0dea> +d
juanpaucar has joined #ruby
<zenspider> except, then you're confused by collatz because it is crazy
juanpauc_ has quit [Read error: Connection reset by peer]
<Ox0dea> I expect it'll remain unproved.
benlovell has joined #ruby
<hyy> LOL if it infinite loops the conjecture is wrong!
Thomas-0725 has joined #ruby
<Ox0dea> I can't even say why it feels intuitively obvious that all Ns converge.
<Thomas-0725> is rails written in Ruby?
htmldrum has joined #ruby
<Thomas-0725> exclusively?
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<zenspider> Thomas-0725: what do you mean by exclusively?
jzigmund_ is now known as jzigmund
finges_ has joined #ruby
<zenspider> according to cloc, it's got a minority of CSS, YAML, JS, HTML, yacc (?!?), SQL, and DTD... but is otherwise all ruby
<Thomas-0725> Oh cool. Thanks adaedra! Still not used to using github.
<zenspider> and I mean TINY minority
<adaedra> There's a small bar on project main page with quick language statistics, always
<hyy> I'm going to get some more tea
<zenspider> 7k vs 192k
juanpauc_ has joined #ruby
<Thomas-0725> zenspider, yeah what I meant I guess is "Is Rails written in just Ruby, or does it have compiled components written in C?" I don't really understand how Rails works, honestly.
juanpaucar has quit [Read error: Connection reset by peer]
ruby-lang708 has joined #ruby
<zenspider> Thomas-0725: it certainly uses some gems that have compiled components... but it doesn't have any itself
<ruby-lang708> hi everyone,
<sevenseacat> google has decided that it wants to be german again. sigh.
<sevenseacat> bad google!
benlovell has quit [Ping timeout: 245 seconds]
<ruby-lang708> for some reason, my intellij ruby debugger ain't working right, I am getting the following; https://gist.github.com/AbdulR3hman/7a0a1e9c8ae0b456a504
<ruby-lang708> any idea?
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
<zenspider> ze germans?
thiagovsk has joined #ruby
chthon has joined #ruby
<zenspider> ruby-lang708: I'd start hunting down 'linecache', whatever that is
Pupp3tm4st3r has joined #ruby
<zenspider> looks like it might be a problem trying to run debugger + jruby according to some quick googling
juanpauc_ has joined #ruby
<hyy> I have a question, how do I start this program?
Musashi007 has joined #ruby
<hyy> this Collatz conjecture program
houhoulis has quit [Remote host closed the connection]
<zenspider> hyy: `ruby <scriptname.rb>`
platzhirsch has joined #ruby
<hyy> zenspider; no like as in actually starting to code it
Musashi007 has quit [Client Quit]
<zenspider> or... what are you asking? :)
<zenspider> haha. ok. sorry.
<Ox0dea> hyy: Take an integer n and apply the sequence?
<hyy> from the user you mean?
<ruby-lang708> I have no idea what on earth it is
<zenspider> um... I implemented it out of wikipedia's definition, iirc.
jenrzzz has quit [Ping timeout: 264 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
<ruby-lang708> I assume its a bloody cache gem or something
<Ox0dea> That document is quite thorough.
<yorickpeterse> oh what's this, we append to a CSV forever and ever? Sounds webscale
<yorickpeterse> (╯°□°)╯︵ ┻━┻
<ruby-lang708> Ox0dea: thanks, I will have a look
<hyy> ok, how do I get command line arguments from the user?
juanpauc_ has quit [Read error: Connection reset by peer]
<yorickpeterse> and it's especially fun now that it triggers encoding errors
<Ox0dea> hyy: They're in ARGV.
<zenspider> there's a lot of stuff w/ linecache jruby on google
juanpauc_ has joined #ruby
<rolfb> anyone have any tips on getting more readable backtraces when programming ruby? indentation, wrapping, highlights and so on?
<Ox0dea> hyy: But I think you meant input, in which case you'll want `gets`.
juanpaucar has quit [Ping timeout: 244 seconds]
<Ox0dea> rolfb: better_errors
<adaedra> that's for rack though
<rolfb> Ox0dea; thanks, but I meant for terminal use
<Ox0dea> rolfb: better_errors + wkhtmltopdf + libcaca, maybe?
jenrzzz has joined #ruby
<zenspider> hyy: either way, ARGV and gets will return strings. use to_i to convert
<Ox0dea> I'll stop.
<rolfb> Ox0dea: haha :)
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<hyy> how do I test for invalid input i.e. not a number? Just walk through the string and if it's not a 0 through 9 character it's bogus?
htmldrum has quit [Ping timeout: 246 seconds]
<Ox0dea> hyy: String#to_i will return 0 for non-numeric strings.
<zenspider> >> Integer("a")
<ruboto> zenspider # => invalid value for Integer(): "a" (ArgumentError) ...check link for more (https://eval.in/420111)
<zenspider> >> Integer("42")
<rolfb> adaedra: i am using rack-test, but better_errors still reports to a web page?
<ruboto> zenspider # => 42 (https://eval.in/420112)
<zenspider> but I wouldn't worry about it. do the simplest thing that works for now
elepedus has joined #ruby
ruby-lang708 is now known as _AbdulRehman
juanpauc_ has joined #ruby
<adaedra> rolfb: better_errors is for rack applications and displays always in a webpage, yes. I take that's not what you need.
juanpaucar has quit [Read error: Connection reset by peer]
<Ox0dea> It's not terrible.
weemsledeux has quit [Ping timeout: 252 seconds]
<rolfb> rescue all the things?
livathinos has joined #ruby
<zenspider> not all... most
<adaedra> jruby and rbx should have different stacktrace formatters too, but that's something else
<Ox0dea> rolfb: More meant to inspire you than anything else, really.
<rolfb> Ox0dea: thanks, appreciated
<Ox0dea> Sure thing.
<rolfb> zenspider: not all?
<Ox0dea> rolfb: Not SyntaxError, for instance.
platzhirsch has quit [Ping timeout: 265 seconds]
<zenspider> rolfb: nope. not all. default rescue is StandardError and all subclasses
juanpauc_ has quit [Read error: Connection reset by peer]
<rolfb> ah, right
juanpaucar has joined #ruby
<zenspider> NoMemoryError, LoadError, SyntaxError, etc. all outside
<rolfb> thanks for reminding me, been away for a while :)
<zenspider> no worries
<zenspider> ?quickref rolfb
<zenspider> there's a full list there
<rolfb> ah yes, the quickref was always one of my favorites
workmad3 has quit [Ping timeout: 255 seconds]
<Ox0dea> >> [StandardError < Exception, ObjectSpace.each_object(Exception).include?(StandardError)]
<ruboto> Ox0dea # => [true, false] (https://eval.in/420113)
<Ox0dea> Wat.
juanpauc_ has joined #ruby
<Ox0dea> hyy: But the sequence! Where is the sequence?!
sdwrage has joined #ruby
<zenspider> hyy: `a = a OP b` can often be rewritten as: `a OP= b`
astrobun_ has quit [Remote host closed the connection]
<Ox0dea> s/often/always/?
<hyy> then it requires what? nested while loops?
<Ox0dea> Why are you saying such crazy things?
juanpauc_ has quit [Read error: Connection reset by peer]
juanpau__ has joined #ruby
pranny has joined #ruby
<hyy> well erm obviously I don't understand how to code yet
<zenspider> hyy: you're gettin' there
<Ox0dea> ^
testing-shout has joined #ruby
michael_mbp has quit [Excess Flood]
<zenspider> don't mind Ox0dea ... he's flipping ME shit, not you
<Ox0dea> But I wonder if you might be able to explain what makes you feel you'd need more than one loop here.
juanpaucar has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
pranny has quit [Client Quit]
dionysus69 has quit [Quit: dionysus69]
<hyy> to start over with a new starting number I believe
<zenspider> I obviously need to write a /fool cmd for ERC
juanpau__ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<zenspider> Ox0dea: I think always... but I fudged just in case
<Ox0dea> zenspider: Fair enough.
<Ox0dea> On a related note, do you also envy Perl 6's .= operator?
<hyy> :( well if he's flipping you stuff zenspider and not me then I best be quiet
<Ox0dea> `foo .= bar` > `foo = foo.bar`, I feel.
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> hrm and/or are ops.... but they aren't methods. :)
whiteline has joined #ruby
c0m0 has joined #ruby
juanpauc_ has joined #ruby
<Ox0dea> hyy: Have you learned about arrays just yet?
<hyy> no sir
michael_mbp has joined #ruby
<zenspider> I don't remember what all is introduced by ch3
<Ox0dea> He said he's up to 5, no?
<zenspider> I forget
<zenspider> so many numbers in my head
juanpau__ has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
arup_r has quit []
juanpaucar has quit [Ping timeout: 250 seconds]
astrobun_ has joined #ruby
<Ox0dea> hyy: In that case, you can just print each new element of the sequence as you arrive at it.
juanpaucar has joined #ruby
paradoja has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<hyy> when I get good I want to make device drivers, kernels, and do the programming for the video games I'd want to make
juanpau__ has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: This computer has gone to sleep]
fatsum has left #ruby [#ruby]
stardiviner has quit [Ping timeout: 260 seconds]
fatsum_ has joined #ruby
<fatsum_> hyy: Then you ought to learn C.
<sevenseacat> good luck with that.
diegoaguilar has quit [Remote host closed the connection]
<sevenseacat> you're really going to need it.
<fatsum_> hyy: There's not much to writing loadable kernel modules, but it's just a bit of a bore at this point.
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<fatsum_> hyy: Then easiest way would be to look at the kernel.org git, and see the patchsets submitted. Often you find easy bugs to fix.
<hyy> my IQ might be a pencil and my math knowledge is atrocious
<fatsum_> You don't need to know much mathematics to fix kernel bugs.
nickenchuggets has quit [Quit: leaving]
<hyy> ok :)
<zenspider> !ban fatsum_
platzhirsch has joined #ruby
<fatsum_> God you're an annoying little gnat.
<zenspider> !mute fatsum_
Thomas-0725 has joined #ruby
bronson has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
<zenspider> apeiros: do you really need all that syntax to use !ban ? what if you don't want to provide a timeframe?
juanpaucar has joined #ruby
<jhass> zenspider: no, we'll have shortcuts
livathinos has quit [Ping timeout: 244 seconds]
<zenspider> he's done. gone.
<zenspider> hyy: I'm doing some games in pure ruby (+ C libraries via ruby)
<zenspider> not a bad way to learn this stuff
juanpaucar has quit [Read error: Connection reset by peer]
fatsum_ has left #ruby [#ruby]
juanpaucar has joined #ruby
suchness has joined #ruby
Motoservo has quit [Quit: Motoservo]
testing-shout has quit [Remote host closed the connection]
rolfb has quit [Read error: Connection reset by peer]
<hyy> but yes I might need help with the basics
tsvenson has joined #ruby
fatsum has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
<Ox0dea> hyy: Don't be this guy: http://i.imgur.com/V0p2o3z.gif
juanpaucar has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has quit [Remote host closed the connection]
<Ox0dea> That's what happens if you try to hack on the Linux kernel before understanding loops.
juanpaucar has joined #ruby
<zenspider> hah
bronson has quit [Ping timeout: 240 seconds]
<hyy> ok, i won't be that guy then :)
elepedus has quit [Ping timeout: 240 seconds]
<hyy> how do I begin to understand loops?
marr has quit [Ping timeout: 244 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<Ox0dea> To understand iteration, you must first do this, and then do it again.
<hyy> you must read that sentence again and again
<yorickpeterse> ok, tricky encoding question:
<yorickpeterse> I have strings such as "Gr\\u00e4umige Zimmer. Gastronomie durchschnittlich" (note the escaped \u)
<yorickpeterse> I need a way to turn that into \\u00e4 into \u00e4
<yorickpeterse> But since it's a literal \u the usualy encoding methods don't work
<Ox0dea> hyy: Yes, that's the crux of the thing, although loops tend to have termination conditions.
juanpaucar has quit [Read error: Connection reset by peer]
<yorickpeterse> and you can't gsub something with "\u" since that itself is invalid
<zenspider> yorickpeterse: eval?
juanpaucar has joined #ruby
<Ox0dea> yorickpeterse: It's the same problem as for "\\n" and friends.
<yorickpeterse> zenspider: euh
ndrei has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<zenspider> I KNOW! RUBY_PARSER! :P
Motoservo has joined #ruby
diegoaguilar has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<yorickpeterse> this is a CSV file, sadly not actual Ruby code
<yorickpeterse> Ox0dea: not entirely
<yorickpeterse> Ox0dea: replacing "\\n" with "\n" is valid
<yorickpeterse> but just "\u" is not a valid string
diegoaguilar has joined #ruby
<yorickpeterse> >> "\u"
<ruboto> yorickpeterse # => /tmp/execpad-4332a4882bef/source-4332a4882bef:2: invalid Unicode escape ...check link for more (https://eval.in/420121)
diegoaguilar has quit [Remote host closed the connection]
<Ox0dea> Right, I was only referring to the age-old problem of turning escaped special characters back into their true selves.
<Ox0dea> The saner approach is to use #gsub's Hash form.
<Ox0dea> But you can't do that here. :/
<yorickpeterse> I suppose I could replace all cases of \uXXXX with the actual unicode form
diegoaguilar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
roolo has joined #ruby
<yorickpeterse> but then I'd have to know how long the unicode sequence would be
juanpaucar has joined #ruby
<zenspider> yorickpeterse: \u isn't valid, but you can certainly lex the rest of the code out
<yorickpeterse> so that it doesn't replace \\u00e4umige with just \u00e4 (removing the "umige")
<zenspider> it SUCKS... but you can
charliesome has quit [Client Quit]
<Ox0dea> hyy: In the hopes that it proves to be of some value, here is precisely how *not* to generate Collatz sequences: https://eval.in/420119
arup_r has quit [Remote host closed the connection]
Guest32 has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<hyy> WOW that's inefficient!
<hyy> 8MB
icarus has joined #ruby
jiada has quit [Quit: Connection closed for inactivity]
<Ox0dea> That's got virtually nothing to do with the program itself, mind.
charliesome has joined #ruby
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
<hyy> but then why shouldn't I use this program? Why is it not the way to generate these Collatz sequences?
roolo has quit [Ping timeout: 264 seconds]
Cust0sLim3n has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Remote host closed the connection]
paradoja has quit [Ping timeout: 255 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<claw> yorickpeterse: "Gr\\u00e4umige Zimmer. Gastronomie durchschnittlich".gsub("\\u00e4","\u00e4")
<yorickpeterse> claw: if only that was the only Unicode sequence I had to replace
<yorickpeterse> and if only I knew the sequences beforehand
juanpauc_ has joined #ruby
<yorickpeterse> Hm, seems all of them are in the pattern \\u[a-z0-9]{4}, so that should be easy enough
<Ox0dea> yorickpeterse: Erm, did you expect otherwise?
<claw> yorickpeterse: just match them
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupp3tm4st3r has joined #ruby
juanpau__ has joined #ruby
<yorickpeterse> claw: gee, I hadn't thought of that just yet
juanpaucar has quit [Read error: Connection reset by peer]
<Ox0dea> >> '\\u0061\\u0062\u0063'.gsub(/\\u(\h{4})/) { '' << $1.hex }
<ruboto> Ox0dea # => "abc" (https://eval.in/420131)
juanpauc_ has quit [Read error: Connection reset by peer]
<Ox0dea> It's not terrible.
charliesome has joined #ruby
khebbie has quit [Remote host closed the connection]
juanpau__ has quit [Read error: Connection reset by peer]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
juanpaucar has joined #ruby
<hyy> ok 0x0dea, can we discuss programming exercises that will teach me loops and conditionals?
krz has quit [Quit: WeeChat 1.2]
jbw has joined #ruby
crdpink2 has quit [Excess Flood]
<sevenseacat> has someone told you to read chris pine's learn to program yet?
crdpink2 has joined #ruby
<zenspider> he's on chapter 5 or so
<hyy> I am reading it
Pupp3tm4st3r has quit [Remote host closed the connection]
<sevenseacat> ah hah
<zenspider> they're
<hyy> should I just go back to it
<Ox0dea> Oui.
<sevenseacat> good stuff.
<zenspider> hyy: it's a really good book. I've pushed it on a lot of ppl
<Ox0dea> But if you're itching, write a guessing game thingy.
<hyy> ? I mean, I like to hang out here
<zenspider> even gushed at chris pine about it over lunch once
<zenspider> poor bastard
<zenspider> hang out here as long as you'd like
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<zenspider> number guessing game would be a good one
mutuma has joined #ruby
fatsum has quit [Quit: leaving]
<zenspider> have the computer guess the user's number, between 1-100. computer guesses, the user responds with higher / lower / equal
<Ox0dea> >> rand(42) # hyy
<ruboto> Ox0dea # => 1 (https://eval.in/420135)
Pathfinder has quit [Ping timeout: 246 seconds]
<Ox0dea> That was slightly unhelpful.
<zenspider> hahaha
<hyy> ok page 1 of chapter 6 is open before me
<zenspider> BUT RANDOM
Iskarlar has joined #ruby
nettoweb has joined #ruby
Hounddog has joined #ruby
icarus has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
ledestin has joined #ruby
lukaszk has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
kr3ssh has joined #ruby
<_AbdulRehman> is it possible to change the gem path from the command line using the gem tool?
<_AbdulRehman> or where do I find gem configs?
<hyy> so, list all the methods we've seen so far. reverse, ljust, rjust, center, capitalize, lower, upper, .+, .*, .-, to_s, to_f, to_i
Cust0sLim3n has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<zenspider> change where it installs?
icarus has joined #ruby
<zenspider> _AbdulRehman: ^^
juanpaucar has joined #ruby
<_AbdulRehman> no, this is not what I mean,
<zenspider> or change where it finds them?
<_AbdulRehman> when I hit the gem env command, I get two paths for the gem
<Ox0dea> hyy: #lower and #upper are not Ruby methods.
<_AbdulRehman> I do not want it in the second path,
<_AbdulRehman> - GEM PATHS: - C:/jruby-1.7.21/lib/ruby/gems/shared - C:/Users/alab/.gem/jruby/1.9
<zenspider> _AbdulRehman: GEM_HOME=xxx GEM_PATH=yyy:zzz ruby blah.rb
<jhass> _AbdulRehman: you can influence it over the environment variables, GEM_HOME for the default installation directory and GEM_PATH for a colon separated list of lookup directories besides GEM_HOME. That's what Ruby version managers generally set
<_AbdulRehman> I want to remove the second path cause that's where my intellij is looking at
<zenspider> that's for temporary override
<hyy> 0x0dea; where's to_lowercase and to_uppercase then?
<Ox0dea> hyy: They're called #downcase and #upcase.
<hyy> for a string, that is
<hyy> ah
<_AbdulRehman> jhass: thanks
<_AbdulRehman> I'll try that
<Ox0dea> hyy: They're more "message-y" that way.
<zenspider> intellij might have its own settings tho.
<_AbdulRehman> I have set it up to look at the first directory zenspider
<_AbdulRehman> but for some reason gems installed in the other path
juanpauc_ has joined #ruby
<_AbdulRehman> so I'll try to remove that and see what happens...
juanpaucar has quit [Read error: Connection reset by peer]
Hounddog has quit [Ping timeout: 272 seconds]
<zenspider> _AbdulRehman: you can just clear out GEM_PATH
Hounddog has joined #ruby
devoldmx has joined #ruby
<_AbdulRehman> zenspider: That's what killing me, I can't see gem_path in my system variables, or user varibles (enviroment variables)
<_AbdulRehman> variables*
elepedus has joined #ruby
<zenspider> _AbdulRehman: they're not set by default. they're there so you can override
<zenspider> the gem paths you see in `gem env` are the default paths
<zenspider> they _should_ be there unless you're trying to do something odd
<zenspider> intellij can also be setting its own
jbw has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
<zenspider> _AbdulRehman: what's your actual problem you're trying to address?
stardiviner has joined #ruby
juanpauc_ has quit [Ping timeout: 250 seconds]
arup_r_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
testing-shout has joined #ruby
arup_r_ has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
mutuma has quit [Quit: mutuma]
arup_r_ has quit [Client Quit]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
testing-shout has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
hmsimha_ has joined #ruby
arup_r_ has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
arup_r_ has quit [Remote host closed the connection]
krz has joined #ruby
jbw has joined #ruby
arup_r has joined #ruby
nfk has joined #ruby
Motoservo has joined #ruby
Karpah has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
renderful has joined #ruby
khebbie has joined #ruby
sevenseacat has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
loveablelobster has joined #ruby
Karpah is now known as sevenseacat
renderful has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Remote host closed the connection]
choke has joined #ruby
loveablelobster has left #ruby [#ruby]
loveablelobster has joined #ruby
rodfersou has joined #ruby
<_AbdulRehman> zenspider: for some reason, my intellij can't see the first path and only looks at the second path.
livathinos has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<_AbdulRehman> I do not want to install my gems in the later default, I want it in the shared/gem folder which is set be default
elepedus has quit [Ping timeout: 260 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<loveablelobster> have an IO problem, working with an activrecord connection that reads setup from a yml file, now I want to get user input, but 'gets' will just read yml rows, what to do?
choke has quit [Client Quit]
ruby-lang461 has joined #ruby
[k- has joined #ruby
jbw has quit [Ping timeout: 240 seconds]
relic has joined #ruby
<_AbdulRehman> SPEC CACHE DIRECTORY is what causing the issue I think,
AlexC_ has joined #ruby
<AlexC_> Moin
astrobun_ has joined #ruby
<AlexC_> I'm trying to install "sassc" on Centos 6.4, however I keep getting "Rakefile:3: syntax error, unexpected ':', expected $end"
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AlexC_> Tried many different versions of sassc, always getting the same. Maybe issue with version of Rake I have?
<zenspider> _AbdulRehman: unfortunately, I've never used intellij and I can't help on that side. You might want to contact their support or see if there is a channel on here for it
<[k-> has sassc worked on any other machines on that os?
astrobun_ has quit [Remote host closed the connection]
ruby-lang461 has quit [Ping timeout: 246 seconds]
<zenspider> AlexC_: what's on line 3 of the Rakefile?
charliesome has joined #ruby
<zenspider> it's probably oooold <= 1.8 code trying to run on 1.9+
<AlexC_> zenspider: "task default: libsass:compile"
<zenspider> or... just bad code
<jhass> zenspider: didn't read? CentOS 6, more the other way around :P
Iskarlar has joined #ruby
<jhass> AlexC_: ruby -v ?
<zenspider> AlexC_: is that your code, or where did it come from?
<AlexC_> jhass: 1.8.7
<AlexC_> zenspider: No, that's within sassc gem
<jhass> there's your issue
rikai has joined #ruby
<jhass> can't use 1.9 style hashes
<zenspider> ok. then you're running 1.9 in 1.8
<zenspider> and being on centos... it'll be a pain to get anything newer :)
<AlexC_> Yep ... I really do not like CentOS. No idea why people keep going for it
<Ox0dea> loveablelobster: The YAML file is coming in on standard input?
<zenspider> STABLE!! and unable to run anything new :)
<jhass> AlexC_: get RVM or chruby + ruby-install
<zenspider> AlexC_: you might want to try uninstalling ruby via system pkgs and use rvm or others
<relic> what's wrong with rbenv/rvm on centos?
<AlexC_> jhass: zenspider Wish I could, unfortunately I wont be able to get such a change approved for this!
benlovell has joined #ruby
<jhass> AlexC_: you can (and in fact should) just install them to your user
<zenspider> AlexC_: well... short of overhauling all the code in the project, you will NOT get it running on centos w/ the system packaged ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<jhass> AlexC_: 1.8 is EOL, even 1.9 is EOL and 2.0 will EOL soon enough, that's why stuff breaks, the rest of the world moves on
<relic> alexc: see rvm.io.
<AlexC_> jhass: Oh, I'm fully aware - it's not my choice their architecture is on CentOS unfortunately
<Ox0dea> loveablelobster: I suspect using `STDIN.gets` explicitly is the solution to your problem.
<zenspider> relic: won't matter if they're blocked by corporate change policy
<relic> redhat based linux distributions are a pain to deal with, without rb in the mix; why people even tolerate them is beyond me.
<AlexC_> ^ this
<zenspider> STABLE!!!
<zenspider> AlexC_: that said... we did have centos and we bypassed everything using chef recipes to install our own stuff
<AlexC_> Too much red tape here for that :( Looking at another solution, maybe node-sass
<jhass> AlexC_: well, I guess there's some ancient sass version you could use
rolf has joined #ruby
<AlexC_> jhass: I do have sass working, using the sass gem, however it's rather slow
rolf is now known as Guest99195
Guest99195 is now known as rolfb
Iskarlar has quit [Ping timeout: 260 seconds]
<zenspider> you can't possibly have more red tape
elepedus has joined #ruby
<zenspider> you just aren't stubborn enough to wade through it :P
<loveablelobster> Ox0dea: thanks, that did the trick!
<Ox0dea> Yay!
<Ox0dea> For future reference, bare `gets` reads from ARGF.
<jhass> AlexC_: wait a sec, where exactly does that Rakefile come from?
Ufinii has joined #ruby
<loveablelobster> Oc0dea: I see... That explains a lot
<Ufinii> orning, we're having troubles upgrading our Rails application from Ruby 2.0.0 to 2.2.3 on Heroku (EU), an analysis of the performance on New Relic reveals that we're spending 2x amount of time in 'Ruby' and much less time in GC, it basically made our whole app unresponsive. Has anyone experienced the same issue? Why would Ruby 2.2 be so much slower?
<jhass> AlexC_: so you cloned the repo and try to build the gem?
<AlexC_> jhass: No, just running "gem install sassc"
wollner has quit [Quit: Leaving]
<_AbdulRehman> zenspider: thank you...
<jhass> AlexC_: yeah no dice, that thing is written against 1.9+ from the start
<AlexC_> Yep, no worries - trying the node route
<zenspider> Ufinii: your app is nonresponsive because you're spending LESS time in GC?
<AlexC_> Thanks
_AbdulRehman has quit [Quit: Page closed]
nofxx has quit [Ping timeout: 240 seconds]
kies has joined #ruby
MasterPiece has joined #ruby
<zenspider> ruby 2.2 is measurably faster in all my tests, not slower. spending less time in GC means you get more stuff done
Contigi777 has quit [Read error: Connection reset by peer]
<[k-> zenspider: 2:1 is not really a very nice ratio :o
benlovell has quit [Read error: Connection reset by peer]
m1lt0n has joined #ruby
<[k-> i presume thats what she/he means
<zenspider> [k-: it is if it is getting-stuff-done:not-getting-stuff-done
<silverdust> How do I update from 2.1.2 to 2.2.3 ?
<silverdust> * upgrade
sepp2k has joined #ruby
pawnbox has joined #ruby
<zenspider> of course... this is one of those cases where you ask for clarification and they never ever get back to you... I love it.
<jhass> silverdust: how did you get 2.1.2?
benlovell has joined #ruby
<silverdust> I can't remember sadly
<silverdust> It was my first time upgrading a ruby version
<jhass> silverdust: "which ruby" says what?
<silverdust> 2.1.2
<jhass> no
<jhass> which ruby
<jhass> it's a command, run it
<silverdust> /home/bl4ckdu5t/.rvm/rubies/ruby-2.1.2/bin/ruby
bruno- has joined #ruby
<jhass> silverdust: rvm get latest; rvm install 2.2.3; rvm use --default 2.2.3
northfurr has joined #ruby
<silverdust> ok thanks jhass
pandaant has joined #ruby
<zenspider> argh. mkmf is such an ugly unhelpful mess
<zenspider> you can't get anything out of it! fuck you if you want to keep the failing test files around
Rickmasta has joined #ruby
<jhass> write a replacement, the ruby community will thank you ;)
<anker> >> `which ruby`
<ruboto> anker # => (https://eval.in/420176)
bgiouaeg has joined #ruby
<[k-> ruboto uses 2.2.1 iirc
allcentu1 has joined #ruby
<anker> they should his name to mrrubot
<zenspider> there was mkrf back in the day
<anker> change*
allcentu1 has quit [Client Quit]
<adaedra> >> RUBY_VERSION # [k-
<ruboto> adaedra # => "2.2.0" (https://eval.in/420178)
<zenspider> it's just such an unwieldy thing to take on...
bruno- has quit [Ping timeout: 272 seconds]
<jhass> oh, I should clarify, "write and maintain" :P
<zenspider> ok. ~3:30 here... need sleep
<[k-> >> RUBY_ENGINE # anker
<ruboto> [k- # => "ruby" (https://eval.in/420179)
<jhass> >> RUBY_DESCRIPTION
<ruboto> jhass # => "ruby 2.2.0p0 (2014-12-25 revision 49005) [i686-linux]" (https://eval.in/420180)
B5X has joined #ruby
Fevrale has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Rickmasta has quit [Ping timeout: 272 seconds]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thomas-0725 has joined #ruby
B5X has quit [Client Quit]
B5X has joined #ruby
<Ox0dea> 18>> RUBY_COPYRIGHT
<ruboto> Ox0dea # => "ruby - Copyright (C) 1993-2012 Yukihiro Matsumoto" (https://eval.in/420183)
<[k-> grab all the Ruby constants and run them!
<Ox0dea> >> Object.constants.grep(/^RUBY/).map { |c| [c, Object.const_get(c)] }.to_h
<gregf_> >> RbConfig::CONFIG.keys.grep(/^RUBY/)
<ruboto> Ox0dea # => {:RUBY_VERSION=>"2.2.0", :RUBY_RELEASE_DATE=>"2014-12-25", :RUBY_PLATFORM=>"i686-linux", :RUBY_PATCH ...check link for more (https://eval.in/420186)
<ruboto> gregf_ # => ["RUBY_INSTALL_NAME", "RUBY_SO_NAME", "RUBY_SEARCH_PATH", "RUBY_EXEC_PREFIX", "RUBY_LIB_VERSION", "R ...check link for more (https://eval.in/420187)
<relic> wtf.
B5X has quit [Client Quit]
jellyjellyrobot has joined #ruby
eminencehc has joined #ruby
benlovell has quit [Ping timeout: 246 seconds]
ledestin has joined #ruby
benlovell has joined #ruby
wasamasa is now known as {{{
<adaedra> }}}
{{{ is now known as wasamasa
eminencehc has quit [Ping timeout: 260 seconds]
chouhoul_ has joined #ruby
claptor has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> }{{{{{end{
<[k-> may the world be forever disturbed
<wasamasa> some day I'll quit IRC and leave these nicks for someone else to wield
<wasamasa> even if it's just to annoy an admin using vim to view irc logs
chouhoulis has quit [Ping timeout: 256 seconds]
* relic wanders off
bgiouaeg has left #ruby ["WeeChat 1.3"]
sdfgsdfg has joined #ruby
sdfgsdfg has joined #ruby
qiukun has quit [Quit: qiukun]
DexterLB has quit [Read error: Connection reset by peer]
Timba-as has quit [Ping timeout: 240 seconds]
Timba-as has joined #ruby
qiukun has joined #ruby
Neon has joined #ruby
<Diabolik> does anyone have any suggestions for how i can improve on this?
benlovell has quit [Ping timeout: 252 seconds]
<Neon> I'm having some issues with passing a pipe end to a new process. Any idea why I get an ArgumentError (wrong file descriptor)? https://gist.github.com/Neosublimation/da3b47a8dc7912a26ec8
livathinos has quit []
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
nerium has joined #ruby
<nerium> Is there a way to tell bundler not to download a repo everytime ”bundle install” is ran?
<nerium> I’ve a gem which points to a 100mb gem on github. Everytime I run ”bundle install”, it has to download the whole repo which takes 3 min
claptor has quit [Quit: this channel is bakas]
wldcordeiro_ has quit [Ping timeout: 252 seconds]
<Ufinii> zenspider: less time in GC but much more in 'Ruby execution'
<jhass> Diabolik: I'd prefer something like def self.number?(value); !value[/\A\d+\z/].nil?; end; for is_number? (note that i dropped the is_ prefix)
<[k-> is it relative or percentage?
<jhass> Diabolik: parser sounds like it should return some kind of parser object, not do the parsing
northfurr has quit [Quit: northfurr]
<jhass> Diabolik: use #public_send over #send
Pupp3tm4st3r has joined #ruby
qiukun has quit [Quit: qiukun]
stamina has joined #ruby
<Diabolik> jhass how would you modify the parser function?
<jhass> Neon: switch around the ends, err should get a write end, in should get a read end, out should get a write end
qiukun has joined #ruby
<jhass> not sure what data_out => data_out is supposed to do
Ufinii has quit [Read error: Connection reset by peer]
<jhass> Diabolik: I'd name it parse
<Neon> I just swapped them all, because I thought they were the wrong way round. :S
Azulinho has joined #ruby
chinmay_dd has quit [Quit: See ya!]
<Neon> jhass: If I understand the documentation correctly, it should provide the subprocess the file descriptor.
<Diabolik> anything else jhass
<Diabolik> ?
<jhass> Diabolik: nope, looks good otherwise
qiukun has quit [Remote host closed the connection]
<jhass> maybe some evil input detection but not strictly necessary
<jhass> Neon: FD => FD is redirection, no?
<Neon> “If a file descriptor need to be inherited, io=>io can be used.”
<jhass> mmh
<Neon> Maybe a platform-dependent issue?
<jhass> anyway, try without it for a sec to eliminate that as error source at least
<jhass> is there something special about your platform?
roolo has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
xhosae has quit [Remote host closed the connection]
dhjondoh has joined #ruby
gregf has quit [Quit: WeeChat 1.1.1]
dhjondoh has quit [Client Quit]
<Neon> jhass: No. So the pipe variables seem to be in the right order. I get errors if I swap them again (not opened for writing). When I return the data_out => data_out, no errors get raised (but the application doesn't work as expected either).
<jhass> Neon: little sidenote, you need neither the parens nor the * in that case
bronson has joined #ruby
<Neon> jhass: What're these for then?
rbowlby has quit [Remote host closed the connection]
<Neon> I learned it like this somewhere and did it like this since then.
<jhass> for what you use them, just implicitly there in this simple case
<Neon> Ah, so letting them out would be more syntactic sugar?
<jhass> and yeah, they were right, your variables are just confusingly labeled
<jhass> IO.pipe returns [read, write]
bigkevmcd has quit [Quit: Outta here...]
amigojapan has joined #ruby
<jhass> kind of
roolo has quit [Ping timeout: 246 seconds]
yfeldblu_ has quit [Ping timeout: 246 seconds]
benlovell has joined #ruby
<Neon> Yeah, I tried to label them so I write to *_out and read from *_in, analogous to stdin and stdout.
binaryplease1 has joined #ruby
<amigojapan> hi, I am trying to do a get on an https, this code works for short urls but for this url it says invalid url, but the url is not invalid, any ideas? http://pastebin.com/U2jSxK2z
<ruboto> amigojapan, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/15bee3677c8c601130e5
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<gregf_> Diabolik: is there any reason to make it a kindof a 'static' class?
pawnbox has quit [Ping timeout: 246 seconds]
<jhass> amigojapan: it is, your query string should be percent encoded
<amigojapan> ah ok jhass , what is the ruby function for doing that?
<jhass> amigojapan: CGI.escape and URI.escape provide two slightly different ways of doing it, you'll likely need some handwork to disambiguate
<amigojapan> thanks jhass
bronson has quit [Ping timeout: 264 seconds]
<Diabolik> not really gregf_ it's somewhat incidental why
duncannz has quit [Ping timeout: 264 seconds]
gregf has joined #ruby
bruno- has joined #ruby
<Neon> Actually, my code doesn't work at all. In the subproces, I'm simply writing a line (puts) and the parent process just gets nil.
<jhass> Neon: if I try to make a minimal reproducer from your snippet it works just fine here http://paste.mrzyx.de/ptguk1gc6
<Neon> (literally gets returns nil)
codecop has quit [Remote host closed the connection]
<Neon> Doesn't gets block until it gets a line or EOF?
<jhass> Neon: what's with ruby #{__FILE__} anyway, do you maybe seek Kernel#fork ?
<jhass> yes, and nil means it's EOFed
marr has joined #ruby
<Neon> jhass: fork isn't available on Windows.
<jhass> that's sad
<adaedra> Windows prefers spoons
<Neon> jhass: And your code gives me the same wrong file descriptor error, so like I assumed, it appears to be a platform-dependent error.
<jhass> I guess so
<Neon> Yeah, I would have used fork in first place.
<Neon> I was even surprised as pipes appeared to work on Windows.
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Neon> But they don't seem to actually.
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
iamninja has joined #ruby
elepedus has quit [Ping timeout: 244 seconds]
bigkevmcd has joined #ruby
lannonbr has joined #ruby
m1lt0n has quit [Quit: Lost terminal]
<amigojapan> jhass: I tried passing the result of URI.escape but now I just get error as the output https://gist.github.com/anonymous/9f3a8cf8896a7cf3eeb4
rodfersou has quit [Quit: leaving]
<jhass> I said you'll likely need some handwork to disambiguate
<gregf_> Diabolik: well you can split that into 2 classes, a Parser(which parses the string) and a ArithmeticExpCalculator(which does the calculation). like so class Parser; def parse();end;end ArithmeticExpCalculator; def self.calculate;end;end
rodfersou has joined #ruby
<jhass> ?gist_usage amigojapan
<ruboto> amigojapan, To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
Macaveli has joined #ruby
<Diabolik> hmm gregf_
<amigojapan> jhass: what do you mean by handwork?
<Diabolik> jhass is there a way of shortening or simplifying the calculate method?
<gregf_> Diabolik: also create a service that uses those 2. my 2 cents :/
rodfersou has quit [Client Quit]
jellyjellyrobot has quit [Quit: Textual IRC Client: www.textualapp.com]
rodfersou has joined #ruby
skade has joined #ruby
<jhass> amigojapan: slice the querystring into its parts by hand, pass them to CGI.escape, join the result back together
<amigojapan> jhass: I know the querystring works on my browser
<amigojapan> jhass: that does not seem reasonable
<jhass> amigojapan: your browser has about 5k manhours in guessing logic to handle all kind of weird user input
binaryplease1 has quit [Quit: WeeChat 1.2]
binaryplease has joined #ruby
<amigojapan> jhass: I had no problem when I was not trying to use https
lannonbr has quit [Quit: WeeChat 1.2]
<jhass> I strongly doubt the URL was suffering from the same issues
<amigojapan> but it does not say what the issue is
<jhass> amigojapan: the first I see is ? being invalid after a ?
<jhass> but let's ignore that and look at just ?url=https://chart.googleapis.com/chart?cht=lc&chs=500&
<jhass> is &chs=500 part of the value of url or a new param? how should URI know?
keen__________ has joined #ruby
benlovell has quit [Ping timeout: 245 seconds]
keen_________ has quit [Ping timeout: 245 seconds]
<amigojapan> jhass: seems like valid get to me, and as I said, I tried the same thing withought https, and it was working with HTTP.get , so I dont see why it would make a difference in https
<jhass> your browser has heuristics in seeing things like url=, saying "okay given there's url= what comes is probably part of the value even when we would hit a delimiter of the value normally we ignore it now"
<amigojapan> it was workin in ruby, I coudl revert the code and show you that
<jhass> amigojapan: you can try to understand the issue and fix it or just shut up, your whining will get you nowhere
<amigojapan> the problem is only after https
<amigojapan> jhass: I dont think you are giving me good advice
devoldmx has joined #ruby
<sevenseacat> lol
<jhass> alright, let's play this game, who's up for repeating what I said?
phutchins has joined #ruby
<jhass> amigojapan: I also accept citations from http://tools.ietf.org/html/rfc3986 (or http://tools.ietf.org/html/rfc2396 which is closer to what URI currently implements) disproving what I said
<amigojapan> let me see
<sevenseacat> not me, if this person doesnt want to be helped.
<amigojapan> sevenseacat: I want to be helped, but just to see how to do https, not to reconstruct my url, which is working in a normal ruby get... so the url is not broken
<sevenseacat> the json gem doesnt work properly on ruby 2.2.3. nice.
<sevenseacat> amigojapan: your URL is not valid.
devoldmx has quit [Ping timeout: 246 seconds]
<[k-> u should escape the / and the & at least
banister has joined #ruby
mutuma has joined #ruby
timonv has joined #ruby
<jhass> >> URI.parse("https://tinyurl.com/api-create.php?url=#{CGI.escape "https://chart.googleapis.com/chart?cht=lc&chs=500&chd=t:43,100,21,64,0,43,100,21,64,0&chxt=x,y&chxl=0:|2015%206|7|8|9|10|2016%206|7|8|9|10|1:|0|1162|mid%202325|3487|max%204650&chdl=amigojapan&chco=ff0000"}")
<ruboto> jhass # => uninitialized constant URI (NameError) ...check link for more (https://eval.in/420255)
<jhass> meh
<jhass> >> require "uri"; URI.parse("https://tinyurl.com/api-create.php?url=#{CGI.escape "https://chart.googleapis.com/chart?cht=lc&chs=500&chd=t:43,100,21,64,0,43,100,21,64,0&chxt=x,y&chxl=0:|2015%206|7|8|9|10|2016%206|7|8|9|10|1:|0|1162|mid%202325|3487|max%204650&chdl=amigojapan&chco=ff0000"}")
<[k-> &ri URI::Escape.escape
<`derpy> No results
<ruboto> jhass # => uninitialized constant CGI (NameError) ...check link for more (https://eval.in/420256)
<jhass> meeh
<jhass> >> require "uri"; require "cgi"; URI.parse("https://tinyurl.com/api-create.php?url=#{CGI.escape "https://chart.googleapis.com/chart?cht=lc&chs=500&chd=t:43,100,21,64,0,43,100,21,64,0&chxt=x,y&chxl=0:|2015%206|7|8|9|10|2016%206|7|8|9|10|1:|0|1162|mid%202325|3487|max%204650&chdl=amigojapan&chco=ff0000"}")
<jhass> sorry for the noise
infiniteNOP has joined #ruby
timonv has quit [Client Quit]
<[k-> use: URI.escape("link", "/&%") and stuffs
grenierm has quit [Quit: grenierm]
<adaedra> meeeh
<[k-> better than requiring TWO! libraries
<adaedra> disagree
kekkis_ has joined #ruby
<[k-> there's lots of bloat :(
ldnunes has joined #ruby
<jhass> [k-: URI.escape and CGI.escape are different beyond minor things like %20 vs +
<[k-> i do not know :s
<jhass> specially URI.escape tries to be "smart"
<jhass> whereas CGI.escape makes sure to escape everything, which we want here
<adaedra> "try to be smart" => ALARM
<anker> try to be smart and use ruby
[k-_ has joined #ruby
symm- has quit [Quit: Leaving...]
<gregf_> amigojapan: you can do uri.query = URI::encode_www_form(URI::decode_www_form(uri.query) << args.to_a)
<amigojapan> ok gregf_ let me try that, thanks
totimkopf has joined #ruby
* jhass sighs
<anker> why the sigh
<gregf_> amigojapan: honestly dunno what you;re trying to do. perhaps just make that request? and see that it returns a 200?
<adaedra> why the why the sigh
<[k-_> he is trying to embed a url in a url
<adaedra> urlception.
<adaedra> [INCEPTION HORN]
<amigojapan> gregf_: just trying to change an http request to an https get request
<[k-_> whytheception
<gregf_> ah whatever - dont have time for r&d :/
<anker> because im confused why he sighed
<[k-_> amigojapan chose to completely ignore the facts stated by jhass?
<amigojapan> I dont have patients for angry people now, see you later
amigojapan has left #ruby [#ruby]
<adaedra> huhu
<adaedra> why the anger, jhass
<adaedra> why the anger, [k-_
<jhass> disappointment rather
<adaedra> ah, I have a method for that
<adaedra> never expect anything.
<jhass> yeah not working, I need to work on my expect the worst + 1 philosophy
<adaedra> "I expect nothing and I'm still let down"
sarkyniin has joined #ruby
<[k-_> i got upset yesterday after nothing came out of my help
<adaedra> you can only have good surprises when you expect nothing.
but3k4 has joined #ruby
timonv has joined #ruby
workmad3 has joined #ruby
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
<[k-_> is do not expect the same as expect nothing?
<jhass> mmh, probably not
<[k-_> > i do not have patients for angry people now :/
<adaedra> Look at all the patients I have.
<jhass> I think humans always have some sort of expectation though, and be it that they expect that they don't expect anything
kekkis_ has quit [Ping timeout: 246 seconds]
<adaedra> I expect that [k-_ bakes me a cake.
<adaedra> I have no cake => I'm let down.
<adaedra> see?
<adaedra> :v
<jhass> yeah, doing it wrong, you should expect that [k-_ will never bake any cake
<adaedra> here you go!
<[k-_> you didnt even give me time to read
<jhass> or use an oven for the matter
<[k-_> i...might burn the house down or something
<adaedra> I don't know for .sg, but here it's 112
<sevenseacat> i am a cake.
<[k-_> 112ms?
<adaedra> But I think I'll get trouble if I call 112 to say that an IRC buddy in .sg may cake me a cake and burn his house down.
revoohc has joined #ruby
<adaedra> bake*
<sevenseacat> ah. emergency phone number.
auzty has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<[k-_> you're right, i wont bake a cake
<[k-_> i'll send you an emoji of a cake, though
<adaedra>
wldcordeiro_ has joined #ruby
rbowlby has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
sideshowcoder has joined #ruby
<[k-_> adaedra:
andywojo has quit [Ping timeout: 260 seconds]
ItSANgo has joined #ruby
joonty has quit [Quit: joonty]
ta has quit [Remote host closed the connection]
rbowlby has quit [Ping timeout: 255 seconds]
ZeeNoodleyGamer has quit [Ping timeout: 246 seconds]
chouhoul_ has quit [Remote host closed the connection]
paradoja has joined #ruby
Maako has joined #ruby
Maako has left #ruby [#ruby]
stardiviner has quit [Ping timeout: 245 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
amystephen has joined #ruby
r0x0rZ has joined #ruby
<Diabolik> can anyone recommend how to make my calculate function more succinct?
northfurr has joined #ruby
loveablelobster has quit [Quit: Textual IRC Client: www.textualapp.com]
Cust0sLim3n has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
dimasg has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
<ljarvis> Diabolik: you.. had a LOAD of suggestions yesterday
<ljarvis> did you just ignore them all?
Cust0sLim3n has joined #ruby
<Diabolik> no ljarvis
Pupp3tm4st3r has joined #ruby
<Diabolik> as you can see if you scroll up i spoke with others about tihs earlier
<gregf_> Diabolik: did you not see what yorickpeterse had suggested?
<Diabolik> he linked me to his own repo
<Diabolik> which was a gem in and of itself
fibbel has quit [Read error: Connection reset by peer]
northfurr has quit [Client Quit]
<ljarvis> those class methods are not private
<ljarvis> private doesn't work like that
<sevenseacat> Diabolik has been talking about the same thing for like three days
unver has joined #ruby
<Diabolik> ok il stop asking about it
<ljarvis> >> class A; private; def foo; "here"; end; end; A.foo
<ruboto> ljarvis # => undefined method `foo' for A:Class (NoMethodError) ...check link for more (https://eval.in/420331)
jbw has joined #ruby
<Diabolik> apologies
<ljarvis> >> class A; private; def self.foo; "here"; end; end; A.foo
<ruboto> ljarvis # => "here" (https://eval.in/420332)
jeanlinux has joined #ruby
<ljarvis> >> class A; class << self; private; def foo; "here"; end; end; end; A.foo
<ruboto> ljarvis # => private method `foo' called for A:Class (NoMethodError) ...check link for more (https://eval.in/420333)
Gmi has joined #ruby
benlovell has joined #ruby
<[k-_> i never knew that...
<ljarvis> lots of people dont, i see it everywhere
Guest32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> another neat one:
<ljarvis> >> File.basename('foo.txt', '.*')
<ruboto> ljarvis # => "foo" (https://eval.in/420335)
<ljarvis> (see lots of File.basename(file, File.extname(file))
<gregf_> Diabolik: %w{1 + 3 - 2}.reduce { |l,r| l.is_a?(Array) ? l.first.to_i.send(l.last,r.to_i) : [l, r] } <= this was what was suggested by yorickpeterse
<ljarvis> that doesnt look like code yorickpeterse would write
<gregf_> ljarvis: well almost similar, i lost that :/
Pupp3tm4_ has joined #ruby
Pupp3tm4st3r has quit [Ping timeout: 260 seconds]
Pupp3tm4_ has quit [Remote host closed the connection]
<gregf_> Diabolik: %w{1 + 3 - 2}.reduce { |left,right| left.is_a?(Array) ? left[0].to_i.send(left[1],right.to_i) : [left, right] } #ljarvis - happy?
<gregf_> s/Diabolik//
rideh has joined #ruby
<gregf_> *hopes your not a rocketscientist *
tmtwd has quit [Ping timeout: 240 seconds]
Mia has quit [Read error: Connection reset by peer]
rideh has quit [Max SendQ exceeded]
paradoja has quit [Ping timeout: 272 seconds]
rideh has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
guyz is now known as Guest7662
Pupp3tm4st3r has joined #ruby
<Diabolik> gregf_ i didn't see this...
<[k-_> >> lhs, op, rhs = p("53 PLUS 9 TIMES 43 MINUS 2".partition(/TIMES/)); lhs.sub("PLUS", "+"); rhs.sub("MINUS", "-"); lhs = eval lhs; rhs = eval rhs; lhs * rhs; # being lazy here, do not use eval unnecessarily!
<ruboto> [k-_ # => ["53 PLUS 9 ", "TIMES", " 43 MINUS 2"] ...check link for more (https://eval.in/420343)
<hfp> How can I write an expectation that would match a method with a specific method only once, even though this method is called more than once with different arguments?
<[k-_> check the link for more
<yorickpeterse> ljarvis: I did
<yorickpeterse> well, minus the single letter variables
spectra_ has quit [*.net *.split]
abbe has quit [*.net *.split]
ElderFain has quit [*.net *.split]
ytti has quit [*.net *.split]
<hfp> I tried `expect(foo).to receive(:bar).at_least(:once).with(/blah/)
ElderFain has joined #ruby
ElderFain has quit [Changing host]
ElderFain has joined #ruby
abbe has joined #ruby
<hfp> but it fails because the second call to this method comes without /blah/
<[k-_> >> lhs, op, rhs = "53 PLUS 9 TIMES 43 MINUS 2".partition(/TIMES/); lhs.sub!("PLUS", "+"); rhs.sub!("MINUS", "-"); lhs = eval lhs; rhs = eval rhs; lhs * rhs; # being lazy here, do not use eval unnecessarily!
<ruboto> [k-_ # => 2542 (https://eval.in/420345)
<[k-_> this would be some form of precedence
dorei has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<gregf_> yorickpeterse++
<[k-_> somehow the answer is wrong ¯\_(ツ)_/¯
Rickmasta has joined #ruby
andywojo has joined #ruby
<[k-_> oh it's correct, does ruby not have precedence for operators by default
<[k-_> or did i get my math wrong
Pupp3tm4st3r has joined #ruby
<[k-_> i tried 53-9*43-2 ⇒ 438
<[k-_> oh, i did get my math wrong
<[k-_> hehe oops
<gregf_> it should be -ve?
<[k-_> i have no idea
<[k-_> oh, i put +9 instead of -9
spectra has joined #ruby
ndrei has joined #ruby
Mia has joined #ruby
roolo has joined #ruby
joonty has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
yashinbasement has joined #ruby
yashinbasement has quit [Read error: Connection reset by peer]
ytti has joined #ruby
<[k-_> im probably hopeless
bmurt has joined #ruby
yashinbasement has joined #ruby
paradoja has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
<rolfb> `ruby -e "ObjectSpace.each_object(Class) { |c| c = c.freeze };"`
<rolfb> *hides*
<[k-_> c=c.freeze?
fibbel has joined #ruby
<rolfb> [k-_: basically, it turns of monkey patching for all loaded classes
<rolfb> turns off*
<[k-_> i question the c = part
jeanlinux has quit [Remote host closed the connection]
<rolfb> [k-_: how so? it just redefines every class to be a frozen version of itself
jeanlinux has joined #ruby
sgambino has joined #ruby
<rolfb> so it's monkeypatching to avoid monkeypatching
<[k-_> Object.freeze; Object.send(:define_method, :hello) { "g" }
<[k-_> => RuntimeError: can't modify frozen class
<[k-_> you dont have to reassign it
lkba has joined #ruby
<eightyeight> getting the following error with a weechat ruby script: "NameError, uninitialized constant Encoding::ASCII_8BIT"
<rolfb> oh
<eightyeight> how can i fix the error, so the plugin will execute?
<rolfb> [k-_: well, that's interesting
<[k-_> so, the code can be further simplified to &:freeze
msnyon has joined #ruby
<rolfb> [k-_: hah, that's awesome
chouhoulis has joined #ruby
<Diabolik> [k-_ i thought using eval was bad
<[k-_> i was being lazy
<[k-_> dont use it
<[k-_> rolfb: A = Class.new ⇒ RuntimeError: can't modify frozen #<Class:Object>
<[k-_> you basically break everything
chouhoulis has quit [Remote host closed the connection]
tchebb has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
jeanlinux has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
tchebb has joined #ruby
whippythellama has joined #ruby
MasterPiece has quit [Quit: Leaving]
devdazed has quit [Quit: Computer has gone to sleep.]
<[k-_> you cant declare classes, how bad is that
bronson has joined #ruby
<rolfb> [k-_: wow, that is crazy
baphled has joined #ruby
baphled has quit [Client Quit]
dumdedum has quit [Quit: foo]
Macaveli has quit [Read error: Connection reset by peer]
<adaedra> oooh, cake
Macaveli has joined #ruby
CloCkWeRX has quit [Ping timeout: 252 seconds]
paulcsmith has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Cust0sLim3n has quit [Ping timeout: 252 seconds]
thermatix has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 272 seconds]
d2dchat has joined #ruby
joneshf-laptop has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
nuttermb has joined #ruby
robh71 has joined #ruby
northfurr has joined #ruby
skade has quit [Read error: Connection reset by peer]
swills has quit [Quit: leaving]
hinbody has joined #ruby
_ko1 has joined #ruby
skade has joined #ruby
thermatix has quit [Ping timeout: 255 seconds]
Cust0sLim3n has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
j_mcnally has joined #ruby
terlar has joined #ruby
AlexRussia_ has joined #ruby
shmilan has joined #ruby
khebbie has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 255 seconds]
jas02 has quit [Quit: jas02]
victortyau has joined #ruby
Pupp3tm4st3r has joined #ruby
duggiefresh has joined #ruby
wprice has joined #ruby
yashinbasement has quit [Quit: Leaving]
juanpaucar has joined #ruby
<Psi-Jack> The cake is a lie.
MadMartigan has joined #ruby
<adaedra>
<ashleyhindle> Does anybody else not like cake?
infiniteNOP has quit [Quit: Konversation terminated!]
Pupp3tm4st3r has quit [Remote host closed the connection]
<adaedra> &ri Cake
<`derpy> No results
casadei_ has joined #ruby
<adaedra>
<Psi-Jack> Going for the cake will mean your death. :)
riotjone_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 260 seconds]
Pupp3tm4st3r has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
davedev24 has joined #ruby
ndrei has joined #ruby
bruno- has joined #ruby
alveric has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
MadMartigan has quit []
MadMartigan has joined #ruby
MadMartigan has quit [Client Quit]
jerius has joined #ruby
umgrosscol has joined #ruby
dimasg has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
unreal_ has joined #ruby
robh71 has quit [Ping timeout: 244 seconds]
malconis has joined #ruby
Mia has quit [Read error: Connection reset by peer]
lannonbr has joined #ruby
malconis has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 252 seconds]
malconis has joined #ruby
bin_false has joined #ruby
Gmi has quit [Quit: Leaving...]
sdwrage has joined #ruby
khebbie has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bin_false has quit [Client Quit]
devdazed has joined #ruby
nzst has joined #ruby
joast has quit [Quit: Leaving.]
Mia has quit [Read error: Connection reset by peer]
devdazed has quit [Client Quit]
Mia has joined #ruby
Mia has joined #ruby
siovene has quit [Quit: Connection closed for inactivity]
nzst has quit [Client Quit]
unver has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
unver has joined #ruby
banghouse2 has joined #ruby
tkuchiki has joined #ruby
dopamean1 has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
ta has joined #ruby
dopamean_ has quit [Ping timeout: 265 seconds]
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
devdazed has joined #ruby
tkuchiki has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
paradoja has quit [Ping timeout: 246 seconds]
Macaveli has joined #ruby
dopie has quit [Ping timeout: 244 seconds]
dblessing has joined #ruby
joast has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 244 seconds]
j_mcnally has joined #ruby
afrianska has joined #ruby
revoohc has quit [Quit: revoohc]
aiesec has joined #ruby
silkfox has joined #ruby
revoohc has joined #ruby
jhack has joined #ruby
[H]unt3r has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
r0uder has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anon has joined #ruby
<anon> Hey there guys, I'm taking a Codeacademy course and it asks me to "add a new route that maps requests to /tags to the Tags controller's index action.". I'm stuck, what route should I write there?
anon is now known as Guest16655
<Psi-Jack> That's more of a rails question than a ruby question.
r0uder has quit [Client Quit]
<centrx> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Psi-Jack> Yep. no nickserv identification. :)
dstarh has joined #ruby
Guest16655 has quit [Client Quit]
bronson has joined #ruby
gamename has joined #ruby
<Psi-Jack> codecadamy though I have to say, was not bad. I went through their ruby course and liked how they dug into quite a few things, including rubyist methods specifically.
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
mwlang has joined #ruby
radgeRayden has joined #ruby
gregf has quit [Read error: Connection reset by peer]
gregf has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
<hfp> I have a method called within an object and I would like to mock this method. But I don't know which object it is a method of so I don't know how to mock it. How should I proceed?
sinkensabe has quit []
socialjackie has joined #ruby
<Psi-Jack> Read the source, Luke. :)
<eightyeight> new error loading my ruby weechat script. this seems to be wholly ruby-specific: http://ae7.st/p/4hu
camilasan has quit [Remote host closed the connection]
<[k-_> ruby can tell you which class it belongs too
<[k-_> erm, let me think
<eightyeight> i have the 'zmq' library installed via rubygems
<[k-_> Ox0dea did it
tkuchiki has joined #ruby
<[k-_> >> Object.method(:equal?).owner
<ruboto> [k-_ # => BasicObject (https://eval.in/420367)
<[k-_> ah yes
<adaedra> That was part of `derpy some time ago
jhack has quit [Remote host closed the connection]
<Psi-Jack> eightyeight: Seems like it can't find it in those paths.
Cache_Money has joined #ruby
aganov has quit [Remote host closed the connection]
<[k-_> adaedra: `derpy is less powerful
tagrudev has quit [Remote host closed the connection]
<adaedra> it was when #owner was used
axl_ has joined #ruby
<adaedra> ot is here for all your criticism on it, though :)
gamename has quit [Remote host closed the connection]
binaryplease has joined #ruby
gamename has joined #ruby
<eightyeight> Psi-Jack: so, how do i fix?
astrobun_ has joined #ruby
<Psi-Jack> eightyeight: First of all, how did you install the gem?
sinkensabe has joined #ruby
TheHodge has joined #ruby
<eightyeight> 'gem install zmq'
<Psi-Jack> As root, or as your user?
gamename has quit [Remote host closed the connection]
<eightyeight> root
mblagden_ has joined #ruby
gamename has joined #ruby
<eightyeight> i don't have permission to execute as my unpriv user
rbennacer has joined #ruby
<Psi-Jack> Pardon?
<eightyeight> $ gem install zmq
<eightyeight> ERROR: While executing gem ... (Gem::FilePermissionError)
<eightyeight> You don't have write permissions for the /var/lib/gems/2.1.0 directory.
<adaedra> gem install --user-install whatever
<Psi-Jack> 2.1.0? What I'm seeing on your paste is 2.2.0
blue_deref has joined #ruby
sinkensabe has quit [Remote host closed the connection]
camilasan has joined #ruby
workmad3 has joined #ruby
<eightyeight> hmm. on debian sid. possible disconnect between gems and ruby then?
jtdoncas has joined #ruby
<Psi-Jack> heh, sid. Yeah, could easily be, since sid isn't stable. :p
prestorium has joined #ruby
<eightyeight> indeed
JoshL has joined #ruby
TomyLobo has joined #ruby
IrishGringo has joined #ruby
ArnaudM has joined #ruby
<ArnaudM> hey! I'm trying to write a systemd service file to run my thin
<ArnaudM> But nothing works as expected
<Psi-Jack> ArnaudM: Hmmm.. OKay? Why are you asking in #ruby? This is a #systemd question.
<eightyeight> ah. ruby2.2 and ruby2.2-dev was not installed. however, after installing, and running 'gem2.2 install zmq', still getting the same error
aiesec has quit [Quit: WeeChat 0.4.2]
hs366 has quit [Quit: Leaving]
<ArnaudM> and if i go there they will tell me its a ruby querstion ?
<ArnaudM> ahaah
<jhass> Psi-Jack: not really. ArnaudM show your attempt, describe your app environment/Ruby setup and show the errors
<jhass> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<_blizzy_> if I have a hash, say foo = {:bar => [1,[2,3]], :baz => [1,[2,3]]}, how would I flatten each array without calling each key/value
<_blizzy_> is there a way to map it?
<ArnaudM> I will try jhass
Hounddog has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
<ArnaudM> I tried type=simple type=forking... I tried thin -d or without -d
<ArnaudM> and always the same result, my service is inactive
<ArnaudM> its like its launching
<ArnaudM> then nothing
skade has quit [Read error: Connection reset by peer]
<jhass> ArnaudM: you want to read up on Environment in man systemd.exec
allcentury has joined #ruby
skade has joined #ruby
<ArnaudM> damn bad syntax
<Psi-Jack> Yep yep.
<jhass> ArnaudM: drop the -d and use Type=simple (the default, so just drop the line)
lannonbr has quit [Ping timeout: 240 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ips|malc has joined #ruby
<ArnaudM> ok jhass I will try
<ArnaudM> brb
j_mcnally has joined #ruby
last_staff has quit [Ping timeout: 246 seconds]
Pupp3tm4st3r has joined #ruby
jhack has joined #ruby
jhack has joined #ruby
<[k-_> _blizzy_: mapping is the same as calling each key/value
<_blizzy_> [k-_, thanks.
<_blizzy_> I figured it out btw.
<[k-_> clever.
<[k-_> &ri Hash#map
<`derpy> No results
<jhass> .each_value(&:flatten!) if modifying the arrays is an option
<_blizzy_> if I have hash = {:foo => [1,[2]], :bar => [2,[1]]}
<_blizzy_> oh I did
riotjones has quit [Ping timeout: 240 seconds]
<[k-_> hash is enumerable!
<[k-_> adaedra: complaint
<adaedra> Issue #3, iirc
<ArnaudM> Environment="RAILS_ENV=production" "PATH=/home/netvibes/.rbenv/shims:$PATH" And i got Aug 21 16:28:23 puppetdashboard thin[32146]: /usr/bin/env: bash: No such file or directory
<_blizzy_> hash.values.each.map(&:flatten!)
ndrei has quit [Ping timeout: 265 seconds]
saddad has joined #ruby
<ArnaudM> Maybe my syntax is not good yet?
<jhass> ArnaudM: actually I think $PATH is not populated there
hotpancakes has joined #ruby
<ArnaudM> uch ok
<jhass> idk rbenv, but are you sure you need to patch it?
<ljarvis> _blizzy_: map is pointless there
<_blizzy_> ljarvis, oh.
<jhass> I mean you have to specify the full path the thin shim anyhow
<ljarvis> _blizzy_: jhass' code is fine, no?
<adaedra> Ah no, I did not open an issue for that
mutuma has quit [Quit: mutuma]
<_blizzy_> ljarvis, yes.
<Psi-Jack> $PATH should be already populated.
<[k-_> ljarvis: you mean each is pointless
<ljarvis> _blizzy_: ok cool
sevenseacat has quit [Quit: .]
<ljarvis> [k-_: no..
<ArnaudM> jhass if i remove this PATH var (I think its useless btw) I got the same result than before : inactiv after a fresh start
<ljarvis> the each is the necessary part
<[k-_> why would map be pointless
<_blizzy_> well, since I'm still learning, which is unnecessary?
ndrei has joined #ruby
<_blizzy_> each or map
<[k-_> im confuzzled
<[k-_> oh, i get it
<adaedra> _blizzy_: both have different usages
<ljarvis> _blizzy_: you're modifying the values, you don't care about the returning array
<ljarvis> hence each is useful here
<ljarvis> map is not
<_blizzy_> oh ok.
<[k-_> yes, i got it!!
<[k-_> praise me ~o~
<_blizzy_> ruby is cool af.
<eightyeight> seems i've got it worked out
<ljarvis> you could also use map!(&:flatten)
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ArnaudM: maybe we get some useful output with -D ?
Macaveli has joined #ruby
<[k-_> that would be more expensive
banghouse2 has quit [Quit: What if the hokey pokey really is what it's all about?]
<eightyeight> hmm. maybe not
Macaveli has quit [Client Quit]
<adaedra> [k-_: opened issue #5
<jhass> ArnaudM: also check for a log/thin.log
<eightyeight> Disabling plugin due to error: NameError, uninitialized constant Encoding::ASCII_8BIT
Pupp3tm4st3r has quit [Ping timeout: 240 seconds]
<[k-_> k
axl_ has quit [Quit: axl_]
<ArnaudM> ok jhass
umgrosscol has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
<ljarvis> eightyeight: what ruby version?
<eightyeight> 2.2
<jhass> ArnaudM: could also imagine -s implies -d so we'd need indeed Type=forking
<eightyeight> does something need to be added to the script?
ngscheurich has joined #ruby
<jhass> ArnaudM: and just to check for the obvious, keep in mind to daemon-reload after editing the service file
<ArnaudM> yes sure
<ArnaudM> I do that every time
dgutierrez1287 has joined #ruby
<ArnaudM> thanks for your help, testing..
<jhass> figured, but better safe than sorry ;)
roolo has joined #ruby
<ArnaudM> yeah !! working great jhass
<ArnaudM> thanks a lot man
rolfb has quit [Quit: Leaving...]
<eightyeight> ljarvis: do i need to add something to the script?
<ArnaudM> I did so much change.. my PATH syntax was not good : sure
dopie has joined #ruby
<ArnaudM> and use forking I must
RegulationD has joined #ruby
<ljarvis> eightyeight: what does Encoding.list return?
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
<jhass> >> Encoding::ASCII_8BIT
<ruboto> jhass # => #<Encoding:ASCII-8BIT> (https://eval.in/420374)
<jhass> eightyeight: how sure are you it's actually using 2.2?
<jhass> 18>> Encoding::ASCII_8BIT
<ruboto> jhass # => uninitialized constant Encoding (NameError) ...check link for more (https://eval.in/420375)
<jhass> heh
<jhass> 19>> Encoding::ASCII_8BIT
<ruboto> jhass # => #<Encoding:ASCII-8BIT> (https://eval.in/420376)
<jhass> that's weird
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> it's possible for that to not be available
<jhass> :o, really?
xet7 has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
dgutierrez1287 has quit [Ping timeout: 250 seconds]
<eightyeight> http://ae7.st/p/24n
<eightyeight> ^ Encoding.list
<ljarvis> lol it's right there too :D
<eightyeight> yup
roolo has quit [Ping timeout: 256 seconds]
<yorickpeterse> oh hey, I had a usecase for **foo
bruno- has quit [Ping timeout: 244 seconds]
<jhass> ?cookie yorickpeterse
<ruboto> yorickpeterse, here's your cookie:
<yorickpeterse> def foo(*args, **options); end # <= basically this
<ljarvis> >> Encoding.find "ASCII-8BIT"
<yorickpeterse> which is actually pretty neat
<ruboto> ljarvis # => #<Encoding:ASCII-8BIT> (https://eval.in/420377)
<yorickpeterse> I eagerly await ***foo
DelDotB has joined #ruby
<ljarvis> >> Encoding.find "filesystem"
<jhass> that would do what?
<ruboto> ljarvis # => #<Encoding:UTF-8> (https://eval.in/420378)
<yorickpeterse> jhass: No idea
<ljarvis> it would splat the splat the splat
<ljarvis> i believe
<yorickpeterse> 2splat4me
* jhass hopes for turning anything into cookies
axl_ has joined #ruby
<ljarvis> ?cake
<ruboto> here's your cake:
<adaedra> :D
fmcgeough has joined #ruby
<ljarvis> ?pizza
<ruboto> I don't know anything about pizza
<jhass> lies!
<adaedra> here's your pizza:
<yorickpeterse> is this some twisted Portal joke?
<ljarvis> !fact add pizza here's your pizza:
<ruboto> ljarvis, I will remember that pizza is here's your pizza:
<ngscheurich> Sounds like it might be.
<yorickpeterse> or is it supposed to be an unicode cake my terminal doesn't show?
<ljarvis> yorickpeterse: yep
<ngscheurich> Also that.
<ljarvis> heathen
axl_ has quit [Client Quit]
<Psi-Jack> Yeah, my IRC client doesn't show that character either.
<Psi-Jack> And I'm using unicode. :p
<jhass> yorickpeterse: install ttf-symbola :P
<ljarvis> poor folks
* yorickpeterse installs ttf-symbola
sdfgsdfg has quit [Remote host closed the connection]
kies^ has joined #ruby
<jhass> eightyeight: got the link to the code again?
<yorickpeterse> "resolving dependencies"
<yorickpeterse> 8 years later
<yorickpeterse> ...it doesn't even have dependencies
<eightyeight> ah. it was using 2.1. now i'm 100% confident it's using 2.2, and new error:
<yorickpeterse> what the hell pacman
<eightyeight> Disabling plugin due to error: NoMethodError, undefined method `split' for nil:NilClass
<Psi-Jack> I blame pacman for 100% of problems. :p
<yorickpeterse> ?cake
<ruboto> here's your cake:
<yorickpeterse> booo
ckinniburgh has joined #ruby
<jhass> must be your clunky bitmap font messing up :P
<yorickpeterse> jhass: fk you
<yorickpeterse> it shows hangul just fine
<jhass> yorickpeterse: with pleasure
Thomas-0725 has joined #ruby
bustrarm has joined #ruby
deg_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<jhass> eightyeight: make sure plugins.var.ruby.zmq_notify.ignore_tags is non-empty
shmilan has quit [Ping timeout: 260 seconds]
<jhass> eightyeight: alternatively provide the backtrace so we can make sure it's actually that
khebbie has joined #ruby
icharlie has joined #ruby
busterarm has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
paradoja has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
shmilan has joined #ruby
<eightyeight> hmm
tonios57 has joined #ruby
darkf has quit [Quit: Leaving]
axl_ has joined #ruby
jiada has joined #ruby
mary5030 has joined #ruby
unver` has joined #ruby
auzty has quit [Quit: Leaving]
rbowlby has joined #ruby
unver has quit [Read error: Connection reset by peer]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
victortyau has quit [Ping timeout: 252 seconds]
<Psi-Jack> in ruby, is def initialize the only method that is called internally by ruby calls, or are there others beyond just initialize?
<ljarvis> Psi-Jack: there any many more
<Psi-Jack> Hmm, okay. Is there a web page that shows them?
<ljarvis> it depends what you mean exactly though, initialize is unique. But there's looks of hook methods for example
kies^ has quit [Ping timeout: 246 seconds]
rbowlby has quit [Ping timeout: 240 seconds]
<jhass> and converters
<jhass> >> class Foo; def to_s; "Bar"; end; end; "#{Foo.new}"
<ruboto> jhass # => "Bar" (https://eval.in/420393)
<ljarvis> >> class A; def to_ary; ["wot"]; end; end; Array(A.new)
<Psi-Jack> Hmm.. Trying to see if post_init is one of those methods that are normally called when instantiating an object.
<ruboto> ljarvis # => ["wot"] (https://eval.in/420394)
<jhass> nope
<jhass> that's some libraries doing
<Psi-Jack> Gotcha. ;)
<ljarvis> medling libraries
<[k-> jhass, also, coerce
<jhass> yeah, counted that to the converters
EagleDelta has joined #ruby
EagleDelta has quit [Remote host closed the connection]
dhollinger has joined #ruby
juanpaucar has quit []
<Psi-Jack> Hmmm.. Welp. now I can start re-writing my sensu extension to work with rabbitmq. :)
<ljarvis> >> class A; def +@; p ":|"; end; end; +A.new
<ruboto> ljarvis # => ":|" ...check link for more (https://eval.in/420395)
DexterLB has joined #ruby
<ljarvis> -p
pawnbox has joined #ruby
shmilan has quit [Ping timeout: 250 seconds]
mwlang has quit [Quit: mwlang]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<Psi-Jack> mwlang: Heh, it's funny too. I had asked in #sensu if re-writing my bridge extension to utilize RabbitMQ would be advisable to handle varrying diferent types of external communications, tcp, http, etc.. And was told that the resources used to serialize, push, and fetch data from rabbitmq may exceed those to just send to the correct endpoint.
victortyau has joined #ruby
<Psi-Jack> May be right... But, em-http-request itself has no queuing and retry system, like EM::Connection does.
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<eightyeight> jhass: hmm. not sure how to get tracebacks of scripts with the weechat client
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<eightyeight> however, the current error is: NoMethodError, undefined method `split' for nil:NilClass
blackjid has quit [Max SendQ exceeded]
umgrosscol has joined #ruby
<jhass> yeah, I'm afraid that's impossible to debug without a backtrace
blackjid has joined #ruby
<eightyeight> looks like the split() function is only called twice in the script, if that error isn't a red herring
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<IrishGringo> I need assistance with my MBP 10.10.5 machine setting up cocoapods... can someone look at this please... http://pastebin.com/fgkYq0eC
<ruboto> IrishGringo, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/e659a81262386cfe883f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
umgrosscol has quit [Client Quit]
<ArnaudM> About rbenv... anyone succeed setting PATH var in .service systemd files ?
fgo has joined #ruby
kr3ssh has quit [Ping timeout: 240 seconds]
<adaedra> IrishGringo: don't use sudo while installing gems
arup_r has quit [Remote host closed the connection]
snockerton has joined #ruby
<IrishGringo> i'll give that a try
<adaedra> You're using rvm as it seems, so you should be able to do it
marguerite has joined #ruby
Coldblackice has quit [Ping timeout: 252 seconds]
<IrishGringo> is there a better way than rvm?
<adaedra> rvm should be ok
<adaedra> but if you use rvm, don't use sudo
pawnbox has quit [Remote host closed the connection]
chohe has joined #ruby
<adaedra> also, 1.9.3 is EOL, you may want to update your ruby
<[k-> ?eol
<ruboto> I don't know anything about eol
<adaedra> er wait
<adaedra> - RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
<adaedra> - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p194
<adaedra> what the heck
diegoaguilar has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
bruno- has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
havenwood has joined #ruby
lannonbr has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<marguerite> hello, how can nokogiri automatically skip unrecognized characters? some part of my needed text was skipped because they appeared after the unrecognized characters...my code please see http://paste.opensuse.org/98409697
[Butch] has joined #ruby
robh71 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
jokester has quit [Quit: change wireless cable]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
jokester has joined #ruby
<IrishGringo> adaedra: I am going to attempt to update my ruby using these instrutions... make sense ? https://www.ruby-lang.org/en/documentation/installation/#homebrew
<adaedra> Why does my Internet hates me
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
polpak has joined #ruby
ngscheurich has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<[k-> you kept giving fake cakes
<[k-> thats why
* adaedra slaps [k- with
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<jhass> marguerite: open(url, &:read).encode("UTF-8", replace: "") seems to help
d2dchat has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
pdoherty has joined #ruby
erts has joined #ruby
n008f4g_ has joined #ruby
nettoweb has joined #ruby
northfurr has joined #ruby
The_Phoenix has joined #ruby
rubie has joined #ruby
suchness has quit [Remote host closed the connection]
terlar has quit [Ping timeout: 260 seconds]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
<marguerite> jhass: thanks! it helps
The_Phoenix has quit [Max SendQ exceeded]
petricore has joined #ruby
The_Phoenix has joined #ruby
<adaedra> IrishGringo: if you're using rvm, use it to update your ruby
The_Phoenix has quit [Max SendQ exceeded]
havenwood has quit [Ping timeout: 255 seconds]
scyth has joined #ruby
biske has joined #ruby
scyth has left #ruby ["Leaving"]
<IrishGringo> I'm hearing from some others I should not be using rvm... just googling it now to see what the issue is...
The_Phoenix has joined #ruby
<adaedra> There's alternatives, like rbenv or chruby
tkuchiki has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
<adaedra> But in that case, you may want to start by completely nuking your rvm and cleaning system-installed gems
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
northfurr has quit [Quit: northfurr]
rcvalle has joined #ruby
nofxx has joined #ruby
northfurr has joined #ruby
devoldmx has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
stan_ has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Max SendQ exceeded]
j_mcnally has joined #ruby
failshell has joined #ruby
The_Phoenix has joined #ruby
lannonbr has quit [Ping timeout: 246 seconds]
The_Phoenix has quit [Max SendQ exceeded]
hotpancakes has quit [Remote host closed the connection]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
msnyon has quit [Ping timeout: 264 seconds]
JDiPierro has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has quit [Ping timeout: 245 seconds]
diegoaguilar has quit [Remote host closed the connection]
war_pigs has joined #ruby
Ropeney has joined #ruby
diegoaguilar has joined #ruby
<gregf_> not gcse's?
<gregf_> oops sorry :/
<ashleyhindle> :)
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hmsimha_ has quit [Ping timeout: 265 seconds]
dfockler has joined #ruby
Neon has quit [Quit: Leaving]
ips|malc has joined #ruby
<diegoaguilar> akira .not @room
icarus has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
diegoaguilar has joined #ruby
icarus has joined #ruby
hotpancakes has joined #ruby
anisha has quit [Quit: Leaving]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
GnuYawk has joined #ruby
xhosae has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DEac- has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
DEac- has joined #ruby
xhosae has quit [Remote host closed the connection]
kedare has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
hotpancakes has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
Lucky__ has joined #ruby
khebbie has quit [Remote host closed the connection]
khebbie has joined #ruby
Gribo has quit [Read error: Connection reset by peer]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marguerite has left #ruby [#ruby]
renderful has quit [Ping timeout: 245 seconds]
towski_ has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
ips|malc has joined #ruby
skade has joined #ruby
Thomas-0725 has joined #ruby
Thomas-0725 has quit [Client Quit]
kies^ has quit [Ping timeout: 272 seconds]
northfurr has joined #ruby
ips|malc has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
khebbie has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
maletor has joined #ruby
renderful has joined #ruby
<shevy> dumdedum
mikecmpbll has quit [Ping timeout: 260 seconds]
JDiPierro has quit [Remote host closed the connection]
<Darkwater> doot
skade has quit [Quit: Computer has gone to sleep.]
amclain has joined #ruby
shmilan has joined #ruby
bricker has joined #ruby
Thomas-0725 has joined #ruby
Torrieri has joined #ruby
rideh has quit [Quit: zap]
Torrieri has quit [Changing host]
Torrieri has joined #ruby
nettoweb has joined #ruby
bffff_ has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
fantazo has joined #ruby
gh has joined #ruby
hotpancakes has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
<shevy> root?
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
rbennacer has quit [Remote host closed the connection]
<lagweezle> <groot>I am root.</groot>
gh has quit [Client Quit]
baroquebobcat has joined #ruby
Spami has joined #ruby
bronson has quit [Remote host closed the connection]
alveric has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 256 seconds]
biske has quit [Quit: This computer has gone to sleep]
mary5030 has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
northfurr has quit [Quit: northfurr]
fgo has quit [Ping timeout: 255 seconds]
[Butch] has quit [Client Quit]
chthon has quit [Quit: Ex-Chat]
psy_ has joined #ruby
[Butch] has joined #ruby
<baweaver> shevy: I eat root
mary5030 has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
joonty has quit [Quit: joonty]
casadei_ has quit [Remote host closed the connection]
mutuma has joined #ruby
socialjackie has quit [Quit: Leaving]
<adaedra>
mutuma has quit [Client Quit]
<lagweezle> Oh myyyy.
UtkarshRay has joined #ruby
Rinzlit2 has quit [Read error: Connection reset by peer]
towski_ has quit [Remote host closed the connection]
Rinzlit2 has joined #ruby
<adaedra> ⌛︎
Asher has quit [Quit: Leaving.]
<jhass> eek, go away
hanmac has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
leat has joined #ruby
biske has joined #ruby
kellray_ has quit [Quit: kellray_]
roolo has joined #ruby
jpfuentes2 has joined #ruby
dfockler has quit [Remote host closed the connection]
moshe_ has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
greymeister has joined #ruby
biske has quit [Client Quit]
RegulationD has quit [Remote host closed the connection]
leafybasil has quit [Read error: Connection reset by peer]
<adaedra> :(
war_pigs has quit [Quit: later... computer is sleeping]
<baweaver> hm?
kies^ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<moshe_> anyone here experienced with using OmniAuth with multiple models? I’ve done everything stated here https://github.com/plataformatec/devise/wiki/OmniAuth-with-multiple-models but it doesnt seem to work. The omniauth url methods are not being generated, so I’m getting undefinied ‘user_omniauth_authorize_path’
pawnbox has joined #ruby
Alayde has quit [Quit: WeeChat 1.1.1]
dfockler has joined #ruby
leat has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 260 seconds]
leafybasil has joined #ruby
nertzy has joined #ruby
Asher has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
Alayde has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
<jhass> ?rails moshe_
<ruboto> moshe_, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
Thomas-0725 has quit [Quit: Textual IRC Client: www.textualapp.com]
<moshe_> sorry, I’ll ask there.
Spami has quit [Quit: This computer has gone to sleep]
haxrbyte has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
A124 has quit [Changing host]
A124 has joined #ruby
RobertBirnie has joined #ruby
pandaant has quit [Remote host closed the connection]
<eightyeight> i commented out the ignored stuff: http://ae7.st/p/2m0
robh71 has quit [Ping timeout: 264 seconds]
greenbigfrog has joined #ruby
rehat has joined #ruby
<jhass> and that helped?
<eightyeight> yeah. the plugin isn't getting disabled now
baweaver has quit [Remote host closed the connection]
<jhass> mmh
NeverDie has joined #ruby
<greenbigfrog> Everything is written in the file. I'm getting an connection reset by peer and don't know how to fix it...
moshe_ is now known as moshef
fantazo has joined #ruby
<jhass> greenbigfrog: do you also get that for nc api.twitch.tv 443 ?
<greenbigfrog> nc?
<jhass> netcat
mleung has joined #ruby
<eightyeight> i've emailed the plugin developer. we'll see where it goes from there
khebbie has joined #ruby
[H]unt3r has quit [Quit: Leaving]
<greenbigfrog> jhass: no respond till now
tenderlove has joined #ruby
c0m0 has quit [Ping timeout: 260 seconds]
<jhass> greenbigfrog: press Ctrl+D. Next up: openssl s_client -connect api.twitch.tv:443
<greenbigfrog> jhass: all responses go over api.twitch.tv/kraken as far as I know
<jhass> /kraken is part of the request path, not the host
arooni-mobile has joined #ruby
<jhass> good, Ctrl+D again
tjohnson has joined #ruby
pietr0 has joined #ruby
<jhass> okay one odd thing in the code, :use_ssl == 'https' is always false
<jhass> where did you pick that up?
jacky has joined #ruby
Ilyes512 has joined #ruby
<greenbigfrog> I messed it up I guess ;)
<jhass> should probably be use_ssl: true
<eightyeight> bug though
xet7 has joined #ruby
astrobun_ has quit [Read error: Connection reset by peer]
astrobun_ has joined #ruby
<greenbigfrog> jhass: still not working
<jhass> did the error change at least?
flegercovateam has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
<greenbigfrog> jhass: one sec
<jhass> btw your indentation is all messy, you should be pedantic about that
alfajor has joined #ruby
<jhass> actually you don't even do anything with the first request but do a second one ?!
jamesaxl has joined #ruby
<jhass> the messy indentation got me confused enough that I didn't notice
einarj has joined #ruby
jonee has joined #ruby
<jhass> JSON.parse(Net::HTTP.get(URI.parse("https://api.twitch.tv/kraken/streams/ESL_CSGO"))) works just fine here
<jhass> no need for anything else
pawnbox has quit [Ping timeout: 256 seconds]
[H]unt3r has joined #ruby
rbennacer has joined #ruby
pawnbox has joined #ruby
unver` has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Quit: WeeChat 1.2]
hahuang65 has joined #ruby
emma_ has quit [Ping timeout: 272 seconds]
ngscheurich has joined #ruby
fantazo has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
emma_ has joined #ruby
DelDotB has quit [Quit: DelDotB]
baweaver has quit [Remote host closed the connection]
paradoja has quit [Ping timeout: 240 seconds]
IrishGringo has quit [Ping timeout: 246 seconds]
andybernard has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prestorium has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
jiada has quit [Quit: Connection closed for inactivity]
prestorium has joined #ruby
rakm has joined #ruby
casadei_ has joined #ruby
baweaver has joined #ruby
binaryplease has quit [Quit: WeeChat 1.3]
anon__ has joined #ruby
lethan has joined #ruby
djbkd has joined #ruby
<greenbigfrog> jhass: I had a lag and had to reconnect: did you or anyone else write something?
lannonbr has joined #ruby
<jhass> ?logs greenbigfrog
<ruboto> greenbigfrog, You can find a log of this channel at http://irclog.whitequark.org/ruby/
<greenbigfrog> ty
sdwrage has quit [Quit: Leaving]
mary5030 has quit [Ping timeout: 240 seconds]
tangledhelix has joined #ruby
tangledhelix has quit [Client Quit]
frem has joined #ruby
<greenbigfrog> jhass: can you edit the hastebin maybe for me please? with the fix you mean and also right intendation? that would be really kind
<jhass> nah, I'm not here to spoon feed you
nettoweb has joined #ruby
<greenbigfrog> jhass:
<greenbigfrog> ok
Rinzlit has joined #ruby
anon_ has quit [Ping timeout: 264 seconds]
treehug88 has joined #ruby
djbkd has quit [Remote host closed the connection]
Timba-as has quit [Quit: Be back later ...]
jenksy has left #ruby [#ruby]
greenride has joined #ruby
djbkd has joined #ruby
towler has quit [Ping timeout: 260 seconds]
anon__ has quit [Ping timeout: 256 seconds]
Rinzlit2 has quit [Ping timeout: 260 seconds]
unver` has joined #ruby
anon_ has joined #ruby
tmtwd has joined #ruby
djbkd_ has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
Soda has quit [Remote host closed the connection]
flegercovateam has joined #ruby
andybernard has quit [Quit: Leaving]
towler has joined #ruby
andybernard has joined #ruby
JDiPierro has joined #ruby
moshef has quit [Quit: moshef]
casadei_ has quit [Remote host closed the connection]
astrobun_ has quit [Remote host closed the connection]
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
<greenbigfrog> Still the same error: http://hastebin.com/amaqemuzem.rb
djbkd_ has quit [Ping timeout: 252 seconds]
failshell has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
timonv has joined #ruby
mary5030 has joined #ruby
baweaver has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
einarj has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
mary5030 has quit [Remote host closed the connection]
<jhass> greenbigfrog: why do you do it twice?
alfajor has quit [Quit: Leaving]
nettoweb has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
mary5030 has joined #ruby
DelDotB has joined #ruby
eminencehc has quit [Remote host closed the connection]
<jhass> jruby -rjson -r'net/http' -e 'p JSON.parse(Net::HTTP.get(URI.parse("https://api.twitch.tv/kraken/streams/kingkongor")))' works for me
<jhass> guess they blocked you
lsmola has quit [Ping timeout: 265 seconds]
Musashi007 has joined #ruby
benlieb has joined #ruby
xet7 has quit [Ping timeout: 240 seconds]
towski_ has joined #ruby
pawnbox has quit []
<greenbigfrog> jhass: no Idea why I was doing it twice (again)
<greenbigfrog> /me should concentrate more
fgo has quit [Ping timeout: 260 seconds]
* greenbigfrog should concentrate more
timonv has quit [Ping timeout: 244 seconds]
eminencehc has joined #ruby
<greenbigfrog> jruby -rjson -r'net/http' -e 'p JSON.parse(Net::HTTP.get(URI.parse("https://api.twitch.tv/kraken/streams/kingkongor")))' doesn't work for me
<jhass> then I doubt there's anything we can do about it
jenrzzz has joined #ruby
<jhass> get a new IP
<greenbigfrog> jhass: ok
<greenbigfrog> thanks for helping
last_staff has joined #ruby
nb_bez___ has joined #ruby
kies^ has quit [Ping timeout: 244 seconds]
rideh has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
snockerton has quit [Quit: Leaving.]
dh64 has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
einarj_ has joined #ruby
choke has joined #ruby
chohe has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
<nofxx> is there some pry/irb nicety to show a gem README? > just_plain_forgot_how_to_use('gemname')
northfurr has joined #ruby
AlexAltea is now known as AlexDeLarge
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
northfurr has quit [Client Quit]
northfurr has joined #ruby
AlexDeLarge is now known as AlexAltea
nuttermb has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
fantazo has joined #ruby
bluOxigen has joined #ruby
chohe has joined #ruby
snockerton has joined #ruby
snockerton has quit [Client Quit]
blueOxigen has quit [Ping timeout: 256 seconds]
doublemalt_ has quit [Remote host closed the connection]
bronson has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
<greenbigfrog> jhass: I don't get it... (http://hastebin.com/ebilexisuk.rb)
jeadre has quit [Remote host closed the connection]
<greenbigfrog> I can access the API via browser but not over the code... WHY? (I know you'll probably not be able to tell me)
d2dchat has joined #ruby
shinnya has joined #ruby
bronson has quit [Remote host closed the connection]
DoubleMalt has joined #ruby
jaycee has joined #ruby
<jhass> as said, works here
<Papierkorb> is maybe just your IP+user-agent pair banned?
<greenbigfrog> no Idea
<greenbigfrog> how could I test that?
jeadre has joined #ruby
<Papierkorb> change your UA or IP
devoldmx has joined #ruby
<greenbigfrog> how do I change my UA? (Browser works as I already said)
kidoz has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
RegulationD has joined #ruby
<unver`> greenbigfrog: You can do it in chrome through the developer tools
Musashi007 has quit [Quit: Musashi007]
<greenbigfrog> unver`: as I already said it's working with my browser but not with my code
rbennacer has quit [Ping timeout: 240 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
radgeRayden has quit [Read error: Connection reset by peer]
radgeRayden has joined #ruby
<greenbigfrog> found this... But I'm not sure on how I have to use it...
lannonbr has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
rippa has joined #ruby
einarj has joined #ruby
platzhirsch has quit [Remote host closed the connection]
einarj_ has quit [Ping timeout: 260 seconds]
<unver`> https://github.com/justintv/twitch-api , https://discuss.dev.twitch.tv/ looks like there's an irc channel too, #twitch-api
RegulationD has quit [Ping timeout: 272 seconds]
<nofxx> greenbigfrog, use on your get. Also, try setting your editor to 2 spaces for identation. Ruby looks better that way.
Azulinho has quit [Quit: Leaving]
<greenbigfrog> nofxx: I like it with 4/8 more
hydrozen has joined #ruby
cajone has quit [Ping timeout: 250 seconds]
<nofxx> 10 man, 10 colors: good japanese saying =D
Kallis has joined #ruby
Kallis has quit [Max SendQ exceeded]
<nofxx> greenbigfrog, use a browser one.. chrome, IE
casadei_ has joined #ruby
Kallis has joined #ruby
<greenbigfrog> changing the UA like said in the link posted further up didn't help...
<greenbigfrog> still the same error
xwct has quit [Ping timeout: 244 seconds]
rbowlby has joined #ruby
bronson has joined #ruby
* greenbigfrog will have to let the issue sleep till tommorow
<greenbigfrog> thanks for all the help
astrobun_ has joined #ruby
RegulationD has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
postmodern has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
einarj_ has joined #ruby
A124 has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
Musashi007 has joined #ruby
[Butch] has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
petricore has joined #ruby
B5X has joined #ruby
B5X has quit [Client Quit]
B5X has joined #ruby
B5X has quit [Client Quit]
bmcginty has quit [Quit: leaving]
B5X has joined #ruby
northfurr has quit [Quit: northfurr]
diegoaguilar has quit [Remote host closed the connection]
cajone has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
rideh has quit [Ping timeout: 264 seconds]
anon has joined #ruby
anon is now known as Guest10981
anon_ has quit [Ping timeout: 244 seconds]
cball has quit [Quit: Leaving]
[Butch] has quit [Read error: Connection reset by peer]
choke has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
DexterLB has joined #ruby
bmcginty has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
anon_ has joined #ruby
iamninja has joined #ruby
failshell has joined #ruby
[Butch] has joined #ruby
roolo has joined #ruby
war_pigs has joined #ruby
Guest10981 has quit [Ping timeout: 256 seconds]
shawnacscott is now known as Shawn
Shawn is now known as ShawnIsADudelyDu
webuser20 has joined #ruby
ShawnIsADudelyDu is now known as ShawnADudelyDude
cball has joined #ruby
fgo has joined #ruby
<webuser20> Good morning - I'm running into abit of an issue with some code - https://gist.github.com/anonymous/e8696c8e4fa1bf9f849c -- When I run the attached with a longer file (1500 lines or so) (full.txt) I quickly exhaust all the connections to my Mongo instance. This is because as I read through my file, I am instantiating another object, with it's database connection, for every line. It appears that the Ruby Mongo driver is not properly cl
nertzy has quit [Quit: This computer has gone to sleep]
<webuser20> his is alluded to in https://jira.mongodb.org/browse/RUBY-910 and another bug issue I can't point to right now. I've tried a variety of things to work around this - reset the object to nil after it has been inserted, run a garbage collection, etc, but none helped. So my question is, what's the right way to share a database connection between multiple objects of a class?
mhib has joined #ruby
<jhass> webuser20: can't you use a connection pool?
Asher has quit [Quit: Leaving.]
<apeiros> better question: why on earth a new connection for each insert?
dgutierrez1287 has quit [Remote host closed the connection]
<webuser20> jhass: that would be great, but I'm not sure how to do so. I shouldnt be creating a new connection for every insert, that's a bit silly
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> well actually apeiros has a point, why not a single connection?
roolo has quit [Ping timeout: 264 seconds]
<webuser20> but, I'm not sure how to create a connection pool except creating a global or at least class level connection
<webuser20> and.. I dont know if that would cause problems. I'm a bit new to the whole object programming ideas
dgutierrez1287 has joined #ruby
<jhass> just pass the client into the constructor
<jhass> tbh that class seems to be a bit arbitrary "let's use a class!"
<webuser20> object.insert(data, @client)?
pdoherty has quit [Quit: Leaving]
fgo has quit [Ping timeout: 252 seconds]
jeanlinux has joined #ruby
tmtwd has quit [Ping timeout: 240 seconds]
<webuser20> from my understanding, passing the client to the constructor still creates a new connection for each object
C1V0 has joined #ruby
duggiefresh has quit [Remote host closed the connection]
user1138 has joined #ruby
<jhass> More like client[:bar].insert LogEntry.new(line).record
eminencehc has quit [Remote host closed the connection]
<jhass> I think that's getting somewhere
<jhass> just the parsing seems like good domain for a class, no need for it to know about how to use a mongodb client
dgutierrez1287 has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
<jhass> but no, Ruby is pass by reference, it wouldn't create a new client
<nofxx> spec/ test/ folders (all that's within) is packed in gem right?
paulcsmith has joined #ruby
<nofxx> hence the s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") line
tmtwd has joined #ruby
thermatix has joined #ruby
veduardo_ has joined #ruby
pragmatism has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
nuttermb has joined #ruby
decoponio has joined #ruby
lannonbr has quit [Ping timeout: 245 seconds]
jeadre has quit [Remote host closed the connection]
jeanlinu_ has joined #ruby
<webuser20> jhass: hrm, I see what you're saying, it's one thing I considered, but it felt..backward to me. Thanks, I'll refactor to something like that
jeanlinux has quit [Ping timeout: 240 seconds]
thermatix has quit [Ping timeout: 246 seconds]
Cust0sLim3n has quit [Ping timeout: 260 seconds]
DLSteve has joined #ruby
duggiefresh has joined #ruby
jeadre has joined #ruby
xet7 has joined #ruby
veduardo_ has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
sideshowcoder has quit [Quit: Connection closed for inactivity]
Cust0sLim3n has joined #ruby
arooni-mobile has quit [Read error: Connection reset by peer]
chohe has quit [Quit: This computer has gone to sleep]
toretore has joined #ruby
greenride has left #ruby [#ruby]
tmtwd has quit [Ping timeout: 245 seconds]
chohe has joined #ruby
icarus has quit [Quit: Lost terminal]
malconis has quit [Read error: Connection reset by peer]
malconis_ has joined #ruby
umgrosscol has joined #ruby
symm- has joined #ruby
Guest7662 is now known as DeezNuts
carlosoliveira has joined #ruby
shinnya has quit [Ping timeout: 245 seconds]
iateadonut has quit [Quit: Leaving.]
afrianska has quit [Remote host closed the connection]
fullofcaffeine has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
[H]unt3r has quit [Quit: Leaving]
lannonbr has joined #ruby
prestorium has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
bruno- has joined #ruby
sepp2k has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
mary5030 has joined #ruby
carlosoliveira has quit []
carlosoliveira has joined #ruby
northfurr has joined #ruby
mhib has quit [Read error: Connection reset by peer]
Vitor_ has joined #ruby
carlosoliveira has left #ruby [#ruby]
veduardo_ has joined #ruby
Pupp3tm4st3r has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
einarj_ has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
choke has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
Kallis has quit [Read error: Connection reset by peer]
luksaur has quit [Ping timeout: 245 seconds]
jgpawletko has joined #ruby
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<certainty> eventing
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<certainty> erm, evening
baweaver has joined #ruby
B5X has quit [Ping timeout: 240 seconds]
stamina has quit [Quit: WeeChat 1.2]
noethics has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 272 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 260 seconds]
nuttermb has quit [Ping timeout: 246 seconds]
bumbar_ has quit [Ping timeout: 245 seconds]
einarj has quit [Ping timeout: 244 seconds]
tubulife- has joined #ruby
einarj has joined #ruby
ruby-lang878 has joined #ruby
<ruby-lang878> hi, is anyone here?
<relic> Certainly.
<certainty> sure
veduardo_ has quit [Ping timeout: 250 seconds]
_d has joined #ruby
symm- has quit [Quit: Leaving...]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kirun has joined #ruby
<_d> need to write a script
jenrzzz has quit [Ping timeout: 265 seconds]
<certainty> cool. do it :)
<_d> where i have files populated given each line as something similar to this: 0 AUE_NULL STD { int nosys(void); } syscall nosys_args int
<shevy> need to throw the cat
<_d> what i want is
<certainty> need to catch the cat
lurkmaster has joined #ruby
<_d> for the resulting output to be: { 0, nosys, 0 }
MasterPiece has joined #ruby
<_d> where the last 0 represents the arguments in nosys
<_d> but if given arguments like (int, float, struct), it would return 3.
<_d> or if given the argument (int) it would give one.
<_d> 1.
<_d> I think it would be easy to go about getting the first number (the first 0)
<lurkmaster> hey guys, i'm getting this weird error message when I try to start a new rails app. anyone know what's going on here? http://pastie.org/10366950
<_d> But I'm really new
<jhass> ?crosspost lurkmaster
<ruboto> lurkmaster, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<_d> can you help shevy, certainty
<_d> jhass:
_d has quit [Client Quit]
Ilyes512 has joined #ruby
<relic> Someone's playing with syscalls, fun.
Vitor_ has quit [Read error: Connection timed out]
<relic> That's pretty trivial to do, but I wonder what comes afterward.
einarj_ has joined #ruby
<lurkmaster> this is a crosspost, no one replied, and so there were no suggestions
einarj has quit [Ping timeout: 255 seconds]
<relic> Clearly some BSD variant, perhaps a fuzzer of some kind.
Vitor_ has joined #ruby
<relic> Linux syscalls are listed rather differently, note: AUE_NULL STD.
<relic> Oh he left.
<certainty> no I can't help shevy
ruby-lang878 has quit [Ping timeout: 246 seconds]
<certainty> nobody can
pullphinger15 has joined #ruby
<relic> Damn /ignore * join part quit crap.
<zenspider> WHY DID YOU NOT WRITE IT FOR ME?!?!?
<relic> zenspider: You've been yelling since before you woke up.
<relic> 10:04 < zenspider> STABLE!!!
arooni-mobile has joined #ruby
<lurkmaster> so no one has any clue why rails won't let me start a new app?
<relic> Was _d expecting someone to write it for him, or to guide him on how to write it? :\
<relic> lurkmaster: This channel isn't about rails.
<relic> There's another channel down the hall to the left regarding that.
astrobun_ has quit [Remote host closed the connection]
<relic> (It's called #rubyonrails.)
<lurkmaster> relic: that channel is completely unresponsive and fucking sucks
einarj_ has quit [Read error: Connection reset by peer]
<relic> Well then, that's not very nice.
<lurkmaster> relic: but its true
sarkyniin has quit [Ping timeout: 260 seconds]
lannonbr has quit [Ping timeout: 256 seconds]
einarj has joined #ruby
choke has joined #ruby
ruby-lang055 has joined #ruby
<zenspider> relic: haha. uh. hopefully not my timezone. IMPOSTER!
amoeba is now known as petridish
astrobun_ has joined #ruby
jackjackdripper has joined #ruby
* relic eyes zenspider.
pullphinger15 has quit [Client Quit]
<zenspider> lurkmaster: no, it isn't completely unresponsive. I've gotten help there several times in the past month or so
B5X has joined #ruby
<jhass> lurkmaster: welcome to IRC, sometimes it just takes an hour or two
<ruby-lang055> can you hear me now?
<zenspider> try asking your question better... in a way that conveys your intent and is actually answerable
User458764 has joined #ruby
sepp2k has joined #ruby
fgo has joined #ruby
UtkarshRay has quit [Quit: Leaving]
failshell has quit []
<ruby-lang055> any suggestions for loading a constant from a gem? it seems to not be able to find the new gem
<ruby-lang055> if I run $gem which analytics-ruby, it says ERROR: Can't find ruby library file or shared library analytics-ruby
<ruby-lang055> in my code or in the console, it gives NameError (uninitialized constant Segment):
<ruby-lang055> I'm using rails
Asher has joined #ruby
<lurkmaster> zenspider: my intent is to solve an error message. i have written a line of code yet, rails won't even generate a new app. what would make my query more answerable?
<zenspider> ruby-lang055: there's no rule about the gem name that is requirable
<zenspider> ruby-lang055: try `gem contents analytics-ruby | grep lib`
<lurkmaster> and suck is a relative term. in absolute terms maybe the rails channel doesn't suck but in relative terms it sure does. someone would've responded in #django or #nodejs or #python or #javascript
luksaur has joined #ruby
<ruby-lang055> I see it when I run bundle: "Using analytics-ruby 2.0.12"
<ruby-lang055> oh I see this zenspider:
<ruby-lang055> .rvm/gems/ruby-2.2.2/gems/analytics-ruby-2.0.12/lib/segment.rb
<ruby-lang055> and a bunch of others
<ruby-lang055> so it is there?
tmtwd has joined #ruby
<ruby-lang055> how come it's not loading in console or my rails app?
<zenspider> lurkmaster: you're not providing the cmd. you're not providing version info... you're not providing a lot.
<zenspider> ruby-lang055: remove the grep. might have c exts
<zenspider> gotta go to lunch...
<ruby-lang055> noooooo
B5X has quit [Ping timeout: 265 seconds]
<lurkmaster> zenspider: cmd - rails new app
<ruby-lang055> I see a bunch of stuff with $ gem contents analytics-ruby
IrishGringo has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0.2/20150812163655]]
<ruby-lang055> but I don't know how to load it in the console :(
pullphinger has joined #ruby
<ruby-lang055> require doesn't do the trick
pullphinger has quit [Excess Flood]
pullphinger has joined #ruby
pullphinger has quit [Excess Flood]
AlexRussia_ has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 265 seconds]
nerium has quit [Quit: nerium]
_Cronon_ has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
chohe has quit [Quit: This computer has gone to sleep]
lannonbr has joined #ruby
Cronon has quit [Ping timeout: 246 seconds]
fantazo has quit [Ping timeout: 244 seconds]
<Hamled> Does the ruby core library have anything similar to eval that would prevent any function calls (e.g. if you want to [de]serialize a ruby data structure)
astrobun_ has quit [Remote host closed the connection]
<jhass> Hamled: check the literal_parser gem or yet better don't do such stuff
<Hamled> jhass, oh yah I agree dont' do such stuff
<Hamled> and thanks for the tip
<jhass> Hamled: use a proper serialization, like JSON, YAML, Marshal
Musashi007 has quit [Quit: Musashi007]
JoshL has quit []
symm- has joined #ruby
rfmind_ has joined #ruby
pawnbox has joined #ruby
astrobun_ has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
<certainty> lurkmaster: you can skip the bundle. See options for the rails new command but that doesn't solve your problem. It only delays it
linuxboy_ has joined #ruby
<nofxx> Hamled, there's even BSON if you're sexually inclined to binaries
<lurkmaster> certainty: thanks for being the first person to respond to my question, ill try that
<lurkmaster> certainty: do you know how i might go about fixing the underlying problem?
<lurkmaster> certainty: everything fine just a day or two ago, and now I'm getting this random error message
<certainty> lurkmaster: no unfortunatelly not. What ruby and rails version is this. Did you do anything special?
xet7 has quit [Ping timeout: 246 seconds]
riskish has joined #ruby
<lurkmaster> certainty: ruby 2.0.0p481
riskish has quit [Remote host closed the connection]
<lurkmaster> certainty: when i try to run ruby -v i get the same error message so I'm not sure what version i have but i reinstalled rails yesterday so it must be the newest version of rails
linuxboytoo has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
<certainty> ruby -v gives you that error?
jienahma has joined #ruby
jienahma has left #ruby [#ruby]
jienahma has joined #ruby
<nofxx> is 'chunk' a somesort of reserved word ? got the craziest w/o trace error: 'ArgumentError: no block given'
<lurkmaster> certainty: i meant rails -v sorry
j_mcnally has joined #ruby
<lurkmaster> certainty: i did edit the .bash_profile while doing a codecademy exercise, could that be it?
<nofxx> ahh.... enumerable
radgeRayden_ has joined #ruby
renderful has quit [Ping timeout: 252 seconds]
mleung has quit [Quit: mleung]
jtdoncas has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
dfockler has quit [Remote host closed the connection]
renderful has joined #ruby
<certainty> lurkmaster: what did you change?
bruno- has quit [Ping timeout: 260 seconds]
radgeRayden has quit [Ping timeout: 244 seconds]
radgeRayden__ has joined #ruby
sphex_ has quit [Ping timeout: 250 seconds]
eminencehc has joined #ruby
lannonbr has quit [Ping timeout: 264 seconds]
<certainty> lurkmaster: in any case you can check that by starting a shell with bash --noprofile and run the command again
sphex has joined #ruby
pandaant has joined #ruby
codecodecode123 has joined #ruby
<lurkmaster> certainty: I don't remember what i originally changed, but after i started having issues with rails i deleted its contents because i thought i added some faulty code and i was going crazy over it
<lurkmaster> certainty: just ran the command without a profile — same error
radgeRayden has joined #ruby
<certainty> so we can conclude it's probably not your change to the profile
devoldmx has quit [Ping timeout: 244 seconds]
<certainty> it however is something that's specific to your environment because generally this kind of stuff works
<codecodecode123> Hi, can someone help me? http://pastie.org/10367031 I am having trouble with a script i made.
<jhass> codecodecode123: is this a guessing game?
<codecodecode123> no,
doodleha_ has joined #ruby
<codecodecode123> ill explain
crdpink has joined #ruby
<codecodecode123> its a script that runs with console params
radgeRayden_ has quit [Ping timeout: 265 seconds]
saphafee has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty> guessing game?
<jhass> codecodecode123: alright, maybe let's fix the obvious stuff
<codecodecode123> it saves or loads ips by label
crdpink2 has quit [Ping timeout: 246 seconds]
jonee has quit [Ping timeout: 260 seconds]
<codecodecode123> there is a ips.json file which stores the ips and labels
<jhass> codecodecode123: ARGV[0] = "-a" is not ARGV[0] == "-a" is not ARGV[0].start_with? "-a"
unver` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
saphafee has left #ruby [#ruby]
radgeRayden__ has quit [Ping timeout: 265 seconds]
nzst has joined #ruby
<jhass> codecodecode123: please oh please have a look at File.read and File.write, you're writing Ruby, not a shellscript
<codecodecode123> oh, right
<codecodecode123> but i want it to work with shellscript
xwct has joined #ruby
<jhass> that's okay
<jhass> work with != it is
ivanskie has joined #ruby
<jhass> rename get_ips to read_ips or parse_ips we generally frown upon get_, is_, set_ in method names
doodleha_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<codecodecode123> okay
mary5030 has joined #ruby
<jhass> I hope the fancy " are just osx being silly as you copy pasted or pastie rendering silly
<codecodecode123> linux, not osx
<codecodecode123> ill fix the doublequotes
diegoaguilar has joined #ruby
<jhass> ah nvm, it's pastie
<jhass> prefer "string #{interpolation}" over "string" + concatenation
dgutierrez1287 has joined #ruby
<codecodecode123> okay
ivanskie has quit [Ping timeout: 246 seconds]
decoponio has quit [Quit: Leaving...]
<jhass> and the general structure could benefit from extracting the individual commands to methods and perhaps using OptionParser or even slop
pawnbox has quit [Remote host closed the connection]
<codecodecode123> well, i considered OptionParser
<codecodecode123> but the structure seemed a bit needlessly complex to me
dgutierrez1287 has quit [Remote host closed the connection]
pawnbox has joined #ruby
dgutierrez1287 has joined #ruby
<codecodecode123> i guess a 12 year old can't understand that well
<codecodecode123> *11
<wasamasa> slop is another fine option
* wasamasa wonders what this script is for
radgeRayden_ has joined #ruby
radgeRayden has quit [Ping timeout: 265 seconds]
<codecodecode123> i told it before
<wasamasa> <codecodecode123> it saves or loads ips by label
<codecodecode123> it stores and retrieves ips
<wasamasa> that's not the real purpose, is it
ta has quit [Remote host closed the connection]
<wasamasa> for that you could just use the shell
<codecodecode123> i wanted to make a ruby script for it
<codecodecode123> it gives me more opportunities for other features
<wasamasa> hence my question what the real purpose is :>
bstrarm has joined #ruby
ItSANgo has joined #ruby
<wasamasa> what do you intend to turn it into?
<codecodecode123> an ip retrieving and storing system
bustrarm has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
<wasamasa> ...
hahuang65 has joined #ruby
<wasamasa> what would an eleven-year old do with ip addresses?
<codecodecode123> *my dad
<codecodecode123> i am selling this script to him
<wasamasa> wat
<codecodecode123> the script itself is free
<codecodecode123> additional features are paid
<yxhuvud> spoken like a true entrepeneur!
choke has joined #ruby
<wasamasa> why the heck would anyone pay for editing and saving a file
<codecodecode123> my core goal: script entrepeneur
<codecodecode123> first time
<wasamasa> lol
<codecodecode123> never gained any money by work in my whole ligfe
nofxx has quit [Ping timeout: 264 seconds]
<codecodecode123> *life
<wasamasa> looks like doing physical work has become uncool
<codecodecode123> yep
<yxhuvud> wasamasa, well, you are in a programming channel after all..
<codecodecode123> don't prefer completing errans to get money
<codecodecode123> *errands
<atmosx> wasamasa: Actually, working on the computer (writing code or text) it's exhausting. At that point, you wanna do some physical work (work with the hands and set the mind free).
<wasamasa> atmosx: yes, exactly
<codecodecode123> that is true
<wasamasa> atmosx: I did even go as far as working for three months at the fast food chain with the big m
<atmosx> wasamasa: it's a huge relief when I get to do it. Then I go back working on the computer. I think humans need a fair amount of both. I need to exercise a lot more though
<wasamasa> atmosx: and was shocked it paid better than my previous internships
<codecodecode123> but i still do not prefer profit by physical labor
<atmosx> physical works != execrise
<codecodecode123> well, i do exercise
radgeRayden_ has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
<atmosx> wasamasa: does it? I don't know, engineers in DO (sys-admins shit) start from 60k/year. You can't go for that kind of money in big M
<yxhuvud> atmosx: certain countries think that it is a good idea to not pay interns. Which is idiotic, but that is how it is.
<wasamasa> they did pay, just ridiculously little
<atmosx> codecodecode123: a retrieving and storing system I know is called database, you might wanna check it out
<codecodecode123> i know
shinnya has joined #ruby
<certainty> sup wasamasa
<codecodecode123> this is a json system
<wasamasa> certainty: hi
<atmosx> yxhuvud: I see. What interns 'do' actually?
roolo has joined #ruby
<wasamasa> codecodecode123: make it to hackernews
<atmosx> yxhuvud: write code, like real code... or just do photocopies?!
<atmosx> this MrRobot series was extremely dissapointing
<wasamasa> orly?
<certainty> lurkmaster: did you solve your problem or narrow the cause down?
<yxhuvud> atmosx: you should ask wasamasa, I never was one
The_Phoenix has joined #ruby
<codecodecode123> my opinions are that json and xml shouldn't just be used for data transfering
<wasamasa> *serialization
dgutierrez1287 has quit [Remote host closed the connection]
<codecodecode123> they have potential for data storing, im ny opinion
nzst has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
jerius has quit [Quit: /quit]
<codecodecode123> *mu
<codecodecode123> **my
lannonbr has joined #ruby
<atmosx> codecodecode123: txt has a lot of potential too
<wasamasa> you'll be delighted to know then that xml and json databases have been failures in many aspects
<atmosx> unexploited unfortunately
<wasamasa> object databases, too
roolo_ has joined #ruby
<wasamasa> relations are where it's at
<certainty> if you have a database available on the net that's public relations
<wasamasa> huehuehue
<codecodecode123> well, you can make two json/xml file, one is storage and other is relation
<lurkmaster> certainty: nope, still int he dark
<codecodecode123> *files
roolo has quit [Read error: Connection reset by peer]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wasamasa> codecodecode123: real databases are magic
cornerma1 has joined #ruby
nettoweb has joined #ruby
The_Phoenix has quit [Client Quit]
* codecodecode123 doesn't believe in magic, digital or not
northfurr has quit [Quit: northfurr]
<yxhuvud> codecodecode123, you can but it turn unwieldy pretty quickly. But the easiest way to learn that is to code some of that, and then code some using other databases.
<certainty> lurkmaster: could you pleas pastie your env
<codecodecode123> yxhuvud: EXACTLY!
jenrzzz has joined #ruby
<wasamasa> codecodecode123: please don't invent yet another crappy database, use something existing
<certainty> i have no idea how databases work
pullphinger has joined #ruby
pullphinger has quit [Excess Flood]
<certainty> i should ask andjbp
<wasamasa> simple, it's magic
<codecodecode123> not invention, reinvention, updated with more potential
<yxhuvud> wasamasa: sheesh. he is young still. plenty of time to make mistakes and learn from them
<codecodecode123> yep
<shevy> Microsoft 2.0
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
* codecodecode123 claps at shevy
ruby-lang055 has quit [Ping timeout: 246 seconds]
<lurkmaster> certainty: http://pastie.org/10367067
diegoviola has joined #ruby
ta has joined #ruby
kadoppe has quit [Ping timeout: 245 seconds]
<certainty> lurkmaster: hmm that looks pretty normal
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<certainty> lurkmaster: do you have a .bundle file in your ~
<codecodecode123> why has chat died down?
roolo has joined #ruby
<lurkmaster> certainty: nope
<codecodecode123> you shouldn't just stop chatting about a topic just because it is off-topic
arup_r has joined #ruby
bap1313 has joined #ruby
Soda has joined #ruby
kadoppe has joined #ruby
_d has joined #ruby
<_d> Given "{ int lpathconf(char *path, int name); }" how would I return '2' (for two arguments) in a script?
roolo_ has quit [Ping timeout: 250 seconds]
<lurkmaster> certainty: yesterday i had the same problem and i just reinstalled rails and it solved it. today that doesn't seem to work
<jhass> _d: doesn't sound like ruby
<_d> jhass: not ruby, but its a file i want ruby to parse
<_d> so given that as input
<certainty> _d: the general idea is. Parse the text into a datastructure that allows you to count the number of arguments and then return that
<_d> certainty: yeah how would i count the number of arguments though is what im having trouble with
<jhass> or better yet use an existing C parser
<jhass> ?code _d
<ruboto> _d, We can't help you without your code, please post it to https://gist.github.com
<certainty> for that task you need code that knows how to decompose your textual representation into the desired one. probably there are several phases
<_d> jhass: one sec
<certainty> _d: jhass is right. If that's C then you probably can jus reuse a existing parser
fgo has joined #ruby
<certainty> it certainly looks like C
pls-help has joined #ruby
<_d> certainty: like which?
<certainty> lurkmaster: what version of bundler is this?
<pls-help> anyone know why I might be getting: 027 > require 'analytics-ruby' LoadError: cannot load such file -- analytics-ruby
chohe has joined #ruby
<pls-help> I have the gem installed and in my bundle file
<pls-help> Gemlist* file
choke has joined #ruby
<pls-help> I keep getting NameError (uninitialized constant Segment): as if it doesn't know about the gem
<pls-help> both in my project and the console
chohe has quit [Client Quit]
<certainty> _d: dunno, have a look at https://www.ruby-toolbox.com
<_d> jhass: certainty this is the file i want to parse https://gist.github.com/anonymous/acef42d3bc3000c4a7b9
<_d> and this is my script to parse it https://gist.github.com/anonymous/7f6f7f93860b3f7ee97f
<certainty> pls-help: because analytics-ruby is not in your load path?
<jhass> _d: btw gist supports multiple files
<pls-help> @certainty, how do I add it to my load path?
<_d> jhass: ok..
<lurkmaster> certainty: Bundler version 1.10.6
<pls-help> when I do a gem contents analytics-ruby, I see /.rvm/gems/ruby-2.2.2/gems/analytics-ruby-2.0.12/Gemfile
<_d> i jut want to count the arguments returned by definition
<certainty> _d: is that from an update right before merge master?
<_d> @ jhass
<_d> certainty: no
Coldblackice has joined #ruby
<_d> and sorry if its uglyr uby
chohe has joined #ruby
<_d> not exactly _why :)
<jhass> _d: well, a bit pointless, the class at least. The code runs as it's parsed since it's not inside any method ;)
<_d> jhass: ok i will rm that
<pls-help> certainty, I'm using rails
<_d> but it still doesnt solve the problem of the args
sphex has quit [Ping timeout: 240 seconds]
<codecodecode123> jhass: Thank you, now my script is working.
jeanlinu_ has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
<jhass> codecodecode123: great
fgo has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<_d> sigh
<codecodecode123> only remove feature and the paid ones, which are fairly easy
raju has joined #ruby
revoohc has quit [Quit: revoohc]
<pls-help> certainty: doesn't rails add gems to your load path automatically?
<certainty> pls-help: i can reproduce the problem
<certainty> mom
<jhass> _d: I feel like we can write a regex that parses each line to extract the fields you want and the argument list, then just count the ,
<pls-help> certainty: oh, do you think it's a gem issue
<_d> jhass: yeah but i really have no idea how :p :(
<codecodecode123> im good at regex, tell me what you need and ill give regex
<_d> jhass: i get it, sorry
webuser20 has left #ruby [#ruby]
umgrosscol has quit [Remote host closed the connection]
<_d> codecodecode123: given "int a(int b, char c)" i want 2 as output, or given "char d(float f)" i want 1 as output, etc.
ta has quit [Remote host closed the connection]
<codecodecode123> _d: can you give more examples for the etc part?
<_d> codecodecode123: just any argument really
icharlie has quit [Remote host closed the connection]
<codecodecode123> num of args?
<_d> doesn't matter what sort of argument, as long as its an argument
<_d> yeah
<codecodecode123> ok
<_d> the type of arguments will all be handled in c later on, this is just to get the arguments at all
<codecodecode123> k
<certainty> pls-help: try require "segment"
juanpaucar has joined #ruby
prestorium has joined #ruby
lannonbr has quit [Ping timeout: 250 seconds]
<_d> going to have to manually handle each and every system call by hand so that's another 400+ files i'd have to mangle :(
Asher has quit [Quit: Leaving.]
<_d> is the ruby code so far really bad though, jhass codecodecode123 certainty
<certainty> from what i can tell it provides it's functionality from there
<pls-help> certainty: what?
saddad has joined #ruby
<codecodecode123> i'm working on regex, cant chek rb code right now
<codecodecode123> *check
<pls-help> certainty: oh I didn't see your earlier message... let me try
<_d> takes years to master this
<certainty> everybody stand back! I know regexp!
<_d> lol
<pls-help> certainty: that's it! how did you figure that out? also, where do I put that require statement in my rails project?
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> _d: http://rubular.com/r/SDxMP15nFr first rough approach, as said count the , and special case for == "void"
war_pigs has quit [Quit: later... computer is sleeping]
<jhass> _d: slurp the file in as a whole and .scan
<certainty> pls-help: it's the gem structure that told me. That's what zenspider was after when he told you to list the content
prestorium has quit [Remote host closed the connection]
<pls-help> certainty: also, how can I add it so it is automatically required by default when I open up a console
<pls-help> certainty: oh, so you got it from seeing /lib/segment.rb?
<certainty> pls-help: in your gemfile (in the rails project) do gem "analytics-ruby", require: "segment"
mleung has joined #ruby
<certainty> then it should be there
<certainty> pls-help: yeah that's how gems work
<pls-help> certainty: you're amazing. thanks!
gdd229 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gamename has quit [Remote host closed the connection]
mleung has quit [Client Quit]
<certainty> no problem
mleung has joined #ruby
<_d> jhass: making my entire code base completely useless lol
<_d> wow
gamename has joined #ruby
kamyl_ has joined #ruby
arooni-mobile has quit [Remote host closed the connection]
icharlie has joined #ruby
astrobun_ has quit [Remote host closed the connection]
gamename has quit [Read error: Connection reset by peer]
<jhass> ah, it doesn't handle the UNIMPL ones
<_d> thanks jhass
<_d> oh
<_d> hmm
bruno- has joined #ruby
<jhass> I said first rough version ;)
<_d> yeah i know, it's cool
<certainty> now you have to further process the arguments
<_d> you're amazing
<certainty> but that's straight forward
<shevy> certainty is so hyperactive today
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<_d> certainty: yeah that bit is
<certainty> shevy: i drank a coke
User458764 has quit [Ping timeout: 246 seconds]
<certainty> i only drink tea normally
<codecodecode123> _d: i just realized something, you can do str.split('(')[1].split(" ").length / 2
htmldrum has joined #ruby
weemsledeux has joined #ruby
maletor has quit [Read error: Connection reset by peer]
andywojo has quit [Ping timeout: 255 seconds]
<codecodecode123> but be careful for spaces before the closeing parantheses
<jhass> codecodecode123: not really, that fails on the multiline cases already
<_d> jhass: soryr but is it possible for you to put the script in gist.github.com
lannonbr has joined #ruby
<jhass> no, see channel rule 1.3 ;)
<_d> jhass: because i have no idea how to insert this regexp into the code, or call it with the file given the regex string
<_d> ok
<jhass> 210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int what's with these?
icharlie has quit [Read error: Connection reset by peer]
whooza_ has joined #ruby
<certainty> channel rule 1.3?
<jhass> ?rules
<ruboto> Please respect the channel rules: http://ruby-community.com/pages/user_rules
xet7 has joined #ruby
icharlie has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
<certainty> alright i see
momomomomo has quit [Quit: momomomomo]
<shevy> oh cool
<shevy> lkmnosys ... this is cthulhu
<_d> jhass: the syscall number, the audit event, the type, the name, the alternative name and the name of the arguments struct tag.
<jhass> certainty: you can generally decide to do otherwise of course, it's about the demands you can make
bruno- has quit [Ping timeout: 244 seconds]
<certainty> jhass: jepp I understand
<_d> jhass: i just want the number, the name, and the number of arguments
<_d> the rest can go to highgarden
<jhass> _d: yeah, but there are no arguments in that example
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerium has joined #ruby
<jhass> not even sure if there's a name tbh
sphex has joined #ruby
<_d> 3AUE_NULLMNOPROTO { ssize_t read(int fd, char *buf, \ ssize_t nbyte); }
saddad has quit [Ping timeout: 246 seconds]
<jhass> 210 AUE_NULL NODEF lkmnosys lkmnosys nosys_args int
<jhass> talking about this one
<_d> oh
yfeldblum has quit [Quit: Leaving...]
<jhass> also
<jhass> 241 AUE_NULL UNIMPL nosys
<_d> yeah that's not on the list
<_d> hmm
<_d> lkmnosys
<certainty> oh i just saw that there is a parsec gem now
<certainty> neat
<_d> 0AUE_NULLMNOPROTO{ int nosys(void); }
<jhass> if we can just skip both of these cases that makes it easy
<_d> that's the nosys one.
einarj has quit [Ping timeout: 255 seconds]
gdd229 has quit [Quit: Page closed]
<jhass> 418 AUE_NULL UNIMPL __xstat
<_d> we can skip those ones.
einarj has joined #ruby
<certainty> next if skip?(line)
lannonbr has quit [Quit: WeeChat 1.2]
roolo has quit [Remote host closed the connection]
<_d> "The following are reserved for loadable syscalls"
northfurr has joined #ruby
<_d> jhass: that one is unimplemented
yfeldblum has joined #ruby
<_d> UNIMPL is unimplemented/outdated
<jhass> I can infer that much, what I can't infer is whether you need to parse it and what data from it
<_d> nah, those ones don't need to be parsed
choke has joined #ruby
nertzy has joined #ruby
hyy1 has joined #ruby
<hyy1> Hi guys
hyy1 is now known as hyy_
<_d> there's no function definition to parse with either, they just exist as old syscalls for completness
<_d> hi hyy
<hyy_> how do I program the deaf grandma program?
thiagovsk has quit [Quit: Connection closed for inactivity]
<shevy> you write the code necessary
<_d> is that like the traveling salesman problem?
<shevy> the traveling salesman has a grandma
tkuchiki has joined #ruby
decaff has joined #ruby
<shevy> get to know his family now \o/
<hyy_> it says: Whatever you say to Grandma (w/e you type in), she responds with "HUH?! SPEAK UP, SONNY!" unless you type it all in capital letters
howdoicomputer has joined #ruby
<jhass> I think that's all variations then
nettoweb has joined #ruby
icharlie has quit [Ping timeout: 255 seconds]
<hyy_> so, while str = gets.chomp
<hyy_> is that how to start it?
<shevy> that gets user input into variable str
<shevy> that is one way. this is ruby so there are many ways
<hyy_> but where's the exit condition for the loop?
<shevy> yeah that is your loop
<_d> jhass: thanks
<_d> jhass: but soryr, i have another question
<shevy> I would use loop {} get the user input inside, and perform a break when necessary
<_d> given /^(?<number>\d+)\s+\w+\s+[\w|]+\s+{\s+int\s+(?<name>\w+)\s*\((?<arguments>[^;]+)\);\s*}/m
<certainty> hyy_: the exit condition is that all input is uppercase
raju has quit [Quit: Leaving]
<_d> do i just attach it to the string like string.^(?<number>\d+)\s+\w+\s+[\w|]+\s+{\s+int\s+(?<name>\w+)\s*\((?<arguments>[^;]+)\);\s*} :/
tkuchiki has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
jgpawletko has quit [Quit: jgpawletko]
<_d> nvm, i'll try to figure it out. you've done enough tbh
<_d> thanks again
[k-_ has quit [Quit: Be back later ...]
iamninja has joined #ruby
<hyy_> certainty: no it's not, if that were the case grandma couldn't speak to you anymore after you told her something anymore
<hyy_> the exit condition should be this: is the input "BYE"?
dfockler has joined #ruby
djcp has quit [Ping timeout: 244 seconds]
<jhass> &ri String#scan
<jhass> _d: ^
tkuchiki has joined #ruby
<_d> jhass: thanks you're really cool
war_pigs has joined #ruby
<_d> best regards
_d has quit [Quit: leaving]
<shevy> hyy_ then use a case when menu and exit upon that input
howdoicomputer has quit [Ping timeout: 256 seconds]
<adaedra> you're the coolest jhass
<hyy_> while (str = gets.chomp) != "BYE"
<shevy> you can also use regexes in: when /foo/
<hyy_> can't you just do that?
<jhass> adaedra: mmh, 25°C room temperature, not sure about that
<shevy> looks ugly like shit
lurkmaster has quit [Ping timeout: 246 seconds]
<adaedra> :)
paulcsmith has quit [Quit: Be back later ...]
<shevy> since there is more than one way in ruby you can have many solutions
<hyy_> shevy: what's "The Ruby way" to do it?
<hyy_> or another way to do it
<shevy> is there a ruby way if there are many ways? I myself would break things up into smaller chunks
<shevy> like, first get the user input, then check on it; in your example you do everything at the same time. If that works for you that is great
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has quit [Ping timeout: 265 seconds]
dhollinger has quit [Remote host closed the connection]
pawnbox has quit []
nettoweb has joined #ruby
Jackneill has quit [Remote host closed the connection]
baweaver has joined #ruby
chinmay_dd has joined #ruby
<shevy> hyy_ here is one variant that works https://gist.github.com/shevegen/b01e2097684756582ff5
baweaver has quit [Remote host closed the connection]
<certainty> hyy_: well that was just a wild guess :)
<certainty> shevy: there is so much work todo!
yeticry has quit [Read error: Connection reset by peer]
<pls-help> I defined a variable called analytics in application.rb, but I can't seem to access it in models/user.rb. Is there a special flag I need to add?
<shevy> certainty yeah, I need me to find some slave hackers
<hyy_> certainty: I've done it!
<pls-help> def analytics @analytics ||= Analytics.new(current_user) end
<hyy_> my program works!
<pls-help> hyy_: congrats!
yeticry has joined #ruby
jgpawletko has joined #ruby
tkuchiki has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<certainty> pls-help: no you don't need a special flag. What's the error method you get?
<Ox0dea> hyy_: Line 7 could just be `if str.upcase!`, but you probably don't need to know about that just yet.
hinbody has quit [Quit: leaving]
axl_ has quit [Ping timeout: 272 seconds]
<hyy_> how would I extend it so that if I shout bye 3 times in a row I exit the program but not if I shout bye 2 times then something else?
axl_ has joined #ruby
<pls-help> certainty: I just tried adding it to ApplicationHelper too, but I'm not having success. I get undefined local variable or method `analytics' for #<User:0x007fd850625630>
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> simply keep track with a variable how often you counted hyy_
<certainty> Ox0dea: would you like to see that in your codebase? I'm not sure. It does the job but also somehow shadows the fact that the nature of that block is a query
Soda has quit [Remote host closed the connection]
<certainty> where by block i don't mean ruby block but rather block of code
<Ox0dea> certainty: I disagree; some bang methods have this behavior precisely so that they can be used in conditionals.
crdpink2 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj_ has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 244 seconds]
allcentury has quit [Ping timeout: 246 seconds]
Vitor_ has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving]
<certainty> Ox0dea: i certainly would agree if i wanted to actually upcase the input and as a second task know if it had something to upcase. But the upcasing itself seems to be the prominent action buy this mixture of command and query
<andybernard> ba dum tiss
<certainty> by
<shevy> buy this mixture!
<shevy> certainty the alchemist
<certainty> shevy: :p
<hyy_> 0x0dea: I have a question in my code. Can you answer it?
<hyy_> "Why do I have to put 2 instead of 3 here to make the program exit when BYE is shouted 3x
<hyy_> puts "BYE SON!""
yqt has joined #ruby
<ght> dafuq
<andybernard> ^^
Devils has joined #ruby
phutchins has joined #ruby
<hyy_> the problem is it is looping and checking when bye_ctr == 0
Devils has quit [Client Quit]
<andybernard> you didn't put any code except for the random output
nertzy has quit [Quit: This computer has gone to sleep]
np0 has joined #ruby
astrobun_ has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
andywojo has joined #ruby
baweaver has joined #ruby
chinmay_dd has quit [Quit: Leaving]
AlphaAtom has joined #ruby
ldnunes has quit [Quit: Leaving]
revoohc has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<Ox0dea> Command and Query: Tim Toady Edition
<Ox0dea> certainty: You're right, of course. It's generally not the best thing to do.
<Ox0dea> But sometimes it's just the thing.
AlphaAtom has joined #ruby
einarj_ has quit [Ping timeout: 264 seconds]
finisherr has joined #ruby
fgo has joined #ruby
einarj has joined #ruby
<Ox0dea> hyy_: Congratulations! You've learned to play the OBOE.
duggiefresh has quit []
<shevy> You gain 10 xp.
baweaver has quit [Remote host closed the connection]
<certainty> Ox0dea: yeah. I know what you mean
<Ox0dea> hyy_: You check `bye_ctr` only when the user has entered "BYE"; thus, when `bye_ctr` is 2 and they say "BYE" again, it's the third time.
<hyy_> 0x0dea that's what I said! :)
fmcgeough has quit [Quit: fmcgeough]
<Ox0dea> Hm?
<hyy_> the problem is it is looping and checking when bye_ctr == 0
<hyy_> ^^ that's what I said
<ght> ...
shellie_ has joined #ruby
<Ox0dea> hyy_: If you wish to say 3 instead of 2, increment `bye_ctr` *before* checking its value.
DelDotB has quit [Quit: DelDotB]
<hyy_> first iteration of user inputting BYE is when bye_ctr == 0
ledestin has joined #ruby
<hyy_> so it checks when bye_ctr == 0
<hyy_> now do I make sense?
fgo has quit [Ping timeout: 256 seconds]
<hyy_> if I
<Ox0dea> You never compare `bye_ctr` with 0.
<shevy> https://rubygems.org/gems/rails/versions wheeee... rails 0.8.0 was so tiny ... October 25, 2004 (20.5 KB)
veduardo_ has joined #ruby
<hyy_> lol yes I do
<Ox0dea> hyy_: Please note well the distinction between `=` and `==`.
<blarghlarghl> Rake.application.tasks.first.scope #=> LL("my_task") why would this be happening? and what the heck is "LL"?
<Ox0dea> blarghlarghl: It's a linked list.
benlieb has quit [Quit: benlieb]
<hyy_> 0x0dea: I did note that distinction :-P
<blarghlarghl> Ah.
<Ox0dea> hyy_: Then would you mind pointing out where in your code you're comparing `bye_ctr` with 0?
<hyy_> OH, I see
codecodecode123 has quit [Ping timeout: 246 seconds]
axl_ has left #ruby [#ruby]
renderfu_ has joined #ruby
<hyy_> but on the first time the user enters BYE it does this for bye_ctr: 0 == 2
veduardo_ has quit [Read error: Connection reset by peer]
<Ox0dea> Yes, that's right.
<blarghlarghl> Ox0dea: Thanks :) Moment of stupid.
<Ox0dea> No worries.
dopamean1 has quit [Ping timeout: 265 seconds]
arooni-mobile has joined #ruby
<Ox0dea> hyy_: Better, I think, would be to increment `bye_ctr` immediately, such that that comparison is instead 1 == 3.
howdoicomputer has joined #ruby
<hyy_> 0x0dea: that's what I thought as well
<hyy_> but I haven't made that change yet
<hyy_> I wondered if that would work
<Ox0dea> Indeed it would.
phutchins has quit [Ping timeout: 245 seconds]
arooni-mobile has quit [Read error: Connection reset by peer]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
arooni-mobile has joined #ruby
<hyy_> ok how do I make when saying BYE it does not say "NO, NOT SINCE " ...?
bmurt has quit []
<Ox0dea> More conditionals! Condition all the things!
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 264 seconds]
pandaant has quit [Remote host closed the connection]
baweaver has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
<Ox0dea> hyy_: I see you've learned `break`; how about `next`?
dopamean_ has joined #ruby
_d has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<_d> hi
<_d> sorry, jhass (or anyone) but given "/^(?<number>\d+)\s+\w+\s+\w+\s+{\s+int\s+(?<name>\w+)\s*\((?<arguments>[^;]+)\);\s*}/m"
<hyy_> 0x0dea: next should start the next iteration of the loop immediately
<_d> how do i match void as well as int
<Ox0dea> hyy_: That's exactly right.
<hyy_> but I
<_d> with the name instance
<jhass> _d: that is meant to give you arguments which you should process further
bronson has joined #ruby
<hyy_> but I'm getting angry, I have 'str != str.upcase || str != "BYE"' to try and make it say nothing when you enter BYE in there
astrobun_ has joined #ruby
<_d> jhass: when i print `number` it doesn't output those with types like void or ssize_t
<hyy_> but it doesn't work
arooni-mobile has quit [Remote host closed the connection]
<jhass> ?code _d
<ruboto> _d, We can't help you without your code, please post it to https://gist.github.com
bronson has quit [Remote host closed the connection]
<hyy_> got it fixed with a nested if
anon has joined #ruby
ta has joined #ruby
<Ox0dea> hyy_: But... next?
baweaver has quit [Remote host closed the connection]
anon is now known as Guest97323
<Ox0dea> You really ought to stick a `next` in the appropriate place for this one.
bronson has joined #ruby
<hyy_> 0x0dea if str == "BYE" next
<Ox0dea> Bit early.
bronson has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
<jhass> _d: again, you should read the file entirely, not linewise and run scan on it
<_d> jhass: ok
anon_ has quit [Ping timeout: 260 seconds]
<_d> hmm ok
<hyy_> 0x0dea: this ok? http://vpaste.net/QoIIX
<_d> thanks
xet7 has quit [Ping timeout: 272 seconds]
ngscheurich has quit [Ping timeout: 260 seconds]
<shevy> hyy_ you can simplify a bit
<shevy> bye_ctr = bye_ctr + 1
<shevy> bye_ctr += 1
bronson has joined #ruby
<Ox0dea> shevy: But that's implicit behavior!
bruno- has joined #ruby
lannonbr has joined #ruby
<Ox0dea> Naughty, naughty.
<shevy> assignment
<_d> hmm.
<andybernard> hyy_ you got a while issue there
<Ox0dea> shevy: Compound assignment, though.
arooni-mobile has joined #ruby
choke has joined #ruby
<shevy> you always try to make things complicated!
baweaver has joined #ruby
<Ox0dea> You're the one that suggested this crazy += operator!
timanema has joined #ruby
<shevy> except for your readline code
<shevy> that was brilliant
<hyy_> andybernard: what while issue? it's supposed to loop indefinetly until the user enters BYE 3 times
maletor has joined #ruby
_d has quit [Quit: leaving]
<andybernard> yeah sorry my bad :p I saw that one equals and didnt read the rest
bronson has quit [Remote host closed the connection]
haylon has joined #ruby
<andybernard> my instinctual programmerness told me it was wrong
<hyy_> ooh ooh let's do leap years!
<shevy> :\
<haylon> Am I able to require a gem in a def function, or woudl that break something?
<Ox0dea> haylon: Nope, works just fine.
<shevy> haylon you can require it anywhere, but the best is to require on top usually
bronson has joined #ruby
devoldmx has joined #ruby
<Ox0dea> You should only require elsewhere if it's conditional.
<haylon> Ok, I'm just trying to think of a way to make ti load only the external library when I need it
tmtwd has quit [Ping timeout: 245 seconds]
<shevy> sometimes you may have to do in a method... I do that when I disable or enable colour support
<atmosx> hello
<haylon> Hello.
<shevy> haylon have you looked at autoload?
<haylon> I have not
bronson has quit [Remote host closed the connection]
<andybernard> hello lol
nettoweb has joined #ruby
krz has quit [Quit: WeeChat 1.2]
bronson has joined #ruby
<shevy> haylon this is an ok summary I think: http://ablogaboutcode.com/2011/01/17/ruby-autoloading-explained/
allcentury has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
<shevy> nope wrong link sorry a moment
bstrrm has joined #ruby
<haylon> I found one on RubyInsider
__enrique has quit [Quit: Leaving]
bronson has quit [Remote host closed the connection]
DelDotB has joined #ruby
<shevy> yeah, autoload :NameOfTheConstantHere, 'path/bla.rb'
bronson has joined #ruby
nitenq has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
<shevy> The docu is so tiny :(
beefcakeba has joined #ruby
<pontiki> zoom in
<hyy_> if (start_year % 4 == 0) && !(start_year % 100 == 0) || (start_year % 400 == 0)
<nitenq> Hi there, I am trying to install on a OSX client a specific gem who needs ruby-dev and ruby >= 1.9 . It doesn’t have any access to internet and has only 1.8 install on it and not even ruby-dev. Is there a way to get through this
bronson has quit [Remote host closed the connection]
bstrarm has quit [Ping timeout: 260 seconds]
<ght> You doing the whole leap year check?
<hyy_> is this the correct way to calculate leap years?
<hyy_> ght: yes
<ght> hyy: I have code where I did this manually, hang on.
<baweaver> nitenq: plug it into the internet.
bronson has joined #ruby
<nitenq> haha.
juanpaucar has quit [Remote host closed the connection]
<baweaver> Could you theoretically hack it? Yes, but it would be far far worse for it.
<shevy> nitenq you can rebuild the .gem by changing the .gemspec file
<ght> That's some old code, now I just use DateTime / Date objects.
<nitenq> shevy: what do you mean ?
<baweaver> so why can't you connect to the internet?
bronson has quit [Remote host closed the connection]
<ght> But back before I knew to do that, I did a lot of manual date manipulation.
bstrrm has quit [Ping timeout: 244 seconds]
<ght> when 2 is when month is 2, to determine how many days are in feb
<baweaver> there's a reason they lock versions on those, I would not do that if I were you.
<nitenq> shevy: actually I can’t install any gem cause I don’t have ruby-dev installed. Is it an issue ?
<baweaver> besides, 1.8.x has serious breaking changes
bronson has joined #ruby
<baweaver> why can you not get online?
<nitenq> baweaver: I can connect it to the internet
<baweaver> then do it, problem solved
<nitenq> can't
<baweaver> trying to hack this is a bad idea
<nitenq> *
<baweaver> define can't
nb_bez___ has quit [Quit: Connection closed for inactivity]
<BraddPitt> ahaha
bronson has quit [Remote host closed the connection]
<BraddPitt> gem-dependent project development without internet connection is not going to be fun
<nitenq> baweaver: ? It’s impossible to connect it to the internet
<baweaver> why?
bronson has joined #ruby
<nitenq> cause it’s in a company who doesn’t allow this machine to access internet
<BraddPitt> you can put the ruby install on a usb drive
<baweaver> tell security you're SOL without it
<shevy> nitenq I don't know what is ruby-dev
<ght> I not know computer pls to halp
<baweaver> the hackery required to get around it will be far worse than forcing NetSec to be reasonable.
<shevy> nitenq in regards to rebuilding a .gem, the .gemspec specifies things such as minimal ruby version required. you can edit that line, then rebuild a new .gem from the .gemspec file
bronson has quit [Remote host closed the connection]
<ght> The "hackery"
CloCkWeRX has joined #ruby
<baweaver> shevy: for 1.8? Don't
verdoc has joined #ruby
<ght> You mean deploying a remote ssh tunnel listening on 443/tcp so that sysadmins think you're just grabbing https traffic?
<ght> Which is what I did previously to bypass our content filter.
<shevy> I am using ruby 2.2.3
<baweaver> You are
bronson has joined #ruby
<baweaver> they're not
haylon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<baweaver> compiling down to 1.8 for gems will fail
<baweaver> and if not, will have extremely annoying bugs
rapest has joined #ruby
<nitenq> baweaver: there is no way to connect it to the internet. However it is connected to another machine who does have internet access
MasterPiece has quit [Quit: Leaving]
<baweaver> ...
ftj has joined #ruby
bronson has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 240 seconds]
<baweaver> Connection bridging is viable.
lannonbr has quit [Quit: WeeChat 1.2]
bronson has joined #ruby
<hyy_> ght: how's this? http://vpaste.net/aX7kL
lkba has joined #ruby
sphex_ has joined #ruby
bronson has quit [Remote host closed the connection]
<adaedra> or tunelling.
CloCkWeRX has quit [Ping timeout: 240 seconds]
<baweaver> Look into connection bridging or SSH tunneling
rapest has quit [Client Quit]
<baweaver> bridging will be easier
bronson has joined #ruby
<baweaver> especially if you don't know what ssh tunneling is
timanema has quit [Quit: leaving]
sphex has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
bronson has joined #ruby
ta has quit [Remote host closed the connection]
juanpaucar has joined #ruby
ta has joined #ruby
<verdoc> can someone explain why using "--version" on the optparse example from ruby-doc.org isn't working please? http://pastebin.com/Tc2nJiKC
<ruboto> verdoc, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/cf87b9c57fc4fa502ba8
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
bronson has quit [Remote host closed the connection]
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
roolo has joined #ruby
beef-wellington has joined #ruby
bronson has joined #ruby
s00pcan has quit [Ping timeout: 260 seconds]
felltir has joined #ruby
bronson has quit [Remote host closed the connection]
thermatix has joined #ruby
baweaver has quit [Remote host closed the connection]
bronson has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
astrobun_ has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
roolo has quit [Ping timeout: 260 seconds]
victortyau has quit [Quit: Leaving]
beef-wellington has quit [Ping timeout: 260 seconds]
bronson has quit [Remote host closed the connection]
thermatix has quit [Ping timeout: 244 seconds]
einarj has quit [Ping timeout: 245 seconds]
einarj_ has joined #ruby
bronson has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Randroid has joined #ruby
Randroid has quit [Client Quit]
<jhass> verdoc: how do you run it?
bronson has quit [Remote host closed the connection]
kamyl_ has quit [Quit: Leaving]
bronson has joined #ruby
<jhass> verdoc: alternatively expand on "not working"
bruno- has joined #ruby
<adaedra> kaputt
<zenspider> what'd I miss?
<zenspider> lots of excitment I hope
bronson has quit [Remote host closed the connection]
<zenspider> ugh. don't use OpenStruct
bronson has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CBX has joined #ruby
<dfockler> haha
sgambino has joined #ruby
bronson has quit [Remote host closed the connection]
<jhass> zenspider: send a doc patch I guess :P
bronson has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<verdoc> jhass: look at either the pastebin or gist
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider> jhass: doc patch?
<jhass> oh, totally interpreted the comment as noise
bronson has quit [Remote host closed the connection]
<jhass> verdoc: where do you expect Version to come from?
<zenspider> oh, you mean against openstruct itself...? not a terrible idea
bronson has joined #ruby
np0 has quit [Quit: bye for now]
<verdoc> jhass: good question, but it's not a working complete example is it?
<dfockler> just leave a comment in a module - "Don't use this module"
CBX has quit [Client Quit]
<zenspider> not every ruby example is meant to be 100% standalone
bronson has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
<jhass> verdoc: yeah idk, time for your first contribution to Ruby I guess :P
<jhass> zenspider: states "The following example is a complete Ruby program. You can run it and see the effect of specifying various options." though
sgambino has quit [Client Quit]
bronson has joined #ruby
AbdulRehman has joined #ruby
mikecmpbll has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
<zenspider> hah. well... I'll shut up now :)
baweaver has joined #ruby
bronson has quit [Remote host closed the connection]
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has joined #ruby
nofxx has joined #ruby
bronson has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
dgutierrez1287 has joined #ruby
<zenspider> that is some seriously contrived shit. "Specific Options" vs "Common Options", OpenStruct, octal??? ugh
andybernard has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has joined #ruby
luksaur has quit [Quit: Leaving]
bronson has quit [Remote host closed the connection]
<verdoc> jhass / zenspider - what would you change to fix it?
bronson has joined #ruby
<jhass> either define Version or don't reference it
dimasg has joined #ruby
anon_ has joined #ruby
fgo has joined #ruby
bronson has quit [Remote host closed the connection]
kies^ has quit [Ping timeout: 272 seconds]
radgeRayden_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
Guest97323 has quit [Ping timeout: 260 seconds]
<zenspider> nuke the :: and define it at the top w/ the other constants. it's dumb to begin with, but having the example have Version defined outside is even dumber
m8 has quit [Quit: Sto andando via]
bronson has joined #ruby
jeanlinux has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
andywojo has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
finisherr has quit [Quit: finisherr]
bronson has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper1 has quit [Client Quit]
bronson has quit [Remote host closed the connection]
jackjackdripper1 has joined #ruby
Soda has joined #ruby
bronson has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
TomyLobo has quit [Ping timeout: 256 seconds]
andybernard has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
mary5030_ has joined #ruby
Asher has joined #ruby
ngscheurich has joined #ruby
bronson has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
Cache_Money has quit [Quit: Cache_Money]
bronson has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doublemalt_ has joined #ruby
bronson has joined #ruby
<verdoc> jhass & zenspider - thanks
tkuchiki has quit [Remote host closed the connection]
hyy_ has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
WillAmes has quit [Remote host closed the connection]
bronson has joined #ruby
dimasg has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
DoubleMalt has quit [Ping timeout: 260 seconds]
lkba_ has joined #ruby
bronson has joined #ruby
einarj_ has quit [Ping timeout: 240 seconds]
ckinniburgh_ has joined #ruby
WillAmes has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
einarj has joined #ruby
bronson has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 246 seconds]
DLSteve has quit [Quit: Leaving]
tkuchiki has joined #ruby
ckinniburgh has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
nitenq has quit [Quit: nitenq]
choke has joined #ruby
Alayde has quit [Ping timeout: 245 seconds]
bronson has quit [Remote host closed the connection]
xet7_ has joined #ruby
ckinniburgh_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
maletor has quit []
bronson has quit [Remote host closed the connection]
nitenq has joined #ruby
decaff has quit [Remote host closed the connection]
bronson has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
bronson has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
revoohc has quit [Quit: revoohc]
juanpaucar has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.3]
bronson has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
ngscheurich has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
ShawnADudelyDude is now known as shawnacscott
nerium has quit [Quit: nerium]
bronson has quit [Remote host closed the connection]
erts has quit [Quit: erts]
bronson has joined #ruby
shellie_ has quit [Remote host closed the connection]
phutchins has joined #ruby
AbdulRehman has quit [Quit: AbdulRehman]
bronson has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
bronson has joined #ruby
pietr0 has quit [Quit: pietr0]
dopie has joined #ruby
bronson has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
mois3x has joined #ruby
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
war_pigs has quit [Remote host closed the connection]
bronson has joined #ruby
war_pigs has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
jenrzzz has joined #ruby
chohe has quit [Read error: Connection reset by peer]
felltir has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bronson has joined #ruby
felltir has joined #ruby
chohe has joined #ruby
Zackio has quit [Read error: Connection reset by peer]
felltir has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
dopamean_ has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
chouhoulis has quit [Remote host closed the connection]
renanoronfle has quit [Ping timeout: 265 seconds]
<shevy> I have sort of inherited this code from before ~2009; https://gist.github.com/shevegen/b083b15ad6900dd0037b - would you rewrite the :foo => syntax to a foo: syntax? (There are more examples like that)
bronson has quit [Remote host closed the connection]
Zackio has joined #ruby
bronson has joined #ruby
<pontiki> i wouldn't, particularly
yqt has quit [Ping timeout: 265 seconds]
polpak has quit [Quit: leaving]
bronson has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
chohe has quit [Quit: Leaving]
rubie has quit [Remote host closed the connection]
bronson has joined #ruby
renanoronfle has joined #ruby
bronson has quit [Remote host closed the connection]
<zenspider> shevy: absolutely not. much harder to keep the columns aligned
decaff has joined #ruby
nerium has joined #ruby
bronson has joined #ruby
mois3x has quit [Quit: mois3x]
RegulationD has quit [Remote host closed the connection]
_blizzy_ has quit [Ping timeout: 260 seconds]
bronson has quit [Remote host closed the connection]
einarj_ has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
<postmodern> what is the real intended purpose of the === operator?
mois3x has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> postmodern: docs say that quite straight away: "Case Equality"
mois3x has quit [Client Quit]
<apeiros> so purpose is case/when
bronson has quit [Remote host closed the connection]
<postmodern> ty
<apeiros> and some methods hook into the same mechanic, like Enumerable#grep
bruno- has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
<banister> it's more 'matches' rather than equality
rcvalle has quit [Quit: rcvalle]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
baweaver has joined #ruby
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
eminencehc has quit [Remote host closed the connection]
revoohc has joined #ruby
stardiviner has joined #ruby
bronson has quit [Remote host closed the connection]
fgo has joined #ruby
bronson has joined #ruby
rakm has quit [Quit: Textual IRC Client: www.textualapp.com]
tmillc has quit [Quit: WeeChat 1.1.1]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
ndrei has quit [Ping timeout: 246 seconds]
<jhack> damn, just binge watched Mr.Robot
bronson has quit [Remote host closed the connection]
<jhack> shows amazing
charliesome has joined #ruby
einarj_ has quit [Ping timeout: 240 seconds]
fedexo has joined #ruby
bronson has joined #ruby
<jhack> also, is there a softwaredev channel?
einarj has joined #ruby
<banister> jhack ugh, i thought it ws stupid
<jhack> banister: really?
<banister> jhack Yes, i'm not interested in some emotionally stunted dude with aspgers
bronson has quit [Remote host closed the connection]
<banister> and his little 'speech' made me cringe, just a flood of cliches
ndrei has joined #ruby
<jhack> banister: HAHA, yeah the main characters pretty awkard as fuck
bronson has joined #ruby
<banister> everything about the show is just stupid, IMO, obvious, unintesting, cliche, and badly written and acted
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
tkuchiki has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
eminencehc has joined #ruby
bronson has joined #ruby
haylon has joined #ruby
<baweaver> banister: thank you
<jhack> banister: any interesting shows youd recommend?
<baweaver> As a guy with aspergers, that guy makes my skin crawl
bronson has quit [Remote host closed the connection]
<haylon> If I wanted to go through the pain of compiling and installing ruby by hand without the use of RVM, what are some of the libraries or extensions I'd need to make it work as close to what RVM does? I know I need readline,, bu some of the others, I'm not sure of.
<banister> jhack i watch this one https://en.wikipedia.org/wiki/Tribe_(TV_series)
DelDotB has quit [Quit: DelDotB]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
<baweaver> wget it, tar -zxvf it, sudo make && sudo make install
DelDotB has joined #ruby
<baweaver> probably only gcc, though could be wrong.
<baweaver> haven't bothered.
bronson has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
DelDotB has quit [Client Quit]
bronson has quit [Remote host closed the connection]
sarkyniin has joined #ruby
bronson has joined #ruby
renderfu_ has quit [Remote host closed the connection]
_ht has quit [Quit: Konversation terminated!]
Coldblackice has joined #ruby
revoohc has quit [Quit: revoohc]
<baweaver> banister: people don't understand why that show bugs me so much, and I just can't put it into words why.
Ilyes512 has joined #ruby
bronson has quit [Remote host closed the connection]
choke has joined #ruby
bronson has joined #ruby
<banister> baweaver i tried pretty hard to like it but it annoyed me so much i gave up. Plenty of better stuff out there IMO
<baweaver> Yeah. If you want super genius with aspergers, Sherlock, The Imitation Game, Big Bang Theory, and others do a much better job.
rubie has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
ecksit has joined #ruby
bronson has quit [Remote host closed the connection]
<baweaver> not confirmed per se, but not a hard leap to make
<haylon> I ususally use RVM, but I'm trying to get it installed manually
<haylon> so i can do it on a platform taht RVM doesn't support
<haylon> like RHEL 4/5
tkuchiki has quit [Remote host closed the connection]
bronson has joined #ruby
<baweaver> You did see me mention it above right?
<zenspider> YAY! I have rubysdl hacked down to 1 file and I can start over cleanly
xet7_ has quit [Ping timeout: 240 seconds]
Lucky__ has joined #ruby
* baweaver claps
ndrei has joined #ruby
andybernard has quit [Ping timeout: 250 seconds]
bronson has quit [Remote host closed the connection]
* baweaver non-ironically or sarcastically claps
devoldmx has joined #ruby
greymeister has quit [Ping timeout: 256 seconds]
C1V0 has quit []
bronson has joined #ruby
rehat has quit [Remote host closed the connection]
revoohc has joined #ruby
<shevy> swing the beaver tail for clap!
<zenspider> ~3800 lines to go. :/
<zenspider> tho it's gonna take a while to get traction... I should be able to get to first pixel pretty quickly
haylon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bronson has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has quit [Remote host closed the connection]
bronson has joined #ruby
neilnorthrop has joined #ruby
bronson has quit [Remote host closed the connection]
user1138 has joined #ruby
bronson has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
bronson has quit [Remote host closed the connection]
roolo has joined #ruby
tkuchiki has joined #ruby
bronson has joined #ruby
revoohc has quit [Quit: revoohc]
edwinvdgraaf has joined #ruby
baweaver has quit [Remote host closed the connection]
<shevy> yay for zenspider-games in ruby \o/
bronson has quit [Remote host closed the connection]
bruno- has joined #ruby
bronson has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
bronson has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
roolo has quit [Ping timeout: 246 seconds]
bronson has quit [Remote host closed the connection]
northfurr has joined #ruby
bronson has joined #ruby
northfurr has quit [Client Quit]
dfockler has quit [Remote host closed the connection]
northfurr has joined #ruby
mary5030 has joined #ruby
bronson has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
einarj has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
einarj has joined #ruby
rapest has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
eminencehc has quit [Remote host closed the connection]
bronson has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
barhum2013 has quit [Ping timeout: 250 seconds]
helpa has quit [Remote host closed the connection]
bronson has joined #ruby
helpa has joined #ruby
edwinvdgraaf has quit [Ping timeout: 265 seconds]
bronson has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 246 seconds]
zenguy_pc has quit [Ping timeout: 255 seconds]
bronson has joined #ruby
rapest has quit [Client Quit]
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
[H]unt3r has joined #ruby
bronson has quit [Remote host closed the connection]
webopsx has joined #ruby
lolsregginyag has joined #ruby
bronson has joined #ruby
<lolsregginyag> can i have a fully fledged cpanel running on my localhost that's not connected to the internet?
andybernard has joined #ruby
bronson has quit [Remote host closed the connection]