Tags:LinuxHow to generate a random password under linux?

Well, there are really many ways to generate a random password under linux.

For any of these random password commands, you can either modify them to output a different password length, or you can just use the first x characters of the generated password if you don’t want such a long password. Hopefully you’re using a password manager like LastPass anyway so you don’t need to memorize them.

This method uses SHA to hash...

Operating system - Linux

Tags:LinuxHow to design your linux courses?

IT professionals who are new to Linux and require core Linux skills. Focused on administration tasks that will be encountered in the workplace, engage students in task-focused activities, lab-based knowledge checks, and facilitative discussions to ensure maximum skill transfer and retention. In addition, to build on the students' existing technical knowledge, while key command line concepts will be introduced to provide a foundation for students...

Operating system - Linux

Tags:PhpWhat is PHP?

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.What features does PHP have? PHP is free to download and use PHP is an open source software PHP is a...

Programming - PHP

What is Linux and who is Linus?

Linux is an operating system that was initially created as a hobby by a young student, Linus Torvalds, at the University of Helsinki in Finland. Linus had an interest in Minix, a small UNIX system, and decided to develop a system that exceeded the Minix standards. He began his work in 1991 when he released version 0.02 and worked steadily until 1994 when version 1.0 of the Linux Kernel was released.The history of linux in life

The kernel, at the heart of all...

Operating system - Linux

Tags:CanvasCbuilderLinetoOnmousedownOnmousemoveOnmouseupHow to respond to the mouse event when using canvas to draw graphics in C++Builder?

Your application can respond to the mouse actions: mouse-button down, mouse moved, and mouse-button up. It can also respond to a click (a complete press-and-release, all in one place) that can be generated by some kinds of keystrokes (such as pressing Enter in a modal dialog box).
This section covers:What's in a mouse event.

C++Builder has three mouse...

Programming - C++Builder

Tags:Canvas

This is an full codes example on how to draw graphics with an image's canvas. The following picture shows the effect of the running program. If you want to run this code example, just save the form's text to "FormMain.dfm", save the .h file codes to "graphwin.h" and save the .cpp file code to "graphwin.cpp", then create a new project and include these files to your project.

 //FormMain's text--FormMain

object FormMain: TFormMain
  Left = 250
  Top = 148
  Width = 463
 ...

Code Examples & Download - C++Builder

Tags:BitmapCbuilderGraphicsHow to make a 'rubber banding' effect in C++Builder?

This example describes the details of implementing the 'Rubber banding' effect in an graphics application that tracks mouse movements as the user draws a graphic at runtime. The example code in this section is taken from a sample application located in the Examples\Doc\GraphEx directory. The application draws lines and shapes on a window's canvas in response to clicks and drags: pressing a mouse button starts...

Programming - C++Builder

Tags:CbuilderCopyCutGraphicsPasteHow to use the clipboard with graphics?

You can use the Windows clipboard to copy and paste graphics within your applications or to exchange graphics with other applications. The VCL's clipboard object makes it easy to handle different kinds of information, including graphics.

Before you can use the clipboard object in your application, you must add an include statement for Clipbrd.hpp to any .cpp file that needs to access clipboard data.
For cross-platform...

Programming - C++Builder

How to load and save graphics files?

Graphic images that exist only for the duration of one running of an application are of very limited value. Often, you either want to use the same picture every time, or you want to save a created picture for later use. The image component makes it easy to load pictures from a file and save them again.

The components you use to load, save, and replace graphic images support many graphic formats including bitmap files, metafiles, glyphs, and so on. They...

Programming - C++Builder

More Articles...