Illegal Argument Exception

Miscellaneous Computer Code

Sunday, 12 February 2017

Git: on a (Compute) Stick

›
How to make a home Git server out of an Intel Compute Stick STCK1A8LFC . It is assumed readers have enough knowledge of Linux and IP ...
Monday, 19 September 2016

Java: close any type in try-with-resources using lambdas

›
Java 7 introduced the AutoCloseable interface for use in try-with-resources statements. However, not every resource implements this in...
Saturday, 5 March 2016

Pacemaker: Observations on Building Clusters

›
Pacemaker is a cluster resource manager used in Red Hat/CentOS 6.5+/7. This is a short post on considerations for building a server cluster...
Wednesday, 9 September 2015

Python: Office 365 alerts on Linux

›
It is possible to use Microsoft's Office 365 with native Linux clients for mail and calendar: Mozilla's Thunderbird with the...
Thursday, 3 September 2015

ISC DHCP: OMAPI wire protocol

›
OMAPI: Object Management Application Programming Interface This post briefly describes the OMAPI protocol for the Internet Systems Consort...
Saturday, 4 July 2015

Rust: RustDT IDE on Linux with Eclipse Mars

›
This is a quick guide to setting up an IDE for Rust using RustDT . Familiarity with Linux and root access is assumed. Modify commands to su...
Tuesday, 26 May 2015

Rust: print the program arguments

›
A simple example using Cargo in Rust 1.0 on Linux. Install Rust if you haven't. Create a project: $ cargo new hello --bin This ...
Monday, 25 May 2015

Blog: Google Code shutting down; code moved to GitHub

›
Many previous posts link to https://code.google.com/p/illegalargumentexception/ but this resource is going away: Hello, Earlier today,...
Friday, 15 May 2015

Rust: is ready to roll (1.0.0 released)

›
$ sudo ./install.sh install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh install: installing component 'rustc...
Wednesday, 13 May 2015

Rust: send and receive on localhost with UDP

›
UDP it is the simple cousin of TCP . You send a message off into the ether, you might listen a period of time for a response, and the paylo...

Rust: start thread & return value on finish

›
Rust threads are relatively easy to spawn and pass results back from. use std::thread; pub fn add_in_future(i1: i32, i2: i32) -> i32 ...

Rust: serializing structs to bytes

›
Back when I wrote C code for platform-dependent binary formats it was fairly common to perform stream I/O with structs and unions. This post...

Rust: the size of a struct

›
This code determines the size of a data structure in byte terms. use std::mem; #[allow(dead_code)] pub struct AStruct { prop: u32 } p...

Rust: byte array to hex String

›
This code allows you to express arbitrary octet sequences as hex. pub fn to_hex_string(bytes: Vec<u8>) -> String { let strs: V...

Rust: network byte order

›
Languages on different architectures might serialize the 32-bit unsigned int 15 as the byte sequences 00 00 00 0F (big-endian) or 0F 00 00...

Rust: UTF-8 byte array to String

›
Rust has a string type that mandates UTF-8 for strings but at some point you need to turn raw octets into structures you can treat as charac...
Sunday, 10 May 2015

Rust: first look

›
Rust is approaching its 1.0 release. Rust is a systems programming language that runs blazingly fast, prevents almost all crashes*, an...
Wednesday, 6 May 2015

UML: authoring simple sequence diagrams

›
I had specific criteria for a UML sequence diagram generator: Text-sourced Simple Off-line Linux seqdiag fits the bill. Th...
Monday, 27 April 2015

CentOS 6.6: redirecting SNMP traps from low ports to high ports with iptables

›
I have a Java application that processes SNMP traps. Traps arrive on port 162. Normally Java cannot listen on the low ports. You can use se...
Thursday, 12 March 2015

Java: handling null in getter method chains

›
Null is just something you need to deal with in Java. This post looks at the mechanism for handling chained method calls without causing a ...
›
Home
View web version
Powered by Blogger.