Installing a Java Application as a Windows Service – DZone Java

It sounds like something you’d never need, but sometimes, when you distribute end-user software, you may need to install a java program as a Windows service. I had to do it because I developed a tool for civil servants to automatically convert and push their Excel files to the opendata portal of my country. The tool has to run periodically, so it’s a prime candidate for a service (which would make the upload possible even if the civil servant forgets about this task altogether, and besides, repetitive manua

Source: Installing a Java Application as a Windows Service – DZone Java

The Feynman Technique: The Most Efficient Way to Learn Anything

Two Types of Knowledge There are two types of knowledge and most of us focus on the wrong one. The first type of knowledge focuses on knowing the name of something. The second focuses on knowing something. These are not the same thing. The famous Nobel winning physicist Richard Feynman understood the difference between knowing something and knowing the name of something and it’s one of the most important reasons for his success. In fact, he created a formula for learning that ensured he understood somethin

Source: The Feynman Technique: The Most Efficient Way to Learn Anything

Jetty Application Server: Creating Start-up Script in Ubuntu

Sunday, June 26, 2016 Creating Start-up Script in Ubuntu I installed Redmine in an Ubuntu Server at Windows Azure and was successful in doing so. However, Azure did some maintenance in my server and has to restart it. So, when I accessed Redmine again, Nginx redirected me to its Error 502 page. Upon checking, I realized that  there was really a restart that happened and I thought I have to create a start-up script to avoid this since it was not only me who is using the Redmine which I installed but also my

Source: Jetty Application Server: Creating Start-up Script in Ubuntu

How Only Using Logic Destroyed a Man’s Life — Science of Us

This led Damasio to formulate what might be his great contribution to the understanding of the brain (and the human body): what he calls the somatic (as in body) marker hypothesis. Essentially, he reasons, when you’re thinking about a course of action, you imagine your body to be in the potential situation, and you get, in layman’s terms, a “good” or “bad” feeling about it. It’s not that right decisions come from that sort of feeling alone, but, Damasio argues, those “somatic markers” filter away lots of alternatives; they’re a shortcut to decision-making. While Elliot’s landscape of potential realities all had “flat” values, healthy people weigh the potential outcomes that are left after “somatic markers” filter the other possibilities out.As Damasio said in a later interview, wisdom, if you choose to accept it, is what happens when you accrue lots of somatic knowledge in your life: If you’ve been through lots, then you know how you would feel in a wide variety of situations, allowing you to make better decisions (and give, as one does, better advice). Therein lies the problem of the high-reason view: without the filtering provided by emotions and their somatic markers, the data sets for any given decision — whether it’s what to get for lunch or whom to marry — would be overwhelming. The working memory can only juggle so many objects at once. To make the right call, you need to feel your way — or at least part of your way — there.

Source: How Only Using Logic Destroyed a Man’s Life — Science of Us

The Quiet Crisis unfolding in Software Development — Medium

This article is a month old. I’ve read it maybe 30 times at least. I read it to be connected to a sensible development manager mind, something that can’t be said of my boss (not our CTO, I think he will mostly agree with this). haha.
If you are a developer/programmer and you are passionate about your job. You would probably love this article.
 
 

In my current position as Senior Development Director there are six Development Managers that report to me. There are just under fifty software developers in my organization. We have enviably low employee turnover and very high customer satisfaction. Over the years I’ve given my direct reports and their direct reports the same insights I’m going to share with you now. These insights are hard-won wisdom rather than something I intuitively knew or read about. That is to say, I learned the hard way. The reason

Source: The Quiet Crisis unfolding in Software Development — Medium

Ego is the Enemy: The Legend of Genghis Khan

Under Genghis Khan’s direction, the Mongols were as ruthless about stealing and absorbing the best of each culture they encountered as they were about conquest itself. Though there were essentially no technological inventions, no beautiful buildings or even great Mongol art, with each battle and enemy, their culture learned and absorbed something new. Genghis Khan was not born a genius. Instead, as one biographer put it, his was “a persistent cycle of pragmatic learning, experimental adaptation, and constan

Source: Ego is the Enemy: The Legend of Genghis Khan

Download SQL Server Express – Scott Hanselman

There’s a funny blog post about how to download SQL Server Express from Long Zheng. It surprisingly how complex some companies make downloading things. I’ve always thought that a giant Download Now button is the best way, but perhaps that’s just me?Downloading SQL Server Express is unnecessarily hard, and it’s made harder by the new Microsoft Download Center “download multiple files” interface that doesn’t include descriptions or primary file recommendations. It should be a list of links, and you should be able to right click and Save As.

Source: Download SQL Server Express – Scott Hanselman
 
 
This is such a fucking useful blog. Direct links to sqlexpress installer downloads.

datetime – In a unix shell, how to get yesterday's date into a variable? – Stack Overflow

In a unix shell, how to get yesterday’s date into a variable?

You can use GNU date command as shown below

Getting Date In the Past
To get yesterday and earlier day in the past use string day ago:

date –date=’yesterday’
date –date=’1 day ago’
date –date=’10 day ago’
date –date=’10 week ago’
date –date=’10 month ago’
date –date=’10 year ago’

Getting Date In the Future
To get tomorrow and day after tomorrow (tomorrow+N) use day word to get date in the future as follows:

date –date=’tomorrow’
date –date=’1 day’
date –date=’10 day’
date –date=’10 week’
date –date=’10 month’
date –date=’10 year’

Source: datetime – In a unix shell, how to get yesterday’s date into a variable? – Stack Overflow
 
 
I basically google everything when making a shell script for linux.  Blame projects with component that require windows stuff which has helped me forget what I used to know about shell scripting
 
Here is a way of using GNU date which is fortunately present in the linux installed in the oracle servers where our weblogic application servers are installed.
This was used in a CRON job that had to look at a file that is stored in a directory which is formatted with yesterday’s date <YYYYMMDD>.
another useful stackoverflow link regarding the date command.
Here is the link that help me format the command in a CRON job
The secret is that % have to be escaped with \

Oracle SQL: Update a table with data from another table

First time I used a correlated update in a script I had to do.

In oracle SQL, how do I run an sql update query that can update Table 1 with Table 2’s name and desc using the same id?
This is called a correlated update

UPDATE table1 t1
   SET (name, desc) = (SELECT t2.name, t2.desc
                         FROM table2 t2
                        WHERE t1.id = t2.id)
 WHERE EXISTS (
    SELECT 1
      FROM table2 t2
     WHERE t1.id = t2.id )

Assuming the join results in a key-preserved view, you could also

UPDATE (SELECT t1.id,
               t1.name name1,
               t1.desc desc1,
               t2.name name2,
               t2.desc desc2
          FROM table1 t1,
               table2 t2
         WHERE t1.id = t2.id)
   SET name1 = name2,
       desc1 = desc2

 
 
Source: Oracle SQL: Update a table with data from another table
 
Guide to the select form found here.
 
 

A call for secession from Silicon Valley – Michael O. Church

Silicon Valley wants the world to believe that it is the new America, and that the United States is the Great Britain of 1773. It does not wish for explicit political secession, but it wants economic and cultural secession. It doesn’t want to pay its taxes, and it only wants to follow American laws when they are convenient to it. It has emotionally divorced itself from the rest of us. So should we let it secede? On the contrary, we should secede from it. Silicon Valley draws its strength from Real American

Source: A call for secession from Silicon Valley – Michael O. Church

I care for a more technologically advance world.
It seems that SV is actively impeding this because it has slowly become less about technology and more about marketing.