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
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
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
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
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
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);
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
--
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
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
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
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
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
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
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
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
Please see "MimeTypeFromExt" function in Synapse project:
https://synalist.svn.sourceforge.net/svnroot/synalist/trunk/mimepart.pas
--
Silvio Clécio
Site -
LazSolutions -
LazWebSolutions -
--
_
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
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
--
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
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
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
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?
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
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
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
> >
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
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
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
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
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
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
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
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
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
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
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
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 -
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
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
55 matches
Mail list logo