TL;DR
9.4 -> 9.5:
sudo pg_dropcluster 9.5 main --stop
sudo service postgresql stop
sudo pg_upgradecluster -m upgrade -k 9.4 main
sudo su postgres -c "/usr/lib/postgresql/9.5/bin/vacuumdb --all --analyze-in-stages"
sudo pg_dropcluster 9.4 main| import click | |
| import struct | |
| import socket | |
| BLOCK_SIZE = 0x5758 | |
| GROUP = "225.1.1.1" | |
| @click.command() | |
| @click.option("--port", type=int) |
TL;DR
9.4 -> 9.5:
sudo pg_dropcluster 9.5 main --stop
sudo service postgresql stop
sudo pg_upgradecluster -m upgrade -k 9.4 main
sudo su postgres -c "/usr/lib/postgresql/9.5/bin/vacuumdb --all --analyze-in-stages"
sudo pg_dropcluster 9.4 mainWondering what the current standings are for the Responsive Images Community Group’s efforts? Look no further.
Bug 870021 Summary: Implement srcset attribute on img CLOSED: WONTFIX:
https://bugzilla.mozilla.org/show_bug.cgi?id=870021
Bug 870022 Implement picture element:
https://bugzilla.mozilla.org/show_bug.cgi?id=870022
| # Get a list of all the bugs you fixed: | |
| hg log -u your@email.com --template '{date|isodate}: {desc}\n' | |
| # it doesn't filter out the merges, backouts, etc. | |
| # Add this to your hgrc: | |
| [alias] | |
| mybugs = log -u your@email.com --template '{date|isodate}: {desc}\n' | |
| hg mybugs |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| 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 |
| Basey = OpenLayers.Class(OpenLayers.Control, { | |
| layerStates: null, | |
| layersDiv: null, | |
| ascending: true, | |
| initialize: function(options) { | |
| OpenLayers.Control.prototype.initialize.apply(this, arguments); | |
| this.layerStates = []; | |
| }, |
| /*! | |
| An experiment in getting accurate visible viewport dimensions across devices | |
| (c) 2012 Scott Jehl. | |
| MIT/GPLv2 Licence | |
| */ | |
| function viewportSize(){ | |
| var test = document.createElement( "div" ); | |
| test.style.cssText = "position: fixed;top: 0;left: 0;bottom: 0;right: 0;"; |
| /* | |
| * This is a simple library agnostic example of Flickr's three step map zoom. | |
| * In this example we are using the open mapquest static map api. Preloading | |
| * of second and third map images can be done before mouseover to make their | |
| * first display smoother. | |
| */ | |
| <style> | |
| #map_container { | |
| width:300px; |
| from django.db.models.query import QuerySet | |
| from django.db.models import Manager | |
| from django.contrib.contenttypes.models import ContentType | |
| from django.contrib.contenttypes.generic import GenericForeignKey | |
| class GFKManager(Manager): | |
| """ | |
| A manager that returns a GFKQuerySet instead of a regular QuerySet. | |
| """ |
| import copy | |
| class gloss(dict): | |
| """ | |
| A dictionary like object that supports attribute access, too. | |
| >>> import pickle | |
| >>> s = gloss(a=123) | |
| >>> c = s.copy() |