Re: [Lazarus] The future of desktop

2013-12-02 Thread Michael Schnell

lost in translation:


 simple compiler switch ... convert it (e.g.) in a cgi with a browser 
based remote GUI.


-Michael


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


Re: [Lazarus] The future of desktop

2013-12-02 Thread Michael Schnell

On 12/02/2013 10:55 AM, Mark Morgan Lloyd wrote:

 I think you're at risk of mixing layers again.

Of course you are absolutely right and I do know this.

But I replied to Microsoft being the inventor of the desktop we are 
using. And Microsoft does not use a  (publicly) defined X layer but that 
layer is an integral part of what is perceived as the thingy that holds 
the programs' GUIs (and might be called Desktop).


-Michael

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


Re: [Lazarus] The future of desktop

2013-12-01 Thread Michael Schnell

On 11/30/2013 09:08 AM, Martin Schreiber wrote:
IIRC I even made a MSEifi-remote demo-binary especially for you so 
that you could show the principle to your co-workers some years ago. ;-)


This is why I dared to mention it right now :-) :-) .

-Michael

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


Re: [Lazarus] The future of desktop

2013-11-29 Thread Michael Schnell

On 11/29/2013 10:39 AM, Michael Van Canneyt wrote:


Given that the average user has a reaction time of 1 second, polling 
every second

is really not an issue.


OK.  As you seem to have done a lot of research on that, I am looking 
forward to what you are going to come up with.


Thanks for your work,
-Michael

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


Re: [Lazarus] The future of desktop

2013-11-29 Thread Michael Schnell

On 11/28/2013 05:39 PM, Dmitry Boyarintsev wrote:
Even if LCL will start web target today, it will be 10 years later 
that LCL can be used without problems.

You don't seem to know what Michel v C and friends can do :-) :-)

-Michael

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


Re: [Lazarus] VST

2013-11-27 Thread Michael Schnell

On 11/26/2013 06:01 PM, Mark Morgan Lloyd wrote:


I've played with special-purpose MIDI filters in a DLL/so, but the 
only GUI element was that menu entries were copied from a form in the 
DLL to the main form. 


The Host program I use just requires that the VST plugin in fact does 
have a GUI. I suppose the VST API definition provides some means to 
integrate the VTS's GUI with the Host's GUI and same need to be decently 
provided.


At this point of time I also intend to do simple MIDI filters.


There's been a couple of threads in this list about VST, I presume 
that this is the SDK you mentioned above.
I seem to remember that I got mine from some other source, but 
supposedly it's the same header translation.





Below from an older thread:

 Christian Budde set up DelphiAsioVST
 (http://sourceforge.net/projects/delphiasiovst/) to help with VST
 development in Object Pascal. It has alot of classes which you can use,
 or you can just use Frederick Vanmol's translation of the SDK, and
 implement everything yourself.

 Over the last couple of years there have been some problems, but mostly
 you can use FPC now. However, at the moment these will only be able to
 use the host's default UI. I am mid flow sorting out the code so that a
 plugin can supply it's own UI, then full XPlatform VST development will
 be possible using Laz/FPC :-)


Did you play with the SDK in Delphi or did you in fact manage to get 
something decently running in FPC/Lazarus ?


It you really did, I would be very grateful, if you could provide me 
with some example code to get started.





Also:

- VST is in Lazarus-CCR, but an older v4 version. VST porting is 
hindered by

  not accepting changes (like a sane IFDEF system) upstream, which makes
  every port an one off change.



Here: http://sourceforge.net/projects/lazarus-ccr/?source=directory
I only see TZMSQL which obviously is some other beast.

and here http://svn.code.sf.net/p/lazarus-ccr/svn/components/

I don't see anything related to VST,

Can I search somewhere else ?


Thanks a lot,
-Michael



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


Re: [Lazarus] VST

2013-11-27 Thread Michael Schnell

My question was meant as:

Do you suggest that CCR should contain more than just TZMSQL.

Do you have an idea where I could find that additional content ?

-Michael

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


[Lazarus] VST

2013-11-26 Thread Michael Schnell

Did anybody ever do a VST plugin by means of Lazarus/fpc ?

==
A VST plugin is a DLL, that can receive and send MIDI and/or Audio data 
streams and features a GUI ( - 
http://en.wikipedia.org/wiki/Virtual_Studio_Technology ). There are 
hundreds of VST plugins (commercial and non-commercial) and there are a 
lot of (commercial and non-commercial) programs that can host such VST 
plugins, on Windows and on Mac.


The API of such DLL is defined (by Steinberg) as well for Windows as for 
MAC (but not for Linux), as well for 32 Bit as for 64 Bit systems. 
Steinberg provides a C SDK that allows for easily creating such VSTs.


Some years ago someone did a (freely available) Delphi SDK for creating 
32 Bit VSTs for Windows. I already tried same with Turbo Delphi and 
was able to get something working.

==

Question:
What about doing such VST plugins with Lazarus ?

In fact I would like to do some 64 Bit VSTs for Windows.

Are there any obvious problems to do that (e.g. porting the SDK to 
Lazarus, porting the API interface unit to 64 Bit and/or doing a DLL 
that provides it's stand alone GUI.)


Any comments ?
Thanks,

-Michael

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


Re: [Lazarus] Writing a Lazarus program with its own display, RFB?

2013-11-20 Thread Michael Schnell

On 11/20/2013 02:32 AM, vfclists . wrote:
 Thanks for the suggestions. By editing out most of the lines in 
~/.vnc/xstartup I have been able to make some progress

What progress exactly ?

Still I don't know what you are up to:
 - remoting your Lazarus program's GUI  in _some_ way (VNC is just one 
convenient option)
 - remoting your Lazarus program's GUI  (VNC is a must. Because of what 
reason ??? )
 - have you program create a graphical object independent from it's 
Lazarus GUI, and have a remote PC view this object via VNC.


??
-Michael

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


Re: [Lazarus] Writing a Lazarus program with its own display, RFB?

2013-11-20 Thread Michael Schnell

On 11/20/2013 01:29 PM, vfclists . wrote:



My question was to see if the third option is possible with Lazarus, 
ie whether it is possible to get Lazarus screen output to be targetted 
at a VNC compatible system,
??? Handling the  Lazarus screen output is just the contrary of the 
third option.



but I think that is outside my knowledge and skill level.
In fact the third option is the easiest to do (unless you find something 
already functional for another option).



So the option I have settled for is the first.
This _is_ in fact already functional, in multiple ways of desktop 
remoting, including native X11 via TCP/IP, NX, VNC, Windows Remote 
Desktop, ... (and has nothing to do with Lazarus itself or the program 
you are doing at all).


-Michael


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


Re: [Lazarus] Writing a Lazarus program with its own display, RFB?

2013-11-19 Thread Michael Schnell

On 11/19/2013 01:30 AM, vfclists . wrote:


I want to write a program to provide its own remote display without an 
X Window server, ie the program has its own display which can be 
connected to via VNC server.
VNC server (in Linux) does provide an X server. So this should not be a 
problem of Lazarus, but of setting up the runtime environment appropriately.


-Michael.

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


Re: [Lazarus] Writing a Lazarus program with its own display, RFB?

2013-11-19 Thread Michael Schnell

On 11/19/2013 10:41 AM, Michael Schnell wrote:

On 11/19/2013 01:30 AM, vfclists . wrote:


I want to write a program to provide its own remote display without 
an X Window server, ie the program has its own display which can be 
connected to via VNC server.
VNC server (in Linux) does provide an X server. So this should not be 
a problem of Lazarus, but of setting up the runtime environment 
appropriately.

Second thought:

You of course can do a program that opens a TCP/IP server socket and 
uses the (supposedly decently documented) VNC protocol on same. I 
understand this is rather easy if you just want to provide a rectangle 
of pixels (independent from the program's GUI) and have it displayed by 
the VNC client on a PC.


If you want to remote the GUI of the Program without a trace of an 
X-Server (thus without using the VNC-Server product, but via a TCP/IP 
socket of your program itself), this might be possible by enhancing the 
CustomDrawn Widget Type appropriate. But supposedly this is a lot of 
work to do.


-Michael

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


Re: [Lazarus] Writing a Lazarus program with its own display, RFB?

2013-11-19 Thread Michael Schnell

On 11/19/2013 11:23 AM, Felipe Monteiro de Carvalho wrote:
You could implement it as a new backend for LCL-CustomDrawn: 
http://wiki.freepascal.org/Custom_Drawn_Interface 


Looking at this page triggers long-wanted stuff:

 - a HTML backend that is able to be attached via HTTP (directly or via 
e.g. fastGCI or Microsoft IIS/ISAPI)
 - a remote backend that implements a propriety bi-directional 
byte-stream protocol that on the other site of the pipe can be attached 
by a Lazarus program serving as a Custom-Drawn-Viewer


Is something like this planned in the foreseeable future ?

Maybe one of these in effect is what the OP wants and VNC was just a 
variant that could be considered.


-Michael


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


Re: [Lazarus] DateDif function needed

2013-11-18 Thread Michael Schnell

On 11/16/2013 06:40 PM, Michael Van Canneyt wrote:


I think it's fairly simple, really. ...


This does make some sense, even for me :-)

-Michael

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


Re: [Lazarus] DateDif function needed

2013-11-15 Thread Michael Schnell

On 11/14/2013 04:06 PM, Frederic Da Vitoria wrote:


-1

Well, everyone is entitled to his opinions, right, else we would all 
be doing C :-)


In fact I consider it a waste of bandwidth to discuss a problem that 
obviously is not solvable at this length. (But who am I do complain 
about that :-[ .)


-Michael

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


Re: [Lazarus] DateDif function needed

2013-11-14 Thread Michael Schnell

On 11/14/2013 03:46 PM, Frederic Da Vitoria wrote:



.. and where are we now??


Right in the middle of a very interesting discussion :-)



-1

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


Re: [Lazarus] DateDif function needed

2013-11-13 Thread Michael Schnell

On 11/14/2013 07:19 AM, Jürgen Hestermann wrote:


But this it totaly wrong.
As is defining a meter by the count stretched rubber bands: 1 2, 3, 4 or 
5  All numbers are true and all are wrong :-) :-) :-)


-Michael

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


Re: [Lazarus] DateDif function needed

2013-11-11 Thread Michael Schnell

On 11/08/2013 09:35 PM, John Landmesser wrote:


Result would be: 0 years, 0 moths, 11 days
IMHO a date diff in this format us desperately misleading, as the count 
of days in a month varies.


-Michael

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


Re: [Lazarus] DateDif function needed

2013-11-11 Thread Michael Schnell

On 11/11/2013 04:46 PM, John Landmesser wrote:



Giving up and using the Jedi DateDif function.


What is the problem with that-

IMHO such extraordinary functions should be provided by such highly 
specialized libraries.


-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-23 Thread Michael Schnell

On 10/22/2013 03:21 PM, Bart wrote:
string theory is a theoretical framework in which the point-like 
particles of particle physics are replaced by one-dimensional objects 
called strings.
And it's grade of complexity resembles that of Unicode ;-) . And, 
IMHO,both can be avoided in (my) every-day life unless in the rare cases 
I am especially interested in the things they are invented for.


-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-23 Thread Michael Schnell
I forgot to mention that in fact I like to busy myself both with Unicode 
Strings handling in Pascal and with String theory in theoretical 
physics.Otherwise I would not take part in this discussion.)


But in every-day life - mostly because of Unicode - I prefer using the 
old Turbo-Delphi rather than Lazarus.


-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-22 Thread Michael Schnell

On 10/22/2013 10:24 AM, Sven Barth wrote:
I didn't know until around 1 or 2 years ago that  and  are 
supported on strings at all


Nice try O:-)

-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-22 Thread Michael Schnell
I get the feeling that _Closed_/_Open_Strings_ (- 
http://en.wikipedia.org/wiki/String_theory#Strings ) are easier to 
understand and of more practical use than _Unicode_Strings_ .


Thus an IDE / Language / Library that not completely hides the 
complexity behind Unicode (and it's different encoding schemes) should 
provide a non-Unicode Mode that allows for happy programming (at least 
in Europe, America and Australia).


-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-21 Thread Michael Schnell

On 10/18/2013 06:16 PM, Jürgen Hestermann wrote:


Who claims this?

Sorry if I over-interpreted your wording.



 If this is not the case, why then use Unicode ?

I thought Unicode is just for international *coding* of characters but 
not for sort order definition.


In a Unicode aware programming language, the handling of Unicode encoded 
strings needs to provides compare (besides many other string operation, 
potentially including conversion between multiple Unicode and 
non-Unicode encoding schemes. )


If string compare only allows for equal vs not equal results (in 
some imaginary language) this is complicated enough, as there can be 
multiple different encodeings for the same visual  character. 
Additionally, it might be viable to do a case aware and/or a not case 
aware operation. To me it's not clear what case aware might mean with 
characters for ancient Egyptian language,


If string compare also allows for greater vs smaller results the 
programming language needs to impose some sort order (and maybe a lot 
more locale-depending complex algorithms). This to me seems horribly 
complicated. Rather obviously you can't define a natural sort order for 
the complete set of Unicode characters. Thus a kind of localization is 
necessary and supposedly needs to be selectable/definable by the user 
via locale or whatever.


-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-21 Thread Michael Schnell

On 10/21/2013 01:00 PM, Jy V wrote:


this is the purpose of Collations


I see:

http://www.unicode.org/reports/tr10/

As expected: horribly complicated.

-Michael

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


Re: [Lazarus] UTF8 string compare with correct locale sorting

2013-10-18 Thread Michael Schnell

On 10/17/2013 09:56 PM, Hans-Peter Diettrich wrote:

Jürgen Hestermann schrieb:

I fully aggree on this

http://www.utf8everywhere.org/


 When they can be located there, a wrapper can be added to the RTL.


The OP seems to clam that with Unicode, localization is obsolete.

If this is not the case, why then use Unicode ?
- Michael

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


Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-16 Thread Michael Schnell

On 10/15/2013 09:41 PM, silvioprog wrote:


No. Lazarus from trunk must accept FPC from trunk too.


(On Linux) I very often compile the trunk Lazarus using the trunk fpc 
(which I previously compile using the recent released fpc).


It _usually_ works. Sometime it does not compile due to a commit that 
broke something, but mostly a day or two later the problem is fixed.


-Michael

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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-16 Thread Michael Schnell

On 10/15/2013 03:48 PM, Hans-Peter Diettrich wrote:


VirtualBox does not support 16 bit OS (MS-DOS...);


IIRC, we did use 16 bit clients as well in VMWare as in VBox.

-Michael

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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-16 Thread Michael Schnell

On 10/16/2013 04:34 AM, Hans-Peter Diettrich wrote:


C certainly is not safe enough for beginners, and has too few data types.
Java script IMHO is horribly unsafe and has no (strict) data types. As 
it _is_ recommended for beginners. (Not a good choice at all, IMHO.)


-Michael

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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-14 Thread Michael Schnell

On 10/12/2013 09:18 PM, wkitt...@windstream.net wrote:

Students tend to overfocus on embellishing forms etc, and not spending
their time on the more problem-solving oriented assignment.

IMHO the contrary is true.

Using Delphi (or Lazarus) you can concentrate on the problem solving , 
while doing status outputs and only-for-testing inputs is nearly for free.


You can argue that this (RAD) leads to being trained to do bad software, 
as for a _final_product_ it is much better to separate GUI oriented 
units from Business logic units (as this allows for better portability 
and easier maintenance).


But this is a completely different argument.

-Michael

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


Re: [Lazarus] Graeme would love this, or not, I think

2013-10-14 Thread Michael Schnell

On 10/12/2013 01:36 PM, Marco van de Voort wrote:
Probably because dolling up the UI is easier and gives 
instant-gratification


Better than frustrating the weaker students with no gratification at all.

-Michael

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


Re: [Lazarus] String with °

2013-10-10 Thread Michael Schnell
As Lazarus works with UTF8, and the string functions like pos and 
delete count bytes rather than (visible) characters, you can't use the 
visible character position for these functions.


-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-30 Thread Michael Schnell

On 09/27/2013 06:53 PM, Graeme Geldenhuys wrote:

The bad news ...


What we always do for complex (and free running) CGI applications is do 
a miniature CGI program that is perfectly normal and does implements 
nothing but a communication with a Daemon / Service that always runs and 
does the real work. With this construction debugging and on site 
maintenance of the application can be done with normal means.


Moreover any HTTP server can easily be adapted to and (if using TCP/IP 
for the said communication) the complex application can be installed in 
a different (virtual) machine (even using a different OS) than the 
HTTP-Server. (My colleagues do this using Delphi.)


-Michael


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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-25 Thread Michael Schnell

On 09/24/2013 10:58 AM, Nikolay Nikolov wrote:


When you try to create a thread, your program terminates and writes a 
message that threading is not supported.


While this absolutely does make sense, one could think about alternatives.

AFAIK, (at least for some archs) there is a variant of the pthread 
(=POSIX thread) library, that internally does user-land 
multithreading. IIRC, the original POSIX definition was done with 
exactly this in mind and, regarding Linux, the original Linux 
implementations (aka Linux Threads)  was not fully compatible with 
POSIX. Only some years ago, the Linux changed it's way of Kernel-based 
thread handling to the POSIX compatible NPTL implementation.


Thus it should be possible to link fpc projects to a user-land thread 
enabled version of pthreadlib and allow for working with TThread in DOS.


-Michael

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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-25 Thread Michael Schnell

On 09/25/2013 10:51 AM, Hans-Peter Diettrich wrote:


Do you mean DOS as a (16 bit) OS, or as a DOS-Box (terminal)?


Of course limited to a DOS box this would make no sense at all.

I did not do a research on in what environments such pthreadlib could 
work. I suppose you need a 32 bit DOS extender.


-Michael

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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-25 Thread Michael Schnell

On 09/25/2013 12:20 PM, Reinier Olislagers wrote:

You do know there already is a GO32v2 compiler?
I suppose same does create 32 bit code usable in a DOS-alike 
environment, and thus could be a target for allowing linking to an 
internal-user-land-thread enabled version of pthreadlib (while I don't 
think anybody ever bothered to do a 16 bit version of such a library.


-Michael

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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-25 Thread Michael Schnell
More than 15 Years ago I on DOS did do the first tests for my preemptive 
multitasking library  (in C), that that finally works (up til now) in an 
68K product. :-)


-Michael

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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-25 Thread Michael Schnell

On 09/25/2013 01:00 PM, Nikolay Nikolov wrote:


Real mode or DPMI? IMHO, real mode is doable, DPMI - not so much (at 
least not without using a certain DPMI host with special modifications).


Did DPMI even exist at this time ?

IIRC it was a native 8088 chip - http://en.wikipedia.org/wiki/Intel_8088

-Michael

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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-25 Thread Michael Schnell

On 09/25/2013 01:39 PM, Nikolay Nikolov wrote:

15 years ago is 1998, so yes. Maybe it was even earlier?

Probably.

In fact, 15 years ago the product using the 68K version of the library 
was released.


-Michael

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


Re: [Lazarus] Why development remains constant for msdos?

2013-09-24 Thread Michael Schnell

On 09/22/2013 10:40 PM, wkitt...@windstream.net wrote:
yes, there are still quitet many DOS systems out there... there's even 
freeDOS and similar FOSS(?) DOS projects... some of them are even 
32bit and can use all available memory like other OSes of today ;)



How does fpc for DOS handle TThread ?

Just curious...
-Michael

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


[Lazarus] (no subject)

2013-09-20 Thread Michael Schnell

Hi experts,

Using (nearly) the current trunk fpc, when checking out Lazarus and 
doing make clean all  get:


..
Compiling debugmanager.pas
debugmanager.pas(63,3) Error: Duplicate identifier GDBMISERVERDEBUGGER
debugmanager.pas(63,3) Error: Duplicate identifier GDBMIServerDebugger
...
make: *** [ide] Error 2

What am I doing wrong ?

Thanks,
-Michael


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


[Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

On 09/20/2013 10:35 AM, Mattias Gaertner wrote:

It works here. Maybe you were unlucky and got a bad revision.


Seems so. :-(

I deleted trunk and re-checked-in everything.

After that make did work without an error message.

But when starting the newly created ide, now I get a message that it 
can't find the ide sources.


I did check that the directory it assumes ( /trunk/ide ) in fact does 
contain lazarus.lpi as suggested.


any more pointers ?

Thanks,
-Michael

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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

  
  
On 09/20/2013 11:46 AM, Mattias
  Gaertner wrote:


  The IDE needs the lazarus sources, not only the ide sources.


Of course. 

"It says "the Lazarus Directory contains the sources of the ide and
the package files.."



-Michael
  

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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

On 09/20/2013 12:08 PM, Mattias Gaertner wrote:

Does your folder contain a file ide/lazarus.lpi?

yep:

mschnell@mschnell-Linux:~/Downloads/svn/lazarus/trunk/ide ls -l 
lazarus.lpi

-rw-r--r-- 1 mschnell users 32253 Sep 20 10:57 lazarus.lpi


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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

On 09/20/2013 12:18 PM, patspiper wrote:

Shouldn't that have been ../svn/lazarus/trunk?


Yep.

The ide was too much :-(

No idea how this happened ?!?!?!?

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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

  
  
Grrr 

After browsing to the correct folder, it did start, but it threw an
exception when loading a recent project.

When restarting I now get:





Seemingly it changed the path I browsed to into a relative path. But
that does not seem to work correctly.

-Michael
  

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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

On 09/20/2013 12:39 PM, Mattias Gaertner wrote:
I don't know any place in the IDE where the Lazarus directory is 
changed to a relative path.


I gather I did change it after - because of the failed checkout - I git 
the error message the first time.


But I understand I did now correctly browse to the /lazarus 
directory, and it does not work nonetheless.


-Michael

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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

On 09/20/2013 01:41 PM, Mattias Gaertner wrote:

Your screenshot says the directory lcl was not found.
Is it there?



Yep:

mschnell@mschnell-Linux:~/Downloads/svn/lazarus/trunk ls -l lcl
total 4108
-rw-r--r--  1 mschnell users  12948 Sep 20 10:58 actnlist.pas
-rw-r--r--  1 mschnell users   1787 Sep 20 10:58 alllclunits.pp
-rw-r--r--  1 mschnell users   5565 Sep 20 10:58 arrow.pp
-rw-r--r--  1 mschnell users   3057 Sep 20 10:58 asyncprocess.pp


But you are right. This screenshot showed that it was searched for 
within the lazarus directory and not within the lazarus/trunk dir.


Seemingly the setting it has not been saved correctly due to the crash.

Now it works. after I left lazarus before I tried to load a recent 
project and got a crash.



After another checkout the ide crash is gone, as well.

Thanks for your help (In fact I should more thoroughly read the error 
messages :-[ )


-Michael

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


Re: [Lazarus] can't compile newest svn version

2013-09-20 Thread Michael Schnell

On 09/20/2013 03:06 PM, Graeme Geldenhuys wrote:
Incidentally, I got the exact same error when I downloaded the latest 
Lazarus Trunk.


Nice to hear that it is not just silly me

-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/18/2013 05:54 PM, Sven Barth wrote:
 http://wiki.lazarus.freepascal.org/Lazarus_1.2.0_release_notes#IDE_Changes 
current 1.1 versions support attaching to a running process.


The page also states that remote debugging with gdbserver is supported.

Dis anybody get this running for a PC as desktop workstation and a 
ARM-Linux target ?


(Some months ago we unsuccessfully tried to...)

-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 09:35 AM, Martin wrote:


Does gdb suppor asyncronous mode for this target?

I don't know.
We tried to attach to gdbserver via TCP/IP.


e.g can you

 gdb -i mi

-exec-continue 


I did not do this myself, but a pal of mine from the German Lazarus 
forum did these tests. So I can't comment.


In fact I preferred to try to make working to have Lazarus remotely 
attach to a full gdb on the target via SSH. (When I last looked at it 
there ware some disabled lines of code for this in the Lazarus sources.




and while running
interrupt
?


AFAIK, gdbserver does not support interrupting a running program. That 
is one of the causes why I prefer the SSH way of remote debugging. The 
other is that for all targets you can easily get a native gdb out of the 
box, while it might be rather tedious to install all the tools to create 
the appropriate gdbserver on the target and the cross-gdb executable on 
the PC you need to attach to it.




You can always send me a log file.
Thanks a lot. I'll try to re-open the dialog with my pal from the German 
forum...



Also check, please: on my tests, to run gdb asyncrounus in a 
gdbserver, the -exec-run (or r) command was NOT used (would not work) 
but -exec-continue was used.


Is that the case for your target too?


The target (both for me and my pal) is a gui-less NAT by QNAP.

I was able to (on a Linux PC) build a native fpc compiler for that 
target and use it there to compile a (in fact productive) program I 
before developed and tested on a Linux PC.


My pal was able to create a cross-fpc for that target and he said same 
was able to compile a testing program that ion fact did run on the target.


-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 12:08 PM, Martin wrote:



The other is that for all targets you can easily get a native gdb out 
of the box, while it might be rather tedious to install all the tools 
to create the appropriate gdbserver on the target and the cross-gdb 
executable on the PC you need to attach to it.

Try it, send a log, if not working


He told me that he d/lded and installed the complete ARM SDK by Code 
Sourcery (several gigabytes, including Eclipse etc) and only after that 
he was able to create the fpc cross compiler and the remote 
gdb/gdbserver pair.


He was up to create a paper on how to do this for pushing it in the 
Lazarus wiki. But for this a more convenient way to get the tool suite 
would have been appropriate.


He tried to find such a way, but never again, he was able to compile 
gdb/gdbserver. So he seems to have given up.



Was he the one who created the above bug?

No, he is from Austria, not from Russia. :-)
 If not, please create a new one. The old one contains a lot of solved 
issues (and some unsolved). So it is time consuming to go through it.


Hopefully, one day soon I might be able to get on this issue Then 
I'll be back.


-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 12:27 PM, Michael Schnell wrote:
typo: he never again was able to compile gdb/gdbserver.
-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 12:27 PM, Michael Schnell wrote:

He was up to ... pushing it in the Lazarus wiki.
In fact he did start to write a report in German, and I promised to 
translate it for the Wiki, once it is done, and enhance it on how to use 
the SSH-Remote debugging.


-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 12:38 PM, Reinier Olislagers wrote:
Sounds like an inefficient process. Why doesn't he just upload a 
German version to the German version of the/a wiki page so the text is 
already there and anybody that speaks German  English can help 
translate it... 


OK, if we do have something appropriately installable and working I'll 
see that we do both German and English wiki pages.


-Michael

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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 02:20 PM, Graeme Geldenhuys wrote:


OK, I got the latest Lazarus from Trunk and compiled it with FPC 2.6.2
and using GDB 7.2 under Win2000 (a VM).


Good man.

Doing this I just got (on Linux):

Compiling debugmanager.pas
debugmanager.pas(63,3) Error: Duplicate identifier GDBMISERVERDEBUGGER
debugmanager.pas(63,3) Error: Duplicate identifier GDBMIServerDebugger


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


Re: [Lazarus] Can Lazarus IDE debugger attach to already running process?

2013-09-19 Thread Michael Schnell

On 09/19/2013 03:09 PM, Michael Schnell wrote:
Ooops:

I was using fpc 2.7.1.

Anyway.

-Michael

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


Re: [Lazarus] Threads

2013-08-27 Thread Michael Schnell

FTimeOut needs to be (a lot) lower than MAX_DELAY.

-Michael

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


Re: [Lazarus] SynEdit Development Status

2013-08-27 Thread Michael Schnell

On 08/27/2013 11:21 AM, Martin wrote:


And feel free to ask.


As we are at this issue a slightly off-topic question:

For a rather simple program we use TMemeo as an editor for information 
that is displayed and stored in an HTML file.


So we extract the appropriate text lines from the file, have the user 
edit it in a TMemo and finally re-insert it in the HTML file.


We don't need any complex formatting, just text that is organized as 
multiple paragraphs.


Now a problem is, that Memo.Lines outputs any text line as a single 
paragraph and thus it its close to impossible to keep the correct 
paragraph structure during the process (without forcing the user to do 
special stuff such as using blank lines a paragraph indicators).


Could SynEdit help with this problem ?

Thanks,
-Michael


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


Re: [Lazarus] SynEdit Development Status

2013-08-27 Thread Michael Schnell

On 08/27/2013 11:36 AM, Martin wrote:


SynEdit keeps lines a they are (unless of course you press enter).
Meaning that when editing, automatic line-wrapping in the window is (can 
be) performed, but the line-wraps are not seen when retrieving the 
paragraphs (aka lines) ?


But it has no word wrap. So long lines are just that: long.


I would not need word wrapping.

So I'll give it a try.-

Thanks,
-Michael

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


Re: [Lazarus] Rebuild Lazarus everytime to have Zeos !

2013-08-26 Thread Michael Schnell

On 08/23/2013 07:05 PM, Gugui wrote:
after install Zeos I need to rebuild Lazarus to Zeos components shows 
up !


During the package installation, recompiling should be triggered rather 
automatically. So I don't think it is a disadvantage.


-Michael

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


Re: [Lazarus] Shell notifications

2013-08-21 Thread Michael Schnell

On 08/20/2013 02:56 PM, Henry Vermaak wrote:

... together with select()..


In Object Pascal I think this should be encapsulated in a thread and 
same fires a main Thread event (via TThread.Queue, TThread.Synchronize, 
or Application.QueueAsyncCall) to notify the user (aka Main Thread).


-Michael


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


Re: [Lazarus] Shell notifications

2013-08-21 Thread Michael Schnell

On 08/21/2013 02:36 PM, Mark Morgan Lloyd wrote:
I know it's the obvious way, but surely there is something more 
elegant than having a thread which exists solely to transfer the 
result of a select() to the main part of the app, and then repeats 


I suppose a thread is the only way to do this in a portable way.

The cost of a thread is close to zero. It just blocks in the requests 
and does a single turn for any change.


-Michael

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


Re: [Lazarus] Broadway server

2013-08-19 Thread Michael Schnell

On 08/18/2013 12:30 PM, patspiper wrote:


GTK3 along with broadway allows HTML5 enabled browser users to run 
applications on remote servers, essentially creating a kind of web apps.




This sounds extremely interesting to me.

Since ages I am searching  for an easy method to do Lazarus 
applications for headless embedded devices (with no GUI hardware and/or 
GUI software infrastructure), in a way that for service operation a user 
can attach to the device via TCP/IP (at best) without using any  
pre-installed dedicated software.


-Michael

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


Re: [Lazarus] Delphi for Android

2013-08-15 Thread Michael Schnell

On 08/15/2013 11:34 AM, Sven Barth wrote:


Another article a few days back said that it's FireMonkey like on iOS.

This was rather obvious in the article: will have the same set of 
components and visual controls of its iOS counterpart.


-Michael

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


Re: [Lazarus] Delphi for Android

2013-08-15 Thread Michael Schnell

On 08/15/2013 11:50 AM, Sven Barth wrote:


FireMonkey is working more like our CustomDrawn widgetset.


I never got Custom Drawn running, yet (maybe because I insist on using 
the here restricted Lazarus GUI designer).


I need to give it another try.

-Michael

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


Re: [Lazarus] SSH

2013-08-05 Thread Michael Schnell

On 08/02/2013 07:10 PM, Richard Mace wrote:
On 2 August 2013 09:12, Michael Schnell mschn...@lumino.de 
mailto:mschn...@lumino.dewrote:


On 08/01/2013 05:20 PM, Richard Mace wrote:

... as many of my users will have never even seen a Linux
command line before :)


What exactly are you up to?

We still don't know how the targeted setup is supposed to be.

E.g.
 - a Windows computer in a company network that can access a Linux
box in the server room with the IT department managing the
installation of any software on trhe users desktop
 - you send your software to a dummy user somewhere in the world
and he is supposed to install and run it and access a Linux box
via the Internet.


I need it to be as standard and easy as possible to copy files to and 
from a Windows box to a Linux server, one that has been freshly built 
for the task., and would have probably have been built by an IT gut 
that would be able to make sure that SSH is configured through the 
firewall.
I'm expecting that most of the time, the Linux box will be on the 
local network, so ssh should be fine. If I went down the samba, I 
would need additional configuration setup, which could put barriers in 
the way of using my software for no reason?


With the first obviously CIFS (aka Samba) is the way to go: Easy
stuff, as you program just calls the file operations provided by
the RTL.

With the second example easy software s not really possible:
 - at best only your program should be installed and no additional
components such as Putty, VPN, dlls done in C, ... should be
necessary to be installed and no manual setup of SSH key should be
necessary
that means the complete protocol should be managed by (Pascal)
software
 - the user might sit behind a firewall that forbids any protocol
other than the use of of HTTP(S) and requires the use of a proxy
server.
 - if you need encryption (such as HTTPS) you supposedly need an
SSH key provider server (either locally on the Linux box or
officially certified)

In that case I recommend using http (or https) upload (AFAIK, this
is available with Synapse).
Of course here you need to configure the Linux box to have a HTTP
server and provide the upload service.


-Michael


I have currently got SSH working, by creating a TProcess in Lazarus 
and calling pfstp to copy the file to and from the Linux box, and the 
pslink to run a command on the Linux box.





Where do pfstp and pslink come from ?

It would be great to see these (or similar stuff) in TCP/IP libraries 
such as Synapse.


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


Re: [Lazarus] SSH

2013-08-05 Thread Michael Schnell

On 08/05/2013 10:11 AM, Reinier Olislagers wrote:

Sigh. Putty. Richard mentioned that in his first post.
I did suppose so, but neither pfstp nor pslink has been mentioned before 
Richards last post:
I have currently got SSH working, by creating a TProcess in Lazarus and 
calling pfstp to copy the file to and from the Linux box, and the pslink 
to run a command on the Linux box.



And he did say that he did not like the idea of installing anything on 
the Windows box to make his System run.


(In fact he might consider to put the pfstp and  pslink executables 
in a resource, but that might be problematic due to user rights on Windows.




http://synapse.ararat.cz/files/contrib/sftp.zip



http://en.wikipedia.org/wiki/SFTP_%28disambiguation%29: Is SFTP here 
really Secure FTP (via SSH)  ( 
http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol ) or rather 
Simple FTP ? ( 
http://en.wikipedia.org/wiki/Simple_File_Transfer_Protocol )


Rather ambiguous naming :(.

-Michael



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


Re: [Lazarus] SSH

2013-08-02 Thread Michael Schnell

On 08/01/2013 05:20 PM, Richard Mace wrote:
... as many of my users will have never even seen a Linux command line 
before :)


What exactly are you up to?

We still don't know how the targeted setup is supposed to be.

E.g.
 - a Windows computer in a company network that can access a Linux box 
in the server room with the IT department managing the installation of 
any software on trhe users desktop
 - you send your software to a dummy user somewhere in the world and he 
is supposed to install and run it and access a Linux box via the Internet.


With the first obviously CIFS (aka Samba) is the way to go: Easy stuff, 
as you program just calls the file operations provided by the RTL.


With the second example easy software s not really possible:
 - at best only your program should be installed and no additional 
components such as Putty, VPN, dlls done in C, ... should be necessary 
to be installed and no manual setup of SSH key should be necessary

that means the complete protocol should be managed by (Pascal) software
 - the user might sit behind a firewall that forbids any protocol other 
than the use of of HTTP(S) and requires the use of a proxy server.
 - if you need encryption (such as HTTPS) you supposedly need an SSH 
key provider server (either locally on the Linux box or officially 
certified)


In that case I recommend using http (or https) upload (AFAIK, this is 
available with Synapse).
Of course here you need to configure the Linux box to have a HTTP server 
and provide the upload service.



-Michael

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


Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell

On 08/01/2013 08:56 PM, Richard Mace wrote:


How can I get the path of where my application is running from?
I have tried Application.Name

Application.ExeName

but Application is not found?


Application is only available when using appropriate WidgetTypes. 
Not when doing simple command line tools.


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


Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell

On 08/02/2013 10:32 AM, Michael Van Canneyt wrote:

On Fri, 2 Aug 2013, Michael Schnell wrote:

On 08/01/2013 08:56 PM, Richard Mace wrote:
Application is only available when using appropriate WidgetTypes. 
Not when doing simple command line tools.

It is if you use TCustomApplication from custapp.
This _is_ a (on that behalf)  appropriate WidgetType (for a non-GUI 
Application) :-)


-Michael

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


Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell

On 08/02/2013 11:07 AM, Michael Van Canneyt wrote:
Widget types do not even enter the picture, customapplication is 
included in FPC, not Lazarus.




I see. Thanks.

So you suggest deriving and instantiating a propriety application from 
the TCustomApplication class ?


Will that automatically provide the correct string as 
MyApplication.ExeName ?


I thing just using the Lazarus NoGUI Widget Type is more appropriate.

-Michael

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


Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell

On 08/02/2013 11:57 AM, Michael Van Canneyt wrote:
So you suggest deriving and instantiating a propriety application 
from the TCustomApplication class ?

I don't suggest anything. I just react on incorrect information.

I see. Thanks for the clarification .



Will that automatically provide the correct string as 
MyApplication.ExeName ?

Yes.


Great. I thought TCustomApplication would be rather abstract.


I thing just using the Lazarus NoGUI Widget Type is more appropriate.


No, for 2 reasons:

1) It creates unwanted dependencies. 2) It creates the illusion of 
functionality which isn't actually there.


Sooner or later it will bite you in the leg.


OK.

In fact I decently dislike NoGUI as it does not provide an event queue 
for things like TTimer and thus is not comparable with really 
functional WidgetTypes.


But unfortunately there is no functional Widget Type for command line 
applications.


Of course as I understand that the OP want to do a project dedicated to 
Windows, he just could do a normal Application and hide the Main Window.


-Michael

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


Re: [Lazarus] Path that .exe file is running from

2013-08-02 Thread Michael Schnell

On 08/02/2013 01:15 PM, Sven Barth wrote:
Application.ExeName is a rather abstract functionality (in the end it 
just works with ParamStr(0) anyway...).
Grrr. I meant it might be property that calls an abstract  function to 
force siblings to implement it. (TCustom... classes are often done like 
that)


-Michael

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

On 08/01/2013 07:48 AM, Richard Mace wrote:
I am needing to add the ability to my Lazarus application to copy 
files to a linux server.
Assuming that my application will be run on Windows, what's the best 
way of copying files to and from a Linux box?
Ignoring  the Subject I's just recommend a file sharing protocol such as 
CIFS.


But if you need to use SSH, I do know how this might work (i.e. you need 
to start (e.g.) cp on the target via SSH), but I don't know any pascal 
code that uses SSH.


I've heard that the pgp command in putty might work, but I was just 
wondering if there was a component for Lazarus that would make things 
easier?



Putty in fact can do ssh. AFAIK, ssh uses pgp as it's encryption algorithm.

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

On 08/01/2013 10:04 AM, Reinier Olislagers wrote:

On 01/08/2013 09:58, Michael Schnell wrote:
Why? SSH/SCP works much better/more securely if accessing servers across
the internet.


He did not mention Internet.

-Michael

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

On 08/01/2013 10:04 AM, Reinier Olislagers wrote:
Why? SSH/SCP works much better/more securely if accessing servers 
across the internet. No need to mess with VPNs etc.
If this is internet, he might want to install a VPN and with that he 
can use CIFS.


So his pascal project is not bothered with dirty details of the file 
transfer.


-Michael

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

On 08/01/2013 10:32 AM, Reinier Olislagers wrote:

That's a strange response. *He* specified SSH,
Yep. I supposed he mentioned SSH because he knows that he can access the 
server via PUTTY using the SSH protocol. I do exactly this with my local 
Linux servers.



-Michael

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

Yep.
With SSH you don't need to transfer a username and password to do a 
login, once you established the appropriate keys on both sites.


-Michael

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

On 08/01/2013 11:33 AM, Sven Barth wrote:
In that case he could also try SSHFS which let's him mount a remote 
directory through SSH (I didn't test that myself though as of yet): 
http://en.wikipedia.org/wiki/SSHFS

or here rather:

http://code.google.com/p/win-sshfs/

-Michael

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


Re: [Lazarus] SSH

2013-08-01 Thread Michael Schnell

On 08/01/2013 11:21 AM, Mark Morgan Lloyd wrote:
 Linux server, and that's more likely to have SSH in its default 
configuration than Samba, NFS, RSH or even FTP.


Why do you think so ?

SSH is the default to access any Linux box that does not have a monitor.

A server can very well be a file server. At least I do run several of 
those featuring Samba and NFS.


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-17 Thread Michael Schnell

On 07/16/2013 06:07 PM, Jy V wrote:


I guess the main library entry points are located in mozjs.dll
so the wrapper fpcjs may need some search and replace replace,
Ah, this is what I guessed: The command-line java script interpreter 
does use parts of the normal Firefox distribution.


-Michael

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


Re: [Lazarus] Lazarus, Jedi etc.

2013-07-17 Thread Michael Schnell

On 07/16/2013 11:58 AM, Henry Vermaak wrote:

They're just paying you back in kind :)


Please note that I died not mean experts ironically in any way. I 
meant: true experts being funny by exaggerating.


Sorry for maybe being unclear.
-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/15/2013 10:47 PM, Mark Morgan Lloyd wrote:
asm.js does seem to have a lot going for it. So I suppose a fair 
question is to what extent custom-drawn LCLs for Android and Firefox 
OS could share code, and whether this abstraction could be useful for 
other targets e.g. framebuffer or naked X.


http://asmjs.org/spec/latest/#introduction looks really interesting as a 
target arch for fpc.


AFAIU (but I might be wrong) the Android GUI API is based on HTML4, 
while the FirefoxOS GUI API is based on HTML5. I understand that HTML5 
is a lot more versatile when it you want do display LCL visual objects 
in a Browser including providing GUI events that trigger Pascal events 
via an event queue (see EXTPASCAL / EXTJS for HTML4 plus Java script 
based stuff, that might be used via Comet based HTTP server 
functionality and often seems to ask for some trouble).


Moreover a future move of Android's towards HTML5 would be rather 
logical (keep you crystal ball at hand).


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/15/2013 09:24 PM, Sven Barth wrote:


I would keep out LLVM and emscripten and just directly generate asm.js 
code which is then simply compatible to the libraries provided by the 
emscripten project.
That of course is advantageous, as it can be done in Pascal, as the fpc 
is used to and happy with.


If there already is a decent LLVM backend for asm.js (which I doubt 
because asm.js itself is a work in progress) this might be a trigger for 
rethinking.


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/15/2013 10:19 PM, Sven Barth wrote:


Why would I want to use a parser generator if we have a fully working 
multi-backend compiler available?!



+1

Either stay with the current (excellent) Parser, or switch to a major 
standard such as LLVM or gcc !


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 10:44 AM, Michael Schnell wrote:
http://asmjs.org/spec/latest/#introduction looks really interesting as 
a target arch for fpc.



Should we switch to the fpc-devel mailing list on that issue ?

-Michael

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


Re: [Lazarus] Lazarus, Jedi etc.

2013-07-16 Thread Michael Schnell

On 07/16/2013 11:17 AM, Henry Vermaak wrote:

Probably not, no, given that it's used by ...


I seem to find out that this discussion is about experts making fun on 
each other, just wasting some bandwidth :-) .


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 12:23 PM, Sven Barth wrote:

show how you can execute it on the command line as well.


Do you start Firefox, a part of same (or whatever) with some command 
line arguments to do this ?


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 12:11 PM, Sven Barth wrote:
Ehm... you do know that the Android GUI is not based on any HTML? It's 
a Java based system...
While I learned this only after I phrased this message, OTOH HTML5 also 
is a Java based system and thus the thought might not be _completely_ 
wrong.


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 01:09 PM, Sven Barth wrote:


but otherwise a JS command line interpreter is sufficient.



That was what I tried to ask. I never heard of any JS command line 
interpreter. Is there one provided by Mozilla ?


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 01:09 PM, Sven Barth wrote:



 JS command line interpreter



OK, I did find Rhino. https://developer.mozilla.org/en-US/docs/Rhino

-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 01:07 PM, Sven Barth wrote:


HTML5 has *nothing* to do with Java.


Sorry for again typing faster than thinking. :-(

-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell

On 07/16/2013 01:25 PM, Michael Van Canneyt wrote:

Where do you get your information ?

I was just being confused and apologize for wasted bandwidth :-( .

-Michael

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


Re: [Lazarus] Firefox OS

2013-07-16 Thread Michael Schnell
I Do know that confusing Java and Java-Script is similar to confusing a 
HedgeHog and a Pig, But things like that happen in my advanced age :-( .


-Michael

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


Re: [Lazarus] Lazarus, Jedi etc.

2013-07-15 Thread Michael Schnell

On 07/13/2013 03:52 PM, leledumbo wrote:

The whole JEDI sucks, dependencies hell everywhere and IS TIED TO WINDOWS!


...

It's at least five years ago when I was dealing with the Jedi community. 
I remember that at that time they have been tpersuing compatibility with 
FPC/Lazarus at least in some of the libraries (e.g. jclMath, which I was 
looking at).


-Michael

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


[Lazarus] Firefox OS

2013-07-15 Thread Michael Schnell
I read the Firefox OS is gaining support by cell phone manufactures and 
distributors (e.g. Deutsche Telekom).


While Android support seems to be a hot topic here, what about the 
upcoming Firefox OS.


I suppose this is Java-based in a similar way as Android, and maybe a 
unified support for both can be provided.


-Michael

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


Re: [Lazarus] Firefox OS

2013-07-15 Thread Michael Schnell

On 07/15/2013 10:12 AM, Michael Van Canneyt wrote:
I really should get my Pascal-to-Javascript translator project on 
track :(


How far has this advanced yet ?

-Michael

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


Re: [Lazarus] Firefox OS

2013-07-15 Thread Michael Schnell

On 07/15/2013 10:12 AM, Michael Van Canneyt wrote:

As far as I know, it is Javascript. Not Java.


As Firefox is a very fast Javascript interpreter this does make sense.

But it supposedly makes it completely incompatible with Android from 
ground up (this might be on purpose).


But can an OS completely done in Jacascript be a valid alternate 
foundation for cell phone and Tablet designs ?


-Michael



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


Re: [Lazarus] Lazarus, Jedi etc.

2013-07-15 Thread Michael Schnell

On 07/13/2013 04:01 PM, Marco van de Voort wrote:

- many turbopower components work.


But unfortunately this does not include AsyncPro, while a decent, 
comfortable, unified, OS-independent way to handle data streams form/to 
Serial Ports and TCP/IP sockets (i.e. using blocked I/O in hidden 
threads and firing Main asynchronous thread events when appropriate) is 
often requested by application programmers.


-Michael

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


<    2   3   4   5   6   7   8   9   10   11   >