Re: [Lazarus] Lazreport with PostgreSQL

2014-07-13 Thread Allan E. Registos
On Saturday, 12 July, 2014 08:32 AM, Eduardo Lopez wrote:
 Hi Allan.

 You must install: Visual C++ 2008 Redistributables

 Eduardo.
Thanks.  I've reinstalled the redistributable. Still it doesn't work. 
The postgresql installer will also install the Visual C++
redistributable, really hard if the error does not point you of what was
missing. There might be some needed components for lazreport to detect
the postgresql libs properly, since Lazarus, sqldb  zeos are working
fine with postgresql.

 El 11/07/2014 05:19 a.m., Allan E. Registos escribió:
 Hi,

 Does anybody have a working lazreport + postgreSQL ?
 I am having trouble both 32-bit(winxp) with postgresl lib client
 present on the same program directory and in 64-bit win7.
 It cannot find libpq.dll.

 Thanks  regards,
 Allan



 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


 ---
 Este mensaje no contiene virus ni malware porque la protección de
 avast! Antivirus está activa.
 http://www.avast.com


 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazreport with PostgreSQL

2014-07-11 Thread Allan E. Registos
Hi, 

Does anybody have a working lazreport + postgreSQL ? 
I am having trouble both 32-bit(winxp) with postgresl lib client present on the 
same program directory and in 64-bit win7. 
It cannot find libpq.dll. 

Thanks  regards, 
Allan 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Win32 postgres unit compilation error

2014-06-18 Thread Allan E. Registos


Hi, 




I have found out that the postgres unit in Lazarus(I have tested with 1.2.0 and 
1.2.4 versions) will cause compilation errors on Windows, but will work fine in 
Linux. 




Errors: 




Error: Import library not found for pq 

Error: Import library not found for c 

Error: Undefined symbol: _PQsetdbLogin 




Is this a known issue? I am trying to use the postgres unit to talk directly to 
the pg server. 




Thanks, 

Allan 





--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Wednesday, 04 June, 2014 04:39 AM, Daniel Erles wrote:
 Hello. 
 I have this problem: 

 My database (Firebird) has a table with the following fields: 
 ... 
 rTitle DECIMAL(8,4) not null,
 rDiameter DECIMAL(10,6) not null, 
 ... 

 In my program I have a Form with a a TZTable object (ZEOS) called
 zData, bound to that table. 
 In a routine I have the following code: 

 zData.Insert;
 ...
 zData.FieldByName('rTitle').AsFloat := 0.12; 
 zData.FieldByName('rDiameter').AsFloat := 0.12; 
 ...
 zData.Post;

 Then, at the table, I see that the values are stored as follows: 

 rTitle = *0.1199*
 rDiameter = 0.12 

 Do not know why rTitle is 0.1199 instead of 0.12 
 I need the saved values are accurate. 
 I've tried AsFloat, AsCurrency, Value, always with the same result.
A suggestion: Try to alter your column from: rTitle DECIMAL(8,4) not
null *to* rTitle DECIMAL(8,2) not null.
I think the rounding occurs because you have four numbers after the
decimal point. If you need that precision, you need to input 0.1200 for
your database to store it at that exact value

I tried your case in PostgreSQL, and it store as is without the rounding
problem.


 Any idea?

 Tks. 
 Daniel.


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Wednesday, 04 June, 2014 06:03 AM, Philippe wrote:

 generally, if one needs accurate values he does not use real values
 ... use integer (or word, longint, longword etc) ... then when needed
 make the conversion or formating (for computing or printing) ...

My thinking is quite the opposite. I am not a mathematician though. :)
What if we need a high degree of precision in our computation?  So we
need this type of figure: #.# the more precision(accuracy) we
need, the more digits we add after the decimal point.  Integer store
whole numbers w/o any fraction components.
Since I am using PosgreSQL, according to the docs:

The type numeric can store numbers with a very large number of digits
and perform calculations exactly. It is especially recommended for
storing monetary amounts and other quantities where exactness is
required. However, arithmetic on numeric values is very slow compared to
the integer types, or to the floating-point types described in the next
section. 

The numeric data type must be equivalent of Firebird's decimal data type.

 (it may exists another solution ... someone else may help better for
 that!)

 Philippe

 Em 03.06.2014 17:39, Daniel Erles escreveu:

 Hello. 
 I have this problem: 
  
 My database (Firebird) has a table with the following fields: 
 ... 
 rTitle DECIMAL(8,4) not null,
 rDiameter DECIMAL(10,6) not null, 
 ... 
  
 In my program I have a Form with a a TZTable object (ZEOS) called
 zData, bound to that table. 
 In a routine I have the following code: 
  
 zData.Insert;
 ...
 zData.FieldByName('rTitle').AsFloat := 0.12; 
 zData.FieldByName('rDiameter').AsFloat := 0.12; 
 ...
 zData.Post;
  
 Then, at the table, I see that the values are stored as follows: 
  
 rTitle = *0.1199*
 rDiameter = 0.12 
  
 Do not know why rTitle is 0.1199 instead of 0.12 
 I need the saved values are accurate. 
 I've tried AsFloat, AsCurrency, Value, always with the same result. 
  
 Any idea?
  
 Tks. 
 Daniel.

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org 
 mailto: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


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Wednesday, 04 June, 2014 04:43 PM, Mattias Gaertner wrote:
 On Wed, 04 Jun 2014 15:47:24 +0800
 Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote:

 On Wednesday, 04 June, 2014 06:03 AM, Philippe wrote:
 generally, if one needs accurate values he does not use real values
 ... use integer (or word, longint, longword etc) ... then when needed
 make the conversion or formating (for computing or printing) ...

 My thinking is quite the opposite. I am not a mathematician though. :)
 What if we need a high degree of precision in our computation?  So we
 need this type of figure: #.# the more precision(accuracy) we
 need, the more digits
 If you need 5 digits, i.e. decimals: multiply by 100.000 when
 storing and divide by 100.000 when loading the value.
 Computers work on binary numbers and decimal 1.2 (= 1+2/10) has no exact
 representation in binary.
Okay. So, my confusion starts with what the data type the DB recommends
when precision is needed and the data type built with Lazarus/fpc.  If
accuracy and decimals are needed, one must use in Lazarus Integer, and
deal with the digits with another integer and merge it as one data type
and becomes numeric for storing at the DB side?

Or anyway, as Joost mentioned in his post, one must deal with a
TBCDField to read the input values if Zeos provided this correctly.



 Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem rounding values at post

2014-06-04 Thread Allan E. Registos
On Thursday, 05 June, 2014 02:33 AM, Daniel Erles wrote:
 Yes, I tried with round too. 

 Now I understand the problem, thanks to the explanation of Mattias. 
 But I could not find a solution yet. 

 The problem only occurs when I insert data using INSERT and POST
 functions. 
 I tried creating an SQL INSERT, and running it with ExecuteQuery (),
 and the values are saved correctly.
I think you can try to do SQL by hand and connect to Firebird directly
with your SQL queries as a workaround without using Zeos or sqldb.
 The problem apparently is not in Firebird, but in ZEOS
 classes implementation, or their ancestors. 

 I think maybe I'll look for a different approach to solve my problem,
 perhaps with the use of BCD fields. We'll see.


 2014-06-04 11:55 GMT-04:00 Poncho Velázquez
 poncho-velazq...@hotmail.com mailto:poncho-velazq...@hotmail.com:

 Hi Daniel,

 have you tried to use function Round in te assignment of the value??

 Regards
 Poncho

 
 Date: Tue, 3 Jun 2014 16:39:30 -0400
 From: der...@gmail.com mailto:der...@gmail.com
 To: lazarus@lists.lazarus.freepascal.org
 mailto:lazarus@lists.lazarus.freepascal.org
 Subject: [Lazarus] Problem rounding values at post


 Hello. 
 I have this problem: 

 My database (Firebird) has a table with the following fields: 
 ... 
 rTitle DECIMAL(8,4) not null,
 rDiameter DECIMAL(10,6) not null, 
 ... 

 In my program I have a Form with a a TZTable object (ZEOS) called
 zData, bound to that table. 
 In a routine I have the following code: 

 zData.Insert;
 ...
 zData.FieldByName('rTitle').AsFloat := 0.12; 
 zData.FieldByName('rDiameter').AsFloat := 0.12; 
 ...
 zData.Post;

 Then, at the table, I see that the values are stored as follows: 

 rTitle = *0.1199*
 rDiameter = 0.12 

 Do not know why rTitle is 0.1199 instead of 0.12 
 I need the saved values are accurate. 
 I've tried AsFloat, AsCurrency, Value, always with the same result. 

 Any idea?

 Tks. 
 Daniel.

 -- ___ Lazarus mailing
 list Lazarus@lists.lazarus.freepascal.org
 mailto:Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 mailto: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


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] File Access Problems in Linux

2014-05-17 Thread Allan E. Registos
On Saturday, 17 May, 2014 12:38 PM, Gordon Cooper wrote:
  Several days ago I posted a request about filing conventions, a
 request that had no response. I am asking this again, as I am having
 file access problems.  Am attempting to use Lazarus on Linux,
 specifically
 Kubuntu 12.04.

 Having set a separate folder for this, my first Lazarus project, all went
 well with form design, addition of components,  and compilation until
 I added a Tdbf. I was able to define  index and memo items,  but any
 attempt to activate was rejected, the error saying that the _predefined __
 __project folde_r could not be opened.
Have you tried chmod or chown commands?

 This had always worked for me over several years of TP and then Delphi
 on Windows, so there is obviously something I am missing in the Linux
 implementation.  I have tested this several times to the extent of
 completely
 deleting all of the project's files and starting again with a blank form.

 Regards,
 Gordon


 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [ANN] Brook 3.0.0 release!

2014-05-14 Thread Allan E. Registos
On Wednesday, 14 May, 2014 07:10 AM, silvioprog wrote:
 The Brook team is glad to announce the release 3.0.0.

 This version was compiled and tested successfully with Free Pascal
 2.6.4. Here is the list of changes between version 2.6.4 and 3.0.0 of
 the Brook:

 https://github.com/silvioprog/brookframework/compare/57f8e01868dbec9708129bc789940df2a93c1637...v3.0.0
 (or short URL here: http://goo.gl/kr9oX0)

 The release is available for download on Github:

 https://github.com/silvioprog/brookframework/releases/tag/v3.0.0

 Or through the Latest Release button on the project home page:

 http://silvioprog.github.io/brookframework/

 Minimum requirements:

 Free Pascal 2.6.4. If you prefer the Lazarus interface, choose the
 1.2.2 version.
Thanks. It works(simple CGI app) with fpc 2.6.2 / lazarus 1.2.0.

 Enjoy!

 -- 
 Silvio Clécio
 My public projects - github.com/silvioprog http://github.com/silvioprog


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] TField.OnGetText Event (TDBLookupComboBox)

2014-04-25 Thread Allan E. Registos
Hi all, 

I am fighting with this memo output text on TDBLookupComboBox control. 

I have this db query: SELECT (flute.flute || '-') || flute.description AS flute 
FROM flute; 
and there are some similar queries. In a TDBGrid, we can let the output as is 
as the query result and not the (MEMO) output by using the 
TDBGrid's PrepareCanvas and the OnGetText events using this class: 

MyMemoClass = class 
public 
procedure DBGridOnGetText(Sender: TField; var aText: string; 
DisplayText: boolean); 
end; 
 
procedure MyMemoClass.DBGridOnGetText(Sender: TField; var aText: string; 
DisplayText: boolean); 
begin 
if (DisplayText) then 
aText := Sender.AsString; 
end; 

Then the final declaration at TDBGrid's PrepareCanvas event: 

var 
mGetExactString: MyMemoClass; 
Begin 
TDBGrid1.Columns.Items[x].Field.OnGetText := @mGetExactString.DBGridOnGetText; 
end; 

Is there a way I can do this similarly with TDBLookupComboBox control? I'm 
trying to find the similar PrepareCanvas and OnGetText events from 
TDBLookupComboBox but I find nothing... 

Regards, 
Allan 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [Ann] Visual components

2014-04-25 Thread Allan E. Registos
On Saturday, 26 April, 2014 04:52 AM, Vojtěch Čihák wrote:
 Hello,
  
 I would like to share my visual components which I finished recently.
 They are written from scratch for Lazarus, no Delphi port. Based on Themes.
  
 Before you install, you need to do a small modification in control.pp (see my 
 feature request 26048)
 A 
 href=http://bugs.freepascal.org/view.php?id=26048;http://bugs.freepascal.org/view.php?id=26048/A
  
 You have to do two methods virtual:
 procedure GetSpaceAround(var SpaceAround: TRect); virtual;
 function GetSpace(Kind: TAnchorKind): Integer; virtual;
 They are somewhere around line 723. You can do it with trunk or with 1.2, 
 both works.
 They will do proper right-side-anchoring and package doesn't compile without 
 it. 
  
 You can download package from here:
 A 
 href=https://www.mediafire.com/folder/3uwx3yjl922ir/Documents;https://www.mediafire.com/folder/3uwx3yjl922ir/Documents/A
 There are also two demos attached. Package also comes with *.xml docs which 
 you can convert to *.html help with attached script.W
Wanna test it, but I can't download from mediafire.
  
 Before I will do announcement on forum, I have several proposals (or 
 requests):
 1) accepting the feature 26048 - above
 2) test in Carbon. This is what I cannot do myself and I cannot repair issues 
 myself as well, since I have not this platform.
 3) consider if Lazarus-CCR wouldn't be better place for this package.
  
 I tested components with Lazarus 1.3/Qt4/fpc 2.7.1, Lazarus 1.3/GTK2/fpc 
 2.7.1 and Lazarus 1.2.0/Win32/fpc 2.6.4 (Wine).
  
 I'm glad I publish package today, because - coincidently - I have birthday 
 today.
  
 I'd like to read your opinion. 
  
 Vojtěch a.k.a. Blaazen 
  

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] FPC/Lazarus on non-x86 BSD

2014-04-23 Thread Allan E. Registos
On Wednesday, 23 April, 2014 04:38 PM, Mark Morgan Lloyd wrote:
 I'm exploring alternatives to Debian on SPARC. One of the obvious ones
 is BSD which (I presume) will need some cross-builds to get FPC going.

 Can anybody comment on /which/ BSD variant is likely to add fewest
 problems to my heap?

In FreeBSD 10 64-bit, Lazarus was updated to the latest stable 1.2.  I
tested Lazarus with the application I need (Database) and it works fine.



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Friendly Error message

2014-04-15 Thread Allan E. Registos
Hi all, 

Another noob db question, is there anything I can do make this error more 
friendly?: 

In file 'ink_settings_unit1.pas' at line 65: 
INK_SQL.SQL.Text := 'INSERT INTO ink_settings(id, setting_type, 
basebalance_date, latest_data) ' + 
? 

I have this code structure for updating/inserting data: 

try 
result := false; 
Try 
InitializeDB(); 
//Not using StartTransaction for db is already active 
SQLStr:='UPDATE ink_settings SET latest_data=0 WHERE setting_type=''%s'''; 
SQLStr:= Format(SQLStr,[INK_SETTING_TYPE]); 
INK_SQL.SQL.Text := SQLStr; 
INK_SQL.ExecSQL; 

DateSTR:=FormatDateTime('MM-DD- hh:mm:ss',NewBaseDate); 

NEW_INK_SETTINGID := GetTablePrimaryID('ink_settings') + 1; 
//Insert new base date 
INK_SQL.SQL.Text := 'INSERT INTO ink_settings(id, setting_type, 
basebalance_date, latest_data) ' + 
' VALUES (:NEWID,:SETTING_TYPE,:NEWDATE,:LATEST_DATA)'; 
INK_SQL.Params.ParamByName('NEWID').AsInteger := NEW_INK_SETTINGID; 
INK_SQL.Params.ParamByName('SETTING_TYPE').AsString := INK_SETTING_TYPE; 
INK_SQL.Params.ParamByName('NEWDATE').AsString := DateSTR; 
INK_SQL.Params.ParamByName('LATEST_DATA').AsInteger := INK_LATEST_DATA; 
INK_SQL.ExecSQL; 

INK_TRANSACTION.Commit; 

result := True; 

except 
on e: exception do // Catch my exception 
begin 
raise exception.Create('Error: ' + e.Message); 
end; 
end; 
finally 
FreeDB(); 
end; 

Where InitializeDB() code: 

procedure InitializeDB(); 
begin 
INK_DB := TPQConnection.Create(nil); 
INK_SQL := TSQLQuery.Create(nil); 
INK_TRANSACTION := TSQLTransaction.Create(nil); 
INK_DATASOURCE := TDatasource.Create(nil); 
if not INK_DB.Connected then 
begin 
INK_DB.HostName := DATABASE_HOST; 
INK_DB.DatabaseName := DATABASE_NAME; 
INK_DB.UserName := DATABASE_USER; 
INK_DB.Password := DATABASE_PASSWORD; 
INK_DB.Connected := True; 

INK_SQL.database := INK_DB; 
INK_TRANSACTION.DataBase := INK_DB; 
INK_TRANSACTION.Active := True; 
INK_DATASOURCE.DataSet := INK_SQL; 
INK_SQL.Transaction := INK_TRANSACTION; 
end; 
end; 


Thank you for any ideas... 

Regards, 
Allan 


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Friendly Error message[fixed]

2014-04-15 Thread Allan E. Registos
On Wednesday, 16 April, 2014 01:18 PM, Allan E. Registos wrote:
 Hi all,

 Another noob db question, is there anything I can do make this error
 more friendly?:

 In file 'ink_settings_unit1.pas' at line 65:
 INK_SQL.SQL.Text := 'INSERT INTO ink_settings(id, setting_type,
 basebalance_date, latest_data) ' +
 ?

 I have this code structure for updating/inserting data:

 try
 result := false;
  Try
  InitializeDB();
   //Not using StartTransaction for db is already active
  SQLStr:='UPDATE ink_settings SET latest_data=0 WHERE
 setting_type=''%s''';
  SQLStr:= Format(SQLStr,[INK_SETTING_TYPE]);
  INK_SQL.SQL.Text := SQLStr;
  INK_SQL.ExecSQL;

  DateSTR:=FormatDateTime('MM-DD- hh:mm:ss',NewBaseDate);

  NEW_INK_SETTINGID := GetTablePrimaryID('ink_settings') + 1;

Ok, the culprit is the above line! My bad.  Removing the line fixes my
problem, it was using the same update and insert connections.

  //Insert new base date
  INK_SQL.SQL.Text := 'INSERT INTO ink_settings(id, setting_type,
 basebalance_date, latest_data) ' +
  ' VALUES (:NEWID,:SETTING_TYPE,:NEWDATE,:LATEST_DATA)';
  INK_SQL.Params.ParamByName('NEWID').AsInteger := NEW_INK_SETTINGID;
  INK_SQL.Params.ParamByName('SETTING_TYPE').AsString :=
 INK_SETTING_TYPE;
  INK_SQL.Params.ParamByName('NEWDATE').AsString := DateSTR;
  INK_SQL.Params.ParamByName('LATEST_DATA').AsInteger :=
 INK_LATEST_DATA;
  INK_SQL.ExecSQL;

  INK_TRANSACTION.Commit;

  result := True;

  except
  on e: exception do // Catch my exception
 begin
  raise exception.Create('Error: ' + e.Message);
 end;
 end;
   finally
 FreeDB();
   end;   

 Where InitializeDB() code:

 procedure InitializeDB();
  begin
   INK_DB := TPQConnection.Create(nil);
   INK_SQL := TSQLQuery.Create(nil);
   INK_TRANSACTION := TSQLTransaction.Create(nil);
   INK_DATASOURCE := TDatasource.Create(nil);
   if not INK_DB.Connected then
   begin
 INK_DB.HostName := DATABASE_HOST;
 INK_DB.DatabaseName := DATABASE_NAME;
 INK_DB.UserName := DATABASE_USER;
 INK_DB.Password := DATABASE_PASSWORD;
 INK_DB.Connected := True;

 INK_SQL.database := INK_DB;
 INK_TRANSACTION.DataBase := INK_DB;
 INK_TRANSACTION.Active := True;
 INK_DATASOURCE.DataSet := INK_SQL;
 INK_SQL.Transaction := INK_TRANSACTION;
   end;
  end;


 Thank you for any ideas...

 Regards,
 Allan




 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-14 Thread Allan E. Registos
On Monday, 14 April, 2014 03:32 PM, Luca Olivetti wrote:
 El 14/04/14 08:37, Juha Manninen ha escrit:
 ZVDatetimeCtrls is now included in Lazarus trunk sources and the
 component names are identical with Delphi component names.
 The report and possible example code should be done for that version.
 FWIW it also happens with a TDateEdit (lazarus 1.2.0/gtk).

 Bye
Using Lazarus 1.2.0/gtk2/Ubuntu 12.04/Unity shell.

Regards,
Allan



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-14 Thread Allan E. Registos
On Monday, 14 April, 2014 03:55 PM, Juha Manninen wrote:
 On Mon, Apr 14, 2014 at 10:40 AM, Allan E. Registos
 allan.regis...@smpc.steniel.com.ph wrote:
 FWIW it also happens with a TDateEdit (lazarus 1.2.0/gtk).

 Using Lazarus 1.2.0/gtk2/Ubuntu 12.04/Unity shell.
 Please report with the details and attach a demo application for testing.
Done:
http://bugs.freepascal.org/view.php?id=26018

 Juha

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Always On Top (Linux) ZVDatetimeCtrls doesn't show up(Bug?)

2014-04-13 Thread Allan E. Registos
Hi all, 

A minor issue in Linux. 

In linux, we have this privileged to keep a certain application window on top 
of any window by right-clicking the top bar and click Always On Top from the 
context menu. 
Now I have this date/time control, I am using the date time picker from the 
package: ZVDatetimeCtrls. When I enable the window Always On Top', the date 
picker no longer pops-up because it was behind the application window(being 
always on top). 

Using ZVDatetimeCtrls 1.4. Not using the latest trunk for it was still the same 
version 1.4. 

It is easy to test this in your Linux, put a datetime picker from 
ZVDatetimeCtrls in your form and run, then enable / disable Always On Top. 


Regards, 
Allan 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Some articles on Lazarus/Free Pascal.

2014-03-31 Thread Allan E. Registos
On Saturday, 29 March, 2014 11:52 PM, Michael Van Canneyt wrote:

 Hello,

 Since many years I have been writing articles about Object Pascal
 (both in Delphi/Kylix and FPC/Lazarus), as well as some other things.
 These articles were published - in the main - in a German magazine
 called Toolbox. Some articles appeared in FreeX, a unix magazine by
 the same Publishers (CL). Both magazines no longer exist.
Thank you for your work.
I hope you can make one for the BSD magazine that we discussed before...
:)  Version 1.0.12 works fine on my FreeBSD 10 vm.

 Lately, I have started writing for Blaise Pascal magazine.

 The editors of these magazines have given me permission to publish the
 original english texts of the articles, in PDF.

 There are almost 120 articles.

 They span a long period (almost 15 years), so some of them will be
 quite outdated
 or are not relevant for Lazarus/FPC, but nevertheless I thought some
 of them might be interesting, as they explain some of the components
 available in FPC/Lazarus.

 A couple of them are translated to dutch (and hence not readable by
 the majority of users).

 So, if you want, you can visit and download what you like from here:

 http://www.freepascal.org/~michael/articles/

 If you want some of the sample source code, feel free to contact me,
 and I will try
 to send it if it still exists - and subsequently publish the sources
 on the same page.

 Enjoy,

 Michael.

 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-31 Thread Allan E. Registos
On Friday, 28 March, 2014 05:36 PM, Mattias Gaertner wrote:
 On Fri, 28 Mar 2014 17:02:44 +0800
 Allan E. Registos allan.regis...@smpc.steniel.com.ph wrote:

 [...]
 and can't locate the correct fpcsrc version
 What is the correct fpcsrc version?
 During Lazarus startup, cannot find the correct location, I must say
 location of the fpcsrc installed.
 The IDE searches all common places. Is one common place missing?
I have .lazarus v 1.0.14 in my home directory. Uninstalled Lazarus
1.0.14 and install v 1.2, during startup, it uses that directory for
environmental setup and now generates an error for locating FPC. My
mistake of saying 'location', it still find the directory but failed to
recognize that it was the correct directory, that prompted me to move
.lazarus. I did not take a screenshot of the error, so I cannot recall
of the exact wording, but I think anyone can reproduce the error
generated by:
1. Install Lazarus 1.0.14(fpc/fpcsrc).
2. Uninstall only lazarus 1.0.14
3. Install 1.2 version
4. Run Lazarus and wait for the prompt and error at fpc tab during startup.


 [...]
 make: Entering directory `/usr/share/lazarus/1.2.0'
 /usr/bin/make -C ide idepkg
 make[1]: Entering directory `/usr/share/lazarus/1.2.0/ide'
 /bin/mkdir -p ../units/i386-win32/win32
 /bin/mkdir: cannot create directory `../units/i386-win32': Permission denied
 make[1]: *** [../units/i386-win32/win32] Error 1
 Thanks.
 The debian packages do not support cross compiling the IDE. 
 Why do you want that?
Thank you.. I see. I am thinking that the (IDE) to get recompiled in
order to support win32 objects.

 You can cross compile the packages, which the IDE does automatically
 when you cross compile your project. No need to use make manually.
I see.  Try to target win32 and now it works. Thank you for your help...
Solved...

 Mattias

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Crosscompile Target Win32 error : ( /units/i386-win32/win32] Error 1)

2014-03-27 Thread Allan E. Registos
Hi all, 

Good day, 

For Lazarus 1.0.14/Ubuntu 64 Precise 
I have successfully installed crosscompile win32/i386 and can generate win32 
executable. 
I upgraded to 1.2.
I've moved the old .lazarus to .lazarus_0.14 because Laz 1.2 is unable to 
upgrade it and was using instead the binary in that directory which is the 
1.014 version and can't locate the correct fpcsrc version so I just moved that 
directory to let the new 1.2 create a new one. 
I was able again to recompile lazarus to target win32/i386 and generated win32 
exe. 

However, I accidentally enter the command mv .lazarus .lazarus_0.14, this 
command in linux gives you no warning whatsoever that there is an existing 
directory with that name. So it just followed that command, and my existing 
.lazarus which has the lazarus1.2 binary that can target win32 was lost. 
Restoring from .lazarus_0.14 gives me the old lazarus binary. So I think this 
is just a trivial problem, and to correct this, I started from scratch. I 
removed again .lazarus and start lazarus to recreate the directory. 

When trying to recompile lazarus (Option  Prof to build[Clean Up + Build All] 
 LCL Widget type[win32/win64]  Target OS:[win32]  Target CPU:[i386]) 
I have now this error: 

make[1]: *** [../units/i386-win32/win32] Error 1 
Recompiling fpcsrc doesn't work. 


Also the reason why I upgraded to 1.2 is because I want also to target 
both 1.0.14 and 1.2 emitted this error:
make[1]: *** [../units/i386-linux/gtk2] Error 1

Anybody experience this or have an idea?

Best regards,
Allan

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ./fpcup_linux_x64 won't create lazarus executable

2014-02-25 Thread Allan E. Registos
On Tuesday, 25 February, 2014 03:33 PM, brian wrote:
 On 02/24/2014 05:52 PM, Allan E. Registos wrote:
 Anybody who is using fpcup on Ubuntu 12.04 64-bit?

 Not Ubuntu, but its ancestor. I'm using 64-bit Debian 7, and the last
 time I updated (about a week ago, I think) everything worked OK for me.
Thanks for suggesting... I love Debian, and want to be a debian
developer someday :).
Downloading fpcup again Hoping it will work this time.

 Brian.

 Tried installing lazarus through fpcup, it seems the fpcup installer is
 successful. While it manage to create a lazarus_fpcup shortcut at the
 desktop, it did not create the lazarus executable in
 ~/development/lazarus dir. I uninstalled all my fpc/lazarus
 installations to be sure and installed the required libraries and did a
 clean install two times but the same problem with no
 ~/development/lazarus/lazarus executable.

 Regards,
 Allan





 -- 
 ___
 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



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] ./fpcup_linux_x64 won't create lazarus executable

2014-02-24 Thread Allan E. Registos
Anybody who is using fpcup on Ubuntu 12.04 64-bit?
Tried installing lazarus through fpcup, it seems the fpcup installer is
successful. While it manage to create a lazarus_fpcup shortcut at the
desktop, it did not create the lazarus executable in
~/development/lazarus dir. I uninstalled all my fpc/lazarus
installations to be sure and installed the required libraries and did a
clean install two times but the same problem with no
~/development/lazarus/lazarus executable.

Regards,
Allan





smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus 1.2 RC2 Asking for /usr/share/fpcsrc/2.4.4/?

2014-02-22 Thread Allan E. Registos
On Saturday, 22 February, 2014 02:05 PM, leledumbo wrote:
 Allan E. Registos wrote
 Environment: Ubuntu 12.04.4 32-bit 
 Downloaded from sf the required fpc 2.6.2 versions of binary and source
 and installed them.
 Lazarus 1.2 RC2 will show this error at start:
 Directory: /usr/share/fpcsrc/2.4.4/

 Error: directory not found
 You can download FPC and the FPC sources from
 http://sourceforge.net/projects/lazarus/?source=directory

 And when point to the correct source will show this error:

 Directory: /usr/share/fpcsrc/2.6.2/

 Warning: Found version 2.6.2, expected 2.4.4
 You can download FPC and the FPC sources from
 http://sourceforge.net/projects/lazarus/?source=directory

 It won't recognize 2.6.2. My first problem is that I've installed the
 previous version of lazarus 0.9.30.4, which I think caused this problem.
 I've removed already this version with dpkg -r lazarus-* and dpkg -r lcl-*
 and deleted the folder manually at /usr/share/lazarus.
 Is there something I can do?
 It checks for the correct version by checking fpc (should normally be in
 /usr/bin). Try running fpc -l on terminal, do you get 2.6.2? If not, check
Tried, and I'm getting 2.7.1, thats because I've installed codetyphon
temporarily to compile, install and run a program I've just made.
 where ppc386 points to (it should be a symlink to the real compiler, ls -l
It points now to codetyphon version. So I've remove all of them, install
fpc, fpc-src then finally lazarus, and now it works.

Thanks for helping me...

Regards...
 will tell you). Note that fpc directory is located in /usr/lib/fpc so you
 might want to check that.



 --
 View this message in context: 
 http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-1-2-RC2-Asking-for-usr-share-fpcsrc-2-4-4-tp4035923p4035924.html
 Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Lazarus 1.2 RC2 Asking for /usr/share/fpcsrc/2.4.4/?

2014-02-21 Thread Allan E. Registos
Environment: Ubuntu 12.04.4 32-bit 
Downloaded from sf the required fpc 2.6.2 versions of binary and source and 
installed them.
Lazarus 1.2 RC2 will show this error at start:
Directory: /usr/share/fpcsrc/2.4.4/

Error: directory not found
You can download FPC and the FPC sources from 
http://sourceforge.net/projects/lazarus/?source=directory

And when point to the correct source will show this error:

Directory: /usr/share/fpcsrc/2.6.2/

Warning: Found version 2.6.2, expected 2.4.4
You can download FPC and the FPC sources from 
http://sourceforge.net/projects/lazarus/?source=directory

It won't recognize 2.6.2. My first problem is that I've installed the previous 
version of lazarus 0.9.30.4, which I think caused this problem.
I've removed already this version with dpkg -r lazarus-* and dpkg -r lcl-* and 
deleted the folder manually at /usr/share/lazarus.
Is there something I can do?

Regards,
Allan

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] View Graphic File

2014-02-20 Thread Allan E. Registos
On Thursday, 20 February, 2014 05:07 PM, Antonio Fortuny wrote:

 Le 20/02/2014 07:43, Allan E. Registos a écrit :
 Hi all,

 A noob question, I have trouble trying to port an existing vb.net
 snippet to pascal.
 Can anyone provide a code snippet where we can download and view a
 file from a Database?  A binary(jpeg/pdf file) was uploaded to a
 database table. The code will just download the file uploaded and
 view it.

 In vb.net this can be done:

 /  if conn.State = ConnectionState.Closed Then conn.Open()//
 //sql = Select binfile from graphicfiles WHERE id=  id//
 //
 //cmd = New NpgsqlCommand(sql, conn)//
 //
 //Dim fileData As Byte() =
 DirectCast(cmd.ExecuteScalar(), Byte())//
 //
 //Dim sTempFileName As String = Path.GetTempPath  \ 
 sFileName//
 //
 //If Not fileData Is Nothing Then//
 //
 //'Read image data into a file stream //
 //Using fs As New FileStream(sTempFileName,
 FileMode.OpenOrCreate, FileAccess.Write)//
 //fs.Write(fileData, 0, fileData.Length)//
 //'Set image variable value using memory stream. //
 //fs.Flush()//
 //fs.Close()//
 //End Using//
 //
 //Process.Start(sTempFileName) 'Open file//
 //
 //End If//
 /
 Sounds quite easy to translate:
 1. install the sqldblaz package if not yet done
 2. onto a form or a datamodule drop a connection named DB
 (correcpondig to your DB) and a transaction named TR; link them
 3. drop a TSqlQuery, link it to the connection and the transacton just
 dropped (name Q)
 4. fill in the Sql property/. /I assume that the column binfile is a
 binay blob
 ...
 var
 fs: TMemoryStream;
 begin
 ...
 fs := TMemoryStream.Create;
 try
 DB.DatabaseName := 'whatever connection could be';
 DB..UserName := 'sysdba';
 DB.Password := 'your password';
 DB.Connected := True;
 Q.Sql.Text := Format('Select binfile from graphicfiles WHERE
 id=%d/'/, [id]);/// assuming id is an integer, adapt the
 format otherwise/
 TR.StartTransaction;
 Q.Prepare;
 Q.Open;
 if Q.Eof = False then begin
 fs.Position := 0;
 TBlobField(Q.FieldByName('binfile')).SaveToStream(fs);
 ...
 fs.Position := 0; // reset position to beginning of
 stream
 do  whatever you need to do with the stream fs
 use stream length by fs.Size
 fs.SaveToFile('any file name');
 // for an image dropped onto a form:
 Image.Picture.LoadFromStream(fs);
 ... etc...

 ...
 end;
 Q.Close;
 finally
 TR.Commit
 fs.Free
 end

 This should work as it is a code snippet used in one of my programs
 (cleaned and simplified). In my case the DBMS is Firebird but this
 should work with any other supported by SqlDbLaz package.
Many Thanks! Antonio. I will use and save your code for future use.

Regards,
Allan

 Antonio.

 Thanks,,
 Allan


 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



 ---
 Ce courrier électronique ne contient aucun virus ou logiciel
 malveillant parce que la protection avast! Antivirus est active.
 http://www.avast.com



 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] View Graphic File

2014-02-19 Thread Allan E. Registos
Hi all,

A noob question, I have trouble trying to port an existing vb.net
snippet to pascal. 
Can anyone provide a code snippet where we can download and view a file
from a Database?  A binary(jpeg/pdf file) was uploaded to a database
table. The code will just download the file uploaded and view it.

In vb.net this can be done:

  /  if conn.State = ConnectionState.Closed Then conn.Open()//
//sql = Select binfile from graphicfiles WHERE id=  id//
//
//cmd = New NpgsqlCommand(sql, conn)//
//
//Dim fileData As Byte() = DirectCast(cmd.ExecuteScalar(),
Byte())//
//
//Dim sTempFileName As String = Path.GetTempPath  \ 
sFileName//
//
//If Not fileData Is Nothing Then//
//
//'Read image data into a file stream //
//Using fs As New FileStream(sTempFileName,
FileMode.OpenOrCreate, FileAccess.Write)//
//fs.Write(fileData, 0, fileData.Length)//
//'Set image variable value using memory stream. //
//fs.Flush()//
//fs.Close()//
//End Using//
//
//Process.Start(sTempFileName) 'Open file//
//
//End If//
/
Thanks,,
Allan


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread Allan E. Registos
On Wednesday, 12 February, 2014 02:47 PM, leledumbo wrote:
 I have no idea since when, but the latest I've tried is r43866. Lazarus keeps
 asking for FPC source directory and it can't even find its own directory.
If Lazarus is on Linux, one problem is due to file permissions.  Your
.lazarus directory was somehow changed to read only or owner so you
can't save env variables on it, if not, the file must be corrupt?
If on Ubuntu in your home directory, you can try 'sudo chown
yourusername.yourusername -R .lazarus' then launch lazarus, change to
correct settings, exit then run again.

 Even so, after choosing the correct values, upon restarting these are asked
 again. So, I inspect environmentoptions.xml and indeed these values are
 missing. Could anyone confirm before I file a bug report? Or link to the
 bugtracker if it's been reported?



 --
 View this message in context: 
 http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799.html
 Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [OT] Re: Lazarus/FPC for Web Development only

2014-02-09 Thread Allan E. Registos
On Sunday, 09 February, 2014 12:13 AM, silvioprog wrote:
 2014-02-07 22:11 GMT-02:00 Allan E. Registos
 allan.regis...@smpc.steniel.com.ph
 mailto:allan.regis...@smpc.steniel.com.ph:

 On Thursday, 06 February, 2014 05:26 PM, Michael Van Canneyt wrote:
 On Thu, 6 Feb 2014, Dimitrios Chr. Ioannidis wrote:

 Hi,

  5/2/2014 8:04 ??, ?/? Michael Van Canneyt ??:
 snip
 Demos, demos, demos :)

 Too much influence from Steve ?

 Let's hope not. I don't consider M$ a role model... :)

 Michael.
 A much detailed tutorial would be nice for Brook.


 Yes yes, and a more improved documentation. We are open to anyone who
 wants to document and write articles, I don't do them because my
 english is still very basic. But, I'm looking for a time to write some
 articles in portuguese, and a friend (Mr Luciano Souza :) ) said he
 would make the translation to english.
The FOSS project Docker (docker.io) has a very good tutorial in my
opinion. I am now at tutorial level 2, maybe your documentation team
will be able to get good ideas from this project. 

 I'm also a good friend of João Morais (JCode and PressObjects author:
 https://github.com/jcmoraisjr/jcore), and we are studying some
 improvements to Brook, then we will probably still write articles
 together, based on the new codes that he will contribute to the Brook.

 Again about documentation, we would be very happy if they appeared
 contrubuir new members interested to contribute in this part too.

 -- 
 Silvio Clécio
 My public projects - github.com/silvioprog http://github.com/silvioprog


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] [OT] Re: Lazarus/FPC for Web Development only

2014-02-07 Thread Allan E. Registos
On Thursday, 06 February, 2014 05:26 PM, Michael Van Canneyt wrote:


 On Thu, 6 Feb 2014, Dimitrios Chr. Ioannidis wrote:

 Hi,

  5/2/2014 8:04 ??, ?/? Michael Van Canneyt ??:
 snip
 Demos, demos, demos :)

 Too much influence from Steve ?

 Let's hope not. I don't consider M$ a role model... :)

 Michael.
A much detailed tutorial would be nice for Brook.


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] PR Call

2014-02-05 Thread Allan E. Registos
On Tuesday, 04 February, 2014 04:56 PM, Lukasz Sokol wrote:
 Hi,

 On 04/02/14 00:20, Allan E. Registos wrote:
 Hello to all,

 (Part of this mail also I posted earlier at the Lazarus forum).

 I was skimming the BSD Magazine: FreeBSD Programming Primer. In page
 7 the magazine mentioned about Pascal this way:

 [...][sorry had to skim the context a little bit]

  
 I believe writing a Free Pascal/Lazarus review to be featured in the
 BSD Magazine is one way of promoting the language in the BSD world.

 If anyone can refer a resource person who is more willing to a write
 a review of Free Pascal in the BSD magazine, please drop a reply or
 contact me so that I can forward the email address to the editor.

 The magazine's editor also stated that he is going to promote the
 language and welcome any reviewer.

 What if you start from setting up a wiki page to collect group-input to such 
 article?
That's a good idea.

 Since everybody is busy and this may be a chance for greater coverage
 (I imagine those doing FBSD ports sould be interested... but I'm not one of 
 them)
 maybe let everybody leave some input (and get credited if/when this gets 
 published)

 But since you started this, you're exactly the person who should do the above,
Michael Van Canneyt  has volunteered, I've given the privileged to him.
 because you cared enough to start this; Start from setting clear licensing to 
 whatever
 will get written on that page (GFDL? CC-BY-? whatever the magazine wants? 
 Maybe usual 
 wiki c/l/r conditions should be enough?) and maybe outline how you imagine 
 this article.

 Otherwise it's a case of 'lets-go-and-you-all-do-it' and result will be 
 -ENOPATCH...
 which would be a great shame.
The editor mentioned about writing a column, and said that he will going
to promote it, maybe one of the highlights of the magazine when they
were going to release their next issue for their 40k users.

 Needless to say, it probably won't be in a weeks-time either... 
 ... nor would it end on one version/revision ;)


 Thank you very much... Allan Registos

  
 -L.


 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] BSD Magazine Pascal quote

2014-02-04 Thread Allan E. Registos

On Tuesday, 04 February, 2014 04:38 PM, Michael Van Canneyt wrote:


 On Tue, 4 Feb 2014, Allan E. Registos wrote:

 Hello to all,

 (Part of this mail also I posted earlier at the Lazarus forum).

 If anyone can refer a resource person who is more willing to a write
 a review of Free Pascal in the BSD magazine, please drop a reply or
 contact me so that I can forward the email address to the editor.

 If you want, I can do so. I've written more than 100 articles about
 FPC/Lazarus/Delphi in several magazines.

 Michael.
Thanks Michael,  (Can't send you a message directly, greylisting error,
using this list instead).

BSD Magazine editor mail is: ewa.dud...@software.com.pl

With your experience, I am hesitate to share this to you, but in case you are 
interested, when I posted this at the laz forum, I asked one regular poster 
what might be the mechanics of doing a review, if
you are interested here are the tips he gave:

* Know your audience
* Why do you like or not like the tool/software? What are the advantages
compared against other tools?
* Describe the elements of the tool/software product. Remember that your
audience might not be familiar with it.
* How can the features of the tool/software be used?

Regards,
Allan

PS: If possible, kindly cc/inform me about the progress of doing a
Lazarus/Pascal review for the BSD magazine...

Thanks again.



 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] BSD Magazine Pascal quote

2014-02-03 Thread Allan E. Registos
Hello to all, 

(Part of this mail also I posted earlier at the Lazarus forum).

I was skimming the BSD Magazine: FreeBSD Programming Primer.
In page 7 the magazine mentioned about Pascal this way:

Quote:
BASIC and Pascal are great for learning how to code,
but they have some limitations

You can read the whole paragraph from the magazine, a free download, it needs 
registration.
I have felt that their is something wrong with the statement where Pascal was 
being paired as limited in the same way with BASIC.  So I decided to write one 
of the BSD magazine contacts found in the magazine, and said in the mail that 
the Pascal quote is incorrect and that the name Pascal is too generic and may 
or may not refer to the Modern Pascal we have now such as FPC. 

I said also that FPC code will run on most OSes and can do web programming and 
many web frameworks were created for it.

I've got an almost immediate reply and the editor give me thanks and said that 
if I will be able to write a short review on their next BSD magazine release to 
tell about the language Pascal, more like a column.  I've felt that I am not 
the right person to write a review since my experience of using Free Pascal is 
not adequate. And I believe there are more persons here in the who are more 
resourceful, so I've mailed him back and said that it would be a great 
privilege for Lazarus/Free Pascal to be featured in the BSD magazine and said 
that I am not the right person to write a review, and will let anyone from this 
(forum) list to do it.

I believe writing a Free Pascal/Lazarus review to be featured in the BSD 
Magazine is one way of promoting the language in the BSD world. 

If anyone can refer a resource person who is more willing to a write a review 
of Free Pascal in the BSD magazine, please drop a reply or contact me so that I 
can forward the email address to the editor.

The magazine's editor also stated that he is going to promote the language and 
welcome any reviewer.


Thank you very much...
Allan Registos

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus