jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dfockler has quit [Remote host closed the connection]
senayar has joined #ruby
bullcitydev has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mcclurmc_ has quit [Remote host closed the connection]
karpuragauram has quit [Quit: Leaving]
Pupeno has quit [Remote host closed the connection]
vivekananda has joined #ruby
yokel has quit [Ping timeout: 252 seconds]
mr_rich101 has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
karols has joined #ruby
sevenseacat has joined #ruby
karols has quit [Max SendQ exceeded]
senayar has quit [Ping timeout: 255 seconds]
CloCkWeRX has joined #ruby
CloCkWeRX has left #ruby [#ruby]
karols has joined #ruby
charliesome has quit [Client Quit]
dorei has quit []
oo_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
enebo has quit [Quit: enebo]
ItSANgo_ has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
Vile` has quit [Read error: Connection reset by peer]
gkra_ has joined #ruby
startupality has quit [Quit: startupality]
hrendalf has joined #ruby
nobitanobi has quit [Remote host closed the connection]
djbkd has joined #ruby
charliesome has joined #ruby
jtdoncas has joined #ruby
gkra has quit [Read error: Connection reset by peer]
djbkd has quit [Read error: Connection reset by peer]
Renich has quit [Quit: Lost terminal]
jtdoncas has quit [Client Quit]
JDiPierro has joined #ruby
djbkd has joined #ruby
Billias has quit [Ping timeout: 246 seconds]
jtdoncas has joined #ruby
JimmyNeutron has quit [Read error: Connection reset by peer]
charliesome has quit [Client Quit]
Billias has joined #ruby
hrendalf has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
Vile` has joined #ruby
FifthWall_ is now known as FifthWall
gambl0re has quit [Ping timeout: 255 seconds]
nobitanobi has joined #ruby
Pupeno has joined #ruby
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
Muhannad has joined #ruby
SatanicSanta has joined #ruby
Oka has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mister_solo has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
kfpratt has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Ping timeout: 246 seconds]
podman has quit [Quit: Connection closed for inactivity]
nobitanobi has quit [Remote host closed the connection]
aryaching has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
warreng has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
sharpmachine has quit [Remote host closed the connection]
kfpratt has joined #ruby
Ankhers has quit [Ping timeout: 256 seconds]
Chef has joined #ruby
<SatanicSanta> So I am currently trying to use Wikimedia's MediaWiki Ruby API to edit a page. I've spent a while trying to figure out why, but for some reason the get_token method that is called by the edit method is undefined. Here's the full console log https://gist.github.com/elifoster/e6891791a8035f081253 and all the code is here https://github.com/elifoster/SatanicBot/tree/master/src/ruby
laurentide has joined #ruby
<SatanicSanta> I am also asking this in #mediawiki
humd1ng3r has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
tno has quit [Remote host closed the connection]
poguez_ has quit [Quit: Connection closed for inactivity]
musty has quit [Ping timeout: 256 seconds]
rgs has quit [Ping timeout: 264 seconds]
rcvalle has quit [Quit: rcvalle]
Chef has quit [Client Quit]
rgs has joined #ruby
warreng has joined #ruby
andywojo has joined #ruby
zacstewa_ has joined #ruby
Chef has joined #ruby
musty has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
humd1ng3r has joined #ruby
lele has quit [Ping timeout: 252 seconds]
Chef has quit [Client Quit]
hahuang65 has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
pengin has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Chef has joined #ruby
Indian has joined #ruby
gkra_ is now known as gkra
zacstewa_ has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 248 seconds]
Ankhers has joined #ruby
casadei_ has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
skade has quit [Read error: Connection reset by peer]
aamador has quit [Ping timeout: 255 seconds]
skade has joined #ruby
lele has joined #ruby
<_blizzy_> is there a way to get a list of classes a module is included in?
drewo has quit [Ping timeout: 264 seconds]
Mekkis_ has quit [Quit: ZNC - http://znc.in]
<_blizzy_> nvm.
pothibo has joined #ruby
havenwood has joined #ruby
mcclurmc has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Oka has joined #ruby
Maka has joined #ruby
mcclurmc has joined #ruby
mcclurmc has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karols has quit []
Akagi201 has joined #ruby
oo_ has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
Aswebb_ has joined #ruby
hotpancakes has joined #ruby
amclain has joined #ruby
baweaver has joined #ruby
Ox0dea has joined #ruby
<Ox0dea> _blizzy_: Did you end up using ObjectSpace?
zendrix has quit [Ping timeout: 265 seconds]
<_blizzy_> Ox0dea, yes.
jud^ is now known as jud
<Ox0dea> Just making sure there wasn't some better way yet.
jud has quit [Changing host]
jud has joined #ruby
yokel has joined #ruby
Agoldfish has quit [Read error: Connection reset by peer]
<Ox0dea> _blizzy_: Well, do you know about Module#included/#extended?
<SatanicSanta> Nevermind about my last two messages, turns out it's a bug on MediaWiki's end.
SatanicSanta has left #ruby ["swerve"]
<_blizzy_> Ox0dea, yes.
<_blizzy_> that's what I'm using actually, and I have a question about that too.
jaygen has joined #ruby
<_blizzy_> let me gist
hotpancakes has quit [Ping timeout: 255 seconds]
vasilakisfil_ has quit [Ping timeout: 256 seconds]
Aswebb_ has quit [Ping timeout: 264 seconds]
rubie has quit [Remote host closed the connection]
<sevenseacat> I sense this may not be a good use of ObjectSpace
<_blizzy_> may anyone help me figure out why I'm getting undefined method 'match' ? https://gist.github.com/NotBlizzard/76907730d1da92f2977c
bricker has quit [Quit: leaving]
<_blizzy_> I'm making a Plugin system, so I need to be able to get a list of classes the module is included in.
zacstewart has joined #ruby
<sevenseacat> err, why
aryaching has quit [Ping timeout: 256 seconds]
<_blizzy_> reasons.
<Ox0dea> sevenseacat: The ObjectSpace approach is only necessary if you need the list of classes that mix in some core module.
<sevenseacat> oh, reasons.
juanpablo_ has joined #ruby
meph has joined #ruby
dseitz has joined #ruby
<_blizzy_> but anyway, why am I getting that 'match' is undefined?
<Ox0dea> _blizzy_: Explain what Line 7 is doing.
NeverDie has joined #ruby
<sevenseacat> because you're calling an instance method from a class.
<_blizzy_> Ox0dea, if the value is nil, then make it an array, else, make it its previous values
<Ox0dea> No.
<Diabolik> from a programming perspective
<Diabolik> why are websites unable to deal with the leap second
<_blizzy_> Ox0dea, oh, then what is it?
<Ox0dea> _blizzy_: [] is always "true".
jeanlinu_ has quit [Ping timeout: 246 seconds]
<_blizzy_> Ox0dea, so what should I use then?
<Ox0dea> Your brain.
<sevenseacat> oh snap
<_blizzy_> thxs.
<Diabolik> rekt
<_blizzy_> that was very insightful.
<_blizzy_> :)
<_blizzy_> well, thanks, sevenseacat
<sevenseacat> he gave you a detailed critique of exactly what that line of code wont do what you expect
<sevenseacat> *exactly why
<_blizzy_> then I asked what should I use instead then.
<sevenseacat> _blizzy_: think about it.
<_blizzy_> IDK then. :/
juanpablo_ has quit [Ping timeout: 244 seconds]
<sevenseacat> match up your description of what the line should do, and his definition of what the line actually does.
scripore has quit [Remote host closed the connection]
<_blizzy_> so I should just switch the [] and @classes around
<sevenseacat> see when you think, possible solutions come out!
FernandoBasso has quit [Quit: WeeChat 1.2]
nobitanobi has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
freerobby has joined #ruby
lolmaus has joined #ruby
<_blizzy_> hate it when my comp lags. damn windows.
zacstewa_ has joined #ruby
zacstewart has quit [Ping timeout: 244 seconds]
juanca_ has joined #ruby
<Ox0dea> baweaver: I did another one.
Muhannad has quit [Ping timeout: 264 seconds]
<sevenseacat> oh this will be good.
<Ox0dea> It's... pretty wonky.
<baweaver> fair warning, still at work, so definitely slower on the draw here.
<Ox0dea> >> $_=(@_=[*?`..?{][(_=$$/$$)..-_-_]*'')=~/$/;(@__=->_,___,__=''{__<<@_[(___+(@_=~/#{_[$.]}/))%$_];_[$.+=$_/$_]?@__[_,___,__]:__})['ganjah', 4]
<ruboto> Ox0dea # => "kernel" (https://eval.in/390144)
charliesome has joined #ruby
<slash_nick> _blizzy_: shhh, they'll ban you for using windows
kfpratt has quit [Read error: Connection reset by peer]
<_blizzy_> slash_nick, lol.
bronson has quit [Ping timeout: 272 seconds]
kfpratt has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
<sevenseacat> :o its a caesar cypher?
<Ox0dea> Nailed it.
bf4 has quit [Ping timeout: 272 seconds]
<sevenseacat> awesome :D
<Ox0dea> It's a lot shorter than I'd expected it to be.
<ght> Question: Does anyone have a single example of calling any method from any XMLRPC-based OAuth2 provider using XMLRPC::Client?
GPrime has joined #ruby
oo_ has quit [Remote host closed the connection]
<ght> We've been calling XMLRPC-based API providers for years using XMLRPC::Client.new2(), but those were all using classic APIs, not OAuth2 APIs.
<ght> From this provider, we can reteive the "code" on user authorization, use RestClient to retreive an access_token using the code, and use RestClient again to update the access_token, utilizing refresh_token
jas02 has quit [Ping timeout: 276 seconds]
<baweaver> I'll grok later when I get home
_blizzy_ has quit [Read error: Connection reset by peer]
<ght> But with a known-good working access_token, we cannot call any XMLPRC-based method successfully. RestClient wants to pass the paramaters as a hash no matter what options we set, and XMLRPC::Client.new() or .new2() always fail with "premature end of file" on the .call() statement
nfk has quit [Quit: yawn]
enebo has joined #ruby
nobitanobi has joined #ruby
bruno- has joined #ruby
meph has quit [Quit: Leaving.]
mcclurmc has joined #ruby
_blizzy_ has joined #ruby
oo_ has joined #ruby
zacstewa_ has quit [Remote host closed the connection]
ninja-maid-robot has quit [Quit: brb everynyan]
yqt has quit [Ping timeout: 255 seconds]
<meatchicken> if I'm in a method call within a block, can I access the block within that method?
<Ox0dea> meatchicken: There are numerous ways to do so.
<Ox0dea> You can explicitly declare the method to take a block by prefixing the last parameter with an ampersand.
<Ox0dea> And then you just refer to it by name within the method.
howdoicomputer has joined #ruby
pothibo has quit [Quit: pothibo]
<Ox0dea> Alternately, `proc` and `Proc.new`, when called without providing an explicit block, will instead use the one passed into the method.
<slash_nick> Ox0dea: i interpreted that as more like something do; method_call; end.... inside of def method_call, can I access the "something" block?
aamador has joined #ruby
<meatchicken> slash_nick, that's what I meant
<Ox0dea> Oh, I see.
<meatchicken> thanks Ox0dea though
juanca_ has quit [Remote host closed the connection]
<slash_nick> meatchicken: why don't you pass what you need from the block to the method?
<meatchicken> reason being -> I want to grab the binding of the block inside the method
<slash_nick> if the method depends on something from the block, inject said dependency
juanca_ has joined #ruby
drewo has joined #ruby
Mekkis has joined #ruby
<meatchicken> I'll give that a shot - I had reasons for not passing the stuff I need explicitly to the method though
bruno- has quit [Ping timeout: 248 seconds]
<meatchicken> thanks folks
oo_ has quit [Ping timeout: 256 seconds]
<slash_nick> meatchicken: i guess it's a pre-existing method and you don't want to change it if you don't need to?
ninja-maid-robot has joined #ruby
<meatchicken> slash_nick, messing around with creating a gem, I don't want the user to have to pass in the dependency manually
Brom has joined #ruby
hunt3r has quit []
oo_ has joined #ruby
weemsledeux has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
Muhannad has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
_blizzy_ has joined #ruby
<Ox0dea> meatchicken: Um... you could use ObjectSpace?
CorySimmons has joined #ruby
<Ox0dea> Definitely overkill, though. It'd be better to restructure the API such that you don't need access to a block from within itself.
renderful has joined #ruby
dkphenom has joined #ruby
aryaching has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<slash_nick> meatchicken: it's kinda hard to picture what you're up to...
hunt3r has joined #ruby
<Ox0dea> ?xy
<ruboto> it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
towski_ has quit [Remote host closed the connection]
<Ox0dea> Sorry, I didn't remember it being that condescending.
renderful has quit [Ping timeout: 244 seconds]
howdoicomputer has quit [Ping timeout: 276 seconds]
oo_ has joined #ruby
<slash_nick> Ox0dea: happens to me all the time with "helpa" in ror
<sevenseacat> its truthful though.
<sevenseacat> how would you reword it?
<slash_nick> if there's a friendly version and a rude version, i happen to pick the rude one
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
<slash_nick> although, that wasn't too condescending at all
aamador has quit [Ping timeout: 276 seconds]
rails480 has joined #ruby
phutchins1 has joined #ruby
stardiviner has joined #ruby
rubie has joined #ruby
djbkd has quit [Remote host closed the connection]
juanca_ has quit [Remote host closed the connection]
djbkd has joined #ruby
skade has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
<bonhoeffer> anyone know how to use the ruby driver to delete a record with mongo
<bonhoeffer> i.e. Mongo::Client.new(‘…)[“entries”].find.first.remove <— doesn’t work
rails480 has quit [Client Quit]
<bonhoeffer> the standard way is to operate on a Mongo::Collection::View
CorySimmons has quit [Quit: Bye!]
<bonhoeffer> like: result = artists.find(:name => 'Björk').delete_one
<bonhoeffer> but i want artists.find.first.delete_one
bf4 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
juanca_ has joined #ruby
enebo has quit [Quit: enebo]
dfockler has joined #ruby
knite has quit [Quit: knite]
<bonhoeffer> yes — check it . . . i should have looked at the source: coll.remove(empty_doc)
moeSeth has quit [Quit: Connection closed for inactivity]
<bonhoeffer> so you would do artists.remove(artists.find.first)
<bonhoeffer> doesn’t seem clean — but works
rbennacer has joined #ruby
<bonhoeffer> thanks slash_nick
bayed has quit [Quit: Connection closed for inactivity]
dfockler has quit [Ping timeout: 272 seconds]
symm- has quit [Ping timeout: 248 seconds]
<slash_nick> no problem...glad it helped
baweaver has quit [Remote host closed the connection]
drewo has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
djbkd has quit [Remote host closed the connection]
delianid_ has quit []
sharpmachine has joined #ruby
Maka has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
iwaffles has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
<demophoon> When saving a hash as yaml out to disk is there anything that I can do to stop the built-in yaml deserializer from converting symbols (and other ruby objects) to !ruby/sym key: value?
fabrice31 has quit [Ping timeout: 252 seconds]
Mekkis has joined #ruby
<slash_nick> demophoon: what is "!ruby/sym key: value"?
rbennacer has quit [Remote host closed the connection]
* demophoon creating a gist with repro.. one moment slash_nick
sharpmachine has quit [Ping timeout: 246 seconds]
<slash_nick> my laptop will die in a moment, but it'll help someone else to help ya out
juanpablo_ has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
kfpratt has quit [Read error: Connection reset by peer]
Mekkis has quit [Client Quit]
<Ox0dea> demophoon: What would you like it to do instead?
kfpratt has joined #ruby
<Ox0dea> Stringify everything?
<demophoon> Ox0dea: yes, stringify works
lessless has joined #ruby
<Ox0dea> demophoon: Really?
Spami has quit [Quit: This computer has gone to sleep]
<ght> Question: No matter what I set my content_type header to in my RestClient.post statement, it is assing the parameters as a hash. I am attempting to interact with an XMLRPC API endpoint.
<ght> Anyone know how to force plaintext passing of parameters in RestClient?
tuelz has joined #ruby
<ght> I have tried a content_type of xml, 'application/xml', text
<demophoon> sure? except i don't want to have to iterate through a massive object to stringify all the keys that might be symbols or other things. i didn't know if there was a flag i could pass into the yaml deserializer to stop it from doing the conversion
<ght> I have restclient verbose logging enabled so I can see what its passing
mary5030 has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
<ght> It's passing them like this: params[limit]=1000&params[page]=0
<tuelz> I have an array of string and I want to match a regex against those strings and return true if any matches, whats the cleanest way I can do that
Mekkis has joined #ruby
<Ox0dea> >> %w[foo bar baz].any? { |word| word[/ba/] }
<ruboto> Ox0dea # => true (https://eval.in/390145)
<Ox0dea> tuelz: ^
<tuelz> or a clean way, don't care if it's the cleanest, just figured ruby had a magic method for this
<tuelz> Ox0dea: thanks!
<Ox0dea> tuelz: You'll be able to write `array.any?(/regex/)` if https://bugs.ruby-lang.org/issues/11286 gets accepted.
<havenwood> Ox0dea: \o/
postmodern has quit [Quit: Leaving]
Mekkis has quit [Client Quit]
<Ox0dea> I don't think it will, though. :/
<havenwood> Ox0dea: no?
<havenwood> Merge it!
<Ox0dea> I think it's really nice.
<Ox0dea> The sequence predicates are already awesome, but being able to combine them with case equality is just <3.
daynaskully has quit [Quit: quit]
<Ox0dea> nobu doesn't seem to agree. :/
<axisys> how do I get a list of all unix env variables that ruby know? like ENV['USER']
scruple has quit [Ping timeout: 265 seconds]
<tuelz> is it possible to interpolate inside %w[]?
<Ox0dea> tuelz: You need %W.
kfpratt has quit [Read error: Connection reset by peer]
<tuelz> ahh, of course, thanks
<Ox0dea> axisys: >> ENV.keys
Mekkis has joined #ruby
<sevenseacat> Ox0dea: seems people like the idea of your patch
weemsledeux has quit [Ping timeout: 264 seconds]
<axisys> Ox0dea: sweet! thanks
kfpratt has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emptyflask has joined #ruby
bonhoeffer has quit [Read error: Connection reset by peer]
bonhoeffer has joined #ruby
<Ox0dea> sevenseacat: It has its proponents, to be sure, but matz has ignored his being assigned to it. Hopefully nobu is just waiting for matz to chime in on it.
gambl0re has joined #ruby
ivanskie has joined #ruby
freerobby has quit [Quit: Leaving.]
sarkyniin has quit [Read error: Connection reset by peer]
<Ox0dea> demophoon: Serialization is about being able to faithfully restore the thing later. Why have special keys if you'll only be able to get them as a string at the other end?
yayfoxes_ has joined #ruby
sarkyniin has joined #ruby
<axisys> which ruby ENV key holds the username of `who am i`? it does not change with sudo su -
<yayfoxes_> whoops
<eam> axisys: which kind of unix are you on?
<demophoon> Ox0dea: Because i'm reading and saving configuration files using ruby just to modify the content for another application that doesn't know how to read !ruby/sym in the saved file
<axisys> eam: linux
<eam> it should change, then
<Ox0dea> axisys: ENV['SUDO_USER'] looks to be the one you want.
<axisys> may be sudoers file prevents the change with
<axisys> Defaults env_reset
zacstewart has joined #ruby
<axisys> eam: ^
Mekkis has quit [Quit: ZNC - http://znc.in]
<eam> axisys: yes
<axisys> Ox0dea: I wanted to run it as a user or through sudo..
Mekkis has joined #ruby
<axisys> Ox0dea: when run as user SUDO_USER will be missing..
<Ox0dea> axisys: At which point you can fallback to USER?
<eam> Ox0dea: SUDO_USER isn't read by whoami
joshbamboo1 has joined #ruby
<eam> and USER is reset by su -
<eam> you have something funny going on, I think
<axisys> ENV['SUDO_USER'].nil? ENV['USER'] <-- like this?
<axisys> Ox0dea: ^
<eam> whoami should check the uid, not the environment
devoldmx has joined #ruby
aryaching_ has joined #ruby
<axisys> eam: whoami is not same as who am i
<axisys> eam: mind the space
<eam> oh haha, you're running who
ebbflowgo has quit [Read error: Connection reset by peer]
<axisys> eam: thats true..
<eam> axisys: who checks your terminal
<eam> has nothing to do with either env, nor uid
<axisys> eam: right
ebbflowgo has joined #ruby
<eam> your terminal doesn't change when you sudo / su
tkuchiki_ has quit [Remote host closed the connection]
<eam> your stdout is still connected to a terminal owned by you
<axisys> eam: i guess i can use Ox0dea's logic or call the `who` command from ruby script?
bonhoeffer has quit [Quit: bonhoeffer]
<eam> axisys: let's back up, what problem do you want to solve?
<axisys> i want to keep the user username
hotpancakes has joined #ruby
<axisys> so it prompts for his password when trying to run rvc from a script
<Ox0dea> demophoon: So symbols are the only kind of "special" object that can end up in your hash, no?
<eam> axisys: you mean via sudo?
WildBamboo-Josh has quit [Ping timeout: 276 seconds]
<demophoon> Ox0dea: that i currently know of. i'll eventually be reading in other user configration files with it
<eam> "prompts for his password" via what mechanism?
<axisys> eam: the script does run as either.. since it connects to remote host
<axisys> rvc $username@$vcenter
aryaching has quit [Ping timeout: 276 seconds]
<axisys> so in this case rvc #{username}@#{vcenter}
<stoodfarback> Is the `libv8` gem supposed to take >10 minutes to install?
<Ox0dea> demophoon: How are you reading in the configuration file?
<axisys> converting from bash to ruby script..
<axisys> eam: ^
Deele has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
Mekkis has quit [Quit: ZNC - http://znc.in]
tubuliferous_ has quit [Ping timeout: 252 seconds]
<eam> axisys: you want to approximate the behavior of `who` from ruby, as in knowing the owner of the controlling terminal and not the actual current uid?
<axisys> eam: right
<stoodfarback> "Done installing documentation for libv8 after 0 seconds" ... as if.
<Ox0dea> demophoon: It seems a very simple solution to your problem would be to just use string keys in the first place.
<stoodfarback> Ah, that was for docs.
<eam> >> File.for_fd(0).stat.uid
<ruboto> eam # => 1000 (https://eval.in/390152)
Mekkis has joined #ruby
tkuchiki_ has joined #ruby
<eam> axisys: ^^ that's what `who` does
<demophoon> Ox0dea: i'm just using YAML.load_file
isxek has joined #ruby
<axisys> eam: ok.. let me check it out
digifiv5e has joined #ruby
<eam> you can turn the uid into a username with getpwuid() from etc
digifiv5e is now known as Guest59643
<Ox0dea> demophoon: That returns a hash with string keys unless you're using the special :symbol: syntax in the YAML file.
<Ox0dea> The problem, then, is that you're using symbol keys when updating that hash; just don't do that?
<eam> some more clever implementations will try that operation on fd 0, 1 and 2 (stdin, out and err)
<demophoon> Ox0dea: oh, i guess the configuration file i'm loading in is using the :symbol: syntax :\
<axisys> system("who am i") works
shadoi has quit [Quit: Leaving.]
<axisys> eam: ^
<eam> sure, or you could just put the whole script into there :)
<axisys> eam: I do not want to rely on etc module
<eam> etc is core
<eam> you don't need to install a gem
<axisys> eam: it is?
<axisys> oh ok
Mekkis has quit [Client Quit]
Pupeno has quit [Ping timeout: 256 seconds]
tubuliferous_ has joined #ruby
mcclurmc has quit [Ping timeout: 256 seconds]
Mekkis has joined #ruby
charliesome has quit [Quit: zzz]
<Ox0dea> demophoon: Serialize to JSON, parse the result back into a hash, then seriaize that to YAML?
<demophoon> Ox0dea: anyhow, thanks for the help. I'm going to keep digging.
<demophoon> Ox0dea: ah, i could try that
Guest59643 has quit [Changing host]
Guest59643 has joined #ruby
<Ox0dea> It'll work. JSON doesn't support anything fancy.
dgutierrez1287 has quit [Remote host closed the connection]
Guest59643 is now known as guyz
dgutierrez1287 has joined #ruby
emptyflask has quit [Quit: leaving]
<Ox0dea> It's a little heavy-handed, but not so terrible if you've got deep nesting.
Alayde has quit [Ping timeout: 248 seconds]
mary5030 has quit [Remote host closed the connection]
Mekkis has quit [Client Quit]
<demophoon> Ox0dea: yeah, thats what i'm worried about by doing it any other way. I've got an unknown number of levels that this config file can be. Thanks again :)
<Ox0dea> Happy to help.
gaboesquivel has joined #ruby
oo_ has quit [Remote host closed the connection]
<Ox0dea> It's easy enough to deep-convert a hash's keys to strings, but you might as well take advantage of the fact that JSON provides the semantics for doing so.
<axisys> eam: final version http://dpaste.com/0321YCJ.txt . thanks a lot!
<eam> np!
dgutierrez1287 has quit [Ping timeout: 252 seconds]
Mekkis has joined #ruby
<eam> for_fd is such a weirdly named constructor
<axisys> eam: kind a cryptic, specially for a newbie (me)
<Ox0dea> eam: I can't think of a more reasonable alternative.
<eam> Ox0dea: how about from_fileno
<eam> how about put it into new?
<eam> anything that indicates it takes an integer descriptor and constructs an IO
<Ox0dea> #for_fd does that for me, but all right.
Aswebb_ has joined #ruby
juanca_ has quit [Remote host closed the connection]
<Ox0dea> s/#/./, of course.
jenrzzz has quit [Ping timeout: 256 seconds]
<Ox0dea> You're right that it's not perfectly obvious, but it's sensible enough given that "file descriptor" is pretty standard nomenclature.
phutchins1 has quit [Ping timeout: 246 seconds]
Spami has joined #ruby
<eam> hm actually, is it an alias to new() ?
Spami has quit [Client Quit]
<eam> it looks like it is, I retract my complaint
Spami has joined #ruby
bf4 has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 244 seconds]
Aswebb_ has quit [Ping timeout: 250 seconds]
<eam> oooh, right, and all the useful subclasses don't have that calling convention, I maintain my beef :)
jpfuentes2 has joined #ruby
emptyflask has joined #ruby
RobertBirnie has joined #ruby
<eam> Ox0dea: it's the for vs from that gets me
nyanz has joined #ruby
<eam> and especially with sockets the apis are kinda clumsy, lots of converting descriptors into new class containers
dkphenom has quit [Quit: Textual IRC Client: www.textualapp.com]
nyanz has left #ruby [#ruby]
<Ox0dea> Well, "from" sounds like it would "generate" a File, so to speak, whereas it's the case that it already exists and just needs to be looked up.
iwaffles has quit [Quit: iwaffles]
charliesome has joined #ruby
bf4 has joined #ruby
<Ox0dea> "Create a file from" vs "find the file for".
<eam> I mean, it does generate a file object. It's just not clear to me that the method is a constructor is all
oo_ has joined #ruby
bking39116 has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby
sarkyniin has quit [Ping timeout: 255 seconds]
sharpmachine has joined #ruby
nobitanobi has quit [Remote host closed the connection]
scx_ has joined #ruby
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 248 seconds]
andywojo has quit [Quit: Lost terminal]
scx has quit [Ping timeout: 256 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sharpmachine has quit [Ping timeout: 264 seconds]
noethics has quit [Quit: Leaving]
bking39116 has quit [Ping timeout: 256 seconds]
isxek has quit [Ping timeout: 246 seconds]
braincrash has quit [Quit: bye bye]
noethics has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
noethics has quit [Client Quit]
noethics has joined #ruby
zacstewart has joined #ruby
bruno- has joined #ruby
RobertBirnie has quit [Ping timeout: 265 seconds]
Brom has quit [Quit: Brom]
RobertBirnie has joined #ruby
mcclurmc has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
Channel6 has joined #ruby
braincrash has joined #ruby
charliesome has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
sarkyniin has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ivanskie has joined #ruby
skade has joined #ruby
Indian has quit [Ping timeout: 244 seconds]
mcclurmc has quit [Ping timeout: 256 seconds]
jlast has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
juanca_ has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
arup_r has joined #ruby
havenwood has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frem has joined #ruby
devoldmx has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
zacstewa_ has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
gix has quit [Ping timeout: 276 seconds]
darkf has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
davedev24_ has joined #ruby
gix has joined #ruby
juanca_ has quit []
dented42 has joined #ruby
mcclurmc has joined #ruby
musty has quit [Changing host]
musty has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
josh1 has joined #ruby
josh1 is now known as brain_shim
hotpancakes has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
arescorpio has joined #ruby
emptyflask has quit [Quit: leaving]
zacstewa_ has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
zacstewart has joined #ruby
shadoi has joined #ruby
Marisa has joined #ruby
baweaver has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
gusrub has joined #ruby
juanpablo_ has joined #ruby
scx_ is now known as scx
cashnguns has quit [Remote host closed the connection]
felixrsmith has joined #ruby
felixr has quit [Ping timeout: 256 seconds]
hotpancakes has joined #ruby
pgatt has quit [Quit: Connection closed for inactivity]
Marisa has quit [Ping timeout: 264 seconds]
mcclurmc has joined #ruby
jenrzzz has joined #ruby
djbkd has joined #ruby
juanpablo_ has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 248 seconds]
Ox0dea has quit [Read error: No route to host]
nobitanobi has joined #ruby
yeticry has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Ping timeout: 252 seconds]
Marisa has joined #ruby
sharpmachine has joined #ruby
jeanlinux has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
sharpmachine has quit [Ping timeout: 246 seconds]
MacDaddy has quit [Quit: MacDaddy]
yeticry has joined #ruby
sphex has quit [Read error: Connection reset by peer]
sphex has joined #ruby
zacstewart has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby
zacstewart has joined #ruby
jeanlinux has quit [Ping timeout: 264 seconds]
cmisenas has quit [Quit: cmisenas]
shadoi has quit [Quit: Leaving.]
perrier has quit [Remote host closed the connection]
perrier has joined #ruby
_blizzy_ has quit [Ping timeout: 272 seconds]
MrJiks has quit [Ping timeout: 252 seconds]
woodruffw has quit [Ping timeout: 264 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Pupeno has joined #ruby
houhouli_ has joined #ruby
jlast has joined #ruby
bronson has joined #ruby
aryaching has joined #ruby
Pupeno has quit [Ping timeout: 256 seconds]
aryaching_ has quit [Ping timeout: 250 seconds]
houhoulis has quit [Ping timeout: 250 seconds]
EasyCo has joined #ruby
kies has joined #ruby
j4cknewt has joined #ruby
isxek has joined #ruby
bronson has quit []
aapole has joined #ruby
RobertBirnie has joined #ruby
Rickmasta has joined #ruby
ivanskie has joined #ruby
RobertBi_ has joined #ruby
Carnage\ has joined #ruby
michael_mbp has quit [Excess Flood]
Dreamer3 has quit [Quit: Leaving...]
<baweaver> sevenseacat: I win
Rollabunna has quit [Remote host closed the connection]
<baweaver> too bad Ox0dea isn't online...
Aswebb_ has joined #ruby
<sevenseacat> hot damn.
<baweaver> >> *?`..?{
<ruboto> baweaver # => /tmp/execpad-8a29cf644539/source-8a29cf644539:2: syntax error, unexpected .., expecting :: or '[' or ...check link for more (https://eval.in/390173)
Carnage\ has quit [Client Quit]
psyprus has quit [Ping timeout: 248 seconds]
<baweaver> >> [*?`..?{]
<ruboto> baweaver # => ["`", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", ...check link for more (https://eval.in/390174)
pgatt has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
<baweaver> >> [*?`..?{][1..-2]
<ruboto> baweaver # => ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", ...check link for more (https://eval.in/390175)
<baweaver> how the heck did he find htat?
<baweaver> that*
bb010g has joined #ruby
psyprus has joined #ruby
michael_mbp has joined #ruby
<baweaver> Apparently you can
<baweaver> >> ?a
<ruboto> baweaver # => "a" (https://eval.in/390176)
<baweaver> as well
<baweaver> for single characters only
konsolebox has joined #ruby
RobertBi_ has quit [Ping timeout: 264 seconds]
<baweaver> it's horrifying and mystifying at the same time
<baweaver> kinda like any perl code
RobertBirnie has joined #ruby
<sevenseacat> I agree with Aeyrix's statement about it though. He needs to go outside.
zacstewart has quit [Ping timeout: 246 seconds]
<Aeyrix> lmao
* baweaver shrugs
<Aeyrix> we love Ox but we worry.
Aswebb_ has quit [Ping timeout: 264 seconds]
<baweaver> shevy: you have another animal nick now
<sevenseacat> haha, 0x
<sevenseacat> oh ffs I always forget its an O
<Aeyrix> ya
<Aeyrix> Ox0dea
<Aeyrix> Ox. :D
<sevenseacat> I like it.
hotpancakes has quit [Remote host closed the connection]
eggoez has quit [Ping timeout: 272 seconds]
Pupeno has joined #ruby
<wmoxam> ugh, ruby line noise
<Aeyrix> Huh?
<wmoxam> that gist
zacstewart has joined #ruby
lessless has joined #ruby
<baweaver> we know
<wmoxam> I hate Ruby's perlisms
<Aeyrix> >> $_=(@_=[*?`..?{][(_=$$/$$)..-_-_]*'')=~/$/;(@__=->_,___,__=''{__<<@_[(___+(@_=~/#{_[$.]}/))%$_];_[$.+=$_/$_]?@__[_,___,__]:__})['you what mate', 4]
<ruboto> Aeyrix # => nil can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/390177)
<Aeyrix> kek
thegreatneokefka has joined #ruby
eggoez has joined #ruby
thegreatneokefka has quit [Client Quit]
oo_ has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
thiagovsk has quit [Quit: Connection closed for inactivity]
tubuliferous_ has quit [Quit: ZNC - http://znc.in]
brain_shim has quit [Ping timeout: 246 seconds]
<baweaver> can only handle alpha a-z
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
nobitanobi has quit [Remote host closed the connection]
nobitanobi has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
s2013 has joined #ruby
MrJiks has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has joined #ruby
nobitanobi has quit [Remote host closed the connection]
devoldmx has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dreamer3 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
mcclurmc has joined #ruby
astrobunny has joined #ruby
SHyx0rmZ has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
chipotle has joined #ruby
mr_rich101 has joined #ruby
keen___________8 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
kfpratt has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
keen___________7 has quit [Ping timeout: 255 seconds]
Ox0dea has joined #ruby
balazs_ has joined #ruby
<Ox0dea> >> $_=(@_=[*?`..?{][(_=$$/$$)..-_-_]*'')=~/$/;(@__=->_,___,__=''{__<<(@_[_[$.]]?@_[(___+(@_=~/#{_[$.]}/))%$_]:_[$.]);_[$.+=$_/$_]?@__[_,___,__]:__})['payz lux eua, gkexod.', 20]
<ruboto> Ox0dea # => "just for you, aeyrix." (https://eval.in/390179)
<baweaver> no
<baweaver> no no no
<Aeyrix> yes
<Aeyrix> YES
kfpratt has joined #ruby
<Aeyrix> Now THIS is podracing
<Ox0dea> Ha.
<sevenseacat> :D
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
sharpmachine has joined #ruby
<Ox0dea> baweaver: Do you know why I had to extract the 26 out as a variable?
<baweaver> so just a ternary in there to leave spaces and other characters alone
<baweaver> rotation
<Ox0dea> Right, but why not in-place?
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<baweaver> not sure
<Ox0dea> Me neither. :)
<baweaver> optimized perlisms?
baweaver_ has joined #ruby
<Aeyrix> lmao
<baweaver> hm, have I now...
<baweaver> odd
<baweaver> laptop must have connected in my bag
<Aeyrix> hah
<Aeyrix> someone's impersonating baweaver
<Aeyrix> m o d s
<Aeyrix> o
<Aeyrix> d
<Aeyrix> s
<baweaver> Same network area
<baweaver> aaand it didn't go to sleep
<Aeyrix> they've hijacked your wifi
<Ox0dea> I take offense at these being considered Perlisms. Non-alphanumeric Perl mostly just takes advantage of the fact that you can eval the results of a gsub.
<baweaver> good luck with that one
auzty has joined #ruby
roolo has joined #ruby
balazs_ has quit [Ping timeout: 255 seconds]
devoldmx_ has joined #ruby
<baweaver> short of hardware / firmware hacks, people aren't getting in the front door of that one
devoldmx has quit [Read error: Connection reset by peer]
<Aeyrix> I get actual internet soon :D
sharpmachine has quit [Ping timeout: 248 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
<baweaver> shoot, well that destroyed a nail....
<Aeyrix> ?
devoldmx has joined #ruby
<baweaver> wasn't paying attention and jammed my hand against something
LiquidInsect has quit [Ping timeout: 264 seconds]
<Ox0dea> Just paint over it?
<baweaver> makes guitar annoying to play for a few weeks
nobitanobi has joined #ruby
<Aeyrix> I haven't played mine for a while.
<Aeyrix> :<
baweaver_ has quit [Ping timeout: 248 seconds]
<baweaver> classical here, mostly fingerstyle
<Ox0dea> There will be blood.
<Aeyrix> Electric here, mostly funk.
<mhb> haha
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
<baweaver> https://www.youtube.com/watch?v=PNAeXnVRXew - freaking old, but serves a point at least.
<baweaver> mistakes all over the place though
devoldmx has quit [Read error: Connection reset by peer]
<Ox0dea> Color me serenaded.
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
j4cknewt has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
<shevy> baweaver huh
<Aeyrix> shevy: Ox
<shevy> oh
devoldmx_ has joined #ruby
<shevy> I was reading that as "0x"
devoldmx has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
<wmoxam> baweaver: what's the blue stuff?
<baweaver> I think mouthwash
<baweaver> don't remember why I had it in there.
j4cknewt has quit [Ping timeout: 255 seconds]
<wmoxam> baweaver: to get drunk obvs
<wmoxam> ;)
devoldmx_ has quit [Read error: Connection reset by peer]
<baweaver> that's what the wine under the table was for
devoldmx has joined #ruby
<wmoxam> getting drunk on mouthwash must suck
<baweaver> also 3 years ago back in a college room
<wmoxam> but at least you'd have minty fresh breath
devoldmx has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 264 seconds]
dhjondoh has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
hotpancakes has quit [Remote host closed the connection]
chrissonar has joined #ruby
dhjondoh has quit [Client Quit]
devoldmx has quit [Read error: Connection reset by peer]
revath has joined #ruby
jtdoncas has quit [Ping timeout: 272 seconds]
dhjondoh has joined #ruby
devoldmx has joined #ruby
revath has left #ruby [#ruby]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> On a vaguely related note, "debriding agent" is not another term for marriage counselor.
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
zacstewart has quit [Ping timeout: 255 seconds]
<sphex> does the precedence given for { } blocks look wrong here? http://ruby-doc.org/core-2.2.2/doc/syntax/precedence_rdoc.html
<sevenseacat> not to me
gaboesquivel has quit []
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<sevenseacat> actually
chipotle has joined #ruby
<sevenseacat> nah thats right
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
<sphex> aren't { } blocks high precedence?
oo_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
<Aeyrix> No.
<jfarmer> haha
<baweaver> Aeyrix: One of my friends is straight out of the 80s, down to the hair and the rocking
<Aeyrix> baweaver: That's you, isn't iT?
<Aeyrix> s/T/t/
<baweaver> no
<Aeyrix> :D
<baweaver> can't get my hair out that long
devoldmx has quit [Read error: Connection reset by peer]
<Aeyrix> Neither.
<baweaver> cheeky bugger too that one.
<Aeyrix> Mine's super long atm and desparately needs a cut.
<sphex> well then. I don't get it. :/ oh well.
devoldmx has joined #ruby
<Aeyrix> I look like I have a lion's mane.
<Aeyrix> sphex: What don't you get about iT?
<Aeyrix> Why do I keep making that mistake?
drefined has joined #ruby
j4cknewt has joined #ruby
radialneon has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<Ox0dea> Aeyrix: That was about 140WPM.
<Aeyrix> Oh.
<Aeyrix> :^)
<Ox0dea> We should race. :)
fabrice31 has joined #ruby
<Aeyrix> Ox0dea: I'm on a nonstandard keyboard atm.
<Aeyrix> So I'll be slower and less accurate than usual.
renderful has joined #ruby
sarkyniin has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
devoldmx has joined #ruby
<Ox0dea> Aeyrix: Do you normally use an Advantage?
gix has quit [Ping timeout: 252 seconds]
<Aeyrix> I normally use a Macbook keyboard.
chipotle_ has joined #ruby
hotpancakes has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Alina-malina has joined #ruby
devoldm__ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has quit [Ping timeout: 264 seconds]
nobitanobi has quit [Remote host closed the connection]
Rickmasta has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
devoldm__ has quit [Read error: Connection reset by peer]
<shevy> baweaver ooooh rock groups!
<shevy> Boston - more than a feeling! \o/ \o~
renderful has quit [Ping timeout: 248 seconds]
chipotle has quit [Ping timeout: 264 seconds]
gauke has joined #ruby
gix has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
devoldmx has joined #ruby
jhooker has joined #ruby
charliesome has quit [Quit: zzz]
bluOxigen has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<sphex> def test; 2; end; 1 + test { };
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex> don't the brackets have higher precedence than the "+"?
juanpablo_ has quit [Ping timeout: 246 seconds]
jhooker has quit [Ping timeout: 248 seconds]
gambl0re has quit [Ping timeout: 248 seconds]
<sphex> since they associate with "test", not the result of the "+" operator...
zacstewart has quit [Ping timeout: 248 seconds]
devoldmx has quit [Read error: Connection reset by peer]
kfpratt has quit [Read error: Connection reset by peer]
<flughafen> hey everybody
kfpratt has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
* flughafen is back from scotland
_ht has joined #ruby
<Aeyrix> yo
zacstewart has joined #ruby
devoldmx has joined #ruby
NightMonkey has quit [Ping timeout: 244 seconds]
<flughafen> yo Aeyrix
<Aeyrix> How was Scotland?
<flughafen> fun, but short
fsvehla has joined #ruby
<Aeyrix> Where'd you go? North or South?
<shevy> sphex yeah. Do you see a problem in the above code?
devoldmx has quit [Read error: Connection reset by peer]
<shevy> flughafen wow so you DO still fly!
<shevy> Aeyrix are you happy that the scots remained in the british empire?
devoldmx has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
<Aeyrix> shevy: It's for their own good.
jfarmer has quit []
<flughafen> shevy: not through BER
<Aeyrix> Scotland has no bargaining power with the European Union. If they left GB, they'd be out in the cold and that's a real problem.
<Aeyrix> There's a waiting list around the world for countries wanting to become a part of the EU.
<Aeyrix> Scotland would have to just wait in line if they left.
<sevenseacat> around the world? not just in europe? >_>
<Aeyrix> Mhm.
<sphex> shevy: no, it's just that I *think* the documentation is wrong, but I'm not sure... now that I think about it, maybe they just mean that the "grouping" of brackets is more important during parsing than operator precedences altogether.
<shevy> Australia will be assimilated one day as well! We are the BORG, resistance is futile.
devoldmx has quit [Read error: Connection reset by peer]
<shevy> hmm might be the wrong idiom
<Aeyrix> *shrugs*
jeanlinux has joined #ruby
<Aeyrix> Some Australians want it to become a republic, which I think is a dreadful idea.
devoldmx has joined #ruby
<Aeyrix> Cutting ties like that nowadays just doesn't work at all.
<shevy> sphex if it helps, I always think of blocks to methods just as an extra argument; in the code above, no code would be put into the {} and there is no yield-handling, so it's an empty arg-passing that just gets discarded; 2 is return always
<sevenseacat> I don't know what we would achieve by that
<Aeyrix> Unless you're, say, Saudi Arabia or something, with massive export power.
<Aeyrix> sevenseacat: "independence"
<shevy> sevenseacat you'd get a new head of the state!
NightMonkey has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<shevy> Aeyrix I don't know anything about Australia except that it is (1) hot (2) has weird alien animals like that kangaroo thingy or ... what are those animals called that eat eucalyptus... hmm
<Aeyrix> Koalas.
<Aeyrix> Australia's chief export is racism.
devoldmx has joined #ruby
<shevy> and they were founded by pirates!
<sevenseacat> yeah but in practical terms, that means nothing
<shevy> hehe
<Aeyrix> sevenseacat: Independence, or being founded by pirates?
Melite has joined #ruby
<sevenseacat> founded by convicts, not pirates
<shevy> arrrrr
<sevenseacat> get it right, geez
<Aeyrix> Nah it was pirates.
<Aeyrix> Illegal people on a boat - pirates.
<Aeyrix> :^)
<sevenseacat> j/k
<shevy> you are a pirate cat
<Aeyrix> heh
funfunctor has joined #ruby
<funfunctor> g'day
roolo has quit [Remote host closed the connection]
<Aeyrix> Yo.
<sevenseacat> sup.
<Aeyrix> shevy: Kangaroo is pretty tasty.
<Aeyrix> I'd put it above beef.
revath has joined #ruby
devoldmx_ has joined #ruby
<funfunctor> I already know how to program, I am looking for something that is as dense as possible to learn ruby quickly..
gauke has quit [Quit: gauke]
<Aeyrix> > something as dense as possible
<Aeyrix> shevy, you're up!
<Aeyrix> ;)
jeanlinux has quit [Ping timeout: 264 seconds]
<sevenseacat> XD
<Aeyrix> funfunctor: What, like a set of guides or what?
<funfunctor> sphex: less words/api more BNF notation something fast..
<sevenseacat> and you tell us off for calling people out :P
<Aeyrix> sevenseacat: He knows I'm not serious though. :<
<Aeyrix> (I hope)
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<sphex> funfunctor: yeah yeah.. look at the doc/syntax/ ones
NightMonkey has quit [Ping timeout: 244 seconds]
<funfunctor> I don't really want to sit though something yattering on about what a class is or what ruby api classes are provided in base
<Aeyrix> Find a tutorial series and skip to tutorial 7 or something.
<funfunctor> and what about the type semantics?
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
<sevenseacat> funfunctor: 'i want to just know ruby without learning it'?
devoldmx has joined #ruby
Xeago has joined #ruby
<shevy> funfunctor type semantics? the 3 main data structures are usually String, Hash, Array.
<sphex> funfunctor: classes have methods. you call them. use ri(1) to check what method does what. you know ruby now, you can go.
<funfunctor> yep thanks for the resources guys
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor> I mean, the standards for types, i.e. should I expect Int to be 32bit if and when on what etc..
RegulationD has joined #ruby
NightMonkey has joined #ruby
<shevy> that's quite lowlevel
<sevenseacat> i really have problems with that kind of philosophy
revath has left #ruby [#ruby]
<funfunctor> For example, in Haskell we have Int and Integer
<Aeyrix> and is also in the docs
devoldmx has joined #ruby
<Aeyrix> hah
<Aeyrix> > in Haskell
<shevy> funfunctor you have Integer
<shevy> and Fixnum
<shevy> >> 5.class
<ruboto> shevy # => Fixnum (https://eval.in/390194)
<sphex> funfunctor: try it out in irb(1)
<shevy> 32bit, I have no idea, has anyone in ruby code needed to know that?
<funfunctor> Integer is arbitrary while Int is machine sized in the case of Haskell.
amclain has quit [Quit: Leaving]
<shevy> well the whole of Ruby is arbitrary :-)
LiquidInsect has joined #ruby
<sphex> funfunctor: all arithmetic appears to be arbitrary precision, you don't have to worry about it. the results are "coerced" as needed.
<sevenseacat> yeah we dont care about that kind of stuff
<funfunctor> Do signed int's wrap when they overflow in ruby or is that never get to runtime?
Xeago has quit [Remote host closed the connection]
sharpmachine has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor> sphex: ok so its all dynamically typed then?
<shevy> nah, overflow... I guess the worst that can happen is when you like allocate or use a million string objects for a hash as a key
<funfunctor> any idea what type inference formalism that is based on?
devoldmx has joined #ruby
<sphex> yeah. hurry up, you're wasting time with this integer stuff. you're not learning fast enough.
<funfunctor> lol
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> funfunctor is there any? if you try to add incompatible objects via + then an error happens
<shevy> >> 1 + '2'
<ruboto> shevy # => String can't be coerced into Fixnum (TypeError) ...check link for more (https://eval.in/390195)
<sevenseacat> this is all answered in the docs, you know
<funfunctor> I already skimmed though the stuff.. nothing special, I know python, ada, haskell, c, c++, etc..
<shevy> good! ruby is very similar to python
maletor has joined #ruby
SOLDIERz has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I just tried 1 + '2' in python
<shevy> TypeError: unsupported operand type(s) for +: 'int' and 'str'
arescorpio has quit [Quit: Leaving.]
<shevy> \o/
<Aeyrix> shevy: e
<Aeyrix> ye
<Aeyrix> won't work
<funfunctor> shevy: yes objects enumerated from different classes have different types, I should hope that is compile time :)
devoldmx has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<shevy> both actually give a TypeError, they even agree on the name :)
<sevenseacat> 'compile time'?
<funfunctor> ok, so (+) is typically overloaded then
<funfunctor> sevenseacat: "before evaluation"
<Ox0dea> ~ $ python2 -c "print('1' < 2)"
<shevy> nah, you just have objects that will be compatible
<Ox0dea> False
<sphex> funfunctor: it reminds me of Scheme and Lisp's numerical towers. the arithmatic operators will yield a value of type needed to represent it. numeric values are immutable, so you always get a new one with a possibly different type when doing arithmetic.
RegulationD has quit [Ping timeout: 264 seconds]
<funfunctor> actually, is ruby lazy or strict evaluation?
<sevenseacat> you're not learning ruby here
<shevy> >> 1 + '1'.to_i
<ruboto> shevy # => 2 (https://eval.in/390196)
<sevenseacat> there is no overloading
<shevy> ruby is so lazy, it'll make you lazier
<funfunctor> sphex: thanks that is helpful !
devoldmx has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 256 seconds]
<funfunctor> can you control strictness, for example in Haskell as a example again, data Foo = Foo { a :: Int, b :: !Int }
devoldmx has joined #ruby
zacstewart has joined #ruby
kfpratt has joined #ruby
<funfunctor> gives us b being strict while a is lazy
Hobogrammer has quit [Ping timeout: 250 seconds]
sharpmachine has quit [Ping timeout: 264 seconds]
<Ox0dea> It kinda seems like you're here to subtly gloat (?) about having read the first few chapters of a Haskell book.
<funfunctor> and so Foo (4+3) (1+2) will give you the type Foo (4+3) 3
sandstrom has joined #ruby
aapole has quit [Ping timeout: 250 seconds]
<sevenseacat> funfunctor: I suggest getting a basic ruby tutorial, because your questions dont make much sense.
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor> Ox0dea: no, I can pick another language if you like
User458764 has joined #ruby
devoldmx has joined #ruby
<sevenseacat> a basic ruby tutorial, and opening irb.
chinmay_dd has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<funfunctor> sevenseacat: my question about evaluation is fairly important in terms of efficient implementation, if my class methods are strictly evaluating types all the way down to the value level all the time then it could be important to be aware of this
kstuart has quit [Quit: WeeChat 1.2]
Rollabunna has joined #ruby
<sevenseacat> ruby has no type checking.
robbyoconnor has quit [Ping timeout: 256 seconds]
<Ox0dea> It does.
<sphex> funfunctor: if you know python/perl/lisp, then.. just assume it's going to work like them. types are associated with values only, there are no lexical type annotations anywhere in the language AFAIK.
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<funfunctor> sevenseacat: I have that open on the other screen, basics isn't hard, I am more interested in some of the finer details
<sevenseacat> not in the sense funfunctor means
<sevenseacat> thats why the questions make no sense
aryaching has quit [Ping timeout: 248 seconds]
Olipro has quit [Ping timeout: 252 seconds]
<funfunctor> "sevenseacat: ruby has no type checking." sounds completely wrong to me
arup_r has joined #ruby
<Ox0dea> >> (1..Float::INFINITY).lazy.map { |x| x * 2 }.take(10).force
<ruboto> Ox0dea # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20] (https://eval.in/390207)
<Ox0dea> funfunctor: ^
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<funfunctor> you can say ruby is dynamically typed or type inferred sure
kfpratt has joined #ruby
<flughafen> ooooh infinity!
<sevenseacat> sigh
devoldmx has joined #ruby
<Radar> Can't tell if trolling or asking legitimate questions.
* funfunctor looks up the force method
<Ox0dea> It... forces evaluation?
<Ox0dea> Read the next chapter in your Haskell book. :P
<sevenseacat> I think a bit of both. thinks they're too cool to look up a tutorial
kfpratt has quit [Read error: Connection reset by peer]
<sevenseacat> and wants to impress with fancy questions
<Aeyrix> Ox0dea: nah it uses
<Aeyrix> force push
<sevenseacat> that arent at all relevant
<Ox0dea> He's certainly not here to learn Ruby, in my opinion.
<funfunctor> why does everything think everything is a troll these days.. Eternal September has destroyed the internet
devoldmx has quit [Read error: Connection reset by peer]
<Aeyrix> Ox0dea: maybe we should show him
<Aeyrix> your code golf
<Aeyrix> :^)
<Ox0dea> It's not golf.
<sphex> yeah.. if you already know python, start from there. haskell is not a similar language at all.
<Aeyrix> Ox0dea: Fine, your code badminton.
devoldmx has joined #ruby
<funfunctor> I only picked haskell randomly
<funfunctor> gezzz
<funfunctor> its not a game
kies^ has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
kies has quit [Ping timeout: 264 seconds]
djellemah_ is now known as djellemah
<funfunctor> I can use python as a point of reference or lua, would that be better?
devoldmx_ has quit [Ping timeout: 264 seconds]
<Ox0dea> Did you ask these sorts of entirely inapplicable questions when you were learning Python?
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
damncabbage has joined #ruby
<sphex> If I knew Haskell I would *never* shut up about it.
<shevy> funfunctor why do you want to use python :(
<Aeyrix> It seems that way with functional programming.
<funfunctor> sphex thanks for your direct responses
kfpratt has joined #ruby
* Aeyrix looks at sevenseacat and Radar.
<Radar> `Hi.
<sevenseacat> hello.
<Aeyrix> We're talking about how much you like to tell people you like Elixir.
<shevy> oh damn 2 Australians are online now
<Aeyrix> :^)
<Aeyrix> shevy: 3
<shevy> hmm
<funfunctor> shevy: I don't really care, each thing has its own purposes
devoldmx has quit [Read error: Connection reset by peer]
* Radar is clearly clueless about software because he didn't know what BNF was
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Aeyrix> Binary Notation Floatation.
<shevy> back naur for... something
<Radar> funfunctor: Please take the time to read through the resources we have linked you to.
Xeago has joined #ruby
devoldmx has joined #ruby
<shevy> or backus, what a weird name anyway
<sevenseacat> backhaus normal form or some shit.
<sphex> funfunctor: yeah, perl/python/lua/lisp and smalltalk are a lot more similar to ruby, especially WRT value semantics
emilkarl has joined #ruby
<funfunctor> Aeyrix: no, Backus–Naur Form
<funfunctor> Aeyrix: the syntactic formalism
<shevy> Aeyrix see how you get corrected mercilessly? :D
<Ox0dea> funfunctor: How do you type that fancy dash?
<shevy> alright let's blow it up...
<shevy> funfunctor what is a monad
<sevenseacat> aw shit
<shevy> I don't see the dash :( must be unicode
<Aeyrix> shevy: I pulled my guess out of the air.
<shevy> hehe
<funfunctor> is this going to degenerate into a trolling session?
<Aeyrix> Yes.
devoldmx has quit [Remote host closed the connection]
intyl has quit [Ping timeout: 246 seconds]
<damncabbage> shevy: :|
<funfunctor> shevy: its unicode, I can never spell it so I copy and pasted it
<sphex> funfunctor: ruby is very expression-oriented. most compound constructs start with a keyword and end with "end". then what really matters is operator precedences. just read the doc/syntax bits, you're gonna have a hard time finding more succinct documentation than that.
<shevy> I remember I once wanted to write my own programming language... then I realized that I have to understand things such as Backus Naur... bison... those kind of things. That was so boring!
devoldmx has joined #ruby
<Ox0dea> funfunctor: This is IRC, mate; you could've just used a hyphen.
<funfunctor> no idea why you would call your child Naur
SOLDIERz has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> perhaps it is a mythical child of power
laurentide has quit [Read error: Connection reset by peer]
<shevy> Thor Wauki ... Naur Loki ...
<Aeyrix> > Backus Naur bison
<Aeyrix> jesus christ
<sevenseacat> i wrote a compiler once. it's harder than it looks.
<shevy> lol
<Aeyrix> i'm laughing too hard and getting weird looks
<shevy> I have no idea why bison is named after an animal
Musashi007 has joined #ruby
djbkd has quit [Remote host closed the connection]
<Ox0dea> shevy: Because the original was called yacc.
<Ox0dea> yacc -> yak -> bison.
<shevy> aha!
<Ox0dea> It's actually very clever.
<Aeyrix> Ye.
* Radar sees that funfunctor is now heavily engrossed in learning Ruby using the resources we linked
<funfunctor> sphex: thanks, yes that is a good summary.
* Radar rejoices
davedev24_ has quit []
devoldmx_ has joined #ruby
<Ox0dea> funfunctor: If my head is a burrito and my tail a spacesuit, which of the monadic laws am I in violation of?
* damncabbage casually mentions shell -> pe(a)rl -> ruby
Aswebb_ has joined #ruby
<baweaver> sh -> Awk -> Perl -> Ruby
<Aeyrix> Ox0dea: what
<Ox0dea> matz considered calling his language Coral.
<djellemah> Ox0dea: the 4th one :-O
<baweaver> that I actually understand that Ox0dea
<Ox0dea> baweaver: Hm?
<baweaver> I was teaching Monoids to Scala newbies yesterday
<shevy> Mongoids?
<Aeyrix> wtf
devoldmx_ has quit [Read error: Connection reset by peer]
<shevy> cool that you teach stuff to people - and get paid for it!
devoldmx_ has joined #ruby
<funfunctor> sphex: thanks again for the direct answers, guess I'll just grok though it all and perhaps be back if anything else 'special' comes to mind but things seem well documented.
devoldmx has quit [Ping timeout: 256 seconds]
<damncabbage> Ox0dea: Your burrito and spacesuit are both partial; expect them both to blow up in your face without warning.
<sphex> funfunctor: alright, np.
devoldmx_ has quit [Read error: Connection reset by peer]
funfunctor has left #ruby [#ruby]
devoldmx has joined #ruby
acke has joined #ruby
User458764 has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has joined #ruby
Aswebb_ has quit [Ping timeout: 255 seconds]
iszak has joined #ruby
zacstewart has quit [Ping timeout: 248 seconds]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
i8igmac has quit [Ping timeout: 256 seconds]
Channel6 has quit [Quit: Leaving]
<sphex> shevy: BTW, there's a trick to implementing parsing easily. recursive descent can support most language constructs straightforwardly. but operator precedence stumbles most people, but there's a really simple way to do it. look up "pratt parser". the main loop is just a few line of code, it's table-based and really fast.
<sphex> and operators can be added/modified dynamically
devoldmx_ has quit [Read error: Connection reset by peer]
jtdoncas has joined #ruby
devoldmx has joined #ruby
<shevy> hmm
devoldmx has quit [Read error: Connection reset by peer]
yardenbar has joined #ruby
devoldmx has joined #ruby
jas02 has joined #ruby
peter_paule has joined #ruby
howdoi has joined #ruby
<Aeyrix> [16:24:29] funfunctor (~edward@promim2.lnk.telstra.net) left the channel
<Aeyrix> > telstra
<Aeyrix> he's an aussie
devoldmx_ has joined #ruby
zacstewart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<Radar> evidenced by his "g'day" as he joined, too
khebbie has joined #ruby
<Aeyrix> South Africans say that too, a bit.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Aeyrix> ime
<shevy> huh
<shevy> aussies are weird
<Aeyrix> Yeah I know.
User458764 has joined #ruby
devoldmx has joined #ruby
Bertg has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
jas02_ has joined #ruby
<sphex> they use the word "cunt" so much that they need to qualify it now
<shevy> just take Crocodile Dundee!
devoldmx has quit [Read error: Connection reset by peer]
jas02 has quit [Ping timeout: 248 seconds]
jas02_ is now known as jas02
devoldmx has joined #ruby
<sevenseacat> sphex: I dont think that word is appropriate for this channel.
revath has joined #ruby
arturaz has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
peter_paule has quit [Ping timeout: 276 seconds]
devoldmx has joined #ruby
dseitz has joined #ruby
karols has joined #ruby
<sphex> welp. I've been naughty.
karols has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<shevy> yeah
nirix has joined #ruby
workmad3 has joined #ruby
<Aeyrix> ( ͡° ͜ʖ ͡°)
riotjones has joined #ruby
hunt3r has quit []
devoldmx_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 256 seconds]
troulouliou_dev has quit [Quit: Leaving]
devoldmx_ has quit [Read error: Connection reset by peer]
Bertg has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
astrobun_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
djbkd has joined #ruby
devoldmx has joined #ruby
zacstewart has quit [Ping timeout: 246 seconds]
mister_solo has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
damncabbage has left #ruby [#ruby]
niemcu has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
DexterLB has joined #ruby
jph98 has joined #ruby
Atomic has joined #ruby
bruno- has quit [Ping timeout: 250 seconds]
zacstewart has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
gauke has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
peter_paule has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
freezevee has joined #ruby
eGGsha has joined #ruby
Sinami has quit [Quit: Leaving]
fabrice31 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
jenrzzz has joined #ruby
<freezevee> hi guys, I am trying to get a service working with systemd in ubuntu running a ruby script that parses data from web sites and then displays them on a mini-api in sinatra. While it runs successfully, I get random errors. Can someone please take a look ? https://github.com/chrisvel/apc_ups_api
robbyoconnor has joined #ruby
matp has quit [Remote host closed the connection]
<_mh_> freezevee: "random errors" ?
kfpratt has joined #ruby
devoldmx_ has joined #ruby
drewo has joined #ruby
solars has joined #ruby
<ddv> freezevee: lol
peter_paule has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
<freezevee> _mh_: first of all I execute manually systemctl start ups_parser.service
fabrice31 has joined #ruby
balazs has joined #ruby
<sevenseacat> "look at my entire app to fix my random unspecified errors"
devoldmx_ has quit [Remote host closed the connection]
devoldmx has joined #ruby
<_mh_> freezevee: without a specific description on what errors you get from your ruby script ... we can't help you, I'm afraid.
codecop has joined #ruby
<ddv> freezevee: Type=forking should be simple
<freezevee> sevenseacat: hello :)
alex88 has joined #ruby
sharpmachine has joined #ruby
_ixti_ has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
<freezevee> _mh_: sorry, it takes time to think and write !
Musashi007 has quit [Quit: Musashi007]
<shevy> freezevee this cat is not in a friendly mood right now
<ddv> freezevee: you might want to put a sleep 1 in that loop because it could block the main thread due to 100% cpu usage
Rollabunna has joined #ruby
<freezevee> _mh_: actually it is my first service and I wonder If it is normal that i don't get the terminal prompt back
devoldmx has quit [Read error: Connection reset by peer]
<ddv> freezevee: oh you already have a sleep
devoldmx_ has joined #ruby
jph98 has quit [Quit: jph98]
<shevy> props for being able to use systemd in the first place though
<freezevee> _mh_: that means If I execute systemctl start ups_parser.service & then I get a pid and everything is ok
jtdoncas has quit [Ping timeout: 248 seconds]
<_mh_> freezevee: Well, it's usually _your_ job to make sure that the whole thing detaches properly from the executing terminal
<sevenseacat> shevy: you wouldnt be either if you were trying to debug the code I'm debugging
<ddv> great he ignores me
<shevy> hehe
<shevy> ddv it's because of your nick, it's so short and innocent
drewo has quit [Ping timeout: 264 seconds]
<freezevee> _mh_: should I do this *inside* the ruby script or in systemd ? I mean, systemd runs everything in background or I must do this by myself with Thread, PRocess or whatever
Lucky___ has joined #ruby
devoldmx has joined #ruby
balazs has quit [Ping timeout: 246 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
<_mh_> freezevee: also what ddv said. Plus, Why do you generate IO objects with IO.popen that you don't use? And yes, inside your ruby script, look at Process#daemon.
<freezevee> ddv: sorry man I don't ignore you,
stan has joined #ruby
<shevy> poor ddv
<ddv> he doesn't deamonize his program
<ddv> so he should use Type=simple
<ddv> it does not fork
isxek has quit [Quit: Page closed]
krz has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
<shevy> you guys all seem to be systemd experts
<_mh_> ddv: so systemd can handle programs taht don't demonize on it's own?
devoldmx has quit [Read error: Connection reset by peer]
fp- has joined #ruby
<ddv> yes
<_mh_> that's kinda need.
<_mh_> neat
juanpablo_ has joined #ruby
sharpmachine has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
<fp-> is there anyone who can tell me why local_time (github.com/basecamp/local_time) keeps giving me time that's 4 hours in the future?
Rollabunna has quit [Ping timeout: 248 seconds]
devoldmx_ has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<freezevee> _mh_: so systemd doesn't have any multitasking processing by its own ?
devoldmx has joined #ruby
<freezevee> _mh_: I thought that the O/S is doing all the job
revath has quit [Read error: Connection reset by peer]
railsraider has joined #ruby
<_mh_> freezevee: did you follow the conversation? ddv did just point out that systemd can handle non-daemonizing processes if you put type=simple.
revath has joined #ruby
<_mh_> gnargh, too early for proper english.
devoldmx has quit [Read error: Connection reset by peer]
<freezevee> _mh_: what do you suggest ?
devoldmx has joined #ruby
<ddv> lol
<freezevee> _mh_: I mean, what would you do personally ?
<sphex> freezevee: I'm guessing it does it itself if you ask it to. I don't know about systemd in particular, but in general, it can be useful when daemon-type programs fork themselves only after they are ready to handle requests, etc. that way the other services can get started once their dependencies are ready.
juanpablo_ has quit [Ping timeout: 246 seconds]
sandstrom has joined #ruby
Xeago has joined #ruby
<sphex> freezevee: try the type=simple thing, c'mon!
zacstewart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<_mh_> freezevee: what ddv said, both of his pointers. Plus get rid of the pipe = IO.popen if you don't need it. You can worry about handling daemonizing once you have mastered your script.
lolmaus has joined #ruby
olistik has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
devoldmx has quit [Read error: Connection reset by peer]
dhjondoh has joined #ruby
<_mh_> freezevee: and some error output would really help understand where exactly you are hanging, right now we are just stabbing at the dark.
<freezevee> _mh_: last time I asked someone mocked at me and told me that ruby daemonizing is BS
devoldmx has joined #ruby
<freezevee> _mh_: so I am trying to follow the best practise
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<freezevee> _mh_: and I was given this link http://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
<ddv> daemonizing is indeed not necessary
<ddv> freezevee: you just read the systemd documentation, and use Type=simple you could be done 30 minutes ago!
devoldmx has quit [Read error: Connection reset by peer]
<freezevee> ddv: so how do you create a process that parses data from console output frequently ?
<ddv> instead you totally ignore me, so I will ignore you
devoldmx has joined #ruby
<freezevee> ddv: I don't ignore you, I just don't want to accept a solution or a quick fix without understanding why
Rixius has quit [Ping timeout: 276 seconds]
fp- has left #ruby ["Be back later ..."]
Rickmasta has joined #ruby
<ddv> freezevee: but you did use Type=forking without understanding why
<ddv> freezevee: so whatever
<ddv> you process doesn't even fork
<ddv> your*
<freezevee> ddv: I followed the docs for a default service
<ddv> so why use it
<ddv> you didn't understand the docs then
<freezevee> ddv: I don't know what do you mean "fork"
<ddv> you don't know what forking means? google it
<freezevee> ddv: yes, I didn't most probably
<freezevee> I know in git but not in processes
gusrub has quit [Quit: Leaving]
Rixius has joined #ruby
<ddv> it has nothing to do with git
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<shevy> :P
<freezevee> ddv: I am saying that only this comes into my mind
<ddv> ok
djbkd has quit [Quit: My people need me...]
<_mh_> freezevee: and ever since you asked your question, we still do not know more then that you got 'random errors' :/
<freezevee> it should be some kind of background processing terminology which I am not familliar with
devoldmx_ has quit [Read error: Connection reset by peer]
<freezevee> _mh_: first one is that I don't the console prompt back
revath has quit [Read error: Connection reset by peer]
GPrime has joined #ruby
devoldmx has joined #ruby
GPrime has quit [Remote host closed the connection]
Guest84485 is now known as Apocalypse
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
<shevy> freezevee in ruby you can commonly use Thread even without systemd; for backgrounding processes, one can typically use: http://www.rubydoc.info/gems/daemonize/0.0.1/Daemonize or http://www.rubydoc.info/gems/daemonizer/0.4.18 or Thread.fork
<freezevee> _mh_: second one is that with "&" it fails after some executions with an error systemd[1]: Failed to start Ups data parser.
robbyoconnor has quit [Ping timeout: 246 seconds]
<shevy> yay systemd error!
Guest85 has joined #ruby
Guest85 has left #ruby [#ruby]
revath has joined #ruby
<_mh_> freezevee: so you are asking unix questions and not ruby questions? And maybe both would be fixed using type=simple instead of type=forking as ddv suggested?
<shevy> hey
<freezevee> shevy: I see the status and it executes 10 times and then fails without a reason
<shevy> systemd
<shevy> question
<shevy> :-)
<sphex> freezevee: daemons "fork" a sub-process, and then the parent process terminates. for these, systemd can safely wait for the parent process to terminate. then there are processes that don't do that. for these, systemd must not wait. both are OK, but it has to know which one it is.
<shevy> yeah no wonder, it's systemd man!
<freezevee> shevy: should I leave the service as is and convert the ruby script to a daemon ?
devoldmx_ has joined #ruby
<ddv> freezevee: we are not going to debug your program for you, don't you think thats pretty rude to just dump a github url?
sandstrom has quit [Quit: My computer has gone to sleep.]
msgodf has joined #ruby
<shevy> I dunno, it's your script and code? I can not relate to it, I don't use systemd for instance; but you can easily run ruby as a daemon, I do this to get regular data from a remote website for instance
<freezevee> ddv: noone requested that
astrobun_ has quit [Remote host closed the connection]
<apeiros> freezevee: care to show me where you got mocked? http://irclog.whitequark.org/ruby/2015-06-25 (first answer to your inquiry starts around 19.30)
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<shevy> aha!
<shevy> so the evil mocker was apeiros!
<apeiros> shevy: I wasn't even participating in that discussion
<flughafen> shevy has 3194 alias to fix that issue
devoldmx has quit [Ping timeout: 264 seconds]
<shevy> damn
<shevy> so the evil mocker is still unidentified
* shevy peers at flughafen suspiciously.
<sevenseacat> lol
<shevy> flughafen actually I don't have that many ruby scripts that I want to run in the background... I think at least 98% are just "do a task, then exit" things
<apeiros> shevy: I don't see any mocking going on. that's why I ask them.
devoldmx_ has quit [Read error: Connection reset by peer]
<sphex> oh gawd. as there been mocking? I thought this channel was a safe space...
devoldmx has joined #ruby
<ddv> are we talking about mocking as in testing or just mocking in general
<freezevee> I love this place
zacstewart has quit [Ping timeout: 276 seconds]
Aswebb_ has joined #ruby
<sevenseacat> I think freezevee complained to apeiros.
<freezevee> and I love sevenseacat
<apeiros> sphex: it's my intention to get there
<shevy> we have to identify the evil
<_mh_> freezevee: could you please just try the suggestions given, refer to systemd documentation on what type=simple means ?
allomov has joined #ruby
<apeiros> sevenseacat: no, I just saw them saying that they got mocked. and I remembered being present when they asked this the first time. so I wanted to know whether I failed at op duties.
devoldmx_ has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat> ah okay
<freezevee> _mh_: sure I will
devoldmx has quit [Read error: Connection reset by peer]
genpaku has quit [Ping timeout: 255 seconds]
<freezevee> _mh_: but asking around in irc, forums etc. I get totally different opinions so finally I don't know what to do
chipotle_ has quit [Ping timeout: 255 seconds]
<ddv> freezevee: opinion?
avahey has quit [Quit: Connection closed for inactivity]
<ddv> freezevee: your program doesn't fork
<ddv> that is a FACT
<ddv> so you use Type=simple with systemd
<freezevee> _mh_: If you see the previous git commits, I daemonized the scripts with a gem and then I got told that it's bs to do that, just try upstart or systemd
devoldmx_ has quit [Read error: Connection reset by peer]
<sphex> freezevee: you said you wanted to understand, but you're gonna have to participate a little bit in this... :p
devoldmx has joined #ruby
pwnz0r has joined #ruby
<freezevee> well my main issue is confusion
bttf has quit [Ping timeout: 252 seconds]
genpaku has joined #ruby
whoojemaflip has quit [Ping timeout: 252 seconds]
<sevenseacat> it sound like decision paralysis
Miron has quit [Ping timeout: 252 seconds]
<freezevee> decision attack
<_mh_> freezevee: I'm sorry, while there are a lot of things that are best done the one way or another, programming often has numerous solutions. And people have different levels of knowledge. So, getting multiple opinions is common ...
<freezevee> like panic attack
<sevenseacat> you want everyone to agree on something for you so you can then go and implement it
<sevenseacat> when there's ten viable ways to do the same thing
<sevenseacat> the decision falls on you to pick one
<ddv> you just implement all solutions that way you can't go wrong
<shevy> yay
<freezevee> no but when you get somewhere and it takes you days (due to inexperience) you can't just ditch it and start over with another solution
<_mh_> sevenseacat: even better put.
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
yayfoxes_ has quit [Ping timeout: 252 seconds]
bttf has joined #ruby
whoojemaflip has joined #ruby
yayfoxes_ has joined #ruby
<_mh_> does every other request for help have to turn into meta discussions about answers? :/
<freezevee> anyway, I got enough good suggestions here that I should try
<sevenseacat> yes, you should.
<sevenseacat> _mh_: and how did that make you feel?
<sphex> freezevee: maybe we could pick a way for you by voting? I guess you shouldn't fork since it's not needed in the script itself and systemd does not require it, but that's just my opinion I guess. but what if the channel voted on it?
<_mh_> freezevee: good luck finding one that suits you. Am sure you'll get through to one that works for you.
<shevy> _mh_ I blame systemd
<_mh_> sevenseacat: I'm no fan of meta discussions ;)
devoldmx_ has quit [Read error: Connection reset by peer]
<sevenseacat> sometimes they're important to determine a direction
Miron has joined #ruby
<freezevee> thanks, I got enough feedback
<sevenseacat> but usually it's rehashing the same old shit
<_mh_> shevy: No experience with it, but what you hear around the net it seems sensible to blame systemd to just be on the safe side.
robbyoconnor has joined #ruby
devoldmx has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
<_mh_> sevenseacat: yeah, that's why I dislike them. Sometimes they are important, but most of the time, it's the same stuff in an endless loop.
zacstewart has joined #ruby
wildroman2 has joined #ruby
<sevenseacat> yeeeeeeep
avelldiroll has quit [Ping timeout: 252 seconds]
<sevenseacat> ah well. all solved for now.
Guest85 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<shevy> we want more meta discussions
lavros has joined #ruby
devoldmx has joined #ruby
lessless has quit [Ping timeout: 252 seconds]
Guest85 has left #ruby ["Textual IRC Client: www.textualapp.com"]
Guest85 has joined #ruby
ndrei has joined #ruby
Miron has quit [Excess Flood]
<freezevee> it must be bothering when someone is reading everything in an irc room
hotpancakes has joined #ruby
<freezevee> but If you connect only for a few minutes, it's ok
Miron has joined #ruby
<sevenseacat> well yeah, if you're the type to turn up, ask your question, get your help and leave, its fine for you :P
opalraava has quit [Ping timeout: 252 seconds]
cbednarski has quit [Ping timeout: 252 seconds]
opalraava has joined #ruby
kstuart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Xeago has quit [Remote host closed the connection]
workmad3 has joined #ruby
revath has left #ruby [#ruby]
cbednarski has joined #ruby
RazorX has quit [Read error: Connection reset by peer]
<freezevee> sevenseacat: I wish I could help others
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<sevenseacat> then stick around, see what shakes out.
<freezevee> but my experience is not in a level that I could do so yet
RazorX has joined #ruby
<freezevee> I am reading SO questions and then stare the sky
<sevenseacat> you can learn just by observing
<freezevee> maybe, but then practice time is lost
<freezevee> so I am trying to create things, mostly for myself
<_mh_> freezevee: and also gather experience by seeing that there's often not just one answer. Often, the way people approach problems thrown at them is also something to learn from.
kies has joined #ruby
<freezevee> _mh_: of course, it's programming but there are best practices and standards too
lessless has joined #ruby
<_mh_> in my opinion one of the most important skills of a programmer: the method to approach an error you have no idea where it comes from.
Pupeno has joined #ruby
<sevenseacat> +1
devoldmx has joined #ruby
<freezevee> _mh_: this is analytical skills and comes with experience
devoldmx_ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<sevenseacat> some of it
jeanlinux has joined #ruby
<sevenseacat> some of it comes from critical thinking of error messages
<sevenseacat> some of comes from just typing the error into google
anisha has joined #ruby
hotpancakes has quit [Ping timeout: 265 seconds]
<freezevee> but there is also the chance to turn into a shitty programmer who writes code that works and noone understands
<_mh_> lol
<sevenseacat> you mean, like Ox0dea ? *runs*
<freezevee> like some project euler problems which run in 10ms and 1 hour, just different code from different programmers
<_mh_> freezevee: that's usually the type that blindly follows "standards".
<sevenseacat> oh, shitty - no hes not shitty
workmad3 has quit [Ping timeout: 248 seconds]
devoldmx_ has joined #ruby
<_mh_> sevenseacat: Ox0dea showed ingeniouity in his admittedly alienating piece of code two days ago.
_ixti_ has joined #ruby
<sevenseacat> oh he does it all the time
<_mh_> agreed
senayar has joined #ruby
<sevenseacat> today he wrote a caesar cipher without using alphanumeric characters
<freezevee> good coding is art
<_mh_> heck. I need to read my backlog
<sevenseacat> yesterday or the day before it was fizzbuzz
El3k0n has joined #ruby
coderhs has joined #ruby
<freezevee> I know noone cares about it, but this is the type of programmer that I want to become
devoldmx_ has quit [Read error: Connection reset by peer]
<_mh_> saw the fizzbuzz thing. Was very impressive.
<sevenseacat> we all care about our skills
<freezevee> that's why I usually ask things here like a 10 yr old
coderhs has quit [Read error: Connection reset by peer]
kfpratt has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<ddv> if you care about your skills you are already above the codemonkeys
<sevenseacat> yep.
devoldmx has quit [Ping timeout: 246 seconds]
<sevenseacat> was just about to say, we wouldn't even be here if we didnt care
<_mh_> codemonkey seems to be a very sought after job in big companies, though...
<freezevee> anyway, I am stopping the fluency here
<freezevee> and thanks
devoldmx_ has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kfpratt has joined #ruby
devoldmx has joined #ruby
astrobunny has joined #ruby
<sevenseacat> I know people hate me always talking about elixir, but I recently started learning it, and part of me doing so is hanging out in #elixir-lang. for a long time I understood very little. then I started understanding a little bit. now I can answer some (very simple) questions. levelling up skills.
<shevy> Ox0dea see? look at sevenseacat!
<_mh_> sevenseacat: hmm, elixir?
zacstewart has quit [Ping timeout: 256 seconds]
<shevy> the mystical elixir that turns the cat into a genius-cat
<sevenseacat> I promise I'll stop mentioning elixir.
blackmesa has joined #ruby
psy_ has quit [Ping timeout: 256 seconds]
ta has quit [Remote host closed the connection]
<sevenseacat> but I find it more interesting than ruby lately >_>
<_mh_> sevenseacat: am actually just curious.
<shevy> :(
devoldmx has quit [Read error: Connection reset by peer]
<_mh_> I find it always important to explore new programming languages.
<ddv> sevenseacat: write a book about it :)
<sevenseacat> _mh_: is a pretty new functional programming language, on the erlang vm. syntax is a lot like ruby.
devoldmx has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
<sevenseacat> ddv: ;) ;) ;)
<ddv> :)
<_mh_> it always revolutionizes the way you write and structure your code.
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sphex> holy ****. Kernel is included in every class, and all those "builtins functions" are actually self method calls?
<_mh_> those two years of haskell... I wouldn't want to miss the experience for my ruby code.
<sevenseacat> sphex: aye.
Scroff has joined #ruby
white_bear has joined #ruby
emilkarl has quit [Quit: emilkarl]
psy_ has joined #ruby
<_mh_> sevenseacat: Made me curious. Going to have a look at it when I find time. Thanks for the pointer
<sevenseacat> strictly speaking, I think Kernel is included in Object
<sphex> it all makes sense now. methods and Constants. there's nothing else.
mike___1234 has joined #ruby
<_mh_> for now though... back to office routine and meetings. afk
zacstewart has joined #ruby
<sevenseacat> so you can still have BasicObject without it
<maloik> yay, rails 423 + squeel is bugged :(
hotpancakes has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
<maloik> it may as well be monday
dented42 has joined #ruby
devoldmx has joined #ruby
RegulationD has joined #ruby
ferr has joined #ruby
<shevy> >> BasicObject.methods.size
<ruboto> shevy # => 100 (https://eval.in/390230)
<shevy> hmm
Xeago has joined #ruby
<shevy> somehow when I start irb; I get a much higher number for that
<Ox0dea> >> BasicObject.instance_methods.size
<ruboto> Ox0dea # => 8 (https://eval.in/390231)
<sevenseacat> BasicObject should have much fewe... yeah.
<sphex> dammit. it doesn't all make sense anymore. oh wait.. yess.. classes inherit from BasicObject.. or superclass. dammit.
<sevenseacat> it goes BasicObject -> Object -> everything else
drefined has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx_ has joined #ruby
dumdedum has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has quit [Read error: Connection reset by peer]
gagrio_ has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
eGGsha has joined #ruby
RegulationD has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
vdamewood has joined #ruby
revath has joined #ruby
olistik has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
vasilakisfil_ has joined #ruby
Hobogrammer has joined #ruby
emilkarl has joined #ruby
emilkarl has quit [Client Quit]
emilkarl has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
kies has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
kies has joined #ruby
emilkarl has quit [Client Quit]
rdark has joined #ruby
tno has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Hounddog has joined #ruby
dumdedum has quit [Ping timeout: 256 seconds]
bayed has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<sphex> sevenseacat: I can see Kernel methods in BasicObject.private_methods... this is confusing the hell out of me. :/
devoldmx has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<sphex> ohhh.. instance_methods I should be looking at
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
sharpmachine has joined #ruby
dgutierrez1287 has joined #ruby
symm- has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
VictorBjelkholm has joined #ruby
devoldmx has joined #ruby
DopeBot has joined #ruby
zacstewart has quit [Ping timeout: 272 seconds]
devoldmx has quit [Read error: Connection reset by peer]
DopeBot has quit [Remote host closed the connection]
devoldmx has joined #ruby
<Ox0dea> sphex: For reference, you were seeing all those methods because BasicObject is a class, and classes are modules.
zacstewart has joined #ruby
jmhmccr has quit [Quit: Connection closed for inactivity]
GentleBot has joined #ruby
<Ox0dea> Rather, Class itself is a module.
sharpmachine has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
joonty has joined #ruby
devoldmx has joined #ruby
dgutierrez1287 has quit [Ping timeout: 248 seconds]
<apeiros> Class is a Class
<apeiros> it inherits from Module
Rakunh0 has joined #ruby
<apeiros> /pedantry ;-)
k3asd` has joined #ruby
GentleBot has quit [Client Quit]
<Ox0dea> >> Class.is_a?(Module)
<ruboto> Ox0dea # => true (https://eval.in/390234)
<Ox0dea> ^_^
<apeiros> oh, well, silly pedantry - Class being a Class, and Class inheriting Module of course makes Class a Module
<Ox0dea> But I take your point.
langlands has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<apeiros> yeah, it's early, it's hot, and <insert random other excuse> :)
devoldmx has joined #ruby
<adaedra> Here, take mine: .
<Ox0dea> sphex: havenwood put it quite succinctly the other day:
<Ox0dea> >> [Class.is_a?(Module), Class.is_a?(Object), Module.is_a?(Class), Module.is_a?(Object), Object.is_a?(Class), Object.is_a?(Module)].all?
<ruboto> Ox0dea # => true (https://eval.in/390235)
j4cknewt has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
arup_r has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
hotpancakes has joined #ruby
chthon has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
ralku has joined #ruby
einarj has joined #ruby
<sphex> Ox0dea: okay yeah.. I think I get it now WRT Kernel methods. an object's class and superclass both end up with Object as a parent, and include Kernel stuff. and that must be what makes those Kernel methods available both directly in the class' body and in the method bodies...
<sphex> took me long enough
pwnz0r has quit [Remote host closed the connection]
<sphex> apeiros: thanks for that clarification, it was confusing me
troulouliou_dev has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
avelldiroll has joined #ruby
devoldmx_ has joined #ruby
abuzze has quit []
hotpancakes has quit [Ping timeout: 248 seconds]
dumdedum has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea> sphex: You can use Object#method and Method#owner to figure out where exactly things are coming from.
<Ox0dea> >> b = BasicObject; b.methods.map { |m| b.method(m).owner }.uniq
<ruboto> Ox0dea # => [Class, Module, Kernel, BasicObject] (https://eval.in/390236)
mradmacher has joined #ruby
<Ox0dea> In other words, BasicObject*s* are simple, but BasicObject itself is as featureful as any other class.
langlands has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Read error: Connection reset by peer]
micmus has joined #ruby
devoldmx has joined #ruby
fabrice31_ has joined #ruby
peter_paule has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GreatSUN has joined #ruby
<GreatSUN> hi all
devoldmx has joined #ruby
n008f4g_ has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
<adaedra> I'd prefer a smaller sun today.
<Ox0dea> Small things can be great.
eGGsha has joined #ruby
Aswebb_ has quit []
<sphex> Ox0dea: oh yeah.. thanks for the infos.
devoldmx_ has joined #ruby
<Ox0dea> Sure thing.
<GreatSUN> can someone of you guys tell me if there is an option to find out which version of a gem matches the current installed ruby version via gem command without trying to install ?
Alina-malina has joined #ruby
Scrofff has joined #ruby
Scroff has quit [Ping timeout: 248 seconds]
Scroff has joined #ruby
devoldm__ has joined #ruby
<shevy> GreatSUN I think many gems won't have that information
devoldmx_ has quit [Read error: Connection reset by peer]
matp has joined #ruby
CloCkWeRX has quit [Ping timeout: 246 seconds]
<shevy> a .gemspec file is often used to create a .gem file
zacstewart has quit [Ping timeout: 255 seconds]
<Ox0dea> Gems can specify a required Ruby version in their .gemspecs, but most don't.
krz has quit [Read error: Connection reset by peer]
<shevy> in that .gemspec file, the gem author can specify certain dependencies and requirements, for instance:
<shevy> s.rubygems_version = "2.4.8"
devoldmx has quit [Ping timeout: 264 seconds]
<shevy> individual versions of gems can be specified such as by doing:
devoldm__ has quit [Read error: Connection reset by peer]
<shevy> s.add_dependency 'foobar', '>= 0.0.6' # this will require at least version 0.0.6 or higher
devoldmx has joined #ruby
<ytti> i think encouraged use is add_runtime_dependence
<ytti> dependency
TheHodge has joined #ruby
<Ox0dea> shevy: The question was about Ruby's version.
ralku is now known as ralku[away]
<shevy> Ox0dea talk to him not me ok?
Scrofff has quit [Ping timeout: 246 seconds]
<adaedra> õ_o
<Ox0dea> Not sure what that was about, but all right.
<shevy> because we have had similar problems in the past
<sevenseacat> shevy: Ox is pointing out that you asked a different question than was asked
<sevenseacat> *you answered
devoldmx_ has joined #ruby
vdamewood has joined #ruby
<shevy> I don't feel this to be the case in any way
devoldmx has quit [Read error: Connection reset by peer]
psy_ has quit [Ping timeout: 244 seconds]
<adaedra> then ask to precise the question
<shevy> you do that if you got a problem adaedra; I don't have that problem in the slightest
lsmola has joined #ruby
zacstewart has joined #ruby
<adaedra> >_>
psy_ has joined #ruby
abuzze has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Leaving...]
devoldmx has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
Dreamer3 has joined #ruby
langlands has joined #ruby
Musashi007 has joined #ruby
hemanth has joined #ruby
devoldmx has joined #ruby
jas02 has left #ruby [#ruby]
kfpratt has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
shoutsid has joined #ruby
senayar has quit [Remote host closed the connection]
axl_ has joined #ruby
ralku[away] is now known as ralku
devoldmx has joined #ruby
krz has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
whiteline has quit [Read error: Connection reset by peer]
devoldm__ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has quit [Ping timeout: 256 seconds]
whiteline has joined #ruby
devoldm__ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
devoldmx has joined #ruby
ahmetkapikiran has joined #ruby
senayar has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
GnuYawk has quit [Quit: WeeChat 1.0]
charliesome has quit [Client Quit]
devoldmx has joined #ruby
rubie has quit [Remote host closed the connection]
phale has joined #ruby
<phale> hello fellow rubyists
<phale> what are we programming today?
devoldmx has quit [Read error: Connection reset by peer]
devoldm__ has joined #ruby
charliesome has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
lkba_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
skade has joined #ruby
charliesome has quit [Client Quit]
devoldm__ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
MrJiks has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
workmad3 has joined #ruby
<yorickpeterse> morning
<adaedra> greetings yorickpeterse
<GreatSUN> ok guys
devoldmx_ has quit [Read error: Connection reset by peer]
<GreatSUN> I just had a meeting, so sorry for not answering
devoldmx has joined #ruby
<GreatSUN> but the main thing I saw in your messages was, that a .gemspec file might help
<phale> I have a thinkpad
<GreatSUN> but to be able to access this, I would have to have the gem somewhere on my disk and not in a gemrepo, right?
_joes_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
mello has quit [Ping timeout: 252 seconds]
<adaedra> GreatSUN: what are you trying to do, exactly?
iwishiwerearobot has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
Rollabunna has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
devoldmx has joined #ruby
iwishiwerearobot has quit [Client Quit]
TinkerTyper has quit [Ping timeout: 244 seconds]
<phale> hes trying to act cool by becoming a gem developer
<phale> i understand him
<Ox0dea> GreatSUN: You can do `gem list -ra '^rake$'` to get a list of every version of rake, then, for instance, `gem spec -rv 0.4.8 rake` to get Rake v0.4.8's specification.
<adaedra> -_-
devoldmx has quit [Read error: Connection reset by peer]
marr has joined #ruby
devoldmx has joined #ruby
<Ox0dea> It's definitely not a good idea, but it would nevertheless be nice if something like this existed.
<Ox0dea> "Tell me which is the most recent version of this gem I can use with my current Ruby."
startupality has joined #ruby
<Ox0dea> It's regrettable that such a thing should ever be necessary, but the world is not a perfect place.
freezevee has quit []
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpablo_ has joined #ruby
CloCkWeRX has joined #ruby
devoldmx_ has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
Xeago has joined #ruby
hotpancakes has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
devoldm__ has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jbw has joined #ruby
Xeago_ has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
sharpmachine has joined #ruby
devoldm__ has quit [Read error: Connection reset by peer]
auzty has quit [Quit: Leaving]
<ddv> Ox0dea: provide a patch if you find it regrettable
devoldmx has joined #ruby
peter_paule has joined #ruby
Karpah has joined #ruby
juanpablo_ has quit [Ping timeout: 255 seconds]
phale has left #ruby ["Leaving"]
<Ox0dea> ddv: Pardon? I can't patch the fact that not everybody uses the most up-to-date version of the software they use.
platzhirsch has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
<ddv> Ox0dea: nice straw man you put up there
kstuart has quit [Quit: WeeChat 1.2]
wallerdev has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
olistik has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
balazs has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
Alina-malina has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
<Ox0dea> I suspect you've misinterpreted something I've said.
sevenseacat has quit [Ping timeout: 276 seconds]
dfockler has joined #ruby
last_staff has joined #ruby
micmus has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
devoldmx_ has joined #ruby
shoutsid has quit []
devoldmx has quit [Read error: Connection reset by peer]
Pupeno_ has joined #ruby
Pupeno has quit [Read error: Connection reset by peer]
doertedev has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
balazs has quit [Ping timeout: 250 seconds]
dfockler has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
codecop has quit [Quit: Išeinu]
devoldmx has quit [Read error: Connection reset by peer]
sharpmachine has quit [Ping timeout: 256 seconds]
xrlabs has joined #ruby
peter_paule has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
futilegames has joined #ruby
howdoicomputer has joined #ruby
Marisa has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
ralku has quit [Ping timeout: 272 seconds]
zacstewart has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby
Xeago_ has quit [Remote host closed the connection]
devoldmx_ has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
astrobunny has joined #ruby
<txdv> shevy: i do reside in germany
<txdv> im just running a server at my parents place cause the internet is cheap and good as fuck
devoldmx has quit [Read error: Connection reset by peer]
<txdv> 100/100mbit for 15 euros a month
devoldmx has joined #ruby
hotpancakes has quit [Ping timeout: 252 seconds]
<iszak> txdv: watch out for the ToS
devoldmx has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
* djellemah falls on floor laughing. 1m/8m ADSL for 50 euros per month over here.
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
JohnBat26 has joined #ruby
Xeago has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
tvw has joined #ruby
mister_s_ has joined #ruby
jeanlinux has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
eGGsha has joined #ruby
howdoicomputer has quit [Quit: WeeChat 1.2]
olistik has joined #ruby
Pwnna has quit [Ping timeout: 252 seconds]
howdoicomputer has joined #ruby
howdoicomputer has quit [Client Quit]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
devoldmx_ has joined #ruby
sgambino has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<txdv> iszak: terms of service?
<yorickpeterse> 100/100 for 50/mnth :<
<yorickpeterse> though it's fiber
<txdv> i can get 500/150 for 25 euros
Guest85 has quit [Ping timeout: 272 seconds]
<ddv> I have 500/500 for 55 euros
<txdv> wow
rubie has joined #ruby
<txdv> what country?
<txdv> korea?
devoldmx has joined #ruby
<txdv> or a google city?
<ddv> netherlands
devoldmx_ has quit [Read error: Connection reset by peer]
<txdv> i live like 5 km away from the netherlands
zacstewart has joined #ruby
howdoicomputer has joined #ruby
<bnagy> I hate you all
<bnagy> love from Kathmandu
khorne has joined #ruby
<GreatSUN> Ox0dea: thanks, that helped a lot
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea> GreatSUN: I'm looking into how best to do it with the RubyGems API.
<txdv> ddv: what provider?
astrobunny has quit [Ping timeout: 264 seconds]
<ddv> vodafone fiber
howdoicomputer has quit [Client Quit]
devoldmx has quit [Read error: Connection reset by peer]
revath has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
VictorBjelkholm has quit [Read error: Connection reset by peer]
ta has joined #ruby
sdothum has joined #ruby
revath has joined #ruby
howdoicomputer has joined #ruby
bruno- has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
mister_solo has joined #ruby
howdoicomputer has quit [Client Quit]
<theahindle> bundler is to ruby what composer is to PHP?
howdoicomputer has joined #ruby
jimms has joined #ruby
charliesome has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<bnagy> is composer a cancerous blight?
<theahindle> No :P
skade has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Client Quit]
mister_s_ has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Client Quit]
devoldmx has joined #ruby
startupality has quit [Quit: startupality]
KetaPan has joined #ruby
<adaedra> that's pretty subjective
bruno- has quit [Ping timeout: 252 seconds]
pandaant has joined #ruby
RegulationD has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Melite has quit [Quit: Leaving]
VictorBjelkholm has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
oo_ has quit [Remote host closed the connection]
Indian has joined #ruby
jesterfraud has joined #ruby
lolmaus has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
peter_paule has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
zacstewart has quit [Ping timeout: 256 seconds]
pandaant has quit [Quit: Lost terminal]
Spami has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
Spami has quit [Client Quit]
Rollabunna has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
KetaPan has left #ruby [#ruby]
withnale_ has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
zacstewart has joined #ruby
Pwnna has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
peter_paule has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
blackmesa has quit [Quit: WeeChat 1.2]
vasilakisfil_ has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
howdoicomputer has joined #ruby
devoldmx has joined #ruby
_joes_ has joined #ruby
charliesome has joined #ruby
peter_paule has joined #ruby
User458764 has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse> theahindle: they're similar yes
devoldmx has quit [Read error: Connection reset by peer]
Ox0dea has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Olipro has joined #ruby
charliesome has quit [Client Quit]
User458764 has joined #ruby
Mighty has joined #ruby
devoldmx_ has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
lordkryss has joined #ruby
fsvehla has quit [Quit: fsvehla]
devoldmx_ has quit [Read error: Connection reset by peer]
devoldm__ has joined #ruby
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
revath has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 272 seconds]
devoldm__ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
revath has joined #ruby
eGGsha has joined #ruby
charliesome has joined #ruby
devoldmx_ has joined #ruby
blackmesa has joined #ruby
charliesome has quit [Client Quit]
fsvehla has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
krz has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
devoldmx has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has joined #ruby
michael_mbp has quit [Excess Flood]
howdoicomputer has quit [Quit: WeeChat 1.2]
ryba has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
howdoicomputer has joined #ruby
devoldmx has joined #ruby
hotpancakes has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
devoldmx has quit [Read error: Connection reset by peer]
futilegames has quit [Quit: futilegames]
devoldmx has joined #ruby
zacstewart has joined #ruby
revath has quit [Quit: Leaving.]
Ox0dea has joined #ruby
<Ox0dea> GreatSUN: Still about?
revath has joined #ruby
sharpmachine has quit [Ping timeout: 265 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Indian has quit [Ping timeout: 244 seconds]
Indian has joined #ruby
j4cknewt has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
hotpancakes has quit [Ping timeout: 244 seconds]
howdoicomputer has quit [Quit: WeeChat 1.2]
howdoicomputer has joined #ruby
devoldmx has joined #ruby
Mighty has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea> Well, for anybody who might ever need such a thing: https://gist.github.com/0x0dea/2eef9ab030ed8ef7574a
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
j4cknewt has quit [Ping timeout: 265 seconds]
DaniG2k has joined #ruby
dorei has joined #ruby
Rickmasta has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
Ox0dea has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Ox0dea has joined #ruby
revath has quit [Quit: Leaving.]
devoldmx has quit [Read error: Connection reset by peer]
revath has joined #ruby
devoldmx has joined #ruby
<Ox0dea> Do you think it'd be worthwhile to add an "install most recent compatible version" option to the CLI?
KetaPan has joined #ruby
<GreatSUN> Ox0dea: well yes
devoldmx has quit [Read error: Connection reset by peer]
Scroff has quit [Read error: Connection reset by peer]
<GreatSUN> Ox0dea: I just implemented something like this based on the output of gem -rv in my librarries
<GreatSUN> libraries
devoldmx has joined #ruby
<GreatSUN> Ox0dea: that's why I said thanks already
Scroff has joined #ruby
<GreatSUN> have to hurry now, hence I am late for an appointment, see ya later guys
Karpah is now known as sevenseacat
ahmetkapikiran has joined #ruby
devoldmx_ has joined #ruby
<Ox0dea> GreatSUN: Directly using the API is more sensible than parsing its output, but all right. I'm glad you got something working.
devoldmx has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 252 seconds]
<_blizzy_> well, I finished the bot.
howdoicomputer has quit [Quit: WeeChat 1.2]
howdoicomputer has joined #ruby
<Ox0dea> _blizzy_: What sort of intelligence did you give it?
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<_blizzy_> Ox0dea, i'm not sure how to answer that question.
<Ox0dea> _blizzy_: It... battles, does it not?
<_blizzy_> Ox0dea, yes.
r_rios has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
KrzaQ has quit [Disconnected by services]
<Ox0dea> _blizzy_: Well, does it just use its moves at random?
pengin has joined #ruby
KrzaQ has joined #ruby
<_blizzy_> Ox0dea, no, it checks for the strongest move, considering type matchup.
devoldmx has quit [Read error: Connection reset by peer]
<_blizzy_> or, it'll switch out if it has a weak matchup.
lkba has joined #ruby
devoldmx has joined #ruby
Akagi201 has quit [Remote host closed the connection]
<Ox0dea> If that's the extent of its thinking, I don't reckon it'll do very well. It's a start, of course.
Akagi201 has joined #ruby
<Ox0dea> The metagame runs deep, my friend.
revath has quit [Quit: Leaving.]
devoldmx has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Quit: WeeChat 1.2]
devoldmx has joined #ruby
revath has joined #ruby
lkba_ has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
peter_paule has quit [Ping timeout: 272 seconds]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Akagi201 has quit [Ping timeout: 264 seconds]
Indian has quit [Ping timeout: 265 seconds]
howdoicomputer has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
senayar has quit [Remote host closed the connection]
lkba has quit [Remote host closed the connection]
khebbie has joined #ruby
ndrei has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
pengin has quit [Remote host closed the connection]
revath has quit [Ping timeout: 276 seconds]
IanV0rn2341 has joined #ruby
Rollabunna has joined #ruby
KetaPan has quit []
devoldmx has quit [Read error: Connection reset by peer]
rubie has quit [Remote host closed the connection]
Scroff has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
rubie has joined #ruby
Scroff has joined #ruby
lkba has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
sepp2k has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
juanpablo_ has joined #ruby
devoldmx has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Ping timeout: 276 seconds]
shredding has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
ta has quit [Remote host closed the connection]
gauke has quit [Quit: gauke]
zacstewart has joined #ruby
startupality has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
judofyr has joined #ruby
devoldmx has joined #ruby
juanpablo_ has quit [Ping timeout: 248 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<judofyr> hi folks
devoldmx has quit [Read error: Connection reset by peer]
sevenseacat has quit [Quit: Me dun like you no more.]
devoldmx has joined #ruby
peter_paule has joined #ruby
thelastinuit has joined #ruby
fabrice31 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
hotpancakes has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
fabrice31_ has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has quit [Remote host closed the connection]
the_doc has joined #ruby
phutchins1 has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby
devoldmx has joined #ruby
<judofyr> anyone here?
<judofyr> it's been a while since I've been to IRC. I mean, when I was IRC-ing we had both #ruby-lang *and* #ruby!
<the_doc> hi
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<adaedra> Days since someone talked about the merge: 0
sandstrom has joined #ruby
dionysus69 has joined #ruby
<judofyr> hah
<judofyr> is it working out?
<judofyr> I guess so
devoldmx_ has quit [Read error: Connection reset by peer]
<judofyr> why shouldn't it?
<judofyr> sooo. I'm supposed to do some stuff.
<judofyr> guess I'll have to do it.
<the_doc> first time for me also after LONG time in irc
devoldmx has joined #ruby
abyss has quit [Ping timeout: 272 seconds]
howdoicomputer has quit [Quit: WeeChat 1.2]
<txdv> irc used to big in my country
<txdv> to be*
howdoicomputer has joined #ruby
<txdv> now everyone is using skype
<judofyr> oh well, that happens :)
rodfersou has joined #ruby
<txdv> biggest irc channel had like 3k people joining it
<judofyr> so, anyone doing anything interesting in Ruby these days?
<txdv> the amount of flood when we won in some international basket ball game was pushing the bandwith
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<judofyr> my Ruby experiences have basically plateaued
<judofyr> which is fair enough
eGGsha has joined #ruby
balazs has joined #ruby
<txdv> to the limit
<txdv> what is a ruby experience judofyr ?
devoldmx has quit [Read error: Connection reset by peer]
<adaedra> ruby -e 'Experience'
devoldmx has joined #ruby
<judofyr> txdv: writing web apps in Rails/Sinatra/Camping/Padrino. writing/helping out with various template engines. hmm.
Alina-malina has joined #ruby
Guest85 has joined #ruby
skade has joined #ruby
<txdv> the moment someone mentions ruby it almost usually is web related
last_staff has quit [Quit: last_staff]
zacstewart has quit [Ping timeout: 255 seconds]
Guest85 has quit [Read error: No route to host]
devoldmx has quit [Read error: Connection reset by peer]
<judofyr> yup. I'm actually using Python today. mostly because of numerical analysis. but I'm also hooking it up with a web server.
<judofyr> Flask is pretty nice
devoldmx has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
zacstewart has joined #ruby
<judofyr> I use Ruby for two things these days: (1) web stuff (2) `pry` for calculations and/or basic text manupulations
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
balazs has quit [Ping timeout: 272 seconds]
Xeago has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby
revath has joined #ruby
Xeago has joined #ruby
ta has joined #ruby
<Ox0dea> >> require 'prime'; 1267.prime?
<ruboto> Ox0dea # => false (https://eval.in/390338)
<Ox0dea> judofyr: What does it mean?!
* judofyr contemplates
* judofyr (whether he should reveal it or not)
devoldmx_ has joined #ruby
* judofyr (because then the mystery would be gone)
devoldmx has quit [Read error: Connection reset by peer]
<Ox0dea> Is the dotted font of any significance?
<judofyr> nope
El3k0n has quit [Ping timeout: 248 seconds]
<judofyr> it ought to have a space in there though: 12 67
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
<judofyr> and it's related to my full name
abyss__ has joined #ruby
devoldmx has joined #ruby
<judofyr> meh, it's not a secret anyway
<judofyr> Ox0dea: look at the periodic table :)
blackmesa has quit [Ping timeout: 264 seconds]
<Ox0dea> Ah, duh.
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sharpmachine has quit [Ping timeout: 272 seconds]
<Ox0dea> Very clever.
devoldmx has quit [Read error: Connection reset by peer]
<Ox0dea> I suspect very few people are able to do that.
devoldmx has joined #ruby
<Ox0dea> And now I don't feel anywhere near as special for having hexadecimal initials.
<_blizzy_> aw :(
<Ox0dea> >> [13, 14].map { |n| 1267.to_s(n) }
<ruboto> Ox0dea # => ["766", "667"] (https://eval.in/390340)
<_blizzy_> everyone is special
<Ox0dea> judofyr: ^ Also kind of cool.
bigkevmcd has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
stoodfarback has quit [Ping timeout: 272 seconds]
skade has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 256 seconds]
skade has joined #ruby
revath has left #ruby [#ruby]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<shevy> txdv ah ok; for some reason I thought you were northeast of germany
Xeago has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
<txdv> shevy: i live in the most west possible spot in germany
devoldmx has joined #ruby
<shevy> oh, le france
Xeago has joined #ruby
bruno- has joined #ruby
<txdv> in germany
<txdv> dude
<txdv> :D
<adaedra> mmh?
<txdv> well maybe second
<txdv> aachen
<adaedra> They got Alsace and Lorraine again?
<shevy> oh
devoldmx has quit [Read error: Connection reset by peer]
<txdv> yeah, the sneaky nazis did it again adaedra
<shevy> Lorraine... I don't think I have read that name before
devoldmx has joined #ruby
<shevy> I only know Lothringen :D
<adaedra> txdv: they did not wait WW2 to do that.
<txdv> poland still doesnt have a europ
<shevy> not many ruby hackers from poland here; more from the Ukraine than from poland
devoldmx_ has joined #ruby
ItSANgo has joined #ruby
<txdv> why is ruby more popular in ukraine than in poland?
<adaedra> Poland prefers perl
<shevy> dunno, but they also have had some euroruby conf or so, which then got cancelled when they had the problem with russia
allomov has quit [Remote host closed the connection]
lessless has quit [Max SendQ exceeded]
skade has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
devoldm__ has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
DoubleMalt has joined #ruby
zacstewa_ has joined #ruby
Scroff has quit [Read error: Connection reset by peer]
zacstewart has quit [Ping timeout: 246 seconds]
<judofyr> isn't solnic from Polan?
Scrofff has joined #ruby
<arup_r> shevy: how many cats you now have ?
RegulationD has joined #ruby
mdw has joined #ruby
blackmesa has joined #ruby
devoldmx has joined #ruby
devoldmx_ has quit [Ping timeout: 246 seconds]
<judofyr> Ox0dea: yeah, I was lucky with my initials.
<Ox0dea> judofyr: It's much more than your initials, though.
<shevy> arup_r only one hear; but 3 in the flat of my parents, and they can climb over rooftops so it's not far away, perhaps 60 metres via roof
<shevy> *here
but3k4 has joined #ruby
<judofyr> Ox0dea: the other way around is cooler though: being able to spell your name with elements because they're named after you
<shevy> judofyr you are in Norway?
<judofyr> shevy: yes
devoldmx_ has joined #ruby
<shevy> cool
felixrsmith has quit [Quit: Konversation terminated!]
skade has joined #ruby
<judofyr> "Holmium" is named after Stockholm IIRC, not a distant cousin of mine :(
zacstewart has joined #ruby
<judofyr> shevy: how so?
zacstewa_ has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 246 seconds]
devoldm__ has quit [Ping timeout: 276 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
<shevy> dunno, I don't seem to see many from norway; lots of hackers in general from Germany; quite many from the UK and also Sweden... but norway and finland hmm
serivich has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
ldnunes has joined #ruby
<judofyr> Aslak (of Cucumber fame) is from Norway :)
<tobiasvl> Norway here o/
<judofyr> and tobiasvl of course!
RegulationD has quit [Ping timeout: 265 seconds]
<tobiasvl> of course!!!
<judofyr> never forget tobiasvl
devoldmx_ has quit [Read error: Connection reset by peer]
<tobiasvl> how can anyone forget me
peteykun has joined #ruby
peter_paule has quit [Ping timeout: 252 seconds]
<judofyr> I was actually tab-ing "rolfb", but he's maybe not IRC-ing at the moment
<shevy> weird
<shevy> I thought tobiasvl is from germany
devoldmx has joined #ruby
<tobiasvl> weird indeed
<shevy> must be the name "Tobias" that tricked me
mikecmpb_ has joined #ruby
skade has quit [Client Quit]
dionysus69 has quit [Quit: dionysus69]
<ljarvis> hai
ralku has joined #ruby
<judofyr> hai ljarvis
<ljarvis> ohai judofry
<ljarvis> how's things?
<judofyr> fine fine!
<judofyr> working hard (or hardly working)
chinmay_dd has quit [Remote host closed the connection]
<ljarvis> :)
mikecmpbll has quit [Ping timeout: 276 seconds]
devoldmx has quit [Read error: Connection reset by peer]
<ljarvis> How's the nim?
devoldmx has joined #ruby
<judofyr> slowly working on Bob, but haven't got much progress lately
<judofyr> also been playing with C++ and OpenGL lately
Xeago has quit [Remote host closed the connection]
Rollabunna has joined #ruby
<ljarvis> C++ after Nim. That's a true tragedy story there
devoldmx_ has joined #ruby
howdoicomputer has quit [Ping timeout: 264 seconds]
<judofyr> different use-cases though :)
devoldmx has quit [Read error: Connection reset by peer]
skade has joined #ruby
Xeago has joined #ruby
<judofyr> I pretty much have to finish Bob in order to speed up the compilation of my C++ project though :)
Indian has joined #ruby
<judofyr> (this is Bob btw: https://github.com/judofyr/bob)
renderful has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<judofyr> ljarvis: Nim is amazing for Bob btw. because it has so good C compat. you can call macros in C headers as they were regular functions.
<ljarvis> I did a really small amount of nim and I really liked what I saw, just don't have time for it at the moment
<ljarvis> bob looks good
<judofyr> (if anyone else wonders: https://github.com/judofyr/bob)
devoldmx has quit [Read error: Connection reset by peer]
Guest85 has joined #ruby
devoldmx has joined #ruby
Rollabunna has quit [Ping timeout: 248 seconds]
<judofyr> next step for Bob is to implement the actually "updating from a dependency database". which is kinda tricky because I need to (1) find files that have changes (2) run commands and (3) handle changes from the commands
stoodfarback has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
michael_mbp has quit [Excess Flood]
renderful has quit [Ping timeout: 244 seconds]
Xeago has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
krz has quit [Quit: WeeChat 1.0.1]
<judofyr> the C++ project is using ImGui: https://github.com/ocornut/imgui
<judofyr> which is actually really nice
<judofyr> immediate mode is a very nice way to handle GUIs
tkuchiki_ has quit [Remote host closed the connection]
<judofyr> I've actually been thinking about experimenting with a JavaScript approach
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
frem has quit [Quit: Connection closed for inactivity]
DaniG2k has quit [Quit: leaving]
<judofyr> oh, and I tried to add Skia (2D drawing library used in Google Chrome) to my C++ project: it requires 700MB of source code and eventually took 1.7GB after compilation.
michael_mbp has joined #ruby
<judofyr> (that is, the whole folder. haven't checked how big the library actually is)
<judofyr> pretty crazy
devoldmx_ has quit [Read error: Connection reset by peer]
shoutsid has joined #ruby
Scroff has joined #ruby
devoldmx has joined #ruby
Xeago has joined #ruby
skade has joined #ruby
juanpablo_ has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.2]
mdw has joined #ruby
<shevy> wow
<shevy> 1.7 gb
<shevy> what is that
<shevy> java?!?!
devoldmx has quit [Read error: Connection reset by peer]
<judofyr> it bundles everything
lxsameer has quit [Remote host closed the connection]
y0da has joined #ruby
<judofyr> it builds liblua, libnanomsg
devoldmx has joined #ruby
<judofyr> libjsoncpp
<judofyr> libjpeg
<judofyr> libwebp
<judofyr> 1GB of compiled files
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
Scrofff has quit [Ping timeout: 276 seconds]
<judofyr> statically compiled libraries wo-hoo!
but3k4 has quit [Ping timeout: 264 seconds]
devoldmx has quit [Read error: Connection reset by peer]
langland_ has joined #ruby
freerobby has joined #ruby
devoldmx has joined #ruby
<apeiros> judofyr: bobs readme has "Depenedency"
blackmesa has quit [Ping timeout: 276 seconds]
abyss__ has quit [Ping timeout: 244 seconds]
<judofyr> apieros: yeah. dependencies on Linux is a bit different I guess
abyss has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<shevy> you mean depenedencies
juanpablo_ has quit [Ping timeout: 246 seconds]
<apeiros> judofry: oh, so they're called depenedence there? :)
<shevy> depentencies
<apeiros> TIL ;-p
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
senayar has joined #ruby
<shevy> judofyr the swiss are a very correct people, so this typo is like a mortal offence!
langlands has quit [Ping timeout: 246 seconds]
mister_solo has quit [Ping timeout: 264 seconds]
ralku is now known as ralku[away]
blackmesa has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<judofyr> I haven't got automatic Text Replacement to work after tab-completion, so I actually have to write "apieros" out by hand
<shevy> oh yeah
<shevy> the greek apieros dude
<shevy> he hasn't been here in ages
<shevy> wait... judofyr you actually mean, you did indeed mispell apeiros back then?
<judofyr> shevy: I've been misspelling apieros for years
<ljarvis> :)
<ljarvis> apieros and judofry
<ljarvis> and some guy called inkjet
devoldmx has quit [Read error: Connection reset by peer]
<tobiasvl> don't people tab complete
<judofyr> #ruby-lang/2010-01-01_irc.freenode.net.txt: 223:22:33 Judofyr: right apieros?
devoldmx has joined #ruby
Guest85 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<judofyr> ah, inkjet
<ljarvis> tobiasvl: it's a running joke now
<ljarvis> judofyr: rip
<judofyr> #ruby-lang/2010-12-15_irc.freenode.net.txt: 18:20 Judofyr: inkjet *is* a nice one though
<ljarvis> into the history of awful aliases he goes
<judofyr> jlarvis works
devoldmx has quit [Read error: Connection reset by peer]
<ljarvis> :D
<shevy> wow
<shevy> 5 years ago
<shevy> even from a channel that no longer exists, thanks to jhass!
devoldmx has joined #ruby
Brom has joined #ruby
<shevy> jlarvis... jerome larvis... ljarvis ... leeroy jarvis ... hmm
<judofyr> 2010-01-01 is actually the oldest log I have on this machine
chipotle has joined #ruby
krz has joined #ruby
dgutierrez1287 has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<judofyr> so yeah, apieros might be even older
devoldmx has joined #ruby
<judofyr> actually: 22:33 Judofyr: erihk: we're good at nick mutilations here
<judofyr> so yeah, it's even older
<shevy> lol
<shevy> good old erikh
<shevy> he was the ruby-midi guy or? the one with the keyboard
chinmay_dd has joined #ruby
atomical_ has joined #ruby
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<judofyr> dunno
houhouli_ has quit [Remote host closed the connection]
<judofyr> I liked him thoug
<judofyr> though*
<ljarvis> erik is cool. He's gone the way of the gopher
atomical has quit [Ping timeout: 248 seconds]
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
eGGsha has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
devoldmx has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
devoldmx has joined #ruby
djellemah has quit [Quit: Leaving]
djellemah has joined #ruby
devoldmx_ has joined #ruby
tvw has quit [Remote host closed the connection]
poikon has quit [Quit: Connection closed for inactivity]
Jackneill has joined #ruby
sharpmachine has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
<judofyr> oh well
hotpancakes has joined #ruby
aamador has joined #ruby
ndrei has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 255 seconds]
skade has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
allomov has joined #ruby
devoldmx_ has joined #ruby
sharpmachine has quit [Ping timeout: 248 seconds]
pandaant has joined #ruby
startupality has quit [Quit: startupality]
ralku[away] is now known as ralku
hotpancakes has quit [Ping timeout: 276 seconds]
devoldmx_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.2]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
JDiPierro has joined #ruby
sgambino has joined #ruby
Jackneill has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
devoldmx has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Jackneill has joined #ruby
tflat has quit []
Xeago has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
<yorickpeterse> amazed nobody messed up my name so far
<yorickpeterse> (that I can remembeR)
devoldmx has joined #ruby
nofxx has quit [Ping timeout: 264 seconds]
mister_solo has joined #ruby
ralku is now known as ralku[away]
Igorshp has quit [Remote host closed the connection]
devoldmx_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
GarethAdams has quit [Ping timeout: 252 seconds]
<jhass> that's because it's so long that everybody is like "oh fck it, there must be tab com... oh hey it works!"
Jackneill has quit [Remote host closed the connection]
<yorickpeterse> all planned
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
Indian has quit [Ping timeout: 244 seconds]
<Ox0dea> 2015-06-29 10:05:03 consmans oops also yorikpeterse and sevenseacat
<shevy> yorik!
sdwrage has joined #ruby
<pontiki> "if you need something screwed up, call shevy" ??
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
allomov_ has joined #ruby
SOLDIERz has joined #ruby
senayar_ has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
ralku[away] is now known as ralku
<shevy> hey
<shevy> my ruby code usually works!
devoldmx has joined #ruby
senayar has quit [Read error: Connection reset by peer]
<txdv> i want to see your .bash_aliases file
<shevy> I can assure you that it is way too boring to read
<bougyman> my code only works for me
<bougyman> if someone else tries to run it... never.
<shevy> for instance, one alias is "rb" which is an alias to "ruby"
<pontiki> now there's security
<txdv> shevy: you got 5k of them
<txdv> of course a single one is boring
Rollabunna has joined #ruby
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
<txdv> the accumultaion of so many is the interesting part
<pontiki> i have an alias "gacp"
<shevy> it just grows over a time span of +10 years txdv!
GarethAdams has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
m4rCsi has joined #ruby
devoldmx has joined #ruby
<bougyman> shevy: same, here.
<bougyman> but I still don't have too many.
<shevy> \o/
<bougyman> most recently added: alias рвьш='hdmi'
<shevy> yeah, new additions here slowed down tremendously
allomov has quit [Ping timeout: 264 seconds]
<bougyman> for when my kbd is in ru-mode.
Brom has quit [Quit: Brom]
freerobby has quit [Quit: Leaving.]
<txdv> lol bougyman
<txdv> so basically the russian letters which happen to be there
<Ox0dea> alias ws="(tr '\na-z' '\0-\32' | od -An -td1 -w1 | paste -sd + | bc) <<<"
<txdv> "рвьш" is probably nonsense
<txdv> what does paste do
devoldmx_ has joined #ruby
<shevy> the russians should adopt latin character set
howdoicomputer has joined #ruby
Xeago has quit [Remote host closed the connection]
<bougyman> txdv: yeah, when I unsuspend sometimes my laptop monitor is all black and the hdmi doesn't engage, so i'm typing 'in the blind'
Igorshp has joined #ruby
chinmay_dd has quit []
<bougyman> I was so frustrated one day, typing hdmi over and over again
devoldm__ has joined #ruby
Xeago has joined #ruby
<bougyman> .til I realized i'd been typing рвьш
kobain has joined #ruby
devoldmx has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 272 seconds]
<shevy> hehe
devoldm__ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<pontiki> better living through aliases
peteykun has quit [Quit: Leaving]
Scrofff has joined #ruby
devoldmx_ has quit [Ping timeout: 256 seconds]
<Ox0dea> My one prints its argument's "word sum".
howdoicomputer has quit [Ping timeout: 255 seconds]
rbennacer has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Ox0dea> I compulsively add up words throughout the day, and I like to be able to quickly check that I got it right.
ahmetkapikiran has quit [Quit: ahmetkapikiran]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
tkuchiki_ has joined #ruby
phutchins1 has quit [Ping timeout: 250 seconds]
<Ox0dea> This is a little neurotic, but I actually don't use that alias; my command_not_found_handle() does the same thing.
a346 has joined #ruby
Scroff has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
ta has joined #ruby
devoldmx has joined #ruby
RegulationD has joined #ruby
devoldmx_ has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
rubie has joined #ruby
devoldmx_ has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
ahmetkapikiran has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
devoldmx has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
xrlabs has quit [Quit: This computer has gone to sleep]
RegulationD has quit [Ping timeout: 255 seconds]
Xeago has quit [Remote host closed the connection]
devoldmx has quit [Read error: Connection reset by peer]
rubie has quit [Ping timeout: 265 seconds]
Xeago has joined #ruby
freerobby has joined #ruby
futilegames has joined #ruby
allomov_ has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 248 seconds]
ralku is now known as ralku[away]
Guest85 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
tvb has joined #ruby
mdw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
avahey has joined #ruby
El3k0n has joined #ruby
malconis has joined #ruby
El3k0n has quit [Read error: Connection reset by peer]
futilegames has quit [Client Quit]
dorei has quit []
allomov has joined #ruby
Igorshp has quit [Ping timeout: 264 seconds]
tkuchiki_ has joined #ruby
ralku[away] is now known as ralku
futilegames has joined #ruby
Igorshp has joined #ruby
zacstewa_ has joined #ruby
sankaber has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
zacstewart has quit [Read error: Connection reset by peer]
victortyau has joined #ruby
y0da has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
intyl has joined #ruby
j4cknewt has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
balazs has joined #ruby
rbennacer has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
jhooker has joined #ruby
railsraider has quit [Quit: railsraider]
dblessing has joined #ruby
griffindy has joined #ruby
arup_r has quit [Remote host closed the connection]
j4cknewt has quit [Ping timeout: 264 seconds]
jimms has joined #ruby
balazs has quit [Ping timeout: 248 seconds]
_joes_ has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lolmaus has quit [Remote host closed the connection]
sharpmachine has joined #ruby
lolmaus has joined #ruby
failshell has joined #ruby
bmurt has joined #ruby
momomomomo has joined #ruby
swills has joined #ruby
tsvenson has quit [Quit: Leaving]
<judofyr> this image I'm working on has *negative* (gray-scale) color values
senayar_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
<judofyr> (it's actually an output from an electron microscope)
<judofyr> how is that even legal in TIFF?
<judofyr> everything seems to be legal in TIFF
hotpancakes has joined #ruby
blueOxigen has joined #ruby
casadei_ has joined #ruby
lva_ has joined #ruby
sharpmachine has quit [Ping timeout: 264 seconds]
cashnguns has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
lva_ has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
Akagi201 has joined #ruby
anisha has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
Akagi201_ has joined #ruby
hotpancakes has quit [Ping timeout: 264 seconds]
kfpratt has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
bullcitydev has joined #ruby
GitGud has quit [Ping timeout: 272 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jlast has joined #ruby
khebbie has joined #ruby
jlast has quit [Read error: Connection reset by peer]
xrlabs has joined #ruby
jlast_ has joined #ruby
gamename has joined #ruby
CloCkWeRX has joined #ruby
lxsameer has quit [Ping timeout: 248 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
kfpratt has joined #ruby
dgutierrez1287 has joined #ruby
Akagi201 has quit [Ping timeout: 264 seconds]
eggoez has quit [Ping timeout: 246 seconds]
allomov has quit [Remote host closed the connection]
Rollabunna has joined #ruby
krz has quit [Ping timeout: 244 seconds]
jpfuentes2 has joined #ruby
gamename has quit [Remote host closed the connection]
Aryasam has joined #ruby
eGGsha has joined #ruby
gamename has joined #ruby
eggoez has joined #ruby
dgutierrez1287 has quit [Ping timeout: 272 seconds]
sevenseacat has joined #ruby
zacstewart has joined #ruby
tkuchiki_ has joined #ruby
zacstewa_ has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brain_shim has joined #ruby
havenwood has joined #ruby
chthon has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
Rickmasta has joined #ruby
startupality has joined #ruby
howdoicomputer has joined #ruby
<yorickpeterse> ho ho ho, hacking YARD's linking system
ferr has quit [Read error: Connection reset by peer]
<yorickpeterse> so I can embed my own {fooobar} links
<yorickpeterse> one day I'm going to regret this
dhjondoh has quit [Quit: dhjondoh]
jerius has joined #ruby
skade has joined #ruby
<jhass> your last sentence lacks the "in" in front
<Darkwater> ininin
Pupeno has quit [Quit: Leaving...]
juanpablo_ has joined #ruby
gamename has quit [Remote host closed the connection]
<shevy> infront
gamename has joined #ruby
arup_r_ has joined #ruby
enebo has joined #ruby
<shevy> judofyr cool, what kind of electron microscope? cryo-electronmicoscopy? on organic samples?
_kfpratt has joined #ruby
Oka has quit []
howdoicomputer has quit [Ping timeout: 272 seconds]
krz has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<platzhirsch> Default way of having a ruby server run at startup on Linux? init.d?
bnizzle has joined #ruby
juanpablo_ has quit [Ping timeout: 276 seconds]
Kellin has quit [Ping timeout: 248 seconds]
bubbys has quit [Ping timeout: 265 seconds]
<adaedra> init.d, systemd, upstart, launchd, whatever floats your system
Kellin has joined #ruby
oddjob001 has joined #ruby
<shevy> ack
<oddjob001> hey all. how can I get the last line of output from an external command? Say you are simply running something like dir, or some command that gives ouput. How do I grab just the last line of that? Its not in a file
<shevy> oddjob001 result = `dir`
<shevy> last line, you can split that
<shevy> on "\n"
<shevy> then .last
startupality has quit [Ping timeout: 246 seconds]
<oddjob001> ah so just split on the last /n because that would get me everything after it
shredding has quit [Ping timeout: 272 seconds]
Muhannad has quit [Ping timeout: 272 seconds]
<oddjob001> yes ok. thanks shevy
JDiPierro has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
<shevy> yeah kinda; you may have to add a bit more code though perhaps, for instance, if that command fails, or does not exist, then handling result takes a bit more code
<adaedra> you can use each_line instead of split
<shevy> What I do often is to use this too: 2>&1, such as: result = `ruby -v 2>&1`
<jhass> or simply .lines.last
<adaedra> ah, lines, I was looking too far :p
<oddjob001> .lines.last really...
<jhass> really
<shevy> result = `ruby -v 2>&1` # => "ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]\n"
<oddjob001> woo ill try it.
<shevy> result = `rubye -v 2>&1` # => "sh: 1: rubye: not found\n"
_kfpratt has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
<shevy> I have no rubye!
<jhass> shevy: make an alias
tkuchiki_ has quit [Remote host closed the connection]
<shevy> haha... hmm
Igorshp has quit [Read error: Connection reset by peer]
<shevy> actually I do have one for that :)))
Igorshp has joined #ruby
rubie has joined #ruby
whippythellama has joined #ruby
kfpratt has joined #ruby
<oddjob001> jhass: worked perfectly. super simple too. thanks
<shevy> \o/
VictorBjelkholm has quit [Quit: Textual IRC Client: www.textualapp.com]
Scroff has joined #ruby
zacstewart has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
Scrofff has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Remote host closed the connection]
rbennacer has joined #ruby
fabrice31 has joined #ruby
chinmay_dd has joined #ruby
ralku is now known as ralku[away]
hinbody has joined #ruby
jimms has quit []
RegulationD has quit [Ping timeout: 255 seconds]
zacstewart has joined #ruby
<oddjob001> so jhass is there an easy way to get one line above that? the last line appears to be blank in most instances, returning an empty result
rubie has quit [Ping timeout: 265 seconds]
<jhass> oddjob001: .lines returns an array
<jhass> you can do whatever array operations on it
i8igmac has joined #ruby
<jhass> (like .reject'ing .strip.empty? lines...)
<shevy> oddjob001 [-1] and [-2] and [-3], just as you cant [0] and [1] and [2] from an Array
<shevy> erm; cant == count
<shevy> the heat here is killing me
<oddjob001> lol
<adaedra> damn heat
<oddjob001> ok. makes sense. I am newish to ruby. thanks both fo you
NeverDie has joined #ruby
Muhannad has joined #ruby
axl__ has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
arup_r_ has quit [Remote host closed the connection]
abuzze has quit []
jhooker has quit [Ping timeout: 248 seconds]
vdamewood has quit [Quit: Life beckons.]
Scrofff has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fmcgeough has joined #ruby
msnyon has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
Igorshp has joined #ruby
sross07 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jhooker has joined #ruby
Scroff has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
tagrudev has quit [Remote host closed the connection]
Indian has joined #ruby
mikecmpb_ is now known as mikecmpbll
Indian has quit [Changing host]
Indian has joined #ruby
ryba has quit [Ping timeout: 264 seconds]
jlast_ has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
zacstewart has quit [Ping timeout: 244 seconds]
kies^ has joined #ruby
revoohc has joined #ruby
failshel_ has joined #ruby
findaway has joined #ruby
jlast has joined #ruby
failshell has quit [Ping timeout: 248 seconds]
zacstewart has joined #ruby
mradmacher has quit [Quit: leaving]
genpaku has quit [Ping timeout: 255 seconds]
fantasticsid has quit [Read error: Connection reset by peer]
Kully3xf has joined #ruby
<Kully3xf> how do I loop a dynamic amount of times with for
<Kully3xf> i.e. ask user for how many times to loop
<Kully3xf> then for i in 0..loop do
yokel has quit [Ping timeout: 276 seconds]
<sevenseacat> you dont use for loops in ruby
sharpmachine has joined #ruby
<Kully3xf> what should I use to loop?
<Kully3xf> while?
juanpablo_ has joined #ruby
fantasticsid has joined #ruby
<sevenseacat> times, each, etc.
jpfuentes2 has joined #ruby
<Darkwater> Kully3xf: if you really need to loop a set number of times, the most ruby way to do it is to loop through a range I guess
<ddv> upto
hotpancakes has joined #ruby
genpaku has joined #ruby
<Kully3xf> ok
<jhass> er
<adaedra> var.times do ... end
<jhass> .times
yokel has joined #ruby
<ljarvis> ^
<sevenseacat> aye.
<Darkwater> yeah
<Darkwater> it really depends on what you want
<Darkwater> 5.times do something end # does something 5 times
<jhass> loop do; stuff; break if condition; end; if stuff determines whether you'll continue
<sevenseacat> for loops should be removed from the language.
<sevenseacat> IMO.
<Darkwater> (5..10).each do |n| puts n end # puts 5, 6, 7, 8, 9, 10
<ljarvis> meh, I think *all* we should have is for loops
<Darkwater> but in real applications you'd use stuff like arr.each
<jhass> Darkwater: 5.upto(10) do |n|
eggoez has quit [Ping timeout: 252 seconds]
<adaedra> meh, I think we remove everything and just use gotos.
<ljarvis> Darkwater: pointless range object is pointless
<ljarvis> +1 adaedra
<heftig> ljarvis: that's what the infant murderer is for
<ljarvis> goto goto
Papierkorb has joined #ruby
<ljarvis> heftig: for loops?
<heftig> shortlived objects
<ljarvis> ah
<ljarvis> aye
<ljarvis> that's a bit dark
sharpmachine has quit [Ping timeout: 244 seconds]
<ljarvis> but i agree
momomomomo has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
Macaveli has joined #ruby
<Darkwater> speaking of ruby, a few days ago I wrote this:
<Darkwater> if event[:criteria].each_pair.all? { |key, value| msg[key] == value }
<Darkwater> (ew damn that indenting sorry)
davedev24_ has joined #ruby
<Darkwater> checks if msg has the same keys (and matching values) as event[:criteria]
<ljarvis> event[:criteria].all?
<Darkwater> it's a hash
<ljarvis> so?
hotpancakes has quit [Ping timeout: 272 seconds]
<Darkwater> hm
chthon has quit [Ping timeout: 244 seconds]
Macaveli has quit [Client Quit]
<jhass> wut
chrissonar has quit [Remote host closed the connection]
<Darkwater> ah, didn't know that'd work
<jhass> please say either side is a superset of the other...
<Ox0dea> Darkwater: Um... Hash#==?
<jhass> because else it's just ==
<Darkwater> yeah, that's exactly what it checks
<Darkwater> it's not going to be equal
<Darkwater> msg will be a superset of the matching event criteria
<ljarvis> anyway, surely you can just use merge(other) == hash if you're checking for subsets
<Ox0dea> msg.to_set.superset?(event[:criteria].to_set)
<Ox0dea> Probably overkill, though.
<ljarvis> yeah I thought that too, agreed on overkill
charliesome has joined #ruby
ivanskie has joined #ruby
<adaedra> overkill is best kill
<Darkwater> hm, I'll use sets then
<Darkwater> don't want it to look too hacky
Spami has joined #ruby
<jhass> .all? is fine (if you strip the .each_pair.)
rdar has joined #ruby
<ljarvis> yeah I'd use that over sets
<Darkwater> oh okay
<ljarvis> or, use sets in the first place
<Ox0dea> Darkwater: It doesn't look hacky, you're just doing the wrong thing. :)
<ljarvis> but im guessing you want hashes
<Darkwater> yeah otherwise defining them would look ugly
<Ox0dea> Why not msg.merge(event[:criteria]) == msg?
<Darkwater> Ox0dea: it'
momomomomo has quit [Read error: Connection reset by peer]
<jhass> maybe just annotate or extract (def matches?(msg, criteria))
<Darkwater> s a superset, they're not equal
<Ox0dea> Read again.
* ljarvis points at ljarvis> anyway, surely you can just use merge(other) == hash if you're checking for subsets
<Darkwater> oh right, but that just looks ugly imo
<jhass> Ox0dea: unnecessary intermediate
<Darkwater> doesn't explain what it does
<Ox0dea> It explains what it does if you know what Hash#merge and Hash#== do...
maletor has joined #ruby
<Ox0dea> ljarvis: Sorry, not sure how I missed you having already suggested it.
_joes_ has joined #ruby
<Darkwater> it doesn't
dopie has joined #ruby
chipotle has joined #ruby
<ljarvis> I think all? is the best anyway
<jhass> ^
<Darkwater> I'm not trying to merge anything, I want to check something
Guest85 has left #ruby ["Textual IRC Client: www.textualapp.com"]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
anjen has joined #ruby
<Ox0dea> I grant that the #all? approach certainly reads better.
the_doc has quit [Quit: Leaving]
<Ox0dea> And yes, unnecessary intermediates are not best intermediates.
anisha has quit [Ping timeout: 246 seconds]
zacstewart has quit [Ping timeout: 252 seconds]
riotjones has quit [Quit: Leaving...]
ryba has joined #ruby
jude90 has joined #ruby
sei_ has joined #ruby
<Ox0dea> Hm... why does Hash#each_pair exist?
<jhass> because somebody thought it's a good idea at some point?
sei_ has quit [Client Quit]
<jhass> you're the one with the 0.49 Ruby
<Ox0dea> Ha.
penzur has joined #ruby
<Darkwater> because hash.each { |k, v| } isn't obvious, at least not to newcomers maybe?
<Ox0dea> What else could it possibly mean?
<ljarvis> there's each_key and each_value I guess they wanted to complete the list of uneccesary methods
zacstewart has joined #ruby
zotherstupidguy has quit [Ping timeout: 246 seconds]
<jhass> heh those are useful
n008f4g_ has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
<jude90> Has anyone patched a monkey patched to a activerecord adapter ?
<ljarvis> yeah i know i was being spiteful
eggoez has joined #ruby
<Ox0dea> jude90: Please try again.
<ljarvis> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<ljarvis> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
chinmay_dd has quit []
<Darkwater> each_key/value are useful imo
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Changing host]
zotherstupidguy has joined #ruby
Indian has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
howdoicomputer has joined #ruby
s2013 has joined #ruby
Soda has joined #ruby
<yorickpeterse> my favourite is people using "i"
<yorickpeterse> or "a"
<ljarvis> wat
<Darkwater> i a what
_whitelogger has joined #ruby
balazs_ has joined #ruby
drPoggs has joined #ruby
elektronaut has joined #ruby
<jhass> granted, it's kinda hard to come up with a good syntax for enums
Kully3xf has joined #ruby
sivoais_ is now known as sivoais
sivoais has quit [Changing host]
sivoais has joined #ruby
mister_solo has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
vondruch__ is now known as vondruch
Xeago_ has joined #ruby
sandstrom has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
toddperkinz has quit [Quit: Textual IRC Client: www.textualapp.com]
hotpancakes has joined #ruby
<shevy> perhaps I should do it like hanmac and use wxwidgets
bauruine has joined #ruby
prestorium has joined #ruby
Regulati_ has quit [Ping timeout: 255 seconds]
<slash_nick> Ox0dea: This has a 1/6 chance of never exiting... verrry different: https://gist.github.com/rthbound/7c7692a920137d2ff2f4
<adaedra> shevy: use the MFCs
<shevy> MFC?
<slash_nick> Ox0dea: whoops... 1/6 chance of exiting,e ver
balazs_ has quit [Ping timeout: 256 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nobitanobi has quit [Remote host closed the connection]
shadoi has joined #ruby
zacstewart has quit [Ping timeout: 265 seconds]
hotpancakes has quit [Ping timeout: 252 seconds]
eggoez has quit [Ping timeout: 256 seconds]
chouhoul_ has quit [Ping timeout: 250 seconds]
radialneon has joined #ruby
_kfpratt has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
kfpratt has quit [Read error: Connection reset by peer]
startupality has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
vyorkin has joined #ruby
renderful has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ebbflowgo has quit [Read error: Connection reset by peer]
allomov has joined #ruby
ebbflowgo has joined #ruby
dfockler has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
heyimwill has joined #ruby
jamesaxl has joined #ruby
<shevy> hanmac what's up with ya, haven't read from you in years
zacstewart has joined #ruby
<failshel_> im trying to test if a file is ruby code or not. i tried 'file foo' but that says its ASCII text. is there a way to test a file to figure out if it's ruby code or not? its for a git pre-commit
failshel_ is now known as failshell
<judofyr> failshell: try to parse it with the parser gem
<judofyr> wait
<jhass> or simply whitelist on name/extension
_kfpratt has quit [Read error: Connection reset by peer]
<judofyr> there's also a Ruby-flags which checks for syntax
einarj has quit [Remote host closed the connection]
skade has joined #ruby
<judofyr> ruby -c
eggoez has joined #ruby
<judofyr> ruby -c foo.rb # => Syntax OK
revath has joined #ruby
kfpratt has joined #ruby
<shevy> \o/
<judofyr> doesn't mean it *actually* is a Ruby file though
<judofyr> (as intended by the author)
<failshell> yeah it says a regular file has a correct syntax
<stoodfarback> failshell: Check out github's linguist: https://github.com/github/linguist
frenda has joined #ruby
jerius has quit [Quit: /quit]
<frenda> Hi there; Which one is better to install ruby on linux (Fedora): 1. by package manager 2. via RVM?
msgodf has quit [Ping timeout: 252 seconds]
Kully3xf_ has joined #ruby
<jhass> frenda: what are you installing ruby for?
<judofyr> (I've found ruby-install easier to use)
shinnya has joined #ruby
<jhass> are you going to need specific or multiple versions?
<stoodfarback> It's what github uses for language statistics, but you can use it to get the info of a single file as well.
Kully3xf_ has quit [Remote host closed the connection]
<frenda> jhass: To run this app: https://github.com/catarse/catarse
jerius has joined #ruby
Kully3xf_ has joined #ruby
<Ox0dea> "Cat arse"?
k3asd` has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
ralku[away] is now known as ralku
snockerton has joined #ruby
langlands has joined #ruby
JDiPierro has joined #ruby
judofyr has quit []
Pupeno has joined #ruby
Kully3xf has quit [Ping timeout: 276 seconds]
vyorkin has quit [Read error: Connection reset by peer]
<Kully3xf_> thanks for the help on my last problem, now I have a question I'm not sure if it's possible, but each one of the jobs I'm spawing in the loop takes 30+ minutes, if I have to do 40 of them that's too long
sandstrom has quit [Quit: My computer has gone to sleep.]
<Kully3xf_> how can I make it so instead of a loop, it spawns them all as individual jobs
<frenda> Ox0dea: I don't know! its developer are from Brazil; It's an opensource crowdfunding platform like www.indiegogo.com
jhooker has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 252 seconds]
<frenda> I think it means sth in ES
jhooker has joined #ruby
<jhass> frenda: you'll probably be fine with the system ruby, though they seem to test only against 2.2.2
mister_solo has joined #ruby
langland_ has quit [Ping timeout: 256 seconds]
<frenda> huh?
<frenda> I asked about best process to install ruby on Fedora!
<jhass> frenda: but I'd try the system (= package manager) ruby and replace the bundle install step with bundle install --deployment --without development test
zacstewart has quit [Remote host closed the connection]
tacotaco_ has joined #ruby
blueOxigen has quit [Ping timeout: 252 seconds]
tacit7 has joined #ruby
woodruffw has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
<frenda> jhass: Ah, What happens whith your replacement code?
bluOxigen has joined #ruby
<frenda> `bundle install --deployment --without development test`
sankaber has joined #ruby
Regulati_ has joined #ruby
ndrei has joined #ruby
<jhass> the --without stuff only skips installing a whole bunch of deps you ain't gonna need in production
jude90 has quit [Quit: Page closed]
<frenda> I prefer guys here to use `` when you drop a code!
<jhass> --deployment makes it so you don't install dependencies to a local site dir
rubie has joined #ruby
<jhass> er, don't install them system wide but to a local site dir I meant to write
rubie has quit [Client Quit]
Guest85 has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> frenda: and then you have people who copy them when running it ;)
sandstrom has joined #ruby
rcvalle has joined #ruby
howdoicomputer has joined #ruby
<jhass> mmh, meh, actually their Gemfile even forces 2.2.2
revdan has joined #ruby
anisha has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 250 seconds]
prestorium has quit [Ping timeout: 256 seconds]
<frenda> They will give an error in their machine; then they solve it, next time, they won't copy it! though I hate copy-pasting codes!
Zai00 has quit [Quit: Zai00]
vyorkin has joined #ruby
<jhass> oh, but fedora 22 already has 2.2.2 <3
<shevy> faster than debian!
<frenda> 2.2.2 --> this the version on my machine
iamninja has quit [Read error: Connection reset by peer]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
dumdedum has quit [Ping timeout: 256 seconds]
heftig_ is now known as heftig
<frenda> shevy: Fedora is more cutting edge!
<shevy> I sorta don't really know actually, I ended up compiling from source like an idiot :(
<shevy> but using ruby scripts \o/
<txdv> why is fedora more cutting edge?
ndrei has quit [Remote host closed the connection]
<frenda> Moving on the edge of technology!
ta has joined #ruby
<frenda> txdv: They are usually the first to test new technologies
Agoldfish has joined #ruby
IanV0rn2341 is now known as IanV0rn2341[away
<txdv> As in? the most recent versions of software?
langland_ has joined #ruby
<txdv> i thought ubuntu was
<jhass> txdv: you're trolling again...
<navs__> yea hence the name, they use versions of software you probably havent heard of
howdoicomputer has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
<frenda> I mean technologies, not new update! to have new updates instantly, I think Archlinux is the best
ralku is now known as ralku[away]
<navs__> gentoo is best linux
momomomomo has quit [Ping timeout: 276 seconds]
<jhass> ?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!
<navs__> ?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!
chinmay_dd has joined #ruby
langlands has quit [Ping timeout: 276 seconds]
<txdv> jhass: no, im not
ndrei has joined #ruby
<txdv> i use ubuntu because the ruby packages are newer than on debian!
<jhass> txdv: no arguing
momomomomo has joined #ruby
griffindy has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
jerius has quit [Quit: /quit]
<txdv> jhass: you are speaking false words and i can't even defend myself against that
<txdv> :(
<txdv> stop opressing me
[H]unt3r has joined #ruby
<jhass> !mute txdv
<jhass> take it elsewhere
DoubleMalt has quit [Remote host closed the connection]
bakednotfried has joined #ruby
bakednotfried has joined #ruby
<frenda> jhass: I used dnf (default package manager) to install ruby --> Total download size: 4.1 M Installed size: 13 M |||| I doubt it is a complete version of ruby; Is 4MB normal?!
ndrei has quit [Remote host closed the connection]
<jhass> frenda: we'll find out, just proceed for now
<adaedra> dnf? sounds like fedora, they love to split things in small packages
<miah> sounds like its compressed
bhorn1 has quit [Read error: Connection reset by peer]
<miah> the download size being 4mb, the installed size being 13mb
NeverDie has joined #ruby
<miah> i will say that my ruby 2.2.2 build is 85mb. but maybe the fedora package has split things up into like, ruby-dev, ruby-doc, etc.
ndrei has joined #ruby
<frenda> adaedra: These are installed packages: http://pastie.org/10268376
delianides has quit [Remote host closed the connection]
ralku[away] is now known as ralku
ralku is now known as ralku[away]
<adaedra> looks right to me
<miah> ya
ndrei has quit [Remote host closed the connection]
NeverDie has quit [Client Quit]
delianides has joined #ruby
<jhass> 21M for Ruby and 24M for the docs here
cscheib_ is now known as cscheib
stan has quit [Ping timeout: 246 seconds]
<jhass> but yeah, fedora splits a ton out of the upstream distribution
<frenda> miah: ruby-* http://pastie.org/10268379
<frenda> Ok
<frenda> thanks
NeverDie has joined #ruby
vyorkin_ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
zz_Outlastsheep is now known as Outlastsheep
krasnus has joined #ruby
hotpancakes has joined #ruby
frenda has left #ruby [#ruby]
delianides has quit [Ping timeout: 255 seconds]
yardenbar has quit [Quit: Leaving]
delianides has joined #ruby
ralku[away] has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
DroidBurgundy has joined #ruby
diegoviola has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
mrmargol_ has joined #ruby
baweaver has joined #ruby
mrmargolis has quit [Ping timeout: 246 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
fantasticsid has quit [Remote host closed the connection]
fantasticsid has joined #ruby
allomov_ has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has quit [Quit: Leaving]
<shevy> poor txdv
delianides has quit [Client Quit]
<shevy> he always gets the whip, from apeiros and jhass :D
vyorkin_ has quit [Remote host closed the connection]
towski_ has joined #ruby
<jhass> shevy: join #ruby-banned if you want to discuss it
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> oh why, will you ban me?
<theRoUS> which is considered better practice: putting defs into a modules eigenclass, or declaring them as module_function()s ?
allomov__ has joined #ruby
<jhass> shevy: if you don't follow that, yes
futilegames has quit [Quit: futilegames]
<shevy> oh ok please don't ban me
diegoviola has quit [Remote host closed the connection]
allomov has quit [Ping timeout: 246 seconds]
<jhass> theRoUS: ruby core uses module_function (which copies them to the singleton class), so there's that
nobitanobi has joined #ruby
fantasti` has joined #ruby
<theRoUS> jhass: aha. how about module-level attributes (not to be inherited via include) ?
allomov_ has quit [Ping timeout: 244 seconds]
diegoviola has joined #ruby
<jhass> I'd probably document that the module is not meant to be included or at least document that it'll use these variables when it is
andikr has quit [Remote host closed the connection]
fantasticsid has quit [Ping timeout: 264 seconds]
jcoe has joined #ruby
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thumpba has joined #ruby
<theRoUS> jhass: i've got one that is both supposed to be included (provide methods) *and* have module-wide variables
bigkevmcd has joined #ruby
gagrio_ has quit [Ping timeout: 264 seconds]
<jhass> mh, sounds a bit fishy, could you share it?
bigkevmcd has quit [Client Quit]
casadei_ has joined #ruby
bigkevmcd has joined #ruby
startupality has quit [Quit: startupality]
<theRoUS> jhass: not conveniently nor without embarrassment :-P
j4cknewt has joined #ruby
jobewan has joined #ruby
<jhass> nah, don't worry about the latter ;P
DexterLB has quit [Read error: Connection reset by peer]
IanV0rn2341[away is now known as IanV0rn2341
sulky has quit [Ping timeout: 250 seconds]
fmcgeough has quit [Remote host closed the connection]
fmcgeough has joined #ruby
lancetw has joined #ruby
sulky has joined #ruby
joonty has quit [Quit: joonty]
jhooker has quit [Ping timeout: 248 seconds]
DANtheBE- is now known as DANtheBEASTman
Hounddog has quit [Remote host closed the connection]
hotpancakes has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
vickleton has joined #ruby
jpfuente_ has joined #ruby
blueOxigen has joined #ruby
ferr has joined #ruby
allomov__ has quit [Ping timeout: 255 seconds]
DexterLB has joined #ruby
thumpba has quit [Quit: AFK]
ryba has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
msgodf has joined #ruby
spider-mario has joined #ruby
white_bear has quit [Quit: leaving]
jpfuentes2 has quit [Ping timeout: 276 seconds]
CloCkWeRX has quit [Remote host closed the connection]
JoshL has quit []
ndrei has quit [Ping timeout: 246 seconds]
atom3 has quit [Ping timeout: 277 seconds]
fmcgeough has quit [Quit: fmcgeough]
zendrix has joined #ruby
atom3 has joined #ruby
sandstrom has joined #ruby
hotpancakes has quit [Ping timeout: 244 seconds]
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
Regulati_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
alex88 has quit []
revath has quit [Ping timeout: 264 seconds]
ndrei has joined #ruby
micmus has joined #ruby
radialneon has quit [Read error: Connection reset by peer]
sdwrage has quit [Quit: Leaving]
Alayde has joined #ruby
jerius has joined #ruby
griffindy has joined #ruby
s2013 has joined #ruby
uber has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
eggoez has quit [Ping timeout: 256 seconds]
failshell has quit []
plains has quit [Quit: Leaving]
brain_shim has quit [Ping timeout: 246 seconds]
mrmargol_ has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
Spami_ has joined #ruby
eggoez has joined #ruby
niemcu has quit [Ping timeout: 252 seconds]
olistik has quit [Remote host closed the connection]
bigkevmcd has quit [Quit: Outta here...]
Spami_ has quit [Client Quit]
xrlabs has quit [Quit: This computer has gone to sleep]
Alayde_ has joined #ruby
bigkevmcd has joined #ruby
jlast has quit [Remote host closed the connection]
bricker has joined #ruby
fabrice31 has joined #ruby
<shevy> https://github.com/chneukirchen/styleguide/blob/master/RUBY-STYLE any parts where anyone would disagree with (the specific style there)?
<shevy> I think rubocop adheres to a slightly different one but I am not sure.
Alayde has quit [Ping timeout: 256 seconds]
Eiam has quit [Ping timeout: 276 seconds]
<jhass> rubocop adheres to the one of it's author, bbatsov
<jhass> in its default config that is
<jhass> didn't you post that one before?
<shevy> I am unaware of differences between these two
The_Phoenix has quit [Read error: Connection reset by peer]
<shevy> I shall vigorously note down the differences into a new file \o/
j4cknewt has quit [Remote host closed the connection]
<Senjai> Good morning ruby
zacstewart has joined #ruby
DroidBurgundy has quit [Ping timeout: 248 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
<shevy> nobody says hi... hi Senjai!
<Senjai> I always say hi? Or do you mean back?
Spami_ has joined #ruby
<Senjai> Occassionally I get a bregruding nod from jhass.
<eam> shevy: WHAT'S UP
baweaver has quit [Remote host closed the connection]
<jhass> THE SKY OR ELSE WE ALL WOULD MOSTLY LIKELY BE DEAD
rbennacer has quit [Remote host closed the connection]
<jhass> uhm, I mean
<jhass> hi
judofyr has joined #ruby
<adaedra> :o
podman has joined #ruby
howdoicomputer has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
uber has joined #ruby
<shevy> eam dunno, not much up yet... working on some biology thing (biopython has Restriction.EcoRI.site # => 'GAATTC' which I find pretty cool, -> http://biopython.org/DIST/docs/cookbook/Restriction.html#mozTocId101269 ) ... and comparing different ruby style guides... which will take a while before it's finished ...
ferr has quit [Ping timeout: 265 seconds]
olistik has joined #ruby
<judofyr> shevy: what kind of bio are you doing?
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
abbe_ is now known as abbe
zacstewart has quit [Remote host closed the connection]
zacstewart has joined #ruby
bmurt has quit [Ping timeout: 265 seconds]
rdar has quit [Ping timeout: 255 seconds]
<eam> shevy: neat. I'm writing a blog 'cuz Senjai reminded me I've been super slacking
<eam> (it's about ruby and Timeout)
* Senjai cracks the wip
yfeldblum has joined #ruby
<eam> I see what you did there
<eam> it is indeed a WIP
<Senjai> I totally wish that was an intentional spelling error
jpfuentes2 has joined #ruby
<eam> we'll just pretend it was and credit you for cleverness
<Senjai> lgtm
* Senjai is clever, bow
howdoicomputer has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
jpfuente_ has quit [Ping timeout: 252 seconds]
rubie has joined #ruby
towski_ has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 246 seconds]
[H]unt3r has quit []
pengin has joined #ruby
DCameronMauch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
blackmesa has joined #ruby
Tarkers34 has joined #ruby
<phat4life> eam: what are you using to blog
khebbie has joined #ruby
<phat4life> currenlty, im use jekyll, but it doesn't have all of what i need
blue_deref has joined #ruby
<Tarkers34> Hello all...can I mix and index and a regex to manipulate a string?
<Tarkers34> *an index
sharpmachine has left #ruby [#ruby]
revath has joined #ruby
<apeiros> Tarkers34: that's a bit vague
shinnya has quit [Ping timeout: 246 seconds]
<jhass> Tarkers34: post your input and the output you desire, use gist.github.com if that takes more than 3 lines of text
<jhass> also post your existing attempts
<Tarkers34> thanks both
<Tarkers34> shall do
Asher has joined #ruby
<judofyr> >> "123 hello 123".match(/\d+/, 5)
<ruboto> judofyr # => #<MatchData "123"> (https://eval.in/390539)
<judofyr> >> "123 hello 456".match(/\d+/, 5)
<ruboto> judofyr # => #<MatchData "456"> (https://eval.in/390540)
<judofyr> (wild guess)
<judofyr> (at least it's related to index and regexes)
* jhass pats judofyr's back
<judofyr> it's not really "manipulate" though
<jhass> you got 2/3, it's fine. Not everybody can be perfect
khebbie has quit [Client Quit]
<Tarkers34> I'm not great at regex...do you see what I mean though? abcdefg@xyz.index_and_regex( 2, /[f].*(@)/) #=> "cdefg@"
casadei_ has quit [Remote host closed the connection]
dreinull75 has left #ruby ["undefined"]
<Tarkers34> sorry, this: abcdefg@xyz.index_and_regex( 2, /.*(@)/) #=> "cdefg@"
j4cknewt has joined #ruby
<judofyr> >> "abcdefg@xyz".match(/.*@/, 2)
<ruboto> judofyr # => #<MatchData "cdefg@"> (https://eval.in/390541)
<jhass> any non fake data?
<judofyr> Tarkers34: ^
<Tarkers34> judofyr, thanks that should do it :)
<judofyr> jhass: hah! I was right!
<jhass> you might be hiding a pattern in it that leads to a nicer pattern
<judofyr> 2/3 still wins
<Tarkers34> how cool would it be to integrate irb with an irc somehow? :P
jpfuente_ has joined #ruby
<Senjai> >> puts "hi"
<ruboto> Senjai # => hi ...check link for more (https://eval.in/390542)
<Senjai> Tarkers34: ^
<shevy> judofyr dunno really, just trying to see what bioperl and biopython can offer, and what bioruby lacks
<judofyr> Tarkers34: ruboto is nice. only one command though.
wildroman2 has joined #ruby
<judofyr> (e.g. it's not an interactive shell)
<Senjai> judofyr: Yeah, but why would you ever need an interactive shell in irc
<Senjai> just use irb
<judofyr> true
<judofyr> I mostly use eval.in for examples
<shevy> so that others can see how clever you are :)))
<Senjai> >> print "one command"; print "two command"
<ruboto> Senjai # => one commandtwo commandnil (https://eval.in/390543)
bffff_ has quit [Quit: Connection closed for inactivity]
casadei_ has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<eam> phat4life: company blog so not my choice, and it does use jekyll
<shevy> for quick one-liners demo purpose, ruboto is awesome
hotpancakes has joined #ruby
jpfuentes2 has quit [Ping timeout: 264 seconds]
<phat4life> eam: i am hosting my jekyll blog on github pages, i have a heroku backend ednpoint for sendgrid, i am also going to use heroku for elastic searc
<Tarkers34> judofyr yeah ruboto is fun. I think github is working on some sort of irc killer...might be cool. Pastebin will literally loose all of their custom overnight x,D
<phat4life> eam: but i need to write a ruby plugin to index everything
<judofyr> Tarkers34: there's Gitter.im
<Tarkers34> that's the one
<judofyr> I want Github to focus on creating a better mailing list system
<judofyr> although I guess Discourse is taking over that
<Senjai> phat4life: use aws man
<Senjai> or digital ocean
<phat4life> that costs money
<Senjai> Like $5-10 a month
<phat4life> github pages is free
<eam> if it were up to me I'd just use markdown and a makefile
MatthewsFace has joined #ruby
<Senjai> eam: <3
<Senjai> eam: A coworker does that
dopie has quit [Quit: This computer has gone to sleep]
<phat4life> well, i have a layout that just has json of all the content i want to index
<Senjai> eam: I want a bit more heavy of a blog so.. yeah.
MatthewsFace has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah> i use jekyll
<phat4life> is there an alternative to jekyll that stores the markdown fiels in a db?
MatthewsFace has joined #ruby
<miah> why would you want the db dependency?
jlast has joined #ruby
<miah> simple html text is great, because my webserver can load it all into memory
<phat4life> i guess if you wanted a rails backend
<eam> or not even copy it into memory, with zero-copy
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<miah> indeed
<eam> filesystems are great databases for reading (not so much for writing)
senayar has quit []
Igorshp has quit [Remote host closed the connection]
jhooker has joined #ruby
<judofyr> writing is fine as well. searching on the the other hand.
[H]unt3r has joined #ruby
<phat4life> yeah searching, paginating, tagging
<phat4life> archives
<eam> judofyr: writing a file to a filesystem is going to be much slower than inserting a row into a table
<miah> you can have all that without rails
<eam> (or unlinking a file)
<phat4life> right
<phat4life> but doing that stuff with purely jekyll, not as easy
<miah> eh
<judofyr> eam: that only means your database doesn't store things on disk
<eam> judofyr: nope
ivanskie has joined #ruby
s2013 has joined #ruby
<eam> judofyr: it's because a posix filesystem specifies all sorts of serialization points
<eam> whereas a sql database does not
<miah> my site has archiving and tagging. i don't care about search because Google does that already.
<eam> eg rename() is an atomic operation
<judofyr> eam: and how does a database ensure persistence, if not by writing to the disk?
<miah> plus my site loads in less than a second
<phat4life> miah: i want ajax type ahead though
<eam> judofyr: it writes to disk, but there is not a file-per-row datastructure
rbennacer has quit [Remote host closed the connection]
<judofyr> eam: ooooh. writing a *new* file. sure.
zacstewart has quit [Ping timeout: 256 seconds]
<judofyr> creating a file
<eam> it's the object creation that's expensive in a filesystem
<eam> yeah
<judofyr> that's different from writing to it ;)
<judofyr> (in my head)
<eam> yup
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
<phat4life> my page would load faster, if facebook, twitter, didn't load the share buttons via an iframe
olistik has quit [Remote host closed the connection]
<phat4life> is there a better way to do that?
<miah> i dont have any javascript on my site =)
<judofyr> remove facebook/twitter buttons
<phat4life> aside from that
phizzbuzz has quit [Remote host closed the connection]
<eam> judofyr: for large, high throughput volumes it's common to split up filesystems for this reason -- serialization on link/unlink can become the long pole
<miah> somebody has probably written better 'buttons'
<Kully3xf_> what is a subcommand
<eam> I had one particular case where I broke up a multi-TB volume into 10 parts spread across loopback-mounted filesystems
<eam> massive throughput increase
emptyflask has joined #ruby
<Kully3xf_> if I run something in a loop or by it self it works/but when I run it as threads it fails because it cannot find hte subcommand
<eam> workload was mostly tempfile related
sbhatore has joined #ruby
pgatt has quit [Quit: Connection closed for inactivity]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<phat4life> judofyr: you may have a point https://twitter.com/smashingmag/status/204955763368660992
symm- has quit [Ping timeout: 250 seconds]
dseitz has joined #ruby
revdan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 255 seconds]
<judofyr> Kully3xf_: dunno. there's no concept in Ruby of "subcommands". must come from a package/gem you use?
genpaku has quit [Ping timeout: 264 seconds]
<miah> Kully3xf_: gist?
<Kully3xf_> yea I think you're right
<Kully3xf_> I think it's a chef thing
zacstewart has joined #ruby
revdan has joined #ruby
atom3 has quit [Ping timeout: 276 seconds]
<judofyr> if it's chef, then I'm out. I have no idea how that works :)
genpaku has joined #ruby
yokel has joined #ruby
rbennacer has joined #ruby
hahuang65 has joined #ruby
atom3 has joined #ruby
ItSANgo has quit [Ping timeout: 255 seconds]
Kully3xf has joined #ruby
<miah> #chef, but also just gist and ask question i know chef =)
jlast has quit [Remote host closed the connection]
balazs_ has joined #ruby
howdoicomputer has joined #ruby
msnyon has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
langland_ has quit [Ping timeout: 244 seconds]
Scroff has quit [Ping timeout: 244 seconds]
paulcsmith has joined #ruby
Kully3xf_ has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
msnyon has joined #ruby
woodruffw has quit [Quit: And then he took off.]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
<Tarkers34> guys any idea how I can select the contents of a match but not the flanking characters? AfooA #=> "foo". See here http://rubular.com/r/RlcA4Gjcip I'd like :three to be selected, not /:three/
woodruffw has joined #ruby
<Tarkers34> I could gsub! away those slashes but I'm just wondering if it can be selected
Jackneill has joined #ruby
hotpanca_ has joined #ruby
thiagovsk has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
balazs_ has quit [Ping timeout: 276 seconds]
ndrei has joined #ruby
lkba has quit [Read error: Connection reset by peer]
Kully3xf_ has joined #ruby
lkba has joined #ruby
lkba_ has joined #ruby
revdan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> Tarkers34: lookaround expressions do not capture: http://rubular.com/r/RlcA4Gjcip
B1n4r10_ has joined #ruby
Eiam has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
zendrix has quit [Remote host closed the connection]
penzur has quit [Quit: Leaving]
B1n4r10_ has quit [Client Quit]
<jhass> ( (anything|.*$) is redundant, it'll always match)
<mistym> Tarkers34: What about: http://rubular.com/r/mo3X2vIMD5
B1n4r10_ has joined #ruby
<mistym> Er sorry, misunderstood
B1n4r10_ has quit [Client Quit]
mister_solo has quit [Ping timeout: 255 seconds]
Kully3xf has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
<Tarkers34> no worries, I'm just messing about with regex; not a project. Trying to learn it...I hate it a bit :/
<jhass> oh, damn I didn't copy my permanlink >.<
<Tarkers34> jhass haha yeah
<jhass> mmh, no
hotpancakes has quit [Ping timeout: 276 seconds]
<jhass> now I copied mistym
<jhass> somethings wrong with me :/
<Darkwater> jhass: what's the temperature in your area?
<Tarkers34> to much regexy goodness in your brain
<jhass> this one
zendrix has joined #ruby
<Tarkers34> jhass: Hooorah! that's it thanks man
<Tarkers34> could you explain it a little? each character
atom3 has quit [Ping timeout: 276 seconds]
<jhass> Darkwater: 29°C outside
lkba has quit [Ping timeout: 276 seconds]
<Darkwater> then there's nothing wrong with you
<Darkwater> blame the sun
<jhass> k
<shevy> quite hot
atom3 has joined #ruby
<Tarkers34> BOILING yesterday. rainy today
<Tarkers34> jhass: thanks man
<shevy> Tarkers34 where do you reside at?
platzhirsch has left #ruby [#ruby]
<Darkwater> oh saturday is boiling day
<oddjob001> can someone help me figure out how to pull 2.1.4.27 out of this? or a regex that will always and only pull number dot number dot and anything after that until the whitespace? http://pastebin.com/eywFNPP1 - I assume its some form of select, but I cant seem to find a regex to work
<ruboto> oddjob001, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/94b93c22b76ee74aa970
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Tarkers34> shevy: Devon UK :)
rubie has quit []
brettnem has joined #ruby
jcoe has joined #ruby
<Tarkers34> yourself
<Tarkers34> ?
RegulationD has quit [Ping timeout: 246 seconds]
<shevy> central europe, austria, vienna
RegulationD has joined #ruby
<shevy> lots of ruby programmers from the UK here
bullcitydev has joined #ruby
<theahindle> oi oi
kies^ has quit [Ping timeout: 276 seconds]
<Tarkers34> shevy: always good haha. I do like that about programming though. especially github collaboration. Just no predudices at all about culture/religion w/e. it's nice.
tacit7 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ItSANgo_ has joined #ruby
bluOxigen has joined #ruby
woodruffw has quit [Ping timeout: 256 seconds]
Alayde has joined #ruby
emptyflask has left #ruby [#ruby]
pandaant has quit [Remote host closed the connection]
<Tarkers34> is there a += operator in ruby? I don't think there is...surprising, ruby's normally so concicse. Do you have to say a = a + b?
<eam> >> a = 1; a += 1
<ruboto> eam # => 2 (https://eval.in/390548)
blueOxigen has quit [Ping timeout: 265 seconds]
<jhass> oddjob001: how consistent is the output?
Alayde_ has quit [Ping timeout: 244 seconds]
<Tarkers34> ahh I was running it on an uncast integer :)
<jhass> oddjob001: like, will it always be the 6th line?
thang has joined #ruby
pothibo has joined #ruby
<jhass> oddjob001: because then I'd just .lines[5].split.first
NeverDie_ has joined #ruby
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
woodruffw has joined #ruby
ht__ has joined #ruby
<havenwood> oddjob001: Is the output consistent?
<havenwood> oddjob001: Might it be negative?
<havenwood> oddjob001: join.scan /-?(?:\d\.)+\d/
<oddjob001> jhass: let me look at that. what I dont understand is the output.
thang has quit [Client Quit]
<oddjob001> here is the command vs, how it shows to ruby - https://gist.github.com/tek0011/7c374f79f507b3ef6a48
<oddjob001> that seems all out of order to me vs how windows is atually displaying it
thang has joined #ruby
<jhass> wat
<jhass> it's like it's spawning two processes that start outputting...
<oddjob001> does that make any sense to you ?
<oddjob001> ya
NeverDie has quit [Ping timeout: 265 seconds]
<oddjob001> i dont get it one bit either lol
<oddjob001> chalk it up to windows
benlieb_ has quit [Quit: benlieb_]
<jhass> well, that makes output non deterministic
jcoe has joined #ruby
<havenwood> oddjob001: If it's unsigned: scan /(?:\d\.)+\d/
yossarian has joined #ruby
<oddjob001> ya. so in that case i cant assume i have certain lines to use. however, to answer the previous question yes. the only output I care about is the 2.1.4.27 which will always be the only line that starts with a number. so I at least have something to work with
<eam> oddjob001: does Facter::Core::Execution.exex capture stderr as well as stdout?
<eam> that would likely be the source of the ordering difference
chthon has quit [Ping timeout: 244 seconds]
<oddjob001> eam: good question. i doubt it does capture stderr.
<havenwood> oddjob001: (One or more digit then period pairs followed by a trailing digit.)
DCameronMauch has quit [Quit: Leaving...]
woodruffw has quit [Read error: Connection reset by peer]
rehat has joined #ruby
<havenwood> oddjob001: #=> ["2.1.4.2"]
<eam> oddjob001: I suspect it does, and I suspect some of those lines are stderr and some are stdout
benlieb_ has joined #ruby
<oddjob001> havenwood: let me give that a try. I am just lurning ruby gud and was using this atrocity. newdrivers = Facter::Core::Execution.exec("qaucli -iscsi -dv").lines.select {|v| v=~ /([0-9][\.][0-9][\.][0-9][\.][0-9]{1,})/}
_blizzy_ has quit [Ping timeout: 255 seconds]
<oddjob001> LOL
<wasamasa> ouch
<oddjob001> so yea learning how to program has made me decide I f'ing hate regex. for now.
<wasamasa> replace [0-9] with \d
<wasamasa> and [\.] with \.
<wasamasa> {1,} is +
<wasamasa> also, why do you group the entire thing
Rollabunna has quit [Ping timeout: 248 seconds]
<eam> oddjob001: hating regex is healthy. You'll love it again when you go to parse text using non-regex utilities
<wasamasa> I'm pretty sure #lines is deprecated
<oddjob001> because its my 5th time ever using regex :)
<wasamasa> =~ looks like perl
<wasamasa> I've seen foo[/regex/] more often
<oddjob001> i thought .lines was same as each_line?
<oddjob001> havenwood: worked perfect. thank you
paulcsmith has quit [Remote host closed the connection]
<oddjob001> havenwood: wait a sec though. that cuts off the last number
paulcsmith has joined #ruby
upsell5 has joined #ruby
nwhirschfeld has quit [Quit: No Ping reply in 210 seconds.]
<havenwood> oddjob001: Using?: /(?:\d\.)+\d/
<havenwood> oddjob001: oh
<havenwood> oddjob001: right, more than one digit in a row, sec
<oddjob001> ya. should expect 2.1.4.27 - returns 2.1.4.2
<havenwood> oddjob001: So I guess: /(?:\d+\.)+\d+/
<upsell5> I have a number like: 1920099 that I need to convert to 19200.99 how can I do that?
<upsell5> i.e. last 2 digits are decimal place
<havenwood> oddjob001: One or more digits followed by a period at least once, with a trailing one or more digits.
Musashi007 has joined #ruby
<oddjob001> havenwood: I think that should work. i dont know all instances of drivers I would have out there. in laymens I basically need a regex that grabs a new line that starts with a digit (it will always be the only line that starts with a digit) and then stop when it gets to the first whitespace
jackjackdripper has joined #ruby
psy_ has quit [Read error: Connection reset by peer]
<oddjob001> well the regex does, but i can make new lines and then apply the regex t it
<havenwood> oddjob001: Yeah, I should have looked at the output before proposing solutions. >.>
<oddjob001> its ok
howdoicomputer has quit [Ping timeout: 248 seconds]
<havenwood> Wheee, Ruby!
samleb has joined #ruby
major_ma1ors is now known as major_majors
psy_ has joined #ruby
<oddjob001> so if I can just .lines it. Ill have "2.1.4.27 (STOR wx64)\n" So i thinka better solution would be to find any line that starts with a digit and grab everything after that until the first whitespace
pengin has quit [Remote host closed the connection]
<oddjob001> because what if I get a driver that is 12.22.4.12
<havenwood> >> 1920099.fdiv 100
<ruboto> havenwood # => 19200.99 (https://eval.in/390557)
<oddjob001> i guess I will also always know that Ill have 4 sets of numbers
<havenwood> upsell5: ^
postmodern has joined #ruby
jcoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<upsell5> havenwood: i see, thanks i’ll look that up.
freerobby has joined #ruby
<havenwood> >> 1920099 / 100.0
<ruboto> havenwood # => 19200.99 (https://eval.in/390558)
<havenwood> upsell5: ^ note
<oddjob001> that being said. would it be easier to take the entire output as a string and always look for number.number.number.number - or to take each line of the ouptut and trying to ten only grab num.num.num.num and end at whitespace
Kully3xf has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
MuffinPimp has quit [Read error: Connection reset by peer]
nobitanobi has quit []
MuffinPimp_ has joined #ruby
MuffinPimp_ is now known as MuffinPimp
santana has joined #ruby
moted has quit [Ping timeout: 244 seconds]
prestorium has joined #ruby
Kully3xf_ has quit [Ping timeout: 250 seconds]
withnale_ has quit [Ping timeout: 250 seconds]
<oddjob001> my only constant is that it will be num.num.num.num - but I dont know how many numbers will be in each
Indian has quit [Ping timeout: 244 seconds]
armyriad has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
Indian has joined #ruby
<oddjob001> havenwood: Im thinking your (?:\d+\.)+\d+ will work regardless of how many physical numbers are in each set, ya?
Kully3xf_ has joined #ruby
<havenwood> oddjob001: The + means one or more, so yup. Try it in irb or pry or better yet write some Minitest tests or specs!
DCameronMauch has joined #ruby
<oddjob001> i just tested it out on rubular with about 20 different varieties. seems to handle it all. thanks much!
brettnem has quit [Quit: brettnem]
towski_ has joined #ruby
serivich has joined #ruby
Xeago has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
yqt has joined #ruby
Kully3xf has quit [Ping timeout: 276 seconds]
frenda has joined #ruby
<havenwood> oddjob001: The `()` is a group and the `?:` makes it a non-capture group. The `\d` is a digit and the `\.` period has to be escape since it has special meaning unescaped.
<frenda> Hi, How can I run ruby in terminal of linux?
<upsell5> havenwood: is it possible to force it to always have 2 digits after teh decimal?
<Senjai> frenda: what.
<havenwood> upsell5: Always in what since?
jlast has joined #ruby
<upsell5> 19200.fdiv(100) gives me 192.0
<frenda> When run below command, I get this error: bash: bundle: command not found
<havenwood> frenda: `ruby -e "ruby code here"` or `irb` for a REPL.
<frenda> `bundle install --deployment --without development test`
<upsell5> i want 192.00 (it is a price)
<havenwood> frenda: gem install bundle
<havenwood> frenda: Rather: gem install bundler
howdoi has quit [Quit: Connection closed for inactivity]
bubbys has joined #ruby
<oddjob001> havenwood: thanks. i got most of that but the ?: is what was confusing until i read about it. it works great. tyvm
NeverDie has joined #ruby
<havenwood> oddjob001: yw
<frenda> havenwood: Isn't available package manager! should I do it by `gem`?
<havenwood> frenda: Yeah: gem install bundler
<frenda> ok, thanks
k3asd` has quit [Ping timeout: 250 seconds]
<havenwood> no prob
Scroff has joined #ruby
<havenwood> upsell5: So you want a String as a result?
<havenwood> upsell5: Or BigDecimal?
<upsell5> bigdecimal
NeverDie_ has quit [Ping timeout: 248 seconds]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
lordkryss has quit [Quit: Connection closed for inactivity]
<havenwood> >> '%.2f' % 9200.fdiv(100)
<ruboto> havenwood # => "92.00" (https://eval.in/390563)
nwhirschfeld has joined #ruby
<havenwood> >> require 'bigdecimal'; BigDecimal.new 9200.fdiv(100), 2
<ruboto> havenwood # => #<BigDecimal:41f46500,'0.92E2',9(27)> (https://eval.in/390564)
olistik has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<havenwood> err, that's not right
<havenwood> upsell5: Wait, this is money?
<havenwood> upsell5: Are you doing calculations or just printing it?
<yorickpeterse> fuck, there's kids playing in an inflatable pool behind my apartment
<yorickpeterse> I want an inflatable pool too :<
<yorickpeterse> but I can't fit anything on my balcony
yossarian has quit [Quit: And then he took off.]
<shevy> yorickpeterse go over to them and play; tell them you'll write some ruby scripts for them if they'll let you :)
woodruffw has joined #ruby
Spami_ has quit [Quit: Leaving]
Jackneill has quit [Remote host closed the connection]
<havenwood> yorickpeterse: get a pickup and a tarp
<havenwood> yorickpeterse: show them how to pool in style
<upsell5> havenwood: i will be doing both
<upsell5> so calculations then :)
revath has quit [Quit: Leaving.]
<yorickpeterse> shevy: that would get me a free ticket to the local police department
<yorickpeterse> havenwood: don't have a driver's license
<yorickpeterse> nor the money for a pickup :P
<havenwood> yorickpeterse: Get a salvage, engine optional.
<yorickpeterse> heh
pengin has joined #ruby
revath has joined #ruby
rbennacer has quit [Remote host closed the connection]
<havenwood> no wheels
<havenwood> or jacked up on cinder blocks might be nice flare
yqt has quit [Ping timeout: 252 seconds]
olistik has quit [Remote host closed the connection]
<dfockler> tarp off your balcony and turn it into a hottub
rbennacer has joined #ruby
<shevy> lol
Musashi007 has quit [Quit: Musashi007]
<shevy> may be rather unlikely that you'll get lots of great suggestions pertaining to your balcony here yorickpeterse
<havenwood> upsell5: So Floats are completely out of the question. BigDecimal, Rational or Integers are options.
<yorickpeterse> shevy: I'm not surprised
olistik has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
Jackneill has joined #ruby
Scroff has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 256 seconds]
<upsell5> bigdecimal is always good for pricing right?
Musashi007 has joined #ruby
<yorickpeterse> No
lkba has joined #ruby
* saaki invoices a zillion dollars
hinbody has quit [Quit: leaving]
<yorickpeterse> For pricing you'll want to store numbers in the most accurate form possible, but you might not need BigDecimal for that
woodruffw has quit [Ping timeout: 252 seconds]
<yorickpeterse> at least in Ruby a Fixnum will overflow automatically when needed
NeverDie_ has joined #ruby
Scroff has joined #ruby
<eam> just be careful what kind of math you do to it
djbkd has joined #ruby
<upsell5> my product feed has numbers, like: 1920000
<eam> personally I'd stick to BigDecimal to avoid accidental errors
<upsell5> the last 2 are the decimals
Spami has joined #ruby
lkba_ has quit [Ping timeout: 248 seconds]
hotpanca_ has quit [Ping timeout: 248 seconds]
<yorickpeterse> upsell5: that's not a bigdecimal
jeanlinux has quit [Ping timeout: 256 seconds]
<eam> it could be!
atomical has joined #ruby
<yorickpeterse> and there's no reason to store that in a bigdecimal either unless it _has_ to be a bigdecimal
<eam> yorickpeterse: there are a ton of valid reasons to
NeverDie has quit [Ping timeout: 264 seconds]
<upsell5> yorickpeterse: true
zendrix has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
hotpancakes has joined #ruby
samleb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bubbys has quit [Ping timeout: 264 seconds]
serivich has quit [Ping timeout: 265 seconds]
vyorkin has quit [Quit: WeeChat 1.2]
kies^ has joined #ruby
Xeago has quit [Remote host closed the connection]
Marisa_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has quit [Read error: Connection reset by peer]
cepokop has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
wallerdev_ has joined #ruby
PatrickHoward has joined #ruby
momomomomo has joined #ruby
micmus has quit [Ping timeout: 250 seconds]
ryba has joined #ruby
AlphaAtom has joined #ruby
revath has quit [Read error: Connection reset by peer]
malconis has joined #ruby
graydot has joined #ruby
nateberkopec has joined #ruby
GBrawl has joined #ruby
eGGsha has joined #ruby
revath has joined #ruby
cepokop has quit []
langlands has joined #ruby
einarj has joined #ruby
failshell has joined #ruby
Indian has quit [Ping timeout: 246 seconds]
failshel_ has joined #ruby
peter_paule has joined #ruby
chipotle has quit [Quit: cheerio]
woodruffw has joined #ruby
zacstewart has quit [Remote host closed the connection]
choke has joined #ruby
failshell has quit [Read error: Connection reset by peer]
kirun has joined #ruby
lessless has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
Marisa_ has quit [Read error: Connection timed out]
zacstewart has joined #ruby
Marisa_ has joined #ruby
anisha has joined #ruby
phutchins1 has joined #ruby
bubbys has joined #ruby
olistik has quit [Remote host closed the connection]
baweaver has joined #ruby
mike___1234 has quit [Ping timeout: 252 seconds]
ddv has joined #ruby
samleb has joined #ruby
soulcake has quit [Max SendQ exceeded]
ddv has quit [Changing host]
ddv has joined #ruby
Muhannad has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
anisha has quit [Client Quit]
soulcake has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
c_nick has joined #ruby
sarkyniin has joined #ruby
micmus has joined #ruby
<c_nick> In Sinatra how can we do a dynamic table rendering on click you change the contents of the table
mike___1234 has joined #ruby
howdoicomputer has joined #ruby
sarkyniin has quit [Client Quit]
sarkyniin has joined #ruby
<jhass> c_nick: how's sinatra relevant to that question? sounds like frontend work
iamninja has joined #ruby
Oka has joined #ruby
sross07 has joined #ruby
stacktracer has quit [Quit: leaving]
soulcake has joined #ruby
Musashi007 has quit [Ping timeout: 264 seconds]
soulcake has quit [Max SendQ exceeded]
JDiPierro has joined #ruby
samleb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
multi_io_ has quit [Ping timeout: 246 seconds]
dopie has joined #ruby
<shevy> c_nick probably via a javascript action
upsell5 has quit [Quit: upsell5]
multi_io has joined #ruby
momomomomo_ has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
IanV0rn2341 is now known as IanV0rn2341[away
soulcake has joined #ruby
baweaver has quit [Remote host closed the connection]
kfpratt has joined #ruby
workmad3 has joined #ruby
c_nick has quit [Ping timeout: 252 seconds]
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
yardenbar has joined #ruby
soulcake has quit [Max SendQ exceeded]
bruno- has joined #ruby
hinbody has joined #ruby
jhooker has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
eGGsha has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
jhooker has joined #ruby
jeanlinux has joined #ruby
c_nick has joined #ruby
Ox0dea has quit [Ping timeout: 264 seconds]
aef has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
kerrizor has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
<c_nick> jhass: Yes indeed frontend work but wanted to know how I can get that achieved through Sinatra+haml, couldnt find a tutorial or an article on it will continue to search
howdoicomputer has quit [Ping timeout: 252 seconds]
<jhass> c_nick: with some javascript, likely
last_staff has joined #ruby
bradleyprice has joined #ruby
chouhoul_ has joined #ruby
hotpancakes has quit []
JoshL has joined #ruby
ivanskie has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
Alayde has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
tonyhb has joined #ruby
eGGsha has joined #ruby
zacstewart has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
frenda has left #ruby [#ruby]
<c_nick> hmm jhass yes i need to try on that
ryba has quit [Ping timeout: 264 seconds]
stoodfarback has quit [Ping timeout: 256 seconds]
tonyhb has quit [Read error: Connection timed out]
zacstewart has joined #ruby
<sbhatore> hey! what does a function starting with _(underscore) convey or when is it used ?
<jhass> sbhatore: got some context? looks like gettext on first glance, which is rarely used in ruby land
sandstrom has quit [Quit: My computer has gone to sleep.]
duggiefresh has joined #ruby
DexterLB has joined #ruby
duggiefresh is now known as Guest84827
frenda has joined #ruby
Rakunh0 has joined #ruby
<frenda> Error: http://pastebin.com/MbcHcqN5 --> I can't install `json` :(
<ruboto> frenda, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/fe95230b0e19bf4f8c1b
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<jhass> frenda: install ruby-devel or whatever the package was
<Senjai> ruboto does that now
<Senjai> lol
<jhass> Senjai: since like two months
<ljarvis> sbhatore: it's sometimes so the public API doesn't change
<ljarvis> sometimes though it's for no good damn reason at all
<jhass> yeah, no idea why they did it there
<jhass> makes no sense
baweaver has joined #ruby
allomov has joined #ruby
<ljarvis> or they expect a subclass to define those methods *shrug*
<Senjai> jhass: Poor sod who had to write the interface for pastebin
<ljarvis> silly either way from what I can see
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<jhass> Senjai: fairly easy in fact, you just regex the id from the URL and monkey build the one to the raw output
<jhass> pastebin.com even calls doing so "API"
scripore has joined #ruby
<sbhatore> jhass: Lets see what #rubyonrails has to say
<ljarvis> >> require "date"; Date._parse("5/6/7")
<ruboto> ljarvis # => {:year=>2005, :mon=>6, :mday=>7} (https://eval.in/390592)
<jhass> ljarvis: sbhatore looks like there used to be public API with the same names https://github.com/rails/rails/commit/71e84a3b514b6a2630dfd7f658f4e7597424d6e3
<ljarvis> still exists
<ljarvis> heh
<jhass> I'd say you'll have good chances on getting a PR in that renames them now
benlieb_ has quit [Quit: benlieb_]
judofyr has quit [Remote host closed the connection]
<sbhatore> jhass: hmmm...I see. This has to be the reason for it. Thanks :) and u too ljarvis
Oka has quit [Remote host closed the connection]
graydot has quit [Quit: graydot]
lkba_ has joined #ruby
Oka has joined #ruby
Voker57 has quit [Ping timeout: 264 seconds]
zendrix has joined #ruby
centrx has joined #ruby
langlands has quit [Ping timeout: 265 seconds]
graydot has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
atom3 has quit [Ping timeout: 275 seconds]
Oka has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
peter_paule has quit [Ping timeout: 256 seconds]
zacstewart has quit [Ping timeout: 252 seconds]
PatrickHoward has quit [Ping timeout: 246 seconds]
atom3 has joined #ruby
AlphaAtom has joined #ruby
yqt has joined #ruby
pothibo has quit [Quit: pothibo]
baweaver has quit [Remote host closed the connection]
maletor has joined #ruby
<frenda> What's going on: https://gist.github.com/diff-/0543b8fcf6b083fed129 (I'm sorry for inconvenience)
zacstewart has joined #ruby
jpfuente_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby
Voker57 has joined #ruby
<jhass> frenda: libxml2-devel or something this time
sharpmachine has quit [Remote host closed the connection]
<jhass> also iconv-devel or so
<frenda> jhass, Yeah! It's there
Xeago has joined #ruby
<frenda> libxml2-devel
centrx has quit [Remote host closed the connection]
<frenda> Should i install `iconv-devel` too? @jhass
howdoicomputer has joined #ruby
ndrei has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
failshel_ is now known as failshell
axl_ has quit [Quit: axl_]
<jhass> idk what the package name is
baweaver has joined #ruby
<jhass> it doesn't find libxml2
Scroff has quit [Remote host closed the connection]
<Kully3xf_> @miah thanks but I figured it out
frenda has left #ruby [#ruby]
j4cknewt has quit [Remote host closed the connection]
<Kully3xf_> how many threads is too many threads
<Kully3xf_> I know it's subjective - but there has to be a rule of thumb?
_kfpratt has joined #ruby
<jhass> Kully3xf_: no there isn't
<jhass> the answer is _vastly_ different depending on your CPU and workload
<Kully3xf_> yea I figured
kfpratt has quit [Read error: Connection reset by peer]
swgillespie has joined #ruby
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Kully3xf_> c3.4xl - 16vcpu and 30gb ram
<Kully3xf_> I think it can prbably handle more than 10 threads?
sandstrom has joined #ruby
failshel_ has joined #ruby
tonyhb has joined #ruby
<jhass> yes, probably it can handle 1000
Rakunh0 has joined #ruby
<jhass> depending on the workload
<Kully3xf_> ok coolio
<Kully3xf_> shouldn't need to launch more than 100 concurrent threads so I'll up the limit to 100
yfeldblum has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tonyhb_ has joined #ruby
axl_ has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
failshell has quit [Ping timeout: 244 seconds]
<dfockler> FOUR MORE THREADS!
graydot has quit [Quit: graydot]
krz has quit [Quit: WeeChat 1.0.1]
AlphaAtom has joined #ruby
<jhass> looks like my number wasn't absurd enough yet to bring my point across :/
blackmesa has joined #ruby
zendrix has quit [Remote host closed the connection]
Scroff has joined #ruby
roolo has joined #ruby
<Kully3xf_> ah you mean it could handle an absorbanant amount of thread
skade has joined #ruby
<Kully3xf_> I c
<Kully3xf_> day 1 of ruby
tonyhb has quit [Ping timeout: 276 seconds]
<jhass> not related to ruby
<jhass> 16 can fully exhaust your CPU, or maybe 8 do because it's all hyper threading stuff and the context switching would slow you down already
<jhass> but if all your threads do is waiting for some event or whatever, you can have 10k of them
<Kully3xf_> o
<jhass> it's completely irrelevant to talk about this in the abstract
renderf__ has joined #ruby
<Kully3xf_> I'll have to read up on it
appledroid has joined #ruby
enebo has quit [Quit: enebo]
frem has joined #ruby
<jhass> or come up with a _concrete_ way to measure throughput for your _actual workload_ and experiment
zacstewart has quit [Ping timeout: 256 seconds]
<Kully3xf_> yea that's hard - gets expensive. The work load it's doing is launching large size instances, so I can only test it occasionally
drewvanstone has joined #ruby
kadoppe has quit [Ping timeout: 276 seconds]
renderful has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 264 seconds]
appledroid has quit [Quit: Textual IRC Client: www.textualapp.com]
IanV0rn2341[away is now known as IanV0rn2341
RegulationD has quit [Remote host closed the connection]
c_nick has left #ruby [#ruby]
kadoppe has joined #ruby
zacstewart has joined #ruby
sharpmachine has joined #ruby
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev_ has quit [Quit: wallerdev_]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby
rodferso1 has quit [Quit: leaving]
jerius has quit [Quit: /quit]
nfk has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
jerius has joined #ruby
<Xeago> Kully3xf_: does it matter if it takes 10s to spawn or 1 minute to spawn?
jerius has joined #ruby
bullcitydev has joined #ruby
AustinMatherne has joined #ruby
AustinMatherne has quit [Quit: Lost terminal]
momomomomo__ has joined #ruby
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eggoez has quit [Ping timeout: 246 seconds]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo__ is now known as momomomomo
zendrix has joined #ruby
<Xeago> if you're operating on a scale where 10s is not fast enough, you're better to overprovision
jpfuentes2 has joined #ruby
DCameronMauch has quit [Quit: Leaving...]
bullcitydev has quit [Client Quit]
NeverDie has joined #ruby
<Kully3xf_> it takes 35 minutes to spawn a node - in a loop that takes WAY to long if you do even 2 of them. Thus the threading, cuts times like crazy
<Kully3xf_> if I can thread 100 we can launch 100 in 35 minutes
<Kully3xf_> if I can thread only ten then I'm still looking at 6 hours
<jhass> looks like you'll be mostly waiting on IO
<Kully3xf_> much better than before though
maletor has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Kully3xf_> yea I'm not really sure what happens on the back end - I'll have to do some testing when I get the chance next
<jhass> if that's the case you can probably do 200 in 40 minutes or so
doertedev has quit [Quit: Lost terminal]
<Kully3xf_> it be really sweet if I could up that limit
<Kully3xf_> maybe I'll include it as an upgrade xD
SCHAAP137 has joined #ruby
idafyaid has joined #ruby
mcclurmc has joined #ruby
NeverDie_ has quit [Ping timeout: 276 seconds]
vyorkin has joined #ruby
eggoez has joined #ruby
mcclurmc has quit [Remote host closed the connection]
tuelz has quit [Ping timeout: 252 seconds]
lordkryss has joined #ruby
dented42 has joined #ruby
frenda has joined #ruby
djbkd has quit [Remote host closed the connection]
danman has joined #ruby
rodfersou has joined #ruby
jbourassa has joined #ruby
eGGsha has joined #ruby
mcclurmc has joined #ruby
<jbourassa> Hey Ruby friends. I’m trying to figure out of Array#each is thread safe — say two threads are iterating the same array, is the result going to be as expected? Otherwise said, where’s the iterator current value saved?
zacstewart has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
Indian has joined #ruby
<adaedra> There's no #shift for string? Disapointing.
tonyhb_ has quit [Ping timeout: 264 seconds]
mcclurmc has quit [Remote host closed the connection]
Papierkorb has joined #ruby
sarkyniin has quit [Ping timeout: 265 seconds]
benlieb_ has joined #ruby
<adaedra> slice!(0) does the job
<ljarvis> jbourassa: well, is the array modified in another read or is it readonly?
momomomomo_ has quit [Quit: momomomomo_]
<ljarvis> s/read/thread/
<jbourassa> It is not — it’s only being iterated on.
wallerdev_ has joined #ruby
<ljarvis> then I'm not sure I understand your question
<ljarvis> if the array isn't ever modified, it'll contain the same contents across all threads
Eiam_ has joined #ruby
<jbourassa> Yes, of course. I’m curious about the iterator pointer — or whatever keeps track of where an iterator is at.
brettnem has joined #ruby
Hobogrammer has quit [Ping timeout: 256 seconds]
zacstewart has joined #ruby
<jbourassa> (I’m not sure about Ruby’s implemenation of Array, my question might be more about Enumerable)
mrmargolis has quit [Remote host closed the connection]
mrmargolis has joined #ruby
<adaedra> ljarvis: I think the question is to know if the iterator when doing #each is internal to the array (so shared) or not
<jbourassa> ^ Exactly, thank you :)
<ljarvis> right, thanks adaedra
<ljarvis> jbourassa: you could test this pretty easily
<jhass> jbourassa: it's on the stack of the #each call
<ljarvis> :(
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
langlands has joined #ruby
Alayde has joined #ruby
RegulationD has joined #ruby
maletor has joined #ruby
<jbourassa> jhass: pardon my non-understanding — that means that multiple `#each` on the same Array will _not_ share the pointer. Correct?
yqt has quit [Ping timeout: 276 seconds]
<jhass> correct, keep in mind that each is a regular method call
<adaedra> Doing parallel #each as long as you don't modify the array should be safe
jenrzzz has joined #ruby
rbennace_ has joined #ruby
langland_ has joined #ruby
graydot has joined #ruby
pfish has joined #ruby
<jhass> you can picture it as being a less naive version of i = 0; while i < size; yield self[i]; end;
<jhass> + i += 1 of course
<jbourassa> Awesome — makes a lot of sens.
<ljarvis> the index is stored on the stack (i.e local to that function) which means it's local to the method call
<jbourassa> Thank you all.
santana has quit [Ping timeout: 255 seconds]
<pfish> In the C code for ruby is there a proc_invoke equivalent in 2.2?
enebo has joined #ruby
<ljarvis> pfish: proc_call?
langlands has quit [Ping timeout: 250 seconds]
rbennacer has quit [Ping timeout: 250 seconds]
<ljarvis> pretty sure proc_invoke exists in 2.2 though
mcclurmc has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
nateberkopec has quit [Quit: Leaving...]
<pfish> i did a grep and its only in the change logs
<ljarvis> ah, yep
sinkensabe has joined #ruby
mrmargol_ has joined #ruby
<pfish> tahnks
mcclurmc has quit [Remote host closed the connection]
<pfish> thanks
tuelz has joined #ruby
yqt has joined #ruby
[H]unt3r_ has joined #ruby
frenda has left #ruby [#ruby]
punkerplunk has joined #ruby
peter_paule has joined #ruby
yardenbar has quit [Quit: Leaving]
[H]unt3r has quit [Read error: Connection reset by peer]
mrmargolis has quit [Ping timeout: 246 seconds]
bullcitydev has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VictorBjelkholm has joined #ruby
bradleyprice has quit [Remote host closed the connection]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bradleyprice has joined #ruby
eggoez has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
zacstewart has quit [Ping timeout: 256 seconds]
momomomomo_ has joined #ruby
swgillespie has joined #ruby
chinmay_dd has joined #ruby
nofxx has joined #ruby
dopie has joined #ruby
Azure has quit [Quit: Oops.]
art-solopov has joined #ruby
Hobogrammer has joined #ruby
Channel6 has joined #ruby
sarkyniin has joined #ruby
rodfersou has quit [Quit: leaving]
danman has quit [Quit: danman]
chinmay_dd has quit [Ping timeout: 265 seconds]
zacstewart has joined #ruby
rodfersou has joined #ruby
revath has quit [Ping timeout: 250 seconds]
but3k4 has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 264 seconds]
abyss has quit [Remote host closed the connection]
but3k4 has joined #ruby
futilegames has joined #ruby
Muhannad has joined #ruby
_blizzy_ has joined #ruby
eggoez has joined #ruby
peter_paule has quit [Ping timeout: 256 seconds]
pfish has quit [Quit: Page closed]
Pupeno has quit [Quit: Leaving...]
momomomomo_ has quit [Quit: momomomomo_]
punkerplunk has quit [Ping timeout: 276 seconds]
renderful has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
dfockler has quit [Remote host closed the connection]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderf__ has quit [Ping timeout: 244 seconds]
Eiam_ has joined #ruby
_blizzy_ has joined #ruby
wallerdev_ has quit [Ping timeout: 246 seconds]
gamename has quit []
A205B064 has joined #ruby
blueOxigen has quit [Ping timeout: 244 seconds]
wallerdev_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
zacstewart has quit [Ping timeout: 244 seconds]
ht__ has quit [Ping timeout: 256 seconds]
Rakunh0 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
mrmargolis has joined #ruby
pdoherty has joined #ruby
<shevy> oh people are sleepy now
IanV0rn2341 has quit []
Scroff has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
<adaedra> not me
sinkensabe has quit [Remote host closed the connection]
VictorBjelkholm has quit [Quit: Textual IRC Client: www.textualapp.com]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
sumark has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 246 seconds]
mrmargol_ has quit [Ping timeout: 252 seconds]
Jackneill has quit [Remote host closed the connection]
sumark has joined #ruby
mcclurmc has joined #ruby
peter_paule has joined #ruby
JoshL has quit []
zacstewart has joined #ruby
Eiam_ has joined #ruby
<yorickpeterse> I just napped
<yorickpeterse> summer weather is too warm to do anything
prestorium has quit [Quit: Konversation terminated!]
<yorickpeterse> it's a shame the grocery store was out of icecream :<
kinduff has joined #ruby
<yorickpeterse> apparently the whole neighbourhood had the same idea as me, except they had it a few hours earlier
Indian has quit [Ping timeout: 246 seconds]
j4cknewt has joined #ruby
rbennace_ has quit [Remote host closed the connection]
<nofxx> yorickpeterse, that's the problem of my hemisphere. Not warm only may to august/sep
decoponio has quit [Quit: Leaving...]
rbennacer has joined #ruby
<ljarvis> the UK was insanely hot today
<ljarvis> never said that before
<yorickpeterse> same here in .nl
<yorickpeterse> it's probably the only week of sun we'll get for the entire year
<yorickpeterse> so better get tanned while it lasts
<yorickpeterse> (or just sit outside)
<ljarvis> psh
jeanlinux has joined #ruby
<ljarvis> like you have it bad
* ljarvis looks at the UK
* dudedudeman blinks
<yorickpeterse> our weather isn't much different
futilegames has quit [Quit: futilegames]
qsuscs has left #ruby ["WeeChat 1.2-dev"]
dopie has quit [Quit: Leaving]
peter_paule has quit [Ping timeout: 256 seconds]
GitGud has joined #ruby
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mantas322 has joined #ruby
wildroman2 has joined #ruby
<mantas322> jesus guys, I need help
<mantas322> i've been tryign to parse a date for like 30 mins now
<mantas322> 06-22-2015
<mantas322> MM-dd-yyy
<ljarvis> >> require "date"; Date.parse("06-22-2015")
<ruboto> ljarvis # => invalid date (ArgumentError) ...check link for more (https://eval.in/390645)
<Senjai> >> "06-22-2015"
<ljarvis> psh
<ruboto> Senjai # => "06-22-2015" (https://eval.in/390646)
<shevy> dudedudeman!!! you are BACK!
<Senjai> god damnit ljarvis
<Senjai> I was right about to do that
ht__ has joined #ruby
<shevy> the weather forecast for europe says - it'll be even hotter the coming days
s2013 has joined #ruby
<dudedudeman> shevy: yeah!
<mantas322> `parse': invalid date (ArgumentError)
<mantas322> doesnt work
<yorickpeterse> like, it's so warm I can't get my apartment's temperature below the 25-something C it is now
<yorickpeterse> with 2 fans at max speed and all windows open
<mantas322> i've tried all sorts of combinations of parse and strptime
r_rios has quit [Remote host closed the connection]
<yorickpeterse> it's cooler outside now than inside :/
<ljarvis> >> require "date"; Date.parse("06-22-2015".tr("-", "/"))
<ruboto> ljarvis # => invalid date (ArgumentError) ...check link for more (https://eval.in/390648)
<ljarvis> oic
mcclurmc has quit [Remote host closed the connection]
<nofxx> yorickpeterse, 25 that's A/C! We get 35 here =P
<shevy> yorickpeterse yeah that is the strangest part
<yorickpeterse> >> require 'date'; Date.strptime('06-22-2015', '%m-%d-%Y')
<ruboto> yorickpeterse # => #<Date: 2015-06-22 ((2457196j,0s,0n),+0s,2299161j)> (https://eval.in/390649)
<yorickpeterse> nofxx: no AC here :<
<ljarvis> yeah yeah
jeanlinux has quit [Ping timeout: 264 seconds]
<yorickpeterse> the only thing really enjoying the weather is my lemon tree
<mantas322> grrrrr!
<yorickpeterse> pretty sure that thing grew more in the past few days than in the past year
<sphex> hey. is there an easy way to make a class "writable"? e.g. if I could just define a "write" method, and then include a mixin to get "puts", "printf", "putc", etc.
grey_beard has joined #ruby
zendrix has quit [Read error: Connection reset by peer]
<nofxx> sphex, there's not such a thing as class not writable in ruby
howdoicomputer has quit [Ping timeout: 265 seconds]
mcclurmc has joined #ruby
s2013 has quit [Client Quit]
zendrix has joined #ruby
<nofxx> can you freeze a class?
<ljarvis> ...
vickleton has quit [Remote host closed the connection]
failshel_ is now known as failshell
<ljarvis> clearly that's not even close to what they were asking
<havenwood> >> require 'date'; Date.parse '06-22-2015'.split('-').rotate.join('-')
<ljarvis> :D
<ruboto> havenwood # => #<Date: 2015-06-22 ((2457196j,0s,0n),+0s,2299161j)> (https://eval.in/390652)
<mantas322> thank uyou very much yorickpeterse
<havenwood> :P
<jhass> sphex: I think that's pretty much the contract for IO
<yorickpeterse> mantas322: np
<nofxx> sphex, check isntance_method, class_method, or even reopening the class
<sphex> nofxx: I just mean a class that behaves like a writable I/O stream
wildroman3 has joined #ruby
ht__ has quit [Client Quit]
s2013 has joined #ruby
mantas322 has quit [Client Quit]
<yorickpeterse> IIRC you can extend IO
<yorickpeterse> and define your own "write"
djbkd has joined #ruby
<nofxx> sphex, ah, beg yr pardon
<yorickpeterse> but I might be mistaken
<sphex> nofxx: hey, np!
hanmac has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has quit [Ping timeout: 264 seconds]
<sphex> yorickpeterse, jhass: oh ok. I'm gonna try that. thanks
dopie has joined #ruby
dede has joined #ruby
<havenwood> nofxx: FREEZE ALL THE THINGS \o/
<havenwood> >> String.freeze; class String; def to_i; 0 end end
<ruboto> havenwood # => can't modify frozen class (RuntimeError) ...check link for more (https://eval.in/390656)
zacstewart has quit [Ping timeout: 265 seconds]
s2013 has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
<nofxx> havenwood, haha, nice ;)
<ljarvis> should create a gem called frozen
NeverDie_ has joined #ruby
s2013 has joined #ruby
<ljarvis> which just freezes shit
djbkd has joined #ruby
<nofxx> subzero... Subzero.come_here(Class)
<nofxx> subzero... Subzero.come_here(Class).jab
<eam> >> ObjectSpace.each_object &:freeze
<ruboto> eam # => /tmp/execpad-b8d206430359/source-b8d206430359:1:in `p': can't modify frozen Hash (RuntimeError) ...check link for more (https://eval.in/390658)
<stonecolddevin> except scorpion does that
<nofxx> stonecolddevin, ouch!
<ljarvis> semantics
<nofxx> they are cousins stonecolddevin
jpfuentes2 has quit [Ping timeout: 276 seconds]
<ljarvis> gpl
<ljarvis> ...
<ljarvis> wrong one
<nofxx> the best named gem ever is 'jesus' the web interface of god for the mankind
<nofxx> charlock holmes is funny too
vickleton has joined #ruby
<shevy> I don't know
<shevy> if I install jesus, what do I get?
<yorickpeterse> nothing
<shevy> damn
<shevy> not even jesus on rails?
NeverDie has quit [Ping timeout: 246 seconds]
revoohc has quit [Quit: revoohc]
<shevy> I wonder why weird names seem to dominate gems
<shevy> like sinatra
<shevy> gem install phuby
Rickmasta has joined #ruby
<shevy> failed with a "php is missing!" message :(
<eam> shevy: have I told you about my rules for naming a ruby gem?
bmurt has quit []
mrmargol_ has joined #ruby
dgutierrez1287 has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
<eam> 1) figure out what your gem does. This gem prints text. 2) Figure out a clever angle three abstractions removed. For example:
rodfersou has quit [Remote host closed the connection]
<eam> a) writers print text b) Hemmingway is a writer c) Hemmingway was fond of six toed cats
<eam> so the gem's name is six-toes
<nofxx> creative names are nice. the only naming prob with gem is that there's no enforce on the rules naming to require rules.. I mean, ppl write foo-bar gem and require 'foo_bar' for isntance.
<shevy> eam lol
<yorickpeterse> according to the thermostat in my attic it's 34C somewhere in my roof (the temperature sensor for some reason is in my roof)
jerius has quit [Quit: /quit]
<yorickpeterse> :<
<eam> the more oblique the references the better a rubyist you are
<shevy> yorickpeterse 27°C here
diegoviola has quit [Quit: WeeChat 1.2]
<eam> wow you both must be freezing
nfk has quit [Quit: yawn]
<bougyman> 40C here
<eam> 102 over here
<bougyman> that's the same, isn't it?
<eam> yeah about ;)
<bougyman> a bit cooler
zacstewart has joined #ruby
<adaedra> 32 here
<bougyman> 103-104 here.
<bougyman> (in stupid Farenheit)
<bougyman> Farenheit should be banned.
txdv has quit [Ping timeout: 265 seconds]
<nofxx> agree
<adaedra> what's a farenheit
<eam> I climed up in my attic to replace a broken attic fan a few summers ago, and I brought an infrared thermostat gun with me
hagebake has quit [Quit: No Ping reply in 180 seconds.]
<eam> it was 73C
<havenwood> adaedra: something about burning books
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<eam> (165F)
<adaedra> oh ok
hagabaka has joined #ruby
<eam> attics get hot
jpfuentes2 has joined #ruby
<adaedra> oh, bits of rain announced sunday
hinbody has quit [Ping timeout: 244 seconds]
AlphaAtom has joined #ruby
<yorickpeterse> eam: what the fuck
<eam> yorickpeterse: I lost 10lb of water weight that day, even though I drank over a gallon of water
<adaedra> brb dying
<eam> I had my wife stand by in case I passed out, it was unbearable
bullcitydev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> "if I don't reply don't come in after me just dial 911"
JDiPierro has quit [Remote host closed the connection]
A205B064 has quit [Remote host closed the connection]
<eam> the fan I installed that day keeps it closer to 50C
Kully3xf_ has quit [Ping timeout: 276 seconds]
failshell has quit []
<yorickpeterse> I'm probably going to stock up on an extra fan this weekend
<yorickpeterse> and create a little whirldwind
<yorickpeterse> hopefully that at least keeps things a bit cool
nateberkopec has joined #ruby
kinduff has quit [Quit: leaving]
txdv has joined #ruby
<eam> yorickpeterse: oh I found it, I lied, only 158F https://twitter.com/3ameam/status/214118215876476928
a346 has quit [Quit: a346]
senayar has joined #ruby
senayar has joined #ruby
<adaedra> 70°C
<adaedra> man
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
n_blownapart has joined #ruby
brianjlandau has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pengin has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
baweaver has joined #ruby
brianjlandau has quit [Client Quit]
A205B064 has joined #ruby
jpfuentes2 has joined #ruby
CatMartyn has joined #ruby
jeanlinux has joined #ruby
vickleton has quit [Quit: Ex-Chat]
vickleton has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
rdark has quit [Quit: leaving]
baweaver has quit [Ping timeout: 248 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
alno1 has joined #ruby
howdoicomputer has joined #ruby
jeanlinux has quit [Ping timeout: 264 seconds]
Tarkers34 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
zacstewart has quit [Ping timeout: 264 seconds]
bubbys has quit [Quit: Bye]
bubbys has joined #ruby
danman has joined #ruby
lavros has quit [Quit: leaving]
Tarkers34 has joined #ruby
zacstewart has joined #ruby
Musashi007 has joined #ruby
benlieb_ has quit [Quit: benlieb_]
art-solopov has quit [Quit: Konversation terminated!]
mandarinkin has quit [Quit: Leaving]
mandarinkin2 has joined #ruby
mandarinkin2 has quit [Client Quit]
nfk has joined #ruby
mrmargolis has joined #ruby
_kfpratt has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has joined #ruby
mandarinkin has joined #ruby
mary5030 has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
mandarinkin has quit [Client Quit]
mandarinkin2 has joined #ruby
mandarinkin2 has quit [Client Quit]
mandarinkin has joined #ruby
jhooker has quit [Ping timeout: 248 seconds]
NeverDie_ has quit [Quit: I'm off to sleep. ZZZzzz…]
kfpratt has joined #ruby
mrmargol_ has quit [Ping timeout: 264 seconds]
AlphaAtom has joined #ruby
benlieb_ has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ is now known as momomomomo
AlphaAtom has quit [Client Quit]
n_blownapart has quit [Remote host closed the connection]
NeverDie has joined #ruby
Xeago has quit [Remote host closed the connection]
but3k4 has joined #ruby
facebook has joined #ruby
NeverDie has quit [Max SendQ exceeded]
facebook is now known as Guest69107
AlphaAtom has joined #ruby
NeverDie has joined #ruby
mrmargol_ has joined #ruby
mrmargolis has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
but3k4 has quit [Client Quit]
werelivinginthef has quit [Remote host closed the connection]
<Senjai> No way
<Senjai> Can people even live in that gees
thelastinuit has quit [Quit: Textual IRC Client: www.textualapp.com]
choke has joined #ruby
<dudedudeman> 158 F. no way
AlphaAtom has quit [Client Quit]
mrmargolis has joined #ruby
mike___1234 has quit [Ping timeout: 250 seconds]
<dfockler> We'd turn into human jerky
dopie has quit [Quit: This computer has gone to sleep]
<dudedudeman> facasb
<dudedudeman> ... sorry. wrong window and i was attemping to do some keystrokes
<adaedra> \o
mrmargol_ has quit [Ping timeout: 246 seconds]
<dudedudeman> i'm a big fan of alt+d in a browser window lol
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kinduff has joined #ruby
kinduff has joined #ruby
<eam> 158F you'll die eventually. I was going up for about 10-15 minutes at a time
<kinduff> Is it possible to stop `gets` user input in anyway (in a while or loop)?
<ljarvis> kinduff: interupt?
momomomomo has quit [Quit: momomomomo]
<kinduff> yes
<ljarvis> interrupt*
<ljarvis> no i mean, hit control-c
<kinduff> Not by the user, whithin the script
<ljarvis> huh?
Guest69107 has quit [Ping timeout: 246 seconds]
<ljarvis> could you provide some background?
howdoicomputer has quit [Ping timeout: 248 seconds]
<kinduff> Got a Thread with a sleep method inside, after the sleep a variable changes. If this variable changes, `gets` should be interrupted. My `gets` is inside a loop that breaks if var from Thread changes.
<kinduff> I'm looking for a way to break it and interrupt the `gets` before the next loop iteration
mrmargolis has quit [Remote host closed the connection]
Guest69107 has joined #ruby
<kinduff> Or could a `gets` be interrupted inside a Thread?
AlphaAtom has joined #ruby
<jhass> I wonder if $stdin.write("\n") works :D
nateberkopec has joined #ruby
<kinduff> let me check
casadei_ has quit []
mgorbach has joined #ruby
pengin has joined #ruby
MikeGib has joined #ruby
howdoicomputer has joined #ruby
<kinduff> Thread.new { sleep(5); $stdin.write("\n") }; gets
<kinduff> doesn't work
sshuff has joined #ruby
JDiPierro has joined #ruby
niemcu has joined #ruby
<apeiros> kinduff: use Kernel#select (or IO.select) to determine whether $stdin/ARGF is ready to read
<apeiros> loop over select and your variable condition
<apeiros> just try to not make it a busy loop
momomomomo has joined #ruby
mcclurmc has quit [Remote host closed the connection]
jeanlinux has joined #ruby
benlieb_ has quit [Quit: benlieb_]
chouhoul_ has quit [Remote host closed the connection]
<kinduff> apeiros: I'm not getting it, how does that method works?
Marisa_ has quit [Ping timeout: 276 seconds]
<apeiros> it works by not invoking gets until you actually can read from $stdin/ARGF (note that Kernel#gets is ARGF.gets, not $stdin.gets)
jenrzzz_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
<apeiros> so you don't have to interrupt it
<ljarvis> duh, I always forget about IO.select, such awesome
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crdpink has joined #ruby
<apeiros> also you'll have to use read_nonblock instead of gets
<apeiros> since the IO being read to read doesn't mean it has a full line. so gets would still block.
genpaku has quit [Ping timeout: 250 seconds]
crdpink2 has quit [Ping timeout: 248 seconds]
<kinduff> How can IO.select be integrated to the piece of code I wrote up there?
<kinduff> apeiros: or could you write a quick example? :)
jenrzzz has quit [Ping timeout: 256 seconds]
<kinduff> Never worked with this layer
<apeiros> midnight here, so no. I'm sure somebody else can.
<kinduff> np, thanks for pointing out IO
genpaku has joined #ruby
<jhass> mmh
arescorpio has joined #ruby
<jhass> IO.select doesn't guarantee a gets will return though
tuelz has quit [Ping timeout: 250 seconds]
<eam> you can raise in the thread
<jhass> no?
skade has quit [Quit: Computer has gone to sleep.]
blue_deref has quit [Quit: bbn]
<eam> jhass: right, gets() will block on all kinds of stuff
<eam> will need sysread()
<apeiros> jhass: read on
<apeiros> 00:01 apeiros: also you'll have to use read_nonblock instead of gets
<apeiros> 00:02 apeiros: since the IO being read to read doesn't mean it has a full line. so gets would still block.
bradleyp_ has joined #ruby
Eroc has joined #ruby
<jhass> oh sorry
<apeiros> being *ready to read
<jhass> totally skipped over that line
kirun has quit [Quit: Client exiting]
<jhass> my concentration is ... somewhere where I'm not
<apeiros> iow, I fully agree with you :)
bradleyprice has quit [Ping timeout: 252 seconds]
<eam> >> c = Thread.current; Thread.new { sleep 0.1; c.raise }; STDIN.gets rescue "broke out"
<ruboto> eam # => (https://eval.in/390686)
benlieb_ has joined #ruby
<eam> whooa ok can't thread in eval.in -- but run that
victortyau has quit [Quit: Leaving]
<eam> this is a dangerous mechanism though, the approach with read/select is what you really should do
<kinduff> eam: woah, my console just crashed
<kinduff> c = Thread.current; Thread.new { sleep 3; c.raise }; STDIN.gets rescue "broke out"
<apeiros> eam: that's potentially breaking stuff, though
<kinduff> if you trype something and press enter
<eam> apeiros: indeed, it's as bad as Timeout
<kinduff> why does it crash?
paulcsmith has quit [Quit: Be back later ...]
ndrei has quit [Ping timeout: 246 seconds]
skade has joined #ruby
klaas_ has joined #ruby
<eam> not sure what you mean by crash
kaleido has joined #ruby
<kinduff> so if you exit earlier of the `gets`, the Thread.current would be the irb console itself
<kinduff> it that true?
jeanlinux has quit [Remote host closed the connection]
<kinduff> so if I input something to that gets and wait for the c.raise, the console exists
<eam> kinduff: ah, yes
Janusz1 has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
marr123 has joined #ruby
<eam> you can insert something into that watchdog thread to not kill if (whatever condition)
<shevy> I feel so left alone in the ruby GUI world :(
zendrix has quit [Remote host closed the connection]
<eam> eg set_watchdog(); blocking_call(); unset_watchdog()
klaas has quit [Read error: Connection reset by peer]
marr has quit [Read error: Connection reset by peer]
warreng has quit [Ping timeout: 256 seconds]
Shidash has quit [Ping timeout: 256 seconds]
skmp has quit [Ping timeout: 256 seconds]
prasselpikachu has quit [Excess Flood]
uber has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
<eam> kinduff: but, you really should use IO.select
prasselpikachu has joined #ruby
Janusz1 has joined #ruby
marr123 is now known as marr
paulcsmith has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
<kinduff> eam: thanks!
guyz has quit [Ping timeout: 256 seconds]
slash_nick has quit [Ping timeout: 256 seconds]
skmp has joined #ruby
<eam> raising in another thread is essentially like dropping in a goto randomly
warreng has joined #ruby
KetaPan has joined #ruby
slash_nick has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
Shidash has joined #ruby
dopie has joined #ruby
digifiv5e has joined #ruby
chipotle has joined #ruby
paulcsmith has quit [Client Quit]
digifiv5e is now known as Guest1094
benlieb_ has quit [Quit: benlieb_]
<Eroc> Is there a way to do something like eval to execute arbitrary code, but to specify what subset of Ruby is considered valid? Specifically, I don't want people to be able to use System or something like that. I'd also like to avoid having to create a parser. Any ideas?
jenrzzz_ has quit [Ping timeout: 276 seconds]
<havenwood> Eroc: What do you need to parse in particular?
[H]unt3r_ has quit []
zacstewa_ has joined #ruby
casadei has joined #ruby
zendrix has joined #ruby
zacstewart has quit [Read error: Connection reset by peer]
uber has joined #ruby
<havenwood> Eroc: You just want a syntax check?
<Eroc> Logical expressions. I want to have a hash that represents some context, but then it would just be operations on that. Here's an example: "context[:foo][:bar] == 'baz'"
<havenwood> Eroc: ruby -c -e "context[:foo][:bar] == 'baz'"
<havenwood> Eroc: #=> Syntax OK
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Eroc> havenwood: Yes, a syntax check, but I want the universe of what can be evaluated minimized. So, no system calls, no logging, etc.
<Eroc> I want to eval something in a safe way.
momomomomo_ has joined #ruby
<Eroc> And seriously restrict what the user does and does not have access to.
momomomomo has quit [Ping timeout: 255 seconds]
momomomomo_ is now known as momomomomo
<Eroc> And also make a few convenience methods available to the user.
fantasti` has quit [Remote host closed the connection]
<havenwood> Eroc: So you want to check the syntax of the script and exit without executing?
jobewan has quit [Quit: Leaving]
fantasti` has joined #ruby
<Eroc> No, if it is valid and within the subset of Ruby that I consider safe, then I want to execute it.
sshuff has quit [Quit: Leaving]
dented42 has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
<zenspider> zomg it's been hours! what'd I miss!?!?!
<eam> Eroc: unlikely to be an effective approach outside of an academic exercise; it's pretty easy to break out of limits
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> Eroc: you can use a combination of ruby_parser + sexp_processor to write a validator
<Eroc> eam: Any ideas on a safe way to write this? I'm thinking I might need to define my own Ruby-like language for the expressions and write a parser for it.
kfpratt has joined #ruby
enebo has quit [Quit: enebo]
benlieb_ has joined #ruby
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has quit [Quit: Leaving.]
<Eroc> I agree that calling eval itself is probably going to be pretty messy and error-pront.
<Eroc> "prone"
<havenwood> Eroc: Why are you doing this?
<zenspider> you don't even need to use eval if you don't want to, given my suggestion above
fsvehla has quit [Quit: fsvehla]
<Eroc> I am implementing a workflow system and each node in the workflow needs a series of conditions that determine what the next step in the workflow is. Each condition looks at data gathered previously in the workflow to make the determination.
AlphaAtom has joined #ruby
<Eroc> zenspider: Missed your comment. I'll check those out.
workmad3 has joined #ruby
howdoicomputer has quit [Ping timeout: 246 seconds]
vickleton has quit [Quit: Ex-Chat]
vickleton has joined #ruby
revoohc has joined #ruby
bootstrappm has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
mandarinkin has quit [Ping timeout: 246 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 264 seconds]
jbourassa has quit [Quit: jbourassa]
vickleton has quit [Ping timeout: 256 seconds]
kaleido has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
mcclurmc has joined #ruby
howdoicomputer has joined #ruby
irb1 has joined #ruby
Eroc has quit [Quit: leaving]
haasn` is now known as haasn
<irb1> hello all
danman has quit [Quit: danman]
<irb1> anyone have experience with the rest-client gem?
<Senjai> ?use irb1
<ruboto> irb1, Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
Muhannad has quit [Ping timeout: 265 seconds]
<irb1> i am am trying to set the correct http headers using a cookie value but with no luck
ylluminarious has joined #ruby
niemcu has quit [Ping timeout: 255 seconds]
<irb1> these are the values i am trying to set
<irb1> Cookie:NITRO_AUTH_TOKEN=<tokenvalue>
<irb1> Content-Type:application/vnd.com.citrix.netscaler.nsfeature+json
<Radar> http headers with a cookie value? :\
<Radar> wat
<Radar> Are you conflating HTTP headers and cookies?
<irb1> the “content” header i am setting correctly but the cookies i can’t seem to correctly name and pass
<irb1> well the cookies are set in the headers :>)
<irb1> per the protocol
Ropeney has joined #ruby
Lucky___ has joined #ruby
<irb1> and i am following this documentation to set the correct cookie value http://www.rubydoc.info/gems/rest-client/1.8.0
<irb1> this is my code
<irb1> data_response = RestClient.post(url,feats, :cookies => {"NITRO_AUTH_TOKEN" => session_token}, :content_type => "application/vnd.com.citrix.netscaler.nsconfig+json")
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zendrix has quit [Remote host closed the connection]
<irb1> that is failing
micmus has quit [Quit: Leaving]
tflat_ has joined #ruby
Asher has quit [Quit: Leaving.]
workmad3 has joined #ruby
Asher has joined #ruby
dseitz has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jeanlinux has joined #ruby
<irb1> any help would be appreciated
<bootstrappm> morning all
<Senjai> ?gist irb1
<ruboto> irb1, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
tflat has quit [Ping timeout: 265 seconds]
<bootstrappm> irb1 as Radar said, the cookie value doesn't go in the HTTP header, the cookie ID does
<bootstrappm> or so i thought
<apeiros> bootstrappm: no. the complete cookie is in the headers.
cashnguns has quit [Ping timeout: 248 seconds]
<bootstrappm> yep, just checked, you're right
<apeiros> bootstrappm: your webframework may choose to associate data with your cookie, and store those elsewhere
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<apeiros> and that's then usually called "session data"
<bootstrappm> so yeah, in that case irb1, gist some code and send it over
Asher has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
jfarmer has joined #ruby
danielpclark has quit [Ping timeout: 264 seconds]
cb_ has joined #ruby
Guest69107 has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
blaines has joined #ruby
celly has joined #ruby
allomov has quit [Remote host closed the connection]
michael_mbp has joined #ruby
danman has joined #ruby
AlphaAtom has quit [Quit: Textual IRC Client: www.textualapp.com]
danman has quit [Client Quit]
cb_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
irb1 has quit [Quit: irb1]
juanpablo_ has quit [Quit: (null)]
danielpclark has joined #ruby
blackmesa has quit [Quit: WeeChat 1.2]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
sgambino has joined #ruby
Rickmasta has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
NeverDie has joined #ruby
Soda has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
ItSANg___ has joined #ruby
langlands has joined #ruby
ItSANgo_ has quit [Ping timeout: 248 seconds]
Indian has joined #ruby
langlan__ has joined #ruby
Aeyrix_ is now known as Aeyrix
dseitz has joined #ruby
endash has joined #ruby
neanderslob has quit [Read error: Connection reset by peer]
langland_ has quit [Ping timeout: 276 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kies^ has quit [Ping timeout: 256 seconds]
neanderslob has joined #ruby
langlands has quit [Ping timeout: 276 seconds]
RobertBirnie has quit [Ping timeout: 250 seconds]
langlan__ has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
balazs_ has joined #ruby
paulcsmith has joined #ruby
j4cknewt has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
dfockler has quit []
kinduff has quit [Quit: leaving]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
balazs_ has quit [Ping timeout: 246 seconds]
wildroman3 has quit [Remote host closed the connection]
KetaPan has quit [Remote host closed the connection]
djbkd has joined #ruby
cb_ has joined #ruby
alno1 has quit [Quit: Page closed]
Muhannad has joined #ruby
startupality has joined #ruby
Alayde has quit [Ping timeout: 264 seconds]
howdoicomputer has quit [Quit: WeeChat 1.2]
howdoicomputer has joined #ruby
findaway has quit [Ping timeout: 248 seconds]
<al2o3-cr> >>> "KO"
<ruboto> al2o3-cr # => /tmp/execpad-0d4e16032159/source-0d4e16032159:2: syntax error, unexpected '>' ...check link for more (https://eval.in/390695)
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
sbhatore has quit [Remote host closed the connection]
sbhatore has joined #ruby
sharpmachine has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
howdoicomputer has quit [Quit: WeeChat 1.2]
nettoweb has joined #ruby
mikecmpbll has quit [Quit: ciao.]
renderfu_ has joined #ruby
icarus_ has joined #ruby
dgutierrez1287 has quit [Ping timeout: 264 seconds]
endash has quit [Quit: endash]
j4cknewt has joined #ruby
dgutierrez1287 has joined #ruby
hinbody has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
rehat has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
renderfu_ has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
ESpiney_ has joined #ruby
chouhoulis has joined #ruby
serivich has joined #ruby
hinbody has quit [Client Quit]
n_blownapart has joined #ruby
mcclurmc has quit [Remote host closed the connection]
khorne has quit [Ping timeout: 256 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
ESpiney has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
mcclurmc has joined #ruby
chouhoulis has quit [Ping timeout: 244 seconds]
vyorkin has quit [Quit: WeeChat 1.2]
idafyaid has quit [Ping timeout: 264 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
ESpiney_ has quit [Ping timeout: 248 seconds]
dgutierrez1287 has joined #ruby
duncannz has joined #ruby
senayar has quit [Remote host closed the connection]
_ht has quit [Quit: Konversation terminated!]
eggoez has quit [Ping timeout: 256 seconds]
tuelz has joined #ruby
FernandoBasso has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
i8igmac has quit [Ping timeout: 246 seconds]
idafyaid has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
phutchins1 has quit [Ping timeout: 255 seconds]
momomomomo_ has joined #ruby
rcvalle has quit [Quit: rcvalle]
nettoweb has joined #ruby
RegulationD has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
jlast has quit [Remote host closed the connection]
bullcitydev has joined #ruby
kfpratt has joined #ruby
mcclurmc has quit [Remote host closed the connection]
EllisTAA has joined #ruby
jeramy_s has joined #ruby
kinduff has joined #ruby
kinduff has joined #ruby
bootstrappm has quit [Quit: bootstrappm]
EllisTAA has quit [Client Quit]
bootstrappm has joined #ruby
mrmargolis has joined #ruby
jtdoncas has joined #ruby
dede has quit [Quit: Connection closed for inactivity]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
sgambino has quit [Read error: Connection reset by peer]
bootstrappm has quit [Ping timeout: 264 seconds]
rcvalle has joined #ruby