sexta-feira, 28 de março de 2014

IDEs for OpenErp Development

PyCharm IDE seems nice for Openerp development:


Please feel free to suggest any other IDE.

sábado, 23 de julho de 2011

VB script to backup and send e-mail

Sometimes there is the need to send regularly to a specific e-mail address\person files with updated data. And most of the times it is done at the end of the day, when all the transaction of the day were recorded and ready to send. It can be quite boring if you do it every day, using for example outlook or the webmail, because the steps are always the same: creating the e-mail, adding the email address zipping the content, attaching the content, writing the subject and the body and sending the e-mail. And if you use webmail there are additional steps of logging on and the file uploading. So why not finding a solution that does this automatically with no human intervention.

And it is possible if we combine windows task manager, some vb script, 7z and a Gmail account. You can download the source code at sendMail. The zip file contains 3 files:
  1. sendMail.vbs - vb script
  2. 7z.exe - program to create the zip file
  3. logs.txt - log file to log the time and the events
Some configuration is needed:

homePath =  "C:\xxx\" 'folder where sendMail.vbs, logs.txt, 7z.exe and created zip files are
dataPath = "C:\xxxx\" ' folder that contains the files to zip
attachFile ="zipFile.ZIP"
'created zip file that will be attached to the e-mail

if zipFile("MAP*.?10") = 0 then ' file name of the file to zip or a wildcard containing the files to zip

For sending the e-mail, configure correctly the following parameters with your Gmail account details:

With objEmail
 .from = ""
 .To = ";" .Subject = "Test Mail" .Textbody = "The quick brown fox " & Chr(10) & "jumps over the lazy dog" 

  .Item (schema & "smtpserver") = ""
  .Item (schema & "sendusername") = ""
  .Item (schema & "smtpaccountname") = ""
  .Item (schema & "sendpassword") ="xxxxxx"

You can test it double clicking on the sendMail.vbs file and checking thee events logged on the logs.txt.

Later I will be explaining how run this file regularly from windows task manager.

domingo, 21 de novembro de 2010

Applications can no longer be added as a custom tab in Facebook

Wondering why facebook disabled the following feature for applications:

"Due to changes in Facebook, you can no longer add Cities I've Visited (or any Facebook application) to a custom tab on your Facebook Profile page. Facebook phased out this feature and suggests that you access your favorite Facebook apps from the left hand navigation on your Facebook homepage." (source)

sábado, 6 de novembro de 2010

Free domain name hosting and free web hosting service

If you don´t bother to have your web site name ending with and you are searching for a free domain name service, offer can be a nice solution. If you have a blog ending with you can easily transform it to with just a few changes. You can also easily integrate with Adsense, Windows Live, and Google Apps. It also offers a control panel where you can easily edit the following parameters: CNAME, A, MX, NS, TXT.

After creating and configuring a new domain name you may search on Google for free web hosting and get many links writing and ranking free web hosting services. is probably one of the best free web hosting providers. A free hosting account includes 1500 MB Disk Space, 100 GB Data Transfer,PHP with MySQL Database Support, cPanel Control Panel, Fantastico De Luxe 1-Click Autoinstaller and Website Builder Software. This can be very useful if you are building a site using Joomla open source content management system.

Using and together is a great combination.

See also: Recommended Sites