Thanks to antville.org
Web based Feed Reader

My new mantra is working Online All the Time. I have stopped using all the softwares those I need to download and install. The list includes Msoffice and my favorite feed readers like "Feed Reader" and "Awasu". I have found out the web based alternative like SNARF! http://www.tatochip.com/
If you have your own website with PHP support, you can create your own RSS Feed Aggregator page by installing a simple php script on your web server. More information is available here...
http://zvonnews.sourceforge.net/zvonfeeds.php

... Link (0 comments) ... Comment


Function Exists

Unsure whether your PHP web server has the required functions installed to run a particular script? If so, use the function_exists() function to check. For example, if I wanted to see if the fopen function existed with my PHP build, I would use the following code:

(?php echo function_exists("fopen"); // Outputs 1 if exists ?)

... Link (0 comments) ... Comment


Private website!

You don't need to learn complex password protection using JavaScript or PHP. If you want to access the confidential information and if you are accessing it from a particular location that has a static IP address, then the life can be much easy. I access the net from my home. I have an IP address 202.63.174.20 I found it out by googling "what is my IP address?" This IP doesn't change. If you are using dial up then the next time when you connect to your ISP, it will allocate you a new IP. In that case this tip won't work.
I have created a .htaccess file with following code and I will put it in the directory that I want to protect. If I put it at the root, my entire site will become private, intranet sort of!
(Limit GET)
order Deny,Allow
Deny from all
Allow from 202.63.174.20
(/Limit)

The script (change the ( with <) will deny access to all except the one mentioned above to the directory and sub directories below it.If my IP address is shared by more than one computer (and that is possible since unique IP is very costly)then all those computers have access to the directory. This limitation is actually a blessing for small and medium size companies. Since everyone in the company is using the company network that has a single unique IP address, you can make information available to everyone in your company without providing access to the world. Thus you can create an ultra user friendly protected directories or site without writing a single line of code!

... Link (0 comments) ... Comment


One more JavaScript tip

Well, here's a cool tip to disable the ability to select text on a page.
Just replace your opening tag with this line:
(BODY onselectstart="return false")
Then check out your page. You will see that you can't drag across the text to highlight it.
This will help you if you don't want the users to copy the text from your website.

... Link (0 comments) ... Comment


register globals in PHP

Create a file with the following code in it.

<?php
phpinfo ();
?>

Save it on your server and access it through a browser.
On my server it says..

Configuration
PHP Core

Directive Local Value Master Value
register_globals On On

Master value is the value set in php.ini.
Local value is a setting set with something else, a .htaccess file for example. You can create an .htaccess file with one of the following line in it...

php_flag register_globals on
php_value register_globals 1

Now next time you can access variable just by printing it to the browser..

print $username;

... Link (0 comments) ... Comment


Better Form submission

To add a helpful function to your form, you can include a contact email form that would submit an email to Manager with a subject line that starts with "Product Questions."
This would allow Manager to create rules in Outlook to easily sort emails having to do with Gnomedex.
The form posts to itself rather than a separate ACTION page.
This allows for elegant error handling.
For example, if you enter a question but LEAVE OUT your email address and submit it. You'll see an error, but if you look at the form,
you can see that your text is still there.
It didn't vanish when the missing data produced an error.
Obviously, the form is requesting a subject line, so I needed to prepend "Gnomedex Questions" to that string.
Here's the snippet of PHP code that allowed me to do that:

(?php

// Set the from address from the form
$fromaddr = "From: ".trim($emailaddr)."\n";

// Set the to address
$toaddr = "shantanuo@hotmail.com";

// Prepend Product Questions to the submitted subject value
$msgsubject = "Product Questions: " .stripslashes(trim($mysubject));

// Append the user's IP address to the message
$msgbody = stripslashes(trim($mymessage))."\n\nIP: ".$_SERVER["REMOTE_ADDR"];

// Send the email
mail($toaddr, $msgsubject, $msgbody, $fromaddr);

?)

... Link (0 comments) ... Comment


AutoComplete

Internet Explorer 5.0 introduced a feature called AutoComplete. AutoComplete helps users to fill our forms by providing a pick list of previously entered values for similar form names. The Autocomplete feature can be disabled by using the "off" attribute as demonstrated below:
INPUT TYPE= "text" NAME= "uname" AUTOCOMPLETE= "off" >
To take advantage of the Autocomplete functions, make sure that you set the NAME attribute of your form text fields to similar names to those used widely on forms, such as firstname, lastname, address, etc.

... Link (0 comments) ... Comment


PHP Print Magic

PHP Print Magic
You can save the HTML tags and text in a variable like this..
$text1 = "this is text";
print $text1;

But if you want to save multiple lines, use the following code.

$text = <<

The "<<<" convention can also be used to assign blocks to print.
The word END can be replaced by any other letter.

print (three <<<)A
This uses the "here document2" syntax to output
multiple lines with $text interpolation. Note
that the here document terminator must appear on a
line with just a semicolon no extra whitespace!
A;

print (three <<<)A should have no white space before or after A otherwise you will get an error.

... Link (0 comments) ... Comment


PHP Magic

Q. The two tagas <?php and ?> will process the code and send the output to the browser. But what if you need to process the code within PHP?
A. output buffering will come handy for the purpose.
* ob_start("callback"); will store the instructions within the function callback.
* And the callback function will look for the word "apples" within the file testing1.htm and chage it to "oranges".
* ob_end_flush(); will push the new contents to the browser.

?php
function callback($buffer) {
return (ereg_replace("apples", "oranges", $buffer));
}
ob_start("callback");
include "testing1.htm";
ob_end_flush();
?

... Link (0 comments) ... Comment


What is SQL?

I think we can now move on and learn the next BIG thing in the world of Database, called SQL. Structured Query Language is the heart of database.
Unlike excel, it's "multi user" and "relational". Excel sheets and files can not be easily used by more than one person. Exchanging data is really a pain in the neck. Again, its not a relational database. You can link a cell from one sheet to another, but there are a lot of problems you may have to face in the process. You can not add "If.. then" type of logical arguments. SQL database is designed to be a "relational" database where you can easily join or link different tables with one another.
Please do not think that it's unnecessary to learn SQL at this time. If you start learning it now, six months down the line you will be glad that you did!

... Link (0 comments) ... Comment


Online for 7938 days
Last modified: 4/24/24, 9:33 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
May 2024
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
262728293031
April
Recent updates
discretize continuous features You can
"discretize" or "bin" continuous features into categorical features. from sklearn.preprocessing...
by shantanuo (4/24/24, 9:33 AM)
User Defined Property You
can create User Defined Property in libreoffice writer. File – Properties...
by shantanuo (1/9/23, 8:52 AM)
Arranging Chapters in the Navigator
To use a custom paragraph style for a heading, choose...
by shantanuo (1/4/23, 8:26 AM)
Use focus mode using Android
phones Settings > Digital Wellbeing and parental controls. Tap your...
by shantanuo (1/1/23, 3:59 AM)
Embed Fonts in document If
you use a font that the recipient is unlike to...
by shantanuo (12/18/22, 10:07 AM)
Using Navigator in Writer To
open the Navigator, select View > Navigator, or press the...
by shantanuo (12/18/22, 10:06 AM)
More about hyphenation The settings
for Tools > Options > Language Settings > Writing Aids...
by shantanuo (12/18/22, 10:04 AM)
link or unlink template If
you are using Libre office then template changer extension is...
by shantanuo (12/16/22, 5:27 AM)
Finding Styles you can select
Edit > Find and Replace > Other Options > Paragraph...
by shantanuo (12/14/22, 7:17 AM)
regex in clac In LibreOffice
Calc, you can use function REGEX for e.g. Begins with...
by shantanuo (12/14/22, 4:40 AM)
Libre Calc tips Turn Off
Grid Lines If you want to turn off grid lines...
by shantanuo (12/13/22, 8:14 AM)
More about Styles You can
goto View - Styles and change "All Styles" to "Applied...
by shantanuo (12/13/22, 7:49 AM)
Page Break Before Every Chapter
If your chapter titles are using the "Heading 2" Style:...
by shantanuo (12/13/22, 6:36 AM)
View and print in different
color Displaying Color in LO but Printing as White Page...
by shantanuo (12/13/22, 6:26 AM)
Change Normal Template in Libreoffice
Writer 1) Open a new file and set your font;...
by shantanuo (12/12/22, 8:45 AM)
Short english words in Devanagari
The list of short english words written in Devanagari. #...
by shantanuo (10/5/22, 9:05 AM)
Card issuing banks CITI
Standard Chartered HSBC American Express HDFC ICICI AXIS INDUS IND Kotak...
by shantanuo (7/16/22, 4:46 AM)
Activate IAM Access To activate
the Activate IAM Access setting, you must log in to...
by shantanuo (7/12/22, 5:52 AM)
use cheat instead of man
wget https://github.com/cheat/cheat/releases/download/4.2.3/cheat-linux-arm64.gz gunzip cheat-linux-arm64.gz chmod 770 cheat-linux-arm64 ./cheat-linux-arm64 mv cheat-linux-arm64...
by shantanuo (7/4/22, 8:53 AM)
python module itertools list of
useful methods of itertools module. permutations combinations combinations_with_replacement zip_longest count...
by shantanuo (9/8/21, 7:50 AM)
wikipedia tools 1) Collection of
useful utilities https://wikipediatools.appspot.com/ 2) all history of a user https://xtools.wmflabs.org/ec/mr.wikisource.org/Shantanuo...
by shantanuo (8/20/21, 6:36 AM)
Duration/Term of Copyright In the
case of original literary, dramatic, musical and artistic works, the...
by shantanuo (8/20/21, 6:26 AM)
Preserve seeds 6 types of
seeds to be preserved for next season. 1) laal Mula...
by shantanuo (5/7/21, 5:46 AM)
Why do I care for
Linux? I don't care that much for other software. Linux...
by shantanuo (12/17/20, 9:27 AM)
important leafy vegetables 1. Amaranthus
caudatus: rajgira. 2. Amaranthus tricolor: Math.  (Chhoti Chulai- Hindi, Cheera-...
by shantanuo (4/12/20, 2:01 PM)

RSS feed

Made with Antville
Helma Object Publisher