Tuesday, July 8, 2014

Action Star - A virtual reality experience by Codemodeon

You are a movie star and playing in an intense chase scene. There is no way to hide. You should run but you are stuck in the fifth floor of an apartment. The only way to escape is walking across a plank of wood between two buildings. You can see how people react and feel during the experience.

Wednesday, December 22, 2010

get2post (get request to post request conversion)

Sometimes for some reasons there is the need to convert a get request to a post request when the target site accepts only post requests. There is a simple way to do this with javascript by creating a form on the fly and posting it.

The function function get2post(requestUrl, target) can be called in this way:

or, you can specify a popup window or target by calling it in this way:
get2post('http://www.yoururl.com?param1=value1&param2=value2', 'Popup');

You can look at the test page over here: get2post

In order to use this function, copy and paste the script below to your html site.
/* Author: Redi Gokaj
* Description: This function transforms a get request into a post request using javascript.
* http://www.redigokaj.com

function get2post(requestUrl, target)
if (target == null) target = '_parent';

var postUrl = requestUrl.split("?")[0];
var parameters = requestUrl.split("?")[1].split("&");

var postForm = document.createElement("form");
postForm.setAttribute("action", postUrl);
postForm.setAttribute("method", "post");
postForm.setAttribute("target", target);
postForm.style.display = "none";

for (i = 0; i < parameters.length; i++)
var formElement = document.createElement("input");
var name = parameters[i].split("=")[0];
var value = parameters[i].split("=")[0];

formElement.name = name;
formElement.value = value;



Friday, August 27, 2010

Java compiler level does not match the version of the installed Java project facet.

When porting the Eclipse workspace to another computer or another java version there may happen an error like this:

"Java compiler level does not match the version of the installed Java project facet. Unknown Faceted Project Problem (Java Version Mismatch)"

Different solutions can be searched or applied but I would recommend you to check firstly if the JDK is properly installed and after checkcing this you need to right-click to the error and chose Quick Fix. After that there are shown 2 optional choices which one of them is to use your current JDK version. By choosing that you fix your workspace problem.

Sunday, June 6, 2010

gtk-recordMyDesktop audio problem

     When using gtk-recordMyDesktop in Ubuntu some people face problems when recording together with audio. The problem that I faced was a bad recording and sometimes skipping seconds during the audio record. After searching around you may find some solutions, but each is responsible for the specific problem that it explains. In my case, I found another simpler solution without making modifications. When using gtk-recordMyDesktop you can disable audio recording, but record your audio with "Sound Recorder" that comes installed in Ubuntu. In the end of your recording session you will have 2 files, one containing the video and the other containing the audio. Now its time to mix them. By using "MKV files creator" (you can find it in the software repository) you can merge audio and video directly without losing quality. The operation is done in an instant, so you don't even need to wait.

Friday, June 4, 2010

1 - Setting up the Eclipse environment

Watch in HD

1 - Setting up eclipse environment from Redi Gokaj on Vimeo.

This post contains the first tutorial on the Eclipse series for Dynamic Web Applications. Setting up eclipse environment together with Apache Geronimo 2.2 is the first step. All the work is done in Ubuntu.

In order to make PrimeFaces work we need to add to web.xml these:

<servlet-name>Resource Servlet</servlet-name>
<servlet-name>Resource Servlet</servlet-name>

And in order to use PrimeFaces in jsp tags, we need to add the following taglib:
<%@ taglib uri=”http://primefaces.prime.com.tr/ui” prefix=”p” %>

http://www.primefaces.org/downloads.html - Here you can find the JARs required to make it work

RSA & RDA - Logical to Physical Data Model Transformation

Watch in HD

Rational Software Architect Logical to Physical Data Model Transform from Redi Gokaj on Vimeo.

     The purpose of this video is to explain a scenario which shows the way how to create a database project using an object oriented approach. Rational Software Architect and Rational Data Architect (Infosphere Data Architect) are used for this tutorial. Using RDA and RSA you may watch this simple tutorial about creating a logical model. After that, converting it to a physical model. The third step will be creating the database, and after that creating the entities mapped with the database. With a sample web application, these entities are used and tested.