Re: [Lazarus] Embarcadero vs Lazarus/FPC (Oracle vs Google)

2012-05-09 Thread Michael Schnell
On 05/08/2012 03:29 PM, Andrew Brunner wrote: They would be given a gold watch and a few high fives. ;-) He then will sell the watch, buy shares of food companies and get extremely rich regarding the need of starving masses. -Michael -- ___ Lazaru

Re: [Lazarus] Embarcadero vs Lazarus/FPC (Oracle vs Google)

2012-05-09 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 05/08/2012 03:29 PM, Andrew Brunner wrote: They would be given a gold watch and a few high fives. ;-) He then will sell the watch, buy shares of food companies and get extremely rich regarding the need of starving masses. Since when have food companies sold to the

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Graeme Geldenhuys
Hi Darius, On 8 May 2012 22:31, Darius Blaszyk wrote: > One of my frustrations with the IDE have been when debugging record > or class variables. The data is truncated to 255 characters and it's > very difficult to find the appropriate variable within the structure. > I have now uploaded a patch

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Torsten Bonde Christiansen
On 2012-05-09 11:02, Graeme Geldenhuys wrote: Hi Darius, On 8 May 2012 22:31, Darius Blaszyk wrote: One of my frustrations with the IDE have been when debugging record or class variables. The data is truncated to 255 characters and it's very difficult to find the appropriate variable within th

[Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Felipe Monteiro de Carvalho
Hello, I need this now and after some Googling I couldn't find anything. So I was wondering, maybe we already have this somewhere in FPC or Lazarus? If not it might be something to consider adding to LazUtils. -- Felipe Monteiro de Carvalho -- ___ Laz

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Žilvinas Ledas
Hi, you should look at turbopower_ipro/iputils.pas - it has function GetLocalContent(const TheFileName: string): string; with valid windows implementation and array-lookup for other OS'es. Also there is lmimewrapper.pp in LNet: procedure TMimeFileSection.SetContentType(const aFileName: string);

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread leledumbo
No, we don't have a builtin one. However using any mime.types file (I forgot where I got mine, it's either from one of fpweb/lnet demo or my apache/php installation) you can do what you want: uses fpmimetypes; ... TheMimeType := MimeTypes.GetMimeType(ExtractFileExt(AFileName)); // TheMimeType no

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread leledumbo
Oh, I forgot that you need to: MimeTypes.LoadFromFile(AMimeTypesFile); first. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Function-to-get-the-mimetype-from-a-file-extension-tp3973851p3973969.html Sent from the Free Pascal - Lazarus mailing list archi

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Mark Morgan Lloyd
Felipe Monteiro de Carvalho wrote: Hello, I need this now and after some Googling I couldn't find anything. So I was wondering, maybe we already have this somewhere in FPC or Lazarus? If not it might be something to consider adding to LazUtils. On what platform? On Windows you'd want something

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread waldo kitty
On 5/9/2012 07:39, Felipe Monteiro de Carvalho wrote: Hello, I need this now and after some Googling I couldn't find anything. So I was wondering, maybe we already have this somewhere in FPC or Lazarus? If not it might be something to consider adding to LazUtils. wouldn't it be better to use m

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Martin
On 09/05/2012 10:02, Graeme Geldenhuys wrote: Hi Darius, On 8 May 2012 22:31, Darius Blaszyk wrote: One of my frustrations with the IDE have been when debugging record or class variables. The data is truncated to 255 characters and it's very difficult to find the appropriate variable within th

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread michael . vancanneyt
On Wed, 9 May 2012, Felipe Monteiro de Carvalho wrote: Hello, I need this now and after some Googling I couldn't find anything. So I was wondering, maybe we already have this somewhere in FPC or Lazarus? If not it might be something to consider adding to LazUtils. FPC contains this unit: f

[Lazarus] Lazarus port of Phoenix Mail

2012-05-09 Thread Nataraj S Narayan
Hi http://phxmail.sourceforge.net/ Is it possible to compile Phoenix Mail client on lazarus? I used to compile and use in Delphi 4, while extensively using it till 2007. regards Nataraj -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Graeme Geldenhuys
Hi Martin, On 9 May 2012 14:50, Martin wrote: > > - Does everyone know of the "inspect" window?  (And that watches have a > context menu entry, to display them in the inspect window. My Lazarus (trunk) is about one month old so maybe this has already been fixed, but here are three immediate pro

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Martin
On 09/05/2012 14:15, Graeme Geldenhuys wrote: Hi Martin, On 9 May 2012 14:50, Martin wrote: - Does everyone know of the "inspect" window? (And that watches have a context menu entry, to display them in the inspect window. My Lazarus (trunk) is about one month old so maybe this has already b

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Felipe Monteiro de Carvalho
On Wed, May 9, 2012 at 2:46 PM, waldo kitty wrote: > wouldn't it be better to use mimemagic instead of relying on the file's > extension? You mean opening the file and reading the first bytes? For my use case that's an over complication, and subject to multiple possible errors: Permission errors

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Felipe Monteiro de Carvalho
On Wed, May 9, 2012 at 2:51 PM, wrote: > FPC contains this unit: > fpmimetypes.pp > It is used by fcl-web. On linux, it loads /etc/mime.types. > On windows not yet, I must still look up how to do this. I just opened "adb shell" and there is no such file in my HTC Wildfire. I'd really like a sta

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread michael . vancanneyt
On Wed, 9 May 2012, Felipe Monteiro de Carvalho wrote: On Wed, May 9, 2012 at 2:51 PM, wrote: FPC contains this unit: fpmimetypes.pp It is used by fcl-web. On linux, it loads /etc/mime.types. On windows not yet, I must still look up how to do this. I just opened "adb shell" and there is n

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Graeme Geldenhuys
Hi, On 9 May 2012 15:35, Martin wrote: > > The inspect and watches have different purpose... Which are? Even from my delphi days I never used Inspect, only Watches - maybe I missed something all these years. :-) > So the questions are (if the grid is fixed): > > 1) what is the preferred displa

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Felipe Monteiro de Carvalho
On Wed, May 9, 2012 at 4:15 PM, wrote: > Distribute a mime.types from a unix box with your app and load this in the > fpmimetypes unit using the provided function. > That's what I do on Windows. By far the easiest solution :) My code is the LCL, so I cannot do that without forcing all LCL-Custom

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Graeme Geldenhuys
On 9 May 2012 14:46, waldo kitty wrote: > > wouldn't it be better to use mimemagic instead of relying on the file's > extension? > > i can easily name foo.gif as foo.txt and those systems that do properly look +1 Windows and Mac OS X fails that test. Linux rules in that regards. :) Side note: S

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Graeme Geldenhuys
On 9 May 2012 14:51, wrote: > > It is used by fcl-web. On linux, it loads /etc/mime.types. I don't know the exact format of that file, I guessed "mime type name" then "file extension list" But on my Ubuntu 10.04 that file has many lines only showing the "mime type name" with no extension mentio

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Graeme Geldenhuys
On 9 May 2012 16:15, wrote: > > That's what I do on Windows. By far the easiest solution :) Ingenious solution. :-) -- Regards,   - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net --

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Martin
On 09/05/2012 15:32, Graeme Geldenhuys wrote: Hi, On 9 May 2012 15:35, Martin wrote: The inspect and watches have different purpose... Which are? Even from my delphi days I never used Inspect, only Watches - maybe I missed something all these years. :-) Well the inspect, has the same purpose

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread Henry Vermaak
On 09/05/12 15:47, Graeme Geldenhuys wrote: > I know Linux (at least Gnome) uses magic numbers (first 2-4 bytes of a > file) to detect the real file type without looking at the file > extension. These magic numbers information is stored somewhere in > linux (can't remember where now), and it includ

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread michael . vancanneyt
On Wed, 9 May 2012, Graeme Geldenhuys wrote: On 9 May 2012 14:51, wrote: It is used by fcl-web. On linux, it loads /etc/mime.types. I don't know the exact format of that file, I guessed "mime type name" then "file extension list" Correct. But on my Ubuntu 10.04 that file has many li

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread michael . vancanneyt
On Wed, 9 May 2012, Felipe Monteiro de Carvalho wrote: On Wed, May 9, 2012 at 4:15 PM, wrote: Distribute a mime.types from a unix box with your app and load this in the fpmimetypes unit using the provided function. That's what I do on Windows. By far the easiest solution :) My code is the

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Martin
On 09/05/2012 15:32, Graeme Geldenhuys wrote: So the questions are (if the grid is fixed): 1) what is the preferred display: - treeview - grid I would still go for the treeview as it could nicely display the hierarchy of properties (if supported). There also is the option to maintain both, the

Re: [Lazarus] Improve message dialog

2012-05-09 Thread Lukasz Sokol
On 09/05/2012 15:32, Graeme Geldenhuys wrote: > Hi, > > On 9 May 2012 15:35, Martin wrote: >> >> The inspect and watches have different purpose... > > Which are? Even from my delphi days I never used Inspect, only Watches > - maybe I missed something all these years. :-) > I /think/ Inspect win

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread waldo kitty
On 5/9/2012 10:37, Graeme Geldenhuys wrote: On 9 May 2012 14:46, waldo kitty wrote: wouldn't it be better to use mimemagic instead of relying on the file's extension? i can easily name foo.gif as foo.txt and those systems that do properly look +1 Windows and Mac OS X fails that test. Linux

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread waldo kitty
On 5/9/2012 09:59, Felipe Monteiro de Carvalho wrote: On Wed, May 9, 2012 at 2:46 PM, waldo kitty wrote: wouldn't it be better to use mimemagic instead of relying on the file's extension? You mean opening the file and reading the first bytes? yes, it is the best way... but not all are at th

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread silvioprog
Please see "MimeTypeFromExt" function in Synapse project: https://synalist.svn.sourceforge.net/svnroot/synalist/trunk/mimepart.pas -- Silvio Clécio Site - LazSolutions - LazWebSolutions - -- _

[Lazarus] Rev 37233 too slooow

2012-05-09 Thread Leonardo M . Ramé
Hi, does anyone noted the latest revision is to slow, it brings down the whole machine until Lazarus is killed. I'm using Linux x86_64 - Ubuntu 12.04. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@li

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Mattias Gaertner
On Wed, 9 May 2012 15:48:40 -0300 Leonardo M. Ramé wrote: > Hi, does anyone noted the latest revision is to slow, it brings down the > whole machine until Lazarus is killed. > > I'm using Linux x86_64 - Ubuntu 12.04. Did you uninstall and/or disable liboverlay? Mattias --

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 20:56:09 +0200, Mattias Gaertner wrote: > On Wed, 9 May 2012 15:48:40 -0300 > Leonardo M. Ramé wrote: > > > Hi, does anyone noted the latest revision is to slow, it brings down the > > whole machine until Lazarus is killed. > > > > I'm using Linux x86_64 - Ubuntu 12.04. > > Did yo

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Mattias Gaertner
On Wed, 9 May 2012 16:04:56 -0300 Leonardo M. Ramé wrote: > On 2012-05-09 20:56:09 +0200, Mattias Gaertner wrote: > > On Wed, 9 May 2012 15:48:40 -0300 > > Leonardo M. Ramé wrote: > > > > > Hi, does anyone noted the latest revision is to slow, it brings down the > > > whole machine until Lazaru

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 21:45:46 +0200, Mattias Gaertner wrote: > On Wed, 9 May 2012 16:04:56 -0300 > Leonardo M. Ramé wrote: > > > On 2012-05-09 20:56:09 +0200, Mattias Gaertner wrote: > > > On Wed, 9 May 2012 15:48:40 -0300 > > > Leonardo M. Ramé wrote: > > > > > > > Hi, does anyone noted the latest re

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Mattias Gaertner
On Wed, 9 May 2012 17:00:53 -0300 Leonardo M. Ramé wrote: >[...] > > > > > I'm using Linux x86_64 - Ubuntu 12.04. >[...] > > cd /path/to/lazarus/directory > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > I've tested that and the slowness still continues. Can you find out which revision caused it?

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 22:18:26 +0200, Mattias Gaertner wrote: > On Wed, 9 May 2012 17:00:53 -0300 > Leonardo M. Ramé wrote: > > >[...] > > > > > > I'm using Linux x86_64 - Ubuntu 12.04. > >[...] > > > cd /path/to/lazarus/directory > > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > > > > I've tested that an

[Lazarus] MS SQL Connector Icon and ms icon, logo, images, ( you name it ) license.

2012-05-09 Thread Dimitrios Chr. Ioannidis
Hi all, today i checked out, after a long time, lazarus trunk ( i usually work with fixes 2 6 ) and after i choose the sqldb tab, i noticed the ms sql icon. Because i didn't like it much and had some free time, i opened Gimp and tried to do something different. After LacaK2's comment in th

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 17:25:00 -0300, Leonardo M. Ramé wrote: > On 2012-05-09 22:18:26 +0200, Mattias Gaertner wrote: > > On Wed, 9 May 2012 17:00:53 -0300 > > Leonardo M. Ramé wrote: > > > > >[...] > > > > > > > I'm using Linux x86_64 - Ubuntu 12.04. > > >[...] > > > > cd /path/to/lazarus/directory > >

[Lazarus] Debugger problems

2012-05-09 Thread Leonardo M . Ramé
I'm using Lazarus & Fpc compiled from trunk, on Ubuntu 12.04 x86_64. Since today, I found the debugger stopped working, I mean, breakpoints are never reached, also, when I close the applications started from the IDE (F9), I get this error message: The GDB command: "-exec-run" did not return any r

Re: [Lazarus] Debugger problems

2012-05-09 Thread Martin
On 09/05/2012 23:41, Leonardo M. Ramé wrote: I'm using Lazarus& Fpc compiled from trunk, on Ubuntu 12.04 x86_64. Since today, I found the debugger stopped working, I mean, breakpoints are never reached, also, when I close the applications started from the IDE (F9), I get this error message: Th

Re: [Lazarus] Debugger problems

2012-05-09 Thread Flávio Etrusco
Hi, Since you said in the other thread that you wiped your Lazarus configuration, did you remember do reconfigure the debugger in the IDE? (a default I'd love to change...) Regards, Flávio On Wed, May 9, 2012 at 7:41 PM, Leonardo M. Ramé wrote: > I'm using Lazarus & Fpc compiled from trunk, on U

Re: [Lazarus] Debugger problems

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 23:52:06 +0100, Martin wrote: > On 09/05/2012 23:41, Leonardo M. Ramé wrote: > >I'm using Lazarus& Fpc compiled from trunk, on Ubuntu 12.04 x86_64. > > > >Since today, I found the debugger stopped working, I mean, breakpoints > >are never reached, also, when I close the applications

Re: [Lazarus] Debugger problems

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 19:52:21 -0300, Flávio Etrusco wrote: > Hi, > Since you said in the other thread that you wiped your Lazarus > configuration, did you remember do reconfigure the debugger in the > IDE? (a default I'd love to change...) > > Regards, > Flávio > Yes, of course. -- Leonardo M. Ramé h

Re: [Lazarus] Debugger problems

2012-05-09 Thread Martin
Looks like you have set "InterlnalStartBreak" (from the debugger options / property grid) to "gbsAddZero" That option does not work with gdb 7.4 (a bug in gdb 7.4) I had feedback from one of the developers, that it may be fixed in gdb trunk, but I don't think it is fixed in any release yet. h

Re: [Lazarus] Debugger problems

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-10 00:53:45 +0100, Martin wrote: >Looks like you have set "InterlnalStartBreak" (from the debugger options / >property grid) to "gbsAddZero" > >That option does not work with gdb 7.4 (a bug in gdb 7.4) > >I had feedback from one of the developers, that it may be fixed i

Re: [Lazarus] Debugger problems

2012-05-09 Thread Martin
On 10/05/2012 01:07, Leonardo M. Ramé wrote: On 2012-05-10 00:53:45 +0100, Martin wrote: Looks like you have set "InterlnalStartBreak" (from the debugger options / property grid) to "gbsAddZero" That option does not work with gdb 7.4 (a bug in gdb 7.4) I had feedback from one o

Re: [Lazarus] Debugger problems

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-10 01:13:40 +0100, Martin wrote: > On 10/05/2012 01:07, Leonardo M. Ramé wrote: > >On 2012-05-10 00:53:45 +0100, Martin wrote: > >>Looks like you have set "InterlnalStartBreak" (from the debugger > >> options / > >>property grid) to "gbsAddZero" > >> > >>That option does not

Re: [Lazarus] Debugger problems

2012-05-09 Thread Martin
On 10/05/2012 01:16, Leonardo M. Ramé wrote: Ok, that is weird, I will analyse that further. In the mean time try to set it to gdsbMain. (or gdsbEntry) hopefully that will work around Thank you very much! Martin, changing to gdsbMain did the trick. I found indeed, the IDE optimizes gdbsDefa

Re: [Lazarus] Debugger problems

2012-05-09 Thread Martin
I also noted that your gdb is localized. It appears that most of the important msg are in english. But I found at some that are translated. 1) The IDE looks for entry point (which your gdb reports as Punto de entrada). For that fortunately the IDE has a fallback. 2) Then there is file type

Re: [Lazarus] Rev 37233 too slooow

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-09 19:15:14 -0300, Leonardo M. Ramé wrote: > On 2012-05-09 17:25:00 -0300, Leonardo M. Ramé wrote: > > On 2012-05-09 22:18:26 +0200, Mattias Gaertner wrote: > > > On Wed, 9 May 2012 17:00:53 -0300 > > > Leonardo M. Ramé wrote: > > > > > > >[...] > > > > > > > > I'm using Linux x86_64 -

Re: [Lazarus] Debugger problems

2012-05-09 Thread Leonardo M . Ramé
On 2012-05-10 01:27:25 +0100, Martin wrote: > On 10/05/2012 01:16, Leonardo M. Ramé wrote: > >>Ok, that is weird, I will analyse that further. > >> > >>In the mean time try to set it to gdsbMain. (or gdsbEntry) hopefully that > >>will work around > >> > >Thank you very much! Martin, changing to gds

Re: [Lazarus] MS SQL Connector Icon and ms icon, logo, images, ( you name it ) license.

2012-05-09 Thread Reinier Olislagers
On 9-5-2012 22:46, Dimitrios Chr. Ioannidis wrote: > Hi all, Hi Dimitrios, > today i checked out, after a long time, lazarus trunk ( i usually work > with fixes 2 6 ) and after i choose the sqldb tab, i noticed the ms sql > icon. Because i didn't like it much and had some free time, i opened > G