apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
bean has joined #ruby
rking has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: Leaving]
kofno has joined #ruby
megha has joined #ruby
Guest711 has joined #ruby
baba has quit [Ping timeout: 248 seconds]
R_Macy_ has quit [Quit: Computer has gone to sleep.]
julian-delphiki has quit [Ping timeout: 264 seconds]
carlyle_ has joined #ruby
bricker`LA has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
hiroyuki has quit [Read error: Connection reset by peer]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
robbsan has quit [Quit: robbsan]
butblack has joined #ruby
Jalada has quit [Read error: Operation timed out]
arthurstomp has joined #ruby
pasties has quit [Ping timeout: 250 seconds]
Jalada has joined #ruby
arthurstomp is now known as AStomp
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
miso1337 has joined #ruby
b055cad has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
AStomp is now known as astomp
Zai00 has quit [Quit: Zai00]
br4ndon has joined #ruby
onetonturd has joined #ruby
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
ckrailo has quit [Quit: Computer has gone to sleep.]
jtharris has quit [Quit: WeeChat 0.4.0]
onetonturd has quit [Client Quit]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
pasties has joined #ruby
pepper_chico has joined #ruby
jpcamara has quit [Quit: jpcamara]
newUser1234 has joined #ruby
onetonturd has joined #ruby
newUser1234 has quit [Remote host closed the connection]
huoxito has quit [Ping timeout: 250 seconds]
justsee has joined #ruby
bdrewery has left #ruby [#ruby]
backjlack has quit [Remote host closed the connection]
carlyle_ has quit [Remote host closed the connection]
cobragoat has quit [Remote host closed the connection]
onetonturd has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
niklasb has quit [Ping timeout: 255 seconds]
miso1337 has quit [Quit: afk]
chussenot has quit [Quit: chussenot]
tylersmith has quit [Quit: tylersmith]
TheFuzzball has quit [Ping timeout: 248 seconds]
gommo has quit [Remote host closed the connection]
gommo has joined #ruby
harumph has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
kristofers has quit []
idkazuma has quit [Remote host closed the connection]
fuzai has quit [Quit: fuzai]
miso1337 has joined #ruby
hogeo has joined #ruby
kandinsk1 is now known as kandinski
gommo has quit [Ping timeout: 256 seconds]
MrZYX is now known as MrZYX|off
<markalanevans> Anyone familiar w/ RackTest in here? I"m trying to figure out the best way to debug in it.
<markalanevans> For example, if i want to see whats in a variable etc?
miso1337 has quit [Client Quit]
<markalanevans> Do I have to log it or is there some command I can use to have it just output to the console?
Takehiro has joined #ruby
yshh has quit [Remote host closed the connection]
miso1337 has joined #ruby
<_br_> Does anyone have an idea about conditials in CSS (if/else blocks) and haml or slim ?
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
adr has joined #ruby
<adr> hi
pepper_chico has quit [Quit: Computer has gone to sleep.]
jpfuentes2 has joined #ruby
<_br_> markalanevans: Hm, probably the way to go would be to use pry in my opinion and then step into the context with the debugger
Takehiro has quit [Ping timeout: 255 seconds]
<banisterfiend> markalanevans: just stick a binding.pry in there
jpfuentes2 has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
<markalanevans> Hmm. Ok. _br_ and banisterfiend I will try that.
jpfuentes2 has joined #ruby
miso1337 has quit [Quit: afk]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
chico_chicote has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<adr> I have an string with the name of a file and the extension var="file.doc" how is the efficient way to get just the extension
banjara has quit [Client Quit]
<adr> so all the letter after the last period
banjara has joined #ruby
sambao21 has quit [Client Quit]
banjara has quit [Client Quit]
banjara has joined #ruby
<_br_> adr: I think the standard way is File.extname
joshman_ has quit [Quit: Computer has gone to sleep.]
banjara has quit [Client Quit]
banjara has joined #ruby
<adr> ok thank you
<adr> :)
pepper_chico has joined #ruby
stkowski has quit [Quit: stkowski]
goleldar has joined #ruby
<goleldar> hello
Choobie has joined #ruby
nari has quit [Ping timeout: 260 seconds]
pdamer has joined #ruby
Davey has joined #ruby
cr3 has quit [Ping timeout: 240 seconds]
tjbiddle has joined #ruby
<markalanevans> banisterfiend: so i added the binding.pry into my code
<markalanevans> now to run my sinatra test app
pskosinski has quit [Ping timeout: 260 seconds]
<markalanevans> i do ruby my_test_app.rb
<goleldar> does ruby allow for dynamic method parameters?
<markalanevans> I'm getting errors: uninitialized constant Object::Sinatra (NameError)
<goleldar> I am trying to use the digaonal method for the Matrix class but it does not seem to allow an array to be passed as the parameter
adr has quit [Ping timeout: 255 seconds]
jbueza has quit [Quit: Leaving.]
Targen has joined #ruby
<markalanevans> goleldar:
<markalanevans> def some_method(*p) ...code... end
<goleldar> thanks :)
<markalanevans> then p is an array of params
<markalanevans> np
<goleldar> this brain teaser is turning into a marathon
maletor has quit [Quit: Computer has gone to sleep.]
axhlf has quit [Remote host closed the connection]
bonhoeffer has joined #ruby
mcswagger has joined #ruby
brianpWins has quit [Quit: brianpWins]
gommo has joined #ruby
adeponte has quit [Remote host closed the connection]
nga4 has joined #ruby
bigoldrock has quit [Ping timeout: 256 seconds]
skattyadz has quit [Quit: skattyadz]
mcswagger has quit [Remote host closed the connection]
predator217 has joined #ruby
zeade has quit [Quit: Leaving.]
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
butblack has left #ruby [#ruby]
tspike has quit [Ping timeout: 252 seconds]
predator117 has quit [Ping timeout: 240 seconds]
mmitchell has quit [Remote host closed the connection]
v0n has joined #ruby
banjara has quit [Quit: Leaving.]
araujo has joined #ruby
Chintan has joined #ruby
enroxorz-work has joined #ruby
ahammond has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
splud has quit [Quit: splud]
enroxorz-work is now known as ArchHurd
mikepack has quit [Remote host closed the connection]
ArchBeOS has quit [Ping timeout: 264 seconds]
ArchHurd is now known as ArchBeOS
<Chintan> Hey everyone. If I have a plaintext file that looks like: https://gist.github.com/chintanparikh/e240b4415a82c7d7f277
<Chintan> And from that I want to extract a hash {"This is important":"This is an important value", "It's":"going to be stored in a hash"}
Voodoofish430 has quit [Quit: Leaving.]
<Chintan> How would I go about doing that? It's definitely RegEx, but I don't know much else besides that
johnnygoodmancpa has joined #ruby
<ahammond> I'm trying to run kibana in an rvm on a ubuntu system. I installed rvm using the recommended curl command. Then I do ./gem install bundler (from /usr/loca/rvm/bin) and it says it worked. I try ./bundle --help and it fails: ERROR: Gem bundler is not installed, run `gem install bundler` first.
Hanmac has joined #ruby
nga4 has quit [Ping timeout: 264 seconds]
daniel_- has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: chrishough]
marr has quit [Ping timeout: 260 seconds]
R_Macy_ has joined #ruby
R_Macy_ is now known as R_Macy
johnnygoodmancpa has quit [Remote host closed the connection]
Ontolog has quit [Read error: Operation timed out]
yshh has joined #ruby
<havenwood> ahammond: Did you run?: gem install bundler
<Chintan> havenwood: Wow, didn't expect code. Thanks dude, 'preciate it
<havenwood> ahammond: I mean, not ./gem, but plain ole: gem install bundler
<ahammond> havenwood: I ran /usr/local/rvm/bin/gem install bundler
<havenwood> Chintan: np :)
<ahammond> havenwood: ok, let me try that.
<ahammond> havenwood: which gem gives me nothing
<havenwood> ahammond: What do you get for?: rvm current
<havenwood> Chintan: Oops, I forgot syntax highlighting. Fixed. >.>
<Chintan> havenwood: Any idea how it's do-able via regex?
chessguy has joined #ruby
<Chintan> havenwood: Aha, thanks :)
<ahammond> havenwood: I think I have a path issue. no rvm found
w400z has joined #ruby
slainer68 has quit [Remote host closed the connection]
<havenwood> ahammond: Make sure you've followed the instructions it gives when you run the curl intall.sh.
<ahammond> aaaaah, I ran the curl command via salt and never saw the output. I'll go manually do that and read up. :)
robustus|Off has quit [Ping timeout: 255 seconds]
wallclockbuilder has joined #ruby
taoru has joined #ruby
taoru has quit [Remote host closed the connection]
splud has joined #ruby
carlyle has joined #ruby
megha has quit [Quit: WeeChat 0.4.0]
<ahammond> havenwood: so the whole point of this is to have a clean way to run kibana (a ruby thing), from an init script…
wallcloc_ has quit [Ping timeout: 260 seconds]
<ahammond> it wants me to source my .profile and other stuff… I'm kinda wondering how this wraps up to run as a daemon.
chrishough has joined #ruby
Mattix has joined #ruby
chrishough has quit [Client Quit]
nateberkopec has joined #ruby
chrishough has joined #ruby
Virunga has quit [Remote host closed the connection]
<ahammond> same error. I install bundler, then try bundle install and it says it's not installed. redo sourcing .profile maybe?
elux has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
<havenwood> Chintan: Regex version: Hash[text_here.scan(/(.+):(.+)/)]
<Chintan> havenwood: Amazing, cheers!
<havenwood> Chintan: Actually, this is slightly better, cause handles the lstrip: Hash[text.scan(/(.+): +(.+)/)]
hbpoison has quit [Ping timeout: 240 seconds]
nari has joined #ruby
<ahammond> havenwood: ok, so bundle is working now. (I sourced the wrong file)
<havenwood> Chintan: So this would read whole file into memory (email size, so who cares I guess) but short and sweet: File.read('gistfile1.txt'); Hash[text.scan(/(.+): +(.+)/)] # Same output as iteration method.
mockra_ has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
<havenwood> ahammond: Nice.
<Chintan> havenwood: Brilliant, thanks so much mate
wallcloc_ has joined #ruby
<havenwood> Chintan: Oh: s/File/text = File
<Chintan> havenwood: You wouldn't happen to know anything about Priority Queus/natural language processing would you? It's kinda non-ruby related, so I'm hesitant to ask here
<havenwood> Chintan: Meant to put a `text =` before the File.read**
<havenwood> Chintan: What is a priority queue?
<Chintan> havenwood: It's a data structure
<havenwood> Chintan: Looking for language processing bindings in Ruby or pure Ruby libs?
<havenwood> Chintan: Ahh.
HecAtic has quit [Quit: Àá¼ö]
<Chintan> havenwood: Neither. I've got a task which I've gotta do in Ruby, and I'm not sure how to go about it. Essentially I need to grab an email (the text file), and output in a dictionary all the important info about it
hbpoison has joined #ruby
dhruvasagar has joined #ruby
Ohga has joined #ruby
wallclockbuilder has quit [Ping timeout: 252 seconds]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<ahammond> what is the difference between gemsets (which appear to be supported by salt) and bundler? Can I handle bundles using gemset?
ajaya has joined #ruby
Davey has joined #ruby
ajaya has quit [Client Quit]
<ahammond> bah, I'll spend more time on this tomorrow. Thanks havenwood! :)
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Chintan has left #ruby [#ruby]
<havenwood> ahammond: Bundler is to Gemfile as RVM is to Gemset. I believe you can generate a Gemfile from a Gemspec, and vice versa. I just use Gemfile, only.
<havenwood> s/Gemspec/Gemset
Tref has joined #ruby
<havenwood> ahammond: https://rvm.io/gemsets/basics/
<ahammond> thanks again havenwood. off to read up.
<havenwood> ahammond: np, happy hacking!
Takehiro has joined #ruby
<Ohga> hello rubyists. If I want to handle YAML, then psych is the gem I want it seems, right? and what about XML? is there something good with the standard ruby install or should I get some specific gem?
chessguy has quit [Remote host closed the connection]
ahammond has quit [Quit: ahammond]
<havenwood> Modern Rubys come with Psych included. So no gem install needed. :)
<havenwood> Ohga: Nokogiri is first-in-class XML/HTML parser.
<Ohga> havenwood: yes, I've read that, but it's the one to use? no reason to find something else?
<havenwood> Ohga: In the case of YAML, I think the best one is available by default. :)
<havenwood> Ohga: I'd install Nokogiri for XML parsing though.
<Ohga> havenwood: alright
xsdg has quit [Ping timeout: 260 seconds]
<havenwood> Ohga: XML does have stdlib options, but as long as you can compile Nokogiri, really very nice!
<Ohga> from the rubygem page for nokogiri "XML is like violence - if it doesn’t solve your problems, you are not using enough of it.".. um what??
<Ohga> :-D
<havenwood> Ohga: XML ALL THE THINGS \o/
<Ohga> oh noes!! *hides*
<Ohga> havenwood: would you like to enlighten a ruby beginner such as myself why nokogiri is so much better than the standard?
<Ohga> by some small examples or the like..
<havenwood> Ohga: Tenderlove also did (this is just a joke) Rails-Enterprise: https://github.com/tenderlove/enterprise
Takehiro has quit [Ping timeout: 252 seconds]
spychalski has quit [Ping timeout: 250 seconds]
<Ohga> you people are sick :-D
<Ohga> and I thought ##csharp were bad (no, just kidding)
spychalski has joined #ruby
<havenwood> Ohga: Nokogiri is faster, supports css in addition to xpath, and you can parse XML and (X)HTML with the same parser.
adayzdone has joined #ruby
fedza has joined #ruby
Opettaja_ has quit [Quit: leaving]
<Ohga> havenwood: so in short, just a much more tidy experience?
<havenwood> Ohga: CSS3 selector searching I mean.
Opettaja has joined #ruby
<havenwood> Ohga: Learn it once, handles all your HTML and XML needs (so reduces effort) and gets more love than stdlib one. Ruby core team members maintain Nokogiri.
thecodet1inker has joined #ruby
<havenwood> Ohga: CSS3 searching is easier to learn than XPath. Unless you need XPath level granularity, Nokogiri lets you use CSS3 style.
Choobie has quit [Remote host closed the connection]
<thecodet1inker> Is there a thing like C++ refrences in Ruby
adayzdone has quit [Client Quit]
<havenwood> thecodet1inker: Like reference variables, or something else?
<Ohga> havenwood: I'm only handling xml for this utility, but I guess css selector expressions works for that too?
<thecodet1inker> havenwood: yes
<Ohga> only that I can't make use of class or id.. (unless there is actualy class and id attributes in use of course)
snorkdude has joined #ruby
<Spooner> thecodet1inker, All variables are references in Ruby. It is values and pointers that Ruby doesn't have ;)
Opettaja has quit [Client Quit]
<thecodet1inker> Spooner: im just dumb then :'(
<Spooner> havenwood, The only advantage of xpath that I can see is that Chrome (et al) generates it for me so I don't need to write it!
<Ohga> correct me if I'm wrong, but the term reference in c++ is a bit more specific than the general term. in c++ it is a pointer with constant address which is manipulated without pointer notation
freezey has joined #ruby
<havenwood> Spooner: Got I love web inspectors when I have to deal with html stuff. :)
Opettaja has joined #ruby
<Ohga> or I should say accessed without pointer notation
jean-louis has quit [Read error: Connection reset by peer]
jean-lou` has joined #ruby
rupee has quit [Quit: Leaving]
<Spooner> It is just a pointer that is implicitly de-referenced (is how I understood it in C++).
<Ohga> Spooner: yes
rking has joined #ruby
<Ohga> thecodet1inker: why do you consider yourself dump?
<thecodet1inker> Ohga: did i put dump?
bonhoeffer has joined #ruby
kpshek has quit []
<Ohga> thecodet1inker: typo, naturaly. "dumb", better..
<Spooner> In Ruby we have references to objects that can't be treated as a pointer. Nothing is a value; nothing is a pointer. Well, strictly, the implementation might be slightly different, but that isn't relevant (e.g. Fixnum are stored as 31bit numbers in the 32bit pointer, rather than redirected from it).
<aedornm> I'm like a prophet. I have successfully predicted that I will want sushi tomorrow.
<havenwood> aedornm: Which makes me want sushi now. I am disciple.
* Ohga is not impressed
jjbohn has joined #ruby
<nazty> num = 1
<nazty> listcmp1.each { |x| puts num + ':' x ; num += 1 }
<nazty> why wont that work\
b055cad is now known as madb055
<nazty> it works if i leave it as listcmp1.each { |x| puts x }
<Ohga> nazty: .. ':' x .. no operator in between?
<nazty> ohhh concat
<Spooner> nazty, You probably want: puts "#{num}: #{x}"
tommyvyo has joined #ruby
<Ohga> nazty, Spooner: yeah, that's even better
tylersmith has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<Spooner> You can't add a number to a string (num + ':') and what Ohga said (':' x needs something between the parts)
cyong has quit [Quit: Leaving.]
<Ohga> Spooner: ah right.. but num.to_s + ':' works, right?
<Spooner> Though really, string interpolation is good. Using + is for people coming from perl.
<snorkdude> Hey guys, I'm working on consuming an oauth2 protected api with ruby and I need some help parsing a url. I'm at the callback phase, and I'm getting this url -> "http://localhost:4567/me#access_token="yetanotheraccesstoken"
<Spooner> Ohga, Indeed. #{} performs a to_s for you.
<havenwood> nazty: If x was a string, it would work, but like Spooner said, buest to interpolate with #{}.
<Ohga> Spooner: mm
<snorkdude> How do I parse the access token out since it isn't a regular parameter?
xsdg has joined #ruby
astomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kpshek has joined #ruby
Domon has joined #ruby
FuzaiDesktop has joined #ruby
wargasm has quit [Ping timeout: 255 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
justin1 has joined #ruby
<Ohga> havenwood: hm.. I'm looking in the pickaxe.. it talks about a YAML library (uses "require 'yaml').. but that's not psych, right?
mercwithamouth has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
tjbiddle has quit [Quit: tjbiddle]
<FuzaiDesktop> { "a" => 0, "b" => 2, "c" => 3, "d" => 0 } If I have a hash that looks like that and I want to get all of the keys with the smallest variable how would I do that with Ruby?
<havenwood> Ohga: I think there was a progression. I don't exactly recall. Original YAMl was replaced with Jame Edward Gray's FastYAML or something then Tenderlove's Psych. <- Terrible history, just my guess without looking it up.
<thecodet1inker> isn't self the same as 'this' in c++?
<Spooner> thecodet1inker, Yes, though mostly you don't need to use it explicitly.
<thecodet1inker> Spooner: I want to set something in an array to this object
<Ohga> havenwood: and the pickaxe haven't captured the latest changes?
<thecodet1inker> Spooner: the array is sent into the object's function and array[@x, @y] = self
<thecodet1inker> but it's not working :(
nazty has quit [Quit: Leaving]
<Spooner> You can't index an Array like that.
<havenwood> snorkdude: ^ that what you mean, or am I missing something?
nazty has joined #ruby
<thecodet1inker> Spooner: well I made it a 2d array
<thecodet1inker> array = Array.new(10) {Array.new(10)}
<Spooner> thecodet1inker, Then you need to do array[@x][@y]
HecAtic has joined #ruby
<nazty> finished mmy first ruby app!
<thecodet1inker> wow... im dumb...
<thecodet1inker> thanks
* nazty dances
<havenwood> nazty: Grats!
heliumsocket has quit [Quit: heliumsocket]
heliumsocket has joined #ruby
ttt has joined #ruby
h4mz1d has joined #ruby
<Ohga> havenwood: would you know if there is some tutorial/guide for psych?
io_syl has quit [Quit: Computer has gone to sleep.]
<havenwood> Ohga: Hmmm. I don't know of one, but if you find one mention it. I could use a look!
<snorkdude> havenwood: thanks! wondering why it wouldn't just come as a param though
<snorkdude> kind of weird
<Spooner> FuzaiDesktop, I'm going to bed, but here is a horrible implementation for you in my sleepy state: { "a" => 0, "b" => 2, "c" => 3, "d" => 0 }.group_by(&:last).min_by(&:first).last.map(&:first)
<Ohga> havenwood: Nokogiri have one, no probs there.. Psych seems like a wrapper to libyaml, which in turn looks like a typical c++ library page.. unintelligable
snorkdude has quit [Quit: snorkdude]
nateberkopec has quit [Quit: Leaving...]
<FuzaiDesktop> Spooner, I appreciate it, sleep well, I thought of using hash.values.each and comparing until i found the smallest value, I'm just now going to try to see if can extract that correctly :)
<thecodet1inker> Spooner: it still didn't work :'(
<Spooner> FuzaiDesktop, Easier to use hash.values.min
<FuzaiDesktop> Oh nice
<FuzaiDesktop> i didn't know about that
<FuzaiDesktop> :)
<Spooner> FuzaiDesktop, That works fine for me (gives ['a', 'd']), but maybe I misunderstood the requirements.
bonhoeffer has joined #ruby
deepinskin has joined #ruby
<FuzaiDesktop> your example probably works just fine, it's really foreign to me and i'm trying to digest it now
adeponte has joined #ruby
<Spooner> It isn't very readable. Try running each section of it incrementally (that is, run the group_by first, then the group_by & min_by).
kpshek has quit []
Yakko has joined #ruby
<FuzaiDesktop> ty :)
icole has quit [Remote host closed the connection]
nateberkopec has joined #ruby
<Spooner> This is probably clearer: h = { "a" => 0, "b" => 2, "c" => 3, "d" => 0 }; h.select {|k, v| v == h.values.min }.keys
nateberkopec has quit [Client Quit]
<Spooner> Anyway: 'night!
<havenwood> Spooner: G'night!
Spooner has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
moos3 has joined #ruby
yshh has quit [Remote host closed the connection]
Seventoes has joined #ruby
sn0wb1rdz is now known as sn0wb1rd
<Yakko> hey guys, I have a class User and I'm in the console, can I somehow figure out which file that class is described?
adeponte has quit [Ping timeout: 260 seconds]
Seventoes has left #ruby [#ruby]
jean-lou` has quit [Read error: Connection reset by peer]
yshh has joined #ruby
<FuzaiDesktop> So what i did
<FuzaiDesktop> here i'll pastie it
tcstar has joined #ruby
<havenwood> Yakko: Just to clarify, you want to determine the file where the class came from?
<Yakko> havenwood: yup, where it is located in my computers
<FuzaiDesktop> I haven't tested it yet, but i found that keep_if statement scanning the hash docs and thought it could be useful here
BRMatt has quit [Read error: Operation timed out]
<Ohga> havenwood: well, I think I'll call it for today. If I find any psych guides I'll get back to you tomorrow
reset_ has joined #ruby
reset_ has quit [Client Quit]
<havenwood> Ohga: Cool, ya i'd be curious.
<Yakko> havenwood: there's a wonderful bug but I need to figure out which gem is causing it
pdamer has quit [Quit: pdamer]
Tref has quit [Quit: Tref]
Ohga has left #ruby [#ruby]
pdamer has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
mikepack has joined #ruby
reset has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
techlife has quit [Ping timeout: 246 seconds]
apok has quit [Quit: apok]
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
chico_chicote has quit [Read error: Connection reset by peer]
techlife has joined #ruby
<havenwood> Yakko: I'd prolly `grep -R ClassNameHere *.rb`, try to find the code where the gem is required.
h4mz1d has quit [Ping timeout: 245 seconds]
allaire has joined #ruby
<akhet> anyone here familar with MVC?
<havenwood> akhet: Yes. I'm sure lots are.
<Quadlex> The principle? Or is there a tool?
<akhet> the principle ...trying to wrap my head around it
ninjanoise has joined #ruby
nga4 has joined #ruby
<akhet> i feel like i should know about this principal already but i dont ...oh well
<havenwood> akhet: View gets served up to the browser, Model is where you get the data from the db, and no one has yet discovered what a Controller is.
<akhet> lol
cyberflux has quit []
cha1tanya has joined #ruby
<akhet> ty havenwood
axl_ has joined #ruby
BrockBoland has joined #ruby
<akhet> isnt the controller just the interaction with the browser?
<ninjanoise> n00b question if someone wants to humor me..
<BrockBoland> any chance someone could help me with a question that has been immensely difficult to google? I'm kind of a newb here
<havenwood> akhet: Might ask in #RubyOnRails since Rails is an MVC framework. I'll eat my shoe if they can explain what a Controller is without talking gibberish. :P
<havenwood> Ask!
<BrockBoland> I'm looking at some code that does: `new(myvar) if myvar` at the end of a method. Not .new on an object: just new by itself. What is that?
<akhet> ty havenwood
<akhet> you are a good man
<ninjanoise> http://www.ruby-lang.org/en/documentation/quickstart/3/ on this page the last 2 examples how does "initialize" get run?
<ninjanoise> mg = MegaGreeter.new
xclite has quit [Remote host closed the connection]
<ninjanoise> when that is run is it that ruby is smart enough to run the initialize?
<ninjanoise> is initialize a special method?
<havenwood> BrockBoland: What is?: p myvar
zehrizzatti has joined #ruby
<havenwood> ninjanoise: Yes, initialize is a special class method.
<ninjanoise> havenwood thanks
kornnflake is now known as kornnflake_zzz
<ninjanoise> then the other 2 say_hi and say_bye call the other methods so that makes sense :)
<havenwood> ninjanoise: It is magic, good exercise to re-implement Ruby's class from a module.
<havenwood> ninjanoise: Avdi did just that in a RubyTapas, sec I'll check if it was a free episode, super interesting!
wargasm has joined #ruby
averiso has joined #ruby
<FuzaiDesktop> http://pastie.org/6457285 can anyone explain why gem can install the json library but irb can't seem to find it anywhere?
<BrockBoland> havenwood: it's a hash, does that help?
Hanmac2 has joined #ruby
<FuzaiDesktop> nm i found it in debians repo as well
julian-delphiki has joined #ruby
julian-delphiki has quit [Client Quit]
drale2k has joined #ruby
nateberkopec has joined #ruby
nateberkopec has quit [Remote host closed the connection]
<BrockBoland> havenwood: never mind, but also thanks. Trying to help my wife with a project, but she's talking to an instructor
Takehiro has joined #ruby
endzyme has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 248 seconds]
<yfeldblum> ninjanoise, no, initialize isn't "special"; it's just that `MegaGreeter.new` is defined to allocate an instance of the object and then call the #initialize method on that object
emmanuelux has quit [Quit: emmanuelux]
mockra has joined #ruby
<yfeldblum> BrockBoland, "new" is an instance method that class objects have; if `self` is a class such as Object, then calling `new` is sort of equivalent to calling `self.new` which is like calling `Object.new`
Takehiro has quit [Ping timeout: 240 seconds]
<BrockBoland> yfeldblum: aha! thanks!
kofno has quit [Remote host closed the connection]
fedza has quit []
baroquebobcat has joined #ruby
<yfeldblum> akhet, a Controller class is where you put the code you want Rails to run when certain matching HTTP requests come in from the browser
kofno has joined #ruby
<yfeldblum> akhet, a Controller class can do things like look at the querystring parameters in the URL, fetch data from the database, render some HTML from that data, etc
markalanevans has quit [Ping timeout: 272 seconds]
<akhet> this is my new favorite channel
<akhet> :)
<akhet> ty
joeycarmello has quit [Remote host closed the connection]
<ninjanoise> does anyone have a good place to read up on classes and methods?
mockra has quit [Ping timeout: 260 seconds]
<yfeldblum> akhet, the Controller class will look at the querystring parameters directly, but when it comes to fetching data from the database, the controller will likely delegate that bit to a different Model class, and when it comes to rendering some HTML from that data, again, the controller will likely delegate that bit to a View file
cha1tanya has quit [Ping timeout: 264 seconds]
tcstar has quit [Ping timeout: 250 seconds]
<yfeldblum> akhet, but you still write that code in the controller to do that or to call something else that does that
heliumsocket_ has joined #ruby
heliumsocket_ has quit [Client Quit]
<yfeldblum> BrockBoland, cheers
kofno has quit [Remote host closed the connection]
heliumsocket has quit [Ping timeout: 252 seconds]
butblack has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
chrishough has quit [Quit: chrishough]
havenwood has quit [Remote host closed the connection]
malkomalko has quit [Remote host closed the connection]
BrockBoland has quit [Quit: BrockBoland]
<Yakko> is there anything in the Ruby syntax that allows me to unload a class in runtime?
quazimodo has quit [Ping timeout: 256 seconds]
dannluciano has joined #ruby
dannluciano has quit [Client Quit]
NiteRain has joined #ruby
tcstar has joined #ruby
adeponte has joined #ruby
eAlchemi_ has joined #ruby
cha1tanya has joined #ruby
rgbdev has quit [Quit: rgbdev]
virtualroot has left #ruby [#ruby]
mneorr has joined #ruby
diegok has quit [Read error: Operation timed out]
macmartine has joined #ruby
<FuzaiDesktop> Wow Ruby is so awesome
mneorr has quit [Remote host closed the connection]
Yakko_ has joined #ruby
eAlchemist has quit [Ping timeout: 256 seconds]
jamesfung14 has quit [Ping timeout: 252 seconds]
Yakko has quit [Ping timeout: 245 seconds]
terrorpup has joined #ruby
terrorpup has quit [Changing host]
terrorpup has joined #ruby
Emplitz has joined #ruby
joeycarmello has joined #ruby
quazimodo has joined #ruby
<thecodet1inker> How can I store a function in an array?
<thecodet1inker> or a pointer to that function or something like that
mockra has joined #ruby
<tylersmith> thecodet1inker:
diegok has joined #ruby
<tylersmith> sorry, hit enter early. 1 sec
<tylersmith> thecodet1inker: https://gist.github.com/tyler-smith/5139961
<thecodet1inker> 0.o
<thecodet1inker> ah
<thecodet1inker> can you do something like b = [self.method(:move)]?
<tylersmith> yep
mneorr has joined #ruby
mafolz has quit [Ping timeout: 252 seconds]
<thecodet1inker> ruby is just amazing
<thecodet1inker> and so are you
<tylersmith> basically Object#method returns the method for the given symbol
<thecodet1inker> thanks
<tylersmith> then you can do whatever
<tylersmith> i'm only amazing because i ruby ;)
<tylersmith> np
j^2 has joined #ruby
<thecodet1inker> thx again
<thecodet1inker> So can i call it like b.last()?
thecodethinker has quit [Quit: Lost terminal]
mafolz has joined #ruby
<tylersmith> thecodet1inker: b.last() returns the method itself
<tylersmith> you need to call #call on it to execute
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
joeycarmello has quit [Remote host closed the connection]
<tylersmith> b.last().call()
<thecodet1inker> #call?
<thecodet1inker> ah
<tylersmith> (parens for clarity)
Yakko_ has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
<tylersmith> Foo#bar means the bar method on an instance of Foo
<thecodet1inker> kk
<tylersmith> so shorthand, #call is the call instance method on whatever is in context
Guest711 is now known as mephux
baroquebobcat has quit [Quit: baroquebobcat]
Opettaja has quit [Quit: leaving]
mephux has quit [Changing host]
mephux has joined #ruby
Proshot has quit [Ping timeout: 255 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
yshh has quit [Ping timeout: 245 seconds]
otters has quit [Quit: bye]
pepper_chico has quit [Quit: Computer has gone to sleep.]
baroquebobcat has joined #ruby
ninjanoise has quit [Remote host closed the connection]
moos3 has quit [Quit: Computer has gone to sleep.]
alvaro_o has quit [Quit: Ex-Chat]
hasimo has quit [Remote host closed the connection]
dcwu has joined #ruby
otters has joined #ruby
allaire has quit []
w400z has quit []
jurassic_ has joined #ruby
rezzack has quit [Quit: Leaving.]
robbsan has joined #ruby
mikepack has quit [Remote host closed the connection]
xsdg has quit [Ping timeout: 250 seconds]
end_guy has quit [Ping timeout: 276 seconds]
drumsrgr8forn8 has joined #ruby
mneorr has quit [Remote host closed the connection]
icole has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
robbsan has quit [Client Quit]
robbsan has joined #ruby
robbsan has quit [Client Quit]
ckrailo has joined #ruby
Opettaja has joined #ruby
kofno has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Opettaja has quit [Client Quit]
happydude has joined #ruby
pepper_chico has joined #ruby
quazimodo has quit [Ping timeout: 255 seconds]
Opettaja has joined #ruby
xsdg has joined #ruby
quazimodo has joined #ruby
yacks has joined #ruby
openstandards has joined #ruby
kn330 has quit [Ping timeout: 272 seconds]
<openstandards> evening all
senayar has quit [Remote host closed the connection]
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
S1kx has quit [Quit: Leaving]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
robbyoconnor has joined #ruby
yashshah has joined #ruby
devdazed has quit [Ping timeout: 256 seconds]
joeycarmello has joined #ruby
axtran has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
devdazed has joined #ruby
end_guy has joined #ruby
Takehiro has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
beneggett has joined #ruby
miso1337 has joined #ruby
hemanth has joined #ruby
dhruvasagar has joined #ruby
cha1tanya has quit [Quit: Leaving]
FifthWall has joined #ruby
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
Takehiro has quit [Ping timeout: 264 seconds]
pdamer has quit [Quit: pdamer]
tomzx_mac has quit [Read error: Operation timed out]
w400z has joined #ruby
h4mz1d has joined #ruby
jurassic_ has quit [Quit: jurassic_]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
jurassic_ has joined #ruby
jurassic_ has quit [Client Quit]
icole has quit [Remote host closed the connection]
elux has quit [Quit: Leaving...]
tommyvyo has quit [Quit:]
butblack has quit [Quit: butblack]
jurassic_ has joined #ruby
sayan has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
yshh has joined #ruby
Opettaja has joined #ruby
Targen has quit [Read error: Connection reset by peer]
sayan has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
mikepack has joined #ruby
jurassic_ has quit [Client Quit]
macmartine has joined #ruby
Beoran_ has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
miso1337 has quit [Quit: afk]
Beoran__ has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
havenwood has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
adkron__ has joined #ruby
freezey has quit [Remote host closed the connection]
beneggett has quit [Ping timeout: 248 seconds]
yashshah has quit [Read error: Connection reset by peer]
HecAtic has quit [Quit: Àá¼ö]
malkomalko has joined #ruby
sayan has joined #ruby
lewix has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
miso1337 has joined #ruby
jdunck has joined #ruby
malkomalko has quit [Ping timeout: 255 seconds]
miso1337 has quit [Client Quit]
chiel_ is now known as chiel
radic has quit [Disconnected by services]
radic_ has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
rhys has joined #ruby
tommyvyo has joined #ruby
thecodet1inker has quit [Quit: leaving]
<rhys> so if ruby is like magic. and I loaded some random gem. and it has no real documentation. Ruby has it loaded somehow. Can I make ruby enumerate the methods that the library loaded?
jurassic_ has joined #ruby
<rhys> I am not a developer, i've only done some c++ and python before.
ebobby has quit [Quit: Lost terminal]
<hemanth> rhys, yes, use the .methods on the obj
<epitron> rhys: gem install pry
<epitron> then do "cd TheObject; ls"
v0n has quit [Ping timeout: 256 seconds]
<hemanth> epitron, why not TheObj.methods?
<epitron> because pry shows everything, in a nice table, with colors
<rhys> theobj.methods doesn't seem to work
<rhys> ahhh. that one does.
<hemanth> >> String.methods
<eval-in> hemanth => [:try_convert, :allocate, :new, :superclass, :freeze, :===, :==, :<=>, :<, :<=, :>, :>=, :to_s, :inspect, :included_modules, :include?, :name, :ancestors, :instance_methods, :public_instance_methods, : ... (http://eval.in/12481)
<hemanth> rhys, ^ :)
<hemanth> String.methods.sort
<epitron> pry
<hemanth> epitron, I have been using pry from first version btw ;)
<rhys> hemanth, i was trying to run it on an object I created from a subobject thingy.
<epitron> i'm talking to rhys
<rhys> epitron, i'll try that.
<epitron> :)
<hemanth> epitron, I want the new comer to know about some basic ruby
ryanf has quit [Ping timeout: 264 seconds]
<epitron> fair enough
<epitron> cd Object; ls
<epitron> :)
<rhys> thats funny actually
rh1n0 has joined #ruby
hasimo has joined #ruby
<rhys> oh wow. pry.
<rhys> I'm in ops working on puppet. I can write some puppet stuff.
markalanevans has joined #ruby
jurassic_ has quit [Quit: jurassic_]
<rhys> also, when I do a google search for some kind of reference that describes what all ||= << etc do, what do I call those operators. I know how objects overload operators for C++,
<rhys> operator overload list ruby doesn't return much
<hemanth> read the docs rhys
banjara has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<rhys> rather read the code.
carlyle has quit [Remote host closed the connection]
kpshek has quit [Ping timeout: 255 seconds]
cyong has joined #ruby
macmartine has quit [Quit: Computer has gone to sleep.]
jurassic_ has joined #ruby
macmartine has joined #ruby
Demux has quit [Ping timeout: 260 seconds]
divout has joined #ruby
jurassic_ has quit [Client Quit]
<hemanth> rhys, docs have the code as well ;)
lewix has quit [Remote host closed the connection]
Nisstyre has quit [Ping timeout: 245 seconds]
lewix has joined #ruby
d2dchat has quit [Remote host closed the connection]
Demux has joined #ruby
<rhys> hemanth, at some point I'm going to have to read the docs. there is no question about that. but I learn because I'm forced to. Right now I"m trying to figure out what my next command needs to be to get this API data out of this library on crimes in chicago. In an attempt to not shave yaks, I try to get my info and get out, eventually I'll have enough info to do more, faster.
mneorr has joined #ruby
<hemanth> rhys, good :)
Takehiro has joined #ruby
adkron__ has quit [Ping timeout: 256 seconds]
<rhys> thanks dude.
<hemanth> np
<epitron> rhys: did you find where all the << || == operators are?
nga4 has quit []
mneorr has quit [Ping timeout: 245 seconds]
sayan has quit [Read error: Connection reset by peer]
<epitron> :D
<epitron> (that module is mixed into anything that can be compared with <, >, ==, !=, etc.)
pepper_chico has quit [Quit: Computer has gone to sleep.]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
Myconix has joined #ruby
jonahR has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
one` has joined #ruby
Nisstyre has joined #ruby
ryanf has joined #ruby
jurassic_ has joined #ruby
kpshek has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
tommyvyo has quit [Quit:]
miso1337 has joined #ruby
Domon has quit [Remote host closed the connection]
Cooler__ has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
uris has quit [Quit: Leaving]
lewix has quit [Remote host closed the connection]
Chintan has joined #ruby
<Chintan> How would I do this manually (e.g. with a .each or something) items = Hash[content.scan(/[\n\r](.+):[\ \t]*(.+)/)]
Cooler_ has quit [Ping timeout: 255 seconds]
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
beneggett has joined #ruby
zehrizzatt has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
<Chintan> Hey all, quick question. Let's say I have a string, and I run .scan on it to get an array of matches for a regex. How would I then delete every line that had a match in that string? (assuming lines are separated by \n)
cr3 has joined #ruby
zehrizzatti has quit [Ping timeout: 252 seconds]
sayan has joined #ruby
miso1337 has quit [Quit: unplugging]
echevemaster_ has joined #ruby
jurassic_ is now known as jurassic
icole has joined #ruby
cr3 has quit [Client Quit]
<rhys> Chintan, i would cut the string up first via lines
danman has joined #ruby
<hemanth> Chintan, something like sed will be more useful here
<rhys> Chintan, then do a match, if match, delete from array
kpshek has quit []
<Chintan> rhys: Ah got it, thanks!
<rhys> Chintan, maybe look at String#each_line
toekutr has quit [Remote host closed the connection]
<rhys> Chintan, I found that in the doc while looking for split. it seems to be capable of exactly what you want
tommyvyo has joined #ruby
<Chintan> rhys: I'm an idiot for not looking at the doc haha, thanks a bunch
bricker`1A has joined #ruby
<hemanth> rhys, heh heh docs save the day ;)
<epitron> Chintan: how about this: matches = []; non_matching_lines = file.reject { |line| matches << line.scan(...) }; matches.compact!
icole has quit [Ping timeout: 272 seconds]
<rhys> hemanth, your point could not be more clear.
mneorr has joined #ruby
<epitron> DOCS DOCS DOCS DOCS DOCS
<rhys> omg i can use pry as a new irb
<epitron> GOTTA READ 'EM ALL!
drumsrgr8forn8 has quit [Ping timeout: 245 seconds]
<epitron> pry is irb on crack :D
bricker`LA has quit [Ping timeout: 248 seconds]
<epitron> rhys: btw, pry-rescue would probably come in really handy for someone starting out with ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
<epitron> instead of doing "ruby script.rb", you do "rescue script.rb", and if something blows up, it pries into where the bug happened, letting you inspect variables
* hemanth had meet the pry author once in #ruby, unable to recall his nick
w400z has quit [Quit: Computer has gone to sleep.]
girija has joined #ruby
<epitron> BANISTERFIEND
<hemanth> oh is it! heh heh ok, I was telling the author himself how pry is good, after talking for a while....he said I'm the author
<hemanth> :D
<hemanth> banisterfiend++ :)
freezway has quit [Quit: Leaving]
<Chintan> epitron: Hm, didn't seem to work
<rhys> hemanth is banisterfiend?
<Chintan> epitron: Here's my code, does it look right? https://gist.github.com/5140501
<hemanth> rhys, no! but trying to be ;)
V8Energy has quit [Ping timeout: 256 seconds]
<epitron> Chintan: oh sorry, scan returns an empty array.. so that won't work
<rhys> i suddenly understand why admins are using Ruby. cd, ls, cat. its like bang your head against the wall tunneling, but soo nice.
beneggett has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
Trinsta has joined #ruby
<epitron> Chintan: i commented on it
yashshah has joined #ruby
<epitron> Chintan: the reject method was really hard to read. i just went for the dead simple version. :)
<Chintan> epitron: Haha fair enough
<epitron> i'd probably even take out the (match = ...).any? and just put match = .. on the preceding line
<Chintan> epitron: Still doesn't seem to be working, matches doesn't have anything in it
<epitron> hah
<epitron> sec
<epitron> there, reload my comment :)
<Chintan> What does p do?
dhruvasagar has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
bigmac has joined #ruby
<epitron> 'p x' is the same as 'puts x.inspect'
<bigmac> can some one help me correct the last part of this if statement
<bigmac> if i.include?(local_host) || i.include?(gate_way) || i.include?(buff.each{|x|})
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<bigmac> buff=["1234","5678"]
<epitron> if (i & [local_host, gate_way, *buff.each.to_a]).any?
mockra has quit [Remote host closed the connection]
FifthWall has quit [Quit: Textual IRC Client: www.textualapp.com]
<bigmac> whats * for/
<epitron> splat!
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<epitron> [ 1, 2, *[3,4 ] == [1,2,3,4]
<epitron> err
<epitron> [ 1, 2, *[3,4] ] == [1,2,3,4]
<bigmac> ok... so you include local_host and gateway
<epitron> here's another possibility: [local_host, gate_way, *buff].any? { |x| i.include? x }
Trinsta has quit [Read error: Connection reset by peer]
<epitron> that would probably be faster, depending on how big "i" is
wallcloc_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
ocnam has joined #ruby
bnagy_ is now known as bnagy
drale2k has quit [Quit: Leaving...]
talktokets has joined #ruby
mneorr has quit [Read error: Connection timed out]
drale2k has joined #ruby
mneorr has joined #ruby
adeponte has quit [Remote host closed the connection]
a_a_g has joined #ruby
adeponte has joined #ruby
joeycarmello has quit [Remote host closed the connection]
a_a_g1 has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
a_a_g has quit [Disconnected by services]
a_a_g1 is now known as a_a_g
chrishunt has quit [Quit: ZzZzZz...]
<rhys> The farthest north that chicago will ever report on its crimes is 42.02273605311297
Domon has joined #ruby
beneggett has joined #ruby
browndawg has joined #ruby
<rhys> and success. I can use the library.
rhys has quit [Quit: Leaving]
jonahR has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
browndawg has quit [Client Quit]
martynas has joined #ruby
talktokets has left #ruby [#ruby]
martynas is now known as Guest96043
rippa has joined #ruby
axl_ has quit [Quit: axl_]
havenn has joined #ruby
<Chintan> epitron: Oh awesome, thanks!
mneorr has quit [Read error: Connection timed out]
jurassic has quit [Quit: jurassic]
ananthakumaran1 has joined #ruby
mneorr has joined #ruby
chrishough has quit [Quit: chrishough]
rtdp has joined #ruby
gothicsouth has joined #ruby
cyberarm has joined #ruby
tonini has joined #ruby
BizarreCake has joined #ruby
cyberarm has left #ruby ["Leaving"]
tjbiddle has joined #ruby
robustus has joined #ruby
adeponte has quit [Remote host closed the connection]
tvw has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
Quebert has joined #ruby
adeponte has joined #ruby
yashshah has joined #ruby
Chintan has left #ruby [#ruby]
joeycarmello has joined #ruby
Evixion has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
<Hanmac> shevy! rbtree lives :D yesterday was an update :D
bigmac has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
adeponte has joined #ruby
hogeo has quit [Quit: Leaving...]
tommyvyo has quit [Quit:]
mneorr has quit [Read error: Connection timed out]
jurassic has joined #ruby
mneorr has joined #ruby
Watcher7 has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
twoism has quit [Remote host closed the connection]
jurassic has quit [Client Quit]
ckrailo has quit [Quit: Computer has gone to sleep.]
dawkirst has quit [Read error: Connection reset by peer]
jurassic has joined #ruby
vieenay has joined #ruby
FISH_SOUP has joined #ruby
yacks has quit [Read error: Operation timed out]
<FISH_SOUP> hi, is there a way to repeat the format specifiers w/o repeating the same variable over and over?
<FISH_SOUP> puts "%x %d %b" % [number, number, number]
lolmaus has joined #ruby
yourmysin has joined #ruby
hbpoison has joined #ruby
adeponte has quit [Remote host closed the connection]
<Hanmac> >> "%<n>x %<n>d %<n>b" % {n: 10 }
<eval-in> Hanmac => "a 10 1010" (http://eval.in/12483)
<Hanmac> FISH_SOUP there is your breadcrump :P
<FISH_SOUP> Hanmac: is this something new?
tjbiddle has quit [Quit: tjbiddle]
<FISH_SOUP> i was googling and i saw something like this
<Hanmac> relative "new"
forced_request has quit [Ping timeout: 260 seconds]
<Hanmac> Fish_soup did it works for you?
<FISH_SOUP> puts "%x %d %b" % [number].*(3)
<FISH_SOUP> oh i see, if its a new syntax, then the tutorial wont probably have that
<epitron> Hanmac: so RBTree makes it easy to query ranges?
<epitron> s/easy/fast/
noop has joined #ruby
<Hanmac> epitron: hm no ... i use it for an better "Tree" syntax ... the interesting thing is that the gem has features from 2.0 inside
HecAtic has joined #ruby
nomenkun has joined #ruby
cyong has quit [Quit: Leaving.]
tylersmith has quit [Quit: tylersmith]
<Hanmac> FISH_SOUP look at the tutorial ... what version does it have? because the feature is from 1.9 ... and your tut maybe is for 1.8
sayan has quit [Ping timeout: 245 seconds]
jphpsf has quit [Ping timeout: 272 seconds]
<FISH_SOUP> yeah it could be possible
<epitron> Hanmac: what's syntax gotta do with it?
mneorr has quit [Read error: Connection timed out]
codecop has joined #ruby
<hemanth> Hanmac, sup?
yashshah has quit [Read error: Connection reset by peer]
jdunck has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
drumsrgr8forn8 has joined #ruby
<Hanmac> epitron: in 2.0 there are sized enumerators, and the new rbtree gem does use them
jurassic has quit [Quit: jurassic]
<Hanmac> hemanth what is? :P
hashmal has joined #ruby
<hemanth> Hanmac, waasup.shorten => sup ;)
Criztian_ has quit [Read error: Connection reset by peer]
mockra has joined #ruby
markalanevans has quit [Quit: markalanevans]
<Hanmac> i would have shorted it to wsp :P
<Hanmac> >> (1..3).cycle.size
<hemanth> heh heh
<eval-in> Hanmac => Infinity (http://eval.in/12484)
<hemanth> :D
Morkel has joined #ruby
shuky has quit [Quit: shuky]
<Hanmac> its SOOO cool that enumerators now know its own size :D
<hemanth> Hanmac, where in particular will it be useful?
a_a_g has quit [Quit: Leaving.]
<Hanmac> hemanth so you will know how many iterations will be without iterating them :P
mockra has quit [Ping timeout: 252 seconds]
Tref has joined #ruby
Tricon has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Clownz has joined #ruby
hashmal has quit [Quit: Textual IRC Client: www.textualapp.com]
carraroj has joined #ruby
a_a_g has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
a_a_g1 has joined #ruby
JohnBat26 has joined #ruby
<hemanth> Hanmac, heh heh, PM?
happydude has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
<Hanmac> not now :P
<hemanth> hmm ^_^
HecAtic has quit [Quit: HecAtic]
Davey has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
<hemanth> >> $>
<eval-in> hemanth => #<IO:<STDOUT>> (http://eval.in/12485)
a_a_g has quit [Ping timeout: 240 seconds]
<Hanmac> >> $<
<eval-in> Hanmac => ARGF (http://eval.in/12486)
<hemanth> >> $>.write "lol"
<eval-in> hemanth => lol3 (http://eval.in/12487)
<hemanth> 3?
<Hanmac> 3 byte was written, the return value of write
<hemanth> >> $>.flush
<eval-in> hemanth => #<IO:<STDOUT>> (http://eval.in/12488)
<hemanth> ha ok
<epitron> >> $> << $<
<eval-in> epitron => ARGF#<IO:<STDOUT>> (http://eval.in/12489)
<hemanth> heh heh
ahammond has joined #ruby
mneorr has quit [Read error: Connection timed out]
<epitron> >> $< < $> << $< > $>
<eval-in> epitron => /tmp/execpad-671f7bd18715/source-671f7bd18715:2:in `<main>': undefined method `<' for ARGF:ARGF.class (NoMethodError)
<eval-in> ARGF (http://eval.in/12490)
<hemanth> $> what is called? just STDOUT?
mneorr has joined #ruby
hashmal has joined #ruby
Hanmac has quit [Quit: Leaving.]
zehrizzatt has quit [Read error: Connection reset by peer]
zehrizzatti has joined #ruby
yourmysin has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 255 seconds]
robbsan has joined #ruby
forced_request has joined #ruby
robustus has joined #ruby
jphpsf has joined #ruby
dallasm has joined #ruby
Tricon has quit [Quit: Leaving...]
nomenkun has quit [Remote host closed the connection]
yacks has joined #ruby
Triconium has joined #ruby
beneggett has joined #ruby
jphpsf has quit [Ping timeout: 260 seconds]
apeiros_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Tricon has joined #ruby
Tref has quit [Quit: Tref]
Davey has joined #ruby
aderyabin has joined #ruby
Triconium has quit [Ping timeout: 260 seconds]
braoru has joined #ruby
danman has quit [Quit: danman]
jphpsf has joined #ruby
dallasm has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 260 seconds]
zehrizzatti has quit [Quit: Leaving...]
lkba has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
adeponte has joined #ruby
ocnam has quit [Quit: Quit: Textual IRC Client: http://www.textualapp.com/]
mneorr has quit [Read error: Connection timed out]
havenn has quit [Remote host closed the connection]
mneorr has joined #ruby
a_a_g1 is now known as a_a_g
Watcher7 is now known as Watcher7|off
tagrudev has joined #ruby
divout has quit [Read error: Connection reset by peer]
Tricon is now known as Tricon
andikr has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
divout has joined #ruby
rippa has joined #ruby
jphpsf has quit [Ping timeout: 252 seconds]
ananthakumaran has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 255 seconds]
Tricon has quit [Quit: Leaving...]
jphpsf has joined #ruby
ananthakumaran1 has quit [Ping timeout: 252 seconds]
carraroj has quit [Quit: Konversation terminated!]
Tricon has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
shuky has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
rippa has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
Hanmac has joined #ruby
forced_request has joined #ruby
Niamkik_ is now known as Niamkik
mahmoudimus has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: Leaving...]
banjara has quit [Quit: Leaving.]
beneggett has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
banjara has joined #ruby
Clownz has quit [Ping timeout: 256 seconds]
wallclockbuilder has joined #ruby
jphpsf has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
Clownz has joined #ruby
Xeago has joined #ruby
Morkel_ has joined #ruby
vlad_starkov has joined #ruby
havenn has joined #ruby
emergion has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
marcgg_ has quit [Ping timeout: 276 seconds]
skattyadz has joined #ruby
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
banjara has quit [Client Quit]
rpk has joined #ruby
Morkel has quit [Ping timeout: 250 seconds]
Morkel_ is now known as Morkel
banjara has joined #ruby
tylersmith has joined #ruby
El_loco has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
atyz has joined #ruby
rh1n0 has quit [Ping timeout: 240 seconds]
cantonic has joined #ruby
banjara has quit [Client Quit]
mneorr has quit [Read error: Connection timed out]
a_a_g1 has joined #ruby
kofno has joined #ruby
mneorr has joined #ruby
banjara has joined #ruby
girija has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 260 seconds]
aderyabin has quit [Ping timeout: 272 seconds]
banjara has quit [Client Quit]
beneggett has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Ping timeout: 240 seconds]
banjara has joined #ruby
banjara has quit [Client Quit]
charliesome has joined #ruby
banjara has joined #ruby
apeiros_ has joined #ruby
banjara has quit [Client Quit]
rh1n0 has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
dr_bob1 has joined #ruby
banjara has joined #ruby
soc42 has joined #ruby
hemanth has joined #ruby
<apeiros_> at work :(
devdazed has quit [Ping timeout: 250 seconds]
<Xeago> the whole launch event is there
rpk has left #ruby [#ruby]
<Xeago> if you want to watch missed stuff
<apeiros_> ah! bookmarked
<apeiros_> currently searching for a good pic/gif for a twitter status update :)
<Xeago> and hell, 9sec response time, must be working so hard :)
<aedornm> Did they ever finish SC2 DotA?
<Xeago> aedornm: storm of the xyz?
<Paradox> also
<Paradox> im totally using that to show how propeganda is made out of ordinary footage
goleldar has quit [Ping timeout: 252 seconds]
<aedornm> Xeago: Is that what they called it?
<FISH_SOUP> is p a shortcut of puts or print?
<Xeago> think so
<Xeago> FISH_SOUP: p does an inspect on the object
quazimodo has quit [Remote host closed the connection]
<Hanmac> from what i see at SC2 i liked the old one more ... :( ... i like to build Bases
<Xeago> lots of expands going on in sc2 :O?
ferdev has quit [Quit: ferdev]
jphpsf has joined #ruby
mahmoudimus has joined #ruby
<FISH_SOUP> Xeago: is this a built in method?
quazimodo has joined #ruby
xpen has joined #ruby
<apeiros_> now I need me some photoshop to put the HOTS package on his hands ^^
pedda has quit [Quit: Computer has gone to sleep.]
devdazed has joined #ruby
haxrbyte has joined #ruby
<aedornm> Hanmac: You tend to expand pretty fast in SC2 ... the main difference from SC1 to SC2 is really the pacing. SC2 games are far quicker
<Xeago> FISH_SOUP: p is built in yes
fuzai has joined #ruby
<Xeago> aedornm: me and apeiros_ are looking for more practice partners!
douglarek_ has quit [Quit: 我玩去了]
<Xeago> Hanmac, aedornm come join :)
<apeiros_> indeed!
eAlchemi_ has quit [Remote host closed the connection]
<apeiros_> 2v2 practice would probably be fun too
<apeiros_> Xeago: btw., as of today, only HOTS, no WOL ^^
<Hanmac> aedornm yeah and thats my problem ... all new games are like DOTA clones :'( ... i want to build my bases and build BUILDINGS and other stuff :(
<Xeago> apeiros_: fine
<Xeago> Hanmac: terran builds lots of buildings
eAlchemist has joined #ruby
<Xeago> protoss a bit less so
<Xeago> still lots of gateways
aganov has joined #ruby
<Xeago> several robos/stargates
<Xeago> and tons of pylons ;)
<Hanmac> Eldar are more cool than Protoss :PP
<Xeago> terran needs 10+ barracks after 25mins
<Xeago> unless the game is totally wonky
<apeiros_> zerg don't build
<apeiros_> they become :D
<aedornm> hmmm.. SC2 was great until I hit higher leagues and it all came down to who screwed up their build first. =(
<Xeago> apeiros_: yea, 15hatch 16 pool, 17 gas kills me
<Xeago> :\
<apeiros_> rly?
* apeiros_ duly noted
<Xeago> or anything that is as aggressive like that
<Xeago> which is not really agressive
<apeiros_> 8 pool? ^^
<Xeago> 8pool hits scoutable
<Xeago> 7pool would hit before pylon completes/forge is killable
<Xeago> tho, 8pool hits a bit harder
hbpoison has quit [Ping timeout: 245 seconds]
<Xeago> I'd say that is more of a gamble
<Xeago> tho, 10/11pool with 4 lings
v1p has joined #ruby
<Xeago> doesn't put you behind that much, early queen is awsome
<aedornm> Hanmac: Did you play Total Annihilation or Supreme Commander 1? Those were endless base building simulators! heh
* Xeago played TA
lemonsparrow has joined #ruby
* Hanmac likes the little tiny zerglings :P
<Xeago> think the binary was like 120kb? awsome gfx
jacky has quit [Excess Flood]
dangerousdave has joined #ruby
<FISH_SOUP> how do you do a count++ in ruby?
<Xeago> count+=1
El_loco has quit [Ping timeout: 272 seconds]
<FISH_SOUP> oh, ruby doesnt have --count or counter++ ?
<FISH_SOUP> stuff like that?
<Xeago> correct
<aedornm> Yeah, it was pretty small. SC1 was good, SC2 took the game in a different direction but it wasn't too bad, either.
girija has joined #ruby
<Xeago> still torn about my opinion about hots
<Xeago> pro scene looks cool
<Xeago> but afraid of ladder
eAlchemist has quit [Ping timeout: 245 seconds]
haxrbyte_ has joined #ruby
<Xeago> and like PROXY ALL THE WIDOW MINES
<Xeago> and PROXY ALL THE ORACLES
<Xeago> :\
sleetdrop has joined #ruby
adkron_ has quit [Read error: Connection reset by peer]
adkron_ has joined #ruby
<FISH_SOUP> puts "The script is called: #{$0}" why doesn't it have $1 or $2 ?
haxrbyte has quit [Ping timeout: 245 seconds]
filipe has joined #ruby
bricker`1A has quit [Read error: Connection reset by peer]
apod has joined #ruby
<Hanmac> FISH_SOUP $0 is short for $PROGRAM_NAME, $1-$9 are used for regex and =~
<FISH_SOUP> ah i see okay
arturaz has joined #ruby
jonahR has quit [Quit: jonahR]
ahammond has quit [Quit: ahammond]
arturaz has quit [Remote host closed the connection]
arturaz has joined #ruby
yeltzooo has quit [Read error: Operation timed out]
yeltzooo has joined #ruby
ahammond has joined #ruby
bricker`LA has joined #ruby
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
filipe has quit [Ping timeout: 245 seconds]
soc42 has quit [Remote host closed the connection]
jprovazn has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
yashshah has joined #ruby
<Xeago> the poems are awesome
tonini has quit [Remote host closed the connection]
zigomir has joined #ruby
<Hanmac> poems? ... what do you mean? ... lyric or the buildunits from WC1+?
<Xeago> poems made during for a contest at the launch event
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
francisfish has joined #ruby
binw has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 246 seconds]
jacky has joined #ruby
binw has joined #ruby
<Xeago> also 104minutes in
adeponte has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
lemonsparrow has quit [Ping timeout: 245 seconds]
adr has joined #ruby
lemonsparrow has joined #ruby
Astralum has joined #ruby
havenn has quit [Remote host closed the connection]
rh1n0 has quit [Quit: -- away --]
BizarreCake has quit [Ping timeout: 245 seconds]
anderse has joined #ruby
ferdev has joined #ruby
filipe has joined #ruby
yacks has quit [Read error: Connection reset by peer]
<apeiros_> Xeago: incomplete, but gotta work now: http://imgur.com/k65TTZb
rh1n0 has joined #ruby
tonini has joined #ruby
wallcloc_ has joined #ruby
chussenot has joined #ruby
senayar has joined #ruby
arturaz has quit [Remote host closed the connection]
ryanf has quit [Quit: leaving]
chussenot has quit [Client Quit]
xpen_ has joined #ruby
wallclockbuilder has quit [Ping timeout: 245 seconds]
<Xeago> :D
<Xeago> thought you had to work the whole shift, not part of it ;P
xpen has quit [Ping timeout: 255 seconds]
<apeiros_> I have some freedoms ^^
arturaz has joined #ruby
LouisRoR has joined #ruby
quazimodo has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
arturaz has quit [Remote host closed the connection]
rh1n0 has quit [Quit: -- away --]
hbpoison has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
xpen_ has quit [Ping timeout: 245 seconds]
banjara has quit [Quit: Leaving.]
LouisRoR has quit [Ping timeout: 245 seconds]
TheFuzzball has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
Mon_Ouie has quit [Ping timeout: 245 seconds]
Zai00 has joined #ruby
LouisRoR has joined #ruby
<adr> what is the best way to check if certain string is a integer ?
Mon_Ouie has joined #ruby
dcwu has quit [Quit: Leaving.]
yacks has joined #ruby
<sonne> adr, i'd go for var.to_i.to_s == var, but i'm a newb :D
<sonne> you could also use a regex though
blaxter has joined #ruby
<sonne> var =~ /^[0-9]+$/ i think
mneorr has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
axhlf has joined #ruby
<apeiros_> Integer(str)
<apeiros_> raises if str is not an integer
<apeiros_> Integer(str, 10) if you only want to accept base 10
<sonne> apeiros_, what is that? i've never seen it
timonv has joined #ruby
<apeiros_> it's a method. Kernel#Integer
<sonne> aha
maxmanders has joined #ruby
<sonne> i thought methods were lowercase by standard
Xeago has quit [Read error: Connection reset by peer]
Mattix has quit [Read error: Connection reset by peer]
Matip has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Evixion has joined #ruby
arturaz has joined #ruby
ahammond has quit [Quit: ahammond]
mpfundstein has joined #ruby
<FISH_SOUP> how come sometimes STDIN.gets.chomp() is needed while sometimes gets.chomp() is sufficient?
duosrx has joined #ruby
<Hanmac> sonne its different from to_i in some points
<Hanmac> >> ["0x10".to_i, Integer("0x10")]
<eval-in> Hanmac => [0, 16] (http://eval.in/12492)
ananthakumaran1 has joined #ruby
dhruvasa1ar has joined #ruby
<sonne> Hanmac, you make a point
<sonne> still i'm wondering why the uppercase
miso1337 has joined #ruby
nomenkun has joined #ruby
anderse has quit [Quit: anderse]
<tobiasvl> sonne, it's because Integer is the name of the class you cast/convert to
<sonne> i was quite puzzled by the fact that a class could take arguments
<Hanmac> sonne: Integer is a class, Integer() is a method, meth can be an method or local variable, meth() is allways a method, and meth.() is a call of meth obj
ananthakumaran has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
<sonne> so it's a good practice, for a given class MyClass, to have a kernel method MyClass() that casts to it?
jgrevich has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
<Hanmac> sonne the Integer method is indipent from the Integer class ... its also important because Integer.new does not work, so you need that method
<sonne> that makes a point too
<Hanmac> sonne: normaly you dont need the MyClass() method, because MyClass.new can do the jop too
<sonne> it's just the naming that sounded strange-ish, usually there is a certain fanaticism for conventions in the ruby ecosystem :)
HecAtic has joined #ruby
arturaz has quit [Remote host closed the connection]
<apeiros_> Hanmac: that's what the base argument is for
<apeiros_> >> Integer("0x10", 10)
<eval-in> apeiros_ => /tmp/execpad-9072f75a8cec/source-9072f75a8cec:2:in `Integer': invalid value for Integer(): "0x10" (ArgumentError)
<eval-in> from /tmp/execpad-9072f75a8cec/source-9072f75a8cec:2:in `<main>' (http://eval.in/12493)
<apeiros_> >> Integer("0x10", 16)
sk87 has joined #ruby
<eval-in> apeiros_ => 16 (http://eval.in/12494)
<apeiros_> >> Integer("0x10")
<eval-in> apeiros_ => 16 (http://eval.in/12495)
<Hanmac> apeiros_ yeah but if you omit the base arg, it trys to guess automaticly
<apeiros_> yes. which is why I mentioned it
<apeiros_> 09:31 apeiros_: Integer(str, 10) if you only want to accept base 10
hoelzro|away is now known as hoelzro
sepp2k has joined #ruby
haxrbyte_ has quit [Ping timeout: 245 seconds]
timonv has quit [Remote host closed the connection]
<Hanmac> hm with '0.1234567E7' both Float() and to_f supports that
echevemaster_ has quit [Quit: Saliendo]
arturaz has joined #ruby
haxrbyte has joined #ruby
marcgg has joined #ruby
sleetdrop has quit [Remote host closed the connection]
Xeago has joined #ruby
sleetdrop has joined #ruby
vagmi has joined #ruby
eAlchemist has joined #ruby
vagmi has left #ruby [#ruby]
<Hanmac> apeiros_ did you notic about sized enumerators? its a 2.0 feature that was a bit under the carpet :P
duosrx has quit [Remote host closed the connection]
chussenot has joined #ruby
adkron_ has quit [Read error: Connection reset by peer]
adkron_ has joined #ruby
skattyadz has quit [Quit: skattyadz]
rh1n0 has joined #ruby
rh1n0 has quit [Client Quit]
eAlchemist has quit [Ping timeout: 245 seconds]
Axsuul has quit [Ping timeout: 256 seconds]
vjacob has joined #ruby
atyz has quit [Quit: Leaving...]
haxrbyte has quit [Ping timeout: 260 seconds]
mulinux has joined #ruby
<Hanmac> shevy: sized enumerators! :D
dhruvasa1ar has quit [Quit: leaving]
averiso has joined #ruby
dhruvasagar has joined #ruby
razibog has joined #ruby
banisterfiend has quit [Remote host closed the connection]
eldariof has joined #ruby
atyz has joined #ruby
eldariof has quit [Client Quit]
haxrbyte has joined #ruby
becom33 has joined #ruby
jaygen has quit [Read error: Operation timed out]
tonini has quit [Remote host closed the connection]
jaygen has joined #ruby
jimeh has joined #ruby
apok has joined #ruby
jaygen_ has joined #ruby
pyrac has joined #ruby
tonini has joined #ruby
<becom33> http://pastebin.com/9tvck61X how can use the options to get the proper output . if bold is mentioned bold the output if color is mention color the output or both are mention do both
tonini has quit [Remote host closed the connection]
jaygen__ has joined #ruby
blacktulip has joined #ruby
nari has quit [Ping timeout: 245 seconds]
jaygen_ has quit [Read error: Operation timed out]
jaygen has quit [Read error: Operation timed out]
* becom33 anyone ?
<apeiros_> Hanmac: heard about it, but haven't paid any attention to it yet. ruby 2.0 is still mostly unknown to me. and probably will stay that way for another month or two.
ephemerian has joined #ruby
drale2k has quit [Quit: Leaving...]
marr has joined #ruby
tonini has joined #ruby
<Hanmac> >> (1..49).to_a.combination(6).size
<eval-in> Hanmac => 13983816 (http://eval.in/12496)
<Hanmac> its "6 out of 49" :P
duosrx has joined #ruby
<hemanth> Hanmac, nice one!
adeponte has joined #ruby
HecAtic has quit [Quit: Àá¼ö]
LouisRoR has quit [Ping timeout: 260 seconds]
<apeiros_> expensive way to calculate that :-p
<Hanmac> try (1..49).to_a.combination(6).count and you will see a difference :P
chussenot has quit [Quit: chussenot]
berserkr has joined #ruby
<FISH_SOUP> read(name, [length [, offset]] ) → string
<FISH_SOUP> is there a way to see if any argument is required?
adeponte has quit [Ping timeout: 245 seconds]
<FISH_SOUP> txt = File.open(filename) puts txt.read() but i cant seem to find any read() in the docs that takes in 0 arguments
<apeiros_> FISH_SOUP: the ones not in [] are required
<apeiros_> the ones in [] are optional
<apeiros_> and the read which takes 0 is IO#read, inherited by File as File#read (# means "instance method")
<becom33> http://pastebin.com/9tvck61X how can use the options to get the proper output . if bold is mentioned bold the output if color is mention color the output or both are mention do both
vjacob has left #ruby ["Leaving"]
Vainoharhainen has joined #ruby
<Hanmac> the read with 1+ argument is IO::read or File::read (means the class method)
nari has joined #ruby
<FISH_SOUP> oh i see... :: is class where else #xxxx is instance
<FISH_SOUP> okie got it, thanks
noxoc has joined #ruby
keymone has joined #ruby
<Hanmac> becom33look at [:yellow,:bold].inject("data"){|d,m| send m,d}
Mon_Ouie has quit [Ping timeout: 240 seconds]
niklasb has joined #ruby
matrixise has quit [Ping timeout: 252 seconds]
m4rtijn has joined #ruby
anderse has joined #ruby
<sam113101> what would be the best naming for ruby, XmlClass or XMLClass (just an example)
<FISH_SOUP> there is this weird ruby syntax too. why STDIN.gets.chomp() and not STDIN.gets().chomp() ?
<apeiros_> sam113101: IMO XML::Class
mark9 has joined #ruby
<sam113101> why not STDIN.gets.chomp
mark9 has left #ruby [#ruby]
<apeiros_> sam113101, FISH_SOUP, use $stdin, not STDIN
<apeiros_> other than that - $stdin.gets.chomp as sam113101 suggests ;-)
<sam113101> apeiros_: what about the name of the file containing the class?
<FISH_SOUP> yes but isnt gets() a method?
soc42 has joined #ruby
<apeiros_> sam113101: fully_qualified_name.downcase.sub(/::/, '/')
El_loco has joined #ruby
<apeiros_> i.e. Foo::BAR::BATPoo --> foo/bar/batpoo.rb
<Hanmac> Fish_soup, yeah, but in moslty cases you can avoid ()
<sam113101> FISH_SOUP: chomp is a method as well
<FISH_SOUP> but if its a method, shouldn't it ends with () ?
JonsonXP has joined #ruby
noop has quit [Ping timeout: 260 seconds]
<apeiros_> sam113101: rails convention deviates slightly, it uses _ for separation of capitals: FooBar::Baz --> foo_bar/baz.rb
v1p has quit [Ping timeout: 264 seconds]
<apeiros_> FISH_SOUP: it doesn't have to in ruby
justinmcp has joined #ruby
<apeiros_> () is only required if it's ambiguous otherwise
<Hanmac> Fish_soup, only for capilazed ones, like Integer() ... it may needed
<apeiros_> Hanmac: even there it isn't required, as long as you pass an argument
<apeiros_> >> Integer "12"
<eval-in> apeiros_ => 12 (http://eval.in/12497)
<Hanmac> yeah you are right
<apeiros_> the arg makes it unambiguous
<FISH_SOUP> ah that means, if you are not throwing in any arguments, the () is unnecessary, correct?
<apeiros_> kömpeiling ruby 1.9.3-p392…
<FISH_SOUP> because $stdin.gets.chomp seems to work fine
<apeiros_> no, you can throw in arguments
<apeiros_> and you probably already used methods that way
<apeiros_> class Foo; attr_reader :bar; end
<apeiros_> attr_reader is a method
<apeiros_> ruby is quite good at figuring that stuff out
<FISH_SOUP> apeiros_: yes, that's correct, i can throw in arguments. but if i am calling it w/o arguments, the () is not compulsory yea?
* Hanmac have defined an method_missing marco that does, Mod::XYZ *args into Mod::XYZ.new(*args)
El_loco has quit [Remote host closed the connection]
<apeiros_> it is necessary e.g. when you want to chain with args: io.read(1024).scan(/\d/).map(&:to_i)
<Hanmac> or if there is a local method with the same name
<apeiros_> Hanmac: personally I prefer Mod.xyz(*args) for that. less confusing IMO.
<Hanmac> local variable
<apeiros_> shadowing methods with lvars is a no-no, though :)
<apeiros_> reeks a bit
backjlack has joined #ruby
elaptic`` is now known as elaptics
* Hanmac only shadows lvars with other lvars :D
wallcloc_ has quit [Remote host closed the connection]
<apeiros_> :-S
miso1337_ has joined #ruby
<apeiros_> schtill kömpeiling
<apeiros_> frack, stupid slow machine
keymone has quit [Quit: keymone]
slainer68 has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
miso1337 has quit [Ping timeout: 255 seconds]
miso1337_ is now known as miso1337
JonsonXP has quit [Ping timeout: 272 seconds]
averiso has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
justsee has joined #ruby
jaygen has joined #ruby
rdark has joined #ruby
drale2k has joined #ruby
<csmrfx> apeiros_: schnell!
mneorr has quit [Ping timeout: 246 seconds]
<Hanmac> apeiros_ is something like \';drop Table;--@google.de an valid email? :'P
jaygen__ has quit [Read error: Operation timed out]
Tricon has quit [Quit: Leaving...]
pyrac has quit [Quit: pyrac]
<apeiros_> Hanmac: of course
Emplitz has quit [Read error: Connection reset by peer]
* Hanmac giggles :P
timmow has joined #ruby
timmow has quit [Read error: Connection reset by peer]
sidewalker has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
noop has joined #ruby
miso1337 has quit [Ping timeout: 246 seconds]
timmow has joined #ruby
pyrac has joined #ruby
sidewalker has left #ruby [#ruby]
<apeiros_> boah, coworker just shocked me - asked me whether I changed production data yesterday. and I did! but then I realized that I did on a table I created for that purpose. hence - not my fault :D
one` has quit [Ping timeout: 256 seconds]
Quebert has quit [Quit: Linkinus - http://linkinus.com]
haxrbyte has quit [Ping timeout: 245 seconds]
robbsan has quit [Quit: robbsan]
<becom33> Hanmac, did u mean options[:color,:bold].inject("Hello"){|d,m| send m,d}
Es0teric has joined #ruby
<Hanmac> becom33, nope
<hemanth> >> 0.7 + 0.1
drale2k has quit [Ping timeout: 252 seconds]
<eval-in> hemanth => 0.7999999999999999 (http://eval.in/12498)
<hemanth> >> 0.1 + 0.2
<eval-in> hemanth => 0.30000000000000004 (http://eval.in/12499)
nessib has joined #ruby
adambeynon has joined #ruby
daniel_- has joined #ruby
<sonne> <eval-in> hemanth => 0.30000000000000004 (http://eval.in/12499)
<sonne> wat?
tvw has quit []
<Hanmac> that how float works
timmow has quit [Read error: Connection reset by peer]
soc42 has quit [Remote host closed the connection]
<Hanmac> they CANT be accurate
<hemanth> Hanmac, yes, little and big Endian stuff?
<bnagy> well they could be
<apeiros_> no finite representation can be accurate
<bnagy> but they would be really slow
timmow has joined #ruby
gyre007 has joined #ruby
<hemanth> >> 3 == 0.1+0.2
<eval-in> hemanth => false (http://eval.in/12500)
timmow has quit [Read error: Connection reset by peer]
<hemanth> >> 3 == Math.round(0.1+0.2)
<eval-in> hemanth => /tmp/execpad-2c098ac4092f/source-2c098ac4092f:2:in `<main>': undefined method `round' for Math:Module (NoMethodError) (http://eval.in/12501)
<apeiros_> yeah, that's off by 2.7 anyway :-p
<apeiros_> hemanth: I guess you mean 0.3 ;-)
<hemanth> :D
<apeiros_> and you want .round(1)
nessib has quit [Client Quit]
<apeiros_> >> (0.1+0.2).round(1)
<eval-in> apeiros_ => 0.3 (http://eval.in/12502)
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<apeiros_> >> (0.1+0.2).round(1) == 0.3
statarb3 has joined #ruby
<eval-in> apeiros_ => true (http://eval.in/12503)
yashshah has quit [Read error: Connection reset by peer]
<apeiros_> I don't think that's guaranteed to work
<apeiros_> with floats, you should not test for equality, but for delta
yashshah has joined #ruby
nessib has joined #ruby
dEPy has joined #ruby
timmow has joined #ruby
<hemanth> apeiros_, floats $uck$
<apeiros_> hemanth: no, they don't
<apeiros_> you have to understand how numbers and math works whether you use floats or not
<Xeago> and how binary precision works
<apeiros_> all you can do is shift the problem around
<apeiros_> you can't represent 1.0/7.0 no matter how high of a precision you use
<apeiros_> then you move to rational, which can. and suddenly you notice that you still can't represent e.g. Math::PI, or Math::E, or Math.sqrt(2)
<apeiros_> and on and on it goes…
<apeiros_> there simply is no way around understanding your problem domain properly.
<Hanmac> about floats, on Ruby2.1 they are fixed, someone else could try this on his system (2.0).object_id.step(100,8).map{|i|ObjectSpace._id2ref(i)}
banisterfiend has joined #ruby
<apeiros_> Hanmac: ?
averiso has joined #ruby
<apeiros_> that's only a performance optimization
<apeiros_> I don't think that changes anything about how the floats work (and if it does, it's likely a bug)
aaronmcadam has joined #ruby
haxrbyte has joined #ruby
quazimodo has joined #ruby
evenix has joined #ruby
Emplitz has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
<Hanmac> apeiros_ 2.step(100,8).map{|i|ObjectSpace._id2ref(i)}.each_cons(2).map{|x,y| y - x}.uniq #=> [4.440892098500626e-16]
evenix has quit [Read error: Operation timed out]
hbpoison has quit [Ping timeout: 245 seconds]
hemanth has joined #ruby
AndChat| has joined #ruby
fermion has joined #ruby
hbpoison has joined #ruby
<Hanmac> i think "4.440892098500626e-16" is the smalled diff float can recongice ...
<apeiros_> no
<apeiros_> >> Float::MIN
<eval-in> apeiros_ => 2.2250738585072014e-308 (http://eval.in/12508)
<apeiros_> e-16 would be a rather weak range :)
<apeiros_> >> Float::EPSILON
<eval-in> apeiros_ => 2.220446049250313e-16 (http://eval.in/12509)
Banistergalaxy has quit [Ping timeout: 245 seconds]
<apeiros_> this comes close, but doesn't seem to be it
averiso has quit [Quit: Computer has gone to sleep.]
Emplitz has quit [Quit: Leaving]
<Hanmac> yeah its EPSILON * 2 :P
Al_ has joined #ruby
mulinux has quit [Quit: mulinux]
malkomalko has joined #ruby
devilirium has joined #ruby
<becom33> Hanmac, this is the what I have done so far http://pastebin.com/JZ4YZnwC still if I didnt mention a -b in the url it will it take :bold as nil since there is no method called nil it throws a error
averiso has joined #ruby
devdazed has quit [Ping timeout: 252 seconds]
ozgura has quit [Remote host closed the connection]
<becom33> -b as a option *
haxrbyte has quit [Read error: Connection reset by peer]
eka has joined #ruby
<Hanmac> becom33 use compact
haxrbyte has joined #ruby
devdazed has joined #ruby
wobblini has joined #ruby
<becom33> Hanmac, if u mention like this puts [bb,cc].compact.inject('hello') { |sum, n| p "#{sum} | #{n}"; send n,sum }
<becom33> works fine :)
razibog has quit [Quit: Leaving.]
haxrbyte has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
pyrac has quit [Quit: pyrac]
<Hanmac> sometimes i feel like a blood donator for this helpvampires ...
swoosh has joined #ruby
<apeiros_> you're not being coerced to donate your blood…
haxrbyte has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
<Hanmac> becom33 i thought about something like that ... so you not need your ugly val = option of option
<Hanmac> [:bold,:color].map{|o| option[o] }.compact.inject("hello") {|sum,n| send n,sum}
<Hanmac> apeiros_ i cant ... my alignment forces me to do good :/P
poikon has joined #ruby
<apeiros_> Hanmac: do a saving roll
wf2f has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
Vektur has quit [Ping timeout: 264 seconds]
xbob has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<JonnieCache> hanmac - chaotic helpful rubyist
haxrbyte_ has quit [Ping timeout: 252 seconds]
poikon has quit [Client Quit]
lewix_ has joined #ruby
jonathanwallace has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
<Hanmac> JonnieCache: neutral ant http://www.youtube.com/watch?v=CER2s9hLMxs
atyz has quit [Quit: Leaving...]
haxrbyte_ has joined #ruby
emergion has quit [Client Quit]
lewix has quit [Ping timeout: 260 seconds]
haxrbyte has quit [Ping timeout: 264 seconds]
quazimodo has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
justsee has quit [Quit: Leaving...]
Spooner_ has joined #ruby
chussenot has quit [Client Quit]
justsee has joined #ruby
kofno has joined #ruby
Takehiro has quit [Remote host closed the connection]
chussenot has joined #ruby
lewix_ has quit [Remote host closed the connection]
ferdev_ has joined #ruby
tonini has quit [Remote host closed the connection]
ferdev has quit [Ping timeout: 252 seconds]
ferdev_ is now known as ferdev
aaronmcadam has quit [Quit: Leaving...]
quazimodo has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
_br_ has quit [Excess Flood]
luckyruby has quit [Remote host closed the connection]
_br_ has joined #ruby
sonda has joined #ruby
aaronmcadam has joined #ruby
ferdev_ has joined #ruby
rickmasta has quit [Quit: Leaving...]
haxrbyte_ has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
ferdev has quit [Ping timeout: 245 seconds]
ferdev_ is now known as ferdev
_br_ has quit [Excess Flood]
MehLaptop has joined #ruby
deepinskin has quit [Ping timeout: 252 seconds]
matrixise has joined #ruby
drale2k has joined #ruby
atyz has joined #ruby
kofno has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
elico has joined #ruby
elico has quit [Client Quit]
elico has joined #ruby
drale2k has quit [Ping timeout: 260 seconds]
yashshah has quit [Read error: Connection reset by peer]
tvw has joined #ruby
kpshek has joined #ruby
haxrbyte_ has joined #ruby
emergion has joined #ruby
fire has joined #ruby
yashshah has joined #ruby
Domon has quit [Remote host closed the connection]
braoru has quit [Remote host closed the connection]
sam113101 has quit [Quit: WeeChat 0.3.8]
xedeon has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
braoru has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
evenix has joined #ruby
kofno has joined #ruby
xedeon has quit [Quit: Leaving]
sam113101 has joined #ruby
becom33 has quit [Ping timeout: 250 seconds]
razibog has joined #ruby
razibog1 has joined #ruby
lewix has joined #ruby
hbpoison has joined #ruby
razibog has quit [Client Quit]
sleetdrop has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 245 seconds]
lewix_ has joined #ruby
lewix has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 260 seconds]
beneggett has joined #ruby
tms has joined #ruby
neurone-1337 has quit [Ping timeout: 240 seconds]
malkomalko has quit [Remote host closed the connection]
rippa has joined #ruby
ExxKA has joined #ruby
tms has left #ruby [#ruby]
aderyabin has joined #ruby
prime- is now known as prime
prime has quit [Changing host]
prime has joined #ruby
samphippen has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
skattyadz has joined #ruby
swoosh has quit [Read error: Connection reset by peer]
khismetix has joined #ruby
mercwithamouth has joined #ruby
MrZYX|off is now known as MrZYX
smt has joined #ruby
smt has left #ruby [#ruby]
kofno has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
chipotle_ has joined #ruby
neurone-1337 has joined #ruby
tomzx_mac has joined #ruby
ArchBeOS has quit [Ping timeout: 272 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 264 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
hybris has joined #ruby
hbpoison has joined #ruby
ozgura has joined #ruby
Spooner_ has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
ferdev has quit [Ping timeout: 252 seconds]
kpshek has quit []
ozgura has quit [Read error: Operation timed out]
ExxKA has quit [Quit: This computer has gone to sleep]
fire is now known as megha
dawkirst has joined #ruby
ferdev has joined #ruby
cantonic has quit [Quit: cantonic]
lewix_ has quit [Read error: Connection reset by peer]
lewix has joined #ruby
<Xeago> apeiros_: campaign on hard, is actually quite hard
<Xeago> harder than WoL
lewix has quit [Read error: Connection reset by peer]
<Xeago> am enjoying it
averiso has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
_veer has quit [Ping timeout: 256 seconds]
terrorpup has quit [Quit: Leaving]
<Hanmac> Xeago it was fun in the old SC1 when you fight against Terrains and there was some flying HQ missing :P
drumsrgr8forn8 has joined #ruby
whitedawg has joined #ruby
<csmrfx> old SC1 - 15 years ago!
bricker`1ork has joined #ruby
objectivemo has quit [Quit: objectivemo]
huismon has joined #ruby
<Hanmac> csmrfx i still liked it more ..
FDj_ has joined #ruby
* csmrfx s SC quota has been 110% filled with SC1, no time for SC2
Fenne has joined #ruby
psino_ has joined #ruby
CrazyDog_ has joined #ruby
nopper` has joined #ruby
keymone has joined #ruby
ExxKA has joined #ruby
SecretAg1nt has joined #ruby
<Hanmac> csmrfx in W40k i did win aginst someone with an perfect Defence ... with checkpoint winning :P
ozgura has joined #ruby
chussenot has quit [Quit: chussenot]
cantonic has joined #ruby
<csmrfx> I have only played W40k when it was rulebooks, pens and papers!
objectivemo has joined #ruby
<csmrfx> (and those little tin figurines)
<Hanmac> some of the PC games are fine too
HobGoblin has joined #ruby
samir_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
HobGoblin is now known as Guest3892
grayson has joined #ruby
<Hanmac> if your enemy is in an impregnable fortress, keep them inside :P
<JonnieCache> is there a huge pirated arhammer scene now with the advent of 3d printing?
Guest3892 has quit [Changing host]
Guest3892 has joined #ruby
end_guy has quit [*.net *.split]
pyreal has quit [*.net *.split]
DrCode has quit [*.net *.split]
Spaceghost|cloud has quit [*.net *.split]
Bry8Star has quit [*.net *.split]
orospakr has quit [*.net *.split]
lahwran has quit [*.net *.split]
mva3212 has quit [*.net *.split]
jayne has quit [*.net *.split]
xiphiasx_ has quit [*.net *.split]
bricker`work has quit [*.net *.split]
[diecast] has quit [*.net *.split]
shammancer has quit [*.net *.split]
NimeshNeema has quit [*.net *.split]
CrazyDog has quit [*.net *.split]
nate_h has quit [*.net *.split]
kapowaz has quit [*.net *.split]
withnale has quit [*.net *.split]
psino has quit [*.net *.split]
samir has quit [*.net *.split]
dcope has quit [*.net *.split]
UukGoblin has quit [*.net *.split]
nopper has quit [*.net *.split]
FDj has quit [*.net *.split]
fuho has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
SecretAgent has quit [*.net *.split]
<JonnieCache> *warhammer
psino_ is now known as psino
lewix has quit [Write error: Broken pipe]
Spaceghost|cloud has joined #ruby
Guest3892 is now known as UukGoblin
chussenot has joined #ruby
<csmrfx> I dont game much these days. Only 200 hours on BF3 and half a dozen dwarf fortresses full of dead dwarves... and their haunted spirits!
divout has quit [Quit: Leaving.]
<shevy> csmrfx lol
<shevy> I kind of stopped playing games myself
rippa has quit [Ping timeout: 240 seconds]
GeekOnCoffee has joined #ruby
<Hanmac> JonnieCache i wait until i can 3dprint the mechas in "livesize" :P
* JonnieCache is still working through the most recent zelda :)
<csmrfx> I try to game metagame. IOW, making games is the game
techlife has quit [Ping timeout: 250 seconds]
beiter has joined #ruby
<JonnieCache> what kind of games do you make?
<csmrfx> currently working on how to generate map data (area/elevation/resource/item) from svg vectors
<csmrfx> JonnieCache: I have a couple of grandiose "generative" game ideas I am working on
<JonnieCache> like elite? that stuff is cool.
kofno has quit [Remote host closed the connection]
daniel_- has joined #ruby
<Hanmac> yust tell, all my ears are open
<csmrfx> JonnieCache: well I have one thats like SC meets Risk
<csmrfx> then theres this crazy idea of having first person shooter which instead of guns relies on social skills
<csmrfx> lel
<csmrfx> but now gtg do some client work
pyreal has joined #ruby
<csmrfx> bbl
colonolGron has joined #ruby
drale2k has joined #ruby
* Hanmac wanted to make an RealTime Stategy game ... with Ants :P
mva3212 has joined #ruby
withnale has joined #ruby
shammancer has joined #ruby
techlife has joined #ruby
kapowaz has joined #ruby
jayne has joined #ruby
nari has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<apeiros_> Xeago: installing right now :)
drale2k has quit [Ping timeout: 272 seconds]
ArchBeOS has joined #ruby
bigmac has joined #ruby
daniel_- has quit [Ping timeout: 252 seconds]
monkegjinni has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
tay1 has quit [Ping timeout: 256 seconds]
Mon_Ouie has joined #ruby
samphippen has joined #ruby
ArchBeOS has quit [Client Quit]
vieenay has quit [Quit: Leaving.]
charliesome has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
vieenay has joined #ruby
slainer68 has joined #ruby
mark_locklear has joined #ruby
chussenot has quit [Quit: chussenot]
__Big0__ has joined #ruby
beneggett has joined #ruby
chussenot has joined #ruby
Matip has quit [Ping timeout: 250 seconds]
rdark has quit [Ping timeout: 255 seconds]
tomzx_mac has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
pyrac has joined #ruby
npx has joined #ruby
Guest96043 has quit [Quit: Leaving]
<npx> Is there a simple web server that I can install to serve files from a directory? like: my_server ~/html/
eka has quit [Quit: Computer has gone to sleep.]
<tobiasvl> thin?
<tobiasvl> or sinatra maybe. i like sinatra
<npx> yeah I guess I can just throw it in a sinatra public/ dir
<npx> i wanted something simpler, like just install a gem and then server /path/to/html/
yshh has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<npx> mongoose works nicely, huzzah
ExxKA has quit [Quit: This computer has gone to sleep]
beneggett has quit [Quit: Computer has gone to sleep.]
haxrbyte has joined #ruby
pyrac has quit [Quit: pyrac]
pyrac has joined #ruby
pyrac has quit [Client Quit]
Fecn has joined #ruby
pyrac has joined #ruby
<Fecn> Hi Folks - Is there some ready-made function to go from a string to a longint ? I've got a 21-digit string version of an Int (of which the first 18 digits happen to be 0) and the Integer() method barfs on it
ozgura has quit [Read error: Connection reset by peer]
<hoelzro> Fecn: .to_i?
<hoelzro> >> puts '0000000010'.to_i
<eval-in> hoelzro => 10
<eval-in> nil (http://eval.in/12512)
<hoelzro> hey, the eval bot considers the expression's value now!
<hoelzro> \o/
joeycarmello has quit [Ping timeout: 246 seconds]
<Fecn> hoelzro: Could you try it with 00000000000000034816 for me please
<hoelzro> >> '00000000000000034816'.to_i
<eval-in> hoelzro => 34816 (http://eval.in/12513)
<Fecn> Cool - thanks
ozgura has joined #ruby
<hoelzro> Fecn: do you know why Integer() screws it up?
<hoelzro> s/know/want to know/
<Fecn> `Integer': invalid value for Integer: "00000000000000036863" (ArgumentError)
<adr> how I can get the number of bytes of certain hex number
haxrbyte has quit [Remote host closed the connection]
wf2f has quit []
<hoelzro> Fecn: right, but do you know why that happens?
<apeiros_> >> Integer("00013", 10)
<Mon_Ouie> hoelzro: Integer tries to guess the encoding
<eval-in> apeiros_ => 13 (http://eval.in/12514)
<hoelzro> Mon_Ouie: I'm aware
<apeiros_> Fecn: you must state the base, otherwise leading zero means octal
<Fecn> hoelzro: Nope - I'm a ruby nubie
hasimo has quit [Remote host closed the connection]
<Mon_Ouie> A leading 0 means octal; you can't have an '8' in octal.
<hoelzro> I'm trying to illustrate that =)
<Mon_Ouie> Oh
<Fecn> I understand now :)
rickmasta has joined #ruby
haxrbyte has joined #ruby
snearch has joined #ruby
snearch has quit [Max SendQ exceeded]
<Mon_Ouie> (I meant the base*, not encoding)
a_a_g1 is now known as a_a_g
geekbri has joined #ruby
apok has quit [Quit: apok]
Clownz has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
__Big0__ has quit [Remote host closed the connection]
rickmasta has quit [Ping timeout: 252 seconds]
<Fecn> hoelzro: Thanks for your help - That gets me one step closer to working.... Onto the next problem for me now
<hoelzro> =)
kpshek has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
dkannan has joined #ruby
tish has joined #ruby
AndChat| has quit [Remote host closed the connection]
tish has quit [Read error: Connection reset by peer]
otherj has joined #ruby
Banistergalaxy has joined #ruby
vlad_starkov has joined #ruby
arthurstomp has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
dkannan_ has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
arthurstomp is now known as astomp
justinmcp has quit [Remote host closed the connection]
hbpoison has joined #ruby
apod has quit []
shuky has quit [Quit: shuky]
dkannan has quit [Ping timeout: 245 seconds]
dkannan_ is now known as dkannan
angle has joined #ruby
vlad_starkov has quit [Ping timeout: 272 seconds]
postmodern has quit [Quit: Leaving]
rdark has quit [Ping timeout: 246 seconds]
justinmcp has joined #ruby
gommo has quit [Remote host closed the connection]
colonolGron has quit [Quit: leaving]
gommo has joined #ruby
rdark has joined #ruby
tish1 has joined #ruby
tish1 has quit [Client Quit]
Mattix has joined #ruby
tish has joined #ruby
RubyHunter has joined #ruby
axhlf has quit [Remote host closed the connection]
gommo has quit [Ping timeout: 256 seconds]
drale2k has joined #ruby
aderyabin has quit [Quit: Textual IRC Client: www.textualapp.com]
samphippen has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 252 seconds]
dawkirst has quit [Read error: Connection reset by peer]
yshh has joined #ruby
objectivemo has quit [Quit: objectivemo]
aderyabin has joined #ruby
<Akuma> hello, I'm having some problems with ruby and devkit under windows. I get an error when doing gem install rdiscount --platform=ruby
joeycarmello has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
khismetix has quit [Quit: Computer has gone to sleep.]
yashshah has joined #ruby
Mattix has quit [Ping timeout: 252 seconds]
<Akuma> here is the output: pastebin.com/g6ZuQ4V5
drale2k has quit [Ping timeout: 260 seconds]
Guest__ has joined #ruby
Guest__ is now known as Guest123
adambeynon has joined #ruby
ninjanoise has joined #ruby
yshh has quit [Remote host closed the connection]
<ninjanoise> Anybody awake?
<csmrfx> Akuma: whats devkit?
moos3 has joined #ruby
<Akuma> what you need on windows to compile gems
<csmrfx> oh, thanks
<Akuma> availabl
<Akuma> e at rubinstaller
<Akuma> rubyinstaller
haxrbyte has quit [Read error: Connection reset by peer]
averiso has quit [Quit: Computer has gone to sleep.]
haxrbyte has joined #ruby
jerius has joined #ruby
apod has joined #ruby
kofno has joined #ruby
<ninjanoise> @var is an instance variable that is passed around one instance of a class and @@var is passed between ALL instances of a class right?
* ninjanoise = n00b
<csmrfx> ninjanoise: what do they call @@var?
<shevy> ninjanoise you need to find the correct word for @@
<shevy> ninjanoise correct on @ivars
<ninjanoise> So @@ is class and @ is instance so just making sure I was understanding it right :)
Pufferfood has quit [Remote host closed the connection]
jpcamara has joined #ruby
<shevy> @@ are shared across all classes, yes
<Hanmac> ninjaoise the problem is that @@var is also shared between all instances of the class ans also between all instances of all subclasses of the class (wich may not wanted)
<shevy> @ is specific to one instance of that class
<shevy> @@ is awful, @ is great
Pufferfood has joined #ruby
* Hanmac will image for ruby3 some kind of @@@ , just to anoy shevy ;:D
<tobiasvl> the thing is that @@ is class variables, but you don't really need them because you can just add a @ instance variable to the class :D
keymone has quit [Quit: keymone]
Pufferfood has quit [Read error: Connection reset by peer]
sayan has quit [Ping timeout: 252 seconds]
<tobiasvl> because classes are just instances of Class
sailias has joined #ruby
<shevy> ninjanoise, class Foo; @@test = 'test'; end; Foo.class_variables # => ["@@test"]
Pufferfood has joined #ruby
sayan has joined #ruby
tommyvyo has joined #ruby
BRMatt has joined #ruby
khismetix has joined #ruby
<maxmanders> If I have an array of strings, each of which contains a YYYY-mm-dd date that I can extract by regex, how would I go about finding the value with the earliest date? Thinking Array.grep() and using $1 in the block but not sure how to compare $1 with the previous $1 to promote a lesser value to the desired value.
chussenot has quit [Quit: chussenot]
akam-it has quit [Remote host closed the connection]
jurassic_ has joined #ruby
<tobiasvl> just keep the previous $1 in a variable?
<tobiasvl> but this can probably be done simpler with map or something
<Hanmac> maxmanders: array.min_by {|s| DateTime.parse(s)}
<maxmanders> Wasn't sure about scoping in blocks - still learning. I know enumerable have 'min' but that would only work if the values were Dates rather than strings with dates.
justinmcp has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 272 seconds]
adambeynon has quit [Ping timeout: 272 seconds]
<maxmanders> Hanmac: Ahh of course, and I just extract the regex as part of the block!
<Hanmac> you can do it with regex too but why when there is an "app" for that ? :P
justsee has quit [Quit: Leaving...]
haxrbyte has quit [Read error: Connection reset by peer]
<maxmanders> I should rtfm - DateTime.parse will parse any arbitrary string so long as it can find a valid date representation? I.e. 'Foo Bar YYYY-mm-dd blah blah' as well as just 'YYYY-mm-dd'?
breakingthings has joined #ruby
<maxmanders> Really loving how helpful the Ruby community is to a new guy making the transition from another language!
hemanth has quit [Read error: Connection reset by peer]
NiteRain has quit [Ping timeout: 246 seconds]
hemanth has joined #ruby
<csmrfx> We're all hoping you will eventually return the favour ;)
tk_ has joined #ruby
<maxmanders> csmrfx: if I can help out, I will!
DaniG2k has joined #ruby
tommyvyo has quit [Quit:]
<DaniG2k> guys im having the hardest time installing ruby on mac 10.6.8 snowloepard
<ninjanoise> shevy / tobiasvl / csmrfx Thanks for the info sorry had to step away for a bit
<DaniG2k> ive tried rvm but i think I need a compiler for that
m8 has joined #ruby
<DaniG2k> I can't believe how much of a pain it is to install this
<hoelzro> that's OS X for you =)
<DaniG2k> can anyone give a hand plz?
<DaniG2k> yeah really....it was easy as pie on Mint
<hoelzro> DaniG2k: if you want to install a new Ruby, you'll probably need a compiler
chussenot has joined #ruby
pdamer has joined #ruby
<hoelzro> I don't know of any binary distributions of Ruby for OS X
<hoelzro> other than the system Ruby
<DaniG2k> will an opensource one work or do I need Apple's?
<DaniG2k> compiler I mean
<hoelzro> honestly, I can never remember how to install a compiler on OS X
<hoelzro> I think that homebrew has a guide?
<ninjanoise> DaniG2k: this may help
<hoelzro> ninjanoise++
<shevy> hey
uris has joined #ruby
<shevy> you shoot shuriken at him hoelzro
<shevy> ninjanoise+++++++++++
<shevy> dodge this!
<ninjanoise> lol
<DaniG2k> I dont understand how Rails folks are known to use Mac when Mac makes it the hardest to install Ruby
<DaniG2k> (updated versions of Ruby, that is)
jrajav has joined #ruby
objectivemo has joined #ruby
<hoelzro> DaniG2k: it used to be easier
<npx> dvm is pretty easy to use...
<npx> rvm*
TMM has joined #ruby
<hoelzro> in my opinion, OS X is making things more and more annoying for devs
<hoelzro> that's why I sold my macbook last year
<ninjanoise> agreed with that
<ninjanoise> but... shiney!!!
<DaniG2k> yeah I need to buy a new laptop but
<hoelzro> I'm a dev. I don't care about shiny ;)
<DaniG2k> I can't stand Apple sometimes
deepinskin has joined #ruby
<DaniG2k> thinking of going with Samsung notebook
<Hanmac> DaniG2k opensource does not work on OSX because apple does not like that
<hoelzro> I can't stand Apple most of the time ;)
<Hanmac> :P
<ninjanoise> Lol, but the masses do, and apple found a way in with the iPhone so now they are trending to joe user not dev's imo
_nitti has joined #ruby
<DaniG2k> agreed
<DaniG2k> this is stupid
lahwran has joined #ruby
<DaniG2k> its too hard to install ruby 2
<ninjanoise> I think they do make nice hardware *shrug*
<TMM> hello, I wondered if someone could help me. I'm doing some meta-programming fuckery and I'd like to set a class variable on an instance of a subclass. Is that possible? so B < A and C < A is it possible to set a class variable in "A" that's unique to B? (and one that is unique to C) would that have to be done through the (class << self; self; end).instance_eval mechanism?
<DaniG2k> i wont do it
deepinskin has quit [Max SendQ exceeded]
<npx> idk what you guys are talking about, it's trivial to install Xcode + the command line utils + brew + rvm and then install pretty much every open source app ever
Virunga has joined #ruby
<csmrfx> lel
deepinskin has joined #ruby
ExxKA has joined #ruby
<hoelzro> ninjanoise: I'm not saying they're doing a bad job, I'm saying that it's increasingly painful for devs
<csmrfx> it is trivial if you are familiar with terms, env vars and some editor
cr3 has joined #ruby
<DaniG2k> npx try doing the same on linux. Many of us are spoiled :)
<hoelzro> I'm not their target market, and that's ok
* csmrfx is spoiled, he mostly just apt-gets stuff
<breakingthings> It's not really that hard to install ruby.
<Hanmac> TMM: use "class instance variables"
<hoelzro> I'd rather not have to download a huge IDE just to get my compiler
<breakingthings> You can script it if it's that hard.
<hoelzro> and I'd rather have a proper package manager
dkannan has quit [Ping timeout: 252 seconds]
yashshah has quit [Read error: Operation timed out]
shuky has joined #ruby
<breakingthings> There are tons of scripts already out there, too.
deepinskin has quit [Max SendQ exceeded]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<breakingthings> hoelzro: you can install without xcode.
<ninjanoise> hoelzro you can DL just GCC now from apple fyi
<TMM> hanmac how does that work?
haxrbyte has joined #ruby
deepinskin has joined #ruby
<hoelzro> then things have changed
khismetix has quit [Quit: Computer has gone to sleep.]
<breakingthings> They have, they're getting better
<hoelzro> I haven't had to set up a proper dev env on a mac in a while, but last time I did, it took forever to everything working right
<shevy> DaniG2k if all fails, ruby can be compiled from source. I do that since ~8 years, into standalone versioned "AppDirs"
* breakingthings gasps at his own statement because it's so egregious
<DaniG2k> shevy yeah but I dont have Xcode, nor do I want to install a 4GB behemoth
<breakingthings> hoelzro: 1. install gcc, 2. install brew, 3. install rbenv/chruby, 4. install 2.0.0-p0
<breakingthings> yay.
<TMM> hanmac, thank you
<shevy> DaniG2k hehe well on linux, one just needs... gcc... make ... autoconf ... hmm and binutils... that should be like 90% if not 95%
<hoelzro> breakingthings: I'm glad it's easier these days. The last time I had to, it seemed a *lot* more painful
deepinskin has quit [Max SendQ exceeded]
workmad3 has joined #ruby
<shevy> though gcc is getting on my nerves more and more, they need to stop bloating up
<breakingthings> hoelzro: it was. but it's not nearly as hard anymore.
dustint has joined #ruby
<shevy> I swear when C++ is in the mix, things blow out of proportion
deepinskin has joined #ruby
<hoelzro> heh
<breakingthings> (I kind of want to say that RVM is actually harder for newbies to comprehend but then again I haven't really used it much at all)
<shevy> can't we just stick to C :(
<TMM> hanmac "Did you just say class instance variables?" ghehehe, fun :)
<csmrfx> HOW ABOUT: install VBox, install debian (or ubuntu), apt-get your stuff, if you need, add rvm
<hoelzro> shevy: isn't clang also written in C++? ;)
<shevy> breakingthings well the whole usage perhaps, but RVM only installs into a directory in $HOME which is pretty much how versioned directories work
<csmrfx> you now have safe and easy to copy ruby dev env -image that runs everywhere!
deepinskin has quit [Max SendQ exceeded]
<breakingthings> shevy: yeah, I know that installation is simple
<shevy> hoelzro dunno... I failed to get clang to work so far :(
<breakingthings> both RVM and rbenv were pretty dang simple to get going
realDAB has joined #ruby
<hoelzro> hmm
deepinskin has joined #ruby
anonymuse has joined #ruby
<breakingthings> but I dunno whether I just didn't actually use RVM enough to remember but it felt more confusing to actually utilize it
<breakingthings> and I haven't used chruby
<hoelzro> I still cling to GCC, but I like the way clang is organized
<breakingthings> but it might be the easiest
<shevy> but I am no longer someone who wants to learn everything, I'll wait for clang until to be stable and widely use
* breakingthings shrugs
<shevy> *widely in use
<hoelzro> I have clang as my default compiler at work
<hoelzro> it does 99% of what I need it to
<hoelzro> (disclaimer: I don't do that much compiling at work)
<DaniG2k> whats a good notebook (excluding Apple products)?
<breakingthings> Tokaido (sp?) is also on it's way.
R_Macy has quit [Quit: Computer has gone to sleep.]
<hoelzro> DaniG2k: I have a Thinkpad
<hoelzro> I'm very happy with it
plantseeker has joined #ruby
deepinskin has quit [Max SendQ exceeded]
swoosh has joined #ruby
<breakingthings> DaniG2k: you should just carry an iMac around with you tbh
<csmrfx> DaniG2k: hard to beat cheapo HP probooks
<breakingthings> seems really convenient
Stilo has joined #ruby
<csmrfx> better hw than apple, looks better, too
<ninjanoise> DaniG2k I use apple for personal stuff but thinkpads are awesome (other than my loathing the one loaded with bloat from work)
<DaniG2k> hahahah
<DaniG2k> nice
<DaniG2k> iMac idea is good
invisime has joined #ruby
Morkel has quit [Quit: Morkel]
swex_ has quit [Read error: Operation timed out]
idkazuma has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
swex has joined #ruby
DaniG2k has quit [Quit: DaniG2k]
<Hanmac> shevy like my gems are blowing up when you compile it? ... like a sufflee in a ofen :D
nari has joined #ruby
<ninjanoise> Hanmac: shevy has left IRC (Ping timeout: 245 seconds)
<anonymuse> join1
anonymuse has quit [Excess Flood]
<invisime> lol.
anonymuse has joined #ruby
<Hanmac> yeah .. i will tell him later
workmad3 has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 252 seconds]
drumsrgr8forn8 has quit [Ping timeout: 252 seconds]
<Hanmac> 300kb are blown up to 200MB and then fall back again to 50MB
grayson has quit [Ping timeout: 245 seconds]
yashshah has joined #ruby
cr3 has quit [Read error: Connection reset by peer]
tcstar has quit [Ping timeout: 240 seconds]
willob has joined #ruby
<breakingthings> Hanmac: sounds like a hot pocket.
cr3 has joined #ruby
<ninjanoise> cold on the outside, molten lava in the middle?
banisterfiend has joined #ruby
jtharris has joined #ruby
vieenay has left #ruby [#ruby]
otherj has quit []
timmow has quit [Remote host closed the connection]
<breakingthings> ninjanoise: and splattered mess on the entirety of the insides of the microwave.
<ninjanoise> breakingthings: that's why you should use the oven for hotpockets...
adac has joined #ruby
<ninjanoise> *aint_nobody_got_time_for_that.jpg
<breakingthings> that sounds… like it really wouldn't make any difference.
<breakingthings> hotpockets are still bad.
<breakingthings> :d
<adac> how do I get back date only with "Time.now"?
<breakingthings> adac: Time.now provides an time object, which can then be formatted into whatever your little heart desires
<breakingthings> strftime that shit
<invisime> +1 for strftime.
<jrajav> Can it be formatted into a girlfriend? :(
<Hanmac> adac require "date" and do Date.today
cmarques has joined #ruby
<breakingthings> jrajav: i dunno lol try it
<breakingthings> http://strftimer.com/
<breakingthings> but also Hanmac is rite
khismetix has joined #ruby
<adac> breakingthings, Hanmac thanks!
<breakingthings> np
pavilionXP has quit [Read error: Connection reset by peer]
hasimo has joined #ruby
berserkr has quit [Quit: Leaving.]
astomp has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
aed has joined #ruby
shevy has joined #ruby
<breakingthings> does irb normally show >>? My machine at home displays line and depth, wondering whether I installed something and forgot about it
chipotle_ has quit [Quit: cya]
<breakingthings> or maybe it's just because I don't have an up to date ruby on this machine
<breakingthings> it's running the default OSX ruby
poikon has joined #ruby
<Hanmac> breakingthings my irb prompt looks like this: "irb(main):044:0>"
philcrissman has joined #ruby
sambao21 has joined #ruby
deepinskin has joined #ruby
<breakingthings> Hanmac: yeah, mine does at home too. I think the default osx ruby (1.8.7-p358) just has >>.
<Hanmac> or "irb#2(main):001:0>" then i am inside an irb inside an irb inside an irb :P
<breakingthings> I assume that functionality was added after 1.8.7 at some time, maybe.
MehLaptop has quit [Remote host closed the connection]
deepinskin has quit [Max SendQ exceeded]
<banisterfiend> breakingthings: irb --simple-prompt
<banisterfiend> i think uses >>
<breakingthings> mmm
deepinskin has joined #ruby
angusiguess has joined #ruby
<Hanmac> yeah its the simple prompt
hasimo has quit [Ping timeout: 250 seconds]
araujo has quit [Remote host closed the connection]
<breakingthings> I'd wonder if there's a way to reverse that but I'm too lazy and if I really cared about doing rb stuff at work I'd have a real ruby install.
<breakingthings> But alas, I am a poor boy at a PHP shop.
deepinskin has quit [Max SendQ exceeded]
<breakingthings> Weep for mine suffering.
deepinskin has joined #ruby
* ninjanoise weeps
scrapcode_ has joined #ruby
_nitti has quit [Remote host closed the connection]
deepinskin has quit [Max SendQ exceeded]
cupakromer has joined #ruby
<csmrfx> breakingthings: have you looked at fructose
<breakingthings> wussat
<scrapcode_> I can't find anything just Ruby related on how to create and use a database WITHOUT rails. I just want to setup a simple DB and format some data and save it to the DB to use in a rails project
<ninjanoise> ok so back to my @ vs @@ question
[diecast] has joined #ruby
<breakingthings> scrapcode_: write a raw query?
uris has quit [Ping timeout: 260 seconds]
<ninjanoise> with @ you can pass around inside an instance of a class right?
jpfuentes2 has joined #ruby
<breakingthings> ninjanoise that be correct
Neandre has joined #ruby
<ninjanoise> so I have a like
<ninjanoise> def setup_stuff
<ninjanoise> @var = "Stuff being setup"
<ninjanoise> end
<ninjanoise> then ..
<ninjanoise> def look_at_stuff
<ninjanoise> puts @var
<ninjanoise> end
<ninjanoise> ?
atyz has quit [Quit: Leaving...]
jgarvey has joined #ruby
<ninjanoise> I don't know I trust the guy on the left
<ninjanoise> he looks confused
axl_ has joined #ruby
<Hanmac> he has programmed php to often
axhlf has joined #ruby
v0n has joined #ruby
scrapcode_ has left #ruby [#ruby]
araujo has joined #ruby
jpfuentes2 has quit [Client Quit]
drale2k has joined #ruby
NimeshNeema has joined #ruby
jpfuentes2 has joined #ruby
<breakingthings> >C#, .NET
<breakingthings> nope :d
elico has quit [Quit: elico]
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
phantasm66 has joined #ruby
girija has quit [Ping timeout: 256 seconds]
lkba has joined #ruby
<Hanmac> C# and PHP combined ... my worst nightmare oO
* _br_ ducks and runs
wmoxam has joined #ruby
<breakingthings> yeah, that's a bit scary
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
drale2k has quit [Ping timeout: 252 seconds]
huoxito has joined #ruby
<breakingthings> Besides, being that I'm not the only one here it wouldn't really work to work ruby and confuse everybody
nkr has joined #ruby
kornnflake_zzz is now known as kornnflake
browndawg has joined #ruby
<Hanmac> C# has this: "#region XYZ" ... that marks this code bock can be folded ... nothing more ... it does not makes the code faster, it does not makes it smaller, it only is for folding, and looks important like #include but is not
<breakingthings> ...lolwut
<breakingthings> an ide hint?
<hoelzro> I think that's from before you could have partial classes
<Hanmac> yeah, because C# IDEs seems to be dump
<breakingthings> wow
<breakingthings> that's...
<breakingthings> I don't know that I can accurately express my emotions in this.
<Hanmac> it would be cool if it can act like a namespace but it can not its only for folding
<breakingthings> Because it's just so great.
<breakingthings> Amazing.
kpshek has quit []
uris has joined #ruby
<breakingthings> Hanmac: yep, that's the best thing I've ever seen. yep.
<breakingthings> Yep.
banisterfiend has quit [Read error: Connection reset by peer]
<breakingthings> Yeeep.
ArchBeOS is now known as ArchOS3Warp
ananthakumaran1 has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
banisterfiend has joined #ruby
grohne has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
robbyoconnor has joined #ruby
ArchOS3Warp is now known as ArchBeOS
<grohne> hi. can you tell me how to use a setter method (foo=) from within a class?
frem has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
Uranio has joined #ruby
<hoelzro> grohne: self.foo = value
<grohne> hoelzro: is self automatically declared?
<hoelzro> yeah
<grohne> thanks
jurassic_ has quit [Quit: jurassic_]
aaronmcadam has quit [Quit: Leaving...]
hashmal has quit [Ping timeout: 245 seconds]
yshh has joined #ruby
<Hanmac> hoelzro do you know the "strip" programm? it implodes my compiled gem :P
deepinskin has joined #ruby
timmow has joined #ruby
<hoelzro> I know of it
jurassic_ has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
tommyvyo has joined #ruby
robbyoconnor has joined #ruby
dr_bob1 has quit [Ping timeout: 245 seconds]
<Hanmac> it reduces the *.so file into 2% of the orginal size :D
theRoUS has joined #ruby
wallclockbuilder has joined #ruby
kpshek has joined #ruby
<hoelzro> nice
kpshek has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
kpshek has joined #ruby
erratic has quit [Ping timeout: 264 seconds]
R_Macy has joined #ruby
<Hanmac> hoelzro: while the comile of the gem this happens: 300kb (*.cpp,*.hpp,*.rb) => 200MB (*.o) => 50MB (*.so) ... i dont know if bigger gems exist but i think my is not so small :P
_nitti has joined #ruby
<hoelzro> Hanmac: which gem is this?
drumsrgr8forn8 has joined #ruby
drumsrgr8forn8 has quit [Client Quit]
kpshek has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
dr_bob1 has joined #ruby
<Hanmac> rwx ... its not on rubygems yet but there is the repo https://github.com/Hanmac/rwx
__Big0___ has joined #ruby
kpshek has joined #ruby
kpshek has quit [Client Quit]
jerius_ has joined #ruby
<ninjanoise> undefined local variable or method ...
sambao21 has joined #ruby
<ninjanoise> I get that when trying to access @var
timmow has quit [Ping timeout: 252 seconds]
<ninjanoise> do I need to include the method before the var? or..
jamesfung14 has joined #ruby
_nitti has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
a_a_g1 has joined #ruby
<tobiasvl> you can't access var from outside the instance
jerius has quit [Ping timeout: 240 seconds]
jerius_ is now known as jerius
_nitti has joined #ruby
angle has quit [Quit: Leaving]
tcstar has joined #ruby
a_a_g has quit [Ping timeout: 252 seconds]
eka has joined #ruby
yshh has quit [Remote host closed the connection]
kpshek has joined #ruby
yshh has joined #ruby
Takehiro has joined #ruby
r4stakWhere has joined #ruby
r4stakWhere has quit [Client Quit]
JohnBat26 has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<ninjanoise> thanks tobiasvl (busy reading)
robbyoconnor has quit [Ping timeout: 248 seconds]
agjacome has joined #ruby
kornnflake is now known as kornnflake_zzz
xclite has joined #ruby
<Hanmac> holzro if you like wxRuby, you will LOVE my rwx :P
JohnBat26 has joined #ruby
interactionjaxsn has joined #ruby
splud has quit [Quit: splud]
averiso has joined #ruby
workmad3 has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
ttt has quit [Remote host closed the connection]
rboyd has joined #ruby
grohne has left #ruby [#ruby]
vlad_starkov has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 248 seconds]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
chussenot has quit [Ping timeout: 264 seconds]
andres833 has quit [Quit: Saliendo]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<sam113101> guys
<sam113101> GUYS
pepper_chico has joined #ruby
<sam113101> am I supposed to be able to run rails without specifying the whole path?
philcrissman has joined #ruby
pskosinski has joined #ruby
jurassic_ has quit [Quit: jurassic_]
dr_bob2 has joined #ruby
<ninjanoise> my guess would be yes IF it's in your path..
<sam113101> well it's obviously not because I get command not found
<ninjanoise> heh
<ninjanoise> what os?
<sam113101> ubuntu
<ninjanoise> try whereis rails
<ninjanoise> or do you know the whole path
<ninjanoise> ?
<sam113101> well, not sure but I think it's
<sam113101> /home/sam/.rvm/gems/ruby-2.0.0-p0/bin/rails
kofno has joined #ruby
<ninjanoise> ok so edit ~/.profile
dr_bob1 has quit [Ping timeout: 260 seconds]
<ninjanoise> put in there PATH = $PATH:/home/sam/.rvm/gems/ruby-2.0.0-p0/bin
<sam113101> but I'll have to change it if I ever use another ruby version
<ninjanoise> open a new shell and see if you have rails
adambeynon has joined #ruby
<ninjanoise> ah true..
haxrbyte has quit [Read error: Connection reset by peer]
sayan has quit [Read error: Connection reset by peer]
<ninjanoise> maybe there is a RVM trick to fix that up.. I'll leave it out there
chussenot has joined #ruby
quazimodo has quit [Ping timeout: 272 seconds]
<dakaktak> How can I find key in hash by predicate on value?
<dakaktak> >> { :a => [1,2,3], :b => [1,2], :c => [1,2,3,4] }.find { |_,v| v.size == 3 }.first
soc42 has joined #ruby
<eval-in> dakaktak => :a (http://eval.in/12516)
sambao21 has quit [Quit: Computer has gone to sleep.]
quazimodo has joined #ruby
IrishGringo has quit [Remote host closed the connection]
haxrbyte has joined #ruby
w400z has joined #ruby
skattyadz has quit [Quit: skattyadz]
ananthakumaran has joined #ruby
adkron__ has joined #ruby
tjbiddle has joined #ruby
NiteRain has joined #ruby
SCommette has joined #ruby
ffranz has joined #ruby
joshman_ has joined #ruby
Fecn has left #ruby [#ruby]
tk_ has quit [Quit: ばいばい]
mikepack has quit [Remote host closed the connection]
aed has quit []
samphippen has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
<TMM> hanmac: I understand it now, and I got it working, thank you!
xbob has quit [Ping timeout: 256 seconds]
<Hanmac> ninjaoise: "whereis rails" might not the right question ... an better one would be "whyis rails" ... :P
cburyta has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<TMM> Hanmac: is it possible to do something similar with arrays? like, create a method like symbol[]= or something?
<Hanmac> TMM do you mean for instances or classes?
<TMM> I guess that question was very contextless
<TMM> sorry
<Hanmac> you can define class methods (singleton methods on class) so Klass[symbol]=Instance would be possible ... or that the instance automatic register into the class while init
<TMM> http://codepad.org/Nfywt2M2 <-- I have that bit of code in my class, that lets me do stuff like "self.define_attr("blah")" and then later do A.blah = "blah"
<TMM> I'd like something similar but that forces array semantics
<TMM> but I think I'm looking at this entirely from the wrong angle
yshh has quit [Read error: Connection reset by peer]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
jurassic_ has joined #ruby
jlast has joined #ruby
kornnflake_zzz is now known as kornnflake
robbyoconnor has joined #ruby
BaxZzZz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
averiso has quit [Quit: Computer has gone to sleep.]
<TMM> hanmac: does that make sense? or am I being very difficult? :)
geggam_wk has joined #ruby
BaxZzZz has left #ruby [#ruby]
<Hanmac> you can do Klass[symbol] but Klass.attr[symbol] is not one methd
<TMM> oh
<TMM> so attr[]= doesn't exist as a method?
tspike has joined #ruby
whitedawg1 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bluOxigen has joined #ruby
sayan has joined #ruby
<TMM> what I want isn't really possible then? :)
pepper_chico has quit [Quit: Computer has gone to sleep.]
atno has joined #ruby
dhruvasagar has joined #ruby
jrajav has joined #ruby
jurassic_ has quit [Quit: jurassic_]
endzyme has joined #ruby
eAlchemist has joined #ruby
yshh has joined #ruby
kpshek has quit []
whitedawg has quit [Read error: Operation timed out]
<TMM> Hanmac: I could simply not have a public attr= method, and only create attr, creating the array in the initialize() of the instance. That way someone can't do attr = "not an array"
<TMM> hanmac: does that make sense?
puppeh has joined #ruby
skattyadz has joined #ruby
codecop has quit [Remote host closed the connection]
puppeh has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
puppeh has joined #ruby
tspike has quit [Client Quit]
jurassic_ has joined #ruby
alex__c2022 has joined #ruby
kpshek has joined #ruby
puppeh has quit [Read error: Operation timed out]
splud has joined #ruby
kpshek has quit [Client Quit]
Ohga has joined #ruby
apod has quit []
a_a_g has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
kpshek has joined #ruby
dhruvasagar has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
LiquidInsect has joined #ruby
mikepack has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
girija has joined #ruby
BizarreCake has joined #ruby
pyrac has quit [Quit: pyrac]
soc42 has quit [Remote host closed the connection]
FuzaiDesktop has quit [Ping timeout: 245 seconds]
jerius has quit []
swoosh has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
wallcloc_ has joined #ruby
sambio has joined #ruby
angle has joined #ruby
jasond has left #ruby ["Killed buffer"]
arturaz has quit [Ping timeout: 250 seconds]
freezey has joined #ruby
d2dchat has joined #ruby
wallclockbuilder has quit [Ping timeout: 272 seconds]
eAlchemist has quit [Remote host closed the connection]
eAlchemist has joined #ruby
chrishunt has joined #ruby
<TMM> is there a way to force the execution of the initialize() method of a superclass?
<TMM> on class creation
robbyoconnor has quit [Ping timeout: 245 seconds]
hashmal has joined #ruby
pavilionXP has joined #ruby
<Hanmac> TMM "super"
<Banistergalaxy> Huh?
jurassic_ has quit [Quit: jurassic_]
Nisstyre-laptop has joined #ruby
hbpoison has joined #ruby
<TMM> yeah, in the constructor of the child class, but is there a way to always run it regardless of whether or not the child class has 'super' in it's initializer?
kornnflake is now known as kornnflake_zzz
blaxter has quit [Ping timeout: 246 seconds]
pepper_chico has joined #ruby
pepper_chico has quit [Max SendQ exceeded]
<Fenne> TMM: u mean parent class?
<Fenne> and took 'super' from Java?
<TMM> that is possible... :)
dr_bob1 has joined #ruby
pepper_chico has joined #ruby
<tobiasvl> TMM: exactly what do you want to achieve?
<Banistergalaxy> Tmm you need to edit Yourclass .new
dr_bob3 has joined #ruby
<TMM> so, A < B, A has an initialize() but I want to force the running of B's initialize() when someone creates a new instance of the class
bean__ has joined #ruby
<TMM> I setup up some stuff in B that makes A's state entirely useless if it forgets to run the parent's initializer
Morkel has joined #ruby
<tobiasvl> TMM: and calling super in A.initialize() isn't enough because ... ?
markalanevans has joined #ruby
<TMM> because someone may forget? I just find unappealing since it HAS to be done, it's just a bug waiting to happen
<tobiasvl> who's "someone"?
<sailias> TMM: it doesn't forget, you need to add super like tobiasvl is saying
<TMM> a user of the module I guess
<Hanmac> i think you cant "force" it ... and if you could it woundt be nice ...+
<tobiasvl> TMM: but if you've added a super call to the initialize method, how can a user who calls the initialize method forget to use it the way it's defined?
<tobiasvl> i don't understand the scenario here
eAlchemist has quit [Ping timeout: 264 seconds]
dr_bob2 has quit [Ping timeout: 272 seconds]
<sailias> just backread
nateberkopec has joined #ruby
timmow has joined #ruby
carloslopes has joined #ruby
neku has joined #ruby
<TMM> tobiasvl, a user of the module writes a class that inherits from "B" and forgets to call 'super' in the initialize() of their own class, and then later complains at me for writing a buggy module :P
rippa has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
dr_bob1 has quit [Ping timeout: 248 seconds]
<sailias> TMM: including super IS the way to do this, there is no other question regarding it. There is a reason for that so child classes can still have their own initialize method.
baroquebobcat has joined #ruby
<Banistergalaxy> Tmm then don't use initialize, provide another setup hook method
FuzaiDesktop has joined #ruby
<Banistergalaxy> And in initiaze call super and also your hook method
Vektur has joined #ruby
<Banistergalaxy> Force clients to use the hook method
<Banistergalaxy> This is the standard way to do it
<Banistergalaxy> Imo
<TMM> hmm
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
averiso has joined #ruby
<TMM> I'll just document that you need to call 'super' in the intializer for now then, I think I like changing class semantics for my classes even less
Flex has joined #ruby
<Banistergalaxy> Better that then breaking rubyist expectations by fiddling with behavior of built in methods
angle has quit [Quit: Leaving]
angle has joined #ruby
<TMM> actually, I could just make the creation of these values 'lazy' and then this whole thing won't be an issue at all
jerius has joined #ruby
zigomir has quit [Quit: zigomir]
angle has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
pyrac has joined #ruby
m4rtijn has quit [Remote host closed the connection]
r4stakWhere has joined #ruby
<TMM> yeah, that worked :) thanks for the help
<TMM> this is much nicer
Mattix has joined #ruby
V8Energy has joined #ruby
<sailias> life is good
blaxter has joined #ruby
rickmasta has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<TMM> yes, yes it is :)
braoru has quit [Quit: Leaving]
kristofers has joined #ruby
<TMM> it now just initializes the variables when they are first requested, no need to run an initializer
<TMM> there's no good reason to do RAII like stuff in ruby I guess :)
jpcamara_ has joined #ruby
<TMM> I've written a lot more C++ than Ruby or other dynamic languages :)
<X-Jester> hey, does anyone have any ideas on requesting a method to be run on a particular thread? for example, if i call 'foo.sayhello' from another thread, can i in ruby ask sayhello() to execute on Thread.main?
jpcamara has quit [Ping timeout: 272 seconds]
atno has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
adambeynon has quit [Quit: Leaving]
andikr has quit [Remote host closed the connection]
sambao21 has joined #ruby
jurassic has joined #ruby
rboyd_ has joined #ruby
rboyd has quit [Ping timeout: 252 seconds]
rboyd_ is now known as rboyd
ttt has joined #ruby
banisterfiend has joined #ruby
r4stakWhere has left #ruby [#ruby]
etcetera has joined #ruby
tjbiddle has joined #ruby
<TMM> http://codepad.org/rVzYAUZ6 <--- yay, that all works now :)
etcetera has quit [Client Quit]
etcetera has joined #ruby
havenwood has joined #ruby
atno has joined #ruby
jrajav has joined #ruby
tjbiddle_ has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 250 seconds]
alex__c2022 has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
alex__c2022 has joined #ruby
r4stakWhere has joined #ruby
nwertman has joined #ruby
tjbiddle__ has joined #ruby
skattyadz has quit [Quit: skattyadz]
sambao21 has quit [Quit: Computer has gone to sleep.]
<dasdasdas> is rubygems a must ?
<banisterfiend> dasdasdas: yes, it's built in
<dasdasdas> kk, ty
jjbohn has joined #ruby
tjbiddle_ has quit [Read error: Connection reset by peer]
jphpsf has quit [Ping timeout: 250 seconds]
atno has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
joeycarmello has quit [Read error: Connection reset by peer]
woolite64_ has joined #ruby
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle__ is now known as tjbiddle
jrajav___ has joined #ruby
drale2k has joined #ruby
Simone has joined #ruby
grn_ has joined #ruby
havenn_ has joined #ruby
pyrac_ has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<Hanmac> dasdasdas you can ruby --disable=gems but i would not recomend it
C0deMave- has joined #ruby
C0deMave- is now known as C0deMaver1ck_
Koshian__ has joined #ruby
baroquebobcat_ has joined #ruby
atno has joined #ruby
C0deMaver1ck_ has quit [Changing host]
C0deMaver1ck_ has joined #ruby
C0deMaver1ck has quit [Disconnected by services]
C0deMaver1ck_ is now known as C0deMaver1ck
Coolhand_ has joined #ruby
brad[]` has joined #ruby
egn_ has joined #ruby
jrajav has quit [Read error: Connection reset by peer]
Koshian_ has quit [Ping timeout: 264 seconds]
pyrac has quit [Ping timeout: 264 seconds]
jrajav___ is now known as jrajav
seich- has quit [Ping timeout: 264 seconds]
grn has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 264 seconds]
brad[] has quit [Ping timeout: 264 seconds]
egn has quit [Ping timeout: 264 seconds]
foohey has quit [Ping timeout: 264 seconds]
gianlucadv_ has quit [Ping timeout: 264 seconds]
pyrac_ is now known as pyrac
RastaqWhere has joined #ruby
Guedes has quit [Excess Flood]
nyuszika7h has quit [Excess Flood]
fasta_ has joined #ruby
dmiller has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
neku has quit [Ping timeout: 264 seconds]
baroquebobcat_ is now known as baroquebobcat
qhartman has quit [Ping timeout: 264 seconds]
kop has quit [Ping timeout: 264 seconds]
woolite64 has quit [Ping timeout: 264 seconds]
sheerun has quit [Ping timeout: 264 seconds]
leeder-krenon has quit [Ping timeout: 264 seconds]
virtuose has quit [Ping timeout: 264 seconds]
oddraisin has quit [Ping timeout: 264 seconds]
yosafbridge has quit [Ping timeout: 264 seconds]
oddraisin has joined #ruby
Mon_Ouie has joined #ruby
Guedes has joined #ruby
danman has joined #ruby
qhartman has joined #ruby
spanner has joined #ruby
foohey has joined #ruby
kop has joined #ruby
virtuose has joined #ruby
spanner is now known as leeder-krenon
Coolhand has quit [Ping timeout: 264 seconds]
Akuma has quit [Ping timeout: 264 seconds]
cschneid has quit [Ping timeout: 264 seconds]
fasta has quit [Ping timeout: 264 seconds]
leeder-krenon has quit [Read error: Connection reset by peer]
yosafbridge has joined #ruby
nyuszika7h has joined #ruby
Akuma has joined #ruby
zehrizzatti has joined #ruby
JohnBat26 has quit [Ping timeout: 260 seconds]
drale2k has quit [Ping timeout: 248 seconds]
sheerun has joined #ruby
seich- has joined #ruby
gianlucadv has joined #ruby
leeder-krenon has joined #ruby
a_a_g has quit [Quit: Leaving.]
techlife has quit [Ping timeout: 245 seconds]
r4stakWhere has quit [Quit: r4stakWhere]
amcsi_work has quit [Read error: Operation timed out]
Dreamer3 has joined #ruby
samphippen has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
fire has joined #ruby
apeiros_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
kpshek has quit []
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
mulinux has joined #ruby
megha has quit [Ping timeout: 256 seconds]
carloslopes has quit [Remote host closed the connection]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
cschneid has joined #ruby
sambao21 has joined #ruby
RastaqWhere has quit [Quit: Leaving.]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
atno has quit [Remote host closed the connection]
jpcamara_ has quit [Quit: jpcamara_]
kpshek has joined #ruby
<dasdasdas> if i add geoip module, it will work on every request? or i still need add it in the config?
_nitti has quit [Remote host closed the connection]
joeycarmello has joined #ruby
atno has joined #ruby
<dasdasdas> ups wrong channel xD
DrShoggoth has quit [Ping timeout: 255 seconds]
sayan has quit [Read error: Connection reset by peer]
<axl_> can i get a Date object for today in a specified time zone ?
<tobiasvl> sure
<tobiasvl> >> Time.zone = "Berlin"; puts Time.zone.now.to_date
<eval-in> tobiasvl => /tmp/execpad-0d48e0d51edc/source-0d48e0d51edc:2:in `<main>': undefined method `zone=' for Time:Class (NoMethodError) (http://eval.in/12520)
<tobiasvl> OKAY
jblack has joined #ruby
<tobiasvl> i think you need to require 'date_extensions'
Nisstyre-laptop has quit [Ping timeout: 257 seconds]
tylersmith has joined #ruby
chrishough has quit [Quit: chrishough]
adac has quit [Quit: Leaving]
realDAB has quit [Quit: realDAB]
Watcher7|off is now known as Watcher7
spychalski has quit [Ping timeout: 240 seconds]
_nitti has joined #ruby
spychalski has joined #ruby
aderyabin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphpsf has joined #ruby
vlad_starkov has joined #ruby
zehrizzatti has quit [Quit: Leaving...]
j^2 has joined #ruby
rickmasta has quit [Quit: Leaving...]
philcrissman has quit [Remote host closed the connection]
maletor has joined #ruby
deepinskin has quit [Ping timeout: 250 seconds]
jonathanwallace has joined #ruby
timonv has quit [Remote host closed the connection]
pandawarrior has joined #ruby
pandawarrior has left #ruby [#ruby]
poikon_work has joined #ruby
carloslopes has joined #ruby
skattyadz has joined #ruby
DrShoggoth has joined #ruby
goleldar has joined #ruby
freezey has quit [Remote host closed the connection]
Guedes has quit [Ping timeout: 260 seconds]
zeade has joined #ruby
DarkAceZ is now known as fundies
aganov has quit [Remote host closed the connection]
poikon has quit [Ping timeout: 260 seconds]
fundies is now known as DarkAceZ
bigoldrock has joined #ruby
atno has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
chrishough has joined #ruby
atno has joined #ruby
rickmasta has joined #ruby
eAlchemist has joined #ruby
Simone has quit [Read error: Connection reset by peer]
neku has joined #ruby
xbob has joined #ruby
Voodoofish430 has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
plantseeker has quit [Quit: Nettalk6 - www.ntalk.de]
JonnieCache has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
generalissimo has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jdunck has joined #ruby
mockra has joined #ruby
adeponte has joined #ruby
wyhaines has joined #ruby
Sacha has joined #ruby
DrShoggoth has quit [Ping timeout: 252 seconds]
eAlchemist has quit [Read error: Operation timed out]
generalissimo has quit [Read error: Connection reset by peer]
generali_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
<shevy> axl_, how about: result = Time.at Time.now # => Tue Mar 12 17:36:31 +0100 2013
jurassic has quit [Quit: jurassic]
w400z has quit []
jurassic has joined #ruby
Sacha has quit [Read error: Connection reset by peer]
jurassic has quit [Client Quit]
Davey has joined #ruby
hoelzro is now known as hoelzro|away
sk87 has quit [Quit: sk87]
lolmaus has quit []
bean__ has quit [Quit: Computer has gone to sleep.]
alex__c2022 has quit [Read error: Operation timed out]
<Caelum> do sinatra apps run as cgi?
bonhoeffer has joined #ruby
timonv has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
<JonnieCache> no
adambeynon has joined #ruby
<JonnieCache> well you could probably run them as cgi if you really wanted
mneorr has joined #ruby
zehrizzatti has joined #ruby
alex__c2022 has joined #ruby
<Caelum> I was guessing that since it uses rack it would work
<JonnieCache> but sinatra uses rack, which is a standardised interface between ruby apps and webservers
DrShoggoth has joined #ruby
<Caelum> my perl framework automatically detects cgi mode and runs as a cgi
<Caelum> I guess I should just try it...
<JonnieCache> rack is pretty easy to get going
axl_ has quit [Quit: axl_]
<JonnieCache> if youve ever used wsgi from the python world, its very much like that
hbpoison has quit [Ping timeout: 245 seconds]
Bira has joined #ruby
zedr has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
<zedr> Hello, I have a question regarding REST, web sites, and web services: http://stackoverflow.com/questions/15360415/should-a-web-site-also-be-a-web-resource
yashshah has joined #ruby
xbob has quit [Quit: Leaving]
xbob has joined #ruby
monkegjinni has joined #ruby
mulinux has quit [Quit: mulinux]
znode has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
samphippen has joined #ruby
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
jbueza has joined #ruby
tspike has joined #ruby
zehrizzatti has quit [Quit: Leaving...]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
realDAB has joined #ruby
znode has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 248 seconds]
_nitti has quit [Remote host closed the connection]
spider-mario has joined #ruby
havenn has joined #ruby
chrisja has joined #ruby
timonv has quit [Remote host closed the connection]
<Caelum> JonnieCache: hey I figured it out: http://gist.github.com/5144687
mneorr has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
kornnflake_zzz is now known as kornnflake
rboyd has quit [Ping timeout: 248 seconds]
pcarrier has quit []
breakingthings has quit []
vjacob has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
rupee has joined #ruby
<Caelum> JonnieCache: it should really just detect cgi env vars automatically though
pyrac has quit [Quit: pyrac]
jgrevich has joined #ruby
DrShoggoth has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
banjara has joined #ruby
jerius has quit []
mpfundstein has quit [Remote host closed the connection]
apok has joined #ruby
filipe has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
failshell has joined #ruby
sepp2k1 has joined #ruby
<Uranio> Caelum: that is a very good question, you aks it in #sinatra?
jrajav has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nwertman_ has joined #ruby
twoism has joined #ruby
whitedawg1 has quit [Quit: Leaving.]
musicmatze has joined #ruby
<musicmatze> Am I allowed to ask questions related to ruby2.0 here?
nga4 has joined #ruby
nwertman has quit [Ping timeout: 252 seconds]
<JonnieCache> indeed you are
atyz has joined #ruby
squidBits has joined #ruby
atyz has quit [Client Quit]
<musicmatze> Simple question: There are these new methods Array#bsearch and Range#bsearch. But _why_? I thought ruby was designed to keep work for programmers as easy as possible, so why do _i_ as programmer have to care about how my data is fetched from the array?
atyz has joined #ruby
cburyta has quit [Remote host closed the connection]
<musicmatze> I think the Ruby Interpreter should do this for me as fast as possible automatically when I call #search or #find or so on an array!
jimeh has quit [Ping timeout: 245 seconds]
cburyta has joined #ruby
jimeh has joined #ruby
apok has quit [Read error: Connection reset by peer]
wunz_ is now known as wunz
d2dchat has quit [Remote host closed the connection]
jphpsf has quit [Ping timeout: 245 seconds]
aderyabin has joined #ruby
cburyta has quit [Read error: No route to host]
Neandre has quit [Ping timeout: 255 seconds]
<Bira> musicmatze: It's not that simple. Binary search only works if you have an array of objects that can both be compared to each other and are already sorted.
<Bira> Neither of those things are necessarily true for any given array - the developer is the only one who can guarantee it.
motto has joined #ruby
apok has joined #ruby
<musicmatze> Bira: So the interpreter could do some checks, sort the array (and cache it in background for me) and then do the bsearch. And if there are different kind of objects, there must be an exception raised.
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
niklasb has quit [Ping timeout: 245 seconds]
kornnflake is now known as kornnflake_zzz
<banisterfiend> musicmatze: yeah how about the computer just guess what program you want to write and just write the whoel thing for u
arturaz has joined #ruby
<banisterfiend> then u could just sit around watching reruns of macgyver and drinking cocacola
<musicmatze> That is what would be the logical conclusion for me for _ruby_. I always read, ruby was designed to keep programmers effort small. Now I have to do ary.sort.bsearch instead of array.find or so.
vjacob has left #ruby ["Leaving"]
sayan has quit [Read error: Connection reset by peer]
m8 has quit [Ping timeout: 272 seconds]
<musicmatze> I do not criticize that at all, I just asked because I think it could be solved with much less resulting ruby code for me as ruby programmer.
mrsolo has joined #ruby
mrsolo has quit [Remote host closed the connection]
<banisterfiend> musicmatze: i would find that behavior *intrusive* rather than helpful
markalanevans has quit [Quit: markalanevans]
Flex has quit [Ping timeout: 245 seconds]
mrsolo has joined #ruby
nomenkun has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 260 seconds]
<musicmatze> banisterfiend: Okay, maybe it's kind of personal taste.
jphpsf has joined #ruby
jamesfung14 has quit [Ping timeout: 255 seconds]
ozgura has quit [Remote host closed the connection]
<banisterfiend> musicmatze: 1. how would it know the array was presorted? 2. how does it know what criteria to use when sorting?
<banisterfiend> musicmatze: it has no way of doing, you can sort on different features using sort_by
<musicmatze> basitserfiend: Oh, your right.
monkegjinni has quit [Remote host closed the connection]
<musicmatze> I didn't think about this. You're completely right!
adr has quit [Ping timeout: 255 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
riffraff1691 has joined #ruby
jonathanwallace has joined #ruby
<riffraff1691> i have a ruby problem, i will make a pastie for the code and the error
dmerrick_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
dmerrick has quit [Read error: Operation timed out]
dmerrick_ is now known as dmerrick
<riffraff1691> however, the code works in irb
ahammond has joined #ruby
neku has quit [Quit: Leaving...]
eldariof has joined #ruby
wormwood has quit [Changing host]
wormwood has joined #ruby
<riffraff1691> not sure why i am getting Symbol as array index (TypeError) in the script, but not in irb
monkegjinni has joined #ruby
hbpoison has joined #ruby
cburyta has joined #ruby
<fearoffish> sprinkle in some debug statements and you'll find it's an array
musicmatze has left #ruby [#ruby]
nari has quit [Ping timeout: 256 seconds]
<riffraff1691> i have @cache = {}
<riffraff1691> is that an array?
<fearoffish> no, that's a hash
<fearoffish> but it's complaining that it's an array
<riffraff1691> and after that i have @cache[:info] = {}, another hash
<fearoffish> gist the whole script?
<riffraff1691> ok
piotr has joined #ruby
<Ohga> riffraff1691: check how you initialize @cache in the *script*
noxoc has quit [Quit: noxoc]
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
<fearoffish> riffraff1691: line 42 sets it as an array
ofcan has joined #ruby
philcrissman has joined #ruby
<ofcan> Hello guys! I have a question regarding Ruby validation, saving records and graphic output. I've put the Q in detail with the code here, any help is awesome > http://stackoverflow.com/questions/15363938/ruby-not-rails-attribute-validation-saving-records-and-output/15364963?noredirect=1#15364963
<Ohga> riffraff1691: I'm sure that should start with "@cache[:users] =", right?
Stilo has joined #ruby
rismoney has joined #ruby
tspike has quit [Quit: leaving]
LiquidIn1ect has joined #ruby
LiquidIn1ect has quit [Client Quit]
dhruvasagar has joined #ruby
motto has quit [Quit: Sto andando via]
<riffraff1691> ah i reset my information
pdamer has quit [Quit: pdamer]
<riffraff1691> it should be @cache[:users]=....
<riffraff1691> thanks for catching my error, i needed another set of eyes on it
RubyHunter has quit [Quit: Verlassend]
m8 has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
mikepack has quit [Remote host closed the connection]
atyz has joined #ruby
jamesfung14 has joined #ruby
aderyabin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marwinism> I am putting database rows in @variables. This works flawlessly in Eclipse when I run the project there, but I try to launch the same code on a webserver with sinatra, and then it says it can't convert nil to string. JSON handles numbers straight forward?
yshh has quit [Remote host closed the connection]
allaire has joined #ruby
neurone-1337 has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
riffraff1691 is now known as riffraff169
interactionjaxsn has joined #ruby
<Bira> marwinism: That message means that an object your code expected not to be nil is nil.
jphpsf has quit [Ping timeout: 245 seconds]
<Bira> Probably something on which you're calling to_s
<Bira> Maybe you're not getting any database rows back?
<marwinism> It works in eclipse, so I get the rows back, but the to_s I have somewehere, might be a debugging i forgot to comment out somewhere! I'll just have to go over the code some more. Thanks!
shevy has quit [Quit: ""]
alvaro_o has joined #ruby
d2dchat has joined #ruby
rickmasta has quit [Quit: Leaving...]
akhet has quit [Remote host closed the connection]
ninjanoise has left #ruby [""*poof*""]
jphpsf has joined #ruby
xardas has joined #ruby
zedr has quit [Quit: Lost terminal]
aaronmcadam has quit [Read error: Operation timed out]
rboyd has joined #ruby
jerius has joined #ruby
LouisRoR has joined #ruby
beneggett has joined #ruby
drale2k has joined #ruby
alexim has joined #ruby
<ofcan> Hello guys! I have a question regarding Ruby validation, saving records and graphic output. I've put the Q in detail with the code here, any help is awesome > http://stackoverflow.com/questions/15363938/ruby-not-rails-attribute-validation-saving-records-and-output/15364963?noredirect=1#15364963
Astral_ has joined #ruby
etcetera has quit []
eimajenthat has joined #ruby
DrShoggoth has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
havenn_ has quit [Remote host closed the connection]
kornnflake_zzz is now known as kornnflake
fizman has joined #ruby
Astralum has quit [Ping timeout: 246 seconds]
<Hanmac> ofcan i think you are in the wrong channel
bean__ has joined #ruby
noop has quit [Ping timeout: 255 seconds]
etcetera has joined #ruby
drale2k has quit [Ping timeout: 250 seconds]
<fizman> is there a specific time when you can return from from .each?
dr_bob3 has left #ruby [#ruby]
imami|afk is now known as banseljaj
doja has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<wormwood> is there anyway to serialize a compiled program and have it run within ruby?
ozgura has joined #ruby
<realDAB> fizman: i'm not sure what you mean
<ofcan> Hanmac: how?
<eimajenthat> I'm writing a little Ruby script, and using the RubyMoney module. When I use a money object in a string (I think it's getting converted to string implicitly?), the decimal is handled correctly (2 decimal places, even w/ zeros), but I am not seeing the currency symbol added as I expect. I'm pretty new to Ruby (using this as a chance to learn a bit more). Wondered if anyone could point my in right direction.
<Hanmac> ofcan ... so are you using rails or not?
adkron has quit [Ping timeout: 260 seconds]
<eimajenthat> Will paste a link to my code, one sec
adkron_ has quit [Ping timeout: 252 seconds]
<ofcan> Hanmac: nope
<Hanmac> fizman i think you want break
mockra has quit [Remote host closed the connection]
timonv has joined #ruby
<Hanmac> wormwood: some ruby interpreters like jruby or rubinius can generate "bytecode" ... but not all of them, and this code is maybe platform depend
kojul has joined #ruby
eAlchemist has joined #ruby
<marwinism> wow.. my "Can't convert nil to String" was me trying to return the wrong variable. FML..
<fizman> what if you are doing recursive stuff, i am trying to parse a graph structure http://pastie.org/private/g6zir6o4irzgfiefmhe0fa but this works http://pastie.org/private/hupp1vsmenjjvobb5ywrg
adkron has joined #ruby
_nitti has joined #ruby
<wormwood> Hanmac: right @ the platform dependant. That would be ok in my case. But yeah, the idea is storing a programing (serialized") and being
<wormwood> able to run that someone at a later point
adkron_ has joined #ruby
mafolz has quit [Ping timeout: 260 seconds]
<wormwood> storing a program* rather
Vainoharhainen has quit [Quit: Leaving...]
<wormwood> sometime*
forrest has joined #ruby
<fizman> break also works but i guess it doesnt throw an error when it has to yield something
<Hanmac> wormwood: if you only want to store data, you could use Marshal ... for storing an entire programm you need jruby or rubinius ... but beware, some rubygems does not work with jruby
niklasb has joined #ruby
kofno has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
<wormwood> Hanmac: darn, np. thanks and sorry for the mal-formed questions I've been asking :X
<havenn> wormwood: Do you want to serialize objects and store them to file or db?
<cr3> is there an existing data structure or example that can be used like a hash table but prints a list of command line options: --foo=bar etc.
<wormwood> havenn: an entire program ( small )
<wormwood> a asm / c program
<havenn> wormwood: So you want to save a text file to disk? I'm confused?!
Ontolog has joined #ruby
itsdavem has joined #ruby
Al_ has quit [Quit: Al_]
itsdavem has quit [Remote host closed the connection]
<havenn> wormwood: Ohhh, kk, i'm slow - no coffee yet.
<wormwood> havenn: lets say I have a asm program that prints 'Hello World'. I want to embed that some how in a ruby datastructure and be able to call it at a later time
tenmilestereo has joined #ruby
breakingthings has joined #ruby
<wormwood> havenn: np, I'm in the same position :), haven't slept in a while. Very interesting how it affects my engrish skills
Tricon has joined #ruby
<havenn> wormwood: Might look at ruby2ruby: http://docs.seattlerb.org/ruby2ruby/
<Hanmac> ruby is to high to fall back to asm ... :/
Criztian has joined #ruby
<aedorn> mmm coffee
mercwithamouth has joined #ruby
razibog1 has quit [Ping timeout: 245 seconds]
hybris has quit [Ping timeout: 245 seconds]
adr has joined #ruby
elaptics is now known as elaptics`away
<interactionjaxsn> fizman: your block can call a method that returns a value?
ExxKA has quit [Quit: This computer has gone to sleep]
Ontolog_ has joined #ruby
kojul has quit [Quit: kojul]
pyrac has joined #ruby
goganchic has joined #ruby
zehrizzatti has joined #ruby
Criztian has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
allan_hills has joined #ruby
<allan_hills> is there any way i can construct File objects - or things with a similar interface - but only obtain the OS file handle lazily?
Criztian has joined #ruby
Ontolog has quit [Ping timeout: 260 seconds]
ebobby has joined #ruby
mityaz has joined #ruby
tylersmith has quit [Quit: tylersmith]
pskosinski is now known as |^o^|
tylersmith has joined #ruby
* allan_hills is about to write his own wrapper class but figured he'd ask if it already existed
luckyruby has joined #ruby
goganchic has quit []
adr has quit [Ping timeout: 246 seconds]
|^o^| is now known as h-elp
cmarques_ has joined #ruby
sayan has joined #ruby
adr has joined #ruby
luckyruby has quit [Remote host closed the connection]
cmarques has quit [Ping timeout: 260 seconds]
<fizman> interactionjaxsn: thanks
<interactionjaxsn> fizman: i messed up the result but you get the idea
jrajav has joined #ruby
muz0xd has joined #ruby
luckyruby has joined #ruby
dayepa_ has quit [Read error: Connection reset by peer]
<interactionjaxsn> fizman: also keep in mind that ruby has implicit return - ruby returns the last value evaluated
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
muz0xd has quit [Client Quit]
failshell has quit [Remote host closed the connection]
becom33 has joined #ruby
<e-dard> Hi, capistrano is asking for my SSH key passphrase. Why can't it use Keychain/ssh-agent like everything else on my system? (OSX 10.8)
<aedorn> I like my explicit returns =(
<becom33> is there a way of keeping a config file for thor application . where I can use it in any task ? without having to require the config class into every task
<e-dard> This is when I execute cap that is
mmitchell has joined #ruby
girija has quit [Ping timeout: 264 seconds]
<interactionjaxsn> aedorn: with great power comes great responsibility... oh wait, wrong channel
daze has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
brianpWins has joined #ruby
akashj87 has joined #ruby
icole has joined #ruby
<daze> can I use bundler to install all the gems in a directory of my choice? I don't want to clutter my system with pacman unmanaged files and would prefer to have gems inside my webapps dir, if possible. Currently, bundle install asks for password and installs the gems into the system. I'm new to this :/
adkron_ has quit [Read error: Connection reset by peer]
adkron_ has joined #ruby
adkron___ has joined #ruby
fermion has quit [Ping timeout: 250 seconds]
<interactionjaxsn> aedorn: as do i. return 'all the things' unless foo
ffranz has quit [Read error: Connection reset by peer]
axhlf has quit [Remote host closed the connection]
<interactionjaxsn> daze: if you use rvm you can create gemsets that manage your dependancies on a per app basis
<aedorn> daze: --path /path/
rboyd has quit [Read error: Connection reset by peer]
mark_locklear has quit [Quit: Leaving]
<aedorn> also bundle --deployment will install to the app directory, but probably not a good idea for development
rboyd has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
adkron has quit [Ping timeout: 240 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
ffranz has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
Stilo has joined #ruby
<daze> ok, the --path argument seems to work. Thanks ;) Can you elaborate on the rvm, though? Is it better than bundler?
_nitti has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
stkowski has joined #ruby
jphpsf has quit [Ping timeout: 264 seconds]
<Hanmac> daze both are used for differnt purposes
<interactionjaxsn> daze: it's not a matter of better
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<daze> I'm using ruby for sass/compass/guard/livereload, so development only. Which should I use? :)
skattyadz has quit [Quit: skattyadz]
<interactionjaxsn> daze: https://rvm.io/gemsets/basics/
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<daze> ok, rtfm'ing. thanks ;)
sambao21 has joined #ruby
<aedorn> Use RVM or chruby if you want to separate your Ruby installs from system packages, or if you need to switch Ruby versions often. If you only care about gems, then you probably don't necessarily need those, but self experience matters here. (IOW - whatever you like best)
<havenn> daze: Or if you don't use RVM: https://github.com/postmodern/chgems
lewix has quit [Remote host closed the connection]
SolidResolve has joined #ruby
<havenn> +1 chruby + chgems
<havenn> rvm is nice as well :)
w400z has joined #ruby
<interactionjaxsn> havenn: nice
<daze> My main goal is to not have system-wide ruby gems as they're not managed by pacman (Arch's package manager) and versioning is a pain.
slainer68 has quit [Remote host closed the connection]
<havenn> daze: chruby is included in the AUR
mockra has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
markalanevans has joined #ruby
pepper_chico has quit [Quit: Computer has gone to sleep.]
doja has quit [Quit: Linkinus - http://linkinus.com]
<daze> hmm.. so rvm and chruby+chgems does the same, right?
<aedorn> hmmm.. maybe I should take this time to reload this system.
akashj87 has quit [Quit: leaving]
<Hanmac> daze can a bit more with gemsets
<havenn> daze: Yeah, just different take on how to do it. RVM does a lot more, but is monolithic. While chruby and chgems just attempt to do one thing each, and do it well.
<daze> yeah, but if I'm not using named gemsets (using rvm with 'default'), it's essentially chruby+chgems
duosrx has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
pyrac has quit [Quit: pyrac]
jphpsf has joined #ruby
mockra has quit [Ping timeout: 240 seconds]
cburyta has joined #ruby
poikon_work has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
_nitti has joined #ruby
Takehiro has quit [Remote host closed the connection]
akashj87 has joined #ruby
<becom33> how can I use a config file in a thor application if I have multiple task and subtask and If I want to use the config file detail in any of the task . for a example "colorizing enabled" . how can I use it in other task . . I have multiple files . I was wondering if there is a way without having to include or require the config file in to each and every ruby file where config is needed
tay1 has joined #ruby
caveat- has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
tay11 has joined #ruby
pyrac has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
yashshah has quit [Read error: Connection reset by peer]
cburyta has quit [Ping timeout: 264 seconds]
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
helvete has joined #ruby
skattyadz has joined #ruby
helvete has quit [Client Quit]
alex__c2022 has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
pellis_ has joined #ruby
<pellis_> hello
alex__c2022 has joined #ruby
<interactionjaxsn> pellis_: howdy
<pellis_> anyone actually seeing speed improvements with Ruby 2.0?
jekotia has joined #ruby
<havenn> pellis_: yes :)
<pellis_> havenn, is this on a typical web workload?
tay1 has quit [Ping timeout: 252 seconds]
<havenn> pellis_: substantially improved load times for larger apps, some float calculations are much faster, forking web server memory use is lower
<pellis_> I've noticed a nice startup time, but as for request/sec - actually degraded
<havenn> pellis_: What web server are you using?
<pellis_> unicorn, and nginx
<pellis_> i'm attributing this to the strings now all being utf8
jgrevich has quit [Remote host closed the connection]
<pellis_> which is what I read somewhere
<havenn> pellis_: With CoW friendly GC you should see less memory usage. And app startup speed. Those are two biggest wins I think for that scenario.
<Hanmac> pellis_ & havenn in ruby2.1 float are more funny because they got fixed ids :P
sandstrom has joined #ruby
<havenn> Hanmac: :O
maxmanders has joined #ruby
<sandstrom> Using rbenv on a fresh OS X machine. Getting this error when I run `bundle install`: "Gem::InstallError: ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself."
sonda has quit [Remote host closed the connection]
<havenn> sandstrom: What happens if you run?: gem update --system
<Paradox> also
<sandstrom> havenn: `gem --version` returns 2.0.3
<Paradox> thats your problem
allan_hills has quit [Quit: allan_hills]
<Paradox> tell the gem maintainer to fix their dependencies
<Paradox> or fork it and do it yourself
<sandstrom> is that for me or someone else
<Paradox> ypu
<Paradox> you
<becom33> how can I use a config file in a thor application if I have multiple task and subtask and If I want to use the config file detail in any of the task . for a example "colorizing enabled" . how can I use it in other task . . I have multiple files . I was wondering if there is a way without having to include or require the config file in to each and every ruby file where config is needed
<Paradox> wat
aderyabin has joined #ruby
codecop has joined #ruby
<bean__> whuttt
<havenn> sandstrom: You can even just install ZenTest and go edit its zentest.gemspec file if you want. But like Paradox said, fork it or ask em to fix.
yshh has joined #ruby
<Paradox> (protip, fork it, fix it, and pull request would get it fixed faster)
<Paradox> what am i a daft punk song
<Paradox> fork it fix it gem it push it pull request it
Criztian has quit [Remote host closed the connection]
<Paradox> lol
chrishough has quit [Quit: chrishough]
<aedorn> parody remix time
jphpsf has quit [Ping timeout: 260 seconds]
aderyabin has quit [Client Quit]
<Paradox> ru-beh
<Paradox> ru-beh
<havenn> Paradox: fork it, branch it, fix it, push it, PR it
<Paradox> ahaha
<havenn> oh git...
kornnflake is now known as kornnflake_zzz
<Paradox> git isnt the best
<Paradox> but its better than anything else
wormwood has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
<havenn> We need a Ruby artificial intelligence that handles git in every way, anticipating our needs based on analysis of code changes.
<Paradox> sounds like microsoft paperclip
<havenn> ouch
<Paradox> "hello, it looks like you're forking a project. Would you like some help?"
aderyabin has joined #ruby
cmarques_ has quit [Ping timeout: 252 seconds]
cmarques has joined #ruby
rboyd has quit [Read error: Connection reset by peer]
objectivemo has quit [Ping timeout: 256 seconds]
cburyta has joined #ruby
browndawg has quit [Quit: Leaving.]
<Hanmac> Paradox: like "Do you want me to kick myself? [Yes] [Yeah!]"
<aedorn> I think it'd be more like MS Bob
<havenn> 'Code that doesn't suck has been cherry picked. Nothing to commit. Aborting.'
sambao21 has quit [Quit: Computer has gone to sleep.]
<Paradox> it looks like you're trying to rebase. deleting all your files now
lewix has quit [Remote host closed the connection]
snearch has joined #ruby
<havenn> sub(/^'/, '"').sub(/'$/, '"')
snearch has quit [Max SendQ exceeded]
<havenn> I should have just rescued exception. :( Syntax errors in irc ftl.
ninjanoise has joined #ruby
ephemerian has left #ruby [#ruby]
mneorr has joined #ruby
ryanf has joined #ruby
chrishough has joined #ruby
nomenkun has joined #ruby
<havenn> Unforseen apostrophes are the one big downside i run into when using double-quotes only when interpolating.
<ninjanoise> can anyone explain this to me
<ninjanoise> num = (1..20).inject(1) { |result, n| result.lcm n }
shock_one has joined #ruby
threesome has quit [Read error: Connection reset by peer]
rob_ has joined #ruby
<rob_> hi, ihave a python library that has an api, is there any way i can use it from ruby?
yshh has quit [Ping timeout: 240 seconds]
<Hanmac> rob_ ... i dont think so ... maybe with Topaz... but not with normal rubies
sambao21 has joined #ruby
<rob_> ok thanks!
reset has joined #ruby
<Hanmac> ninjanoise it does call the lcm of all this numbers
jphpsf has joined #ruby
<havenn> rob_: Just curious, but whacha mean exactly by API?
Yakko has joined #ruby
ferdev has joined #ruby
<rob_> havenn: i mean i dont want to manipulate the libraries objects, just do calls to the library and get a result back
thone_ has joined #ruby
<Ohga> havenn: are you a the same user as havenwood?
<havenn> Ohga: yup
havenn is now known as havenwood
chussenot has quit [Quit: chussenot]
<Ohga> havenn: ah, hi.. I found this.. it's incomplete, but helpful: http://wpsoftware.net/andrew/pages/libyaml.html
<Ohga> it's for the c lib though.. didn't find anything about psych specificaly
<havenwood> Nice, I'll check it out. ;)
<havenwood> Ohga: realized i was mistaken yesterday, i was think JEG did FastYAML, but it was FastCSV... >.>
rob_ has left #ruby [#ruby]
<Hanmac> rob_ there are few ways ... lf the lib is written in C or C++ and python is only using an binding than its possible
BizarreCake has quit [Ping timeout: 246 seconds]
objectivemo has joined #ruby
<Ohga> havenwood: well, no damage caused. Would you join me in an effort to find more references?
jonahR has joined #ruby
cburyta has quit [Remote host closed the connection]
kirun has joined #ruby
<aedorn> What's a good book about PostgreSQL that I can put on my shelf to collect dust next to the MySQL books?
<becom33> how can I use a config file in a thor application if I have multiple task and subtask and If I want to use the config file detail in any of the task . for a example "colorizing enabled" . how can I use it in other task . . I have multiple files . I was wondering if there is a way without having to include or require the config file in to each and every ruby file where config is needed
cburyta has joined #ruby
<Paradox> aedorn, oreilley books are good at that
thone has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Read error: Connection reset by peer]
_br_ has quit [Excess Flood]
<tay11> this isa dumb question but how do i output something like 1-50?
<Ohga> havenwood: yeah, that's the high level parsing.. would like something about token and event parsing though..
tjbiddle has joined #ruby
<aedorn> Yeah, one of the MySQL books is O'Reilly. Hmm
<havenwood> Ohga: Not easy to find. Maybe we need to write one.
_br_ has joined #ruby
<Ohga> tay11: "puts '1-50'" ?
<tay11> i am still having trouble understanding certain things in ruby
<Paradox> aedorn, my path to ruby is dotted with oreilley books
Takehiro has joined #ruby
<Paradox> tay11, i recommend picking up a copy of the pickaxe book
<Ohga> havenwood: hm.. like.. right now?
<Paradox> if you want shelf-fillers, oreilley is the best way to go
<Paradox> if you want books you'll read
<Ohga> havenwood: could do if you have the time?
cmarques has quit [Ping timeout: 264 seconds]
<Paradox> pragmatic press
nfk has quit [Quit: yawn]
<aedorn> I have a lot of Pragmatic books, too
<havenwood> tay11: What do you mean by 1-50? The string '1-50'? Or the strings '1' up to '50' separated by whitespace?
<tay11> yeah 1,2,3,4,5,6.. etc
jpcamara has joined #ruby
<havenwood> tay11: So a string from 1 up to 50 separated by commas with no whitespace?
<Paradox> 1..50.each { |x| print "x " }
<Paradox> oh
<Paradox> 1..50.each { |x| print "x," }
<Paradox> there you go
<Paradox> that will do it
<tay11> white space, no whitespace doesnt matter
<tay11> ok
<interactionjaxsn> [*1..50].join(' ')
<Paradox> >1..50.each { |x| print "x," }
<Ohga> Paradox: you have to handle one less comma at the end..
cburyta has quit [Ping timeout: 264 seconds]
kofno has joined #ruby
<Paradox> ah yeah
<Paradox> just do a join then
<Hanmac> :P (1..50).each &:display
<Paradox> as interactionjaxsn said
<pellis_> anyone experiencing macvim to be slower than vvim?
<tay11> basically im trying to build a simple calendar
cmarques has joined #ruby
<aedorn> 1.upto(50) {|x| print "#{x} "}
<tay11> ok
madb055 has quit [Ping timeout: 245 seconds]
<havenwood> Ohga: Does sound interesting to explore Psych and do a writeup, but I'm hungry! Maybe on weekend put something together?
_br_ has quit [Excess Flood]
Adys_ has joined #ruby
rezzack has joined #ruby
failshell has joined #ruby
<Ohga> havenwood: out of town this weekend..
<Paradox> [*1..50] * ','
<aedorn> hmmm.. I'm positive this printing 1 to 50 thing can be far more complicated!
<Paradox> mine's shortest
<Paradox> i win
lewix has joined #ruby
lewix has quit [Changing host]
lewix has joined #ruby
<havenwood> Ohga: **Sometime in the indefinite future.
<tay11> Paradox: i want to make my own
<tay11> a basic one. this is sort of a practice
pepper_chico has joined #ruby
<tay11> im still learning ruby/rails
<Ohga> havenwood: what's your time zone?
pellis_ is now known as pellis
<havenwood> Ohga: PST
<interactionjaxsn> Paradox: and for your next trick, a rabbit out of a hat?
<Paradox> dont know my own strength
<Paradox> hokey smokes bullwinkle
Adys has quit [Ping timeout: 245 seconds]
<Ohga> havenwood: I'm on CET, so that is another set of time issues..
<Ohga> havenwood: you do the eating and we decide something after?
artofraw has joined #ruby
Pufferfo_ has joined #ruby
BRMatt has quit [Ping timeout: 264 seconds]
_br_ has joined #ruby
<havenwood> Ohga: Then maybe each do writeups separately and to the winner goes... glory?
<havenwood> Ohga: Yeah, off to eat.
<havenwood> later
havenwood has quit [Remote host closed the connection]
lewix_ has joined #ruby
Pufferfood has quit [Ping timeout: 260 seconds]
<Paradox> !eval [*1..50] * ','
<Paradox> :/
<Paradox> anyone remember how to trigger that bot
<Paradox> >> [*1..50] * ','
<eval-in> Paradox => "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50" (http://eval.in/12530)
<Paradox> voila
<interactionjaxsn> nice
Takehiro has quit [Ping timeout: 252 seconds]
poikon has joined #ruby
blaxter has quit [Quit: foo]
kofno has quit [Ping timeout: 260 seconds]
<Paradox> if you wanna skip steps it gets a lot more complicated
_emptymag00 has joined #ruby
lewix has quit [Ping timeout: 252 seconds]
<_emptymag00> which ruby 1.9 version is closet to 1.8.7
<_emptymag00> I need to upgrade to 1.9 but I need this to be pretty seemless
<ninjanoise> Hanmac so the rational library has a lcm method in it and it's using that right?
<aedorn> They are all equally different to 1.8.x
<_emptymag00> seamless*
<ninjanoise> Hanmac, skipping back to my question a while ago
<banisterfiend> _emptymag00: go straight to 2.0
<_emptymag00> right but do they support backwards compatibility?
<_emptymag00> banisterfriend: not a chance
<banisterfiend> then 1.9.3 :)
tylersmith has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
<_emptymag00> I mean this is a legacy project that has a lot of dependencies
mneorr has quit [Remote host closed the connection]
<Hanmac> ninjaoise hm no lcm comes from integer
tylersmith has joined #ruby
mneorr has joined #ruby
woolite64_ has quit [Ping timeout: 252 seconds]
<Paradox> 1.9 should have been 2.0
marr has quit []
<Paradox> i know it was done for 20th anniversary things
<Paradox> but really
woolite64_ has joined #ruby
<Paradox> 1.9 broke a ton of apis
<Paradox> 2.0 didnt
<Paradox> hell, im bad about following semver too
<Paradox> but really
jphpsf has quit [Ping timeout: 260 seconds]
_br_ has quit [Excess Flood]
<aedorn> _emptymag00: What you are looking for - a seamless upgrade - you probably won't get. As Paradox mentioned, 1.9.x broke quite a bit that people used to use in 1.8.x.
<ninjanoise> hanmac, ah, the example I saw had require 'rational'
<ninjanoise> *shrug*
<Hanmac> ninjanoise ... hm on newer ruby rational is allready required
mneorr_ has joined #ruby
<ninjanoise> hanmac AHH!!! that's probably it!
<ninjanoise> ;)
kornnflake_zzz is now known as kornnflake
<Hanmac> ninjanoise it may be defined IN rational, but its defined AT integer
mneorr has quit [Read error: Connection reset by peer]
_br_ has joined #ruby
shevy2 has joined #ruby
shevy2 is now known as shevy
Nisstyre-laptop has joined #ruby
<_emptymag00> aedorn: yeah I know I've done several upgrades its just been awhile and couldn't remember if there was some inbetween version like rails has for 2 - 3
<_emptymag00> either way we just found a work around for what we were doing
yshh has joined #ruby
xnm has joined #ruby
eldariof has quit []
rickmasta has joined #ruby
jphpsf has joined #ruby
<_emptymag00> thanks anyways guys
<becom33> how can I use a config file in a thor application if I have multiple task and subtask and If I want to use the config file detail in any of the task . for a example "colorizing enabled" . how can I use it in other task . . I have multiple files . I was wondering if there is a way without having to include or require the config file in to each and every ruby file where config is needed
bonhoeffer has joined #ruby
headius has joined #ruby
_br_ has quit [Excess Flood]
fermion has joined #ruby
mockra has joined #ruby
banjara has quit [Quit: Leaving.]
slainer68 has joined #ruby
banjara has joined #ruby
ofcan has quit [Read error: Connection reset by peer]
AJC_Z0 has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
_br_ has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
rdark has quit [Quit: leaving]
Rious has quit [Ping timeout: 252 seconds]
banjara has quit [Client Quit]
goleldar has quit []
banjara has joined #ruby
<shevy> becom33 I dont know thor
failshell has quit [Remote host closed the connection]
yshh has quit [Read error: Connection reset by peer]
<ninjanoise> Hanmac: so this is what that code is doing basically right?
banjara has quit [Client Quit]
<shevy> hey ninjanoise
Morkel has quit [Quit: Morkel]
banjara has joined #ruby
<shevy> still struggling with ruby?
<ninjanoise> shevy! I'm back for more!
<ninjanoise> lol
hoelzro|away is now known as hoelzro
mockra has quit [Ping timeout: 250 seconds]
__Big0___ has quit [Remote host closed the connection]
Catbuntu has joined #ruby
<ninjanoise> just making sure I'm understanding things ..
npx has quit [Read error: Operation timed out]
<ninjanoise> (1..20).inject(1) { |result, n| result.lcm n }
<ninjanoise> that's the piece of code I'm looking at right now
__Big0__ has joined #ruby
<shevy> I hate inject
<Hanmac> ninjanoise you can do: (1..20).inject(1,:lcm)
<shevy> when I see it, I always have to think
Rious has joined #ruby
havenwood has joined #ruby
<_emptymag00> but its so powerful
<shevy> but why is it named inject :(
banjara has quit [Client Quit]
leeder-krenon has quit [Quit: No Ping reply in 180 seconds.]
banjara has joined #ruby
<Hanmac> shevy because the other name "reduce" sound like so reducing :P
spanner has joined #ruby
mityaz has quit [Remote host closed the connection]
banjara has quit [Client Quit]
ananthakumaran has joined #ruby
theRoUS has quit [Ping timeout: 255 seconds]
<shevy> that is also a bad name
banjara has joined #ruby
<shevy> with reduce, I ask myself how do I reduce anything, by adding to it
motto has joined #ruby
zcreative has joined #ruby
banjara has quit [Client Quit]
<Hanmac> shevy ... i had a science magazin about different infinities ... and there was a chapter what infinities can Grow and then at some point thes "implode" and disapear :P
banjara has joined #ruby
<shevy> aren't all infinites equal?
rtdp has quit [Ping timeout: 245 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
m8 has quit [Ping timeout: 246 seconds]
<ninjanoise> There are infinite numbers between 0 and 1. There's .1 and .12 and .112 and an infinite collection of others. Of course, there is a bigger infinite set of numbers between 0 and 2, or between 0 and a million. Some infinities are bigger than other infinities.
<ninjanoise> o_O
mmitchell has quit [Read error: Connection reset by peer]
<Hanmac> shevy: the count of Integer numbers is infinite, the count of Float numbers is infinite too, but the second one is bigger than the first :P
<shevy> how is this possible
Xeago has quit [Remote host closed the connection]
jurassic has joined #ruby
<shevy> how could infinity + infinity be larger than infinity?
mmitchell has joined #ruby
banjara has quit [Client Quit]
<havenwood> shevy: It isn't larger.
banjara has joined #ruby
banjara has quit [Client Quit]
<Hanmac> infinity is one of the few cases where a + a = a :P
bonhoeffer has quit [Quit: bonhoeffer]
<sam113101> >> (Float::INFINITY + Float::INFINITY) > Float::INFINITY
<eval-in> sam113101 => false (http://eval.in/12531)
<shevy> hehe
<havenwood> shevy: An infinite set of fibonacci numbers is the same size as an infinite set of negative odd numbers.
banjara has joined #ruby
ananthakumaran has quit [Client Quit]
Takehiro has joined #ruby
snearch_ has joined #ruby
averiso has quit [Quit: Computer has gone to sleep.]
<Hanmac> havenwood .... are you sure? as ninjanoise said infinites does have different sizes
npx has joined #ruby
<AJC_Z0> Is there a more concise, correct or elegant form of this conditional? My RTFM and STFW haven;t yet turned if $hostname == 'hosta2' || $hostname == 'hostb2' || $hostname == 'hostc' { include foo }
<ninjanoise> lol
<ninjanoise> that's a quote .. must give credit where it's due
<ninjanoise> John Green, The Fault in Our Stars
kornnflake is now known as kornnflake_zzz
<shevy> Hanmac that can only be possible if infinity are not equal
<AJC_Z0> Excuse me. I didn't finish typing the excuse part of the question (but you've heard it before)
<havenwood> >> Float::INFINITY - Float::INFINITY
<eval-in> havenwood => NaN (http://eval.in/12532)
banjara has quit [Client Quit]
<shevy> AJC_Z0 what is that? perhaps via cas
<shevy> case $hostname
<shevy> when 'hosta2','hostc','host2b'
banjara has joined #ruby
<shevy> include foo
<shevy> end
<breakingthings> woah
bonhoeffer has joined #ruby
<Hanmac> shevy its not in a programming language, its only in the irrealest place in the universe, in mathamatics :P
<interactionjaxsn> AJC_Z0: %w[hosta2 hostb2 hostc].include? $hostname
<breakingthings> did we just go full mathematics in here while I looked away
<AJC_Z0> shevy: A case statement would make sense if the conditions for each case varied
carlyle has joined #ruby
<Hanmac> QuickQuiz: the method Object#== what does it do at the first?
banjara has quit [Client Quit]
<shevy> it checks for equality!
banjara has joined #ruby
R_Macy has quit [Quit: Computer has gone to sleep.]
<ninjanoise> breakingthings, today's topic MATH, yesterday chocolate
<havenwood> rint (Float::INFINITY - Float::INFINITY).to_s * 8, ' Batman!'
duosrx has joined #ruby
<ninjanoise> lol @ havenwood
<Hanmac> shevy no there is something that the method == do first before it checks something
<breakingthings> havenwood: that's not a WAT!
<AJC_Z0> shevy: How would that look on one line?
<ninjanoise> iswydt
<havenwood> breakingthings: true, true
<havenwood> breakingthings: just NaN reminds me of wat. >.>
<breakingthings> It's ok, me too.
<breakingthings> I just have to be contrarian.
<shevy> AJC_Z0 dunno, not sure you can make it shorter than your case
Takehiro has quit [Ping timeout: 260 seconds]
Hanmac has quit [Quit: Leaving.]
<AJC_Z0> interactionjaxsn: That looks scarily concise
Hanmac has joined #ruby
<Hanmac> shevy did i miss your answer?
arietis has joined #ruby
<AJC_Z0> shevy: Thanks. I was hoping for some kind of if (A or B or C) { do this}
<AJC_Z0> I mean if foo == (A or B or C) { do this}
daniel_- has joined #ruby
<Hanmac> >> ['hosta2','hostc','host2b'] === 'host2b'
<eval-in> Hanmac => false (http://eval.in/12533)
<Hanmac> hm dump arry
<interactionjaxsn> >> %w[hosta2 hostc host2b].include? 'host2b'
<eval-in> interactionjaxsn => true (http://eval.in/12534)
<shevy> Hanmac no, I would not have any idea what it does :)
maxmanders has quit [Quit: Computer has gone to sleep.]
cburyta has joined #ruby
banjara has quit [Quit: Leaving.]
<shevy> All I know is it checks for equality!!!
duosrx has quit [Ping timeout: 264 seconds]
<shevy> x == y
<shevy> THERE
banjara has joined #ruby
<interactionjaxsn> AJC_Z0: do_this if foo == A or B or C
Xeago has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
Mattix has quit [Ping timeout: 252 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
kpshek has quit []
gommo has joined #ruby
shock_one has quit [Ping timeout: 260 seconds]
<shevy> I really want a RubyOS... but without having to spend 1000 hours on it :(
<waxjar> interactionjaxsn, that would evaluate to (foo == A) or B or C, no?
wallcloc_ has quit [Remote host closed the connection]
<Gadgetoid> shevy: a RubyOS?
<shevy> Gadgetoid yeah Ruby everywhere!
sambao21 has quit [Quit: Computer has gone to sleep.]
jurassic has quit [Quit: jurassic]
<shevy> or at least
<shevy> as much ruby as possible
Xeago has quit [Read error: Connection reset by peer]
<Gadgetoid> shevy: There's only so much Ruby a man can take!
kpshek has joined #ruby
<shevy> and then compromises for that
Xeago has joined #ruby
<Gadgetoid> I think such an OS might possibly have trouble not sucking :D
<shevy> Gadgetoid, well... pure ruby code may not be the best solution everywhere. for instance, I find config files are better without being tied to any language
<becom33> Hanmac, can u help with me for the thor config question
<Gadgetoid> But it'd be an interesting thing to explore
<shevy> Gadgetoid, ok but the other OSes suck quite a lot too :\
<Gadgetoid> If only because it'd present the core concepts of building an OS in a language I have a hope of understanding
<shevy> windows is now like a big HTML5 app ...
<Gadgetoid> shevy: Definitely don't dispute that1
<Hanmac> becom33 i cant help with thor
<interactionjaxsn> shevy: i would help you but i have no clue
<shevy> linux is split into a million distributions
<shevy> dunno about osx
<hoelzro> heh
<interactionjaxsn> osx is bsd based
<interactionjaxsn> i think
<shevy> but the osx users scare me :\
<havenwood> shevy: bsd has fewer distros than linux
rboyd has joined #ruby
realDAB has joined #ruby
<waxjar> shevy: boo
<havenwood> shevy: be afraid!! muahahhaa
<interactionjaxsn> waxjar: not sure...
snearch_ has quit [Quit: Verlassend]
<shevy> bsd is not bad, I liked the idea of pc-bsd
yacks has quit [Ping timeout: 248 seconds]
bonhoeffer has quit [Quit: bonhoeffer]
<havenwood> shevy: FreeBSD and OS X are close relatives imho.
<shevy> there are always nice ideas here and there, it would be cool to be able to combine them all into one super awesome thing with ease
beneggett has joined #ruby
<waxjar> i think the world could do without an extra OS :p
kpshek has quit [Client Quit]
<shevy> waxjar yeah, but only if it would suck :P
<waxjar> someone link that xkcd comic
<interactionjaxsn> waxjar: and your right...
antijava has joined #ruby
<shevy> not sucking is hard
<hoelzro> I wish there were more OSes
<hoelzro> not enough diversity
<antijava> If I have a SSLSocket object, how do I tell if there is data to read in a non-blocking way?
<shevy> more good OSes
<shevy> hmm I liked haiku
<shevy> but is progresses at snail speed
<shevy> *it
wobblini has quit [Ping timeout: 248 seconds]
snearch has joined #ruby
* Gadgetoid is a scary OSX user
<antijava> I'm talking to the server that only sends a response on errors, so I can't just blindly read or I block on success waiting for a response that never comes.
chipotle_ has joined #ruby
<hoelzro> shevy: then help out ;)
snearch has quit [Max SendQ exceeded]
sambao21 has joined #ruby
jurassic has joined #ruby
<shevy> hoelzro hmm
<shevy> hoelzro perhaps not on haiku
<hoelzro> why not?
<waxjar> i read a blog post a while ago by a guy that started building an OS from scratch
<shevy> I dunno... it is not entirely within philosophies I really like
<waxjar> dunno what became of it, though
_nitti has quit [Ping timeout: 250 seconds]
blacktulip has quit [Ping timeout: 245 seconds]
_nitti_ has joined #ruby
pettsson has joined #ruby
xnm has quit [Ping timeout: 250 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
jurassic has quit [Client Quit]
<hoelzro> shevy: which philosophies would those be?
<shevy> I like app-dirs ... I like a lot about the unix philosophy, like pipes... I like the flexibility one has with linux... hmm... I'd also like to have just one toolkit/GUI to rule everything, guess it will have to be html/css/javascript :(
<hoelzro> waxjar: which OS?
<Gadgetoid> I think I've run out of ways to make my blog more performant on the Pi
<waxjar> can't remember any details I'm afraid hoelzro
<hoelzro> =(
davetherat has quit [Remote host closed the connection]
<hoelzro> there are a *lot* of hobby OSes out there
becom33 has quit [Quit: Leaving]
davetherat has joined #ruby
* hoelzro needs to work on rose more
<shevy> yeah :(
<shevy> I saw some of them die over the years
<waxjar> i don't get what's so spectacular about pipes. they're just a different way of wrapping stuff in parenthesis aren't they?
etcetera has quit []
becom33 has joined #ruby
dmerrick has quit [Quit: dmerrick]
* waxjar is a cli noob tho
<shevy> waxjar not sure... but do you know the language avisynth? it was a "scripting language" for video and audio data, and it was really awesome to use
<shevy> now just imagine if you would have objects everywhere, and you can connect them together
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<hoelzro> holy crap pipes are amazing
markisonfire has joined #ruby
etcetera has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<shevy> waxjar, in avisynth, you could basically chain together different filters on your video data, without having to master a GUI
stkowski has quit [Quit: stkowski]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
stkowski has joined #ruby
<shevy> something like this, without restriction to the format at hand, at the OS level, for everything, would be awesome
txdv has quit [Read error: Operation timed out]
blacktulip has joined #ruby
kpshek has joined #ruby
<shevy> I found sed and awk too hard to memorize :\
<hoelzro> I know *some* sed
<hoelzro> if you know Perl/Ruby, you don't need sed or awk
<hoelzro> you can just use one-liners
<Ohga> hoelzro: care to share an example?
<shevy> yeah
yshh has joined #ruby
<hoelzro> Ohga: of a Perl/Ruby one-liner?
<Ohga> yeah...
txdv has joined #ruby
<shevy> Ohga hmm let me check on google
sandstrom has quit [Remote host closed the connection]
<hoelzro> perl -n -E 'say if /Ruby|Perl/'
<shevy> I myself usually put them into a .rb file, into a method, and call that method then
<hoelzro> cat a list of programming language to that command =)
<hoelzro> for most usage, I create a script
antijava has quit [Quit: antijava]
<shevy> number each line of a file, only print non-blank lines
<hoelzro> but if I'm doing a quick one-off, a one liner is good
<shevy> ruby -e 'while gets; end; puts $.' < file.txt
<aedorn> shevy: I don't think it's feasible to have a Ruby based kernel!
chrishunt has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 240 seconds]
jonathanwallace has joined #ruby
<shevy> aedorn lisp machines! ruby machines!!!
<ninjanoise> hoelzro but but but.. sed and awk are awesome!
<hoelzro> you could probably do a Ruby-based kernel if you used a *very* small subset of Ruby =)
<hoelzro> and wrote a compiler for it
<Ohga> perl -n -E 'say if /Ruby|Perl/' what does "say" do?
akhet has joined #ruby
<hoelzro> ninjanoise: oh, they are!
brandon|_ has quit [Read error: Connection reset by peer]
<hoelzro> I'm just better with Perl ;)
<shevy> Ohga I think it is a bit like print
beneggett has quit [Quit: Computer has gone to sleep.]
<hoelzro> Ohga: say is print + "\n"
<Ohga> hoelzro: ah, ok
<shevy> ohhh... like puts
<hoelzro> mhmm
juarlex_ has quit [Read error: Connection reset by peer]
<shevy> why did they name it say?
brandon|work has joined #ruby
<hoelzro> because that's what Perl 6 called it ;)
<Ohga> so say and puts are aliases?
<shevy> Ohga well say is in perl
<hoelzro> I think they liked the brevity of say vs println
beneggett has joined #ruby
juarlex has joined #ruby
<shevy> puts in ruby should be "put string" ... or perhaps put #to_s dunno
<shevy> aha, that makes sense
<canton7> and adding that newline is typical of human interaction I guess
statarb3 has quit [Quit: Leaving]
<shevy> how does python solve that? it has only print() right?
<hoelzro> say in Perl 6 is a little more than print + "\n"
<hoelzro> shevy: you have print and print,
<Ohga> hoelzro: oh, that were perl.. what would teh same liner be in ruby?
<hoelzro> (well, in Python 2)
* hoelzro shrugs
<shevy> Ohga which one was it again?
<hoelzro> print 'foo' # prints "foo\n"
<shevy> well
<hoelzro> print 'foo', # printf "foo"
<shevy> puts if /Ruby|Perl/
RomainT has joined #ruby
<hoelzro> and -e vs -E
<RomainT> Hello
<hoelzro> ahoy
Banistergalaxy has joined #ruby
<shevy> ruby and perl are damn similar
<shevy> you could copy a perl style into ruby almost directly :D
<havenwood> alias say puts
codecop has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
chrishunt has joined #ruby
banjara has joined #ruby
the_jeebster has joined #ruby
<Ohga> hoelzro: ok, think I got it
banjara has quit [Client Quit]
<Ohga> havenwood: may I pm you?
banjara has joined #ruby
dcope has joined #ruby
xiphiasx_ has joined #ruby
<havenwood> Ohga: sure
Tricon has quit [Quit: Linkinus - http://linkinus.com]
banjara has quit [Client Quit]
<shevy> Ohga ruby and perl are really similar
jurassic has joined #ruby
banjara has joined #ruby
ckrailo has joined #ruby
<shevy> most of the regex stuff should work just as well in ruby
DrCode has joined #ruby
<havenwood> shevy: Perl 6 and Ruby even moreso.
aderyabin has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has quit [Remote host closed the connection]
woolite64_ has quit [Quit: Leaving]
Bry8Star has joined #ruby
<RomainT> How can I read the number of page for a model with Kaminari. Like : Reply.per_page
<daze> ruby is much more object-oriented, despite apparent syntax similarities
banjara has quit [Client Quit]
<RomainT> It's damn stupid question but i can't get the value i defined in the paginate_per
etcetera has quit [Read error: Operation timed out]
banjara has joined #ruby
etcetera has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 250 seconds]
<shevy> well
jurassic has quit [Client Quit]
<shevy> it would be nice if all of perl 5 could move to perl 6
jerius has quit [Ping timeout: 255 seconds]
<shevy> even python will do that one day with python 3
tvw has quit []
<shevy> and ruby to 2
<shevy> even myself hahahaha
banjara has quit [Client Quit]
<hoelzro> to be fair, diff(perl-5, perl-6) is *way* bigger than diff(python-2, python-3) or diff(ruby-1, ruby-2)
banjara has joined #ruby
daniel_- has quit [Ping timeout: 259 seconds]
tspike has joined #ruby
<hoelzro> sometimes I wish the differences were more modest, so it would've been easier to implement
<zcreative> I''m having a hard time understanding Symbols
Xeago has joined #ruby
<becom33> whats the easy way to serpate key and hash into two variables ?
banjara has quit [Client Quit]
banjara has joined #ruby
m3pow has quit [Ping timeout: 260 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
<shevy> hoelzro yeah, might have been easier if the goal was less ambitious
<shevy> zcreative, the most important thing - remember, they are BORING
<hoelzro> mhmm
<the_jeebster> are there any sublime packages that will auto-complete ruby method names from stdlib?
<the_jeebster> IDE like functionality
banjara has quit [Client Quit]
<zcreative> I see them being used a lot.
<shevy> zcreative yes but they are still boring... you cant do much with them
banjara has joined #ruby
<shevy> a string is much more fun
<hoelzro> but the Perl 6 team's goal is a language that will last a long time
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
<becom33> whats the easy way to separate key and value in a hash into two variables ?
<canton7> becom33, example?
aleph-null has joined #ruby
banjara has quit [Client Quit]
<hoelzro> keys = hash.keys ; values = hash.values?
<becom33> {"1"=>"1"}
banjara has joined #ruby
<h-elp> If I need to get an user input and it must to be number, and input is a string, will be input = input.to_i enough? As I see "a".to_i == 0, but in all cases?
<shevy> hehe he wants both key and value at the same time
<canton7> becom33, I mean, give us an example hash, and your desired output
yshh has quit [Ping timeout: 260 seconds]
banjara has quit [Client Quit]
<becom33> thats the hash canton7
banjara has joined #ruby
<becom33> canton7, time.keys ; values = time.values helped
<canton7> h-elp, if user_input =~ /^\d+$/
<canton7> h-elp, or Integer(user_input), and catch the exception if it can't be parsed
<canton7> becom33, keys, values = hash.keys, hash.values if you prefer parallel assignment
<h-elp> canton7: Heh, "123\ndo_evil_thing" will match ;) I will try second, thanks
<realDAB> h-elp: /A\d+\z/
codecop has joined #ruby
m3pow has joined #ruby
<h-elp> yes, I know :p thanks
<realDAB> h-elp: or take_corrective_action if user_input =~ /\D/
<canton7> h-elp, I was assuming newline-terminated input from a console. Yeah \A ans \Z otherwise
<Hanmac> hm .... h-elp what about negative numbers?
<h-elp> Hanmac: It doesn't matter for me
<Hanmac> so it does anti-matter for you? :P
<Hanmac> or does it dark-matter? :D
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> man
<shevy> sometimes someone should punch Hanmac :P
jerius has joined #ruby
<waxjar> lol
kristofers has quit []
ArchBeOS has quit [Read error: Connection reset by peer]
<zcreative> attr_accessor is a simple way to create getter methods for a class?
Stilo has joined #ruby
<interactionjaxsn> zcreative: getter and setter if i'm not mistaken
<zcreative> instead of defining a getter method for each attr
<interactionjaxsn> attr_reader for just getter.
<canton7> yar. attr_reader generates the getter only
c0rn has joined #ruby
w400z has quit []
workmad3 has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
<shevy> zcreative it combines getter + setter
<zcreative> I see. This features sounds so awesome
<shevy> zcreative only use it if you really need it, stay minimal and simple when possible
<shevy> I used to use attr_accessor always :(
arturaz has quit [Remote host closed the connection]
<waxjar> attr_reader for getters, attr_writer for setters, attr_readers for both :)
poikon_ has joined #ruby
<Hanmac> zcreative: you may could look at Struct too
dagnachew has joined #ruby
poikon_ is now known as eykosioux
aleph-null has quit [Read error: Connection reset by peer]
<zcreative> i come from php. so I'm used to $this, does this exist in ruby classes?
aleph-null has joined #ruby
<Hanmac> zcreative: self, but in the most cases you will not need it
havenwood has quit [Remote host closed the connection]
<Bira> zcreative: In Ruby names starting with $ are global variables. They're not necessary or recommended in most cases, either.
<shevy> zcreative classes in ruby are clever
<shevy> in python they have to pass self to every method
rickmasta has quit [Quit: Leaving...]
<Hanmac> instances are even more cleverar than classes :P
<aedorn> I'm still trying to unravel Sabayon's Molecule into Ruby (Python to Ruby is hard sometimes.) I'm already tired of seeing self. everywhere
drumond19 has joined #ruby
wyhaines has quit [Remote host closed the connection]
<zcreative> and are the prefixes in front of variables names just a convention or are they actually required by the language?
<Hanmac> aedorn ... in ca 90% you can leave self out ... you only may need it for setter methods
tish has quit [Read error: Connection reset by peer]
yashshah has quit [Read error: Connection reset by peer]
yashshah has joined #ruby
tish has joined #ruby
<Hanmac> zcreative: $global, @@class,@instance,local (and used in the def head: &block, *arrayargs, **optargs )
Davey has quit [Quit: Computer has gone to sleep.]
breakingthings has quit []
mengu has quit [Ping timeout: 245 seconds]
<Hanmac> the first ones does have different scoping, (there are |vars| too, that are block-local)
Catbuntu has quit [Quit: Leaving]
huoxito has quit [Quit: Leaving]
ferdev has quit [Quit: ferdev]
dakaktak is now known as epta
emmanuelux has joined #ruby
blacktulip has quit [Ping timeout: 246 seconds]
<shevy> zcreative the $ @ and @@ are more than convention, they are valid tokens
SolidResolve has quit [Quit: Good bye]
<shevy> zcreative when you see ruby code, always try to "think" how the ruby parser sees things
<shevy> it must try to be clever so it can decide what means: x y vs. x(y)
<shevy> hmm or x = y vs. x = y()
<zcreative> yes, i just read about that now.
angusiguess has quit [Ping timeout: 252 seconds]
<zcreative> parenthesis only matter if you are using two or more params or you are nesting other method calls within a param list
<Hanmac> but it can be also a bit dump ... so print {:key => "value" } is a syntax error because it tries to read {} as a block and not as a Hash
gaahrdner has joined #ruby
geggam__wk has joined #ruby
geggam_wk has quit [Remote host closed the connection]
jjbohn is now known as jjbohn|afk
geggam__wk has quit [Max SendQ exceeded]
geggam__wk has joined #ruby
aleph-null has quit [Remote host closed the connection]
geekbri has quit [Remote host closed the connection]
Bira has quit [Quit: Leaving]
mnemon2 is now known as mnemon
yshh has joined #ruby
sailias has quit [Ping timeout: 264 seconds]
Es0teric has joined #ruby
emergion has joined #ruby
xbob has quit [Quit: Leaving]
R_Macy has joined #ruby
gommo has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
gommo has joined #ruby
kpshek has quit []
<zcreative> how are sessions handled in ruby web apps?
hoelzro is now known as hoelzro|away
ephemerian has joined #ruby
geggam__wk has quit [Remote host closed the connection]
benkay has joined #ruby
<benkay> hey team, how do install ruby 1.8.7 with apt?
yshh has quit [Read error: Connection reset by peer]
<Hanmac> benkay you dont want to do that
ninjanoise has quit [Remote host closed the connection]
<zcreative> rvm right?
<benkay> good to know. any reason?
Xeago has quit [Remote host closed the connection]
<shevy> benkay apt-get install ruby1.8
<AJC_Z0> interactionjaxsn: Like this, right? if $hostname == 'hosta2' or 'hostb2' or 'hostc' { include foo }
<shevy> but debian is run by monkeys, they are unable to provide you with many different ruby versions
<zcreative> https://rvm.io/
beneggett has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<shevy> that is rvm yes
<benkay> Hanmac: don't install with apt or don't install 1.8?
<shevy> long live 1.8!!!
gommo has quit [Ping timeout: 256 seconds]
<interactionjaxsn> AJC_Z0: no. i goofed... include foo if $hostname == 'hosta2' or $hostname == 'hostb2'
<AJC_Z0> Oh, OK. Thanks for clarifying
<canton7> if %w[hosta2 hostb2].include?($hostname)
blacktulip has joined #ruby
<interactionjaxsn> what why i like the %w[hosta2 hostb2].include? $hostname
emergion has quit [Quit: Computer has gone to sleep.]
yashshah has quit [Read error: Connection reset by peer]
emergion has joined #ruby
jjbohn|afk is now known as jjbohn
<interactionjaxsn> AJC_Z0: %w[hosta2 hostb2].include?($hostname) ? include foo : include bar
fourq has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
<fourq> so, ruby lib files vs ruby arch c extensions. Same funtionality, just one takes advantage of the system arch for processing in some cases?
kpshek has joined #ruby
<shevy> hmm my external hdd makes strange noises :(
sambao21 has quit [Quit: Computer has gone to sleep.]
Guest123 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
adkron__ has quit [Ping timeout: 255 seconds]
kornnflake_zzz is now known as kornnflake
onetonturd has joined #ruby
maxmanders has joined #ruby
tommyvyo has quit [Quit:]
<AJC_Z0> I like that for conciseness, but it's terrible for readability
<AJC_Z0> Thanks again
end_guy has joined #ruby
realDAB has quit [Quit: realDAB]
tish has quit [Ping timeout: 264 seconds]
cupakromer has left #ruby [#ruby]
<interactionjaxsn> AJC_Z0: i can see that
<canton7> interactionjaxsn, include %q[hosta2 hostb2].include?($hostname) ? foo : bar :P
invisime has quit [Quit: Leaving.]
maxmanders has quit [Ping timeout: 255 seconds]
<Boohbah> canton7 wins the DRY award
<Hanmac> canton7 code can be still golfed :P
<canton7> I'm sure! I was never any good at gold...
motto has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
postmodern has joined #ruby
buibex has joined #ruby
<canton7> *golf
<Hanmac> who needs spaces? :P %q[hosta2 hostb2].include?($hostname)?foo:bar
m8 has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
tjbiddle_ has joined #ruby
<MrZYX> Hanmac humans
<Hanmac> who cares about humans? ;P
tjbiddle_ has quit [Read error: Connection reset by peer]
<interactionjaxsn> humus?
<MrZYX> mmmh, humans? I see a recursion there...
LouisRoR has quit [Ping timeout: 264 seconds]
<canton7> is there a shorter way of doing #include?
<shevy> in C?
fizman has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
gaahrdner has quit [Read error: Connection reset by peer]
<Hanmac> from humans to humus its only a short way :P
gaahrdner has joined #ruby
Zai00_ has joined #ruby
tjbiddle_ has joined #ruby
Mattix has joined #ruby
br4ndon has joined #ruby
<shevy> lol
tjbiddle has quit [Ping timeout: 245 seconds]
tjbiddle_ is now known as tjbiddle
<shevy> today is Hanmac's wise day
Watcher7 has left #ruby ["h"]
RubyHunter has joined #ruby
gaahrdner has quit [Remote host closed the connection]
<interactionjaxsn> canton7: im gonna send a pr to ruby core so we can have #be_having?
<canton7> hah!
Zai00 has quit [Ping timeout: 272 seconds]
Zai00_ is now known as Zai00
mercwithamouth has quit [Ping timeout: 250 seconds]
buibex has quit [Remote host closed the connection]
aleph-null has joined #ruby
RomainT has left #ruby [#ruby]
caveat- has quit [Ping timeout: 245 seconds]
<Hanmac> what should be_having? doo?
<waxjar> #member? saves you a character
<interactionjaxsn> alias include... Array.be_having?(value) == Array.include?(value)
Choobie has joined #ruby
<interactionjaxsn> Hanmac: it expresses intent and is easier for 'mericans to understand
hbpoison has quit [Ping timeout: 248 seconds]
jonathanwallace has quit [Ping timeout: 246 seconds]
<canton7> interactionjaxsn, https://gist.github.com/canton7/5147171
<interactionjaxsn> Array.gots? value works as well
<canton7> let's get it the right way around for starters...
hbpoison has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
Spooner has joined #ruby
<waxjar> that's actually p sweet
<interactionjaxsn> canton7: one upper
<canton7> I'm bored...
<interactionjaxsn> me 3
breakingthings has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
axhlf has joined #ruby
j^2 has quit [Quit: for i in `/names` ; do adios $i; done]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
daniel_- has joined #ruby
zehrizzatti has quit [Quit: Linkinus - http://linkinus.com]
Xeago has joined #ruby
<shevy> Array.goats?
aleph-null has quit [Ping timeout: 260 seconds]
<shevy> what sick name for a method...
slyv has joined #ruby
<shevy> canton7 you need more projects
teddyp1cker has quit [Remote host closed the connection]
<shevy> or perhaps a repetitive todo list
<Hanmac> hm or make Array#=== be an alias for include?
etcetera has quit []
sambao21 has joined #ruby
<Hanmac> shevy do you mean a gem for todo lists? :P
mrsolo has quit [Quit: Leaving]
<interactionjaxsn> Hanmac: don't be reasonable... we went from goats to something that makes sense ;]
carraroj has quit [Quit: Konversation terminated!]
<canton7> Hanmac, I was playing around with that idea - slightly surprised to see it didn't work already
yshh has joined #ruby
<canton7> I had the impression you could use arrays in case statements
hiroyuki has joined #ruby
<waxjar> you can give when multiple arguments
akhet has quit [Remote host closed the connection]
pdamer has joined #ruby
ArchBeOS is now known as ArchBeOS-Towelie
<canton7> aah that's it
<canton7> so it's the when doing the magic, not ===
etcetera has joined #ruby
dustint has quit [Ping timeout: 256 seconds]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
nomenkun has quit [Remote host closed the connection]
mouse-_ has joined #ruby
ferdev has joined #ruby
objectivemo has quit [Ping timeout: 264 seconds]
cantonic has quit [Quit: cantonic]
jimeh has quit [Quit: Computer has gone to sleep.]
<mouse-_> hi ruby aficionados. does anyone have a favorite tutorial or could direct me to some information on implementing a undo command pattern (emulating a board game requiring undo for some invalid actions)
theoros_ is now known as theoros
Clownz has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
huoxito has joined #ruby
<canton7> mouse-_, sounds like a very general question
piotr has quit [Read error: Connection reset by peer]
<mouse-_> it's a general pattern :P
<interactionjaxsn> no cheating in monopoly
<mouse-_> boy, someone's got my number
<mouse-_> interactionjaxsn: don't report me to parker bros, please
<interactionjaxsn> mouse-_: as long as you don't tell them about what i do in free parking
kornnflake is now known as kornnflake_zzz
banjara has left #ruby [#ruby]
<mouse-_> what happens in free parking, stays in free parking (i hate that money-on-free-parking rule!)
beneggett has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
pellis has quit [Quit: Leaving]
phantasm66 has quit [Quit: *sleeeep….]
<interactionjaxsn> mouse-_: i play that rule. it's frowned on by the brothers
_nitti_ has quit [Ping timeout: 264 seconds]
aleph-null has joined #ruby
<mouse-_> don't worry, there's a !rule set command
madb055 has joined #ruby
<mouse-_> you can play how you like :) hehe
<interactionjaxsn> mouse-_: sounds like your project is done
chipotle_ has quit [Quit: cya]
<mouse-_> it is, in C, back in 1997. it's got some long standing bugs in it that are just too heinous to tackle, therefore i shall rewrite it in the great ruby
piotr has joined #ruby
<mouse-_> you know, during my "if you can't write it in C it isn't worth writing" phase
<interactionjaxsn> mouse-_: haha, on a serious note, i have never run across that use case. i would assume a class that holds the last x 'moves' in memory
<breakingthings> mouse-_: wouldn't you just… store last actions in some format that would allow you to play the move backwards
<shevy> cool mouse-_
hashmal has quit [Quit: Computer has gone to sleep.]
<breakingthings> after all, if you can add information you can take it back can you not
<mouse-_> i have "Design Patterns In Ruby" book but it's a bit ... i'm not sure the word
<shevy> mouse-_ I think the simplest way to undo is to just store the game state every turn into an array or hash
halogenandtoast has joined #ruby
<mouse-_> was just hoping for maybe some example code (command/memento pattern or what not)
<breakingthings> shevy is right
Mattix has quit [Ping timeout: 248 seconds]
halogenandtoast has quit [Client Quit]
<shevy> I did that in ruby-gtk minesweeper :D
<breakingthings> suppose it matters exactly what you intend to undo
<breakingthings> if it's a round format that's probably the best metho
<breakingthings> *d
<shevy> but for difficult games, it's probably much more work to add
chrishough has quit [Quit: chrishough]
<shevy> I want more games in ruby!
<breakingthings> To keep a running list of individual actions you would probably have to come up with some type of format that would describe the action, and the before and after values of whatever was manipulated..
cantonic has joined #ruby
<mouse-_> perhaps a function with the parameters as a option hash, then it's easy enough to undo (save func/opts on stack) as you suggest
<breakingthings> eg. the action was a 'move', player started on space X, ended on space Y. Undo plays back as 'move' player to space X.
* breakingthings shrugs
<breakingthings> Actual implementation may vary.
<interactionjaxsn> breakingthings: i like that disclaimer. needs to be on more products
tjbiddle_ has joined #ruby
h-elp is now known as {b_d}
<mouse-_> perfect hanmac! I have the 'Design Patterns In Ruby' book, but it's a bit dated and the examples aren't that great (for this particular pattern)
* mouse-_ reads
<Hanmac> mouse- after a few time with ruby you dont use design patterns because of the pattern, you will automatic use the right way because you can feel it :P
Jedi_SCT1 has quit [Quit: See ya]
havenwood has joined #ruby
yshh has quit [Ping timeout: 246 seconds]
kornnflake_zzz is now known as kornnflake
hoelzro|away is now known as hoelzro
hoelzro is now known as hoelzro|away
reset has quit [Quit: Leaving...]
R_Macy has quit [Quit: Textual IRC Client: www.textualapp.com]
Jedi_SCT1 has joined #ruby
justinmcp has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
reset has joined #ruby
tjbiddle_ is now known as tjbiddle
emergion has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Remote host closed the connection]
adkron has joined #ruby
<Gadgetoid> Outputting RSS using haml seems wrong somehow
<breakingthings> Gadgetoid: outputting RSS with anything seems wrong.
<Gadgetoid> breakingthings: RSS is still relevant enough!
nateberkopec has quit [Quit: Leaving...]
<breakingthings> Gadgetoid: being entirely facetious with that comment
<breakingthings> :p
<Gadgetoid> breakingthings: although I'd tend to agree in principle
<breakingthings> RSS is great if the content is actually proper
<Gadgetoid> Relevant or not, it's still chuffing XML
<breakingthings> but that's pretty rare
<breakingthings> that too
dmiller1 has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
blacktulip has quit [Ping timeout: 260 seconds]
forrest has quit [Quit: Leaving]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
hoelzro|away is now known as hoelzro
stkowski has quit [Quit: stkowski]
dmiller has quit [Ping timeout: 252 seconds]
blacktulip has joined #ruby
eykosioux has quit [Remote host closed the connection]
breakingthings has quit []
codecop has quit [Quit: Išeinu]
cantonic has quit [Quit: cantonic]
dhruvasagar has quit [Ping timeout: 252 seconds]
DrCode has quit [Remote host closed the connection]
markisonfire has quit [Quit: markisonfire]
chrishough has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
tjbiddle_ has joined #ruby
wallclockbuilder has joined #ruby
emergion has joined #ruby
tjbiddle__ has joined #ruby
dhruvasagar has joined #ruby
tjbiddle_ has quit [Read error: Connection reset by peer]
<fourq> When Ruby 1.9 removed the CWD from the load path did it cause all hell to break loose for those that were not aware?
adkron has quit [Ping timeout: 246 seconds]
tjbiddle_ has joined #ruby
__Big0__ has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle_ is now known as tjbiddle
<Hanmac> fourq its like in cinderella where the bad ones where separated from the good ones :P
jlast has quit [Remote host closed the connection]
pcarrier has joined #ruby
DrShoggoth has quit [Ping timeout: 260 seconds]
<fourq> -pWeedingOut
<Amfy> any good IPv4 / IPv6 Validator?
pepper_chico has quit [Quit: Computer has gone to sleep.]
wallclockbuilder has quit [Ping timeout: 252 seconds]
tjbiddle__ has quit [Ping timeout: 252 seconds]
ArchBeOS-Towelie has quit [Ping timeout: 250 seconds]
<aedorn> IPAddr can validate by way of ip.ipv4? || ip.ipv6?
<aedorn> or... even just IPAddr.new, raises exception on invalid IPs
leo2007 has joined #ruby
<Amfy> aedorn sure that it can validate if IPv4/IPv6?
<leo2007> how does instance variables lookup work in ruby?
<Amfy> Thought it can only do if IP or not
<Paradox> also, anyone ever play with sup?
<Hanmac> leo2007 what do you mean?
<aedorn> Amfy: I'm not really sure what you're asking. What type of validation are you looking for besides if it's an IP or not?
w400z has joined #ruby
generali_ has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
artofraw has quit [Remote host closed the connection]
<Amfy> aedorn something like if ipaddress.ipv4 elsif ipaddress.ipv6 else
<leo2007> I was just confused by subclass inherits only methods from superclass. but it seems I can still define instance variables with the same names in subclass to change the behaviour of the inherited methods.
<leo2007> like in this example http://bpaste.net/show/83324
v0n has quit [Read error: Operation timed out]
<leo2007> B.new.x returns 200
mneorr_ has quit [Remote host closed the connection]
<aedorn> Amfy: Then yes. You just check against #ipv4? and #ipv6? methods
kirun has quit [Quit: Client exiting]
yshh has joined #ruby
<fourq> IS RVM considered a proper solution for development boxes, or a frowned upon in best practices?
adkron has joined #ruby
blacktul_ has joined #ruby
drumond19 has quit [Ping timeout: 260 seconds]
blacktulip has quit [Ping timeout: 240 seconds]
Sigma00 is now known as Sigma01
drumond19 has joined #ruby
cr3 has quit [Quit: leaving]
spider-mario has quit [Remote host closed the connection]
AJC_Z0 has left #ruby ["I have to return some videotapes"]
apalmblad has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
wormwood has joined #ruby
R_Macy has joined #ruby
R_Macy has quit [Max SendQ exceeded]
pdamer has quit [Quit: pdamer]
R_Macy has joined #ruby
R_Macy has quit [Max SendQ exceeded]
<leo2007> Hanmac: comments?
tomzx_mac has joined #ruby
DrShoggoth has joined #ruby
khismetix has joined #ruby
<Hanmac> leo2007 superclass methods can access the same instance variables than subclasses, and otherway around too
openstandards has quit [Quit: Leaving]
headius has quit [Quit: headius]
<dasdasdas> does people use 2.0 ?
jjbohn has quit [Quit: Leaving...]
<dasdasdas> or 1.9 ?
mpfundstein has joined #ruby
lewix has quit [Remote host closed the connection]
apalmblad has quit [Client Quit]
ArchBeOS has joined #ruby
DrCode has joined #ruby
ArchBeOS has quit [Changing host]
ArchBeOS has joined #ruby
apalmblad has joined #ruby
fourq_ has joined #ruby
<leo2007> Hanmac: thanks
wmoxam has quit [Ping timeout: 256 seconds]
Sigma01 is now known as Sigma00
onetonturd has quit [Quit: leaving]
fourq has quit [Disconnected by services]
fourq_ is now known as fourq
<Hanmac> dasdasdas 2.0 is outdated ... live in the future and use 2.1 :D
<dasdasdas> ?
<dasdasdas> ruby-lang says 2.0.0 is last one
pdamer has joined #ruby
<dasdasdas> 24-feb-2013
<dasdasdas> there is no 2.1
<Hanmac> dasdasdas i am using the trunk
<aedorn> lol
<dasdasdas> thats not a release
<dasdasdas> so please, trolling apart
<dasdasdas> is recommended to run 2.0 or still 1.9 ?
<Hanmac> you never said it needed to be a release :P
<dasdasdas> i cant find a gentoo 2.0 ebuild
<aedorn> You should update to 2.0, yes, but you don't have to just yet.
<dasdasdas> im doing a fresh install
<Paradox> dasdasdas, use 2.0.3
emergion has quit [Quit: Computer has gone to sleep.]
<Paradox> oh
<Paradox> ruby or rubygems
etcetera has quit []
pepper_chico has joined #ruby
<dasdasdas> ruby..
brandon_ has quit [Read error: Operation timed out]
<dasdasdas> anyone using ruby 2+ on gentoo?
<Gadgetoid> I like that Ruby now supports method definitions so utterly complex that only future space people from the outer worlds will be able to understand them
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
eykosioux has joined #ruby
<aedorn> dasdasdas: Yes, but I don't use portage for Ruby. I doubt there will be an ebuild for it for at least awhile unless you make one yourself.
jerius has quit [Ping timeout: 240 seconds]
<mnemon> Gadgetoid: such as?
rboyd_ has joined #ruby
lancepantz_ is now known as lancepantz
luckyruby has quit [Remote host closed the connection]
<Gadgetoid> mnemon: allowing defaults for optional parameters to use the values of previous parameters is a ... curious choice
carlyle has quit [Remote host closed the connection]
rboyd has quit [Ping timeout: 245 seconds]
rboyd_ is now known as rboyd
gommo has joined #ruby
yshh has quit [Ping timeout: 264 seconds]
<Gadgetoid> But I suppose one could bandy around terms like "expressive"
ArchBeOS has left #ruby ["Leaving"]
rboyd has left #ruby [#ruby]
monkegjinni has joined #ruby
<Hanmac> Gadgetoid did you know that you can use ** to turn every object into an Hash? :P
w400z has quit []
<Paradox> sigh
<banisterfiend> Gadgetoid: ruby has always supported that afaik
<Paradox> i know people love trollop
<banisterfiend> Gadgetoid: also let* from lisp allows that too :)
<Paradox> but really, optionsparser is good enough for me
blacktul_ has quit [Remote host closed the connection]
<mouse-_> heh and here i am stuck on 1.8.7 still, i was just thinking about my first 1.9 project and here they go announcing 2 ;)
jpcamara has quit [Quit: jpcamara]
<Gadgetoid> Paradox: what's missing?
<Paradox> Gadgetoid, wat?
<mouse-_> at least i read the transition will be easier
<aedorn> Paradox: I've been using slop
<Paradox> aedorn, how do you like it
<banisterfiend> Paradox: optionparser is a pain
frem has quit [Quit: Computer has gone to sleep.]
fschuindt has joined #ruby
<Gadgetoid> Paradox: I somehow read "not" in that sentence... I accidentally inserted a word
<Paradox> banisterfiend, i spose you would know more than anyone, heh
<Hanmac> mouse- your 1.9 stuff should work for 2.0 too
* mouse-_ nods
<Paradox> yeah, i can see why others would be needed
<Paradox> optionparser is very verbose
<Paradox> and trollop is nice
<Paradox> does trollop support easy negation?
<banisterfiend> Paradox: well the author of slop was the one who ported our code from optionparser to slop ;) it definitely saved us a few hundred/thousand lines of boilerplate
forced_request has quit [Read error: Connection reset by peer]
<Paradox> er, slop
<Paradox> not trollop
<Paradox> well
<Paradox> either really
<Paradox> by negation, i mean --[no-]paramiter
<Paradox> so you can do stuff like rubygems new --no-doc
<Paradox> i know how to do it with optionsparser
<banisterfiend> Paradox: still, option parser is very cool compared to option libs in other languages
<Paradox> oh easily
<dasdasdas> aedorn what do you use then?
<dasdasdas> make ?
rickmasta has joined #ruby
hoelzro is now known as hoelzro|away
<Paradox> i just bring it up because i skimmed through the pragprog book on ruby CLI applets
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<Paradox> at the bookstore the other day
<Gadgetoid> I suspect by the time I've got anything approaching a comprehensive knowledge of even Ruby 1.9, there will be a 5.0.0 out
<Paradox> and he seemed to focus on optionsparser
emergion has joined #ruby
<Paradox> which i spose, if you want to minimize dependencies, or just have a few flags, is more than good enough
monkegjinni has quit [Ping timeout: 264 seconds]
eykosioux has quit [Ping timeout: 260 seconds]
ner0x has joined #ruby
<Paradox> ie herp -v derp
NiteRain has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Quit: tjbiddle]
evenix has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
<aedorn> Paradox: It's easy... boolean options have --no-whatever by default.
evenix has joined #ruby
<Paradox> ah
<dasdasdas> also... when installing ruby 1.9 is usefull to have 1.8 too?
<Paradox> so if you set something to default true
<Paradox> dasdasdas, no
<dasdasdas> or a waste of disk space
generalissimo has joined #ruby
etcetera has joined #ruby
<dasdasdas> ty
<Paradox> realistically you shouldnt use 1.8
<Paradox> because its EOL next month
<Paradox> if a gem or script only works on 1.8
<Paradox> yell at the maintainer or find an alternative
<aedorn> dasdasdas: Yes, from source. If you aren't comfortable with that, then maybe you should look at chruby or rvm and ruby-build
<dasdasdas> i see
<Gadgetoid> Whew, finally unbroke my websockets stats server
<Paradox> speaking of versions, whats the idiomatic way to determine what version of ruby someone's on and provide different method signatures depending on version
<Paradox> ie 1.9 use the old hash-catchall trick for keywords
<Paradox> and 2 use keyword args
<dasdasdas> well i prefer run 1.9.3 rather than destroy my portage :P
drumond1_ has joined #ruby
<dasdasdas> i cant belive no one made an ebuild already...
<Paradox> or is it best just to wait a few months then EOL my 1.9x version and say "use 2x noob"
<Gadgetoid> Paradox: write the bare essentials for the lowest common denominator then monkeypatch up to whatever ruby version you detect?
<Paradox> gah
<Paradox> ill just stick with 1.9 because it works
hasimo has joined #ruby
tvw has joined #ruby
evenix has quit [Ping timeout: 245 seconds]
<Paradox> not like i really need more complicated stuffs anyway
<Paradox> yeah ill miss not having sexy keyword args, but w/r
<mouse-_> i was sticking with 1.8 but i do think now is the time to yell at a maintainer
<mouse-_> go 1.9 or bust
fire is now known as baba
<Paradox> eh
<Paradox> i'd love for more people to go 2.x
<mouse-_> whoa, slow down
<Paradox> so adoption is faster
pdamer has joined #ruby
<mouse-_> :D
<mouse-_> hehe
<Paradox> but realistically
<Paradox> ill be happy with 1.9
_nitti has joined #ruby
* Zelest pokes mouse-_ in the eye
eAlchemist is now known as 18VAAUD1K
drumond19 has quit [Ping timeout: 264 seconds]
xardas has quit [Ping timeout: 272 seconds]
<mouse-_> Ow! ;)
_nitti has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
idkazuma has joined #ruby
_nitti has joined #ruby
Stilo has joined #ruby
Myconix has joined #ruby
markisonfire has joined #ruby
anderse has quit [Quit: anderse]
willob has quit [Quit: Leaving.]
huoxito has quit [Ping timeout: 260 seconds]
khismetix has quit [Ping timeout: 240 seconds]
pdamer has quit [Quit: pdamer]
kornnflake is now known as kornnflake_zzz
justsee has quit [Quit: Leaving...]
cburyta has quit [Remote host closed the connection]
justinmcp has joined #ruby
cburyta has joined #ruby
kornnflake_zzz is now known as kornnflake
mmitchell has quit [Read error: Operation timed out]
cburyta_ has joined #ruby
picca3 has joined #ruby
CodeGnome has quit [Remote host closed the connection]
cburyta has quit [Read error: Connection reset by peer]
yshh has joined #ruby
Spooner has quit [Remote host closed the connection]
_veer has quit [Ping timeout: 260 seconds]
alanp_ has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
invisime has joined #ruby
_veer has joined #ruby
<invisime> are there any decent distributed database frameworks written in ruby?
stkowski has joined #ruby
idkazuma has quit [Remote host closed the connection]
zul has joined #ruby
chipotle_ has joined #ruby
banseljaj is now known as imami|afk
alanp has quit [Ping timeout: 260 seconds]
thecodethinker has joined #ruby
<thecodethinker> Can anyone get rvm to install rubinius?
<zul> hi all, I'm a newbie. I'm testing a gem of twitter, I print some tweets in a html page using sinatra. Now I would like to use some cool graphic framework such as twitter bootstrap but I cant' find any example
adeponte has quit [Read error: Connection reset by peer]
<zul> could you pass me any link or tutorial to improve the html UI?
<thecodethinker> zul: That is out of the scope of ruby :'(
adeponte has joined #ruby
<thecodethinker> zul: u would need to learn HTML5, js, and jquery
gyre007 has quit [Ping timeout: 245 seconds]
<thecodethinker> js is easy.. and u can use coffeescript which is similar to ruby
_veer has quit [Ping timeout: 264 seconds]
hasimo has quit [Remote host closed the connection]
idkazuma has joined #ruby
<thecodethinker> zul: the "looks" of things on the web has nothing to do with ruby... so... go google some web design tutorials
Yakko has quit [Remote host closed the connection]
<zul> I need some example to mix such as css3 jqwery and ruby
bordicon has joined #ruby
<thecodethinker> zul: google is ur friend :D
axl__ has joined #ruby
<thecodethinker> w3schools.org
<thecodethinker> has a lot of good stuff
picca3 has quit [Quit: Linkinus - http://linkinus.com]
<thecodethinker> codeschool.com has A TON of good stuff but it costs teh monies
realDAB has joined #ruby
jonahR has quit [Quit: jonahR]
<zul> ok thanks I look your links.. thanks a lot
<thecodethinker> zul: don't expect to make anything amazing by yourself. You need graphic artists to make the images that you simple manipulate with css and html
yshh has quit [Ping timeout: 252 seconds]
alexim has quit [Quit: sleep]
<zul> thanks aedorn
Axsuul has joined #ruby
beiter has quit [Quit: beiter]
anonymuse has quit [Quit: Leaving...]
tjbiddle has joined #ruby
generalissimo has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
tjbiddle_ has joined #ruby
Es0teric has quit [Ping timeout: 248 seconds]
_nitti has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
Rioji has quit [Read error: Connection reset by peer]
tenmilestereo has quit [Quit: Leaving]
jgarvey has quit [Quit: Leaving]
Rioji has joined #ruby
kornnflake is now known as kornnflake_zzz
tcstar has quit [Ping timeout: 256 seconds]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
rkd has joined #ruby
zul has quit [Quit: Ex-Chat]
cyong has joined #ruby
rkd is now known as arcady
arcady is now known as arkady
arkady is now known as rkd91
rkd91 is now known as arkady91
v0n has joined #ruby
emocakes has joined #ruby
Skelz0r has quit [Quit: Bye]
pyrac has quit [Quit: pyrac]
Skelz0r has joined #ruby
arkady91 has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
justinmcp has quit []
kpshek has quit []
MehLaptop has joined #ruby
kpshek has joined #ruby
tspike has quit [Ping timeout: 264 seconds]
hasimo has joined #ruby
tspike has joined #ruby
justinmcp has joined #ruby
<thecodethinker> Is there a way to take a program I write in ruby and make it into a single executable file?
<thecodethinker> I have been trying rawr and jruby but there is this wierd error and nobody is helping me with that :'(
sambao21 has quit [Quit: Computer has gone to sleep.]
maxmanders has quit [Quit: Computer has gone to sleep.]
axl__ has quit [Quit: axl__]
chico_chicote has joined #ruby
FDj_ is now known as FDj
<thecodethinker> rake aborted!
Rioji has quit [Remote host closed the connection]
<thecodethinker> does anyone know anything about this error?
<thecodethinker> add failed. Entry java already exists
<thecodethinker> that one :3
invisime has quit [Quit: Leaving.]
ArchBeOS has joined #ruby
ArchBeOS has joined #ruby
ArchBeOS has quit [Changing host]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
kpshek has quit []
danman has quit [Quit: danman]
marr has joined #ruby
tjbiddle_ has joined #ruby
atyz has quit [Ping timeout: 260 seconds]
eykosiou_ has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
BRMatt has joined #ruby
luckyruby has joined #ruby
yshh has joined #ruby
pettsson has quit [Remote host closed the connection]
ukd1 has joined #ruby
statarb3 has quit [Quit: Leaving]
tjbiddle has quit [Ping timeout: 250 seconds]
tjbiddle_ is now known as tjbiddle
io_syl has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
niklasb has joined #ruby
NiteRain has joined #ruby
io_syl has quit [Client Quit]
thecodethinker has quit [Quit: Lost terminal]
benkay has quit [Quit: benkay]
mva3212 has quit [Remote host closed the connection]
io_syl has joined #ruby
himsin has quit [Remote host closed the connection]
himsin has joined #ruby
_veer has quit [Ping timeout: 258 seconds]
nari has joined #ruby
BoogShloog has joined #ruby
senayar has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
chrishough has quit [Quit: chrishough]
nga4 has quit []
jonathanwallace has joined #ruby
adr has quit [Ping timeout: 252 seconds]
adr has joined #ruby
piotr has quit [Ping timeout: 260 seconds]
etcetera has quit []
ckrailo has quit [Ping timeout: 276 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
etcetera has joined #ruby
yshh has quit [Ping timeout: 250 seconds]