Lets share love

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

12

Wednesday, May 28, 2014

How to Setup SVN Server on Windows

http://svnrating.com/how-to-setup-svn-server-on-window...

Friday, May 23, 2014

To deploy grails WAR file on your local computer

You need following : -tomcat (i used ->apache-tomcat-7.0.42) So here are the steps you need to follow:: 1. In config.groovy change your setting on production environment              production {                                 grails.logging.jul.usebridge = true                  ...

Thursday, May 22, 2014

Hard things

You have to do the hard things.  You have to make the call you’re afraid to make. You have to get up earlier than you want to get up. You have to give more than you get in return right away. You have to care more about others than they care about you. You have to fight when you are already injured, bloody, and sore. You have to feel unsure and insecure when playing it safe seems smarter. You have to lead when no one else is following you yet. You have to invest in yourself even though no one else is. You have to look like a fool while...

Monday, May 19, 2014

Nurse reveals the top 5 regrets people make on their deathbed

For many years I worked in palliative care. My patients were those who had gone home to die. Some incredibly special times were shared. I was with them for the last three to twelve weeks of their lives. People grow a lot when they are faced with their own mortality. I learnt never to underestimate someone’s capacity for growth. Some changes were phenomenal. Each experienced a variety of emotions, as expected, denial, fear, anger, remorse, more denial and eventually acceptance. Every single patient found their peace...

Sunday, May 18, 2014

How to Create a Desktop Shortcut to a Website

Creating desktop shortcuts to a websites is useful. When you double-click the icon from your desktop it automatically launches the browser and opens the site. It will open the website in the browser you used when creating the shortcut. 3 Simple Steps to Create a Shortcut to a Website The following steps will guide you through the process of creating a desktop shortcut to a website using Firefox, Chrome or Internet Explorer (IE). 1) Resize...

Thursday, May 15, 2014

MySQL COALESCE() function

MySQL COALESCE() function returns the first non-NULL value of a list, or NULL if there are no non-NULL values. MySQL Version : 5.6 Syntax COALESCE(value1,value2,value3,...) The above syntax is equivalent to the following IF-THEN-ELSE statement IF value1 is not NULL THEN result = value1; ELSIF value2 is not NULL THEN result = value2; ELSIF value3 is not NULL THEN result = value3; ELSE result = NULL; END IF; - See more at: http://www.w3resource.com/mysql/comparision-functions-and-operators/coalesce-function...

Grails allow null for double not working

Primitive double type variable itself can neither be null nor be blank(blank:true is for String only). It has nothing to do with Grails. Use java.lang.Double instead: use  java.lang.Double days instead of  double days...

Tuesday, May 13, 2014

TRUNCATE TABLE Syntax

So you need to empty the table use the following command TRUNCATE TABLE empties a table completely. Logically, this is equivalent to a DELETE statement that deletes all rows, but there are practical differences under some circumstances TRUNCATE tbl_name TRUNCATE TABLE empties a table completely. Logically, this is equivalent to a DELETE statement that deletes all rows, but there are practical differences under some circumstances. ...

Monday, May 12, 2014

String index out of range: 0

String index out of range: 0 if this is your error , you are trying to fetch that value that is not present. you should confirm the length of the variable or array with .length() The problem occurs when line is empty (e.g. ""). Then it doesn't have a character at index 0, hence your error....

Sunday, May 11, 2014

How to upload large database in phpmyadmin with cmd prompt

To import large file in phpmyadmin . keep  that sql file in C:\xampp\mysql\bin or where your mysql bin is located. and go to cmd prompt and do as in following picture ...

MySQL - Operand should contain 1 column(s)

Yeah i got this problem in a query. and searched for it in google. here is what i got : this is a example in the internet :: wrong query: UPDATE ADRESSEN SET EMAIL = 0 WHERE ID = (SELECT ID, COUNT(ID) AS COUNTER FROM EIGENSCHAFTEN WHERE Kategorie = "BOUNCE" GROUP BY ID HAVING COUNTER = 1) The issue is your inner query is returning two columns. Modify query like UPDATE ADRESSEN SET EMAIL = 0 WHERE ID = (SELECT ID FROM EIGENSCHAFTEN WHERE Kategorie = "BOUNCE" GROUP BY ID HAVING COUNT(ID) = 1) This should work. I have one more suggestion,...

Cannot find plugin descriptor in plugin directory in Grails

1. Go to 'C:\Documents and Settings\jpalmer\.grails\1.2.2\projects\' and delete the 'cgug' folder or  2. Install the plugin whose descriptor is not found :) ------(bad tric...

Saturday, May 10, 2014

Grails redirect not working / Grails action is rendering but not reloading

I got a problem where action would not redirect to another action with following code: redirect(controller: "book", action: "list") then i used following code in Javascript file to redirect to new page function holidaydelete(a){         var sId = a         var yearr = $('#daa'+sId+'_year').val()         var month = $('#daa'+sId+'_month').val()         var day = $('#daa'+sId+'_day').val()         var date = yearr +"-"+ month +"-"+ day  ...

Saturday, May 3, 2014

The Joel Test: 12 Steps to Better Code

The Joel Test: 12 Steps to Better Code by Joel Spolsky Wednesday, August 09, 2000 Have you ever heard of SEMA? It's a fairly esoteric system for measuring how good a software team is. No, wait! Don't follow that link! It will take you about six years just to understand that stuff. So I've come up with my own, highly irresponsible, sloppy test to rate the quality of a software team. The great part about it is that it...