apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
thesheff17 has quit [Quit: Leaving]
aryaching has joined #ruby
Valesk_ has quit [Quit: Leaving]
thesheff17 has joined #ruby
jbpros has quit [Quit: jbpros]
Davey has quit [Quit: Computer has gone to sleep.]
jb41 has quit [Ping timeout: 260 seconds]
ner0x has quit [Quit: Leaving]
Michael has joined #ruby
nerium has quit [Quit: nerium]
beastieboy is now known as banister
Michael is now known as Guest97081
heidi has quit [Quit: Leaving.]
b00stfr3ak has joined #ruby
theRoUS has joined #ruby
vlad_starkov has joined #ruby
havenwood has quit [Remote host closed the connection]
Mars`_ has quit [Remote host closed the connection]
havenwood has joined #ruby
iamjarvo has joined #ruby
Mars` has joined #ruby
lewis has quit [Remote host closed the connection]
joshwines has joined #ruby
fomatin has joined #ruby
lewis has joined #ruby
justsee has quit [Quit: leaving]
amacgregor has joined #ruby
fomatin has quit [Client Quit]
justsee has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
theRoUS has quit [Ping timeout: 260 seconds]
havenwood has quit [Ping timeout: 260 seconds]
someish has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
SeySayux has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Remote host closed the connection]
lewis has quit [Ping timeout: 240 seconds]
filipe has quit [Remote host closed the connection]
iamjarvo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
cads has joined #ruby
tvw has quit []
araujo has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
SeySayux has joined #ruby
<trla_> volty:
Jdubs has joined #ruby
jetblack has joined #ruby
<volty> ?
mmitchell has quit [Remote host closed the connection]
<trla_> why this
<trla_> "C:\Windows\ftp\file\".gsub(/\\/,'\\') does not replace \ with \\
fijimunkii has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
Jdubs_ has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
ericmathison has joined #ruby
mansi has joined #ruby
ldnunes has joined #ruby
Aryasam has joined #ruby
aryaching has quit []
clov3r has joined #ruby
__username__ has quit [Ping timeout: 259 seconds]
mary5030 has joined #ruby
benweint has quit [Quit: Computer has gone to sleep.]
astrobunny has quit [Ping timeout: 272 seconds]
Jdubs has quit [Ping timeout: 268 seconds]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clov3r has quit [Read error: Connection reset by peer]
maz-dev has joined #ruby
brennanMKE has quit [Remote host closed the connection]
Mars` has joined #ruby
heidi has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
theRoUS has joined #ruby
<volty> the last is quoted "
DonRichie has quit [Ping timeout: 248 seconds]
DonRichie has joined #ruby
<volty> 'C:\Windows\ftp\file\\'.gsub(/\\/,'\\')
wenshan has quit [Remote host closed the connection]
<trla_> you're right thanks again
astrobunny has joined #ruby
fomatin has joined #ruby
Spami__ has quit [Read error: Connection timed out]
Spami__ has joined #ruby
maz-dev has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
jonathanwallace has joined #ruby
einarj has joined #ruby
ldnunes has quit [Quit: Leaving]
chrisja has quit [Quit: leaving]
ldnunes has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Davey has joined #ruby
nari has joined #ruby
tvw has quit []
einarj has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
francisfish has joined #ruby
whunt_ has joined #ruby
saarinen has quit [Quit: saarinen]
mixel has quit [Quit: mixel]
whunt has quit [Ping timeout: 272 seconds]
x0nic has quit [Ping timeout: 268 seconds]
heidi1 has joined #ruby
pragmatism has quit [Quit: Peace]
pragmatism has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Fire-Dragon-DoL has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Ping timeout: 272 seconds]
francisfish has quit [Ping timeout: 268 seconds]
whunt_ has quit [Ping timeout: 245 seconds]
heidi2 has joined #ruby
renderful has joined #ruby
Spami__ has quit [Quit: This computer has gone to sleep]
whowantstolivefo has quit [Remote host closed the connection]
julweber_ has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
heidi has quit [Ping timeout: 245 seconds]
cads has quit [Ping timeout: 240 seconds]
Hganavak has joined #ruby
heidi1 has quit [Ping timeout: 272 seconds]
whunt has joined #ruby
x0nic has joined #ruby
jmkeyes has joined #ruby
<jmkeyes> In a C extension, how can I create an instance variable that masquerades as a Hash?
fomatin has quit [Quit: Textual IRC Client: www.textualapp.com]
heidi2 is now known as heidi
julweber has quit [Ping timeout: 268 seconds]
heidi1 has joined #ruby
T__T has quit [Remote host closed the connection]
Soliah has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<volty> creating an empty hash ?
visof has quit [Remote host closed the connection]
rjhunter has joined #ruby
Fire-Dragon-DoL has joined #ruby
heidi has quit [Disconnected by services]
heidi1 is now known as heidi
freerobby has joined #ruby
tkuchiki has joined #ruby
brennanMKE has joined #ruby
whunt has quit [Ping timeout: 268 seconds]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
randomnick_ has quit [Remote host closed the connection]
whunt has joined #ruby
pragmatism has quit [Quit: pragmatism]
zeade has quit [Quit: Leaving.]
phantasm66 has quit [Client Quit]
mrsolo has quit [Quit: This computer has gone to sleep]
muxdemux has joined #ruby
maz-dev has joined #ruby
pel_daniel has left #ruby [#ruby]
mrsolo has joined #ruby
visof has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Dreamer3 has joined #ruby
mrsolo has quit [Client Quit]
reset has quit [Quit: Leaving...]
shadoi1 has joined #ruby
reset has joined #ruby
shadoi has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
ItSANgo has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
<jmkeyes> volty: I'd like to be able to override [] and []= on the Hash though. Should I subclass Hash or is there a way to override those methods from the C side?
yekta has joined #ruby
Mars` has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
ldnunes has quit [Quit: Leaving]
b00stfr3ak has quit [Ping timeout: 245 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
<jmkeyes> Ah, I think I've got a solution now.
<volty> jmkeyes: long time since I haven't done something in C // for as long as I remember you can do on C side whatever you can do on ruby side // I'd suggest subclassing if you have to
<volty> call the original methods
tsykoduk is now known as zz_tsykoduk
reset has quit [Ping timeout: 272 seconds]
<jmkeyes> I decided to create a dummy class on the C side that overrides [] and []=, and have the accessor create an instance of that class.
sevenseacat has joined #ruby
<volty> nice
mklappstuhl has joined #ruby
dmiller has joined #ruby
heidi has quit [Read error: No route to host]
heidi has joined #ruby
<trla_> I have problems with the gsub and slases when I have a string with double quotes. I mean if I do this: var = "test\one"
whunt has quit [Ping timeout: 245 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
<trla_> and I do var.gsub(/\\/,"\\") I don't get test\\one
<trla_> but I get it if I save with single quotes
heidi1 has joined #ruby
whunt has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
justsee has joined #ruby
whunt_ has joined #ruby
heidi has quit [Ping timeout: 245 seconds]
louism2wash has joined #ruby
froy has quit [Quit: kablam!]
heidi has joined #ruby
<louism2wash> Hello world
fogus has left #ruby ["PART #buildr :PART #centos :PART #intellij :JOIN #bitcoin-pricetalk"]
brianpWins has quit [Quit: brianpWins]
momomomomo has joined #ruby
<volty> >> ['test\one' == "test\one", 'test\one', "test\one"]
<eval-in> volty => [false, "test\\one", "testone"] (https://eval.in/54914)
<volty> >> ['test\one' == "test\one", 'test\one', "test\one"].map(&:inspect)
<eval-in> volty => ["false", "\"test\\\\one\"", "\"testone\""] (https://eval.in/54915)
<volty> you do not have any '\' inside "test\one"
heidi1 has quit [Ping timeout: 260 seconds]
whunt has quit [Ping timeout: 245 seconds]
whunt_ is now known as whunt
mrsolo has joined #ruby
<louism2wash> Hey guys, I am trying to save 15-20 records to the db and I want to rescue any error that would occur during that save process and delete any of the records that have been already saved before the error occurred. Is there any harm in rescuing just a StandardError as opposed to something more specific? The problem is that I don't know exactly what error it is that would get thrown. Thanks.
<trla_> ok, the problem is that I read a file with the string "test\one" and I need to translate to "test\\one"
<trla_> I have no proble if It were 'test\ono'.gsub(/\\/,"\\")
<rjhunter> trla_: careful with your quotes and backslashes -- "1\n2" is a different string from '1\n2'
Guest97081 has quit [Remote host closed the connection]
jdubs4million has joined #ruby
<segv> This matchparen thing is a pitfa
c0rn has quit [Quit: Computer has gone to sleep.]
<trla_> rjhunter: and if I have a var declared like this: var="1\n2" how can I translate to '1\n2' ?
<segv> It should be incredibly simple to highlight the matching keyword pair, visually, assuming just as matchit can detect it when using %
whunt has quit [Quit: Computer has gone to sleep.]
<rjhunter> trla_: '\n' is a two-character string (a backslash and the letter 'n'). "\n" is a one-character string (just a single newline character). "\o" is a one-character string (just the letter 'o').
<volty> louism2wash: you have a transaction, so go for rescuing whatever
<rjhunter> trla_: the String#inspect method returns the string escaped in the same syntax as double-quotes
jmkeyes has left #ruby [#ruby]
heidi has quit [Quit: Leaving.]
<rjhunter> >> "1\n2".length
<eval-in> rjhunter => 3 (https://eval.in/54917)
<rjhunter> >> "1\n2".inspect.length
<eval-in> rjhunter => 6 (https://eval.in/54918)
superscott[8] has quit [Quit: superscott[8]]
<trla_> rjhunter: I understand, so there is no a esay way to pass from "1\n2" to '1\n2'
aryaching_ has joined #ruby
<trla_> just to use it like gsub for exmple
ZhBPi has joined #ruby
<rjhunter> trla_: I think we're misunderstanding each other
<louism2wash> volty: thanks for the response, just so I better understand what is happening, how is a error during a transaction interpreted by interpreter? How is it that rescuing anything will encompass and exception during a transaction?
<rjhunter> trla_: can you explain, from the start, what you've got and what you're trying to get -- using one of the actual strings you're having trouble with?
<volty> you catch whatever error during your transaction, even if it is elsewhere (in the functions you call)
<volty> if the rescue is specific it will catch only that kind of exception
<trla_> rjhunter: ok I'm new in ruby so sorry. The thing is: I'm reading from a file each line and storing them in variables
<trla_> one of the line is ---> test\one
<trla_> os I get that the var line contains test\one
<volty> you don't want your prog to go down on half way -- so you capture all the possible errors (though it can bring an infinite loop in some cases)
Mars` has joined #ruby
aryaching has quit [Ping timeout: 260 seconds]
funburn has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
Andrevan has joined #ruby
<segv> Just want showmatch for text
<volty> louism2wash: the best is to rescue : 1) first the specific ones 2) after that whatever
<trla_> if I print line I get testone obviously from your explanation
lyanchih_ has joined #ruby
reset has joined #ruby
<volty> no
<trla_> my question if, when I read the file can I store test\one keepen the \ ? because one stored, I want to change by \\
<trla_> rjhunter: not sure If I'm clear
<rjhunter> trla_: i think i understand
visof has quit [Quit: Leaving]
Davey has joined #ruby
jdenen has joined #ruby
dkamioka has quit [Remote host closed the connection]
visof has joined #ruby
ssvo has joined #ruby
renanoronfle has quit [Quit: Leaving]
<trla_> so, I one to get test\\one to store it in another file
<trla_> *I want
<volty> trla_: if you read a file you get "c:\\test\\one\n"
visof has quit [Client Quit]
lyanchih has quit [Ping timeout: 260 seconds]
lyanchih_ is now known as lyanchih
visof has joined #ruby
<volty> so you just chomp if "\n" is there and you have your path
jdenen has quit [Remote host closed the connection]
funburn has joined #ruby
<louism2wash> volty: I get that, but where exactly does a transaction error fall in the exception hierarchy? I'm looking at the Exception hierarchy right now and I'm seeing transaction on it anywhere… sorry if this is a stupid question.
<volty> you write to the second and it is ok, in the file you will have only one \
<volty> louism2wash: the question is too specific, you have to read the docs
pixelgremlins_ba has joined #ruby
<volty> ops
<trla_> volty: you are right and I was wrong
<trla_> :)
mayhew has joined #ruby
<trla_> rjhunter:, volty thank you :)
<volty> louism2wash: what you see as transaction exceptions is not your case
<volty> yw
<volty> because you want to do that transaction manually
pixelgremlins has quit [Ping timeout: 245 seconds]
<volty> transaction exceptions apply to transactions (something like transaction_begin .... update / insert / delete .... transaction_end
<louism2wash> volty: I see what your saying. If I'm wrapping the statements in a transaction block I catch it there.
gmas has quit [Ping timeout: 245 seconds]
<volty> )
samsonasu has quit [Quit: samsonasu]
sniffingcats has joined #ruby
momomomomo has quit [Quit: momomomomo]
<volty> something like that, try it with some error in the middle (e.g. dividing by zero) and see
<volty> gn
Mars` has quit [Remote host closed the connection]
burlyscudd has joined #ruby
<louism2wash> volty: cool, much appreciated
<volty> yw
samsonasu has joined #ruby
volty has quit [Quit: Konversation terminated!]
ericmathison has quit [Quit: leaving]
nadirvardar has quit [Quit: Computer has gone to sleep.]
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
parzo has quit [Read error: Connection reset by peer]
parzo has joined #ruby
parzo has quit [Remote host closed the connection]
hamakn has joined #ruby
parzo has joined #ruby
mansi has joined #ruby
danshultz has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
visof has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
brianpWins has joined #ruby
mj12albert has joined #ruby
mj12albert has quit [Max SendQ exceeded]
visof has joined #ruby
mj12albert has joined #ruby
io_syl has quit []
nari has joined #ruby
DrShoggoth has joined #ruby
<jdubs4million> Hi, I wrote a rake job which uses a gem that I have installed, but when I run it, it breaks and throws a unitialised constant https://gist.github.com/jdubs/7017904
parzo has quit [Ping timeout: 240 seconds]
endash has joined #ruby
burlyscudd has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 245 seconds]
tabolario has joined #ruby
zoee has joined #ruby
geggam_ is now known as geggam
soheil has quit [Remote host closed the connection]
louism2wash has quit [Quit: This computer has gone to sleep]
soheil has joined #ruby
roadt_ has joined #ruby
mansi has quit [Remote host closed the connection]
zoee has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
saarinen has joined #ruby
soheil has quit [Ping timeout: 240 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
wallerdev has quit [Quit: wallerdev]
astrobunny has quit [Ping timeout: 245 seconds]
sniffingcats has joined #ruby
Domon has joined #ruby
sniffingcats has quit [Client Quit]
sniffingcats has joined #ruby
agjacome has quit [Quit: leaving]
lfox has joined #ruby
pwh has quit []
<lfox> Thoughts on using `!possibly_nil.nil?` vs just `possibly_nil`?
astrobunny has joined #ruby
pwh has joined #ruby
digital-ghost has quit [Remote host closed the connection]
sniffingcats has left #ruby ["Til rivido Idisti!"]
DanBoy has joined #ruby
Mars` has joined #ruby
{b_d} has joined #ruby
kilophoton has joined #ruby
fijimunkii has quit [Ping timeout: 240 seconds]
marcdel has joined #ruby
ioNull has joined #ruby
Flashmasterson has joined #ruby
devoldmx has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
<Flashmasterson> i tried to create a .dat file using text editor and it asked gave me a choice of saving it as that or .txt - when i chose .dat it saved it through VLC, where it doesn't recognize the input's format. what gives?
<Flashmasterson> *it gave
marcdel has quit [Ping timeout: 272 seconds]
alexju has joined #ruby
tylersmith has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
Jetchisel has joined #ruby
endash has quit [Quit: endash]
marcdel has joined #ruby
gyzmodo has joined #ruby
pilotte has quit [Ping timeout: 240 seconds]
osvico has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
ChronocityLC has joined #ruby
Flashmasterson has quit [Quit: Leaving.]
patricklamoreux has joined #ruby
Flashmasterson has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
<Flashmasterson> i tried to create a .dat file using text editor and it gave me a choice of saving it as that or .txt - when i chose .dat it saved it through VLC, where it doesn't recognize the input's format. what gives?
<sevenseacat> your VLC is configured to open .dat files
swordsmanz has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
<patricklamoreux> anyone able to assist with some gsl/fsolver questions?
<Flashmasterson> sevenseacat: is that undoable?, 'the well-grounded rubyist' doesn't mention using VLC yet, just a text editor
<sevenseacat> VLC has nothing to do with rails
<sevenseacat> or ruby
<sevenseacat> its a video player
<sam113101> lol
<Flashmasterson> sevenseacat: ok so i have to uninstall it in order for it to be saved under the default program (text editor)?
tylersmith has quit [Read error: Connection reset by peer]
<sevenseacat> no
<sevenseacat> ignore VLC
<sevenseacat> it is irrelevant here
<sam113101> it's time for our daily fun
Nogbit has quit [Quit: Leaving.]
<sevenseacat> seems to be that way
raphaelivan has joined #ruby
<Flashmasterson> ok
marcdel has joined #ruby
lfox has quit [Quit: ZZZzzz…]
ryanRT has quit [Quit: Ex-Chat]
kevinykchan has joined #ruby
<Flashmasterson> but when i save the file as 'temp.dat' it becomes a VLC file, otherwise text editor asks me to save it as a .txt
Spami has quit [Quit: This computer has gone to sleep]
kevinykchan has quit [Client Quit]
lembacon has joined #ruby
kevinykchan has joined #ruby
<sevenseacat> so?
<sevenseacat> you can open any file in any program
<DanBoy> apt-get remove vlc
<DanBoy> lol
varfoo has joined #ruby
raphaelivan has quit [Read error: No route to host]
raphaelivan has joined #ruby
<Flashmasterson> alright then, when i open temp.dat in vlc it gives me an error
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
<sevenseacat> ignore VLC.
<sevenseacat> it is irrelevant here.
<Flashmasterson> ok
<DanBoy> dude you got ruby setup
<DanBoy> name it blam.rb
<DanBoy> and run ruby blam.rb
visof has quit [Ping timeout: 272 seconds]
<DanBoy> vlc is a media player has nothing to do with anything here
<Flashmasterson> ok i understand that now, thanks
<DanBoy> its all good :P
<Flashmasterson> the book i'm using is telling me to save it as .dat though
<sevenseacat> so do it
<DanBoy> what page
<DanBoy> i probably have this
<Flashmasterson> hahaha
Apocalypse has quit [Ping timeout: 245 seconds]
<Flashmasterson> ok hold on
<sevenseacat> im sure i can dig up the book as well
pilotte has joined #ruby
codeFiend has joined #ruby
<Flashmasterson> page 13. "READING FROM A FILE"
<DanBoy> ok
<Flashmasterson> it's actually caps, no offense
Jetchisel has joined #ruby
<DanBoy> seems i don't have it
<DanBoy> but im guessing it wants you to just enter some info to a file and then read from it
<DanBoy> your on windows i guess and you got VLC setup to open .dat files
<Flashmasterson> nah osx 10.8
<DanBoy> ok load up your terminal
<Flashmasterson> got it
burlyscudd has joined #ruby
<DanBoy> type
<Flashmasterson> directory is already specified
<DanBoy> file whatever.dat
Monie has joined #ruby
<DanBoy> first though i mean, what has the book asked you to put in this file?
<Flashmasterson> the number 100
<Flashmasterson> "100"
<DanBoy> ok what is the book asking you to do with the file
<sevenseacat> ok, page 13
<DanBoy> stay in the terminal , don't go clicking around :D
<Flashmasterson> ok
dmiller has quit [Remote host closed the connection]
<sevenseacat> its about putting a numberi n a file, then reading that file from a ruby program
<Flashmasterson> right
Ripp__ has quit []
<DanBoy> ya i figured so
<sevenseacat> put the number 100 in a file, read that into a celsius to fahrenheit converter, spit out result
<DanBoy> so you'll make your script along with the book and then pass that file to it
<DanBoy> ya just follow the book
<sevenseacat> the name and extension on the file are irrelevant really
<DanBoy> try and stay in your terminal though
<sevenseacat> as long as the file you make, matches the filename in the ruby code
<Flashmasterson> oh...
<DanBoy> its unix so a file is a file
<Flashmasterson> ok i was told otherwise, but alright
* sevenseacat keeps TWGR on desk
<DanBoy> windows makes that distinction i guess with binary files
<Flashmasterson> yes, yes he does, and in his backpack between dog walking gigs in manhattan
<Flashmasterson> alright i need to make the next program, then i'll test it out
shams has quit []
<Flashmasterson> ok it worked when i asked it to read the .dat file, thanks for helping me
<DanBoy> after you finish it, be cool and use ARGV[0] to load the file up :D
<sevenseacat> dont confuse the guy
<Flashmasterson> i'm easily confused
<DanBoy> ya just focus on the book :P
<Flashmasterson> with the attention span of a hummingbird
<DanBoy> but seriously though i would stay in the terminal you shouldn't need to click on anything
<sevenseacat> he doesnt know how to use the terminal.
<Flashmasterson> that's also true
<DanBoy> oh
<Flashmasterson> i don't know anything
<DanBoy> does the book use a terminal?
<Flashmasterson> yeah i'm just exaggerating a bit
DonRichie has quit [Ping timeout: 240 seconds]
<Flashmasterson> i'm on section 1.2.1 man, it's going to be a long haul
{b_d} has quit [Quit: Til rivido Idisti!]
<DanBoy> you'll be fine, you should probably learn to use a terminal though, any of the linux terminal tutorials should be fine if you want to learn the basics
<DanBoy> but follow the book first
keen___ has joined #ruby
danshultz has joined #ruby
yekta has quit [Quit: yekta]
<Flashmasterson> DanBoy: yeah i hear you
<Flashmasterson> sevenseacat: do you still have the book by you?
<sevenseacat> aye
DonRichie has joined #ruby
<Flashmasterson> cute. ok:
<Flashmasterson> on page 14… listing 1.3...
<sevenseacat> yes
keen__ has quit [Ping timeout: 272 seconds]
<Flashmasterson> he asks me to use "puts" because it will add another line below it, but i don't understand why he just wouldn't use "print"
<sevenseacat> try using print then and see what happens
<Flashmasterson> ok
<DanBoy> well what i do when i bang out a book is i try to finish at least one chapter a day
<Flashmasterson> that's too fast for me i don't have that kind of time yet
<Flashmasterson> sevenseacat: i see, we need that extra line to make it look clean
<sevenseacat> :)
danshultz has quit [Ping timeout: 240 seconds]
<DanBoy> ya i wasn't gunna spoil it
forced_request has quit [Read error: Connection reset by peer]
nouitfvf has quit [Ping timeout: 245 seconds]
musty has joined #ruby
<Flashmasterson> i'm also wondering why i don't enter "puts 'The number is ' + num" on the line above the second line - because that 'puts' is physically in front of the "num" line as it appears in the terminal
<Flashmasterson> once the program is executed, i mean
mattp_ has quit [Read error: Operation timed out]
gja has joined #ruby
<sevenseacat> im not following you
<DanBoy> ya :)
<Flashmasterson> hmm
<DanBoy> can you paste your output in the terminal if its not too long
<Flashmasterson> i would think line 5 should come right before line 2, because it appears that way in the terminal once i run the program
<DanBoy> from the term i mean
<Flashmasterson> DanBoy: sure, here:
<Flashmasterson> Macintosh:rubysamplecode toreystriffolino$ ruby c2fin.rb
<Flashmasterson> Reading Celsius temperature value from data file…
<Flashmasterson> result: 212
<Flashmasterson> The number is 100
danshultz has joined #ruby
<DanBoy> looks like it works to me, what are you saying is the problem
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> no, you cant print out the number before you read it from the file.
Apocalypse has joined #ruby
<Flashmasterson> ok
<sevenseacat> but feel free to try it :)
<Flashmasterson> DanBoy: no problem, just curious why it is the way it is - so i won't be confused by it later
<sevenseacat> the wonder of programming, it takes two seconds to move some lines and re-run the program
<DanBoy> what text editor are you using?
eightygrit has quit [Quit: eightygrit]
<Flashmasterson> Text Editor
<DanBoy> personally i'd be coding in a good editor and then swiping to a full screen term to test your results
<DanBoy> dont flame me plz ;P
<sevenseacat> thats probably gedit or something similar under mint
<Flashmasterson> sevenseacat: right, i tried to fit it my way and got this error: Reading Celsius temperature value from data file…
<Flashmasterson> c2fin.rb:2:in `<main>': undefined local variable or method `num' for main:Object (NameError)
<sevenseacat> Flashmasterson: because look at where num gets defined
<Flashmasterson> like text mate or sublime text 2?
<DanBoy> sublime is what i use
<sevenseacat> as do i
<DanBoy> free at the moment as well
<Flashmasterson> sevenseacat: i see, if there is a "num" object in the program, the terminal expects it to be in that location if the program is going to function the way it should and not have errors?
<DanBoy> i would take advantage of the multiple desktops , have your editor and then swipe to your terminal to test your code
<sevenseacat> uh
<DanBoy> terminal is just the way you access your computer
<sevenseacat> https://gist.github.com/karpah/7018712 at the time you're doing the printing, num is not defined
<DanBoy> the num object im assuming is just a variable you read from the file
<DanBoy> you need to read it before you can print it
<DanBoy> thats all
<sevenseacat> yep :)
<DanBoy> ya see
<Flashmasterson> DanBoy: ok yeah that makes sense
<DanBoy> reverse those 2 lines
<Flashmasterson> i can't show something that i don't have yet
<sam113101> maybe his monitor is upside down
<DanBoy> ya exactly
<Flashmasterson> everything is
marcdel has joined #ruby
<Flashmasterson> DanBoy: i have sublime text2 but it's unregistered - does that hold me back much?
<sevenseacat> nope
<DanBoy> just hit escape when the message comes up
alvaro_o has quit [Quit: Ex-Chat]
<musty> *shows off his Sublime Text 3*
<DanBoy> every X saves a message will come up
<Flashmasterson> rad
<DanBoy> which for me is like 900 times a day
<DanBoy> but i;ll buy it someday
<sevenseacat> the amount of time i spend using ST2, i just bought it
codeFiend has quit [Quit: codeFiend]
<DanBoy> ya its going for what
<DanBoy> 70 bucks now
<DanBoy> or so
freerobby has quit [Quit: Leaving.]
<Flashmasterson> is there a torrent for it? i have little $
<sevenseacat> something like that
rezzack has quit [Ping timeout: 268 seconds]
<DanBoy> its free dude
<sevenseacat> so about 0.000000001c per hour i've used it
<DanBoy> no torrents
<sam113101> https://2.gravatar.com/avatar/bb365e8477053edcc55b40c3d27781d8?d=https://identicons.github.com/6138548d5b73976278ee6210905b9395.png&s=140
<sam113101> is it the sevensea cat?
Domon__ has joined #ruby
<sevenseacat> thats me.
Domon__ has quit [Remote host closed the connection]
<Flashmasterson> DanBoy: you just said it's 70 to register though
<sam113101> you're a cat?
<sevenseacat> meow.
<DanBoy> ya to register it
brain_shim has joined #ruby
<DanBoy> but its free but every say 25 times you save a file, a message will pop up and ask you to register thats all
brain_shim has quit [Max SendQ exceeded]
<sam113101> so you're just a cat called sevensea, you're not multiple cats?
<DanBoy> just hit escape
burlyscudd has quit [Quit: Leaving.]
<Flashmasterson> what advantage does that offer?
<Flashmasterson> to register
brain_shim has joined #ruby
<DanBoy> the message goes away
<sevenseacat> sam113101: i hadnt put that much thought into it >_>
<sam113101> just use vim
<sam113101> it's free
<sam113101> better than sublime text vintage mode
<DanBoy> ya dude but the learning curve for vim may be a bit much for his needs at the moment
havenwood has joined #ruby
<DanBoy> or macvim
<musty> sam113101: I'd rather use emacs than vim.
<Flashmasterson> ok what are some really useful tools/tricks i should know about ST2?
<sam113101> LOL, true
<sam113101> I mean the guy is learning how to change directories right now
freerobby has joined #ruby
<DanBoy> Flashmasterson, nothing dude its extremely easy to use
<Nilium> Uh, useful tool #1: use the Nil theme.
<Nilium> And the Big Duo color scheme.
<sam113101> vim > emacs
<segv> I still haven't found this, bracket matching like feature for ruby if/end def/end type syntax
<DanBoy> i customized everything in ST2
mattp_ has joined #ruby
<Nilium> Did you build your own theme?
<DanBoy> actually
<DanBoy> i ripped my friends theme
<DanBoy> but i changed the color of the comments
<segv> google yields the matchit command, but that's not for visual use
<DanBoy> :P
<Nilium> I built my own. >_>
Domon has quit [Ping timeout: 272 seconds]
<Flashmasterson> ok i don't know how to do that yet, what other tools/tricks
<sevenseacat> i use that ^
<DanBoy> just get it and then find a syntax highlight you can live with
<DanBoy> and your done
<DanBoy> thats it
<DanBoy> your ready to go
* Nilium recommends using his theme and color schemes because he made them
<DanBoy> syntax highlighting means the code will change colors in certain areas
pwh has quit []
<DanBoy> or use his :P
<weeb1e> Does anyone here know how to set up a custom worker process with Unicorn? I'd like to fork a worker process that will run an EventMachine reactor so that it is automatically started and stopped with the rest of the Unicorn workers
<Flashmasterson> cool, i like his, how do i bring it to mine?
<sevenseacat> nah i dont use the colour schemes that nil comes with, i use dobdark :)
<Nilium> Follow the instructions in the README.
* Nilium punches sevenseacat
<Nilium> Actually don't really care who uses the color schemes since they're kind of quirky in the first place
rjhunter has quit [Remote host closed the connection]
<a1ph4g33k> weeb1e, have you looked at foreman to manage your processes ?
<Nilium> Most people seem to hate giving stuff background colors
rjhunter has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<sevenseacat> i cant stand light themes in text editors
<DanBoy> Flashmasterson, dude get rid of the terminal the mac came with
<DanBoy> get this one
<DanBoy> and get sublime
<DanBoy> your done
<DanBoy> swear to god
<DanBoy> then go to your book
<sevenseacat> DanBoy: you should probably stop confusing the issue
<DanBoy> ya i know
<weeb1e> a1ph4g33k: I'm asking specifically about Unicorn. Sure I could use many other techniques to manage the processes, but I'd like as few moving parts as possible, as this Unicorn server is already just a master server used for openid login and sign up, which shares a session with many other applications which are entirely EventMachine based
<sevenseacat> and he's not using OSX
<Flashmasterson> yes i am
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sevenseacat> o.O oh shit, it was the other noob who was using mint
<sevenseacat> my bad
<segv> so no one has any ideas about showmatch but for words? like [ shows that it ends ] and highlights the other bracket?
<Nilium> DanBoy is just doing what I'd do if I had the motivation.
<weeb1e> Surely Unicorn should allow you to configure a custom worker process? Else I'd have to go through its source and monkeypatch it to allow such functionality
<DanBoy> lol
<a1ph4g33k> weeb1e, gotcha ... I read your question as more basic.
petey has joined #ruby
<Flashmasterson> cool, that's the terminal hartl uses
<DanBoy> hartle wrote this book?
<DanBoy> *hartl
<sevenseacat> it was joshanderson or something that was using mint, right right
<sevenseacat> nah David A. Black wrote TWGR
<weeb1e> a1ph4g33k: I'd avoid using EventMachine at all in the Unicorn application, but I'd like realtime chat functionality to be shared between all the other applications and available even when one or more is down for whatever reason (maintenance, etc)
shevy has quit [Ping timeout: 268 seconds]
shevy has joined #ruby
<Flashmasterson> sevenseacat: yeah but i also have hartl's pdf and screencasts for when i know more about what the hell i'm doing… which should be in about a decade or so
<sevenseacat> haha cool
kitak_ has quit [Remote host closed the connection]
heidi has joined #ruby
<sevenseacat> so much for not having $, those screencasts arent cheap
tylersmith has joined #ruby
Domon has joined #ruby
<weeb1e> I guess not many people here would have much experience with Unicorn other than just using its basic functionality
<weeb1e> I only started using it a day ago :/
rjhunter has quit [Ping timeout: 245 seconds]
<weeb1e> So I guess I will go through its source code now
mrsolo has quit [Quit: This computer has gone to sleep]
<a1ph4g33k> I use it, but in a straightforward way.
<Flashmasterson> sevenseacat: they're cheap when you torrent them
samsonasu has quit [Quit: samsonasu]
<sevenseacat> charming -_-
soba has joined #ruby
<DanBoy> never used any screencasts myself
teapop has joined #ruby
<Flashmasterson> sevenseacat: $650 in student loan payments per months plus rent and living expenses teach a person how to be resourceful
<Flashmasterson> *month
<DanBoy> im actually used to the days where going on irc with an issue was the last resort
<DanBoy> cuz i'd get yelled at in #c
<segv> Flashmasterson: yeah they do
<sevenseacat> no need to justify yourself to me, your situation is totally different to mine
<Flashmasterson> sevenseacat: cool, just saying. i meant no disrespect to hartl's work
gmas has joined #ruby
<Flashmasterson> sevenseacat: what's your situation?
<segv> DanBoy: so am I but no one has an answer haha
<sevenseacat> i have a job, i work, i pay for things :P
larissa has quit [Quit: Leaving]
<DanBoy> the days waaaaaay before stackoverflow.com
<Flashmasterson> sevenseacat: yeahh so do i
zastern has joined #ruby
<Flashmasterson> sevenseacat: i think you just earn more than i do
burlyscudd has joined #ruby
Mars` has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
<sevenseacat> maybe
kitak has joined #ruby
natevick has joined #ruby
<DanBoy> took me like a month to understand pointers when i was 14 for fear of getting the classic "RTFM" in #C
<DanBoy> people seem to be a lot nicer now a days
<sevenseacat> pointers still confuse the bejeezus outta me
<weeb1e> C# needs to die in a fire :P
<sam113101> I think he meant the channel about C
shevy has quit [Ping timeout: 272 seconds]
<weeb1e> Oh, I totally misread that
<DanBoy> ya i mean the actual channel
<DanBoy> so much elitism built into it
<weeb1e> #C != C#
drumsrgr8forn8 has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
maycon has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
natevick has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 240 seconds]
swingha has quit [Changing host]
swingha has joined #ruby
neo_ has joined #ruby
jdenen has joined #ruby
neo_ has quit [Client Quit]
Flashmasterson has quit [Quit: Leaving.]
julweber_ has quit [Remote host closed the connection]
julweber has joined #ruby
burlyscudd has quit [Quit: Leaving.]
reppard has joined #ruby
kreeves has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Ping timeout: 240 seconds]
tjad has joined #ruby
someish has quit [Quit: someish]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Monie has joined #ruby
swingha has quit [Quit: Konversation terminated!]
julweber has quit [Ping timeout: 272 seconds]
a1ph4g33k has quit [Quit: Leaving]
reppard has quit [Remote host closed the connection]
Monie has quit [Client Quit]
pwh has joined #ruby
brianpWins has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
heidi has quit [Quit: Leaving.]
mansi has joined #ruby
shevy has joined #ruby
ffranz has quit [Quit: Leaving]
heathjs is now known as heath
postmodern has quit [Quit: Leaving]
mattp_ has quit [Ping timeout: 272 seconds]
astrobun_ has joined #ruby
<musty> weeb1e: Very good.
lewis has joined #ruby
mattp_ has joined #ruby
jeremywrowe has joined #ruby
reppard has joined #ruby
endzyme has joined #ruby
<endzyme> anyone familiar on how to log from my rack app to a file?
swingha has joined #ruby
<weeb1e> endzyme: As you would from any other app?
<endzyme> weeb1e: forgive me but i'm only just starting developing my first ruby app
jdenen has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 245 seconds]
gja has quit [Quit: This computer has gone to sleep]
<jeremywrowe> endzyme: here is a good reference - http://stackoverflow.com/questions/2366352/where-does-rack-log-to
astrobunny has quit [Ping timeout: 245 seconds]
<endzyme> i had tried that and I couldn't get it to log - i am running puma
<endzyme> i'll try again
mayorga has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
<segv> man getting vim to highlight the closing end is a PITFA
<segv> any of you guys found a plugin for this?
<jeremywrowe> endzyme: there is no need to apologize - you should feel welcome to ask questions, that is kind of the point of being here :)
<endzyme> jeremywrowe: thank
<endzyme> s
<weeb1e> Yeah, welcome to ruby :)
mrsolo has joined #ruby
<endzyme> weeb1e: thanks -
<RubyPanther> segv: you could run emacs in vim mode
<segv> hell to the na
T__T has joined #ruby
reppard has quit [Ping timeout: 261 seconds]
<segv> I don't need to run another OS to edit some simple text files haha
<endzyme> jeremywrowe, weeb1e: i am seeing some items logged into the stdout, but not the Rack stuff
<endzyme> apache style logging that is - it's not showing up in the log - but I am seeing the stderr and stdout
<weeb1e> It would depend on the web server you are using
<havenwood> yup, various Ruby webservers have different settings for where logs go and what they entail
cutmail has joined #ruby
cutmail has quit [Remote host closed the connection]
<segv> havenwood: I always loved that, i prefer webrick sometimes for that
<weeb1e> Are you still seeing the log lines you are trying to capture on your command line output while the server is running?
<segv> it really depends though
cutmail has joined #ruby
<endzyme> weeb1e: ah i see
<endzyme> let me check
<endzyme> no i am not seeing it (running #>puma ; then tailing logfile.log)
<endzyme> logfile shows "No such file or directory - /etc/haproxy/haproxy.cfg" (expected from stdout)
Hobogrammer has quit [Read error: Connection reset by peer]
<endzyme> that's interesting though - i killed the process and then the http call shows up
<weeb1e> I have never used puma, so I can't really help with that
brianpWins has joined #ruby
Ethornet has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
mary5030 has joined #ruby
<endzyme> hmm you recommend thin?
<endzyme> or any other one?
<weeb1e> Is puma eventmachine based?
zz_tsykoduk is now known as tsykoduk
Hung has joined #ruby
<endzyme> no clue
<endzyme> think so
jonahR has joined #ruby
<weeb1e> I use thin for all my eventmachine applications, which is pretty much every application I build. I started using unicorn yesterday for my first tiny synchronous application
zastern has quit [Remote host closed the connection]
<endzyme> upon looking - puma is not eventmachine based
<weeb1e> It does not sound like puma is EM-based
<weeb1e> In which case I'd recommend Unicorn, but you could use Puma too
<havenwood> weeb1e: puma is thread pool based, so friendly to GILless VMs
Hobogrammer has joined #ruby
<havenwood> thin is the popular evented webserver
mary5030 has quit [Ping timeout: 257 seconds]
<weeb1e> Yeah, well I still think Unicorn would be better for a synchronous server
<havenwood> <3 unicorn
<havenwood> FORK ALL THE THINGS \o/
<endzyme> i am running a *very* basic grape app -
<endzyme> doesn't need sync
<weeb1e> I literally have only ever built a single synchronous ruby web application, which I started a day ago with Unicorn
rjhunter has joined #ruby
maz-dev has quit [Ping timeout: 245 seconds]
<weeb1e> So I would not be the best person to advise on the topic
<endzyme> ok
goganchic has joined #ruby
<weeb1e> I have built about 50 EventMachine platforms though, some fairly large, so I can probably help with anything EM related
capnmalarkey has joined #ruby
kazuuu has quit [Remote host closed the connection]
jeremywrowe has quit [Quit: Lost terminal]
kazuuu has joined #ruby
peterhu has quit [Quit: leaving]
<endzyme> all i am looking to do is take what I would normally see on what i assume to be stdout and pop that into a log file - i'm writing a basic haproxy api
sailias has quit [Ping timeout: 272 seconds]
polaco is now known as polaco_zZz
<havenwood> really nice conf talk on Unicorn's inner workings in particular: http://www.confreaks.com/videos/1289-rubyconf2012-grow-your-unix-beard-using-ruby
io_syl has joined #ruby
<weeb1e> I just read through a whole bunch of Unicorns source code a few minutes ago, think I can skip that talk :P
<havenwood> if you comprehend pre-forking and read the code, skip awa
<weeb1e> I built my own EM-based process manager a couple years ago, it handles forking, exec'ing and monitoring all kinds of processes as well as forwarding their output to my other applications via my own IPC
PanPan has quit [Remote host closed the connection]
<havenwood> nice for those without solid understanding of unix forking, simple English description of what's going on
r0bby_ has joined #ruby
<havenwood> i like Jesse Storimer's stuff for that reason, super accessible
saarinen has quit [Quit: saarinen]
<havenwood> having fun going through his latest book on creating a shell with Ruby
<weeb1e> That runs as root on all my boxes and runs processes as their correct users once the environment has been setup correctly for them, such as unlimiting the core dump size, it also scheduling time critical processes in realtime with chrt and ionice
tsykoduk is now known as zz_tsykoduk
kazuuu has quit [Ping timeout: 268 seconds]
mayorga has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
fijimunkii has joined #ruby
danshultz has quit [Remote host closed the connection]
frozon has joined #ruby
danshultz has joined #ruby
mayhew has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 240 seconds]
jdubs4million has left #ruby [#ruby]
marcdel has joined #ruby
Asher has quit [Quit: Leaving.]
noyb has joined #ruby
codeFiend has joined #ruby
bigmac has joined #ruby
bigmac is now known as i8igmac
Asher has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 272 seconds]
RORgasm has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
yellow5 has quit [Ping timeout: 248 seconds]
Norrin has quit [Ping timeout: 245 seconds]
yellow5 has joined #ruby
fijimunkii has quit [Ping timeout: 272 seconds]
Norrin has joined #ruby
banister has quit [Quit: Computer has gone to sleep.]
stonevil_ has quit [Remote host closed the connection]
stonevil has joined #ruby
stonevil has quit [Read error: Connection reset by peer]
stonevil has joined #ruby
zoee has joined #ruby
Andrevan has quit [Quit: WeeChat 0.4.2-rc1]
maz-dev has joined #ruby
mklappstuhl has joined #ruby
astrobun_ has quit [Ping timeout: 268 seconds]
NewChimpHands has joined #ruby
parzo has joined #ruby
zoee has quit [Ping timeout: 245 seconds]
Domon has quit [Remote host closed the connection]
stonevil has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
shevy has joined #ruby
astrobunny has joined #ruby
mary5030 has quit [Remote host closed the connection]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Asher has joined #ruby
Aryasam has quit [Ping timeout: 268 seconds]
mary5030 has joined #ruby
francisfish has joined #ruby
codeFiend has quit [Quit: codeFiend]
jkline has joined #ruby
Jetchisel has quit [Ping timeout: 260 seconds]
Ethornet has quit [Quit: Page closed]
cads has joined #ruby
codeFiend has joined #ruby
ewnd9 has joined #ruby
s3itz has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
francisfish has quit [Ping timeout: 268 seconds]
kil0byte has joined #ruby
mansi has joined #ruby
goganchic has quit []
brianpWins has quit [Quit: brianpWins]
dhruvasagar has joined #ruby
T__T has quit [Remote host closed the connection]
kilophoton has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 268 seconds]
cha1tanya has joined #ruby
postmodern has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
DanKnox is now known as DanKnox_away
astrobunny has quit [Ping timeout: 272 seconds]
Jetchisel has joined #ruby
Aryasam has joined #ruby
codeFiend has quit [Quit: codeFiend]
tomzx_mac has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
NewChimpHands has quit [Ping timeout: 250 seconds]
mklappstuhl has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 240 seconds]
brunoro has quit [Quit: WeeChat 0.3.8]
mac_ has joined #ruby
Aryasam has quit [Ping timeout: 268 seconds]
lyanchih has joined #ruby
capnmalarkey has quit [Quit: capnmalarkey]
DuncanNZ has joined #ruby
codeFiend has joined #ruby
<DuncanNZ> I'm getting a "invalid byte sequence in UTF-8" error on a line that has no non-ASCII chars
<DuncanNZ> the error is generator.rb:7:in `split': invalid byte sequence in UTF-8 (ArgumentError) on the line parts = line.chomp.split("->")
aryaching_ has quit []
<DuncanNZ> ahh sorry just realised the error is in the file I'm reading not in the source code. never mind
Hung has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 245 seconds]
kil0byte has joined #ruby
<DuncanNZ> although there is still a problem because in the file I'm reading the UTF8 bytes are perfectly good UTF8, they are the bytes c3 a8 for the character è. I'm not familiar with ruby so am not sure exactly why this would happen. Can someone please help?
Spami has joined #ruby
s3itz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
endzyme has quit [Remote host closed the connection]
s3itz has joined #ruby
codeFiend has quit [Quit: codeFiend]
kil0byte has quit [Ping timeout: 272 seconds]
astrobunny has quit [Ping timeout: 268 seconds]
Domon has joined #ruby
T__T has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
<DuncanNZ> Meh, turns out the file was secretly latin1. These file encoding things can be tricky. Sorry for posting too early.
T__T has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 245 seconds]
ChronocityLC has quit [Ping timeout: 268 seconds]
astrobunny has joined #ruby
musty has quit [Read error: Connection reset by peer]
tobago has joined #ruby
musty_ has joined #ruby
lewis has quit [Remote host closed the connection]
lewis has joined #ruby
DuncanNZ has quit [Quit: Leaving]
Fire-Dragon-DoL has left #ruby [#ruby]
DanKnox_away is now known as DanKnox
T__T has joined #ruby
lewis has quit [Read error: Connection reset by peer]
<tobago> is there an array method that groups the arrays in similar sized chunks? Array#group_by iterates over the objects of that array, but I need to "break" that array from outside.
lewis has joined #ruby
parzo has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
musty_ has quit [Ping timeout: 240 seconds]
schaerli has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
frustrum has quit [Ping timeout: 272 seconds]
tagrudev has joined #ruby
pilotte has quit [Ping timeout: 260 seconds]
DanKnox is now known as DanKnox_away
mac_ has quit [Remote host closed the connection]
zoee has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
noyb has quit [Quit: leaving]
Spami has joined #ruby
DarthGandalf has quit [Ping timeout: 245 seconds]
Mars` has joined #ruby
Fuzai has quit [Quit: No Ping reply in 180 seconds.]
swingha has quit [Quit: Konversation terminated!]
Fuzai has joined #ruby
jonahR has quit [Quit: jonahR]
Joellius has joined #ruby
JohnBat26 has joined #ruby
petey has quit [Remote host closed the connection]
whomp has joined #ruby
io_syl has quit []
cutmail has quit [Remote host closed the connection]
io_syl has joined #ruby
soulisson has joined #ruby
<soulisson> Sorry, about this question but i would like to know if the "{" and "}" are syntactically part of the block or not
<soulisson> like in C
teapop has quit [Remote host closed the connection]
whomp has quit [Quit: leaving]
kilophoton has joined #ruby
<tobago> soulisson, the are.
brennanMKE has joined #ruby
aagdbl has joined #ruby
kpshek has joined #ruby
<tobago> soulisson, the longer expression is "do ... end"
<soulisson> ok, cause usually in Ruby books and resources, a block is always introduced as being the bit between do and end or between '{' '}'
ssmithstone has joined #ruby
codeFiend has joined #ruby
<tobago> soulisson, without the syntax it is not a block.
<tobago> that marks it as a block.
<soulisson> true, so do and end are syntactically part of the block
<soulisson> thanks
kilophoton has quit [Ping timeout: 272 seconds]
<soulisson> tobago, can you recommend me a good book for Ruby please
<tobago> soulisson, otherwise it is not a block :)
swingha has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
<tobago> soulcake, the classic one is the pickaxe book. there a new revision out there.
<tobago> soulisson, ^^
<tobago> soulcake, sorry didn't mean you
<soulisson> ok, i'll check it
soulisson has quit [Quit: Quitte]
zarubin has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
atno has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 245 seconds]
alexju has quit [Remote host closed the connection]
alexju has joined #ruby
yrrep has joined #ruby
atno has joined #ruby
obs has joined #ruby
jetblack has quit [Ping timeout: 272 seconds]
alexju has quit [Ping timeout: 240 seconds]
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
<DanBoy> is it your first ruby book
Ripp__ has joined #ruby
<DanBoy> cuz the pickaxe if i remember starts from the top down with objects/modules and duck typing stuff
<DanBoy> i think programming ruby starts more traditional
<sevenseacat> that is the pickaxe
Fuzai_ has joined #ruby
<DanBoy> woops
<sevenseacat> :P
<DanBoy> the ruby programming language
<DanBoy> i meant
<sevenseacat> i liked the well grounded rubyist, and thats getting a ruby 2 update
<DanBoy> pickaxe was very good
Fuzai has quit [Ping timeout: 240 seconds]
<DanBoy> then i read the ruby cookbook
<DanBoy> bit outdated
<DanBoy> but still pretty good
krz has quit [Quit: krz]
krz has joined #ruby
<DanBoy> ya wow im tired
<DanBoy> didn't even realize the guy left
jetblack has joined #ruby
<DanBoy> 2:23 am EST
<sevenseacat> 2:24pm here :)
<sam113101> it's 2:25 am
<sam113101> fix your clock
fgo has quit [Remote host closed the connection]
<sevenseacat> timezones are a wonderful thing
<DanBoy> linux box here says 2:27am
<sam113101> fix your timezone
<DanBoy> mac box says 2:25am
<sevenseacat> lol
<sevenseacat> sam113101: stop living in the past :P
yfeldblum has quit [Ping timeout: 268 seconds]
gstamp has quit [Ping timeout: 256 seconds]
fgo has joined #ruby
<sam113101> sevenseacat: is ubuntu 13.10 out for you yet?
<sevenseacat> nope
<DanBoy> im still on debian
<s3itz> server was launched, desktop has not launched 'officially'
apeiros has quit [Remote host closed the connection]
<sevenseacat> checking for updates.....
hukl has joined #ruby
tziOm has quit [Remote host closed the connection]
gstamp has joined #ruby
<sevenseacat> nope, not yet
<DanBoy> once i got my mac my linux boxes on my lan are just simple debian servers
Fuzai_ has quit [Quit: No Ping reply in 180 seconds.]
<DanBoy> all my deving is done on the mac
Fuzai has joined #ruby
<sevenseacat> all my work and play is done on my ubuntu laptop
<s3itz> I kinda did the same thing, I have a frozen arch - kinda a bad idea, but I love how easy it is to set up that OS
<DanBoy> well
<DanBoy> i used linux as a desktop for like 13 years
<DanBoy> then i got a mac book pro last year
<DanBoy> and i was like holy shit, commercial unix that actually just works
<sevenseacat> bit of a stretch, but we'll go with that
kpshek has quit []
<s3itz> Retina display needs to be experienced
<DanBoy> well as a kid i used solaris, aix , irix and what not and at the time they also just worked out of the box,compared to linux
<DanBoy> linux <= 2.4 or so
<DanBoy> around that time zone
mrsolo has quit [Quit: Leaving]
brain_shim has quit [Remote host closed the connection]
madb055 has quit [Ping timeout: 272 seconds]
t_p has joined #ruby
<DanBoy> with linux i was always recompiling my kernel and spending a long time just making basic things work like sound
<s3itz> hehe I remember those days, manually configuring alsa conf.d to load the right module
<s3itz> learning 2 hrs later is the wrong specific impl. for your snd card
<sevenseacat> DanBoy: its come a long way since then
<DanBoy> i remember oss
* sevenseacat has never recompiled a kernel
<s3itz> Even with Arch, you bootstrap the base system and it's go
<DanBoy> ya but linux is not unified enough
JeanMertz has joined #ruby
<sevenseacat> some say thats a good thing.
<DanBoy> i see ubuntu working towards being a good desktop environment
<DanBoy> no one wants to work the boring parts
<s3itz> Even with Windows 8, you still have to find your board CD to get internet lol
<DanBoy> god
<DanBoy> i saw windows 8
<DanBoy> tablet OS on your desktop
<sevenseacat> windows 8 is.... yes, the less said about it, the better
<s3itz> The fonts will horrify you after coming off Linux/Mac, seems like MS went backwards
Hanmac has joined #ruby
<DanBoy> well i seems like mac is making a step to visually look like everything else and not as unique anymore from what i've heard from the people who updated to iOS 7
<sevenseacat> iOS7 makes everything fisher-pricey
<DanBoy> im glad my phone is a 3gs i can't upgrade to 7
<sevenseacat> all bright flat colours and big blocks
<DanBoy> ya thats bullshit
<s3itz> They tried to get the UI out of your way
<DanBoy> i hope they dont fuck the mac osx up
<s3itz> it's actually very nice
<s3itz> more gestures and toggling UI back when you need it, contextually
dagobah_ has quit [Remote host closed the connection]
<DanBoy> im just going off what i heard from a friend
<s3itz> takes a bit to get adjusted to, but after that, it's fluid
<sevenseacat> i have an android phone, so i dont really care lol
<DanBoy> when you first get a smart phone your always all over it, then 2 months later you don't use it for anything but phone calls most of the time
<s3itz> There's a lot of convergence around, I wish I knew what the next innovation will be
<sevenseacat> my phone gets used for music, sms and facebook >_>
<DanBoy> i see people just using ipads or netbooks
<s3itz> I use mine as a web browser lol
<sevenseacat> netbooks never took off here
cha1tanya has quit [Ping timeout: 272 seconds]
<DanBoy> well if your just checking your email, googling stuff and facebook type deal
<sevenseacat> phone works for that
<DanBoy> you don't need a terabyte hardrive
<DanBoy> or 8 gigs of ram
diegoviola has joined #ruby
<DanBoy> so why not by a cheap netbook where everything is stored in the cloud and what not
<DanBoy> i dunno if it will take off
<s3itz> Chrome has been very successful
<DanBoy> but google is selling something like that right now
<sevenseacat> why not use an existing phone and not carry around a much larger netbook?
<DanBoy> ya
pyrac has joined #ruby
<s3itz> There's a lot of excitement behind their holiday release
<s3itz> And the price tags didn't go up, they just introduced an addl. mid-range product, pixel, pixie? whatever it's called
Fuzai has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
vlad_starkov has joined #ruby
<DanBoy> well with a netbook theres the possibility of using other apps i guess
<DanBoy> microsoft office type stuff
<DanBoy> gaming
cha1tanya has joined #ruby
Fuzai has joined #ruby
<DanBoy> i forgot the name but theres a company out now that will run any game you want in their cloud and you can play it on whatever box you want
<s3itz> onlive
<DanBoy> so it won't even matter what the game is designed to run on
<DanBoy> ya
<DanBoy> thats it
<s3itz> their servers play the game, it just relays input and video feed
schaerli has joined #ruby
T__T has quit [Remote host closed the connection]
<DanBoy> ya i guess i see the only problem is having enough bandwidth to do all that
<s3itz> so if you can watch netflix at close to max HD, you don't need a power rig
<s3itz> but here's the issue, companies claim to have unlimited usage, there is actually a cap
funburn has quit [Quit: funburn]
<DanBoy> ya
<DanBoy> ISP's are wanting to charge for different service usage
<s3itz> I have a few nasty grams from Cox
<DanBoy> youtube, netflix
<s3itz> 300~G and they get upset, my family watches netflix regularly
<DanBoy> i think they sold data plans 5 years ago, where people didn't actually max out their caps
<DanBoy> now that we are maxing it out
<DanBoy> they want us to pay more money
<s3itz> true, but the technology is there; it's just not their ideal
<DanBoy> ya
<DanBoy> im thinking they're shitting themselves now that every user almost is maxing out there bandwidth
<DanBoy> so they want more money
<DanBoy> blah
<s3itz> Comcast is piloting data usage fees as of last month I heard
thesheff17 has quit [Ping timeout: 272 seconds]
* sevenseacat tunes out of america-centric conversation
<s3itz> Sorry :)
vlad_starkov has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 268 seconds]
<DanBoy> 10 years ago they'd be happy to sign up the whole world for unlimited data plans
<DanBoy> because they never expected people to actually come close to using so much bandwidth
<s3itz> 65k is more than enough memory
<DanBoy> and i can see it happen possibly in the near future
vlad_starkov has joined #ruby
soheil has joined #ruby
mansi has joined #ruby
jkline has quit [Quit: jkline]
<DanBoy> computers are getting so fast now a normal user doesn't need all of it
<DanBoy> check facebook and google things you don't need a 64bit processor and 8 gigs or ram
<DanBoy> *of ram
Fuzai has quit [Quit: No Ping reply in 180 seconds.]
<DanBoy> or retina displays
<s3itz> I dunno... have you used Chrome :P
Fuzai has joined #ruby
<DanBoy> im not saying thats like the answer
<DanBoy> just i dunno where computing will head for the majority
gmas has quit [Ping timeout: 272 seconds]
<s3itz> I dread the day when we walk into walmart and everything interacts with you'
mansi has quit [Ping timeout: 245 seconds]
<DanBoy> like that movie minority report
soheil has quit [Ping timeout: 272 seconds]
<s3itz> Yes.
<DanBoy> technology kills jobs
<DanBoy> at walmart and stores you always see the self service lines
napsy has quit [Quit: Lost terminal]
<DanBoy> like 7 years from now thats all there will be
<DanBoy> with like 3 dudes supervising them
<DanBoy> no more cashiers
aganov has joined #ruby
tjad has quit [Ping timeout: 268 seconds]
pranny has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
theRoUS has joined #ruby
julweber has joined #ruby
JohnBat26 has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
wildroman has joined #ruby
Fuzai has quit [Quit: No Ping reply in 180 seconds.]
Fuzai has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Fuzai has quit [Client Quit]
astrobunny has joined #ruby
Fuzai has joined #ruby
Joellius has quit [Quit: Leaving]
mroth has quit [Ping timeout: 268 seconds]
jbpros has joined #ruby
ix007 has quit [Ping timeout: 268 seconds]
niftylettuce has quit [Ping timeout: 268 seconds]
octarine has quit [Ping timeout: 268 seconds]
ix007 has joined #ruby
lurch_ has joined #ruby
octarine has joined #ruby
tvw has joined #ruby
ephemerian has joined #ruby
fgo has quit [Remote host closed the connection]
AxonetBE has joined #ruby
h_kon has joined #ruby
tvw has quit []
Xeago has joined #ruby
lewis has quit [Remote host closed the connection]
lewis has joined #ruby
jrhe has joined #ruby
threesome has joined #ruby
ahawkins has joined #ruby
lewis_ has joined #ruby
lewis has quit [Read error: Connection reset by peer]
tjad has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
claymore has joined #ruby
alup has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
jhaals has joined #ruby
maz-dev has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 268 seconds]
orien has joined #ruby
kaspergrubbe has joined #ruby
hogeo has joined #ruby
colonolGron has joined #ruby
ssmithstone has quit [Ping timeout: 240 seconds]
ewnd9 has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
io_syl has quit []
blaxter_ has joined #ruby
jbpros has quit [Quit: jbpros]
hukl has quit [Quit: Leaving...]
relix has joined #ruby
jbpros has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
aspiers has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
ericmathison has joined #ruby
fgo has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
jbpros has quit [Quit: jbpros]
pootler has joined #ruby
Krzysiek__ has joined #ruby
Macaveli has joined #ruby
shevy2 has joined #ruby
s3itz has quit [Quit: Textual IRC Client: www.textualapp.com]
lemonsparrow has quit [Quit: Page closed]
r0ber has joined #ruby
fixl has joined #ruby
amrit_ has joined #ruby
mansi has joined #ruby
zarubin has joined #ruby
Krzysiek_ has quit [Ping timeout: 272 seconds]
simoz has joined #ruby
Krzysiek__ has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 245 seconds]
newbiehacker has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
Ripp__ has quit []
apeiros has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
hakunin has quit [Ping timeout: 272 seconds]
hakunin has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
lyanchih has quit [Quit: lyanchih]
orien has joined #ruby
bricker`LA has joined #ruby
julweber has quit [Write error: Broken pipe]
julweber has joined #ruby
elaptics`away is now known as elaptics
jcbk has joined #ruby
lyanchih has joined #ruby
wildroman has quit [Remote host closed the connection]
swingha has quit [Quit: Konversation terminated!]
cephalopod has joined #ruby
jbpros has joined #ruby
wildroman has joined #ruby
Macaveli has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 245 seconds]
pootler has quit [Quit: leaving]
workmad3 has joined #ruby
Macaveli has joined #ruby
pootler has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
hukl has joined #ruby
hukl has quit [Remote host closed the connection]
fschuindt has joined #ruby
troessner has joined #ruby
timonv has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
shevy2 has quit [Ping timeout: 272 seconds]
fuhgeddaboudit has joined #ruby
Macaveli has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
wildroman has joined #ruby
amacgregor_ has joined #ruby
canton7 has joined #ruby
adambeynon has joined #ruby
jcbk has quit [Quit: Leaving.]
jlebrech has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
epscy has joined #ruby
shaunbak_ has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
Azulinho_ has joined #ruby
pyrac has quit [Quit: pyrac]
mercwithamouth has quit [Ping timeout: 268 seconds]
ioNull has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
shevy2 has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
ioNull has joined #ruby
Authenticator has quit [Ping timeout: 272 seconds]
fgo has joined #ruby
Mars` has quit [Remote host closed the connection]
crashx has joined #ruby
Mars` has joined #ruby
runnyspot has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
vince_prignano has joined #ruby
schaerli has quit [Ping timeout: 272 seconds]
runnyspot has joined #ruby
camilasan has joined #ruby
Mars` has quit [Ping timeout: 246 seconds]
mahata has joined #ruby
lyanchih has quit [Quit: lyanchih]
vlad_starkov has joined #ruby
joshwines_ has quit [Ping timeout: 240 seconds]
joshwines_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
lyanchih has joined #ruby
kevinykchan has joined #ruby
dagobah has joined #ruby
julweber has joined #ruby
timonv has quit [Remote host closed the connection]
mengu has joined #ruby
julweber has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
julweber has joined #ruby
camilasan has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Jdubs_ has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
reset has joined #ruby
camilasan has joined #ruby
vlad_starkov has joined #ruby
Jdubs has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
reset has quit [Client Quit]
schaerli has joined #ruby
Jdubs_ has joined #ruby
tatsuya_o has joined #ruby
mrsolo has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
Jdubs has quit [Ping timeout: 272 seconds]
funburn has joined #ruby
jb41 has joined #ruby
maz-dev has joined #ruby
LarsSmit has joined #ruby
LarsSmit has quit [Client Quit]
LarsSmit has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
klaut has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
shevy2 has quit [Ping timeout: 272 seconds]
barratt has joined #ruby
thelamest has joined #ruby
beilabs has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
beilabs has joined #ruby
Mars` has joined #ruby
vince_prignano has quit [Remote host closed the connection]
<varfoo> hi, how do i convert multiple lines of white spaces into one white space?
mrsolo has quit [Quit: This computer has gone to sleep]
nari has quit [Ping timeout: 245 seconds]
kitak has quit [Remote host closed the connection]
pyrac has joined #ruby
<pranny> varfoo: gsub(/\s+/, ' ')
zz_michael_mbp is now known as michael_mbp
brennanMKE has joined #ruby
buibex has joined #ruby
TheHganavak has joined #ruby
wesside_ has joined #ruby
Hganavak has quit [Read error: Connection reset by peer]
wesside has quit [Read error: Connection reset by peer]
shevy2 has joined #ruby
knigitz has quit [Read error: Connection reset by peer]
orien has quit [Ping timeout: 272 seconds]
kil0byte has quit [Write error: Connection reset by peer]
knigitz has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
kil0byte has joined #ruby
scottstamp has quit [Ping timeout: 272 seconds]
SilverKey has quit [Ping timeout: 272 seconds]
LarsSmit has quit [Quit: Leaving.]
cutmail has joined #ruby
b00stfr3ak has quit [Ping timeout: 268 seconds]
Kabaka has quit [Ping timeout: 240 seconds]
cha1tanya has quit [Excess Flood]
DanBoy has quit [Ping timeout: 240 seconds]
DrCode has quit [Ping timeout: 240 seconds]
filipe has joined #ruby
fschuindt has quit [Ping timeout: 272 seconds]
LarsSmit has joined #ruby
jonathanwallace has joined #ruby
orien has joined #ruby
DrCode has joined #ruby
scottstamp has joined #ruby
mklappstuhl has joined #ruby
<varfoo> pranny: thanks
mroth has joined #ruby
ewnd9 has joined #ruby
brennanMKE has quit [Ping timeout: 272 seconds]
Kabaka has joined #ruby
niftylettuce has joined #ruby
joshwines_ has quit [Remote host closed the connection]
timonv has joined #ruby
joshwines_ has joined #ruby
pen has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Fuzai has quit [Remote host closed the connection]
Fuzai has joined #ruby
Mars` has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
Mars` has joined #ruby
carraroj has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
sevenseacat has quit [Quit: Leaving.]
colonolGron has quit [Quit: Lost terminal]
TMM has joined #ruby
kyllesdk has joined #ruby
sepp2k has joined #ruby
hugohagogo has quit [Ping timeout: 252 seconds]
hugohagogo has joined #ruby
Mars` has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
kyllesdk has quit [Client Quit]
francisfish has quit [Read error: No route to host]
dzhulk has joined #ruby
mengu has joined #ruby
francisfish has joined #ruby
lkba has joined #ruby
tesuji has joined #ruby
cha1tanya has joined #ruby
rdark has joined #ruby
<jb41> is there method which can do [[1,2,3], [2,3,4], [3,4,5]] from [1,2,3,4,5] ?
braincrash has joined #ruby
Fuzai has quit [Quit: No Ping reply in 180 seconds.]
maycon_ has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
Fuzai has joined #ruby
LarsSmit has quit [Quit: Leaving.]
maycon has quit [Ping timeout: 245 seconds]
lyanchih has quit [Quit: lyanchih]
<apeiros> jb41: each_cons(3)
cephalopod has quit [Ping timeout: 245 seconds]
mahata has quit [Remote host closed the connection]
kil0byte has quit [Remote host closed the connection]
<jb41> apeiros:
<jb41> apeiros: yes, thank you, I just found it out in docs :)
ghr has joined #ruby
ferdev has joined #ruby
DaniG2k has joined #ruby
<DaniG2k> guys im having a hard time understanding what the difference is between a ruby yield and a python yield
<DaniG2k> can anyone elaborate please
<DaniG2k> like in this example code
<DaniG2k> there's a python yield
<DaniG2k> how'd that be rewritten in ruby?
jprovazn has quit [Quit: Leaving]
<apeiros> DaniG2k: how does your current try look like?
<hoelzro> DaniG2k: well, you'd probably write a Fibonacci object
<hoelzro> and create an each method for it
lyanchih has joined #ruby
<hoelzro> then you could do Fibonacci.take(1000).each do |f| puts f end
<DaniG2k> apeiros: i basi
simoz has quit [Ping timeout: 260 seconds]
<DaniG2k> apeiros: i basically wrote it the same
<apeiros> DaniG2k: I'm sorry, I don't know how "basically the same" looks in code.
<DaniG2k> apeiros: which led me to wonder what the difference was between ruby yields and python yields
kitak has joined #ruby
lyanchih has quit [Client Quit]
h_kon has quit [Remote host closed the connection]
<hoelzro> in Python, a function that yields returns a generator
diegoviola has quit [Ping timeout: 245 seconds]
<workmad3> DaniG2k: the difference is that in python you could use that code as: 'for n in fibonacci(10)'
h_kon has joined #ruby
<workmad3> DaniG2k: or even 'f = fibonacci(10)' and later on 'for n in f'
<hoelzro> when you run it, you have a sort of coroutine, and when the code running in that coroutine yields, the generator yields another value
<hoelzro> in Ruby, you can associate a block with *any* method call
user258467 has joined #ruby
<workmad3> hoelzro: is explaining it better than I could :)
<DaniG2k> i see
<hoelzro> and if the method yields something, the current block associated with that call is passed those values
<workmad3> (although it did make me realise that a python 'yield' is closer to a Fiber in ruby :) )
<DaniG2k> here's the ruby code i suppose: http://ruby-doc.org/core-2.0.0/Enumerator.html#method-c-new
<DaniG2k> does the same thing
<DaniG2k> different approach
<DaniG2k> workmad3: Fiber?
puppeh has joined #ruby
<puppeh> has anybody here installed ruby-2.1.0-preview1 with ruby-build on Mountain Lion?
<Hamled> What's the most idiomatic way to check if a given object is one of a set of objects, like in python I would do something like if foo in (bar, baz):
<hoelzro> Hamled: [bar, baz].contains?(foo)
mengu has joined #ruby
LarsSmit has joined #ruby
<workmad3> DaniG2k: ruby co-routines :)
<Hamled> awesome, thanks :)
<apeiros> contains? ?
TMM has quit [Quit: Ex-Chat]
<apeiros> not include? ?
InFlames has quit [Quit: Leaving]
<hoelzro> apeiros: oops, you're right
<hoelzro> Hamled: please bear apeiros' comment in mind =)
<Hamled> aye, thanks to you both :)
h_kon has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
h_kon has joined #ruby
<DaniG2k> workmad3: oh i think i get it
<DaniG2k> workmad3: its like in Racket they have delayed evaluation
<hoelzro> it's a cooperatively scheduled subroutine
rubyracer has joined #ruby
<rubyracer> which is the best toolkit to build desktop applications using ruby?
<workmad3> DaniG2k: http://dpaste.com/1419916/
<DaniG2k> workmad3: ah thats interesting
nari has joined #ruby
<DaniG2k> workmad3: so if a new class is created with an each method then yield can be used like in python
<workmad3> DaniG2k: no
<workmad3> DaniG2k: 'yield' in ruby just calls the block passed to the method
<workmad3> DaniG2k: in python, 'yield' creates a resumable co-routine in a generator that you can store and use later on
markoa has joined #ruby
jibi has joined #ruby
<DaniG2k> hmm
<DaniG2k> still a bit confused
<DaniG2k> I guess I'd need to write my own
<DaniG2k> and make mistakes
<DaniG2k> in order to figure out how it works
<DaniG2k> workmad3: thanks though!
LarsSmit has quit [Quit: Leaving.]
<workmad3> DaniG2k: I'd not be able to do 'foo = f.each' in ruby, for example
<workmad3> DaniG2k: as it would hit the yield and try to call a non-existant block
LarsSmit has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
<workmad3> DaniG2k: the mechanics of the co-routine with Fibers is closer to python's 'yield' behaviour ;)
<DaniG2k> got it
zarubin has quit [Ping timeout: 268 seconds]
orien has joined #ruby
TMM has joined #ruby
sumark has quit [Remote host closed the connection]
simoz has joined #ruby
lewis_ has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
nari has quit [Ping timeout: 272 seconds]
lewis has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allsystemsarego has joined #ruby
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
relix has joined #ruby
sumark has joined #ruby
VSpike has left #ruby ["WeeChat 0.3.7"]
mercwithamouth has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
sr78ger has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
lewis has quit [Ping timeout: 268 seconds]
khushildep has joined #ruby
Nahra has quit [Ping timeout: 256 seconds]
orien has joined #ruby
banisterfiend has joined #ruby
Nahra has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
jprovazn has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
monkegjinni has joined #ruby
simoz has quit [Ping timeout: 246 seconds]
frozon has quit [Quit: frozon]
lyanchih has quit [Ping timeout: 245 seconds]
lyanchih has joined #ruby
mikecmpbll has joined #ruby
Mars` has joined #ruby
monkegjinni has quit [Remote host closed the connection]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
nari has joined #ruby
ZhBPi has quit [Ping timeout: 245 seconds]
dash_ has quit [Quit: dash_]
<shevy2> rubyracer there are not many at all. the best is ruby-gnome though
shevy2 is now known as shevy
Mars` has quit [Ping timeout: 272 seconds]
puppeh has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 272 seconds]
siwica has joined #ruby
<rubyracer> shevy2 Does it work on Windows?
<rubyracer> shevy: Is it a bad idea to use ruby for cross platform desktop development?
allanm has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
darkskiez has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
saimaz has joined #ruby
<shevy> it's a great idea
<shevy> rubyracer you may have to invest quite a bit of time though to ensure that your code is clean
allanm has joined #ruby
wildroman has quit [Remote host closed the connection]
<shevy> rubyracer I found it to be best to build little-by-little step by step, and when you can, to decouple the GUI component from the core code
lyanchih has quit [Ping timeout: 245 seconds]
wildroman has joined #ruby
lembacon has quit [Remote host closed the connection]
rjhunter has joined #ruby
<darkskiez> can anyone explain to me why this happens with my time code - https://gist.github.com/darkskiez/7022729
hogeo has quit [Ping timeout: 246 seconds]
<Hanmac> darkskiez: #rubyonrails
crashx has quit [Quit: crashx]
<darkskiez> oh, ta
wildroman has quit [Ping timeout: 268 seconds]
joshwines_ has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
pyrac has quit [Quit: pyrac]
cutmail has quit [Read error: Connection reset by peer]
aagdbl has quit [Quit: Leaving.]
cutmail has joined #ruby
barratt has quit [Read error: Connection reset by peer]
capnmalarkey has joined #ruby
plotter has joined #ruby
capnmalarkey has quit [Client Quit]
Domon has quit [Remote host closed the connection]
plotter has quit [Changing host]
plotter has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
gstamp has joined #ruby
TheHganavak has quit [Read error: Connection reset by peer]
cutmail has quit [Remote host closed the connection]
lessless has joined #ruby
<lessless> folks anyone use ripper-ctags? I have an [#<Errno::EISDIR: Is a directory - .>, "."] running in the gems folder
<lessless> *it
mansi has quit [Ping timeout: 268 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
jrhe has quit [Quit: jrhe]
muxdemux has quit [Quit: muxdemux]
funburn has quit [Quit: funburn]
Hanmac has quit [Quit: Leaving.]
jhaals has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
buibex has quit [Remote host closed the connection]
amacgregor has joined #ruby
yaw has joined #ruby
kil0byte has joined #ruby
buibex has joined #ruby
starfox21 has joined #ruby
dash_ has joined #ruby
buibex has quit [Read error: Connection reset by peer]
buibex has joined #ruby
Speed has joined #ruby
wildroman has joined #ruby
kil0byte has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Guest44268 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soba has quit [Ping timeout: 245 seconds]
amacgregor has quit [Read error: No route to host]
amacgregor has joined #ruby
relix has joined #ruby
kil0byte has joined #ruby
jrhe has joined #ruby
Stygia has joined #ruby
buibex has quit []
Husel has joined #ruby
predator117 has quit [Ping timeout: 268 seconds]
nomenkun has joined #ruby
predator117 has joined #ruby
Authenticator has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
amrit_ has quit [Quit: Leaving]
someish has joined #ruby
fgo has joined #ruby
joshwines_ has joined #ruby
eka has joined #ruby
heftig has quit [Quit: Quitting]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
svector has joined #ruby
svector has quit [Max SendQ exceeded]
svector has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
fgo has quit [Remote host closed the connection]
nateberkopec has joined #ruby
kmckelvin has joined #ruby
ldnunes has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
jibi has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
Macaveli has joined #ruby
Husel has left #ruby [#ruby]
LarsSmit has quit [Quit: Leaving.]
ferdev has quit [Quit: ferdev]
io_syl has joined #ruby
io_syl has quit [Client Quit]
francisfish has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
francisfish has joined #ruby
kraljev has quit [Ping timeout: 245 seconds]
wildroman has joined #ruby
coderhut has joined #ruby
Macaveli has quit [Remote host closed the connection]
Hanmac has joined #ruby
postmodern has quit [Quit: Leaving]
nisstyre has quit [Quit: Leaving]
francisfish has quit [Ping timeout: 245 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
wildroman has quit [Ping timeout: 272 seconds]
camilasan has quit [Remote host closed the connection]
avril14th has quit [Remote host closed the connection]
camilasan has joined #ruby
io_syl has joined #ruby
kil0byte has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
kmckelvin has quit [Remote host closed the connection]
avril14th has joined #ruby
kmckelvin has joined #ruby
Elhu has joined #ruby
io_syl has quit [Client Quit]
pranny has quit [Quit: Leaving.]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
h_kon has quit [Remote host closed the connection]
trla_ has left #ruby [#ruby]
kmckelvin has quit [Ping timeout: 272 seconds]
drumsrgr8forn8 has joined #ruby
tziOm has joined #ruby
pyrac has joined #ruby
shark has left #ruby ["<photo> i poured my root beer into a square cup and now all i have is beer. please advise."]
dash_ has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
michael_mbp is now known as zz_michael_mbp
zz_michael_mbp is now known as michael_mbp
raphaelivan has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 246 seconds]
wildroman has joined #ruby
dash_ has joined #ruby
raphaelivan has joined #ruby
fgo has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
sjltaylo_ has joined #ruby
mikehodgson has joined #ruby
filipe has quit [Ping timeout: 245 seconds]
jetblack has quit [Quit: leaving]
jbpros has quit [Quit: jbpros]
AlSquire has joined #ruby
danshultz has joined #ruby
mhodgson has quit [Ping timeout: 272 seconds]
muxdemux has joined #ruby
fgo has quit [Ping timeout: 268 seconds]
kmckelvin has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
barratt has joined #ruby
muxdemux has quit [Ping timeout: 245 seconds]
kmckelvin has quit [Read error: Connection reset by peer]
kmckelvin has joined #ruby
jonathanwallace has joined #ruby
muxdemux has joined #ruby
colonolGron has joined #ruby
binaryplease has joined #ruby
MisutoWolf has joined #ruby
blaxter_ is now known as blaxter
fmcgeough has joined #ruby
dash_ has quit [Ping timeout: 272 seconds]
Azulinho_ has quit [Ping timeout: 260 seconds]
amrit_ has joined #ruby
yaw has quit [Ping timeout: 272 seconds]
dash_ has joined #ruby
dhruvasagar has quit [Ping timeout: 272 seconds]
kitak_ has joined #ruby
kitak has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 260 seconds]
dash_ has quit [Max SendQ exceeded]
aagdbl has joined #ruby
<MisutoWolf> Hm. I think after I get more work done on this Source Engine project, I might keep playing with network stuff and work on a project that deals with MPD
heftig has joined #ruby
dash_ has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
polaco_zZz is now known as polaco
tomzx_mac has joined #ruby
mark_locklear has joined #ruby
yaw has joined #ruby
<MisutoWolf> Random question: What's the 'easiest' graphic toolkit to get started with? Qt, etc?
Desert_eagle has quit [Read error: Connection reset by peer]
Desert_eagle has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<waxjar> Shoes describes itself as really easy
<MisutoWolf> Hm. I'll look at that, too.
mikecmpbll has joined #ruby
crashx has joined #ruby
krawchyk has joined #ruby
krawchyk has quit [Remote host closed the connection]
breakingthings has joined #ruby
krawchyk has joined #ruby
habanany has joined #ruby
Mo0O has quit [Quit: WeeChat 0.4.1]
ioNull has joined #ruby
burlyscudd has joined #ruby
kmckelvi_ has joined #ruby
kmckelvin has quit [Read error: Connection reset by peer]
kmckelvi_ has quit [Read error: Connection reset by peer]
kmckelvin has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
jkamenik has joined #ruby
jbpros has joined #ruby
xk_id has joined #ruby
muxdemux has quit [Ping timeout: 246 seconds]
jkamenik has quit [Client Quit]
schaerli has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
habanany has quit [Read error: Connection reset by peer]
dash_ has quit [Quit: dash_]
Mon_Ouie has quit [Ping timeout: 246 seconds]
samsonasu has joined #ruby
samsonasu has quit [Client Quit]
muxdemux has joined #ruby
Mon_Ouie has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
kitak_ has quit [Ping timeout: 246 seconds]
t_p has joined #ruby
hogeo has joined #ruby
kitak has joined #ruby
<shevy> misutowolf ruby-gnome
jkamenik has joined #ruby
mlpinit has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
Kar- has joined #ruby
someish has quit [Quit: someish]
DrCode has joined #ruby
dzhulk1 has joined #ruby
nemesit|znc has quit [Max SendQ exceeded]
lurch_ has left #ruby [#ruby]
nemesit|znc has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
maycon_ is now known as maycon
aryaching has joined #ruby
Hanmac has joined #ruby
dzhulk has quit [Ping timeout: 268 seconds]
v0n has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
juarlex_ has quit [Read error: Connection reset by peer]
juarlex has joined #ruby
camilasa_ has joined #ruby
kaldrenon has joined #ruby
camilasan has quit [Read error: No route to host]
mklappstuhl has quit [Remote host closed the connection]
samsonasu has joined #ruby
sjltaylo_ has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has joined #ruby
Stalkr_ has joined #ruby
julian-delphiki has joined #ruby
camilasa_ has quit [Remote host closed the connection]
NinjaPenguin has joined #ruby
muxdemux has quit [Ping timeout: 272 seconds]
bean has quit [Ping timeout: 240 seconds]
bean has joined #ruby
hiyosi_ has quit [Read error: Connection reset by peer]
julian-delphiki has quit [Read error: Connection reset by peer]
jokke has quit [Ping timeout: 246 seconds]
teapop has joined #ruby
ranyip has joined #ruby
kilophoton has joined #ruby
jokke has joined #ruby
shevy has joined #ruby
Mon_Ouie has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby
vpretzel has joined #ruby
jhaals has joined #ruby
dash_ has joined #ruby
movedx_ has joined #ruby
kil0byte has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
xk_id has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
francisfish has joined #ruby
cody-- has joined #ruby
r0bby_ has quit [Ping timeout: 240 seconds]
larissa has joined #ruby
MisutoWolf has quit [Quit: WeeChat 0.4.0]
elux has joined #ruby
iamjarvo has quit [Ping timeout: 268 seconds]
jerius has joined #ruby
maz-dev has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
wsylvest has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
DaniG2k has quit [Ping timeout: 272 seconds]
<shevy> test
<withnale> is there a profiling tool available for ruby?
<withnale> (that doesn't require you to modify code)
xk_id has joined #ruby
kilophoton has quit [Quit: leaving]
Aryasam has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
ferdev has joined #ruby
<heftig> withnale: rbx -Xprofile
<heftig> pretty basic
eightygrit has joined #ruby
<withnale> if you're using rbx of course ;P
<withnale> thanks
angusiguess has joined #ruby
niop has joined #ruby
kazuuu has joined #ruby
LarsSmit has joined #ruby
devoldmx3 has joined #ruby
mansi has joined #ruby
<niop> hi, having a problem calling jruby on a very simple ruby script, but unsolved in #ruby and #java, so trying here for comment. the jruby command is:
mansi has quit [Remote host closed the connection]
<niop> jc@jc-linux ~ $ /home/jc/.rvm/rubies/jruby-1.7.5/bin/jruby -J-cp /usr/local/weka-3-6-10/weka.jar /home/jc/IdeaProjects/JRubyTest/test
mansi has joined #ruby
JohnBat26 has joined #ruby
<workmad3> niop: what's the error you get?
<niop> error relates to loading of the jar: "LoadError: no such file to load -- weka"
frustrum has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
aagdbl has quit [Quit: Leaving.]
jlast has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
<niop> the ruby file consists only of require "java" and require "weka".. the error occuring on the latter.
dzhulk1 has left #ruby [#ruby]
yaw has quit [Ping timeout: 272 seconds]
<niop> maybe has something to do with rvm, or java config.
Xeago has quit [Remote host closed the connection]
geekbri has joined #ruby
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby
sailias has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
h_kon has joined #ruby
ranyip has quit [Remote host closed the connection]
binaryplease has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
h_kon has quit [Remote host closed the connection]
reppard has joined #ruby
reppard has quit [Client Quit]
aetaric has quit [Ping timeout: 245 seconds]
hogeo has quit [Ping timeout: 268 seconds]
crashx has quit [Ping timeout: 245 seconds]
yaw has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
wsylvest has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
camilasan has joined #ruby
burlyscudd has quit [Quit: Leaving.]
T__T has joined #ruby
michael_mbp is now known as zz_michael_mbp
<niop> linux system cannot find javac
<niop> maybe jruby needs javac in order to access the jar?
enebo has joined #ruby
sebson has joined #ruby
bean__ has joined #ruby
theRoUS has joined #ruby
krz has quit [Quit: krz]
Mon_Ouie has joined #ruby
niklasb has joined #ruby
camilasan has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 246 seconds]
camilasan has joined #ruby
<nfk> i forgot and can't seem to find on bing where is %w() and friends documented?
<kaldrenon> Is there a good Ruby library/grem/technique for doing fuzzy/relative numbers? For example, if x == 23456134, I'd like to be able to print "23 million", and so on
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Azulinho_ has joined #ruby
rumours has quit [Ping timeout: 260 seconds]
camilasa_ has joined #ruby
Jabberish has quit [Remote host closed the connection]
camilasan has quit [Read error: No route to host]
jdenen has joined #ruby
sr78ger has quit [Ping timeout: 246 seconds]
Jabberish has joined #ruby
freerobby has joined #ruby
camilasa_ has quit [Remote host closed the connection]
<niop> you'd probably want to round yourself, and then use some code like this http://www.daniweb.com/software-development/python/code/216839/number-to-word-converter-python
camilasan has joined #ruby
<nfk> kaldrenon, if you don't need localisation divide by 1000 until remainder is under 1000 then print out remainder along with the order of magnitude or whatever is the right term
burlyscudd has joined #ruby
<nfk> you will probably also want to round it up or down to integer before printing out
vadeRcUser has joined #ruby
<nfk> or format it in some other way
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azulinho has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
camilasan has quit [Remote host closed the connection]
<nfk> or check if it's under 100 if you would like, say 100 thousand to print as 0.1 million
tkuchiki has quit [Ping timeout: 245 seconds]
camilasan has joined #ruby
Mon_Ouie has joined #ruby
theRoUS has quit [Ping timeout: 272 seconds]
vadeRcUser has quit [Remote host closed the connection]
rumours has joined #ruby
Azulinho_ has quit [Ping timeout: 260 seconds]
<kaldrenon> I want it to be pretty fuzzy (something in the millions will print as N million, something less than 1mil will print as N thousand, etc), but I guess I'll have to hand roll it. Maybe I'll make a gem.
vadeRcUser has joined #ruby
equ1n0x has joined #ruby
<nfk> then be sure to support localisation
<nfk> else it's pointless
<nfk> doing it for one language is beyond trivial
heftig has quit [Ping timeout: 268 seconds]
<nfk> the value is in code that's hard to reproduce because of effort required
ranyip_ has joined #ruby
havenwood has joined #ruby
Kar- has quit [Ping timeout: 272 seconds]
aetaric has joined #ruby
pen has quit [Read error: Connection reset by peer]
pen has joined #ruby
mklappstuhl has joined #ruby
Azulinho_ has joined #ruby
petey has joined #ruby
<movedx_> I've got a module with two classes in it. Is there any reason I can't see the second class when I list the available classes via Module.constants?
Azulinho has quit [Ping timeout: 272 seconds]
theRoUS has joined #ruby
aspiers has quit [Ping timeout: 245 seconds]
wildroman has quit [Remote host closed the connection]
wildroman has joined #ruby
<apeiros> movedx_: no. should work fine.
tagrudev has quit [Read error: Connection reset by peer]
<apeiros> >> module X; class A; end; class B; end; end; X.constants
<eval-in> apeiros => [:A, :B] (https://eval.in/55072)
nextdropping has joined #ruby
beilabs has quit [Ping timeout: 245 seconds]
astrobunny has quit [Ping timeout: 245 seconds]
nfk has quit [Quit: yawn]
<movedx_> Indeed!
beilabs has joined #ruby
Kar- has joined #ruby
<movedx_> Well I am importing it via Bundler. I can only assume I have a stale version of it somewhere that it's being imported from, but I can't see how.
krawchyk_ has joined #ruby
<movedx_> That being said, it's not present in my gemset.
Davey has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
<movedx_> Only locally via a: bundle install --standalone
DonRichie has quit [Quit: Verlassend]
krawchyk_ has joined #ruby
astrobunny has joined #ruby
sevenseacat has joined #ruby
brennanMKE has joined #ruby
wildroman has quit [Ping timeout: 272 seconds]
kevind has joined #ruby
bline79 has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
colonolGron has quit [Ping timeout: 246 seconds]
julweber has quit [Write error: Connection reset by peer]
Kar- has quit [Ping timeout: 260 seconds]
krawchyk has quit [Ping timeout: 260 seconds]
julweber has joined #ruby
VTLob has joined #ruby
DaniG2k has joined #ruby
kitak has joined #ruby
<kaldrenon> nfk, niop: fwiw I found something that does exactly what I want (it's a Rails ActionView helper, but I wanted something for rails, so bam) http://apidock.com/rails/ActionView/Helpers/NumberHelper/number_with_precision
havenwood has quit [Remote host closed the connection]
saimaz_ has joined #ruby
wildroman has joined #ruby
brennanMKE has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
geekbri has quit [Remote host closed the connection]
zoee has quit [Quit: zoee]
geekbri has joined #ruby
elux_ has joined #ruby
R3dy has joined #ruby
lfox has joined #ruby
elux has quit [Read error: Connection reset by peer]
saimaz_ has quit [Remote host closed the connection]
<R3dy> I have a nokogiri XML object that I call like this 'puts host.css('tag')' and the result is this: http://pastie.org/8409352
saimaz_ has joined #ruby
<R3dy> How can I drill down further into the tag element and access specific child nodes such as 'operating-system'
dkamioka has joined #ruby
mrsolo has joined #ruby
<niop> going on a limb here, but although as nfk mentioned you could roll it yourself, though i'd be inclined to rely still on existing code if possible depending on how rough the rounding is i suppose.. another option may be to use SWIG. that could wrap anything in something that's accessible to ruby.
interactionjaxsn has joined #ruby
<waxjar> maybe #css("tag[name=operating-system]") ? idk nokogiri, but i do know some css :P
<R3dy> waxjar: I will try that
<R3dy> hold on
pentameter has joined #ruby
saimaz has quit [Ping timeout: 272 seconds]
plotter has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 246 seconds]
<R3dy> oh snap
<R3dy> that worked
<R3dy> !
<R3dy> awesome
failshell has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
visof has joined #ruby
ffranz has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
heftig has joined #ruby
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
saimaz_ has quit [Ping timeout: 272 seconds]
mephux has quit [Quit: w0ots...]
mephux has joined #ruby
ArchBeOS has quit [Quit: Peace Out, jerks!]
bline79 has joined #ruby
ArchBeOS has joined #ruby
MrThePlague has joined #ruby
MrThePlague has joined #ruby
MrThePlague has quit [Changing host]
lfox has quit [Ping timeout: 245 seconds]
lfox has joined #ruby
havenwood has quit [Remote host closed the connection]
divi has joined #ruby
petey has quit [Remote host closed the connection]
petey has joined #ruby
<niop> kaldrenon: here's a c++ version you could wrap using swig.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
francisfish has quit [Remote host closed the connection]
cha1tanya has quit [Ping timeout: 272 seconds]
lkba has quit [Ping timeout: 272 seconds]
francisfish has joined #ruby
spider-mario has joined #ruby
petey has quit [Ping timeout: 260 seconds]
francisfish has quit [Ping timeout: 246 seconds]
T__T has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
francisfish has joined #ruby
momomomomo has joined #ruby
madb055 has joined #ruby
yaw has quit [Ping timeout: 272 seconds]
MrThePlague has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
tziOm has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
jcromart_ has joined #ruby
cody-- has quit [Quit: derp]
iamjarvo has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
mary5030 has joined #ruby
decoponio has joined #ruby
mary5030 has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
mary5030 has joined #ruby
v0n has joined #ruby
vadeRcUser has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 246 seconds]
petey has joined #ruby
ewnd9 has joined #ruby
vadeRcUser has joined #ruby
havenwood has joined #ruby
vadeRcUser has quit [Remote host closed the connection]
vadeRcUser has joined #ruby
alexju has joined #ruby
zz_michael_mbp is now known as michael_mbp
it_tard has joined #ruby
it_tard has joined #ruby
it_tard has quit [Changing host]
bartj3 has quit [Ping timeout: 260 seconds]
mmitchell has joined #ruby
larissa has quit [Quit: Leaving]
vadeRcUser has quit [Remote host closed the connection]
noodletraveler has joined #ruby
ewnd9 has quit [Remote host closed the connection]
noodletraveler has left #ruby [#ruby]
tobago has quit [Remote host closed the connection]
boxmein has joined #ruby
ewnd9 has joined #ruby
mikecmpbll has joined #ruby
wildirishtime has joined #ruby
bean__ is now known as julian-delphiki
niklasb has quit [Ping timeout: 272 seconds]
jbw has quit [Read error: Connection reset by peer]
sr78ger has joined #ruby
coderhut has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
iamjarvo has joined #ruby
mengu has joined #ruby
decoponio has quit [Quit: My PC will restart]
Flashmasterson has joined #ruby
tkuchiki has joined #ruby
<scottstamp> LOL. The flag to enable goto is SUPPORT_JOKE? That's awesome.
elux_ is now known as elux
threesome has quit [Ping timeout: 272 seconds]
johnnyfuchs has joined #ruby
<Flashmasterson> i tried creating this program https://gist.github.com/anonymous/7026445 but keep getting this error: c2fout.rb:6:in `<main>': undefined local variable or method `fahrenheit' for main:Object (NameError)
Jdubs has joined #ruby
ranyip_ has quit [Remote host closed the connection]
iamjarvo_ has joined #ruby
<scottstamp> Works over here Flashmasterson, is that the entire c2fout.rb file?
iamjarvo has quit [Ping timeout: 272 seconds]
rippa has joined #ruby
<qubit> I'm having a heck of a time trying to add a C extension to ruby. I'm calling a C function that blocks (doing a `poll()`), the problem I'm having is that upon receiving a signal, the call restarts, so I have to kill -9 the process to stop it. It looks like ruby is setting some signal handlers on start (`rt_sigaction`), but I can't find where these are and how to get around this issue. Ideas?
baordog_ has joined #ruby
<Flashmasterson> scottstamp: yeah, but i should say that the instructions for it in TWGR don't specify a result… not one that i'm seeing anyway
<scottstamp> TWGR?
Jdubs has quit [Ping timeout: 245 seconds]
ahawkins has quit [Ping timeout: 245 seconds]
niop has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
clov3r has joined #ruby
decoponio has joined #ruby
niklasb has joined #ruby
nober has joined #ruby
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby
guiguidoc has quit [Remote host closed the connection]
brennanMKE has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<Flashmasterson> yeah the well-grounded rubyist
TheMoonMaster has quit [Excess Flood]
<Flashmasterson> by david black
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
vadeRcUser has joined #ruby
geekbri_ has joined #ruby
kaspergrubbe has quit [Ping timeout: 260 seconds]
TheMoonMaster has joined #ruby
codezomb has joined #ruby
<banisterfiend> scottstamp interestingly, you can kind of write your own version of goto using continuations ;)
<banisterfiend> though ti's slightly less general than a normal goto, iirc
nextdropping has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
wildirishtime has quit [Quit: Page closed]
<scottstamp> A simple while would actually suffice for me, I just found it funny that that was the flag.
mathnode has joined #ruby
geekbri has quit [Ping timeout: 246 seconds]
<mathnode> Hi all, is there anything in std-lib or core for 1.8.7, that can do something like perl's Term modules. Like readmode, readkey etc. For terminal "gui's".
capnmalarkey has joined #ruby
francisfish has quit [Remote host closed the connection]
rubyracer has quit [Quit: Page closed]
francisfish has joined #ruby
<vadeRcUser> .
tesuji has quit [Ping timeout: 268 seconds]
digital-ghost has joined #ruby
vadeRcUser has quit [Remote host closed the connection]
sepp2k has quit [Quit: Konversation terminated!]
julian-delphiki has quit [Quit: Textual IRC Client: www.textualapp.com]
kitak has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 245 seconds]
capnmalarkey has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
bean__ has joined #ruby
wildroman has quit [Remote host closed the connection]
astrobunny has quit [Ping timeout: 245 seconds]
petey_ has joined #ruby
saimaz has joined #ruby
pixelgremlins_ba is now known as pixelgremlins
kitak has quit [Ping timeout: 246 seconds]
jbpros has quit [Quit: jbpros]
starfox21 has quit [Quit: starfox21]
petey has quit [Ping timeout: 245 seconds]
predator117 has quit [Ping timeout: 272 seconds]
zz_tsykoduk is now known as tsykoduk
jrhe has joined #ruby
amrit_ has quit [Quit: Leaving]
svector has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
petey_ has quit [Remote host closed the connection]
astrobunny has joined #ruby
saimaz has quit [Ping timeout: 272 seconds]
petey has joined #ruby
DocDeath has joined #ruby
<DocDeath> is ruby at the same parrale iwth opython
<DocDeath> when it comes to writting scripts for *nnix and window system
<DocDeath> or making quick programms for windows or
<DocDeath> *nix
<DocDeath> or ruby is usually know for rails ?
<havenwood> DocDeath: General purpose programming lang.
<DocDeath> yes
mrsolo has joined #ruby
<DocDeath> as a general purpose programming language ..python vs ruby
scottstamp has quit [Ping timeout: 272 seconds]
<workmad3> DocDeath: depends on what you want to do
<havenwood> Ruby. Because this is #ruby.
<havenwood> And Ruby.
<DocDeath> if i was sitting in a church and someone asked me ...do you beleve in christ or GOd .. i would choose the later
<workmad3> DocDeath: I'd probably pick python if I had to do stuff like analyse scientific data, because of numpy and scipy
<DocDeath> but i want to know from you programmers
burlyscudd has quit [Quit: Leaving.]
<workmad3> DocDeath: otherwise, I know ruby better so I'll generally go with that
<DocDeath> who user uby as a general programming lanaguge and not just use it for rails or web programming alone
predator117 has joined #ruby
<DocDeath> right correct awsner
<DocDeath> thanks
<workmad3> DocDeath: the problem is that if you go into #python, you'll get the opposite answer
<DocDeath> i will learn ruby eventually ..if i was going to imrpove my website
<havenwood> DocDeath: I prefer Ruby.
<DocDeath> no in python they agreeed ruby on rails i better off
siwica has quit [Quit: siwica]
niop has joined #ruby
<workmad3> (although they'll probably wrap it up in some fake rationalisation bs about python)
<DocDeath> but for general programmming they said ptyhin is better
<DocDeath> there main idea was that python was easier t program ina nd had more general purpose liberary than ruby
<workmad3> DocDeath: did they try to shovel some 'objective' reasons, or did they admit that it was personal preference? :)
<DocDeath> but that ruby on rails was far superior and ptyhon hasnt reached that level yet
<DocDeath> no they said that django or whatever..wasnt as good as ruby on rails
Spami has joined #ruby
<workmad3> DocDeath: I meant for why they reckon python over ruby for general programming
<havenwood> DocDeath: I disagree that Python is better for general programming. Python has a few nice libraries that Ruby doesn't but vice versa is true as well.
<workmad3> DocDeath: and I see they tried to fob off with 'easier to program' and 'more library support' :)
<DocDeath> right
Spami has quit [Max SendQ exceeded]
<DocDeath> cocrrect...but okay ..sinc ei did epxlaint ot hem..that my itnerest is malware analysing and suing tools like ollydbg and other such stuff..they all use python scripting
<havenwood> DocDeath: Did they start droling on about zen? Or perhaps did they speak in Slytherin?
<DocDeath> so in a sense they were correct to an extent
<DocDeath> nah they dint lo
sr78ger has quit [Ping timeout: 268 seconds]
aganov has quit [Remote host closed the connection]
scottstamp has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
<workmad3> DocDeath: one of my main philosophical objections to python is http://www.python.org/dev/peps/pep-0020/ :)
<havenwood> DocDeath: Metasploit and Ronin
LarsSmit has quit [Quit: Leaving.]
hakunin has joined #ruby
<workmad3> havenwood: I think you meant 'did they speak in parseltongue'
<workmad3> havenwood: 'slytherin' isn't a language ;)
<havenwood> DocDeath: Ruby is more widely used for pen testing.
<sevenseacat> i was thinking that but wasnt going to reveal my inner nerd
<havenwood> workmad3: oops!! >.>
sr78ger has joined #ruby
<havenwood> hahaha
francisfish has joined #ruby
jbpros has joined #ruby
<workmad3> sevenseacat: I have no inner nerd... only an outer one
<workmad3> DocDeath: ruby is also becoming more widely used than python for sysadmin tools (see chef and puppet... not sure there is a python equivalent), which is an area that previously python was pegged for :)
julweber has quit [Remote host closed the connection]
samsonasu has quit [Quit: samsonasu]
<havenwood> DocDeath: I actually think Ruby's pen testing libraries are a good bit more popular than Python's offerings, but whatever. It is an aesthetic choice, pick your poison.
ravster has joined #ruby
julweber has joined #ruby
JeanMertz has quit [Ping timeout: 245 seconds]
<workmad3> DocDeath: the question is - do you know either ruby or python already?
samsonasu has joined #ruby
alexju_ has joined #ruby
wyhaines has joined #ruby
bio is now known as Biohazard
IceyEC has joined #ruby
<havenwood> DocDeath: Do you like foxes and chunky bacon?
<havenwood> If so, Ruby.
<DaniG2k> love bacon
tabolario has joined #ruby
bean__ has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
<havenwood> This I don't care for: There should be one - and preferably only one - obvious way to do it.
jbpros has quit [Quit: jbpros]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean__ has joined #ruby
theoretick has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
<havenwood> Also: In the face of ambiguity, refuse the temptation to guess.
geggam_ has joined #ruby
<DaniG2k> i hope they make ruby more awesome
<DaniG2k> taht was random
<DaniG2k> i'm so bored
ssvo has quit [Ping timeout: 240 seconds]
<DaniG2k> someone help
<havenwood> TMWTDI
codeFiend has quit [Quit: codeFiend]
AxonetBE has quit [Quit: AxonetBE]
alexju has quit [Ping timeout: 268 seconds]
<DaniG2k> STD
Es0teric has joined #ruby
theoretick has quit [Client Quit]
bean__ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: Computer has gone to sleep.]
theoretick has joined #ruby
alexju_ has quit [Ping timeout: 258 seconds]
bean__ has joined #ruby
<havenwood> DaniG2k: 2.1 preview is out, go preview the awesome.
superbos has joined #ruby
<workmad3> havenwood: 'explicit is better than implicit' <-- I don't really agree with that one either :)
<DaniG2k> havenwood: link to changelog please
DanKnox_away is now known as DanKnox
<workmad3> DaniG2k: code something awesome!
<workmad3> DaniG2k: or learn erlang
<DaniG2k> workmad3: I already am making a rails app :D its gonna be amazing
<DaniG2k> FUCK erland
<workmad3> you don't fancy ensuring employment in the area of keeping telecoms switchs running for decades at a time?
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
mengu has quit [Ping timeout: 246 seconds]
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
threesome has joined #ruby
t_p has quit [Quit: Computer has gone to sleep.]
astrobunny has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
astrobunny has joined #ruby
Flashmasterson has quit [Quit: Leaving.]
nitish has joined #ruby
jcromart_ has joined #ruby
mansi has quit [Remote host closed the connection]
kmckelvin has quit [Remote host closed the connection]
kmckelvin has joined #ruby
wallerdev has joined #ruby
pyrac has quit [Ping timeout: 245 seconds]
lewis has joined #ruby
dash_ has quit [Quit: dash_]
rjhunter has quit [Remote host closed the connection]
jbpros has joined #ruby
freakcult has quit [Ping timeout: 272 seconds]
jbpros has quit [Client Quit]
alekst has joined #ruby
pen has quit [Remote host closed the connection]
jbpros has joined #ruby
kmckelvin has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
b00stfr3ak has joined #ruby
mansi has joined #ruby
nitish has quit [Remote host closed the connection]
kevinykchan has joined #ruby
lewis has quit [Ping timeout: 272 seconds]
jbpros_ has joined #ruby
theoretick_away has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
jbpros_ is now known as jbpros
heftig has quit [Quit: Quitting]
theoretick has quit [Ping timeout: 260 seconds]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinykchan has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
freakcult has joined #ruby
Kar- has joined #ruby
kil0byte has quit [Remote host closed the connection]
user258467 has quit [Quit: Quitte]
Flashmasterson has joined #ruby
ravster has quit [Quit: Leaving.]
sevenseacat has quit [Quit: Leaving.]
kevinykchan has joined #ruby
Flashmasterson has quit [Client Quit]
Mekkis has quit [Quit: ZNC - http://znc.in]
ulver has quit [Ping timeout: 265 seconds]
queequeg1 has quit [Ping timeout: 248 seconds]
banisterfiend has joined #ruby
francisfish has quit [Remote host closed the connection]
Coolhand has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Kar- has quit [Ping timeout: 245 seconds]
Coolhand has joined #ruby
francisfish has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
chrisja has joined #ruby
<DocDeath> ysi agree that ruby is used by pentesters
<DocDeath> there is a book dedicated to using ruby for pentesting
nwertman_ has joined #ruby
francisfish has quit [Read error: No route to host]
francisfish has joined #ruby
altivec has joined #ruby
alup has quit [Quit: Leaving]
Mekkis has joined #ruby
pel_daniel has joined #ruby
ulver has joined #ruby
spider-mario has joined #ruby
schaerli has joined #ruby
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
iamjarvo_ has quit [Ping timeout: 272 seconds]
schaerli has quit [Read error: No route to host]
schaerli has joined #ruby
nari has quit [Ping timeout: 272 seconds]
bricker`1A has joined #ruby
codezomb has quit [Quit: Linkinus - http://linkinus.com]
Mekkis has quit [Ping timeout: 260 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
lewis has joined #ruby
bricker`LA has quit [Ping timeout: 272 seconds]
ssvo has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
SilverKey has joined #ruby
jhaals has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Mekkis has joined #ruby
tkuchiki has joined #ruby
endash has joined #ruby
jhaals has quit [Client Quit]
dagobah has quit [Remote host closed the connection]
Mekkis has quit [Max SendQ exceeded]
shiin has joined #ruby
zastern has joined #ruby
<krz> how can i remove 'foo' from a one dimensional array?
<krz> another way besided using reject?
<workmad3> krz: what's wrong with reject?
<krz> nothing
nari has joined #ruby
<krz> wondering if there was a more efficient way
<workmad3> krz: then why not use it, seeing as it does what you want? :P
<krz> perhaps one that doesnt go through an iteration
<workmad3> krz: err... how would you expect that to happen?
jrhe has quit [Quit: jrhe]
<krz> magic
<krz> sometimes magic happens
<workmad3> krz: that's pretty much what you'd need :P
<workmad3> krz: no, magic never happens
<krz> darn
<workmad3> krz: just things that you don't currently understand :P
<workmad3> krz: you can do ary.delete(value) btw
niklasb has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
<workmad3> krz: it modifies in-place though
<workmad3> >> a = ["a", "b", "a"].delete("a"); puts a
<eval-in> workmad3 => a ... (https://eval.in/55107)
<workmad3> >> a = ["a", "b", "a"]; a.delete("a"); puts a
<eval-in> workmad3 => b ... (https://eval.in/55108)
<DocDeath> yea imeant the opiats
<workmad3> >> a = ["a", "b", "a"]; a.delete("a"); p a
<eval-in> workmad3 => ["b"] ... (https://eval.in/55109)
geekbri_ has quit [Remote host closed the connection]
<workmad3> bah :) get there eventually
tkuchiki has quit [Ping timeout: 272 seconds]
tjad has quit [Ping timeout: 260 seconds]
benweint has joined #ruby
jhaals has joined #ruby
<krz> workmad3: whats wrong with reject?
<workmad3> krz: nothing
<workmad3> krz: you were the one who wanted a way that didn't use it though
<krz> :-P
nari has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
<krz> i was being sarcastic :)
pragmatism has joined #ruby
<krz> that was a rhetoric question!
gmas has joined #ruby
DaniG2k has quit [Quit: leaving]
einarj has quit [Remote host closed the connection]
kitak has joined #ruby
boxmein has joined #ruby
drumsrgr8forn8 has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
heidi has joined #ruby
TMM has quit [Quit: Ex-Chat]
alexju has joined #ruby
jbw has joined #ruby
dash_ has joined #ruby
zastern_ has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
ahawkins has joined #ruby
DaZ_ has joined #ruby
ravster has joined #ruby
DarthGandalf has joined #ruby
niop has quit [Remote host closed the connection]
DaZ has quit [Ping timeout: 240 seconds]
DaZ_ is now known as DaZ
zastern has quit [Ping timeout: 268 seconds]
niklasb has joined #ruby
browndawg has joined #ruby
browndawg has left #ruby [#ruby]
banisterfiend has quit [Quit: Computer has gone to sleep.]
JeanMertz has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
mr_red is now known as AFK|mr_red
gmas has quit [Ping timeout: 272 seconds]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madb055 has quit [Read error: No route to host]
Mekkis has joined #ruby
madb055 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
movedx_ has quit [Ping timeout: 250 seconds]
mahata has joined #ruby
ahawkins has quit [Ping timeout: 272 seconds]
lfox has quit [Quit: ZZZzzz…]
apeiros has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
ahawkins has joined #ruby
Mekkis has quit [Read error: Connection reset by peer]
zeade has joined #ruby
visof has quit [Remote host closed the connection]
pyrac has joined #ruby
aedorn has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
Mekkis has joined #ruby
aedorn has joined #ruby
vlad_starkov has joined #ruby
codeFiend has joined #ruby
zastern_ has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
zastern has joined #ruby
elaptics is now known as elaptics`away
__username__ has joined #ruby
Mekkis has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
whunt has joined #ruby
schaerli has joined #ruby
havenwood has joined #ruby
siwica has joined #ruby
tj` has quit [Read error: Connection reset by peer]
tj` has joined #ruby
DonRichie has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
siwica has quit [Client Quit]
__username__ has quit [Client Quit]
barratt has quit [Ping timeout: 246 seconds]
theoretick_away is now known as theoretick
nomenkun has quit [Ping timeout: 268 seconds]
tjbarber has joined #ruby
endash has quit [Quit: endash]
havenwood has quit [Ping timeout: 246 seconds]
w3pm has quit [Ping timeout: 245 seconds]
schaerli has quit [Ping timeout: 272 seconds]
w3pm has joined #ruby
ShellFu has joined #ruby
workmad3 is now known as tubbot
Mekkis has joined #ruby
threesome has quit [Ping timeout: 272 seconds]
tubbot is now known as workmad3
camilasan has quit [Remote host closed the connection]
pwh has quit []
g3orge has joined #ruby
flayer has joined #ruby
claymore has quit [Ping timeout: 272 seconds]
zarubin has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
rburton- has joined #ruby
<g3orge> best way to init an Array (of say size 4) to zeros ?? the best thing I can come up with is: a = Array.new(4) { 0 }
altivec has quit [Quit: Textual IRC Client: www.textualapp.com]
<Morrolan> >> [0] * 4
<eval-in> Morrolan => [0, 0, 0, 0] (https://eval.in/55110)
<Morrolan> Might be slightly clearer.
<g3orge> cool
DaZ has quit [Ping timeout: 260 seconds]
m8 has joined #ruby
jb41 has quit [Ping timeout: 260 seconds]
shadoi has joined #ruby
Mekkis has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
shadoi1 has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
lsmola has quit [Ping timeout: 240 seconds]
scottstamp has quit [Ping timeout: 246 seconds]
Mekkis has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
timonv has joined #ruby
aspires has joined #ruby
heidi has quit [Quit: Leaving.]
maz-dev has joined #ruby
maz-dev has quit [Remote host closed the connection]
maz-dev has joined #ruby
havenwood has joined #ruby
mklappst_ has joined #ruby
heftig has joined #ruby
pwh has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
DaZ has joined #ruby
brianpWins has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
shaunbak_ has quit [Remote host closed the connection]
dangerousdave has joined #ruby
kevind_ has joined #ruby
shaunbaker has joined #ruby
tylersmith has quit [Remote host closed the connection]
snuffeluffegus has joined #ruby
maz-dev has quit [Remote host closed the connection]
snuffeluffegus has quit [Read error: Connection reset by peer]
snuffeluffegus has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Voodoofish430 has joined #ruby
Mekkis has quit [Ping timeout: 260 seconds]
zastern_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
kevind has quit [Ping timeout: 272 seconds]
kevind_ is now known as kevind
xk_id has quit [Quit:
zastern_ has quit [Remote host closed the connection]
shaunbaker has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
soheil has joined #ruby
bricker`1A is now known as bricker`LA
pyrac has quit [Quit: pyrac]
qhartman has joined #ruby
mengu has joined #ruby
Azulinho_ has quit [Ping timeout: 268 seconds]
BraddPitt has quit [Quit: Leaving]
BraddPitt has joined #ruby
zastern has quit [Ping timeout: 272 seconds]
spider-mario has quit [Quit: No Ping reply in 180 seconds.]
khushildep has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
wald0 has joined #ruby
markoa has quit [Remote host closed the connection]
<wald0> im learning ruby, a friend told me the other day that he dont like ruby because "its not scalable", what he meant? I was confused so i think that can be done a lot with ruby
Stygia has quit [Quit: Leaving]
soheil has quit [Ping timeout: 272 seconds]
geekbri has joined #ruby
siwica has joined #ruby
maz-dev has joined #ruby
obs has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Connection reset by peer]
<terrellt> wald0: It means github can only handle like three people at a time.
scottstamp has joined #ruby
bean__ has joined #ruby
<wald0> terrellt: you meant that with ruby you cannot do "powerful algorithms" ?
<ShellFu> wald0, language battles are like chevy vs ford. A language wont make good code. A good programmer makes good code. Not IDEs not fancy widgets. Just learn and keep it up. Do it for you, not your friend
lkba has joined #ruby
<terrellt> wald0: (It's a ridiculous argument born of some rough history - ruby as a language has proven its ability to handle large loads, and it's fun.)
<ShellFu> lol
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ShellFu> sorry dirty mind
<ShellFu> :)
<ccooke> Wel...
<ccooke> Ruby 1.8 was, in its defalt implementation, quite slow compared to the other scripting languages
<wald0> ShellFu: sure, i was just asking an opinion and i was confused by his answer, so im learning ruby for make user's applications so i think that is very powerful
<wald0> just trying to make sure that im doing the good choice :) in any case, i dont see other languages better for my needs
DaZ has quit [Ping timeout: 263 seconds]
muxdemux has joined #ruby
<Morrolan> And Ruby 2.0 is still slow, when compared to well-written C. But in many cases you won't need that last bit of performance. :)
lfox has joined #ruby
<ccooke> and the global interpreter lock in ruby is well known and talked about - more so, perhaps, than the default python interpreter's GIL.
<Morrolan> (Not to mention that you're more productive with a high level language)
mklappst_ has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
<terrellt> ccooke: Yeah, but if you hit a point where the GIL is actually slowing you down, there are easy and well-practiced ways around it (evented code/JRuby/Rubinius)
<ccooke> I think one real thing here is that Ruby makes it really easy and natural to write threaded code, but threaded code on an interpreter with a global lock will never give you the performance you want.
nwertman has quit [Ping timeout: 260 seconds]
<ccooke> terrellt: yes, quite
<havenwood> FORK ALL THE THINGS \o/
momomomomo has quit [Quit: momomomomo]
<ShellFu> speed on scripting languages in my opinion is a pointless argument. as Morrolan eluded to. Compiled languages will always win. Dont focus on benchmarks of this vs that. If you need raw speed learn C or assembly :D
<ccooke> I think it's an artifact of the language and idiom.
troessner has quit [Quit: Leaving]
<wald0> Morrolan: that's one of my 1º prior choices of why i picked ruby for my next apps
<ccooke> It's *easier* to write threaded code in Ruby than it is in most languages. So more code is threaded.
* Morrolan pokes havenwood with a fork
<ccooke> and so people notice the GIL more
<Morrolan> wald0: :)
<ccooke> It's an issue that's going away, anyway.
<Hanmac> Morrolan: i like C++ bindings … then you have nearly the speed from C combined with the beauty of ruby
<ccooke> Also, I need to rest Rubinius 2.0 properly :-)
starfox21 has joined #ruby
maz-dev has quit [Remote host closed the connection]
<terrellt> I tried to run my Rails app on it - rbenv/bundler/rbx don't play nice at the moment.
<terrellt> So that's on the backburner.
dhruvasagar has joined #ruby
ferdev has quit [Quit: ferdev]
<wald0> hanmac: ffi ?
<ccooke> (... since learning Ruby and getting used to it, I use threads far more often in other languages. Also, I hate the perl 5.8 threading interface ;-)
nober has left #ruby [#ruby]
iamjarvo has joined #ruby
peterhu has joined #ruby
<Hanmac> wald0: i dont think FFI works nice when you have C++ libs … specialy when you want to "tame" the GC ;P
maz-dev has joined #ruby
Vivekananda_ has joined #ruby
DaZ has joined #ruby
Vivekananda_ is now known as vivekananda
<wald0> hanmac: so what you meant by using C++ bindings in ruby? i only know "ffi", which i want to use for a C lib (not C++)
mark_locklear has quit [Ping timeout: 272 seconds]
Jdubs has joined #ruby
vivekananda is now known as Vivekananda_
Jdubs_ has joined #ruby
obs has joined #ruby
twoism has joined #ruby
rahulkmr has joined #ruby
Nickwiz has joined #ruby
twoism has quit [Remote host closed the connection]
kitak has joined #ruby
twoism has joined #ruby
punkrawkR has joined #ruby
samuel02 has joined #ruby
<Hanmac> wald0: i write my bindings is C++ so i can also use template functions … and i bind C++ libs like wxWidgets or SFML not C libs ..
<Mon_Ouie> wald0: Ruby provides an API (in the form of a C library) to create extensions in C
timonv has quit [Remote host closed the connection]
maz-dev has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 272 seconds]
Jdubs has quit [Ping timeout: 272 seconds]
Ripp__ has joined #ruby
rezzack has joined #ruby
mengu__ has joined #ruby
Azulinho_ has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<Hanmac> wald0: the only thing is thar you need C-like functions to bind to ruby, so you cant use your C++ methods directly … but C functions in C++ namespaces works … like for sample like this "VALUE RubySFML::Color::setRed(VALUE self,VALUE red)"
xk_id has joined #ruby
mengu has quit [Ping timeout: 245 seconds]
<wald0> hanmac: unfortunately hte libs that i want to use are in C, not C++
schaerli has joined #ruby
<Nickwiz> When I do a `rails new project`, and do a `bundle` with the default Gemfile there is a version conflict for rails and coffee-rails on railties. The first require version = 4.0.0 and the latter version 4.0.1.rc1 of railties. How do I find which coffee version to use ?
<wald0> Mon_Ouie: what you mean with extensions in C?
<Nickwiz> gem list railties gives: railties (4.0.1.rc1, 4.0.0, 3.1.3)
<Nickwiz> coffee gives: coffee-rails (4.0.0, 3.1.1)
kitak has quit [Remote host closed the connection]
saarinen has joined #ruby
snuffeluffegus has quit [Remote host closed the connection]
<Nickwiz> rails give: rails (4.0.0, 3.1.3)
<Hanmac> Nickwiz: #rubyonrails
kitak has joined #ruby
zcreative has joined #ruby
<Nickwiz> hanmac: Thanks.
burlyscudd has joined #ruby
lfox has left #ruby [#ruby]
lfox has joined #ruby
jrhe has joined #ruby
<Mon_Ouie> wald0: Writing a C program that defines classes that can be used in Ruby
codeFiend has quit [Quit: codeFiend]
tatsuya_o has quit [Ping timeout: 245 seconds]
soheil has joined #ruby
JohnBat26 has joined #ruby
ewnd9 has quit [Ping timeout: 245 seconds]
emmanuelux has joined #ruby
francisfish has quit [Remote host closed the connection]
RichardBaker has joined #ruby
muxdemux has quit [Read error: Connection reset by peer]
petey has quit [Remote host closed the connection]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
petey has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
thomas342 has joined #ruby
<thomas342> hi
<thomas342> is there something like instance_variable_set for local variables?
Vivekananda__ has joined #ruby
<apeiros> thomas342: no
petey has quit [Ping timeout: 272 seconds]
<apeiros> don't abuse the variable system as a hash. use a hash instead.
Vivekananda__ has quit [Client Quit]
<thomas342> i know this isnt beautiful style, im just experimenting
brennanMKE has quit [Remote host closed the connection]
<thomas342> i want an object to know its variable name. is there a way?
<apeiros> an object doesn't have a variable name.
brennanMKE has joined #ruby
claymore has joined #ruby
<apeiros> a = b = c = "hello" # what name is it?
astrobunny has quit [Ping timeout: 245 seconds]
muxdemux has joined #ruby
<thomas342> yes i know that an object does not have a variable name
<apeiros> then why do you wish to do what you know can't be?
ryanRT has joined #ruby
<Hanmac> thomas342: an object only knows whats inside the object itself … like a house only knows its own rooms, not its address on the street
blaxter has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
muxdemux has quit [Client Quit]
<thomas342> i know what an object is. im only new to ruby and i thought there might be a way
brennanMKE has quit [Ping timeout: 246 seconds]
<thomas342> like searching all variable names and checking for equality with self or something
Vivekananda_ has quit [Quit: Leaving]
astrobunny has joined #ruby
<thomas342> i was surprised by the possibilities of ruby
Vivekananda_ has joined #ruby
<shevy> thomas342 the problem is there can be many variables in an object
<Hanmac> and what if its in multible variables so if it have more than one name?
<Mon_Ouie> hanmac: You live in a sentient house?
divi__ has joined #ruby
<Morrolan> Do want.
<thomas342> yes, then i would be pleased having all that variable names
Vivekananda_ has quit [Client Quit]
Vivekananda_ has joined #ruby
<shevy> thomas342 local variables are a bit throwaway-candidates in ruby, the only way to have something persist is by using methods or @ivars (and of course $variables, but nobody likes them, and CONSTANTS could also be used)
<shevy> I was referring to this before: "<thomas342> i want an object to know its variable name. is there a way?"
<shevy> it's what @ivars are intended for
<shevy> you can set them, then remove them if you dont like them, so they will behave like local vars
mark_locklear has joined #ruby
punkrawkR has quit [Ping timeout: 245 seconds]
<shevy> remove_instance_variable(:@foo)
beilabs has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
klaut has quit [Remote host closed the connection]
c0rn has joined #ruby
beilabs has joined #ruby
rdark has quit [Quit: leaving]
mklappstuhl has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
<mwlang> what was ruby's string encoding during 1.8.7 days?
proxie has quit []
<havenwood> 187>> ''.encoding
<havenwood> 18>> ''.encoding
<eval-in> havenwood => undefined method `encoding' for "":String (NoMethodError) ... (https://eval.in/55131)
<havenwood> heh
<havenwood> 1.8 is before my day, didn't realize no #encoding.
<ShellFu> isnt it capital E in 1.8.7?
zastern has joined #ruby
<apeiros> 1.8 would be the same as 1.9+ with everything set to binary
<havenwood> <3 2.0
<Hanmac> some things are different too like
<Hanmac> >> ?a
<eval-in> Hanmac => "a" (https://eval.in/55132)
<Hanmac> 18>> ?a
<eval-in> Hanmac => 97 (https://eval.in/55133)
zastern has quit [Read error: Connection reset by peer]
snuffeluffegus has joined #ruby
mgorbach has joined #ruby
<mwlang> havenwood: already tried that
<havenwood> mwlang: iconv and all that junk, don't use 1.8 - long live 2.0!
zastern has joined #ruby
<mwlang> I'm not, but I'm porting a 1.8 gem over to 2.0
<havenwood> oh, nice
decoponio has quit [Quit: Leaving...]
<mwlang> and I am trying to determine best approximation…I'm guessing ISO-8859-1 is the 1.8's encoding.
<apeiros> mwlang: no
<havenwood> welp, did my first project euler in Potion: https://gist.github.com/havenwood/7029390
ferdev has joined #ruby
<havenwood> now to implement Ruby on the Potion VM... >.>
<apeiros> as already said: 1.8 had no encoding. therefore to ruby 1.8, all was the same as 1.9 would be binary.
muxdemux has joined #ruby
<mwlang> ah, so basically, it didn't have multibyte support?
<Morrolan> havenwood: Looks like Python, just that they adopted the horrible C-style syntax for conditonals. :P
<mwlang> unless you went the whole Iconv route?
<apeiros> mwlang: define multibyte support
nwertman has joined #ruby
fgo has joined #ruby
<havenwood> Morrolan: Not sure if it is idiomatic, but hard to say what idiomatic Potion is i think :P
snuffeluffegus has quit [Client Quit]
<apeiros> ruby had no concept of characters beyond ascii. that's what encodings are about.
<ShellFu> sadly im still on 1.8.7 in my AIX environment. Couldnt get 1.9.3 compiled properly :( Ill have to address that at a later date, but at least im more recent on linux heh
<apeiros> they map bytes or byte sequences to characters.
ExxKA has joined #ruby
DanKnox is now known as DanKnox_away
<mwlang> apeiros: you answered my question there. makes sense that way. thanks.
xibalba has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
mengu__ has quit [Read error: Connection reset by peer]
fgo has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
nignaztic has quit [Quit: Leaving]
nazty has joined #ruby
kirun has joined #ruby
_aeris_ has joined #ruby
sayan has joined #ruby
<_aeris_> ohai every body !
tylersmith has joined #ruby
<_aeris_> is there any good gui library for ruby ?
<_aeris_> qtbindings seems deprecated, wxruby just dead, etc…
Zolo has joined #ruby
<_aeris_> and seems nothing for ruby 2.0.0, only 1.9.3 officially supported :(
<Morrolan> HTML & CSS? :)
Spami has quit [Read error: Connection timed out]
schaerli has quit [Remote host closed the connection]
<_aeris_> Morrolan > say this to my customer ><
<aedorn> qtbindings still works if you're using Qt < 5.0
Spami has joined #ruby
DanKnox_away is now known as DanKnox
<aedorn> and Ruby 1.9
<_aeris_> the last « requirement » they ask to me to reject rails is « there is no possible / simple long running cross page transaction » >>>><<<<
<Morrolan> Heh, I see.
marcdel has joined #ruby
<Morrolan> hanmac is working on bindings for wxWidgets, but I'm unsure how far those are.
mengu has quit [Ping timeout: 272 seconds]
<aedorn> hanmac made rwx: https://github.com/Hanmac/rwx ..another wxWidgets base binding
<_aeris_> usable, not usable ?
<_aeris_> stable ?
<_aeris_> or just poc ? :D
<Morrolan> He's around, just wait for his opinion. :)
<Morrolan> Oh, definitely more than POC.
<Morrolan> Not sure how complete they are, though.
<aedorn> No idea. I use qtbindings still, but moving to QML with a simple viewer.
<_aeris_> qml is qt 5.0, no ?
rburton- has quit [Quit: Leaving...]
<aedorn> It's in 4.8.x as well, but more robust in 5.1+
pushpak has joined #ruby
<aedorn> QtWidget is still available in 5.x, but it's pretty safe to assume that support for it will be deprecated in the relative future (maybe 6.0)
endash has joined #ruby
brennanMKE has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenn has joined #ruby
mgorbach has joined #ruby
<lewellyn> i don't expect qml will replace "raw" qt for quite some time, if ever.
ehc has joined #ruby
<shevy> I'd wish we would get modern, working kde-bindings in ruby :(
ranyip has joined #ruby
<Hanmac> _aeris_: its usable, but not stable … still in production, but not finish yet ( and currently in hibernate)
sayan has quit [Read error: Connection reset by peer]
<shevy> hanmac needs to add documentation
<aedorn> There's just not a big enough demand for UI applications in Ruby.. just some edge cases here and there
Mars` has joined #ruby
<_aeris_> aedorn > i have a very very big potential project in ruby with gui at this moment with my customer
<lewellyn> shevy: alas, the qt stuff i'm working on won't likely help with your kde wish.
mgorbach has quit [Read error: Connection reset by peer]
geggam_ has quit [Remote host closed the connection]
<aedorn> _aeris_: Yeah, but you don't need Ruby for the UI component still. Even if the logic is entirely Ruby, the GUI just never has to be.
mark_locklear has quit [Ping timeout: 260 seconds]
jkline has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
samsonasu has quit [Quit: samsonasu]
<_aeris_> aedorn > how do you communicate between ui and ruby ?
pwh has quit []
Mars` has quit [Remote host closed the connection]
georgi_ has quit [Read error: Connection timed out]
Mars` has joined #ruby
<shevy> aedorn :(
<shevy> I want more demand!
<shevy> you people, all here, be more demanding already, damn it!
Guest44268 has quit [Remote host closed the connection]
mgorbach has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
petey has joined #ruby
georgi_ has joined #ruby
Azulinho_ has quit [Quit: WeeChat 0.4.1]
brennanMKE has quit [Ping timeout: 268 seconds]
gmas has joined #ruby
<shevy> _aeris_ I usually delegate to ruby-gnome, but I dont make big GUI projects anymore, minimalism is my love... but one day I'd love to make something awesome. and I hate being tied to ruby-gnome, I'd wish I could use ruby-kde all the time in addition to that
<_aeris_> gnome not usable, win only :(
shiin has left #ruby [#ruby]
kazuuu has quit [Remote host closed the connection]
nomenkun has joined #ruby
<shevy> win only?
<shevy> ah, you mean, you are on win
kazuuu has joined #ruby
<shevy> last time I tried it though, it worked on windows... but alas, that was 3 or 4 years ago
<shevy> with ruby 1.8.7 :P
alvaro_o has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Mars` has quit [Ping timeout: 240 seconds]
starfox21 has quit [Quit: starfox21]
ranyip has quit [Read error: Connection reset by peer]
tjbarber has joined #ruby
<wald0> _aeris_: what kind of gui capabilities you want to reach ?
<havenn> _aeris_: Shoes' latest incarnation, shoes4, for JRuby looks pretty nice: https://github.com/shoes/shoes4#readme
burlyscudd has quit [Quit: Leaving.]
<_aeris_> wald0 > a lot
jkline has quit [Quit: jkline]
<_aeris_> improved datagrid
<havenn> _aeris_: ever used Shoes?
<_aeris_> « excel » like
<_aeris_> havenn > not at all
<_aeris_> integration with database
rahulkmr has quit [Ping timeout: 272 seconds]
<_aeris_> bpm integration
bline79 has quit [Quit: Leaving]
<_aeris_> the purpose is very huge : data entry for train line to validate safety
<_aeris_> 20.000.000 of parameters
<_aeris_> perhaps SIL4 software
<shevy> do I need to have jruby for shoes4?
mobilebl- has quit [Max SendQ exceeded]
<havenn> shevy: Yup, JRuby only at this point.
<wald0> _aeris_: have you tried ruby-ffi-efl ?
rorra has joined #ruby
<havenn> shevy: Green Shoes for MRI: https://github.com/ashbb/green_shoes#readme
<_aeris_> nope
kazuuu has quit [Ping timeout: 272 seconds]
mobileblue has joined #ruby
<_aeris_> wald0 > seems not win compliant, no ?
<wald0> _aeris_: it is :)
coderhs has quit [Ping timeout: 256 seconds]
<wald0> _aeris_: the backend is the EFL libraries, extremely powerful with ulimited potential in GUI or graphics, extremely optimized/fast/light too (samsung using it for their next generation of phones)
<aedorn> _aeris_: was afk, but I use just a simple message queue. ZeroMQ works great for that.
<_aeris_> yep but for me, efl is linux or posix only, non ?
<_aeris_> aedorn > asynchronous is not possible for the purpose
<wald0> _aeris_: nope, you can install it on other platforms like windows too
<_aeris_> ok
relix has joined #ruby
pwh has joined #ruby
jbpros has quit [Quit: jbpros]
sambao21 has joined #ruby
<aedorn> Sure it is. It's all event based in the end
<diegoviola> rubinius wants to redesign ruby? http://rubini.us/2013/10/15/introducing-rubinius-x/
<diegoviola> http://x.rubini.us/
<diegoviola> "Purge the Perl: In general, anything inspired by Perl should be removed, but especially "magic globals" like $_ or $1. They are easily replaced by simply sending messages to objects and providing objects as parameters. And so they are."
<diegoviola> purge the perl? wtf?
<_aeris_> yep but how do you manage db transactionnal or data entry with asynchronous ?
<Morrolan> diegoviola: I support that.
<Morrolan> There's really no need for cryptic variables.
yfeldblum has quit [Ping timeout: 245 seconds]
<diegoviola> what about things like hashes, TMTOWTDI, etc?
<diegoviola> that didn't come from perl too? did it?
<Morrolan> Perl invented hashes?
burlyscudd has joined #ruby
<wald0> https://phab.enlightenment.org/w/eflwindowsxp/ _aeris_ this is what i just found, but i remember to have seen it already packaged to install on windows
thesheff17_ has joined #ruby
coderhs has joined #ruby
<aedorn> _aeris_: Whether you block or not in the GUI is entirely up to you. There is no difference if you were doing the GUI all in one application, or you were using an interface to communicate between the engine and the GUI. It's all going to work the same in the end.
heidi has joined #ruby
<diegoviola> Morrolan: no idea
<_aeris_> yep but more difficult and more code to « proxy » all the needs throught asynchronous call
cha1tanya has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Disconnected by services]
banisterfiend has quit [Quit: Computer has gone to sleep.]
thesheff17_ is now known as thesheff17
peregrine81 has joined #ruby
peregrine81 has quit [Max SendQ exceeded]
siwica has quit [Quit: siwica]
<wald0> _aeris_: not really, if you make a look is much esier, mmh let me show you an example
yfeldblum has joined #ruby
peregrine81 has joined #ruby
<wald0> _aeris_: make a look to these demo codes https://github.com/jeremyz/ffi-efl/tree/master/test
<wald0> the 2 first ones are for make a window with a button
<_aeris_> thanks :)
<aedorn> a GUI is asynchronous to begin with.
tjbarber has quit [Ping timeout: 245 seconds]
<wald0> the third one is very nice for example, you can see different features on it, like waiting for user interaction, delayed modification of the interface, calling back to the core app, etc
timonv has joined #ruby
Kar- has joined #ruby
ahawkins has quit [Read error: Connection reset by peer]
<wald0> _aeris_: in fact im also interested in ruby for make gui applications (finishing to read a book) and im going to use efl for gui, i dont have found anything better so far
kitak has joined #ruby
siwica has joined #ruby
Jdubs_ has quit [Remote host closed the connection]
araujo has quit [Read error: Connection reset by peer]
supergeek has joined #ruby
supergeek has quit [Read error: Connection reset by peer]
<Kelet> It sucks that Ruby's desktop GUI capabilities are poor these days
aspiers has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
Mars` has joined #ruby
glaksmono has joined #ruby
mgorbach has quit [Ping timeout: 246 seconds]
<Morrolan> People probably moved to browser-based applications. :)
nemesit|znc has quit [Max SendQ exceeded]
carraroj has joined #ruby
virtualize|home has joined #ruby
nemesit|znc has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
kitak has quit [Ping timeout: 246 seconds]
burlyscudd1 has joined #ruby
<Kelet> Yep, most likely; however, I'm using Python of Ruby because of library availability (truthfully, wish I had time to make some Ruby bindings), because I often work on software that doesn't lend itself well to web applications
<Kelet> But the availability of libraries is representive of the direction of a community and it is a truth that Ruby heavily leans toward the web
Sc0rp10n has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
<Kelet> A shame that Shoes hasn't panned out yet, I was excited about it, but it had problems using Ruby Gems at the time.
jrhe has quit [Quit: jrhe]
teapop has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
maz-dev has joined #ruby
jprovazn has quit [Quit: Odcházím]
<havenn> Kelet: Shoes4 seems pretty nice to me. Good to see progress being made.
<havenn> Kelet: What Python libs are you missing in Ruby?
fgh has quit [Quit: Leaving]
<havenn> Kelet: There's so much non-Rails going on in Ruby, from flight simulation to super computers. Sure Rails is popular but there's a lot more to Ruby.
jbpros has joined #ruby
<Kelet> havenn: I'm missing QT5 bindings
<havenn> Kelet: Sure numpy and scipy are nice, but in general Python package managers suck and the quality/quantity of libs doesn't impress.
<havenn> Kelet: ah, yeah bindings - always a catchup game there
maz-dev has quit [Remote host closed the connection]
<havenn> The fact that pip can't list installed packages or update them all still blows my mind.
kil0byte has joined #ruby
SilverKey has quit [Quit: Cheers]
<Kelet> Honestly these days I've been using JRuby + Swing and such for projects, it's a nice combo, but distributing it gets a little tricky at times.
<Kelet> And of course the JVM isn't loved by all
<havenn> i for one welcome our JVM overlords :P
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heidi has quit [Quit: Leaving.]
<havenn> `pip update` feature three years later..... https://github.com/pypa/pip/issues/59
<havenn> nothing.
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenn> There should be one, and preferably one way to do it, but we're also happy to just not do it at all.
<havenn> >.>
<shevy> lol
<havenn> RubyGems never looked so lovely.
virtualize|home has quit []
<shevy> we got version galore with them
stkowski has joined #ruby
<shevy> 2.1.7
<shevy> they even surpassed ruby's main version!!!
<havenn> shevy: 2.1.9! Live in the now!!
devoldmx has joined #ruby
Jdubs has joined #ruby
clov3r has quit [Remote host closed the connection]
muxdemux has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
fgh has joined #ruby
samsonasu has joined #ruby
freerobby has joined #ruby
clov3r has joined #ruby
<shevy> damn :(
defaultVadeUser has joined #ruby
saimaz has joined #ruby
<defaultVadeUser> hello
queequeg1 has joined #ruby
burlyscudd1 has quit [Quit: Leaving.]
mobileblue has quit [Max SendQ exceeded]
<defaultVadeUser> I
mobileblue has joined #ruby
Spami has quit [Read error: Connection timed out]
mityaz has joined #ruby
<havenn> g'morning
tobiasvl has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
momomomomo has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
mgorbach has joined #ruby
clov3r has quit [Ping timeout: 268 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ghr has joined #ruby
petey has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 245 seconds]
petey has joined #ruby
soheil has quit [Remote host closed the connection]
soheil has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
habanany has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
nwertman has quit [Ping timeout: 245 seconds]
zz_tsykoduk is now known as zz_zz_tsykoduk
monkegjinni has joined #ruby
adamfortuna has joined #ruby
habanany has quit [Client Quit]
petey has quit [Ping timeout: 245 seconds]
banisterfiend has joined #ruby
muxdemux has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
sayan has joined #ruby
mgorbach has joined #ruby
Jdubs has quit [Remote host closed the connection]
mgorbach has quit [Read error: Connection reset by peer]
tjbarber has joined #ruby
thomas342 has quit [Quit: Leaving]
Mars` has quit [Remote host closed the connection]
Xeago has joined #ruby
endash has quit [Quit: endash]
julweber has joined #ruby
proxie has joined #ruby
schaerli has joined #ruby
peregrine81 has quit []
nfk has quit [Read error: Connection reset by peer]
benweint has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
proxie has quit [Client Quit]
Kar- has joined #ruby
Dave is now known as Guest55242
larissa has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
defaultVadeUser has quit [Quit: defaultVadeUser]
mansi has quit [Remote host closed the connection]
nadirvardar has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mgorbach has joined #ruby
Ripp__ has quit []
kil0byte has quit [Write error: Broken pipe]
petey has joined #ruby
krz has quit [Quit: krz]
proxie has joined #ruby
kenyabob has joined #ruby
nateberkopec has quit [Ping timeout: 268 seconds]
Ripp__ has joined #ruby
<kenyabob> I have a yaml file, and the values are enclosed in quotes. Using hash.to_yaml, can I enclose the value in quotes.
Kar- has quit [Ping timeout: 272 seconds]
monkegjinni has quit [Ping timeout: 272 seconds]
sayan has quit [Ping timeout: 272 seconds]
schaerli has quit [Read error: Connection reset by peer]
nfk has joined #ruby
adamfortuna has quit [Quit: http://codeschool.com]
schaerli has joined #ruby
qhartman has quit [Quit: Ex-Chat]
mansi has joined #ruby
ajf has joined #ruby
<ajf> I need the RubyInstaller DevKit but it won't download
<ajf> :(
mgorbach has quit [Read error: Connection reset by peer]
<ajf> http://rubyinstaller.org/downloads, the x64 devkit specifically
larissa has quit [Quit: Leaving]
rburton- has joined #ruby
<ajf> huh, worked this time round
<ajf> weird
<ajf> seems like their dl site had brief issues
<ajf> welp. bye
ajf has left #ruby [#ruby]
larissa has joined #ruby
clov3r has joined #ruby
einarj has joined #ruby
brennanMKE has joined #ruby
mgorbach has joined #ruby
dkamioka has quit [Remote host closed the connection]
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
saimaz has quit [Remote host closed the connection]
zz_zz_tsykoduk is now known as tsykoduk
mklappstuhl has joined #ruby
theoretick has joined #ruby
theRoUS has joined #ruby
samsonasu has quit [Quit: samsonasu]
tsykoduk is now known as zz_tsykoduk
iamjarvo has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
einarj has quit [Ping timeout: 245 seconds]
zigomir has joined #ruby
buibex has joined #ruby
niop has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
sayan has joined #ruby
vlad_starkov has joined #ruby
snuffeluffegus has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
braincrash has quit [Ping timeout: 272 seconds]
markisonfire has joined #ruby
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
siwica has quit [Read error: Connection reset by peer]
jmkeyes has joined #ruby
larissa has quit [Ping timeout: 272 seconds]
sergicles has quit [Quit: sergicles]
kaspergrubbe has joined #ruby
aspires has joined #ruby
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
jibi has joined #ruby
<jmkeyes> Is it safe to overwrite the pointer from Data_Get_Struct() at runtime in a C extension? (Assuming I manually call the free() callback myself.)
zz_tsykoduk is now known as tsykoduk
robustus has joined #ruby
PeNNyWiSe182__ has joined #ruby
PeNNyWiSe182__ has quit [Client Quit]
samsonasu has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
burlyscudd1 has joined #ruby
jjd_ has joined #ruby
fgo has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 268 seconds]
niklasb has quit [Ping timeout: 245 seconds]
RichardBaker has joined #ruby
darkc0met has quit [Quit: ZNC - http://znc.in]
timonv has quit [Remote host closed the connection]
dash_ has quit [Quit: dash_]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
sayan has quit [Ping timeout: 272 seconds]
ssvo_ has joined #ruby
darkc0met has joined #ruby
Jabberish has quit [Ping timeout: 260 seconds]
awarner_ has joined #ruby
jmccune has quit [Ping timeout: 240 seconds]
tjbarber has joined #ruby
georgi_ has quit [Ping timeout: 272 seconds]
failshell has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 268 seconds]
awarner has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
ulver has quit [Quit: Saliendo]
louism2wash has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv has joined #ruby
larissa has joined #ruby
maletor has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
orien has joined #ruby
<louism2wash> Hey guys, I am thinking about overriding the defined? method so that it returns the value of the parameter if the passed in value is indeed defined. Is this a bad idea? Do other methods used defined? in it's current form? Right now defined? will return the object type if the object is defined.
starfox21 has joined #ruby
Zolo has quit [Remote host closed the connection]
Zolo has joined #ruby
plotter has quit [Remote host closed the connection]
bugsinlights has joined #ruby
jjd_ has left #ruby [#ruby]
timonv has quit [Ping timeout: 252 seconds]
snath has quit [Ping timeout: 248 seconds]
Jabberish has joined #ruby
kmckelvin has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
randomnick_ has joined #ruby
mgorbach has joined #ruby
benweint has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
jmkeyes has left #ruby [#ruby]
theRoUS has quit [Ping timeout: 244 seconds]
kmckelvin has quit [Read error: Connection reset by peer]
Zolo has quit [Ping timeout: 265 seconds]
mgorbach has joined #ruby
kmckelvin has joined #ruby
plotter has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
simplyaubs has quit [Quit: simplyaubs]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
mahata has quit [Remote host closed the connection]
Kar- has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
Mekkis has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
starfox21 has quit [Quit: starfox21]
mercwithamouth has joined #ruby
schaerli has quit [Ping timeout: 265 seconds]
jcromart_ has joined #ruby
bean__ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sambao21 has joined #ruby
yfeldblum has joined #ruby
mgorbach has joined #ruby
JohnBat26 has quit [Ping timeout: 245 seconds]
vpretzel has quit [Remote host closed the connection]
kenyabob has quit [Quit: kenyabob]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
louism2wash has quit [Quit: Leaving]
bean__ has quit [Quit: Computer has gone to sleep.]
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
mansi_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
io_syl has joined #ruby
heidi has joined #ruby
wald0 has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mansi_ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
xk_id has quit [Quit:
<_br_> Does anyone know how to force set rvm to a specific ruby vm + gemset? I'm trying to automatically fork several zsh shells via a screen config file. But system ruby is different so each new shell is not set correctly to the version I like since I didn't use the "cd" to go into that dir.
a1ph4g33k has joined #ruby
xk_id has joined #ruby
<a1ph4g33k> Good day to all of you wonderful Rubyists!
peterhu has quit [Quit: leaving]
Spami has joined #ruby
xk_id has quit [Client Quit]
wald0 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
bean__ has joined #ruby
DanBoy has joined #ruby
funburn has joined #ruby
diegoviola has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
<havenn> G'day!
burlyscudd1 has quit [Quit: Leaving.]
burlyscudd has joined #ruby
burlyscudd has quit [Remote host closed the connection]
<havenn> _br_: I'd try #rvm, mpapis would be the knower of such things.
banisterfiend has joined #ruby
kenyabob has joined #ruby
kenyabob has quit [Client Quit]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
sayan has joined #ruby
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allsystemsarego has quit [Quit: Leaving]
Ripp__ has quit []
astrobunny has quit [Ping timeout: 245 seconds]
Mars` has joined #ruby
superbos has quit [Ping timeout: 272 seconds]
larissa has quit [Ping timeout: 272 seconds]
geekbri has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
monkegjinni has joined #ruby
Giorgio has joined #ruby
danshultz has quit [Remote host closed the connection]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has joined #ruby
kitak has joined #ruby
IceyEC has quit [Quit: IceyEC]
awarner_ has quit [Remote host closed the connection]
DanBoy has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
DanBoy has joined #ruby
awarner has joined #ruby
<havenn> hah, instead of making RubyConf tickets unavailable now that they're sold out, they just upped the price to $1,000... http://rubyconf.org/registration
sayan has quit [Ping timeout: 252 seconds]
awarner_ has joined #ruby
<havenn> well, "supporter ticket"
kaldrenon has quit [Remote host closed the connection]
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
kaldrenon has joined #ruby
<havenn> louis, oh (s)he left - but i wouldn't override `defined?`, make something new! :O
danshult_ has quit [Remote host closed the connection]
jb41 has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
havenn is now known as havenwood
muxdemux has quit [Quit: muxdemux]
endash has joined #ruby
Mars` has quit [Ping timeout: 249 seconds]
proxie has quit []
scarolan has quit [Ping timeout: 260 seconds]
gr33n7007h has joined #ruby
mikeg has joined #ruby
awarner has quit [Ping timeout: 272 seconds]
jkamenik has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
workmad3 has joined #ruby
Ripp__ has joined #ruby
monkegjinni has joined #ruby
danshultz has joined #ruby
kakashiAL has joined #ruby
scarolan has joined #ruby
kaldrenon has quit [Ping timeout: 265 seconds]
benweint has quit [Ping timeout: 272 seconds]
<kakashiAL> hey guys, I am using php and since a month I am playing with ruby
<kakashiAL> would like to know if there is something that you cant to with php or the advances of ruby
<havenwood> welcome!
<gmas> kakashiAL: haven't you heard Ruby is dying ? ;)
adambeynon has joined #ruby
<kakashiAL> gmas: sarcasm?
<ShellFu> is it MERS?
<ShellFu> I knew it
ldnunes has quit [Quit: Leaving]
<havenwood> gmas: Ruby 9000 will rise like a phoenix!
zarubin has joined #ruby
* ShellFu ducktapes windows and doors
xk_id has joined #ruby
<gmas> like a Phoenix implies it has to burn first
<waxjar> staying sane is a little easier with ruby than with php
<havenwood> kakashiAL: PHP isn't a general purpose programming language so much as a web language.
<kakashiAL> havenwood: sure
eddie has joined #ruby
eddie is now known as another_eddie
<havenwood> kakashiAL: Ruby can do the web stuff too but is a general purpose language with ton of packages (gems) for machine learning, concurrency, whatever.
danshultz has quit [Remote host closed the connection]
peterhu has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
<kakashiAL> at the moment there is a ruby hype, but I dont know the advances of ruby against php
monkegjinni has quit [Ping timeout: 252 seconds]
wyhaines has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
wyhaines has joined #ruby
<gmas> kakashiAL: the hype seems to have moved more towards node.js
<momomomomo> gmas: lol from node to Go
<gmas> but but Elixir
<havenwood> kakashiAL: Ruby borrows stuff from Lisp and functional programming and puts it all into a lovely package.
<momomomomo> but I do like cljoure :o
kazuuu has joined #ruby
<breakingthings> all aboard the hype train
<breakingthings> choo choo
Mars` has joined #ruby
<havenwood> kakashiAL: A very accessible way to dip your toes in Lisp/functional land.
<kakashiAL> so nobody can give me a direct reason why ruby is better than php?
<ShellFu> heh
<breakingthings> you're asking for a list
<breakingthings> how about you go research it a bit
<havenwood> kakashiAL: It is more elegant. Not a fractal of bad design. Easier to build large applications.
<ShellFu> im a ford man myself
<havenwood> kakashiAL: It comes down to PHP being a language designed by an amateur. It is horrible. Flee at once.
<breakingthings> a large, uncoordinated group of amateurs, these days.
<ShellFu> lol harsh
<waxjar> Ruby plays very nicely with UNIX, too. PHP not so much
<kakashiAL> hmm...okay but you get used to it
larissa has joined #ruby
<havenwood> Ruby is a great way to learn Unix!
<breakingthings> kakashiAL: you get used to it because you put up with it.
<kakashiAL> breakingthings: right
<breakingthings> Really suggest you go do some research and get a feel for yourself.
<ShellFu> havenwood, maybe. As a unix admin im doing it backwards ;)
<breakingthings> Go write some little ruby programs and see how it feels.
drumsrgr8forn8 has left #ruby [#ruby]
<xibalba> here here ShellFu
<havenwood> ShellFu: hehe
gyzmodo has quit [Ping timeout: 245 seconds]
<kakashiAL> other people tell me to use python
<breakingthings> kakashiAL: Try both.
<breakingthings> See what you like.
<breakingthings> Stop trying to take other people's opinions and make sense out of them.
MrZYX is now known as MrZYX|off
snuffeluffegus has quit [Remote host closed the connection]
<breakingthings> Everybody's crazy, why would you trust them?
nutella has joined #ruby
<havenwood> kakashiAL: Python is very similar but Ruby makes me happier. I think that is an aesthetic choice as well as a choice of community.
<xibalba> gmas, ruby certainly doesnt seem like its dying
<havenwood> kakashiAL: Python would be a fine, sane choice. But don't, use Ruby. :P
nutella is now known as Guest71854
snuffeluffegus has joined #ruby
<gmas> xibalba: I agree, it's just surprising to see this coming from someone who's working on an alternative to MRI
boxmein has joined #ruby
<ShellFu> kakashiAL, as anyone will tell you. A language wont make good code. Thats up to the programmer. Learn the constructs of a language and you can move from one to the next. Like a smoothly passed crown from tyrant to tyrant
wyhaines has quit [Ping timeout: 252 seconds]
leeurooi has joined #ruby
<breakingthings> While you're right that a language won't make good code, many languages enable better code.
<breakingthings> Not directed at you so much as kakashiAL.
tatsuya_o has joined #ruby
<ShellFu> can I choose to take offense and rage on you :D j/k
<ShellFu> Im listening to death metal so im half way there
<breakingthings> yes but it will be on deaf ears because it's time for me to go home!
<breakingthings> º╲˚\╭ᴖ_ᴖ╮/˚╱º Y A Y !
<breakingthings> why do i have these
<kakashiAL> tried both (ruby and python) I noticed that in ruby there are many ways to do something and in python just one way, the python code is like psydo code (easy to read) but I like the fact in ruby that everything is an object, you can also do 3.methode()
<breakingthings> someone delete these shortcuts.
larissa has quit [Ping timeout: 260 seconds]
Soda has joined #ruby
khushildep has joined #ruby
<havenwood> kakashiAL: Ruby's blocks are wonderful but are something you don't have to learn in Python since you don't have them.
<ShellFu> lol their fun :)
breakingthings has quit []
ssvo_ has quit [Ping timeout: 245 seconds]
raphaelivan has quit [Quit: Leaving.]
<havenwood> Python is probably a bit easier to learn?
zigomir has quit [Ping timeout: 246 seconds]
<havenwood> Dunno.
funburn has quit [Quit: funburn]
mercwithamouth has quit [Read error: Operation timed out]
<kakashiAL> but I guess the answer to php vs ruby is the style :/
<kakashiAL> havenwood: yes it is easy, after some hours you can code like a pro :)
<waxjar> ruby has a much, much better and cleaner design than php
<havenwood> kakashiAL: I think Ruby would be a good investment. I mean a Lisp without parens? Yay! \o/
<kakashiAL> yes, thats all :)
<kakashiAL> havenwood: are you emacs user?
<havenwood> Freedom patching.
<havenwood> Nope, TM2 or vim.
S0da has joined #ruby
<havenwood> or LightTable :P
<havenwood> LightTable is written in a Lisp too. (Clojure.)
siwica has joined #ruby
sergicles has joined #ruby
<waxjar> is it any good havenwood?
Soda has quit [Ping timeout: 252 seconds]
<havenwood> waxjar: Great for Clojure! The built-in Repl is the bee's knees.
<shevy> ruby: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
<shevy> hmmm
<havenwood> waxjar: No Ruby support yet.
<shevy> anyone knows if it is possible to build a working ruby without openssl?
<havenwood> shevy: yup
i_s has joined #ruby
<kakashiAL> if I do my html/css stuff I like sublime, and now there is a opensource sublime project called lime :)
<havenwood> shevy: except the OpenSSL parts wont work
<waxjar> havenwood: cool. it looks really interesting. idk any clojure tho, unfortunately :P
Guest55242 has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
<waxjar> ruby support would be great
NicolasTarzia has joined #ruby
<havenwood> waxjar: I started Clojure a couple weeks back. Feels totally natural as a Rubyists. The functional stuff is just like Rubies and the Lispyness.
<havenwood> well, "just like" isn't accurate, but the Ruby functional stuff totally prepped my brain
<AFK|mr_red> hey guys, how can i know if of all of the items in an array at least one is of a given object type? (assuming the array contains various types of objects)
AFK|mr_red is now known as mr_red
ssvo has joined #ruby
<havenwood> waxjar: Did some Project Euler problems bridged between JRuby and Clojure for fun. cljrb
<waxjar> #one? { |x| x.is_a? That }
petey has quit [Remote host closed the connection]
<waxjar> havenwood: oh goodness :P
alex__c2022 has joined #ruby
burlyscudd has joined #ruby
<mr_red> mmm
kirun has quit [Quit: Client exiting]
<mr_red> seems to work
<mr_red> thx
phantasm66 has quit [Quit: *sleeeep….]
divi__ has quit [Quit: Textual IRC Client: www.textualapp.com]
claymore has quit [Quit: night]
divi has joined #ruby
<havenwood> waxjar: it actually works surprisingly well, using Ruby for text processing and whatnot and just passing stuff to Clojure for the mathy loops.
gstamp_ has joined #ruby
mikeg has quit [Remote host closed the connection]
<havenwood> haven't tried using a Clojure jar in JRuby, but that'd be interesting
larissa has joined #ruby
Elhu has joined #ruby
<havenwood> having fun trying to learn Potion. but the dearth of documentation makes it hard
dmanaster has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
gstamp_ is now known as gstamp
<dmanaster> Hi there.
wald0 has quit [Quit: Lost terminal]
<havenwood> hey
leeurooi has quit [Ping timeout: 260 seconds]
petey has joined #ruby
Monie has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
scarolan has quit [Ping timeout: 246 seconds]
|PiP| has joined #ruby
<gf3> ¡Hola Niño!
Mars` has quit [Read error: Connection reset by peer]
rorra has quit [Ping timeout: 272 seconds]
Mars` has joined #ruby
<sam113101> yo llevo una falda roja
Xeago has quit [Remote host closed the connection]
SilverKey has joined #ruby
elux has quit [Quit: Bye!]
Elhu has joined #ruby
<mr_red> D:!
<mr_red> Hey guys, i have a question
<sam113101> !ask
<mr_red> i have a model thats polymorphic, and has a column containing the type of the child object
plotter has quit [Remote host closed the connection]
sergicles has quit [Ping timeout: 272 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<mr_red> now, i want to do a scope, something like "is_object_active?"
JeanMertz has quit []
<mr_red> sorry
<mr_red> "is_object_of_type_X?"
interactionjaxsn has joined #ruby
<mr_red> and returns a boolean
<mr_red> if any of the objects of the returning collection are of the type X
mmitchel_ has joined #ruby
<mr_red> cause most of the times, when you do a scope in a polymorphic object the result is a collection of the polymorphic object, but i want to return a boolean if any of those results are of type X
rburton- has quit [Quit: Linkinus - http://linkinus.com]
scarolan has joined #ruby
<mr_red> ill do a gist D:
<workmad3> mr_red: sounds like rails too
<workmad3> mr_red: maybe try #rubyonrails ;)
<mr_red> oh yeah
<mr_red> :(
<mr_red> just noticed i was writing on @ruby
<mr_red> #ruby
<mr_red> sry
kaspergrubbe has quit [Remote host closed the connection]
bean__ has quit [Quit: Computer has gone to sleep.]
<diegoviola> what's with all the "ruby is dying" comments?
<diegoviola> lol
kaspergrubbe has joined #ruby
interactionjaxsn has quit [Ping timeout: 252 seconds]
endash has quit [Quit: endash]
mmitchell has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Remote host closed the connection]
farn has quit [Read error: Connection reset by peer]
dmanaster has left #ruby [#ruby]
brennanMKE has joined #ruby
<burlyscudd> diegoviola: it's dying of popularity
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
amacgregor has joined #ruby
<mr_red> a recent new on HN came out saying that ruby is dying
Mars` has quit [Remote host closed the connection]
<mr_red> news
mmitchel_ has quit [Ping timeout: 272 seconds]
<havenwood> diegoviola: Second-most popular on the Githubs... DYING I TELL YOU!
Mars` has joined #ruby
<havenwood> diegoviola: The only person i've ever heard say that not in jest is brixen, on the rubinius-x post.
alexju has quit [Remote host closed the connection]
<diegoviola> yeah
alexju has joined #ruby
mixel has joined #ruby
<diegoviola> not sure how i feel about the "Purge the Perl" section
<diegoviola> does that means that hashes and the TMTOWTDI mentality has to go?
brennanM_ has joined #ruby
<diegoviola> or one-liners, etc
Nisstyre-laptop has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
Elhu has quit [Quit: Computer has gone to sleep.]
jkline has joined #ruby
kaspergrubbe has quit [Ping timeout: 245 seconds]
<havenwood> i think all he meant was the perl-esque cryptic globals, i doubt he means other perl influences but who knows
c0rn has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
<havenwood> like: require 'english'
theoretick has joined #ruby
mansi_ has quit [Remote host closed the connection]
Mars`_ has joined #ruby
mansi has joined #ruby
<havenwood> I think drbrain makes a good point that these changes haven't even been proposed on ruby issue tracker: http://redd.it/1oi99k
<diegoviola> "In general, anything inspired by Perl should be removed"
farn has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
nomenkun has quit [Remote host closed the connection]
a1ph4g33k has quit [Quit: Leaving]
<havenwood> but i think it is more a search for justification for a personal desire to fork due to brixen and matz not agreeing on some things
<havenwood> hopefully good comes of it ;)
nomenkun has joined #ruby
<diegoviola> are those ideas that will be implemented in rubinius at some point? or those are ideas that can go in any implementation of ruby? (mri, jruby, rbx, etc)
<havenwood> which ideas?
<havenwood> huh?
<havenwood> the rubiniusx ones?
Elhu has joined #ruby
<diegoviola> yes
kaspergrubbe has joined #ruby
<havenwood> they're for rubinius-x only, not for rbx's ruby
julweber has joined #ruby
nfk has quit [Remote host closed the connection]
<havenwood> not the traditional route for proposing a feature to Ruby, for sure
mansi has quit [Ping timeout: 272 seconds]
<diegoviola> hmm
<diegoviola> now i'm confused
<havenwood> but maybe the better of the ideas will make it onto ruby issue tracker and into the Rubies
<havenwood> rbx-x is NOT a Ruby. rbx is a Ruby.
<diegoviola> ok, and rbx-x is not code, just ideas in that site, right?
nomenkun has quit [Ping timeout: 245 seconds]
<havenwood> yup, a plan to fork from Ruby and go its own path
<diegoviola> ah ok, makes sense then, thanks :D
<havenwood> so not-a-Ruby but a Ruby-like new language
<diegoviola> right, makes sense, ty
Nisstyre-laptop has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
mercwithamouth has joined #ruby
Soliah has quit [Read error: Connection reset by peer]
Soliah has joined #ruby
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baordog_ has quit [Remote host closed the connection]
jdenen has quit [Quit: Leaving.]
buibex has quit [Remote host closed the connection]
tkuchiki has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
buibex has joined #ruby
buibex has quit [Read error: No route to host]
m8 has quit [Quit: Sto andando via]
jaynewstrom has quit [Remote host closed the connection]
tjad has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
obs has quit [Remote host closed the connection]
pel_daniel1 has joined #ruby
awarner has joined #ruby
<tjbarber> hey guys, isn't there a ruby based app similar to this? http://harpjs.com/
fmcgeough has quit [Ping timeout: 245 seconds]
<havenwood> here, added a Potion FizzBuzz: http://rosettacode.org/wiki/FizzBuzz#Potion
<havenwood> tjbarber: Jekyll?
<tjbarber> is that it?
<havenwood> tjbarber: http://jekyllrb.com/
samuel02 has quit [Remote host closed the connection]
<tjbarber> havenwood ah, beautiful. thank you my friend
<havenwood> np
samuel02 has joined #ruby
nisstyre has joined #ruby
awarner_ has quit [Ping timeout: 272 seconds]
pel_daniel has quit [Ping timeout: 245 seconds]
another_eddie has quit [Remote host closed the connection]
freerobby has joined #ruby
buibex has joined #ruby
mengu has quit [Remote host closed the connection]
whunt has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<rurban> havenwood: nice. will be added as sample
blischalk has joined #ruby
proxie has joined #ruby
<havenwood> rurban: :)
whunt has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
nadirvardar has quit [Ping timeout: 272 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rurban> with which name do you want to be quoted? is havenwood ok?
volty has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Akuma has quit [Quit: So long sukkas!]
<havenwood> rurban: sure! sounds good
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
ravster has quit [Quit: Leaving.]
tatsuya_o has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
io_syl has quit []
<gr33n7007h> How do u make irb tab auto-complete?
<xibalba> havenwood, we spoke a few months back on some ruby learning resources. took a few that you told me about and gave them to my wife who is currently in the process of learning ruby. thanks for that
emmanuelux has quit [Remote host closed the connection]
<Kelet> gr33n7007h: You should check out pry
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
Kar- has quit [Ping timeout: 272 seconds]
<gr33n7007h> Kelet, I'm using pry just forgot the syntax to get irb how to auto_complete ;)
<Kelet> gr33n7007h: require 'irb/completion' probably
Elhu has quit [Quit: Computer has gone to sleep.]
<gr33n7007h> Kelet, Let's check thanks
<Kelet> I thought pry had autocompletion by default on though
* Kelet shrugs
samuel02 has joined #ruby
tatsuya_o has quit [Ping timeout: 252 seconds]
Kar- has joined #ruby
enebo has quit [Quit: enebo]
<gr33n7007h> Kelet, Thanks it worked!
<Kelet> Alternatively, check up on: https://github.com/cldwalker/bond
<Kelet> I think it's better than irb/completion
duggiefresh has joined #ruby
<Kelet> but I don't use either so I'm not sure
<gr33n7007h> Kelet, taking a look now
Guest71854 has quit [Ping timeout: 252 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
siwica has quit [Quit: siwica]
<rurban> rbx has its merits, esp. Immutable Strings and ByteBuffers and Promises. But I don't get nil vs undefined
jnoob22_ has joined #ruby
jkline has quit [Quit: jkline]
<rurban> And everything lexical will not work out, good luck :)
pel_daniel has joined #ruby
stkowski_ has joined #ruby
jnoob22 has quit [Ping timeout: 272 seconds]
pel_daniel1 has quit [Ping timeout: 245 seconds]
rgbdev has joined #ruby
nisstyre has quit [Quit: Leaving]
stkowski has quit [Ping timeout: 272 seconds]
stkowski_ is now known as stkowski
Stalkr_ has quit [Read error: Connection reset by peer]
tjad has quit [Ping timeout: 272 seconds]
Ripp__ has quit []
fschuindt has joined #ruby
siwica has joined #ruby
Soliah has quit [Quit: Soliah]
sambao21 has quit [Quit: Computer has gone to sleep.]
mlpinit has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Stalkr_ has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
AlSquire has quit [Quit: This computer has gone to sleep]
<havenwood> xibalba: nice! awesome she's learning, glad i could help!
samsonasu has quit [Quit: samsonasu]
Xeago has joined #ruby
sam113101 is now known as sam113101_afk
vlad_starkov has joined #ruby
cads has quit [Ping timeout: 272 seconds]
Kar- has quit [Ping timeout: 260 seconds]
rumours has quit [Quit: ZNC - http://znc.sourceforge.net]
<xibalba> what type of company do you work for havenwood
<xibalba> nice , "'Put that in your unix socket and smoke it'"
i_s has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
<havenwood> xibalba: i do independant freelance consulting
<havenwood> xibalba: so an educational company and a startup right now, but varies ;)
tjbarber has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has joined #ruby
<xibalba> cool sounds fun. my buddy DanKnox is doing that right now too for some canadian companys. he's down here in san diego though
g3orge has quit [Quit: leaving]
<havenwood> i think a startup i work for in LA actually reached out to DanK but he i think said he wanted to be in San Diego not LA
kevinykchan has quit [Quit: Computer has gone to sleep.]
i_s has quit [Read error: Connection reset by peer]
kevinykchan has joined #ruby
i_s has joined #ruby
tsykoduk is now known as zz_tsykoduk
i_s has quit [Read error: Connection reset by peer]
filipe_ has joined #ruby
sambao21 has joined #ruby
<xibalba> oh yeah i remember you had recommended that
drumsrgr8forn8 has joined #ruby
filipe_ has quit [Client Quit]
i_s has joined #ruby
freerobby has quit [Quit: Leaving.]
soheil_ has joined #ruby
lfox has quit [Quit: ZZZzzz…]
soheil has quit [Read error: Connection reset by peer]
zz_tsykoduk is now known as tsykoduk
ferdev has quit [Quit: ferdev]
vlad_starkov has quit [Ping timeout: 245 seconds]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
proxie has quit []
i_s has quit [Ping timeout: 260 seconds]
samsonasu has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
dphase has joined #ruby
xk_id has quit [Quit:
kaspergrubbe has quit [Remote host closed the connection]
Xaitec has joined #ruby
kaspergrubbe has joined #ruby
rgbdev has quit [Quit: rgbdev]
aryaching has quit [Ping timeout: 262 seconds]
newbiehacker has quit [Ping timeout: 272 seconds]
theoretick has joined #ruby
tsykoduk is now known as zz_tsykoduk
ssvo has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
tomzx_mac has joined #ruby
kaspergrubbe has quit [Ping timeout: 253 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjbarber has joined #ruby
xk_id has joined #ruby
awarner has quit [Remote host closed the connection]
zarubin has quit [Ping timeout: 272 seconds]
xibalba has quit [Quit: ZNC - http://znc.in]
buibex has quit [Remote host closed the connection]
awarner has joined #ruby
i_s has joined #ruby
buibex has joined #ruby
clov3r has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 245 seconds]
sepp2k1 has joined #ruby
clov3r has joined #ruby
gsgdgdfgddfg has joined #ruby
gsgdgdfgddfg has quit [Remote host closed the connection]
snuffeluffegus has quit [Remote host closed the connection]
gsgdgdfgddfg has joined #ruby
gsgdgdfgddfg has quit [Remote host closed the connection]
awarner_ has joined #ruby
buibex has quit [Ping timeout: 246 seconds]
awarner has quit [Ping timeout: 272 seconds]
clov3r has quit [Ping timeout: 272 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
kmckelvin has quit [Remote host closed the connection]
kmckelvin has joined #ruby
pel_daniel has left #ruby [#ruby]
astrobunny has quit [Ping timeout: 272 seconds]
pwh has quit []
freerobby has quit [Quit: Leaving.]
petey has quit [Remote host closed the connection]
funburn has joined #ruby
petey has joined #ruby
nutella has joined #ruby
Mars`_ has quit [Remote host closed the connection]
nutella is now known as Guest73760
<it_tard> [0..data.size-1].each {|i| data[i]=data[i]*2} #okay, what black magic is this?
Mars` has joined #ruby
ravster has joined #ruby
|PiP| has quit [Ping timeout: 272 seconds]
kitak has quit [Remote host closed the connection]
pwh has joined #ruby
<it_tard> i wanted to double every element in array (yes, i know about map, i'm just playing around before doing the real stuff) but why is it doubling the array instead of doubling each element?
Spami has quit [Read error: Connection timed out]
<shevy> I WILL INSTALL UBUNTU SOON!!!
mercwithamouth has joined #ruby
<volty> shevy: what do you have now?
<shevy> slackware
<volty> i'm fine with kubunut
pentameter has quit [Read error: Connection reset by peer]
_aeris_ is now known as [_aeris_]
<it_tard> volty, hi5 my kde kamerade
<shevy> it_tard, first off, what you put into [] looks weird
devoldmx has quit [Ping timeout: 260 seconds]
<it_tard> shevy, eh? if you do puts data[i] it actually prints each element
<shevy> data is an Array?
<it_tard> yes
<it_tard> array of integers
<shevy> data[0..-1].each
<shevy> or -2, not sure, have not tested
devoldmx has joined #ruby
astrobunny has joined #ruby
<shevy> aha I see what you want to do
<shevy> you want to use .map without using .map
<it_tard> worse
<shevy> hey I am not judging at all, I have the weirdest ideas when I am drunk
petey has quit [Ping timeout: 245 seconds]
<shevy> like "today I am going to learn python"
<it_tard> i'm trying to sort an array without writing C style code and without using .sort as that would beat the purpose of why i'm doing this to myself
<shevy> haha :D
<shevy> ok let's get the channel to rise
sam113101_afk is now known as sam113101
<it_tard> and map works only on single elements not tuples, i think
<shevy> Hey channel, can we sort in ruby without .sort and can we map in ruby without .map?
Mars` has quit [Ping timeout: 260 seconds]
<shevy> map works only on single elements?
<it_tard> i'm stupid, yes, but i haven't seen any counter example
<shevy> now you kinda say that map runs against its intended purpose :P
samuel02 has quit [Remote host closed the connection]
<shevy> btw your original example actually looks like
<shevy> (data.size-1).times
samuel02 has joined #ruby
<volty> >> data = *1..5; (0..(data.size-1)).each {|i| data[i]=data[i]*2 }; data
<eval-in> volty => [2, 4, 6, 8, 10] (https://eval.in/55235)
<it_tard> i haven't seen any example with map receiving more than one variable as argument and using |a,b| makes the other one undefined
<it_tard> yes, the other one
ldnunes has joined #ruby
<it_tard> if you do |a,b| puts b it works
<it_tard> if you do |a,b| puts a it works
<volty> you are confusing the result of the operation with the array itself
<it_tard> and they are always set to the current element but if you use both, one of them is nil
<shevy> volty do you use the debian-ruby ?
Mars` has joined #ruby
<it_tard> volty, sorry for being stupid, i have been rubying for something like a year and a half and i still need a reference to write basic code
<it_tard> yet i like the language a lot
<volty> ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
gsgdgdfgddfg has joined #ruby
<volty> i forgot where I got it :)
<shevy> volty hehehe
<shevy> it_tard, in ruby my favourite rule of thumb is - the shorter, the better
heidi has quit [Quit: Leaving.]
jrhe has joined #ruby
<shevy> >> %w( a b c ).map {|e| e*3}
<eval-in> shevy => ["aaa", "bbb", "ccc"] (https://eval.in/55236)
<it_tard> shevy, isn't that perl and shell rule of injured thumb?
Xiti has quit [Read error: Connection reset by peer]
<shevy> well
<shevy> the problem with both are that they are inherently very ugly
Xiti has joined #ruby
<shevy> I mean, look at how you pass arguments to functions in shell scripts. that is one ugly stuff
<shevy> >> %w( 1 2 3 4 5 ).map(&:to_i).map {|e| e*2 }
<eval-in> shevy => [2, 4, 6, 8, 10] (https://eval.in/55237)
<it_tard> don't remind me, i tried fixing one of my shellscripts today
<it_tard> and exactly function stuff
<it_tard> and i decided that it wasn't worth the PITA
samuel02 has quit [Ping timeout: 272 seconds]
<Kelet> hmm aren't there shells with less retarded syntax?
<shevy> I abandoned 99,9% of my shell scripts in favour of ruby. I said to myself, if I really need shell scripts, I will let ruby generate them for me
<Kelet> In fact isn't there a shell that uses ruby?
<Kelet> In fact why even make shell scripts
* Kelet shrugs
<shevy> pure ruby syntax makes it not so convenient to replace i.e. zsh
<it_tard> shevy, i just use ruby for the more complex stuff
<Kelet> I guess sed/xargs/etc are really convenient
_bart has joined #ruby
<shevy> Kelet how about awk
jbpros has quit [Quit: jbpros]
<Kelet> Maybe awk but I think that people use other utilities more these days
drumsrgr_ has joined #ruby
alexju has quit [Remote host closed the connection]
<shevy> it_tard I cant remember how arguments to shell functions work... you must use $1 $2 etc.. directly or?
<shevy> and check whether they exist first
<shevy> if that would be true, it would be similar to using ARGV in ruby directly within a method
alexju has joined #ruby
|PiP| has joined #ruby
stkowski has quit [Quit: stkowski]
<shevy> volty 95%, soon I can burn the DVD!
burlyscudd has joined #ruby
* shevy wears a pink ubuntu fanboi cap on his head.
drumsrgr_ has quit [Ping timeout: 265 seconds]
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
alexju has quit [Ping timeout: 272 seconds]
<volty> shevy: i hope that you a separate partition for (k)ubunut
Stalkr_ has quit [Read error: Connection reset by peer]
Stalkr^ has joined #ruby
asteros has joined #ruby
<volty> shevy: i hope that you have reserved a separate partition for installing (k)ubuntu
Monie has joined #ruby
VTLob has quit [Quit: VTLob]
larissa has quit [Quit: Leaving]
ismlages has quit [Remote host closed the connection]
brennanM_ has quit [Remote host closed the connection]
brennanMKE has joined #ruby
theoretick has quit [Quit: Textual IRC Client: www.textualapp.com]
mercwithamouth has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
Monie_ has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 240 seconds]
predator217 has joined #ruby
brennanM_ has joined #ruby
Monie has quit [Ping timeout: 252 seconds]
sam113101 is now known as sam113101_afk
heidi has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
freerobby has quit [Client Quit]
predator117 has quit [Ping timeout: 272 seconds]
monkegjinni has joined #ruby
<it_tard> shevy, i think so but i gave up instead
<shevy> volty nah, I only keep two partitions, one for swap and one for EVERYTHING
<shevy> my brain can not handle more than that
<it_tard> also, shevy, probably my best ruby script for which most people would use shell: http://pastebin.kde.org/pfuihgzci/ukktjx
<volty> so how are you going to migrate ?
lfox has joined #ruby
<it_tard> i don't want to even imagine how a bash version of that would look like
chrisja has quit [Quit: leaving]
justsee has joined #ruby
<shevy> volty I made a backup to an external usb harddisc
<shevy> I hope it won't fail me :D
<shevy> it_tard I think you should slowly start to write classes or modules
<shevy> the moment you do so is the moment you can very easily reuse all code
ehaliewicz has joined #ruby
<it_tard> eh?
<shevy> btw you also use too many parens
<shevy> if (!File.directory?(mismatch_dir))
<shevy> the outer () can be removed
<shevy> the inner one too but these ones are not so important
<shevy> if !File.directory?(mismatch_dir)
<shevy> if ! File.directory?(mismatch_dir)
<it_tard> this is like the 5th time in my life i have opened that file
<shevy> if ! File.directory? mismatch_dir
<it_tard> and it's been over a year since i wrote it
<it_tard> so i really don't think it's that important
<it_tard> better be sure the code works well as it's moving files around than sorry
tjbarber has quit [Ping timeout: 246 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> just finished burning ... volty, if I don't come back... avenge my death ok?
<it_tard> shevy, i upgraded in-place today, no problems here
<shevy> yeah but
<shevy> I have like 30 gigs of data that I back up
<it_tard> and that was on a system with 2.2 GB free on /
<it_tard> and with xfs as the rootfs and on lvm2
<shevy> anyway, time to reinstall now, wish me luck ;)
<volty> i agree with it_tard, except with : dir += "/" and directory + "mismatch"
shevy has quit [Remote host closed the connection]
ner0x has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
<it_tard> volty, eh?
Mars` has joined #ruby
<volty> do not add that '/' and instead of just adding 'mismatch' do File.join(directory, 'mismatch')
ldnunes has quit [Ping timeout: 262 seconds]
ebobby has joined #ruby
mercwithamouth has joined #ruby
<volty> >> dir = 'movies'; File.join(dir, 'mismatch')
<eval-in> volty => "movies/mismatch" (https://eval.in/55247)
<volty> >> dir = 'movies/'; File.join(dir, 'mismatch')
<eval-in> volty => "movies/mismatch" (https://eval.in/55248)
equ1n0x has quit [Quit: WeeChat 0.3.8]
<it_tard> volty, and what does it change?
<it_tard> oh, i guess it could help avoid that end_with?("/")
<volty> you don't check for traling '/'
Guest73760 has quit [Ping timeout: 246 seconds]
<it_tard> right, now i have the choice between fixing the code or not touching it as it doesn't change functionality and the code is kinda useful
<volty> i agree with that
postmodern has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
brennanM_ has quit [Remote host closed the connection]
sam113101_afk is now known as sam113101
aspires has quit [Quit: sudo making a sandwich]
cody-- has quit [Quit: derp]
kreeves has joined #ruby
kreeves has quit [Changing host]
kreeves has joined #ruby
aspires has joined #ruby
pwh has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
capnmalarkey has joined #ruby
saarinen has quit [Quit: saarinen]
ephemerian has left #ruby [#ruby]
<it_tard> hmm... is it just me or does the prev="" never get used again?
pwh has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
kevind has quit [Quit: kevind]
ravster has quit [Quit: Leaving.]
Sc0rp10n has quit [Quit: Leaving]
mansi has quit [Ping timeout: 272 seconds]
diegoviola has quit [Ping timeout: 252 seconds]
jibi has quit [Quit: .]
gr33n7007h has quit [Quit: Where's John Conner]
ldnunes has joined #ruby
asteros has quit [Quit: asteros]
gr33n7007h has joined #ruby
kaspergrubbe has joined #ruby
jrhe has quit [Quit: jrhe]
mary5030 has quit [Remote host closed the connection]
crus has quit [Ping timeout: 260 seconds]