Monday, February 24, 2014

How to clean kidney ?


We are cleaning every other things outside body, But how how to do it inside like kidneys?, why is it needed?

over these years our kidneys are filtering the blood by removing salt, poison and any unwanted items entering our body. With time, the salt or some other things accumulates and this needs to undergo cleaning treatments and how are we going to overcome this?

Coriander Leaves

yes, you read it correctly, it can clean your kidneys...


  • Wash it clean first. 
  • Cut it in small pieces 
  • Put it in a small vessel 
  • Pour clean water 
  • Boil it for ten minutes
  • Let it cool down.
  • Filter it and pour in a clean bottle 
  • Keep it inside refrigerator to cool.


Drink one glass everyday and you will notice all salt and other accumulated poison coming out of your kidney through urin

Also you will feel mentally fresh

Tips to increase mielage of you car

Think to remember while filling fuels in your car / bike



  • Fuel at night or early morning: 


It is always  better to fill your car during early morning, when the ground temperature is still cold.
You know all service stations have their storage tanks underground.The colder the ground, the more dense the fuel. When it gets warmer, petrol expands.
So, when filling fuel in the afternoon or in the evening, your one liter is not exactly a liter.
In the petroleum terms, the specific gravity and the temperature play an important role. 1 degree rise in temperature is a big deal for this business. But dont think the service stations have temperature compensation at the pumps.

  • Better to fill fuel when half tank empty: 

It is good fill the fuel when your tank is HALF FULL because, the more fuel you have in your tank the less is the air occupying its empty space. Petrol evaporates faster than you can imagine.


  • Make sure Nozzle trigger in medium or low stage

You can find Nozzle trigger to fill the petrol  has three stages-Low, Medium, and High.
Make sure it not in  fast mode, while filling petrol. It should be in the low stage to minimise the impacts of vapour and to have maximum economy of petrol.. Filling petrol at the faster rate means you have more gas with your liquid petrol.


  • Don't fill when petrol tankers unloading fuel

Because when the tankers fill fuel at the fuel station all the dirt that is settled at the bottom down gets disturbed and if you are fueling at the same time it can get into your vehicle tank along with fuel - it can badly affect your engine.


  • Proper tyre pressure

Tyre pressure must be checked once every two weeks. It helps to reduce the drag while driving thus increasing your mileage.


  • Avoid Unwanted weight in car

Every extra kilo of weight will need additional fuel, decreasing the mileage.

Thursday, February 20, 2014

using maven deploy the spring application in tomcat 7


tomcat-users.xml

<role rolename="manager"/>
    <role rolename="manager-gui"/>        
    <role rolename="admin"/>
    <role rolename="manager-script"/>
    <user password="admin" roles="admin,manager,manager-gui,manager-script" username="admin"/>


pom.xml

<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>  
                <artifactId>tomcat7-maven-plugin</artifactId>  
                <version>2.1</version>  
                <configuration>  
                    <url>http://localhost:8080/manager/text</url>  
                    <server>myserver</server>  
                    <path>/${project.build.finalName}</path>
                </configuration>
</plugin>
</plugins>
</build>


/Users/.m2/settings.xml

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
  <id>myserver</id>
  <username>admin</username>
  <password>admin</password>
</server>
</servers>
</settings>


To run the tomcat, which you installed(not the embedded one- and you need to run the manager portal of tomcat for auto deploy from maven

In eclipse ->

 Tomcat v7.0 Server at localhost.server  - take properties ->and click "switch location"

open it -> “server location” select “use Tomcat Installation(takes control of tomcat installation” 


now right click your spring project and run as “maven build “ -> tomcat7:redeploy will do the magic

Saturday, February 8, 2014

Enable or disable hidden folders in MAC OS X

Enable or disable hidden folders in MAC OS X


  • For Enable/show


Open a Terminal 

Execute this command 


defaults write com.apple.finder AppleShowAllFiles -bool true



  • And to hide/disable


Execute this in the terminal


defaults write com.apple.finder AppleShowAllFiles -bool false

And if it didn't take effect, try logout and login

But if you are not comfortable with Terminals, many apps are available , which helps to do this from UI itself 
ex: invisiblix