12 March 2015

Modern Business: The Secret to Success

Running a successful modern business demands a number of different skills and you, as the business owner, must be ready to organize your time and be prepared to take any shift necessary because in these troubled economic times you are the most responsible figure for the success of your business. Teamwork skills are especially important, and managing the duties of every employee is something you should worry about, but the end line here is that you need to be able to quickly adapt.

In this economic climate, ups and downs are a natural part of every major business, and some things can move increasingly fast, while others can require a tremendous amount of time to be fully implemented, especially new technologies that are important for your area of work. However, what are the most important aspects you need to work on? Well, there is no magical solution, but we have created a list of things you need to keep your eye on.

The importance of market research

Doing proper market research is of crucial importance for the success of any business endeavor, and that will enable you to make the right decisions, and set a course for your business. IT is all about gathering large amounts of data on whether the customers are satisfied with your products and services, and whether anything can be changed in order to improve the general opinion of your product. This can also be a valuable way of collecting customer experiences, as it is a valuable source of information where you can gauge all those smaller, but necessary factors – what is right and what is not.

Setting up and maintaining a good website is easier said than done, but still, there are a number of ways this can be done in a reliable, yet cost-effective way. The website will be your online business card, where all your merchandise will be presented, and this can easily generate revenue for you, and create a base of loyal customers. When combined with all other social media networks, you can easily create an excellent online presence, where people will not only have high opinion of your services, but will think of you as a kind of expert, and will actively seek your opinion. 

All the social networks have special options for those willing to pay a little bit in order to advertise their businesses. This can be extremely good for your business, as you can carefully select the categories based on which you will create the target audience. Not to mention how great social networks can be for checking customer feedback, and keeping them engaged by offering them promotions or special offers.

Outsourcing is your friend

his is a process of hiring another company to do finish a certain task, either because you are not able to do it yourself financially, or you are understaffed. Outsourcing is a commonly used strategy, even by companies that have large budgets, simply because it offers solutions which are both cost-effective and simple. Outsourcing can actually help your company stay focused on its goals, while internal manpower can be used for other purposes, and this is why outsourcing has great strategic value.

Team as the core of any business

People that work for you are actually those who are making everything happen, and the important thing is that all of you have the same goal – success. This can be achieved by proper motivation, because an unhappy worker will not be so interested in his or her performance. Those more active will become tired of time, especially if there are those who are more passive. 

This can easily be fixed with the introduction of monthly rewards to those who do their best, and it can easily increase work efficiency, as everyone will try to reach the same level of acknowledgment. Make sure to balance between teamwork and competition, as both of those can be used to create a healthy environment, which will help your business.

17 July 2014

Why your business should go Social

Word of mouth marketing is as old as business itself. Consumers have always relied on conversations over the back fence and around the water cooler when making a decision about the products and services they need, social media is about that conversation, it may change the fence but the idea remains. Social media marketing gets your name in the minds of your friends and your friend's friends, easier and for less cost than traditional means.

Social Media marketing is about using the tools provided by social sites to build a repuation and create a buzz for you and your business, it is about establishing yourself as an expert so people will recommend you in conversations over backyard fences and in online interactions.

Same Old Word-of-Mouth Marketing

Social Media has changed the way people connect, discover, and share information. Here’s what you need to know: 
  • Social media is the technology that connects people—whether it’s to share content or just to chat.
  • Social networks, like Facebook, Twitter, LinkedIn, Instagram and Pinterest are the places where social interactions happen (discovering & sharing).
  • Social media marketing is the way to use that technology to build relationships, drive repeat business. and attract new customers through friends sharing with friends.
  • Sound familiar? That’s because social media marketing is really just word-of-mouth powered by technology.

Still not convinced? Here are some quick pointers: 

  • Consider this: 35% of the world’s population is online and the internet as a marketing channel reaches the largest number of people from varied demographics 
  • The channel requires a low technical investment, has a great ROI and a low learning curve 
  • It is a fairly simple way to increase your website traffic and search engine ranking 
  • Lead generation and, thereby, sales can be improved 
  • Connecting with media becomes easier 
  • Promoting events becomes quicker and more effective 
  • 58% of small business owners reported a decrease in marketing costs after they migrated to social media

19 March 2013

create filter in controller symfony2

Sometimes you need to make changes to the Response object, after it is returned by your controller, but before it is rendered as output to the client (e.g. the browser). You may want to set some extra response headers, or "completely mess up the content" of the response. You can accomplish this by creating an event listener that listens to the kernel.response event. I give you a sample event listener which changes the Content-Type header in case the requested format is json and the browser’s accepted response format contains "text/html" in that case, at least in my experience, the browser doesn’t render the JSON string as plain text when the status code is 4xx or 5xx. So in these situations, the event listener changes the “Content-Type” to “text/plain”, to be sure you always get decent output in the browser.

Put the event listener in, for example /src/Acme/DemoBundle/EventListener/ResponseListener.php:

namespace Acme\DemoBundle\EventListener;
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
class ResponseListener
    public function onKernelResponse(FilterResponseEvent $event)
        $request = $event->getRequest();
        // only do something when the requested format is "json"
        if ($request->getRequestFormat() != 'json') {
        // only do something when the client accepts "text/html" as response format
        if (false === strpos($request->headers->get('Accept'), 'text/html')) {
        // set the "Content-Type" header of the response
        $event->getResponse()->headers->set('Content-Type', 'text/plain');

Now define the ResponseListener as a service in /src/Acme/DemoBundle/Resources/services.xml:

<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
        <service id="acme.filter_response_listener" class="Acme\DemoBundle\EventListener\ResponseListener">
            <tag name="kernel.event_listener" event="kernel.response" method="onKernelResponse" />

Notice the “tag” tag, by which the kernel recognizes this service as an event listener. The event attribute tells the kernel which event this listener listens to. The “method” attribute tells which method should be called when the kernel.response event occurs.

In case you don’t want any other events to tamper with the Response, add a call to $event->stopPropagation().

15 March 2013

remove non ASCII characters from a String

Hi guys

I had a problem with removing non-utf8 characters from string, which are not displaying properly. Characters are like this 0x97 0x61 0x6C 0x6F (hex representation).

I am getting some encoded value from url. Let assume it's encoded email and value is ankitchauhan22@gmail.com
When I tried to find out the length of this string as
$email = somefunction($encodedStringFromUrl);
$length = strlen($email);
print $length;
I was shocked. It's printing 37 instead of 24. Than I printed each index of this string on the string but after 24 character, nothing printed.

I used trim() to remove whitespace but didn't work.

Then I tried something which worked for me.

This is a little snippet that will remove any non-ASCII characters from a string.
$string = "ankitchauhan22@gmail.com รครณ";
$string = preg_replace('/[^(\x20-\x7F)]*/','', $string);
Now It's printing 24.

13 March 2013

jQuery & JavaScript PDF Viewer plugin

Hi guys

In this Post I'm providing best jQuery PDF viewer plugin & tutorial with examples. Due to popularity of online document viewer like Google Docs some javascript developers develop a good and useful plugins to view pdf file on online pdf viewer.Here is some good list of online pdf viewers.

  1. JavaScript PDF Reader : pdf.js
    It's an HTML5 experiment that explores building a faithful and efficient PDF renderer without native code assistance.
    Read More Demo
  2. jQuery Media Plugin
    The jQuery Media Plugin supports unobtrusive conversion of standard markup into rich media content. It can be used to embed virtually any media type, including Flash, Quicktime, Windows Media Player, Real Player, MP3, Silverlight, PDF and more, into a web page and is compatible with all web hosting services The plugin converts an element which holds the object, embed iframe tags neccessary to render the media content.
    jQuery Media Plugin
  3. PDFObject : Embeds PDF files into HTML documents
    A JavaScript library for dynamically embedding PDFs in HTML documents. Modeled after SWFObject.
    Embeds PDF files into HTML documents
  4. Google Docs Viewer plugin for jQuery
    The Google Docs Viewer is an embeddable browser-based viewer that requires only a URL to a file available online. This neatly bypasses the need for users to have compatible software on their machines for those file types and displays the document right in the browser.
    Google Docs Viewer plugin for jQuery
  5. ZOHO Viewer plugin for jQuery
    The ZOHO Viewer is an embeddable browser-based viewer that requires only a URL to a file available online. This, just like Google Docs Viewer, bypasses the need for users to have compatible software on their machines for those file types and displays the document right in the browser. Automatically embeds the ZOHO viewer for viewing the doc, docx, xls, xlsx, ppt, pptx, pps, odt, ods, odp, sxw, sxc, sxi, wpd, pdf, rtf, txt, html, csv, tsv files it supports linked to by anchor tags.
    ZOHO Viewer plugin for jQuery
  6. jsPDF : Generate PDF files using pure client-side JavaScript
    It is an open-source library written by our lead developer, James, for generating PDF documents using nothing but JavaScript. You can use it in a Firefox extension, in Server Side JavaScript and with Data URIs in some browsers.
    jsPDF : Generate PDF files using pure client-side JavaScript
  7. jQuery Document Viewer
    Document Viewer is a jQuery plugin that allows you to view several file formats directly in a web page.
    jQuery Document Viewer
    Read More Demo