// syntex highlighter // syntex highlighter

Author Archive

Freebie: Facebook Fan Page GUI PSD

Posted by Hardik Chauhan On October - 14 - 2011

Today we are glad to release a  freebie: a Facebook Fan Page GUI PSD, designed by Hike and released. The PSD will speed up the process of creating previews, thus sparing you from drawing all the comps and letting you customize all the texts, buttons and data as you need. All layers are vectorized, allowing you to scale up the GUI without loss of quality. The mock-up is 100% pixel-accurate, it has 4 viewing modes (default wall, wireframe wall, default tab, wireframe tab), all layers labeled and grouped. Smart guides are included. The PSD is compatible with Adobe Photoshop CS3+.

With every update Facebook performs to its fan page design, Hike reproduces it 24 hours later and updates its download link with the latest version. The main idea behind this PSD was to provide all designers and agencies with a useful tool that will improvs their daily workflow when it comes to preparing Facebook-related previews for their clients or internal presentations. As usual, the goodie is absolutely free to use in private and commercial projects.

Download the PSD for free!

You can use the freebie for all your projects for free and without any restrictions. Please link to this article if you want to spread the word. You may modify the file as you wish.

official download from the designer’s site (.zip, 2.1 Mb, will be regularly updated)

Features

  • 100% pixel-accurate
  • 4 viewing modes (default wall, wireframe wall, default tab, wireframe tab)
  • Fully vectorized
  • Limitless scaling
  • All layers labeled
  • Smartly grouped
  • Completely editable
  • Includes smart guides
  • CS3+ compatible
  • Always up to date

Previews


Tab wireframe (large preview)


Default wall (large preview)

Wall wireframe (large preview)

Layer Pallett (large preview)

Rockmelt : The Facebook of Web Browsers

Posted by Hardik Chauhan On July - 13 - 2011

A new Web browser, Rockmelt debuts in limited beta Monday and aims to help you keep tabs on your Facebook friends and your favorite sites, and make your Web searches faster. Backed by Netscape founder Marc Andreessen, Rockmelt was first reported on by The New York Times in August 2009. At the time, Rockmelt was supposedly going to be a next-generation Web browser designed to take advantage of new Web applications and services.

A year later, and Rockmelt appears to be nothing more than another social networking-focused browser similar to Flock. Just like Flock, Rockmelt incorporates your social networking activity into browser sidebars so you can stay up to date on your friends’ activities while you browse other parts of the Web. Unlike Flock, however, Rockmelt features a single sign-on profile tied to your Facebook ID that you can carry with you using any computer running Rockmelt. Both browsers are based on Chromium, Google’s open source project that is basically a test ground for Google Chrome.

If you’d like to try out Rockmelt, you can sign up for the limited beta at Rockmelt.com by signing in with your Facebook ID.

I haven’t had a chance to get my hands on Rockmelt yet, but here’s a look at some of the key features of the world’s latest social-focused browser.

All About Facebook

You can use Rockmelt as you would any normal Web browser by just firing it up and surfing the Web. But Rockmelt’s real power is unlocked when you log into the browser using your Facebook ID. This allows the browser to display a list of your Facebook friends in a slim sidebar on the left side of the browser window; feeds from your favorite sites in a sidebar on the right; and stores your browser bookmarks and preferences.

All of this personalized information is saved on Rockmelt’s servers so that you can access it by logging into the Rockmelt browser from any computer. Rockmelt does not, however, save your Web searches or browsing history, according to an interview with Rockmelt co-founders Eric Vishria and Tim Howes by blogger Robert Scoble. The company also says that all of your personal data is stored as an encrypted bundle on its servers to keep it private. It’s not clear if Rockmelt has the ability to decrypt your data, but the company does say they are not interested in your information for the purposes of ad targeting.

It should be noted that in addition to being an investor in Rockmelt, Andreessen also sits on Facebook’s board of directors.

Facebook Friends on the Left

On the left side of your browser window is a thin sidebar that lists the Facebook profile pictures of your “favorite” Facebook friends. It’s not clear how Rockmelt determines which people are your favorite Facebook friends or how you can change that setting.

As you hover over each picture in the left sidebar you see a summary of their latest Facebook activity, such as whether they have an updated status or how many photos they’ve uploaded recently. Clicking on the profile photo opens a small pop-up window where you can see their recent Facebook activity at the top along with a chat area on the bottom for instant messaging.

Your own Facebook profile photo sits at the top of the left-hand column and you can click on it to update your Facebook status from there.

Favorite Sites on the Right

On the other side of your browser window is a second sidebar where you can get feeds from your favorite sites including news sources such as The New York Times or CNN. You can also add other social networking sites such as Twitter and Facebook. Rockmelt didn’t explain what the differences are between the Facebook updates on the left side and right side of the browser. If I had to guess, however, I would say that including Facebook in your right sidebar shows you updates from your newsfeed, while the left sidebar features select updates from your “favorite” Facebook friends.

As each site is updated, an unread count appears next to the site’s icon telling you how many new articles or updates there are. Clicking on a site brings up another pop-up window that shows you a summary of the new stuff you haven’t seen. If you’d like to read further, clicking on the link for each article brings it up in the main browser window.

If you put your Twitter account in the right sidebar, you can click on the Twitter icon to send out an update, reply or retweet a message and access any Twitter lists you subscribe to.

Rockmelt also has a share bookmarklet in the browser toolbar to let you quickly share links with your friends on Facebook and Twitter.

Rockmelt Search

Rockmelt features two search boxes: a regular Chrome-style Omnibox and a special Rockmelt search field. Rockmelt’s search feature is designed to help you get to your Web results faster, and the company said it wanted to make search as “simple as leafing through a magazine.”

Let’s say you were searching for information about flu shots, and the top search results were links to the Center for Disease Control, Wikipedia, and a CNN news item followed by four other site links. Rockmelt would display the results just as you would see them in Google in a drop down menu. You would then see a preview of each site in the main browser window as you scrolled through your results in the drop down menu. So you could preview the content from the CDC, Wikipedia, CNN, and so on until you find what you’re looking for.

If you just want typical Google results then you can use the Omnibox instead of Rockmelt’s dedicated search box.

Rockmelt appears to be an interesting take on integrating social features into your Web browsing and the new search feature could be useful. But Rockmelt has a tough road ahead to gain a foothold in an already crowded browser market that includes Apple’s Safari, Google Chrome, Microsoft Internet Explorer, Mozilla Firefox, Opera, Flock, and many others.

Superb CSS3 Techniques for Better Web-Design

Posted by Hardik Chauhan On January - 29 - 2011

CSS3 is gaining momentum, despite the fact that the standard hasn’t even been finalized.
There are hundreds of tutorials out there to teach designers how to use it, but unfortunately a lot of them cover the same ground.
And some of the tutorials teach designers to do things that they might not think of as useful, though the techniques can usually be adapted to fit a project perfectly.
Below are some of the awesome CSS3 tutorials. Many are strictly CSS and HTML based, while others also incorporate JavaScript.
If you have a favorite technique or tutorial that’s not included below, please share it in the comments!

Using CSS3 For Imageless Illustration

Various new methods in CSS3 allow a number of very complex graphics to be created using pure CSS and no images. Here are a handful of the best examples out there.

Pure CSS iPhone Illustration

A mixture of borders, transforms and gradients to make an animated image of an iPhone.


Our Solar System with CSS3

A slick looking rendition of the solar system with animation effects..


Analog Clock Effect

Create a cool analog clock using only CSS3 and jquery.


Shadow Experiments

This tutorial shows how to use CSS shadows to create a variety of effects, including a Dark Side of the Moon graphic, a shadowed periodic table, and even a psychedelic “love potion”.


Creating Polaroid Style Images with Just CSS

This tutorial uses both CSS2 and CSS3 effects to add Polaroid styling to a simple list of images.


CSS3 Vertical Accordion

Gradients and transitions make this accordion menu that degrades to an ordered list on older browsers.


Awesome Overlays

This tutorial from Zurb shows how to create image overlays using CSS3 border properties that can then be used to display additional information about an image when hovered on.


CSS3 Dropdown Menu

This tutorial from WebDesignerWall shows how to create a cross-browser-compatible CSS3 dropdown menu that also works in browsers that don’t support CSS3 (though with limited styling).

I Hope U will Like this.This is one of my Research. Please use it and enjoy Ur improved graphic design.
If u like this please give ur Feedbacks.
From:- Hardik Chauhan

Useful WordPress Security Tweaks

Posted by Hardik Chauhan On December - 5 - 2010

Security has always been a hot topic. Online, security is important, too, especially for people who make a living from websites and blogs. In this article, we’ll show you some useful tweaks to protect your WordPress-powered blog.

1. Prevent Unnecessary Info From Being Displayed

The problem
When you fail to log into a WordPress blog, the CMS displays some info telling you what went wrong. This is good if you’ve forgotten your password, but it might also be good for people who want to hack your blog. So, why not prevent WordPress from displaying error messages on failed log-ins?

The solution
To remove log-in error messages, simply open your theme’s functions.php file, and paste the following code:

       add_filter('login_errors',create_function('$a', "return null;"));

Save the file, and see for yourself: no more messages are displayed if you fail to log in.

Please note that there are several functions.php files. Be sure to change the one in your wp-content directory.

Code explanation
With this code, we’ve added a simple hook to overwrite the login_errors() function. Because the custom function that we created returns only null, the message displayed will be a blank string.

2. Use .htaccess To Protect The wp-config File

The problem
As a WordPress user, you probably know how important the wp-config.php file is. This file contains all of the information required to access your precious database: username, password, server name and so on. Protecting the wp-config.php file is critical, so how about exploiting the power of Apache to this end?

The solution
The .htaccess file is located at the root your WordPress installation. After creating a back-up of it (it’s such a critical file that we should always have a safe copy), open it up, and paste the following code:

      <files wp-config.php>
      order allow,deny
      deny from all
      </files>

Code explanation
.htaccess files are powerful and one of the best tools to prevent unwanted access to your files. In this code, we have simply created a rule that prevents any access to the wp-admin.php file, thus ensuring that no evil bots can access it.

3. Remove Your WordPress Version Number… Seriously!

The problem
As you may know, WordPress automatically displays the version you are using in the head of your blog files. This is pretty harmless if your blog is always up to date with the latest version (which is certainly what you should be doing anyway). But if for some reason your blog isn’t up to date, WordPress still displays it, and hackers will learn this vital piece of information.

The solution
Paste the following line of code in the functions.php file of your theme. Save it, refresh your blog, and voila: no more WordPress version number in the header.

      remove_action('wp_head', 'wp_generator');

Code explanation
To execute certain actions, WordPress uses a mechanism called “hooks,” which allow you to hook one function to another. The wp_generator function, which displays the WordPress version, is hooked. We can remove this hook and prevent it from executing by using the remove_action() function.

4. Change The Default “Admin” Username

The problem
Brute force is one of the easiest ways to break a password. The method is simple: try as many different passwords as possible until the right one is found. Users of the brute force method use dictionaries, which give them a lot of password combinations.

But knowing your username certainly makes it easier for them to guess the right combination. This is why you should always change the default “admin” username to something harder to guess.

Note that WordPress 3.0 let you choose your desired username by default. Therefore, this tip is still usefull if you still use the old “admin” account from older WordPress versions.

The solution
If you haven’t changed the “admin” username yet, simply run the following SQL query to your database to change it for good. Don’t forget to specify your desired username.

      UPDATE wp_users SET user_login = 'Your New Username' WHERE user_login = 'Admin';

Code explanation
Usernames are stored in the database. To change one, a simple UPDATE query is enough. Note that this query will not transfer posts written by “admin” to your new username; the source post below shows you how to easily do that.

Flash-Based Galleries For Your Website

Posted by Hardik Chauhan On October - 2 - 2010


If you’d like to present some multimedia-content, particularly images, Flash can often be a feasible solution, with flexible image management for web designers and impressive visual presentation for users. Used moderately, Flash-based galleries can give the presentation a fresh spark and create a rich visual experience you might want to offer your visitors.

In this post I present some of the free, attractive and flexible Flash-based galleries you can use to present your images more effectively. You might find some useful references to further galleries in our article 30 Best Solutions For Image Galleries, Slideshows and Lightboxes.

Flash-based Galleries: An Overview

Polaroid Gallery offers a quite unusual way of presenting a bunch of photos online. The script loads images and image titles dynamically from an external XML file. Then the script processes the data and creates an interactive flash gallery in which all images are presented as Polaroid-photos.

The images are kind of thrown on the the table randomly and create a beautiful mess — the idea resembles BumpTop, physics-driven 3D-desktop with draggable folders and files. You can move the polaroids around with the mouse, and you can double click a Polaroid picture to zoom in.

To use the gallery you simply need to define your images and your galleries by modifying the XML-file accordingly. You can also define the legend to describe the content of the images. Besides, you can specify your Flickr ID and the gallery will automatically load the latest pictures from your Flickr RSS-feed. The loaded pictures are automatically scaled, centred and smoothed.

The script is free and open-source, and the .zip-package includes a .fla-file you can modify to improve the script. To ensure an optimal presentation your images should have a square format; otherwise the Polaroids don’t look particularly pretty.

Carousel is another interesting approach for showcasing images. The script reads the data from a HTML- or XML-file and displays the images in a circle. Similar to iPhone, visitors can browse through the gallery sliding the mouse along the screen; alternatively also the keyboard can be used.

You can define an automatic rotation of the images (max rotation set to 90°/sec counterclockwise). New modified versions are coming soon – as well as a detailed documentation on how the XML-files should be structured.

Useful CSS/jQuery Coding Technique For More Dynamic Websites

Posted by Hardik Chauhan On September - 25 - 2010

Interactivity can transform a dull static website into a dynamic tool that not only delights users but conveys information more effectively. In this post, I’ll tell you a coding technique that can be easily implemented on any website to provide a richer user experience.The techniques will allow you to better display difficult content, help users find information more effectively and provide meaningful UI cues without overwhelming the user.
The main technique is :

On-Page Text Search :

Websites often have search boxes to allow users to find content from their archives. But what if you want to find content on the given page? Information Architects has had on-page text search that provides a great user experience. Let’s recreate this using jQuery.

First let’s build an input box for the search:

Mark-Up and Interaction

First let’s build an input box for the search:

$(function() {
$(‘#text-search’).bind(‘keyup change’, function(ev) {
// pull in the new value
var searchTerm = $(this).val();
)};
});

Here we bound our function to both the keyup and change events. This ensures that our operation fires regardless of whether the user types or pastes the text.

Now, let’s turn to Highlight, a useful and lightweight jQuery plug-in that handles text highlighting. After including the plug-in source, let’s add a highlight() call to our JavaScript:

$(function() {
    $('#text-search').bind('keyup change', function(ev) {
        // pull in the new value
        var searchTerm = $(this).val();

        // disable highlighting if empty
        if ( searchTerm ) {
            // highlight the new term
            $('body').highlight( searchTerm );
        }
    });
});

In addition to highlighting the given text, we’ve also added a check to make sure the search term isn’t empty (which causes an infinite loop).

This snippet highlights the search query throughout the page, but we can also limit the scope to a given id:

$('#myId').highlight( searchTerm );

Or we can search only within a certain element:

$('p').highlight( searchTerm );

This text highlighting by default is case insensitive. If you’d prefer case-sensitive highlighting, remove the .toUpperCase() on both lines above of the Highlight plug-in.

Styling the Highlighted Text

Now that the JavaScript is attached, we’ll need to style our highlighted items. The Highlight plug-in wraps the highlighted terms in <span></span>, which we can style with CSS.

First, let’s change the background color and then add rounded corners and a drop-shadow for all browsers except IE:

.highlight {
    background-color: #fff34d;
    -moz-border-radius: 5px; /* FF1+ */
    -webkit-border-radius: 5px; /* Saf3-4 */
    border-radius: 5px; /* Opera 10.5, IE 9, Saf5, Chrome */
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); /* FF3.5+ */
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); /* Saf3.0+, Chrome */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); /* Opera 10.5+, IE 9.0 */
}

Although the highlighting is now visible, it still appears a bit tight around the text and could use some padding. But we’ll have to be careful not to adjust the layout of text. These spans are inline elements, and if we simply add padding, the text will shift around on the page. So, let’s include padding with a negative margin to compensate:

.highlight {
    padding:1px 4px;
    margin:0 -4px;
}

Finishing the Interaction

Last but not least, let’s make sure to remove the highlighted text whenever the user edits text in the input box

$(function() {
    $('#text-search').bind('keyup change', function(ev) {
        // pull in the new value
        var searchTerm = $(this).val();

        // remove any old highlighted terms
        $('body').removeHighlight();

        // disable highlighting if empty
        if ( searchTerm ) {
            // highlight the new term
            $('body').highlight( searchTerm );
        }
    });
});

Here we added a call to remove any text highlighting, which is performed outside of the empty field check. This ensures that the highlight is also removed if the user clears the field.

Although removeHighlight() works well in most browsers, it will crash IE6. This is due to an IE6 bug with node.normalize().

We can get the Highlight plug-in working in IE6 by rewriting this function. Simply replace lines 45-53 of highlight.js with the following:

jQuery.fn.removeHighlight = function() {
 function newNormalize(node) {
    for (var i = 0, children = node.childNodes, nodeCount = children.length;
                                                         i < nodeCount; i++)
        {
        var child = children[i];
        if (child.nodeType == 1) {
            newNormalize(child);
            continue;
        }
        if (child.nodeType != 3) { continue; }
        var next = child.nextSibling;
        if (next == null || next.nodeType != 3) { continue; }
        var combined_text = child.nodeValue + next.nodeValue;
        new_node = node.ownerDocument.createTextNode(combined_text);
        node.insertBefore(new_node, child);
        node.removeChild(child);
        node.removeChild(next);
        i--;
        nodeCount--;
    }
 }

 return this.find("span.highlight").each(function() {
    var thisParent = this.parentNode;
    thisParent.replaceChild(this.firstChild, this);
    newNormalize(thisParent);
 }).end();
};

This new function replaces the standard Javascript normalize() with a custom function that works in all browsers.

Create CSS3 Navigations For your Web-site Project

Posted by Hardik Chauhan On September - 14 - 2010

CSS3 Menu is a free application for creating navigations using the CSS3 properties and no JavaScript.?
It contains both Windows + Mac versions and it is possible to set the styles of the outputs easily.

CSS3 is changing how we build websites. Even though many of us are still reluctant to start using CSS3 due to the lack of support in some browsers, there are those out there that are moving forward and doing some amazing stuff with its cool new features. No longer will we have to rely on so much JavaScript and images to create nice looking website elements such as buttons and menu navigations.

You can build a cool rounded navigation menu, with no images and no Javascript, and effectively make use of the new CSS3 properties border-radius and animation. This menu works perfectly well with Firefox, Opera, Chrome and Safari. The dropdown also works on non-CSS3 compitable browsers such as IE7+, but the rounded corners and shadow will not be rendered. CSS3 transitions could one day replace all the fancy jQuery animation tricks people use.

Overview

CSS3 is changing how we build websites. Even though many of us are still reluctant to start using CSS3 due to the lack of support in some browsers, there are those out there that are moving forward and doing some amazing stuff with its cool new features. No longer will we have to rely on so much JavaScript and images to create nice looking website elements such as buttons and menu navigations.

You can build a cool rounded navigation menu, with no images and no Javascript, and effectively make use of the new CSS3 properties border-radius and animation. This menu works perfectly well with Firefox, Opera, Chrome and Safari. The dropdown also works on non-CSS3 compitable browsers such as IE7+, but the rounded corners and shadow will not be rendered. CSS3 transitions could one day replace all the fancy jQuery animation tricks people use.

Web- Sites :-http://www.css3menu.com/

Demo-Link:- http://www.thecssninja.com/css/css-tree-menu

Designing A Facebook Fan Page: Showcases, Tutorials, Resources

Posted by Hardik Chauhan On September - 3 - 2010

Despite its privacy issues, Facebook clearly has a key role in global Internet activity. It has become a kind of universal social network, being used for both personal and business needs. For many individuals, companies and organizations, Facebook has become an integral part of their branding strategy and promotional campaigns.
Facebook provides many tools for maximizing the effect of your presence on the social network, most of all by means of business pages, also known as fan pages. Using a variety of applications and Facebook API tools, one can get creative not only with the page content, but with the design, too.

In this post, we

Online All Languages Compiler(IDE)

Posted by Hardik Chauhan On August - 25 - 2010

What is ideone?

Ideone is something more than a pastebin; it

Increase your adsense earning

Posted by Hardik Chauhan On August - 21 - 2010

I am here posting a new technique through which you can earn more money simply using your adsense account. It is called Adsense Revenue Sharing program. The best thing is you don’t need a website or blog for this.

What is Adsense Revenue Sharing Program

This method is particularly useful for those people who dont have a running blog so couldn’t get much through adsense.This method is called Adsense Revenue Sharing program.

Have already heard anything about Revenue Sharing Sites?

Revenue Sharing Sites are sites which place ads (particularly from adsense) of its members throughout its website. The site ads and the member

Top 15 SQL Injection Scanners

Posted by Hardik Chauhan On August - 10 - 2010

If you are not aware of SQL Injection Attack and How it works you need to read my previous article

A Complete Guide To Tumblr(Micro-Blogging)

Posted by Hardik Chauhan On July - 29 - 2010

Think of Tumblr as micro-blogging on steroids (technically, it

HOT LINKS

About Me

There is something about me..

Twitter

    Join Us. . .