$.ajax is not a function

TL;DR; Make sure you've loaded jQuery into your page.

You’re ripping your hair out. “Why won’t it work?”. You’ve already subsituted that infernal cURL request that didn’t work and now ajax isn’t working!

Don’t panic – the $.ajax(…) is not a function error is more common than you might think.

And thankfully the solution is usually pretty quick.

Have you stopped and checked that you’ve loaded jQuery onto your page?

Pro tip: remember to use the minified version on live sites.  

You can host it on your server:

<head>
<script src="jquery-3.4.1.min.js"></script>
</head>

Or you can use your favourite CDN for super performance.

Google CDN:

<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>

Microsoft CDN:

<head>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
</head>

Chill out, job done :).

New Political Simulator Launched by DPS Apps

As confirmed yesterday, we’re proud to announce that DPS Politics v1.0 has is now live over at DPS Apps!

As a follow up to yesterday’s post, here’s a round up of features available now at initial launch.

Register and login to your own personalised account:

View the latest breaking news in this world of virtual politics

Create new policies:

View existing policies:

View policy details – and vote on them too!:

View your user profile:

View the top voters:

Catch up with the latest policies:

Check out information on your favourite (or not-so-favourite!) political parties:

Much more is coming soon – please do share your early feedback and feature requests with us. We love to hear from you and your feature suggestion may end up in the next version of DPS Politics!

DPS Politics Lauched!

Long awaited and eargerly anticipated, DPS Politics v1.0 has just been launched!

Check it out now!

DPS Politics Welcome screen

Can you lead the country? What will your first policy be? Register now!

Think you can do better than the career politicians? Of course you can! Time to show the them and the world how it’s done!

A full review will follow in due course, but feel free to start exploring now!

New DPS Apps Website Launched

Migration across to our new servers is complete and the DPS Apps website has had a little update.

Can you spot the difference?

DPS Apps

We’ve fixed a couple of annoying bugs that we’re on there and we’ve also included our new app, DPS Politics – check it out and let us know what you think!

Can I Delete hiberfil.sys?

TL;DR

Yes.

Run command:
powercfg -h off

So, I Found This File…

I’m going to presume as you’re here it’s because either you’re wondering what hiberfil.sys is or you’ve gone ahead and tried to delete it and got a scary ‘this file is in use’ style message. Or maybe even a less helpful ‘sorry you can’t do that now’ type message.

Yes you can delete it, but deleting it via Windows Explorer isn’t going to cut it for this bad boy.

What Is It?

It’s a file used by Windows when you hibernate your computer. If you don’t ever hibernate, you don’t need it. However, Windows will maintain this fairly beefy file whilst the option to hibernate is available – and automatically delete it once disabled

What’s The Magic?

Open command prompt and run the following command:

powercfg -h off 

This will simultaneously disable hibernation mode and blast hiberfil;sys into oblivion. Do not pass Go, do not relocate via the Recycle bin.

Space may not longer be at the cost premium it once was, but you’ve likely got another couple of DVD sized chunks free on your disk – which always comes in handy.

Now, time to install that new game…