July 6, 2013
To List the Schema Name and Table Name in MS SQL
The script which generates all the tables name in database along with its schema name.
November 20, 2012
Excel 2007 Tricks
TIPS & TRICKS
To find
age of a person based on DOB,
=DATEDIF(A1,NOW(),"y")
& " years, " & DATEDIF(A1,NOW(),"ym") & "
months, " & DATEDIF(A1,NOW(),"md") & " days"
Eg: In A1 column
enter DOB in this format 31/08/1985 and in another cell enter this formula.
To remove
unnecessary spaces in the cell,
=trim (text)
===== SHYAM =====
25 Excel Tips & Tricks
25 Very Useful Keyboard
Shortcuts
1. To format any
selected object, press ctrl+1
2. To insert current date, press ctrl+;
3. To insert current time, press ctrl+shift+;
4. To repeat last action, press F4
5. To edit a cell comment, press shift +
F2
6. To autosum selected cells, press alt
+ =
7. To see the suggest drop-down in a cell, press alt + down arrow
8. To enter multiple lines in a cell, press alt+enter
9. To insert a new sheet, press shift +
F11
10. To edit active cell, press F2
(places cursor in the end)
11. To hide current row, press ctrl+9
12. To hide current column, press ctrl+0
13. To unhide rows in selected range, press ctrl+shift+9
14. To unhide columns in selected range, press ctrl+shift+0
15. To recalculate formulas, press F9
16. To select data in current region, press ctrl+shift+8
17. To see formulas in the worksheet, press ctrl+shift+` (ctrl+~)
18. While editing formulas to change the reference type from absolute to
relative vice versa, press F4
19. To format a number as currency, press ctrl+shift+4 (ctrl+$)
20. To apply outline border around selected cells, press ctrl+shift+7
21. To open the macros dialog box, press alt+F8
22. To copy value from above cell, press ctrl+’
23. To format current cell with comma formats, press ctrl+shift+1
24. To go to the next worksheet, press ctrl+shift+page
down
25. To go to the previous worksheet, press ctrl+shift+page
up
... SHYAM... D Man U Love
November 12, 2010
Presentation for an HTML5 website..ShYaM..
HTML5
Web Development to the next level
*Including other next generation technologies of the Web Development stack
http://slides.html5rocks.com/#slide1Source : http://slides.html5rocks.com
ShYaM D Man U Love...
Random header image on page refresh (applicable to Drupal theme)..ShYaM
Some time back, we needed to get a random header image on every page refresh for a client. So I devised a simple way to select a header image from any 5 given images and show it on a page. How did I do it with PHP and CSS is explained below:
The Template File
First you need to find out the div where the random header image is going to be displayed, as its the header image then its obivious that we need to add a class to the header div. Problem is how is the single class going to have 5 different images as its background and that also changed in every page refresh.
For this just add a class called header-x, x is replaced with a random number between 1 and 5 by using PHP's rand() function. This will require your template to be a PHP file, if you are using a CMS like Drupal then in Drupal edit the header div's code in page.tpl.php file as below:
Enjoy....ShYaM d man u love.....
The Template File
First you need to find out the div where the random header image is going to be displayed, as its the header image then its obivious that we need to add a class to the header div. Problem is how is the single class going to have 5 different images as its background and that also changed in every page refresh.
For this just add a class called header-x, x is replaced with a random number between 1 and 5 by using PHP's rand() function. This will require your template to be a PHP file, if you are using a CMS like Drupal then in Drupal edit the header div's code in page.tpl.php file as below:
The CSS Code
After the template is fixed, now you have to apply a different background image to the classes 1-5. So header-1 will have header1.jpg,.... till header-5 will have header5.jpg as its background image. The code can be seen belowEnjoy....ShYaM d man u love.....
October 26, 2010
CSS3 Rounded Image With jQuery..ShYaM
The CSS Trick
The trick is very simple: wrap a span tag around the image element. Specify the original image as background-image. To hide the original image, specify opacity:0 or display:none. I find using the opacity method is a better approach because the image will remain available for copy or download.Final Solution With jQuery
To make things easier, we can use jQuery to automatically wrap a span tag around the image.The jQuery code below will find any element with ".rounded-img" or "rounded-img2" (in my case, it is the image element) and wrap it with a span tag. The script finds the src, width, height, and CSS class attribute of the original image and apply them as inline styling in the span tag. Then it specifies the opacity of the image to 0 to hide it.
It works with any image dimension (with or without the width and height attribute). It can also be combined with other CSS classes. No additional markup is required.
<script type="text/javascript" src="jquery-1.4.2.min.js">script>
<script type="text/javascript">
$(document).ready(function(){
$(".rounded-img, .rounded-img2").load(function() {
$(this).wrap(function(){
return '<span class="' + $(this).attr('class') +
'" style="background:url(' + $(this).attr('src') + ')
no-repeat center center; width: ' + $(this).width() +
'px; height: ' + $(this).height() + 'px;" />';
});
$(this).css("opacity","0");
});
});
script>
Source:http://www.webdesignerwall.com/tutorials/css3-rounded-image-with-jquery/
47 Amazing CSS3 Animation Demos...ShYaM
47 jaw-dropping CSS3 animation demos.
They demonstrate the possibilities of the CSS3 transform and transition property. Some are very useful and can be used as Javascript alternatives. Most of them are simply to look cool. In order to veiw these effects, you need a webkit browser such as Safari and Chrome (sorry to the Internet Explorer users). Enjoy!
Source:http://www.webdesignerwall.com/
They demonstrate the possibilities of the CSS3 transform and transition property. Some are very useful and can be used as Javascript alternatives. Most of them are simply to look cool. In order to veiw these effects, you need a webkit browser such as Safari and Chrome (sorry to the Internet Explorer users). Enjoy!
Source:http://www.webdesignerwall.com/
Subscribe to:
Posts (Atom)