How to Stay Awake in Boring Meetings


Do you keep falling asleep in meetings and seminars?
What about those long and boring conference calls?
Here's a way to change all of that...

1. Before (or during) the next meeting, seminar, or conference call, prepare yourself by drawing a square. I find that 5" x 5" is a good size. Divide the card into columns-five across and five down. That will give you 25 one-inch blocks.

2. Write one of the following words/phrases in each block:
Synergy, strategic fit, core competencies, best practice, bottom line, revisit, expeditious, to tell you the truth (or "the truth is), 24/7, out of the loop, benchmark, value-added, proactive, win-win, think outside the box, fast track, result-driven, knowledge base, at the end of the day, touch base, mindset, client focus(ed), paradigm, game plan, leverage.

3. Now check off the appropriate block when you hear one of those words/phrases.

4. When you get five blocks horizontally, vertically, or diagonally stand up and shout "BULLSHIT!"

Read more


Mozilla Seabird

Mozilla Seabird, the new concept phone by the Mozilla Labs' Concept Series, is a  brilliant and an extraordinary concept for a mobile device. This concept is designed by Billy May as a response to the open call by the Mozilla for an "Open Web Concept Phone".

This is completely a fictional device which shows the possibility of future changes that happens to the mobile world. Mozilla has no plans to build or test it but they just want to bring out the crazy ideas out of their community users.

This is a brilliant concept which explores the future advances in the user interaction and the mobile content.

Read more


Under Construction Template for websites

At some point of time every website is in a phase of construction or maintenance  and it leaves a bad impression on users if its shows a blank page or gives a 404 error. So, whenever your site is being revamped you need to tell yours users that your website is under construction.

Below are some of the templates you can use for showing that your site is under construction and telling them to visit again later.












Read more


Defining Arrays in PHP

The simplest was to define an array variable is the array() function. Here's how:

<?php
// define an array
$position = array('first', 'second', 'third');
?>

The rules for choosing an array variable name are the same as those for any other PHP variable: it must begin with a letter or underscore, and can optionally be followed by more letters, numbers and underscores.
Alternatively, you can define an array by specifying values for each element in the index notation, like this:

<?php
// this is the same as the previous array
$position[0] = 'first';
$position[1] = 'second';
$position[2] = 'third';
?>

If you're someone who prefers to use keys rather than default numeric indices, you might prefer the following example:

<?php
// define an array
$numbers['one'] = 1;
$numbers['two'] = 2;
$numbers['three'] = 3;

// or is can also be defined as
$numbers = array('one' => 1, 'two' => 2, 'three' => 3);
?>

You can add elements to the array in a similar manner. For example, if you wanted to add the element 'four' to the $numbers array, you would use something like this:

<?php
// add an element to an array
$numbers['four'] = 4;
?>

In order to modify an element of an array, simply assign a new value to the corresponding scalar variable. If you wanted to replace 'third' with 'last', you'd use:

<?php
// modify an array
$position[2] = 'last';
?>

You can do the same using keys. The following statement modifies the element with the key 'three' to a different value:

<?php
// modify an array
$numbers['three'] = 4;
?>

Read more


Display Html Tags

We can’t display html tags as it is to get displayed in the browser. Say for example you want to give html code to your visitor to place a link in their web site, pointing to your site. To display html tags in html format we have to use different ways. Browser will not display any thing within less than and greater than symbols. Browser will not display < character as it is. To display symbol < we have to write &lt; , same way to display greater than character > we have to use &gt; . Use the following for displaying the symbols.


<
>
&

"
®
©
&lt;
&gt;
&amp;
&nbsp;
&quot;
&reg;
&copy;
less than
greater than
ampersand
non breaking space
double quote
registered trade mark
copyright

To display the following html code on the browser use the code given below.

Preview
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">
</style>

<script type="text/javascript">
</script>

</head>
<body>

<div></div>

</body>
</html>


Code
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD html 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;

&lt;style type="text/css"&gt;
&lt;/style&gt;

&lt;script type="text/javascript"&gt;
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

&lt;div&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;

Read more


How to use Google Calculator

You can use the Google search for a number of ways and calculator is one of them.
Search any mathematical expression like 23+110 using Google, instead of searching for it in the web it displays the calculated value. Below are the some of the mathematical operators, functions with examples that you can use for calculating in Google.

Addition : 13 + 8

Subtraction : 43 - 22

Multiplication : 12 * 4

Division : 30 / 5

Modulo (remainder after division) : 14 % 3

Exponential : 4 ^ 3

Square root: sqrt(16)

Trigonometric values : sin(pi/4), sin(45 degrees)

Logarithm : base e - ln(100)
                    base 10 - log(100)

Factorial : 5!

Read more


To Get And Show The IP Address

Before we see how to display the IP Address let us learn little bit about IP Address. Whenever you are connected to internet you are assigned an IP address. This distinguishes your computer from other computers on the internet. Your IP Address can be static or dynamic. The following code can be used to get and show the IP Address on the webpage.


Javascript

var ip= '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP Address is :"+ip+" ");


ASP

request.ServerVariables("REMOTE_ADDR")


PHP

<?
$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";
?>

Read more

About This Blog

This is a place where I write about the things I find interesting and are worth to share.