Check your slavery footprint
Posted in Politics | Posted on 28-10-2011
The site is technically brilliant I find as a webby, and it gets across it’s important message well.
The site is technically brilliant I find as a webby, and it gets across it’s important message well.
So you have a few hundred/thousand twitter followers, who are all following lots of people, how do you increase the likelyhood that your tweets will get seen by as many people as possible?
A combination of two free services will help you maximise your twitter exposure, firstly tweriod will carry out an analysis of your last 5000 followers to tell you the times and days when most of them are usually online. When you then sign up for free to buffer your tweets are then temporarily stored “buffered” for times when people are most likely to catch your tweets…
For me it’s 4pm in the week that most of my followers are around, so they can expect a small flurry of tweets to be unleashed around then.
Apparently open DNS are handling around 34 BILLION requests each day lately, that’s f€%king awesome :)
I used to have open DNS on my computers now I use google DNS, another free service I make use of that I massively recommend if you have websites is cloudflare, king of free caching, minifying and geolocation based IPSec.
“When do you go running?”
“When the time is right.”
“When is the time right?”
“When it’s a nice day, and I’ve finished my work, and I haven’t just eaten, and I’m feeling energetic.”
“Repeat that last sentence, changing ‘and’ to ‘or’.”
“When it’s a nice day, OR I’ve finished my work, OR I haven’t just eaten, OR I’m feeling energetic.”
“That sounds like a better plan.”
Got a list of conditions you need satisfied before you do something?
Try changing and to or.
Nicked from here
Meh, that previous post was kind of too simple etc, so thought I’d wrap up the logic in a nice class here you go.
It ccouldn’t be easier to call one example to write exceptions is
EventLogger.Write(ex.Message, "error");The name of the assembly is captured by reflection to identify it from other applications in the event log.
using System.Diagnostics;
using System.Reflection;
namespace utilities
{
public static class EventLogger
{
/// <summary>
/// Write entry to application event log
/// </summary>
/// <param name="message">Text to write to log</param>
/// <param name="type">"information" / "error" / "success" defaults to information (optional)</param>
public static void Write(string message, string type = "information")
{
var applicationName = Assembly.GetExecutingAssembly().GetName().Name;
var sType = EventLogEntryType.Information;
switch (type)
{
case "error":
sType = EventLogEntryType.Error;
break;
case "success":
sType = EventLogEntryType.SuccessAudit;
break;
}
if (!EventLog.SourceExists(applicationName))
EventLog.CreateEventSource(applicationName, "Application");
EventLog.WriteEntry(applicationName, message,
sType, 0);
}
}
}