apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
eregon has joined #ruby
<sophomorical> BraddPitt: nevermind hehe
<weeb1e> shevy: No idea if you're still around, but why didn't you mention wxruby?
zarubin has quit [Ping timeout: 248 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
jibi has quit [Quit: .]
funburn has quit [Quit: funburn]
<weeb1e> Other than having a terrible API (which can be fixed by using a wrapper around it), wxruby seems to be the smallest GUI framework I have come across that supports windows GUI and tray UI
pumper has quit [Remote host closed the connection]
mayorga has joined #ruby
nadirvardar has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
zz_scottstamp is now known as scottstamp
twoism has quit [Remote host closed the connection]
snovak has quit [Ping timeout: 245 seconds]
justsee has joined #ruby
__eka__ has joined #ruby
clov3r has quit [Remote host closed the connection]
eka has quit [Ping timeout: 256 seconds]
IceyEC has quit [Quit: IceyEC]
toah has joined #ruby
emergion has joined #ruby
eliasp_ is now known as eliasp
<Beoran_> Sorry to spam, but if any EU citizen in a Ruby job in Brussels, please message me. It's really a great opportunity , I think.
<Beoran_> *in interested in* >_<
sectionme has joined #ruby
<bnagy> die in a fire
<Beoran_> bnagy, sorrty to offend you :p
mrsolo has quit [Quit: This computer has gone to sleep]
<bnagy> you knew you were being an asshole but you did it anyway
<bnagy> which makes you asshole**2
kazuuu has joined #ruby
<Beoran_> bnagy, I don't think a job ad is being an asshole
<bnagy> what do you think would happen if dickhead recruiters started thinking it was OK to come into programming channels on IRC and spam?
Bosox20051 has joined #ruby
<Beoran_> I just said I was sorry to offen YOU
<bnagy> how well you think that would end
tylersmith has quit [Remote host closed the connection]
<Beoran_> with some people getting jobs ?
<Beoran_> and I'm not a recruiter
Bira has quit [Remote host closed the connection]
<Beoran_> I'm looking for someone to replace myself
ssvo_ has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
sectionme has quit [Ping timeout: 240 seconds]
Jetchisel has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<Beoran_> but I guess it's not a good method to advertise anyway
<Beoran_> on second thought
leehambley has quit [Ping timeout: 264 seconds]
<Beoran_> so I'll leave it at that
Beoran_ has left #ruby ["Leaving"]
RichardBaker has quit [Quit: RichardBaker]
ner0x has quit [Quit: Leaving]
<platzhirsch> I am constantly having trouble that in my float array some constants like NaN or Infinifty end up which make sort throw an exception
leehambley has joined #ruby
<platzhirsch> What I don't learn is what the value causing the problem is, and it's hard to debug, trying to see if it's NaN, Infinfity, or god what do I know.. any ideas?
<bnagy> Infinity?
<bnagy> >> 3.0 < Float::Infinity
<eval-in> bnagy => uninitialized constant Float::Infinity (NameError) ... (https://eval.in/51286)
tylersmith has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
kazuuu has quit [Remote host closed the connection]
<bnagy> oh caps
<bnagy> anyway, that should work.. it's probably NaN
<bnagy> >> [Float::INFINITY,3.0].sort
<eval-in> bnagy => [3.0, Infinity] (https://eval.in/51287)
brianpWins has quit [Quit: brianpWins]
<bnagy> yeah cause NaN isn't less or greater than anything
Nogbit has joined #ruby
<platzhirsch> but array.include?(Float::NAN) gives me false, where is that dirty little value..
<bnagy> strip NaNs then sort, or will the inifnities break other stuff?
kazuuu has joined #ruby
<bnagy> >> [Float::INFINITY,3.0].sort
<eval-in> bnagy => [3.0, Infinity] (https://eval.in/51288)
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
quoin has quit [Remote host closed the connection]
jonr22 has joined #ruby
quoin has joined #ruby
kazuuu has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 240 seconds]
<platzhirsch> ah found it. I mapped it to string sorted and made unique, there is a NaN and array.delete(Float::NAN) apparently didn't get rid of it
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Bira has joined #ruby
tgraham_|away is now known as tgraham_
<platzhirsch> Probably because Float::NAN.object_id != (5/0.0).object_id
funburn has joined #ruby
quoin has quit [Ping timeout: 252 seconds]
<bnagy> no, it wouldn't :)
jonr22 has quit [Ping timeout: 264 seconds]
<platzhirsch> any idea how to handle this case?
<bnagy> but include? should have worked
<platzhirsch> >> "test"
<eval-in> platzhirsch => "test" (https://eval.in/51290)
<bnagy> >> [Float::NAN].include? Float::NAN
<eval-in> bnagy => true (https://eval.in/51291)
<platzhirsch> yes, but not
<platzhirsch> >> [5/0.0].include?(Float::NAN)
<eval-in> platzhirsch => false (https://eval.in/51292)
<platzhirsch> >> [5/0.0]
<eval-in> platzhirsch => [Infinity] (https://eval.in/51293)
<platzhirsch> err
<platzhirsch> >> [0/0.0].include?(Float::NAN)
<eval-in> platzhirsch => false (https://eval.in/51294)
<platzhirsch> >> [0/0.0]
<eval-in> platzhirsch => [NaN] (https://eval.in/51295)
<bnagy> that's 'normal' NaN :(
Jetchisel has joined #ruby
sarkis has quit [Ping timeout: 240 seconds]
osvico has joined #ruby
larissa has joined #ruby
<bnagy> >> 0/0.0 == Float::NAN
<eval-in> bnagy => false (https://eval.in/51296)
<bnagy> lame
<platzhirsch> Well,... I will clean it up with delete_if and .finite? *sigh*
<bnagy> oh there's nan?
io_syl has joined #ruby
<shevy> weeb1e it works?
KobraKao has joined #ruby
<shevy> last time I checked it it was rather dead
<bnagy> >> [0/0.0].reject(&:nan?)
<eval-in> bnagy => [] (https://eval.in/51297)
Nogbit has quit [Quit: Leaving.]
<bnagy> rawr
<weeb1e> shevy: Well I ran an example after just installing the 1.9 compatible gem and the window opened and appeared fine
mansi has joined #ruby
<shevy> hmm
<weeb1e> But I now see the one thing it is missing is tray balloon support
<shevy> "The current wxRuby version is [2.0.1], released on 9 Sep 2009."
<platzhirsch> bnagy: nice, that's better
AdmiraI has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> sorry, I can't recommend something like this weeb1e
<bnagy> also Float::NAN.nan? is true
<bnagy> so you'll get both
<platzhirsch> thanks :)
blackmes1 has quit [Ping timeout: 240 seconds]
<weeb1e> shevy: Better than the even more ancient thing I spent some time trying to get working :(
Es0teric has quit [Ping timeout: 256 seconds]
<weeb1e> That thing is the only thing that was able to make tray balloons other than the large frameworks, but it is too old
<shevy> hehe
<weeb1e> If wxRuby works, at least it is only 20MB uncompressed, compared to hundreds for every other GUI framework
<shevy> did you try ruby-tk yet?
sepp2k has quit [Ping timeout: 256 seconds]
sepp2k1 has joined #ruby
<weeb1e> That I have not tried yet, I'll have to check if it supports tray icons
Hanmac has joined #ruby
<weeb1e> And also its size
<weeb1e> I can't find anything a working implementation of a tray balloon using the ruby win32api
<weeb1e> Pretty sad
quoin has joined #ruby
Ripp__ has quit []
<weeb1e> Every question I've found related to is says go use vruby, which is that even more ancient thing I mentioned
<weeb1e> There's no chance of getting that working work 1.9.3 :(
huoxito_ has joined #ruby
m8 has quit [Quit: Sto andando via]
<xybre> weeb1e: on the vruby site there's a version that works with 1.9.1
volty has joined #ruby
<weeb1e> xybre: It says 1.9.1, but I can't get it to compile with by 1.9.3 or get any of the so files available online working
jonr22 has joined #ruby
<weeb1e> There isn't even really an error in the mkmf.log
<volty> I replace the elements of an array with a[0..-1] = another_arr // is there another way/notation ?
Ripp__ has joined #ruby
<xybre> weeb1e: Ah, bummer, I was hoping.
Steve009 has joined #ruby
crazymykl has quit [Remote host closed the connection]
Bosox20051 has quit [Ping timeout: 248 seconds]
<weeb1e> >> a = [1,2]; a.replace [3,4]; a
<eval-in> weeb1e => [3, 4] (https://eval.in/51298)
<weeb1e> volty: ^
crazymykl has joined #ruby
freerobby has joined #ruby
mrsolo has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
<weeb1e> xybre: I tried to get that thing working for so damn long, it seemed perfect for my use case, however outdated
soheil has quit [Remote host closed the connection]
<Steve009> ANyone know of a good service with a ruby API for User Account profiles? Something like a DB service but that has been set up as a service for managing user profiles with associated data?
jrhe_ is now known as jrhe
soheil has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
<volty> weeb1e: yap, replace, what an ... - me, thx
clov3r has joined #ruby
huoxito__ has quit [Ping timeout: 256 seconds]
funburn has quit [Quit: funburn]
robbyoconnor has quit [Ping timeout: 248 seconds]
hamush has quit [Ping timeout: 248 seconds]
kayloos has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
<xybre> weeb1e: did you see http://www.fxruby.org/doc/examples.html ?
<weeb1e> xybre: I saw it, but I haven't looked at it in any detail, any idea how large it (and any dependencies it needs) is?
<weeb1e> I am looking for the smallest possible GUI framework for packaging purposes, it needs to support windows GUI and a tray icon
<xybre> weeb1e: ~2MB
Steve009 has quit [Quit: Steve009]
adkron has quit [Ping timeout: 256 seconds]
<weeb1e> xybre: Sounds too good to be true. I will test it out when I get a chance
<weeb1e> gtk and qt are like 200+MB each
<volty> qtbindings has support for a tray icon, as well as tray icon's messaging and menu
Mars` has joined #ruby
<shevy> hehe
<shevy> fxruby died years ago too btw
<shevy> and, these died when HTML5 was on the rise
<weeb1e> volty: qtbinding is 83MB compressed, a no go.
<weeb1e> Who in there right mind would package 83MB for a gui interface with a 7MB application?
<weeb1e> That 7MB includes the whole of ruby and all gems
<weeb1e> I don't care if the size is doubled by the GUI framework, but 10 - 20x increase in size just for a simple GUI and tray icon is a complete joke
apok has quit [Quit: apok]
vim_shim has quit [Ping timeout: 245 seconds]
<weeb1e> shevy: I thought about adding just a tray icon (and menu/balloons) with an embedded web interface for details and configuration
<weeb1e> But back to needing an implementation for the tray stuff
<weeb1e> No one seems top have gone near the windows tray since 1.9.1
<weeb1e> Extremely depressing
<shevy> yeah
<shevy> xybre, "forked from lylejohnson/fxruby"
momomomomo has joined #ruby
<shevy> that is a random desperate person who tries to not have it die down
<volty> weeb1e: you can try interfacing with c code (or just another way, maybe batch - if there) if you need only tray icon
<weeb1e> volty: Implementing that stuff manually with the windows API is way too much of a headache
<weeb1e> It is really nasty
<bnagy> jruby + swing! XD
<weeb1e> jruby is not an option
<shevy> I am gonna say what will happen
<shevy> you will write to the mailing list, asking for advice how to shrink ruby-gtk to bare minimum tomorrow ;)
<shevy> OR!
<shevy> ruby-tk!!!
<weeb1e> I am using ruby for this client-side application to replace a .Net application for cross platform support without requiring something bloated like .Net or Java to be installed
Nogbit has joined #ruby
Nogbit has left #ruby [#ruby]
<xybre> shevy: Really? http://rubygems.org/gems/fxruby
<RubyPanther> ruby tk is very usable
ehaliewicz has joined #ruby
<weeb1e> Isn't fxruby a wrapper for tk?
<volty> fxruby is for fox toolkit
<shevy> xybre odd
<weeb1e> RubyPanther: Does tk support tray icons?
<weeb1e> I don't think it does :(
<xybre> shevy: projects often change maintainers.
<shevy> and then die
<RubyPanther> but Gtk is the quickest way to get a cross-platform tray app. fxruby doesn't count because it has such a history of failing to actually compile anywhere
<shevy> see _why
<shevy> xybre, this was his (lyle's) farewell post I think http://lylejohnson.name/blog/category/fxruby/
<weeb1e> VRuby does pretty much exactly what I want, if only it wasn't written by an asian and then abandoned 0.2 ruby versions ago
<weeb1e> RubyPanther: Gtk makes my 7MB windows package into a 90MB package...
<shevy> hmm
<bnagy> uh.. written by an asian?
<shevy> seems he went into clojure
<shevy> (def relation-types
<shevy> [{:type-name "Foo", :data 1}, {:type-name "Bar", :data 2}, {:type-name "Spam", :data 3}])
<shevy> hmmmmmm
<shevy> yeah an asian!
mayorga has quit [Ping timeout: 256 seconds]
<shevy> dudes with black hair black eye and no english skills!!!!!!!
<weeb1e> bnagy: I don't mean that as an insult, only that the lack of english resources is probably why it was never worked on by anyone else
dankest has quit [Quit: Peace]
<RubyPanther> weeble, in my case I used Gtk and bundler and developed on linux, and when I needed to test on windows, bundler had no trouble and it didn't download a 90mb package either... it just compiled the source for a few hours
<shevy> lol
<shevy> "it just compiled the source for a few hours"
<shevy> weeb1e that's a classic RubyPanther for you ;)
<RubyPanther> I wouldn't worry about a 90MB package though, it is not like it is a web app
<weeb1e> RubyPanther: Sure, but in my case, uses will not be compiling anything, or even installing ruby on their machines
<shevy> weeb1e I think you have to accept the fact that at the least half the people here rather want to add salt to your wounds as opposed to want to help you right now ...:D
<RubyPanther> yeah but if I had other windows machines to run it on, I would just make my own package
<shevy> I have good news weeb1e ...
<weeb1e> I really just need something with tray icon, tray menu and tray balloon support for ruby, then I can use an embedded web UI for everything else
<shevy> those toolkits will get bigger and bigger!
momomomomo has quit [Quit: momomomomo]
<weeb1e> :(
<shevy> GIANT tray icons are en vogue soon
c0rn has quit [Quit: Computer has gone to sleep.]
<shevy> 100MB per tray icon
VictorSK has joined #ruby
VictorSK_ has joined #ruby
* weeb1e goes back to crying
<shevy> weeb1e, btw why did you not try another shoes?
Mars` has quit [Quit: Leaving.]
momomomomo has joined #ruby
<weeb1e> shevy: Huge.
<RubyPanther> In the end it is the same as anything else, you can't just hand ruby code to somebody either as a COTS app. You will need an installer.
sarlalian has quit [Ping timeout: 252 seconds]
<shevy> weeb1e can you define what is "huge" again please? I am going to argue with those on #shoes
<weeb1e> RubyPanther: My package works perfectly with all it's included gems as a CLI app
<weeb1e> and is only 7MB
<RubyPanther> And installing Gtk on windows is not any bad evil thing, it is not any different than normal for windows software.
<shevy> omg volty
<shevy> "Step 1: Open VS2005, create a Windows Service project, and add an installer for the Windows Service."
<shevy> hmm wait weeb1e
<shevy> how can it be only 7MB
<shevy> how does it create windows?
<shevy> I mean widgets
<weeb1e> volty: Are you going to implement that in ruby for me? :P
<ixti> some self-promotion :D
<RubyPanther> weeb1e: the 99%+ of the time I'm running my apps on linux, I'm adding way less than 7MB to the system to run a gtk app, because I have Gtk installed anyways.
<shevy> omg
<shevy> weeb1e it seems you found someone using either of these!
<weeb1e> shevy: As I said, that is with a CLI interface, it was win32console and term-ansicolor for windows
<shevy> well ok... let's ignore CLI... what about GUI stuff and common lisp? how large would these be?
<volty> weeb1e: if I go to implement it i'd go with c++ and a configuration file for sending only the menu number
<weeb1e> ixti: Since you didn't read up, gtk and qt will increase my apps packaged size by 10 - 20 fold, which is just unacceptable
<shevy> oh wait
<shevy> misread...
DonRichie has joined #ruby
<ixti> weeb1e: ah. yeah
VictorSK has quit [Remote host closed the connection]
VictorSK_ is now known as VictorSK
<shevy> I think you can squeeze that down
freerobby has quit [Quit: Leaving.]
amsi has quit [Quit: Leaving]
kayloos has quit [Remote host closed the connection]
<shevy> you really should start writing to mailing lists
guns has joined #ruby
<weeb1e> RubyPanther: Sure, I'm fully with you, I have written hundreds of ruby applications, mostly eventmachine based server platforms, including a few massive ones over the years. But this specific project needs to be packaged for windows
<RubyPanther> "____ - fold" is not a very reasonable way to measure size. A small package can grow many times bigger and still be small.
senayar has joined #ruby
<RubyPanther> Most people don't even _own_ floppy drives anymore
<ixti> yeah. we rent them
<RubyPanther> and CDs and DVDs cost the same amount per disk
<shevy> lol
<ixti> :D
<weeb1e> How is 80MB for a barebone GUI interface reasonable for an application that is only 7MB including the full ruby installation and it's gems?
<weeb1e> I cannot comprehend that logic
VictorSK has quit [Quit: VictorSK]
<RubyPanther> How many GUI apps do you have installed on one computer? Only a few hundred in most cases, right?
<shevy> it is the RubyPanther logic, you'll love it eventually weeb1e
julweber has quit [Remote host closed the connection]
<weeb1e> I might as well package AutoItScript and spawn that from my ruby application, with would only add a few MB for a full GUI and tray interface
<ixti> i believe that logic is that it's not apropriate to calculat UI toolkit as part of app
iliketurtles has joined #ruby
<RubyPanther> Is the disk space of the app in any way a useful metric, assuming it is under 1GB?
<weeb1e> But that is even more retarded :(
<shevy> lol
<shevy> under 1GB, weeb1e now you can package A LOT MORE into those 1GB
<RubyPanther> I would say it is retarded not to even ask if it is useful, and just worry about it for no reason
<lewellyn> RubyPanther: considering how many people still buy 60GB SSD, yes.
kayloos has joined #ruby
<ixti> when i have no space left - i remove some old porn
<RubyPanther> lewellyn: great point, and so we can start to approach some real world numbers
<lewellyn> also, one assumes this is meant to be downloaded. much of the world is on metered internet connections.
<weeb1e> I'm actually considering packaging a seperate AutoItScript application with this, building an IPC and spawning that
<lewellyn> so 90 mb might reasonably turn people off a download.
<RubyPanther> Something like Gtk, it really makes more sense instead of worrying about the hundreds of GUI apps you might install to worry just about the total number of different GUI toolkits those apps will want to install
<weeb1e> That is the most sensible option I have come across so far, even though it would be a complete hack
<lewellyn> heh. that's why i have 3 gtk installs on windows that i know of and probably more :P
stkowski has quit [Quit: stkowski]
<weeb1e> RubyPanther: I doubt a single user downloading this application will ever install another GTK application on their machine, unless it is packaged with the application and transparent to them
<RubyPanther> if there are only 2 or 3 dozen popular GUI toolkits, and average 100MB, now we can see that even on a weird laptop with a 60GB SSD, the toolkits are not a major concern
senayar has quit [Ping timeout: 260 seconds]
<riceandbeans> I think GTK+ is dying
<shevy> but 100MB for just one shitty app!!!!
<shevy> sorry weeb1e, I just want to add more salt to the wound ;)
<riceandbeans> I think because of the issues introduced in V3, QT4 will be taking over
<shevy> man
<riceandbeans> WxWidgets with ruby is a pain
<shevy> qt is even larger
<weeb1e> shevy: It's ok, I think everyone does at this point :(
<RubyPanther> it is up to you to make the app good, if it is shitty I'm more worried about the user time installing and using it than the disk space
<shevy> it is like MONSTER SIZE
<riceandbeans> and Tk is very antique looking
<shevy> only people stuck in the 1960s still use Tk
<lewellyn> shevy: you don't have to include all of qt with your app. just the parts you use.
toah has quit [Ping timeout: 240 seconds]
<riceandbeans> shevy: it is slightly larger yes, but the code is honestly cleaner and runs faster
vim_shim has joined #ruby
<shevy> slighty larger...
<weeb1e> The fact is, I know the functionality I require can be built into a binary with a few MBs, there is no sensible reason for it to require 200MB
<lewellyn> it's possible to bundle a qt that's only like 10mb on windows, apparently.
<RubyPanther> Tk may have a smaller binary but it takes a lot longer to code an app with it. That is true for both large and small apps.
<shevy> qt-5.1.1.tar.xz: 176M
<lewellyn> that's source. for everything.
<riceandbeans> shevy: shevy core QT compared to core GTK+ isn't a gigantic difference in filesize
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
toah has joined #ruby
<riceandbeans> I would stick with V4 for now too...
<lewellyn> you won't even be compiling much of the source in that tarball.
<weeb1e> lewellyn: Qt is not 10Mb... link or didn't happen
<RubyPanther> Gtk gives you a native tray app pretty much anywhere, and it is easy to use
<BraddPitt> >try to reach blog on Net::HTTP ``cheat sheet''
<weeb1e> A Qt application of that size would need Qt installed seperately
<BraddPitt> >page connection times out
<lewellyn> weeb1e: the smallest i've gotten is 30mb myself.
<BraddPitt> is this some sick joke?
<weeb1e> lewellyn: How?
<weeb1e> lewellyn: With ruby?
<shevy> gtk+-3.10.0.tar.xz: 14M, glib: 6.4, pango: 1MB, atk: 0.6, the others like gdkpixbuf etc... barely more than 4 MB together
<lewellyn> weeb1e: you don't include anything more than you're actually using, and you go out of your way to minimize the number of dlls you use.
<weeb1e> shevy: You're missing the big one
<shevy> which one
<lewellyn> no. i have never used qt itself with ruby.
reppard has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
reppard has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
<weeb1e> cairo alone is 60MB uncompressed
<lewellyn> my pet project sits on top of qt ;)
<weeb1e> Meh
<riceandbeans> ruby with QT4 reads cleaner than GTK and it runs better
<shevy> ah I indeed forgot cairo
<weeb1e> This is ridiculous
<shevy> cairo-1.9.2.tar.xz: 6.8M
<riceandbeans> you'll learn to love the sockets
<riceandbeans> but anyway
mrsolo has joined #ruby
<shevy> cairo-1.10.2.tar.xz: 20M
<volty> you need qtbindings and qt, you can try to eliminate some libraries -- i haven't tried that
<weeb1e> riceandbeans: Which is useless if it means a 7MB app turns into a 200MB app with Qt
<shevy> cairo-1.12.16.tar.xz: 35M
<shevy> hmm
<shevy> wonder what the fuck they are doing
<shevy> packing p0rn into cairo or something
<riceandbeans> weeb1e: it doesn't though
<weeb1e> riceandbeans: Qt is massive.
<riceandbeans> weeb1e: we're talking ruby, not a static binary
<weeb1e> riceandbeans: the qtbindings gem which includes Qt and dependencies for windows is 83MB compressed
Bira has quit [Remote host closed the connection]
<weeb1e> My application with a CLI is 7MB, including ruby and all gems used
<RubyPanther> @status = Gtk::StatusIcon.new # easy as pie! Ever do one of these native in windows?
Ox6abe has joined #ruby
<weeb1e> RubyPanther: I tested that earlier, works fine
<shevy> he can do it
<shevy> but it is the size that is the problem RubyPanther!!!
<weeb1e> But gtk is too big
<riceandbeans> weeb1e: no one is saying CLI is bigger than GTK/QT
<riceandbeans> I'm simply saying, having USED both extensively, I prefer QT over GTK
<RubyPanther> what is "too big" anchored to? Without a context, it is a false statement.
<volty> never mind: try to abstract // what weeb1e wants is a system tray icon that is not necessarily bundled -- the system tray icon and his main ruby prog could be separate programs
snovak has joined #ruby
<shevy> cant you somehow call this all natively on windows?
<riceandbeans> I run Debian GNU/Linux with Openbox as a WM, I believe in minimalism, trust me
<weeb1e> riceandbeans: My point is, the GUI functionality I require shouldn't use more than a few MBs to implement, definitely not 100, 200 or 300MB
<riceandbeans> but I like QT better than GTK
<weeb1e> Argh, I'm close to giving up and hacking shit
<riceandbeans> I'm also very strongly PRO C over C++
<RubyPanther> Too big for what, clicking install and having it download quickly on a modern low end computer?
emergion has quit [Quit: Computer has gone to sleep.]
<riceandbeans> weeb1e: whatever libraries you pull in are whatever libraries you pull in
<volty> for that purpose it is enough to find a c++ code that creates a hidden windows and a system tray icon with a menu and at least a message (as an example) // change that code and make it configurable
<weeb1e> shevy: Yes it can all be done natively, but no one has bothered to implement this stuff for ruby
<riceandbeans> Windows users will likely not have any POSIX GUI libraries so if that's your target audience they'll have a tougher time anyway
<volty> s/windows/window/
<riceandbeans> Tk is smaller and more easily implemented on Windows but it looks like it's from 1990
<riceandbeans> if you're cool with that, by all means
<weeb1e> AutoItScript compiles to a binary which is a few MB at most and can support full GUI, tray and automation
<riceandbeans> it's also a lot more limited than GTK+ and QT
<RubyPanther> weeble, things like cross platform tray icons actually took a long time to come about, and because of the differences between systems, it is not realistic to think that a small package would have that functionality
<riceandbeans> weeb1e: other than that, WxWidgets, WebUI of some sort, or make your own framework...
<volty> do it with autoitscrpt then
<weeb1e> RubyPanther: I really just want a windows solution, linux users can stick with my CLI
<RubyPanther> but seriously, crunch some numbers; if you have 100 apps that each want one of these bigger packages, it isn't 100 different toolkits; it isn't really 80M except where there are few apps installed
<riceandbeans> weeb1e: if windows is your target audience, ruby might not be the best solution for a gui that you want to be < 10MB all in all with dependencies
<weeb1e> I'm considering wxruby, but it does not have tray balloon notification support
<RubyPanther> so the worst case turns out to be not that bad, and the typical case is not that bad either
<riceandbeans> wxruby has shoddy support at best and it's difficult to implement
<RubyPanther> wxruby tends to fail
<riceandbeans> good luck with that one
<weeb1e> volty: I'm not going to reimplement this application in AutoIt, and I'd rather not spawn a seperate autoit application with an IPC just for a GUI and tray interface
<RubyPanther> it fails smaller, I will give itthat
<riceandbeans> RubyPanther: fail is fail
<weeb1e> wxruby is tiny compared to anything else
<riceandbeans> if you win big or you fail small, who do you choose?
<weeb1e> and should do most of what I need
snovak has quit [Ping timeout: 240 seconds]
<riceandbeans> refactor later
VTLob has quit [Quit: VTLob]
<riceandbeans> get something that works first
<RubyPanther> probably why it fails so much, it doesn't do everything it would need to do to actually be portable
guns has quit [Quit: guns]
<weeb1e> I literally would settle for windows tray icon, tray menu and tray balloon support for ruby
quoin has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
<weeb1e> But the only implementation of that stopped working at 1.9.1, and I need to use 1.9.3
<jrobeson> ji really think you should not use ruby for this
<jrobeson> and i'm sticking by that
quoin has joined #ruby
Guest91153 has quit [Read error: Connection reset by peer]
<jrobeson> you'd do better by making a webapp..
whunt has quit [Quit: Computer has gone to sleep.]
<weeb1e> An embedded web server would work great for details and configuration options, but I need tray support for running the application in the background and showing notifications with tray balloons
<jrobeson> at least hten you don't have to ship the ui
<jrobeson> get a browser with web notifications
<weeb1e> jrobeson: This is a client-side application for a reason
<RubyPanther> It isn't that hard to code in windows, it is only a few dozens lines of gunk
<jrobeson> run it in the backround in the webserver with sidekiq,resque
justsee has quit [Ping timeout: 240 seconds]
<jrobeson> weeb1e, then don't use ruby..
<shevy> hahaha
Popple has joined #ruby
<shevy> weeb1e look at them all go at it! :D
<weeb1e> jrobeson: I'm not rewriting this application.
<jrobeson> sounds like you will be later
<shevy> weeb1e it's like a lake of piranhas here
<jrobeson> when you spend hours and and hours and realize what you want isn't feasible
<RubyPanther> I'd trade 80M for even 1 line of gunk, myself, as long as I only install it once per machine
<jrobeson> when somebody stops supporitng that release
<weeb1e> RubyPanther: The windows API is terrible and I cannot find any existing implementations of a balloon tray notification
heidi has quit [Quit: Leaving.]
Jetchisel has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<RubyPanther> weeb1e: don't look for Ruby examples, look for Perl examples and it is close to the same in Ruby
<jrobeson> just like what you see with only 1.9.1 of that thingy being supported, .. it's gonna happen again
<volty> if you can implement, in AutoIt, a prog that reads a 1) creates a system tray icon 2) attaches menu reading it from a file 3) monitors a dedicated file | directory for files containing messages to show 4) writes to a dedicated file |directory a chosen menu item /// it's worth, and could be worth for other projects
<RubyPanther> I probably have an old Perl one somewhere
<jrobeson> i bet perl has better gui toolkit support than ruby :)
<jrobeson> i think i've only ran one perl gtk app in my life tho..
iliketurtles has quit [Quit: zzzzz…..]
<weeb1e> RubyPanther: The amount of time I will waste messing with the windows api will not be worth it :(
<jrobeson> but thats 1 more than the ruby gtk programs
<volty> ruby does not have a decent sound library either
<weeb1e> volty: I'd use stdin/stdout for the IPC between AutoIt and ruby, which I have actually done once before
<weeb1e> But since this is a deployed client-side application, I'd rather not resort to such a hack
quoin has quit [Ping timeout: 260 seconds]
GeissT has joined #ruby
Michael has joined #ruby
<weeb1e> Also, there is one other issue with that plan
Michael is now known as Guest68161
<weeb1e> One reason I need a tray icon for the ruby application is so that it can be minimized to the tray
<shevy> I always wondered
<bnagy> bet the tray stuff is all COM anyway, which is a huge pain to use from ruby
<weeb1e> If a seperate process is creating the tray icon, it will not work
<volty> i do not see it as a hack, i would see it as a generic utility, like kdialog (and other linux cli utilities with which you can create menus, windows etc)
<bnagy> so using pure win32api probably isn't even 'possible'
<weeb1e> bnagy: I'm sure it's possible, it is just not worth the effort
<volty> the winapi is a nightmare
<RubyPanther> weeb1e: it seems to me that 80M is a small price to pay for portability and platform independence
<weeb1e> ^
<shevy> yeah we heard that before
<shevy> and next iteration
<shevy> its 90M
<shevy> then it's 100
<shevy> then 120
felipec has quit [Quit: Leaving]
<volty> i've never done something with win api, i've done, many years ago, with the nice borland's delphi - that simplified the interface
<RubyPanther> I just checked my old Perl app, and it is true, I have probably 100 lines of code just dealing with the windows API for the tray icon, not even counting useful code
<bnagy> nah COM is a nightmare, native API is luxury
<weeb1e> RubyPanther: I doubt I'll find a linux user who would have a problem with my CLI, and at the same time, there is not one windows user who doesn't have a problem with any CLI
<weeb1e> So far my best option is probably wxruby
<weeb1e> But the one thing it is missing, which I really need, is balloon notifications
<weeb1e> I suppose I could spawn an AutoIt binary to create each notification
<shevy> hehe
<weeb1e> I've searched the web from beginning to end for a balloon notification implemented in ruby
tvw has quit [Ping timeout: 245 seconds]
<shevy> so much pain...
<weeb1e> Other than that outdated 1.9 code, there is nothing
Voodoofish430 has quit [Quit: Leaving.]
<weeb1e> Maybe someone here can get VRuby compiling against 1.9.3
<RubyPanther> weeb1e: you might want to consider using bundler to try to simplify the install for your windows users
<RubyPanther> In Gtk that is easy
<RubyPanther> What is worth more, your time, or 80M of somebody else
<RubyPanther> 's disk?
dhruvasagar has joined #ruby
mmitchell has quit [Remote host closed the connection]
quazimodo has quit [Ping timeout: 252 seconds]
<weeb1e> RubyPanther: I'm not going to install bundler or ruby on the users machine, I have everything packaged which is extracted to my applications directory
adeponte has quit [Remote host closed the connection]
<weeb1e> That 80MB increase for a 7MB application is ridiculous
quazimodo has joined #ruby
<volty> you can remove it after if you need it only for installation
<xybre> weeb1e: there's some packaging tools that gather together Ruby for windows
<weeb1e> On the off chance that there are any smart windows ruby devs here, please try get this to compile on 1.9.3: http://www.osk.3web.ne.jp/~nyasu/vruby/vrproject-e.html#download
<weeb1e> xybre: I am using one that uses Ocra
<weeb1e> volty: The point is I don't want my tiny 7MB application to be 100MB just for a barebone GUI interface
<weeb1e> I thought I made that clear already :/
julweber has joined #ruby
<shevy> hehe
<shevy> this is a loop here
Hanmac has joined #ruby
<xybre> weeb1e: Native GUIs are a problem. It should be possible to directly communicate with the Windows API though and build your interface that way. It will likely be only a couple k, but it'll take more research.
sayan has quit [Ping timeout: 240 seconds]
<weeb1e> xybre: Exactly, no one has implemented that in directly in ruby, other than the link I just pasted above which broke post 1.9.1
<RubyPanther> still though, I don't see where you are choosing a metric and measuring and finding 100M to be too big for some use.
<xybre> weeb1e: You can use FFI for that though.
<weeb1e> RubyPanther: The alternative implementation of my client application that is written in C# is under 10MB
<volty> it cannot be implemented directly in ruby
<xybre> RubyPanther: its ridiculous.
taternuts has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<weeb1e> I don't need my application to be that small, but making it huge just for a basic GUI is a complete joke, sigh
momomomomo has joined #ruby
<weeb1e> xybre: The time it'll take to implement all that with the winapi will not be worth it
Jdubs has joined #ruby
<xybre> weeb1e: I agree. Unfortunately most Ruby applications use web frontends or CLI. So there's been very little development on the GUI front lately.
<weeb1e> Indeed :(
<xybre> If you can get away with a web interface, I'd really suggest it.
<RubyPanther> I used to run my OS off of one floppy, and telemate off another. It was a big improvement over booting and then removing the DOS disk to run telemate, because then if I downloaded any files I'd have to swap disks like 10 times and if I was too slow my modem would time out. So I do understand the pain that oversized software can cause
Hanmac has quit [Ping timeout: 240 seconds]
<xybre> You could even package it up with a tiny web viewer app that would make it look native.
<RubyPanther> but if it just sounds big, I'm not sure that is hurting your users
<weeb1e> xybre: If I could get a tray icon and balloon notifications working with ruby (so it can be minimized to tray and have visible notifications), I would settle with an embedded web server and web UI for details and configuration
soheil has quit [Remote host closed the connection]
<weeb1e> But the tray stuff is required, and so is the application running client-side
<weeb1e> This application is a syncing client
<weeb1e> It does content distribution, so it requires access to the file system
<RubyPanther> it obviously isn't an app you think the users find important
<xybre> weeb1e: You could use Ruby as the backend and use one of the web/native wrappers to do the rest.
<RubyPanther> you obviously believe your users to value your app less than, say, minesweeper
julweber has quit [Ping timeout: 245 seconds]
<shevy> lol
Jdubs has quit [Remote host closed the connection]
<shevy> the comments are slowly becoming epic
<weeb1e> xybre: Not an option, and not really worth going into all the different reasons why
<jrobeson> why are we spending time talking about this anymore
<RubyPanther> if somebody installed a 3rd party "minesweeper" and it was 100M, would they get sticker shock? Or not?
<shevy> hahaha
<jrobeson> we could talk about ruby panthers
<jrobeson> or what a shevy is
<shevy> I want to know now...
<shevy> weeb1e, is your app more useful than minesweeper?
<xybre> weeb1e: Then you're kinda stuck unless you go for Jruby, but then thats a whole new ball of wax. FFI is the only way to do it right I think.
<weeb1e> I would not install an alternative minesweeper implementation if it is 100MB when I can install a 10MB implementation that does almost exactly the same thing.
johnnymoo_logsta has quit [Ping timeout: 245 seconds]
<jrobeson> ruby panthers are more fun
<shevy> RubyPanther man, if I download an app with 100M, then I expect a PERFECT 3D flashing minesweeper with full story, sexy voice narrating what is happening and why I must play minesweeper to save the world
maletor has joined #ruby
<weeb1e> +1
<weeb1e> It better do stress testing on my GPU while it is at it
<shevy> oh
<lewellyn> speaking of... off to find sultry background music.
<shevy> the only thing I read anew now is using FFI
<jrobeson> FFI FTW?
<RubyPanther> shevy: assuming you have 60 minutes of audio, and it at least uses CD quality FLAC, you're already over 300Ms and we haven't even created a single sprite yet
justsee has joined #ruby
<shevy> die FLAC, die!
<jrobeson> uhmm.. just die flac for game music.. i'll take the flac on the soundtrack
<weeb1e> Ok, I'm gonna settle with wxruby for GUI and tray + compiled AutoIt binary for balloon notifications. It will mean the balloon notifications will use a second tray icon, which is not ideal, but it is the best solution there is.
<xybre> I found some ruby code from 2005 thats supposed to create a system tray icon
<jrobeson> hehe
<RubyPanther> If I was stuck on windows and I had to install a 3rd party minesweeper, I'd be happy if it didn't force me to install 700Ms of .NET packages
<xybre> Its... some of the uglist ruby code I've ever seen
ewnd9 has joined #ruby
<weeb1e> xybre: vruby/swin?
<sweeper> there's always rubytk!
tgraham_ has quit [Quit: Leaving...]
<jrobeson> it's always tk to you people
<xybre> weeb1e: no, straight API
<weeb1e> xybre: And you think it works?
<RubyPanther> rubytk has no tray access, you still get stuck with Win32
<weeb1e> I doubt it is complete
<shevy> ruby code can indeed be very ugly
momomomomo has quit [Quit: momomomomo]
vlad_starkov has quit [Remote host closed the connection]
<xybre> weeb1e: From 2005 when 1.8.x(?) was current? Probably needs some changes but it might be worth a look.
<weeb1e> No one has implemented tray balloon notifications in pure ruby, or if they have, they have not released that code
<xybre> Pure Ruby, using just the win32 API.
<volty> weeb1e: what GUI? didn't you say you only need a context menu on the tray icon?
<weeb1e> xybre: I already tested that earlier, it does not include balloon notifications and is broken in several ways
martin_work has joined #ruby
<shevy> omg
xjiujiu has joined #ruby
<shevy> we are still talking about this jrobeson
<weeb1e> volty: Yes, but if I'm going to have to use wxruby, I might as well use it for GUI as well, instead of a seperate embedded web server
<xybre> Then learn the win32 API and add the notifications, I can probably google it, I bet with that as a starting point it wouldn't be too bad.
<weeb1e> xybre: Back to it not being worth the effort :/
<weeb1e> I have wasted too much time just on this conversation
<jrobeson> shevy, it looks like when the problem is interesting.. people will continue to talk about it, even when building a crazy monster
<shevy> lol
<xybre> Then write it in VisualC, there's not really another option.
<weeb1e> If I was less sleep deprived, I would not still be here
<shevy> nooo weeb1e dont stop now :(
<shevy> nooooooooo
<volty> weeb1e: i would stick to the web server // good luck anyway :)
<shevy> we *must* find a solution
<RubyPanther> What is "interesting" is believing a size is too big/small without even having a metric
<jrobeson> RubyPanther, so why do you continue to contribute to the discussion?
yfeldblum has joined #ruby
<weeb1e> volty: No point in embedding a web server if the framework I'm gonna use for the tray icon supports GUI...
<RubyPanther> because I am "interested," I just said so
<weeb1e> RubyPanther: I actually did give you a solid reason
<weeb1e> My client is an implementation of an already existing C# GUI application
<volty> if it supports it well, if you know it well, if you can deal with it, well ...
<xybre> I wouldn't want to use a library that is 10x the size of my application unless I knew it was going to be preinstalled on every system.
<jrobeson> why not just fix the C# GUI..
<RubyPanther> weeb1e: no, you did not identify any metric at all!
martin_work has quit [Client Quit]
<weeb1e> While I don't care if my application is 2x or even 3x the size of the C# application, I do care if it is 10 or 20x the size
<weeb1e> And so will users
<RubyPanther> why 2x and not 20x?
<lewellyn> what this conversation has proven is that my personal bar for my little skunkworks project is set to high and that people will be happier if i only manage half of my 1.0 todo list by 1.0 ;)
<weeb1e> I think I am being trolled by a Panther :|
<lewellyn> too high even.
<RubyPanther> if it is the digits, use base 32 and problem is solved. And no, I'm being 100% serious.
<jrobeson> haha :)
* lewellyn rubs the grease off his o key. stupid roasted chicken.
Popple has quit [Quit: Computer has gone to sleep.]
<shevy> weeb1e this is how he got banned from #ruby-lang
robbyoconnor has joined #ruby
<weeb1e> lol
<weeb1e> jrobeson: My application is cross platform (at least it's CLI interface is)
<lewellyn> robbyoconnor: run for your life. abandon hope all ye who enter here right now
<RubyPanther> I'm right though, just as a basic matter of engineering, you have to have a metric before you can decide if something is "too" big or "too" small
<weeb1e> And doesn't require .Net
<RubyPanther> otherwise it is handwaving
<jrobeson> well much of the mono stuff runs on linux
Dwarf has quit [Ping timeout: 240 seconds]
<weeb1e> jrobeson: I'd far rather write anything in ruby and avoid .Net for the rest of my life
<jrobeson> err .net stuff.. via mono
<shevy> his metric are users who will say: "THIS SHITTY APP IS 1 GIG LARGE!!!"
<weeb1e> Which is why I started this in the first place
<lewellyn> RubyPanther: he has a metric. the alternative implementation is 10MB.
<jrobeson> the cli stuff is well implemented..
<weeb1e> I stopped using .Net many many years ago, and do not plan on going back, ever.
<RubyPanther> my experience with mono on linux is that real world stuff doesn't work
<volty> «The current wxRuby version is [2.0.1], released on 9 Sep 2009»
<lewellyn> weeb1e: i'm still scarred from C++.net
<weeb1e> I refuse to install mono on my servers.
<jrobeson> RubyPanther, that's why i said just for the CLI.. that part should work fine
<weeb1e> I would rather (and just did) rewrite the entire .Net application in ruby
<jrobeson> it's the gui part that is mssed up
<jrobeson> that sounds like a mistake to choose ruby
<jrobeson> not sure how you got htis far without considering the gui situation
<RubyPanther> lewellyn: right but there is no reason given why the size of a C# implementation matters at all
<jrobeson> where ti's such a big concern to rewrite it now
osvico has quit [Ping timeout: 240 seconds]
<jrobeson> choosing ruby if you planned on a gui with crossplatform toolkits was a bad idea.
Ox6abe has quit [Remote host closed the connection]
<lewellyn> RubyPanther: sure there is. it's the smaller alternative. and i don't think he said it was c#. if he did, i missed it in all the pointless noise.
<weeb1e> jrobeson: My application was origionally primarily for linux, I only decided to add a GUI after the whole application was built because there was a huge demand for it from windows users
<jrobeson> and i love ruby.. it's just that not enough people care about doign that kinda thing
<RubyPanther> "why is this one bigger than the C# one?" "It is a trade-off because this one takes less programmer time to maintain" "Oh, great, you're more expensive than my HDs!"
<volty> now that every f. gadget, even sold in the third world, has gigabytes of capacity, somebody is concerning by 80 mb :)
<volty> concerned
Dwarf has joined #ruby
<volty> i'm joking
<lewellyn> and the lack of concern is precisely why our disks have software that takes orders of magnitude more space than 20 years ago while not necessarily being any more functional.
osvico has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
<weeb1e> wxruby would do everything I need if only it supported tray balloons, sigh
<RubyPanther> What is lacking is a use case where you're saying, "it has to run on this plug computer running windows 3.11 with Win32s extensions and a 120M disk"
<jrobeson> code them? :)
<RubyPanther> it sounds like it actually runs on a regular desktop computer
<weeb1e> jrobeson: You first
<jrobeson> weeb1e, sounds like you should go ahead and implmeent them
<jrobeson> why should i..
<jrobeson> i don't care about doin regular guis
<jrobeson> ever
<weeb1e> Because I hate the winapi far too much
<jrobeson> but you in fact do
<jrobeson> pay somebody?
<weeb1e> There is a reason every person who has attempted to do just that in ruby has failed
<jrobeson> you're selling this app right?
<jrobeson> pay somebody to do it
<weeb1e> No.
<weeb1e> It is freeware
<jrobeson> these those people who care about downloading all that stuff
<RubyPanther> "if only" and yet, Gtk does all the stuff you need. It does all the stuff, and it is bigger. And other ones are smaller... but don't do all the stuff.
<jrobeson> have them donate to make it happen
<RubyPanther> Sounds to me like you are in desperate need of 80M or so of GUI features.
<shevy> lol
Vivekananda has quit [Ping timeout: 240 seconds]
<shevy> he does not want to stop weeb1e
<weeb1e> Somebody please feed this panther, I don't like the way it is looking at me
<shevy> he feeds on your misery
<weeb1e> Then he'll never need to eat again
<jrobeson> this is ridiculous
<shevy> :D
<weeb1e> jrobeson: I couldn't agree more
<shevy> now we understand why matz created mruby
<shevy> everything will become minimal
<RubyPanther> I just want to pick a metric, and actually calculate if it is too big, or not too big, based on a real reason. You sound like my dad complaining that the restaurant that sold pancakes for $2.50 in 1980 now charges $6 (if you make minimum wage it is actually cheaper now)
<weeb1e> I'm counting down the minutes until mruby is optimized to the level of LuaJIT
<jrobeson> i downloaded pidgin on windows
<jrobeson> and had no problem with the gtk depedency
<jrobeson> even thoug hi had no other program that used it
clov3r has quit [Read error: Connection reset by peer]
<jrobeson> it as worth it because the program provided enough value
<volty> maybe this way: you write a configurable systray app in qt c++ under windows, compile it statically (that way it copies only the basic libs) and you check the size
<volty> s//static/
senayar has joined #ruby
knigitz has quit [Remote host closed the connection]
<weeb1e> I wonder if wxruby can make a borderless GUI window with a mostly transparent background
<weeb1e> That could probably work instead of a tray balloon
knigitz has joined #ruby
knigitz has quit [Client Quit]
<volty> why not a normal window, then?
<weeb1e> Because it'll look ugly and could get in the way of something important
<volty> who knows if wxruby can make a window with a shape of a naked woman
<volty> i got it
<volty> enough of it
adkron has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
<RubyPanther> if you're hacking together your own balloon window, it is safe to assume it will have bugs and get in the way of something important
<weeb1e> Should be possible, if I can make it look sort of ok, that would be better than spawning something to create a new icon and balloon
senayar has quit [Ping timeout: 260 seconds]
martin_work has joined #ruby
<weeb1e> RubyPanther: Well it's the best option I have
<RubyPanther> it might look a little... home brew... but at least it won't look like a bloated, professional feature-rich app
io_syl has quit []
<weeb1e> And will be 15MB instead of 150MB
quoin has joined #ruby
Ripp__ has quit []
<volty> going this way you risk to fill the chan with 150MB of talking about 15 vs 150
Ox6abe has joined #ruby
xk_id has joined #ruby
ukd1 has quit [Remote host closed the connection]
<RubyPanther> Yeah, at whatever your regular billing rate is, how many megabytes of HD could you buy for the time spent trying to shrink this thing? For your sake, I hope you'll billing somebody for this adventure.
mmitchell has joined #ruby
mayorga has joined #ruby
<weeb1e> Not billing anyone :(
<weeb1e> But it will probably be my first and last GUI ruby application ever
leehambley has quit [Ping timeout: 245 seconds]
Bosox20051 has quit [Quit: Leaving]
NinjaPenguin_ has joined #ruby
apok has joined #ruby
<volty> guis with qtruby are wonderful, the prob. is the maintenance (though for now it works quite well)
Bosox20051 has joined #ruby
mayorga has quit [Max SendQ exceeded]
ldnunes has quit [Quit: Leaving]
quoin has quit [Ping timeout: 256 seconds]
NinjaPenguin has quit [Ping timeout: 245 seconds]
leehambley has joined #ruby
martin_work has quit [Quit: martin_work]
mayorga has joined #ruby
krz has joined #ruby
sarkis has joined #ruby
jaredrhine_ has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
Atrumx has quit [Quit: Quitting]
robwilliamsuk has joined #ruby
vlad_starkov has joined #ruby
martin_work has joined #ruby
martin_work has quit [Client Quit]
sumark_ has joined #ruby
Lewix has joined #ruby
jaredrhine has quit [Quit: No Ping reply in 180 seconds.]
jpinnix has quit [Ping timeout: 240 seconds]
robwilliamsukio has quit [Quit: http://www.youtube.com/watch?v=z99iVXJ8OtA]
quazimodo has quit [Ping timeout: 240 seconds]
sumark has quit [Ping timeout: 240 seconds]
mayday_jay has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<volty> $systray.menu.addAction('back timer') { s = guiGetText("bell after (mm:ss)"); tt = to_sec(s); shot_after(tt * 1000) { $systray.message("Timer (#{s}!!!" } }
martin_work has joined #ruby
krz has quit [Quit: krz]
<volty> (abstract - though not so much)
huoxito_ has quit [Quit: Leaving]
nari has joined #ruby
Monie has joined #ruby
rezzack has quit [Quit: Leaving.]
<weeb1e> volty: What is $systray? qt?
vlad_starkov has quit [Ping timeout: 252 seconds]
<seaworthy> yo how the heck do i import a local library
<seaworthy> via require
<weeb1e> seaworthy: What kind of "local library"?
<seaworthy> like another .rb file in the same folder
<volty> weeb1e: Qt::SystemTray derived class, i set it globally because i need it often
<seaworthy> i want to user it as a library
<seaworthy> use*
<weeb1e> seaworthy: require "./whatever.rb"
radic has quit [Disconnected by services]
radic_ has joined #ruby
martin_work has quit [Quit: martin_work]
<weeb1e> volty: Yeah, while qt would be perfect (and I love all Qt based applications), it is just too massive for such a tiny application
<seaworthy> okey doke thanks works
mansi has quit [Ping timeout: 245 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
<weeb1e> volty: It looks like someone added balloon support to Wx but since it is not in the wxruby API docs, it obviously is not included in the ruby bindings :(
<weeb1e> Well, seeing as the patch is on that wiki page, it probably isn't even in the official wx library
Vivekananda has joined #ruby
<volty> probably
<volty> you can see if there's an automatic builder for wxruby
dorei has joined #ruby
<weeb1e> Then again, wxpython includes ShowBalloon()
jonr22 has joined #ruby
hanmac1 has joined #ruby
<volty> you can, then, bundle with python -- instead of bundling with wxruby or whatever else :)
vpretzel has joined #ruby
<weeb1e> lol
<vpretzel> Anyone know of a workaround for when installing ruby-1.9.3-p125 even when forcing --which-gcc=gcc? I'm running in zsh but all recommendations I can find online have been fruitless
<vpretzel> Including directly setting CC=gcc and clearing CFLAGS
hamakn has joined #ruby
<volty> vpretzel: i can't realize what is your problem
heidi has joined #ruby
<vpretzel> I cannot install ruby-1.9.3-p125 through rvm - would you like the specific error? i can provide a gist
<volty> vpretzel: switch to bash if you think your zsh could cause prob.
hanmac1 has quit [Ping timeout: 256 seconds]
nanoxd has quit [Ping timeout: 240 seconds]
<vpretzel> volty: i just tried that without any luck
huoxito has joined #ruby
<volty> cannot find a gcc ? // could you post just the relevant line?
<vpretzel> Sure - give me just a minute
adeponte has joined #ruby
<vpretzel> regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
<vpretzel> 18 return t->num_entries;
<vpretzel> Error running '__rvm_make -j 1',
<vpretzel> I know i have GCC installed properly - I've homebrew'd uninstall and installed
nanoxd has joined #ruby
<vpretzel> I also have readline installed and that doesn't work.
<vpretzel> It's an incredible issue that I cannot figure out.
<volty> are you on os x ?
<vpretzel> Yes
<vpretzel> just tried rvm install 1.9.3-p125 --with-gcc=clang --with-readline-dir=$rvm_path/usr with the same error
ixti has quit [Ping timeout: 256 seconds]
<volty> then install macports and after apple-gcc42
<volty> (with macports)
<vpretzel> Not sure how that's any different than installing apple-gcc42 with homebrew
<vpretzel> :-/
tgraham has joined #ruby
<volty> make sure you have the right cc (e.g. /opt/local/bin/gcc-apple-4.2)
<pontiki> having messed up my old mac mini with several different package managers, i would like to say "don't do that"
<pontiki> but i don't have a fix for you either
adeponte has quit [Ping timeout: 240 seconds]
<vpretzel> I did a cc --version, and got:
sevenseacat has joined #ruby
<vpretzel> $ cc --version
<vpretzel> Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
<vpretzel> Target: x86_64-apple-darwin13.0.0
<vpretzel> Thread model: posix
KobraKao has quit [Ping timeout: 240 seconds]
<vpretzel> pontiki: that's exactly what i want to avoid. not a huge fan of multiple package managers. I know 1.9.3-p125 is just flawed to hell and later support for clang is what I should be after but unfortunately I'm stuck with it.
<volty> find where is located your apple-gcc42 and prefix CC=<that one - fullpath>
machuga|away is now known as machuga
<volty> CC=<full-path-to-apple-gcc42> rvm install ruby 1.9 ....
<vpretzel> Trying that right now, thank you
soheil has joined #ruby
<volty> pontiki
<pontiki> hmm?
tgraham has quit [Ping timeout: 264 seconds]
<volty> tell me, with your experience, what is the best for os x ?
<pontiki> i'm a huge fan of homebrew
<pontiki> when i started out, it was macports and fink
<vpretzel> Error running 'env CFLAGS=-O3 -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib ./configure --prefix=/Users/victor/.rvm/rubies/ruby-1.9.3-p125 --with-opt-dir=/usr/local/opt/libyaml --disable-install-doc --without-tcl --without-tk --enable-shared',
<vpretzel> please read /Users/victor/.rvm/log/1380336606_ruby-1.9.3-p125/configure.log
<pontiki> macports, like other bsd ports, cruelly but inevitably would break on me
<pontiki> i just seemed to have bad luck with it
<vpretzel> configure: error: C compiler cannot create executables
<pontiki> so i did fink
<pontiki> cos debian
<pontiki> but now homebrew has tasty deliciousness
<dorei> vpretzel: i think that this cannot create executables error is also reported when the configure script can't find/execute the C compiler
<vpretzel> home-brew has been reliable for me. Unfortunately, i don't think this is an issue with home-brew because i can install just about every other freaking ruby
<vpretzel> i can install 2.0 no problem, i'm pretty sure i could install 1.9.2 no problem will try now
maletor has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
vlad_starkov has joined #ruby
<volty> vpretzel: i don't know for sure, but could be: i install with no problem in the morning, some problems during the afternoons, and many many problems in the late evening
<vpretzel> Too bad I've been trying all day....
<pontiki> vpretzel: sorry, wasn't trying to say it's a panacea; just addressing volty's question
soheil has quit [Ping timeout: 252 seconds]
<vpretzel> successful install of 1.9.2
<vpretzel> arg.
mercwithamouth has joined #ruby
<volty> pontiki: i'll remove fink and ports from the mac and try homebrow, thanks
<vpretzel> 1.9.3-p125 is the clients choice right now, and it's giving me a good run for my money.
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
<vpretzel> Any other suggestions out there?
<volty> what gives: sudo rvm install ruby-1.9.3-p374 --with-gcc=gcc-apple-4.2
vlad_starkov has quit [Ping timeout: 240 seconds]
<volty> ?
<dorei> have u tried compiling it outside rvm?
w3pm has quit [Ping timeout: 252 seconds]
<volty> ops p125
<volty> dorei: same prob. since the code isn't clang compatible
hamakn has quit [Ping timeout: 256 seconds]
taternuts has quit [Ping timeout: 260 seconds]
<volty> brew tap homebrew/dupes \n brew-install apple-gcc42
<volty> this one too, without requiring apple-gcc42, just with regular gcc: CFLAGS="-Wno-error=shorten-64-to-32"
<vpretzel> I have not tried outside of rvm to be honest
<volty> vpretzel: try this last with, prefix with those CFLAGS that prevent that error just CFLAGS = ... rvm install ...
<vpretzel> The irony of that CFLAGS i learned today is that RVM already attempts to apply that
<vpretzel> I'm this close to doing a full wipe of my system, sadly.
<vpretzel> Same issue CFLAGS, same with sudo gcc
<vpretzel> but it wasn't gcc-apple-4.2 it was apple-gcc42
<volty> maybe the different package managers name it differently
<volty> by order:
xk_id has quit [Quit:
<vpretzel> Try macports?
<vpretzel> I have nothing to lose at this point
<volty> JUST: CFLAGS="-Wno-error=shorten-64-to-32" rvm install ruby-1.9... (and nothing else)
<volty> should work
<vpretzel> not even ruby-1.9.3-p125?
<vpretzel> hah
<volty> of course ruby-1.9.3-p125
<vpretzel> Sorry :)
<vpretzel> same issue
<vpretzel> unfortunately
<vpretzel> regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsign ed long') to 'int' [-Werror,-Wshorten-64-to-32]
mayorga has quit [Ping timeout: 256 seconds]
toah has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
jonr22 has quit [Ping timeout: 248 seconds]
<volty> CCFLAGS
<volty> not CFLAGS
<volty> sorry
quazimodo has joined #ruby
Guest68161 has quit [Remote host closed the connection]
Michael has joined #ruby
Michael is now known as Guest27854
kayloos_ has joined #ruby
kofno_ has joined #ruby
kayloos_ has quit [Remote host closed the connection]
GeissT_ has joined #ruby
quoin has quit [Ping timeout: 252 seconds]
tjad has joined #ruby
brupeb has joined #ruby
Tearan_ has joined #ruby
keyvan_ has quit [Ping timeout: 264 seconds]
DrCode has quit [Ping timeout: 240 seconds]
drizz has quit [Quit: leaving]
freerobby has joined #ruby
kayloos has quit [Ping timeout: 264 seconds]
Tearan has quit [Ping timeout: 264 seconds]
oddalot has quit [Ping timeout: 264 seconds]
preller has quit [Ping timeout: 264 seconds]
justinweiss has quit [Ping timeout: 264 seconds]
lewellyn has quit [Ping timeout: 264 seconds]
Tearan_ is now known as Tearan
drizz has joined #ruby
lewellyn has joined #ruby
iliketurtles has joined #ruby
<vpretzel> ARGH the irony volty !!! I tried compiling from source and i get the SAME error
oddalot has joined #ruby
GeissT has quit [Ping timeout: 264 seconds]
Galgorth has quit [Ping timeout: 264 seconds]
nisstyre has quit [Ping timeout: 264 seconds]
sniffingcats has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 264 seconds]
preller has joined #ruby
sniffingcats has joined #ruby
justinweiss has joined #ruby
DrCode has joined #ruby
nisstyre has joined #ruby
<volty> not possible, CCFLAGS (two 'C') should prevent that error // try to export the variable (EXPORT CCFLAGS = ... ) try to see the configuration file of your cc
Galgorth has joined #ruby
|jemc| has joined #ruby
Clooth has quit [Quit: Leaving...]
<volty> don't know, one c, two c's ...
<vpretzel> Trying it with 2 c's right now
nari has quit [Ping timeout: 245 seconds]
<vpretzel> But i believe it's only C
<vpretzel> for c-language
<vpretzel> yeah same error
<volty> yes but the compiler is cc // who knows ...
julweber has joined #ruby
<volty> try to force that apple-gcc
<volty> somebody removed xcode
mayorga has joined #ruby
dnyy has quit [Ping timeout: 245 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
<vpretzel> I have Xcode on my machine
<vpretzel> i'm an iOS dev too ha
davidboy has quit [Ping timeout: 245 seconds]
<vpretzel> Maybe ruby is trying to tell me something.
mrsolo has joined #ruby
mattyohe has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 256 seconds]
<pontiki> software is a communication to the developer
Guest27854 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
kvirani has joined #ruby
<volty> the last resort is going to edit that file directly, casting explicitly
heidi has quit [Quit: Leaving.]
julweber has quit [Ping timeout: 240 seconds]
hamakn has joined #ruby
tkuchiki has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
kvirani has quit [Ping timeout: 248 seconds]
<vpretzel> urgh well i give up
<vpretzel> tomorrow i do a wipe :(
GeissT_ has quit [Quit: MillBroChat AdIRC User]
fixl has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
volty has quit [Quit: Konversation terminated!]
bonhag has quit [Quit: bonhag]
bonhag has joined #ruby
machuga is now known as machuga|away
Ox6abe has quit [Remote host closed the connection]
AlSquire has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
hamakn has quit [Ping timeout: 256 seconds]
Pent has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
__eka__ has quit [Ping timeout: 252 seconds]
Hanmac has quit [Ping timeout: 248 seconds]
b00stfr3ak has quit [Remote host closed the connection]
kazuuu has joined #ruby
Jdubs has joined #ruby
brupeb has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
chuk_ has quit [Ping timeout: 248 seconds]
zero7 has quit [Read error: Operation timed out]
petey has quit [Remote host closed the connection]
kapowaz has quit [Ping timeout: 252 seconds]
tgraham has joined #ruby
fourq_ has quit [Ping timeout: 256 seconds]
HavokOC has quit [Ping timeout: 245 seconds]
xerxas has quit [Read error: Operation timed out]
Scorchin has quit [Ping timeout: 245 seconds]
lectrick has quit [Ping timeout: 260 seconds]
karlfreeman has quit [Ping timeout: 240 seconds]
denysonique has quit [Ping timeout: 248 seconds]
Guest85414__ has quit [Ping timeout: 260 seconds]
rndstr has quit [Ping timeout: 260 seconds]
tommyvyo has quit [Ping timeout: 260 seconds]
ziyadb has quit [Ping timeout: 260 seconds]
bluehavana has quit [Ping timeout: 248 seconds]
justsee has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
Jdubs_ has joined #ruby
tgraham has quit [Ping timeout: 245 seconds]
heidi has joined #ruby
Jdubs has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
vlad_starkov has joined #ruby
mayorga has quit [Ping timeout: 256 seconds]
Dreamer3 has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
cj3kim_ has joined #ruby
cfanning has quit [Quit: WeeChat 0.4.0]
larissa has quit [Quit: Leaving]
quoin has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 248 seconds]
nanoxd has quit [Quit: nanoxd]
freerobby has quit [Quit: Leaving.]
bluehavana has joined #ruby
senayar has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
adkron has quit [Ping timeout: 245 seconds]
polaco is now known as polaco_zZz
vim_shim has quit [Ping timeout: 260 seconds]
jpinnix has joined #ruby
Michael has joined #ruby
marius has quit [Quit: x]
Michael is now known as Guest62047
marius has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
DanKnox_away is now known as DanKnox
Bosox20051 has quit [Ping timeout: 248 seconds]
nari has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
huoxito has quit [Quit: Leaving]
TomRone has quit [Ping timeout: 245 seconds]
stnly has quit [Ping timeout: 248 seconds]
coderhs has joined #ruby
St_Marx has joined #ruby
dodosan has joined #ruby
indigo has quit [Ping timeout: 245 seconds]
cucumbrman has quit [Ping timeout: 264 seconds]
Jdubs_ has quit [Remote host closed the connection]
kofno_ has quit [Ping timeout: 252 seconds]
waxjar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
dodosan_ has joined #ruby
indigo has joined #ruby
cibs has quit [Ping timeout: 256 seconds]
St_Marx has quit [Client Quit]
dodosan has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
vlad_starkov has joined #ruby
kvirani has joined #ruby
stnly has joined #ruby
TomRone has joined #ruby
cibs has joined #ruby
waxjar has joined #ruby
St_Marx has joined #ruby
nazty has joined #ruby
cucumbrman has joined #ruby
jamesaanderson has joined #ruby
browndawg has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Lewix has quit [Ping timeout: 240 seconds]
kvirani has quit [Ping timeout: 248 seconds]
vim_shim has joined #ruby
nanoxd has joined #ruby
dorei has quit []
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
okinomo has joined #ruby
ananthakumaran has joined #ruby
tommyvyo has joined #ruby
Hanmac has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dallasm has quit [Remote host closed the connection]
end_guy has joined #ruby
twoshot_ has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
bonhag has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
DanKnox is now known as DanKnox_away
ananthakumaran has quit [Ping timeout: 264 seconds]
brianpWins has quit [Quit: brianpWins]
okinomo has quit [Ping timeout: 256 seconds]
mmitchell has quit [Remote host closed the connection]
tgraham has joined #ruby
mmitchell has joined #ruby
brianpWins has joined #ruby
tgraham has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
mmitchell has quit [Ping timeout: 248 seconds]
amacgregor_ has joined #ruby
vlad_starkov has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Ping timeout: 264 seconds]
RichardBaker has joined #ruby
fgo has joined #ruby
julweber has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
mrsolo has joined #ruby
heidi has quit [Quit: Leaving.]
kaldrenon has joined #ruby
julweber has quit [Ping timeout: 248 seconds]
relix has joined #ruby
nari has joined #ruby
cj3kim_ has joined #ruby
kaldrenon has quit [Ping timeout: 248 seconds]
adeponte has quit [Remote host closed the connection]
r0bgl33s0n has quit [Ping timeout: 245 seconds]
cj3kim_ has quit [Ping timeout: 248 seconds]
nanoxd has quit [Quit: nanoxd]
godd2_ has joined #ruby
vishal has joined #ruby
xcfox has joined #ruby
fgo has quit [Remote host closed the connection]
kofno has joined #ruby
jonahR has joined #ruby
jamesaanderson has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
lucazi has joined #ruby
vlad_starkov has joined #ruby
gyzmodo has joined #ruby
keyvan_ has joined #ruby
lucazi has quit [Client Quit]
iliketurtles has joined #ruby
lucazi has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
lucazi has quit [Client Quit]
lucazi has joined #ruby
lukec has quit [Quit: lukec]
atno has quit [Read error: Connection reset by peer]
mattyohe has joined #ruby
fgo has joined #ruby
atno has joined #ruby
davidboy has joined #ruby
sectionme has joined #ruby
martin_work has joined #ruby
Hanmac has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sectionme has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
Asher has quit [Quit: Leaving.]
Ripp__ has joined #ruby
Asher has joined #ruby
mrsolo has joined #ruby
dnyy has joined #ruby
ewnd9 has quit [Read error: Operation timed out]
Hanmac has quit [Ping timeout: 256 seconds]
roadt has quit [Ping timeout: 245 seconds]
nari has quit [Ping timeout: 248 seconds]
brianpWins has quit [Quit: brianpWins]
martin_work has quit [Quit: martin_work]
dodosan_ has quit [Ping timeout: 248 seconds]
Macaveli has joined #ruby
BizarreCake has joined #ruby
tgraham has joined #ruby
staafl has joined #ruby
toah has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgraham has quit [Ping timeout: 256 seconds]
heidi has joined #ruby
Bry8Star{T2 has joined #ruby
jonahR has quit [Quit: jonahR]
l3ck has joined #ruby
l3ck has quit [Client Quit]
roadt has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
vishal has quit [Remote host closed the connection]
vpretzel has quit [Quit: vpretzel]
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
relix has joined #ruby
saarinen has quit [Quit: saarinen]
mrsolo has quit [Quit: This computer has gone to sleep]
nbrosnahan has joined #ruby
nbrosnahan has quit [Client Quit]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has joined #ruby
godd2_ has quit [Ping timeout: 250 seconds]
nbrosnahan has joined #ruby
ewnd9 has joined #ruby
mrsolo has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
apok has quit [Quit: apok]
fourq__ has joined #ruby
lectrick has joined #ruby
intuxicated has joined #ruby
Scorchin has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
ziyadb has joined #ruby
karlfreeman has joined #ruby
HavokOC has joined #ruby
apeiros has joined #ruby
rndstr has joined #ruby
zero7 has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Guest85414__ has joined #ruby
xjiujiu has joined #ruby
denysonique has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kapowaz has joined #ruby
chuk_ has joined #ruby
xerxas has joined #ruby
adeponte has joined #ruby
Monie has joined #ruby
arusso has quit [Quit: Adios Amigos!]
aryaching has joined #ruby
scottstamp is now known as zz_scottstamp
ananthakumaran1 has joined #ruby
arusso has joined #ruby
Jetchisel has joined #ruby
Monie has quit [Client Quit]
ananthakumaran has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
adeponte has quit [Ping timeout: 260 seconds]
kvirani has joined #ruby
vlad_starkov has joined #ruby
twoshot_ has quit [Ping timeout: 248 seconds]
kvirani has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
cj3kim_ has quit [Ping timeout: 264 seconds]
hanmac1 has joined #ruby
kil0byte has joined #ruby
tatsuya_o has joined #ruby
rippa has joined #ruby
bonhag has joined #ruby
hanmac1 has quit [Ping timeout: 256 seconds]
Macaveli has quit [Ping timeout: 245 seconds]
spacebug has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
bonhag has quit [Ping timeout: 245 seconds]
noop has joined #ruby
tgraham has joined #ruby
osvico has quit [Ping timeout: 248 seconds]
toah has quit [Ping timeout: 260 seconds]
tgraham has quit [Ping timeout: 256 seconds]
|jemc| has quit [Ping timeout: 240 seconds]
leehambley has quit [Ping timeout: 245 seconds]
leehambley has joined #ruby
amacgregor has joined #ruby
vlad_starkov has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran1 has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Max SendQ exceeded]
amacgregor_ has quit [Ping timeout: 248 seconds]
zarul has quit [Ping timeout: 268 seconds]
bricker`1A has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ayaz has joined #ruby
ananthakumaran has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
amacgregor has quit [Ping timeout: 252 seconds]
Kar- has joined #ruby
cj3kim_ has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
LiquidInsect has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
bricker`LA has joined #ruby
OdNairy has quit []
T_T has joined #ruby
hogeo has joined #ruby
LiquidInsect has joined #ruby
tatsuya_o has joined #ruby
T_T has quit [Remote host closed the connection]
pushpak has joined #ruby
arietis has joined #ruby
T_T has joined #ruby
intuxicated has quit [Ping timeout: 245 seconds]
Bosox20051 has joined #ruby
krz has joined #ruby
sectionme has joined #ruby
Nogbit has joined #ruby
Guest62047 has quit [Remote host closed the connection]
<Nogbit> has anyone worked with Glade for creating GUI's and programming in Ruby? Whats your thoughts or other recommendations?
<coderhs> I have seen tutorials with it. Looks good, though the only implementation i have seen is a calculator
sectionme has quit [Ping timeout: 240 seconds]
LiquidInsect has quit [Ping timeout: 240 seconds]
row has joined #ruby
<Nogbit> hmm, I'm also looking into wxRuby/wxWidgets, I know thats apples to oranges comparing that to Glade
vlad_starkov has joined #ruby
boboc has joined #ruby
toah has joined #ruby
quoin has quit [Remote host closed the connection]
DeanH_ has joined #ruby
DeanH has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
heidi has quit [Quit: Leaving.]
greenride has left #ruby [#ruby]
cj3kim_ has quit [Read error: Connection reset by peer]
ehaliewicz has quit [Ping timeout: 248 seconds]
quoin has joined #ruby
cj3kim_ has joined #ruby
intuxicated has joined #ruby
quoin has quit [Read error: Connection reset by peer]
ananthakumaran1 has joined #ruby
hanmac1 has joined #ruby
quoin has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
threesome has joined #ruby
boboc has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
boboc has joined #ruby
nari has quit [Ping timeout: 248 seconds]
hanmac1 has quit [Ping timeout: 260 seconds]
DanKnox_away is now known as DanKnox
T_T has quit [Remote host closed the connection]
boboc has quit [Client Quit]
mrsolo has quit [Quit: Leaving]
zarubin has joined #ruby
DanKnox is now known as DanKnox_away
boboc has joined #ruby
boboc has quit [Client Quit]
boboc has joined #ruby
LiquidInsect has quit [Ping timeout: 260 seconds]
tgraham has joined #ruby
LiquidInsect has joined #ruby
schaerli has joined #ruby
quoin has quit [Remote host closed the connection]
quoin has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran1 has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
tgraham has quit [Ping timeout: 245 seconds]
ananthakumaran has joined #ruby
lucazi is now known as lucazi_away
iliketurtles has quit [Quit: zzzzz…..]
Tearan has quit [Quit: Sleepy Badger....]
cj3kim_ has quit [Read error: Connection reset by peer]
quoin has quit [Ping timeout: 260 seconds]
Liothen has quit [Quit: System of a down……]
cj3kim_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
boboc has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
ndrei has joined #ruby
johnnyfuchs has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
boxmein has joined #ruby
krz has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
krz has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
julweber has joined #ruby
lucazi_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
bobthenameless has joined #ruby
NinjaPenguin_ has quit [Ping timeout: 248 seconds]
maletor has quit [Client Quit]
tatsuya_o has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
zacts has joined #ruby
dsferreira has joined #ruby
coderhs has quit [Ping timeout: 245 seconds]
gcds_ has joined #ruby
kil0byte has quit [Remote host closed the connection]
<gcds_> Morning everyone
<gcds_> is it possible to debug multi process ruby script?
kil0byte has joined #ruby
RDash[AW] is now known as RDash
kil0byte has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 248 seconds]
<ccooke> gcds_: yes, of course
<gcds_> because ruby-debug-ide is just lost...
T_T has joined #ruby
<ccooke> ah, with the debugger
<gcds_> just enters the fork and crashes
afarazit has joined #ruby
obs has joined #ruby
quoin has joined #ruby
atno has quit [Quit: Leaving]
atno has joined #ruby
Bosox20051 has quit [Read error: Connection reset by peer]
weems has quit [Read error: Connection reset by peer]
pygospa has quit [Disconnected by services]
quoin has quit [Ping timeout: 264 seconds]
TheRealPygo has joined #ruby
sumark_ is now known as sumark
wchun has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
<jrobeson> would pry do better at that ?
<jrobeson> i'm not sure
<jrobeson> worth a look anyways gcds
atno has quit [Quit: Leaving]
afarazit has quit [Remote host closed the connection]
siwica has joined #ruby
atno has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
DeanH_ has quit [Ping timeout: 245 seconds]
lucazi has joined #ruby
pushpak_ has joined #ruby
hanmac1 has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
adambeynon has joined #ruby
pushpak has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
atno has quit [Remote host closed the connection]
atno has joined #ruby
hanmac1 has quit [Ping timeout: 240 seconds]
<gcds_> thanks jrobeson
mengu has joined #ruby
Bosox20051 has joined #ruby
Bosox20051 has joined #ruby
predator217 has joined #ruby
Nogbit has left #ruby [#ruby]
carraroj has quit [Ping timeout: 264 seconds]
mansi has quit [Remote host closed the connection]
tgraham has joined #ruby
postmodern has joined #ruby
mansi has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
blackmes1 has joined #ruby
browndawg has joined #ruby
tgraham has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 256 seconds]
spider-mario has joined #ruby
boxmein is now known as [boxmein]
coderhs has joined #ruby
wallerdev has quit [Quit: wallerdev]
quoin has joined #ruby
pyrac has joined #ruby
carraroj has joined #ruby
julweber has quit [Remote host closed the connection]
Bosox20051 has quit [Quit: Leaving]
zarubin has quit [Ping timeout: 248 seconds]
carraroj has quit [Ping timeout: 240 seconds]
[boxmein] has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
Advocation has joined #ruby
boxmein has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
sectionme has joined #ruby
xjiujiu has joined #ruby
sectionme has quit [Ping timeout: 248 seconds]
gcds_ has quit [Quit: gcds_]
zarul has joined #ruby
Alina-malina has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
haxrbyte has quit [Remote host closed the connection]
sepp2k has joined #ruby
schaerli has joined #ruby
postmodern has quit [Quit: Leaving]
DrIDK2 has joined #ruby
<DrIDK2> hello ! Could you explain how can I create my own property ? Like : http://pastebin.com/EgKHMzsb
<DrIDK2> I found in many ruby code, some keyword like that directly inside the class
<DrIDK2> And I wonder how it works
<DrIDK2> class Car property: test end
decoponio has joined #ruby
schaerli has quit [Remote host closed the connection]
eldariof has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
apok has joined #ruby
zarubin has joined #ruby
arietis has joined #ruby
hanmac1 has joined #ruby
nari has joined #ruby
eldariof has quit [Ping timeout: 245 seconds]
nbrosnahan has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hanmac1 has quit [Read error: Operation timed out]
intuxicated has quit [Ping timeout: 256 seconds]
Advocation has quit [Quit: Advocation]
Notte has joined #ruby
tgraham has joined #ruby
mansi has joined #ruby
hogeo has quit [Remote host closed the connection]
seaworthy has left #ruby [#ruby]
rahulkmr has joined #ruby
tgraham has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 256 seconds]
intuxicated has joined #ruby
reborno has joined #ruby
nbrosnahan has joined #ruby
mansi has joined #ruby
nbrosnahan has quit [Client Quit]
jbpros has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
xjiujiu has quit [Ping timeout: 248 seconds]
mansi has quit [Ping timeout: 245 seconds]
zz_scottstamp is now known as scottstamp
Xeago has joined #ruby
noop has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
xjiujiu has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
tatsuya_o has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> Okay, let's scrape some websites, nokogiri seems nice
quazimodo has joined #ruby
wm3|zZz is now known as wm3|away
DrIDK2 has quit [Read error: Operation timed out]
Bosox20051 has joined #ruby
quazimodo has quit [Ping timeout: 240 seconds]
Jdubs has joined #ruby
xjiujiu_ has joined #ruby
davidcelis has quit [Ping timeout: 248 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
emdub_ has quit [Ping timeout: 248 seconds]
emdub has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
fenicks has joined #ruby
xjiujiu has quit [Ping timeout: 248 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
zarubin has quit [Ping timeout: 245 seconds]
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
Guest39470 has joined #ruby
Guest39470 has quit [Excess Flood]
sayan has joined #ruby
davidcel- has joined #ruby
Jdubs has quit [Remote host closed the connection]
wchun has joined #ruby
eldariof has joined #ruby
wchun has quit [Read error: Connection reset by peer]
wchun has joined #ruby
gcds_ has joined #ruby
gcds_ has quit [Client Quit]
joker_ has joined #ruby
jibi has joined #ruby
Advocation has quit [Quit: Advocation]
lucazi is now known as lucazi_away
DrIDK2 has joined #ruby
Xanderby has quit [Quit: Xanderby]
jbpros has quit [Quit: jbpros]
obs has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
fenicks has quit [Remote host closed the connection]
obs has joined #ruby
ismlages has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
<TwinkleHood> Hey, I'm having some problems with sockets, if I run a TCPServer in irb, and a client I can connect them fine. But when I do session.gets on the client, and server.puts on the server, it gives me Errno:EPIPE: Broken pipe
joeyzou has joined #ruby
xjiujiu has joined #ruby
sevenseacat has quit [Ping timeout: 240 seconds]
zets has quit [Ping timeout: 248 seconds]
zets has joined #ruby
eldariof has quit [Ping timeout: 264 seconds]
m8 has joined #ruby
lucazi_away is now known as lucazi
sevenseacat has joined #ruby
hanmac1 has joined #ruby
Dwarf has quit [Max SendQ exceeded]
xjiujiu_ has quit [Ping timeout: 248 seconds]
Dwarf has joined #ruby
Guest72810 has joined #ruby
<Dwarf> Anyone got any experience with with DataMapper? I'm creating a record but it fails sporadicly
hanmac1 has quit [Ping timeout: 256 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
conner has quit [Ping timeout: 264 seconds]
tatsuya_o has quit [Remote host closed the connection]
quazimodo has joined #ruby
xjiujiu has quit [Ping timeout: 248 seconds]
dzhulk has joined #ruby
tgraham has joined #ruby
mjmac has quit [Ping timeout: 264 seconds]
dallasm has joined #ruby
mjmac has joined #ruby
tgraham has quit [Ping timeout: 260 seconds]
obs has quit [Quit: Konversation terminated!]
blackmes1 has joined #ruby
k610 has joined #ruby
mansi has joined #ruby
gcds_ has joined #ruby
quazimodo has quit [Ping timeout: 248 seconds]
okinomo has joined #ruby
vlad_starkov has joined #ruby
okinomo has quit [Client Quit]
lkba has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
jarr0dsz has joined #ruby
<jarr0dsz> hi everyone im getting a issue with ruby 2.1.0 preview 1
<jarr0dsz> digest/sha2 cannot be load im using ruby 2.1.0dev (2013-09-22 trunk 43011) [i686-linux]
<jarr0dsz> is that a known issue? lookedup core docs the functionality is not merged out according to docs
Speed has joined #ruby
quazimodo has joined #ruby
boxmein has quit [Ping timeout: 240 seconds]
DaZ_ has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
atno has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
ananthakumaran has quit [Ping timeout: 248 seconds]
Advocation has joined #ruby
DaZ has quit [Ping timeout: 268 seconds]
DaZ_ is now known as DaZ
siwica has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
dzhulk1 has joined #ruby
dzhulk has quit [Ping timeout: 256 seconds]
lucazi is now known as lucazi_away
DrIDK2 has quit [Remote host closed the connection]
Kar- has quit [Quit: leaving]
davidcel- is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
atno has joined #ruby
atno has quit [Client Quit]
atno has joined #ruby
zeknox has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
pushpak_ has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has quit [Remote host closed the connection]
browndawg has joined #ruby
rahulkmr has quit [Ping timeout: 252 seconds]
lucazi_away is now known as lucazi
kvirani has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
colonolGron has joined #ruby
kvirani has quit [Ping timeout: 248 seconds]
homelinen has left #ruby ["Leaving"]
xk_id has joined #ruby
sniffingcats has joined #ruby
Ripp__ has quit []
colonolGron has quit [Ping timeout: 248 seconds]
hanmac1 has joined #ruby
siwica has joined #ruby
zephdev has joined #ruby
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sniffingcats> Is anyone aware of a gem/library allowing to easy generating of "heatmaps" of the world? Like "number of people all over the world", etc.
<AntelopeSalad> is it better to always include "self." when using instance method variables for clarity or is it more ruby-like to just leave it off?
<apeiros> I prefer leaving `self.` off
<banisterfiend> AntelopeSalad the only time we need self. is when we're using setters
<AntelopeSalad> banisterfiend: so you leave it off too?
hanmac1 has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
<banisterfiend> AntelopeSalad Yeah
jb41 has joined #ruby
<AntelopeSalad> i'm looking at a few open source rails projects and it seems both styles are used frequently
siwica has quit [Ping timeout: 256 seconds]
<banisterfiend> AntelopeSalad can you show an example of it being used? maybe there's a reason for it unrelated to just stylistic
<shevy> AntelopeSalad after you type a few hundred times self.foo when you could instead use foo, you'll start to omit self.
<AntelopeSalad> ok fair enough, i was just confused because i saw this line: self.errors.add(:foo, "does not exist.")
<AntelopeSalad> (in a rails model class)
zephdev has quit [Remote host closed the connection]
<banisterfiend> AntelopeSalad it could also be disambiguating from a local of the same name
jarr0dsz has joined #ruby
<AntelopeSalad> with the knowledge that self. is optional then it's correct to say that the errors method gets added to your model instance by default?
<banisterfiend> AntelopeSalad yeah
<AntelopeSalad> ok cool, now it makes sense -- thanks
<banisterfiend> AntelopeSalad but these are rails questions :) and we don't really like them here, there's tonnes of rails-specific questions on free node :)
<banisterfiend> rails-specific channels*
kofno has quit [Ping timeout: 245 seconds]
lucazi is now known as lucazi_away
<AntelopeSalad> banisterfiend: the self. thing was general ruby!
vlad_starkov has quit [Remote host closed the connection]
<banisterfiend> AntelopeSalad yes, that part was :)
colonolGron has joined #ruby
tgraham has joined #ruby
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has joined #ruby
Amnesia has left #ruby [#ruby]
atno has quit [Quit: leaving]
mengu has quit [Remote host closed the connection]
tgraham has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
ewnd9 has quit [Ping timeout: 260 seconds]
end_guy has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
end_guy has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
adkron has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mansi has joined #ruby
kay__ has quit [Remote host closed the connection]
<platzhirsch> What would be the fasted substring checking in Ruby? include? ?
vlad_starkov has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
starfox21 has joined #ruby
kitak has joined #ruby
Notte has quit [Remote host closed the connection]
r0bgl33s0n has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<platzhirsch> yeah, include? seems fine ..
lkba has quit [Ping timeout: 252 seconds]
existensil has quit [Ping timeout: 245 seconds]
IceyEC has joined #ruby
<weeb1e> I don't suppose there is a ruby-ffi IRC channel
existensil has joined #ruby
IceyEC has quit [Client Quit]
kay_ has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
thesheff17 has quit [Remote host closed the connection]
funburn has joined #ruby
gcds_ has quit [Ping timeout: 252 seconds]
jbpros has joined #ruby
<weeb1e> I can't seem to find a 16 bit char type for FFI, I need something to use for what the WinAPI calls TCHAR or WCHAR
<shevy> weeb1e is on fire
<shevy> and only because the existing GUIs are too huge :>
<shevy> platzhirsch you could use a regex!
<weeb1e> When everything else fails you, start from the very beginning.
boxmein has joined #ruby
<weeb1e> But doesn't help if FFI doesn't seem to support a 16 bit char...
<weeb1e> I'm not sure what I'm supposed to do here
ewnd9 has joined #ruby
colonolGron has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
kvirani has joined #ruby
<xybre> weeb1e: can't use a :ushort?
m8 has quit [Ping timeout: 248 seconds]
<weeb1e> xybre: It is a char array
<weeb1e> TCHAR szTip[64];
<weeb1e> Can I use ushort for that?
Notte has joined #ruby
m8 has joined #ruby
<xybre> Oh its an array. If you can't use an array of ushort then try :string.
gcds_ has joined #ruby
<weeb1e> Ok, thanks
lucazi_away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucazi has joined #ruby
joeyzou has quit [Ping timeout: 248 seconds]
kvirani has quit [Ping timeout: 248 seconds]
<weeb1e> If I don't come right I'll make a post
funburn has quit [Quit: funburn]
taternuts has joined #ruby
trq has left #ruby [#ruby]
eka has joined #ruby
dhruvasagar has quit [Ping timeout: 248 seconds]
Notte has quit [Ping timeout: 256 seconds]
Elhu has joined #ruby
hanmac1 has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jonr22 has joined #ruby
Pent has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucazi has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
hanmac1 has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby
sectionme has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
colonolGron has joined #ruby
KobraKao has joined #ruby
row has quit [Ping timeout: 240 seconds]
tgraham has joined #ruby
jbpros has quit [Quit: jbpros]
Popple has joined #ruby
sectionme has quit [Ping timeout: 240 seconds]
<shevy> go weeb1e go!!!
<shevy> beat them into submission
<shevy> break their necks, snap it like a twig!
osvico has joined #ruby
<weeb1e> shevy: At least let me get to a point of testing before you start :P
<shevy> testing is too professional
<shevy> real men don't write software with bugs
<weeb1e> The sleep deprevation is really starting to kick in now, but I'm not ready to give up yet
joeyzou has joined #ruby
tgraham has quit [Ping timeout: 240 seconds]
<shevy> give up man
<shevy> you are too tired
Pent has joined #ruby
<weeb1e> What the hell is this __uuidof thing
raphaelivan has joined #ruby
Pent has quit [Max SendQ exceeded]
<weeb1e> It appears to be a compiler function, god help me
colonolGron has quit [Quit: Lost terminal]
<shevy> you are digging deep
<weeb1e> Not deep enough!
coderhs has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
boxmein has quit [Ping timeout: 240 seconds]
<krz> given https://gist.github.com/6740814 how can i group by and sum?
emergion has quit [Quit: Computer has gone to sleep.]
starfox21 has quit [Quit: starfox21]
Elhu has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banister has joined #ruby
adkron has quit [Ping timeout: 256 seconds]
mengu has quit [Ping timeout: 264 seconds]
funburn has joined #ruby
raphaelivan has quit [Quit: Leaving.]
Advocation has quit [Quit: Advocation]
Advocation has joined #ruby
k610 has joined #ruby
nouitfvf_ has quit []
<apeiros> krz: what have you tried?
Michael has joined #ruby
Michael is now known as Guest86055
blackmes1 has quit [Quit: WeeChat 0.4.1]
banister has quit [Quit: Computer has gone to sleep.]
spudurman has joined #ruby
joeyzou has quit [Remote host closed the connection]
atno has joined #ruby
mercwithamouth has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Yvemath has joined #ruby
ZoanthusR has joined #ruby
Yvemath has quit [Client Quit]
St_Marx has quit [Ping timeout: 240 seconds]
dzhulk has joined #ruby
dzhulk1 has quit [Ping timeout: 248 seconds]
kitak has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 248 seconds]
wm3|away is now known as workmad3
Advocation has quit [Quit: Advocation]
banisterfiend has joined #ruby
k610 has quit [Read error: Connection timed out]
intuxicated has quit [Remote host closed the connection]
k611 has joined #ruby
D4T has joined #ruby
arietis has joined #ruby
petey has joined #ruby
emergion has joined #ruby
<krz> apeiros: its fine. onto something. think i need to turn it into an array first
coderhs has joined #ruby
<D4T> hi all, I have a string of "0.00000400" that I want to increase the value of by 10% but struggling as floats don't seem to play nice. anyone have any suggestions?
<platzhirsch> Trying to spell check arbitrary text with just Aspell and some additional rules is a horrible idea..
lancepantz has quit [Ping timeout: 264 seconds]
<apeiros> D4T: require 'bigdecimal', that has arbitrary precision
<D4T> apeiros: ok thanks! :)
funburn has quit [Quit: funburn]
clocKwize has quit [Ping timeout: 264 seconds]
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
clocKwize has joined #ruby
nari has quit [Ping timeout: 240 seconds]
atno has quit [Quit: leaving]
Clooth has joined #ruby
Domon_ has quit [Ping timeout: 245 seconds]
DrShoggoth has quit [Read error: Connection reset by peer]
Domon_ has joined #ruby
juo has quit [Ping timeout: 245 seconds]
ehc has joined #ruby
ayaz has quit [Ping timeout: 245 seconds]
DrForr has quit [Ping timeout: 245 seconds]
__main__ has quit [Ping timeout: 245 seconds]
DrForr_ has joined #ruby
lucazi has joined #ruby
bubbajones has quit [Ping timeout: 245 seconds]
juo has joined #ruby
bubbajones has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
schaerli_ has joined #ruby
D4T has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 245 seconds]
SecretAgent has quit [Ping timeout: 245 seconds]
__main__ has joined #ruby
SecretAgent has joined #ruby
schaerli has quit [Read error: Connection reset by peer]
dross has quit [Ping timeout: 245 seconds]
Dwarf has quit [Max SendQ exceeded]
banisterfiend has joined #ruby
Dwarf has joined #ruby
D4T has joined #ruby
dross has joined #ruby
zac_o_O has joined #ruby
starfox21 has joined #ruby
toah has quit [Ping timeout: 245 seconds]
swordsmanz has quit [Read error: Operation timed out]
ehc has quit [Ping timeout: 264 seconds]
tgraham has joined #ruby
mdst3 has joined #ruby
julweber has joined #ruby
<D4T> apeiros: I'm struggling even with bigdecimal :( i think because of the value I end up with notation like "4.0e-06"
siwica has joined #ruby
<D4T> I'm struggling them to turn that into anything useful
mdst has quit [Read error: Connection reset by peer]
<apeiros> D4T: BigDecimal#to_s with 'f' as argument
<apeiros> also, shouldn't you have like 4.4e-06 if you increase the value by 10%?
<D4T> no its just the base value for now
<D4T> just playing in irb
randomnick_ has joined #ruby
zarubin has joined #ruby
tgraham has quit [Ping timeout: 252 seconds]
scottstamp is now known as zz_scottstamp
<D4T> thanks for that, i should of figured it really :/
pskosinski__ has joined #ruby
pskosinski__ is now known as pskosinski
sniffingcats has quit [Disconnected by services]
arietis has joined #ruby
brupeb has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
zac_o_O has quit []
zac_o_O has joined #ruby
zarubin has quit [Quit: Miranda NG! Smaller, Faster, Easier. http://miranda-ng.org/]
zac_o_O has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
zac_o_O has joined #ruby
zz_scottstamp is now known as scottstamp
zac_o_O has left #ruby [#ruby]
Ahti333 has joined #ruby
tgraham has joined #ruby
Jetchisel has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
mansi has joined #ruby
ZoanthusR has quit [Quit: Linkinus - http://linkinus.com]
arclit has joined #ruby
julweber has quit [Remote host closed the connection]
<Ahti333> when I call `File.open "some_file", "a", 0600` and some_file does not exist, it should be created, right?
<apeiros> Ahti333: iirc yes, it won't create directories, though
<apeiros> why?
<Ahti333> because i get a no such file or directory error ... it might be that it won't create directories
mansi has quit [Ping timeout: 248 seconds]
arclit has quit [Client Quit]
arclit has joined #ruby
<Ahti333> yes, that was it! thanks :)
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soulcake has quit [Ping timeout: 260 seconds]
jamesaanderson has joined #ruby
platzhirsch has left #ruby [#ruby]
Soda has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 240 seconds]
lilfaf has joined #ruby
Soda has quit [Read error: Operation timed out]
jkamenik has quit [Quit: Leaving.]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Clooth has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
lucazi has quit [Ping timeout: 256 seconds]
jarr0dsz has joined #ruby
jarr0dsz has quit [Client Quit]
apok has quit [Quit: apok]
KobraKao has quit [Ping timeout: 256 seconds]
Clooth has joined #ruby
Ox6abe has joined #ruby
<weeb1e> I'm definitely gonna take a break now, my vision is starting to blur
ravster has joined #ruby
jonr22 has joined #ruby
WillAmes has quit [Ping timeout: 252 seconds]
VTLob has joined #ruby
machuga|away is now known as machuga
<weeb1e> Does anyone have an idea what I'd need to do in order to be able to attach to the windows API function "LoadIconMetric"?
Guest86055 has quit [Remote host closed the connection]
Michael has joined #ruby
KobraKao has joined #ruby
<weeb1e> I've tried adding 'comctl32' to my ffi_lib with no success. I am able to use that function from VC++ with the follow:
Michael is now known as Guest71055
<weeb1e> #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
<weeb1e> #pragma comment(lib, "comctl32.lib")
kazuuu has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
schaerli_ has quit [Remote host closed the connection]
Soda has joined #ruby
Ox6abe has quit [Remote host closed the connection]
knigitz has joined #ruby
Guest71055 has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
failshell has joined #ruby
Notte has joined #ruby
relix has joined #ruby
soulcake has joined #ruby
Vivekananda has joined #ruby
<shevy> you are deep in it weeb1e
fridim_ has joined #ruby
jb41 has quit [Ping timeout: 260 seconds]
failshell has quit [Remote host closed the connection]
kitak has joined #ruby
sectionme has joined #ruby
jonr22 has quit [Ping timeout: 248 seconds]
<AntelopeSalad> has anyone gotten nokogiri to install properly with ruby 2.0?
<shevy> I am still on 1.9.3
<AntelopeSalad> i installed the libxslt-dev and libxml2-dev deps and it's still failing to install (unknown error, it just hangs)
* sevenseacat tries
<sevenseacat> it does take a while, i know that much
<AntelopeSalad> i waited a full 15 minutes
<apeiros> AntelopeSalad: works fine here
<workmad3> weeb1e: you're trying to compile it with mingw or another gcc toolchain for windows?
<sevenseacat> well mine is installing, ill let you know :P
<AntelopeSalad> thanks
<sevenseacat> fans have spun up... something is compiling
<AntelopeSalad> i'm trying to install it with bundle btw, but not directly -- i'm using a different gem that uses nokogiri 1.60
<workmad3> AntelopeSalad: installed it fine just yesterday
kitak has quit [Ping timeout: 246 seconds]
<AntelopeSalad> the bundle just hangs at installing nokogiri (1.6.0)
<shevy> aha I fail too
sectionme has quit [Ping timeout: 256 seconds]
<shevy> Fetching: nokogiri-1.6.0.gem (100%)
<shevy> Building native extensions. This could take a while...
<shevy> ERROR: Failed to build gem native extension.
<shevy> ERROR: Error installing nokogiri:
<AntelopeSalad> i never get that error output :<
starfox21 has quit [Quit: starfox21]
<workmad3> not sure I tried with 1.6
<AntelopeSalad> workmad3: i'm installing sunspot
<AntelopeSalad> or trying to at least
zarubin has joined #ruby
<sevenseacat> installed successfully
mansi has joined #ruby
<shevy> Could not create Makefile due to some reason, probably lack of
<shevy> necessary libraries and/or headers. Check the mkmf.log file for more
nanoxd has joined #ruby
<shevy> but there is no such file
<shevy> :\
T_T has joined #ruby
<shevy> someone should really work through the ruby stack and clean up that mess... to report that one should check mkmf.log when this file does not exist, is annoying
<AntelopeSalad> the installation wiki for nokogiri says you need some ruby C extensions or whatever
<AntelopeSalad> but it's all for ruby 1.8
<sevenseacat> nokogiri 1.6.0 installed under ruby 2.0.0-p247
<AntelopeSalad> i tried putting in 2.0 and they all were not found
mansi has quit [Remote host closed the connection]
<shevy> ok found one error
<shevy> cannot load such file -- mini_portile
<AntelopeSalad> sevenseacat: did you ever install a ton of ruby/C extensions?
<workmad3> shevy: I normally just have issues finding it, rather than it not existing
<workmad3> shevy: as it ends up in the ext/ directory of the partially installed gem
mansi has joined #ruby
<shevy> hmm
<AntelopeSalad> workmad3: can you do me a huge favor and try to bundle install sunspot_rails?
hanmac2 has joined #ruby
<AntelopeSalad> that is the exact lib i'm using with the same ver as ruby as you
<workmad3> AntelopeSalad: I don't have it in any bundles :P
soulcake has quit [Ping timeout: 260 seconds]
<sevenseacat> only the basics afaik
<shevy> it continues now after having installed mini_portile
<sevenseacat> i have latest version of sunspot_rails already installed under ree, if that counts
<workmad3> shevy: do you have '--ignore-dependencies' in your .gemrc?
<shevy> nope workmad3, this is a vanilla system, no default .gemrc anywhere
<shevy> and annoyingly enough it just tried to do this:
ehaliewicz has joined #ruby
<AntelopeSalad> sevenseacat: do you remember having to install anything extra to get it to install properly?
<shevy> Extracting libxml2-2.8.0.tar.gz into tmp/i486-slackware-linux/ports/libxml2/2.8.0... OK
<shevy> Running 'configure' for libxml2 2.8.0... OK
<workmad3> shevy: just a bit odd that gem didn't fetch the dependencies
<sevenseacat> not that i can remember
<shevy> I never did tell it to do any of that, and I already have libxml compiled from source into /usr prefix without error
<shevy> does nokogiri not work with libxml 2.9.1?
<AntelopeSalad> hmm maybe it's working, htop says my cpus are close to pegged
<AntelopeSalad> how the heck did it not finish in 15min though
<shevy> AntelopeSalad hehe could be anything else too ;P
TheRealPygo is now known as pygospa
leonidlm has quit [Ping timeout: 268 seconds]
<AntelopeSalad> shevy: i'm in a vm, there's close to nothing taking cpu time atm
<AntelopeSalad> but if the cpu is working hard it's probably doing something heh?
<shevy> or working through an endless loop
<AntelopeSalad> maybe but it seems to be a problem isolated to my machine, if sevenseacat has it up and working
<shevy> the sevenseacat is our last hope
mansi has quit [Ping timeout: 248 seconds]
soulcake has joined #ruby
leehambley has quit [Ping timeout: 264 seconds]
hanmac2 has quit [Ping timeout: 245 seconds]
<shevy> let's hope that it won't become sixseacat any time soon
* sevenseacat installs sunspot_rails for the fun of it
<AntelopeSalad> i'm so jealous
<workmad3> shevy: just checked the gh repo for nokogiri... 1.6 bundles libxml2 and libxstl, and needs libxml < 2.9.0 if you want to use a system one
browndawg has left #ruby [#ruby]
<workmad3> there, it just finished installing for me
<workmad3> (nokogiri that is)
<sevenseacat> aaaaaawww yeah
<workmad3> AntelopeSalad: try running 'NOKOGIRI_USE_SYSTEM_LIBRARIES=true gem install nokogiri'
<AntelopeSalad> i'll try re-running bundle
<workmad3> AntelopeSalad: and then re-bundling (assuming you've done apt-get install libxml2-dev libxslt-dev or the equivalent for your distro)
<AntelopeSalad> yeah i've done the apt-get steps
<AntelopeSalad> interesting, after re-running bundle it actually worked
kazuuu has joined #ruby
<workmad3> so re-installing and using the system libs takes a lot less time for nokogiri
<workmad3> so it's probably that which is slowing things up
MrZYX|off is now known as MrZYX
leehambley has joined #ruby
workmad3 is now known as wm3|away
<wm3|away> off again
<AntelopeSalad> ok thanks, seems like that env var just bundles those 2 deps with the gem itself
<wm3|away> no, the env-var stops it from bundling them
tgraham is now known as tgraham|away
<wm3|away> hence it being quicker (not recompiling libxml2) and the fact it says 'use system libraries'
<AntelopeSalad> yeah i see now, i was just skimming some newsgroup post
<wm3|away> https://github.com/sparklemotion/nokogiri is a better place for info ;)
haxrbyte has quit [Ping timeout: 240 seconds]
blischalk has joined #ruby
arclit_ has joined #ruby
toah has joined #ruby
kiri has quit [Ping timeout: 264 seconds]
Vivekananda has quit [Remote host closed the connection]
SkuliOskarsson has joined #ruby
geggam has joined #ruby
cody-- has quit [Ping timeout: 252 seconds]
arclit has quit [Ping timeout: 256 seconds]
arclit__ has joined #ruby
haxrbyte has joined #ruby
blischalk has quit [Ping timeout: 256 seconds]
taptapdan has joined #ruby
jnoob22 has quit [Remote host closed the connection]
arclit_ has quit [Ping timeout: 248 seconds]
xcfox has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
|jemc| has joined #ruby
sevenseacat has quit [Quit: Leaving.]
haxrbyte has quit [Ping timeout: 260 seconds]
<kke> has anyone made something that switches grape or roar into camelCaseMode when there's some header like 'X-JSON-CamelCase' present?
coderhs has quit [Ping timeout: 245 seconds]
Vivekananda has joined #ruby
noop has joined #ruby
JeanMertz has joined #ruby
lukec has joined #ruby
tgraham|away is now known as tgraham
odancer has joined #ruby
|jemc| has quit [Ping timeout: 245 seconds]
<kke> i wonder what's the deal with having roar and representable as different gems, looks like mostly roar is just doing "include Representable::Something"
odancer has left #ruby [#ruby]
rahulkmr has joined #ruby
rahulkmr has quit [Max SendQ exceeded]
julweber has joined #ruby
rahulkmr has joined #ruby
cucumbrman has quit [Remote host closed the connection]
cucumbrman has joined #ruby
julweber has quit [Ping timeout: 252 seconds]
AlSquire has joined #ruby
bricker`LA has quit [Ping timeout: 248 seconds]
quoin has quit [Remote host closed the connection]
bricker`LA has joined #ruby
JeanMertz has quit [Ping timeout: 264 seconds]
quoin has joined #ruby
Michael has joined #ruby
Michael is now known as Guest45520
tgraham has quit [Quit: Leaving...]
KobraKao has quit [Quit: Saindo]
quoin has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
Lewix has quit [Remote host closed the connection]
Zai00 has joined #ruby
soulcake has quit [Ping timeout: 260 seconds]
leehambley has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
mrsolo has joined #ruby
leehambley has joined #ruby
soulcake has joined #ruby
nomenkun has joined #ruby
wallerdev has quit [Quit: wallerdev]
Advocation has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
marsLantern has joined #ruby
PragCypher has joined #ruby
threesome has joined #ruby
JeanMertz has joined #ruby
vpretzel has joined #ruby
kazuuu has quit [Remote host closed the connection]
k611 has quit [Ping timeout: 256 seconds]
tbrock has joined #ruby
pellenation has joined #ruby
Xanderby has joined #ruby
Guest45520 has quit [Ping timeout: 245 seconds]
arclit__ has quit []
arclit has joined #ruby
IceyEC has joined #ruby
hanmac1 has joined #ruby
siwica has quit [Ping timeout: 264 seconds]
cpruitt_ has joined #ruby
mayorga has joined #ruby
sayan has joined #ruby
cpruitt has quit [Ping timeout: 248 seconds]
cpruitt_ is now known as cpruitt
Popple has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
hanmac1 has quit [Ping timeout: 248 seconds]
fgo has quit [Remote host closed the connection]
PragCypher has quit [Quit: Leaving]
Popple has joined #ruby
coderhs has joined #ruby
mklappstuhl has joined #ruby
browndawg has joined #ruby
vim_shim has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
vpretzel has quit [Read error: Connection reset by peer]
vpretzel has joined #ruby
leehambley has quit [Ping timeout: 260 seconds]
leehambley has joined #ruby
IceyEC has quit [Quit: IceyEC]
pellenation has quit [Quit: Leaving.]
lucazi has joined #ruby
<gcds_> hmm hello
<gcds_> how fastly rebuilt gem and test it?
<gcds_> without going removing from system and installing again?
jb41 has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
Aryasam has joined #ruby
<havenwood> gcds_: if you edit the gem's files the gem changes - if you want to clone the gem and build it yourself you can do that too
<gcds_> havenwood: I know.. But everytime gem uninstall gem; rake install; run gem... it's kind lame
<havenwood> gcds_: i mean just go change the gem and it is changed
<havenwood> gcds_: (the installed gem)
Popple has quit [Quit: Computer has gone to sleep.]
<havenwood> gcds_: building it yourself is only if you actually want to build the gem - if you just want to change it, do so where it got installed and it is changed with need to build anything
<wm3|away> ^^ although that's only really good if you're trying to debug the gem in a particular context
<havenwood> s/with/without
<wm3|away> you'd also need to rebuild extensions if you were trying to change the native extensions in a gem
Popple has joined #ruby
<havenwood> sure, if native ext ignore my suggestion :P
<Morrolan> Without native extensions I'd wonder why it "takes that long to rebuild the gem". :P
nomenkun has quit [Remote host closed the connection]
<havenwood> compiling, yuck
IceyEC has joined #ruby
IceyEC has quit [Client Quit]
<Morrolan> Maybe the after_install hook calls wait(10**5) ;D
sihm has joined #ruby
<wm3|away> hehe
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
brennanMKE has joined #ruby
Nenor has joined #ruby
<wm3|away> Morrolan: well, if you're doing things 'properly' then it's probably about 10s to build the gem, then maybe 30s to gem install it (dependency checks and IO operations)
boboc has joined #ruby
boboc has quit [Remote host closed the connection]
<Morrolan> That must be quite a big gem, then.
boboc has joined #ruby
<wm3|away> Morrolan: I'm assuming there's no scripting so commands are typed in ;)
<Morrolan> Oh. ;)
felipec has joined #ruby
<Morrolan> What do you mean by building it 'properly', by the way?
<felipec> can somebody explain to me why this doesn't work? p { :foo => "bar" }
<wm3|away> Morrolan: running the rake task to package it as a .gem file, then doing a 'gem install <gem>' to install it
<wm3|away> felipec: because 'p' is a method, and ruby will therefore treat the {} as a block, not as a hash
<havenwood> felipec: syntax issue, the `{` is ambiguous (interpreter thinks it is signifying beginning of a block there, not a Hash as you intend).
<wm3|away> felipec: you need explicit parens there
<wm3|away> >> p({:foo => "bar"})
<eval-in> wm3|away => {:foo=>"bar"} ... (https://eval.in/51336)
<felipec> wm3|away: yes I know p(foo) works
soulcake has quit [Ping timeout: 260 seconds]
brennanMKE has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
<wm3|away> felipec: and now you know why 'p {:explicit => "hash"}' doesn't :P
banisterfiend has quit [Quit: Computer has gone to sleep.]
<havenwood> felipec: if your parens keys are broken, you can: send :p, { :foo => "bar" }
<havenwood> :O
Elhu has quit [Quit: Computer has gone to sleep.]
petey has quit [Remote host closed the connection]
<wm3|away> felipec: or do 'hsh = {:foo => "bar"}; p hsh'
<havenwood> that would be prettier for when coworkers steal your paren keys
<felipec> I'll just use p(foo)
<havenwood> would be hard to Ruby without periods or commas, could get by without parens
<wm3|away> felipec: I tend to use ()s on most methods anyway (exceptions are 0-arg methods and the occasional class-macro)
fgo has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
soulcake has joined #ruby
<felipec> me too, with the exception of puts and p
<havenwood> comma/quote key gets used a ton in Ruby, keyboard heat-map comparison of languages is interesting i think: http://www.mahdiyusuf.com/post/9947002105/most-pressed-keys-and-programming-syntaxes-2
pskosinski has quit [Quit: Til rivido Idisti!]
quoin has joined #ruby
<havenwood> oh, that isn't a comma - i need coffee...
<havenwood> single quote/double quote
<havenwood> why is that comma flying???!
* havenwood wanders off in search of coffee...
<wm3|away> I don't trust the lisp heat-map
Phobos has joined #ruby
<wm3|away> if you're using an editor that doesn't autoclose your parens in lisp, you're going to kill your wrists way too quickly :P
sectionme has joined #ruby
<havenwood> to be fair, this isn't an analysis of keypresses, but of characters in the code
mklappstuhl has quit [Remote host closed the connection]
<wm3|away> :)
Michael has joined #ruby
<Phobos> hello all
<Phobos> How can I append an item to an existing Hash key ?
Michael is now known as Guest86264
<Phobos> say : h = {}
<havenwood> Phobos: What is the class of the key's value?
<Phobos> havenwood, a symbol
ewnd9 has quit [Read error: Operation timed out]
<Phobos> h[:key] = {}
T_T has quit [Remote host closed the connection]
<havenwood> you want to append to a symbol?: h = {key: :value}
<havenwood> like you want it to end up being `:value_with_appended_stuff` or something else?
<Phobos> I want to add a hash like { obj: 'obj_name', method: 'method_name' } to h[:key]
fgo has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
<Phobos> h[:key] = { obj: 'obj_name1', method: 'method_name' }
<Phobos> h[:key] = { obj: 'obj_name2', method: 'method_name' }
<Phobos> etc
<havenwood> aha, so the key's value is a Hash :P
sectionme has quit [Ping timeout: 240 seconds]
<Morrolan> So, after these two operations, h[:key] should contain both hashes?
<Phobos> Morrolan, EXACTLY
<Morrolan> havenwood: No, the value's value is a hash, the key is a symbol. :P
pygospa has quit [Read error: Connection reset by peer]
<Morrolan> Phobos: Then you'll need to use an array, or some other collection, for the value.
<havenwood> coffee...
<havenwood> Morrolan: why not #merge! the new stuff?
<havenwood> h[:key].merge!({ obj: 'obj_name1', method: 'method_name' })
<Phobos> Morrolan, you're right but I had some troubles with that, it's seems like I am forced to use hash because I want to access keys with their symbol name
IceDragon has joined #ruby
<Morrolan> > h = { :menu => [] }; h[:menu] << { :name => 'Spam', :price => 10 }; h[:menu] << { :name => 'Sausage', :price => 20 }; h.inspect
pygospa has joined #ruby
<Morrolan> >> h = { :menu => [] }; h[:menu] << { :name => 'Spam', :price => 10 }; h[:menu] << { :name => 'Sausage', :price => 20 }; h.inspect
<eval-in> Morrolan => "{:menu=>[{:name=>\"Spam\", :price=>10}, {:name=>\"Sausage\", :price=>20}]}" (https://eval.in/51339)
<Phobos> hackeron, it override the existing item
<Morrolan> Well, if you want to store multiple values under one key, you'll need some sort of collection.
nemesit|znc has quit [Ping timeout: 245 seconds]
<havenwood> >> h = {key: {aim: true}}; h[:key].merge!({ obj: 'obj_name1', method: 'method_name' })
<eval-in> havenwood => {:aim=>true, :obj=>"obj_name1", :method=>"method_name"} (https://eval.in/51340)
<Phobos> Morrolan, this is exactly my use case
<Phobos> Morrolan, how can I acheive that ?
<Morrolan> Use an array for the value, then append to that array.
<Morrolan> E.g. `h = { :menu => [] }; h[:menu] << { :name => 'Spam', :price => 10 }; h[:menu] << { :name => 'Sausage', :price => 20 };`
<Morrolan> Define the hash with the desired key, use an array as value. Then just append to that array.
nemesit|znc has joined #ruby
tylersmith has joined #ruby
<Phobos> Morrolan, I see.. That's the only possible method to do that ?
<Morrolan> Err, yes.
Es0teric has joined #ruby
<Morrolan> A hash is an association of keys with values. If you want to store 'multiple' values for one key, you'll need something which can contain multiple values.
SHyx0rmZ has joined #ruby
banisterfiend has joined #ruby
<Morrolan> I'm probably explaining it way more complex than required. :P
<Phobos> Morrolan, I must say.. That I find ruby great.. But coming from PHP world I can say that PHP is much ahead in Array/hash area
<Morrolan> Eh?
<Phobos> much much ahead
<Morrolan> So tell me how PHP handles it.
brennanMKE has joined #ruby
<Morrolan> (Code example works too, I can probably read it)
<Phobos> Morrolan, all the problem is that I am trying to port some PHP scripts to ruby
<Phobos> ok
<Morrolan> Unless it's using some obscure PHP magic. ;D
freerobby has joined #ruby
<Phobos> Morrolan, this is exactly what I am trying to port
conner has joined #ruby
<havenwood> Phobos: Couldn't be much further from the truth that PHP data structures are ahead of anything. Not being easy to port is no sign of superiority...
<Morrolan> That is PHP's way of appending to an array.
<wm3|away> >> {:key => "val"}.merge!(:key => "newval") {|k, o, n| Array(o) << n}
<eval-in> wm3|away => {:key=>["val", "newval"]} (https://eval.in/51341)
Advocation has quit [Quit: Advocation]
<wm3|away> that's one way of handling the merge to not overwrite
<Morrolan> `$menu = array(); $menu[]= "foo"; $menu[]= "bar"` is equivalent to `menu = []; menu << "foo"; menu << "bar"`
<Phobos> havenwood, each programming language has his pros and cons... And PHP is very stong in array/hash part
<Phobos> wm3|away, Ok thanks !
Dreamer3 has quit [Quit: Leaving...]
quoin has quit [Ping timeout: 256 seconds]
<havenwood> Phobos: I disagree. Stronger only than languages that don't implement the higher level features. Weaker than pretty much all that do.
<wm3|away> Phobos: bleh, php's arrays are awful things to work with
<Phobos> havenwood, and ruby way to achieve the same thing looks like a hack
<banisterfiend> Phobos how exactly? linking to php code that rubyists can't read isn't useful :)
<Morrolan> I still fail to see your issue, to be honest. :P
<Morrolan> PHP and Ruby aren't too different when it comes to appending to an array.
<Morrolan> One uses <<, the other []=,
platzhirsch has joined #ruby
<Phobos> wm3|away, Just look at the code :) and tell me how to convert it in your ruby way
<platzhirsch> Missing feature in a gem, wrote a pull request. Ruby is all open source :)
sihm has quit [Quit: leaving]
Advocation has joined #ruby
<Morrolan> `@listeners[event_name][priority] << listener` ta-da.
<Phobos> banisterfiend, it's Morrolan who asked me that
<wm3|away> Phobos: you mean ary.push ?
<wm3|away> Phobos: or << ?
<IceDragon> concat works too
<wm3|away> @listeners[event_name][priority].push(listener)
<wm3|away> or even +=
kiri has joined #ruby
<AntelopeSalad> wm3|away: mind if i pm you really quick?
<Phobos> Morrolan, yeah now the problem is with sorting.. That was my too first attempt ;)
<wm3|away> AntelopeSalad: I'm about to run away again, sorry
<Morrolan> Be more specific.
<Morrolan> I can't read your mind.
<havenwood> Phobos: @listeners[event_name][priority] << listener
<AntelopeSalad> ok np
<Morrolan> havenwood: You're late to the party. :P
pyrac has quit [Quit: pyrac]
<havenwood> .push and += are fugly
<Morrolan> Indeed.
<Phobos> Morrolan, OK the correct way to the do you trick is
<Phobos> @listeners[event_name] ||= {}
<Phobos> @listeners[event_name] ||= {}
<Morrolan> (+= won't even work if the other isn't an array)
<Phobos> @listeners[event_name][property] ||= {}
<Phobos> @listeners[event_name][priority].push(listener)
<Phobos> 3 lines
<wm3|away> Phobos: btw, https://github.com/symfony/EventDispatcher/blob/master/EventDispatcher.php#L181-L182 is an example of how PHPs array 'support' is pretty shit
Monie has joined #ruby
<Phobos> wm3|away, for your little brain :)
<Morrolan> Phobos: Erm, yes. Accessing a key which wasn't set does make no sense whatsoever. How should Ruby know what to initialize it with?
<Phobos> wm3|away, not for thousand of other experts
<wm3|away> Phobos: yeah, that's the way to go... insulting people :P
<Morrolan> Hashes can be *told* what value to use for unset keys, but they can't rind your mind.
<wm3|away> Phobos: btw, it's not that I fail to comprehend it
<wm3|away> Phobos: it's that the way it's implemented is complete shit
<Morrolan> s/rind/read/
<Phobos> wm3|away, watch your language and you will see who's insulting
<havenwood> Phobos: There are ways to set a default, you just aren't using idiomatic Ruby.
<Morrolan> Oh fuck this, I'm out.
hanmac1 has joined #ruby
<Morrolan> Go on and throw mud at each other.
<wm3|away> meh
Monie has quit [Client Quit]
<wm3|away> I'm off anyway :)
<banisterfiend> Phobos you can trivially set a default hash value
<Phobos> Morrolan, look we are on the same path.. I will give you my direct issue now following that path
Alina-malina has quit [Ping timeout: 240 seconds]
<havenwood> Phobos: Coming to another language you've kinda got to assume you aren't doing it right, not that the language is hacky. :P
<Phobos> Morrolan, my problem is then when I do sorting based an priority which works brilliantly : the problem is that sort return an array to me instead of a hash
Jetchisel has joined #ruby
<Phobos> Morrolan, and that gave me too much troubles
conner has quit [Ping timeout: 256 seconds]
<Phobos> Morrolan, here : @sorted[event_name] = @listeners[event_name].sort
SkuliOskarsson has quit [Quit: SkuliOskarsson]
<Phobos> it works and it really sort the things as I want.. But it returns an array
<havenwood> Phobos: = Hash[@listeners[event_name].sort]
<Phobos> havenwood, you are a true hacker :).. I am sure you are doing JS all the time
<Morrolan> Reason behind this behaviour is that, up to Ruby-something-something, Hashes have no guaranteed order.
<Morrolan> Hence Hash#sort has no way of returning a hash.
<havenwood> Morrolan: 1.9.2 methinks
<Phobos> Morrolan, Yes I was noticed about that
<Morrolan> havenwood: Could be, yea. :)
platzhirsch has left #ruby [#ruby]
hanmac1 has quit [Ping timeout: 245 seconds]
<Morrolan> Anyway, what havenwood showed you is the de-facto way of converting a collection of key-value tuples into a hash. :)
<Phobos> Morrolan, because of that problem one of my crucial test doesn't work because of that
<Phobos> assert_equal true, @dispatcher.get_listeners( :pre_foo ).include?( -10 )
<Phobos> and when I remove sort method
<Phobos> it works just fine
<Morrolan> Then use havenwood's suggestion to convert the nested arrays into a hash once more.
<havenwood> OrderedHash was before my day.
<Morrolan> If you're on ruby 1.9.2+, it'll even still be sorted.
<havenwood> and for sure be on 1.9.2+!
<Morrolan> havenwood: Is that part of the standard, or an implementation detail, actually?
<Phobos> yes I am on ruby 1.9.3p0
<havenwood> Morrolan: Part of the standard with 1.9.2 I believe, in the 1.9.2 release notes i think
<Morrolan> Ah. :)
<Morrolan> Well, given that OrderedHash was removed, it probably is.
<Morrolan> Unless that one was part of a third-party library. (Never used 1.8)
<Morrolan> Ah. :)
<Phobos> Ah.
<Phobos> lol
<Phobos> I like your 'Ahs'
<havenwood> i was wrong though, 1.9.1 not 1.9.2
* havenwood pretends 1.9.1 doesn't exist.
rahulkmr has quit [Ping timeout: 264 seconds]
boboc has quit [Remote host closed the connection]
fixnum has joined #ruby
kleinerdrache has joined #ruby
Es0teric has quit [Ping timeout: 264 seconds]
<Phobos> Morrolan, hackeron I think that helped too much about my problem http://www.rubyinside.com/how-to/ruby-sort-hash
<Phobos> I am almost finding the solution
Spami has joined #ruby
<Phobos> using sort_by
zweistein has joined #ruby
cpruitt has quit [Quit: cpruitt]
Spami has quit [Client Quit]
fixnum has quit [Quit: Leaving]
freezey has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
julweber has joined #ruby
brupeb_ has joined #ruby
Alina-malina has joined #ruby
Ox6abe has joined #ruby
eka has joined #ruby
Matriks has joined #ruby
johnjay1 has quit [Ping timeout: 268 seconds]
petey has joined #ruby
jarr0dsz has joined #ruby
sniffingcats has joined #ruby
brupeb has quit [Ping timeout: 248 seconds]
<felipec> all right, I've finished writing my own simple option parser
freezey_ has joined #ruby
Monie has joined #ruby
freezey has quit [Ping timeout: 260 seconds]
Aryasam has quit [Quit: Bye]
larissa has joined #ruby
taptapdan has quit [Quit: taptapdan]
tkuchiki has quit [Remote host closed the connection]
kazuuu has joined #ruby
vim_shim has joined #ruby
Ox6abe has quit [Remote host closed the connection]
Vivekananda has quit [Ping timeout: 240 seconds]
cpruitt has joined #ruby
tatsuya_o has joined #ruby
nomenkun has joined #ruby
agjacome has joined #ruby
nfk has joined #ruby
Elhu has joined #ruby
freezey_ has quit [Remote host closed the connection]
polaco_zZz is now known as polaco
Guest86264 has quit [Remote host closed the connection]
zacts has quit [Quit: leaving]
Advocation has quit [Quit: Advocation]
<shevy> everyone writes one because optparse sucks
<shevy> this is not good though: ARGV.delete_if do |cur|
<shevy> you use ARGV directly in a method
Jetchisel has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<shevy> I would assign it to input to the parse() method, with it defaulting to ARGV instead
fgo has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
nemesit|znc has quit [Ping timeout: 245 seconds]
boxmein has joined #ruby
tgraham has joined #ruby
petey has quit [Remote host closed the connection]
schaerli has joined #ruby
anderSon has quit [Quit: Leaving]
<shevy> "GNU APL is a free interpreter for the programming language APL."
<shevy> ok that's it guys
<shevy> ruby is dead. time to use APL
nomenkun has quit [Remote host closed the connection]
Beoran_ has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 240 seconds]
lucazi is now known as lucazi_away
siwica has quit [Ping timeout: 260 seconds]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
IcyDragon is now known as IceDragon
mrsolo has joined #ruby
kvirani has joined #ruby
mneorr has joined #ruby
quoin has joined #ruby
cpruitt has quit [Quit: cpruitt]
jarr0dsz has quit [Quit: Textual IRC Client: www.textualapp.com]
<mneorr> one noobish question -> i've been using Vim w/o vim-ruby plugin for a longer time
<mneorr> what's exactly the purpose of having vim-ruby?
<shevy> perhaps so that people still believe that vim is the best thing
kvirani has quit [Ping timeout: 248 seconds]
<mneorr> shevy: i'm not trying to start a editor - battle :) just curious wether i should have the 'vim-ruby' bundle included
brennanMKE has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
iliketurtles has joined #ruby
brennanMKE has joined #ruby
banisterfiend has joined #ruby
<r0bgl33s0n> mneorr: try #vim
Elhu has quit [Quit: Computer has gone to sleep.]
T_T has joined #ruby
petey has joined #ruby
Notte has quit [Remote host closed the connection]
<shevy> I guess it depends on whether you need what vim-ruby plugin offers or not
nemesit|znc has joined #ruby
brupeb has joined #ruby
<mneorr> that's what i'm asking :) not sure what it does provide, that's not included in newer vim core
iliketurtles has quit [Client Quit]
lucazi_away has quit [Ping timeout: 245 seconds]
<waxjar> to the google machine!
<r0bgl33s0n> mneorr: like i said, #vim :)
<r0bgl33s0n> or read the documentation.
<r0bgl33s0n> vim-ruby has its own
hanmac1 has joined #ruby
Elhu has joined #ruby
ggg has joined #ruby
ggg has left #ruby [#ruby]
<shevy> I dont know
<shevy> I mean
<shevy> I got tired of having to learn so much for just an editor
brupeb_ has quit [Ping timeout: 256 seconds]
<shevy> I'd like it if editors would just consist of components and you could plug the things you want to use together in any way you want to
<shevy> like LEGO building blocks
Xeago has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 264 seconds]
hanmac1 has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
joejoejoe has joined #ruby
einarj has joined #ruby
<shevy> and one widget set to rule them all
stkowski has joined #ruby
rahulkmr has joined #ruby
<shevy> and one language to rule them all!
freerobby has quit [Quit: Leaving.]
<shevy> perl
tatsuya_o has quit [Remote host closed the connection]
sarkis has quit [Ping timeout: 248 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Buuyo> shevy: sounds like you want sublime text 2 :p the one editor to rule them all. it's just too bad they chose python instead of ruby. :(
sepp2k has joined #ruby
KobraKao has joined #ruby
<weeb1e> Damn, now workmad3 is gone :(
<shevy> Buuyo somewhat
<weeb1e> Does anyone have an idea what I'd need to do in order to be able to attach to the windows API function "LoadIconMetric" with FFI?
taternuts has quit []
<shevy> Buuyo I still think it would be nice if users could re-assemble all components on their computer freely
<weeb1e> I've tried adding 'comctl32' to my ffi_lib with no success. I am able to use that function from VC++ with the follow:
<weeb1e> #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
<weeb1e> #pragma comment(lib, "comctl32.lib")
<Buuyo> shevy: on what level do you mean?
kung has quit [Read error: Connection reset by peer]
<Buuyo> shevy: just taking the processor out and stuff vs soldered in ones?
kung has joined #ruby
kung has quit [Changing host]
kung has joined #ruby
<Buuyo> or are you talking about reprogramming the processor because it happens to be an fpga
julweber has quit [Remote host closed the connection]
randomnick_ has quit [Read error: Connection reset by peer]
<pontiki> how do i pass an array argument to a rake task?
fuhgeddaboudit has joined #ruby
<weeb1e> I guess I'm gonna have to post to the ruby-ffi mailing list, chances are no one here is going to know of a solution :/
julweber has joined #ruby
julweber has quit [Remote host closed the connection]
<pontiki> forex: rake new_post['My Aardvark is Cool',critters,aardvarks,cool] or sommat
<pontiki> so i can gather up the last 3 as categories
freerobby has joined #ruby
jonathanwallace has joined #ruby
brupeb has quit [Read error: Connection reset by peer]
brupeb has joined #ruby
zets has quit [Ping timeout: 240 seconds]
siwica has joined #ruby
jamesaanderson has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.1]
Advocation has joined #ruby
adeponte has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
lkba has joined #ruby
DanKnox_away is now known as DanKnox
dodosan has joined #ruby
<mneorr> Buuyo: yeah, my primary editor is sublime 3
<mneorr> but for some things, experimenting with test runners etc, vim is really a good learning exercise
<mneorr> and can be really powerful
jb41 has quit [Quit: leaving]
Vivekananda has joined #ruby
rippa has joined #ruby
Fire-Dragon-DoL has joined #ruby
pyrac has joined #ruby
brianpWins has joined #ruby
saarinen has joined #ruby
zarubin has quit [Ping timeout: 248 seconds]
KobraKao has quit [Ping timeout: 256 seconds]
<SteveBenner9> rake needs a better argument handling system
<SteveBenner9> or a remake in general
Vivekananda has quit [Remote host closed the connection]
fgo has joined #ruby
<waxjar> what do people use rake for?
ananthakumaran has quit [Ping timeout: 245 seconds]
<Kelet> I mainly use it to run tests
<havenwood> waxjar: Rails mostly :P Or whatever you'd have used make for, but yeah i use for running tests and usually only have one or two tasks
ananthakumaran has joined #ruby
<waxjar> i did use it for tests as well, but i noticed most testing libraries come with their own executable anyway
petey has quit [Remote host closed the connection]
<havenwood> waxjar: i think nice to have a `rake` from top level dir run the test suite, so you can quickly run tests without figuring out testing framework oddities
<havenwood> convenient convention
fgo has quit [Ping timeout: 245 seconds]
<waxjar> hmm, seems sensible yea
lilfaf has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 260 seconds]
<mneorr> havenwood: waxjar using rake to run tests is probably the slowest possible solution
<havenwood> a `bundle` and `rake` resulting in green tests on a project that's new to you is a lovely surprise
<Morrolan> Running utility scripts in general. E.g. something which fetches a required resource from the web.
<Morrolan> Removing and recompiling PEG grammars.
<Morrolan> I don't really like it for testing. It raises an exception when encountering a non-zero exit code.
<Morrolan> (This can probably be turned off, I never really dove into it.)
<havenwood> mneorr: i'd rather rake take a couple milliseconds than whatever time it'd take me to figure out how to run all specs/tests manually
<mneorr> `rspec spec` ?
<mneorr> or `bundle exec rspec spec`
<havenwood> mneorr: nope, this pretend project doesn't use rspec
codecop has joined #ruby
* waxjar doesn't use rspec
<havenwood> mneorr: now you gotta look, what does it use?
<havenwood> mneorr: rake wins
<havenwood> mneorr: unless you just happen upon the correct testing setup at least, those milliseconds seem worth it :P
brianpWins has quit [Quit: brianpWins]
<havenwood> sure if you know it is rspec, or its your own project, but i still think nice to take the effort to create a light Rakefile for others' sake
dodosan has quit [Remote host closed the connection]
evelyette_ has joined #ruby
<havenwood> maybe `rake` running tests/specs is a more common convention for gems more than for apps? dunno, i like it
<mneorr> for running the whole suite, yeah - you can use rake
<mneorr> but if you want to run frequently, a single file, you'll wait 5x more to boot up rails 2x than for running your test
<havenwood> Rails...
<mneorr> doesn't matter, sinatra :)
<mneorr> since booting up rake will boot up the whole app
<waxjar> i like to use cutest :D
<waxjar> only thing i hate about it is that it always exits with statuscode 0 :/
Popple has quit [Quit: Computer has gone to sleep.]
Speed has joined #ruby
Guest72810 has quit [Remote host closed the connection]
<havenwood> waxjar: ahh, you mean the parent process always exits with 0 even if a child process had a 1?
einarj has quit [Remote host closed the connection]
<waxjar> yea
nomenkun has joined #ruby
mercwithamouth has joined #ruby
<waxjar> oh that seems to be fixed now actually
<waxjar> issue's closed at least
<havenwood> waxjar: yeah, looks like capturing now :) https://github.com/djanowski/cutest/blob/master/lib/cutest.rb#L9-15
arietis has joined #ruby
Phobos has quit [Quit: Leaving]
arclit has quit [Remote host closed the connection]
<waxjar> finally, easy pre-commit hooks! :D
adeponte has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
joejoejoe has quit [Quit: Page closed]
brennanMKE has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
adeponte has quit [Read error: Connection reset by peer]
_adeponte has joined #ruby
sarkis has joined #ruby
io_syl has joined #ruby
sniffingcats has quit [Remote host closed the connection]
Matriks has quit [Remote host closed the connection]
jbsnake has joined #ruby
quoin has joined #ruby
senayar_ has quit [Remote host closed the connection]
hanmac1 has joined #ruby
DrForr_ is now known as DrForr
io_syl has quit []
hanmac1 has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
thehodapp has joined #ruby
<weeb1e> I wonder how many people actually use FFI for the windows API :/
Xeago has joined #ruby
sarkis has quit [Ping timeout: 245 seconds]
jbsnake has quit [Remote host closed the connection]
Clooth has quit [Read error: Connection reset by peer]
ru has joined #ruby
einarj has joined #ruby
<shevy> hehe
<shevy> you never give up do you weeb1e :D
<weeb1e> shevy: No, I find solutions, no matter how long it takes
<weeb1e> Judging my the inactivity of the ruby-ffi mailing list, and lack of anyone responding here, I better get comfortable :(
siekoku has joined #ruby
<weeb1e> *by the activity
evelyette_ has quit [Read error: Connection reset by peer]
evelyette_ has joined #ruby
zarubin has joined #ruby
* apeiros asked this in #ruby-lang too, will ask here for comments as well:
havenwood has quit [Remote host closed the connection]
quoin has quit [Ping timeout: 240 seconds]
<apeiros> if anybody has ideas/recommendations, please tell!
thehodapp has quit [Quit: Leaving.]
thehodapp has joined #ruby
saarinen has quit [Quit: saarinen]
pyrac has quit [Quit: pyrac]
nwertman has joined #ruby
conner has joined #ruby
claymore has joined #ruby
iliketurtles has joined #ruby
<shevy> what is the default encoding of cvs files?
fuhgeddaboudit has quit [Ping timeout: 256 seconds]
<apeiros> shevy: none
Advocation has quit [Quit: Advocation]
BizarreCake has quit [Ping timeout: 260 seconds]
<apeiros> there aren't any real defaults in csv. neither are there any options to annotate your csv. so either the author of the csv tells you, or you have to guess.
Elhu has quit [Quit: Computer has gone to sleep.]
shaunbaker has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
shaunbaker has quit [Remote host closed the connection]
browndawg has quit [Read error: Connection timed out]
Bosox20051 has quit [Ping timeout: 248 seconds]
ivaturi has joined #ruby
browndawg has joined #ruby
nwertman has quit [Ping timeout: 240 seconds]
carraroj has quit [Ping timeout: 264 seconds]
<r0bgl33s0n> is the raise of StopIteration the only way to know an enumerator has gone out of bounds? is the internal index available?
ivaturi is now known as eloquent_mute
einarj has quit [Remote host closed the connection]
<r0bgl33s0n> shevy: CSV doesn't have metadata, you could fake it.
<r0bgl33s0n> shevy: by inserting a row of meta information that wouldn't be read past until it could get encoding information from it.
<shevy> r0bgl33s0n hehe I would not know, I did not use CSV a lot. I actually dont have a lot of table format data... usually I use yaml
<r0bgl33s0n> i really want to figure out this enumerator problem im having
<r0bgl33s0n> finding it hard to believe StopIteration is the only way
<apeiros> r0bgl33s0n: an enumerator doesn't necessarily have an index, neither does it necessarily have a size
<shevy> that is out of my league, I don't think I have ever seen a StopIteration error myself
krz has quit [Quit: krz]
<r0bgl33s0n> apeiros: it has a current position, though, right
row has joined #ruby
<apeiros> r0bgl33s0n: depends on your definition
<apeiros> you can count how often you called .next
<r0bgl33s0n> apeiros: let me show you the code i have
<r0bgl33s0n> one sec
<r0bgl33s0n> true i could :)
<r0bgl33s0n> is that the way then?
<apeiros> shevy: just do `enum = [].each; enum.next`
brennanMKE has quit [Remote host closed the connection]
<apeiros> r0bgl33s0n: why? what are you trying to do?
Matriks has joined #ruby
<apeiros> usually you should just be able to do .each on an enum
<apeiros> also, loop do/end rescues StopIteration and breaks
<r0bgl33s0n> apeiros: i want to resume the iteration raised on
<shevy> cool
<apeiros> r0bgl33s0n: that's out of context. can't tell much by that :-/
<shevy> my first StopIteration error
<r0bgl33s0n> apeiros: yeah, that example doesn't reproduce the case very well. i want to iterate an array of libraries, recover from a LoadError, and resume at the next iteration.
<apeiros> r0bgl33s0n: but in that code alone, yes, StopIteration is the way to go
<shevy> is there the opposite of .next ?
<r0bgl33s0n> prev
<apeiros> r0bgl33s0n: uh, just rescue within the each?
<r0bgl33s0n> apeiros: its more complicated than that :)
<apeiros> ok
<r0bgl33s0n> i will wrap the raise
<r0bgl33s0n> i was just curious
browndawg has left #ruby [#ruby]
fgo has joined #ruby
toretore has joined #ruby
Clooth has joined #ruby
jrobeson has quit [Remote host closed the connection]
<shevy> r0bgl33s0n hmm .prev does not seem to work
<shevy> NoMethodError: undefined method `prev' for #<Enumerator:0xaa19ec4>
<shevy> aha
<shevy> there is #rewind
vlad_starkov has joined #ruby
<r0bgl33s0n> apeiros: i'll paste some code in a bit, its not finished yet, if youre still around
<r0bgl33s0n> shevy: ah sorry
fgo has quit [Ping timeout: 252 seconds]
lilfaf has joined #ruby
<r0bgl33s0n> shevy: doesn't seem to exist
<shevy> rewind is ok
<shevy> I mostly just wanted to loop around
<weeb1e> Oh well, I'll move on to another project for another 5 hours or so and repeat my question. Hopefully with a little luck, timezones will match up at some point and someone smart may be able to help me with FFI :|
<shevy> I dont think I had a need to use .each so far myself
ravster has quit [Quit: Leaving.]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgraham is now known as tgraham|away
Michael has joined #ruby
Michael is now known as Guest49313
vlad_starkov has quit [Ping timeout: 260 seconds]
row has quit [Quit: Leaving]
thehodapp has quit [Ping timeout: 256 seconds]
kazuuu has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
Ripp__ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
thehodapp has joined #ruby
senayar has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
orangerobot has joined #ruby
<orangerobot> after reading the manual page for Array, i think that << and push are the same. Is that correct?
Advocation has joined #ruby
<apeiros> orangerobot: almost
felipec has quit [Ping timeout: 240 seconds]
<apeiros> push can handle multiple arguments, << can't
<apeiros> other than that, same, yes
<orangerobot> apeiros: thanks
arietis has joined #ruby
hanmac1 has joined #ruby
jrobeson has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
DEA7TH_ has joined #ruby
KobraKao has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Davey has joined #ruby
robustus has joined #ruby
Guest49313 has quit [Read error: Connection reset by peer]
fuhgeddaboudit has joined #ruby
hanmac1 has quit [Ping timeout: 240 seconds]
<shevy> I think the pickaxe said that << is faster
vim_shim has quit [Ping timeout: 248 seconds]
stillEPIK has joined #ruby
JeanMertz has quit []
thehodapp has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 248 seconds]
butblack has joined #ruby
Freeaqingme has joined #ruby
<Freeaqingme> Hi folks. I've got an array {key1 => value1, key2 => value2} How can I join tese so that I get a string like "--key1 value1 --key2 value2" ?
quoin has joined #ruby
<apeiros> Freeaqingme: map them to '--key value' then join with ' '
havenwood has joined #ruby
<Freeaqingme> nice
<Freeaqingme> soon I'll even start to like Ruby, tnx apeiros :)
mib_mib has joined #ruby
<shevy> huh
<shevy> what is the solution
<DEA7TH_> I'm trying to pick a GUI toolkit for my Ruby project, I only need simple interface and readable code for a large-ish project
<mib_mib> has anyone used capybara?
rahulkmr1 has joined #ruby
<DEA7TH_> wondering if I should use Shoes or maybe Qt
lilfaf has quit [Remote host closed the connection]
<wm3|away> shevy: hsh.map{|k, v| "--#{k} #{v}"}.join(' ')
<shevy> ah
<IceDragon> DEA7TH_: Just use GTK
<Freeaqingme> wm3|away, thanks! Was just looking to see how I could use .map with keys
<shevy> didn't know one could .map over a hash
<shevy> or perhaps I forgot
<IceDragon> #map is a Enumerable method
scottstamp is now known as zz_scottstamp
<banisterfiend> an*
quoin has quit [Ping timeout: 248 seconds]
rahulkmr has quit [Ping timeout: 248 seconds]
sectionme has joined #ruby
<DEA7TH_> IceDragon: why, is Shoes bad?
<IceDragon> I never said it was bad
<DEA7TH_> it looked like it's not exactly meant for big projects
<IceDragon> exactomo
<wm3|away> ^^ although I guess you could create a larger project using it with green_shoes
<IceDragon> I never said it was bad, and I knew shoes wasn't meant for heavy duty work, thats why I just recommended GTK
<DEA7TH_> it's not exactly large, tho: 5.5 months of solo work as a university project
nemesit|znc has quit [Ping timeout: 240 seconds]
<MrZYX> IceDragon: did you work with GTK and ruby yet? If yes, GTK2 or GTK3? what binding did you use?
<DEA7TH_> also I need it to do simple things and will probably need simple interface
<IceDragon> GTK2
<IceDragon> My 3 bindings are broken
<wm3|away> green_shoes packages shoes up as a gem (around gtk, iirc), so it becomes just a normal dependency rather than the original shoes implementation :)
sectionme has quit [Ping timeout: 240 seconds]
<IceDragon> To be exact, almost every single gui toolkit on my ruby installation is broken
<MrZYX> yeah, that's my issue. I'm a gnome person DE wise but couldn't find a gtk/gobject ruby binding that seemed fun to use
<IceDragon> TK, QT, GTK3..
<IceDragon> ;_;
<MrZYX> a friend of mine seems quite happy with the qt bindings (not sure if 4 or 5)
coderhs has joined #ruby
tgraham|away is now known as tgraham
Valesk has joined #ruby
KobraKao has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
thehodapp has joined #ruby
aknagi has joined #ruby
<shevy> IceDragon ruby-gtk2 works still?
nemesit|znc has joined #ruby
justsee has joined #ruby
<IceDragon> >-> not sure
<shevy> I finally got it to work again after switching to 1.9.x
<IceDragon> O really don't remember which binding it was
<shevy> tk
<IceDragon> TK HATES ME
<shevy> everyone hates tk
<IceDragon> >_> It segfaults everytime I try to require it
<shevy> they said that tk no longer looks ugly
<MrZYX> I think I saw a working gobject binding somewhere, so there's something out there that you can work with but I guess it won't be memory leak free nor very abstracted
conner has quit [Ping timeout: 245 seconds]
BSaboia has joined #ruby
g0th is now known as chuffy
chuffy is now known as Chuffy
sayan has quit [Ping timeout: 248 seconds]
martin_work has joined #ruby
jibi has quit [Quit: brb]
Jetchisel has joined #ruby
_adeponte has quit [Remote host closed the connection]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
einarj has joined #ruby
<IceDragon> =.= What exactly is the most recent and up to date qt binding
<MrZYX> hmm
<MrZYX> my friend used qtbindings but that's qt4
Ahti333 has quit [Quit: Textual IRC Client: www.textualapp.com]
dankest has joined #ruby
Advocation has quit [Quit: Advocation]
Liothen has joined #ruby
Xeago has quit [Ping timeout: 248 seconds]
adeponte has joined #ruby
einarj has quit [Remote host closed the connection]
yannickoo has left #ruby [#ruby]
mib_mib has quit [Ping timeout: 250 seconds]
<shevy> yeah
<shevy> I think HTML5 kinda dealt a cruel blow to all those toolkits
fgo has joined #ruby
tgraham is now known as tgraham|away
mercwithamouth has quit [Ping timeout: 256 seconds]
<shevy> I still don't understand how python manages to have better bindings
<MrZYX> for the same reason they've over 1k people in their IRC channel
<havenwood> just gemified my new fav way to benchmark, thought i'd share: https://github.com/havenwood/era#readme
<MrZYX> bigger community, less focused on the web
brupeb has quit [Remote host closed the connection]
noop has quit [Ping timeout: 240 seconds]
<havenwood> ^ tl;dr: require 'era'; time { 'this is still returned but elapsed time is printed' }
<orangerobot> is it possible to add a new attribute to an object at runtime? (note that i don't want to set the value of an already define attribute, I want to temporarily have my object have an attribute which wasn't define in the class definition)
toah has quit [Read error: Operation timed out]
<shevy> orangerobot mostly only if your class allowed that
<shevy> like to call a method on the object that does this for you
<MrZYX> orangerobot: in general yes. But it doesn't sound useful
s0ber_ has joined #ruby
wm3|away is now known as workmad3
<MrZYX> also attribute isn't the most clear terminology
vlad_starkov has joined #ruby
<orangerobot> MyZYX instance variable
<orangerobot> i want to define a new instance variable for an object at runtime
fgo has quit [Ping timeout: 248 seconds]
<MrZYX> so why do you think you need that?
<shevy> this is only possible if you have had defined on your class to do that before orangerobot
<MrZYX> shevy: there's instance_variable_set
<shevy> MrZYX how does it work on something like: class Cat; end; cat = Cat.new ?
s0ber has quit [Ping timeout: 260 seconds]
<r0bgl33s0n> apeiros: nvm, ended up solving the problem totally differnet
<apeiros> ^^
s0ber_ is now known as s0ber
<MrZYX> shevy: don't remember if it's public or private but you can always combine it with send
<shevy> ah yes
Michael has joined #ruby
<MrZYX> but for me it's only a metaprogramming or debugging tool, so what is your usecase orangerobot
Michael is now known as Guest45257
<shevy> there you go orangerobot class Cat; end; cat = Cat.new;cat.send :instance_variable_set, '@x', 5
brennanMKE has joined #ruby
vim_shim has joined #ruby
vim_shim has quit [Max SendQ exceeded]
<shevy> this often makes me wonder why ruby has private and public at all when you can pretty much do everything you want to anyway...
Xeago has joined #ruby
<MrZYX> to declare the intended use
<orangerobot> MrZYX: I have a Node class. I have lots of methods that take a Node as parameter. Say I havea method M where for example I want to sort Nodes into groups. I would like to be able to define a new variable called group_name for my Nodes, but I only want this new instance variable to be present in method M.
vim_shim has joined #ruby
<MrZYX> shevy: so you know when you leave the path the author thought of
vlad_starkov has quit [Ping timeout: 240 seconds]
<orangerobot> otherwise I would need to define in class Node every possible variable every client might want to use
adeponte has quit [Remote host closed the connection]
<MrZYX> wrap it or use a datastructure that can save the group name, maybe something simple as a hash
mercwithamouth has joined #ruby
<MrZYX> maybe even subclass from your node
<orangerobot> MrZYX: what if I define a new instance method for class Node at runtime. And, within this method, I set a random @foo variable that wasn't defined in the class definition?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<MrZYX> your Node sounds like an augmented Hash then
<MrZYX> or maybe an OpenStruct
<DEA7TH_> if I write a Ruby GUI program, would I be able to compile it or something, so that the user will be able to run it without installing a Ruby interpreter?
brennanMKE has quit [Ping timeout: 256 seconds]
<shevy> weeb1e, look! DEA7TH_ is almost following your path ;)
<shevy> DEA7TH_ ruby will work only if you have some way to interprete the .rb files
<shevy> so a user will need to have ruby installed and most likely the toolkit used as well
jamesaanderson has joined #ruby
<DEA7TH_> uh. Is there no way to make it executable?
ananthakumaran has quit [Quit: Leaving.]
iliketurtles has quit [Quit: zzzzz…..]
<orangerobot> MrZYX: but at least adding instance methods dynamically to an object is possible, though?
Tearan has joined #ruby
<MrZYX> sure, ruby doesn't prevent your from doing stupid things for the very rare cases where it isn't stupid
<orangerobot> something like my_object.class.add_method(new_method)
<MrZYX> I don't think we have one of these here
<shevy> DEA7TH_ not that I know of. if you need real executables, you need a C or C++ program
butblack has left #ruby [#ruby]
<MrZYX> orangerobot: also note that adding instance methods to your objects very often during runtime will have an impact on performance
dzhulk has quit [Quit: Leaving.]
NalloK has joined #ruby
<orangerobot> MrZYX: it's ok. i'm just experimenting a little bit. I found this on the web, looks promising: http://stackoverflow.com/a/1887875/436721
dzhulk has joined #ruby
<orangerobot> i just want to decouple my Node class from the clients that use it
St_Marx has joined #ruby
<MrZYX> whether you couple it at runtime or not doesn't make much of a difference to me
brianpWins has joined #ruby
<MrZYX> if you randomly add methods and/or instance variables you still need to pay attention to have no conflicts among the "clients" doing that and the class definition itself
NalloK has left #ruby [#ruby]
<MrZYX> so all your clients and your node class are coupled
brupeb has joined #ruby
tgraham|away is now known as tgraham
<orangerobot> MrZYX: ok thanks for explaining
zz_scottstamp is now known as scottstamp
arclit has joined #ruby
<MrZYX> so for your grouping case, I'd just store them in hash like {"group1" => [node, node,....], "group2" => [node, node,...]}
<MrZYX> if a lot of complex stuff needs to happen on that datastructure I'd wrap that into a class
<MrZYX> this way your node doesn't need to know anything about your client and your client doesn't need to know anything about the inner structure of your node nor about the behavior of other clients
io_syl has joined #ruby
Hanmac has joined #ruby
<orangerobot> MrZYX: i see. thanks for helping
scottstamp is now known as zz_scottstamp
senayar has quit [Remote host closed the connection]
brennanMKE has joined #ruby
IceDragon has quit [Remote host closed the connection]
senayar has joined #ruby
<gyzmodo> hey guys
<gyzmodo> how can i test yourself do i know programming basics or not?
<gyzmodo> is there any recommended sites?
justsee has quit [Ping timeout: 260 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
rahulkmr has joined #ruby
thehodapp has quit [Ping timeout: 264 seconds]
zweistein has quit [Read error: Connection reset by peer]
rahulkmr1 has quit [Ping timeout: 252 seconds]
<Xeago> gyzmodo: you can do some recruitment questions
<Xeago> but most are too technical/academical
St_Marx has quit [Ping timeout: 240 seconds]
xk_id has quit [Quit:
IceDragon has joined #ruby
<gyzmodo> where i can find this questions? :)
brupeb has quit [Remote host closed the connection]
jibi has joined #ruby
senayar has quit [Ping timeout: 260 seconds]
relix has joined #ruby
<Xeago> google
<Xeago> I can give you one of the tests I usually try
<gyzmodo> it would be great!
<gyzmodo> :)
<gyzmodo> sir :)
<Xeago> it has 2 tests in them
quoin has joined #ruby
Notte has joined #ruby
sarkis has joined #ruby
<apeiros> Xeago: ping - do you have any suggestions/feedback on http://github.com/apeiros/ept and https://github.com/apeiros/ept/tree/master/examples ?
<gyzmodo> thank you Xeago
<gyzmodo> :)
brianpWins has quit [Quit: brianpWins]
<Xeago> I'll look at it apeiros
<Xeago> ah you released it!
Valesk has quit [Read error: Connection reset by peer]
dankest has quit [Quit: dankest]
<DEA7TH_> I'm starting a project which is computationally light, has a lot of parts which have very simple logic, and needs to be usable by everyone
<DEA7TH_> so I thought a Ruby GUI application is the best approach because Ruby is readable and easy to work with
<ryanf> haha
dankest has joined #ruby
quoin has quit [Ping timeout: 256 seconds]
KobraKao has joined #ruby
<DEA7TH_> am I reasoning correctly?
<apeiros> Xeago: not yet, no
<Xeago> apeiros: ?
<ryanf> DEA7TH_: kind of, but afaik nobody really makes gui apps with ruby
<ryanf> so I don't think there's very good tooling
<apeiros> Xeago: you mean as a gem?
<ryanf> I think python has better gui stuff
<apeiros> I plan on releasing a pre-release of the gem today or tomorrow and ask for input on the ML/ruby-flow
<Xeago> apeiros: you mentioned this a while ago
adeponte has joined #ruby
<Xeago> and now you released the code :)
<Xeago> DEA7TH_: put it on top of a web interface
<Xeago> that is my way of doing GUI's with ruby..
<DEA7TH_> ryanf: perhaps, but Java / C++ / C# are designed to be fast and lower-level, rather than readable
<apeiros> hm, odd. for this I only had ideas. maybe you mean tabledata? http://github.com/apeiros/tabledata/
<DEA7TH_> Xeago: I considered this actually, but I don't want to force the user to install Ruby
<Xeago> yea might be it too, think you specifically mentioned an improved csv
<Xeago> DEA7TH_: then host it somewhere for them?
<DEA7TH_> hmmm I think I get some advantage from having everything locally available for them
<MrZYX> list the advantages
kleinerdrache has quit [Quit: Ex-Chat]
<Xeago> hell, distribute it as a vm/docker/lxc/similar image ;)
Stalkr^ has joined #ruby
St_Marx has joined #ruby
kazuuu has joined #ruby
<Stalkr^> Do you guys think it's worth learning vim/emacs in 2013?
<MrZYX> hm, didn't we tell you to ask no editor questions please? :P
<Stalkr^> I don't remember that, sorry
Emmanuel_Chanel has quit [Ping timeout: 245 seconds]
KobraKao has quit [Quit: Saindo]
polaco is now known as polaco_zZz
<DEA7TH_> MrZYX: if the server dies, the business won't be able to run until it gets back up
<DEA7TH_> the application *needs* to be used once daily, on most days
<DEA7TH_> also, some people have really slow web connections - using a website could slow their operation
<DEA7TH_> (although I intend to make the website minimalistic, I don't even need to include pictures)
adeponte has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
estebanrules_ has joined #ruby
<weeb1e> DEA7TH_: You can package your ruby application with a exe for windows
jamesaanderson has joined #ruby
estebanrules_ has quit [Remote host closed the connection]
<weeb1e> But the source will still be in rb files, it'll just be packaged together with ruby and your apps dependencies
<weeb1e> DEA7TH_: The main issue with packaging a GUI ruby app is the size of the GUI framework
reborno has quit [Quit: • IRcap • 8.72 •]
<weeb1e> I have that exact issue myself, I'm not willing to turn a 7MB packaged CLI application into a 90MB package just for a simple GUI
mercwithamouth has joined #ruby
cj3kim has joined #ruby
<weeb1e> I'm working on implementing a basic GUI and system tray UI from scratch using FFI and the windows API
Clooth has quit [Quit: Leaving...]
Marc_Online_ has joined #ruby
<weeb1e> Unfortunately getting the tray part working is a little tough, there is a function which FFI does not want to attach to. Unless someone comes up with a workaround to make it work with FFI, my plan is to wrap that function in a DLL, since using it requires a manifest
<shevy> noooo
<shevy> please
<shevy> don't say you are STILL at it!
<shevy> this is going to take weeks weeb1e
<weeb1e> shevy: I am not known to give up
<weeb1e> I can't work on it full time, but I will be giving it my best shot in hope of coming up with a working solution before next week
Monie has joined #ruby
<shevy> what language does one have to know in order to use FFI on windows? C++?
<weeb1e> shevy: FFI is a ruby gem...
<DEA7TH_> weeb1e: my customer (father) really insists he should have an offline interface :P
<weeb1e> You don't need to write native code
<weeb1e> DEA7TH_: If size of the package is not an issue, it should be pretty easy for you to use GTK or Qt
Jetchisel has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<weeb1e> shevy: Or, what exactly do you mean?
<DEA7TH_> he claims that some people have a very slow connection, so they should be able to do it offline
<shevy> weeb1e well
vlad_starkov has joined #ruby
<shevy> weeb1e I am sure people who dont know C or C++ will barely be able to do much useful stuff with FFI alone
<weeb1e> DEA7TH_: If their connection is very slow, I don't think they will be able to easily download a 100MB package, in which case you're in the same boat as I am
<weeb1e> shevy: Well, I guess, but I'm mostly working from the windows API docs
<DEA7TH_> I'm not worried about that because my customers are companies, so there will be a few of them
<weeb1e> shevy: The thing is, this issue has nothing to do with the API directly, or native code. The dll file exposes its interfaces in some weird way which requires a custom manifest specifying the version in order to load it. That is done with a manifest or the equivalent pragma comment in Visual Studio, but with FFI I have no idea how to accomplish it
Marc_Online_ has left #ruby [#ruby]
<weeb1e> I can attach to all the other functions I need just fine, but FFI thinks LoadIconMetric() is "missing" from the DLL
<DEA7TH_> also would I be able to get Gems working on GUI Ruby? (Rails is only for web, right?)
mengu has joined #ruby
<DEA7TH_> ah, apparently gems are separate from Rails
<weeb1e> DEA7TH_: Look at the "releasy" gem, it is a wrapper around the Ocra gem which packages stuff for windows, including gems
<DEA7TH_> would all that run on Windows?
<DEA7TH_> nice!
<weeb1e> It'll take some trial and error to get everything packaged correctly, but it is doable
einarj has joined #ruby
brupeb has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
aloiscochard has joined #ruby
brianpWins has quit [Quit: brianpWins]
senayar has joined #ruby
DEA7TH has joined #ruby
DEA7TH_ has quit []
DonRichie has quit [Read error: Operation timed out]
DonRichie has joined #ruby
aloiscochard has left #ruby [#ruby]
einarj has quit [Ping timeout: 248 seconds]
<weeb1e> shevy: I take it you have never used FFI, take a look at the first simple example. https://github.com/ffi/ffi/wiki/Examples
<weeb1e> Even if you know almost no C, you'll be able to see FFI makes it very easy to build bindings
momomomomo has joined #ruby
katherinem13 has quit [Remote host closed the connection]
funburn has joined #ruby
gyre007 has joined #ruby
cj3kim has quit [Remote host closed the connection]
<Xeago> apeiros: code looks very nice
<Xeago> and really understandable
<apeiros> thanks
jibi has quit [Quit: .]
<apeiros> I'm mostly interested in feedback on the ept format :)
<apeiros> things which are missing or could be improved
Matriks has quit [Remote host closed the connection]
<Xeago> yea, I found it a bit odd to define your own file format
Emmanuel_Chanel has joined #ruby
<Xeago> maybe a file linter would be cool? :)
yfeldblum has quit [Ping timeout: 240 seconds]
spider-mario has quit [Read error: Connection reset by peer]
<apeiros> Xeago: you mean a command to verify a file?
<r0bgl33s0n> what's a file linter?
<apeiros> sensible suggestion. will put it on the todo :)
Stalkr^ has quit [Quit: Linkinus - http://linkinus.com]
brupeb_ has joined #ruby
<apeiros> actually, I'll just implement it. it's just "parse the file and see if an exception is raised - if not, it's valid"
<r0bgl33s0n> so ruby -c :)
<shevy> weeb1e I am sure that FFI makes it much easier, but without knowing C, I really have no idea what the C code is doing
<r0bgl33s0n> shevy: you'll need to understand some C to be useful with FFI
<r0bgl33s0n> at least the concepts
blob has joined #ruby
Popple has joined #ruby
Hanmac has joined #ruby
dankest has quit [Read error: Connection reset by peer]
brupeb has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 264 seconds]
sectionme has joined #ruby
Speed has quit [Read error: Connection reset by peer]
Speed has joined #ruby
kofno has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
sectionme has quit [Ping timeout: 264 seconds]
Guest45257 has quit [Remote host closed the connection]
arclit has quit [Remote host closed the connection]
Michael has joined #ruby
Michael is now known as Guest54646
crazymykl has quit [Quit: Konversation terminated!]
crazymykl has joined #ruby
quoin has joined #ruby
katherinem13 has joined #ruby
brandon has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
havenwood has quit [Remote host closed the connection]
gyzmodo has quit []
jarr0dsz has joined #ruby
quoin has quit [Ping timeout: 256 seconds]
jarr0dsz has left #ruby [#ruby]
<Xeago> apeiros: looked some more at the spec
<Xeago> looks sane
<apeiros> Xeago: can you read/write ABNF? I need somebody to proofread my ABNF. been a decade since I last wrote some :-S
brianpWins has joined #ruby
<Xeago> never heard of ABNF
Emmanuel_Chanel has quit [Quit: Leaving]
<Xeago> poke: {file:LICENSE.txt BSD-2-Clause License}
<apeiros> that's yard markdown
<apeiros> sadly doesn't work in github's rendering :(
<Xeago> ok
Guest54646 has quit [Remote host closed the connection]
xk_id has joined #ruby
thehodapp has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
jamesaanderson has joined #ruby
dankest has joined #ruby
xk_id has quit [Client Quit]
St_Marx has quit [Quit: Ex-Chat]
xk_id has joined #ruby
cpruitt has joined #ruby
claymore has quit [Quit: Leaving]
zz_scottstamp is now known as scottstamp
brianpWins has quit [Quit: brianpWins]
mrsolo has joined #ruby
Jetchisel has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conner has joined #ruby
lfox has joined #ruby
siwica has quit [Ping timeout: 260 seconds]
zastern has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<zastern> Why is it that I can call an instance or global variable that hasn't been defined, and it returns nil, but local or class variables return errors?
adeponte has joined #ruby
codecop has quit [Remote host closed the connection]
<momomomomo> zastern: "When an uninitialized local variable is referenced, it is interpreted as a call to a method that has no arguments."
yfeldblum has joined #ruby
<zastern> hmm
<momomomomo> zastern: "Uninitialized global variables have the value nil and produce warnings with the -w option."
<momomomomo> zastern: "Uninitialized instance variables have the value nil and produce warnings with the -w option."
<zastern> I'm not saying the behavior isn't clearly defined.
<zastern> I'm wondering "why"
siekoku has quit [Remote host closed the connection]
<momomomomo> zastern: Well, if we delve in to the definition of the behavior, we see that "When an uninitialized local variable is referenced, it is interpreted as a call to a method that has no arguments.
<momomomomo> Assignment to uninitialized local variables also serves as variable declaration. The variables start to exist until the end of the current scope is reached. The lifetime of local variables is determined when Ruby parses the program."
<momomomomo> That is the 'why' for local variables
zarubin has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
<zastern> hmm ok
<zastern> thanks!
* apeiros still thinks auto-vivification of globals and ivars is harmful
Ripp__ has quit []
shadoi1 has joined #ruby
shadoi has quit [Read error: Connection reset by peer]
cpruitt_ has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
ru has quit [Quit: leaving]
<momomomomo> apeiros: I'll auto vivifi you
justsee has joined #ruby
cpruitt has quit [Ping timeout: 264 seconds]
cpruitt_ is now known as cpruitt
<apeiros> I already got wifi, thanks
<momomomomo> ~_~ I didn't know about autovivification, thanks for the heads up
<momomomomo> would have been neat to know a while ago when I was doing crazy/stupid things with Hstore
tatsuya_o has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
gyre007 has quit [Remote host closed the connection]
pellenation has joined #ruby
cpruitt has quit [Quit: cpruitt]
Xeago has joined #ruby
Nenor has quit [Quit: Nenor]
pairup has joined #ruby
pellenation has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
mrsolo has quit [Quit: This computer has gone to sleep]
Xeago has quit [Ping timeout: 245 seconds]
thehodapp has quit [Ping timeout: 248 seconds]
kvirani has joined #ruby
cpruitt has joined #ruby
Michael has joined #ruby
tgraham is now known as tgraham|away
Michael is now known as Guest19952
Hanmac has joined #ruby
gr33n7007h has joined #ruby
thehodapp has joined #ruby
funburn has quit [Quit: funburn]
eka has quit [Quit: Computer has gone to sleep.]
kvirani has quit [Ping timeout: 248 seconds]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
brennanMKE has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
stillEPIK is now known as kreeves
kreeves has quit [Changing host]
kreeves has joined #ruby
platzhirsch1 has joined #ruby
<platzhirsch1> Let's kill some dragons
platzhirsch1 is now known as platzhirsch
tatsuya_o has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
<platzhirsch> holy shit, that was metaphorically speaking
zarubin has joined #ruby
Lewix has joined #ruby
SkuliOskarsson has joined #ruby
cj3kim_ has quit [Ping timeout: 248 seconds]
wyclif_ has quit [Ping timeout: 256 seconds]
quoin has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
workmad3 is now known as wm3|zZz
dsferreira has quit [Quit: This computer has gone to sleep]
<zastern> When you have `cowsay` at your disposal, there's never a good reason to not use ASCII art.
quoin has quit [Ping timeout: 260 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<platzhirsch> *nod*
<AntelopeSalad> what is the most efficient way to convert "123-hello-world" to 123?
<AntelopeSalad> slicing it with .index?
<Morrolan> What rules does your input follow?
<Morrolan> Always three numerics at the beginning? Numerics at the beginning? Always a 123 in there? Always ending in 'hello-world'?
<AntelopeSalad> me?
<platzhirsch> ^^
<AntelopeSalad> 100% guaranteed integer of unknown length followed by -
<Morrolan> Split by '-', grab first item.
<Morrolan> (And convert to integer)
<AntelopeSalad> split is going to be the most efficient in this case?
<AntelopeSalad> i don't mind clarity as this will be ran very often
<Morrolan> Erm, if the integer can be negative, make sure to handle the leading '-', if present.
xk_id has quit [Quit:
Targen has joined #ruby
<Morrolan> Most efficient? Maybe you want C?
<AntelopeSalad> the int can never be negative
bean has quit [Ping timeout: 248 seconds]
<platzhirsch> AntelopeSalad: you are pretty fine with split
<Morrolan> But I don't know what would be most efficient, not familiar with the implementation. :)
<AntelopeSalad> it doesn't need to be that efficient (C) :D
<Morrolan> Then split is probably just fine. index might be a bit more efficient, since it'll probably not scan the whole string.
<Morrolan> Benchmark it, if you want to know whether there's a noticeable difference. :)
<AntelopeSalad> ok thanks, i'll stick with split until i come to the conclusion that it's somehow the bottleneck in a web app (aka never i guess haha)
xk_id has joined #ruby
<Morrolan> Sounds reasonable, yes. ;)
<AntelopeSalad> i was converting a semi-pretty url to an id so i can send it off to a db query to run a filter
cpruitt has quit [Quit: cpruitt]
<apeiros> AntelopeSalad: if it's only one integer in it and always at the beginning:
<apeiros> >> "123-hello-world".to_i
<eval-in> apeiros => 123 (https://eval.in/51370)
<apeiros> if it is not at the beginning, but only one:
<apeiros> >> "123-hello-world"[/\d+/].to_i
<eval-in> apeiros => 123 (https://eval.in/51371)
<AntelopeSalad> i can't guarantee there will be no integer past the first -
momomomomo has quit [Quit: momomomomo]
<apeiros> then split and map
<AntelopeSalad> i would say 90% of the time there won't be but then 10% of the time it would break heh
<apeiros> as the others already said
rahulkmr has quit [Quit: Leaving.]
rahulkmr1 has joined #ruby
<AntelopeSalad> yep thanks
<platzhirsch> Are there other ways to get the module name inside a module instance method than: self.method(__method__).owner ?
awarner has quit [Ping timeout: 260 seconds]
xk_id has quit [Changing host]
xk_id has joined #ruby
<banisterfiend> platzhirsch if you want to find the owner of the current method that looks like a reasonable way to do it
<apeiros> platzhirsch: I wonder why you'd do that
kitak has joined #ruby
adeponte has quit [Remote host closed the connection]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
<platzhirsch> apeiros: not sure anymore, let's see...
<platzhirsch> apeiros: ah right, in this module I look for classes that are part of the module. I select them generically based on a parameter and in order to use constantize, I need the model
brennanMKE has joined #ruby
<apeiros> o0
<apeiros> ok, I decided I don't want to know the details :)
conner has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ox6abe has joined #ruby
julian-delphiki has joined #ruby
endash has joined #ruby
schaerli has quit [Remote host closed the connection]
dcunit3d has joined #ruby
brennanMKE has quit [Ping timeout: 240 seconds]
Bry8Star{T2 has joined #ruby
<platzhirsch> yeah, I am thinking through the whole model right now :P
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor has joined #ruby
Xiti` has joined #ruby
maroloccio has quit [Read error: Connection reset by peer]
<shevy> human are curious people
Xiti` has quit [Read error: Connection reset by peer]
sectionme has joined #ruby
Jdubs has joined #ruby
rahulkmr1 has quit [Ping timeout: 260 seconds]
Jdubs has quit [Remote host closed the connection]
Monie has joined #ruby
brianpWins has joined #ruby
AlSquirrel has joined #ruby
julweber has joined #ruby
ChronocityLC has joined #ruby
sectionme has quit [Ping timeout: 248 seconds]
jamesaanderson has joined #ruby
DEA7TH_ has joined #ruby
DEA7TH has quit [Disconnected by services]
Monie has quit [Client Quit]
DEA7TH_ is now known as DEA7TH
rahulkmr has joined #ruby
wyclif has joined #ruby
T_T has quit [Remote host closed the connection]
AlSquire has quit [Read error: Connection reset by peer]
osvico has quit [Ping timeout: 245 seconds]
thehodapp has quit [Ping timeout: 245 seconds]
staafl has quit [Ping timeout: 256 seconds]
toah has joined #ruby
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
<dcunit3d> anyone know if you can use Rails Engines with Rails-Api?
kofno has joined #ruby
<dcunit3d> specifically, the doorkeeper oauth2 provider engine
Hanmac has joined #ruby
heidi has joined #ruby
gyre007 has joined #ruby
popl has joined #ruby
<shevy> is this good API design:
<shevy> def parse!(args)
heidi has quit [Client Quit]
mrsolo has joined #ruby
Goopyo has joined #ruby
<Morrolan> Ruby stdlib devs would say: Only if there's a parse method, too. Third-party devs would say: Yes, if it might do something destructive or somehow 'dangerous'.
ChronocityLC has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 240 seconds]
quoin has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
butblack has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
gyre007 has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> hmmm
maletor has joined #ruby
fixl has joined #ruby
mayorga has quit [Ping timeout: 256 seconds]
cj3kim_ has joined #ruby
io_syl_ has joined #ruby
SJr has quit [Excess Flood]
lfox has quit [Quit: ZZZzzz…]
io_syl has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
<withnale> has anyone seen this error before when trying to install a gem in 1.9.1 ?
popl has quit [Quit: We must make an idol of our fear, and call it God.]
<withnale> /opt/vagrant/embedded/include/ruby-1.9.1/ruby/ruby.h:105:14: error: size of array ‘ruby_check_sizeof_long’ is negative