Monday, 4 July 2011

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

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

Wednesday, 29 June 2011

Create a MySQL User Account via the Terminal

First, Login to MySQL as an administrator account with:

mysql -u root -p

You will be prompted for your root password before being granted access to the MySQL

Now to check available user accounts on the system. type this command:

SELECT USER,host FROM mysql.USER;

If the user account that you wish to create doesn’t appear in that list
To create a new user account type this command:

CREATE USER 'new-username'@'localhost' IDENTIFIED BY 'password-for-new-account';

this user isn’t linked to any databases yet, but this is simple to rectify with a:

GRANT ALL ON mydatabase.* TO useraccount@localhost

that will grant all rights for the user account to everything held in the mydatabase database.