Tips & Tricks, Tutorials, Hacking, Troubleshooting,

Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

XHTML Validation serves the purpose of rechecking our site to see if it follows the W3C standards. It not only ensures quality, but also teaches us good coding practices and thereby eases maintenance. Validating one's code before taking it live serves as a sign of good professionalism in a coder's career.
Common errors found during XHTML validation are listed below:

1. Not closing empty tags.
Empty tags are tags that do not contain any content.
Example:
<br />
<hr />
Wrong : <br>
Correct :<br />
Wrong : <hr>
Correct :<hr />

2. Not closing non-empty elements
Example:
Wrong : <p>This is a paragraph.<p>
Right : <p>This is a paragraph.</p>

3. Missing a / on self-closing tags.
Example:
Wrong : <img >
Right : <img />

Other self closing tags include:
<area />
<base />
<br />
<col />
<command />
<embed />
<hr />
<img />
<input />
<keygen />
<link />
<meta />
<param />
<source />
<track />
<wbr />

4. Using Uppercase characters in Markup Tags.
Example:
Wrong : <BODY> </BODY>
Right : <body> </body>

5. Not escaping Special characters.
Example:
Wrong : Using the ampersand character as "&" and the angled brackets as "<".
Right : Use them as "&" and "<" instead.

6. Nesting the block level elements
Example:
Wrong : <em><h2>About Us</h2></em>
Right : <h2><em>About Us</em></h2>

7. No specifying alternate text for images.
Example:
Wrong : <img src="images/image.jpg" />
Right : <img src="image.jpg" alt="Image Logo" />

8. Non inclusion of quotes around attribute values
Example:
Wrong: <td rowspan=2>
Right: <td rowspan="2">

9. Starting a class or ID with a number.
Class, ID or name attributes should not begin with a number but can include them
Example:
Wrong : <ul class="bottomregion" id="4">
Right : <ul class="bottomregion" id="level4">

md5sum stands for message digest version 5, which is used to check file integrity whether the transferred files are corrupted or not. md5 is a command line utility used in both LINUX or MS-DOS/WINDOWS which generates and verifies message digests using the md5 algorithm. The md5 hash comparison detects changes in files that would cause errors. The possibility of errors is proportional to the size of the file. The possibility of errors will increase with the increase in size of the file.
The main use of md5sum comes into place when dealing with operating system installation. When you have a file like an operating system installation CD, it should be fully correct. Most Linux distributions come with the md5sum utility so its installation is usually not necessary.
We have used the md5sum for checking the the data backup from the server. For this we have to calculate the md5sum value of the data that is to be transferred and note the hexadecimal value obtained as output for the md5sum. Now after transferring the data that are after downloading the whole data from the server, use the md5sum and note down the hexadecimal value obtained as output. Now check the md5sum value before and after download. If both the values are same then the file is not corrupted, that is the transferred file is same as the received file. But if the md5sum values are different then the files are different, that is the file transferred is not the file received.
How to check the ISO file
  1. Open a terminal and go to the directory to check a downloaded ISO file.
    user@user:~$ cd Downloads/
    
    
  2. Run the command from the within the Download directory.
    user@user:~$ md5sum ubuntu-10.04.4-desktop-amd64.iso
    
    
  3. md5sum will print a single line after calculating the hash.
    1c0feea62a3ab961a90dad75c6990d21 ubuntu-10.04.4-desktop-amd64.iso
    
    
Now the hash value is obtained and we will verify it with the previous hash value so as to know whether the ISO file file is corrupted or not.


VTC.com – C++ Tutorials
English | Duration: 9.5h | H264 | 800×600 | 15fps 253kbps | AAC 64kbps 44.1KHz | 1.2GB
Genre: eLearning

C++ is a mid-level programming language that can interact directly with a computer’s hardware or operating system while also being able to abstract lower layers and behave like a powerful high-level language. Object-oriented programming, portability, brevity, modular code structure, performance, and compatibility with the C language provide a unique mix of power and functionality. In this VTC course, Mark Long will introduce you to the C++ language and demonstrate how to begin to program and understand C++. Work files are included. Get started today by clicking on the movie links below!

More info:
http://www.vtc.com/products/C-plusplus-Tutorials.htm

Download

http://shareflare.net/download/06330.014df0b8ca0163eab7aaeb754f0d/VTC.C.Plus.Plus.Tutorials.part1.rar.html
http://shareflare.net/download/42110.48f9aafb5b809c9bc237ba66703d/VTC.C.Plus.Plus.Tutorials.part2.rar.html

http://shareflare.net/download/94017.90bd66e318af8caa8e4c612f8357/VTC.C.Plus.Plus.Tutorials.part3.rar.html

http://shareflare.net/download/44180.45dfab7ef1f389b3b89bb7dda37e/VTC.C.Plus.Plus.Tutorials.part4.rar.html


LinuxCBT PHP Edition (2007)
English | SWF | 418MB
Genre: eLearning

LinuxCBT PHP Edition explores the basics of the ubiquitous PHP dynamic web scripting language.
LinuxCBT PHP Edition focuses entirely on PHP Web and Command-line scripting. Serious Linux IT-professionals are expected to have a command of various scripting environments for administrative purposes.
LinuxCBT PHP Edition, is unparalleled in content, depth and expertise. LinuxCBT PHP Edition prepares you or your organization for successfully developing and implementing business-critical GNU/Linux-based scripting solutions.

Recommended Prerequisites:
LinuxCBT Classic and/or Debian GNU/Linux Editions and/or LinuxCBT BASH/Perl/Python Editions
Open mind & determination to master Linux Scripting Solutions
Access to a GNU/Linux-based PC to perform exercises in LinuxCBT PHP Edition

More info:
_http://www.linuxcbt.com/products_linuxcbt_php_edition.php

Download

http://shareflare.net/download/63279.67c714c8dd07ab44bdcb5a2e3be4/LinuxCBT.Php.Programming.part1.rar.html
http://shareflare.net/download/34061.390e7a815c1ef138e0a2cd27babf/LinuxCBT.Php.Programming.part2.rar.html
http://shareflare.net/download/25128.24f66166b96a3c6c2cae641f42bc/LinuxCBT.Php.Programming.part3.rar.html


Informit – C++ Fundamentals I and II LiveLesson Bundle (2010)
English | Duration: 16h | BGR24 | 1024×768 | 10fps 382kbps | MP3 96kbps 44.1KHz | 4.14GB
Genre: eLearning

Seventeen hours of video training on demand: a complete, easy video course for every professional developer who wants to master C++! – Start-to-finish personal training on C++ object-oriented programming from worldclass trainers Deitel and Associates: just watch and learn! – Step-by-step video walkthroughs take developers from basic syntax through advanced techniques, using the Deitels’ proven “Live Code” approach – Great classroom training at a fraction of the cost…for pros who don’t have time to read a book Summary C++ Fundamentals I and II: Video LiveLessons is the only C++ video training delivered on DVD for the packaged product market.

Top programming author and trainer Paul Deitel of Deitel and Associates teaches virtually every essential C++ and object-oriented development technique that professional developers need to know. This two-part course utilizes the Deitels’ signature live-code approach to present all the fundamentals of C++, objects, and event-driven programming in the context of complete working programs. All source code can be downloaded, and then run with Microsoft’s free Visual C++ 2008 Express. Through 15 lessons, viewers build skills one step at a time, using realworld examples. Like all products in the LiveLessons series, C++ Fundamentals I and II: Video LiveLessons responds to the growing demand for just-in-time training delivered visually, by leading industry experts. It delivers the power of the best classroom training at a fraction of the cost, appealing to an audience of professionals who don’t have time to read a large book

# Start-to-finish personal training on C++ object-oriented programming from world-class trainers Deitel and Associates: just watch and learn!
# Step-by-step video walkthroughs take developers from basic syntax through advanced techniques, using the Deitels’ proven “Live Code” approach
# Great classroom training at a fraction of the cost… for pros who don’t have time to read a book

Content
Fundamentals I
Dive into Visual C++ 2010 Express
1. Introduction to C++ programming
2. Introduction to Classes and Objects
3. Control Statements part I
4. Control Statements part II
5. Functions
6. Arrays and Vectors
7. Pointers and Pointer-based Strings
8. Classes: A Deeper Look, part 1
9. Classes: A Deeper Look, Part 2

Fundamentals II
10. Operator Overloading; String and Array
11. Object-Oriented Programming: Inheritance
12. Object-Oriented Programming: Polymorphism
13. Templates
14. Exception Handling
15. Standard Template Library(STL)
16. STL Containers and Container Adapters
17. STL Algorithms, the Bitset Class and Function Objects

Download

http://shareflare.net/download/81470.89c21185332073b9707f5a3b3a62/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part1.rar.html
http://shareflare.net/download/39598.3b978ca354ff55fab9b9c4f1c7e7/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part2.rar.html
http://shareflare.net/download/82393.8a81cf1209434ff282ab201da824/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part3.rar.html
http://shareflare.net/download/31257.31e4361952520a52217aefd8bf01/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part4.rar.html
http://shareflare.net/download/86812.880ea445bbbb2785a0911b349785/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part5.rar.html
http://shareflare.net/download/11966.195b6e7697f48273f9ecf8d8b8fe/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part6.rar.html
http://shareflare.net/download/51071.5bfd38a694e58223b8c73834a1ff/C.PP.Fundamentals.I.II.LiveLesson.Bundle.part7.rar.html