Showing posts with label web development. Show all posts
Showing posts with label web development. Show all posts

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, 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

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.