Originally posted by bobsyouruncle
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
test please delete
Collapse
This is a sticky topic.
X
X
Collapse
-
-
Originally posted by Bunk View PostHas anybody used last.fm much? I'm having great difficulty getting it too play anything approaching decent music.Where are we going? And what’s with this hand basket?Comment
-
Evening denizens
I was able to stay late again, and polish up my overengineered admin thingy - it works!
The idea is that, if there's a problem with an online promotion (say the database is unwell, or whatever) they can use this to temporarily prevent people from attempting to register, showing a "sorry, try again later" page.
When briefing me on the requirements, the chap said he wasn't sure of the best approach; I couldn't rely on the database, as it might be what was wrong. He suggested that I could create a file, and test for its existence on every request
I pointed out that Apache is already doing that - looking for an .htaccess file.
So my solution simply copies an .htaccess file into the right place which rewrites all requests to go to the "sorry, we fail" page. When things can be turned back on, it simply deletes it.
There's no additional server overhead in normal operation; if the admin server fails they can re-enable stuff by ssh-ing into the live server and removing the file manually; and the user doesn't get a redirect to an error page (the rewriting happens only on the server) meaning the URL in the location bar is still valid if they want to switch to another tab, then come back later and try a reload. All in all, an elegant solution
(That last point is the most important one, IMHO. I've even ranted about it, then ranted about it some more )Comment
-
Comment
-
Right, I think I've earned some dinner
I'll have to catch up with this afternoon's TPD later
Comment
-
Originally posted by NickFitz View PostRight, I think I've earned some dinner
I'll have to catch up with this afternoon's TPD later
Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
Originally posted by Churchill View PostEvening all!Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
Originally posted by cailin maith View PostI thought so too - I was #01 but now I am #00
Someone deleted a postDrivelling in TPD is not a mental health issue. We're just community blogging, that's all.
Xenophon said: "CUK Geek of the Week". A gingerjedi certified "Elitist Tw@t". Posting rated @ 5 lard pointsComment
-
Originally posted by BrowneIssue View PostIt's getting silly now...
How you feeling today?Where are we going? And what’s with this hand basket?Comment
-
Originally posted by BrowneIssue View PostIt's getting silly now...Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- How Autumn Budget 2024 affects homes, property and mortgages Today 09:23
- Autumn Budget 2024: Reeves raids contractor take-home pay Today 09:20
- Autumn Budget 2024: Umbrella companies hit, Employer NICs hiked, and BADR heading for 18% Yesterday 16:54
- Autumn Budget 2024: chancellor’s full speech Yesterday 16:34
- RecExpo got told this about Labour’s Employment Rights Bill… Yesterday 09:10
- A limited company just got one over HMRC on VAT; here’s how Oct 29 09:24
- Top 5 Autumn Budget areas for IT contractors to tick off Oct 28 09:30
- Top 5 umbrella company expenses things to still do in 2024 under 2016's T&S rules Oct 24 08:21
- PGMOL ties up Mutuality but Control’s new low bar is a concern set to run and run Oct 23 08:10
- What the PGMOL case really means for IT contractors Oct 22 08:30
Comment