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]
<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]
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
<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]
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
<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]
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]
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.
<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]
<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
<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
<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>
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"
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
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
<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 ;)
<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
<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.
<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"
<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
<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
<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.
<rpag_>
ironruby, macruby, rubymotion, probably the best you'll get for GUI development & ruby. ironruby¯uby 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
<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'
<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>
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
<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.
<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)
<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
<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
<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?
<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?
<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
<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 :|
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]
<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
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?
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 ?
<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]