havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
ZerGabriel has joined #ruby
frewtc4ke has left #ruby [#ruby]
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest80422 has quit []
freerobby has quit [Quit: Leaving.]
dudedudeman has quit [Quit: dudedudeman]
guacamol_ has joined #ruby
dlitvak has joined #ruby
blackmesa has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
altair118 has quit [Remote host closed the connection]
guacamole has quit [Ping timeout: 240 seconds]
GraemeLion has joined #ruby
sepp2k has quit [Quit: Leaving.]
ZerGabriel has quit []
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Ping timeout: 250 seconds]
cschneid_ has quit [Remote host closed the connection]
moeabdol has joined #ruby
lucasb has quit [Quit: leaving]
wilbert has joined #ruby
wilbert has quit [Read error: Connection reset by peer]
zyzioziom1 has quit [Quit: Leaving.]
jam_ has joined #ruby
TomPeed is now known as justbleed
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 265 seconds]
krobzaur has quit [Ping timeout: 245 seconds]
blackmes1 has joined #ruby
toretore has joined #ruby
wilbert has joined #ruby
whippythellama has quit [Quit: WeeChat 1.4]
jaffachief_ has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 265 seconds]
jam_ has quit [Ping timeout: 245 seconds]
SCHAAP137 has joined #ruby
sperant has joined #ruby
nertzy2 has quit [Quit: This computer has gone to sleep]
KnownSyntax has quit [Ping timeout: 256 seconds]
nertzy2 has joined #ruby
_djbkd has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
n00bdev has quit []
oivoodoo has quit [Remote host closed the connection]
<Fire-Dragon-DoL> having problems finding the following out: does ruby ssl_version uses :auto as default value? If yes I suppose it can decide which ssl version can use. And second part of the question: does ruby 2.1.2 support tls v1.2+?
Clutch has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toretore has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oivoodoo has joined #ruby
<Clutch> hello everyone, I am trying to install a ruby application, and getting this error, can you help me know how to fix it please? http://paste.ubuntu.com/14602796/
oivoodoo has quit [Remote host closed the connection]
ascarter has quit [Max SendQ exceeded]
<havenwood> Clutch: Prepending `bundle exec` to your command may solve this.
ascarter has joined #ruby
<havenwood> Clutch: Did you already try that ^ or not yet?
Musashi007 has joined #ruby
Musashi007 has quit [Client Quit]
<Clutch> havenwood, yes, I did
<Clutch> pasting in a min
jgt has joined #ruby
<Clutch> havenwood, it gave this: http://paste.ubuntu.com/14602883/
ascarter has quit [Client Quit]
adgtl has joined #ruby
<havenwood> Clutch: sudo apt-get install -y nodejs
bb010g has joined #ruby
aegis3121 has quit [Ping timeout: 260 seconds]
<Ox0dea> havenwood: Tried Hanami yet? :P
<Clutch> havenwood, installed
ur5us has quit [Remote host closed the connection]
<havenwood> Ox0dea: Only by its previous namesake.
firstdayonthejob has quit [Ping timeout: 265 seconds]
<Clutch> now I tried again and it seems to have worked, though I got some warnings..should I undertake anything for them?
adgtl has quit [Ping timeout: 250 seconds]
kies^ has joined #ruby
ascarter has joined #ruby
hannelita has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
sperant has joined #ruby
skade has joined #ruby
skcin7 has joined #ruby
<havenwood> Clutch: If you're maintaining the app you'll probably want to update away from deprecated features as the warning warn. Otherwise, success!
sandstrom has quit [Quit: My computer has gone to sleep.]
Jardayn has quit [Quit: Leaving]
ur5us has quit [Ping timeout: 265 seconds]
ZerGabriel has joined #ruby
<Clutch> havenwood, just made the updates manually
skade has quit [Ping timeout: 250 seconds]
juddey has quit [Ping timeout: 240 seconds]
<jbrhbr> >> def square(x); x*x; end; (0..10).map(&:square)
<ruby[bot]> jbrhbr: # => private method `square' called for 0:Fixnum (NoMethodError) ...check link for more (https://eval.in/506618)
<jbrhbr> is there any way to get that to work?
<jbrhbr> it just occurred to me that it would be nicer in this unary function case than having to use the block style
<jbrhbr> i guess it's doing a send on the integer object
<jbrhbr> i'd have to define Integer::square perhaps
sftrabbit has quit [Quit: sftrabbit]
Newtonianb has quit [Ping timeout: 250 seconds]
dlitvak has joined #ruby
slacko153411 has joined #ruby
disconnekted has joined #ruby
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
slacko153411 has left #ruby [#ruby]
f3ttX] has quit [Remote host closed the connection]
<Ox0dea> jbrhbr: Methods defined at the top level becoming private instance methods on Object.
<Ox0dea> >> def foo; end; 42.method(:foo).owner
<ruby[bot]> Ox0dea: # => Object (https://eval.in/506625)
<Ox0dea> s/becoming/become/
<jbrhbr> yea, so the send fails
<Ox0dea> Well, the #public_send, if you wanna look at it that way, but yeah.
dlitvak has quit [Ping timeout: 240 seconds]
<jbrhbr> i'm just trying to send a custom predicate to the short form of select/reject but i guess i'm stuck with having to use a block
<Ox0dea> jbrhbr: You're not. :)
emilford has quit [Ping timeout: 240 seconds]
<Ox0dea> >> def square x; x * x end; (1..5).map &method(:square)
<ruby[bot]> Ox0dea: # => [1, 4, 9, 16, 25] (https://eval.in/506626)
<domgetter> jbrhbr one solution is to use a lambda
<jbrhbr> :O
<domgetter> >> square = -> x {x*x}; (0..10).map(&square)
<Ox0dea> jbrhbr: That's invoking #method on the implicit receiver, which in this case is Object.
<ruby[bot]> domgetter: # => [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100] (https://eval.in/506627)
<jbrhbr> Ox0dea: i hadn't seen that form before
Pupeno has quit [Quit: Leaving...]
<jbrhbr> fancy
<Ox0dea> jbrhbr: Do you know how & interacts with #to_proc?
<jbrhbr> thanks guys, i'll see which of those two makes the most sense for me
blackgoat has quit [Quit: WeeChat 1.3]
<jbrhbr> i read through the code for it once but i'm hardly an expert
<jbrhbr> i just remember some check with responds_to? and send
<domgetter> using Ox0dea's version is more object oriented; using my version is more functional
hannelita has quit [Remote host closed the connection]
skcin7 has quit [Ping timeout: 276 seconds]
<Ox0dea> jbrhbr: That's the general idea, yeah; the takeaway is that any object can define #to_proc and be used in block context.
<Ox0dea> It just so happens that Method#to_proc does The Right Thing.
<jbrhbr> gotcha
<jbrhbr> i guess i should't be too surprised, &:square would have failed in other cases too where method(:square) would have worked
Channel6 has joined #ruby
sandstrom has joined #ruby
<Ox0dea> map(&:foo) : map { |x| x.foo } :: map(&method(:foo)) : map { |x| foo x }
GraemeLion has quit [Quit: WeeChat 1.3]
jgt has quit [Ping timeout: 272 seconds]
<jbrhbr> took me a sec to parse out the "is as is to" stuff there ;)
<jbrhbr> thanks again
<Ox0dea> Sure thing.
<Ox0dea> One more to drive it home.
<Ox0dea> >> def (Doubler = Object.new).to_proc; -> x { x * 2 } end; [1,2,3].map &Doubler
<ruby[bot]> Ox0dea: # => [2, 4, 6] (https://eval.in/506629)
<Ox0dea> *Any* object can participate as a block.
<Ox0dea> Little scary, mostly awesome.
<jbrhbr> except we can refer to it directly here because it's already a proc
<Ox0dea> No, #map doesn't take a Proc.
<Ox0dea> >> [].method(:map).arity
<ruby[bot]> Ox0dea: # => 0 (https://eval.in/506630)
<jbrhbr> just a default block then?
<Ox0dea> Every method receives an implicit block.
<jbrhbr> it's hard for me to understand why all of these mechanisms are needed in one language.. :)
<jbrhbr> yeah, i'm familiar with that much at least
<Ox0dea> There's really only one mechanism being represented here.
<Ox0dea> The & unary operator tries to invoke the receiver's #to_proc method and use the result as a block.
<jbrhbr> i mean proc vs block vs lambda
<Ox0dea> They're all subtly different things, and the language would be worse in any one's absence.
baweaver has quit [Remote host closed the connection]
atomical has joined #ruby
rkazak has joined #ruby
podman has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
altair118 has joined #ruby
cbyrda has quit [Quit: Gone]
<jbrhbr> so far i've only had done direct transparent usage of lambdas and blocks. outside of understanding how stuff works like in this conversation, whatever differentiates the proc concept is still a bit unclear to me, but there are lots of articles/blogs about this
<jbrhbr> s/had//
altair118 has quit [Remote host closed the connection]
altair118 has joined #ruby
<jbrhbr> like you need to know blocks at least for API design, and lambdas sometimes for DRY
fourq has quit [Quit: ZNC 1.6.1 - http://znc.in]
chouhoulis has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
jgpawletko has joined #ruby
<Ox0dea> Blocks as the go-to from an API standpoint is sound, and Procs are essentially just a means by which to pass blocks around.
Limix has quit [Quit: Limix]
_djbkd has joined #ruby
jottr has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
<Ox0dea> jbrhbr: Here's the difference between proc and lambda: https://eval.in/506631
<Ox0dea> `return` in a Proc exits the surrounding method instead of just the block.
skade has quit [Ping timeout: 240 seconds]
<Ox0dea> Also, lambda is strict about its arguments whereas Proc is willy-nilly.
skcin7 has joined #ruby
<Ox0dea> You almost always want a lambda, and thankfully that's what the stabby syntax gives us.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jbrhbr> stabs and rockets
emilford has joined #ruby
<Clutch> hello again, I've got this error noq: http://paste.ubuntu.com/14603473/
<Clutch> now*
<jbrhbr> lol
<Clutch> can you please help me know how I can fix this one?
<jbrhbr> i didn't know there were so many names but i appreciate this
<jbrhbr> i've just sort of waved my hands around in the air before when trying to describe the 'shovel'
wilbert has joined #ruby
last_staff has quit [Quit: last_staff]
<zambini> There's a disappointing lack of reference to `spermy operator`
UtkarshRay has joined #ruby
<jbrhbr> which one is that? :p
<Canar> ~?
UtkarshRay has quit [Max SendQ exceeded]
<Ox0dea> zambini: And the bangarang: !~
emilford has quit [Ping timeout: 265 seconds]
<zambini> jbrhbr: ~> iirc
UtkarshRay has joined #ruby
n_blownapart has joined #ruby
<Ox0dea> I like the guy that laughs because he gets it immediately.
bluOxigen has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Max SendQ exceeded]
bronson has joined #ruby
dlitvak has joined #ruby
UtkarshRay has joined #ruby
yeticry_ has joined #ruby
IrishGringo has joined #ruby
UtkarshRay has quit [Max SendQ exceeded]
asccigcc has quit [Quit: asccigcc]
UtkarshRay has joined #ruby
wilbert has quit [Ping timeout: 272 seconds]
yeticry has quit [Ping timeout: 256 seconds]
UtkarshRay has quit [Max SendQ exceeded]
emilford has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
bronson has quit [Ping timeout: 265 seconds]
skade has joined #ruby
dlitvak_ has joined #ruby
scripore has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Sucks has joined #ruby
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x0f has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
sperant has joined #ruby
n_blownapart has quit []
vikas027 has joined #ruby
sdwrage has joined #ruby
tvw has quit [Ping timeout: 245 seconds]
x0f has joined #ruby
skade has quit [Ping timeout: 272 seconds]
duderono_ has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Ebok has joined #ruby
dlitvak_ has quit [Ping timeout: 276 seconds]
sperant has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthropododo has quit [Quit: Leaving]
nertzy2 has quit [Quit: This computer has gone to sleep]
edwcar13 has joined #ruby
edwcar13 has left #ruby [#ruby]
arthropododo has joined #ruby
hannelita has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
IrishGringo_ has joined #ruby
AndChat-641136 has joined #ruby
<Clutch> havenwood, thank you for your help! ciao!
Clutch has left #ruby [#ruby]
IrishGringo has quit [Ping timeout: 265 seconds]
yqt has quit [Ping timeout: 240 seconds]
dudedudeman has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
speakingtoad has quit [Ping timeout: 260 seconds]
<blarghlarghl> Here's a puzzler for you. If I run a rake/rspec task, a gem I built with native extensions needs the .so ending in the require (i.e. require 'mygem.so') but if I'm just running the code regularly, it does not. What the hell?
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndChat-641136 has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
kspencer has quit [Quit: WeeChat 1.4]
skade has joined #ruby
baweaver has joined #ruby
<Ox0dea> blarghlarghl: You should require 'foo/foo' from lib/foo.rb.
marr has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
<blarghlarghl> Ox0dea: That doesn't work! It dies unless I require 'foo.so' in lib/foo.rb. All this is me calling it outside of the gem - already have the gem deployed and in use. When I write test cases in our app, it dies. When I run the app manually, it works.
baweaver has quit [Ping timeout: 260 seconds]
<Ox0dea> ¯\_(ツ)_/¯
IrishGringo has quit [Read error: Connection reset by peer]
<blarghlarghl> Ox0dea: right? crazy stuff.
Newtonianb has joined #ruby
IrishGringo_ has quit [Ping timeout: 265 seconds]
<blarghlarghl> Ox0dea: honestly, everything that could possibly go wrong with this project, has.
<Ox0dea> blarghlarghl: What are you passing to #create_makefile?
IrishGringo has joined #ruby
<blarghlarghl> Ox0dea: create_makefile('foo')
<Ox0dea> blarghlarghl: Try 'foo/foo'.
<Ox0dea> Really, this is all in TFM. :/
vikas027 has quit [Read error: Connection reset by peer]
<Canar> Fine indeed.
<Ox0dea> Just so.
dudedudeman has quit [Quit: dudedudeman]
ZeeNoodleyGamer has quit [Changing host]
ZeeNoodleyGamer has joined #ruby
ZeeNoodleyGamer is now known as kspencer
<blarghlarghl> Ox0dea: "Fine" - you're totally correct. Okay, mea culpa!
skade has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
<Ox0dea> Let us be relentless in our forgiveness.
blackmes1 has quit [Quit: WeeChat 1.4]
semeion has joined #ruby
rubynuby has joined #ruby
<semeion> how i can run the external command 'iconv -t ASCII//TRANSLIT' in a ruby var returning the result of command in same var?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubynuby has quit [Client Quit]
rubnub has joined #ruby
rubnub has left #ruby [#ruby]
rubnub has joined #ruby
timanema has joined #ruby
rubnub has left #ruby [#ruby]
rubnub has joined #ruby
hxegon is now known as hxegon_AFK
rubnub has left #ruby [#ruby]
rubnub has joined #ruby
rubnub has left #ruby [#ruby]
rubnub has joined #ruby
rubnub has left #ruby [#ruby]
rubnub has joined #ruby
ajf- has quit [Quit: Textual IRC Client: www.textualapp.com]
timanema has quit [Client Quit]
baweaver has quit [Ping timeout: 276 seconds]
timanema has joined #ruby
rubnub has quit [Client Quit]
jam_ has joined #ruby
speakingtoad has joined #ruby
goodcodeguy has joined #ruby
zambini has quit [Quit: Leaving.]
<konsolebox> semeion: var = %x[command], but that depends on the command's input, and sometimes output
<konsolebox> blarghlarghl: i prefer naming the extension mygem_ext.so than placing it under a subdirectory when its contents are not in a submodule
<Ox0dea> But as konsolebox advises, you'll want to be careful about special characters and the like.
IrishGringo_ has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
jam_ has quit [Ping timeout: 272 seconds]
hxegon_AFK is now known as hxegon
<semeion> is this way? myvar = %myvar[iconv -t ASCII//TRANSLIT]
<semeion> i never tried ruby before
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<semeion> i only need convert the content of a var removing the accents, that iconv command work fine in bash, but in ruby i don´t know how do the same
<semeion> i need a complete command, because i am not a ruby coder
Darmani has quit [Quit: Page closed]
skade has joined #ruby
<Ox0dea> Nice entitlement.
hannelita has quit [Remote host closed the connection]
Guest32289 is now known as saneax_AFK
goodcodeguy has joined #ruby
hannelita has joined #ruby
<timanema> semeion: what does that bash command do?
<semeion> timanema: he remove the accents, type it in console and you will see: iconv -t ASCII//TRANSLIT <<< 'áéíóúçãõâêô'
IrishGringo_ has quit [Ping timeout: 250 seconds]
<timanema> semeion: I get this 'a'e'i'o'uc~a~o^a^e^o
davedev24 has quit []
rkazak has quit [Quit: Sleep.....ing....]
<semeion> timanema: you should get aeioucaoaeo
hannelita has quit [Ping timeout: 240 seconds]
skade has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 1.3]
FooMunki has joined #ruby
skcin7 has joined #ruby
<Mon_Ouie> Depends on your LANG environment variable, transliteration depends on language (and even then it can depend on context in reality)
<semeion> ok
arlek has joined #ruby
<semeion> can you help me a bit with this command? myvar = %x[iconv -t ASCII//TRANSLIT]
<semeion> i need pass the value of myvar to iconv
<semeion> someting like: myvar = %x[iconv -t ASCII//TRANSLIT <<<myvar]
<semeion> but i don´t know the correct ruby syntax to do it
<timanema> semeion: are you using plain ruby or rails?
<semeion> i don´t know the difference, i am trying fix a script from another author
IrishGringo has joined #ruby
<semeion> the script work fine, but when it get some word with accent he fail
<timanema> semeion: can you post a gist of it?
<semeion> so i want remove the accents from that var before it fail
arescorpio has joined #ruby
<semeion> it is only 1 line
<semeion> i have a var, i need perform iconv command on this var
<semeion> nothing more
x77686d has quit [Quit: x77686d]
hxegon has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
rkazak has joined #ruby
<semeion> in bash it could be something like: myvar = $( echo "$myvar" | iconv -t ASCII//TRANSLIT)
<semeion> i need do same in ruby
<Ox0dea> semeion: Is this the last time you're ever going to use Ruby?
<timanema> to_translate = 'áéíóúçãõâêô';exec("iconv -t ASCII//TRANSLIT <<< '#{to_translate}'")
<semeion> i only want fix it
<Ox0dea> timanema: Uh, no, not #exec.
<timanema> sounds like what you need for your situation
<Ox0dea> exec() replaces the current process.
<Ox0dea> semeion: You don't want to learn?
<timanema> it sounds like a simple script for one env why not
binns has joined #ruby
jbrhbr has quit [Quit: Leaving.]
gregf has joined #ruby
<Ox0dea> timanema: It's okay to be wrong; just strive to not be wrong about the same thing more than once.
<Ox0dea> They obviously want to use this string after they've converted it.
<timanema> Ox0dea: good advice to heed
TomPeed has joined #ruby
dlitvak has joined #ruby
<timanema> but from the surface this seems a pretty surface level script and exec returns what they need
skade has joined #ruby
daryl256 has joined #ruby
norc__ has joined #ruby
<Ox0dea> timanema: exec() replaces the current process...
binns has quit [Quit: Updating details, brb]
binns has joined #ruby
jbrhbr has joined #ruby
<Ox0dea> Using Kernel#exec here will essentially "turn their program into" an invocation of `iconv`, which is absolutely not the intent.
newbie22 has joined #ruby
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<timanema> Ox0dea: sorry I don't mean to sound anything other than inquiring but........so? If the script is run at a superficial level what is the problem with that?
hiyosi has joined #ruby
lessless has joined #ruby
sakix has joined #ruby
dfinninger has joined #ruby
norc_ has quit [Ping timeout: 250 seconds]
<Ox0dea> timanema: Please tell me you see the problem here: https://glot.io/snippets/eb88pb04gn
jottr has quit [Ping timeout: 264 seconds]
<Ox0dea> You advised them to kill their process and forget about whatever else they wanted to do with their converted string.
<timanema> yeah I can see that is doesnt reach the last put statement
<Ox0dea> How come?
guacamol_ has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
<timanema> okay you are right about exec but instead of condeming it you should have offered this https://glot.io/snippets/eb88r7z722
<timanema> "How come?" condecending teaching voice bullshit
<Ox0dea> Calm down.
<Ox0dea> Learning is good for you.
<timanema> yeah I agree but your fucking condecending tone is poison to your message
skade has quit [Ping timeout: 245 seconds]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Mon_Ouie> semeion: You can use IO.popen to write to the child process's input
<Ox0dea> Mon_Ouie: They're here for code.
sakix has quit [Ping timeout: 240 seconds]
IronD has joined #ruby
<IronD> Hello
emilford has quit [Ping timeout: 256 seconds]
<IronD> Question: I am attempting to create a program that plays puzzle games right off your computer screen
<IronD> Will I need jruby to interact with my mouse and keyboard?
<IronD> or is there some other way of using just pure ruby
<Ox0dea> IronD: You can actually capture mouse events in a terminal, but you probably don't wanna get your hands *that* dirty.
al2o3-cr has quit [Ping timeout: 250 seconds]
hnagamin has joined #ruby
newbie22 has quit [Quit: Leaving]
<Mon_Ouie> Oh, I thought they meant faking events
<Ox0dea> Oh, right.
<IronD> I can look into that
<Ox0dea> IronD: Nah, you want something like AutoHotKey or AutoIt.
<IronD> Well, the issue with that:
stuxnet has joined #ruby
dfinninger has quit [Remote host closed the connection]
<IronD> I need the program to recognize the game state through images on screen(since I dont know of a way that it could get data directly from the game
<IronD> )
<Ox0dea> IronD: AutoHotKey can certainly do that.
<Ox0dea> The language isn't near as nice as Ruby, but it's tolerable.
sakix has joined #ruby
<Ox0dea> Of course, it's all just data at the bottom, so there's certainly a way to get the information without querying pixels, but it's liable to be much more involved.
<IronD> programming a way for it to recognize shapes, numbers, and other on screen images? That seems like a hardsell on utohotkey
<Ox0dea> It's not. :)
<IronD> Autohotkey*
<Ox0dea> Or, well, it's doable.
usershell has joined #ruby
emilford has joined #ruby
solocshaw has quit [Ping timeout: 256 seconds]
<IronD> Ok so my final reason to want to do this in Ruby is because I dont get enough practice on it anyway. Ive been a noob forever and then some. This might help me really understand it.
SCHAAP137 has quit [Remote host closed the connection]
<Ox0dea> Not likely. Making autoplayers that grab the screen and act accordingly is mostly just a lot of grunt work.
IrishGringo has quit [Ping timeout: 240 seconds]
<IronD> Well regardless of, I would still like to try it. Any ideas on this apparently dull path I am about to walk down? lol
<Ox0dea> The easiest way to detect shapes and respond on Windows is AutoHotKey.
<Ox0dea> I can't in good conscience advise you elseways.
<IronD> Oh man lol
<IronD> Can I store large amounts of data with Autohotkey?
emilford has quit [Ping timeout: 240 seconds]
<IronD> Like, a LOT of data?
skade has joined #ruby
halvo has joined #ruby
<IronD> or make it play nice with something that can?
<Ox0dea> Java's Robot class is apparently pretty great: https://docs.oracle.com/javase/8/docs/api/java/awt/Robot.html
<Ox0dea> Do the JRuby thing.
<IronD> Can it also call on this data effectively quickly if it has to make decisions somewhat faster than an average human can?
<Ox0dea> IronD: I wish I had any of my old AHK scripts lying around.
<blarghlarghl> Ox0dea: i fixed it all up, followed the guide a bit better, all works fine now! (except the sdk is refusing to play ball sometimes, but i don't think that's down to the gem.)
dfockler has quit [Ping timeout: 250 seconds]
<blarghlarghl> Ox0dea, so, thanks
_djbkd has quit [Remote host closed the connection]
<Ox0dea> blarghlarghl: Yay! \o/
<IronD> Ah! An endorsement. I knew I was not too crazy lol
<Ox0dea> IronD: This would've been almost ten years ago now. I'm sure AHK's gotten considerably better in the interim, and it worked just fine back then.
babblebre has quit [Quit: Connection closed for inactivity]
<Ox0dea> I was meticulous about querying as small a portion of the screen as possible for maximum throughput, but that was usually overkill.
<Ox0dea> I just liked seeing it go as fast as I could make it do. :)
<IronD> Ah, understood!
Tempesta has quit [Ping timeout: 265 seconds]
<IronD> Well I initially looked at it when I realized that Ruby might be a better bet, since I am somewhat familiar with it and have other reasons to want to use it more.
Tempesta has joined #ruby
binns has quit [Quit: Updating details, brb]
<IronD> Again, I do not doubt its ability with mouse/keyboard input
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<IronD> I jsut dont know how well it can do all the other processing I want the program to do
<IronD> just*
binns has joined #ruby
cson has joined #ruby
cson has left #ruby [#ruby]
<IronD> I essentially wnat the program to be aware of the state of the game at all times and learn to figure out a few things based on that state. Like the best decision to make when killing enemies based on stats it will have to infer from images alone
blackgoat has joined #ruby
<IronD> and when I say infer I mwan: There are stats that the player/user of the game will be completely unaware of(health bar of enemies do not display a number)
govg has joined #ruby
skade has quit [Ping timeout: 264 seconds]
<IronD> So I will make it calculate HP based on my teams attack power and how much the health bars go down when executing attacks and whatnot.
<IronD> Again, this is the reason I am uncertain of AHK
<Ox0dea> That's perfectly feasible with AHK.
<Ox0dea> In that particular case, as an example of how to optimize, you'd really only need a pixel-high slice of the bar, right?
<IronD> Yes, that would make sense
<Ox0dea> You start out by calibrating your position on the screen based on some static pixel, then code in the offsets of all the elements in which you're interested.
IrishGringo has joined #ruby
asccigcc has joined #ruby
<Ox0dea> Then you get to make little 6x6 (or whatever) transparent PNGs that contain the right pixels in the right places, have AHK "fuzzy search" the screen to determine what's what, and go from there.
<Ox0dea> It's drudgery until you get to watch it go.
jbrhbr has quit [Quit: Leaving.]
bronson has joined #ruby
<IronD> It can also just start based on the position of a given window correct?
<Ox0dea> Sure.
<Ox0dea> There's this Ruby wrapper around AutoIt: http://auto.rubyforge.org/au3/doc/index.html
<konsolebox> semeion: Ruby version is complex: https://bpaste.net/show/5ff792757e2d
<Ox0dea> It's very old and doesn't look like it provides anything more than querying a single pixel.
<IronD> Oh, that looks interesting
<konsolebox> semeion: why not use http://ruby-doc.org/core-2.0.0/Encoding.html?
<IronD> :(
<IronD> What does AHK use for scripting?
<Ox0dea> Its own language.
al2o3-cr has joined #ruby
<Ox0dea> It's kinda like the demon spawn of Lua and QBasic.
<IronD> I wish I knew those languages as well as that sentence proves you do :P
<semeion> konsolebox: thank you
<konsolebox> semeion: sorry, this was the proper version: https://bpaste.net/show/7d7e4d9551af. i'm gonna add the function to my collection.
asccigcc has quit [Client Quit]
IrishGringo has quit [Read error: Connection timed out]
bronson has quit [Ping timeout: 265 seconds]
twistedpixels has quit [Ping timeout: 250 seconds]
moeabdol1 has joined #ruby
<semeion> konsolebox: nice code, thank you again
twistedpixels has joined #ruby
moeabdol has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
<blarghlarghl> Ox0dea: how much do you know about how rspec does its thing? This SDK I'm working on has a licensing check built in - I don't know what it does exactly - and it tells me that it can't find my license if I'm running a test case using rspec. If I run the same code that the test case runs, though, outside of rspec, the SDK works fine. the SDK is called via language bindings, so it's a few steps removed.
<IronD> Ox0dea: Can you tell me more about the "fuzzy searching and how that would work?
<blarghlarghl> Ox0dea: so there must be something funky going on with how rspec handles processes which the SDK objects to.
<Ox0dea> blarghlarghl: Haven't the foggiest. :<
<blarghlarghl> No worries!
<blarghlarghl> Right, it's very late. Actually already early. I should go to bed. :) Night, and thanks again.
<Ox0dea> Au revoir!
IrishGringo has joined #ruby
emilford has joined #ruby
<Ox0dea> IronD: It's just that the pixels aren't always exact unless you're botting something crazy-simple; fuzzy matching lets AHK go "close enough".
skade has joined #ruby
<Ox0dea> You have to be wary of false positives, though, in which case you must either define your target more precisely or fiddle with the fuzziness threshold.
<Ox0dea> Sounds like a riot, innit? :P
<IronD> Well...
<IronD> I wonder about how a few things would work then
sakix has quit [Ping timeout: 245 seconds]
<IronD> Wouldnt the positioning of the pixels always be the same if its relative to the window edges?
<Ox0dea> Aye, I meant color-wise.
<IronD> So I assume that looking for an image is just too resource intensive?
<IronD> or matching that image rather
<Ox0dea> It's all pretty context-dependent.
sakix has joined #ruby
<Ox0dea> Asking it to fuzzy-find anything larger than, say, 80x80 will probably be too slow for real-time.
rkazak has quit [Quit: Sleep.....ing....]
<Ox0dea> If you're willing to strain your eyes enough (or just zoom in) to find those little unique patterns in a 5x5 area, you can speed things up considerably.
<Ox0dea> I'd recommend just diving in; you're liable to get a feel for it.
FooMunki has quit [Quit: FooMunki]
<Ox0dea> You know, you'd never know the difference between rgb(50, 100, 150) and rgb(50, 99, 150), but they're as different as 1 and 2 to a computer's eyes.
<IronD> Udnerstood
<Ox0dea> You have to account for that, either by masking that particular area, or else increasing the fuzz factor.
arthropododo has quit [Remote host closed the connection]
TheHodge has quit [Quit: Connection closed for inactivity]
astrobunny has joined #ruby
<IronD> So, One thing:
<IronD> Actually
<IronD> let me look at the documentation for this
skade has quit [Ping timeout: 265 seconds]
Tempesta has quit [Quit: See ya!]
dlitvak has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
ledestin has joined #ruby
Ebok has joined #ruby
<IronD> Any suggestions on planning a project?
<Ox0dea> Start now.
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
timanema has quit [Quit: leaving]
<IronD> Yup, Writing down a few things
Yzguy has joined #ruby
toretore has joined #ruby
rdark has quit [Ping timeout: 260 seconds]
moeabdol1 has quit [Quit: WeeChat 1.4]
Lycaonian has quit [Quit: WeeChat 1.3]
gruz0 has joined #ruby
<Ox0dea> IronD: Particularly useful are areas of high information density and stark contrast.
<Ox0dea> A health bar with a border being the obvious example.
moeabdol has joined #ruby
shadoi has quit [Quit: Leaving.]
Averna has joined #ruby
Yzguy has quit [Client Quit]
Yzguy has joined #ruby
<Ox0dea> Overall, the trick is simply to realize that a given object can almost always be uniquely identified by some portion of itself that is substantially smaller than the whole image.
<IronD> Yeah, I had been thinking through some of the functionality ill need this to have and realized I might have to make it a little smarter than I want it to be(It might have to figure out how much to scroll when It cant find something on a screen)
<Ox0dea> The less work you give the computer to do, the more times it'll do it for ya.
<Ox0dea> Thanks, computers.
Dimik has quit [Ping timeout: 245 seconds]
<IronD> Hahaha!
<IronD> The good thing is, the game has some elements that I mgiht be able to use as a reference because in some screens they are always static
frem has quit [Quit: Connection closed for inactivity]
stuxnet has quit [Quit: WeeChat 0.4.2]
Averna has quit [Quit: Ex-Chat]
skade has joined #ruby
Averna has joined #ruby
zast has joined #ruby
astrobunny has quit [Remote host closed the connection]
IrishGringo_ has joined #ruby
IrishGringo has quit [Ping timeout: 240 seconds]
Averna has quit [Read error: Connection reset by peer]
Averna has joined #ruby
braincrash has quit [Quit: bye bye]
arlek has quit [Ping timeout: 265 seconds]
persistence has joined #ruby
Yzguy has quit [Quit: Zzz...]
krobzaur has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
mfb2 has joined #ruby
rkazak has joined #ruby
IrishGringo_ has quit [Read error: Connection reset by peer]
mchu has joined #ruby
mchu has quit [Client Quit]
IrishGringo has joined #ruby
skade has quit [Read error: No route to host]
jam_ has joined #ruby
astrobunny has joined #ruby
usershel_ has joined #ruby
treaki_ has joined #ruby
usershell has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
astrobunny has quit [Remote host closed the connection]
jam_ has quit [Ping timeout: 265 seconds]
karmatr0n has quit [Ping timeout: 250 seconds]
treaki has quit [Ping timeout: 240 seconds]
gruz0 has quit [Quit: Leaving]
[-Orbit-] has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chipotle has joined #ruby
ljames has quit []
Averna has quit [Quit: Ex-Chat]
skade has joined #ruby
Averna has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
ss_much has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Maxed has joined #ruby
IrishGringo has joined #ruby
solenoids has quit [Ping timeout: 256 seconds]
oivoodoo has joined #ruby
skade has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Remote host closed the connection]
Maxed has quit [Client Quit]
rtail_ has joined #ruby
oivoodoo has quit [Ping timeout: 245 seconds]
mfb2 has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
daryl256 has quit [Quit: Textual IRC Client: www.textualapp.com]
[-Orbit-] has joined #ruby
Newtonianb has quit [Ping timeout: 245 seconds]
gix has quit [Ping timeout: 250 seconds]
emilford has quit [Ping timeout: 265 seconds]
IrishGringo has quit [Ping timeout: 276 seconds]
gix has joined #ruby
paradisaeidae has quit [Quit: ChatZilla 0.9.92 [Firefox 43.0.4/20160105164030]]
skade has joined #ruby
nanoz has joined #ruby
astrofog has joined #ruby
IrishGringo has joined #ruby
saneax_AFK is now known as saneax
nerium has quit [Quit: nerium]
saneax is now known as Guest3771
Averna has quit [Ping timeout: 272 seconds]
nerium has joined #ruby
DiCablo has joined #ruby
[-Orbit-] has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
donnoc has quit [Ping timeout: 265 seconds]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
usershel_ has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
dudedudeman has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
IrishGringo has quit [Ping timeout: 260 seconds]
usershell has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 250 seconds]
bronson has joined #ruby
skade has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
usershel_ has joined #ruby
codecop has joined #ruby
Sucks has quit [Remote host closed the connection]
usershell has quit [Ping timeout: 256 seconds]
skade has joined #ruby
LMity has joined #ruby
IrishGringo has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
bronson has quit [Ping timeout: 265 seconds]
usershel_ has quit [Read error: No route to host]
usershell has joined #ruby
sakix has quit [Ping timeout: 240 seconds]
oivoodoo has joined #ruby
dudedudeman has quit [Quit: dudedudeman]
LMity has quit [Ping timeout: 256 seconds]
afast has joined #ruby
nerium has quit [Quit: nerium]
oivoodoo has quit [Ping timeout: 245 seconds]
Guest3771 is now known as saneax_AFK
chouhoulis has joined #ruby
darkf has joined #ruby
yfeldblum has quit [Remote host closed the connection]
huQeQwdpu47q has quit [Ping timeout: 265 seconds]
mfb2 has joined #ruby
afast has quit [Quit: Bye]
afast has joined #ruby
afast has quit [Client Quit]
afast has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
afast has quit [Client Quit]
afast has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
mfb2 has quit [Ping timeout: 250 seconds]
DiCablo has quit [Quit: Textual IRC Client: www.textualapp.com]
d10n-work has quit [Quit: Connection closed for inactivity]
IrishGringo has joined #ruby
<semeion> konsolebox: what LC_COLLATE i should use to read a html file? it have <head><meta charset="iso-8859-1"> the site is: http://www.dicionarioinformal.com.br/
usershell has quit [Remote host closed the connection]
<semeion> konsolebox: with that process_string_with_coproc function
skade has quit [Ping timeout: 250 seconds]
altair11_ has joined #ruby
arlek has joined #ruby
Averna has joined #ruby
usershell has joined #ruby
altair118 has quit [Read error: Connection reset by peer]
lemur has joined #ruby
arescorpio has quit [Quit: Leaving.]
usershell has quit [Read error: Connection reset by peer]
usershell has joined #ruby
skade has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
IrishGringo has quit [Ping timeout: 256 seconds]
asccigcc has joined #ruby
usershell has quit [Remote host closed the connection]
usershell has joined #ruby
krobzaur has quit [Ping timeout: 265 seconds]
Channel6 has quit [Quit: Leaving]
usershell has quit [Remote host closed the connection]
Limix has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
usershell has joined #ruby
<semeion> LC_COLLATE doesn´t work in this case, i have put directly in the command: cmd = ['iconv', '-f', 'ISO-8859-1', '-t', 'ASCII//TRANSLIT']
<semeion> konsolebox: now is working, thanks again dude, i finnaly got it working with your function
<konsolebox> semeion: oh yes, in that case, set env to empty hash: env = {}
<semeion> yes, i did :D
rkazak has joined #ruby
<semeion> without your help i never could finish it, thanks
mwlang has quit [Quit: mwlang]
Limix has quit [Quit: Limix]
rkazak has quit [Client Quit]
nanoz has quit [Read error: Connection reset by peer]
kies^ has quit [Ping timeout: 264 seconds]
usershel_ has joined #ruby
usershell has quit [Ping timeout: 276 seconds]
jam_ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
craigp has quit [Remote host closed the connection]
freerobby has joined #ruby
IrishGringo has joined #ruby
jam_ has quit [Ping timeout: 260 seconds]
skade has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
altair11_ has quit []
usershel_ has quit [Remote host closed the connection]
oivoodoo has joined #ruby
sakix has joined #ruby
akem has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
arrayw has joined #ruby
oivoodoo has quit [Ping timeout: 245 seconds]
akem has quit [Remote host closed the connection]
kies^ has joined #ruby
howdoi has joined #ruby
sakix has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
duderono_ has joined #ruby
duderono_ has quit [Client Quit]
skade has joined #ruby
duderono_ has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
kies^ has quit [Ping timeout: 256 seconds]
claw has quit [Ping timeout: 240 seconds]
sneakerhax has joined #ruby
krzkrz has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
graffix222 has joined #ruby
ur5us has joined #ruby
claw has joined #ruby
atomical has quit [Max SendQ exceeded]
skade has quit [Ping timeout: 250 seconds]
JohnT has joined #ruby
claw has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 256 seconds]
IrishGringo has quit [Ping timeout: 240 seconds]
kinduff has joined #ruby
claw has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
akem has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 272 seconds]
chouhoulis has joined #ruby
dionysus69 has joined #ruby
dexter-tzu has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
IrishGringo has joined #ruby
ascarter has joined #ruby
alakra has quit [Quit: WeeChat 1.1.1]
skade has joined #ruby
govg has joined #ruby
govg is now known as Guest82721
atomical has joined #ruby
Pupp3tm4st3r has joined #ruby
Dmitri has joined #ruby
usershell has joined #ruby
colegatron has joined #ruby
freerobby has quit [Quit: Leaving.]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
afast has quit [Read error: Connection reset by peer]
colegatron has quit [Remote host closed the connection]
afast has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
skade has quit [Ping timeout: 240 seconds]
mfb2 has joined #ruby
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
PedramT has joined #ruby
craigp has joined #ruby
whiteline has quit [Ping timeout: 240 seconds]
puria has joined #ruby
mfb2 has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
oivoodoo has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Remote host closed the connection]
karapetyan has joined #ruby
Dmitri has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
usershell has quit [Remote host closed the connection]
oivoodoo has quit [Ping timeout: 245 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rtail_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
skade has joined #ruby
saneax_AFK is now known as saneax
akem has quit [Remote host closed the connection]
saneax is now known as Guest12937
usershell has joined #ruby
craigp has quit [Ping timeout: 256 seconds]
asccigcc has quit [Quit: asccigcc]
IrishGringo has quit [Ping timeout: 250 seconds]
speaking1ode has joined #ruby
darkxploit has quit [Quit: Leaving]
djbkd has quit [Quit: Leaving...]
skade has quit [Ping timeout: 245 seconds]
psy__ has joined #ruby
psy__ has quit [Max SendQ exceeded]
arup_r has joined #ruby
atomical has quit [Max SendQ exceeded]
atomical has joined #ruby
Dimik has joined #ruby
Guest82721 has quit [Ping timeout: 250 seconds]
sigurding has joined #ruby
domgetter has quit [Ping timeout: 272 seconds]
psy_ has quit [Read error: No route to host]
IrishGringo has joined #ruby
jas02 has joined #ruby
jas02 has quit [Client Quit]
radgeRayden_ has quit [Quit: Leaving]
IrishGringo has quit [Read error: Connection reset by peer]
Guest12937 is now known as saneax_AFK
IrishGringo has joined #ruby
jgt has joined #ruby
skade has joined #ruby
PedramT has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
solars has joined #ruby
amclain has quit [Quit: Leaving]
lxsameer has joined #ruby
chouhoulis has joined #ruby
karapetyan has quit [Remote host closed the connection]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
dexter-tzu has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
arlek has quit [Ping timeout: 265 seconds]
skade has quit [Ping timeout: 240 seconds]
wald0 has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
craigp has joined #ruby
PedramT has quit [Remote host closed the connection]
Abrin has quit [Ping timeout: 250 seconds]
ledestin has joined #ruby
astrofog has quit [Remote host closed the connection]
framling has joined #ruby
sigurding has quit [Quit: sigurding]
Tempesta has joined #ruby
jam_ has joined #ruby
nanoz has joined #ruby
mdw has joined #ruby
rippa has joined #ruby
jam_ has quit [Ping timeout: 240 seconds]
Arnvald has joined #ruby
skade has joined #ruby
semeion has quit [Quit: WeeChat 1.3]
IrishGringo has joined #ruby
craigp has quit [Ping timeout: 260 seconds]
Arnvald has quit [Client Quit]
PedramT has joined #ruby
atomical has quit [Max SendQ exceeded]
PedramT has quit [Remote host closed the connection]
atomical has joined #ruby
<shevy> hmm
bronson has joined #ruby
skade has quit [Read error: No route to host]
sakix has joined #ruby
TomyLobo has joined #ruby
Jackneill has joined #ruby
<shevy> oooh they changed the format https://bugs.ruby-lang.org/projects/ruby-trunk slightly I think
sigurding has joined #ruby
sakix has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 265 seconds]
croberts has quit [Ping timeout: 256 seconds]
ss_much has joined #ruby
firstdayonthejob has joined #ruby
skade has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krzkrz has quit [Ping timeout: 260 seconds]
IrishGringo has quit [Ping timeout: 250 seconds]
sakix has joined #ruby
skade has quit [Ping timeout: 260 seconds]
PedramT has joined #ruby
chouhoulis has joined #ruby
sakix has quit [Ping timeout: 250 seconds]
krzkrz has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
arup_r has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
usershell has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
usershell has joined #ruby
arup_r has joined #ruby
IrishGringo has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
dionysus69 has quit [Quit: dionysus69]
arup_r has joined #ruby
Jackneill has quit [Quit: Leaving]
speakingtoad has quit [Ping timeout: 240 seconds]
PedramT_ has joined #ruby
skade has joined #ruby
speakingtoad has joined #ruby
arup_r has quit [Client Quit]
oivoodoo has joined #ruby
speakingtoad has quit [Client Quit]
PedramT has quit [Ping timeout: 256 seconds]
PedramT_ has quit [Remote host closed the connection]
oivoodoo has quit [Ping timeout: 245 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
DoubleMalt has joined #ruby
skade has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
oivoodoo has joined #ruby
skcin7 has joined #ruby
kies^ has joined #ruby
sigurding has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
nanoz has quit [Quit: <3]
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
crank1988 has joined #ruby
toretore has quit [Ping timeout: 256 seconds]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andymememe has joined #ruby
sandstrom has joined #ruby
andymememe has quit [Client Quit]
skade has joined #ruby
zenlot1 is now known as zenlot
IrishGringo has joined #ruby
kies^ has quit [Ping timeout: 250 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ebok has joined #ruby
skade has quit [Ping timeout: 250 seconds]
aspiers has quit [Ping timeout: 250 seconds]
decoponio has joined #ruby
PedramT has joined #ruby
chouhoulis has joined #ruby
colegatron has joined #ruby
colegatron has quit [Client Quit]
PedramT_ has joined #ruby
Xeago has joined #ruby
volty has joined #ruby
wldcordeiro has quit [Ping timeout: 260 seconds]
PedramT has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 265 seconds]
skade has joined #ruby
karapetyan has joined #ruby
CloCkWeRX has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
PedramT_ has quit [Ping timeout: 240 seconds]
hnagamin has quit [Quit: さようなら]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jbrhbr has joined #ruby
skade has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
dopie has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
SCHAAP137 has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
dopie has joined #ruby
karapetyan has quit [Remote host closed the connection]
jam_ has joined #ruby
dexter-tzu has quit [Ping timeout: 272 seconds]
ferr has joined #ruby
PedramT has joined #ruby
craigp has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krzkrz has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
jam_ has quit [Ping timeout: 265 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zeroDivisible has joined #ruby
craigp has quit [Ping timeout: 265 seconds]
krzkrz has joined #ruby
karapetyan has quit [Ping timeout: 272 seconds]
atomical has quit [Max SendQ exceeded]
FernandoBasso has quit [Ping timeout: 264 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
sftrabbit has joined #ruby
karapetyan has joined #ruby
atomical has joined #ruby
karapetyan has quit [Remote host closed the connection]
Ishido has joined #ruby
bronson has joined #ruby
atomical has quit [Max SendQ exceeded]
IrishGringo has joined #ruby
skade has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 250 seconds]
bronson has quit [Ping timeout: 265 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sol_> hi girls
PedramT has joined #ruby
<Ox0dea> Howdy, cowboy.
<sol_> could anyone pls help with this issue (make a gem for windows)
<sol_> im trying every 6 months to get that working but i always fail :|
<sol_> for 2 years now
thoraxe has quit [Ping timeout: 260 seconds]
<Ox0dea> That kind of experience would surely have made a lesser man switch to a saner OS by now.
<Ox0dea> Well done, you.
<sol_> just a point of view, nothing else
<sol_> but it means you will not help me since you got no clue of the not so same OS
<sol_> n
FernandoBasso has joined #ruby
<sol_> so under those sane OS which is the most sane one?
mrtomme has quit [Ping timeout: 248 seconds]
oivoodoo has quit [Remote host closed the connection]
PedramT_ has joined #ruby
mrtomme has joined #ruby
<shevy> linux is cool but it will always depend on the quality of the gem/bindings ... I have had problems with taglib before myself, just compiling it without error
PedramT has quit [Ping timeout: 272 seconds]
<sol_> hey shevy, but you was able to build it now under win?
oivoodoo has joined #ruby
<shevy> nothing works on windows
skade has joined #ruby
<sol_> ouch =)
<Ox0dea> Glaziers work on windows.
<sol_> Glaziers just meld lately
zenlot1 has joined #ruby
zenlot has quit [Ping timeout: 256 seconds]
<Ox0dea> I know a glazier that does window installations for skyscrapers and the like.
oivoodoo has quit [Remote host closed the connection]
<sol_> ah that was glacier
kinduff has quit [Quit: Textual IRC Client: www.textualapp.com]
oivoodoo has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<Ox0dea> Heh.
oivoodoo has quit [Remote host closed the connection]
UtkarshRay has joined #ruby
chouhoulis has joined #ruby
ziyadb has joined #ruby
chipotle has quit [Ping timeout: 245 seconds]
CloCkWeRX has quit [Remote host closed the connection]
PedramT_ has quit [Remote host closed the connection]
akem has joined #ruby
oivoodoo has joined #ruby
skade has quit [Ping timeout: 272 seconds]
AlexJakeGreen has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
<sol_> funtoo portage # uname -r
<sol_> 4.3.3-gentoo
<sol_> oops
IrishGringo has quit [Ping timeout: 250 seconds]
jgt has quit [Ping timeout: 276 seconds]
agit0 has quit [Quit: zzzZZZ….]
skade has joined #ruby
oivoodoo has quit [Ping timeout: 245 seconds]
cajone has joined #ruby
chipotle has joined #ruby
PedramT has joined #ruby
<Ox0dea> Well, if we're playing that game.
<Ox0dea> $ uname -r
<Ox0dea> 4.4.0-4-ARCH
<Ox0dea> 404, OS not found.
<shevy> all better than windows
<sol_> arch is very nice too, mayby my prefered linux =)
ZerGabriel has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
<Ox0dea> sol_: Do you have the `ls` with the new default --quoting-style yet?
ZerGabriel has joined #ruby
zarubin has quit [Quit: leaving]
<sol_> Ox0dea: sorry Ox0dea, that rings no bell here
usershell has quit [Remote host closed the connection]
<Ox0dea> sol_: Well, count your blessing, sol_, because it's coming, sol_.
<Ox0dea> Filenames with special characters in automatically display with surrounding quotes now. :/
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sol_> haha
<sol_> cant think of a case where i would need that :P
<sol_> not on nix
agit0 has joined #ruby
PedramT has quit [Remote host closed the connection]
IrishGringo has joined #ruby
joneshf-laptop has joined #ruby
karapetyan has quit [Remote host closed the connection]
<shevy> ohhhh
<shevy> ohhhhhhhh
<shevy> ls is part of coreutils, I forgot that
<shevy> I was wondering why bash suddenly showed strange quotes
<Ox0dea> Heh.
<shevy> it confused the hell out of me
<Ox0dea> Same here.
<Ox0dea> I thought I'd done an accidental `shopt -s <something>` somewhere and it was bugging the hell outta me.
craigp has joined #ruby
<shevy> haha
atomical has joined #ruby
<Ox0dea> I have a little script called `pkgs` that shows my packages in install order, ran it, and there was coreutils right at the bottom.
wald0 has quit [Ping timeout: 260 seconds]
gruz0 has joined #ruby
oivoodoo has joined #ruby
Anderson69s has joined #ruby
atomical has quit [Max SendQ exceeded]
mdw has joined #ruby
craigp has quit [Ping timeout: 264 seconds]
ReK2 has quit [Remote host closed the connection]
oivoodoo has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
ReK2 has joined #ruby
hannelita has joined #ruby
duderono_ has quit [Quit: Textual IRC Client: www.textualapp.com]
atomical has joined #ruby
skade has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp has joined #ruby
zarubin has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
zarubin has quit [Client Quit]
zarubin has joined #ruby
IronD has quit [Ping timeout: 250 seconds]
skade has joined #ruby
xdccMule[3486nm] has joined #ruby
zarubin has quit [Quit: leaving]
volty has quit [Ping timeout: 250 seconds]
zarubin has joined #ruby
gruz0 has quit [Quit: This computer has gone to sleep]
xdccMule[3486nm] has left #ruby [#ruby]
gizmore has joined #ruby
jbrhbr has quit [Quit: Leaving.]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
IrishGringo has quit [Read error: Connection reset by peer]
zarubin has quit [Quit: leaving]
zarubin has joined #ruby
sundhell has joined #ruby
chipotle has quit [Quit: cheerio]
AlexJakeGreen has quit [Quit: Leaving]
saneax_AFK is now known as saneax
saneax is now known as Guest55358
zarubin has quit [Client Quit]
karapetyan has joined #ruby
zenlot1 is now known as zenlot
nerium has joined #ruby
PedramT has joined #ruby
gruz0 has joined #ruby
zarubin has joined #ruby
dexter-tzu has joined #ruby
ZerGabriel has quit []
tyrbo has joined #ruby
skade has quit [Ping timeout: 256 seconds]
ht__ has joined #ruby
ht__ has quit [Client Quit]
ht__ has joined #ruby
ChameleonSix4 has joined #ruby
chouhoulis has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
sundhell has quit [Quit: WeeChat 1.4]
ht__ has quit [Client Quit]
skade has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
ChameleonSix4 has quit [Quit: Page closed]
tk has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
tk is now known as Guest940
nerium has quit [Quit: nerium]
nerium has joined #ruby
Anderson69s has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
ht__ has joined #ruby
skade has joined #ruby
howdoi has joined #ruby
jottr has joined #ruby
zyzioziom has joined #ruby
IrishGringo has joined #ruby
ht__ has quit [Client Quit]
ht__ has joined #ruby
Guest55358 is now known as saneax_AFK
usershell has joined #ruby
rubynuby has joined #ruby
jgt has joined #ruby
<rubynuby> hey does anyone know how *('a'..'z') works?
<rubynuby> is a range a method on *?
<rubynuby> so i can create an array, but why doesn't *('a'..'z').sample(2) work?
<rubynuby> yep
akem has quit [Remote host closed the connection]
<rubynuby> so a splat says that you can have more than one argument
<shevy> range does not have .sample()
<rubynuby> but i thought precedence was left to right
<rubynuby> splat is always right to left?
<shevy> *('a'..'z') standalone there works for you?
ympeg has joined #ruby
<shevy> I can't even get your above syntax to work :)
<rubynuby> well i have to assign it to a variable
<Ox0dea> >> [*?a..?z].sample 2 # rubynuby
<ruby[bot]> Ox0dea: # => ["z", "s"] (https://eval.in/506815)
jam_ has joined #ruby
<rubynuby> yeah that works
<Ox0dea> You can't "splat into thin air", as it were.
usershell has quit [Ping timeout: 260 seconds]
<Ox0dea> So it's fine as the RHS of an assignment and within brackets.
<rubynuby> i see
mfb2 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
<rubynuby> you can only splat outside of a bracket if its directly to the right of an assignment variable?
<Ox0dea> To the right of the equal sign, you mean.
<rubynuby> yeah
<Ox0dea> But no, there's a few other places.
jgt has quit [Ping timeout: 250 seconds]
<Ox0dea> Parameter lists and the like.
<rubynuby> okok, i see alrightey thanks
rubynuby has quit []
agit0 has joined #ruby
skade has quit [Read error: No route to host]
mfb2 has quit [Ping timeout: 260 seconds]
jam_ has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
nerium has quit [Quit: nerium]
dlitvak has joined #ruby
JohnT has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
defendguin has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
atomical has quit [Read error: Connection timed out]
gruz0 has quit [Quit: Leaving]
emilford has joined #ruby
zotherstupidguy has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 265 seconds]
DoubleMalt has joined #ruby
PedramT_ has joined #ruby
PedramT_ has quit [Remote host closed the connection]
PedramT has quit [Ping timeout: 260 seconds]
Dragooon has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
emilford has joined #ruby
CloCkWeRX has joined #ruby
toretore has joined #ruby
sandstrom has joined #ruby
zyzioziom has quit [Quit: Leaving.]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
IronD has joined #ruby
atomical has joined #ruby
IrishGringo has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 245 seconds]
afast has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
senayar_ has joined #ruby
oivoodoo has joined #ruby
tyrbo has quit [Ping timeout: 256 seconds]
oivoodoo has quit [Ping timeout: 245 seconds]
ht__ has joined #ruby
lessless has quit [Excess Flood]
aryaching_ has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
ht__ has quit [Client Quit]
IrishGringo has joined #ruby
lxsameer has quit [Quit: Leaving]
toretore has quit [Ping timeout: 272 seconds]
atomical has quit [Max SendQ exceeded]
CloCkWeRX has joined #ruby
User458764 has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
PedramT has joined #ruby
karapetyan has quit [Remote host closed the connection]
oivoodoo has joined #ruby
usershell has joined #ruby
karapetyan has joined #ruby
oivoodoo has quit [Ping timeout: 245 seconds]
atomical has joined #ruby
benderb has joined #ruby
<benderb> hello room, how do you prevent a serialized value from saving new lines? I’m having an issue where empty fields are saving the value `\n` like so `["walked", "\n", "\n", "\n", "\n", "\n"]
<Ox0dea> >> a = ["walked", "\n", "\n", "\n", "\n", "\n"]; a.delete "\n"; a # benderb
<ruby[bot]> Ox0dea: # => ["walked"] (https://eval.in/506863)
<Ox0dea> Not sure how you feel about that, but it'll do in a pinch.
<Ox0dea> The problem seems to be that you're using something like #each_line or #readlines and forgetting to #chomp.
bltavares has joined #ruby
bltavares has left #ruby ["http://tty.space"]
IrishGringo has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
<benderb> thanks #Ox0dea
<benderb> I’m using strong params to save an array like so params[:solution].permit( adjective: [], noun: [], verb: [], job: [])
bonhoeffer has left #ruby [#ruby]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> I can't say I see where the newlines are slipping in.
jxs_ has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
krzkrz has joined #ruby
dlitvak has quit [Remote host closed the connection]
<shevy> oh that is cool... I did not know that Array has .delete
<benderb> sorry, so verb for example, has 6 input fields, so the new lines are being inserted for each field that isn’t filled in. If user fills in 1 ver, 5 ‘\n’ are saved, if user fills in 5 verbs, 1 \n is saved
ht__ has joined #ruby
sftrabbit has joined #ruby
oivoodoo has joined #ruby
arrayw has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
ht__ has quit [Client Quit]
PedramT has quit [Remote host closed the connection]
oivoodoo has quit [Ping timeout: 245 seconds]
PedramT has joined #ruby
bronson has joined #ruby
ta has joined #ruby
Sembei has joined #ruby
domgetter has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
carlosjack has joined #ruby
<carlosjack> Hey guys
<carlosjack> Let me ask you guys something?
ympeg_ has joined #ruby
krzkrz has quit [Quit: WeeChat 1.2]
emilford has quit [Ping timeout: 272 seconds]
<carlosjack> Can you guys reccomend some ruby sec libs I like Ronin
<carlosjack> and Metasploit
<apeiros> carlosjack: you smell like a troll.
<carlosjack> No
<Ox0dea> Or a 1337 haxx0r.
<carlosjack> neither
<carlosjack> I am just asking for fuzzers, something like lib-forensics in python
<carlosjack> something like wdt
<shevy> carlosjack the usage pattern of "guys" gives it away
<apeiros> ?toolbox carlosjack
<ruby[bot]> carlosjack: https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
<carlosjack> I checked
<Ox0dea> shevy: Good call.
<carlosjack> Their list for sec is ass
<apeiros> ain't got more.
<carlosjack> it's just some whitebox scanners
<carlosjack> and some xss escaping libraries
<shevy> we got no more man!!!
<Sebastia1Thorn> anyone used RXSD? not sure how to get the documentation from the xsd's
<carlosjack> No shevy they didn't even list Ronin
<shevy> those are samurai aren't they?
<carlosjack> so there have to be more resources
<carlosjack> Ronin is an exploit development framework
oivoodoo has joined #ruby
<carlosjack> Yeah as much as I love ruby and I like rails I hate how Web Development has hijacked the community
<shevy> lol
<Ox0dea> Pfft.
<carlosjack> Makes our lang look like a one trick pony
<shevy> are you buzzword-chaining things together there carlosjack :)
<carlosjack> No
astrobunny has joined #ruby
<carlosjack> Shevy
emilford has joined #ruby
<shevy> 3x guys... then metasploit... then "rails stole ruby" ... AND NOW the new-line nick highlighting, if jhass would be awake, he'd get at you!
<Ox0dea> Is it jackcom?
<apeiros> lol, no way
<carlosjack> I am seriously asking for some stuff related to fuzzing and forensics
<shevy> not sure... jackcom is nicer than carlosjack
<shevy> he always asks me why he is banned :)
<carlosjack> I am face palming man
<Ox0dea> You should try face napalming.
<carlosjack> For asking for sec libs
<shevy> carlosjack careful... Ox0dea may have a meme for facepalming too
<Ox0dea> Calm down.
IrishGringo has quit [Read error: Connection reset by peer]
astrobun_ has quit [Ping timeout: 256 seconds]
gruz0 has joined #ruby
<carlosjack> Oh btw your Model View Controller and REST libs don't protect you as much as you would think
ht__ has joined #ruby
FooMunki has joined #ruby
<apeiros> that's difficult, given that I don't think they protect me at all.
<shevy> :D
<carlosjack> Good for you apeiros
oivoodoo has quit [Ping timeout: 245 seconds]
<carlosjack> Ok so none of you care about sec
<carlosjack> Cool
<Ox0dea> Off you go to greener pastures, then.
<apeiros> we care, but sounds like no infosec people are around.
<carlosjack> What config management tool should I pick up Puppet, Chef, or Ansible?
<carlosjack> I know Ansible is python
fsapo has joined #ruby
<apeiros> given your troll-smell, I'm inclined to recommend ansible.
nerium has joined #ruby
<carlosjack> Why do I smell like a troll that's what I hate about a lot of IRC channels it's so clicky
<carlosjack> You end up just arguing and being dicks more than actually giving people information
<shevy> you provoke it man
<carlosjack> I was leaning more towards chef
IrishGringo has joined #ruby
<carlosjack> because it's like more pure ruby even though it could be considered harder than puppets dsl
<apeiros> there's dedicated chef & puppet channels. maybe ask there.
<shevy> go puppet, it's the biggest
<carlosjack> Yeah but that shit is going to be biased as hell
<carlosjack> if I go on chef
<carlosjack> they will likely say chef
<carlosjack> if I go on puppet they will likely say puppet
<shevy> how do you find no bias please??
<carlosjack> if I go on devops
<carlosjack> I will start a flame war
hannelita has quit [Remote host closed the connection]
<apeiros> so the preference is to start a flamewar here. great. gotcha.
<carlosjack> Shevy statistically speaking going on ruby you will have people from different backgrounds and experiences
<carlosjack> in config management
<carlosjack> same with devops
<shevy> biggest part will be those who don't use it!
sftrabbit has quit [Quit: sftrabbit]
<carlosjack> Yeah
mloy has quit [Ping timeout: 260 seconds]
tinnvec has quit [Remote host closed the connection]
<carlosjack> true
<carlosjack> Ruby is my favorite language right now but like when I go to ruby community areas half of it is RAILS and Sinatra related stuff.
einarj has joined #ruby
<carlosjack> But I switched over from Perl I gotta say ruby is better.
<carlosjack> Anyways fuck my biases
<carlosjack> Can you tell me your backgrounds and the cool projects you're working on and how do I seem trollish
Freeaqingme has joined #ruby
PedramT has quit [Remote host closed the connection]
<apeiros> lets assume for a minute that you're not a troll
<apeiros> > carlosjack: Hey guys; Let me ask you guys something?; Can you guys reccomend some ruby sec libs I like Ronin
sftrabbit has joined #ruby
<apeiros> this is like begging for this:
<apeiros> ?guys carlosjack
<ruby[bot]> carlosjack: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
chouhoulis has joined #ruby
<carlosjack> so guys
<carlosjack> is insulting
<carlosjack> I don't understand
<apeiros> let's say it's problematic.
<carlosjack> How so
<shevy> you "switched away from perl"
lucasb has joined #ruby
<carlosjack> I'm legitimately autistic
<apeiros> the message says all, I presume you can read?
<carlosjack> I seriously do not understand
<carlosjack> I am dead ass
<shevy> just admit that you are trolling
<carlosjack> I don't understand
<carlosjack> You guys are not being specific
<apeiros> well, I'm afk. somebody may explain you. but over in #ruby-offtopic please.
<carlosjack> Do you think ruby
<carlosjack> is not good for sec
<shevy> ruby may be too good for you to handle
jgt has joined #ruby
<carlosjack> Shevy
<carlosjack> shut the fuck up
dn` has quit [Quit: dn`]
<carlosjack> If anything you guys are trolling me
freerobby has joined #ruby
PedramT has joined #ruby
oivoodoo has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
ht__ has quit [Quit: Konversation terminated!]
PedramT has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
ht__ has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
<apeiros> !rude carlosjack
slackbotgz has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
hxegon has joined #ruby
hnagamin has joined #ruby
ajf- has joined #ruby
carlosjack has left #ruby [#ruby]
oivoodoo has quit [Ping timeout: 245 seconds]
emilford has joined #ruby
sigurding has joined #ruby
ta has quit [Ping timeout: 245 seconds]
tinnvec has joined #ruby
mloy has joined #ruby
timanema has joined #ruby
emilford has quit [Ping timeout: 272 seconds]
FooMunki has quit [Quit: FooMunki]
arup_r has joined #ruby
jam_ has joined #ruby
timanema has quit [Client Quit]
kies^ has joined #ruby
<konsolebox> i see that you guys really drove him to lose his patience wow. he tried so much not to look like a troll. what a lovely community we have here.
<IronD> What was his goal with that whole interactin?
<IronD> interaction*
dlitvak has joined #ruby
<konsolebox> sensitive much?
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
ht__ has quit [Quit: Konversation terminated!]
jam_ has quit [Ping timeout: 245 seconds]
ht__ has joined #ruby
fsapo has quit [Remote host closed the connection]
oivoodoo has joined #ruby
Sucks has joined #ruby
<shevy> IronD probably attention
Averna has quit [Ping timeout: 260 seconds]
oivoodoo has quit [Ping timeout: 245 seconds]
kies^ has quit [Ping timeout: 240 seconds]
IrishGringo has joined #ruby
freerobby has quit [Quit: Leaving.]
emilford has joined #ruby
IrishGringo has quit [Read error: Connection reset by peer]
jgt has quit [Ping timeout: 276 seconds]
dlitvak has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
goodcodeguy has joined #ruby
dwfait has joined #ruby
IrishGringo has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
last_staff has joined #ruby
ht__ has joined #ruby
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
emilford has quit [Ping timeout: 260 seconds]
oivoodoo has joined #ruby
dexter-tzu has quit [Ping timeout: 250 seconds]
karapetyan has quit [Remote host closed the connection]
arthropododo has joined #ruby
lobster_ has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
emilford has joined #ruby
zyzioziom has joined #ruby
arthropododo has quit [Client Quit]
kies^ has joined #ruby
zyzioziom has left #ruby [#ruby]
oivoodoo has quit [Ping timeout: 245 seconds]
scripore has joined #ruby
IrishGringo has quit [Ping timeout: 272 seconds]
emilford has quit [Ping timeout: 250 seconds]
agit0 has joined #ruby
dlitvak has joined #ruby
emilford has joined #ruby
pdoherty has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 240 seconds]
Abrin has joined #ruby
pdoherty has joined #ruby
volty has joined #ruby
ta has joined #ruby
emilford has quit [Ping timeout: 256 seconds]
thoraxe has joined #ruby
tyrbo has joined #ruby
oivoodoo has joined #ruby
tinnvec has quit [Remote host closed the connection]
IrishGringo has joined #ruby
crowell has quit [Ping timeout: 250 seconds]
emilford has joined #ruby
chouhoulis has joined #ruby
karapetyan has quit [Remote host closed the connection]
krobzaur has joined #ruby
rippa has joined #ruby
oivoodoo has quit [Ping timeout: 245 seconds]
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
skade has joined #ruby
dasher00 has joined #ruby
hiyosi has joined #ruby
tinnvec has joined #ruby
usershell has quit [Read error: Connection reset by peer]
emilford has quit [Ping timeout: 264 seconds]
peeja has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
tyrbo has quit [Ping timeout: 256 seconds]
usershell has joined #ruby
tinnvec has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
tinnvec has joined #ruby
jottr_ has joined #ruby
<FernandoBasso> Is there any specific piece of documentation that can clarify the order in which things are evaluated in a situation like this? puts arr[i] while arr[i += 1]
<Sebastia1Thorn> this feels bad, doing strip twice, any ideas how it might looks better? file << " ##{line.strip}\n" unless line.strip.empty?
emilford has joined #ruby
<shevy> FernandoBasso usually it should be "from right to leftwards evaluation"
astrobun_ has joined #ruby
<shevy> parens would have higher precedence; {} bind more tightly than do/end - FernandoBasso I think the first answer has most of the rules there http://stackoverflow.com/questions/21060234/ruby-operator-precedence-table
jottr has quit [Ping timeout: 265 seconds]
<FernandoBasso> shevy, Okay. Thank you very much.
<shevy> Sebastia1Thorn well... you could call line.strip! before invoking that line... but that would add a new line of code
astrobun_ has quit [Remote host closed the connection]
<Sebastia1Thorn> shevy: that was the only thing i had in mind aswell, thought someone had some of that magic ruby-dust in their pocket ;)
<volty> file << (ln = line.strip).empty? ? line : ln
<shevy> ack
emilford has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
oivoodoo has joined #ruby
jottr has joined #ruby
<Sebastia1Thorn> volty: cool, but that is to hard to read
<Sebastia1Thorn> ill just do a strip!
<shevy> :)
gruz0 has quit [Quit: This computer has gone to sleep]
emilford has joined #ruby
nerium has quit [Quit: nerium]
jottr_ has quit [Ping timeout: 245 seconds]
oivoodoo has quit [Ping timeout: 245 seconds]
IrishGringo has quit [Ping timeout: 272 seconds]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
IrishGringo has joined #ruby
emilford has joined #ruby
huQeQwdpu47q has joined #ruby
Limix has joined #ruby
arup_r has quit []
freerobby has joined #ruby
<apeiros> konsolebox: what I've seen was a troll. and for future reference: discussing kicks/mutes/bans is offtopic and subject to kick/ban.
skade has joined #ruby
peeja has quit [Ping timeout: 260 seconds]
Guest940 has quit [Quit: ばいばい]
last_staff has quit [Ping timeout: 276 seconds]
oivoodoo has joined #ruby
sftrabbit has quit [Quit: sftrabbit]
<volty> Sebastia1Thorn: just write it more descriptive: file << ( (stripped = line.strip).empty? ? line : stripped ) << "\n" # and get used with ternary - that gives you more readability (out of compact code)
hnagamin has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
<volty> or, in alternative, you can: file << ( (stripped = line.strip).empty? && line || stripped ) << "\n"
bronson has joined #ruby
usershell has quit [Remote host closed the connection]
<apeiros> file << line =~ /\s*/ ? line : line.strip # what about this?
oivoodoo has quit [Ping timeout: 245 seconds]
<shevy> aha!
<apeiros> oh, regexp-crime no. 1 committed - no anchoring :-S
<volty> yap :)
<shevy> hmm... \s will match internally to?
<apeiros> file << line =~ /\A\s*\z/ ? line : line.strip # corrected
<shevy> I see
rodfersou has joined #ruby
<volty> nice, but his q. was about reducing code execution (he is probably saving on energy bill)
<apeiros> though I'm quite curious as for why one would want to perform the above…
<volty> me too :)
<apeiros> I mean… why keep a line with only whitespaces as-is and strip others?
<volty> keep trace of empty lines, probably
bronson has quit [Ping timeout: 265 seconds]
<lucasb> I don't think that was his intention
lacuna has joined #ruby
lacuna has joined #ruby
gruz0 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
whiteline has joined #ruby
griffindy has joined #ruby
freerobby has quit [Quit: Leaving.]
rodferso1 has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
hogetaro has quit [Read error: Connection reset by peer]
ht__ has joined #ruby
rodfersou has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
hogetaro has joined #ruby
freerobby has quit [Client Quit]
emilford has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
skade has quit [Ping timeout: 276 seconds]
hnagamin has joined #ruby
skade has joined #ruby
emilford has joined #ruby
dfinninger has joined #ruby
oivoodoo has joined #ruby
jlebrech has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
griffindy has joined #ruby
griffindy has quit [Client Quit]
oivoodoo has quit [Ping timeout: 245 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
cactuzzz has joined #ruby
hannelita has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
usershell has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
dasher00 has quit [Remote host closed the connection]
<dtordable> ggghhh
asccigcc has joined #ruby
chouhoulis has joined #ruby
freerobby has joined #ruby
moeabdol has quit [Ping timeout: 240 seconds]
asccigcc has quit [Client Quit]
ht__ has quit [Quit: Konversation terminated!]
hannelita has quit [Ping timeout: 240 seconds]
ht__ has joined #ruby
drptbl has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
peeja has joined #ruby
emilford has joined #ruby
<shevy> oh hi speaking stone age!
skade has quit [Quit: Computer has gone to sleep.]
drptbl has quit [Client Quit]
hannelita has joined #ruby
karmatr0n has joined #ruby
skade has joined #ruby
aef has quit [Remote host closed the connection]
dlitvak has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
x77686d has joined #ruby
skade has quit [Client Quit]
emilford has joined #ruby
jxs_ has quit [Remote host closed the connection]
karmatr0n has quit [Read error: No route to host]
skade has joined #ruby
hannelita has quit [Ping timeout: 250 seconds]
xet7 has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
Yzguy has joined #ruby
karmatr0n has joined #ruby
jam_ has joined #ruby
hannelita has joined #ruby
dlitvak has quit [Ping timeout: 272 seconds]
ht__ has quit [Quit: Konversation terminated!]
emilford has quit [Ping timeout: 264 seconds]
ht__ has joined #ruby
emilford has joined #ruby
dome22xl has joined #ruby
mburns has quit [Ping timeout: 240 seconds]
jam_ has quit [Ping timeout: 240 seconds]
jlebrech has quit []
mburns has joined #ruby
Faris has joined #ruby
fermonkus has joined #ruby
ajf- has quit [Ping timeout: 250 seconds]
asccigcc has joined #ruby
arup_r has quit [Remote host closed the connection]
drptbl has joined #ruby
asccigcc has quit [Client Quit]
araujo_ has joined #ruby
Xeago has joined #ruby
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
emilford has quit [Ping timeout: 276 seconds]
araujo has quit [Ping timeout: 250 seconds]
<cactuzzz> can anyone explain why this prints “what?”? https://gist.github.com/rocketz/1fcb66ed7edba17a7928
<volty> case uses === (triple)
emilford has joined #ruby
<cactuzzz> ah
Xeago has quit [Ping timeout: 245 seconds]
<apeiros> also be aware of the order it uses ===
rodferso1 has quit [Quit: leaving]
<apeiros> case expr; when cond --> cond === expr,
<volty> apeiros: /(\A.*\S(?=\s*)|(?!\s*)\z)|(\A\s*\z)/.match(line) # but no comment, got tired
sigurding has quit [Quit: sigurding]
<apeiros> volty: sorry, I'm missing the context - what's that for?
<volty> strip if not empty
<apeiros> aaaah :)
<cactuzzz> oh thanks! wasn’t aware of that
<volty> got crazy with zero width lookaheads
skade has quit [Ping timeout: 250 seconds]
skade has joined #ruby
araujo__ has joined #ruby
binns has quit [Quit: Updating details, brb]
binns has joined #ruby
skade has quit [Client Quit]
nerium has joined #ruby
araujo_ has quit [Ping timeout: 276 seconds]
<volty> ignore, it's a rubbish regex
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
aryaching_ has quit [Read error: No route to host]
tvw has joined #ruby
<lucasb> cool, but again, I repeat that was not what he wanted :)
<apeiros> lucasb: you might also just say what he wanted then :-p
<volty> lucasb: what he wanted ? :)
<lucasb> he just didn't just strip twice!
cschneid_ has joined #ruby
<lucasb> *didn't want to strip
FernandoBasso has quit [Quit: Leaving]
<lucasb> that's why a single "line.strip!" before his statement was enough
puria has quit [Ping timeout: 245 seconds]
skade has joined #ruby
Toledo|gone has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
TomPeed has joined #ruby
emilford has quit [Ping timeout: 264 seconds]
karmatr0n has quit [Ping timeout: 256 seconds]
BSaboia has joined #ruby
<shevy> I think we should all strip more often anyway
mfb2 has joined #ruby
gruz0 has quit [Quit: This computer has gone to sleep]
arlek has joined #ruby
arlek has quit [Max SendQ exceeded]
craigp has quit [Remote host closed the connection]
emilford has joined #ruby
rgtk_ has joined #ruby
drptbl has joined #ruby
<volty> is zero-width positive buggy, or it is my head ?
aryaching has joined #ruby
<volty> consider:
<volty> >> /\A.*\S(?=\s*\z)/.match 'ciao '
<ruby[bot]> volty: # => #<MatchData "ciao"> (https://eval.in/506926)
<volty> >> /\A.*\S(?=\s*)\z/.match 'ciao '
<ruby[bot]> volty: # => nil (https://eval.in/506927)
jgt has joined #ruby
mfb2 has quit [Ping timeout: 250 seconds]
rgtk has quit [Ping timeout: 248 seconds]
arlek has joined #ruby
IrishGringo has joined #ruby
chouhoulis has joined #ruby
usershell has quit [Remote host closed the connection]
<lucasb> I don't know what to say. Since zero-width lookahead and \z are both anchors, it's confusing to use them together
sgambino has joined #ruby
<apeiros> volty: why should the second one match?
<lucasb> but I guess returning nil is the right result
<apeiros> look-ahead is zero-width
<apeiros> and \S\z does not match in 'ciao '
<volty> yes, a non space followed by optional spaces, followed by end of string
<apeiros> that's not what your regex says
<apeiros> your regex says a non-whitespace followed by both, end of string, and (look-ahead) an arbitrary number of spaces
<volty> >> /\S(?=\s*)\z/.match 'ciao '
<ruby[bot]> volty: # => nil (https://eval.in/506947)
hunzinker has joined #ruby
<apeiros> volty: again, look-ahead is *zero width*
<apeiros> it does not consume
<apeiros> /\S(?=\s*)\z/ means that /\S\z/ must be satisfied
<volty> ah, it means only one ?
<volty> we cant chain zero width one after the other ?
<apeiros> i.e., /(?=a)b/ is an oxymoron, this expression can't ever be satisfied.
<apeiros> sure
<apeiros> we can
<apeiros> somewhere you've got a misunderstanding of what zero-width means I think
skade has quit [Read error: No route to host]
chouhoulis has quit [Ping timeout: 250 seconds]
emilford has quit [Ping timeout: 264 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> /\S(?=\s)\z/ # <- do you understand why this is impossible to match?
skade has joined #ruby
<volty> yes, i got it
emilford has joined #ruby
<volty> only one zero width, can't chain
<volty> \z is a zero width look ahead too
<apeiros> no, that's not the issue
<apeiros> you can chain
<apeiros> well, \z is a boundary. but I guess you can also think about it as a look-ahead.
<volty> it is, it must be, that's why I can't put them successive but separate
<apeiros> >> "foo"[/f(?=o)(?=[^O])(?=.)/] # <-- totally chainable
<ruby[bot]> apeiros: # => "f" (https://eval.in/506949)
<apeiros> no. it seems to me you don't understand what zero-width means.
<apeiros> it means it does not advance the "cursor" so to speak.
IrishGringo has quit [Remote host closed the connection]
<apeiros> what do you expect $1 to be here? "fox" =~ /f(?=.)(.)/
<volty> yes, I got it. you look ahead and if there you have to consume it or stop there
<apeiros> you don't consume
<volty> fo
<apeiros> correct
CloCkWeRX has quit [Quit: Leaving.]
<volty> i meant or you consume or you stop
<apeiros> as said, no, you don't consume. look-aheads do not consume.
karmatr0n has joined #ruby
hunzinker has left #ruby [#ruby]
<volty> Could be that I can't explain myself. I say you have or to consume it (after verified it's there), or to stop matching.
nchambers has joined #ruby
<volty> since cursor's stuck there
<apeiros> "to consume" in regex means it moves the cursor
davedev24 has joined #ruby
<apeiros> but I can't really make sense of that phrase "you have or to consume it"
zarubin is now known as [zarubin]
<volty> for me it meaningful. You are matching, going ahead, then arrives a zero width, and or you consume it (advance) - to go ahead with matching, or it will be the last one
DoubleMalt has joined #ruby
nathan_ has joined #ruby
<eam> volty: a zero width does not consume
arup_r has joined #ruby
<volty> that's what i am saying
skade has quit [Quit: Computer has gone to sleep.]
nathan_ has quit [Client Quit]
Ebok has joined #ruby
<volty> after verified it's there - you consume it (if you have to match after it), or it's a final one
<volty> to me it's clear, though I can't know how much I am clear
<eam> volty: no, the (?=) structure does not consume when matched
hannelita has quit [Remote host closed the connection]
<eam> it is unique in that regard
<volty> reallY ?
<volty> retard ?
<eam> yes, that's what apeiros is saying regarding zero width
<volty> i got what apeiros said
araujo_ has joined #ruby
karmatr0n has quit [Ping timeout: 264 seconds]
hfp_work has quit [Ping timeout: 264 seconds]
hfp has quit [Ping timeout: 264 seconds]
marcdel has joined #ruby
<volty> eam: I was tired, and I messed around. Then I got it (I was matching a lot long time ago).
araujo__ has quit [Ping timeout: 272 seconds]
gigetoo has quit [Ping timeout: 272 seconds]
<eam> no judgement, just trying to help you out
hfp has joined #ruby
gigetoo has joined #ruby
<volty> just stop insisting. or I do not explain myself well, or you do not understand well. all folks. golden rule : nothing after zero width unless consuming
<volty> help me by not trolling at me
hfp_work has joined #ruby
<eam> no one's trolling you, we're trying to help
<lucasb> regex match string long time
mdw has joined #ruby
<volty> it happens
emilford has quit [Ping timeout: 272 seconds]
Yzguy has quit [Quit: Zzz...]
<volty> only the brightest do not err, and I am not one of them :)
craigp has joined #ruby
<eam> not even the brightest ;)
<apeiros> volty: "or I do not explain myself well" - I think you use terminology wrong, which is why & what eam and I reacted to
<apeiros> because I'd say that golden rule as written by you is incorrect
<apeiros> I assume you do mean the right thing. but it doesn't fit with what you write.
petersaints has joined #ruby
<volty> could be. we all have different neurals, but the world is nice because inhabited by varying orders, degrees, and hues
mdw_ has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
<apeiros> sure. but some words have clearly specified meanings ;-)
mdw has quit [Ping timeout: 240 seconds]
zzz has joined #ruby
zzz is now known as Guest44358
<volty> look, I'll try to explain it another way: if I teach somebody about zero-width lookaheads, for sure first I first explain to him the logic of the cursor, but in the end I will repeat him twice that nothing could come after that zero-width unless consumed by a successive expression
marcdel has quit [Ping timeout: 240 seconds]
<volty> teachers too are varying, with varying results, upon their talent, and upon the talent of students of course :)
<apeiros> you mean an expression after a zero-width must not be another zero-width? (because that's how I read what you write)
<volty> of course, that too
<apeiros> that's not correct, though
<apeiros> 18:10 apeiros: you can chain
<apeiros> 18:11 apeiros: >> "foo"[/f(?=o)(?=[^O])(?=.)/] # <-- totally chainable
<apeiros> having a zero-width followed by another zero-width is legal
jordanm has quit [Quit: Konversation terminated!]
mfb2 has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
<volty> what about the sense ?
<volty> alternative zero-widths ?
<apeiros> that's another question. with all positive look-aheads I see little. but you could f.ex. have a positive and a negative lookahead
bronson has joined #ruby
<apeiros> also just because I can't think of a case where it makes sense a) doesn't mean there is non, nor b) that it's therefore illegal
<volty> yes, but my hypo was about teaching a student
<volty> nothing could come = nothing has sense
<apeiros> um, I don't think that's equivalent :)
<volty> could != can
AustinMatherne has quit [Remote host closed the connection]
Spleeze has quit [Quit: QUIT]
AustinMatherne has joined #ruby
<volty> But I'd better teach my program how to transform input :
<volty> :)
djbkd has joined #ruby
marcdel has joined #ruby
<volty> but you are the only pedant here (I don't know them all) that is humanly flexible :)
<volty> thx for the correction, and for the hints too
weemsledeux has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
<lucasb> I consider myself a humanly flexible pedant too
<volty> yes, you too, forgot, sorry :)
penne12 has joined #ruby
Spleeze has joined #ruby
emilford has joined #ruby
<volty> last questions: is ripper the best ruby parser to go with (for the sake of indexing classes, modules, required files etc etc)
ajf- has joined #ruby
agit0 has joined #ruby
cicloid has joined #ruby
oivoodoo has joined #ruby
rtail_ has joined #ruby
djbkd has quit [Remote host closed the connection]
oivoodoo has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 240 seconds]
oivoodoo has joined #ruby
rtail_ has quit [Max SendQ exceeded]
Jardayn has joined #ruby
rtail_ has joined #ruby
craigp has quit [Remote host closed the connection]
amclain has joined #ruby
mrsolo_ has joined #ruby
s2013 has joined #ruby
houhoulis has joined #ruby
marcdel has joined #ruby
mrsolo_ has quit [Client Quit]
hnagamin has quit [Quit: さようなら]
dfinninger has quit [Remote host closed the connection]
manjaroi3 has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
jottr has joined #ruby
chouhoulis has joined #ruby
Yzguy has joined #ruby
craigp has joined #ruby
dwfait has quit [Remote host closed the connection]
tinhajj123 has joined #ruby
Yzguy has quit [Client Quit]
dfinninger has joined #ruby
<tinhajj123> I got a question about optparser class. I don't understand something in the documentation. http://docs.ruby-lang.org/en/2.1.0/OptionParser.html#method-i-make_switch
fermonkus has quit [Quit: Lost terminal]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emilford has quit [Ping timeout: 264 seconds]
<tinhajj123> theres an option to make an argument to a switch required and they give an example with --require, but is that the only way to make an argument to a switch required? By using --require?
The_Phoenix has joined #ruby
<tinhajj123> err, I'm just not sure what in that section of code causes an argument to be required
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
s2013 has joined #ruby
guardian has quit [Quit: Coyote finally caught me]
chouhoulis has quit [Ping timeout: 276 seconds]
<lucasb> I don't know if I understand you correctly, but I think you use p.on('--foo=ARG') to make an argument required
emilford has joined #ruby
<lucasb> p.on('--foo=[ARG]') to make optional
huQeQwdpu47q has quit [Quit: Leaving]
arlek has quit [Ping timeout: 276 seconds]
jbrhbr has joined #ruby
cpup has quit [Ping timeout: 264 seconds]
arlek has joined #ruby
<lucasb> for the above optional, maybe the right syntax is '--foo[=ARG]'
guardian has joined #ruby
<tinhajj123> yeah thats exactly what I was looking for lucas thanks for pointing out the distinction really appreciate it!
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
huQeQwdpu47q has joined #ruby
cpup has joined #ruby
dlitvak has joined #ruby
karmatr0n has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
casadei has joined #ruby
last_staff has joined #ruby
oivoodoo has quit [Remote host closed the connection]
terminalrecluse has joined #ruby
dfinninger has quit [Remote host closed the connection]
oivoodoo has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
jam_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
emilford has joined #ruby
karmatr0n has quit [Ping timeout: 256 seconds]
jam_ has quit [Ping timeout: 272 seconds]
dudedudeman has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
karmatr0n has joined #ruby
Maxed has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
penne12 has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has joined #ruby
puria has joined #ruby
emilford has joined #ruby
mfb2 has quit [Remote host closed the connection]
dfinninger has quit [Ping timeout: 265 seconds]
mfb2 has joined #ruby
emilford has quit [Ping timeout: 245 seconds]
arlek has quit [Ping timeout: 245 seconds]
mfb2 has quit [Ping timeout: 240 seconds]
dexter-tzu has joined #ruby
drptbl has joined #ruby
arlek has joined #ruby
arlek has quit [Max SendQ exceeded]
tvw has quit []
iateadonut has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
arlek has joined #ruby
arlek has quit [Max SendQ exceeded]
rtail_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arlek has joined #ruby
rtail_ has joined #ruby
nerium has quit [Quit: nerium]
ur5us has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
arlek_ has joined #ruby
arlek_ has quit [Max SendQ exceeded]
volty has quit [Quit: Konversation terminated!]
arlek_ has joined #ruby
stuxnet has joined #ruby
arlek has quit [Ping timeout: 245 seconds]
marcdel has quit [Ping timeout: 264 seconds]
s2013 has joined #ruby
karmatr0n has quit [Ping timeout: 245 seconds]
arlek has joined #ruby
s2013 has quit [Client Quit]
howdoi has quit [Quit: Connection closed for inactivity]
marr has joined #ruby
tenderlove has quit [Quit: Leaving...]
s2013 has joined #ruby
nchambers has quit [Quit: Leaving]
JohnT has joined #ruby
nchambers has joined #ruby
nchambers has quit [Remote host closed the connection]
dlitvak has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arlek__ has joined #ruby
arlek_ has quit [Ping timeout: 264 seconds]
_Doran has joined #ruby
arlek_ has joined #ruby
arlek has quit [Ping timeout: 245 seconds]
_Doran has left #ruby [#ruby]
bahar has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has quit [Read error: Connection reset by peer]
gruz0 has joined #ruby
graffix222 is now known as graffix
arlek__ has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
s2013 has joined #ruby
dudedudeman has quit [Quit: dudedudeman]
BTRE has quit [Quit: Leaving]
lDoran has joined #ruby
rhg135 has quit [Quit: ZNC - http://znc.in - making IRC 20% cooler]
emilford has joined #ruby
arlek has joined #ruby
rtail_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rhg135 has joined #ruby
ur5us has quit [Remote host closed the connection]
futilegames has joined #ruby
ajf- has quit [Quit: Textual IRC Client: www.textualapp.com]
arlek__ has joined #ruby
arlek_ has quit [Ping timeout: 260 seconds]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emilford has quit [Ping timeout: 265 seconds]
nchambers has joined #ruby
arlek has quit [Ping timeout: 245 seconds]
arlek_ has joined #ruby
jbrhbr has quit [Quit: Leaving.]
chouhoulis has joined #ruby
gruz0 has quit [Quit: Leaving]
tomphp has joined #ruby
arlek has joined #ruby
arlek__ has quit [Ping timeout: 256 seconds]
emilford has joined #ruby
dome22xl has quit [Read error: Connection reset by peer]
Anderson69s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
arlek_ has quit [Ping timeout: 245 seconds]
arlek_ has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
agit0 has quit [Quit: zzzZZZ….]
hannelita has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
arlek__ has joined #ruby
arlek has quit [Ping timeout: 245 seconds]
marcdel has joined #ruby
FernandoBasso has joined #ruby
arlek_ has quit [Ping timeout: 245 seconds]
arlek_ has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
UtkarshRay has quit [Ping timeout: 240 seconds]
lele has quit [Ping timeout: 240 seconds]
aspire has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
arlek__ has quit [Ping timeout: 240 seconds]
arlek__ has joined #ruby
graphettion has quit [Ping timeout: 256 seconds]
arlek__ is now known as arlek
arlek is now known as msg
msg is now known as Guest12957
Guest12957 is now known as arlek
lele has joined #ruby
metameme has joined #ruby
metameme has left #ruby [#ruby]
arlek_ has quit [Ping timeout: 272 seconds]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hannelita has quit [Remote host closed the connection]
nchambers has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
emilford has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt1 has joined #ruby
oivoodoo has quit [Remote host closed the connection]
tape88 has joined #ruby
tape88 has left #ruby [#ruby]
tape88 has joined #ruby
raypulve1 has quit [Quit: leaving]
dfinninger has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
hightower2 has joined #ruby
tape88 has quit [Client Quit]
emilford has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
s2013 has joined #ruby
n00bdev has joined #ruby
oivoodoo has joined #ruby
dfinninger has quit [Ping timeout: 245 seconds]
ebbflowgo has joined #ruby
emilford has joined #ruby
axisys has quit [Ping timeout: 265 seconds]
darkf has quit [Ping timeout: 250 seconds]
kriskropd has quit [Quit: WeeChat 0.4.2]
oivoodoo has quit [Remote host closed the connection]
ferr has joined #ruby
lDoran has quit [Quit: Leaving]
dfinninger has joined #ruby
tape88 has joined #ruby
psy_ has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
lucasb has quit [Quit: leaving]
ramfjord has joined #ruby
mdw_ has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
griffindy has joined #ruby
kadoppe has quit [Ping timeout: 260 seconds]
emilford has joined #ruby
bahar has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bronson has joined #ruby
graphettion has joined #ruby
tape88 has quit [Quit: Textual IRC Client: www.textualapp.com]
Galas has joined #ruby
kadoppe has joined #ruby
tape88 has joined #ruby
<aep_> whats a pretty way to make [a,b,c,a,a] into {a:3,b:1,c:1} ?
<aep_> something with reduce and count
bahar has joined #ruby
<Mon_Ouie> each_with_object Hash.new(0) do |x, counts| counts[x] += 1 end
<apeiros> >> [a,b,c,a,a].each_with_object(Hash.new(0)) { | …
<ruby[bot]> apeiros: # => /tmp/execpad-3f3a3f586d18/source-3f3a3f586d18:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/506978)
* apeiros swings fist at Mon_Ouie for being faster
graphettion has quit [Remote host closed the connection]
manjaroi3 has quit [Quit: leaving]
bahar has quit [Changing host]
bahar has joined #ruby
<Mon_Ouie> Also undefined variable a :p
emilford has quit [Ping timeout: 256 seconds]
bronson has quit [Ping timeout: 265 seconds]
<aep_> hmm. i'm playing with group_by now
<chris2> then you'll miss a hash-returning Hash#map
aspire has quit [Quit: Leaving]
emilford has joined #ruby
vvalien has joined #ruby
skcin7 has joined #ruby
tape88 has quit [Quit: Textual IRC Client: www.textualapp.com]
tape88 has joined #ruby
hannelita has joined #ruby
chipotle has joined #ruby
lobster_ has quit [Ping timeout: 240 seconds]
emilford has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
joast has joined #ruby
marcdel has quit [Ping timeout: 250 seconds]
emilford has joined #ruby
jaffachief_ has joined #ruby
atomical_ has joined #ruby
ferr has quit [Quit: WeeChat 1.3]
atomical_ has quit [Client Quit]
Dimik has joined #ruby
marcdel has joined #ruby
emilford has quit [Ping timeout: 245 seconds]
atomical has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
Newtonianb has joined #ruby
underplank has joined #ruby
dfinninger has quit []
gruz0 has joined #ruby
<underplank> Hi all. Just trying to run some rspec tests. and getting am getting this error? https://www.refheap.com/113983
<underplank> total newb to ruby, so looking for some pointers.
<underplank> im running bundle exec rake spec
yasha0x80 has joined #ruby
nchambers has joined #ruby
emilford has joined #ruby
Galas has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
puria has quit [Ping timeout: 245 seconds]
mdw has joined #ruby
emilford has quit [Ping timeout: 265 seconds]
karmatr0n has joined #ruby
arup_r has quit [Remote host closed the connection]
finisherr has joined #ruby
wald0 has joined #ruby
stuxnet has quit [Ping timeout: 272 seconds]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
emilford has joined #ruby
Newtonianb has quit []
djellemah_ has quit [Quit: Leaving]
jam_ has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
djellemah has joined #ruby
<atmosx> underplank: some gem is missing probably
<atmosx> underplank: you're missing some library or ruby can't find due to path issues
lDoran has joined #ruby
<underplank> ahh… ok that makes sense
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
TomPeed has joined #ruby
craigp has joined #ruby
emilford has quit [Ping timeout: 250 seconds]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
arup_r has joined #ruby
PedramT has joined #ruby
jam_ has quit [Ping timeout: 264 seconds]
lacuna has quit [Client Quit]
Xeago has joined #ruby
emilford has joined #ruby
axisys has joined #ruby
robbyoconnor has quit [Max SendQ exceeded]
hxegon is now known as hxegon_AFK
arthurnn has joined #ruby
karmatr0n has quit [Ping timeout: 272 seconds]
hxegon_AFK is now known as hxegon
yqt has joined #ruby
houhoulis has quit [Remote host closed the connection]
emilford has quit [Ping timeout: 265 seconds]
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arthurnn has quit [Remote host closed the connection]
TomPeed has joined #ruby
arthurnn has joined #ruby
cicloid has joined #ruby
govg has joined #ruby
emilford has joined #ruby
betafive has quit [Ping timeout: 252 seconds]
<underplank> My google foo is failing me. In rspec is there a way to check is something is not nil?
c0ncealed has quit [Remote host closed the connection]
<baweaver> expect(foo).to_not be(nil)
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> https://www.relishapp.com/rspec - this is your friend
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dexter-tzu has quit [Ping timeout: 265 seconds]
c0ncealed has joined #ruby
s2013 has joined #ruby
_Tariq has joined #ruby
<_Tariq> Hey
arthurnn has quit [Quit: bye...]
domgetter has quit []
arthurnn has joined #ruby
domgetter has joined #ruby
dextertzu has quit [Ping timeout: 260 seconds]
<_Tariq> I am planning to do a hardfork of a rubygem (Calyx), and may need to come up with a different name so that the project can be registered properly on rubygems. Would calling it tra38-calyx be a fine name? I want to be able to merge it back upstream if I can ever get the approval of the maintainer.
shanemcd has joined #ruby
wald0 has quit [Ping timeout: 256 seconds]
<shevy> you have to keep in mind that some people have to type out that name
<shevy> gem install tra38-calyx
<shevy> not a lot of fun to type
<shevy> compare this to
<shevy> gem install rails
<shevy> gem install calyx
wald0 has joined #ruby
hfp has quit [Ping timeout: 240 seconds]
hfp_work has quit [Ping timeout: 250 seconds]
<_Tariq> Hm...
<_Tariq> so should I come up with a shorter name then?
<_Tariq> I am just afraid that coming up with a different name would essentially prevent merging upstream
<_Tariq> but that may be very well be inevitable
hfp_work has joined #ruby
hfp has joined #ruby
<_Tariq> Do you have a suggestion of such shevy?
cicloid has quit [Quit: zzZZzzzZzzzzzZZZz]
mdw has quit [Quit: Sleeping Zzzzz]
tomphp has joined #ruby
JohnT has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has joined #ruby
vF3hNGxc47h8 has joined #ruby
JohnT has joined #ruby
toretore has joined #ruby
maneco has joined #ruby
wald0 has quit [Ping timeout: 250 seconds]
sperant has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
wald0 has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
lelo has joined #ruby
emilford has quit [Ping timeout: 240 seconds]
<djellemah> _Tariq: IMO, it doesn't really matter. If you can see a pattern in other forked gem names use that, otherwise use whatever you like. I don't see the name creating a big problem for upstream merge.
<_Tariq> Got it
n00bdev has quit []
dcunit3d has joined #ruby
mdw has joined #ruby
sperant has quit [Quit: Textual IRC Client: www.textualapp.com]
triangles has joined #ruby
skade has joined #ruby
emilford has joined #ruby
IronD has quit [Ping timeout: 240 seconds]
<shevy> _Tariq haha
karmatr0n has joined #ruby
<_Tariq> haha?
<shevy> _Tariq I myself don't follow what I wrote above :-)
samgerber has joined #ruby
<_Tariq> Ah, got it
<shevy> one reason is that many short names are already picked
<shevy> I once wanted to have a gem called "configuration"
<shevy> but there already is such a gem
<_Tariq> Ah well.
samgerber has quit [Client Quit]
<shevy> so now, either I rename my gem, or I rename the module... or I retain the name configuration and stick to use it, at the cost of not being able to distribute at rubygems.org (I could of course make it available elsewhere)
wald0 has quit [Quit: Lost terminal]
<choke> be quirky with it and name it something like twat_waffle... tons of weird named gems out there, part of the fun i guess lol
<shevy> you could call it "configuration_fancypants", and the main module would be: module Configuration but I hate this
skade has quit [Ping timeout: 265 seconds]
<shevy> I think gem-name -> toplevel namespace is logical and simpler
emilford has quit [Ping timeout: 264 seconds]
<shevy> choke oh yeah there are so many silly names...
emilford has joined #ruby
<choke> i came up with a whole story that i told my boss, entirely made up with gem names lol
<adaedra> you'll never beat unicode_snowman.
<shevy> unicode_snowman is a good name
<shevy> IF it is a unicode snowman
<shevy> if it is a pony then it's a stupid name
disconnekted has quit [Read error: Connection reset by peer]
disconnekted has joined #ruby
<adaedra> unicode_snowman is the perfection.
<adaedra> you'll never find a gem more useful.
Almoullim has quit [Remote host closed the connection]
lelo has quit [Remote host closed the connection]
<choke> theres the story i told my boss using gem named lol
karmatr0n has quit [Ping timeout: 260 seconds]
cicloid has joined #ruby
shanemcd has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shanemcd has joined #ruby
djbkd has joined #ruby
PedramT has quit [Remote host closed the connection]
lelo has joined #ruby
cicloid has quit [Ping timeout: 240 seconds]
Term_ has joined #ruby
hxegon is now known as hxegon_AFK
lDoran has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Term_ has quit [Ping timeout: 252 seconds]
pdoherty has quit [Ping timeout: 256 seconds]
ZerGabriel has joined #ruby
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
ht_ has joined #ruby
lelo has quit [Remote host closed the connection]
hxegon_AFK has quit [Quit: BRB]
_Tariq has quit [Remote host closed the connection]
jgt1 has quit [Ping timeout: 265 seconds]
PedramT has joined #ruby
PedramT has quit [Remote host closed the connection]
gizless has joined #ruby
Cohedrin has joined #ruby
finisherr has left #ruby [#ruby]
tomphp has joined #ruby
gizmore has quit [Ping timeout: 272 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
hannelita has quit [Remote host closed the connection]
futilegames_ has joined #ruby
chipotle has quit [Quit: cheerio]
bronson has joined #ruby
sakix has joined #ruby
Rodya_ has quit [Remote host closed the connection]
hxegon has joined #ruby
futilegames has quit [Ping timeout: 272 seconds]
futilegames_ is now known as futilegames
araujo__ has joined #ruby
Rodya_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
araujo_ has quit [Ping timeout: 250 seconds]
sakix has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 265 seconds]
fantazo has joined #ruby
futilegames has left #ruby [#ruby]
disconnekted has quit [Read error: Connection reset by peer]
AndChat|349076 has joined #ruby
shadoi has joined #ruby
casadei has quit [Remote host closed the connection]
dlitvak has joined #ruby
mfb2 has joined #ruby
vvalien has quit [Remote host closed the connection]
Darmani has joined #ruby
shadoi has quit [Client Quit]
<Darmani> Hey kids<3
halvo has quit [Ping timeout: 260 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
s2013 has joined #ruby
sakix has joined #ruby
mfb2 has quit [Ping timeout: 250 seconds]
dlitvak has quit [Ping timeout: 272 seconds]
shanemcd has quit [Remote host closed the connection]
shanemcd has joined #ruby
<Darmani> Radar are you around?
ur5us has joined #ruby
volty has joined #ruby
Rodya_ has quit [Remote host closed the connection]
pwnd_nsfw has quit [Quit: Leaving]
pwnd_nsfw has joined #ruby
Rodya_ has joined #ruby
Xiti` has joined #ruby
Xiti` has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has quit [Ping timeout: 250 seconds]
dcunit3d has quit [Ping timeout: 250 seconds]
Xiti` has joined #ruby
Xiti` has quit [Client Quit]
FernandoBasso has quit [Quit: Leaving]
skade has joined #ruby
K1MOS has joined #ruby
nfk has joined #ruby
casadei has joined #ruby
skofo has joined #ruby
last_staff has joined #ruby
JohnT has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FernandoBasso has joined #ruby
karmatr0n has joined #ruby
codecop has quit [Remote host closed the connection]
skade has quit [Ping timeout: 250 seconds]
jaffachief_ has quit [Quit: Connection closed for inactivity]
casadei has quit [Ping timeout: 250 seconds]
skofo has quit [Ping timeout: 260 seconds]
mprelude has quit [Quit: WeeChat 1.3]
bb010g has quit [Quit: Connection closed for inactivity]
mprelude has joined #ruby
Faris has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
jam_ has joined #ruby
lucasb has joined #ruby
skofo has joined #ruby
<arlek> im trying to include ruby headers within my project (visual studio 2015) and in "ruby/ruby.h" it fails to find "ruby/config.h"
shanemcd has quit [Remote host closed the connection]
sftrabbit has joined #ruby
<arlek> its there and i assume that the issue is due to not using angle brackets instead of quotation marks, but i dont want to change this in every individual ruby file
cicloid has joined #ruby
gizless is now known as gizmore
ruby-lang928 has joined #ruby
ruby154 has joined #ruby
<arlek> wait no, its actually not there
<arlek> what do i do? im using ruby 2.2
naim has joined #ruby
araujo__ has quit [Ping timeout: 276 seconds]
fedexo has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
jam_ has quit [Ping timeout: 250 seconds]
<adaedra> arlek: did you add the ruby headers path to your project settings?
<volty> kind of ruby?
yasha0x80 has joined #ruby
<adaedra> volty: yes, ruby is very kind. :p
<arlek> yes
cicloid has quit [Ping timeout: 245 seconds]
dlitvak has joined #ruby
<arlek> ruby/config.h doesnt exist
<baweaver> Ox0dea, eam, and jhass would be better with C interface questions
Xiti has quit [Quit: Xiti]
<baweaver> if they're about.
<arlek> it doesnt exist on the github page either
<volty> INCLUDEPATH += /home/volty/.rbenv/versions/2.2.0-dev/include/ruby-2.2. then INCLUDEPATH += /home/volty/.rbenv/versions/2.2.0-dev/include/ruby-2.2.0/x86_64-linux
<arlek> yet ruby/ruby.h still includes it
ruby-lang928 has quit [Ping timeout: 252 seconds]
<volty> ( for qmake, but all the same)
<adaedra> it may be generated by configure
<arlek> how would i get it? im using the prebuilt libraries
<arlek> i cant figure out how to build it under visual studio
Sucks has joined #ruby
<volty> neither do I :)
araujo__ has joined #ruby
robbyoconnor has joined #ruby
<lucasb> yes, confirming what adaedra said, it is generated by ./configure
<lucasb> dunno how one can do that in windows, however
ellistaa has joined #ruby
<volty> eh, I do not use configure
<ellistaa> can someone recommend a resource that gives suggestions on how to write more elegant ruby code?
antgel has joined #ruby
<volty> go and get the headers for your version of ruby, install them wherever you want, and point there
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> there's a configure.bat for windows
<naim> @ellista +1
karmatr0n has quit [Ping timeout: 264 seconds]
<volty> run it, but configure isn't going to produce ruby.h :)
<arlek> i have ruby.h
<soahccc> ellistaa: what do you mean by elegant? Nifty brainfuckers or just style guide? stdlib is always a good dig
<volty> anyway: run it and see what it says
<adaedra> but they have ruby.h, it's config.h that lacks, volty
<baweaver> ellistaa: Eloquent Ruby
* soahccc wrote a "framework" for a modular telegram bot and has almost no idea for actual useful components :sadface:
<ellistaa> soahccc: stuff to make my code faster .. etc
<ellistaa> baweaver: ty
<baweaver> then an algorithms book
tomphp has joined #ruby
<baweaver> if speed is really a concern though you'll need to drop to a language like Scala or Elixir
<baweaver> though that's rare.
<Darmani> Can someone tell me what's wrong with my code? http://ideone.com/IQSk2P
<Darmani> :[
<ruby154> what about the write more standard code and make it readable
<volty> adaedra: sure there's no config? been searching for that file on your pc?
<baweaver> that'd be Eloquent Ruby
<adaedra> volty: that's not my pc, that's arlek's
<volty> ops, sorry
mdw has quit [Quit: Sleeping Zzzzz]
<baweaver> that site is gold
rgtk_ has quit [Remote host closed the connection]
<Darmani> oh cool fosho
<Darmani> but whats wrong with my code though.... Lol
<lucasb> Darmani: I shouldn't be trying to use array.each and also modifying the array indices at the same time
<ruby154> why your sorted veriable assign to false initially?
<arlek> it gives me fatal error: echo returns 0x01
<lucasb> *you shouldn't ...
<arlek> trying to build it
<Darmani> lucasb - ohh my bad. I got you.
<adaedra> arlek: there's a more interesting message above this one.
emilford has quit [Ping timeout: 240 seconds]
tomphp has quit [Client Quit]
<arlek> oh duh
sakix has quit [Quit: WeeChat 1.3]
<arlek> how do i add that option
gruz0 has quit [Quit: Leaving]
Mon_Ouie has quit [Quit: WeeChat 1.3]
bbuurt has joined #ruby
last_staff has quit [Quit: last_staff]
skofo has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
gambl0re has quit []
zenlot1 has joined #ruby
<volty> maybe typing this : @configure I want it with --with-baseruby option, baseruby being at location .... Looking forward for a positive outcome. Best regards, Artek Trollmatch
araujo__ has quit [Ping timeout: 240 seconds]
<volty> *Arlek
ruby154 has quit [Ping timeout: 252 seconds]
gambl0re has joined #ruby
<arlek> im not trolling
<arlek> anyways i added the command and i get: http://prntscr.com/9tywmv
zenlot has quit [Ping timeout: 272 seconds]
<Radar> Darmani: I may be, I might not be. Who's asking and why?
* Radar opens screenshot, sees Windows, suddenly has more important things to be doing like watching paint dry
TomPeed has joined #ruby
<shevy> lol
Rodya_ has quit [Remote host closed the connection]
dcunit3d has joined #ruby
ZerGabriel has quit []
<shevy> arlek you can try to look at how luis lavena builds the rubyinstaller, somewhere there should be the way how they build it on windows https://github.com/oneclick/rubyinstaller
<naim> Is there anybody who is from stuttgart, german?
<baweaver> probably orca iirc
<diegoviola> or get a Linux VM and use chruby/ruby-install
<baweaver> but I avoid windows like the plague.
freerobby has joined #ruby
<hightower2> Hey, is there a module or something that would help with "inlining" Ruby methods? By "inlining" I don't mean running foreign code, but reparsing source to inline the code and avoid calling methods
<baweaver> eval?
<baweaver> ?xy
arup_r has quit []
<ruby[bot]> 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
<Radar> ^
<hightower2> baweaver, I mean the equivalent of "inline" in C
<shevy> naim dunno... perhaps norc__ or jhass... hmm no jhass was from berlin... perhaps Papierkorb
du5tball has joined #ruby
<Radar> I've been to Berlin, does that count?
<hightower2> (With all the inevitable differences that a Ruby version of such thing would have, of course)
Sucks has quit [Ping timeout: 256 seconds]
<naim> :) just curious
<Radar> hightower2: What exactly are you trying to accomplish? Some code examples would be great.
<shevy> Radar it counts a little
Sucks has joined #ruby
gambl0re has quit [Changing host]
gambl0re has joined #ruby
<du5tball> is it possible to convert a variable in-place to another type? as in, i have x, x gets assigned via user input but i want that to be a float
<Radar> hightower2: Not all programming language constructs convert 1:1 across programming language.
<Radar> languages*
<volty> there cannot be an equivalent of c's inline in ruby, nonsense
<Radar> du5tball: to_f
<shevy> du5tball the various .to_* methods
<Radar> du5tball: x.to_f
<hightower2> volty, as I said, the "equivalent", taking into account Ruby specifics
Rodya_ has joined #ruby
<du5tball> Radar: so, simply putting "x.to_f" makes x a float for the rest of the operations?
<baweaver> hightower2: what are you trying to do?
<Radar> du5tball: x = x.to_f
<du5tball> ah okay
<du5tball> i hadn't thought of that. thanks
<hightower2> Radar, baweaver, I have a very high performance app where the code is split into methods simply for manageability and DRYness, of course, but calling methods is slower if the code would be executing in-place, without jumping to methods. So I am looking for something (I guess) which would reparse Ruby code before execution and "inline" those methods
<hightower2> s/slower if/slower than if/
maneco has quit [Ping timeout: 260 seconds]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> definitely beyond my immediate skillset
Ebok has joined #ruby
<baweaver> though I will offer that if you're trying for performance to that extent, Ruby is probably not a good idea.
tomphp has joined #ruby
freerobby has quit [Quit: Leaving.]
nertzy2 has joined #ruby
x77686d has quit [Remote host closed the connection]
<Radar> Can't provide advice on code I can't see, sorry.
x77686d has joined #ruby
tomphp has quit [Client Quit]
kriskropd has joined #ruby
kriskropd has quit [Changing host]
kriskropd has joined #ruby
freerobby has joined #ruby
<volty> hightower2: that's marginal gain, if any. Pay attn not to regress to assembler :)
h99h9h88 has joined #ruby
newbie22 has joined #ruby
Sucks has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
Ebok has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
ht_ has quit [Quit: Konversation terminated!]
dlitvak has quit [Read error: Connection reset by peer]
h99h9h88 has joined #ruby
dlitvak has joined #ruby
pdoherty has joined #ruby
skade has joined #ruby
maneco has joined #ruby
dlitvak has quit [Remote host closed the connection]
casadei has joined #ruby
freerobby has quit [Quit: Leaving.]
marcdel has quit [Quit: Textual IRC Client: www.textualapp.com]
karmatr0n has joined #ruby
skade has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
Xiti has joined #ruby
newbie22 has quit [Quit: Leaving]
karmatr0n has quit [Ping timeout: 250 seconds]
casadei has quit [Ping timeout: 264 seconds]
<norc__> <volty> there cannot be an equivalent of c's inline in ruby, nonsense
<norc__> Sure there can,.
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
arthropododo has joined #ruby
<baweaver> https://github.com/seattlerb/rubyinline - after digging
workmad3 has quit [Ping timeout: 272 seconds]
cicloid has joined #ruby
<volty> norc__: the gardenś pipe can be seen as an equivalent of elephant's trunk too. From the series «all you need is fantasy....»
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chimy_ has joined #ruby
chimy_ has quit [Client Quit]
<arlek> after some arcane magic i finally got this to work
<norc__> volty, if by inline you meant a decorator that does absolutely nothing because compilers know better than programmers anyway, then sure
<norc__> we can add decorators to ruby too.
cicloid has quit [Ping timeout: 240 seconds]
akem has joined #ruby
<arlek> for anyone that's interested, rubyinstaller generates a config file so i copied that and pasted it in another directory. then after that i had to add some includes above it: http://prntscr.com/9tzgcp
<arlek> the static build doesnt work for newer iterations of VS so you have to link to the provided .dll
<arlek> the config.h are located in the folders within the "include" directory in the respective compiler folders
K1MOS has joined #ruby
psf has joined #ruby
<volty> norc__: inline is an instruction to expand the code inline, instead of creating a real function that calls return. Other question if you instruct your compiler to interpret 'inline' as a hint. Inline's were abused, resulting in gigantic codeprint
<norc__> volty, it is not an instruction.
<volty> directive ?
<norc__> volty, it is just a compiler hint that is completely ignored by todays compilers
<volty> it's what I said
skofo has joined #ruby
<norc__> volty, the point is that the inline directive actually doesnt do anything
araujo__ has joined #ruby
araujo_ has quit [Ping timeout: 245 seconds]
<volty> the point is that inline doesn't do anything because they instructed compilers (all of them?) to not do anything. the other point is that our inliner asked for a real inline in ruby — a nonsense imho
diegoviola has quit [Ping timeout: 260 seconds]
<psf> Hey guys, any book advices?
<volty> The codeprint extension was too big and the loading of all that big code was annulling the gains from omitting stack passing + return. The same holds for whatever language, low or high.
<volty> (meant loading time, swaps etc etc )
Yzguy has joined #ruby
<volty> another problem with inlined functions was the impossibility to export them (lib)
<volty> so, if not worth in c/c++, how can that be worth in a high level language ?
altair118 has joined #ruby
<volty> hightower2: got it?
mdw has joined #ruby
asccigcc has joined #ruby
Xeago has quit [Remote host closed the connection]
<Papierkorb> not worth it in C/C++?
fantazo has quit [Quit: Verlassend]
<Papierkorb> What year is it?
Rodya_ has quit [Remote host closed the connection]
nertzy2 has quit [Quit: This computer has gone to sleep]
<volty> I just don't know. It's norc__ that says inline is nowadays ignored. I just compile, from time to time, not using inline, not thinking inline.
ManUtd27 has joined #ruby
bronson has joined #ruby
ManUtd27 has quit [Client Quit]
solocshaw has joined #ruby
s2013 has joined #ruby
<Papierkorb> (Not saying that 'inline' may not be ignored, and that compilers are likely to ignore them)
aryaching has quit [Ping timeout: 240 seconds]
x77686d has quit [Ping timeout: 245 seconds]
<Papierkorb> I miss the 'const' keyword in ruby though.
bronson has quit [Ping timeout: 265 seconds]
K1MOS has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Papierkorb> Not even for optimization (C/C++ compilers should be able to do that themselves), but as guard against foolish code ;)
asccigcc has quit [Quit: asccigcc]
<Darmani> baweaver, lucasb - http://ideone.com/vggkcF
<Darmani> took me a while. But I think I get it.
cactuzzz has quit [Quit: cactuzzz]
akem has quit [Quit: Bye]
FernandoBasso has quit [Quit: Leaving]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
PaulCapestany has quit [Quit: .]
PaulCapestany has joined #ruby