Gabriele

Gabriele

Author's details

Name: Gabriele
Date registered: 18/04/2011

Biography

Gabriele has a passion for logic and mathematics without numbers that apply, within Labs Project Management , in timely researching solutions at the same time elegant and extremely functional. Gabriele is also a guy who likes adventure travel, explore new places and meet people who has something to tell. Among the many explorations , the gastronomic and local realities are his favorite.

Latest posts

  1. Dynamic bind_param for mysqli update query in PHP — 02/03/2016
  2. Fix PHP blank page and manage errors without server access — 29/02/2016
  3. Cannot install language in Prestashop on localhost — 25/03/2015
  4. Send var_dump result to a string variable with PHP — 27/07/2014
  5. json_encode(): Invalid UTF-8 sequence in argument and SLIM — 17/05/2014

Most commented posts

  1. WordPress Plugin – Limit Post Creation — 27 comments
  2. Howto set timezone in php.ini with Plesk — 9 comments
  3. Howto solve problem Fatal error: Call to undefined function curl_init() — 4 comments
  4. Set table td value with Jquery — 2 comments
  5. Mysql – check if a date is between two dates — 2 comments

Author's posts listings

Aug 05

org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Transient error, please try again

The exception org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Transient error, please try again rises because persistance does not reach our database instance. So two chances : First : It a Google Cloud problem, it’s down…very unlikely Second : YOU make some mistyping when configuring your instance in your IDE or in yours configurations files. Check it very …

Continue reading »

Jul 30

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘url-pattern’

After JPA configuration and some change into configurations in Ecplipse IDE we get in trouble with our web.xml file. Eclipse reports this error: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘url-pattern’. One of ‘{“http://java.sun.com/xml/ns/javaee”:web-resource-name}’ is expected.

Continue reading »

Jul 21

how to check free space on disk in CentOS

To check free space on the disk using Linux environment like CentOS you can use the df command like “df -h“. The manual page says:

Continue reading »

Jul 12

UTF-8 problem with JSON and Java in Android

We have a web service that responds with JSON data. In this data you can find String object . Than we have a Mobile App built for Android devices that uses GSON library to parse JSON from that Web Service and than use SQLiteOpenHelper to save and retrieve data into Android DB .

Continue reading »

Jul 06

Diff two files in Eclipse

Developing with Eclispe could be tricky, just an example : what do you do when you want to compare two files? Solution is really near you, just: Select you file with CRTL+Click or CMD+Click Right Click on one file and select “Compare With” -> “Each Other”

Jul 06

Adding new jar library in GAE

When you begin using Google App Engine the first matter you encounter is to add support for your preferites jar libraries. That seems difficult will be a simple matter: Copy your jar library in NameOfYourApp/war/WEB-INF/lib directory Then Add it to Java Build Path : you can go to the project properties and then “Java Build …

Continue reading »

Jun 24

Set table td value with Jquery

Set the value of a table td with Jquery is a really simple matter: just use a classic Jquery Selector and the method .html . An example is the better way to learn it : we have a td like this <tr> <td id=”mySelectedTd”></td> </tr> and than use the Jquery command $(“#mySelectedTd”).html(“<b>It Works!</b>”); As we …

Continue reading »

May 03

Check is form with enctype multipart/form-data is submitted in Java ServLet

When we work whit Java Servlet and make use of forms with enctype setted to multipart/form-data we need to know if the form is submitted. In classic implementation ( without multipart/form-data) we use request.getParameter(“submitButtonName”) function to check if submit button is clicked but with multipart/form-data we verify that request.getParameter(“submitButtonName”) return NULL value. Those because the …

Continue reading »

Apr 25

com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 7 in GAE

When you try using Google App Engine GAE with Google Cloud Storage you can come in touch with the following Exception: Uncaught exception from servlet java.io.IOException at com.google.appengine.api.files.FileServiceImpl.translateException(FileServiceImpl.java:615) at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java:588) at com.google.appengine.api.files.FileServiceImpl.create(FileServiceImpl.java:506) at com.google.appengine.api.files.FileServiceImpl.createNewGSFile(FileServiceImpl.java:153) at com.myproject.ImageUploadServlet.doGet(ImageUploadServlet.java:36) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:57) at …

Continue reading »

Apr 17

org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role

Sometimes Hibernate can be very tricky! Exception threwn by LazyInizialition means that we have set lazy loading in the part indicated by the exception. The simplest way to evercome to this situazion is to set both in hbm xml file and in java class the lazy value to true and Eager ( opposite of Lazy). …

Continue reading »

Older posts «

» Newer posts