Recently my workstation crashed (windows7)...having my xampp installed before.
After getting windows7 (reinstall) up again tried to i manage to install xampp again.
My php 'playground' (yii) application tries to connect using ldap_connect failed when xampp return could not found ldap_connect. After several time trying fugiring what is actually happened here (with all the modules unremarked in .ini file), i started to giving up....until i found somewhere (didnt remember) after googling advicing me to include path of php (installed). when have this done, my php login (ldap) success (by that time already installed wampp server2.2 instead).
yup, paste the php installation path in windows environment (PATH).
Tuesday, July 17, 2012
Tuesday, April 24, 2012
Transaction using yii CDbTransaction
As for my reference and note,
CDbConnection::beginTransaction
CDbConnection::beginTransaction
$transaction=$connection->beginTransaction();
try
{ $connection->createCommand($sql1)->execute();
$connection->createCommand($sql2)->execute();
//.... other SQL executions
$transaction->commit();
}
catch(Exception $e)
{
$transaction->rollBack();
}
Thursday, April 12, 2012
Netbean 7.1.1 problem
1). When create a project finding the Netbean will create a folder (nbproject)
2). make sure to remove when you remove a project from your Netbeans workspace (using the IDE), Netbeans allow you to remove the project without delete the sources. So, when it's done, you must delete the "nbproject" directory that was created inside your source project.
otherwise will get error when try to create new project (from existing source) in the same diretory, Netbean will show this error :
"Sources directory is already Netbeans project (maybe only in memory)"
so make sure to delete folder "nbproject" in your application diretory.
2). make sure to remove when you remove a project from your Netbeans workspace (using the IDE), Netbeans allow you to remove the project without delete the sources. So, when it's done, you must delete the "nbproject" directory that was created inside your source project.
otherwise will get error when try to create new project (from existing source) in the same diretory, Netbean will show this error :
"Sources directory is already Netbeans project (maybe only in memory)"
so make sure to delete folder "nbproject" in your application diretory.
Xampp 1.7.7, step to enable ldap module
Lately, i am into php and trying to use xampp 1.7.7.
When using ldap extension got error trying to start :-
1) edit file httpd.conf , enable the : LoadModule ldap_module modules/mod_ldap.so (OK)
2) when i enabled the extension in php.ini : error could not load module ldap.dll. When checked ldap.dll exists in the /ext.
So, try again restart xampp and got different error : unable to load libsasl.dll
solution :-
3) copy libassl.dll to xampp\apache\bin\ (start again xampp and OK)
now i can call ldap_connect from php
When using ldap extension got error trying to start :-
1) edit file httpd.conf , enable the : LoadModule ldap_module modules/mod_ldap.so (OK)
2) when i enabled the extension in php.ini : error could not load module ldap.dll. When checked ldap.dll exists in the /ext.
So, try again restart xampp and got different error : unable to load libsasl.dll
solution :-
3) copy libassl.dll to xampp\apache\bin\ (start again xampp and OK)
now i can call ldap_connect from php
Sunday, February 5, 2012
How to auto login Ubuntu 11.10
Go to System Setting->User Accounts

Click Unlock and keyin password, under Login Option set Automatic Login 'On'
Click Lock again to prevent any further changes.
Wednesday, February 1, 2012
Edit Host File In Ubuntu
$sudo gedit /etc/hosts
//format <IP><hostname>
in hosts file enter
10.8.26.35 cipan
then save the file
$ping cipan
//to test host file
//format <IP><hostname>
in hosts file enter
10.8.26.35 cipan
then save the file
$ping cipan
//to test host file
Thursday, January 19, 2012
Using Synergy sharing keyboard and mouse (windows & ubuntu)
Server : windows7
Client : Ubuntu 11.10
1. On Server site installed synergy 1.3.8 and run launcher.exe
2. On Client site :- ubuntu:~$ sudo synergyc -d DEBUG1 -f 10.0.0.1:25000
or
$ sudo synergyc -d <level> -f <IP:Port>
or sample syntax as (using default port)
$ sudo synergyc 10.8.22.23
Ubuntu command run on terminal still does not automatic startup.
Default port for synergy is 24800
Monday, October 17, 2011
download Ubuntu 11.10
Today successfully download Ubuntu 11.10 iso from its site
Maybe next time if i crashed my Ubuntu, will try install direct from this .iso file. Currently install from 11.04 then upgrade to 11.10
Maybe next time if i crashed my Ubuntu, will try install direct from this .iso file. Currently install from 11.04 then upgrade to 11.10
No package header when Upgrading Ubuntu
from terminal try this :-
$sudo rm /var/lib/apt/lists/* -vf
then update again :-
$sudo apt-get update
to apply upgrade :-
$sudo apt-get upgrade
this works for me when error to upgrade Ubuntu 11.04 to 11.10.
to restart :-
$sudo shutdown -r now
After restart, hmm...nothing happens (not upgraded to 11.10) ahaha...
then i Launch to update manage to continue my Upgrade.
$sudo rm /var/lib/apt/lists/* -vf
then update again :-
$sudo apt-get update
to apply upgrade :-
$sudo apt-get upgrade
this works for me when error to upgrade Ubuntu 11.04 to 11.10.
to restart :-
$sudo shutdown -r now
After restart, hmm...nothing happens (not upgraded to 11.10) ahaha...
then i Launch to update manage to continue my Upgrade.
Upgrading Ubuntu 11.04 to 11.10
My ubuntu 11.04 installed with propriety display driver for nvidia. After upgrading it to ubuntuk 11.10, crash...
The display cannot be loaded. Have to reinstall 11.04 then without doing any changes to the display driver
just upgrade to 11.10.
After done upgrading to 11.10 then apply nvidia propriety driver, again the display screwed up.
Dont know why the propriety driver doesnt fit. Maybe my ndivia graphic card is just quite old.
Now, back again installing 11.10 and i dont want to apply the proprietry driver again. (maybe after next driver released)
The display cannot be loaded. Have to reinstall 11.04 then without doing any changes to the display driver
just upgrade to 11.10.
After done upgrading to 11.10 then apply nvidia propriety driver, again the display screwed up.
Dont know why the propriety driver doesnt fit. Maybe my ndivia graphic card is just quite old.
Now, back again installing 11.10 and i dont want to apply the proprietry driver again. (maybe after next driver released)
Thursday, October 13, 2011
Installing Avast Antivirus on Ubuntu
Completed installing Avast Free Edition using .deb package on my Ubuntu 11.04
Steps done :
(installing avast)
1. Download Avast Linux Edition (DEB Package), from Avast Linux Home Edition
2. go to download file directory run, sudo dbkg -i avast4workstation_1.0.6-2_i386.deb
above done, without error.
(application menu setup)
3. cd /usr/lib/avast/avast4workstation/share/avast/desktop
4. sudo ./install-desktop-entries.sh install
after do above command, the antivirus screwed up. cannot start. Next time i will try step 1 and 2 only.
Steps done :
(installing avast)
1. Download Avast Linux Edition (DEB Package), from Avast Linux Home Edition
2. go to download file directory run, sudo dbkg -i avast4workstation_1.0.6-2_i386.deb
above done, without error.
(application menu setup)
3. cd /usr/lib/avast/avast4workstation/share/avast/desktop
4. sudo ./install-desktop-entries.sh install
after do above command, the antivirus screwed up. cannot start. Next time i will try step 1 and 2 only.
Sunday, October 2, 2011
Display to Big when install Ubuntu 11.04
Have any idea how to decrease the screen resolution when install Ubuntu? I dont know how, but i try Alt + left click mouse to drag move the center window around up down until can click FOWARD button to continue installation until end.
My Monitor Acer AL1511
Machine Netvista
My Monitor Acer AL1511
Machine Netvista
Ubuntu 11.04 hangs at timezone during installation
Try DISCONECTING THE NETWORK (Untick Enable Networking), and wait for a while...for my case i wait about 1 minute...sigh..(patient is everything)
Also the machine is quite old...ahaha..
Then It let me choose the right TimeZone and carry on with the installing process.
After that passed, you can Enable Networking again to the network and run ok.
I found this solution when googling somewhere i didn't remember.
Also the machine is quite old...ahaha..
Then It let me choose the right TimeZone and carry on with the installing process.
After that passed, you can Enable Networking again to the network and run ok.
I found this solution when googling somewhere i didn't remember.
Baby step 1
Ubuntu 11.04 just installed on my old working Netvista. Running without Unity3d. After crawling for solutions for newbie like me to install Ubuntu...
THE PATH & ISSUE....
1. Display card 865G gives compatiblity problem :-
"Fail to Get Size of Gamma fo Output Default"
user@ubuntu ~# sudo service gdm stop
This command will stop the X.
Now we need to generate the xorg.conf file:
user@ubuntu ~# sudo Xorg -configure
This has generated the file in ~/xorg.conf.new.
We need to make the X using it so we have to put this file inside /etc/X11/
user@ubuntu ~# sudo mv ~/xorg.conf.new /etc/X11/xorg.conf
After moving this file to the proper location you can start the X again and see what happens:
user@ubuntu ~# sudo service gdm start
result :- still hang when idle
2. Window corruption with older ATI graphics cards
With older ATI graphics cards with 32MB or less of video RAM some corruption of direct rendered windows, for example OSD notifier windows, might appear. This may be worked around by disabling 'RenderAccel' in the Xorg configuration. (426582)
To do this first exit to the console using the following command:
sudo service gdm stop
Then create an Xorg configuration file with the command below:
sudo Xorg -configure
Then add the 'RenderAccel' option to /etc/X11/xorg.conf:
Section "Device"
...
Driver "radeon"
Option "RenderAccel" "off"
EndSection
And restart X/GDM.
sudo service gdm start
https://wiki.ubuntu.com/LucidLynx/ReleaseNotes
result : still not working. display with higher resolution but hangs.
3. Mavericki8xxStatus
X freezes (GPU lockups) are still being experienced on i830, i845, and i855 chips. Although there have been various attempts to fix these for Ubuntu 10.10 we have not managed to produce an acceptable fix.
To ensure that users with these cards get a stable graphical environment by default we no longer automatically load the Intel driver on these cards. This results in the fbdev driver loading, which does not provide any ability to change resolution, video acceleration, or 3D.
There are couple of options to re-enable these missing features with various trade-offs:
Manually enabling the Intel driver
Re-enabling the Intel driver will re-enable all the missing features - 3D acceleration, dual-head support, video acceleration. This will also re-enable all the freeze bugs, so it is likely that system stability will be adversely affected.
On some older ThinkPads this will enable all the missing features without freeze, and thereby allow composition to work smoothly, video playback in full screen without stalling pictures, allow choosing from more than one available screen resolution and refresh rate and allow dual screen setup - everything works with the release-default xserver-xorg-video-intel driver and kernel. In Kubuntu activating "Disable functionality check" under desktop effects keeps composition activated between reboots.
To enable the Intel driver you need to create a file called /etc/X11/xorg.conf containing the following:
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Testing upstream patch for i855
There is a kernel patch for the i855 series chips that appears to fix the system freezes. After re-enabling the Intel driver as above, i855 users might wish to try the instructions here on the Lucid version of this page.
Enable the VESA driver
Like the fbdev driver the vesa driver provides no 3D acceleration or video acceleration. It does, however, support changing resolutions.
To enable the VESA driver you need to create a file called /etc/X11/xorg.conf containing the following:
Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
https://wiki.ubuntu.com/X/Bugs/Mavericki8xxStatus
result : still not working for my machine when display 'hang'
my last solution : have to change to nvidia display driver. hmmm...
THE PATH & ISSUE....
1. Display card 865G gives compatiblity problem :-
"Fail to Get Size of Gamma fo Output Default"
user@ubuntu ~# sudo service gdm stop
This command will stop the X.
Now we need to generate the xorg.conf file:
user@ubuntu ~# sudo Xorg -configure
This has generated the file in ~/xorg.conf.new.
We need to make the X using it so we have to put this file inside /etc/X11/
user@ubuntu ~# sudo mv ~/xorg.conf.new /etc/X11/xorg.conf
After moving this file to the proper location you can start the X again and see what happens:
user@ubuntu ~# sudo service gdm start
result :- still hang when idle
2. Window corruption with older ATI graphics cards
With older ATI graphics cards with 32MB or less of video RAM some corruption of direct rendered windows, for example OSD notifier windows, might appear. This may be worked around by disabling 'RenderAccel' in the Xorg configuration. (426582)
To do this first exit to the console using the following command:
sudo service gdm stop
Then create an Xorg configuration file with the command below:
sudo Xorg -configure
Then add the 'RenderAccel' option to /etc/X11/xorg.conf:
Section "Device"
...
Driver "radeon"
Option "RenderAccel" "off"
EndSection
And restart X/GDM.
sudo service gdm start
https://wiki.ubuntu.com/LucidLynx/ReleaseNotes
result : still not working. display with higher resolution but hangs.
3. Mavericki8xxStatus
X freezes (GPU lockups) are still being experienced on i830, i845, and i855 chips. Although there have been various attempts to fix these for Ubuntu 10.10 we have not managed to produce an acceptable fix.
To ensure that users with these cards get a stable graphical environment by default we no longer automatically load the Intel driver on these cards. This results in the fbdev driver loading, which does not provide any ability to change resolution, video acceleration, or 3D.
There are couple of options to re-enable these missing features with various trade-offs:
Manually enabling the Intel driver
Re-enabling the Intel driver will re-enable all the missing features - 3D acceleration, dual-head support, video acceleration. This will also re-enable all the freeze bugs, so it is likely that system stability will be adversely affected.
On some older ThinkPads this will enable all the missing features without freeze, and thereby allow composition to work smoothly, video playback in full screen without stalling pictures, allow choosing from more than one available screen resolution and refresh rate and allow dual screen setup - everything works with the release-default xserver-xorg-video-intel driver and kernel. In Kubuntu activating "Disable functionality check" under desktop effects keeps composition activated between reboots.
To enable the Intel driver you need to create a file called /etc/X11/xorg.conf containing the following:
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Testing upstream patch for i855
There is a kernel patch for the i855 series chips that appears to fix the system freezes. After re-enabling the Intel driver as above, i855 users might wish to try the instructions here on the Lucid version of this page.
Enable the VESA driver
Like the fbdev driver the vesa driver provides no 3D acceleration or video acceleration. It does, however, support changing resolutions.
To enable the VESA driver you need to create a file called /etc/X11/xorg.conf containing the following:
Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
https://wiki.ubuntu.com/X/Bugs/Mavericki8xxStatus
result : still not working for my machine when display 'hang'
my last solution : have to change to nvidia display driver. hmmm...
Subscribe to:
Posts (Atom)
