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
- Why limited company working could be back in vogue in 2025 Today 09:45
- Expert Accounting for Contractors: Trusted by thousands Dec 12 14:47
- Finish the song lyric Dec 12 12:05
- A quick read of the taxman’s Spotlight 67 may not be enough Dec 12 09:27
- Contractor MVL Solution from SFP Dec 11 12:53
- Gary Lineker and HMRC broker IR35 settlement on the hush Dec 11 09:10
- IT contractor jobs market sinks to four-year low in November Dec 10 09:30
- Joke of the Day Dec 9 14:57
- How company directors can offset employer NIC rising to 15% Dec 9 10:30
- Contractors, seen Halifax’s 18-month fixed rate remortgage? Dec 5 09:59
Comment