Category Archives: Papers

How to force a view to load other modules languages into SUGAR.language?

SugarCRMAs you should know each SugarCRM view extends SugarView class which has a nifty method called _displayJavascript()  who is responsible for including all needed JavaScript files.

When it comes to labels, by default, this function only loads current module labels into SUGAR.language.

Continue reading

How to reset field values on bean duplication?

SugarCRMWhat you need to do is inject some logic to clear selected field values before the view is displayed.

Like all other stuff made in SugarCRM, this process also depends on what type of module you’re hacking, in other words, the place where you’re going to write the logic depends if you’re hacking a custom module or a core one.

Continue reading

Asus Eee PC 1201N – Ram Upgrade

Since I bought this netbook that I’ve been looking forward to upgrade it’s ram. As you may know, this netbook has two slots, which by default are fulfilled with 2GB (1024+1024) or 3GB (1024+2048), unfortunately in Portugal only the first combination is being sold.

After reading a couple of reviews of other people that wanted to perform the same upgrade as me, from 2GB into 4GB, I’ve finally decided to bet on Kingston, and I bought the KVR800D2S6K2/2G modules.

Now you may be wondering why I didn’t bought 8GB instead of 4GB since the netbook supports them, the reason is plain simple: in my humble opinion they are way too expensive!

Continue reading

How to setup Asus Eee PC 1201N Wireless Card on Ubuntu 9.10?

The first thing you need to know it’s that although the PCI output shows a Realtek 8171 wireless adapter, in reality it is a Realtek RTL8191SE!

With this in mind you only need to download this file which was referenced in this thread on post #134 and execute the commands below. Make sure to remove the NDISWrapper driver before doing this if you have already installed and set it up.

Continue reading

How to use NTLM authentication with NuSOAP?

For a couple of weeks I’ve been implementing Webservices to feed resources on a SugarCRM project that I’m working on. As you may know SugarCRM provides NuSOAP, which is a SOAP Toolkit for PHP that brings some extra functionalities to SOAP implementation provided by PHP.

Today I had to use NTLM authentication method, unfortunately it isn’t supported by NuSOAP yet, but I’ve found that if you combine cURL with NuSOAP you can get through without a problem.

Continue reading

Google Chrome Web Browser Installation on Linux

Google ChromiumTired of the slowness of Mozilla Firefox and curious with the acclaimed performance of Google Chrome (or Chromium, if you prefer), today I’ve decided to give it a try.

Although it is still an alpha version it already allows you to perform the regular navigation activities that you are used to with an incredible speed.

It’s layout is also a bit different of what we are used to, in my opinion it is great, KISS principle all the way.  I also like the new functionalities like the task manager which allows you to take control over the used memory with each tab/window and the browser itself.

Continue reading

SQL Column Truncation Vulnerabilities

One of the biggest concerns for Web Developers while developing something with SQL, is to avoid SQL-Injection problems, because those are the most common security flaws.

But there are also another flaws that you should be aware about, for example, column truncation vulnerabilities.

This security flaw it’s related with the lack of input length validations and it seems that it is affecting a lot of known applications.

Stefan Esser wrote a great tutorial about this subject it’s a must read.

How to translate administrator menu items in Joomla! 1.5.6?

That’s a question that I’ve been doing to myself in the past two days.

Unfortunately there aren’t much informations about this subject, and from what I’ve read there is a lot of people with the same doubts I had.

Because I haven’t found any documentation on this subject I’ve decided to write the my own tutorial, hope it helps you.

Continue reading

MySQL bug related with natural number order fix

It seems that this is a known bug but I only noticed it yesterday.

Imagine you have a field named price and it’s type is VARCHAR (it doesn’t matter why it’s not INT or FLOAT) and you want to use ORDER BY clause so you can list table rows ordered by price value.

It won’t work, since the prices will be listed alphabetically, you may read here how to fix this issue.

Continue reading