Roberto Abraham Scaruffi

Tuesday, 23 September 2014

 Programming
 
From Scott Orgera, your About Programming Editor
 
 
This week's newsletter runs the gamut from Delphi to Ruby, highlighting a number of interesting tutorials such as how to generate readable passwords in Perl and breaking text into chunks using JavaScript...
 
Follow us on:
 
 
Sign up for more free newsletters:
 
Java: Verifying a File or Directory
Before trying perform any actions on a file or directory it is prudent to make sure that the file or directory exists. If it doesn't and an application attempts to do something with a non-existent file or directory, then things are going to fall apart pretty quickly. The Path interface can be used as a representation of a path on the file system, but even if a Path interface variable holds a path it does not mean that the path actually exists. Don't confuse the representation of a path with an actual one. To verify the existence of a file or directory use the Files class, detailed in this tutorial. READ NOW
Perl: Setting a Cookie in a Browser
Since HTTP is by definition a stateless protocol, we need a method to retain sessions across transactions. This can be done in several ways, but the most clean and common is by setting a cookie in the client's browser. A cookie is basically a key / value pair that is stored in a tiny text file on the client's machine. Cookies are sent in the HTTP headers, and can thus be used to track a user across transactions.  READ NOW
Getting Started With NetBeans
Using an IDE for the first time can be a bit daunting for someone new to programming. They are heavyweight applications designed to help programmers through all the development stages of an application. In the beginning it's not necessary to worry about most of the tasks an IDE can perform -- just focus on writing, debugging and running the programs you write. The rest can be left alone until it's needed. This article shows the steps needed to write and run a very simple program to say "Hello World" in NetBeans. READ NOW
Dock and Float Forms in Delphi
The TPageControl is a really handy pick when you need to create tabbed interfaces where only one tab sheet is presented (visible) to the user at one time. Each tab of a page control can host different controls and thus allows you to create a complex user interface experience. READ NOW