Data Types in java
//
Java variables are used to reserve memory locations to store values. It means when you create a variable you reserve some space in memory. Space allocation depend upon data type of a variable and operating system allocates memory and decide what to be store in reserved memory. Java
Read More about it from the following link : http://coding-guru.com/data-types/ posted by Gul
Wednesday, 14 December 2016
3D File Formats
3D File Formats
//
This article is discussing the most economical and best 3D file formats. This tutorial is very useful for the beginners and are in a state of confusion to select the best 3D file formats. Here is very basic information about most common 3D file format to transport data among different
Read More about it from the following link : http://coding-guru.com/popular-3d-file-formats/ posted by Gul
Linux - basic commands
Linux - basic commands
//
Linux is the most used Operating System for servers and the feature that is most fascinating is Command Line. Command Line is a program that is used to run commands and system interpret these commands.
Here are some beginner commands that a new Linux user can use in his learning. In Linux file name and commands are case sensitive.
There are "\" and "/" those are important to understand. "\" is used to escape characters while "/" is directory separator.
Read More about it from the following link : http://coding-guru.com/linux-basic-commands/ posted by Maz
Why Java?
Why Java?
Why Java?
Simple Language : Java is greatly simplified, improved and many technology experts recommends Java as C++ because its syntax is identical to that of C++ except java eliminated complex features of C++. Java came up with more functionality and fewer negative aspects. Java has English
Read More about it from the following link : http://coding-guru.com/why-java/ posted by Gul
Saturday, 10 December 2016
Ogre 3D File Format
Ogre 3D File Format
//
OGRE 3D files are XML files use to store 3D model information. Tools such as Maya, 3D Max facilitate users to export file into OGRE 3D file format. Following files contain different information about model.
.mesh.xml File : This file contains the information of mesh's contains the i
Read More about it from the following link : http://coding-guru.com/ogre-3d-model-file/ posted by Gul
Linux - basic commands
Linux - basic commands
//
Linux is the most used Operating System for servers and the feature that is most fascinating is Command Line. Command Line is a program that is used to run commands and system interpret these commands.
Here are some beginner commands that a new Linux user can use in his learning. In Linux file name and commands are case sensitive.
There are "\" and "/" those are important to understand. "\" is used to escape characters while "/" is directory separator.
Read More about it from the following link : http://coding-guru.com/linux-basic-commands/ posted by Maz
Why Java?
Why Java?
Why Java?
Simple Language : Java is greatly simplified, improved and many technology experts recommends Java as C++ because its syntax is identical to that of C++ except java eliminated complex features of C++. Java came up with more functionality and fewer negative aspects. Java has English
Read More about it from the following link : http://coding-guru.com/why-java/ posted by Gul
3D File Formats
3D File Formats
//
This article is discussing the most economical and best 3D file formats. This tutorial is very useful for the beginners and are in a state of confusion to select the best 3D file formats. Here is very basic information about most common 3D file format to transport data among different
Read More about it from the following link : http://coding-guru.com/popular-3d-file-formats/ posted by Gul
Java 3D Game Engine
Java 3D Game Engine
//
This article is written to introduce popular java 3D gaming engines. I was searching for a suitable 3D gaming engine and faced many issues to choose the proper gaming engines. This article will help java programmers to choose a proper 3D gaming engine according to their work
Read More about it from the following link : http://coding-guru.com/java-3d-game-engine/ posted by Gul
Set Java Class Path and Run from Command Prompt
Set Java Class Path and Run from Command Prompt
//
Why do you need ?
If you are interested to run your java programs manually by writing code in notepad then you are required to configure java CLASSPATH. Java run time environment needs to know the path of your code and additional libraries required to run the program successfully. To
Read More about it from the following link : http://coding-guru.com/java-class-path/ posted by Gul
Ogre 3D File Format
Ogre 3D File Format
//
OGRE 3D files are XML files use to store 3D model information. Tools such as Maya, 3D Max facilitate users to export file into OGRE 3D file format. Following files contain different information about model.
.mesh.xml File : This file contains the information of mesh's contains the i
Read More about it from the following link : http://coding-guru.com/ogre-3d-model-file/ posted by Gul
Thursday, 8 December 2016
Modern Java IDEs
Modern Java IDEs
//
What is Java IDE?
Modern Integrated Development Environments (IDE) are design to enhance the capabilities of programmer by providing the features of authoring, compiling, debugging and deploying programs under a single environment. The main idea behind modern IDE is to setup development
Read More about it from the following link : http://coding-guru.com/modern-java-ides/ posted by Gul
How to setup eclipse for java
How to setup eclipse for java
//
How to setup eclipse for java
Installing eclipse require's few easy steps. Eclipse is a java based application and requires Java run time environment (JRE) to run it.
Installing JVM
Download java development kit (JDK) or java run time environment (JRE) from here to install java
Read More about it from the following link : http://coding-guru.com/how-to-setup-eclipse-for-java/ posted by Gul
Linux - SSH using Terminal via Port
Linux - SSH using Terminal via Port
//
If we have to connect to a remote server using SSH then we can do it using following command.
Suppose we have remote server IP as 11.111.111.11 and username as root
ssh root@11.111.111.11
If we need to specify some port then we can do as under. suppose our port number is 2233
ssh
Read More about it from the following link : http://coding-guru.com/linux-ssh-using-terminal/ posted by Maz
Mysql - Regex Operator
Mysql - Regex Operator
//
In Mysql if we want to run a query that has condition like record should start with 'D' or 'E'.
Normally we use Like Operator.
select * from tablename where name like 'D%' OR name like 'E%'
But using REGEX in MySql we can get same result without using OR in query
select * from
Read More about it from the following link : http://coding-guru.com/mysql-regex-operator/ posted by Techy
Mysql - disabling and enabling foreign key checks
Mysql - disabling and enabling foreign key checks
//
Recently I was working on a project in which I have to truncate tables in database. But due to foreign key constraints MySQL was throwing errors.
So the solution I found was to disable Foreign Key constraints temporarily delete all data and then again enable the foreign keys.
Disable
Read More about it from the following link : http://coding-guru.com/mysql-disabling-and-enabling-foreign-key-constraint/ posted by Techy
Yii Framework- Creating hidden field
Yii Framework- Creating hidden field
//
In Yii framework we can create a hidden field using model and without model as described below
1. Creating hidden field without model.
echo CHtml::hiddenField('name' , 'value', array('id' => 'name'));
2. Creating hidden field with model.
echo $form->hiddenField($model,
Read More about it from the following link : http://coding-guru.com/yii-framework-creating-hidden-field/ posted by Maz
Wednesday, 7 December 2016
mongoDB - Foreground Index Vs Background Index
mongoDB - Foreground Index Vs Background Index
//
Foreground Index Vs Background Index
By default an index in MongoDB is Foreground index and while an index is a foreground index it will block all other writers (i-e no other process can write to collection), We can build it in background so that it will not block other
Read More about it from the following link : http://coding-guru.com/mongodb-foreground-index-vs-background-index/ posted by Maz
MongoDB - Sparse Index
MongoDB - Sparse Index
//
We can create indexes on a collection's fields but what happens when we are creating an index and that key is not present more then one document in that collection.
Suppose we have a collection with following documents
1. a:1, b:2, c:3
2. a:1, b:2
3. a:1, b:2
If we create an index on c then for document 1 it will be ok but for document 2 and 3 c's value will be
c=null (c= null) will be in both 2 and 3 documents, but unique means that a key will have unique value for each document so DB will not create a unique index for this collection .
Read More about it from the following link : http://coding-guru.com/mongodb-sparse-index/ posted by Maz
MongoDB - Unique Index
MongoDB - Unique Index
//
MongoDB allows us to specify a unique constraint on an index. These constraints will prevent an application from inserting documents that have duplicate values for the inserted fields.
Suppose we have a collection named things in a database stuff.
db.stuff.things("a":"apple");
A u
Read More about it from the following link : http://coding-guru.com/mongodb-unique-index/ posted by Maz
MongoDB - Multikey Indexes
MongoDB - Multikey Indexes
//
In MongoDB we can have a key that holds an array like
interests: ["swimming", "reading", "programming"], "sports":["tennis","gym"]
We can have an index on interests key. like (suppose we have a people collection and interests field in i
Read More about it from the following link : http://coding-guru.com/mongodb-multikey-indexes/ posted by Maz
MongoDB - creating and viewing indexes
MongoDB - creating and viewing indexes
//
According to definition from Wikipedia , A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of additional writes and the use of more storage space to maintain the extra copy of data. Indexes are used to quickly locate data without having to search every row in a database table every time a database table is accessed.
Data is stored on disk based storage devices as block of data. These disk block of data are stored much like linked lists. When we perform a linear search on a field that is not sorted then database have to perform N/2 accesses.
Read More about it from the following link : http://coding-guru.com/mongodb-creating-and-viewing-indexes/ posted by Maz
PHP - Create folder and a file in the folder
PHP - Create folder and a file in the folder
//
I worked on a project in that project we have to create folders and then files in that folders. is_dir is a function that checks whether a directory exists or not. mkdir creates a driectory, file_put_contents is a function that create file and places contents in that file.
Following th
Read More about it from the following link : http://coding-guru.com/php-create-folder-and-a-file-in-the-folder/ posted by Maz
MongoDB - Insert, Update, Delete and Read
MongoDB - Insert, Update, Delete and Read
//
MongoDB stores data in form of documents are JSON like key - value pairs.
//
Read More about it from the following link : http://coding-guru.com/mongodb-insert-update-delete-and-read/ posted by Maz
Tuesday, 6 December 2016
Node JS - Reading command line input
Node JS - Reading command line input
//
In languages like c++, java we can take command line input from user using standard i/o libraries. But JavaScript is used in browser and we never need to take input from user on command line, here Node JS fills the gap using its own libraries know as modules.
To read More about from here posted by Techy
Generate Date from week, day number and year.
Generate Date from week, day number and year.
//
PHP has a function named 'setISODate'. This function takes year, week number and day as parameter and returns a date.
<?php
$date = new DateTime();
$date->setISODate(2011,48,4); //year , week num , day
echo $date->format('d-m-Y'); //"prints" date here
//
To read More about from here posted by Maz
MySql - search and replace a string in a column
MySql - search and replace a string in a column
//
If we and to search some specific string inside our column data and replace it with other string then we can use replace query of MySql.
Suppose table name is 'users' and we want to search city column with a value 'London' and replace it with 'New York'
update users set city =
To read More about from here posted by Techy
PHP - PDO select records from MySql
PHP - PDO select records from MySql
//
As Zend has announce not to support mysql_* functions in future version's of PHP (from PHP 5.5 and onwords). So now these functions will be deprecated. So now developers should try to use PDO or MySqli extension of PHP. Here is a small code snippet showing how to select records from Database using PDO.
To read More about from here posted by Maz
YII - Get Controller name
YII - Get Controller name
//
In Yii framework if we want to get name of current controller name. It can be done by following command.
<?php
Yii::app()->controller->id;
?>
//
To read More about from here posted by Maz
YII - Get name of current controller's action
YII - Get name of current controller's action
//
In Yii framework if we want to get name of current controller's action. It can be done by following command.
<?php
echo Yii::app()->controller->action->id
?>
//
To read More about from here posted by Maz
Monday, 5 December 2016
3D text effect in Photoshop
3D text effect in Photoshop
//
Step 1: Create a New Document
To begin, let's create a brand new Photoshop document. Go up to the File menu at the top of the screen and choose New, or for a quicker way, press the keyboard shortcut Ctrl+N (Win) / Command+N (Mac).
Whichever way you choose, Photoshop pops up the New Document dialog box. Enter the size you need for your document. For this tutorial, I'm going to enter a Width of 6 inches, a Height of 4 inches, and a Resolution of 300 pixels/inch, which is a standard resolution for professional quality printing.
To read More about from here posted by Techy
Introduction to MongoDB
Introduction to MongoDB
//
MongoDB
MongoDB is an Open source schema less database. It is also known as NoSQL database.
It is different from conventional Relational databases like MySql, Oracle, Sql Server.
MongoDB is a data store of JSON documents.
JSON stands Javascript Object Notation and is a t
To read More about from here posted by Maz
CSS - Breaking long words wrap onto the next line
CSS - Breaking long words wrap onto the next line
//
CSS has a property named word wrap and it can be used as follows.
.wrap word-wrap:break-word;
//
To read More about from here posted by Techy
YII - Changing Language
YII - Changing Language
//
If we want to change language of a particular action in YII or for the whole application we need to , set CApplication::language . This can be done at runtime as in
Yii::app()->language = 'fr';
but we can also do it in application configuration:
array(
// ...settings...
To read More about from here posted by Maz
JQuery - How go to anchor tag without showing hashtag in URL
JQuery - How go to anchor tag without showing hashtag in URL
//
We use named anchors or # tags to access certain part of a page like http://www.example.com#middle. Now clicking on this tag will take user to this tag but it will show whole url in address bar.
If we want not to show # url in address bar but want to use named anchors. Use Jquery to
To read More about from here posted by Techy
What is Node.JS
What is Node.JS
//
Node.js is an upcoming new technology that has already got a lot of attention. Top notch tech companies like Microsoft, VMWare, Ebay, Yahoo, and many more are using node. Node.js is the amazing skill to open up new career opportunities for a programmer.
To read More about from here posted by Techy
PHP - Introduction
PHP - Introduction
//
What is PHP
PHP (PHP: Hypertext Preprocessor) is a widely used open source general-purpose scripting language that is especially suited for web development. PHP was developed by Rasmus Lerdrof in 1994.
Here are some features of PHP that makes it one of the popular languages in world of web development.
To read More about from here posted by Maz
Augmenting Parser - Adding Java Code
Augmenting Parser - Adding Java Code
//
Consider previous example where we learnt how to generate a Lexical Analyser and Parser with JavaCC. Today we are going to discuss, how to augment BNF productions with Java code? Later it will be included in the generated methods.
To do so we have to change Basic.jj specification
To read More about from here posted by Gul