Welcome to my blog, hope you enjoy reading
RSS

Thursday 29 August 2013

How to increase mysql connections

How to increase mysql connections

If you are getting “too many connections” errors in MySQL. By default the max_connections is 100, you need to change the max_connections to allow more connections, you will need to have enough RAM/memory to handle the increased number.
Share

Eclipse ADT update does not work

Eclipse ADT update does not work

Problem:
I updated my android sdk to and I tried updating my adt via ecplise through
Help-> Check for updates.
This action results in the dialog that says -
'no updates found'
But my sdk says-
This android is SDK requires Android Development Kit 21.1.0 or above
  Current version is 21.1.0.v201212060256-543035.

Share

Monday 26 August 2013

Data Types in java

Data Types in java


Based on the data type of a variable, the operating system allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to variables, you can store integers, decimals, or characters in these variables.
There are two data types available in Java:
  • Primitive Data Types
  • Reference/Object Data Types
Share

How To See the Processor Model Number/Speed on Linux

If you rely on somebody else for managed hosting of your Linux servers, you might not always know exactly what type of server you’re actually running on. There’s a quick and easy way to figure this out, however.

Simply type in the following command at the prompt:

cat /proc/cpuinfo
And then you’ll see a big long list of all the processor in the system, along with all the information about them, which should look something like this:
output:
-------------------------------------------------------------------------------------
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 26
model name      : Intel(R) Xeon(R) CPU           L5520  @ 2.27GHz
stepping        : 5
cpu MHz         : 2267.545
cache size      : 8192 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
 mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
nx rdtscp lm constant_tsc pni monitor ds_cpl est tm2 xtpr popcnt
bogomips        : 4538.12
-----------------------------------------------------------------------

You’ll see in this example that we’re running on an Intel Xeon L5520 running at 2.27GHz… and if we had shown the full example you’d see that there are actually 4 cores on the machine.
Share

Thursday 22 August 2013

Upgrade to 12.04 in ubuntu stuck

Upgrade to 12.04 in ubuntu stuck

This time the crash is quiet. Nothing is happening. The screen displays the following and the disk light occasionally blinks but there is no progress indicated on the screen.
Share

Saturday 3 August 2013

What svn revision was this branch created in?

What svn revision was this branch created in?

how do I find out in which svn revision a branch was created?

The answer is 
svn command: to show all the log from creating the branch.

svn log --stop-on-copy  url (url of the branch).

Share