sep sep sep sep

RemoveP – Avoid adding unwanted P (paragraph) tags for individual pages and posts in wordpress

November 30th, 2011

There’s nothing more frustrating than embedding images or flash video players into a post and then WordPress automatically adds p html tag that screws up the embed code. This plugin disable this behavior of wordpress and remove the filter that adds paragraph tags automatically in posts.

Use this plugin if you have problem with wordpress adding extra white space between objects ( or texts )

You are allowed to enable this feature individualy for each post or page.

It also allow you to replace p tags with double <br> tags.

This plugin make use of wordpress wpautop and disable this filter and also have ability to add <br> tags instead of <p> tags.

 

Download

Enjoy!

Posted in projects, Tips, wordpress | No Comments

 

Fix Windows 7 Shortcuts ( LNK Fix )

November 19th, 2011

If you managed to damage shortcuts in your windows, You can use this file to fix shortcuts.

It is possible that all of your shortcuts, open same program ( be windows media player, internet explorer or notepad ).

Using this fix, It will revert back to windows default.

How to Fix?

1.Please download fix file here

2. Run run.bat file.

3. Enjoy!

run.bat file will run a command to restore lnkfile functions, and reg file do same, but using registry. In fact, it is Two solution to same problem and It force your windows to work as it should.

 

 

 

 

 

 

 

Posted in Tips | 1 Comment

 

Boost your Productivity and avoid procrastinating using this Windows Gadget

November 17th, 2011

Objective of this gadget is very simple. It show a floating quote on your desktop.

It randomly show a Time Management quote every 5 minutes.

You can change Sticky Text above and color of texts.

I tried to upload this gadget in Windows Live Gadget Gallery, but It came out as Microsoft has taken down whole gallery!

Please click here to use/download this gadget.

Posted in projects, Tips | No Comments

 

What is the difference of RES, VIRT and SHR in top output

August 14th, 2011

VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it has mapped into itself (for instance the video card’s RAM for the X server), files on disk that have been mapped into it (most notably shared libraries), and memory shared with other processes. VIRT represents how much memory the program is able to access at the present moment.

RES stands for the resident size, which is an accurate representation of how much actual physical memory a process is consuming. (This also corresponds directly to the %MEM column) This will virtually always be less than the VIRT size, since most programs depend on the C or other library.

SHR indicates how much of the VIRT size is actually sharable memory or libraries. In the case of libraries, it does not necessarily mean that the entire library is resident. For example, if a program only uses a few functions in a library, the whole library is mapped and will be counted in VIRT and SHR, but only the parts of the library file containing the functions being used will actually be loaded in and be counted under RES.

Posted in Tips | No Comments

 

PHP pecl Troubleshooting

August 13th, 2011

Error Message:

/usr/bin/phpize: /tmp/tmpjMvBZg/package.x.x/build/shtool: /bin/sh: bad interpreter: Permission denied

If you receive the above error message while installing a package using “pecl”, it meant that the /tmp partition is mounted in “noexec” mode and that you do not have permissions to execute anything under /tmp partition.

Execute the “mount” command and you will see something like:

root@server [~]# mount
tmpfs on /tmp type ext3 (rw,noexec,nosuid)

To mount the /tmp partition in rw mode, execute:

root@server [~]# mount -o remount rw /tmp

Now, you can execute the “pecl” command to install the package you like. Once done, you can remount /tmp with noexec mode again:

root@server [~]# mount -o remount rw,noexec,nosuid /tmp

Error Message:

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. or Cannot find autoheader. Please check your autoconf installation and the $PHP_AUTOHEADER environment variable is set correctly and then rerun this script.

If you receive the above error message while installing a package using “pecl”, it meant that the pecl is not configured correctly in your linux box. to configure correct autoconf and autoheader, find  autoconf or autoheader file and apply following command:
    root@server [~]# export PHP_AUTOCONF=/usr/bin/autoconf
    root@server [~]# export PHP_AUTOHEADER=/usr/bin/autoheader

Enjoy installing php modules via “pecl install modulename” now!

 

root@server [~]# export PHP_AUTOHEADER=/usr/bin/autoheader

Posted in Tips | No Comments

 

How add CSS3 Support to Internet Explorer (6,7,8,9)?

July 24th, 2011

Microsoft has been published Internet Explorer 9 and web designer face more trouble than ever.

I am a web designer from CSS1 era, and now I have seen basic CSS3 features ( Gradient, Box Shadow, Text-Shadow, Round Borders ).

I am amazed by amount of time we can save by using CSS3. for example, it is possible to create iPhone like button using just a few line of codes ( IE don’t support it! ). No more photoshop backgrounds and fixed width x height for buttons, menues and backgrounds.

CSS3 is supported on all major browsers ( Google Chrome, Firefox, Safari, Opera ) but partial support Internet Explorer 9. Should we wait for Internet Explorer 9.5 ?

No, There is already fixes that will add basic css3 support to IE.

Internet Explorer supports rounded borders ( border-radius ), but no box-shadow, Text-shadow etc.

http://css3pie.com/ ( Click on link to see demo )
Nice and Sweet!

http://fetchak.com/ie-css3/
Another project attempting emulate css3 for IE

Enjoy using CSS3 to Save your Time and make great looking websites.

Posted in Tips | No Comments

 

Why WordPress Asks for Connection Info when I try to install new plugin

July 14th, 2011

One of the great features of WordPress is that it allows you to automatically install and upgrade plugins.

A common problem is that WordPress is unable to access the filesystem directly, which results in a page indicating that “To perform the requested action, connection information is required.” learn how you can fix this

 

If you feel that your WordPress installation should not be asking you for this information, or you simply do not want WordPress to use this method of plugin management, you may be able to work around it.
What is Causing This?

Whenever you use the WordPress control panel to automatically install, upgrade, or delete plugins, WordPress must make changes to files on the filesystem.

Before making any changes, WordPress first checks to see whether or not it has access to directly manipulate the file system.

If WordPress does not have the necessary permissions to modify the filesystem directly, you will be asked for FTP credentials so that WordPress can try to do what it needs to via FTP.
Why Can’t WordPress Write To The Filesystem?

In order to understand why WordPress can’t write to the filesystem, we need to take a look at some WordPress internals.

The following code is from the get_filesystem_method() method in the wp-admin/includes/file.php file:

if( function_exists(‘getmyuid’) && function_exists(‘fileowner’) ){
$temp_file = wp_tempnam();
if ( getmyuid() == fileowner($temp_file) )
$method = ‘direct’;
unlink($temp_file);
}

This code creates a temporary file and confirms that the file just created is owned by the same user that owns the script currently being run. In the case of installing plugins, the script being run is wp-admin/plugin-install.php.

This may seem a little counter-intuitive, since the only thing WordPress really needs to be able to do is write to the wp-content/plugins directory.
What Can I Do About It?

In order to fix this issue, you will need to make sure that the scripts which need to write to the filesystem are owned by the same user that apache is running as.

Many hosting companies will run your apache instance using your user account, and all of your files will be owned by the same account. In those cases, you will probably not have the issue described here.

If your hosting company is running apache as a system user, and your files are owned by your own account, your only option may be to enter your FTP credentials here and allow WordPress to use FTP.

If you are running on a hosting company that gives you root access, or you have installed WordPress on your own development machine at home or at work, you should be able to modify the filesystem permissions to allow WordPress to directly access the filesystem.

The easiest way to do this is to find out what user apache is running as and change ownership of the entire WordPress directory to that user. For example, if apache is running as ‘httpd’, you could use the following commands on your WordPress installation directory:

# chown -R httpd: wordpress

Similar you also can us:

# chown -R apache: public_html/

Tip: In order to find out what user your instance of apache is running as, create a test script with the following content:
<?php echo(exec("whoami")); ?>

Source: hecode

Posted in wordpress | No Comments

 

How to Enable Concurrent Sessions in Windows Remote Desktop?

July 14th, 2011

If you tried windows remote desktop, you’ll see it will logout currently logged in user from windows before logging you! It is strange and annoying. Other user must wait until you finish your work with pc ( remotely ).

There is a patch called “Concurrent RDP Patcher”, it works with Windows Vista too ( i think )

All you need is to click on it’s Patch button!

It also have additional options, such as allowing blank password logons and multiple logons per user!

You can download this patch here and make your life easier.

Another solution is to use TeamViewer, however, it does not use RDP, but it will make your life easier!

Posted in Tips | No Comments

 

How Disable and Turn Off Digsby Auto Update? [SOLVED]

July 14th, 2011

Digsby, an IM client with Email and Social Networking. It is very great application but it is annoying me whenever i try to start application as it will download a large update before signing into client.

How Disable AutoUpdate feature? Digsby will be automatically check the server for the newest update of the application, download, and then installing this update. Sometimes, needs digsby to restart the application. Sometimes, it’s only need several kbs, but some other time, it need more then 10 Mbs, every day update. So, we need to wait before this application finished the update, especially for slow connection. And there’s make some other problems, sometimes, the newest is not the best, or the most stable application. Sometimes, the newest make a new problem in compatibility with the Operating System.There’s no options to disable autoupdate in this application setting.

So, how to disable Digsby’s Auto Update?
Just rename the AutoUpdate folder. This folder in (C:\Program Files\) Digsy\lib\AutoUpdate. Change this folder to another name, and digsby cannot do anything about updating the application. That’s it!

Enjoy your easier life!

Posted in Tips | No Comments

 

How to Easily Add “My Computer” to Windows 7 taskbar?

July 14th, 2011

If you are running Windows 7 and you are really impressed with a lot of the new features. there might be a couple of issues that bugging us. Hopefully there is solution for everything.

If you want to have “My Computer” link in your taskbar ( not just Library ), Download this file “Computer.zip” and extract Computer shortcut in it. This is a special shortcut. You can drag and Pin it to Windows 7′s Taskbar easily.

Enjoy your life!

Posted in Tips | No Comments