Was succeeded installing Spotify, but…

Lately, when I was booting up to Windows, Spotify just got installed and a quite serious damage got occurred. I installed it as Groove Music suggested me to do so when I opened it and found some new changes, since Microsoft would stop their music streaming service by the end of this year. While I was streaming to a podcast, suddenly the Windows hanged. I was not so sure that Spotify was the cause, instead, I suspected some kind of bad sectors might have been infected my HDD. So, I had to hard shut it down by pressing power button, then. And when booting again, the Windows took more time than usual to load up. It made me more sure to believe at the bad sector.

Then I tried streaming again, and the Windows got frozen as well.

2017-12-03 (10)
A few moments before the disaster

To make me more sure that Spotify caused the system to freeze, I installed it on Fedora. And yes, it caused Fedora to freeze, too!

Screenshot_20171203_063237
Just the same in Fedora

I’m not alone in this situation. Some people find solution for this issue, but I’m not sure if it works for me too.

I don’t know what’s actually happening. But, it just quite disappointing, even though, actually I wanted to try their premium subscription, even just for the first 3 months. 😀

Screenshot_20171203_064355
Spotify premium
Advertisements

Just been released: Fedora 27

Fedora fans all over the world have just excited for the release of the new version, Fedora 27. As usual, the the version brings several fixes and improvements as well as adds some new features.

Nevertheless, though, as for KDE spin, it’s likely there’s nothing really fresh in this new version of Fedora. From above screencast I found on youtube, we can see that the version of Plasma is 5.10.5, which is not the latest one: 5.11 that has new couple of brand new stuffs like the new Systemsettings UI design and Wayland support. But on the other hand, F27 KDE has the newest Qt version shipped, i.e 5.9.1 –nearly the newest one though.

As I wrote this post, I was in upgrading process. By the way, I started switching to Fedora since the version 23 back then. And I have successfully passed 3 times of upgrade processes, not by reinstalling a new ISO image. So, I feel so courageous to just upgrade it by DNF system-upgrade. Even though I need to download 2,4 GB of new packages!

Screenshot_20171115_155502
Upgrade process of Fedora 27

 

 

Screenshot_20171116_011020
Eventually… download finished, and then wait for the installation

Steps to upgrade

According to Fedora Magazine guide to upgrading Fedora 26 to 27, these are the DNF commands:

  1. sudo dnf upgrade --refresh
  2. sudo dnf install dnf-plugin-system-upgrade
  3. sudo dnf system-upgrade download --releasever=27
  4. sudo dnf system-upgrade reboot

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. 😀

So Melancholy

I think I don’t have to pardon you, reader, who subscribe this blog for articles about OpenSource, programming, or other similar topics. As this time, I want to share my sort of private thing. You don’t mind to read, do you? Okay, thanks.

“Learn to recognize omens, and follow them”
― Paulo CoelhoThe Alchemist

I got a kind of melancholy feeling of my –not so long– past, exactly 4 years ago. I’m rather confuse whether it’s a short or a long period. I was working in Jakarta, then. Today, I got some “omens” that reminded me to that piece of my life, the awesome one. Actually every piece is awesome, indeed.

November, I don’t recall the date, though. There was an amazing experience that will be my precious moment, ever. Looks like I have written it somewhere, in another blog or maybe I’ve hidden it in this one, but whatever. As this is another special occasion to remember. You don’t have to continue reading, of course.

I was entering a job interview, then. It’s for a junior programmer or something like that. The thing that actually an unreachable, impossible chance for me as I was totally newbie. Something that I wouldn’t forget was the interview session, light and humble one. Then it came to a discussion about my future, near one. I was asked about what’s if I can continue studying to college, what degree I want to enter, and why was that. And yes, I answered it so confidently that I want to study islamic economics. You won’t believe, that 2 years and a half later, I really got the chance. A kind of precious grace God have given me, and there’s no other way I thank Him than to do my best, no matter how unrealistic my life is, for now. That’s the thing I was so grateful for, as by then, I have determined my path.

#reserved for edit

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

 

Removing Expiration Date of Oracle Express Database

oracle_sqlplus

I currently work on a project that uses Oracle database. For the local development, I installed it with Docker. I’ve found a handy docker file of Oracle Database Express Edition 11g published by wnameless in Github or in the official page in Docker Hub.

It’s so easy to use, that I just need to type sudo docker start oracle to get it up and running. Of course by reading the Readme first.

But then I noticed an error: ORA-28002: the password will expire within 7 days. Although it doesn’t affect the app, I feel a bit annoyed. So I googled it, and found the solution afterward. But I lost the URL. My bad!

Just take a look at above picture. I won’t type in the command here, as you can found it somewhere in Stackoverflow, actually. 😀

Oh-my-zsh, Tmux, Vim

Screenshot_20171008_054737
My Konsole as of October 2017

This time, I want to share my dotfiles of my new toys: zsh, tmux and vim at once. I’ve  found out what’s tmux actually, a couple of days ago by asking to a Telegram channel, @vimid. It’s “terminal multiplexer”, some kind of, it can break your single terminal session into multiple sessions.1 So, if I made use of Konsole tabs to use vim and php artisan serve of Laravel at a time then, now I just need tmux to run them concurrently.

Oh-my-zsh

What I know about zsh is not more than a console shell for macOS, before. Although, I did realize that it’s included in every Linux distributions as well. So, I thought I wouldn’t touch it no matter what. 😀

But this is my turning point to change my idealism. 😀 I just installed it, little bit configuring, and set it as bash replacement to Konsole. Umm, am I now look like a half macOS user? 😀

So, for zsh, I installed oh-my-zsh plugin and did some tweaks for the look of the prompt. I wanted a Powerline-like look, but I didn’t want to use Powerline. So, I installed powelevel9k theme instead. And now, I’m very satisfied, as it looks much nicer than my previous console.

Tmux

I don’t configure tmux much, since I just know it not that long. I thought it was just like bash or other console shells. As I had been trying it once, one day. I run it, and nothing appeared other than a command line shell. And I just realized how it works lately. 😀

In my config, I don’t do more than set default shell to zsh, and install tmux-powerline-theme with tpm.

Vim

As for vim, I have known it for quite long time. The first time I used it, like many developers out there, I didn’t know how to exit. 😀

But yeah, slowly but sure, I somehow have a little knowledge how to handle it. I have configured it quite seriously as I use it for my daily need: coding. But still, I’d say, I haven’t got its full usability yet, as I mentioned this before.  Just check out my .vimrc below, in case you so curious for what plugins I installed.


  1.  https://fedoramagazine.org/use-tmux-more-powerful-terminal/