AI-MAS 2010

Two weeks ago I preferred the sleeping wagon of CFR instead of the driver seat of my car so I could travel to Bucharest where the AI-MAS Winter Olympics event took place and where Ropardo was one of the invitees. The reason I’m writing this so late is because just yesterday I came back from my vacation that started right after. Perfect excuse right ?:) Anyway, about the event now.
Read the rest of this entry »

CeBit 2010 Review

This year after 6 days that I participate at fair I can say that was good compared with 2009. I’ve meet new companies as well already partners and we had productive discussions about Ropardo SRL services and competencies.
Read the rest of this entry »

CeBIT open the gates again!

Ropardo at Cebit 2010Ropardo SRL participates at CeBIT 2010 where we are presenting our services.

This year we are focused on:

  • Research and Development services
  • Near-shoring services

Read the rest of this entry »

Tags: ,

How to create a zip file with Java and offer it for download

In many web applications at some point a programmer meets the need to make an archive of a/some document(s) and offer this archive for download.
The main JAVA utilities for executing this archiving task are inside package java.util.zip.
These classes implement an output stream filter for writing files in the ZIP file format. They include support for both compressed and uncompressed entries.
The process of archiving document(s) is to read content as byte array from the original file(s), and then add the content to a java.util.zip.ZipOutputStream
Read the rest of this entry »

Tags: , , , , , , ,

Devexpress XtraGrid’s multiple rows into footer

This article describes a way to insert multiple rows into a Devexpres WinForm XtraGrid footer. First step is to add a XtraGrid into your WinForm and set to true it’s ShowFooter property.
Once the footer it’s visible you can add cells into it using the GUI or programmatically.
Code for adding cells into footer look like this:

grid.firstcollumn.SummaryItem.Assign( new GridSummaryItem(DevExpress.Data.SummaryItemType.None, "fieldName", "displayFormat"));

Devexpress XtraGrid provide an event (CustomDrawFooterCell) that go through every footer’s cell and allow to change it’s appearance. I used this event to add multiple cells on a single column.


private void gridView1_CustomDrawFooterCell(object sender, FooterCellCustomDrawEventArgs e)
{
  int iRowHeight = 25;
  if(e.Column.Name.Equals("fieldName"))
  {
     for (int i = 0; i < 3; i++)
     {
        e.Info.Appearance.BackColor = Color.Transparent;
        e.Info.Appearance.TextOptions.HAlignment = HorzAlignment.Near;
        e.Info.DisplayText = "displayedText";
        Rectangle r = new Rectangle(e.Info.Bounds.Left, e.Info.Bounds.Top + (i * iRowHeight ), e.Info.Bounds.Width, e.Info.Bounds.Height);
        e.Info.BackAppearance.DrawBackground(e.Cache, r);
        e.Info.BackAppearance.DrawString(e.Cache, e.Info.DisplayText, r);
      }
     e.Handled = true;
   }
}

Previous code paint 3 cells into specific column and display a text over them.

Tags: , , ,

Json, Struts and XWiki 2.1.1

If you want to add a feature in XWiki, something that you cannot already find implemented in XWiki code zone, you should go to the core of this platform. Implementing something new, means interacting , adding new elements to XWiki sources. It means configuring the wiki to recognize your new features and then creating a documentation for all of this that will be helpful for future reference and at XWiki update version.

Read the rest of this entry »

Tags: , , , , , ,

Limitations of Lotus Notes ListBox fields

In a previous article I wrote on how to work with Lotus Notes ListBox fields. Unfortunately these type of fields have a major drawback, their limit of only 32 kb of text. So if you want to display thousands of entries you must use an embedded view. This is an small example of using an embedded view in an form, that shows how to retrieve the selected documents or currently highlighted in the view and process those documents: Read the rest of this entry »

Tags: , ,

JBOSS ORA-02049: timeout: distributed transaction waiting for lock

Context:
- JBoss 5.1.0GA
- Oracle9i

Problem:
During a long processing transaction, the ORA-02049 exception was thrown.

Solution:
According with metalink note 789517.1 Read the rest of this entry »

Tags: , ,

How to use constants with conditions in typoscript

TYPO3 is a free and open source content management system as well as a Model–view–controller (MVC) Web Application Development framework written in PHP. It is released under the GNU General Public License and it can run on Apache or IIS on top of Linux, Microsoft Windows, OS/2 or Mac OS X. Read the rest of this entry »

Tags: , , ,

Handling NULL values in PowerBuilder

When it comes to NULL values, PowerBuilder treats them a little different than other languages. Not only that, when null is added, compared to or concatenated with any variable the entire result will become null, but also when given a null parameter most PowerBuilder functions will simply return NULL and perform no action.
Read the rest of this entry »

Tags: , , , , ,