Posts

Showing posts from March, 2012

Thoughts on LAMP Development(Linux Apache MySQL PHP)

Image
It's about two years since I started on the whole LAMP thing.  Well the circumstances were like this - I was working on a Linux based product and we wanted to develop a data collection software. Now the problem was we wanted a solution that was quick to develop. So we decided on developing a web application instead of desktop application. So we went forward and used LAMP to develop it and we were satisfied with the speed of development. A desktop application in C-GTK or Java would have taken lots of time and the team didn't have any significant expertise in both of them. Although we were fine with html and we got along with PHP just fine. The main part was easily accessible documentation and the ease of coding. So we developed a solution that was basically a bunch of HTML forms with some PHP thrown in so that we could push the data to a MySQL database as well as call some other programs to perform some tasks using Shell Scripts. It wasn't an elegant solution but it got

On Kubuntu 12.04 Beta 1 [* UPDATED]

Image
*** It's been some time since I installed Kubuntu 12.04 Beta 1 and I have been using it exclusively since. And much to my surprise I find myself using it more and more. There are many small improvements that you catch on only after some serious exploration. And until now I'm not feeling hopeless about kubuntu. So perhaps with this revision I can say that finally KDE has become enough usable that it doesn't push me away. In it's own, this KDE is vast improvement to what I tested the last time - almost two years - and the snappy performance is really a pleasure. Now if I don't see those application crashes less often, I would move to this as my primary distro. ( I have seen only handful application/ system crashes on my current Ubuntu 10.10 Installation that is my primary OS. ) Review System: Emachines E-727 with Pentium D 2.3GHz; 3GB RAM; 250GB HDD; Atheros WLAN; Intel Integrated Graphics 4500mHD. I am one of those many who want to shift to Arch Lin

[QT] CREATE AN ODT FILE

Image
/*  **************     CREATING A ODT FILE              ****************  **************     INCLUDE THE NECESSARY FILES     ********/ {     ...     // Text Document Object to hold formatted document     QTextDocument *m_document = new QTextDocument();     // Cursor for traversing the document     QTextCursor m_cursor = QTextCursor(m_document);     // TextTableFormat object for table formatting     QTextTableFormat tableFormat;     tableFormat.setAlignment(Qt::AlignCenter);     tableFormat.setCellPadding(5);     tableFormat.setCellSpacing(50);     tableFormat.setHeaderRowCount(0);     tableFormat.setBorderStyle( QTextFrameFormat::BorderStyle_Solid);     tableFormat.setWidth(QTextLength(QTextLength::PercentageLength, 60));     // Create table to hold the text and it's easy to format     QTextTable *m_table= m_cursor.insertTable(10,3,tableFormat);     m_table->mergeCells(0,0,1,2);     m_table->mergeCells(1,0,1,2);     //Lets Insert the text and Pi

Painting, odt and pdf

Image
Recently I had the pleasure to get my hands dirty with Qt. Basically I wanted to print some stuff and get the application working in couple of days. (Yeah, you know how things are usually - we want it now, we don't care if this is eleventh hour or not! - and then the part you are messing with is usually something nobody has tried to do before and see if it's actually doable or just a godly proclamation). Anyway, I got started, got a form and validated the input and somehow found out some code to write it to an  odt file too. Now here comes the dealbreaker - we want it to be formatted just so and so, and we (again) don't care which hour it is! Right, so I use our dear friend, beholder of finding obscure things from the haystack called Internet i.e. google and after some (furious) searching found out that what I am trying to do is not done before and there's couple of percent chance that I may be able to do it. I like any chance than zero percent so I dug in my heels a