Showing line numbers on Eclipse and RAD
To show line numbers in Eclipse or RAD, following these steps:
- Click on Windows > Preferences
- Click on General > Editors > Text Editors
- Check "Show line numbers"
To show line numbers in Eclipse or RAD, following these steps:
To shutdown:
sudo shutdown -h now
To restart
sudo shutdown -r now
Java provides a number of classes and methods that allow to read and write files. In Java all files are byte-oriented. Two of the most often-used stream classes are FileInputStream and FileOutputStream, which create byte streams linked to files.
Syntax
Suppose you need to call some JavaScript code on your page such as:
<script src"somecode.js"></script>
However, the somecode.js is different based on other parameters on your page. So you would need to pass a variable rather than the static string to the src. If you just replace somecode.js, with a variable name, you code will not be called.
The following example shows how you can manipulate DOM to define src so that your code runs.
The Mac OS keyboard does not have a print screen button. So this is how to capture your screen on Mac:
The screen shot would appear on your desktop.
You can also do a screen capture for a portion of your screen.
Easy.
On development systems it is common practice to have different log file to log PHP error logs for different tools and different versions of the same tool. Generally it is a good idea to use meaningful names to make it easy to distinguish between the log files. If you have doubts, you can either look inside the code to see which error log file is being called or do the following:
$ cd ~
$ ls -al /var/log/httpd before.diff
Run the tool such that it would write something to the log file. Then
It is now common for users to work with multiple monitors. Laptop users, especially, prefer to work on their laptop screen and an external monitor when at they at work or at home. If you are using netflix or some other service to download movies, you would prefer to watch it on large screen rather than your laptop screen, so you would want to connect your computer to a TV or projector.
It is very easy to connect Mac OS computers to external monitors.
Advanced Packaging Tool (APT) is used by Debian system to manage package installations. Following are some quick commands:
Some common commands that can be used with APT:
Installing packages
$ sudo apt-get install package
Removing packages
$ sudo apt-get remove package
Getting a list of packages
$ sudo apt-get update
Upgrading packages
$ sudo apt-get upgrade
When downloading Apache from apache.org for Microsoft Windows Operating System, you are given two options:
OpenSSL is an open-source implementation of SSL and TLS protocols. mod_ssl is a package that provides cryptography for Apache via SSL and TLS. SSL and TLS specify how to securely encrypt and send confidential information over HTTP.
When you use a foreach loop, PHP creates a copy of the current element you are using in your loop. Any changes you make to this element is not saved to the original array. See the first part of the following example: