Lets share love

How ? copy url of this blog and share in your social network :) simple

12

Monday, November 24, 2014

Scroll to Top Button

1. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script type="text/javascript" src="http://arrow.scrolltotop.com/arrow1.js"></script><noscript>Not seeing a <a href="http://www.scrolltotop.com/">Scroll to Top Button</a>? Go to our FAQ page for more info.</noscript> 2. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script type="text/javascript" src="http://arrow.scrolltotop.com/arrow3.js"></script><noscript>Not...

Thursday, November 20, 2014

Backing Up Your MySQL Database

mysqldump -u [username] -p [password] [databasename] > [backupfile.sq...

Tuesday, November 11, 2014

His wife asked him to take another woman to date and a movie :)

  #Copied ...

Friday, November 7, 2014

Facebook CEO Mark Zuckerberg wears the same T-shirt every day. Find out why.

Facebook CEO Mark Zuckerberg had his first-ever public Q&A on Thursday.He answered a lot of different questions, but the one that got a lot of interest was, "Why do you wear the same T-shirt every day?"For those who haven't noticed yet, Zuckerberg wears the same grey T-shirt at most public events. While many expected a playful response, Zuckerberg gave a pretty serious answer for his penchant to wear the same grey shirt."I really want to...

The Experiment

#copied  ...

Tuesday, October 28, 2014

People to follow in Nepal for Motivation

      1.Ramesh Kharel: Currently the Senior Superintendent of Police in Nepal Police, this man is the rare clean cop. He cracks down on crime, loathes  criminal gang activities, puts the dons on strait-jackets and fires his corrupt subordinates. 2. Mahabir Pun: Born in Myagdi district and educated in the USA, he has been helping the villagers of western Nepal with his genuine idea of providing computers...

Wednesday, October 22, 2014

दिपावली किन मनाउने ?

तिहार तथा दिपावली हाम्रो एउटा धेरै नै महत्वपूर्ण चाड पर्व हो। त्यसो भए हामी किन दिपावली मनौचौ त ? यहाँ छन् की बुदा हरु। -> आज को दिन देवी लक्ष्मी को जन्मदिन हो।  ->विष्णु ले आज को दिन लक्ष्मी लाई छुटेका हुन्।  -> कृष्ण ले नरकसुर लै मारेका हुन।  ->पाण्डव हरु १२ वर्ष को गुप्त बास  बाट फर्केका हुन्।  ->आज कै दिन राम , सीता र लक्ष्मन रावण लाई       मारेर घर फर्केका...

Monday, October 20, 2014

How to put array in string like [1,2,3,4] to 1,2,3,4

here is a simple trick :) String listOfPhase =""         for (int i = 0; i < phaseIds.size(); i++) {             if (i == 0)                 listOfPhase += phaseIds[i].toString()             else                 listOfPhase += "," + phaseIds[i].toString()         } NOTE : phaseIds is your array&nbs...

Sunday, October 19, 2014

How to remove div content using html() in JQuery

How to remove div content using html() in JQuery $("#RemovingContent").children().remove(); $("#RemovingContent").html(""); RemovingContent is the div that you want to remove content of :) here is the complete example <html> <head> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#btnChangetext').click(function() { ...

How to keep same tab active in Twitter Bootstrap after page reload using localStorage

What is HTML Local Storage? With local storage, web applications can store data locally within the user's browser. Before HTML5, application data had to be stored in cookies, included in every server request. Local storage is more secure, and large amounts of data can be stored locally, without affecting website performance. Unlike cookies, the storage limit is far larger (at least 5MB) and information is never transferred to the server. Local storage is per domain. All pages, from one domain, can store and access the same data data. HTML...

Thursday, October 16, 2014

Do you know ? what to do with your life ?

i copied this article from this web page http://www.entrepreneur.com/article/238522 :) Writer: Eric M. Ruiz I was in San Luis Obispo, Calif., last weekend for a wedding. I took advantage of my time on the left coast to travel to Modesto to see my family. My brother and sister happened to be in town as well, so for the first time since May, all five members of the Ruiz family were gathered. I had the chance to spend some quality time with my sister Mary, who's the youngest in the family, and she filled me in on what...

Sunday, September 14, 2014

You have a birthday cake and have exactly 3 cuts to cut it into 8 equal pieces. How do you do it?

The answer: stack the pieces The “correct” answer is to cut the cake in quarters (4 pieces) using 2 of the cuts – one horizontally down the center of the cake and the other vertically down the center of the cake. This will leave you with 4 pieces (or slices) of cake. Then, you can take all 4 pieces and arrange them in a stack that is 4 pieces high. Finally, you can just cut that stack of 4 pieces in half – using your third and final cut – and then you will end up with 8 pieces of cake! You might think of this as sort of a trick question, since...

Thursday, September 11, 2014

how to zip a folder

have you ever wondered how to zip a folder . many just wonder :p try this :)  ...

Tuesday, September 9, 2014

Spring security logout

put this anywhere :) <form name="submitForm" method="POST" action="${createLink(controller: 'logout')}"> <input type="hidden" name="" value=""> <a HREF="javascript:document.submitForm.submit()">Logout</a> </form&g...

The webpage has redirect loop . Grails Spring Security Core RC4 error

Here while installing and implementing new Spring Security Core RC4 i faced following problems: and in console  In console you will see that it will not find SecRoleSecUser table and webpage will get looped :  If you are using requestmap to handle your access level you have to place following code in bootstrap.groovy  new Requestmap(url: '/home', configAttribute: 'ROLE_ADMIN').save()         new Requestmap(url:...

how to change default home page in grails

class UrlMappings { static mappings = {         "/$controller/$action?/$id?(.$format)?"{             constraints {                 // apply constraints here             }         }         "/login/$action?"(controller: "login")         "/logout/$action?"(controller: "logout")         "/"                 {  ...

Monday, September 8, 2014

how to change port to run grails app

put this line in buildconfig.groovy grails.server.port.http = 8888 8888 is the port that u want grails app to run on note: 0 to 9999 There are total 65535 ports in a computer, in which 1024 ports are well known port...

Wednesday, September 3, 2014

Heap size and Perm size

The GC document on Sun's site showed the Perm generation to be part of the Heap size. It seems that the Perm size is different from the Heap size.The total memory used by the JVM process will be = Memory used by the JVM for internal management + memory allocated in native code + memory allocated for the permanent space. This is the memory that U see in Task-Manager in Windows or 'top' on Solaris. A quick definition of the "permanent generation": "The permanent generation is used to hold reflective data of the VM itself such as class objects...

How do I properly set the permgen size?

Two ways to solve perm gen (out of memory ) problem. 1.  You have to change the values in the CATALINA_OPTS option defined in the Tomcat Catalina start file. To increase the PermGen memory change the value of the MaxPermSize variable, otherwise change the value of the Xmx variable. Linux : Open Catalina.sh file placed in the "bin" directory. You have to apply the changes to this line CATALINA_OPTS="$CATALINA_OPTS -server -Xms256m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m" Windows: Open the "Catalina.bat" file placed in the "bin"...

Tuesday, September 2, 2014

Khudi ko kar buland itna ke har taqder se pehle Khuda bande se ye poche bata teri raza kia hai

Khudi ko kar buland itna ke har taqder se pehle Khuda bande se ye poche bata teri raza kia h...

Monday, September 1, 2014

How to change password of mysql in xampp

You will need this many times :) 1. First of all open the control panel of xampp and click on config of Apache . You will find config.inc.php file of phpmyadmin.  this will open you a txt file. Then search for password.  this will open you a txt file. Then search for password.  2.now open command prompt and write as following : then you have to execute following query    ...

Friday, August 29, 2014

tools

1. Streamus™ (Beta!) is a chrome extension which turns YouTube into a music player. You can create your own playlists and it saves them to your google account. Don't have to open a new tab every time to listen to a new song: ​2. Like an article, but want to save it for later? Use Pocket. Available on all platforms ( chrome, firefox, android, iOS). Just a tap and the article will be saved on all of your devices3. StayFocusd is...

Why procrastinate will be helpful

Take 10 minutes to Learn why you procrastinate will be helpfulI was a very bad Procrastinator for a very long time, until i really understood the basics of why i procrastinate. In order to understand why you procrastinate, first you should have a strong desire to eliminate procrastination in your life and following the methods mentioned below will be helpful.I. Track down your everyday activity     When i first started writing...