Trafi: Be a Jakartan Like a Local

A friend of mine told me about a nifty app: Trafi. It provides us complete routes information of public transportation in some big cities, including Jakarta. It helps me a lot as a newbie newcomer in this mega city. And I’m so grateful for my friend who told me that app.

Screenshot_Trafi_1

Realtime position of trans jakarta bus displayed in Trafi route

The information it provides includes the routes and schedules of KRL (Jakarta Commuter Line), Trans Jakarta (busway), Medium buses (Kopaja, Metromini), as well as angkot (angkutan kota / common public transportation). And if –for some reason– there are no route available for your destination, it will return walking route instead.

Screenshot_Trafi_2

Details of route displaying bus stops

The schedule estimation doesn’t always give you the right time. So, don’t expect it tell you the exact time of arrival. Be prepare for the worst thing, and spare some time for your convenient. But, most of the time, it can predict the close departure and arrival time of KRL and Trans Jakarta but not angkot. And it’s handy especially for strangers, newcomers or travelers (and backpackers) who have no acquaintance in this city to traveling to local destination.

Advertisements

Installing KDEConnect Indicator on Budgie Desktop

So, I missed a crucial info in my previous post about the switch of my desktop from KDE to Budgie. The KDE “flavor” that I meant was KDE connect indicator, as well as its context menu in Dolphin file manager to send files to Android. Actually it’s something that retains me to stay loyal using KDE desktop for quite some time. It’s a nifty app for me, as I can get every notification from my phone right away without touching it.

When I decided to move to Budgie, I also looked for similar apps that I used to have in KDE, including this KDE connect. Fortunately, there has been some projects that support KDE connect for Budgie, or Gnome in common. And among them, I chose indicator-kdeconnect applet by Bajoja in Github. (The repo might will move to Gitlab soon ๐Ÿ™‚ )

The project has provided install instruction for Fedora. Here is the snippet:

on Fedora:
-> sudo dnf install gtk3-devel
-> sudo dnf install libappindicator-gtk3-devel
-> sudo dnf install cmake
-> sudo dnf install vala-devel
-> sudo dnf install python3-requests-oauthlib
-> sudo dnf install nautilus-python (if you use Nautilus)
            nemo-python (if you use Nemo)
            caja-python (if you use Caja)

Obviously you should install kdeconnect 1.0.0 or up to use the features

compile:
    mkdir build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    make
sudo make install

After finishing the compilation process, and running the binary, I got the KDE connect indicator in the panel.

kdeconnect-indicator-building

Compile process of indicator-kdeconnect in Budgie desktop

Of course I have installed the KDE connect binary and made sure it’s running, in order to have the context menu in Dolphin to send files.

kdeconnect-budgie

Android files are displayed in Dolphin

Everything of KDE connect is working fine, including multimedia controller, remote input, as well as copy-paste text into and from device. Although for the latter, I haven’t found the corresponding feature like KDE’s clipper for copied texts in Budgie.

It’s so much fun to “learn” German with Google Assistant, an Android app which is similar to Apple’s Siri. By saying “Okay google” to an Android device that has it installed, we can then ask anything. I don’t know whether it’s available to all device, though. Since I also rather surprised to find it installed on my phone. It must be included in the latest update of LineageOS which I use, and I updated it a couple of days ago.

Just have a look at the video how I had a humble conversation with the sort of artificial intelligent built by the largest tech company. Note that some are just jokes. ๐Ÿ˜€

Ich Lerne Deutsch mit Google Assistant

Hacking React Native!

My acquaintance encouraged (or maybe challenged) me to try React Native for developing Android app. Should I endorse you here, kang Chip? ๐Ÿ˜€ย  Actually he has told me about React Native a year ago. And by then, I have bought a React Native ebook as well. But, unfortunately, I had so many buts. ๐Ÿ˜€

I have quite forgot about React Native right now. In additions, a few months ago, there’s been a discourse about its license. It made me discouraged to learn it more. But now, I have set a historical step, by creating a new –dummy– React Native project. These are the screenshots:

Screenshot_20171109_221212

Screenshot_20171109-221208

Oops, that’s error

The most exciting part is: I can code it by Vim! Some kind of killing two birds with one stone! Yeah, I can learn both Vim and React Native at once. It’s not multitasking, but eficiency. ๐Ÿ˜€

Installing Openshift Origin on Digitalocean Droplet

Lately I wondered why my websites as well as the backend for my app (also available for Android) were so slow that the app was hardly usable. By wondering, I mean, I did’t get it, what’s happened in the underlying service, Openshift Online Starter v3. Actually I knew the cause, which was made by myself though. ๐Ÿ˜€

I was experimenting with SSL setup in the routes settings of Openshift project configuration page. There are 3 options for the secure route, Edge Termination, Passthrough Termination, Re-encrypt Termination, which are described on the official documentation page here. I have played with all those options, and the results were very very slow download speed, or maybe just the TTL. I had secure route to be activated for one of my subdomain need SSL, which was then to be paired with Full SSL option in CloudFlare. Yeah, I make use of it for the DNS server anyway. And as for SSL certificates for the Openshift route, I obtained it from Cloudflare’s. So, it’s obvious that there was a communication issue between them, particularly at SSL handshake session. Although, according to a comment for my question on Stackoverflow, he said that it’s a known issue on Openshift itself.

So, rather than disabling SSL for the sake of website speed, I was planning to move the data to traditional hosting, or VPS. I tended to choose the latter, as I have enough credit in Digitalocean right now. But, as I quite lazy to setup production server on a bare VPS, and my project was customized for Openshift, I’d rather searching for how to setup Openshift Origin on DigitalOcean. In the first run, I set up a Fedora Atomic droplet, that actually I didn’t understand what it was. ๐Ÿ˜€ Thanks to buddies on @FedoraID telegram group, I quite enlightened about it now. ๐Ÿ™‚

Eventually, I found a thorough tutorial how to setup Openshift Origin on VPS. So, here I just want to share some screenshots of my success on setting it up. ๐Ÿ™‚ FYI, it only took 2 hours for me to play around with it on Digitalocean droplet, as I realized that a 512 MB droplet would not sufficient to run Openshift service in it, as it encountered sudden stop so often due to the lack of memory.

Screenshot_20171102_005657Screenshot_20171102_015009

Screenshot_20171102_020825

Low resource (memory) on a half gig droplet

 

Get forced to wake up

Do you have a problem with your wake up time? Do you often get up too late? You deserve trying this app. Its name is Fajar Warrior Alarm, “just” an alarm app. Actually there are a lot of similar app in the PlayStore. But I choose this one for you, because it’s free (of course the others are free as well though), free of charge and free of ads, that’s the point. I hate apps that show ads so often. And luckily, there is still a generous developer who doesn’t take the user’s freedom to not showing ads in his app. I mean this alarm app.

So, what else that makes it awesome? The challenge to stop the alarm voice. You couldn’t stop the alarm, unless you type the exact same sentence (a hadith) in the input it has. Actually I searched for “math alarm” when I found this app. But unfortunately it contained ads, so I looked for another app instead. And it led me to this Fajar Warrior Alarm.

The idea is similar to the app I wanted in the first place. It won’t stop the noisy alarm until the user type in some expected text. It causes the user to use his/her fully consciousness when typing the answer. And hopefully make the user totally wake up. So curious about it? Just install it and try it on your phone. Good luck.

How to “soft-block” Whatsapp contacts

I have roughly a thousand contacts in my Google account that are synced to my Android. Since they’re saved in Google’s server, I don’t worry if I have to hard reset my phone, for instance. Or the worst thing: it’s lost. So, actually, I would never remove any contact unless it’s really disappeared from this earth. Wkwkwk…

Then comes to my mind a desire not to let a few of them seeing my activities on Whatsapp, in this case status updates. Yeah, maybe I’m the only one who really get paranoid about sort of thing called “online privacy”, actually “fake privacy”, I know.

So, in one day, unintentionally, I found one of my contact had no name on Whatsapp. I rather confused then, what caused it. So thanks to my super curiosity, I kept searching, and eventually I found out a suspect: ASUS Contact Manager, coupled with a setting inside Whatsapp. Take a look these screenshots:

IMG_20170829_184355

Select only visible group

IMG_20170829_185559

Un-tick the option to show all contacts

And as the result, only certain people who can see my rapid status updates on Whatsapp. Wkwkwk…

Of course I don’t have to do all those sort of things though, since the one who can see our Whatsapp updates is he/she who also save our phone number in his/her phone. I haven’t tried it on other phone than Zenfone, as I couldn’t find the feature to show/hide contacts. Perhaps you have found it out? Just push your comment below.

Edit 06.2018: Whatsapp has removed the checkbox option whether to show all contacts or not as per about April or May.