Monday, December 28, 2009

Remove Virus

Remove using boot CD from Kaspersky Rescue Disk - Load Kaspersky AntiVirus 2009 Using DOS
http://www.techmixer.com/kaspersky-rescue-disk-load-kaspersky-antivirus-2009-using-dos/
The most effected way to scan virus using standalone boot load from CD without Windows, I fixed the system this way when MBR master boot record is effected by virus. You must have a CD-W or DVD-W drive to make a standalone CD/DVD by burning ISO record/image. ISO (Short for International Organization for Standardization) image is a term commonly associated with CD and DVD burning. An ISO image (or .ISO file) is a computer file that is an exact copy of an existing file system. An ISO can contain the entire contents of a CD-ROM disc or CD medium. ISO files are typically created through a software application that will open, create, edit, and extract CD or DVD image files, then convert the extracted image to an ISO file, easily allowing users to burn an exact copy of the original onto CD or DVD.

Remove Virus and Malware with Online Virus Scanner *** Best for most users
http://www.precisesecurity.com/tools-resources/threat-removal-procedure/remove-threats-with-online-virus-scanner/
The second effected way to scan virus on line
This procedure can remove common virus and malware threats on your computer using only free on-line anti-virus scanners.

Requirements:
1. Internet connection
2. Administrative privilege (Windows 2000/XP)

Procedure:
1. Temporarily Disable System Restore in Windows XP. For Windows ME user, please click here.

Note: You must have an Administrator Privilege to be able to disable System Restore on Windows XP. It is advised to enable it after this procedure.

a) On the Desktop, Right Click on My Computer
b) Select the System Restore Tab
c) Mark the “Turn Off System Restore” to disable and UnMark to Enable
d) Click Apply on the Bottom of the Dialog Box to save the settings.
e) A message “This deletes all existing restore points” will appear, click Yes to disable.
f) Click OK.

2. Reboot computer in SafeMode with Networking (For Windows XP Only, Other OS may scan in Normal Starup Mode)

a) During BootUp process Press F8 continuously until selection appears
b) Use Arrow Up+Down to select SafeMode with Networking on the selections menu.
c) Hit Enter to proceed.

3. Connect to Internet and Scan with any of the following on-line Virus Scanner.

* Symantec Security Check | proceed (scan but no fix, just tell you virus name)
* TrendMicro Housecall | proceed
* McAfee | proceed
* Panda ActiveScan | proceed (not working well)
* BitDefender | proceed (not working well)
* F-Secure | proceed *** work for me
This F-Secure seems working for me download http://www.f-secure.com/en_US/security/security-lab/tools-and-services/online-scanner/
Most of antivirus asking to pay or only scan the virus but not remove it. F-Secure scan and remove for free.

OPTIONAL:
Create a Slip Stream version of Windows XP
http://www.webtree.ca/windowsxp/slipstream.htm
How to merge Windows SP2 to the original CD from Microsoft. Instead of install the original then install SP2 after.

Repairing Windows XP in Eight Commands
http://tech.icrontic.com/articles/repair_windows_xp/2/
Some windows commands may help during the process

Fix Corrupted Files in Windows XP
The things that you will need:

Windows XP Operating System

Windows XP CD

Steps:

1) First place the CD into your CD/DVD Drive.

2) Go to start

3) type “run”

4) type in “sfc /scannow” (without the “)

Now, it should load and fix all your corrupted file on Windows XP.

If you have Norton anti virus add/remove with windows won't work these are the tools to complete remove Norton and allow you to reinstall Norton again. For example to remove Norton 360 and install Norton Anti virus Client
Symantec CleanWipe (product remover)
http://www.vertor.com/torrents/643322/Symantec-CleanWipe-(product-remover)

Norton Remove Tool
http://www.softpedia.com/get/Tweak/Uninstallers/Norton-Removal-Tool.shtml

Nowadays it is difficult to have one system you need at least 2 systems in case one of them does not work you can go to internet to google or download the tools to fix the another one.

Wednesday, November 11, 2009

wireshark with tcpdump

Login as a root and type the following command at console:
# tcpdump -n -i {INTERFACE} -s 0 -w {OUTPUT.FILE.NAME} src or dst port 80
# tcpdump -n -i eth1 -s 0 -w output.txt src or dst port 80

DNS - TCP

Friday, January 25, 2008

Bug 1341 - wlan0 disappears after running for a while

remove driver and install again causing wlan0 authenticated and associated (don't need reset system) do this:
modprobe -r iwl4965 (verify by modprobe -l | grep -i iwl4965)
modprobe iwl4965
------------------------upgrade driver iwlwifi.1.2.23 see if it fixes the problem.
tar xvf iwlwifi.1.2.23
cd iwlwifi.1.2.23
make
make install

mm-applet

It popups 2 windows:
This has nothing to do with root privileges, you are prompted this message because nm-applet wants to use the wifi key (WEP i guess) stored in the keyring. What is the gnome-keyring?

mm-applet
Passphrase required by wireless network – A passphrase or encryption key is requred to access wireless network linksys

to disable by delete /home/YOUR NAME/.gnome2/keyrings/default.keyring

if connect to other AP then mm-applet and Passphrase may appear again then you can do from terminal

you could ignore it and enter

iwconfig wlan0 ESSID " " mode Managed key .... and it's still working

in case the icon for wireless disappear can bring it back by Computer > Filesystem > usr > bin"
then double click to run "nm-applet

http://www.linuxquestions.org/questions/linux-general-1/keyring-problem-415928/
http://ubuntuforums.org/showthread.php?t=622066

Thursday, January 24, 2008

If your PC has 2 connections: wire and wireless where the data will go

It will go to wire first then wireless after.
It seems to me when connect to wireless router and wire to another PC. The dhclient will write into resolv.conf with the info of nameserver and domain of the wire network. Therefore, the data will flow into wire.
dmesg:

ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mobile IPv6
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:16:b6:c0:0d:e9
wlan0: RX authentication from 00:16:b6:c0:0d:e9 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:16:b6:c0:0d:e9
wlan0: RX AssocResp from 00:16:b6:c0:0d:e9 (capab=0x401 status=0 aid=2)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present
wlan0: no IPv6 routers present
r8169: eth0: link up
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
ip_tables: (C) 2000-2006 Netfilter Core Team
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (8192 buckets, 65536 max)

dhclient-resolv.conf

dhclient writing my /etc/resolv.conf so here how to add extra stuff into resolv.conf
gedit /etc/dhcp3/dhclient.conf and add
prepend domain-name-servers 192.168.1.1 (router)
then run
dhclient
check /etc/resolv.conf for 192.168.1.1
(ubuntu run dhclient from /etc/dhcp3)
man dhclient-script for more details

if wlan0 then resolv.conf
search phub.net.x.x.com
nameserver 192.x.2.1 (cable modem)
nameserver 192.x.1.1 (router)
nameserver 64.71.255.x

if eth0 then resolv.conf (via XP)
search mshome.net
nameserver 192.x.1.1
nameserver 192.x.0.1

all done automatic by dhclient
kill -9 dhclient (if want to run again it shows error already pid file /var/run/dhclient.pid)

Wednesday, January 23, 2008

wifi 4965AGN - iwlwifi system LED's blinking and hang - P205-S6267

There are 3 parts for wifi to work:
- mac80211 subsystem must be installed
- tar xvf iwlwifi-4965-ucode-4.44.17.tgz (firmware)
- iwlwifi-1.2.23.tgz (driver)

Fixed by using mac80211-8.0.1 instead of mac80211-10.0.0, the lastest version of MAC802.11 has bugs causing the crash.
http://intellinuxwireless.org/?p=iwlwifi&n=howto-iwlwifi
-----------------------Build mac80211 for kernel
% wget \
http://intellinuxwireless.org/mac80211/downloads/mac80211-10.0.4.tgz
% tar xvf mac80211-10.0.4.tgz
mac80211-10.0.4/origin/GIT
mac80211-10.0.4/origin/net/mac80211/Makefile
...
% cd mac80211-10.0.4
% make
Building modified version in 'modified/' directory:
Copying modified/ from origin/...done
Applying patches and scripts from pending/.
+ Applying: pending/14-d46...0bb780bba2b5db.patch
...
% make patch_kernel <-- You need to be root for this
Patching from compatible/ to /lib/modules/2.6.18-gentoo-r6/build/:
+ Replaced 43 files
% cd /lib/modules/$(uname -r)/build
% make menuconfig
...

Networking --->
Generic IEEE 802.11 Networking Stack (dscape)
...
% make modules && make modules_install
% make all
% make install

% modprobe mac80211
----------------------Firmware
For Intel Wireless WiFi 4965AGN users:
% wget \
http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.17.tgz
% tar xvf iwlwifi-4965-ucode-4.44.17.tgz
% cp iwlwifi-4965-ucode-4.44.17/iwlwifi-4965.ucode /lib/firmware/
For Intel PRO/Wireless 3945ABG/BG Network Connection users:
% wget \
http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-2.14.4.tgz
% tar xvf iwlwifi-3945-ucode-2.14.4.tgz
% cp iwlwifi-3945-ucode-2.14.4/iwlwifi-3945.ucode /lib/firmware/
-----------------------Driver
-------------------------------------------------------
http://bughost.org/bugzilla/show_bug.cgi?id=1477


------- Additional Comment #1 From Zhu Yi 2007-09-24 20:51 [reply] -------
1.1.0 (stable) or 0.1.16 (development) fix the problem.


% wget \
http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-1.1.0.tgz
% tar xvf iwlwifi-1.1.0.tgz
% cd iwlwifi-1.1.0
% make
% make install

-------------------------
http://gentoo-wiki.com/HARDWARE_Toshiba_Satellite_P200-141
# Install mac80211
tar xvf mac80211-8.0.X.tgz
cd mac80211-8.0.X
make
# Patch the kernel
make patch_kernel
cd /usr/src/linux
make menuconfig
# Enable Networking/Improved wireless configuration API/
# Enable Networking/Improved wireless configuration API/cfg80211 Wireless Extensions compatibility
# Enable Networking/Improved wireless configuration API/ nl80211 new netlink interface support
# Enable Networking/Improved wireless configuration API/
# Enable Networking/Generic IEEE 802.11 Networking Stack (dscape)
# Maybe disable Device Drivers/ Network device support/Wireless LAN (non-hamradio)/Wireless Extension API over RtNetlink
make
make modules_install
update-modules

# reboot your system with the new kernel
# Install the microcode
wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-4.44.14.tgz
tar xvf iwlwifi-4965-ucode-4.44.14.tgz
cp -a iwlwifi-4965-ucode-4.44.14/* /lib/firmware/
# Install the module
tar xvf iwlwifi-0.0.X.tgz
cd iwlwifi-0.0.X
make
make install
-------------------------

Sunday, January 20, 2008

answers.com

A dictionary version 2 options: install as add-on for firefox or install in PC for all applications get the definition by ALK-click at the same time. It is nice to read the news in the morning with the coffee before work and has answers just a click away. If you are working on web apps or graphic design, surfing the webs like: nbc, cnn, abc, msnbc, abc or other websites is the best way to get the ideas.
It is used voice plugin for dictionary from QuickTime and after installed make sure its property for compatible is unchecked for XP otherwise it will hang when try using this plugin.
Like comments/video

Saturday, January 19, 2008

OOP

Object:
Objects are the basic run-time entities in an object-oriented system. Every object is associated with data and functions which define meaningful operations on that object.


Features of OOPs are the following:



Encapsulation
Data abstraction
Inheritance
Polymorphism
Message
passing
Extensibility
Persistence
Delegation
Genericity
Multiple Inheritance

Sunday, January 13, 2008

Create RSS widgetbox

Write PHP program to create XML file depending on the post. This file can be updated periodic. Choose widgetbox then embedded the XML file i.e. rss.xml or using feeder name http://feeds.feedburner.com/gatherx

Sunday, June 11, 2006

learn...

You can almost learn anything new by yourself all it takes is time. The trick is finding the right specs., right tutorial. The conceptual is learn or read to understand the basic concept before going into the detail. For example learn VNP, WiMAX read the some article to grasp and understand the concept how it works then when going into the specs. like 802.16 will easy to understand.
Here is the example:
Conception of wimax http://computer.howstuffworks.com/wimax1.htm
The real spec is http://ieee802.org/16/
Conception of wifi in local: /mnt/win/protocols/802.11tut.pdf
The real spec in local: /mnt/win/protocols/802.11.pdf

Conceptual is really good like talking about wimax
  • There is the non-line-of-sight, WiFi sort of service, where a small antenna on your computer connects to the tower. In this mode, WiMAX uses a lower frequency range -- 2 GHz to 11 GHz (similar to WiFi). Lower-wavelength transmissions are not as easily disrupted by physical obstructions -- they are better able to diffract, or bend, around obstacles.
  • There is line-of-sight service, where a fixed dish antenna points straight at the WiMAX tower from a rooftop or pole. The line-of-sight connection is stronger and more stable, so it's able to send a lot of data with fewer errors. Line-of-sight transmissions use higher frequencies, with ranges reaching a possible 66 GHz. At higher frequencies, there is less interference and lots more bandwidth
    So when reading wimax 802.16 in section PHYSICAL LAYER there are 2 frequencies: 2 GHz to 11 GHz and 10-66 GHz you will understand right away why there are 2 frequencies it takes me a while to figure out if you read the conceptual you will know right away.

    OR
    VPN
    Analogy: Each LAN is an Island
    Imagine that you live on an island in a huge ocean. There are thousands of other islands all around you, some very close and others farther away. The normal way to travel is to take a ferry from your island to whichever island you wish to visit. Of course, traveling on a ferry means that you have almost no privacy. Anything you do can be seen by someone else.


    This imply for everything including specs., coding... we need to understand the concept and specs it will easy to remember instead of learning by heart...

Wednesday, May 24, 2006

Mozilla Firefox 1.5.0.3

The world is depending on the information and most the information you need is on the internet. Therefore, the tools are critical to save time when wanting to find a piece of information is missing in the puzzle which helps you to do the job better. Who control the information on the internet will be the one will success (a hint from Bill Gate). Mozilla Firefox just does that, it is very fast to search the webs, find info from net then find info in the page, find info. on the web with the less keystrokes less interrupt let your ideas flow from one page to another page for example to search in the article just ctrl f or ctrl + most the key controls as same as other applications like photoshop, or MS word no need to learn a new keystroke control key. I mean that you search the web then you search the content in that page. Google does very good job in this. Larry P. said that the information now can be reached anyone in the globe, there is no different for one engineer sits in the San Jose, Cali and one engineer sits in Bangalore, India. I think the hint & idea from Bill G. and Larry are so correct. In the mozilla-firefox, the search engine is on the top, the bottom appears when needed not like the old browser like Netscape, IE each time find something in the article typing ctrl f and it appears in the middle of the page so you can not see the page. I am using mozilla 1.0 in linux then change to mozilla-firefox 1.0 and last night upgraded to mozilla-firefox 1.5.0.3 - this is a killer application on the net for me. When install just download the rpm it is easy to install no need to compile just a simple command: rpm -ivh firefox-0.10.1-0.1.1.fc1.test.i386.rpm
The final version http://www.mozilla.com/firefox/
No need to remember anything just on left top corner click on Google: mozilla-firefox it will bring to the site. This is why I try talking about the power of information. There is a ton of information you need for your job just search to find a right tutorial and you almost do everything by yourself especially for who is self learning. One thing I wish that the search box in top left should be wider, cache better (if you open the same page it should be faster) because it has been cache, and last file download seems often corrupt and stop without warning. When you install gets the error and do the file check that it is different from original. During download if the connection is down you have to download all over again it is time consume with large file it should remember when it left off and when connected again it should start whereis left off like other program Flashget...if it is incorperated into Mozilla Firefox it will great.
I think it is not because the modem or ADSL are slow but the application makes the browser runs slow. For example we can implement the fast TCP/IP for these applications instead of the old traditional TCP/IP. For more info. about using it http://mozilla.gunnars.net/firefox_bookmarks_tutorial.html
when you go through this tutorial about bookmark manager and other functions you are glad that
I am telling that it has many awsome features. And last, mozilla firefox is a smart browser (secure)it lets you know cookies/any spy adware/tracking adware/virus detection/detected live bookmark (dynamic website/RSS/XML) this allows to download multi news and you can view at one no waiting to download, see above link for tutorial.
So the race is on between IE and the others. Von Brown once said, "the innovation takes time" John F Kennedy once said,"we decide to go to moon not because it is easy but because it is hard".

Saturday, May 20, 2006

XAMPP for apache, php and mysql

Download: http://www.apachefriends.org/en/xampp.html

XAMPP for Linux
The distribution for Linux systems (tested for SuSE, RedHat, Mandrake and Debian) contains: Apache, MySQL, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.
XAMPP for Windows
The distribution for Windows 98, NT, 2000 and XP. This version contains: Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql.

Tuesday, May 16, 2006

ActiveX vs. Java Applet

ActiveX is a technology developed by Microsoft. With an ActiveX-enabled browser (ie Internet Explorer only) ActiveX controls can be downloaded as part of a Web document to add functionality to the browser (similar to Java applets). In particular ActiveX enables seamless viewing of Windows files of all types, eg spreadsheets, and in combination with other technologies such as Java and scripting languages, makes possible the development of complex Web applications. ...

Does Active X works with Linux, I guess it is not because it is not windows, I tried Java applets for dialing to Netzero (ISP), it is all works for both linux and windows. Linux needs jre-1_5_0-linux-i586.bin and windows need C:\Program Files\Java\jre1.5.0_01\bin\npjpi150_01.dll

Linux:
download netzero.deb
cp netzero.deb /
cd /
ar -xv netzero.deb
gunzip data.tar.gz
tar xvf data.tar
Install java jre
cd /opt/nzclient
./runclient.sh

Create a file to get on desktop of cd ~/gnome-desktop links/associated to /java/jre-1_5_0/opt/runclient.sh
Click to dial from desktop of gnome.

Mambo, oscommerce, and weberp

These 3 packets supports everything you need from ERP to oscommerce. Mambo supports to dynamic web pages using content management systems.

Mambo <--> www (oscommerce) <---> webERP

oscommerce is good for back end and mambo is good for front end.
WebERP allows users to access ERP at any places. WebERP and oscommerce can share
the same database. So if the user buys an item, it issues an invoice that will go
to WebERP to generate quarter sales ---> for tax or income just one button.

DNS

- Buy a domain then go to domain names server set up IP address of your web hosting
This is standard zone - Fill the IP of web hosting usually 2 boxes:
Standard Primary: 63.247.87.178
(get from web hosting server IP which is dynamic IP
share among many users if you are mini reseller web hosting)
Standard Secondary: 63.247.87.179
- Go to WHM web host mangement (it is not control panel) set up the account using
that domain for example: www.objectlayer.com but only need to put objectlayer.com
Set up space needs for this website, bandwidth, username and password

- Go to control panel set up the rest: email address, database mysql, security...

that is all, when it works you are able to ping the website and it will reply
Run -> cmd -> dos command -> ping objectlayer.com (using ICMP)

C:\Documents and Settings\Administrator>ping objectlayer.com

Pinging objectlayer.com [63.247.87.178] with 32 bytes of data:

Reply from 63.247.87.178: bytes=32 time=153ms TTL=48
Reply from 63.247.87.178: bytes=32 time=163ms TTL=48
Reply from 63.247.87.178: bytes=32 time=171ms TTL=48
Reply from 63.247.87.178: bytes=32 time=159ms TTL=48

When you type www.objectlayer.com --> DNS to get IP --> web hosting and information
is stored here so if the browser asks for HTTP request will get HTTP response
Depend on request it could be GET, HEAD and POST. If the server could not find the page error 5xx (client 4xx)
Basically, web server responds to the request from web brownser usually is on the port 80 (HTTPs on port 443 for SSL) this service that the user need to pay web hosting service if they want to have it for their shopping on line.
HTPPs is working on oscommerce by submitting the predefined URL to credit card or banking under POST (Paypal using winsock), the result is again on the predefined on
the users' website. From the result code, the users (seller) can determ if the buyer can buy their products.

Thread vs. process

One difference: Threads within a process share a single address space, and can, with care (synchronization), access one another's variables. Processes run in different address spaces, and must use inter-process communications mechanisms to exchange information.
Processes Versus Threads


Other Terms:

Heavyweight Process = Process
Lightweight Process = Thread


Advantages (Thread vs. Process):

Much quicker to create a thread than a process.
Much quicker to switch between threads than to switch between processes.
Threads share data easily


Disadvantages (Thread vs. Process):

No security between threads: One thread can stomp on another thread's data.
For threads which are supported by user thread package instead of the kernel:
If one thread blocks, all threads in task block

Thread States (Example Java):

New = New: Placed on the ready list.
Blocked = Wait for an event
Runnable = Ready or Running
Dead = Exit


Thread functions: POSIX (Standard UNIX C/C++):

pthread_create(): creates a thread
pthread_exit(): kills itself
pthread_kill(): sends a signal to a specified thread
pthread_join(): waits for a thread to exit.
pthread_self(): returns thread id
synchronization functions


Java Implementation
http://objectlayer.blogspot.ca/2012/06/java-threads-for-hello-world.html
Define a class to contain a thread, by defining:
class Worker1 extends Thread OR
class Worker2 implements Runnable (Recommended)
The parent thread creates the object and invokes its start() function.
The start function creates the child thread and calls the object’s run() function.
Thread terminates when thread returns from run(), or stop() is called.

Types of Thread Implementations


User Thread Package

A package outside the OS creates and schedules threads.
Model: Many-to-one: Many user threads associated with one process.
Thread creation/management is faster than Kernel Thread support
However if one thread blocks, then entire process blocks. Thus all threads block.


Kernel Thread Support

The OS creates and schedules threads.
Model: One-to-one: Each user thread is associated with one kernel thread.
If one thread blocks, the kernel can schedule other threads.
If multiprocessor configuration, kernel can allocate threads of same process on different processors.
Example: Windows NT, Solaris, Digital UNIX

Many-to-Many Model: Combination of above

N user threads share M kernel threads (where N > M)
There may be a flexible and changing assignment of user threads to kernel threads.
Bound: User-thread is assigned permanently to kernel thread
Unbound: User threads share available kernel threads
Example: Solaris
----------------------deadlock vs. race condition
DeadlocksA deadlock occurs when one or more threads are permanently blocked from executing because each thread waits on a resource held by another thread in the deadlock. A thread can also deadlock on itself. The simplest case of deadlock occurs when process p1 gains access to data structure a and process p2 gains access to b, but p1 then waits for b and p2 waits for a.
A deadlock
occurs when one or more threads are stuck waiting for something that never will
occur.(advanced linux program p.82)
Race Conditions
A race condition occurs when two or more threads perform an operation, and the result of the operation depends on unpredictable timing factors; specifically, when each thread executes and waits and when each thread completes the operation.
The result is trouble. Because both processes see the same scull device, each will
store its new memory in the same place in the quantum set. If A stores its pointer
first, B will overwrite that pointer when it does its store. Thus the memory allocated by A, and the data written therein, will be lost.

Tuesday, February 21, 2006

how to fix Warning: extract(): First argument should be an array

Re: [maxbear] Error using different template [In reply to] Can't Post

--------------------------------------------------------------------------------

It looks like the error is happening on this line:

--------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------

extract($TPL_GLOBALS[$template_set]);

--------------------------------------------------------------------------------


Which from the previous few lines, should only error if you don't have a globals.txt. You should be able to fix it by either creating an empty globals.txt file, or by changing the above line to:

--------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------

if (isset($TPL_GLOBALS[$template_set])) {
extract($TPL_GLOBALS[$template_set]); }
-------------------------------------------------------------------------------

in aboutsaigon/includes/templates.php

function fetch($file = null) {
global $INFO;
if(!$file) $file = $this->file;
if (isset($this->vars)) { // fix the warning
extract($this->vars);
}
ob_start();
include($INFO['templateFolder'].$file.$INFO['templateType']);
$contents = ob_get_contents();
ob_end_clean();
return $contents;
}
}

Wednesday, February 08, 2006

You can almost learn anything

You can learn C++/VB/Java there is a lot information on the internet, first thing you have to search the right document the one that you can read and understand and best practice for exercise that works then download and go step by step learn and practice it. The key important it must have the right document. If you are not satisfy with the documents find another one. You can almost learn anything in the internet as long as you have a fast internet.