Right, back to this script to fix some old data that got messed up by Amazon's Database Migration Service for no good reason
- 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 NickFitz View PostRight, back to this script to fix some old data that got messed up by Amazon's Database Migration Service for no good reason
Then I remembered that the original JSON field in the old server I had running as localhost on an EC2 machine was still there.
So I've written a script to fix the RDS database.
Starting point, about ten minutes ago:
Code:# Tweets: 1,861,797 on RDS, 1,585,739 on EC2 # Placeholder JSON: 1,585,582 on RDS, 0 on EC2 # NULL JSON: 0 on RDS, 10 on EC2 # Tweets to update: 1,585,572
Code:Placeholder JSON: 1,486,963 on RDS
Comment
-
-
-
Originally posted by NickFitz View PostThe hotpot should be ready before long. Looking forward to that
Internet connection is playing up again. The bloke said it might be unreliable for a while yet, but it's annoying that it's been fine all day then struggles to cope in the evening. More people at home streaming video and that, I supposeComment
-
fine fish & chips procured by Miss V senior from work apparently no world leaders visited her work tonight.
S&K pie & Cod + chips for me.
Cod & chips for Mrs V (plus a bit of sausage)
Fishcake & chips for middle V
Battered Sausage & chips for micro V.
Yum!Always forgive your enemies; nothing annoys them so much.Comment
-
Originally posted by BR14 View Postnot vivaldi then? - i used to like vivaldi, until i had to deal with service desks. i wouldn't mind if they played the whole thing, but they loop a random piece. - philistines!
Mind, you, one lot in ireland, put me off van morrison for a while, too
Now being put off Brown eyed girl is a sin!Always forgive your enemies; nothing annoys them so much.Comment
-
The script has done its thing. There were ten tweets in the database from before I added the field to save the raw JSON which had been deleted by their owners before I ran the script to fill in those blanks, so they were never going to be recovered; but the script ran to its conclusion, and now the "production" database has only those ten rows left with the placeholder JSONComment
-
Tonight's viewing opened with Shot Through the Heart (TV Movie 1998), set in the siege of Sarajevo. I've seen it before, late one night around the end of the last century, and had been keeping an eye out for it since then. It's quite hard to find these days: I got a DVD of the German version from a company over there (via Amazon) which has the original English soundtrack as an option on its menus. It deserves to be more widely available, because it's a brilliant, upsetting, and deeply moving film. It's disturbing to see how quickly normal life in a civilised, highly developed community can degenerate into siege warfare, which is what happened less than 24 hours drive away from where I live, according to Google Maps
To follow: V for Vendetta (2005), which is kind of the opposite extreme in terms of the political situation portrayed. I once recorded this when it was on the telly, a few years ago now, but I wasn't in the mood for it and turned it off after the first few minutes. I seem to have been in the mood for it this time, because I thought it was absolutely bloody phenomenal
Goodnight allComment
-
Comment
- 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
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 14:11
- How Autumn Budget 2024 affects homes, property and mortgages Oct 31 09:23
- Autumn Budget 2024: Reeves raids contractor take-home pay Oct 31 09:20
- Autumn Budget 2024: Umbrella companies hit, Employer NICs hiked, and BADR heading for 18% Oct 30 16:54
- Autumn Budget 2024: chancellor’s full speech Oct 30 16:34
- RecExpo got told this about Labour’s Employment Rights Bill… Oct 30 09:10
- A limited company just got one over HMRC on VAT; here’s how Oct 29 09:24
- Business Account with ANNA Money Oct 28 15:51
- 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
Comment