Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Luk Vandelaer
On Friday 08 February 2008 09:41, Peter Williams wrote:
 Hi all,

 I installed Lazarus and Free Pascal on my Linux Ubuntu pc
 using the Synaptic Package Manager. However, when I start Lazarus I
 get the following error message (see subject).

 The current Free Pascal source directory
 /usr/lib/fpc/2.0.4/units/i386-linux/
 does not look correct.
 Choose OK to choose the default .
 Otherwise check Environment - Environment Options - File

 [OK] [ignore]

   Note that the above listed directory (
 /usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.

   What am I doing wrong?!? Can someone please tell me the URL for
 downloading any files I'm missing and also what is the exact directory
 in which they should reside?

The correct path for you would be /usr/lib/fpc/2.0.4
Lazarus knows his way from there.

Luk

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Peter Williams
Hi all,

I installed Lazarus and Free Pascal on my Linux Ubuntu pc
using the Synaptic Package Manager. However, when I start Lazarus I
get the following error message (see subject).

The current Free Pascal source directory
/usr/lib/fpc/2.0.4/units/i386-linux/
does not look correct.
Choose OK to choose the default .
Otherwise check Environment - Environment Options - File

[OK] [ignore]

  Note that the above listed directory (
/usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.

  What am I doing wrong?!? Can someone please tell me the URL for
downloading any files I'm missing and also what is the exact directory
in which they should reside?

-- 
Fond Regards,
Peter Eric (aka 'pew') WILLIAMS

My free website is:
http://pewtas.googlepages.com  (or)  http://tinyurl.com/yuyejs

(please visit my free website and let me know what you think about it.)

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to active. 
Restarting Lazarus also did not improve this situation.(Maybe it needed 
to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and copying 
these files into system32.


On trying to connect this time I get the message The ordinal 284 could 
not be located in the link library SSLEAY32.DLL.  Even trying with 
different versions of ssleay32 does not solve the problem.  At this 
point Lazarus shows the connection as Active in the object inspector 
but seems to be frozen.  Switching to another task in the windows 
taskbar brings Lazarus out of its reverie and gives me the message Can 
not load the PostgreSQL client. Is it installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Mattias Gaertner
On Fri, 8 Feb 2008 19:41:11 +1100
Peter Williams [EMAIL PROTECTED] wrote:

 Hi all,
 
 I installed Lazarus and Free Pascal on my Linux Ubuntu pc
 using the Synaptic Package Manager. However, when I start Lazarus I
 get the following error message (see subject).
 
 The current Free Pascal source directory
 /usr/lib/fpc/2.0.4/units/i386-linux/
 does not look correct.
 Choose OK to choose the default .
 Otherwise check Environment - Environment Options - File
 
 [OK] [ignore]
 
   Note that the above listed directory (
 /usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.
 
   What am I doing wrong?!? Can someone please tell me the URL for
 downloading any files I'm missing and also what is the exact directory
 in which they should reside?

The IDE searches the FPC sources, which is provided by a package
called fpc-src.
As ubuntu user, you can use:

http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_Lazarus_from_our_Ubuntu_repository

Then you will get the current fpc 2.2.0 too (instead of the old 2.0.4).


Mattias
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Mattias Gaertner
On Fri, 8 Feb 2008 09:45:00 +0100
Luk Vandelaer [EMAIL PROTECTED] wrote:

 On Friday 08 February 2008 09:41, Peter Williams wrote:
  Hi all,
 
  I installed Lazarus and Free Pascal on my Linux Ubuntu pc
  using the Synaptic Package Manager. However, when I start Lazarus I
  get the following error message (see subject).
 
  The current Free Pascal source directory
  /usr/lib/fpc/2.0.4/units/i386-linux/
  does not look correct.
  Choose OK to choose the default .
  Otherwise check Environment - Environment Options - File
 
  [OK] [ignore]
 
Note that the above listed directory (
  /usr/lib/fpc/2.0.4/units/i386-linux/ ) *does* exist.
 
What am I doing wrong?!? Can someone please tell me the URL
  for downloading any files I'm missing and also what is the exact
  directory in which they should reside?
 
 The correct path for you would be /usr/lib/fpc/2.0.4
 Lazarus knows his way from there.

No. This path contains the FPC binary units - not the FPC sources.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Error: Invalid Free Pascal Source Directory

2008-02-08 Thread Vincent Snijders

Luk Vandelaer schreef:


The correct path for you would be /usr/lib/fpc/2.0.4
Lazarus knows his way from there.


No that is the path of the compiled units (.ppu and .o), not for the pascal *source* 
directory, with .pas, .pp and .inc files.


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Vincent Snijders

Alex du Plessis schreef:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to active. 
Restarting Lazarus also did not improve this situation.(Maybe it needed 
to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and copying 
these files into system32.


As Marc said a couple of days ago, copying to system32 is not the 'correct' way to 
do this. Add The directory that contains the libpq.dll to the PATH environment 
variable instead.


Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Marc Weustink wrote:

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, 
followed by a postgres 8.3 install and then  a  Lazarus 0.9.25  
re-install.


I started by changing fpc.cfg to add the library path of the 
libpq.dll file to fpc.cfg and that had no effect.  The TPQConnection 
still could not find the file libpq.dll when trying to set the 
connection to active. Restarting Lazarus also did not improve this 
situation.(Maybe it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


I searched on the web and downloaded from there.  Should I have obtained 
it from a specific location?

Copied it into system32.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Vincent Snijders

Alex du Plessis schreef:

Marc Weustink wrote:

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, 
followed by a postgres 8.3 install and then  a  Lazarus 0.9.25  
re-install.


I started by changing fpc.cfg to add the library path of the 
libpq.dll file to fpc.cfg and that had no effect.  The TPQConnection 
still could not find the file libpq.dll when trying to set the 
connection to active. Restarting Lazarus also did not improve this 
situation.(Maybe it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


I searched on the web and downloaded from there.  Should I have obtained 
it from a specific location?

Copied it into system32.




I have ssleay32.dll in C:\Program Files\PostgreSQL\8.3\bin, which was created when 
installing PostgreSQL 8.3 the other day.


Vincent

P.S. How hard is it to remove footers from an email before replying?

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Marc Weustink

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to 
active. Restarting Lazarus also did not improve this situation.(Maybe 
it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Gerard N/A
Looks nice, congrats.

Gerard.


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread ik
Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido

On Feb 8, 2008 3:34 AM, Lee Jenkins [EMAIL PROTECTED] wrote:

 Hi all,

 Sorry for off topic request, but I'd like to see what an app looks like on 
 gtk2
 and I'm having a dickens of a time trying to upgrade my current gtk2 on Centos
 4.4.

 Can someone suggest a simple way to upgrade this?  I've tried yum, but it
 doesn't seem to think there is a new version of gtk2 than my current 2.4.13-22
 version.

 Thanks and sorry for OT post.

 --
 Warm Regards,

 Lee

 Everything I needed to learn in life, I learned selling encyclopedias door to
 door.

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives




-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread ik
Wow, cool application. What version of Asterisk does your manager works with ?

Ido

On Feb 8, 2008 7:41 AM, Lee Jenkins [EMAIL PROTECTED] wrote:

 I've written several console/daemon apps with Lazarus/Freepascal, but this is 
 my
 first GUI app that really does anything and aside from some gotchas getting it
 to run on Linux (developed on WinXP), it seems to be running very well.

 http://leebo.dreamhosters.com/images/guiApp.png

 There's a few idiosyncrasies with the fonts (size, etc) between Win32 and GTK,
 but all in all, I'm very happy with results thus far.

 Kudos to the developers and community.

 I'm hooked.

 --
 Warm Regards,

 Lee

 Everything I needed to learn in life, I learned selling encyclopedias door to
 door.

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives




-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected a 
problem on my disc and did a complete  Windows XP re-install, followed 
by a postgres 8.3 install and then  a  Lazarus 0.9.25  re-install.


I started by changing fpc.cfg to add the library path of the libpq.dll 
file to fpc.cfg and that had no effect.  The TPQConnection still could 
not find the file libpq.dll when trying to set the connection to 
active. Restarting Lazarus also did not improve this situation.(Maybe 
it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into /windows/sytem32  
and  tried to connect again. This time  round Lazarus asked for  
ssleay32.dll as well as  vsinit.dll. After duly  downloading and 
copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even trying 
with different versions of ssleay32 does not solve the problem.  At 
this point Lazarus shows the connection as Active in the object 
inspector but seems to be frozen.  Switching to another task in the 
windows taskbar brings Lazarus out of its reverie and gives me the 
message Can not load the PostgreSQL client. Is it 
installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an unknown 
ordinal value in ssleay32?


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] postgres revisited

2008-02-08 Thread Alex du Plessis

Vincent Snijders wrote:

Alex du Plessis schreef:

Marc Weustink wrote:

Alex du Plessis wrote:

Alex du Plessis wrote:

Hi all

Earlier I reported a problem finding libpq.dll.  I then suspected 
a problem on my disc and did a complete  Windows XP re-install, 
followed by a postgres 8.3 install and then  a  Lazarus 0.9.25  
re-install.


I started by changing fpc.cfg to add the library path of the 
libpq.dll file to fpc.cfg and that had no effect.  The 
TPQConnection still could not find the file libpq.dll when trying 
to set the connection to active. Restarting Lazarus also did not 
improve this situation.(Maybe it needed to reread fpc.cfg?).


I finally resorted to copying the  libpq file into 
/windows/sytem32  and  tried to connect again. This time  round 
Lazarus asked for  ssleay32.dll as well as  vsinit.dll. After 
duly  downloading and copying these files into system32.


On trying to connect this time I get the message The ordinal 284 
could not be located in the link library SSLEAY32.DLL.  Even 
trying with different versions of ssleay32 does not solve the 
problem.  At this point Lazarus shows the connection as Active 
in the object inspector but seems to be frozen.  Switching to 
another task in the windows taskbar brings Lazarus out of its 
reverie and gives me the message Can not load the PostgreSQL 
client. Is it installed?(libpq.dll).


Does anybody have any idea how to rectify this problem?

Regards.

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Thanx for the advice, I have already adjusted the PATH variable.  
However it still does not solve the problem of looking for an 
unknown ordinal value in ssleay32?


where did you find the SSLEAY32.dll ?
You said you downloaded and copied it ?

Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


I searched on the web and downloaded from there.  Should I have 
obtained it from a specific location?

Copied it into system32.




I have ssleay32.dll in C:\Program Files\PostgreSQL\8.3\bin, which was 
created when installing PostgreSQL 8.3 the other day.


Vincent

P.S. How hard is it to remove footers from an email before replying?

It seems I'm the right real idiot for the day - my apologies for not 
looking properly and for not removing footers. 


Thanks for the advice on postgres.

Regards

Alex

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Lee Jenkins

ik wrote:

On Feb 8, 2008 3:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

ik wrote:

Wow, cool application. What version of Asterisk does your manager works with ?

Ido


Thanks guys,

I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on
1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.


There are additions to 1.4 and 1.6


I will check these out.  But if the (ugly) protocol for AMI remains backwards 
compatible then again, I assume that it would work.  I will definitely check out 
the addition to AMI as I have been hoping for more standardized output.



A business associate introduced me to Asterisk a year or so ago and I'm addicted
to it since.  This current project is actually a rewrite of one of 3 existing
products that I've written for Asterisk (not counting AGI apps, etc) already.


I worked at a company that developed applications above Asterisk,
until they stopped developing, and now I'm a freelancer in this field.
I also added support for Asterisk to talk in proper Hebrew (the
recordings are from a person that does it for a living), and now I'm
writing some Asterisk module for a test, I'll release it under GPL.
And I'm also the co-editor of www.asterisk.org.il :)


Look informative from the volume of text.  I can't read Hebrew ;)


http://www.datatrakpos.com/pos/datatalk/Default.aspx
(Delphi)

http://www.datatrakpos.com/pos/datatalk/asterpas.aspx
(Lazarus/Freepascal/Rem PascalScript)

http://www.datatrakpos.com/pos/datatalk/maestro.aspx
(Delphi - currently being re-written in lazarus)

I've also written several little applications including a wrapper around
AGI/FastAGI for ObjectPascal, Cepstral Swift AGI Wrapper, etc.


I started working on AGI/FastAGI library for lnet 6 months ago, but I
do not have time to finish it (and it requires some rewrite).


I'm thinking of releasing ours under LGPL so that others are able to help with 
its development.  Ours is written with Synapse and RemObjects pascalscript 
engine.  Please let me know if you are interested.


I forgot to mention that I also wrote a proxy server for AMI recently too.  I 
know there is a couple out there already (AstManProxy), but sometimes its better 
to write your own so you can have control over its features and destiny, I think.



Someone else in our office is working on integration between Asterisk and our
P.O.S. application for for use with Drive Thru's, Pizza Delivery operations as 
well.

Asterisk is a lot like FreePascal/Lazarus.  Once its under your skin, its
difficult to dig it out!


Well, if Asterisk would have written in FPC, then things would be even
better ;) But Mark told us (I met him last year) that he loves C :(



Yes, many C zealots over there, but I don't know C (other than to read it a bit) 
so I cannot contribute anything to the project itself.  I was going to learn C, 
but I think I'd rather sand paper sensitive parts of my body instead ;)


It would be very interesting to see an application with the same complexity of 
Asterisk written in FPC, especially from a performance standpoint.


Mark seems like a very nice fellow.  He was on the VOIP conference last Friday 
or the Friday before, I think.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-08 Thread Luca Olivetti

En/na Antonio Sanguigni ha escrit:


Thanks all, guys. I'll have a look at your suggests.


Note that all suggestions are distro specific. As more and more distro 
move to freedesktop, maybe the best cross-distro solution is to use the 
freedesktop standards, e.g. xdg-open:


http://portland.freedesktop.org/wiki/XdgUtils

(but then you have to provide a fall-back if xdg is not available)

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GamePack 1.0 Released

2008-02-08 Thread Lee Jenkins

A.J. Venter wrote:


I downloaded and installed the components fine.  However, when trying 
to load the demo project, the IDE hangs and eats up 50% CPU.  End 
Task'ing the lazarus process in Windows is necessary at that point.


Is this only linux/gtk?  Or is Win32 supported?

Hi Lee,
It's definitely meant to be a multiplatform suite.
You seem to have discovered a win32 specific bug. Since I only use 
native components that means that it must be something the w32 widget 
set does different.
Logically - only visual components could have issues with widget set 
implementations. That limits it to TDoubleBuffer.
The only part of TDoubleBuffer that is active during design is the paint 
method - so it seems win32 isn't handling that right.


Please try the following for me (I have no access to a windows machine 
for a while)

Fine the lines in doublebuffer.pas that read:

if csDesigning in ComponentState then
Self.Canvas.CopyRect(rect(0,0,width,height),FBackground.BitMap.Canvas,rect(0,0,width,height)); 



And comment them out.
This will have no impact on running programs, it will just prevent the 
background from being visible at designtime - but it may solve your 
problem. Please let me know if it does, so I can update the code on my 
side (I would use an IFDEF I imagine).

Win32 experts: If this works, how SHOULD I do it instead ?

Ciao
A.J.


I did so, but still the same behavior.  Just to note, I commented out the lines 
and then rebuilt the IDE a couple of times to be sure.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread ik
On Feb 8, 2008 3:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:
 ik wrote:
  Wow, cool application. What version of Asterisk does your manager works 
  with ?
 
  Ido
 

 Thanks guys,

 I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on
 1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.

There are additions to 1.4 and 1.6


 A business associate introduced me to Asterisk a year or so ago and I'm 
 addicted
 to it since.  This current project is actually a rewrite of one of 3 existing
 products that I've written for Asterisk (not counting AGI apps, etc) already.

I worked at a company that developed applications above Asterisk,
until they stopped developing, and now I'm a freelancer in this field.
I also added support for Asterisk to talk in proper Hebrew (the
recordings are from a person that does it for a living), and now I'm
writing some Asterisk module for a test, I'll release it under GPL.
And I'm also the co-editor of www.asterisk.org.il :)


 http://www.datatrakpos.com/pos/datatalk/Default.aspx
 (Delphi)

 http://www.datatrakpos.com/pos/datatalk/asterpas.aspx
 (Lazarus/Freepascal/Rem PascalScript)

 http://www.datatrakpos.com/pos/datatalk/maestro.aspx
 (Delphi - currently being re-written in lazarus)

 I've also written several little applications including a wrapper around
 AGI/FastAGI for ObjectPascal, Cepstral Swift AGI Wrapper, etc.

I started working on AGI/FastAGI library for lnet 6 months ago, but I
do not have time to finish it (and it requires some rewrite).


 Someone else in our office is working on integration between Asterisk and our
 P.O.S. application for for use with Drive Thru's, Pizza Delivery operations 
 as well.

 Asterisk is a lot like FreePascal/Lazarus.  Once its under your skin, its
 difficult to dig it out!

Well, if Asterisk would have written in FPC, then things would be even
better ;) But Mark told us (I met him last year) that he loves C :(


 --

 Warm Regards,

 Lee

 Everything I needed to learn in life, I learned selling encyclopedias door to
 door.



Ido
-- 
http://ik.homelinux.org/

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread Lee Jenkins

ik wrote:

Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido



Hi Ido,

Thanks for the tip.  Other distros scare me ;)  I may try ubuntu as people seem 
to feel that one is pretty easy to setup an administer.  I'm pretty confident 
that any shortcomings of CentOS are overshadowed by my inexperience with linux 
in general anyway ;)


I'll give Debian a try as well as ubuntu when a I get a chance.

Again, thanks for the tip.


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Form.SessionProperites question

2008-02-08 Thread Lee Jenkins


Hi all,

First, great job on the SessionProperties functionality, a great feature.

Secondly, I have a couple of questions in using it with TXMLPropStorage 
component.

1. (More of an issue than a question) The settings do not seem to get saved when 
you close the form from code (calling forms .Close method) or if I create the 
form with another form as owner and then close the owner form.


2. Can someone lend a tip to be able to control the settings at runtime?  In 
other words, I'd like to be able to create multiple profiles and when applied, 
they load the forms with TXMLPropStorage and force them to use a specific so 
that the user can have different placement of applicable forms when they want.


I'm assuming this could be done in OnRestoreProperties or OnRestoringProperties 
to specify the file to use?


Thanks again,

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread Lee Jenkins

Giuliano Colla wrote:

Lee Jenkins ha scritto:

ik wrote:

Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido



Hi Ido,

Thanks for the tip.  Other distros scare me ;)  I may try ubuntu as 
people seem to feel that one is pretty easy to setup an administer.  
I'm pretty confident that any shortcomings of CentOS are overshadowed 
by my inexperience with linux in general anyway ;)




My rule of thumb with Linux distros.

More or less all of them try to make your life easy if you don't have 
enough GB on your HD, so they propose a subset of packages for normal, 
workstation or whatever, which provides you with a minimal set for 
with what you need to surf the web, to write your documents, etc.
But if you need to make some kind of development (even just install a 
source package) you end up missing a lot of -devel packages, which have 
different names for each distro, and you have a hell of a time sorting 
out what you need.


My solution has always been: install everything.

If you don't have disk space constraints it's the easiest way out. You 
lose some disk space, but save a lot of time, and have always at hand 
what you need.


rpm or deb based doesn't make a big difference: with deb you have 
apt-get as default, but you may install it also in non deb distros, rpm 
distro's use yum which gives pretty much the same functionalities.


Just my 2 cents.

Giuliano



Thanks Giuliano,

I usually check the Developer packets on CentOS installation wizard.

Thanks for the tip.

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Open URL in a browser

2008-02-08 Thread micahel schneider
Am Freitag 08 Februar 2008 schrieb Luca Olivetti:
 En/na Antonio Sanguigni ha escrit:
  Thanks all, guys. I'll have a look at your suggests.

 Note that all suggestions are distro specific. As more and more distro
 move to freedesktop, maybe the best cross-distro solution is to use the
 freedesktop standards, e.g. xdg-open:

 http://portland.freedesktop.org/wiki/XdgUtils

 (but then you have to provide a fall-back if xdg is not available)

kfmclient exec for KDE (kfmclient exec http://kde.org )
gnome-open for Gnome (gnome-open http://gnome.org)
exo-open for XFCE

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Lee Jenkins

ik wrote:

On Feb 8, 2008 3:43 PM, Lee Jenkins [EMAIL PROTECTED] wrote:

ik wrote:

Wow, cool application. What version of Asterisk does your manager works with ?

Ido


Thanks guys,

I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on
1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.


There are additions to 1.4 and 1.6


Apparently, not just additions, but changes that impact my existing code and 
what it looks for when events and request responses arrive:


http://svn.digium.com/view/asterisk/trunk/doc/manager_1_1.txt?revision=98152view=markup

--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] GTK2 Help [OT]

2008-02-08 Thread Giuliano Colla

Lee Jenkins ha scritto:

ik wrote:

Hi,

If you can, try to install debian instead (Sorry, I just don't like RH
distro's thy sucks imho) ;)

You should know that with yum you must first clean the repository
cache, and then read it again (as I said, they sucks). The best way is
to add a new repository with your rpm's made for centos 4.4, and last,
try to upgrade to centos 5.5 final.

Ido



Hi Ido,

Thanks for the tip.  Other distros scare me ;)  I may try ubuntu as 
people seem to feel that one is pretty easy to setup an administer.  I'm 
pretty confident that any shortcomings of CentOS are overshadowed by my 
inexperience with linux in general anyway ;)




My rule of thumb with Linux distros.

More or less all of them try to make your life easy if you don't have 
enough GB on your HD, so they propose a subset of packages for normal, 
workstation or whatever, which provides you with a minimal set for 
with what you need to surf the web, to write your documents, etc.
But if you need to make some kind of development (even just install a 
source package) you end up missing a lot of -devel packages, which have 
different names for each distro, and you have a hell of a time sorting 
out what you need.


My solution has always been: install everything.

If you don't have disk space constraints it's the easiest way out. You 
lose some disk space, but save a lot of time, and have always at hand 
what you need.


rpm or deb based doesn't make a big difference: with deb you have 
apt-get as default, but you may install it also in non deb distros, rpm 
distro's use yum which gives pretty much the same functionalities.


Just my 2 cents.

Giuliano

--
Giuliano Colla

Whenever people agree with me, I always feel I must be wrong (O. Wilde)

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] My first GUI Application

2008-02-08 Thread Lee Jenkins

ik wrote:

Wow, cool application. What version of Asterisk does your manager works with ?

Ido



Thanks guys,

I'm on Asterisk 1.2.12 here at my office, but I'd assume that it would work on 
1.4 as well.  I don't think they made any breakable changes to AMI in 1.4.


A business associate introduced me to Asterisk a year or so ago and I'm addicted 
to it since.  This current project is actually a rewrite of one of 3 existing 
products that I've written for Asterisk (not counting AGI apps, etc) already.


http://www.datatrakpos.com/pos/datatalk/Default.aspx
(Delphi)

http://www.datatrakpos.com/pos/datatalk/asterpas.aspx
(Lazarus/Freepascal/Rem PascalScript)

http://www.datatrakpos.com/pos/datatalk/maestro.aspx
(Delphi - currently being re-written in lazarus)

I've also written several little applications including a wrapper around 
AGI/FastAGI for ObjectPascal, Cepstral Swift AGI Wrapper, etc.


Someone else in our office is working on integration between Asterisk and our 
P.O.S. application for for use with Drive Thru's, Pizza Delivery operations as well.


Asterisk is a lot like FreePascal/Lazarus.  Once its under your skin, its 
difficult to dig it out!


--
Warm Regards,

Lee

Everything I needed to learn in life, I learned selling encyclopedias door to 
door.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives