http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
Type | Protocol | Port Range | Destination |
---|---|---|---|
SSH | TCP | 22 | 0.0.0.0/0 |
http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
Type | Protocol | Port Range | Destination |
---|---|---|---|
SSH | TCP | 22 | 0.0.0.0/0 |
sudo -i
#Build webapp key
sudo -Hu webapp ssh-keygen -t rsa # choose "no passphrase"
or
<?php | |
/* | |
* Because we are removing the ending `=` padding we will have a string length of | |
* md5 <= 24 | |
* sha1 <= 28 | |
* | |
* Probably should just remove the code that trims the equal sign since it's kind of pointless.... | |
*/ |
It seems that it does not matter what timezone is on the server as long as you have the time set right for the current timezone, know the timezone of the datetime columns that you store, and are aware of the issues with daylight savings time.
On the other hand if you have control of the timezones of the servers you work with then you can have everything set to UTC internally and never worry about timezones and DST.
Here are some notes I collected of how to work with timezones as a form of cheatsheet for myself and others which might influence what timezone the person will choose for his/her server and how he/she will store date and time.
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
img{ | |
min-width: 100%; | |
height: auto; | |
} | |
.content{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
bottom: 0; |
<?php | |
// https://rbrundritt.wordpress.com/2009/07/21/determining-best-map-view-for-an-array-of-locations/ | |
// Calculates the best map view for a list of locations for a map | |
// | |
// locations = List of location objects | |
// map_width = Map width in pixels | |
// map_height = Map height in pixels | |
// buffer = Width in pixels to use to create a buffer around the map. This is to keep pushpins from being cut off on the edge | |
// | |
// Returns a MapViewSpecification with the best map center point and zoom level for the given set of locations |