|
Almost there.
The error was correct: it needs ", not '. However, it just throws a syntax error.
So staring at var='value' and being told it's a syntax error was doing my head in. Did I forget a semi colon? Did I not declare the variable? Are my quotes not balanced? Did I use a backtick instead of a quote (I'd been doing Markdown, too, so my head was getting seriously fuzzy).
And then the penny dropped.
Interesting how you see what you expect to see.
cheers
Chris Maunder
|
|
|
|
|
At least I spotted the quote issue, its been a while! I thought it might have silently failed hence the rest of the statement
|
|
|
|
|
Chris Maunder wrote: Interesting how you see what you expect to see.
IMHO, this is the way we all perceive the world around us.
This is perhaps the cause for so much dissension and fight all around
|
|
|
|
|
Indeed: You read the code you meant to write...
You are not alone; far from it.
Except in using VBS, of course.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
That just shows two things:
1. You're not using an editor with syntax highlighting.
2. There aren't any comments in that VBS
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
Wrong on both counts.
Take a look at the snippet I posted. It's syntax colourised in the same way it shows in the editor.
Again: the brain sees what it thinks it should see. And it thought that the green highlight means string. Even though there was a dark red string 5 lines above it.
cheers
Chris Maunder
|
|
|
|
|
You're using VB.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Last employment was a fiasco so I resigned and took a short holiday. Now I'm back and starting the rounds of interviews.
First problem: After the last experience, I don't trust employers, and I don't trust the recruitment process.
Second problem: Companies want vampires (male, young, passionate, pale, sleep all day, code all night, live on coffee).
Interview: Sonic the Hedgehog in a natty shirt sells Google-like startup environment with a big budget, Agile, and coffins in the basement. Daily scrums. Pair programming. TDD. Code quickly and through the night because you're passionate, fail quickly. Throw code away and start from scratch because requirements changed 2 seconds after you completed the app. Structure kills vampires innovation. Chaos! That is what we need.
I smile politely and tell them I'm not the vampire they're looking for. I'm thoughtful, analytical, structured and pedantic female. I'd flood trainees with too much information. My perfect work environment would contain only me, because interruptions kill productivity. I leave the interview feeling like BatCoder - I'm the coder they need but not the one they deserve.
I confidently tell the recruiter we had a lovely chat but they won't invite me back.
Voice mail today: They LOVED me. I'm through to the next round (online testing FTW )
... What?!?! Did tech sanity prevail over marketing hype? Or does my relatively low salary expectations/availability/ experience/knowledge/gender/dry humour appeal? And do I take a chance that this might work out, or decline?
Gah!! You'd swear I had to consider a marriage proposal and I haven't even passed a test yet
|
|
|
|
|
Ri_ wrote: I don't trust employers, and I don't trust the recruitment process.
Trust no one, ever! Ok, there are exceptions to that but none in the workplace.
Ri_ wrote: Voice mail today: They LOVED me. I'm through to the next round (online testing FTW )
Online testing is very hit-and-miss but good luck!
|
|
|
|
|
Start laying down some of your own rules if you are not pressed for the job! Do I get an office, can I spec my workstation, do I get admin rights! Just some basics, you should then find out if they are serious.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Ri_ wrote: Companies want vampires (male, young, passionate, pale, sleep all day, code all night, live on coffee). Decent companies nowadays are more interested in what they call 'behaviours'(urgh horrible buzzword) rather than eidetic memory at interview.
It's much better to be a no-b*llsh*t type communicator at interview as although it is flattering to be offered a place, working in a crappy environment sucks much more than having to look a bit longer for that decent job(speaking from past experience here ).
I have turned down people with 1st class degrees who answered every technical question perfectly but who were incapable of a smile or a laugh, at one of my try to help them relax jokes(I may have just identified why they were unable to relax...), at interview over people who have some ability to communicate but may not be as technically qualified.
That's because I know when it comes to the crunch I would much rather work with someone who has some ability to communicate than a savant who may be technically brilliant but is inflexible.
Good luck finding a job/environment that works for you!
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
|
When they told me about the online tests, I asked, "Is it open book?" They thought I was serious.
Sigh. My sense of humour might need some fine tuning
|
|
|
|
|
Ri_ wrote: First problem: After the last experience, I don't trust employers, and I don't trust the recruitment process. This will help to resolve your confusion over...
Ri_ wrote: Voice mail today: They LOVED me. Certainly they did. See ?
Ri_ wrote: I'm through to the next round (online testing FTW ) My uneducated guess is that this is the post-interview version of "Click Here To Apply" i.e., if you're not a young white male, then they need something tangible; i.e., an empirical data set that demonstrates that you aren't the sister-in-law of the receptionist's friend for whom they really created the job in the first place. (Place into the Babel speak translator, legal verbiage transformer, then tested on the lawsuit shield defender: "She did not score as highly as the other candidates on the exact same test.")
I would find it very interesting if the test actually gives any semblance of an accurate reflection of the thinking skills that the chosen employee would in fact be required to execute; particularly if that's a mostly techno-nerd type of position.
I would like to encourage you to do yourself, and the people in that company (and those of us reading) a favor and take the online test. Let us know if any of this comes true or not.
(Psychic trance moment, please play some woo-wee-zoo-ee theremin sounds and read on)
That test will have 3 questions that are even partially relevant to the needed job skills, and 37 questions which are from barely tangential technical disciplines of which you, and everybody else on earth, have absolutely zero knowledge.
(With the sole exception of the receptionist's sister-in-law.)
|
|
|
|
|
My sister-in-law was trying to change the thread in her Brothers sewing machine. She spent 20 or so fruitless minutes trying to get the machine to accept the thread and get it through the complex path it has to take to get to the needle. Finally, my son (a computer geek - internet security) went over to help her. He fought with it for a few minutes and then took the only geeky remedy he could think of. He powered the machine off and then re-booted. Worked like a charm. He said that, obviously, Brothers must be using MicroSoft software to drive their machine!!!
Dave.
|
|
|
|
|
Sure... because I NEVER see complaints about Android devices or Apple products on here...
|
|
|
|
|
One day last week my Droid wouldn't clear a notification about a snoozed alarm, so power-off-power-on all good.
|
|
|
|
|
|
I have a web application that has a SAS backend (db) that is thread throttled so as to not overload SAS. 3 threads can get in at anyone time with a queue of up to 250 threads. Threads are timed out if they take more that 45 seconds to execute (very rare, and only for complex queries). Queued threads are terminated if they wait more than 5 minutes. This configuration has proved effective, should a DOS attack get through the firewall (in theory this should not happen but can happen in bursts). This configuration allows the web server to recover after 5 minutes should an attack get through. This can be implemented for a specific web on an Apache in just a few lines in a httpd.conf file, very sweet.
Fast forward to another web app I'm working on that runs under IIS;
IIS, for a specific web on the server I can do the same thing it looks like but for the whole web server, I don't have selectivity to web. I am sure it's because of my ignorance, at least I hope. I continue to research...
Rage against the narrative.
"To Build a Fire" - A dystopian novel about project management, and I am the dog.
|
|
|
|
|
Ernst Iliov Stavro Blofeld wrote: configuration allows the web server to recover after 5 minutes should an attack get through
Not if the attack keeps running for over 5 mins. Your queue would quickly fill up again and block, so you're down for another 5 mins.
cheers
Chris Maunder
|
|
|
|
|
So how do you deal with a ddos attack wait I should probably type that into google
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You use Cloudflare
cheers
Chris Maunder
|
|
|
|
|
Thanks! Will look into it.
Rage against the narrative.
"To Build a Fire" - A dystopian novel about project management, and I am the dog.
|
|
|
|
|
True. I am talking about the case where our IT perimeter guys fall on their face temporarily, can't control everything. So a mishap occurs and you want your server to recover with out a reboot or service restart.
Rage against the narrative.
"To Build a Fire" - A dystopian novel about project management, and I am the dog.
|
|
|
|
|