[fpc-pascal] Re: what happened to the "contributed units" listing?
Bye2 PHP based list, welcome fpweb + ExtJS based list :) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/what-happened-to-the-contributed-units-listing-tp5712743p5712745.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] what happened to the "contributed units" listing?
El 07/02/2013 2:27, Michalis Kamburelis escribió: It's on http://www.freepascal.org/contrib/contribs.html now. But some pages may still contain old links, see http://bugs.freepascal.org/view.php?id=23769 . Hello, Please, add some kind of notification that the page (and maybe others) need javascript enabled to be displayed. I thought that the page was empty :( -- ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
On Thu, 7 Feb 2013, José Mejuto wrote: El 07/02/2013 2:27, Michalis Kamburelis escribió: It's on http://www.freepascal.org/contrib/contribs.html now. But some pages may still contain old links, see http://bugs.freepascal.org/view.php?id=23769 . Hello, Please, add some kind of notification that the page (and maybe others) need javascript enabled to be displayed. I thought that the page was empty :( I didn't imagine there are still people who disable javascript in their browser... These days, about the half of internet does not work without Javascript enabled in the browser. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
El 07/02/2013 13:50, Michael Van Canneyt escribió: It's on http://www.freepascal.org/contrib/contribs.html now. But some pages may still contain old links, see http://bugs.freepascal.org/view.php?id=23769 . Hello, Please, add some kind of notification that the page (and maybe others) need javascript enabled to be displayed. I thought that the page was empty :( I didn't imagine there are still people who disable javascript in their browser... These days, about the half of internet does not work without Javascript enabled in the browser. Hello, Yes, and 80% of intrusive ads also do not work, javascript code injection also does not work, pop-up, pop-under, autoredirects, and many many nasty things do not work also. My Javascript is selectivelly disabled, some trusted sites have javascript enabled (as freepascal.com) but as the sript is located in other server (cachefly.net) it was by default blocked. A simple Javascript disabled! should be enought to note that Javascript is needed. Just a side note, I think that the links in the list should open in a new browser tab by default, do not ? -- ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
On Thu, 7 Feb 2013, José Mejuto wrote: El 07/02/2013 13:50, Michael Van Canneyt escribió: It's on http://www.freepascal.org/contrib/contribs.html now. But some pages may still contain old links, see http://bugs.freepascal.org/view.php?id=23769 . Hello, Please, add some kind of notification that the page (and maybe others) need javascript enabled to be displayed. I thought that the page was empty :( I didn't imagine there are still people who disable javascript in their browser... These days, about the half of internet does not work without Javascript enabled in the browser. Hello, Yes, and 80% of intrusive ads also do not work, javascript code injection also does not work, pop-up, pop-under, autoredirects, and many many nasty things do not work also. My Javascript is selectivelly disabled, some trusted sites have javascript enabled (as freepascal.com) but as the sript is located in other server (cachefly.net) it was by default blocked. A simple Javascript disabled! should be enought to note that Javascript is needed. Will do. Just a side note, I think that the links in the list should open in a new browser tab by default, do not ? Good suggestion, will do too. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
José Mejuto wrote: El 07/02/2013 13:50, Michael Van Canneyt escribió: It's on http://www.freepascal.org/contrib/contribs.html now. But some pages may still contain old links, see http://bugs.freepascal.org/view.php?id=23769 . Hello, Please, add some kind of notification that the page (and maybe others) need javascript enabled to be displayed. I thought that the page was empty :( I didn't imagine there are still people who disable javascript in their browser... These days, about the half of internet does not work without Javascript enabled in the browser. Hello, Yes, and 80% of intrusive ads also do not work, javascript code injection also does not work, pop-up, pop-under, autoredirects, and many many nasty things do not work also. My Javascript is selectivelly disabled, some trusted sites have javascript enabled (as freepascal.com) but as the sript is located in other server (cachefly.net) it was by default blocked. Agreed. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
On 7 February 2013 12:50, Michael Van Canneyt wrote: > > > On Thu, 7 Feb 2013, José Mejuto wrote: > >> El 07/02/2013 2:27, Michalis Kamburelis escribió: >> >>> It's on http://www.freepascal.org/contrib/contribs.html now. But some >>> pages may still contain old links, see >>> http://bugs.freepascal.org/view.php?id=23769 . >> >> >> Hello, >> >> Please, add some kind of notification that the page (and maybe others) >> need javascript enabled to be displayed. I thought that the page was empty >> :( > > > I didn't imagine there are still people who disable javascript in their > browser... > > These days, about the half of internet does not work without Javascript > enabled in the browser. > > Michael. > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal I disable Javascript on all websites and selectively enable them, and even them for the majority of the sites it is temporary. -- Frank Church === http://devblog.brahmancreations.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: what happened to the "contributed units" listing?
On 7 February 2013 12:35, leledumbo wrote: > Bye2 PHP based list, welcome fpweb + ExtJS based list :) > > > > -- Do we get the chance to view the code used for FPC/Lazarus infrastructure and learn from it and be able to update it? I don't think web development coding in FPC/Lazarus will take off if code samples are not freely available, especially if there are no commercial confidentiality issues involved. -- Frank Church === http://devblog.brahmancreations.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
On 2013-02-07 13:00, Michael Van Canneyt wrote: >> >> A simple Javascript disabled! should be enought to note >> that Javascript is needed. > > Will do. There also seems to be a bug in sorting. Sort the first column (Name) in ascending order, then the list appears as... RvRsaLib punk commander AES... ASP... Account Advanced... ... 1) The first two items don't start with 'A', yet appear at the top of the list 2) It seems upper case letters take preference (AS... before Ac...) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
Am 2013-02-07 13:56, schrieb José Mejuto: My Javascript is selectivelly disabled, some trusted sites have javascript enabled (as freepascal.com) but as the sript is located in other server (cachefly.net) it was by default blocked. Yes, I have switched it off too (there are only a very few exceptions). Even freepascal.org works fine for me without javascript. Today active scripting on web pages is the most popular way to infect computers. By switching it off I remove a root cause of infection. And all pages which do not work without it are mostly crap anyway. I don't need them. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] JSON coders beware...
i just saw this in my latest copy of @RISK and thought i'd share it since there seem to be quite a few coders using JSON... http://www.reddit.com/r/netsec/comments/17xzlw/why_does_google_prepend_while1_to_their_json/ not knowing others' level of security awarness or what data they are transferring via JAON, i just thought it prudent to make this post ;) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
On 2/7/2013 07:50, Michael Van Canneyt wrote: On Thu, 7 Feb 2013, José Mejuto wrote: Please, add some kind of notification that the page (and maybe others) need javascript enabled to be displayed. I thought that the page was empty :( I didn't imagine there are still people who disable javascript in their browser... FWIW: i don't specifically disable it but it is blocked by my protections... especially if it comes from a different domain than the page it on... These days, about the half of internet does not work without Javascript enabled in the browser. good thing that no one visits that half of the internet ;) :P :mrgreen: ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] what happened to the "contributed units" listing?
Am 07.02.2013 13:50, schrieb Michael Van Canneyt: > > > On Thu, 7 Feb 2013, José Mejuto wrote: > >> El 07/02/2013 2:27, Michalis Kamburelis escribió: >> >>> It's on http://www.freepascal.org/contrib/contribs.html now. But some >>> pages may still contain old links, see >>> http://bugs.freepascal.org/view.php?id=23769 . >> >> Hello, >> >> Please, add some kind of notification that the page (and maybe others) >> need javascript enabled to be displayed. I thought that the page was >> empty :( > > I didn't imagine there are still people who disable javascript in their > browser... I've it also disabled by default. > > These days, about the half of internet does not work without Javascript > enabled in the browser. The important 0.0001% works ;) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] -fPic
Am 23.01.2013 09:26, schrieb Mattias Gaertner: > Hi, > > When and where (platform) is -fPic needed for libraries? Check for tf_library_needs_pic in the system info files of fpc (fpc/compiler/systems/i*.pas). ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: what happened to the "contributed units" listing?
On Thu, 7 Feb 2013, Frank Church wrote: On 7 February 2013 12:35, leledumbo wrote: Bye2 PHP based list, welcome fpweb + ExtJS based list :) -- Do we get the chance to view the code used for FPC/Lazarus infrastructure and learn from it and be able to update it? I don't think web development coding in FPC/Lazarus will take off if code samples are not freely available, especially if there are no commercial confidentiality issues involved. All FPC code is in the SVN repository. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: [fpc-announce] Feature announcement: Type helpers
Hello, I tried to compile the example: type TLongIntHelper = type helper for LongInt class procedure Test; static; end; class procedure TLongIntHelper.Test; begin Writeln('Test'); end; var i: LongInt; begin i.Test; $12345678.Test; LongInt.Test; end. Result: 0:25:46,51 G:\ob\syncdirs>ppc386 -vv -al -CioOrt -Cs600 -gclt -Mobjfpc -O1 -OpPENTIUM -Fuu:\ -FuM:\u -FuC:\c\-u -FiC:\c\-u -Fuz:\-u -Fiz:\-u -FuP:\gs\tp55\includes -Fuf:\-u -Fiu:\ -FiM:\u -FiP:\gs\tp55\includes -Fif:\-u -FE. thelper thelper.pas(2,33) Error: Identifier not found "helper" thelper.pas(2,33) Error: Error in type definition thelper.pas(2,33) Error: Can't create unique type from this type thelper.pas(2,33) Fatal: Syntax error, ";" expected but "FOR" found Fatal: Compilation aborted The compiler is freshly generated from the SVN Does the compiler expect special options to invoke the record helper feature? Gerhard - Original Message - From: "Sven Barth" To: Cc: ; "FPC developers' list" Sent: Wednesday, February 06, 2013 10:49 AM Subject: [fpc-announce] Feature announcement: Type helpers Hello Free Pascal community! I'm pleased to announce the addition of type helpers which extend the existing helper concept with the ability to extend primitive types. Motivation: With class and record helpers the possibility was created to extend classes and records with types without subclassing the type (which wouldn't be possible with records anyway). This allows to add e.g. methods to types in units that you can't influence or where you can't influence with type is instantiated (e.g. the TStrings descendant used in TMemo). Now it is logical to extend this also to other types supported by Pascal, but here more driven by the possibility to group methods together and have them appear to belong to the primitive type. While this does not bring the concepts of boxing of managed languages/environments like Java and .NET to Pascal it does nevertheless look this way. Syntax: The declaration of type helpers looks as follows: TYPENAME = type helper[(BASEHELPER)] for EXTENDEDTYPE DECLARATIONS end; Like class and record helpers they support all visibility sections and you can define methods, properties and constructors. Inside methods declared in the helper "Self" will be of the extended type's type and it's value can also be changed. Similar to record helpers class methods MUST be declared as static. Usage: A type helper is active if it is in scope. This means it must either have been declared in the same unit before the code which wants to use the helper or it needs to be declared in a used unit. As with class and type helpers only one helper for a given type can be active and thus you need to keep in mind the scoping rules when using helpers (e.g. the current unit is searched in the order implementation section then interface section (if the code is in the implementation section) and then the used units are searched from right to left and each unit from top to bottom). In some cases the meaning of a type depends on the compiler settings the helper is compiled with. E.g. the type Integer is either a ShortInt or a LongInt depending on the current mode (fpc/tp vs. objfpc/delphi) and the type String is different depending on the switches {$H+/-} and {$modeswitch unicodestring}. This needs to be kept in mind when working with these "generic" types. Another special case is the type Extended on platforms that don't support that type (and thus it will be defined as Double). Additionally a type declared as "NewType = type OldType" is considered a completly independant type as it is the case with e.g. operator overloads as well. If a helper for the type is in scope you can simply invoke it's methods or properties like you'd do on classes or records. Let's suppose we have a helper with method "ToString: String" for the type LongInt in scope then it will look like this: === example begin === var i: LongInt; begin Writeln(i.ToString); end. === example end === Additionally to invoking type helpers on variables they can also be used on constants though special care needs to be taken that the correct type is used. E.g. the constant "200" will be handled as a "Byte" whereas "20" will be handled as "SmallInt". Also the type of string constants depends on the current mode switch (especially {$H+/-} and {$modeswitch unicodestring}) and also the content of the string. E.g. in case of "{$mode objfpc}{$H+}" a string containing unicode characters will be handled as a UnicodeString constant and thus only helpers for UnicodeString will apply. For the following example let's assume the helper from the previous example is in scope again: === example begin === begin Writeln($12345678.ToString); end. === example end === Additionally addresses (e.g. "@i") (type: Pointer) and the built in constants "True" (type: Boolean), "False" (type: Boolean) and "Nil" (type:
[fpc-pascal] Re: JSON coders beware...
On 7-2-2013 20:24, waldo kitty wrote: > > i just saw this in my latest copy of @RISK and thought i'd share it > since there seem to be quite a few coders using JSON... > > http://www.reddit.com/r/netsec/comments/17xzlw/why_does_google_prepend_while1_to_their_json/ > > > not knowing others' level of security awarness or what data they are > transferring via JAON, i just thought it prudent to make this post ;) Please feel free to update http://wiki.lazarus.freepascal.org/Secure_programming with a contribution ;) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: JSON coders beware...
On Fri, 8 Feb 2013, Reinier Olislagers wrote: On 7-2-2013 20:24, waldo kitty wrote: i just saw this in my latest copy of @RISK and thought i'd share it since there seem to be quite a few coders using JSON... http://www.reddit.com/r/netsec/comments/17xzlw/why_does_google_prepend_while1_to_their_json/ not knowing others' level of security awarness or what data they are transferring via JAON, i just thought it prudent to make this post ;) Please feel free to update http://wiki.lazarus.freepascal.org/Secure_programming with a contribution ;) What does this have to do with Pascal ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal