Skip to content

Instantly share code, notes, and snippets.

<!-- iOS Device Startup Images -->
<!-- iPhone/iPod Touch Portrait – 320 x 460 (standard resolution) -->
<link rel="apple-touch-startup-image" href="images/ios/iphone-startup-320-460.png" media="screen and (max-device-width: 320px) and (-webkit-min-device-pixel-ratio: 1)" />
<!-- iPhone/iPod Touch (high-resolution) Portrait – 640 x 920 pixels -->
<link rel="apple-touch-startup-image" href="images/ios/iphone-startup-640-920.png" media="screen and (max-device-width: 320px) and (-webkit-min-device-pixel-ratio: 2)" />
<!-- iPad Landscape 1024x748 -->
<link rel="apple-touch-startup-image" sizes="1024x748" href="images/ios/ipad-startup-1024-748.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio: 1)" />
1. Plug in external HD
2. In WHS Console go to "Server Storage" tab
3. Wait until you see the external HD appear in "Server Backup Hard Drives" section
4. In WHS Console go to "Computer & Backup" tab
5. Select "<whs> - Your home server" in the list of machines
6. Click "Backup Now"
7. Wait for backup to complete
8. Go back to "Server Storage" tab and
9. Disconnect external HD
BEGIN {
FS = ","
bytes_created = 0
bytes_wrote = 0
bytes_deleted = 0
}
$4 == "createFile" {
bytes_field_length = length($10)
bytes_created += substr($10, 3, bytes_field_length-3)
<?php
/**
* do the same than parse_str without max_input_vars limitation
* @param $string array string to parse
* @return array query parsed
**/
function my_parse_str($string) {
$result = array();
// find the pairs "name=value"
Note: Tested in Elementary OS Luna
1- Download the firmware from: http://www.broadcom.com/support/802.11/linux_sta.php
2- Unzip a move to dir
3- make
4- Uninstall previous versions:
cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_APP_NAME"
package ;
import cpp.Lib;
import haxe.Int64;
/**
* A square root approximator.
*
* @author lemon42
*/
<?php
/*
* Plugin Name: EDD Double Pagination
*/
function pw_edd_duplicate_pagination() {
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
test("Using a real child actor") {
val underTest = TestActorRef(new ParentActor(actorFactory => actorFactory.actorOf(Props[ChildActor])))
underTest ! "Go do some work"
// Can't test this but shows how to crate a ParentActor in production code
}
NSUInteger lengthA = [a length];
NSUInteger lengthB = [b length];
NSUInteger keyLength = lengthA + lengthB + 1;
assert(keyLength * sizeof(unichar) < SOME_REASONABLE_MAXIMUM_FOR_STACK_ALLOCATION);
unichar cat[keyLength];
[a getCharacters:cat range:NSMakeRange(0, lengthA)];
cat[lengthA] = '.';
[b getCharacters:cat + lengthA + 1 range:NSMakeRange(0, lengthB)];
NSString *key = [[NSString alloc] initWithCharactersNoCopy:cat length:keyLength freeWhenDone:NO];
... [dict objectForKey:key];