Code Feedback Programming Software Development by Tech B …import socket, string, time, random, re, xgoogle, urllib2, cookielib from xgoogle.search import GoogleSearch, SearchError from xgoogle.translate import Translator chan = '' #example: …;PRIVMSG #%s :%s\r\n" % (chan, l)) except xgoogle.translate.TranslationError: irc.send("PRIVMSG #%s :not a valid… PyIRC Programming Software Development by Tech B … when my phone dies. Requirements: [LIST] [*]Gmail account (for texting) [*]xgoogle (for lang translation) [/LIST] I know it is messy, and… Converting PDF to Text using C++.... Programming Software Development by jamd200 … in C++, and then translate the text using Python's xgoogle library. Is programming this indirect translation process even feasible, and… Re: NameError: global name 'NewLang' is not defined Programming Software Development by El Duke … sample that didn't work as I expected: [CODE] import xgoogle from xgoogle.translate import * translate = Translator().translate _languages = { 'af': 'Afrikaans', 'sq…(value, lang_to=LANG).encode('utf-8') File "/home/ma2moun/xgoogle/translate.py", line 34, in translate raise TranslationError, "… Re: Please help me build a chatbot Programming Software Development by Tech B I posted a snippet on IRC stuff. Could help with the protocol commands. I don use regex though, so its a bit messy with all the splitting and stripping. [URL="http://www.daniweb.com/code/snippet297621.html"]link[/URL] Mine is more of a functional bot, not AI. It supports texting a cellphone, and translating languages via xgoogle. Re: Code Feedback Programming Software Development by TrustyTony Here one suggestion [CODE]import random noun = ['school', 'yard', 'house', 'ball', 'shoes', 'shirt', 'fan', 'purse', 'bag', 'pants', 'toaster', 'lamp', 'floor', 'door', 'table', 'bread', 'dresser', 'cup', 'salt', 'pepper', 'plate', 'dog', 'cat', 'wood', 'stool', 'suitcase', 'plane', 'bus', 'car', 'bike', 'phone', 'pillow', 'wall', '… Re: Code Feedback Programming Software Development by snippsat Your code it`s not nice and well formated. Thing that is clear now,can be difficult to understand when you look at code the 6 months time in the future. And a bad formatet code with no documenting make things a lot worse. So a well formated code can help yourself to,and make life eaiser for pepole that try to understand the code. Just some not … Re: Converting PDF to Text using C++.... Programming Software Development by NathanOliver I found [URL="http://podofo.sourceforge.net/about.html"]this[/URL] while googeling. Might be something worth looking into Re: Converting PDF to Text using C++.... Programming Software Development by Ancient Dragon You could use this [URL="http://www.pdftoword.com/"]PDF to Word converter program.[/URL] Re: Converting PDF to Text using C++.... Programming Software Development by mike_2000_17 If under Linux, you can use the "pdftotext" command (from package "poppler-utils"). Then, you can use "libtranslate-bin" package to install a text translator program and use it with "translate-bin" command. So, your problem can be entirely solved by: [CODE] $ pdftotext my_file.pdf my_file.txt $ translate-bin … Re: Converting PDF to Text using C++.... Programming Software Development by jamd200 Thank you for your replies: @Nathan Hopefully this library can suffice. @Dragon He wants me to code it; in other words, he's discouraging me from using already-made software, but maybe I can convince him to use this, then use the translation feature in Word. @mike That would be very useful, but unfortunately, we're using Windows V_V. Re: Converting PDF to Text using C++.... Programming Software Development by mike_2000_17 >>but unfortunately, we're using Windows V_V. If I had a dime for everytime I heard that... You can actually get [URL="http://www.foolabs.com/xpdf/home.html"]pdftotext[/URL] for Windows as well. And [URL="http://www.nongnu.org/libtranslate/"]libtranslate[/URL] is an open-source library, so you can try to either port it … Re: Converting PDF to Text using C++.... Programming Software Development by jamd200 [QUOTE=mike_2000_17;1594962]>>but unfortunately, we're using Windows V_V. If I had a dime for everytime I heard that... You can actually get [URL="http://www.foolabs.com/xpdf/home.html"]pdftotext[/URL] for Windows as well. And [URL="http://www.nongnu.org/libtranslate/"]libtranslate[/URL] is an open-source library,… Re: Converting PDF to Text using C++.... Programming Software Development by zarfishan You can use this converter [Saaspose.PDF](http://saaspose.com/api/pdf) itsa cloud API that use C++ language to convert PDF to Text file.