Monday, October 8, 2012

Linux as a user's desktop is a wonderful experience. Beyond your imagination.
 
Fedora KDE is like windows but heavy at times, task bar is at the bottom and themes available right from the desktop, which make it quite a surprise at the first look.

Fedora Default spin, I used Fedora 15 and got sick of it as I had to do a lot of mental work with it, and it was just an additional overhead, so I switched to other spins, like KDE, Xfce.

Xfce has taskbar on top of the screen, I just wanted it to be at the bottom, but this is how it is. Quite a good one actually. As simpler and developers should use it.

I have used ubuntu as well, and it's like Fedora 15, as I don't have laptops and LCD's so that was a bit too much for me, though I have a 19 inch monitor. Older versions of Ubuntu were good. As Kde.

Installation of Linux, could not be made simpler, download live image, Fedora, Ubuntu, to the USB, boot, install and you will be able be dual booting. Hardly takes more than five minutes.
  • '/' This will be the root partition of your system.
  • 'swap' This will be the swap space.
  • and boot partition. 
  • You can opt to make /home. 
Linux hardly two or three commands: 
  • 'su --' will give you root access to your system, and there you are, ready to empower your thoughts.
  • Add the software repositories: RPM Fusion Repositories.
  • 'yum update' immediately after installation. This will update all packages to the latest.
Microsoft in very few scenarios, as in Office Products. What if tomorrow you have to come up with a Web Sites Tabular Data into an Excel Sheet Or Something like whole web pages being captured into a word document.

Monday, October 25, 2010

I did J2EE development with Jsp's and other related technologies. This post refers to development earlier in my career that's what I am still doing .. I have attached screen shots down here .. later revisions will carry .. code ..
 
Applications with simple JSP's:
Commenting e.g. the SQL queries what they are talking about ..
  • Maintaining the data in session that is needed most often in more places, such as user id's etc. 
  • Following a standard naming convention, for Javascript and Java, e.g. id and name attributes can be same for HTML elements etc. 
  • Trimming fields before they go to the database. 
Applications with Apache Struts:
I had background in Java, Jap's, html, Javascript .. Jakarta Struts Live .. 

Users go back and forth there you maintain it in session .. And user's will ask for rows and tables .. and elements .. Iteration through tag libraries .. Struts Tag Library an example ..

Let's consider an example a form for the user to submit his education or employment or list of any ..










 




We will use Indexed Properties. Row Objects or Column Objects .. RowObjects are seperate Objects which are assigned to the Collection in the FormBean with the setter: public void setRowObject(int i, RowObject rowObject).

FormBean EducationForm.java
































SingleEducationUnit (I have named it, as I liked, You can rename) which is assigned to the Collection with the setter:
public void setSingleEducationUnit(int i, SingleEducationUnit singleEducationUnit).

Single RowObject i.e. SingleEducationUnit.java



Here is the education.jsp
































We needed the Indexed Properties in several places in our application. We had to figure out the dynamic rows as well .. I had to program Javascript, DHTML, CSS. Dynamically generating rows .. (Java, Jsp's, Javascript, html, Mastering Jakarta Struts, Jakarta Struts Live) .. Also Java is not the only answer to every thing there is .. C++, Pascal, Linux and Gnu C Compiler .. well .. that's kind a crazy ..

Accessing the Database:
The DAO Layer, we used it for a medium sized J2EE application. My manager wrote it. Using it was good as we were spared from writing SQL queries. 
Ofcourse there should be validation for which Validator Framework can be used, Using Calendars use of Message Resources, interesting.

These frameworks are very widely used, in many applications and ..

Followers