Connect with Peer Bloggers

Get your Bloggers ID and network with best bloggers around the world.

czetsuya's tech

A blog of how-to solve general-specific problems that the author commonly encountered in his programming experience. Such as developing ecommerce...
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)
 Czetsuya ― Posted 3 days ago
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)
 Czetsuya ― Posted 4 days ago
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)
 Czetsuya ― Posted 6 days ago
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)
 Czetsuya ― Posted 6 days ago
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)
 Czetsuya ― Posted 9 days ago
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)
 Czetsuya ― Posted 10 days ago
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)
 Czetsuya ― Posted 11 days ago
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)
 Czetsuya ― Posted 12 days ago
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)
 Czetsuya ― Posted 12 days ago
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)
 Czetsuya ― Posted 12 days ago
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)
 Czetsuya ― Posted 12 days ago
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)
 Czetsuya ― Posted 12 days ago
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)
 Czetsuya ― Posted 21 days ago
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)
 Czetsuya ― Posted 21 days ago
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)
 Czetsuya ― Posted 24 days ago