<hagabaka>
"In the name of this package, `1.9.1' indicates the Ruby library compatibility version. This package currently provides the `1.9.3' branch of Ruby, which is compatible with the `1.9.1' branch. "
<matip>
I see -.-
<RyanScottLewis>
So all 1.9.x version above 1.9.0 are compatible?
<RyanScottLewis>
By that I mean, all bug fixes/deprecations and no feature additions?
<hagabaka>
ruby1.9.1 is just the deb package name, the package version is probably 1.9.3.194-5 or something if you look closely
<matip>
yeah, it is
drbrain has joined #ruby-lang
holgerno has joined #ruby-lang
havenn has joined #ruby-lang
holgerno has quit [Ping timeout: 252 seconds]
ryanf has quit [Quit: leaving]
drbrain has quit [Ping timeout: 251 seconds]
ryanf has joined #ruby-lang
reppard has quit [Quit: leaving]
fowl has quit [Ping timeout: 255 seconds]
methods has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 252 seconds]
gix has quit [Ping timeout: 265 seconds]
firefux has left #ruby-lang [#ruby-lang]
gix has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
fowl has joined #ruby-lang
fire has quit [Read error: Operation timed out]
ramonmaruko has quit [Ping timeout: 264 seconds]
sailias has quit [Quit: Leaving.]
sailias has joined #ruby-lang
sailias has quit [Client Quit]
sailias has joined #ruby-lang
chendo_ has joined #ruby-lang
Denommus has quit [Ping timeout: 276 seconds]
drbrain has joined #ruby-lang
holgerno has joined #ruby-lang
fire has joined #ruby-lang
holgerno has quit [Ping timeout: 252 seconds]
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
drbrain has quit [Ping timeout: 244 seconds]
gnufied has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
havenn has quit [Ping timeout: 265 seconds]
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
gnufied has quit [Quit: Leaving.]
havenn has joined #ruby-lang
stevechiagozie has quit [Ping timeout: 246 seconds]
pablo_ has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby-lang
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
gnufied has joined #ruby-lang
drbrain has joined #ruby-lang
holgerno has joined #ruby-lang
holgerno has quit [Ping timeout: 245 seconds]
nick_h has quit [Ping timeout: 260 seconds]
drbrain has quit [Ping timeout: 265 seconds]
nick_h has joined #ruby-lang
stonerfish has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
mpan has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 244 seconds]
mjio has quit []
mercwithamouth has joined #ruby-lang
rippa has joined #ruby-lang
wallerdev_ has joined #ruby-lang
wallerdev has quit [Read error: Connection reset by peer]
wallerdev_ is now known as wallerdev
fire is now known as megharsh
s4muel_ has quit [Remote host closed the connection]
s4muel has joined #ruby-lang
ttilley has joined #ruby-lang
chendo_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
holgerno has joined #ruby-lang
drbrain has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
holgerno has quit [Ping timeout: 252 seconds]
Spaceghostc2c has quit [Excess Flood]
ivanoats has quit [Remote host closed the connection]
ivanoats has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
ramonmaruko has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
drbrain has quit [Ping timeout: 256 seconds]
nertzy2 has joined #ruby-lang
jaz-hands has joined #ruby-lang
ivanoats has quit [Ping timeout: 255 seconds]
nertzy3 has quit [Ping timeout: 246 seconds]
hexreel has quit [Ping timeout: 244 seconds]
rippa has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Asher2 has quit [Quit: Leaving.]
ebouchut has joined #ruby-lang
ebouchut has quit [Client Quit]
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
gsav has joined #ruby-lang
dhruvasagar has joined #ruby-lang
RyanScottLewis has quit [Remote host closed the connection]
gsav has quit [Ping timeout: 255 seconds]
ssl has joined #ruby-lang
gsav has joined #ruby-lang
davidbalbert is now known as davidbalber|away
jonahR has quit [Quit: jonahR]
rue has quit [Remote host closed the connection]
rue has joined #ruby-lang
rue_XIV has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
gsav has quit [Ping timeout: 244 seconds]
rue has quit [Ping timeout: 260 seconds]
drbrain has joined #ruby-lang
holgerno has joined #ruby-lang
hakunin has quit [Remote host closed the connection]
holgerno has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
havenn has joined #ruby-lang
drbrain has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 240 seconds]
<yorickpeterse>
Morning
havenn_ has joined #ruby-lang
havenn has quit [Ping timeout: 244 seconds]
vlad_starkov has quit [Remote host closed the connection]
xalei has joined #ruby-lang
t_ has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
sush24 has joined #ruby-lang
glebm has joined #ruby-lang
ssl has quit [Remote host closed the connection]
holgerno has joined #ruby-lang
drbrain has joined #ruby-lang
emocakes has joined #ruby-lang
gnufied has joined #ruby-lang
holgerno has quit [Ping timeout: 250 seconds]
Nisstyre-laptop has joined #ruby-lang
drbrain has quit [Ping timeout: 256 seconds]
ryanf has quit [Ping timeout: 244 seconds]
holgerno has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby-lang
francisfish has joined #ruby-lang
sush24 has joined #ruby-lang
Nisstyre-laptop has quit [Quit: Leaving]
dc5ala has joined #ruby-lang
chendo_ has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 246 seconds]
sush24 has quit [Ping timeout: 245 seconds]
ryanf has joined #ruby-lang
cyri_ has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
tdy has quit [Read error: Connection reset by peer]
leopard_me has quit [Quit: Computer has gone to sleep.]
larrylv_ has quit [Ping timeout: 246 seconds]
drbrain has quit [Ping timeout: 244 seconds]
AndChat| has quit [Read error: Connection reset by peer]
mpan has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
fire has joined #ruby-lang
ssl has quit [Remote host closed the connection]
havenn has joined #ruby-lang
linc01n has joined #ruby-lang
knu has quit [Remote host closed the connection]
Rarrrikins has quit [Remote host closed the connection]
<zzak>
i feel like one of those people who reads star magazine, and not just at the checkout but actually reads it
Rarrikins has joined #ruby-lang
<telemachus>
zzak: If it makes you feel any better, I'm still hitting refresh every few minutes to see if dhh has (1) fixed encoding on his site and (2) fixed the acent on à la carte
<chris2>
lol
knu has joined #ruby-lang
<telemachus>
(Yes, I sent him a message saying "Your acute accent should be a grave.")
<telemachus>
I'm that guy.
* telemachus
sighs
swav has joined #ruby-lang
<tockitj>
recommend me a vim plugin
<tockitj>
one you use often
<bougyman>
surround and repeat
<tockitj>
one that you feel changes way you work
Banistergalaxy has quit [Read error: Connection reset by peer]
<tockitj>
tpope, did wonderful job on surround & unimpaired
<injekt>
tetris.vim
<tockitj>
and pathogen and rails and vim-ruby and probably many more
<antbody>
easymotion
<tockitj>
what does easymotion do ?
<antbody>
Motions on crack
<bougyman>
tockitj: syntastic, too
<telemachus>
auto-pairs
<bougyman>
that's one of the ones that I just took to this year.
<antbody>
Zencoding is nice too and does haml as well.
<bougyman>
Supertab, of course.
Banistergalaxy has joined #ruby-lang
<zzak>
telemachus: that does make me feel better, thank you :D
<bougyman>
i just assume everyone's usig all of these.
<antbody>
tockitj: basically it maps each word for you with a letter and highlights it. You can move really quickly in files.
<antbody>
Check the github page, they have a demo there.
<telemachus>
zzak: You're welcome. I live to serve.
<zzak>
telemachus: you are a gentleman and a scholar, happy holidays
<tockitj>
supertab is nice.. but i never got around syntastic (it remaps c-d, c-u, c-f & c-e to strangely)
<injekt>
rue: that's you arguing with zed?
<telemachus>
Hah.
antbody has quit [Quit: leaving]
<telemachus>
rue: Lesson: rails is omakase and don't say no to Zed.
<telemachus>
There ends the lesson.
<tockitj>
antbody, i have normal mode commands in muscle memory - so i don't think i need easymotion
<apeiros_>
rue = eeppa?
<telemachus>
apeiros_: yes
swav has quit [Remote host closed the connection]
<injekt>
I did not know this
<apeiros_>
sometimes I'm blind, as it seems
briantrust has quit [Remote host closed the connection]
llaskin has left #ruby-lang [#ruby-lang]
Jake232 has joined #ruby-lang
<rue>
Should I go with rue{- ?
<telemachus>
See, that's the problem: you vary usernames and want to use your email everywhere.
jonahR has quit [Quit: jonahR]
<rue>
Yep, character flaw
stonerfish has joined #ruby-lang
<zzak>
noone is perfect
sush24 has joined #ruby-lang
chimkan has joined #ruby-lang
JohnBat26 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
chimkan has quit [Ping timeout: 250 seconds]
swav has joined #ruby-lang
zhul_mechanos has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
nick_h has quit [Ping timeout: 255 seconds]
ssl has joined #ruby-lang
ssl_ has joined #ruby-lang
ssl has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
blazes816 has joined #ruby-lang
swav has quit [Remote host closed the connection]
nick_h has joined #ruby-lang
jtoy has joined #ruby-lang
zz_chrismcg is now known as chrismcg
fire has quit [Quit: WeeChat 0.3.9.2]
drbrain has quit [Ping timeout: 260 seconds]
__butch__ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
larrylv has quit [Remote host closed the connection]
__butch__ has quit [Ping timeout: 250 seconds]
zarubin has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
zarubin has quit [Read error: Connection reset by peer]
zarubin has joined #ruby-lang
ryanf has joined #ruby-lang
fire has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
__butch__ has joined #ruby-lang
breakingthings has quit []
chrismcg is now known as zz_chrismcg
robbyoconnor has quit [Max SendQ exceeded]
robbyoconnor has joined #ruby-lang
dhsmith has joined #ruby-lang
swav has joined #ruby-lang
msch has quit [Ping timeout: 252 seconds]
hakunin has joined #ruby-lang
msch has joined #ruby-lang
larrylv has joined #ruby-lang
srbaker has joined #ruby-lang
swav has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 256 seconds]
<andrewvos>
Holiday is ending today :(
larrylv has quit [Ping timeout: 256 seconds]
<injekt>
BOO HOO
<andrewvos>
:(
benanne has joined #ruby-lang
fire has quit [Quit: WeeChat 0.3.9.2]
drbrain has joined #ruby-lang
banisterfiend has joined #ruby-lang
megharsh has joined #ruby-lang
drbrain has quit [Read error: Operation timed out]
io_syl has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has quit [Quit: sn0wb1rd]
__butch__ has quit [Quit: Leaving.]
briantrust has joined #ruby-lang
sepp2k has quit [Ping timeout: 255 seconds]
jtoy has quit [Quit: jtoy]
sandbags has quit [Read error: Connection reset by peer]
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
amroo has joined #ruby-lang
ivanoats has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
sandbags has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 246 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
__BigO__ has joined #ruby-lang
rdsm has joined #ruby-lang
havenn has quit [Ping timeout: 260 seconds]
mwjcomputing has quit [Quit: Leaving]
rindolf has joined #ruby-lang
breakingthings has joined #ruby-lang
sailias has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
gnufied has joined #ruby-lang
<rue>
Aww
briantrust has quit [Remote host closed the connection]
<rue>
I splurged, I’m off ’til Wednesday
voker57_ has joined #ruby-lang
voker57 has quit [Ping timeout: 260 seconds]
mksm has quit [Ping timeout: 265 seconds]
ivanoats has quit [Remote host closed the connection]
ssl_ has quit [Remote host closed the connection]
Jake232 has quit [Quit: Computer has gone to sleep.]
amroo has quit [Quit: amroo]
ryanf has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
briantrust has joined #ruby-lang
mksm has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
dhsmith has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
io_syl has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
srbaker has joined #ruby-lang
rdsm has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 260 seconds]
cyri_ has joined #ruby-lang
enebo has joined #ruby-lang
headius has joined #ruby-lang
wallerdev has joined #ruby-lang
kurko_ has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
briantrust has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
mksm has quit [Ping timeout: 255 seconds]
mksm has joined #ruby-lang
drbrain has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
Nisstyre-laptop has joined #ruby-lang
drbrain has quit [Ping timeout: 250 seconds]
Spaceghostc2c has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
Guest51135 has left #ruby-lang [#ruby-lang]
loincloth has joined #ruby-lang
<loincloth>
heyo
lsegal has joined #ruby-lang
<loincloth>
i have what i thought was a simple, lightweight script to do some things every 15 minutes.. ignoring specific libraries, is there anything general to Ruby that would explain why this script consumes as much CPU as it possibly can? https://gist.github.com/4391833
<loincloth>
it might be an issue with a specific library, but i want to look at general Ruby concerns for now
<loincloth>
it's running in a constant loop, so i expected some consistent CPU, but eventually creeping to almost 100% CPU and resting there seems odd
<loincloth>
there is no memory leak, just what seems like excessive CPU usage
<loincloth>
it's not as if my computer is locked up, though, even with two processes like that running.. but the process manager shows almost 100% CPU for both
rcvalle has quit [Quit: Leaving]
<ryanf>
loincloth: I don't really know why you would expect it to take less than 100% cpu
<ryanf>
it's a very tight loop
<ryanf>
you're telling it to just loop as fast as it can until the timer goes off
<rking>
loincloth: Probably just do: sleep 1
<rking>
loop do … sleep 1 end
<ryanf>
better yet, do "sleep [the number of seconds until you want it to happen again"
<ryanf>
]
<loincloth>
i'm not specifying anything about its loop speed.. i believe it will just go as fast as it can ;)
<loincloth>
ah, that's a good idea
<loincloth>
thanks you two
swav has quit [Remote host closed the connection]
<ryanf>
right, "as fast as it can" == 100% cpu
<rking>
Oh, sorry, yeah. sleep interval
<ryanf>
np
enebo has quit [Quit: enebo]
<rking>
Also I'd say: INTERVAL = 60 * 30 just to make it clear that it's a constant
headius has quit [Quit: headius]
sailias has quit [Quit: Leaving.]
<rindolf>
Hi all.
<rindolf>
So I've started writing this site in Jekyll and so far it seems really nice - http://vim.begin-site.org/ .
<whitequark>
ah, <%\n=begin\n%> works. but it's ugly through.
<Ober>
ahh
<Ober>
missed the importance of \n
vlad_starkov has quit [Read error: Connection reset by peer]
RubyHead has quit []
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
yfeldblum has joined #ruby-lang
drbrain has joined #ruby-lang
slyphon has joined #ruby-lang
reppard has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
drbrain has quit [Ping timeout: 252 seconds]
RubyHead has joined #ruby-lang
jtoy has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
jtoy_ has joined #ruby-lang
ssl has joined #ruby-lang
agile has quit [Quit: Ex-Chat]
Spaceghostc2c has joined #ruby-lang
jtoy has quit [Ping timeout: 245 seconds]
wyhaines has quit [Read error: Connection reset by peer]
jtoy_ is now known as jtoy
jtoy has quit [Client Quit]
wyhaines has joined #ruby-lang
solars has quit [Read error: Operation timed out]
breakingthings has quit []
scottschecter has joined #ruby-lang
Spaceghostc2c has quit [Excess Flood]
Spaceghostc2c has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
mhall has joined #ruby-lang
<mhall>
Hello all. A question on Ranges and Range like entities. Let's say I want to have Range such as 1,2,7 in addition to 1..7 or 1...7 . Is there a nice way of representing this or interpreting it without having to do something custom?
<heftig>
mhall: that's not a range
<heftig>
[1,2,7]
<heftig>
a range only has a startpoint an endpoint, and always contains everything in-between (optinally excluding the actual endpoint)
<mhall>
Right, I get why it isn't. But I'm trying to understand the further applications of the concept. Is there something in Pickaxe or elsewhere which explains the different methods of slicing that are possible?
<heftig>
mhall: slicing of what?
<mhall>
I've got a web service, where I'd like people to be able to pass me a Range, Comma list, or single Integer, that I'll be using to perform some operations on their behalf. In most cases they'll want to do it on a range of numbers. But I could see some cases where a handful of values would be desired in CSV style. So I was trying to see what possibilities existed natively, to avoid wheel reinvention.
<injekt>
mhall: you're parsing them from string form?
mercwithamouth has joined #ruby-lang
<mhall>
The input is JSON, so I can detect if they have supplied an Array, versus Integer, versus a String.
<injekt>
mhall: then I still have no idea what you need to do, you should provide an example of input and desired output
slyphon has quit [Ping timeout: 245 seconds]
<mhall>
It's a bit obtuse, I admit. Basically, the web service is a protocol mutator, and the user can specify which mutations I should run. So I was looking at the most flexible ways to allow them to do either a single mutation, or a range of mutations, or a few specific ones (CSV), and trying to think how I could neatly allow all of these.
<injekt>
mhall: blah blah blah
<injekt>
that's all i just saw
<mhall>
It's pretty clear how to allow a single one, if they supply a specific Integer, or a Range in a string. Comma separated is a bit trickier.
<injekt>
mhall: make it simple, you need a method to accept an input of a certain type and return something, right? what is that?
<lupine>
...?mutations=[....]
<lupine>
or the POST equivalent
briantrust has joined #ruby-lang
Rarrrikins has joined #ruby-lang
<mhall>
The input could be Integer, Array of Integer, or String (which could be a range or CSV of specific Integers). Then, the mutations would be played back, and some stuff would be returned along with HTTP 200 or an appropriate error code.
<mhall>
"Some stuff" -> statistics about what got played and how it went
<injekt>
that still doesn't help
<injekt>
'some stuff' is no less helpful than 'statistics about what got played and how it went'
<mhall>
The part I wasn't sure about, was if there was a good way of taking a String containing 1,3,5,42, and cleanly converting it to, for example, the Ruby object [1, 3, 5, 42] .
Rarrikins has quit [Ping timeout: 260 seconds]
<injekt>
string.split(/\s*,\s*/)
<injekt>
.map(&:to_i)
|Vargas| has quit [Ping timeout: 265 seconds]
<mhall>
Yeah, that does look good to me too.
<mhall>
Sometimes, you just need a bit of a hand to think through the best way. :)
<mhall>
Thanks!
slyphon has joined #ruby-lang
Darkspiel has joined #ruby-lang
Darkspiel has quit [Read error: Connection reset by peer]
briantrust has quit [Remote host closed the connection]
narya has joined #ruby-lang
narya_ has joined #ruby-lang
narya_ has quit [Client Quit]
<narya>
Hi thurr fellow humans. I am starting an affair with Ruby (don't tell Python) and I just finished reading "Why's (Poignant) Guide To Ruby". Now I am waiting for some other books to come by mail, but til then - any tips what I should do next? (I am guessing you get questions like these often.. sorry for that)
<lupine>
just write code, I'd say
<lupine>
do euler in ruby, if you don't have anything pressing to write
<narya>
my problem is, I am learning Ruby to be able to modify and contribute to this project
<lupine>
focus on being as idiomatically rubyish as possible
<narya>
so I don't really have "anything to write"
<lupine>
you probably already know how to program, after all
<narya>
i do : )
<banisterfiend>
narya: use pry to explore the ruby standard library, or explore any gems you're interested in
drbrain has quit [Ping timeout: 255 seconds]
<narya>
syntax highlighting just made me come. thanks for the quick responses
zhul_mechanos has quit [Quit: zhul_mechanos]
<darix>
banisterfiend: need more infos for the pry-coolline problem?
cyri_ has quit [Quit: cyri_]
<banisterfiend>
darix: nah, i already told the cool line author :)
<darix>
ah ok
<banisterfiend>
darix: it's due to there being nils in the completion list, your'e probably better off filing it here though in case he forgets: https://github.com/mon-ouie/coolline
jackhammer2022 has joined #ruby-lang
<darix>
aha Mon_Ouie
<darix>
banisterfiend: well i didnt anything evil to it!
mercwithamouth has quit [Ping timeout: 265 seconds]