Re: [fpc-pascal] function to do common things to files a directory (possibly recursive)

2009-03-23 Thread leledumbo
Nice work Bart, I also see that you've a lot of useful units there. I already use 2.3.1 so that'll be OK. Let the download begins... OOT: My project http://code.google.com/p/express-gui ExPress uses a unit called browserdetection. But I don't see any author name in the comment, please check if

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Paul Breneman
Henry Vermaak wrote: 2009/3/23 Paul Breneman : Beni, is there another precompiled "ppcarm" from the version v2.2.x or v2.3.x ? Or exists a maintainer for the arm version? So i could ask him for a debugging version to find the problem. I couldn't debug the problem by my self, because i don't h

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Henry Vermaak
2009/3/23 Marco van de Voort : > In our previous episode, John Coppens said: >> >> > I have been using bin2obj for two years now. It works perfectly for >> > me, even though it's a (occasional) two step process. My application >> > changes more than the resource I include. >> >> ... and you can add

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Henry Vermaak
2009/3/23 Paul Breneman : > Beni, > >> is there another precompiled  "ppcarm" from the version v2.2.x or v2.3.x ? >> Or exists a maintainer for the arm version? So i could ask him for a >> debugging version to find the problem. >> I couldn't debug the problem by my self, because i don't have a clou

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Rainer Stratmann wrote: > Am Montag, 23. März 2009 18:18 schrieb Michael Van Canneyt: > > On Mon, 23 Mar 2009, Marco van de Voort wrote: > > > In our previous episode, John Coppens said: > > > > > I have been using bin2obj for two years now. It works perfectly for > > > > >

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Am Montag, 23. März 2009 18:18 schrieb Michael Van Canneyt: > On Mon, 23 Mar 2009, Marco van de Voort wrote: > > In our previous episode, John Coppens said: > > > > I have been using bin2obj for two years now. It works perfectly for > > > > me, even though it's a (occasional) two step process. My a

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Graeme Geldenhuys
On Mon, Mar 23, 2009 at 7:14 PM, John Coppens wrote: > > ... and you can add the conversion into the Makefile, so the conversion > happens automatically when the data changes. I program for the 21st century. I don't use Makefile's - they are so 80's. :-) Though Lazarus does help out here... you

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Marco van de Voort wrote: > In our previous episode, John Coppens said: > > > > > I have been using bin2obj for two years now. It works perfectly for > > > me, even though it's a (occasional) two step process. My application > > > changes more than the resource I include. >

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Marco van de Voort
In our previous episode, John Coppens said: > > > I have been using bin2obj for two years now. It works perfectly for > > me, even though it's a (occasional) two step process. My application > > changes more than the resource I include. > > ... and you can add the conversion into the Makefile, so

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread John Coppens
On Mon, 23 Mar 2009 18:22:15 +0200 Graeme Geldenhuys wrote: > I have been using bin2obj for two years now. It works perfectly for > me, even though it's a (occasional) two step process. My application > changes more than the resource I include. ... and you can add the conversion into the Makefil

Re: [fpc-pascal] Find out local IP adress

2009-03-23 Thread Travis Siegel
You could always exec ifconfig, then parce the output for the interfaces, and pull the ips from there. I do this on OSX with a simple terminal script like this: ifconfig|grep broadcast|awk '{print $2}'; This could easily be made to work on linux/bsd/fpc with very little work. Hope this helps.

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Graeme Geldenhuys
On Mon, Mar 23, 2009 at 5:35 PM, Rainer Stratmann wrote: > > Yes, this means also - as I understand it - that you have to make an > additional step to create the resource file. > For me it looks complicated. If a file's content is change then it can happen > that you forget to create the resource

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Am Montag, 23. März 2009 16:09 schrieb Michael Van Canneyt: > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > Am Montag, 23. März 2009 15:52 schrieb Michael Van Canneyt: > > > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > > > Would this be possible? > > > > > > > > // get access to the data of

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Rainer Stratmann wrote: > Am Montag, 23. März 2009 15:52 schrieb Michael Van Canneyt: > > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > > Would this be possible? > > > > > > // get access to the data of file.dat > > > // have 1 executable file with containing all the data

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Am Montag, 23. März 2009 15:52 schrieb Michael Van Canneyt: > On Mon, 23 Mar 2009, Rainer Stratmann wrote: > > Would this be possible? > > > > // get access to the data of file.dat > > // have 1 executable file with containing all the data > > > > {$ir file.dat mydata} // include resource or simila

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Michael Van Canneyt
On Mon, 23 Mar 2009, Rainer Stratmann wrote: > Would this be possible? > > // get access to the data of file.dat > // have 1 executable file with containing all the data > > {$ir file.dat mydata} // include resource or similar > > // fpc compiler makes this > const > mydata : array[ 0 .. 4 ]

Re: [fpc-pascal] Including binary data making easy

2009-03-23 Thread Jonas Maebe
Rainer Stratmann wrote on ma, 23 mrt 2009: Would this be possible? // get access to the data of file.dat // have 1 executable file with containing all the data {$ir file.dat mydata} // include resource or similar // fpc compiler makes this const mydata : array[ 0 .. 4 ] of byte = ($45,$44,$

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Paul Breneman
Beni, is there another precompiled "ppcarm" from the version v2.2.x or v2.3.x ? Or exists a maintainer for the arm version? So i could ask him for a debugging version to find the problem. I couldn't debug the problem by my self, because i don't have a clou about assembler programming. pleas

[fpc-pascal] Including binary data making easy

2009-03-23 Thread Rainer Stratmann
Would this be possible? // get access to the data of file.dat // have 1 executable file with containing all the data {$ir file.dat mydata} // include resource or similar // fpc compiler makes this const mydata : array[ 0 .. 4 ] of byte = ($45,$44,$63,$76,$55); // file data // the length can f

[fpc-pascal] Lazarus 0.9.26.2 released

2009-03-23 Thread Vincent Snijders
The Lazarus team is glad to announce the 0.9.26.2 release. This release has been made from the Lazarus 0.9.26 fixes branch and is based on fpc 2.2.2. This release can be downloaded from the SourceGorge download page: http://sourceforge.net/project/showfiles.php?group_id=89339 Highlights / Major

Re: [fpc-pascal] function to do common things to files a directory (possibly recursive)

2009-03-23 Thread Bart
On 3/23/09, leledumbo wrote: > This can be achieved by a function that iterates over a directory (and > possibly its subdirectories) and do specified operation on every files that > matches given mask. However, I don't seem to find one. The closest one is > FindAllFiles from Lazarus' FileUtil

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Henry Vermaak
2009/3/23 Benedikt Schindler : > Hi, > > is there another precompiled  "ppcarm" from the version v2.2.x or v2.3.x ? > Or exists a maintainer for the arm version? So i could ask him for a > debugging version to find the problem. > I couldn't debug the problem by my self, because i don't have a clou

Re: [fpc-pascal] using fpc on a arm4t system failed

2009-03-23 Thread Benedikt Schindler
Hi, is there another precompiled "ppcarm" from the version v2.2.x or v2.3.x ? Or exists a maintainer for the arm version? So i could ask him for a debugging version to find the problem. I couldn't debug the problem by my self, because i don't have a clou about assembler programming. please g

Re: [fpc-pascal] Compiling for OS X PPC / Linux

2009-03-23 Thread Jonas Maebe
On 23 Mar 2009, at 08:56, Joseph Montanez wrote: Im on an intel mac, do I need to do anything to compile my mac app i386 for powerpcs? Use ppcppc instead of ppc386, or use "fpc -Ppowerpc" instead of plain "fpc". Also I was wondering what I need to do to compile for linux target. When I d

[fpc-pascal] Compiling for OS X PPC / Linux

2009-03-23 Thread Joseph Montanez
Im on an intel mac, do I need to do anything to compile my mac app i386 for powerpcs? I was looking at targets in fpc and I didn't notice an option for anything darwin / os x / powerpc. Atleast from the help menu, Also I was wondering what I need to do to compile for linux target. When I do the -T

[fpc-pascal] function to do common things to files a directory (possibly recursive)

2009-03-23 Thread leledumbo
I often needed to delete files recursively (of course only those matched given mask), so I create a program to help me doing it (Windows explorer's search is SLOW and the deletion is even SLOWER!). However, the running time is O(2n). Since I need to delete tens of thousands of files, the running t