| --- Actions --- | |
| $Copy <M-C> | |
| $Cut <M-X> <S-Del> | |
| $Delete <Del> <BS> <M-BS> | |
| $LRU | |
| $Paste <M-V> | |
| $Redo <M-S-Z> <A-S-BS> | |
| $SearchWeb <A-S-G> | |
| $SelectAll <M-A> | |
| $Undo <M-Z> |
| var $ = require('NodObjC'); | |
| $.import('Cocoa'); | |
| var installNSBundleHook = function() { | |
| var cls = $.NSBundle; | |
| if (cls) { | |
| var bundleIdentifier = cls.getInstanceMethod('bundleIdentifier'); | |
| bundleIdentifier.setImplementation(function(val) { |
| // Traverses an arbitrary struct and translates all stings it encounters | |
| // | |
| // I haven't seen an example for reflection traversing an arbitrary struct, so | |
| // I want to share this with you. If you encounter any bugs or want to see | |
| // another example please comment. | |
| // | |
| // The MIT License (MIT) | |
| // | |
| // Copyright (c) 2014 Heye Vöcking | |
| // |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| #include <string.h> | |
| #include <ctype.h> | |
| #include <SoftwareSerial.h> | |
| // the Bluetooth Shield connects to Pin D9 & D10 | |
| SoftwareSerial bt(9,10); | |
| const uint8_t req[5] = {0x00, 0x01, 0x00, 0x11, 0x00}; | |
| const uint8_t cap[17] = {0x00, 0x0d, 0x00, 0x11, 0x01, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x32}; | |
| const uint8_t ping[9] = {0x00, 0x05, 0x07, 0xd1, 0x00, 0xde, 0xad, 0xbe, 0xef}; |
| tim@touchsmart:~/Code$ nvm use v0.11.2-generators | |
| Now using node v0.11.2-generators | |
| tim@touchsmart:~/Code$ node --harmony testgen.js | |
| <Buffer 76 61 72 20 66 73 20 3d 20 72 65 71 75 69 72 65 28 27 66 73 27 29 3b 0a 66 75 6e 63 74 69 6f 6e 20 72 65 61 64 46 69 6c 65 28 70 61 74 68 2c 20 65 6e 63 ...> | |
| Sleeping for 2000ms... | |
| Done |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Needs freetype-py>=1.0 | |
| # For more info see: | |
| # http://dbader.org/blog/monochrome-font-rendering-with-freetype-and-python | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2013 Daniel Bader (http://dbader.org) |
I see this error when I try to suspend an Ubuntu 10 guest in Fusion:
The request to Suspend this virtual machine failed because the corresponding VMware Tools script did not run successfully.
If you have configured a custom suspend script in this virtual machine, make sure that it contains no errors. Attempting the operation again will ignore the script failure. You can also submit a support request to report this issue.
As the dialog states, the second time you try to suspend the VM it ignores the non-zero return code of the script and it seems to work. But it's annoying.
The problem appears to not be VMware actually, but Ubuntu (or Ubuntu's service script). I tried to figure out where exactly Ubuntu's initctl configuration/scripts is broken to no avail but found a work-around that I'm happy with.

