Author: truongan
-
Force firefox to use light theme for content widget, even when choosing dark GTK+ theme.
The problem that had been haunting me for so long is firefox and dark theme. When choosing a dark GTK theme, firefox will use that same theme for widgets on website, especially website with forms. Now, most website will try to tweak the display of their form widget a bit, but not all website did…
-
Launch gnome-terminal with a specific profile from within code::blocks
I use code::blocks when teaching Programming introductory courses because it’s simple to install and get going. However, when running code from codeblocks it will default to launch xterm, which is not quite my taste. So I naturally go to: Settings -> Environment Then change the setting: “Terminal to launch console programs” to gnome-terminal. Most of…
-
Film review: Tháng năm rực rỡ
Cũng lâu rồi blog không có bài nào tiếng Việt, thôi giờ review film Việt thì viết tiếng Việt đỡ chứ chả lẽ viết tiếng Anh mãi trong khi mình biết mình viết dở. Nói chung là bị rủ rê đi xem film và cũng lâu rồi không đi ủng hột một film Việt nào.…
-
Building a home media streaming server. Part 2: The streaming server
Now that I got my TV hook up to the laptop and the PC working as the media server serving those FullHD x264 film over the air. I can simply install on it and got top notch home media experience, just look at this beautiful picture, it sure speak more than thousands word: However, the…
-
Building a home media streaming server. Part 1: The media server
This will be a multi part blogging of my journy to build a Home Theatre PC (HTPC), becasue so many things was learned to put all in a single post. The context The TV After a very long long long time of ear whispering and diner table talking, I finally persuade mom to get rid…
-
[Vestacp] Increase database username length limit
For so long mysql has a harcoded 16 characters length limit on username. And vestacp enforce this limitation, every database username have to be less than 17 characters long. The problem is mysql has increase this length limit to 32 charcaters and mariadb even remove this limit completely but vestacp hadn’t lift their limit yet…
-
Glass castle film review.
I seldom write film review, even though I pirated and watched lots of film, mostly because I am lazy, but more often than not I only talk about film than I can reflect upon my own life, like “Rain man” for example. Recently I stumble upon Glass castle (http://www.imdb.com/title/tt2378507/) The rating was mediocre but I…
-
Using Code Igniter pagination class with bootstrap 4.0-beta2
Code igniter have a helper class to generate pagination for a page. This class is fairly primitve but highly customizable, and since I’m lazy mood I gooogle around finding some ways to customize it to work with bootstrap 4.0-beta2. So at first I came across this snippet: https://github.com/zulacom/ci-paging-bootstrap-4/blob/master/pagination.php but this snippet do well in mimicking…
-
Something I learnt about openssl
I’ve been starting to use vestacp to manage my server. Mostly because it’s open source and simple design. But recently it’s SSL feature just… fail. It reject every certificate I throw at it, either from Let’s Encrypt or self sign. So after many lazy-ish hesitant, I decided to dig in. Turn out that vesta use…