My .02 on Apple’s anti-flash, anti-freedom movement.

My .02 on Apple’s anti-flash, anti-freedom movement.

As many of you iPhone consumers may know, Flash isn’t supported and will probably never be supported. The new up and coming iPad (Apple Tablet) will be running a version of the iPhone operating system and will probably have the same exact restrictions. The reason Apple doesn’t want to support Flash is because it allows third [...]

Linux: (g) awk – search and replace.

awk or gawk (gnu awk)
Find and Replace text, database sort/validate/index

Syntax

awk <options> ‘Program’ Input-File1 Input-File2 …

awk -f PROGRAM-FILE <options> Input-File1 Input-File2 …

Key
-F FS
–field-separator FS
Use FS for the input field separator (the value of the [...]

Setup a telnet chat server with STChat.

Setup a telnet chat server with STChat.

STChat is a simple telnet chat server that runs on Linux, Windows and MAC. I’ve only tested this on Linux so i can’t speak for the other OS’s. The chat system is really simple, supports colors, multiple terminal types (vt100 etc), usernames and admin mode. Putty, Linux telnet, and Windows telnet seem to work just fine when [...]

Linux: cut – divide file into columns.

cut
Divide a file into several parts (columns)
Writes to standard output selected parts of each line of each input file, or standard input if no files are given or for a file name of `-’.

Syntax
cut [OPTION]… [FILE]…
In the options below, BYTE-LIST, CHARACTER-LIST, and FIELD-LIST are one or more [...]

CommentGator for Windows 7.

CommentGator for Windows 7 has been officially released. The current version has now been tested on Windows Vista and Windows 7.

Bug Fixes:
* Closing of the first tab should now work.
* JavaScript errors should now be suppressed.
* Some minor interfaces chances have been made.
Download the latest version here.

Zero-Fill Partitions

Today I released my first version of Treadstone Zero, a utility distribution that lets you easily zero-fill hard drive partitions. The system boots in less than 10 seconds (on most systems), consists of a Linux 2.6 kernel and runs totally in ram.

Check it out here.

Windows: comp – compare files

COMP
Compare two files (or sets of files). Display items which do not match.

Syntax
COMP [pathname1] [pathname2] [/D] [/A] [/L] [/N=number] [/C]

Key
pathname1 The path and filename of the first file(s)
pathname2 The path and filename of the second file(s)
/D [...]

Windows: cipher – encrypt or decrypt

CIPHER
Encrypt or Decrypt files and folders.
Without parameters cipher will display the encryption state of the current folder and files.
NTFS volumes only.

Syntax:

Encrypt/Decrypt:
CIPHER [{/e | /d}] [/s:Folder] [options] [/u[/n]] [{PathName [...]]

New recovery agent certificate:
CIPHER /r:PathNameWithoutExtension

Remove data:
CIPHER /w:PathName

Backup Keys:
[...]

Linux: screen – multiplex terminals

screen
Multiplex a physical terminal between several processes (typically interactive shells).

Syntax:

Start a screen session:

screen [ -options ] [ cmd [args] ]

Resume a detached screen session:

screen -r [[pid.]tty[.host]]

screen -r [...]

Linux: chroot – change root directory.

chroot
Run a command with a different root directory.

‘chroot’ runs a command with a specified root directory. On many systems, only the super-user can do this.
SYNTAX
chroot NEWROOT [COMMAND [ARGS]…]

chroot OPTION
Ordinarily, filenames are looked up starting at the root of the directory structure, i.e. [...]

Making a simple ListBox with GTK and Glade3.

Adding a simple ListBox widget in your GTK application is easier than you think. This tutorial will show you how to create ListBox-like functionality in GTK using Glade3. GTK uses the TreeView control as their do-all list control. You can create simple lists, tree-like lists and all sorts of various list views. What is really [...]

Read More »

Glade 3 + GtkBuilder + Anjuta Example.

Today I whipped up a simple GTK application using the Anjuta IDE, Glade 3, and the new GtkBuilder system. As some of you know, Glade 3 and GTK changed things up. First Glade stopped using generated code which required you to use libglade. Now the GTK developers created their own interface interpretor called GtkBuilder. [...]

Read More »

Get Windows Service info in C#.

This code will show you how to search for Windows Services. The ServiceController class handles almost everything service related. You can also check if services are running by checking the service.Status property and you can search for installed services using the sample code below. The services we are talking about are the services that run [...]

Read More »

Visual Basic comes to Linux.

Visual Basic for Linux is here, sort of. In my search for the perfect RAD environment for Linux I came across a project called Gambas. Gambas is a Visual Basic like development environment for Linux which is very much like Microsoft’s drag and drop Visual Basic but it is not a clone. For an Open [...]

Read More »

Add background color to PNG files in C#.

This code snippet will let you force a background color into a PNG file with C#. When working with PNG files in Visual Studio sometimes you’ll run into situations where the background of a PNG shows up as grey or even blue. This is because of the PNG files transparency and Windows can sometimes [...]

Read More »

C#: A multi-threaded UDP server with BackgroundWorker.

The following code shows you how to build a UDP server in C# using the UUdpClient class for the networking and BackgroundWorker class for reporting data back to the application. This particular UDP server class is designed to be used with a Windows Forms or GUI. When using the UDP server you pass a BackgroundWorker [...]

Read More »