All posts by Nisipeanu Mihai

How to detect left mouse click and right mouse click with jQuery

If you want to implement a javascript interface probably you will get to a point where you have to know witch button was pressed. The next code will detect correctly

Continue reading

How to insert into mysql table random number 0 or 1

For test purpose I needed to populate a table field with random int number 0 and 1. The RAND() function from mysql return numbers between 0 and 1

1400 free icons from FatCow Icon pack

You can find in this free icon pack 1400 png icons in 16 x 16 and 32 x 32 pixel format. FatCow Icon pack is one of the most complete and

Continue reading

MySQL: Select “last month” records

In order to select last month records you have to get first day of the last month and the last day of the first month. With this you use the

Continue reading

How to write & (ampersand) character in Android string resource

Because ampersand or & character break the xml validation in Android string.xml file if you need to insert a text with ampersand you have to encode it like in HTML

Continue reading

Download 4 eps (vectorial icons) of Android for free

Need Android droid in vector file format? Check this 4 eps files. You will need Adobe Illustrator or other app for using them.  Download  Download  Download  Download

How to fight against child abuse using “Firefox developer tools” !!!

Movie Rings (2017) No comments !!!Movie Fifty Shades Darker (2017)

How to open new window with window.open and not be seen by chrome a popup

If in the command stack the window.open is not direct under the onClick event then the new window it must be a popup. If the browser is set to block

Continue reading

Android get versionCode and versionName from your AndroidManifest.xml

Sometimes showing version in your app is a good think, and when you do this a good think is to not have 2 ore more places where wou have to

Continue reading

PHP: trim spaces in the middle of a string

When you let users input text in a textfield or input box it is always a good idea to use trim function to remove spaces form the beginning or the

Continue reading