Re: [Lazarus] Astronomy Software

2009-11-16 Thread Patrick Chevalley
Oops! sorry, just noticed Databases/Messier.txt

> - do you have a script to create the mysql database ?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-16 Thread Patrick Chevalley
Hi Terry,

> Because you could start 2.76 with the -f switch and it would start up
> viewing a specific object. That has not been implemented in the SkyChart 3.x
> as far as I know.

I am skychart author :-)
It is easy to add the -f switch to skychart v3 because the function
are already implemented for the tcp socket command interface.
You can also connect to this socket to send request to search for an object.
See http://www.ap-i.net/skychart/en/documentation/server_commands

I try to use Messier but I have a few problem.
- it look like you use an old TAchart version, in StatUnit I have to
change TAGraph.AddSerie by AddSeries , comment TPieSeries.SeriesColor
and MarksStyle and remove TAEngine from the uses. Now it compile with
fixes 0.9.28.
- do you have a script to create the mysql database ?

I am very interested by you program as it complement well the skychart
functions.
I can give some help for your project if you are interested but at the
moment I am very busy with the next version of the virtual moon atlas,
also ported from delphi to lazarus.

Patrick

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-16 Thread Marc Santhoff
Am Montag, den 16.11.2009, 00:37 +0100 schrieb Marc Santhoff:
> Am Sonntag, den 15.11.2009, 15:14 -0600 schrieb Phil Hess:
> > - "Matt Shaffer"  wrote:
> > 
> > > I understood his message to mean that he didn't want to use
> > > windows-only apps/code. I'm sure he'll port it to those systems, and
> > > if he doesn't, it's on sourceforge, so you could compile it yourself
> > > ;).
> > > 
> > > 
> > > I think a useful format for reports would be an image or an excel
> > > file, but working with excel files is never easy.
> > > 
> > 
> > Exactly. If there were an RTF equivalent for Excel files, that might be a 
> > good choice.
> 
> There is (has been) a format called DIF (data interchange format) and
> another one that i forgot about. In ancient times gnumeric and excel and
> others could read them both.
> 
> Maybe it's time for polishing up that old excel 4.0 and have a
> look ... ;)
> 
> http://en.wikipedia.org/wiki/Data_Interchange_Format

I remembered, the other one was SYLK.

http://en.wikipedia.org/wiki/SYmbolic_LinK_(SYLK)


> HTH,
-- 
Marc Santhoff 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Terry A. Haimann

John wrote:

Terry A. Haimann wrote:
For what it is worth I have created a project on SourceForge 
(http://sourceforge.net/projects/messier/) with my Astronomy Program. 
It is a basic Observing Planning and Logging Program. It is of course 
written in Lazarus (I converted it from Delphi) and got most of the 
Algorithyms from "Practical Astronomy with Your Calculator" By Peter 
Duffet-Smith.


There are two major things I would like to add to it:

1. Using a report generator instead of Printer.Canvas.TextOut 
Statements.
2. I would like to merge it with Planetarium Program. I could do this 
with Cartes Du Ciel 2.76, but not the newer SkyChart and since my 
primary audience is going to be Linux Users, I really don't want to 
use a Windows App.


I am curious to know why you can merge it with Cartes Du Ciel 2.76, 
but not 3. 0.x.x ? (I presume that is what you mean)


John
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Because you could start 2.76 with the -f switch and it would start up 
viewing a specific object. That has not been implemented in the SkyChart 
3.x as far as I know.


Terry

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread John

Terry A. Haimann wrote:
For what it is worth I have created a project on SourceForge 
(http://sourceforge.net/projects/messier/) with my Astronomy Program.  
It is a basic Observing Planning and Logging Program.  It is of course 
written in Lazarus (I converted it from Delphi) and got most of the 
Algorithyms from "Practical Astronomy with Your Calculator" By Peter 
Duffet-Smith.


There are two major things I would like to add to it:

1.  Using a report generator instead of Printer.Canvas.TextOut 
Statements.
2.  I would like to merge it with Planetarium Program. I could do this 
with Cartes Du Ciel 2.76, but not the newer SkyChart and since my 
primary audience is going to be Linux Users, I really don't want to 
use a Windows App.


I am curious to know why you can merge it with Cartes Du Ciel 2.76, but 
not  3. 0.x.x ?  (I presume that is what you mean)


John  


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Marc Santhoff
Am Sonntag, den 15.11.2009, 15:14 -0600 schrieb Phil Hess:
> - "Matt Shaffer"  wrote:
> 
> > I understood his message to mean that he didn't want to use
> > windows-only apps/code. I'm sure he'll port it to those systems, and
> > if he doesn't, it's on sourceforge, so you could compile it yourself
> > ;).
> > 
> > 
> > I think a useful format for reports would be an image or an excel
> > file, but working with excel files is never easy.
> > 
> 
> Exactly. If there were an RTF equivalent for Excel files, that might be a 
> good choice.

There is (has been) a format called DIF (data interchange format) and
another one that i forgot about. In ancient times gnumeric and excel and
others could read them both.

Maybe it's time for polishing up that old excel 4.0 and have a
look ... ;)

http://en.wikipedia.org/wiki/Data_Interchange_Format

HTH,
-- 
Marc Santhoff 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread JoshyFun
Hello Lazarus-List,

Sunday, November 15, 2009, 10:14:28 PM, you wrote:

PH> Exactly. If there were an RTF equivalent for Excel files, that might be a 
good choice.

Maybe fpspreadsheet ? Excel and ODS.

http://lazarus-ccr.svn.sourceforge.net/viewvc/lazarus-ccr/components/fpspreadsheet/

-- 
Best regards,
 JoshyFun


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Terry A. Haimann

Michael Van Canneyt wrote:



On Sun, 15 Nov 2009, Terry A. Haimann wrote:

For what it is worth I have created a project on SourceForge 
(http://sourceforge.net/projects/messier/) with my Astronomy Program. 
It is a basic Observing Planning and Logging Program. It is of course 
written in Lazarus (I converted it from Delphi) and got most of the 
Algorithyms from "Practical Astronomy with Your Calculator" By Peter 
Duffet-Smith.


There are two major things I would like to add to it:

1. Using a report generator instead of Printer.Canvas.TextOut 
Statements.
2. I would like to merge it with Planetarium Program. I could do this 
with Cartes Du Ciel 2.76, but not the newer SkyChart and since my 
primary audience is going to be Linux Users, I really don't want to 
use a Windows App.


You can always try lazreport. I have a cross-platform app working with 
it.


Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Thanks for the suggestions.

I have looked at RTF when it was a Delphi App. I found it would loose a 
couple lines of the report at page breaks, maybe the Lazarus Component 
is better. I have also looked at Lazreport, but don't know enough about 
how to do it. In the RiseAndSet Report, the select is exported into a 
binary tree for update and then sorting. I had to do this for 
performance and was unsure of how to import that into something like 
LazReport. As far as supporting a Windows version, there are already 
many apps that do this in Windows and a lot better then I can (Some for 
the Mac too. ) Most of them have huge databases (1 million + records) 
which I have no idea how to put together. The databases I have are 
pulled out of Excel Spreadsheets and messaged in MySQL. As far as 
importing into Excel/OO Calc, I have exported data to csv and then 
imported that, but its a lot of trouble for the user. I do that though 
for the standard report, which can be submitted to the Astronomical League.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Michael Van Canneyt



On Sun, 15 Nov 2009, Terry A. Haimann wrote:

For what it is worth I have created a project on SourceForge 
(http://sourceforge.net/projects/messier/) with my Astronomy Program.  It is 
a basic Observing Planning and Logging Program.  It is of course written in 
Lazarus (I converted it from Delphi) and got most of the Algorithyms from 
"Practical Astronomy with Your Calculator" By Peter Duffet-Smith.


There are two major things I would like to add to it:

1.  Using a report generator instead of Printer.Canvas.TextOut Statements.
2.  I would like to merge it with Planetarium Program. I could do this with 
Cartes Du Ciel 2.76, but not the newer SkyChart and since my primary audience 
is going to be Linux Users, I really don't want to use a Windows App.


You can always try lazreport. I have a cross-platform app working with it.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Phil Hess

- "Matt Shaffer"  wrote:

> I understood his message to mean that he didn't want to use
> windows-only apps/code. I'm sure he'll port it to those systems, and
> if he doesn't, it's on sourceforge, so you could compile it yourself
> ;).
> 
> 
> I think a useful format for reports would be an image or an excel
> file, but working with excel files is never easy.
> 

Exactly. If there were an RTF equivalent for Excel files, that might be a good 
choice.

Maybe images embedded in the RTF document, but the entire report as an image 
doesn't strike me as a good choice.

Another advantage to RTF (in addition to it being a text format) is that the 
user can then edit / add to the report - what a concept.

Thanks.

-Phil

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Matt Shaffer
I understood his message to mean that he didn't want to use windows-only
apps/code. I'm sure he'll port it to those systems, and if he doesn't, it's
on sourceforge, so you could compile it yourself ;).

I think a useful format for reports would be an image or an excel file, but
working with excel files is never easy.

On Sun, Nov 15, 2009 at 3:49 PM, Phil Hess  wrote:

> Terry,
>
> I've found that generating reports as raw RTF and then viewing them with
> your user's word processor is a good cross-platform solution and lets you
> use the full power of RTF, which is supported by all word processors. Tools
> are here:
>
> http://web.fastermac.net/~MacPgmr/XDev/XDevStatus.html#RTF
>
> On Mac it would be a lot easier since all you have to do is provide a print
> mechanism and the OS X Print dialog automatically gives you print preview
> and save to PDF, but the other platforms don't have that.
>
> Why limit your app to the teeny tiny world of Linux tinkerers? Don't you
> think the Win/Mac communities could benefit from your app? It's not really
> that difficult to maintain a single code base that supports Delphi on
> Windows and Lazarus on all platforms.
>
> Thanks.
>
> -Phil
>
>
>
> - "Terry A. Haimann"  wrote:
>
> > For what it is worth I have created a project on SourceForge
> > (http://sourceforge.net/projects/messier/) with my Astronomy Program.
> >
> > It is a basic Observing Planning and Logging Program.  It is of course
> >
> > written in Lazarus (I converted it from Delphi) and got most of the
> > Algorithyms from "Practical Astronomy with Your Calculator" By Peter
> > Duffet-Smith.
> >
> > There are two major things I would like to add to it:
> >
> > 1.  Using a report generator instead of Printer.Canvas.TextOut
> > Statements.
> > 2.  I would like to merge it with Planetarium Program. I could do this
> >
> > with Cartes Du Ciel 2.76, but not the newer SkyChart and since my
> > primary audience is going to be Linux Users, I really don't want to
> > use
> > a Windows App.
> >
> > Terry
> >
> > --
> > ___
> > Lazarus mailing list
> > Lazarus@lists.lazarus.freepascal.org
> > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Astronomy Software

2009-11-15 Thread Phil Hess
Terry,

I've found that generating reports as raw RTF and then viewing them with your 
user's word processor is a good cross-platform solution and lets you use the 
full power of RTF, which is supported by all word processors. Tools are here:

http://web.fastermac.net/~MacPgmr/XDev/XDevStatus.html#RTF

On Mac it would be a lot easier since all you have to do is provide a print 
mechanism and the OS X Print dialog automatically gives you print preview and 
save to PDF, but the other platforms don't have that.

Why limit your app to the teeny tiny world of Linux tinkerers? Don't you think 
the Win/Mac communities could benefit from your app? It's not really that 
difficult to maintain a single code base that supports Delphi on Windows and 
Lazarus on all platforms.

Thanks.

-Phil



- "Terry A. Haimann"  wrote:

> For what it is worth I have created a project on SourceForge 
> (http://sourceforge.net/projects/messier/) with my Astronomy Program. 
> 
> It is a basic Observing Planning and Logging Program.  It is of course
> 
> written in Lazarus (I converted it from Delphi) and got most of the 
> Algorithyms from "Practical Astronomy with Your Calculator" By Peter 
> Duffet-Smith.
> 
> There are two major things I would like to add to it:
> 
> 1.  Using a report generator instead of Printer.Canvas.TextOut
> Statements.
> 2.  I would like to merge it with Planetarium Program. I could do this
> 
> with Cartes Du Ciel 2.76, but not the newer SkyChart and since my 
> primary audience is going to be Linux Users, I really don't want to
> use 
> a Windows App.
> 
> Terry
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus