Thursday, January 7, 2010

How to include any module in Joomla 1.5

Let's take one example, our Google AdSense module. This can be placed in any module position of the template by default, but not within content. This tutorial shall now explain how to enable it (or any other module) within content in Joomla! 1.5.

STEP 1: Create a new copy of the Module just for in-content use.

Create a copy of the Joomla module

Extensions > Module Manager. Check the checkbox before the module in question and click on "Copy" on the top right (see image).

The copy is placed just under the original in the same module position and is unpublished by default. It will be named "Copy of ...".

STEP 2: Open the Module that you just copied.

Edit the POSITION of the Joomla moduleNow just click on the name of the module (Copy of ...).

STEP 3: Change the "Module Position"

Here, we are going to do something very sleek. With the module opened, look at the left side of the screen. You will see a parameter named "Position". It will have a dropdown combobox in front of it. Joomla! developers have hidden a truly powerful option here. It is "editable". See picture on the right to get a clear idea. So what? Read on...

Let's edit the position name and "create" a new unique position just for in-content use, which will not be shown on the template elsewhere. Do not click on the arrow, but click directly within the textbox of that field and "delete" the content (using delete or backspace key). Now type a new name, let's say content_adsense125 (You can type any name you want, but this to me means that I am using this for showing AdSense ads, 125x125 size for in-content use).

Look at the next picture below for what it will look like. After making the other necessary changes to the module parameters on the right side, "Save" the module. This will now be saved in the "new" position that you just created.As it is a custom position, it will not show on the frontend. That was our purpose too, we want it to show only within content and only where we assign. See the right side ads for an example.

Edit the POSITION of the Joomla module

STEP 4: Go to the Plugin Manager

Change the Load Module Plugin ParameterExtensions > Plugin Manager. Look for a plugin named "Content - Load Module". Open it. On the right side, you will see a dropdown box. Click on its arrow and select "No wrapping - raw output" as shown in the next picture.

STEP 5. STEP 6, STEP 7...

Open your content item within which you want to show the module. In the desired location within the article, just type

LOAD the module now

where"loadposition" is a constant to call the plugin that we just edited in step 4 and "module" is the variable module position to be called, in this case we should change it to content_adsense125 as done in step 3. As indicated above, change only the blue text and leave the red untouched.

Just one word of caution, do not use standard positions like "left" or "user1" inside content. They may load ALL the modules in that position into that content.

From now on, you should be able to place any module in any content of your choice.


Tq http://www.joomlaspan.com

Enjoy ubuntu... ;)

Friday, January 1, 2010

How to solve your Sony Ericsson W810i Blinking white

XS++ Key Functions

Flashing - XS++ is able to fully flash firmware to DB2000, DB2010, DB2020 and PNX5320 platforms. This requires one "Main" and one "FS" file.

Customizing - In order to fully complete a flash, or after flashing an "FS" file your phone MUST be "customized/Finalized". If you skip this step, you WILL recieve the error when turning on your phone: "Configuration error. Please contact your network operator or service centre."

FS Modifications - You may "hack" your phones File System by using "FSX". FSX will mapp your phones complete filesystem and then enumerate the files in each directory. You may, upload files, delete files, delete folders, create folders and browse the FS.
After any modifications are made, you MUST "Shutdown" the FS in order to save your changes.

XS++ Application Work Area

New window
Click to expand / contract



  • A1 - The log window. Outputs XS++ messages while connected to your phone.
  • A2 - Top status bar. Displays your phone CID, Baseband and name while connected.
  • A3 - Tab selection. Here you may switch between XS++ functions.
  • A4 - Bottom status bar. Displays dynamic information about what XS++ is currently doing.
  • A5 - Progress bar. Gives the user some idea of a functions progress.


Flashing Firmware With XS++

Step 1. - Find the firmware files you need. The are are many "free" resources at http://www.se-nse.com which contain firmware as well as http://www.iprotebe.cz .

Step 2. - Select the firmwares (make sure you extract them first) by clicking the "..." buttons or simply dragging the file from the explorer to the box. You may flash Main, FS and Customize all in one go. Alternatively you may perform any single or multiple combination of the three.

- XS++ supports BABE files. If the file you are attempting to flash is not compatible, XS++ will reject the file and disconnect.
Click "Flash" and wait (this takes a while, 6-7 minutes is normal).

New window
Click to expand / contract


New window
Click to expand / contract


New window
Click to expand / contract


Step 3. - Flashing is done, you can breathe now. Disconnect and turn ON your handset.

Customizing/Finalizing With XS++

Step 1. - Take battery out of phone and put back in (do not turn phone on). Open XS++ and click Connect. Hold down the "C" button on the phones keypad and connect the USB cable.

Step 2. - Tick “Customize File System”, select model and region/CDA, click flash. If you cannot find a custpack in XS++ that meets your needs you may upload your own. Select "own custpack" from the CDA menu. The make a folder in the same directory as XS++.exe called "own_custpack". Inside, extract the pack you want to use, keeping the tpa/preset/custom folder tree.

New window
Click to expand / contract


New window
Click to expand / contract


New window
Click to expand / contract


Step 3. - Done. Disconnect and turn ON your handset.

- If XS++ does not contiain the cust pack your require. You may download one, select "own_custpack" from the CDA box, create the folder "own_custpack" in the same directory as XS++ and then extract the custpack to it, keeping the tpa/preset/custom tree.

Tq http://www.esato.com/

Enjoy ubuntu... ;)

How to setup MMS (CELCOM) for Sony Ericsson W810

Step1:

Main Menu > Settings

  • Press your joystick to the left until your main title is Connectivity
  • Select Data comm
  • Select Data Accounts > New Account > press Add
  • Select GPRS data
  • Name : Celcom MMS
  • Press Continue
  • Choose APN: > press Edit
  • APN : mms.celcom.net.my ( for postpaid ), celcom ( for prepaid ), celcom3g ( 3G SIMcard )
  • Press Save
  • Press Back (2X)
  • Select Internet settings
  • Select Internet profiles > choose New profile > press Add
  • Name : Celcom MMS
  • Select Connect using: > Select Celcom MMS
  • Press Save
  • Go to celcom MMS > press More > select Settings
  • Connect using : Celcom MMS
  • Internet mode : HTTP
  • Use proxy : YES
  • Proxy address : 010.128.001.242
  • Port number : 8080
  • Press Save
  • Press More > Select Advanced
  • Select Change homepage
  • Name : Celcom MMS
  • Address : http://mms.celcom.net.my
  • Press Save
Step2:

Main Menu > Messaging > Settings > Picture message

  • Select Message Server
  • Message server : mms.celcom.net.my > press OK
  • Go to Internet profile > press Edit
  • Select Celcom MMS
Step3:

To send mms

Main Menu > messaging > write new > Picture Msg


Tq http://www.channelx.com.my

Enjoy ubuntu... ;)

Saturday, December 5, 2009

VirtualBox OSE Problem

Problem :
The VirtualBox kernel driver is not accessible to the current user. Make sure that the user has write permissions for /dev/vboxdrv by adding them to the vboxusers groups. You will need to logout for the change to take effect..

Solution :

Quote : sudo chown kunkun:vboxusers /dev/vboxdrv


Enjoy ubuntu... ;)

Thursday, December 3, 2009

How to use grep command in Linux

The name, "grep", derives from the command used to perform a similar operation, using the Unix/Linux text editor ed:
g/re/p

grep command syntax

grep 'word' filename
grep 'string1 string2' filename
cat otherfile | grep 'something'
command | grep 'something'

Use grep to search file

Search /etc/passwd for boo user:
Quote : $ grep boo /etc/passwd

You can force grep to ignore word case i.e match boo, Boo, BOO and all other combination with -i option:
Quote : $ grep -i "boo" /etc/passwd

Use grep recursively

You can search recursively i.e. read all files under each directory for a string "192.168.1.5"
Quote : $ grep -r "192.168.1.5" /etc/

Use grep to search words only

When you search for boo, grep will match fooboo, boo123, etc. You can force grep to select only those lines containing matches that form whole words i.e. match only boo word:
Quote : $ grep -w "boo" /path/to/file

Use grep to search 2 different words

use egrep as follows:
Quote : $ egrep -w 'word1|word2' /path/to/file

Count line when words has been matched

grep can report the number of times that the pattern has been matched for each file using -c (count) option:
Quote : $ grep -c 'word' /path/to/file
Also note that you can use -n option, which causes grep to precede each line of output with the number of the line in the text file from which it was obtained:
Quote : $ grep -n 'word' /path/to/file

Grep invert match

You can use -v option to print inverts the match; that is, it matches only those lines that do not contain the given word. For example print all line that do not contain the word bar:
Quote : $ grep -v bar /path/to/file

UNIX / Linux pipes and grep command

grep command often used with pipes. For example print name of hard disk devices:
# dmesg | egrep '(s|h)d[a-z]'
Display cpu model name:
# cat /proc/cpuinfo | grep -i 'Model'
However, above command can be also used as follows without shell pipe:
# grep -i 'Model' /proc/cpuinfo

How do I list just the names of matching files?

Use the -l option to list file name whose contents mention main():
Quote : $ grep -l 'main' *.c
Finally, you can force grep to display output in colors:
Quote : $ grep --color vivek /etc/passwd

Enjoy ubuntu... ;)

kunkun-laptop .... ;)