psql postgres
CREATE USER rondy WITH PASSWORD 'rondy'; ALTER USER rondy CREATEDB;
The list below includes 3098 deleted tweets by rjs.
There are also 2 tweets that are indicated as not currently deleted by the Twitter API that have been scraped from pages of deleted tweets (as replies, etc.). These possibly undeleted tweets are included for context and are indicated by a (live) link.
class Hash | |
def self.to_ostruct(nested_hash_object) | |
require 'json' | |
require 'ostruct' | |
JSON.parse(nested_hash_object.to_json, object_class: OpenStruct) | |
end | |
def to_ostruct | |
self.class.to_ostruct(self) |
Um dos assuntos que mais levantados nas primeiras semanas de um novo desenvolvedor na Plataformatec é sobre o uso de callbacks do ActiveRecord. Neste post, vou descrever um cenário prático que oriente quando o uso de callbacks é bem-vindo ou quando eles deveriam ser evitados. A ideia é ter, ao final, um modelo mental que indique quando seguir um dos caminhos possíveis. (spoiler: o modelo mental vai ser fundamentado em uma boa prática de design de software).
Imagine que, em um software fictício, exista uma funcionalidade "registrar pessoas" com os seguintes requisitos:
"999.999.999-99"
, esse valor deve ser persistido como "99999999999"
).http://www.shmula.com/queueing-theory/
http://ferd.ca/queues-don-t-fix-overload.html
https://news.ycombinator.com/item?id=8632043
https://thetechsolo.wordpress.com/2015/01/25/queueing-theory-explained/
http://people.revoledu.com/kardi/tutorial/Queuing/index.html
http://setosa.io/blog/2014/09/02/gridlock/index.html
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.