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
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment