Note: To try out the examples in this document, you would need root access.
To create a new user you use the adduser command. To add a user by called linuxjunky:
$ adduser linuxjunky
If you get a command not found error
$ /usr/sbin/adduser linuxjunky
To assign a password to your new user
$ passwd linuxuser
To grant ownership of a file to the new user
$ chown linuxjunky filename
To change grant ownership of a directory to the new user
Cascading Style Sheets (CSS) is a design language for styling HTML documents. In modern websites, HTML controls the structure while CSS controls its presentation. Let's suppose that you have some HTML formatting in numerous pages across your website. Would you want to manually modify 10,000 HTML elements to implement the new formatting? Ideally, there should be one place where you can make a change that modifies that formatting everywhere you need in the website. Technical term for this concept is "modular design". This technology already exists and it is called CSS.
If you had to work with IBM products, you probably have had to work with DB2. This page will get you up and running with DB2 in 10 minutes.
It is very easy to drop a MySQL database:
drop database database_name
Tons of blogs and articles online mention this command. Recently, however, I came across a database name which had spaces in them. For example:
company balances electronics inventory store employees ...
If I do:
drop database company balances
MySQL would complain that the databases company and balances do not exists. Naturally, the first thought on my mind was to enclose them the database.
The web is the most popular feature of the Internet and HTML is the backbone of the web. Everything that we see on the web is used with HTML. All fancy web technologies either generate or manipulate HTML in different ways.
.ear, .war, and .jar files are simply files zipped using Java jar tool. Each file is created for a different purpose:
Jar (Java Archive) files contain libraries, resources and accessory files such as property files.
Ear (Enterprise Archive) files contain EJB modules.
Java’s break and continue statements are used to alter the flow of control.
break The break statement can be used in for, while or do-while loops. It is also used in switch structure. A break statement exits the loop without executing the rest of the code in the loop. In other words, if the program encounters a break inside a for loop, it exits the loop without executing the remaining statements even if the test condition of the loop is still valid.
= is for assignment
var a = 50 // int var b = "50" // string
== is for equality test
a == b // returns true
=== tests equality of type and value It will convert int to string and the value will be true
a === b // returns false
This will not cast type. So 50 is not equal to "50".
What is the difference between Linux and Linux distribution?
Linux is the core of the operating system i.e. the kernel. Kernel manages the physical resources of the computer and performs tasks such as starting and stopping programs, allocating memory, managing the processor, and managing network connections.
Let's begin with some concepts:
Alter table command is used for altering tables, table fields and table indexes
To rename a table:
ALTER TABLE mytable RENAME yourtable;
To add a column:
ALTER TABLE mytable ADD COLUMN update TIMESTAMP FIRST ALTER TABLE mytable ADD COLUMN update TIMESTAMP AFTER id ALTER TABLE mytable ADD COLUMN update TIMESTAMP LAST
The first example create a column in the first position. The second command creates a column after the column id. The last example creates a column in the last position.
Download from https://nodejs.org. Install with default options. To check, type the following on the terminal
Project Management Knowledge Areas Project management knowledge areas describe key project management competencies. There are four core knowledge areas, four facilitating knowledge areas and integration management.
PostgreSQL also called Postgres is an object-relational database management system that focuses on extensibility and standards-compliance.
This quick walk-through are my notes for installing the PostgreSQL database server and the PgAdmin administration application on Ubuntu Linux, and also set up the server so it allows access to other PC's on your network.
Right for the basic installation, at the command-line, enter the following commands (or search for the listed packages in synaptic if you prefer that way of working):
Why learn python? Because it packs a powerful punch. Python is is easy to learn, user-friendly, highly extensible and overall a very powerful language. Like Java, it is fully object-oriented and it is as fast as C++. It allows scripting. I find that development in Python is more rapid than C++ or Java.
Python is free and fully supported by Linux, Windows and MacOS. There is strong community support and there are thousands of packages to extend the language.
Who is using python? Google. Need I say more?
To install on Linux:
A simple ls lists directory contents by name. To list by time, use
$ ls -t
To see time in the listing
$ ls -lt
To show the most recently modified files first
$ ls -ltr
Subversion (SVN) is a very popular open source versioning system. It manages files, directories, and changes made to files and directories over time by single of multiple users. If you have the time to thoroughly learn SVN, the only book you should read is available online for free. It can be found at http://svnbook.red-bean.com. However, if all you want to do is get started with SVN within an hour, you have come to the right place.
Error: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
Solution: 1. Open httpd.conf for editing
sudo vi /etc/apache2/httpd.conf
You might be surprised to see that the file is empty
type the following:
Save file and restart apache server
service apache2 restart