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"]
<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
<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
<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
<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
<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
<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]
<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
<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
<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):
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
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>
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]
<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
<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]
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.
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]
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>
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 :)
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)
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?
<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.
<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 ?
<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>
"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?
<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
<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…]
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…]
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]
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.
<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]
<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
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/
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 ;)
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
<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]