transactions | 0. | ref_block_num | 37,240 |
---|
ref_block_prefix | 2,126,127,953 |
---|
expiration | 2018-10-25 01:23:05 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | saffisara |
---|
author | owenwat |
---|
permlink | what-a-beautiful-day-to-be-alive-can-you-2018-10-25-00-51-32 |
---|
weight | 1,500 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f23f8ee6f24e631455bf79a7796821624c4e8aef9e6edefb3590b51b862ae45e75f9ecdb55a40786caad0c69a38693a0706b369afbff185cfcb08e4e4f418d57d |
---|
|
---|
transaction_id | 72143792f4272a5aeb93b2ba30aa842e1610806c |
---|
block_num | 27,103,614 |
---|
transaction_num | 0 |
---|
|
---|
1. | ref_block_num | 37,225 |
---|
ref_block_prefix | 817,499,990 |
---|
expiration | 2018-10-25 01:32:06 |
---|
operations | 0. | 0. | comment |
---|
1. | parent_author | fitinfun |
---|
parent_permlink | freewrite-day-367-face-mask-632519075d607est |
---|
author | mariannewest |
---|
permlink | re-fitinfun-freewrite-day-367-face-mask-632519075d607est-20181025t012208088z |
---|
title | "" |
---|
body | "I don't know if they are really helping much. They are more supposed to keep your stuff from spreading..." |
---|
json_metadata | {"tags":["esteem"],"app":"steemit/0.1"} |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f691227924b9bb6cdf31e0afd7d915fbd96aea56524e5f38421e9e044bef18f9e5a164d6faa8fc91e2799a598d9c7f13b12abd276532338520a854cccf82fd996 |
---|
|
---|
transaction_id | 0f916cabcf7d525c70dbc51a4907aec0941806b9 |
---|
block_num | 27,103,614 |
---|
transaction_num | 1 |
---|
|
---|
2. | ref_block_num | 37,244 |
---|
ref_block_prefix | 1,446,851,715 |
---|
expiration | 2018-10-25 01:23:07 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | gurdjieff |
---|
author | arunava |
---|
permlink | 3hp1rf-special-post-promotion-thread-valid-only-for-the-first-5-submissions |
---|
weight | 10,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 200bb4bb2ad31d460a1a10e589a910511978520056b032b40ac0720cc30a9737ca4ee084a48b9af726efac1c10a6a77fbc96c5150045487f5d6db55ba333edcd9c |
---|
|
---|
transaction_id | bdc6863ebd36301c6eca3504bffa0d7107df9844 |
---|
block_num | 27,103,614 |
---|
transaction_num | 2 |
---|
|
---|
3. | ref_block_num | 37,239 |
---|
ref_block_prefix | 23,216,082 |
---|
expiration | 2018-10-25 01:23:00 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | andrecarothers |
---|
author | ivanfurqanpurba |
---|
permlink | re-getup-re-ivanfurqanpurba-with-coffee-black-20181022t063941001z |
---|
weight | 275 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 2003cdcdef217c962ece9242b8995ec605da01336f5540cfb2a7c7113526fb709b79044b28704784bb836d12458adb20e9f38c163e4de210128e6a48c2cbd54ae7 |
---|
|
---|
transaction_id | d6afc635fc971d54ce73fceb400b5f500300f48c |
---|
block_num | 27,103,614 |
---|
transaction_num | 3 |
---|
|
---|
4. | ref_block_num | 37,225 |
---|
ref_block_prefix | 817,499,990 |
---|
expiration | 2018-10-25 01:32:06 |
---|
operations | 0. | 0. | custom_json |
---|
1. | required_auths | [] |
---|
required_posting_auths | |
---|
id | follow |
---|
json | ["follow",{"follower":"merlin7","following":"mdratulhasan","what":[]}] |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f356d0725281aa0bb85fdbfb2fa2aa9d4462a69270cd33ba1fe77749100c0547726fe7b4650dc801322b3d68e9a681403be3aa9aa33ba3754e5342cb7453499f6 |
---|
|
---|
transaction_id | 1761fe364bf46dc86e942a1694a9f9134fa95588 |
---|
block_num | 27,103,614 |
---|
transaction_num | 4 |
---|
|
---|
5. | ref_block_num | 37,225 |
---|
ref_block_prefix | 817,499,990 |
---|
expiration | 2018-10-25 01:32:06 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | obstinacyveggie |
---|
author | mvd |
---|
permlink | makeup-tutorial-fall |
---|
weight | 10,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f3e07c9ad94949a7b4791ad789b52cb48e027434231c636883d18b9d0571fc3880ec5a884ad7c5fafb82ea428a8655dec37d7e3dbc0a0687b361cea7aa6dd3995 |
---|
|
---|
transaction_id | 3ad00fae7c8f35bd8140d7263cb0007d97187756 |
---|
block_num | 27,103,614 |
---|
transaction_num | 5 |
---|
|
---|
6. | ref_block_num | 37,240 |
---|
ref_block_prefix | 2,126,127,953 |
---|
expiration | 2018-10-25 01:23:05 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | btccurrency1 |
---|
author | vimukthi |
---|
permlink | john-oliver-finally-gets-people-to-care-about-privacy-misinformed-decision-making-dunning-kruger-effect-and-future-of-privacy |
---|
weight | 10,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 20606ab897b0756a4bdbbcfa3c8fbcefc660094aecb07e0807f68802911a92e0131e288ff059296c25acfabf4338b163dabf66c4f08d026e7d5a057ff4e9ce7a76 |
---|
|
---|
transaction_id | 68d32232b02e5bec1eaa0429b1d186c40f23f6f9 |
---|
block_num | 27,103,614 |
---|
transaction_num | 6 |
---|
|
---|
7. | ref_block_num | 37,241 |
---|
ref_block_prefix | 2,398,960,955 |
---|
expiration | 2018-10-25 01:23:06 |
---|
operations | 0. | 0. | custom_json |
---|
1. | required_auths | [] |
---|
required_posting_auths | |
---|
id | sm_cancel_sell |
---|
json | {"trx_ids":["21b9e64e082cf8e15e6331118156bab865a32ad2-0","9be569a7f5c1e46d3a0b590b66b8dc6f3a71ff8f-0","9be569a7f5c1e46d3a0b590b66b8dc6f3a71ff8f-1"]} |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f026a046fd865b8ac432e73477029f06b38ee7afbca0a05365c8b06e29da244e2533c9dec7c45010c0c52cb7b0949befe528d8442796f97df59ade95f822e04f0 |
---|
|
---|
transaction_id | d848109097df3ab816cdbff50708e51dfb749647 |
---|
block_num | 27,103,614 |
---|
transaction_num | 7 |
---|
|
---|
8. | ref_block_num | 37,245 |
---|
ref_block_prefix | 3,281,260,512 |
---|
expiration | 2018-10-25 01:23:09 |
---|
operations | 0. | 0. | transfer |
---|
1. | from | smartsteem |
---|
to | angela.ghkh |
---|
amount | 2.364 HIVE |
---|
memo | #2Ra13GK1fyZB72AbCuHdAzdNpBsW6qHnRWZrGh3ddGgiTsgKPu8HcKWEmjadLQnunjiAy1UdnNRMoCVkcziysrXrikhvMCXg9YX3YvCxwzVEP9XRhPCRXnLxA2uRQJfWEWF1sB7Hj285rnMoDzkqGMQurdCgdPEyqfP1aaSnN8FsxMcnxCjJdjdKsL6b6kCaysJKp2J1EBitiNUb6g5gWhCuF |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f2a77dcf98059f823de339de93ef5075bfe1b126dba8341e9206ef8134a31289c4ea0f80247cd1e9f2d775d31100b102de636f699b8a0c96c9cfd8b49727aaa1f |
---|
|
---|
transaction_id | 00bf71891f56c13db56381f2ae8a015dc889076e |
---|
block_num | 27,103,614 |
---|
transaction_num | 8 |
---|
|
---|
9. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | hellshark |
---|
author | saracampero |
---|
permlink | magic-for-children-magic-bag-d758108a68dd2 |
---|
weight | 10,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f298c754fd8e6aa29da6e6e60b802ef9d5d66e14632d839731fcb61a36a51951833b4c4eaa16b5efef137420071690b59471e2fe9411c060dd7ba71a3fbadda54 |
---|
|
---|
transaction_id | 0e8a2e74b0ebff07434ca07d18d04fde09e08f45 |
---|
block_num | 27,103,614 |
---|
transaction_num | 9 |
---|
|
---|
10. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | casberp |
---|
author | saracampero |
---|
permlink | magic-for-children-magic-bag-d758108a68dd2 |
---|
weight | 1,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f4af97f53f21b430f2bfa2363e43475160c3fc6397db878ebe8669497cedc14964faaa5f8eec0d476579c9bf5cc293af5617af6602bf0cb8464c048aac7b4dc00 |
---|
|
---|
transaction_id | 44d1ec4884653c6c96ac2bcfef755a1486ab1177 |
---|
block_num | 27,103,614 |
---|
transaction_num | 10 |
---|
|
---|
11. | ref_block_num | 37,245 |
---|
ref_block_prefix | 3,281,260,512 |
---|
expiration | 2018-10-25 01:23:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | shubrodyuti |
---|
author | rollandthomas |
---|
permlink | footsteps-of-smart-money-buying-tencent-part-ii |
---|
weight | 10,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f05d70bbd3633defb4b5db818e1c3a47abb96fb29d73ff8c461e68cec79b7214879a03587ff4537d5d5879c219a75f47221861a48645a8b47f325c4c77bbb589a |
---|
|
---|
transaction_id | fd6b79df513ab37b44cc0505862060a565c79799 |
---|
block_num | 27,103,614 |
---|
transaction_num | 11 |
---|
|
---|
12. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | sbi7 |
---|
author | flysky |
---|
permlink | palm-of-dates |
---|
weight | 100 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 2039ab3df18e0f02a87175b967cd5905b1f45220e42766c40be026df514850f8c82f7d7ec9c315a1c1cb7077855ce4cebb6a7acd704df5276235776eaddd24869a |
---|
|
---|
transaction_id | f0f9fa5c9952dbef801d3812407dc0677ba86691 |
---|
block_num | 27,103,614 |
---|
transaction_num | 12 |
---|
|
---|
13. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | sv1rby |
---|
author | chrispy99 |
---|
permlink | mjhmud02 |
---|
weight | 100 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 2009fe183803d8e8ef25a262088f2c17f58020a5f04a7640ae0c24072dc75a99827518bd06c685e23a1c2f338a7edcf56b5692d30c5c3b8e4dec155ee4f072a9cb |
---|
|
---|
transaction_id | 3f6c95a9653c27c661dfd4f8d283079810e44cda |
---|
block_num | 27,103,614 |
---|
transaction_num | 13 |
---|
|
---|
14. | ref_block_num | 37,244 |
---|
ref_block_prefix | 1,446,851,715 |
---|
expiration | 2018-10-25 01:23:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | noslif |
---|
author | arunava |
---|
permlink | gibraltar-seems-to-be-developing-blockchain-related-educational-courses |
---|
weight | 10,000 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 206243f4f23f1032d9a03023a5a47967e69ba1c79f3f01b3594c7e5c7deeb75a9a35d07048c2f38639a00118e1dec02d11c36e6be8531fc383afb6bc7db885731c |
---|
|
---|
transaction_id | fe8a7a896bbc90b463bf4017e029e9f820f626b5 |
---|
block_num | 27,103,614 |
---|
transaction_num | 14 |
---|
|
---|
15. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | sku77-poprocks |
---|
author | serialfiller |
---|
permlink | luciano-de-crescenzo-uomo-di-amore-e-di-liberta |
---|
weight | 90 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 205262f8e0fe4f5eb8518a89a5b507d7aa7a55786b195f90436243137177716c5675f0c5a567176a956a7345f59e973d0f8c625f50d796737ab6af39a24d09c652 |
---|
|
---|
transaction_id | 8b9aaf0370685e2de8e18b920231c3bb2ae433cb |
---|
block_num | 27,103,614 |
---|
transaction_num | 15 |
---|
|
---|
16. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | sharlienkah |
---|
author | crypto-report |
---|
permlink | 20181025t010000881z |
---|
weight | 3,500 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f66e6cabfff563b4983f506d5f852927facdd30e2041e281171c4e01db0ad46fa2e0e9d465c8a96919036977388f5975c1b487d67adf39a00dbe269866b19cf62 |
---|
|
---|
transaction_id | 42eb1d23f33457dba3e5c78c8cc63f3e79f1a97d |
---|
block_num | 27,103,614 |
---|
transaction_num | 16 |
---|
|
---|
17. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | vote |
---|
1. | voter | fun2learn |
---|
author | kaneni |
---|
permlink | 43anye |
---|
weight | 170 |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 1f591896c00698c2a1c19de4f0b18b5c219ecd3caedc06246e294b4bcba654729f1d5082cc9f41ecf31a5f473932a42695149a70f577ec2b470dfa258a832d2f82 |
---|
|
---|
transaction_id | 72cb30ab371cbc336c90a806717898b62cc789c9 |
---|
block_num | 27,103,614 |
---|
transaction_num | 17 |
---|
|
---|
18. | ref_block_num | 37,226 |
---|
ref_block_prefix | 1,220,063,413 |
---|
expiration | 2018-10-25 01:32:09 |
---|
operations | 0. | 0. | comment |
---|
1. | parent_author | "" |
---|
parent_permlink | blockchain |
---|
author | lightingmacsteem |
---|
permlink | 3rnbel-i-t-spices-the-linux-way |
---|
title | "I.T. Spices The LINUX Way" |
---|
body | "## Python In The Shell: The STEEMIT Ecosystem – Post #95<br><br> ##
**_THE BEAUTY OF PYTHON AND LINUX SHELL COMBINED_**
In this post I will show how python and the linux shell can greatly simplify an otherwise very complicated task. Python provides the overall ease of implementation while the linux shell does the complexities.
I will just focus on one task in this post, and that is the task of finding the line number from a huge file of whatever last-line ID it is that we found recorded at the database. This in itself will be a startup point of Data Science which may constitute a number of advanced topics in my future posts in the field of Information Technology.
I just need to discuss a bit so that learning can be much clearer and more fun.
<br>Find A Specific Line From A Huge Multi-Million Lines File
Don’t get me wrong, but this task here is getting a bit deeper in the scripter’s task. The AI phenomenon actually started with such tasks and evolved to become the AI that most people dreaded nowadays. I-Robot, anyone?
Here is the python code that I would like to expound on, I indicated line numbers so that we can easily pinpoint a code to review:
```
1 ###FIND THE LINE NUMBER OF THE BLOCK_ID IN THE INSERTFILE
2 if maxid != 0:
3 findthis = ('"block_id": "' + blockid[1] + '"')
4 ccc = ("grep -m1 -n '" + findthis + "' " + insertfile + " | cut --delimiter=':' -f1")
5 line = int((os.popen(ccc).read()).strip()) + 1
6 lastline = int(line) + int(299999)
7 endline = int(lastline) + 1
8 else:
9 line = int(1)
10 lastline = line + int(299999)
11 endline = int(lastline) + 1
```
<br>Very Fast Yet Very Simple, A Short Disclaimer
The few 11 lines above can do a very important task in sifting thru millions of lines from a file, a growing huge file at that, about 17 gigabytes as of this post and growing.
I may have to post on another future blog my Design and approach on how to mix huge file parsing and databasing as we know it now. Anybody knew HADOOP here? I really think it will be taken over by a mix of simple file parsing (the fast way of course) and a distributed OS (like EOS or TELOS). Remember these words of mine guys and gals: HADOOP will be a very slow platform in the near future. Just my take though.
We add python and the linux shell to the mix with good-minded programmers all over the world creating and advancing the codes, can we still not see what future awaits us in this field of AI?
I am afraid as I write these to be honest.
<br>A Line By Line Exposition
```
1 ###FIND THE LINE NUMBER OF THE BLOCK_ID IN THE INSERTFILE
```
Line 1 is just a comment, the python program will not execute a line starting with the character #; I know I know this is a no-brainer for the experts, but I am afraid this post is not for you. This is for the early learners, my way of encouraging young people to code.
```
2 if maxid != 0:
```
Line 2 is a way of telling python to: ONLY DO THESE LINES IF THIS IS TRUE. In short, we try to evade errors while at the same time “learning” from a previous result which is the maxid variable. In programming, we only do things previously as needed in the next, no need to complicate things.
```
3 findthis = ('"block_id": "' + blockid[1] + '"')
```
Line 3 is already indented, this means that python only do these lines if the maxid line is true, same indention means same level of execution. We are looking for a certain pattern of letters in the findthis variable, said pattern is all over the 17 Gb file so we are now zooming in only on a specific line with the value of blockid whatever it may be.
```
4 ccc = ("grep -m1 -n '" + findthis + "' " + insertfile + " | cut --delimiter=':' -f1")
```
Line 4 is a linux shell command as defined by the ccc variable. It is at this line that we tell python the very specific command that it needs to execute, said command is not really its own but a command at the linux shell.
```
5 line = int((os.popen(ccc).read()).strip()) + 1
```
Line 5 is the execution command of the previous line. It is at this line that python does the actual code execution of line 4. Do observe that we are putting the result in the line variable, this is very important as we need that result in the next decision making.
<br>Some Thoughts
Many so-called experts will tell others to do away with shell commands which may be true to almost all python approaches. But since this is my blog, I would have to disagree on some cases.
Just my hint: If you find a certain task to be just a one-shot go and not repeating, with some degree of complexities as file parsing, the linux shell is your helper. Last hint, stay away from people that claims to know everything. Nobody knows everything except God Himself.
You on the other hand will be the captain of your own future, so why not start with coding python using linux?
I will continue on the next post as this will surely go a bit longer. See you guys, start reading about python in a linux PC or laptop.
<center>https://i.postimg.cc/W4DgmyWW/linux-mug.jpg</center><br>
>#### _“If Money Equates To Wrong Turns, Linux Is Your Compass……...”_" |
---|
json_metadata | {"tags":["blockchain","crypto","steemit","python","programming"],"image":["https://i.postimg.cc/W4DgmyWW/linux-mug.jpg"],"app":"steemit/0.1","format":"markdown"} |
---|
|
---|
|
---|
|
---|
extensions | [] |
---|
signatures | 0. | 200f07e0d57805bd950d2cb0b2eeae336a9f0b29f277be65578e8651400227f4724443c1a80e4e1140207f8a3be8e5f5e2afc122d1da9fcc0f762007f9a35f113d |
---|
|
---|
transaction_id | 3935d656c24495f72165db79f06ecd3a4eb0f6ab |
---|
block_num | 27,103,614 |
---|
transaction_num | 18 |
---|
|
---|
|
---|