ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
brianpWins has joined #ruby-lang
workmad3 has quit [Ping timeout: 246 seconds]
tjadc has quit [Remote host closed the connection]
QaDeS has quit [Quit: Ex-Chat]
groszek has joined #ruby-lang
msaffitz has quit [Quit: Computer has gone to sleep.]
<groszek> Hi. I seem to have some weird problem with #unpack and endianess ... for example "\x82\xfb\xef\xd9".unpack("L>")[0]
<groszek> i think this should return big endian, and the result should be 2197549017. But it seems to return little endian with result 3656383362
<groszek> any ideas please?
<heftig> groszek: ruby -v
<groszek> ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
<heftig> needs 1.9.3
<groszek> oh? so its some kind of bug?
<heftig> no, the ">" endianess modifier was introduced in 1.9.3
<groszek> ahh
<groszek> thank you, will try after upgrade :)
fayimora has quit [Quit: Busy…..zzzzz]
fgomez has quit [Ping timeout: 260 seconds]
<groszek> that worked, thanks.
fserb has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
l0st1 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
seanstickle has joined #ruby-lang
naz has joined #ruby-lang
fgomez has joined #ruby-lang
naz has quit [Read error: Connection reset by peer]
naz has joined #ruby-lang
Z33K|Lux has joined #ruby-lang
Z33K|Lux has quit [Client Quit]
anathan has left #ruby-lang [#ruby-lang]
Z33K|Lux has joined #ruby-lang
pabs has quit [Ping timeout: 245 seconds]
pabs has joined #ruby-lang
arooni-mobile has joined #ruby-lang
mistym has quit [Read error: Connection reset by peer]
<whitequark> sigh
<whitequark> the fate of progress
<whitequark> with latest jruby, my workload finally takes exactly, second-for-second same time as it has been taking on MRI
sora_h is now known as s0ra_h
<whitequark> ... except for the fact that jruby uses 8 threads.
mrsolo has left #ruby-lang ["Leaving"]
<whitequark> (also, disabling the new cool performance improving features in jruby cuts that time in half.)
savage- has quit [Ping timeout: 248 seconds]
Criztian has quit [Remote host closed the connection]
<seanstickle> whitequark: come, join us in #apl
<seanstickle> Learn a real language!
mistym has joined #ruby-lang
s0ra_h is now known as sora_h
brunocoelho has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
neoesque has joined #ruby-lang
woollyams has joined #ruby-lang
sora_h is now known as s0ra_h
tylergillies is now known as DonMetta
wilkie has quit [Ping timeout: 245 seconds]
wilkie has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
<whitequark> seanstickle: already on #scheme
mistym has quit [Remote host closed the connection]
<whitequark> unless you're in an ungent need of a flamewar...
<seanstickle> :D
msaffitz has joined #ruby-lang
lsegal has joined #ruby-lang
nazty has joined #ruby-lang
fserb has quit [Quit: ttyl]
dphase has joined #ruby-lang
akira989_ has quit [Remote host closed the connection]
dv310p3r has joined #ruby-lang
yibe_ has quit [Ping timeout: 260 seconds]
shevy has quit [Ping timeout: 244 seconds]
msaffitz has quit [Quit: Computer has gone to sleep.]
shtirlic has joined #ruby-lang
shtirlic_ has quit [Ping timeout: 250 seconds]
yibe_ has joined #ruby-lang
yannis has joined #ruby-lang
shevy has joined #ruby-lang
gouthamvel has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
nazty has quit [Quit: WeeChat 0.3.7]
s0ra_h is now known as sora_h
Dreamer3 has quit [Quit: Computer has gone to sleep.]
fgomez has quit [Quit: leaving]
slyphon has joined #ruby-lang
Dreamer3 has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
longkeyy has joined #ruby-lang
imperator has joined #ruby-lang
fgomez has joined #ruby-lang
nazty has joined #ruby-lang
bglusman has joined #ruby-lang
nazty has quit [Quit: WeeChat 0.3.7]
bglusman has quit [Ping timeout: 246 seconds]
dalekurt has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
nazty has joined #ruby-lang
stardiviner has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby-lang
msaffitz has joined #ruby-lang
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 246 seconds]
jbsan_ is now known as jbsan
msaffitz has quit [Client Quit]
zz_wasnotrice is now known as wasnotrice
dalekurt_ has joined #ruby-lang
dalekurt has quit [Ping timeout: 260 seconds]
dalekurt_ is now known as dalekurt
nazty has quit [Ping timeout: 246 seconds]
felipe__ has quit [Read error: No route to host]
DonMetta is now known as tylurgillees
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
M4g1c5t0rM has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 244 seconds]
<Okasu> hello guys
<Okasu> i'm finnaly uploaded mine code(imap problem) to github
<Okasu> i figured out that imap works fine on on RFC imap servers
<erikh> ha that's clever
<Okasu> erikh: but it works only on one mail provider(that i managed to find) :.)
<erikh> hrm
<Okasu> dunno what's wrong with gmail and others
<Okasu> it seems that they just disobey RFC broke IMAP in their own way
<Okasu> and broke*
sora_h is now known as s0ra_h
redline96-afk has joined #ruby-lang
redline96-afk has quit [Client Quit]
<Okasu> I hope somebody someday be able to help me with this :)
neocoin has joined #ruby-lang
<bnagy> what doesn't work again?
robbyoconnor has joined #ruby-lang
<Okasu> on gmail and lavabit: 'send mail→run app→get mail' - works, 'run app→send mail→get mail' - doesn't work
<Okasu> on rambler.ru both variant works fine
bfreeman has joined #ruby-lang
<Okasu> 'run app' - ruby server.rb
<Okasu> server should check for new mail with cmds
<Okasu> and respond to sender with result
longkeyy has quit [Ping timeout: 246 seconds]
<Okasu> but on gmail/lavabit server just dean't see new mails somehow
<Okasu> new mails - mails that arrives at server's runtime
<bnagy> what doesn't work again?
woollyams has quit [Read error: No route to host]
<Okasu> bnagy: 'send mail→run app→get mail' - works, 'run app→send mail→get mail' - doesn't work
<bnagy> yeah but that means nothing to me
<Okasu> >work
<Okasu> >doesn't work
<Okasu> again?
<Okasu> for me too :)
<bnagy> what is actually not working, what piece of technology do you feel is faulty
<Okasu> IMAP
<bnagy> sending? receiving?
<bnagy> jesus this is like pulling teeth
gnufied has joined #ruby-lang
<Okasu> recieveing
<Okasu> fetch
<Okasu> i'm just can't fetch messages that comes to server after my app connects to it
<Okasu> is it clearer?
seanstickle has quit [Quit: Nihil sub sole novum]
msaffitz has joined #ruby-lang
<Okasu> status method shows that message count grows
<Okasu> bnagy: yeah
woollyams has joined #ruby-lang
s0ra_h is now known as sora_h
<Okasu> but .fetch fetches nothing new
rmascarenhas has quit [Quit: leaving]
<erikh> sorry I got pulled away
<bnagy> that's using some different options for the fetch
<bnagy> RFC822
<bnagy> Okasu: imho, just write some test code around just the fetching part, and play with it until you get gmail working
<bnagy> and / or google stuff like 'gmail imap ruby'
<erikh> I'm going to write an article called 'the p call and you: a practical guide to debugging'
<bnagy> also I would start out just getting all new email, until you get it working
<bnagy> erikh: good plan, dude
<Okasu> bnagy: it's what i did past week :)
<bnagy> ok, where's your test code?
<bnagy> I got gmail. This shouldn't be difficult, man.
bryancp_ has quit [Remote host closed the connection]
<Okasu> and it's not about how to fix my app, it's about how to brake it in gmail way, but yeah, i should keep trying
asahi has quit [Quit: Leaving.]
<bnagy> Okasu: well if you start out by assuming that gmail is broken and your code is correct then I don't see wild success in your future
<bnagy> if you write a minimal standalone test that just gets all unseen mail from a given gmail account I'm happy to look at it
<Okasu> bnagy: ok, i'll do it
<imperator> gem search -r gmail :)
<bnagy> Okasu: also, some Opera dev bitching, 4 years ago, about stuff that has nothing to do with your problem does not support your case
<erikh> pro tip: all imap implementations are broken
<erikh> in subtly different ways; the spec is a colossal turd
<erikh> you used to be able to send exchange into a tailspin with certain search queries
<erikh> ok. maybe UW imapd isn't broken
<imperator> my experience with imap is that it fucking sucked
<Okasu> erikh: i'm noticed that :)
<erikh> Okasu: if you can use pop3 for this task, it's a *much* simpler spec and usually isn't broken.
<imperator> gem search -r imap :)
andrewhl has quit [Remote host closed the connection]
<erikh> imperator: net/imap is in core, but it's little more than an evented shim around the protocol last I checked
<erikh> err, s/core/stdlib/
<Okasu> erikh: i
<Okasu> yeah, but i cant use it for this task :(
<erikh> ah, phooey.
<erikh> imperator: oh you might dig this, a friend told me a bunch of board games are available on the ipad, multiplayer too; puerto rico, carcassonne, settlers, a few others that I didn't recognize.
<imperator> erikh, yep, i'm aware :)
<erikh> ah, cool
rippa has joined #ruby-lang
<imperator> ipad is quickly becoming a board gaming platform
<bnagy> *bored
<erikh> yeah, I'm excited at the prospect of playing with my old gaming buddies again
acyed has quit [Remote host closed the connection]
<erikh> seeing as we're all spread out these days.
* imperator throws a d6 at bnagy
<erikh> heh
<bnagy> Okasu: why can't you use pop3, btw?
<erikh> yeah, I saw some crazy scrabble game where you held your tiles on an iphone
<erikh> and the board was the ipad
<bnagy> hahah
<bnagy> MOAR DEVICES
<imperator> erikh, vassalengine.org, yucata.de, brettspielwelt.de
<erikh> bnagy: yeah it was a little over the top
<erikh> imperator: i'll check those when i'm off my work comp
somethinYellow has quit [Quit: Computer has gone to sleep]
<Okasu> bnagy: because pop doesn have SEARCH command, and i can't afford to get every mesage in a box every time i check for income
<imperator> erikh, the latter two are more for live play
<bnagy> Okasu: but you only need to check for stuff newer than last command
<imperator> though brettspielwelt's interface is pretty awful; definitely recommend yucata.de if it has the games you prefer
<bnagy> Okasu: you could just have a STAT loop, no?
<Okasu> bnagy: to check i need get all uidl then store them somehow, then get all messages and theck uid of ech message to fin new
<Okasu> uh, i'm gettig sleepy, sorry
<Okasu> for mistakes
<bnagy> you don't need to get all messages
<imperator> erikh, working? at this hour?
<erikh> imperator: unfortunately yes
<bnagy> and if the pop3 server supports TOP that's even better
<erikh> I've been working since 5:30am (it's 9:30pm now)
<Okasu> bnagy: so how can find messages that contains cmd?
<bnagy> worst case, retr all messages that are new sine your last check
<bnagy> which is not going to be many
<bnagy> best case, TOP all new messages
<Okasu> bnagy: now i'm check subject, how can i do it with pop without retr all - i don't know
<bnagy> like I said, you only need to retr NEW messages
<bnagy> worst case
<Okasu> bnagy: how can i check which message is new or wich is not? fetch uids of all, then fetch it again, then fetch all messages and check each uid to find new uid
<bnagy> that's one (retarded) way
<Okasu> :)
<bnagy> or you could just cache the number of messages from stat
<bnagy> or you could just check messages from the tail end until you find the messages that was previously the newest
<bnagy> if we're assuming that nobody else is deleting pop3 messages from under our nose then the first way should work
ezkl has joined #ruby-lang
<Okasu> geez, HOW, i don't see any .last .fetch_one .fetch_newest methods here http://www.ruby-doc.org/stdlib-1.9.3/libdoc/net/pop/rdoc/Net/POP3.html
<Okasu> if .mail just an array of all, how can you tell that i dont have to fetch all?
<bnagy> sorry I was just talking about actual pop3 commands, not ruby wrappers
<Okasu> oh, i see
<bnagy> STAT will return a number and a total bytes
<bnagy> like 120 75467864
<bnagy> 1 is the first message
<bnagy> RETR 120 would get the last message
<Okasu> ok, maybe i should write mt own ruby wrapper to pop
<bnagy> so in this case RETR 120, save that as newst. Next poll, start RETRing from the end until the message you get is your previous newest
<bnagy> in which case you can break
<Okasu> now it makes sense for me
<bnagy> but if the pop3 server supports TOP it's even better
<bnagy> cause you can TOP the headers for the messages and use the same approach
<Okasu> bnagy: yeah, i got now, i'm just was confused by ruby wrapper
<bnagy> if nobody else is deleting stuff, you can just STAT in a loop, and wait until the number of messages increases
<Okasu> got it*
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gsav has quit [Read error: Connection reset by peer]
wasnotrice is now known as zz_wasnotrice
andrewhl has joined #ruby-lang
tRAS has joined #ruby-lang
krz has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
ruurd has quit [Quit: Leaving...]
hakunin has quit [Ping timeout: 260 seconds]
gouthamvel has joined #ruby-lang
ruurd has joined #ruby-lang
ezkl has quit [Quit: QUIT!]
ryanf has quit [Quit: leaving]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
<Okasu> meh, uid_fetch(id, 'RFC822') doesn't change anything
gsav has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Weems has joined #ruby-lang
cirwim has joined #ruby-lang
savage- has joined #ruby-lang
ryanf has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
msaffitz has quit [Quit: Computer has gone to sleep.]
<bnagy> in particular the message method
<Okasu> bnagy: here the test http://vpaste.net/jgfae
TheHunter_1039 has quit [Quit: TheHunter_1039]
<bnagy> well you and that gmail gem are not fetching the same attr
<Okasu> nope, we fetch the dame attr
<Okasu> BODY
yxhuvud has joined #ruby-lang
<Okasu> is it so important?
<Okasu> i doubt that that gem works in my usecase if it the same code that i have...
arooni-mobile has quit [Ping timeout: 265 seconds]
<bnagy> everyone seems to use the 'RFC822' attr
<Okasu> bnagy: i'm already test it
<bnagy> I can't really test properly cause my stupid fricking openSSL is borked
<bnagy> *&%^$^%*& OSX root certs :(
cirwim has left #ruby-lang [#ruby-lang]
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
yannis has quit [Quit: Bye!]
sora_h is now known as s0ra_h
ruurd has quit [Quit: Leaving...]
brushbox has quit [Quit: Leaving.]
gsav has quit [Read error: Connection reset by peer]
<bnagy> Okasu: it works for me, btw, with rfc822
<Okasu> bnagy: it works for me too
<Okasu> but this is 'send mail→run app→get mail' case
charliesome has joined #ruby-lang
<Okasu> i need to make 'run app→send mail→get mail' case works
gnufied has quit [Quit: Leaving.]
<bnagy> ok I still have no idea what you're talking about, or what those glyphs are supposed to be
<Okasu> ->
<bnagy> ok, anyway, if you have a specific problem people might be able to help
<Okasu> http://vpaste.net/DN7Fc here s 'run app→send mail→get mail' case
<Okasu> just run app
<Okasu> send mail
<Okasu> and watch a fail
<bnagy> I don't really care about your app, dude :)
<bnagy> you're using the wrong attrs again in that paste though
<bnagy> why don't you check which attrs are available and do some error handling?
<Okasu> ok, i seay it again, attr a unsignificant
<Okasu> bnagy: huh, its a test you asked me to write
<bnagy> yeah, and I ran it, and it works fine
<Okasu> what a error handlying you talking about
<bnagy> it gets not seen mail
<bnagy> using attr 'rfc822'
<Okasu> bnagy: can you RUN APP, then SEND MAIL, and then GET MAIL?
<bnagy> that test. Works perfectly.
<bnagy> assuming I have an unseen mail
<Okasu> lol, can you read what i write to you?
<Okasu> can you RUN APP, then SEND MAIL, and then GET MAIL?
<bnagy> run what app?
<Okasu> your app
<Okasu> that test htat works perfectly
<bnagy> uh...wat?
<bnagy> you're not making sense
<bnagy> that test just establishes that we can fetch unseen emails from gmail
<Okasu> bnagy: and how it's relates with my problem?
<bnagy> which was what you were saying wasn't working
solars has joined #ruby-lang
<Okasu> > bnagy: it works for me too
<Okasu> huh?
<Okasu> where i says that?
<bnagy> initially. So what's not working now?
<Okasu> read whet i write already
savage- has quit [Read error: Connection reset by peer]
<bnagy> Okasu: ok, how about you go fuck yourself instead?
<Okasu> no u
savage- has joined #ruby-lang
<bnagy> jesus, dude, people try to help you and you're just unclear and belligerent
<bnagy> no wonder you can't get your code to work if you code like you communicate
<Okasu> what is unclear in "can you RUN APP, then SEND MAIL, and then GET MAIL?"
<Okasu> can you speak english?
gnufied has joined #ruby-lang
<Okasu> mine code is working perfectly, but not on gmail or lavabit
zmack has joined #ruby-lang
<Okasu> bnagy: do you need some pictures or somthing that ca made you understand, you know like in kindergarden?
dalekurt has quit [Quit: Zzz...]
s0ra_h is now known as sora_h
<Okasu> lol, stupid troll
<bnagy> Okasu: move select(mailbox) into your loop
<bnagy> (also, grow up)
<Okasu> huh, lol, why still continue this stupid and pointless trolling?
<Okasu> you are not helping
<Okasu> i did it "select(mailbox) into your loop" like 2-3 days ago
<Okasu> it doesn't work
<bnagy> works fine for me
ruurd has joined #ruby-lang
<Okasu> bnagy: do you use gmail?
<bnagy> I run that, send an email to my gmail, it shows up (once, cause then it's seen after that)
poga has joined #ruby-lang
<Okasu> hm, no, something wrong with it, i should think about it later, i can't now
<Okasu> good night
<bnagy> :>
poga has quit [Remote host closed the connection]
aprimadi has joined #ruby-lang
kitallis has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
seoaqua has joined #ruby-lang
sora_h is now known as s0ra_h
s0ra_h is now known as sora_h
mistym has quit [Remote host closed the connection]
timbleck has joined #ruby-lang
Boohbah has quit [Remote host closed the connection]
Z33K|Lux has quit []
denysonique has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
kyrylo has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby-lang
qwerxy has joined #ruby-lang
savage- has quit [Remote host closed the connection]
<youngin> Good morning!
<youngin> I'm trying to get this script to export some SQLite data into PostgreSQL - https://gist.github.com/2887228 - but I'm getting: undefined method `to_url' for nil:NilClass (NoMethodError) - anybody know what's wrong?
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
dhruvasagar has joined #ruby-lang
<bnagy> your pgpass.match call is returning nil
<bnagy> whatever pgpass is
<youngin> I see
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
zz_chrismcg is now known as chrismcg
srbartlett has quit [Ping timeout: 245 seconds]
<youngin> bnagy: it can't find my 2012-NN-NN.sqlite files or the name of the database?
<youngin> and forgive me for asking such stupid questions - but will this script export the sqlite data to a postgresql dump file? or attempt to connect to a postgresql database of the same name as the sqlite database?
<youngin> oh wait i dont have a .pgpass file
Asher has quit [Read error: No route to host]
sora_h is now known as s0ra_h
toretore has joined #ruby-lang
Criztian has joined #ruby-lang
vmoravec has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
jbsan has quit [Quit: jbsan]
s0ra_h is now known as sora_h
workmad3 has joined #ruby-lang
fserb has joined #ruby-lang
sora_h is now known as s0ra_h
robotmay has joined #ruby-lang
futurechimp has joined #ruby-lang
cdt has joined #ruby-lang
gnufied1 has joined #ruby-lang
gnufied has quit [Ping timeout: 246 seconds]
nevynxxx has joined #ruby-lang
Asher has joined #ruby-lang
dejongge has joined #ruby-lang
ryanf has quit [Quit: leaving]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
s0ra_h is now known as sora_h
postmodern has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
tRAS has quit [Ping timeout: 246 seconds]
gja has quit [Ping timeout: 256 seconds]
tRAS has joined #ruby-lang
l0st1 has quit [Quit: leaving]
fserb has quit [Quit: ttyl]
<youngin> Anybody happen to know why I can't "gem install pg"? https://gist.github.com/2887870
<rue> Wrong libpg?
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
<youngin> gem install pg -v '< 0.13' worked nevermind
<rue> Hooray
<youngin> hehe
kyrylo has quit [Ping timeout: 246 seconds]
japaniel has joined #ruby-lang
japaniel_ has joined #ruby-lang
japaniel has quit [Read error: Connection reset by peer]
judofyr has joined #ruby-lang
WillMarshall has joined #ruby-lang
groszek has left #ruby-lang ["."]
sora_h is now known as s0ra_h
srbartlett has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
neoesque has quit [Quit: Bye!]
meise has quit [Ping timeout: 252 seconds]
denysonique has quit [Excess Flood]
meise has joined #ruby-lang
mortice has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
s0ra_h is now known as sora_h
<andrewvos> Kind of wish Zed Shaw had gone over and slapped around some developer. I feel as if the internet could have been a more polite place.
gja has quit [Quit: This computer has gone to sleep]
cantonic_ has joined #ruby-lang
denysonique has joined #ruby-lang
Defusal_ has quit [Quit: brb]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
yannis has joined #ruby-lang
srbartlett has quit [Read error: Connection reset by peer]
srbartlett has joined #ruby-lang
japaniel_ has quit [Quit: japaniel_]
<rue> Psh
<rue> He’s as much of a dick as anyone, just a contrarian one.
<andrewvos> rue: You have to agree that people ganging up on him like that is just plain childish.
<andrewvos> Regardless of his dickhead status.
stardiviner has joined #ruby-lang
<rue> He’s trolling
<rue> Of course people gang up on him
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
<judofyr> any drama I've missed recently?
<Defusal> you realize this is #ruby-lang not #one-tree-hill? :P
<judofyr> #ruby-tree-hill
<shevy> we can have drama here as well!
<Defusal> s/can/shouldn't
<judofyr> drama is for losers
<shevy> trolls like drama by the way :)
<Defusal> trolls do not belong in here
sepp2k has joined #ruby-lang
<judofyr> trolololoo
fayimora has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
bryancp has joined #ruby-lang
woollyams has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
dejongge has quit [Ping timeout: 246 seconds]
mark_locklear has joined #ruby-lang
gouthamvel has joined #ruby-lang
rolfb has joined #ruby-lang
<imperator> good morning
<imperator> <- slept like crap due to lightning, thunder and hail last night
nevynxxx has quit [Ping timeout: 246 seconds]
<judofyr> good morning!
<imperator> so, what's zed done now?
* judofyr has no idea
<andrewvos> imperator: Exchanged angry tweets wth some Riak guy, then threatened to go down to their office.
<andrewvos> Oh, and then went to the office apparently.
<andrewvos> I don't know any more because it makes me cringe thinking of it
Hakon|mbp has quit [Quit: Leaving...]
brushbox has joined #ruby-lang
brushbox has quit [Client Quit]
<imperator> oh lord
gouthamvel has quit [Remote host closed the connection]
<imperator> i think an email to the manager would suffice
gouthamvel has joined #ruby-lang
<shevy> lol
brushbox has joined #ruby-lang
<andrewvos> imperator: I don't even think it was a business argument. More along the lines of "you're a dick", "no you're a dick".
<shevy> hahaha
<shevy> that's why it's good to be a man
<shevy> you can get into arguments over NOTHING
<shevy> and then you beat the crap outta each other
<imperator> women don't?
<shevy> for NOTHING
<shevy> dunno. have yet to see a woman behave like zed shaw
<imperator> i have
mark_locklear has quit [Remote host closed the connection]
<imperator> though not for a while
<rue> Zedita
<imperator> a certain member of the perl community used to get pretty nasty
<imperator> (well, several did, but only one of them was a woman)
<shevy> zenspider vs. zed shaw in a boxing match, now that would be something
<shevy> or imperator vs. drbrain
<shevy> matz would be the referee
<imperator> drbrain would kick my ass - he's a black belt i think
rolfb has quit [Quit: Linkinus - http://linkinus.com]
<shevy> whoa
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<zzak> good morning!
<imperator> good morning zzak
<shevy> zak mc cracken! hi!
<imperator> i dunno about twitter, too easy to fire off nasty stuff at drunken hours
<imperator> i think the us marines actually banned it
<shevy> what about facebook
<shevy> is that banned as well?
<imperator> mm, might be, depending on your clearance level
<imperator> but that has a functional use, keeping in touch with family members, whereas twitter is just dumping random thoughts whenever they occur
<imperator> which for some people is like, 10 times per hour
aprimadi has quit [Quit: Konversation terminated!]
dasibre has joined #ruby-lang
<zzak> like its their job
<imperator> anyhoo, what's up in ruby-land?
<zzak> you ever get that ticket resolved?
<imperator> which?
<zzak> the zlib one
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby-lang
zmack_ has joined #ruby-lang
zmack has quit [Read error: Connection reset by peer]
yannis has quit [Quit: yannis]
<imperator> obviously i forgot to take my geritol this morning, because i don't remember it now
<imperator> so....i must have resolved it ;)
<imperator> hm, i'm having one of those "how did this ever work?" moments...
Asher has quit [Quit: Leaving.]
jperry2 has joined #ruby-lang
TheHunter_1039 has joined #ruby-lang
<rue> Those
dasibre has quit [Remote host closed the connection]
asahi has joined #ruby-lang
<imperator> well, at least the car is undamaged, so that's something
<rue> Oh. It probably had an internal combustion engine at some point
<imperator> rue, had hail storm last night
<imperator> maybe i should have paid more attention to that ticket that addresses the very issue i'm befuddled by now
<zzak> zlibwapi?
<imperator> zzak, i just renamed the dll file i think
dabradley has quit [Ping timeout: 252 seconds]
Asher has joined #ruby-lang
dabradley has joined #ruby-lang
kain has quit [Quit: Sto andando via]
bryancp has joined #ruby-lang
krz has quit [Quit: krz]
gix has quit [Ping timeout: 244 seconds]
jinnko has left #ruby-lang [#ruby-lang]
zz_wasnotrice is now known as wasnotrice
srbartlett has quit [Read error: Connection timed out]
toertore has joined #ruby-lang
srbartlett has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
wasnotrice is now known as zz_wasnotrice
gix has joined #ruby-lang
toretore has quit [Ping timeout: 246 seconds]
dalekurt has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
agile has joined #ruby-lang
woollyams has joined #ruby-lang
dabradley has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
hynkle has joined #ruby-lang
Asher has quit [Quit: Leaving.]
dabradley has joined #ruby-lang
stardiviner has joined #ruby-lang
enebo has joined #ruby-lang
srbartlett has quit [Ping timeout: 245 seconds]
dfr|mac has joined #ruby-lang
virunga has joined #ruby-lang
rippa has quit [Quit: derp herp]
kain has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
Hakon|mbp has quit [Quit: Leaving...]
jxie has quit [Quit: leaving]
dtang has quit [Quit: dtang]
voker57 has quit [Read error: Connection reset by peer]
brushbox has quit [Quit: Leaving.]
WillMarshall has quit [Quit: Computer has gone to sleep.]
dv310p3r has joined #ruby-lang
hakunin has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.6]
<andrewvos> Anyone say anything funny while I was gone?
<judofyr> nope
<Defusal> this is #ruby-lang not #funny-lang :P
<andrewvos> Clearly.
<judofyr> and not #ruby-fun either
<imperator> no fun allowed here
<rue> Wait what?
scampbell has joined #ruby-lang
charliesome has quit [Ping timeout: 244 seconds]
<imperator> alright andrewvos a joke just for you
<imperator> A naked blonde walks into a bar with a poodle under one arm and a two-foot salami under the other.
<shevy> SALAMI ABUSE!!!
<imperator> She lays the poodle on the table. Bartender says,'I suppose you won't be needing a drink.'
<imperator> Naked lady says
imperator has left #ruby-lang ["Leaving"]
<erikh> oh man
<erikh> well played.
<shevy> you know
<shevy> I can imagine the bartender... the poodle... and the naked blonde..
<shevy> but that salami is really giving me a hard time...
<apeiros_> oh the tension!
futurechimp has quit [Quit: Leaving]
toertore has quit [Ping timeout: 245 seconds]
<erikh> holy tired
<erikh> I should have just called in sick today
<andrewvos> Great, a non-joke.
<erikh> he got you good
<pbjorklund> And here I was thinking that sending all parts/joins to another window would never be a problem. I just missed the punchline of a punchlineless joke.
<shevy> it has something to do with the salami
<judofyr> and what a salami!
<andrewvos> shevy: It has no punchline
<shevy> yeah but most punchlines in jokes are horrible anyway
nevynxxx has joined #ruby-lang
<shevy> I now have to google for salami jokes ... :(
Asher has joined #ruby-lang
<shevy> omg... the first salami joke is terrible
gja has joined #ruby-lang
<Defusal> is there a good way to test if an object can be serialized with marshal?
<rue> Try it
<Defusal> well, what if it's a huge object
<Defusal> wouldnt it be inefficient
<Defusal> can't afford to block my eventloop
fayimora has quit [Quit: Busy…..zzzzz]
slyphon has joined #ruby-lang
<shevy> ok I have it... looked at four salami jokes, all were terrible
<rue> Defusal: Well, then just ensure the object is serializable.
<erikh> I believe the constraints are that it doesn't hold any procs?
toretore has joined #ruby-lang
outoftime has joined #ruby-lang
<Defusal> there are a few constraints
<Defusal> walking through the object recursively doesnt sound like a great idea
<Defusal> and would be a fair amount of effort
<Defusal> it can't contain any IO stuff
<matthewd> Defusal: Do you intend to marshal it if it can be? If so, trying doesn't sound so bad.
virunga has quit [Quit: Sto andando via]
<Defusal> yes
<Defusal> if not, i need to marshal a proxy object that references the real objects id and stuff
<Defusal> since it needs to be sent over the network
<Defusal> i guess thats the best i can do for now
<Defusal> hopefully its not much of a performance issue
<matthewd> Then perhaps beyond its ability to be marshalled, you also care about whether you can restore it at the other end
bglusman has joined #ruby-lang
<Defusal> well, i care more about being able to reference it again to call other methods, which return data can be marshalled
gouthamvel has joined #ruby-lang
<Defusal> its tricky, but i should be able to come up with something
<matthewd> This is for a drb-like interface?
<Defusal> yeah
gouthamvel has left #ruby-lang [#ruby-lang]
harryv has joined #ruby-lang
<harryv> compiled 1.9.3-p194 on ubuntu, but I have no ripper whatsoever. shouldn't that be included in stdlib?
<harryv> google gives me nil
<shevy> harryv you compiled that from source on your own?
<harryv> yeah
<shevy> ok I compiled the same version too
<harryv> the default ./configure && make && make install
<shevy> and here: require 'ripper' # => true
<harryv> yep, same on other boxes :/
<shevy> well that uses /usr/local prefix. you dont have a 2nd ruby version?
<Defusal> googling ruby ripper will only result in the audio ripping gems results
<Defusal> theres virtually no ripper info online
<harryv> shevy: nope. `find / -name "*ripper*"` only returns the ripper in the downloaded src
<harryv> gonna try another patchlevel
<shevy> hmm
<shevy> harryv, go into the ripper directory
<Defusal> i've always had it work when compiling from source
<shevy> on my system ruby-1.9.3p194/ext/ripper/
<shevy> run the extconf.rb there
<shevy> and look what it says
<Defusal> yeah, i was about to say that
<shevy> :)
<Defusal> there are a few exts that you need to configure seperately
<harryv> heh
<harryv> checking for bison... no
<shevy> hehehe
<shevy> I have ...
<shevy> checking for bison... yes
<shevy> :P
<harryv> thanks
<harryv> that should do it.
<shevy> \o/
kyrylo has quit [Ping timeout: 252 seconds]
slyphon has quit [Quit: WeeChat 0.3.6]
Jay_Levitt has joined #ruby-lang
andrewhl has joined #ruby-lang
Jay_Levitt has quit [Client Quit]
Jay_Levitt has joined #ruby-lang
jmeeuwen has quit [Read error: Operation timed out]
<Jay_Levitt> Are there any detailed heap-profiling tools (e.g. what objects are on the heap) that still work with 1.9.3?
harryv has left #ruby-lang [#ruby-lang]
jmeeuwen has joined #ruby-lang
rmascarenhas has joined #ruby-lang
kyrylo has joined #ruby-lang
yannis has joined #ruby-lang
<Defusal> Jay_Levitt, there are limited options
<Defusal> Rubinius has great support, but does not support some of the gems i use, so i cannot use it
mistym has joined #ruby-lang
<Defusal> your best bet to start with would be ObjectSpace
<Jay_Levitt> And just write our own tools against it, eh?
<Defusal> use ObjectSpace.each_object
<Defusal> i usually first figure out what kind of class is leaking, then focus on that
<Defusal> you can check if the object responds to #size, i also use #to_json.size
<Defusal> then you can add up the sizes of data and work out what is leaking
yannis has quit [Quit: yannis]
<Jay_Levitt> oof.. ok, old-school it is then :)
<Defusal> yeah, may be worth checking if your application runs under rubinius Jay_Levitt
<Jay_Levitt> aaaaactually, looks like skaes now has railsbench patches for 1.9.3!
dtang has joined #ruby-lang
diegoviola has joined #ruby-lang
<erikh> gdb.rb
<Defusal> don't use rails, so "railsbench" doesn't sound useful to me
<erikh> (it's a gem)
<Jay_Levitt> Defusal: Excellent point :) But it seems to patch ruby to add some GC logging
<Jay_Levitt> erikh: oo! I had read gdb.rb wasn't working either. trying that now.
<erikh> oh, I don't know if it is on 1.9.3
<Jay_Levitt> (We are just switching 1.8.7->1.9.3 so doubtful rubinius will work out of the box)
<erikh> if not, it should make for a fun weekend hack
<erikh> gdb.rb is just wicked powerful
<Jay_Levitt> can't even find out if it fails on 1.9.3 because it doesn't support OS X, will have to grab a linux box/VM later
<erikh> ah, phooey
<erikh> well hopefully it's useful.
<Okasu> bnagy: thanks, thats actually works, i was tired yesterday and unable to act properly sorry :)
mistym has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<Defusal> Jay_Levitt, what kind of application is it?
<Defusal> rubinius aims to work with rails out of the box
<Defusal> but some of your gems may not, if they rely on MRI internals
zeba has joined #ruby-lang
<Jay_Levitt> Defusal: It's a Rails 2.3 web app, my second day here so I don't actually know much about it!
<Jay_Levitt> Probably is a fun weekend project to make it rubinius-compatible as well
yannis has joined #ruby-lang
<Defusal> right, well it could be worth testing on rubinius, you can compile rubinius and try it without worrying about the MRI installation
<Defusal> it may very well work as is, being a rails app
<Defusal> you could even ask about the specific gems in #rubinius if you like
<Defusal> the rubinius maintainers are very active and helpful
<Jay_Levitt> Well, I'll try first.. I'm trying to obey the "IRC is not your IRB prompt" rule :)
<Defusal> they rewrote a large portion of a gem that used MRI native code for me in a few days last time i asked
<Jay_Levitt> whoa
<Jay_Levitt> that's like postgres-level awesomeness.
zz_wasnotrice is now known as wasnotrice
Jan_ has left #ruby-lang [#ruby-lang]
DefV has joined #ruby-lang
zeba has quit [Remote host closed the connection]
<asahi> wondering how to remove any 4 digit numbers from a string
<asahi> I guess with gsub?
<matthewd> asahi: Yep
<asahi> k, thanks
mistym has quit [Remote host closed the connection]
<Okasu> asahi: puts "asdf 2345".gsub(/\d{4,}/,"")
<asahi> thanks
<judofyr> that removes 4+ digit numbers though
gja has quit [Quit: This computer has gone to sleep]
<Okasu> puts "asdf 2345".gsub(/\d{4,4}/,"")
<Okasu> exactly 4
<judofyr> or just \d{4}
<Okasu> yeah
<judofyr> or \d\d\d\d
<judofyr> or [0-9]\d{3}
<judofyr> or Regexp.new("\d"*4)
tcopp has joined #ruby-lang
<Mon_Ouie> \d{4} will also (at least partially) remove 4+ digits
<judofyr> \b\d{4}\b then
<Mon_Ouie> Yeah
<apeiros_> judofyr: "\d" won't work as you want :-p
<judofyr> apeiros_: gah
<judofyr> '\d' then
<apeiros_> oh, oh, judofry - sorry…
<judofyr> oh, oh, apieros - sorry…
brianpWins has quit [Quit: brianpWins]
<apeiros_> yes, shame on you!
<Defusal> i believe it is coffee time :)
msaffitz has joined #ruby-lang
mistym has joined #ruby-lang
rippa has joined #ruby-lang
erics has joined #ruby-lang
msaffitz has quit [Client Quit]
<bnagy> Okasu: apology accepted, nice to see someone offer one on irc tbh
<bnagy> glad it works
Skif has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
slyphon has joined #ruby-lang
nevynxxx has quit [Quit: leaving]
UNIXgod has quit [Ping timeout: 245 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
UNIXgod has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
ruurd has quit [Quit: Leaving...]
mistym has quit [Remote host closed the connection]
<theoros> is there a way i can run IO.popen("cmd > /tmp/foo 2>&1") without two processes being started?
fayimora has joined #ruby-lang
<theoros> #pid gives the pid of the parent, and killing the parent leaves the child process running
<theoros> if there's also a way of getting the child process, that wokrs too
fayimora has quit [Client Quit]
akira989 has joined #ruby-lang
<theoros> i'm getting sh -c cmd spawning cmd
voker57 has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
dtang has quit [Quit: dtang]
<Defusal> theoros, there are many ways to spawn a process
<matled> theoros: Process.spawn offers options to redirect stdout and stderr without using a shell
<theoros> i'm looking to start the process and then exit the ruby process entirely
<Defusal> theoros, look at the options and behaviour: http://www.ruby-doc.org/core-1.9.3/Process.html#method-c-spawn
<theoros> without doing something like running nohup or whatever
tRAS has joined #ruby-lang
<Defusal> if the string contains spaces, its executed as a shell command
<matled> theoros: you want to run the command as a kind of "daemon" process?
<theoros> matled: basically, yeah.
<theoros> Defusal: ah, i've been trying to do that but it's been giving me issues
<theoros> i'll try again
<Defusal> theoros, doing that is not suggested
<Defusal> a child process should always have a parent
<theoros> well it can be a process with a parent of pid 1? :)
<Defusal> but if you really dont care what happens to the child after its spawned (you don't need to track it or worry about killing it later), you can detach it
<theoros> i'm keeping track of the pid in a file
<Defusal> you will also need to trap any signals so that it doesnt get killed if you send those signals to your parent
<judofyr> I think the double-fork + setsid-trick is useful here
judofyr has quit [Remote host closed the connection]
<theoros> if i use Process.spawn, aren't i going to have to do more work to get the > /tmp/foo 2>&1 behaviour?
<matled> theoros: http://0pointer.de/public/systemd-man/daemon.html this was posted yesterday here and looks quite helpful for this topic
<Defusal> Process.spawn(..., out: '/tmp/foo', err: :out)
<matled> assuming you're on linux/bsd or something similar
<Defusal> if you want to totally detach, you must then use Process.detach(pid)
<Defusal> and trap("INT", "IGNORE") to stop signals
<Defusal> child processes are sent their parents signals even when detached
brianpWins has joined #ruby-lang
<Defusal> i created a spawning script that traps signals, spawns the process and detaches, which i spawn from my application
<Defusal> but i am in the process of replacing it with a completely seperate process manager daemon which will never die
<Defusal> using pid alone is not enough to track a process long term, the only way is for the parent to still be alive
<theoros> this seems to be almost working without any trapping, albeit the output is going terminal :)
<theoros> Process.spawn("c", "m", "d", out: "/tmp/foo", err: :out)
<Defusal> pids are reused, and i have found they are even reused for threads in other processes, not only processes, so you can check if a pid is alive, but it may belong to another process
<theoros> seems :out is being ignored?
bfreeman has quit [Quit: bfreeman]
<Defusal> so you'd then have to check what command the pid was started with and compare that to your application to make sure the pid is your application and not some other process or thread (on *nix)
<Defusal> and that is messy
<Defusal> you can try :err=>[:child, :out]
kitallis has quit [Quit: Computer has gone to sleep.]
<Defusal> just read though the docs for the method, they are very long and complete
<Defusal> it is pretty flexible
<Defusal> again, i'd rather suggest you write a long living daemon to spawn and watch such a process
<theoros> err: [:child, :out] works
<theoros> i'm sure it would be best to write something to watch this process but, a) this is working, and b) the process isn't running for that long
<theoros> so as long as its pid in a file can be reasonably used to kill it with TERM, that's fine
wasnotrice is now known as zz_wasnotrice
<Defusal> ok
<theoros> thank you for the help :)
<theoros> i wish i understood the process model way more. one day.
thone_ has quit [Read error: Connection reset by peer]
engel has joined #ruby-lang
<Defusal> no problem
thone has joined #ruby-lang
jacobwg has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby-lang
arooni-mobile has joined #ruby-lang
engel has quit [Quit: bye]
engel has joined #ruby-lang
gouthamvel has joined #ruby-lang
gouthamvel has left #ruby-lang [#ruby-lang]
ruurd has joined #ruby-lang
bradland has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
erics has quit [Ping timeout: 240 seconds]
somethinYellow has joined #ruby-lang
jacobwg has quit [Ping timeout: 245 seconds]
msaffitz has joined #ruby-lang
dasibre has joined #ruby-lang
Skif has joined #ruby-lang
somethin1ellow has joined #ruby-lang
somethinYellow has quit [Ping timeout: 245 seconds]
<Defusal> the possibility of a race condition makes me depressed
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
savage- has joined #ruby-lang
butchanton has joined #ruby-lang
<frem> I forked sinbook to make it run on JRuby, and added the git repo to my Gemfile. But sinatra-authentication, which depends on sinbook, can't find it. What am I doing wrong? https://gist.github.com/59082b5ee88770f20b62
gsav has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
gja has joined #ruby-lang
qwerxy has quit [Ping timeout: 244 seconds]
S2kx has joined #ruby-lang
dtang has joined #ruby-lang
S1kx has quit [Ping timeout: 256 seconds]
somethin1ellow has quit [Quit: Computer has gone to sleep]
cdt has quit [Quit: Ex-Chat]
bradland has quit [Quit: bradland]
pmade has joined #ruby-lang
<pmade> What happened to the xmp utility and the IRB::XMP library in Ruby 1.9.x?
dtang has quit [Quit: dtang]
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tRAS has joined #ruby-lang
slyphon has quit [Quit: WeeChat 0.3.6]
ruurd has quit [Ping timeout: 248 seconds]
lsegal has joined #ruby-lang
Constant_ has joined #ruby-lang
akira989_ has joined #ruby-lang
ConstantineXVI has quit [Read error: Connection reset by peer]
gsav has quit [Read error: Connection reset by peer]
akira989 has quit [Ping timeout: 252 seconds]
gsav has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest86477
rippa has quit [Ping timeout: 244 seconds]
bfreeman has joined #ruby-lang
funcuddles has joined #ruby-lang
Guest86477 has quit [Client Quit]
rippa has joined #ruby-lang
<funcuddles> is there a way to include File class with mruby?
<funcuddles> or is there a better place to ask mruby questions?
<Defusal> i didn't even know the source had been made public
<erikh> a while ago, there are even some libraries for it now.
<Defusal> it had not yet been the last time i checked
<erikh> @yukihiro_matz has a lot of mruby tweets.
<Defusal> that must have been just before it was released
<Defusal> looking at commit dates
<Defusal> pretty cool
<erikh> indeed. looking forward to some hacking on it.
* zzak already has a commit in mruby
<zzak> :D
<erikh> ha nice
<erikh> doc commit?
<zzak> mattn is doing some neat stuff with it
<erikh> he published a mysql driver recently, didn't he?
<zzak> erikh: yessir, doc/coding_conventions.md word-wrappage
<erikh> nice
Carnage\ has joined #ruby-lang
<zzak> ive tested rdoc on it too hehe
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<erikh> how broken is it?
dasibre has quit [Remote host closed the connection]
<erikh> looking forward to mruby maturing.
<erikh> I really want something like lua that is not lua.
<Defusal> indeed
<Defusal> i can't wait
<zzak> it parses just fine, but very little doco
<erikh> wow, it's stable enough to handle a big project like rdoc?
<erikh> that's *awesome*
<zzak> jamesbritt has it up on ruby-doc.org i believe
<erikh> I know what I'll be doing this weekend.
<zzak> erikh: haha no, well idk, but i just mean parsing the source with rdoc
<erikh> oh oh oh, you mean with like 1.9
<zzak> yeh
<zzak> there isnt any io in mruby core
tekin_ has joined #ruby-lang
<funcuddles> hmm
felipe__ has joined #ruby-lang
<funcuddles> i'm also having problems trying to test writing some bytecode and reloading it, i'm using mrb_load_irb/mrb_dump_irep and while it seems to write to file fine and execute when i load it, nothing happens (code is supposed to print hello world)
<funcuddles> not sure if i'm using the correct apis though, the doc is kinda sparse
<Defusal> well, its supposed to be modular
<Defusal> so no IO in the core sounds great
vmoravec has quit [Quit: Leaving]
tindron has joined #ruby-lang
gnufied1 has quit [Quit: Leaving.]
andrewhl has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
felipe__ has quit [Read error: No route to host]
gregmoreno has quit [Ping timeout: 245 seconds]
felipe__ has joined #ruby-lang
havenn has joined #ruby-lang
robbyrussell has quit [Quit: leaving]
Criztian has quit [Remote host closed the connection]
brunocoelho has joined #ruby-lang
qwerxy has joined #ruby-lang
gregmoreno has joined #ruby-lang
scampbell has quit [Ping timeout: 248 seconds]
brunocoelho has quit [Remote host closed the connection]
zz_wasnotrice is now known as wasnotrice
dreieins has joined #ruby-lang
loincloth has joined #ruby-lang
<loincloth> howdy
<loincloth> is zlib a good way to decompress zip files?
qwerxy has quit [Quit: offski]
neocoin has quit [Remote host closed the connection]
<loincloth> or am i on the wrong track there
<Defusal> what OS?
neocoin has joined #ruby-lang
<matled> loincloth: I'd guess zlib is too low level to access zip files. rubyzip looks promising
<loincloth> mac for dev, ubuntu probably for production
<loincloth> i found some references to rubyzip, yeah.. something called ZipFile too
<Defusal> on ubuntu, you can sudo apt-get install unzip
<matled> do you want to unpack the zip file into the filesystem or read files from the zip file?
Noah_AT has joined #ruby-lang
<loincloth> just unpack to filesystem
<Defusal> i just have ruby spawn the unzip utility
solars has joined #ruby-lang
<loincloth> sure
<Defusal> for mac, theres probably also an unzip util
<loincloth> yeah
<loincloth> could do that.. guess i tend away from shelling out if i can, but not sure that's necessary here
<matled> in this case I don't see a problem using an external utility, just make sure the files end up in the correct place and don't overwrite existing files
<Defusal> i feel the same way, but forking a process isnt very expensive, its not worth using a lib for that in my opinion
<Defusal> yup
<matled> i.e. create a new directory and let unzip extract all files to this directory
<loincloth> sure sure.. thx for feedback you two
<Defusal> yeah, i'd use /tmp/some_new_dir
soahccc is now known as soahccc`
IPGlider has joined #ruby-lang
neocoin has quit [Ping timeout: 265 seconds]
Skif has quit [Remote host closed the connection]
Skif has joined #ruby-lang
scampbell has joined #ruby-lang
havenn has quit [Remote host closed the connection]
S2kx has quit [Ping timeout: 244 seconds]
Hakon|mbp has joined #ruby-lang
funcuddles has quit [Remote host closed the connection]
havenn has joined #ruby-lang
scampbell has quit [Ping timeout: 248 seconds]
Codif has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
akira989_ has quit [Remote host closed the connection]
<Defusal> im actually pretty happy with the DRb-type interface i've built so far
<Defusal> theres one or two things i need to do some more thinking about, but i've made a lot of progress today
<matled> what compiled programming languages are similar to ruby? for example supporting something similar to blocks. sometimes I miss a programming language performance-wise closer to C but offering a few more of the features of ruby.
tekin_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Defusal> i know of ocaml, but i can't say i would ever use it
<Defusal> it compiles to C iirc
<Defusal> but a lot of the magic of ruby is in the dynamic runtime anyway, so you can only do so much with a compiled language
<matled> I thingk what I miss the most is blocks. creating a C function with a callback is always a hassle.
<Defusal> yeah, that is why i'd never choose js over ruby
<Defusal> wherever possible at least
<matled> javascripts supports passing anonymous functions at least, it's a bit ahead of C there :)
<zzak> C# is worth checking out
<Harzilein> there is an extension for blocks
<Harzilein> it is used in the proof of concept for a c port of sinatra :D
<matled> Harzilein: do you have a link to that?
<matled> zzak: those lambda functions look interesting, is C# usable on linux?
<Harzilein> "A secondary reason for its existence was to give me an excuse to play with Apple's anonymous function extension to C. So, given that, it will only compile on OS X."
<Harzilein> that statement is not true, i managed to build it with llvm on linux :)
<zzak> matled: yes, via the mono implementation http://www.mono-project.com/Main_Page
<Defusal> matled, i'd suggest not using .Net
hynkle has quit [Ping timeout: 244 seconds]
<shevy> matled kinda you can use mono on linux
fserb has joined #ruby-lang
<Defusal> shevy: but you don't want to!
<shevy> agreed
<Defusal> mono was removed from the ubuntu distro disk because it's just as bloated as .Net
somethinYellow has joined #ruby-lang
<Defusal> they had to drop some standard applications too, which relied on it
<Defusal> but it was worth it
felipe__ has quit [Ping timeout: 256 seconds]
<Defusal> i wouldn't touch anything .Net with a 20 foot pole
<zzak> still, if you just want to hack on some c#, its not like you have to use the entire .net stdlib
<frem> better c# than java. :3
zmack_ has quit [Remote host closed the connection]
Skif has quit [Quit: Linkinus - http://linkinus.com]
hynkle has joined #ruby-lang
fserb has quit [Quit: Gone]
hynkle has quit [Read error: No route to host]
<shevy> how about
hynkle has joined #ruby-lang
<shevy> java#
<shevy> though I guess, big old heavy languages like java can't really evolve much
seoaqua has quit [Quit: Leaving]
toot_ has joined #ruby-lang
fserb has joined #ruby-lang
scampbell has joined #ruby-lang
<Defusal> frem, C# and Java are no better or worse than each other, they are both verbose C-style languages that come with huge bloated frameworks
saLOUt has joined #ruby-lang
kyrylo has quit [Quit: WeeChat 0.3.7]
slyphon has joined #ruby-lang
qpingu has joined #ruby-lang
<Defusal> i really wouldn't use either, but if i absolutely had to, it would probably be java, since that has no ties to Microsoft
felipe__ has joined #ruby-lang
fserb has quit [Read error: Connection reset by peer]
fserb has joined #ruby-lang
<zzak> all bias aside, c# is a really nice language
<Noah_AT> I am installing RVM and It seems it installed successfully but immediately tried to automatically install yaml-0.1.4 and ruby-1.9.3-p194. Both of these failed and returned errors. I am running a fresh install of Lion and need help troubleshooting this, thanks. http://pastebin.com/Cbp3jDRa
Codif has quit [Remote host closed the connection]
<Defusal> good luck using it without .Net
<frem> Defusal: you're doing that thing with the bias again. :)
<Defusal> no
<Defusal> .Net is a piece of shi
<Defusal> i never said C# was a bad languages (many people think it is not)
<Defusal> Noah_AT, try reading the errors... "configure: error: no acceptable C compiler found in $PATH"
imajes has quit [Excess Flood]
<Defusal> im going to assume Lion is a OSX distro, in which case i have no clue what you need to install for build utils
<deryl> which means once again someone hasn't read the rvm website
<deryl> and just C&P'd shit to their shell
<Defusal> on linux the package is called build-essential
kyrylo has joined #ruby-lang
kyrylo has quit [Changing host]
kyrylo has joined #ruby-lang
havenn has quit [Remote host closed the connection]
imajes has joined #ruby-lang
<horus_plex> Defusal: install xcode
<Defusal> horus_plex: @Noah_AT
<horus_plex> ah
<horus_plex> Noah_AT: ^^
scampbell has quit [Ping timeout: 246 seconds]
pmade has left #ruby-lang ["rcirc on GNU Emacs 24.1.50.1"]
<horus_plex> Noah_AT: specifically, "command line tools"
scampbell has joined #ruby-lang
benanne has joined #ruby-lang
<horus_plex> Noah_AT: it'll install by default with a standard xcode install. Xcode is now in the app store
<Noah_AT> oh ok, cool.
havenn has joined #ruby-lang
<horus_plex> Noah_AT: personally, I user homebrew to install things on OSX
<Noah_AT> horus_plex so install Xcode and the errors should resolve? I read the errors, I just wasn't sure how to handle them
<Noah_AT> horus_plex: as opposed to?
<horus_plex> Noah_AT: That was my next question: How are you installing these? Macports? Source?
<Noah_AT> horus_plex: do you mean to use homebrew to install the exact packages i need or to install Xcode?
rindolf has joined #ruby-lang
<rindolf> Hi all.
ryanf has joined #ruby-lang
<horus_plex> Noah_AT: My bad. I see now. So you're compiling from source?
<Noah_AT> horus_plex: I used the terminal to install RVM and I was planning on continuing to use it. I understand a lot, but I'm getting a new grip on terminal installs and stuff.
robotmay has joined #ruby-lang
<Defusal> feels great when everything actually works properly after a long day :)
<horus_plex> Noah_AT: using a external package system will make your life much easier
<Noah_AT> horus_plex: ie. Homebrew?
<horus_plex> Noah_AT: yes. http://mxcl.github.com/homebrew
<horus_plex> Noah_AT: which is BTW, heavily written in ruby. ;)
hynkle has quit [Read error: No route to host]
hynkle has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<horus_plex> Noah_AT: But to use homebrew, you need to install xcode
<horus_plex> Noah_AT: since some packages will need to be compiled.
yannis has quit [Quit: yannis]
felipe__ has quit [Ping timeout: 265 seconds]
akira989 has joined #ruby-lang
<horus_plex> Noah_AT: the great thing about homebrew is that you aren't installing anything in your system directories.
<horus_plex> Noah_AT: you can install new stuff without using "sudo"
<horus_plex> Noah_AT: which is a no-no to use as far as I'm concerned when it comes to people new at the terminal
<tubbo> homebrew is the shit
<horus_plex> Noah_AT: I'll be around. so just holla
<tubbo> horus_plex: installing stuff to system ONLY makes more sense to me than mixing system/user, since it requires a knowledge of how the PATH variable is read.
jperry2 has quit [Ping timeout: 244 seconds]
<Noah_AT> horus_plex: thanks. I'll get to it
nofxxx has joined #ruby-lang
nofxx has quit [Ping timeout: 256 seconds]
<tubbo> i don't think newbies understand $PATH that well, i know i didn't..
jperry2 has joined #ruby-lang
<horus_plex> tubbo: Yeah. though I feel it's a lesser evil than having them liter their system directories and running "sudo" all willy-nilly
<shevy> the biggest problem is to assume that newbies are dumb
<shevy> hmm how is homebrew installing things when they dont install into /usr prefix?
<horus_plex> shevy: everything is in /usr/local/Cellar
<shevy> ah I see
<horus_plex> shevy: binaries are sym linked from local/bin to the Cellar
qwerxy has joined #ruby-lang
<horus_plex> I don't think its an issue of newbies being considered "dumb" but I'm sure everyone here at some point had to learn through experience
hynkle has quit [Ping timeout: 248 seconds]
<horus_plex> most people want to get stuff up and running so they can move on. Going through all the details of evenything could lead to a billion tangents and prevent people from reaching their goals
<horus_plex> depth-first search at it's best
<frem> I am having an issue using a git repo in my gemfile. Am I missing something obvious? http://stackoverflow.com/questions/10936533/gemloaderror-when-using-a-git-repo-in-gemfile
<zzak> gem 'sinbook', :git => 'whatever'
<zzak> nvm, thats got nothing to do with it
* rindolf is yak-shaving trying to build ruby packages for Mageia Linux .
yannis has joined #ruby-lang
Hakon|mbp has quit [Ping timeout: 240 seconds]
gja has quit [Quit: This computer has gone to sleep]
<shevy> hehe
<shevy> poor yak
<loincloth> summer yak
hynkle has joined #ruby-lang
wasnotrice is now known as zz_wasnotrice
gouthamvel has joined #ruby-lang
fayimora has joined #ruby-lang
yannis has quit [Quit: yannis]
scampbell has quit [Ping timeout: 246 seconds]
qwerxy has quit [Quit: offski]
<Noah_AT> horus_plex: do you install yaml and ruby with homebrew or with rvm?
zmack has joined #ruby-lang
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3 has joined #ruby-lang
wmoxam has joined #ruby-lang
<horus_plex> Noah_AT: yes. I did. it installed ruby 1.9.3p194
havenn has quit [Remote host closed the connection]
fserb has quit [Quit: ttyl]
<Noah_AT> horus_plex: automatically?
fserb has joined #ruby-lang
retro|cz has joined #ruby-lang
<Noah_AT> horus_plex: isn't there residue in a .rvm directory from when it tried and failed to install yaml and ruby 1.9.3-p194? What do I do with that when I install it via homebrew? Will rvm still let me manage what ruby version each project will be, or do i lose that?
<deryl> rvm only allows you to control rvm installed rubies. beyond that it just lets you have access to the system's ruby if it has one installed
<deryl> whatever ruby shows up when you do rvm use system
<deryl> beyond that, no. if you didn't install it with rvm you can not manage that ruby version using rvm. even with system it just lets you export import gems. thats it
felipe__ has joined #ruby-lang
* tubbo likes keeping system at 1.8, that way he knows when a gem isn't paying attention to RVM...
<Noah_AT> deryl: 1.8.7
<deryl> immaterial
scampbell has joined #ruby-lang
<Noah_AT> horus_plex: I installed Xcode and got the same "no acceptable C compiler found in $PATH" error
havenn has joined #ruby-lang
Criztian has joined #ruby-lang
<tubbo> Noah_AT: try using osx-gcc-compiler, it worked for me when ruby 1.9 compilation via LLVM (which is what comes with Xcode now) wasn't an option
<tubbo> s/compiler/installer
<tubbo> sorry :D
<tubbo> it's a .pkg so it's easy to install
krohrbaugh has quit [Quit: Leaving.]
<Noah_AT> tubbo: Ok, I just tried installing homebrew to install libksba, but it told me to run "brew doctor" and returned these errors: http://pastebin.com/pZ19LeA3
<Noah_AT> tubbo: do i need to do a restart or something after installing Xcode?
<tubbo> tubbo: you could try that...but again, osx-gcc-installer worked for me painlessly.
<tubbo> i don't necessarily think trying to compile ruby with llvm and xcode is a good idea
<tubbo> because there have been problems with it in the past...
scampbell has quit [Ping timeout: 252 seconds]
engel has quit [Quit: bye]
<Noah_AT> ok, well now i have a homebrew install with errors (that i would like to fix) and ruby/yaml won't install (which your suggesting to fix with osx-gcc-installer
<horus_plex> Noah_AT: whew. my bad. Got ambushed in my office
<Noah_AT> horus_plex: no problem
<tubbo> ohh ok
<horus_plex> Noah_AT: run brew doctor
<tubbo> Noah_AT: i think your "errors" stem from the fact that ruby isn't installed haha
<Noah_AT> horus_plex: I did, check the pastie
<Noah_AT> tubbo: I have 1.8.7 installed
<Noah_AT> tubbo: its the system one
havenn has quit [Remote host closed the connection]
akira989 has quit [Remote host closed the connection]
havenn has joined #ruby-lang
<horus_plex> Noah_AT: could you re-post. Not seeing the pastie containing the result from 'brew doctor'
<Noah_AT> horus_plex: np, http://pastebin.com/pZ19LeA3
<horus_plex> Noah_AT: though when you install ruby (using: brew install ruby), you have to set your path to prepend the ruby bin directory
Goyo has joined #ruby-lang
<horus_plex> Noah_AT: ah. So you did in fact install xcode using the Apple installers?
krohrbaugh has joined #ruby-lang
<Noah_AT> yup, from the app store. I'm running the app now and already noticed it is continuing to install things. I may not have Command Line Tools installed
<Noah_AT> horus_plex: Ok, Xcode is done and I saw nothing explicitly about Command Line Tools.
<Noah_AT> horus_plex: ah, wait, I may need to install them manually, one sec
tRAS has quit [Quit: Mother, did it need to be so high?]
<tubbo> xcode tools installs with xcode iirc
<tubbo> but i think you can optionally not install xcode
<tubbo> just the tools
<tubbo> or at least you used to be able to
casey has joined #ruby-lang
<Noah_AT> tubbo: Apparently I have to install the CLTools independently. I am doing it now.
casey has quit [Remote host closed the connection]
<Noah_AT> tubbo: Its a dmg
<horus_plex> Noah_AT: In the installer make sure "UNIX Development" is checked
<Noah_AT> horus_plex: thanks, will do
Goyo has quit [Remote host closed the connection]
casey has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
akira989 has joined #ruby-lang
qwerxy has joined #ruby-lang
somethinYellow has quit [Quit: Computer has gone to sleep]
<Noah_AT> horus_plex: Alright! Installed CLTools and brew doctor passed
<Noah_AT> horus_plex: .. and… Yaml and Ruby installed successfully via rvm (which I like since everything is isolated and controllable)
gregmore_ has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
gouthamvel has left #ruby-lang [#ruby-lang]
mistym has quit [Remote host closed the connection]
<horus_plex> Noah_AT: great!
somethinYellow has joined #ruby-lang
sepp2k has quit [Ping timeout: 246 seconds]
<Noah_AT> horus_plex: , and Tubbo, Thanks for the help!
<tubbo> np
gregmoreno has quit [Ping timeout: 248 seconds]
<horus_plex> np
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
somethinYellow has quit [Read error: Operation timed out]
<Noah_AT> So, now that I have Homebrew, but I am using rvm to manage my ruby versions, what should I use homebrew for? (My main desktop has fedora on it and I'm trying to get a grip on these things)
<horus_plex> Noah_AT: Homebrew allows you to installed the lastet externally managed packages on OSX
robotmay has quit [Remote host closed the connection]
gsav has joined #ruby-lang
<horus_plex> Noah_AT: many open source projects have to significantly patched before being useable on OSX
<Noah_AT> oh, cool. Got it
<horus_plex> Noah_AT: note that for ruby gems, you use the normal gem installer (gem install rails). Still no need to sudo
somethinYellow has joined #ruby-lang
<Noah_AT> horus_plex: haha so basically stay away from sudo at all costs
akira989 has quit [Remote host closed the connection]
<tubbo> Noah_AT: without brew, you'd have to compile everything yourself.
<tubbo> that means...download the source, run ./configure, then run make/make install or whatever
<tubbo> shit SUCKS and is error-prone
<Noah_AT> haha got it
<Noah_AT> good thing I'm all set then
<tubbo> yeah you're fine
<horus_plex> Noah_AT: not exactly. using sudo can have significant consequences if you're not careful. It's simon-says of the unix world
<tubbo> sudo is totally necessary sometimes
UNIXgod has quit [Changing host]
UNIXgod has joined #ruby-lang
<tubbo> like when you need to edit /etc/hosts
<Noah_AT> haha yeah
<Noah_AT> that I've done a few times
<horus_plex> Noah_AT, tubbo: this is true.
<Noah_AT> horus_plex: So, is "gem install rails" on a per-project basis
akira989 has joined #ruby-lang
Boohbah has joined #ruby-lang
<horus_plex> Noah_AT: as far as I know, no. it'll call the gem binary from the Cellar. You'd have more experience using rvm than me ;)
<tubbo> Noah_AT: rvm uses this thing called gemsets to manage multiple directories of gems
<Noah_AT> tubbo: should I create a gem set that is "global"
<tubbo> Noah_AT: it's basically a glorified automatic symlink tool. when you `cd` into your rails app it can load the gemset for that rails app, which also loads the correct ruby version
<tubbo> Noah_AT: there already is one! `rvm gemset use global` to access it, then do `gem install ..` to install your packages
<tubbo> they will be available everywhere that the current ruby version is
<Noah_AT> haha
sepp2k has joined #ruby-lang
<tubbo> so 1.9.3-p125's global gemset is different from 1.8.7's gemset
<Noah_AT> tubbo: awesome, so that is how i go about installing rails
<Noah_AT> tubbo: got it.
<tubbo> Noah_AT: yeah what i like to do is keep some gems in global that i use everywhere: rails, capistrano, heroku, bundler and git_tracker
<tubbo> Noah_AT: the way you set up gemsets to automatically be discovered is create an .rvmrc file in your project dir
gregmore_ has quit [Remote host closed the connection]
<tubbo> then when you `cd` into it, the gemset/ruby will change
<Noah_AT> tubbo: cool. Yeah I picked that up from this "How to Use RVM" cast I just watched. Really helpful
<Noah_AT> tubbo: what does bundler do? I need that for rails right?
havenn has quit [Remote host closed the connection]
fserb has quit [Quit: ttyl]
spuk has quit [Ping timeout: 248 seconds]
felipe__ has quit [Ping timeout: 248 seconds]
rippa has quit [Ping timeout: 248 seconds]
jbwiv has quit [Remote host closed the connection]
toot_ has quit [Quit: Page closed]
tsou_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
msaffitz has quit [Quit: Computer has gone to sleep.]
tsou has quit [Ping timeout: 245 seconds]
fserb has joined #ruby-lang
saLOUt has quit [Ping timeout: 265 seconds]
Rizzle has quit [Ping timeout: 245 seconds]
Carnage\ has quit []
qwerxy has joined #ruby-lang
rhodee has joined #ruby-lang
rhodee has left #ruby-lang [#ruby-lang]
enebo has quit [Read error: Connection reset by peer]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
enebo has joined #ruby-lang
ViperMaul has quit [Ping timeout: 244 seconds]
Mchl has joined #ruby-lang
tsou_ has left #ruby-lang [#ruby-lang]
saLOUt has joined #ruby-lang
jbarket has joined #ruby-lang
gregf has quit [Read error: Connection reset by peer]
hynkle has quit [Ping timeout: 246 seconds]
fserb has quit [Quit: ttyl]
rhodee_ has joined #ruby-lang
rhodee_ has quit [Client Quit]
jbarket has quit [Client Quit]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
gregf has joined #ruby-lang
jperry2 has quit [Quit: Leaving.]
fserb has joined #ruby-lang
s0ber_ has joined #ruby-lang
WillMarshall has joined #ruby-lang
msaffitz has joined #ruby-lang
s0ber has quit [Ping timeout: 252 seconds]
s0ber_ is now known as s0ber
somethinYellow has quit [Remote host closed the connection]
havenn has joined #ruby-lang
gregmoreno has joined #ruby-lang
Mchl has joined #ruby-lang
stamina has quit [Quit: Lost terminal]
casey has left #ruby-lang [#ruby-lang]
<zenspider> PLEASE tell me that tjackiw is in here
chessguy has joined #ruby-lang
IPGlider has quit []
<slyphon> zenspider: tjackiw is in here
<zenspider> liar
<slyphon> damn
<slyphon> ya found me out
<zenspider> this is killing me and I'm not sure how to respond: https://github.com/tjackiw/obscenity/blob/master/test/test_obscenity.rb
<slyphon> and i would have gotten away with it too, if it hadn't been for those meddling kids!
<slyphon> HAHAHA
havenn has quit [Remote host closed the connection]
<slyphon> zenspider: i have to say, i'm pro-profanity, but i find the fact that people are able to troll you about this really amusing
<zenspider> dude. read the tests
<slyphon> well, how else is one to test if one's profanity filters are correct?
<zenspider> by checking that the methods are there!
<slyphon> you'd have to build an entendre engine
<zenspider> or that a method can take a block without raising!
<zenspider> or or or
<slyphon> hahahahaha
<zenspider> first test: do the methods exist? == useless
<zenspider> second test: passes with empty method ALL methods take blocks
<zenspider> third test: passes with true
<zenspider> I've got all tests passing with 41 lines of ruby
<zenspider> oops. now 36 lines
<zenspider> should I file a bug?
<zenspider> should I file a pull request with my alternate implementation?
<zenspider> should I find him and kneecap him?
<slyphon> hmm
<slyphon> pull request, i guess
<zenspider> should I make an extensive blog post showing the steps needed to make the tests pass?
<slyphon> i guess it depends, is it going to help to lower your blood pressure?
<slyphon> i rarely need a whole blog post for that
<zenspider> his impl is 273 lines long... and includes Obscenity::Base for fuck's sake
<slyphon> usually i have a tourettes-esque explosion in here and feel better
wmoxam has quit [Ping timeout: 245 seconds]
<slyphon> zenspider: i think an obscenity laced blog post would be wonderfully ironic
<slyphon> "If you're gonna troll, at least have the skills, asshole"
<mistym> They should test profanity embedded in other words, to avoid making a clbuttic mistake.
solars has quit [Ping timeout: 245 seconds]
<yorickpeterse> clearly they need to test it using Cucumber
qwerxy has quit [Quit: offski]
* slyphon lulz
<yorickpeterse> That way your manager can write the tests for you
yxhuvud has quit [Ping timeout: 244 seconds]
tjadc has joined #ruby-lang
<Boohbah> cucumber considered harmful
robotmay has joined #ruby-lang
Fullmoon has quit [Quit: Fullmoon]
<frem> This can't be right. Is this bug report worthy? https://gist.github.com/ebac1691cc462b219bb2
<frem> Or am I just doing something really stupid?
<yorickpeterse> frem: bundle exec
<zenspider> slyphon: I don't think this guy is trolling. I think he's serious
<yorickpeterse> or load the gemfile from your Ruby file (`require 'bundler/setup'`)
<slyphon> hm
<slyphon> zenspider: is he just trying to filter your source code?
<slyphon> that's kind of what i was assuming this was for
* slyphon reads the readme
<slyphon> oh, it's general purpose :)
<frem> yorickpeterse: like this? jruby -S bundle exec test.rb
<slyphon> zenspider: why does this upset you so much?
<slyphon> because people on the internet are doing it wrong?
* slyphon is honestly curious
<frem> yorickpeterse: i thought bundle exec was only for if the gem came with an executable or something.
<slyphon> frem: no, it sets up your environment
vaelen has joined #ruby-lang
cantonic has quit [Remote host closed the connection]
<zenspider> OH WHAT THE FUCK?!?! "Managing Director & CTO at Mobjoy / Mob.Me"
<yorickpeterse> zenspider: hahaha
<yorickpeterse> zenspider: Take a deep breath, drink some tea, then write a big good ol' rant on his issue tracker :)
<yorickpeterse> or coffee if that's your thing
<zenspider> Coffee... the tea in this cafe is terrible
<zenspider> which is a shame... because it's the best coffee in north america... you'd figure the tea would be up to par
<zenspider> (to be fair... it's ok tea... just not great)
bfreeman has quit [Quit: bfreeman]
fserb has quit [Quit: ttyl]
<mistym> zenspider: What cafe?
akira989 has quit [Remote host closed the connection]
<zenspider> mistym: cafe vivace in seattle
<frem> yorickpeterse, slyphon: thanks. :)
<yorickpeterse> frem: you're welcome
<mistym> Ah. <3 I was there in February, it was truly lovely. I'm jealous of you.
sepp2k has quit [Read error: Connection reset by peer]
rindolf has quit [Ping timeout: 265 seconds]
A124 has quit [Quit: Leaving.]
<zenspider> mistym: thanks. I love my seattle
akira989 has joined #ruby-lang
tcopp has quit [Quit: leaving]
woollyams has quit [Quit: Computer has gone to sleep.]
<mistym> zenspider: My trip was too short, I want to go back sometime. Great city, I'd never been before
ironcamel has joined #ruby-lang
<ironcamel> can someone explain what this is doing: uri = self.attributes.delete('uri') { |key| nil }
WillMarshall has quit [Quit: Computer has gone to sleep.]
slyphon has quit [Quit: WeeChat 0.3.6]
<ironcamel> ah, thanks
<ironcamel> so that block is redundant
<ironcamel> unnecessary
<zenspider> completely
<ironcamel> because it would have returned nil anyway
rindolf has joined #ruby-lang
tjadc_ has joined #ruby-lang
tr-808 has quit [Read error: Operation timed out]
tr-808 has joined #ruby-lang
fserb has joined #ruby-lang
sora_h is now known as s0ra_h
tjadc_ has quit [Remote host closed the connection]
gix has quit [Disconnected by services]
gix- has joined #ruby-lang
cantonic has joined #ruby-lang
Jay_Levitt has quit [Quit: Linkinus - http://linkinus.com]
dv310p3r has quit [Ping timeout: 252 seconds]
acyed has joined #ruby-lang
japaniel has joined #ruby-lang
Ricky_Ricardo has joined #ruby-lang
Ricky_Ricardo has left #ruby-lang [#ruby-lang]
japaniel has quit [Ping timeout: 244 seconds]
Jake232 has joined #ruby-lang
benanne has quit [Quit: kbai]
japaniel has joined #ruby-lang
saLOUt has quit [Quit: Konversation terminated!]
brianpWins has quit [Quit: brianpWins]
apeiros_ has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.3.8]
gregf has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
srbartlett has joined #ruby-lang
toretore has quit [Quit: Leaving]
s0ra_h is now known as sora_h
rindolf has quit [Quit: Leaving]
Noah_AT has left #ruby-lang [#ruby-lang]
seanstickle has joined #ruby-lang
Noah_AT has joined #ruby-lang
Noah_AT has left #ruby-lang [#ruby-lang]
sora_h is now known as s0ra_h
outoftime has quit [Quit: Leaving]
<erikh> ugh
<erikh> aws is such a shitpile sometimes
BigFatFatty has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
<samuelkadolph> erikh: Why's that?
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby-lang
s0ra_h is now known as sora_h
<rue> samuelkadolph: Because they have heaped excrement
<samuelkadolph> lol
cantonic has quit [Ping timeout: 244 seconds]
andrewhl has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
brushbox has joined #ruby-lang
dgs has joined #ruby-lang
vaelen has quit [Remote host closed the connection]
sora_h is now known as s0ra_h
Jake232 has quit [Quit: Computer has gone to sleep.]
bfreeman has joined #ruby-lang
M4g1c5t0rM has joined #ruby-lang
<dgs> not sure if yaml questions are okay for in here... but Im having a few issues trying to load a yaml file into a ruby array of hashes (that themselves contain an array of hashes)
<dgs> https://gist.github.com/7f4bc83a25584874d4b4 <-- gist probably explaining it better
<dgs> I can do it verbosely (with each entry in the hash on seperate line), but it's going to be a huge file, so I'm trying to use the {hash: entry, like: this} format
<drbrain> dgs: don't use colons
<drbrain> ruby -rpsych -e 'p Psych.load "- { word: and, phrase: Today is hot and sunny}"'
<drbrain> dgs: you want to use string keys, I promise
<dgs> k
<Boohbah> drbrain: what's wrong with symbol keys and new hash syntax?
<drbrain> Boohbah: it's YAML, not ruby
<Boohbah> ahh, excuse me then
<drbrain> Boohbah: as a rule of thumb, if it's user data you probably want to stick with string keys
<drbrain> it's faster than calling #intern on strings all the time
<Boohbah> i see, thanks
<drbrain> Boohbah: if it's configuration settings, symbols will be ever so slightly faster
stamina has joined #ruby-lang
<dgs> drbrain: awesome. that works =)
<dgs> thanks
<dgs> string keys probably save a few hundred keystrokes when creating the yaml file anyways
<dgs> versus a couple of extra quotes when referring them from ruby
<dgs> so win-win =)
cantonic has joined #ruby-lang
fgomez has quit [Ping timeout: 245 seconds]
<dgs> just out of curiousity though, could I have used the {:hash: format,..} style with symbols?
<dgs> or do you need to drop back to the one record per line method?
<zenspider> ruby -ryaml -e 'y :blah => 42'
<drbrain> dgs: I am not a YAML expert, I just saw this: "did not find expected node content while parsing a flow node at line 1 column 4"
<erikh> samuelkadolph: I'm doing this cache invalidation stuff with cloudfront, they throw an error if you do "too many API calls in a period of time"
<drbrain> so I think there are restrictions on what the keys can be for "flow nodes"
<erikh> samuelkadolph: the time between the ability to call looks to be about 5 minutes
<zenspider> your a flow node
<erikh> seriously. 5 minutes per API call.
<zenspider> [sic]
<dgs> ah, right. me neither apparently =)
<samuelkadolph> erikh: Hmm, 5 minutes sounds very wrong. I would email them.
<drbrain> zenspider: I'm a flow node what?
<zenspider> exactly
<erikh> samuelkadolph: nah this is documented behavior
fgomez has joined #ruby-lang
fgomez has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
fgomez has joined #ruby-lang
bryancp has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
s0ra_h is now known as sora_h
sandbags has quit [Read error: Connection reset by peer]
akira989 has quit [Read error: Connection reset by peer]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
akira989 has joined #ruby-lang
jperry2 has joined #ruby-lang
butchanton has quit [Quit: Leaving.]
countdigi has joined #ruby-lang
<countdigi> is there a way to get around this w/out writing a function?
<countdigi> slot = drc_name.scan(/-(.*)/)[0][0]
<countdigi> the [0][0] part
<countdigi> noob - i am sure in ruby there is a way
butchanton has joined #ruby-lang
<countdigi> i think i am out of idiom
fserb has quit [Quit: ttyl]
<erikh> what's wrong with the [0][0] there?
gsav has quit [Read error: Connection reset by peer]
<erikh> you could use .first.first, but that's going to effectively do the same thing
<countdigi> just looks too technical :-) lol
<erikh> it's code
<erikh> it's supposed to be technical
<countdigi> yeah fair enough - normally there is a way to make it 'cleaner' but i guess some validation from another is a good enough answer :-)
<countdigi> tx
<erikh> anytime
<countdigi> when i think of the bourne shell alternative i shudder ;-)
kain has quit [Quit: Sto andando via]
<erikh> should be pretty easy with awk
<countdigi> what is the first index in scan - for the line number?
<erikh> so, scan creates subarrays for capture
<erikh> s
<erikh> you know, if you just want to strip the leading -, str[1..-1] should be a bit faster
<erikh> (and easier to read)
<countdigi> there are multiple - so regex maybe better
<countdigi> eg: U5877.001.RCH7752-P1-C1
<countdigi> its an aix p770 pci card basically
mistym has quit [Remote host closed the connection]
<countdigi> everything left of first - is the io drawer and the other part is the physical slot
<countdigi> wrote a library earlier to basically "vagrant" a p7 server but now trying to clean it up for the next one :-)
<erikh> ah I see
<erikh> hmmm
<countdigi> this time i am tdding the whole thing
<erikh> str.split('-', 2).last
<countdigi> pita but i feel dirty otherwise... dam ruby culture
<countdigi> ah cool thanks
<Defusal> mruby is awsome.
<erikh> that'll split by the first -, create 2 entries only, and take the last item.
<erikh> basically the same regex.
<erikh> err, as the regex.
<Defusal> compiles your code straight to C including only what you use
<Defusal> :D
<erikh> niiiiice.
<Defusal> works great
<countdigi> tx - refactoring regexes.. badadd man ;-)
<Defusal> i can see this taking over
<countdigi> s/dd/ds/
slyphon has joined #ruby-lang
<countdigi> u know what i mean... god forget the regex ;-)
<Defusal> once enough library development has been done
<erikh> I like to avoid regexes when I can. it's usually faster and cleaner
<erikh> sometimes it doesn't make sense though.
<erikh> Defusal: yeah, I want to give it a shot.
<erikh> (library development)
<Defusal> what libraries you want to work on?
<Defusal> i have no time, but i'd like to none the less
butchanton has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
<erikh> oh just some basic stuff, mostly ops-related
<jtoy> wtf is this surprising? http://www.ruby-forum.com/topic/158543 and even more so, why is it surprising to matz!?!?
<erikh> interface information, process information, maybe a fork/daemon impl
<jtoy> least surprise ……
<erikh> super by itself expects the same method signature
<erikh> he tried to give you an answer
<Defusal> ah cool
<drbrain> jtoy: where does matz say he is surprised?
<jtoy> drbrain: oops, I thought matzo said "|This is surprisingly restrictive (given the nature of Ruby generally)."
<jtoy> that was just him replying to it though
<drbrain> matz uses | instead of > to reply :)
<erikh> that's a mail.app thing IIRC