IntelliJ 2017.1 is OUT!!!

Got this from their email announcement:

IntelliJ IDEA 2017.1 is available for download! In addition to many important bug fixes, this massive update brings lots of improvements to supported languages, frameworks, and built-in tools.

  • Java 9: The latest builds of JDK 9 are fully supported, with assisted project import and coding assistance for editing module declarations. Built-in inspections validate module declarations and provide quick-fixes for adjusting project dependencies.

  • Java 8: Quick-fixes that help migrate for loops to Stream API calls have been improved and now support more sophisticated scenarios. We’ve also added a quick-fix that turns Stream API calls back into for loops, which is handy for debugging or exploring code.

  • Async-aware debugger: Async stacktraces is a new feature that substitutes parts of a stack trace related to asynchronous code execution with data captured from where that code is invoked. This helps you focus on what you’re debugging. An improved Smart Step Into also supports asynchronous code and lambda expressions running on other threads.

  • Better VCS: The Log panel for Git and Mercurial has new display options, the Diff dialog gets an option to Ignore imports and formatting, and File History for Git is now faster. We’ve also added Favorite Branches and Speed Search to the Branches popup for Git.

  • Search: The Find in Path dialog, which previously had added a Preview tab, has been reworked from the ground up and now shows instant results in the first place. What is more important, now you can open any selected result in the Editor simply by pressing Enter.

  • Spring: Spring Testing has been updated to support Spring Boot 1.4.3, and the upcoming Spring 5.0. Spring Data tools are updated to version 2.0 (including MongoDB, Redis, Solr, KeyValue, Gemfire, Apache Cassandra, REST, Neo4j, Couchbase, and Elasticsearch). There’s also a new Data tab in the Spring tool window which brings better repository navigation.

  • Gradle: Support for Composite Builds is much improved with the detection of includeBuild in Gradle settings and automatic project configuration.

  • Kotlin 1.1: Among other things, the new version of this JVM language introduces coroutines—the new non-blocking asynchronous API, and fully supports compilation to JavaScript. This means you can use Kotlin strings, collections, sequences, arrays and other core API in your JavaScript apps.

  • JavaScript: We’re bringing first-class support for Vue.js, lots of new code style options for JavaScript and TypeScript, faster and more reliable integrations with Angular, ESLint and TSLint (including language service support and TSLint-powered quick-fixes). Plus, simpler editing of project dependencies in package.json with package names and versions completion and easier running of Mocha and Jest tests with the new Run gutter icon that also displays test state.

  • Database tools: IntelliJ IDEA now allows you to transfer table schemas and data between any two databases (yes, even from MySQL to Microsoft SQL Server and back).

  • Emoji: The editor now supports Unicode emoji characters (handy for writing comments).

  • Android Studio 2.2.2: This update includes all changes from Android Studio 2.2.2.

  • Docker: The Docker plugin now supports Docker for Mac and works via “unix://”.

  • Windows: The 64-bit installer for Windows lets you give IntelliJ IDEA more RAM.

rePost:Your Desk Will Not Attend Your Funeral – Personal Growth – Medium

Who has time for people?

There is one critical flaw in this order of priorities: Your desk won’t make it to your funeral. Neither will your Facebook account. In fact, unless you are very close, your boss probably won’t either.

When you close your eyes for the last time, the only remnants of a life once lived will be a box, varying in size and style, and the people you affected positively.

Source: Your Desk Will Not Attend Your Funeral – Personal Growth – Medium

My Personal Space 201703211639

Di ko ma i post sa facebook.
Ayaw ko na magalit ulit ang misis at nanay ko sa akin.
Para sa mga tards kong kakilala. Kailangan bang i claim ng china ang quezon city para matauhan kayong lahat?

MyBatis, Postgresql, Byte Array and ByteA

 
Spent about an hour or two trying to find the correct TypeHandler and jdbcType combination to be able to retrieve data from a bytea type column in a postgresql table.
 
This is what I got:

 jdbcType="BINARY" typeHandler="org.apache.ibatis.type.ByteArrayTypeHandler"

Hope this helps someone.
For inserting I used this combination:

javaType=byte[], jdbcType=BLOB, typeHandler=org.apache.ibatis.type.BlobTypeHandler

The error I encountered was :
org.postgresql.util.PSQLException: Bad value for type int : \3
 
The error is caused by defaulting to the use of oid when the field was actually stored in the column and not elsewhere.
 
Comment if this was useful!

Seth's Blog: Three simple and difficult steps

This takes guts because it means you’ll have to do something.If you can invest in these three assets, what happens to your leverage? Your value? Your choices?There are people who can cut corners better than you, work more hours than you and certainly work cheaper than you. But what would happen if you became the person who was smarter, better at solving problems and cared the most?

Source: Seth’s Blog: Three simple and difficult steps

The Dutch Donald Trump wasn’t stopped, he was copied

In 1996, a Dutch judge sentenced the extreme-right politician Hans Janmaat for saying “As soon as we have the power and the opportunity, we will eliminate multiculturalism.” Pretty tame compared to Wilders, who’s constantly denouncing “palaces of hatred” (mosques) and “street terrorists” (Moroccan youth). At the start of his campaign, current prime minister Mark Rutte of the VVD said he hates the term “multiculturalism.” Rutte hasn’t prevailed over the populist right; he’s joined its ranks.

Source: The Dutch Donald Trump wasn’t stopped, he was copied

The One Skill You Need – Simple Programmer

“But I agree with you that somebody, somebody who had worked in the White House, — not Clinton himself, but somebody who has been close to the process — said that should we be successful, the actually most important thing you can do is to have big chunks of time during the day where all you’re doing is thinking.” Obama goes on to observe that without this time, “You start making mistakes, or you lose the big picture.”

Source: The One Skill You Need – Simple Programmer

The Dangers of the Good Child | The Book of Life

At work, the good adult has problems too. As a child, they follow the rules; never make trouble and take care not to annoy anyone. But following the rules won’t get you very far in adult life. Almost everything that’s interesting, worth doing or important will meet with a degree of opposition. A brilliant idea will always disappoint certain people – and yet very much be worth holding on to. The good child is condemned to career mediocrity and sterile people-pleasing.

Source: The Dangers of the Good Child | The Book of Life

The Dangers of the Good Child | The Book of Life

Many good children are good out of love of a depressed harassed parent who makes it clear they just couldn’t cope with any more complications or difficulties. Or maybe they are very good to soothe a violently angry parent who could become catastrophically frightening at any sign of less than perfect conduct. Or perhaps the parent was very busy and distracted; only by being very good could the child  hope to gain a sliver of their interest.

But this repression of more challenging emotions, though it produces short-term pleasant obedience, stores up a huge amount of difficulty in later life. Practiced educators and parents should spot signs of exaggerated politeness – and treat them as the danger they are.

Source: The Dangers of the Good Child | The Book of Life