apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<nfk> but when you use any IDE fro languages it was not originally meant to suppor the experience is really bad
<nfk> *for
<nfk> i guess the best all-rounder would be vim
<nfk> which is why i often just use it
<nfk> but i really can't be bothered to learn all the commands
<RubyTitmouse> IDEs are all about waiting for graphical widgets to expand and collapse and refocusing your eyes, it has nothing to do with language support
<pipecloud> nfk: That's why I just use vim. I comes with its own crappy scripting language!
<pipecloud> ctags is all you need to be happy
pdtpatrick has joined #ruby
<nfk> food and girls is all it takes to be happy
<RubyTitmouse> also, they lower your work load and make life easier by giving you lots of 2 second micro-breaks while you context shift between mouse and keyboard
<nfk> and some water and sunshine
`petey` has quit [Remote host closed the connection]
<nfk> and no bad weather
<RubyTitmouse> those seconds add up, wait a year and you've got a whole extra break out of it
<pipecloud> nfk: What if you're gay or dead?
<nfk> i think i'll go with that plan rather than ctags
<perldork> Syntastic and YouCompleteMe make vim much more IDE-like for people who are used to syntax completion and syntax checking
<nfk> pipecloud, i did include girls, didn't it?
`petey` has joined #ruby
<pipecloud> nfk: I don't think you understand.
<pipecloud> RubyTitmouse is dead inside.
<nfk> RubyTitmouse, arguably a personal maid also lowers your work load and makes your life easier by giving you...
Yahkob has quit [Remote host closed the connection]
<pipecloud> The only thing that makes him happy is disagreeing with people.
<RubyTitmouse> No, I'm happily married
centrx has quit [Ping timeout: 269 seconds]
binaryhat has joined #ruby
<perldork> that's what pipecloud said: dead inside :)
Yahkob has joined #ruby
<RubyTitmouse> nfk: hiring a maid will reduce local unemployment, it has to be good
Shellcat has joined #ruby
<pipecloud> perldork: :D
<RubyTitmouse> perldork: no, that's unhappily married. I was smart, I found a nice Buddhist girl.
<nfk> RubyTitmouse, not if you import'er
vlad_starkov has joined #ruby
<perldork> RUbyTitmouse: that was a joke, not a serious comment on the state of your marriage
<pipecloud> He's like a zombie, refusing to acknowledge the death that comes from within.
<nfk> well, that seconds amount to a break within a year did make me shudder
maletor has joined #ruby
<RubyTitmouse> People don't normally import maids, the immigrate first and are already here and then get hired
<RubyTitmouse> The ones people bring are where they were already in their employee, and fully trained/beaten down
<nfk> it's like... shouldn't you be saying "all this scripting let's me enjoy two extra weeks off work and doing manly things i enjoy"?
brennanMKE has quit [Remote host closed the connection]
cisco has quit [Quit: Leaving.]
<nfk> *lets
* nfk yawns
<RubyTitmouse> All this scripting lets me enjoy extra time off on IRC, sipping lemonade
Yahkob has quit [Read error: No route to host]
`petey` has quit [Ping timeout: 245 seconds]
Yahkob_ has joined #ruby
brennanMKE has joined #ruby
<nfk> i'd rather be doing something fun
maletor has quit [Client Quit]
<nfk> and something people will envy you for
Sir_Funk has quit [Ping timeout: 265 seconds]
fedesilva has quit [Ping timeout: 248 seconds]
<shevy> I'd wish I could have lemonade right now :(
<mrmcdonalds> hey im having trouble installing ruby 1.9.3
<RubyTitmouse> If you're worried about wanting people to envy you, you're already lost
<mrmcdonalds> using rvm it says error running bunzip2
<RubyTitmouse> shevy: I'm actually out of lemons, it is all limeade today
<MJBrune> mrmcdonalds: what OS?
<mrmcdonalds> ubuntu
<mrmcdonalds> 12 4
<MJBrune> mrmcdonalds: sudo apt-get install ruby1.9?
<nfk> mrmcdonalds, 1.9? i'm on 2.1!
<nfk> <-- gentoo
<mrmcdonalds> ya it says i need 1.9 for shoes tho
<MJBrune> mrmcdonalds: sudo apt-get install ruby1.9.3 do that
<mrmcdonalds> ill try w.o 1 sec
<nfk> though, yeah, i suspect my kubuntu laptop is still using that obsolete thing
<MJBrune> shoes is bad to be honest
<MJBrune> use ruby-gtk
<RubyTitmouse> I'm still on fedora 16, and even I have Ruby 2.1
<shevy> :D
<mrmcdonalds> really
<nfk> RubyTitmouse, arguably the last tolerale fedora version
<mrmcdonalds> gtk is better?
<RubyTitmouse> shoes is great for learning, but actual GUI apps, yeah, gtk
pfg has joined #ruby
<mrmcdonalds> thank you so much i was looking for an alternative!!
<nfk> fc17 was completely titraped
<MJBrune> yeah, just spent all of yesterday going through the gui systems gui has
<mrmcdonalds> anyone have a link
<nfk> and then it got worse with every release
aloysius_ has quit [Ping timeout: 245 seconds]
brennanMKE has quit [Ping timeout: 246 seconds]
<nfk> i just went with kubuntu
<MJBrune> mrmcdonalds: QT is okay if you know QT already but use C++ to learn QT then bring it to ruby
<RubyTitmouse> nfk: I upgraded my server to 19 and no problems yet
tjr9898 has joined #ruby
<pipecloud> mrmcdonalds: Please don't use the repository ruby.
Xeago_ has joined #ruby
<MJBrune> mrmcdonalds: gtk is great on ruby. VisualRuby is horse... stuff
<MJBrune> mrmcdonalds: gem install gtk2 I believe.
<pipecloud> mrmcdonalds: Your best bet is to use ruby-install
<shevy> mrmcdonalds or the wiki section: http://ruby-gnome2.sourceforge.jp/
<nfk> RubyTitmouse, dunno about servers but kde and laptop was misserable experience
<mrmcdonalds> ok great
<shevy> I'd wish someone would take over ruby-qt
<RubyTitmouse> I've been laughing at kde since like.... 2000
<pipecloud> mrmcdonalds: I'd suggest using shoes at first.
<nfk> bad clashes with gnome/systemd/ibus morons and general lack of applications
<pipecloud> RubyTitmouse: Before KDE stopped taking themselves seriously!
<mrmcdonalds> gem is working
<MJBrune> pipecloud: stop giving horrible advice.
<mrmcdonalds> thanks!!!!
<pipecloud> MJBrune: I'm not. :)
<mrmcdonalds> i thought shoes looked pretty cheezy
<pipecloud> MJBrune: Debian and Ubuntu can't package ruby for shit. :)
<shevy> shoes was nice when _why was still in charge
<MJBrune> It is and rather bad.
<shevy> without _why they lost their soul
<RubyTitmouse> Shoes is for kids to learn on, mostly
<nfk> oh god, lack of applications, on kubuntu i have to build some multimedia software myself but on fedora there was so much stuff lacking it was impossble
<pipecloud> MJBrune: What kind of cocaine are you doing that you think repository rubies aren't utter shit?
<pipecloud> I'll have what he's having.
<nfk> i couldn't play neither dvds nor youtube
predator217 has joined #ruby
<MJBrune> pipecloud: dude repo rubies are fine.
<pipecloud> MJBrune: Nope.
<MJBrune> pipecloud: lol okay dude you manually update and go outside of the norms on installion of ruby.
<RubyTitmouse> Traditionally, distro rubies were always (literally!) over 25% slower than a source install
<MJBrune> RubyTitmouse: if you are worried about speed then you really shouldn't use ruby at all.
<pipecloud> MJBrune: If we're going to go with system packages, which I love, at least use the ones from brightbox.
<RubyTitmouse> because portable optimization is hard, and a source build gets optimized automatically by the toolchain
<shevy> ever since debian once removed mkmf from their default rubies, I can not trust distribution specific rubies anymore
<nfk> RubyTitmouse, bad news, no one has noticed how you are laughing at kde, maybe you should try being more vocal about it
<nfk> like put it on a tshirt
<pipecloud> MJBrune: I can't ask people to package their own ruby for their system. Scares them to do it properly.
<Xuisce> hi shevy
<Xuisce> ;)
<Xuisce> :)
<Xuisce> :D
RoryHughes has joined #ruby
<pipecloud> The repo rubies are just broken, and if you use it and think it's right, I worry for you and your mental health.
<RubyTitmouse> MJBrune: I'm not one to worry much about speed, but when just recompiling makes it faster, that is good
<pipecloud> RubyTitmouse recompiles his kernel for microsecond savings during boot.
<RubyTitmouse> nfk: No need, they can succeed or fail it doesn't effect my Gtk apps :)
<MJBrune> RubyTitmouse: eh, compiling anything makes it faster than using a package.
<MJBrune> RubyTitmouse: go use FreeBSD if you really want speed.
mgberlin has quit [Quit: mgberlin]
predator117 has quit [Ping timeout: 245 seconds]
<RubyTitmouse> not for 10 years, but in the old days when the distros shipped slow over-ly monolithic kernels, yes, I did
<pipecloud> Or make custom hardware that implements ruby if you want true speed.
<mrmcdonalds> gtk
<nfk> MJBrune, i really wonder about that
<mrmcdonalds> how do i run gtk yall
<MJBrune> nfk: about what?
<nfk> freebsd is at this point a dinosaur
<mrmcdonalds> gtk2
<shevy> mrmcdonalds did you download that package?
<pipecloud> mrmcdonalds: RubyTitmouse knows a good amount about how to do it well.
<mrmcdonalds> yes its loaded
<mrmcdonalds> used apt
<shevy> ack
<MJBrune> nfk: actually its modern still. It's kept up to date and pretty powerful.
<shevy> sorry, I can't help you with apt
<mrmcdonalds> i know you hate apt
<mrmcdonalds> lol
<pipecloud> MJBrune: I doubt you'll need to use source
<shevy> yeah
<mrmcdonalds> its in gem
<mrmcdonalds> sorry
<mrmcdonalds> installed in gem
<RubyTitmouse> I used freebsd in 2007-8 but I came back because I like iptables
<shevy> but I can tell you my way, perhaps it helps you
<nfk> MJBrune, also there's no performance to be had on modern hardware
<mrmcdonalds> please
<RubyTitmouse> other than that, it is the same
<pipecloud> RubyTitmouse: But the new hotness, rite
<MJBrune> RubyTitmouse: iptables is utter trash so...
<shevy> the http://downloads.sourceforge.net/ruby-gnome2/ruby-gnome2-all-2.1.0.tar.gz package has the various bindings when you extract it, for instance: gtk2/ dir gtk3/ dir atk/ dir etc.. etc..
mlpinit_ has joined #ruby
<pipecloud> shevy: Feel free to help him, but at least talk him through checkinstall.
<nfk> my system that most would call terribly bloated runs on few percent of CPU
<shevy> mrmcdonalds in each of these directories there is either a sample/ subdirectory or examples/
<mrmcdonalds> ok
<RubyTitmouse> MJBrune: the funny thing about people saying that... it usually means they don't use the features, so like... how would they know?
<shevy> mrmcdonalds especially the gtk/ has like 300 examples which showcase what it can do
<mrmcdonalds> where is this dir?
<nfk> even making it twice as slow would still probably not be noticeable
<shevy> mrmcdonalds if all your bindings were properly installed, these examples will work
oso|away is now known as oso96_2000
<pipecloud> mrmcdonalds: I would grab the package, but dno't install it, just use the exmamples.
<mrmcdonalds> oh i see
<pipecloud> examples too
<shevy> yeah you can just try to run the examples
aloysius_ has joined #ruby
<nfk> on the other hand latencies are hard to get right
<RubyTitmouse> I remember people not wanting to go from ipchains to iptables because they didn't want any new features... at least they had a point
<mrmcdonalds> ok thanks ill try
<mrmcdonalds> they are .rb??
<pipecloud> MJBrune: I find it funny that you talk about iptables being trash, but you use repository ruby.
<nfk> having them too low will eat performance and then eat at your performance
<MJBrune> RubyTitmouse: lol. I have used completely the following firewall systems: iptable, ipfw, pf anf ipf
<shevy> sure, these are ruby bindings to gtk mrmcdonalds
<nfk> and having them too high will ruin your life
<MJBrune> RubyTitmouse: pf is the best hands down.
<RubyTitmouse> MJBrune: what don't you like about iptables?
<MJBrune> pipecloud: eh that's because I don't use ruby for speed. No one should.
<mrmcdonalds> great found it thank you so muhc
<pipecloud> MJBrune: My argument isn't speed. It's correctness in packaging.
<mrmcdonalds> so i run it like a ruby file right shevy
<mrmcdonalds> just ruby file.rb
<pipecloud> Shit's broke. They sort of fixed rubygems a while back.
<shevy> mrmcdonalds yeah
bleak has joined #ruby
<MJBrune> RubyTitmouse: it's slow.
<MJBrune> RubyTitmouse: super super super slow
<shevy> mrmcdonalds try the "main.rb" in gtk subfolder, it links all examples
<pipecloud> It is a bit slow, yeah.
<shevy> or sample.rb I am not sure
TripleDES has quit [Ping timeout: 248 seconds]
agjacome has quit [Quit: leaving]
<shevy> or just run all of them one after the other ;)
<pipecloud> s/run/read/
<mrmcdonalds> none are working
<mrmcdonalds> says cant get requireds
<shevy> say thanks to apt!
<mrmcdonalds> dang lol
<pipecloud> mrmcdonalds: What is the error message?
<shevy> but I think it should actually work
<MJBrune> RubyTitmouse: see iptables on a router will kill your internet connections. It can't handle load and its meant to be a software firewall for every computer not on a specific box so every computer doesn't need a firewall.
<shevy> not even debian can be that dumb
<RubyTitmouse> I dunno, I usually use 10 year old boxes for routers, so they're so blazing fast I'd never notice the slow speed of the firewall. Especially since I never go past gigabit eth.
<MJBrune> RubyTitmouse: which is the wrong way to secure a network.
mlpinit has quit [Ping timeout: 265 seconds]
danijoo has quit [Read error: Connection reset by peer]
<shevy> mrmcdonalds I have an idea, lemme find the hello world
<RubyTitmouse> "see iptables on a router will kill your internet connections." <--- derp!
<mrmcdonalds> runtime error, unknown command gtk
<pipecloud> mrmcdonalds: Gist the command you ran, the file you were executing, and the error please. :D
<RubyTitmouse> Right, you don't like iptables because of FUD.
<mrmcdonalds> gist?
<pipecloud> mrmcdonalds: /topic
danijoo has joined #ruby
<pipecloud> RubyTitmouse: Well, fwiw, he recommends the repo ruby because bad reasons too.
<nfk> MJBrune, i'm pretty sure iptables on 2.4 kernel is how most of router crapware handles NAT
<MJBrune> RubyTitmouse: I've had my 233 mhz gateway running httpd, ircd and pf. 100% fine. able to get 100GB/s out of it.
<nfk> and, guess what, this desktop box is also doing NAT and real firewalling for the LAN and, yes, i'm using iptables
<MJBrune> RubyTitmouse: I don't like iptables because its slow.
<shevy> mrmcdonalds, what if you try to save this in a .rb file then run it: http://pastie.org/8713270
agjacome has joined #ruby
<nfk> and my speeds are something most of you can only dream of
<mrmcdonalds> there it is
<RubyTitmouse> MJBrune: you're probably just doing it wrong
<mrmcdonalds> let me try that now shevy
<MJBrune> RubyTitmouse: lol okay dude, who has FUD now?
angusiguess has joined #ruby
<shevy> that is a weird error mrmcdonalds
<RubyTitmouse> It isn't "FUD" that iptables works well.
<MJBrune> RubyTitmouse: your the one clinging to iptables and not able to even check out pf or any alternative.
<nfk> 100 GB/s when the upcomming Ethernet standard is 40 GB/s, i call massive BS on you
<pipecloud> RubyTitmouse: Well, if you load a shitload of rules, it does get slower.
charliesome has joined #ruby
Sir_Funk has joined #ruby
<RubyTitmouse> Even if you disagree, it can't be "FUD." It is not fearful, uncertain, or doubting. It is confident and experienced with the tool.
<mrmcdonalds> it worked
<shevy> wait
<mrmcdonalds> !!
<nfk> in fact, it's probably 40Gib/s
<shevy> I get the same error
<mrmcdonalds> shevy the code worked
<shevy> so it is fine mrmcdonalds
Xeago has quit [Remote host closed the connection]
<mrmcdonalds> yes sir
<shevy> \o/
<MJBrune> The fact is that no corporate environment uses iptables for a large network.
<pipecloud> mrmcdonalds: How'd you get it to work after that error?
<mrmcdonalds> so where can i get documentation on hwo to do this
<shevy> now you can explore ALL these examples
<MJBrune> Just think about it.
<shevy> in the files ;)
<LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
<mrmcdonalds> ok thank you shevy
<shevy> I learned most by looking at what they do
<shevy> and the wiki mrmcdonalds
<mrmcdonalds> and i only need ruby right
<pipecloud> mrmcdonalds: The examples show you how, the rest is source mostly, I'd guess. Perhaps online docs?
<RubyTitmouse> How could using freebsd for 2 years and coming back because I like iptables mean I was able to check any alternative?
<RubyTitmouse> un
<mrmcdonalds> thank you all sooooo much
<pipecloud> mrmcdonalds: You need to either have gtk installed or package it with yoru app
<mrmcdonalds> glad i got away from shoes
<shevy> mrmcdonalds AND you are lucky that apt worked!
<mrmcdonalds> oh so its not cross platform
<pipecloud> MJBrune: "Just think about it" isn't compelling evidence.
<pipecloud> mrmcdonalds: It is.
<shevy> it works on windows too if you have ruby installed
<shevy> but windows can be very annoying
<mrmcdonalds> hm
<MJBrune> RubyTitmouse: lol because you never used it in an professional environment.
<nfk> [02:24] <MJBrune> The fact is that no corporate environment uses iptables for a large network. // yeah, they probably use something from cisco, juniper and their clients are all windows
<mrmcdonalds> so how can i package a program so its just download and run
<shevy> and there is no maintainer for windows so...
<pipecloud> You just need to bundle gtk if you don't want to have the user install gtk themselves.
<RubyTitmouse> mrmcdonalds: I use Ruby Gtk and dev on linux, it works 100% on windows, and I've never had to change a single line of code for portability (!)
<nfk> i consider corporate to be an example of how not to do things
perldork has quit [Quit: Leaving.]
<mrmcdonalds> great thank you ruby
<pipecloud> MJBrune: I work for a network security company and we're building out to be a registrar among many other related things, we use iptables.
mdpatrick has quit [Quit: No Ping reply in 180 seconds.]
<MJBrune> nfk: a lot of those are BSD and PF based.
bleak2 has joined #ruby
<mrmcdonalds> ill get to it later i guess... but you just take all the files and convert it to a exe???
mdpatrick has joined #ruby
perldork has joined #ruby
<mrmcdonalds> never done this before :) thank you all
perldork has left #ruby [#ruby]
patricknegri has quit [Quit: Textual IRC Client: www.textualapp.com]
<RubyTitmouse> On windows you install the normal windows Gtk, install "one-click" ruby, install their "devkit", then gem install "gtk2" and you're ready to roll
<shevy> mrmcdonalds well a .exe would not quite work on linux
<pipecloud> Just because some people do and don't use one or the other firewall it doesn't really provide any real value to the discussion on what's not shit and what is.
<mrmcdonalds> i know i want to make a program peep could download from my site and use
<pipecloud> mrmcdonalds: There's ruby gems that help with packaging code.
<mrmcdonalds> on w/e
<nfk> MJBrune, just like mac os x is bsd based, you keep telling yourself that
<shevy> yeah, "gem install ruby-gnome" or so... should work
<MJBrune> nfk: it is BSD based if you think it's not then you are fooling yourself.
<nfk> [02:26] <shevy> mrmcdonalds well a .exe would not quite work on linux // i'm pretty sure chmod +x and they would
<mrmcdonalds> ill worry about this later lol
<mrmcdonalds> one thing at a time
<MJBrune> nfk: using 90% of the userland makes you based on that userland.
<pipecloud> mrmcdonalds: This may or may not suck: https://github.com/Spooner/releasy
<mrmcdonalds> thank you all imma get to work
<nfk> this reminds me i should just go and play some fate/stay night
m104 has quit [Quit: bye]
<shevy> nfk it would not!!!
mrmcdonalds has quit [Quit: Leaving]
<nfk> i wonder how many more years till i'm done with fate ark
<RubyTitmouse> OS X is NextSTEP modified to use mostly fBSD cli userland
<shevy> but wine *exe often will work
<nfk> shevy, are you sure you have been up to speed with modern linux?
<RubyTitmouse> Everybody knows that
<shevy> nfk yeah!
<nfk> shevy, the point is wine can register itself as a handler for PE
<nfk> and then kernel can execute .exe
<shevy> hmm
agent_wh1te has joined #ruby
<nfk> as long as the file is executable
bleak has quit [Ping timeout: 272 seconds]
<RubyTitmouse> how more unix-y can you get than an academic micro-kernel and a BSD userland? Oh, it doesn't use X Window System, gee... I guess it can't be *nix... right?!
lukec has quit [Quit: lukec]
george2 has quit [Remote host closed the connection]
<pipecloud> .exe means nothing other than a file extension that's commonly used for windows executables.
<MJBrune> RubyTitmouse: no one is arguing that it isn't *nix
<nfk> MJBrune, 90%? more like 10%
dreamchaser has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Excess Flood]
v0n has joined #ruby
<pipecloud> Well, it's a Unix proper certified.
<MJBrune> nfk: okay, keep pretending. It uses the damn TCP/IP stack from freebsd.
<nfk> my nokia probably has more GPL code than iOS has BSD
pierre1_ has quit [Quit: Leaving]
agent_wh1te has left #ruby [#ruby]
<pipecloud> The first proper certified BSD.
kirun has quit [Quit: Client exiting]
<nfk> pipecloud, windows 7 pro is POSIX certified
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
<MJBrune> nfk: 1) GPL code != Linux code 2) BSDL code != BSD code.
dreamchaser has quit [Excess Flood]
<pipecloud> Yeah, but no one cares about POSIX certification other than RMS.
<RubyTitmouse> it is like saying that linux isn't gnu because "linux is just a kernel"
Aryasam has joined #ruby
dreamchaser has joined #ruby
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
<MJBrune> I didn't know that though windows 7 is posix?
<RubyTitmouse> Heck, Windoze NT4 was POSIX, yes?
<nfk> install the compatibility layer and it is
<nfk> of course it will still work with only PE binaries and i'm not sure how well they implement the spec since returing "not implemented" is also valid, ha
<MJBrune> RubyTitmouse: linux isn't gnu. Linux is Linux and GNU is GNU. Linux is just a kernel and techically its GNU/Linux but we shorten it to just Linux.
pfg has joined #ruby
<nfk> and Android is Google/Linux
<RubyTitmouse> Right, "linux" is short for "GNU/Linux" and therefore "linux" IS gnu! and linux!
<nfk> now wait for Chrome which also would be Google/Linux
<nfk> *ChromeOS
<RubyTitmouse> There are lots of versions of Google/Linux these days
<pipecloud> MJBrune: POSIX certigied.
ktosiek has quit [Read error: Operation timed out]
<pipecloud> certified too
<pipecloud> It's like aspie hour here. We were talking about how ruby from repositories sucks, then how firewalls suck, and then how operating systems suck, and now how we suck.
vlad_starkov has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<shevy> that's how pipecloud looks in reallife! all furry and a twisted tail
pdtpatrick has quit [Quit: pdtpatrick]
<RubyTitmouse> If we can't even agree that repository ruby sucks, we must collectively suck pretty bad. At least on that there is consensus.
<nfk> i never said it didn't
<nfk> by the recommendation of a gentoo maintainer (not the main ruby maintainer though) i only install ruby and bundler and gem and then use those to install the rest)
<shevy> who said that repository ruby is great, let's find him
<nfk> and the stuff handled by portage is only installed by direct dependencies on something else
<shevy> ewwww
<shevy> python...
<shevy> you make me sad nfk :(
angusiguess has quit [Ping timeout: 246 seconds]
<shevy> hmm if homebrew would work on linux...
<nfk> just make gem not suck
<nfk> in fact, let's just make portage the default package manager
<nfk> and maybe improve the binary support so that it's easier to get started
thams has joined #ruby
<nfk> but in the end you either build everything from source or you can just run windows since even if source is available you can't know that the given source is what really was used to build your binaries
<shevy> man
<shevy> python is not meant to dominate the world
<shevy> they can't even decide whether they want to use python2 or python3!
<nfk> it's certainly got a good hold of it
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
Kricir has quit [Ping timeout: 246 seconds]
jefflyne has joined #ruby
<AlexRussia> nfk: hey, when you reply me?
<nfk> ?
<shevy> nfj when you reply me too!!!
SteveBenner09 has joined #ruby
<AlexRussia> nfk: Who You?
<shevy> lol
<AlexRussia> shevy: really, he say, bla-bla you dont know where me.I HAVE KNOW
axsuul has joined #ruby
<shevy> well
<shevy> yeah
dagnachew has joined #ruby
<shevy> and now code ruby man!
<AlexRussia> shevy: so serious, is interesing
<shevy> soooo interesting :P
<AlexRussia> shevy: ruby-man, superhero!
<AlexRussia> XD
heckman has joined #ruby
<AlexRussia> F**K, i'm again make joke
<AlexRussia> nfk: wht you do? Make shit or reply me?
jonr22 has joined #ruby
<nfk> shevy, i can confirm that my linux kernel can run .exe
<AlexRussia> ahhaahahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<AlexRussia> iconfirm my kernel send login and password for ssh to MS
joaobatalha has joined #ruby
<nfk> i just had to edit my game launcher scripts to prepend ./ because my jap games (well, VNs mostly) are not in PATH
<AlexRussia> i'm confirm*
joaobatalha has quit [Client Quit]
brennanMKE has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
<nfk> boot the guy out?
starfox21 has joined #ruby
<nfk> he's clearly high or stupid
<AlexRussia> nfk: try search PATH in HELL
<AlexRussia> boot guy?
<heckman> When do mixins become visible to a class? I'm trying to call a function pulled in via an include statement from a Class method and I'm getting a 'NoMethodError'
max96at has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> heckman they become available to your class
brennanMKE has quit [Read error: Connection reset by peer]
<shevy> >> module Foo; def test; puts 'hi from test'; end; end; class Bar; include Foo; end; Bar.new.test
<eval-in> shevy => hi from test ... (https://eval.in/99674)
brennanMKE has joined #ruby
<waxjar> "class methods" from a module don't become available when you include it
<heckman> The class method isn't within the mixin. Let me get an example snippet in a gist.
RaCx has joined #ruby
<AlexRussia> shevy: why don't possble used string with each?
<shevy> >> module Foo; def test; puts 'hi from test'; end; extend self; end; class Bar; include Foo; extend Foo; end; Bar.test
<eval-in> shevy => hi from test ... (https://eval.in/99678)
<shevy> heckman, now it should work on class methods as well
dagnachew has quit [Quit: WeeChat 0.4.2]
dagnachew has joined #ruby
<shevy> AlexRussia how would that work? you dont have something to iterate yet on a 'string' object
eka has joined #ruby
<AlexRussia> shevy: i have each string like array
eka has quit [Read error: Connection reset by peer]
<shevy> is that a String or an Array :P
brunops has quit [Changing host]
brunops has joined #ruby
kenneth_ has quit [Quit: Bye.]
<AlexRussia> shevy: but string is array symbols....
eka has joined #ruby
<AlexRussia> XD
dagnachew has quit [Client Quit]
<nfk> >> (Array.send "[a, b, c, d]").last
<eval-in> nfk => undefined method `[a, b, c, d]' for Array:Class (NoMethodError) ... (https://eval.in/99679)
chrisseaton has quit []
dagnachew has joined #ruby
<AlexRussia> nfk: Oo
chrisseaton has joined #ruby
<nfk> >> (Array.send("[a, b, c, d]")).last
<eval-in> nfk => undefined method `[a, b, c, d]' for Array:Class (NoMethodError) ... (https://eval.in/99680)
<shevy> AlexRussia a symbol in ruby is something like: :foo
eka has quit [Client Quit]
jhass has quit [Quit: Bye]
<AlexRussia> shevy: oh..........
<shevy> AlexRussia a string is 'foo', an array is either ['foo'] or ['f','o','o']
jhass|off has joined #ruby
<shevy> and an array with symbols is [:f,:o,:o]
jhass|off is now known as jhass
<AlexRussia> (
<heckman> shevy: ah, I didn't think to include and extend. Cheers!
<shevy> heckman I did not know myself about 4 weeks ago
<shevy> I was using extend always incorrectly :(
<nfk> >> Array.send(:new, ["a", "b", "d"])
<eval-in> nfk => ["a", "b", "d"] (https://eval.in/99681)
thams has quit [Quit: thams]
<nfk> >> (Array.send(:new, ["a", "b", "d"])).last
<eval-in> nfk => "d" (https://eval.in/99682)
<nfk> finally
Emmanuel_Chanel has quit [Remote host closed the connection]
<nfk> this is what i dislike about ruby, probably
<nfk> it's cute and all but i always forget it withint days/weeks
Emmanuel_Chanel has joined #ruby
jhass is now known as jhass|off
centrx has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
RoryHughes has quit []
axsuul has quit [Ping timeout: 245 seconds]
mavcunha has joined #ruby
dagnachew has quit [Quit: WeeChat 0.4.2]
<shevy> that's a rather peculiar way for doing
dagnachew has joined #ruby
LLKCKfan has quit [Read error: Connection reset by peer]
<shevy> >> %w( a b d ).last
<eval-in> shevy => "d" (https://eval.in/99685)
<shevy> I forget a lot, that's why I collect local docu
enape_101 has joined #ruby
<shevy> in GERMAN
<AlexRussia> docu
<AlexRussia> docu desu
uglybandersnatch has quit [Quit: Leaving.]
Sir_Funk has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #ruby
<AlexRussia> nfk: door open, i think....
LLKCKfan has joined #ruby
shadoi has joined #ruby
ndrei has joined #ruby
kenneth has joined #ruby
vlad_starkov has joined #ruby
dagnachew has quit [Client Quit]
dagnachew has joined #ruby
dagnachew has quit [Client Quit]
robustus has quit [Ping timeout: 252 seconds]
S0da has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
shadoi has quit [Ping timeout: 246 seconds]
robustus has joined #ruby
popl has quit [Ping timeout: 248 seconds]
ephemerian has quit [Quit: Leaving.]
timonv has joined #ruby
cashnguns has quit [Ping timeout: 246 seconds]
<SteveBenner09> I have pretty damaged short-term memory but with Dash my doc problems are always solved
Aryasam has quit [Ping timeout: 246 seconds]
pierre1_ has joined #ruby
Deele has quit [Ping timeout: 245 seconds]
<nfk> i take it's not the shell
RaCx has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: Bye.]
nowthatsamatt has quit [Quit: nowthatsamatt]
MissionCritical has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
kenneth has joined #ruby
SHyx0rmZ has joined #ruby
kyle__ has joined #ruby
heckman has quit [Quit: leaving]
SteveBen_ has joined #ruby
lukec has joined #ruby
agarie_ has joined #ruby
hakunin_ has joined #ruby
RoxasShadow has joined #ruby
jonr22_ has joined #ruby
hobodave_ has joined #ruby
kenneth has quit [Client Quit]
tfittsy has joined #ruby
pixelgremlins has quit [Ping timeout: 272 seconds]
pixelgremlins has joined #ruby
Hanmac has joined #ruby
artmann_ has joined #ruby
axsuul has joined #ruby
kevinykc_ has joined #ruby
Es0teric has joined #ruby
itadder has joined #ruby
lagweezl1 has joined #ruby
Mission-Critical has joined #ruby
txdv_ has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
breaking_ has joined #ruby
eka has joined #ruby
oz` has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
Celm has joined #ruby
pfg_ has joined #ruby
blackmesa has quit [Read error: Operation timed out]
Markvill_ has joined #ruby
Es0teric_ has quit [Ping timeout: 265 seconds]
enape_101 has quit [Ping timeout: 250 seconds]
chipotle_ has joined #ruby
mosheee has joined #ruby
<pontiki> o/
Kruppe- has joined #ruby
iMe_away is now known as iMe
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
lyanchih has joined #ruby
CaptainKnots has joined #ruby
<centrx> Quack quack
* pontiki types centrx
pierre1_ has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
jonr22 has quit [*.net *.split]
SteveBenner09 has quit [*.net *.split]
pfg has quit [*.net *.split]
chipotle has quit [*.net *.split]
habanany1 has quit [*.net *.split]
hobodave has quit [*.net *.split]
jrist has quit [*.net *.split]
Markvilla has quit [*.net *.split]
saltsa has quit [*.net *.split]
agarie has quit [*.net *.split]
Beoran_ has quit [*.net *.split]
txdv has quit [*.net *.split]
moshee has quit [*.net *.split]
RoxasShadowRS has quit [*.net *.split]
Kruppe has quit [*.net *.split]
breakingthings has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
kevinykchan has quit [*.net *.split]
aboudreault has quit [*.net *.split]
marcgg_ has quit [*.net *.split]
tfitts has quit [*.net *.split]
jack_rabbit has quit [*.net *.split]
artmann has quit [*.net *.split]
lagweezle has quit [*.net *.split]
hakunin has quit [*.net *.split]
rylinaux has quit [*.net *.split]
oz has quit [*.net *.split]
KK4MGV has quit [*.net *.split]
canton7 has quit [*.net *.split]
oz` is now known as oz
<centrx> It worked!
<centrx> I have quacked Freenode!
<viki> Hi
<centrx> Ahoy
saltsa has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
<viki> Can somebody tell me where I can find out why "2.0" is not less than "10.0"?
ndrei has joined #ruby
<centrx> viki, It should be?
Olipro has quit [Ping timeout: 241 seconds]
Mission-Critical is now known as MissionCritical
<viki> it isn't in irc
<viki> irb i mean
<viki> brain can't brain anymore :p
<viki> as strings
<apeiros> viki: strings are compared character by character
<centrx> >> "2.0" <=> "10.0"
<eval-in> centrx => 1 (https://eval.in/99687)
<apeiros> so "2.0" <=> "10.0" starts with "2" <=> "1"
angusiguess has joined #ruby
<centrx> oh wait I misread the doc
<apeiros> and since "2" > "1", comparison stops there already, determining "2.0" to be > "10.0"
<viki> Oh
<viki> Ok, cool, thanks
<apeiros> yw
<viki> I was trying to add ascii values or something
<apeiros> well, rubys comparison is based on the binary value
<apeiros> it (sadly) doesn't have collations
<viki> i don't know what collations are
Olipro has joined #ruby
<apeiros> it's part of encoding information. it tells you which character has what sorting order.
mercwithamouth has quit [Ping timeout: 272 seconds]
<apeiros> for example, in english, it may be that "ä" > "z"
<apeiros> but in german it's "a" < "ä" < "b"
habanany has joined #ruby
<apeiros> not every language orders chars the same
nihils has joined #ruby
<viki> Huh. Funky.
derek_c has quit [Ping timeout: 248 seconds]
habanany has quit [Max SendQ exceeded]
vlad_starkov has quit [Read error: Connection reset by peer]
aboudreault has joined #ruby
jack_rabbit has joined #ruby
habanany has joined #ruby
alexherbo2 has joined #ruby
Beoran_ has joined #ruby
Kricir has joined #ruby
jrist has joined #ruby
pierre1_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
mmealling has joined #ruby
kenneth has joined #ruby
tt1187 has quit [Read error: Operation timed out]
nichtdiebohne has quit [Ping timeout: 272 seconds]
pierre1__ has joined #ruby
<mmealling> I'm writing a gem that should be usable outside of Rails. Is there a recommended way of handling configuration options so that 1) there is a reasonable default and 2) the user can create instances with custom configuration 3) every class has access to the configuration settings?
<mmealling> (and 4) doesn't use a global variable so people won't yell at me for doing it wrong)
Kricir has quit [Ping timeout: 248 seconds]
CaptainKnots has quit [Quit: bazinga!]
AlSquirrel has quit [Quit: This computer has gone to sleep]
<apeiros> viki: btw., sorting strings like "photo2.jpg" < "photo10.jpg" is called "natural sorting"
CaptainKnots has joined #ruby
CaptainKnots has joined #ruby
CaptainKnots has quit [Changing host]
<apeiros> and you'd do it by splitting the string into its string and number parts
pierre1_ has quit [Ping timeout: 248 seconds]
<apeiros> mmealling: YourClass::Defaults = {…}; YourClass#initialize -> @config = Defaults.merge(config_arg)
aspires has quit []
RaCx has quit [Read error: Connection reset by peer]
Solnse has joined #ruby
<mmealling> apeiros, OK. so @config is an instance variable. If the gem implements several APIs (user commands, admin commands, etc) how should each class access @config?
AlSquirrel has joined #ruby
<viki> apeiros: does the length of the string not matter? it's just sorting it like we'd sort things alphabetically, for example?
<pipecloud> mmealling: Use a configuration block that you accept from users, like rspec does or anyone else with a config block.
sski has joined #ruby
benzrf has joined #ruby
RaCx has joined #ruby
<benzrf> hey
<benzrf> im a little confused by https://rvm.io/rvm/autolibs
<apeiros> mmealling: you want an answer out of thin air, without giving details. sorry, no can do.
<pipecloud> benzrf: #rvm
<benzrf> ok
<nfk> [03:34] <apeiros> for example, in english, it may be that "ä" > "z" // since modern Ruby (except 1.9) is using UTF-8 by default you are pretty much derped anyway
<apeiros> viki: it only matters if up to the length of the shorter string, both strings are equal
gja has joined #ruby
<nfk> except for the part where ASCII codes are valid UTF-8 codes
<apeiros> viki: in that case, the shorter string is considered smaller
<mmealling> apeiros, fair enough. Might turn it into a blog article.
<viki> apeiros: ah, ok. that helps, thanks!
<pipecloud> mmealling: Why not just look around at the other gems that allow configuring?
<apeiros> nfk: I don't get what you try to say
<nfk> apeiros, for ASCII it will work
<pipecloud> apeiros: 'blah blah blah' I think. :p
<nfk> but anything outside ASCII will have UTF-8 codes
<apeiros> nfk: I think you confuse things
KK4MGV has joined #ruby
<apeiros> nfk: the encoding doesn't inform about sorting. and ruby doesn't care about characters when sorting.
<apeiros> ruby does plain byte comparisons.
ndrei has quit [Ping timeout: 245 seconds]
<nfk> in case of ASCII encoding does allow one to sort uppper and lower case individually
<nfk> but it won't work for anyting else
<apeiros> yeah, you are confusing things.
<nfk> unless i'm badly mistaken about how UTF-8 works
<apeiros> ascii was built so that byte comparison will result in a sensible sort. but that's about it.
<nfk> apeiros, well, can you file it under "I don't care"?
<apeiros> nfk: why did you say something then?
enape_101 has joined #ruby
<pipecloud> nfk likes attention! He's like a chihuahua! :D
* apeiros files it under whatever
<pipecloud> apeiros: Is whatever filed under /dev/null ?
nanoyak has joined #ruby
<apeiros> I never checked where files under whatever actually end up
prc has quit [Quit: Leaving.]
<nfk> probably some hatefile
prc has joined #ruby
mlpinit_ has quit [Remote host closed the connection]
<pipecloud> /dev/null/whatever
<apeiros> I doubt that
<apeiros> my hate-o-meter is pretty low
<pipecloud> nfk: The amount of hate apeiros seemingly has is pretty nearly nil.
<nfk> as in you start hating things easily?
chipotle_ has joined #ruby
mlpinit has joined #ruby
<apeiros> as in: there are few things I truly hate
<pipecloud> apeiros: Being subjected to PHP?
<nfk> pipecloud, then what about the actual hate?
<apeiros> most things I do hate come from microsoft or oracle
<pipecloud> nfk: What actual hate?
<pipecloud> apeiros: I, too, hate the open source graveyard.
<apeiros> or rather: most things I do hate are things I'm forced to use.
<nfk> pipecloud, you said seemingly
<pipecloud> nfk: I cannot speak for apeiros. This is based on observation.
chipotle has quit [Ping timeout: 250 seconds]
revMARKbrown has quit [Read error: Connection reset by peer]
<nfk> ah, one of those "everything is relative" people spotted
<apeiros> about other things I can get passionate, or heated. but hate is rarely involved.
<pipecloud> nfk: Well, not really. It's more like, "I have not observed him hating very much in the time I have known him."
<centrx> PHP is an abomination and a scourge on the face of the earth.
<nfk> just this evening some phd started trash talking how science is the religion of western world on the radio
<nfk> made me herp
<centrx> nfk, Sounds right
<nfk> i don't religiously believe in science
<pipecloud> nfk: It would do you good to distinguish between not speaking for others and reddit-style relativity and "Define #{term}".
mlpinit_ has joined #ruby
<apeiros> if you religiously believe in science, it's not science.
<nfk> it's true i haven't tested everything myself but if basic physics started failing us, the wolrd itself would disintegrate before we could contemplate how it would happen
<centrx> The religious thinks what he believes in is true.
<nfk> *world
<apeiros> religion is antithetic to science.
<pipecloud> apeiros: What is if it you believe in scientifically intoxicating one's self because of religion?
<centrx> Most of the people who believe what they hear about science do not know science, they believe in it
<nfk> apeiros, exactly
ndrei has joined #ruby
<pipecloud> centrx: I disbelieve all things to be true.
zz_jrhorn424 is now known as jrhorn424
<apeiros> all believe science needs is because of practical limitations
<centrx> Just as a religious person who does not read the Bible believes in it because of the priests and those around him
<apeiros> *belief
<nfk> centrx, that's not science
<pipecloud> bahleaf
<apeiros> pipecloud: I don't understand that phrase :(
tjr9898_ has joined #ruby
axsuul has joined #ruby
<apeiros> centrx: correct. I didn't go around and verify all science taught to me in school. but unlike with religion, it is possible in science.
tjr9898 has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
mehlah has quit [Quit: Leaving...]
<centrx> nfk, Sure, but the vast majority of people who "believe in" science have not done any experiments and have not read any scientific studies and lack even a basic understanding.
<apeiros> as said - practical limitations require some belief.
mlpinit has quit [Ping timeout: 250 seconds]
senayar_ has joined #ruby
speakingcode has quit [Quit: Lost terminal]
<centrx> I have yet to see a proof that the future exists.
<pipecloud> centrx: I have yet to see a vodka I don't like.
AlSquirrel has quit [Quit: This computer has gone to sleep]
<apeiros> I have yet to see that you're not all bots
estebistec has joined #ruby
mikepack has joined #ruby
mikemac has quit [Quit: Konversation terminated!]
<pipecloud> apeiros: I have yet to see that you're not all just terrible iimplementations of markov chain bots.
vlad_starkov has joined #ruby
<centrx> Terrible, terrible implementations
mikemac has joined #ruby
baroquebobcat has joined #ruby
x77686d has joined #ruby
<apeiros> pipecloud: tell me more about this "markov chain bots"
benzrf has left #ruby [#ruby]
baroquebobcat has quit [Client Quit]
<pipecloud> apeiros: I don't know! Tell me what you mean by "tell me more about this "markov chain bots""?
<apeiros> Why don't you know! Tell you what me mean by" tell you more about this" markov chain bots""?
senayar has quit [Ping timeout: 260 seconds]
RoxasShadow has quit [Read error: Connection reset by peer]
tolstoi has joined #ruby
Celm has quit []
<nfk> centrx, they aren't doing science
<pipecloud> I think centrx knows what "Why don't you know! Tell you what me mean by" tell you more about this" markov chain bots""?" means. centrx, are you there? What does this mean?
<centrx> How are you today? What would you like to discuss?
Solnse has quit [Remote host closed the connection]
<pipecloud> nfk: I did science once. Would not recommend.
<pipecloud> He's a bit clingy and whingy.
gja has quit [Quit: This computer has gone to sleep]
<nfk> just like i'm not a christian just because i grew up in western world someone is not a scienctist just because they were born in western world or anywhere else
<centrx> Science will get you wasted.
<nfk> pipecloud, i did physics too
<nfk> i would not go back from CS
<nfk> anyway, i have done about 3-5 lab works
<pipecloud> nfk: What is this "physics"?
<nfk> from basic measurments and statistics to soundwaves and fluids
mikepack has quit [Ping timeout: 272 seconds]
<nfk> pipecloud, physics as in physics
<pipecloud> nfk: What is this "physics as in physics"?
dx7 has quit [Ping timeout: 272 seconds]
<nfk> well, i got only as far as fluid dynamics and how electricity can be explained without maxel's equations before i decided i like computer smore than this and that my future will be bleak if i don't get out quickly
<nfk> *computers
estebistec has quit [Remote host closed the connection]
<RubyTitmouse> It is like a Chekov Chain Bot, but instead of stabbing it with a sword to change states, it just randomizes the inputs
<pipecloud> What is "explained" and "equations"?
<centrx> Constructs!
<nfk> but my lab teacher was in fact taking part in CERN experiments so it was most certainly the real thing
brian___ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
<centrx> Real science! Not those fakes like James Watson!
<centrx> Niels Bohr was obviously an idiot, how can anyone disagree with that?
enape_101 has quit [Ping timeout: 252 seconds]
RaCx has quit [Ping timeout: 245 seconds]
marcgg has joined #ruby
echevemaster has joined #ruby
<pipecloud> centrx: Have you done science to determine if the science performed by those hacks was real science?
<viki> apeiros: mind answering a silly question about object_id?
RaCx has joined #ruby
<pipecloud> viki: You can ask the channel. :)
<apeiros> viki: I don't know without knowing the question!
<viki> XD
<pipecloud> apeiros: What if you _do_ know without knowing the question? Pretty creepy, right?
<centrx> pipecloud, We were discussing you, not me.
<viki> ok so if i assign a = 1, b = 1, and c = 1, calling object_id on a, b and c all give me 3 as the answer
<viki> but if i assign x = "1" and call object_id on that, i get some random number as the answer
<apeiros> yes, because ruby doesn't create new objects for 1
<centrx> viki, Yes, there is only one integer "1".
<apeiros> but it does create new objects for strings
<centrx> It is a Platonic ideal
<viki> ok so my variables aren't new objects, only the 1 is
freezey has joined #ruby
<apeiros> viki: 1, "1", :foo, [] etc. are called "literal". that's because the value is literally in the code. it's not constructed or gotten from IO
<apeiros> viki: there are some cases where literals will yield the same object all the time. and other cases, where ruby constructs a new object every time
fbernier has joined #ruby
<pipecloud> viki: Integers have static object id's no matter where you refer to them from or get them from.
<apeiros> same object you'll get for: nil, true, false, :symbols, Fixnum instances
<centrx> My integer 1 has object_id == 3 too
<pipecloud> "1".to_i.object_id == 1.object_id # => true
<centrx> >> 1.object_id
<eval-in> centrx => 3 (https://eval.in/99688)
<apeiros> as of 2.1 you'll also always get the same object with "foo".freeze (immediately frozen strings)
<pipecloud> >> "1".to_i.object_id == 1.object_id # => true
<eval-in> pipecloud => true (https://eval.in/99689)
<pipecloud> apeiros: Well, doesn't that just return a symbol?
<apeiros> pipecloud: no
<pipecloud> apeiros: I should look that shit up. :d
<centrx> Yes, what is the point of the new string freeze or the point of symbols now
<apeiros> pipecloud: frozen strings are still subject to GC. symbols aren't.
<pipecloud> Ohlook!
<pipecloud> apeiros: That's neat.
Shellcat has quit [Quit: Later peeps]
[krisbulman] is now known as krisbulman
freezey has quit [Remote host closed the connection]
<viki> OK cool, thanks. Where could I have looked that up? I tried looking up and reading the docs stuff on object_id but that wasn't what I needed.
lagweezl1 is now known as lagweezle
pixelgremlins_ba has joined #ruby
binaryhat has quit [Quit: Leaving]
tylersmith has joined #ruby
krisbulman is now known as [krisbulman]
bigmac has joined #ruby
pixelgremlins has quit [Ping timeout: 246 seconds]
bigmac is now known as i8igmac
<centrx> viki, Maybe this one line in the Fixnum doc, "There is effectively only one Fixnum object instance for any given integer value" http://www.ruby-doc.org/core-2.1.0/Fixnum.html
mercwithamouth has quit [Ping timeout: 245 seconds]
brian___ has quit [Quit: brian___]
jonr22_ has quit [Remote host closed the connection]
jonr22 has joined #ruby
Shidash has joined #ruby
Rollabunna has joined #ruby
robbyoconnor has joined #ruby
[krisbulman] is now known as krisbulman
axsuul has quit [Read error: No route to host]
<viki> centrx huh. Cool. I'm not sure I'd have gathered from that that a variable assigned to an integer (uh, or vice versa) is covered by that, but now I know! Thanks :)
<apeiros> viki: the object_id is unique at a given time within the same program
<centrx> viki, Yeah, the official documentation is better for methods than for general language constructs
<apeiros> so if two objects have the same object_id at the same time in the same program, then it's actually just one object
<mmealling> pipecloud, because just about every gem does it differently. Seems that such a common pattern would have a recommended solution.
<viki> apeiros huh. Interesting. Are there other examples of that besides numbers?
<apeiros> viki: x = "foo"; y = x; y.object_id == x.object_id
dreamchaser has quit [Ping timeout: 245 seconds]
<apeiros> both variable reference the same object
<pipecloud> mmealling: Well, I did give you an example.
brennanMKE has quit [Remote host closed the connection]
<pipecloud> There's many blog posts on it.
<pipecloud> I suggested a solution too.
<bahar> hi, i'm a little stumped on something. say, i have an array: [[2, 2], [7, 1]]
dx7 has joined #ruby
dreamchaser has joined #ruby
jonr22 has quit [Ping timeout: 248 seconds]
<centrx> Tell me more...
dreamchaser has quit [Changing host]
dreamchaser has joined #ruby
brennanMKE has joined #ruby
pskosinski has joined #ruby
SteveBen_ has quit []
<mmealling> Yep, you did. Thanks! I was just noting that there isn't a consistent implementation out there.
<pipecloud> bahar: You can't. That's my array. You can't have it!
<pipecloud> mmealling: So?
vlad_starkov has quit [Read error: Connection reset by peer]
<pipecloud> There's not a consistent implementation of a lot of things.
<bahar> how do i manipulate the subarrays directly, say, [[2**2], [7**1]] and then add the result together, i.e., [[4] + [7]] = 11
<bahar> haha
<viki> apeiros oh ok, that makes sense, thanks!
<apeiros> bahar: step by step
<mmealling> pipecloud, but there are of other patterns. Before I set out to do the same thing but slightly differently again I figured I'd ask people smarter than myself.
<pipecloud> mmealling: Rspec is smarter than you. :D
<apeiros> ary[0] gets you the nested array. so ary[0][0] gives you 2 in your example
rootshift has joined #ruby
<pipecloud> Rails is smarter than you.
<bahar> i tried some methods like array[0][0] to access specific parts of the array but that was a no go
<pipecloud> I mean, the ruby on rails language does it, right? :D
<pipecloud> bahar: Enumerable is your friend
<mmealling> yes, but I want this to work without needing Rails.
<pipecloud> mmealling: ...
Kricir has joined #ruby
<bahar> this is a little over my head, trying to learn :) it's harder because i have to deal with variable numbers of subarrays... it's not always going to be 2 subarrays... could be more, less
<mmealling> now that dinner is over, going to dig into rspec at pipecloud's suggestion.
Axsuul_ has joined #ruby
<pipecloud> mmealling: http://i.imgur.com/2jSLtqF.jpg
estebistec has joined #ruby
chrisan has quit [Ping timeout: 265 seconds]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<mmealling> heh... did you just do that or is that common enough to have a meme already?
<bnagy> bahar: do you know how the map method works for Arrays?
<pipecloud> You're just accepting a block being passed to a method, then you simply yield the block in an instance_eval or class_eval for your Configuration class that stores the configuration.
<bnagy> if not, learn that first
<pipecloud> bnagy: Enumerable, right? :D
<centrx> bahar, For your specific example of multiplication and addition, you could use inject twice
<bnagy> centrx: need map as well
<pipecloud> centrx: It's dangerous to go alone, take this!
* pipecloud hands centrx a map
binaryhat has joined #ruby
jrhorn424 is now known as zz_jrhorn424
<centrx> a.inject(0) { |sum, b| sum + b.inject(:*) }
<centrx> BOOM
Kricir has quit [Ping timeout: 260 seconds]
dx7 has quit [Ping timeout: 272 seconds]
<centrx> Ruby Victorious Again!
dx7 has joined #ruby
<bnagy> oh, yeah I guess, I just did map {|a| a.inject(:+)}.inject
<bahar> i tried this
<bahar> inject(1){|value, (a, b)}
<bnagy> inject is a terrible choice for beginners though
geggam has quit [Ping timeout: 246 seconds]
<Xuisce> hi bahar
<Xuisce> :)
<bahar> the answer was a little off, ha
<bnagy> bleah I mean map inject * inject +
chipotle_ has quit [Quit: cya]
RaCx has quit [Ping timeout: 248 seconds]
<centrx> Rails: a.sum { |b| b.inject(:*) }
<pipecloud> a.map{|aa| aa[0] ** aa[1]}.flatten.inject(:+)
thomasxie has joined #ruby
<pipecloud> guessing
Hanmac has joined #ruby
RaCx has joined #ruby
<pipecloud> nailed it if you meant [[2,2], [7,1]] instead of [[4],[7]]
<pipecloud> I guess I injected anyways...
maletor has joined #ruby
brennanMKE has quit [Ping timeout: 246 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
<bahar> ha
<bahar> how about this
pencilcheck has joined #ruby
<bahar> what if i wanted to manipulate in another way: specfically by counting the number of times a number appears in a subarray, take that, and use it: [[2, 2], [7, 1]] has two 2s in the first array and one 7 in the next array (ignore 1s)
<bahar> therefore change to [[2], [1]]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
bklane has joined #ruby
<bahar> btw pipecloud and centrx, your suggestions both get the same answer, nice
bklane has left #ruby [#ruby]
pen has quit [Ping timeout: 245 seconds]
<pipecloud> bahar: I was trying to make mine easier to understand.
<bnagy> pipecloud's only by complete fuke though
<bnagy> *fluke
<bahar> haha
<bnagy> OH hah no, my bad - I read the initial problem as * not **
<pipecloud> a.map{|aa| aa[0] ** aa[1]}.flatten.reduce(:+)
<pipecloud> bnagy: What?
<bnagy> so centrx only works by complete fluke ( and mine )
<pipecloud> bnagy: Why do you say that?
<bnagy> cause 2**2 == 2*2
<pipecloud> Oh. so mine was less uncorrectly?
<pipecloud> Ah yeah.
<bahar> pipecloud: i definitely like reduce better than inject, because it's easier to understand. fold would make even more sense.
<pipecloud> And 7 ** 1 is == 7*1
<centrx> a.sum { |b| b.inject(:**) }
<pipecloud> bahar: Fold would!
<bahar> 2**2 + 7**1 would be 28, btw
<pipecloud> centrx: Does that work?
<pipecloud> 4 + 7 == 28?
<centrx> pipecloud, Tell me more...
<bahar> back up...
<pipecloud> How neat.
Hanmac has quit [Ping timeout: 250 seconds]
<bahar> i was looking at the wrong thing, ignore that
<bahar> yeah, 11
<pipecloud> centrx: I was thinking earlier, "Man, I wish I could just &:** or :**"
<centrx> Oh you can, you can
<bahar> it's 28 if it's 2*2 * 7**1
<pipecloud> a.map{|aa| aa.reduce :**}.reduce(:+)
chrisseaton has quit []
<pipecloud> The flatten wasn't necessary.
<bahar> diong .map{|aa| aa[0] ** aa[1]}.flatten.inject(:*) gets 28
<pipecloud> bahar: That's why mine was :+
<bnagy> I strongly suggest using inject and not reduce ( same method )
<bahar> really how come?
<pipecloud> a.map{|aa| aa.reduce :**}.reduce(:+) # I get bonus points for not using rails junk.
<bnagy> I wish it were the other way around, but almost nobody uses reduce, so it makes your code look weird
<pipecloud> bnagy: Why?
<pipecloud> bnagy: The amount of fucks I give about people not knowing ruby core are 0
<pipecloud> It makes more sense if you know what map and reduce are.
<bahar> i use reduce! in my limited use cases
<bnagy> which is about the same as I give about your opinion of my advice
senayar_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
<pipecloud> bnagy: Well, you really prefer not to use ruby core methods because people might not readily recognize it?
<bnagy> they're the same method
<pipecloud> Yup.
<bnagy> but most rubyists use inject
<pipecloud> But reduce is still a method all the same. Even if it's an alias.
<pipecloud> I'm a rubyist and I use reduce when I'm reducing and inject when I'm injecting.
<bnagy> so using inject is just better. It's like preferring select
mgberlin has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
<centrx> He's a professional
<pipecloud> I use reduce when I'm reducing a set, and inject when building up an object.
<bnagy> inject always reduces
<bnagy> if you're building an object with inject you're using it wrong
<pipecloud> bnagy: LOL
<bahar> they *are* the same thing right?
<apeiros> the reduce alias came a couple of years after inject
<bnagy> that's what each with object is for
<pipecloud> Jay Fields uses inject to build up objects.
angusiguess has quit [Ping timeout: 246 seconds]
<bnagy> who?
timonv has joined #ruby
<lagweezle> I disagree with 'most people use it so it is better' ... Just look at most Pop music! It's popular, but horrible.
<apeiros> pipecloud: so he does it wrong. and now?
ndrei has quit [Ping timeout: 260 seconds]
<pipecloud> apeiros: How is that wrong?
<apeiros> it's an abuse of the construct.
<apeiros> as bnagy already said, each_with_object
<pipecloud> It's neglect to say not to use reduce when you're reducing mapped set of values.
<pipecloud> I'll side with people much smarter than your average rubyist. :)
<apeiros> generally having to restate the accumulator of inject separately is indicative of using inject wrongly.
<apeiros> it's an effect of "I really want this in one expression, no matter how much I have to bend it"
<pipecloud> Maybe you should refactor jay fields' feelings on ruby.
pskosinski has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
<bahar> ok! sooo, the 2nd example i gave before, this works: map{|aa| aa[1]+1}.flatten.reduce(:*)
vlad_starkov has joined #ruby
Red_Onyx has joined #ruby
<bnagy> bahar: wat?
<apeiros> n8
apeiros has quit [Remote host closed the connection]
<bahar> [[2, 2], [7, 1]] = two 2s in first array, one 7 in next array (ignore 1s); change to [[2,] [1]], add 1 to each subarray... [[3], [2]] and multiply = 6
timonv has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
<bnagy> uh.. what what's that supposed to represent?
<bnagy> you may as well just write magic = 6
<pipecloud> bnagy: Clearly magic is 6 though, I don't know what you don't understand. :D
<bnagy> cause it has nothing to do with the count of objects in the subarrays
<MJBrune> anyone know some good tv series that are currently going?
<bahar> haha, i'm trying to follow a formula and implement it. d(n) = (a+1) * (a2 + 1) * (a3 + 1)
tempered has joined #ruby
<bahar> that will give you the count of divisors for the number n
pskosinski has joined #ruby
<bahar> instead of doing that manual modulo 0 crap to iterate through numbers and identify factors and then count them
<pipecloud> MJBrune: My little pony.
<bnagy> prime divisors, or any?
gja has quit [Quit: This computer has gone to sleep]
|PiP|_ has joined #ruby
|PiP|_ is now known as arashb
<bahar> bnagy: for this particular formula to work it has to be prime divisors
<MJBrune> pipecloud: ... yuck
mgberlin has quit [Quit: mgberlin]
<bahar> which i obtain by using the very handy ruby .prime_division method
<pipecloud> MJBrune: That's pretty rood.
<bahar> so: finding the nmber of divisors for 28 would go like this... prime_factors = 28.prime_division; prime_factors.map{|aa| aa[1]+1}.flatten.reduce(:*)
<bahar> gives you 6, which is the right number of factors for 28
cashnguns has joined #ruby
<bnagy> bahar: uh.. what are the 6 prime factors of 28 again?
<bahar> it doesn't tell you the factors though.... just how many there are... that's a drawback, so only useful if you need the count
<bahar> bnagy: the prime factors are used to find the # of factors
<bahar> factors are 1, 2, 4, 7, 14, 28
pwh has joined #ruby
<bnagy> anyway, just iterate Prime imho
pwh has quit [Client Quit]
rurban_ has quit [Ping timeout: 272 seconds]
<bnagy> this sound eulerish
wtfitsme has joined #ruby
pwh has joined #ruby
<bahar> yeah. i had answered this particular question before, but then got to another one that was basically the same thing but more advanced, so i decided to go back and see if i could make my first answer faster.
bleak has joined #ruby
<bahar> my first approach was brute force
<bahar> inelegant...
itadder has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 265 seconds]
cashnguns has quit [Ping timeout: 246 seconds]
bleak2 has quit [Ping timeout: 260 seconds]
jefflyne has joined #ruby
RaCx has joined #ruby
jefflyne has quit [Max SendQ exceeded]
wtfitsme has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
jefflyne has joined #ruby
mikepack has joined #ruby
binaryhat has quit [Quit: Leaving]
fgo has joined #ruby
sergicles has joined #ruby
<bnagy> TIL ruby has prime_division
jonah_k has joined #ruby
<RubyTitmouse> MJBrune: everybody <3's ponies! http://stuff.rubypanther.com/images/pony-200.gif
<MJBrune> i dont think so
jefflyne has quit [Client Quit]
Yahkob_ has quit []
<lagweezle> Is this Ruby Golf, or do you just have some overwhelming desire for a one-liner?
<bnagy> also TIL prime.rb is HORRIBLE code omg
aloysius_ has quit [Ping timeout: 245 seconds]
pkrnj has joined #ruby
bleak2 has joined #ruby
nari has joined #ruby
bleak3 has joined #ruby
arashb has quit [Remote host closed the connection]
mgberlin has joined #ruby
bleak has quit [Ping timeout: 252 seconds]
bleak2 has quit [Ping timeout: 245 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
meatherly has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
bleak3 has quit [Ping timeout: 260 seconds]
<bahar> bnagy: really?
mikepack_ has joined #ruby
<bnagy> yah, you should rewrite prime_division
<bahar> i discovered prime_division earlier this morning, didn't know it existed either
<bnagy> hard to see how you could make it less readable
vlad_starkov has quit [Read error: Connection reset by peer]
<bahar> lol
<bahar> it's thick
<bahar> it's apparently very fast though?
<bnagy> doesn't look like it
fgo has quit [Remote host closed the connection]
<bnagy> it just iterates primes
<bnagy> I mean for numbers like 28, sure it's "fast"
<bahar> maybe it could use some Ramanujan
krisbulman is now known as [krisbulman]
<bahar> a challenge, then!
<bnagy> write QFS!
<bnagy> RAWR
<bnagy> just kidding, don't do that
bleak3 has joined #ruby
brunops has quit [Quit: leaving]
[krisbulman] is now known as krisbulman
<bahar> =p
aloysius_ has joined #ruby
aloysius_ has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
aloysius_ has joined #ruby
<bnagy> what are you working on, anyway?
brennanMKE has joined #ruby
LLKCKfan has quit [Read error: Connection reset by peer]
<bahar> also: TIL, p and puts do different things
RaCx has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
LLKCKfan has joined #ruby
jrobertfox has joined #ruby
<bnagy> apart from the fundamental theorem of arithmetic
RaCx has joined #ruby
<bahar> i had just done 21, now going back to 12 to update it
<bahar> "highly divisible triangular number"
brennanMKE has quit [Ping timeout: 246 seconds]
<bahar> instead of iterating over everything, i have a formula to identify triangle numbers, and now also a formula to discover the # of divisors a number has
jrobertfox has quit [Client Quit]
<bahar> so all i have to do is += the "n"th triangle number until i find one that has over 500 divisors
jrobertfox has joined #ruby
<bnagy> I'm gonna go ahead and guess you can also use pascal's triangle
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
aloysius_ has quit [Ping timeout: 245 seconds]
mavcunha has quit [Quit: Computer has gone to sleep.]
<bnagy> but I have no evidence to support that
<bahar> pascal's triangle?
<bahar> i'll have to look that one up too
<bahar> i just dislike iterating as a way of solving problems
<bahar> it seems so wasteful
tjr9898 has joined #ruby
binaryhat has joined #ruby
<bnagy> hahah think I was right
tjr9898 has quit [Remote host closed the connection]
radic has quit [Ping timeout: 248 seconds]
tjr9898 has joined #ruby
<bahar> checking it out
programmerq has joined #ruby
programmerq has left #ruby ["WeeChat 0.4.1"]
tjr9898_ has quit [Read error: Connection reset by peer]
rubyracer has joined #ruby
Kricir has quit [Remote host closed the connection]
radic has joined #ruby
<bnagy> basically, for any number theoretic problem ever, first check out pascal's triangle, then check the golden ratio
Kricir has joined #ruby
krisbulman is now known as [krisbulman]
<bnagy> well.. s/number theory/simple mathematics/ I guess
tylersmith has quit [Remote host closed the connection]
[krisbulman] is now known as krisbulman
jherman3 has joined #ruby
agjacome has quit [Read error: Operation timed out]
tylersmith has joined #ruby
<jherman3> Anyone here have experience with Rice?
mlpinit_ has quit [Remote host closed the connection]
_maes_ has joined #ruby
Xeago has quit [Remote host closed the connection]
<pipecloud> jherman3: I prefer basmati.
Xeago has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
rubyracer has quit [Quit: Konversation terminated!]
<LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
tylersmith has quit [Ping timeout: 248 seconds]
jherman3 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
vlad_starkov has joined #ruby
perldork1 has joined #ruby
cdolan has joined #ruby
cdolan has quit [Client Quit]
<dachi> what's wrong
Xeago has quit [Ping timeout: 245 seconds]
<dachi> it's not the second time i saw your message
krisbulman is now known as [krisbulman]
<dachi> got to church
braincrash has quit [Quit: bye bye]
agjacome has joined #ruby
aloysius_ has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
Nilium has quit [Ping timeout: 252 seconds]
<bahar> bnagy... thanks. very cool. maybe i'll implement an answer with pascal's triangle next. the prog i just wrote runs in 0.7 second. the previous one i had ran in 3.6 second - good improvement!
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
stryek has quit [Read error: Operation timed out]
perldork1 has quit [Quit: #ruby]
braincrash has joined #ruby
binaryhat has quit [Quit: Leaving]
perldork has joined #ruby
browndawg has joined #ruby
<LLKCKfan> Hip Pain
perldork has left #ruby [#ruby]
basmoura has joined #ruby
bklane has joined #ruby
mikepack_ has quit [Remote host closed the connection]
PricelessTalk has left #ruby [#ruby]
Nilium has joined #ruby
mikepack_ has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
<pipecloud> lewellyn: Rub your body in rubies.
<pipecloud> LLKCKfan: ^
<LLKCKfan> No rubies
<bnagy> bahar: keep it up - euler is good for tactical programming in a new lang, but if you want to learn ruby in general you should also think about some more OO stuff
<bnagy> although the later problems support a structured approach fine
geggam has joined #ruby
Astralum has quit [Ping timeout: 265 seconds]
<bahar> bnagy: any suggestions? i did testfirst.org's learn_ruby exercises (http://testfirst.org/learn_ruby) and am making my way through the koans
<bnagy> I'm not a big fan of the new koans, just imho
<bnagy> they're super basic. There's a reddit thing that just has programming problems, lots of them are interesting
<bahar> well, they can definitely be a little frustrating at a time
<bahar> what about Rubeque?
<bnagy> never heard of it
mlpinit has joined #ruby
bthesorceror has joined #ruby
mlpinit has quit [Read error: Connection reset by peer]
mlpinit_ has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
<pipecloud> Ever try codewars.com ?
Xeago has joined #ruby
<bahar> nope
Sir_Funk has joined #ruby
lyanchih has quit [Quit: lyanchih]
mlpinit_ has quit [Ping timeout: 250 seconds]
<dachi> i want to ask something. I'm like really very devoted to ruby, since I started I fell in love, but today I'm like I refuse to use anything on web except webrick, sinatra and rails. People today (I don't know about USA) are like going crazy over nodejs, sailjs express for a long time and I never looked at them seriousely, seems like it's taking the market and can you like tell that it's not gonna happen that server side javascript takes over the rai
vlad_starkov has quit [Read error: Connection reset by peer]
Cooler__ has quit [Ping timeout: 252 seconds]
<pipecloud> dachi: Webrick is a really crappy library for anything remotely under load.
<pipecloud> dachi: I see a move to Go before I see node killing ruby.
<pipecloud> Or rails
<pipecloud> Plus, don't shut yourself in to just sinatra and rails. :)
<RubyTitmouse> dachi: if you're worried about the "market" or whatever non-Ruby frameworks people are using I should warn you, Ruby already stopped being cool a few years ago
<pipecloud> I mean, Jeff Atwood uses it over C#. It's not cool anymore.
kate_r has joined #ruby
<dachi> did it? mm but why
meatherly has quit [Remote host closed the connection]
<dachi> _why
<RubyTitmouse> IMO that is a good thing, and I suspect I'll still be using Ruby in 10 years. Ruby is still growing, but not in market share. Others are growing faster now.
shadoi has joined #ruby
kewubenduben has joined #ruby
mikepack_ has quit [Remote host closed the connection]
<RubyTitmouse> Go already failed, how long and far the node.js fad goes remains to be seen
<pipecloud> RubyTitmouse: IDK if it failed. Ruby took a long time to catch on.
mikepack has joined #ruby
<pipecloud> Ruby and I are practically siblings.
<RubyTitmouse> Ruby caught on right away. I waited years for the English Pickaxe to come out.
<pipecloud> Ruby is in the third generation of programming languages, the previous generations have things that are still used and have reasonable job markets for.
Cooler_ has joined #ruby
<pipecloud> RubyTitmouse: Not everyone can be an ultra early adopter like you, son.
<RubyTitmouse> I wasn't
<dachi> can't something actually happen so ruby gets where it must be
<pipecloud> dachi: It's happening.
<dachi> then why it's not cool
meatherl_ has joined #ruby
<dachi> how can c# be cooler
<dachi> .net and i don't know what to call it
<dachi> everytime I think about this subjet I remember my first days with ruby and that book poginant guide
<dachi> tears come to my eyes
<dachi> :|
shadoi has quit [Ping timeout: 252 seconds]
brennanMKE has joined #ruby
uglybandersnatch has joined #ruby
mikepack has quit [Ping timeout: 248 seconds]
<pipecloud> dachi: It's pretty cool.
griffindy has quit [Quit: Computer has gone to sleep.]
<pipecloud> There's lots of cool things. Python just isn't one of them. :p
RaCx has quit [Ping timeout: 252 seconds]
<MJBrune> is there a way to distribute a ruby program and not have the requirement of ruby itself already being installed on the OS?
<pipecloud> Naw their libraries are cool and the people optimizing things for the kinds of libraries you'll find in python are cool. The language lacks lambdas worth shaking sticks at, but whatever.
<pipecloud> MJBrune: Why wouldn't there be?
<pipecloud> MJBrune: How do you know all these neat things but don't know how to build a universal shared ruby library?
<MJBrune> pipecloud: what is a universal shared ruby library?
<pipecloud> MJBrune: Like .so files.
RaCx has joined #ruby
<MJBrune> yeah when I google that, it turns up nothing. Please provide a link to what you are talking about.
<pipecloud> MJBrune: clone ruby/ruby, get to the ./configure build step, pass --help to ./configure, read
basmoura has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv has joined #ruby
<MJBrune> pipecloud: yeah, ignoring you now because you consistantly give bad help and aren't helpful or a decent person...
<pipecloud> MJBrune: Lol, go fuck yourself. :D
<pipecloud> It's literally the best place unless you want to read a configure.in file. https://github.com/ruby/ruby/blob/trunk/configure.in
<pipecloud> Kids these day.
<pipecloud> days too!
deepy has joined #ruby
deepy is now known as Guest39214
<MJBrune> yeah 1) I don't think you know what I actually want to do. 2) Even if this does do what I want to do it doesn't have good enough documentation for me to support it.
<bnagy> MJBrune: nothing os independent afaik
<bnagy> basically you just need to wrap the runtime and your code into a binary for whatever os, there's one for windows that I can never remember the name of
<MJBrune> bnagy: which is what I was thinking.
<MJBrune> bnagy: jruby could certainly do such things but I don't think I'd want to do that.
<bnagy> the full runtime is pretty fat though
<bnagy> well jruby is even worse for that
b00stfr3ak has joined #ruby
<bnagy> unless they're guaranteed to have java
timonv has quit [Ping timeout: 245 seconds]
<bnagy> O-)
<bnagy> o_0 even :D
<pipecloud> MJBrune: I believe I do. I've done it before. I'm sorry that it's not good enough for you, it's open source. Pull requests accepted.
<rhys> anyone interested in Rubinius?
<MJBrune> I was hoping for a program/gem that I can use to do optimizations
<pipecloud> There's https://rubygems.org/gems/warbler for jruby.
<bnagy> yes, it is an awesome POC, what's the question? :)
<pipecloud> Then there's http://ocra.rubyforge.org/
<MJBrune> I find it odd that Evan now works at Living Social
brennanMKE has quit [Ping timeout: 272 seconds]
<pipecloud> I think that's the haven for rubyists everyone knows.
<bnagy> ocra! That's the windows one I was thinking of :P
ehaliewicz has joined #ruby
<pipecloud> There may just be a chance I know what I'm talking about. But unlikely. You're better off assuming I'm wrong and going in the other direction. :)
baroquebobcat has joined #ruby
<bnagy> pipecloud: to be fair, he just said you give bad help, not that you don't know what you're talking about.
<bnagy> which I'd agree with
Jdubs has quit [Remote host closed the connection]
<pipecloud> I don't see how it's bad help, it's the most direct way I know of to get the information on how to build a universal ruby binary as a shared object.
<pipecloud> Sorry there wasn't a cute little blog somewhere for you, I guess?
<bnagy> how is .so 'universal' ?
axl_ has joined #ruby
<pipecloud> bnagy: Did I say that a .so is universal?
<MJBrune> that too. .so only works on 1 OS.
<MJBrune> and not even the OS I want.
baroquebobcat has quit [Client Quit]
<pipecloud> Pretty sure you'd need the usual cross compilation tools to build for each OS.
<MJBrune> unless your java.
<pipecloud> Maybe you just don't know what universal means according to ruby. I don't know what you don't know, I just read source and ./configure --help, but that's unhelpful I guess.
derek_c has joined #ruby
<MJBrune> pipecloud: im on windows so I can't exactly ./configure.
<pipecloud> I'll bow out, obviously I'm too gung ho for suggesting people clone free software to see how they can compile it.
<pipecloud> MJBrune: Sure you can!
<pipecloud> mingw.
<pipecloud> I don't even know windows well and I know they have that.
<MJBrune> sure you can do it but it's not as easy as just opening up a terminal, cloning and doing ./configure
Jdubs has joined #ruby
<pipecloud> Good luck in your endeavor! I hope you find many blog posts to enable you no to look at source ever.
multila has joined #ruby
<MJBrune> it's setting up an entire environment specifically for this one task.
<pipecloud> That's nice, hun.
<MJBrune> ha, whatever. Sorry some people have lifes, jobs and other things to do.
<pipecloud> I'm disinterested in assisting you in your laziness.
<pipecloud> Good luck though, regardless.
vlad_starkov has joined #ruby
<MJBrune> It's not laziness. It's lack of interest in such things.
<pipecloud> k
<bnagy> disinterested would be if you just didn't say anything
<MJBrune> I am not going to devote my next 24 hours into learning how to do this one simple task when I can have a program do it for me.
<bnagy> what _you_ are is trolly and arrogant
<pipecloud> bnagy: Disinterested started after I hit enter on the line after 'k'.
<bnagy> but you'll possibly grow out of it one day
<pipecloud> bnagy: I'm not being arrogant.
<MJBrune> you are.
troyready has joined #ruby
<pipecloud> I'm saying that he's being lazy. He asked how to do something and I gave him all the information he needed for his answer.
<pipecloud> My disinterest was in assisting him any further with his interest.
<centrx> Is this the guy with the hip pain
<MJBrune> who what now?
<centrx> He refused every suggestion we gave him
<bnagy> no, this one actually has a ruby problem
Megtastique has joined #ruby
<centrx> lol
nari has quit [Ping timeout: 245 seconds]
<bnagy> different person with >1 cap nick
<MJBrune> ahh
<pipecloud> centrx: I don't know if you think I have a hip pain. If I did, I'd certainly have better things to whine about other than lazy people. :(
<MJBrune> pipecloud: surely doesn't seem like it cause here we are XD
<centrx> Oh you have hip pain too?
<pipecloud> centrx: No. :(
griffindy has joined #ruby
<MJBrune> nah he doesn't have hip pain so he doesn't have anything better than to whine about. The fact he's whining at all means hes a whiner.
<pipecloud> bnagy: I don't think it's really a ruby problem though. Wanting to package something that supports architecture independence as well as being able to be compiled for each platform's respective shared object file seems more to me a build issue, but I can see it being sort of a ruby problem.
Sir_Funk has quit [Ping timeout: 265 seconds]
<pipecloud> Although orca does exist, it's neat enough.
itadder has joined #ruby
<pipecloud> ocra
<itadder> how can you pair program with
<itadder> vim
<MJBrune> vim <filename>
<bnagy> I know rite??
<itadder> yes
<itadder> but if you pair program with someone
bklane has quit [Quit: Leaving...]
<itadder> both have to like the vim keyboard keys
<MJBrune> oh
<bnagy> itadder: for *nix?
<MJBrune> #vim will tell you
<pipecloud> itadder: Well, you can use tmux and shared sockets.
<itadder> with sumblime text you can turn on and off vntage mode
<MJBrune> or check out tmux
<itadder> pipecloud: ahh
<itadder> true
Cooler_ has quit [Ping timeout: 245 seconds]
<pipecloud> itadder: Look into tweemux
<itadder> pipecloud: I was still unable to make textmate back to default
<pipecloud> Or DIY, but you need to give them ssh access.
<pipecloud> itadder: I don't know what you mean.
Xiti` has joined #ruby
<MJBrune> pipecloud: textmate is a gtk text editor afaik
<itadder> I tried to rm -rf the .plist
<itadder> it a mac text editor
<itadder> oh tweemux ahh
Xiti` has quit [Read error: Connection reset by peer]
<MJBrune> oh right.
<pipecloud> Oh I meant to delete the terminal preferences. I don't know about that editor. I use vim myself.
Xiti` has joined #ruby
<itadder> oh that remote
<itadder> pair programing
Guest39214 has quit [Ping timeout: 245 seconds]
Xiti` has quit [Client Quit]
Noldorin has quit []
<itadder> hmm that cool idea
<itadder> I was thinking of pair programing on the same computer like at an office
griffindy has quit [Quit: Computer has gone to sleep.]
Hobogrammer_ has quit [Ping timeout: 246 seconds]
Xiti` has joined #ruby
<pipecloud> oh, then just two keyboards!
Cooler_ has joined #ruby
Xiti has quit [Ping timeout: 260 seconds]
RaCx has quit [Ping timeout: 245 seconds]
<pipecloud> itadder: My preferred local pairing setup is either one humonogous display or two. Two keyboards, two mice.
<pipecloud> All hooked into the same device, laptops off.
<itadder> oh
sputnik13 has quit [Ping timeout: 260 seconds]
<itadder> any good site for remote ruby pair programing for when I will start on my project
<itadder> I saw vimsenisble If you're pair programming and you can't agree on whose vimrc to use, this can be your neutral territory.
<itadder> so many version of vim
RaCx has joined #ruby
<pipecloud> Well, it's not versions of vim, it's a vim plugin
sputnik13 has joined #ruby
<pipecloud> itadder: It helps to know vim defaults sans vimrc
yacks has joined #ruby
<pipecloud> I like that though. Sensible is neat.
IceDragon has quit [Quit: Space~~~]
<itadder> oh
<itadder> I am trying to decide what I will use in my workflow
<pipecloud> itadder: All the things!
<b00stfr3ak> has any one used async_exec for postgres? havn't seen any examples for it. I keep getting 0x54 arrived from server while idle errors
<itadder> I started with a clean account on my macbook pro a year ago
<itadder> now it not simple
<itadder> and my whole idea was to give a good clean developer system
<pipecloud> itadder: I know. I constantly want a clean start, but I don't want to configure too many things all over again.
<itadder> my dock has to many apps, and to many editors, text wrangler, textmate, and sublime text and vim
<itadder> I like textmate a lot
<itadder> but I read it not good for pair programing
<pipecloud> itadder: I use Alfred. My dock is nearly empty
<pontiki> why do you need so many editors?
<pipecloud> itadder: Sure it is.
<itadder> the reason i ask, is if I go to a ruby meetup
knigitz has quit [Remote host closed the connection]
<pipecloud> pontiki: People have preferences. :(
<itadder> I want ot get help on my project
<pontiki> well, sure
<pontiki> how many people use your computer?
<itadder> only me
<itadder> but at a ruby meetup
<itadder> one more
<itadder> if I pair program
<pipecloud> itadder: I keep a sublimetext2 install on my machine if I'm ever pairing with an infidel. :D
<itadder> I think textmate is such cleaner
<itadder> and more mac like
<itadder> sublime text is powerfull, but it not mac like
<pipecloud> I just keep something GUI and non-modal so people can type without having to think about modes.
brennanMKE has joined #ruby
<pontiki> nitrous.io or koding.com
<pontiki> altho at meetups, i just share the computer
mgberlin has quit [Quit: mgberlin]
<itadder> wow even more ruby tools
<itadder> so many ruby tools ARGH
<itadder> more stuff that I like
<itadder> so is nitrous.io a github like think and ide
knigitz has joined #ruby
fieldfirst has joined #ruby
<lagweezle> tools pr0n
<pontiki> not so much a github thing. it's basically like your local repo. you'd still have github as the common depot
bthesorceror has quit [Remote host closed the connection]
<itadder> so it sync like dropbox
<itadder> pipecloud: you use iterm2
mgberlin has joined #ruby
<pontiki> no, you still have to push back to it
<itadder> oh
<itadder> so I could code on my mac and then jump on to a pc and web code
<itadder> if I had to
<pontiki> it is a shared programming environment in the cloud
<itadder> then jump back to mac and finish
<pontiki> that is it
<itadder> cool
brennanMKE has quit [Ping timeout: 245 seconds]
<itadder> sweet
<itadder> and the runtime is on thier server
<itadder> how do I run my ruby app
<itadder> not via iterm2
hobodave_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rurban_ has joined #ruby
<pontiki> how do you mean?
ItSANgo has quit [Quit: Leaving...]
<pontiki> like from the dock?
<itadder> yea
<itadder> this is my last question for tonight
<itadder> what a good ruby workflow / dev set up how ot
mlpinit has joined #ruby
<pontiki> eh, if you don't want to build any rails stuff, just stop when you get there
nanoyak has joined #ruby
<pontiki> lots of folks also prefre rvm to rbenv, and then there's folks like me who don't use either
fgo has joined #ruby
<itadder> oh
<itadder> I hate to choose
<itadder> so much anexity
<itadder> a bad workflow setup dev machines will just produce bad code
<bnagy> hahah
mlpinit has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
<bnagy> itadder: look, good coders will produce good code unless you take great pains to force them not to do so
<itadder> oh
<bnagy> bad coders that cargo cult development 'systems' won't magically produce good code
<itadder> I mean a adhd person like me has to be orgnaized
<itadder> or else I will just give up
decoponio has joined #ruby
<itadder> oh
<itadder> all I want is simple oragniazed textmate workflow
itadder has quit [Remote host closed the connection]
<bnagy> whatever floats your boat, but that's not going to be the razor's edge between you writing good code and bad code
itadder has joined #ruby
itadder_ has joined #ruby
<bnagy> it's "simple" - just spend thousands of hours coding and reading code by other people
Es0teric_ has joined #ruby
<itadder_> bnagy: but you have a point
<bnagy> the rest is just +- a few percentile points in output volume / quality
fieldfirst has quit [Ping timeout: 245 seconds]
<itadder_> so why this cult wars bettween emacs, vim, or sublime text
<itadder_> or on the mac textmate vrs sublime text
tjr9898_ has joined #ruby
<pontiki> itadder_: if you don't want to decide, just go with the first one you find
<itadder_> yes but how can one code if it all disoragniazed
<itadder_> yea which is textmate
chipotle has joined #ruby
<pontiki> also, that doesn't describe a work flow. that is just an environment to work in
<pontiki> no, see, textmate is your editor, your IDE, etc
<pontiki> what that post talks about is what you need to develop ruby programs at all, regardless of your editor
<itadder_> yea but were you save your source you bulids and test
Es0teric has quit [Ping timeout: 246 seconds]
<pontiki> right, that post doesn't say anything about that
<itadder_> ahh
gnephiak has joined #ruby
<itadder_> so I guess that were my trouble would be
<itadder_> and not in which ide or editor to use
<pontiki> i imagine so
<pontiki> right
itadder has quit [Ping timeout: 245 seconds]
<itadder_> and i do not need to have all this extra plugins in vim or textmate or sublime
<itadder_> just code
<pontiki> how log have you been programming?
<lagweezle> itadder_: a bad workflow will cause a good coder to produce good code SLOWER but it won't make their code worse.
<itadder_> one month and a half
tjr9898 has quit [Ping timeout: 248 seconds]
<pontiki> you are going to meetups, though?
browndawg has quit [Quit: Leaving.]
<itadder_> yea
<pontiki> itadder_: i've been programming for close to 40 years, so it's hard for me to put myself back in your shoes, you know? :/
<itadder_> II suffer from anexity and that stops me from coding
troyready has quit [Ping timeout: 248 seconds]
<itadder_> but I would love to webenable OMNIFOCUS
<itadder_> and I love automating
<lagweezle> I know your pain on focus, itadder_.
centrx has quit [Quit: Leaving]
<itadder_> I can't use it at work I have to turn mymac on
<itadder_> or carry my iphone or ipad
<lagweezle> It will be hard, but put down the tool pr0n. git + editor you are comfortable with, then buckle down and start writing code.
<bnagy> imho your toolchain should accrete organically
<itadder_> yea
RaCx has quit [Ping timeout: 260 seconds]
<pontiki> i am stuck on "webenable OMNIFOCUS"
<itadder_> bnagy: wow that so true
<bnagy> this is one of the reasons I dislike IDEs, especially for beginners
<pontiki> me, i like REPLs
RaCx has joined #ruby
<itadder_> if it were me I would use textmate just for syntaxs colours
<itadder_> and that all
<pontiki> write a line of code, immediately see how it works
<itadder_> and dropbox for storage
<pontiki> what stops you from doing that, itadder_ /
<pontiki> ?
<itadder_> I am scared
<pontiki> what do you think might happen?
<itadder_> since it a project I think of project mangement
<itadder_> pontiki: that I will never get it done or that it to complex
meatherl_ has quit [Remote host closed the connection]
<pontiki> if that were true, what would happen?
<itadder_> but it such a usefull idea
<itadder_> it will help me stay oraganized on time at work if I pull it off
Xiti` has quit [Quit: Leaving]
<pontiki> and if you don't, if it is too complex, or you don't finish it, what will happen to you?
<itadder_> I would of just started something half done like my 100 other projects
<itadder_> I will be less productive
<pontiki> than you are now?
<itadder_> becusse I can;t use omnifocus on the pc
<itadder_> well I will about the same productive
<itadder_> but I could be more productive
Zeroedge has joined #ruby
ItSANgo_ has joined #ruby
<pontiki> so, if you don't finish it, no net gain or loss in productivity
<pontiki> will you have learned something useful along the way?
<itadder_> yes true
<itadder_> that another net gain
<itadder_> I would learn programing
<itadder_> and have something in my protofilo
<pontiki> even if you don't finish it, or it doesn't work, do you think you'll have gained useful skill?
<lagweezle> This is why I find I really like test driven development. I start writing the basic description of the test. I fill in a few tests and they go from yellow to red. Then I write code to make those tests go from red to green. Repeat the yellow, red, green cycle until the thing 'works'.
<itadder_> somewhat
<itadder_> I would gained basic ruby
LLKCKfan has quit [Read error: Connection reset by peer]
bousquet has joined #ruby
<pontiki> what will you have lost in that same time if what you want doesn't work or you can't finish it?
<Senjai> itadder_: I have tons of unfinished projects laying about
<pontiki> is it ok that i'm asking these questions?
<Senjai> you learn from all of them :p
<itadder_> yes
<pontiki> ok
<Zeroedge> i'd like to ask a question when you guys are done helping him
<itadder_> no lost time
<itadder_> I rather spend time learning something
<pontiki> ok
<itadder_> then sitting in fron of a tv after work
<bnagy> Zeroedge: just jump in
<itadder_> watching bigbang theory
<pontiki> so, the fear that stops you now, itadder_
<bnagy> it's all async
<itadder_> My two goals is to break my fears
<pontiki> can you live with the fear and start anyway?
<itadder_> I guess
<itadder_> yes my only fear is I will never finish it
<pontiki> just take tiny steps at first
<itadder_> or that it will work
<Senjai> Zeroedge: just ask L(
<itadder_> yea
<pontiki> i'm not exactly sure what OMNIFOCUS is, or what it means to web-enable it...
<Zeroedge> Alright, I've been writing ruby alongside my normal duties at work, I tend to write a lot of 1 off scripts, as a result I can't get into the habit of doing TDD. Any good way to get into it with one off scripts? (usually 40 lines or less)
<itadder_> yea all I need now is ruby in terminal, and textmate thanks pontiki
<Senjai> Zeroedge: TDD? Or writing tests.
<pontiki> but i think learning to write some ruby scripts would be an awefully good start?
LLKCKfan has joined #ruby
<Senjai> TDD IMO isn't mandatory, having tests is
<Zeroedge> Then I guess I meant writing tests for my scripts.
<itadder_> it my GTD system that I been using for years
<pontiki> TDD/BDD is an approach to organized design and development
<Zeroedge> bousquet: Thanks
<Senjai> Zeroedge: Simple, just do it. I became decent at testing because making contributions to open source repositories require tests.
uglybandersnatch has quit [Quit: Leaving.]
<itadder_> and if I get good at it I can venture my consulting work
<itadder_> to not just help desk support
<bousquet> Zeroedge: np. Thats a great example of how to build tests around a one off ruby shell script
<pontiki> itadder_: not to derail you, but is omnifocus much different than evernote?
<itadder_> yes
fieldfirst has joined #ruby
<pontiki> it just looks like an organized note taker
<itadder_> nope
<Zeroedge> Senjai: Alright, Is it just one of those "Wax on Wax off" mentalities? Just something you make a part of the scripting so that it becomes good practice?
<itadder_> well it is
<itadder_> but it also a task managemnet with start dates due dates and contexts and projects
<itadder_> and next actions
BrixSat has quit [Remote host closed the connection]
<Senjai> Zeroedge: Really, unless you choose to make a decision that your code be tested, you will never do it
<pontiki> evernote does all that
<Senjai> Zeroedge: Finding people to code review your tests also help. But they ahve to be written
<pontiki> i mean, it's a GTD thing
<itadder_> yes
<Zeroedge> Senjai: Alright, I'll ask one of the developers to code review. Thanks
BrixSat has joined #ruby
<pontiki> pair programming with TDD is awesome
mclee has quit [Ping timeout: 264 seconds]
<pontiki> pick a microfeature. one writes the tests, then the other writes the code, bouncing back and forth. next microfeature, switch roles.
mclee has joined #ruby
<Senjai> pontiki: That's a cool idea
<Senjai> We use gerrit and stuff for code review at work, but no actual pair programming
vlad_starkov has joined #ruby
<Senjai> Zeroedge: Oh, also never test private methods, new people often do
<itadder_> i need that
<pontiki> it seems better than the typical shoulder-surfing pair programming i've encountered
<itadder_> so reaad code on github
<pontiki> need what, itadder_ ?
<itadder_> pair programing
Emmanuel_Chanel has quit [Quit: Leaving]
<Zeroedge> Senjai: I have read some of Sandi Metz's Practical Object Oriented book and she mentioned that too, I should probably finish that book heh
<pontiki> i should buckle down and read her book, too. i've only skimmed it and cherry picked a few things out so far
<pontiki> she write so much better than i do :(
brennanMKE has joined #ruby
<Red_Onyx> is her book about Ruby?
<Senjai> Zeroedge: You mean Design Patterns in ruby?
<itadder_> wow
pkrnj has quit [Quit: Computer has gone to sleep.]
<Zeroedge> pontiki: yea, she's awesome
<itadder_> does she hang out on irc
<pontiki> that's russ olsen's book, Senjai
<Zeroedge> Senjai: http://www.poodr.com/ is the book I have
<Senjai> Zeroedge: Yea I read it
<pontiki> sandi's book is about ruby, but the concepts go towards a lot of different things
<Senjai> Zeroedge: Just remember, she's an academic. These people rarely ship code. The design patterns are correct, but the amount of time to impliment them in every scenario where they could be far outweigh their benefits
<pontiki> DPiR is also a fabulous book
<pontiki> wat??
<pontiki> that's not so
<itadder_> oh
coca_rails has joined #ruby
<Zeroedge> Senjai: Oh? Can you point me to someone from the other spectrum? I'd like to get a bit rounded
<pontiki> granted, focusing solely on patterns can make you overwrite and overdesign things
<pontiki> but that's not part of either book
<Senjai> pontiki: I'm certain she kept mentioning that the patterns should be implimented when applicable to safe money etc and so forth?
<pontiki> also, there is much much deeper learning here than explicit patterns
<Senjai> Zeroedge: No, books are about the right way to do things. And that is the right way to do things. But overengineering can be extremely costly. Just keep that in mind.
<Senjai> pontiki: I'm not disagreeing with you
<pontiki> Senjai: you seem to be throwing out reasons not to read the book
Kricir has quit [Remote host closed the connection]
<pontiki> and that confuses me
<Senjai> pontiki: I suggest poodr as a book to read.
<Senjai> I do
<Zeroedge> pontiki: I think he's just meaning to not rule it as law
<Senjai> ^
<itadder_> i need a ruby webdav connection code example
<Zeroedge> But thanks, I enjoy reading when I have the time, I'm a fan of different viewpoints so I can form my own opinion
<itadder_> that a start right pontiki
Kricir has joined #ruby
<pontiki> itadder_: i suggest you first learn how to make a web connection from ruby, at all
nari has joined #ruby
<pontiki> itadder_: learning to program is learning how to solve problems in general
<itadder_> yea
<pontiki> and mainly learn how to break down those problems into smaller and smaller chunks that become easily solvable
<Senjai> Zeroedge: I would just remember that because someone writes a book on a subject doesn't mean they're the law of that domain. Specifically poodr suggestions are sound, but her methodologies are unemployable, they simply cost too much money.
<pontiki> and how to ensure they work as you expect them to
<lagweezle> Senjai: Er, why not test private methods?
<pontiki> and then put all those pieces together
<Zeroedge> lagweezle: they are back end workers
kewubenduben has quit [Ping timeout: 246 seconds]
<Senjai> lagweezle: Testing is about the public interface, testing the private interface couples your tests too closely to the subjects internal behaior
<Senjai> behavior*
uglybandersnatch has joined #ruby
<pontiki> actuall, itadder_ , socket programming is considered advanced even in ruby
<itadder_> oh
<Senjai> lagweezle: You should only test what the subject is expected to return given certain inputs. Other objects cannot access the private api, so testing there is redundant and coupling.
<lagweezle> ... and here I was thinking tests were to make certain something was working properly ...
<itadder_> I have no idea were to start
<Senjai> lagweezle: Public methods should use private methods, so testing the public methods inherently tests the private ones
<lagweezle> Ahhh. Now I understand what you mean.
<Senjai> lagweezle: You don't want to care how the car drives, just that when you tell it to, it acts how you expect it too.
<Senjai> lagweezle: That's the approach you should take
<Zeroedge> lagweezle: the example to your question is as such: You order some food from the drive thru window, you don't test to see if your burger is flipped and cooked, you just enjoy the final product, without ever talking to the back workers.
RaCx has quit [Ping timeout: 260 seconds]
<Senjai> Another hint that your testing improperly is when your stubbing the subject under test
pkrnj has joined #ruby
<Zeroedge> itadder_: I tend to have that problem myself, I usually solve problems I have at work.
RaCx has joined #ruby
<pontiki> hum... where are beginning ruby kata? i can't seem to find what i'm looking for....
<Zeroedge> itadder_: I tend to make users on a website frequently, so I automated it so I enter the name and last name, and then it does everything on the back end such as sending an e-mail to them with their generated user credentials. It's easiest when you have a problem.
<lagweezle> Senjai and Zeroedge, are you thinking of functional tests, or any tests (unit tests, etc.)?
<Senjai> pontiki: The koans?
<Senjai> lagweezle: Any tests.
<Senjai> lagweezle: describe SomeClass should never stub anything on SomeClass
<itadder_> my problem is connecting to omnfocus server sync
<pontiki> oh, probably, Senjai
<lagweezle> I'm ignoring the stub bit as that is mostly 'obvious'. I'm just after the 'never test anything not-public'.
<Senjai> lagweezle: For integration specs you can assert that a message is delivered.
<Senjai> lagweezle: Heh, you'd be suprised :P
<Zeroedge> lagweezle: what is the problem? and what is the result you expect?
<pontiki> there: http://www.rubykoans.com/
<Zeroedge> I meant that last message to itadder_ not lagweezle
<pontiki> itadder_: work through those
<Senjai> lagweezle: No need to test anything not public, because oher objects don't communicate with private API's, ideally: You want to be able to completely change how an object works as long as it adheres to the public API easily, without tests breaking
x77686d has quit [Quit: x77686d]
<lagweezle> With the order food get food example, not testing anything aside from the public interface ... that leaves a LOT of code that doesn't have a good indicator as to where the bug is that caused your hamburger to be two buns around a potato.
<itadder_> oh
<Senjai> lagweezle: If you test private or internal behavior, these tests will always fail, which are just useless failures
uglybandersnatch has quit [Quit: Leaving.]
<pontiki> itadder_: that's the eventual problem to solve, yes, but before then, there is much to learn
<itadder_> the problem connecting to omnigroup sync webdav server
<Senjai> lagweezle: Then your design is flawed, It might mean you need more objects with seperate responsibilities
<Senjai> lagweezle: Or you're not adhering to SRP
<itadder_> result is to connect success with my omnfiocus id and password
agjacome has quit [Ping timeout: 248 seconds]
<itadder_> pontiki: yea
<itadder_> thanks pontiki
<Zeroedge> itadder_: but when you connect, what do you want to do after that?
<Senjai> lagweezle: Also, Your test should assert after ordering a burger, that you get a burger the way you expect. Not that you test how the burger is made
<Senjai> lagweezle: What matters is that an error is caught, not pinpointed, thats something easily done with a pry or irb session
v0n has quit [Ping timeout: 245 seconds]
<itadder_> rad my database with my omnifocus data
<Zeroedge> itadder_: there might be an api that you can consume from them
<itadder_> read
<itadder_> display the data in a browser
* lagweezle ponders.
<Zeroedge> itadder_: looks like you might be able to use this gem to handle using webdav. https://github.com/devrandom/davclient
<itadder_> thanks
Gate_ has joined #ruby
<bnagy> Senjai: I disagree pretty strongly with all that
Gate_ has quit [Client Quit]
<bnagy> but I'm a security person, so we have different perspectives
<Zeroedge> itadder_: no problem, look through the examples they have, it's usually pretty simple
Gate has quit [Quit: leaving]
Gate has joined #ruby
<lagweezle> HAH! Just realized how appropriate 'Ruby Koans' are, being that Ruby was birthed by a Japanese person (in Japan?). ^^;
<bnagy> testing private APIs doesn't cost very much, and bugs are bugs
<bnagy> you might not be able to reach the bug from the public api today, with the tests you have
<itadder_> "This is probably a little technical, but for the curious: OmniFocus uses compressed XML transaction files to store its data, with a SQL cache for efficient access. (Each time you update the application, we rebuild the SQL cache to ensure that it's consistent with the latest schema.) "
<bnagy> but doesn't mean it's not there and shouldn't be fixed
<itadder_> thanks Zeroedge
<bnagy> this is how a lot of deep bugs have persisted for years
<Zeroedge> itadder_: no problem
<lagweezle> Well, I've moved from disagreeing with Senjai and Zeroedge on this, to now being on the fence between the two. I think I'm going to stay somewhat centered, here, though, given that I work in QA... >.<
<itadder_> that my second reading the compressed xml transcation files
<itadder_> with a sql cache
<lagweezle> An' yeah, what bnagy is saying.
<itadder_> second problem
<Zeroedge> lagweezle: I tend to write very small private methods that do one job well
<lagweezle> Zeroedge: Aye. I've moved very strongly in that direction.
<Zeroedge> lagweezle: not that they're infallible, but I write with a lot of methods
<bnagy> that's sound for public or private
<bnagy> and not an argument either way against testing
<lagweezle> I'm also taking a new look at my code, and seeing how I should break it down into more classes, to more properly adhere to the single responsibility principle.
<Zeroedge> bnagy: I write a lot of little private methods, and I like to keep my public interface small
<RubyTitmouse> I use protected, but I avoid private
<bnagy> the other horror scenario is a private method that returns 'correct' results but with an unwanted side effect
<Zeroedge> use explicit returns
<bnagy> hard to test that from the public api
coca_rails has quit [Remote host closed the connection]
rippa has joined #ruby
<bnagy> you're confusing software design with the argument at hand
tjr9898_ has quit [Ping timeout: 253 seconds]
<Zeroedge> sorry, you're right
<RubyTitmouse> even private methods should be named like ! if they have dangerous side effects
<bnagy> if sound design worked we wouldn't have to test anything
<Senjai> bnagy: I feel that's a pretty strong context.
mlpinit has joined #ruby
<Senjai> bnagy: Security, and payment processing, are very different things in contrast to the day to day.
<Senjai> bnagy: Well I guess not in your day to day ;)
<lagweezle> hehe
<bnagy> ok well if you don't think security is part of testing then.. do whatever
<lagweezle> Security and money handling ... paranoia saves your ass. :3
<Senjai> bnagy: It is, but to what end?
oso96_2000 is now known as oso|away
<Senjai> bnagy: Can you give me an example of one of those unwanted side effects?
<bnagy> well I just think that from a security perspective, you test everything from the easiest place to test
<Senjai> bnagy: Right, but that's a maintenance nightmare. You can't change anything without breaking your tests.
<bnagy> rather than relying on the cover that today's public API gives you from your deeper bugs
<Senjai> Even those things that don't matter to the external system at large
<bnagy> well you can't change your public api without changing your tests either
<bnagy> testing is inherently a pain in the ass
<Senjai> bnagy: bnagy no, but your public api should be a lot more abstract than your private api.
saarinen has joined #ruby
<Senjai> bnagy: The point is, it should change less
<bnagy> the more abstract the public api, in your approach, the less likely deep bugs are to ever be found
mgberlin has quit [Quit: mgberlin]
vlad_starkov has quit [Read error: Connection reset by peer]
<Senjai> XClass always returns a hash with three keys containing an YClass, a ZClass, and a string
<bnagy> it's like having a private method that just evals a string, while the public API checks to make sure it doesn't match /rm/
<lagweezle> If you are careful to write less brittle tests, you can have them cover a heck of a lot of the non-public portions.
saarinen has quit [Client Quit]
<Senjai> XClass.somemethod
mlpinit has quit [Ping timeout: 246 seconds]
<Senjai> you test that what you get back is formatted and is how you expect it to be
<Senjai> bnagy: Bugs are often missed because edge cases either aren't known or are ignored
<Senjai> Which is common, you can't always catch EVERYTHING.
<itadder_> good night
<bnagy> I mean frankly, I'd rather move all the library code out into modules anyway, private methods squick me out
<itadder_> thanks pontiki
<bnagy> then you can test them and everyone is happy
<itadder_> thanks Zeroedge
<Zeroedge> itadder_: no problem :)
<lagweezle> itadder_: g'night, and good luck! Buckle down and dig in. :)
<itadder_> so my second problem is
<itadder_> the xml files
<Senjai> bnagy: If your private method is causing an unwanted side effect, that should either effect the output of the public api, or send messages to another object in your system which should also have a tested public api to prevent this
<lagweezle> Let us know if you need more help, and what you get done. :)
<itadder_> that my second reading the compressed xml transcation files
<lagweezle> I don' mean 'completed done' but more progress. :)
<itadder_> I will let u know
Emmanuel_Chanel has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
itadder_ has quit []
<Zeroedge> itadder_: that's easy, let me find you the xml parser
<bnagy> Senjai: there is no inherent reason that should be so
<Senjai> bnagy: Define unwanted side effect for me
saarinen has joined #ruby
<Senjai> Give me a scenario that doesn't effect one of those things
<bnagy> they are already small words
timonv has joined #ruby
<Zeroedge> itadder_:http://nokogiri.org/
<lagweezle> affect?
<Senjai> lagweezle: Affect, yes
<bnagy> if your argument has a dimension other than "it's more work, and it'll probably be fine" then now's the time to highlight it
<lagweezle> Phew. I was trying to figure out what context I missed.
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
browndawg has joined #ruby
<Senjai> bnagy: Ignoring edge cases are bad. I'm not suggesting that they do. It's more work is an important thought. If you can never change anything without your tests breaking, even if you adhere to the API and specifications for the object, the tests are brittle and a source of technical debt
<Senjai> Private methods are used by public methods, public methods are tested
<Senjai> There is never a scenario where you should need to test a private method in isolation, because it is never called in isolation.
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<bnagy> *shrug* ok
<bnagy> this is why I will be employed forever
<Senjai> bnagy: We'll agree to disagree on this one I think.
<Senjai> I feel like I might lack the context and situations you find yourself in.
timonv has quit [Ping timeout: 245 seconds]
<Senjai> But that being said, given the situations I've found myself in, there have always been better ways to ensure things go well. If it's too hard to cover edge cases with testing the public API, then it probably needs to be refactored
* lagweezle sighs at his OS X systems being stupid about authentication and authorization for network shares.
<Senjai> Which is my opinion
uglybandersnatch has joined #ruby
<Senjai> Experiences shape opinions, and I certainly don't do security things for my paycheck :P
<Senjai> Except payment processing.
<Senjai> I do a lot of that
<bnagy> in ruby? o_0
<Senjai> bnagy: Not just in ruby.
<bnagy> \o/
uglybandersnatch has quit [Client Quit]
<lagweezle> Senjai, bnagy, Zeroedge, thank you. Good food for mulling, and a good prompting to do some more refactoring / learning with my code. :)
<Zeroedge> lagweezle: have a good night, enjoyed chatting with you :)
<lagweezle> Thankee!
<lagweezle> You too, btw.
<lagweezle> Now for those ZzZzs I needto catch up on. ;)
RaCx has quit [Ping timeout: 245 seconds]
bricker`LA has joined #ruby
<Senjai> lagweezle: night
<Zeroedge> Senjai: which do you prefer for testing? Minitest or Rspec?
<bnagy> yeah, I should probably be drinking beer and watching the sunset, tbf
RaCx has joined #ruby
<Senjai> Zeroedge: I use both, it's a preference things
<Senjai> thing*
<Senjai> bnagy: Were you at?
<Senjai> Where*
<Senjai> god I cannot type tonight
<bnagy> pohnpei, atm
Markvill_ has quit [Quit: Computer has gone to sleep.]
<Senjai> bnagy: Wow
aagdbl has joined #ruby
<Senjai> Working remotely?
<Senjai> bnagy: Never heard of that place before
<bnagy> yeah
<bnagy> it's kinda tiny, so I'm not really surprised :)
<Zeroedge> looked it up because I thought "Italy?" and then saw it wasn't Pompei haha
<Senjai> bnagy: Enjoy :)
browndawg has quit [Ping timeout: 260 seconds]
Axsuul_ has quit [Read error: Connection reset by peer]
<Zeroedge> Senjai: you in the US?
noop has joined #ruby
saarinen has quit [Quit: saarinen]
dx7 has quit [Remote host closed the connection]
bousquet has quit []
tempered has quit [Quit: !s]
<Senjai> Zeroedge: Canada
sergicles has joined #ruby
<Zeroedge> :)
sergicles has quit [Client Quit]
vlad_starkov has joined #ruby
browndawg has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
<Zeroedge> Alright guys, had fun chatting
LLKCKfan has quit [Read error: Connection reset by peer]
<Zeroedge> Going to read and then sleep
jaimef has quit [Ping timeout: 252 seconds]
yellow5 has quit [Quit: time to go!]
sawtooth has quit [Ping timeout: 246 seconds]
<Senjai> Zeroedge: night
<Zeroedge> Night :)
Hanmac1 has joined #ruby
LLKCKfan has joined #ruby
Zeroedge has quit []
Astralum has joined #ruby
sawtooth has joined #ruby
ryanf has quit [Ping timeout: 246 seconds]
seekwill has quit [Ping timeout: 246 seconds]
yellow5 has joined #ruby
JasmeetQA has joined #ruby
Hobogrammer_ has joined #ruby
phansch has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
cixelsyd has quit [Ping timeout: 240 seconds]
connor_goodwolf has quit [Ping timeout: 246 seconds]
Myk267 has joined #ruby
Tomasso has quit [Ping timeout: 245 seconds]
papito has joined #ruby
echevemaster has quit [Quit: Leaving]
jaimef has joined #ruby
ryanf has joined #ruby
seekwill has joined #ruby
seekwill is now known as Guest3567
aagdbl has quit [Quit: This computer has gone to sleep]
marienz has quit [Ping timeout: 624 seconds]
habanany has quit [Read error: Connection reset by peer]
habanany1 has joined #ruby
sergicles has joined #ruby
sergicles has quit [Client Quit]
george2 has joined #ruby
ktosiek has joined #ruby
estebistec has quit [Remote host closed the connection]
coca_rails has joined #ruby
marienz has joined #ruby
mlpinit has joined #ruby
lukec has quit [Quit: lukec]
mlpinit has quit [Read error: Connection reset by peer]
habanany1 has quit [Ping timeout: 272 seconds]
mlpinit has joined #ruby
[krisbulman] is now known as krisbulman
coca_rails has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
yarou has quit [Remote host closed the connection]
Vivekananda has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 265 seconds]
dseitz has joined #ruby
Myk267 has left #ruby [#ruby]
abra_ has quit [Ping timeout: 250 seconds]
jaimef has quit [Ping timeout: 245 seconds]
blackmesa has joined #ruby
<pontiki> anyone have a non-Debian-based linux distro with ruby 2.0.0 handy they can test something for me?
verywiseman has joined #ruby
jaimef has joined #ruby
abra has joined #ruby
<pontiki> i'm trying to see what the default Dir.tmpdir is (in the absense of a $TMPDIR env var)
RaCx has quit [Ping timeout: 246 seconds]
verywiseman has quit [Read error: Connection reset by peer]
<pontiki> on Debian 6, it seems to default to the current working directory, which seems rather odd to me
krisbulman is now known as [krisbulman]
RaCx has joined #ruby
axsuul has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
e^0 has quit [Quit: WeeChat 0.4.2]
yacks has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
<dseitz> for dir in [ENV['TMPDIR'], ENV['TMP'], ENV['TEMP'], @@systmpdir, '/tmp', '.'] # line used to evaluate tmpdir
brennanMKE has joined #ruby
<pontiki> yes, quite
<pontiki> but i have a /tmp folder
<pontiki> it should hit that one first, no?
<dseitz> I'll log into one system that has 2.0
<dseitz> Ubuntu responds with '/tmp'
<pontiki> crikey
<pontiki> irb(main):008:0> Dir::tmpdir
<pontiki> => "/srv/gandimouse2/home/home/tamara"
<pontiki> => "/tmp"
<pontiki> irb(main):009:0> Dir.class_variable_get("@@systmpdir")
<pontiki> irb(main):010:0>
yfeldblum has quit [Quit: Leaving...]
<dseitz> /tmp should be drwxrwxrwt (1777)
nanoyak has quit [Quit: Computer has gone to sleep.]
<pontiki> hmm: drwxrwsrwx 6 root root 36K Feb 9 02:00 /tmp/
vlad_starkov has joined #ruby
<pontiki> seems odd -- that's 2777, isn't it?
<pontiki> ok, chmod'd it, now it's giving me /tmp
<pontiki> wonder how that happend....
<pontiki> thanks!
<dseitz> probably a bad app somewhere
<dseitz> nothing to worry about, probably just did something stupid
<pontiki> well, maybe -- it's my own VPS
<pontiki> i am sure
<dseitz> hehe
<dseitz> (not you, a script/app)
<pontiki> well, ok, but as it's my server, i should know what things do, right? hahaha, as if
brennanMKE has quit [Ping timeout: 260 seconds]
<dseitz> lol suure :)
wallerdev has quit [Quit: wallerdev]
RoryHughes has joined #ruby
derek_c has quit [Quit: Leaving]
Axsuul_ has joined #ruby
echevemaster_ has joined #ruby
Axsuul_ has quit [Read error: Connection reset by peer]
Axsuul_ has joined #ruby
shadoi has joined #ruby
RaCx has quit [Ping timeout: 265 seconds]
axsuul has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
ninjapig has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
coca_rails has joined #ruby
octaplus has joined #ruby
<ninjapig> hello, i'm trying to parse a long string and trying to extract one word at a time and manipulate it, is there anyway to do this without using split() ? I am trying to do it without using the extra o(n) space. I am trying to see if there is a way to do it without writing a function to consider the string character by character
mocfive has quit [Remote host closed the connection]
<ninjapig> would string.scan().each() do this without creating a separate array? I would think not because scan() creates a new array
<ninjapig> any help would be great
Lewix has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 245 seconds]
mocfive has joined #ruby
<dseitz> check out stringIO
bricker`LA has joined #ruby
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
fgo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
echevemaster_ has quit [Quit: Leaving]
OdNairy has joined #ruby
mj12albert has joined #ruby
echevemaster has joined #ruby
mj12albert has quit [Max SendQ exceeded]
mocfive has quit [Ping timeout: 260 seconds]
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
timonv has joined #ruby
Jdubs has quit [Remote host closed the connection]
<ninjapig> any other solutions?
<dseitz> Actually; now that I think about it, String#each_line might be worth using; you'd have build a new string
ItSANg___ has joined #ruby
<dseitz> That is, you should not modify the string you're enumerating
ItSANgo_ has quit [Ping timeout: 260 seconds]
<ninjapig> i'm trying not to use the extra space
fgo has joined #ruby
<ninjapig> suppose in string " the fox jumped over the cat", i want to iterate through it while storing each word in a temp variable
<ninjapig> and then displaying it, then reuse the same variable again
craigp has joined #ruby
<ninjapig> for efficiency
<ninjapig> or is that not possible?
coca_rails has quit [Remote host closed the connection]
Jdubs has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
stkowski has joined #ruby
brennanMKE has joined #ruby
<ninjapig> is using the \G anchor in regex a solution?
<ninjapig> i can't seem to see how the \G works
slowcon has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
mlpinit has joined #ruby
Lewix has joined #ruby
slowcon has joined #ruby
<dseitz> I'd pass #scan a block, to avoid an array being returned
<dseitz> then it just becomes a loop internally
tvw has joined #ruby
fgo has quit [Remote host closed the connection]
pierre1__ has quit [Ping timeout: 272 seconds]
bricker`LA has quit [Ping timeout: 265 seconds]
mlpinit has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
Red_Onyx has quit [Quit: Leaving]
<dseitz> s.scan(/\w+/) { |w| puts w } # would scan once, pass the result back, scan again, pass the result back, continue - so resource use would be good and it would still be a pretty good in terms of complexity -- 'w' would already be your temporary variable
<dseitz> ideone.com lets it run, so it's obviously not super slow; ipsum is generated to be 5000 words
pdtpatrick has joined #ruby
<dseitz> But I suspect the generator didn't do that lol
araujo has quit [Remote host closed the connection]
Jdubs has quit [Remote host closed the connection]
araujo has joined #ruby
Jdubs has joined #ruby
RaCx has quit [Ping timeout: 245 seconds]
<dseitz> http://ideone.com/2QD1qH -- now 5000 lol... ideone does not complain about run-time
brennanMKE has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
Mon_Ouie has quit [Ping timeout: 248 seconds]
RoryHughes has quit []
jonah_k has quit [Remote host closed the connection]
tskogberg has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
tskogberg has joined #ruby
connor_g1odwolf has joined #ruby
claymore has joined #ruby
apeiros has quit []
b00stfr3ak has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
vlad_starkov has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
tonni has quit [Remote host closed the connection]
Sevdalin has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
axl_ has quit [Quit: axl_]
Sevdalin has quit [Read error: Connection reset by peer]
MyStartx has quit []
vlad_starkov has quit [Remote host closed the connection]
Sevdalin has joined #ruby
pfg_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zerun0 has quit [Ping timeout: 245 seconds]
zerun0_ has joined #ruby
Sanyavirus has joined #ruby
RoryHughes has joined #ruby
axl_ has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.2]
coca_rails has joined #ruby
coca_rails has quit [Remote host closed the connection]
brennanMKE has joined #ruby
stkowski has quit [Quit: stkowski]
JasmeetQA has joined #ruby
noop has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
noop has joined #ruby
coca_rails has joined #ruby
shaunbaker has joined #ruby
RaCx has quit [Ping timeout: 246 seconds]
slowcon has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
slowcon has joined #ruby
browndawg has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
<pontiki> wondering how long this long string is
siwica has quit [Read error: Connection reset by peer]
<pontiki> if it's a 2MB string, might want to consider an IO enumerator
<pontiki> (or a 4TB string!!!)
siwica has joined #ruby
echevemaster has quit [Remote host closed the connection]
<dseitz> Someone haz some explaiiining to dooo! Lucy!! Why doz dis computa have a 4TB strung!?!?
RoryHughes has quit []
<bleak3> that's a pretty long string
bleak3 is now known as bleak
<dseitz> *waiting on super huge string to upload to idone*
iMe is now known as iMe_away
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
timonv has joined #ruby
phansch has quit [Quit: Leaving]
relix has joined #ruby
RoxasShadowRS has joined #ruby
tonni has joined #ruby
<pontiki> that would be one hella string
<dseitz> unfortunately, every attempt cause a 500 response :S 30MB strings too large for ideone lol
<pontiki> lol
Megtastique has quit []
Deele has joined #ruby
mlpinit has joined #ruby
vlad_starkov has joined #ruby
Cache_Money_ has joined #ruby
tibounise has joined #ruby
<tibounise> hi !
Sevdalin has quit [Quit: mIRC • VipScript • http://vip-script.com/]
jrobertfox has quit [Remote host closed the connection]
<pontiki> hi!
vlad_starkov has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
asmodlol has joined #ruby
lyanchih_ has joined #ruby
axl_ has quit [Quit: axl_]
RaCx has quit [Ping timeout: 248 seconds]
Kricir has joined #ruby
RaCx has joined #ruby
sergicles has joined #ruby
klaut has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
RoryHughes has joined #ruby
hema3 has joined #ruby
starfox21 has quit [Ping timeout: 248 seconds]
claymore has quit [Quit: Leaving]
S0da has joined #ruby
octaplus has quit [Remote host closed the connection]
nari has quit [Ping timeout: 260 seconds]
zenojis_ has joined #ruby
Astralum has quit [Ping timeout: 265 seconds]
zenojis_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
jfelchner has quit [Read error: Connection reset by peer]
randym_ has quit [Read error: Connection reset by peer]
ktosiek has quit [Read error: Operation timed out]
zenojis_ has joined #ruby
zenojis has quit [Remote host closed the connection]
zenojis_ has quit [Client Quit]
siwica has quit [Quit: siwica]
jhass|off is now known as jhass
ktosiek has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
Sanyavirus has quit [Read error: No route to host]
zenojis has joined #ruby
randym_ has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
slowcon has quit [Quit: slowcon]
Xeago has quit [Ping timeout: 265 seconds]
razibog has joined #ruby
iMe_away is now known as iMe
ctp has joined #ruby
Axsuul_ has quit [Ping timeout: 265 seconds]
ctp_ has joined #ruby
ctp- has joined #ruby
ctp has quit [Ping timeout: 250 seconds]
SteveBenner09 has joined #ruby
ctp_ has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
ctp- has quit [Ping timeout: 260 seconds]
coca_rails has quit [Remote host closed the connection]
evilbug has quit [Quit: Leaving]
RaCx has quit [Ping timeout: 245 seconds]
RaCx has joined #ruby
mehlah has joined #ruby
ctp has joined #ruby
ctp_ has joined #ruby
razibog has quit [Ping timeout: 260 seconds]
ctp has quit [Read error: Connection reset by peer]
ctp has joined #ruby
mocfive has joined #ruby
tvw has quit []
elaptics`away is now known as elaptics
ephemerian has joined #ruby
slowcon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ctp has quit [Client Quit]
ctp_ has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
razibog has joined #ruby
Karunamon has quit [Ping timeout: 252 seconds]
TK|2 has joined #ruby
SteveBenner09 has quit []
nihils has quit [Quit: Linkinus - http://linkinus.com]
kayamm has joined #ruby
mlpinit has joined #ruby
lxsameer has joined #ruby
relix has joined #ruby
relix has quit [Client Quit]
Xeago has joined #ruby
forcefsck has joined #ruby
relix has joined #ruby
Kricir has quit [Remote host closed the connection]
relix has quit [Client Quit]
mlpinit has quit [Ping timeout: 245 seconds]
mocfive has quit [Remote host closed the connection]
echevemaster has joined #ruby
mocfive has joined #ruby
octaplus has joined #ruby
hema3 is now known as tt1187
pencilcheck has quit []
tonni has joined #ruby
phansch has joined #ruby
Cache_Money_ has quit [Quit: Cache_Money_]
tonni has quit [Read error: Connection reset by peer]
mocfive has quit [Ping timeout: 260 seconds]
RaCx has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Remote host closed the connection]
pdtpatrick has quit [Quit: pdtpatrick]
ndrei has joined #ruby
timonv has quit [Remote host closed the connection]
RaCx has joined #ruby
senayar has quit [Remote host closed the connection]
jrist has quit [Ping timeout: 250 seconds]
shaunbaker has quit [Remote host closed the connection]
swatts has joined #ruby
renklaf has joined #ruby
carraroj has joined #ruby
timonv has joined #ruby
jfelchner has joined #ruby
shaunbaker has joined #ruby
<ninjapig> is there anyway to force ruby's regex engine to match in reverse?
<ninjapig> instead of creating an array and then reversing it
<jhass> ninjapig: maybe, can you provide a usage example?
lyanchih_ has quit [Quit: lyanchih_]
<ninjapig> there is a string "quick brown fox jumped over the lazy dog", i'm trying to make it so the string.scan(regexp) {|match|} is passed the words in reverse order
iMe is now known as iMe_away
<ninjapig> regexp scans a string left to right, i'm trying to do right to left, i think this is possible in C#
lyanchih_ has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Es0teric_ has quit [Quit: Computer has gone to sleep.]
<jhass> so, no I don't think that's possible, and unless you have a really big string I doubt it's any faster than creating an array and reversing it
mehlah has quit [Quit: Leaving...]
jrist has joined #ruby
<LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs
stef_204 has joined #ruby
kayamm has quit [Quit: SLEEP]
Hanmac has joined #ruby
<dseitz> Is it that time, LLKCKfan
spider-mario has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
daxroc has joined #ruby
<bleak> you could go to sleep
<bleak> or masturbate
<bleak> or eat something really spicy
wald0 has joined #ruby
daxroc has quit [Read error: Connection reset by peer]
daxroc1 has joined #ruby
Hanmac1 has joined #ruby
slowcon has quit [Quit: slowcon]
claymore has joined #ruby
<octaplus> llkckdan: acupuncture, sex, hot bath + relaxing music + massage
popl has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
brennanMKE has joined #ruby
<pontiki> i always come to the freenode tech channels to get medical advice. how about you?
<jhass> LLKCKfan: kinda a if you believe in it thing, but since you seem focused on "natural" might be something for you http://en.wikipedia.org/wiki/Acupressure
<LLKCKfan> octaplus Does not work, no, no bathtub, tried
RaCx has quit [Ping timeout: 265 seconds]
<dseitz> Ice cold shower
<pontiki> >> "The quick brown fox jumped over the lazy dog".reverse.scan(/\w+/) {|word| puts word.reverse }
<eval-in> pontiki => dog ... (https://eval.in/99830)
brennanMKE has quit [Ping timeout: 250 seconds]
RaCx has joined #ruby
<pontiki> wheee!
kenndel has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
LLKCKfan has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
gja has joined #ruby
shabgard has joined #ruby
cisco has joined #ruby
chrisan has joined #ruby
<octaplus> where is the pain. and accupunture does work sometimes in a placebo effect sort of way which is usually what you get if you want to go the "natural" way
LLKCKfan has joined #ruby
gigetoo has quit [Remote host closed the connection]
<dseitz> I do a form of acupuncture that is really neato; they drill holes to my spine, put needles into the nerves and burn them off :)
gigetoo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<pontiki> ^ this is why you don't seek medical advice on irc
<dseitz> lol :P
<dseitz> it's call radiofrequency injections
Xeago has quit [Ping timeout: 260 seconds]
kayamm has joined #ruby
bthesorceror has joined #ruby
<bleak> i feel like asking for non-chemical analgesic methods is kind of the opposite of medical advice
<pontiki> go to a orthopod, they'll likely first recommend ice
<dseitz> pontiki: lol yes, I would not advise until you have seen multiple doctors, had a few MRIs and were advised to seek neurosurgery
<dseitz> pretty high-tech procedure as brutal as it sounds
ep3static has joined #ruby
<pontiki> oh, it sounds like it would be, it's just that "a form of acupuncture" bit :>
<dseitz> lol
yxhuvud has quit [Remote host closed the connection]
<dseitz> Luckily the mind forgets how painful it is when you sign up again to do it every 6 months
<pontiki> hmm
<pontiki> has it helped?
<dseitz> Yes. When the nerves go back they are aggravated by the disk, serve no function but to report pain
<dseitz> s/go/grow/
<pontiki> right
bthesorceror has quit [Ping timeout: 248 seconds]
mlpinit has joined #ruby
cerberos has joined #ruby
lkba has joined #ruby
mlpinit has quit [Ping timeout: 245 seconds]
connor_g1odwolf is now known as connor_goodwolf
Waheed has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
<shevy> "<dseitz> [...] they drill holes to my spine, put needles into the nerves and burn them off"
<shevy> ^^^ man, we have a Guantanamo survivor
<dseitz> lol
daxroc1 has quit [Ping timeout: 250 seconds]
<shevy> when you write burn them off, you mean the technique where the needle holds something on the opposite end that is burned, and the heat is transmitted through the needle into the body?
tonni has joined #ruby
<bleak> maybe chemical burnage
Waheed is now known as Waheedi
<shevy> yeah I guess like http://oi61.tinypic.com/4vo9c1.jpg
<dseitz> Again, high-tech, causes the ions in the tissue to move at a pace that they burn up
echevemaster has quit [Remote host closed the connection]
<bleak> oh shit
<bleak> microwaves?!
<dseitz> well that that the heat they generate burns the nerve
kewubenduben has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
nichtdiebohne has joined #ruby
charliesome has joined #ruby
yeticry has joined #ruby
cerberos has quit [Quit: Leaving...]
chrisseaton has joined #ruby
Jdubs has quit [Remote host closed the connection]
pabloh has joined #ruby
fieldfirst has quit [Remote host closed the connection]
shadoi has joined #ruby
Hanmac has joined #ruby
<shevy> all that pain
<shevy> welcome to ruby bootcamp
MyStartx has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
charlies_ has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
MyStartx has quit [Read error: Connection reset by peer]
RaCx has joined #ruby
shadoi has quit [Ping timeout: 245 seconds]
raphaelivan has joined #ruby
charliesome has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
multila has quit [Remote host closed the connection]
iMe_away is now known as iMe
Kricir has quit [Read error: Operation timed out]
nari has joined #ruby
<shevy> hmm
<shevy> awk is kinda cool
<shevy> awk -F: '{ print $1 }' /etc/passwd
<shevy> would ruby have something similar? that one obtains the first entry when split would be applied onto ':' character, I think. in other words, obtains all users from that file
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
agarie_ has quit [Ping timeout: 246 seconds]
hiall_ has joined #ruby
charliesome has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
MyStartx has joined #ruby
Wolland has quit []
charlies_ has quit [Ping timeout: 252 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
agarie has joined #ruby
MyStartx has quit [Client Quit]
pdtpatrick has joined #ruby
brennanMKE has joined #ruby
papito has quit [Ping timeout: 245 seconds]
max96at has joined #ruby
rootshift has joined #ruby
kirun has joined #ruby
brennanMKE has quit [Ping timeout: 265 seconds]
ehaliewicz has quit [Ping timeout: 246 seconds]
eka has joined #ruby
thomasxie has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
rootshift has quit [Ping timeout: 272 seconds]
browndawg has joined #ruby
RaCx has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
predator217 has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
lxsameer has joined #ruby
mlpinit has joined #ruby
jonr22 has joined #ruby
fgo has joined #ruby
predator117 has joined #ruby
mlpinit has quit [Ping timeout: 260 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
SHyx0rmZ has joined #ruby
xlogic has joined #ruby
raphaelivan has quit [Quit: Leaving.]
bamdad has joined #ruby
bamdad has quit [Client Quit]
tonni has joined #ruby
renklaf has quit [Remote host closed the connection]
MrPopinjay has joined #ruby
canton7 has joined #ruby
cisco has quit [Quit: Leaving.]
hiall_ has quit [Quit: hiall_]
<MrPopinjay> Hello all. I was wondering- how do I handle toggleable output to the terminal to my application? I was thinking about creating a global variable that is set by a CLI runtime flag, and then creating a kernel method that will only print the string passed to it if this global variable is true. Is there a better method?
hiall_ has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
Waheedi has quit [Quit: Waheedi]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
<jhass> there has to be, globals are always a bad idea :P
<Fire-Dragon-DoL> MrPopinjay: what about a singleton?
<Fire-Dragon-DoL> which is a global variable by the way, but people keeps saying global are bad
<Fire-Dragon-DoL> xD
<jhass> it depends a bit on how you structured your application, but try to maintain some sort of configuration object
<jhass> Fire-Dragon-DoL: the difference is that can prevent it from being changed a second time and control simultaneous access more easily
fgo has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 265 seconds]
Guest96430 has quit [Ping timeout: 265 seconds]
shaunbaker has joined #ruby
Waheed has joined #ruby
Waheed is now known as waheedi
<Fire-Dragon-DoL> jhass: well, that's true ^^
<Fire-Dragon-DoL> I have few questions about ruby instead (woke up dreaming about programming languages xD)
<jhass> \o/
Lewix has quit [Remote host closed the connection]
RaCx has joined #ruby
<Fire-Dragon-DoL> the most stupid one: why there isn't a library that handle threads in "native" C considering Ruby has the possibility to interact with C code? I mean something like a NativeThread class (different from thread) which should have the advantage of native threads without GIL
<Fire-Dragon-DoL> are there any limitation I do not understand (or very complex implications of what I said)
<Fire-Dragon-DoL> aside from obvious threading-implications
tibounise has quit [Quit: WeeChat 0.4.2]
St_Marx has joined #ruby
MrPopinjay has quit [Quit: leaving]
<Fire-Dragon-DoL> I forgot the second question, argh
<jhass> the main reason for the GVL (global vm lock, since 1.9 it's called that if you want to be precise) is that MRI (the c code) itself isn't thread safe
<jhass> as I understood it
<Fire-Dragon-DoL> yea yea I know it
<Fire-Dragon-DoL> I want to know why there isn't a way to instanciate a native thread in any case
<Fire-Dragon-DoL> so that the programmer may eventually handle it manually
kiba has joined #ruby
<jhass> it'd still be ruby code, right?
<Fire-Dragon-DoL> yes
Megtastique has joined #ruby
<kiba> hi, how many HTTP connection can I make but while still being nice?
<Fire-Dragon-DoL> no idea
<Fire-Dragon-DoL> 20?
asmodlol has quit [Read error: Operation timed out]
<wald0> im searching for a good lib to use for cli apps with common needs, mixlib looks good (and supports version, config, shell commands, and cli opts)
<jhass> kiba: highly depends on who you're connecting to
<kiba> rubygems.org
<wald0> it is a good choice? it is a good quality lib?
fgo has joined #ruby
<Fire-Dragon-DoL> wald0: I do not understand, maybe thor? I may be completely wrong
<shevy> wald0 if not, you could always takeover and improve it ;)
<jhass> Fire-Dragon-DoL: so you still need the rubyvm to execute your NativeThreads code, no since the rubyvm isn't threadsafe, wouldn't it crash the moment two of your NativeThreads are in Ruby land the same time?
Guest76893 is now known as Martxel
Martxel has quit [Changing host]
Martxel has joined #ruby
<wald0> shevy: well, i would start by using a good one from the first moment
<Fire-Dragon-DoL> jhass: yes but you can use a semaphore to avoid everything exploding, that was my main point
<wald0> maybe im too much perfectionist (which is a non-productive problem) also
<jhass> Fire-Dragon-DoL: aka the GVL?
<wald0> just wondering around which ones are hte best option
<Fire-Dragon-DoL> jhass: not exactly, is controlled by you, if you don't need the two things to interact you can even put there no semaphore
daxroc has joined #ruby
<Fire-Dragon-DoL> jhass: (please consider this are just thoughts, I'm not writing anything thread-related right now)
<jhass> Fire-Dragon-DoL: the issue isn't your ruby code interacting, but the rubyvm being incapable of executing ruby code in parallel
<kiba> so, what's the best ruby for threading?
<xargoon> jruby
<jhass> ^
<jhass> rubinius support isn't too bad too from what I've heard
eka has joined #ruby
<Fire-Dragon-DoL> jhass: oh wait, you mean, for example, if I try to call a symbol, ruby may explode because access to symbol table is not thread-safe ?
<kiba> I don't think mine will appreciately increase in performance
<kiba> it's probably limited by network calls, after all
<jhass> Fire-Dragon-DoL: exactly
deepy has joined #ruby
deepy is now known as Guest80242
<Fire-Dragon-DoL> jhass: ok now I understand xD
maroloccio has quit [Quit: WeeChat 0.4.2]
maroloccio has joined #ruby
<Fire-Dragon-DoL> mhh I made a test
<Fire-Dragon-DoL> with JRuby
<Fire-Dragon-DoL> basically I was using ruby ffi to interact with a very stupid c library
<Fire-Dragon-DoL> same code in mri and in jruby
Monk_code has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
<Fire-Dragon-DoL> jruby had something like around 20% "slowness" O.o
<Fire-Dragon-DoL> maybe mri outperforms jruby on small codebase and on bigger, jruby improves?
<Fire-Dragon-DoL> but I've benchmarked over like 1 000 000 calls O.o (or 10 millions I do not remember)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cisco has joined #ruby
lxsameer has quit [Quit: Leaving]
Markvilla has joined #ruby
Monk_code has quit [Client Quit]
nichtdiebohne has quit [Read error: Connection reset by peer]
Monk_code has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<xargoon> a threaded jruby application should outperform a mri app as long as you stick to java or plain ruby libraries
aryaching has joined #ruby
asmodlol has joined #ruby
<Fire-Dragon-DoL> xargoon: ah ok, probably interacting with C involves doubling the overhead (ruby tries to interact with C, pass control to java, java tries to interact with C)
<xargoon> with jruby you could use jni through a java wrapper instead
<Fire-Dragon-DoL> what if I write the java implementation of the c extension (will still need to interact in some way with C code, it was a dll about game, so I need to load functions from there)
<xargoon> if you need to call C code
<Fire-Dragon-DoL> xargoon: yes I used jni long time ago
mavcunha has joined #ruby
<Fire-Dragon-DoL> the c library was very stupid, more or less it was a simple C-implemented stack that interacts with game (basically a way to call function in an assembly-like fashion)
sski has quit [Read error: Connection reset by peer]
[gmi] has joined #ruby
sski has joined #ruby
shaunbaker has quit []
<xargoon> would be nice if MRI 3.0 would support native threads
ndrei has joined #ruby
<Fire-Dragon-DoL> xargoon: in theory, I've read that ruby 2.2 is supposed to remove gvl
<Fire-Dragon-DoL> if that's true it will remove any competitor (jruby/rubinius) so I don't trust this statement
Sir_Funk has joined #ruby
rubyracer has joined #ruby
bthesorceror has joined #ruby
xlogic has quit [Remote host closed the connection]
<xargoon> at least rubinius, jruby have some other unique qualities
MyStartx has joined #ruby
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
fgo has quit [Remote host closed the connection]
bthesorceror has quit [Ping timeout: 260 seconds]
habanany has joined #ruby
habanany has quit [Max SendQ exceeded]
mlpinit has joined #ruby
habanany has joined #ruby
<wald0> im checking thor and mixlib-cli, but i have not found yet the way to set the name of the arguments for inside my ruby code
<wald0> for example, for the end user have "--verbose" (which is set automatically to [:verbose]), but to use this variable as "is_verbose" inside my ruby code (different name)
<wald0> i like to name all my boolean vars as prefixed is_*
<Fire-Dragon-DoL> wald0: you should use verbose? instead of is_verbose
<Fire-Dragon-DoL> it's a ruby standard
txdv_ has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> anyway, watch this
txdv has joined #ruby
<shevy> wald0 simply call one unique setter
<wald0> well, as i said i like to use very good names inside my code, the readability improves a really lot, for example if a directory is meant to contain a directory address is suffixed *_d, or different "behaviours" are "is_mode_FOO"
daxroc has quit [Ping timeout: 245 seconds]
<wald0> or for states, "has_", or "has_flag"
mlpinit has quit [Ping timeout: 250 seconds]
<wald0> shevy: what do you mean ?
<wald0> shevy: for the end user is not good to have --is-verbose, its not a stadard
<wald0> but for my code is better to use :is_verbose than :verbose
<shevy> wald0 " but to use this variable as "is_verbose" inside my ruby code (different name)" <-- use one setter and alias to it. the setter sets the @ivar in question
<Fire-Dragon-DoL> wald0: what about :verbose?
<shevy> and the --commandline-flags can only invoke these methods, and never set an @ivar directly
octaplus has quit [Ping timeout: 246 seconds]
<Fire-Dragon-DoL> anyway wald0 what I linked should do the job for you, I use it exactly for that reason, quite helpful, it converts from somethingLikeThis to something_like_this if it's an hash
<Fire-Dragon-DoL> wald0: forgive me, I linked you the wrong one: https://github.com/intridea/hashie#trash
tonni has joined #ruby
griffindy has joined #ruby
razibog has quit [Ping timeout: 248 seconds]
<wald0> ah
* wald0 checking again
vlad_starkov has joined #ruby
<wsandin> oncePCo3mi128
<wsandin> oops
otherj has joined #ruby
vlad_sta_ has joined #ruby
<wald0> mmmh, i dont quite understand, i need to set my own classes as child of the Hashie::Trash class, Fire-Dragon-DoL ?
agjacome has joined #ruby
<wald0> btw, is not there something called "alias" that should do a similar thing ?
<Fire-Dragon-DoL> wald0: you can create a class and call it ConvertCommandLineArguments < Trash
claymore has quit [Read error: Operation timed out]
vlad_starkov has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> you pass the hash of options obtained from thor/whatever you get the "renamed" version of params
mehlah has joined #ruby
tonni has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> wald0: yes alias do something similar but doesn't handle the type conversion, which you will need considering all input from console is string
chipotle has quit [Read error: Connection reset by peer]
Guest80242 has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
Megtastique has quit []
RaCx has quit [Ping timeout: 246 seconds]
<wald0> mmmh, unfortunately this package (hashies) is not available in debian wheezy
senayar has quit [Remote host closed the connection]
MrV has joined #ruby
<Fire-Dragon-DoL> mh?
<Fire-Dragon-DoL> it's a ruby gem
<Fire-Dragon-DoL> and I'm on debian wheezy
nfk has quit [Quit: yawn]
Speed has quit [Ping timeout: 260 seconds]
<wald0> yeah well, i like to use packages instead of install manually gems :)
RaCx has joined #ruby
<wald0> it is on jessie/testing, maybe i can rebuild the package "ported" for wheezy
<shevy> wald0 that is a problem. you are like in a prison then
senayar has joined #ruby
<shevy> you can only use what others who maintain the distribution made available to you and nothing else
<wald0> shevy: in my specific case i need stability and integration, im trying to do "distributable" (in debian package form, for wheezy) apps
<shevy> gem install hashies
griffindy has quit [Ping timeout: 272 seconds]
<shevy> btw wald0 were you the guy who uses enlightenment? or was it someone else... my IRC memory is so awful, I dont use timestamps and forget anything that is like + ~3 days ago
<wald0> so the endusers will only need to install my package and my app will work, without requiring he to install manually dependencies (dependencies are managed by the packager itslf, installing the needed ones)
<wald0> shevy: yeah me :)
jacekplacek has joined #ruby
whowantstolivef3 has joined #ruby
<shevy> aha that was the wrong gem command
rootshift has joined #ruby
senayar has quit [Remote host closed the connection]
<shevy> gem install hashie
<shevy> what a weird name for a project by the way
<shevy> I am more reminded of smoking weed than anything else :P
<wald0> Setting up ruby-hashie (2.0.3-1) ...
<wald0> done :)
<shevy> I dont know that one
Qodosh has joined #ruby
nfk has joined #ruby
<wald0> just backported the ruby-hashie package from jessie/testing to wheezy
<shevy> k, was wondering
<shevy> gem install ruby-hashie
<shevy> ERROR: Could not find a valid gem 'ruby-hashie' (>= 0) in any repository
<wald0> ruby-* is the new standard prefix for ruby gem packages in debian
DaniG2k has joined #ruby
forcefsck has quit [Quit: Ex-Chat]
senayar has joined #ruby
<shevy> I see
MrV has quit [Quit: MrV]
whowantstolivefo has quit [Ping timeout: 252 seconds]
<wald0> shevy: did you tried that enlightenment widgets for ruby ?
<shevy> wald0 a hdd I had was failing lately
<shevy> I had to reinstall everything
<shevy> and since start of february I work in a company during the week. the weekend right now is like the only time I can get in some non-work related stuff
griffindy has joined #ruby
<shevy> so to answer your question wald0 no, not really
claymore has joined #ruby
dseitz has joined #ruby
platzhirsch has joined #ruby
* platzhirsch roars…
<shevy> hey platzhirscherl
supersym has joined #ruby
<platzhirsch> Hola
chrisseaton has quit []
Speed has joined #ruby
tziOm has quit [Ping timeout: 252 seconds]
Speed is now known as Guest81132
MyStartx has quit [Read error: Connection reset by peer]
Guest81132 has quit [Client Quit]
tziOm has joined #ruby
Zubin has joined #ruby
mehlah has quit [Quit: Leaving...]
DaniG2k has quit [Quit: leaving]
DaniG2k has joined #ruby
<platzhirsch> You know how they say stay with one alcoholic drink at a party? This was me yesterday: Whiskey, Beer, Jägermeister, Vodka, Absinthe, Whiskey. Wooops!
shabgard has quit [Quit: Aji maji la taraji]
virtualize has quit [Ping timeout: 272 seconds]
virtualize has joined #ruby
jzig has quit [Remote host closed the connection]
jzig has joined #ruby
papito has joined #ruby
<shevy> wow
<shevy> how you can survive vodka I do not understand
RaCx has quit [Ping timeout: 260 seconds]
<shevy> with vodka I can literally feel it grabs my neurones and tries to destroy them
Ziarkaen has joined #ruby
<platzhirsch> A friend of mine gave me a bottle for borrowing him my vegan cooking book so long. It has a quite unusual alcohol concentration… 50%
RaCx has joined #ruby
<platzhirsch> shevy: well, since this is very true. You have a quite good observation to what this does to your body :P
<shevy> I mean a single vodka would kill me, it's on my blacklist, I can not drink it
<Monk_code> platzhirsch: vodka 41%
<platzhirsch> Monk_code: http://www.partisan-vodka.de/
jzig has quit [Ping timeout: 260 seconds]
<shevy> pure poison
<platzhirsch> looks like hipster vodka to me
echevemaster has joined #ruby
ageis has quit [Quit: http://ageispolis.net]
<shevy> yeah
<shevy> it kills the hipsters quickly
<platzhirsch> :)
fgo has joined #ruby
<Fire-Dragon-DoL> wald0: I really don't get why you should do it through the package manager
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<Fire-Dragon-DoL> wald0: I mean, you can just run bundle install in your package as a command once your code is installed
<Fire-Dragon-DoL> wald0: against your gemfile, to install all dependencies
wallerdev has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
vermele has joined #ruby
<Fire-Dragon-DoL> wald0: if you need some c dependencies (for rmagick for example) you definitely can put it in your debian package, but still specify gems through gemfile, that's the standard and correct way to handle gems
brennanMKE has joined #ruby
<Fire-Dragon-DoL> wald0: the entire ruby ecosystems base itself on rubygems bundler and gemfiles, not calling it stable seems quite weird considering there are thousands apps running on it...
mlpinit has joined #ruby
<wald0> shevy: you must use a ready-to-use distro to saving your time :p
yasushi has joined #ruby
Tokenizer has joined #ruby
<Tokenizer> hi, I have a question about dynamic reflection, how can I do something like this ... question is at the bottom of this short paste: http://pastie.org/8715183
habanany has quit [Quit: Leaving.]
pavilionXP has joined #ruby
<ep3static> platzhirsch: hipster vodka lol
pdtpatrick has quit [Quit: pdtpatrick]
<shevy> wald0 then I would be in a prison
<platzhirsch> ep3static: As a brand :)
<shevy> wald0 right now I do "ry NAME_OF_PROGRAM" and it gets either compiled or installed
<wald0> shevy: in fact, any alcohol destroys your neurons, more exactly 1 million of them for each "big party" (and we have a thousand of millions, only)
avril14th has joined #ruby
<wald0> so, one toushand of big parties == vegetable
<avril14th> Hi
<platzhirsch> Tokenizer: you need to split the string by character '.' and then apply each value with .send to the returning object
<avril14th> I'm trying to have a method default parameter be the name of the calling method, I tried def whatever(method = __method__) but this always returns "whatever" and not the calling method. Any way to write this simply?
<wald0> Fire-Dragon-DoL: because what i want to do are apps in ruby ready to be used by debian* users, so by installing them with apt-get, so the gems should be available from deb's too, thats why :)
brennanMKE has quit [Ping timeout: 250 seconds]
RKornmeyer has quit [Read error: Connection reset by peer]
<Tokenizer> platzhirsch: got it thanks
carif has joined #ruby
ndrei has joined #ruby
mlpinit has quit [Ping timeout: 250 seconds]
<wald0> shevy: you are not in a prison since you are using a linux* system (prison is windows/mac where you cannot modify "all" the source code), since the linux system is easly customizable is much better than "start from scrach" so you have a base-point to use
OdNairy has quit [Ping timeout: 245 seconds]
<shevy> wald0 you are completely dependend on how debian layouts their system
<platzhirsch> There is Linux from Scratch
<shevy> and linux from scratch also goes one route
<wald0> shevy: framework structure, yes, very well structured in debian, you can do anything uppon on it
<wald0> shevy: this is just like ruby... are you in a prison by using ruby just because it doesn't allow you to do all the assembly code by your own ?
<shevy> all I am saying is that I do not follow any structure, the only statement I make is that whenever I can, I use the source
<avril14th> all hints are welcome :)
<wald0> or you should use assembly instead because of the "layouts of ruby" ?
<shevy> wald0 yeah, I have to use what was made available to me. in your setup though this is worse, you can not use non-debian gems
<Fire-Dragon-DoL> wald0: I don't get, I was sure that through a debian package you can type a custom installation script, so to me the right way to handle it is install your package which will require ruby installation (how you handle it? There are a lot of people NOT using debian ruby because it's outdated, I use a 2.0.0 compiled version through RVM) and run your custom install script which just runs bundle install on your gemfile. This gives you both th
<wald0> shevy: but, a (good) structure/framework is much better than plain or to re-do the whell :)
<wald0> wheel*
pavilionXP has quit [Remote host closed the connection]
<shevy> avril14th only way I know of is through caller()
OdNairy has joined #ruby
<avril14th> thanks shevy
banister has joined #ruby
RKornmeyer has joined #ruby
<wald0> Fire-Dragon-DoL: so my debian package (for example) should depend of other debian packages (ruby gems that i need), doing it in "installing ruby gems script" is very hackish and without following the good structure policy
<avril14th> so it is true to say that method parameters are evaluated in the context of the method, and not in the context of the calling one?
meatherly has joined #ruby
tonni has joined #ruby
<shevy> avril14th I suppose so, anything else does not make sense or? it could not leak out of the method
_bart has joined #ruby
<avril14th> well since parameters are supposed to come from the caller context
<shevy> avril14th you could however use methods or default classes in your methods
<wald0> shevy: yes you can, add some PATH and LD_STUFF vars in your bashrc/zshrc and you can use local gems, in fact, you can use any of your ruby setup by just copying a folder from one linux system to other (since they are run by user), not needed to redo all the entire OS
<shevy> avril14th they do? I always thought they are local to the method and have no memory of what was passed to them
<avril14th> I don't think I see what you mean shevy,what's that?
<shevy> wald0 I refer to "gem install name" which you can't do if you use only debian-gems
<avril14th> about the default classes
fgo has quit [Remote host closed the connection]
<shevy> avril14th well something like this:
<shevy> def foo(i = Foo.bla)
LLKCKfan has quit [Read error: Connection reset by peer]
<avril14th> oh ok
<shevy> and modify Foo.bla freely before you call that method
<Fire-Dragon-DoL> wald0: what? It's not hackish you are installing ruby and rubygems (debian packages) and then you run the command you installed (rubygems) to manage ruby dependencies. You are confusing the package manager domain, gems are RUBY domain, while ruby executable are package manager domain
acumiskey has joined #ruby
acumiskey has quit [Max SendQ exceeded]
wallerdev has quit [Quit: wallerdev]
acumiskey has joined #ruby
acumiskey has quit [Max SendQ exceeded]
<Fire-Dragon-DoL> wald0: the fact that you need to recompile one thing to make it available as a debian package should be the hint that YOU are doing something hackish (recompiling a ruby gem into a debian package) considering that you already have a dependency resolution in your debian package
OdNairy has quit [Ping timeout: 250 seconds]
acumiskey has joined #ruby
Zubin has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 246 seconds]
<shevy> people who use debian like their prison
LLKCKfan has joined #ruby
<shevy> they adorn it with lots of niceties so it no longer looks like one
* platzhirsch takes out the whip… “That's right”
<Fire-Dragon-DoL> wald0: the idea should be: myscript-debian-package depends on ruby, rubygems,imagemagick "install script" => run bundle install which installs rmagick (dependent on imagemagick), hashie, dunnowhatelse
<avril14th> thanks shevy for the feedback
<shevy> platzhirsch what OS do you use?
<shevy> avril14th good luck
<platzhirsch> shevy: :P Ubuntu
<Fire-Dragon-DoL> shevy: I do use debian xD
<shevy> caller() is not very elegant but I don't know of another way
<shevy> ack
<shevy> YOU ARE ALL INFESTED WITH DEBIAN
<Fire-Dragon-DoL> ahah
<Fire-Dragon-DoL> it's just an o.s.
<Fire-Dragon-DoL> i need something able to run
<Fire-Dragon-DoL> ruby executable
<Fire-Dragon-DoL> lol
<shevy> mac
OdNairy has joined #ruby
<Fire-Dragon-DoL> ahem
<Fire-Dragon-DoL> sorry
<wald0> shevy: if im not wrong you can do "sudo gem install foo" and it will work system-wide, or "gem install --user-install" for install it locally without root privileges and only affecting to that user
<Fire-Dragon-DoL> i'm not going to move from a free thing
<Fire-Dragon-DoL> to a prison
<shevy> wald0 yeah
<Fire-Dragon-DoL> lol
<shevy> wald0 at work I have to do --user-install
<shevy> I have a proud windows pc
<shevy> the only windows pc in the whole room :(
<Fire-Dragon-DoL> shevy: the best way to handle ruby is compiling it for your user so you won't have issues with sudo gem install
<platzhirsch> I have a Windows, too. But it's not proud, it's in a latex suited and locked down in a box.
<Fire-Dragon-DoL> shevy: I have windows and debian
<Fire-Dragon-DoL> but really
<shevy> windows makes me so sad
<Fire-Dragon-DoL> debian is "just" an interface to ruby xD
<shevy> at least putty is somewhat useable
<shevy> and my shell aliases work too
<Fire-Dragon-DoL> shevy: oh I managed to hack windows a bit
<avril14th> shevy: It works great with def whatever(method = caller[0]) but this caller[0] changes if you debug the code with breakpoints ^^ :)
<platzhirsch> shevy: Why putty when there is Cygwinx?
<wald0> Fire-Dragon-DoL: just add the debian package dependencies to the "Dependencies: foo, bar" list of the control file in the debian package and they will be installed if they exist in one of the debian repos that you have
<shevy> avril14th ewww such a code would scare me
<Fire-Dragon-DoL> shevy: I have a situation very similar to yakuake + linux terminal
<shevy> yakuake?
<shevy> on windows?
<shevy> HOW?
<avril14th> shevy: other way is to force the method name at each call
<wald0> shevy: infested? sure, because debian is very good made :) its meant to be the universal operating system
<shevy> at work the infrastructure is debian server btw :)
<Fire-Dragon-DoL> wald0: yes but you said the fatal sentence previously "I can't use hashie because it's not available as a package" THAT'S the definition of a prison
ndrei has quit [Read error: No route to host]
<Fire-Dragon-DoL> wald0: you can say whatever you want, but you are doing it wrong
<wald0> i assume that will be "really" the universal operating system if will use NIX packages instead (which features both dynamic and static features for apps/libs)
<shevy> wald0 did you write something in ruby-enlightenment yet btw?
swatts has quit [Quit: Leaving...]
<shevy> something that one could install via gems ideally :D
<Fire-Dragon-DoL> shevy: with a mix of executables
<Fire-Dragon-DoL> shevy: I use Autohotkey for the hotkey that "drags down" the console, Console2 as console terminal
<wald0> Fire-Dragon-DoL: not really, I CAN use it for myself, i just cannot distribute my ruby app in a debian-package form if the ruby-hashie package doesn't exist (only in wheezy, it exist in jessie), but this has 2 solutions: install it in a normal way, or include the dependency
<wald0> which i have already just ported (ruby-hashie) to wheezy :)
<wald0> at hte same time, everywhere you have the same problem, you should provide required dpeendencies for your app (or a way to install them)
ndrei has joined #ruby
<shevy> Fire-Dragon-DoL hmm dan
<shevy> I can not install anything as superuser on that windows machine :(
<wald0> shevy: just a few tests, nothing serious, im a bit blocked by the fact that im not expert in ruby yet and there's some ruby syntax that i dont understand/know, reading the ruby-FFI doc i dont quite understand all so im a bit blocked here
<Fire-Dragon-DoL> wald0: hashie has 1157 likes on github, means it's a famous gem and it wasn't present (already) in wheezy, what about less famous gem or your personal gems that you may have used to build your software, will you backport like 1 billion libraries into debian packages? Still, feels completely wrong
Rollabunna has joined #ruby
<Fire-Dragon-DoL> not to mention the fact that during uninstallation process you'll remove the package, uninstalling the gem but I may have built a script which uses that gem
<wald0> shevy: install by gems? sure, just install the ffi-efl gem and you can run the test.rb files :) but you need to have libefl/libelementary libraries compiled/installed in your system
<wald0> and so the .rb files will work out of the box
<Fire-Dragon-DoL> shevy: plus mingw or cygwin, yourchoice, consider that it's a bit hacky to make them work in your current working directory but after it, you have something very similar
<wald0> Fire-Dragon-DoL: how much old is hashie? note that wheezy is already pretty old, but the actual development of debian has hashie included in their repos (which happened at least 4 months ago)
Sir_Funk has quit [Ping timeout: 265 seconds]
<Fire-Dragon-DoL> shevy: I have no idea, considering commits, more than 4 years
sski has quit [Remote host closed the connection]
xlogic has joined #ruby
Hanmac1 has joined #ruby
<wald0> Fire-Dragon-DoL: thats why the debian packages system (for ruby apps) is so good, it manages dependencies, conflicts, etc... you cannot uninstall a gem if other applilcation depends on it
sski has joined #ruby
<wald0> but you can break that by using gems :þ
heftig has quit [Quit: Quitting]
<shevy> it even is a fragile prison!
<wald0> well, maybe im wrong ?
<Fire-Dragon-DoL> wald0: really? How the hell you know if I write a script which just do "require 'hashie'"
<Fire-Dragon-DoL> lol
v0n has joined #ruby
sailias has joined #ruby
<Fire-Dragon-DoL> that could be eventually my fault because I didn't include a gemfile
<Fire-Dragon-DoL> but in ruby you will just do bundle install at the gemfile level and it will reinstall hashie
<Fire-Dragon-DoL> with the correct version
griffindy has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> (for that script)
<wald0> Fire-Dragon-DoL: not sure to understand you, if you write a ruby app which requires something, when you package your app for debian you need to include the dependency to your package controls file, but very probably this is automatically generated by the packager tools
Hanmac has quit [Ping timeout: 248 seconds]
griffindy has joined #ruby
rezonanc has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
<wald0> Fire-Dragon-DoL: if your app requires hashie and bundle installs it, and i write a ruby app which conflicts which hashie (so requires to remove it), it is removed and so your app not working anymore on me?
claymore has quit [Ping timeout: 250 seconds]
<Fire-Dragon-DoL> wald0: exactly because I installed it through rubygems
claymore has joined #ruby
<Fire-Dragon-DoL> wald0: not through package manager
<wald0> Fire-Dragon-DoL: so (if we are talking about the same thing) this is better in debian because you cannot install my app because it will break your app
sski has quit [Ping timeout: 248 seconds]
<wald0> things needs to be secure and stable, it is not allowed to instlal things that breaks other things, this is unaceptable and painful
<wald0> unreliable OS's does that, not debian (even if is not perfect, its meant to be as much as possible)
<Fire-Dragon-DoL> no the point was that my app may have not been written as a debian package (and probably this is the common case)
<Fire-Dragon-DoL> what if I need
<Fire-Dragon-DoL> 3 version of hashie
<Fire-Dragon-DoL> one for 1.9 one for 2.0 and one for 2.1
pskosinski has joined #ruby
<wald0> well ok, now we are talking about different things: your app is just an app that you can publish anywhere, this is good, but debian is a "complete OS" with its own packaged software, so your app becomes part of a "reliable environment of available software", it needs to manage it correctly
<Fire-Dragon-DoL> and by the way you have to run EVERY script with bundle exec scriptfile which will ensure you have all gems installed when you run it
<Fire-Dragon-DoL> with the correct version
daxroc has joined #ruby
clocKwize has quit [Max SendQ exceeded]
clocKwize has joined #ruby
<wald0> before was libfoo-ruby, now they are ruby-foo, which is meant to include all hte versions/needs for each ruby version of the OS
jacekplacek has quit [Quit: This computer has gone to sleep]
<wald0> but what you mean, is more like a topic of a much-different packager system, like the one of NIX
<Fire-Dragon-DoL> no that's not possible considering I may need to have version 1.0.1 instead of 1.0.0
<Fire-Dragon-DoL> and there are version with much more thant just 1.0.0 °°
<wald0> that one allows you to have any version of anything, which points to any version of anything independently or togheter
<wald0> (hard to explain :þ)
<Fire-Dragon-DoL> dunno, to make it "debian usable" you are breaking the entire ruby environment
BrixSat has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<Fire-Dragon-DoL> which has the native advantage of being portable
Ziarkaen has quit [Ping timeout: 252 seconds]
<Fire-Dragon-DoL> so if you change linux distro, move to a mac or even windows
jacekplacek has joined #ruby
<Fire-Dragon-DoL> you can still have everything working
yasushi has quit [Remote host closed the connection]
<shevy> long live ruby
<shevy> down with windows
<shevy> down with debian
<Fire-Dragon-DoL> windows is the best os for gaming
<Fire-Dragon-DoL> you can say whatever you want
<shevy> true
<Fire-Dragon-DoL> but that's the truth :P
<shevy> it is the only reason it still survives
<shevy> because there is a large faction of gamers out there
<Fire-Dragon-DoL> yes but it's a good one
tkuchiki has quit [Remote host closed the connection]
<Fire-Dragon-DoL> lol
<pontiki> yup, every other OS is for getting work done.
<wald0> Fire-Dragon-DoL: if you need (for yourself) version 1.0.1 of ruby-hashie in debian, you can install it locally and it works perfectly, if you want to "provide your app for debian ecosystem" you need to have your app to depend correctly of the other debian packages, on this case, you must contact the maintainer of ruby-hashie to update its version or wait for it in wheezy, but it will be probably updated in the other less-stable debian branches
<shevy> imagine if they would transition to mac or linux
DaniG2k has quit [Quit: leaving]
<shevy> wow
<kiba> anybody having trouble with debugger not being supported in ruby 2.1.0?
Noldorin has joined #ruby
<shevy> Fire-Dragon-DoL you must contact debian maintainers!
<wald0> gaming is a cancer on the human evolution :) sorry
<pontiki> nah, kiba, i just use pry
<Fire-Dragon-DoL> kiba: you mean pry-debugger ?
<Fire-Dragon-DoL> shevy: I'm not in prison but I have to contact my prison director
<Fire-Dragon-DoL> ok this was a joke
<shevy> lol
Wolland has joined #ruby
alex88 has joined #ruby
<shevy> I <3 that
<kiba> Fire-Dragon-DoL: hmm?
<wald0> really, you guys are saying nonsense things :þ
<wald0> there's no prison
<shevy> ok
<kiba> pontiki: is pry a drop in replacement?
<shevy> do "gem install pry"
<wald0> there's a big freedom (not full but very high)
<kiba> I just use "debugger" and then irb inside
<kiba> very useful combination
<lagweezle> also potentially 'gem install pry-doc'
<wald0> i still not get the point of hte prison, really
<shevy> yeah, the classic redefinition of freedom
stryek has joined #ruby
<shevy> when something restricts you, they tout it as an advantage and lie you in the face that you get more out of things that way
yasushi has joined #ruby
<wald0> you have an entire OS with the source open hwich you can modify entirely, and it is also made to allow you do install/replace/remove anything that you need for your own
<shevy> Welcome to GPL3
<wald0> so where's the prison ?
<kiba> the prison industrial complex! increasing guard labor, but no future capital growth!
heftig has joined #ruby
sailias has quit [Read error: Connection reset by peer]
<shevy> Yes but you can not leave that prison wald0
<shevy> wald0, can I use debian in an app-dir like fashion, side by side with source compilations?
<Fire-Dragon-DoL> wald0: dunno, it feels redundant in any case, ruby has a package manager already and it works really nice because can interact directly with user code, you can stick with porting every gem into a debian package but defeats the purpose of ruby gems, which is "everyone develop his own gems for his apps" which also promote a good coding style (module programming) and the fact that they can be easily built/deployed everywhere
<shevy> no I can't! because there can be only one entry at /usr/bin/ruby, not as many as I like to
<wald0> which prison? please define it so i dont understand your point at all
<wald0> shevy: yes you can
<shevy> I doubt that :)
<wald0> shevy: entirely false, i experienced by my own that you can do ANYTHING as user
<shevy> very unlikely
tkuchiki has joined #ruby
<wald0> so let's say, you install a simple debian as base, then you can have as user anything that you need
<lagweezle> /usr/bin/ruby-<version>
<wald0> i did this in dreamhost hosting, since i was unable to install packages that i needed
<shevy> wald0 you still have only one entry slot available for any given name at /usr/bin
<Fire-Dragon-DoL> shevy: I do not like gplv3, for the moment my favourite license is (still) mit
<wald0> installed ruby or python apps, C ocmpiled applications, and any dependencies that i needed to have
angusiguess has joined #ruby
claymore has quit [Ping timeout: 245 seconds]
<pontiki> kiba, not exactly, but almost
<shevy> the latter usually works because /usr/lib gets versioned for the respective programs, like /usr/lib/ruby/1.8 etc..
lukec has joined #ruby
<lagweezle> Hrmf. The #capistrano channel seems like it only has lurkers / idlers and not much else.
<wald0> shevy: you have $HOME/bin, for exaple
<Fire-Dragon-DoL> pontiki: now I want to play prison architect
dgfdgf has joined #ruby
claymore has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
mavcunha_ has joined #ruby
<Fire-Dragon-DoL> lagweezle: ask here or in rubyonrails
<pontiki> kiba, where you would put debugger in a ruby script, instead you put binding.pry (or binding.pry-remote if it's a remote pry session)
<lagweezle> For Capistrano 3, how do I alter the PATH environment variable (and confirm it's alteration)? All I've found online doesn't appear to work and/or confuses me. :/
<shevy> wald0 yeah but I can install anything into my home dir anyway, we are talking about the underlying OS
dgfdgf is now known as `MArceLL`
<pontiki> Fire-Dragon-DoL: my daughter is working hard to reform and/or abolish the prison system.
<Fire-Dragon-DoL> lagweezle: I have no idea :S
<AlexRussia> param-pam-pam, to my distro walk ruby 2.1
<wald0> shevy: no, we are talking about using debian as a prison :)
Sammael has quit [Ping timeout: 246 seconds]
<Fire-Dragon-DoL> pontiki: clearly she never played prison architect
<wald0> shevy: so if you, as an user, are unable to do anything that you need, then you are in a prison
<shevy> it is a prison! start using gems!
<pontiki> clearly, she doesn't want you to either
<wald0> what makes $HOME/bin wrong ? since you CAN use it as you whish
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> read some foucault before you do
<shevy> I can use any other directory just as well, you can simulate a whole distribution therein
<Fire-Dragon-DoL> pontiki: can't it's an indie game, can't resist, too fun D
<Fire-Dragon-DoL> xD
<wald0> shevy: so where is hte prison ? þ
<shevy> wald0 I explained it about 3 times now :(
<wald0> shevy: sorry, i still not get the point hat you can do anything that you want
<wald0> cannot*
<shevy> wald0 ok. can I have appdirs on debian
<wald0> sure, set up your users to use their own local dirs where they has full permission
cloud|nix has joined #ruby
<Fire-Dragon-DoL> wald0: if you use debian package manager you are bound to debian, while C is not cross platform and it's ok to have it in a package manager, ruby was born as a portable executable, bounding it to a debian package actually reduce the freedom of usage of that script so technically speaking you are "enprisoning" your executable
cloud|nix has quit [Read error: Connection reset by peer]
<shevy> wald0 you are speaking about the "do it on your own" way here. I am speaking about the OS level
tkuchiki has quit [Ping timeout: 272 seconds]
mavcunha has quit [Ping timeout: 272 seconds]
cloud|nix has joined #ruby
<wald0> if you meant "i cannot use /usr/bin from my user", what is wrong with that? you system should not allow virus to exist so it needs to have a permissions-structure & reliable system
IceDragon has joined #ruby
<shevy> ^^^ prison
<shevy> You restrict what a user can do on the OS level.
cloud|nix has quit [Client Quit]
Speed has joined #ruby
<pontiki> only if you don't give them root
<shevy> even with root, you just can not have appdirs on debian
<wald0> no, you restrict the system to be secure and reliable without allowing unsecurity to exist
cloud|nix has joined #ruby
cloud|nix_ has joined #ruby
Speed is now known as Guest84258
<pontiki> what are appdirs?
ndrei has quit [Ping timeout: 250 seconds]
<shevy> pontiki so use as many different versions as you want to side by side
<pontiki> like on bsd and darwin?
<wald0> its just like ocmparing "chaotic anarchy" and "organized anarchy", i hope to see a future without the first one :)
<lagweezle> What is an appdir?
cloud|nix_ has quit [Client Quit]
Guest84258 has quit [Changing host]
Guest84258 has joined #ruby
<shevy> versioned programs in essence
Guest84258 is now known as Speed
lukec has quit [Quit: lukec]
bahar_ has joined #ruby
Wolland has quit [Remote host closed the connection]
<pontiki> right, ok
<pontiki> and?
Solnse has joined #ruby
<shevy> you don't have that on debian
<wald0> shevy: btw, finally, what you are saying is just what the NIX package system does (entirely independent apps and libs and their dependencies), you can use the NIX package system in debian too
<pontiki> and?
<shevy> wald0 I know
<shevy> pontiki No and
<pontiki> i guess i'm wonder so what?
jacekplacek has quit [Quit: This computer has gone to sleep]
<wald0> shevy: so no prison, you can do it, use nix on debian if you want chaotic anarchy
<pontiki> what can't you do?
cloud|nix has quit [Client Quit]
<Fire-Dragon-DoL> wald0: on second point, if you write a rails application for example that you'll release on a server and you are paid to do it, you won't probably release the source code in a debian package. Now, suppose your rails app uses hashie gem and you are on a shared host where you don't have root privileges, you can clearly install your rails app and just run "bundle install", no issue, will work fine. What happens if you have your "hashie" gem
<shevy> wald0 on the OS level?
ep3static has quit [Quit: WeeChat 0.4.2]
Wolland has joined #ruby
echevemaster has quit [Remote host closed the connection]
<wald0> Fire-Dragon-DoL: right, and you can do the same with C compiled apps and python dependencies too
<shevy> wald0 and what would you say before nix existed? ;)
<pontiki> meh, you're all being entirely hypothetical
<wald0> shevy: yes
cloud|nix has joined #ruby
<wald0> shevy: before? write it and use it :) you still no prison if you can do that
<shevy> lol
iMe is now known as iMe_away
cloud|nix has quit [Read error: Connection reset by peer]
meatherly has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 248 seconds]
<Fire-Dragon-DoL> one of the first thing you discover using ruby (spread all over the web), if you are doing sudo gem install or sudo bundle install, you are doing it wrong
* wald0 always wanted to play with NIX, but never found time for it... another good debian point: ready to use, solid and stable
<wald0> thx shevy :) reading it, i always wanted to see debian adopting it
<shevy> you can wait for a long long time!
bahar_ has quit [Ping timeout: 245 seconds]
Es0teric has joined #ruby
cloud|nix has joined #ruby
<wald0> shevy: there should be a good reason if they dont integrate it
<shevy> laziness
<shevy> and inertia
<shevy> as a serverOS you don't want to change things that work
<avril14th> c ya guys
avril14th has quit []
<wald0> shevy: so fork debian and do debian-nix :) lol (seriously, lots of projects does these things)
<Fire-Dragon-DoL> debianX
aryaching has quit [Ping timeout: 250 seconds]
<Fire-Dragon-DoL> xD
shadoi has joined #ruby
<shevy> Nah, I can't base a fork on a prison.
<Fire-Dragon-DoL> lol
RoxasShadowRS has joined #ruby
sparrovv has joined #ruby
RaCx has joined #ruby
waheedi has quit [Quit: waheedi]
<shevy> wald0 look here, this is typical debian maintainer ideology: https://lists.debian.org/debian-devel/2013/02/msg00365.html
<Fire-Dragon-DoL> shevy: by the way you can't talk about prison if you talk about mac (forced hardware)
angusiguess has quit [Ping timeout: 252 seconds]
Wolland has quit [Ping timeout: 245 seconds]
<shevy> Fire-Dragon-DoL I was kidding, I actually never used a mac :(
<shevy> it would be nice if we could all 3d-print free hardware one day
<Fire-Dragon-DoL> shevy: oh ok xD
<shevy> Fire-Dragon-DoL actually, I'd like to have OSX at work now
<shevy> better than windows pc
<Fire-Dragon-DoL> shevy: the main point in choosing debian (when I chosen it) over any other linux distribution was "because it's stable"
<wald0> shevy: since you have the entire source code of debian where you can do debianX, what makes you think that its a prison ?
* wald0 feels htat this convo goes nowhere
<shevy> wald0 I explained it above already, you try to point out things which are simply not true. You can not get certain features in debian, plain and simple.
<Fire-Dragon-DoL> problem is that no one say you that if you don't switch to a testing/unstable branch, is stable because packages are HEAVILY updated
echevemaster has joined #ruby
<wald0> shevy: which OS you used? arch? what makes it no-prison compared to debian? you are prisoned to do much things at your own instead of "apt-get install allthatineed"
<shevy> wald0 gobolinux
littlebit has joined #ruby
<littlebit> hi people, i have a question concerning ruby and debian. ruby comes with it's gem command where you can and remove and update it's libraries, but debian has it's apt-get command where you can also install, remove and update ruby's libraries. Which one is the preferred way of maintaining ruby and it's libraries?
<wald0> shevy: which feature i cannot have? tell me an example
<shevy> wald0 in the past. Everything is a prison on some level, I did not install through gobolinux packages
<shevy> wald0 AppDirs
<wald0> shevy: well, tell me more exactly about a "real need that you cannot do"
<shevy> wald0 it is a reel need
<shevy> *real
<wald0> ok
<shevy> another debian user :)
cloud|nix has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> wald0: I was joking with the prison thing but the fact that creating a debian package for a gem feels hackish more than installing the gem itself is true
<shevy> they are SWARMING on #ruby
ndrei has joined #ruby
kewubenduben has quit [Ping timeout: 248 seconds]
<shevy> littlebit, wald0 is an expert here regarding debian ;)
pdtpatrick has joined #ruby
<wald0> see iphone OS for example, they has a root user which is only used for hte OS, and the "mobile" user which is YOUR user, all your AppsDir (iphone apps/ ipa's) are installed on the mobile user dirs
<wald0> you can do exactly the same with debian
shadoi has quit [Ping timeout: 245 seconds]
<Fire-Dragon-DoL> I wanted an opensource o.s. and an opensource code editor because I'm too scared of "i drop support" on a closed software that can cause disasters
<shevy> wald0 look at littlebit!
<wald0> new users are created from the /etc/skel dir, change on it hte configurations that you need so that every new user will use its own AppsDir
<Fire-Dragon-DoL> and I don't want to start hearing "pay xxx$ eveyr year to get updates"
bthesorceror has joined #ruby
<wald0> leave the root/OS dirs for the stability system and use user AppsDir for apps
<wald0> easy and fast
<wald0> and reliable
<shevy> wald0 how can I switch versions?
sski has joined #ruby
<wald0> littlebit: i suggest you to use debian packaged libs for your ruby apps, but if you have a need that is not included in the packages then use "gem install --user-install" (iirc) for these ones
daxroc has quit [Quit: Leaving.]
claymore has quit [Ping timeout: 250 seconds]
<wald0> Fire-Dragon-DoL: gem tool is good for ruby ecosystem, debian packages of ruby elements is good for the debian/os ecosystem
otherj has quit []
yasushi has quit [Remote host closed the connection]
<wald0> shevy: iphone OS is an AppDir, right? how you switch versions on iphone?
<ddd> wait wait wait. am I reading this right? (Please tell me I'm not) Because you are subjected to unix permissions (chmod+chown), because users can't install packages willy nilly, and because they have to use a package manager (obstensively using sudo) the OS is therefore a prison?
<shevy> wald0 I have absolutely no idea, I never used one
claymore has joined #ruby
<shevy> ddd nope, you did not read it right. it's best to read up the whole backlog rather than focus on mini-elements
<ddd> I really hope I read that wrong. Or I'm gonna have one HELL of a belly laugh off that (can always use a laugh). I'll also think people have lost their minds
chrisseaton has joined #ruby
<wald0> ddd: seems like that is what they are saying lol, as i said comparing "chaotic anarchy" with "organized anarchy"
<ddd> shevy thought I had read back. but it read like that was being said, so I figured I'd ask for clarification before I went ahead and laughed and thought people nuts
<ddd> glad i did
yasushi has joined #ruby
bthesorceror has quit [Ping timeout: 250 seconds]
yasushi has quit [Remote host closed the connection]
<wald0> shevy: but you still can install and use nice-app-1.0.2 and nice-app-1.0.3, nothing stops you
sski has quit [Ping timeout: 245 seconds]
<ddd> wald0 use of what I mentioned isn't even controlled anarchy. Its system management. proper system management. so figured I'd ask (which I did) to make sure I hadn't misread (which I had)
<shevy> wald0 ok so how I switch specifically, can you show the syntax?
<wald0> shevy: at the same time you can write a small script that switches "an entire environment with vars and ld_dirs" pointing to different places like those "rmv?" scripts
mlpinit has joined #ruby
<wald0> ddd: i not said "controlled anarchy" but "organized anarchy" :) meaning "well-structured"
<ddd> shevy you can only have 1 if using a pkg. you *can* install multiples iirc by changing the default install location in order to avoid pkg file overwrites. but that makes for one HELL of a messy pkg tree.
dorei has joined #ruby
<shevy> yeah I know that very well
<ddd> or you talking configure ; make ; make install?
<shevy> no
<shevy> I was asking wald0 how I can get appdirs on debian
<ddd> ah
<Fire-Dragon-DoL> well I found various packages in debian that do have issues installing
<wald0> shevy: using environment variables is an easy and realible way to switch an entire ecosystem/needs/libs/deps/apps/dependencies/actual-date/food-dog/anything
<Fire-Dragon-DoL> (even on wheezy)
<ddd> fire-dragon-dol yeah there are a few
<AntelopeSalad> does anyone know how i can get thor to list all of my commands when using namespaces?
<Fire-Dragon-DoL> I'm still waiting for a debian package "skype install" which will never come if I understood o.s. policies
<wald0> Fire-Dragon-DoL: did you have reported the bug to debian ?
<Fire-Dragon-DoL> wald0: no, few weeks later the entire o.s. exploded with a kernel panic
<shevy> Fire-Dragon-DoL don't they have something like inofficial contrib packages for things like skype?
<wald0> Fire-Dragon-DoL: not os-policies, skype-policies, they dont allow debian to do it
<ddd> fire-dragon-dol debian definitely has improved over the last few years in that regard. my problem is simply (though I understand why they take this route) older libs/pkgs. version wise
<wald0> Fire-Dragon-DoL: so then dont expect to be magically solved if nobody reports (and so know about it)
<Fire-Dragon-DoL> shevy: they have but the one I tried doesn't work xD
<ddd> but thats not debian's forte so I'm perfectly fine with their choice. Hard as hell to properly bug hunt when the versions are changing under you
m8 has joined #ruby
txdv has quit [Read error: Connection reset by peer]
<Fire-Dragon-DoL> wald0: mh? Doesn't ubuntu have it in its package manager?
<wald0> Fire-Dragon-DoL: btw i seriously doubt that you can have a kernel panic with using a pure debian system (not tainted kernel modules, or ndiswrapper, or strnage apps installed by your own, OH! and specially not-official repositories)
<ddd> wald0 now THAT i have to laugh at
<Fire-Dragon-DoL> ddd: yes that's same issue for debian, I must swap to an "unstable" branch but at that point you need more o.s. knowledge that you may want to have
<ddd> fire-dragon-dol true
<Fire-Dragon-DoL> that's the only big thing I complain about
txdv has joined #ruby
<ddd> same
mlpinit has quit [Ping timeout: 260 seconds]
<wald0> Fire-Dragon-DoL: idk about ubuntu, but there should be a reason in debian to not include it
<Fire-Dragon-DoL> AND another one: whatever software is not in package manager, you need a guide and debugging to install it
BrianJ_ has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
m8 has quit [Max SendQ exceeded]
<wald0> ddd: which thing ?
<ddd> fire-dragon-dol well thats ecosystem wide
<ddd> regardless of the distribution
m8 has joined #ruby
<ddd> wald0 that you doubt you can get a kernel panic with a pure debian system and their kernel
<Fire-Dragon-DoL> wald0: you can have a kernel panic with debian, you just need an SSD and debian wheezy
<ddd> I can get kernel panics *easily* on your defined system. All I have to do is install a single card its supposed to support (A 3ware raid card)
spider-mario has quit [Read error: Connection reset by peer]
<ddd> *easily* done
<Fire-Dragon-DoL> or just use debian on an ssd
<wald0> ddd: yes doubt, it is a very-very-very-very cases that only happens if you use non-official debian repos, tainted kernel modules, or a very strange and cheapo hardware
<Fire-Dragon-DoL> withouot updating kernel
<wald0> if we still talking of course about the stable branch of debian
aryaching has joined #ruby
<ddd> wald0 One word for you. Bullshit
<wald0> Fire-Dragon-DoL: im talking you from a ssd-laptop, all my machins has ssd and some mixed with mechanical disks
<wald0> ddd: demostrate it
<Fire-Dragon-DoL> there is a bug in linux kernel 3.2.something (if I'm not wrong it was that version) REPORTED
<wald0> ddd: htats my experience since more than 10 years using debian, no bullshit
<Fire-Dragon-DoL> which basically did something wrong with filesystem on ssds
<Fire-Dragon-DoL> wrong writes so files got corrupted
<wald0> linux-image-3.2.0-4-686-pae
<wald0> using it, Fire-Dragon-DoL
tonni has joined #ruby
<wald0> almost one year using it with my ssd, never had a problem
<Fire-Dragon-DoL> ...wrong files got corrupted (o.s. files) and kernel panic obtained
<wald0> Fire-Dragon-DoL: don't use ext filesystems, specially ext4
s_kilk has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
Sir_Funk has joined #ruby
<wald0> not mentioning experimental filesystems like btrfs
estebistec has joined #ruby
<ddd> wald0 Dude, I'm an ex Debian pkg maintainer and still upstream source. I've used Debian for years, and I've been using linux faithfully (as in as default OS) since kernel 1.0.8 (actually .7 but .8 was released the next day). I've been using Linux since SLS was first released. We can float pedigrees if you want, but its useless.
<littlebit> wald0: thank you for the quick answer,but will the be a conflict with ruby's "gem install" and debian's "apt-get install" ? Or will they work in harmony?
<wald0> maybe im fired if i said that but, my experience demostrates that the most-ever reliable filesystem is reiser3
<wald0> (and faster)
<ddd> hahahahahahahahahahahaha
ferr has joined #ruby
<ddd> ok, that kicks *me* out of the conversation
<wald0> ddd: not your experience aparently :)
<Fire-Dragon-DoL> wald0: yes how am I supposed to know such a thing when I'm installing debian (STABLE!!!) for the first time
cloud|nix has joined #ruby
<shevy> the only ironic thing here is that you guys ALL use debian :)
Zeroedge has joined #ruby
aerook has joined #ruby
<ddd> wald0 reisferfs has NEVER been a stable filesystem. Its maintenance tools were busted since day one. (Not to mention its author going nuts and killing his wife or some such)
<wald0> ddd: "very rare to have kernel panics" doesn't mean impossible, but there must be a reason if you had it
deepy has joined #ruby
deepy is now known as Guest32890
tonni_ has joined #ruby
<Fire-Dragon-DoL> shevy: I use debian because of suggestion and I'm too lazy to swap
tonni has quit [Read error: Connection reset by peer]
<wald0> Fire-Dragon-DoL: well, the installer gives you a choice, but debian guys decided to use ext* as default (i think that is set to default? not sure), right you are not supposed to know it unless you read some info about them
<Fire-Dragon-DoL> shevy: I had a LOT of issues with my pcs this year (3 hdd break, 1 ssd break, 2 motherboard fault)
<ddd> reiser has *never* been considered stable. it was a concept FS with a bunch of broken toolsets for working with it that are *still* busted
<Fire-Dragon-DoL> wald0: yes ext4 is default and ext3 is heavily discouraged
<Fire-Dragon-DoL> and I want some windows compatibility
<pontiki> my goodness. there are a whole bunch of men singing someplace...
<Fire-Dragon-DoL> so if an HDD explode, I can try to recover with both oses
yasushi has joined #ruby
<shevy> Fire-Dragon-DoL yeah, I had 2 failing hdds already this year, and it's only like 40 days old :( it is going to be a very stupid year
<wald0> ddd: author's life has no relation with source-code quality, and we cannot of course debate things that we don tknow, anyways: reiser3 was maintained by suse, is very old, tested, and very stable
<shevy> the year I mean
<shevy> the hdds are about 3 years old
<shevy> I do suspect purposely sloppy quality!
<Fire-Dragon-DoL> shevy: it's the issue with the rain in india =\ quality went down quite fast
<shevy> pontiki would you rather listen to a kids choir?
<AntelopeSalad> Fire-Dragon-DoL: have you thought about investing in a UPS?
<pontiki> no, i'm just awfully surprised i can hear it
<wald0> ddd: reiser3 uses checksumed inodes, which verify's the data integrity, also iirc ext* filesystems DELETES your data if they looks corrupted, reiser3 moves the inode reference to the old data (or something lke that? not sure)
<ddd> wald0 yeah, there was a reason. The 'pure debian system' with its released kernel didn't like the hardware. Debian was the *only* distribution release that *had* a problem witht he card. RHEL, OpenSuse, CentOS, and even my beloved FreeBSD (yeah not linux but shows other OSs work with it) had no issues with the card. It happens. ANY os can have issues
<Fire-Dragon-DoL> AntelopeSalad: I have it from APC, it's quite good
<pontiki> normally it's so quiet here
<shevy> all my hdds that failed had ext* something btw!
<pontiki> maybe someone has their tv turned way up or something
<ddd> no it does NOT delete the data. it ataches the inodes to lost+found
<lagweezle> shevy: What brand / model?
<ddd> are you *sure* you know linux?
<Fire-Dragon-DoL> AntelopeSalad: no power fault, they were all DOA (3 hdds) or DOA after ~30 days
<pontiki> what's happening on the olympics right now? maybe it's that
vlad_sta_ has quit [Remote host closed the connection]
<shevy> lagweezle, wheee lemme look ... one maxtor... one seagate (or samsung, not 100% sure)
<AntelopeSalad> Fire-Dragon-DoL: DOAs always stinks
<wald0> ddd: yeah sure, but again, i said "i doubt" (== very rare), which doesn't means "impossible"... ddd how much time ago you dont have played with windows lol
<shevy> pontiki dunno, they probably jump into snow naked and think it's awesome
vlad_starkov has joined #ruby
<wald0> jk
iMe_away is now known as iMe
<pontiki> some do....
<pontiki> crazy people
<ddd> wald0 I've dual booted for years. :shrug:
cisco has quit [Quit: Leaving.]
<Fire-Dragon-DoL> AntelopeSalad: yes problem is that when you buy 3TB hdds and you store load of data on them, it's still heavy to loose them after 30 days
<Fire-Dragon-DoL> AntelopeSalad: now I have 2x hdds and backed-up everything
<pontiki> or, get this: chop a hole in the ice on a lake and jump in
<Fire-Dragon-DoL> even my ass
<AntelopeSalad> i've seen power do some whacky things though, ever since i invested in a decent UPS and stopped buying low end power supplies i've never had a component die
<pontiki> they do that by the 1000s here
<wald0> ddd: being sarcastic, what's the difference between attaching the data to lost+found and removing it? lol
<shevy> pontiki now that sounds crazy
<ddd> wald0 really??
<shevy> why would anyone want to do that?
<pontiki> ikr??
Wolland has joined #ruby
<ddd> wald0 umm. one word. recovery
<pontiki> my brother and my nephew
<pontiki> i am related to insane people
<ddd> pontiki hehe welcome to my world
aryaching has joined #ruby
<pontiki> makes my own insanity appear rather normal, i think
<shevy> hehe
<wald0> ddd: iirc, lost+found is a bunch of dirs of files without even a name where you are supposed to know them and that you can know how to search for them on that dir (things should be more user-friendly, imho)
<pontiki> i grew up here, but i don't belong here
<shevy> yeah
RaCx has quit [Ping timeout: 245 seconds]
<Fire-Dragon-DoL> AntelopeSalad: my power supplier is a corsair silver 850 (or 750 don't remember) and costed like 120 € so it's not a power issue, unless I'm really unlucky
<shevy> it's how I relate to that word myself often
<shevy> family
<pontiki> give me an ocean, at least a coast, any day
<ddd> pontiki I am crazy, not stupid. I prefer crazy. Normalcy is for the weak. its the only thing they know how to handle. I prefer insanity. Means my day is going to be slightly different. Different is good :)
<AntelopeSalad> Fire-Dragon-DoL: it's likely good
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<wald0> ddd: if my FS commits every 5 min to the HD and i had a forced-shutdown, i would better have an 5-min old version of my file than a removed file (even if is moved to some misterious place where normal users dont even know aboutf
RaCx has joined #ruby
<ddd> wald0 dude, this is about recovery, NOT about user-friendliness. if your FS is so degraded that you have lost+found usage, you have FAR bigger problems than 'user friendliness'
<Fire-Dragon-DoL> AntelopeSalad: I must admit recently I had some minor power issues but my hdds are fine right now. I still don't know if it's a power issue or whatever other hw related
<ddd> wald0 and ext3,4 all provide for that
<wald0> ddd: are you expected that all the users of linux* that want to go out of windows should be admin users ? :)
<ddd> that is *exactly* what journaling helps mitigate. its why it came into being in the first place
<ddd> wald0 I expect that if you're going to run an OS, you educate yourself on how to use it.
<wald0> ddd: well, in my personal experience i never had serious problems with my data and forced shutdowns (i had a lot of them in the past) with reiser3
<pontiki> ddd: one person's insanity is another person's stupidity
thesheff17 has quit [Ping timeout: 260 seconds]
<shevy> one person's money is my money!
<Fire-Dragon-DoL> no I expect them not to be admin user, even if I'm a programmer I always complain that I must use console too much under debian
<ddd> if you want windows use windows. if you really need the OS to do THAT much for you, ANY other OS is useless.
bthesorceror has joined #ruby
<Fire-Dragon-DoL> 90% of my time is spent in console, sigh
<ddd> pontiki lol true true
<shevy> Fire-Dragon-DoL use ubuntu!
<Fire-Dragon-DoL> shevy: if I find time to reinstall
<shevy> hehe
<AntelopeSalad> firefly2013: yeah i dunno, i think losing that many HDs that quickly is unbelievably bad luck
<shevy> Fire-Dragon-DoL break something critical
OdNairy has joined #ruby
<ddd> fire-dragon-dol hehe I live in konsole :)
<wald0> ddd: real world, my mother dont want to read my nice unix book, she things that dont understand anything from it and says that she only want to read his email and manage its photo-camera album
<Fire-Dragon-DoL> shevy: no please xD
<shevy> Fire-Dragon-DoL then reinstalling will have to happen :)
yasushi has quit [Remote host closed the connection]
<shevy> it's how I change my OS!
<shevy> when I break something so much that I must reinstall
<Fire-Dragon-DoL> ddd: yea but I don't like it that much
<dachi> shevy hi, can I know linux distro do you use or like because I'm debian user too :|
<shevy> like glibc upgrades
<ddd> wald0 My wife is probably one of the most NON technical people you'll ever meet. She uses Linux just fine
<Fire-Dragon-DoL> ddd: I mean, it's powreful but there are some tasks where it's needed and I really don't like it
<shevy> dachi my current system is based on slackware but only because it gave me the fewest problems. about 98% of what I use right now is self-compiled, only kernel and glibc not (yet)
<Fire-Dragon-DoL> well if you ONLY need to do "usual business" linux is ok
<ddd> fire-dragon-dol ahh I tried like using RubyMine over vim, and always find myself back to konsole + tmux + tmuxinator + vim + scripts
<shevy> dachi hmm and probably coreutils and binutils not yet, it's still rather fresh install here (~3 or 4 days old)
Wolland has quit [Ping timeout: 260 seconds]
sparrovv has quit [Remote host closed the connection]
<Fire-Dragon-DoL> ddd: I tried ruby mine, don't kill me, i consider it crap
<shevy> one of the first things I usually do is ... recompile ruby
<wald0> ddd: anyways, "normal" dont eve know what is a terminal, they just see buttons and they click to them (that's what the GUI's are meant to be for!), real world is that we can enjoy doing admin things, but normal ppl dont give a sh...
<Fire-Dragon-DoL> shevy: rvm does it for me xD
<dachi> shevy thanks
<ddd> fire-dragon-dol I sort of like it, but I admit its hard to use. it's keystrokes are weird, it's memory usage is huge, and to me its overkill
<shevy> everyone is using debian, it's amazing
<shevy> even matz is using debian
<Fire-Dragon-DoL> wald0: man, why can't I have an UI even if I'm a sysadmin? I do prefer input to be suggested instead of digging through web for correct params xD
aryaching has quit [Ping timeout: 272 seconds]
<Fire-Dragon-DoL> ddd: I use sublime (I want to swap to vim but I didn't find time to learn vim, sigh)
<Fire-Dragon-DoL> ddd: BUT I will use windowed vim, I want all colors
<ddd> wald0 amazing how my wife hasn't clue one on how to admin linux yet she uses it every single day for both business and pleasure with little to no problems (depends on the day and what she's doing of course)
<ddd> fire-dragon-dol hehe I probably use less than 1/4 of the commands or capabilities of vim
<Fire-Dragon-DoL> ddd: and I do like the kde window manager (with "rules" and such things) so I think handling it in window + yakuake is enough for me
enape_101 has joined #ruby
littlebit has quit [Quit: littlebit]
<shevy> use widowed vim?
<wald0> ddd: and this is good, but what if your wife has a forced shutdown and files moved to lost+found ? is not better to just have an old copy of these files "out of the box" instead ?
<ddd> you can get an aweful lot done with just the absolutely basic minimum of vim knowledge
<Fire-Dragon-DoL> ddd: yea but you know, vim is the only editor that if you give it to a user he have hard times typing even a single letter
<ddd> wald0 dude, this is basic maintenance. this is how unix works. unless you have a backup, not even windows does that for you
<ddd> so your point is moot
<Fire-Dragon-DoL> shevy: gvim I think it's called
<shevy> that is the widowed version of vim?
<ddd> fire-dragon-dol hehe ok, i can't argue against that :)
<ddd> shevy yeah
<Fire-Dragon-DoL> ddd: vim is the only editor I closed because I thought it was bugged when I didn't manage to write a letter
<Fire-Dragon-DoL> so really vim is a very hostile software
<Fire-Dragon-DoL> lol
dachi has quit [Quit: ...]
mgberlin has joined #ruby
<ddd> gvim is built against the gnome libs, and provides a windowed version of vim
<shevy> as long as nano is available as well
<ddd> basically just vim in a bordered window
claymore has quit [Ping timeout: 248 seconds]
<ddd> fire-dragon-dol hehe
<wald0> shevy: you may want to use plan9 instead :)
<Fire-Dragon-DoL> ddd: this happened a lot of time ago, now I do appreciate vim and I want to use it
lyanchih_ has quit [Quit: lyanchih_]
<Fire-Dragon-DoL> ddd: but I need some training
<Fire-Dragon-DoL> nano it's fine
<Fire-Dragon-DoL> I think it must be default editor for shell, not vim
<shevy> with vim I only try to use the minimum and ignore the rest
<Fire-Dragon-DoL> (or vi)
aerook has quit [Ping timeout: 245 seconds]
<wald0> ddd: not sure to get your point, so you mean that is better to have it moved to lost+found instead of a backup of 5-minutes ago ?
<ddd> fire-dragon-dol good stuff. i admit its hostile. I've used vi/vim for freakin YEARS and I STILL don't know a whole lot of the advanced commands.
<Fire-Dragon-DoL> who's the crazy guy who set vi as default editor
<wald0> ddd: i mean, for the normal end-user (admins can pick their most manually-i-do-everything) choices
<ddd> vi is the one that i find truly hostile
<ddd> vim is a definite improvement
Qodosh has quit [Read error: Operation timed out]
<ddd> wald0 umm, most admins don't have the TIME to do everything manually.
<wald0> ddd: not even shevy that want to :)
mlpinit has joined #ruby
claymore has joined #ruby
<ddd> we control too many machines. We use all the same stuff that end users do, a few GUI based admin tools as well. Its only when the GUI toolsets fail that most of us go to the commandline or when we have to script out stuff
pu22l3r has joined #ruby
<shevy> wald0 yeah, I use ruby to automate everything
<ddd> shevy which is perfectly acceptable. i'd even say preferred
<Fire-Dragon-DoL> same here
<Fire-Dragon-DoL> I have to check bash syntax
<Fire-Dragon-DoL> every time I need to build an if
daxroc has joined #ruby
<ddd> you using the Session gem?
<Fire-Dragon-DoL> me?
<ddd> yeah
<Fire-Dragon-DoL> no I have no idea what Session gem is
<ddd> oh. bash shell access via gem
max96at has quit [Ping timeout: 260 seconds]
<ddd> great for launching commands in subshells, capturing the environment and other changes, then using ruby to manipulate
<Fire-Dragon-DoL> cool
<Fire-Dragon-DoL> oh COOL
<Fire-Dragon-DoL> I used
<Fire-Dragon-DoL> something similar
<Fire-Dragon-DoL> let me check
tjr9898 has joined #ruby
<ddd> i started DTF using the session gem. I've since found other cleaner ways to do things in ruby without having to resort to launching sessions and stuff, but its definitely valuable
<Fire-Dragon-DoL> ddd: I used shell/executer gem
<ddd> my first iteration of DTF used the session gem to launch sessions, then capture all data, then used Marshaling to replay, etc.
max96at has joined #ruby
<Fire-Dragon-DoL> sounds really nice by the way, ruby is great as a script language °°
<Fire-Dragon-DoL> I use it even on windows
<ddd> checking it out
<Fire-Dragon-DoL> ddd: I think it does the same, you don't really need it
daxroc has quit [Ping timeout: 248 seconds]
<AntelopeSalad> you should look into thor Fire-Dragon-DoL
<Fire-Dragon-DoL> AntelopeSalad: I use thor, that was an addition
<ddd> yeah its very similar to session gem
thesheff17 has joined #ruby
<Fire-Dragon-DoL> AntelopeSalad: I had to run some C executables
<ddd> but it has cleaner syntax i think based off a fast perusal of that page
AlSquirrel has joined #ruby
<AntelopeSalad> i've been using it recently, it's so nice
<Fire-Dragon-DoL> yes it's lovely
sergicles has quit [Quit: sergicles]
<Fire-Dragon-DoL> I also tried some Ruby C
<Fire-Dragon-DoL> it's horrible but it's not complex
carif_ has joined #ruby
Guest32890 has quit [Ping timeout: 250 seconds]
[krisbulman] is now known as krisbulman
<ddd> i've messed with thor. I like it. Got into it after reading Building Awesome Command-Line Applications in Ruby ebook
carif has quit [Ping timeout: 246 seconds]
<AntelopeSalad> i've been using it recently to write a few command line tools, really enjoying it
<Fire-Dragon-DoL> anyway even if I use debian I want to spend some time to remember everyone that you can actually use windows as a development o.s., it's not that terrible but needs a lot of tweaks (much more than other oses) but can be ok
chrisseaton has quit []
aryaching has joined #ruby
<Fire-Dragon-DoL> following softwares are required: cygwin (or mingw), Console2, Autohotkey (all mentioned softwares are free or open)
<ddd> my other big issue with Windows is the linefeed differences, so many tweaks to get it right (as you mentioned) and I really don't like windows as a non-windows dev tool
animehti has joined #ruby
<Fire-Dragon-DoL> well I don't like windows as a windows-dev-tool too
<Fire-Dragon-DoL> because visual studio is so heavy
<ddd> i do. I like MS's VS 2013 definitely.
<Fire-Dragon-DoL> never tried
<animehti> Hello fellow programmers, can you guys tell me why these canons/code were created by the ACM? Thank you. https://www.acm.org/about/code-of-ethics
<Fire-Dragon-DoL> last time I tried was 2010 and was too heavy
<ddd> 2012/2013 are really nice as far as IDEs go
pierre1__ has joined #ruby
<Fire-Dragon-DoL> (i loved visual studio some times ago)
<Fire-Dragon-DoL> but missing console commands and such are actually a big issue in windows
<Fire-Dragon-DoL> and most of all
<Fire-Dragon-DoL> the backslash in path
<Fire-Dragon-DoL> that creates an insane layer of incompatibilities xD
ferr has quit [Read error: Connection reset by peer]
<wald0> ddd: crap, im researching since days (from time to time) about ruby + shell/bash and I never heard about session before!
<ddd> animehti because its *the* premiere occupational association to have membership in. Members are expected to follow a code of ethics which helps to improve our occupation, not hurt it
<wald0> ddd: readed about thor, mixlib-* ones, methadone, etc... and i thought that i checked all of them
<wald0> ddd: researching specially for gems available from apt-get
<Fire-Dragon-DoL> thor is the way to go
<Fire-Dragon-DoL> because it's used internally in rails
<Fire-Dragon-DoL> and rails is adopted by too many programmers
<ddd> wald0 I will not use the OS's ruby
<AntelopeSalad> the only problem i have with thor is you can't install a remote script
<Fire-Dragon-DoL> not to use it xD
einarj has joined #ruby
marr has joined #ruby
<AntelopeSalad> you could, but it requires downloading it with wget/curl first
<Fire-Dragon-DoL> AntelopeSalad: mhhh what you mean?
<AntelopeSalad> like let's say i want to share a thor script with you
<wald0> ddd: but i would like to package my ruby apps that will simply works with dpkg installing it
<AntelopeSalad> i can't just tell you to do: thor install <url> like i can with a rails template
<AntelopeSalad> i would have to give you some 1 liner that curls the file, thor installs it, then deletes the original file
<ddd> wald0 specialized case. not the norm. expect bumps, as always, when doing non standard things. even in the ruby community thats non-standard
<Fire-Dragon-DoL> AntelopeSalad: can't you say gem install yourgem and run blablah?
troyready has joined #ruby
sparrovv has joined #ruby
<Fire-Dragon-DoL> AntelopeSalad: ah you want to run the script from remote
<wald0> ddd: im more debian-standard than ruby-standard :)
<AntelopeSalad> Fire-Dragon-DoL: yeah
tongcx has joined #ruby
<ddd> so your 'would like' is just that. a personal wish, and something not a norm for either the OS (considering the backend technology), or for the language used
<Fire-Dragon-DoL> AntelopeSalad: I think you can make a gem that does it in like 1 seconds
<Fire-Dragon-DoL> second*
<ddd> wald0 your fault
animehti has quit [Ping timeout: 245 seconds]
<AntelopeSalad> i've actually never made a gem before
<wald0> ddd: s/fault/case/
<ddd> antelopesalad easy peasy
<tongcx> hi guys, when i use 'after' in sinatra to modify the response body, it doesn't work, the response don't change, why?
<Fire-Dragon-DoL> AntelopeSalad: it's more stupid that you can think of but there are a few gotchas
<ddd> wald0 s/case/fault/
<wald0> ddd: nothing wrong, i assume
<AntelopeSalad> might be worth it because i noticed you can't version thor scripts (AFAIK)
<AntelopeSalad> but a gem would solve that problem too
<ddd> i said what i mean and mean what i say
<Fire-Dragon-DoL> AntelopeSalad: the main point is: bundle gem gem_name
asmodlol has quit [Remote host closed the connection]
<wald0> ddd: do you mean that i should distribute my ruby app for debian machines using gem/something instead of dpkg ?
<ddd> what *exactly* is so 'debian machines' specific that you *have* to use dpkg rather than the norm of gems for ruby stuff/
mgberlin has quit [Quit: mgberlin]
evilbug has joined #ruby
<Fire-Dragon-DoL> AntelopeSalad: you can even make a gem fork of thor (github) and make a pull request
lyanchih_ has joined #ruby
<ddd> i'd wager money anything you are saying is 'debian specific' can *easily* be coded to work on *any* linux machine
<Fire-Dragon-DoL> yea that's a good point
<AntelopeSalad> Fire-Dragon-DoL: maybe, but one thing about the normal ver of thor is you already have it if you have rails
<ddd> i mean if you absolutely positively HAVE to have debian packages, then use debianize gem
<AntelopeSalad> i think i might go the gem route, it can't be that hard
troyready has quit [Max SendQ exceeded]
<AntelopeSalad> or there wouldn't be that many gems available hah
pasties has quit [Ping timeout: 252 seconds]
<ddd> but i'd wager real cash that unless you are *specifically* manipulating the dpkg cache, installed pkg list, etc your script could be rewritten to work on *any* linux (and probably most of the BSDs too)
troyready has joined #ruby
<wald0> ddd: local machines running debian wheezy all of them
<ddd> wald0 and?
<wald0> better to use dpkg myapp
<wald0> well, apt
<wald0> packaged, ready to use, dealing with dependencies, etc
<ddd> the fact they're running wheezy means crapall. this is *specifically* why we have the /usr/local portion of the tree
<wald0> gem/bundle install looks more hacking to me, without the same reliability/stability (well, maybe im wrong, it just looks for me much better to use dpkg)
pasties has joined #ruby
<ddd> the only deps you have to worry about are extremely basic
<AntelopeSalad> dgkgs have some uses i think, imagine if your entire rails app was wrapped up as a pretty package that you could get apt install
<wald0> dpkg == better controlled, managed, ddeppendencies, overwritten files, etc
<wald0> gem2deb && dpkg -i
<Fire-Dragon-DoL> AntelopeSalad: that's true but if they accept your pull request it will work :O
<wald0> better integration with the OS, no needed to manally install/do-anything
<tongcx> hi guys, can anyone tell me why the code doens't work? http://pastebin.com/Kg5JWcJE
<wald0> Fire-Dragon-DoL: development enviroment VS user enviroment
claymore has quit [Ping timeout: 248 seconds]
<ddd> wald0 how exactly does it give you better control? you *still* have to define your deps, just as you do for a gem, *still* have to ensure debian/rules knows how to manage file overwrites, deps etc, *exactly* as you have to with gems
<wald0> ddd: maybe becuase im not much familiariezed with gem/ruby, and apt is a "single one stuff", so installing new machines just include the package
<ddd> only difference is dpkg is centralized, and gems are by default not centralized (other than grabbing from upstream repos)
<ddd> ahh so we come to the ACTUAL crux of the issue. YOUR skill level
<ddd> and your apt is single-one-stuff can just as easily be done in ruby with gems as it is using apt/dpkg
<wald0> ddd: what about using ruby-* packages on debian wheezy VS manually install gems? they are not meant to be more stable and better integrated with the other ruby* related things of the debian OS ?
<ddd> :shrug: so I see no real case-supporting evidence from what you've said so far
claymore has joined #ruby
yxhuvud has joined #ruby
<ddd> nope. they're just split up more to make it easier for the individual pkg maintainers, and because debian thinks ruby should be more split up than it is
<wald0> ddd: are you saying that all the packages of ruby-* in the debian repos are useless?
<ddd> has nothing to do with being more stable OR better integrated
* wald0 confused
<ddd> wald0 yeah cause that is SO what I said. (NOT)
wallerdev has joined #ruby
<ddd> wald0 there are far more ruby packages that comprise ruby overall under debian than there needs to be
<ddd> they basically chunked the hell out of ruby for no real reason
<shevy> :)
<ddd> they did it because they could and because they wanted to. there is no reason to split out ruby into so many packages like debian has.
<ddd> the way debian has
matchaw has quit [Remote host closed the connection]
<ddd> you throw 'stability and better integration' at me, and I'ma REALLY laugh
x77686d has joined #ruby
tibounise has joined #ruby
<wald0> ddd: i dont get your point, dpkg & debian is meant to be "a single location for the entire OS and their software", you can "apt-get install" all the software that you need/want, this is the idea, you want to remove the possibility to install ruby software just because you think that is better to do it in another "more ruby" way ?
<wald0> what's the goal to have dpkg/apt then ? if is not the centralized location of all the OS software/files/structure?
<Fire-Dragon-DoL> I'm not an experienced user but while apt-get is meant to be a single location for the entire OS and their software, it is not, at all xD
matchaw has joined #ruby
meatherly has joined #ruby
<wald0> when you deboostrap/install a debian system, you need to give a user-manual to the user saying "oh btw, if you want to isntall ruby apps we dont have it, you need to use gem/bundle so please read their respective manuals"
<Fire-Dragon-DoL> 70% of software (not libraries) are installed by download and compile or by download and install following guides
<wald0> ?
<ddd> wald0 dude, debian is *notorious* for chunking up software into 5 or 6 packages for no real reason other than "we can work on XYZ separately"
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<ddd> their division line for chunking is seriously lacking
<Fire-Dragon-DoL> wald0: doesn't debian have rubygem packaged toghether in the ruby package? I'm sure it does
wildroman2 has joined #ruby
<wald0> Fire-Dragon-DoL: all my computers doesn't use anything else than debian packages, i dont compile things that i need, i just apt-get them, compile is a bunch of time and hole of time lost
carif_ has quit [Ping timeout: 246 seconds]
* ddd snickers and walks away to do something useful.
<wald0> Fire-Dragon-DoL: yes, but seems like ddd is telling me that this is useless and bad
<wald0> so im confused
zoscoy has joined #ruby
brennanMKE has joined #ruby
itadder has joined #ruby
angusiguess has joined #ruby
<itadder> hi
<itadder> I did gem install davclient
<Fire-Dragon-DoL> wald0: I don't know how you handle it but node (not last version) ruby, have 3 version, jruby same, sublime text not available in package, skype same, chrome not available in package (or didn't work? Or had to add another repository, I don't remember), teamspeak same, I mean... I would love to have everything there, but it's not true the right moment they say they want only open source things in package manager
<itadder> but when I try to run dav I get this
<itadder> "System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- hpricot (LoadError)"
<Fire-Dragon-DoL> itadder: I suppose you need the c binding
<ddd> no, what I'm saying is Debian needlessly adds complexity that wasn't there before, and that relying on the package manager for the OS for *everything* you want to install (to include forcing the pkg manager of YOUR choice on something that already HAS its OWN manager and ways of doing things JUST so YOU can rely on the OS'S pkg manager is nuts
<itadder> oh I need gcc
shivshnkr has joined #ruby
chrisan has quit [Remote host closed the connection]
<ddd> )
<Fire-Dragon-DoL> itadder: dunno, I have a package named libhpricot-ruby, I suppose it's ok
meatherly has quit [Ping timeout: 260 seconds]
<wald0> Fire-Dragon-DoL: authors of skype/sublime/etc dont allow debian to include it, is not a debian issue but an issue from the authors of this software
<itadder> I am using default ruby bulit in to mavericks
<wald0> wlel, not issue, their license/rules
<shivshnkr> i am not able to use a gem behind proxy
<itadder> shivshnkr: that sucks
<Fire-Dragon-DoL> itadder: I have no idea how mac works, sorry =S
<shivshnkr> where do i need to specify proxy setting?
<itadder> why do you have proy
<itadder> proxy
<shivshnkr> itadder: college
<itadder> ahh
<Fire-Dragon-DoL> wald0: well that's because you watch it from the other side. Considering Ubuntu has skype in repositories I'm quite sure the licensing issue is with debian
<shivshnkr> itadder: college people don't allow direct connections
<itadder> what a way to to shutdown creativity
pdtpatrick has quit [Quit: pdtpatrick]
krisbulman is now known as [krisbulman]
claymore has quit [Ping timeout: 246 seconds]
<wald0> ddd: but if you remove that "complexity", you dont have anymore ruby apps/libs in debian ecosystem/repos anymore
yourmysin has quit [Ping timeout: 265 seconds]
<itadder> skype is not free as in beer
<wald0> software management in deiban uses a centralized point called apt/dpkg
<ddd> Not to mention there is a CRAPLOAD of software that A) Debian doesn't believe should be included directly (file formats, music formats, different browers, etc) all of which are determined by their OWN project policies that have no impact on the software other than being forced-excluded from the core packages of the OS, and B) that there IS software out there that people use *everyday* that Debian won't accept and make available ...
<ddd> ... forcing usage of external non-core repositories
claymore has joined #ruby
claymore has quit [Changing host]
claymore has joined #ruby
<ddd> wald0 I know exactly what debian uses, all the way down to the debian/rules file from which all packages are generated
Kricir has joined #ruby
<ddd> and your comment that if you remove the complexity you don't have anymore ruby apps/libs in the repos is ludicrous
<itadder> is apt written in perl
<itadder> or C
<Fire-Dragon-DoL> I don't know but for the moment, apt-get has proven useful for c libraries, for software, usually I can't install it through repository
<ddd> its in C++
<wald0> ddd: so how i should apt-get install ruby-niceapp instead, on such case?
<itadder> ahh wow
<itadder> gem
<itadder> gem install
<wald0> but i want to use apt-get, this is the purpose of apt in the end :)
<wald0> not "want", is the centralized location of install it
<Fire-Dragon-DoL> wald0: can't you run an install script at the end of your package install?
<ddd> wald0 again, your arbitrarily forcing *ruby* to conform to *your* chosen package manager. and making it out to be *ruby's* fault which it is anything but
dorei has quit [Remote host closed the connection]
<ddd> s/your/you're/
Kricir has quit [Remote host closed the connection]
<itadder> ddd: hmm
<itadder> Fire-Dragon-DoL: you probally can
<wald0> Fire-Dragon-DoL: if that install is not entirely from a static version on the repositories, you cannot report bugs to THAT version, or you cannot download if hte link is down, etc..
<ddd> ruby has a 'pkg manager' its called gem
bthesorceror has quit [Remote host closed the connection]
Kricir has joined #ruby
<itadder> just create a wrapper in apt install that runs a script that uses gem install
<shivshnkr> itadder: how to make it work?
<wald0> Fire-Dragon-DoL: or a version installed in different time than other ones can be broken or have bugs not found in other ones
<ddd> and you can have all of that with apt/dpkg as well
<Fire-Dragon-DoL> wald0: but you can specify some specific ruby gems version so bugs won't change
<ddd> THAT is *specifically* a quality-of-application-and-packaging issue. NOT a ruby gem vs. pkg manager issue
<Fire-Dragon-DoL> wald0: as I said, for me, just run bundle install automatically at the end of your debian package
<ddd> you're convoluting it
<wald0> anyways
<wald0> this convo not goes anywhere productive
St_Marx has quit [Quit: Ex-Chat]
`petey` has joined #ruby
<shivshnkr> itadder: my proxy issue, i don't get an answer on stackoverflow too
MyStartx has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
xlogic has quit [Remote host closed the connection]
cloud|nix has quit [Read error: Operation timed out]
<ddd> it has to have a productive start for it to go anywhere. your criteria isn't
mykeus has joined #ruby
wald0 has quit [Quit: leaving]
senayar has quit []
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shivshnkr> itadder: there?
heftig has quit [Quit: Quitting]
dachi has joined #ruby
mykeus has quit [K-Lined]
<itadder> bye
<itadder> I have to go
Hanmac has joined #ruby
itadder has quit [Remote host closed the connection]
<AntelopeSalad> ddd: you seem to have a lot of sys admin experience, would it be totally unacceptable for a random script to clear your screen?
Wolland has joined #ruby
echevemaster has quit [Ping timeout: 264 seconds]
Hanmac1 has quit [Ping timeout: 272 seconds]
<ddd> depends on what it was doing when it wiped, or what was previously on the screen. most install pkgs wont because there could be critical info on the screen.
<ddd> i'm heavily against it for that reason
lyanchih_ has quit [Ping timeout: 245 seconds]
<AntelopeSalad> ddd: assume it dumps out 200-250 lines of text, nothing critical was output but it could be mildly interesting to someone
<AntelopeSalad> but at the very bottom it outputs instructions to do something, i wanted those instructions to be front and center
<ddd> i'd log it instead and refer the admin/user to the log file.
<AntelopeSalad> the output of the script is also useless
<AntelopeSalad> it's only reporting the steps it did (thor stuff)
<shevy> hmm I am filling two different sql databases with INSERT statements
<shevy> right now I work one after the other. first one gets finished, then the second one gets finished
<shevy> would using Threads be an improvement?
Zeroedge has quit []
mgberlin has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
<jhass> depends a bit on your target db but I think so
saarinen has joined #ruby
<AntelopeSalad> ddd: also if it helps, at the point where the clear occurs it is a guaranteed success that the script finished
<jhass> shevy: doing it from separate connections can help too
troyready has quit [Ping timeout: 252 seconds]
<ddd> antelopesalad never rely on that. always rely on the exit code
ninjapig has quit [Quit: Leaving.]
<AntelopeSalad> basically it's a thor task that calls 6 other tasks, the clear/instructions happen once all 6 finish successfully
chihhsin has quit [Quit: leaving]
<ddd> admins look far more for exit codes than for something like a screen wipe. (also you can't change commands based on a wipe ;) )
<AntelopeSalad> but then i thought about how crazy it is to clear someone's terminal without their permission
intuxicated_ has joined #ruby
<ddd> just redir the output to a log file, and puts/print(f) only needed info
habanany has joined #ruby
<ddd> yeah a LOT of people, especially admins, won't like that
<AntelopeSalad> my use case is so insane i don't think anything exists to do what i want
<AntelopeSalad> imagine this scenario... thor task #1 runs and outputs a few instructions , thor task #2 runs and outputs a few instructions
chihhsin has joined #ruby
<AntelopeSalad> now imagine thor task #3 is composed of running #1/#2 and you want different instructions reported
<AntelopeSalad> so the end game here is not to see the instructions written by #1/#2 if you ran task #3
<AntelopeSalad> i would need to like... somehow clip off the last xyz lines of the terminal buffer, is that even possible?
<ddd> just mes around with $stdout and $stderr as you need
<ddd> s/mes\ /mess\ /
<AntelopeSalad> the easy solution was to just clear the screen and output the custom task #3 instructions
Hanmac has quit [Ping timeout: 246 seconds]
<ddd> i'm looking at this as like a shell script would act. there's a freakin boatload of ways to do stuff in ruby so, i'd capture all output to a log, then explicitly print out only what i wanted/needed, and definitely would *not* wipe the user's screen
<AntelopeSalad> it's not as easy as that because task #1/2 aren't scripts that i control
Hanmac has joined #ruby
<ddd> you can control their output, parse it, etc if they're part of your process tree
claymore has quit [Ping timeout: 245 seconds]
browndawg has quit [Ping timeout: 252 seconds]
<ddd> you can override all of their output since they're sub-processes/tasks
mikepack has joined #ruby
<ddd> if that wasn't true then ruby itself (and parts of itself) could/.would completely ignore any Logger changes etc
<ddd> and since we know it doesn't ignore your overrides, there's your proof-in-the-pudding so to speak
<AntelopeSalad> i don't even know what to google for, it's basically "how to remove specific lines from stdout"
habanany1 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<ddd> you have to read the $stdout and do preprocessing with maybe an 'if' or even a 'case' etc
<AntelopeSalad> it would be like altering time, replacing some third party's stdout with empty lines
claymore has joined #ruby
<ddd> yeah but if you're *that* intent on making it disappear, you gotta do leg work ;)
<ddd> goes with the territory hehe
<ddd> (no insult meant)
habanany has quit [Read error: Connection reset by peer]
<AntelopeSalad> yeah i know
tongcx has quit [Quit: leaving]
<AntelopeSalad> just not sure where to begin, maybe i should ask in #linux?
vlad_starkov has quit [Remote host closed the connection]
<shivshnkr> AntelopeSalad: how to resolve proxy issue for a gem
<AntelopeSalad> shivshnkr: wrong auto-nick complete :D
<ddd> antelopesalad code me and give me a better idea
<AntelopeSalad> k, let me prepare a toy thor example
<AntelopeSalad> i'll gist it in ~2min
kayamm has quit [Quit: QUIT]
bklane has joined #ruby
<ddd> ok
gregf has joined #ruby
cisco has joined #ruby
cisco has quit [Max SendQ exceeded]
noop has quit [Ping timeout: 245 seconds]
<shivshnkr> AntelopeSalad: ya
noop has joined #ruby
DouweM has joined #ruby
Hobogrammer_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<shivshnkr> AntelopeSalad: stackoverflow doesn't help me, where to ask
Hobogrammer_ has joined #ruby
<shevy> IRC
kenndel_ has joined #ruby
nari has quit [Ping timeout: 252 seconds]
<AntelopeSalad> ddd: if you are familiar with thor, the bar/baz methods just use 'run' with capture: true so it writes the output to stdout
<ddd> antelopesalad I would wrap $stdout.readline and check for what you don't want, puts nil or something for those lines, then output what you do want
<AntelopeSalad> run is just a normal thor command (that's why i pulled in Actions, i just removed it from this toy example)
<ddd> antelopesalad yeah but you can trap stdout via $stdout
<ddd> or via a logger
claymore has quit [Ping timeout: 260 seconds]
strg has joined #ruby
strg has left #ruby [#ruby]
kenndel has quit [Ping timeout: 265 seconds]
<ddd> YOUR script can define a Logger.new in conjunction and then do with it as you normally would
p8952 has quit [Quit: Leaving]
<ddd> hell you can get as granular as #readchar if you needed :)
<AntelopeSalad> would i be doing this crazyness inside the bar and baz methods?
<AntelopeSalad> since i basically want to strip out their instructions and write my own instead in qux
<ddd> if you know how far in this info is (like down to the line) you could $stdout.seek
browndawg has joined #ruby
claymore has joined #ruby
<ddd> hmm, you'd have to do it in qux for sure, I'd wrap bar and baz if you wanted to handle them individually
<AntelopeSalad> if each of those scripts complete successfully the line count is the same every time you run it
<ddd> then wrap, #seek, and puts
VTLob has joined #ruby
<AntelopeSalad> ok, so basically i just need to research the crap out of $stdout?
<ddd> i'd even go so far as to begin/rescue/end if there's a high potential for errors. but also bear in mind that $stderr would have *that* particular info
<ddd> yeah $std(in|out|err)
<AntelopeSalad> i don't even know what a dollar sign method is in ruby haha
<AntelopeSalad> maybe a global?
<ddd> yeah
MyStartx has quit [Read error: Connection reset by peer]
<ddd> those are all definitely global vars
workmad3 has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
einarj has quit [Remote host closed the connection]
<ddd> you can do a logger = Logger.new(STDOUT) (capturing stdout and wrapping it with Logger) and then work with logger instead
<ddd> see ri Logger for more details
pfg has joined #ruby
<AntelopeSalad> ok
ninjapig has joined #ruby
<AntelopeSalad> thanks
enape_101 has quit [Ping timeout: 265 seconds]
<ddd> not a problem
ninjapig is now known as Guest91591
<ddd> hopefully gave enough food for thought
<ddd> \0~1~ \
<AntelopeSalad> it's one of those situations where having both the previous and new instructions at once would be ridiculously confusing to the user
<ddd> sorry, got bacon grease on the keys. had to wipe hehe
Guest91591 has left #ruby [#ruby]
<ddd> yeah, i see *why* you're doing it. just there's many ways *to* do what you want
<ddd> :)
estebistec has quit [Remote host closed the connection]
Chepra has joined #ruby
<ddd> now, Logger is part of ruby core. log4r is another I've seen used heavily, so you might want to investigate that as well.
estebistec has joined #ruby
pfg has quit [Client Quit]
<Chepra> Hi! Can you recommend some toolkits / libraries for writing ruby cli applications?
<ddd> ruby itself by default lends itself to cli
<shevy> Chepra you won't need any really
<shevy> Chepra input given to a .rb script is stored in ARGV
<AntelopeSalad> there's always thor for that too hah
<ddd> so anything in ruby core or stdlib should work perfectly fine. we were discussing thor earlier as well.
<platzhirsch> ddd: I didn't like his second movie so much
<ddd> ARGV and ARGF become your friends when writing CLI apps. Along with Logger and $std(in|out|err) as we were just discussing hehe
<dachi> rvm
<dachi> sorry
<ddd> platzhirsch hehe I liked the first, and which ever it was where he and loki joined forces.
<dachi> i was searching
arietis has joined #ruby
ndrei has quit [Quit: Lost terminal]
<Chepra> shevy: Yeah, I am looking for simplify my life doing that
browndawg has quit [Quit: Leaving.]
<ddd> i don't watch a whole lot of movies. I'm an opportunistic watcher :) meaning whever I find some time like just before bed and whatever Dish Network has on their PPV movies
ndrei has joined #ruby
<platzhirsch> I am more the procrastinator.
<shevy> Chepra ok but what exactly do you need. I mean, there are tons of projects out there... ascii_table to do ascii tables, colour-related libraries... formatting helpers... and the whole stdlib as well... there is also highline for hidden password input... most cli projects won't need much really
<platzhirsch> There was this article on Hacker News: "I code to procrastinate…"
<platzhirsch> god I hate him
<ddd> hehe
rootshift has joined #ruby
<Chepra> shevy: coloured output, easy parameter parsing, password input
<AntelopeSalad> Chepra: http://whatisthor.com
<Chepra> thanks
<ddd> ok, gotta do some irl stuff. bbl
<ddd> wic
iMe is now known as iMe_away
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
Wolland has joined #ruby
mehlah has joined #ruby
papito has quit [Ping timeout: 245 seconds]
jonah_k has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
dx7 has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
saarinen has quit [Quit: saarinen]
arietis has quit [Quit: Computer has gone to sleep.]
Hanmac1 has quit [Ping timeout: 245 seconds]
dx7 has quit [Ping timeout: 246 seconds]
amclain has joined #ruby
speakingcode has joined #ruby
estebistec has quit [Remote host closed the connection]
estebistec has joined #ruby
carif_ has joined #ruby
<Fire-Dragon-DoL> I just fell in love with Thread.future O.o
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
JasmeetQA has quit [Read error: Connection reset by peer]
IceDragon has quit [Ping timeout: 250 seconds]
axsuul has joined #ruby
cloud|nix has joined #ruby
mgberlin has quit [Quit: mgberlin]
enape_101 has joined #ruby
nichtdiebohne has joined #ruby
mgberlin has joined #ruby
RaCx has quit [Ping timeout: 272 seconds]
nichtdiebohne has quit [Client Quit]
nichtdiebohne has joined #ruby
george2 has quit [Remote host closed the connection]
RaCx has joined #ruby
tt1187 has quit [Ping timeout: 250 seconds]
centrx has joined #ruby
nichtdiebohne has quit [Client Quit]
mgberlin has quit [Client Quit]
dx7 has joined #ruby
rippa has joined #ruby
nichtdiebohne has joined #ruby
noop has quit [Ping timeout: 265 seconds]
slowcon has joined #ruby
cloud|nix has quit [Quit: Ex-Chat]
jrobertfox has joined #ruby
cloud|nix has joined #ruby
Tomasso has joined #ruby
Markvill_ has joined #ruby
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
Markvilla has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
nichtdiebohne has joined #ruby
IceDragon has joined #ruby
daxroc has joined #ruby
enape_101 has quit [Ping timeout: 245 seconds]
wildroman2 has quit [Remote host closed the connection]
clamstar has joined #ruby
x77686d has quit [Quit: x77686d]
Jake232 has joined #ruby
mehlah has quit [Quit: Leaving...]
Ziarkaen has joined #ruby
Tomasso has quit [Remote host closed the connection]
daxroc has quit [Read error: Connection reset by peer]
Tomasso has joined #ruby
daxroc has joined #ruby
daxroc has quit [Client Quit]
slowcon has quit [Quit: slowcon]
daxroc has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
mocfive has joined #ruby
tyl has joined #ruby
slowcon has joined #ruby
tyl has quit [Client Quit]
<pontiki> for the time traveling rubyist?
speckle has joined #ruby
timonv has quit [Remote host closed the connection]
Silent__ has joined #ruby
wildroman2 has joined #ruby
rootshift has joined #ruby
griffindy has quit [Ping timeout: 245 seconds]
x77686d has joined #ruby
<Fire-Dragon-DoL> pontiki: rotfl
<Fire-Dragon-DoL> mh guys I have to build a small cache for api requests, this cache is memory only. Should I use something as big as memcached/redis or such or a simple hash is enough?
Hanmac has joined #ruby
<centrx> Fire-Dragon-DoL, memcache is not that big
wildroman2 has quit [Read error: Connection reset by peer]
LLKCKfan has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
griffindy has joined #ruby
<centrx> Fire-Dragon-DoL, the simple hash will not be persistent across requests/sessions/processes
<Fire-Dragon-DoL> centrx: let me read more about it
<Fire-Dragon-DoL> centrx: I don't need that type of cache
Simpller has joined #ruby
Hobogrammer_ has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
<Fire-Dragon-DoL> centrx: i just want to repeat the last call more or less or the last 3
<Fire-Dragon-DoL> but nothing more
ace_striker has quit [Ping timeout: 245 seconds]
<centrx> Fire-Dragon-DoL, It probably depends on your web server/framework but each call will probably get a new hash, not the cached hash
LLKCKfan has joined #ruby
nichtdiebohne has quit [Quit: Linkinus - http://linkinus.com]
maletor has joined #ruby
jonr22 has quit [Remote host closed the connection]
MyStartx has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jonr22 has joined #ruby
RaCx has quit [Ping timeout: 250 seconds]
RaCx has joined #ruby
shivshnkr has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
tjr9898 has quit [Remote host closed the connection]
xlogic has joined #ruby
hiall_ has quit [Quit: hiall_]
isomorphismes has joined #ruby
tjr9898 has joined #ruby
<isomorphismes> How do I make a bunch of methods and tie them together so they can be attached to new objects as I make them?
deepa has joined #ruby
sparrovv has quit [Remote host closed the connection]
deepa is now known as Guest23430
Czupa has joined #ruby
heftig has joined #ruby
s_kilk has quit [Quit: Leaving]
<ddd> check out writing a Module
<centrx> isomorphismes, mixin module or class inheritance
pushpak has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
<isomorphismes> thanks ddd thanks centrx
isomorphismes has left #ruby [#ruby]
ndrei has joined #ruby
[krisbulman] is now known as krisbulman
<Fire-Dragon-DoL> mhhh when to use class inheritance and when to use modules?
<Fire-Dragon-DoL> I usually ends up always with modules I suppose
meatherly has joined #ruby
<Fire-Dragon-DoL> to leave the class "free"
RoryHughes has quit []
krisbulman is now known as [krisbulman]
axsuul has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 248 seconds]
claymore has quit [Ping timeout: 248 seconds]
asmodlol has joined #ruby
raphaelivan has joined #ruby
Hiall has joined #ruby
ndrei has joined #ruby
mehlah has joined #ruby
<ddd> use class inheritence when it makes sense. when all classes need the same methods, and its not worth creating an/a bunch of intermediate classes, modules are the better choice
Hiall has quit [Client Quit]
<Fire-Dragon-DoL> ddd: yea reading around sounds like the right choice. Also may be not stupid but if you have to deal with "different" constructors inheritance is the way to go
claymore has joined #ruby
Squarepy has joined #ruby
<ddd> yeah. i believe ruby can do multiple method signatures can't it? (I've not gotten to the point where I've needed to attempt that
<ddd> )
jonr22 has joined #ruby
[krisbulman] is now known as krisbulman
<centrx> ddd, Ruby does not support method overloading
<ddd> ah
krisbulman is now known as [krisbulman]
Es0teric_ has joined #ruby
bthesorceror has joined #ruby
<centrx> ddd, Other techniques are used, like accepting a hash for arguments, or using alias_method/alias_method_chain
gnephiak has quit [Quit: Konversation terminated!]
[krisbulman] is now known as krisbulman
<ddd> wonder what the purpose of that design choice was. matz usually has a good reason for doing something a specific way. wonder what it was in this instance
<centrx> I don't know, I would make two observations about it though
<ddd> which are?
Es0teric has quit [Ping timeout: 250 seconds]
hema3 has joined #ruby
<centrx> Method overloading is something that is needed for languages that only support a fixed number of arguments. Ruby method arguments are very flexible.
<ddd> due to the splat (*) i take it?
<kiba> ddd: your nick remind me of a guild in an anime
<ddd> hehe
claymore has quit [Ping timeout: 246 seconds]
<ddd> your nick reminded me of Yugioh
<Fire-Dragon-DoL> ddd: remembers me the debugger
<centrx> Yes, exactly, and hashes as args
maroloccio has joined #ruby
raphaelivan has quit [Quit: Leaving.]
<kiba> D.D.D and Crusty the berserker!
jacekplacek has joined #ruby
<ddd> centrx makes sense on a fast mental jog-through
<kiba> ddd: well, I adopted it from wolf rain
<ddd> kiba heheh
raphaelivan has joined #ruby
brennanMKE has joined #ruby
<kiba> ddd: can you guess the anime?
<centrx> And also, method overloading is very unexplicit in the caller. With alias_method, you make it explicit, like having "my_method" and "my_method_with_robots", truly they are different methods
<shevy> your nicks remind me of SEX and VIOLENCE
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<shevy> methods with robots are always nice to have
<ddd> kiba no. Unless its Robotech or Star Blazers, I'm not up to snuff
claymore has joined #ruby
tongcx has joined #ruby
<ddd> centrx makes sense. I know *of* method aliasing, but again, I think I've only run into it once before
<ddd> alias_method old_method new_method or something like that
<tongcx> hi guys, if i write a ruby file 'a.rb' without using module namespace, if I 'require ./a' in anothe ruby file, how do I access variables in a.rb from the other file?
agent_white has joined #ruby
<shevy> tongcx you can not access local variables that way
<Fire-Dragon-DoL> tongcx: unless they are globals you can't
<Fire-Dragon-DoL> and you are not supposed to
<tongcx> shevy: I see, thanks, is there difference between '::' and '.'?
<agent_white> Goodmornin!
RoryHughes has joined #ruby
<shevy> tongcx barely any. The . is one character short though. :: is also usable only for top-scope reference, like: ::Foo
<jhass> tongcx: while you can use :: to call methods, doing so is discouraged. :: is for accessing namespaced constants
<shevy> use . whenever you can, otherwise use ::
<shevy> :)
mib_mib has joined #ruby
<mib_mib> hi guys - i have some invalid dates stored in mysql, i.e. 2012-02-00 - when i am retrieving results, and retrieve one of these like Post.find_by_sql('select * from posts') the query errors out with 'invalid date' - i assumed this column is trying to be parsed as a date somewhere - is there an easy way to 'catch' these results but keep the query going for the rest
<shevy> the yaml examples have things like: YAML::dump()
<shevy> many newcomers keep on using that :(
brunops has joined #ruby
<jhass> mib_mib: #rubyonrails is better at AR questions
<tongcx> shevy: i am wondering, when you 'require sinatra', they poured a lot of things like 'get, body' to global namespace, how do they do that?
elaptics is now known as elaptics`away
Megtastique has joined #ruby
<tongcx> shevy: thoses things are not prefixed with '$'
<shevy> yeah
<ddd> jhass err? .blah is the method access point. :: and . aren't the same things
<shevy> tongcx probably private methods on class Object
RubNoob has joined #ruby
<kiba> debugger is pysch?
<shevy> tongcx when you see get, it is the method called get()
Hiall has joined #ruby
RoryHughes has quit [Client Quit]
<tongcx> shevy: i c, cool
<kiba> or is it psy?
<speckle> what's an AR question, jhass?
<jhass> speckle: activerecord
<ddd> ActiveRecord
<shevy> tongcx, you can however use it in traditional ways too, through subclassing, then you won't have to use the global get() version: http://www.sinatrarb.com/intro.html#Sinatra::Base%20-%20Middleware,%20Libraries,%20and%20Modular%20Apps
RoryHughes has joined #ruby
<ddd> AR is shorthand in the ruby/rails community for ActiveRecord
<tongcx> shevy: thanks
<shevy> I hated that get() was global in my apps until someone mentioned that I could subclass instead, since that day I <3 sinatra
<speckle> Ah, thanks. I know ActiveRecord but didn't see the acronym before
<ddd> like AR::B is shorthand for ActiveRecord::Base
mikepack has quit [Remote host closed the connection]
<shevy> and ddd is a shortcut for devilish duck dumpster
<ddd> devilish duck dynasty
MyStartx has quit [Read error: Connection reset by peer]
<shevy> so noble :P
<shevy> dignified
<shevy> duck
<ddd> or Devilishly Debonair Dude!
<shevy> destroyer!!!
<shevy> dude always brings the level down ...
diegoviola has joined #ruby
<ddd> or Devilishly Debonair Deviant! :)
<shevy> beer and dude go hand in hand together
<shevy> I learned that from lebowski
<ddd> since I'm a beer drinker I'm ok with that association
<tongcx> shevy: in shell, can I do things like 'help(sth)' where 'sth' is a instance of some class?
<tongcx> shevy: just like Python?
<agent_white> shevy: You mean white russians ;D
<shevy> tongcx you mean from i.e. bash?
<tongcx> shevy: no, irb
<ddd> ri Class
<shevy> hmm
MyStartx has joined #ruby
<shevy> you can enable ri in irb too so it should be possible
<tongcx> in ruby shell
<shevy> but I dont use ri so I dont know
<tongcx> i see, thanks
<pontiki> USE PRY!
<ddd> works fine out the box
<shevy> I grab useful docu externally, then store it locally in a way I can understand it
<shevy> "This proxy class delegates to the drb infrastructure." Translation: "Apples and Bananas are best stored in a distributed fashion."
<ddd> you are probably the wackiest dude I know hehe
<tongcx> actually, 'help Array' seems works
<agent_white> pontiki is right, pry is like irb if you riced it out, in the best way!
<ddd> hmm, help doesn't work for me, but ri does (in irb)
iMe_away is now known as iMe
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddd> pry is a *better* irb than irb
RoryHughes has quit []
mikepack has joined #ruby
<shevy> well
<shevy> hmm
<shevy> I think help() may be inbuilt
<Fire-Dragon-DoL> centrx: looks like http://api.rubyonrails.org/classes/ActiveSupport/Cache/Store.html is enough for me
<centrx> Ah, you are using Rails, yes
RoryHughes has joined #ruby
<pontiki> watch this by the inestimable @cirwin: https://www.youtube.com/watch?v=D9j_Mf91M0I
<centrx> Fire-Dragon-DoL, Yes, memcache is even easier to use in Rails!
v0n has quit [Ping timeout: 245 seconds]
Skycrow has joined #ruby
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
S0da has quit [Read error: Connection reset by peer]
p8952 has joined #ruby
coca_rails has joined #ruby
<platzhirsch> How can I write a profiler in Ruby, simply counting the calls of a certain method?
<Fire-Dragon-DoL> centrx: no I'm not using rails I'm writing a gem
<Fire-Dragon-DoL> centrx: But I'm using activesupport
S0da has joined #ruby
<centrx> ah, cool
<centrx> platzhirsch, Have you looked at ruby-prof?
<platzhirsch> centrx: I am right now
<platzhirsch> I am thinking about dynamically altering the method's code
<centrx> Oh that sounds like a BRILLIANT idea
<centrx> Very courageous
drejohnson has joined #ruby
krisbulman is now known as [krisbulman]
e^0 has joined #ruby
slowcon has quit [Quit: slowcon]
drejohnson has quit [Read error: No route to host]
<jhass> platzhirsch: also look at http://www.ruby-doc.org/core-2.1.0/TracePoint.html
jacekplacek has quit [Quit: This computer has gone to sleep]
e^0 has quit [Client Quit]
rainmanjam has joined #ruby
echevemaster has joined #ruby
decoponio has quit [Quit: Leaving...]
<platzhirsch> jhass: yeah that is the new way of doing that right. I think I need to do it in addition without TracePoint
jacekplacek has joined #ruby
Silent__ is now known as Hobogrammer
<jhass> ruby 2.0 way, yeah
<rainmanjam> I'm on a Mac and my installed gems are not showing up when I do "gem list". On my other computer it works fine.
<platzhirsch> jhass: It's a "puzzle" for a job application, maybe they expect that it works for earlier Ruby versions, too :)
<ddd> or they could be expecting the applicant to point out that it *does not* work for older versions. Then they know you either know how to search well, or know your stuff :)
<platzhirsch> Well you just have to do it differently
<platzhirsch> I wull use banister's method_source gem
e^0 has joined #ruby
sambao21 has joined #ruby
<banister> platzhirsch easiest to decorate the method probably
<pontiki> rainmanjam: how did you install your gems on your mac?
PixeIs is now known as Pixels_
<banister> platzhirsch a decorator that just updates a counter or sth
<platzhirsch> banister: but I am confused on instance_method source.display is available without requiring 'method_source' ?
<platzhirsch> yes, like that
GS has joined #ruby
<banister> platzhirsch cos you're using pry?
<banister> pry uses method_source internally
<platzhirsch> well, that was obvious… thanks
<banister> :)
RoryHughes has quit []
<rainmanjam> pontiki: gem install ***
<platzhirsch> *** ? Wildcard for all gems with three character names?
iMe is now known as iMe_away
Pixels_ is now known as PixeIs
daxroc has quit [Ping timeout: 272 seconds]
<pontiki> no, i think that was a wildcard just for my benefit
yacks has quit [Quit: Leaving]
<platzhirsch> I entered it and now gem installs the whole internet
<pontiki> rainmanjam: are you using a ruby manager like rvm, rbenv, chruby, etc?
<pontiki> lol
<pontiki> SUCKAH
<rainmanjam> pontiki: RVM
<pontiki> rainmanjam: type 'rvm info' and post the output in pastie or gist, pls?
<rainmanjam> pontiki: please hold
bricker`LA has joined #ruby
Megtastique has quit []
RoryHughes has joined #ruby
tjr9898 has quit [Remote host closed the connection]
JBreit has quit [Read error: Connection reset by peer]
sparrovv has joined #ruby
gregf has quit [Quit: WeeChat 0.4.2]
mgberlin has joined #ruby
Megtastique has joined #ruby
<shevy> platzhirsch lol
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> I need to collect epic IRC quotes
<platzhirsch> Yes, please
rainmanjam has quit [Remote host closed the connection]
tempered has joined #ruby
xIzIv has joined #ruby
Speed has quit [Ping timeout: 260 seconds]
rainmanjam has joined #ruby
ehaliewicz has joined #ruby
`petey` has quit [Remote host closed the connection]
<rainmanjam> pontiki: http://pastebin.com/3ZeJBaGC
Guest23430 has quit [Changing host]
Guest23430 has joined #ruby
xIzIv has quit [Client Quit]
Guest23430 is now known as deepy
JBreit has joined #ruby
dx7 has quit [Remote host closed the connection]
jonah_k has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
chipotle has quit [Quit: cya]
xIzIv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
tongcx has quit [Quit: leaving]
dseitz has joined #ruby
bluntman has joined #ruby
jacekplacek has quit [Quit: Leaving]
meatherly has quit [Ping timeout: 245 seconds]
Hanmac1 has joined #ruby
havenwood has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
craigp has quit []
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
e^0 has quit [Quit: WeeChat 0.4.2]
Hobogrammer_ has joined #ruby
<nfk> i might have asked this before but within loops is it better to do if (foo) break end bar or if (foo) break else bar end?
<shevy> wat
<centrx> nfk, I usually do: break if foo
<nfk> will that affect performance
<centrx> nfk, It is a one liner
<centrx> nfk, No effect on performance
<nfk> no,i just did not want to \n a lot
<centrx> empty lines have negligble no effect on performance :)
Hobogrammer has quit [Ping timeout: 248 seconds]
<nfk> well, in stupid languages like C it would would/could affect performance as using else branch hints the compiler that both won't happen at the same time while without else branch the compiler has to be trusted to realise on its own that when if branch is entered, the rest of the loop iteration is skipped
diegoviola has quit [Quit: WeeChat 0.4.2]
mib_mib has quit [Ping timeout: 245 seconds]
<centrx> nfk, That is some extreme optimization
rainmanjam has quit []
<nfk> i really though you just write C/C++ with that in mind
meatherly has joined #ruby
<centrx> nfk, Have you heard of premature optimization?
kayamm has joined #ruby
<nfk> have you heard abut good practice?
<dachi> hi nfk, centrx. do you know if pumactl is considered to be incomplete today?
<nfk> a what?
yarou has joined #ruby
<dachi> puma proccess monitor
<nfk> never heard of that one, sorry
<centrx> I know. In Ruby "simple straightforward code" is best practice, and then optimize further later, whereas in C the low-level tinkering is often necessary
<centrx> dachi, I don't know about puma, sorry
<dachi> thanks
<nfk> centrx, i was just curious
<nfk> in this case it does not of course matter much
kayamm has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
<centrx> Using the one line if-statement is, I think, the best practice for Ruby
<centrx> For example
<centrx> def my_method
ehaliewicz has quit [Ping timeout: 250 seconds]
carraroj has quit [Quit: Konversation terminated!]
<centrx> return nil if robots.nil?
<centrx> return nil unless sochi.present?
Speed has joined #ruby
rainmanjam has joined #ruby
<centrx> It keeps the code very clear
<nfk> i'm doing file operations and digesting so control structures for the governing logic are going to have negligible performance hit but that does not forbid one to wonder about ruby best practices, right
<nfk> ?
Speed has quit [Changing host]
Speed has joined #ruby
vermele has quit [Quit: Leaving]
<centrx> Sorry, I did not mean to offend you
<nfk> np
rm_ has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
fuhgeddaboudit has joined #ruby
jonah_k has joined #ruby
<centrx> nfk, The performance cost of branching or checking values like nil? or even has_key? is very small compared to the rest of a program and the overhead of Ruby, interpreter, and garbage collector
cloud|nix has quit [Ping timeout: 245 seconds]
<centrx> nfk, Modern CPUs will visit BOTH branches of the if statement, just because they can
Megtastique has quit []
<centrx> They will run the code ahead of time, for both foo == true and foo == false
Hiall has quit [Quit: hiall]
mikepack has quit [Remote host closed the connection]
kayamm has joined #ruby
PixeIs is now known as Pixels
Kricir_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dachi has quit [Quit: ...]
einarj has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
whatasunnyday has joined #ruby
hema3 is now known as tt1187
motto has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xIzIv has left #ruby [#ruby]
Wolland has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
m8 has quit [Ping timeout: 245 seconds]
r0nin has joined #ruby
habanany has joined #ruby
habanany1 has quit [Quit: Leaving.]
axsuul has joined #ruby
<platzhirsch> "A::B#cookies".split(/[#:]/) => ["A", "", "B", "cookies"] any idea how to formulate a regex where I don't get en empty string here?
brunops has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
jonah_k has quit [Remote host closed the connection]
brunops has joined #ruby
<shevy> good old regexes
<shevy> they always drain my brain
<shevy> platzhirsch would it be wrong to reject empty strings from your array?
habanany has quit [Max SendQ exceeded]
eka has joined #ruby
Skycrow has quit []
whatasunnyday has quit [Read error: Connection reset by peer]
AxonetBE has joined #ruby
<platzhirsch> shevy: no, I mean I can just post-process the array, but I think all I need is to write the regex in a way that it matches on :: and not just :
<nfk> like using :: instead of :
<nfk> ?
Tomasso has quit [Ping timeout: 245 seconds]
<nfk> shevy, that just means you don't know PERL
<platzhirsch> nfk: yeah but the result is the same
<nfk> then again, neither do i
glanotte has joined #ruby
whatasunnyday has joined #ruby
mlpinit has quit [Quit: Leaving...]
axl_ has joined #ruby
v0n has joined #ruby
<AntelopeSalad> i'm getting crushed by syntax issues , how can i apply this answer so that i can pass in multiple options rather than just one? http://stackoverflow.com/a/14360552
timonv has joined #ruby
<AntelopeSalad> check the shared_options line in the linked SO answer (line 2)
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
<shevy> nfk totally irrelevant, the brain processing I have to do with regexes is always significantly higher than for other code constructs.
froy has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
<platzhirsch> so it's just /[#:]+/
<platzhirsch> erm
sabeur has joined #ruby
Lewix has joined #ruby
sabeur has quit [Remote host closed the connection]
brunops has quit [Changing host]
brunops has joined #ruby
Kruppe- is now known as Kruppe
<shevy> imagine if you could add complexity points in code elements. like a goto statement would cost +20 ... an if/else would cost +1 ... a regex probably ... if it is small, +8 perhaps, if it is long and complicated, +16
sabeur has joined #ruby
<platzhirsch> shevy: plus, regular expressions for too complicated patterns is guaranteed to fail somewhen
<shevy> yeah, their cost seems to increase the longer and more complex the task they do
<AntelopeSalad> here is a gist that better explains my exact problems: https://gist.github.com/anonymous/30c017169013ad9e7c88
<platzhirsch> Some days ago there was a blog post suggesting strongly against using Regular Expression when parsing code of your own programming language... I mean seriously, what the fuck... who would do that
<nfk> shevy, since regex themselves are oneliners, they don't add complexity to the overall program
<shevy> :\
<nfk> but if you have to grok it, oh god
r0nin has quit [Remote host closed the connection]
<nfk> i do not understand the regex i wrote myself a month later
<shevy> if you want to be complicated, sure go add as many complex elements as you can
<nfk> and be sure it took me days to get it working in the first place
<platzhirsch> nfk: that's what doc is for? :P
<shevy> I stay with brevity and simplicity
timonv has quit [Ping timeout: 245 seconds]
pfg has joined #ruby
<nfk> shevy, basically if you know what it does, then it does not add complexity even if you do not know how it does it as long as you don't have to dive in
Jake232 has joined #ruby
AlexRussia has joined #ruby
<waxjar> i found that most regexpes i have to use can be replaced by calls to String#split and String#include?
yarou has quit [Remote host closed the connection]
<platzhirsch> shevy: yeah man, Finite-state machine, stay golden pony-boy
<shevy> nfk I know what it does, after all I wrote them in all my projects myself too. And it adds complexity every single time I use them
<nfk> and i generally write them in a way that it's easy to understand what my regex do, sometimes i even add a comment on top but understanding how they do it, that's the mind raping part
r0nin_ has joined #ruby
<shevy> oh only sometimes
<shevy> so you have undocumented regexes
whatasunnyday has quit [Quit: whatasunnyday]
<shevy> and when you see them some months later, you instantly know what they do
Shidash has joined #ruby
<shevy> and there be no bugs
<waxjar> #end_with? and #start_with are also good replacements
<nfk> when it's obvious that it you run a regex on message and get out sender_email then it's kinda moot to comment # this yanks out goat@garden.co.uk
whatasunnyday has joined #ruby
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> \b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
<nfk> shevy, noob
<shevy> hahaha
<nfk> there's no way in hell something that short could be RFC compliant
<nfk> i know, i wrote partially compliant regex to validate emails
<nfk> never again
<shevy> platzhirsch that's more like an easter egg
baroquebobcat has joined #ruby
<shevy> there is an embedded hand with a raised middle finger in that regex
<platzhirsch> :D
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<nfk> shevy, in fact, it won't even handle admin@com
<nfk> and that's totally vaid
<shevy> I never sent to admin@com
<platzhirsch> me neither, so how is this related to solving the problem
rainmanjam has quit []
<nfk> there's even a goddamn wikipedia article on email address validation
TMM has quit [Quit: Ex-Chat]
<shevy> we should test the perl module on that
LLKCKfan has quit [Read error: Connection reset by peer]
<nfk> platzhirsch, note that you@xxx is not valid
<nfk> probably
<pontiki> Perl <<< Brainfuck
<nfk> i think you meant >>>
<nfk> or maybe =>
<platzhirsch> nfk: totally knew that
<pontiki> much, much worse
sepp2k has joined #ruby
<AlexRussia> лол
<waxjar> just check if there's an @ and no whitespace, then send your email :p
<platzhirsch> I used to be a warrior, but then I took an arrow operator to the knee
<AlexRussia> Perl <<< Brainfuck like me
<nfk> waxjar, what about %20
<AlexRussia> %20
<waxjar> it's not whitespace, is it
<AlexRussia> lol
Xuisce has left #ruby [#ruby]
<nfk> waxjar, also you may not send to address starting with 1 or _, iirc
<platzhirsch> btw. I dropped the idea to parse the method signature with a regular expression, because I need to test if there is :: in separately anyway
<pontiki> why do people actually care? it's not as if matching a string is any guarantee if it's a real email address?
LLKCKfan has joined #ruby
<shevy> pontiki the longer you stare at a problem, the more complicated it can become!
rexar has joined #ruby
avril14th has joined #ruby
<pontiki> it's like the opposite of those magic pictures, shevy
<platzhirsch> pontiki: It's really just to keep people busy
<avril14th> Hello, is it possible to use define_method to define methods that use a block?
<nfk> shevy, a truly compliant email address parser would probably take a few pages of code in any language
<shevy> yes avril14th
maletor has joined #ruby
<platzhirsch> Like described here http://tommorris.org/posts/8786 How many software developers would it take to change a lightbulb?
<pontiki> a%20spaced%20name@example.com is actually a valid email address
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<avril14th> shevy: any special way to write that?
RaCx has quit [Ping timeout: 252 seconds]
`petey` has joined #ruby
<pontiki> it doesn't work the way you think
<avril14th> i did define_method do |arg, arg, &block|
<pontiki> but it's valid
<avril14th> but when i give a block, block_given returns false
GS is now known as gs_sd
<shevy> avril14th hmm... define_method(:bla) {|i = 'this is avril14th rocking his house!'|; puts e; }
<shevy> wow
<shevy> I just had ruby die on m
<shevy> [FATAL] failed to allocate memory
<nfk> as for why, basically you want to do one thing, then another since both are sensible to make sure users don't commit garbage and maybe you even want to parse the input in some specific way and then you go "handling that case would be good too" and the next evening you are wondering why you even exist
Hobogrammer has joined #ruby
<waxjar> avril14th: you can instead check if block.nil? i think
<pontiki> thus endeth the yak shave
<avril14th> shevy: that's plain parameter, what about define_method |i, &block|, that works?
Hobogrammer_ has quit [Ping timeout: 260 seconds]
* ddd hands pontiki a freshly sharpened barber blade
<shevy> avril14th hmm
bricker`LA has quit [Ping timeout: 252 seconds]
<avril14th> shevy: so you mean block.nil? should replace block_given? when used in define_method?
<shevy> avril14th dont think I tried that before
bricker`LA has joined #ruby
<platzhirsch> $ gem install hangover-cure
<shevy> I did not say anything about block.nil? avril14th
* pontiki carefully sheathes it for next yak shave session
<avril14th> ok :)
<avril14th> just trying to understand
<avril14th> I tried what I wrote above
<avril14th> and passing a block
<avril14th> I have block_given returning false
<avril14th> which scares me 0o
<shevy> avril14th, try http://pastie.org/8716186
<Lewix> avril14th: you can simply use if block
coca_rails has quit [Remote host closed the connection]
intuxicated_ has quit [Ping timeout: 245 seconds]
MyStartx has quit [Ping timeout: 245 seconds]
r0nin_ has quit []
<avril14th> Lewix: you mean block.nil?
<nfk> platzhirsch, i guess you are happy you got your hit but honestly, what a crappy writeup
<nfk> you're just bitching
<nfk> and it's not even funny
<avril14th> shevy: there is no block given there
<shevy> hmm
bthesorceror has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 260 seconds]
<avril14th> shevy: https://www.ruby-forum.com/topic/3486000 this makes sense
<avril14th> block_given is confused about the context
<avril14th> so indeed looks like testing the block is the way
* avril14th goes trying
ItSANg___ has quit [Ping timeout: 248 seconds]
rexar has quit [Quit: leaving]
ixti has joined #ruby
RoryHughes has quit []
Megtastique has joined #ruby
diegoviola has joined #ruby
gh has joined #ruby
thams has joined #ruby
<avril14th> cool that works
<avril14th> one should do a block.nil? test and use block.call
Tolnaiz has joined #ruby
alex88 has quit [Quit: Leaving...]
<avril14th> block_given and yield work in the context outside of the define_method
coca_rails has joined #ruby
<avril14th> sometimes you have to wait for sunday evenings to learn something
pwh has quit []
<shevy> hehe
DaniG2k has joined #ruby
Naoe-Kanno has joined #ruby
<DaniG2k> has anyone ever had to use a text summarization tool or algorithm?
<DaniG2k> (in this channel, that is)
prc has quit [Ping timeout: 265 seconds]
Tolnaiz has quit [Client Quit]
yarou has joined #ruby
mikepack has joined #ruby
SHyx0rmZ has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
<avril14th> not me
<avril14th> :)
<avril14th> Never saw public / open algos for that
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DaniG2k> avril14th: there's MEAD (http://www.summarization.com/mead/)
<DaniG2k> in perl
<DaniG2k> but I don't get it very well
Megtastique has quit []
<DaniG2k> and it seems they stopped developing some 8 or 9 years ago
<platzhirsch> DaniG2k: look into Stanford's Natural Language Processing Library
chipotle has joined #ruby
mlpinit has joined #ruby
pfg has joined #ruby
<DaniG2k> platzhirsch: ah cool thanks
<DaniG2k> platzhirsch: found this https://github.com/louismullie/stanford-core-nlp
<platzhirsch> DaniG2k: It's really enjoyable with JRuby
<platzhirsch> in MRI it will start a JVM
<DaniG2k> platzhirsch: you use it?
<platzhirsch> too
bbloom has quit [Ping timeout: 246 seconds]
chipotle has quit [Read error: Connection reset by peer]
<platzhirsch> DaniG2k: I used it
rm_ has joined #ruby
<DaniG2k> platzhirsch: does it do text summaries?
chipotle has joined #ruby
<DaniG2k> platzhirsch: doenst look like it does :
Ziarkaen has quit [Read error: Connection reset by peer]
oso|away is now known as oso96_2000
<platzhirsch> DaniG2k: what exactly are you looking for? A summary in keywords?
chipotle has quit [Read error: Connection reset by peer]
AxonetBE has quit [Quit: AxonetBE]
<DaniG2k> platzhirsch: something along these lines: http://freesummarizer.com/
chipotle has joined #ruby
<DaniG2k> seems like an incredibly hard thing to program though :\
<platzhirsch> There are different approaches to this. I would say it depends on how to do it. There are more than one way http://en.wikipedia.org/wiki/Automatic_summarization
<DaniG2k> platzhirsch: yea I saw that. extraction seems best/easiest
Xeago has joined #ruby
<DaniG2k> platzhirsch: does the Stanford NLP lib do that as well?
jumpingcloud has joined #ruby
Sir_Funk has quit [Ping timeout: 265 seconds]
<avril14th> Best way is to outsource to low pay humans
<avril14th> no doubt
<platzhirsch> I would be startled if not, it's a huge piece of crafted something
<DaniG2k> ahahahahah
<avril14th> you can package it in a rails app though :)
<DaniG2k> platzhirsch: it doesnt look like it does
Wolland has joined #ruby
<platzhirsch> DaniG2k: yeah even Stanford links to your MEAD
<platzhirsch> so what's the problem again with Perl? :D
RaCx has joined #ruby
<platzhirsch> shell out and magic
<DaniG2k> platzhirsch: it has all sorts of deps that I need to get with CPAN and I'm lazy as balls
slowcon has joined #ruby
<platzhirsch> I need to port this to Ruby and then eventually I will get the fame I deserve
jrist has quit [Ping timeout: 245 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle_ has joined #ruby
MindfulMonk has joined #ruby
<DaniG2k> platzhirsch: i get 25% of the credit for giving you the idea
<DaniG2k> platzhirsch: also, I can be your cheerleader
<ddd> you keep the credit, send ME the cash!
<platzhirsch> ddd: Microsoft ME?
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> err Windows ME
<DaniG2k> this is interesting but
<ddd> Windows MustEvolve ;)
<DaniG2k> it was made by a 15 year old
<DaniG2k> so I don't know how good it actually can be
<ddd> my 13yo daughter makes some pretty cool stuff, so it might be pretty damned good
Wolland has quit [Ping timeout: 248 seconds]
<ddd> kids these days seem more in-tune with electronics than back in my hayday
greenarrow has joined #ruby
<DaniG2k> it probably runs a @sentences.split('\n').sample
<DaniG2k> 3.times {@sentences.split('\n').sample}
chipotle has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<platzhirsch> DaniG2k: wouldn't that be sufficient
<DaniG2k> platzhirsch: probably
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
chipotle_ has quit [Ping timeout: 246 seconds]
<DaniG2k> platzhirsch: do you live in the UK by any chance?
<platzhirsch> DaniG2k: why are you asking?
Jake232 has joined #ruby
<DaniG2k> i'd like to talk to ruby programmers about this idea i have
<DaniG2k> but in person would be better
<platzhirsch> Do you want to abduct me?
<DaniG2k> I have a tazer
<platzhirsch> lol
<platzhirsch> No, I am from Berlin
<DaniG2k> ruby's the only worthwile language these days
<DaniG2k> slow, but awesome
<DaniG2k> ah
<DaniG2k> my condolences
axsuul has quit [Read error: Connection reset by peer]
bthesorceror has joined #ruby
<platzhirsch> Everyone I told that I am considering UK as a work place looked at me like I am crazy
<DaniG2k> weather is probably better in Berlin
<DaniG2k> but I wasn't a bit fan overall
<platzhirsch> and rents, and cost of living
asmodlol has quit [Remote host closed the connection]
AxonetBE has joined #ruby
<DaniG2k> right
<DaniG2k> its super expensive here
<DaniG2k> salary is also good but
<DaniG2k> it all goes with the rent
MyStartx has joined #ruby
<platzhirsch> Yesterday I saw a job position for London, 18k Pound annual
<DaniG2k> you can't live with that
tibounise has quit [Quit: WeeChat 0.4.2]
<DaniG2k> too little
<DaniG2k> i struggled with 27k back in the day
avril14th has quit [Quit: block.call{p 'exit' }]
coca_rails has quit [Remote host closed the connection]
jrist has joined #ruby
ItSANgo has joined #ruby
<platzhirsch> DaniG2k: of course it was a New Grad position, but that's pretty much a rip off. Though there were also ones with 45-55k
<DaniG2k> programmers should make around 50-60k, especially with a masters or Phd
greenarrow has quit [Quit: 500]
Megtastique has joined #ruby
tjr9898 has joined #ruby
Kricir_ has quit [Remote host closed the connection]
kayamm has left #ruby ["QUIT"]
<platzhirsch> good to know
DarthGandalf has quit [Quit: Bye]
einarj has quit [Remote host closed the connection]
<platzhirsch> and with this I can probably rent a 2 bedroom apartment at King's Cross
<DaniG2k> hmm
Kricir has joined #ruby
<DaniG2k> maybe
Hobogrammer has joined #ruby
<DaniG2k> its expensive there
bklane has quit [Remote host closed the connection]
<platzhirsch> just kidding, I don't think that's possible
pfg has quit [Ping timeout: 246 seconds]
<DaniG2k> you wouldnt want to live at king's cross anyway
<DaniG2k> its not a nice neighborhood
Kricir has quit [Read error: Operation timed out]
<platzhirsch> I stayed there for three days in a super cheap hotel, that was very disgusting
<DaniG2k> hm
Kricir has joined #ruby
<platzhirsch> It was okay for a short trip, was only for sleeping anyway :)
<DaniG2k> platzhirsch: you went to london to sleep?
<platzhirsch> lol, why did I want to parse "A::B#cookies" in the first place? I only need to extract the methods, of course Kernel.get_const recognizes modules including class
v0n has quit [Ping timeout: 245 seconds]
<platzhirsch> DaniG2k: the other way around
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
aryaching has quit [Ping timeout: 245 seconds]
banister has joined #ruby
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
<LLKCKfan> v
chipotle_ has joined #ruby
<LLKCKfan> v
<LLKCKfan> Is there any natural ways to relieve pain without using herbs or weed? No drugs'
Monk_code has quit []
chipotle has quit [Ping timeout: 260 seconds]
Squarepy has quit [Quit: Leaving]
pfg has joined #ruby
<shevy> LLKCKfan sex
<LLKCKfan> no
<platzhirsch> banister: oh darn, method_source does not work for dynamically declared code, does it?
<centrx> LLKCKfan, Vision quest
Steven_ has joined #ruby
<shevy> LLKCKfan you are lucky btw, some guy here wrote about using needles
<banister> platzhirsch depends how u dynamically declare it bb
<banister> platzhirsch if you use define_method, it should work fine
thams has quit [Quit: thams]
<banister> if you use a string eval, then it struggles
<platzhirsch> just in a pry session, have to see if it works with -e ruby option
<banister> platzhirsch it'll work in a pry session
<banister> but not outside a pry session, pry does special things to grab that code
sabeur has quit []
<platzhirsch> banister: oh ok, because I get MethodSource::SourceNotFoundError: Could not load source for : No such file or directory @ rb_sysopen - (pry)
<banister> platzhirsch it completely depends on how u're dynamically defining the method
xIzIv has joined #ruby
<platzhirsch> alright
<banister> how r u doing it
glanotte has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
vlad_starkov has joined #ruby
<platzhirsch> banister: just wrote module A; class B; def cookies; puts 5; end; end; end and then Kernel.const_get('A::B').instance_method('cookies').source
vlad_starkov has quit [Read error: Connection reset by peer]
<banister> platzhirsch what's dynamic about that? :)
vlad_starkov has joined #ruby
<platzhirsch> banister: that I entered it in a pry session
glanotte has joined #ruby
<banister> platzhirsch ok but type this in pry: show-source A::B#cookies
Hanmac has joined #ruby
<banister> (it'll extact out te whole expression though, not just the method)
dx7 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
gh has quit [Quit: Leaving]
DarthGandalf has joined #ruby
alex88 has joined #ruby
AxonetBE has left #ruby [#ruby]
Hanmac1 has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Read error: Operation timed out]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
platzhirsch has joined #ruby
<platzhirsch> Oh my, disconnect
glanotte has quit [Client Quit]
<platzhirsch> well, in any case. For my original problem to inject a counter incrementer, I think I don't need to actually retrieve the source code, it should be sufficient to redefine the method with a call to itself
dx7 has quit [Ping timeout: 260 seconds]
<platzhirsch> alias to the rescue
meatherly has quit [Ping timeout: 260 seconds]
<nfk> return true if da==db
thams has joined #ruby
<nfk> false
<nfk> why is that code doing something weird?
<nfk> unless return does something special it should work
<nfk> or maybe i should use return 0?
tvw has joined #ruby
whatasunnyday has quit [Quit: whatasunnyday]
thams has quit [Client Quit]
<platzhirsch> nfk: ? Why no da == db
<nfk> eh?
<platzhirsch> single line, no return
<platzhirsch> just da == db at the end
<nfk> oh
<nfk> i see
<nfk> stupid of me
tylersmith has quit [Remote host closed the connection]
<nfk> and i guess i should have done return(true), es?
kenndel_ has quit [Read error: Connection reset by peer]
<nfk> *yes
<platzhirsch> no
tylersmith has joined #ruby
<platzhirsch> no idea why it does not work as expected for you
xIzIv has quit [Remote host closed the connection]
Wolland has joined #ruby
<platzhirsch> I mean return(true) is also valid, but uncommon to you parenthesis there
zachallett has joined #ruby
Vivid has joined #ruby
Vivid is now known as Guest59812
Sensei67 has joined #ruby
charliesome has joined #ruby
DarthGandalf has quit [Quit: Bye]
tylersmith has quit [Ping timeout: 260 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
shedd has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<AntelopeSalad> newsflash: blocks are the best thing ever created
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
shedd has quit [Remote host closed the connection]
<platzhirsch> +++ NEWSFLASH +++ PLATZHIRSCH AGREES +++ NEWSFLASH +++
pkrnj has joined #ruby
axl_ has quit [Quit: axl_]
DarthGandalf has joined #ruby
sk4l has joined #ruby
ws2k3__ has joined #ruby
<agent_white> !
ws2k3_ has quit [Remote host closed the connection]
<sk4l> !
Sir_Funk has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<platzhirsch> so Switzerland is against immigration
alex88 has quit [Quit: Leaving...]
Krajsnick has joined #ruby
Es0teric has joined #ruby
chipotle_ has quit [Read error: Connection reset by peer]
<shevy> yeah
<shevy> too many german invaders
chipotle has joined #ruby
pavilionXP has joined #ruby
<platzhirsch> :o)
<sk4l> hallo leute, was sagen sie über Deutschland? :D
<platzhirsch> sk4l: I don't know, but the ü from ueber is not displayed correctly and that really pisses me off
aryaching has quit [Ping timeout: 245 seconds]
<sk4l> me too, it's blitzkrieg time then?
Es0teric_ has quit [Ping timeout: 272 seconds]
<platzhirsch> jawohl
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
bettyclamp has joined #ruby
zachallett has quit [Remote host closed the connection]
jackneill has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Czupa has quit [Remote host closed the connection]
chrisseaton has joined #ruby
shevy has quit [Ping timeout: 250 seconds]
Hobogrammer has quit [Ping timeout: 248 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
raphaelivan has quit [Quit: Leaving.]
coca_rails has joined #ruby
gregf has joined #ruby
Sensei67 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
<nfk> aw, yeah, it works
<nfk> debugging wasn't nice
<nfk> hell, my vision is blurring and doubling and i feel dizzy
<nfk> but it works
TMM has joined #ruby
MyStartx has quit [Ping timeout: 245 seconds]
<nfk> if you guys care, i could even pastebin the code
<nfk> as long as you promise not to derp about my messy coding style
<nfk> then again, i d will nee this
lkba has quit [Ping timeout: 260 seconds]
<platzhirsch> nfk: go ahead, but gist it
estebistec has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
MyStartx has joined #ruby
jonr22 has joined #ruby
timonv has joined #ruby
aryaching has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
<nfk> right, was so dizzy i would have forgotten that
pabloh has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 248 seconds]
pabloh has joined #ruby
Krajsnick has quit [Remote host closed the connection]
shevy has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
whatasunnyday has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
<nfk> oh lovely, github is laggin my firefox
Kricir has quit [Remote host closed the connection]
<centrx> Firefox is lagging my github!
catphish has joined #ruby
kirun has quit [Quit: Client exiting]
wildroman2 has joined #ruby
Megtastique has quit []
<platzhirsch> Kill the fox
coca_rails has quit [Remote host closed the connection]
sparrovv has quit [Remote host closed the connection]
claymore has quit [Quit: Leaving]
motto has quit [Quit: Sto andando via]
<nfk> alreayd did that a minute ago
mengu has quit [Remote host closed the connection]
catphish has left #ruby ["Leaving"]
<nfk> but as if the second attempt was any better
<nfk> lagging again
<nfk> and load average is merely 9.44, 8.78, 8.54
araujo has quit [Remote host closed the connection]
niggler has joined #ruby
<niggler> hello #ruby! I'm trying to use a module Roo and i encounter the error uninitialized constant Class::URI (NameError). I suspect this is probably an error with my configuration. Any thoughts?
Solnse has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
Sir_Funk has quit [Ping timeout: 265 seconds]
Megtastique has joined #ruby
sparrovv has joined #ruby
rm_ has quit []
maletor has quit [Quit: Computer has gone to sleep.]
RaCx has quit [Ping timeout: 252 seconds]
`petey` has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
enape_101 has joined #ruby
coca_rails has joined #ruby
lkba has joined #ruby
RaCx has joined #ruby
rm_ has joined #ruby
slowcon has quit [Quit: slowcon]
aryaching has quit [Read error: Operation timed out]
Hobogrammer has joined #ruby
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
tuttinator has joined #ruby
<pipecloud> niggler: Is that from a gem called roo?
<niggler> pipecloud: turns out the issue was that roo required another gem called spreadsheet
<nfk> oh fuck, my code is dangerous
<niggler> unfortunately, the error message didn't make that clear lol
<pipecloud> niggler: It's not a gem actually.
<nfk> just a bit of fortune saved me from data loss
<pipecloud> It's just a separate require in the gem.
<pipecloud> niggler: require 'roo/spreadsheet'
<niggler> pipecloud: that doesn't work
<niggler> it needs require 'spreadsheet'
<niggler> just requiring 'too' and 'roo/spreadsheet' still shows the same error
mengu has quit []
Hobogrammer has quit [Ping timeout: 265 seconds]
<pipecloud> niggler: Huh, it's lame that it has an implicit dependency not covered in the gemspec.
<pipecloud> niggler: It should already be required in the gem, are you hacking on the gem directly or something?
pabloh has quit [Read error: Connection reset by peer]
dachi has joined #ruby
<niggler> pipecloud: no I just tried to follow the steps in the readme
pabloh has joined #ruby
<niggler> sudo gem install roo
<niggler> then follow the commands in the readme
Hobogrammer has joined #ruby
<pipecloud> niggler: sudo?
OdNairy has quit [Ping timeout: 260 seconds]
phansch has quit [Quit: Leaving]
<niggler> run as root
<pipecloud> my condolences.
<niggler> lol i don't like developing as the root user
<pipecloud> So don't! :D
<nfk> who would do that?
<niggler> right, which is why sudo was used
* nfk readies the bat
<pipecloud> niggler: What do you mean?
<niggler> the ruby gems directory
<niggler> on osx
<pipecloud> I just install gems as my user.
<pipecloud> niggler: Have you heard of ruby-install and chruby?
pen has joined #ruby
<niggler> /Library/Ruby/Gems/2.0.0 is owned by root
<pipecloud> The OSX ruby is already out of date.
<pipecloud> niggler: And?
<niggler> I'm relatively new to ruby lol
<pipecloud> niggler: Well, let me help you pal!
<pipecloud> niggler: Do you use homebrew or shall we set up ruby-install other ways?
<niggler> do any OSX things depend on ruby?
Kricir has joined #ruby
<niggler> actually brew wouldn't affect that
<pipecloud> niggler: I'm not sure, but it doesn't really matter here, luckily enough.
<niggler> I've had some fun experiences in the past with macports
enape_101 has quit [Ping timeout: 248 seconds]
tylersmith has joined #ruby
<niggler> ok brew install ruby is going
<dachi> people, I used $ rvm wrapper my_app --no-links unicorn_rails snippet from rvm site, but could not use it with "--no-links" and used without it, there was a notice that now --no-links creates links. I set up working environment. But am I in trouble that I did not use "--no-links"? What's that? I wanted to have aliased directory of my rvm@gemset that I could use in a bash script
<pipecloud> I wouldn't use brew install ruby
<niggler> great :/
<niggler> ok what would you use lol
<pipecloud> niggler: I'd use homebrew to install ruby-install so you have a single place to upgrade packages (damn OS X and their lame no real system package manager)
<pipecloud> niggler: brew info ruby-install
coca_rails has quit [Remote host closed the connection]
<AntelopeSalad> style question: would you place attr_* calls before include/extend or after?
<pipecloud> niggler: Nothing neat there, so brew install ruby-install
<pipecloud> AntelopeSalad: I put them after.
mojjojo has joined #ruby
baroquebobcat has joined #ruby
<AntelopeSalad> ok
<niggler> so does gem work with ruby-install or do I need to use a different command
<pipecloud> niggler: Patience!
rm_ has quit [Remote host closed the connection]
<pipecloud> niggler: Do you mind if I query you, sir?
txomon has joined #ruby
dachi has quit [Quit: ...]
<havenwood> niggler: Modern Rubies come with RubyGems (including `gem`) out of the box. Installing RubyGems separately died with 1.8. ;)
Xeago has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 265 seconds]
<txomon> hi, just a quick question. I have developed in C, Java and Python, and I am interested in contributing to gitlab-ci... So I am now starting with ruby. I have made the ruby tutorials, and I have now the basics of the language
<txomon> is there any recommendation now?
<txomon> I have seen that there are tons of Gemfiles in the project (gitlab-ci)
<txomon> and other apps seem to be the same
<txomon> Is there any standard on which gem to use? They all seem to use the same
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> niggler: (ruby-install does automate that for 1.8 though, just not needed for modern rubies)
DaniG2k has quit [Quit: leaving]
<centrx> txomon, I see only one Gemfile in the gitlab-ci project?
<txomon> yeah sorry, I said wrong. Tons of gems, not tons of Gemfiles ;)
<havenwood> txomon: There are some nice resources like The Ruby Toolbox to look for gems. People choose popular and maintained gems so you see the same crowd cycle through a lot of Gemfiles.
Steven_ has quit [Remote host closed the connection]
aryaching has joined #ruby
thams has joined #ruby
<txomon> I suppose it's something like django on web python, that many much of the people uses it...
<havenwood> txomon: https://www.ruby-toolbox.com/
hobodave has joined #ruby
stringoO has joined #ruby
<txomon> oh
<txomon> this is huge and fabulous
GinoMan has joined #ruby
<GinoMan> I have a sacred philosophical question..... is it better to use "obj == nil" or "obj.nil?" and why?
Hobogrammer has quit [Ping timeout: 250 seconds]
stonevil has joined #ruby
<havenwood> garndt: The latter. Simpler is better. The former is a method and an argument, the latter is simply a method.
<havenwood> garndt: oops, mistell, sorry bout that
<havenwood> GinoMan: ^
Sir_Funk has joined #ruby
<RubyTitmouse> GinoMan: obj.nil? is better because of what havenwood said
<havenwood> GinoMan: obj.==(nil) versus obj.nil?
<platzhirsch> How many languages have a method like obj.nil? … it's there so developers can use it and become happy about its existence
koshian has quit [Ping timeout: 245 seconds]
uglybandersnatch has joined #ruby
<platzhirsch> It induces happiness
MyStartx has quit [Ping timeout: 245 seconds]
<GinoMan> I was thinking that as well. I was also thinking along the lines of it's easy to miss the second equals and accidentally assign your object to nil after your supposed test.
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ has joined #ruby
<RubyTitmouse> == also introduces precedence into your statement which is a whole additional layer of complexity to manage
Rollabunna has quit [Ping timeout: 260 seconds]
<RubyTitmouse> No, you can always have a typo, and you always have to catch that somehow
<platzhirsch> GinoMan: There is another perspective on this, it depends on what you are doing with the obj. You could you .to_s, .to_i, to_a, etc. to 'cast' it to the typed equivalent of null
Rollabunna has joined #ruby
<RubyTitmouse> Presumably testing will catch the typo
<GinoMan> Good point RubyTitmouse..... wow.... I think I almost peed myself saying that when my mind read it aloud in my head.
<txomon> why should I use rubinius?
<txomon> or why not..
<RubyTitmouse> lol
<waxjar> you should use rubinius if you want to run threads in parallel and dont want to use C extensions
Wolland has quit [Remote host closed the connection]
<txomon> oh ok
pkrnj has joined #ruby
<RubyTitmouse> txomon: Matz' Ruby is the obvious default, I would say you should have a reason to use something else
<waxjar> eh, do want to use C extensions, that should be
<platzhirsch> txomon: I would say you shouldn't use Rubinius, because someone who writes a post like this http://rubini.us/2013/10/15/introducing-rubinius-x/ can be taken by no means seriously
<havenwood> txomon: JRuby 9000
<txomon> waxjar, humm ok, I thought the C stuff was because it made harder to run concurrent threads...
thams has quit [Quit: thams]
Davey has joined #ruby
<RubyTitmouse> gems aren't even labeled as which are C extensions, so more like, "do you want to be able to use standard Ruby gems?"
<RubyTitmouse> And the C API is a basic expected part of Ruby
<havenwood> You can use C-exts with rbx but they release the GIL so they have to be thread safe C-exts.
[krisbulman] is now known as krisbulman
joelteon has joined #ruby
<RubyTitmouse> There are other good interpreters for pure Ruby code, but none of them is usable as a full replacement
<joelteon> so rake isn't really a make replacement, is it? it just does dependency resolution
davidcelis has quit [Ping timeout: 240 seconds]
<waxjar> txomon: the reason i mentioned C extensions is because JRuby also allows you to run threads in parellel, but you can't use C extensions with JRuby
santiago has joined #ruby
santiago is now known as loc22
raphaelivan has joined #ruby
bwarkee has quit [Ping timeout: 252 seconds]
<RubyTitmouse> rake does not replace make, in fact rake is often involved in the process of generating Makefiles
<waxjar> txomon: note that there is a difference between concurrency and parellelism
adeponte has quit [Ping timeout: 272 seconds]
xargoon has quit [Ping timeout: 272 seconds]
<joelteon> ok, that makes sense
TorpedoSkyline has quit [Ping timeout: 264 seconds]
tziOm has quit [Ping timeout: 245 seconds]
<txomon> waxjar, yeah, I noticed it and was going to ask about it
helpa has quit [Read error: Connection reset by peer]
<txomon> thanks for the info
<platzhirsch> waxjar: That's why I thought at least Rubinius supports C extensions
<RubyTitmouse> rake is just a make-like thingy that mostly covers the problem space of "non-compiler uses of make"
<AlexRussia> who here used kdevelop?
erichmenge has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
<waxjar> platzhirsch: i believe so, yeah
angusiguess has quit [Ping timeout: 245 seconds]
<joelteon> well, it's a tool with built-in dependency resolution
<platzhirsch> waxjar: it has its own C-API
<havenwood> txomon: like waxjar mentioned JRuby runs parallel threads well and the future is bright with ridiculously fast JRuby 9k coming this year.
jso has quit [Ping timeout: 272 seconds]
joelteon has left #ruby ["bye"]
<platzhirsch> so you need to migrate
helpa has joined #ruby
<RubyTitmouse> no the dependency resolution should be coming from bundler and the Gemfile, except when building gems when it comes from the gemspec
<txomon> havenwood, so jruby 9k is good also in concurrency?
Kricir has quit [Ping timeout: 260 seconds]
<txomon> s/good also/also good/
dachi has joined #ruby
mojjojo_ has joined #ruby
<waxjar> platzhirsch: really? i thought it was a drop-in replacements. i never really used it, tho.
<platzhirsch> JVM *raises his fist*
TorpedoSkyline has joined #ruby
nick_h has quit [Remote host closed the connection]
<RubyTitmouse> MRI is great at concurrency, it is just optimized for people using unix-style fork and IPC
<pontiki> just wait until they come out with the JRuby 9000 turbo model. *POWER*
<havenwood> txomon: That's just what they're codenaming the upcoming JRuby 2.0 (it is 1.7 right now).
jso has joined #ruby
mojjojo has quit [Ping timeout: 245 seconds]
mojjojo_ is now known as mojjojo
<GinoMan> platzhirsch: hey, does JRuby have a C interface to use C/C++/Obj-C code?
<RubyTitmouse> The others get all excited over threads
<txomon> oh ok
<loc22> Hi guys! Im started learning TDD with rspec and I need your opinion. Do I create my app with testing and in the and I add devise and cancan for authentication and authorization, or Do I add them frist?
<havenwood> txomon: But yeah, great multithreaded performance, but no forking like MRI. Different model of how to do concurrency.
<platzhirsch> GinoMan: It had, but not anymore
<havenwood> parallelism*
<platzhirsch> they dropped the support
<txomon> well, I wonder the day will have to take that much care on parallelism...
<bnagy> platzhirsch: eh?
<havenwood> GinoMan: They use FFI.
adeponte has joined #ruby
<platzhirsch> bnagy: wrong?
<GinoMan> FFI?
<bnagy> FFI is still supported
<platzhirsch> ok
<bnagy> there was a tantrum that lasted for about 3 weeks
<RubyTitmouse> FFI is like Perl XS, but for any language
gs_sd has quit [Ping timeout: 245 seconds]
<txomon> btw, I love bundler, it makes quite simple to know the dependencies, even greater than pypi (which is wonderful too)
crazysim has quit [Ping timeout: 252 seconds]
<RubyTitmouse> An extra C-like language to learn so you can glue your C to a third language
<bnagy> jruby FFI and MRI FFI have a few very small but irritating differences
<pontiki> loc22: those are rather orthogonal questions
stkowski has joined #ruby
<bnagy> but you can write interpreter independent FFI code to wrap any C lib
<RubyTitmouse> With MRI you can write the glue easily in C
mikepack has quit [Remote host closed the connection]
zcreative has joined #ruby
jfoy has joined #ruby
<txomon> on my experience on python, I would say that using C in a language should at leas by 75% easy as using the language itself
<txomon> if not, then extensions are just a pain
<GinoMan> oh. that was the other thing I wanted to ask..... Is there a case where 'obj == nil' would choke?
<GinoMan> but obj.nil? wouldn't?
xargoon has joined #ruby
<txomon> GinoMan, that I know, it's the same, but the first one (the good one) is really optimized
<havenwood> GinoMan: Like RubyTitmouse pointed out, if there was a precedence issue.
<havenwood> GinoMan: Look at where `==` falls in the order or precedence: http://www.zenspider.com/Languages/Ruby/QuickRef.html#operators-and-precedence
tziOm has joined #ruby
Sid05 has joined #ruby
bklane has joined #ruby
<RubyTitmouse> if you say (obj==nil) that should always be fine, except you do still have to see the parens, mentally note where they match, etc
raphaelivan has quit [Quit: Leaving.]
crazysim has joined #ruby
stringoO has quit [Quit: stringoO]
Hobogrammer has joined #ruby
<waxjar> obj.nil? ftw
bwarkee has joined #ruby
<havenwood> Hehe, write Ruby is Lisp style. PARENS ALL THE THINGS \o/
<centrx> GinoMan, If a class overrode == in a broken manner, it might not work as expected
<GinoMan> makes sense
<pipecloud> havenwood: Expressions for dayz
<waxjar> that same class could also overwrite #nil? though
<pipecloud> waxjar: Why would you ask an object if it's nil?
dx7 has joined #ruby
sambao21 has joined #ruby
<pipecloud> Why not just obj. Let it's truthiness be your guide!
Mapley is now known as skasturl
<centrx> waxjar, Right, but it is much more likely someone would overwrite == and not account for nil properly than someone would overwrite nil? and not account for nil properly
<waxjar> i find obj.nil? to be clearer
stringoO has joined #ruby
koshian has joined #ruby
<RubyTitmouse> >> class Lazyfoo;end ; Lazyfoo.nil? # are we there yet?
<eval-in> RubyTitmouse => false (https://eval.in/99968)
skasturl is now known as Mapley
<centrx> >> return @memo unless @memo.nil?
<eval-in> centrx => nil (https://eval.in/99969)
erichmenge has joined #ruby
<pipecloud> >> "centrx sucks" if true
<eval-in> pipecloud => "centrx sucks" (https://eval.in/99970)
crazysim has quit [Read error: Operation timed out]
<pipecloud> centrx: Your use of return and #nil? are silly
jso has quit [Ping timeout: 248 seconds]
TorpedoSkyline has quit [Ping timeout: 248 seconds]
<pipecloud> >> @memo unless @memo
<eval-in> pipecloud => nil (https://eval.in/99971)
aryaching has quit [Ping timeout: 260 seconds]
krainboltgreene has quit [Ping timeout: 265 seconds]
<centrx> pipecloud, @memo might be false, that is an expected outcome of the calculation
<pipecloud> centrx: So? False is false.
<pipecloud> centrx: I don't see how that's related.
Jake232 has joined #ruby
<centrx> pipecloud, If you memoize a method, you put at the top of the method: return @memo unless @memo.nil?
helpa has quit [Ping timeout: 260 seconds]
carif_ has quit [Quit: Ex-Chat]
mojjojo_ has joined #ruby
<pipecloud> centrx: So it's only presence and false is true but nil isn't?
<AlexRussia> why this dont work? https://eval.in/99972
bwarkee has quit [Ping timeout: 245 seconds]
mojjojo has quit [Ping timeout: 245 seconds]
mojjojo_ is now known as mojjojo
Radar has quit [Ping timeout: 252 seconds]
<centrx> pipecloud, So that it does not recalculate. If false is an expected result of the method's calculation, it would recalculate memo each time the outcome is false
<AlexRussia> pipecloud: DRUGS!
stringoO has quit [Client Quit]
pdtpatrick has joined #ruby
<AlexRussia> ;)
<RubyTitmouse> nil and false are both there for reasons
<pipecloud> centrx: So it's just that you want to memoize false because @memo ||= isn't a good idea?
dx7 has quit [Ping timeout: 245 seconds]
<centrx> pipecloud, If the calculation is more than one line you use return at the beginning
<RubyTitmouse> I know that seems really obvious, but bear with me... there are some here who claim to not know what nil is for
<niggler> any good resources for learning ruby?
<bnagy> AlexRussia: where did you think the get method would come from?
<centrx> pipecloud, @memo ||= is nice if the method is a one-liner
<pipecloud> centrx: It's nice regardless.
<centrx> Sometimes it is mean
<pipecloud> niggler: I like books, what do you prefer?
<AlexRussia> bnagy: emmm, sinatra
jso has joined #ruby
<waxjar> does @memo ||= distinguish between nil and false?
<pipecloud> centrx: Howso?
Radar has joined #ruby
bwarkee has joined #ruby
TorpedoSkyline has joined #ruby
Radar is now known as Guest54327
<niggler> definitely prefer physical books
stkowski has quit [Quit: stkowski]
jfoy has quit [Quit: jfoy]
adeponte has quit [Ping timeout: 260 seconds]
<waxjar> >> x = false; x ||= true; x
<eval-in> waxjar => true (https://eval.in/99973)
<bnagy> AlexRussia: might want to mention that :) Because the obvious answer as to why it doesn't work is obvious
<pipecloud> I'm not really into the cowboy brogrammer style from zedas.
<AlexRussia> bnagy: emm, and where problem?
<pipecloud> niggler: I love metaprogramming ruby for the first half of the book when learning ruby. The first half is all about ruby ruby object model.
<RubyTitmouse> "cowboy" you're onto something. brogrammer? You just wanted to say "bro."
<pipecloud> RubyTitmouse: bro
Gate has quit [Ping timeout: 246 seconds]
<pipecloud> niggler: The second half delves into the darker arts.
zastern has quit [Ping timeout: 252 seconds]
<centrx> waxjar, It doesn't, you are right that is another use case for return unless nil
<RubyTitmouse> Learn Code the Hard Way is tried and true methodology
jericon has quit [Remote host closed the connection]
<RubyTitmouse> it is how they were trying to teach when I started
OdNairy has joined #ruby
<AlexRussia> bnagy: me newbie :P
camilo has joined #ruby
<pipecloud> RubyTitmouse: Learning it The Hard Way is tried and works.
<RubyTitmouse> I'm not sure it is the really the hard way
<RubyTitmouse> but it is a better name than Learn Code the Old Way
<pipecloud> It's just not my style.
Guest54327 has quit [Excess Flood]
bwarkee has quit [Ping timeout: 245 seconds]
erichmenge has quit [Ping timeout: 260 seconds]
Radar_ has joined #ruby
chipotle has joined #ruby
vlad_starkov has joined #ruby
<pipecloud> It's perfectly respectable, I just don't hold the same views as the author and his writing style bothers the shit out of me.
zastern has joined #ruby
bwarkee has joined #ruby
<centrx> I heard he smells funny too
n88 has quit [Remote host closed the connection]
<havenwood> I worry about any Ruby tutorial that uses for loops to iterate. Often not idiomatic Ruby.
<bnagy> it's definitely not idiomatic ruby
<bnagy> especially the later examples
<bnagy> but the first dozen or so exercises are good for people that know absolutely nothing
MindfulMonk has quit [Quit: Leaving]
<AlexRussia> omfc, update ruby with repo delete my gems...
<bnagy> cause I never know where else to send people for that
jso has quit [Ping timeout: 265 seconds]
<bnagy> even learn to program can confuse people IME
crazysim has joined #ruby
n88 has joined #ruby
<pipecloud> IME?
<pipecloud> experience?
<bnagy> yeah
<centrx> In My Experience
<centrx> Hard to teach someone programming who does not know * is multiplication
<pipecloud> bnagy: I bet if you were to whip the student until they got it, it'd work just fine. But this isn't a sweatshop.
<AlexRussia> oh, problem in update...
<pipecloud> centrx: They never used a calculator before?
soulcake has quit [Read error: Connection reset by peer]
RaCx_ has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
jso has joined #ruby
* pipecloud imagines centrx goes back in time before computers and tries to teach people programming
maroloccio has quit [Quit: WeeChat 0.4.2]
davidcelis has joined #ruby
soulcake has joined #ruby
<centrx> I live in the 1800s
maroloccio has joined #ruby
<centrx> It is difficult living here
<bnagy> can you get me some ivory?
RaCx has joined #ruby
<bnagy> and ambergris
rm_ has joined #ruby
pwh has joined #ruby
txomon has quit [Ping timeout: 246 seconds]
<centrx> I am only able to send electronic messages into the future
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
rm__ has joined #ruby
<AlexRussia> sorry people, is problem update....
<pipecloud> centrx: Then serialize it to JSON and send it on through!
stkowski has joined #ruby
<bnagy> pff, call that a time machine?
angusiguess has joined #ruby
mengu has joined #ruby
Sir_Funk has quit [Ping timeout: 265 seconds]
Hobogrammer has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
rm__ has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
rm__ has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
krainboltgreene has joined #ruby
<platzhirsch> Meh, any idea how to hook into method_added? I want it to be called for every class and method that is added
jericon has joined #ruby
rm_ has quit [Ping timeout: 248 seconds]
rm_ has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
rm__ has quit [Ping timeout: 252 seconds]
loc22 has quit [Quit: Konversation terminated!]
LLKCKfan has quit [Read error: Connection reset by peer]
jso has quit [Ping timeout: 252 seconds]
mengu has quit []
bwarkee has quit [Read error: Operation timed out]
davidcelis has quit [Ping timeout: 252 seconds]
tuttinator has quit [Quit: Linkinus - http://linkinus.com]
Gate has quit [Read error: Operation timed out]
Beoran__ has joined #ruby
krainboltgreene has quit [Read error: Operation timed out]
Radar_ has quit [Ping timeout: 246 seconds]
adeponte has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Ping timeout: 250 seconds]
LLKCKfan has joined #ruby
Mapley is now known as Maple__
snuffeluffegus has joined #ruby
scottradcliff has joined #ruby
scottradcliff has left #ruby [#ruby]
micah` has quit [Remote host closed the connection]
<platzhirsch> Meta meta meta explosiona
micah` has joined #ruby
TorpedoSkyline has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
jericon has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
jericon has joined #ruby
yasushi has joined #ruby
erichmenge has joined #ruby
zastern has quit [Ping timeout: 250 seconds]
Hobogrammer has joined #ruby
jso has joined #ruby
<pipecloud> platzhirsch: Put the drugs down and back away from the interpreter.
nick_h has joined #ruby
<platzhirsch> pipecloud: shuddapp, you are not my Mother Compiler
Beoran_ has quit [Ping timeout: 250 seconds]
adeponte has joined #ruby
VTLob has quit [Quit: VTLob]
kewubenduben has joined #ruby
scottradcliff has joined #ruby
scottradcliff has left #ruby [#ruby]
pwh has quit []
Maple__ is now known as Mapley
dr0ff has joined #ruby
Radar_ has joined #ruby
bwarkee has joined #ruby
davidcelis has joined #ruby
tvw has quit []
george2 has joined #ruby
mercwithamouth has joined #ruby
mgberlin has quit [Quit: mgberlin]
pkrnj has quit [Quit: Computer has gone to sleep.]
<RubyTitmouse> Nobody holds the same views as zed lol http://deepinanime.blogspot.com/2009/11/rails-is-ghetto-original-copy.html
TigerWolf has joined #ruby
<pipecloud> RubyTitmouse: Some people I know agree with a lot of his opinions.
Sir_Funk has joined #ruby
tectonic has joined #ruby
<platzhirsch> I mean, if method_added is defined on class X then it will always be executed when a method is added to X, but how can I make this definition work on all classes
<pipecloud> He's also a super nice guy to chat with on IRC and meet in person.
<platzhirsch> I thought class Class; def method_added(... would do that, but it doesn't
<RubyTitmouse> as long as you cherry pick individual opinions, sure, he has many that are agreeable
<waxjar> platzhirsch: define it on Object, maybe
<RubyTitmouse> He's lots of fun on IRC, I remember he spent a full 30 minutes explaining that I'm a troll for saying it is almost certainly mongrel's fault if apache fcgi users are getting random 500 errors, on account of apache fcgi having had a decade of heavy production use already
yasushi has quit [Remote host closed the connection]
<RubyTitmouse> it took over a month for mongrel to get fixed because of finger-pointing at apache! lolol I miss Zed, truly and honestly, he is great entertainment
workmad3 has joined #ruby
timonv has joined #ruby
<pipecloud> RubyTitmouse: He's still around.
<pipecloud> Mostly he talks about guitars.
pdtpatrick has quit [Quit: pdtpatrick]
<RubyTitmouse> I doubt I'm in those places ;) I think he gave up on Ruby a few minutes before his "rails is a ghetto" post
<platzhirsch> waxjar: yeah, not working either. You use set_trace_func is this case, but I am not allowed to use it
<pipecloud> RubyTitmouse: I don't think it gets special consideration from him.
v0n has quit [Ping timeout: 246 seconds]
<pipecloud> But you'd imagine that he'd have a fucking fit about python's weak lamdas.
Wolland has joined #ruby
Hobogrammer has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
<RubyTitmouse> The considerations he gave were certainly Special
Jetchisel has joined #ruby
<waxjar> platzhirsch: are you sure you're defining it as a class method? it works over here
agarie has quit [Quit: Leaving...]
<platzhirsch> waxjar: class Object; def self.method_added ?
klaut has quit [Remote host closed the connection]
`petey` has joined #ruby
<waxjar> yeah
Mapley is now known as best_pony
<platzhirsch> waxjar: okay yeah maybe, though I need it for modules, too
<pipecloud> waxjar: I'd use a module that you mix into Object so that it's pretty clear where the hook definition came from.
timonv has quit [Ping timeout: 260 seconds]
<platzhirsch> waxjar: oh, my problem was somewhere else I had still the hook_in method call, accessing a constant that did not exist yet, my bad
<platzhirsch> "If you think GC is your problem, you're wrong. Your problem is allocation. Garbage isn't the disease...it's a symptom."
pkrnj has joined #ruby
<platzhirsch> If this tweet wouldn't look so ugly I would retweet it
sk4l has quit [Quit: Leaving]