OrientDB 1.4.1のダウンロード

ダウンロード
google サイトからダウンロード

OrientDB is a NoSQL DBMS which can store 150,000 documents per second on common hardware. Even with a document-based database, the relationships are managed as in graph databases

JunkieTheSniffer 2.5.0 のダウンロード

ダウンロード
提供元サイトからダウンロード

JunkieTheSniffer. Junkie is a real-time packet sniffer and analyzer. It is modular enough to accomplish many different tasks. It can be a helpful companion to the modern network administrator and analyst

[java入門]java.util.Calendarクラスの使い方

1.javaコード
import java.util.Calendar;

public class CalendarDemo {

public static void main(String[] args) {
Calendar cal = Calendar.getInstance();

// 計算出力
System.out.println(“年: ” + cal.get(Calendar.YEAR));
System.out.println(“月: ” + cal.get(Calendar.MONTH));
System.out.println(“日: ” + cal.get(Calendar.DATE));
System.out.println(“HOUR: ” + cal.get(Calendar.HOUR));
System.out.println(“MINUTE: ” + cal.get(Calendar.MINUTE));
System.out.println(“SECOND: ” + cal.get(Calendar.SECOND));
System.out.println(“MILLISECOND: ” + cal.get(Calendar.MILLISECOND));
System.out.println(“DAY_OF_YEAR: ” + cal.get(Calendar.DAY_OF_YEAR));
System.out.println(“DAY_OF_MONTH: ” + cal.get(Calendar.DAY_OF_MONTH));
System.out.println(“DAY_OF_WEEK: ” + cal.get(Calendar.DAY_OF_WEEK));
System.out.println(“DAY_OF_WEEK_IN_MONTH: ” + cal.get(Calendar.DAY_OF_WEEK_IN_MONTH));
System.out.println(“WEEK_OF_YEAR: ” + cal.get(Calendar.WEEK_OF_YEAR));
System.out.println(“WEEK_OF_MONTH: ” + cal.get(Calendar.WEEK_OF_MONTH));
System.out.println(“AM_PM: ” + cal.get(Calendar.AM_PM));
System.out.println(“HOUR_OF_DAY: ” + cal.get(Calendar.HOUR_OF_DAY));
System.out.println(“ERA: ” + cal.get(Calendar.ERA));
}

}

 

2.結果
年: 2017
月: 10
日: 3
HOUR: 11
MINUTE: 57
SECOND: 29
MILLISECOND: 988
DAY_OF_YEAR: 307
DAY_OF_MONTH: 3
DAY_OF_WEEK: 6
DAY_OF_WEEK_IN_MONTH: 1
WEEK_OF_YEAR: 44
WEEK_OF_MONTH: 1
AM_PM: 0
HOUR_OF_DAY: 11
ERA: 1

YB.ORM 0.4.0のダウンロード

ダウンロード
提供元サイトからダウンロード

googleサイトからダウンロード

YB.ORM tool is developed to simplify for C++ developers creation of applications that work with relational databases. An Object-Relational Mapper (ORM) works by mapping database tables to classes and table records to objects in some programming language. This approach may be not optimal for each and every database application, but it proved to be reasonable in applications that require complex logic and transaction handling. The goals of YB.ORM project are: provide a convenient API for C++ developers, retain high performance of C++, keep the source code easily portable across different platforms, support most major relational DataBase Management Systems (DBMS).

Jackcess 1.2.13のダウンロード

ダウンロード
提供元サイトからダウンロード

サンプル:
Database db = Database.create(new File(“new.mdb”));
Table newTable = new TableBuilder(“NewTable”)
.addColumn(new ColumnBuilder(“a”)
.setSQLType(Types.INTEGER)
.toColumn())
.addColumn(new ColumnBuilder(“b”)
.setSQLType(Types.VARCHAR)
.toColumn())
.toTable(db);
newTable.addRow(1, “foo”);

UbuntuにPostgreSQLをインストールする

postgresqlのインストール
$ sudo apt-get install postgresql

postgresqlバージョンの確認
$ ps -aef | grep postgres

データベースの作成
$ sudo su – postgres # ユーザpostgresになる
$ createdb demodb # データベース demodb を作成
$ psql demodb # demodb にログイン

「Spring入門」フォームでリストからselect/optionタグを生成するサンプル

Javaコード
@RequestMapping(“/form”)
public void form(Model model) {
Map<String, String> userList = XXX;
model.addAttribute(“userList”, userList);
}

 

JSPコード
<form:select path=”userInfo”>
<form:option value=””>demo test</form:option>
<form:options items=”${userList}” />
</form:select>

OpenMW 0.24.0のダウンロード

ダウンロード
提供元サイトからダウンロード
The OpenMW team is proud to announce the release of version 0.24.0! Mosey on over to our newfangled Downloads Page to find releases for all operating systems. This release brings the much-anticipated animation layering feature, Athletics, Security, Night-Eye and Blind, along with a plethora of other fixes and changes.

「MySQL入門」GRANTでユーザを作るコマンド

コマンド
CREATE USER ‘yamada’@’localhost’ IDENTIFIED BY ‘123456’;
GRANT ALL ON testdb.* TO ‘yamada’@’localhost’;

「nginx入門」httpsにリダイレクトする方法

サンプル:
server {
listen 80;
server_name sample.com;
rewrite ^ https://$server_name$request_uri? permanent;
}