Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

Jan 26, 2009

How to download Windows 7 beta

Windows 7 has been in beta release for months and here is how to download and test the BETA version.
  1. Register yourself a Live account http://www.live.com
  2. Go to Microsoft Connect Website https://connect.microsoft.com
  3. Search for Windows Ecosystem Readiness Program - https://connect.microsoft.com/site/sitehome.aspx?SiteID=704
  4. Download and enjoy yourself :-)
Have fun,
-Hieu

Jan 1, 2009

How to install Red5 Server with Tomcat

  • Download Java from http://www.sun.com
  • Install java into a folder such as /opt/red5/jdk-1.6.0
  • Set JAVA_HOME point to that folder
export JAVA_HOME=/opt/red5/jdk-1.6.0
cd /opt/red5
wget http://mirror-fpt-telecom.fpt.net/apache/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
tar -xf apache-tomcat-6.0.18.tar.gz
cd /opt/red5
wget http://www.red5.fr/release/0.7.0/war/Red5War_0.7.0.zip
tar -xf Red5War_0.7.0.zip
  • The 3 WARs file will be extracted
    • ROOT.war: the main Red5 application
    • admin.war: the Red5 admin page
    • echo.war: the echo sample application
  • Move 3 WARs into tomcat/webapps folder
cd /opt/red5
mv ROOT.war admin.war echo.war apache-tomcat-6.0.18/webapps
  • Remove the default ROOT application of Tomcat
cd /opt/red5/apache-tomcat-6.0.18/webapps
rm -rf ROOT
  • Create a start-server.sh file for easy to startup with following content
export JAVA_HOME=/opt/red5/jdk-1.6.0
export CATALINA_HOME=/opt/red5/apache-tomcat-6.0.18
export PATH=$JAVA_HOME/bin:$PATH
cd $CATALINA_HOME
./bin/startup.sh
  • Start Tomcat with start-server.sh
cd /opt/red5
./start-server.sh
  • Open the browser and browse to the following URL http://[ip]:8080/
  • The Red5 welcome page will be displayed
  • You can test the RTMP broadcast via web at http://[ip]:8080/demos/ofla_demo.html or via client application such as VideoLAN rtmp://[ip]/oflaDemo/DarkKnight.flv
  • You might want to create the stop-server.sh to stop Tomcat with following contents
export JAVA_HOME=/opt/red5/jdk-1.6.0
export CATALINA_HOME=/opt/red5/apache-tomcat-6.0.18
export PATH=$JAVA_HOME/bin:$PATH
cd $CATALINA_HOME
./bin/shutdown.sh

Nov 16, 2008

Turn off display non-secure item popup dialog in Internet Explorer

Step 1: Go to Tool >> Internet Options

Step 2: Select the "Security" Tab and then click on the "Custom Level" button

Step 3: Scroll down until you see the option: "Display mixed content". Sect the option "Enable" (in the Miscellaneous section)

Step 4: Click Ok

Enable exFAT in Windows XP/2003

To enable exFAT (which is a new file system type introduced by Microsoft in Windows Vista), you need to copy the two files uexfat.dll and exfat.sys located under System32 folder and System32/Drivers folder into correspond folder of Windows XP/2003

Create the following registry file "enable-exfat.reg"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\exfat]
"Description"="exFAT File System Driver"
"DisplayName"="exFAT File System Driver"
"ErrorControl"=dword:00000001
"Group"="Boot File System"
"Start"=dword:00000002
"Type"=dword:00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\System\exfat]
"EventMessageFile"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,\
00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
5c,00,49,00,6f,00,4c,00,6f,00,67,00,4d,00,73,00,67,00,2e,00,64,00,6c,00,6c,\
00,00,00
"TypesSupported"=dword:00000007

Run the file to import it into registry.
Restart your PC and the exFAT will be enabled

Cheers,
-Hieu

Nov 12, 2008

BarCamp event at Ho Chi Minh city

There is an upcoming event called BarCamp, a technology educational event that is open free for everyone to come and share ideas about technology as well as to network with other people (please see details at http://barcampsaigon.org/). This type of events has been successful in Silicon Valley. BarCamp Saigon will be held for the first time in Vietnam at RMIT-Vietnam on November 15.

This event is free and all GCS employee are welcome to join, just go to http://barcampsaigon.org/ to register yourself.

Global CyberSoft is also a gold sponsor for this event :-)

The following is the list of session in the BarCamp.

  • Offered Sessions
    • 30-minute sessions
      • Teaching programming with Alice [En] – Huy Zing
      • Vietnam web services portal & Start-ups Support System| Cổng thông tin về dịch vụ Web ở Việt Nam & Hệ thống hỗ trợ start-ups[EN & Vi] – Huyền Chip
      • How to quickly create a web form with Google Docs [En & Vi] – Huyền Chip & Huy Zing
      • E-learner Platform 2.0 [En & Vi] – Anh Hùng
      • GIS-related session (topic is not decided yet) [En & Vi] – Khánh Lê
      • Interesting Web/Mobile Projects in Asia and Africa and how they are being monetized. [En] (with Vn subtitles) Preetam Rai
      • Intel and Intel Vietnam company presentation and job opportunities. Huan Duong
      • Cloudworking and Monetizing Models and life style of a mobile CEO/entrepreneur. Dan Lilly & Tom Tran
      • Giới thiệu cuộc thi “Search for ASEAN XML SuperStar” [Vi] – Khiem, IBM VN
      • Giới thiệu quy trình phát triển phần mềm RUP [Vi] – Minh, IBM VN
    • 1-hour sessions
      • Google App Engine app development [Vi & En] – Loi & Huy Zing
      • Android app development [Vi & En] – Tuan & Huy Zing
      • Adobe AIR development [Vi & En] – Justin & Huy Zing
      • iPhone app development [Vi & En] – Multinc
      • Essential Ingredients of a Successful Web Business [En] - Chris Harvey
      • Ventures Capital Tips: Getting funded and Operating a start-up [Vi & En] – James Vuong & Hiep Do IDGVV
  • Requested Sessions
    • Using Ruby/JRuby (or Python/Jython) for scripting/sysadmin and GUI applications, on Windows.
    • Developing some Extensions,Plugins,Themes for Mozilla Firefox , on Windows.
    • Start-ups, Entrepreneurship, and Business Development: Owning your own business in a global economy

Nov 11, 2008

Remove xxx activation in yyy 2008

Stops the SL UI Notification Service and removes 3 system32 files : SLLUA.exe, SLUI.exe and SLUINotify.dll (located at C:\Windows\system32 folder)

Nov 1, 2008

How to unlock attachment restriction in Microsoft Outlook

To unlock the attachment restriction in Microsoft Outlook, just follow the steps below:

- Start => Run => Enter regedit
- Look for HKEY_CURRENT_USER\ Software\ Microsoft\ Office\ 10.0\ Outlook\ Security
- Create a new String value Level1Remove (modify if exists) and add the extension that you would like to allow for download (seperated by comma) ex: exe;jpg;gif;png

Note: These are the list of files that is normally being lock by Ms Outlook when received as e-mail attachments: “ade, adp, asx, bas, bat, chm, cmd, com, cpl, crt, exe, hlp, hta, inf, ins, isp, js, jse, lnk, mda, mdb, mde, mdz, msc, msi, msp, mst, pcd, pif, prf, reg, scf, scr, sct, shb, shs, url, vb, vbe, vbs, wsc, wsf, wsh”

Oct 26, 2008

Top Technology Trends for 2009

These are Top Technology Trends for 2009

  • Virtualization
  • Cloud computing
  • Servers
  • Web-oriented architectures
  • Enterprise mashups
  • Specialized systems
  • Social software and social networking
  • Unified communications
  • Business intelligence
  • Green IT
Source: http://www.top10dedicatedhosting.com/en/?p=458

What do you think? :-)

Oct 23, 2008

How to Disable Steal Lock in Subversion

In Subversion, you can easily steal the lock that other user lock it. By using hook script, you can disallow user to do so. Just edit the pre-lock script as following

pre-lock.bat
The following is the content of pre-lock.bat which will work on Windows environment. Just copy the content and put it under the hook folder of your Subversion repository

@ECHO OFF
:: Set all parameters. Even though most are not used, in case you want to add
:: changes that allow, for example, editing of the author or addition of log messages.
set repository=%1
set rev_path=%2
set userName=%3

:: If a lock exists and is owned by a different person, don't allow it
:: to be stolen (e.g., with 'svn lock --force ...').

FOR /F "delims=: tokens=1*" %%a IN ('svnlook lock "%repository%" "%rev_path%"') DO if %%a==Owner (set LOCK_OWNER=%%b)

:: If we get no result from svnlook, there's no lock, allow the lock to
:: happen:
if "%LOCK_OWNER%"=="" (
exit /b 0
)

:: If the person locking matches the lock's owner, allow the lock to
:: happen:
if "%LOCK_OWNER%" = " %username%" (
exit /b 0
)

:: Otherwise, we've got an owner mismatch, so return failure:
echo "Error: %rev_path% already locked by %LOCK_OWNER%." >&2
exit /b 1

Enable Edit Log Message in Subversion

In Subversion, when you commit the changeset, you're not allow to edit the log message but the SVN admin with svn-admin command.
To enable it to user, you (the SVN admin) must enable the pre-prop-change hook

pre-prop-change.bat (Windows)
Here is the content of pre-prop-change hook, just save it to pre-prop-change.bat and copy it into SVN hook folder. The content is Windows batch file and just for Windows environment

The script will enable the owner of the revision and the owner of SVN to change the log message.

The owner of SVN is get from SVN auth file (authz-svn.conf) and should be configure in the form @svn_owner = userA, userB...

You need to edit the PATH to authz-svn.conf file

@ECHO OFF
:: Set all parameters. Even though most are not used, in case you want to add
:: changes that allow, for example, editing of the author or addition of log messages.
set repository=%1
set revision=%2
set userName=%3
set propertyName=%4
set action=%5

:: Only allow the log message to be changed, but not author, etc.
if /I not "%propertyName%" == "svn:log" goto ERROR_PROPNAME

:: Only allow modification of a log message, not addition or deletion.
if /I not "%action%" == "M" goto ERROR_ACTION

:: Make sure that the new svn:log message is not empty.
set bIsEmpty=true
for /f "tokens=*" %%g in ('find /V ""') do (
set bIsEmpty=false
)
if "%bIsEmpty%" == "true" goto ERROR_EMPTY

FOR /F "tokens=*" %%a IN ('svnlook author "%repository%" -r %revision%') DO set REV_USER=%%a

FOR /F "delims== tokens=1*" %%a IN (%repository%\..\Permission\authz-svn.conf) DO if "%%a"=="svn_owner " ( set SVN_OWNER=%%b )

set bIsOK=false
FOR %%a IN (%SVN_OWNER%) DO if "%%a"=="%userName%" ( set bIsOK=true )
if "%bIsOK%"=="false" (
goto ERROR_AUTHOR
)

goto :eof

:ERROR_AUTHOR
echo You must be the author of the log message or owner of the repository %SVN_OWNER% %userName%. >&2
goto ERROR_EXIT

:ERROR_EMPTY
echo Empty svn:log messages are not allowed. >&2
goto ERROR_EXIT

:ERROR_PROPNAME
echo Only changes to svn:log messages are allowed. >&2
goto ERROR_EXIT

:ERROR_ACTION
echo Only modifications to svn:log revision properties are allowed. >&2
goto ERROR_EXIT

:ERROR_EXIT
exit /b 1

pre-prop-change (Linux)
The following is the script in Linux, it just allow the owner of the revision to change the log.

#!/bin/sh

REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"

if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ];
then
REV_USER=`svnlook author "$REPOS" -r $REV`
if [ "$REV_USER" = "$USER" ];
then
exit 0;
else
echo "You must be the owner of the revision to be able to change the svn:log property" >&2
exit 1
fi
fi

echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1

Oct 16, 2008

StyleCop command line

StyleCop command line

Here is a version of StyleCop in command line mode - http://www.nichesoftware.co.nz/content/stylecop-cmd. You need to have VS 2008 in order to compile, or you can install .NET 3.5 and compile using MSbuild command

set PATH=%PATH%;C:\WINDOWS\Microsoft.NET\Framework\v3.5
cd C:\StyleCopCmd-1.1.27.5997\src\StyleCop
msbuild StyleCop.csproj

Oct 15, 2008

How to copy music from PC to iPhone without using iTunes

How to copy music from PC to iPhone without using iTunes

Hehe, you will need to use the SharePod at http://www.getsharepod.com/ and everything will be solved ;-)

Sep 20, 2008

Disable Certificate Error Report in IE7

Internet Explorer 7 is saying "Certificate error: navigation blocked". This means that, although the secure server certificate is encrypting data correctly, IE7 cannot verify the domain name. That is because there is not a SSL certificate for your particular domain name.

This does not indicate a problem with the website or control panel. This could be more acurately described as a fault with Internet Explorer being a little overly paranoid on your behalf.

Your choice is to either click that you want to navigate the site anyhow, or permanently disable the warning.

If you would like to permanently disable the warning error, go to the Internet Explorer Tools menu and select Internet Options, Advanced tab. Scroll down to the bottom (under Security) and disable/uncheck "Warn about certificate address mismatch".

Sep 8, 2008

Knowledge Sharing in Software Development

Have you ever tried the Wiki for knowledge sharing in project? Have you recognized the value of knowledge sharing?

I know some of you tend to resist sharing your knowledge with the rest of the organization, some of you don’t know what to write, it’s because of the system and blah blah blah. Just stop blaming on the system, we should change our mindset and our behavior in using the tools.

Here is some practices for sharing
  • Knowledge is from project.
  • Each project must have trouble, issue, development tips & tricks, environment setup, this is the knowledge – (as I have seen in some projects, the development environment is kept inside developer’s mind, when newcomer come to the project, at least 1 dev will sit with him for setting up the environment)
  • We’re not master, but when facing the problem we should be, this is where knowledge come from.
  • You’re in the project so it definitely that you’ll have some knowledge to share otherwise you look like a “chess man” in project.

Will you try out the Wiki? Some wiki you might be interested in

Aug 20, 2008

What is Twitter?

Twitter is a social network which allow you to set your status on your activities

You can't really understand Twitter unless you actually do it (which might explain why I don't really understand Twitter.)

The benefit of Twitter is "social proprioception":

When I see that my friend Misha is "waiting at Genius Bar to send my MacBook to the shop," that's not much information. But when I get such granular updates every day for a month, I know a lot more about her. And when my four closest friends and worldmates send me dozens of updates a week for five months, I begin to develop an almost telepathic awareness of the people most important to me.

It's like proprioception, your body's ability to know where your limbs are. That subliminal sense of orientation is crucial for coordination: It keeps you from accidentally bumping into objects, and it makes possible amazing feats of balance and dexterity.

Twitter and other constant-contact media create social proprioception. They give a group of people a sense of itself, making possible weird, fascinating feats of coordination."

Sound interesting? It should have more :-)

Aug 1, 2008

How To Compile C Code Analysis (CCA)

CCA is an analysis toolkit for analyzing C source code. The following show you how to compile CCA on Windows.
Prerequisite
  • Cygwin: gcc, ocaml, make
To Compile open Cygwin bash shell and run following command
cd cil
./configure
make
make quicktest
You might need to edit the Makefile.cil to remove the following lines (at line 259)

$(ECHO)#if test $(OBJDIR) != $(<D) -a -f $(OBJDIR)/$(basename $(<F)).cmi ;then \

$(COMMAND) mv -f $(OBJDIR)/$(basename $(<F)).cmi $(<D); \

mv -f $(OBJDIR)/$(basename $(<F)).cmi $(<D); \

fi

Jul 27, 2008

How To Create DirectX (.X) file

Using Tools
  • Get yourself a program named TrueSpace or Milkshape, which can export Models into this format (and create them)
  • Get a Plug in for any other 3D modeler (Maya Plugin and others are included with the DirectX9 SDK)
  • Create 3DS Files using almost Any Modeler (3DS is more or less a standard format) and use the Program supplied with the SDK to convert it into .X format
  • Open the File in WordPad and u can create/modify them, since they are not stored in any compressed/unreadable format (although for this u need to know how the file is build)
Programmatically
  1. Create the mesh
    D3DXCreateMeshFVF(...)
  2. Lock the vertex buffer and copy your vertices into it
    outMesh->LockVertexBuffer(...)
  3. Lock the index bufer and copy indices into it
    outMesh->LockIndexBuffer(...)
  4. Save it to a file
    D3DXSaveMeshToX(...)

Jul 19, 2008

Collaborative Development Environment at GCS

Collaboration is an element of every engineering domain. In software development, collaboration is very helpful and a powerful weapon for improving quality; how we communicate, how we share knowledge among team, how we keep understanding each other, it all depends on collaboration.

Today, we use many tools to support the collaboration such as email, instant messaging, chat rooms, discussion groups, and Wikis… Collaboration among teams is already facilitated through the use of an increasing number of features embedded in standard desktop products such as office suites, where there is ample support for shared document reviews, distribution of documents among teams, and mechanisms for performing common collaborative tasks. In a very practical sense these tools provide the baseline of collaboration functionality for today’s software developers.

At Global CyberSoft (GCS) we have CDE and more than CDE, it is Collaborative Development and Management Environment (CDME) hehehe , so why not join GCS to have an interesting software engineering career (without code like a )