Optimize the site performance by enabling browser caching with .htaccess file.
Errors can be reported to a client either by creating and returning the appropriate Response object or by throwing an Exception.
A list of default (and for some specific providers) SMTP, IMAP and POP3 email settings (ports and servers).
A regular expression (regex) is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings, or string matching.
A list with some basic (maybe most used) Linux commands, what they do and their syntax, and also some usage examples.
The font-size property sets the size of the text. There are four different units for the font-size value: px, em, percent and pt.
There's no one single consistent style followed by all applications, but doesn't really matter so long as the expected audience understands what you mean.
Right click on any PDF file, and select the 'Open with' item on the menu.
A script tag causes the browser to halt rendering, load a file, and run the code (the script will be executed before parsing is resumed).
It is possible to change the welcome screen that appears when you start your computer also without any third-party software, but this setting is well hidden.
The role of the JVM is to read the Java application through the Class Loader and execute it along with the Java API.
A design pattern is a common, well-described solution to a common software problem. Sensible use of design patterns results in increased code maintainability.
API is a mean for accessing a provided service/function, SPI is way to inject, extend or alter the behavior.
Cron expressions are used to configure the scheduling of automated processes (for example to run periodically at fixed times, dates, or intervals).
Repository based package management operations on the Debian system can be performed by many APT-based package management tools (like apt-get and aptitude).
By default, DokuWiki does no URL rewriting, resulting ugly URLs (http://server.com/doku.php?id=page) and not indexed well.
The older way is scandir but DirectoryIterator is probably the best way. There's also readdir (to be used with opendir) and glob.
A FileVisitor can be used to recursively visit all the files in folder. The interface specifies the required behavior at key points in the traversal process.
Advanced search operators are query words or symbols that perform special actions in Gmail search.
How to change the look and feel of Swing applications. The 'look' of an application refers to its appearance. The 'feel' refers to how the widgets behave.
Cryptography is looking at techniques for encoding and verifying things securely. It tends to focus on encryption, authentication and computer protocols.
The UnsatisfiedLinkError is thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native.
A NullPointerException exception thrown at runtime indicates the existence of an underlying null pointer dereference that must be fixed in the application code.
Use MKVToolNix (a cross-platform set of tools to create, alter and inspect Matroska files) to find and extract the subtitles (and fonts).
To deal with duplicate and circular references, XStream is using XPath to allow serialized objects to be treated as graphs instead of simple trees.
Quick start tutorial on serializing an object to JSON (and deserializing back from JSON) using XStream, a simple java library.
Quick start tutorial on serializing an object to XML (and deserializing back from XML) using XStream, a simple java library.
An easy way to transfer the code when developing on different systems is to use a flash drive (or a file hosting service) as a subversion (SVN) repository.
The recommended way to install Eclipse on Ubuntu is using the distribution's package manager, but the Ubuntu distribution contains a very old version.
Instructions for installing and configuring Nexus Repository Manager as a service (so it starts back up after server reboots).
Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It runs also on Windows and is licensed under the GNU GPL.
vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast. It is stable.
Singleton pattern is a design solution where only one instance of a class is created, and provide a global point of access to the object.
How to download and install prebuilt OpenJDK packages (Java Runtime Environment or Java Development Kit) in various Linux distributions.
How to download and install Sun/Oracle's proprietary Java (Java Runtime Environment or Java Development Kit) in Ubuntu Linux distribution.
HibernateException - A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance
Hibernate is unable to track changes to a newly set collection (as a new object) and thus has no idea how to apply the cascading persistence to your objects.
One-to-many associations are declared at the property level with the annotation @OneToMany.
The solution to code repetition (like for example wiring an id field in every Hibernate entity) is to inherit these properties from a superclass.
Best way to install and keep up-to-date with Google Chrome browser is to use Google's own YUM repository.
Best way to install is to add the Google Chrome PPA to repository and to install using the 'apt-get' command.
A shared VirtualBox folder allows to easily share files between host OS and guest OS. This guide shows how to mount the VirtualBox shared folder on Linux.
How to create CD and DVD mount points in Linux (common CD mount points are /cdrom and /mnt/cdrom and common DVD mount points are /dvdrom and /mnt/dvdrom).
The programmable completion feature in Bash permits typing a partial command, then pressing the [Tab] key to auto-complete the command sequence.
To make GNU Wget (wget command) work behind a proxy, 'wgetrc' (which is found in '/etc/' directory) file must be edited.
To make APT (apt-get command) work behind a proxy, 'apt.conf' (which is found in '/etc/apt/' directory) file must be edited.
Each of the software development processes may change to some extent, but fundamentally there are some roles which every process has in one form or another.
Code review is a phase in the software development process to catch bugs and design errors before the code becomes part of the product.
The minimum set of HTML headers to disable browser caching that works across the most important browsers: Cache-Control, Pragma, Expires.
The instructions in this guide are for upgrading the Samsung Galaxy S2 GT-I9100 to Android 4.0.4 build XXLQ5.
The instructions in this guide are for rooting the Samsung Galaxy S2 GT-I9100 on Android 4.0.4 build XXLQ5.
Spring allows to externalize string literals in its context configuration files into external properties files.
The Spring Framework is an open source application framework and inversion of control container for the Java platform.