Home Programming

Search

Programming
CSS Media Dynamic Screen Sizes Print
Written by Chris Gountanis   

CSS Media Dynamic Screen SizesIncreasingly, web-enabled devices are capable of determining their orientation; that is, they can report data indicating changes to their orientation with relation to the pull of gravity. In particular, hand-held devices such as mobile phones can use this information to automatically rotate the display to remain upright, presenting a wide-screen view of the web content when the device is rotated so that its width is greater than its height.

There are two ways to deal with orientation information in Gecko. The first is the orientation media query. This lets content adjust its layout using CSS, based on whether the device is in landscape mode (that is, its width is greater than its height) or portrait mode (its height is greater than its width).

 

Last Updated on Wednesday, 02 June 2010 15:15
Read more...
 
VB.NET Loan Calculator Example using DataGridView Print
Written by Chris Gountanis   

Visual Studio VB.NET Mortgage Loan Calculator Example Project with Source CodeThis Mortgage (Loan) Calculator application was created in VB.NET using a Progress Bar and a Data Grid View control. I was tired of the multi-line text box formatting issues and decided to step is up a notch. I hope this helps a few beginner VB.NET coders or programming students advance beyond the basic requirements for output. The results of this loan payment calculator are for comparison purposes only. They will be a close approximation of actual loan repayments if available at the terms entered, from a financial institution. This is being provided for you to plan your next loan application. To use, enter values for the Loan Amount, Number of Months for Loan, and the Interest Rate optionand click the Calculate button. Clicking the Reset button will clear entered values.

Last Updated on Wednesday, 21 July 2010 12:16
Read more...
 
C++ Mortgage Payment Loan Calculator Print
Written by Chris Gountanis   

C++ Programming Language ExampleThis application uses C++ in order to show how a mortgage payment loan calculator can be programmed. It is very basic and great for beginners. The basis of the application is a client needs a program that will calculate mortgage payments. I went a couple steps to buffer output in 12 month intervals as well as some color to spice things up a bit. I used Visual Studio 2008 to code the application but it uses native code so it should be somewhat portable on the Windows platform. If this is needed on other platforms the colors as well as the Windows header will have to be removed for compatibility. C++ is a general-purpose programming language. C++ is regarded as a middle-level language, as it comprises a combination of both high-level and low-level language features. It is a statically typed, free-form, multi-paradigm, compiled language where compilation creates machine code for the target machine hardware, supports procedural programming, data abstraction, object-oriented programming, and generic programming.

Last Updated on Tuesday, 12 August 2008 15:23
Read more...
 
Java Loan Calculator Project Print
Written by Chris Gountanis   

This program asks user for input amount of the loan, the interest rate and the number of years. The program validates the input checking for valid numeric data before continuing. If the interest rate was entered in percentage form it converts to decimal before calculation process. The program then calculates the monthly payment. The monthly payment total and the input values are displayed rounded to the second decimal place.

Last Updated on Saturday, 09 February 2008 07:21
Read more...
 
XSLT Grouping and Sorting Example (Muenchian Method) Print
Written by Chris Gountanis   

Sorting distinct groups with XSLT 1.0 is a common issue. When XSLT 2.0 is standardized there will be for-each-group tags available which will replace this example. The code below will show you how to group and sort within each group utilizing an XML data file. The XSL code will group by material then sort by price within each distinct material. To add some additional functionality a choose tag was included in order to style the low quanity values.

Last Updated on Saturday, 07 February 2009 13:50
Read more...
 
« StartPrev123NextEnd »

Page 1 of 3