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?
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
<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
<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…]
<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
<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?
<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?
<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?
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]
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]
<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]
<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
<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
<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"
<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]
<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)
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..]
<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
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
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.
<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...
_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
<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
<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]
<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 ;)