Tuesday, 25 September 2012

jQuery book animation effect

1. Flip



The jFlip plugin






FlipPage







jQuery Booklet







jPageFlip






Amazing jQuery Notebook Page Flip Animation







turn.js (paid version is only good)





Sunday, 18 March 2012

troubleshooting phpmyadmin / LAMP Server

If on new installation of server, you are unable to see phpmyadmin page properly or receive 404 error. than just do following.

Go to System > Administration > Synaptic Package Manager on you task-bar of your system. This will open a toolbar window.

Now, Search for phpmyadmin on top of that window. Now right click and select mark for installation to phpmyadmin from search results.

Now last thing is to click on apply on top of that window. after that just it will ask to download packages and follow instructions to select passwords and auto-configure server and its done.

Now you can have fun drawing your ideas on your personal web-server.

Troubleshooting Apache / LAMP Server

If you get this error: or you are unable to see http://localhost/ in your browser properly

sudo nano /etc/apache2/conf.d/fqdn
or
gksu "gedit /etc/apache2/conf.d/fqdn"

then add below line to file and save it and close the file.
ServerName localhost

This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

Now have fun because its done

Please say thanks. Bcz i really mean it.

Sunday, 4 March 2012

all css hacks

I am not going to use your lots of time. css hacks as below as per browser you can see results on this page by browsing this page on diffrent browsers:

stylesheet below is editable, but not in ie less than IE9
Text color in this box will change according to your browser you are using


Hack for IE6 only:
* html .color {color: red;}


Hack for IE7 only:
*:first-child+html .color {color: green;}


You can also use IE7 specific hack like below:

@media \0screen { .color {color: #blue; }



Text color in this box will change according to your browser you are using

hack for upto IE9 version
.color {color: #orange\9;}


saf3+, chrome1+
@media screen and (-webkit-min-device-pixel-ratio:0) { #color { color: red } }



/* iPhone / mobile webkit */
@media screen and (max-device-width: 480px) { #veintiseis { color: red } }



Sunday, 20 November 2011

Move Window Buttons Back to the Right in Ubuntu

One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window buttons on the left side. We’ll show you how to move the buttons back to the right.

Before

While the change may or may not persist through to the April 29 release of Ubuntu 10.04, in the beta version the maximize, minimize, and close buttons appear in the top left of a window.


How to move the window buttons

Sunday, 7 August 2011

introduction jquery basic beginners

Introduction

jQuery is one of the many framework provided online to help developers to minimize the time needed to write advance coding. It provides many useful feature to help developers to overcome cross browser issues. Best of all, it is extremely light-weight for optimization! jQuery has a large community and available plugin for different purposes. What jQuery can do for you? Powerful stuff! Check out their plugin made by other developers all over the world!
Since i am also new to jQuery, i believe there will always be new comer entering new technology and feature. So here i am writing this article to introduce some of the basic i learn in jQuery and hope it will help others too. Please bear in mind before we start, jQuery selection will always return you a set of jQuery object which you can use to do a chain operation(chaining is the powerful part of jQuery).


Element Manipulation

Saturday, 23 July 2011

Ethernet not working on ubuntu

No matter which pc or laptop you are running. If you are having problem of ehternet, bluetooth or wireless connection with your pc. Than you are in right place for 100% sure solution.

Just download the latest package from link below and save it to the desktop :

http://linuxwireless.org/download/compat-wireless-2.6/

Now, to compile and install the driver Run these commands in Terminal.


sudo apt-get update
sudo apt-get install build-essential
cd ~/Desktop
tar -xjvf compat-wireless-2.6.tar.bz2
cd compat-wireless*
scripts/driver-select atl1c
make
sudo make install

Now reboot you pc or laptop, Hopefully your ethernet will work automatically when you get in connect with wired network. If not, than run this command from terminal.

sudo modprobe atl1c

Sunday, 17 July 2011

How to disable ubuntu splash screen

I like to see the boot logs of ubuntu like the old style rather a slick splash screen at the boot time.

It is done with just two steps mentioned below

#sudo gedit /etc/default/grub


Find the line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” and make it look like
GRUB_CMDLINE_LINUX_DEFAULT=”", then save the file

Now, run

run #sudo update-grub

Thanks for visiting

cover background automatically


just give this style to your component to give a background that will cover background automatically.

{
background: url(images/bg.jpg) no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
}

Using Max & Min width in IE6

Min & Max width are both great tools to have in your design arsenal, but unfortunately they don’t work in IE6, so what do we do?
We usually lock down the width of our site instead of creating the ideal fluid layout we want, sacrificing user experience for
out of date browsers.

Luckily, we can use a short JavaScript command targetting IE to accomplish a nice fluid layout with max & min widths in IE6:

#page-wrap
{
min-width:800px;
max-width:1000px;
width:expression(document.body.clientWidth < 800? "800px" : document.body.clientWidth > 1000? "1000px" : "auto");
}


In the above example, you can see that the smallest width for this page is 800px, and the largest is 1000px; not much of a flex,
but the concept can be applied to any element.

And if you only wanted to use min-width:

#page-wrap
{
min-width:800px;
width:expression(document.body.clientWidth < 800? "800px": "auto" );
}

adn also can try this-one


.with_minheight {
  min-height:550px;
  height:auto !important;
  height:550px;
}

Move window buttons on the left side to the Right

controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window buttons on the left side. We’ll show you how to move the buttons back to the right.

How to move the window buttons

We’ll use the graphical program gconf-editor to change this configuration file.

Open terminal by pressing ctrl+Alt+T and run this command

gconf-editor

The configuration editor will popup

Monday, 11 July 2011

form coding tests

<?xml encoding="utf8" version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <style type="text/css">
    .focus_text {
      color:#aaaaaa;
    }
  </style>
  <script language="javascript1.2" type="text/javascript" src="js/jquery.js"></script>
  <script language="javascript1.2" type="text/javascript">
    $(document).ready(function () {
      $('.focus_text').focus(function() {
        if ($(this).val() == $(this).attr('title')) {
          $(this).val('');
      $(this).css({color:'#000000'});
        }
      });

use this for creating sliding tabbed pages

use this for creating sliding tabbed pages



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <script type="text/javascript" src="jquery.js" language="javascript1.2"></script>
  <script language="javascript1.2" type="text/javascript">
    function slideTo(trgt, mLeft) {
      $(trgt).parent().find('.active_tab').removeClass('active_tab');
      $(trgt).addClass('active_tab');

      $('#divTabbedSlider').animate({'margin-left':mLeft}, 500);
    }
  </script>

Sunday, 10 July 2011

Use Any Font in HTML with better control


Step 1: Download Cufón

Cufon homepage
Visit Cufón’s website and right-click on the “Download” button at the top. Choose “Save-As” and place it on your desktop.

Step 2: Convert a Font

Choose A Font
In order to function, we need to use the font converter utility on the website. Alternatively, you may download the source code and convert your fonts locally. For the purposes of demonstration, I’ve chosen to use an obnoxious font: “Jokerman”. Note – Windows users: you may have to copy the font from your “FONT” folder to the desktop for this to work.

Monday, 4 July 2011

open rar archive files under Linux / UNIX

RAR files are in compressed archive format, if you have downloaded rar files from the Internet, you need to unpack or unrar them (extract rar files).
By default unrar is not part of Linux, FreeBSD or UNIX OSes. You can install unrar command with the help of apt-get or yum command.
See below for:

Install unrar command

Under Debian Linux, you need to type apt-get as follows to install unrar program:

apt-get install unrar

If you are using Fedora core Linux then use yum command as follows (see discussion below):

Import Script, Import CSS, Import PHP

JavaScript:

<script
   type='text/javascript'
   src='directory/file.js'>
</script>
CSS:
<style type='text/css'  media='all'>
   @import 'directory/file.css';
</style>

Icon:

<link
   rel='Shortcut Icon'
   href='directory/file.ico'
   type='image/x-icon'>

PHP:

<?php @ require_once ('directory/file.html'); ?>

For the PHP import, by placing the @ symbol before require_once suppresses any error messages that might be generated in the included PHP file.

JSP:

<%@ include file='jspfile.jspi' %>

And, well, I guess the list can go on and on. You can use Struts Tiles to include other JSP snippets. I am sure that other languages and frameworks have the same functionality.

Sunday, 3 July 2011

record internet radio using vlc

VLC is open source programme, now using for recording a internet radio.

First open a empty text file in terminal

sudo gedit recordint.sh

Now copy and paste the following lines

replace photoshop keyboard shortcuts with gimp

To get keyboard shortcuts in The Gimp that resemble shortcut keys in Photoshop, Create an empty file on desktop and paste the following code in it and same it as "menurc".


After saving file as "menurc". now re-place this file with file named menurc in or whatever version of Gimp you installed.

/home/USERNAME/.gimp-2.7