Top "Block" questions

DO NOT USE This tag is scheduled for removal because it can refer to many different things depending on the use of other tags with it.

How to see if a pipe is empty

Assuming a pipe, int pipe_fd[2]; pipe(pipe_fd); We fork, and expect that one process will write into the …

c block pipe blocking
PostgreSQL: invalid page header in block

I'm getting an Error ERROR: invalid page header in block 411 of relation "t_value_time" in my PostgreSQL database. This …

postgresql block
Best explanation of Ruby blocks?

What is the best explanation for Ruby blocks that you can share? Both usage and writing code that can take …

ruby block
Difference Between 'display: block; float: left' vs. 'display: inline-block; float: left'?

Is there a practical difference between whether a left-floated element (say, and image) has display: inline-block; applied to it, as …

html css-float block css
How to use NSURLConnection completionHandler with swift

Does anybody know how handlers (blocks) work in swift? I am trying to get this code running but i can't …

block nsurlconnection swift
Change the context/binding inside a block in ruby

I have a DSL in Ruby that works like so: desc 'list all todos' command :list do |c| c.desc …

ruby metaprogramming block
Loop & output content_tags within content_tag in helper

I'm trying a helper method that will output a list of items, to be called like so: foo_list( ['item_…

ruby-on-rails ruby-on-rails-3 helper block
What does to_proc method mean?

I am learning rails and following this thread. I am stuck with the to_proc method. I consider symbols only …

ruby syntax block symbols proc
Django - "Include" a block in several templates? Template tag? Something else?

I have a little statistics block that I want to be available in several places: the profile page of a …

django block django-templates
block syntax difference causes "LocalJumpError: no block given (yield)"

Saw a strange case come up, trying to figure out what is happening here: > def test > p yield &…

ruby block