Asmodat folder locker

- Posted in software by

Asmodat Folder Locker is a great freeware program for protecting your files and folders with password encryption. I have a copy (link is only accessible by webmaster) of version 1.4.1. It does its job well, and is very fast.

Squiffy timeout

- Posted in Coding by

It's easy to sleep or pause or delay for x milliseconds in Squiffy. The following code makes use of the javascript setTimeout function (each Section in your Squiffy source code can call javascript code if it precedes all other Squiffy script in that passage). You can copy/paste the following code into a new Squiffy project and it will run:

[code] [[Start]]: setTimeout(function () { squiffy.story.go("next"); }, 2000);

Hello Bob!

[[next]]: setTimeout(function () { squiffy.story.go("next2"); }, 2000); Bob, are you there??

[[next2]]: Hmm, Bob's not around... [/code]

Javascript has a function called setTimeout that allows us to run a function once after the specified interval of time. For instance, this code calls sayHi() after one second:

function sayHi() {
  alert('Hello');
}

setTimeout(sayHi, 1000);

ILMerge error

- Posted in Coding by

Sometimes you'll get “Unresolved assembly reference not allowed” when attempting to use ILMerge. To avoid this, specify the full path to the framework you're targeting, like this on the command line:

ilmerge /targetplatform:v4,"C:WindowsMicrosoft.NETFramework64v4.0.30319" /out:merged.exe myprogram.exe mylib1.dll mylib2.dll

How to capture output from a process using c-sharp

- Posted in Uncategorized by

C# Capturing output from a process

namespace LaunchAndCaptureOutput{

    class Lacout{
    static void Main(){

        var proc = new Process{
                StartInfo = new ProcessStartInfo{
                    FileName = @"C:csdevlessonslessonette7hello.exe",
                    UseShellExecute = false,
                    RedirectStandardOutput = true,
                    CreateNoWindow = true
                }
        };

        proc.Start();
        string p = proc.StandardOutput.ReadToEnd();
        proc.WaitForExit();
        Console.WriteLine("Captured output: " + p);
      }
    }

} 

Created specific sized file at the Windows command line

- Posted in Coding by

Create file of specific size at Windows command line:

fsutil file createnew filename number_of_bytes
Page 2 of 2