Showing posts with label Tip - Tricks. Show all posts
Showing posts with label Tip - Tricks. Show all posts

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

Sunday, 17 July 2011

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;
}

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

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):

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

Thursday, 30 June 2011

best things to do in Ubuntu 11.04 Natty

Posted in Linux distributions - Ubuntu. The final release of Ubuntu Natty Narwhal is out. After you actually get done with the installation, there would likely exist a heap of things you still need to take care of. This post will share some interesting insight and ideas about what you can and should do after a successful installation.

u9
If you have already a previous release of Ubuntu installed and you want to upgrade, then follow our step by step guide to upgrade to ubuntu 11.04 Natty Narwhal

Saturday, 25 June 2011

HOW TO FIX "The requested URL /phpMyAdmin was not found on this server."

If you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:

sudo dpkg-reconfigure -plow phpmyadmin

Then select Apache 2 for the webserver you wish to configure.

If this does not work, then you can do the following to include the phpMyadmin-shipped Apache configuration into Apache:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

Friday, 24 June 2011

solution “Could not reliably determine the server’s fully qualified domain name, using … for ServerName”

To fix that problem, you need to edit the httpd.conf file.
Open the terminal and type this command:

$ sudo gedit /etc/apache2/httpd.conf

httpd.conf file will be blank. Now, simply add the following line to the file.

ServerName localhost

Save the file and exit from gEdit.
Finally restart the server.

$ sudo /etc/init.d/apache2 restart

Monday, 20 June 2011

Detect browser with javascript

I am using this code to change padding in 'li' of menu of the page. You can change code easily to to do tasks according to detected browser.

Just copy and embed this code in script tag of html of your page.

//A. Target Safari

if( $.browser.safari ) $("#menu li a").css("padding", "1em 1.2em" );

//B. Target anything above IE6

if ($.browser.msie && $.browser.version > 6 ) $("#menu li a").css("padding", "1em 1.8em" );

create keyboard shortcut

Process Viewer
Ubuntu newbie? Wondering where is something like Windows XP task manager in Ubuntu? See below how to assign Ctrl + Alt + Del keyboard combination for Gnome System Monitor! It makes it possible to see list of running processes, cpu/memory utilization and related stuff by pressing Ctrl + Alt + Del.

1. First of all make sure Gnome System Monitor is installed in your system, open Terminal and type the following command:

type gnome-system-monitor

You will see the following output in case of success:

gnome-system-monitor is hashed (/usr/bin/gnome-system-monitor)

Thursday, 16 June 2011

create Shapes with css3


Css shown below is editable

Square

Rectangle

Circle

Friday, 10 June 2011

jQuery animate() function (Css)


jQuery animate() function is very powerful API to manipulate html elements and add animation functionality. The use of animate function is very simple. First lets check the syntax of this function.


.animate( properties, [ duration ], [ easing ], [ callback ] )
  • properties: A map of CSS properties that the animation will move toward.
  • duration: A string or number determining how long the animation will run.
  • easing: A string indicating which easing function to use for the transition.
  • callback: A function to call once the animation is complete.
.animate( properties, options )

Monday, 23 May 2011

How to Choose an Open Source Library

Having a lot of open source to choose from is definitely a good thing. However, the downside is that you have to do some actual work to figure out which is best for your project. So here's are some rules of thumb on how to quickly evaluate and pick an open source library. Specific emphasis on "library" since our intent is to incorporate it into our own work as opposed to simple usage.

  1. Usage - Google's PageRank algortithm ranks web pages based on the quantity and quality of other web pages linking to it. It's similar to the rule of thumb of looking at citations to discern the quality of an academic paper. In similar spirit an open source library's quality can be discerned from the number and quality of other open and closed source projects that use it. For example, the Hibernate project has a ton of projects that not only use it but provide tools to support it.
  2. Extensibility - An essential quality of most popular projects is the presence of a well defined mechanism for extension. Look for this in the library your are evaluating, the lack of this quality can put you in a bind that's extremely difficult to extricate oneself from. For example, Eclipse and JEdit have well defined plugin architectures that make it workable for multiple contributors to enhance the platform without stepping on one another.

Thursday, 19 May 2011

Open .rar files using Archive Manager in Ubuntu

The “Archive Manager” that is built into Ubuntu to handle archive formats has no native support for the .rar format.

Try opening a .rar file with the Archive Manager and you got an error.


Saturday, 14 May 2011

chrome seprate profile in ubuntu

If you want to do browsing but don't want another family member to make your use logout from websites so they can login, than definitely you need a separate profile so you don't have to re-login every time.

You have to Just -

1. Add a new chrome link to panel, because we are going to modify it.

2. Now, right-click on that icon and select property option and you will get this type of window.


Chrome Spy mode (incognito mode) for safe browsing in ubuntu

For safe browsing in Chrome there is a special mode called "incognito mode", just like Firefox you can do private browsing.

Here i will explain you how to do this in ubuntu

To do safe browsing for just of few time use can use "New incognito window". to do so you have to click on ranch on the right side of chrome, than click on new incognito window that will open an other tab. Everything you do in incognito mode nothing will be saved except bookmarks.

If you want to do internet surfing mostly but in incognito mode that you should create a special link on your desktop or panel.