|
me needs sleep.
cheers
Chris Maunder
|
|
|
|
|
It must be on my end. I'm currently leave one of your graphics on another tab, when I go to a new page in CP I have to go to the graphic, refresh, when it tell me I don't have a secure connection I do the advanced go there anyway drill, then back to the CP page, refresh and all is fine....until the next page.
curious
|
|
|
|
|
|
I'm comfortable with that.
As opposed to those using IE on XP and Java 6. Poor souls.
cheers
Chris Maunder
|
|
|
|
|
In last Coding challenge, there is 40 solutions and there is 20 solutions on a page.
The problem is that the question shows 3 pages and the third page show no solution.
Coding challenge: convert tabs to spaces[^]
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Two things are difficult in programming: naming things, cache invalidation, and off-by-one errors.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
When posting the code at the very end, there are pre tags automatically inserted on blank lines in the preview. It seems to be random since some blank lines are accepted. You have to remove the spaces around the ViewModelBase constructor and between the ViewModelBase class and MockDB class to get it to display correctly.
public class ViewModelBase : INotifyPropertyChanged
{
protected MockDB cbdc;
public event PropertyChangedEventHandler PropertyChanged;
public ViewModelBase()
{
cbdc = new MockDB();
}
protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) =>
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public class MockDB
{
private Dictionary<Contact, List<Conversation>> conversations;
public List<Contact> Contacts { get; private set; }
public MockDB()
{
Contacts = CreateContacts();
conversations = CreateConversations(Contacts);
}
public List<Conversation> GetConversations(Contact c) =>
conversations[c];
private List<Contact> CreateContacts()
{
return new List<Contact>()
{
new Contact("Jim"),
new Contact("Bob"),
new Contact("Mary")
};
}
private Dictionary<Contact, List<Conversation>> CreateConversations(List<Contact> contacts)
{
Dictionary<Contact, List<Conversation>> conversationMap = new Dictionary<Contact, List<Conversation>>();
foreach (Contact c in contacts)
conversationMap.Add(c, CreateConversationList(c));
return conversationMap;
}
private List<Conversation> CreateConversationList(Contact contact)
{
return new List<Conversation>()
{
new Conversation($"Hi {contact.Name}!"),
new Conversation("Pleasant day today.")
};
}
}
public class Contact
{
public string Name { get; private set; }
public Contact(string contactName)
{
Name = contactName;
}
}
public class Conversation
{
public string Title { get; private set; }
public Conversation(string conversationText)
{
Title = conversationText;
}
}
public class ViewModelBase : INotifyPropertyChanged
{
protected MockDB cbdc;
public event PropertyChangedEventHandler PropertyChanged;
public ViewModelBase()
{
cbdc = new MockDB();
}
protected void RaisePropertyChanged([CallerMemberName] string propertyName = null) =>
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public class MockDB
{
private Dictionary<Contact, List<Conversation>> conversations;
public List<Contact> Contacts { get; private set; }
public MockDB()
{
Contacts = CreateContacts();
conversations = CreateConversations(Contacts);
}
public List<Conversation> GetConversations(Contact c) =>
conversations[c];
private List<Contact> CreateContacts()
{
return new List<Contact>()
{
new Contact("Jim"),
new Contact("Bob"),
new Contact("Mary")
};
}
private Dictionary<Contact, List<Conversation>> CreateConversations(List<Contact> contacts)
{
Dictionary<Contact, List<Conversation>> conversationMap = new Dictionary<Contact, List<Conversation>>();
foreach (Contact c in contacts)
conversationMap.Add(c, CreateConversationList(c));
return conversationMap;
}
private List<Conversation> CreateConversationList(Contact contact)
{
return new List<Conversation>()
{
new Conversation($"Hi {contact.Name}!"),
new Conversation("Pleasant day today.")
};
}
}
public class Contact
{
public string Name { get; private set; }
public Contact(string contactName)
{
Name = contactName;
}
}
public class Conversation
{
public string Title { get; private set; }
public Conversation(string conversationText)
{
Title = conversationText;
}
}
|
|
|
|
|
You had "Use Markdown" checked. Unchecking that fixed the issue.
We use MarkdownSharp 1.13.0[^]. No idea why it felt the need to go crazy. We're tried a few other Markdown implementations and, frankly, they are all odd in their own special way.
cheers
Chris Maunder
|
|
|
|
|
Good to know! Thanks
|
|
|
|
|
Hi, I tired to ask a question under C++ thread. every time I post there I am getting a message "post deleted ". Please help me
Thanks
|
|
|
|
|
Something in your post most likely looks like spam and is getting rejected for that reason. Make sure your question contains no URL links to external sites.
|
|
|
|
|
In this question
XOR 2 long hex values to ascii output[^]
when click on V2 abd ask to compare V1 and V2, it display V1 text side by side instead of V1 and V2.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
As far as I can see, v1 and v2 are identical. Are you sure the user didn't just "bump" the question?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
That is the problem !
V1 and V2 are identical but V2 is not the actual question.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
I'm seeing v1 and v2 as the same content, different dates.
cheers
Chris Maunder
|
|
|
|
|
I expected V2 to be actual version of question, which is not.
Or did I miss something ?
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Hi all,
I have answers in QA and someone just DownVoted 5 answers (5 times 4 points, note that I don't care the 20 points) in a matter of 7 minutes, and I guess I am not the only one. And for sure no message explaining what he don't like.
Is it "RedDk" ?
I was DownVoted on 2 of the questions the same minute they were closed and he was in the reporter.
I would like that in order to DownVote, one have leave a message with explanation. I think it would help to prevent abuse.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
Clearly you are upset by the down voting. The fact that the questions are closed shows that they are considered unanswerable according to the rules of the forum. Why then is a message required?
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
modified 5-Dec-16 22:19pm.
|
|
|
|
|
I agree that this question was poorly phrased.
Minimum days it take to build an payroll website in ASP.NET?[^]
But not really worst than many "do my work" questions.
I considered it as "How to estimate the time needed to do a project" and my answer was a little guideline to help that estimation.
Do you think it is abusive and merit downvote ?
More than that, a little message saying what is wrong in the answer would have been appreciated. At least I would know what is considered wrong (at least by this member)
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
ppolymorphe wrote: More than that, a little message saying what is wrong in the answer would have been appreciated.
Isn't this just a bit disingenuous?
I saw the question and considered it unanswerable under the terms of the Q&A. Unfortunately there are a very large number of answers posted that should merely be comments. Why is this done? Perhaps you can tell me.
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
|
|
|
|
|
Obviously the question is now closed so I can't comment on whatever your solution was. Someone may have downvoted it ... or did they downvote the original question? I can vaguely remember the responses and don't recall any downvotes on the solutions or reports against the comments.
I also get a little peeved by down-votes against my messages/comments/solutions when no-one can be bothered to explain to me "why the down-vote" ... I want to be corrected, I want to continue to learn ... but after several years of this s**t I've accepted that I'm never going to get an answer
I will comment though ... I've posted solutions to posts that have been subsequently closed for whatever reason and have not "lost" any rep points (that I'm aware of). Not that I care that much tbh
|
|
|
|
|
Hi,
as it happen that this question comes back on a regular basis, I have added my solution to my file of caned solutions.
It was more or less:
Quote: In order to estimate the time you need, you need to analyze the statement.
For this task, I use a nice tool named ToDoList ToDoList 7.0.13 - An effective and flexible way to keep on top of your tasks[^].
It is a ToDoList for programmers: any Task can be split into as many SubTasks as you need and on as many levels as you need.
Take the statement and split it in as many logical part as it need. If a logical part is clear enough, estimate the time you need, otherwise, refine the Task by splitting into SubTasks until each SubTask is clear enough.
Then estimate the time needed for each SubTask, the grand total is your estimate.
Even if you don't give it estimations, Take a task to describe the database you need to glue anything.
Advice: Until you are skilled on estimations and detecting hidden difficulties, multiply the estimate by 2. The statement is never easier than expected.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
This old chestnut has been raised, and rejected many times. As Chris has been at pains to point out, it will just lead to flame wars and more rubbish being posted in QA.
|
|
|
|
|
Richard MacCutchan wrote: it will just lead to flame wars Unless the username was withheld and only the comment was displayed. That could be a compromise.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Yes, so we could start posting anonymous insults and abuse etc. No thanks.
|
|
|
|