Weekend List 17 December 2017

Mr. I
kasta
Published in
4 min readDec 16, 2017

Bangkok, Irsyad — It is the first time I visit Bangkok. I don’t have any argument about internet connection (I am using WiFi) or other pieces of stuff in here. But I’ll be here for three days 2 nights. I don’t care how interesting this place and I don’t have any excuses for articles. Wherever you are, whenever and whatever happens I should write even only one article. As a trick, if I don’t get any connection, just remember my tips about a late post in the previous article. Open your word processor (I didn’t use it, I prefer to editors such as Sublime Text 3 or Visual Studio Code).

Tutorial

I still don’t have any moods to write a tutorial. I have a target to write about OMS but still don’t get the mood. So many things to do, move from one tab to another tab, switch between blog editor, code editor, screenshot tools (I’m using Snagit — it takes $49.95 but very worth it and you should try this one), and command line.

Music Playlist

This one is more favourite things in my life. I am listening almost all of the music genres the exceptions is hard heavy rock music. Actually, I never decide to what genre or what musician I’ll listen just flow like usual. For this weekend, I pick John Denver to listen. Country music may be very romantic in this situation and condition. More favourite songs from John Denver is “Take Me Home, Country Roads”, “Sunshine on My Shoulders”, “Rocky Mountain High”, “Annie’s Song”, and “Thank God I’m Country Boy”. I like the music, I love the lyrics, and I can’t deny that was an incredible song.

Social Media Mining

Ah, interesting topics. Actually, I have a plan to write about this but my connection is really bad. I was crawling but always getting the time out. What’s the plan for it? So, I want to explain how to analysis time series, measuring influence and engagement, and mining conversation. Many times I was trying to crawl and again got the time out. A little overview of time series, time series in social media is giving us an information about what clock people active in social media and we can get an information about how many hours they active in a day. It is very useful because in a day there are a million posts and actually, people read what’s the new in their timeline. If we post out of active time just believe me that our post will not be read by users. Below is my reason to not doing crawling. It wasn’t error by code but from internet connection.

c:\Users\admin\Desktop\crawling>python twitter_get_user.py NajwaShihab
More results available. Sleeping for 60 seconds to avoid rate limit
Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\response.py", line 302, in _error_catcher
yield
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\response.py", line 384, in read
data = self._fp.read(amt)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 449, in read
n = self.readinto(b)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 493, in readinto
n = self.fp.readinto(b)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 1009, in recv_into
return self.read(nbytes, buffer)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 871, in read
return self._sslobj.read(len, buffer)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\ssl.py", line 631, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\models.py", line 745, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\response.py", line 436, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\response.py", line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\response.py", line 307, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.twitter.com', port=443): Read timed out.
During handling of the above exception, another exception occurred:Traceback (most recent call last):
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\tweepy\binder.py", line 187, in execute
proxies=self.api.proxy)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 658, in send
r.content
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\models.py", line 823, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\models.py", line 752, in generate
raise ConnectionError(e)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.twitter.com', port=443): Read timed out.
During handling of the above exception, another exception occurred:Traceback (most recent call last):
File "twitter_get_user.py", line 40, in <module>
users = client.ookup_users(user_ids=chunk)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\tweepy\api.py", line 322, in lookup_users
return self._lookup_users(post_data=post_data)
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\tweepy\binder.py", line 245, in _call
return method.execute()
File "C:\Users\admin\AppData\Local\Programs\Python\Python36\lib\site-packages\tweepy\binder.py", line 189, in execute
raise TweepError('Failed to send request: %s' % e)
tweepy.error.TweepError: Failed to send request: HTTPSConnectionPool(host='api.twitter.com', port=443): Read timed out.
If you read some of my articles you will find that my posts have margin left and justify. As information, Bahasa uses justify and English use margin left for formal writing. I haven't 100% concern to grammatically, just tried step by step to good writing. From best words, conjunction, punctuation, grammar, lexical or another things about language. In this blog I have to perspective, if using formal, I will try the best as I can. For example in Bahasa, (I'll switch to Bahasa).Kata "Bisa" dan "Dapat" terkadang digunakan pada satu konteks untuk beberapa orang. Katakanlah kalimatnya seperti ini, "Saya bisa membuat nasi goreng". Kata "bisa" dan "membuat" adalah bentuk baku namum dalam konteks kalimat tersebut menjadi tidak baku. Karena kata "bisa" memiliki tiga penafsiran menurut KBBI yaitu mampu; zat racun yang dapat menyebabkan luka; sebutan kepala dukun yang berasal dari kalangan bangsawan dan walaka (kurang lebih seperti ini). Jadi kalimat tadi orang lain dapat menafsirkan ke tiga tafsiran yaitu "Saya bisa (mampu) membuat nasi goreng", "Saya bisa (zat racun) membuat nasi goreng", "Saya bisa (kepala dukun) membuat nasi goreng". Sedangkan kata "membuat" memiliki empat makna meurut KBBI yaitu menciptakan; melakukan; menyebabkan; menggunakan (kurang lebih seperti ini, untuk detail lengkap silakan baca KBBI). Jadi untuk satu kalimat tersebut terdapat lebih dari dua tafsiran atau istilahnya multitafsir dan akan menjadi kalimat atau paragraf ambigu. Menulis dokumen resmi dengan cara ini? Seperti proposal, skripsi, thesis dan disertasi? Siap - siap aja dokumennya dibuang sama dosen pembimbing.

--

--

Mr. I
kasta
Editor for

Code using various programming language commonly based on JVM (Java, Scala, Groovy) with DBMS (Oracle, PostgreSQL & MySQL)