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/
bronson has joined #ruby
last_staff has quit [Read error: Connection reset by peer]
<shevy> what is a cpanel?
bronson has quit [Remote host closed the connection]
bronson has joined #ruby
sdothum has joined #ruby
barhum2013 has joined #ruby
bronson has quit [Remote host closed the connection]
troyready has quit [Remote host closed the connection]
radgeRayden_ has quit [Quit: Leaving]
bronson has joined #ruby
radgeRayden has joined #ruby
bronson has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
DelDotB has joined #ruby
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
sdothum has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
barhum2013 has quit [Quit: barhum2013]
zenguy_pc has joined #ruby
sdothum has joined #ruby
RegulationD has joined #ruby
decaff has quit [Quit: Leaving...]
barhum2013 has joined #ruby
bronson has quit [Remote host closed the connection]
<zenspider> lolsregginyag: you realize nobody can answer such a vague question right? We're not psychic
bronson has joined #ruby
<zenspider> !ban bronson !T 1h please fix your connection
bronson was banned on #ruby by ChanServ [bronson!*@*]
bronson was kicked from #ruby by ChanServ [Banned: please fix your connection]
fedexo has quit [Ping timeout: 246 seconds]
howdoicomputer has quit [Ping timeout: 265 seconds]
rrichardsr3 has joined #ruby
<pipework> zenspider: Aww, no ban-forward. :(
nb_bez___ has joined #ruby
<lolsregginyag> what did bronson do?
<pipework> There's a ##fix-your-connection channel for that.
<pipework> lolsregginyag: Read the message.
Soda has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
rrichardsr3 has quit [Client Quit]
skryking has joined #ruby
RobertBirnie has quit [Ping timeout: 264 seconds]
<pipework> zenspider: *poke* ^
<pipework> may wanna read that nick in a mirror.
<zenspider> (defun erc-cmd-FIX (nick)
<zenspider> (erc-send-message (format "!ban %s !T 1h please fix your connection" nick)))
<zenspider> rewrite
banjara has joined #ruby
NeverDie has joined #ruby
shmilan has joined #ruby
rrichardsr3 has joined #ruby
lolsregginyag has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<zenspider> ooh... I was JUST kicking you too
skryking has quit [Read error: Connection reset by peer]
<nofxx> How should I write big regexes? I mean, ruby style guide, should be 2, 3 lines
<zenspider> pipework: fix my elisp above pls
<nofxx> there's no mention for regexes on it... just wondering
barhum2013 has quit [Quit: barhum2013]
<zenspider> nofxx: define big
NeverDie has quit [Client Quit]
<pipework> zenspider: zenspider needs to include $##fix-your-connection to the ban mask.
rrichardsr3 has quit [Client Quit]
<pipework> suffixed.
<nofxx> zenspider, ~ 120 chars
skryking has joined #ruby
tmtwd has joined #ruby
<zenspider> nofxx: either use interpolation or /x multiline
<zenspider> pipework: (format "!ban %s$##fix-your-connection !T 1h please fix your connection" nick) ?
<al2o3-cr> >> require 'resolv'; Resolv::IPv4::Regex
fgo has joined #ruby
<ruboto> al2o3-cr # => /\A((?x-mi:0 ...check link for more (https://eval.in/420610)
mandarinkin has quit [Quit: Leaving]
<pipework> zenspider: Yeah, I think so. Assuming %s is the mask you're banning.
<pipework> You might want to remove the timeout though.
jtdoncas has joined #ruby
<zenspider> can't afaik. the bot currently requires it or freaks
<zenspider> well.. not freaks... ignores completely
Rickmasta has joined #ruby
einarj has quit [Remote host closed the connection]
<nofxx> zenspider, oO totally missed this. nice. thank you
<pipework> Oh. Whale, it'll help the people whose clients save channels, but they'll still try to connect after an hour, so maybe just bump that up?
<diegoviola> is #rspec dead or what?
<shevy> I don't think it ever was a big channel, small channels often have a low talk ratio
<nofxx> diegoviola, every gem project is usually dead, ppl gather here
<pipework> diegoviola: It's been mostly quiet for years and years.
jtdoncas has quit [Client Quit]
bruno- has quit [Ping timeout: 272 seconds]
shmilan has quit [Ping timeout: 246 seconds]
<diegoviola> ok
<diegoviola> I'm still confused about testing something that requires input (gets)
andybernard2 has joined #ruby
<zenspider> diegoviola: one can only hope
<pipework> diegoviola: You need to provide your own IO object to substitute $STDIN with.
<diegoviola> zenspider: hope what?
<zenspider> that rspec is dead
<zenspider> of course
<pipework> Or you could extract the input part and inject it instead of using gets
<pipework> zenspider: I test my test tooling with tests, and all of it's written in minitest. :D
<zenspider> def get_some_input io = $stdin
<zenspider> then you can test with a StringIO passed in
fgo has quit [Ping timeout: 260 seconds]
<pipework> ^ concise as fuck
workmad3 has joined #ruby
<nofxx> zenspider, how cool. %r also has the /x modifier
marr has quit [Ping timeout: 256 seconds]
<zenspider> nofxx: yup yup
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> diegoviola: did that make sense?
<zenspider> daaamn... the _init_ section of rubysdl is 764 lines long :(
houhoulis has joined #ruby
<diegoviola> zenspider: yes, thanks
<diegoviola> zenspider: why do you hate rspec btw?
<zenspider> its a slow bloated overcomplicated POS
<pipework> diegoviola: He's the author or minitest.
<diegoviola> pipework: I know
<pipework> of, not or
<pipework> I'd imagine someone who goes so far as to make minitest extremely simple and easy would detest the complexity of rspec inherently and emphatically, among other things.
<diegoviola> zenspider: yet lots of rails devs still use it, but yes, I agree minitest seems simpler
linuxboy_ has quit [Remote host closed the connection]
dopamean_ has joined #ruby
mleung has quit [Quit: mleung]
towski_ has quit [Remote host closed the connection]
<andybernard2> I have never heard of minitest but it looks awesome. I hate rspec.
keen___________ has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
Randroid has joined #ruby
andybernard2 has quit [Quit: Hermes - Material IRC Client - https://numixproject.org/]
whiteline has quit [Ping timeout: 265 seconds]
<zenspider> andybernard: welcome. you already have minitest. use it and enjoy
<shevy> :)
saddad has joined #ruby
<diegoviola> minitest is kewl, it doens't impose that fucking dsl on you
keen__________ has quit [Ping timeout: 244 seconds]
andybernard2 has joined #ruby
andybernard2 has quit [Client Quit]
<zenspider> diegoviola: doesn't matter how many use it. popularity is NOT a metric for quality
<diegoviola> but it has a DSL like rspec too, no?
<diegoviola> zenspider: yeah I know, I wasn't saying that
workmad3 has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skryking has left #ruby ["Leaving"]
charliesome has joined #ruby
hahuang65 has joined #ruby
<pipework> diegoviola: minitest-spec
<diegoviola> zenspider: perhaps I didn't express myself properly, I was saying it in a way that lots of rails devs prefer to use what's more popular, rspec, activerecord, etc, and yet there are things that are nicer like Sequel but not many people use those
djbkd_ has joined #ruby
<diegoviola> pipework: yes that one
<pipework> love me some google and the minitest github readme
Cust0sLim3n has quit [Max SendQ exceeded]
jenrzzz_ has joined #ruby
Cust0sLim3n has joined #ruby
pls-help has quit [Quit: Page closed]
nerium has quit [Quit: nerium]
<diegoviola> I don't care about popularity, I care about a good working system, it's why I've been using linux for 15 years instead of windows
mikecmpbll has quit [Quit: i've nodded off.]
<diegoviola> I'll try to learn minitest instead
<pipework> The hardest thing about minitest is the opinion you got from learning rspec first. :)
djbkd_ has quit [Ping timeout: 246 seconds]
banjara has quit [Quit: Leaving.]
diegoaguilar has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
jenrzzz_ has quit [Ping timeout: 246 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<zenspider> 3800 lines all one file. for some horrible reason, this seems managable
<zenspider> I'd like to package up libsge into homebrew just to make things a bit easier
baweaver has joined #ruby
<diegoviola> so unpopular that I remember I was the only person working with Linux/vim at the shop I've worked for... everyone else was using Sublime Text on Windows
tkuchiki has joined #ruby
<nofxx> diegoviola, that's a bad shop
<nofxx> zenspider, totally agree. But popularity help to sharpen edges. Problem is when the thing itself is lame.
<nofxx> example: angular
Contigi has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> My example: All the JS frameworks in the last... shit, ever.
oo_ has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 244 seconds]
neilnorthrop has quit [Remote host closed the connection]
<nofxx> pipework, only one I've really liked: vue.js
<pipework> That's not a framework
<nofxx> pipework, exactly!
webopsx has quit [Ping timeout: 265 seconds]
<pipework> There's a shitton of libraries that are awesome.
<shevy> like
tmtwd has quit [Ping timeout: 244 seconds]
<pipework> shevy: vue.js
dgutierrez1287 has joined #ruby
<nofxx> coffeescript
<nofxx> for me the most nice thing in this JS/npm is phantom
Randroid has quit [Quit: Randroid]
<pipework> I actually really dislike coffeescript, but I love moonscript.
edtoast_46 has joined #ruby
<edtoast_46> hi
<zenspider> is that the lua one?
<pipework> yup
<pipework> I also love lua. :(
<zenspider> haven't played with it in a while. prolly should. I never got over how clunky lua felt for OO
<edtoast_46> hey when you get the chance try out #edtoast .please dont take this as spam
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
edtoast_46 has left #ruby ["Leaving"]
<nofxx> pipework, but the alternative is write... JS. So, there's no alternative.
<pipework> zenspider: I value that it's multi-paradigm and doesn't suck up to OO.
<pipework> nofxx: BS!
<nofxx> lua is nice! the only brazilian language hehe.
<pipework> nofxx: Write Dart! or any transpiler.
<zenspider> bolt-on OO is worse than no OO imo. look at perl. even python feels that way to me
<zenspider> I'd appreciate it more if it were OO from the start, and had bolt-on non-OO
northfurr has quit [Quit: northfurr]
<pipework> zenspider: Yeah. But I'm not all that interested in always OO all day long. I love going prototypal.
<pipework> Give me tables, functions, and like six data types.
<nofxx> pipework, BS?
linuxboytoo has joined #ruby
<zenspider> prototypical OO _is_ OO
<Hamled> ^
<pipework> zenspider: Right, but I'm not always interested in having to use it.
<pipework> Or bastardizing the OO system to do things that aren't OO.
<pipework> I'm rather against class-based OO as the only option.
amystephen has quit [Quit: amystephen]
andybernard has quit [Read error: Connection reset by peer]
andybernard has joined #ruby
linuxboytoo has quit [Ping timeout: 245 seconds]
tmtwd has joined #ruby
rodfersou has quit [Quit: leaving]
arescorpio has joined #ruby
<shevy> lua OOP versus javascript OOP
EvanGuru has quit [Quit: Oh shit the geek died!]
keen____________ has joined #ruby
keen___________ has quit [Ping timeout: 245 seconds]
petricore has joined #ruby
petricore has quit [Client Quit]
dh64 has quit [Excess Flood]
dh64 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exadeci has quit [Quit: Connection closed for inactivity]
neilnorthrop has joined #ruby
bronson has joined #ruby
diegoaguilar has joined #ruby
<nofxx> nobody chooses JS ... it's sine qua non for webapps
bronson has quit [Remote host closed the connection]
<pipework> shevy: 'oops'
bronson has joined #ruby
j_mcnally has joined #ruby
bronson has quit [Remote host closed the connection]
neilnorthrop has left #ruby [#ruby]
allcentury has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
djbkd has quit [Quit: My people need me...]
pragmatism has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fgo has joined #ruby
<Ox0dea> Hm, "prototypical" is way more common than "prototypal", but the situation is reversed for "archetypical" and "archetypal".
<Ox0dea> English a shit confirmed.
finisherr has joined #ruby
[H]unt3r has quit [Quit: Leaving]
<pipework> I've always used prototypal, but I've seen prototypical.
einarj has joined #ruby
rubie has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 255 seconds]
finisherr has left #ruby [#ruby]
<shevy> Ox0dea
<shevy> my good old proto pal
<Ox0dea> shevy:
<shevy> so typical of him
<Ox0dea> I thought we were sworn enemies?
<shevy> not today
<Ox0dea> Valar morghulis.
symm- has quit [Ping timeout: 246 seconds]
fgo has quit [Ping timeout: 252 seconds]
maletor has quit []
<shevy> are you summoning Cthulhu again
Evan_ has joined #ruby
<shevy> which editors are written in ruby by the way? redcar was one I think... any other?
war_pigs has quit [Quit: later... computer is sleeping]
einarj has quit [Ping timeout: 256 seconds]
<shevy> reason is, I know of editors such as http://hisham.hm/dit/ and I am wondering how feasible it would be for a simple ncurses editor - in ruby!
<pipework> I haven't found any nice ncurses libraries for ruby yet, but it'd be possible and feasibility seems to depend on your skill with ncurses more than anything.
Rutix has quit []
roolo has joined #ruby
<diegoviola> shevy ver
<diegoviola> shevy: ver*
grotewold has joined #ruby
<shevy> diegoviola var*
<shevy> :D
<diegoviola> it's unmaintained
Azure has quit [Read error: Connection reset by peer]
<shevy> awww ... manveru seems to no longer do a lot of ruby :(
<shevy> oh I see
<shevy> an editor
<diegoviola> Pistos also had an editor
<Ox0dea> shevy: That's also how Perl, Python, and Ruby all do modular division.
renderful has joined #ruby
<shevy> diegoviola yeah now I remember
kt2 has quit [Ping timeout: 252 seconds]
<shevy> diakonos right?
<diegoviola> yep
<shevy> I forgot that it was written in ruby
<shevy> ok
<shevy> I guess I go with diakonos \o/
<diegoviola> shevy: what do you currently use?
<shevy> nono
<shevy> I use bluefish
<Ox0dea> There must be dozens of you.
<shevy> but I also need a non-GUI editor
saddad has quit [Ping timeout: 265 seconds]
<shevy> Ox0dea more than one shevy is too much for you to handle
roolo has quit [Ping timeout: 255 seconds]
System42 has joined #ruby
<Ox0dea> But I'm not a dualist.
<diegoviola> shevy: try vim or emacs
dgutierrez1287 has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 246 seconds]
<jhass> >> -50.upto(100).map {|i| i % 30 }.select {|i| [0, 10, 20].include? i }.map {|i| i / 10 + 1 } # shevy Ruby has the correct modulo implementation too, the C behavior is available as .remainder
<ruboto> jhass # => [2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2] (https://eval.in/420624)
<shevy> diegoviola nah
devoldmx has joined #ruby
jesse____ has joined #ruby
tmtwd has quit [Ping timeout: 245 seconds]
<Ox0dea> diegoviola: Does your vending machine accept cats as payment yet?
jesse____ is now known as jesseherrick
<shevy> diegoviola diakonos wants https://rubygems.org/gems/curses :D
<shevy> ohhh right, that one is the one that got moved out, I thought it was ncurses
<diegoviola> Ox0dea: no, and probably never will, but patches welcome
<Ox0dea> It was an American Psycho reference, to clarify.
<diegoviola> Ox0dea: lol
petricore has joined #ruby
<Ox0dea> In any case, the conversion rate between cats and alcoholic beverages has seen little in the way of standardization.
jesseherrick has quit [Client Quit]
<diegoviola> not sure about that
<Ox0dea> Prove me wrong.
A124 has joined #ruby
andybernard has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 240 seconds]
<Ox0dea> I should point out that I would be delighted if you did, mind.
andybernard has joined #ruby
<diegoviola> Ox0dea: what are you talking about?
<Ox0dea> What is beer divided by cat?!
babyarm has joined #ruby
beefcakeba has quit [Ping timeout: 255 seconds]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jher has joined #ruby
<shevy> nil
<shevy> >> "beer" / "cat"
<ruboto> shevy # => undefined method `/' for "beer":String (NoMethodError) ...check link for more (https://eval.in/420625)
AbdulRehman has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<Ox0dea> >> 0xBEE12 / 0xCA7
<ruboto> Ox0dea # => 241 (https://eval.in/420626)
hotpancakes has quit [Remote host closed the connection]
weemsledeux has joined #ruby
<shevy> damn it
<shevy> Ox-man
<jhass> (24 - 1) = 23, 2 + 3 = 5, it's everywhere
eminencehc has joined #ruby
reesek has joined #ruby
<Ox0dea> J(10) - H(8) = 2, ASS = 2 cheeks. Half Life 2 confirmed.
Azure has joined #ruby
<shevy> hey
<Hamled> What is the difference between "require File.dirname(__FILE__) + '/app'" and "require './app'"
<shevy> we could call him jhbutt too!
<jhass> Hamled: the latter depends on the working directory to happen to be correct. Use require_relative "app"
<Hamled> thank you
AbdulRehman has quit [Ping timeout: 240 seconds]
<Hamled> so it would be an issue if I had done something like ruby ../../my_thing_that_includes_app.rb
<jhass> yes
hotpancakes has joined #ruby
AbdulRehman has joined #ruby
busterarm has joined #ruby
centrx has joined #ruby
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has quit [Remote host closed the connection]
fullofcaffeine has quit [Remote host closed the connection]
nitenq has quit [Quit: nitenq]
bustrarm has joined #ruby
babyarm has quit [Ping timeout: 250 seconds]
wprice has quit [Quit: wprice]
AbdulRehman has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
choke has joined #ruby
busterarm has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
NeverDie has joined #ruby
AbdulRehman has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
NeverDie has quit [Client Quit]
sarkyniin has quit [Ping timeout: 246 seconds]
blue_deref has joined #ruby
_whitelogger has joined #ruby
eminencehc has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AbdulRehman has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Timba-as has joined #ruby
choke has joined #ruby
dopie has quit [Ping timeout: 245 seconds]
amystephen has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
AbdulRehman has quit [Ping timeout: 252 seconds]
wprice has joined #ruby
NeverDie has joined #ruby
arescorpio has quit [Quit: Leaving.]
NeverDie has quit [Read error: Connection reset by peer]
htmldrum has quit [Read error: Connection reset by peer]
NeverDie has joined #ruby
fgo has joined #ruby
mary5030 has joined #ruby
AbdulRehman has joined #ruby
einarj has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nb_bez___ has quit [Quit: Connection closed for inactivity]
jonee has quit [Ping timeout: 265 seconds]
dimasg has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
war_pigs has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
System42 has quit [Ping timeout: 252 seconds]
AbdulRehman has quit [Ping timeout: 240 seconds]
jeadre has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 250 seconds]
choke has joined #ruby
mary5030 has joined #ruby
jeadre has joined #ruby
dorei has quit []
havenwood has joined #ruby
mary5030 has quit [Ping timeout: 246 seconds]
mago0_ has quit [Quit: WeeChat 1.2]
AbdulRehman has joined #ruby
rails has joined #ruby
guih is now known as g2
linuxboytoo has joined #ruby
hotpancakes has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
hotpancakes has joined #ruby
hmsimha_ has joined #ruby
Timba-as has quit [Quit: Lingo: www.lingoirc.com]
stardiviner has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
rails has quit [Client Quit]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
AbdulRehman has quit [Ping timeout: 265 seconds]
hotpancakes has quit [Remote host closed the connection]
jeadre has quit [Remote host closed the connection]
<jhack> macbook pro refurbished vs brand new? any opinions?
jonee has joined #ruby
jeadre has joined #ruby
<miah> refurb is fine, i bought a refurb macbook years back. saved lots of cash. still have it, and its still working.
<pontiki> refurbs are fine
AbdulRehman has joined #ruby
<pontiki> i haven't noticed a huge price savings on them, particularly
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<reesek> I have a question regarding how to import a file containing a string of hashes into a variable that is an array of hashes
<reesek> Instead of polluting the IRC with the detail, I put it in a gist -> https://gist.github.com/ktreese/93b19885fa42606fda90
<Ox0dea> reesek: Bless you.
<reesek> I'm very new to ruby -- thanks :)
NeverDie has joined #ruby
<pontiki> reesek: respect
NeverDie has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
fgo has joined #ruby
stardiviner has joined #ruby
<reesek> thanks :) I just put my ruby code as a comment in the same gist
<pontiki> you do know you can add files to a gist?
AbdulRehman has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
<pontiki> ?gist-usage
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<reesek> was not aware -- thanks for sharing
<Ox0dea> reesek: Are you forced to use this "string of hashes" representation?
dopie has joined #ruby
rabidwh01e has joined #ruby
jeadre has quit [Remote host closed the connection]
<rabidwh01e> hey guise, I need help
<reesek> Ox0dea: when I hit the puppet console api, I get a hash string back for each classification on a single line. The puppetclassify library seems to require that these be concatenated together, so that's why I'm doing that
<rabidwh01e> I have a ruby script with a require statemnt, and ive installed gem, but it still fails to load
<rabidwh01e> what am i doing wrong
<toretore> reesek: what you have looks like the "inspect" representation of a data structure, which looks like - but is not the same as - ruby code
AbdulRehman has joined #ruby
<toretore> and it's not meant to be parsed back into said structure
havenwood has quit [Ping timeout: 240 seconds]
<Ox0dea> toretore: Why not?
<toretore> why not what?
jeadre has joined #ruby
devbug has joined #ruby
<toretore> reesek: so you should first try and get this in another, parsable, format
<reesek> toretore: I could get it into JSON if that helps
<Ox0dea> reesek: eval "[#{IO.read 'string_of_hashes.txt'}]"
<toretore> yes, that's much better
tkuchiki has joined #ruby
hotpancakes has joined #ruby
<Ox0dea> But probably don't do that.
_blizzy_ has joined #ruby
<reesek> would I then be able to convert that into an array of hashes much easier?
<Ox0dea> That would result in an array of hashes.
<toretore> maybe not easier, but more correctly
<toretore> reesek: get it as json, then gist the entire output
<reesek> k -- doing now
AbdulRehman has quit [Ping timeout: 245 seconds]
rabidwh01e has quit [Quit: leaving]
havenwood has joined #ruby
davedev__ has joined #ruby
andybernard2 has joined #ruby
<shevy> is require 'rbconfig' required on modern ruby? aka 2.x.x +
davedev2_ has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
<Ox0dea> 20>> RbConfig # shevy
<ruboto> Ox0dea # => RbConfig (https://eval.in/420629)
andybernard2 has joined #ruby
andybernard2 has quit [Client Quit]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> reesek: And now you can just JSON.parse that.
linuxboytoo has quit [Remote host closed the connection]
tkuchiki has quit [Quit: Leaving...]
andybernard2 has joined #ruby
<shevy> hmm
_blizzy_ has quit [Read error: Connection reset by peer]
<shevy> so I can get rid of that line \o/
<toretore> reesek: ok, then you can do JSON.parse(File.read(filename)) to get the array of hashes
swills has joined #ruby
<reesek> great -- I'll give that a shot now. Will let you know how it went :)
AbdulRehman has joined #ruby
<toretore> puppetclassify.import_hierarchy.import(JSON.parse(File.read('filename'))) probably
_blizzy_ has joined #ruby
<reesek> You guys RULE
g2 is now known as guih
<reesek> it works -- thanks much!
AbdulRehman has quit [Ping timeout: 246 seconds]
<reesek> toretore: Thank you
<reesek> Ox0dea: to you as well
braincra- has quit [Quit: bye bye]
rushed has joined #ruby
allcentury has joined #ruby
n_blownapart has joined #ruby
darkf has joined #ruby
AbdulRehman has joined #ruby
AlexAltea has quit [Read error: Connection reset by peer]
andybernard2 has quit [Quit: Hermes - Material IRC Client - https://numixproject.org/]
allcentury has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
sevenseacat has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
AbdulRehman has quit [Ping timeout: 244 seconds]
hanmac has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
pen has quit [Read error: Connection reset by peer]
AbdulRehman has joined #ruby
pen has joined #ruby
roolo has joined #ruby
pen has quit [Client Quit]
davedev__ has quit []
AbdulRehman has quit [Ping timeout: 260 seconds]
tmtwd has joined #ruby
reesek has quit []
roolo has quit [Ping timeout: 255 seconds]
einarj has joined #ruby
devoldmx has joined #ruby
rushed has quit [Quit: rushed]
AbdulRehman has joined #ruby
andybernard has quit [Ping timeout: 240 seconds]
einarj has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
jonee has quit [Ping timeout: 252 seconds]
mamercad has joined #ruby
baweaver has joined #ruby
AbdulRehman has quit [Ping timeout: 272 seconds]
shmilan has quit [Ping timeout: 256 seconds]
fullofcaffeine has joined #ruby
AbdulRehman has joined #ruby
jenrzzz has joined #ruby
mary5030 has joined #ruby
AbdulRehman has quit [Ping timeout: 250 seconds]
GarethAdams has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
edtoast_46 has joined #ruby
<edtoast_46> join #toastirc
edtoast_46 has left #ruby ["Leaving"]
AbdulRehman has joined #ruby
amystephen has quit [Quit: amystephen]
gix has quit [Ping timeout: 265 seconds]
GarethAdams has joined #ruby
konsolebox has joined #ruby
dgutierrez1287 has joined #ruby
AbdulRehman has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
sacarlson1 has joined #ruby
diego1 has joined #ruby
war_pigs has quit [Remote host closed the connection]
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest85663
diego1 is now known as diegoviola
<sacarlson1> /home/sacarlson/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/net/http.rb:800:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate request A: dh key too small (OpenSSL::SSL::SSLError)
war_pigs has joined #ruby
djbkd has joined #ruby
Guest85663 has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
<sacarlson1> is there some global way to change this SSLv23 as I guess that's the problem above
AbdulRehman has joined #ruby
<sacarlson1> it comes from a line like this: postdat = RestClient.post url, data
<sacarlson1> I was running the same code ok before until I switched to using rbenv instead of ubuntu ruby-full and global gem installs
djbkd has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 244 seconds]
AbdulRehman has quit [Ping timeout: 244 seconds]
beef-wellington has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
linuxboytoo has joined #ruby
fullofca_ has joined #ruby
Ropeney has quit [Ping timeout: 272 seconds]
<ght> Evenin gguys
fullofcaffeine has quit [Ping timeout: 244 seconds]
<ght> guys*
AbdulRehman has joined #ruby
jpfuentes2 has joined #ruby
diegoaguilar has quit [Quit: Leaving]
AbdulRehman has quit [Ping timeout: 246 seconds]
diegoaguilar has joined #ruby
RegulationD has joined #ruby
AbdulRehman has joined #ruby
fullofcaffeine has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
yfeldblum has quit [Ping timeout: 244 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
Ropeney has joined #ruby
fullofcaffeine has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
fullofca_ has quit [Ping timeout: 250 seconds]
mamercad has quit [Ping timeout: 240 seconds]
hyy_ has joined #ruby
<hyy_> OK I'm at section 8.3
AbdulRehman has quit [Ping timeout: 255 seconds]
<hyy_> 0x0dea: you up?
jhack has quit [Ping timeout: 255 seconds]
beef-wellington has quit [Ping timeout: 252 seconds]
duncannz has joined #ruby
dimasg has quit [Ping timeout: 244 seconds]
<hyy_> can you guys teach me how to build and sort an array?
AbdulRehman has joined #ruby
danielpclark has quit [Ping timeout: 240 seconds]
mamercad has joined #ruby
<shevy> array.sort
<hyy_> but how to build the array?
<sacarlson1> I've now also tried this postdat = RestClient::Resource.new(url, :ssl_version => 'TLSv1').post(data) and still get that error state=SSLv3
<shevy> there are methods you can use to push onto an array
<hyy_> if I start out with [], how do I get it to say [Alpha, Omega]?
<hyy_> I guess I just reread the chapter
<shevy> push onto it
ZeeNoodleyGamer has joined #ruby
<shevy> >> _ = []; _.push :Alpha; _.push :Omega; _
<ruboto> shevy # => [:Alpha, :Omega] (https://eval.in/420633)
einarj has joined #ruby
<hyy_> favorites.push
<hyy_> ok, I just saw where it talked about puts
<hyy_> mean push
fgo has quit [Ping timeout: 244 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby
AbdulRehman has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby
wallerdev has quit [Client Quit]
war_pigs has joined #ruby
einarj has quit [Ping timeout: 240 seconds]
<hyy_> how do I use the sort method shevy?
linuxboytoo has quit [Remote host closed the connection]
linuxboytoo has joined #ruby
Cache_Money has joined #ruby
AbdulRehman has joined #ruby
<shevy> hyy_ but you got the example above
<shevy> .sort
danielpclark has joined #ruby
linuxboytoo has quit [Ping timeout: 240 seconds]
<hyy_> shevy: I used sort!
<hyy_> mean arr.sort!
<shevy> similar
AbdulRehman has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<hyy_> how do I write the table of contents program with all the chapter names and page numbers + other particulate info in arrays?
<shevy> simply fill it up in order
<shevy> you can use << too
jpfuentes2 has joined #ruby
iamninja has joined #ruby
<shevy> you can try this in your local irb as well
<Ox0dea> There should be a #shove method for pushing into frozen Arrays.
<hyy_> I want e.g. [(chapter name, page number), (chapter name, page number)]
<hyy_> the first tuple is chapter 1's, the second chapter 2's
AbdulRehman has joined #ruby
<Ox0dea> hyy_: Ruby doesn't have tuples, per se. You're aware that you can nest Arrays, yes?
<hyy_> um yes
<shevy> hyy_ the above is almost valid
<shevy> an array in an array looks like this: [[]]
<Ox0dea> But sometimes [[...]].
<hyy_> but if it sees a nested array with a length that is not 2 it should error
<shevy> array = [[ 'chapter name here', 1], ['chapter name here', 2]]
<hyy_> but how do I access arrays inside arrays?
<shevy> hyy_ you can use a method to add to an array too, inside the method you can check for length 2
<hyy_> arr.each do |neseted_array|
<shevy> the same way, via []
<hyy_> shevy: Whoa!
<shevy> how do you access an array normaly hyy_
<Ox0dea> hyy_: raise "wtf?" unless toc.all? { |tup| tup.size == 2 }
<hyy_> I didn't learn my own methods yet
<shevy> hyy_ array = ['apple','banana','cats'] <--- how to yield cats
<hyy_> mean, how to write my own methods yet
<hyy_> how do you access array normally for me? for me it would be an iterator
<shevy> yield the cats
<hyy_> if you have a nested array you can do this: arr.each do |nested_array| nested_array.each do |item| end end
<shevy> array = ['apple','banana','cats']
<hyy_> that's just bad code there but it proves that I know how to di t
<hyy_> do it
<shevy> what do you do to return the string 'cats'
grotewold has joined #ruby
<hyy_> use throw
<shevy> nah don't guess, better to read
AbdulRehman has quit [Ping timeout: 264 seconds]
<Ox0dea> >> ['01100011011000010111010001110011'].pack 'B*' # shevy
<ruboto> Ox0dea # => "cats" (https://eval.in/420635)
<Ox0dea> Is that right?
fullofcaffeine has quit [Remote host closed the connection]
<shevy> why do you have to put cats into binary mode
<Ox0dea> "Put Smarties tubes on cats' legs; make them walk like a robot." https://www.youtube.com/watch?v=m9tWYaujtD4
lxsameer has joined #ruby
<hyy_> ok I'm going to bed
<hyy_> this will soak in overnight
AbdulRehman has joined #ruby
vijucat has joined #ruby
<Psi-Jack> Mmmmm... Learning about ruby threads.
djbkd has joined #ruby
<shevy> >> ObjectSpace.count_symbols
<ruboto> shevy # => undefined method `count_symbols' for ObjectSpace:Module (NoMethodError) ...check link for more (https://eval.in/420636)
wprice has quit [Quit: wprice]
Meow-J has joined #ruby
hyy_ has quit [Ping timeout: 246 seconds]
AbdulRehman has quit [Ping timeout: 256 seconds]
darwingr has quit [Quit: bye bye]
fullofcaffeine has joined #ruby
<Ox0dea> >> Symbol.all_symbols.size # shevy
<ruboto> Ox0dea # => 2511 (https://eval.in/420637)
ElSif has joined #ruby
wallerdev has joined #ruby
jeadre has quit [Remote host closed the connection]
AbdulRehman has joined #ruby
fgo has joined #ruby
jeadre has joined #ruby
vdamewood has joined #ruby
neilnorthrop has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #ruby
konsolebox has quit [Remote host closed the connection]
AbdulRehman has quit [Ping timeout: 246 seconds]
roolo has joined #ruby
krz has joined #ruby
konsolebox has joined #ruby
AbdulRehman has joined #ruby
riotjones has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 252 seconds]
AbdulRehman has quit [Ping timeout: 245 seconds]
fullofcaffeine has joined #ruby
roolo has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
RobertBirnie has quit [Ping timeout: 260 seconds]
fullofcaffeine has quit [Remote host closed the connection]
dimasg has joined #ruby
Ropeney has quit [Ping timeout: 246 seconds]
fullofcaffeine has joined #ruby
codecodecode123 has joined #ruby
RobertBirnie has joined #ruby
AbdulRehman has joined #ruby
ohaibbq has joined #ruby
bruno- has joined #ruby
dimasg has quit [Ping timeout: 246 seconds]
UtkarshRay has joined #ruby
fullofcaffeine has quit [Ping timeout: 250 seconds]
jeadre has quit [Remote host closed the connection]
mamercad has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 244 seconds]
jeadre has joined #ruby
<shevy> hmm
hyy_ has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
AbdulRehman has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
tercenya has quit [Ping timeout: 272 seconds]
Ropeney has joined #ruby
symm- has joined #ruby
flegerCovateam1 has joined #ruby
flegerCovateam1 has left #ruby [#ruby]
<[k-> double map!
tercenya has joined #ruby
<[k-> arr.map(&:map) { |x| ...
vijucat has quit [Quit: Page closed]
psy_ has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
AbdulRehman has joined #ruby
<Ox0dea> [k-: That's a SyntaxError.
<[k-> whyyyyy
<Ox0dea> inorite
flegercovateam has quit [Ping timeout: 245 seconds]
amystephen has joined #ruby
<hyy_> 0x0dea: What's a fun programming project if you demonstrate adequate knowledge of conditionals, methods, loops, and method definition [defining your own methods]?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacky has quit [Read error: Connection reset by peer]
<hyy_> even nested while
<shevy> <hyy_> ok I'm going to bed
<shevy> that was a short sleep
<Ox0dea> He's sleepcoding!
<[k-> an irc bot!
<[k-> wherr ypu can show off your work and impress people
<hyy_> shevy: well heck I went to bed at 7 PM and only slept till 10 PM so I'm wide awake. I'm backwards
<hyy_> I sleep during the day and stay up at night
<Ox0dea> hyy_: How are your understandings of Arrays and Hashes?
<hyy_> 0x0dea: for arrays: I know you can sort them, push pop them, and that they can contain other arrays
Feyn has joined #ruby
<hyy_> but I forget how to add to an array
<hyy_> I don't know about hashes
<hyy_> in fact, I know nothing about hashes except they are key:value pairs
<Ox0dea> hyy_: In that case, consider making some sort of "math test".
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
<Ox0dea> Print simple arithmetic problems for the user to provide answers to, and respond accordingly.
AbdulRehman has quit [Ping timeout: 260 seconds]
<hyy_> that's not very fun
<[k-> hyy_ you can add to arrays by pushing things to them
<hyy_> OH
<hyy_> I see.
<[k-> there are other ways too
amystephen has quit [Ping timeout: 250 seconds]
<Ox0dea> If all you've got down is conditionals and looping, the best you can do is repeatedly compare things, so...
<hyy_> yes, but now I am studying defining my own methods
<[k-> >> a = []; a[0] = 6; a[1] = [5,4,3,2,1]; a.flatten!
<ruboto> [k- # => [6, 5, 4, 3, 2, 1] (https://eval.in/420644)
<[k-> ^ example of an obscure way
toretore has quit [Quit: This computer has gone to sleep]
<[k-> that wouldn't work so well in production, though
greymeister has joined #ruby
greymeister has left #ruby [#ruby]
<Ox0dea> [k-: a[1..-1] would've avoided the need to flatten.
AbdulRehman has joined #ruby
jalcine has joined #ruby
<hyy_> whoa hold on
<hyy_> if I define my own class can I make my own + method?
<Ox0dea> Of course!
<hyy_> or .* or whatever?
<Ox0dea> Yeah.
<Ox0dea> You can even redefine all the existing ones, if such a thing takes your fancy.
<Ox0dea> But it oughtn't.
<[k-> there is also !
<Ox0dea> >> class Fixnum; def !; (1..self).reduce(1, :*) end end; !5
<ruboto> Ox0dea # => 120 (https://eval.in/420645)
<[k-> (you shouldnt redefine !)
<[k-> factorial!
<Ox0dea> Factorial > boolean coercion.
<shevy> oh god
<shevy> hyy_ got the worst possible combination now
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Dude's fucked. ^_^
<shevy> Ox0dea and [k-
<[k-> common sense > factorial
<shevy> hyy_ don't let them steal your sanity
<[k-> this would be a omhyfgna moment
AbdulRehman has quit [Ping timeout: 252 seconds]
<hyy_> does Ruby support polymorphism in functions? How about functional programming?
<Ox0dea> Sort of, on both counts.
<Ox0dea> Much more the latter.
<[k-> duck typing ≈ polymorphism
<hyy_> if it was functional, then how do I make it so that variables can never be modified and functions can't be either? first class citizens are functions
<[k-> <obj>.freeze
<hyy_> LOL so cool!
<hyy_> how about method.freeze?
<[k-> method(:method).freeze, i think...
<hyy_> I want to comparse Haskell <-> Ruby
<hyy_> compare*
<[k-> ruby uses regexp, haskell uses parsec
<shevy> ruby is an object oriented programming language
carglass-rep has joined #ruby
<hyy_> ok but how is Ruby functional?
<carglass-rep> hi
<shevy> ruby is an object oriented programming language
<hyy_> I see...thanks
<shevy> I don't think you can easily translate ruby into haskell
<shevy> you can try to do crazy stuff with lambda
AbdulRehman has joined #ruby
<[k-> OH YEA
<shevy> this is what Ox0dea has been doing here the last half year
<shevy> please do not lose your sanity hyy_
<Ox0dea> Huh?
<[k-> Death to non-believers!
kies^ has joined #ruby
<hyy_> I have another q, how do you do pointers so that you can modify variables in the calling method?
<carglass-rep> Quick question: I installed some gems via `bundle install`, but now I have updated one of the github repo from where a gem is taken, how do I "update" this gem ?
Motoservo has joined #ruby
<shevy> hyy_ if you modify it inside your method, it will be modified alright; you can avoid this by doing a copy via .dup on your object
devoldmx has quit [Remote host closed the connection]
<hyy_> shevy: example code please
<Ox0dea> hyy_: Ruby is pass-by-value, but collection types are essentially pass-by-reference.
<Ox0dea> >> def foo ary; ary << 42; end; x = []; foo x; x
<ruboto> Ox0dea # => [42] (https://eval.in/420648)
<hyy_> 0x0dea: then it's the same as C and I can't normally do this modify variable in calling method stuff
<Ox0dea> Right, except Ruby is much more powerful and lets you do all sorts of crazy things if you so desire.
<shevy> hyy_ just any method you use. i = [1,2,3]; def foo(arg) arg << 4; end; foo i; i
<Ox0dea> hyy_: That post demonstrates bolting immutability onto Ruby.
<shevy> >> i = [1,2,3]; def foo(arg); arg << 4; end; foo i; i
<Ox0dea> Which is quite a feat, really.
<ruboto> shevy # => [1, 2, 3, 4] (https://eval.in/420649)
<[k-> >> self.freeze; A = Class.new
<ruboto> [k- # => A (https://eval.in/420650)
<[k-> :(
AlexRussia_ has joined #ruby
<shevy> hyy_ ruby is santactic sugar over C
<[k-> that isnt supposed to work
<shevy> *syntactic
<shevy> Santa Tactics!
<[k-> santanic*
<Ox0dea> >> self == Object # [k-
<ruboto> Ox0dea # => false (https://eval.in/420651)
jher has quit [Ping timeout: 246 seconds]
<[k-> freeze every class for me Ox0dea, and create a new class afterwards!
AbdulRehman has quit [Ping timeout: 240 seconds]
<Ox0dea> >> ObjectSpace.each_object(Class, &:freeze); Class.new # [k-
<ruboto> Ox0dea # => #<Class:0x4173684c> (https://eval.in/420652)
<[k-> >> ObjectSpace.each_object(&:freeze); A = Class.new
<ruboto> [k- # => /tmp/execpad-97af77a90c27/source-97af77a90c27:4:in `write': can't modify frozen IO (RuntimeError) ...check link for more (https://eval.in/420653)
<Ox0dea> Heh.
symm- has quit [Quit: Leaving...]
<Ox0dea> hyy_: It's almost never The Right Thing to modify somebody else's bindings, but it can be done.
AbdulRehman has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> how to destroy a world: redefine Object#!, TrueClass#!, FalseClass#!, NilClass#!
psy_ has joined #ruby
<[k-> im not sure if the last 3 are necessary, but just to be safe and far reaching
<carglass-rep> I did `gem uninstall my_gem` and then `bundle install` again, but I don't think it works
roolo has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
AbdulRehman has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
sameerynho has joined #ruby
roolo has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
AbdulRehman has joined #ruby
eminencehc has joined #ruby
Musashi007 has joined #ruby
chipotle has quit [Ping timeout: 250 seconds]
melter has quit [Remote host closed the connection]
chipotle has joined #ruby
chipotle has quit [Client Quit]
flegercovateam has joined #ruby
eminencehc has quit [Ping timeout: 246 seconds]
AbdulRehman has quit [Ping timeout: 246 seconds]
dimasg has joined #ruby
jeadre has quit [Remote host closed the connection]
<carglass-rep> mmh; When doing `gem uninstall my_gem`, `bundle show` still shows it
jeadre has joined #ruby
<Ox0dea> carglass-rep: `gem which my_gem`
AbdulRehman has joined #ruby
<Ox0dea> [k-: How do you feel about this? https://gist.github.com/0x0dea/414d123f3ca119c52dc1
<carglass-rep> Can't find ruby library file or shared library my_gem
grenierm has joined #ruby
chinmay_dd has joined #ruby
<Ox0dea> carglass-rep: Then you must have it locally installed in your project's directory.
ohaibbq has quit [Quit: Leaving...]
existensil has quit [Quit: WeeChat 0.4.2]
dimasg has quit [Ping timeout: 250 seconds]
<carglass-rep> Ox0dea: Yes, I have a Gemfile and Gemfile.lock
khebbie has quit [Remote host closed the connection]
rippa has joined #ruby
existensil has joined #ruby
duoi has quit [Ping timeout: 246 seconds]
ohaibbq has joined #ruby
djbkd has quit [Remote host closed the connection]
<[k-> Ox0dea: chaining?
chipotle has joined #ruby
<hyy_> ok guys, I've reached chapter 10
tmtwd has quit [Ping timeout: 244 seconds]
<hyy_> can I have some candy?
<hyy_> what do I do now?
<Ox0dea> [k-: I almost went with ProcChain, but thinking of them as groups makes more sense, I think.
<hyy_> 0x0dea: What programming project do you suggest?
<hyy_> anything fun?
<Ox0dea> [k-: There's already https://github.com/raganwald/andand for "chaining".
<Ox0dea> hyy_: Write a brainfuck interpreter.
AbdulRehman has quit [Ping timeout: 272 seconds]
<hyy_> 0x0dea: how do you do that? Isn't that a little advanced? Problem is, I haven't been able to break the problem down into smaller pieces
<hyy_> I have been doing that but not on paper, I was coding as I designed it
<Ox0dea> It's better not to do that.
<hyy_> Knew that.
diegoviola has quit [Remote host closed the connection]
<hyy_> but, can I have some practice in program design?
duoi has joined #ruby
<Ox0dea> Put things where they belong, leave things as you found them.
<hyy_> I need some help getting started writing a brainfuck interpreter
user1138 has quit [Ping timeout: 246 seconds]
<hyy_> I need to learn the skills of program design, breaking the pieces down into smaller and smaller pieces
<hyy_> I will research Brainfuck and it's interpreters to star
<hyy_> start
<Ox0dea> I think a brainfuck interpreter is a pretty good starter project.
AbdulRehman has joined #ruby
djbkd has joined #ruby
<hyy_> but how I don't know computer programming that well yet
<hyy_> I need a mentor
nux443 has joined #ruby
<[k-> but you Haskell'd!
<relic> There's nothing that you will gain from learning Brainfuck, hyy.
<hyy_> I didn't Haskell
<relic> Ruby is perfectly suited as a new programmer.
<relic> Assuming you're a new programmer.
<hyy_> I simply remember lots of trivia
<hyy_> I read Java books and everything
<relic> That may or may not be useful.
<hyy_> even Haskell and Python books
<relic> Write programs. Reading books alone doesn't a programmer make.
<sevenseacat> wow, this troll has gone on for a while.
<sevenseacat> yesterday it was 'but i dont understand loops' and today its 'but ive read heaps of programming books'
<hyy_> *sigh* I may have read them but I haven't written programs
tkuchiki has joined #ruby
<Ox0dea> sevenseacat: "Troll" seems harsh in this case.
<hyy_> reading them doesn't make you understand loops
AbdulRehman has quit [Ping timeout: 250 seconds]
<sevenseacat> Ox0dea: i dont really think so.
tmtwd has joined #ruby
<relic> hyy: Write programs.
<sevenseacat> the books you're reading have exercises attached. do them.
<hyy_> I've done most of those exercises
Gribo has joined #ruby
<relic> hyy: Then read another book, and do those.
djbkd_ has joined #ruby
<hyy_> they want me to write a program that turns a number into Roman Numerals
<sevenseacat> great, do it.
<relic> I wonder if I talked this much when I started out.
<Gribo> Is an IDE like RubyMine worth the money?
<relic> Gribo: I use emacs, so …
<sevenseacat> Gribo: dunno, but I think they have a free trial so you can check it out for yourself.
neilnorthrop has quit []
<Gribo> I've always used IDEs and it's a bit difficult to switch to something like atom with no code completion.
jenrzzz has joined #ruby
AbdulRehman has joined #ruby
hotpancakes has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
allcentury has joined #ruby
<relic> The only scenario where I'd use an IDE is if I were writing Objective-C or Swift.
<relic> Emacs is otherwise pretty complete.
<carglass-rep> I'm confused, I'm doing it for gitlab. I *think* the gems are installed in `/home/git/gitlab/vendor/bundle`, so I `gem uninstall my_gem -i this_path`, but it still don't want to reinstall it
yardenbar has quit [Ping timeout: 265 seconds]
djbkd_ has quit [Ping timeout: 255 seconds]
krz has quit [Ping timeout: 246 seconds]
IrishGringo has quit [Ping timeout: 246 seconds]
AbdulRehman has quit [Ping timeout: 250 seconds]
krz has joined #ruby
TomyLobo has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
Jackneill has joined #ruby
dgutierrez1287 has joined #ruby
symm- has joined #ruby
AbdulRehman has joined #ruby
d2dchat has joined #ruby
dgutierrez1287 has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
AlphaAtom has joined #ruby
dagda1 has joined #ruby
baweaver has quit [Remote host closed the connection]
<zenspider> Gribo: using a language like ruby means that you need code completion a lot less
<zenspider> drop your crutch. it'll make you stronger
tmtwd has quit [Ping timeout: 250 seconds]
amclain has quit [Quit: Leaving]
AbdulRehman has quit [Ping timeout: 250 seconds]
hyy_ has quit [Quit: Gone]
juanpaucar has joined #ruby
yardenbar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
<Gribo> zenspider, I'll do that, testing RubyMine right now and it doesn't seem too over much either
juanpaucar has joined #ruby
<Gribo> offer*
<zenspider> to*
<zenspider> I also use emacs, but I was doing that looong before I was coding in ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<sevenseacat> happy sublime text/atom user.
juanpaucar has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
juanpaucar has joined #ruby
dagda1 has quit [Ping timeout: 260 seconds]
dagda1 has joined #ruby
juanpauc_ has joined #ruby
AbdulRehman has joined #ruby
AbdulRehman has quit [Client Quit]
nso95 has joined #ruby
jeanlinu_ has joined #ruby
<relic> I don't like gui clients.
weemsledeux has joined #ruby
<nofxx> emacs ftw
edwinvdg_ has quit [Remote host closed the connection]
<nofxx> or M-x for fun and profit
juanpauc_ has quit [Read error: Connection reset by peer]
jeanlinux has quit [Ping timeout: 256 seconds]
juanpauc_ has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
edwinvdgraaf has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
<relic> I feel like my entire life is waiting on Apple to incorporate Skylake processors.
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
nso95 has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
n008f4g_ has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
<zenspider> that's more than a little sad
<relic> Thank you.
<sevenseacat> lol
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
edwinvdgraaf has quit [Remote host closed the connection]
juanpaucar has joined #ruby
noethics has quit [Quit: Leaving]
PaulCapestany has quit [Read error: Connection reset by peer]
vdamewood has quit [Ping timeout: 250 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<Ox0dea> Are clouds technically skylakes?
PaulCapestany has joined #ruby
juanpauc_ has quit [Ping timeout: 256 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 260 seconds]
juanpaucar has joined #ruby
carglass-rep has quit [Quit: carglass-rep]
<nofxx> what;s new that I missed relic ? skylake
<nofxx> new and so cool
ndrei has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
bnizzle1 has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
<nofxx> I was hoping for 8 cores/16 threads or 10nm, or both. But no for both.
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
bnizzle has quit [Ping timeout: 244 seconds]
<relic> nofxx: Read about it; it's probably the most significant thing to happen in the microprocessor space since x86 -> x86_64. I just don't want to buy any new hardware until it comes out; where I'm in need of new systems.
chipotle has quit [Ping timeout: 240 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
<nofxx> relic, I skipped something and was re-reading now. But think I missed. the power efficiency you mean x86_64 iphone?
juanpaucar has joined #ruby
<nofxx> yeah, that's new .. hehe
bnizzle1 has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
einarj has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
bnizzle has joined #ruby
juanpaucar has joined #ruby
tkuchiki has quit [Remote host closed the connection]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
einarj has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
devdazed has joined #ruby
tkuchiki has joined #ruby
iamninja has quit [Quit: WeeChat 1.3]
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
juanpaucar has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
jiada has joined #ruby
n_blownapart has quit [Remote host closed the connection]
DelDotB has quit [Quit: DelDotB]
mary5030 has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
khebbie has joined #ruby
hotpancakes has joined #ruby
nerium has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 240 seconds]
ecksit has joined #ruby
ecksit has quit [Client Quit]
juanpauc_ has quit [Read error: Connection reset by peer]
UtkarshRay has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
whiteline has joined #ruby
tkuchiki has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
_blizzy_ has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
juanpau__ has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has quit [Ping timeout: 256 seconds]
felltir has joined #ruby
felltir has quit [Client Quit]
juanpau__ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
_ht has joined #ruby
grenierm has quit [Quit: grenierm]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
khebbie has quit [Remote host closed the connection]
krz has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
_blizzy_ has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
jgpawletko has quit [Quit: jgpawletko]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
tercenya_ has joined #ruby
carglass-rep has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
rubie has joined #ruby
juanpaucar has joined #ruby
lkba_ has quit [Ping timeout: 272 seconds]
tercenya has quit [Ping timeout: 246 seconds]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
Ox0dea has quit [Disconnected by services]
juanpauc_ has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
Ox0dea has joined #ruby
juanpaucar has joined #ruby
riotjones has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
michael_mbp has quit [Ping timeout: 256 seconds]
sdfgsdfg has joined #ruby
juanpauc_ has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
_Cronon_ has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
Soda has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
rbowlby has quit [Remote host closed the connection]
rbowlby has joined #ruby
michael_mbp has joined #ruby
tercenya has joined #ruby
rbowlby has quit [Remote host closed the connection]
carglass-rep has quit [Quit: carglass-rep]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
cornerma1 has joined #ruby
tercenya_ has quit [Ping timeout: 244 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
jeanlinu_ has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
rubie has quit [Remote host closed the connection]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
khebbie has quit [Remote host closed the connection]
Thr3d has joined #ruby
ecksit has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
duncannz has quit [Remote host closed the connection]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
einarj has joined #ruby
AlphaAtom has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
iamninja has joined #ruby
codecop has joined #ruby
juanpauc_ has joined #ruby
DelDotB has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
futilegames has joined #ruby
carglass-rep has joined #ruby
allcentury has joined #ruby
futilegames has left #ruby [#ruby]
rolfb has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
DelDotB has quit [Client Quit]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
carglass-rep has quit [Ping timeout: 260 seconds]
krz has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
krz has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 250 seconds]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has quit [Read error: Connection reset by peer]
[k- has quit [Quit: -a- IRC for Android 2.1.23]
juanpaucar has joined #ruby
UtkarshRay has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
lavros has joined #ruby
juanpauc_ has joined #ruby
psy_ has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
juanpauc_ has joined #ruby
stardiviner has quit [Ping timeout: 264 seconds]
juanpaucar has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
dfockler has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
applesource has joined #ruby
marr has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
devbug has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
Soda has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
ne1l has joined #ruby
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
juanpaucar has joined #ruby
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<zenspider> !ban juanpaucar$##fix-your-connection !T 1h please fix your connection
<ruboto> zenspider, could not find a matching user for "juanpaucar$##fix-your-connection"
chinmay_dd has quit [Quit: See ya!]
<zenspider> damnit
<zenspider> !ban juanpaucar !T 1h please fix your connection
juanpaucar was banned on #ruby by ChanServ [juanpaucar!*@*]
juanpaucar was kicked from #ruby by ChanServ [Banned: please fix your connection]
<jhass> 1h didn't help for bronson either
dgutierrez1287 has joined #ruby
<zenspider> 1d then?
<jhass> nah, I'll reset it to a forward once it expired
rbowlby has joined #ruby
stardiviner has joined #ruby
kamyl_ has joined #ruby
juanpauc_ has joined #ruby
juanpauc_ was banned on #ruby by ChanServ [*!*@181.39.194.178]
juanpauc_ was kicked from #ruby by ChanServ [Banned: please fix your connection]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
verdoc has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby
rbowlby has quit [Ping timeout: 245 seconds]
Devils has joined #ruby
<Devils> hello what was it gem install domain..? dont remember
<certainty> Devils: rubygems.org
r0x0rZ has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
verdoc has joined #ruby
<certainty> oh weit
<certainty> wait, even
<certainty> i totally misunderstood
<certainty> anywa
platosha_ has quit [Quit: This computer has gone to sleep]
<Devils> found
<Devils> ty :D
bruno- has quit [Ping timeout: 245 seconds]
hmsimha_ has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
einarj has joined #ruby
Chau has joined #ruby
Chau has quit [Client Quit]
<Ox0dea> Devils: Was it domainatrix?
bubbys has quit [Ping timeout: 240 seconds]
<Devils> yup
<Devils> done
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 264 seconds]
<Devils> and what is difference between a container and vps?
yfeldblum has joined #ruby
djbkd has quit [Remote host closed the connection]
vdamewood has joined #ruby
yfeldblu_ has joined #ruby
kr3ssh has joined #ruby
d2dchat_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<certainty> Devils: your favorite search engine will be able to answer that
<Devils> lol
d2dchat has quit [Ping timeout: 244 seconds]
kr3ssh has quit [Ping timeout: 240 seconds]
khebbie has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
lavros has quit [Quit: leaving]
<chipotle> trying to code on ketamine is not trivial
Ilyes512 has joined #ruby
Ilyes512 has quit [Client Quit]
krz has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
rushed has joined #ruby
devoldmx has joined #ruby
<Ox0dea> chipotle: Enlighten us?
<chipotle> the walls are coming down
<chipotle> i need to move the semicolon key to the a key
<chipotle> i keep presssing
<chipotle> but nothing happens
krz has joined #ruby
jiada has quit [Quit: Connection closed for inactivity]
<Ox0dea> > semicolon
<Ox0dea> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
kamyl_ has quit [Quit: Leaving]
kamyl_ has joined #ruby
ohaibbq has quit [Quit: Leaving...]
<zenspider> I need a longer flexible hyper-sharp knife for butchery. god I'm hungry now. :)
<Ox0dea> zenspider: Have you considered using a tantou?
<zenspider> is that different from a tanto ? regional spelling perhaps
allcentury has joined #ruby
<Ox0dea> No, it's the same thing, but Hepburn is best romanization.
<zenspider> ok. yes. if it is anything like the rest of my japanese knives, they're too rigid
skade has joined #ruby
abyss has quit [Ping timeout: 246 seconds]
carglass-rep has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<relic> We have a video of zenspider in action: https://www.youtube.com/watch?v=xlPqdCS2sA0
Devils has quit []
<zenspider> cinderblock?? I would never do that to my knives
stardiviner has quit [Ping timeout: 272 seconds]
konsolebox has quit [Quit: Leaving]
DLSteve has joined #ruby
<zenspider> that blade style is what I think of when you say tanto blade. hard, rigid, straight edged
<zenspider> cinderblock? that just makes me sad
skade has quit [Quit: Computer has gone to sleep.]
kr3ssh has joined #ruby
<TomyLobo> does ruby have something like views on hashes?
<TomyLobo> for instance a view of a hash without a certain key
<zenspider> views. on. hashes...
<TomyLobo> yes
<zenspider> you mean like a db view??
stardiviner has joined #ruby
<TomyLobo> the same concept, but on a hash instead of a database table
<zenspider> I suppose you could make an object that delegates to a hash but hides certain k/v pairs... just not sure why you'd want such a thing
<zenspider> short answer is: no, but you're free to make one
<TomyLobo> got it :)
<TomyLobo> thanks
pandaant has joined #ruby
<TomyLobo> makes more sense with immutable stuff or generators
<zenspider> no... can't say that it does
<TomyLobo> well for generators it's the only way to remove elements
abyss has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Moeh has joined #ruby
Timba-as has joined #ruby
kr3ssh has quit [Ping timeout: 246 seconds]
* codecodecode123 slaps jhass around a bit with a large fishbot
<codecodecode123> oops
<codecodecode123> didn't mean to do that
<codecodecode123> sry
<Moeh> Hello, is there any library / gem that can pretty print sql for me? Say I have something like "select * from users inner join comments" and I want it capitalized, line breaks etc.
codecodecode123 has quit [Quit: Page closed]
abyss has quit [Ping timeout: 246 seconds]
d2dchat_ has quit [Remote host closed the connection]
<TomyLobo> google, first hit :)
sarkyniin has joined #ruby
<zenspider> I HAVE PIXELS
<zenspider> RAWR
<relic> Stop shouting all the time.
nfk has joined #ruby
<zenspider> RAAAAAWR
<chipotle> Ox0dea: you are like the worst friend ever
<relic> :(
chipotle has left #ruby ["cheerio"]
abyss has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zackio has quit [Quit: C-x C-c]
zenguy_pc has quit [Ping timeout: 260 seconds]
Zackio has joined #ruby
allcentury has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
XF has joined #ruby
carglass-rep_ has joined #ruby
bruno- has joined #ruby
<zenspider> pixels and lines AND circles. yay!
<zenspider> now to rewrite the whole thing :)
<yxhuvud> zenspider: what are you doing?
bubbys has joined #ruby
<relic> Emacsin'.
<zenspider> always
<zenspider> yxhuvud: I'm testing feasibility of a rewrite of rubysdl
<zenspider> and I think I just flipped to "feasible"
greg has joined #ruby
<zenspider> 410 lines of C to get a window up w/ active drawing in it
sarkyniin has quit [Remote host closed the connection]
<zenspider> now I need to nuke that code and clean room it, preferably with a bit more OO design
greg is now known as atmox
carglass-rep has quit [Ping timeout: 244 seconds]
[k- has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
vdamewood has quit [Quit: Life beckons.]
khebbie has joined #ruby
ht__ has joined #ruby
zenguy_pc has joined #ruby
khebbie has quit [Ping timeout: 260 seconds]
XF has left #ruby [#ruby]
_blizzy_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
ChoiKyuSang has joined #ruby
bruno- has joined #ruby
banister has joined #ruby
Tempesta has quit [Ping timeout: 256 seconds]
ChoiKyuSang is now known as Tempesta
kr3ssh has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
<sevenseacat> seems unrelated to ruby.
fgo has quit [Ping timeout: 240 seconds]
<relic> sevenseacat: :)
<apeiros> yupp
<apeiros> ?ot relic
<ruboto> relic, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
* relic eyes apeiros.
djbkd has joined #ruby
* zenspider eyes relic
djbkd has quit [Ping timeout: 265 seconds]
lethan has quit []
user1138 has joined #ruby
yfeldblu_ has quit [Ping timeout: 246 seconds]
qba73 has joined #ruby
lkba has joined #ruby
skade has joined #ruby
krz has quit [Quit: WeeChat 1.2]
nanoz has joined #ruby
rfmind_ has quit [Quit: WeeChat 1.2]
jenrzzz has joined #ruby
d2dchat has joined #ruby
rfmind_ has joined #ruby
<zenspider> yay! text and beziers! and the sun hasn't even started coming up!
atmox has quit [Remote host closed the connection]
nanoz has quit [Quit: <3]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfockler has quit [Ping timeout: 265 seconds]
kr3ssh has quit [Ping timeout: 260 seconds]
devoldmx has quit [Remote host closed the connection]
rushed has quit [Quit: rushed]
renderful has joined #ruby
Mia has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
n3il has joined #ruby
Moeh has quit [Quit: Page closed]
ne1l has quit [Ping timeout: 252 seconds]
n3il has quit [Client Quit]
khebbie has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
dgutierrez1287 has joined #ruby
Olipro has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
millerti has joined #ruby
NeverDie has joined #ruby
n008f4g_ has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
codecop has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 245 seconds]
AlexAltea has joined #ruby
allcentury has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
gamename has joined #ruby
hotpancakes has joined #ruby
IrishGringo has joined #ruby
Gnomethrower has joined #ruby
<Gnomethrower> Hey there
<Gnomethrower> anyone got good resources for learning Ruby? I'm currently doing Learn Ruby the Hard Way
<Gnomethrower> just wondering if there's anything clearly superior to it
fgo has joined #ruby
khebbie has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 240 seconds]
<flegercovateam> Gnomethrower: read ruby programming (1.9-2.0).Dave Thomas.2013
<sevenseacat> I'd recommend the well-grounded rubyist
<Gnomethrower> flegerCovateam, sevenseacat: Thanks! :)
<flegercovateam> ;)
yfeldblum has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 244 seconds]
lannonbr_ has joined #ruby
lannonbr_ has quit [Client Quit]
lannonbr has joined #ruby
Mon_Ouie has joined #ruby
farn has quit [Remote host closed the connection]
rbowlby has joined #ruby
djbkd has joined #ruby
xgley has joined #ruby
The_Phoenix has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
rbowlby has quit [Ping timeout: 260 seconds]
rubie has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexAltea has quit [Read error: Connection reset by peer]
AlexAltea has joined #ruby
khebbie has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
skade has quit [Quit: Computer has gone to sleep.]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
d2dchat has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
Axy has joined #ruby
<carglass-rep_> hey
<carglass-rep_> I pretty much know nothing about ruby and am trying to log a http request to understand what goes wrong. At first I had a "TypeError (no implicit conversion of Fixnum into String)" and tried surrounding the port number with a `to_s()` but I get another error. Is this not syntactically valid?
lannonbr has quit [Ping timeout: 250 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Mia has quit [Ping timeout: 244 seconds]
Flowrhent has joined #ruby
exadeci has joined #ruby
<carglass-rep_> oh, it's number.to_s
_blizzy_ has quit [Read error: Connection reset by peer]
sameerynho has quit [Ping timeout: 250 seconds]
houhouli_ has joined #ruby
_blizzy_ has joined #ruby
postmodern has quit [Quit: Leaving]
FernandoBasso has joined #ruby
Soda has joined #ruby
Silox| has joined #ruby
houhoulis has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
howdoi has joined #ruby
kirun has joined #ruby
sameerynho has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
d2dchat has joined #ruby
rubie has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 246 seconds]
applesource has quit [Quit: WeeChat 1.3]
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
<[k-> has anyone seen Rinzlit lately
d2dchat has quit [Remote host closed the connection]
Flowrhent has quit [Ping timeout: 240 seconds]
isene has joined #ruby
lannonbr has joined #ruby
platosha_ has joined #ruby
phutchins has joined #ruby
gamename has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 260 seconds]
shmilan has joined #ruby
<Rinzlit> [k- nope
farn has joined #ruby
Gribo has quit [Read error: Connection reset by peer]
<[k-> i was a little worried there
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
Gribo has joined #ruby
<Rinzlit> [k- yeah ive just been busy with work pm me
danielpclark has quit [Ping timeout: 245 seconds]
<isene> After hours upon hours of googling, I resort to asking for a hand in debugging my issue (not really looking for The Answer, but more help in debugging). Here goes: I have a script that converts a certain structured text file to a graph. I want to offer the script as an online service (user can upload a file and get the resultant png file on a web page). The script works perfectly on the command line and inside irb (synopsis for my script is: hy
grenierm has joined #ruby
Kallis has joined #ruby
zenguy_pc has quit [Ping timeout: 256 seconds]
<isene> btw, "hypergraph" is itself a ruby script
shmilan has quit [Ping timeout: 245 seconds]
<[k-> (...) synopsis for my script is: hy
djbkd has quit [Ping timeout: 264 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
<[k-> i believe your text got cut off
umgrosscol has joined #ruby
khebbie has quit [Remote host closed the connection]
ndrei has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
AlexAltea has quit [Quit: Leaving]
devoldmx has joined #ruby
leafybasil has joined #ruby
<Papierkorb> Is there by the way a Ruby Editor/IDE, which has a graphical debugger?
AlexAltea has joined #ruby
<Papierkorb> If RubyMine has it, good for them, but it has to be free ..
ndrei has joined #ruby
<isene> After hours upon hours of googling, I resort to asking for a hand in debugging my issue (not really looking for The Answer, but more help in debugging). Here goes: I have a script that converts a certain structured text file to a graph. I want to offer the script as an online service (user can upload a file and get the resultant png file on a web page). The script works perfectly on the command line and inside irb (synopsis for my script is: hy
xgley has quit [Read error: Connection reset by peer]
<[k-> your text is still cut off
<Papierkorb> isene: your text is still cut off at the end.
<isene> hmmm... wtf?
lxsameer_ has joined #ruby
<sevenseacat> isene: IRC has a line length limit.
khebbie has joined #ruby
<[k-> irc has a limit
<Papierkorb> messages can't be infinite in length.
<[k-> like twitter
<Papierkorb> isene: irssi doesn't seem to do that properly.
<isene> ah, I'll split it
<Papierkorb> Weechat is better anyway
<sevenseacat> Papierkorb: your aversion to paying for software will cost you more than the cost of the software.
ndrei has quit [Remote host closed the connection]
<Papierkorb> sevenseacat: This is my hobby. I'm a student.
<sevenseacat> so?
<[k-> graphical debugger?
Blaguvest has joined #ruby
<Papierkorb> Not going to pay for what I push out for free
umgrosscol has quit [Remote host closed the connection]
sameerynho has quit [Ping timeout: 260 seconds]
<isene> ... The script works perfectly on the command line and inside irb (synopsis for my script is: hypergraph [OPTIONS] filename.hl) - but it simply Will Not run fra a cgi script (all else in the cgi script runs nicely). The cgi script takes an uploaded file as input, creates a text file called "hypergraph.hl" (works fine), but running this in the cgi script fails: @a = %x{hypergraph -ol hypergraph.hl}
<sevenseacat> Papierkorb: your loss.
ndrei has joined #ruby
<Papierkorb> Any useful reply instead?
sacarlson has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
<[k-> buuuuuurn sevenseacat
<isene> My message got across fine?
sacarlson1 has quit [Ping timeout: 246 seconds]
carglass-rep_ has quit [Quit: carglass-rep_]
<[k-> is the last word %x{hypergraph -ol hypergraph.hl}
sacarlson has quit [Client Quit]
<isene> yes
autrilla has quit [Quit: Connection closed for inactivity]
stardiviner has quit [Ping timeout: 264 seconds]
<[k-> yes it got across fine
<[k-> do you want me to run md5 over it to check?
<[k-> :3
zenguy_pc has joined #ruby
xgley has joined #ruby
ndrei has quit [Remote host closed the connection]
<isene> [k-: Ehm?
IrishGringo has quit [Ping timeout: 244 seconds]
<[k-> one problem i can think of is, is it in the same directory?
Olipro has joined #ruby
<sevenseacat> knowing what the error is might help.
<[k-> isene: you know, those hashing functions people use to check if a file dwnloaded successfully
tobacco_joe has joined #ruby
mhib has joined #ruby
bubbys has joined #ruby
fgo has joined #ruby
ndrei has joined #ruby
<isene> I know the file downloads, and the file "hyperlist.hl" is created by my cgi script and filled with the content of the downloaded file, but when I try to run the command "@a = %x{hypergraph -ol hypergraph.hl}" from the cgi script, it fails
Axy has quit [Read error: Connection reset by peer]
danielpclark has joined #ruby
sacarlson has joined #ruby
shmilan has joined #ruby
<[k-> <sevenseacat> knowing what the error is might help.
<isene> But running irb (from the directory of the created file "hyperlist.hl") and issuing the command "@a = %x{hypergraph -ol hypergraph.hl}", it works just nicely.
<sacarlson> how does ruby link into openssl on linux ubuntu? do they compile there own copy or do they link into the system libs?
<isene> The exit code is 1
shmilan has quit [Client Quit]
<[k-> do you have a stack trace or whatever
<sacarlson> as even when I down grade my openssl version I still have this error dh key too small (OpenSSL::SSL::SSLError) for a site that has bad settings that I still need to use
<isene> I'm not sure how to stack trace from the cgi script run from the browser...
<isene> A pointer on how to stack trace this would be most helpful
fgo has quit [Ping timeout: 244 seconds]
<[k-> i have no idea too
<[k-> but are you absolutely sure that hypergraph.hl id is in the same directory
banister has joined #ruby
autrilla has joined #ruby
<isene> yes - I trigger the script from the browser and the file "hyperlist.hl" is created in the correct directory with the correct content - and I can run the command on it from within irb in that directory
<sacarlson> never mind I found my problem still lies in openssl even the old version still has this problem as seen with openssl s_client -connect test.stellar.org:9002
banister has quit [Client Quit]
<[k-> and the cgi script is in the same directory?
<isene> Papierkorb: What would be the selling points for weechat over irssi (have never tried weechat, but interested in doing so)?
<sevenseacat> isene: but is your cgi script running from the same directory as the uploaded file?
banister has joined #ruby
leafybasil has joined #ruby
* [k- leaves a note here for sevenseacat: I'm here!
<isene> [k-: Yes, the cgi script is run from the same directory; i.e the cgi-bin directory is where the cgi csript resides, it creates the text file in that directory. The script "hypergraph" is in /usr/bin and thus accessible from anywhere)
hellerbarde2 has joined #ruby
<sevenseacat> [k-: well you were getting totally ignored so I thought rephrasing the question might help :)
hellerbarde2 is now known as hellerbarde
<isene> So, the cgi script fails on running the command "@a = %x{hypergraph -ol hypergraph.hl}", but irb in that same directory runs it just fine. Infuriatingly annoying.
sameerynho has joined #ruby
<[k-> can you provide the cgi script?
mblagden has joined #ruby
<[k-> you dont have a stack trace either, so im not sure how you determined that that was the problem
Mia has joined #ruby
Mia has joined #ruby
lxsameer_ has quit [Ping timeout: 264 seconds]
<jhass> isene: get some debug info, p $? after the %x{}, modify hypergraph to print working directory and what not
Soda has quit [Remote host closed the connection]
gizmore has joined #ruby
gizmore has quit [Changing host]
gizmore has joined #ruby
devdazed has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
<isene> jhass: I have $? output on the resulting web page - and it only says exit code 1 (not very helpful). Modifying hypergraph to print debug info is a good advice. Before I go down that route any other pointers I can try while I'm at the debugging (so that I don't have to go back and forth on this channel much)?
System42 has joined #ruby
devoldmx has joined #ruby
Chau has joined #ruby
sacarlson has left #ruby [#ruby]
jher has joined #ruby
<jhass> the general advice is to list _all_ your assumptions, no matter how trivial, then list ways to verify them, then verify them
<isene> [k-: The important parts of the cgi script is:
<isene> require "cgi"
<isene> require "erb"
<isene> hlfile = File.new("hypergraph.hl", "w")
<isene> hlfile.puts(fObj.read)
<isene> hlfile.close
<jhass> !kick isene Please use https://gist.github.com
isene was kicked from #ruby by ruboto [Please use https://gist.github.com]
_blizzy_ has quit [Ping timeout: 255 seconds]
grenierm has quit [Quit: grenierm]
isene has joined #ruby
<[k-> floodkick!
<jhass> indeed
victortyau has joined #ruby
stardiviner has joined #ruby
<isene> oh well, just a few lines... pastebin coming up
<[k-> please use gist
Gnomethrower has joined #ruby
<isene> [k-: Problems with gist in qutebrowser, here: http://pastebin.com/VWgJdpnt
<ruboto> isene, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7d9047b357c040d8bdde
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<sevenseacat> I don't think anyone reads the channel rules. ever.
Gnomethrower has quit [Max SendQ exceeded]
<jhass> gem install gist
<sevenseacat> anyway
carglass-rep has joined #ruby
<sevenseacat> so you verified that hypergraph.hl definitely contains what you think it does?
<sevenseacat> we can only run through basic debugging stuff here, that should be pretty obvious
devoldmx has quit [Ping timeout: 272 seconds]
<isene> sevenseacat: Yes, it is identical to the uploaded file - and running the hypergraph command on that resulting file from irb works just fine
<sevenseacat> so where does it start going wrong?
<isene> sevenseacat: I understand. I'm just looking for general pointers (like the "modify your hypergraph script to print out working directory" and such
Kallis has quit [Read error: Connection reset by peer]
<sevenseacat> er
<sevenseacat> so you dont actually want our help?
<jhass> isene: add 2>&1 to your command
<sevenseacat> I mean that kind of basic stuff you dont need us for, do you?
flegercovateam has quit [Quit: Leaving.]
<isene> sevenseacat: Oh yes, I want your help, but I am not expecting you to actually Solve my problem, just to give me homework ;-)
<Papierkorb> isene: I never got irssi to do what I wanted, but weechat just worked for me. It also does message splitting correctly afaik. In the end, stick with irssi if it works for you, I use graphical IRC clients
dorei has joined #ruby
<isene> jhass: Thanks for that pointer
<sevenseacat> i see.
<sevenseacat> I'm glad we spent 45min establishing that
<isene> sevenseacat: It's what I said in my opening message :-)
<jhass> isene: if you want efficient help you should try and report the result of any made suggestion asap, trying to get as much general blabla by restating your current problem over and over again is just wasting time, of your and us
DLSteve has quit [Quit: Textual IRC Client: www.textualapp.com]
<isene> I get that, but by asking for a bit more homework, I got your very pointer - which made it effective. I just wanted any other simple pointers exhausted
<[k-> why isnt @a being used
djbkd has joined #ruby
<isene> [k-: It's only needed for debugging (putting it on the resulting web page)
<Papierkorb> Does anyone know what will be new with Ruby 2.3?
<jhass> debugging is a continuous process of making changes to observe behavior, comparing that to your own assumptions and recalculating your assumptions based on the observed behavior. It is not working through a checklist of the top 100 things people do wrong
<[k-> the changnlogs have tdat info
hone has joined #ruby
<isene> jhass: Having debugged since 1991, I get that concept :-)
bhaak has quit [Ping timeout: 246 seconds]
<hone> hi@ll
<jhass> isene: well, you didn't make the impression tbh
houhouli_ has quit [Remote host closed the connection]
TvL2386 has joined #ruby
devoldmx has joined #ruby
jhack has joined #ruby
<sevenseacat> hone: howdy
djbkd has quit [Ping timeout: 250 seconds]
<isene> jhass: It's just when I have tried just about every conceivable angle and googled for more than 10 hours that I resort to asking for help on an IRC channel. And then I would want to be open for all help offered and not run back and forth too much
* sevenseacat munches on popcorn
<jhass> isene: you didn't show any of doing that
<sevenseacat> you deign to resort to asking for our advice?
<jhass> your question conveyed 10mins of debugging effort
<sevenseacat> sorry, I'll shut up.
AlphaAtom has joined #ruby
* sevenseacat goes back to fiddling eith ecto
<sevenseacat> with ,even
<[k-> commaexception
nsuke has joined #ruby
devoldmx has quit [Remote host closed the connection]
<isene> jhass: Having seen the best banging their head for hours on the simplest of comma errors, it can indeed come across like that :-)
<[k-> isene: so im guessing uploaded.html in a directory up is what hypergraph generates?
r0x0rZ has joined #ruby
<sevenseacat> isene: wow, you are sounding really arrogant right about now
bluOxigen has joined #ruby
<isene> sevenseacat: How so? Or why?
yfeldblum has quit [Ping timeout: 244 seconds]
devdazed_ has joined #ruby
<r0x0rZ> please consider following code -> http://pastebin.com/XwQ6hRGy see line 18. why do i need to return `@total` from the function `calculate_total` since @total is instance variable that has its accessor method set up? shouldn't the code on line 16 be enough?
<ruboto> r0x0rZ, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/80b9e67f3d317961776a
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<sevenseacat> does NO-ONE read the channel rules anymore?
ItSANgo has quit [Ping timeout: 250 seconds]
<isene> sevenseacat: Or maybe you read it as I was portraying myself as among the best? I am certainly not. But I have had the pleasure of working with some really excellent programmers (that run circles around me)
<r0x0rZ> sevenseacat: sorry new here.. will not happen again
phutchins has quit [Ping timeout: 244 seconds]
devdazed has quit [Ping timeout: 255 seconds]
gamename has joined #ruby
<jhass> r0x0rZ: that's totally up to you
<[k-> r0x0rZ: first thing: dont use for
<sevenseacat> r0x0rZ: enough for what?
<jhass> r0x0rZ: btw nicer way to write it: @contents.inject(0) {|sum, item| sum + item.price }
<r0x0rZ> [k-: what's wrong with for?
<sevenseacat> I wish it would be deleted from ruby
<jhass> it's not idiomatic and actually slower these days
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<[k-> and it leaks!
<r0x0rZ> jhass: hmm i find it's common among other langs so i just use it because i'm used to it. you say in ruby it's better to use that shorthand expression?>
workmad3 has joined #ruby
<[k-> jhass: advocate reduce!
Azure has quit [Ping timeout: 272 seconds]
<jhass> r0x0rZ: yes, there are no usecases for for anymore
ruby-lang583 has joined #ruby
<r0x0rZ> jhass: where can I find more info about that thing? what it's called?
<jhass> r0x0rZ: if you need plain iteration use #each, but for most stuff Enumerable got you covered with something better
stardiviner has quit [Ping timeout: 272 seconds]
<jhass> &ri Enumerable#inject
ruby-lang583 has quit [Client Quit]
<jhass> @total = @contents.inject... of course in case it wasn't obvious
<jhass> that'll also return @total implicitly because the value of an assignment expression is its rhs
<[k-> isene: so im guessing uploaded.html in a directory up is what hypergraph generates?
joneshf-laptop has quit [Ping timeout: 265 seconds]
<jhass> [k-: give up, they'll not provide any more details
Mia has quit [Read error: Connection reset by peer]
<r0x0rZ> jhass: thanks. i will read up more on this
<hfp> I'm writing an app using a Ruby framework (not Rails, not Sinatra) that doesn't come with a database or models or anything out of the box. I have to add it myself. What is thebest route? Should I reuse some Rails gems like ActiveRcord and a postgres database? Or Sequel? The framework also makes no assumptions about the model. Is ActiveModel the way to go?
jher has quit [Ping timeout: 244 seconds]
<bougyman> hfp: I like my bike sheds to be round and red.
bhaak has joined #ruby
<hfp> bougyman: wat?
decoponio has joined #ruby
<jhass> hfp: up to you, Sequel, ActiveRecord and I guess ROM are the popular choices
<bougyman> You'll get as many recommendations as there are people with an opinion.
<bougyman> which ruby framework are you using?
<bougyman> some things play better or worse with others.
<hfp> bougyman: I'm using Adhearsion
jhack has quit [Ping timeout: 246 seconds]
<bougyman> are you running it on the phone switch or as a separate app over the network?
<bougyman> if it's on the phone switch, you want it as light as possible.
<hfp> I'm running it in a docker container. For now, the app container and the freeswitch instance or in containers on the same machine
<bougyman> if you're already pg, sequel (and sequel_pg) will get you the best performance.
<hfp> I don't have any db yet, it's a rewrite from scratch
chichou has joined #ruby
<bougyman> I see.
<bougyman> are you doing a pbx or a call center?
<bougyman> i did ruby + freeswitch for 6 years.
<hfp> nice
fgo has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hfp> I'm doing an app just for myself and family. I want it to be clean but it's not mission critical
<bougyman> i'm glad the adhearsion boys finally got fs support done. I'm assuming it's done, if you're using it.
<bougyman> I wrote freeswitcher back at the time because there was no good ruby + fs lib
<hfp> yes it works fine with fs :)
r0x0rZ has quit []
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<bougyman> if you're doing a simple app you could just use httapi served by roda.
hotpancakes has joined #ruby
<bougyman> you wouldn't belive how much you can do with simple httapi and never have to get down in the dirty weeds.
<hfp> I can relate... The original version of this app is written in plain asterisk dialplan... no framework, nothing. it's a spaghetti mess now
<bougyman> *believe.
joneshf-laptop has joined #ruby
<bougyman> hahah, I converted a lot of those.
AlphaAtom has joined #ruby
<hfp> I didnt know any better back then
<bougyman> if the app can be done in an asterisk dialplan, though, it can surely be done in httapi.
<bougyman> much simpler that the work of an adhearsion stack.
<bougyman> *than
<hfp> I'm adding a lot of functionality so I dont think Asterisk dialplan would cut it anymore
<bougyman> and little to no dependencies.
<bougyman> right, but httapi would.
_whitelogger_ has joined #ruby
it_tard has joined #ruby
danzilio_ has joined #ruby
andersh_ has joined #ruby
sameerynho has quit [Quit: Leaving]
ahuman_ has joined #ruby
rikai_ has joined #ruby
bhaak has quit [Ping timeout: 272 seconds]
Vile` has joined #ruby
bhaak has joined #ruby
wlanboy_ has joined #ruby
patteh_ has joined #ruby
unsymbol_ has joined #ruby
verto_ has joined #ruby
DanKnox_ has joined #ruby
destruct1re has joined #ruby
txdv_ has joined #ruby
mblagden1 has joined #ruby
xsdg_ has joined #ruby
csaunders_ has joined #ruby
raddazong has joined #ruby
jso has joined #ruby
yie_ has joined #ruby
ec\_ has joined #ruby
colstrom has quit [Ping timeout: 240 seconds]
PhilK has quit [Ping timeout: 240 seconds]
ryanMmhmm has quit [Ping timeout: 240 seconds]
_whitelogger has quit [Ping timeout: 240 seconds]
pizzaops has quit [Ping timeout: 240 seconds]
zipkid has quit [Ping timeout: 240 seconds]
andersh has quit [Ping timeout: 240 seconds]
csaunders has quit [Ping timeout: 240 seconds]
sparr has quit [Ping timeout: 240 seconds]
danzilio has quit [Ping timeout: 240 seconds]
verto has quit [Ping timeout: 240 seconds]
elektronaut has quit [Ping timeout: 240 seconds]
Guest2252 has quit [Ping timeout: 240 seconds]
Eleeleth has quit [Ping timeout: 240 seconds]
twistedpixels has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
soloone has quit [Ping timeout: 240 seconds]
nfk has quit [Ping timeout: 240 seconds]
tobyx has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
joe2 has quit [Ping timeout: 240 seconds]
jmhmccr has quit [Ping timeout: 240 seconds]
DanKnox has quit [Ping timeout: 240 seconds]
rflot has quit [Ping timeout: 240 seconds]
wlanboy has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
emma_ has quit [Ping timeout: 240 seconds]
elton has quit [Ping timeout: 240 seconds]
monoprotic has quit [Ping timeout: 240 seconds]
unsymbol has quit [Ping timeout: 240 seconds]
scroff has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
zenguy_pc has quit [Ping timeout: 240 seconds]
ArnaudM has quit [Ping timeout: 240 seconds]
sn0wb1rd has joined #ruby
ipstatic has quit [Ping timeout: 240 seconds]
sn0wb1rd has quit [Ping timeout: 240 seconds]
Contigi has quit [Ping timeout: 240 seconds]
doublemalt_ has quit [Ping timeout: 240 seconds]
rikai has quit [Ping timeout: 240 seconds]
scottschecter has quit [Ping timeout: 240 seconds]
jso- has quit [Ping timeout: 240 seconds]
madhatter has quit [Ping timeout: 240 seconds]
ahuman has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
Guest24 has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 240 seconds]
martinbjeldbak has quit [Ping timeout: 240 seconds]
txdv has quit [Ping timeout: 240 seconds]
patteh has quit [Ping timeout: 240 seconds]
mblagden_ has quit [Ping timeout: 240 seconds]
ec\ has quit [Ping timeout: 240 seconds]
yie has quit [Ping timeout: 240 seconds]
xsdg has quit [Ping timeout: 240 seconds]
destructure has quit [Ping timeout: 240 seconds]
silverdust has joined #ruby
zenguy_pc2 has joined #ruby
scottschecter_ has joined #ruby
DanKnox_ is now known as DanKnox
ArnaudM has joined #ruby
<hfp> I see, thanks
NeverDie has joined #ruby
doublemalt_ has joined #ruby
<hfp> what do you use now to write voip apps bougyman ?
silverdust is now known as Guest34964
zipkid__ is now known as zipkid
pizzaops_ is now known as pizzaops
scroff has joined #ruby
martinbjeldbak has joined #ruby
danzilio_ is now known as danzilio
andersh_ is now known as andersh
jmhmccr_ is now known as jmhmccr
ipstatic has joined #ruby
danzilio has quit [Client Quit]
heyimwill has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
Eleeleth_ is now known as Eleeleth
rflot_ is now known as rflot
sdfgsdfg has joined #ruby
sdfgsdfg has quit [Read error: Connection reset by peer]
dcarmich has joined #ruby
twistedpixels has joined #ruby
elektronaut has joined #ruby
soloone has joined #ruby
Olipro| has joined #ruby
tonios57 has joined #ruby
NeverDie has joined #ruby
lele has joined #ruby
jhack has joined #ruby
SCHAAP137 has joined #ruby
sdfgsdfg has joined #ruby
sdfgsdfg has quit [Changing host]
sdfgsdfg has joined #ruby
scottschecter_ has quit [Client Quit]
<bougyman> hfp: roda + sequel.
emma_ has joined #ruby
<bougyman> using the httapi interface. my freeswitch boxes have empty dialplans, they just call out to the roda web app for everything.
<hfp> and then you control fs over http api calls, correct?
sn0wb1rd has quit [Ping timeout: 240 seconds]
Olipro| has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
sn0wb1rd has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Olipro| has joined #ruby
sparr has joined #ruby
Coldblackice has quit [Ping timeout: 250 seconds]
PhilK has joined #ruby
colstrom has joined #ruby
JohnBat26 has joined #ruby
ryanMmhmm has joined #ruby
joe2 has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Feyn has quit [Quit: Leaving]
Mon_Ouie has joined #ruby
<shevy> long live ruby \o/
allcentury has joined #ruby
hone has quit [Quit: Page closed]
ndrei has quit [Ping timeout: 240 seconds]
olitreadwell has quit [Quit: Connection closed for inactivity]
nofxx has joined #ruby
nofxx has joined #ruby
ndrei has joined #ruby
krasnus has joined #ruby
sarkyniin has joined #ruby
iateadonut has joined #ruby
centrx has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
amystephen has joined #ruby
iamninja has joined #ruby
<shevy> anyone here uses qtruby?
diprotic is now known as monoprotic
_blizzy_ has joined #ruby
<Papierkorb> shevy: I know C++/Qt, but not QtRuby beyond knowing that it exists
<shevy> hmm
<shevy> I tried qtruby a few years ago, I think soon after qt4 + kde4 was first released
heyimwill has joined #ruby
<shevy> it looked nice but there was no wiki so one had to look up at the Qt API
krz has joined #ruby
<Papierkorb> Well, Qt5 has been out now for .. 2 years or so ;)
zenguy_pc2 has quit [Ping timeout: 244 seconds]
towski_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<shevy> yeah
<Papierkorb> I can't really find much on QtRuby. All examples still refer to Qt4 though
<shevy> I am using ruby-gnome usually but it feels as if there is a complete lack of manpower
alejo_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
<shevy> I was updating my local ruby-gnome documentation today and upon reaching StatusIcon, I was curious about the official API docu
<Papierkorb> Which might be enough if you only want it to use as gui toolkit for a desktop application. Not too many things have changed for that since the end of Qt4
<shevy> which I found at https://developer.gnome.org/gtk3/stable/GtkStatusIcon.html - and a typical addition is: "GtkStatusIcon has been deprecated in 3.14"
<shevy> so it feels like don quichotte chasing windmills again :(
grotewold has joined #ruby
<Papierkorb> But as someone who did some 4 years of dev with C++/Qt, I'd prefer Qt5 wherever possible ..
_blizzy_ has joined #ruby
<Papierkorb> Impressive. Support for modern UI toolkits is really scarce outside of C/C++.
banister has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> :(
war_pigs has joined #ruby
davedev24 has joined #ruby
bhaak has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 246 seconds]
bhaak has joined #ruby
alejo_ has quit [Quit: Leaving]
ndrei has joined #ruby
<[k-> ?cookie shevy
<ruboto> shevy, here's your cookie:
alejo__ has joined #ruby
<Papierkorb> shevy: Also, the communities for the Qt bindings are really small, or at least not vocal. There was like one PySide or PyQt (Python bindings for Qt) question every few weeks. For other bindings, I think I could count the number of questions on a hand after the 4 years. So, if you really want to do GUI dev with ruby, either try QtRuby with Qt4, or look for other solutions. Hate to say it. If you find a viable way of creating a GUI with ruby,
<Papierkorb> please tell me
<Papierkorb> ^ I'm refering to #Qt here on freenode. Also try asking there!
bap1313 has quit [Ping timeout: 260 seconds]
<jhass> the ruby-gir stuff looks interesting
<Papierkorb> If not today, then Tuesday evening (european timezones).
sevenseacat has quit [Quit: .]
zenguy_pc2 has joined #ruby
fgo has joined #ruby
<shevy> Papierkorb I find that strange because to me it seems as if kde is much bigger than gnome these days, including the community, but especially much so the active devs
<shevy> so I would also assume that the ruby bindings be in a better shape, but instead it seems as if all those toolkits took a massive blow over the last ~6 years or so
<Papierkorb> shevy: yeah, but then, C++ is really popular for those. C++/Qt *is* convenient and nice to work with. For stuff where it is not, they have QML
khebbie has quit [Remote host closed the connection]
<Papierkorb> Building and maintaining language bindings is pretty tedious, so if you don't do it or give Digia some money for it, it won't happen
<Papierkorb> See QtJambi, Qt bindings for Java. Stuck at Qt4.7 - which is completely outdated
khebbie has joined #ruby
Rutix has joined #ruby
Rutix has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
<shevy> hmm
gamename has quit [Remote host closed the connection]
<nofxx> shevy, really? kde in activity > gnome? So long I don't even hear about kde
<Papierkorb> shevy: What are you trying to do? Just looking for a general way to do it, or something specific?
<nofxx> isn't unity gtkgnome spin off btw?
<Papierkorb> nofxx: are you not using KDE? I constantly hear about KDE and Qt, but haven't heard about gnome in years
<nofxx> really piece of waste of time btw
<nofxx> Papierkorb, gnome on arch
khebbie has quit [Ping timeout: 240 seconds]
<nofxx> Papierkorb, really, never used it. It's just too ugly.
<Papierkorb> nofxx: I think the same about Gnome and everything that's remotely attached to it :)
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> Papierkorb, 10 man, 10 colors. Going to check some kde new ss. But do you mean gnome 3? I agree 2 is ugly
<shevy> nofxx yeah, my impression was that qt+kde have more manpower behind these days
<nofxx> also, kde is so windows... that's my issue with it
<shevy> Papierkorb I dunno... it feels that if it's all dying, it's a waste to spend time into oldschool GUIs
<Papierkorb> I don't like Gnome3's workflow. Gtk3 is a mess, constantly ABI/API breaking changes in minor versions, so that's crap too
bhaak has quit [Ping timeout: 244 seconds]
<nofxx> Papierkorb, have you watched multiplicity with michael keaton? kde is the last clone. The clone from a clone.
<shevy> yeah - see the link about the above deprecation :-)
<nofxx> mac -> windows -> kde / mac -> gnome
<shevy> which is then not only a mess but also wastes the very few devs time who still do bindings
<Papierkorb> nofxx: KDE is super customizable. If you don't like its look, well, change it.
<Papierkorb> Gnome has the browser cancer in that I need a plugin for every basic task I want it to do. That's not going to fly for me
<nofxx> Papierkorb, nope. I'll not waste a sec of my life customizing my OS look. It need to just look good.
<nofxx> mac has 7 colors for highlight, and that's it.
<Papierkorb> Which KDE does :)
<nofxx> customize away
<Papierkorb> If you don't like it, then don't use it. Issue solved?
AlexAltea has quit [Quit: Leaving]
FernandoBasso has quit [Quit: May the force be with you.]
<Papierkorb> > KDE4.2
<Papierkorb> That's how old exactly? 7 years or so?
<Papierkorb> And that's already a customized version of KDE
<nofxx> plasma is the new?
<Papierkorb> no, actually not
<Papierkorb> that's already customized again
<nofxx> that's way better. But again, I prefer it more clean/minimalist.
<shevy> nofxx you sound as lazy as I am :-)
<Papierkorb> Mh? Gnome has already ten times more crap on its screen by default as that screenshot
hotpancakes has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<nofxx> shevy, hehe =D Papierkorb it does not man.
ndrei has quit [Ping timeout: 245 seconds]
<Papierkorb> Taskbar with tasks, some start menu, and the tray. Takes up some 30px vertically. I don't see wasted space.
<Papierkorb> But then, I don't get these useless wars
<Papierkorb> people like you put so much energy into these complaints that could be better put into just really trying those DEs, and if you don't like them, use what's better for you. These are linux based OSes, we have the choice to use what we want
<shevy> dunno about too much choice
<shevy> gnome without systemd :)
<Papierkorb> Haha
<nofxx> Papierkorb, I wasn't fighting, I was genuinely curious, long time no see.
<shevy> though I think it's only in some login component
Timba-as has quit [Quit: Be back later ...]
allcentury has quit [Ping timeout: 265 seconds]
blue_deref has joined #ruby
<shevy> I also don't understand those weird "online-accounts" thing... we didn't need to have online stuff a couple of years ago...
chinmay_dd has joined #ruby
danzilio has joined #ruby
<nofxx> that's actually the hotcorner or alt + f1 screen
<Papierkorb> nofxx: You're on Arch, correct? Just install it, try it, and if you think it sucks, pacman -R it. This isn't ubuntu afterall. But if you want to do yourself a favor, wait another 6 months until Plasma5 gets actually stable. It's stable enough for the most part, but some random bugs are just still annoying and need to go away
<nofxx> there's no desktop
<shevy> I love kde konsole, I have multiple tabs - in one of them, irb is always active (or usually in yakuake)
<nofxx> Papierkorb, thanks for the tip!
<shevy> nofxx oh yeah... the old classical desktop idea sort of died or got changed. I am a sad panda :(
<[k-> ?ot lv1000
<ruboto> lv1000, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
xxneolithicxx has joined #ruby
<nofxx> Papierkorb, so the actual screen is nothing, heh just the 30px bar and wallpaper
<nofxx> shevy, yeah ^
xxneolithicxx has quit [Max SendQ exceeded]
<shevy> [k- ruby bindings!
<[k-> this is a opinion war!
<[k-> (ok, that was overly dramatic)
warmonk has joined #ruby
warmonk has quit [Client Quit]
bhaak has joined #ruby
warmonk has joined #ruby
warmonk has quit [Client Quit]
sarkyniin has quit [Ping timeout: 255 seconds]
warmonk has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
dimasg has joined #ruby
fgo has joined #ruby
christiandsg has joined #ruby
einarj has joined #ruby
warmonk has quit [Client Quit]
einarj has quit [Ping timeout: 240 seconds]
warmonk has joined #ruby
jgt has joined #ruby
warmonk has quit [Client Quit]
sarkyniin has joined #ruby
warmonk has joined #ruby
prestorium has joined #ruby
phutchins has joined #ruby
bap1313 has joined #ruby
warmonk has quit [Client Quit]
hotpancakes has joined #ruby
warmonk has joined #ruby
wallerdev has joined #ruby
carglass-rep_ has quit [Quit: carglass-rep_]
dimasg has quit [Ping timeout: 264 seconds]
rape has joined #ruby
<rape> what is your favorite stack to use and why?
<jhass> rape: 1min to change your nick http://ruby-community.com/pages/user_rules#rule_2_10
timonv has joined #ruby
<rape> dude
<apeiros> !ban rape !T 1h bad nick
rape was banned on #ruby by ChanServ [rape!*@*]
rape was kicked from #ruby by ChanServ [Banned: bad nick]
<wasamasa> if only people could take a hint...
carglass-rep has joined #ruby
carglass-rep is now known as carglass-rep_
<apeiros> sorry jhass, read your message after banning
northfurr has joined #ruby
peteykun has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
dimasg has joined #ruby
Soda has joined #ruby
autrilla has quit [Quit: Connection closed for inactivity]
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
<ekleog> Any hint about how to atomically push *two* elements in a Queue? I wouldn't even mind if it forced all threads to wait, would just prefer to avoir having to recode the entire Queue class :/
<ekleog> s/avoir/avoid/
face has joined #ruby
skade has joined #ruby
<apeiros> ekleog: just push twice
faces has quit [Ping timeout: 250 seconds]
dopie has joined #ruby
skade has quit [Client Quit]
_blizzy_ has quit [Ping timeout: 255 seconds]
<ekleog> apeiros: Hmmm, I was guessing the thread was interrupted between the two pushes, guess I'll have to search for another bug
christiandsg has quit [Remote host closed the connection]
dopieee has joined #ruby
<jhass> ekleog: it might be, but if that's an issue for your code, you have a huge design issue
houhoulis has joined #ruby
christiandsg has joined #ruby
dopie has quit [Ping timeout: 244 seconds]
war_pigs has quit [Quit: later... computer is sleeping]
<ekleog> Well, I'm bringing something down and then up again, but this thing will bring me down with it, so the "go up" message must arrive before I'm brought down
<ekleog> Otherwise I could just add a third message type that says "downup", but I feel it's ugly :/
tkuchiki has quit [Remote host closed the connection]
<jhass> "reboot" isn't ugly at all
<jhass> or "restart" if that fits your domain better
above has joined #ruby
A124 has quit [Quit: Luke's IRC Client v0.94 build 682]
CorySimmons has joined #ruby
<ekleog> The trick is the thing I'm "restarting" is just a placeholder that serves as a way to express dependencies to other services, so it does not actually do anything, just shutdown every dependent service when going down and start them back again when going up
christiandsg has quit [Ping timeout: 265 seconds]
armyriad has quit [Ping timeout: 255 seconds]
<shevy> hmm
<shevy> yaml files have a trailing \n ?
<jhass> I'd expect the parser to not care
liu has joined #ruby
Meow-J has joined #ruby
hanmac has quit [Ping timeout: 244 seconds]
khebbie has joined #ruby
chris2 has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
<shevy> guess I should read the specification of yaml files one day...
<jhass> why is it even relevant?
khebbie has quit [Ping timeout: 250 seconds]
<shevy> because YAML.dump makes newlines
rodfersou has joined #ruby
towski_ has quit [Remote host closed the connection]
ndrei has joined #ruby
ishahnaz has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
<jhass> and you have an aversion against them or...?
armyriad has joined #ruby
<shevy> it yields no useful information
christiandsg has joined #ruby
IrishGringo has joined #ruby
<shevy> I assume that it is done due to the specification though
<apeiros> shevy: it's common to end all text based file formats with a newline
<apeiros> and yes, it's mostly convenience. e.g. for concatenating files or displaying them in the shell.
krz has quit [Ping timeout: 240 seconds]
<shevy> good point
A124 has joined #ruby
d10n-work has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
<TomyLobo> can a postfix if have an else clause somehow?
hanmac has joined #ruby
<jhass> no
<jhass> maybe you want a ternary?
<TomyLobo> maybe
chris2 has joined #ruby
<TomyLobo> yeah, ternary works... silly me :)
mephistophocles has quit [Ping timeout: 240 seconds]
whiteline has quit [Ping timeout: 265 seconds]
krz has joined #ruby
northfurr has quit [Quit: northfurr]
jds has joined #ruby
towski_ has joined #ruby
northfurr has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
armyriad has quit [Quit: Leaving]
Cache_Money has quit [Quit: Cache_Money]
phutchins has quit [Ping timeout: 252 seconds]
towski_ has quit [Remote host closed the connection]
eminencehc has joined #ruby
blue_deref has quit [Quit: bbn]
einarj has joined #ruby
TvL2386 has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
einarj has quit [Ping timeout: 244 seconds]
avahey has joined #ruby
djbkd has joined #ruby
dgutierrez1287 has joined #ruby
northfurr has quit [Quit: northfurr]
dimasg has quit [Ping timeout: 240 seconds]
decoponyo has joined #ruby
zenguy_pc2 has quit [Ping timeout: 245 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
rubie has joined #ruby
whiteline has joined #ruby
r0x0rZ has joined #ruby
khebbie has joined #ruby
decoponio has quit [Ping timeout: 260 seconds]
dgutierrez1287 has joined #ruby
tmtwd has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
<greenbigfrog> I'm always getting: Connection reset by peer!
christiandsg has quit [Remote host closed the connection]
chris2 has quit [Ping timeout: 240 seconds]
darkf has quit [Quit: Leaving]
xet7_ has joined #ruby
christiandsg has joined #ruby
darkxploit has joined #ruby
fullofcaffeine has joined #ruby
bubbys has quit [Ping timeout: 246 seconds]
zenguy_pc2 has joined #ruby
khebbie_ has joined #ruby
khebbie_ has quit [Remote host closed the connection]
victortyau has quit [Quit: Leaving]
fantazo has joined #ruby
khebbie has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Ping timeout: 250 seconds]
eminencehc has quit [Remote host closed the connection]
christiandsg has quit [Ping timeout: 265 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
Dr_XYZ has joined #ruby
Dr_XYZ has left #ruby [#ruby]
rubie has quit [Remote host closed the connection]
christiandsg has joined #ruby
hotpancakes has joined #ruby
pranny has joined #ruby
chris2 has joined #ruby
warmonk has quit [Remote host closed the connection]
fedexo has joined #ruby
darkxploit has quit [Quit: Leaving]
christiandsg has quit [Remote host closed the connection]
lawiguess has joined #ruby
hotpancakes has quit [Ping timeout: 240 seconds]
IrishGringo has quit [Ping timeout: 246 seconds]
above has quit [Ping timeout: 246 seconds]
dimasg has joined #ruby
IrishGringo has joined #ruby
sarkyniin has joined #ruby
jpfuentes2 has joined #ruby
leat has joined #ruby
eminencehc has joined #ruby
dgutierrez1287 has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
hotpancakes has joined #ruby
leat has joined #ruby
fgo has joined #ruby
arup_r has joined #ruby
blueOxigen has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
dimasg has quit [Ping timeout: 255 seconds]
fullofcaffeine has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 260 seconds]
fullofcaffeine has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
bubbys has joined #ruby
blue_deref has joined #ruby
djbkd has quit [Remote host closed the connection]
fantazo has quit [Quit: Verlassend]
maia has joined #ruby
leafybasil has quit [Ping timeout: 250 seconds]
<maia> hello. anyone familiar with the twitter gem? I’m wondering how I could cache a verified client object and let my worker jobs access it, as I’m currently creating a new client for each worker job and am hitting the api limit for /account/verify_credentials
retornam has quit [Ping timeout: 250 seconds]
<maia> or to generalize my question: is there a way to let (threaded) worker jobs (sidekiq/redis) share an object?
atomical has joined #ruby
retornam has joined #ruby
hotpancakes has quit [Remote host closed the connection]
leat has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
northfurr has joined #ruby
leat has joined #ruby
nsuke has quit [Remote host closed the connection]
Cust0sLim3n has quit [Read error: Connection timed out]
Cust0sLim3n has joined #ruby
hotpancakes has joined #ruby
ndrei has joined #ruby
rodfersou has quit [Quit: leaving]
alejo__ has quit [Ping timeout: 260 seconds]
skade has joined #ruby
peteykun has quit [Quit: Leaving]
UtkarshRay has quit [Quit: Leaving]
Torrieri has quit [Quit: Be back later ...]
hmsimha_ has joined #ruby
leat has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 244 seconds]
CorySimmons has quit [Quit: Bye!]
northfurr has quit [Quit: northfurr]
bruno- has joined #ruby
symm- has quit [Quit: Leaving...]
kies^ has quit [Ping timeout: 250 seconds]
lele is now known as Guest24
kies has quit [Ping timeout: 250 seconds]
leat has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
kies has joined #ruby
phutchins has joined #ruby
kies^ has joined #ruby
davedev2_ has joined #ruby
Musashi007 has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
leat has quit [Remote host closed the connection]
rubie has joined #ruby
IrishGringo has joined #ruby
armyriad has joined #ruby
rushed has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 250 seconds]
willharrison has joined #ruby
lucyinthesky has joined #ruby
Vile` has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Vile` has quit [Remote host closed the connection]
above has joined #ruby
northfurr has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tobacco_joe has quit []
leat has joined #ruby
lawiguess has quit [Ping timeout: 245 seconds]
Vile` has joined #ruby
northfurr has quit [Client Quit]
rubie has quit [Remote host closed the connection]
<pontiki> persist it in a database
codecop has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<maia> pontiki: I’m trying to keep an api connection alive across worker jobs. that’s not something I can persist in a database, can I?
<pontiki> that sounds very different than a client object...
IrishGringo has quit [Ping timeout: 246 seconds]
lucyinthesky has left #ruby ["Leaving"]
socialjackie has joined #ruby
Guest34964 is now known as bl4ckdu5t
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
crankharder has quit [Remote host closed the connection]
christiandsg has joined #ruby
Torrieri has joined #ruby
Torrieri has quit [Changing host]
Torrieri has joined #ruby
socialjackie has quit [Client Quit]
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
Vile` has quit [Ping timeout: 240 seconds]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
toretore has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
rushed has quit [Quit: rushed]
NeverDie has joined #ruby
jatb has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
hotpancakes has quit [Remote host closed the connection]
jraisanen has joined #ruby
fgo has joined #ruby
lucyinthesky has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
crankharder has joined #ruby
baweaver has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
fgo has quit [Ping timeout: 252 seconds]
hmsimha_ has quit [Ping timeout: 265 seconds]
<crankharder> does this mean anything to anyone? can't figure out what lib is missing. trying to bundle on ubuntu w/ ruby 2.1.7, bundler 1.10.6 - thanks!
Vile` has joined #ruby
<jhass> crankharder: /usr/bin/ld: cannot find -lgmp
khebbie has joined #ruby
<jhass> get gmp-dev or libgmp-dev, don't remember the package name
jatb has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<crankharder> ah, ty!
djbkd has quit [Ping timeout: 244 seconds]
<shevy> here would be the source http://ftp.sunet.se/pub/gnu/gmp/gmp-6.0.0a.tar.xz :)
zxvcd_ has joined #ruby
dagda1 has joined #ruby
jeadre has quit [Remote host closed the connection]
chipotle has joined #ruby
jpfuentes2 has joined #ruby
joneshf-laptop has quit [Read error: Connection reset by peer]
jeadre has joined #ruby
pandaant has quit [Quit: Lost terminal]
khebbie has quit [Ping timeout: 244 seconds]
joneshf-laptop has joined #ruby
user1138 has quit [Remote host closed the connection]
fantazo has joined #ruby
hotpancakes has joined #ruby
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
sdfgsdfg has quit [Remote host closed the connection]
havenwood has joined #ruby
dagda1 has quit [Ping timeout: 264 seconds]
Azure has joined #ruby
hotpancakes has quit [Ping timeout: 250 seconds]
iamninja has quit [Read error: Connection reset by peer]
dagda1 has joined #ruby
iamninja has joined #ruby
veduardo has joined #ruby
Sembei has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
GPrime has joined #ruby
nanoz has joined #ruby
phutchins has joined #ruby
rushed has joined #ruby
rushed has quit [Client Quit]
khebbie has joined #ruby
El3ktra_ has joined #ruby
Coldblackice has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Gribo has quit [Read error: Connection reset by peer]
El3ktra_ has quit [Quit: Leaving]
Musashi007 has quit [Ping timeout: 260 seconds]
b44 has joined #ruby
<shevy> what html generators do we have in ruby? I know the cgi in ruby stdlib can generate html stuff
al2o3-cr has quit [Quit: WeeChat 1.2]
dopie has joined #ruby
Chau has quit [Ping timeout: 244 seconds]
banister has joined #ruby
<shevy> ohhh havenwood look!
<shevy> "Python has been awarded a TIOBE Programming Language of the Year award twice (in 2007 and 2010), which is given to the language with the greatest growth in popularity over the course of a year, as measured by the TIOBE index.[125]"
<havenwood> shevy: Who won it this year? Cobol?
davedev2_ has quit []
Musashi007 has joined #ruby
<havenwood> COBOL*
banister has quit [Client Quit]
dopieee has quit [Ping timeout: 244 seconds]
<apeiros> +D
einarj_ has quit [Ping timeout: 272 seconds]
<havenwood> shevy: Oh look, Assembly Language just passed Ruby on TIOBE...
<havenwood> Maybe startups should consider this technology for web apps.
einarj has joined #ruby
<wasamasa> maybe
<havenwood> Must have been a popular news story about an assembly line. And the Style network cancelling the "Ruby" show about southern obesity really hurt Ruby's TIOBE>
<wasamasa> I blame this thing
<shevy> havenwood I was reminded of it because I found the entry above at the wikipedia entry about python. Someone was adding the TIOBE methodology :)
IrishGringo has joined #ruby
<havenwood> ?tiobe shevy
<ruboto> shevy, I don't know anything about tiobe
<havenwood> shevy: Oh, the humanity...
<havenwood> wasamasa: hehe
davedev24 has joined #ruby
<havenwood> ngx_mruby is on my list, i haven't actually played with it and I'd like to: https://github.com/matsumoto-r/ngx_mruby#readme
dojobo has joined #ruby
al2o3-cr has joined #ruby
qba73 has quit [Ping timeout: 264 seconds]
howdoicomputer has joined #ruby
hotpancakes has joined #ruby
<havenwood> shevy: Nothing is coming to mind other than CGI.
<shevy> hmm
psy_ has joined #ruby
symm- has joined #ruby
khebbie has quit [Remote host closed the connection]
nanoz has quit [Ping timeout: 250 seconds]
bubbys has quit [Ping timeout: 256 seconds]
tmtwd has quit [Ping timeout: 245 seconds]
chare has joined #ruby
christiandsg has joined #ruby
khebbie has joined #ruby
eminencehc has quit [Remote host closed the connection]
rbowlby has joined #ruby
siemprefresco has joined #ruby
lucyinthesky has quit [Quit: Leaving]
DLSteve has joined #ruby
chinmay_dd has quit [Quit: See ya!]
leafybasil has joined #ruby
bl4ckdu5t is now known as silverdust
fantazo has quit [Ping timeout: 265 seconds]
bigmac has joined #ruby
war_pigs has joined #ruby
rbowlby has quit [Ping timeout: 246 seconds]
bigmac is now known as i8igmac
dojobo has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.2]
yfeldblum has joined #ruby
seggy has quit [Ping timeout: 246 seconds]
segmond has quit [Ping timeout: 246 seconds]
radgeRayden has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
episage has joined #ruby
puppeh_ has joined #ruby
fgo has joined #ruby
<puppeh_> what's the recommended way to create a mutex in a module? ie. the equivalent of creating a `@mutex = Mutex.new` in a class' initialize method
episage has quit [Remote host closed the connection]
prestorium has quit [Ping timeout: 244 seconds]
jgpawletko has joined #ruby
prestorium has joined #ruby
<yorickpeterse> puppeh_: can you be more specific?
yfeldblu_ has joined #ruby
Axy has joined #ruby
System42 has quit [Quit: Leaving]
<puppeh_> I want to synchronize all calls to a method defined in a module
hmsimha_ has joined #ruby
<puppeh_> using a mutex
gamename has joined #ruby
fantazo has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
<puppeh_> if it was a class I would create the mutex in the class' `#initialize`
elton_ has quit []
<puppeh_> but since this is a module, what's the reocmmended way to do it?
veduardo has quit [Ping timeout: 255 seconds]
DLSteve has quit [Quit: Leaving]
fgo has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
chare has quit [Quit: Page closed]
prestorium has quit [Ping timeout: 260 seconds]
christiandsg has quit [Remote host closed the connection]
banister has joined #ruby
DLSteve has joined #ruby
choke has joined #ruby
<puppeh_> yorickpeterse: does that clarify my question?
<apeiros> puppeh_: I'd probably aim to not have the responsibility of synchronization in the module at all
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
<puppeh_> where would you have it?
<puppeh_> in the caller?
<apeiros> I do not know enough about what you do to answer that
liu has quit [Ping timeout: 256 seconds]
<puppeh_> ok but why you say you wouldn't have it in the module at all?
seggy has joined #ruby
segmond has joined #ruby
renderfu_ has joined #ruby
porton has joined #ruby
porton has left #ruby ["Ex-Chat"]
j_mcnally has joined #ruby
shinnya has joined #ruby
casadei_ has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
some1else has joined #ruby
<gizmore> i have written a rake task which is an irc-bot. After a few days, dns seems to stop working... any idea what could cause this?
renderfu_ has quit [Ping timeout: 246 seconds]
some1else is now known as skyofdwarf
chipotle has quit [Quit: cheerio]
dimasg has joined #ruby
<yorickpeterse> puppeh_: there's no easy way to do it automatically
<yorickpeterse> since there's no #initialize for a Module
<puppeh_> yes
<yorickpeterse> though if it's included into a Class you could have the module define #initialize
qba73 has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> but then the Class would have to call super()
<yorickpeterse> much like how MonitorMixin works
<jhass> puppeh_: check MonitorMixin
symm- has quit [Ping timeout: 272 seconds]
<puppeh_> my thought would be saving in the mutex like this: `module Foo; FOO_MUTEX = Mutex.new; end`
<jhass> puppeh_: also consider if you can't use composition instead of inheritance here, make your module a class and have your other class delegate to it
dagda1 has quit [Ping timeout: 244 seconds]
maia has left #ruby [#ruby]
zenguy_pc2 has quit [Ping timeout: 260 seconds]
Kallis has joined #ruby
<puppeh_> and everywhere I call `Foo.foobar` I'd do instead `Foo::FOO_MUTEX.synchronize { Foo.foobar }`
axisys has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
<jhass> ?
<puppeh_> wouuldn't that be fine also?
<jhass> so you actually have a singleton?
skyofdwarf has quit [Client Quit]
<jhass> you don't even include your module anywhere?
<puppeh_> yes I don't
<puppeh_> *no I don't
<puppeh_> I probably should have said that from the beginning..
banister has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
dagda1 has joined #ruby
jeadre has quit [Remote host closed the connection]
Meow-J has quit [Quit: Connection closed for inactivity]
einarj has quit [Ping timeout: 250 seconds]
jeadre has joined #ruby
einarj has joined #ruby
<puppeh_> jhass: what do you think? /cc apeiros yorickpeterse
<puppeh_> does that make sense?
<jhass> no, use a singleton
<jhass> &ri Singleton
<puppeh_> let's assume that I can't change the module for some reason
i8igmac has quit [Ping timeout: 260 seconds]
<jhass> I won't unless you give pretty good reason
Musashi007 has joined #ruby
carglass-rep_ has quit [Quit: carglass-rep_]
<puppeh_> it's a veeery breaking change in a very large software
<puppeh_> the module is a top-level namespace of a gem
<jhass> not really, just define delegators on the class level
<puppeh_> it contains a dozen other methods and subclasses etc.
<jhass> extract to a new class and leave the old methods as delegators
SCHAAP137 has joined #ruby
<puppeh_> what's the advantage of usign a singleton?
<yorickpeterse> puppeh_: using the constant form like that means that every class including the module will use the same mutex
Kallis has quit [Ping timeout: 260 seconds]
<jhass> you can store and setup state in a sane manner
bubbys has joined #ruby
<yorickpeterse> thus it becomes a global lock
kr3ssh has joined #ruby
<jhass> yorickpeterse: read up, it's never included
<puppeh_> OK, that's what I want then
<yorickpeterse> Then it's still a global lock
<puppeh_> I want only 1 thing to be running the "foobar" command at a time
<puppeh_> ever.
<jhass> yorickpeterse: I think that's wanted
<yorickpeterse> ah
<yorickpeterse> Yeah then you can just stuff it in a constant
<jhass> and update all callers, -1
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nux443 has quit [Ping timeout: 265 seconds]
b44 has quit [Remote host closed the connection]
<puppeh_> what about the 2nd solution in my pastie?
<gizmore> my problem are too many filedescriptors due to lots of logfiles ... thanks :)
<puppeh_> that wouldn't require to update anything
Kallis has joined #ruby
arup_r has quit [Quit: Leaving]
jgt has quit [Ping timeout: 255 seconds]
siemprefresco has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axisys has joined #ruby
zenguy_pc2 has joined #ruby
symm- has joined #ruby
Musashi007 has quit [Quit: Musashi007]
dionysus69 has quit [Remote host closed the connection]
puppeh__ has joined #ruby
xet7_ has quit [Ping timeout: 252 seconds]
gwl_ has joined #ruby
gwl_ has left #ruby [#ruby]
<puppeh__> jhass: aha I see
<puppeh__> jhass: will study this, thanks for your time
puppeh_ has quit [Ping timeout: 255 seconds]
nux443 has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
nux443 has quit [Ping timeout: 245 seconds]
tmtwd has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
DeezNuts has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
einarj_ has joined #ruby
elton has joined #ruby
einarj has quit [Ping timeout: 250 seconds]
pranny has quit [Remote host closed the connection]
piros has joined #ruby
einarj has joined #ruby
einarj_ has quit [Ping timeout: 244 seconds]
hmsimha__ has joined #ruby
nux443 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Silox| has quit [Quit: Connection closed for inactivity]
<apeiros> hm, ok, pg array support in sequel is nice
rodfersou has joined #ruby
saddad has joined #ruby
<yorickpeterse> apeiros: yeah, it has really good Pg support
Musashi007 has joined #ruby
<yorickpeterse> either out of the box or via the various extensions
xxneolithicxx has joined #ruby
<apeiros> though, atm fiddling with how to do a query to test whether a value is in the array. also worried about performance (no idea how to properly index that thing :D)
xxneolithicxx has quit [Max SendQ exceeded]
davedev24 has quit []
<yorickpeterse> You can use GIN indexes on arrays
<yorickpeterse> works pretty well
hmsimha_ has quit [Ping timeout: 265 seconds]
DLSteve has quit [Quit: Leaving]
Meow-J has joined #ruby
lucyinthesky has joined #ruby
davedev24 has joined #ruby
DLSteve has joined #ruby
davedev24 has quit [Client Quit]
dopamean_ has quit [Ping timeout: 256 seconds]
nux443 has quit [Ping timeout: 260 seconds]
fgo has joined #ruby
nux443 has joined #ruby
bap1313 has quit [Ping timeout: 256 seconds]
eminencehc has joined #ruby
finisherr has joined #ruby
finisherr has quit [Client Quit]
fgo has quit [Ping timeout: 255 seconds]
user1138 has joined #ruby
nux443 has quit [Remote host closed the connection]
nux443 has joined #ruby
devbug has joined #ruby
finisherr has joined #ruby
scroff has quit [Quit: WeeChat 0.4.2]
khebbie has quit [Remote host closed the connection]
abyss has quit [Ping timeout: 250 seconds]
jeadre has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
christiandsg has joined #ruby
nux443 has quit [Ping timeout: 260 seconds]
abyss has joined #ruby
jeadre has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
lucyinthesky has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qba73_ has joined #ruby
saddad has quit [Quit: WeeChat 1.3-dev]
malconis has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
einarj has quit [Ping timeout: 244 seconds]
einarj has joined #ruby
nux443 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
davedev24 has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
postmodern has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
piros has quit [Quit: leaving]
dimasg has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Remote host closed the connection]
al2o3-cr has quit [Quit: WeeChat 1.3]
cornerma1 has joined #ruby
michael_mbp has quit [Excess Flood]
nux443 has quit [Ping timeout: 272 seconds]
al2o3-cr has joined #ruby
ta has joined #ruby
hotpancakes has joined #ruby
AlexRussia_ has quit [Ping timeout: 250 seconds]
nux443 has joined #ruby
JoshGlzBrk has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
einarj has joined #ruby
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
qba73_ has quit []
michael_mbp has joined #ruby
sldkjfsldkjf has joined #ruby
Musashi007 has quit [Quit: Musashi007]
saddad has joined #ruby
finisherr has left #ruby [#ruby]
Caius has quit [Ping timeout: 256 seconds]
yeticry has quit [Read error: Connection reset by peer]
frem has joined #ruby
vF3hNGxc47h8 has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
yeticry has joined #ruby
Caius has joined #ruby
Caius has joined #ruby
decoponyo has quit [Ping timeout: 260 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sldkjfsldkjf has quit [Quit: Ex-Chat]
rbowlby has joined #ruby
rodfersou has quit [Quit: leaving]
davedev24 has quit []
yardenbar has quit [Quit: Leaving]
einarj has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
arashb has joined #ruby
war_pigs has quit [Quit: later... computer is sleeping]
darwingr has joined #ruby
ta has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 260 seconds]
davedev24 has joined #ruby
FernandoBasso has quit [Quit: May the force be with you.]
matchaw has joined #ruby
mhib has quit [Remote host closed the connection]
banister has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dimasg has joined #ruby
JohnBat26 has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
atomical has joined #ruby
j_mcnall_ has joined #ruby
davedev24 has quit []
segmond has quit [Disconnected by services]
seggy is now known as segmond
fedexo has quit [Ping timeout: 246 seconds]
seggy has joined #ruby
j_mcnally has quit [Ping timeout: 255 seconds]
dagda1_ has joined #ruby
fgo has joined #ruby
fullofcaffeine has joined #ruby
beef-wellington has joined #ruby
seggy has quit [Client Quit]
mrtg9970 has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
xhosae has joined #ruby
dimasg has quit [Ping timeout: 260 seconds]
beef-wellington has quit [Ping timeout: 256 seconds]
choke has joined #ruby
davedev24 has joined #ruby
davedev24 has quit [Client Quit]
nofxx has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
christiandsg has joined #ruby
mrtg9970 has quit [Quit: leaving]
davedev24 has joined #ruby
rbowlby has quit []
DLSteve has quit [Quit: Leaving]
IrishGringo has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
zenguy_pc2 has quit [Ping timeout: 246 seconds]
[k- has quit [Ping timeout: 240 seconds]
christiandsg has quit [Remote host closed the connection]
Rickmasta has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
Jackneill has quit [Remote host closed the connection]
vF3hNGxc47h8 has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 260 seconds]
kith has quit [Quit: kith]
mrtg9970 has joined #ruby
mrtg9970 has quit [Client Quit]
mrtg9970 has joined #ruby
grotewold has quit [Quit: Textual IRC Client: www.textualapp.com]
einarj has quit [Ping timeout: 250 seconds]
darwingr has left #ruby ["bye bye"]
darwingr has joined #ruby
einarj has joined #ruby
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
decoponyo has joined #ruby
Blaguvest has quit []
zenguy_pc2 has joined #ruby
Musashi007 has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc2 has quit [Read error: Connection reset by peer]
mrtg9970 has quit [Quit: WeeChat 1.3]
nug has joined #ruby
decoponio has quit [Ping timeout: 255 seconds]
ta has joined #ruby
casadei_ has quit []
_blizzy_ has joined #ruby
xhosae has quit []
zenguy_pc has joined #ruby
ta has quit [Ping timeout: 252 seconds]
iateadonut has quit [Quit: Leaving.]
ecksit has joined #ruby
Musashi007 has quit [Quit: Musashi007]
ecksit has quit [Client Quit]
_blizzy_ has quit [Read error: Connection reset by peer]
noethics has joined #ruby
miguelff has joined #ruby
Rutix has quit []
miguelff has left #ruby [#ruby]
miguelff has joined #ruby
_blizzy_ has joined #ruby
miguelff has left #ruby [#ruby]
kith has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
jgt has joined #ruby
Vile` has joined #ruby
twistedpixels has quit [Ping timeout: 250 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
symm- has quit [Quit: Leaving...]
NeverDie has joined #ruby
SCHAAP137 has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
Timba-as has joined #ruby
xxneolithicxx has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xxneolithicxx has quit [Max SendQ exceeded]
NeverDie has quit [Client Quit]
Timba-as has quit [Client Quit]
doublemalt__ has joined #ruby
iamninja has quit [Ping timeout: 240 seconds]
doublemalt_ has quit [Ping timeout: 252 seconds]
daynaskully has joined #ruby
daynaskully is now known as Guest70236
Meow-J has quit [Quit: Connection closed for inactivity]
davedev24 has quit []
fgo has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<darix> apeiros: you can also use the jsonb type
SCHAAP137 has joined #ruby
<apeiros> darix: I know, but that allows for quite a lot of things and I prefer to be narrow.
<apeiros> I could also use hstore or an xml column :)
eminencehc has quit [Remote host closed the connection]
dimasg has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
Motoservo has joined #ruby
mgorbach has quit [Ping timeout: 255 seconds]
<shevy> yay for XML!
<shevy> without looking at the implementation
<shevy> div.entry do
<shevy> this becomes
<shevy> <div class="entry">
<shevy> that is done via method_missing() or?
<shevy> if so then I wonder whether that is good or bad... it scares me a little for sure
mgorbach has joined #ruby
<shevy> ewww XML
<Ox0dea> This guy.
<adaedra> <shevy> yay for XML!
<adaedra> <shevy> ewww XML
<adaedra> make up your mind.
<shevy> ewwww adaedra
<adaedra> ?adaedra shevy
<ruboto> shevy, don't be mean to adaedra
<shevy> yay for adaedra!
<shevy> lol
<shevy> "IDs may be added by the use of bang methods:"
<shevy> div.page! {
<shevy> <div id="page">
<shevy> hmmm
keen___________0 has joined #ruby
keen____________ has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Read error: Connection reset by peer]
eminencehc has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
ta has joined #ruby
mgorbach has quit [Ping timeout: 256 seconds]
dgutierrez1287 has joined #ruby
mgorbach has joined #ruby
Musashi007 has quit [Quit: Musashi007]
grotewold has joined #ruby
ta has quit [Ping timeout: 256 seconds]
Musashi007 has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
TomyLobo has quit [Ping timeout: 250 seconds]
christiandsg has quit [Ping timeout: 265 seconds]
jraisanen has quit []
hotpancakes has quit [Remote host closed the connection]
<dorei> >> x = Object.new ; var = 'x' ; val = eval("#{var}") ; eval("#{var} = #{val}")
<ruboto> dorei # => (eval):1: syntax error, unexpected end-of-input ...check link for more (https://eval.in/420828)
yqt has joined #ruby
millerti has quit [Read error: Connection reset by peer]
<dorei> any idea how to fix this?
<jhass> don't eval
<dorei> can I dynamically create local variables without eval?
<jhass> no and you never should
<apeiros> no
<jhass> use a hash
<apeiros> and you can't with eval either
Musashi007 has quit [Quit: Musashi007]
Rutix has joined #ruby
Rutix has joined #ruby
hotpancakes has joined #ruby
<apeiros> or to be precise: you can only create an lvar if all further code is eval'ed too, and on the same binding instance.
t0d0r has joined #ruby
davedev24 has joined #ruby
malconis has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> the only exception to jhass' "you never should" is IMO template engines.
vondruch has quit [Ping timeout: 252 seconds]
t0d0r has left #ruby [#ruby]
<jhass> and even there I often wish we had a bigger focus on non-evaling ones
puppeh__ has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
einarj_ has joined #ruby
einarj has quit [Ping timeout: 260 seconds]
<dorei> >> x = 5 ; out_var = 'x' ; in_var = 'y' ; val = eval("#{out_var}") ; eval("#{in_var} = #{val} ; puts #{in_var}")
<ruboto> dorei # => 5 ...check link for more (https://eval.in/420837)
<dorei> can this be made to work for arbritary x ?
eminencehc has quit [Remote host closed the connection]
<Ox0dea> dorei: Stahp.
kr3ssh has quit [Ping timeout: 245 seconds]
mgorbach has quit [Ping timeout: 240 seconds]
kirun has quit [Quit: Client exiting]
<apeiros> I think talking to walls makes more sense.
Azure|dc has joined #ruby
mgorbach has joined #ruby
<dorei> u're killing my creativity :(
Azure has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
<apeiros> dorei: I already answered your question, though.
<apeiros> 01:02 apeiros: or to be precise: you can only create an lvar if all further code is eval'ed too, and on the same binding instance.
Vile` has quit [Ping timeout: 272 seconds]
<dorei> apeiros: yeap, i've followed your advice :)
choke has joined #ruby
<shevy> long live eval! I am rooting for dorei!
<dorei> apeiros: you made me totally aware that i cant access it outside the eval string :)
Vile` has joined #ruby
<shevy> wouldn't you rather like to be able to access it outside the eval string?
<shevy> perhaps you can do some dark magic with binding
<dorei> shevy: u cant dynamically create local variables :(
<dorei> shevy: apeiros summed it up nicely
<shevy> I am sure they must reside somewhere
<shevy> we once had evil.rb
<dorei> evil.rb?
tmtwd has quit [Ping timeout: 252 seconds]
Azure|dc is now known as Azure
<apeiros> shevy: any sane language does not internally use the names of lvars
<apeiros> that's way too slow
<Ox0dea> Even binding_of_caller can't introduce new locals.
monsieur1 has joined #ruby
monsieur1 has quit [Client Quit]
davedev24 has quit []
<Ox0dea> It can modify existing ones virtually anywhere, though.
<shevy> look at the beauty
<shevy> T_TRUE = 0x20
<shevy> now we are like 0x0dea
<shevy> the Ox
hmsimha__ has quit [Ping timeout: 265 seconds]
<Ox0dea> >> true.__id__
<ruboto> Ox0dea # => 2 (https://eval.in/420840)
<Psi-Jack> Well, now then.. I understand a basic concept of how to setup a class object to handle running and stopping a thread. :D
crdpink has joined #ruby
<Psi-Jack> Without blocking the current running thread. ;)
crdpink2 has quit [Ping timeout: 246 seconds]
The_Phoenix has joined #ruby
einarj_ has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
TheMysticWyvern has quit [Read error: Connection reset by peer]
einarj has joined #ruby
bruno- has joined #ruby
djbkd has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCHAAP137 has quit [Quit: Leaving]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dimasg has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
_blizzy_ has quit [Ping timeout: 255 seconds]
Feyn has joined #ruby
dimasg has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has joined #ruby
lucyinthesky has joined #ruby
lucyinthesky has left #ruby [#ruby]
exadeci has quit [Quit: Connection closed for inactivity]
eminencehc has joined #ruby
jeadre has quit [Remote host closed the connection]
_blizzy_ has joined #ruby
jeadre has joined #ruby
chipotle has joined #ruby
jtdoncas has joined #ruby
_ht has quit [Quit: Konversation terminated!]
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
veduardo has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
dopie has quit [Read error: Connection reset by peer]
dopie has joined #ruby
devbug has quit [Ping timeout: 245 seconds]
dopie has quit [Remote host closed the connection]
I has joined #ruby
I is now known as Guest66749
devbug has joined #ruby
zenguy_pc has quit [Ping timeout: 255 seconds]
nettoweb has joined #ruby
_blizzy_ has joined #ruby
isene has left #ruby [#ruby]
ishahnaz has quit []
al2o3-cr has quit [Quit: WeeChat 1.3]
Guest66749 has quit [Client Quit]
al2o3-cr has joined #ruby
christiandsg has joined #ruby
davedev24 has quit []
ecksit has joined #ruby
dopie has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
lucyinthesky has joined #ruby
workmad3 has joined #ruby
davedev24 has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]