Latest Entries »

Dear Friends,

After several months of hard work, I am launch my wordpress site(www.talentvisionz.com). Please review my website and let me know what you think. It is still a work in progress, but I hope to officially launch it in less than two weeks.

The most challenging thing for me so far has been the photography. I am not a professional photographer and have been trying for weeks to get the photos right. They still to lunch, it’s still a work in progress.

Again, please let me know what you think of my website.  I appreciate it!

www.talentvisionz.com

Thank you,
Aryashree Pritikrishna

SDLC Techniques

Software Development Life Cycle or SDLC is a model that suggests a person how to create, develop & implement software. This is in fact a complete plan of the software’s entire life, right from its birth to its retirement.

Yes, software does get retired as nothing is divine – human, machine & even software. It is a process of formal & logical steps that have been put forth to develop a software.

Generally, SDLC have 7 Stages:

1. Requirement Gathering

2. Feasibility Study

3. Analysis

4. Design

5. Coding

6. Testing

7. Maintenance & Review.

SDLC have different models. A software engineer can adopt any of the models to suit the requirement. To name a few, the models are -1.Water fall model

2.Itterative model

3.Spiral model

4.Prototype model

5.RAD model(Rapid application development)

6.cocomo model: cost to cost model

7.v-model

8.Fish model

9.Pett model

PHP 5.3 New Functions

Date/Time:

GMP:

Hash:

IMAP:

  • imap_gc() – Clears IMAP cache.
  • imap_utf8_to_mutf7() – Encode a UTF-8 string to modified UTF-7.
  • imap_mutf7_to_utf8() – Decode a modified UTF-7 string to UTF-8.

JSON:

MySQL Improved:

OpenSSL:

PCNTL:

PCRE:

  • preg_filter() – Perform a regular expression search and replace, returning only results which matched the pattern.

Semaphore:

The following functions are now natively implemented, making them available on all operating systems which can run PHP:

 

2010 in review

The stats helper monkeys at WordPress.com mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads This blog is doing awesome!.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

A Boeing 747-400 passenger jet can hold 416 passengers. This blog was viewed about 6,000 times in 2010. That’s about 14 full 747s.

 

In 2010, there were 5 new posts, growing the total archive of this blog to 34 posts.

The busiest day of the year was October 19th with 45 views. The most popular post that day was Database Design: Choosing a Primary Key.

Where did they come from?

The top referring sites in 2010 were google.co.in, uk.answers.yahoo.com, prajapatinilesh.wordpress.com, google.com, and bigextracash.com.

Some visitors came searching, mostly for history of mysql, web development model, mysql history, web development models, and history of mysql database.

Attractions in 2010

These are the posts and pages that got the most views in 2010.

1

Database Design: Choosing a Primary Key July 2008

2

Call parent window’s javascript function from child window OR passing data from child window to parent window in javascript July 2009
1 comment

3

Popular Web Development Models (SDLC) February 2009
3 comments

4

The History of MySQL July 2008
1 comment

5

PHP Send Email Using Authenticated SMTP Mail Server In Real Time June 2009
1 comment

We can create and use classes in javascript also. Following code shows the example:

<html>
<head>
<title>Hello</title>
<script language=”javascript” type=”text/javascript”>
function MyClass(val1, val2) {
this.a = parseInt(val1);
this.b = parseInt(val2);

this.ans = function() {
return (this.a + this.b);
}
}

function displaySum() {
var firstOp, secondOp;
firstOp = document.getElementById(“txtFirstOp”).value;
secondOp = document.getElementById(“txtSecondOp”).value;
var MyCl = new MyClass(firstOp, secondOp);
//MyCl.a = 50;
//MyCl.b = 100;
alert(“The Sum is ” + MyCl.ans());
}
</script>
</head>
<body>
<form id=”frmMain” method=”post” action=”test.asp”>
First Operand : <input type=”text” id=”txtFirstOp” /> <br />
Second Operand : <input type=”text” id=”txtSecondOp” /> <br />
<input type=”button” value=”Show Sum” onclick=”displaySum()” />
</form>
</body>
</html>

Hope it helps :)

In CakePHP we refer to the automatic code generation as baking. An entire application can be baked from nothing more than a few tables in a database. CakePHP uses some skeleton templates, which you can of course customize to your needs, to generate your Models, Views and Controllers. The controllers and views come with the standard CRUD (create, read, update, and delete) functions and can also contain admin functions.

Here I am describe the procedure.

1. You have to connect the server through terminal. example: ssh FTP Username@Host (ssh xyz@192.168.1.1)
2. Please give your FTP password
3. Please provide the PHP path and cakePHP console path.
exp: /usr/bin/php cake/console/cake.php bake
/usr/bin/php -> The server PHP path ( which php )
cake/console/cake.php -> The cakePHP console path
4. You will get the message
Welcome to CakePHP v1.3.0.0 Console
—————————————————————
App : app
Path: /var/www/html/project/app
—————————————————————
Interactive Bake Shell
—————————————————————
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[Q]uit
What would you like to Bake? (D/M/V/C/P/Q)
>

Here you will find the complete instruction how to Bake.

Any help is appreciated. :D

Download jquery banner

http://dev.lousyllama.com/rotating-banner/

http://dev.lousyllama.com/collapsible-menu/#

Here all the mysql query is here

http://www.artfulsoftware.com/infotree/queries.php?&bw=1366

Mysql command List

http://www.pantz.org/software/mysql/mysqlcommands.html

http://www.databasedesign-resource.com/mysql-stored-procedures.html

http://dev.mysql.com/tech-resources/articles/mysql-storedproc.html

http://www.brainbell.com/tutorials/MySQL/Using_Stored_Procedures.htm

MySql Stored Procedure with php

http://www.macronimous.com/resources/using_stored_procedure_with_mySQL_and_PHP.asp

http://www.databasejournal.com/features/mysql/article.php/3525581/MySQL-Stored-Procedures-Part-1.htm

http://mike-hostetler.com/blog/2007/04/php-5-and-mysql-5-stored-procedures-error-and-solution-qcodo

Rss table,Rss news,Rss feed

http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/

http://ajax.phpmagazine.net/2005/11/ajax_rss_reader_step_by_step_t.html

http://www.the-art-of-web.com/php/rss-example/

http://www.codeproject.com/KB/cs/rssreader.aspx

http://www.w3schools.com/php/php_ajax_rss_reader.asp

http://www.web-development-blog.com/archives/easy-payments-using-paypal-ipn/

http://stackoverflow.com/questions/1776827/php-curl-paypal-sandbox

http://www.webtechnick.com/blogs/view/219/CakePHP_SMS_Component

Importent

http://api11.cakephp.org/controller_8php-source.html

http://bakery.cakephp.org/articles/view/paypal-ipn-instant-payment-notification-plugin-complete-with-paypalhelper

jquery information
this is importent link

http://www.w3schools.com/jquery/jquery_ref_css.asp

$(this).hide()
Demonstrates the jQuery hide() function, hiding the current HTML element.

$(“#test”).hide()
Demonstrates the jQuery hide() function, hiding the element with id=”test”.

$(“p”).hide()
Demonstrates the jQuery hide() function, hiding all

elements.

$(“.test”).hide()
Demonstrates the jQuery hide() function, hiding all elements with.

$(“p.test”).hide() – hides all paragraphs with

jQuery Selectors

Use our excellent jQuery Selector Tester to experiment with the different selectors.
Selector Example Selects
* $(“*”) All elements
#id $(“#lastname”) The element with id=lastname
.class $(“.intro”) All elements with
element $(“p”) All

elements
.class.class $(“.intro.demo”) All elements with and

:first $(“p:first”) The first

element
:last $(“p:last”) The last

element
:even $(“tr:even”) All even elements
:o dd $(“tr:odd”) All odd elements

:eq(index) $(“ul li:eq(3)”) The fourth element in a list (index starts at 0)
:gt(no) $(“ul li:gt(3)”) List elements with an index greater than 3
:lt(no) $(“ul li:lt(3)”) List elements with an index less than 3
:not(selector) $(“input:not(:empty)”) All input elements that are not empty

:header $(“:header”) All header elements

:animated All animated elements

:contains(text) $(“:contains(‘W3Schools’)”) All elements which contains the text
:empty $(“:empty”) All elements with no child (elements) nodes
:hidden $(“p:hidden”) All hidden

elements
:visible $(“table:visible”) All visible tables

s1,s2,s3 $(“th,td,.intro”) All elements with matching selectors

[attribute] $(“[href]“) All elements with an href attribute
[attribute=value] $(“[href='#']“) All elements with href attribute value=”#”
[attribute!=value] $(“[href!='#']“) All elements with href attribute value<>”#”
[attribute$=value] $(“[href$='.jpg']“) All elements with href attribute value containing “.jpg”

:input $(“:input”) All elements
:text $(“:text”) All elements with type=”text”
:password $(“:password”) All elements with type=”password”
:radio $(“:radio”) All elements with type=”radio”
:checkbox $(“:checkbox”) All elements with type=”checkbox”
:submit $(“:submit”) All elements with type=”submit”
:reset $(“:reset”) All elements with type=”reset”
:button $(“:button”) All elements with type=”button”
:image $(“:image”) All elements with type=”image”
:file $(“:file”) All elements with type=”file”

:enabled $(“:enabled”) All enabled input elements
:disabled $(“:disabled”) All disabled input elements
:selected $(“:selected”) All selected input elements
:checked $(“:checked”) All checked input elements

$(“#test”).hide() – hides the element with id=”test”

jQuery Element Selectors

jQuery uses CSS style selectors to select HTML elements.

$(“p”) selects all

elements

$(“p.intro”) selects all

elements with.

$(“p#demo”) selects the

element with id=”demo”.
jQuery Attribute Selectors

jQuery uses XPath style selectors to select elements with given attributes.

$(“[href]“) select all elements with an href attribute.

$(“[href='#']“) select all elements with an href value=”#”.

$(“[href!='#']“) select all elements with an href attribute<>”#”.

$(“[href$='.jpg']“) select all elements with an href attribute containing “.jpg”.

$(“ul li:first”) The first

element of each

$(“[href$='.jpg']“) All elements with attribute href containing “.jpg”
$(“div#intro .head”) All elements with

jQuery Effects – From This Page
Function Description
$(selector).hide() Hide selected elements
$(selector).show() Show selected elements
$(selector).toggle() Toggle (between hide and show) selected elements
$(selector).slideDown() Slide-down (show) selected elements
$(selector).slideUp() Slide-up (hide) selected elements
$(selector).slideToggle() Toggle slide-up and slide-down of selected elements
$(selector).fadeIn() Fade in selected elements
$(selector).fadeOut() Fade out selected elements
$(selector).fadeTo() Fadeout selected elements to an opacity
$(selector).animation() Run a custom animation on selected elements

Changing HTML Content
$(selector).html(content)
The html() function changes the contents (innerHTML) of matching HTML elements.

$(selector).prepend(content)
The prepend() function “prepends” content to the inside of matching HTML elements.

jQuery HTML Manipulation – From This Page
Function Description
$(selector).html(content) Changes the (inner) HTML of selected elements
$(selector).append(content) Appends content to the (inner) HTML of selected elements
$(selector).prepend(content) “Prepends” content to the (inner) HTML of selected elements
$(selector).after(content) Adds HTML after selected elements
$(selector).before(content) Adds HTML before selected elements

jQuery CSS Functions – From this Page
CSS Properties Description
$(selector).css(name,value) Set the value of one style property for matched elements
$(selector).css({properties}) Set multiple style properties for matched elements
$(selector).css(name) Get the style property value of the first matched element
$(selector).height(value) Set the height of matched elements
$(selector).width(value) Set the width of matched elements

jQuery Effects Functions
Hide / Show Description
$(selector).show(speed,callback) Show selected elements
$(selector).hide(speed,callback) Hide selected elements
$(selector).toggle(speed,callback) Toggle hide and show for selected elements

Slide
$(selector).slideDown(speed,callback) Slide-show selected elements by adjusting height
$(selector).slideUp(speed,callback) Slide-hide selected elements by adjusting height
$(selector).slideToggle(speed,callback) Toggle slide-hide and slide-show for selected elements

Fade in / out
$(selector).fadeIn(speed,callback) Fade in selected elements to full opacity
$(selector).fadeOut(speed,callback) Fade out selected elements to zero opacity
$(selector).fadeTo(speed,opacity,callback) Fade selected elements to a given opacity

Animation
$(selector).animate(params,duration,effect,callback) Applies a “custom” animation for selected elements
$(selector).stop() Stops running animations on selected elements

jQuery HTML Manipulation Functions

These functions work for both XML documents and HTML documents. Exception: html()
Manipulate Description
$(selector).html(content) Set the content (inner HTML) of selected elements
$(selector).text(text) same as html(), but tags will be escaped

Getting Contents
$(selector).html() Get the contents (inner HTML) of the first selected element
$(selector).text() Get the text content of all selected elements (combined)

Adding Content
$(selector).after(content) Add content after selected elements
$(selector).before(content) Add content before selected elements
$(selector).insertAfter(selector) Add selected elements after selected elements
$(selector).insertBefore(selector) Add selected elements before selected elements

Adding Inner Content
$(selector).append(content) Append content to the inner content of selected elements
$(selector).prepend(content) “Prepend” content to the inner content of selected elements
$(content).appendTo(selector) Append selected elements to the inner content of selected elements
$(content).prependTo(selector) “Prepend” selected elements to the inner content of selected elements

Wrapping
$(selector).wrap(content) Wrap each selected element within a content
$(selector).wrapAll(content) Wrap all selected elements into one content
$(selector).wrapinner(content) Wrap selected inner child contents within a content

Copy, Replace, Remove
$(content).replaceAll(selector) Replace selected elements with selected elements
$(selector).replaceWith(content) Replace selected elements with new content
$(selector).empty() Remove all content and child elements from selected elements
$(selector).remove() Remove all selected elements
$(selector).clone() Clone all selected elements

jQuery CSS Manipulation Functions
CSS Properties Description
$(selector).css(name,value) Set the value of one style property for all selected elements
$(selector).css({properties}) Set multiple style properties for all selected elements
$(selector).css(name) Get the style property value of the first selected element

CSS Size
$(selector).height() Get the pixel height of the first selected element
$(selector).height(value) Set the height of all selected elements
$(selector).width() Get the pixel width of the first selected element
$(selector).width(value) Set the width of all selected elements

CSS Positioning
$(selector).offset() Get the pixel offset of the first selected element
$(selector).offsetParent() Get the parent pixel offset of the first selected element
$(selector).position() Get the top position of the first selected element

$(selector).scrollTop() Get the scroll top offset of the first selected element
$(selector).scrollTop(value) Set the scroll top offset of all selected elements
$(selector).scrollLeft() Get the scroll left offset of the first selected element
$(selector).scrollLeft(value) Set the scroll left offset of all selected elements

HTML2PDF generation

http://www.seven49.net/Web/en/Products/HTML2PDF_Service.htm

jquery validation link

http://www.ferdychristant.com/blog//pages/jQuery%20validation%20code

php 5 new feature

New keywords in PHP5

* final * interface * implements * public * private * protected
* abstract * clone * try * catch * throw * this

PHP5 introduces Garbage Collection

For those who don’t know what a Garbage Collection is; here is a note. Garbage Collection refers to the automatic reclamation of dynamically allocated object or variable that are no longer in accessible when an object or variable goes out of scope. An object/variable can goes out of scope only in the following circumstances:

* when you explicitly unset() it
* assign null to it
* when the method/script has completed its execution

Note on E_STRICT

A new error level, E_STRICT, has been introduced and is especially useful in the context of PHP5 OOPS. It is a useful technique for discovering where your code may need upgrading (from PHP4 to PHP5). Error level E_ALL does not encompass E_STRICT and should be set explicitly in php.ini as follows.

error_reporting = E_ALL | E_STRICT

what is an interface
Interface is a class with no data members and contains only member functions and they lack its implementation. Any class that inherits from an interface must implement the missing member function body. Interfaces is also an abstract class because abstract class always require an implementation. In PHP 5 class may inherit only one class, but because interfaces lack an implementation any number of class can be inherited. In PHP 5, interfaces may declare only methods. An interface cannot declare any variables. To extend from an Interface, keyword implements is used. PHP5 supports class extending more than one interface.

interface interfacename
{
function name()
function name1()
}

class temp implements interfacename
{
public function name
{

}
}

Example1 – Interface Class in PHP5
< ?
interface employee
{
function setdata($empname,$empage);
function outputData();
}

class Payment implements employee
{
function setdata($empname,$empage)
{
//Functionality
}

function outputData()
{
echo “Inside Payment Class”;
}
}

$a = new Payment();
$a->outputData();
?>
Example2 – Combining Abstract Class and Interface Class
< ?
interface employee
{
function setdata($empname,$empage);
function outputData();
}

abstract class Payment implements employee //implementing employee interface
{
abstract function PaymentInfo();
}

class PaySlip extends Payment
{
function collectPaySlip()
{
echo “PaySlip Collected”;
$this->outputData();
}

function outputData()
{
echo “Inside PaySlip Class”;
}

function PaymentInfo()
{
echo “Inside PaySlip Class”;
}

function setData($empname,$empage)
{
//Functionality
}
}
$a = new PaySlip();
$a->collectPaySlip();
?>

DIQ,Drupal Interview question and answer

http://drupal-interview-questions.blogspot.com/

english speaking URl

http://sawaal.ibibo.com/computers-and-technology/on-line-spoken-english-websites-462702.html

Posted by Quasar Rabbani at 3:22 AM 0 comments

After several years developing software, I have acquired a very a strong opinion on how software should be developed, I actually have come to the conclusion that everything boils down to 10 principles, that if well implemented, will make any software development successful.

1.- Customer first.

“If we don’t take care of the customer… somebody else will.”

Customer first means focusing from a customer perspective on real value for the product being developed, other aspects as: contracts, requirements, technologies… should take a secondary role in the project.

Not focusing on the customer in one the top 5 five non technical mistakes made by programmers.

2.- Code quality.

Even though code quality is something very subjective, (all code is crap), it drives many important aspects as: how hard is to maintain the application or how hard is to take on board a new developer.

In my opinion, the main indicators for code quality are: simplicity, readability, robustness and testability. Other qualities as performance or extensibility, if not required, will over engineer your application.

3.- Empowerment.

People are the most valued resource in software development, not the technologies. They are the ones that make the difference between a mediocre product and an excellent product, but they need to be empowered

Empowerment is the process where people is encouraged to be proactive and take decisions. Some of the most effective mechanisms to empower are: coaching, pairing or delegating.

There is an excellent article from Tony Morgan explaining the difference between a classic delegation approach and empowerment.

empowerment

4.- Continuous integration.

Integration is, from my experience, a major issue in software development. Waiting to integrate at the end of the project or after a big chunk of functionality is completed, is always a traumatic process.

Continuous integration is the process that guarantees that every piece of code committed is automatically integrated in the system. Remember that continuous integration goes beyond continuous compilation.

This article from Martin Fowler, is one of the best references online about continuous integration.

5.- Iterations.

Iterations provide continuous feedback. Continuous feedback is important because it reduces the amount of uncertainty in software development.

While iterations are usually only related to agile methodologies, it is important to remember that there are other methodologies as RUP which also use iterations and they are not part of the agile family.

6.- Automated testing.

Allows refactoring and iterations, provides confidence and if well implemented, enhances the correctness of the final product. To automate tests you may consider some facts about testing and some advices on how to write a good test suite.

7.- Refactoring.

No matter how much care you put on coding, on your first attempt, you are going to be wrong. Refactoring is the practice by which we keep changing the code to meet the changes necessary to introduce in the system.

8.- Informal architecture.

Big design upfront (BDUF), unless you are NASA and can expend 50-60% percent of your project time on it, is a complete waste, but so it is coding without any preparation. Informal architecture is a compromise solution where architecture is discussed in an ongoing basics and is persisted in light documents, boards or similar.

9.- Communication.

Software development is ONLY about communication. The customer explains to the software development team what he wants to accomplish so that the software development team can explain it through code to a computer.

requirements-communication

10.- Avoid waste.

Waste accounts is one of the major productivity killers in software development: unnecesary meetings, unnecessary requirements, unnecesary process, unnecesary documentation, being some of the most common and dangerous.

PHP has a collection of environment variables, which are system defined variables that are accessible from anywhere inside the PHP code. All of these environment variables are stored by PHP as arrays. Some you can address directly by using the name of the index position as a variable name. Other can only be accessed through their arrays.

Some of the environment variables include:

$_SERVER – Contains information about the server and the HTTP connection. Analogous to the old $HTTP_SERVER_VARS array (which is still available, but deprecated).
$_COOKIE – Contains any cookie data sent back to the server from the client. Indexed by cookie name. Analogous to the old $HTTP_COOKIE_VARS array (which is still available, but deprecated).
$_GET – Contains any information sent to the server as a search string as part of the URL. Analogous to the old $HTTP_GET_VARS array (which is still available, but deprecated).
$_POST – Contains any information sent to the server as a POST style posting from a client form. Analogous to the old $HTTP_POST_VARS array (which is still available, but deprecated).
$_FILE – Contains information about any uploaded files. Analogous to the old $HTTP_POST_FILES array (which is still available, but deprecated).
$_ENV – Contains information about environmental variables on the server. Analogous to the old $HTTP_ENV_VARS array (which is still available, but deprecated).

The code to use the environment variables will be as follows:

<?php
// moderate shortcut
$newVar = $_COOKIE["myFirstCookie"];

// full version
$newVar = $HTTP_COOKIE_VARS["myFirstCookie"];
?>

An array is a way of holding multiple closely-related values, such as the test scores of all students in a class. An array is made up of a key and a value, and the key points to the value.

There are two types of arrays: Indexed array and Associative array. Their difference is in the way the key is specified. Let’s look at both of them:

Indexed Array

In an indexed array, the keys are numeric and starts with 0, and the values can be any data type. The following shows two ways of assigning values to an indexed array:

$friends = array(“Sophie”,”Stella”,”Alice”);

This is equivalent to the following:

$friends[0] = “Sophie”;
$friends[1] = “Stella”;
$friends[2] = “Alice”;

Associative Array

In an associative array, the keys are not necessarily numeric, and even when they are numeric, not necessarily in any order. So, when you are putting data into an associative array, you’ll need to make sure you specify both the key and the value:

$student_score = array(“John”=>80, “Matt”=>90, “May”=>85);

This is equivalent to the following:

$student_score["John"] = 80;
$student_score["Matt"] = 90;
$student_score["May"] = 85;

Multidimensional Array

The arrays in the examples above are 1-dimensional. However, there will be times when multidimensional arrays are desired. What’s a multidimensional array? That’s when you have arrays of arrays. Let’s look at an example below:

$array1 = array (10,15,20);
$array2 = array (110,115,120);
$array3 = array (210,215,220);
$big_array = array ($array1, $array2, $array3);

$big_array is now a 2-dimensional array. For example, if you have the following output code:

print {$big_array[1,2]};

The output would be  120

Remember to use { } when you are accessing the value of a multidimensional array.

Follow

Get every new post delivered to your Inbox.