Monday, April 20, 2009

Increase Swap Memory in Linux

Source:http://salomie.ro/wiki/index.php/Linux_Free_Command

Linux Free Command
From Wiki
Jump to: navigation, search

The Linux Free Command
[edit]
Getting started

The linux free command allows us to check free/used memory on the system The output below is the result of running free -m on my system (-m means output is in MB):

total used free shared buffers cached
Mem: 3856 1121 2735 0 17 180
-/+ buffers/cache: 923 2933
Swap: 2533 1044 1489

[edit]
Output explained

The first line starting with Mem: gives us the following information:

* total - is the total avaialble RAM (== Physical Memory) after subtracting the amount used by the kernel! In my case I have 4GB RAM and the total displays less than this.
* used - is the part of the RAM that currently has information in it that can be of use to the system (remember: unused RAM is useless, try to maximise this value)
* free - is just total-used
* shared - is the amount of memory shared between processes
* buffers and cached - the cached data and buffers for IO

The second line starting with -/+ buffers/cache: tells us how much of the memory in the buffers/cache is used by the applications and how much is free. Keep in mind that in general the cache is filled with disk IO cached data. The cache can be very easily reclaimed by the OS for applications. Let BUFFERS + CACHED from first line be value X.

X subtracted from the USED memory from the first line gives how much RAM is used by applications (USED value on second line)

X added to the FREE memory on the first line gives how much RAM applications can still request from the OS.

While the first line handles the values of currently used RAM, including applications and caches (but excluding kernel), the second line gives info on application related memory: how much is currently in use and how much is there still available for the applications.

Wednesday, April 15, 2009

Not able to open drives on hard disk by double click

Source:http://www.troublefixers.com/not-able-to-open-drives-on-hard-disk-by-double-click/
Not able to open drives on hard disk by double click
Posted by abhishek in computer problems, how to fix, virus problems, windows

Tags: autorun.inf, drive-not-opening, drive-not-opening-on-double-click

14

Jan

Trouble:

Sometimes it happens in windows XP that you are not able to open drives on your hard disk. When you double clicking on the drives icons or right click on the drive>>explore in My computer ,the drive does not open.

This problem is generally caused by most of the viruses which infect windows XP system. They block or restrict your access to any of the drives.

But don’t worry this is not a big trouble it can be fixed easily.

Fix:

Normally when a virus infects a windows system which causes a drive opening problem, it automatically creates a file named autorun.inf in the root directory of each drive.

This autorun.inf file is a read only ,hidden and a system file and the folder option is also disabled by the virus. This is deliberately done by the virus in order to protect itself. autorun.inf initiates all the activities that the virus performs when you try to open any drive.

You have to just delete this file and restart your system to correct this problem.

Follow the set of commands below to show and delete the autorun.inf

1. Open Start>>Run and type cmd and press enter. This will open a command prompt window. On this command prompt window type the following steps.

2. type cd\

3. type attrib -r -h -s autorun.inf

4. type del autorun.inf

5. now type d: and press enter for d: drive partition. Now repeat steps 3 and 4. Similarly repeat step 5 for all your hard disk partition.

Restart your system and your trouble will be fixed.

Technorati Tags: virus,drive-not-opening,folder-option-disabled,autorun.inf

Note: For all those who are not able to correct this problem, after following the above procedure can use a tool called Ravmon Virus Killer designed by Muhammad Abdullah, download it from here

Arabic font for PDF from iReport

Source:http://forge.openbravo.com/plugins/espforum/view.php?group_id=100&forumid=549512&topicid=6993189

RE:arabic font for PDF from iReport 11/04/2009 07:55 PM

this is the solution for the arabic font in reports

go to this web sit and see

http://anamasry.wordpress.com/2008/12/23/exporting-pdf-using-jasperreport-in-arabic/

the method is

1- download the Arial.ttf font

2- put it in the folder of iReport/fonts

3- in iReport hit reload fonts from the options menu

4- choose the arial font for pdf font for the text you want

5- follow the instructions in the above link

6- copy the arial font to Tomcat webapps in context name folder in WEB-INF/CLASSES

7- refresh opebravo

thats all

Sunday, March 29, 2009

Drives and folders not open by double click

Description - When you try to Open a drive it say (select a program from this list to open).If you try to open with IE means it will ope.

Reason - Due to Trojan

Remedies - 1.Open REGEDIT file(In Run type REGEDIT )
2.Find "MOUNTPOINTS2" using Ctrl + F
3.Delete the same(Include sub folders).MOUNTPOINTS2 always a folder.
4.Repeat the process unless all the "MOUNTPOINTS2" are deleted
5.Check now.
6.RESTART

Wednesday, March 25, 2009

Display Logic

http://sourceforge.net/forum/forum.php?thread_id=3100835&forum_id=549512
Question-
Hi,

I want to hide a field in screen based on another field, (string) starts with CAN.
Example -- City like 'CAN%'

I don't know what was the syntax for 'like' in display logic?
Help me.

Answer-

Hi,

Display logic in field tab is used for this purpose. Display logic is a boolean expression that make the field visible when it is evaluated to true. This expression is pseudo javascript (in fact is javascript, but for comparison operators it is used = and ! instead of == and !=). Thus the starts with comparison must be implemented in javascript, for example:

@YourFieldToCompare@.substr(0,3)!'CAN'

This would hide the field in case its value start wiht CAN (note it is case sensitive)