Privilege granting extension for nautilus using gksu
The gksu extension for nautilus allows you to open files with administration privileges using the context menu when browsing your files with nautilus.
Reboot computer after installing nautilus-gksu
Open your home folder.
Right click on any folder and click Open as administrator.
You will enter root user.
On the left pane you will see root home.
Custom Cursor CSS
SEE DEMO
Copy this css code to your html page.
body {cursor: url(https://lh5.googleusercontent.com/-u1rSVKP3Vpc/UAEqLZnKv0I/AAAAAAAABCQ/3alnkvGlnlQ/s32/cursor.png), url(https://lh5.googleusercontent.com/-u1rSVKP3Vpc/UAEqLZnKv0I/AAAAAAAABCQ/3alnkvGlnlQ/s32/cursor.png), auto; }
body {cursor: url(https://lh5.googleusercontent.com/-u1rSVKP3Vpc/UAEqLZnKv0I/AAAAAAAABCQ/3alnkvGlnlQ/s32/cursor.png), url(https://lh5.googleusercontent.com/-u1rSVKP3Vpc/UAEqLZnKv0I/AAAAAAAABCQ/3alnkvGlnlQ/s32/cursor.png), auto;}
How to add a header image to Blogger Dynamic Views
You must have seen some blogs like mine and Blogger Buzz which have a header image like this. These header images make the blog attractive. Do you want to add a header image to your blog like this ? Then you are in the right place. It is very easy to do this in your blog. You only need to add few codes to your Blogger Template.
Note :- You must have enabled a Dynamic views Template on your blog to use this feature.
... [READ MORE]Can’t Boot Ubuntu after installing Nvidia Driver.
A lot of people has trouble booting in to Ubuntu after installation of Nvidia Driver.
Finally I had found a solution to this problem.
On the boot menu Click
Ubuntu Recovery Mode
You will see a Blue Screen . On the options scroll down and click on failsafex
You will now see a small dialog box. Click on OK Button.
Press OK two or three times more.
You will now boot into your Ubuntu OS.
Connect to the internet.
Open Hardware Drivers and install(activate) a recommended Nvidia Driver.
How to see transit of Venus using Stellarium in Ubuntu
<p>
<b>To view in Ubuntu </b><br />Go to<br /><span style="color: blue;"><b>Applications –> Ubuntu Software Center –></b></span><br />and search for <b>Stellarium </b>and click install button<br />Then do the steps as shown below</div>
<div style="margin-bottom: 0cm;">
<b>Steps</b>
</div>
<div style="margin-bottom: 0cm;">
*****
</div>
<div style="margin-bottom: 0cm;">
<b><span style="color: blue;">Applications—>Science—->Stellarium</span></b>
</div>
<div style="margin-bottom: 0cm;">
</div>
<div style="margin-bottom: 0cm;">
in tool bar select <b><span style="color: blue;">location window</span></b> , then select country name the location u need
</div>
<div style="margin-bottom: 0cm;">
here we type India country name and location kunnamkulam
</div>
<div style="margin-bottom: 0cm;">
———————————————————————————————————
</div>
<div style="margin-bottom: 0cm;">
in tool bar select<span style="color: blue;"> <b>Search window</b></span>
</div>
<div style="margin-bottom: 0cm;">
<span style="color: blue;">find objec</span>t position
</div>
<div style="margin-bottom: 0cm;">
in here we type <b>venus </b>on the search box
</div>
<div style="margin-bottom: 0cm;">
by scrolling mouse you can zoom the selected object
</div>
<div style="margin-bottom: 0cm;">
———————————————————————————————————-
</div>
<div style="margin-bottom: 0cm;">
in tool bar select <b><span style="color: blue;">Date And Time</span></b>
</div>
<div style="margin-bottom: 0cm;">
adjust the date <b>2012/6/6 </b>and time <b>1:00:00</b>
</div>
<div style="margin-bottom: 0cm;">
in status bar selec<span style="color: blue;">t <b>inceasing and decreasing the time</b></span>
</div>
<div style="margin-bottom: 0cm;">
using the keyes <b>L</b> and<b> J </b>on key- board
</div>
<div style="margin-bottom: 0cm;">
The transit also between the time <b>6:00 to 10:15 in kunnamkulam</b><br /><b><br /></b>
</div>
<div style="margin-bottom: 0cm;">
</div></div>
... [READ MORE]
Hide or show a div using data sent to a php file
<blockquote class="tr_bq">
<p>
<b><style type="text/css"></b><b><span style="font-family: Times, 'Times New Roman', serif;">#<?php echo $_GET[‘div’]; ?>{</span></b><b><span style="font-family: Times, 'Times New Roman', serif;"><span style="color: red;">display:none;</span></span></b><b><span style="font-family: Times, 'Times New Roman', serif;">}</span></b><b><span style="font-family: Times, 'Times New Roman', serif;"></style></span></b>
</p>
</blockquote>
If you want to show a div change the line "display:none;" to "display:block;"
... [READ MORE]How to open PHP files in Ubuntu instead of downloading.
No one can open PHP files in web browsers without a server. Page types such as HTML, Javascript and CSS can be understand by the browsers. But browsers can’t understand PHP. So the file will download.
There are two types of file that will run : Client-side and Server-side
Client Side : The program runs in browser itself. The client can easily access the code. The browser can understand the language in which the client program is written.
examples : HTML, CSS, JavaScript, jQuery, AngularJS
Server Side : The program runs in server and the finished page is sent to the client’s browser. The returned page won’t contain any source code of the language ie the client won’t see the code in page source unlike in Client Side. The returned page won’t contain any server language at all.
So now you got the reason why the PHP file won’t open in web browsers. You can only open PHP file with a server that supports PHP language. So here’s how to install Apache server and configure the server in Ubuntu
How To Create A Localhost Web Site In Linux Using Apache Web Server
Localhost is a hosting place in your own computer. There are a vast number of Localhost servers you can use. The most used and popular of them is Apache. Localhost enables you to test your work on your computer itself, instead of testing on a live server on the web. If you are creating a project, Localhost is the best place to test that project. In this tutorial I will show you how to create a localhost site running on Apache Server in any Linux Distribution.
Tutorial : Write a file using php
1 – Open your php file in text editor. Paste this code in it.
$myFile = "file.html";
$fh = fopen($myFile, ‘a+’ );
$stringData = ("Hello");
fwrite($fh, $stringData);
fclose($fh);
?>
This will write Hello to a file named file.html. Enjoy!!!
... [READ MORE]Tutorial : How to add date and time using php
1 – Go to your PHP page. Paste this code where you want to add date and time
This code will Show date and time in Date-Month-Year –Hour:Minute:AM/PM
If you want to change the type of showing date and time just change the position of the letters.
Here is a list of dates you can use in PHP