Rockers Technologies – The Latest buzz In The World Of PHP Development Services | PRLog


Rockers Technologies – The Latest buzz In The World Of PHP Development Services | PRLog.

Rockers Technologies introduces the latest range of PHP development services to assist customers in developing various applications. Based in Atlanta, the company has been offering some of the finest solutions at affordable rates. Their services include PHP custom web application development, open source development, PHP customization, WordPress development and joomla development. With vast experience in the field of PHP programming, web based application and PHP web application SaaS, the company seems to have interesting plans in mind to reach out to the global market in the most efficient way. The company has expertise in the PHP framework as well, which includes code igniter framework, cakephp framework, Yii framework and Zend framework.

Because the company believes in originality, it does not outsource its work. It has been functioning on its won in India, having its team of web developers, designers and programmers working for the company. As an efficient PHP development service provider, Rockers Technologies aims to develop some of the most sophisticated and word-class designing solutions that will help customers in lining up with all the basic requirements of their company. The company emphasizes on quality as its forte and perfection as its pride.  Needless to say, at Rockers Technologies you can expect simply the best solutions for your web designing and development requirements.

Without making too many claims, Rockers Technologies simply wants to provide brilliant services and strives hard to improve. The company wants to build confidence and trust, which paves the rod to success. The owners of the company definitely have certain expectations, which they believe they can only earn as they grow.

The working techniques of Rockers Technologies have been simple and transparent. Started in the year 2008, the company was coined by Mr. Nishesh Jambudi from India. With the commitment of excellent services and product line, the team that was built by the owners has been working dedicatedly on the assigned projects through the past few years. The company has handles several projects successfully, including some complicated projects too. Meeting the requirements and delivering the task on time is their motto. Because they have an expert team to bank on, the company has included all types of PHP development framework, such as Zend programming, Codeigniter programming and Cakephp programming. Each of the projects is led by an experienced Project Manager. Each team includes a project coordinator, developer, business analyst and tester.

The company follows a methodic approach to provide excellent solutions.

For more information, visit: http://rockersinfo.com/

Advertisements

jQuery Toggle Handlers(Image Resize)


jQuery provides a few event-related convenience methods that makes it easier to use interaction behaviour 
on our pages.
toggle() method establishes a circular progression of click event handlers that are applied on successive click events.
On first click event first registered handler is called, on second click, the second is called, on third third is called and so on..
The function given below demonstrates a progression of event handlers. 

<script type="text/javascript">
      $(function(){

        $('img[src*=small]').toggle(
            function() {
              $(this).attr('src',
                $(this).attr('src').replace(/small/,'medium'));
            },
            function() {
              $(this).attr('src',
                $(this).attr('src').replace(/medium/,'large'));
            },
            function() {
              $(this).attr('src',
                $(this).attr('src').replace(/large/,'small'));
            }
        );

      });
    </script>

 Using it with HTML we have:
<!DOCTYPE html>
<html>
  <head>
    <title>jQuery .toggle() Example</title>
    <link rel="stylesheet" type="text/css" href="../styles/core.css"/>
    <script type="text/javascript" src="../scripts/jquery-1.4.js"></script>
    <script type="text/javascript">
      $(function(){

        $('img[src*=small]').toggle(
            function() {
              $(this).attr('src',
                $(this).attr('src').replace(/small/,'medium'));
            },
            function() {
              $(this).attr('src',
                $(this).attr('src').replace(/medium/,'large'));
            },
            function() {
              $(this).attr('src',
                $(this).attr('src').replace(/large/,'small'));
            }
        );

      });
    </script>
    <style type="text/css">
      img {
        cursor: pointer;
      }
    </style>
  </head>

  <body>

    <div>Click on the image to change its size.</div>
    <div>
      <img src="hibiscus.small.jpg" alt="Hibiscus"/>
    </div>  </body>
</html>

small




















large

Project Euler problem-48 last 10 digits in 1^1 + 2^2 + 3^3 + …….. + 1000^1000?


This is the solution to problem 48 of project euler:

    LANGUAGE USED: PHP


<?php

$str = ‘ ‘;

for($i = 1; $i <= 1000; $i++)
{
$str = bcadd($str, bcpow($i, $i)); // bcpow takes arguments as a string.
}
echo substr($str, -10);  //substr function prints the last 10 values in the substring

?>

Calculating sum of digits in “100!”


C program for calculating sum of digits in 100!

#include<stdio.h>
#define MAX 10000
void factorialof(int);
void multiply(int);
int length = 0;
int fact[MAX];

int main(){
int num;
int i,k ;
long int r, sum=0;

printf(“Enter number : “);
scanf(“%d”,&num);

fact[0]=1;

factorialof(num);
for(i=length;i>=0;i–)
{
sum=sum+fact[i];
}
printf(“sum of digits is: %d”, sum );
return 0;
}
void factorialof(int num)
{
int i;
for(i=2;i<=num;i++)
{
multiply(i);
}
}
void multiply(int num)
{
long i,r=0;
int arr[MAX];
for(i=0;i<=length;i++)
{
arr[i]=fact[i];
}

for(i=0;i<=length;i++){
fact[i] = (arr[i]*num + r)%10;
r = (arr[i]*num + r)/10;

}
if(r!=0){
while(r!=0){
fact[i]=r%10;
r= r/10;
i++;
}
}
length = i-1;
}

Generating Images using PHP


The four basic steps in creating an image in PHP are-

  1. Creating a canvas image on which to work.
  2. Drawing shape,text on that canvas.
  3. Output the final graphic obtained.
  4. Clean the resources.

 

the code for same will be like this—>

lets name it createimage.php

<?php
// set up image
$height = 200;
$width = 200;
$im = imagecreatetruecolor($width, $height); //this will create a canvas, height and width are passed as parameters
$white = imagecolorallocate ($im, 255, 255, 255); //this function will select colour for your image
$blue = imagecolorallocate ($im, 0, 0, 64);
// draw on image
imagefill($im, 0, 0, $blue); // paint a blue background on which to draw
imageline($im, 0, 0, $width, $height, $white); //draws a line from top left corner to bottom right corner
imagestring($im, 4, 50, 150, ‘Sales’, $white); // this function adds a label to the graph
// output image
Header (‘Content-type: image/png’);
imagepng ($im); //ends the output to the browser in PNG format

// clean up
imagedestroy($im);
?>


Reversing a character string without using library function “strrev()”


This post is in response to my friend Anubhav Singh‘s query regarding how to reverse a character string without using the standard library function strrev(), and is a very common question asked in the technical round for TCS, Wipro, Infosys etc.

Hope this will help!!

/* Webdevil’s BLOG POST */
#include<stdio.h>
#include<string.h>
main()
{
char str[50], revstr[50];  //declare a character array to store the input string and reverse string
int i=0,j=0;
printf(“Enter the string to be reversed : “);
scanf(“%s”,str);
for(i=strlen(str)-1;i>=0;i–)
{
revstr[j]=str[i];
j++;
}
revstr[j]=”;
printf(“Input String : %s”,str);
printf(“\nOutput String : %s”,revstr);

}

The output will be like this ->

Queries are most welcome…!!

WEB APPLICATIONS-2-tier or 3-tier architecture


Let’s for an example, I created a web application that which the students of College of Technology, Pantnagar use to find their respective marks in different subjects.
The database of marks resides on the local server of College and application resides on client’s(i.e the students) computer. When a student wants to know his marks, he uses the application interface to access his personal account. This program then queries the database and application returns with the respective marks of a particular student.

This is the example of a 2-tier architecture. Here the 2-tiers are:

  1. Data Server– database serves the data based on the SQL queries i used in my application code.
  2. Client Application– application on students computer presents the data from database in a readable format.

Now there won’t be a problem until the users were in less numbers, problem arises when the number of students using this application is very large!!

Because every time a student queries the client application, the server has to serve up large queries for the client application to manipulate which is a very hectic task for server as there will be an enormous drain on the n/w resources.

So, now we create a 3-tier architecture by inserting another program at the server level, known as server application. Now the client application will not query the database directly but will first query the server application which will further  query the data server.

Now when student wants to know his/her marks the following  will occur:

  1. The student asks the client application.
  2. The client application asks the server application.
  3. The server application queries the data server.
  4. The data server serves a record with all the student’s grades.
  5. The server application does all the calculations to determine the marks.
  6. The server application sends final marks to the client application.
  7. The client application displays the final grade for the student.

Note that here the client application is your WEB BROWSER. Server application(3rd tier) is the ASP code which queries the database.