apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<MattB2> What level?
<pontiki> metaprogramming in ruby 2 came out this year
<shevy> wald0 get your hands dirty man and try the most ancient method of all times - writing lots and lots of ruby code!
<havenwood> partial implementation of clojure in ruby: https://github.com/jgdavey/hammock#readme
siwica has joined #ruby
siwica has quit [Client Quit]
rshetty has quit [Ping timeout: 244 seconds]
thumpba has joined #ruby
<cleopatra> I would start with a book by ruby Low Level
<havenwood> partial implementation of scheme in ruby: https://github.com/aarongough/flea#readme
sinequanon has joined #ruby
Guest23174 has quit [Quit: leaving]
thumpba has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Client Quit]
siwica has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
chipotle has quit [Ping timeout: 272 seconds]
corehook has joined #ruby
kaspergrubbe has joined #ruby
kaspergrubbe is now known as Guest99560
Takle has joined #ruby
Guest99560 has quit [Client Quit]
pandaant has quit [Remote host closed the connection]
kaspergr1bbe has joined #ruby
chipotle has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
Channel6 has joined #ruby
Lingo has joined #ruby
nonks has joined #ruby
vinleod has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
sailias has joined #ruby
jimbach has joined #ruby
sailias has quit [Client Quit]
sailias has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
apeiros_ has joined #ruby
<wald0> shevy: i should follow your suggestion for sure :)
chipotle has quit [Ping timeout: 265 seconds]
Lingo has quit [Quit: Be back later ...]
omosoj has joined #ruby
jimbach has quit [Ping timeout: 256 seconds]
silkfox has joined #ruby
apeiros_ has quit [Ping timeout: 244 seconds]
n_blownapart has joined #ruby
chipotle has joined #ruby
kasperti_ has joined #ruby
mloveless has quit []
zorak8 has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
MattB2 has quit []
olistik has left #ruby [#ruby]
Xeago_ has quit [Remote host closed the connection]
duncannz has quit [Quit: Leaving]
Lingos has quit [Quit: Be back later ...]
duncannz has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
xenogis has quit [Ping timeout: 272 seconds]
TPBallbag has joined #ruby
byprdct has quit [Ping timeout: 258 seconds]
ringarin has quit [Quit: Leaving]
TPBallbag has quit [Client Quit]
mathias2 has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Excess Flood]
Avahey has joined #ruby
livingstn has quit []
procat has quit [Ping timeout: 255 seconds]
kasperti_ has quit []
it_tard has quit [Quit: yawn]
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia_ has joined #ruby
zenojis has joined #ruby
mathias2 has quit [Ping timeout: 264 seconds]
marr has quit []
byprdct has joined #ruby
Soda has joined #ruby
zenojis has quit [Ping timeout: 258 seconds]
adriancb has joined #ruby
yfeldblum has quit [Remote host closed the connection]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
zoink_ is now known as zoink
Takle has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
kumarat9pm has quit [Ping timeout: 245 seconds]
aspiers has joined #ruby
fabrice31 has joined #ruby
zenojis has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zacts has quit [Quit: leaving]
Xeago has quit [Remote host closed the connection]
renderful has joined #ruby
poweratom_ has joined #ruby
sinequanon has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
slawrence00 has joined #ruby
siwica has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
renderful has quit [Ping timeout: 250 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephndenton has joined #ruby
zenojis has quit [Ping timeout: 258 seconds]
drawingthesun has joined #ruby
<wald0> whats the difference between #@var and #{var} ?
zenojis has joined #ruby
<havenwood> wald0: the former is an instance variable and the latter a local variable
<havenwood> wald0: `#@var` is like `#{@var}`
<havenwood> wald0: just an optional removal of the `{}`
Xeago has quit [Remote host closed the connection]
kevinxu has joined #ruby
kevinxu is now known as Guest99519
fedexo has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
fedexo has joined #ruby
aspiers has quit [Ping timeout: 250 seconds]
nonks has joined #ruby
byprdct has quit [Read error: Connection reset by peer]
<wald0> #{Dir.pwd}, i can do #Dir.pwd ?
<apeiros> wald0: no
<apeiros> only #@ and #$ work (maybe #@@ too)
robustus has quit [Ping timeout: 255 seconds]
n_blownapart has quit [Quit: Leaving]
<wald0> seems like there's a good amount of different ways to do syntax... which makes me confused about it (the syntax of ruby)
oo_ has joined #ruby
zenojis has quit [Ping timeout: 258 seconds]
<apeiros> there is not much syntax rules in ruby you'd need to learn
arescorpio has joined #ruby
byprdct has joined #ruby
Techguy305 has joined #ruby
<apeiros> almost everything fits onto ~3 pages of A4. google zenspiders quickref. it covers all of ruby syntax.
<wald0> about about if i want to do foo but then im doing bar ? :)
<apeiros> I have no idea what you mean by that.
<wald0> so #{} is like saying evaluate stuff, right?
robustus has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
<wald0> well, in C you can have a lot of problems when using pointers if you use & when you want to use *, or viceversa
<apeiros> you'll get problems in every language if you mess up syntax.
n008f4g_ has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
finch has left #ruby ["WeeChat 0.3.8"]
<Xeago> apeiros: what is #@ ?
<Xeago> isn't that just a "comment"@
<wald0> so that's what i meant then
<apeiros> Xeago: in string interpolation, "#@foo" works the same as "#{@foo}"
<wald0> > wald0> about about if i want to do foo but then im doing bar ? :)
<wald0> Xeago: comment, heh, good point
yfeldblum has joined #ruby
<Xeago> wald0: using "#{@interpolation}" has the additional benefit of being clearly delimited
zenojis has joined #ruby
mobiGeek has quit [Ping timeout: 264 seconds]
<wald0> Xeago: but is slower to type :/
<Xeago> consider "#{@inter}polation" vs "#@interpolation"
dc_ has joined #ruby
<wald0> yeah i had these problems in bash
<Xeago> same amount of keystrokes for me
<Xeago> my editor automatically inserts the closing bracket
<wald0> vim snippets?
<Xeago> wald0: I indeed use vim
zacts has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
davidhq has joined #ruby
dkb20k has joined #ruby
apoplexy_da_boss has joined #ruby
<apoplexy_da_boss> can you use ruby and wordpress on the same site?
NoNMaDDeN has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanashiRei has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
kobain has joined #ruby
<apoplexy_da_boss> not trolling
<havenwood> apoplexy_da_boss: sure, you could
<jhass> apoplexy_da_boss: how do you define "site"
tvw has quit [Ping timeout: 264 seconds]
dkb20k has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
atomical has joined #ruby
NoNMaDDeN has quit [Ping timeout: 264 seconds]
hostess_ is now known as hostess
babykosh has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
procat has joined #ruby
dseitz has joined #ruby
rshetty has quit [Remote host closed the connection]
<shevy> apoplexy_da_boss wordpress wants php
tvw has joined #ruby
<shevy> wald0 if you write a lot, eventually it all becomes a natural flow from your brain to your fingers
Spami has joined #ruby
jenrzzz has joined #ruby
mathias2 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Excess Flood]
davidhq has joined #ruby
spyderman4g63 has joined #ruby
procat has quit [Ping timeout: 258 seconds]
tvw has quit [Ping timeout: 255 seconds]
chipotle has joined #ruby
nanashiRei has joined #ruby
mathias2 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
agjacome has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
adriancb has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
despai has joined #ruby
mikecmpbll has quit [Client Quit]
mistermocha has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
oleo__ has joined #ruby
Techguy305 has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Client Quit]
rkazak has joined #ruby
mikecmpbll has joined #ruby
rkazak has left #ruby [#ruby]
mikecmpbll has quit [Client Quit]
rshetty has joined #ruby
mikecmpbll has joined #ruby
rkazak has joined #ruby
mikecmpbll has quit [Client Quit]
funburn has quit [Quit: funburn]
oleo is now known as Guest78667
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
Guest78667 has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
adriancb has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
adriancb has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
adriancb has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
oo_ has quit [Remote host closed the connection]
despai has quit [Quit: This computer has gone to sleep]
oz has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
arup_r has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
jenrzzz has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
atmosx has quit [Quit: Lost in trance]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
mikecmpbll has joined #ruby
Techguy305|2 has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
byprdct has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
adriancb has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
mikecmpbll has quit [Client Quit]
chipotle has quit [Remote host closed the connection]
charliesome has joined #ruby
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
jimbach has joined #ruby
klmlfl has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
atomical has joined #ruby
apeiros_ has joined #ruby
mikecmpbll has quit [Client Quit]
chipotle has joined #ruby
mikecmpbll has joined #ruby
nateberkopec has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
byprdct has joined #ruby
zacts has quit [Quit: leaving]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
lemur has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
jimbach has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
apeiros_ has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
lemur has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
jlast_ has quit [Read error: No route to host]
Takle has quit [Remote host closed the connection]
jlast has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
Techguy305|2 has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
lemur has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
poweratom_ has quit [Quit: Be back later ...]
zacts has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
sjohnsen has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
vinleod has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
EmilS has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Techguy305 has joined #ruby
mikecmpbll has quit [Client Quit]
EmilS has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
nateberkopec has quit [Quit: Leaving...]
dc_ has quit [Remote host closed the connection]
mikecmpbll has quit [Client Quit]
mikecmpbll has joined #ruby
<duncannz> mikecmpbll: ??
<duncannz> you've been joining and leaving non stop for agees
mikecmpbll has quit [Client Quit]
dermothaughey has joined #ruby
mikecmpbll has joined #ruby
josephndenton has joined #ruby
<babykosh> ruby gods …this book is outdated...https://pragprog.com/book/achbd/the-rspec-book
<babykosh> …Is there a better one?
mikecmpbll has quit [Client Quit]
EmilS has joined #ruby
dkb20k has joined #ruby
EmilS has quit [Max SendQ exceeded]
apeiros_ has joined #ruby
EmilS has joined #ruby
EmilS has quit [Max SendQ exceeded]
pa3ce has quit [Quit: Leaving]
wald0 has quit [Ping timeout: 264 seconds]
EmilS has joined #ruby
EmilS has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
oculus has joined #ruby
oculus has quit [Max SendQ exceeded]
jlast has quit [Read error: Connection reset by peer]
rkazak has quit [Quit: Sleep.....ing....]
<Nilium> So, I found an interesting little thing in RubyMotion
apeiros_ has quit [Remote host closed the connection]
jlast has joined #ruby
<Nilium> Well, two things. One is that it does tail call optimization, which is pretty cool.
sjohnsen has joined #ruby
<Nilium> The other is that one of its executables, when run, loads a ten-hour nyancat video.
oculus has joined #ruby
oculus has quit [Max SendQ exceeded]
poweratom_ has joined #ruby
oculus has joined #ruby
oculus has quit [Max SendQ exceeded]
byprdct has quit [Ping timeout: 258 seconds]
jlast has quit [Read error: Connection reset by peer]
oculus has joined #ruby
jlast has joined #ruby
procat has joined #ruby
mugiwara has joined #ruby
apoplexy_da_boss is now known as apoplexy
mugiwara has left #ruby [#ruby]
mugiwara has joined #ruby
<mugiwara> Um, hello folks I am new to Ruby
<mugiwara> and IRC, admittedly
mathias2 has joined #ruby
oculus has quit [Client Quit]
Deele has quit [Ping timeout: 260 seconds]
karmatr0n has joined #ruby
oculus has joined #ruby
procat has quit [Ping timeout: 258 seconds]
babykosh has quit [Quit: babykosh]
VBlizzard has quit [Quit: ['hip','hip'].]
fabrice31 has joined #ruby
VBlizzard has joined #ruby
ukd1 has joined #ruby
mathias2 has quit [Ping timeout: 258 seconds]
VBlizzard is now known as Blizzy
<Blizzy> hello, mugiwara. :P
<mugiwara> Hi, thanks :) so many people here but it's very quiet..
Guest99519 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Blizzy> lol, true.
<Blizzy> and no problem. :P
Xuerian_ is now known as Xuerian
adriancb has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
pdtpatrick_ has joined #ruby
KC9YDN has quit [Quit: Condenadme, no importa, la Historia me absolverá. - Fidel Castro]
gsd has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
airdeluxe has joined #ruby
Vile` has quit [Ping timeout: 250 seconds]
sailias has quit [Quit: Leaving.]
yfeldblum has joined #ruby
oculus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mugiwara> always quiet here?
Nexus_x1 has joined #ruby
<mugiwara> I want to learn Ruby while working on a small project of mine -- it will use the APIs of various sites like Twitter and YouTube to list follower/tweet count and profile info of accounts. Seems like a decent project. Will need to learn all of the basics of Ruby and then how to use OAuth due to the API requirements. Your thoughts, everyone?
Vile` has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
oo_ has joined #ruby
karmatr0n has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 272 seconds]
<havenwood> mugiwara: do eet!
DogsAndCats has joined #ruby
<havenwood> mugiwara: cut a gem
tyll has quit [Ping timeout: 264 seconds]
<mugiwara> I think Ruby will be a good language for this project. I know Python already btw. Also, I want to turn this pet project into a web app where a logged in user could point to specific users. I've heard great things about Rails but that seems like a long-term goal. Have to learn Ruby first. I'll get crackin.
adriancb has joined #ruby
<benzrf> mugiwara: ruby is pretty nice
<benzrf> it's probably my favorite dynamically-typed language
<havenwood> mugiwara: You might take a look at Sinatra too.
<benzrf> mugiwara: if you know flask, sinatra is basically flask but ruby
tyll has joined #ruby
oo_ has quit [Ping timeout: 244 seconds]
<mugiwara> I have done a lot of "pre-learning" and learned a lot about NOT trying to over-optimize or worry about scale. It's best to just create an MVP for your project and get busy. Worry about that crap later when it's necessary
<mugiwara> so I think I have the right mindset going into this, just have to apply what I learn (as I learn it)
<benzrf> mugiwara: do you know any langs besides py
zorak8 has joined #ruby
<mugiwara> I've done plenty of PHP programming back in the day and have built websites
chipotle has quit [Max SendQ exceeded]
rshetty has joined #ruby
<benzrf> ewwww
zorak8 has quit [Max SendQ exceeded]
<mugiwara> and basic java and c++ in classes a long time ago
<benzrf> mugiwara: ruby has a fair amt in common with python
<mugiwara> I'm not a great programmer but I know what I'm doin I suppose
DogsAndCats has quit [Ping timeout: 265 seconds]
<benzrf> mugiwara: the most major difference in everyday usage is probably the ubiquity of higher order functions
chipotle has joined #ruby
<benzrf> mugiwara: do you know anything abt those?
<mugiwara> im terrible with buzzwords
<mugiwara> like generics and stuff
<mugiwara> no idea, I just learn and program lol
<mugiwara> I'm going to work through the free edition of learn ruby the hard way tonight
kireevco has quit [Quit: Leaving.]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mugiwara> do any of you use rbenv or rvm? or should I just use brew install ruby (my machine has brew installed from python)
<mugiwara> managing multiple installs per-project seems nice, I do that with python using virtualenv
magic_ has joined #ruby
lampd1 has quit []
oo_ has joined #ruby
ferr has quit [Ping timeout: 265 seconds]
luriv has quit [Ping timeout: 264 seconds]
davidhq has quit [Read error: Connection reset by peer]
ferr has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
davidhq has joined #ruby
Takle has joined #ruby
lemur has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has quit [Ping timeout: 255 seconds]
decoponyo has joined #ruby
KC9YDN has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
NoNMaDDeN has joined #ruby
parzzix has joined #ruby
corehook has joined #ruby
Lingo has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
corehook has quit [Ping timeout: 258 seconds]
Lingo has quit [Ping timeout: 245 seconds]
Techguy305|2 has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
tus has quit []
oo_ has quit [Read error: Connection reset by peer]
Techguy305|2 has quit [Max SendQ exceeded]
ferr has joined #ruby
oo_ has joined #ruby
Techguy305|2 has joined #ruby
spyderman4g63 has joined #ruby
Techguy305 has quit [Ping timeout: 258 seconds]
almostworking has left #ruby ["Leaving"]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> mugiwara: Yeah, the brew package is nice. You can switch easily between system Ruby and the brew package with chruby. Here's an example of a full setup: https://gist.github.com/havenwood/ba31f67c1d89ac236400
spyderman4g63 has quit [Ping timeout: 264 seconds]
<mugiwara> Ah, I'm already setup actually ;P
<havenwood> mugiwara: RVM has lots of features, including installing and switching Rubies. For a lighter option I
apeiros_ has joined #ruby
<havenwood> I'd recommend chruby over rbenv.
<havenwood> mugiwara: ah, okay :)
<mugiwara> seems to be working just fine
<mugiwara> i have rvm installed but havent worked with it yet. I'm doing learn ruby the hard way tutorial series.
<havenwood> mugiwara: now that they've "poured a bottle", the brew package even installs quickly ;)
<mugiwara> I've got 2.1.4 installed and working great. Already done with exercise 2, puts and comments (#). Simple stuff so far. Early lessons should be a breeze
<havenwood> mugiwara: #rvm is helpful, or there's #chruby if you went that direction
<havenwood> mugiwara: nice
<mugiwara> my name keeps appearing in your messages. Are you privat emessaging me? And I'm spamming the general chat? oops lol. I'm new to IRC
Gadgetoid has quit [Ping timeout: 244 seconds]
procat has joined #ruby
Techguy305|2 has quit [Ping timeout: 245 seconds]
mathias2 has joined #ruby
apeiros_ has quit [Ping timeout: 256 seconds]
dermothaughey has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
Gadgetoid has joined #ruby
procat has quit [Ping timeout: 255 seconds]
KC9YDN has quit [Quit: Condenadme, no importa, la Historia me absolverá. - Fidel Castro]
mathias2 has quit [Ping timeout: 240 seconds]
cleopatra has quit [Quit: Saliendo]
i0n has quit [Quit: snooze]
<benzrf> mugiwara: no, that's how you normally address ppl in irc
<mugiwara> benzrf: I'm an idiot :) thanks
<benzrf> mugiwara: most clients support tab completion of nicks, and most will insert a colon if you tab complete at the beginning of a line
<mugiwara> benzrf: oooh yes it worked as you said. I hit tab to autocomp
<mugiwara> I'm using LimeChat on OSX
<benzrf> mugiwara: depending on your client, pms will either show up in another tab/window/section, or they may appear as prefixed regular messages
<mugiwara> nice, it worked
yfeldblum has joined #ruby
arescorpio has quit [Excess Flood]
oculus has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
Royalb15 has joined #ruby
Spami has joined #ruby
Spami has quit [Client Quit]
Spami has joined #ruby
Royalb15 has quit [Quit: Leaving]
jack_rabbit has joined #ruby
braincrash has quit [Quit: bye bye]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
echevemaster has joined #ruby
dermothaughey has joined #ruby
braincrash has joined #ruby
mugiwara has quit [Remote host closed the connection]
gsd has joined #ruby
x1337807_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
siso has quit [Read error: Connection reset by peer]
sarmiena_ has joined #ruby
x1337807x has quit [Ping timeout: 265 seconds]
mark06 has joined #ruby
parabolize has joined #ruby
<mark06> how can I tell inifile to ignore parsing errors?
<mark06> there's one line without equal sign, just the option name
<mark06> I want it to ignore that
parzzix has quit [Ping timeout: 265 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
corehook has joined #ruby
dermothaughey has quit [Remote host closed the connection]
dermothaughey has joined #ruby
corehook has quit [Remote host closed the connection]
rohit has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
funburn has joined #ruby
dermothaughey has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
x1337807_ has quit [Ping timeout: 264 seconds]
parzzix has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
echevemaster has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
aspiers has joined #ruby
Gsolinas has quit [Quit: Leaving]
duncannz has quit [Ping timeout: 250 seconds]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
Photism has quit [Quit: Leaving]
duncannz has joined #ruby
fabrice31 has quit [Ping timeout: 258 seconds]
procat has joined #ruby
mathias2 has joined #ruby
thsig has joined #ruby
yfeldblum has joined #ruby
virtualize has joined #ruby
procat has quit [Ping timeout: 256 seconds]
mathias2 has quit [Ping timeout: 245 seconds]
aspiers has quit [Ping timeout: 258 seconds]
adriancb has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
thsig has quit [Ping timeout: 258 seconds]
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
adriancb has joined #ruby
x1337807x has joined #ruby
freerobby has quit [Quit: Leaving.]
Nexus_x1 has quit [Quit: (null)]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
St_Marx has quit [Ping timeout: 250 seconds]
kevr has joined #ruby
<kevr> herro
karmatr0n has joined #ruby
St_Marx has joined #ruby
Axy has quit [Read error: Connection reset by peer]
aspiers has joined #ruby
barhum2013 has joined #ruby
Soda has quit [Remote host closed the connection]
<barhum2013> Hi, I messed up my rvm installation. When I run rvm install 1.9.3 I get: Error running './configure --prefix=/Users/admin/.rvm/rubies/ruby-1.9.3-p551 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --disable-install-doc --enable-shared',
<barhum2013> showing last 15 lines of /Users/admin/.rvm/log/1416114278_ruby-1.9.3-p551/configure.log
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
KC9YDN has joined #ruby
sargas has joined #ruby
ferr has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
sinequanon has joined #ruby
<parabolize> barhum2013: I undubtedly can't help you but I know that's probably not enough info for anyone to help you. That's just the call to configure and the flags past to it.
adriancb has quit [Remote host closed the connection]
<parabolize> s/past/passed
<barhum2013> parabolize: I am thinking I have to reinstall xcode, since I upgraded to yosemite
centrx has joined #ruby
chipotle has quit [Quit: cya]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Ping timeout: 258 seconds]
dseitz has joined #ruby
apeiros_ has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rshetty has quit [Remote host closed the connection]
d4nku has quit [Ping timeout: 264 seconds]
barhum2013 has quit [Quit: barhum2013]
corehook has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
sarmiena_ has quit [Quit: sarmiena_]
sargas has quit [Quit: This computer has gone to sleep]
chrishough has joined #ruby
AliRezaTaleghani has joined #ruby
rohit has quit [Quit: Leaving]
apeiros_ has joined #ruby
<kevr> i'm using rails/haml to build an application but when i add %br or <br> to strings it won't line break
<kevr> in haml
<kevr> what do?
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
techsethi has joined #ruby
sargas has joined #ruby
artm has joined #ruby
d4nku has joined #ruby
oo_ has joined #ruby
jaequery has joined #ruby
procat has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
mathias2 has joined #ruby
iamjarvo has joined #ruby
procat has quit [Ping timeout: 256 seconds]
d4nku has quit [Ping timeout: 256 seconds]
jimbach has joined #ruby
mathias2 has quit [Ping timeout: 240 seconds]
sargas has quit [Quit: This computer has gone to sleep]
ducklobster has quit [Ping timeout: 244 seconds]
swilr has quit [Ping timeout: 264 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Techguy305 has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
apeiros_ has quit [Remote host closed the connection]
swilr has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
red_horned_rihno has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
arup_r has quit [Read error: Connection reset by peer]
arup_r1 has joined #ruby
lxsameer has joined #ruby
chipotle has joined #ruby
arup_r1 has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
red_horned_rihno has quit [Ping timeout: 244 seconds]
parzzix has quit [Read error: Connection reset by peer]
Techguy305|2 has joined #ruby
kireevco has joined #ruby
kireevco has quit [Client Quit]
FenixFyreX has joined #ruby
drakezhard has joined #ruby
<FenixFyreX> Does anyone know about the C Extension, and the struct "rb_printf_buffer"? I'm struggling to find it's definition, and I've grep'd three entire source directories (192, 193, 210) of Ruby
Techguy305 has quit [Ping timeout: 258 seconds]
mclee has quit [Ping timeout: 240 seconds]
Eiam has joined #ruby
<FenixFyreX> whitequark.org throws an error when I search for it, and the only four results I've gotten by grep'ing are use cases, not definitions
yeticry has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
<FenixFyreX> that was easy, thanks much. I can't believe I didn't think of using github...
<FenixFyreX> thanks godd2
airdeluxe has quit [Quit: Leaving]
<drakezhard> Who says praying to godd2 never works XD
<FenixFyreX> haha
mclee has joined #ruby
BraddBitt has quit [Quit: Leaving]
pengin has joined #ruby
sinequanon has quit [Remote host closed the connection]
oo_ has joined #ruby
parzzix has joined #ruby
riceandb1ans is now known as riceandbeans
sinequanon has joined #ruby
Joufflu has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
Takle has joined #ruby
Joufflu has joined #ruby
corehook has quit [Remote host closed the connection]
psy_ has quit [Quit: Leaving]
St1gma has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 264 seconds]
St1gma has joined #ruby
Techguy305|2 has quit [Remote host closed the connection]
d4nku has joined #ruby
poweratom_ has quit [Quit: (null)]
BraddPitt has joined #ruby
kireevco has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
benzrf is now known as benzrf|offline
Kricir has joined #ruby
pengin has quit [Remote host closed the connection]
poweratom_ has joined #ruby
d4nku has quit [Ping timeout: 255 seconds]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
artm has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
dermothaughey has joined #ruby
magical_mystery is now known as Auv
pen has quit []
d4nku has joined #ruby
gnu_d has left #ruby [#ruby]
artm has joined #ruby
yfeldblum has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
red_horned_rihno has joined #ruby
d4nku has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
josephndenton has quit [Ping timeout: 265 seconds]
St1gma has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
St1gma has joined #ruby
Jake232 has joined #ruby
d4nku has joined #ruby
procat has joined #ruby
dermothaughey has quit [Remote host closed the connection]
dermothaughey has joined #ruby
diegoviola has quit [Remote host closed the connection]
mathias2 has joined #ruby
procat has quit [Ping timeout: 240 seconds]
d4nku has quit [Ping timeout: 250 seconds]
dermothaughey has quit [Ping timeout: 255 seconds]
lolmaus has joined #ruby
d4nku has joined #ruby
Wolland has joined #ruby
mathias2 has quit [Ping timeout: 244 seconds]
lolmaus_ has joined #ruby
x1337807_ has joined #ruby
slawrence00 has joined #ruby
hamakn has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 258 seconds]
arup_r has joined #ruby
hamakn has joined #ruby
x1337807x has quit [Ping timeout: 265 seconds]
lolmaus has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 255 seconds]
vinleod has joined #ruby
lemur has quit [Remote host closed the connection]
BlackGear has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lemur has joined #ruby
red_horned_rihno has quit [Ping timeout: 255 seconds]
econerd4ever has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
FenixFyreX has quit [Quit: Page closed]
dseitz has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
arup_r has quit [Quit: Leaving.]
_saint has joined #ruby
lidaaa has quit [Ping timeout: 240 seconds]
<_saint> I'm not having much luck google searching; is there a way in pure ruby to correlate a partition to where its mounted?
<_saint> shelling out and parsing df feels...gross
jaequery has joined #ruby
arup_r has joined #ruby
spyderman4g63 has joined #ruby
rippa has joined #ruby
oculus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle_ has joined #ruby
chipotle has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 258 seconds]
armyriad has joined #ruby
<Hanmac> _saint: hm i dont think so, mostly because a partition might be mounted at different places at once
lemur has joined #ruby
KC9YDN has quit [Quit: Condenadme, no importa, la Historia me absolverá. - Fidel Castro]
<_saint> Hanmac: Hm..I suppose that makes sense
econerd4ever has quit [Remote host closed the connection]
<Hanmac> there is Pathname#mountpoint? but i dont think that might help you
econerd4ever has joined #ruby
<_saint> unfortunately not quite what I was looking for. I ended up just writing a method that shells out, parses df, and returns a hash of the stuff I want
<_saint> it's ugly, but meh. the code I'm writing is tom foolery anyways, nothing serious
ndrei has joined #ruby
hamakn has joined #ruby
econerd4ever has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
KC9YDN has joined #ruby
yfeldblu_ has joined #ruby
gmind has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
Unknown2 has joined #ruby
rkazak has joined #ruby
kireevco has quit [Quit: Leaving.]
gmas has quit [Ping timeout: 240 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
<godd2> _saint the lower the level you go, the less Ruby can offer a helping hand. Its the other direction in which Ruby shines
sinequanon has quit [Remote host closed the connection]
drakezhard has quit [Ping timeout: 246 seconds]
<_saint> godd2: true words. I should do some investigation into writing gems and maybe see if I can make something cool out of this need of mine
<_saint> or want, rather
rkazak has quit [Quit: Sleep.....ing....]
drakezhard_ has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
mathias2 has joined #ruby
fantazo has joined #ruby
josephndenton has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mathias2 has quit [Ping timeout: 264 seconds]
gmind has quit [Ping timeout: 258 seconds]
Wolland has joined #ruby
gmind has joined #ruby
lxsameer has joined #ruby
Wolland_ has quit [Ping timeout: 255 seconds]
gmind has left #ruby [#ruby]
jrc has joined #ruby
arup_r1 has joined #ruby
arup_r has quit [Ping timeout: 245 seconds]
<jrc> Does anyone know how to fix this: cannot load such file -- oauth (LoadError)
sandelius has joined #ruby
dkb20k has quit [Read error: Connection reset by peer]
dkb20k has joined #ruby
<godd2> jrc do you have the oauth gem installed?
<jrc> no and I'm not sure how to although I have rvm
<jrc> "rvm install oauth" or something?
<godd2> "gem install oauth" is how you install gems
unshadow has joined #ruby
<jrc> wow i was close. ok ty
unshadow has quit [Client Quit]
<godd2> I have a feeling this is for a rails app, so Ill offer you the advice that the #rubyonrails channel is more equipped to help with railsy stuff
chipotle has joined #ruby
Kricir has quit [Remote host closed the connection]
Xiti has quit [Quit: Xiti]
chipotle_ has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
nerium has joined #ruby
corehook has joined #ruby
nerium has quit [Client Quit]
fandi has quit [Read error: Connection reset by peer]
ARCADIVS has quit [Quit: ARCADIVS]
drakezhard_ is now known as drakezhard
fabrice31 has joined #ruby
unshadow has joined #ruby
<unshadow> I'm trying to test if an SSL server supports Client re-negotiation, how would I implement that in ruby ?
Xiti has joined #ruby
Channel6 has quit [Quit: Leaving]
<unshadow> much like the 'R' option in openssl s_client
andrewlio has joined #ruby
oo_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
drakezhard has left #ruby [#ruby]
adriancb has joined #ruby
ryao_ has quit [Changing host]
ryao_ has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
<sandelius> I've never used jruby. We have a big app (rails) that becoming a bit slow. Would JRuby help us out? We're using Puma as well.
adriancb has quit [Ping timeout: 264 seconds]
siso has joined #ruby
<sandelius> We do not need any java libraries though.
<godd2> sandelius the answer is that it's complicated. JRuby is faster than MRI for a lot of things, but dependencies become an issue and stuff might start to break in weird ways. Id say if your Rails app is slow, identify the slowest parts and aim to fix them at a design level.
Avahey has quit [Quit: Connection closed for inactivity]
sent-hil has joined #ruby
<sandelius> godd2 we cache almost everything and have identified slow queries etc. A few at the office want to switch over to Node but I'm not sure it's worth it. Would we really want to write only Javascript all day long? heck no!
poweratom_ has quit [Quit: Be back later ...]
BlackGear has quit [Quit: ZZZzzz…]
<godd2> well fork your main repo and try to run the app in a jruby environment.
govg has quit [Quit: leaving]
rshetty has joined #ruby
mikepack has quit [Remote host closed the connection]
<sandelius> godd2 yeah I'll need to do that. To bad that jruby start up is so slooooow. we have many tests :)
karmatr0n has quit [Remote host closed the connection]
sigurding has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
BlackGear has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
Techguy305 has joined #ruby
siso has quit [Read error: Connection reset by peer]
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
siso has joined #ruby
Techguy305 has quit [Client Quit]
<cajone> sandelius: your comment suggests that at some point your rails app was much faster than it is today, if the only thing that has really changed between these two events is the amount of data you are storing, then I can't see how changing the app launcher is going to let you scale much further, better as godd2 mentioned to hunt down the bottleneck. As for jruby this page might help with the start up cost https://github.com/jruby/j
Techguy305 has joined #ruby
apeiros_ has joined #ruby
procat has joined #ruby
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sandelius> cajone no the amount of load time have increased daramatically. The data size is udner control.
<godd2> load of what? the app itself?
<sandelius> number of visitors
fedexo has quit [Ping timeout: 250 seconds]
<cajone> sandelius: what are you using at the front end apache, nginx?
<shevy> bunnies
mathias2 has joined #ruby
<sandelius> nginx
<sandelius> + puma
ht__th has joined #ruby
funburn has quit [Quit: funburn]
procat has quit [Ping timeout: 255 seconds]
techsethi has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
apeiros_ has quit [Ping timeout: 272 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mathias2 has quit [Ping timeout: 256 seconds]
MSY has joined #ruby
MSY is now known as Guest22008
techsethi has joined #ruby
spyderman4g63 has joined #ruby
chipotle has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
chipotle has joined #ruby
magic_ has quit [Quit: Leaving]
Wolland_ has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
Cache_Money has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
max96at|off is now known as max96at
chipotle has quit [Client Quit]
chipotle has joined #ruby
<cajone> sandelius: maybe check your puma config file to see if you can squeeze a litte bit more out of it, then move up to nginx and check its config ( I know virtually nothing about nginx), this article although wriiten for heroku users might help with the puma config https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#rackup
mathias2 has joined #ruby
DogsAndCats has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 272 seconds]
jrc has quit [Quit: leaving]
felixjet has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
jack_rabbit has joined #ruby
rshetty has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
ChoiKyuSang has joined #ruby
omosoj has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
Techguy305 has quit [Ping timeout: 265 seconds]
DogsAndCatsAndMi has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
havenwood has quit [Remote host closed the connection]
DogsAndCats has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
alem0lar1 has quit [Read error: No route to host]
Jackneill has joined #ruby
alem0lar1 has joined #ruby
techsethi has quit [Ping timeout: 258 seconds]
Lingo has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
techsethi has joined #ruby
codecop has joined #ruby
rshetty has joined #ruby
anaeem1 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Cache_Money has joined #ruby
sinequanon has joined #ruby
jenrzzz has joined #ruby
iml has quit [Quit: sleep]
DogsOrCats has joined #ruby
<sandelius> cajonestill there?
<sandelius> cajone still there?
corehook has quit [Remote host closed the connection]
timonv_ has joined #ruby
<cajone> yep
<sandelius> will freezing objects save us some? or is there no performance gain in doing that?
sinequanon has quit [Ping timeout: 258 seconds]
DogsAndCatsAndMi has quit [Ping timeout: 250 seconds]
<cajone> sandelius: I don't know, sorry
<cajone> sandelius: did you check the number of workers and threads in your puma setup?
apoplexy has quit [Ping timeout: 265 seconds]
nilurie has joined #ruby
<unshadow> I'm trying to match something that has "()" in it, and using "\" to escape it wont seem to help: key_size = "(2048 bit)", key_size.match(/\((.*?)/\)).to_a[1]
pdtpatrick_ has quit [Quit: pdtpatrick_]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<unshadow> nm.... my stupid mistake the last "/" is misplaced...
<shevy> see
<shevy> ruby is so simple that people can figure their problems out on their own!
BlackGear has quit [Remote host closed the connection]
BlackGear has joined #ruby
jdj_dk has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
chipotle has quit [Ping timeout: 245 seconds]
yfeldblu_ has quit [Ping timeout: 250 seconds]
<unshadow> haha
BlackGear has quit [Remote host closed the connection]
Mia has joined #ruby
timonv_ has quit [Remote host closed the connection]
BlackGear has joined #ruby
jenrzzz has joined #ruby
duncannz has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
arup_r1 has quit [Quit: Leaving.]
Cache_Money has quit [Quit: Cache_Money]
lxsameer has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
apeiros_ has joined #ruby
unshadow has quit [Quit: leaving]
KC9YDN has quit [Quit: Condenadme, no importa, la Historia me absolverá. - Fidel Castro]
nilurie has quit [Quit: Lost terminal]
arup_r has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
bkutil has joined #ruby
tyll has quit [Ping timeout: 250 seconds]
tyll has joined #ruby
apeiros_ has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
Spami has quit [Quit: This computer has gone to sleep]
funburn has joined #ruby
kasperti_ has joined #ruby
artm has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
artm has joined #ruby
SCHAAP137 has joined #ruby
yfeldblu_ has joined #ruby
ghostlines has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
apeiros_ has quit [Remote host closed the connection]
Guest22008 has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Ping timeout: 255 seconds]
jheg has joined #ruby
jheg has quit [Client Quit]
apeiros_ has joined #ruby
rkjaer_ has quit [Quit: Connection closed for inactivity]
Darryl_ has quit [Quit: Connection closed for inactivity]
anaeem1 has joined #ruby
kumarat9pm has joined #ruby
weemsledeux has joined #ruby
anaeem1 has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lkba has quit [Ping timeout: 258 seconds]
sevenseacat has joined #ruby
Wolland has joined #ruby
DogsAndCatsAndMi has joined #ruby
Wolland__ has joined #ruby
Wolland__ has quit [Client Quit]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Wolland_ has quit [Ping timeout: 265 seconds]
DogsOrCats has quit [Ping timeout: 264 seconds]
Wolland has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
jenrzzz has joined #ruby
chipotle has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
chipotle has quit [Max SendQ exceeded]
kasperti_ has quit []
techsethi has quit [Quit: techsethi]
Unknown2 has quit [Quit: Leaving]
pandaant has joined #ruby
chipotle has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
Mateon1 has joined #ruby
kasperti_ has joined #ruby
einarj has joined #ruby
einarj_ has joined #ruby
procat has joined #ruby
kasperti_ has quit [Client Quit]
corehook has joined #ruby
rshetty has joined #ruby
arup_r has joined #ruby
spyderman4g63 has joined #ruby
corehook has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 250 seconds]
procat has quit [Ping timeout: 264 seconds]
chipotle has quit [Max SendQ exceeded]
mikecmpbll has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
claymore has quit [Ping timeout: 255 seconds]
KC9YDN has joined #ruby
claymore has joined #ruby
rshetty has quit [Remote host closed the connection]
Takle has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
davedev24_ has joined #ruby
corehook has joined #ruby
pchellovod has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
tyll has quit [Ping timeout: 244 seconds]
lxsameer has joined #ruby
nerium has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
tyll has joined #ruby
Takle has quit [Remote host closed the connection]
matcouto has joined #ruby
jack_rabbit has quit [Ping timeout: 255 seconds]
St_Marx has joined #ruby
St_Marx has quit [Remote host closed the connection]
apeiros has joined #ruby
timonv_ has joined #ruby
apeiros_ has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
olivier_bK has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
Morkel_ has joined #ruby
jenrzzz has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jdj_dk has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
ryao_ is now known as ryao
rshetty has joined #ruby
MrDoctor has joined #ruby
chipotle has quit [Max SendQ exceeded]
Xiti` has joined #ruby
oleo__ is now known as oleo
oleo has quit [Quit: Verlassend]
sheepman has joined #ruby
chipotle has joined #ruby
unshadow has joined #ruby
BlackGear has joined #ruby
despai has joined #ruby
Xiti has quit [Ping timeout: 240 seconds]
<unshadow> How can I initiate an TLS renegotiation using OpenSSL::SSL::SSLSocket ? (similar to openssl's s_client 'R' option)
Xeago has joined #ruby
chipotle has quit [Max SendQ exceeded]
apeiros has joined #ruby
AlexRussia_ is now known as AlexRussia
chipotle has joined #ruby
rshetty has quit [Remote host closed the connection]
poweratom_ has joined #ruby
jack_rabbit has joined #ruby
josephndenton has joined #ruby
moritzs has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
moritzs has quit [Max SendQ exceeded]
mikepack has joined #ruby
moritzs has joined #ruby
chipotle has quit [Client Quit]
moritzs has quit [Max SendQ exceeded]
oleo has joined #ruby
jheg has joined #ruby
moritzs has joined #ruby
moritzs has quit [Max SendQ exceeded]
poweratom_ has quit [Ping timeout: 264 seconds]
dj_zubehoer has joined #ruby
moritzs has joined #ruby
chipotle has joined #ruby
corehook has quit [Remote host closed the connection]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
artm has quit [Ping timeout: 244 seconds]
josephndenton has quit [Ping timeout: 244 seconds]
artm has joined #ruby
despai has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
AliRezaTaleghani has quit [Quit: Leaving.]
matcouto has joined #ruby
matcouto has quit [Client Quit]
matcouto has joined #ruby
Spami has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
koderok has joined #ruby
koderok has quit [Client Quit]
arup_r1 has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
Takle has joined #ruby
chipotle has quit [Max SendQ exceeded]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> with ruby's awful documentation in regards to openssl I don't think there is an easy way - perhaps if you know the underlying C API; I remember a japanese core dev guy added some methods to readline when I asked something a few years ago unshadow
chipotle has joined #ruby
nerium has quit [Quit: nerium]
fabrice31 has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
arup_r1 has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
arup_r has joined #ruby
sent-hil has quit [Quit: Connection closed for inactivity]
oleo has quit [Quit: Verlassend]
Jiye has joined #ruby
<Jiye> hello
arup_r has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
Fokki_ has joined #ruby
Jiye has quit [Client Quit]
_5kg has quit [Ping timeout: 255 seconds]
<wasamasa> these guys are the best
oo_ has joined #ruby
arup_r1 has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
despai has joined #ruby
sameerynho has joined #ruby
<unshadow> shevy: yeha... the OpenSSL wrapper is badly documented and is not complete, only now they added the ssl.options method to configure NO_OP, I'll try to talk the Core mailing list.
Hobogrammer has quit [Ping timeout: 240 seconds]
<unshadow> thanks
lxsameer has quit [Ping timeout: 264 seconds]
<shevy> ah
arup_r has quit [Ping timeout: 258 seconds]
<shevy> if you are sure that something is missing, just use https://bugs.ruby-lang.org/projects/ruby-trunk
<shevy> they'll look at that often
<shevy> or to tell them that the docu sucks haha ;)
<shevy> though for docu, it's also often that non-japanese guys add patches
dj_zubehoer has joined #ruby
luriv has joined #ruby
Beoran has quit [Ping timeout: 264 seconds]
wald0 has joined #ruby
<shevy> wow
<shevy> Hanmac, look at this bug: https://bugs.ruby-lang.org/issues/10518
<shevy> what do you say?
oo_ has quit [Ping timeout: 256 seconds]
siso has quit [Read error: Connection reset by peer]
kirun has joined #ruby
<Hanmac> shevy hm i dont know what that does happen, hm but for myself i do not care that much ;P
<shevy> hehe
<shevy> I find it interesting because the position of the input argument seems to matter
<shevy> or perhaps '#' is just special
<Hanmac> hm no its the -
St1gma has quit [Read error: Connection reset by peer]
<shevy> aha
St1gma has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
shredding has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<Hanmac> shevy as i commented " -#" is " " to "#"
gregoriokusowski has joined #ruby
Deele has joined #ruby
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
St1gma has quit [Read error: Connection reset by peer]
davidhq has joined #ruby
St1gma has joined #ruby
_5kg has joined #ruby
Beoran has joined #ruby
oo_ has quit [Read error: No route to host]
oo_ has joined #ruby
Lingos has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
<unshadow> shevy: opened ;) https://bugs.ruby-lang.org/issues/10519
<shevy> unshadow yay \o/
<shevy> one day ruby will have better documentation than PHP and python
<shevy> ah well
AlexRussia has quit [Ping timeout: 245 seconds]
<shevy> the python one is probably not thaaaaaaat much better: http://pythonhosted.org//pyOpenSSL/
oo_ has joined #ruby
gr33n7007h has joined #ruby
oo__ has joined #ruby
oo__ has quit [Read error: Connection reset by peer]
<unshadow> shevy: http://pythonhosted.org//pyOpenSSL/api/ssl.html#OpenSSL.SSL.Connection.renegotiate hahahahah
funburn has quit [Quit: funburn]
oo__ has joined #ruby
<shevy> documentation is the bane of the software world
atmosx has joined #ruby
spyderman4g63 has joined #ruby
<zacts> I <3 doc
oo_ has quit [Ping timeout: 264 seconds]
<zacts> <* <- a ruby
AlexRussia has joined #ruby
spyderman4g63 has quit [Ping timeout: 244 seconds]
vimer has joined #ruby
vimer has quit [Client Quit]
atmosx has quit [Quit: Lost in trance]
spider-mario has quit [Ping timeout: 264 seconds]
oo__ has quit [Remote host closed the connection]
atmosx has joined #ruby
oo_ has joined #ruby
ghostlines has joined #ruby
procat has joined #ruby
ghostlines has quit [Client Quit]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
oo_ has quit [Ping timeout: 255 seconds]
procat has quit [Ping timeout: 244 seconds]
deepy has quit [Ping timeout: 240 seconds]
corehook has joined #ruby
<unshadow> join security
<unshadow> ooops... thats what happen when you use irssi...
deepy has joined #ruby
nrsk has joined #ruby
deepy is now known as Guest7767
Guest7767 has quit [Changing host]
Guest7767 has joined #ruby
anaeem1 has joined #ruby
Guest7767 is now known as deepy
spider-mario has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
Juanchito has joined #ruby
divi has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
_5kg has joined #ruby
anaeem1 has quit [Ping timeout: 256 seconds]
corehook has joined #ruby
nerium has joined #ruby
Darryl_ has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
freerobby has joined #ruby
zacts has quit [Quit: leaving]
sameerynho has quit [Ping timeout: 244 seconds]
Takle has quit [Remote host closed the connection]
corehook has joined #ruby
techsethi has joined #ruby
chipotle has quit [Max SendQ exceeded]
jhc76 has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
chipotle has joined #ruby
sameerynho has joined #ruby
Trieste has quit [Quit: ZNC - http://znc.in]
corehook has quit [Ping timeout: 258 seconds]
hamakn has quit [Remote host closed the connection]
oo_ has joined #ruby
hamakn has joined #ruby
corehook has joined #ruby
Takle has joined #ruby
Trieste has joined #ruby
yfeldblum has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 250 seconds]
hamakn has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
oleo has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
chipotle_ has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
gregoriokusowski has quit [Quit: gregoriokusowski]
apeiros_ has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
agjacome has joined #ruby
atmosx has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
sigurding has quit [Quit: sigurding]
timonv_ has quit [Remote host closed the connection]
pchellovod has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
grisu has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
chipotle_ has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
zacts has joined #ruby
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
despai has joined #ruby
giuseppesolinas has joined #ruby
giuseppesolinas_ has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
giuseppesolinas has quit [Client Quit]
jdj_dk has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
JohnBat26 has joined #ruby
mugiwara has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
airdeluxe has joined #ruby
corehook has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
Techguy305 has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
despai has quit [Quit: This computer has gone to sleep]
oleo has quit [Ping timeout: 264 seconds]
oleo has joined #ruby
dj_zubehoer has quit [Remote host closed the connection]
thumpba has joined #ruby
dj_zubehoer has joined #ruby
dc_ has joined #ruby
KC9YDN has quit [Read error: Connection reset by peer]
jdj_dk has joined #ruby
rino57 has joined #ruby
rino57 has quit [Client Quit]
hamakn has joined #ruby
AlSquirrel has joined #ruby
tommylom1ykins is now known as tommylommykins
corehook has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
<wald0> def method_name(arg_list, *list_expr, &block_expr)
<wald0> what is exactly the 2 last parameters?
oo_ has joined #ruby
sameerynho has quit [Read error: Connection reset by peer]
<apeiros> *arg collects all remaining arguments
<apeiros> &block_arg converts the block passed to the method into a Proc instance
_5kg has joined #ruby
Alina-malina has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
St_Marx has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jenrzzz has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
nerium has quit [Ping timeout: 256 seconds]
<wald0> is there any "clear" example of how (why) i can use them ?
<wald0> so.. what they can be useful for?
dj_zubehoer has quit [Remote host closed the connection]
<Hanmac> wald0 & apeiros but block_expr can also be nil, not only instances of the class Proc
descala has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
spyderman4g63 has joined #ruby
<apeiros> >> class InvokeLater; def initialize(&call_me_maybe); @call_me_maybe = call_me_maybe; end; def call_me_now; @call_me_maybe.call; end; end; il = InvokeLater.new do puts "I got called!" end; puts "not yet"; il.call_me_now
<eval-in__> apeiros => not yet ... (https://eval.in/222186)
<apeiros> wald0: open the link for the full output
airdeluxe has quit [Ping timeout: 258 seconds]
<apeiros> as for *args - there are plenty of core methods using this feature. take e.g. attr_reader. you can do `attr_reader :foo1, :foo2, :foo3, …` - it takes an arbitrary number of arguments.
mugiwara has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
gjoooca has joined #ruby
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderman4g63 has quit [Ping timeout: 255 seconds]
<gjoooca> Hi, im trying to run rails server but im getting a syntax error (i think its because it is pointing to ruby1.8). i have installed the latest ruby, but how do i point it to the newest version?
weemsledeux has joined #ruby
Alina-malina has joined #ruby
haroldwu_ is now known as haroldwu
haroldwu has quit [Changing host]
haroldwu has joined #ruby
<corehook> re dudes
* wald0 thinks that eval.io should indent the one-liners codes automatically =_=
larissa has joined #ruby
<corehook> how in rubymine select all eq selected text
<corehook> like cmd+d in sublie
timonv_ has joined #ruby
silkfox has quit [Read error: Connection reset by peer]
<wald0> apeiros: much clearer when idented :) http://www.enlightenment.org/ss/e-5468b6685fde82.57664880.jpg
<apeiros> gjoooca: #rubyonrails
gmas has joined #ruby
<apeiros> gjoooca: generally gems point to the ruby version they've been installed with. but it depends completely on how you set your stuff up.
sevenseacat has quit [Remote host closed the connection]
silkfox has joined #ruby
pdtpatrick_ has joined #ruby
alem0lar1 has quit [Remote host closed the connection]
rbrs has joined #ruby
despai has joined #ruby
fantazo has quit [Ping timeout: 250 seconds]
<shevy> wald0 for instance if you wish to pass blocks from one method to another one
parzzix has quit [Remote host closed the connection]
<gjoooca> apeiros: i see. is there a way to tell?
benzrf|offline is now known as benzrf
<shevy> wald0 tell you what, implement your flexible GUI wrapper through Window.new Button.new etc... and try to make it as flexible as possible, including this syntax; Button.new { colour 'green' } or similar; once you do, you will quickly need all those things that seem to be advanced to you right now
<shevy> gjoooca does "gem env" show?
<shevy> I guess you are on a debian base
<shevy> they modify gem to default to some /var/lib directory
<shevy> I have no way how to easily change that to a saner prefix
<shevy> on my system it is:
<shevy> - GEM PATHS:
<shevy> - /usr/lib/ruby/gems/2.1.0
sameerynho has quit [Quit: Leaving]
<gjoooca> shevy: ah yes, under shell path i see /opt/ruby1.8/bin
<shevy> ack
<shevy> what an unusual path
ohcibi_ is now known as ohcibi
shredding has quit [Quit: shredding]
<gjoooca> hm so i need to point it to the current version instead right?
chipotle has joined #ruby
<shevy> where are your "ruby" binaries actually?
<shevy> one is at /opt/ruby1.8/bin/ruby I assume
despai has quit [Quit: This computer has gone to sleep]
<gjoooca> the newest version is in /usr/bin/ruby
sjohnsen has quit [Ping timeout: 260 seconds]
procat has joined #ruby
<shevy> ok so you have at least two?
<shevy> how many different instances of "gem" do you have
<gjoooca> yep
<gjoooca> shevy: hm im not quite sure how to check that
<shevy> well *gem*
<shevy> ls *gem* ? ;)
<shevy> locate gem
<gjoooca> oh haha
<wald0> shevy: yeah, i should start today! after to eat! (omg i sound like the procrastinator that im), im just finishing to review the ruby quickreferences & tutorials again... but as you see, is not easy to understand when you have not clear examples or you found "the problem yourself"
<shevy> if all else fail: find / -name gem
<shevy> and perhaps updatedb before the locate above
<shevy> wald0 yeah; the & syntax confused me a lot
<shevy> until I had to use it in one of my projects
<shevy> now it is ok
<shevy> I am of the monkey learning type
<shevy> monkey see, monkey do
Klumben has quit [Ping timeout: 272 seconds]
jimbach has joined #ruby
<gjoooca> well under ~/.gem there are directories for ruby1.8 and ruby2.1
claymore has quit [Quit: Leaving]
procat has quit [Ping timeout: 258 seconds]
<wald0> shevy: it sounds like to me like pointer referencing in C, it is more or less the same thing, right?
<shevy> naaaaah
<shevy> pointers are more difficult
<shevy> & simply is referring to the block
<wald0> more difficult? really ?? i found i tmuch more easier and im not a c programmer lol
<shevy> lol
jimbach has quit [Ping timeout: 258 seconds]
<wald0> the same GUI in C in much much more easy to understand than when linked on ruby
<shevy> well ruby has more syntax possibilities
<shevy> C is uniform
<apeiros> wald0: I guess "I'm not a C programmer" is the reason you thought pointers were easier :-p
<wald0> there's only 2 things about pointers: *p is what it points (value, indirection), and &p is the address or "where" it is, to use for reference a thing (not his value)
<wald0> iirc :)
Klumben has joined #ruby
jheg has quit [Quit: jheg]
<wald0> apeiros: maybe, but you cannot do much morphosis on c pointers, they has simple meanings, 2 different ways to use them (in short)
<shevy> well
<shevy> the & in C is used and the & in ruby is used
<shevy> so your brain connects a similarity there
<shevy> >> [1,2,3].map(&:to_s)
<eval-in__> shevy => ["1", "2", "3"] (https://eval.in/222187)
<shevy> wald0 ruby is quite complex
procat has joined #ruby
<apeiros> wald0: I completely agree. In theory, pointers sound like the simplest thing on earth. but overwhelming evidence shows us that many coders struggle hard with it :D
diegoviola has joined #ruby
ghostlines has joined #ruby
<wald0> apeiros: what i dont know is if that is because they simply dont understood it correctly or because is really hard in real world...
<wald0> or more probably: their code is a bunch of crappy spagguetti
<apeiros> *spaghetti ;-)
<wald0> apeiros: shevy: make a look to this code on C using this GUI, and then the equivalent -same- code for ruby: http://paste.debian.net/132003/ http://paste.debian.net/132006/
<wald0> see how pointers / data is passed... is much more readable in C for me than in ruby !
renderful has joined #ruby
<apeiros> wald0: uh, yeah, sure. comparing native code with a 1:1 wrapper in a foreign language makes sense…
<apeiros> not.
<wald0> or if you want to see the same version in a more ruby-language wrapper that the author of this ffi did: http://paste.debian.net/132005/
<wald0> (but i dont know which one is more clear in the end, if native or wrapped)
<apeiros> that one still exposes native FFI
<apeiros> proper ruby dsl
renderful has quit [Ping timeout: 244 seconds]
agjacome has quit [Quit: leaving]
artm has quit [Ping timeout: 258 seconds]
agjacome has joined #ruby
sjohnsen has joined #ruby
Levic has joined #ruby
Levic has quit [Client Quit]
comma8 has quit [Ping timeout: 272 seconds]
timonv_ has quit [Ping timeout: 256 seconds]
<wald0> nah, i dont like shoes
<wald0> i want to use this one :)
<wald0> mmh, everytime i look at the C version i ask myself if would be not simply better (easier) to just do my gui's in c lol
unshadow has quit [Quit: leaving]
<apeiros> wald0: if you insist on using native stuff, that's probably indeed better
<apeiros> there's no point in coding C in ruby.
<wald0> but you see, in ruby you can do things much faster with all the features in a shot, most of things that you want to do in c is like... how hell i could do that?
jenrzzz has joined #ruby
<wald0> apeiros: the point is that i want to use these GUI in ruby coding :)
shredding has joined #ruby
<wald0> i want to code ruby gui apps, using this type of gui
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MrDoctor_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
MrDoctor has quit [Ping timeout: 250 seconds]
<shevy> wald0 it's not good to make 1:1 translations; this is how ncurses was written and then removed
<shevy> in ruby
comma8 has joined #ruby
<shevy> wald0 I find the shoes API ugly, too many do/ends now. But one block towards Button.new {} is not bad or?
<apeiros> wald0: you can write your GUI in native C and hook against it
cashnguns has joined #ruby
<apeiros> alternatively you can embed ruby in your native C app
thumpba has quit [Remote host closed the connection]
cashnguns has quit [Remote host closed the connection]
<shevy> wald0 in native ruby you can simplify a lot of stuff:
<shevy> static char *_item_label_get(void *data, Evas_Object *obj, const char *part)
<shevy> data I assume will become an implicited @ivar
<shevy> const char is probably the input string you wish the label to have or something
MrDoctor2 has joined #ruby
<shevy> things like Evas_Object *win; and Evas_Object *list don't have to be used
shredding has quit [Read error: Connection reset by peer]
<shevy> what is that? ELM_MAIN() a function macro?
<wald0> apeiros: how "hook against it" ? i think that this is a part of ruby that i have not checked yet
arup_r1 has quit [Quit: Leaving.]
<apeiros> wald0: the same way you build a native gem
<apeiros> see README.EXT in ruby source
fabrice31 has joined #ruby
<wald0> shevy: not sure about your blocks suggest (idk at all :)), so for example i would like to have a "linear code" (process linearly), so in one moment I want to add a button with a text, but in another moment on the code i want to calculate something in ruby and update the text of that button (i should be probably out of htat block)
<shevy> wald0 yes
<shevy> wald0 more than one way - but all ways eventually do the same thing
MrDoctor_ has quit [Ping timeout: 240 seconds]
<wald0> yes shevy, a function macro: #define ELM_MAIN() int main(int argc, char **argv) { int ret; _elm_startup_time = ecore_time_unix_get(); elm_init(argc, argv); ret = elm_main(argc, argv); elm_shutdown(); return ret; } /**< macro to be used after the elm_main() function */
<wald0> shevy: all ways do the same thing... if you dont feel "blocked" because you cannot do something because of hte limitation (workflow limitation) of the api/framework/lib/code
<shevy> well then extend the code!
dangerousdave has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
VBlizzard has joined #ruby
diegoviola has quit [Quit: WeeChat 1.0.1]
Blizzy has quit [Ping timeout: 255 seconds]
* wald0 uses shevy hands
<shevy> man I did not wash them
* wald0 go to search his "bad" keyboard..
shredding has joined #ruby
DogsAndCatsAndMi has quit [Quit: Leaving]
jheg has joined #ruby
jheg has quit [Client Quit]
yfeldblum has joined #ruby
Frank_Jameso has joined #ruby
phutchins has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
slawrence00 has joined #ruby
joast has joined #ruby
dkb20k has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
gmas has quit [Read error: No route to host]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
artm has joined #ruby
lkba has joined #ruby
aspiers has quit [Ping timeout: 255 seconds]
mark06 has joined #ruby
<mark06> what's an open-ended depencency?
corehook_ has joined #ruby
<wald0> idk how i ended on the page of rubymine but it looks pretty cool
benzrf is now known as benzrf|offline
Spami has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
nrsk has joined #ruby
<apeiros> mark06: probably something like ">= version"
<mark06> not limited to a max version, right? http://en.wiktionary.org/wiki/open-ended
davidhq has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
davidhq has joined #ruby
davidhq has quit [Client Quit]
davidhq has joined #ruby
thsig has joined #ruby
Eiam has joined #ruby
thsig_ has joined #ruby
sigurding has joined #ruby
hmsimha_ has quit [Ping timeout: 255 seconds]
chishiki has quit [Ping timeout: 244 seconds]
<wald0> what is the best pre-configured editor for vim ?
coderhs has joined #ruby
nateberkopec has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
thsig has quit [Ping timeout: 272 seconds]
<pontiki> waat??
<pontiki> vim *is* an editor
despai has joined #ruby
<shevy> vim is a drug for the brain
<pontiki> that's soma
<pontiki> but emacs has a mode for that
<shevy> I guess wald0 wanted to write something else :-)
<pontiki> a meta-editor
<wald0> oops, i meant ruby, not vim :)
<pontiki> are you trying to start a flame war?
<wald0> yeah, that vim drug make me thinking about vim instead of what i wanted to say lol
<shevy> wald0 well - the brain is the best way to write ruby
<pontiki> asking an irc channel what the "best editor" is.... goodness me
<wald0> pontiki: of course no, my favorite editor is vim, but im just checking which other editors exists for ruby, i mean, features for ruby
<pontiki> all of them do
Morkel has quit [Quit: Morkel]
<pontiki> except maybe notepad.exe
<shevy> wald0 I still use bluefish 1.0.7 - not because it is the best but because it does not get in my way and is more usable than geany; I have not used sublime seriously
<shevy> notepad.exe is great!
<wald0> the only problem (or good thing) of vim is that it is not pre-configured by default, so you will lack all the features unless you know them lol
econerd4ever has joined #ruby
<pontiki> but it doesn't have any features
<shevy> that's not a good thing wald0 - I gave up on vim because I was tired of enabling or disabling crap
<shevy> yeah, notepad.exe is just more a base
<shevy> not really good
<shevy> wald0 do you remember old winamp?
<wald0> shevy: since you have it good configured you should be happy, but having it good configured is a lot of time wasting
<shevy> nono
<wald0> yeah, old winamp!
<shevy> wald0 I did not have it good configured at all
<pontiki> not even well configured
Devr3d has joined #ruby
<shevy> I just copy pasted him without thinking!
<mark06> anyone uses ruby on windows? isn't gem's bin added to windows path?
dangerousdave has joined #ruby
mistermocha has joined #ruby
Devr3d has quit [Remote host closed the connection]
<shevy> wald0 I loved the snappy widgets of winamp
mistermocha has quit [Remote host closed the connection]
<shevy> if only all GUIs could be as modular like that, and all GUI components interchanged with one another freely
<pontiki> mark06: not by default, i think? i think rubyinstaller makes a start-up command that includes the libraries, though
<pontiki> i don't use windows, but i seem to recall that
procat has quit [Ping timeout: 240 seconds]
Techguy305 has quit [Ping timeout: 255 seconds]
<mark06> start-up command that includes the libraries????
<wald0> shevy: your last sentence says exactly what the gui's that i want to use are perfectly able to :)
artm has quit [Ping timeout: 240 seconds]
<mark06> gem install exegem
vimer has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<mark06> ./exegem => does not work on all platforms, great :-/
<mark06> *$ exegem
econerd4ever has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
timonv_ has joined #ruby
vimer has quit [Client Quit]
nateberkopec has quit [Quit: Leaving...]
<shevy> wald0 you have that in enlightenment?
<shevy> it would be nice if you could bring enlightenment to ruby
anaeem1 has joined #ruby
mathias2 has quit [Read error: Connection reset by peer]
mathias2 has joined #ruby
<wald0> shevy: yes, you can simply do any gui with these EFL libraries (enlightnement foundation libraries), which im using (trying to)
<wald0> shevy: they are brined, but im searching to use them more friendly :)
<shevy> aha
anaeem1 has quit [Remote host closed the connection]
<shevy> well, don't forget the examples
centrx has joined #ruby
<wald0> shevy: in fact, i remember an old audio player ported to efl + ruby years ago which used a winamp skin lol
<shevy> good examples are most important. I learned ruby-gnome primarily through the examples
<shevy> winamp was cool!
spyderman4g63 has joined #ruby
<shevy> I tried audacious recently but it simply isn't as fun to use
<shevy> there was the beep-media-player, later bmp/bmpx but it died
econerd4ever has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Remote host closed the connection]
weemsledeux has joined #ruby
tlarevo has joined #ruby
oo_ has joined #ruby
timonv_ has quit [Ping timeout: 264 seconds]
<wald0> shevy: audacious with the winamp skin?
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<wald0> shevy: i sent you something, i think
jenrzzz has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
spyderman4g63 has quit [Ping timeout: 265 seconds]
econerd4ever has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<shevy> hey
<shevy> that looksl ike winamp
iamjarvo has joined #ruby
kaspergr1bbe is now known as kaspergrubbe
<shevy> but where is ruby there?
<shevy> looks like C++ widgets
nfk has joined #ruby
oo_ has quit [Ping timeout: 256 seconds]
My_Hearing has joined #ruby
mugiwara has joined #ruby
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
<mugiwara> I was doing learn ruby the hard way, and learned gets.chomp which I can use to get user input
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wald0> shevy: it is a winamp skin ported to ruby + efl + xmms2 application
<wald0> shevy: so the full gui is ruby + efl
<wald0> well, efl
<shevy> mugiwara excellent. did you try it yourself in a .rb file yet?
<mugiwara> but then eventually we got to lesson 15 which has me open a file. We use $stdin.gets.chomp instead of gets.chomp, and the file breaks if don't include the $stdin. What changed??
<shevy> both must work mugiwara
<mugiwara> oh yes, I am using touch ex#.rb to create the file, then I open with Sublime Text 3 to work through it
<mugiwara> I have some experience programming so I'm blowing through it
davidhq has joined #ruby
<shevy> gets is a shortcut towards $stdin.gets; module Kernel has the gets method -> http://www.ruby-doc.org/core-2.1.5/Kernel.html#method-i-gets
<wald0> shevy: was just an example of: shevy> if only all GUIs could be as modular like that, and all GUI components interchanged with one another freely
<shevy> wald0 cool
jenrzzz has quit [Ping timeout: 255 seconds]
<mugiwara> ex15.rb:11:in `initialize': No such file or directory @ rb_sysopen - This is stuff I typed into a file. (Errno::ENOENT)
<mugiwara> from ex15.rb:11:in `open'
<mugiwara> from ex15.rb:11:in `<main>'
<shevy> mugiwara nope
<shevy> it will work
<mugiwara> Thats the error I get when I remove $stdin from "$stdin.gets.chomp"
<shevy> but the weird thing is
<shevy> you must use a method called initialize()
<shevy> so the code you said on IRC is not the code you run ;)
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<jhass> mugiwara: Please share your code on https://gist.github.com
mark06 has joined #ruby
<mark06> how to install a ruby gem globally in windows?
markit has joined #ruby
chishiki has joined #ruby
xeno|probs is now known as {xenomorph}
{xenomorph} has quit [Changing host]
{xenomorph} has joined #ruby
<markit> hi, usually there are regexp expert here, and I will never be... I've a string like 'cls-2a', but the prefix is optional, also the suffix, I would need to extract the numerical part starting from the end until reached the beginning of the string or a non numerical character
<markit> in this case, only '2'
shredding has quit [Quit: shredding]
<Mateon1> (?:\w+-)?(\d)\w
<mugiwara> shevy: I think I figured out the problem
{xenomorph} is now known as xenomorph
<shevy> mugiwara \o/
<mugiwara> shevy: I am using ARGV.first to get the name of the filename to open() the first time. When you do that, gets.chomp first tries to read from ARGV as opposed to standard input from user (learned here: http://stackoverflow.com/questions/10523536/whats-the-difference-between-gets-chomp-vs-stdin-gets-chomp)
<apeiros> markit: just \d+ ?
<markit> Mateon1: how can it use with ruby? let's say a = 'cls-2a', how can I set b = a elaborated_by_your_regexp?
<apeiros> gah
<apeiros> ah, no, right guy actually :D
<shevy> haha
<apeiros> s/guy/person/
<jhass> markit: best make a rubular.com with what you've tried so far and as many input examples as possible
<Mateon1> Not sure, I'm just the regex guy, not the ruby guy
<shevy> apeiros reads only the first char!
<shevy> oh damn 3 M ... Mateon1 ... mark06 ... mugiwara ...
shevy is now known as mhevy
<mhevy> hey guys
<mugiwara> LOL
<apeiros> shevy: I don't read. I'm using my irc-acquired mental abilities
<markit> jhass: interesting site, thanks
<jhass> mhevy: hey, do you know ARGF?
<mhevy> jhass I think I used it once or twice
<mhevy> argf.rb:e ARGF.read
<mhevy> haha :D
<apeiros> ARGF… the thing people actually use when they think they use $stdin (Kernel#gets)
<jhass> yeah, I always forget that too
<mhevy> I think I need some good use case for ARGF; ARGV was instantly obvious on the other hand
<markit> apeiros: would fail for "c3ls-2b", I need only the final '2'
<rpag_> i've never had a legitimate use case for ARGF
<mhevy> I don't like my nick...
* mhevy shevy
<mhevy> lol
mhevy is now known as shevy
nateberkopec has joined #ruby
<shevy> finally... my soul was restless before
<apeiros> markit: should make such things part of your description
<apeiros> Mateon1's solution then
<apeiros> probably with an added + to account for multiple digits
<jhass> shevy: ARGF allows you to have behavior similar to most coreutils, you can either pass a filename as first argument or just pipe input into it
<markit> apeiros: Mateon1 does not work even in my basic case
<shevy> hmm
<jhass> I think I still wish Kernel would delegate to $stdin instead of it
<Mateon1> Well, not exactly sure what you want, I'd like some more input strings and expected outputs
danijoo has quit [Quit: Leaving...]
drawingthesun has quit [Ping timeout: 264 seconds]
<markit> Mateon1: input cl3sl-2b -> 2
<jhass> markit: still waiting for your rubular link...
<apeiros> >> 'cls-2a'[/(?:\w+-)?(\d)\w/, 1]
<eval-in__> apeiros => "2" (https://eval.in/222196)
<apeiros> markit: sure does
<markit> Mateon1: or clsl-10 -> 10, or clsl-10whatever -> 10
yfeldblum has joined #ruby
<apeiros> want to deliver an actually proper description?
<shevy> haha :D
<apeiros> steps in solving your problem: 1. understand your problem, 2. be able to phrase it
<apeiros> step 3 almost comes free after that
<shevy> nono, keep on changing the requirement every time they get closer markit!
Mon_Ouie has quit [Ping timeout: 240 seconds]
<jhass> I think 1 and 2 are the same step in fact
<markit> apeiros: I've a random prefix, then a separator NOT numerical, then a number (the one I want to extract) then an optional suffix not numerical (tail)
<apeiros> jhass: I think 2 can help with 1
<shevy> yay! random prefix! I must remember that
<markit> shevy: lol, sorry
<jhass> I'd go as far and make it a requirement to 1
<apeiros> jhass: but for me, I reach step 1 almost always a lot earlier than step 2
<shevy> markit don't worry, now jhass and apeiros are discussing other things :-)
<shevy> markit do you know rubular.com?
<shevy> I use it to build more regexes
<apeiros> markit: well, adjust the quantifiers in Mateon1's regex to suit your needs
<apeiros> the base expression is correct
<jhass> you probably can come up with a well behaving solution if you're at 1, but I wouldn't claim I've truely understood something until I can explain it to somebody else
<markit> apeiros: I've tied in robular putting "(?:\w+-)?(\d)\w" and it selects my whole string
<shevy> who is king robular
<apeiros> maybe replace the \w for the prefix with [^-], then it allows for anything in the prefix
<markit> marahin: ups, sorry, misused it
xenomorph is now known as {xenomorph}
<apeiros> markit: yes. that's why he has a capturing group there
<jhass> markit: there's a "make permalink" button. Allows to share your stuff
<Mateon1> (?:\w+-)?(\d+)\w* This is all you need
<shevy> you folks are trading with regex solutions here!
<apeiros> jhass: I can solve lots of problems without ever trying to phrase them. and trying to phrase them often costs me a lot of additional effort. phrasing for me is similar as to "writing it on paper". language is an abstraction from my actual thought.
oculus has joined #ruby
<markit> match result I need is '2' only
<apeiros> Mateon1: I hold my breath for \w being insufficient ;-)
dseitz has joined #ruby
<apeiros> markit: capturing. group. google it.
<jhass> I agree that you don't need to be able to phrase it to sufficentially solve it, I just wouldn't call that having fully understood it yet
yfeldblum has quit [Ping timeout: 258 seconds]
<apeiros> or just use your eyes and take a look at that "Match groups" box below
oleo has quit [Quit: Verlassend]
<apeiros> jhass: touche. difficult to infer understanding from a correct solution.
<shevy> markit well then simply extend your second () match group
<shevy> oh you said 2
jlast has joined #ruby
<apeiros> but the "got it right" ratio is indicative of me indeed usually understanding the problem :)
<shevy> you already got that!
weemsledeux has joined #ruby
<jhass> markit: when I said "as many examles as possible" I meant it
mugiwara has quit []
despai has quit [Quit: This computer has gone to sleep]
jimbach has joined #ruby
timonv_ has joined #ruby
arup_r has joined #ruby
<shevy> examles
<shevy> :)
benzrf|offline is now known as benzrf
<shevy> markit have you solved it finally?
<arup_r> shevy: Take some rest Man!!
avrc has joined #ruby
<shevy> I am a ferret under a sugar rush
vimer has joined #ruby
vimer has quit [Client Quit]
<markit> shevy: maybe, I'm going to consider only the simple case with just one number there and hope to make it better in the future. Something like "cls-2b".gsub(/\d+/){|x|x.to_i+1} to increment the numerical part (that is what I really need)
<apeiros> oh glory
<shevy> hehehe
<markit> just hoping not having another number in the prefix
<apeiros> "let me describe something which is NOT my problem"
<shevy> I like him!
* apeiros sobs and walks away
<Hanmac> >> "cls-2b".gsub(/\d+/, &:succ)
<eval-in__> Hanmac => "cls-3b" (https://eval.in/222197)
jimbach has quit [Ping timeout: 258 seconds]
<shevy> lol
Eiam has joined #ruby
<shevy> Hanmac comes to the rescue
jlast has quit [Remote host closed the connection]
<Hanmac> begin old_code rescue hanmac; fix_code; end ;P
<markit> Hanmac: great indeed!
<mark06> why is gems replacing my exe with this thing? http://vpaste.net/OHSsh
jlast has joined #ruby
<markit> Hanmac: any idea if is easy do it only for the first number starting from the end? like "cl321-2b" -> "cl321-3b" ?
<shevy> mark06 sounds scary
<shevy> # The application 'repman' is installed as part of a gem, and
<shevy> what is repman
dc_ has quit [Remote host closed the connection]
dermothaughey has joined #ruby
Soda has joined #ruby
<markit> if capturing group is really needed is beyond my understanding (I'm in a hurry right now can't learn new stuff)
<Hanmac> markit: change the regexp:
<Hanmac> >> "cls321-2b".gsub(/-(\d+)/, &:succ)
<eval-in__> Hanmac => "cls321-3b" (https://eval.in/222198)
jlast_ has joined #ruby
<markit> Hanmac: thanks a lot, exactly what I was looking for!!!
<mark06> repman is the name of the gem
Nogbit has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<markit> apeiros: thanks for your patience and help, sorry if I was a pain
<apeiros> markit: s'ok. but learn from it.
<jhass> apeiros: didn't you listen? He's in a hurry, he can't learn
jlast has quit [Ping timeout: 258 seconds]
ValicekB has quit [Ping timeout: 256 seconds]
<apeiros> jhass: nope. I didn't listen. Didn't you listen? I walked away ;-)
<jhass> nope. I di... wait, I shouldn't start that loop
<markit> apeiros: I've a book to read about regexp, but I learn something, then I don't need regexp for a long time, then I urgently need a solution with them and I've almost forgot anything, and I have to start over... depressing
<apeiros> markit: I meant more about how to ask questions
<apeiros> or to present your problem
<apeiros> knowing how to get help is much more valuable than any individual technology knowledge
<shevy> time pressure makes markit dumber
<markit> apeiros: mmm what's wrong with my initial description? "I've a string like 'cls-2a', but the prefix is optional, also the suffix, I would need to extract the numerical part starting from the end until reached the beginning of the string or a non numerical character"
<apeiros> markit: read the backlog and check for all your additions to that description
<apeiros> and of course to your ultimate reveal of "extract" not actually being what you wanted to do.
maestrojed has joined #ruby
Guest1976 is now known as Snowstormer
Snowstormer has quit [Changing host]
Snowstormer has joined #ruby
<shevy> markit apeiros disapproves :(
<markit> apeiros: reading backlog seems fine to me, and about the "extract" not being what I wanted, is just because I never imagined that you could do an methematical operation with a regex, with extract I would have solved my problem in a different way so extract was all I needed
<apeiros> markit: google xy problem
<apeiros> !xy
grisu has quit [Ping timeout: 245 seconds]
<apeiros> actually, just use the above link
<markit> apeiros: I don't want to fight over this, but usually (and happens to me too), the helper does not read the request carefully :)
<markit> apeiros: in any case, you have been so helpful in the past that I just have to thank you once more :)
<apeiros> markit: I don't fight. I tell you you were going about this flat out wrong. I don't see a reason to discuss that point :)
DLSteve has joined #ruby
<apeiros> I tell you why I think so. and you can take it and improve or think "no, no, everything I did was fine". up to you.
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
grisu has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> markit tell apeiros that he is wrong :)))
<markit> apeiros: unfortunately I really have no time right now, what I say is that I don't find fault in my exposition of the problem, not because I think I'm perfect, but because my fist statement has all the needed info OMHO
<apeiros> shevy: I thought that's your job :-p
<shevy> naaaah
<shevy> I usually don't think a lot on IRC
henditan has joined #ruby
<markit> if you can point me on the exact problem, I will be happy, if you say "find yourself in the backlog" is pointless
gregoriokusowski has joined #ruby
<apeiros> markit: you're entitled to your personal echo-chamber. just don't be surprised if people don't always put up with it.
<shevy> hey
<shevy> all we had to do was call Hanmac
<markit> shevy: lol
<shevy> the next time we'll do this as the first solution!
<Hanmac> shevy what do you think i am? a Proc object? ;D
<shevy> usually Hanmac's code is unreadable to everyone but himself
<shevy> and he watches strange cartoon so he is very suspicious
<centrx> if he exists
<markit> apeiros: in any case, I'll have a look at XyProblem link, seems interesting (and being one that provides helps himself, I understand the matter better than you think I do ;P)
techsethi has quit [Quit: techsethi]
shredding has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
ValicekB has joined #ruby
<benzrf> 'xy problem' is one of those terms that makes you say "OH OTHER PPL HAVE NOTICED THAT AND GIVEN A NAME"
<benzrf> "yay"
<apeiros> benzrf: yupp
<benzrf> like tvtropes
<benzrf> im sure it has been said before, but c2 is like the tvtropes of computering
<shevy> benzrf, we speak different languages
<mark06> how to fix this? http://vpaste.net/O3hqI
<mark06> /usr/bin/repman: http://vpaste.net/OHSsh
St_Marx has quit [Ping timeout: 250 seconds]
<godd2> "The easiest way to get to the real problem is usually asking Why five times."
<apeiros> c2 is an excellent resource indeed
<apeiros> godd2: aaahaha
procat has joined #ruby
<apeiros> mark06: the second link is not the file the error mentions
maestrojed has quit [Quit: Computer has gone to sleep.]
dj_zubehoer has joined #ruby
St_Marx has joined #ruby
<mark06> apeiros: that one is the original I created http://vpaste.net/OsF2m
* mark06 confused
alem0lar1 has joined #ruby
timonv_ has quit [Remote host closed the connection]
delianides has joined #ruby
<jhass> what the hell is repman
<shevy> hehehe
<jhass> anyway, that file is run as ruby
<jhass> so it doesn't work
tier has joined #ruby
<mark06> yeah so what does it want me to put in that file? crazy, jhass!
fabrice31 has joined #ruby
<jhass> "it" shouldn't "want" you to put anything there
kidoz has joined #ruby
<jhass> if that file doesn't exists it's most likely an issue in whatever you're using
nateberkopec has quit [Quit: Leaving...]
<mark06> if that file doesn't exists???? it does?
<jhass> that file should be ruby
sjohnsen has quit [Ping timeout: 260 seconds]
kidoz has quit [Client Quit]
mary5030 has joined #ruby
<mark06> and what do I put there exactly? it's just a wrapper to repman.rb
kireevco has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
<jhass> why can't you make repman.rb that file?
<jhass> why do you need both?
<jhass> (2/5)
<mark06> I triebd but
<mark06> tried
alem0lar1 has quit [Quit: Lost terminal]
<mark06> as I explained above, the exe gets replaced by that auto generated exe
<jhass> and why is that an issue?
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
<shevy> I find that behaviour super odd mark06
thomasfedb has quit [Ping timeout: 260 seconds]
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
<mark06> jhass: I'm sorry?
<jhass> shevy: it ensures that the binaries of the latest version of that gem are run without having to rewrite the executable
<mark06> jhass: bin/foo ==> put *whatever* in here (as you suggest, put content of repman.rb)
<jhass> mark06: yes
psy_ has joined #ruby
Ulrike_Rayne has quit [Ping timeout: 244 seconds]
<mark06> jhass: result => bin/foo is REPLACED by an auto egenrated wrapper and the gem content IS LOST, sense?
<jhass> and why don't you do that?
<jhass> no
<mark06> omg
<jhass> the installed script is a wrapper that loads your actual bin/foo
<mark06> you want me to duplicate the gem in bin and lib then?
<jhass> no
ndrei has quit [Read error: Connection reset by peer]
shazaum has joined #ruby
yfeldblum has joined #ruby
<markit> apeiros: briefly back.. what is "c2" you mentioned?
mardek has joined #ruby
ctp has joined #ruby
divi has joined #ruby
delianides has quit []
jaequery has joined #ruby
thumpba has joined #ruby
sjohnsen has joined #ruby
wigirc has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
ptrrr has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
Lingos has quit [Quit: Be back later ...]
yfeldblum has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
fantazo has joined #ruby
_ixti_ has joined #ruby
thumpba has quit [Ping timeout: 272 seconds]
sigurding has quit [Quit: sigurding]
<mark06> jhass: easyoptions reads script comments in order to work
nateberkopec has joined #ruby
<godd2> benzrf what is c2?
St1gma has quit [Read error: Connection reset by peer]
ixti has quit [Ping timeout: 264 seconds]
<jhass> what's easyoptions?
<mark06> jhass: it's working oddly now, like the wrapper is the script and not the real script
dermothaughey has quit [Remote host closed the connection]
<jhass> mark06: did you read what the wrapper actually does?
<benzrf> godd2: the original wiki
St1gma has joined #ruby
<benzrf> the one that invented the name
<benzrf> iirc
<mark06> jhass: it's like sourcing, is that it?
dermothaughey has joined #ruby
<jhass> yeah, load is close
<benzrf> godd2: it isnt actually called c2, but when it was the only wiki it was just called "wiki"
<benzrf> and i dont think it ever really got a name beyond that
<benzrf> but you cant just say "wiki" or ppl will assume wikipedia
<benzrf> so c2 is common since it's on c2.com
pdtpatrick_ has quit [Ping timeout: 240 seconds]
<godd2> ah ok thank you
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<benzrf> actually i think it might be called wikiwikiweb
<benzrf> or maybe thats the software it runs on
<benzrf> godd2: warning: some of it is a bit dated
<benzrf> it's not terribly active these days
<mark06> jhass: I'm stuck then... I need the real script to detect that it's "sourced" and get access to the real one, is this possible?
<benzrf> not quite dead, just a bit sluggish
<jhass> mark06: __FILE__ will always refer to the current file
<mark06> jhass: so this line would be the problem? https://github.com/renatosilva/easyoptions/blob/master/easyoptions.rb#L108
dermothaughey has quit [Ping timeout: 240 seconds]
dj_zubehoer has quit [Remote host closed the connection]
<jhass> probably
<mark06> ok thanks
<mark06> jhass: not a solution
Hanmac has joined #ruby
<mark06> jhass: __FILE__ is easyoptions itself
<jhass> of course
<jhass> it's always the current file
<mark06> this crazy wrapper does this "sourcing" or whatever over repman.rb, which requires easyoptions
<mark06> I need $0 to refer to repman.rb not the wrapper
<mark06> or an equivalent solution
<jhass> easyoptions should allow to pass the target file for exactly this kind of issues
<jhass> it merely should default to $0
<jhass> not hardcode it
dj_zubeh_ has joined #ruby
<jhass> another reason is that $0 is changed after you run a regex
rshetty has quit [Remote host closed the connection]
<jhass> >> "foo" =~ /foo/; $0
<eval-in__> jhass => "/tmp/execpad-8254f15b029e/source-8254f15b029e" (https://eval.in/222199)
Channel6 has joined #ruby
<jhass> mmh
<wasamasa> eval-in__: .
<jhass> >> if "foo" =~ /foo/; $0; end
<eval-in__> jhass => "/tmp/execpad-912f65c46cb1/source-912f65c46cb1" (https://eval.in/222200)
<jhass> it's not anymore?
<rpag_> it never was
<wasamasa> I think eval-in__ is triggering bugs for me ._.
<rpag_> starts at $1
tlarevo has quit [Remote host closed the connection]
<jhass> weird, I was quite sure about that
<rpag_> >> if "foo" =~ /foo/; $1; end
<eval-in__> rpag_ => nil (https://eval.in/222201)
<apeiros> $1-$9 = captures
<apeiros> $& = full match
tlarevo has joined #ruby
<rpag_> ah captures
<apeiros> $~ = MatchData
<apeiros> and never remember which of $` and $' is before- and after- match
<godd2> $0 is the program being run
dkb20k has joined #ruby
<apeiros> yupp
Lingos_ has joined #ruby
fedexo has joined #ruby
pdtpatrick_ has joined #ruby
<wasamasa> >> 1 + 1
<eval-in__> wasamasa => 2 (https://eval.in/222202)
<wasamasa> yup, it's eval-in__'s fault
<jhass> I know why I avoid using globals at all as long as possible...
<wasamasa> eval-in__: bad bot
<rpag_> most global variables in ruby are horrible perlisms
<mark06> jhass: how am I supposed to pass any parameter in a 'require 'easyoptions''?
<mark06> jhass: ah, create objects.... non-go
<apeiros> you're not supposed to pass params in a require
* mark06 stuck
<mark06> apeiros: correct
<jhass> well, I guess I think easyoptions is a crappy idea
<jhass> the reading from comments part that is
skywritergr has joined #ruby
<jhass> and parsing ARGV on require is not much better
<mark06> I think this wrapper is crappier
dc_ has joined #ruby
rshetty has joined #ruby
<rpag_> generating code based off comments for option parsing, yeah, i'd prefer to write ruby
St1gma has quit [Read error: Connection reset by peer]
<mark06> rpag_: then you should not use easyoptions
<jhass> mark06: rbenv fully works with that kind of wrappers
<jhass> bundler lets you generates such wrappers
St1gma has joined #ruby
kyb3r_ has joined #ruby
<rpag_> i don't use easyoptions
<jhass> it's a common pratice, you should be able to deal with it
<mark06> rpag_: and you should not
parzzix has joined #ruby
<mark06> jhass: you should tell me more about it
shredding has quit [Quit: shredding]
<jhass> why?
dkb20k has quit [Ping timeout: 256 seconds]
St1gma has quit [Read error: Connection reset by peer]
iiinzg has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
<apeiros> somebody rediscovering that english is not a programming language?
rshetty has quit [Ping timeout: 256 seconds]
<wald0> shevy: apeiros, mmmh, what do you think about these 2 different ways to write on this supposed gui wrapper ?
Photism has joined #ruby
* wald0 brainstorming structure
<wald0> button_ok = add_button(win, icon: "OK", text: "Continue") # first param should be always the target, other args are optional
<wald0> # or better like this?
<wald0> win.button = button_add(icon: "OK", text: "Continue") # on this way we don't need to tell the target because we are inserting it ON the target in a Object-Oriented fashion
<apeiros> wald0: I think I don't want to reinvent what shoes already does.
tlarevo has quit [Ping timeout: 255 seconds]
<wald0> but /me will :)
<apeiros> that's fine. have fun.
<wald0> well, i would like to not needed to but..
<jhass> window.add_button
<wald0> unfortunately shoes is not an option
<shevy> wald0 well that is a hash yes?
<wald0> shevy: idk :)
<jhass> window.draw do hbox do cell do button "Cancel" end cell do button "Ok" end end end
<rpag_> what toolkit does shoes use?
spyderman4g63 has joined #ruby
rkazak_ has joined #ruby
* apeiros whispers "xml"
* apeiros runs away laughing maniacally
* wald0 runs after apeiros
<shevy> lol
* jhass installs glade on all machines
<mark06> solution for my problem is so simple, hahhahahaha
<shevy> yeah that's what you get with lots of cascading do/ends
<mark06> still no one was able to figure it out haha
<shevy> ruby cgi
<apeiros> tbh, I'm pondering using xml for widgets in a webframework
<wald0> shevy: what? xml ? :]
<shevy> html { head { body { }} }
<jhass> mark06: gonna share it?
momomomomo has joined #ruby
<wald0> shevy: this syntax looks really simple to use: http://code-monkey.de/pages/ruby-efl , which is hte old (ruby) efl where it is made that audio-player that i showed you, but im unable to compile it :/
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbrs has quit [Remote host closed the connection]
ducklobster has joined #ruby
lampd1 has joined #ruby
spyderman4g63 has quit [Ping timeout: 258 seconds]
chipotle has quit [Quit: cya]
<shevy> it does not compile?
<shevy> cool
jenrzzz has joined #ruby
<shevy> a ruby guy who is on #crux but not on #ruby
<rpag_> it's from 2004, i'm not surprised it doesn't compile
<shevy> haha
<shevy> before benzrf was born
<shevy> wald0 it is ANCIENT, 10 years is like a century
tier has quit [Remote host closed the connection]
Platini has quit [Remote host closed the connection]
chipotle has joined #ruby
Platini has joined #ruby
<wald0> shevy: that is :)
<wald0> but the syntax looks really good
<wald0> instead of use FFI this guy used its own C wrapper for ruby
<benzrf> shevy i am not 10
<benzrf> cripes
<shevy> dunno about the syntax
arup_r has quit [Ping timeout: 272 seconds]
<shevy> benzrf well a few years older
<pipework> wald0: It can look pretty good all day, but it's still ten years old and ruby has changed a lot. Feel free to try to make it work on your own, but any ruby that ran on is definitely EOL.
momomomomo has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<benzrf> shevy: "a few"
<godd2> yea benzrf is 12 and what is this
<shevy> wald0 I want my winamp!
<shevy> benzrf is a proud 14
<benzrf> shevy i will be legally an adult in less than a year
<benzrf> then u cannot call me a child anymore
<benzrf> or i'll sue you
St1gma has quit [Read error: Connection reset by peer]
<pipework> benzrf: In whose country/state?
<godd2> benzrf I know someone in the internet police. Ill help you catch him
<benzrf> pipework: freedomland
St1gma has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
<pipework> benzrf: Fuck Canada.
<benzrf> canada is ok as long as it doesnt get too big for its oots
<benzrf> *boots
<benzrf> how can you hate canada. it's so... inoffensive
kireevco has quit [Quit: Leaving.]
St1gma has quit [Read error: Connection reset by peer]
<Frank_Jameso> I dislike their overuse of the letter a. Give the other vowels a chance. They even make e sound like a.
<wald0> shevy: if you can make compile this code i can make you to work this winamp :)
<Frank_Jameso> It's all deeply rooted in their desire to be number one.
<shevy> wald0 but I don't know C!
St1gma has joined #ruby
<shevy> Frank_Jameso I thought they speak french
<wald0> well, actually the problem of compiling is in the rakefile shevy, not in the C part
<shevy> I hate rake
<wald0> cannot load such file -- rake/configuretask
<shevy> yes
<shevy> kill it with fire
<rpag_> what would you replace it with?
<shevy> anything
<Frank_Jameso> I can't deny that they're lovely people, I just wish they'd be a little bit more subtle about things.
* wald0 scratch his head: how to compile it then:?
<shevy> including make
<godd2> aww cmooon shevy, rake is fun!
<godd2> its like make, but its ruby!
St1gma has quit [Read error: Connection reset by peer]
<shevy> it doesn't work!
* wald0 agree, doesnt work
<shevy> :)
St1gma has joined #ruby
amystephen has joined #ruby
<shevy> and the author died
corehook_ has quit [Remote host closed the connection]
<shevy> though that had little to do with rake
<godd2> yes, jim weirich did pass, but the code lives on
<shevy> well
<shevy> is the code good?
corehook has joined #ruby
<shevy> wald0 why do you get that error
corehook has quit [Remote host closed the connection]
<godd2> doesnt have to be. the *idea* has to be good
<wald0> shevy: idk, download the git and run "rake" :)
<shevy> I don't know if the idea is good either
<shevy> k
<pipework> wald0: It probably won't work.
<shevy> wald0 what was the URL again for the git stuff there?
ghostlines has joined #ruby
<henditan> hi, pardon for asking. This code (http://pastie.org/9723409#4) prints "enter" message for 2 times. How to make it prints 1 time?
* wald0 see everyday more developers dying...
* wald0 feels old
<wald0> git clone git://code-monkey.de/ruby-ecore shevy
oculus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2> wald0: http://xkcd.com/493/
<jhass> henditan: please join #vagrant for Vagrant questions
oculus has joined #ruby
<shevy> rake aborted!
<shevy> ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
<shevy> wald0 so what now
momomomomo has joined #ruby
grisu has quit [Quit: Leaving.]
<henditan> jhass: thanks
<shevy> ok I replaced it
<shevy> cannot load such file -- rake/configuretask
<shevy> so what now wald0
arup_r has joined #ruby
{xenomorph} is now known as xenomorph
<shevy> if I get rid of that line
<shevy> I get: uninitialized constant Rake::ConfigureTask
<shevy> why is require 'rake' not enough?
<shevy> require "rake/packagetask" require "rake/contrib/compositepublisher" require "rake/contrib/sshpublisher"
<shevy> and more... man that sucks
Xiti` has quit [Quit: Xiti`]
atomical has quit [Ping timeout: 258 seconds]
Xiti has joined #ruby
<shevy> wald0 I have an idea - ruby-gnome solves this
yfeldblum has joined #ruby
<wald0> godd2: didn't gotcha xkcd
Lingos_ has quit [Quit: Be back later ...]
<shevy> wald0 they also use a Rakefile: http://pastie.org/9723470
<godd2> That didn't words to me
dj_zubeh_ has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
<wald0> shevy: nope, you cannot do that audio-player of the video with gnome :P
<mark06> how's that possible 5 downloads? I *just* pushed it :-/ https://rubygems.org/gems/repman
<shevy> mark06 bots and scripts
<shevy> and perhaps godd2 sneakily downloading while you were not looking
<godd2> I have an autoit script that presses F5 for me
ramfjord has joined #ruby
<wald0> funnily... there's gems for EVERYTHING, except for gui's
<wald0> ok ok... there's for guis... not for DECENT guis
<wald0> and in any case, all of these availalbe gui's are used by, let's say, -1 amount of ppl
arup_r has quit [Ping timeout: 265 seconds]
St1gma has quit [Read error: Connection reset by peer]
<rpag_> ruby isn't a popular choice for GUI applications
<rpag_> distribution isn't straight forward
St1gma has joined #ruby
<godd2> Is there a gem for complaining about how many gems there are?
<wald0> so why i found ruby a really good language which is almost-only used for web ?
<wald0> damn stupid world
<shevy> well I would use ruby-gnome
<wald0> ruled by enterprises that just want frikkin webs and nothing more
yfeldblum has quit [Ping timeout: 256 seconds]
<shevy> the problem is, everything is too much work
momomomomo has joined #ruby
<shevy> the web UIs are not bad at all
<shevy> they are one reason why the GUIs got owned
<shevy> like fxruby dying
dermothaughey has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<shevy> is this winamp again?
<rpag_> ironruby, macruby, rubymotion, probably the best you'll get for GUI development & ruby. ironruby&macruby are dead, so that leaves rubymotion
dermothaughey has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
<pipework> You can also use gtk and QT with ruby.
<wald0> yes, winamp skin in that ruby GUI wrapper
<shevy> I think I could do the rectangular buttons and the slider
<pipework> And ostensibly wekit.
<shevy> the side-popups ... no idea how to do that
<pipework> webkit
<rpag_> pipework, yeah you can, but distribution isn't that easy
<pipework> rpag_: So?
<godd2> I use gosu exclusively for ruby gui development
chrishough has joined #ruby
chrishough has quit [Client Quit]
<pipework> Package it all together if you want. Ship that large package!
<rpag_> pipework, so it never takes off
<shevy> godd2 did you write a game in it yet?
jimbach has joined #ruby
<wald0> shevy: nah, web UIs are crap, well, the WEB technology is crap, if GUIs are owned is only because the single-interest/purpose of enterprises is the damn publicity, "I want a web to show my enterprise" and a payment system for sell
<pipework> rpag_: Not really. I mean, sure as a project people will use in their projects? Probably not, but for some determined individuals or companies, yes
<wald0> GUIs are not network-reachable
<pipework> Shoes is also a good usable project.
<wald0> thats the only reason
<godd2> shevy lol actually yes. its a little evolution simulation with tanks that kill each other https://github.com/nicklink483/combat
<pipework> wald0: What makes you think that?
<shevy> godd2 cool
<wald0> pipework: capitalism
<pipework> GUIs don't preclude the ability to use sockets.
<pipework> wald0: You haven't heard of the GTK web project, have you?
<rpag_> pipework, it doesn't seem to work that way - i don't know anyone writing commercial applications in Qt/Gtk&ruby.
<pipework> rpag_: so because they're outside your observation, they don't exist?
oculus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rpag_> pipework, no, could exist, but ruby is most popular as a web language
<pipework> rpag_: So?
Lingos_ has joined #ruby
corehook has joined #ruby
<rpag_> just because they could exist doesn't make it popular :)
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rpag_> or even common
mobiGeek has joined #ruby
LudicrousMango has joined #ruby
<pipework> If we're talking about popularity contests, why didn't you mention shoes and gosu?
<pipework> rubymotion isn't even that popular.
<shevy> shoes demands java!!!
<pipework> Shoes is lucky enough to get Java!
<momomomomo> poor shoes
chrishough has joined #ruby
spastorino has joined #ruby
<rpag_> i don't consider shoes or gosu to be used for anything but toys
red_horned_rihno has joined #ruby
<shevy> godd2 rpag_ does not take your tank game seriously :(
<rpag_> rubymotion lets you build OSX/iOS applications that you can ship in the appstore
nobitanobi has joined #ruby
<pipework> So we're talking about popularity contests, but only ones you consider serious?
jimbach has quit [Ping timeout: 264 seconds]
<pipework> That's quite an interesting thing to try and talk about with others.
mary5030 has quit [Remote host closed the connection]
<godd2> shevy oh that's alright, I don't take it seriously either :)
<rpag_> pipework, well it is my opinion that if you want to do GUI development ruby is probably the wrong choice
<pipework> rpag_: I'd agree.
<rpag_> it's fine for building toys
<wald0> pipework: yeah i know gtk
<godd2> rpag_ I prefer the term "prototypes"
<pipework> wald0: There's a web gtk project
<rpag_> godd2, sure
<pipework> Lately I've been of the opinion that I'd rather just build web stuff and wrap it into a webkit container.
<wald0> but i dont want web
<wald0> and i dont want gtk
<wald0> lol
LudicrousMango has quit [Remote host closed the connection]
<wald0> shevy: shoes requires java... are you serious?
<shevy> and we cant have enlightenment because it does not compile
<shevy> wald0 yes, shoes4 does; _why's shoes did not
weeb1e has quit [Ping timeout: 245 seconds]
weeb1e_ has joined #ruby
<pipework> wald0: Mmm, java.
<pipework> Well, it requires the JVM.
mobiGeek2 has joined #ruby
corehook has quit [Ping timeout: 258 seconds]
josephndenton has joined #ruby
mobiGeek has quit [Ping timeout: 250 seconds]
<shevy> wald0 let's be honest here - you are the only surviving ruby guy that uses enlightenment as well!
<shevy> even Hanmac went to wxwidgets ...
<rpag_> did enlightment ever release?
<wald0> shevy: not started yet lol
<wald0> java required for make a gui... omfg
<shevy> rpag_ they have individual file releases more like; evas, eftl ... eina ... ecore ...
<godd2> Im not sure if you guys are talking about the philosophical concept of enlightenment or something else...
* wald0 commits suicide
* wald0 pushes to upstream
<rpag_> enlightment is/was a popular X11 window manager
<godd2> "lawnmowerman pushes" heeh puns
postmodern has joined #ruby
<wald0> shevy: well, there's 2 ports of efl for ruby... the last one is from 2007 and is very good but it doesnt compile (very clear syntax, ala ruby fashion)
<pipework> wald0: You do know that there's some pretty alright JVM libraries for all kinds of things, one of which is GUI development.
<wald0> the first one wokrs perfectly, but uses FFI which is complex to understand/use, so i want to mke a simpler wrapper
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wald0> rpag_: yeah, e17 was released the 21 of december of 2012... they waited for this date but the world didn't ended
<wald0> so they was forced to
dermothaughey has joined #ruby
vyorkin has joined #ruby
<wald0> pipework: JVM = java ? pleasae dont let me kill myself twice...
<wald0> ok let's say on this way: i want to make GUI apps that works on a 300 Mhz cpu machine
<benzrf> wald0: ruby probably wont run on that
<benzrf> ok maybe it will
<benzrf> idk
<pipework> wald0: You probably are lacking a lot of information about the JVM, but your apprehension is entertaining. :D
<benzrf> it is not... performant
<wald0> benzrf: it will if i use this gui binding, since it usees the C gui libraries directly which are very optimized :)
<pipework> You can use mruby if you want.
<wald0> so i want to use ruby just to make the overall code/process more easy to write than just use them in c
weaksauce has joined #ruby
vyorkin has quit [Client Quit]
<rpag_> wald0, the JVM stands for Java Virtual Machine, it is the virtual machine for Java but there are many languages who target the JVM these days. Clojure, Scala, to name two popular ones.
<pipework> wald0: Lua is also not the worst candidate for GUI development.
vyorkin has joined #ruby
<wald0> pipework: just googled it, jvm showed me a java keyword, so well...
<rpag_> oh, JRuby of course
<wald0> pipework: my 300 Mhz machine has 128 MB of ram
<pipework> wald0: Sounds like you don't like thinking much. :)
<wald0> can java run on 128 MB of ram ?
<pipework> rpag_: It's actually evolved to the point where it's a VM that has support for things that Java itself hadn't had specified.
<centrx> wald0, Java runs on the JVM, but the JVM can be used independently of Java
<momomomomo> java can run on smalll tiny machines
<momomomomo> well at least originally
vyorkin has quit [Client Quit]
dermothaughey has quit [Remote host closed the connection]
<wald0> apart of the "please go to the street and get some real life" feeling when you try to launch a java application and nothing appears...
<pipework> Java ran on mobile phones well before they were 'smart'
vyorkin has joined #ruby
<rpag_> pipework, yeah
<pipework> wald0: You're clearly unaware of client mode then.
<shevy> TIOBE says java is a cool #2 rank
vyorkin has quit [Client Quit]
<rpag_> shevy, Java is huge. it's a university language.
<wald0> pipework: "dont make me think" is a good ruby philosophy, otherwise why we simply not use assembler? :)
<momomomomo> shevy: tiobe is shite; and, java is only popular because it's taught in university
<shevy> wald0 I love that philosophy
<momomomomo> well, only soooo popular
<shevy> when I look at my own code, I don't want to think
<pipework> wald0: Because you have to think with any programming language, you just will probably suck no matter what you use.
Juanchito has quit [Quit: Connection closed for inactivity]
<pipework> FUD is a powerful tool for making decisions.
<shevy> I had to think a lot more with perl than with ruby
<wald0> pipework: yeah, thats why these cellphones has quad-cores with tons of GHz lol
<pipework> The JVM is the single most advanced VM.
<pipework> wald0: No, those phones were single core less than 1Ghz cpu.
<pipework> I get that you're being social, but I hope you're aware that you have zero clue about the subject.
<shevy> wow
<shevy> ##java has only 440 people
Lingo has quit [Quit: Be back later ...]
<wald0> pipework: well, since i dont like java i dont have much clue on it, thats for sure :) but in any of the cases is not an option for me
<shevy> we have twice that amount!
<wald0> as said, I want to make GUI apps that works on old ocmputers
<rpag_> shevy, that obviously means ruby is a better language :-)
<pipework> Yeah, I guess it's good to choose to not like something before you know very much about it. Saves time!
<wald0> if works on my 300 Mhz x 128 MB ram, then is a valid option :)
<shevy> rpag_ well I guess there is some bias
<shevy> probably many java coders never use IRC
<shevy> they have no time!
<shevy> their bosses took over for them
<shevy> salarymen
<mark06> thanks all
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
<shevy> what is there to like about java?
<shevy> ok
<shevy> the syntax
<pipework> The VM is nice.
artm has joined #ruby
<shevy> hehehe
<pipework> The language isn't really something I like.
<shevy> you always like to bring the VM
<wald0> shevy: the syntax is better than ruby ? o_O i found the ruby one very nice
<rpag_> it's an important point to bring up
<pipework> The VM is all that's not shit.
gsd has joined #ruby
<shevy> wald0 naaah... but really, java and ruby don't compete in very similar niches
Channel6 has quit [Quit: Leaving]
<wald0> VM is good when requires a ton of memory and is painfully slow ?
<shevy> in science, I saw some java apps
<pipework> You don't have to write Java to use the VM. Like you don't need to write ruby to use the rubinius VM (I don't know anyone who uses it though...)
<shevy> one image processing one; then xmipp too
<pipework> wald0: Ruby uses a ton of memory and is much slower than the JVM.
<rpag_> wald0, the startup cost of the JVM is slow and annoying but once it warms up the JVM can compete with C++
<shevy> relion used C++ - this is all software that does image processing on electron microscopy dataset
<benzrf> look at it this way
<pipework> cruby has a fast VM startup time, but it's a slow implementation compared to JRuby at runtime.
<wald0> pipework: you are going to push me to forget that ruby gui and use C :)
<benzrf> your physical machine takes n time to boot
<shevy> [insert benzrf's haskell praise here]
<benzrf> if a virtual machine can boot faster
<wald0> and if i do that, shevy will be unhappy
<benzrf> that's doing OK
<shevy> wald0 well
<pipework> wald0: I mean, it wouldn't matter to me very much at all. It's not like I think you're making informed decisions at this point. :)
<shevy> wald0 I think your path towards ruby+enlightenment will fail
<shevy> but!
<shevy> wald0 your path with ruby will succeed!
<wald0> lol
<pipework> Though I'm sure you'll have a good time talking to nerds awkwardly about the things you hate. That's always nice.
iml has joined #ruby
<shevy> pipework thinks he is not a nerd!
<wald0> well, i need to make a small gui app for next week and we picked ruby + gui
<pipework> shevy: I didn't say that. I said he'll talk to nerds about the things he hates.
<shevy> go for the web wald0
<pipework> Which, for one, he's doing.
ValicekB has quit [Ping timeout: 256 seconds]
<pipework> wald0: Just picked that out of a hat, did you?
iml has quit [Max SendQ exceeded]
<godd2> wald0 rest assured that even if whatever you're working on in ruby doesn't pan out, that afterwards you will have a better understanding of Ruby :)
<pipework> Next week it's Lua and wearables!
<shevy> we have mruby!
tier has joined #ruby
<shevy> it will replace lua one day!
<pipework> shevy: Probably not though.
gsd has quit [Client Quit]
<shevy> perhaps if matz codes faster!!!
<pipework> I mean, it'll certainly compete on the embedded market, I hope.
<shevy> and throws out 30% of the old features
dkb20k has joined #ruby
<shevy> so mruby will be faster
<shevy> it's the path to ruby 3.0
<wald0> pipework: we are going to use a pretty old computer to run that software, do you still think that we should use java ?
<wald0> also, java GUIs are the ugliest-ever thing that i have seen
<wald0> it remembers me to windows 3.11
<shevy> :)
<wald0> but on silver
<shevy> sometimes there are only java GUIs available
<wald0> or is blue?
<shevy> like xmipp
<shevy> I had to vpn connect and then use this on my laptop with 1 gig RAM
<pipework> shevy: Lua is multi-paradigm and really great. However, there are implementations that are optimized to be really super damn fast.
<shevy> on a sidenote - if you buy a laptop NEVER go below 4 gigs
<pipework> luajit.
shredding has joined #ruby
<shevy> is this lua with java
<momomomomo> what does luajit have to do with this
<pipework> shevy: Why would it be?
<shevy> dunno
<shevy> it has a j character
kesroesw1yth has quit [Quit: leaving]
<shevy> java ... jruby ... jvm ... do you see the pattern :>
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> shevy: jews?
<shevy> AHA!
<shevy> SO THAT IS WHY THEIR SERMONS ARE SO VERBOSE
<godd2> jit jsut stands for Just-In-Time, not necessarily jvm, no?
<wald0> shevy: btw, you didn't told me your feedback about the sytnax to use before
<shevy> all that public prayer void interface()
<momomomomo> yes godd2
<pipework> wald0: There are some beautiful gui applications on the JVM.
<wald0> button_ok = add_button(win, icon: "OK", text: "Continue") # first param should be always the target, other args are optional
<wald0> # or better like this?
<momomomomo> Anyhow back to GUI - you could use http://www.wxwidgets.org/
<wald0> win.button = button_add(icon: "OK", text: "Continue") # on this way we don't need to tell the target because we are inserting it ON the target in a Object-Oriented fashion
<shevy> wald0 well which one... the 1:1 clone?
<pipework> Though yes, it's not the default and they put effort into making the gui pretty.
<shevy> well you are using a hash
<momomomomo> which has bindings for ruby, lua, etc.
nobitanobi has quit [Remote host closed the connection]
<momomomomo> audacity uses wxwidgets
<wald0> shevy: my dreamy wrapper for that 1:1
<pipework> momomomomo: I don't mind wxwidgets myself.
<shevy> so that doesn't matter wald0 right? because we can check on all the keys inside the method anyway
<momomomomo> don't know how it fares on constrained systems, though
<shevy> but that is a hash wald0
<shevy> unless I am not seeing something else...
<shevy> what is this actually
<pipework> momomomomo: The link for ruby bindings to wxwidgets is dead.
<shevy> is this even valid syntax?
<wald0> shevy: yeah the idea is "if i have this parameter assigned on my function call, use/assign it, otherwise use defaultsr
<momomomomo> pipework: ^
tier has quit [Ping timeout: 255 seconds]
<shevy> aah you mean you invoke it like that
<shevy> win.button = button_add({ icon: "OK", text: "Continue" })
<pipework> momomomomo: Ah, neat. I'll look over it cursorily until there's some docs.
<shevy> something is weird
dkb20k has quit [Ping timeout: 264 seconds]
iml has joined #ruby
henditan has quit [Quit: Leaving]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> no wait, I think that is correct
<momomomomo> pipework: I just googled and it popped up - Hanmac is maintaining it
<shevy> def button_add(hash = {})
<shevy> wald0 ok
dermothaughey has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
<pipework> momomomomo: Yeah, I see that. Still going to wait a bit.
<shevy> wald0 so you check if your hash contains keys or not
iml has quit [Max SendQ exceeded]
ARCADIVS has joined #ruby
<pipework> God damn lua is so cool.
<shevy> wald0 :icon and :text must be Symbols
<wald0> or also: win.add_button(icon: "OK", text: "Continue")
<wald0> as somebody said before
<wald0> mmh
MattB2 has joined #ruby
<wald0> but on this way i don't have the "object button" that i can use later...
<wald0> or i have ?
<Hanmac> momomomomo: i am the only one doing it after wxRuby died a long and painful death ;P
<wald0> button = win.add_button(icon: "OK", text: "Continue") perhaps? mmh
<momomomomo> Hanmac: kudos to you
<momomomomo> you have my star
<pipework> shevy: One day you'll interact with a project on the JVM and it'll get stuck in your head. You'll want to touch it, to hold it in your hands, to feel its wants and needs. You'll fall in love, my friend, and that will be the beginning of the end for you. You won't survive, you won't pass Go or collect $200.
aspiers has joined #ruby
<shevy> it's too verbose for me
<pipework> shevy: The JVM?
<shevy> java
<pipework> shevy: You don't need to write java on the JVM.
<momomomomo> dope
<wald0> too much coffes makes your ideas unclear
<shevy> wald0 you can do EVERYTHING inside the block
<shevy> wald0 so if you initialized @button before, then sure enough it can work
<shevy> you can even somehow fake stuff inside a block
<shevy> and change ruby in regards to @ivar usage
<shevy> I saw that trick not long ago and I hated it, but it can be done!
<pipework> shevy: You can ruby on the JVM, have real threads that don't have a GVL, you can use non-ruby JVM libraries in a syntax that's not too unfamiliar to a rubyist.
<pipework> There's so much in that ecosystem.
<shevy> but I need to have java for that! :(
<pipework> shevy: No, you need the JVM.
<shevy> I liked java more when Sun was in control
<wald0> shevy: yeah but im concerned about if i can put everything needed on a block... let's say that if you click hte button you need a callback to a specific funciton to be run, or to change the text of the button later in the code when something elese is evaluated
<pipework> Use the open source VM then.
<momomomomo> pipework: you also have the jvm to manage
<pipework> momomomomo: Manage? There's so much tooling for that.
<momomomomo> lol
hesco1 has quit [Quit: WeeChat 0.4.2]
<shevy> wald0 why not? you can define the callback before or afterwards, as a proc object
<momomomomo> LOL
<pipework> You still have to manage your ruby VM as well, but you don't get as good management.
<momomomomo> or should I say, tweak
<godd2> >> class Dog; end; dog = Dog.new; dog.instance_variable_set(:@legs, 4); dog.instance_variable_get(:@legs)
<eval-in__> godd2 => 4 (https://eval.in/222233)
<pipework> So not being able to tweak ruby's VM as much is a feature?
<shevy> do dogs really have four legs
<momomomomo> pipework: just like not being able to tweak the golang gc is, yes
<momomomomo> sane defaults
<momomomomo> less research
<pipework> shevy: I believe they have six, two of which are in the ethereal plane.
<pipework> momomomomo: Less flexibility.
<shevy> cool
<godd2> shevy if they have 4 legs, how many arms do they have? logic
<shevy> 4
<momomomomo> two schools of thought on that
<momomomomo> simplicity vs complexity
<shevy> dogs are real monsters
<pipework> momomomomo: Go is pretty neat in itself, and it lends towards some pretty cool stuff.
<wald0> hum...
<pipework> However, ruby is far behind both the JVM and Go on these things.
<momomomomo> true that
<shevy> wald0 IT IS ALL POSSIBLE! STOP DESIGNING, START WRITING!
<pipework> Ruby being cruby, not JRuby.
<wald0> but "add button" is not an instance-variable, but a function call more exactly
jonahR has joined #ruby
<shevy> so where is the problem
<shevy> def add
<shevy> there you go!
<pipework> wald0: Method call.
ValicekB has joined #ruby
<momomomomo> ok anyhow, speaking of go, I have to write some curriculum
<pipework> Ruby has member functions which are called methods.
Jake232 has joined #ruby
fabrice31 has joined #ruby
<shevy> member function sounds very sophisticated :)
<pipework> shevy: Learn yourself a C
<shevy> doing so!
<wald0> shevy: i still dont know how to remove all the complexity and make everything automated, i dont want to rewrite ALL the functions of one-million-lines-long project library for ruby
<shevy> but it's so boring...
<pipework> So boring.
<pipework> wald0: I would suggest hiring someone else to do it for you.
<shevy> wald0 ok so now we know why they use FFI
bMalum has joined #ruby
Lingos_ has quit [Quit: Be back later ...]
<pipework> Makes all the complexity go away and things are automated in that you don't have to do anything.
dermothaughey has quit [Remote host closed the connection]
markit has quit []
<shevy> hehe
<momomomomo> how is C boring?
<momomomomo> read Programming in C by stephen kochan
<godd2> wald0 to make it automated for others, it will require writing some complex things
<shevy> C is super boring
<wald0> pipework: did you see the photo of the guy that says "i code for food" ? thats me :)
<momomomomo> :|
ramfjord has quit [Ping timeout: 264 seconds]
dermothaughey has joined #ruby
<benzrf> C is boringly terrifying
<shevy> if only I could write ruby code for valid C
<wald0> pipework: but yeah, for sure that would be the best opiton
<pipework> wald0: Ah very good of you to not include 'very well'
<jhass> shevy: crystal ;P
<momomomomo> For all of those who find C boring or intimidating, I highly recommend https://cs50.harvard.edu/
<momomomomo> Prof David Milan takes away the intimidation, and breaks down concepts while you leanr C
<shevy> omg
<shevy> there is steve ballmer
<wald0> shevy: yeah, that efl-ruby uses automated sed parsers for generate the ruby lib using ffi
x1337807x has joined #ruby
<shevy> what have you sent me into man
<momomomomo> I've been preaching that class for 3 years
<benzrf> C is boring while terrifying in the same way as hiding for 10 hours from a killer in a tiny closet
<shevy> his bald head stared at me
<momomomomo> shevy: only the most diverse intro to CS class in the world
<pipework> momomomomo: To learn? I don't know, the thing I don't like about writing C is that I have to slow my thoughts down from the get go to do things that a third generation programming language lets me put off until I need to optimize.
ndrei has quit [Quit: leaving]
<wald0> godd2: yeah, and my ruby-complexity level is at 2%
<momomomomo> half the attendees IRL are not cs majors
<momomomomo> pipework: I didn't say you should write C, I said it's not boring
jenrzzz has joined #ruby
<wald0> shevy: c is not boring: http://paste.debian.net/132003/
<momomomomo> or intimidating
<pipework> momomomomo: Learning it was quite boring as well.
jaequery has joined #ruby
<shevy> momomomomo ah I can't do that, I lack the time!
<momomomomo> welp, maybe with some cool structure as I pointed out in cs50 you might change your mind
nilurie has joined #ruby
<momomomomo> shevy: eh, to each their own
it0a has joined #ruby
<momomomomo> all the videos are there, you can do it at your own pace
<pipework> A lot of up front stuff before you get to the meat. Whereas with other languages I can often dig into interesting bits and work my way back to the particular bits
<momomomomo> even the tests, homework etc
<shevy> but there is steve ballmer there!
<benzrf> wald0: is that eOS
fabrice31 has quit [Ping timeout: 258 seconds]
<Mon_Ouie> Evas, etc. are the libraries used in E17 (https://www.enlightenment.org/?p=about/e17)
dermothaughey has quit [Ping timeout: 245 seconds]
<shevy> wald0 now Mon_Ouie woke up so you have an expert here :)
elemenopy has joined #ruby
<wald0> benzrf: what is eos ?
<pipework> Elemental OS.
<pipework> Gnu/Linux distro
<wald0> momomomomo: what is the relation with "steve ballmer" and something interesting in programming ? i dont see the relation at all
<wald0> was the site hacked?
<momomomomo> :|
<pipework> why do you ask that?
<momomomomo> he came ot the class to talk, presumably
jenrzzz has quit [Ping timeout: 258 seconds]
<pipework> Sorry, I think it's Elementary OS, maybe.
ndrei has joined #ruby
<wald0> Mon_Ouie: yes, EFL libraries, i want to use them in ruby to make gui apps
maestrojed has joined #ruby
<wald0> momomomomo: are you the author of this site ?
<pipework> The proper term is 'webmaster'.
<momomomomo> wald0: No, but I followed along with the class a while ago
<momomomomo> maybe 3-4 years
claymore has joined #ruby
<wald0> because if you are, you should remove all those videos from it
<momomomomo> wald0: great constructive feedback
<wald0> or nobody would take seriously this page
<momomomomo> go tell it to the site
<momomomomo> right, despite it being a Harvard intro to cs course
<momomomomo> nobody would ever take it seriously?
<wald0> momomomomo: well, you can think that im making fun but im serious :)
<momomomomo> like I said, go tell it to the people who manage the site
<momomomomo> I'm unaffiliated
<pipework> I think it's about time to suggest we stop feeding the poor troll. He might become overstimulated.
<wald0> there's not a sane brain in the world that can take anything serious that comes or has relation with this brainless-monkey scammer devil
<wald0> sorry for my sincere words
<wald0> and shevy is the first proof
JokerDoom has joined #ruby
<shevy> wald0 Mon_Ouie also wrote some GUI thing, I always forget the name of it though
lidaaa has joined #ruby
<Mon_Ouie> I never did write any GUI stuff (not in that sense at least), I wrote Ray but that's something very different
lkba has quit [Ping timeout: 265 seconds]
lkba has joined #ruby
* wald0 looking from near the Mon_Ouie picked attention to use efl in ruby...
rshetty has joined #ruby
mary5030 has joined #ruby
yfeldblum has joined #ruby
xenomorph is now known as {xenomorph}
amystephen has quit [Quit: amystephen]
{xenomorph} is now known as xenomorph
jonr22 has joined #ruby
elemenopy has quit [Remote host closed the connection]
nateberkopec has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
dermothaughey has joined #ruby
nilurie has quit [Quit: Lost terminal]
<shevy> ah yes Ray
mleung has joined #ruby
<shevy> wald0 there http://mon-ouie.github.io/projects/ray.html - you see a GUI element, all what is missing is click-events :-)
<shevy> wald0 ah but you can also get ideas about an API
bmichelsen has joined #ruby
<shevy> though, the simpler an API the better, really
silkfox has quit [Ping timeout: 265 seconds]
aspiers has quit [Ping timeout: 258 seconds]
<banister> Mon_Ouie you wrote pride
<banister> pryde*
sinequanon has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 245 seconds]
yfeldblu_ has joined #ruby
einarj_ has quit [Remote host closed the connection]
Lingos_ has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
shazaum has quit [Quit: This computer has gone to sleep]
sinequanon has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
chipotle has quit [Quit: cya]
josephndenton has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Remote host closed the connection]
<wald0> thats what i want, simpler api :)
yfeldblum has joined #ruby
<shevy> huh Mon_Ouie got scared off
SHyx0rmZ has joined #ruby
yfeldblu_ has joined #ruby
aspiers has joined #ruby
marcdel has quit [Ping timeout: 256 seconds]
procat has quit [Ping timeout: 264 seconds]
hiyosi has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
shredding has quit [Quit: shredding]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
St1gma has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
St1gma has joined #ruby
marr has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! ( www.adiirc.com]
dermothaughey has quit []
mary5030 has quit [Remote host closed the connection]
dermothaughey has joined #ruby
spyderman4g63 has joined #ruby
sigurding has joined #ruby
mleung has quit [Quit: mleung]
dkb20k has joined #ruby
Fokki_ has quit [Quit: Lingo: www.lingoirc.com]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wald0> ray seems to be very complex
<wald0> in terms of what Mon_Ouie did, not the syntax (which looks pretty simple and nice)
karmatr0n has joined #ruby
<wald0> i have see some books called "the hard way", what does this term exactly means?
<pipework> wald0: It's about cowboy brogramming and just getting the job, but requires thinking.
spyderman4g63 has quit [Ping timeout: 255 seconds]
skywritergr has quit [Quit: Textual IRC Client: www.textualapp.com]
Ulrike_Rayne has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
dkb20k has quit [Ping timeout: 256 seconds]
<godd2> brogramming; not sure if typo
Takle has joined #ruby
<wald0> mmmh, im not sure to have understood it, what means brograming and just getting the job ? "to make software that simply works but like a crap"? because this dont exactly match with my definition of "requires thinking" :/
ChoiKyuSang has joined #ruby
cleopatra has joined #ruby
<Frank_Jameso> I think there's a solid wall between thinking and understanding
<Frank_Jameso> and that's sort of where that definition lies
jonr22 has quit [Remote host closed the connection]
<mosez> got somebody good examples for plugin architectures of ruby cli apps?
<wald0> ah, i see, also checked the "the hard way philosophy" in their site :)
<pipework> godd2: nope
<wald0> mosez: i have see a book dedicated to cli apps, with lists of gems good to use fo rthat
<pipework> wald0: Brogramming doesn't relate to code quality.
<apeiros> goddamitfuckmyisp
<apeiros> sorry. needed a vent.
<mosez> wald0: sounds interesting
<mosez> the only real example i know is vagrant. but this is not really what i want because i dont want to build a fully dedicated bundler environment :(
Morkel has joined #ruby
iinzg has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
butblack has joined #ruby
AlexRussia is now known as Micro_AC_DC
apeiros has quit [Ping timeout: 240 seconds]
yfeldblu_ has quit [Quit: Leaving...]
einarj has joined #ruby
apeiros_ has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
<jhass> mosez: pry?
apeiros has joined #ruby
Lingo has joined #ruby
tier has joined #ruby
jenrzzz has joined #ruby
dermothaughey has quit [Remote host closed the connection]
<rpag_> sequel
einarj has quit [Ping timeout: 258 seconds]
matcouto has joined #ruby
<centrx> potato
<rpag_> turnip
dermothaughey has joined #ruby
Joufflu has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
dermothaughey has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
dermothaughey has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
etech0 has joined #ruby
despai has joined #ruby
diggy has joined #ruby
<godd2> That's vegetablewang!
clauswitt has joined #ruby
ChoiKyuSang has quit [Ping timeout: 245 seconds]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has quit [Quit: sigurding]
sem has joined #ruby
Hobogrammer has joined #ruby
jimbach has joined #ruby
jheg has joined #ruby
sem has quit [Client Quit]
diggy has quit [Client Quit]
ChoiKyuSang has joined #ruby
Cache_Money has joined #ruby
Ludicrou_ has joined #ruby
nobitanobi has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
sud0x has joined #ruby
<sud0x> hey all
<centrx> sudo ahoy
ringarin has joined #ruby
<mosez> i will take a look at the plugin system for sequel and pry
<sud0x> ahoy matey
<rpag_> what about potato and turnip?
<etech0> quick question...
<sud0x> trying to learn how to read from a file but apparently the replies I see from stack overflow seems rather long. Does ruby have a read method similar to python's readlines?
<godd2> File.readlines(filepath) ?
<rpag_> >> File.readlines '/etc/passwd'
<eval-in__> rpag_ => ["root:x:0:0:root:/root:/bin/bash\n", "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n", "bin:x:2:2:bin:/bin:/bin/sh\n", "sys:x:3:3:sys:/dev:/bin/sh\n", "sync:x:4:65534:sync:/bin:/bin/sync\n", "games:x:5:60:ga ... (https://eval.in/222254)
<etech0> I created a ruby file that contains a function, and want to test the function from the terminal. How do I do that?
<jhass> sud0x: File.readlines and File.foreach
<sud0x> ah sweet
<sud0x> thanks guys
<godd2> sud0x keep in mind that File.readlines takes in the whole file into memory at once
<jhass> etech0: irb -r./yourfile.rb
<etech0> does it need the ./ ?
<sud0x> thanks godd2
duncannz has joined #ruby
<jhass> etech0: the alternative would be irb -I. -ryourfile
<sud0x> what did you guys use to learn ruby? I usually look at the documentation and google as I go along but the documentation for ruby seems meh
<mosez> rpag_: turnip got a plugin system? and the links of potato gem are broken :)
<etech0> and how do I get it to test a specific function?
<jhass> etech0: that will give you a repl with the file loaded
<godd2> etech0 you can also load an rb into irb after youve started irb with load 'filename.rb' (assuming you started irb in the same directory youre loading from
<rpag_> mosez, no it doesn't was just joking
<etech0> cool
jleishman has joined #ruby
mark06 has joined #ruby
<etech0> load filename.rb is not working. could it be because there's a period on the filename?
silkfox has joined #ruby
whomp has joined #ruby
<mark06> 30 bots? lol https://rubygems.org/gems/repman
<godd2> etech0 did you put quotes around 'filename.rb'
<etech0> no
<etech0> i'll try that now
funburn has joined #ruby
<whomp> so i had to reinstall all of my homebrew binaries in a new spot, and now i'm getting an error message when i try to run gem. any ideas? https://gist.github.com/michaeleisel/5d4ecde4568de3c31864
<etech0> that worked. Thanks!!
<godd2> no prob. also, try jhass version at least once so that you can say you did it
<ericwood> "To eliminate this warning, please install libyaml and reinstall your ruby.
<ericwood> I'd do what it says
<ericwood> brew install libyaml
<ericwood> or whatever the package name is
airdeluxe has joined #ruby
shazaum has joined #ruby
josephndenton has joined #ruby
<whomp> ericwood, good call ty
<ericwood> when in doubt read every bit of the stack trace
<ericwood> luckily for you this one was intelligent and knew what was wrong
pdtpatrick_ has quit [Quit: pdtpatrick_]
<sud0x> alright guys, here's my simple read files program
<sud0x> seems like it's not printing out the file contents though: https://gist.github.com/anonymous/cbdcefa42a591a02eb71
whomp has quit [Quit: leaving]
<sud0x> anyone see anything cwrong?
rkazak_ has quit [Quit: Sleep.....ing....]
Jackneill has quit [Remote host closed the connection]
rkazak has joined #ruby
<godd2> sud0x there is no block version of readlines
<sud0x> what do you mean godd2 ?
<mark06> sud0x: you want f.puts
<mark06> ah no
<ericwood> you probably want File.open('foo') { |file| puts file.read }
<godd2> sud0x you have do ... end. Thats for methods which expect a block
<ericwood> also you probably want to use a real XML parser
<godd2> File.readlines just returns an array of the lines
<mark06> sud0x: you want readlines.each
josephndenton has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
procat has joined #ruby
<ericwood> I forsee you regretting using readlines for this
<ericwood> since this is an XML file, check out Nokogiri
<sud0x> what i want to do eventually is get all the lines and search thru them for keywords
<godd2> so something like file_lines = File.readlines("filepathhere.whatever"); puts file_lines
<sud0x> or do it one by one
<sud0x> and manipulate it
<mark06> sud0x: nokogiri for an xml parser :)
<ericwood> manipulating XML document ==> use an XML parser
<ericwood> or suffer the consequences
<ericwood> (a world of unspeakable pain)
<sud0x> would it be a bad idea to just place a placeholder where i want to manipulate it?
butblack has left #ruby [#ruby]
<sud0x> and just replace the placeholder with the text that i want
<ericwood> you can match and replace in one fell swoop
<ericwood> are you doing a regex search?
<mark06> sud0x: it may be easier to use nokogiri for doing your search http://www.nokogiri.org/tutorials/searching_a_xml_html_document.html
<godd2> sud0x I mean, if your goal is to get your head around Ruby's file manipulation, then that's fine, but heed their warnings. If you're going to be doing xml parsing, don't reinvent the wheel
govg has joined #ruby
<sud0x> sounds good godd2
<sud0x> you guys are the pros
<sud0x> ill go with what you say
<sud0x> checking out nokogirl
<ericwood> woohoo
<ericwood> good work team
<godd2> nokogiri
<sud0x> lol
<Mateon1> centrx: Never say that.... You can't parse HTML with regex
<mark06> nokogirl lol
<sud0x> for the sakes of learning with this small app
<wald0> mosez: if you feel motivated to write a cli parser i need one :)
<sud0x> i still can't read anything within the xml file
<sud0x> in my program
oculus has joined #ruby
<godd2> I use nokogirl and Factorygiri
<centrx> I know, because the song of re̸gular exp​ression parsing will exti​nguish the voices of mor​tal man from the sp​here
Juanchito has joined #ruby
ramfjord has joined #ruby
poweratom_ has joined #ruby
akonring has joined #ruby
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
procat has quit [Ping timeout: 265 seconds]
decoponyo has quit [Quit: Leaving...]
<sud0x> I've tried both f.puts and puts f.read and i still don't see any output o.0
<sud0x> ruby isn't giving me any errors in ref. to the file though
<sud0x> so kinda curious
<jhass> what's your current code
<akonring> can anybody tell my why [echo "Astrid" | openssl dgst -sha1] and [Digest::SHA1.hexdigest 'Astrid'] does not output the same digest?
<ericwood> honestly when I use nokogiri I just do Nokogiri::XML.parse(File.open('foo').read)
procat has joined #ruby
<jhass> akonring: doesn't echo append a newline?
<wald0> mark06: that sounds good and they are pretty needed, i have see a few ones too, like troolop which i think that doesntt exists anymore (!)
<rpag_> echo appends a newline unless you use -n
Micro_AC_DC is now known as AlexRussia
<jhass> wald0: slop is quite popular
<wald0> mosez: was that one, check the two links that references at the start, they are pretty helpful
<godd2> sud0x readlines doesn't return a file object, it returns an array
<jhass> wald0: https://www.ruby-toolbox.com/categories/CLI_Option_Parsers and we're really not short of them
mardek has quit [Quit: Lost terminal]
<akonring> Thank you, rpag_
clauswitt has joined #ruby
<akonring> and thx jhass
nobitanobi has quit [Remote host closed the connection]
<sud0x> godd2, thanks. Guessing I'll need to do a for loop to go thru the contents
<wald0> ruby-slop - Simple DSL for gathering options and parsing the command lineOption
<wald0> what means dsl ?
<sud0x> I'll just learn how to use nokogirl
<godd2> sud0x idiomatic ruby is to do array.each
<jhass> sud0x: File.foreach takes a block, File.open takes a block and yields an IO object, File.read returns the contents as string
<jhass> File.readlines returns an array of strings
nobitano_ has joined #ruby
<jhass> IO#read returns a string
omosoj has joined #ruby
ZaRDaK has joined #ruby
<ericwood> just do File.open().read
<ericwood> and pass that into nokogiri
<jhass> ericwood: seriously?
<ericwood> sure
<jhass> you leak an FD that way
<ericwood> closing files is overrated
<jhass> and it's not even shorter than File.read
<jhass> ericwood: stop trolling please
<ericwood> I wasn't 100% trolling
<rpag_> File.read will close the FD for you, too
c0def00d has joined #ruby
<wald0> 403 packages in the old debian stable for ruby gems... thats a good number!
<jhass> ericwood: then stop bad advice
<c0def00d> Hi ppl. Can somebody give me a hand with a regexp I can’t get right :(? http://rubular.com/r/94RKcKSxjL
fantazo has quit [Ping timeout: 265 seconds]
<c0def00d> The middle segment in my example won’t match
<ericwood> File.open() { |f| Nokogiri::XML.parse(f.read) }
<ericwood> that will close the fd
<Mateon1> When you have regex questions ask in #regex, I help there if I can
fabrice31 has joined #ruby
dkb20k has joined #ruby
<jhass> Nokogiri::XML(File.read('foo.xml'))
<centrx> c0def00d, That regex looks really complicated. What are you trying to do?
oleo has joined #ruby
<sud0x> thanks guys
shredding has joined #ruby
jenrzzz has joined #ruby
<Mateon1> c0def00d: Oh, a match group is reset if it's captured more than once
nobitano_ has quit [Ping timeout: 245 seconds]
<godd2> centrx he's trying to parse that string with that regex, duhhh
<ericwood> might be worth throwing it into rubular.com with an example of the input
<Mateon1> c0def00d: Just get a regex that matches everything in between {} and split by "/"
<c0def00d> Mateon1: What do you mean by a match group is reset if it’s captured more than once .. :p
<centrx> yeah but like \A([^{}]*)(?:\{([^{}\/]*)(?:\/([^{}\/]*))+\})?([^{}]*)\z
<Mateon1> Uh, how do I explain this
<c0def00d> Mateon1: your idea sounds better!
<godd2> c0def00d be careful with "zero or more things that aren't blah"
St1gma has quit [Read error: Connection reset by peer]
<c0def00d> godds: why’s that?
pdtpatrick_ has joined #ruby
St1gma has joined #ruby
<godd2> its not very specific.
<c0def00d> godd2: what do you recommend to do instead?
<godd2> be more explicit about things youre trying to match, not the lack of things you arent trying to match
jleishman has quit [Quit: Be back later ...]
mathias2 has quit [Ping timeout: 255 seconds]
<Mateon1> c0def00d: When you have a capturing group and you quantify it with +, * or {n,m}, only the last text that group matched is captured
jleishman has joined #ruby
<Mateon1> If I have a regex /(\w)+/ and I match the text "abcxyz", only the "z" will be captured
<c0def00d> Mateon1: oh, did not know that!
fabrice31 has quit [Ping timeout: 255 seconds]
_JokerDoom has joined #ruby
dkb20k has quit [Ping timeout: 265 seconds]
jonr22 has quit [Remote host closed the connection]
delianides has joined #ruby
<c0def00d> Mateon1: I’ll follow your advice of spliting a simpler regexp, but just out of curiosity, I guess there is no way to match repeating capturing groups?
__JokerDoom has joined #ruby
JokerDoom has quit [Ping timeout: 255 seconds]
jleishman has quit [Ping timeout: 240 seconds]
<ericwood> I just realized I was using String#reverse instead of specifying the endianness of the Fixnum I was packing :|
<ericwood> >> [123].pack('s').reverse == [123].pack('s>')
<eval-in__> ericwood => true (https://eval.in/222257)
tier has quit [Remote host closed the connection]
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
bbloom has joined #ruby
_JokerDoom has quit [Ping timeout: 264 seconds]
<godd2> ericwood: fun with packing and unpacking: https://gist.github.com/nicklink483/89bbc83a5636617f4020
despai has quit [Quit: This computer has gone to sleep]
Photism has quit [Read error: Connection reset by peer]
<ericwood> pack hurts my brain sometimes
<ericwood> s/sometimes/most of the time
<ericwood> it's like regex for binary
Photism has joined #ruby
ptrrr has quit [Quit: ptrrr]
iamjarvo has joined #ruby
jonr22 has joined #ruby
Photism has quit [Read error: Connection reset by peer]
Lingos_ has quit [Quit: Be back later ...]
<ericwood> okay apparently ARM is bi-endian? didn't realize that was a thing
<godd2> no homo
Photism has joined #ruby
dangerousdave has joined #ruby
JBreit has joined #ruby
rshetty has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<ericwood> idk if my lib would work on ARM, which sucks because it's a good candidate for use on an rPi
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
aspiers has quit [Ping timeout: 272 seconds]
bMalum has quit [Quit: bMalum]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspiers has joined #ruby
sud0x has quit [Ping timeout: 246 seconds]
toertore has quit [Quit: This computer has gone to sleep]
Guest22008 has joined #ruby
rshetty has quit [Ping timeout: 264 seconds]
funburn has quit [Quit: funburn]
atmosx_ has joined #ruby
bMalum has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
pdtpatrick__ has joined #ruby
pdtpatrick_ has quit [Ping timeout: 240 seconds]
jheg has quit [Quit: jheg]
Cache_Money has quit [Quit: Cache_Money]
Photism has quit [Read error: Connection reset by peer]
tier has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
_saint has left #ruby ["WeeChat 0.3.8"]
JBreit has left #ruby ["Leaving"]
amystephen has joined #ruby
jonr22 has quit [Remote host closed the connection]
joeyjones has joined #ruby
elemenopy has joined #ruby
Lingos_ has joined #ruby
narcan has joined #ruby
dj_zubehoer has joined #ruby
tier has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 240 seconds]
Morkel has quit [Quit: Morkel]
atmosx_ has quit [Quit: Lost in trance]
Dreamer3 has quit [Ping timeout: 240 seconds]
jleishman has joined #ruby
Dreamer3__ has joined #ruby
reinaldob has joined #ruby
jleishman has quit [Client Quit]
ht__th has quit [Remote host closed the connection]
jonahR has quit []
delianides has quit [Remote host closed the connection]
siso has joined #ruby
dj_zubehoer has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
delianides has joined #ruby
byprdct has joined #ruby
Lingos_ has quit [Quit: Be back later ...]
gregoriokusowski has quit [Quit: gregoriokusowski]
hiyosi has quit [Ping timeout: 250 seconds]
shazaum has quit [Quit: This computer has gone to sleep]
shredding has quit [Quit: shredding]
goddamnit2 has joined #ruby
godd2 has quit [Disconnected by services]
gregoriokusowski has joined #ruby
goddamnit2 is now known as godd2
despai has joined #ruby
XX1 has joined #ruby
josephndenton has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
max96at is now known as max96at|off
crantron has joined #ruby
i8igmac has quit [Ping timeout: 250 seconds]
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elemenopy has quit []
poweratom_ has quit [Quit: Be back later ...]
ringarin has quit [Quit: Leaving]
spyderman4g63 has joined #ruby
P-NuT has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
<P-NuT> Hi all, how can I get the current date in epoch, then check the date 7 days prior in epoch?
<benzrf> they say that in rails you can say 7.days.ago
Photism has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 244 seconds]
Guest22008 has quit [Quit: This computer has gone to sleep]
andrewlio has quit [Quit: Leaving.]
shredding has joined #ruby
MSY has joined #ruby
MSY is now known as Guest50688
<shevy> yeah benzrf from Activerecord
dangerousdave has joined #ruby
spyderman4g63 has joined #ruby
ChoiKyuSang has quit [Ping timeout: 256 seconds]
Gadgetoid has quit [Ping timeout: 272 seconds]
mathias2 has joined #ruby
dkb20k has joined #ruby
parabolize has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
thsig_ has quit [Remote host closed the connection]
thsig has joined #ruby
nobitanobi has joined #ruby
adriancb has joined #ruby
apeiros has joined #ruby
artm has quit [Ping timeout: 250 seconds]
mathias2 has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
Guest50688 has quit [Quit: This computer has gone to sleep]
Gadgetoid has joined #ruby
dkb20k has quit [Ping timeout: 240 seconds]
<wald0> there's constructors in ruby (initialize), but what are the desconstructors?
Takle_ has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby
pdtpatrick__ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
arrubin has joined #ruby
thsig has quit [Ping timeout: 244 seconds]
<rpag_> doesn't have any
<rpag_> finalizer is the closest thing
sabroso has joined #ruby
<sabroso> Cuando sale la nueva version de railsinstaller?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
artm has joined #ruby
larissa has quit [Quit: Leaving]
<sabroso> When the new version comes out railsinstaller?
queequeg1 has quit [Ping timeout: 265 seconds]
codecop has quit [Remote host closed the connection]
queequeg1 has joined #ruby
<Hanmac> sabroso: #rubyonrails
tier has joined #ruby
akonring has quit [Ping timeout: 264 seconds]
dermothaughey has quit [Remote host closed the connection]
jimbach has joined #ruby
dermothaughey has joined #ruby
claymore has quit [Quit: Leaving]
delianides has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
dangerousdave has joined #ruby
oculus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shazaum has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
jdj_dk has quit [Remote host closed the connection]
despai has joined #ruby
kumarat9pm has quit [Ping timeout: 255 seconds]
diegoviola has joined #ruby
<Radar> sabroso: !when
<helpa> Calculating estimated date from all known knowledge... Best estimate: 2022-05-07 (or there abouts).
bMalum has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
dermothaughey has quit [Ping timeout: 258 seconds]
papal_ is now known as papal
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdj_dk has joined #ruby
weemsledeux has joined #ruby
<benzrf> !when
<helpa> Calculating estimated date from all known knowledge... Best estimate: 2041-05-15 (or there abouts).
<benzrf> ebin
weemsledeux has quit [Remote host closed the connection]
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
i8igmac has joined #ruby
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
NoNMaDDeN has joined #ruby
ferr has joined #ruby
mattstra_ has joined #ruby
wex13r has quit [Quit: end]
mattstra_ has quit [Max SendQ exceeded]
mattstra_ has joined #ruby
armyriad has quit [Ping timeout: 255 seconds]
P-NuT has quit [Quit: Leaving]
Naeblis has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
bricker`work has joined #ruby
<Naeblis> How can I do optional parameters in Ruby? I have method(foo=nil, bar=nil), and I want to pass either foo or bar at any time. But even when I call the method using named argument, (like method(bar="something"), it goes to the wrong value.
<Naeblis> wrong param*.
delianides has joined #ruby
mattstra_ has joined #ruby
<jhass> Naeblis: you already know how you do optional arguments, you're asking for named parameters there
<Naeblis> right
mattstra_ has quit [Max SendQ exceeded]
hmsimha_ has joined #ruby
<jhass> what you're currently doing is assigning the local variable bar in the method call and pass the result of that assignment as the first parameter
adriancb has quit [Remote host closed the connection]
mattstra_ has joined #ruby
<jhass> optional named parameters are defined with def method(foo: nil, bar: nil) and passed with method(foo: 'something')
Zesty has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<Naeblis> so I have to explicitly specify foo=nil in my method call to make it work?
<Naeblis> ah
<Naeblis> so the syntax is different
<shevy> atmosx you have the exam soon? :-)
armyriad has joined #ruby
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
NoNMaDDeN has quit [Ping timeout: 272 seconds]
mattstra_ has joined #ruby
<Naeblis> thanks jhass
adriancb has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<shevy> wow !when is useless
<shevy> !when
<helpa> Calculating estimated date from all known knowledge... Best estimate: 2027-11-28 (or there abouts).
<shevy> lol
jdj_dk has quit [Remote host closed the connection]
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
bricker`work has quit [Ping timeout: 240 seconds]
<godd2> !where
tier has quit [Remote host closed the connection]
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
engineered_acade has joined #ruby
kristofferR has joined #ruby
<godd2> Well it'll be a bit cold, but okay
St1gma has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
mattstra_ has joined #ruby
mugiwara has joined #ruby
St1gma has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<mugiwara> Hi folks, it's me again. I'm still powering through Learn Ruby The Hard Way - I'm on exercise 37 right now of 52(?)
<mugiwara> Ruby is a fun language.
nobitanobi has quit [Remote host closed the connection]
<banister> mugiwara great :)
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<wald0> rpag_: doesn't has any == nobody never needed it ?
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
fandi has joined #ruby
gjoooca has quit [Ping timeout: 246 seconds]
mattstra_ has joined #ruby
hiyosi has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
mattstra_ has joined #ruby
<rpag_> wald0, people have asked about it before but in a language that manages memory for you they're not thought of as needed
apeiros_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
<wald0> i assume that it doesn't hurt to have it just available, hum..
mattstra_ has quit [Max SendQ exceeded]
gregoriokusowski has quit [Quit: gregoriokusowski]
mattstra_ has joined #ruby
<godd2> wald0 well you can write c extensions for ruby and do low level stuff, but that's a different monster
<wald0> hum!
mattstra_ has quit [Max SendQ exceeded]
<wald0> oh, that looks good, thx :)
Lingos_ has joined #ruby
mattstra_ has joined #ruby
artm has quit [Ping timeout: 264 seconds]
mattstra_ has quit [Max SendQ exceeded]
despai has joined #ruby
<banister> rpag_ wald0 wht are you guys talking about? sounds interesting
hiyosi has quit [Ping timeout: 245 seconds]
<rpag_> wald0 was curious if ruby had deconstructors or not
mattstra_ has joined #ruby
<i8igmac> any one user sublime_text
mattstra_ has quit [Max SendQ exceeded]
Zesty has quit [Quit: Linkinus - http://linkinus.com]
<banister> oh haha
mattstra_ has joined #ruby
<banister> rpag_ wald0 i wrote a thing to give ruby true destructors but it's lol
dermothaughey has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<banister> __destruct__
<banister> it's called immediately as an object is killed
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
<i8igmac> i tried to install a ruby beautify
sinequanon has joined #ruby
<i8igmac> it dont weem to work
<rpag_> banister, hah cool
Lingos_ has quit [Ping timeout: 255 seconds]
mattstra_ has joined #ruby
siso has quit [Ping timeout: 272 seconds]
mattstra_ has quit [Max SendQ exceeded]
<jhass> i8igmac: there's an unofficial sublime text help channel at ##sublimetext
siso has joined #ruby
<i8igmac> ok
olivier_bK has quit [Ping timeout: 258 seconds]
mattstra_ has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
Soliah has quit [Quit: Soliah]
tier has joined #ruby
thsig_ has joined #ruby
AndyBotwin has joined #ruby
mattstra_ has joined #ruby
jonr22 has joined #ruby
mattstra_ has quit [Max SendQ exceeded]
Takle has joined #ruby
<i8igmac> Oh... that is sexy
<i8igmac> ruby beautify
bmichelsen has quit [Quit: ZZZzzz…]
<i8igmac> it was suggested by some one here to check it out
mattstra_ has joined #ruby
ramfjord has joined #ruby
<i8igmac> thanks love you guys
mattstra_ has quit [Max SendQ exceeded]
fabrice31 has joined #ruby
<i8igmac> i dont know what you guys call these things, IDE's ?
<wald0> godd2: im pretty confused, in the "running ruby in c" part it says "ruby code goes here", i tried to write a simple ruby line but it not worked (of course), it doesn't say anything about how to write your ruby code on there
<i8igmac> plugins for the text editor
mattstra_ has joined #ruby
dermothaughey has quit [Remote host closed the connection]
lawnchair has joined #ruby
<godd2> wald0 you have to compile it natively.
sinequanon has quit [Ping timeout: 255 seconds]
mattstra_ has quit [Max SendQ exceeded]
dermothaughey has joined #ruby
<wald0> banister: sounds good! you should request the official ruby to include it :)
<banister> wald0 nah :P
<wald0> godd2: gcc ? yeah, it didnt worked
mattstra_ has joined #ruby
<lawnchair> so this is kind of a chef+ruby issue but i figured someone here could maybe help... i'm having a bad dependency problem http://pastebin.com/raw.php?i=Zkef3drP i was wondering if someone could point me in the right direction
<wald0> banister: why not? is a must have
<banister> wald0 not really
mattstra_ has quit [Max SendQ exceeded]
<banister> i've never really needed it
<wald0> banister: think about using FFI on ruby, you should be able to free pointers/data but idk how much ruby can know how to deal that
<banister> wald0 yeah for C extensions it's somewhat important, but you can do that outside of a destructor in some special method
mikecmpbll has quit [Quit: ciao.]
mattstra_ has joined #ruby
mattstra_ has quit [Client Quit]
<banister> just ensure people kill their objects via a spcial method
<banister> wald0 or make use of blocks
AndyBotwin has quit [Quit: Leaving]
marcdel has quit []
<wald0> hum
fabrice31 has quit [Ping timeout: 240 seconds]
sabroso has quit [Quit: Page closed]
Nexus_x1 has joined #ruby
dermothaughey has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
<jhass> lawnchair: try writing a Gemfile with all your dependencies and then bundle exec that command
<lawnchair> hmm ok
<lawnchair> do you think i'm missing something?
thsig has joined #ruby
MSY has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
MSY is now known as Guest5645
funburn has joined #ruby
<jhass> lawnchair: you're trying to load incompatible versions of stuff, bundler might be able to resolve that
<lawnchair> ah i see
thsig_ has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
mathias2 has joined #ruby
dkb20k has joined #ruby
shredding has quit [Quit: shredding]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ludicrou_ has quit []
__JokerDoom has quit [Quit: Leaving]
rshetty has joined #ruby
ProfElm has joined #ruby
<lawnchair> hmm it says my bundle is complete but still having the same trouble :(((
gsd has joined #ruby
<jhass> do you use bundle exec?
<ProfElm> Hey guys, I have a question. I was wondering how I can create RSpec tests for non-namespaced ruby script files?
ndrei has quit [Ping timeout: 250 seconds]
<jhass> ProfElm: what are you struggling with?
mattstra_ has joined #ruby
<lawnchair> bundler: exec needs a command to run
<lawnchair> what's that mean?
<jhass> lawnchair: you invoked it without arguments
mathias2 has quit [Ping timeout: 250 seconds]
<jhass> lawnchair: bundle exec <the command that is failing>
<ProfElm> Just trying to trying to understand how to test running the script file. It is invoked from the command line using command line arguments. So I want RSpec to help in sending different command line args.
<godd2> ProfElm you don't need to refer to a module or class in a describe.
jenrzzz has quit [Ping timeout: 255 seconds]
<lawnchair> jhass, ah i see now. thank you.
jdj_dk has quit [Ping timeout: 258 seconds]
dkb20k has quit [Ping timeout: 244 seconds]
<godd2> ProfElm if you have the rspec gem installed, you should be able to run rspec -h in the command line
ndrei has joined #ruby
<ProfElm> Ok.
<jhass> ProfElm: there's aruba for behavioral tests of CLIs, it does include some stuff that can be useful for RSpec. I think I saw some gem with helpers for RSpec but I don't recall its name
neoxquick has quit [Read error: Connection reset by peer]
rshetty has quit [Ping timeout: 240 seconds]
<jhass> ProfElm: a common pattern is to make your CLI interface a class in lib/ with a bin/foo that's just require 'foo/cli' Foo::CLI.new(ARGV)
<jhass> that makes it trivial to test
fantazo has quit [Quit: Verlassend]
tier has quit [Remote host closed the connection]
<ProfElm> So in my bin/foo, have something like app.rb. Then have something like lib/foo/app.rb, which will have the actual command line stuff?
funburn has quit [Ping timeout: 264 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> no, don't nest in bin/
byprdct has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
<jhass> with a gem name of foo, you would have bin/foo that's require 'foo'; Foo::CLI.new(ARGV) or similar and a lib/foo/cli.rb that defines that
St1gma has quit [Read error: Connection reset by peer]
x1337807x has joined #ruby
St1gma has joined #ruby
<ProfElm> Oh nice.
<ProfElm> That makes perfect sense.
<jhass> with this technique it's good practice to write your stuff as a library and have your Foo::CLI do not much more than to parse command line args and then drive the library
<ProfElm> That's pretty much what I'm doign.
Xiti` has joined #ruby
<ProfElm> *aiming to do.
<ProfElm> jhass++
aspiers has quit [Ping timeout: 256 seconds]
Mateon1 has quit [Ping timeout: 255 seconds]
delianides has quit []
delianides has joined #ruby
bjornar has quit [Ping timeout: 245 seconds]
Xiti has quit [Ping timeout: 264 seconds]
akonring has joined #ruby
jonr22 has quit [Remote host closed the connection]
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
nkumari has joined #ruby
bjornar has joined #ruby
byprdct has joined #ruby
oo_ has joined #ruby
razieliyo has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
akonring has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
giuseppesolinas_ has quit [Quit: This computer has gone to sleep]
oo_ has quit [Ping timeout: 245 seconds]
Channel6 has joined #ruby
giuseppesolinas has joined #ruby
<wald0> ruby has a ton of small useful things like "foo".chomp, i wonder if there's a lib for C about "small usefullnesses" instead of deal with loops using str* libs
mattstra_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ZaRDaK> wald0, this lib is called c++ and stl
<wald0> heh, i cannot even read the C code of mruby in the chomp part because everything is ruby own functions =_=
shazaum has quit [Quit: This computer has gone to sleep]
<wald0> ZaRDaK: but for plain C there's no any one?
<ZaRDaK> wald0, haven't been using pure c
<ZaRDaK> wald0, afaik most of ppl roll out their own libs
<jhass> wald0: it's called Crystal :P
emmanuelux has joined #ruby
jdj_dk has joined #ruby
<wald0> > Is there a function in C like the PERL function "chomp?" > No, but fortunately it's fairly easy to do yourself: if (*str && str[strlen(str)-1]=='\n') str[strlen(str)-1]=0;
<wald0> hahaha omg
josephndenton has joined #ruby
mattstra_ has joined #ruby
<wald0> same readability as "foo".chomp
<benzrf> > "foo\n".chomp
<benzrf> >capitalizing perl
<benzrf> wald0: that's a memory leak
<benzrf> oh, wait
byprdct_ has joined #ruby
<benzrf> nvm
Spami has joined #ruby
<wald0> jhass: hum...... im pretty confused, i was thinking that crystal is a lib for c, then i see the syntax that is like ruby, so wtf it is ?
<jhass> wald0: it's its own language :P
<jhass> compiles to native code
<wald0> jhass: but it looks like ruby so why re-doing ruby ?
* wald0 scratch his head..
<jhass> it's statically typed, so it can be compiled to native code without embedding a runtime
byprdct has quit [Ping timeout: 258 seconds]
<jhass> it's already comparable to C performance in many aspects
St1gma has quit [Read error: Connection reset by peer]
mugiwara has quit [Remote host closed the connection]
<jhass> and has a super easy way of binding to C libraries ;)
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
St1gma has joined #ruby
josephndenton has quit [Ping timeout: 272 seconds]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<wald0> jhass: that was going to be my next question :), if i can use it like C how i can use c libs ?
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
emmanuelux has quit [Quit: emmanuelux]
Xeago has joined #ruby
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
zacts has quit [Quit: leaving]
jaequery has joined #ruby
jaequery has quit [Max SendQ exceeded]
<wald0> hum hum
hiyosi has joined #ruby
zacts has joined #ruby
<wald0> but then i cannot use the c libraries that i want in the same way / syntax that i want to use, heh, same problem
<wald0> so what i really need is a lib of "easinesses" like chomp, instead to write the long c line
<wald0> there's c libs for anything, i wonder if they take care enough to write one for easinesses (or they just moved to ruby lol)
Mohan has quit [Quit: leaving]
<jhass> I'm not sure I follow
bmichelsen has joined #ruby
<jhass> (why you want to write C syntax so badly that is)
nobitanobi has joined #ruby
jaequery has joined #ruby
reinaldob has quit [Remote host closed the connection]
oculus has joined #ruby
Guest5645 has quit [Quit: This computer has gone to sleep]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<wald0> jhass: so how is the performance comparison of a same application made in ruby and in crystal ? (so it should almost use the same code aparently)
neoxquick has joined #ruby
<jhass> well, crystal is a lot less dynamic than ruby when it comes to runtime code modification
agjacome has quit [Ping timeout: 244 seconds]
<jhass> being compiled and all
<wald0> jhass: because the "big gui lib" that i want to use is much cleaner on its original language (c) than ported to ruby in 1:1 (ffi), also it has a nice way to pass objects accross functions
<jhass> for a lot of stuff performance is comparable to C, ruby is just miles away but then a lot more flexible still
nkumari has quit [Remote host closed the connection]
<wald0> sounds very good in any case
<jhass> and I think it's clear that you want some glue code around something that has an API that is designed for C
<jhass> you want to hide that API in pretty much any other language
nkumari has joined #ruby
usrj has joined #ruby
karmatr0n has quit [Remote host closed the connection]
sirene has joined #ruby
marcdel has joined #ruby
aep has quit [Ping timeout: 245 seconds]
<jhass> as a simple example here's a libevent binding https://github.com/manastech/crystal/blob/master/libs/event/event.cr
<wald0> damn, this so simply-needed thing doesnt exists in C? wtf http://en.wikipedia.org/wiki/Comparison_of_programming_languages_%28string_functions%29#Contains
freerobby has quit [Quit: Leaving.]
delianides has quit [Remote host closed the connection]
xymbol has joined #ruby
jhwhite has joined #ruby
DLSteve has quit [Quit: Leaving]
jhwhite has left #ruby [#ruby]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
tlarevo has joined #ruby
j_mcnally has joined #ruby
mathias2 has joined #ruby
volty has joined #ruby
jaequery has quit [Ping timeout: 240 seconds]
dkb20k has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
mugiwara has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]