Friday Free Code – Auto Google Translate (php)

Below you will find a handy dandy piece of code that The Kaptain uses to take some content and make it just a little bit more unique.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function googletranslate( $text, $destLang = 'es', $srcLang = 'en' ) {
 
$text = substr($text,0,1500);
$text = urlencode( $text );
$destLang = urlencode( $destLang );
$srcLang = urlencode( $srcLang );
 
$url = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$text&langpair=$srcLang|$destLang";
 
$trans = wpbf_http_get( $url );
$json = json_decode( $trans, true );
 
    if( $json['responseStatus'] != '200' ) {
        return false;
    }else{
        return $json['responseData']['translatedText'];
 
    }
}

Now, the way I generally use this is to have the script randomly select a couple languages from the list then loop the content through each one. See below:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$mytext = "Some big block of text up to 1500 characters long";
 
$langs = array("es","fr","de","it","nl","ru");  //add any other language supported by Google Translate or remove ones you don't want to use
$i = 1;
    $useLangs = array();
       //you can change the 3 to whichever number you want to have your text translated more or less times
       while($i < 3){
            $z = $langs[array_rand($langs)];
            if(!in_array($z,$useLangs)){
                   $useLangs[] = $z;
                   $i++;
            }
 
        }
    $useLangs[] = "en"; //whatever language you want the content to end up in
    $lastLang = "en"; //whatever language your content is in originally
 
    foreach($useLangs as $lang){
        $mytext= googletranslate($mytext,$lang,$lastLang);
        $lastLang = $lang;
    }
 
//echo out your newly translated text!
echo $mytext;

Personal Review of Dragon Naturally Speaking 10 Software

I purchased the Dragon Naturally Speaking 10 speech recognition software on a whim a few months ago.  One of the main reasons for the purchase is that I do a lot of typing in Microsoft Word now to create new blog posts for several web sites and thought this may speed up the process vs. typing.

Well I must tell you it has definitely helped me speed up my work.  It took me about 30 minutes to train the software to my voice from the time I took the software out of the box,and, about 30 more minutes to “fine tune” the quality of the words it interprets. Now I am very surprised when I just dictate and it spells almost everything correctly.  It is somewhat entertaining to use as a result.  I can speed up my posting to blogs as this dictation is faster than my typing ever was.  I do have to review my dictation to verify accuracy as occasionally it may misspell a word or two or use a word that might sound the same as what I said but spelled differently.  It is not perfect yet, but, I can verify that it is very helpful to me.

It is noticeable that this type of voice recognition software has come a long ways as Dragon Naturally Speaking has upgraded its versions over the years.  I am glad I ventured to purchase the voice recognition software and would recommend it to anyone who wants to speed up their writing.


Why to outsurce software Product development?

Cut down your software product development cost and time by outsourcing software product development at an affordable price. Rightway Solution is an offshore software product development companies manages your requirement by hi-tech hardware, software with effective communication and better support

Rightway solution is an expert in product development with its broad focus on Software Product Engineering. Outsource software product development is the best resource to take advantages of an expert organization. Rightway solution can work comprehensively with client’s Product engineering team. There are lots of small and medium level companies provide software development services. Software product development needs special skills that all software development company can not delivers. Reduce software development cost by outsourcing to software product Development Company. They will also provide a framework so a company can manage the product and various versions of it as well.

Why Outsource Software Product Development?

The purpose is to consistently perform a well-defined engineering process that integrates all the software engineering activities to produce correct, consistent software products effectively and efficiently.

Offshore software development companies can help in reducing cost of software development and provides dedicated skilled software developers for necessary support. All Software development companies require a long-term strategy to make sure deliver higher ROI and success ratio. While the main concern across is the effectiveness of product management team. We at Rightway Solution PVT Ltd ensure transparency on the project status and skills of software developers. These are some benefits of outsourcing product development.

  • Flexible and cost effective development.
  • Customized and bespoke software development service.
  • Skilled Professional developer for best quality work.
  • Effective and efficient documentation for all project needs

  • Advantages of social Unlock Private Myspace Profiles: creating and managing your online reputation

    Social Unlock Private Myspace Profiles are social utilities that connect you to other people and companies online often using social media and social media marketing strategies. There are hundreds of host sites online for social Unlock Private Myspace Profiles, as well as various blog sites for posting comments, responses, as well as general information. The importance of social Unlock Private Myspace Profiles and social media marketing is only recently being realized.

    Currently, YouTube is available in over fifteen different languages, while Facebook touts over 65 million users worldwide. By becoming a part of this far-reaching social network, you can take advantage of the benefits of relatively low-cost or even free marketing strategies with a positive online reputation.

    Firstly, creating a social profile is a great way to get your company noticed. Connecting to other businesses and individuals associated with your services helps legitimize your site. You can always start a blog as well to boost your visibility. Millions of people surf the web on a daily business, so by simply creating a highly visible profile can increase your business flow.

    Social Unlock Private Myspace Profiles are great for learning and sharing information. By accessing other people’s Unlock Private Myspace Profiles you can see what is being said about them and often about your company as well. The information aspect is twofold: you can read reviews about products or strategies that you might like to try, as well as learn what your clients think of the services your provide.

    Finally, one of the lesser known, but incredibly valuable benefits of social Unlock Private Myspace Profiles for businesses is damage control. If you have a positive online reputation but one person has a bad experience, a) you are very likely to become aware of their bad experience and therefore make sure it doesn’t happen again to them or other and b) their negative comment, wherever it may be posted, will be partially diffused by all the good comments you have already received.

    It may even be helpful to consult social media marketing services. With the exponential affect of technology on our public and personal lives, staying involved is one of the best ways to ensure that you or your company does not find itself left at the station while the bullet train of change zooms away.


    Auto Responder Software Or an Online Auto Responder Service?

    n

    Is auto responder software that you install on your PC or website worth the cost, time and effort or is there an easier way to capture your customer details and make money from them? ?

    There is a huge amount of auto responder software out there but much of I can be complicated to install, difficult to manage, time consuming to send emails and offer you no protection against spam complaints.? With increasing spam legislation this is something you really need to be aware of. ?

    In my opinion it is much easier to use on of the top autoresponder services.?They are very cheap even for a brand? new website.? They are incredibly easy to use and best of all mean you can have a form up on your website to capture your customer or prospects details within quite literally a few minutes. ?

    Now I had previously used a few different types of auto responder software and didn’t really know what I was doing.?I wasted countless hours for very little before I decided to take a punt on the autoresponder services. ?

    The advantages that they offer over auto responder software are that you can manage multiple mailing lists from a single page; you can add your form within seconds to many different websites. In fact you don’t even need to do that; people can join your list by simply sending an email. ?

    Auto responder software often doesn’t have the ability to track ip addresses making it very difficult for you to prove that the person did sign up to receive your emails in the event of a spam complaint against you. ?

    The various services are so cheap and easy to use that I would never bother with auto responder software. ?I prefer to use my time on other more productive activities such as getting new visitors to my website.