Payment Card Industry (PCI) Data Security Standard 
https://pcicompliance.stanford.edu/sites/default/files/pci_dss_v3-2.pdf


[ 1 comment ] ( 10 views )   |  [ 0 trackbacks ]   |  permalink  |  related link
Generate Server Cerfificate signed by Certificate Authority 

#!/bin/bash
echo -n "enter servername:"
read SERVERNAME

# Create _2048bit_rsa_key_ for server
openssl genrsa -out ${SERVERNAME}.key 2048

# Generate a certificate signing request based on an existing certificate
openssl req -new -key ${SERVERNAME}.key -out ${SERVERNAME}.csr

# Sign csr with the CA private key using CSR you just made
openssl x509 -req -days 1825 -in ${SERVERNAME}.csr -CA cacert.pem -CAkey \
cakey.pem -CAcreateserial -out ${SERVERNAME}.crt

# Convert to PEM
openssl x509 -in ${SERVERNAME}.crt -out ${SERVERNAME}.pem -outform PEM

# Verify certificate
openssl x509 -in ${SERVERNAME}.crt -text -noout


[ add comment ] ( 5 views )   |  [ 0 trackbacks ]   |  permalink
PyBBIO is a Python library for hardware IO support on the TI Beaglebone.  
https://github.com/graycatlabs/PyBBIO/wiki

(/usr/local/lib/PyBBIO/examples)



[ add comment ] ( 2 views )   |  [ 0 trackbacks ]   |  permalink
KiCad won't load footprints [fixed] 
"Errors were encountered loading footprints
IO_ERROR: http GET command failed
Cannot get/download Zip archive:

https://bugs.launchpad.net/kicad/+bug/1520376

fix:

https://raw.githubusercontent.com/KiCad/kicad-library/master/template/fp-lib-table.for-pretty


[ add comment ] ( 3 views )   |  [ 0 trackbacks ]   |  permalink  |  related link
python: convert variable into listo of bytes 
>>> hex_str = "0xffff"
>>> list(struct.pack('!I', int(hex_str, 16)))
['\x00', '\x00', '\xff', '\xff']
>>> list(struct.pack('I', int(hex_str, 16)))
['\xff', '\xff', '\x00', '\x00']


list(bytearray(struct.pack('!I', int(hex_str, 16))))


>>> list(bytearray(struct.pack('!I', 65534)))
[0, 0, 255, 254]


>>> list(bytearray(struct.pack('!H', 65534)))
[255, 254]



x pad byte no value
c char string of length 1 1
b signed char integer 1 (3)
B unsigned char integer 1 (3)
? _Bool bool 1 (1)
h short integer 2 (3)
H unsigned short integer 2 (3)
i int integer 4 (3)
I unsigned int integer 4 (3)
l long integer 4 (3)
L unsigned long integer 4 (3)
q long long integer 8 (2), (3)
Q unsigned long long integer 8 (2), (3)
f float float 4 (4)
d double float 8 (4)
s char[] string
p char[] string
P void * integer (5), (3)


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Learn and Understand AngularJS 
Master AngularJS and the Javascript concepts behind it, design custom directives, and build a single page application.

https://www.udemy.com/learn-angularjs/?couponCode=YOUTUBE119

[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link
FWbuilder for CENTOS/RHEL5 QT problem 



Revive FWbuilder

# yum install qt-devel qt-config

# yum install autoconf

# yum install automake

# yum install libtool

# yum install gcc-c++

# yum install libxml2-devel

# yum install libxslt-devel

* download fwbuilder wget https://github.com/UNINETT/fwbuilder/archive/master.zip

* unzip and go to extracted dir, change constructor call for QCoreApplication app(argc, argv); there is no false parameter in call any longer


# ./autogen.sh

# ./runqmake.sh

# make clean

# make all


edit "./src/ipt/ipt.cpp" 204L, 5258C

int main(int argc, char **argv)
{
// QCoreApplication app(argc, argv, false);
QCoreApplication app(argc, argv); <-- replace



edit "./src/pf/pf.cpp" 198L, 4973C

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv); // 3rd arg false deleted


edit "./src/ipf/ipf.cpp"

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv); // 3rd arg false deleted

edit "./src/ipfw/ipfw.cpp"

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);


edit "./src/nxosacl/nxosacl.cpp" 193L, 4781C written

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv); // 3rd arg false deleted

edit "./src/pix/pix.cpp" 197L, 4857C written

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv); // 3rd arg false deleted

edit "./src/procurve_acl/procurve_acl.cpp" 193L, 4784C written

int main(int argc, char **argv)
{
QCoreApplication app(argc, argv); // 3rd arg false deleted

--
compile
/usr/local/share/fwbuilder-5.2.0.3600/
/usr/local/bin/fwbuilder



[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link
Inspiration for a design 
http://www.synthtopia.com/content/2011/ ... ontroller/
http://www.gforcesoftware.com/products/ ... Controller

[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Geo Synthesizer app for iOS 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link
SPI ADC mcp3008 
http://www.esologic.com/?p=

http://hertaville.com/2013/07/24/interf ... i-using-c/


[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Next> Last>>