getquote-uk.py update

2009-02-23 Thread Mark Carter
Hi guys, The Brits amongst us have horrendous problems downloading prices from Yahoo, esp. if you want to download OEICS/Unit Trusts. It seems that Yahoo is constantly fiddling with the layout on the server, meaning that download scripts require ongoing maintenance. To that end, I post my

Re: For OS X users wanting to try out 3.0

2009-03-23 Thread Mark Carter
On 18 Mar, 08:47, John Wiegley jo...@newartisans.com wrote: The advantage here is that you don't have to build Boost, don't have   to install MacPorts to get GMP and MFPR, don't have to do anything.  A   multi-hour confusing build process is eliminated, and you can just run   Ledger right

Re: For OS X users wanting to try out 3.0

2009-03-25 Thread Mark Carter
2009/3/24 John Wiegley jwieg...@gmail.com: On Mar 24, 2009, at 5:20 PM, Mark Carter wrote: src/filters.cc:756: error: expected `)' before string constant Thanks, I've fixed it and will push in about 10 mins. Thanks John. I've managed to get a build now, so I'm keen to flex ledger's

Git branches

2009-03-25 Thread Mark Carter
Hi John, Git is something of a strange and mysterious beast to me, so forgive me if I've got things confused. At you page http://github.com/jwiegley/ledger/tree/master# you recommend that we do git checkout -b maint origin/maint I'm thinking that such a branch doesn't exist (??), because it

Re: Prices download deactivated?

2009-03-26 Thread Mark Carter
2009/3/25 John Wiegley jwieg...@gmail.com: On Mar 25, 2009, at 10:28 AM, Mark Carter wrote: Would I be right in thinking that it is no longer possible to download prices using ledger? It just hasn't been implemented yet for 3.0.  It's coming. ;) I had a look around the code, and I saw a file

Leopard build

2009-03-26 Thread Mark Carter
2009/3/26 David Pratt fairwinds...@gmail.com: Hi Mark. If you can send me a quick note when you have got it up I'd appreciate it. Many thanks. :( Alas, the magic died. I think I was tinkering with the folder from Ubuntu, which possibly helped set things up a bit. Unfortunately, I see that

Any Brits here (UTF-8 fun)

2009-03-28 Thread Mark Carter
Hi, I'm wondering if there's much of a British contingent here on ledger. Anyone owning up? I have been playing with the latest build of ledger. I have been encountering UTF-8 issues :( I think I'm right in saying that £ (poundsign) is ascii code Dec 163 - a single byte - but in UTF-8 encoding

Re: Leopard build

2009-03-28 Thread Mark Carter
2009/3/28 John Wiegley jwieg...@gmail.com: Just FYI: I do all of my Ledger builds with g++ 4.3 as well.  Neither of Apple's versions support full debug + pre-compiled headers. Well, that's good to know. I have encountered a couple of problems with ledger, so using a debugger seems like a

Re: RFE: @@ - allow negative costs

2009-03-28 Thread Mark Carter
2009/3/28 John Wiegley jwieg...@gmail.com: On Mar 28, 2009, at 10:03 AM, Mark Carter wrote: Error: A posting's cost may not be negative Excellent find!  I'll get on this shortly. Thanks. Hopefully you'll keep the @@ behavior consistent with @ . I'm delving a bit deeper in ledger

Re: Leopard build

2009-03-28 Thread Mark Carter
2009/3/28 David Pratt fairwinds...@gmail.com: Hi Mark. I appreciate this and your recommendations. Your version of autoconf and automake are up to date with ports. glibtool --version is 1.5.22 which is what came with my system. Current version is 2.2.6. Can your report glibtools  --version

Re: Leopard build

2009-03-28 Thread Mark Carter
2009/3/28 David Pratt fairwinds...@gmail.com: Hi Mark. This is what I anticipated. You are using current libtool - not the stale software apple bundled with the system. I just bought this a month ago. I am confident it will build with new autoconf. I am on a mac mini which is 32bit. I am not

Re: RFE: @@ - allow negative costs

2009-03-28 Thread Mark Carter
2009/3/28 David Pratt fairwinds...@gmail.com: oooh, a. John I can't wait !! I think we're all excited. Of course, some of us need to be able to build it first ;)

Discussion/bug about end/current dates

2009-03-29 Thread Mark Carter
Here's something I would like to open up for discussion. Suppose I have the ledger file example1.txt (attached) --- begin --- 2008/01/01 * Purchase Apple shares Equities1000 AAPL @ $2 Cash 2008/06/30 * Sell some Apple shares Equities-500 AAPL @ $2.5

Re: Discussion/bug about end/current dates

2009-03-29 Thread Mark Carter
2009/3/29 John Wiegley jwieg...@gmail.com: You are correct, this should be the behavior.  You've solved for me the mysterious of what the terminus variable meant in the 2.x sources, since I had failed to document it. :) Would you like me to have a crack at providing a patch for this?

Enabling debugging

2009-03-29 Thread Mark Carter
How do I enable debugging so that I see the DEBUG statements work?

Re: Any Brits here (UTF-8 fun)

2009-03-29 Thread Mark Carter
2009/3/29 John Wiegley jwieg...@gmail.com: In 3.0, the £ sign will not cause problems, provided your file is encoded with UTF-8. The weird thing is that my text editors seemed to fancy a switch between ASCII and UTF-8, creating all sorts of problems. Using a variety of editors from different

Re: Discussion/bug about end/current dates

2009-04-02 Thread Mark Carter
2009/4/1 John Wiegley jwieg...@gmail.com: This is a regression of 2.x behavior, so the priority for this is MUSTFIX. :) I'm very much looking forward to the new version of ledger. I have it compiling on Slackware now - it wasn't nearly as much of a struggle as I thought it was going to be.

Re: Opening balance for an income or expense account?

2009-05-01 Thread Mark Carter
2009/5/1 Derek Mahar derek.ma...@gmail.com: On May 1, 5:54 pm, Derek Mahar derek.ma...@gmail.com wrote: How do you specify an opening balance for an income or expense account? The specific case that I'm considering is how to specify the account opening balances as a result of a loan to a

Re: Opening balance for an income or expense account?

2009-05-02 Thread Mark Carter
2009/5/2 Derek Mahar derek.ma...@gmail.com: On May 1, 7:02 pm, Mark Carter alt.mcar...@googlemail.com wrote: If I wanted to close off the accounts at the end of Apr 2009, so that I started with a fresh PL account at 1 May, then I would shift all the PL items to the opening balance. So I

Re: Opening balance for an income or expense account?

2009-05-02 Thread Mark Carter
2009/5/2 Derek Mahar derek.ma...@gmail.com: Okay, I'll give it back: Cr Assets:Cash $10 Dr Expenses:Interest Adjustment $10 Correct? Yep. That works for me :)

Re: pythonic getquote update

2009-05-12 Thread Mark Carter
2009/5/12 Derek Mahar derek.ma...@gmail.com: On May 10, 5:07 am, Mark Carter alt.mcar...@googlemail.com wrote: Are you trying to get an idea of portfolio performance? If so, then I recommend using the fstats function, as it is based on cash flow, and is therefore able to provide a true rate