* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Lazarus Application Explorer updated and on github
« Last post by sysrpl on Today at 08:29:03 am »
I've updated the Lazarus Application Explorer tool and am now hosting it on github.

Here's a quick view of the new version:

http://video.getlazarus.org/appexploregrid.mp4


2
Android / Re: cannot find system used by FCLLAZ of package FCL
« Last post by Prakash on Today at 07:41:52 am »
Thanks Sir.

It is really great.

Regards,
Prakash
3
General / Re: split math expresion into tokens
« Last post by marcov on Today at 07:03:14 am »
Unit symbolic (that comes with Free Pascal) contains an expression evaluator. The tokenizer can return a tree form, or reduce that to RPN. (but that is string form again).

4
interesting. I just tried

Code: Pascal  [Select]
  1. cmd:='inputdlg(''test'')'+#10;  

I can indeed interact with the window popped up. But if I do

Code: Pascal  [Select]
  1. cmd:='mesh(peaks)'+#10;

I see a plot initially, but the window is frozen, can not receive events or even being closed. the console output shows "XOpenIM() failed".

If I start octave inside a real terminal, mesh(peaks) works without any problem, even the "XOpenIM() failed" warning is also shown.
5
I am trying to call "octave --no-gui --interative" with TAsyncProcess, send a command to make a 3D plot, then I want to user to rotate/zoom in the octave plot window.

I was able to achieve most of the above, except the last step, i.e. moving mouse to rotate the plot in the octave figure window. it looks like the octave thread is suspended or some sort, the figure window can not refresh or receive any mouse events.

if I launch octave using --force-gui, I can use mouse to interact with the GUI window of octave.

I am wondering if this is an octave issue, or TAsyncProcess issue?

if it is the latter, if I want to interact with a process, should I create the process inside a separate thread?

thank you
6
General / Re: split math expresion into tokens
« Last post by Leledumbo on Today at 06:23:08 am »
The proper way is to build a parser, first part of Prof. Wirth book should help, but it's geared more toward in-class use. Otherwise Jack Crenshaw's articles is more practical, but is not really structured. Last but not least, if you think proper parsing is too complex to understand, you can always fallback to System.Copy, System.Delete, System.Pos, etc. but for me it's too cumbersome compared to time spent to understand parsing properly (it's also future proof for your skill).
7
Quick glance at the code, there's no way to do that BEFORE accepting the whole multipart stream. Handle if afterwards instead, see TUploadedFile class members for inspiration.
8
Designer / Re: Delphi Forms
« Last post by Degibbo on Today at 05:53:02 am »
Thanks for the help everyone.  I have now managed to compile the project with no errors.
However there is still a couple of forms that don't show.  In order to get the project compiled,
there was a lot of stuff that I had to comment out, which I will address later.

With the "main" form, from the dot pas file, F12 produces the error message: (Wrong token type.
Symbol expected but { found (at 3339,2,stream offset 147377)).  Now this is clearly due to one
of my comment-outs, but how do I show where in the code from this magical number?
Some previous errors have shown the first number as the unit line and character position, but
this main unit only has 2000 odd lines!

Cheers & thanks for the continuing support.
DG
10
Mac OS X / Re: Problem with symlink file
« Last post by carl_caulkett on Today at 01:59:48 am »
The only files part of a project that contain filenames are the .lpi and .lps file.

That you haven't touched the file for a couple of days... well, that's the culprit, isn't it ? It seems to still  contain the old 'wrong' filename otherwise you would not be confronted with the error.

Given that the generation of the code happened yesterday afternoon and the project files I was referring to predate this by several days, the logic of that falls down somewhat, no?

As it turns out the filename was being held in an .lps but not one which I had mentioned or that you could have any way of knowing about. I deleted the .lps (my 20+ years of Delphi experience, not to mention the previous 8 years of DOS experience, gave me the necessary expertise to do that!)

Is it perhaps too difficult to delete those two files ? Usually opening a command prompt and issuing a command like "delete filename" does the job.

"Patronising? Moi?"
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus