Archive for February, 2008

Integrating FCKEditor with ASP.Net

This item was filled under [ .Net ]

FCK editor is a good Rich Text Editor for ASP.Net web pages but its documentation lacks few final steps. Adding a little to it:

Download the FCK editor package as well integration DLL from: http://www.fckeditor.net/download
Follow the installation steps of FCK editor official Docs
Now, I hope you have added reference and created your ASPX page. If [...]

Continue reading...

PHP: Replace string in TXT file

This item was filled under [ PHP ]

Ever wanted to search, replace string in TXT files? Use PEAR’s File_SearchReplace and it will do the task for you. You can get a copy of package from: http://pear.php.net/package/File_SearchReplace/
Its quite easy to use. Here is sample code from PEAR’s website:
<?php
include 'File/SearchReplace.php' ;
$files = array( "test1.txt",
"test2.txt",
"test3.txt" ) ;
$ignoreline = array( "#", ":") ;
$snr = new File_SearchReplace( [...]

Continue reading...

IIS Performance Monitor

This item was filled under [ .Net ]

Sitting a little idle at my office desk today (waiting for my manager to arrive), I was trying to figure out some way through which IIS performance can be monitored. And like always, next step was ‘Google‘. Found a small easy-to-use application which is quite handy! Check out the snap and its features below:

“Web Performance [...]

Continue reading...

CSS Transparency code

This item was filled under [ HTML/CSS ]

Found a piece of code that supports IE, Opera, Firefox, Safari - almost all browsers
.transparent_class {
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}

Continue reading...

Printing large images on multiple pages

This item was filled under [ Uncategorized ]

Microsoft has a small VB code on their website that comes in handy when you have to print large images like ERD, Class diagrams etc. on multiple pages. You can get a copy of that code from here. Though it requires user to have VB installed on the system since the code is not in [...]

Continue reading...

Executing SHELL commands with PHP

This item was filled under [ PHP ]

My last post discusses executing batch file in .Net. And the process does use couple of crappy .Net lines! But the same can be done with PHP only in 1 line
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
For more details, read here.

Continue reading...

Run a .BAT file from .Net with parameters

This item was filled under [ .Net ]

Last week, I had to execute a batch file using ASP.Net with parameters. I searched couple of forums, tried few codes but one of them worked really nice. I have tweaked the code to use parameters and its working! =)
public string executeBAT(string workingDir, string batchFile, string batchParameters)
{
//workingDir e.g. "c:\\temp\\" (where your batch file is placed)
//batchFile [...]

Continue reading...

100% Table height

This item was filled under [ HTML/CSS ]

To set your table’s height 100% in HTML, you can try out the following code:
<html>
<body>

<table height="100%" width="100%" border=2>
<tr>
<td><img src="spacer.gif" width=1 height=90></td>
</tr>
<tr>
<td height="100%"> </td>
</tr>
<tr>
<td><img src="spacer.gif" width=1 height=90></td>
</tr>
</table>

</body>
</html>

Continue reading...