Archive for the ‘Uncategorized’ Category

24
Jan

NSAssert is used to generate an error and display a user defined message if our assumption is false or the given condition is false.

for example consider the given code.

int j = 10/i;

if the value of i is zero then the application will crash silently.
we can check that i is not zero using the following line added before it.

NSAssert( i==0, " division by zero.");

if i is zero, the message in NSAssert will be displayed before the application crashes. So we can debug the program easily. This really helps if our code has a large number of lines.

07
Jan
//Code to make your sprite completely visible
spriteName.visible = 1;

//Code to make your sprite completely invisible
spriteName.visible = 0;

, ,

25
Jun

What is ANN?

ANN is an information processing concept which is inspired from one of the most powerful and complex thing known to mankind-The Human Brain.The ANN is based on how the human brain processes information.The key element of this concept is the novel structure of the information processing system. It is composed of a large number of highly interconnected processing elements (neurons) working in unison to solve specific problems.

Need for ANN

Conventional computers are capable of performing logical and arithmetic operations at an exponential rate.This is because they are able to process information sequentially,one after the other at a high speed.The range of their processing may be upto a million instructions per second.Human brains are comparatively slow in this regards. But consider higher level information processing such as image processing, speech recognition,pattern matching etc.In these type of information processing the Human brain is considered to be more efficient.Computers are rather slow in these regards.The reason for these has been suggested as the highly parallel nature of human brain.Image,speech processing requires a high degree of parallel processing which is rather not obtained easily in computers.With the highly developed nature of information, conventional computer processing wont be enough how much ever it’s computing ability is increased.The ANN models the computers as a human neural structure.ANN doesn’t actually creates a computer with ‘Human Brain’ but it exaggerates certain features of human brain whereas suppresses certain other.Neural networks should be considered as a compliment to conventional computers rather than considering it as a competition to them.The most important feature of neural network is that it can train itself.Learning from changing environment is considered to be a powerful feature of neural network as there is no need of reprogramming them.It can be the basis for artificial intelligence.Another important feature of neural networks is that if at all an element of network breakdown it wont effect the overall performance of the network.This is same in the case of human neurons.

Applications of ANN

Neural networks have been successfully applied to broad spectrum of data-intensive applications.Some of them are listed below

    Pattern Recognition
    Recipes and Chemical Formulation Optimization
    Chemical Compound Identification
    Physical System Modeling
    Ecosystem Evaluation
    Polymer Identification
    Recognizing Genes
    Botanical Classification
    Signal Processing: Neural Filtering
    Biological Systems Analysis
    Ground Level Ozone Prognosis
    Odor Analysis and Identification.

Besides these ANN have come up with applications in the fields like finance, medicine, industry,education,data mining,sales and marketing,operational analysis,marketing etc..

Even though most of the researches regarding the ANN in is a budding stage they are sure to produce far reaching development aiding the mankind..

25
Jun
Introduction
There are many different methods for solving the Rubik’s cube. They can be divided into two broad categories: layer methods and corners first methods (and there are sub-categories within these broad categories). The method I use for speedsolving is a layer based method.
Terminology
When describing the solution for the 2nd and 3rd layers, standard cube notation will be used. Here’s what you need to know to read it:
F = front face,   B = back face,  R = right face,  L = left face,  U = up face, D = down face
In addition to a letter, each move may be accompanied by an apostrophe or the number two:
-A letter by itself means turn that face 90 degrees clockwise (eg. F).
-A letter followed by an apostrophe means turn that face 90 degrees anti-clockwise (eg. F’).
-A letter followed by the number 2 means turn that face 180 degrees (direction is irrelevant), (eg. F2).
So R U’ L2 is shorthand for “turn the right face 90 degrees clockwise, then turn the up face 90 degrees anti-clockwise, then turn the left face 180 degrees”. When thinking whether to turn clockwise/anti-clockwise, imagine that you are looking directly at the particular face you are turning.
Step 1: First Layer
The cube is assumed to be scrambled. The first thing to do is to choose a color, say white (it tends to stand out from the other colors on the cube). It’s also a very good idea to always do a specific color first, since you will remember which colors are adjacent, which speeds things up considerably.
The first step is to form a cross on the top face of the cube. Orient the cube so that the white center piece is on top.There should now be a white cross formed on the top of the cube.
The first layer is solved in two stages:
1.Form the cross
2.Insert the 4 first layer corners (each corner is inserted individually)
I believe that the first layer should be done intuitively. You need to understand it and solve it without learning algorithms.
stage 1                                                      stage 2
For flipping two pieces apply   F′U L′ U′
Step 2: Middle edge pieces
After the first step turn the top layer of the cube to match a “before” picture below. This will make an upside down “T” with one color. We will move that top middle piece to the correct spot on the middle row in this step. There are two ways to do this depending on which side the “T” is on when you’re looking at the cube. Make sure to find the correct starting picture before doing this step. Repeat this step with all four
fig 1                                                    fig 2
for fig 1 simply apply  U′ LULUFU′ F′R
for fig 2 simply apply  URU′ R′ U′ F′U
Step 3:Solving the Top Cross
In this step, the goal is to get the top face of the cube to have a cross.This pattern may need to be applied up to at most four times
stage 1         stage 2           stage 3         stage 4
stage 4  is obtained by applying   FRUR′ U′ F′ repeatedly.
Step 4:Solving the Top, Middle Pieces
Once you have the cross at the top, the next step is to get all of the top middle pieces to be on the correct sides. This step, like the previous step, will most likely need to be repeated several times. A useful tip is that, when you have two adjacent sides in the correct place, rotate the cube in your hands so that those two sides are in the back right and front right positions, then repeat this move once more. After doing this, the top pieces will all be in the correct order but will need to be rotated around the cube until they are on their correct sides. (HINT:Apply RUR′ URUUR′  repeatedly)
Step 5:Last Layer
The first layer is solved in two stages:
1.Permute the corners. At this step, our goal is to place the corners of the last layer in their correct position, regardless of their orientation((HINT:Apply URU′ L′UUR′U′L repeatedly)
2.Orient the corners:do the sequence R′ D′RD  to get to the original configuration
Congratulations, your cube should now be solved!

11
Jun

Programming Approaches

There are different ways a developer can approach a product/project development – depending on the requirements, target audience, time and budget.

These methodologies help develop simple and useful systems faster; meeting and exceeding customer expectations.

Below, I have tried to explain some of the popular acronyms used by programmers during application development:

  • BDD: Behavior Driven Development
    This is a relatively new, Agile Software Development concept, where the developers focus more on why the code is needed? what is its use? rather than the technical details of the code.
    Mocks are used to describe modules not yet written, examples are used to describe developed modules, test cases are in layman language – understandable by stakeholders. This method needs extensive feedback from the actual users at the release stage.
    Here, features or behavior of the software is described with “should” – allowing the feature to be questioned; “ensure” is used to describe the side effects of the feature – which makes it easier to differentiate it from the behavior of the feature.

  • BDUF: Big Design Up Front
    This methodology goes again most of the popular programming philosophies. Here the software’s design has to be discussed in detail, complete and perfect with every single feature decided well in advance before the actual development/implementation can start. It is often associated with waterfall model. Proponents of BDUF say that the cost of fixing a requirement flaw in the requirement gathering stage is much less than fixing it later in the implementation phase.

  • DRY: Don’t Repeat Yourself or Duplication is Evil (DIE)
    This is mostly aimed at developers – any piece of code, database schema etc that you write must be re-usable or simply put, avoid redundancy. Hence, in DRY, modification of an element will not affect logically unrelated code.

  • KISS: Keep It Simple, Stupid or Keep It Short and Simple
    This acronym is quite self explanatory. It states that simplicity should be the goal in any design. When things are simple, its easy to understand and hence, easy to use. Simple designs are also easy to debug and fix!

  • POGE: Principle of Good Enough
    This rule favors quick-and-easy designs which once deployed, can be evolved if and when needed by the users. A simple, bare-bone application that gets the job done well is good enough. A perfect example of this methodology would be the projects developed by 37signals.com. You can read all about their “Getting Real” project development methodology here: http://gettingreal.37signals.com/

  • RAD: Rapid Application Development
    In this method there is minimal planning and coding starts almost immediately. The “planning” of software development using RAD is interwoven with software coding itself. This way of rapid prototyping without extensive pre-planning generally allows software to be written much faster and makes it easier to change requirements. Most web development companies use this methodology to attract customers since, the customer can almost instantly see what their project will look like.
    Various popular flavors of RAD are: Agile software development, SCRUM, XP, Joint Application Development (JAD), Lean Software Development (LD)

  • XP: eXtreme Programming
    It is an Agile Software development methodology develops software in small quick iterations allowing room for change in requirements. All normal processes of software development are pushed to their extreme levels – lots of feedback from users, continuous releases, testing, bug fixing and other changes. It is based on the values of simplicity, communication, feedback and courage.

  • SCRUM: It’s not an acronym
    I cannot end this article without mentioning SCRUM. It is another Agile development methodology very similar to XP – both have short development time with several iterations.
    The main difference between SCRUM and XP is that SCRUM concentrates more on the management side of a project while XP focuses more on defining the engineering practices to be followed. For example, while XP specifies practices like test driven development, re-factoring, pair programming, simple design, whole team, SCRUM concentrates more on managing requirements. SCRUM has self organizing teams which are not affected by requirement changes during a sprint (shot development time in SCRUM) – the client will have to wait till the end of the sprint to make changes. Since, SCRUM doesn’t enforce any engineering practices it can be used to implement projects beyond software development.

These are some of the common acronyms that I have come across during developing various projects. Each method has its advocates and critics – please feel free to comment!

, , , , , , , , , ,

02
Jan

Firstly we have to download the setup file for the Zoundry raven from the site http://www.zoundryraven.com/

Install the Zoundry to your PC same as installing other softwares.

z3.jpg

Once the installation is finished, it will ask for a folder location to work with( Note: the folder that you are giving should be empty).

z5.jpg

Now we have to create an account with the zoundry, it will ask for our blog url.

z7.JPG

We have to provide our account information to get access to our blog.

z8.JPG

When its finished, we will be able to see our posts that we have added if any.

.z2.jpg

We can also publish new post if needed by the blog editor

z1.jpg