Amazon S3 enables users to create static websites easily. It goes without saying that as far as websites are static there's no server related "sugar" like dynamic HTTP headers that depends on user's request. Unfortunately it also means that S3 service can't respond with either compressed or ...
Articles by Dmitriy Sukharev
How did I configure Ubuntu
As they say there are two types of administrators: who do backups and who already do :) Unfortunately I began to think about this too late and as result I had to reinstall my system and configure it from scratch. In this article I'm describing how I did most steps ...
Install Oracle JDK 7 in 3 simple steps
This article shows how to install or update Oracle JDK 7 in semiautomatic way under Linux operating systems, including Ubuntu, Debian and CentOS. Semi is because Oracle has its proprietary license you have to accept before downloading.
- So the first step is to download JDK from Oracle's site.
- Then ...
Install Oracle JDK 8 under Linux in couple minutes
We were waiting for Java 8 so long, and finally it's ready with all its ground-breaking new features.
This article will help you to install or update Oracle JDK 8 under Linux. I've tested it with several Linux distributions including Debian Wheezy, Jessie, Ubuntu 12.04, 13.10 ...
JBoss AS 7 Configuration
It's kind of not trivial to use JBoss AS after usage of containers like Apache Tomcat or Jetty. And unfortunately JBoss AS isn't distributed in the way that let it be easily set up as service. This article is just a remember for me how should I install ...
Making backups of ext4 partitions with FSArchiver
In this article I'll write how I made backup of system ext4 partition using FSArchiver tool for Linux.
Since I've changed file system of my Ubuntu partition to ext4,
partimage
couldn't create backups from it anymore. So I had to choose another utility instead. I stopped at ...Tagged as : LinuxMaking Jersey-based web-services be JSONP friendly
It's pretty easy to make web-services answer with JSONP callbacks if you're using Jersey. Adding single filter you can make all web-services' resources add callbacks to their response.
Here is the code of such filter. Note that it's Jersey-based.
package net.sukharevd.ws.rs; import javax.ws ...
Tagged as : JavaMySQL. UTF-8 database creation snippet
Well, I haven't remembered syntax of database creation in UTF-8 character set with MySQL for quite a long time. Finally I decided to write a little snippet because I used it so often last time.
CREATE DATABASE database CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE USER 'username'@'localhost' IDENTIFIED BY ...
Performance Overview of String Concatenation
Today I decided to test different ways of concatenation. I chose concatenation with "+" operator, String.format(...) and StringBuilder. I wrote simple code for determining time in milliseconds for each test.
Source Code:
package test; import java.util.Iterator; import java.util.TreeSet; public class Main { private static final double A ...
Tagged as : JavaRapid logger creation in Eclipse
In Eclipse it's possible to create easy to insert templates. Probably you have used "main" template by typing "main" and pressing Ctrl + Space to create main method. You also probably have faced the problem of logging huge amount of classes, and everywhere you needed to use logger factory, type ...
Tagged as : Eclipse