- Intel Core i7 4820K Extreme Quad Core CPU Retail (Socket 2011, 3.70GHz, 10MB, 130W, Unlocked and Unleashed, Hyper-Threading Technology) Amazon
£225.00 - Intel Core i7 4930K Extreme Hex Core CPU Retail (Socket 2011, 3.40GHz, 12MB, 130W, Hyper-Threading Technology, Virtualisation for Directed I/O) Amazon, CPUBoss
£420.88 - (Current) Intel i7-5820K Extreme Hex Core CPU Processor (3.30GHz, 15MB Cache, 140W, Socket 2011-V3, 28 Lanes PCI Express Generation 3) Amazon [CPUBoss](http://cpuboss.com/cpus/Intel-Core-i7
I hereby claim:
- I am ChuckJHardy on github.
- I am chuckjhardy (https://keybase.io/chuckjhardy) on keybase.
- I have a public key whose fingerprint is E844 1C85 614A F72D BCAF DCCF 1C0C 9E38 A5B4 C37C
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>Map Function keys to match Apple</name> | |
| <identifier>private.itunes_fkeys</identifier> | |
| <autogen>__KeyToConsumer__ KeyCode::F1, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen> | |
| <autogen>__KeyToConsumer__ KeyCode::F2, ConsumerKeyCode::BRIGHTNESS_UP</autogen> | |
| <autogen>__KeyToKey__ KeyCode::F3, KeyCode::EXPOSE_ALL</autogen> | |
| <autogen>__KeyToKey__ KeyCode::F4, KeyCode::LAUNCHPAD</autogen> | |
| <autogen>__KeyToConsumer__ KeyCode::F5, ConsumerKeyCode::KEYBOARDLIGHT_LOW</autogen> |
I noticed the boot time for the application was very slow. Here are the actions and steps I took to decrease it.
The first think I needed to do was benchmark how long each bit of code took to be required by the application. I used a script I found on Google to help.
Combining and adding all the require times together you can see that it take almost a minute to load everything.
$ ruby AddTimes_0.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package co.uk.myapp.beachroidtest; | |
| import android.app.Fragment; | |
| import android.app.Instrumentation; | |
| import android.test.ActivityInstrumentationTestCase2; | |
| import android.test.TouchUtils; | |
| import android.test.ViewAsserts; | |
| import android.view.View; | |
| public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'delegate' | |
| class CarDecorator < SimpleDelegator | |
| def self.decorate(objects) | |
| objects.map { |object| new(object) } | |
| end | |
| def car | |
| __getobj__ | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| var express = require('express'), | |
| app = express(), | |
| http = require('http'), | |
| server = http.createServer(app), | |
| path = require('path'), | |
| io = require('socket.io').listen(server), | |
| fs = require('fs'), | |
| zmq = require('zmq'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Generated on 2013-09-27 using generator-angular 0.4.0 | |
| 'use strict'; | |
| var path = require('path'); | |
| // # Globbing | |
| // for performance reasons we're only matching one level down: | |
| // 'test/spec/{,*/}*.js' | |
| // use this if you want to recursively match all subfolders: | |
| // 'test/spec/**/*.js' |
Install the following requirements:
brew info zeromq
npm install zmq
npm install socket.io
gem install ffi-rzmq
Within the app directory run the following commands in different panes.
ruby worker.rb