Ad

Monday, April 9, 2018

Sunday, April 1, 2018

Beginners' Glossary for Blockchain, Smart Contract and Bitcoin

Blockchain: defined by a distributed, decentralized public ledger, made of blocks, chained together using advanced mathematical computation (the crypto part) that is difficult to decode. Each transaction is validated by consensus and voting by existing records - maintained and worked by miners and distributed to all stakeholders within the decentralized network. Basically the transaction never disappears. Each contract is considered a smart contract, which can happen without the help of a centralized agency such as a bank or a central bank etc. Blockchain is not equal to Bitcoin. Bitcoin does utilize blockchain technology and cryptography to validate and maintain its blockchain, a public ledger, hence the name cryptocurrency.
While Bitcoin is the most popular cryptocurrency, there are other tokens exist in different ecosystems. Some startups have made Initial Coin Offering (ICO) offering consumers and investors to buy their tokens, which is usually seen as highly risky!

The Winklevoss twins, in the movie Social Network and previously co-founders / investors of Facebook, hold a sizable share of bitcoin. Bitcoin price recently oscillated violently after congress started to have hearing and IRS decided to pursue capital gain tax on Bitcoin sales. 50 Cents found out, years after filing bankruptcy, he once collected bitcoins from fans for his music album sales and now those coins are worth millions.

Some key players in the industry are: Etherum (platform for blockchain technology and smart contracts), its foundation, Ripple (a payment protocol), Coinbase (bitcoin wallet and bitcoin trading). Surprisingly Iceland, China and NVDIA because bitcoin miners in China have been mining bitcoins in mass and some of these powerhouses are located in Iceland, where a sizable of electricity is consumed by bitcoin mining. NVDIA because it manufactures the GPU and chips needed for these high power machines - especially those in transaction and hosted, bitcoin mining machines can be homemade.

However, remember bitcoin is a cryptocurrency and a very different concept from blockchain, a mathematical protocol and distributed data store. Bitcoin can be highly speculative. Blockchain technology can be applied in non-financial transactions. You can read more about innovative blockchain smart contract startups here
https://medium.com/@uniqtech/innovative-blockchain-startups-businesses-8bb8f96b188

Saturday, March 31, 2018

Command Line Essentials Cheat Sheet

  • echo $PATH
  • changing the $PATH to optimize for basic unix commands can help save time. Very important for server maintenance.
  • // print current working directory
    $pwd
  • grep -n showing line number
  • less slash search
    wc word count
  • If need to approximate find or remember a command:
    apropos keyword
     apropos copy
  • PHP Command line: error log (have to turn the error log on first)
  • >tail -100f error.log
  • Generally heroku and phonegap may require commandline tools, in heroku it is known as the heroku command line toolbelt
  • Show and hide hidden files on mac
 

MAKE HIDDEN FILES SHOW/HIDE IN MAC FINDER

Just follow the steps below and your finder will show hidden files:-

Start your “Terminal”
type “defaults write com.apple.finder AppleShowAllFiles TRUE” and enter (without the quote)
type “killall Finder” and enter (without quote)
Done. You have just enable your show hidden files in Finder
To disable the show hidden files in Finder, follow the steps below:-

Start your “Terminal”
type “defaults write com.apple.finder AppleShowAllFiles FALSE” and enter (without the quote)
type “killall Finder” and enter (without quote)
Done. You have just disable your show hidden files in Finder

Testing Toolbox

Selenium
Record clicks
insert blank line
s put an arrow on the line, play will handle it

JavaScript toolbox


  • Learn JavaScript for coding bootcamp graduates

  • Machine learning with JavaScript deep learn js with Tensorflow

  • Studying and teaching materials for JavaScript MVC
  • http://www.teaching-materials.org/jsmvc/
  • Learn the concept of JavaScript templates Knockout.js tutorial

Friday, March 30, 2018

Object Oriented Programming with Python

Define a Stack class, just the skeleton, illustrates how classes are implemented in Python. Lower case self, is the first argument to methods.

Class Stack:
def __init__(self):
pass
def is_empty(self):
pass
def push(self, value):
pass
def pop(self):
pass

Python toolbox


  • Scrapy for web scraping
  • Geopy for geographic data
  • SciPy for advanced science and mathematics formula
  • Numpy for linear algebra and matrix manipulation
  • Tensorflow for machine learning with CPU, GPU and in the cloud, with TPU
  • spaCy natural language processing NLP with python
  • control+cmd+g expand current word selection to all matching words.

Turn on Android debugging mode - Android Development Basics

The following image shows the location of the android development debugging mode toggle button.