[fpc-pascal] fpweb and http authentication

2011-06-15 Thread ik
Hello,

How can I create http authentication using fpWeb ?

I found on WWWAuthenticate, but I do not understand how to use it.


Ido


LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpweb and http authentication

2011-06-15 Thread michael . vancanneyt



On Wed, 15 Jun 2011, ik wrote:


Hello,

How can I create http authentication using fpWeb ?

I found on WWWAuthenticate, but I do not understand how to use it.


Check the Authorization header. If it does not contain a valid
authentication, you just have to send a 401 response code and include a
WWW-Authenticate header field describing the authentication:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43
this will tell the browser to ask a username/password.

If the Authorization header contains a valid authentication, 
then proceed as normal.


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpweb and http authentication

2011-06-15 Thread ik
On Wed, Jun 15, 2011 at 12:12, michael.vancann...@wisa.be wrote:



 On Wed, 15 Jun 2011, ik wrote:

  Hello,

 How can I create http authentication using fpWeb ?

 I found on WWWAuthenticate, but I do not understand how to use it.


 Check the Authorization header. If it does not contain a valid
 authentication, you just have to send a 401 response code and include a
 WWW-Authenticate header field describing the authentication:
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43
 this will tell the browser to ask a username/password.

 If the Authorization header contains a valid authentication, then proceed
 as normal.


How can I make it to prompt for Authentication and how can I make it both
BASIC and Digest authentication ?



 Michael.
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal



Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpweb and http authentication

2011-06-15 Thread michael . vancanneyt



On Wed, 15 Jun 2011, ik wrote:


On Wed, Jun 15, 2011 at 12:12, michael.vancann...@wisa.be wrote:




On Wed, 15 Jun 2011, ik wrote:

 Hello,


How can I create http authentication using fpWeb ?

I found on WWWAuthenticate, but I do not understand how to use it.



Check the Authorization header. If it does not contain a valid
authentication, you just have to send a 401 response code and include a
WWW-Authenticate header field describing the authentication:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43
this will tell the browser to ask a username/password.

If the Authorization header contains a valid authentication, then proceed
as normal.



How can I make it to prompt for Authentication and how can I make it both
BASIC and Digest authentication ?


It is described in the URL cited above.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpweb and http authentication

2011-06-15 Thread ik
On Wed, Jun 15, 2011 at 12:42, michael.vancann...@wisa.be wrote:



 On Wed, 15 Jun 2011, ik wrote:

  On Wed, Jun 15, 2011 at 12:12, michael.vancann...@wisa.be wrote:



 On Wed, 15 Jun 2011, ik wrote:

  Hello,


 How can I create http authentication using fpWeb ?

 I found on WWWAuthenticate, but I do not understand how to use it.


 Check the Authorization header. If it does not contain a valid
 authentication, you just have to send a 401 response code and include a
 WWW-Authenticate header field describing the authentication:
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec17.html#bib43
 this will tell the browser to ask a username/password.

 If the Authorization header contains a valid authentication, then proceed
 as normal.


 How can I make it to prompt for Authentication and how can I make it both
 BASIC and Digest authentication ?


 It is described in the URL cited above.


So It's not implemented at the moment ?


 Michael.


Ido


 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] creating cross compiler to fpc

2011-06-15 Thread ik
Hello,

I'm trying to create a cross compiler for FPC to be 32 bit on Linux.

My problem is that as and ld for 32 bit called as86 and ld86.
How can I tell to the make command to use these two rather then
i386-linux-as and i386-linux-ld ?

Thanks,

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] creating cross compiler to fpc

2011-06-15 Thread Henry Vermaak

On 15/06/11 14:02, ik wrote:

Hello,

I'm trying to create a cross compiler for FPC to be 32 bit on Linux.

My problem is that as and ld for 32 bit called as86 and ld86.
How can I tell to the make command to use these two rather then
i386-linux-as and i386-linux-ld ?


Just create a symlink with `ln`.

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Pseudographics in FPC-IDE

2011-06-15 Thread Anton Shepelev
Nikolay Nikolov:

 Basically,  all  it does is, it checks if the LANG
 variable contains ґUTF-8' as a substring (not sure
 if  it is the right way to do it, but it works for
 Fedora,  Ubuntu,  OpenSUSE,  Mandriva  and  latest
 Debian) and if it does, it writes UTF-8 characters
 to the console, by  using  an  internal  CP437  to
 UTF-8 conversion table.

Then my guessing was correct, but in this case there
is a better solution.  Instead  of  relying  on  the
value of LANG, FP-IDE should directly check the con-
sole mode. This can be  done  using  the  'kbd_mode'
command. If the mode reported is UTF-8, then use the
translation table, otherwise assume CP437.

At least, this will make it more reliable with UTF-8
consoles.

Anton
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts

2011-06-15 Thread Bart
Juha,

 I just want to
 have a working compiler for Lazarus SVN versions but it is difficult.

Yes, I recognize this from the past...
This is how I set it up on Suse 10.0
(I cannot use the rpm's my Suse is just too old, it refuses installing
fpc rpm's since long time ago)

Go to the general download page from fpc:
http://freepascal.org/download.var

From binaries select your processor (mine is Intel/i386)
and click on your OS (Linux)

In my case (Intel/i386) this will lead me to
http://freepascal.org/down/i386/linux.var

Select a Mirror:

From Download in 1 big file select:
fpc-2.4.4.i386-linux.tar

This file contains an installscript, which will install the compiler.

At this point you have a working compiler on your system.
So you can build Lazarus from SVN.


In addition, for Lazarus Codetools you need the fpc sources, which you
can obtain easily:

http://freepascal.org/down/source/sources.var
Select a Mirror, then one of these (if you do not need the sources for
the compiler)

Zip file:
fpc-2.4.4.source.zip (26 MB)
Gzipped Tar file:
fpc-2.4.4.source.tar.gz (22 MB)

The drawback for this method is that your package manager has no idea
nymore about which version of Fpc (binary and sources) is installed,
and you'll have to delet old versions yourself.

It works for me though (I've been doing this since Laz 0.9.26/fpc 2.2.2)

Hope this helps in any way.

Bart
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts

2011-06-15 Thread Ludo Brands
A quick improvement for
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/ is to
upgrade it to a repository. 
Include the attached file in the above directory and you can access it as
normal repository by adding deb
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/ ./ to
/etc/apt/sources.list (or using the Software Sources application in
ubuntu). The file is created with dpkg-scanpackages and compressed. I've
tried this on my local ftp server after having copied all deb's and both a
fresh install and the upgrade from 2.4.0 (original ubuntu one) to 2.4.4
worked fine by installing/upgrading the meta package fpc. 
Since I don't know the PGP key used to create the deb's I do get NOT
AUTHENTICATED warnings when installing fpc. The key is different from the
one used for the old lazarus repository
http://wiki.lazarus.freepascal.org/Lazarus_release_version_for_Ubuntu.
 
Ludo

-Message d'origine-
De : fpc-pascal-boun...@lists.freepascal.org
[mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de Juha Manninen
Envoyé : mardi 14 juin 2011 19:12
À : FPC-Pascal users discussions
Objet : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts


I found the packages for Debian / Ubuntu / Mint :
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/

How to install it?
Am I really supposed to download those ~40 packages separately and then
install them in some specific order?
Other people have brougt this up, too, and I understand why. I just want to
have a working compiler for Lazarus SVN versions but it is difficult.

I had to change my machine configuration, USB web-stick doesn't work on my
Linux, I have a new Windows 7, Mint Linux on VirtualBox etc.
It makes me angry that I can't install FPC and Lazarus easily.
I know how the casual visitors feel when they can't install easily. For 90%
of them it is a turn-off and they go to test something else.
That is why I wrote earlier that an easy installation would be a
killer-feature for both FPC and Lazarus. There would be 10 times more
people trying it (100% instead of 10%).

How to improve it?
For windows, I have explained some errors in the installation instructions.
The source link leads to a wrong place.
Also, the sources are not included in the default package even they are
needed practically always. I wrote earlier about it.
Also, if someone wants a compiler fo 64-bit Windows, he certainly selects
the wrong cross-compiler because it is mentioned only in the very end. I did
the same mistake again just few days ago.

On Linux, even a major distro like Ubuntu has so old versions of FPC and
Lazarus. Why? I guess the releases should be advertized more to some
maintainers. How does it work in practice? Who advertizes to who?

Next I will try Suse and Sabayon under VirtualBox, I hope they work. At
least they have easy-to-install, recent FPC packages. I really don't know
why Ubuntu is so popular...

Juha





Packages.gz
Description: Binary data
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] https

2011-06-15 Thread Rainer Stratmann
Is there a solution for https somewhere?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] https

2011-06-15 Thread ik
On Wed, Jun 15, 2011 at 17:32, Rainer Stratmann rainerstratm...@t-online.de
 wrote:

 Is there a solution for https somewhere?


What do you mean exactly ?


 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] https

2011-06-15 Thread Rainer Stratmann
Am Wednesday 15 June 2011 16:42:16 schrieb ik:
 On Wed, Jun 15, 2011 at 17:32, Rainer Stratmann
 rainerstratm...@t-online.de

  wrote:
 
  Is there a solution for https somewhere?

 What do you mean exactly ?

As I understand from here
http://forum.lazarus.freepascal.org/index.php?topic=6361.0
and here
http://forum.lazarus.freepascal.org/index.php?topic=13312.0
fpweb only works with Apache. Before I read that I thought fpweb is a kind of 
(complete or not) webserver.

I wrote already my own webserver http://demo.klimaregelung.de which is able to 
make dynamic websites, png graphic and so on completely in freepascal (thus 
no dependencies to Apache or a png library, but so far only uncompressed 
png's) and wanted to add https support for a more secure communication. As I 
understand it there is no solution for https available...

...except to rely on Apache.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: creating cross compiler to fpc

2011-06-15 Thread leledumbo
Unfortunately we only have custom prefix option (-XP), no suffix. You can try
Henry's suggestion.

--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/creating-cross-compiler-to-fpc-tp4491156p4491548.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : [fpc-pascal] https

2011-06-15 Thread Ludo Brands
Synapse (http://www.ararat.cz/synapse/doku.php) has https server support and
works with fpc. A demo server is included with the sources.

Ludo

 -Message d'origine-
 De : fpc-pascal-boun...@lists.freepascal.org 
 [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part 
 de Rainer Stratmann
 Envoyé : mercredi 15 juin 2011 17:02
 À : FPC-Pascal users discussions
 Objet : Re: [fpc-pascal] https
 
 
 Am Wednesday 15 June 2011 16:42:16 schrieb ik:
  On Wed, Jun 15, 2011 at 17:32, Rainer Stratmann 
  rainerstratm...@t-online.de
 
   wrote:
  
   Is there a solution for https somewhere?
 
  What do you mean exactly ?
 
 As I understand from here 
 http://forum.lazarus.freepascal.org/index.php?topic=6361.0
 and here http://forum.lazarus.freepascal.org/index.php?topic=13312.0
 fpweb only works with Apache. Before I read that I thought 
 fpweb is a kind of 
 (complete or not) webserver.
 
 I wrote already my own webserver http://demo.klimaregelung.de 
 which is able to 
 make dynamic websites, png graphic and so on completely in 
 freepascal (thus 
 no dependencies to Apache or a png library, but so far only 
 uncompressed 
 png's) and wanted to add https support for a more secure 
 communication. As I 
 understand it there is no solution for https available...
 
 ...except to rely on Apache.
 
 
 
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: https

2011-06-15 Thread leledumbo
 As I understand from here 
 http://forum.lazarus.freepascal.org/index.php?topic=6361.0
 and here 
 http://forum.lazarus.freepascal.org/index.php?topic=13312.0
 fpweb only works with Apache.

Huh? Who said that? It should work with any web server capable of serving
CGI.

 Before I read that I thought fpweb is a kind of (complete or not)
 webserver. 

Not really, but it has the possibility to be made so. See EmbWeb package
(run your fppkg).

--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/https-tp4491421p4491558.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] XML read

2011-06-15 Thread Marcos Douglas
On Tue, Jun 14, 2011 at 10:28 AM, Bart bartjun...@gmail.com wrote:

 My XmlToList procedure is based upon the XmlToTree example in the wiki.

 There are no memory leaks in my code (checked it with heaptrace).

Hi Bart,
Below is my simple way to get all Text for each Page:


program t_xml;

{$mode objfpc}{$H+}

uses
  Classes, sysutils, dom, XMLRead;

procedure ProcessPage(ANode: TDOMNode; APageNo: Integer);
var
  Node: TDOMNode;
begin
  if not Assigned(ANode) then
Exit;
  Node := ANode.FirstChild;
  while Assigned(Node) do
  begin
if Node.CompareName('Text') = 0 then
begin
  writeln(Node.TextContent); //  do anything...
end;
Node := Node.NextSibling;
ProcessPage(Node, APageNo);
  end;
end;

procedure ProcessNodes(ANode: TDOMNode);
var
  Node: TDOMNode;
  PageNo: Integer;
begin
  if not Assigned(ANode) then
Exit;
  Node := ANode.FirstChild;
  while Assigned(Node) do
  begin
if Node.CompareName('Page') = 0 then
begin
  PageNo := StrToInt(Node.Attributes.GetNamedItem('number').NodeValue);
  ProcessPage(Node, PageNo);
end;
Node := Node.NextSibling;
ProcessNodes(Node);
  end;
end;

var
  Doc: TXMLDocument;

begin
  ReadXMLFile(Doc, 'cc.xml');
  try
ProcessNodes(Doc);
  finally
Doc.Free;
  end;

end.


Thanks for you example!
BTW, I could not use FindNode('Pages'). Looks like is broke, isn't?

Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] https

2011-06-15 Thread ik
On Wed, Jun 15, 2011 at 18:01, Rainer Stratmann rainerstratm...@t-online.de
 wrote:

 Am Wednesday 15 June 2011 16:42:16 schrieb ik:
  On Wed, Jun 15, 2011 at 17:32, Rainer Stratmann
  rainerstratm...@t-online.de
 
   wrote:
  
   Is there a solution for https somewhere?
 
  What do you mean exactly ?
 
 As I understand from here
 http://forum.lazarus.freepascal.org/index.php?topic=6361.0
 and here
 http://forum.lazarus.freepascal.org/index.php?topic=13312.0
 fpweb only works with Apache. Before I read that I thought fpweb is a kind
 of
 (complete or not) webserver.


fpWeb can work with any HTTP server out there as CGI and FastCGI.
It is not a web server (although you have code to build one yourself), but
basic tools to start writing CGI.



 I wrote already my own webserver http://demo.klimaregelung.de which is
 able to
 make dynamic websites, png graphic and so on completely in freepascal (thus
 no dependencies to Apache or a png library, but so far only uncompressed
 png's) and wanted to add https support for a more secure communication. As
 I
 understand it there is no solution for https available...

 ...except to rely on Apache.


SSL is a very low level protocol. it open a tunnel over TCP, so it's better
to have an existed tool to support it, but if you must, you can add it
yourself by using libopenssl.






 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal



Ido
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] https

2011-06-15 Thread michael . vancanneyt



On Wed, 15 Jun 2011, ik wrote:


On Wed, Jun 15, 2011 at 18:01, Rainer Stratmann rainerstratm...@t-online.de

wrote:



Am Wednesday 15 June 2011 16:42:16 schrieb ik:

On Wed, Jun 15, 2011 at 17:32, Rainer Stratmann
rainerstratm...@t-online.de


wrote:

Is there a solution for https somewhere?


What do you mean exactly ?


As I understand from here
http://forum.lazarus.freepascal.org/index.php?topic=6361.0
and here
http://forum.lazarus.freepascal.org/index.php?topic=13312.0
fpweb only works with Apache. Before I read that I thought fpweb is a kind
of
(complete or not) webserver.



fpWeb can work with any HTTP server out there as CGI and FastCGI.
It is not a web server (although you have code to build one yourself), but
basic tools to start writing CGI.


fpweb has a web server application type since a couple of weeks.

This is a simple web server, without support for https. 
It can be used for debugging purposes, or for simple webservices.


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Re: https

2011-06-15 Thread Rainer Stratmann
Am Wednesday 15 June 2011 17:14:02 schrieb leledumbo:
  As I understand from here
  http://forum.lazarus.freepascal.org/index.php?topic=6361.0
  and here
  http://forum.lazarus.freepascal.org/index.php?topic=13312.0
  fpweb only works with Apache.

 Huh? Who said that? It should work with any web server capable of serving
 CGI.
It seems like when reading the posts.
Ok now I know there are other solutions also.

My Webserver crashed, now I compiled with debug information.
Please try again heavily :-)

http://demo.klimaregelung.de
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts

2011-06-15 Thread Ludo Brands
Resend: Outlook keeps converting to html messages...

A quick improvement for
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/ is to
upgrade it to a repository. 
Include the attached file in the above directory and you can access it as
normal repository by adding deb
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/ ./ to
/etc/apt/sources.list (or using the Software Sources application in
ubuntu). The file is created with dpkg-scanpackages and compressed. I've
tried this on my local ftp server after having copied all deb's and both a
fresh install and the upgrade from 2.4.0 (original ubuntu one) to 2.4.4
worked fine by installing/upgrading the meta package fpc. 
Since I don't know the PGP key used to create the deb's I do get NOT
AUTHENTICATED warnings when installing fpc. The key is different from the
one used for the old lazarus repository
http://wiki.lazarus.freepascal.org/Lazarus_release_version_for_Ubuntu.
 
Ludo


Packages.gz
Description: Binary data
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts

2011-06-15 Thread Peter

 Am I really supposed to download those ~40 packages separately


Usually, in situations like this, one just installs a meta package with a 
package manager.
The meta package is just a list of required dependencies, and downloads other 
packages as needed.

I installed this one.
http://packages.debian.org/sid/fpc-2.4.4

Easy  painless.


Also, the Debian package is dated May-23, the date of the release.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + otherthoughts

2011-06-15 Thread Ludo Brands
Adding debian unstable repositories in Ubuntu is asking for trouble. Next
time you upgrade your packages you can be in deep s**t.

Ludo


  
 -Message d'origine-
 De : fpc-pascal-boun...@lists.freepascal.org 
 [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de Peter
 Envoyé : mercredi 15 juin 2011 19:28
 À : fpc-pascal@lists.freepascal.org
 Objet : Re: [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / 
 Mint + otherthoughts
 
 
   Am I really supposed to download those ~40 packages separately
 
 Usually, in situations like this, one just installs a meta 
 package with a package manager. The meta package is just a 
 list of required dependencies, and downloads other packages as needed.
 
 I installed this one.
 http://packages.debian.org/sid/fpc-2.4.4
 
 Easy  painless.
 
 
 Also, the Debian package is dated May-23, the date of the release.
 
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 
 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + otherthoughts

2011-06-15 Thread Henry Vermaak
On 15 June 2011 19:26, Ludo Brands ludo.bra...@free.fr wrote:
 Adding debian unstable repositories in Ubuntu is asking for trouble. Next
 time you upgrade your packages you can be in deep s**t.

Just make sure you pin the unstable repo lower than everything else, then use:

apt-get -t unstable install fpc-2.4.4 (to pull in the necessary dependencies) or
apt-get install fpc-2.4.4/unstable (if you don't want anything on your
system to be upgraded).

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread Ludo Brands
  Adding debian unstable repositories in Ubuntu is asking for 
 trouble. 
  Next time you upgrade your packages you can be in deep s**t.
 
 Just make sure you pin the unstable repo lower than 
 everything else, then use:

We were talking to make fpc easier to install for the average ubuntu user. 
This is as clear as mud for the average user I would say.

 
 apt-get -t unstable install fpc-2.4.4 (to pull in the 
 necessary dependencies) or apt-get install fpc-2.4.4/unstable 
 (if you don't want anything on your system to be upgraded).
 
 Henry
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org 
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Pseudographics in FPC-IDE

2011-06-15 Thread Nikolay Nikolov

On 06/15/2011 04:15 PM, Anton Shepelev wrote:

Nikolay Nikolov:


Basically,  all  it does is, it checks if the LANG
variable contains ґUTF-8' as a substring (not sure
if  it is the right way to do it, but it works for
Fedora,  Ubuntu,  OpenSUSE,  Mandriva  and  latest
Debian) and if it does, it writes UTF-8 characters
to the console, by  using  an  internal  CP437  to
UTF-8 conversion table.

Then my guessing was correct, but in this case there
is a better solution.  Instead  of  relying  on  the
value of LANG, FP-IDE should directly check the con-
sole mode. This can be  done  using  the  'kbd_mode'
command. If the mode reported is UTF-8, then use the
translation table, otherwise assume CP437.

At least, this will make it more reliable with UTF-8
consoles.

Yes, but there are still several issues:
1) It only works on the linux console. It doesn't work under xterm, 
gnome-terminal, konsole, etc and we still need a way to detect if they 
are in UTF-8 mode or not.
2) IIRC, it only checks if the keyboard input is in UTF-8 mode. What we 
actually care about is whether the console output (not input) is in 
UTF-8 mode. But I guess it's ok to assume that if the input is UTF-8, 
then then output is also most likely to be UTF-8.
3) I don't like the idea of having to invoke an external program and 
parse its output, but this could be done by directly invoking the ioctl 
that kbd_mode uses.


Do you know how many linux distros (besides Puppy Linux) would need 
this? When I came up with the 'UTF-8' string check in the LANG variable, 
I tested Fedora, Ubuntu, openSUSE, Mandriva and Debian and they all 
worked this way, so I figured it's a de facto standard.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread DaWorm
On Wed, Jun 15, 2011 at 5:08 PM, Ludo Brands ludo.bra...@free.fr wrote:
 We were talking to make fpc easier to install for the average ubuntu user.
 This is as clear as mud for the average user I would say.

Well, one would hope the average developer would be a bit farther
along the learning curve than the average user.  That said, I've
struggled with pinning packages in Ubuntu as well.  The thing is, I'd
never expect packages of the _development_ branch to ever play nice
with the _stable_ packages of the system.

Jeff.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread Henry Vermaak
On 15 June 2011 22:08, Ludo Brands ludo.bra...@free.fr wrote:
  Adding debian unstable repositories in Ubuntu is asking for
 trouble.
  Next time you upgrade your packages you can be in deep s**t.

 Just make sure you pin the unstable repo lower than
 everything else, then use:

 We were talking to make fpc easier to install for the average ubuntu user.
 This is as clear as mud for the average user I would say.

Then they need to accept that they will not be able to run the latest
release, just like every other average user.  This is the reality in
a stable distro.  Hopefully the average users will mature into
developers eventually and not shy away from editing a text file if
they wish to use the latest greatest version of their favourite
programming language.  For example, debian stable ships gcc 4.4.5,
which is quite far from being the latest release.

Also, please note that we are (hopefully) talking about people with
more savvy than your average user.

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread Henry Vermaak
On 15 June 2011 22:31, DaWorm daw...@gmail.com wrote:
 On Wed, Jun 15, 2011 at 5:08 PM, Ludo Brands ludo.bra...@free.fr wrote:
 We were talking to make fpc easier to install for the average ubuntu user.
 This is as clear as mud for the average user I would say.

 Well, one would hope the average developer would be a bit farther
 along the learning curve than the average user.  That said, I've

Indeed.  I think this point is often overlooked.

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : RE : [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint +otherthoughts

2011-06-15 Thread Peter

If folks prefer to stick with
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.4/i386-linux/deb/
then fpc_2.4.4-0_all.deb is probably the [single meta]package to install.

A readme file in the folder clearly explaining that would be helpful.


On 15/06/11 22:08, Ludo Brands wrote:

Adding debian unstable repositories in Ubuntu is asking for
   

trouble.
 

Next time you upgrade your packages you can be in deep s**t.
   

Just make sure you pin the unstable repo lower than
everything else, then use:
 

We were talking to make fpc easier to install for the average ubuntu user.
This is as clear as mud for the average user I would say.

   

apt-get -t unstable install fpc-2.4.4 (to pull in the
necessary dependencies) or apt-get install fpc-2.4.4/unstable
(if you don't want anything on your system to be upgraded).

Henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

 

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

   


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Installing FPC 2.4.4 for Ubuntu / Mint + other thoughts

2011-06-15 Thread Juha Manninen
Thanks, there are many ways to install.
I used the Bart's system which is easy although it bypasses the package
manager.

I believe the Linux installation could be improved with build-servers like
Suse has and other distros, too.
There is no fundamental problem with it.

Linux is still a superior platform for open-source software. Unfortunately
for commercial software it is not.
There is not one Linux but many variations, and supporting binary installs
for all is quite impossible.
Source code can be made portable more easily but commercial software must
deploy binaries.

I have a new job (http://www.cadworkssoftware.com/) and realized how big
problem it is. Even the big mechanical CAD programs support Windows only,
although it used to be the domain of Unix.

Seems like Linux will remain an open-source domain. Ok then, no problem...

Juha
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal