fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
nari has quit [Ping timeout: 260 seconds]
<F1skr>
Thanks guys!
<shevy>
xorgnak ahhh ruby still has to overtake perl on tiobe
<F1skr>
I'm off to bed, will check out some more ruby tomorrow. ;)
cakehero has quit [Quit: Computer has gone to sleep.]
<xorgnak>
perl is a perfect language to code in if noone else will ever have to see your code
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<shevy>
I like my code
F1skr has quit [Quit: WeeChat 0.3.8]
<shevy>
it's like a puppy that wants to be cuddled
<Spooner>
Perl is a perfect language to code in if noone, including yourself, needs to look at the code ;)
<blazes816>
Perl is great ur all jelly
<xorgnak>
especially yourself
<blazes816>
is it a list? or a scalar? list? or scalar? you don't know
rcloak has joined #ruby
<shevy>
I got one big array... called HTML_COLOURS ... this holds all html colours. When I turn this into a gem, should I put it into a module? or without a module...
hadees has joined #ruby
<xorgnak>
modile
<shevy>
difference is like accessing it like: HtmlColours::HTML_COLOURS vs HTML_COLOURS alone
<xorgnak>
module
<Muz>
Put it in a module.
<shevy>
hmm ok
<shevy>
you guys seem to like modules :)
snuglepuss has joined #ruby
artOfWar has quit [Ping timeout: 244 seconds]
<havenn>
shevy: Or even a method inside the module instead of constant.
<Muz>
Because we like namespacing and not having third party code shit on our own stuff.
<hadees>
what is the best way to figure out if 2 arrays have all the same elements? subtraction doesn't really do that because it'll only show you if the first array
<havenn>
Spooner: err, yeah, I set that all wrong.
<Muz>
Arrays are ordered, so comparisons respect that. Sets are unordered.
<Muz>
So; should you be using a Set and not an Array.
<Spooner>
I didn't know that. Good to hear sets will not require requiring ;)
<blazes816>
unless duplicates are allowed
<xorgnak>
Set doesn't allow duplicates
<havenn>
Spooner: That is what I meant, just didn't manage to say it... (no more; require 'set') =)
<davidcelis>
lol a set with duplicates
<davidcelis>
that wouldn't be a set, bro
<hadees>
so doing the sort comparison seemed to work
<Muz>
Well, I did ask if Sets would be more suitable. They may not be if duplicate items are pertinent to the collection.
cantonic_ has joined #ruby
<xorgnak>
is order a concern or just content?
<blazes816>
that's what I was saying. if he wants dups he can't use a set
<blazes816>
unless maybe, the set of all duplicates? take that discrete math.
<xorgnak>
the recursion makes my brain hurt
adamkitt_ has joined #ruby
<davidcelis>
xorgnak: sets are unordered
<davidcelis>
order cannot matter; there is no order
<davidcelis>
only chaos
<hadees>
xorgnak: i don't care about order
<davidcelis>
ONLY ZUUL
<havenn>
Clearly the solution is to monkey patch Set to both allow duplicates and be ordered.
pskosinski has quit [Read error: Connection timed out]
<davidcelis>
havenn: you mean some sort of... Array-like structure??
<davidcelis>
GENIUS
<havenn>
davidcelis: roflcopter
rcloak has quit [Quit: rcloak]
<Spooner>
I'd just add a Array#contains_the_same_stuff(other_array)
<hadees>
so I was trying to simplify a larger problem of comparing two recipes models together (the food kind). I wanted to know if they had all the same ingredients and same directions.
pskosinski has joined #ruby
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
<havenn>
hadees: Use Set.
khakimov has joined #ruby
moted has quit [Ping timeout: 248 seconds]
<hadees>
havenn: because a set won't let me have more then one?
<Muz>
What we need is a multiset. Or a bag.
<Spooner>
Or a Recipe.
xorgnak has quit [Remote host closed the connection]
recycle has joined #ruby
xorgnak has joined #ruby
adamkittelson has quit [Ping timeout: 264 seconds]
<hadees>
anyway i think just sorting the array works for now since the arrays are just strings
pskosinski has quit [Read error: Connection timed out]
justsee has quit [Quit: Leaving...]
ncr100 has quit [Ping timeout: 244 seconds]
jonathanwallace has joined #ruby
benq has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Computer has gone to sleep.]
wchun has quit [Ping timeout: 260 seconds]
mrsolo has quit [Quit: Leaving]
Faris1 has joined #ruby
Ontolog has left #ruby [#ruby]
eko has joined #ruby
riyonuk has joined #ruby
graft has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 246 seconds]
<riyonuk>
If I were to purchase the pickaxe book, how much would I miss out on if I didn't get the 1.9 version? I know I'd be getting the old version. :/
<gverri>
Im having a problem with hashes
joofsh has joined #ruby
<gverri>
I'm using nokogiri and using doc.xpath('//h3').each do |node|
<gverri>
/h3 = //a
awarner has joined #ruby
<gverri>
And I want to create an array with each node with "name" and "url"
GoHuyGo has joined #ruby
seoaqua has joined #ruby
<gverri>
How should i do it? hash[node]['name'] & hash[node]['url']?
specialGuest has quit [Ping timeout: 246 seconds]
frogprince has quit []
Hanmac1 has joined #ruby
jjbohn has quit [Quit: Leaving...]
Hanmac has quit [Ping timeout: 260 seconds]
sailias has quit [Quit: Leaving.]
asklov has quit [Ping timeout: 255 seconds]
wargasm has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
swarley has quit [Remote host closed the connection]
<swarley_>
lol
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<swarley_>
doesnt do anything though
<swarley_>
for you at least
gverri has quit [Quit: gverri]
amaya_ has quit [Ping timeout: 248 seconds]
<swarley_>
well
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
<swarley_>
in connection/term.rb
<swarley_>
there are constants for signals
GoHuyGo has quit [Quit: Leaving]
<cespare>
swarley_: it needs them for interacting with a pty'
havenn has quit [Ping timeout: 272 seconds]
<swarley_>
yeah i have no idea lol
amaya_ has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
ostapbender has joined #ruby
snorkdude has joined #ruby
<ostapbender>
Hi. Anyone know if there is a reasonable way to define a class which is an Array (or enumerable) with all its elements being of one (set) class?
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<cespare>
ostapbender: you paranoid? This isn't java :D
<cespare>
jkjk
maletor has quit [Quit: Computer has gone to sleep.]
<beakerman>
how do you use FileUtils#cp with path names containing spaces?
<beakerman>
Surrounding the paths with escaped quotes isn't working
<beakerman>
and neither is escaping the spaces themselves
radic has quit [Disconnected by services]
<cespare>
ostapbender: I'm not aware of such a thing, but it would be pretty trivial to define it yourself. Subclass Array and modify <</push to have the check
radic_ has joined #ruby
<ostapbender>
cespare: just wondering. Its just making my problem somewhat complex. I'm extending a subclass of Array at the moment to do the tasks I want it to, but I'm imagining that if I ever have a bad value inside it, its going to throw some ridiculous error message...
radic_ is now known as radic
techhelp has joined #ruby
techhelp has quit [Remote host closed the connection]
Ruler_Of_Heaven_ has joined #ruby
<ostapbender>
cespare: Yeah. Could do it that way. Suppose I'd need to redefine []= as well....
<cespare>
beakerman: works fine for me. FileUtils.cp "foo bar", "foo baz"
<cespare>
beakerman: you on windows or something?
<beakerman>
cespare: yeah the machine @ work
<cespare>
ostapbender: there're quite a few things, probably
<cespare>
ostapbender: + as well
pipopopo has quit [Ping timeout: 252 seconds]
<cespare>
ostapbender: but it's an odd thing to be doing.
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
haggen has joined #ruby
gverri has joined #ruby
uris has joined #ruby
<ostapbender>
cespare: I'm just working with arrays of numbers - would be good to be able to do things like setofnumbers.mean . Maybe I should just define it for array and then catch errors (like if I did [:a,:b].mean accidentally) when they come...
nadirvardar has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
hbpoison has joined #ruby
seanstickle has quit [Quit: seanstickle]
chimkan_ has quit [Quit: chimkan_]
snuglepuss has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
willcodeforfoo has joined #ruby
hadees has quit [Quit: hadees]
<bnagy>
that sounds like a bad use of subclassing
karakedi has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
<ostapbender>
bnagy: Yeah. it is. Which is why I ask. Not sure what the best way to do this is...
willcodeforfoo has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
haggen has quit [Quit: haggen]
<bnagy>
for simple thing like avg you can just write em directly, otherwise I'd probably make a Stats module and do like Stats.stddev( a)
<bnagy>
which is consistent with Math etc
Faris1 has left #ruby [#ruby]
<bnagy>
as for trying to enforce class in a container, that's wrong on so many levels
scb has joined #ruby
<bnagy>
if you want to validate then do it when the container is passed to whatever method
iamjarvo has joined #ruby
Nisstyre has quit [Quit: Leaving]
<ostapbender>
bnagy: Yeah. The module way seems to be what a lot of people follow, but for me I'm not sure of the advantage of that over something like a class method for Array that catches errors. The disadvantage for me is that the syntax becomes horrible.
Nisstyre has joined #ruby
flagg0204 has quit [Ping timeout: 245 seconds]
swarley_ has quit [Ping timeout: 252 seconds]
swarley_ has joined #ruby
xnm has joined #ruby
<ostapbender>
eg. I'd rather do [[1,2],[3,4],[5,6]].yvalues.mean than Stats.mean([[1,2],[3,4],[5,6]].map{|a| a.first}) or whatever...
<ostapbender>
and really, the error catching is the same either way you do it.
philcrissman has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
mrdodo has quit [Remote host closed the connection]
<cespare>
ostapbender: you may wish to use Vector/Matrix btw
<swarley_>
i think you want collect there or something anywaty
<swarley_>
-t
flagg0204 has joined #ruby
<swarley_>
yeah
<swarley_>
[[1,2],[1,2],[1,2]].collect(&:first)
<swarley_>
=> [1, 1, 1]
<swarley_>
etc
rakl has joined #ruby
<ostapbender>
cespare: Vectors (which is the closest to what I'm using) accept any element anyway, like you can have Vector[1,:a]
Banistergalaxy has joined #ruby
<ostapbender>
swarley_, : yeah. thanks. Was trying to remember how to use that &: when i wrote. Just though best to get it down... :)
jenrzzz has quit [Ping timeout: 252 seconds]
<swarley_>
yup :) i learned that &: a while ago and loved it so much i never forgot xD
hadees has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
<cespare>
swarley_: collect == map
<cespare>
ostapbender: i wasn't suggesting it would solve your type issue, just that it may make more sense for your application
shadoi has quit [Read error: Connection reset by peer]
<cespare>
M.column(0) for example.
<swarley_>
i thought map changed values
<cespare>
swarley_: that's the ! version (collect!, map!)
<swarley_>
then why separate methods?
<cespare>
also, map is 3 letters. Also it's the same word as used in other languages. Therefore, superior :P
<cespare>
because ruby is the new perl, and it seems to follow the "more things are better than fewer things" philosophy
<ostapbender>
cespare: Matrixes don't work for me because once you've made them, your rows are fixed.
justinmcp has joined #ruby
<ostapbender>
cespare: I could use Vector, I know, but it doesn't really have a point right now - all it does is make me type Vector[bla] rather than [bla]...
joofsh has quit [Remote host closed the connection]
Elico1 has quit [Read error: Operation timed out]
elico has quit [Ping timeout: 268 seconds]
freeayu has joined #ruby
thiagopnts has quit [Quit: Leaving]
cableray has quit [Quit: cableray]
tos9 has left #ruby [#ruby]
seoaqua has quit [Ping timeout: 268 seconds]
<cespare>
ostapbender: no reason then, I was just guessing at your use case from the things you've said
kaushik_ has joined #ruby
<ostapbender>
cespare: thanks for the thought :)
chimkan has joined #ruby
<cespare>
anyway, the idiomatic way to do what you want it to not worry about the numbers in your container. Add checks to your methods, or don't. Just make sure the behavior is tested and documented.
anoNxeRo has joined #ruby
ph^ has quit [Remote host closed the connection]
<ostapbender>
cespare: Yeah. thanks.
jonathanwallace has joined #ruby
awarner has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<ostapbender>
cespare: I guess I'll probably do it in instance methods of Array (with lost of checks). Though this doesnt seem a common approach, I can't really see a better way right now...
apok has quit [Ping timeout: 246 seconds]
willcodeforfoo has joined #ruby
<bnagy>
a Module is a better approach
sterNiX has quit [Ping timeout: 276 seconds]
<bnagy>
adding instance methods to Array is awful
<bnagy>
inflexible, hard to maintain, bad and wrong
c0rn_ has quit [Quit: Computer has gone to sleep.]
<ostapbender>
bnagy: I can see this is the generally held view, but I'm still not sure why? After all effectively its the same methods with the same error checking....
mrdodo has joined #ruby
<ostapbender>
bnagy: Can you give me an example of where I'd go wrong with this approach?
<bnagy>
what part of "inflexible, hard to maintain, bad and wrong" does not answer the 'why?' question?
jonathanwallace has quit [Remote host closed the connection]
<bnagy>
[[1,2],[3,4],[5,6]].yvalues.mean
<bnagy>
yvalues - crazy method to have on a general purpose collection
<ostapbender>
bnagy: I think I might need to see a more specific example rather than broad words like 'hard to maintain' etc.
<bnagy>
people will read that code and go 'wtf? Array doesn't have either of those methods...'
philcrissman has quit [Remote host closed the connection]
<bnagy>
anyway do what you want, I'm an idiomatic ruby coder not a cop
<ostapbender>
bnagy: no. thanks for the thought
<ostapbender>
bnagy: Its v. kind of you to respond
<ostapbender>
I'm just seeing things differently I guess. Which is probably my bad.
karakedi has quit [Ping timeout: 246 seconds]
kaushik_ has quit [Ping timeout: 246 seconds]
<bnagy>
'don't fuck with the core classes' is an almost universally held opinion
<bnagy>
and by almost, I mean everyone except apparently you :D
<bnagy>
as for subclassing vs doing it in a module, I'm not really as dogmatic about that
<ostapbender>
bnagy: Yeah. Fucking with the core classes is actually an important point i guess. Like if everyone started doing it, you'd have tonnes of clashing methods I suppose...
<bnagy>
I still vote module, but it's at least debatable
<bnagy>
shut up cat!
ewag has quit [Ping timeout: 252 seconds]
<bnagy>
(cat killed a nine inch rat, now she's maowing for her kitten to come eat the half she doesn't want)
<ostapbender>
bnagy: Thanks for your input. I'm coming around to your point of view more now I think. Might try the subclass approach first...
sonkei has joined #ruby
chimkan has quit [Quit: chimkan]
<bnagy>
the advantage of having small methods isolated in a module.. well one of the advantages .. is that you get to be flexible about what you invoke them on
<bnagy>
like maybe you want to Stats.avg( a.last 5 )
justinmcp has quit [Remote host closed the connection]
hvq has joined #ruby
<bnagy>
or Graph.plot( a.zip(b).map {|x,y| y*=2} )
<bnagy>
or whatever
philcrissman has joined #ruby
seanyo_ has quit [Ping timeout: 260 seconds]
hvq has quit [Client Quit]
voodoofish430 has joined #ruby
n_blownapart has joined #ruby
<ostapbender>
bnagy: Yeah. I guess the issue with the subclass approach is that if you do something like a.last(5) you get back an Array rather than an instance of the subclass.
<ostapbender>
bnagy: the major problem I have with the separate module approach is just that the syntax gets awful very quickly cause it stops being OO and starts being method-based.
abstrusenick has joined #ruby
sdeng has joined #ruby
<ostapbender>
bnagy: Anyway. guess nothings perfect. Thanks alot for your help again
<bnagy>
as for the 'is it OO' approach that's a valid concern - it really depends what you're building
aristidesfl has joined #ruby
<bnagy>
stuff like a Matrix is enough it's own thing to warrant a new class
wchun has joined #ruby
abstrusenick has quit [Client Quit]
n_blownapart has quit [Remote host closed the connection]
thnee has quit [Ping timeout: 272 seconds]
mahmoudimus has joined #ruby
thnee has joined #ruby
andrewhl has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
butblack has joined #ruby
manizzle has joined #ruby
anoNxeRo has quit [Ping timeout: 264 seconds]
18VAA6QCQ is now known as Adran
Adran is now known as 18VAA6QCQ
<ostapbender>
bnagy: Thanks. will work my way around it
Guest21479 has joined #ruby
mahmoudimus has quit [Client Quit]
butblack has left #ruby [#ruby]
<swarley_>
I'm suprised multileveled vectors arent a standard class yet to be honest
18VAA6QCQ is now known as Adran
noahsussman has quit [Remote host closed the connection]
<swarley_>
i don't know how you'd pull it off
Z_Mass has joined #ruby
butblack has joined #ruby
<swarley_>
but, it seems like something used often
sepp2k1 has quit [Remote host closed the connection]
sdeng has left #ruby [#ruby]
<ostapbender>
swarley_: If I understand you properly, I think usually you just use an Array of Vectors. Because the Vector-specific methods make no real sense for a multi-leveled object.
ZachBeta has joined #ruby
jjbohn has joined #ruby
<swarley_>
Well, i mixed up my C++ and my ruby for a second
<bnagy>
hm, two new bitarray gems on github
<bnagy>
apropos stuff that should be there but isn't
<swarley_>
thinking about std::vector
sonkei has quit [Quit: Computer has gone to sleep.]
Yomero has joined #ruby
schwap has quit [Ping timeout: 246 seconds]
Guest21479 has quit [Read error: Connection reset by peer]
<ostapbender>
swarley_: Yeah. Terminology sucks eh? I once created a spreadsheet of the difference between terminology of container objects as used in C, other programming languages and by mathematicians.... I was bored that day, its been suprisingly helpful...
<ostapbender>
* missing a 'but' near the end
<swarley_>
xD
<swarley_>
I'm just now learning physics, so i believe i'll be learning about vectors this week actually
daniel_hinojosa1 has quit [Remote host closed the connection]
snorkdude has quit [Remote host closed the connection]
ZachBeta has quit [Quit: Computer has gone to sleep.]
verto is now known as verto|off
hbpoison has joined #ruby
Guest81709 has joined #ruby
riyonuk has quit [Quit: Leaving.]
hbpoison_ has joined #ruby
chessguy has joined #ruby
h4mz1d has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
qos has joined #ruby
philcrissman has quit [Remote host closed the connection]
h4mz1d has quit [Ping timeout: 246 seconds]
philcrissman has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
emanu has joined #ruby
sdeng has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
butblack has quit [Quit: butblack]
emanu has quit [Client Quit]
ph^ has joined #ruby
fyolnish has quit [Remote host closed the connection]
wargasm has joined #ruby
rjsamson has quit [Remote host closed the connection]
butblack has joined #ruby
daniel_hinojosa has joined #ruby
aristidesfl has quit []
n_blownapart has joined #ruby
ph^ has quit [Ping timeout: 246 seconds]
anoNxeRo has joined #ruby
anoNxeRo has quit [Changing host]
anoNxeRo has joined #ruby
n_blownapart has quit [Remote host closed the connection]
davidcelis has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
Progster has joined #ruby
chessguy has quit [Remote host closed the connection]
butblack has quit [Client Quit]
vitor-br has quit [Quit: Saindo]
ilyam has joined #ruby
banisterfiend has joined #ruby
burgestrand has quit [Quit: Leaving.]
Spooner has quit [Ping timeout: 240 seconds]
macmartine has quit [Quit: Computer has gone to sleep.]
shadoi has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
iamjarvo has joined #ruby
burgestrand has joined #ruby
n_blownapart has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<n_blownapart>
hi . lowly noob question: any reason why cover? returns false with a range as an argument? as in: r = 1..100 ; r.cover?(35..40) #=> false -- thanks
Banistergalaxy has quit [Ping timeout: 245 seconds]
n_blownapart has quit [Remote host closed the connection]
<fowl>
Returns true if obj is between beg and end, i.e beg <= obj <= end (or end exclusive when exclude_end? is true).
banisterfiend has joined #ruby
<fowl>
cover is not meant to take a range
Progster has quit [Ping timeout: 244 seconds]
<swarley_>
you could probably check both upper and lower bounnds
<swarley_>
bounds*
iamjarvo has quit [Ping timeout: 244 seconds]
<swarley_>
and make a monkey patch if needed
<swarley_>
is that the technical name?
<swarley_>
i have no idea
mrdodo has quit [Remote host closed the connection]
luxurymode has quit [Quit: Computer has gone to sleep.]
<n_blownapart>
^^ swarley fowl I have a more pressing question. It seems I pissed off banister about 10 days ago for asking mundane questions.
<swarley_>
you won't piss me off asking questions, shoot
banannagram has quit [Read error: Connection reset by peer]
<ori-l>
hey, i'm writing a standalone script that fits in one file, but having lots of code in the top level seems a bit disorganized. my instinct is to define a main() and call it if if __FILE__ == $0. is that idiomatic?
Takehiro has joined #ruby
<swarley_>
uh
<fowl>
ori-l: dont put it in a method just put all your main code in `if __FILE__ == $0` block
<n_blownapart>
swarley thanks but my problem is I don't like pissing people off. He flew off the handle so I just went New Jersey on him.
ananthakumaran has quit [Quit: Leaving.]
<swarley_>
Oh LOL
<n_blownapart>
swarley_: can't people just ignore inquiries? what do you think fowl ?
<ori-l>
fowl: hrm, ok -- what about a separate function for GetoptLong handling?
<swarley_>
Well, it's not something i like to delve in to, but yes that is an option
<swarley_>
ori-l, you can break up the initial code however you like
beneggett has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
<fowl>
ori-l: i wouldnt put it in a method until it needs to be re-used
<ori-l>
swarley_: i know i *can*, but trying to get a feel for community aesthetics
<swarley_>
if your goal is to avoid crowding the namespace though, just make sure everything you want called, gets called in that black
<swarley_>
Well, generally
<swarley_>
you define an entry point yourself
<swarley_>
and wouldnt need to check for toplevel
justinmcp has joined #ruby
<ori-l>
'entry point' entails packaging it as a gem, right?
<n_blownapart>
swarley_: thanks. the delving comment was for me I assume.
Takehiro has quit [Remote host closed the connection]
<swarley_>
yes
<n_blownapart>
swarley_: cool thanks
<swarley_>
ori-l, if you're using a gem, everything should be in a class or module
<swarley_>
creating a gem*
<fowl>
and your "main" code can go in the main prog/launching part in the bin folder
<swarley_>
if you're making an application, you have a file to start at. And there shouldnt exist any other top level code in other files
<ori-l>
i'm not using a gem at the moment, but maybe i should? this is at ~80 lines at the moment and won't grow much beyond 100
burgestrand has quit [Quit: Leaving.]
<swarley_>
ori-l, not unless it has value to be reused
<swarley_>
but generally, using Class/Module casing is promoted
<swarley_>
what language are you coming from?
<swarley_>
if any at all
<ori-l>
python & javascript primarily
<swarley_>
ah
<swarley_>
well, those both have different forms of scope than ruby imo
tsw-teepan has joined #ruby
<ori-l>
swarley_: yeah, python doesn't have block scope
<ori-l>
neither does JS, for that matter
<swarley_>
but generally, you want to have OO type operations, use a class
<swarley_>
if you have a collection of methods, use a module
<swarley_>
in a module, you can do.. one sec let me make a quick example
moted has quit [Ping timeout: 246 seconds]
beakerman has quit [Remote host closed the connection]
<ori-l>
'if' seems less fancy / cleaner. include works and is cleaner, thanks!
<ori-l>
less fancy, more clean i meant.
gmci has joined #ruby
await has quit [Quit: await]
<swarley_>
ori-l, in the when AST block
Takehiro has joined #ruby
<swarley_>
you can leave the symbols as symbols for instance variable get
ananthakumaran has joined #ruby
<swarley_>
so you dont need k = var.to_s[1..-1]
<swarley_>
and replace k with var in hash[k] = primitive(v)
<ori-l>
are you sure? i find this very confusing. both js and python only have strings as hash keys, so the distinctions between symbols and strings are weird to me
hbpoison has joined #ruby
<swarley_>
yes, you can use any object as a hash key actually
<ori-l>
the serialized json has '@foo' (it's the '@' that i want to avoid)
<swarley_>
notice :hi is always the same, "hi" is not
<swarley_>
use symbols when value matters, use strings when content matters
hbpoison has quit [Ping timeout: 245 seconds]
<ori-l>
makes sense
ilyam_ has joined #ruby
love_color_text has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
pingfloyd has quit [Quit: pingfloyd]
fyolnish has joined #ruby
ilyam has quit [Ping timeout: 246 seconds]
pingfloyd has joined #ruby
banisterfiend has quit [Ping timeout: 260 seconds]
<RubyPanther>
I disagree, don't use symbols "when possible," use symbols for code identifiers that have meaning to the code/programmer and use strings for data values that are input by or displayed to the user
ilyam_ has quit [Ping timeout: 246 seconds]
<heftig>
symbols aren't garbage collected
<swarley_>
i use them whenever i'm aware of constants
<swarley_>
and will be used more than once
wuzzzzaah has quit [Ping timeout: 260 seconds]
fyolnish has quit [Ping timeout: 260 seconds]
<banisterfiend`>
RubyPanther: how did your wedding go
<RubyPanther>
Yeah, if you use symbols for code identifiers you won't ever have a huge number, so it will always be good that they are immediate values and not collected, but if you use them as data you can quickly see, having data outside of GC is awful in practice and principle
gverri has quit [Quit: gverri]
<RubyPanther>
Even if in a narrow case you benchmarked and it was slightly better in some direction, it would still be highly dubious
Z_Mass has quit [Ping timeout: 268 seconds]
wuzzzzaah has joined #ruby
Banistergalaxy has joined #ruby
<swarley_>
but in an app like his with heavy recursion, symbols would be more efficient than strings
ltsstar has quit [Quit: ltsstar]
snuglepuss has joined #ruby
burgestrand has joined #ruby
justsee has quit [Quit: Leaving...]
Tref has joined #ruby
lolmaus has joined #ruby
<swarley_>
i don't want to try to deal with floats in asm right now
tonini has joined #ruby
<banisterfiend`>
swarley_: floats are a whole other thing in asm :P they have their own FPU
<banisterfiend`>
and it's a weird stack based thing
<RubyPanther>
If you're truly looping so tight and doing so little work per loop for that to matter, you should be doing it in a C extension anyways. And they don't get collected, so another requirement, it would have to be a short running program that exits when it is finished or else the lack of GC can't be good even if it sped up the loop. So for example you could never think you were making a performance enhancement if you were using symbols for
<RubyPanther>
data in a library
n_blownapart has quit [Remote host closed the connection]
sagax has quit [Read error: Operation timed out]
<swarley_>
banisterfiend`, mmx has an instruction set for it, i believe
<swarley_>
with xmm registers
<swarley_>
or whatever you want to call them
<banisterfiend`>
swarley_: well that's if you want to do vectorized operations
<banisterfiend`>
swarley_: like process a bunch of shit at the asme time
<burgestrand>
No IDE for Ruby, don’t feel it’s been needed.
<swarley>
^
<burgestrand>
bilalbilal: it’s a programming language, used to write applications. Many people use it for system administration, and others use it for writing websites.
<swarley>
if its not compiled, the most you need is project management
<heftig>
aptana if you really want something heavy
<swarley>
m3pow, i would recommend sublime text or geany
<swarley>
both are free
<m3pow>
i read that sublime is pretty cool
<m3pow>
checking geany now
<swarley>
sublime is wonderful in my opinion
pingfloyd has quit [Ping timeout: 244 seconds]
<heftig>
sublime is not free :|
<swarley>
and its project files are JSON, so not that hard to modify them
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<swarley>
heftig, the only difference is not having a banner saying buying would be nice
<bilalbilal>
burgestrand - thanks for explaining! so you talk about computer programming? unfortunately i dont have much to offer in this topic!
<m3pow>
i see that sublime needs a licence to use it
<swarley>
you dont HAVE to buy it
<swarley>
I use it, and i havnt paid a dime
<swarley>
it just says "Hey maybe you should you know... buy this"
<swarley>
and you click okay and foget about it for a while
<m3pow>
oh
<swarley>
it only happens once in a while when you save
<burgestrand>
bilalbilal: yep, or things related to programming, specifically in ruby. It’s not like a typical chat where we just talk constantly about programming, that would be a bit silly. Most of the time it’s people asking for help in here.
<Paradox>
burgestrand, there is an IDE
<Paradox>
but no need
<Paradox>
rubymine
<burgestrand>
Paradox: there are many.
<Paradox>
but they all stink
<burgestrand>
Yeah.
pingfloyd has joined #ruby
<Paradox>
compared to sublimetext2
<swarley>
scripting languages shouldnt generally need IDEs
<shevy>
it feels as if I can avoid Proc.new and never miss anything that is useful
<hoelzro>
shevy: you mean as opposed to proc { ... }? or at all?
<redbar0n>
shevy: you can use lambda instead, in a lot of cases
<coyo>
redbar0n: also, if you want a problem domain to work on, help me with my Cinch IRC ruby bot :D
<coyo>
you should be able to handle that :D
<shevy>
ok
<shevy>
so I can use Proc.new or lambda or proc {}
<shevy>
but that does not really help me much
<redbar0n>
hehe, well i'm interested in helpoing out with newbie questions via chat
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
<shevy>
every newbie has this question!
<Xeago>
oooh
<Xeago>
so only problems within the newbie domain
<shevy>
:(
<shevy>
ok
<Xeago>
why does my index finge rhurt?
<shevy>
how about this
<redbar0n>
shevy: when do you feel you need to use it? i almost never use it
<Xeago>
when programming in ruby?
<coyo>
delicious newblets
<shevy>
redbar0n, why do we need @@foo variables
<bnagy>
XD
<shevy>
redbar0n, precisely. I just have not found a real use case so far
krawchyk has joined #ruby
<coyo>
@@foo variables are class-scoped variables, arent they?
<Xeago>
they are
<bnagy>
shevy: I use em (Proc.new) for FFI callbacks
<coyo>
yay, it got it right.
<bnagy>
s'about all :/
<banisterfiend>
coyo they're not class scoped
<banisterfiend>
coyo they're class hierarchy scoped
<coyo>
nuuuuuuu!
<Xeago>
...
<banisterfiend>
visible to the whole ancestor chain
<shevy>
coyo no matter the name, why do we need them :)
<Xeago>
what is the difference
<bnagy>
yeah they go up and down and sideways
<bnagy>
which is why they suck
<banisterfiend>
Xeago difference is that 'class scope' is visible just to one specific class
<banisterfiend>
Xeago class hieriarchy scoped (which is what @@var are) are visible to every subclass too
<Xeago>
in ruby everything's visible
<shevy>
I mean, it is easy to see why blocks are useful in ruby... because they really rock and everyone can use them quickly via yield
<banisterfiend>
Xeago no they're not :)
Nathandim has quit [Remote host closed the connection]
<coyo>
shevy: class-scoped or whatever is a matter of object oriented programming, and is used to control encapsulation and prevent overly "intimate" classes from depending on each others' implimentation details.
<shevy>
but @@class vars...
<Xeago>
then what is not visible in ruby?
<coyo>
short answer: it's a cleanliness control
<shevy>
@@class vars lead to better, cleaner code?
<bnagy>
nothing clean about @@cvars
<coyo>
guh, i failed at explaining that.
<coyo>
i know what i'm TRYING to explain, i went over code encapsulation in high school
<banisterfiend>
Xeago that's such a vague question as to be almost meaningless
<m3pow>
any ideas why does not ri work in the terminal ?
jastix has joined #ruby
lessthanphil has joined #ruby
deryl1 is now known as deryl
<banisterfiend>
Xeago but as an example, a local variable in the caller's scope is usually not visible
<bnagy>
redbar0n: take it away!
<Mon_Ouie>
Xeago: You don't say something is visible/invisible; you specify how it is scoped
<Xeago>
usually?
<hoelzro>
m3pow: do you see an error message or anything like that?
xbayrockx has quit []
<m3pow>
yes
<Mon_Ouie>
Lexically, dynamically, depending on self, …
<coyo>
m3pow: what does it say?
<Xeago>
but banisterfiend used visible first Mon_Ouie don't blame usage of visible on me :<
<banisterfiend>
Xeago usually in that you CAN access it if they pass a block and you look into the binding of the block
<coyo>
pastebin, dont paste here.
<m3pow>
it says "nothing known about .upcase"
<Mon_Ouie>
Xeago: He said visible *to* something
<Mon_Ouie>
m3pow: You probably just didn't build the documentation
<Xeago>
blurgh
<Xeago>
purists ;p
<coyo>
lolololol
<m3pow>
and how do i do that
<Mon_Ouie>
Depends on how you installed Ruby
<m3pow>
through terminal
deryl is now known as DoctorWho
<coyo>
m3pow: open a new tab in your browser, type in "gist.github.com"
<coyo>
that's a pastebit
DoctorWho is now known as deryl
<coyo>
copy the error, m3pow, paste in the box, then hit "submit"
<Xeago>
or install haste
<Mon_Ouie>
through terminal is way to vague…
<coyo>
m3pow: then copy the link and paste the link here
<Mon_Ouie>
Using a package, RVM, rbenv + whatever it uses, etc.
<Mon_Ouie>
package manager*
Takehiro has quit [Remote host closed the connection]
xbayrockx has joined #ruby
Shrink has quit [Ping timeout: 252 seconds]
Takehiro has joined #ruby
<coyo>
m3pow: you doing okay, over there? need any help submitting the paste?
<coyo>
m3pow: did you define .upcase (the method)?
<shevy>
admit it!!!
<m3pow>
why define it
<m3pow>
i just want info about it
<m3pow>
and not go to the documentation online
<redbar0n>
shevy: you don't need to use @@foo (a.k.a. class variables), if you don't have a use case for it. The benefit is that by using them you can share variables across instances, and for instance update a counter every time an object of that class gets instantiated (if you wanted to keep track of that)
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
al2o3cr has joined #ruby
<redbar0n>
hm
Takehiro has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
<banisterfiend>
Mon_Ouie what's the doc bug on Kernel#select
amaya_ has quit [Remote host closed the connection]
<banisterfiend>
Mon_Ouie yeah it looks fucked
<banisterfiend>
weird
nateberkopec has joined #ruby
krusty_ar has joined #ruby
nid has quit [Quit: Konversation terminated!]
Jay_Levitt has quit [Ping timeout: 272 seconds]
<bnagy>
banisterfiend: wouldn't you need to have some cascade of stuff that also incremeted the counter on superclasses?
nwest has joined #ruby
<Xeago>
how bad is this english: "Analyzing and modeling complex problems with purpose of illustrating information about or a solution to a complex problem is important to me"?
<banisterfiend>
bnagy assuming wanted it on superclasses/subclasses, i was just thinking of class/immediate instance
s1n4 has left #ruby ["leaving"]
<Xeago>
s/or a/or provide a/
<bnagy>
Xeago: unreadable
noahsussman has joined #ruby
<banisterfiend>
bnagy but it's not that hard, one sec
Jellyg00se has joined #ruby
<lolmaus>
There are many online classes to learn Ruby and RoR. But are there classes/resources to learn such things as deployment, SCM, teamwork and other methodology? Could you please name any
<bnagy>
lolmaus: I'm betting that pretty much every shop does that stuff differently
<Xeago>
have never taken any classes in such things, but there's a lot of stuff I use in practice comes from blogposts
<banisterfiend>
lolmaus learning SCM (i.e git) there's a tonne of tutorials
<bnagy>
lol @ SCM==git
<Xeago>
>> puts "I am back!"
<al2o3cr>
(NilClass) nil, Console: I am back!
<Xeago>
:O
<Xeago>
>> puts System(uptime)
<al2o3cr>
-e:1:in `eval': undefined local variable or method `uptime' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<Xeago>
how'd you execute console commands?
Choclo has joined #ruby
<Xeago>
>> pry
<al2o3cr>
-e:1:in `eval': undefined local variable or method `pry' for main:Object (NameError), from -e:1:in `eval', from -e:1:in `<main>'
<deryl>
troydm: Rails 3 In Action, coupled with The Well Grounded Rubyist, and/or railstutorial.org. But this channel isn't big on lending rails help (this is for non-rails related apps) so hit the other channel
rohit has quit [Ping timeout: 246 seconds]
<bnagy>
Xeago: although you're usually taught to avoid 'I think that' or 'I feel that' because people can tell that's what you think, on account of how YOU wrote it
<fowl>
shevy: those were just buzzwords back in his day just like we have today
<shevy>
yeah but he sounded really much more intelligent in those letters than Bush jr. did in any time of his life!
specialGuest has quit [Ping timeout: 244 seconds]
adamos has joined #ruby
tommyvyo has joined #ruby
dhruvasagar has joined #ruby
maesbn_ has joined #ruby
deryl1 has joined #ruby
troydm has left #ruby ["What is hope? That all of your wishes and all of your dreams come true? (C) Rau Le Creuset"]
<Xeago>
bnagy: I have to describe performance indicators, currently dealing with "A student shows in the SE field to be able of making an adequate analysis and model of a complex problem as assessed by stakeholders."
justinmcp has quit [Remote host closed the connection]
philcrissman has joined #ruby
robotmay has joined #ruby
jclem has joined #ruby
jclem has quit [Client Quit]
uris has quit [Quit: leaving]
SynchronE has joined #ruby
<SynchronE>
hi everyone
dhruvasagar has quit [Ping timeout: 244 seconds]
<SynchronE>
so i'm running macosx ruby 1.8.7 and gem install SystemTimer -v '1.2.3' complains about failing to build native extension
<SynchronE>
what do i do ?
<JonnieCache>
SynchronE: install the apple command line developer tools
WrErase has quit [Remote host closed the connection]
<SynchronE>
the more exact error is mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
johnlcox has joined #ruby
cakehero has quit [Client Quit]
developer has joined #ruby
Overv has quit [Quit: Ik ga weg]
developer has quit [Client Quit]
<JonnieCache>
SynchronE: it might be that youre using the system ruby
<SynchronE>
i am
<SynchronE>
is that bad ?
<SynchronE>
also can I install cmdline tools from command line ?
<JonnieCache>
its not really there for development, its just there so osx can run the odd ruby script if it needs to
<SynchronE>
i don't develop
<JonnieCache>
you should install rbenv+ruby_build and install ruby 1.9.3
mmitchell has joined #ruby
<SynchronE>
sadly i know too little about ruby, but i wanna run github.com/play/play thingy
mmitchell has quit [Remote host closed the connection]
<SynchronE>
i'm reading step by step instruction and, given it requires SystemTimer, i guess it was meant to run under 1.8
<SynchronE>
as system_timer is not needed in 1.9
yshh has joined #ruby
gverri has joined #ruby
<SynchronE>
(or so various stackoverflow questions say)
nucc has quit [Ping timeout: 244 seconds]
nanderoo has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.8]
Criztian has joined #ruby
savage- has joined #ruby
lolmaus has quit []
sepp2k has joined #ruby
dmiller has joined #ruby
<JonnieCache>
that play thing appears to be designed for 1.8 and 1.9
asobrasil has joined #ruby
<JonnieCache>
i presume that system_timer is built into 1.9 either way you can just ignore it
Tref has quit [Quit: Tref]
Guest81709 has joined #ruby
<SynchronE>
well erm... updating systemwide ruby is not in my power
rjsamson has joined #ruby
<SynchronE>
don't have root on this machine
<JonnieCache>
you dont update the system ruby
<JonnieCache>
you just install your own one separely
<hoelzro>
you *really* shouldn't update system ruby on OS X anyway
<JonnieCache>
you dont need root
<hoelzro>
even if you could
<bnagy>
wtf, people use OSX as a multi-user OS??
<bnagy>
hilarity
<SynchronE>
why not
sterNiX has quit [Ping timeout: 255 seconds]
<SynchronE>
or was it a sarcasm...
Jake232 has joined #ruby
<bnagy>
very much not
<bnagy>
but anyway see above, you don't need root
baroquebobcat has joined #ruby
stopbit has joined #ruby
<SynchronE>
i got that, thanks guys
bbttxu has joined #ruby
dhruvasagar has joined #ruby
SynchronE has left #ruby [#ruby]
<shevy>
wtf, people use OSX??
<deryl>
hells yeah
* deryl
snuggles his MBP. hands off you cretin!
joshman_ has joined #ruby
* JonnieCache
is getting a new MBP soon
<JonnieCache>
hopefully this one wont overheat and turn itself off to avoid burning the flat down
zaydana has joined #ruby
<JonnieCache>
im thankful that it does that, but i wish it didnt have to
<JonnieCache>
tbh i should just clean the dust out of it but have you ever tried to disassemble one of those things?
<JonnieCache>
its a plastic one as well. theyre worse
awarner has joined #ruby
<bnagy>
well the new ones you just can't
* Muz
is quite fond of his MBA.
<bnagy>
categorically
<JonnieCache>
bnagy: you can still take them apart though
<JonnieCache>
just not replace anything
<JonnieCache>
yeah im getting a refurb 2011 one with thunderbolt. arguably the best one to get
<bnagy>
especially if you like getting owned by DMA
<fowl>
oh my hillary clinton is looking worse than ever
ltsstar has joined #ruby
<deryl>
i've 16GB of RAM in this model. I've been told that the >= 2012 will have their RAM soldered to the board meaning you'll be limited to the RAM you buy at purchase time.
<JonnieCache>
lol who cares. shes foreign secretary not a fucking playmate
<bnagy>
deryl: yeah the one I just got is maxed at 16G
<m3pow>
dryl maybe they are thinking at RAMdisks
mercwithamouth has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<deryl>
idk
<bnagy>
personally I just run them 2 years and then sell / give em away
<bnagy>
screw upgrading
<JonnieCache>
mines from 2008. its very tired
<JonnieCache>
(not what i use at work)
krawchyk has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
sailias has joined #ruby
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<deryl>
bnagy: i bought this one with the idea of not upgrading for like a year or so after the AC was done (my ACP ends in 2014). Its a quad core i7 2.3GHz. Other than upgrading the primary drive I'm quite happy with the specs once I put in the 16GB of RAM.
krawchyk_ has joined #ruby
<JonnieCache>
deryl: is that one of the new superfancy ones? retina?
<deryl>
I bought it off my military disability retro check
<deryl>
no, the model just before
<deryl>
i got all the bells and whistles. (like the anti-glare, hi res screen etc)
matrixise has quit [Quit: leaving]
kvirani has joined #ruby
<JonnieCache>
think thats the one im supposed to be getting
Goles has joined #ruby
<JonnieCache>
hmmmmmmm
<bnagy>
I got the retina, it ok
<bnagy>
but you only really get 1440x900, it's just super fricking crisp
<bnagy>
but no gigantic screen realestate
<JonnieCache>
cant you set that up though?
<bnagy>
yeah you can
<bnagy>
but it's unreadable :)
dmiller has quit [Ping timeout: 244 seconds]
<deryl>
yeah i really don't see a need (for me) for the retina display. I'm at the 1600x1200 on this and its crisp enough for me.
baroquebobcat has quit [Quit: baroquebobcat]
ltsstar has quit [Quit: ltsstar]
Goles has quit [Client Quit]
<JonnieCache>
i reckon it probably depends on how good your eyes are ;)
<bnagy>
I mostly use a couple of external displays
<bnagy>
if I travel I take the air
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<bnagy>
if I wanted to have one box I would have waited for the mbpr 13"
Goles has joined #ruby
<deryl>
JonnieCache: hehe I am near sighted so I'm good.
johnduhart2 has quit [Ping timeout: 276 seconds]
cakehero has joined #ruby
<deryl>
bnagy: I've a 22" LCD HD monitor that I use with this occasionally. The 15" screen on this is sufficient, and the only game I play (Portal 2) runs great and looks great on both the external and internal.
<deryl>
my only gripe is i have to share this with my wife-to-be (for now)
mbk has quit [Ping timeout: 244 seconds]
<bnagy>
heh only games I play are nethack or old DOS games :)
<deryl>
hehe i know more than a few addicted to old dos games :)
emmanuelux has quit [Quit: emmanuelux]
<deryl>
i just don't have the time like i used to for playing games. time is going to even less now that i'm going back to college.
chimay has quit [Quit: WeeChat 0.3.9-rc1]
johnduhart has joined #ruby
yasushi has quit [Remote host closed the connection]
emmanuelux has joined #ruby
enroxorz-work has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
chrishunt has quit [Read error: Connection reset by peer]
Agis__ has joined #ruby
DrShoggoth has joined #ruby
sterNiX has joined #ruby
clj_newb has joined #ruby
chrishunt has joined #ruby
CarlB_the_great has joined #ruby
internet_user has joined #ruby
cardoni has joined #ruby
arietis has joined #ruby
tagrudev has quit [Quit: """ """]
ij has joined #ruby
cardoni has quit [Client Quit]
byronb_ has quit [Ping timeout: 244 seconds]
tk__ has joined #ruby
josh^ has quit [Remote host closed the connection]
chrisja has joined #ruby
bbttxu has quit [Quit: bbttxu]
Goles has quit [Quit: Computer has gone to sleep.]
Goles has joined #ruby
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
noahsussman has quit [Remote host closed the connection]
br4ndon has quit [Ping timeout: 246 seconds]
br4ndon has joined #ruby
iamjarvo has joined #ruby
yeggeps_ has quit [Read error: Connection reset by peer]
uris has joined #ruby
LennyLinux has quit [Remote host closed the connection]
yeggeps has joined #ruby
relix has joined #ruby
hbpoison has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
Pentacles has joined #ruby
<relix>
hey guys, not sure if this is the right channel - I just installed rbenv on a fresh mac os x 10.8.1 installation, everything went well
<relix>
but using rbenv global, it's not changing the ruby used
<relix>
I tried restarting terminal and what not
ltsstar has joined #ruby
ltsstar has quit [Client Quit]
<JonnieCache>
youve definitely put the correct statement in your bash profile?
ltsstar has joined #ruby
bbttxu has joined #ruby
elux has joined #ruby
pskosinski has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
pskosinski has joined #ruby
apok has joined #ruby
<relix>
I didn't, however I was running rbenv init before any other commands
<relix>
although it doesn't seem to work that way, trying it now
adeponte has joined #ruby
emanu has joined #ruby
<relix>
yeah that works
<relix>
I'm hesitant of putting anything in my profile since rvm messed up before
<JonnieCache>
rvm is crazy
<relix>
seriously, I don't understand people using it in production
<relix>
but I guess rbenv has a better reputation anyway
<relix>
I can allow it
<JonnieCache>
rbenv has been pretty much "set and forget" for me
<JonnieCache>
does its job and never bothers me
<relix>
good
<bnagy>
yeah running one init is quite different to rvm horror and where the fuck did cd go
<relix>
hope I'll have a similar experience here!
juarlex has joined #ruby
<JonnieCache>
the only thing is you have to remember to call rbenv rehash
<JonnieCache>
when you install a gem with new binary commands
<bnagy>
not to mention piping curl into bash o_0
<JonnieCache>
thats a tradeoff to avoid rvms crazyness
<JonnieCache>
bnagy: how is that any different to typing `gem install foo`
<relix>
it's a gem that supposedly runs rehash after a gem installation
<JonnieCache>
bnagy: security-wise though. assuming the gem isnt signed etc
<bnagy>
as to whether it's materially less secure is an open question
<JonnieCache>
relix: i think i tried that and it didnt work
mohits has quit [Remote host closed the connection]
<bnagy>
but just the idea that it's the _recommended_ way to install
<bnagy>
cat some website into bash
<relix>
JonnieCache: ah ok
<bnagy>
jesus
<JonnieCache>
bnagy: how is it any different from running any other code you get off the net though?
beneggett has joined #ruby
<bnagy>
is it even https? (rvm site?)
<JonnieCache>
obviously reading it first would be a good idea but people dont decompile the latest build of, say, vlc when it updates itself
<JonnieCache>
people dont read every patch to webkit, they just let chrome update itself
<bnagy>
there's always some trust applied, sure
clop has quit [Quit: Leaving]
<JonnieCache>
obviously thats a bad example because chrome probably does all sorts of signing but you get the idea
SCommette has joined #ruby
<bnagy>
but saying A exposes you to risk as does B therefore they are the same is sophistry
sspiff has quit [Remote host closed the connection]
roolo has quit [Quit: See ya]
clop has joined #ruby
<JonnieCache>
hmmmmmm thats as maybe but you still havent actually pointed out any difference
dhruvasagar has quit [Ping timeout: 260 seconds]
yasushi has joined #ruby
ndrei has joined #ruby
kaushik_ has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
<bnagy>
ok
<ndrei>
exit
<ndrei>
ups
ndrei has quit [Client Quit]
Xeago has joined #ruby
<bnagy>
I get enough pointless hypothetical arguments about security in my day job :)
<JonnieCache>
lol as i remember you brought it up
zaydana has quit [Quit: zaydana]
<Xeago>
bnagy, I took your advice earlier today
niklasb has quit [Ping timeout: 264 seconds]
<Xeago>
I had to describe "A student shows in the SE field to be able of making an adequate analysis and model of a complex problem as assessed by stakeholders."
<Xeago>
I described it as "Part of the end-result is an architecture for elastic search nodes. These will be described, analyzed and tested."
mmitchell has joined #ruby
ndrei has joined #ruby
<bnagy>
uh... the second passage is much better
<bnagy>
btu I don't see how they're related :)
<Xeago>
the second is mine
maxmmurphy has joined #ruby
ndrei has left #ruby [#ruby]
<Xeago>
the second describes the first, as in, it contains project specific details
ndrei has joined #ruby
ltsstar has quit [Ping timeout: 252 seconds]
<bnagy>
oic
luxurymode has joined #ruby
<bnagy>
yes. good. go on, my son.
emmanuelux has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 260 seconds]
<Xeago>
it is much better than what I had this afternoon, right?
<Xeago>
(yes I wish to receive back&shoulder pets)
ananthakumaran has joined #ruby
Choclo has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
jjbohn has joined #ruby
<bnagy>
yes, it's masterful
mmitchell has joined #ruby
CodeFriar has quit [Quit: Leaving...]
<Xeago>
<3
<bnagy>
actually, I think you have learned all we have to teach you
<Xeago>
doubt
pricees has joined #ruby
Faris has joined #ruby
br4ndon has quit [Ping timeout: 246 seconds]
Faris has left #ruby [#ruby]
sterNiX has quit [Quit: Lagging Off]
a_a_g1 has joined #ruby
jimeh2 has joined #ruby
jjbohn has quit [Quit: Leaving...]
Spooner has joined #ruby
specialGuest1 has quit [Ping timeout: 246 seconds]
strict9 has joined #ruby
a_a_g has quit [Ping timeout: 246 seconds]
dmiller has joined #ruby
emmanuelux has joined #ruby
<relix>
argh
<relix>
bundler is not cooperating with rbenv
<relix>
keep getting Gem::InstallError: factory_girl requires Ruby version >= 1.9.2.
wmoxam_ has joined #ruby
<strict9>
Trying to do my first Ajax call here. I have a partial with a variable that I'd like to upon when clicked. My link_to works, it calls the method in the controller. In that method I update the variable. But I can't figure out the last step of getting the page to show that new variable contents?
Pentacles is now known as Squeee
jjbohn has joined #ruby
<Spooner>
strict9 : You might get more/better help in #rails or #rubyonrails
ndrei has quit [Quit: leaving]
chimkan_ has joined #ruby
<strict9>
Ah, I was wondering about that. Thank you.
resure has joined #ruby
<relix>
never mind, works now
<relix>
had to restart my terminal
<relix>
*sigh* now the mysql gem is throwing up, luckily I wrote down in my wiki what to do about that
havenn has quit [Read error: Connection reset by peer]
resure has joined #ruby
gverri has quit [Ping timeout: 272 seconds]
gverri_ is now known as gverri
specialGuest1 has quit [Ping timeout: 246 seconds]
adeponte has joined #ruby
demian`_ has quit [Quit: demian`_]
Takehiro has quit [Remote host closed the connection]
horofox has joined #ruby
_md has joined #ruby
jgrevich has joined #ruby
luckyruby has quit [Remote host closed the connection]
ndrei has quit [Quit: leaving]
robbyoconnor has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
nat2610 has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<nat2610>
hey I'm doing a =~ with a bunch of () inside and then I'd like to take all those matching patterns and feed them in the same order to a method just after, is there a way to "say" $1,$2,$3... ? like $@ ?
macmartine has quit [Quit: Computer has gone to sleep.]
rgrau has quit [Read error: Connection reset by peer]
qwerxy has quit [Quit: offski]
ndrei has quit [Client Quit]
<workmad3>
nat2610: no... but if you do a = regex.match(string) then you get a MatchData object back which has a captures method ;)
ncr100 has joined #ruby
Spooner has quit [Ping timeout: 268 seconds]
adamkittelson has joined #ruby
himsin has joined #ruby
c0rn_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
qwerxy has joined #ruby
k0m has quit [Quit: Computer has gone to sleep.]
bricker88 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
joofsh has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
thatRD has joined #ruby
LennyLinux has quit [Remote host closed the connection]
<nat2610>
workmad3, thanks ! \
<nat2610>
awsome
eykosioux has quit [Quit: eykosioux]
luxurymode has quit [Quit: Computer has gone to sleep.]
twinturbo has quit [Quit: twinturbo]
rakl has quit [Quit: sleeping]
eldar has joined #ruby
a_a_g has joined #ruby
phinfonet has joined #ruby
eldariof has quit [Ping timeout: 252 seconds]
<phinfonet>
hi
gverri has quit [Quit: gverri]
samflores has joined #ruby
<habib>
does anyone know can i install gem with RVM?
<samflores>
habib, "gem install", i guess
Jellyg00se has joined #ruby
Russell^^ has joined #ruby
ndrei has joined #ruby
_md has quit [Quit: Leaving...]
uris has quit [Ping timeout: 246 seconds]
ndrei has quit [Client Quit]
haggen has quit [Quit: haggen]
ndrei has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
ndrei has quit [Client Quit]
ndrei has joined #ruby
faen is now known as alias
ramblex has quit [Ping timeout: 246 seconds]
<phinfonet>
how i can make a .exe file in mountain lion?
dmiller has quit [Remote host closed the connection]
<phinfonet>
i've a pure ruby app
ndrei has quit [Client Quit]
br4ndon has joined #ruby
haggen has joined #ruby
ndrei has joined #ruby
und3f has quit [Quit: Leaving.]
<wmoxam_>
phinfonet: warbler
apok has quit [Remote host closed the connection]
<phinfonet>
wmoxam_ i need make changes?
apok has joined #ruby
failshell has joined #ruby
itnomad has joined #ruby
<failshell>
hello. how can i get the list of users on a unix system? short of doing something like `getent passwd`?\
<wmoxam_>
maybe?
und3f has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
Ayey has joined #ruby
iamjarvo has joined #ruby
nga4 has joined #ruby
<lectrick>
failshell: I just typed "users" in my os x shell and got the users.
sonkei has quit [Quit: Computer has gone to sleep.]
Faris has joined #ruby
Faris has left #ruby [#ruby]
<graft>
lectrick: that just gives logged in users
<failshell>
ya
<lectrick>
poop.
<failshell>
and that would require `users`
<graft>
failshell: what's wrong with just doing getent passwd?
verto|off is now known as verto
<failshell>
i always prefer code to commands
<failshell>
but it seems ill use that for now, faster :)
<graft>
failshell: what are you writing in, then?
<Hanmac>
and before someone try ... `users` does NOT work with the bot :D
<failshell>
graft: also, getent passwd, gives one string which needs to be split
<failshell>
instead of say, getting an object
<failshell>
from a class/method
<graft>
failshell: if you're working in bash, there's no objects anyway
<failshell>
no its ruby
<lectrick>
on os x, this works, but you get a bunch of non-person users: dscl . list /Users
<failshell>
i wouldnt be asking a bash question in #ruby ;p
<lectrick>
failshell: ^
<graft>
well, there's probably some ruby module that gives you an object, but i would bet it does it by parsing /etc/passwd anyway
<graft>
oh... forgot what channel i'm in, heh
scb has joined #ruby
<graft>
but, /etc/passwd is pretty well-formed, should be pretty easy to parse it into a bunch of hash objects
<failshell>
that requires more code than `getent passwd | cut -f1 -d ':'` though hehe
savage- has quit [Remote host closed the connection]
<graft>
you're the one with an object fetish...
botspot_87 has quit [Ping timeout: 240 seconds]
<Ayey>
Would ruby be a okay language to learn along side Java?
Choclo has joined #ruby
takamichi has quit []
mbk has joined #ruby
lessthanphil has joined #ruby
jjbohn|afk has quit [Quit: Leaving...]
<davidcelis>
lol java
loves_co_ has quit [Remote host closed the connection]
mrdodo_ has joined #ruby
<fowl>
Ayey: we dont take kindly to java round these parts
* Spitfire
makes everyone some java juice
<phinfonet>
wmoxam_ i read warble doc, but is jruby only
<phinfonet>
but i don't know nothing about java
rjsamson has quit [Remote host closed the connection]
ltsstar has quit [Quit: ltsstar]
cakehero has joined #ruby
ltsstar has joined #ruby
<wmoxam_>
phinfonet: ok
<phinfonet>
you know how build an .exe only with ruby?
<graft>
failshell - users = Hash[File.open("/etc/passwd").read.split(/\n/).map{ |a| h = Hash[[:login,:password,:uid,:gid,:name,:homedir,:shell].zip(a.split(/:/))]}.map{|h| [ h[:login], h ]}]
<fowl>
phinfonet: google up "ocra" it lets you bundle the ruby interp into an exe
<Hanmac>
graft your variant leaves the file-ptr open ... that is an no-go
haggen has quit [Quit: haggen]
robotmay has quit [Remote host closed the connection]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
havenn has joined #ruby
<phinfonet>
fowl: thanls
<Hanmac>
phinfonet but i thought ocra only works for windows ... :(
<phinfonet>
i only have mac
jlogsdon has joined #ruby
flagg0204 has joined #ruby
br4ndon has joined #ruby
<Hanmac>
thats why i made a sad face
zommi has joined #ruby
botspot_87 has joined #ruby
timonv has quit [Remote host closed the connection]
robotmay has joined #ruby
a_a_g has quit [Ping timeout: 264 seconds]
lessthanphil has quit [Quit: lessthanphil]
<phinfonet>
i made this app with macruby
Neurotiquette has joined #ruby
timonv has joined #ruby
<phinfonet>
and works perfectly
<phinfonet>
the pure ruby too
dekroning has joined #ruby
<havenn>
Hanmac: I wrote a ruby script last week that creates a .app executable for non-gui scripts (haven't made it a gem yet): https://gist.github.com/3645626
<phinfonet>
but with trashwindows
Elico1 has joined #ruby
br4ndon has quit [Client Quit]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
phinfonet has quit [Read error: Connection reset by peer]
phinfonet has joined #ruby
luckyruby has joined #ruby
haggen has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
machty has joined #ruby
<phinfonet>
havenn: only made for osx?
<havenn>
phinfonet: Yeah, it creates a barebones .app, I did a few for fun that include gems (Sinatra even works >.>).
ndrei has quit [Client Quit]
asklov has joined #ruby
<havenn>
Hard to get Sinatra to install on default Ruby though, 1.8 with sudo ftl.
ndrei has joined #ruby
<havenn>
Install via .app**
qwerxy has quit [Quit: offski]
<phinfonet>
hmm
banisterfiend has joined #ruby
<phinfonet>
i will made for windows soon
ilyam has joined #ruby
<phinfonet>
but don't have a windows in my mac yet
voodoofish430 has joined #ruby
c0rn_ has quit []
daniel_hinojosa has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Ping timeout: 248 seconds]
moted has quit [Ping timeout: 240 seconds]
<phinfonet>
has ruby frameworks multiplatform?
<phinfonet>
(that run on windows?)
jonathanwallace has quit [Remote host closed the connection]
fermion has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
maletor has quit [Ping timeout: 246 seconds]
yxhuvud has joined #ruby
<Mon_Ouie>
Sinatra and Rails are portable for starters
Faris1 has joined #ruby
moted has joined #ruby
mmitchell has quit [Ping timeout: 255 seconds]
bbttxu has joined #ruby
maletor has joined #ruby
macmartine has joined #ruby
fyolnish has joined #ruby
mmitchell has joined #ruby
alias is now known as piefke
mbk has quit [Ping timeout: 240 seconds]
mbk has joined #ruby
manizzle has quit [Ping timeout: 246 seconds]
moshee has quit []
fyolnish has quit [Ping timeout: 240 seconds]
jrist is now known as jrist-afk
joofsh has quit [Ping timeout: 245 seconds]
br4ndon has joined #ruby
botspot_87 has quit [Quit: Leaving]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Chryson has joined #ruby
AtoxIO has joined #ruby
scb has quit [Ping timeout: 248 seconds]
Beoran has joined #ruby
joelsotherbeard has joined #ruby
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
hbpoison has joined #ruby
marcoshack has joined #ruby
chimkan__ has quit [Quit: chimkan__]
sdwrage has joined #ruby
<failshell>
Etc.passwd
<failshell>
Etc.group
jjbohn has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
br4ndon has quit [Ping timeout: 264 seconds]
sdwrage has quit [Client Quit]
mbk has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
joelsotherbeard has left #ruby [#ruby]
br4ndon has joined #ruby
mbk has joined #ruby
h4mz1d has joined #ruby
specialGuest1 has joined #ruby
arturaz has quit [Ping timeout: 244 seconds]
pdelgallego has quit [Quit: pdelgallego]
failshell has quit [Quit: Lost terminal]
joofsh has joined #ruby
LennyLinux has joined #ruby
metrix has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
Juul has joined #ruby
alvaro_o has joined #ruby
Eiam has joined #ruby
havenn has quit [Remote host closed the connection]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
Elico1 has quit [Quit: Elico1]
duard has quit [Ping timeout: 246 seconds]
elico has quit [Quit: elico]
elico has joined #ruby
cascalheira has quit [Quit: Leaving...]
PapaSierra has joined #ruby
PapaSierra has left #ruby [#ruby]
PragCypher has joined #ruby
spanner has quit [Read error: Operation timed out]
Chryson has quit [Quit: Leaving]
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
scb has joined #ruby
jjbohn is now known as jjbohn|afk
CodeFriar has quit [Quit: Leaving...]
phinfonet_ has joined #ruby
phinfonet has quit [Ping timeout: 255 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
billy_ran_away has joined #ruby
arkiver has joined #ruby
<billy_ran_away>
Anyone know why this kills my irb session? [1,2,3].to_enum.next
<billy_ran_away>
I really want to do (a ||= [1,2,3].to_enum).next
jkary has quit [Quit: Leaving.]
<shevy>
why this kills your irb
<shevy>
works in my irb
<billy_ran_away>
shevy: I'm on 1.9.2-p290
<billy_ran_away>
It does work on 1.9.3...
<billy_ran_away>
Can you think of a way to do something similar on 1.9.2?
<Mon_Ouie>
[1, 2, 3].first
<Hanmac>
hm it does work on my 1.8 and 1.9
<Mon_Ouie>
(Without context, it's not clear what you're trying to do)
<billy_ran_away>
Mon_Ouie: I'm trying to inline rotate though an array variables.
jpreyer has joined #ruby
jso has quit []
<Mon_Ouie>
rotate? Like Array#cycle?
* Hanmac
now rotates around
<billy_ran_away>
Mon_Quie, [1,2,3].cycle.next dies too
fantazo has quit [Remote host closed the connection]
<shevy>
hehe
<Mon_Ouie>
Only in IRB, or also in actual code?
<Hanmac>
billy_ran_away i think your ruby1.9.2 is broken :/
<billy_ran_away>
Mon_Ouie: Both...
jpreyer has left #ruby [#ruby]
<billy_ran_away>
Hanmac: What version of 1.9.2 does it work for you?
<Mon_Ouie>
The best way would be to not use a version that contains a bug that has been fixed since then
Tearan has joined #ruby
<Hanmac>
billy_ran_away ... use 1.9.3 ... 1.9.2 is dead allready
savage- has joined #ruby
<billy_ran_away>
I'm on Rails 2.3
duard has quit [Ping timeout: 246 seconds]
<Hanmac>
yeah thats a problem too
<billy_ran_away>
Upgrade to Rails 3.2 Rails 2.3 is dead already… I know
<fowl>
rails died, we're on snails now
<Mon_Ouie>
Does Ruby 1.9.3 even break any compatibility with 1.9.2?
<Mon_Ouie>
AFAIK it doesn't
<billy_ran_away>
Yea it may not...
<Hanmac>
fowl no, we use pigeons :P
Asher has joined #ruby
Tearan has quit [Client Quit]
samflores is now known as samflores|away
sailias has quit [Quit: Leaving.]
Tearan has joined #ruby
<billy_ran_away>
compiling 1.9.2-p318… hopefully that one works.
elijah has joined #ruby
<Hanmac>
NO! we said that you should use an 1.9.3 ruby!
<fowl>
billy_ran_away: you should run away
luckyruby has quit [Remote host closed the connection]
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
resure has quit [Remote host closed the connection]
<elijah>
If I am on Ubuntu running 1.8'ish what is the version I should upgrade to that is stable?
<elijah>
Also rubygems
adeponte has quit [Remote host closed the connection]
<billy_ran_away>
I should do lots of things…
uris has joined #ruby
eldariof has joined #ruby
* billy_ran_away
sigh
eldar has quit [Ping timeout: 246 seconds]
manolo has quit [Remote host closed the connection]
mucker has quit [Remote host closed the connection]
<Hanmac>
elijah whats your ubuntu version? do you have a "ruby1.9.1-full" package?
<Hanmac>
that was not my question! "apt-get install ruby1.9.1-full"
<elijah>
Hanmac: I am having issues with rubygems finding a gem and am hoping it may resolve it I upgrade
<elijah>
k, let me check
savage- has quit [Ping timeout: 246 seconds]
<elijah>
yes, I have it
<elijah>
Is that a good one?
jeff_sebring has joined #ruby
<elijah>
Keep in mind I am just using Ruby for Sass right now
<elijah>
Not developing apps
<Hanmac>
ya, "update-alternatives --config ruby" and "update-alternatives --config gem"
<elijah>
Or should I use the ruby version manager?
<blazes816>
is there a %w like array syntax that uses new lines instead of spaces?
<fowl>
blazes816: you can use newlines in it
<Hanmac>
elijah you dont need to
<elijah>
Hanmac: the update-alternatives command looks slick
<elijah>
Hanmac: I never knew...
seich- is now known as seich
<elijah>
update-alternatives --config ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<Hanmac>
its an debian command
<elijah>
Hanmac: you da man!
<blazes816>
fowl: I mean separate elements on new line only. to allow strings with spaces in them
<elijah>
Hanmac: hmm, would I need to reinstall compass? says could not find compass now
<fowl>
blazes816: that one is called <<heredoc.split"\n"
hbpoison has quit [Ping timeout: 240 seconds]
<blazes816>
i guess that'll work too. thanks
<elijah>
gem list returns nothing
beneggett has joined #ruby
jso has joined #ruby
beneggett has quit [Client Quit]
ninegrid has quit [Ping timeout: 244 seconds]
statarb3 has quit [Read error: Operation timed out]
Faris1 has quit [Ping timeout: 268 seconds]
stopbit has quit [Read error: Connection reset by peer]
jjbohn|afk is now known as jjbohn
stopbit has joined #ruby
chimkan has joined #ruby
chimkan has quit [Remote host closed the connection]
mark_locklear has joined #ruby
ltsstar has quit [Quit: ltsstar]
adeponte has joined #ruby
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
Ayey has quit [Quit: Leaving]
classix has quit [Quit: leaving]
goraxe has joined #ruby
classix has joined #ruby
joofsh has quit [Ping timeout: 245 seconds]
chimkan_ has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
Takehiro has quit [Remote host closed the connection]
jimeh2 has joined #ruby
Choclo has quit [Quit: Leaving.]
dangerousdave has joined #ruby
Choclo has joined #ruby
jeff_sebring has quit [Quit: Leaving]
Markvilla has joined #ruby
<graft>
elijah: i'd get rid of ubuntu ruby entirely and install via rvm (and install rvm with curl, don't use the ubuntu rvm, that's messed up too)
Guest81709 has quit [Quit: Guest81709]
<graft>
elijah: you will have to install gems for whatever new version of ruby you are using, 1.8 and 1.9 don't use the same gem list
<elijah>
graft: thanks, i have it up and running now and am reinstalling gems, but if I have more trouble I will go with rvm, thanks for telling my the best way to go about it!
<elijah>
I will mess with that when I have more time, right now I have to get this project done
<elijah>
argh, same issue with 1.9
ninegrid has joined #ruby
<graft>
elijah: you can be up and running with rvm in about 30 seconds, it is very no-hassle
<Hanmac>
elijah ... what does "gem env" output?
robotmay has quit [Remote host closed the connection]
<elijah>
oh wait, i had to install the sassy-buttons gem first, but no I get "sudo compass install -r sassy-buttons -f sassy-buttons Error: ambiguous option: -f"
<elijah>
*now
bluenemo has quit [Remote host closed the connection]
billy_ran_away has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
luckyruby has joined #ruby
demian`_ has quit [Quit: demian`_]
Jellyg00se has joined #ruby
mmitchell has quit [Remote host closed the connection]
Appineer has joined #ruby
<elijah>
got it
thone has joined #ruby
<elijah>
the compass help file said the format was different than what was specified on github, appears to have worked now
mahmoudi_ has joined #ruby
adeponte has joined #ruby
mahmoudimus has quit [Ping timeout: 252 seconds]
snearch has quit [Quit: Verlassend]
graft has quit [Quit: leaving]
thone_ has quit [Ping timeout: 260 seconds]
Faris has quit [Ping timeout: 252 seconds]
manizzle has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jastix has quit [Quit: Leaving]
dekroning has quit [Ping timeout: 260 seconds]
phinfonet_ has quit [Ping timeout: 245 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
Faris has joined #ruby
Choclo has quit [Quit: Leaving.]
maggit has joined #ruby
elaptics`away is now known as elaptics
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
Appineer has quit [Remote host closed the connection]
cakehero has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
phinfonet has joined #ruby
Jellyg00se has quit [Remote host closed the connection]
fermion has joined #ruby
wallerdev has quit [Quit: wallerdev]
br4ndon has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
maletor has joined #ruby
burgestrand has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
rdg has joined #ruby
maggit has quit [Quit: Leaving]
specialGuest1 has quit [Ping timeout: 246 seconds]
Faris1 has joined #ruby
el_diablo has joined #ruby
statarb3 has quit [Ping timeout: 246 seconds]
adamkittelson has quit [Remote host closed the connection]
gaahrdner has joined #ruby
demian`_ has joined #ruby
stim371 has joined #ruby
zommi has joined #ruby
sonkei has joined #ruby
haggen has quit [Quit: haggen]
beneggett has joined #ruby
samflores|away has quit [Read error: Connection reset by peer]
Faris has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
AlbireoX`Laptop has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
tvw has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
zommi has quit [Quit: Leaving.]
joofsh has quit [Ping timeout: 245 seconds]
asteve has quit []
tvw has joined #ruby
robotmay has quit [Remote host closed the connection]
JasonF has joined #ruby
haggen has quit [Quit: haggen]
mark_locklear has quit [Remote host closed the connection]
happosade has quit [Ping timeout: 246 seconds]
chessguy has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
happosade has joined #ruby
chessguy has joined #ruby
<JasonF>
I'm trying to figure out how to combine expressions inside a block to return one true or one false. I've kinda mocked up here what I'd like to do, but I don't know the correct syntax to do
<lectrick>
Sort of a math or bit-math question: http://hastebin.com/liqumiqoco.py Can't that be done with a simple &(some_magic_number) ?
ilyam has joined #ruby
Synthead has quit [Quit: p33 ba115]
michaelmartinez has left #ruby [#ruby]
Synthead has joined #ruby
mattp_ has joined #ruby
c0rn_ has joined #ruby
ephemerian has joined #ruby
jimeh2 has quit [Ping timeout: 240 seconds]
await has joined #ruby
sailias has quit [Quit: Leaving.]
carrythezero has quit [Ping timeout: 244 seconds]
fantazo has joined #ruby
jrist is now known as jrist-afk
<Hanmac>
lectrick like that?
<Hanmac>
>> "%04b" % (0b1111 & 0b0110)
<al2o3cr>
(String) "0110"
<fowl>
>> "boobs".each_byte.reduce('') do |r, c| r << "%b"%b end
<al2o3cr>
-e:1:in `eval': undefined local variable or method `b' for main:Object (NameError), from (eval):1:in `each_byte', from (eval):1:in `each', from (eval):1:in `reduce', from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
<fowl>
>> "boobs".each_byte.reduce('') do |r, b| r << "%b"%b end
<coyo>
shevy: within ruby, what do you think is a good specialization to aim for?
<shevy>
coyo I think to make really great projects involves a lot of work, attention to details, making the documentation really helpful for as many people as possible
BSaboia__ has joined #ruby
<shevy>
coyo web stuff aside from rails
bikcmp has joined #ruby
<shevy>
coyo and projects that have a big scope in general... like pick any major perl project, and then look if there is a ruby equivalent for it. and if not -> good project to do in ruby
<shevy>
like webmin
<bikcmp>
is anyone familar with ruby on rails? i'd like a way to restrict what a user can do with a scaffold
<coyo>
web stuff aside from rails? such as sinatra?
<coyo>
bikcmp: #rubyonrails
savage- has quit [Read error: Connection reset by peer]
<bikcmp>
coyo: oh, i was trying #rails
<shevy>
coyo yes, as an example
<shevy>
rails became too big for the ruby ecosystem as a whole
<coyo>
shevy: torquebox is really awesome, btw
bananagram has joined #ruby
<coyo>
shevy: i kindof want to specialize in p2p networking in ruby, but i suspect there isnt any money in it right now.
kvirani has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 272 seconds]
BSaboia has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
savage- has joined #ruby
chimkan___ has joined #ruby
chimkan___ has quit [Remote host closed the connection]
chimkan___ has joined #ruby
Averna has joined #ruby
pk1001100011 has joined #ruby
fixl has quit [Ping timeout: 272 seconds]
banseljaj is now known as imami|afk
frogprince_mac has quit [Quit: Leaving...]
c0rn_ has quit [Ping timeout: 240 seconds]
und3f has quit [Quit: Leaving.]
Tearan has joined #ruby
pskosinski has quit [Ping timeout: 260 seconds]
chimkan_ has quit [Ping timeout: 260 seconds]
andrewhl has quit [Remote host closed the connection]
c0rn_ has joined #ruby
GenghisKen has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 260 seconds]
Foxandxss has joined #ruby
johnlcox has quit [Ping timeout: 252 seconds]
rullie has joined #ruby
<rullie>
can you download a gem and all its dependencies without installing, then cut your internet and install in offline mode?
Agis__ has joined #ruby
<shevy>
rullie if you have the .gem file or files, you can install them offline
tommyvyo_ has joined #ruby
CarlB_the_great has quit [Remote host closed the connection]
<shevy>
every installed .gem is also kept at $RUBY_SITE_DIR/lib/*gems*/cache/ subdirectory
<rullie>
shevy: is there a gem command to just dl them?
<shevy>
i.e. /usr/lib64/ruby/gems/1.9.1/cache/
samuelj has quit [Quit: Leaving]
<cmasseraf>
Has anyone used (or is there any channel for) the rhodes framework for mobile dev?
seanstickle has joined #ruby
<shevy>
look at "gem help" rullie then "gem help commands"
bier has quit [Ping timeout: 260 seconds]
<rullie>
shevy: thanks!
johnlcox has joined #ruby
mercwithamouth has joined #ruby
<coyo>
cmasseraf: i wish.
<coyo>
rhodes <3
peregrine81 has quit [Quit: Computer sleeping.]
dpk has joined #ruby
<cmasseraf>
:/ coyo, I'm in the process of choosing the framework used @ the company I work? and comparsion tables are kind of misleading, so I wanted some opinions from people who used it
<bikcmp>
cmasseraf: what kind of charts are you looking at
philcrissman has quit [Remote host closed the connection]
<coyo>
well, i've been looking at rhodes, and it seems very stable, but i am still learning ruby in my free time.
<bikcmp>
(i'm looking around for a framework myself...)
<coyo>
so i cannot help you.
<cmasseraf>
bikcmp, features comparsion
<lectrick>
Can this expression be simplified? ((n+2**31) % 2**32) - 2**31
<bikcmp>
cmasseraf: got a link?
emmanuelux has joined #ruby
ZachBeta has joined #ruby
ZachBeta has quit [Client Quit]
<cmasseraf>
I've got people saying good things about appcelerator, but all our programmers code in ruby (and js + html) sinse our application is in rails
adeponte has quit [Remote host closed the connection]