|
Sure, even if the value is burnt into a ROM, you can unsolder that ROM and put another one in place. So you can set Environment.NewLine to "xyzzy", if that satisfies you one way or the other. But that will neither change the newline convention in Windows, *nix or OSX.
I've seen people, in classic K&R C, set up #define to give FALSE the value 1 and TRUE the value 0. And I've heard of people programming in Forth to set the value of 3 to 17 - in that language, the literal 3 is a symbol that just happens to initially have the value of e.g. the count of x-es in the string "xxx", but it can be redefined som something else. Aa a code obfuscation mechanism, it is of course great.
I think that when you work in a given language, your task should be solved in that language, using the abstractions and concepts in that language. If it says that a value is constant, it IS constant for that problem solution. Just like you can go behind the compiler's back and change a contant value, you can also open an .exe or .dll file before it is run and change a "greater than" conditional jump to a "greater that or equal to" conditional jump. So the loop termination, while appearing to be constant at the source code level, is actually varying depending on which modification are made to the executable code file.
If you start digging a huge hole in the ground underneath your house, your house will fall into it. You asked for it, you got it.
|
|
|
|
|
Bro...
Readonly field / variable is not the same as constant.
I thought it was a very basic knowledge.
It seems that I was wrong.
|
|
|
|
|
Since it's actually a static field then it could be anything.
|
|
|
|
|
You should give your variables meaningful names.
|
|
|
|
|
F-ES Sitecore wrote: You should give your variables meaningful names.
I'm sure it was just an example but how do you know it's not meaningful anyway?
Sin tack
the any key okay
|
|
|
|
|
It was only a joke
|
|
|
|
|
StyleCop: missing joke icon.
Sin tack
the any key okay
|
|
|
|
|
Haha, that's a good one.
While we are at it: How about truths, are they jokes?
Like: Constants aint. Variables won't.
(Maybe these are not absolute truths, even though you sometimes get that feeling.)
|
|
|
|
|
Lopatir wrote: missing joke icon
This is a form of natural selection.
Peter Wasser
"The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts." - Bertrand Russell
|
|
|
|
|
Tell him there's no functions in C#.
|
|
|
|
|
I raise you a SQL error..
[Error Message]
TITLE: SQL Server Setup failure.
SQL Server Setup has encountered the following error:
The given key was not present in the dictionary..
For help, click:
BUTTONS:
OK
[/Error Message]
In the end, it was not happy about an IP address in the cluster.
Common sense is admitting there is cause and effect and that you can exert some control over what you understand.
|
|
|
|
|
Many of you may not be old enough to remember this one. Dumbest error message I ever saw was from early Microsoft DOS: Keyboard not found. Press Enter to continue.
|
|
|
|
|
Actually, that was from the ROM BIOS. (ANd I haven't tried in a while, but you can probably still get it)
Truth,
James
|
|
|
|
|
What about:
Keyboard not found.
Press any key to continue.
modified 3-Feb-21 21:01pm.
|
|
|
|
|
Nah, it's this one:
I ran into a nasty little problem while creating the .CAB file which contains the installation, since I have a thousand sound files, which is more than the cabwiz.exe which comes with Visual Studio 2008 can accommodate…and the error code for this defect is completely unhelpful, in the grand Microsoft tradition:
Error: File c:\users\[me]\appdata\local\temp\wizbbe1.inf contains DirIDs, which are not supported
ERROR: The Windows CE CAB Wizard encountered an error. See the output window for more information.
It turns out that VS2008’s cabwiz.exe chokes on more than 998 included files, and this application has 1057. The workaround is to download the SDK for Windows Mobile 6 and use the cabwiz.exe (and the cabwiz.ddf) from that version instead (C:\Program Files\Microsoft Visual Studio 9.0\SmartDevices\SDK\SDKTools\CabWiz.exe and CabWiz.ddf with the ones under C:\Program Files\Windows Mobile 6 SDK\Tools\CabWiz). No problem once I had done this.
Painful details: Win CE Audible Spanish Flashcards | Stuffilike.net[^]
|
|
|
|
|
Wait I can beat that. I got that same error message just this week, and this code (simplified):
Func<int> Five = ()=>5;
void MyFunc(Func<int> func = Five) { }
How is THAT not a constant?
Truth,
James
|
|
|
|
|
After the discussion about 'drones' yesterday, I have been looking for a new model as well. My T-Rex 550E is about 10 years old, I'm at least the third owner and is not new and shiny anymore, but it still flies well. The problem is that the replacement parts for this model become harder to get every year.
This[^] would be a great replacement, but they obviously don't have it in stock yet.
And this is not a 'drone', nor should anything of this size and capable of such a speed (around 100 mph) be. Like multicopters it could be flown by a microcontroller and accomplish some 'mission' autonomously. It has GPS, motion sensors and a gyro to sense rotation, but it can't 'see' obstacles or other dangers.
I have already seen trouble coming while landing, like small children ("Go take a look!") or dogs ("Go get it, boy!") and very quickly took off again. People already have been killed in accidents and I will not let one of those things fly around under the control of a microcontroller, especially not as an excuse not to learn how to fly and keep it under control myself. Besides that, isn't learning and accomplishing something the actual fun part? Why would I want a microcontroller to automate it away?
So, yeah, I'm just ranting and don't know a thing.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I agree. I, too, am an RC pilot. I fly T-Rex 500's and most fixed winged models. The main difference between a drone and an RC aircraft is the pilot. Drones are flying toys that someone else has built and the owner just wants to watch it fly with little participation. An RC pilot learns every detail about their aircraft, learns its characteristics, and attempts to master the control of the aircraft in any reasonable weather condition. Those who have never spent 100's of man-hours building an RC aircraft from the ground up will never understand.
When you are dead, you won't even know that you are dead. It's a pain only felt by others.
Same thing when you are stupid.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
You just saved my day.
Unfortunately I must tell you that you don't know anything, just like me. This royal dickhead says so.[^]
If someone needs to report this: Go ahead and send me a copy. I will sign it, making him a certified royal dickhead.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I see that drones are something completely different from RC aircraft. Drones are automated tools used to collect information, while RC aircraft are all about the joy of flight. Anyone who says that drones are the same or better than RC aircraft have never experienced the white knuckle syndrome while trying to land a T-Rex in a 10 mph wind or gliding a fixed wing (dead-stick) hoping that it has enough altitude to bring it in safely. Even better, spending months building it and seeing it fly for the first time.
I, too, have worked in the aerospace industry. I've worked on fixed wing, rotary aircraft, and space programs. They have no bearing on what it's like to fly, whether it is a passenger aircraft or an RC aircraft.
When you are dead, you won't even know that you are dead. It's a pain only felt by others.
Same thing when you are stupid.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Donathan.Hutchings wrote: never experienced the white knuckle syndrome while trying to land a T-Rex in a 10 mph wind Or actually flying around for the first time after learning how to hover. I must have spent a month's ration of adrenaline.
Donathan.Hutchings wrote: I see that drones are something completely different from RC aircraft. Drones are automated tools used to collect information, while RC aircraft are all about the joy of flight. That may be, but one of those will fail sooner or later and I don't want to be the one on who's head it's going to fall, nor the one who is responsible for a bug that led to the accident.
For those who don't have any unlimited budgets and only access to equipment off the rack there still is no alternative to learning how to fly. No cool feature is going to get you off the hook when an accident happens.
Donathan.Hutchings wrote: I, too, have worked in the aerospace industry. I've worked on fixed wing, rotary aircraft, and space programs. They have no bearing on what it's like to fly, whether it is a passenger aircraft or an RC aircraft. My first job after school was more to learn how to knock aircraft out of the sky. Certainly the fastest things I will ever get to remote control.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
CDP1802 wrote: My first job after school was more to learn how to knock aircraft out of the sky. Certainly the fastest things I will ever get to remote control.
Required training.
When you are dead, you won't even know that you are dead. It's a pain only felt by others.
Same thing when you are stupid.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
Actually even the old MIM-14[^] was controlled by an analog computer. I just had to keep the radar pointed at the missile.
Later, the MIM-104[^] was even more automated. That's tech from the 1970s and 1980s. I don't want to know what a modern system would look like. It probably will only have a 'on/off' button and automatically posts your kills on facebook.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
By the way, what do you think about your T-Rex 500. I'm asking because I might be interested in building a scale model with this body.[^]
And there are two more, also based on the T-Rex 500, a Cobra and a Sea King.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
I love it. I built a replica of the Bell 222 (Airwolf) aircraft. It's really stable and I haven't had any real issues with rotor blade alignment and balance. Plus, there is a lot of third party support for it. I got the Bell 222 fiberglass cowling for it online.
When you are dead, you won't even know that you are dead. It's a pain only felt by others.
Same thing when you are stupid.
modified 19-Nov-21 21:01pm.
|
|
|
|
|