Finding out operating system name
If you ever need to quickly find out what operating system you are currently using, use this little command uname -a
Read More »If you ever need to quickly find out what operating system you are currently using, use this little command uname -a
Read More »du -xk | sort -n
Read More »Create your messages_en.properties with your messages as a key value pair greeting_hello=Hello {0} Now in code use the following ResourceBundle resourceBundle= PropertyResourceBundle.getBundle(“messages_en.properties”); String message = resourceBundle.getString(“greeting_hello”); MessageFormat messageFormat = new MessageFormat(message); String formattedMessage = messageFormat.format(“Markzi”); System.out.println(formattedMessage); This will print out Hello Markzi
Read More »Came across this when trying to parse a time. DateFormat timeFormat = DateFormat.getTimeInstance(); timeFormat.parse(“11:23:00”): Caused by: java.text.ParseException: Unparseable date: “11:23:00” at java.text.DateFormat.parse(DateFormat.java:347) Solution was a simple one. Set the style and locale on the DateFormat DateFormat timeFormat = DateFormat.getTimeInstance(DateFormat.SHORT, Locale.UK); timeFormat.parse(“11:23:00”):
Read More »export to ‘filename’ of del lobfile ‘filenameoflob’ modified by lobsinfile ‘select….’
Read More »heres how to delete the contents of an entire table in DB2 db2 import from /dev/null of del commitcount 1000 replace into ‘tablename’
Read More »How to select via date or time in DB2 db2 select * from ‘tablename’ where ‘timestampcolumnname’ > timestamp (‘YYYY-MM-DD-hh.mm.ss.ffffff’)
Read More »Well here it is. Nothing special. Wordpress installed and iPhone app downloaded and working. All that’s left to do now is shut up shop and good to bed. Goodnight.
Read More »