How to Solve Grunt Imagemin GLIBC_2.14 Not Found Problem

So one day, out of the blue, my grunt build job started failing in jenkins. I was quite confused why. Because it was working fine if I did it from my dev machine. I have a PC, a personal laptop, a work laptop, and two home servers (which are just old laptops converted to do various stuffs), and it worked fine in all, except in one of the home server which is running jenkins.
Read more →

Java Application Server is dead, so is Docker?

So lately, a lot of people in my circle is talking about why java application server is dead. The reason why is explained in the slides here. Basically what I get is that because nowdays people only deploy one artifact in one application server, it beats the point of the application server. It’s more like that the application server is already part of the application. So, it would be better to treat the application server as part of the application and ship them together as a package.
Read more →

Excellence

What does excellence means? I checked some source in the internet, and the first result that I got was, “The state, quality, or condition of excelling; superiority” When I check the meaning of excellent, I got as the first result “Of the highest or finest quality; exceptionally good of its kind”. So if somebody is an excellent guy, it would mean that he’s of the highest or finest quality, and he’s exceptionally good of its kind.
Read more →

Management Lesson Everyone Should Know

A turkey was chatting with a bull. “I would love to be able to get to the top of that tree,” sighed the turkey, “but I haven’t got the energy.” “Well, why don’t you nibble on some of my droppings?” replied the bull. “They’re packed with nutrients.” The turkey pecked at a lump of dung and found that it actually gave him enough strength to reach the lowest branch of the tree.
Read more →

Hibernate Soft Delete and Optimistic Locking Problem

Sometimes, in the database, we will want to not delete stuff because the data might still be needed later. Maybe some other process in the company will have to generate an invoice by the end of the month. That’s also one of the reason in my workplace, why there won’t be any hard delete in the database except when we’re sure it’s really necessary. One solution for this, in hibernate, is to overwrite the sql delete command using the @SqlDelete annotation:
Read more →

AngularJs and VideoJs problem: Video only loaded on hard refresh, not on switching page

So I was working on a private project with angular js and video js, and I am loading videojs dynamically after I got the source of the video, and there’s this very interesting problem where videojs will only be loaded only if you hard-refresh the page (f5-button). If you navigate to the page where it contains the video, or if you were on the page, go somewhere else, then come back again, the video won’t be loaded anymore and you’ll only get your old html5 video from the browser.
Read more →

Monitor resolution not properly detected in Linux (Debian 7 or Wheezy)

So I have an ATI HD5xxx graphic card in my desktop personal computer. It’s a nice and quite fast card. It also has three display adapters: HDMI, DVI, DisplayPort. On my desk, there are two monitors. One of them have a DVI and a VGA adapter. The other however, only have VGA adapter. Do you see the problem here? My graphic card has no VGA adapter, because of this, I need to use some adapter, and because I used an adapter, the resolution of the monitor is not detected properly.
Read more →

Installing Skype on 64-bit Debian 7 (codename: Wheezy)

So it was when I was trying to install Skype on my brand new Debian 7 (Wheezy) when I encountered this problem: package architecture (i386) does not match system (amd64) Actually I was a little shocked. I just downloaded the Skype package for Debian from the official website then tried to install it normally using “dpkg -i ”, and it used to always work (normally). Actually I came from the rpm world (Fedora and CentOS) and have been only using Windows 8 for the past few months for my thesis, so I am actually wondering whether I’m the one who is a little out of date, or this is just a deb thingie, or I’m just too thick and dumb.
Read more →

Factorial function of 10000!

I have a friend who asked me to teach him Java programming. About a few days ago, he told me : Programmers should work fast and efficient. Please give me a task which has a time limit. I’m not used to fast programming. The part about fast and efficient is always universally true. It doesn’t apply to only programming, but I am more in the direction of doing something right instead of fast.
Read more →