Re: [Lazarus] Date value 0
Gordon Cooper wrote: I once worked in the international section of the New Zealand Meteorological Servce, which used Greenwich Time (UTC). So, each day started at noon, 12 hours behind local time. Plenty of scope for confusion there. But was conveniently in line with the astronomical convention of the day starting at Noon. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Date value 0
I must say that I'm amazed at how long this thread is - but then I shouldn't be. Many moons ago, I used to work at the long gone British Mainframe Computer company ICL. Here, there was a well used term a bicycle sheds argument. This supposedly came from the sales force retelling how the board of a large company had once taken two minutes to approve the purchase of a multi-million pound mainframe and then spent the next two hours discussing a small bill for the repair of the office bicycle shed. This was allegedly because they all understood bicycle sheds, but none of them had a clue how a computer worked. This thread could well be an example of such an argument. Perhaps we should leave it as: The 24 hour clock is a modulo 24 numbering system, starting at midnight. The 12 hour clock is a modulo 12 numbering system starting at midnight and noon, where zero is conventionally written as 12, with conventions distinguishing the periods between noon and midnight and midnight and noon. As to why this is so, I would quote the late great Douglas Adams because the stupid monkey didn't know any better. Tony On 28/05/15 17:35, patspiper wrote: On 28/05/15 18:57, Jürgen Hestermann wrote: Am 2015-05-28 um 17:14 schrieb waldo kitty: i don't know why it isn't confident... am is morning so 12am is the very first entry into morning as 12pm is the very first entry into afternoon... i don't understand the confusion or the problem... So the day starts with 12 at midnight and then switches to 1 an hour later? If that isn't confusing... In am/pm mode, this is how it goes indeed. When it is 30 minutes past midnight, you say it is 12:30 (implicit am). An hour later, it becomes 1:30. In military time (24 hrs), then they become 00:30 and 1:30. Stephano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus IDE pixelated on Mac with Retina display
On 2015-05-29 12:04, Graeme Geldenhuys wrote: applications, but trying that with Lazarus IDE, Retinizer says that Lazarus is already Hi-Res enabled Found a solution. I had to comment out the NSHighResolutionCapable line in the Info.plist file, then use Retinizer to fix hi-res support. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] IDE under OSX causes TDefaultComponentEditor error
Hi, New Lazarus v1.4 install from the files on SourceForge, using OSX 10.9.5. If I create a new application and drop a button on the empty form, double click the button so I can implement a OnClick event handler, the IDE pops up with an error Error in TDefaultComponentEditor unable to find method. The IDE also opened the lclclasses.pp unit and the Messages Window shows that on line 26 it can't find the Classes unit.?? I did some Google searching and found references to this same error back in 2010, for Lazarus 0.9.29 under Windows. The forum comments weren't much help in my case though. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE under OSX causes TDefaultComponentEditor error
You probably need to Tools-Rescan FPC Source Directory? thanks, Dmitry On Fri, May 29, 2015 at 7:50 AM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: Hi, New Lazarus v1.4 install from the files on SourceForge, using OSX 10.9.5. If I create a new application and drop a button on the empty form, double click the button so I can implement a OnClick event handler, the IDE pops up with an error Error in TDefaultComponentEditor unable to find method. The IDE also opened the lclclasses.pp unit and the Messages Window shows that on line 26 it can't find the Classes unit.?? I did some Google searching and found references to this same error back in 2010, for Lazarus 0.9.29 under Windows. The forum comments weren't much help in my case though. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On 2015-02-05 23:13, Mattias Gaertner wrote: The trick is to close the program, then remove the following two lines from projectname.app/Contents/Info.plist: Arg! It would have saved me so much time, if only I read the whole message thread before trying all kinds of things. :) At least in the end I found the same work-around as you. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On 2015-02-06 08:14, Felipe Monteiro de Carvalho wrote: That's it, I already hate Tim Cook. Someone should resurrect Jobs. I second that motion! :) After all the frustrations we are having with our Macbook Pro + Retina display, my wife refuses to upgrade her 2011 iMac! I don't blame her at all. OSX is getting worse and worse with every release. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Strange: still Mails to my gmail Adress
John Landmesser wrote: thats the source of a Mail ( without gmail in it !!), but it was sent to my gmail address!! If this message was received on your gmail, it wasn't sent there by the mailinglist: Received: from mailer.lazarus.freepascal.org ([80.123.225.56]) by mx-ha.gmx.net (mxgmx105) with ESMTPS (Nemesis) id 0MXndT-1YhKSG3CtD-00Wn7X for jmlandmes...@gmx.de; Thu, 21 May 2015 16:45:59 +0200 Here you see that the message from mailer.lazarus... is recieved by gmx. Are you sure you don't have a mailforward configured from gmx to gmail? Are you sure you don't have a mailpop configured in gmail? Marc -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Date value 0
Tony Whyman wrote: I must say that I'm amazed at how long this thread is - but then I shouldn't be. Many moons ago, I used to work at the long gone British Mainframe Computer company ICL. Here, there was a well used term a bicycle sheds argument. This supposedly came from the sales force retelling how the board of a large company had once taken two minutes to approve the purchase of a multi-million pound mainframe and then spent the next two hours discussing a small bill for the repair of the office bicycle shed. This was allegedly because they all understood bicycle sheds, but none of them had a clue how a computer worked. :-) This thread could well be an example of such an argument. Perhaps we should leave it as: The 24 hour clock is a modulo 24 numbering system, starting at midnight. The 12 hour clock is a modulo 12 numbering system starting at midnight and noon, where zero is conventionally written as 12, with conventions distinguishing the periods between noon and midnight and midnight and noon. Yes, I think that's a good informal description. Particularly in view of the fact that efforts were made to measure time in Europe before numeric zero was widely adopted. Now please let's not get bogged down in unequal hours. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Strange: still Mails to my gmail Adress
On 05/29/2015 05:19 AM, Marc Weustink wrote: John Landmesser wrote: thats the source of a Mail ( without gmail in it !!), but it was sent to my gmail address!! If this message was received on your gmail, it wasn't sent there by the mailinglist: Received: from mailer.lazarus.freepascal.org ([80.123.225.56]) by mx-ha.gmx.net (mxgmx105) with ESMTPS (Nemesis) id 0MXndT-1YhKSG3CtD-00Wn7X for jmlandmes...@gmx.de; Thu, 21 May 2015 16:45:59 +0200 Here you see that the message from mailer.lazarus... is recieved by gmx. Are you sure you don't have a mailforward configured from gmx to gmail? Are you sure you don't have a mailpop configured in gmail? additionally, if you are pulling all these mails to a local mailstore with something like thunderbird, are you sure you don't have them being stored in a folder under a different server config? what i mean by that is i keep all my accounts with their own sets of folders... at one time i did have rules to move messages into other folders under other accounts... that wasn't such a good idea so now i keep everything separate... perhaps you have such a rule to copy or move mail into another folder? -- NOTE: No off-list assistance is given without prior approval. Please *keep mailing list traffic on the list* unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus IDE pixelated on Mac with Retina display
Hi, Has anybody got a solution to the very pixelated Lazarus IDE on a Macbook Pro with Retina display? Normally I use Retinizer to fix applications, but trying that with Lazarus IDE, Retinizer says that Lazarus is already Hi-Res enabled (clearly not here), and I should check in the icon (app) settings that it wasn't set to Open in Low Resolution. I can't find this latter setting anywhere. I looked in the Get Info menu item of the Lazarus icon. I'm using OSX 10.9.5 and Lazarus 1.4 (as downloaded) from SourceForge. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On 2015-02-05 22:17, Mattias Gaertner wrote: Maybe a button can be added: 'I can live with that, shut up' to not ask every start. Was that ever added post-v1.4? That nag screen is rather annoying at every start. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE under OSX causes TDefaultComponentEditor error
On Fri, 29 May 2015, Graeme Geldenhuys wrote: Hi, New Lazarus v1.4 install from the files on SourceForge, using OSX 10.9.5. If I create a new application and drop a button on the empty form, double click the button so I can implement a OnClick event handler, the IDE pops up with an error Error in TDefaultComponentEditor unable to find method. The IDE also opened the lclclasses.pp unit and the Messages Window shows that on line 26 it can't find the Classes unit.?? I did some Google searching and found references to this same error back in 2010, for Lazarus 0.9.29 under Windows. The forum comments weren't much help in my case though. Normally, this means it cannot find the FPC sources. Set the directory to the FPC sources correct, and do a rescan FPC source directory from the tools menu. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On Fri, May 29, 2015 at 11:17 AM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: eg: in Lazarus on OSX I pressed F12 to see the form designer, but OSX grabbed the shortcut and rather showed be the useless desktop widgets (clock, calendar etc) screen. That's defaults hate. (an application is bad because its defaults are not matching a users's preference) OSX shortcuts can be configured. As well as Lazarus shortcuts can be remapped to be more Nix/Win like. Just spend some time to configure your environment! thanks, Dmitry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On 29.05.2015 18:17, Graeme Geldenhuys wrote: Their hardware build quality is brilliant on all there products. It's not just about the resolution though. Yes I absolutely love the crispness of hi-res displays, but I'm a creature of habit (aka old school), and just can't get the damn hang of OSX keyboard shortcuts, or their physical keyboard layout (no PgUp/PgDn, Home, End etc). Ok, ok, I do have a thing for keyboards too (I own a ton of them) - after all, the keyboard is my main input method for a computer. eg: in Lazarus on OSX I pressed F12 to see the form designer, but OSX grabbed the shortcut and rather showed be the useless desktop widgets (clock, calendar etc) screen. This is why I don't use Desktop Environments even under FreeBSD or Linux. Instead I use old school (again) Window Managers like JWM, so that nothing steels my keyboard shortcuts. ;-) Regards, - Graeme - I'm still not used to keyboards shortcuts, for example: I found new, move component via keyboard on form while designing, normally use ctrl and arrow keys, in qt osx have to use cmd + ctrl arrows keys, cmd key and ctrl key mixed. For reseloution I'm using 21 monitor via hdmi cable :) and bluetooth keyboard and magic path. I missed my desktop, kubuntu. 15.04 plasma 5 stable shared. I downloaded afew min. ago. Maybe this wekeend I'll re up my desktop. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On 2015-05-29 16:02, Michael Van Canneyt wrote: Most software was simply not designed to run on such high resolutions. It will take some time for the programs to adapt. Their hardware build quality is brilliant on all there products. It's not just about the resolution though. Yes I absolutely love the crispness of hi-res displays, but I'm a creature of habit (aka old school), and just can't get the damn hang of OSX keyboard shortcuts, or their physical keyboard layout (no PgUp/PgDn, Home, End etc). Ok, ok, I do have a thing for keyboards too (I own a ton of them) - after all, the keyboard is my main input method for a computer. eg: in Lazarus on OSX I pressed F12 to see the form designer, but OSX grabbed the shortcut and rather showed be the useless desktop widgets (clock, calendar etc) screen. This is why I don't use Desktop Environments even under FreeBSD or Linux. Instead I use old school (again) Window Managers like JWM, so that nothing steels my keyboard shortcuts. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
On 2015-05-29 16:26, Dmitry Boyarintsev wrote: Just spend some time to configure your environment! I know both OSX and Lazarus allows for shortcut customisation. The problem is (partly because I'm a Dvorak user), I have customised my shortcuts in Lazarus IDE and my other tools (all under FreeBSD) extensively. To try and duplicate that on Linux or OSX will take hours! I just don't have that time, so I'll just complain and move on. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Base64 broken in json?
Hi, does anyone know if when adding a base64 encoded string to an TJsonObject and calling AsJson method, the base64 is broken? I did try to decode (with base64 -d command) and I'm getting errors when trying to decode the base64 string contained in the json. Btw, this is the 1nst time I get errors, the file encoded is about 1.5mb. -- Leonardo M. Ramé Medical IT - Griensu S.A. Av. Colón 636 - Piso 8 Of. A X5000EPT -- Córdoba Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19 Cel.: +54 9 (011) 40871877 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac retina pain
The _real_ solution is also hidden in this thread: Felipe found it, perhaps the fix never found it's way in the Lazarus Sourcecode: With this search string: site:lists.apple.com/archives/carbon-dev retina Here is the magic! Commands in the terminal: Retinize! defaults write lazarus.freepascal.ide AppleMagnifiedMode NO De-Retinize! defaults write lazarus.freepascal.ide AppleMagnifiedMode YES Looks like that it can be fixed in code too: http://sdg.mesonet.org/people/brad/XCode3/Documentation/DocSets/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset/Contents/Resources/Documents/#documentation/UserExperience/Conceptual/HiDPIOverview/HiDPIConcepts/HiDPIConcepts.html by specifying kWindowFrameworkScaledAttribute at window creation time. Am 29.05.15 um 13:32 schrieb Graeme Geldenhuys: On 2015-02-05 23:13, Mattias Gaertner wrote: The trick is to close the program, then remove the following two lines from projectname.app/Contents/Info.plist: Arg! It would have saved me so much time, if only I read the whole message thread before trying all kinds of things. :) At least in the end I found the same work-around as you. Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Base64 broken in json?
El 29/05/15 a las 14:55, Leonardo M. Ramé escibió: Hi, does anyone know if when adding a base64 encoded string to an TJsonObject and calling AsJson method, the base64 is broken? I did try to decode (with base64 -d command) and I'm getting errors when trying to decode the base64 string contained in the json. Btw, this is the 1nst time I get errors, the file encoded is about 1.5mb. Is weird but returning a json composed by hand worked without issues. I'll make an example and post to Mantis. Leonardo. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus