博文

目前显示的是 2016的博文

daemon program using free pascal

{--------------------------------------------------------------------------- CncWare (c) Copyright 2000 --------------------------------------------------------------------------- Filename..: daemon.pp Programmer: Ken J. Wright Date......: 03/21/2000 Purpose - Program to demonstrate construction of a Linux daemon. Usage: 1) Compile this program. 2) Run it. You will be immediately returned to a command prompt. 3) Issue the command: ps ax|grep daemon. This will show you the process id of the program "daemon" that you just ran. 4) Issue the command: tail -f daemon.log. This let's you watch the log file being filled with the message in the code below. Press Ctrl/c to break out of the tail command. 5) Issue the command: kill -HUP pid. pid is the process number you saw with the ps command above. You will see that a new log file has been created. ...

implement a microsecond resolution Delay? (微秒级延迟)

implement a microsecond resolution Delay? (微秒级延迟) https://github.com/fundamentalslib/fundamentals5/tree/master/Source http://robotics.stackexchange.com/questions/7502/control-both-velocity-and-position-linear-actuator/7512#7512 http://electronics.stackexchange.com/questions/38573/smooth-a-motor-movement http://delphi.cjcsoft.net//viewthread.php?tid=391 http://guy.carpenter.id.au/gaugette/2012/01/26/simplified-acceleration-model/ implement a microsecond resolution Delay?  Author: Lemy   Homepage: http://www.swissdelphicenter.com  0 Comments to this tip [Write new comment]  [ Print tip ]      Tip Rating (8):            epicTimer.pas // Wait 0.2ms procedure PerformanceDelay; var   hrRes, hrT1, hrT2, dif: Int64; begin   if QueryPerformanceFrequency(hrRes) then   begin     QueryPerformanceCounter(hrT1);     repeat       Qu...

Aurelia withDEMO Northwind

https://github.com/jdanyow/aurelia-breeze-northwind

Angular promise explained

http://www.dwmkerr.com/promises-in-angularjs-the-definitive-guide/

Aurelia vs Angular New Framework

http://aurelia.io

Mobile Chrome Debug

Original Answer: I have the S3 and it works fine. I have found that a common mistake is not enabling USB Debugging in Chrome mobile. Not only do you have to enable USB debugging on the device itself under developer options but you have to go to the Chrome Browser on your phone and enable it in the settings there too.  Try this with the SDK Chrome for Mobile - Settings > Developer Tools > [x] Enable USB Web debugging Device - Settings > Developer options > [x] USB debugging Connect Device to Computer Enable port forwarding on your computer by doing the following command below C:\adb forward tcp:9222 localabstract:chrome_devtools_remote Go to  http://localhost:9222  in Chrome on your Computer TroubleShooting: If you get  command not found  when trying to run  ADB , make sure Platform-Tools is in your path or just use the whole path to your SDK and run it C : \path - to - SDK\platform - tools\adb forward tcp : 9222 localabstr...

Angular HTTP interceptor

http://onehungrymind.com/winning-http-interceptors-angularjs/ http://www.webdeveasy.com/interceptors-in-angularjs-and-useful-examples/

Ionic using sqlite

https://www.thepolyglotdeveloper.com/2014/11/use-sqlite-instead-local-storage-ionic-framework/

dynamic grid system

http://susy.oddbird.net/demos/ do not get locked into bootstrap or any grid system

IONIC Tutorial Collection

Official http://ionicframework.com/docs/v2/getting-started/tutorial/project-structure/ http://mcgivery.com/structure-of-an-ionic-app/ http://mcgivery.com/controllers-ionicangular/

Mini and Powerful MVP riot.js

http://www.oschina.net/translate/riotjs-the-1kb-mvp-framework

Headless Browser Collestion

https://gist.github.com/evandrix/3694955 https://github.com/dhamaniasad/HeadlessBrowsers Here are a list of headless browsers that I know about: HtmlUnit  - Java. Custom browser engine. JavaScript support/DOM emulated. Open source. Ghost  - Python only. WebKit-based. Full JavaScript support. Open source. Twill  - Python/command line. Custom browser engine. No JavaScript. Open source. PhantomJS  - Command line/all platforms. WebKit-based. Full JavaScript support. Open source. Awesomium  - C++/.Net/all platforms. Chromium-based. Full JavaScript support. Commercial/free. SimpleBrowser  - .Net 4/C#. Custom browser engine. No JavaScript support. Open source. ZombieJS  - Node.js. Custom browser engine. JavaScript support/emulated DOM. Open source. EnvJS  - JavaScript via Java/Rhino. Custom browser engine. JavaScript support/emulated DOM. Open source. Watir-webdriver  with  headless gem  - Ruby via WebDriver. Full JS Suppo...

Survival Guide - Encryption, Authentication

图片
http://www.zytrax.com/tech/survival/ssl.html http://www.zytrax.com/tech/survival/encryption.html This is a survival guide covering the mind-numbing topics of Cryptography, Encryption, Authorization and Authentication. For the mathematically challenged (and who is not) the maths involved in cryptography are gruesome in the extreme and are covered, if at all, at the level of 'stuff happens'. The guide concentrates on system functionality and consists almost exclusively of descriptions and explanations rather than specific commands or implementations.  Much of this stuff is background for SSL/TLS and X.509 certificates  in which there are commands and implementation descriptions to give you a hearty buzz for the rest of your life. Contents: Terminology Cryptographic Overview Symmetric Encryption Asymmetric Encryption Digests and Hashes Message Authentication code (MAC) Digital Signatures Terminology A non-exhaustive list of terms used in security. Many...