|
I guess that the balance and taxation division of a bank is appropiately educated to see what their accounting application needs. The question was less "how would a proper account structure look like", but rather "how can it be edited". Today,they use Excel! THAT is hell! Any less heated hell ist highly appreciated. (I agree that a newly founded bank would use current software, but as long as I'm not in the board, I can't change the software they use).
So, we do not need to discuss business demands, but their technical implementation. We do have a tree, ~100000 nodes, references (e.g.some asset position has references to notes positions "far away" in the tree), and all positions are caused by regulation, but can be arbitrary deeper detailed (e.g. for easier reconcialiation reports).
|
|
|
|
|
Another "problem" is that "designers" of accounting systems attempt to use the COA to fulfill EVERY possible reporting requirement; not appreciating that "reporting (tree) structures" can be built independently of the COA's structure.
Everybody thinks their situation is "unique", when in fact it isn't. It's just misunderstood.
In realty, most employees are not allowed to "look at the books", and are limited to one small slice (if any) on a need to know business. I see a lot of issues in your future.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
When I edit video recording I backup the video project every time I make a few changes that way if something does not work then I can go back to a previous project backup eg Gardens1.veg Gardens2.veg etc
I am hoping that you can do the same when writing a C# program but can't see any way of doing this.
I normally select 'save all' so that everything is saved.
Brian
|
|
|
|
|
Welcome to the tribe of devs who need version control/back-up software !
imho, it's a strange "empty" that Visual Studio doesn't provide a simple menu command to back-up an entire project/solution ... for the single developer.
This post gives a useful overview of what you might look into to determine what you need: [^].
I sometimes put a shortcut to the current VS solution folder on the desktop, and then duplicate (the contents of) that as necessary: not elegant !
I did create my own solution for this (just code, not a VS extension), but, it was quirky, and I had to use try/catch to avoid access errors for certain locked VS run-time hidden files: I stopped using it
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
modified 11-May-19 8:11am.
|
|
|
|
|
Backups and version control are very different beasties!
Version control is pretty easy with all .NET languages - GIT support is built in to Visual Studio these days, and that allows you to use a local of remote (like BitBucket or GitHub - the latter is better IMHO) and that provides you with full source control. Google "Visual Studio GitHub" and you will find loads of explanations.
Backups aren't normally "single project" related, but that's easy enough to do. The only warning I would give is that a backup regimen should be a bit more complex than source control simply because backed up data should be "air gapped" to prevent corruption when things go seriously wrong!
Have a think about exactly what you are trying to achieve: I use source control and backups and it takes both care and thought (as well as time) to get it right.
And always, always, always: do a trial restore of any mechanism to make sure that you can use the data before you assume it's right! There is nothing worse than being confident in your backups and finding out they are rubbish exactly when you need them to be perfect!
See here: Don't Hit Save - The Screwup[^]
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hi, I'm curious about what you use for back-ups ... assuming you are automating that in some way: fyi: I interpret "version control" as implying some form of back-up/archiving. cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
AOMEI Backupper and a bunch of 4TB USB drives!
Version control shouldn't be seen as a backup - or at least not a "primary" backup - the data is out of your control (unless it's a local hub and then it's not air gapped and probably on the same machine).
And we've probably all heard "Git lost the lot!" sob stories, though this can help: Oh, sh*t, git![^]
What I do is use Git for source control, and archive "released to client" software to air gapped RAID 5 backups which live in a friends garage when I'm not using them, as well as "normal" regular backups of my whole system as AOMEI images.
And I copy whole folders to my 16TB RAID 5 NAS when I'm feeling especially nervous about making changes.
I think the most work I've completely lost in the last 20 years is about ten minutes.
It's not paranoia if HDD's really are out to get you!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
That's enlightening, thanks !
p.s. could you please send me one of those 16TB Raid 5 critters asap ?
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
Thanks for your reply and the replies of others to my question on backing up C# code.
I'm thinking that it might be easier to zip up the project folder for the project that I'm working on and add version numbers to the zip file.
If something does go wrong then am I able to restore the zip file or does Visual NET write information elsewhere other than in the project folder?
Brian
|
|
|
|
|
So long as you're not doing anything with source control, everything is in the project folder.
|
|
|
|
|
Hallo there
i want to get the Aveg Temperature of August which has 31 day but sometime there is a data of temp just for 29 or 27 however how could i get the Avag based on how many days has been read and saved as data that could be (29,27,26 or 10 days) ?
here is the code :
public static TheWeather GetAverageForMonth(List<TheWeather> entries, int year, int month)
{
if (entries == null || entries.Count < 1)
return null;
int days = 0;
int index = entries.Count();
double total = 0.0;
double Aveg = 0.0;
for (index = 0; index < entries.Count; index++)
{
if (entries[index].dateTime.Year == year && entries[index].dateTime.Month == month)
{
total += entries[index].Actual_mean_temp;
days = entries[index].dateTime.Day;
}
}
Aveg = total / days;
return entries[index];
|
|
|
|
|
That's not how you count "days"
days = entries[index].dateTime.Day;
days++;
The return doesn't make much sense ... and you throw away the "average".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
i have already tried but the problem here if there is only temperature for 29 day it will get the aveg for 31 day and thats wrong . i need the aveg based on how many days alread have it could be in August 29 or 23 days has been read
|
|
|
|
|
You're making a rod for your own back here: an average is always the same:
average = sum of samples / number of samples
So what your code needs to do is sum the samples and count how many items you added to the sum.
That shouldn't have anything to do with the number of days in a month at all - because you have no guarantee that a sample has been taken every day during the month, regardless of whether the month is "complete yet".
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
could you show me some code to be more clear what do you mean
|
|
|
|
|
You are kidding, right?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Aveg = total / days;
to understand what i meant : (days) are the days of August which they 31 day right .
total is the all temperature in August
but i have Temperature for just 29 day in August then how i can divided on 31 ?
|
|
|
|
|
No, read what I said:
average = sum of samples / number of samples
That's not the same thing. If you have 29 samples, then dividing by 31 will give you the wrong average.
So each time you add a sample to the sum, you count the sample, and divde teh total by teh count, not by a "fixed value".
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Message Closed
modified 8-May-19 7:47am.
|
|
|
|
|
ohh its fine man i got it ... i thank you for your nice explantation
|
|
|
|
|
I refer to the reply which is written from OriginalGriff :
Average means : you build a sum of all entries in your List and divide this sum by the number (count) of the entries in your List.
For me that was very good pointed out from OG.
For this it is absolutely irrelevant how much entries are in the List - also it has nothing to do with the number of days in the month.
|
|
|
|
|
oh ja Ralf es geht jetzt .. danke für deine Message
|
|
|
|
|
I was going to start out by asking if this was a LINQ or non-LINQ question, but thought the better of it.
You're a saint.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Quote: days = entries[index].dateTime.Day;
Should have been
++days;
|
|
|
|
|
Not related to your problem, but to the code;
int index = entries.Count(); Why call the count-method, when you're using the .Count-property elsewhere?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|