Finally Solidified, Twitch Scheduling

twitch-logo-sizedIt’s been a year plus now that I’ve been streaming on Twitch (FOLLOW on the channel, it’s free not a paid subscription or anything). At points it has been weekly, sometimes every other week, sometimes every day of the week, or in some cases even more intermittently or frequently. The schedule, considering, has been kind of ridiculous. But that has now changed.

Continue reading “Finally Solidified, Twitch Scheduling”

Great New European Technology Invention

One of the things that I’ve noticed throughout Europe is this really cool invention they’ve created here called a schedule. This schedule is something that is based on another piece of technology called a clock. The clock is designed to show the passing of time, something very similar to what we in America have, except that they pay attention to this passing of time. We Americans just seem to race around it in what we call the “rat race”.

This clock progresses forward while people work, relax and interact with each other. It ticks slowly and this is where the real interesting aspect of this technology is shown. As the time passes the European people eat and enjoy each other’s company. They tell each other a particular time, that each of them will show up and greet each other. They then carry on with their day and then meet at this time and enjoy a bit of each other’s company. For some odd reason it seems we Americans just go toward each other randomly and sometimes run into each other for company. But we don’t dare actually follow or respect this passing of time.

The other use of this schedule technology, is the use in transportation. It’s so fascinating that when a schedule in Europe shows that a train will arrive at 14:29 or 9:11 the train arrives at the respective 14:29 or 9:11. The same for this schedule of departure times. It is, unlike the lack of any schedule in America, amazingly useful. It seems, we could really use such a piece of technology in the United States!

The shock of the accurate movement of peoples between places, based on these schedules and their interactions is truly amazing! I highly suggest everybody give it a try sometime!

Service & Scheduler: Using Topshelf, Quartz, & Other OSS Bits Part 2

In the previous entry in this series I setup a service using TopShelf. Now it is time to jump into scheduling with Quartz. I’ve started an entirely new service to work through an example of this service functionality.

To read more about Quartz.NET from the source, check out the Quartz.NET Project Site or the Github Repo.

Open up Visual Studio and create another Windows Console Project. Next add a reference to Quartz.NET with Nuget.

Adding Quartz.
Adding Quartz.

Next add a class called SomeJob as shown.

[sourcecode language=”csharp”]
using System;
using Quartz;

namespace quartz
{
public class SomeJob : IJob
{
public SomeJob() { }

public void Execute(JobExecutionContext context)
{
Console.WriteLine("DumbJob is executing.");
}
}
}
[/sourcecode]

Next add and change the code in Program.cs to the code below.

[sourcecode language=”csharp”]
using System;
using Quartz;
using Quartz.Impl;

namespace quartz
{
class Program
{
static void Main()
{
var schedFact = new StdSchedulerFactory();

var sched = schedFact.GetScheduler();
sched.Start();

var jobDetail =
new JobDetail("myJob", null, typeof(SomeJob));

var trigger = TriggerUtils.MakeSecondlyTrigger(5);
trigger.StartTimeUtc = DateTime.UtcNow;
trigger.Name = "myTrigger";
sched.ScheduleJob(jobDetail, trigger);
}
}
}
[/sourcecode]

NOTES: Working code available on Github under my Quartz Repo.