hl.pnghc.pnghr.png


ssl.pngmenu.pngssr.png
screenbl.pngscreenbr.png

Maz :: Now what? OO php and an exercise in futility.

screenbl.pngscreenbr.png


ssl.pngmenu.pngssr.png
This is the ANTI-menu. It's just here to stop the page falling over when I put in menu items.
And because Loki hasn't given me the title bar image for this side yet.

ALL HAIL ZOGRIM!
screenbl.pngscreenbr.png
My categories weren't displaying right but something seems wrong with calling.. '$cats = trim($cats, ", ");'

One should not make a habit of trimming cats.
screenbl.pngscreenbr.png

Content_Above_Screen_Left.pngBanana Choc-chip MuffinsContent_Above_Screen_Right.png
ctl.png ctr.png
Posted by: Maz on 13-Aug-2011 04:53:59pm in categories: food

1 1/2 cups Self-Raising Flour
1/2 cup castor sugar
1 teasp Vanilla Essence
3 Bananas (mashed)
125g Butter (melted/softened)
1 egg beaten
1/2 cup Milk Choc Chips
1/2 cup White Choc chips

Mix all dry ingredients together. Add remaining ingredients in order. Bake in muffin tins for about 20mins at 180 C.


food, muffins, baking
cbl.pngcbr.png

Content_Above_Screen_Left.pngEA game distribution service hates AustraliansContent_Above_Screen_Right.png
ctl.png ctr.png
Posted by: Maz on 10-Jun-2011 12:21:34am in categories: games

In unsurprising news today, EA launched Origin, its digital distribution software for EA titles. Which of course has different prices for AU and US customers..


US price:



AU price:



Obviously it costs a lot to ship those 1's and 0's over here.. About $8 / GB. Almost sounds like Telstra are involved. :P


EA, Steam, Origin, games, Australia
cbl.pngcbr.png

Content_Above_Screen_Left.pngRestart a computer after ping failures.Content_Above_Screen_Right.png
ctl.png ctr.png
Posted by: Maz on 10-Apr-2011 07:28:52pm in categories: geebin

I just had to throw together a program for someone to reboot a server after a number of failed pings to the router because their NIC was locking up. Here is the source:


using System;
using System.Collections.Generic;
using System.Text;
using System.Net.NetworkInformation;
using System.Threading;
using System.Diagnostics;

namespace PingRestart
{
class Program
{
static void Main(string[] args)
{
if (args.Length == 2)
{
try
{
Ping ps = new Ping();
int count = int.Parse(args[1]);
int failed = 0;
for (int i = 0; i < count; i++)
{
PingReply pr = ps.Send
(
args[0],
999,
Encoding.ASCII.GetBytes("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"),
new PingOptions(128, true)
);
if (pr.Status != IPStatus.Success)
{
failed++;
}
}
if (failed == count)
{
Process.Start("shutdown.exe", "-r -t 30");
Console.WriteLine("The system will shutdown in 30 seconds");
Thread.Sleep(20000);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Thread.Sleep(30000);
}
}
else
{
Console.WriteLine("Invalid arguments. Usage: ");
Console.WriteLine("PingRestart [router IP] [number of attempts]");
Thread.Sleep(30000);
}
}
}
}

The usage is: PingRestart.exe [remote host IP] [number of ping attemts]

e.g. "PingRestart.exe 192.168.1.1 10"


If all ping attempts fail then the program will run "shutdown.exe -r -t 30" and display a message on the console. If there are any problems a message will be written to the console then after 30 seconds it will quit. So be quick!.

Download EXE only


code, server, .net, download, program, restart
cbl.pngcbr.png

Content_Above_Screen_Left.pngAnyone interested?Content_Above_Screen_Right.png
ctl.png ctr.png
Posted by: Maz on 30-Dec-2010 09:54:00am in categories: geebin

I'm bored and feel like building a new pc. A good one. Anyone interested?

ProductQuantityPriceGstTotal
Asus Crosshair IV Formula MB, AMD 890FX / SB8501$307.00$27.91$307.00
OCZ 120G Vertex II SSD 3.51$249.00$22.64$249.00
Antec HCG-900 900W High Current Gamer 80PLUS Bronze 135mmfan1$165.00$15.00$165.00
Mushkin 8G(2x4G) DDR3 2000MHZ PC3-16000 RB CL102$255.00$46.36$510.00
AMD Phenom II X6 1100T 3.3GHz) - AM3, 9MB Cache,125W BD1$299.00$27.18$299.00
Sapphire ATI HD6970 2GB GDDR5 PCI-E2$463.00$84.18$926.00
Total$223.27$2456.00


Also. The umart site has the worst formed HTML ever.

computer, projects
cbl.pngcbr.png

Content_Above_Screen_Left.png16TB of NasContent_Above_Screen_Right.png
ctl.png ctr.png
Posted by: Maz on 08-Aug-2010 02:04:36pm in categories: geebin

Pics of my nas to show someone.



Nas, server, disk, computer, projects, storage
cbl.pngcbr.png


1327784588
ctl.png ctr.png
Page generated in 0.13459300994873 seconds.
cbl.pngcbr.png

hey alex!