This is a quick simple guide to getting jSpin setup for Mac and Linux.
You will need:
- Java (1.5 +)
This is a quick simple guide to getting jSpin setup for Mac and Linux.
You will need:
WebSockets is a modern HTML5 standard which makes communication between client and server a lot more simpler than ever. We are all familiar with the technology of sockets. Sockets have been fundamental to network communication for a long time but usually the communication over the browser has been restricted. The general restrictions
HTTP provides two ways for servers to control client-side caching of page components:
This breaks down as follows:
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
| 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 |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
| formátování <fieldset> a <legend> je opravdu vojeb. veškerá řešení, | |
| která jsem našel vyžadovala přidat do kódu nějaké pomocné <div>y nebo | |
| <span>y. takové řešení mi ale nevyhovuje | |
| nakonec jsem dospěl k tomuto. vypadá na pixel stejně ve všech novějších | |
| prohlížečích včetně IE7. v IE6 a starších (bez selektorů + a >) nefunguje | |
| falešný padding |
| var fs = require('fs') | |
| , path = require('path') | |
| , _ = require('underscore'); | |
| var rootPath = "/path/to/remove"; | |
| removeDirForce(rootPath); | |
| // path should have trailing slash | |
| function removeDirForce(dirPath) { | |
| fs.readdir(dirPath, function(err, files) { |