yianna has quit [Remote host closed the connection]
kogent has joined #ruby-lang
kogent has quit [Client Quit]
yianna has joined #ruby-lang
heftig has quit [Quit: Quitting]
kurko__ has quit [Ping timeout: 245 seconds]
slyphon has quit [Quit: slyphon]
mistym has joined #ruby-lang
kurko__ has joined #ruby-lang
heftig has joined #ruby-lang
slyphon has joined #ruby-lang
amerine has joined #ruby-lang
yianna has quit [Remote host closed the connection]
ohcomely has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
ohcomely has quit [Ping timeout: 248 seconds]
davidbalber|away is now known as davidbalbert
gix has quit [Ping timeout: 252 seconds]
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
heftig has quit [Client Quit]
heftig has joined #ruby-lang
gix has joined #ruby-lang
gix has quit [Ping timeout: 264 seconds]
fleishters has joined #ruby-lang
<fleishters>
hi all
gix has joined #ruby-lang
<fleishters>
i'm building a site using middleman, and although there is an easy way to paginate blog posts, there is no built-in support for paginating other content
<fleishters>
(either that, or the documentation is really buried somewhere)
<fleishters>
trying to write my own. i have a directory filled with files labeled %Y-%m-%d, and I want each page to display a "next" link for the next chronological page
<fleishters>
i was able to filter the output to dates greater than the current pages date and less than, but how do I only get the output of the first one?
davidbalbert is now known as davidbalber|away
Guest16060 has quit [Ping timeout: 245 seconds]
idkazuma has joined #ruby-lang
ryanf has quit [Ping timeout: 248 seconds]
ryanf has joined #ruby-lang
fleishters has quit [Quit: Lost terminal]
r0bgleeson has quit [Ping timeout: 256 seconds]
amerine has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby-lang
sush24 has quit [Ping timeout: 252 seconds]
yianna has joined #ruby-lang
slyphon has quit [Quit: slyphon]
sush24 has joined #ruby-lang
ohcomely has joined #ruby-lang
cored has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
ohcomely has quit [Ping timeout: 248 seconds]
kgrz has joined #ruby-lang
yianna has quit [Remote host closed the connection]
ddd has joined #ruby-lang
kgrz has quit [Ping timeout: 264 seconds]
ddd is now known as Guest87249
kurko__ has quit [Ping timeout: 244 seconds]
wmoxam has quit [Remote host closed the connection]
francisfish has quit [Read error: Connection reset by peer]
stonerfish has joined #ruby-lang
srbaker has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
MaddinXx has joined #ruby-lang
io_syl has joined #ruby-lang
enebo has joined #ruby-lang
enebo has quit [Client Quit]
miraks has quit []
jtoy has joined #ruby-lang
<jtoy>
I'm trying to coordinate unwrapping 100million shortened urls between a cluster, what would you guys recommend to use as a fast mechanism to get the messages between the ruby programs, I'm thinking about using beanstalk, is there something faster/better I should use?
yfeldblum has quit [Ping timeout: 248 seconds]
xcombelle has joined #ruby-lang
yfeldblum has joined #ruby-lang
ddd has joined #ruby-lang
ddd is now known as Guest54235
<whitequark>
jtoy: amqp
<jtoy>
whitequark: cool, looking now
<darix>
jtoy: zeromq
<jtoy>
would this be actually after than beanstalk? all I'm sending is lists of urls
srbaker has quit [Quit: Computer has gone to sleep.]
b1rkh0ff has joined #ruby-lang
AndChat| has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 255 seconds]
Banistergalaxy has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby-lang
kurko__ has joined #ruby-lang
kurko___ has joined #ruby-lang
ruurd has joined #ruby-lang
carloslopes has joined #ruby-lang
srbaker has joined #ruby-lang
adambeynon has joined #ruby-lang
tonni has joined #ruby-lang
slyphon has joined #ruby-lang
kgrz has joined #ruby-lang
stevechiagozie has joined #ruby-lang
jxie has joined #ruby-lang
x0F_ has joined #ruby-lang
x0F has quit [Disconnected by services]
MartynKeigher has joined #ruby-lang
x0F_ is now known as x0F
lun_ has quit [Ping timeout: 252 seconds]
spectra has quit [Ping timeout: 256 seconds]
avicenna has joined #ruby-lang
slyphon has quit [Quit: slyphon]
<avicenna>
hello, i am using ruby 1.9.3 latest patch with -w: i still get block-level variable warning while using |var1; var2| ... is this the normal behavior?
MaddinXx has quit [Remote host closed the connection]
<Smol>
avicenna: you need to separate the block variables with a comma
<Smol>
not with a semicolon
<avicenna>
sorry maybe i am not so clear: i am following a pickaxe example in which it says 1.9 block vars as different from out of block vars with same name if i use a ';' before the vars between || ...
<avicenna>
so, if i get a warning it means that ';' has no actual meaning to block since both ';' and ',' would give off the same warning: shadowing an outer local variable
srbaker has quit [Quit: Computer has gone to sleep.]
telemachus has left #ruby-lang [#ruby-lang]
<apeiros_>
Smol: ; is new 1.9 syntax
<apeiros_>
to separate block-local variables
lun_ has joined #ruby-lang
<apeiros_>
e.g. x = 1; 5.times do |i| x = i end; x # => 4
<apeiros_>
x = 1; 5.times do |i; x| x = i end; x # => 1
francisfish has joined #ruby-lang
<avicenna>
yeah ... that's what i am after
<avicenna>
i am using this syntax but with -w on it gives off the warning, while it should suppress it since i used the ';'
srbaker has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
sush24 has joined #ruby-lang
<avicenna>
apeiros_: do you think it is a bug?
<Smol>
ah okay, I misunderstood
gix has quit [Ping timeout: 276 seconds]
<avicenna>
btw my ruby is 1.9.3p385
AndChat| has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
<apeiros_>
avicenna: don't know what the intended behavior is
<apeiros_>
but it seems to be pointless to warn about something which the user explicitly marked as known
sepp2k1 has quit [Remote host closed the connection]
<zzak>
ape!
<apeiros_>
zz
Mon_Ouie has quit [Ping timeout: 276 seconds]
gix has joined #ruby-lang
slyphon has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
yobiflare has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
dzhulk has joined #ruby-lang
srbaker has joined #ruby-lang
yobiflare has quit [Ping timeout: 276 seconds]
srbaker has quit [Client Quit]
tbuehlmann has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
srbaker has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
savagecroc has joined #ruby-lang
<savagecroc>
how can i continously write to a file
<savagecroc>
so if the process terminates i still have all the data
<savagecroc>
in the file that is
imajes has quit [Excess Flood]
maxmanders has quit [Quit: Computer has gone to sleep.]
thufir_ has joined #ruby-lang
imajes has joined #ruby-lang
tbuehlmann has joined #ruby-lang
beiter has quit [Quit: beiter]
<apeiros_>
savagecroc: see IO#flush and IO#sync=
<savagecroc>
ah cool
<savagecroc>
chears
<Smol>
IO#fsync as well
<savagecroc>
cheers :D
Banistergalaxy has quit [Ping timeout: 240 seconds]
<apeiros_>
class IO; def portable_sync; flush; begin fsync resuce NotImplementedError end end end
harper_ has quit [Ping timeout: 248 seconds]
datanoise has joined #ruby-lang
sailias has quit [Client Quit]
benanne has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby-lang
ruurd has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
mercwith1mouth has joined #ruby-lang
mercwithamouth has joined #ruby-lang
lsegal has joined #ruby-lang
benanne has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
<eam>
fsync is drastically more expensive than flush. If you just want to ensure the data exists after the process terminates (vs kernel terminating) you should just use flush
mwjcomputing has joined #ruby-lang
JohnBat26 has joined #ruby-lang
spuk has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
MartynKeigher has quit [Excess Flood]
slyphon has quit [Quit: slyphon]
srbaker_ has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
srbaker_ has quit [Read error: Connection reset by peer]
<savagecroc>
eam: right
srbaker has joined #ruby-lang
MartynKeigher has joined #ruby-lang
mistym has joined #ruby-lang
<savagecroc>
haha 18hrs straight at the office now.. so i think i'll leave it with the fsync
<savagecroc>
it is working :)
sush24 has quit [Quit: This computer has gone to sleep]
ruurd has quit [Quit: Leaving...]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
avicenna has left #ruby-lang ["Leaving..."]
d3vic3 has quit [Quit: leaving]
tenderlove has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
amerine has joined #ruby-lang
Nisstyre-laptop has quit [Read error: Connection reset by peer]
tdy has quit [Quit: WeeChat 0.4.0]
tdy has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
glebm has joined #ruby-lang
swav has quit [Read error: Connection reset by peer]
swav has joined #ruby-lang
spectra has joined #ruby-lang
carloslopes has joined #ruby-lang
s1n4 has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
amerine has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
ruurd has joined #ruby-lang
tbuehlmann has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
intellitech has quit [Read error: Operation timed out]
carloslopes has joined #ruby-lang
r0bgleeson has joined #ruby-lang
yianna has joined #ruby-lang
maxmanders has joined #ruby-lang
arubin has joined #ruby-lang
ryanf has joined #ruby-lang
beho has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 248 seconds]
wallerdev has joined #ruby-lang
Guest54235 has quit [Read error: Connection reset by peer]
workmad3 has quit [Read error: Operation timed out]
ddd has joined #ruby-lang
ddd is now known as Guest41942
thufir_ has quit [Quit: Leaving.]
jtoy has joined #ruby-lang
yianna has quit [Remote host closed the connection]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
marcopod has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
beho has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
adambeynon has joined #ruby-lang
tylersmith has joined #ruby-lang
swav_ has joined #ruby-lang
swav has quit [Ping timeout: 248 seconds]
savagecroc has quit [Remote host closed the connection]
adambeynon has quit [Client Quit]
MartynKeigher has quit [Excess Flood]
joevandyk has quit [Quit: joevandyk]
havenwood has joined #ruby-lang
MartynKeigher has joined #ruby-lang
<ironcamel>
i'm building a sandboxing application that will allow users to run arbitrary code in their language of choice. for ruby users, should i provide version 1.8 or 1.9? which is more used by the ruby community?
<whitequark>
ironcamel: 1.9.
<whitequark>
1.8 is deprecated and dead.
<ironcamel>
really, i had the impression that most of ruby gems still need 1.8
<whitequark>
ironcamel: that is certainly false
<ironcamel>
ok, that's good to know
<whitequark>
there are only few gems which require 1.8, and almost all, if not all, of those fix bugs in the ruby 1.8 itself
<ironcamel>
and rails has been ported to 1.9?
<whitequark>
rails in fact requires 1.9 these days
<ironcamel>
ah
<havenwood>
ironcamel: 2.0.0 will be released one week from today! Rails 4 ONLY runs on 1.9+.
jonahR has joined #ruby-lang
stevechiagozie has joined #ruby-lang
<havenwood>
ironcamel: Rails 4 runs great on 2.0, not at all on 1.8.
<ironcamel>
will 2.0 have any new exciting features? is there a changelog or something for it