Archive for the ‘Uncategorized’ Category

Android and Linux re-merge into one operating system

Tuesday, March 20th, 2012

QQ截图20120320101317

Android has always been Linux, but for years the Android project went its own way and its code wasn’t merged back into the main Linux tree. Now, much sooner than Linus Torvalds, Linux’s founder and lead developer, had expected, Android has officially merged back into Linux’s mainline.

The fork between Android and Linux all began in the fall of 2010, “Google engineer Patrick Brady stated that Android is not Linux” That was never actually the case. Android has always been Linux at heart.

At the same time though Google did take Android in a direction that wasn’t compatible with the mainstream Linux kernel. As Greg Kroah-Hartman, the maintainer of the stable Linux kernel for the Linux Foundation and head of the Linux Driver Project, wrote in Android and the Linux kernel community, “The Android kernel code is more than just the few weird drivers that were in the drivers/staging/androidsubdirectory in the kernel. In order to get a working Android system, you need the new lock type they have created, as well as hooks in the core system for their security model. In order to write a driver for hardware to work on Android, you need to properly integrate into this new lock, as well as sometimes the bizarre security model. Oh, and then there’s the totally-different framebuffer driver infrastructure as well.” That flew like a lead balloon in Android circles.

This disagreement sprang from several sources. One was that Google’s Android developers had adopted their own way to address power issues with WakeLocks. The other cause, as Google open source engineering manager Chris DiBona pointed out, was that Android’s programmers were so busy working on Android device specifics that they had done a poor job of co-coordinating with the Linux kernel developers.

Source: http://www.zdnet.com/blog/open-source/android-and-linux-re-merge-into-one-operating-system/10625?tag=content;search-results-river

Did you like this? Share it:

How to create paging using PHP? – Part I

Monday, August 1st, 2011

In the previous “How To” tutorial, I demonstrated how to display table with alternative row styles using PHP and CSS. (View Topic: How to create a table with alternative row style using PHP? The previous tutorial displays around one hundred randomly generated numbers in one table.) I will use the code from the previous material to demonstrate how to create paging using PHP.

Step 1: Display a part of the $tblData array. The array contains 100 randomly generated integers. The code below will look like figure 1.

$self = $_SERVER['PHP_SELF'];
$offset = 0; //lowerbound
$limit = 10; //number of rows displayed
// insert more code here in step 3
$bound = $offset + $limit; //upperbound

//create array with 100 randomly generated integers
for($i = 0; $i < 100; $i++)
	$tblData[] = rand();

echo "<table width=200 >";
echo "<tr><td>Array Index</td>";
echo "<td>Random Numbers</td></tr>";

while($offset < $bound)
{
	echo "<tr class=".(($offset & 1)? 'odd':'even');
        echo " width=60>";
	echo "<td>".($offset+1)."</td>";
	echo "<td>".$tblData[$offset]."</td>";
	echo "</tr>";
	$offset ++;
}
echo "</table>";

Figure 1: display the first 10 elements in $tblData
Display First Ten Elements From tblData Array

Step 2: Generate Page Numbers
The code below would display the page numbers and generate url links (view figure 2).

//get max pages
$maxPages = ceil(count($tblData)/$limit);

//display the page number with link format ?page=1
for($i=1; $i< $maxPages; $i++)
echo " <a href=\"$self?page=$i\"> " .$i." </a> ";

Figure 2: Display Page Numbers And URL
Display Page Numbers And URL

Step 3: Shift Data Displayed
Notice from Figure 2, even though I have generated the page numbers with their relative url, the data is still the same as from figure 1. So to shift the data displayed when click on a different page, the following code is needed.

if(isset($_GET['page']))
{
	$page = $_GET['page'];
	$offset = $limit * ($page - 1);
}

Now we have a simple php paging system. So to put it all together!

<html>
<head>
<style>
.odd{ background-color:#CCC;}
.even{ background-color:#EEE;}
</style>
</head>
<body>
<?php
$self = $_SERVER['PHP_SELF'];
$offset = 0; //lowerbound
$limit = 10; //number of rows displayed

if(isset($_GET['page']))
{
	$page = $_GET['page'];
	$offset = $limit * ($page - 1);
}

$bound = $offset + $limit; //upperbound

//create array with 100 randomly generated integers
for($i = 0; $i < 100; $i++)
	$tblData[] = rand();

//display array in a table
echo "<table width=200 >";
echo "<tr><td>Array Index</td>";
echo "<td>Random Numbers</td></tr>";

while($offset < $bound)
{
	echo "<tr class=".(($offset & 1)? 'odd':'even');
        echo " width=60>";
	echo "<td>".($offset+1)."</td>";
	echo "<td>".$tblData[$offset]."</td>";
	echo "</tr>";
	$offset ++;
}

//get max pages
$maxPages = ceil(count($tblData)/$limit);

//display the page number with link format ?page=1
for($i=1; $i<= $maxPages; $i++)
echo " <a href=\"$self?page=$i\"> " .$i." </a> ";

?>
</body>
</html>
Did you like this? Share it:

Call recording system for small and medium business – What its benefits?

Wednesday, June 29th, 2011

Guess Blog Article - Author: Adi

[Unisoftchina is not responsible for the product below.]

The requirements and needs of small and medium sized businesses today are no different from the larger firms. Small and medium call centers face the same problems for expansion as that of the large firms. This can be well explained by the need of call recording tools for every business, whether small or large.

 

While large businesses have the capital to go for the most enhanced and effective call recording tools, small or medium businesses too look for effective tools of call recording available at reasonable prices. After all, no call center would go for cheaper tools that may not even work effective in the long run. The benefits of call center recording could be said to be more for the small and medium businesses compared to the larger ones. This is because of the very fact that small and medium businesses have more scope for expansion as compared to the larger ones who are already on greater heights of success and they, in most cases, look to maintain their position as their scope of further expansion is quite less. One can define a good and effective call recording package as those tools that are not only cost effective but are powerful enough to help businesses meet the requirements and meet the optimum customer service level. Effective call recording software not only proves to be a helping hand in training of the agents but indirectly, also helps in handling customer complaints in an efficient way. It is because of the advancement in technology in today’s time that even the small and medium businesses are able to reap up the benefits of call recording tools that were earlier enjoyed only by the large call centers.

 

Because of the cost factor, most of the small call centers are going with the VoIP option. Not only are the VoIP solutions cost effective but have impressive features on offer for the business compared to the phone systems of earlier times. Going for the VoIP solutions not only offer a low initial cost for the small and medium businesses but also a low long term cost. Apart from VoIP, there are other cost effective call recording tools as well. These include XTR digital call recording that works on the phenomenon of plug and play. The XTR call recording solution offers high connectivity at lower cost for the small businesses, thereby, helping in faster expansion of the call center. However, if you are running one of those medium businesses who do not mind investing a little more capital initially, the VPI CAPTURE call recording software runs on the same line. The VPI Capture call recording software is well known for its cent percent effectiveness in call recording and data interaction and deal with faulty or bad calls in the most effective manner. Furthermore, for those small and medium businesses that look for advancement in the call recording system from the traditional phone system, VPI Capture call recording software does not demand for a complete system change-out. The best thing about this software is its ability to recognize high-value calls. In a case of high-value calls, all the critical information is automatically sent to the manager so as to deal with the call effectively.

 

The basic motive of any and every call recording software is to gain information for better training of the agents. Working upon the faulty calls and learning from what went wrong is their foremost aim. After distinguishing the negative factors from a faulty call, effective training and call handling solutions are provided to the agents so as to be alert in future. The need for call recording software is more in small and medium businesses in a way that the agents working over there are less efficient compared to the large call centers and thus, require more training comparatively.

 

Did you like this? Share it:

How To Import .sql File in Three Simple Steps

Wednesday, June 29th, 2011

Operating System: Windows

I’m writing this tutorial assuming your already know how to use windows operating system.

  1. If you don’t already have MySQL bin configured, you can access MySQL through the command prompt. First, you should locate your MySQL bin folder, then you need to change the command prompt directory to your MySQL bin folder.
    You can change directory by typing in: cd E:\filepath\mysql\bin
  2.  

  3. Now that you are in the MySQL bin directory,  you can open MySQL by type in the following:  
    mysql -u username -p
    Note: Replace username with your actually MySQL database username and enter your password. Then type in
    use databasename
    Replace databasename with name of the database you are importing the .sql file into.
  4.  

  5. Import .sql File
    Type in the following:  SOURCE filedirectory/filename.sql
    Note: Replace filepath with the directory path that contains your .sql dump file and replace filename with your actual .sql filename.
  6. Simple right?

    If you are still lost, here is the picture version

Did you like this? Share it:

Is “Outsourcing” a Bad Word in IT Anymore?

Friday, February 25th, 2011

For many people, the word outsourcing evokes images of corporate downsizing, pink slips, and mediocre customer service from foreigners with difficult-to-understand accents. But is outsourcing necessarily an economic evil? Is it only the tool of diabolical CEOs (and other executives) bent only on maximizing profits, or does it have a legitimate place in business?

The answers to these questions, needless to say, have a tremendous effect on one’s view of outsourcing in the context of IT. As companies continue to tighten their budgetary belts in the aftermath of the recent economic downturn and the current sluggish recovery (whose very existence is, at best, debatable), IT outsourcing may be losing some of its negative overtones. The cloud, for instance, is nothing more than IT outsourcing on a grand scale—and it’s on an upward swing.

What’s So Bad About Outsourcing?
An honest and fruitful discussion of any topic requires an understanding of what certain critical terms mean. In this case, what is meant by outsourcing? Outsourcing may mean different things to different people (or organizations), but in its broadest for, outsourcing is delegation of some task or set of tasks to another person or organization. In these terms, it certainly doesn’t seem so bad.
Almost everybody outsources certain tasks. Do you hire an accountant or other individual or company to file your taxes? Then you’re guilty of outsourcing. Do you hire someone to mow your grass? Fix your car? Babysit your children? You’re guilty. But few people see these activities as evil; sometimes—whether for the sake of safety, convenience, or money—hiring someone else to do certain jobs is the best option. Most people, for instance, would do better having the brakes on their cars repaired or replaced by a professional instead of by themselves. Similarly, the time some people would otherwise spend filing taxes is not worth the relatively modest fee for having a professional tax preparer do the work. We all outsource regularly, and no one complains.
Now, consider outsourcing in the context of business. At this level, something changes relative to the level of the individual, and that something has garnered a negative reputation for outsourcing. But is there any difference when a business decides to hire someone else to do work that would otherwise be too expensive, too time consuming, or too difficult to do in house? Why should a business started for the purpose of manufacturing widgets spend its precious time on tasks like filing taxes, cleaning uniforms, and repairing computers?
For some reason, some people have the (often implicit) idea that for any task necessary to running a business, that business should have a full-time employee. Of course, this system is patently impossible for small businesses, many of which cannot afford additional employees or “jacks of all trades.” In the context of large businesses, however, failure to use employees is a violation of truth, justice, and the American way—especially if that business instead uses foreign workers or organizations to do certain work.
This leads to a differentiation that must be made to clarify the issue of outsourcing: not all outsourcing involves foreign workers. (Use of foreign help is often called “offshoring” to differentiate it from domestic outsourcing.) Furthermore, not all outsourcing involves laying off existing employees: some companies may have never hired an IT staff in the first place, and yet they still rely on other organizations to meet their IT needs. And finally, despite jingoistic sentiments that paint offshoring as a slap in the face of America, offshoring is not necessarily wrongheaded.
So, outsourcing is not inherently evil. Like so many business (or personal) strategies, it is a tool that can be used properly or improperly. For historical reasons, outsourcing may have gained its bad reputation owing to association with layoffs of existing employees, reliance on foreign labor, and other circumstances that have gained it political and public disfavor. But what about outsourcing in the realm of IT, specifically?

What Is IT Outsourcing?
Outsourcing of IT is pretty much just what it sounds like: hiring another organization to provide the company with IT resources, thereby eliminating the need to maintain infrastructure and IT personnel in house. That’s simple enough; what’s more complicated, though, is the variety of ways and extents to which IT outsourcing is used. Some companies might outsource a portion of their IT infrastructure or services—they might rely on Gmail, for example, instead of an in-house email system. Others might outsource essentially all of their IT resources to the cloud, essentially just maintaining an Internet connection for workstation access to those resources.
Although some stigma remains regarding IT outsourcing (especially to foreign organizations), that stigma has relented, in part because of a change of terminology. That stigma, following the lines of the discussion above, has revolved around a “loss of American jobs,” company disloyalty to its employees, and similar broad (and sometimes inaccurate) sentiments. So, what happens when the name of a useful or profitable policy gets a bad reputation? Change its name.
In the case of IT, outsourcing has been re-termed the “cloud” and re-presented along with its high-tech trappings. According to CIO.com (“Cloud Computing is Just Outsourcing, Says Forum”), for instance, principal research analyst Adrian Davis of the Information Security Forum stated that the “cloud is just outsourcing. You can rely on knowledge of how you do outsourcing to an extent,” as long as you pay attention to the peculiarities of cloud computing as one particular type of outsourcing. Indeed, the cloud is just another form of outsourcing, as we have defined it: a company hires another company to do certain tasks, rather than doing those tasks in house. From this perspective, the cloud is really nothing new, although it may involve some slightly novel twists on an old theme.
IT outsourcing may involve relatively minor tasks such as web development and hosting, or it may involve more complicated tasks like application development, infrastructure hosting (such as colocation), or technical support. Thus, IT outsourcing can involve hiring outside organizations for small items all the way up to handling a company’s entire IT system.

Who Is Outsourcing?
Whether a company outsources its IT or keeps it in house is usually the product of a variety of factors—although some companies make wiser choices than others. Outsourcing is not limited to large or small companies; some small companies may benefit from in-house IT despite the startup and ongoing operational costs, and some large companies may benefit from outsourcing, allowing them to focus on their core businesses rather than on IT infrastructure. But certain industries face challenges that make outsourcing more or less beneficial. For instance, the financial sector faces regulatory hurdles that make reliance on cloud computing difficult, if not impossible. The health care industry must meet regulatory requirements regarding security and confidentiality of patient records, but it is also seeking to expand availability of those records to allow easier and faster access by authorized health professionals.
But the biggest draw may well be (perceived) savings—usually measured in terms of cost (dollars), but also in terms of time (which often translates to dollars). Imagine your car just broke down. You have two options: fix it yourself, or hire a mechanic to fix it. Taking the car to a mechanic (the outsourcing option) and fixing the car yourself (the in-house option) will likely involve the same (or similar) cost for parts. The difference in cost is the labor of the mechanic. So, fixing it yourself is cheaper, right? Not if your time has any monetary value. In the context of business, an employee who must do a job outside his or her expertise faces a learning curve as well as a lack of experience. And every hour spent on this other task is time not spent on that employee’s area of expertise—meaning lost value. Thus, outsourcing is not necessarily more expensive than the do-it-yourself (in-house) option; in fact, it can potentially be less expensive. Furthermore, hiring a dedicated in-house IT staff may also be more expensive than simply letting another company (who can amortize costs over multiple clients) do the work.
In many ways, then, the question of who is outsourcing cannot be restricted to a specific industry, company size, or company budget. Each company has its own set of goals and restrictions (whether budgetary, regulatory, or practical) that will largely determine whether outsourcing is a viable option.

IT Outsourcing and the Economy
One of the main features of the recent economic downturn is the high unemployment rate—including among IT professionals. This economic reality doesn’t necessarily improve outsourcing’s reputation, but it isn’t necessarily its enemy, either. For instance, a company that outsources (specifically, offshores) IT jobs is likely to receive flak for not hiring American workers, many of whom are having difficulty finding work. But many companies are also facing tight budgets, and taking a cheaper IT route may be the only option in some cases.
Despite the recent economic woes, however, IT outsourcing has not increased greatly. According to CIO.com (“Goodbye Outsourcing, Hello Insourcing: A Trend Rises”), for the past year, “most outsourcing analysts agree that the level of IT services deals sealed has held relatively steady, year-over-year. The total value of outsourcing contracts signed in 2010 was $62.4 billion, according to outsourcing consultancy TPI, a figure that’s pretty consistent with their last five years of total contract value data.” In other words, throughout the recession, IT outsourcing has remained largely flat, at least according to this metric.
Computerworld (“As Cloud Grows, IT Hiring Flatlines”) notes that “Corporate IT departments are increasing their spending on hardware and cloud services, but not on new hiring in this weak economy.” The article also cites Computer Economics VP of Research John Longwell as indicating that “the number of organizations that are turning to software-as-a-service (SaaS) is rising rapidly. About 36% of the firms they surveyed have SaaS in place, which is up from 24% in 2009. Longwell said that the use of SaaS is a form of outsourcing and enables companies to reduce some of their capital and staff support.”
But what about the savings associated with IT outsourcing? They may not be quite what one would expect. CIO.com (“The Hidden Costs of Offshore Outsourcing”) notes that the savings associated with outsourcing (particularly, offshoring) may well be much less than the typical salary of a foreign IT professional might indicate: “it takes years of effort and a huge up-front investment,” and “for many companies, it simply may not be worth it.” Some industry observers and IT professionals make similar arguments regarding outsourcing to the cloud: it may sound good in theory, but the costs compared with more-traditional approaches to IT simply are simply too high. Some of this problem, again, may result from an apples-to-oranges comparison. Not every business, nor every industry, has the potential to save money by outsourcing. In some cases, in-house IT may provide a much cheaper alternative—it all depends on the needs of the company.
Thus, if IT outsourcing doesn’t necessarily deliver tremendous savings across the board for all industries and companies, one would naturally expect not to see a broad-based increase in outsourcing in a weak economy. Some companies, or even industries, may see some variation as they “test the waters” of outsourcing, perhaps going too far and then pulling back.

Conclusions
Outsourcing may have had a very bad name at one time, having been associated with the notion of robber baron companies interested only in profits and not in their workers’ livelihoods, but these sentiments are no longer firmly entrenched in the minds of many. In the IT industry, outsourcing has partly increased its appeal through better packaging and improved marketing: by calling it “the cloud” or “software as a service” (and similar x-as-a-service terms), outsourcing drops some of the baggage that burdens it (especially in other industries). To be sure, however, IT outsourcing is not limited to cloud services, although these may be the current public face of IT outsourcing.
But the human factor cannot be entirely dismissed. The IT industry is still suffering from a high unemployment rate among IT professionals, and outsourcing by companies (and, in particular, offshoring) does little to boost outsourcing’s image in light of these employment conditions. Nevertheless, the unemployment problem in IT (which, according to Computerworld, has a greater rate than in other professions) may be due in part to a glut of IT professionals and not solely a down economy.
The word outsourcing is probably not so much a bad word in IT as it is an uncertain one. IT outsourcing to the cloud seems to be growing, but not everyone agrees that the cloud provides a better value than more-traditional approaches to IT. Furthermore, some companies simply cannot use the cloud, owing to regulatory or other considerations. In an event, it is highly unlikely that the cloud will ever become the entirety of IT: a large portion of users and companies will no doubt want to retain control over their IT resources. The future of IT is likely a mix of cloud, traditional IT, and hybrid approaches.
IT outsourcing as a general trend seems to be a mixed bag, with some amount of retreat but some increased investment (particularly in the cloud). The economic value of IT outsourcing is not entirely clear—whether it pays off to outsource instead of using in-house IT depends on many factors that are peculiar to the different industries and to individual companies within those industries. Thus, even in light of the current weak economy, IT outsourcing is unlikely to spike, even if the hoped-for recovery continues to languish. Thus, for IT, outsourcing may not be a bad word or a good word—just another legitimate option for running a company.

source: http://datacenterjournal.com/it-editorial/is-outsourcing-a-bad-word-in-it-anymore

Did you like this? Share it: