<headius>
I don't think I ever programmed an 8khz processor
<ryanf>
anyway if "debug mode" is actually fast enough to develop on, that seems pretty reasonable
<ryanf>
when I hear "debug mode" I think more like "set_trace_func turned on" levels of performance
olds22 has quit [Quit: Leaving]
Croms has joined #ruby-lang
<headius>
yeah, even the atari 400 was a 1-2MHz 6502
<headius>
sinclair 1000 was 3.25MHz
<charliesome>
i feel incredibly young
<headius>
ryanf: well, things like set_trace_func have massive perf overhead on any imple
<headius>
charliesome: 400 was probably my first real computer
<charliesome>
my first computer had a p4 in it
<headius>
I just found the sinclair 1000 at a yard sale
<headius>
hah
<headius>
that's pretty good :)
<headius>
I remember when circuit board parts used to have these pointy doo-dads sticking out the bottom that went *in* to the circuit board
<headius>
we had to solder uphill both ways
<thufir_>
I'm trying to load a very simple yaml: https://gist.github.com/4292316 how do I assign the user ?symbol? from the script?
coliflor has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<headius>
I have no idea :)
* apeiros_
's first computer had, I believe 8MHz, 2.5MB Ram (which was *tons* back then) and a 5MB Hard drive
workmad3 has quit [Ping timeout: 248 seconds]
<headius>
I can't say I have any idea of a parsed yaml file's structure
<ryanf>
thufir_: try "puts yp.inspect"
<headius>
which is funny, because I implemented the java version of psych
<apeiros_>
thufir_: you probably want .load_file instead of .load_documents
<apeiros_>
and then it's just data['user'] = value
<apeiros_>
also :: for method calls looks so antiquated
<thufir_>
I'll try that thanks. be back in a few :)
<headius>
I advocated :: should change to give you what .method does
<headius>
since nobody except thufir_ actually uses it for method calls
<thufir_>
headius: hmm?
<apeiros_>
headius: isn't that what it already does?
<ryanf>
headius: that's a cool idea
<headius>
I mean for it to return a method reference
<apeiros_>
headius: ah
<apeiros_>
yes
<apeiros_>
that'd be nice
<headius>
so you always get an object back from ::
<headius>
not do a call
<headius>
anyway, late…gotta bail
headius has quit [Quit: headius]
<thufir_>
ok, makes more sense. I can inspect the .yml file correctly. how do I do something like "password = email.get_password" where "email" is the yaml file?
<thufir_>
while I can output the whole yaml, I just want a particular ?value?, in this case the password stored in the yaml.
<apeiros_>
thufir_: YAML.load_file gives you a normal ruby object back
<apeiros_>
inspect it how you inspect all ruby objects
<apeiros_>
and then use the docs of those objects to figure how to use them
stonerfish has quit [Quit: Leaving.]
<thufir_>
inspect returns a map, I believe, in this case.
<apeiros_>
you know how to use irb (or pry)?
<apeiros_>
thufir_: no need to believe. you can ask the object. .class
<thufir_>
I'm using rvm, and haven't installed irb as of yet.
<apeiros_>
irb comes with ruby
<apeiros_>
pry would be an additional install (and is IMO totally worth it)
<thufir_>
in any event, it doesn't seem to be on the classpath (irb)
<apeiros_>
classpath?
<apeiros_>
irb is an app, an executable, like ruby itself.
<thufir_>
perhaps it's there, but typing "irb" doesn't do anything. I haven't looked into it.
<apeiros_>
and since you use rvm, you should run `rvm docs generate`, that allows you to use `ri` (another program, allows you access to rubys documentation)
<thufir_>
pardon, it does now. don't know why I thought it didn't. irb works.
<thufir_>
ok, it's a Hash. so, just treat it like a Hash and get the user, password that way?
<apeiros_>
yes
<thufir_>
thanks
<apeiros_>
yw
adambeynon has joined #ruby-lang
<thufir_>
ok. similar but different, coming from Java. got my output, though :)
imajes has quit [Excess Flood]
<thufir_>
on line 14: https://gist.github.com/4292316 I want to use the user and password variables, but I'm inferring that I'm not using them correctly? if I just put in the raw strings it works fine, and the yaml seems to get loaded and parsed correctly.
imajes has joined #ruby-lang
<thufir_>
ohhh, do I need to use @ or something to specify it's a variable?
<charliesome>
thufir_: @foo is an instance variable
<charliesome>
thufir_: @@foo is a class variable, like a static field in java
gjaldon has joined #ruby-lang
<charliesome>
thufir_: if you just write 'foo' then it's either a local variable or a method call
zarubin has quit [Read error: No route to host]
<gjaldon>
what's a testing framework that runs fast and has concise syntax?
<thufir_>
PEBKAC. so sorry. I forgot that the I was using password "password" just here, so I just put my real password into the yaml and it works (using @password). LOL, pardon.
<ryanf>
gjaldon: minitest
ebouchut has joined #ruby-lang
<gjaldon>
ryanf: you prfer minitest to rspec 2 then?
<thufir_>
https://github.com/mikel/mail is a good ruby mail API? I can get an e-mail with the Net::IMAP and then parse the message with mikel mail?
<apeiros_>
thufir_: yes
<apeiros_>
Mail is the defacto standard for mails I'd say
<thufir_>
apeiros_: the one I linked to, mikel/mail ?
<apeiros_>
yes
<apeiros_>
gem install mail
<apeiros_>
gives you the one you linked
cirwin has quit [Quit: sleep...ping!]
<thufir_>
apeiros_: thanks :)
headius has joined #ruby-lang
<thufir_>
does it matter whether you install a gem directly, or put, I think: require: ruby-gems at the top of a script?
headius has quit [Client Quit]
thone_ has joined #ruby-lang
Croms has quit [Quit: Croms]
<matled>
uh, the first file I look at of the mail gem (patches/sendmail.patch) reveals that it uses sh -c to call out to sendmail... why don't people use the proper form to use an array as arguments...
<apeiros_>
hm, can't figure out how Haml::Engine#precompiled is supposed to be used
<apeiros_>
matled: open an issue on github
<apeiros_>
and yeah, totally agree
thone has quit [Ping timeout: 264 seconds]
<matled>
it just feels like almost every gem I randomly looked at does this..
<ryanf>
apeiros_: you mean what it's good for, or how to execute it?
<apeiros_>
ryanf: I assumed I could use it to cache templates
<apeiros_>
ryanf: but I don't know how I could render the precompiled eval string
<apeiros_>
it seems deeply embedded in #render
<apeiros_>
and I don't see a way to construct a Haml::Engine from a precompiled string
<ryanf>
hmm, that's a good point
<ryanf>
I can kind of see how you could make a fake compiler class and thread the string through it to the right place :)
<ryanf>
it wouldn't be particularly nice though
<apeiros_>
yeah, I don't like messing with internals for something like that
<apeiros_>
either it's got an API or I consider it "not doable"
<ryanf>
I've only used #precompiled for syntax verification
<ryanf>
I think maybe it's just not meant to be public api
<apeiros_>
yeah, I don't know why precompiled in the current state is public
ebouchut has quit [Quit: This computer has gone to sleep]
KA__ has joined #ruby-lang
kain has quit [Quit: exit]
<thufir_>
msg = imap.fetch(id,'RFC822')[0].attr['RFC822'] #how do I "cast" (I know ruby doesn't need to cast objects) this into something the mail api can handle?
leopard_me has joined #ruby-lang
<rue>
thufir_: Explain what your goal is
<rue>
Assume I have no idea if you just made that above syntax up
<thufir_>
in Java, you get an object of type ImapMail, let's say. you then need to cast it into MyMail for whatever reason.
<thufir_>
so, the msg above is a bunch of text, so far as I can tell. I want use the mail API on it, and do things like msg.subject but how do I call mail.subject on msg?
<thufir_>
pardon, msg.subject I mean.
<thufir_>
I want to get the subject of msg using the mail API
toretore has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
crazyhorse18 has joined #ruby-lang
<crazyhorse18>
hey .. how can i skip an interation inside map?
voker57 has quit [Read error: Connection reset by peer]
<crazyhorse18>
next doesn't work
imajes has quit [Excess Flood]
<crazyhorse18>
[1,nil,3].map {|a| next; 5 } basically, i want an empty array in this case
<crazyhorse18>
[1, nil, 3].map {|a| if a.nil?; next; else; a end }
<apeiros_>
you won't be able to do it that way
<apeiros_>
map will always return an array of the same length
<apeiros_>
(except if you use break or return, but that isn't what you want either as it'll abort .map completely)
ryanf has quit [Ping timeout: 244 seconds]
<crazyhorse18>
ah right yep
<apeiros_>
you want either .map { … }.compact or write your own .compact_map
<matled>
a #map_compact would be nice (i.e. map and then ignore values that are nil)
<apeiros_>
crazyhorse18: don't use &blk if you use yield
<apeiros_>
you force ruby to do needless work
<crazyhorse18>
yep just removed that
<crazyhorse18>
:)
<thufir_>
apeiros_: ohhhh, ok. quite simple. what's the terminology for that?
<apeiros_>
IMO that method is pointless. it does the same (but probably slower) as .map {}.compact
<apeiros_>
thufir_: terminology for what?
<thufir_>
what's the terminology for mail = Mail.new(msg) ?
<apeiros_>
there's no special terminology for that.
<apeiros_>
you create a new Mail instance
<crazyhorse18>
apeiros_:nah
<crazyhorse18>
aperios: contains nested hashes
<crazyhorse18>
and arrays
<apeiros_>
crazyhorse18: tab completion for nicks :-p
<apeiros_>
makes you not typo them
<crazyhorse18>
apeiros_: haha ok
<thufir_>
ok, but you're passing another type of object, a string in this case I think, and getting back a Mail object. not a cast. factory? something like that?
<apeiros_>
crazyhorse18: I don't see how nesting changes what I said…
<crazyhorse18>
hmm
<crazyhorse18>
apeiros_: let me go think about it
<apeiros_>
thufir_: there's no type-casting in ruby
<crazyhorse18>
if that just works.. i'll get rid of the two methods
<thufir_>
apeiros_: right, but msg certainly isn't a Mail object. oh well.
<apeiros_>
thufir_: just read the readme from top to bottom. it covers the important parts.
faces has joined #ruby-lang
robotmay has joined #ruby-lang
faces has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
faces has joined #ruby-lang
thufir_ has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
zmack has joined #ruby-lang
faces has quit [Ping timeout: 244 seconds]
KA__ has quit [Quit: KA__]
zmack has quit [Ping timeout: 248 seconds]
<crazyhorse18>
hmm
<crazyhorse18>
how do you test stuff that gets passed to blocks in recursive functions
<crazyhorse18>
basically i need to test that a) the block got executed 3 times only b) that the params passed to those blocks were a, b,c or d,e,f or g,h,i
qwerxy_ has joined #ruby-lang
qwerxy_ has quit [Client Quit]
<manveru>
?
<crazyhorse18>
so.. some_nesty_recursive_function {|param_1, param_2, param_3| do some shit }
<socialcoder>
got a question that is kinda frustrating me. Anyone in please?
<manveru>
just ask
<shachaf>
There is only silence and some second-hand clothes.
<socialcoder>
kewl
<manveru>
answering your question whether someone might be able to answer would result in 330 lines of "ask away" :P
io_syl has quit [Quit: Computer has gone to sleep.]
<socialcoder>
what in plain english is ARGv? Is it soemthing that holds more than one variable?
<socialcoder>
FYI - I am a noob studying Learn Ruby Hard Way
<manveru>
ARGV is a remnant from C, i think
<whitequark>
it is an array of command-line options
<Mon_Ouie>
It holds the arguments that the user passed to your program through the command line. e.g. if he types ruby script.rb foo bar baz, ARGV is ["foo", "bar", "baz"]
<socialcoder>
I read the C explanation, butcouldn't digest it
<socialcoder>
it holds the argument , so its somethinglike a super variable
<socialcoder>
ability to hold multiple arguments
<manveru>
the v stands for vector, which is kind of an array
<socialcoder>
or multiple values?
<Mon_Ouie>
It's just an array, nothing that special
<socialcoder>
Zed says the V is variable
<socialcoder>
what is a vector?
<manveru>
[]
<apeiros_>
argc & argv - arg count and arg value I'd say
<manveru>
arg vector
<crazyhorse18>
what do you geezers think of this ash.search('apps.*.skip_stages')
<crazyhorse18>
hash.search('apps.*.skip_stages') even and hash.search('apps.*')and hash.search('apps.*.something.*')
<apeiros_>
manveru: ah
<manveru>
crazyhorse18: what for?
<crazyhorse18>
pass it a block and then you can edit the hash on all the matching records
<manveru>
what does search mean?
<socialcoder>
okthanks on that guys...just one more...what isSTDIN
<whitequark>
crazyhorse18: that only works for string keys
<crazyhorse18>
so lets say you have the hash {:apps => { :something => {:skip_stages => [1,2,3] hash.search('apps'.something.skip_stages') will return [1,2,3] or you can do .*.skip_stages and you can match them all
<crazyhorse18>
whitequark: yeah.. and symbols.. it checks for both
agarie has quit [Remote host closed the connection]
<crazyhorse18>
haven't got it working with arrays yeat
<Mon_Ouie>
It stands for "standard input". Typically, if you run the program in a terminal, it allows you to read what the user is typing.
vlad_starkov has quit [Remote host closed the connection]
<socialcoder>
whats its connection with gets chomp
<socialcoder>
stdin gets chomp
* apeiros_
thinks crazyhorse18 should subclass Hash, use / as separator and call it glob instead of search, and use ** for arbitrary deep search and * for single level
<crazyhorse18>
ohhh yeah
<crazyhorse18>
that's much better
<whitequark>
I'd say avoid subclassing
<whitequark>
abstract a hash.
<crazyhorse18>
apps/**/node
<crazyhorse18>
i tried to make all these lovely error messages
<crazyhorse18>
like couldn't find branch , couldn't find leaf etc
<Mon_Ouie>
#gets is a method that reads from an input stream; STDIN is just the input stream you want to read from
<socialcoder>
errr?
<apeiros_>
careful, Kernel#gets reads from ARGF, not $stdin
<crazyhorse18>
but the recursion was doing my head in.. so had to change them to "couldn't find bla" for everyone
<crazyhorse18>
every message
<apeiros_>
cause of much confusion
dzhulk has quit [Quit: Leaving.]
rwalker has joined #ruby-lang
<Mon_Ouie>
It returns a line, and you remove the trailing line terminator, "\n" using #gets
<socialcoder>
can you give me an example please
<Mon_Ouie>
For the second part, "foo\n".chomp #=> "foo"
<Mon_Ouie>
For the first part, try typing $stdin.gets in e.g. IRB and enter a line after that
rwalker has left #ruby-lang [#ruby-lang]
<apeiros_>
puts "Enter your name:"; name = $stdin.gets; …
<socialcoder>
where does chomp come in to play
havenn has joined #ruby-lang
reppard has joined #ruby-lang
<Mon_Ouie>
If you pass "socialcoder" to your program, name will actually be equal to "socialcoder\n"
<Mon_Ouie>
Since you may not want that, you'd often use $stdin.gets.chomp, to get "socialcoder" instead
havenn has quit [Ping timeout: 252 seconds]
<whitequark>
Mon_Ouie: that's wrong
<whitequark>
if you press ^D gets will return nil
<socialcoder>
thanks guys
<socialcoder>
catch yalater
<socialcoder>
thanks Mon Quie
socialcoder has quit []
<Mon_Ouie>
whitequark: Not if there's still input.
<Mon_Ouie>
(You can type "foo^D" and it will return "foo"
reppard has quit [Ping timeout: 250 seconds]
Technodrome has joined #ruby-lang
Technodrome has joined #ruby-lang
Technodrome has quit [Changing host]
Technodrome has quit [Remote host closed the connection]
telemachus_ is now known as telemachus
leopard_me has joined #ruby-lang
neocoin has joined #ruby-lang
vlad_starkov has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
<whitequark>
Mon_Ouie: yeah
<whitequark>
but if you just use $stdin.gets.chomp, it'll explode
<whitequark>
and that isn't good
<Mon_Ouie>
Oh, right
<whitequark>
I've made that mistake countless times
madish has joined #ruby-lang
postmodern has quit [Quit: Leaving]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
crazyhorse18 has quit [Ping timeout: 264 seconds]
Technodrome has joined #ruby-lang
Technodrome has joined #ruby-lang
Technodrome has quit [Changing host]
jxie has quit [Quit: leaving]
vlad_starkov has quit [Ping timeout: 244 seconds]
reppard has joined #ruby-lang
beiter has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
kain has joined #ruby-lang
meatballhat has quit [Ping timeout: 252 seconds]
meatballhat has joined #ruby-lang
meatballhat has quit [Changing host]
meatballhat has joined #ruby-lang
reppard has quit [Ping timeout: 245 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
<Technodrome>
why in the world would you want class level instance variables acting like class variables?
dzhulk has joined #ruby-lang
leopard_me has joined #ruby-lang
<apeiros_>
Technodrome: you think class instance variables act like class variables?
<Technodrome>
no i'm just saying, why would you want a class variable to act like an instance variable?
<Technodrome>
i mean i see the difference there as well, but if you want every subclass to have its own value for the same variable , just use an instance variable?
<telemachus>
Technodrome: To avoid the problems with class level variables.
<telemachus>
Did you read the initial part of the piece?
<Technodrome>
yes
<Technodrome>
it just seems like a bit of a hack, but i could be wrong
<apeiros_>
Technodrome: I don't see anything in that article that says "I want class level ivars to act like class variables" - so I don't get why you ask that question…
<apeiros_>
obviously you *don't* want class level ivars to act like cvars, as that would cause issues.
beiter has quit [Quit: beiter]
<Technodrome>
nevermind i get it
<telemachus>
I think it's a pretty popular way to handle it. Many Rubyists recommend not using class variables because of the confusing semantics with inheritcance.
<Technodrome>
i was unaware that setting a class variable on a child, changes it for every super class on up
<telemachus>
s/inheritcance/inheritance/ # sighs
* apeiros_
is one of those rubyists who recommends not using @@cvars
<Technodrome>
is that how class variables work in smalltalk?
<Technodrome>
changes for every superclass on up?
havenn has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
havenn has quit [Ping timeout: 264 seconds]
banister_ has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby-lang
MaddinXx has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Technodrome has joined #ruby-lang
Technodrome has joined #ruby-lang
Technodrome has quit [Changing host]
ebouchut has quit [Quit: This computer has gone to sleep]
<Technodrome>
whitequark: such a nice person :)
mwjcomputing has joined #ruby-lang
reppard-away has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
brunocoelho has joined #ruby-lang
reppard-away has quit [Ping timeout: 248 seconds]
brunocoelho has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
imperator has joined #ruby-lang
ebouchut has joined #ruby-lang
Technodrome has quit [Quit: Leaving.]
nignaztic has quit [Ping timeout: 255 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
srbaker has joined #ruby-lang
marr has joined #ruby-lang
swav has joined #ruby-lang
Technodrome has joined #ruby-lang
Technodrome has quit [Changing host]
Technodrome has joined #ruby-lang
dzhulk has joined #ruby-lang
srbaker has quit [Client Quit]
ebouchut has quit [Quit: This computer has gone to sleep]
rcvalle has joined #ruby-lang
mercwithamouth has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
zmack_ has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
jxie has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 248 seconds]
andrewhl has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
tallship has joined #ruby-lang
esad has joined #ruby-lang
io_syl has joined #ruby-lang
gjaldon has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 264 seconds]
havenn has quit [Remote host closed the connection]
mwjcomputing has quit [Ping timeout: 260 seconds]
havenn has joined #ruby-lang
dzhulk has joined #ruby-lang
sent-hil has joined #ruby-lang
havenn has quit [Ping timeout: 250 seconds]
dzhulk has quit [Client Quit]
ebouchut has joined #ruby-lang
vlad_starkov has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
jobicoppola has joined #ruby-lang
dzhulk has joined #ruby-lang
esad has joined #ruby-lang
headius has joined #ruby-lang
imajes has quit [Excess Flood]
io_syl has quit [Quit: Computer has gone to sleep.]
imajes has joined #ruby-lang
havenn has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
sent-hil has quit [Remote host closed the connection]
Maddin___ has joined #ruby-lang
sent-hil has joined #ruby-lang
MaddinXx_ has quit [Ping timeout: 250 seconds]
stonerfish has joined #ruby-lang
havocjoseph has joined #ruby-lang
gregmoreno has joined #ruby-lang
seanstickle has joined #ruby-lang
headius has quit [Quit: headius]
esad has quit [Quit: Computer has gone to sleep.]
reppard-away has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
srbaker has joined #ruby-lang
seanstickle has quit [Client Quit]
headius has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
seanstickle has joined #ruby-lang
dorei has joined #ruby-lang
mercwithamouth has joined #ruby-lang
<dorei>
Hello, I have a: myServer = TCPServer.open(9900).accept , if a client connects to my tcpserver, I can use myServer.puts(data) to send data. Is there a way to find out if the client has closed the connection to my server?
dzhulk has quit [Quit: Leaving.]
dzhulk has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<whitequark>
dorei: try #eof?
nignaztic has joined #ruby-lang
srbaker has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
matthewd has quit [Ping timeout: 240 seconds]
matthewd has joined #ruby-lang
esad has joined #ruby-lang
JohnBat26 has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
Technodrome has quit [Quit: Leaving.]
<dorei>
whitequark: eof? seems to only work after the client has sent something, if the client didnt sent something, eof? blocks
dzhulk has quit [Quit: Leaving.]
ryanlecompte has joined #ruby-lang
gregmoreno has joined #ruby-lang
dzhulk has joined #ruby-lang
nignaztic has quit [Ping timeout: 264 seconds]
<imperator>
if the client didn't send anything, did it ever connect? ;)
Technodrome has joined #ruby-lang
Technodrome has quit [Changing host]
Technodrome has joined #ruby-lang
heftig has joined #ruby-lang
<dorei>
yeap
<dorei>
i manually connect with telnet
<dorei>
and then just quit it
<dorei>
i connected but didnt send anything :p
sent-hil has quit [Remote host closed the connection]
<dorei>
but puts/write from server dont seem to know that (they just return nil just like when the connection is established)
<rue>
thufir_: Also, the method list and then search for header
workmad3 has joined #ruby-lang
joevandyk_ has quit [Read error: Connection reset by peer]
robotmay has quit [Remote host closed the connection]
AndChat| has joined #ruby-lang
<thufir_>
I see h = Header.new in the method docs, but I don't see the inverse, if you will. h =msg.header ?
Banistergalaxy has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
<thufir_>
rue: ok, that worked :) thanks.
reppard has quit [Ping timeout: 265 seconds]
<rue>
You’ll usually want to search where you want to do something *from*, not what the result should be :)
rippa has quit [Ping timeout: 245 seconds]
<thufir_>
ok
robotmay has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
robotmay has quit [Remote host closed the connection]
faustman has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
reppard has joined #ruby-lang
dzhulk has joined #ruby-lang
reppard has quit [Ping timeout: 265 seconds]
dzhulk has quit [Quit: Leaving.]
stonerfish has quit [Quit: Leaving.]
nick_h has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
reppard has joined #ruby-lang
io_syl has joined #ruby-lang
mwjcomputing has joined #ruby-lang
MaddinXx has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
reppard has quit [Ping timeout: 255 seconds]
nick_h has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby-lang
robotmay has joined #ruby-lang
kurko_ has joined #ruby-lang
dzhulk has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
wyhaines has quit [Remote host closed the connection]
socialcoder has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<socialcoder>
hey guys
srbaker has joined #ruby-lang
<socialcoder>
I am wowed...was going thru an HN thread 781 days old. wow wow. There is so much flame between Python / Ruby andeven more Django / Rails. Crazy.
<Technodrome>
the thing I absolutely <3 is when really new rails developers who barely know ruby feel like its their "right of passion" to hate on PHP
<chris2>
manveru: haha
<Technodrome>
its like dude, you barely know what a class is
dzhulk has quit [Quit: Leaving.]
<chris2>
manveru: now we save the net by hating zed
<drbrain>
Technodrome: :D
<apeiros_>
aaaah, zed :D
<socialcoder>
i was doing a comparison search on google
<drbrain>
chris2: full cicrle?
<socialcoder>
and came across this
<socialcoder>
one thing is clear
<chris2>
:)
<socialcoder>
the majority opeinion favoprs ruby/rails
<Technodrome>
I use django mainly for work , but i love them all
<manveru>
i love ruby, but hate rails
<havenn>
^^
meizaps has joined #ruby-lang
<manveru>
i'd rather use django :)
<Technodrome>
I love ruby more than Python but like Django more than Rails
<socialcoder>
some guy was telling me if I learn ruby and rails, it maybe difficult to learn python, but the other way around is easier..is that true?
<havenn>
socialcoder: no
<chris2>
i hate webdev :P
<apeiros_>
I hate everything. Long live the reinvented wheel!
<Technodrome>
it will be equally easy or hard to learn any of any given time
<yorickpeterse>
I like cats
<Technodrome>
with django, i get stuff done quick
<manveru>
the internet was made for ... kitten
<socialcoder>
interesting
<apeiros_>
coming out of the toaster… with rainbows following them… while the fly in a black sky…
<socialcoder>
techodrome, the guy was saying ruby's simplicity is addictive
<socialcoder>
and may make me a disorganised programmer
<socialcoder>
python is good because it has a standard way of doing stuff...blah blah
<seanstickle>
Can we stop talking about what some other guy said to you as though it weren't really just you saying it and pretending it was someone else?
<manveru>
ruby and python are more alike than they're different...
<socialcoder>
why wud I do that
<seanstickle>
"I have this … friend … who is a PHP programmer. And he said Ruby sucks."
<socialcoder>
big deal..
* seanstickle
rolls eyes
<socialcoder>
if I want to ask something
<socialcoder>
I will ask
<chris2>
weird friends you have :P
<socialcoder>
did I make a general statement like that Sean
<socialcoder>
anyways
<socialcoder>
nevermind...dont wanna fight
vlad_starkov has quit [Remote host closed the connection]
<chris2>
learning never hurt
<seanstickle>
Sometimes it hurts a lot.
<seanstickle>
And sometimes it's just really really boring.
<seanstickle>
Sometimes it's interesting.
<seanstickle>
It's sort of all over the map.
<chris2>
well, dont do boring stuff if you dont want to
<socialcoder>
true
<socialcoder>
is ruby primarily for the web?
<seanstickle>
chris2: what!
<seanstickle>
chris2: the boring stuff is sometimes necessary to the goal
<seanstickle>
Memorizing all the Latin declensions was really dull. But now I can read Latin, which is super awesome.
workmad3 has joined #ruby-lang
<seanstickle>
socialcoder: no. it's for most general programming tasks.
<seanstickle>
Wouldn't advise using it for an operating system kernel though.
<seanstickle>
…yet.
<socialcoder>
then Sean, why do they say its slow when programmed for non web purposes?
<seanstickle>
socialcoder: who?
<seanstickle>
socialcoder: who is "they"?
<manveru>
the illuminati
<socialcoder>
couple articles I read, plus some HN discussion
<seanstickle>
Mein Gott, the Illuminati are into programming now?!
<socialcoder>
haha
<socialcoder>
guys pls...
<socialcoder>
:(
<seanstickle>
socialcoder: I don't know why they say that.
<seanstickle>
socialcoder: ask them.
<seanstickle>
I'm not a psychic.
<socialcoder>
well, "they" did. some technical talks about memory problems
<socialcoder>
psychic reminded me, I have to watch my favorite show The Mentalist
<seanstickle>
If you didn't understand the reasons, it does't make any difference for you.
<manveru>
you want fast, you can always use fortran
<socialcoder>
hmm
<seanstickle>
manveru: or APL
<manveru>
can't argue with that
<seanstickle>
:D
workmad3 has quit [Ping timeout: 250 seconds]
ryanf has quit [Quit: leaving]
srbaker has quit [Quit: Computer has gone to sleep.]
jcr has joined #ruby-lang
<jcr>
is there a rvm equivelent for rehash from rbenv?
<manveru>
what does rehash do?
<havenn>
jcr: No, rvm doesn't use shims.
<havenn>
jcr: Neither does chruby for that matter.
ryanf has joined #ruby-lang
<havenn>
manveru: Rehash sets up new shims for ruby and gems. Gotta rehash all the time with rbenv. :P
<manveru>
havenn: ok, haven't had to use rbenv yet
<manveru>
in rvm we trust :)
<havenn>
chruby is lovely too :)
<manveru>
first time i hear of it too
<jcr>
I added another local repo of octopress... this is all I am getting category_generator.rb:114:in `throw': uncaught throw "No 'category_index'
<manveru>
doesn't seem like something i'd like though
<yorickpeterse>
Besides the rehashing, any reason to use chruby over rbenv?
<jcr>
I did not rehash
<jcr>
this is my second install and i did nor rehash the first time that I remember as I do not have rbenv on my system
<havenn>
yorickpeterse: Fuzzy matching of Ruby names. Has tests.
<havenn>
yorickpeterse: Easier to point at any Ruby, no matter where it was installed as well.
<manveru>
rvm has tests :P
<yorickpeterse>
havenn: hmm
<manveru>
not too fuzzy matching though
<yorickpeterse>
Is there a guarantee it will be maintained 6 months from now?
<manveru>
jcr: i don't see how that's related to rvm
<havenn>
yorickpeterse: Postmodern seems pretty committed to it, and it has rapidly gained additional committers. I suspect it will very much be around. :)
<yorickpeterse>
Hm, suppose I'll have to take a look at it
<yorickpeterse>
rbenv seems dead anyway, and the rehash bit pisses me off
<havenn>
Evil shims are evil.
lcdhoffman has joined #ruby-lang
wyhaines has joined #ruby-lang
<jcr>
manveru: its not except for the devs are saying the instructions must be followed explicitly for an install
<jcr>
manveru: however I did use rbenv for my first install and thus my questions
<manveru>
yeah, they usually have to
<jcr>
manveru: correction - I did not use rbenv for the first install
<jcr>
which works like a gem
<jcr>
in more ways then one
<manveru>
color me confused
<manveru>
do you have a question? do you have a problem?
Technodrome has left #ruby-lang [#ruby-lang]
stonerfish has joined #ruby-lang
<jcr>
manveru: so am I simpy put - I am getting an error the devs say is cuased by not following the install directions to the letter even though my other install works flawlessly and I did not follw the directions to a t
stonerfish has quit [Client Quit]
<manveru>
so you're saying that the installation is like a casino, and the house always wins?
stonerfish has joined #ruby-lang
<manveru>
i better get some sleep before i say more nonsense :)
<manveru>
basically, the devs tell you to use a train to go from A to B, you decide to take a train 30 minutes earlier, but the next time you try to drive with a car and get lost
<yorickpeterse>
manveru: go to bed already
wyhaines has quit [Remote host closed the connection]
<manveru>
on my way :)
mwjcomputing has quit [Quit: Leaving]
guns has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
<yorickpeterse>
havenn: "Does not automatically switch Rubies upon login or when changing directories." Yeah, I kinda want the first
<yorickpeterse>
otherwise I'll just end up forgetting I'm using system Ruby
anannie has quit [Remote host closed the connection]
<yorickpeterse>
hmm
<havenn>
yorickpeterse: Yeah, I just put 'chruby 1.9' in my .zshrc for now. The auto-change feature though really works well. Will be included in forthcoming 3.0 release methinks.
<havenn>
yorickpeterse: RVM adopting same method as chruby so no need to hook cd. Nice to be sharing code between RVM and chruby.
MaddinXx has joined #ruby-lang
<yorickpeterse>
What file does chruby use for local Ruby versions? .ruby-version?