Czetsuya (czetsuya) uses Bloggers to connect with peer Bloggers. Sign up to follow Czetsuya (czetsuya) and promote your blogs now!

Czetsuya

Activities of Czetsuya

May 27, 2012
Czetsuya posted a new topic.
1

How to call a stateless EJB from a spring rest servlet component

czetsuya's tech ― In my recent project I was ask to develop a rest servlet (using jersey) in a spring web project that would call an stateless EJB, where the business logic is. This project is deployed on glassfish.After several hours I was able to figure out how to... (More)
Posted few seconds ago
Czetsuya posted a new topic.
1

Could not resolve dependencies for project com.xxxjar:-SNAPSHOT: Failed to collect dependencies for

czetsuya's tech ― I just have this weird problem using maven + artifactory. I have a project which I first build using maven-compiler 2.3.2, and maven2. It build successfully and I was able to deploy in artifatory 2.5. Eventually I've added several modules and one... (More)
Posted 3 hours 9 minutes ago
May 23, 2012
Czetsuya posted a new topic.
2

How to start/stop an application on boot on ubuntu like services.msc in windows

czetsuya's tech ― There's an easy way now to configure what application runs on ubuntu's startup like services.msc in windows. Rather than adding/modify some configuration, we can install a simple GUI that can do the job. sudo apt-get updatesudo apt-get install sysv... (More)
Posted 4 days ago
Czetsuya posted a new topic.
2

How to ignore maven's Plugin execution not covered by lifecycle configuration warning

czetsuya's tech ― There are times when you want to ignore some of maven warnings or errors. To do so, normally we add the ff code in the parent project's pom.xml. For example to ignore liferay's theme-merge and build-thumbnail goal warning. <pluginManagement> ... (More)
Posted 4 days ago
May 21, 2012
Czetsuya posted a new topic.
2

How to auto wire a spring bean from a jsf managed bean in liferay portlet

czetsuya's tech ― There are 2 ways I know to auto-wire a spring bean into a jsf managed bean: 1.) Is through WebApplicationContext, invoke during jsf managed bean constructor: Below are the most vital files to perform this action: web.xml <?xml version="1.0"?>... (More)
Posted 6 days ago
May 20, 2012
Czetsuya posted a new topic.
2

How to select all the triggers in an mssql table

czetsuya's tech ― I've found this script somewhere on the internet, just for reference: SELECT [Table] = OBJECT_NAME(o.parent_obj), [Trigger] = o.[name], [Type] = CASE WHEN ( SELECT cmptlevel FROM master.dbo.sysdatabases WHERE [name] = DB_NAME() ) = 80 ... (More)
Posted 7 days ago
May 17, 2012
Czetsuya posted a new topic.
3

How to install maven 3 in ubuntu 11.10

czetsuya's tech ― To install maven 3 you need to remove first, if you have, the previous versions installed (maven2). And execute the ff command in the terminal: sudo apt-get remove maven2sudo add-apt-repository ppa:natecarlson/maven3sudo apt-get install maven3 You... (More)
Posted 10 days ago
May 16, 2012
Czetsuya posted a new topic.
3

The most commonly use maven repositories

czetsuya's tech ― Primefaces - http://repository.primefaces.org Liferay portlets - http://repository.portletfaces.org/content/repositories/portletfaces-releases Sonatype - http://oss.sonatype.org/content/groups/public JBoss - http://repository.jboss.org/nexus... (More)
Posted 11 days ago
Czetsuya posted a new topic.
3

How to install VirtualBox to your Ubuntu 11.10 installation

czetsuya's tech ― 1.) Add virtual box to the repository sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian oneiric contrib"wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -sudo apt-get update 2... (More)
Posted 11 days ago
May 15, 2012
Czetsuya posted a new topic.
3

How to install Logback Logger in Glassfish 3.1.1

czetsuya's tech ― How to install Logback Logger in Glassfish 3.1.1 1.) Download the ff jars: a.) slf4j-api.jar b.) jul-to-slf4j.jar c.) logback-classic.jar d.) logback-core.jar 2.) Copy the jars mentioned above in {glassfish_home}/glassfish/lib/endorsed. 3.) Modify... (More)
Posted 12 days ago
Czetsuya posted a new topic.
3

How to install and setup Glassfish

czetsuya's tech ― 1.) Download glassfish installer from http://download.java.net/glassfish/3.1.1/release/glassfish-3.1.1.zip 2.) Unzip in {your_choice}/glassfish-3.1.1 3.) Create 'startup' script file as follows: 4.) Create mydomain domain in glashfish: {your_choice}... (More)
Posted 12 days ago
Czetsuya posted a new topic.
2

Replace openjdk7 with sun-java 1.6 in ubuntu

czetsuya's tech ― Note that I'm using ubuntu 11.10 Oneiric Ocelot1.) Execute the following commands:sudo apt-get install python-software-propertiessudo add-apt-repository ppa:ferramroberto/javasudo apt-get updatesudo apt-get install sun-java6-jdk sun-java6-plugin2.)... (More)
Posted 12 days ago
Czetsuya posted a new topic.
2

Enable Maven to push Artifact to Artifactory

czetsuya's tech ― This is done in ubuntu 11.10Open /home//.m2/settings.xml or create the file if it does not exists.Paste the ff code:<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www... (More)
Posted 12 days ago
Czetsuya posted a new topic.
3

Install libsvn-java plugin for subclipse in ubuntu 11.1010

czetsuya's tech ― 1.) Execute the ff command:sudo apt-get install libsvn-java2.) Then in your eclipse.ini setting add:-Djava.library.path=/usr/lib/jniExample:-vmargs-Djava.library.path=/opt/CollabNet_Subversion/lib-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx512m-XX... (More)
Posted 12 days ago
May 6, 2012
Czetsuya posted a new topic.
5

How to setup OpenVPN to access to a remote internal network from home

czetsuya's tech ― This write up will help you setup open vpn for remote access. I'm assuming you're using a windows machine :-) 1. First download and install the OpenVPN client from: http://openvpn.net/index.php/open-source/downloads 2.) Ask for the ff files from your... (More)
Posted 21 days ago
Czetsuya posted a new topic.
3

How to solve multiple active datareader session in mvc3 C#

czetsuya's tech ― This problem commonly happens when you try to execute a query with a return type of IEnumerable then execute a second query with the result.Example, we have a table Animes:public IEnumerable GetAnimes() { return context.Animes;}//on the second part... (More)
Posted 21 days ago
May 3, 2012
Czetsuya posted a new topic.
3

How to enable slf4j logging in glassfish 3.1.1

czetsuya's tech ― This blog entry will try to setup slf4j as the main logger for glassfish 3.1.1What you need:1.) Glassfish 3.1.1 (zipped)2.) Download the ff jars: a.) slf4j-api.jar b.) jul-to-slf4j.jar c.) logback-classic.jar d.) logback-core.jarSteps1.) Extract... (More)
Posted 24 days ago
May 1, 2012
Czetsuya posted a new topic.
4

How to create a Connection Pool for PostgreSql on Glassfish 3.1.1

czetsuya's tech ― This tutorial assumes that 1.) You already have Glassfish 3.1.1 installed. https://blogs.oracle.com/java/entry/glassfish_3_1_1 2.) Create and start a Glassfish domain a.) asadmin create-domain czetsuya b.) asadmin start-domain czetsuya Steps 1.)... (More)
How to create a Connection Pool for PostgreSql on Glassfish 3.1.1
Posted 26 days ago
Apr 11, 2012
Czetsuya posted a new topic.
3

Jquery wait for all the images to be loaded before calling an action, such as image caption

czetsuya's tech ― Recently I've just wanted a nice rollover caption implemented on our wedding invitation website, such on a list of wedding invitations, when you hover on one, a caption will be shown. Of course, there are some wedding invitation categories that would... (More)
Posted on Apr 11th, 2012
Czetsuya posted a new topic.
3

How to change jquery's dialog button label at run time

czetsuya's tech ― Recently I've used a 3rd party jquery library that pops up a jquery dialog with form content. However if has a default button Save and Cancel, which most of the time is ok, but sometimes you have need to localized or change the label depending on... (More)
Posted on Apr 11th, 2012
Apr 9, 2012
Czetsuya posted a new topic.
2

How to setup FindBugs with Maven on eclipse

czetsuya's tech ― Before you proceed with this exercise, it's required to check my blog on how to create a modular maven project. http://czetsuya-tech.blogspot.com/2012/04/how-to-create-modularized-maven-project.html1.) In this link you will see the available maven... (More)
How to setup FindBugs with Maven on eclipse
Posted on Apr 9th, 2012
Czetsuya posted a new topic.
3

How to add PMD reporting to Maven

czetsuya's tech ― Before proceeding to this exercise, you may want to try my tutorial on how to setup a maven project to eclipse:http://czetsuya-tech.blogspot.com/2012/04/how-to-create-modularized-maven-project.html.Assuming you have follow the tutorial above, you... (More)
How to add PMD reporting to Maven
Posted on Apr 9th, 2012
Apr 8, 2012
Czetsuya posted a new topic.
3

How to create a modularized maven project in eclipse

czetsuya's tech ― I've just noticed that it's easier to do this now on eclipse-jee-indigo, no need to use the console :-)I'll try to make this write up short, but I guess it will not be.So first, you should have the ff installed (if you don't know how - just google... (More)
How to create a modularized maven project in eclipse
Posted on Apr 8th, 2012
Apr 4, 2012
Czetsuya posted a new topic.
3

MVC3 ajax validation doesn't work on a jquery served form

czetsuya's tech ― To make automatic validation using data annotation on a model on mvc3 c# we need:1.) A model with data annotation (ex. required attribute).2.) Form with jquery declaration (jquery1.7, validate, validate unobtrusive, and unobtrusive-ajax. All are... (More)
Posted on Apr 4th, 2012
Apr 3, 2012
Czetsuya posted a new topic.
3

DNS that you could choose from in the Philippines

czetsuya's tech ― Below are the DNS I'm using in the Philippines. The last is specifically for Globe network.OpenDNS - fast but restrictive 208.67.222.222 208.67.220.220Cisco - ok for me 64.102.255.44 128.107.241.185DNS advantage - bad 156.154.70.1 156.154.71.1Globe's... (More)
Posted on Apr 3rd, 2012
Mar 29, 2012
Czetsuya posted a new topic.
2

How to solve System.Security.SecurityException: That assembly does not allow partially trusted callers.

czetsuya's tech ― Recently I found myself in another shared hosting problem. Unfortunately, we are hosting our personalized-items/corporate give away website + wedding invitation (www.kalidadprintsandfavors.com) in godaddy.com. And I've just added a new feature where... (More)
Posted on Mar 29th, 2012
Mar 27, 2012
Czetsuya posted a new topic.
4

How to add social networking links to your website like facebook, twitter and tumblr

czetsuya's tech ― (function () { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s =... (More)
Posted on Mar 27th, 2012
Mar 19, 2012
Czetsuya posted a new topic.
6

How to resize an image from database or file using php

czetsuya's tech ― This implementation is done using php.Usually we resize image that we read from a local file, then save it locally.Flow:1.) read from local image file and store in a php variable2.) resize the image file using php functionalities3.) save the image... (More)
Posted on Mar 19th, 2012
Mar 7, 2012
Czetsuya posted a new topic.
4

Caps converter - convert uppercase to lowercase to normal case to capital case and vise versas

czetsuya's tech ― Below are the list of tools I use in case converting, they are useful if you are on a printing business and your clients just type on whatever case they want :-) Notepad++ - converts uppercase -> lowercase and vice versaMicrosoft word - a feature... (More)
Posted on Mar 7th, 2012
Czetsuya posted a new topic.
7

How to execute select count(*), field from table group by field in entity framework

czetsuya's tech ― As the title implies we will try to convert a native sql that group and counts the number of row.We will assume that you have a column quantity or number of items.//native queryselect count(*), fieldfrom tablegroup by field//entity frameworkvar query... (More)
Posted on Mar 7th, 2012

Bloggers Spotlight

Maella

155 Votes | 60 Comments | 70 Followers

Blogfreakz

16 Votes | 3 Comments | 5 Followers

Arvio

16 Votes | 0 Comment | 6 Followers

Kelly W

16 Votes | 3 Comments | 8 Followers

Noypi Ako

41 Votes | 10 Comments | 17 Followers

Aditi

98 Votes | 27 Comments | 54 Followers

WanderingPotpot

27 Votes | 11 Comments | 15 Followers

Pinay Thrillseeker

47 Votes | 22 Comments | 32 Followers