fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
<shevy> this seems to create a proper directory in ruby SITE DIR
robert_ has quit [Ping timeout: 246 seconds]
<shevy> mkdir -p lib/ruby/site_ruby/1.9.1/bar
headius has joined #ruby
<shevy> so now when I go there... the project bar/ has a directory
Markvilla_ has quit [Quit: Markvilla_]
<shevy> but only for the .rb files hmmmm
Stalkr_ has quit [Quit: Leaving...]
savage- has joined #ruby
<shevy> you said some people put it inside lib/
<shevy> ah nevermind
<shevy> I am going to do that too, seems simplest
facefox_com has quit []
ZachBeta has quit [Read error: Connection reset by peer]
burgestrand has quit [Quit: Leaving.]
ZachBeta has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
<n_blownapart> hi I know this is not a match, but is there a misprint here in the first char class, ie. there should be a second bracket around a-w ? thanks: /[a-w&&[^c-g]z/.match("e")
w400z has joined #ruby
CalebIO has joined #ruby
<n_blownapart> ^^ the error message is premature end of char-class
<fowl> yea your missing a bracket there
<n_blownapart> fowl thanks its a misprint then. I thought somehow the two char-classes were combined and I had something else wrong. thanks fowl, varreli
joshman_ has joined #ruby
kirun has quit [Quit: Client exiting]
joshman_ has quit [Client Quit]
minijupe has quit [Quit: minijupe]
Spooner has quit [Ping timeout: 250 seconds]
Jay_Levitt has quit [Quit: Jay_Levitt]
jasonLaster has joined #ruby
digital-ghost has joined #ruby
virunga has quit [Quit: Sto andando via]
ZachBeta has quit [Read error: Connection reset by peer]
<n_blownapart> fowl you on?
sailias has joined #ruby
jonathanwallace has joined #ruby
ZachBeta has joined #ruby
Markvilla has joined #ruby
chichou has quit [Remote host closed the connection]
Markvilla has quit [Client Quit]
Filuren has joined #ruby
Markvilla has joined #ruby
<n_blownapart> actually fowl the missing bracket was after the z. a-w doesn't take the closing bracket so now I don't understand why z is not included in the match criteria: /[a-w&&[^c-g]z]/.match("e")
Filuren has quit [Client Quit]
jonathanwallace has quit [Ping timeout: 250 seconds]
w0lverine has quit [Quit: w0lverine]
w0lverine has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
nohonor has joined #ruby
<n_blownapart> ^^ i.e. this returns nil : /[a-w&&[^c-g]z]/.match("z")
brianpWins has quit [Quit: brianpWins]
sailias has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby
CalebIO has quit [Quit: CalebIO]
<Banistergalaxy> Fowl I want to pair with u
al2o3cr has quit [Ping timeout: 272 seconds]
resure has quit [Remote host closed the connection]
ThaDick has quit [Quit: I'm outta here!]
<rking> >=(
<fowl> n_blownapart: play around with it on rubular.com
al2o3cr has joined #ruby
Bosma has quit [Quit: leaving]
<n_blownapart> the book says to read z as "OR". that's what I don't get. fowl et al ^^
<fowl> n_blownapart: /[a-wz&&[^c-g]]/
burgestrand has quit [Ping timeout: 244 seconds]
apeiros_ has joined #ruby
<n_blownapart> ^^ correction read it like this : ([a-w] AND ([^c-g] OR z))
<fowl> oh
mockra has joined #ruby
<fowl> what book is this
freeayu has joined #ruby
<fowl> rubular says [abc]A single character of: a, b or c
<n_blownapart> its ruby-doc.org fowl, I mean
<fowl> ive never seen && used in regex
klip has quit [Read error: Operation timed out]
<rking> Neither have I.
<rking> n_blownapart: What page?
<rking> Quite amazing.
<n_blownapart> it says to perform set intersections on its arguments. http://www.ruby-doc.org/core-1.9.3/Regexp.html rking yeah scroll down to like the 9th box
<rking> Somewhat of a small thing to optimize, but then again '&&' makes no sense in a character class, so you've got some free room for features.
Markvilla has quit [Ping timeout: 246 seconds]
igotnolegs has joined #ruby
Markvilla has joined #ruby
jasonLaster has quit [Remote host closed the connection]
<n_blownapart> rking I'm a noob. what do you mean a small thing to optimize?
jasonLaster has joined #ruby
mengu has quit [Remote host closed the connection]
<fowl> n_blownapart: that only seems to work with characters that are in the first one, because it has to be AND'd in
karakedi has joined #ruby
<rking> n_blownapart: I mean that all you're doing is constructing a list of single chars. It's something you could often specify without && and it'd be decently terse. Though, I think if you threw in Unicode problems it would get more useful.
<fowl> this for example /[1-7&&[^5-8]6]/ will select six because it was in the first one (6 and 6) change the last char to 9 though and it will look for (9 and 9) but since the first one fails it wont match the 9
jasonLaster has quit [Ping timeout: 272 seconds]
<fowl> try it on rubular.com with 01234567890 as the test string and play around with the last character
<fowl> (in the regex)
Speed has quit [Remote host closed the connection]
<n_blownapart> but the intersection of the sets would be on either side of the && , right?
<n_blownapart> fowl rking
<n_blownapart> ^^
<n_blownapart> meaning the two sets would be on either side.
<fowl> you're thinking of ||
<fowl> i think
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
sailias has joined #ruby
apeiros_ has quit [Ping timeout: 244 seconds]
<fowl> z does nothing on that side of the && because 'z' doesnt get past first condition a-w, i think they just put it there to show that the normal order is OR
jasonLaster has joined #ruby
<fowl> bbl
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
robert_ has quit [Ping timeout: 265 seconds]
taypen has quit [Ping timeout: 244 seconds]
jjbohn has joined #ruby
sailias has quit [Read error: Connection reset by peer]
<n_blownapart> oh yeah fowl I get it. that is an odd notation to me. thanks rking fowl
burgestrand has joined #ruby
banisterfiend has joined #ruby
sailias has joined #ruby
yasushi has joined #ruby
savage- has quit [Remote host closed the connection]
<n_blownapart> btw fowl rubular is very cool
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
<banisterfiend> n_blownapart: hey verelli
Mchl has joined #ruby
richardcreme has quit [Quit: leaving]
<n_blownapart> hey man (varreli)
richardcreme has joined #ruby
<n_blownapart> its my grandma's maiden name
<banisterfiend> n_blownapart: you're italian?
<n_blownapart> banisterfiend: yeah very. on both sides. fowl was just walking me through this quagmire: /[a-w&&[^c-g]z/.match("e")
<banisterfiend> n_blownapart: you're in good hands with fowl
<n_blownapart> banisterfiend: yeah he is cool. I still think he means "foul" in his moniker, but one cannot be sure...
sailias has quit [Quit: Leaving.]
quest88 has joined #ruby
<banisterfiend> n_blownapart: have u heard blue alert
<sprink> is there something similar to pythons 'argparse' for ruby?
defendguin has joined #ruby
punkrawkR has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<n_blownapart> banisterfiend: music?
m_3 has quit [Ping timeout: 240 seconds]
<n_blownapart> ^^ no
<banisterfiend> n_blownapart: leonard cohen's girlfriend
mmokrysz has joined #ruby
<n_blownapart> banisterfiend: oh is she one of two sisters?
<banisterfiend> No.
<banisterfiend> those girls are only 30
<banisterfiend> cohen is pushing 80
<banisterfiend> his gf is about 45-50 iirc
taypen has joined #ruby
taypen has quit [Changing host]
taypen has joined #ruby
<rking> banisterfiend: Blah blah blah—ENOUGH!! .ssh/id_rsa.pub or suffer consequences.
<banisterfiend> haha
<n_blownapart> banisterfiend: she sings with him? is she African-American?
<banisterfiend> ok one sec pig
Hanmac1 has joined #ruby
<rking> Cool.
m_3 has joined #ruby
vvgomes has joined #ruby
<banisterfiend> n_blownapart: no
<banisterfiend> n_blownapart: google anjani thomas
<n_blownapart> banisterfiend: ok
busybox42 has quit [Remote host closed the connection]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
Hanmac has quit [Ping timeout: 264 seconds]
mfridh has quit [Ping timeout: 250 seconds]
chimkan_ has quit [Quit: chimkan_]
<n_blownapart> banisterfiend: hey I'm still having trouble with this : /[a-w&&[^c-g]z]/ #read like this: ([a-w] AND ([^c-g] OR z))
<n_blownapart> banisterfiend: ^^ why would z be included in the outermost brackets?
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
burgestrand has quit [Quit: Leaving.]
verbad has joined #ruby
ringotwo has joined #ruby
vvgomes has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
<n_blownapart> the notation ]z] is to be read OR z ....? banisterfiend
emmanuelux has quit [Ping timeout: 250 seconds]
yasushi has quit [Ping timeout: 250 seconds]
jonathanwallace has joined #ruby
<n_blownapart> i.e I would think that z would be included in the match. ^^
vvgomes has joined #ruby
<n_blownapart> I see that && does not include z, but why would the notation be that way....
<n_blownapart> correction a-w ^^
robert_ has joined #ruby
sailias has joined #ruby
fixl has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
<iamjarvo> so if i have this http://pastie.org/private/gio3tmxbobqtxsdedb8cha and thats all that class does. is there any reason to test that? and if there is a reason to test what would I test?
baphled has quit [Ping timeout: 264 seconds]
<banisterfiend> n_blownapart: can u tell me more about the presentation at berkeley? :P
robert_ has quit [Ping timeout: 265 seconds]
savage- has joined #ruby
<n_blownapart> banisterfiend: there were about say 25 people attending. I don't remember the guys name who gave the talk but there was attentive interest.
<banisterfiend> n_blownapart: did things go smoothly? or were there bugs/problems?
hsbt is now known as hsbt_away
S1kx has quit [Ping timeout: 244 seconds]
justsee|away is now known as justsee
<n_blownapart> banisterfiend: from what I recall it went smoothly. more of an overview of features. people installed the gem and tinkered with pry. I took handwritten notes...the ones I sent you.
<n_blownapart> banisterfiend: I am still vague about what it does, but I think there was a lot of discussion about debugging.
SphericalCow has quit [Quit: Leaving]
<n_blownapart> I don't understand how rubular works, because z and a return a match with this regex: /[a-w&&[^c-g]z]/
r0bby is now known as robbyoconnor
hunglin has joined #ruby
hunglin has quit [Client Quit]
hunglin has joined #ruby
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Mchl has joined #ruby
mikeric has quit [Quit: mikeric]
TorpedoSkyline has quit [Quit: Computer has gone to sleep.]
Tsunekazu has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<ryanf> oh cool, I was wondering about that
<ryanf> n_blownapart: cirwin and I talked about going but then forgot
<ryanf> of course
jorge has joined #ruby
phinfonet has quit [Quit: phinfonet]
<n_blownapart> ryanf you in SF area? cirwin? I can't remember much either...
yasushi has joined #ruby
hsbt_away is now known as hsbt
<banisterfiend> rking: what's the diff b/w pry_eval and mock_pry ?
<banisterfiend> they look kind of the same
<rking> banisterfiend: That's what ryanf is teaching me, though I don't fully get it.
<banisterfiend> ryanf: there's one thing i have against the push based thingy, and that's that it skips a lot of the read stuff, like before_read / after_read hooks etc
busybox42 has joined #ruby
<banisterfiend> also it's kind of clean that all pry input comes from teh same place (an input object), rather than kind of forced directly into pry & skipping the input object
<ryanf> yeah, it's kind of a trade-off. the inconsistency with real life would be temporary though, since the theory is making the real io work the same way. at which point hooks would have to be consistent one way or another
<ryanf> this isn't #pry btw ;)
<banisterfiend> oh
<banisterfiend> good point
<n_blownapart> http://pastie.org/4392189 -- this code and description is baffling me: if && performs an intersection of sets, why is z excluded as a match?
r0bby has joined #ruby
<ryanf> n_blownapart: yes, we both live in the bay area
<fowl> n_blownapart: because false && (true or true) is still false
defendguin has quit [Quit: Leaving.]
<fowl> most of the time you dont use && in character sets
lusory has quit [Read error: Connection reset by peer]
vvgomes has quit [Ping timeout: 272 seconds]
<n_blownapart> fowl that makes sense, read as a normal operand, but the description says it works as an intersection of sets, which would include z, wouldn't it?
<ryanf> no
<ryanf> you may be thinking of union
<ryanf> intersection = only common elements
vvgomes has joined #ruby
<n_blownapart> ryanf bingo. thanks, I was tripping
robbyoconnor has quit [Ping timeout: 246 seconds]
<n_blownapart> I was thinking union ryanf
stephenjudkins has quit [Quit: stephenjudkins]
<Axsuul> it appears that Array#map seems to auto-sort my values? How do I turn this off/?
<ryanf> no
justsee is now known as justsee|away
uris has quit [Ping timeout: 264 seconds]
vvgomes has quit [Ping timeout: 240 seconds]
chessguy has quit [Remote host closed the connection]
uokesita has joined #ruby
mahmoudimus has quit [Ping timeout: 250 seconds]
vvgomes has joined #ruby
r0bby is now known as robbyoconnor
vvgomes has quit [Ping timeout: 272 seconds]
vvgomes has joined #ruby
verbad has quit []
TorpedoSkyline has joined #ruby
w400z has quit []
defendguin has joined #ruby
Guitar_Pro has joined #ruby
Guitar_Pro has left #ruby [#ruby]
nazty has joined #ruby
naz has quit [Read error: Connection reset by peer]
igotnolegs has quit [Quit: Computer has gone to sleep.]
vvgomes has quit [Ping timeout: 246 seconds]
vvgomes has joined #ruby
vitoravelino is now known as vitoravelino`afk
lusory has joined #ruby
jasonLaster has quit [Remote host closed the connection]
<n_blownapart> how does (..) symbolize "at" in this regex? : /[csh](..) [csh]\1 in/.match("The cat sat in the hat")
deryl has quit [Quit: Updating to Mountain Lion. Back later]
khakimov has quit [Quit: Computer has gone to sleep.]
defendguin has quit [Quit: Leaving.]
vitoravelino`afk is now known as vitoravelino
jonathanwallace has joined #ruby
bluenemo has quit [Remote host closed the connection]
<bperry> n_blownapart: .. is two arbitrary characters
kpshek has joined #ruby
<bperry> it would also match "by" and "so"
<bperry> almost that whoel sound of music song as well
radic has quit [Disconnected by services]
radic_ has joined #ruby
<bperry> so that regex itself would match any word that started with c, s, or h
ghaydarov has quit [Quit: Leaving...]
<bperry> the followed by two arbitrary characters
radic_ is now known as radic
<bperry> car cow saw sax how hax
<n_blownapart> bperry: but ... would not be a match because the words beginning with csh are all three letter words, right?
jonathanwallace has quit [Ping timeout: 246 seconds]
<bperry> I don't get the question
<bperry> it would match four letter words yes
<bperry> that start with c, s or h
<n_blownapart> if it were (...) it would .....ok thanks. got it. I'm a noob. bperry question to follow...
<bperry> no worries
jjbohn has quit [Quit: Leaving...]
Tomasso has joined #ruby
<n_blownapart> in what case would you use such a regex? it seems so roundabout to type [csh](..) bperry
Gab0 has quit [Quit: No Ping reply in 180 seconds.]
Gab0 has joined #ruby
<bperry> regular expressions are awesome, they are very handy
<bperry> that regex itself isn't useful
<bperry> but knowing how it works allows you to create your own
<bperry> so you can match patterns of text easily
<bperry> and they are useful outside of ruby as well
<bperry> the most common are PCREs, or perl compatible regular expressions
Z_Mass has quit [Ping timeout: 244 seconds]
<n_blownapart> bperry: thanks so much.
Layke2 has quit [Remote host closed the connection]
justsee|away is now known as justsee
<n_blownapart> bperry: I was having trouble with. why would you write a regex like the following, to search for a set of letters expressed as the intersection of two sets? : /[a-w&&[^c-g]z]/
burntbit has quit [Quit: Ex-Chat]
<bperry> that sounds like a homework problem :)
jgrevich has quit [Quit: jgrevich]
<n_blownapart> yes it does !
<n_blownapart> but why would I ever search with two sets intersecting to give me my criteria?
<n_blownapart> bperry: ^^
savage- has quit [Remote host closed the connection]
thecreators has joined #ruby
darren has joined #ruby
<bperry> in case you want to find where two words share a pattern
<bperry> or two strings, that is probbably the more correct answer
<ryanf> n_blownapart: it could be an easy way to do exclusion
<ryanf> like that example is a bit implausible
<ryanf> but what about /[a-z&&[^c-g]]/
kpshek has quit [Ping timeout: 240 seconds]
taypen has quit [Quit: Leaving]
shadoi has quit [Quit: Leaving.]
<Spaceghostc2c> rking: Sorry for disappearing.
<Spaceghostc2c> I have to make dinner.
<n_blownapart> ryanf: bperry thanks. /[a-w&&[^c-g]z]/ was baffling because z was stuck on the end to be read as "OR z." in this case && can't really be read as "AND" because that english syntax would not really describe an intersection of two sets, because otherwise z would be included. right?
Banistergalaxy has quit [Ping timeout: 272 seconds]
<ryanf> no, set intersection always means just the element they have in common
<ryanf> "and" is slightly unintuitive since "and" can also mean "all of the inputs together", but in this case it means each element has to be in one set AND the other I guess
<n_blownapart> ryanf: I agree that is interesting.
<n_blownapart> ryanf: thanks
klip has joined #ruby
lledet has joined #ruby
Banistergalaxy has joined #ruby
mmokrysz has quit [Quit: Leaving.]
sailias1 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
sailias1 has quit [Client Quit]
imami|afk has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 272 seconds]
freeayu has quit [Ping timeout: 250 seconds]
freeayu has joined #ruby
TorpedoSkyline has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mahmoudimus has joined #ruby
niklasb has quit [Ping timeout: 240 seconds]
<lledet> is there a gem to connect to web sockets?
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
cakehero has quit [Quit: Leaving...]
yasushi has quit [Read error: Connection reset by peer]
javon has joined #ruby
xaq has quit [Remote host closed the connection]
User_420 has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
tk_ has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
ringotwo has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 264 seconds]
Taichou_ has joined #ruby
n_blownapart has quit [Remote host closed the connection]
krnlsndrs has quit [Ping timeout: 272 seconds]
jrajav has joined #ruby
Taichou_ has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
Banistergalaxy has quit [Ping timeout: 272 seconds]
xaq has joined #ruby
fbernier has joined #ruby
TheShadowFog has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 244 seconds]
AnarchoTroll has joined #ruby
td123 has joined #ruby
<AnarchoTroll> Guys, I am trying to build a C extension and I am having trouble setting up extconf.rb . Can anyone here help me?
zigidias has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
fbernier has quit [Ping timeout: 246 seconds]
deryl has joined #ruby
yasushi has joined #ruby
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 272 seconds]
{aaron} has joined #ruby
danrasband has quit [Quit: Leaving]
uris has joined #ruby
apeiros_ has joined #ruby
<{aaron}> is there a way to reopen a class and override the initializer but be able to call the original (without aliasing it)?
<banisterfiend> {aaron}: Yeah
<banisterfiend> {aaron}: class Bing; old = instance_method(:initialize); define_method(:initialize) { old.bind(self).call }
lledet has quit [Quit: lledet]
<{aaron}> ok thanks
brianpWins has joined #ruby
SegFaultAX has quit [Quit: Lost terminal]
apeiros_ has quit [Ping timeout: 250 seconds]
lledet has joined #ruby
lledet has quit [Client Quit]
<epitron> holy shit... that's so hax
tiripamwe has quit [Ping timeout: 246 seconds]
vaks3 has joined #ruby
vvgomes has quit [Ping timeout: 240 seconds]
vaks3 has quit [Client Quit]
vaks3 has joined #ruby
freeayu__ has quit [Ping timeout: 246 seconds]
chimkan has joined #ruby
chimkan has left #ruby [#ruby]
<{aaron}> i was thinking it might be possible via module inclusion, perhaps i could grab the original method from the passed base in that case
jonnn has joined #ruby
ryanf has quit [Quit: Lost terminal]
noyb has joined #ruby
ryanf has joined #ruby
MoMo has joined #ruby
freeayu__ has joined #ruby
<banisterfiend> {aaron}: it depends what u r trying to do
<banisterfiend> {aaron}: u never said anything about module inclusion to me ;)
passbe has quit [Quit: WeeChat 0.3.8]
<deryl> to anyone
jonnn has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tiripamwe has joined #ruby
<banisterfiend> deryl: well, he might have whispered to someone in secret
<banisterfiend> we dont know for sure, what this man does behind closed doors
<deryl> same as the man behind the curtain!
<deryl> we ignore him too! The Wizard said to!
Beoran has quit [Ping timeout: 264 seconds]
justsee is now known as justsee|away
headius has quit [Quit: headius]
daniel_hinojosa has joined #ruby
<{aaron}> banisterfiend, just trying to do whatever is cleanest. i'm reopening and overriding initialize to set a member field. i could easily do it via subclassing but for other reasons in this codebase that's possible
yasushi has quit [Remote host closed the connection]
digital-ghost has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<{aaron}> the method you suggested works fine, although i have to double check that the field i'm setting is in the right context
yasushi has joined #ruby
<banisterfiend> {aaron}: all of it sounds pretty weird
<banisterfiend> {aaron}: can't you get initialize() to call a method like setup()
<banisterfiend> nevermind, not enough info on your design
justsee|away is now known as justsee
klip has quit [Read error: Operation timed out]
jonathanwallace has joined #ruby
vaks3 has quit []
DrShoggoth has quit [Read error: Connection reset by peer]
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
naz has joined #ruby
nazty has quit [Read error: Connection reset by peer]
yasushi has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 244 seconds]
ananthakumaran has joined #ruby
<rking> Spaceghostc2c: It's cool. We'll catch up again.
w400z has joined #ruby
Beoran has joined #ruby
u_u has quit [Ping timeout: 246 seconds]
DrShoggoth has joined #ruby
savage- has joined #ruby
hunglin has quit [Quit: Leaving.]
strife25 has quit [Quit: Computer has gone to sleep.]
Tomasso has quit [Ping timeout: 246 seconds]
otters has quit [Ping timeout: 246 seconds]
andrewhl has quit [Remote host closed the connection]
andrewhl has joined #ruby
igotnolegs has joined #ruby
naz has quit [Ping timeout: 264 seconds]
andrewhl has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
paigeat has joined #ruby
TheNumb has quit [Ping timeout: 260 seconds]
RichieEvan_ has quit [Ping timeout: 248 seconds]
<AnarchoTroll> When using mkmf to generate a makefile, I would like to include another folder that contains source code. This folder has both headers and files. Do you know how to do this?
csamuelson has joined #ruby
jeff_sebring has joined #ruby
lepht_ has joined #ruby
viper has joined #ruby
milky has joined #ruby
lepht has quit [Quit: ZNC - http://znc.sourceforge.net]
Rious has quit [Quit: ZNC - http://znc.sourceforge.net]
classix has quit [Ping timeout: 260 seconds]
matti has quit [Ping timeout: 260 seconds]
lepht_ is now known as lepht
fumbe has quit [Ping timeout: 260 seconds]
chiel has quit [Ping timeout: 260 seconds]
zaargy has quit [Ping timeout: 260 seconds]
saispo has quit [Ping timeout: 260 seconds]
dagobah_ has quit [Ping timeout: 260 seconds]
Gonzih has quit [Ping timeout: 260 seconds]
Veejay has quit [Ping timeout: 260 seconds]
faen has quit [Ping timeout: 260 seconds]
RichGuk has quit [Ping timeout: 260 seconds]
erratic has quit [Ping timeout: 260 seconds]
icy` has quit [Ping timeout: 260 seconds]
epochwolf has quit [Ping timeout: 260 seconds]
affix has quit [Ping timeout: 260 seconds]
ryanRT has quit [Ping timeout: 260 seconds]
malcolmva has quit [Ping timeout: 260 seconds]
rotor has quit [Ping timeout: 260 seconds]
ryanRT has joined #ruby
csamuelson is now known as Rious
matti has joined #ruby
Veejay has joined #ruby
chiel has joined #ruby
viper is now known as Guest99552
saispo has joined #ruby
TheNumb has joined #ruby
Chryson has joined #ruby
zaargy has joined #ruby
classix has joined #ruby
epochwolf has joined #ruby
andrewhl has quit [Ping timeout: 240 seconds]
Gonzih has joined #ruby
RichGuk has joined #ruby
fumbe has joined #ruby
dagobah has joined #ruby
faen has joined #ruby
yasushi has joined #ruby
klip has joined #ruby
affix has joined #ruby
rotor has joined #ruby
justsee is now known as justsee|away
s1n4 has joined #ruby
baroquebobcat has joined #ruby
jrajav has quit [Quit: The best darkness is strange and surprising]
vvgomes has joined #ruby
u_u has joined #ruby
justsee|away is now known as justsee
spinagon has joined #ruby
snevq has joined #ruby
<snevq> 3/quit
snevq has quit [Client Quit]
uokesita has quit [Quit: This computer has gone to sleep]
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
jorge has quit [Remote host closed the connection]
mmokrysz has joined #ruby
busybox42 has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
noyb has quit [Remote host closed the connection]
yasushi has quit [Ping timeout: 246 seconds]
itnomad has quit [Quit: Leaving]
mmokrysz has quit [Quit: Leaving.]
headius has joined #ruby
javon has quit [Quit: leaving]
andrewhl has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
savage- has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
savage- has joined #ruby
mockra has joined #ruby
monkegjinni has joined #ruby
otters has joined #ruby
jonathanwallace has quit [Ping timeout: 240 seconds]
nari has joined #ruby
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
Hanmac1 is now known as Hanmac
yasushi has joined #ruby
libryder has left #ruby [#ruby]
deryl has quit [Quit: deryl]
philips_ has quit [Excess Flood]
robbyoconnor has quit [Ping timeout: 272 seconds]
uris has quit [Quit: leaving]
iamjarvo has quit [Read error: Connection reset by peer]
chimkan has joined #ruby
graspee has joined #ruby
philips_ has joined #ruby
andrewhl has quit [Remote host closed the connection]
andrewhl has joined #ruby
Chryson has quit [Quit: Leaving]
robbyoconnor has joined #ruby
w0lverine has quit [Ping timeout: 240 seconds]
xaq has quit [Remote host closed the connection]
chimkan has left #ruby [#ruby]
defendguin has joined #ruby
ttilley is now known as ttilley_off
w0lverine has joined #ruby
xaq has joined #ruby
andrewhl has quit [Ping timeout: 246 seconds]
yasushi has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
yasushi has joined #ruby
chussenot has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: seanstickle]
vvgomes has quit [Ping timeout: 250 seconds]
headius has quit [Quit: headius]
pskosinski has joined #ruby
apeiros_ has joined #ruby
passbe has joined #ruby
passbe has quit [Changing host]
passbe has joined #ruby
krz has joined #ruby
vvgomes has joined #ruby
busybox42 has joined #ruby
apeiros_ has quit [Ping timeout: 272 seconds]
spinagon has quit [Ping timeout: 246 seconds]
chussenot has quit [Quit: chussenot]
emsilva has quit [Read error: Operation timed out]
Rajesh has joined #ruby
Rajesh is now known as Guest56512
kidoz has quit [Quit: Ухожу я от вас]
gmci has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Remote host closed the connection]
chussenot has joined #ruby
dhruvasagar has joined #ruby
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
savage- has quit [Remote host closed the connection]
minijupe has joined #ruby
classix has quit [Ping timeout: 244 seconds]
chussenot has quit [Client Quit]
rakunHo has joined #ruby
jorge has joined #ruby
rburton- has quit [Quit: rburton-]
jorge has quit [Ping timeout: 272 seconds]
RichieEvan has joined #ruby
und3f has joined #ruby
gmci has joined #ruby
jorum has joined #ruby
Banistergalaxy has joined #ruby
rakunHo has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
williamcotton_ has joined #ruby
thomas has quit [Ping timeout: 620 seconds]
blacktulip has joined #ruby
williamcotton has quit [Read error: Operation timed out]
williamcotton_ is now known as williamcotton
digitalcakestudi has quit [Ping timeout: 264 seconds]
Gab0 has quit [Remote host closed the connection]
kernelpanix has joined #ruby
freeayu__ has quit [Quit: 离开]
Guest89851 has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
w400z has quit []
banisterfiend has joined #ruby
tdubz has joined #ruby
tdubz is now known as Guest75794
jarred has joined #ruby
{aaron} has quit [Quit: Leaving]
xaq_ has joined #ruby
banseljaj has joined #ruby
greenysan has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
xaq has quit [Ping timeout: 250 seconds]
vvgomes has quit [Ping timeout: 264 seconds]
vvgomes has joined #ruby
ostap_bender has joined #ruby
kernelpanix has quit [Ping timeout: 246 seconds]
xaq_ has quit [Remote host closed the connection]
flaviodesousa has joined #ruby
flaviodesousa has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
O_ has joined #ruby
jorum has quit [Quit: Leaving...]
savage- has joined #ruby
jorum has joined #ruby
yoklov has quit [Quit: computer sleeping]
khakimov has joined #ruby
classix has joined #ruby
ostap_bender has quit [Ping timeout: 244 seconds]
kn330 has quit [Ping timeout: 272 seconds]
brianpWins has quit [Quit: brianpWins]
darren has quit [Remote host closed the connection]
sdwrage has left #ruby [#ruby]
apeiros_ has joined #ruby
<O_> Hi. Anyone know if there is a way to convert a bignum (very large unsigned integer) into a String with the same information?
<O_> esoteric quesiton I know...
ppawel has joined #ruby
qwerxy has joined #ruby
Guest75794 is now known as thomas
<Hanmac> bignum.to_s ?
jorum has quit [Quit: Leaving...]
apeiros_ has quit [Ping timeout: 264 seconds]
<O_> what i mean is not like to_s. but packed so for example 256 would become "\xFF"
<Hanmac> maybe: Marshal.dump(bignum)
greenysan has quit [Quit: Lost terminal]
moshee has quit [Ping timeout: 245 seconds]
<savage-> [bignum].pack('C*')
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
jorum has joined #ruby
minijupe has quit [Quit: minijupe]
vvgomes has quit [Ping timeout: 250 seconds]
daniel_hinojosa has quit [Ping timeout: 250 seconds]
brianpWins has joined #ruby
<O_> Hanmac: Hmm. thanks. Interesting approach. Looks like I might have to strip the front off and reverse it but otherwise it might just work....
<O_> savage-, : That's only going to give me a one character string though isn't it, even if my bignum is huge?
`brendan has quit [Ping timeout: 244 seconds]
<Hanmac> hm better? [bignum].pack("Q*")
tewecske has joined #ruby
mockra_ has joined #ruby
<O_> Hanmac: only works if the number I am using is 64-bits or less
Guest89851 has quit [Quit: Guest89851]
<fowl> how many bits do you need? o.o
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
jarred has quit [Quit: jarred]
mockra has quit [Ping timeout: 246 seconds]
savage- has quit [Remote host closed the connection]
headius has joined #ruby
<O_> fowl, : more. I can explain if you want... but its just something I'm being forced into by other libraries...
areil has joined #ruby
daniel_hinojosa has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
zeromodulus has joined #ruby
mmokrysz has joined #ruby
thecreators has quit [Quit: thecreators]
arietis has joined #ruby
yxhuvud has joined #ruby
jonathanwallace has joined #ruby
brianpWins has quit [Quit: brianpWins]
w0lverine_ has joined #ruby
mfridh has joined #ruby
mneorr has joined #ruby
w0lverine has quit [Ping timeout: 246 seconds]
w0lverine_ is now known as w0lverine
zeromodulus has quit [Remote host closed the connection]
vvgomes has joined #ruby
nonotza has joined #ruby
jonathanwallace has quit [Ping timeout: 244 seconds]
krz has quit [Quit: krz]
jorum has quit [Quit: Leaving...]
defendguin has quit [Quit: Leaving.]
manizzle has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 250 seconds]
chimkan has joined #ruby
karakedi has joined #ruby
wallerdev has quit [Quit: wallerdev]
fayimora has quit [Ping timeout: 272 seconds]
mmokrysz has quit [Quit: Leaving.]
mockra_ has quit [Remote host closed the connection]
chimkan has quit [Quit: chimkan]
fayimora has joined #ruby
und3f has quit [Ping timeout: 246 seconds]
td123 has quit [Quit: WeeChat 0.3.8]
answer_42 has joined #ruby
Tsunekazu has quit []
igotnolegs has quit [Quit: Computer has gone to sleep.]
Guest56512 has quit [Quit: Leaving to Quit]
moshee has quit [Ping timeout: 272 seconds]
moshee has joined #ruby
indian has joined #ruby
qwerxy has quit [Quit: offski]
tiripamwe has joined #ruby
mohits has joined #ruby
und3f has joined #ruby
poppiez has joined #ruby
moos3 has quit [Ping timeout: 264 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
qwerxy has joined #ruby
jorge has joined #ruby
chussenot has joined #ruby
chussenot has quit [Client Quit]
xnm has joined #ruby
mockra has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
justsee is now known as justsee|away
Banistergalaxy has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
qwerxy has quit [Quit: offski]
mockra has quit [Ping timeout: 245 seconds]
justsee|away is now known as justsee
cantonic_ has joined #ruby
charliesome has joined #ruby
dhruvasagar has joined #ruby
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
<shevy> got a question
<shevy> I wanna remove a directory, but only if it exists
<shevy> now I am using FileUtils.rm_rf(d) for this, however
w0lverine has quit [Quit: w0lverine]
<shevy> I looked at old code, and I seem to be using two different checks for it
<shevy> (1) if File.exist?(directory)
<shevy> (2) if File.directory?(directory)
<shevy> now I am confused
<s1n4> shevy: Dir.exist?('x')
<shevy> hmmmmmm
<shevy> now I have three ways
<shevy> :D
<s1n4> :D
<s1n4> shevy: FileUtils.rm_rf(d) if Dir.exist?(d)
dangerousdave has joined #ruby
<shevy> I need to reason for my poor brain
<s1n4> :D
<shevy> am I right that, if I use File.directory?, I also implicitely use Dir.exist? too already?
noesis82_ has joined #ruby
nonotza has quit [Quit: nonotza]
<shevy> because it can only possibly be a directory if it exists before the time we check
<shevy> if it does not exist at all, it can not be much at all
jorge has quit [Ping timeout: 246 seconds]
<shevy> I am awake since only ~15 minutes, my brain is not yet awake...
<s1n4> shevy: I dont understand what you want to do
<s1n4> shevy: if you just want to remove a dir if that exists, well you do it like: FileUtils.rm_rf(d) if Dir.exist?(d)
<shevy> just remove a directory in case it exists (and is a directory). and ideally use only one way consistently for the rest of my life
<shevy> yeah, you added a third way hmmm :(
<s1n4> shevy: simplest way to check a dir if exists is to use Dir.exist?
<shevy> alright, I will use that
qwerxy has joined #ruby
<s1n4> thank god
<faen> what would you want to do if d was a file?
<shevy> depends actually. I have a general remove() method, that removes anything that is thrown at it. but sometimes in that project, I just want to remove a directory, and if for some reason I'd ever put in a file to it, when I explicitely called that method, it should not remove it
<shevy> (the methods are bundled within remove() )
andrewh has joined #ruby
<faen> so I guess that already rules out File.exist? ?
monkegjinni has quit [Remote host closed the connection]
<shevy> I dunno, but I think Dir.exist? makes more sense
<shevy> what I was wondering most was, when to use File.directory? now, if Dir.exist? also exists
poppiez has quit [Quit: Linkinus - http://linkinus.com]
<shevy> my poor brain :(
<shevy> I have another question
<shevy> I have two files, foo1.rb and foo2.rb
<shevy> foo1.rb requires foo2.rb
dangerousdave has quit [Read error: Operation timed out]
<shevy> right now, both files require the same module, and also have one method that makes use of that module
<Hanmac> and? where is the problem?
<shevy> what I am wondering is, what is the proper way to require that module? can I uncomment the require module part of foo1.rb, because foo2.rb requires that module already?
qwerxy has quit [Ping timeout: 240 seconds]
<shevy> or should both .rb files continue to require that module
<shevy> I could get rid of one line in foo1.rb :D
yasushi has joined #ruby
<shevy> test
<s1n4> shevy: and I have a qeustion, let me ask you
<s1n4> shevy: do you know what do you want to do ?
emiltin has joined #ruby
<shevy> s1n4 yeah
qwerxy has joined #ruby
atmosx has joined #ruby
<shevy> by and large
ghaydaro has joined #ruby
<Hanmac> when A requires B, and both A and B requires C, then you dont need an require C in A
<shevy> I strive for beauty, simplicity and consistency whenever that is possible
br4ndon has joined #ruby
<shevy> hmm ok Hanmac
<shevy> there goes that require line!
<Hanmac> its not needed, but you could still add it
<s1n4> shevy: first think then ask :)
kn330 has joined #ruby
subbyyy has quit [Quit: Leaving.]
<atmosx> hello
<atmosx> any good test on how to perform 'Testing'
<atmosx> I don't understand the mindset behind it… I mean if I write my own tests, how the heck will this help me?
<shevy> atmosx, I think that depends on the tests
<shevy> you can try to ensure consistency and correct output of your methods in a reliable way
und3f has quit [Quit: Leaving.]
<atmosx> shevy: okay, I'll read the chapter on the book and see with what code can I come with...
<atmosx> awesome podcasts http://www.bbc.co.uk/podcasts/series/maths if you're interested in mathetics and how they shape the world
<shevy> mathwhatics?
<shevy> aesthetics?
<shevy> :D
<atmosx> shevy: mathematics :-P
<atmosx> hahahaha
<shevy> ah ok
<atmosx> sorry, I'm listening, reading and typing alltogether… Apparently Napoleon was more skilled than me :-(((
Taichou has joined #ruby
mahmoudimus has joined #ruby
<shevy> but he did never see a computer in his life
<shevy> though sometimes I wonder if computers really make people smarter
apeiros_ has joined #ruby
<shevy> there is some way of different cleverness if you have a good book, a paper and a pencil. and start being creative
<shevy> I am absolutely not creative at all when I sit in front of a computer :(
Taichou has quit [Ping timeout: 246 seconds]
<Hanmac> shevy: i can moslty image everything ... but i can not draw or paint or write or sing :( ... that is mean isnt it?
<shevy> not sure
<shevy> everything can be trained
<shevy> drawing things though, I have not found out the trick behind it yet
<shevy> I had friends who were able to somehow produce great results and I did not understand how they managed to do so
emiltin has quit [Quit: emiltin]
apeiros_ has quit [Ping timeout: 240 seconds]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
indian has quit [Ping timeout: 246 seconds]
metaphori has joined #ruby
metaphori has quit [Read error: Connection reset by peer]
metaphori has joined #ruby
metaphori has quit [Read error: Connection reset by peer]
andrewh has quit [Ping timeout: 272 seconds]
br4ndon has quit [Ping timeout: 244 seconds]
<mneorr> anybody encountering Sublime Text 2 shutting down when typing `raise <space>` ?
sepp2k has joined #ruby
<Hanmac> it seems that it does not like when you "raise" your voice :P
metaphori has joined #ruby
<shevy> mneorr hehehe sounds like a funny error
<shevy> puts 'Sublime Text 2 sucks!!!'
<shevy> sublime shuts down
<mneorr> shevy: haha
mucker has joined #ruby
<mneorr> i'm not switching to Vim :D
mahmoudimus has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has quit [Ping timeout: 246 seconds]
vectorshelve has joined #ruby
<Hanmac> shevy: i found an similar error on windows texteditor ... when you type "no one likes gates" and safe it, it breaks the encoding :P
<vectorshelve> Can anyone help me with a reference to understand the game of life problem better !! thanks
<shevy> what is the game of life of problem
<shevy> that you will die?
<shevy> that is a big problem indeed
jonathanwallace has quit [Remote host closed the connection]
<shevy> hmm one "of" too many
sepp2k has quit [Ping timeout: 246 seconds]
<O_> mneorr: I've come across weird problems with sublime text launching ruby too. Safest way is to use if for editing, and command line to actually run things...
metaphori has quit [Quit: out]
<O_> *'if' shuould be 'it'
<Hanmac> mneorr whats your os? maybe i found a better editor for you+
<vectorshelve> shevy: game of life is a famous problem in mathematics. I need to code it in ruby. bt for that first I need to understand it :)
<shevy> aha
<shevy> odd name to give a mathematical problem, sounds like a biological problem :P
pskosinski has quit [Ping timeout: 246 seconds]
<mneorr> Hanmac: OSX ML
<mneorr> O_: yeah, I use it that way
yasushi has quit [Remote host closed the connection]
<mneorr> O_: but it breaks when editing text :D
gmci has quit [Quit: Computer has gone to sleep.]
yasushi has joined #ruby
workmad3 has joined #ruby
<O_> mneorr: Oh. never had it break whist actually editing...
<O_> that sounds pretty bad...
<mneorr> that's crazy enough :D
<mneorr> it may be possible that some plugins have broke it, like RubyMotion builder
<mneorr> I've deleted those but still..
mockra has joined #ruby
<Hanmac> rubymotion? you did buy that shit?
<mneorr> Hanmac: i'm an iOS native dev
* Hanmac feels sorry for you :D
<mneorr> so I did buy it to support the guy, and to hack a bit
<banisterfiend> Hanmac: what's shit about it?
<mneorr> Hanmac: as long as it brings lots of money with not much of effort, you can feel sorry as much as you want ;)
yasushi has quit [Ping timeout: 244 seconds]
<Hanmac> i can make 3d games with ruby without needing anything to pay
S1kx has joined #ruby
<banisterfiend> Hanmac: iOS isn't limited to writing 3D games..u know that right? :)
<mneorr> Hanmac: you can make them in any environment you're most comfortable with
mockra has quit [Ping timeout: 250 seconds]
<banisterfiend> Hanmac: let's see you invest the time an effort to develop a ruby implementation that compiles down to bytecode and runs on iOS...for free :)
<banisterfiend> no one would do it, and certainly not with the degree of polish in rubymotion
<banisterfiend> it's just too much work to do for free
mockra has joined #ruby
br4ndon has joined #ruby
<banisterfiend> Hanmac: also, the creator of rubymotion has already done HUGE amounts of opensource, he doesn't owe anyone anyone any more free shit.
<banisterfiend> macruby is entirely opensource for example
<Hanmac> rubymotion does not support my gems so i am not interested
<banisterfiend> fair enough
apeiros_ has joined #ruby
<mneorr> Hanmac: is there any other implementation where you can use the classic gems and compile / run on the iOS?
sepp2k has joined #ruby
<mneorr> i'm open minded for any other sane solution that can make the life easier. The only difference is that I don't mind paying 150$ for such a thing
mockra has quit [Ping timeout: 272 seconds]
pskosinski has joined #ruby
<banisterfiend> mneorr: you primarily do objc?
<mneorr> banisterfiend: yeah
AlbireoX has quit [Remote host closed the connection]
mohits has quit [Ping timeout: 244 seconds]
<mneorr> but i'm also trying to pick up the sugar from some other langs and implementations :)
dhruvasagar has quit [Ping timeout: 272 seconds]
mengu has quit [Remote host closed the connection]
mohits has joined #ruby
DrShoggoth has quit [Quit: Leaving]
vvgomes has quit [Ping timeout: 240 seconds]
s1n4 has quit [Quit: peace out]
jonathanwallace has joined #ruby
sahbeewah has quit [Read error: Connection reset by peer]
pskosinski has quit [Ping timeout: 244 seconds]
kirun has joined #ruby
pskosinski has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
virunga has joined #ruby
ryanf has quit [Quit: leaving]
Spooner has joined #ruby
mikeric has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
yasushi has joined #ruby
<vectorshelve> shevy: http://en.wikipedia.org/wiki/Conway's_Game_of_Life
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
<shevy> hate !!!
<shevy> one terse sentence must suffice!
<shevy> wikipedia is like kids babbling
<apeiros_> try simple english edition
ppawel has quit [Ping timeout: 246 seconds]
elhu has joined #ruby
yasushi has quit [Ping timeout: 246 seconds]
mneorr has left #ruby [#ruby]
mneorr has joined #ruby
kjellski has joined #ruby
dpk has joined #ruby
vertroa_ has quit [Read error: Connection reset by peer]
Markvilla has joined #ruby
noesis82_ has quit [Ping timeout: 240 seconds]
yasushi has joined #ruby
emiltin has joined #ruby
workmad3 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
mneorr has quit [Ping timeout: 246 seconds]
AnarchoTroll has quit [Ping timeout: 250 seconds]
emiltin has quit [Client Quit]
punkrawkR has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
areil has quit [Remote host closed the connection]
lynxy has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
mneorr has joined #ruby
mengu has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
elhu has joined #ruby
_hama has joined #ruby
mikeric has quit [Quit: mikeric]
_hama has quit [Remote host closed the connection]
mockra has joined #ruby
gmci has joined #ruby
S1kx has quit [Quit: Leaving]
visof has joined #ruby
<visof> Hello
<visof> Is there anyone using aws with ruby here or kno which channel to discuss this
mockra has quit [Ping timeout: 272 seconds]
<shevy> what is aws
tiripamwe has quit [Read error: Connection reset by peer]
<kn330> Amazon Web Services I suppose
burgestrand has joined #ruby
Foxandxss has joined #ruby
visof has quit [Ping timeout: 272 seconds]
Criztian has joined #ruby
resure has joined #ruby
workmad3 has joined #ruby
jonathanwallace has joined #ruby
fantazo has quit [Remote host closed the connection]
fridim_ has joined #ruby
jonathanwallace has quit [Read error: Operation timed out]
visof has joined #ruby
Bofu has joined #ruby
emmanuelux has joined #ruby
<visof> Hello what is the channel for aws ruby
<mneorr> visof: probably that's a very specific topic,. maybe you want a general AWS or try with the concrete question here
tiripamwe has joined #ruby
r0bby has joined #ruby
Stalkr_ has joined #ruby
Bofu2U has quit [Ping timeout: 248 seconds]
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
r0bby has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
Stalkr_ has quit [Ping timeout: 246 seconds]
lxsameer has joined #ruby
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
r0bby_ has quit [Ping timeout: 246 seconds]
<visof> Mneorr I lost private and public key for amazon instance is there a way to get access again
<mneorr> visof: i think you need to log in on their site, right-click on the running instance and 'Connect'
<mneorr> you'll need to download the key pair and you should be on the way
<mneorr> (but this wasn't a ruby question at all :D )
ppawel has joined #ruby
Rajesh has joined #ruby
Rajesh is now known as Guest25908
manizzle has joined #ruby
taec is now known as pjr
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
jxf has quit [Ping timeout: 246 seconds]
<visof> Mneorr around
<mneorr> yeag
<mneorr> yeah*
Abbas5 is now known as Abbas|
<visof> Did you mean to download key pair for the instance
<mneorr> visof: yes
burgestrand has quit [Quit: Leaving.]
th3g33k has joined #ruby
<visof> How
<visof> Tell me even with pseudo code
<mneorr> it's not a code
mockra has joined #ruby
<mneorr> go to the amazon's website, log in as a user and that's it
<visof> Mneorr no I want to do that in hard code
<mneorr> okay, but how can you add anything in the code when you've lost the .pem ?
manizzle has quit [Quit: Leaving]
<visof> I meant keys the make me access the instance via ssh
<visof> I have the authentication info to use SDK
artOfWar_ has quit [Ping timeout: 246 seconds]
yasushi has joined #ruby
yasushi has quit [Read error: Connection reset by peer]
<mneorr> and you're able to access the instance from the terminal
<mneorr> ?
yasushi has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
<visof> I created instance and make ssh keys to can access the instance from my machine but my machine is formated and I installed new one but I need private and public keys to can acces the instance from this new machine
Markvilla has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Ping timeout: 246 seconds]
ananthakumaran1 has joined #ruby
fumbe has quit [Ping timeout: 264 seconds]
Markvilla has joined #ruby
karakedi has quit [Ping timeout: 246 seconds]
<mneorr> visof: you can't hard code the keys. you have to download them from the website. once you're able to SSH from the terminal , you can start coding
qwerxy has quit [Quit: offski]
defendguin has joined #ruby
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
lxsameer has quit [Ping timeout: 272 seconds]
ananthakumaran1 has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
visof has quit [Ping timeout: 246 seconds]
fumbe has joined #ruby
jorum has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
jonathanwallace has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Client Quit]
qwerxy has joined #ruby
bitsar has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 250 seconds]
fastred has joined #ruby
wmoxam_ has joined #ruby
Guest25908 has quit [Quit: Leaving to Quit]
Rajesh_ has joined #ruby
<vectorshelve> any idea on what would be the best way to go about implementing game of life in ruby ?>
Rajesh_ has quit [Max SendQ exceeded]
defendguin has quit [Quit: Leaving.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
defendguin has joined #ruby
ppawel has quit [Ping timeout: 250 seconds]
Rajesh_ has joined #ruby
defendguin has quit [Client Quit]
<Hanmac> vectorshelve did you think about the visual output?
jjbohn has joined #ruby
<vectorshelve> Hanmac: Visual output could be x and -
<vectorshelve> Hanmac: its more of how to implement.. in ruby I cant go with two dimensional arrays so probably hashes will be good
jorum has quit [Quit: Leaving...]
<apeiros_> vectorshelve: you can't go with two dimensional arrays because…?
<vectorshelve> Hanmac: and the user need to pass the type of pattern as well and input could be from a file
mhodgson has joined #ruby
<vectorshelve> apeiros_: because I thought hashes are better suited.. correct me if I am wrong
<apeiros_> so you didn't mean you can't, you just meant it'd be better to use something else? (there's a difference…)
<vectorshelve> apeiros_: yes
<vectorshelve> apeiros_: Hanmac heres the deal -> http://pastie.org/4394156
Rajesh_ has quit [Max SendQ exceeded]
<vectorshelve> so I would rather read input from a file and make user specify the pattern in the command line as argc
<vectorshelve> argument*
wmoxam__ has joined #ruby
<apeiros_> then do it
<apeiros_> or are you waiting again for somebody of us coming up with the code and giving it to you?
wmoxam_ has quit [Ping timeout: 272 seconds]
<vectorshelve> apeiros_: where to store the input and what would be a better way of implenting it as a suggestion is welcome
<apeiros_> vectorshelve: how about for once, just once, you come up with a solution yourself and ask for improvements after that?
<vectorshelve> apeiros_: ok
Rajesh_ has joined #ruby
uris has joined #ruby
Rajesh_ has quit [Read error: Connection reset by peer]
emmanuelux has quit [Ping timeout: 246 seconds]
sendoushi has joined #ruby
defendguin has joined #ruby
ethicalhack3r has joined #ruby
yeggeps has joined #ruby
virunga has quit [Ping timeout: 264 seconds]
<ethicalhack3r> Hi, I was wondering if anyone could help me loop through an array endlessly. When the array runs out of values, it starts again from the beginning or end. Here is the small script I have written in which I need to solve the problem. http://pastie.org/4394183
<apeiros_> ethicalhack3r: Array#cycle
<ethicalhack3r> apeiros_ damn that was quick! I'll give that a try, thanks! :D
vlad_starkov has joined #ruby
mockra has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
<apeiros_> yw :)
dpk has joined #ruby
`brendan has joined #ruby
justsee is now known as justsee|away
mockra has quit [Ping timeout: 272 seconds]
<Hanmac> shevy lets develop an language with ordersentive words ...
<Hanmac> maybe you have the chars for Gate and for Man, if you read it [Man][Gate] its a Guard but when you read it [Gate][Man] its an Prisioner ...
<Hanmac> and then some kind of magic chars like "rotate the reading 90° clockwards"
amacgregor_osx has joined #ruby
fraser has joined #ruby
emiltin has joined #ruby
justsee|away is now known as justsee
as has joined #ruby
workmad3 has joined #ruby
freeayu has joined #ruby
jonathanwallace has joined #ruby
tvw has joined #ruby
amacgregor_osx has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 246 seconds]
elhu has quit [Quit: Computer has gone to sleep.]
wmoxam__ has quit [Read error: Connection reset by peer]
tiripamwe has quit [Ping timeout: 272 seconds]
elhu has joined #ruby
defendguin has quit [Quit: Leaving.]
freeayu has joined #ruby
as has quit [Quit: Leaving]
Jacob_ has joined #ruby
Jacob_ is now known as ecksit
yeggeps has quit [Quit: yeggeps]
ecksit has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 272 seconds]
<ohcibi> can someone explain me how to interpret class Klassname < Parent(Otherclass) ? i'm curious about the Parent(Otherclass) part
skogis has joined #ruby
andrewh has joined #ruby
Criztian has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Connection reset by peer]
<Hanmac> ohcibi Parent is a method that returns a class object
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
skogis has quit [Client Quit]
<ohcibi> Hanmac: hm k...
zxc_ has joined #ruby
<Hanmac> ohcibi its creates an anonymous class for some reason
seanstickle has joined #ruby
<ohcibi> Hanmac: hm its kind of a work in progress example, i think i'll understand more if i just move on with it 8-))
<apeiros_> doesn't need to be anonymous
<Hanmac> no but it can be anonymous
<apeiros_> yes
vectorshelve has quit [Quit: Page closed]
<kn330> {"sky"=>["sunny", "rainy"], "temp"=>["warm", "warm"]} | I need the 'value' Arrays to be unique. How do I got about it?
<Hanmac> kn330. hash.values.each(&:uniq!)
<apeiros_> you iterate over the hash and use Array#uniq!
<kn330> I've come up with this > http://pastie.org/4394386 but i need a more generic (DRY) way
lynxy_ has joined #ruby
<Hanmac> hm ... better: hash.each_value(&:uniq)
<Hanmac> !
<Hanmac> fu!:> hash.each_value(&:uniq!)
<apeiros_> :)
<kn330> It works!
th3g33k1 has joined #ruby
<kn330> Hanmac: please do care explain the {lo,ma}gic!
lynxy has quit [Ping timeout: 272 seconds]
<apeiros_> o0
<apeiros_> and there I thought that code was self-explaining
<kn330> I've never used `&` in ruby! (forgive my n00bness if you will) :)
th3g33k has quit [Ping timeout: 264 seconds]
<Hanmac> .each_value(&:uniq!) is the same as .each_value{|o| o.uniq}
<Hanmac> (ok mostly the same)
<Hanmac> damit i forgot the ! again
niklasb has joined #ruby
Jake232 has joined #ruby
hunglin has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
mockra has joined #ruby
<kn330> Hanmac: thanks
elhu has quit [Quit: Computer has gone to sleep.]
resure has quit [Read error: Connection reset by peer]
resure_ has joined #ruby
elhu has joined #ruby
pskosinski has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
lynxy_ has quit [Quit: Leaving]
resure_ is now known as Resure
moshee has quit [Ping timeout: 240 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
gmci has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
graspee has quit [Quit: leaving]
sendoushi has quit [Remote host closed the connection]
zxc_ has quit [Quit: Ex-Chat]
jorum has joined #ruby
S1kx has joined #ruby
justsee has quit [Quit: Leaving...]
andrewhl has joined #ruby
mengu has quit [Remote host closed the connection]
fridim_ has quit [Ping timeout: 246 seconds]
fraser has quit [Quit: Lost terminal]
w400z has joined #ruby
Resure has quit [Remote host closed the connection]
andrewhl has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby
Resure has joined #ruby
Tomasso has joined #ruby
graspee has joined #ruby
vitoravelino is now known as `vitoravelino
jorum has quit [Quit: Leaving...]
emiltin has quit [Quit: emiltin]
Guest89851 has joined #ruby
shadoi has joined #ruby
Hanmac has quit [Ping timeout: 250 seconds]
chichou has joined #ruby
Criztian has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
emiltin has joined #ruby
emiltin has quit [Client Quit]
shadoi has quit [Ping timeout: 240 seconds]
tiripamwe has joined #ruby
tiripamwe has quit [Client Quit]
tiripamwe has joined #ruby
baphled has joined #ruby
Tulak has joined #ruby
Axsuul has quit [Ping timeout: 255 seconds]
yasushi has joined #ruby
<Tulak> hello, i have some script that have to process some data, but it is too long to finish, even if it runs at 100% cpu. I have QuadCore cpu with 8 threads i want to use the power of my cpu. How can i divide the script to run in parallel processes ?
willb has quit [Ping timeout: 246 seconds]
Resure has quit []
willb has joined #ruby
<seanstickle> Tulak: buy 20 machines
emmanuelux has joined #ruby
<seanstickle> Tulak: run the script on each machine
Criztian has quit [Remote host closed the connection]
Taichou has joined #ruby
<Tulak> maybe you dont understand me, my cpu runs at 100% but only one core, i want to use more cores. I can do it when i open several rails consoles, but I hope it can be done with some fork method or something
Taichou has quit [Ping timeout: 240 seconds]
<gogiel> Tulak: run as many processes as you want. there's classic IPC in ruby
<gogiel> or DRb
<gogiel> but never tried it
jonathanwallace has joined #ruby
andrewhl has joined #ruby
jorum has joined #ruby
jorum has quit [Remote host closed the connection]
fourlastor has joined #ruby
<fourlastor> hello everyone :)
mockra has joined #ruby
Eldariof-ru has joined #ruby
<fourlastor> with gosu, is there a better way to capture user input instead of putting tons of ifs in the main loop (as shown here: https://github.com/jlnr/gosu/wiki/Ruby-Tutorial chapter 2.2)?
<fourlastor> something more event driven would be the best
Gab0 has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
unknet has joined #ruby
jrajav has joined #ruby
mk03 has quit [Remote host closed the connection]
unknet has quit [Quit: Saliendo]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
w400z has quit [Quit: Computer has gone to sleep.]
Markvilla has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
verto|off is now known as verto
sailias has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
ttilley_off is now known as ttilley
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
verto is now known as verto|off
nari has quit [Ping timeout: 250 seconds]
freeayu has quit [Ping timeout: 272 seconds]
xclite has quit [Read error: Connection reset by peer]
v0n has joined #ruby
ZachBeta has joined #ruby
xclite has joined #ruby
chichou has quit [Remote host closed the connection]
chichou has joined #ruby
qwerxy has quit [Quit: offski]
<Spooner> fourlastor : Consider asking Gosu questions in #gosu
dhruvasagar has joined #ruby
mneorr has quit [Quit: Leaving.]
<fourlastor> Spooner, ok
freeayu has joined #ruby
Hanmac has joined #ruby
th3g33k1 has quit [Quit: Leaving.]
th3g33k has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
qwerxy has joined #ruby
ZachBeta has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
digitalcakestudi has joined #ruby
Criztian has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
w400z has joined #ruby
O_ has quit [Quit: Leaving]
w400z has quit [Client Quit]
dpk has joined #ruby
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
beneggett has joined #ruby
Tomasso has quit [Ping timeout: 240 seconds]
elhu has joined #ruby
baphled has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
johnduhart has quit [Changing host]
johnduhart has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
yasushi has joined #ruby
Resure has joined #ruby
vlad_starkov has joined #ruby
Kabaka has quit [Quit: Going offline for very necessary hardware maintenance. Be back later.]
mohits has quit [Read error: Connection reset by peer]
andrewhl has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
mahmoudimus has joined #ruby
philips_ has quit [Excess Flood]
kernelpanix has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
berserkr has joined #ruby
philips_ has joined #ruby
iamjarvo has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
Tomasso has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
u_u has quit [Remote host closed the connection]
mockra has joined #ruby
emmanuelux has quit [Ping timeout: 264 seconds]
ethicalhack3r has quit [Quit: This computer has gone to sleep]
sailias has quit [Ping timeout: 246 seconds]
kernelpanix has quit [Ping timeout: 264 seconds]
mockra has quit [Ping timeout: 245 seconds]
fridim_ has joined #ruby
Progster has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
shevy has joined #ruby
mobilegamelabs has joined #ruby
andrewh has quit [Ping timeout: 272 seconds]
andrewhl has quit [Ping timeout: 246 seconds]
Tomasso has quit [Ping timeout: 244 seconds]
jorge has joined #ruby
mpereira has joined #ruby
uris has quit [Ping timeout: 246 seconds]
Gab0 has quit [Ping timeout: 246 seconds]
uris has joined #ruby
yasushi has quit [Remote host closed the connection]
yasushi has joined #ruby
freeayu has quit [Quit: 离开]
dhruvasagar has joined #ruby
tiripamwe has quit [Remote host closed the connection]
demian`_ has joined #ruby
Jay_Levitt has joined #ruby
yasushi has quit [Ping timeout: 246 seconds]
virunga has joined #ruby
s1n4 has joined #ruby
noesis82 has joined #ruby
u_u has joined #ruby
virunga has quit [Client Quit]
fourlastor has left #ruby ["Sto andando via"]
subbyyy has joined #ruby
qwerxy has quit [Quit: offski]
tommyvyo has quit [Ping timeout: 246 seconds]
Abbas| has quit [Ping timeout: 240 seconds]
virunga has joined #ruby
tk_ has quit [Quit: ばいばい]
Abbas5 has joined #ruby
Abbas5 is now known as Abbas-
Abbas- has quit [Changing host]
Abbas- has joined #ruby
Abbas- is now known as Abbas5
tvw has quit [Remote host closed the connection]
<crazed> when using activerecord, anyone know if there's a method to "unpluralize" something?
liluo has quit [Remote host closed the connection]
<crazed> nvm
kidoz has joined #ruby
<shevy> gzys
eighty4 has quit [Ping timeout: 248 seconds]
<shevy> I mean
<shevy> guys
<shevy> I used to do this for a while:
<shevy> T = true
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
<shevy> F = false
<shevy> but now I have reached the point where I think using T and F is ugly
Jck_true has quit [Remote host closed the connection]
<shevy> @foo = T
<shevy> @bla = F
<shevy> @foo = true
<shevy> @bla = false
<shevy> ^^^ second is much nicer to read
dominikh has quit [Ping timeout: 246 seconds]
zz_chrismcg has quit [Quit: Bye]
Zol has quit [Ping timeout: 276 seconds]
RichGuk has quit [Ping timeout: 246 seconds]
altivec has quit [Ping timeout: 245 seconds]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
Whoop has quit [Ping timeout: 265 seconds]
fred has quit [Ping timeout: 265 seconds]
oddmunds has quit [Ping timeout: 240 seconds]
<seanstickle> shevy: you were misled by your love for Scheme
<shevy> scheme
<shevy> isn't that (lisp) abomination?
wargasm has joined #ruby
theoros has quit [Remote host closed the connection]
<shevy> I rather die than use those (foo(')()()()()()()()())))((()() things
AwesomeGarethMan has quit [Ping timeout: 265 seconds]
oddmunds has joined #ruby
<shevy> I used to once think "hey... T and F... that is much shorter"
<shevy> but it just isn't really worth it at all
zz_chrismcg has joined #ruby
AwesomeGarethMan has joined #ruby
graspee has quit [Quit: rebooting]
<seanstickle> No, Common Lisp is some sort of Scheme abomination
dhruvasagar has quit [Ping timeout: 244 seconds]
Abbas5 is now known as Abbas|
altivec has joined #ruby
mahmoudimus has joined #ruby
<jrajav> Scheme is still nicer for functional programming
<jrajav> Try assigning a block to a variable in Ruby
<jrajav> :P
Jck_true has joined #ruby
<seanstickle> a = Proc.new ?
<jrajav> Okay, then try calling it
eighty4 has joined #ruby
theoros has joined #ruby
<jrajav> Yes I know it's possible *sigh*
<seanstickle> a.call
mahmoudimus has quit [Client Quit]
<jrajav> Not the point :P
<shevy> lol
Zol has joined #ruby
<seanstickle> Well, then your point is pretty bad
<seanstickle> :P
<shevy> scheme has not the () disease of lisp?
cakehero has joined #ruby
<jrajav> Nope, it still does
<jrajav> All Lisp dialects do
<shevy> die(), scheme, die()!
<seanstickle> shevy: it has the lovely awesome beauty of ()
<seanstickle> shevy: if that's what you mean
<shevy> one () is ok
<seanstickle> It's no APL, of course
<seanstickle> But it's pretty good
<shevy> but the ((((((((((((((((()))))))))))))))))))))
<pjr> shevy, close 'em
<shevy> grrrr
<shevy> it's all XML to me
<jrajav> Please, no one ever make an XML-based Lisp dialect
vvgomes has joined #ruby
<jrajav> Even as a joke
Whoop has joined #ruby
oddmunds has quit [Ping timeout: 240 seconds]
fred has joined #ruby
<jrajav> (Though to be honest that would be pretty hilarious)
<Tasser> jrajav, lollisp?
Tomasso has joined #ruby
fred is now known as Guest74903
<seanstickle> jrajav: they have already
<seanstickle> Years and years ago
<jrajav> Speak of the devil, and he shall appear
arietis has joined #ruby
qwerxy has joined #ruby
<Tasser> seanstickle, link?
<seanstickle> Tasser: google it, I don't remember the name
<seanstickle> Years ago
noesis82 has quit [Remote host closed the connection]
graspee has joined #ruby
jillsmitt has joined #ruby
oddmunds has joined #ruby
<Mon_Ouie> Doing the opposite is common though (generating XML from S-Exps)
dominikh has joined #ruby
mockra has joined #ruby
th3g33k has quit [Quit: Leaving.]
subbyyy has quit [Quit: Leaving.]
jillsmitt has quit [Quit: Leaving]
<Tasser> shevy, it's (die) btw
jillsmitt has joined #ruby
mahmoudimus has joined #ruby
bluOxigen has joined #ruby
defendguin has joined #ruby
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
deryl has joined #ruby
asklow has joined #ruby
bothra has joined #ruby
wallerdev has joined #ruby
workmad3 has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
fbernier has joined #ruby
sgronblo1 has joined #ruby
ppawel has joined #ruby
sgronblom has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
jillsmitt has quit [Read error: Connection reset by peer]
jillsmitt has joined #ruby
Morkel has joined #ruby
shvelo has joined #ruby
arturaz has joined #ruby
ryanRT has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
nateberkopec has joined #ruby
jgrevich has joined #ruby
ringotwo has joined #ruby
andrewh has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
<shevy> hehe
ylluminate has joined #ruby
Jake232 has quit [Quit: Computer has gone to sleep.]
<s1n4> shevy: wats up with Dir.exist? ? :D
<shevy> yeah I am using it
<shevy> btw
<shevy> ["history"].to_s # => "["history"]"
<shevy> was this always that way?
andrewh has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
<s1n4> shevy: you should select an element then you can use .to_s
<s1n4> shevy: array[0].to_s
dhruvasagar has joined #ruby
<Hanmac> shevy its diferent from 1.8 if you ask
bier has quit [Ping timeout: 272 seconds]
<shevy> ok
<shevy> s1n4, yeah
<shevy> I was just confused because I could swear it used to be different
<asklow> hello, I'm not here to trolling but I'd like to know why ruby's open source community is small compared to python's. At least that is the sensation I have
<s1n4> Hanmac: whats the difference ?
<shevy> asklow depends on which part you measure. I think the bindings to libraries are harder to do in ruby than in python
qwerxy has quit [Quit: offski]
<asklow> shevy: why is that ?
elhu has joined #ruby
<shevy> not sure
ZachBeta has joined #ruby
<shevy> I don't know C for example :)
<shevy> ruby-gnome has only very few contributors though
<asklow> shevy: but ruby is very similar to python
<shevy> ruby-qt even less
<shevy> asklow, I think ruby is more complicated
<asklow> shevy: it is pretty much the same
<shevy> dunno, does not feel that way much
qwerxy has joined #ruby
<Hanmac> s1n4 & shevy:
<Hanmac> irb : puts ["history"].to_s #>["history"]
<Hanmac> irb1.8 : puts ["history"].to_s #>history
<shevy> yeah Hanmac
<asklow> I like ruby, more than python, but I have a sensation of lackness of community support compared to python
qwerxy has quit [Client Quit]
<virunga> >> :ciao
<al2o3cr> virunga: (Symbol) :ciao
<s1n4> Hanmac: hmm, thanks
<Hanmac> asklow imo you can write bindings in ruby easy too ... but i would not recomend something like swig
akem has quit [Read error: Connection reset by peer]
<asklow> Hanmac: why not ?
akem has joined #ruby
eph3meral has joined #ruby
<Hanmac> asklow because i saw that swig generated libs have massive problems with rubies GC
samuelkadolph has quit [Quit: Quitting]
workmad3 has quit [Ping timeout: 246 seconds]
<asklow> Hanmac: and what would you recommend ?
defendguin has quit [Quit: Leaving.]
indian has joined #ruby
defendguin has joined #ruby
elhu has quit [Quit: Computer has gone to sleep.]
<Hanmac> asklow i write my bindings from hand ...
<asklow> Hanmac: that is one way to do it, but it would be much better by using some api
<Hanmac> but with my way, i have full control when object are GC'ed and when not
ghaydaro has quit [Read error: Connection reset by peer]
ghaydarov has joined #ruby
bier has joined #ruby
<bperry> I recommend writing api's by hand as well
<asklow> Hanmac: I agree, but another solution would be better, leving the freeing memory task to a GC
<bperry> the ease of autogenerating leads to many problems later when you don't actually understand how your bindings work
<bperry> you catch problems before they happen
defendguin has quit [Quit: Leaving.]
Araxia has joined #ruby
<Hanmac> bperry are you interested in how my bindings work?
<bperry> no not really heh
<bperry> I know how to write bindings :)
MissionCritical has quit [Ping timeout: 244 seconds]
nullthreat has joined #ruby
<Hanmac> i use c-marcos to generate the methods
<bperry> I generally don't generate anything
ZachBeta has quit [Quit: Computer has gone to sleep.]
ZachBeta has joined #ruby
<Hanmac> i use a macro that turned macro(Attr,Type) into an _getAttr and a _setAttr method with included self -> cType and exception handling
cantonic has quit [Quit: cantonic]
axl_ has joined #ruby
mockra has quit [Remote host closed the connection]
rburton- has joined #ruby
<Hanmac> that safes me from writing Data_Get_Struct again, and again
mockra has joined #ruby
conor_ireland has joined #ruby
jxf has joined #ruby
sgronblo1 has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 250 seconds]
iamjarvo has quit [Quit: Leaving...]
nicoulaj has joined #ruby
iamjarvo has joined #ruby
mfridh has quit [Ping timeout: 250 seconds]
Xethron has quit [Changing host]
Xethron has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
ringotwo has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 246 seconds]
thecreators has joined #ruby
iamjarvo has quit [Ping timeout: 246 seconds]
arietis has joined #ruby
frozenskater5432 has joined #ruby
mengu has quit [Remote host closed the connection]
mockra_ has joined #ruby
sailias has joined #ruby
<frozenskater5432> I'm having troubles with a method.when I put in method.rb it returns error.txt. Here's the gist https://gist.github.com/3266090.
fastred has quit [Quit: fastred]
deryl has quit [Ping timeout: 250 seconds]
EPIK has quit [Ping timeout: 244 seconds]
EPIK has joined #ruby
mockra has quit [Ping timeout: 250 seconds]
elhu has joined #ruby
MissionCritical has joined #ruby
jjbohn has quit [Quit: Leaving...]
fantazo has joined #ruby
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
tomzx_ has joined #ruby
Guest74903 is now known as fred
fred has quit [Changing host]
fred has joined #ruby
iamjarvo has joined #ruby
sendoushi has joined #ruby
axl_ has quit [Quit: axl_]
frozenskater5432 has left #ruby [#ruby]
gmci has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
mattrae_ has joined #ruby
jbw has quit [Read error: Operation timed out]
samuelkadolph has joined #ruby
cakehero has joined #ruby
Aenigma_ has joined #ruby
mikeycgto has quit [Remote host closed the connection]
ddv` has joined #ruby
Illiux_ has joined #ruby
alexhanh_ has joined #ruby
Some-body_ has joined #ruby
mattrae has quit [Ping timeout: 245 seconds]
Aenigma has quit [Ping timeout: 245 seconds]
ddv has quit [Ping timeout: 245 seconds]
ttilley has quit [Ping timeout: 245 seconds]
Illiux has quit [Ping timeout: 245 seconds]
alexhanh has quit [Ping timeout: 245 seconds]
DarthGandalf has quit [Ping timeout: 245 seconds]
ddv` is now known as ddv
samuelkadolph_ has joined #ruby
Some-body_ is now known as DarthGandalf
samuelkadolph has quit [Ping timeout: 246 seconds]
samuelkadolph has joined #ruby
darren has joined #ruby
Tasser has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
ttilley_off has joined #ruby
Taichou_ has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
samuelkadolph_ has quit [Ping timeout: 246 seconds]
vaicine has quit [Ping timeout: 245 seconds]
vaicine_ has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
sejo has quit [Ping timeout: 245 seconds]
sejo has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
ttilley_off is now known as ttilley
Taichou_ has quit [Ping timeout: 246 seconds]
elhu has quit [Quit: Computer has gone to sleep.]
jbw has joined #ruby
mobilegamelabs has quit [Quit: Angry Polygon (iPhone/Android/Mac) - http://www.MGGGGG.com/ap #ratingexchange]
sdwrage has joined #ruby
Chryson has joined #ruby
kirun_ has joined #ruby
tekmaster has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
tobym has joined #ruby
cantonic has joined #ruby
ylluminate has quit [Ping timeout: 265 seconds]
ekaleido_ has joined #ruby
ttilley has quit [*.net *.split]
xclite has quit [*.net *.split]
kirun has quit [*.net *.split]
SirFunk has quit [*.net *.split]
grillo has quit [*.net *.split]
vandemar has quit [*.net *.split]
dju has quit [*.net *.split]
perryh_ has quit [*.net *.split]
mafs has quit [*.net *.split]
kartouch has quit [*.net *.split]
tekacs has quit [*.net *.split]
ekaleido has quit [*.net *.split]
tekmaster is now known as tekacs
beakerman has quit [Remote host closed the connection]
xnm has quit [Quit: WeeChat 0.3.7]
beakerman has joined #ruby
ttilley has joined #ruby
dangerousdave has joined #ruby
ylluminate has joined #ruby
nohonor has quit [Read error: Connection reset by peer]
nohonor has joined #ruby
Guest56588 has joined #ruby
SirFunk has joined #ruby
xclite has joined #ruby
grillo has joined #ruby
dju has joined #ruby
vandemar has joined #ruby
perryh_ has joined #ruby
kartouch has joined #ruby
dju has quit [Max SendQ exceeded]
SirFunk has quit [Max SendQ exceeded]
SirFunk has joined #ruby
flip_digits has joined #ruby
flip_digits has quit [Client Quit]
havenn has joined #ruby
RichGuk has joined #ruby
dju has joined #ruby
fourlastor has joined #ruby
cantonic has quit [Quit: cantonic]
<fourlastor> which would be better using? ruby--sdl-ffi or rubysdl?
cantonic has joined #ruby
seanstickle has quit [Quit: seanstickle]
bothra has quit [Ping timeout: 245 seconds]
<Hanmac> fourlastor i dont know how both looks but when the developers are used ther brains both should be excangeable
shadoi has joined #ruby
sailias has quit [Quit: Leaving.]
<fourlastor> Hanmac, now that i see, the first isn't continued (the last release is very old), the second has the doc in japanese tho : \
S1kx has quit [Ping timeout: 246 seconds]
<fourlastor> also in english, but not here: http://rubydoc.info/gems/rubysdl/2.1.2/frames
r1chelt has joined #ruby
joshman_ has joined #ruby
ethicalhack3r has quit [Ping timeout: 244 seconds]
<Hanmac> but i think the rubydoc page is a bit shitty
fbernier has quit [Ping timeout: 272 seconds]
<fourlastor> yeah it doesn't list it
brianpWins has joined #ruby
<fourlastor> i think it doesn't get all the methods, too
tomzx_ has quit [Ping timeout: 272 seconds]
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
tomzx_ has joined #ruby
r1chelt has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
Synthead has joined #ruby
ethicalhack3r has quit [Client Quit]
TheShadowFog has quit [Quit: Leaving]
cantonic has joined #ruby
havenn has quit [Remote host closed the connection]
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
TheShadowFog has joined #ruby
headius has quit [Quit: headius]
fbernier has joined #ruby
workmad3 has joined #ruby
mascool has joined #ruby
havenn has joined #ruby
korczis has joined #ruby
sdwrage has quit [Quit: geekli.st/programmer]
gmci has joined #ruby
flint has joined #ruby
ethicalhack3r has quit [Quit: This computer has gone to sleep]
felipecvo has joined #ruby
vereteran has quit [Quit: ZNC - http://znc.in]
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Client Quit]
naquad has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jrajav has quit [Quit: The best darkness is strange and surprising]
asklow has quit [Ping timeout: 244 seconds]
deryl has joined #ruby
arturaz_ has joined #ruby
arturaz has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
subbyyy has joined #ruby
alindeman has quit [Quit: /quit]
jrajav has joined #ruby
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby
Taichou has joined #ruby
berserkr has quit [Quit: Leaving.]
dhaivatpandya has joined #ruby
Taichou has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<dhaivatpandya> hi everyone. I'm an author at RubySource (http://rubysource.com/) - we're absolutely dying to get good content for the coming week, and, if we can't make it, SitePoint (our parent site) might pull the plug on us. Would any of you guys have any ideas for guest posts?
<dhaivatpandya> We pay quite well ($200/article)
dr_bob has joined #ruby
dhaivatpandya is now known as poincare101
BrokenCog has quit [Quit: leaving]
mockra_ has quit [Remote host closed the connection]
<ctp_> hi all. what's the smartest way to strip down a hash to a few keys? e.g. i have a hash {:a => "foo", :b => "bar", :c => "foobar", :d => "baz"} and only need {:a => "foo", :d => "baz"}.
<apeiros_> ctp_: if you're in rails or use activesupport: Hash#slice
<dr_bob> Based on what criteria, ctp_?
korczis has quit [Quit: Leaving]
<ctp_> apeiros_: bare metal rack
<apeiros_> else: Hash[keys_you_want.zip(hash.values_at(*keys_you_want))]
fourlastor has quit [Quit: Sto andando via]
<ctp_> dr_bob: on manual choice
<ctp_> apeiros_: seems to be what i'm looking for
<dr_bob> Wrong answer
Resure has quit [Remote host closed the connection]
korczis has joined #ruby
<apeiros_> o0
sdwrage has joined #ruby
<ctp_> by the way: there was a cool gem which extends ruby's base (e.g. additional filters to ruby hashes etc.). didnt find it anymore. anyone knows what i'm talking about?
<ctp_> got it: Facets
Morkel has quit [Quit: Morkel]
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
the_mechanic has joined #ruby
<the_mechanic> Hi
<the_mechanic> is there anyway in ruby to cast one class as another class?
wallerdev has quit [Quit: wallerdev]
v0n has quit [Read error: Operation timed out]
Jake232 has joined #ruby
<havenn> the_mechanic: What is casting?
jan0232 has joined #ruby
baroquebobcat has joined #ruby
<the_mechanic> I have a PersistentServerObject class which can read/write objects from ldap, and in front of it I have a Server class which deals with some ground work, validations, etc. I have a couple of class methods which are proxied from Server to PersistentServerObject but the return values are then PersistentServerObject. I would like to find a way to return Server object instead or
<jan0232> in ruby… is there a way to make a block catch all outputs (like puts) in a variable??
TheShadowFog has quit [Read error: Connection reset by peer]
ethicalhack3r has quit [Client Quit]
tobym has quit [Remote host closed the connection]
noesis82 has joined #ruby
TheShadowFog has joined #ruby
<korczis> what is the easist way to distribute ruby application for windows users? i do not want make them install ruby on their own...
mucker has quit [Ping timeout: 272 seconds]
<rburton-> How can I get a rake command to run as a daemon?
<banisterfiend> korczis: ocra
<banisterfiend> korczis: ocra builds self-contained windows .exe files
<banisterfiend> that bakes ruby into it
<davidcelis> if you think it's good baked, have it fried
<sepp2k> jan0232: You can reassign (or reopen) $stdin before you yield to the block and then set it back to its previous value after the block finishes. That's not thread safe though.
<sepp2k> Or you can just yield your StringIO to the block and make the user do "|io| ... io.puts(foo)" instead of "puts(foo)"
<korczis> banisterfiend: great, thanks
<sepp2k> Or you can instance_eval the block on an object with an overridden puts method... or directly on the StringIO (though that's probably a bad idea).
<korczis> banisterfiend: did you tried it? is it good?
<banisterfiend> korczis: yes it's meant to be good, but i didnt try it cos i'm not a little namby pampy windows girlie like u
felipecvo has quit [Quit: leaving]
<banisterfiend> :P
fugit has quit [Ping timeout: 265 seconds]
busybox42 has quit [Quit: Leaving.]
<havenn> rburton-: rake&
busybox42 has joined #ruby
ylluminate has quit [Ping timeout: 252 seconds]
<rburton-> just saw that trying now :)
busybox42 has quit [Read error: Connection reset by peer]
<korczis> banisterfiend: i have linux on all my machines, but i want to share some apps with lame pampy windows girlie like i am not
busybox42 has joined #ruby
{aaron} has joined #ruby
<jan0232> sepp2k: so how would you suggest doing it? StringIO .. and string_io.instance_eval ?
<{aaron}> is there a clean way to abstract IO open/close? i'm caching file content in StringIO but I need to be able to treat this the same as file io, i.e. open and close it. i'm hoping to avoid introducing a class that just opens and closes the respective IO
<banisterfiend> :)
conor_ireland has quit [Quit: conor_ireland]
<{aaron}> io.new takes FD or an IO but presumably i'd have to obtain the FD by a previous open
alindeman has joined #ruby
lkba has joined #ruby
<sepp2k> jan0232: I'd probably just yield the StringIO to the block.
<{aaron}> or i suppose i could assume in my code that it is always using an opened descriptor and just rewind everywhere :/
vvgomes has quit [Ping timeout: 246 seconds]
sendoushi has quit [Remote host closed the connection]
<sepp2k> Also if you do use instance_eval, don't use strings with it.
<jan0232> sepp2k: yield the stringIO to the block? how would that look like?
<jan0232> oh i see…
conor_ireland has joined #ruby
<jan0232> well yea can't really do that :( ...hmm
vertroa_ has joined #ruby
fugit has joined #ruby
<{aaron}> i guess i'll just introduce an openable/closable IO resource abstraction
ph^ has joined #ruby
<sepp2k> jan0232: The problem with instance_evaling on the StringIO is that it will also change the behavior of other methods like gets and you probably don't want that.
RichieEvan_ has joined #ruby
vertroa has quit [Ping timeout: 250 seconds]
kidoz has quit [Quit: Ухожу я от вас]
<jan0232> sepp2k: yea. well my problem actually is…i'm using jruby and a java library that uses the java logging utils… and i want to catch all those log messages in a local ruby variable...
<sepp2k> So if yielding the StringIO to the block is not an option, I'd create a class that only overrides puts (and possibly print and p) and instance_eval on an object of that class.
AnarchoTroll has joined #ruby
<sepp2k> jan0232: Okay, yeah, those methods won't be affected at all by any of the options we discussed. They don't actually call puts.
RichieEvan has quit [Ping timeout: 246 seconds]
RichieEvan_ is now known as RichieEvan
<jan0232> seems it doesn't work either...
<jan0232> i still get the output on stdout
<jan0232> i think i might need to implement my own logger class in ruby and somehow tell java to use that through a property
<sepp2k> jan0232: Can't you just tell the logging framework where you want the messages to go?
<sepp2k> I mean if it just always writes to stdout with no option to log to, say, a file, it'd be a pretty bad framework, no?
<jan0232> sepp2k: i probably can… i want them to go to a ruby variable though
tommyvyo has joined #ruby
<jan0232> but yea…will have to look into that…it should be possible
andrewh has joined #ruby
sdwrage has quit [Quit: geekli.st/programmer]
savage- has joined #ruby
elhu has joined #ruby
mascool has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
<{aaron}> durr can't stub method named 'with' with rspec mock :'[
jgrevich_ has joined #ruby
Resure has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
d3vic3 has joined #ruby
<sprink> if I find a gem I am interested in, with `gem search -r gem`
kennyvb has quit [Quit: ZNC - http://znc.in]
<sprink> how do I then view additional info on that gem?
<sprink> to make sure it is what I'm looking for
<apeiros_> -d iirc
<apeiros_> but: gem help commands
<apeiros_> gem help search
User_420 has joined #ruby
chichou has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Remote host closed the connection]
sprink has quit [Ping timeout: 252 seconds]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
monkegjinni has joined #ruby
bluenemo has quit [Remote host closed the connection]
AlbireoX has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Jonghwan has joined #ruby
brianpWins has joined #ruby
havenn has quit [Remote host closed the connection]
sprink has joined #ruby
<sprink> should `gem query -dr <pkg>` work?
<sprink> mine just freezes
jan0232_ has joined #ruby
JonghwanHyeon has joined #ruby
deadSnowman has quit [Read error: Operation timed out]
Morkel has joined #ruby
snearch has joined #ruby
<sprink> uggh, I hate being frustrated. Does anyone know how to query a gem for detailed information?
jan0232 has quit [Ping timeout: 246 seconds]
jan0232_ is now known as jan0232
Eldariof-ru has quit []
<banisterfiend> sprink: what kind of stuff
<sprink> gem description
<sprink> I think I got it
deadSnowman has joined #ruby
<sprink> `gem q -rdn gem`
<sprink> that can't be the easiest way, that's ridiculous
Araxia has quit [Quit: Araxia]
<sprink> I wish there wan't 3 packages with the same exact description
<sprink> but with 3 different names
<banisterfiend> sprink: there's a 'gems' gem
<banisterfiend> that wraps the gem web API with ruby
<banisterfiend> sprink: oh, gem description is easy
<banisterfiend> sprink: one sec
<sprink> I'm just trying to find out which gem I should use for ncurses
arietis has joined #ruby
<sprink> but there's like 4 different ncurses wrappers, and they all have the same exact description, with different names and different versions
kernelpanix has joined #ruby
Axsuul has joined #ruby
<banisterfiend> sprink: look at date and activity
<banisterfiend> sprink: and number of gem downloads
w400z has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
answer_42 has quit [Quit: WeeChat 0.3.8]
atmosx has joined #ruby
<banisterfiend> sprink: anyway u can do this, if it's for local gems
<sprink> banisterfiend: how do you view that stuff?
<sprink> so I have to download gems before I can find out which one I want to use?
<banisterfiend> sprink: Gem.source_index.find_name("pry").description
<banisterfiend> sprink: check out ruby-toolbox.org first
savage- has quit [Remote host closed the connection]
<banisterfiend> sprink: and/or rubygems.org
Stalkr_ has joined #ruby
qwerxy has joined #ruby
u_u has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
<banisterfiend> sprink: ok?
<sprink> banisterfiend: yea thanks. just trying to figure out which one is best
<banisterfiend> np, ruby-toolbox is a pretty good site
<sprink> are these gems not official?
qwerxy has quit [Quit: offski]
<workmad3> sprink: define 'official'
<sprink> I'm new to ruby, just installed it
<sprink> as in, supported by the ruby project
<workmad3> sprink: yeah... that's not how rubygems works :)
<banisterfiend> sprink: its not part of stdlib, if that's what u mean
savage- has joined #ruby
locriani has quit [Remote host closed the connection]
<sprink> I take it rubygems is kinda like the equvilent of Arch User Repositories, where the packages are maintained by regular users, and not by anyone within the actual project
banghouse has quit [Remote host closed the connection]
<workmad3> sprink: gems are user supported, yes
<workmad3> sprink: the entire rubygems ecosystem is community supported, even rubygems itself :)
<banisterfiend> sprink: which languages do u come from?
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<aces1up> hey all I have a thread pool resource question. It can be found here: http://pastebin.com/0H2wbtWv
<aces1up> any help would be appreciated!
locriani has quit [Remote host closed the connection]
<sprink> banisterfiend: python most recently
fantazo has quit [Remote host closed the connection]
snearch has quit [Quit: Verlassend]
Guest99552 has quit [Quit: .: adios :.]
<sprink> workmad3: cool thanks
graspee has quit [Quit: leaving]
<sprink> banisterfiend: gonna take a little getting used to 3rd party stuff
kernelpanix has quit [Remote host closed the connection]
<banisterfiend> sprink: doesn't python have equivalent stuff? like 'pip' etc?
<workmad3> sprink: from what I remember, most python packages are similar
<banisterfiend> sprink: java has something similar with maven, and perl does too with CPAN
<workmad3> sprink: unless you only ever touch standard library stuff
jonathanwallace has quit [Remote host closed the connection]
<sprink> workmad3: yea, pretty much
<sprink> because it already has soo much in standard
<sprink> banisterfiend: that makes sense
<banisterfiend> sprink: what if you wanted, for example, to use a library that nicely wrapped the amazon api ?
<sprink> it's just ruby makes 3rd party stuff much more accessible
<workmad3> sprink: there's a massive amount in ruby's stdlib too... but unless you want to build stuff from scratch, it never has everything
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
<sprink> banisterfiend: I would search the web for one
<workmad3> sprink: true... last time I touched python, it was still mostly easy-install based... and easy-install sucks (and definitely isn't easy :) )
<sprink> python doesn't have any utilities built in to find 3rd party stuff
<banisterfiend> sprink: and how would u install it? :P
<banisterfiend> u'd vendor it in your application?
<sprink> that would depend on the lib
<sprink> but I guess that was the confusing part
<banisterfiend> sprink: yeah, once u get used to the gem way, you'll wonder what a pain in the ass the old way was
<sprink> because ruby has some official utility for finding and installing 3rd party stuff
<banisterfiend> i still have to go through that shit when i want to code in objc
<banisterfiend> it's a pain
<banisterfiend> though even objc is developing a gems like system, cf cocoapods
busybox42 has quit [Read error: Operation timed out]
igotnolegs has joined #ruby
busybox42 has joined #ruby
u_u has joined #ruby
<banisterfiend> i want Enumerator#[]
<workmad3> banisterfiend: what happens if your enumerator doesn't support random access?
<workmad3> banisterfiend: which is why I think it doesn't exist ;)
<banisterfiend> workmad3: i dont mind if [] is O(n)
<banisterfiend> in so far as the Enumerator has 'next' (which it must)
<banisterfiend> [n] can be the result of calling 'next' n + 1 times
<apeiros_> banisterfiend: first(n).last
<apeiros_> hm, though that's not correct
<sprink> apparently curses is in stdlib
<apeiros_> you'd have to check whether n items have been returned :-/
d3vic3 has quit [Quit: leaving]
<apeiros_> banisterfiend: anyway, should be easy enough to implement yourself :)
<workmad3> also, what happens if the enumerator only supports forward iteration?
beakerman has quit [Remote host closed the connection]
beakerman has joined #ruby
<banisterfiend> workmad3: yeah i see what you mean, calling e[5] and then e[3]
<workmad3> banisterfiend: yeah... random access isn't a general enumerator concept
<workmad3> banisterfiend: and on some, it can't even be faked :)
<banisterfiend> in my mind i just thought of Enumerators as lazy arrays
mr_oi has joined #ruby
<workmad3> banisterfiend: yeah... the old example would have been a magnetic tape drive... enumerable, but only forward and not random access
Markvilla has quit [Quit: Computer has gone to sleep.]
savage- has quit [Remote host closed the connection]
indian has quit [Ping timeout: 272 seconds]
ryanf has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
<workmad3> banisterfiend: it would make sense for a RandomAccessEnumerable, I guess
<workmad3> banisterfiend: but would probably need you to implement [] manually anyway...
<workmad3> banisterfiend: although I guess it could be implemented if you had a .first and a .each
mneorr has joined #ruby
wargasm has joined #ruby
yxhuvud has quit [Ping timeout: 246 seconds]
<banisterfiend> workmad3: Yeah
<banisterfiend> good point
apok has joined #ruby
apok has quit [Client Quit]
u_u has quit [Ping timeout: 244 seconds]
perlsyntax has joined #ruby
pskosinski has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
tomzx_ has quit [Read error: Operation timed out]
havenn has joined #ruby
icy` has joined #ruby
icy` has quit [Changing host]
icy` has joined #ruby
indian has joined #ruby
AnarchoTroll has quit [Quit: Leaving]
mr_oi has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
Criztian has quit [Ping timeout: 246 seconds]
savage- has joined #ruby
felipecvo has joined #ruby
Musfuut has quit [Read error: Operation timed out]
indian has quit [Ping timeout: 264 seconds]
andrewh has quit [Ping timeout: 246 seconds]
EricKamsky_ has joined #ruby
shvelo has quit [Ping timeout: 246 seconds]
EricKamsky has quit [Ping timeout: 244 seconds]
dr_bob has quit [Quit: Leaving.]
dpk has quit [Quit: Asleep at the keyboard.]
Hanmac has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
G has quit [Ping timeout: 246 seconds]
ph^ has quit [Remote host closed the connection]
s0ber_ has joined #ruby
G has joined #ruby
s0ber has quit [Ping timeout: 252 seconds]
s0ber_ is now known as s0ber
u_u has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Araxia has joined #ruby
chimkan_ has joined #ruby
Hanmac has joined #ruby
u_u has left #ruby [#ruby]
User_420 has quit [Quit: Leaving]
maxbeizer has joined #ruby
maxbeizer has left #ruby [#ruby]
G has quit [Ping timeout: 245 seconds]
ringotwo has joined #ruby
Musfuut has joined #ruby
xorgnak has quit [Remote host closed the connection]
arturaz_ has quit [Remote host closed the connection]
deryl has quit [Quit: deryl]
wargasm has quit [Read error: Connection reset by peer]
jan0232 has quit [Quit: jan0232]
ringotwo has quit [Remote host closed the connection]
daniel_hinojosa has joined #ruby
perlsyntax has quit [Quit: Leaving]
G has joined #ruby
fayimora has quit [Quit: Be back in a gifii]
chichou has joined #ruby
poincare101 has quit [Ping timeout: 264 seconds]
BrianJ has joined #ruby
s1n4 has quit [Quit: peace out]
the_mechanic has quit [Quit: the_mechanic]
w0lverine has joined #ruby
Musfuut has quit [Read error: Operation timed out]
Morkel has quit [Quit: Morkel]
Musfuut has joined #ruby
vvgomes has joined #ruby
zemanel has joined #ruby
karakedi has joined #ruby
G has quit [Ping timeout: 246 seconds]
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr_ has joined #ruby
mpereira has quit [Quit: leaving]
G has joined #ruby
sailias has joined #ruby
mfrost503 has joined #ruby
w0lverine has quit [Quit: w0lverine]
iamjarvo has quit [Quit: Leaving...]
burgestrand has joined #ruby
fbernier has quit [Ping timeout: 240 seconds]
wargasm has joined #ruby
thone_ has joined #ruby
iamjarvo has joined #ruby
thone has quit [Read error: Operation timed out]
<shevy> BABY
{aaron} has quit [Quit: Leaving]
iamjarvo has quit [Client Quit]
<shevy> we need to push ruby into the winning zone
arturaz has joined #ruby
<shevy> ^^ not enough!
G has quit [Ping timeout: 246 seconds]
justsee has joined #ruby
<shevy> now it is: Ruby vs. Perl
daiyefa has joined #ruby
<shevy> There can be only one Highlander Language.
phinfonet has joined #ruby
G has joined #ruby
u_u has joined #ruby
banisterfiend has quit [Remote host closed the connection]
u_u has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 246 seconds]
sailias has quit [Quit: Leaving.]
ianbrandt has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
Guest89851 has quit [Quit: Guest89851]
Resure has quit [Remote host closed the connection]
dpk has joined #ruby
ringotwo has joined #ruby
vitor-br has joined #ruby
havenn has quit [Remote host closed the connection]
<virunga> shevy: i read online people complaining that ruby hasn't good gui libraries
<virunga> that is the only thing that python has more than ruby
<virunga> i think
<heftig> virunga: jruby is better in that regard
u_u has joined #ruby
burgestrand has quit [Quit: Leaving.]
<virunga> heftig: i didn't know it. But jRuby has other disadvantages
vvgomes has quit [Ping timeout: 264 seconds]
<virunga> maybe i good library could help the spreding of Ruby
u_u has left #ruby [#ruby]
vvgomes has joined #ruby
<heftig> I'm following ruby-gir-ffi, I think it's promising
<heftig> it's the equivalent of pygobject
<Spaceghostc2c> virunga: It has disadvantages, so does every implementation of ruby.
<virunga> I'll check it out thanks
<heftig> you can design interfaces with glade and load them with Gtk::Builder
<shevy> virunga it is partially true. it depends though
<shevy> virunga ruby-gnome is usable in some ways.
<shevy> ruby-qt4, 2 years ago, was ok too
<shevy> but if I would have to make a score from 1-10 where 10 is maximum... I'd say ruby goes around 4 or 5 only at maximum :(
Rajesh has joined #ruby
<shevy> for GUI stuff
<shevy> right now closer to 4 perhaps :P
<heftig> there's also shoes
Foxandxss has joined #ruby
Rajesh is now known as Guest15475
<shevy> virunga, I used to use ruby-gnome a lot though. built a few "apps"... they semi-work... are not very beautiful. also, sadly, HTML5 + CSS + javascript kind of are really good...
burgestrand has joined #ruby
banseljaj is now known as imami|afk
<heftig> ruby-gir-ffi lets you use webkit, so you could build a standalone web application with that
<heftig> including video, webgl and whatever
<virunga> another thing of complaining i read is that's hard bundle ruby apps... is that true?
<shevy> hmm
<shevy> ruby+ffi, I still have to try that
<shevy> virunga, kinda
<shevy> well, it's not always ruby's fault
<shevy> if CentOS has ruby 1.8.5 then people are going to run into problems
qko has quit [Read error: Connection reset by peer]
<shevy> it would be nice to have a on-click-installer for windows
<shevy> like an app store!
qko has joined #ruby
<shevy> (for the ruby one click installer, on windows that is)
<shevy> but at least, ruby works on windows too
<shevy> virunga, your users will still need ruby to make the app work
<virunga> yep
<shevy> this is the first hurdle, which can often be big :-)
dcope has joined #ruby
<dcope> Is there a way to format a string so it's always padded with a 0 if it's one character long?
justsee has quit [Quit: Leaving...]
<dcope> ie... 1.to_s == "01". 22.to_s == "22"
<shevy> dcope you mean like a display listing counting from 0 to 99 right?
Ethan has joined #ruby
<shevy> there is the string formatting
<dcope> i can't seem to find the method in the ruby-doc.org
<shevy> '%3s' % '1' will become ' 1'
balki_ has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
alanp has joined #ruby
<shevy> yeah hmm
balki has quit [Ping timeout: 246 seconds]
<heftig> "%02d" % 3
<shevy> "%09d" % 1 # => "000000001"
<shevy> yeah what heftig showed
alanp_ has quit [Ping timeout: 246 seconds]
<shevy> somehow I did not remember that without having to look at my local docu ...
<virunga> try it on the bot :)
<dcope> thank you guys ;)
<dcope> i see it now on the ruby-doc.org site
<heftig> >> "%02d" % 3
<shevy> >> "%09d" % 1 # => TESSSST
<al2o3cr> heftig: (String) "03"
<al2o3cr> shevy: (String) "000000001"
<dcope> it's the first public instancem ethod :)
<shevy> cool
<shevy> the bot works :)
andrewhl has joined #ruby
nicoulaj has quit [Remote host closed the connection]
<shevy> dcope, yeah... sometimes hard to google. like how to google for the splat operator, without knowing that it is called splat
Guest15475 has quit [Quit: Leaving to Quit]
<shevy> "ruby *"
<dcope> sweet, that works flawlessly
arturaz has quit [Remote host closed the connection]
guns has joined #ruby
<bperry> yeah, calling it splat wasn't intuitive to me
<heftig> bang splat pow!
<heftig> ! * **
<bperry> I heard some coworkers talking about these splats and I at first it sound like a conversation I didn't want to be overhearing :/
<dcope> lol
<bperry> I knew exactly ho wto use it and had been using it in a few places
<bperry> but I didn't call it a splat
<bperry> I just called it params
<bperry> or something like that
<bperry> in C# there is an equivalent keyword which functions the same way, but it is call params
banisterfiend has joined #ruby
<virunga> i can't find it on ruby-doc
subbyyy has quit [Read error: Connection reset by peer]
randym has quit [Ping timeout: 248 seconds]
davidboy has quit [Ping timeout: 248 seconds]
dotemacs has quit [Ping timeout: 248 seconds]
<virunga> what method is it?
joelio has quit [Ping timeout: 252 seconds]
<heftig> virunga: find what?
<virunga> heftig: splat
<heftig> it's not a method.
<virunga> :P
<virunga> awkward
<heftig> like &&, it's a built-in operator
joelio has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
dankest has joined #ruby
<virunga> heftig: can you do an example?
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
dotemacs has joined #ruby
<banisterfiend> virunga: a= [1,2]; def pig(x, y); puts x; puts y; end pig(*a)
darren_ has joined #ruby
seanstickle has joined #ruby
<virunga> banisterfiend: ah, this *a
<virunga> ok
<virunga> thanks
<heftig> though it ends up calling to_ary on 1.8 and to_a on 1.9
karakedi has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<heftig> (if the object isn't already an array or derivative)
daiyefa has quit [Ping timeout: 245 seconds]
darren has quit [Ping timeout: 272 seconds]
<virunga> heftig: where are you from?
<heftig> germany
tommyvyo has joined #ruby
berserkr has joined #ruby
phinfonet has quit [Quit: phinfonet]
randym has joined #ruby
iamjarvo has joined #ruby
ringotwo has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
vertroa has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
w400z has quit []
subbyyy has joined #ruby
darren_ has quit [Remote host closed the connection]
dotnull has joined #ruby
dotnull has quit [Remote host closed the connection]
[Neurotic] has joined #ruby
brianpWins has quit [Quit: brianpWins]
elhu has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
davidboy has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
darren has joined #ruby
Araxia has quit [Quit: Araxia]
vitor-br has quit [Ping timeout: 246 seconds]
u_u has joined #ruby
iamjarvo has quit [Quit: Leaving...]
cakehero has joined #ruby
u_u has left #ruby [#ruby]
mfcabrera_ has quit [Quit: This computer has gone to sleep]
<shevy> virunga hehe
<shevy> it's hard to search for this
dipayao has joined #ruby
xorgnak has joined #ruby
dipayao has quit [Disconnected by services]
<shevy> I know two things about germany
<shevy> the people there speak german
<shevy> and they like beer
<fowl> hey arnold is going to be in the expendables 2
havenn has joined #ruby
<shevy> damn ex-austrians!!!
<shevy> I liked the idea in expendables though
<seanstickle> Ausaustrians, I guess you'd call them
<shevy> a bit like a "farewell to the old action guys".
u_u has joined #ruby
Zespre has quit [Ping timeout: 255 seconds]
<shevy> i miss the days when they were younger, there dont seem to be anyone having replaced them much at all :(
<shevy> Rambo I was awesome
<RubyPanther> I'm still using Gtk2 with Ruby and I give it very high marks
havenn has quit [Remote host closed the connection]
Zespre has joined #ruby
xorgnak has quit [Remote host closed the connection]
<shevy> hehe
<RubyPanther> Even the tray apps are portable
<shevy> RubyPanther, well... what score would you give it from 1-10 where 10 is highest?
xorgnak has joined #ruby
<fowl> shevy: look how much makeup they're all wearing
u_u has left #ruby [#ruby]
<RubyPanther> 9.5
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> hey fowl ... nice trailer ... at 0.32 it reminds me of the game "assassin's creed"
<shevy> "I now pronounce you man and knife."
<shevy> yeah
<shevy> stallone is kinda deadish zombielike
<shevy> :(
<shevy> but it's his farewell tribute kinda
<shevy> and his son died not long ago so that sucks too
u_u has joined #ruby
<shevy> stupid steroids
<virunga> ehi do you know raspberry pi? It's cute
<RubyPanther> It only gets two small deductions, there not a huge number of specialized pre-built widgets, and if you're using a GUI builder there are version-compatibility issues that are not always well documented
<shevy> RubyPanther, isn't that a bit too high a score? they are lagging behind for gtk3
<virunga> i want it
<RubyPanther> What would Gtk give me?
<shevy> hehe
<shevy> virunga, nope, no idea really... I kinda didn't pay much attention to smartphones etc...
zemanel has quit [Quit: Remote hottie closed the connection]
<shevy> good old desktop user until I die...
<virunga> shevy: isn't a smartphone
<virunga> give it a look
<shevy> ok googling
<virunga> it's a low cost pc
<virunga> 30 $
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<shevy> aha
<shevy> I see only crappy pictures so far :P like a chip only
cj3kim has joined #ruby
<cj3kim> hi
<RubyPanther> I can already write an app in linux, see it perfectly in gnome including the tray app, and then if I have a windows host it is just the one click installer, the devkit, and my app is running... including the tray app
u_u has left #ruby [#ruby]
<virunga> ARM 700 MHz but HDMI and 1080p
phinfonet has joined #ruby
<shevy> virunga am looking at the videos on http://www.raspberrypi.org/ now
<RubyPanther> Printing is portable, etc
<shevy> "1940s TV" wtf...
<virunga> :)
<shevy> RubyPanther yeah, that was ok that I could develop on linux, and it worked on my windows laptop too
<shevy> but such a high score...
<RubyPanther> and I can write extra widgets in C or something, and it is still portable
<shevy> lol fowl ... arnie saying... "I am back."
<RubyPanther> having the lib itself OO by convention in plain C is an important part of that score
fantazo has joined #ruby
S1kx has quit [Read error: Connection reset by peer]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
ppawel has quit [Ping timeout: 250 seconds]
mahmoudimus has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<shevy> this array.to_s thing in 1.9.x confuses me
<shevy> I think for when trying to be downwards compatible to 1.8.x I'd use array[0] now rather than array.to_s for one-membered arrays
xorgnak has quit [Remote host closed the connection]
kirun_ has quit [Quit: Client exiting]
ringotwo has joined #ruby
mmokrysz has joined #ruby
mmokrysz has left #ruby [#ruby]
mk03 has joined #ruby
<virunga> shevy: how is an array printed in 1.8?
<virunga> an array of multiple elements
<shevy> virunga you mean via .to_s ?
Zespre has quit [Ping timeout: 244 seconds]
<virunga> yes
<shevy> hmm
<shevy> I think it is like array.join('') or .join(' '), not sure
<shevy> I removed my 1.8.x so I cant check right now :(
<shevy> in 1.9.x it is:
<RubyPanther> You shouldn't still need to support 1.8
<shevy> %w( a b c ).to_s # => "["a", "b", "c"]"
Araxia has joined #ruby
<RubyPanther> "2.0 is coming and 1.8 has no future"
<shevy> anyone has 1.8.x and could show the result for the above?
<shevy> yeah
<shevy> but 1.8 was my first real love as far as programming languages are concerned
baroquebobcat has quit [Quit: baroquebobcat]
Zespre has joined #ruby
<virunga> RubyPanther: are those Matz's words?
<RubyPanther> virunga: No, Yugui (the release manager)
sepp2k has quit [Remote host closed the connection]
<virunga> mac os x, which is the only os that comes with ruby preinstalled, with mountain lion still has 1.8.7... i can't understand...
<RubyPanther> > puts "%s %s" % [RUBY_VERSION, [1,2,3].to_s]
<RubyPanther> 1.8.6 123
chimkan_ has quit [Quit: chimkan_]
jonathanwallace has joined #ruby
<RubyPanther> C style :)
CalebIO has joined #ruby
CalebIO has quit [Client Quit]
<shevy> hmmm
brianpWins has joined #ruby
<shevy> virunga, matz abandoned us for mruby
<shevy> :(
<shevy> but mruby will be the future one day
CalebIO has joined #ruby
chimkan has joined #ruby
<shevy> + struct RClass *c = mrb->ci->proc->target_class;
<shevy> gah
<shevy> why people love C so much ...
CalebIO has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
alienaut has joined #ruby
<alienaut> hello
ringotwo has quit [Remote host closed the connection]
<virunga> mruby is funded by the japan state
<alienaut> when i try to install linecache19 gem it took too long :/
<virunga> fantastic
Banistergalaxy has quit [Ping timeout: 240 seconds]
<virunga> isn't mruby released yet?
yoklov has joined #ruby
Tomasso has quit [Ping timeout: 244 seconds]
<jrajav> What is mruby?
<virunga> i think an embedded ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<shevy> virunga it is very incomplete
<shevy> no load() no require() and many other things are missing too
<shevy> it will only be a success if it will be really smaller and faster than MRI ruby
<shevy> alienaut, how do you install it
<shevy> exact command you used pls
justsee has joined #ruby
w400z has joined #ruby
<alienaut> shevy i did it :)
<alienaut> but thank you
<mk03> mruby is slower than cruby, as long as I have read matz's tweets
<shevy> oh
<shevy> :(
<shevy> mk03 you kill my hope ... :(
<virunga> i saw a talk of matz about mruby... He also said that ruby 2.0 is gonna come in the 2013
<shevy> but it's ok. I still have beer here.
<alienaut> january 2013?
<virunga> i dunno
<virunga> i believe after
<alienaut> humm
banisterfiend is now known as ReginaldTan
kstephens has quit [Ping timeout: 264 seconds]
mneorr has quit [Quit: Leaving.]
<shevy> many many months...
<shevy> what shall we do in that time
kstephens has joined #ruby
tomzx_ has joined #ruby
Progster has quit []
baroquebobcat has joined #ruby
u_u has joined #ruby
dangerousdave has quit [Ping timeout: 272 seconds]
<shevy> I am going to learn another language
<virunga> Scala
<virunga> .
<virunga> Prolog. ahahahah
<GeekOnCoffee> french?
ghaydarov has quit [Quit: Leaving...]
<shevy> lol
<shevy> GeekOnCoffee, you are always on spot to say something funny
manizzle has joined #ruby
<GeekOnCoffee> I try
<virunga> french what?
<GeekOnCoffee> shevy: I can be serious, and I do know things, but that's so boring
subbyyy has quit [Read error: Connection reset by peer]
SeySayux has quit [Read error: Connection reset by peer]
<shevy> virunga well a language
<shevy> scala does not interest me much
<shevy> but Prolog... there is something in it that could be useful
<shevy> perhaps
<ReginaldTan> shevy: i think visual basic is more your style
subbyyy has joined #ruby
<virunga> lol... it's too late for that jokes.. nice anyway :D
<GeekOnCoffee> everybody should at some time in their life learn a language where you have to manage your own memory (C++)
<GeekOnCoffee> preferably sooner rather than later in life
Jake232 has quit [Quit: Computer has gone to sleep.]
<GeekOnCoffee> if you can spend some time learning assembly programming, all the better
<virunga> lol
<shevy> ReginaldTan, this visual basic ... isn't that the thing with the annoying endFunction things?
<GeekOnCoffee> virunga: I'm not joking
<shevy> assembly perhaps, it seems interesting
<shevy> but C++ I really hate
<shevy> TEMPLATES
<shevy> Hanmac, say why you like templates in C++
<GeekOnCoffee> shevy: I hate it too
<GeekOnCoffee> ditto for assembly
katherinem13 has quit [Quit: katherinem13]
kjellski has quit [Quit: Leaving]
<shevy> hehe
<shevy> assembly could be pretty interesting though or?
<shevy> like you are very close to the machine
<shevy> brain-matrix interface
<virunga> i loathe it
Clooth has joined #ruby
<GeekOnCoffee> it's interesting, and it'll make sure you appreciate ruby
<ReginaldTan> virunga: watch this project to bring us up to 1300 again :P thx
<seanstickle> APL is a good thing to learn too.
<seanstickle> Potentially better than C++, I'd say
<virunga> ReginaldTan: what are you writing about?
<ReginaldTan> virunga: i dont know
<shevy> haha
<shevy> good answer :)
w400z has quit [Quit: Computer has gone to sleep.]
<virunga> my english is too bad and it's quite late here to understand this things
<virunga> is it another joke?
<virunga> aahahahahah
katherinem13 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<GeekOnCoffee> I'd never write assembly or C++ professionally (famous last words) but every once in a while I see something going on in ruby that I can attribute to the way ruby must be written
tewecske has quit [Quit: Leaving.]
<ReginaldTan> GeekOnCoffee: ruby is written in C, not C++
w400z has joined #ruby
<shevy> hmm
<shevy> would ruby have been slower if it would be in C++ rather than C?
<ReginaldTan> shevy: no..
SeySayux has joined #ruby
jjang has joined #ruby
<virunga> ReginaldTan: where are you from?
<ReginaldTan> virunga: None of your business.
<GeekOnCoffee> ReginaldTan: meh, same difference
<ReginaldTan> GeekOnCoffee: not really, they're significantly different :)
<ReginaldTan> GeekOnCoffee: A good C++ programmer is not necessarily a good C programmer, and definitely vice-versa.
deryl has joined #ruby
<virunga> ReginaldTan: why are you so rude?
<GeekOnCoffee> ReginaldTan: I know, but from the perspective I'm coming from, there's no major difference
<shevy> hmm
<shevy> somehow I would have thought that C code tends to be marginally slower than C++ code, provided that those who wrote the same functionality would be experts in the respective language
<ReginaldTan> GeekOnCoffee: " but every once in a while I see something going on in ruby that I can attribute to the way ruby must be written" was so vague it's hard to know what perspective you were coming from at all :)
<shevy> sorry
<shevy> C code marginally *faster than C++
<GeekOnCoffee> ReginaldTan: I'm recommending it simply for ruby devs to learn about how manual memory management works, etc
r1chelt has joined #ruby
<seanstickle> shevy: FORTRAN can be faster than C for some purposes
<seanstickle> shevy: it's not all about bare metal stuff
sgronblom has joined #ruby
<shevy> GeekOnCoffee, that is very hard to wrap the head around. I read a C++ book many years ago... it was not easy to understand memory management. in ruby, everything really seems so much easier to do
<GeekOnCoffee> but ReginaldTan your point is a valid one.
<shevy> I used only php for like 1 year before I read that C++ book lol
<GeekOnCoffee> shevy: exactly :)
<shevy> seanstickle, yeah I read that a few times
savage- has quit [Remote host closed the connection]
<seanstickle> shevy: same with Ada
w400z has quit [Ping timeout: 264 seconds]
darren has quit [Remote host closed the connection]
nullthreat has left #ruby [#ruby]
phinfonet has quit [Read error: Connection reset by peer]
r1chelt has left #ruby [#ruby]
<cj3kim> would any of you still consider the book "The Ruby Programming Language" from 08 a must read?
<alienaut> rails 3.1 is ok with ruby 1.9.3
<alienaut> ?
<virunga> cj3kim: it's updated
bothra has joined #ruby
<virunga> cj3kim: it explain 1.8 and 1.9 either
<virunga> i find it a nice book
<shevy> cj3kim I think it is better than no book at all
<shevy> 4 years is a long time tho
<shevy> my favourite one was pickaxe in 2005 or 2006
<shevy> I was totally new, and I didnt know anything in it
mrdanimal__ has joined #ruby
<shevy> when I bought the new pickaxe in ... 2009 or something like that, I knew 60% already :(
<shevy> it explains the stdlib though, that is always helpful
ReginaldTan has quit [Remote host closed the connection]
alienaut has left #ruby ["Leaving"]
rerntzdb has quit [Quit: time to leave]
jgrevich has quit [Ping timeout: 246 seconds]
<virunga> 'night
axl_ has quit [Quit: axl_]
fantazo has quit [Remote host closed the connection]
mwilson_ has quit [Excess Flood]
iamjarvo has joined #ruby
mwilson_ has joined #ruby
mwilson_ has quit [Excess Flood]
mahmoudimus has joined #ruby
mwilson_ has joined #ruby
apok has joined #ruby
ReginaldTan has joined #ruby
havenn has joined #ruby
mrdanimal__ has left #ruby [#ruby]
ReginaldTan is now known as banisterfiend
banisterfiend has quit [Remote host closed the connection]
ZachBeta has joined #ruby
havenn has quit [Ping timeout: 244 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
virunga has quit [Quit: Sto andando via]
dankest has quit [Quit: Linkinus - http://linkinus.com]
paradoja has joined #ruby
tompsony has joined #ruby
Synthead has quit [Quit: sqooq]