CategoryDevelopment

Getting W3 Cache Working on shared hosting

G

I wanted to install w3 cache on shared hosting After uploading the plugin to /wp-content/plugins/ and trying to activate it, I got an error asking me to set CHMOD 777 on /wp-content/w3tc I tried running the command given, however it didn’t work. I also tried manually creating the directory, setting 777 on it, and re-activating the plugin. This, however, didn’t work, as the plugin deleted my newly...

C# – String.Concat vs String.Join

C

I had a quick Google search for a comparison between string.concat and string.join, but I couldn’t find anything. Say you want to construct the sentence “The quick brown fox jumps over the lazy dog” This is comprised of 9 words, 8 spaces. Using string.concat: public void CreateSentanceUsingStringConcat() { string space = " "; string the = "the"; string quick = "quick"; string brown = "brown";...

Running Chrome OS in VMWare Workstation – Step By Step

R

I wanted to have a play with Chrome OS, but didn’t fancy compiling the code etc… Fortunately, GdGt provide a VMDK that you can download, and be up and running in no time using VMWare workstation (or player for that matter) Step 1 – Download Chrome OS VMDK I downloaded a Chrome OS VMDK from GdGt – you can get it here: Step 2 – Create a new VMWare machine Select “I will install the operating system...

reCaptcha enabled on comments

r

I’ve recently noticed a lot of blog comment spam on my blog. Where  some-one kisses-bum in order to “trick” me into accepting  their comment. For example: Howdy there,this is Everett Krajcer,just discovered your web-site on google and i must say this blog is great.may I share some of the Post found in this website to my local friends?i’m not sure and what you think?anyway,Many...

C# 4.0 – Optional Parameters

C

I know, I know, VB has had them for ages. But I don’t care… Now C# has them too! This will greatly reduce method overloads! Check this bit of code (sorry it’s not a “real world” example) public class TestClass { public void DoSomething(string parameterOne, string parameterTwo, string parameterThree) { DoSomething(parameterOne, parameterTwo, parameterThree, null); } public void DoSomething(string...

Quartz.net trigger not firing

Q

I’ve used Quartz.net for a little while – more specifically, around 6 months. I started working with it around the end of October 2009. Irrelevant, you may think, but the important thing here is the time. During winter months, the UK runs on GMT (or UTC+0) During these months, (up until 28th March 2010) my application functioned as expected – however, when the clocks went forward for British...

Facebook notification spam – someone ”likes” your photo

F

Recently, a lot of people have  been “liking” my photos. Unfortunately, the notifications are sent out by various versions of a new form of Facebook spam application. Clicking on “your photo” – in a hope to see which photo this person liked, takes you to a page where you’re asked to allow an application access to various parts  of your profile: “Allowing Lika access will let it access...

Implementing DataCash 3D Secure with ASP.net

I

This is an article I’ve been meaning to write for a while now… Mainly, to help others out, who are struggling with the near non-existent documentation provided by Datacash, when trying to plug 3D Secure into my ASP.net application. I’m sure you’re already familiar with what 3D Secure is, so I won’t go in to too much detail, nor will I go into much detail with regards to the process. The purpose...

How to view Experts Exchange answers

H

I’m sure anyone that’s searched for solutions in Google, has fallen victim to the search engine reuslt pollution Experts Exchange employs… They always seem to title their results, with EXACTLY what you are looking for. When you click on it, you’re told that to view the solution, you need to sign up. Which costs money… Sure, there is a free trial available… but who really wants that? Well… the...

Fixing – Log Reader Performance : Critical (Seen in SQL Replication Monitor)

F

I ran into a problem with a Transactional Publication today. I’d moved the database from old hardware, to newer hardware, and in the process, restored the SQL 2000 database onto SQL 2008 (running in SQL 2000 compatibility mode) I’d re-created the publication, and initialized it. After about half an hour, I checked the Replication Monitor, and noticed that it said: Performance : Critical...

Windows XP Virtual Machine – no network adapter / missing driver?

W

After creating a new Windows XP Virtual Machine, on VMWare Server, I noticed it had no network adapter. It was an “unknown device” in Device Manager! I installed VMWare tools, to no avail. After painstaikingly thrashing about with my settings in VMWare Server, I took a look at my vmx file (located in the same directory as my virtual hard disks etc…) It appears I had set the guest OS as Windows XP...

Windows XP Virtual Machine – no network adapter / missing driver?

W

After creating a new Windows XP Virtual Machine, on VMWare Server, I noticed it had no network adapter. It was an “unknown device” in Device Manager! I installed VMWare tools, to no avail. After painstaikingly thrashing about with my settings in VMWare Server, I took a look at my vmx file (located in the same directory as my virtual hard disks etc…) It appears I had set the guest OS as Windows XP...

Fixing ‘Windows Could not determine if this computer contains a valid system volume’ when installing Windows 2008

F

I was trying to install Windows Server 2008 Standard x64 on one of our servers, intended to be an internal SQL database server. It’s equipped with a 3Ware 9650SE 8LPML RAID controller. It has 8x 250gb hard drives. I’d set up 2 units: RAID 0 (Stripe) – For the OS (2 drives) RAID 10 (6 drives) I downloaded the drivers from the 3Ware website, and put them on a USB flash drive. I should point out at...

Ass-Kissing Blog Comment Spam

A

Recently, I have been receiving a large amount of a different kind of comment spam on my WordPress blog. In an effort to get around the Akismet spam protection, they have created several variations of the same kind of poor English, brown nosing comments… that effectively mean nothing. The whole point of them, is to allow their URL to be posted in the “Website” field of the comment. I recently had...

Twitter User underdog100 gets 300% increase in followers – in 10 minutes

T

At 23:00, Jo Combs (twitter.com/underdog100) had just 37 followers 5 minutes later, Graham Norton had featured her tweets on his show, albeit poking fun at them, but, now, her followers had swelled to 110! Every time I hit F5, her number of followers increases By 23:10 the count had grown to 130… around a 300% increase in 10 minutes! I got bored at about 23:20, but by then, the follower...

How to turn off emoticons in Windows Live / MSN Messenger

H

Emoticons are ok, when used sparingly, or not talking to your boss. The last thing you need in the latter situation is for your conversation to be littered with or or even worse To disable them, first click the icon circled in red below. Alternatively, you can press the Alt key. Either way, you need to select Tools –> Options. In the resulting dialog, you need to select Messages, then untick...

Creating a new post in WordPress using the JoeBlogs library

C

A few people have recently been asking how the NewPost method works within JoeBlogs First, you need to create an instance of Post. Then, set the following properties: dateCreated Fairly self explanatory, but you should set this to today’s date (or whatever date you wish the post to be set as published) title The title of the post description The body of the post. This can of course contain...

Using TeamViewer

U

TeamViewer is a remarkable piece of software that let’s you share control of your computer with another person. It works round any firewall / router complications that Remote Assistance normally has, and I use it regularly to help friends / family with their problems. Best part is, it’s free for non-commercial use! Here’s how to use it: Step 1 – Download TeamViewer To download TeamViewer, please...

NVelocity template with decimal to two decimal places

N

I wanted to be able to output a decimal value from an object in my NVelocity template. For example, the value of the decimal was: 3.40000 to represent 3.4. The end result: Total Order Value: 3.40 GBP I needed to display this as currency format. Sure, I could of used this String.Format method, but that adds £ or $ or whatever (depending on your environment setup) to the start of the resulting...

Google Wave invitations for sale on eBay

G

Google Wave invitations were sent out yesterday, 30th Septermber 2009. Bizarely, I didn’t get one, despite being a paying google apps customer. Anyhow, I wasn’t overly bothered – sure, i would like to try it out, but I wouldn’t part with cold hard cash to do so! It appears some people will however: A quick search on eBay (UK) revealed 3 for sale already! Slight deja vu of circa June 2004 when...

Find out information about your processor with CPU ID

F

I’ve found a great little freeware utility that gives you valuable information about your processor, and other hardware devices on your PC – CPU ID From their site, heres what information is retrieved: CPU Name and number. Core stepping and process. Package. Core voltage. Internal and external clocks, clock multiplier. Supported instructions sets. Cache information. Mainboard Vendor, model and...

How to change the language on a Buffalo LinkStation from Japanese to English

H

I recently had massive problems with my LinkStation and had to flash the firmware on it…. When I finally got it up and running again, my admin screen was in Japanese!! I followed the instructions on the FAQ – I thought I’d just put a few pics up to illustrate it a little better: Step 1 Log in to your admin panel You’ll see the screen below: Step 2 Click the 2nd option on the left, as shown...

How to use MagicISO

H

MagicISO is a brilliant piece of freeware that I use. It enables you to mount an ISO file, as an actual drive. For example, MSDN provides subscribers with ISO images of their DVD’s – We can then mount these files, and they will appear to the computer, as an actual drive, and so, can install the software. Simply download MagicISO from here – Install it, and it will provide you with a system...

Upgrading from Navision 4 to Navision 5 – Database Error

U

This is a tad of a messy blog post, so apologies for that, however it’s mainly for my own reference. Here at Crocus, we run Navision to handle product inventory, orders, and the like… We wanted to upgrade from version 4, to version 5. After following the upgrade instructions, I got this error: Msg 8662, Level 16, State 0, Line 1 Cannot create the clustered index "VSIFTIDX" on view...

C# Ternary conditional operator – Question mark in an if statement

C

I’m all for shortening the amount of code we write, if it makes it more readable. One enhancement I make use of in C# is the ternary conditional operator. Consider the following block of code: string input = "hi"; bool saidHello; if (input = "hello") { saidHello = true; } else { saidHello = false; } In this example, we can see, the saidHello boolean value would be false,  as the input string...