Re: [Lazarus] Zeos, Win 7 (64-bit) e SQLServer 2008: None of the dynamic libraries can be found: ntwdblib.dll
El 31/08/2011 22:46, Marcos Douglas escribió: > Hi, > > Someone here has already developed an application using Zeos, Win 7 > (64-bit) and SQLServer 2008? > My application runs perfectly on WinXP, but gives error when I try > to connect on the database: > "None of the dynamic libraries Can be found: ntwdblib.dll." First: Does ntwdblib.dll exist and is in the path? Second: To be honest I don't know if there it is a compatibility problem, but I would try this: Make sure dlls and lazarus executable are for the same processor. My hypotesis (don't know, just to try) is that If the lazarus target is 64-bit,it may have problems when linking with 32-bit Libraries. Or the other way around. Lazarus target 32-bit and libraries 64-bit. > Has anyone gone through this: > http://lazarus.freepascal.org/index.php?topic=9296.0 > > ... but no solution. > > And I think that Zeos is no problem, but Windows: > http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/db-app-backward-compatibility-with-windows-7/849dc349-274e-43d8-99f9-955d50174851 > > Does anyone have any tips? > > Marcos Douglas > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Zeos, Win 7 (64-bit) e SQLServer 2008: None of the dynamic libraries can be found: ntwdblib.dll
El 01/09/2011 14:33, Marcos Douglas escribió: > I'm thinking to use SQLdb with ODBC... > http://wiki.lazarus.freepascal.org/ODBCConn > > Marcos Douglas Generate a 32-bit executable and try it... just for the sake of science ;-) -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Installing on Ubuntu 9.10
Hello: I had installed in my ubuntu 9.10 Lazarus 0.9.28. I finally decided to upgrade it to 0.9.30. I removed 0.9.28 to start from scratch, downloaded the deb packages fpc-2.42 and lazarus-0.9.30 (in big tarballS) and tried to install. I got circular dependences, lazarus-ide depends on lazarus-ide-gtk2, and lazarus-ide-gtk2 depends on lazarus-ide. I edited the deb package lazarus-ide-gtk2 and removed the dependence on lazarus-ide. So, I finally managed to install it. are these circular dependences normal? I started lazarus and I got packages isues, I removed my $HOME/.lazarus directory and then I could start lazarus without errors. But now I try to add the package sqlite3laz from the IDE when I rebuild it and I get "Can't find unit sqlite3laz". But sqlite3laz. But sqlite3laz.pas is in /usr/lib/lazarus/0.9.30/components/sqlite. Any idea? a problem pith pasths? Do I have to compile sqlite3laz.lpk manually? Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can't find package
Hello: I had installed in my ubuntu 9.10 Lazarus 0.9.28. I finally decided to upgrade it to 0.9.30. I removed 0.9.28 to start from scratch, downloaded the deb packages fpc-2.42 and lazarus-0.9.30 (in big tarballS). After several issues with dependences, I managed to install it. Besides, I have removed the $home/.lazarus directory But now I try to add the package sqlite3laz from the IDE, when I rebuild it and I get "Can't find unit sqlite3laz". But sqlite3laz.pas is in /usr/lib/lazarus/0.9.30/components/sqlite. I tried to compile the package from menu package/open loaded package, but I get "you don't have permission to write on /usr/lib/lazarus directory" or similar. So I have run Lazarus as root and compiled and tried again, now it has compiled the package and generated the following files: /usr/lib/azarus/components/sqlite/lib/i386-linux/gtk2/sqlite3laz.o /usr/lib/azarus/components/sqlite/lib/i386-linux/gtk2/sqlite3laz.compiled /usr/lib/azarus/components/sqlite/lib/i386-linux/gtk2/sqlitecomponenteditor.ppu /usr/lib/azarus/components/sqlite/lib/i386-linux/gtk2/sqlite3laz.ppu /usr/lib/azarus/components/sqlite/lib/i386-linux/gtk2/sqlitecomponenteditor.o But when I build lazarus, I get the same result: "Can't find unit sqlite3laz" any path or macro missing? Any Idea or clue about what's happening? Regards Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Web development and XML database (Mattias)
El 16/11/2011 16:36, Graeme Geldenhuys escribió: > But yes, SQL queries can take long too - depending on what it must do. > I have worked on project where we had to do data conversion from a IBM > mainframe system to a Intel based SQL Server 2000 database. A full > data conversion had to be run on Friday's, and normally only ended on > Monday morning (if no failures occurred). That's 2.5-3.0 days > continuous running, resulting in a 8GB SQL Server database. But this > is an extreme case. :) Updates, inserts and deletes in RDBM are usually slower than many other solutions due transaction tracking, integrity etc. Where retrieving data I think that RDBM are much better where dealing with a lot of data, more flexible and at least as faster as any other solutions. Obviously the advantages of a RDBM have a price, particularly when updating. But IMHO the advantages overcome disadvantages, particularly when dealing with a lot of data. Nevertheless, for small amount of data and/or concrete searches or updates you can design a particular solution that works better. When we must move a lot of data, we remove all triggers, indexes, and foreignkey controls. Then, after moving all data, we activate indexes, triggers, foreign keys etc. Depending on the RDBM you benchmark if it is faster to commit small transactions or large transactions (usually large transactions). In some RDBM you can even disable transactions. Of course this options are for admin management, like migrations, massive structure upgrade etc. Sure that for small amount of data and single user (e.g. configuration files), XML is a good option. -- Saludos Santago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb live example
Really Interesting. I have to take a deep look to Fpweb and ExtJS, it is in my TODO list. The button "save" is a commit. Isn't it? El 21/11/2011 14:37, Dimitrios Chr. Ioannidis escribió: > Hi all, > > i just compiled and upload the fcl web compined example ( source>\source\packages\fcl-web\examples\combined ) at > http://demo.artesoft.gr/combined . I wanted to see how the the fcl web > framework will behave in real life deployment scenario . Needless to > say that everything work like a charm !!! > > > Regarding the enviroment i use first : > > 1) It was compiled with fpc 2.5.1 from > http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 and Lazarus from > http://svn.freepascal.org/svn/lazarus/branches/fixes_0_9_30 . > > 2 ) The example uses the latest 3.x version of the ExtJS Library > installed at demo.artesoft.gr/ext . I changed a little the database, > adding a before update or delete trigger to protect the demo account > from accidents. > > The database is a firebird 2.1 Superserver, and the server is a CentOS > 5.7 64bit with ISPConfig and the demo.artesoft.gr is a subdomain. > > Feel free to do whatever you want with the demo as long is up and > running. > > regards, -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to check if a string is a valid floating-point number.
El 25/11/2011 10:16, Kjow escribió: What about the standard pascal function "val" function IsStrFloatNum(s: string): Boolean; var dummyNumber:double; posError:integer; begin val(s, dummyNumber, posError); result:=(posError=0); end; Time ago I came across a program written by someone that had to import data from an ascii file, and epending upon the contents of the line, select the kind of record to import. The initial programmer used exceptions. "I try this record, if it raises an exception then I try the other". I Changed it to a simple initial check of contents. The initial version took about 30 seconds, my version 3 seconds. Lesson: Exceptions should be use to catch errors, not to common tests. > Hi all, > > I need to know if a string is a valid floating-point number, so I > tried this function: > > function IsStrFloatNum(s: string): Boolean; > begin > try > // try to convert the string into a floatnumber > StrToFloat(s); > // if there is no error the result is true > Result := True; > except > // if there is any error the result is false > Result := False; > end; > end; > > (From: http://www.swissdelphicenter.ch/torry/showcode.php?id=304 ) > > Well, I get this error: > > Debugger Exception Notification > project.exe raised exception class 'EConvertError' with message: > "Cross" is an invalid float > > I used this function some month ago in this project and it worked > without problems, but now (some month after) I re-tried to re-build > and re-use this function and I get this error. > > Did I inadvertently change something? > > > Thank you! > Kjow > > -- > _______ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Regards santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to check if a string is a valid floating-point number.
El vie, 25-11-2011 a las 14:34 +0100, Bart escribió: > On 11/25/11, Santiago A. mailto:s...@ciberpiula.net>> > wrote: > > El 25/11/2011 10:16, Kjow escribió: > > > > What about the standard pascal function "val" > > > > Doesn't Val() use a hardcoded period (.) as decimalseparator? > The StrToFloat() family uses (Default)FormatSettings AFAIK. > > Bart Yes, it does. val uses dot as decimal separator In fact, I am Spanish and I use ',' as decimal separator, so I have such problem. I remember I had used a similar function (in delphi). It deletes '.' (just in case it has thousands separators) then replaces ',' for '.', then applies the 'val'. Probably it could be checked faster scanning chars. But I found that function written and I didn't waste more time optimizing it, anyway it is wide long much better than rising exceptions. By the way, I don't have a delphi near to check it. Is tryStrTofloat a fpc function or it is also a delphi function? If there is such function in delphi, someone gave up searching help too soon. Regards Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded database for Lazarus/Linux
El 18/06/2010 20:18, waldo kitty escribió: > On 6/18/2010 12:39, Jürgen Hestermann wrote: >> but I would prefer if programmers think >> about performance a bit and not use databases for every >> small junk. > > +1000(can't put enough zeros)00 > > imagine how fast our apps would be today if they were developed with > the same attention to compactness and speed as they were 10 years > ago... they'd be even faster if the attention of 20 years ago was used... > It is a problem of coding time vs other resources. It is a problem of reuse vs specialized routines. If you don't write things from scratch, you begin to use libraries and the program gets bloated. Even when you write parts form scratch, sometimes you say "I will extend this procedure so it could be used also for...". When you extend a procedure you add IFs to control different cases, so you are penalizing performance a little. Whenever you, as programmer, make the decision "I don't want to worry about these details when I'm coding, I will let the software takes care of those nasty details", you are relieving of work, and charging that work on the software. Instead of making decisions in code time, you let the software make decisions dynamically in runtime. That has some impact on performance, perhaps only a little, perhaps negligible, but accumulative. A simple case: How many times we use a TStrings when an array of strings would be enough?. How many times in FCL and LCL is TStrings used?. TStrings is a good convenience that is why we used it instead of declaring an array of string of fixed size even when we know the size in advance. In the old days, adding an IF in each iteration was expensive in performance. Now 1000 IFs per iteration have no impact. Unfortunately, every body does it, so everybody uses 1000 IFs per iteration and finally we have 100.000 IFs that have some impact. It is difficult to balance between coding time and performance. But comparing with code written 20 year ago is unfair. It was more simple, now we demand a lot to a simple program. And in the old days many things were written almost from scratch. Nevertheless, perhaps we have gone too far and we should be a little more careful. Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [OT] [LoL]About licences
How to choose the right open source license: http://f.cl.ly/items/2S3I123K113G3v2r1E2H/OSS%20License.png -- Regards Santiago s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embarcadero vs Lazarus/FPC (Oracle vs Google)
El 08/05/2012 10:02, Žilvinas Ledas escribió: > Hello all, > > relevant recent news is that EU court ruled that APIs and programming > languages are not copyrightable: > http://developers.slashdot.org/story/12/05/02/229208/eu-court-rules-apis-programming-languages-not-copyrightable > > So at least in EU it is totally legal. ... so far. There is a strong pressure on EU to sign ACTA. In fact, many countries in EU have signed ACTA bilaterally http://mashable.com/2012/01/27/22-eu-countries-ratify-acta-key-parliament-member-calls-it-a-charade/ It still must be ratified by EU parliament, but... The game is, "We, Commission, will ask you, EU Parliament, to ratify it. If you don't, we will ask you again in a few months. If you don't, we will ask you again in a few months. If you don't, we will ask you again in a few months. If you don't, we will ask you again in a few months. -- Regards Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] License iTextpdf
El mié, 01-08-2012 a las 17:49 +, Mark Morgan Lloyd escribió: > Reinier Olislagers wrote: > > > Perhaps you could try to call pdftk using TProcess? It's open source and > > multi platform (at least Windows and Linux). > > I thought pdftk was a thin wrapper around a library... "pdftk uses a > slightly modified iText Java library (http://itextpdf.sourceforge.net/) > to read and write PDF. The author compiled this Java library using GCJ > (http://gcc.gnu.org) so it could be linked with a front end written in > C++. The pdftk home page is http://www.accesspdf.com/pdftk/."; > Yes, pdftk a frontend of iText. iText is the swiss knife of PDF manipulation. Most tools related to PDF, including many PDF printers and .NET libraries use iText. It is the killer library of PDF tools. But be careful, the license doesn't allow to use it in commercial products (that includes pdftk) http://itextpdf.com/terms-of-use/index.php. I wanted to use it and it is about 2500 eur developer license plus royalties for every copy deployed. Nevertheless, old versions of iTextpdf (before 2010) allow something like LGPL: http://stackoverflow.com/questions/4321207/what-is-latest-version-of-itext-that-is-not-agpl http://itext-general.2136553.n4.nabble.com/Silent-license-change-td2156060.html Santiago -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] License iTextpdf
El mié, 08-08-2012 a las 21:48 +0200, Michael Schneider escribió: > Am Wednesday 08 August 2012 21:40:17 schrieb Santiago A.: > > http://itextpdf.com/terms-of-use/index.php. > hmmm seems plain GNU >From this page: Buying such a license is mandatory as soon as you develop commercial activities distributing the iText software inside your product or deploying it on a network without disclosing the source code of your own applications under the AGPL license. These activities include: offering paid services to customers as an ASP, serving PDFs on the fly in the cloud or in a web application, shipping iText with a closed source product. In fact, I contacted with them via email and I was told that we needed to buy a license if we were going to deploy the DLL with a product. (That was too expensive for us to build a product that was just for a single client). > http://www.pdflabs.com/docs/pdftk-license/ > The list of third part materials includes iText, but in the their description of the license of iText they says that is GPL, so perhaps they are using a pre-2010 version. In such case you can include pdftk for commercial use without buying a license. Regards Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] OT Re: Please remove Arabic language from the release version
ll never be an auxiliar international language, as I said above the "de facto" international language is the ruling country's language. Period. Perhaps in the future Chines or Arabian. Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Remote application
Hello: I have an old delphi application (a small ERP) running on a customer. People connect using Windows Remote Desktop. There are plans to increase the number of remote connections a lot (due crisis, many employers will work only partial time from their homes). I think that the remote desktop solution won't scale well. Licenses can be expensive and RDP wastes a lot of resources Why in the hell should we supply a full desktop when people only need to run tiny application?. Due people who connect remotely don't need the full application, just a small subset, I was thinking about programing a reduced version in Lazarus as frontend of the data, and show only the GUI remotely. I have a couple of ideas: Using a remote Xwindows server (Are there good Xwindows server for win32?) Making a web application using ExtJs Any hint? New ideas? Experiences? -- regards Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 29/10/2012 12:07, Michael Fuchs escribió: > > I would split the application in a client and a server part. The > client contains the GUI part and communicates via > SOAP/XML-RPC/JSON-RPC/BINARY protocol with the server part. > The server part includes business logic and data storing. > > Michael > Well, that would be the ideal solution, but I don't want to implement a full protocol all calls and answers. Isn't there already a protocol defined to communicate in lazaris? Just run an application in the server but showing the GUI (Lazarus widgets etc) in the client That is why I thought in xwindows or ExJs. I can use a RAD -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 29/10/12 14:38, Reinier Olislagers escribió: > On 29-10-2012 13:57, Leonardo M. Ramé wrote: >> Hi Santiago, did you try to run the application from a remote location?, >> by just publishing the database (assuming you are using a TCP database, >> such as Firebird, Postgresql, SQL Server, ) port on your router, you >> could connect >> the client to the server remotely. > Could definitely work, but: > > Having some kind of VPN or TLS encapsulation (e.g. zebedee) may be a > good idea. > Firebird e.g. has effective 8 character max passwords. Not too hard to > try to brute force... > > -- No matter which protocol I'll use, I will do through a SSH tunnel or VPN. Now, even remote desktop connections are done by an SSH tunnel with client private keys. The problem is not security, but performance. I don't know why, but standard dataware controls generate a lot of traffic. Perhaps it is a problem of bad application design, but things that work properly in a LAN are almost unusable in a WAN. -- Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 29/10/12 14:38, Reinier Olislagers escribió: > On 29-10-2012 13:57, Leonardo M. Ramé wrote: >> Hi Santiago, did you try to run the application from a remote location?, >> by just publishing the database (assuming you are using a TCP database, >> such as Firebird, Postgresql, SQL Server, ) port on your router, you >> could connect >> the client to the server remotely. > Could definitely work, but: > > Having some kind of VPN or TLS encapsulation (e.g. zebedee) may be a > good idea. > Firebird e.g. has effective 8 character max passwords. Not too hard to > try to brute force... > > -- No matter which protocol I'll use, I will do through a SSH tunnel or VPN. Now, even remote desktop connections are done by an SSH tunnel with client private keys. The problem is not security, but performance. I don't know why, but standard dataware controls generate a lot of traffic. Perhaps it is a problem of bad application design, but things that work properly in a LAN are almost unusable in a WAN. -- Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 29/10/2012 16:55, Leonardo M. Ramé escribió: > On 2012-10-29 15:54:45 +0100, Santiago A. wrote: > >> No matter which protocol I'll use, I will do through a SSH tunnel or >> VPN. Now, even remote desktop connections are done by an SSH tunnel with >> client private keys. The problem is not security, but performance. >> >> I don't know why, but standard dataware controls generate a lot of >> traffic. Perhaps it is a problem of bad application design, but things >> that work properly in a LAN are almost unusable in a WAN. >> > Santiago, I don't know which database server you use, but in the case of > firebird, I recommend this article: > http://asfernandes.blogspot.com.ar/2009/07/network-latency-influence-on-firebird.html > > Regards, > > That's an interesting article, thanks. This application uses Firebird, I suppose that dataware controls do a lot of stuff behind scenes, that is why they are easy to use. As usual, easing things has the drawback that does many things that are not alway necessary but are done just in case. Authomatic process is not always optimized... but it's fast. For example I stopped using master-detail many times because they were slow, they opened and closed the detail after each scroll of master. Instead, many times I open both and skip the cursor in the detail. Other times, I create a big join with header registers repeated in every record instead of sending two SQLs. Of course it requires more work than just dropping a few components on the form/datamodule. That is why I expected some kind of widget that sends just graphic updates, just draws the controls on client side, but data components on the server don't send any data to the client. -- Saludos Santiago s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 29/10/2012 18:10, duilio foschi escribió: > give a look to this product: > > http://thinstuff.com/ > > DF > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Thinstuff is a good alternative to Microsoft Terminal server, I have used before. Nevertheless, that's remote desktop solution. There is a limit of the simultaneous users a server can support, no more than five without severe performance impact. I want perhaps more than 20 users. Should I install five PCs? If I could solve with a simple application, that would be easier. -- Saludos Santiago s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 29/10/2012 18:43, Bernd escribió: > NX also has the advantage you can just forward one application only, > not the entire desktop. A possible setup would be: * write the > application in Lazarus as usual, compile and install it on a Linux box > (so that it would operate normally if a local user sitting in front of > this linux pc started it it locally) * install ssh server and freenx > on this linux machine * create a user account for every remote user > with normal linux administration tools. * install nx client on the > windows machine, configure it so that on login it will start your > application (not the desktop session, only your application. It will > behave similar to old school X11 tunneling a single application > through an SSH tunnel, only 1000 times faster and workable even on 56k > modem connections. It will *not* start a full desktop session for > every user, it will essentially only start your application as the > only process for that user and will seamlessly integrate all its > windows into the client desktop. Its easy to use for your users, > essentially the user just clicks an icon, enters his password, clicks > ok and a few seconds later your application will pop up on his > desktop. you don't need to design the application in any special way, > you just need to make it work on Linux/GTk2 (or Qt). Setup of nx on > the server is a childs play, at least on ubuntu, the last time i > installed it from scratch I did not need to configure anything, it > just worked, just make sure you can reach your ssh-server from the > outside). Technically it works like this: * client logs in via > ordinary ssh, gets a remote shell on the server * client executes > (through that remote shell) a script that starts nx display proxy > (yes, there is no permanent nx server process running and waiting, > only a thin wrapper gets started through the ssh shell for each user > after login, thats why the only thing that needs to be configured is > the ssh server) and then it starts your application. * display and > user interaction for this application (and all its child processes and > windows) will then be tunneled through the same ssh connection. -- > ___ Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Thank you very much, that is exactly what I wanted. What about performance and latency? -- Saludos Santiago s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Remote application
El 31/10/2012 10:13, Michael Schnell escribió: > I understand that there are (at least) two ways to do the remote display. > > A) Read the pixels from the graphics driver. This is what VNC does. > The problem here is, that you don't know when an update is necessary > (and thus you need to do polling) and that reading the pixels needs a > lot of performances (get a GDI-handle, read the complete screen memory > via the bus and then transfer only the pixels that have changed). (In > fact some time ago I stole this code from VNC, translated it from C to > Pascal and did a thingy that could transfer a rectangle of the screen > via TCP to another PC.) > > or > > B) Hook into the interface between the application and the Windows > manager. This is what Linux "Remote X" and Windows "Remote Desktop" > do. VirtualBox (and supposedly VMWare) seems to be able to do do this, > too, and here I did already see that it is possible to virtualize a > single program rather than a complete Desktop. > > > > Seemingly NX can do both, depending on the situation. I suppose that NX not only compress, but decides from the server (in behalf the client application) what must be send to the client (the graphic server). A lot of things needn't to be send, a lot of things can be joint and send only the final result, and a lot of commands can be queued, cached and sent in less commadds. And the other way around, the client (the graphic server) needent to sent everything. I suppose that NX does smart decisions filtering what needs to be sent in both directions, so saves a lot of traffic and round trips. X11 It is acceptable when in a local machine, but not for remote machines, let alone a WAN. I've heard that the problem is in a poor use of X11 of libraries like gtk or qt, I've also heard that the problem is in xlib, the common libarry of most widgets that doesn't optimize the protocol. I have also heard that X11 is a too low level protocol and should be replaced. There have been some tries like http://en.wikipedia.org/wiki/Fresco_%28windowing_system%29. In fact, that is what javascript and ajax tries, send widgets etc. -- Saludos Santiago s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Hints for Android
Hello: I'm trying to start my first program in Android, due I am a pascal guy :-) , I will try it with lazarus and windows. I have found several links about, this one looks the most recent: http://wiki.freepascal.org/Android Is this the last howto or are there more interesting links in the wiki? I have read in that link that I need FPC 2.6.x, I have installed 2.6.0 (the one installed with the newest release of lazarus). Will it work?, in other words, (is .0 included in .x? ;-) Any extra hint or link is welcomed -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Hints for Android
El 11/04/2013 18:22, dev.d...@gmail.com escribió: > > 2. Android development > > I myself used fpc-jvm, its really great to see it working on a real > device - really good job.. > > ... but for starters it's really the best thing to start with java as > there are much more information / samples / docs around... > > Eclipse with google's adb is a good IDE [although somewhat slow :) ] > to develop and debug android apps... > So, you suggest "Learn to program Android with Java, and later, if you want, give a try with FPC" -- Saludos Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Fpgui directory errors
Hello: I don't know if this is the right place to ask about fpgui, but I don't know any other ;-) I lurking fpgui, compiling examples etc. When I tried to run maximus (The lightweight IDE in examples) I got this exception: Can't create directory "C:\Documents and Settings\Santi\Configuración local\Datos de programa\maximus\" The trace back is: fpg_iniutils.pas line 89. { We used a non-Global config dir, so should be able to create the dir } if not fpgForceDirectories(lDir) then raise Exception.CreateFmt(rsErrFailedToCreateDir, [lDir]); //fpg_utils.pas line 150 function fpgExtractFilePath(const FileName: TfpgString): TfpgString; begin Result := ExtractFilePath(fpgToOSEncoding(Filename)); end; //fpg_utils.inc line 8 function fpgToOSEncoding(aString: TfpgString): string; begin Result := Utf8ToAnsi(aString); end; The problem is with the accent of "Configuración". The treatment of directories supposes that any string is in utf8 and must be converted to the OS encoding, in this case to ansi. But in this case gets its value from GetAppConfigDir (in sysutils), that returns a string already in ansi encoding. The easier and dirty solution I thought was, before calling fpgExtractFilePath, apply fpgFromOSEncoding to the value returned by GetAppConfigDir. But no way, the problem goes further and then I get a new error Can't create file "C:\Documents and Settings\Santi\Configuración local\Datos de programa\maximus\maximus.ini". I think that there is a little mess about when and where the encoding is. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] The future of desktop
It's a little off-topic, but as the comment was asking about pascal and lazarus, I will put it here: In a Spanish blog, a fresh graduated asked about what programming languages should learn. People post their opinions, and someone asked "What about delphi/object-pascal/freepascal/lazarus? Nobody has mentioned it and we use it a lot in Argentina" http://empleo.barrapunto.com/comments.pl?sid=90556&cid=1350850 INHO, the reply was very interesting: "I used to program a lot in Object pascal at the end of XX century, and maybe until 2003. But since then I have had very little chances of using Object Pascal. And only when I could choose the tool. Last time I used it was a day I decided to evaluate Lazarus. Desktop applications are declining. On a hand we have a lot of new devices that usually use Java, Objective-C, and on the other hand we have Web applicationes. So desktop applications are in small niche, like its development tools. Here is an example: A friend of mine works for a company that has been hired by a bank to rebuild the workstation software. Now client are running on XP and the software is written in .NET (and VB4!!!). The are moving to client software running in a local server written in PHP and workstations with a browser with a lot of javascript. The Operating system of clients and its hardware becomes irrelevant. IT is always changing, but the change that is coming is deeper than usual." I still work a lot with native desktop, but recently I asked about the options to change the interface to web with ExPasJS etc. I'm afraid we are moving to that. Native GUI is the best... but "native" has become a moving target. Now we have many devices, we use remote connections more that a few years ago, so we don't know what is in the client side. Even windows, the most extended desktop, changes its GUI from version to version, so many times you are forced to redesign the interface of your applications. It would be wonderful if we could have a standard GUI for every device/operating system. There have been several attempts (Freedesktop, Fresco) etc. The one we have now is HTML+Javascript, it's ugly, it's slow, it's a lot of bad things, but it's a standard. Look what ever device you want and there is a browser. That's why there are many tools that make extensive use of javascript like Gnome Shell (even a full OS like FirefoxOS) . Perhaps Lazarus should start thinking about a widget "html+javascript" and prioritize it. -- Regards Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] The future of desktop
El 29/11/2013 12:13, Michael Van Canneyt escribió: > > > > That is exactly my plan: > > 1. Convert pascal to javascript. > 2. Use the custom widget design capabilities of Lazarus to design the > form. > > Just like Morfik does/did, and recently Smart Mobile studio. > > But only in Lazarus :) So, you don't plan to create a new widget in LCL for html+javascript, but an utility that process application source and generates a big javascript. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] The future of desktop
El 04/12/2013 11:50, Sven Barth escribió: > > Am 04.12.2013 09:40 schrieb "Lukasz Sokol" <mailto:el.es...@gmail.com>>: > > > > On 03/12/13 12:42, Sven Barth wrote: > > > Am 03.12.2013 10:26 schrieb "Lukasz Sokol" <mailto:el.es...@gmail.com> <mailto:el.es...@gmail.com > <mailto:el.es...@gmail.com>>>: > > >> And the [GEM/DR/?] idea of menus on top of screen also makes a > come back in Ubuntu... > > >> and IIRC Gnome3. > > > > > > Considering Mac OS: were they ever away? > > > > > > Regards, > > > Sven > > > > > Well spotted :) I never had one... > > Me neither, but it's one of the things I know about Mac OS (X). > I think that all this thread about the history of GUI and who copied whom is going a little too far, and too much off topic ;-) -- Saludos Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Detecting new connection
Hello: I have a program on Laptop that when network is active (there is a WIFI, ie) must do some tasks (in fact check for updates). Is there any standard way to do so, without continuously pooling if it can connect to Internet? -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Detecting new connection
El 31/01/2014 11:55, Michael Van Canneyt escribió: > > > On Fri, 31 Jan 2014, Santiago A. wrote: > >> Hello: >> >> I have a program on Laptop that when network is active (there is a WIFI, >> ie) must do some tasks (in fact check for updates). >> >> Is there any standard way to do so, without continuously pooling if it >> can connect to Internet? > > Not in a cross-platform manner. So you'll need to tell us what OS you > are using. I supposed so. :-(, I'll have to hook something. The OS is windows XP/7 and WinCE. Any idea? -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SSL connection
Hello: I need to connect to a web with https. In delphi I used synapse sometimes and Indy otrher times. What's the best approach to connect to https with lazarus? (In fact FPC, I needn't GUI controls) I've seen Inet, but it hasn't been updated since 2011. Is Inet a dead project or is it "perfect" and doesn't need updates? Any hint? -- Saludos Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Off topic. Version numbers
Have you heard about "Semantic Versioning 2.0.0" /http://semver.org/? It is a proposal about how to assign version numbers in order to deal with compatibility and dependences. Perhaps Lazarus should thing about using it. In short, this system is: Version numbers is x.y.z[-] "z" changes about bugs refactorization etc (patches number) "y" changes about improvements that add new functionality, but don't break compatibility (minor version number) "x" Changes that break compatibility (mayor version number) - is whatever you want (build beta RC1 etc) If I have a program that builds and works properly using version 3.20.123-2, I'm sure it will work: for 3.20.[*] and for 3.[20..infinite].[*] Perhaps it will work for 3.19, it depends on if I used new features added in 3.20 o not. It won't work for 4.* or 2.* Example: V 3.20.10 Tmyobject=class public procedure foo1; end; V 3.20.11 Tmyobject=class private myvar:integer; // new internal var, nothing really changes. Increment patch version number public procedure foo1; procedure foo2; end; V 3.21.11 Tmyobject=class private myvar:integer; public procedure foo1; procedure foo2; procedure fooNew; // New feature,programs that work with V 3.20 still work. Increment minor version number. end; V 4.1.1 Tmyobject=class private myVar:integer; public // *** procedure foo1; ** deprecated procedure foo2; // Foo1 removed, could break compatibility. Increment mayor version number procedure fooNew; end; The drawback is that is you must separate clearly bugs, new features and deprecating/changing functionality. Never the less, it is good for the user. wouldn't Lazarus team, as user of FPC, love that, when FPC releases 2.7, not to need to check what/if breaks with 2.6, just be sure nothing is breaks? As the document states "This is not a new or revolutionary idea. In fact, you probably do something close to this already. The problem is that "close" isn't good enough. Without compliance to some sort of formal specification, version numbers are essentially useless for dependency management. By giving a name and clear definition to the above ideas, it becomes easy to communicate your intentions to the users of your software. Once these intentions are clear, flexible (but not too flexible) dependency specifications can finally be made." -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Pthreads and GDB
Hello: Lazarus 1.2.6, from sourceforge OS: Linux mint 13. I'm working in an application that uses sqlite3. The application runs fine from the command line, but in debugger mode when it reaches the sentence: SqlCon.Connected:=true; raises a strange IDE error: "Cannot find new threads: Generic error" I've searched, and it looks like a gdb issue, but I'm don't know how to fix it Any idea? Santiago A. -- Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TDBLookupComboBox hangs
Hello: I have a form with a TDBlookucombobox that selects a code from a list of about 9.000 records, stored in a sqllite3 table. In windows it runs properly, but in Linux, when I click the combo button, the whole desktop hangs for almost a minute. After I get the acontrol again, the list doesn't move when I press a key. (Linux Mint, 13, Lazarus 1.2.6 from sourceforge) Any idea? Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] What's this error?
Hello: Error: identifier idents no member "_Release" There is no line number, no unit. Nothing else but the text above. I don't know where to look. Any hint? -- Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What's this error?
El 01/04/2015 a las 20:35, Santiago A. escribió: > Hello: > > Error: identifier idents no member "_Release" > > There is no line number, no unit. Nothing else but the text above. > > I don't know where to look. Any hint? > Solved. I used TFPGMapInterfacedObjectData with an object that was not an Interface. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error buiding Lazarus
I have upgraded Lazarus in my Linux mint from 12.6 to 1.4.2, (the deb package from sourceforge). When I start Lazarus I get a message with two buttons: "Start my custom" or "start system default". Well, I had just one version of Lazarus. I suppose that the custom version is because a I had compiled the IDE to add some packages. If I click "my custom" I get something like "Downgrade configuration..." well, a little scaring, I don't want to downgrade anything, I want to upgrade, so I abort. I try the other option. I click "start system default". Ok it starts fine. Now I try to build Lazarus from IDE (clean + build) and after compiling a lot I get the following error cmdlinedebugger.pp(161,31) Fatal: Can't find unit CmdLineDebugger used by LazDebuggerGdbmi Can't find file "/usr/share/lazarus/1.4.2/ide/cmdlinedebugger.pp". Any idea? -- Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus 1.4.4 fpc 3.0
Is it posible to use Lazarus 1.4.4 with fpc 3.0? Will I run into a lot of problems (compiling IDE for new packages etc)? -- Saludos Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.4.4 fpc 3.0
El 24/12/2015 a las 12:00, Juha Manninen escribió: > On Thu, Dec 24, 2015 at 11:21 AM, Santiago A. wrote: >> Is it posible to use Lazarus 1.4.4 with fpc 3.0? > Yes but why would you do that? Lazarus 1.6 is almost here. > You may get problems with codepage aware strings when using Lazarus > 1.4.4. Depends on use case of course. > > Juha I am afraid of using Lazarus 1.6. New versions introduce new bugs and problems. I want to work with stable versions. Well, in fact, with versions that have been stable since some time. New versions come with new bugs and problems and I have already enough political problems pushing Lazarus to fight with technical issues. I have come across some bugs in 2.6.4 that I need to solve, so I have decided to move to 3.0. It is stable since some time ago (They are already working on 3.1). if they had applied backports to solve them, I would have sticked on 2.6.4. Nevertheless, If I run into problems with Lazarus 1.4.4 / FPC 3.0, code pages etc, I will move lazarus 1.6. -- Saludos Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Web vs desktop development
El 15/01/2016 a las 18:29, Anthony Walter escribió: > On a programming web forum someone said regarding Lazarus: > > On just cursory review, looks compelling. However, I get so little > call these days for native/desktop applications. Seems everyone wants > web now. I posted a message time ago in this forum "The future of desktop". It is a problem of portable GUI. Years ago GUI = Windows GUI, now it's not true any more. Even in windows there are incompatibilities with previous versions (i.e. fonts size make w95 forms not fitting in W10). GUI has become a moving target. Do you want to make an application portable everywhere? You can't rely in anything. Your best bet is web. Every device/SO IOs, Android, QT 3, QT 4, Gtk 1,Gtk 2, Windows 95, Windows 10, Mac all have a browser with a standard protocol. Web is not what I like, but it has become the standard GUI "de facto". Web was a displaying document protocol, it has been patched (cookies, javascript, websockets) to make a GUI of it. We needed so desperately remote GUI, that we created such Frankenstein from the pieces we had. But, as a patched GUI protocol, is a nightmare programming for it. Nevertheless, until someone comes with something better, here we are. It is not difficult to make something better than Web, the problem is getting it accepted as a standard. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Xamarin becomes free and open-source
El 01/04/2016 a las 8:58, Michael Van Canneyt escribió: > >> They are going after the whole Linux.Unix system. They want Linux >> admins and >> developers to realize that they can have good GUI development and >> server-management >> tools available on Windows and still have all the command line goodies >> they've learned to love on Linux. > > I seriously doubt this will have any effect. > > Most (if not all) of their admin tools are GUI based. That makes > scripting them impossibile. Which is the point of scripting. > > Some years ago they announced that the sever could run "without GUI". > I think it was windows server 2012. Till you need to run an installer to > install some software... And all windows software installers are GUI > based. > > We threw out windows servers, and the admin crew is all the more happy > for > it, because now they can script literally everything. > > More importantly, windows is still a black box. Something happens, you > get > completely stuck. I still need to encounter the problem I cannot solve > with > the use of strace on linux. Denis Kozlov is right about Microsoft is going after Linux market. Well, not exactly Linux market, but after "cloud" market, that is, servers that offer internet services. Most admins of internet servers are unix experts and not windows experts, and that is a problem for Microsoft because it offers a whole ecosystem, not products. What you say is right also. It is very difficult to attract unix admins to windows world. What Microsoft is trying to do is attract unix users in both directions: Offer products for unix ecosystem (azure, SQL server...) and let unix products work in his ecosystem. I agree that is not easy. Windows has created his own set of services, uses a strange jargon and nomenclature for services and stuff that has been there for years in unix world. But that's its strategy: Make unix admins a little more comfortable with windows concepts, jargon and products. Maybe next time a unix admin faces a windows product, he won't push for only-unix solution so hard. And don't deceive yourself. Scripts are the most powerful solution, but a GUI need less knowledge and expertise, so they may be cheaper in the long run. -- Saludos Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Xamarin becomes free and open-source
El 01/04/2016 a las 10:37, Michael Van Canneyt escribió: > I cannot understand that Canonical agreed to cooperate on this. > It's called shooting in your own foot... > Me neither. >> And don't deceive yourself. Scripts are the most powerful solution, but >> a GUI need less knowledge and expertise, so they may be cheaper in the >> long run. > > You therewith assert that microsoft advocates ignorance and stupidity > ? :-) It is a wise strategy. There are more middle users than gurus. > All very nice till you hit a really hard problem and then you need to > call an expert anyway, who charges you astronomical amounts of money > for deleting a > registry key or so. It's a nice deceit... Yes, when you hit a hard problem, windows is a blackbox. There is the old linux saying "Windows makes easy what is easy and impossible what is difficult". You needn't to convince me. Nevertheless, Unix world should have more configurations tools with a good UI (graphic or not). If you need to do hard things, you must be able to tweak with well documented configuration files (that's what windows doesn't have and unix products shines), but 90% of times you shouldn't have to mess with configuration files, each one with its one syntax (that's what many unix products miss and windows shines) The Cherokee web server (now a dead project) offered a configuration utility with a web UI as part of the product. That is the right path. Well, this is going too off topic. -- Saludos Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Xamarin becomes free and open-source
El 01/04/2016 a las 13:19, Graeme Geldenhuys escribió: > Give me good old text configs any time of the time. Easy to edit, easy > to backup. > Me too, but it would a nice plus if you also give me nice UI. Although I had sometimes to edit configuration of virtual hosts with includes etc, I don't think plesk or cpanel or webmin are bad steps. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
El 02/04/2016 a las 12:32, Special escribió: > Why? What's so bad with TButton.Name "StraßeButton" to select "Straße" > in, for instance, a school program for german kids? Messing with ascii codes above 127 is a problem. Look the mess in strings with different char code sets. Are we going to spread that mess to identifiers? In html (prior html5), you must say at the beginning of html the document the charset. If you don't, the reader reads crap. Something similar should be done. You would need to make compulsory a command in source code to tell which code set is using. As log as unit and program name could also be "áéíóú", it should be the first command of the source file. Anyway, that would we another programming language. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
El 04/04/2016 a las 12:12, Mattias Gaertner escribió: > This is an English mailing list, so naturally you will find many > thinking the same here. But many people want to use non English words > as identifiers. They need non English letters. I'm Spanish, and I don't support non ascii identifiers. Perhaps for teaching boys would be useful. MsOffice and libreoffice macro languages even translates functions (ie YEAR()=AÑO()). Is that a good idea?. Well for an interpreted language maybe. But I don't think it is a good idea as part of a professional language specification. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] German umlauts in component names
El 02/04/2016 a las 10:14, Special escribió: > How can I use names with German Umlauts and 'ß' in the Name Field of > TButton components? For instance, I try to set MyButton.Name to > "Schließenbutton" and get an error message "Komponentenname > Schließenbutton ist kein gültiger Bezeichner". > > This happens with Lazarus 1.6 and FPC 3.0.0 under Win 10 (64) and > under Raspian on a Pi3. > We have many Delphi Programs with German Umlauts in component names > and would like to go to Lazarus with them. > Any hints? > > Hans I didn't know Delphi allowed to use above-127 chars for identifiers or component names. Since what version? The short answer: You can't. I would say that you needn't, component names are internal, for use in source. Nevertheless, you can use any above-127 chars in captions, that it is what final user sees and must be localized. -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Humour
El 20/04/2016 a las 16:20, Bart escribió: > On 4/19/16, brian wrote: > >> Anybody still reading might find this amusing... I'd not seen it >> before. > I find it quit impossible to read the subtitles and here them talk at > the same time. > (In fact it took me about 30 seconds to spot the discrepancy.) You must be German. I'm Spanish and I have that problem with similar videos but in Spanish. https://www.youtube.com/watch?v=KHZ8ek-6ccc I had to turn sound off to read subtitles -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Zeoslib and string encoding
Hello: I'm using Lazarus 1.6 svn: 5163, on Windows XP I'm porting a small utility that connects to a Firebird database. The utility uses Zeoslib and as Zeoslib has been ported to Lazarus it was almost straight, but I have come across with a problem. In some place it calls Field.size, but returns the double of the real size of the field. I read that it could be related to character encoding. It assumes that for utf-8 or utf-16 and it could need twice bytes to store the same characters. The question is that the database has as default character set win1252, all the fields are win1252. The Zeos connection component has a property "ClientCodePage" that allows values UTF8 and UNICODE_FSS, There is another property "AutoencodeString" boolean. No combination works, I always get double size. I can't change the Database codepage, and it must run on a W-XP, so as a quick workaround I just made the dirty hack of dividing by 2 the result of field.size. But now, I've read a thread in freepascal about encoding and I wonder wether the problem is more related to freepascal 3.0 than to zeoslib. Is there some compiler directive about string encoding I should be aware of? -- Saludos Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Zeoslib and string encoding
El 10/05/2016 a las 12:35, Graeme Geldenhuys escribió: > On 2016-05-10 09:23, Santiago A. wrote: >> But now, I've read a thread in freepascal about encoding and I wonder >> wether the problem is more related to freepascal 3.0 than to zeoslib. Is >> there some compiler directive about string encoding I should be aware of? > I've had this problem for years with ZeosLib even using FPC 2.6.4 and > FPC 2.6.2. So it's not related to FPC 3.x changes at all. It used to work in delphi. What's wrong in FPC? Any workaround in addition to hardcoded division? > See the tiOPF unit tests results: >[Zeos_FB] -> TTestTIQueryZeos -> FieldSize > > "Group_Str_Field" Expected: "10" But was: "40" > > http://geldenhuys.co.uk/tiopf/unittests/freebsd64.html Wow. There is no persistent layer that uses a DB that works properly. Is that a FPC problem? -- Saludos Santi s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Write to UNC or mapped drive
El 24/05/2016 a las 21:46, Leonardo M. Ramé escribió: > Hi, My app is a CGI running on Windows2012 (IIS 7.0), it needs to save > a file to a remote UNC or Mapped drive, but when I check using > DirectoryExists in both cases I get False, but of course the UNC and > mapped drive exists. > > Any hint?. > > Regards, Not sure 100%, but I think that mapped drives only work when a user opens a desktop session. Services don't know about mapped drives. Think of it, in the same server, different users may map the same network resource with a different letter. Instead of mapped drives I think you should use \\server\resource, and the user who runs the service that calls the CGI must have permission on that resource. If the service is run as "Local system", I don't know how to grant permission in a remote machine. -- Saludos Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Write to UNC or mapped drive
El 25/05/2016 a las 21:48, Marc Weustink escribió: > Correct. Drivemappings are user specific. You get the same if you want > to run something as administrator from a mapping. More than user specific are desktop session specific. > Depends on windows version, iirc on modern versions local system (or was it > local service) it has no network access > Marc I think there is a user named "NetworkService", that at least has access to network. Obviously, it has to open the session on the remote resource. -- Saluds Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Sorting, mergesort and quicksort
Hello: Just a question. I've been lurking the source of LCL and I've seen that in many places (gtk, files and others...) to sort lists uses mergesort. As far as I know, mergesort is used for sorting data with sequential access, or when random access is expensive. It needs to copy the original data, so it needs double memory. I can understand thet mergesort be used for linked lists, where you can't jump from position 30 to 1 without moving to 29..28..27 etc , but in Lazarus is used for standard arrays where quicksort shines. In fact, I've seen that Lazarus uses in quicksort many times. Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Two versions
Hello. My system has installed 0.96 (Ubuntu 8.10) , I would like to install 0.98 both at the same time. I read somewhere in the wiki how to have installed both versions. Any hint? Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] debugger feature request created
Hello: In barrapunto.com (a Spanish slashdot) there is an article asking "What do you know about Lazarus?". Most comments were positive, and most negative comments were against Pascal (it's a dead language etc) more than against Lazarus. Here is the link to the article (in Spanish) http://preguntas.barrapunto.com/article.pl?sid=09/09/28/2211206 But there were a few comments with objections to Lazarus. One of them was about debugger. This comment the (also in Spanish) http://preguntas.barrapunto.com/comments.pl?sid=82108&cid=1176899 In this comment he supported Lazarus, but the last paragraphs made some objections. Here is a translation of the last paragraphs, sorry if my English is not good enough "Some problems I find in Lazarus a those that unfortunatelly can be found in most OSS. On one hand they have amazing features that can't be found in their commercial counterparts, on the other hand they lack elemental features that are waiting to be implemented and waiting and waiting and waiting and waiting "Some of the elemental things I miss are: The debugger can't see properties values of objects (A framework for a OOP without being able to watch objects in the debuger!, that's an oxymoron) and nested procedures can't see parent variables. And some bugs never disappear, or disappear and appear again". Well, I don't know what bugs he was talking about, but about the debugger I think he is right. I would also add a help. Those should be 0 priority: you need to debug and with thousands of objects/functions you need to access to help very often. Code completion, folding code etc are wonderful features, but with a good debugger and a good help is like a car with GPS, four airbags, but with gas tank for two liters. Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] properties (delphi does it wrong too) [Re: debugger feature request created]
In theory is dangerous, in real world it seldom (if ever) happens. The risk is so little (I have never face such problem) and the advantage so big that the score, in my opinion, is 1E+6 to 1. Santiago A. s...@ciberpiula.net Martin escribió: > > > > I agree "function evaluation" in the debugger can be a very helpful > feature. That is it is helpful when used intentionally, sot the > developer knows what side-effects may happen. > The way Delphi has it, doing it with no warning at all => very dangerous. > > > Best Regards > Martin > > -- > ___ > 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] properties (delphi does it wrong too) [Re: debugger feature request created]
Martin escribió: > > Then later mails (other people) developped into statements like "The > debugger is not usable as it does not have been in the focus to be > developed. " or " lack elemental features that are waiting to be > implemented and waiting and waiting and waiting and waiting"; And then > soon saying this was a reason for people not to use Lazarus, or to > move away from Lazarus. I apologize if my message seemed aggressive or hostile, I was just translating a comment not written by me. Any how, I think that the paragraph was related to OSS in general, not to Lazarus. > My view is, that once such a feature has been done/contributed, it > should be disabled by default, but when you attempt to evaluate a > property, you can be asked (with propper warnings) if you want to > enable it. > On the other hand, my opinion is that such feature should be enabled by default, as far as I know, no one has ever had a problem with that in delphi. I think you are too cautious disabling such property, or even warning. It is not that dangerous. Sorry once again if it looked that I don't appreciate your work or Lazarus as it is now. In fact I use Lazarus now. Santiago A. s...@ciberpiula.net -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Screenshots with a header
Hello Juha Manninen: I find the interface of profiles a little confusing: 1) As far as I have understood, there is a default profile, the one that is used when you select the menu option "Build lazarus". If this the case, the buttons up down have no sense because the order of profiles has no meaning, it's not like a list of paths or cascade rules. It 's confusing, the user may wonder "What happens if I move a profile up or down? is the building system going to apply them in order?". I think it only needs a button "Set this profile as default". 2) Each profile should be saved separately. When you click edit a profile, the profile form should open in a new form with buttons save and cancel. I don't like the idea of saving other profiles I don't see and that I may have changed without realizing. 3) If you edit a profile in a separated form, you can't show details as you do now. There are two options: a) Reuse the edit form, instead of the label or icon "edit"., you may use a more generic label "Properties" so if the user wants details opens the edit form and cancels. b) Add at the bottom of the form the detail, as user can't change (now uses the form), you needn't radiobots, just label "Widget: GTK", so you don't need so much space. So the interface needs: - Show which is the default profile (perhaps adding the string "(Default)" in the listbox of profiles) - A button to set the default profile to the selected one. - A delete profile button. - A "new" profile button that opens the form for edting. Perhaps intializating the data, except name, with the current selected profile - A "properties" button, that open the form for editing the profile. Or an "edit" button that opens the form, and add to the list form a way display details of the selected profile. - The save button for the full list disappears.There is nothing to save but the default profile. - The editing form, besides the current data, needs a name. We could also remove the rename button from then profiles list from. Excuse me my broken (and perhaps rude) English. Regards Santiago A. s...@ciberpiula.net El 14/12/2009 21:17, Juha Manninen escribió: > Something like this: > > http://koti.phnet.fi/juhamann/Lazarus/BuildLazSimple.jpg > and > http://koti.phnet.fi/juhamann/Lazarus/BuildLazDetails.jpg > > Juha > > -- > ___ > 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] Sourceforge and Cuba
Hello: 1) It is unfair, when people from other countries (even Cuba o Iran ) contributed, they thought that sourceforge would be available for everybody, now they have changed the deal unilaterally. Moreover, My contact in Cuba has helped in translating several projects into Spanish, now he can't enjoy his own work. It's not Sourceforge fault, but here we are. I won't ever contribute again in a project hosted only in Sourceforge. 2) It won't stop any government from using projects hosted in sourceforge, it's a public resource, so any government has a million ways to get the files. It's against citizens not against governments, as most embargoes. Wonderful Idea. To punish citizens because of their government. Anyhow, I don't think my contact in Cuba will ever download Lazarus again. He wasn't particularly interested in pascal before, he hadn't tested Lazarus in a year, he did it a year ago it just because I insisted a little. In fact, I am afraid he reported it to me just to denounce the facts. Forgetting policy and going back to the problem: As far as I know, you only use sourceforge to store files, you don't use any other service of SF (blogs, website, revision system etc), so it will be easy to upload them in other server. I sugest to create lazarus project in http://www.gna.org, that is in France, upload the binaries and sources tarball and add a link in lazarus website with the text "non-USA server" or something like that. PD: Counting on non-USA sourceforge's servers is a bad idea. Even if now they allows to access from "rogue countries", this may change in a near future. Sourceforge belongs to a USA company. Regards Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Sourceforge and Cuba
Many projects, as Lazarus, use Sourceforge only for downloads. I suppose that there are two main reasons: 1) Visibility (People search software in SF) 2) Save bandwidth from their own servers. If a project becomes popular and many people downloads it, SF has resources and specialized systems for downloads (a lot of bandwidth and many balanced servers). Of course, I think that hosting files in your own servers is a good alternative , I proposed another server like http://www.gna.org because I supposed that you were using SF in order to save bandwidth. If you don't care to use your own servers, that is the best option. By the way, showing a web page with a well organized the list of downloads is necessary. You can just upload the files in the right directory and a simple program scans the directory and shows it organized in a web page. I think it is not a good idea to show just a minimalist list of files as browser show FTP list, it looks too amateur even abandoned. Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Sourceforge and Cuba
Hello: I have registered a project in http://www.gna.org. There is a little problem with ssh, as soon as we solve it, I will upload Lazarus binaries. Regards Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] UTF-8 string recognition
Not every ansi string is a valid UTF8 string, but every UTF8 string is a valid ansi string. So you can be sure that a string is not a valid UTF8 string, if it's a valid, it could be a UTF8 or an ansi string. You can make some guess, for latin alphabet (western or eastern), if it is a valid UTF8 and it has several char(195) then probably you have an UTF8 string with several above char(128) characters. But you are just guessing, it could be an UTF8 with no acute or tilde letters, or it could be an ansi string with several char(195). El 27/02/2010 2:17, Antônio escribió: > How to determine whether a string is UTF-8 or not? > > -- > ___ > 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] dbgrid selectedindex
El 04/03/2010 16:10, Andrea Mauri escribió: > in the help I found that: > > Selected index - number of the row selected for viewing or editing > > but in the SetSelectedIndex method the code is related to the columns, > not rows: > That component is linked to a Dataset, the row is the where the cursor of the dataset is. If you move the cursor with dataset.next or dataset.previous, the DBgrid will show another row selected.The opposite is also true, if you click in another row in the DBgrid, the dataset cursor will move to that position. If you mean which row is selected in the graphical grid, that property must be somewhere deep in the component, it's TCustomGrid descendant, you know. In several years working with delphi I have never worried about it, but about the underlying dataset row. Are you sure you need the number of row in the graphical grid? Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Embedded database for Lazarus/Linux
El 17/06/2010 9:39, Luca Olivetti escribió: > > "Concurrency > > SQLite allows multiple programs to be connected to the same database > simultaneously. The embedded version of Firebird does not. If you run > Firebird in client/server mode, it allows concurrent access with > fine-grain locking. But in embedded mode, only one program can connect > to the database at a time." > > Bye If you write a program manages its own data, configurations etc, you can read sequential files, text files etc. But if the data is very complex and there is a lot of data, instead of reinventing the wheel, you can use a embedded DB, like SQLlite or others. That is what embedded RB were designed for, not to share data. SQLite's concurrency is just fancy feature, not a very useful feature. Concurrency in SQLite is pretty simple. Only a process can write simultaneously, and it locks the whole file and has problems with threads: Check http://www.sqlite.org/faq.html (5) (6). If you want a program (a workstation) that manages data, and the rest of programs read data, SQLite concurrency may be good for you. But even in this case, one process is updating and several processes are reading, you can run into problems: http://old.nabble.com/Memory-Usage-td23154686.html. But if you plan to deploy several programs sharing the same data as peers, updating and reading, SQLite is not the solution, you must use a real RDBMS. You shouldn't rely on operating system file locking systems and clients doing the right thing. You need a single process that controls the file and schedules users' petitions, that is, a RDBMS. But if you think that data will be seldom updated, SQLite may do job. Just be aware that SQLite is not scalable for concurrency. Use the right tool, for the right task. Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why was XML format chosen for storing settings in Lazarus IDE?
El 18/06/2010 13:51, Marco van de Voort escribió: > > I actually tried to implement this once by using [[[section]]] and > [[[subsubsection]]. > > Once I saw a program using this kind of inifiles. [section A] k1=v1 k2=v2 [section A/ subsection] k1=v1 k2=v2 [section B] k1=v1 k2=v2 [section B/ subsection] k1=v1 k2=v2 As far as I know, it is a standard inifile. Perhaps it could be improved in the output sorting the subsections after the section and indenting. Santiago A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus