Browsed by
Category: Miscellaneous

Enable/Disable profile specific spring security debug flag

Enable/Disable profile specific spring security debug flag

Spring security comes with a handly feature to enable debug flag to see a nice debug log as shown below to see what is happening with your application. You can control this feature from your bean configuration code Still, you may want to control it from application.properties files for some profiles. Like I want to keep it on for dev only.

Why not to fall for a new technology

Why not to fall for a new technology

Technology is changing at an exponential rate. Every day we welcome a new technology which claim to change the world. Solve day to day problem in an amazing way. We all feel tempted to use these, and sometimes end-up into unexpected situations. Here I sum-up three things I consider before using anything new. It’s not mature When it comes to new innovating technologies which challenge the existing paradigm, often start with something small. It takes a significant amount of development, reiterations…

Read More Read More

Traversing an array without using length property

Traversing an array without using length property

We often face an interview question when it is asked to search or traverse an array without knowing/using the length property. In Java, if you try to access the element that is outside the length of the array it will give you an exception as java.lang.ArrayIndexOutOfBoundsException. Here I have one implementation of a binary search where I will not use the length property of the array. import static java.lang.Math.pow; public class BinarySearchWithoutLength { public static Integer binarySearch(final Integer[] elements, final Integer find) {…

Read More Read More

Not In query In Liferay Dynamic Query

Not In query In Liferay Dynamic Query

In Liferay dynamic query you can create a query for not in condition like     SELECT * FROM traders WHERE traderId NOT IN(455,466) dynamicQuery.add(PropertyFactoryUtil.forName("primaryKey.traderId") .notIn(StatutoryLocalServiceUtil.dynamicQuery() .add(PropertyFactoryUtil.forName("primaryKey.traderId").eq(455)) .add(PropertyFactoryUtil.forName("primaryKey.traderId").eq(456)) .setProjection(ProjectionFactoryUtil.property("primaryKey.traderId"))));  

SPEEDUP YOUR COMPUTER BY CLEANING YOUR RAM USING NOTEPAD

SPEEDUP YOUR COMPUTER BY CLEANING YOUR RAM USING NOTEPAD

Does your computer boot slowly or shuts down slowly? Then this tutorial is for you.. One of the major problem of computer coming up slow is1. UNUSED JUNK IN RAM.2. TOO MUCH PROGRAM ON THE COMPUTER DESKTOP( ICONS,)4. VIRUSES ETC CLEAN UP YOUR RAMSTEPS:—————————–1- Open Notepad2- Copy and paste these codes into notepad FreeMem=Space(64000000) .3- Now Save it as CleanRAM.vbs.NB:- IN THE SAVE AS TYPE DROP DOWN MENU, CHOOSE ALL FILES4-Now Open it and your RAM will be free from…

Read More Read More

FIXING SSL FOR WAMP

FIXING SSL FOR WAMP

ERROR:There was a problem opening a secure connection to Google. This is what went wrong:Unable to find the socket transport “ssl” – did you forget to enable it when you configured PHP? (1)Recently I had to fix a bug/oversight in the WAMP install that prevented ssl from being a registered stream socket transport, it turns out there are quite a lot of requests for help on this subject out there but few or no answers. I stumbled into this problem…

Read More Read More

Android Plug In For Eclipse IDE

Android Plug In For Eclipse IDE

For starting with android on your MyEclipse IDE  you have to follow Small Steps:- Step 1- Download android sdk from the link “http://developer.android.com/sdk/index.html” and extract it   into the path your want prefer to “C:” or “C:Program FilesAndroid” .Step 2- Now Open your eclipse IDE and go to “Help -> Install new software“ then give the site “https://dl-ssl.google.com/android/eclipse/“ to download plug in from the site download from site and then give the archive “http://dl.google.com/android/ADT-15.0.1.zip“ to install it and mark on install updates. Step 3- Now open sdk from eclipse…

Read More Read More

Use wamp and MySql in win 7 simultaneously

Use wamp and MySql in win 7 simultaneously

In win7 there is a problem in using wamp and MySql at the same time due to using the same port no. 3306 by the both  wamp and MySql. So for resolving this problem change the port no. of MySql during installation (ex. 3307). Now you can use both at same time. If u want to use Mysql as DB in php then change the port no. in file “config.inc.php” .For windows the directory of this file is “C:wampappsphpmyadmin2.11.5”  In the…

Read More Read More