A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
// Found in this issue thread https://github.com/jinzhu/gorm/issues/516#issuecomment-109055198 | |
// License unknown | |
// | |
// | |
// Postgres' JSONB type. It's a byte array of already encoded JSON (like json.RawMessage) | |
// which also saves itself correctly to PG's jsonb type. It would probably also work on | |
// PG json types. | |
type JSONB []byte | |
func (j JSONB) Value() (driver.Value, error) { |
for_window [class="^.*"] border pixel 0 | |
new_window 1pixel |
# Install the LMD | |
wget https://tinyurl.com/qdcfm2v | |
tar xfz maldetect-current.tar.gz | |
cd maldetect-* | |
sudo ./install.sh | |
# Edit with your fav editor the config file | |
vim /usr/local/maldetect/conf.maldet | |
# The following settings are recommended to change |
class Body | |
def ego | |
ego || NullBeing.new.ego | |
end | |
end | |
class NullBeing | |
def ego | |
# "In the end, we are self-perceiving, | |
# self-inventing, locked-in mirages |
... | |
dispatch( | |
anAction( | |
someMiddleware.anFunction(response.data) | |
) | |
) | |
... |