Friday, October 22, 2010

books 4 php

11 Must Read Books to Become a PHP Ninja

Every language has it own practice. PHP is no exception. Mastering PHP isn’t easy unless you study hard.

Learning OOP is hard if you don’t have an experience with enterprise languages like Java or C++. Most of the popular books on OOP are targeted for Java users. PHP is a script language, but it is objective-oriented. I’d like to list several books that I find useful for PHP users who are eager to learn OOP and some other intermediate and advanced concepts.

This book is immensely useful even if you have partial knowledge about OOP. As this book is fully updated for PHP 5.3, you can learn about new features like closures and namespaces. Discussion on design patterns is easy to understand.

Not only that, this book mentions development practices such as version control, package management and continuous integration. The version control can be a different matter, but discussion on continuous integration is hard to find elsewhere.

Larry Ullman, the author of the book, already has published many books on PHP and MySQL. What’s notable about this book is, this book claims the support of PHP 6. PHP 6 hasn’t actually been shipped. And many features in PHP 6 are backported into PHP 5.3.2. This book comes as a few sample applications where you can feel the “real” issues. The author clearly introduces every basic, but important concepts in PHP.

This cookbook discusses many problems and its solutions you encounter everyday. Database connection, XML parsing/building, SOAP, REST, and OOP. As this is a recipe-style book, it doesn’t talk about the problem at full length. But this introduce each problem and solution just enough. If you need to explore each topic such as OOP, you need a different resource for that.

The book is rather advanced. If you already know PHP to some extent, this is a must-have. The author talk about advanced concepts in OOP, design patterns, documentation in details. If you are developing a large scale PHP web applications, this book is helpful for your team. One of the rare books that talk about such advanced concepts in a easy-to-follow manner. As an MVC framework, Zend Framework is briefly discussed.

Most applications need JavaScript. And these days most apps use libraries. Among them, jQuery is one of the most popular libraries. It is used in WordPress, Drupal, Digg, NBC, DELL and many others. PHP programmers need to work with frontend developers to bring the best user experience. This book serves as a good introduction to OOP in PHP and jQuery.

This is not exactly about PHP, but Apache is dead. Learn to use Nginx. Nginx is the future. If I’m correct, this book is the only book dedicated for Nginx. If you are already used to Nginx, this book may be too easy. But for newbies, the author explains basic settings in details. Some chapters are written for switchers from Apache.

If you need thorough and advanced understanding of object oriented design, this is a great book. This book also discusses agile development techniques such as unit testing, refactoring and MVC architecture. It’s hard to find a book like this in the PHP world, so this 552-page book from Manning is worth.

Websites can’t live with web APIs. Neither can PHP developers. Experience with some popular APIs is not a bonus, but one of the core skills you need to have. The book introduces major API’s basic usage. Be warned API specifications may have changed since the publication of the book.

Learning each API doesn’t make you build a successful web application. Rather you need to integrate the API to offer functionalities for users. If you need Web 2.0 type websites with API integration, this book comes handy.

REST, Representational State Transfer, is an architectural pattern for HTTP methods and resource handling. REST provides a simple, yet powerful solution. The author discusses the concepts in REST in theory, and also shows various real examples using WS02, RESTClient and Zend Framework.

Got a kid? If you are already a PHP ninja and have a kid, let your your kid learn programming! Your kids don’t need to know PHP at all to enjoy the book.

Lastly, I didn’t talk about frameworks in details. Learning frameworks is a must-have skill. If you are new to any framework, pick Zend Framework or Symfony. They are popular and have an incredible strong community

Monday, September 13, 2010

php mysql injection

// To protect MySQL injection (more detail about MySQL injection)
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);

pls check for more . it isnt enough.

Sunday, July 18, 2010

Interesting ppt slides about marketing.

http://www.studymarketing.org/category/Presentation_Slides/Powerpoint_Slides.html

Friday, July 2, 2010

10 most popular manager interview questions

Here are ten most popular manager interview questions to help you prepare for your important management interview. There is no substitute for good preparation to handle such interviews so start preparing well. A good place to begin is to be well organized about your personal facts and figures and prepare your answers for commonly asked questions. Given below are some frequently asked manager interview questions for which you can write down your answers. Make the answers positive, responsible, honest and factual. Practice the answers before a mirror or a third person and get some feedback. Here goes.
1. How do you handle non-productive team members?
2. How do you motivate team members who are burned out, or bored?
3. How do you handle team members who come to you with their personal problems?
4. What are your career goals? How do you see this job affecting your goals?
5. Explain how you operate interdepartmentally.
6. Tell me how you would react to a situation where there was more than one way to accomplish the same task, and there were very strong feelings by others on each position.
7. Consider that you are in a diverse environment, out of your comfort zone. How would you rate your situational leadership style?
8. Give me an example of your leadership involvement where teamwork played an important role.
9. Tell me about a situation where your loyalty was challenged. What did you do? Why?
10. In what types of situations is it best to abandon loyalty to your manager?

Saturday, June 26, 2010

telco 2.0

The Telco 2.0 team’s view is that the way forward is to understand and specify an end-to-end commercial framework for telcos within the two-sided ecosystem. The diagram below summarises this at a high level.

eventexecsummary1.png

2-Sided Telecoms Business Model: Schematic Architecture

The analysis and brainstorming sessions in Nice focused on 7 important aspects of building a two-sided platform strategy:

  1. Open APIs –how to open telco networks to reduce access and/or transaction costs for other retailers.
  2. Retail Services 2.0 – how telcos can provide both their own retail services and the B2B platform services that will enable other retailers to sell products and services successfully through their networks.
  3. Devices 2.0 – how telcos need to access more of the intelligence in devices and exploit it for their own retail services and two-sided business model strategies.
  4. Enterprise Services 2.0 – how telcos’ assets can be used to remove or reduce the barriers other service providers face in interacting with end users.
  5. Content (esp. Video) Distribution 2.0 – how telcos are in a position to make money by helping to restore rational behaviour to the market
  6. Technical Architecture 2.0– how telcos need to be able to easily access a key untapped asset - customer data
  7. Piloting 2.0 – how to succeed and learn quickly.

The key issues and action points in each of these areas are described in the Executive Briefing Report, including an analysis of how current industry initiatives (e.g.s GSMA, TMF, NGMN, MMA, OMTP, OMA initiatives) map against the schematic architecture above.

From top-down analysis...


In the 'Two-Sided' Telecoms Market Opportunity strategy report we identified a number of areas in which telco assets could be applied to produce new sources of value. These areas were determined by exploring how Telco assets (grouped into seven 'service capability' categories) could add value to multiple vertical industries (see chart below)

The Seven 'Two-Sided' Service Capabilities Apply Across Multiple Industry Sectors

diagram



In the report, we also produced a detailed top-down model to size the potential market for each service capability in each vertical.
B2B%20VAS%20Waterfall.png

...to bottom-up analysis...


We are now recruiting a small number of partners to help us fund the next stage of the research project, which is to develop a deeper understanding of the two-sided B2B VAS market opportunity:

  • Its overall potential size and, most importantly, the size of specific opportunities within it
  • The potential ecosystem associated with each opportunity area and the roles to be played within it
  • The business model options for operators and other ecoystem players - who to charge, what to charge for?
  • The nature and volume of transactions that will flow through the ecosystem and the distribution of value among ecosystem players

This is important to operators and vendors within TMT (our partners) because it will give them sufficient detail to support business decisions:

  • A detailed business case to justify investment in specific opportunities

Thursday, June 17, 2010

Supervision (Business Skills)

http://www.pearsonhighered.com/educator/course/Supervision/91065247.page

Tuesday, June 15, 2010

How (and Why) to Stop Multitasking

During a conference call with the executive committee of a nonprofit board on which I sit, I decided to send an email to a client.

I know, I know. You'd think I'd have learned.

Last week I wrote about the dangers of using a cell phone while driving. Multitasking is dangerous. And so I proposed a way to stop.

But when I sent that email, I wasn't in a car. I was safe at my desk. What could go wrong?

Well, I sent the client the message. Then I had to send him another one, this time with the attachment I had forgotten to append. Finally, my third email to him explained why that attachment wasn't what he was expecting. When I eventually refocused on the call, I realized I hadn't heard a question the Chair of the Board had asked me.

I swear I wasn't smoking anything. But I might as well have been. A study showed that people distracted by incoming email and phone calls saw a 10-point fall in their IQs. What's the impact of a 10-point drop? The same as losing a night of sleep. More than twice the effect of smoking marijuana.

Doing several things at once is a trick we play on ourselves, thinking we're getting more done. In reality, our productivity goes down by as much as 40%. We don't actually multitask. We switch-task, rapidly shifting from one thing to another, interrupting ourselves unproductively, and losing time in the process.

You might think you're different, that you've done it so much you've become good at it. Practice makes perfect and all that.

But you'd be wrong. Research shows that heavy multitaskers are less competent at doing several things at once than light multitaskers. In other words, in contrast to almost everything else in your life, the more you multitask, the worse you are at it. Practice, in this case, works against you.

I decided to do an experiment. For one week I would do no multitasking and see what happened. What techniques would help? Could I sustain a focus on one thing at a time for that long?

For the most part, I succeeded. If I was on the phone, all I did was talk or listen on the phone. In a meeting I did nothing but focus on the meeting. Any interruptions — email, a knock on the door — I held off until I finished what I was working on.

During the week I discovered six things:

First, it was delightful. I noticed this most dramatically when I was with my children. I shut my cell phone off and found myself much more deeply engaged and present with them. I never realized how significantly a short moment of checking my email disengaged me from the people and things right there in front of me. Don't laugh, but I actually — for the first time in a while — noticed the beauty of leaves blowing in the wind.

Second, I made significant progress on challenging projects, the kind that — like writing or strategizing — require thought and persistence. The kind I usually try to distract myself from. I stayed with each project when it got hard, and experienced a number of breakthroughs.

Third, my stress dropped dramatically. Research shows that multitasking isn't just inefficient, it's stressful. And I found that to be true. It was a relief to do only one thing at a time. I felt liberated from the strain of keeping so many balls in the air at each moment. It felt reassuring to finish one thing before going to the next.

Fourth, I lost all patience for things I felt were not a good use of my time. An hour-long meeting seemed interminably long. A meandering pointless conversation was excruciating. II became laser-focused on getting things done. Since I wasn't doing anything else, I got bored much more quickly. I had no tolerance for wasted time.

Fifth, I had tremendous patience for things I felt were useful and enjoyable. When I listened to my wife Eleanor, I was in no rush. When I was brainstorming about a difficult problem, I stuck with it. Nothing else was competing for my attention so I was able to settle into the one thing I was doing.

Sixth, there was no downside. I lost nothing by not multitasking. No projects were left unfinished. No one became frustrated with me for not answering a call or failing to return an email the second I received it.

That's why it's so surprising that multitasking is so hard to resist. If there's no downside to stopping, why don't we all just stop?

I think it's because our minds move considerably faster than the outside world. You can hear far more words a minute than someone else can speak. We have so much to do, why waste any time? So, while you're on the phone listening to someone, why not use that extra brain power to book a trip to Florence?

What we neglect to realize is that we're already using that brain power to pick up nuance, think about what we're hearing, access our creativity, and stay connected to what's happening around us. It's not really extra brain power. And diverting it has negative consequences.

So how do we resist the temptation?

First, the obvious: the best way to avoid interruptions is to turn them off. Often I write at 6 am when there's nothing to distract me, I disconnect my computer from its wireless connection and turn my phone off. In my car, I leave my phone in the trunk. Drastic? Maybe. But most of us shouldn't trust ourselves.

Second, the less obvious: Use your loss of patience to your advantage. Create unrealistically short deadlines. Cut all meetings in half. Give yourself a third of the time you think you need to accomplish something.

There's nothing like a deadline to keep things moving. And when things are moving fast, we can't help but focus on them. How many people run a race while texting? If you really only have 30 minutes to finish a presentation you thought would take an hour, are you really going to answer an interrupting call?

Interestingly, because multitasking is so stressful, single-tasking to meet a tight deadline will actually reduce your stress. In other words, giving yourself less time to do things could make you more productive and relaxed.

Finally, it's good to remember that we're not perfect. Every once in a while it might be OK to allow for a little multitasking. As I was writing this, Daniel, my two-year-old son, walked into my office, climbed on my lap, and said "Monsters, Inc. movie please."

So, here we are, I'm finishing this piece on the left side of my computer screen while Daniel is on my lap watching a movie on the right side of my computer screen.

Sometimes, it is simply impossible to resist a little multitasking.

(Editor's note: Fellow HBR blogger David Silverman has some different thoughts on multi-tasking in his post, "In Defense of Multitasking")