Skip to main content

Posts

Showing posts from March 6, 2016

Arduino Code To Wire any Serial Device

#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX ]] change this to pin to which arduino is connected void setup() {   // Open serial communications and wait for port to open:   Serial.begin(9600);   while (!Serial) {     ; // wait for serial port to connect. Needed for native USB port only   }   // set the data rate for the SoftwareSerial port   mySerial.begin(9600); } void loop() { // run over and over   if (mySerial.available()) {     Serial.write(mySerial.read());   }   if (Serial.available()) {     mySerial.write(Serial.read());   } }

Introduction To Windows Services

Understanding windows service fundamentals Overview : Why develop windows services ? 1. Run even when no user is logged in 2. Start automatically on machine boot 3. Run as different users(inc. built in) 4. Start,stop,pause, resume services 5. Failure Policy (eg . auto start ) 6. Manage from remote machines (eg stop) Typical usecase of windows services : 1. File conversion (e.g. video / audio ) 2. System intergration(file-ingenstion) 3. System integration (data transfer between systems) 4. Run web server (e.g owin self hosting) 5. Message queue processing (eg. MSMq) 6. Host remote Akka .Net Actor System 7. Host other services eg. Mail , Ftp etc. SERVICE STARTUP MODES 1. Manual 2. Automatic 3. Automatic(Delayed Start ) 4. Disabled 5. Triggers SERVICE LOG ON ACCOUNTS 1. Local system built in account 2. Local Service Account 3. Network Service Account 4. Local User custom Account 5. Domain User custom Account SERVICE RECOVERY OP

Python Crash Course : Part 1

HISTORY :  Written by Guido Van Rossum in 1980s, i.e Guido started writing Python in 1989 December. Van Rossum is Python's principal author, and his continuing central role in deciding the direction of Python is reflected in the title given to him by the Python community,  benevolent dictator for life  (BDFL). INSTALLING PYTHON :  The python interpreted which can be downloaded from website www.python.org (https://www.python.org/download/releases) CHECKING SUCCESSFUL INSTALL : Open command prompt. Type " assoc .py " , without quotes. That should return ".py=Python.File Cool ! Up and Running to write the scripts !