10-12-2001
I know just what you mean!
Here are some ideas for you
1. Video shop database/booking system.
** A database can be just a bunch of flat text files.
2. Sorting routines.
** Try to write a sort routine that can handle any size of file.
Use temporary files to store intermediate results.
3. Experiment with simple screen displays.
e.g. write a menu program that use (by file or command line) a list of options and will return the selected option.
4. A mail merge program.
5. Try to emulate some Unix commands e.g. grep, ls, find
6. If you can manipulate graphics try writing a program that generates a tiled map of terrain.
** Try to make the map a realistic a possible. Keep it in as small amount of memory as possible. Allow the user to scroll about the map using cursor keys.
These are just a few ideas of the top of my head. I promise you that at when I was learning how to program I have written these programs for myself.
It is good that you are willing to take on programming. Remember the only way to get good is to pratice.
Regards
MBB
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work
if
statement
then
statement
do or for or while
statement
done
else
statement
fi....
I dont know how else to explain that...I hope I... (2 Replies)
Discussion started by: jonas27
2 Replies
2. UNIX for Dummies Questions & Answers
Hi Guys, I have recently started a new job at quite a large company. Part of my daily role is to grep for processes, kill them when they're failing and restart them etc. Also editing config files in Vi mode.
I have become quite interested in Unix and am currently studying for the Sun Certified... (1 Reply)
Discussion started by: JayC89
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies
4. UNIX for Dummies Questions & Answers
Is there any book/resource that one can refer to, to be able to write programs at kernel/system level.. I'm looking for a programming book that could serve as a guide to write kernel codes / system level programming etc..
I have Tannenbaum's Design and Implementation. It addresses theoretical... (2 Replies)
Discussion started by: vishwamitra
2 Replies
5. Shell Programming and Scripting
Hi All,
I am facing an issue. I need your advise. I want to take my unix skills to the next level. I want to verse in scripting now. I got some understanding of programming. I did a little bit of C++, Assembly in College.
I got some basics in perl. I am wondering if It would be best to... (3 Replies)
Discussion started by: Pouchie1
3 Replies
6. Shell Programming and Scripting
Folks! Anyone please explain the behavior of this program step by step. Thanks.
#! /usr/bin/perl
$testfile = "./testfile2";
for ( $i = 1, $i <= 5, $i++) {
open ($FILE, ">", $testfile);
print ($FILE "Output 1 \n");
close ($FILE);
}
print "The value of (4 * 2) / 2 is ";
print (4 * 2)... (1 Reply)
Discussion started by: huko99
1 Replies
7. Homework & Coursework Questions
Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies
8. AIX
Dear Sirs:
Good afternoon, my name is Javier.
I´m new to Unix and I am working as a Linux Server admin in an ISP from Argentina.
I´m want to in learn AIX, and find interesting information about it on some IBM Redbooks.
I would like to know if is there any possibility to Virtualize an AIX... (8 Replies)
Discussion started by: xavinux
8 Replies
9. Shell Programming and Scripting
I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade.
I have:
if ( $response =~ m/^/ ) {
$user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
LEARN ABOUT REDHAT
createlang
CREATELANG(1) PostgreSQL Client Applications CREATELANG(1)
NAME
createlang - define a new PostgreSQL procedural language
SYNOPSIS
createlang [ connection-options... ] langname [ dbname ]
createlang [ connection-options... ] --list | -l dbname
DESCRIPTION
createlang is a utility for adding a new programming language to a PostgreSQL database. createlang can handle all the languages supplied
in the default PostgreSQL distribution, but not languages provided by other parties.
Although backend programming languages can be added directly using several SQL commands, it is recommended to use createlang because it
performs a number of checks and is much easier to use. See CREATE LANGUAGE [create_language(7)] for additional information.
OPTIONS
createlang accepts the following command-line arguments:
langname
Specifies the name of the procedural programming language to be defined.
[-d] dbname
[--dbname] dbname
Specifies to which database the language should be added. The default is to use the database with the same name as the current sys-
tem user.
-e
--echo Displays SQL commands as they are executed.
-l
--list Shows a list of already installed languages in the target database (which must be specified).
-L directory
Specifies the directory in which the language interpreter is to be found. The directory is normally found automatically; this option
is primarily for debugging purposes.
createlang also accepts the following command-line arguments for connection parameters:
-h host
--host host
Specifies the host name of the machine on which the server is running. If host begins with a slash, it is used as the directory for
the Unix domain socket.
-p port
--port port
Specifies the Internet TCP/IP port or local Unix domain socket file extension on which the server is listening for connections.
-U username
--username username
User name to connect as
-W
--password
Force password prompt.
ENVIRONMENT
PGDATABASE
PGHOST
PGPORT
PGUSER Default connection parameters.
DIAGNOSTICS
Most error messages are self-explanatory. If not, run createlang with the --echo option and see under the respective SQL command for
details. Check also under psql(1) for more possibilities.
NOTES
Use droplang(1) to remove a language.
createlang is a shell script that invokes psql several times. If you have things arranged so that a password prompt is required to connect,
you will be prompted for a password several times.
EXAMPLES
To install pltcl into the database template1:
$ createlang pltcl template1
SEE ALSO
droplang(1), CREATE LANGUAGE [create_language(7)]
Application 2002-11-22 CREATELANG(1)