2017 m. gruodžio 14 d., ketvirtadienis

stellar

Official website: https://www.stellar.org/
Buying stellar:
https://stellarterm.com/
http://yicex.com/

Stellar testnet
https://www.stellar.org/developers/guides/concepts/test-net.html
https://github.com/stellar/stellar-core/blob/master/docs/stellar-core_testnet.cfg

Discussion:
https://galactictalk.org/
https://stellar.stackexchange.com - Stack exchange for questions.


The stellar development foundation runs two horizon servers:
https://horizon.stellar.org
https://horizon-testnet.stellar.org.

Stellar laboratory (place where you can test)
https://www.stellar.org/laboratory/#account-creator?network=test

Stellar expert (Block explorer)
https://stellar.expert/explorer/asset/native 

Build challange
https://www.stellar.org/lumens/build/

Services:
https://stellar.expert/explorer/  - Block explorer and analytics platform for Stellar Network.
https://steexp.com - stellar explorer
https://stellar.debtmoney.xyz/
https://stellardesk.org/  - Stellar desk
http://stellar-price.com - Find best stellar prices
https://www.fedcloud.info/ - Custom dns names

Wallets:
https://lobstr.co/
http://luuun.com/
https://astralwallet.io/

Online:
https://stellarterm.com/#account
https://www.stellar.org/account-viewer/#!/

Horizon is the client-facing API server for the Stellar ecosystem.
It acts as the interface between Stellar Core and applications that want to access the Stellar network. Horizon allows you to submit transactions to the network, check the status of accounts, and subscribe to event streams.

Virtual API in Horizon
  • History API
    provides list of transations
  • Transaction Submission API
  • Trading APi

Resourses
/transaction/....../operation
FILTER             TYPE


/efects - every change in account history
/efects/ledgers/1 - filter
/transaction/...hash..../efects - efects by transaction
/transaction/...hash..../operations - selecting specification what changes was made to leadger

Responses:
json response
links are expresing relationships between  various objects, that are expressed in history API

Video:
Horizon: API webserver for the Stellar network

2017 m. gruodžio 8 d., penktadienis

etherium cryptokitties


Trait explanations

Metamask explanation


How to fix successful but  no txn hash found!


  1. Clear Browser cookies and cache
  2. Close out of all windows in your Browser
  3. WAIT FOR 10 SECONDS
  4. Log back into metamask using your mnemonic keyphrase (12 words)
  5. Log back into CryptoKitties with your same email and username!
  6. Follow these instructions please~
  7. It's a client side issue so this should fix it.



Link:
https://www.cryptokitties.co
http://www.kitty.services/ - Predict offspring
http://www.kittyexplorer.com/ - Kitty explorer
https://catstats.io/ - Crypto cats stat

https://github.com/HaJaeKyung/KittyExtension  - tampermokey  extention -

Etherium links

https://etherscan.io - Blokų eksploreris
https://ethgasstation.info/ - Etherium degalinė
https://blockstack.org/ - Creating daps
Metamask - Naršyklės papildinys

ENS - Etherio vardų serveriai.

Dapps:
https://dappradar.com/ - Dappsų sarašas.
https://www.cryptokitties.co - kripto katinėliai.

What to do:
http://bountyone.io/bounties - bounty for projects
https://bitcointalk.org/index.php?topic=3944546.msg37672781#msg37672781  expance projektai

2017 m. gruodžio 4 d., pirmadienis

Bitcoin Pagrindinės sąvokos ir apibrėžimai

Bitcoin (neskaičiuotinas daiktavardis) – Bitcoin yra projekto pavadinimas, kurio pradininkas yra Satoshi Nakamoto. Bitcoin taip pat yra kriptovaliutos pavadinimas.

Bitcoinai (angl. Bitcoins) (skaičiuotinas daiktavardis) – Bitcoin, taip pat trumpinama kaip BTC. 1/1000000 valiutos dalis kūrėjo garbei pavadinta – satoshi.

Adresas (angl. Address ) arba Bitcoin adresas - tai 27-34 raidžių ir skaitmenų identifikatorius, kuris prasideda 1 arba 3, apibrėžiant galimo bitcoin mokėjimo paskirties vietą.

Pavedimas (angl.Transaction) – tranzakcija yra vienetinė operacija, kurios metu perkeliame bitcoiną iš vieno adreso į kitą.

Blokas (angl. Block) – informacijos įrašas, talpinantis pavedimus, įvykdytus po paskutinio patvirtino bloko.

Blokų grandinė (angl. Block Chain) – tai rinkinys visų blokų, kuriais dalinasi sistemoje dalyvaujantys mazgai.

Pradinis blokas (angl. Genesis Block ) – tai blokas, kuris buvo įkoduotas į standartinį klientą, kad būtų naudojamas kaip blokų grandinės pradžios taškas.

Klientas (angl. Client ) – tai aplikacija, skirta vartotojui. Naudojama atlikti operacijoms Bitcoin tinkle.

Standartinis Klientas (angl. Standard Client) – originalus klientas, kurtas Bitcoin projekto kūrėjo, jis nusako, kaip turėtų tarpusavyje dirbti klientai.

Tinklas (angl. Network ) – Bitcoin tinklas yra bendras pavadinimas visų tarpusavyje sujungtų aplikacijų, kurios keičiasi informacija apie blokus, tranzakcijas ir prijungtus klientus.

Piniginė (angl. Wallet ) – adresų grupė, sukurta kliento ir saugoma lokaliame dokumente.

Kasėjas (angl. Miner) – kompiuterio mašina, kurioje vykdoma programa skirta išspręsti ar „iškasti“ naujus blokus.

Python Mock

Python 3

Mocking library
>>> import requests
>>> from unittest.mock import Mock

Inheriting all request methods with mock

>>> mock = Mock(spec=requests)
 >>> mock.get()
<Mock name='mock.get()' id='139987415228200'>

Adding return value
>>> mail = mock.MagicMock(spec=Mail)
>>>subject = mail.method_name = "42"


Resources:
https://python-mock-tutorial.readthedocs.io/en/latest/mock.html

Usefull pycharm plugins

SonarPython -  Static code analyzer 
Grep-debug  - To change default red pycharm debug log 

python dictionary variable unpacking

>>> def color(red, green, blue, **kwargs):
...     print("r=", red)
...     print("g=", green)
...     print("b=", blue)
...     print(kwargs)


>>> k = {'red':10, 'green':11, 'blue':22, 'alpha':20}
>>> k = dict(red=10, green=11, blue=22, alpha=20) #or

>>> color(**k)
('r=', 10)
('g=', 11)
('b=', 22)
{'alpha': 20}