Tag Archives: computer

My Commodore 64

Commodore 64 Logo

Recently on eBay I purchased a used Commodore 64 along with a 1541 floppy disk drive and a data tape drive in an excellent (collector’s) condition, I still haven’t received it yet, but should be on it’s way from Germany as I type away. This computer brings back fun memories when I owned the Commodore 128D computer with the built in floppy disk drive, and I was able to switch between 64, 128 and C/PM modes. I learned my BASIC  and Assembly programming on this computer, and I use to buy all the magazines that target the home 8 bit computer that came along with demo games and software on a cassette tape for the Commodore stuck on the cover page. I have also bought a pair of new retro atari look a like joysticks and a programmable flash cartridge for development.

Commodore 64Commodore 64 Breadbox Version.

You can download the Commodore 64 emulators from the Internet and run all your favourite games and software from a disk, tape and cartridge image diles. Or you can connect physical Commodore 1541 floppy disk drive to you PC with a home made serial to parallel interface which will allow you to restore the image file back onto a physical floppy disk. Well that’s my plan I have already ordered components to build this interface and it not that expensive. There are other things you can do with the emulator that I have seen on the Internet why by someone has connected the Commodore 64 keyboard to their PC by USB, and use as the keyboard for the emulator! There are few different C64 emulators you can get and the most popular one seem to be VICE, why not go and try it out for yourself. Continue reading

C#: How to get your computer and user name.

If you want to get your computer and user name from Windows in C# try this by using the WindowsIdentity class from System.Security.Principal namespace:

<span style="color: blue">using </span>System;
<span style="color: blue">using </span>System.Collections.Generic;
<span style="color: blue">using </span>System.Linq;
<span style="color: blue">using </span>System.Text;
<span style="color: blue">using </span>System.Security.Principal;

<span style="color: blue">namespace </span>ConsoleApplication1
{
    <span style="color: blue">class </span><span style="color: #2b91af">Program
    </span>{
        <span style="color: blue">static void </span>Main(<span style="color: blue">string</span>[] args)
        {
            System.<span style="color: #2b91af">Console</span>.Out.WriteLine(<span style="color: #2b91af">WindowsIdentity</span>.GetCurrent().Name);
        }
    }
}