Friday, September 3, 2010

Citrix Receiver for iPhone/Android

After doing some research on Internet, I figured out a way to setup the XenApp PNAgent for Citrix Receiver without the need of Access Gateway, here is solution for Presentation Server 4.5

  1. Create a Site for PNAgent, leave setting as default.
  2. Find the file WebInterface.conf in the path 'c:\Inetpub\wwwroot\Citrix\PNAgent\conf', change the line 'AlternateAddress=on'
  3. In DOS prompt, input 'altaddr /set '
  4. Restart 'Citrix Independent Management Architecture' service
 I tested it on Nexus One Android and iPad.

Reference:
http://forums.citrix.com/message.jspa?messageID=598947

Monday, August 23, 2010

Got the Nexus One tonight

Sometime ago I downloaded the Android SDK, extract it to C:\, run the SDK Setup, download the packages, then add a Virtual Device to match the specification HTC Magic, install the USB driver, that's it. I tried publish from Unity 3 beta 5 and the Roll-a-ball project on my HTC magic, but not success as it is only work with Android 2.0 and above.


Tonight I Unity Android bundle Nexus One tonight, I'd like to see how the Unity iPhone examples work on the Nexus One.


After add the Virtual Device match the Nexus One, I build the Roll-a-ball again as I am using Beta 6 now, Unity compalin someting sound function is obsoleted, I don't care just comment out of that line.



After build the apk, I install it to my android using "adb install Roll-a-Ball.apk", bingo, the app install successfully on my Nexus One. I tried some other examples and also work.


Now everything is ready, it's time to learn about Unity scripting...along with my MSc project.

Mono 2.6.7 on CentOS 5.5

I successfully install Mono 2.6.7 without using the source. There is a Mono repoistory available on Mono web site, so using the Package Manager is much easier.

Launch the Package Manager, select Edit->Repoistories; Choose Add.
Give the Repoistory name and description "Mono", in Location input the url:
http://ftp.novell.com/pub/mono/download-stable/RHEL_5/

Select Advance and enable GPG key:
http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key

That's it! Now the Package Manager will refresh, so to search Mono and the latest Mono will be there.

Friday, August 20, 2010

Microsoft game console name copied Sony Playstation

From this post, it seems the successor of Xbox 360 should have somethine relate to triangle.

http://forum.unity3d.com/viewtopic.php?t=61839

If the see the picture of Playstation controller, all generation of Playstation controller has button "X", square, circle, and triangle.

http://commons.wikimedia.org/wiki/File:PlayStation_Controller_transparent.png

Microsoft name is first game console with the button "X", and the , so it name XBOX.
The successor of XBOX took the circle button, since circle is 360 degree, so the current Microsoft console is Xbox 360.

Unity 3 Beta 6

I test the follow showcase on my Macbook Pro.

http://forum.unity3d.com/viewtopic.php?t=62005

Running 1440x900 max graphic quality, it run ~30 fps, not bad, the Macbook bottom is very hot.


I decide to learn C# from this site, it seems more easy for me to learn than the Unityscript.

http://www.unifycommunity.com/wiki/index.php?title=Main_Page

Now downloading the Unity 3 Beta 6.

Thursday, August 5, 2010

Install Alfresco 3.3 on CentOS 5.5

After download the community edition for Linux, I follow the installation guide, however the Installer "Alfresco-Community-3.3-Linux-x86-Install" does not launch.

I user the default Gnome desktop, and use Gnome terminal. After tried several times I try xterm, bingo! the installer launched successfully.

Tuesday, June 22, 2010

jPackage ant dependency fix

I need Ant package to try the Liferay theme development, I found the jPackage has most Java related rpm, install jPackage is easy.

http://www.jpackage.org/yum.php

When add Ant, I got dependency error
/usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386

After search over Google, I found the solution here:
http://www.cpurigs.com/forums/showthread.php?t=4770

1. Remove jpackage-utils and tell it to ignore dependencies: rpm -e jpackage-utils --nodeps
2. Install the version offered through the standard repos: yum install jpackage-utils
3. Update everything else: yum update

Now I can install Ant from jPackage.

Wednesday, June 16, 2010

Preparing Postgres for Liferay

A. Configure Postgres:
Make Postgres listen from REMOTE host: PostgresSQL config

1. Modify /var/lib/pgsql/data/pg_hba.conf 
local    all    all    trust
lost    all    all    0.0.0.0/0    trust

2.Modify /var/lib/pgsql/data/postgresql.conf
listen_address='*'


B. Configure Liferay JDBC:

1. Create portal-ext.properties in webapps/ROOT/WEB-INF/classes

jdbc.default.driverClassName=org.postgresql.Driver
jdbc.default.url=jdbc:postgresql://localhost:5432/lportal
jdbc.default.username=liferay
jdbc.default.password=password

2. Change jdbc.properties in tomcat-6.0.18/webapps/wol-portlet/WEB-INF/jdbc.properties, that will disable HSQL
jira.driverClassName=org.postgresql.Driver
jira.url=jdbc:postgresql://localhost:5432/lportal
jira.username=postgres
jira.password=


C. Configure Liferay webserver port:
Modify tomcat-6.0.18/conf/server.xml, change the port in


D. Remove 7Cog sample portal:
remove sevencogs-hoot in webapps



References:

Reference link: http://www.liferay.com/community/wiki/-/wiki/Main/PostgreSQL%20with%20Glassfish;jsessionid=FC83246907BFF757693820C8890656C5.node-1

Create database user:
psql -U postgres -c "CREATE USER your_login WITH PASSWORD 'your_password' CREATEDB"


Prepare sample database for liferay


Download database script here:
http://www.liferay.com/downloads/liferay-portal/additional-files

psql template1 -U your_login -f create-postgresql.sql

Monday, June 7, 2010

Harvard reference generator

I almost finshed the 3rd revision of my dissertation proposal, now finishing the preliminary reference part. I search on the Internet and found this useful, it automatically generate the reference by book, website, etc.

Neil's Toolbox

Tuesday, June 1, 2010

Linux LVM and Smart

I alway not select LVM when setup linux as I don't have experience in LVM. I found the following link has detail explanation. It also explain how to check HD Smart info. Very useful for system administrator.

http://www.enterprisenetworkingplanet.com/nethub/article.php/3733141/Manage-Linux-Storage-with-LVM-and-Smartctl.htm

Sunday, May 9, 2010

Enable AHCI on Vista

I swapped a Seagate 1.5T 7200.11 in my home computer, and mount it in a new mobile rack as I plan to mount different hard drive for testing.

I just figure out how to enable hotplug and AHCI:

http://www.itwriting.com/blog/288-enabling-ahci-on-vista.html

Vista works fine with AHCI, and you will not run into problems with a new install. However, if you change this setting underneath an installed Vista, it will likely blue-screen on you. The trick is to edit the registry setting here:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci
Edit the Start key and change its value to 0. Then shut down, change the BIOS to AHCI, and reboot. All going well, Vista will detect the change, install new drivers, ask you to reboot once more, and it’s done.

Friday, May 7, 2010

Remove Network Connection 1, 2, 3 in Windows

Found a way to remove unneeded network connection:
http://www.pcreview.co.uk/forums/thread-102477.php


Go to Start/Run/CMD. At the command prompt, type the following commands and
press enter after each line:

set DEVMGR_SHOW_DETAILS=1
set DEVMGR_SHOW_NONPRESENT_DEVICES=1
start devmgmt.msc

Click the View menu and select Show hidden devices. Right click the device
you want to delete and click Properties. Click the Details tab.

Select Device Instance ID. The value of Device Instance ID is the hardware
key of the device.

For example, if you see the value is Root\Image\0000, the full hardware key
is: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\Image\0000

Then go to Start/Run/Regedit and navigate to the key. The data of the
Driver value is the software key of the device. Delete both the hardware
key and software key.

Added note: Network connections are listed here: 1, 2, 3, 4.....etc:
Start/Run/Regedit

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{}

Thursday, April 29, 2010

Palo Excel connects to Palo Suite

Today I found out how to connect Palo Excel to Palo Suite.

1. Install Palo Suite.
2. Install Palo Excel.
3. Add additional host to the palo.ini in "\Program Files\Jedox\Palo Suite\palo\data"
http xxx.xxx.xxx.xxx 7921
4. Add additional host to the httpd.conf in "\Program Files\Jedox\Palo Suite\httpd\conf"
5. Restart Palo services
6. In Palo Excel, click Modeller, add additional host.

At this moment it seems OK.

Now checking the Modeller function in "First Steps with Palo for Excel".

Thursday, March 4, 2010

Install Drupal 6.x on CentOS 5.x

To have Clean URL enable, check the httpd config file in /etc/httpd/conf/httpd.conf AllowOverride All.

Tuesday, February 2, 2010

Installing modules in Drupal

Today I learned how to install Views, CCK, Whizzywig in Drupal 6.15. Simply download the module zip and unzip into site/all/modules. Very straight forward.

Now reading the TopNotchThemes Quickstart Guide, this is a great guide to learn how to customize Drupal site, much better than Drupal's online documentation.

While trying the CCK to add fields, there is no "Image" file type. The file type should be "File" and widget type should be "Image".