Categories


Archive for the ‘Programming’ Category

TOP 10 Benefits of Standards-based Programming

1. Deliver to multiple user agents. The same piece of marked-up content is readily deliverable in a wide variety of user agents, the collective name for devices that can read XHTML, such as browsers, handhelds like smartphones, cell phones with browsers, and screen readers that read text for the sight impaired. You simply create a different style sheet for each device type, or let the XHTML display as is. 2. Improve performance. Pages are much lighter (smaller in fi le

Continue Reading

3 Comments

(X)HTML DOCTYPE

Declare a DOCTYPE. The DOCTYPE goes before the opening html tag at the top of the page and tells the browser whether the page contains HTML, XHTML, or a mix of both, so that it can correctly interpret the markup. There are three main DOCTYPEs that let the browser know what kind of markup it is dealing with: Strict: All markup is XHTML-compliant. “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> Transitional: This states that the markup is a mix of XHTML and deprecated HTML. Many well-established

Continue Reading

No Comments

Unexplained Activities on Computers

Does your hard-drive or network-activity light flicker for no apparent reason? While there may be a legitimate reason for it, this could also be a sign that a virus or a hacker’s back-door program (a devious little program that allows secret access without your permission) is running on your computer. You might be donating some of your computer resources to a hacker and be largely unaware of it. Here are some examples of what could be going on if a

Continue Reading

No Comments

C++ Reading From a Text File

#include <iostream> #include <fstream> #include <string> using namespace std; int main() { string line; int count = 0; ifstream FileName (“try.txt”); if (FileName.is_open() && !FileName.eof()){ while (getline(FileName,line)){ count++; } } else cout << “Error opening file!” << endl; cout << “The number of lines in the file is ” << count << endl; system(“pause”); } This program counts the number of lines in a text file. I used the getline function to count it. The getline function is used to

Continue Reading

No Comments

Page 6 of 6123456

Rss Feeds