Did some shopping. On the way back, the pips went on Radio 4, and I looked out at the darkness and thought "Surely it isn't nine already?" But no, it was only eight, and already the tail-end of twilight
- 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
-
-
Ah, so it wasn't working because I'd made a cretinous mistake. Yes, that would explain it
On the bright side, while digging through documentation that was not, in fact, related to the source of the problem, but seemed like it might be at the time, I discovered a technique to considerably improve the code for the sake of about two minutes of effort. Overall, I'm going to chalk it up as a winComment
-
In the dim & now very distant past, when I worked shifts in 3M, one could tell that the nights were drawing in & autumn was advancing when it was dark outside for the 8 p.m. tea break.
Yet another empty factory now.Comment
-
Originally posted by NickFitz View PostAh, so it wasn't working because I'd made a cretinous mistake. Yes, that would explain it
On the bright side, while digging through documentation that was not, in fact, related to the source of the problem, but seemed like it might be at the time, I discovered a technique to considerably improve the code for the sake of about two minutes of effort. Overall, I'm going to chalk it up as a winComment
-
Originally posted by mudskipper View PostI got my brackets wrong today. Or more that I didn't have brackets where I should have. Took me a while to spot though.
z = x == null ? 0 : x
+ y == null ? 0 : y;
Which looked logical without brackets but when x and y both had values, z = y. Presumably because x + y == null was false. I don't think BODMAS covered syntax like this.Comment
-
Originally posted by mudskipper View PostI got my brackets wrong today. Or more that I didn't have brackets where I should have. Took me a while to spot though.
I was using delegates from the top-level event handler to deal with the different elements I was acting on. I'd carefully written my code to identify when the element we've just finished parsing is the inner element with the same name, as obviously we don't want to delete things then. My code was correctly identifying that, but when the outer element was completely parsed, my XPath expressions were returning nothing for various things
I spent quite a bit of time going through the docs for the XPath implementation, ensuring I was handling namespaces correctly, and so forth.
In the end, it turned out that the higher-level code which sets up and invokes the delegate functions had a line in it that deleted the element, after calling the delegate, that was left over from when I was getting the bare bones of this stuff working at about 4 this morning, which I'd completely forgotten about
Once I took that out, it all worked exactly as intended. Still, I'd learned a way to precompile the XPath matchers along the way which has drastically improved performance so, as my mother likes to say, it must have happened for a reason
I am now in a position to inform you that England's highways have 3,424 Variable Message Signs, and an impressive 11,199 Matrix SignsComment
-
Originally posted by mudskipper View PostSyntax was:
z = x == null ? 0 : x
+ y == null ? 0 : y;
Which looked logical without brackets but when x and y both had values, z = y. Presumably because x + y == null was false. I don't think BODMAS covered syntax like this.Comment
-
-
MorningComment
-
- 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 to answer at interview, ‘What’s your greatest weakness?’ Today 09:59
- Business Asset Disposal Relief changes in April 2025: Q&A Yesterday 09:37
- How debt transfer rules will hit umbrella companies in 2026 Nov 12 09:28
- IT contractor demand floundering despite Autumn Budget 2024 Nov 11 09:30
- An IR35 bill of £19m for National Resources Wales may be just the tip of its iceberg Nov 7 09:20
- Micro-entity accounts: Overview, and how to file with HMRC Nov 6 09:27
- Will HMRC’s 9% interest rate bully you into submission? Nov 5 09:10
- Business Account with ANNA Money Nov 1 15:51
- 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
Comment