日常の記録 (2024 年 1月)
前月 、翌月 | 一覧 |
トップページ
2024/1/29 (月)
- I am writing down some important information below:
2024/1/3 (水)
- The below is my answer for the 2nd Eiken exam (Eiken is a English proficiency test in Japan) in 2022.
- I think it's recommended for people not to trust information on the Internet. I want to provide two reasons to support it.
First, many infulencial people on social media don't always publish correct information.
For example, many people on social media are incentivized to increase the number of their post impressions.
In some cases, they don't care to lie and translate the fact into a more interesting made-up story.
Second, in many cases, people on the Internet are anonymous and only use their screen names.
This deteriorate their sense of responsibility and moral.
As a result, they easily send their opinion to the world without thinking and checking carefully.
In conculusion, current Internet doesn't have the sophisticated mechanism of generating trust information.
Therefore, I think people shouldn't trust it.
2024/1/1 (月)
- Here, I provide the Python3 code to download blockchain data at the start height to the end height.
import urllib.request
import json
import pickle
import os
def main():
# download block data at height 800,000 to 800,100.
stsHeight = 800000
endHeight = 800100
for i in range(stsHeight, endHeight + 1):
try:
if os.path.exists('./blocks/' + str(i) + '.bin'):
continue
else:
pass
url = "https://blockchain.info/rawblock/" + str(i)
response = urllib.request.urlopen(url)
body = json.loads(response.read())
headers = response.getheaders()
status = response.getcode()
with open('./blocks/' + str(i) + '.bin', 'wb') as f:
pickle.dump(body, f)
except Exception:
pass
main()
Changing the subject, I also organized my computer desktop. The below was the display image.
To convert the pixel sizes for it, I used the website JPGのサイズ変更.
|
|
My desktop screen.
|