Feb 18

.htaccess: Option FollowSymlinks not allowed here Open Cart

One of the first thing you want to enable is mod_rewrite to allow SEO friendly URL. When doing it with Open Cart you can encounter this error :

[error]Option FollowSymlinks not allowed here[/error]

We found this error with Open Cart e-commerce system and Virtualmin, web hosting panel. Solution to this problem is as easy as modifying a line of code in .htaccess file.

  • Just find your .htaccess, in your root web directory
  • Comment with # the line Option FollowSymlinks
  • Add Options +SymLinksifOwnerMatch

It’s a security fix.

 

 

 

 

Sep 24

Eclipse dies on start up org.eclipse.mylyn.tasks.ui

Having a bug that blocks Eclipse from starting is frustating. Solving it is emotional. Bug is : Eclipse doesn’t start and dies showing org.eclipse.mylyn.tasks.ui.

Searching Google i found an article talking about this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=388170 .

Reading it we found the solution to our problem and the cause of the bug.

Cause seems to be SVN Tool Kit, and solution or workaround is starting eclipse with the option -Djava.awt.headless=true

Aug 08

A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar

Error in title “A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar” cab be found during development using JPA and Google App Engine. To solve this issue you have to correctly annotate the field oh type Date so:

@Entity
@Table(name="studio")
public class StudioDb {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id_studio;
    
    @Temporal(TemporalType.DATE)
    private Date start;
    @Temporal(TemporalType.DATE)
    private Date end;

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 :

  1. First : It a Google Cloud problem, it’s down…very unlikely
  2. Second : YOU make some mistyping when configuring your instance in your IDE or in yours configurations files. Check it very carefully!

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 “cvc-complex-type.2.4.a: Invalid content was found starting with element ‘url-pattern’” »

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 “how to check free space on disk in CentOS” »

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 “UTF-8 problem with JSON and Java in Android” »

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:

  1. Select you file with CRTL+Click or CMD+Click
  2. 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:

  1. Copy your jar library in NameOfYourApp/war/WEB-INF/lib directory
  2. Then Add it to Java Build Path : you can go to the project properties and then “Java Build Path” –> “Add Jar”

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 tell you before you can use any valid Jquery selector

Older posts «

» Newer posts