
Search In
To get directory list in PHP we have define a function get_dirlist() in which we are passing a parameter which is the name of the directory. Inside this function we are executing the ls command with the help of exec() function. Using this we will get
There are number of ways to get the names of the all the months in the current locale. I am using the Ruby I18n gem which comes along with Rails.
This gem provides number of methods to perform these localisation tasks.
To get the month names you
Hello Readers,
toArray() is the jquery method which is used to convert the elements to array. This method returns the jquery elements matched by the jquery selector as an array.
Syntax :
$(selector).toArray()
Code Example :
<html>
<h
The below example will help you to remove an Arraylist item using the element index. To remove an item from an arrayList I have used Object remove (int index) method. This method returns a reference to the item that was removed. You can see below pro
Hi,
When I trying to build/run the build in Android studio getting below two errors randomly.
Error:Execution failed for task ':iTSM:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.Zip
I was working on a huge data, around 10gb, which I needed to import on solr. So I split the data in 1gb files, then I imported the data in solr using the post method.
I ended up getting error:
SEVERE: java.lang.OutOfMemoryError: Java heap space.
S
I need an android app developer with java and native code experience using C or C++ to create a NoRootFirewall app. This app will support devices between API 15 and 23. The app will be able to filter data access to every system/installed application
Generators
In python reading items in a list one by one is iteration but when iteration on a list can be done once then iteration is known as generators. Generators does not allow all the iterable list values to be stored i
Generally we need to encode the password in our Applications for security purpose and we can use MD5 for this purpose.
Example - In the below method I'm encoding sting by using MD5
import java.security.MessageDigest;
import java.security.NoSuc
Sometimes we need to generate a unique number for an emailId, for example when a user register then we need to generate a number by using that user can verify his EmailId. For this we can use SHA1 encoding method.
Example - In the below method I'
