By Chris on January 8, 2019
Perenial Seller: The Art of Making and Marketing Work that Lasts I’m subscribed to Ryan Holiday newsletter and read is latest work on stoic philosophy (Obstacle if the way, Ego is the Enemy, Daily stoic) and when he usually get a book out I buy it. In his book, Perenial Seller, we study on what […]
Posted in Uncategorized |
By Chris on December 22, 2018
No drama discipline A another parenting book, I’ve read 3 of those in 2017 alone it’s from the same author of the Whole brain child. Learning to help your child to use their upstairs brain when they are overwhelm in their downstairs brain (emotion). Connect with your child first before trying to do discipline. See […]
Posted in book | Tagged 2018, book, Da Vinci Code, Love yourself, No drama discipline, Recession Proof Graduate |
By Chris on January 29, 2018
In January 2017 I’ve decided I would read 16 books, my goal is to hit 100 books read before I turn 40. I’ve already read 34 in 2013-2014, 26 in 2015, 12 in 2016, so I’m only 8 shorts of my goal, so I’m going to try to read 12 book this year since I’m […]
Posted in book, Review | Tagged book, List, reviews |
By Chris on October 19, 2014
My coworker was moving files around in our SVN repo and we end up losing the history of the file. It seem it was because of our IDE (eclipse svn at the time), after some searching we manage to find a way to do it by using the svn command rename & move. Doing everything […]
Posted in prog | Tagged source control, svn |
By Chris on October 12, 2014
While trying to remove a element after creating a List from a array using the Array.asList(array[]) method I’ve stumbled on that error. java.lang.UnsupportedOperationException at java.util.AbstractList.add(AbstractList.java:131) at java.util.AbstractList.add(AbstractList.java:91) Then I remember this, list created by the Arrays.asList method are immutable Same goes for empty lists. So instead create a arraylist : List<String> list = new ArrayList<String>(Arrays.asList(split));
Posted in java, prog | Tagged arraylist, java, java.util.List |
By Chris on October 5, 2014
Our build server (jenkins) had that error BUILD FAILED com.jcraft.jsch.JSchException: java.net.NoRouteToHostException: No route to host Full stack trace below if you really need it. I assume there was a problem with where Jenkins was deploying the apps or at a issue trying to run integration test on the remote server. After talking to IT […]
Posted in prog | Tagged build server, java, jenkins |
By Chris on September 28, 2014
Comparing and sorting Strings might not work out like you expected specially when your dealing with a language other than English. Normally comparing strings in done with simple Unicode ordering. If you want to have localized ordering (the kind expected by an end user) you need to use a Collator. Commonly used String methods such […]
Posted in java, prog | Tagged collator, java, sorting, String |
By Chris on September 20, 2014
My god sometime I bang my head on the wall to do something simple on oracle. So oracle don’t support limit so to do something simple has : SELECT f_name, l_name, age from employee_data ORDER BY age DESC LIMIT 20 become : SELECT f_name, l_name, age FROM ( SELECT f_name, l_name, age, ROWNUM r FROM […]
Posted in db, prog | Tagged limit, oracle, sql |
By Chris on September 13, 2014
I was trying to update a table that using sql join but I kept getting ORA-00933 I tried the following: Using A SQL JOIN In A SQL UPDATE Statement Using A SQL JOIN In A SQL UPDATE Statement (www.bennadel.com) update table using inner join (venushuynh.wordpress.com) but I kept getting the ORA-00933 then tried this Oracle […]
Posted in db | Tagged db, error, oracle |
By Chris on September 7, 2014
Another problem I’ve it recently with saveOrUpdate that can be fix by using the same saveOrUpdate but give the class name. Using the session.saveOrUpdate(myObject) might give you a unknown entity while using the same method with the class name in parameter won’t. session.saveOrUpdate(myObject); //give a unknown entity session.saveOrUpdate(“MyObjectClassName”, MyObject); //Work The important difference between the […]
Posted in db, prog | Tagged db, hibernate |
Recent Comments