
Search In
For grouping together methods, classes, and constants, we make use of module.
Modules give you two major benefits:
1) prevents name clashes.
2) implement the mixin facility.
Syntax:
module Identifier
statement1
statement2
...........
e
It is used where ample data is fetched from the query and there are numerous levels of associations between your models.
we use Recursive like this way.
$this->Region->find('all', array('recursive' => 0));
These are levels of Recursive f
Current URL is : http://mysite.com/MyController/view/page1
but if you want something like :http://mysite.com/MyController/page1
means you want to hide action name from URL.
Then go to app/config/routes.php and type the below code.
Router::connect
The Date.parse() method takes a date string, and returns the number of milliseconds since midnight of "November 1, 1997 10:15 AM". if the string is unrecognised or contains illegal date values (e.g. 2015-02-31)
Syntax
Date.parse(dateVal)
datestri
In database, sometimes we have to insert the record with some NULL values. But at the time of displaying the data to the user, it doesn't make sense to display NULL values. In order to make the data more readable, we have to display values such as un
NSSortDescriptor *frequencyDescriptor = [NSSortDescriptor sortDescriptorWithKey:@""
ascending:NO
comparator:^(id obj1, id obj
Here is the code to write text on the image:-
shell_exec("convert /var/www/html/james/final.png -font /var/www/html/james/tahomabd.ttf -pointsize 85 -density 100 -fill indigo -draw 'text 475,440 JAMES' /var/www/html/james/james1.png");
shell_e
Sometime you may need to pass the array in the url.
You can do this as following:
<?php
$array["a"] = "A";
$array["b"] = "B";
$array["c"] = "C";
$array["d"] = "D";
$str = serialize($array);
$strenc = urlencode($str);
print $str . "\n";
print $s
Using for each In place of Normal loops in java
for each can be used to display the all the elements of the array.
Syntax :
for(datatype variablename : array)
{
// Do the work with varialble
}
example
public class Main {
Here is the simple connection string to connect the android with Maria DB on linux.
you need to have MariaDB configured to the default port:3306
try
{
Class.forName("org.mariadb.jdbc.Driver");
Connection cntn = DriverManager.getConnection("jdb
