Author Archives: Admin

Quantum Computers

Bit is a binary digit of data in a computer, which has only two values 0 or 1. Bytes can store a single character length of 8 bits like ASCII character of “h” is 1101000 bites. These storage memory is discussed on the bytes like mega bytes and gigabytes. Medium book size is about 1mb is equal to 1024 kilobytes or (1024*1024) bytes.

As read computer storage memory is calculated or measured in megabytes or gigabytes. Microprocessor will have 8 bits wide address and 8 bits wide data bus this will help microprocessor can address 256 bytes of memory. This can read 8 bits of the memory at a time.

As traditional computers work on 8 bits in singular manner, quantum computers do the same work in parallel manner with the help of qbits. To understand the quantum computers in detail (Heisenberg and Planck’s theory), we need to go through the quantum physic how atoms are moving in wave motion and how ripple waves are creating for the same atoms. Qbits are measured in unit of memory and these special particles can take 0 and 1 values simultaneously. Traditional light bulb will have on and off , but this qubits will have both on and off at one time under specified magnetic and electrical field like parell universe, this is also called as  superposition. Qbits are provided with special property entanglement like earth orbit, this helps to keep the dependencies on other qbits where energy and mass are correlated with each other regardless of distance. Qubits states are similarly to the earth longitude and latitude positioning.quantum-mechanical system is one that can exist in any two distinguishable quantum states

Generally, Electrons have a property called spin which is an intrinsic angular momentum.  On applying the magnetic field, electron may exist in two possible spin states up and down. computer use this spins in semiconductors and store the information. So these quantum computers operate with multi state and multi spin of qubits with 0 and 1.

Related image
Quantum Computation language is the first quantum language. Quantum register uses the to create constructor. Hadamard transformation is used for qubit rotation. Qibo is a opne-source python library runs on the quantum computers. Quantum computers are 100 million times faster than the conventional computers

 
Dwave (TINY , CVE:PTF) , Microsoft , Nokia , Google , IBM and ATT are doing their researches. Most of the could platforms are available.

TIBCO EMS COMMANDS

create a usercreate user [“user_description”] [password=]
create ems object queue create queue queuename
create ems object topiccreate topic topicname
delete ems object queue delete queue queuename
delete ems object topicdelete topic topicname
create durable
see all queuesshow queues
see all topics show topics
show topic nameshow topic topic_name
show queue nameshow queue queue_name
clean or purge or remove messages in queue“purge queue queuename
purge all queues”
add properties to queue ems object“addprop queue queuenmae properties  (appened or add to existing prop)

setprop queue queuenmae properties  (keep only expiration ,remove rest)

properties like : secure ,global,expiration,Failsafe,Maxbytes,maxmsgs,OverflowPolicy,Default,DiscardOld,rejectIncoming,sender_name,sender_name_enforced,flowcontrol,trace,export,import,maxRedelivery,Undelivered Message Queue,exclusive,prefetch,expiration”
add expiration properties to queue ems object“addprop queue queuenmae expiration=24hour (appened or add to existing prop)

setprop queue queuenmae expiration=24hour (keep only expiration ,remove rest)”
difference between add prop and set prop “addprop queue queuenmae expiration=24hour (append or add to existing prop)

setprop queue queuenmae expiration=24hour (keep only expiration ,remove rest)”
add secure properties to queue ems object“ems server will check user permissions on the ems object if secure property enabled

addprop queue queuenmae secure (append or add to existing prop)

setprop queue queuenmae secure ( only secure and remove rest of the properties)”
add global properties to queue ems object“global property helps to route messages between the ems servers

addprop queue queuenmae global (appened or add to existing prop)

setprop queue queuenmae global ( only global and remove rest of the properties)”
add Failsafe properties to queue ems object
add Maxbytes properties to queue ems object“Maxbytes=value [KB|MB|GB]  maxbytes is zero, or is not set
if maxbytes message is exceed will be rejected by ems server and prodcure not able to publish
addprop queue queuenmae Maxbytes=1000MB (appened or add to existing prop)
setprop queue queuenmae Maxbytes=1000MB ( only Maxbytes and remove rest of the properties)”””
add maxmsgs properties to queue ems object“maxmsgs=value  maxmsgs is zero, or is not set(unlimited)
if maxmsgs message is exceed will be rejected by ems server and prodcure not able to publish

setprop queue queuenmae maxmsgs=1000 ( only maxmsgs and remove rest of the properties)”””

addprop queue queuenmae maxmsgs=1000 (appened or add to existing prop)
add OverflowPolicy properties to queue ems object“OverflowPolicy=default | discardOld | rejectIncoming (messages effected by maxbytes or maxmsgs)

setprop queue queuenmae OverflowPolicy=rejectIncoming ( only OverflowPolicy and remove rest of the properties)”””

addprop queue queuenmae OverflowPolicy=rejectIncoming (appened or add to existing prop)

SQL

SQL ALIASES COLUMN ALIASES are used to make column headings in your result set easier to read. column_name [AS] alias_name

SELECT dept_id, COUNT(*) AS total FROM employees GROUP BY dept_id;
ANDselect * from table name WHERE condition1 AND condition2″
AND & OR“WHERE condition1 AND condition2 OR condition_n;”
BETWEEN“SELECT * FROM suppliers WHERE supplier_id BETWEEN 300 AND 600;”
COMPARISON OPERATORS Insert“INSERT INTO table (column1, column2, … ) VALUES (expression1, expression2, … );”
Update“UPDATE table1 SET column1 = (SELECT expression1  FROM table2               WHERE conditions) [WHERE conditions];”
DELETE“DELETE FROM table [WHERE conditions];”
DISTINCTDELETE FROM table name;
DELETE FROM table name where column = value;
TRUNCATETRUNCATE TABLE table name;
EXCEPT“EXCEPT operator in SQL Server (Transact-SQL) that returns one field with the same data type.
SELECT product_id FROM products EXCEPT

SELECT product_id FROM inventory;”
EXISTS“EXISTS operator returns true if the subquery returns one or more records.

SELECT column_name(s) FROM table_name WHERE EXISTS (SELECT column_name FROM table_name WHERE condition);”
GROUP BY“aggregate functions (AVG, COUNT, MAX, MIN, SUM) 

SELECT column_name(s) FROM table_name WHERE condition GROUP BY column_name(s) ORDER BY column_name(s);”

Best lawyers in USA for H1b Filing

Best Lawyers

openssl Commands

Generate
openssl dhparam -out public.key -5 1024
openssl genpkey -paramfile public.key -out privatekey.pem
openssl pkey -in privatekey.pem -pubout -out new_publickey.pem

openssl dhparam -in public.key -noout -C

openssl dhparam -in m_new_publickey.pem -in privatekey.pem -out shared.key -5 1024
openssl dgst -sha1 shared.key

e1d1acc4c850a9d656b69cb2c3dbce21fa798c4e
030f372cd4b1871fb9b79ae66694f8502f0ca56f
openssl genpkey -genparam -algorithm DH -pkeyopt dh_keygen_bits:1024 -out dhp.pem

openssl genpkey -genparam -algorithm DH -out dhp.pem

openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:1024 -pkeyopt rsa_keygen_pubexp:5 -out priv.pem
openssl pkey -in priv.pem -text | less

generate private/public key keypair

openssl dhparam -out dhparam.pem -5 1024
openssl genpkey -paramfile dhparam.pem -out privatekey.pem

extract public key only

openssl pkey -in privatekey.pem -pubout -out publickey.pem

openssl pkey -pubin -in publickey.pem -text -noout


openssl genpkey -genparam -algorithm DH -out dhp.pem -pkeyopt dh_paramgen_generator:5
openssl pkeyparam -in dhp.pem -text
cat dhp.pem
openssl genpkey -paramfile dhp.pem -out dhkey1.pem -pkeyopt dh_paramgen_generator:5


openssl genpkey -paramfile dhp.pem -out dhkey_userA.pem
openssl pkey -in dhkey_userA.pem -text -noout
openssl genpkey -paramfile dhp.pem -out dhkey_userB.pem
openssl pkey -in dhkey_userB.pem -text -noout
openssl pkey -in dhkey_userA.pem -pubout -out dhpub_userA.pem
openssl pkey -pubin -in dhpub_userA.pem -text
openssl pkey -in dhkey_userB.pem -pubout -out dhpub_userB.pem

openssl pkey -pubin -in dhpub_userB.pem -text

openssl pkeyutl -derive -inkey dhkey_userA.pem -peerkey dhpub_userB.pem -out secret_userA.bin
openssl pkeyutl -derive -inkey dhkey_userB.pem -peerkey dhpub_userA.pem -out secret_userB.bin
cmp secret_userA.bin secret_userB.bin
openssl pkey -pubin -in secret_userB.bin -text

xxd secret_userA.bin

openssl dgst -sha1 secret_userA.bin

http://openssl.cs.utah.edu/docs/apps/genpkey.html
https://sandilands.info/sgordon/diffie-hellman-secret-key-exchange-with-openssl

Generate
openssl dhparam -out public.key -5 1024
openssl genpkey -paramfile public.key -out privatekey.pem
openssl pkey -in privatekey.pem -pubout -out new_publickey.pem

openssl dhparam -in public.key -noout -C

openssl dhparam -in m_new_publickey.pem -in privatekey.pem -out shared.key -5 1024
openssl dgst -sha1 shared.key

e1d1acc4c850a9d656b69cb2c3dbce21fa798c4e
030f372cd4b1871fb9b79ae66694f8502f0ca56f
openssl genpkey -genparam -algorithm DH -pkeyopt dh_keygen_bits:1024 -out dhp.pem

openssl genpkey -genparam -algorithm DH -out dhp.pem

openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:1024 -pkeyopt rsa_keygen_pubexp:5 -out priv.pem
openssl pkey -in priv.pem -text | less

generate private/public key keypair

openssl dhparam -out dhparam.pem -5 1024
openssl genpkey -paramfile dhparam.pem -out privatekey.pem

extract public key only

openssl pkey -in privatekey.pem -pubout -out publickey.pem

openssl pkey -pubin -in publickey.pem -text -noout


openssl genpkey -genparam -algorithm DH -out dhp.pem -pkeyopt dh_paramgen_generator:5
openssl pkeyparam -in dhp.pem -text
cat dhp.pem
openssl genpkey -paramfile dhp.pem -out dhkey1.pem -pkeyopt dh_paramgen_generator:5


openssl genpkey -paramfile dhp.pem -out dhkey_userA.pem
openssl pkey -in dhkey_userA.pem -text -noout
openssl genpkey -paramfile dhp.pem -out dhkey_userB.pem
openssl pkey -in dhkey_userB.pem -text -noout
openssl pkey -in dhkey_userA.pem -pubout -out dhpub_userA.pem
openssl pkey -pubin -in dhpub_userA.pem -text
openssl pkey -in dhkey_userB.pem -pubout -out dhpub_userB.pem

openssl pkey -pubin -in dhpub_userB.pem -text

openssl pkeyutl -derive -inkey dhkey_userA.pem -peerkey dhpub_userB.pem -out secret_userA.bin
openssl pkeyutl -derive -inkey dhkey_userB.pem -peerkey dhpub_userA.pem -out secret_userB.bin
cmp secret_userA.bin secret_userB.bin
openssl pkey -pubin -in secret_userB.bin -text

xxd secret_userA.bin

openssl dgst -sha1 secret_userA.bin

http://openssl.cs.utah.edu/docs/apps/genpkey.html
https://sandilands.info/sgordon/diffie-hellman-secret-key-exchange-with-openssl