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
maxmmurphy has quit [Quit: maxmmurphy]
sneakyness_wk has quit [Ping timeout: 245 seconds]
<blazes816> >> [1] == [1]
<al2o3cr> (TrueClass) true
<Spooner> hadees arr1.sort == arr2.sort ?
<Muz> hadees: array1.sort == (array1 & array2).sort
<Muz> Er, yeah, ignore me. ¬_¬
<hadees> Spooner: i guess sort could work, it is an array of strings
<hadees> Spooner: just seems weird
xorgnak_ has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<Spooner> hadees : Or (arr1.size == arr2.size) && (arr1 - arr2).empty? Lots of ways; depends which is clearer for you.
mikepack has quit [Remote host closed the connection]
CodeFriar has quit [Quit: Leaving...]
<Muz> Spooner: that doesn't necessarily work.
<hadees> Spooner: well (arr1 - arr2).empty? and (arr2 - arr1).empty? seems like it would work the best
<hadees> but also kind of weird
ndrei has joined #ruby
<ndrei> Hi there
ndrei has left #ruby [#ruby]
<blazes816> what it is ndrei?
<blazes816> aw :(
<Spooner> Muz Oh, yeah, mine only works if there are guaranteed no duplicates.
<Muz> >> a1 = [1, 1, 2]; a2 = [2, 2, 1]; a1.size == a2.size
<al2o3cr> (TrueClass) true
baroquebobcat has quit [Read error: Connection reset by peer]
<Muz> >> a1 = [1, 1, 2]; a2 = [2, 2, 1]; a1 - a2
<al2o3cr> (Array) []
* Spooner nods.
Markvilla has quit [Quit: Computer has gone to sleep.]
<xorgnak> isn't there a diff method in Array?
<havenn> I'm glad Set is getting added to stdlib, maybe it'll get used more!
<hadees> xorgnak: i don't think so, i just checked for that recently
<Spooner> havenn Set is in stdlib. Or you mean it will be loaded like Arrays and Hashes?
<Muz> >> require 'set'; s1 = Set.new [1, 2]; s2 = Set.new [2, 1]; s1 - s2
<al2o3cr> (Set) #<Set: {}>
<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
<hadees> i guess i'll write some tests around that though
recycle has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 248 seconds]
adamkitt_ has quit [Ping timeout: 272 seconds]
xorgnak has quit [Remote host closed the connection]
<Muz> havenn: still doesn't help with duplicates though, it's just there for convenience when iterating over the data set.
xorgnak has joined #ruby
g_rotbart has joined #ruby
<havenn> Muz: Since he doesn't care about order, and needs duplicates, SortedSet would be perfectly wrong for his problem.
cakehero has joined #ruby
havenn has quit [Remote host closed the connection]
yshh has joined #ruby
<xorgnak> I vote for magic.
<davidcelis> if only there were some sort of list structure that allowed duplicate elements
<davidcelis> and either maintained or did not maintain order, since we don't care
<davidcelis> if only....
ngoldman has quit [Remote host closed the connection]
<Muz> SortedMultiset?
<davidcelis> SortedOrUnsortedWeDontCareMultiSet
<xorgnak> you could always force the arrays to sort to do your check
<blazes816> NRandomValues
<Spooner> davidcelis: ManPurse?
<davidcelis> >> SortedOrUnsortedWeDontCareMultiSet = Class.new(Array);
<al2o3cr> (Class) SortedOrUnsortedWeDontCareMultiSet
fbernier has quit [Ping timeout: 260 seconds]
<xorgnak> the ManPurse class could be the answer to ALL of our problems
clj_newb has quit [Ping timeout: 268 seconds]
mahmoudimus has joined #ruby
<davidcelis> >> ManPurse = Class.new(BasicObject)
<al2o3cr> (Class) ManPurse
<davidcelis> there you go, an easily extensible data structure
<davidcelis> you can literally do whatever you want with it!
<davidcelis> (some implementation required)
<Spooner> I'll put a small dog in mine.
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
techhelp has joined #ruby
<xorgnak> or a cat!
<Muz> At the same time.
<Muz> With duplicates.
<Muz> In any order you want.
<xorgnak> def ManPurse.cat; puts =^.^=;end
seanyo_ has joined #ruby
<Muz> syntax error, unexpected '^'
ph^ has joined #ruby
<xorgnak> quote it.
<davidcelis> you quote it
<davidcelis> you wrote it, you quote it
<xorgnak> my client decided not to send that
tyfighter has quit [Quit: tyfighter]
moted has joined #ruby
seanyo has quit [Ping timeout: 246 seconds]
berserkr has quit [Quit: Leaving.]
cakehero has quit [Quit: Computer has gone to sleep.]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
pskosinski has quit [Read error: Connection timed out]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
pskosinski has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
<xorgnak> ii doesnt like quotes.
havenn has joined #ruby
scb has quit [Ping timeout: 240 seconds]
nohonor has quit [Quit: Leaving]
aquaranto has joined #ruby
Agis__ has quit [Quit: Agis__]
baroquebobcat has joined #ruby
samflores has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
davidcelis has quit [Quit: K-Lined.]
yshh has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
Takehiro has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
Virunga has quit [Remote host closed the connection]
xorgnak has quit [Remote host closed the connection]
joelsotherbeard has quit [Ping timeout: 245 seconds]
Nisstyre has joined #ruby
xorgnak has joined #ruby
luckyruby has joined #ruby
jjbohn has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Takehiro has quit [Ping timeout: 246 seconds]
joelsotherbeard has joined #ruby
ttilley has quit [Quit: ttilley]
pskosinski has quit [Read error: Connection timed out]
pskosinski has joined #ruby
gmci has joined #ruby
swarley has joined #ruby
busybox42 has quit [Ping timeout: 260 seconds]
mrdodo has joined #ruby
cbuxton has quit [Quit: Leaving.]
havenn has quit [Ping timeout: 255 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
shikamaru has quit [Ping timeout: 276 seconds]
xorgnak has quit [Ping timeout: 252 seconds]
lessthanphil has quit [Read error: Connection reset by peer]
lessthanphil has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
_veer has quit [Read error: Connection reset by peer]
arubin has quit [Read error: Connection reset by peer]
ckrailo has quit [Quit: Computer has gone to sleep.]
arubin has joined #ruby
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
strcrzy has quit [Read error: Connection reset by peer]
cj3kim has quit [Quit: Leaving]
strcrzy has joined #ruby
jso has quit [Ping timeout: 246 seconds]
iori has joined #ruby
Jamone is now known as Monie
yshh has joined #ruby
Yomero has quit [Ping timeout: 246 seconds]
croz has quit [Quit: changing servers]
jso has joined #ruby
stabby_lambda has joined #ruby
whowanstolivefr has joined #ruby
havenn has joined #ruby
stabby_lambda has quit [Client Quit]
croz has joined #ruby
whowantstolivefo has quit [Ping timeout: 276 seconds]
stabby_lambda has joined #ruby
stabby_lambda is now known as rjsamson
rjsamson has quit [Client Quit]
Yomero has joined #ruby
Nathandim has quit [Quit: Computer has gone to sleep.]
rjsamson has joined #ruby
josh^ has joined #ruby
samflores has quit [Quit: Linkinus - http://linkinus.com]
samflores has joined #ruby
sailias has joined #ruby
ZachBeta has joined #ruby
vitor-br has joined #ruby
Yomero has quit [Ping timeout: 252 seconds]
blazes816 has quit [Quit: blazes816]
pitty has quit [Ping timeout: 264 seconds]
al2o3cr has quit [Ping timeout: 260 seconds]
chimkan has quit [Quit: chimkan]
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]
samflores has quit [Quit: Linkinus - http://linkinus.com]
Banistergalaxy has joined #ruby
ph^ has joined #ruby
awarner has quit [Remote host closed the connection]
<gverri> Anyone?! =/
<swarley> I would help but I've never actually used boogieing
<swarley> Nokogiri*
<swarley> Freaking auto correct
<gverri> Its not really related to nokogiri
<swarley> Oh I missed that then
<swarley> Let me scroll up
<gverri> I just need an easy way to store some data.
<swarley> You can either use a struct or a hash
<swarley> IMO
<swarley> I don't know which is more memory efficient
banannagram has joined #ruby
<gverri> But how would you do it inside the each loop?
<swarley> For a struct you can do
<gverri> How can i save the reference like array[1]['name']
<swarley> Blah.new(data1,data2)
<gverri> if i don't have the index
bananagram has quit [Ping timeout: 246 seconds]
<swarley> Ah
<swarley> So you're worried about the array?
<swarley> Does position matter?
<gverri> Yes
nari has joined #ruby
sailias has joined #ruby
<swarley> Array#push is the best way to just get it into the array
<swarley> And to reference it use Array#last
<gverri> Like Array << Value?
<swarley> Yes
ph^ has quit [Ping timeout: 246 seconds]
<gverri> But what would I do? array['name'] << value would only increment not create a new row
<swarley> What
awarner has joined #ruby
<swarley> Can you make a sample data structure?
<swarley> Like, a JSON markup of what you want it to look like
cakehero has joined #ruby
sdwrage has quit [Quit: geekli.st/programmer]
<swarley> Ah
wargasm has quit [Ping timeout: 246 seconds]
amaya_ has joined #ruby
<swarley> books = []; books.push({}); books.last['name'] = "foo"
<swarley> {} being an empty hash
jonathanwallace has quit [Remote host closed the connection]
voodoofish430 has quit [Quit: Leaving.]
<gverri> Oh, but last won't override it?
<gverri> "last"
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<swarley> Nope, last refers to the new hash you just pushed
cableray has quit [Quit: cableray]
banisterfiend has joined #ruby
shikamaru has joined #ruby
joelsotherbeard has quit [Ping timeout: 246 seconds]
<swarley> eval: a = [{:t => 'Hello']; a.push {}; a.last[:t] = 'World'; puts a.last[:t]
<swarley> Oh no eval not
<gverri> Oh, I see. Tha's beautiful kkk
<swarley> Not
cableray has joined #ruby
<swarley> ... Bot
Banistergalaxy has quit [Ping timeout: 240 seconds]
<gverri> let me play with it in irb
wargasm has joined #ruby
<swarley> Kk
sdwrage has joined #ruby
<gverri> works like a charm kkk
<swarley> Glad to help
<gverri> Thank you very much my friend =D
<swarley> You can also do
<swarley> a[-1]
<swarley> But the last time I checke that is slower
<swarley> Checked
<swarley> Because in [0,1,2,3,4,5], element -1 is 5
<swarley> -2 is 4 and so on
<cespare> Anyone have any idea how I can send a signal to the remote side with net/ssh? I can't find anything in the net/ssh (v2) documentation
jenrzzz has quit [Ping timeout: 272 seconds]
<swarley> I've never seen it, are you talking about SIGINT type signals?
<cespare> swarley: yeah
<swarley> Give me a second
Takehiro has joined #ruby
sailias has quit [Quit: Leaving.]
kiyoura has quit [Quit: Leaving]
chimkan_ has joined #ruby
roadt has joined #ruby
<banisterfiend> swarley sup chink
manizzle has quit [Ping timeout: 245 seconds]
<swarley> Nm, busy with school lately. And learning San
<swarley> ASM
<swarley> Not San. Curse autocorrect
swarley_ has joined #ruby
chrishunt has quit [Ping timeout: 240 seconds]
ph^ has joined #ruby
jonathanwallace has joined #ruby
chrishunt has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
<banisterfiend> swarley aren't you like 16? :P
<swarley_> who wanted to know about sending signals?
<swarley_> yes i'm 16
<banisterfiend> swarley school shouldn't be taking over your life quite at this point hehe
alvaro_o has quit [Quit: Ex-Chat]
<swarley_> I'm in 4 AP classes, i'm sort of busy lol
<banisterfiend> no idea what 4 AP means ;)
<swarley_> send_signal( sig, want_reply=false )
<banisterfiend> not american sry
<swarley_> Advanced Placement, its a college level course
<cespare> swarley_: nope that's for net/ssh v2
<cespare> *v1
<swarley_> oh :(
<cespare> i.e. a lib outdated by many years
<cespare> i'm looking into using libssh2 instead.
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
<swarley_> the only thing i even see mentioning signals is
<swarley_> # * "exit-signal" : if the remote process died as a result of a signal ...
<cespare> swarley_: yeah I saw that too
<swarley_> let me run a grep -R and see
<cespare> I also found that although the ssh protocol supports sending signals, no client libraries really have implemetned that
<cespare> I think I can send the ascii int character \x03 though
<cespare> if i want to SIGINT the remote side
beakerman has joined #ruby
<cespare> kkj
<cespare> bleh ignore
<swarley_> ./lib/net/ssh/connection/session.rb: # trap("INT") { int_pressed = true }
<swarley_> that's the best i could find
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
jenrzzz has joined #ruby
<swarley_> ostapbender, Stats.mean([[1,2],[3,4],[5,6]].map(&:first))
<swarley_> simplified
artOfWar has joined #ruby
<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...'
uris has quit [Quit: Lost terminal]
<bnagy> a.map(&:last).inject(:x) / a.size.to_f # done
<bnagy> s/x/+
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.
<bnagy> yep
Adran is now known as The_Doctor
The_Doctor is now known as 18VAA6QCQ
AlbireoX`Laptop has joined #ruby
18VAA6QCQ is now known as The_Doctor
The_Doctor is now known as 18VAA6QCQ
AlbireoX has quit [Ping timeout: 272 seconds]
voodoofish430 has quit [Client Quit]
ZachBeta has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<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]
reuf has quit [Quit: Leaving]
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
luxurymode has joined #ruby
kaushik_ has joined #ruby
havenn has joined #ruby
havenn has quit [Read error: No route to host]
havenn has joined #ruby
ananthakumaran has joined #ruby
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]
jastix has joined #ruby
sonkei has joined #ruby
ori-l has joined #ruby
<swarley_> oh
<swarley_> he's not here
<fowl> swarley_: there is a command to gist your code for you
<swarley_> right, i forgot about it lol
n_blownapart has joined #ruby
<swarley_> ah youre back
<n_blownapart> whoddat?
<swarley_> n_blownapart, http://pastebin.com/dTviDGP8
<fowl> >> class Range; def includes_range?(r); begin <= r.begin && end >= r.end; end; end; (1..100).includes_range?(5..10)
<swarley_> that will let you do (1..100).include_r?(35..40)
baroquebobcat has joined #ruby
<fowl> >> class Range; def includes_range?(r); self.begin <= r.begin && self.end >= r.end; end; end; (1..100).includes_range?(5..10)
<n_blownapart> thanks swarley_ fowl
<swarley_> np
<fowl> >> "whereuatbot"
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]
ph^ has joined #ruby
ltsstar has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
<swarley_> and to access the test_method, you call it by "Test.test_method('Hello World!')"
<swarley_> modules are more of a data organizer, like namespaces are in C++
<swarley_> I havn't used much python so i can't compare it to that
<swarley_> and I can't think of a module type comparison to JS
<swarley_> javascript classes are slightly foggy for me as it is
<ori-l> yeah, i think module namespace is the python equivalent
baroquebobcat has quit [Quit: baroquebobcat]
<ori-l> javascript doesn't have classes, but there are different ways of using objects. the "bag of methods" style looks like ruby modules
<swarley_> i know you can do func Class() or whatever, lol
<swarley_> and define methods in the initializer
<swarley_> oh, also
<swarley_> you can do
<swarley_> include Test
<swarley_> and the namespace changes
tsw-teepan has quit [Ping timeout: 260 seconds]
<swarley_> so that you can use the methods without Test.blah
<swarley_> it jsut becomes blah
<swarley_> just*
<swarley_> same thing for constants in the scope as well
havenn has quit [Remote host closed the connection]
<swarley_> (if i'm screwing up, someone else feel free to call bullshit on my knowledge)
Guest81709 has quit [Ping timeout: 240 seconds]
flagg0204 has quit [Ping timeout: 260 seconds]
<ori-l> swarley_: https://gist.github.com/3704340, if you have any critiques :)
<ori-l> wasn't sure if your comments above were about js or ruby
pingfloyd has joined #ruby
<ori-l> oops, there's a syntax error, should be do |var| rather than |var| do on line 35
<swarley_> node.value == "true"
<swarley_> what's that supposed to do? at line 25?
<swarley_> -?
<swarley_> i understand the comparison, but nothing actually happens with the value
Bosma has quit [Ping timeout: 252 seconds]
<swarley_> also
<swarley_> AST = Puppet::Parser::AST
<swarley_> just do
<swarley_> include Puppet::Parser
<swarley_> the rest of your code will work
<ori-l> re: include -- neat, thanks!
<swarley_> i believe
<swarley_> can you test it quickly for me with that?
<swarley_> because you do make calls to other levels of Puppet
banisterfiend` has joined #ruby
<ori-l> for AST::Boolean, node.value is either the string "true" or the string "false"
<swarley_> so i'm not sure if you need to do ::Puppet to reach it back at the top level
<swarley_> but you don't do anything with the comparison result
<ori-l> so node.value == "true" casts to bool
<ori-l> well, it's the last evaluated thing so it's the return val
<swarley_> ah you're correct
<swarley_> sorry, i missed that
<ori-l> trying include
<swarley_> mkay
<ori-l> np, thanks for your comments!
pabloh has quit [Quit: Ex-Chat]
<swarley_> mhm, no problem at all. Helping is necessary to get others to learn
Yomero has quit [Ping timeout: 264 seconds]
<swarley_> if you need to use ::Puppet to get back to the main module, it might be better to do it the way you had it actually
Rakko has joined #ruby
<Rakko> what is www.modruby.net?
<Rakko> besides something that "works!"
<swarley_> well, if you only have to do it once, its not that bad
<Rakko> ah, now the site works
<swarley_> oh, ori-l on lines 73-76, it might be better to use a ternary
<ori-l> it's >80 chars :(
<swarley_> ah
<swarley_> well, i'm not sure if a case or an if is faster
<Rakko> So... I'm confused. I thought Phusion Passenger was mod_ruby. But modruby.net doesn't seem to mention Passenger. What gives?
<ori-l> swarley_: updated the gist https://gist.github.com/3704340
<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)
<ori-l> unless i cast to string and strip it
fyolnish has joined #ruby
<swarley_> oh you know what, that is fine
<swarley_> how you have it
<swarley_> but yes
<swarley_> here is the code for the lolcat gem i made, it uses regex as hash keys http://pastebin.com/BQMCTkqq
<swarley_> bad hilghting, but in short, you can use anything for a hash key
mikepack has joined #ruby
hbpoison_ has quit [Ping timeout: 268 seconds]
<swarley_> its just generally more efficient to use a symbol
<swarley_> since, once a symbol is created, if you use the same symbol elsewhere, it uses the same object
<ori-l> "both js and python only have strings as hash keys" <-- sorry, completely false, python allows any hashable type as well
<ori-l> my head is clouded from trying to fit multiple languages into it at once :)
<swarley_> I understand the feeling
<swarley_> i'm actually coding in ASM and C between helping you
fyolnish has quit [Ping timeout: 255 seconds]
<swarley_> and here is why you should use symbols when possible instead of strings
hbpoison_ has joined #ruby
wuzzzzaah has joined #ruby
<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
<banisterfiend`> but u dont haev to se that
<banisterfiend`> use*
g33k has joined #ruby
<swarley_> I'm trying to implement atof
<swarley_> strtod
<swarley_> whatever name you want to use
<fowl> /(?:god|allah|buddah?|diety)/ => ['ceiling cat'], hehehe
<banisterfiend`> swarley_: have you had a look at the C stdlib implemenation for it?
h4mz1d has joined #ruby
<swarley_> banisterfiend`, yes, i've made an implementation in C
sdwrage has quit [Quit: geekli.st/programmer]
<swarley_> i'm just trying to do it in asm not
<swarley_> now*
<davidcelis> >> God
<banisterfiend`> swarley_: well, compile it with -S ;)
g33k has quit [Max SendQ exceeded]
<davidcelis> OMG HWERE IS BOT
<banisterfiend`> swarley_: and see the asm output :)
<swarley_> well
<banisterfiend`> swarley_: are you using inline asm in gcc?
<swarley_> no
<banisterfiend`> are you using at&t or intel syntax?
<swarley_> i'm doing AT&T x86_64 assembler
g33k has joined #ruby
<banisterfiend`> oh ok
khakimov has quit [Quit: Computer has gone to sleep.]
<banisterfiend`> it has noisy syntax
<swarley_> and after i do it in 64 i'm going to do it in x86
<swarley_> yeah, i prefer it over intel though to be honest
<swarley_> intel is easier to read
<swarley_> but harder for me to think with
ghosTM55 has joined #ruby
<banisterfiend`> cos the from, to parameters are reversed
<swarley_> yeah
<swarley_> which bugs me
<swarley_> i can't understand how GCC does floats/doubles really
<swarley_> like, i believe .long 1069128089 is supposed to be 0.1
jonathanwallace has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
<swarley_> i guess i could find out pretty easily
<swarley_> yeah movl $0x3dcccccd, %eax # return 0.1;
Rakko has left #ruby ["Bye"]
<swarley_> i don't see how that all works to be honest lol
<burgestrand> swarley_: http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html - search the page for IEEE
<burgestrand> More specifically #754
chussenot has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
mrdodo has joined #ruby
hbpoison has joined #ruby
<burgestrand> That paper is huge though.
rohit has joined #ruby
hbpoison_ has quit [Read error: Connection reset by peer]
swarley_ has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
swarley has joined #ruby
c0rn_ has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
qos has quit [Quit: Leaving...]
<swarley> that, my good sir
<swarley> is some technical ass documentation
mrdodo has quit [Ping timeout: 252 seconds]
<fowl> technically some ass documentation
hbpoison has quit [Ping timeout: 264 seconds]
hbpoison has joined #ruby
ghosTM55 has quit [Quit: Leaving]
<fowl> sorry, dyslexia
bluOxigen has joined #ruby
<swarley> so, i understand that in principal
<swarley> 1234.1234 = 12341234 x 10^-4
<swarley> what i'm unsure of is how to set that info effect to make the actual floating point data type
Averna has joined #ruby
Chryson has quit [Quit: Leaving]
keyvan is now known as love_color_text
twinturbo has joined #ruby
fyolnish has joined #ruby
dmiller has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
sonkei has joined #ruby
kaiwren has joined #ruby
qos has joined #ruby
philips_ has quit [Excess Flood]
br4ndon has joined #ruby
anoNxeRo has quit [Ping timeout: 255 seconds]
deryl1 has joined #ruby
deryl has quit [Ping timeout: 252 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
<swarley> i'm not in a high enough math for this. i wish they would just let me take calculus
philips_ has joined #ruby
bilalbilal has joined #ruby
<bilalbilal> hello?
<bilalbilal> anybody out there?
<bilalbilal> first timer right here
<burgestrand> Hi. Welcome!
sebastorama has joined #ruby
<burgestrand> This time of day tend to be quite inactive. People sleep sometimes.
<bilalbilal> oh yeah of course i totally understand!!!
<bilalbilal> what do people chat about here???
<swarley> hello there
<burgestrand> Ruby, usually.
<bilalbilal> ruby the semi-precious gemstone?
thaz has joined #ruby
<m3pow> aby linux users here ?
<swarley> o/
<swarley> i am
<m3pow> what ide you use for ruby ?
coderguy has joined #ruby
<swarley> vim
<swarley> If i HAVE to use an IDE
<swarley> i use Geany
\13k has quit [Remote host closed the connection]
<bilalbilal> so whats ruby?
<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
<m3pow> getting sublime
<m3pow> and geany
<m3pow> thanks
<burgestrand> It’s a state of mind I suppose. Some people feel lost without one. I’m the other way around.
<swarley> no problem
<swarley> I like my vim
<bilalbilal> burgestrand - okay that makes sense... so its sort of like a help centre for people using ruby...
<burgestrand> bilalbilal: yep, pretty much!
<swarley> lol
<heftig> swarley: i meant free-as-in-freedom, not free-as-in-beer
<swarley> oh LOL
<swarley> well, making plugins is pretty simple
<swarley> and managing project files
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
<bilalbilal> well thanks for the chat - i might head off now though - all the best ruby-helpers!!!!!!
bilalbilal has left #ruby [#ruby]
<swarley> and it has pretty good syntax hilighting
djdb has joined #ruby
a_a_g has joined #ruby
<swarley> its my favorite GUI text editor
<swarley> for code
<swarley> but really i just use vim
<swarley> mostly because there is always a syntax script no matter what stupid obscure thing i'm coding in
<swarley> also, having to go into insert mode keeps me from screwing things up
arturaz has joined #ruby
coderguy has quit [Ping timeout: 252 seconds]
artOfWar has quit [Ping timeout: 264 seconds]
n_blownapart has joined #ruby
w400z has joined #ruby
n_blownapart has quit [Remote host closed the connection]
sagax has joined #ruby
nahhh has quit [Read error: Operation timed out]
emanu has joined #ruby
fyolnish has quit [Remote host closed the connection]
Criztian has joined #ruby
<w400z> what's the best way to count the number of rows in a csv that match an argument?
tagrudev has joined #ruby
nahhh has joined #ruby
<swarley> probably grep.count
<swarley> errr
<swarley> nevermind
<swarley> actually
<swarley> [5] pry(main)> [1,2,3,4,5,1].grep(1).count
<swarley> => 2
<w400z> yeah that counts the items in the row array
arietis has joined #ruby
<swarley> well, what are you trying to do exactly, determine if the row matches another?
fyolnish has joined #ruby
<burgestrand> You can pass a block to count.
<burgestrand> >> [1, 2, 3, 4, 5].count { |x x.even? }
<burgestrand> Aw, no bot.
maesbn has joined #ruby
<burgestrand> Not to mention that’s a syntax error.
<burgestrand> Oh well, it’s pseudocode now.
<swarley> or just [1,2,3,4,1,1,1].count(1)
<swarley> so are you trying to find out what row doesnt have x as the 4th element?
<swarley> csv.select() {|x| x[4] != 'x' } #assuming csv is an array
stepnem has joined #ruby
yasushi has joined #ruby
zigomir has joined #ruby
<swarley> >> [[1],[1],[2],[3],[4],[5],[1],[1],[1]].select {|x| x[0] != 1 }
matrixise has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
larissa has quit [Quit: Leaving]
a_a_g has joined #ruby
yasushi has quit [Remote host closed the connection]
elico has joined #ruby
fantazo has quit [Remote host closed the connection]
michaelmartinez has joined #ruby
matrixise has quit [Read error: Operation timed out]
tonini has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
noyb has joined #ruby
Hanmac1 is now known as Hanmac
matrixise has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
Tearan has joined #ruby
Elico1 has joined #ruby
<kaushik_> hi
<kaushik_> can anyone point me to good starter tutorials of Ruby so that i can do ROR also
nucc has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<Mon_Ouie> Just learn Rails after Ruby
swarley has quit [Ping timeout: 252 seconds]
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
mrdodo has joined #ruby
Criztian has quit [Remote host closed the connection]
a_a_g has quit [Read error: Connection reset by peer]
mbk has joined #ruby
a_a_g has joined #ruby
luckyruby has quit [Remote host closed the connection]
a_a_g has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
Dreamer3 has quit [Ping timeout: 240 seconds]
thunderstrike has joined #ruby
a_a_g has joined #ruby
fyolnish has quit [Remote host closed the connection]
twinturbo has quit [Quit: twinturbo]
answer_42 has joined #ruby
<m3pow> Ouie , you know any good video tutorials for ruby/ RoR ?
<Mon_Ouie> Nope
<Mon_Ouie> (I prefer text-based learning materials, easier to process and browse)
luckyruby has joined #ruby
<m3pow> just installed Sublime
a_a_g has quit [Read error: Connection reset by peer]
<m3pow> looks pretty solid
<w400z> m3pow www.codeschool.com
<w400z> m3pow check out rails for zombies
a_a_g has joined #ruby
hbpoison has quit [Ping timeout: 268 seconds]
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
<whowanstolivefr> Mon_Ouie rubyonrails.org screencast is good for beginnrt
<whowanstolivefr> beginner*
Yomero has joined #ruby
<whowanstolivefr> or as w400z said ruby for zombies also good
zommi has joined #ruby
hbpoison has joined #ruby
<m3pow> i also like to read books, as Man_Ouie said, thing with books is they don't necesarely suit your learning style
luckyruby has quit [Remote host closed the connection]
<Mon_Ouie> I wouldn't recommend something Rails-specific to someone who isn't familiar with ruby
<w400z> m3pow get the well grounded rubyist
<Mon_Ouie> Heh, Man_Ouie is one I hadn't seen before
<m3pow> haha sorry mate
<m3pow> you just got baptised
<m3pow> be proud
Nisstyre-laptop has joined #ruby
banisterfiend` has quit [Read error: Connection reset by peer]
jprovazn has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
dhruvasagar has joined #ruby
jimeh2 has quit [Ping timeout: 252 seconds]
fyolnish has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
Gonzih has quit [Ping timeout: 260 seconds]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
<whowanstolivefr> m3pow also tryruby.org is good for learning syntax and beginning
roadt has quit [Ping timeout: 240 seconds]
<m3pow> thank you !
Morkel has joined #ruby
banisterfiend has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
banisterfiend` has joined #ruby
ori-l has left #ruby ["Leaving"]
asteve has joined #ruby
a_a_g has joined #ruby
Averna has quit [Quit: Leaving.]
love_color_text has quit [Remote host closed the connection]
cezar has joined #ruby
whowanstolivefr is now known as whowantstolivefo
cezar has quit [Client Quit]
lunchub has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
<w400z> swarley you still on?
w400z has quit []
ph^ has joined #ruby
banister_ has joined #ruby
hemanth has quit [Ping timeout: 260 seconds]
xnm has quit [Read error: Connection reset by peer]
fyolnish has quit [Remote host closed the connection]
g_rotbart has quit [Remote host closed the connection]
banisterfiend` has quit [Ping timeout: 248 seconds]
kaushik_ has quit [Ping timeout: 260 seconds]
snuglepuss has quit [Remote host closed the connection]
kaiwren has quit [Quit: kaiwren]
fyolnish has joined #ruby
banisterfiend has quit [Ping timeout: 255 seconds]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
roadt has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
_veer has quit [Read error: Connection reset by peer]
a_a_g has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
a_a_g has joined #ruby
dhruvasagar has joined #ruby
robbyoconnor has quit [Read error: No route to host]
robbyoconnor has joined #ruby
Cache_Money has quit [Ping timeout: 246 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
kaiwren has joined #ruby
Xeago has joined #ruby
hoelzro|away is now known as hoelzro
a_a_g has quit [Quit: Leaving.]
SCommette has joined #ruby
SCommette has quit [Client Quit]
noyb has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
Elico1 has quit [Quit: elico1]
elico has quit [Quit: Elico]
jonathanwallace has joined #ruby
Xeago has quit [Remote host closed the connection]
LouisGB has joined #ruby
_bart has quit [Quit: _bart]
Nathandim has joined #ruby
eldariof has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
emanu has quit [Quit: emanu]
beneggett has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 246 seconds]
Dreamer3 has joined #ruby
banisterfiend has joined #ruby
mahmoudimus has joined #ruby
flype has joined #ruby
DanielZ has joined #ruby
BiHi has joined #ruby
krion has quit [Quit: Changing server]
maletor has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
Jellyg00se has quit [Read error: Connection reset by peer]
savage- has quit [Remote host closed the connection]
qwerxy has joined #ruby
mrdodo has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 255 seconds]
Jellyg00se has joined #ruby
a_a_g has joined #ruby
sgmac has joined #ruby
sgmac has left #ruby [#ruby]
mengu has quit [Remote host closed the connection]
s1n4 has joined #ruby
steven has quit [Ping timeout: 276 seconds]
qwerxy has quit [Ping timeout: 246 seconds]
s1n4 has left #ruby [#ruby]
BullShark has left #ruby ["K-Lined"]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
whowanstolivefr has joined #ruby
whowantstolivefo has quit [Ping timeout: 245 seconds]
fyolnish has quit [Remote host closed the connection]
c0rn_ has quit []
daniel_hinojosa has quit [Ping timeout: 272 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
qos has quit [Quit: Leaving...]
timonv has joined #ruby
sebastorama has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Quit: Morkel]
robotmay has joined #ruby
knirhs has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
sgupta has joined #ruby
iaj_ has quit [Quit: leaving]
pingfloyd has quit [Quit: pingfloyd]
Takehiro has quit [Remote host closed the connection]
knirhs has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
chimkan has joined #ruby
tonini has joined #ruby
banisterfiend has joined #ruby
Ruler_Of_Heaven_ is now known as pipopopo
chendo_ has quit [Quit: Computer has gone to sleep.]
elaptics`away is now known as elaptics
mahmoudimus has quit [Quit: Computer has gone to sleep.]
knirhs has joined #ruby
fyolnish_ has joined #ruby
iaj has joined #ruby
heftig has quit [Remote host closed the connection]
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
sgupta has quit [Read error: Connection reset by peer]
robustus has joined #ruby
Jellyg00se has quit [Ping timeout: 260 seconds]
frogprince has joined #ruby
pdelgallego has joined #ruby
knirhs has quit [Ping timeout: 248 seconds]
answer_42 has quit [Quit: WeeChat 0.3.8]
fyolnish_ has quit [Ping timeout: 272 seconds]
knirhs has joined #ruby
chimkan has quit [Quit: chimkan]
heftig has joined #ruby
answer_42 has joined #ruby
timonv has quit [Remote host closed the connection]
fyolnish has joined #ruby
knirhs has quit [Excess Flood]
heftig has quit [Remote host closed the connection]
charliesome has joined #ruby
F1skr has joined #ruby
knirhs has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
heftig has joined #ruby
Yomero has quit [Read error: Operation timed out]
timonv has joined #ruby
chimkan has joined #ruby
knirhs has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
ephemerian has joined #ruby
thaz has quit [Quit: thaz]
hemanth has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
demian`_ has joined #ruby
knirhs has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
matrixise has quit [Ping timeout: 252 seconds]
sgupta has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
matrixise has joined #ruby
specialGuest has joined #ruby
sgupta is now known as Shrink
Shrink has quit [Changing host]
Shrink has joined #ruby
Takehiro has joined #ruby
xpen_ has joined #ruby
Banistergalaxy has joined #ruby
knirhs has quit [Ping timeout: 264 seconds]
whowanstolivefr is now known as whowantstolivefo
knirhs has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
zarubin has quit []
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
mosheee has quit [Ping timeout: 265 seconds]
Shrink has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
kaiwren has quit [Quit: kaiwren]
Takehiro has quit [Ping timeout: 264 seconds]
fyolnish has quit [Remote host closed the connection]
sspiff has quit [Remote host closed the connection]
sgupta has joined #ruby
pskosinski has joined #ruby
kyb3r has joined #ruby
sgupta is now known as Shrink
Shrink has quit [Changing host]
Shrink has joined #ruby
justinmcp has quit [Remote host closed the connection]
Xeago has joined #ruby
knirhs has quit [Ping timeout: 245 seconds]
berserkr has joined #ruby
plinio has joined #ruby
mrdodo has joined #ruby
roadt has quit [Ping timeout: 252 seconds]
sspiff has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
mrdodo has quit [Ping timeout: 248 seconds]
savage- has joined #ruby
Gonzih has joined #ruby
DZwijnenburg has joined #ruby
asshopo has quit [Read error: Operation timed out]
arturaz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
DZwijnenburg has quit [Client Quit]
Khol_ has joined #ruby
plinio has quit [Ping timeout: 252 seconds]
M- has joined #ruby
asshopo has joined #ruby
DanielZ has quit [Ping timeout: 272 seconds]
roadt has joined #ruby
jocke12 has joined #ruby
cousine has joined #ruby
nid has joined #ruby
Takehiro has joined #ruby
leoncamel has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 248 seconds]
qwerxy has joined #ruby
tvw has joined #ruby
Markvilla has joined #ruby
ostapbender has quit [Read error: Connection reset by peer]
qpx has joined #ruby
TomJ has quit [Quit: TomJ]
hemanth has quit [Ping timeout: 246 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
ickmund has quit [Quit: ickmund]
ickmund has joined #ruby
ickmund has quit [Remote host closed the connection]
adambeynon has joined #ruby
vectorshelve has joined #ruby
<vectorshelve> /msg NickServ identify web2labsweb2labs
<banisterfiend> vectorshelve lol
<m3pow> ??
<banisterfiend> vectorshelve now we can all login as u
<nucc> :D
<m3pow> nice pass mate
<m3pow> let's all login now
<m3pow> attack
<vectorshelve> banisterfiend: that is a wrong password lol
jonathanwallace has joined #ruby
vectorshelve has quit [Client Quit]
vectorshelve has joined #ruby
<nucc> nice try ;)
<vectorshelve> banisterfiend:
<vectorshelve> banisterfiend: :) hi
Takehiro has joined #ruby
amaya_ has joined #ruby
jonathanwallace has quit [Ping timeout: 255 seconds]
<amaya_> >> a=1;b=[1,2,3];b.each {|x| a<<x }
<amaya_> What?
tonini has quit [Remote host closed the connection]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
keyvan has quit [Remote host closed the connection]
<amaya_> The block can see the variable #a
Takehiro has quit [Remote host closed the connection]
<banisterfiend> amaya_ ya that's noooooooooooooormal.
<amaya_> but a method not.
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Takehiro has joined #ruby
ph^ has quit [Remote host closed the connection]
justinmcp has joined #ruby
s1n4 has joined #ruby
qos has joined #ruby
nari has quit [Ping timeout: 260 seconds]
gen0cide_ has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
chendo_ has joined #ruby
pdelgallego has joined #ruby
banister_ has quit [Remote host closed the connection]
nucc has quit [Quit: Leaving...]
<qpx> lol
<Hanmac> amaya_ sorry but the bot is currently offline :(
<amaya_> oh ,It is a bot.....
<Hanmac> XD did you thought that it was a user that copys your code? XD
Banistergalaxy has quit [Ping timeout: 272 seconds]
qpx has left #ruby ["WeeChat 0.3.8"]
br4ndon has joined #ruby
<Mon_Ouie> amaya_: Methods aren't closures in Ruby
<Mon_Ouie> Unless you use #define_method (or define_singleton_method) to define them with a block
hbpoison has quit [Ping timeout: 248 seconds]
kyb3r has quit []
<Hanmac> very important information about block variables:
<Hanmac> >> a=1;b=[1,2,3];b.each {|a| p a }; p a
<Hanmac> in ruby1.9 and in ruby1.8 the outside variable a is different after the block
<Xeago> Hanmac: YOU KILLED IT!
<Hanmac> :P no i wassnt .P
chimkan has quit [Quit: chimkan]
<Xeago> where did bot go?
<Mon_Ouie> It just left, perhaps the computer/VM running it was shut down
<Mon_Ouie> Its developer isn't here either right now
jastix has quit [Ping timeout: 246 seconds]
<amaya_> Hanmac: ya, Blocks can modify variable. It is terrible.
<Hanmac> amaya_ there is the difference:
<Hanmac> ruby1.9: a=1;b=[1,2,3];b.each {|a| a }; a#=> 1
<Hanmac> ruby1.8: a=1;b=[1,2,3];b.each {|a| a }; a#=> 3
<Mon_Ouie> amaya_: Ruby 1.8 block arguments don't shadow the outer variables, which is arguably a confusing behavior
hbpoison has joined #ruby
fermion has joined #ruby
<banisterfiend> Mon_Ouie you should show hanmac ruby-dev.el, i think he'd be impressed
<Xeago> this okay to write: "These reports will contain information about my activities and their outcomes."?
<Muz> Yes.
<Xeago> would shall be better or worse?
a_a_g has quit [Read error: Connection reset by peer]
nucc has joined #ruby
Takehiro has quit [Remote host closed the connection]
<Xeago> it should be will, as reports is not a first person pronoun, right?
g33k has quit [Quit: Leaving]
Takehiro has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
cakehero has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
a_a_g has joined #ruby
x0F_ is now known as x0F
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<bnagy> never use shall
<charliesome> bnagy: except when writing an rfc
iori has quit [Remote host closed the connection]
Markvilla has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
roadt has quit [Read error: Connection timed out]
a_a_g has quit [Read error: Connection reset by peer]
roadt has joined #ruby
a_a_g has joined #ruby
uris has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
kaiwren has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
Xeago_ has joined #ruby
cascalheira has joined #ruby
Takehiro has quit [Remote host closed the connection]
Choclo has joined #ruby
Takehiro has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Remote host closed the connection]
a_a_g has joined #ruby
Virunga has joined #ruby
Takehiro has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
qos has quit [Quit: Linkinus - http://linkinus.com]
lessthanphil has quit [Quit: lessthanphil]
savage- has quit [Remote host closed the connection]
rohit has joined #ruby
Takehiro has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
justinmcp has quit [Remote host closed the connection]
Progster has joined #ruby
Foxandxss has joined #ruby
hemanth has joined #ruby
snearch has joined #ruby
Xeago has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
Virunga has quit [Remote host closed the connection]
ph^ has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
Rogach has joined #ruby
jjang has quit [Remote host closed the connection]
Rogach has left #ruby [#ruby]
ph^ has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
rohit has quit [Quit: Leaving]
Xeago has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
Vert has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
rakl has quit [Quit: sleeping]
risico has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
tomzx_ has joined #ruby
dhruvasagar has joined #ruby
JonnieCache has joined #ruby
snearch has quit [Quit: Verlassend]
philcrissman has joined #ruby
cousine has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
cantonic_ has joined #ruby
Progster has quit [Ping timeout: 246 seconds]
<shevy> we shall overcome
cantonic has quit [Ping timeout: 260 seconds]
cantonic_ is now known as cantonic
m3pow has quit [Ping timeout: 240 seconds]
kaiwren has quit [Quit: kaiwren]
<fowl> oh u
hbpoison has quit [Ping timeout: 240 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
lunchub has quit [Remote host closed the connection]
niklasb has joined #ruby
scb has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
tomzx_ is now known as tomzx
a_a_g has joined #ruby
beakerman has joined #ruby
dpk has joined #ruby
amaya_ has quit [Ping timeout: 272 seconds]
Choclo has quit [Quit: Leaving.]
arietis has quit [Quit: Computer has gone to sleep.]
hbpoison has joined #ruby
beakerman has quit [Ping timeout: 246 seconds]
M- has joined #ruby
croz has quit [Ping timeout: 245 seconds]
a_a_g has quit [Read error: Connection reset by peer]
rohit has joined #ruby
a_a_g has joined #ruby
justinmcp has joined #ruby
mucker has joined #ruby
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
herbnerder has joined #ruby
jonathanwallace has joined #ruby
kaushik_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 246 seconds]
a_a_g has quit [Read error: Connection reset by peer]
m3pow has joined #ruby
tomzx has quit [Ping timeout: 260 seconds]
a_a_g has joined #ruby
amaya_ has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
xpen_ has quit [Remote host closed the connection]
larissa has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
FlyingFoX has quit [Ping timeout: 276 seconds]
keyvan is now known as addicted_to_code
addicted_to_code is now known as loves_color_text
redbar0n has joined #ruby
BiHi has joined #ruby
<redbar0n> hi, anyone here just learning ruby? i'd like to help out
<bnagy> just sit back and wait for the noobs, there are plenty to go round
<redbar0n> hehe
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
<redbar0n> but i want to reach out to someone with a problem (any) right now
yasushi has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
jonathanwallace has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
Takehiro has joined #ruby
<shevy> redbar0n what problem
<redbar0n> any problem they might have
<shevy> redbar0n ok
<redbar0n> :)
<shevy> redbar0n I would like to understand why I need to use Proc.new
<redbar0n> in what scenario?
<shevy> it is one of those mysteries in ruby I have not understood yet
<shevy> in ANY scenario :)
<coyo> redbar0n: try magnet:?xt=urn:btih:d99733c91b86c129c853f66e3d006d9f74700cd8
<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> Xeago: delicious newblets
<Xeago> wot?
<coyo> lol that's all it says? huh
<coyo> okay, hold on a moment.
<m3pow> ye that's all
<m3pow> after i type the command
<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)
<coyo> oh
<shevy> btw the online docu is often better than ri :P www.ruby-doc.org/core-1.9.3/String.html#method-i-capitalize
<m3pow> i know, but if i don;t have internet :)
<coyo> (thinking aloud) ri is ruby index, which is one of two documentation systems.. why would it spit out an error like that, hmm.
<m3pow> it could come in handy
<shevy> redbar0n hehe yeah... that's basically the only use case I see for it... a counter :)
<Mon_Ouie> banisterfiend: Btw, I think pry-doc is kind of outdated — I'd want it to have 1.9.3
<banisterfiend> redbar0n why do you need to use @@foo for that? why not just @foo in the class?
<banisterfiend> Mon_Ouie yeah :P what's new on 1.9.3 anyway? private_const ?
<Mon_Ouie> Even just for not having the silly doc bug for Kernel#select
vjt has quit [Ping timeout: 272 seconds]
<shevy> I think Mon_Ouie is angry
enroxorz-work has quit [Read error: Connection reset by peer]
<redbar0n> banisterfiend: because @foo is an instance variable, which would get reset for every new instance of the class you would create
<m3pow> i think i got it
<m3pow> i need to first generate the docs
<banisterfiend> redbar0n no, you define it on the class
<m3pow> sudo apt-get install ruby-rvm
<coyo> m3pow: that might help XD
<banisterfiend> redbar0n like this: class MyClass; def self.new(*args, &block); @counter += 1; super; end; end
answer_42 has quit [Remote host closed the connection]
sspiff has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
answer_42 has joined #ruby
<banisterfiend> redbar0n https://gist.github.com/3706218
duard has quit [Ping timeout: 245 seconds]
pdelgallego has quit [Ping timeout: 246 seconds]
<m3pow> nope...still not working
hemanth has quit [Ping timeout: 246 seconds]
ewag has joined #ruby
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>'
WrErase has joined #ruby
<JonnieCache> lolmaus: look elsewhere on that site too. plus there are many other sites like it
<Muz> Xeago: the bot is sandboxed, and if you're going to play with it, you can do it in a query window.
<bnagy> but it would be
<bnagy> >> `uptime`
<al2o3cr> -e:1:in `eval': No such file or directory - uptime (Errno::ENOENT), from (eval):1:in `<main>', from -e:1:in `eval', from -e:1:in `<main>'
Takehiro has joined #ruby
<Hanmac> hm there is still an error in the bot that he sometimes does not output when i want it:
<Hanmac> >> puts ["01038dca61cadeb5dca1bc4476a24f28"].pack("h*")
Takehiro has quit [Remote host closed the connection]
<bnagy> as opposed to undefined local variable
<Hanmac> bnagy: uptime is a programm wich is not available in the secure env :P
<Xeago> bnagy: why was that sentence unreadable?
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
<bnagy> Xeago: no punctuation, twisted clauses, missing article ...
Takehiro has joined #ruby
jrist-afk is now known as jrist
<bnagy> write simple english, dude
Markvilla has joined #ruby
<bnagy> it's easier to write and easier to read
<bnagy> and offers less opportunity to look like an idiot
troydm has joined #ruby
<Xeago> have to finish this part of the assignment :\
<troydm> hey guys! suggest a good rails book for starters, i only have a basic ruby programming knowledge
<troydm> so which book should i start with?
<JonnieCache> railstutorial.org
<bnagy> passive voice is a) hard and b) often sounds horrible
Axsuul has quit [Ping timeout: 268 seconds]
<bnagy> Xeago: start with I feel it is important to... or I enjoy ... or I think that xxx is important
<Muz> troydm: try asking in #rubyonrails where the RoR guys hang out.
Criztian has joined #ruby
wargasm has quit [Ping timeout: 245 seconds]
<Xeago> bnagy: I substituted with me, there's a party I can't disclose there. Furthermore, they expect it to be in this passive form.. :\
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<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
<jastix> troydm: play railsforzombies
<Xeago> bnagy: what?
<banisterfiend> bnagy sorry i was distracted by pr0n https://gist.github.com/3706312
<bnagy> if you have an opinion, just state it, you don't need to say it's your opinion / feeling etc
<matti> I have!
<matti> We should wear pink.
<matti> ;-)
a_a_g has quit [Read error: Connection reset by peer]
<deryl> bnagy: think most of us do that because then people mac on you for stating something like its fact rather than opinion
carloslopes has joined #ruby
<deryl> causes more grief than its worth, so just easier to short circuit that by prefacing that its your opinion
<bnagy> deryl: I'm talking about semiformal / formal writing, not IRC
a_a_g has joined #ruby
<shevy> what is Xeago trying to do again
<shevy> run for president?
<deryl> ohhh
<bnagy> learn english from computer programmers, apparently
specialGuest1 has joined #ruby
<shevy> hmm
haggen has joined #ruby
* fowl speaks autistic english
x0F has quit [Read error: Connection reset by peer]
<Xeago> shevy: graduate
<shevy> Xeago, this is Lincoln's best letter IMHO http://www.angelfire.com/my/abrahamlincoln/Meade.html
<shevy> "Again, my dear general, I do not believe you appreciate the magnitude of the misfortune involved in Lee's escape."
<shevy> look how nice he worded "You were a damn idiot to let him escape!!!"
iamjarvo has joined #ruby
x0F has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Ping timeout: 244 seconds]
adamos has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 246 seconds]
devdazed has joined #ruby
<shevy> though others say this one was his best http://www.angelfire.com/my/abrahamlincoln/Bixby.html but I dunno...
<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."
loves_co_ has joined #ruby
deryl has quit [Disconnected by services]
Virunga_ has joined #ruby
qwerxy_ has joined #ruby
deryl1 is now known as deryl
<shevy> this is like massaging the brain :)
Virunga_ is now known as LennyLinux
mtkd has quit [Ping timeout: 240 seconds]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
redbar0n has quit [Ping timeout: 245 seconds]
<Xeago> would "Describing complex problems to illustrate.." be better?
rodasc has joined #ruby
<bnagy> :<
jmeeuwen_ has joined #ruby
mtkd has joined #ruby
jmeeuwen has quit [Ping timeout: 240 seconds]
Iszak has quit [Ping timeout: 240 seconds]
qwerxy has quit [Ping timeout: 240 seconds]
Virunga has quit [Read error: Connection reset by peer]
Jellyg00se has quit [Remote host closed the connection]
loves_color_text has quit [Ping timeout: 240 seconds]
asshopo has quit [Ping timeout: 240 seconds]
maesbn has quit [Ping timeout: 240 seconds]
crodas has quit [Ping timeout: 240 seconds]
arubin_ has joined #ruby
pdelgallego has joined #ruby
jmeeuwen_ is now known as jmeeuwen
<bnagy> A student should demonstrate adequate ability, as assessed by stakeholder, (BARF) to analyze and model complex problems
arubin has quit [Ping timeout: 240 seconds]
arubin_ is now known as arubin
takamichi has quit [Ping timeout: 240 seconds]
root has quit [Ping timeout: 240 seconds]
takamichi has joined #ruby
<Xeago> that is their english, not mine
geekbri has joined #ruby
philips_ has quit [Ping timeout: 240 seconds]
wendallsan has quit [Ping timeout: 240 seconds]
nricciar has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
<shevy> hehe
<bnagy> or complex software engineering problems, if you like
mohits has quit [Ping timeout: 252 seconds]
jso has quit [Ping timeout: 240 seconds]
malcolmva has quit [Ping timeout: 240 seconds]
nuba has quit [Ping timeout: 240 seconds]
zii is now known as ij
<Mon_Ouie> banisterfiend: The bug is it used to ask to see Kernel#select; I think it was finally fixed in 1.9.2
nuba has joined #ruby
nricciar has joined #ruby
asshopo has joined #ruby
paolooo has joined #ruby
udk has joined #ruby
rohit has joined #ruby
wendallsan has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
jso has joined #ruby
roolo has joined #ruby
krusty_ar has quit [Remote host closed the connection]
malcolmva has joined #ruby
<roolo> How can i force devise to return me auth token after json login?
yasushi has quit [Remote host closed the connection]
<roolo> It gives me almost everything without auth token attribute
philips_ has joined #ruby
Morkel has joined #ruby
noahsussman has quit [Quit: Unexpected SpanishInquisitionException]
noahsussman has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
Choclo has quit [Quit: Leaving.]
Nathandim has joined #ruby
a_a_g has joined #ruby
redbar0n has joined #ruby
rohit has quit [Ping timeout: 268 seconds]
thone_ has joined #ruby
andrewhl has joined #ruby
thone has quit [Ping timeout: 240 seconds]
freeayu has quit [Read error: Connection reset by peer]
fbernier has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
freeayu has joined #ruby
gmci has joined #ruby
machty has quit [Quit: machty]
samrose has quit [Quit: Ex-Chat]
CodeFriar has joined #ruby
rohit has joined #ruby
Overv has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
thunderstrike has quit [Read error: Connection reset by peer]
<Overv> is there a quickstart guide for people who already know other languages?
thunderstrike has joined #ruby
rohit has quit [Client Quit]
ij has quit [Read error: Connection reset by peer]
<hoelzro> Overv: what language(s) do you already know?
<Overv> python/c++
Xeago_ has joined #ruby
<hoelzro> I don't know of any specific guides, but I really enjoyed "The Ruby Programming Language"
Xeago_ has quit [Remote host closed the connection]
gift has quit [Remote host closed the connection]
ij has joined #ruby
<banisterfiend> hoelzro +1
<banisterfiend> it's concise
<Overv> alright, thanks hoelzro
<banisterfiend> good for ppl who already know stuff
cjk101010 has quit [Quit: ZNC - http://znc.sourceforge.net]
iamjarvo has quit [Ping timeout: 244 seconds]
cjk101010 has joined #ruby
gift has joined #ruby
mengu has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
jgarvey has joined #ruby
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
nacengineer has joined #ruby
GoGoGarrett has joined #ruby
yasushi has joined #ruby
yshh has quit [Remote host closed the connection]
elico has joined #ruby
WrErase has quit [Remote host closed the connection]
fantazo has joined #ruby
WrErase has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
yasushi has quit [Ping timeout: 252 seconds]
paolooo has quit [Ping timeout: 245 seconds]
yasushi has joined #ruby
manolo has joined #ruby
masterkorp has joined #ruby
rippa has joined #ruby
ij has quit [Read error: Connection reset by peer]
masterkorp has left #ruby ["WeeChat 0.3.2"]
beakerman has joined #ruby
verto|off is now known as verto
Criztian has quit [Remote host closed the connection]
robotmay has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
ramblex has joined #ruby
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`
Xeago has joined #ruby
sambio has joined #ruby
<bnagy> well it's definitely different
<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
clj_newb has quit [Ping timeout: 264 seconds]
rodasc is now known as crodas
<relix> brew install mysql; sudo gem install mysql2
<relix> goody
<relix> I always forget what a hassle it is to set up a new system
strict9 has left #ruby [#ruby]
Synthead has joined #ruby
jhunter has quit [Ping timeout: 265 seconds]
sonkei has joined #ruby
emanu has quit [Quit: emanu]
jhunter has joined #ruby
gverri has quit [Quit: gverri]
khakimov has joined #ruby
wallerdev has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
davidcelis has quit [Quit: K-Lined.]
g33k has joined #ruby
Takehiro has quit [Remote host closed the connection]
Cache_Money has joined #ruby
<relix> finally got it up and running
<relix> thanks for the help guys!
johnduhart has quit [Quit: No Ping reply in 180 seconds.]
johnduhart has joined #ruby
linoj has joined #ruby
horofox has joined #ruby
tk__ has quit [Quit: ばいばい]
LennyLinux has joined #ruby
bbttxu has quit [Quit: bbttxu]
Animawish has joined #ruby
a_a_g1 has quit [Read error: Connection reset by peer]
rjsamson has quit [Ping timeout: 272 seconds]
a_a_g has joined #ruby
<Animawish> is there a way to make the .include? look inside the array's array's in this code? pastie.org/4708474
<Animawish> err
<Animawish> array's arrays
k0m has joined #ruby
rjsamson has joined #ruby
Bosma has joined #ruby
<hoelzro> Animawish: use any? or flatten, maybe?
<hoelzro> asdf.flatten.include? 4
<Spooner> Animawish : You could use asdf[0].include? or asdf.flatten.include?
jimeh2 has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
g33k has quit [Ping timeout: 252 seconds]
<bnagy> Animawish: try using flatten
<bnagy> I think maybe flatten, how about you guys?
<Animawish> awesome, that worked. thanks guys :)
redbar0n has quit [Ping timeout: 245 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
<Spooner> bnagy : Should only need asdf[0].include? since that is the array with numbers in.
<bnagy> Spooner: I didn't actually look
RegEchse has joined #ruby
<bnagy> I was just bandwagonning
hbpoison has quit [Ping timeout: 244 seconds]
<Spooner> bnagy : Have fun ;)
maesbn_ has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
maesbn has joined #ruby
fastred has joined #ruby
resure has quit [Remote host closed the connection]
ckrailo has joined #ruby
jimeh2 has joined #ruby
Yomero has joined #ruby
maesbn has quit [Ping timeout: 255 seconds]
qwerxy_ has quit [Quit: offski]
Animawish has left #ruby [#ruby]
eldariof has quit [Ping timeout: 268 seconds]
sonkei has quit [Quit: Computer has gone to sleep.]
frogprince_mac has joined #ruby
fastred has quit [Quit: fastred]
baroquebobcat has joined #ruby
freeayu has quit [Remote host closed the connection]
luckyruby has joined #ruby
sonkei has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
qwerxy has joined #ruby
twinturbo has joined #ruby
GenghisKen has quit [Ping timeout: 268 seconds]
MasterIdler has joined #ruby
macmartine has joined #ruby
Takehiro has joined #ruby
specialGuest1 has joined #ruby
MasterIdler has quit [Client Quit]
await has joined #ruby
zigomir has quit [Quit: Leaving]
punkrawkR has joined #ruby
aganov has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 245 seconds]
v0n has joined #ruby
sdwrage has joined #ruby
ndrei has joined #ruby
ndrei has quit [Client Quit]
Cache_Money has quit [Ping timeout: 240 seconds]
chrishunt has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
verto is now known as verto|off
mmitchell has quit [Remote host closed the connection]
samflores has joined #ruby
Agis__ has quit [Quit: Agis__]
<ndrei> /window new split
<ndrei> ups
machty has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
CodeFriar has joined #ruby
carloslopes has quit [Quit: Leaving.]
rjsamson has quit [Remote host closed the connection]
blazes816 has joined #ruby
mengu has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
yshh has quit [Remote host closed the connection]
khakimov has quit [Quit: Computer has gone to sleep.]
apok has quit [Quit: apok]
coderhut has joined #ruby
hbpoison has joined #ruby
jocke12 has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
nadirvardar has quit [Quit: Computer has gone to sleep.]
zommi has quit [Quit: Leaving.]
redbar0n has joined #ruby
a_a_g has quit [Ping timeout: 264 seconds]
rjsamson has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
mikepack has joined #ruby
<oz> :)
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
samflores is now known as samflores|away
await has quit [Quit: await]
samflores|away is now known as samflores
jgarvey has quit [Quit: Leaving]
Takehiro has quit [Remote host closed the connection]
eroc has joined #ruby
samflores is now known as samflores|away
samflores|away is now known as samflores
robotmay has quit [Remote host closed the connection]
snearch has joined #ruby
bluenemo has quit [Remote host closed the connection]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
mahmoudimus has joined #ruby
jprovazn is now known as jprovazn_away
michaelmartinez has joined #ruby
specialGuest1 has quit [Ping timeout: 244 seconds]
moted has joined #ruby
Choclo has quit [Quit: Leaving.]
takamichi has quit [Ping timeout: 244 seconds]
seanwash has joined #ruby
takamichi has joined #ruby
ndrei has quit [Quit: leaving]
relix has quit []
ndrei has joined #ruby
s1n4 has joined #ruby
s1n4 is now known as Guest55231
vectorshelve has joined #ruby
samflores is now known as samflores|away
<vectorshelve> Hi
Guest55231 has quit [Client Quit]
Z_Mass has joined #ruby
eykosioux has joined #ruby
Z_Mass has quit [Read error: Connection reset by peer]
ndrei has quit [Client Quit]
Takehiro has joined #ruby
ndrei has joined #ruby
mrsolo has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
coderhut has quit [Quit: Page closed]
_s1n4_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
mmitchell has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
br4ndon has joined #ruby
maletor has joined #ruby
Choclo has joined #ruby
mmitchell has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
sambio has quit [Quit: Saliendo]
MasterIdler has joined #ruby
MasterIdler has quit [Read error: Connection reset by peer]
MasterIdler has joined #ruby
progzer has quit []
rakl has joined #ruby
rakl has quit [Client Quit]
maxmmurphy has joined #ruby
Foxandxss has joined #ruby
andrewhl has quit [Remote host closed the connection]
specialGuest1 has joined #ruby
horofox has quit [Quit: horofox]
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
<lectrick> What is the easiest way to get a port up between myself and another guy assuming we are both behind firewalls?
<Xeago> define port
<Xeago> and why asking in #ruby?
rakl has joined #ruby
Takehiro has joined #ruby
vectorshelve has quit [Quit: Page closed]
CodeFriar has quit [Quit: Leaving...]
mmitchell has joined #ruby
Takehiro has quit [Remote host closed the connection]
lessthanphil has quit [Quit: lessthanphil]
chimkan__ has joined #ruby
chrishunt has joined #ruby
<lectrick> Xeago: Like an SSH tunnel. And because #ruby has the smartest people I know. I could go to ##unix I guess :)
Choclo has quit [Quit: Leaving.]
chrishunt has quit [Client Quit]
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
ndrei has quit [Client Quit]
artOfWar has joined #ruby
ndrei has joined #ruby
ndrei has quit [Client Quit]
chimkan_ has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
samflores|away is now known as samflores
spopescu has joined #ruby
<Xeago> if behind nat, open it up in your nat provider, like router
spopescu has left #ruby [#ruby]
<Xeago> there is also hamachi but it sucks
jenrzzz has joined #ruby
nadirvardar has joined #ruby
elaptics is now known as elaptics`away
gverri has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
sepp2k1 has joined #ruby
jkary has joined #ruby
aristidesfl has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
ngoldman has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
habib has joined #ruby
robotmay has joined #ruby
<habib> Hey everyone
clj_newb has joined #ruby
thiagopnts has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
<habib> i've just instaled ruby via rvm. but when i type in "ruby -v" it says can't find folder /usr/bir/ruby
<habib> how could it be?
savage- has joined #ruby
mmitchell has quit [Remote host closed the connection]
carloslopes has joined #ruby
eykosioux has quit [Quit: eykosioux]
eldariof has joined #ruby
Bosma has quit [Ping timeout: 245 seconds]
Takehiro has joined #ruby
stkowski has joined #ruby
dmiller has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
mva3212 has quit [Quit: Leaving]
himsin has joined #ruby
Bosma has joined #ruby
eykosioux has joined #ruby
Takehiro has joined #ruby
<workmad3> habib: did you activate the ruby you installed?
ndrei has quit [Quit: leaving]
schwap has joined #ruby
machty has quit [Quit: machty]
Takehiro has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
takamichi has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
takamichi has joined #ruby
linoj_ has joined #ruby
machty has joined #ruby
linoj has quit [Read error: Connection reset by peer]
linoj_ is now known as linoj
seanwash has quit [Quit: Computer has gone to sleep.]
ltsstar has joined #ruby
banisterfiend has joined #ruby
redbar0n has quit [Ping timeout: 245 seconds]
<habib> in rvm? yes i did
hbpoison has quit [Ping timeout: 272 seconds]
xclite has quit [Remote host closed the connection]
shevy has joined #ruby
<Emmanuel_Chanel> hi
<habib> workmad3, i did
<habib> hi
xclite has joined #ruby
machty has quit [Client Quit]
dmiller has joined #ruby
fmcgeough has joined #ruby
adambeynon has joined #ruby
maletor has joined #ruby
cbuxton has joined #ruby
<Hanmac> habib did you add the rvm stuff into your bashrc ?
apok has joined #ruby
adeponte has quit [Remote host closed the connection]
<Hanmac> shevy did you read about "Turing Machine" and "turing-complete"?
sonkei has joined #ruby
BiHi_ has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
spinagon has joined #ruby
CodeFriar has joined #ruby
BiHi has quit [Read error: Connection reset by peer]
chrishunt has joined #ruby
<habib> Hanmac, How to do it?
<habib> i didn't
<blazes816> damn is shevy turing complete now?
adeponte has joined #ruby
_s1n4_ has left #ruby ["leaving"]
spinagon has quit [Client Quit]
jimeh2 has quit [Ping timeout: 246 seconds]
tyfighter has joined #ruby
stopbit has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
<Hanmac> habib how did you install rvm?
rippa has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
stopbit has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<habib> sudo apt-get install rvm
<habib> then rvm install 1.9.3
mmitchell has quit [Remote host closed the connection]
PragCypher has joined #ruby
<haggen> apple presentation is starting right now!! http://www.engadget.com/2012/09/12/apple-iphone-5-liveblog/
<habib> ah no
<habib> i did bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
havenn has joined #ruby
fyolnish has joined #ruby
<habib> looks like i solved it
jjbohn is now known as jjbohn|afk
ephemerian has quit [Quit: Leaving.]
sdwrage has quit [Quit: geekli.st/programmer]
<Hanmac> blazes816 shevy no, but "Magic: the Gathering" :D
andrewhl has joined #ruby
jimeh2 has joined #ruby
himsin has quit [Ping timeout: 246 seconds]
Takehiro has quit [Remote host closed the connection]
rippa has joined #ruby
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
jimeh2 has quit [Read error: Connection reset by peer]
ewag has quit [Ping timeout: 272 seconds]
qos has joined #ruby
adeponte has quit [Remote host closed the connection]
ndrei has joined #ruby
luckyruby has quit [Remote host closed the connection]
gverri_ has joined #ruby
samflores has quit [Quit: Linkinus - http://linkinus.com]
luckyruby has joined #ruby
Takehiro has joined #ruby
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 ]}]
<Hanmac> failshell:
<Hanmac> >> File.foreach("/etc/passwd").map {|s|s[/(\w+):/,1]}
<al2o3cr> (Array) ["root", "bin", "daemon", "mail", "ftp", "http", "nobody", "dbus", "jrajav", "al"]
dmiller has joined #ruby
mmitchell has joined #ruby
<failshell> Hanmac: ah cool. thanks
<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?
<elijah> Hanmac: I am on 12.04
imami|afk is now known as banseljaj
<elijah> Hanmac: ruby --version
<elijah> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<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]
dpk has quit [Quit: Asleep at the keyboard.]
Faris has joined #ruby
pdelgallego has joined #ruby
Jellyg00se has quit [Read error: Connection reset by peer]
<elijah> graft: k, i may give that a try
duard has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
demian`_ has joined #ruby
joofsh has joined #ruby
<elijah> my error is: http://paste2.org/p/2216529
duard has joined #ruby
duard has quit [Changing host]
duard has joined #ruby
ndrei has quit [Quit: leaving]
<elijah> it is a compass thing
ndrei has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
statarb3 has joined #ruby
<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]
gfontenot has joined #ruby
robotmay has joined #ruby
adamkittelson has joined #ruby
adeponte has joined #ruby
jrist-afk is now known as jrist
emanu has joined #ruby
haggen has joined #ruby
iamjarvo has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sdwrage has joined #ruby
Jake232 has joined #ruby
riyonuk has joined #ruby
samflores has joined #ruby
nacengineer has quit [Quit: Leaving.]
ilyam has quit [Quit: ilyam]
tvw has joined #ruby
michaelmartinez has joined #ruby
statarb3 has joined #ruby
nanderoo has quit [Quit: Leaving.]
Tearan has quit [Quit: Sleepy Badger....]
h4mz1d has quit [Ping timeout: 244 seconds]
itnomad has quit [Quit: Leaving]
specialGuest1 has joined #ruby
demian`_ has quit [Quit: demian`_]
iamjarvo has quit [Ping timeout: 244 seconds]
h4mz1d has joined #ruby
specialGuest1 has quit [Client Quit]
mmitchell has joined #ruby
rdg has quit [Quit: ttfn]
wmoxam_ has quit [Quit: leaving]
emanu has quit [Quit: emanu]
CodeFriar has joined #ruby
Takehiro has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kirun has joined #ruby
jonathanwallace has joined #ruby
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
habib has quit [Ping timeout: 246 seconds]
savage- has joined #ruby
sha has joined #ruby
sha is now known as Guest18203
el_diablo has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 252 seconds]
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
<Guest18203> hello
macan has joined #ruby
dmiller has quit [Remote host closed the connection]
<Guest18203> Whats the best way to parse a json file like this: [ "oca", 358422, "cppc", 21713, "tf", 10409, "bdf", 9390, ... ] in ruby
axl__ has joined #ruby
<Guest18203> so that we have them in pairs
chussenot has quit [Quit: chussenot]
<Guest18203> i.e. <div> oca 358422 </dv> ....
PragCypher has quit [Quit: Leaving]
jbw has quit [Ping timeout: 246 seconds]
axl_ has quit [Ping timeout: 246 seconds]
axl__ is now known as axl_
Guest18203 has left #ruby [#ruby]
chessguy has joined #ruby
sn0wb1rd_ has joined #ruby
banisterfiend has joined #ruby
thatRD has quit [Quit: thatRD]
rippa has quit [Ping timeout: 260 seconds]
sn0wb1rd has quit [Ping timeout: 248 seconds]
sn0wb1rd_ is now known as sn0wb1rd
ken_barber1 has joined #ruby
beneggett has quit [Ping timeout: 246 seconds]
<Muz> >> a = [ "oca", 358422, "cppc", 21713, "tf", 10409, "bdf", 9390 ]; b = []; b.push(a.pop(2)) until a.empty?; b
<al2o3cr> (Array) [["bdf", 9390], ["tf", 10409], ["cppc", 21713], ["oca", 358422]]
ken_barber has quit [Ping timeout: 245 seconds]
nacengineer has joined #ruby
Nathandim has quit [Quit: Computer has gone to sleep.]
<Hanmac> Muz the user is not online currenty
marcoshack has left #ruby [#ruby]
<Muz> Meh. :(
sneakyness_wk has joined #ruby
samuelj has joined #ruby
beneggett has joined #ruby
<Hanmac> >> a = [ "oca", 358422, "cppc", 21713, "tf", 10409, "bdf", 9390 ]; Hash[*a]
<al2o3cr> (Hash) {"oca"=>358422, "cppc"=>21713, "tf"=>10409, "bdf"=>9390}
<Muz> Oh cunning.
<fowl> >>require"json"; JSON('[ "oca", 358422, "cppc", 21713, "tf", 10409, "bdf", 9390]')
<al2o3cr> (Array) ["oca", 358422, "cppc", 21713, "tf", 10409, "bdf", 9390]
eldariof has quit []
sonkei has quit [Quit: Computer has gone to sleep.]
<fowl> thats parsing json^ anything more than that is called doing stuff to data
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
emmanuelux has quit [Quit: emmanuelux]
geekbri has quit [Remote host closed the connection]
robustus has quit [Quit: ZNC - http://znc.in]
bigmeow has quit [Ping timeout: 244 seconds]
jbw has joined #ruby
AlbireoX has joined #ruby
bluOxigen_ has joined #ruby
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
beneggett has quit [Ping timeout: 240 seconds]
mattp_ has quit [Ping timeout: 268 seconds]
<Mon_Ouie> I'm not sure what you're asking for… the logical and operator is &&
<JasonF> with && it doesn't work either
<JasonF> gah, my test in irb was invalid. re-running.
<Mon_Ouie> You never said what it was actually supposed to do
<Mon_Ouie> Or explained how it "didn't work"
arkiver has quit [Quit: Leaving]
<shevy> hehe
bluOxigen has joined #ruby
<JasonF> I suspect it does work, and I just performed an invalid test in irb.
beneggett has joined #ruby
mattp_ has joined #ruby
tvw has quit [Ping timeout: 272 seconds]
stephenjudkins has joined #ruby
tvw has joined #ruby
<JasonF> It worked the way I expected once I did the test properly. Sorry for wasting your time :(
haggen has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
Eiam has quit [Remote host closed the connection]
bluOxigen_ has quit [Ping timeout: 244 seconds]
linoj has quit [Quit: linoj]
jenrzzz has joined #ruby
sendoushi has joined #ruby
c0rn_ has joined #ruby
nohonor has joined #ruby
sn0wb1rd_ has joined #ruby
tvw has quit [Read error: Connection reset by peer]
elijah has left #ruby [#ruby]
joephelius has joined #ruby
joofsh has joined #ruby
wendallsan has quit [Remote host closed the connection]
sn0wb1rd has quit [Ping timeout: 260 seconds]
sn0wb1rd_ is now known as sn0wb1rd
mattp_ has quit [Ping timeout: 268 seconds]
linoj has joined #ruby
linoj has quit [Client Quit]
c0rn_ has quit [Ping timeout: 245 seconds]
duard has quit [Remote host closed the connection]
philcrissman has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
mattp_ has joined #ruby
c0rn_ has joined #ruby
<nat2610> I have a method that takes 5 parameters. I have those correctly sorted in an array
<nat2610> is there a cool trick
nwest has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<nat2610> to provide that
fbernier has quit [Ping timeout: 246 seconds]
<nat2610> instead of arg[0],arg[1]...
ndrei has quit [Ping timeout: 240 seconds]
samflores has quit [Quit: Linkinus - http://linkinus.com]
<davidcelis> nat2610: !gist the method
<davidcelis> it sounds like you have it take an *args array but you also say it takes 5 parameters
<bricker88> How do you pass variables to a lambda? I thought it was the same as a Proc, but I am missing something obviously:
<nat2610> right
<bricker88> >> block = Proc.new { |n| n + 10 }
<al2o3cr> (Proc) #<Proc:0x00000000c82e18@(eval):1>
<davidcelis> nat2610: an *args array can be of any length
sdwrage has quit [Quit: geekli.st/programmer]
<bricker88> >> block = lambda { |n| n + 10 }
<al2o3cr> (Proc) #<Proc:0x00000000e92e88@(eval):1 (lambda)>
<bricker88> wait
<bricker88> that doesn't work in irb
<davidcelis> bricker88: bro its da same
ltsstar has joined #ruby
<davidcelis> bricker88: str8 up
berserkr has quit [Quit: Leaving.]
<bricker88> davidcelis: ah - not with the 1.9 lambda syntax though?
<bricker88> >> block = -> { |n| n + 10 }
<al2o3cr> -e:1:in `eval': (eval):1: syntax error, unexpected '|' (SyntaxError), block = -> { |n| n + 10 }, ^, from -e:1:in `<main>'
<Mon_Ouie> ->(n) { n + 10 }
LennyLinux is now known as Goa
<bricker88> >> block = -> { "hello" }; block.call
<al2o3cr> (String) "hello"
<Mon_Ouie> >> ->(n) { n + 10 }.call 5
<al2o3cr> (Fixnum) 15
<bricker88> Mon_Ouie: rad, thank you
Goa is now known as Guest28950
LennyLinux has joined #ruby
hbpoison has joined #ruby
Guest28950 has quit [Read error: Connection reset by peer]
Faris1 has left #ruby [#ruby]
rjsamson has joined #ruby
pskosinski has joined #ruby
Takehiro has joined #ruby
Spooner has joined #ruby
riyonuk has left #ruby [#ruby]
c0rn_ has quit [Ping timeout: 248 seconds]
Russell^^ has quit [Quit: Russell^^]
Morkel has quit [Quit: Morkel]
gfontenot has quit []
headius has joined #ruby
sonkei has joined #ruby
joofsh has quit [Ping timeout: 245 seconds]
c0rn_ has joined #ruby
mattp_ has quit [Read error: Operation timed out]
Goles has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Takehiro has quit [Ping timeout: 272 seconds]
c0rn_ has quit [Ping timeout: 272 seconds]
<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
<al2o3cr> (String) "11000101101111110111111000101110011"
stim371 has quit [Ping timeout: 246 seconds]
gaahrdner has quit [Remote host closed the connection]
robotmay has joined #ruby
carrythezero has joined #ruby
c0rn_ has quit [Ping timeout: 245 seconds]
axl_ has quit [Quit: axl_]
chessguy has quit [Remote host closed the connection]
sendoushi has quit [Remote host closed the connection]
internet_user has quit [Remote host closed the connection]
<davidcelis> binary boobs
beneggett has quit [Quit: Computer has gone to sleep.]
sneakyness_wk has quit [Ping timeout: 244 seconds]
fixl has joined #ruby
c0rn_ has joined #ruby
AlbireoX has quit [Ping timeout: 260 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
flip_digits has joined #ruby
daniel_hinojosa has joined #ruby
<Hanmac> fowl:
<Hanmac> >> "boobs".each_byte.with_object(2).map(&:to_s).join
<al2o3cr> (String) "11000101101111110111111000101110011"
sneakyness_wk has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
<fowl> you know you dont have to symbol#to_proc everything Hanmac
<lectrick> Hanmac: So just do a modulo?
ilyam has quit [Quit: ilyam]
beneggett has joined #ruby
<davidcelis> fowl: false
<matti> ;]
lushious has quit [Remote host closed the connection]
<Hanmac> fowl: do you like that more?
<Hanmac> >> "boobs".each_byte.map(&"%b".method(:%)).join
<al2o3cr> (String) "11000101101111110111111000101110011"
triptec has joined #ruby
bbttxu has quit [Quit: bbttxu]
daniel_hinojosa has quit [Client Quit]
recycle has joined #ruby
justinmcp has joined #ruby
beneggett has quit [Ping timeout: 260 seconds]
S2kx has joined #ruby
recycle has quit [Remote host closed the connection]
LouisGB has quit [Ping timeout: 260 seconds]
JasonF has left #ruby [#ruby]
S1kx has quit [Ping timeout: 252 seconds]
carloslopes has quit [Quit: Leaving.]
axl_ has joined #ruby
adeponte has joined #ruby
kirun has quit [Quit: Client exiting]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sonkei has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
krawchyk_ has quit [Remote host closed the connection]
joshman_ has quit [Ping timeout: 252 seconds]
jonathanwallace has quit [Remote host closed the connection]
c0rn_ has quit [Ping timeout: 244 seconds]
dangerousdave has quit [Quit: Leaving...]
pdtpatrick has joined #ruby
c0rn_ has joined #ruby
chessguy has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
haxrbyte has joined #ruby
ltsstar has quit [Quit: ltsstar]
stephenjudkins has quit [Quit: stephenjudkins]
<shevy> that's a lot of 0 and 1 for boobs
cj3kim has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
<matti> shevy: ;]
Jake232 has quit [Quit: Computer has gone to sleep.]
Eiam has joined #ruby
bluenemo has joined #ruby
Eiam has quit [Changing host]
Eiam has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
recycle has joined #ruby
cmasseraf has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has joined #ruby
jimeh2 has joined #ruby
Guedes0 has joined #ruby
poeks has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<shevy> matti
<shevy> why do some packages install their .pc files into /usr/share/pkgconfig
<shevy> this drives me nuts
DrShoggoth has quit [Quit: Leaving]
<matti> Why?
[Neurotic] has joined #ruby
<lectrick> What is the science that relates information to physics?
<shevy> lectrick physicists?
<cmasseraf> Information theory
<lectrick> Where you run into weird concepts like the energy of a piece of information
<cmasseraf> e.g. Maxwell Demon
<shevy> matti, because 99% of the other packages install to /usr/lib/pkgconfig
<coyo> lectrick: information theory, probably. computational mathematics, maybe?
<coyo> computational mathematics
<shevy> matti, and typically, for some reason pkg-config does not seem to look at /usr/share/pkgconfig by default (or so it seems)
c0rn_ has quit [Ping timeout: 268 seconds]
beneggett has joined #ruby
<coyo> shevy: how difficult is it to create gems of existing projects or libraries and set gems up to auto-compile native extensions?
<lectrick> Something to do with entropy and information theory
<shevy> coyo very easy. you need one file, the .gemspec
<coyo> .gemspec . okay O:
<coyo> so learn gemspec?
<shevy> coyo, no idea about compiling native extensions though. I am sure there are fuckups for this on windows
mbk has quit [Ping timeout: 255 seconds]
<cmasseraf> lectrick, what are you looking for exactly?
<shevy> .gemspec is 90% really simple coyo
<coyo> shevy: okay, reading. thank you, shevy
<shevy> coyo it is best to pick one project and look at its .gemspec, this is how I learned most of it
<shevy> and then start making your own gems :-)
Bosma has quit [Quit: leaving]
sdeng has left #ruby [#ruby]
c0rn_ has joined #ruby
lushious has joined #ruby
banisterfiend has joined #ruby
<coyo> shevy: well, i was thinking of specializing in writing gems (as in, as a primary hobby/vocation)
<coyo> i imagine if i got really really good at it, i would be valuable.
<shevy> eh, writing projects in the first place is more important ;)
Takehiro has joined #ruby
<coyo> well, there are a lot of really awesome projects already out there.
<coyo> such as blather and cinch
<coyo> gosu and celluloid
pricees has quit [Quit: leaving]
<coyo> hmm.
<lectrick> Maybe it was this. http://en.wikipedia.org/wiki/Digital_physics
stephenjudkins has joined #ruby
<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]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
recycle has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
bigmeow has joined #ruby
<Paradox> how i felt about the apple press conference: http://i.imgur.com/DDuee.jpg
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]
bricker88 has quit [Quit: Leaving.]
ZachBeta has joined #ruby
<cmasseraf> there are several, that say diferent stuff
<coyo> i've never heard of appcelerator titanium
<coyo> oh wait, yes i have. appcelerator is web-based. i would prefer rhomobile because it's native
bananagram has quit [Read error: Connection reset by peer]
<coyo> but it depends on what you want.
uris has quit [Quit: leaving]
specialGuest has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
MasterIdler_ has joined #ruby
<cmasseraf> appcelerator compiles the html/js? kinda weird but resonably fast
bananas has joined #ruby
c0rn_ has quit [Ping timeout: 264 seconds]
<coyo> hmm.
MasterIdler_ has quit [Client Quit]
bier has joined #ruby
SCommette has quit [Quit: SCommette]
RegEchse has joined #ruby
samflores has joined #ruby
SCommette has joined #ruby
MasterIdler has quit [Ping timeout: 260 seconds]
c0rn_ has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
johnlcox has quit [Quit: Computer has gone to sleep.]
fris has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
sonkei has joined #ruby
SCommette has quit [Quit: SCommette]
horofox has quit [Quit: horofox]
baroquebobcat has quit [Quit: baroquebobcat]
c0rn_ has quit [Ping timeout: 245 seconds]
c0rn_ has joined #ruby
eroc has quit [Quit: eroc]
riley526 has joined #ruby
mercwithamouth has joined #ruby
thiagopnts has quit [Quit: Leaving]
g_rotbart has joined #ruby
bananagram has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
AlbireoX has joined #ruby
m_3 has quit [Read error: Connection reset by peer]
stopbit has quit [Quit: Leaving]
sailias has quit [Client Quit]
haxrbyte has quit [Remote host closed the connection]
mrdodo_ has quit [Remote host closed the connection]
aliljet has joined #ruby
m_3 has joined #ruby
c0rn_ has quit [Ping timeout: 246 seconds]
samflores has quit [Quit: Linkinus - http://linkinus.com]
Beoran_ has joined #ruby
headius has quit [Quit: headius]
c0rn_ has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
Beoran has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
crocket has quit [Quit: ZNC - http://znc.in]
beneggett has quit [Quit: Computer has gone to sleep.]
fris has left #ruby [#ruby]
rjsamson has quit [Remote host closed the connection]
stepnem has quit [Ping timeout: 252 seconds]
ilyam has joined #ruby
c0rn_ has quit [Ping timeout: 260 seconds]
Takehiro has quit [Ping timeout: 272 seconds]
c0rn_ has joined #ruby
robotmay has quit [Remote host closed the connection]
bbttxu has joined #ruby
ngoldman has quit [Remote host closed the connection]
horofox has joined #ruby
ilyam has quit [Client Quit]
horofox has quit [Client Quit]
jjang has joined #ruby
ph^ has quit [Ping timeout: 255 seconds]
rullie has left #ruby [#ruby]
chrxn__ has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
luckyruby has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
cascalheira has joined #ruby
cascalheira has quit [Client Quit]
ephemerian has quit [Quit: Leaving.]
statarb3 has quit [Quit: Leaving]
Bosma has joined #ruby
xbayrockx has quit []
Criztian has quit [Remote host closed the connection]
dmiller has joined #ruby
c0rn_ has quit [Ping timeout: 272 seconds]
ZachBeta has joined #ruby
hbpoison has quit [Quit: leaving]
Markvilla has joined #ruby
RichieEvan has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
c0rn_ has joined #ruby
ZachBeta has quit [Client Quit]
clj_newb has quit [Ping timeout: 240 seconds]
justinmcp has joined #ruby
chessguy has quit [Remote host closed the connection]
thunderstrike has quit [Read error: Connection reset by peer]
v0n has quit [Quit: Leaving]
thunderstrike has joined #ruby
adeponte has joined #ruby
skrewler has joined #ruby
savage- has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
Nathandim has joined #ruby
beneggett has joined #ruby
nari has joined #ruby
mikepack has quit [Remote host closed the connection]
RichieEvan has quit [Read error: Connection reset by peer]
nullsign has quit [Quit: Changing server]
RichieEvan has joined #ruby
rjsamson has joined #ruby
c0rn_ has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
hbpoison has joined #ruby
c0rn_ has joined #ruby
await has quit [Quit: await]
bananas has quit [Quit: leaving]
austinbv has joined #ruby
pdtpatrick has quit [Quit: pdtpatrick]
khakimov has joined #ruby