|
I've e-mailed it as I don't know how to make it vissible. It is marked editable by platinum members.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
I don't see it in your (empty) list of articles, so I have no idea how I could read it on the CP site. I did get your e-mail so I will look at it and report back in a few hours.
Cheers.
|
|
|
|
|
OK, the jury is out; here is the Belgian verdict:
1.
this definitely is article material. It is interesting to know, and it is bigger than a tip. It also not just solves a little problem, it is background knowledge that may or may not come in handy one day.
2.
I didn't like the title; I'd rather have something more descriptive and to the point. Some day soon, CP will have real search facilities and members will be able to search titles only for instance.
3.
I'd suggest to keep the order of the enum values constant, maybe regular season order would be great.
4.
I have been thinking about similar things in C# and it isn't really there. For one, in C# one can not inherit from enum. So the best I got working was a real class, something like:
public override void Test(int arg) {
String forcast = Season.WINTER.getForcast();
log(forcast);
log(Season.WINTER.ToString());
}
}
public class Season {
public static Season SUMMER=new Season("Summer", "Sun, sun, sun");
public static Season WINTER=new Season("Winter", "Snow and ice");
private string seasonName;
private string forcast;
private Season(String seasonName, String forcast)
{
this.seasonName = seasonName;
this.forcast = forcast;
Console.WriteLine("Creating " + this);
}
public string getForcast()
{
return this.forcast;
}
public override string ToString()
{
return seasonName + "{" + forcast + '}';
}
}
which is pretty obvious and actually completely unrelated to enums!
PIEBALD might be the right person to elaborate on possibilities and limitations of enums in C#, although I expect the subject is limited anyway, unlike the Java situation.
5.
Please go ahead!
|
|
|
|
|
Thanks a lot Luc. I'll carry on with my Opus as time allows.
Panic, Chaos, Destruction.
My work here is done.
or "Drink. Get drunk. Fall over." - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
|
|
|
|
|
You're welcome.
BTW: any first article (with a positive vote balance) gives you bronze authorship!
|
|
|
|
|
Nagy Vilmos wrote: editable by platinum members
Just figured it out. I'm barely gold in that department, that is why I can't see it. There's 40 platinum authors, from Sacha all the way down to Pete.
|
|
|
|
|
Hi, just a question, i created a small tip yestarday (3 lines of code), and it got pending status, and now i don't see it any more under my tips. I can see only one tip, but it should be two of them.
Is it possible that moderator found it useless? Well, the tip sure was small, it contained 3 lines of code which are used to find first date of week - but since it was different than those found on other places (using while) i thought it could be usefull to other people.
This is how tip looked like:
Private Function FirstDayOfWeek(ByVal dayInWeek As Date) As Date
' Calculate difference between specified date days of week and first day of week
Dim Days As Integer = dayInWeek.DayOfWeek - CurrentCulture.DateTimeFormat.FirstDayOfWeek
' Add day difference to number of days in week then devide sum with days in week, reminder is number of days we need to substract
Days = (7 + Days) Mod 7
' Substract difference of days from specified date
Return dayInWeek.AddDays(-Days)
End Function
It sure is small, but is it really useless?
|
|
|
|
|
I don't think it's useless, but the name is a little bit misleading. When I glanced at this here, I thought you were merely recreating the FirstDayOfWeek method, rather than one that identifies the first day of week based on a particular date. Repost it as a Tip/Trick with a slightly different name.
|
|
|
|
|
Thank you for your response, i see your point and i agree that title is a bit confusing.
I will post a new one with different name and with better description, even better i will steal your description of code (identifies the first day of week based on a particular date).
But i think that user should get some response like, your tip/trick was deleted and a reason for such action, since i did not understand what happened, i was not sure it got deleted, or was stuck somewhere or something like that.
|
|
|
|
|
Are you sure it's been deleted? Have a word on the suggestions forum, and see if anyone knows there.
|
|
|
|
|
Hi Enver,
1.
I can see your tip here[^], it is still awaiting approval.
2.
I'd change the title to something like: find first day of week containing given date.
3.
I think it is OK, however it is hardly original. I provided a similar technique as an alternative here[^].
|
|
|
|
|
Hi,
1. This is the new one i created, old one is really gone, lost in cyber universe
2. This was my second attempt of title, as soon as i find edit button on tip/trick i will change title again.
3. Yes indeed, our concepts seem to be the same.
Anyhow thanks for feedback.
|
|
|
|
|
you're welcome.
To edit a tip/trick title start by clicking the "improve tip/trick" widget. Then look for the first edit box, labeled "subject".
|
|
|
|
|
It instead shows No articles had been found for this author - Contributor but clicking on the Article/Tech Blogs link takes me to a page that lists it.
Also, no change is seen in my rep points after it being posted, voted and bookmarked.
This is my first article and it has been just four days since it was published on Oct 14th. Does time matter in any way?
|
|
|
|
|
|
To me all looks good and as expected. (I can see 1 article in your profile page, and clicking it takes to it. About rep points, in general they are working fine.)
Try Cntrl+F5 just in case...
|
|
|
|
|
All seems fine to me.
When you post your article it won't appear in your article list until it's been moderated.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
As it happens with things, it appeared on my list about an hour after I posted this!
|
|
|
|
|
HP - Exstream(Commonly known as Dialogue)is a new tool developed by HP and is widely used by many MNC IT companies. There are no articles for this tool in almost in entire WWW.
But there are many enquiries and doubts which are asked related to this tool in every company. Further new joiners find very difficult to understand this tool as no help is available.
This tool is too costly to install in normal workstations and in guide centers.
I want to create articles to cover all parts of this powerful and growing tool.
I also add to this that this is the tool used nowadays in many IT companies to generate statements and reports at high speed and standards.
So, is there any possibilities to post an article in code project and if so under which section can I post it.
|
|
|
|
|
|
I'm not really sure what to add. Taking two simple and very self-explanatory utility methods and showing an example of how to use them doesn't add to the community's wisdom.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
I was wondering if there is any rule or etiquette about posting articles or code that could be (mistakenly) seen as a "competition" to existing article(s) of similar/same subject.
I am planning to have a warm up in posting articles with algorithm and some code for something that has already been published by a different member recently. TBH, I was inspired by that article (which I am going to mention unconditionally). However mine is going to be in c/c++;
...byte till it megahertz...
|
|
|
|
|
bleedingfingers wrote: I was wondering if there is any rule or etiquette about posting articles or code that could be (mistakenly) seen as a "competition" to existing article(s) of similar/same subject.
As you are using a different language, I would think that a simple link/attribution would be sufficient.
|
|
|
|
|
Pete O'Hanlon wrote: As you are using a different language, I would think that a simple link/attribution would be sufficient.
Sorry, I didn't understand that. What is this link you say and where must I post that? My algorithm is very different and the code is a LOT simpler and smaller. Doesn't that validate a separate article?
...byte till it megahertz...
|
|
|
|
|
If your article is significantly different, then there is no problem at all. It could be a different programming language, a different algorithm, a much better implementation, whatever.
It is always good to at least mention (and provide a hyperlink to) the existing article, and shortly explain how it and yours are different.
|
|
|
|