|
I have come up with a very useful little C# Class that can maintain a history stack for any Type (i.e., it's a generic Class), and serialize/de-serialize the stack, and "current value." The user specifies a fixed size-limit for the stack when creating an instance of the Class, and if that limit is exceeded, the oldest item is removed from the stack.
Of course, I intend to publish the source (which is not that long). And, I intend to discuss the design decisions involved such as why I did not actually use the Stack<T> .NET generic data structure.
My sense is this probably should be a tip/trick, but being aware of what passes for articles these days (and what passes for tip/tricks), I'm not absolutely certain that just because the content would be "relatively short" that it should not be posted as an article.
Appreciate your thoughts, Bill
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
modified 18-Nov-15 1:52am.
|
|
|
|
|
If I read the above correctly, you are explaining how to use one small specific feature. It certainly sounds like a Tip. And you will most likely get just as many votes.
|
|
|
|
|
Thanks, Richard, yes, I agree with you, and I will post as an article only if there is substantial content added that puts the code in a broader context.
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
|
|
|
|
|
If it is only a description and extension is short I would go for Tip/trick.
If you are going to explain what happens, why you took one way and its advantages... it might go through as article though.
BillWoodruff wrote: being aware of what passes for articles these days (and what passes for tip/tricks),
Friends and socket puppets are often faster than usual moderations
Me and many others still try to rise the point as much as possible, but still difficult to fight against it
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Thanks, Nelek, I will post as an article only if there is substantial content added that puts the code in a broader context.
«I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center» Kurt Vonnegut.
|
|
|
|
|
|
All fixed.
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
thanks
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi, I have submitted a Tip/Trick with an attached zip file containing the source code which has been approved and published. The source can be read in the article (by using 'Browse Code') but somehow there is no button to download the file. The article is freshly uploaded and approved. Is the code still in quarantaine or something alike?
Cheers,
veen_rp
|
|
|
|
|
Downloads don't automatically get added to articles. You have to include a reference to them in the same way you would with a picture.
|
|
|
|
|
Thanks. I will.
|
|
|
|
|
I sometimes have an issue when I paste code into an article and then set the code formatting style and language type. The HTML comes out wrongly and in the preview mode this gives unsatisfactorily results. Is this a known issue? Or is it my browser, I use Opera? Or is it me?
Cheers,
|
|
|
|
|
I am using the CodeProject editor to edit an article I have written. When previewing the edits, the images included with the article are not displayed but instead appear as blank sections. Editing the image properties requires entering a URL. The default URL references the location of the image on my computer instead of the CodeProject site. My question, how do I change the URL to reference the images previously uploaded to the CodeProject site so that the images are correctly displayed when previewing the article? More specifically, what should be included in the URL?
Thanks,
Ian
modified 8-Nov-15 21:30pm.
|
|
|
|
|
To include images you need to first upload them (drag and drop them onto the area of the wizard for file uploads) then you can reference them in your article using
<img src="image.png">
Where image.png is the filename of your image. Don't add any path info - the wizard will fix all of that up for you.
In the list of images you've uploaded, just to the left of the image name, is a small arrow icon which, when clicked, will insert the image at the current cursor location.
cheers
Chris Maunder
|
|
|
|
|
Is looking beautiful!
Including LaTeX and images!
Chris, how is it looking for you? Still see black boxes instead of formulas?
Maths in IT #2: Venn diagrams[^]
|
|
|
|
|
I am posting a second part of an article, should I post as a new article or as an alternative to the original article?
|
|
|
|
|
Unless an article is actually an alternative version it should be posted as a new article.
cheers
Chris Maunder
|
|
|
|
|
Hello,
I want to write an article which can help others for any small task to do which may require to write PLSQL. Can anyone please provide guidance.
|
|
|
|
|
In what way do you need guidance? If you're after help with style, formatting, our submission system etc then fire away with questions. If you need technical help on the subject matter then you should go to the relevant forums [^]
cheers
Chris Maunder
|
|
|
|
|
I am currently drafting an article which simulate a Middleware application (Financial/Banking segment) which helps reducing inhouse devlopment efforts. Current Section/subsection don't seems to cover the article. Any suggestion where should it fall ideally.
Do
Read();
Research();
Experiment();
UnTil You Inspire!
|
|
|
|
|
What language/technology stack are you using?
|
|
|
|
|
its C#, XPATH, windows. The application is a console application.
Do
Read();
Research();
Experiment();
UnTil You Inspire!
|
|
|
|
|
Your best bet is in C# > General then.
|
|
|
|
|
I recently wrote my first maths article on WordPress using the 'default' JetPack Beautiful Math feature.
First of all WordPress just really messed up... All LaTeX in my RSS feed is an img with a src that doesn't exist.
So when this got pulled to CodeProject it was just a mess with missing images.
Anyone knows why WordPress messes this up and how I can pull to CP without worrying about markup?
Beautiful Math uses the syntax $latex \somecode$ while CP has <span class="math">(\somecode)<span> .
I'm currently trying to fix my blog on CP, but it's taking some time. I really don't want to do this for all my blogs on maths...
|
|
|
|
|
There are two issues:
1. Your blog is emitting images instead of the Latex code. No idea how to get your blog to not pre-process the latex
2. The images that are linked to in your blog feed aren't being shown. Do you have some kind of check to ensure images aren't being included in off-domain pages? If so then removing this block will allow the images to show and your blogs will look fine again.
cheers
Chris Maunder
|
|
|
|