I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
#!/usr/bin/ruby1.9.1 -Kw | |
# -*- coding: utf-8 -*- | |
class Edge | |
attr_accessor :src, :dst, :length | |
def initialize(src, dst, length = 1) | |
@src = src | |
@dst = dst | |
@length = length |
#!/usr/bin/python | |
import time | |
from SimpleCV import Color, Image, np, Camera | |
cam = Camera() #initialize the camera | |
quality = 400 | |
minMatch = 0.3 | |
try: | |
password = Image("password.jpg") |
require "openssl" | |
require "digest" | |
def aes128_encrypt(key, data) | |
key = Digest::MD5.digest(key) if(key.kind_of?(String) && 16 != key.bytesize) | |
aes = OpenSSL::Cipher.new('AES-128-CBC') | |
aes.encrypt | |
aes.key = key | |
aes.update(data) + aes.final | |
end |
[Fact] | |
public void First() | |
{ | |
var tokenHandler = new JWTSecurityTokenHandler(); | |
var symmetricKey = GetRandomBytes(256/8); | |
var now = DateTime.UtcNow; | |
var tokenDescriptor = new SecurityTokenDescriptor | |
{ | |
Subject = new ClaimsIdentity(new Claim[] |
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
// List all files in a directory in Node.js recursively in a synchronous fashion | |
var walkSync = function(dir, filelist) { | |
var fs = fs || require('fs'), | |
files = fs.readdirSync(dir); | |
filelist = filelist || []; | |
files.forEach(function(file) { | |
if (fs.statSync(dir + file).isDirectory()) { | |
filelist = walkSync(dir + file + '/', filelist); | |
} | |
else { |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Text; | |
//A simple C# class to post messages to a Slack channel | |
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet | |
public class SlackClient | |
{ |
// Starkflow comments + github project node js | |
// + https://github.com/jrgcubano/face-detection-node-opencv | |
// + http://blog.stevenedouard.com/stroll-node-facial-recognition-3rd-party-apis/ | |
I believe that you're using the node-opencv library ? You will need some more steps. You have to train your opencv system which than allows you to use the method "predictSync" from FaceRecongizer(). | |
The node-opencv library has a FaceRecognizer Object which you first initialize. | |
Initialize FaceRecognizer: var FaceRecognizer = new cv.FaceRecognizer(); | |
You have to read all the images, create a specific array and train your FaceRecognizer with that. For my purpose, I'm saving each user in a DB and they get a unique ID which I'm using to create a specific subfolder and this is later used. Here is my code: |
1. AC GEN PWR - Up (Left & Right) [right, electrical control panel] | |
2. BOOST PUMPS WING - Up (Left & Right) [left, fuel system control panel] | |
3. BOOST PUMPS MAIN - Up (Left & Right) [left, fuel system control panel] | |
4. BATTERY PWR - Up [right, electrical control panel] | |
5. INVERTER STBY - Up [right, electrical control panel] | |
6. SIGNAL LIGHTS LAMP TEST (check all warning lights) [left, auxiliary lighting control panel] | |
7. FIRE DETECT BLEED AIR LEAK TEST (check engine fire light, bleed air leak light on caution annunciation panel) [left, auxiliary lighting control panel] | |
8. TEST IND (fuel display select set to INT. needles should be just above 4000lbs depending on fuel load. needles should drop to ~3000lbs +/-200. total should hit 6000lbs +/-200) [center, fuel panel] | |
9. FUEL DISPLAY SELECT - MAIN | |
10. OXYGEN SUPPLY (green wheel. check flow indicator is blinking) - Up [right, oxygen control panel] |