Getting scammed on ebay

Rogue Traders No Comments »

Because I am a persistant bugger and don't take abuse from anyone, I have wasted the last year trying to get my money back from some scumbag on Ebay by the name of "prostoragers". This scammer sold me a faulty Xbox hard drive which was not suitable for use with xboxes (xbox keeps rejecting it, and you lose all your data), now this was not my xbox, it was for my kids xbox,  and I had 2 small boys in floods of tears over this because they had lost all the work they had done on minecraft and various other games they had almost completed, and this happenned TWICE.
Prostoragers eventually admitted the drive had this problem it was not fit for purpose even though this info was not on the auction. He/She then asked me to return it for a refund, which I did, and then refused to refunnd me and has ignored me ever since.

It turned out the seller "prostoragers" was based in China, despite having a UK distribution address, so there was nothing I could do to chase them as they hide behind a UK po box, so I have spent most that time harrassing ebay to take some action, and being ignored by them also. Other than the occasional useless canned response, no-one at ebay even bothered to take any notice at all of my emails, so they are obviously quite happy for their sellers to rip people off, even though I had all the discussion in my ebay inbox as evidence, all I could get from them was "you are outside the 45 day buyer protection".

I finally had a enough and was about to give up, and decided I would one last bitch about ebay on twitter and see if they took notice, as this does seem to work well with most companies, and suddenly I got a response from them asking me to email details to

I sent them the details of the scam, and within 1 week, I have been contacted by the seller and got a full refund, so presumably ebay must have given them some shit and told them to refund me or else.
I asked prostoragers what about the compensation for my time over the last year, unsurprisingly I got no reply.

What have I learned from this expereince ?

  • before you buy anyhting on ebay, check that the seller is based in the UK and has a proper verifyable UK address
  • If you have any inkling of an issue, open a dispute with ebay right away just in case so that you are inside their 45 day buyer protection scheme.
  • Once you are outside these 45 days, it seems ebay wont even bother to read your emails, they will just give you useless canned responses.
    Not that I know if they will do any better if you are within the 45 days, I suspect it might be just as painful.
  • do a bitching session on twitter, make sure you cc @ebay, this seems to get their attention.
  • make sure you keep a copy of all communications with the seller. Your ebay inbox or auction history doesn't last forever, so in the event that your dispute drags on for months, you should take a copy of everything outside of ebay, including screenshots of your ebay account, and auctions.

So if you take nothng else from this, I hope you at least might remember the name "PROSTORAGERS" and remember to never buy anything from them on ebay.

Why ColdFusion & Railo are not suited to shared hosting

ColdFusion , Railo 7 Comments »

This is a topic I have found myself explain quite often of late and one thing I can say with absolutely certainly from dealing with hundreds of developers of all levels over the years, from newbs to gurus, is that most devs in general do not really understand how things work on the server (they know how to write code and upload it to the server) and most CF devs additionally don’t understand how ColdFusion really works and how/why it differs from other scripting languages like PHP or Perl or, so I decided it was time to write a complete blog post on the subject and hopefully to try and enlighten some of those develoeprs a bit more.

Now I have heard many say "I am just a developer, it is my job to write code, not to understand the server stuff", but i'm afraid I disagree with this and consider it a bit of a cop out, because If you don't understand how things work on the server to at least some degree, how can you be sure you are writing code that is going to be scalable, reliable and is not going to cause problems? Sure no-one should expect you to know EVERYTHING to the same level as a sysadmin, but you certainly should know the basics that are relevant to your job, especially if you are going to be making any hosting recommendations to your clients.

The first thing to understand, is that ColdFusion and Railo are not technically application servers (which most people believe them to be), they are simply Java applications (that convert CFML into Java bytecode) that run inside a java servlet container (e.g. Apache tomcat, Jetty, Jboss) which runs as a service/daemon, and all requests for all pages coming into the server go through that same service/daemon. This means that any problems with that service affect ALL CFML (or JSP)  websites on the server.
This is also a bad thing for security because it means that all sites on the server run within the security context of the service and so cannot have their own permissions. So any java code in any site can access files in site2, site3 or any other site on the server or in fact any part of the system that the service itself has access to. The only way round this is to use security sandboxes, which is a feature of ColdFusion enterprise and Railo.
But BEWARE, CF sandboxes can provide a false sense of security, they are only applied to CFML code and do not sandbox Java, so if you drop any Java code in your CFML pages (using CreateOnject(java), then you bypass the sandbox completely, so they not stop any vaguely competent coder/hacker. There is no way round this on a shared server, you simply have to take the risk. On a dedicated VPS you can mitigate this by using multiple instances of CF/Tomcat and isolating each site using server side permissions.

Before you say “so hosts shouldn't allow Java”, this also is not even an option for any host as all moden frameworks and apps need createObject(java), so disabling this function would break almost every modern application, ergo it is a risk that has to be taken, because at the end of the day 99% of clients simply don't care about the security risks, all they see is that their app doesn't work and will just go elsewhere.

When we look at other common languages such as PHP, Perl, etc, these run as an ISAPI or CGI process, so every website on the server spawns its own process to handle the requests. So if there are 20 PHP sites then there are 20 x PHP processes running (think of this like 20 instances of ColdFusion). The process runs within the security context of the website that spawned it, so in the case of Windows it runs under the application pool identity. So this means that as long as you have every website/application pool  set to run under a different user account with access only to that website root, and so will php also have only this permissions, so it is more secure and also isolates each site in a separate process.
So if site1 crashes php or ASP, it will have no effect on any other site because they are running php/ASP in a separate process.

Here is a diagram to illustrate.


cf server diagram


This is the primary reason why CFML is not suited to shared hosting, no application isolation and no control over security.

Imagine the following (very common) scenario. makes a cfhttp request to an external web service at  to get syndicated content for its pages.
The web service at goes down, which means all the pages on are now going to timeout. On a shared server this will very quickly result in all the ColdFusion max number of simultaneous requests to be consumed, and subsequent requests to then become queued. The result of this is that every other CFML site on the server now becomes slow as well as all their page requests have become queued behind the problematic site, and now are likely to also timeout as a result.

An even worse scenario is where native java requests are concerned, such as database queries as these cannot be killed automatically, not even with FusionReactor. If a page hangs in the middle of a database query because it is waiting for a response back from the db server, then this request will not ever timeout and will hang indefinitely, thus 1 cf thread is now no longer available. If this happens 10 times, now 10 cf threads are gone and no longer available, if your “max number of simultaneous  requests” is set to 10, then you now have 0 requests left and your server will stop serving up CFML and all websites will now hang/timeout untill the service is restarted.
If the original problem still exists then restarting CF also will not help, as the issue will simply continue until all the requests are again used up and all sites start to hang. The only solution at this point is to turn off the site causing the problem.

Then we have the security issues that I mentioned. Everyone by now is aware of the CFIDE hack which affected many cf servers. This was only possible because CF runs as service and because that service runs under the SYSTEM account by default, which has full file system access, which allowed the uploaded hack to access every part of the server. If CF worked like a CGI/ISAPI application, the effect of this hack would have been far less.

But my code has proper error trapping and caching and stuff, so this doesn’t affect me right ?

Wrong i’m afraid, on a shared server it doesn’t matter how brilliant your code is, or how well your have performance tested it, or how much error trapping you have, this does not stop the other sites on the server from causing you problems.
You could be lucky on a shared host for months or even years if you are on a server that doesn’t have many sites, or simple  sites that are not problematic (at the moment), but It only takes one poorly written app to bring CF to its knees.
It is also important to realise that almost nobody using shared hosting has ever done any kind of load testing or performance testing on their website and in most cases do not even know what this means or how to do it, the result of this is that web site owners have no idea how their site will perform under load nor did the developer who made it. This results in another very common scenario which usually begins with a statement like “Nothing has changed on my site and it has been running fine for years, so it must be your server”.
Again this is totally irrelevant in most cases, sure your site may well have been running fine for years with 20-50  visitors per day, but what happens when it suddenly gets 1000 visitors per day as a result of some marketing or media attention, or if it starts getting hit by search engine bots, suddenly this once stable site falls over horribly due to poorly written or legacy code.

But Railo is better right ?

Ultimately no i’m afraid, as Railo works the same way as CF so the primary issues mentioned above apply to Railo as well.

Railo is however an improvement in that the security sandboxing is automatically applied at website context root level (if you set this in your Railo server admin) and does not require admins to setup sandboxes for each site as with ColdFusion which is a sandboxing nightmare, which makes Railo better for shared hosting. However the sandboxes like ColdFusion's only sandbox CFML and can easily be overridden with Java code.
Railo also has its per site web admin allowing all users to admin their own site, which is again a bit improvement over ColdFusion which has a single Admin which must be administered by the host.
So by using Railo you don’t have to rely on your host, you can pretty much do everything yourself.

So what’s the solution ?

The only solution is to do some research, educate yourself and use a bit of common sense.
ColdFusion is intended to be an enterprise solution, and thus run on dedicated hosting solutions, it was never intended to be used for shared hosting and is not built to do this. So the simple answer is, use the right tool for the job.
If you just want to run a blog, personal website or simple brochure ware website and you don’t have your own server and only have the budget for shared hosting but do not want to be affected by the above problems, then use a technology more suited to this purpose, one that runs as a CGI/ISAPI process, the most popular of course being  PHP or . Avoid any Java related choices as these will all suffer from the same issues.

If you love CFML and want to use it for everything you do, then do yourself a favour and get a VPS running Railo (or ColdFusion if you can afford it).
On your own VPS you then also have the option to use multiple CF instances, so each of your sites runs on a dedicated instance of Tomcat or whatever is your java servlet container of choice, so you can still run multiple sites but avoid the shared hosting scenario and also lock down the security.

I am going to use shared hosting anyway regardless, what do you suggest ?

If you really have no choice (or simply won’t take good advice), then here are some tips on choosing a host.

  • Choose a host that specialises in Railo or ColdFusion and actually knows what they are doing, do not choose a generic host that simply has Railo/CF installed and classes this as SUPPORTED.
  • Test your hosts knowledge, see how much they know about CF/Railo, ask to speak to a CF specialist.
  • Make sure your host is secure
    • For ColdFusion they should be using enterprise edition, otherwise no sandboxes, and no security. If they are running standard edition, avoid.
    • Ask them if they run a bog standard out of the box CF installation, if yes then it is not locked down and is not secure.
    • Ask them if they use FusionReactor or HackMyCF. Preferably go with someone who says yes.
    • Ask them if they use security sandboxes, if no then avoid.
  • Ask your host how many sites they run on each CF server. Too many = bad
  • If you regularly need to setup data sources, mappings or anything that requires access to the CF Admin, you would be better of with Railo
  • Ask if you can get RDS access, if they say yes avoid, as this should not be enabled in production
  • Check if you can access the cfadmin or adminapi from your site, is yes, change host now.

Unfortunately there are very few noteworthy CF hosts these days, the ones I see most commonly recommended are Viviotech, Hostek, HostMySite (although not so much since they got taken over by, BlueThunder (my company)

Windows 8 constantly losing WIFI connection

Windows 8 No Comments »

I recently bought myself a new PC (Dell  Inspiron 2350) with Windows 8 (no really it is not so bad with a touch screen), and have been having constant problems with the WIFI connection disconnecting, and then often it would not even being able to see mine or any other nearby WIFI network. The problem more often occurred during downloads or streaming.

After much googling, the only suggestions I could find were regarding the power management settings, which I will include it below for brevity as I did do this anyway even though it did not solve my problem.
As my laptop was having no such issue, so I did not consider the router to be part of the equation, but it seems I was wrong. It turns out the issue was solved by changing the channel on my router WIFI settings, to channel 10 in my case. 
After a bit of research I discovered that the mid range channels can be more problematic due to the fact they are usually the default setting on most routers, so you can get more interference from your neighbours WIFI, and the higher channels have less chance of signal loss.
Here is an informative article on the topic.

Why this was only affecting my windows 8 PC and not my laptop I cannot be sure, I would guess it just has a more tempremental wifi adaptor. However after thinking about it, I do recall my kids have complained about losing their xbox live connection quite a lot, so it may not be isolated, hopefully this will fix that issue as well.
Anyway I have had no more drops since changing the channel, so problem solved, so I hope this may prove useful to others.

Here also is the other common solution I mentioned.

Power Management

Windows 8 has a default feature to turn off the wireless adapter card to save power. To disable it :

  1. Control Panel -> Network and Sharing Center -> Change Adapter Settings
  2. Right click on the connected wifi connection -> properties
  3. Clicks “Configure…” button -> select “Power Management” tab
  4. Uncheck this “Allow the computer to turn off this device to save power
  5. Ok and restart Windows


Kayako Fusion : Controlling the display of sub departments

Kayako No Comments »

We run Kayako fusion over at BlueThunder, and one of the issues I have had is dealing with sub-departments.



  • dept1
  • dept2

I do not want customers to be able to to submit tickets to the parent department "GROUP1",  as this is just a a group/label, but fusion provides no way to stop this as it treats everything as a department., and does not allow to simply treat the parent as a group.

I never found any solution to this, so decided to do it myself, hopefully others may find this useful.

In the template editor, find the template named "submitticket_departments"

Find the following line, right after the first <(foreach block

<td width="16" align="left" valign="middle" class="zebraodd"><input type="radio" name="departmentid" onclick="javascript: ToggleTicketSubDepartments('<{$_item[departmentid]}>');" value="<{$_item[departmentid]}>" id="department_<{$_item[departmentid]}>"<{if $_selectedDepartmentID == $_item[departmentid]}> checked<{/if}> /></td>

and replace it with this

<td width="16" align="left" valign="middle" class="zebraodd"><input type="radio" name="departmentid" onclick="javascript: ToggleTicketSubDepartments('<{$_item[departmentid]}>');<{if count($_item[subdepartments]) >= 1}>unselect(this);<{/if}>" value="<{$_item[departmentid]}>" id="department_<{$_item[departmentid]}>"<{if $_selectedDepartmentID == $_item[departmentid] && count($_item[subdepartments]) == 0 }> checked<{/if}> /></td>

This will stop any departments that have sub-departments being selected, even if it is set as the default department.
If you also want all the departments to be expanded by default

find this line, after the second <(foreach block

<tr class="ticketsubdepartments_<{$_item[departmentid]}>" style="<{if $_displayParentDepartmentID != $_item[departmentid]}>display: none;<{/if}>"> 

and change it to

<tr class="ticketsubdepartments_>{$_item[departmentid]}>">

Locking down Railo Admin on Windows/IIS

No Comments »

This is something I have been meaning to do for a while and then came across a thread on the Railo group asking how to do it, so thought I would put together a little video tutorial showing how it is done.

This shows you how to globally lock down access to your Railo Server Admin and/or Railo web admins. I will be doing another tutorial soon on how to lock down your Railo installation.

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds