|
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
3. No sys-admin, networking, "how do I setup XYZ" questions. For those use the SysAdmin[^] or Hardware and Devices[^] forums.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen.
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
modified 16-Sep-19 9:31am.
|
|
|
|
|
how to open message thanks
|
|
|
|
|
Click on it!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Instructions too complicated. Got head stuck in bin, cheers for that 
|
|
|
|
|
how to open source files thanks
|
|
|
|
|
If all else fails: Use a hammer!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
Use an editor, or an IDE.
Depending on the language, Visual Studio is damn good at it.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Please click on the big red Got a programming question? link above.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
I just did that but my source files are still closed. 
|
|
|
|
|
Well, in this case, you might be out of luck.
Have you tried powering your computer off and doing something else?
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
There is nothing else. 
|
|
|
|
|
Shake and unscrew the top
-- sorry, that's bottles
|
|
|
|
|
Just upload your entire hard drive to a public file share repository and then all your files with be open source 
|
|
|
|
|
Untamed Land - In Darkness Awakened[^]
About two weeks ago, Google recommended a blog with top 10 epic black metal albums.
I do like me some epic black metal from time to time, so I checked out the list.
I already knew the first five and the final four were mostly more of the same.
Not so for #6 on the list though, Untamed Land.
Where about 90% of epic black metal bands are inspired by Tolkien and the remaining 10% by winter, Untamed Land is inspired by... Spaghetti westerns!
This is what Ennio Morricone would sound like if he made black metal.
|
|
|
|
|
A set of drawers goes mental on the fire at Christmas (9)
A nice easy one to finish the week.
modified 7 mins ago.
|
|
|
|
|
Pete O'Hanlon wrote: A nice easy one to finish the week.
A little too easy... I would feel dirty answering it
I will save it for Griff, he likes to do Mondays 
|
|
|
|
|
|
A group of chess players checked into a hotel and stood in the lobby talking about their tournament victories. Suddenly the manager came out and asked them to disperse. “But why?” They asked. “Because I can’t stand chess nuts boasting in an open foyer.”
|
|
|
|
|
It probably comes as no surprise to you to find out you are the winner.
|
|
|
|
|
Xou might get it: Wizard of Id[^].
I have good connections to the guys who test these[^].
It's still not going to be cheap, but women love expensive cars.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
CodeWraith wrote: It's still not going to be cheap, but women love expensive cars.
and Jewelry and Clothes and Shopping and ...
They call me different but the truth is they're all the same!
JaxCoder.com
|
|
|
|
|
Mike Hankey wrote: and ...
Not the ones I have met, they are usually grumpy as hell during "that time" 
|
|
|
|
|
Mine has to be inserts and deletions in containers implemented over arrays:
Below is some ugly code. I hate this. B-trees are FAR worse though.
bool ICollection<T>.Remove(T item)
{
if (Equals(_array[_head],item))
{
Dequeue();
return true;
}
else
{
for(var i = 0;i<_count;++i)
{
var idx = (_head + i) % _array.Length;
if(Equals(_array[idx],item))
{
if (_head + _count < _array.Length)
{
Array.Copy(_array, idx + 1, _array, idx, _count - idx - 1);
}
else if (idx == _array.Length - 1)
{
_array[idx] = _array[0];
if(_count+_head!=_array.Length)
{
Array.Copy(_array, 1, _array, 0, (_count + _head) % _array.Length - 1);
}
}
else if (idx < _head)
{
Array.Copy(_array, idx + 1, _array, idx, (_count + _head) % _array.Length - 1);
}
--_count;
unchecked
{
++_version;
}
return true;
}
}
}
return false;
}
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I can feel the lack of love in ya code...
you can do nicer, I believe in ya!
Also there is a bug!
If T is a reference type, you would leave the reference at the head index being duplicated (and NOT garbage collected)... you should set newly empty spot to default(T)
as in, if you remove B
your underlying array will go from
A | B | C
to
A | C | C
The last C will prevent garbage collection of C
|
|
|
|
|
yeah that's true. I wasn't considering the collection of ref types there. Now I can see why microsoft cleared their arrays. I didn't put 2 and 2 together and think about garbage collection. meh. thanks.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|