NEWS

Loading...

Nov 10, 2009

XAMPP Apache port change

1. Find httpd.conf file in the folder path C:\xampp\apache\conf\ 

2. Open httpd.conf file in your text editor.

3.Find this line:
Listen 80

change it to:
Listen 8009

4.Save and restart Apache.

http://locahost:8009 would now be your XAMPP default pages.


>Read more!


XAMPP Apache port changeSocialTwist Tell-a-Friend

Nov 9, 2009

Convert html page to .aspx page

step 1. Convert Html page into .aspx. for example you have index.html, open that with dreamweaver and save as index.aspx.

step 2. open ASP.NET web site. put that file into that folder.

step 3. After putting this, right click folder, you will sub menu that menu choose Add New Item. After that the new dialog box will be opend. then choose class file. if you use C#, change that name as index.aspx.cs and finally press OK.

step 4. In that class file, change the following

public partial class _index : System.Web.UI.age
{

}

step 5. Now go to index.aspx, bottom of that page, there will be source, if your press that you will get html
content

step 6. Write the following coding at top of that source

<%@ Page Language="C#" AutoEventWrireUp="true" CodeFile = "~/index.aspx.cs" Inherits="_index" %>

step 7. Finally save that file and close entire web application.

Step 8. Now you can open that web application

Step 9. After openning, press F5, the page will be executed.

The two dots .. instruct the server to move up one directory


>Read more!


Convert html page to .aspx pageSocialTwist Tell-a-Friend

Remove the Label – “This site may harm your computer” : malware

google-serp.jpg




To make users feel safe when they search web, Google continuously working to identify dangerous sites and increase protection for their users. This warning message appears with search results which they identified as sites that may install malicious software on your computer:

Below is the sample SERP displaying the warning message for a website. [I got this screenshot when google affected with this malware


>Read more!


Remove the Label – “This site may harm your computer” : malwareSocialTwist Tell-a-Friend

What are CSS sprites?

css-sprites-lead.png



CSS sprites are a way to reduce the number of HTTP requests made for image resources referenced by your site. Images are combined into one larger image at defined X and Y coorindates. Having assigned this generated image to relevant page elements the background-position CSS property can then be used to shift the visible area to the required component image.

This technique can be very effective for improving site performance, particularly in situations where many small images, such as menu icons, are used. The Yahoo! home page, for example, employs the technique for exactly this


Further Reading

A List Apart published an article entitled CSS Sprites: Image Slicing's Kiss of Death which explains the concepts behind CSS sprites. If you're new to this technique we'd strongly suggest heading over to A List Apart and taking a look.



>Read more!


What are CSS sprites?SocialTwist Tell-a-Friend

Oct 29, 2009

Joomla :How to move Joomla to another directory?

Many web designers prefer to build their websites in test folders and when their development is over to move their Joomla applications to the root folder of their hosting accounts.

For the purpose of this article let us presume that we have a Joomla 1.5 installed in the public_html/test folder in our account and we want to move it to the public_html directory so that it will be directly accessible through www.yourdomain.com.

This change consists of the following steps:

1. Move all of the files and folders from your Joomla folder to the new directory. In our case from public_html/test to public_html

2. Reconfigure your application. You should edit your configuration.php file and make the following changes in it:

Change: var $log_path = '/home/user/public_html/test/logs';
To: var $log_path = '/home/user/public_html/logs';

Change: var $tmp_path = '/home/user/public_html/test/tmp';
To: var $tmp_path = '/home/user/public_html/tmp';

Change: var $ftp_root = '/public_html/test';
To: var $ftp_root = '/public_html';

Change: var $live_site = 'http://www.yourdomain.com/test';
To: var $live_site = 'http://www.yourdomain.com';
 
3. Remove the content of your cache folder (public_html/cache in our case)

Now when you reload your website it should be working flawlessly from its new location.
 


>Read more!


Joomla :How to move Joomla to another directory?SocialTwist Tell-a-Friend

Sep 19, 2009

Target IE6 and IE7

#myelement
{
color: #999;              /* shows in all browsers */
*color: #999;             /* notice the * before the property - shows in IE7 and below */
_color: #999;         /* notice the _ before the property - shows in IE6 and below */
}


>Read more!


Target IE6 and IE7SocialTwist Tell-a-Friend

Sep 17, 2009

Recent css Tricks learned

 

 1. z-index only applies to elements that are given a "position" value

2. margin: auto" will only work when a width is declared for the element.

3. padding adds to the overall width of the element. and cannot contain negative values.

4.CSS Specificity
CSS styles follow an order of specificity and point values to determine when styles override one another or take precedence.


They are like so:

Elements – 1 points
Classes – 10 points
Identifiers – 100 points
Inline Styling – 1000 points
When in doubt, get more specific with your style declarations. You can also use the !important declaration for debugging purposes if needed


>Read more!


Recent css Tricks learnedSocialTwist Tell-a-Friend

Sep 15, 2009

Seven tips to identify a LIAR

1. Consider the person's recall:
 Liars never forget what they have to say but they may stumble when telling a tale by making contradicting statements. They're also eager to change the subject. 

2. Observe the person's overall body language:
Liars can look ill at ease,
fiddling with their hair,
stroking their throat,
or rubbing their eyes.

With their body often turned away from you, you may notice hand or leg fidgeting. Liars also have trouble swallowing and may shake their heads after a point has been made. When the subject finally gets changed, they appear happier and more comfortable, maybe laughing nervously. 

3. Take notice of any defensiveness:
Liars will often take offence to any indication that they're under suspicion. They're likely to throw any accusations you throw at them back at you. They will also talk too much, feeling the need to over-explain themselves. 

4. Home in on facial expressions:
Liars fail to control their micro-expressions. While fibbing, you may notice nervous twitching. Their hand may be covering or touching their face. People also tend to touch the mouth when feeling guilty or anxious. They're particularly good with fake smiles. 

5. Don't overlook the Pinocchio reaction: When a human tells a lie, extra blood gets pumped through the body and the nose swells by a fraction of millimeter. Liars may subsequently touch the tip of their nose unconsciously. 

6. Concentrate on the eyes:
 A liar has a troubled brow and downcast or darting eyes. They have trouble directly engaging your gaze. They also give you eye-accessing clues. If the person is telling you the truth, he'll look up and to the left since that's the side of the brain we use for recalling information. If she's lying, she'll look up and to the right, which is the creative side of the brain, because she's mentally constructing something that hasn't happened

7. Note the person's voice:
The higher the stakes are, the more the liar has a fear of getting caught. With this, the liar has a harder time controlling his body language or her voice. The pitch or rate of the speech may change, with the individual giving a lot of "umms" and "ahhs." Often, a liar will appear stilted and monotone. Answers may seem rehearsed.




>Read more!


Seven tips to identify a LIARSocialTwist Tell-a-Friend

Sep 12, 2009

Browser sniffing or detection : Conditional Css



<!--[if gt IE 6]>
<link rel="stylesheet" type="text/css" href="css/ie7fix.css" media="screen" />

<![endif]-->
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="css/ie6fix.css" media="screen" /> 

<![endif]-->




<script language="Javascript" >

    var useragent = navigator.userAgent;
    var bName = (useragent.indexOf('Firefox') > -1) ? 'Firefox' :
navigator.appName;


    if (bName == "Firefox") 
    {
        
        document.writeln('<style> #nav_bar_t6 {padding-left:33px;
padding-right:33px; } #footer {margin-left:18%}</style>');
    }

    if(navigator.userAgent.indexOf ("Netscape")!=-1)
    {
        
        document.writeln('<style> #nav_bar_t4 {WIDTH:
14.2%;padding-left:2px;} #footer {margin-left:18%}</style>');
    }
    
    if(navigator.userAgent.indexOf ("Opera")!=-1)
    {
        document.writeln('<style> #nav_bar_t6 {padding-left:38px;
padding-right:33px;} #footer {margin-left:18%}</style>');
    }
</script>






>Read more!


Browser sniffing or detection : Conditional CssSocialTwist Tell-a-Friend

Sep 8, 2009

MySQL table and want to build a XML file with it in order to make a RSS feed.

  
  <?php   $dom = new DOMDocument() ; include "connection.php"; $queryz = "SELECT * FROM ticker"; $resultz = mysql_query($queryz) or die('Error, query failed'); $row = mysql_fetch_assoc($resultz); $rss = $dom->createElement('rss'); while($row = mysql_fetch_array( $resultz )) {     $item = $dom->createElement("item");     $item->appendChild($dom->createElement("title", $row['item_title']));     $item->appendChild($dom->createElement("pubDate",$row['item_pubDate']));     $item->appendChild($dom->createElement("description",$row['item_description']));     $item->appendChild($dom->createElement("link",$row['item_link']));     $rss->appendChild($item); } $dom->appendChild($rss); $dom->save("myxml.xml");
  
  
  
  OR
  
<?php header('Content-Type: text/xml; charset=UTF-8');   $dom = new DOMDocument() ;  include "connection.php"; $queryz = "SELECT * FROM ticker"; $resultz = mysql_query($queryz) or die('Error, query failed'); $row = mysql_fetch_assoc($resultz); while($row = mysql_fetch_array( $resultz )) { $tit = $dom->createElement("title", $row['item_title']) ; $pub = $dom->createElement("pubDate",$row['item_pubDate']) ; $des = $dom->createElement("description",$row['item_description']) ; $lnk = $dom->createElement("link",$row['item_link']) ;        $dom->appendChild($tit) ;        $dom->appendChild($pub) ;       $dom->appendChild($des) ;       $dom->appendChild($lnk) ;  }  $dom->save("myxml.xml") ;  ?>


RSS Display
<?php include('rss-feed-reader.php');   $feed = 'http://www.domain.com/feed.xml'; $max_items = 5; $rss = new mod_rss(); $rss->parser($feed, $max_items, true);  ?>


>Read more!


MySQL table and want to build a XML file with it in order to make a RSS feed.SocialTwist Tell-a-Friend

Aug 28, 2009

Javascript variable into php variable

You can do it by setting url variables or session variables.  
one way to do this is to pass the url like this

<SCRIPT LANGUAGE='JavaScript'>
<!-- //
var name="Dave";
var number=100;
document.write('<a href="another_page.php?name='+name+'&number='+number+'">another page</a>');
// -->
</SCRIPT>
from http://www.iwdp.co.uk/pfv/javascript_to_php_PFV.htm

then get the variables using php

<?php $var1 = $_GET['name']; $var2= $_GET['number']; ?>




you can do this via GET, POST, SESSION

You could do this all on the same page if you wanted to by calling a javascript function that sets these variables and then php gets them.


>Read more!


Javascript variable into php variableSocialTwist Tell-a-Friend

Aug 25, 2009

Gaia Flash Framework: Speed up Development for All Flash Sites

gaia-flash-framework.jpg


For all you flash developers out there this is a real treat. Gaia is a flash framework that can speed up development drastically for your all flash sites.
I can't wait to try and use this in on a project. It gives you a simple way to handle the navigation, transitions between pages, preloading and deeplinking. 
Talk about a time saver. That's half a website right there. Oh…did I mention that it also handles SEO. It uses an XHTML file that serves as both the 
data source and the embed page for each page in your site.
 The way the site is structured seems logical, and doesn't seem to get in your way of building a great web site.

Here is a video that walks you through the framework : Gaia Screencast
Here is their website: Gaia Website
Here is the download page: Gaia Download

For those of you that have used this framework before, we would love to here your input on it.


>Read more!


Gaia Flash Framework: Speed up Development for All Flash SitesSocialTwist Tell-a-Friend