<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<rss version="2.0"><channel><copyright>©2010 PC SOFT</copyright><lastBuildDate>9 Sep 2010 01:25:02 Z</lastBuildDate><pubDate>9 Sep 2010 01:25:02 Z</pubDate><description>News, informations, examples, tips </description><generator>PC SOFT WEBDEV 14</generator><language>es-es</language><link>http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks</link><managingEditor>PC SOFT</managingEditor><title>Tips </title><category>Tips </category><webMaster>webmaster@windev.es</webMaster><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=scm-source-code-manager-branch-management,6,210</comments><pubDate>8 Nov 2009 16:00:00 Z</pubDate><description>&lt;div&gt;&lt;div&gt;A branch is used to make changes to several versions of a project in parallel.&lt;/div&gt;&lt;br&gt;&lt;div&gt;For example, when you deploy a version at a customer site, to preserve the source of the deployed version in case you need to perform corrections, you may want to create a branch. In parallel, on the common branch, developers can keep working on the next release.&lt;/div&gt;&lt;div&gt;Branch management also allows you to manage different versions for each customer.&lt;/div&gt;&lt;br&gt;&lt;div&gt;Indeed, the benefit of using branches with SCM, is that the developer can apply modifications from one branch to another.&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;Creating &amp;nbsp;a branch afterwards&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Branches are created using the &quot;Create a branch&quot; option of the &quot;SCM&quot; menu.&lt;/div&gt;&lt;div&gt;But if the branch was &quot;forgotten&quot;, no big deal: it is never too late to create branch since you can do it later using the history.&lt;/div&gt;&lt;div&gt;In this case, you must:&lt;/div&gt;&lt;div&gt;• Open the project's history using the &quot;SCM .. Project management .. Project history&quot; menu. &amp;nbsp;the project's history shows you all the project versions that have been checked in.&lt;/div&gt;&lt;div&gt;• Select the version you want to use for creating the branch&lt;/div&gt;&lt;div&gt;• Validate by clicking &quot;Create branch&quot;.&lt;/div&gt;&lt;div&gt;• Name the branch &quot;Customer version&quot; for instance.&lt;/div&gt;&lt;div&gt;• Specify the directory for this branch on the development machine.&lt;/div&gt;&lt;div&gt;• Specify the directory for this branch in the source database.&lt;/div&gt;&lt;br&gt;&lt;div&gt;This new branch can now evolve in parallel with the &quot;common trunc&quot;&amp;nbsp;! This means that if changes are required on the customer version, the developer can implement these in the branch with total piece of mind.&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;Applying changes&lt;/b&gt;&lt;/div&gt;&lt;div&gt;During the project life cycle, you will need to retrieve changes and fixes developed in the common trunk. This operation is performed in the &amp;quot;Branches .. Retrieve modifications from a branch&amp;quot; menu.&lt;/div&gt;&lt;br&gt;&lt;div&gt;You can retrieve all the modifications performed on an element or only some of it.&lt;br&gt;&lt;/div&gt;&lt;/div&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=scm-source-code-manager-branch-management,6,210</guid><link>http://blogs.pcsoft.fr/post.awp?title=scm-source-code-manager-branch-management,6,210</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>SCM – Source Code Manager – Branch Management</title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=tunning-debugging-traces,6,213</comments><pubDate>25 Aug 2009 10:35:13 Z</pubDate><description>&lt;div&gt;&lt;div&gt;&lt;div&gt;The WLanguage &lt;b&gt;&lt;i&gt;Trace &lt;/i&gt;&lt;/b&gt;function lets you display information during an application's execution. This function is often used during the development phase of an application.&lt;/div&gt;&lt;br&gt;&lt;div&gt;On the other hand, a lot of developers are aware of the possibility of customizing how the trace works. This customization is done with the &lt;b&gt;&lt;i&gt;TraceStart &lt;/i&gt;&lt;/b&gt;function of WLanguage.&lt;/div&gt;&lt;br&gt;&lt;div&gt;// The trace window is displayed&amp;nbsp;&lt;/div&gt;&lt;div&gt;// on top of the other windows&lt;/div&gt;&lt;div&gt;// and a trace file is saved&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;TraceStart&lt;/i&gt;&lt;/b&gt;(trWindow+trTopMost+trFile,&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;i&gt;fExeDir&lt;/i&gt;&lt;/b&gt;()+[&quot;\&quot;]+&quot;TraceExecution.txt&quot;)&lt;/div&gt;&lt;br&gt;&lt;div&gt;You can:&lt;/div&gt;&lt;div&gt;• Displaying the trace inside a window, is the default behavior with the &lt;i&gt;&lt;b&gt;trWindow &lt;/b&gt;&lt;/i&gt;constant&lt;/div&gt;&lt;div&gt;• Save the trace in file with the &lt;i&gt;&lt;b&gt;trFile &lt;/b&gt;&lt;/i&gt;constant.&lt;/div&gt;&lt;div&gt;• Disable the trace by programming with the &lt;i&gt;&lt;b&gt;trDisable &lt;/b&gt;&lt;/i&gt;constant&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=tunning-debugging-traces,6,213</guid><link>http://blogs.pcsoft.fr/post.awp?title=tunning-debugging-traces,6,213</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>Tunning </title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=tunning-debugging-traces,6,211</comments><pubDate>20 Aug 2009 16:00:00 Z</pubDate><description>&lt;div&gt;&lt;div&gt;&lt;div&gt;The WLanguage &lt;b&gt;&lt;i&gt;Trace &lt;/i&gt;&lt;/b&gt;function lets you display information during an application's execution. This function is often used during the development phase of an application.&lt;/div&gt;&lt;br&gt;&lt;div&gt;On the other hand, a lot of developers are aware of the possibility of customizing how the trace works. This customization is done with the &lt;b&gt;&lt;i&gt;TraceStart &lt;/i&gt;&lt;/b&gt;function of WLanguage.&lt;/div&gt;&lt;br&gt;&lt;div&gt;// The trace window is displayed&amp;nbsp;&lt;/div&gt;&lt;div&gt;// on top of the other windows&lt;/div&gt;&lt;div&gt;// and a trace file is saved&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;i&gt;TraceStart&lt;/i&gt;&lt;/b&gt;(trWindow+trTopMost+trFile,&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;b&gt;&lt;i&gt;fExeDir&lt;/i&gt;&lt;/b&gt;()+[&quot;\&quot;]+&quot;TraceExecution.txt&quot;)&lt;/div&gt;&lt;br&gt;&lt;div&gt;You can:&lt;/div&gt;&lt;div&gt;• Displaying the trace inside a window, is the default behavior with the &lt;i&gt;&lt;b&gt;trWindow &lt;/b&gt;&lt;/i&gt;constant&lt;/div&gt;&lt;div&gt;• Save the trace in file with the &lt;i&gt;&lt;b&gt;trFile &lt;/b&gt;&lt;/i&gt;constant.&lt;/div&gt;&lt;div&gt;• Disable the trace by programming with the &lt;i&gt;&lt;b&gt;trDisable &lt;/b&gt;&lt;/i&gt;constant&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=tunning-debugging-traces,6,211</guid><link>http://blogs.pcsoft.fr/post.awp?title=tunning-debugging-traces,6,211</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>Tunning </title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-frame-compression,6,209</comments><pubDate>30 Jul 2009 12:00:00 Z</pubDate><description>&lt;div&gt;In Client/Server mode, network transfers take time. HyperFileSQL Client/Server offers frame compression: the data packets that travel between the applications and the server are compressed. Therefore, the volume of data traveling on the network is less and the data moves faster.&lt;/div&gt;&lt;br&gt;&lt;div&gt;To enable frame compression, simply:&lt;/div&gt;&lt;div&gt;• use the WLanguage ..Compression property on the connection.&lt;/div&gt;&lt;div&gt;• check the &quot;Data compression&quot; box in the description of the analysis connection.&lt;/div&gt;&lt;br&gt;&lt;div&gt;Note:&lt;/div&gt;&lt;div&gt;Frame compression should only be used with slow networks: Internet GPRS, ... On a fast network, the time spent compressing and decompressing frames may offset the time saved.&lt;/div&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-frame-compression,6,209</guid><link>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-frame-compression,6,209</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>HyperFileSQL DataBase – Frame compression</title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-using-stored-procedures,6,208</comments><pubDate>20 Jul 2009 15:01:23 Z</pubDate><description>&lt;div&gt;Stored procedures are procedures written in WLanguage that run directly on the database server. These procedures let you optimize process speed. Since all the database accesses are performed from the server itself, no information has to travel on the network.&lt;/div&gt;&lt;br&gt;&lt;div&gt;Stored procedures &lt;i&gt;&lt;b&gt;are especially well suited for processes that do not require user input&lt;/b&gt;&lt;/i&gt;, such as statistic processing for instance.&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;Creating stored procedures&lt;/b&gt;&lt;/div&gt;&lt;div&gt;To create a stored procedure, simply right-click inside the analysis treeview and choose the &quot;New set of procedures&quot; option.&lt;/div&gt;&lt;div&gt;To create a new procedure in this collection, simply right click and choose &quot;New procedure&quot;.&lt;/div&gt;&lt;div&gt;The stored procedures are written in WLanguage, in the WinDev code editor.&lt;/div&gt;&lt;br&gt;&lt;div&gt;Note:&lt;/div&gt;&lt;div&gt;• If queries are used in stored procedures, they need to be added to the analysis as &quot;Stored queries&quot;.&lt;/div&gt;&lt;div&gt;• The contexts (global variables, HyperFileSQL context) are not shared between the application and the stored procedures. A stored procedure has no information about the project and vice versa.&lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;b&gt;Deploying stored procedures&lt;/b&gt;&lt;/div&gt;&lt;div&gt;To put stored procedures on the server, you can:&lt;/div&gt;&lt;div&gt;• run the automatic modification. Indeed, the automatic modification does NOT only update files. It also updates integrity constraints, procedures and stored queries.&lt;/div&gt;&lt;div&gt;• only update the stored procedures. To do so, simply click inside the analysis treeview and choose &quot;Update stored elements&quot;.&lt;/div&gt;&lt;br&gt;&lt;div&gt;Note:&lt;/div&gt;&lt;div&gt;To call a stored procedure from a project, simply use the &lt;b&gt;&lt;i&gt;HExecuteProcedure &lt;/i&gt;&lt;/b&gt;function with the following parameters:&amp;nbsp;&lt;/div&gt;&lt;div&gt;• the name of the connection to the server that must run the procedure,&lt;/div&gt;&lt;div&gt;• the name of the procedure to run,&lt;/div&gt;&lt;div&gt;• the parameters to pass to the stored procedures.&lt;/div&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-using-stored-procedures,6,208</guid><link>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-using-stored-procedures,6,208</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>HyperFileSQL DataBase – Using stored procedures</title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-query-optimization,6,204</comments><pubDate>7 Jul 2009 12:00:00 Z</pubDate><description>&lt;p&gt;Using the HyperFileSQL logs, you can figure out which queries are used the most and which queries take a long time to run. These queries should be optimized.&lt;/p&gt;&lt;p&gt;To optimize a query, WinDev offers a query optimizer, accessible via the &quot;Project .. Performances and enhancements .. Optimize the project queries&quot; menu option. &lt;/p&gt;&lt;p&gt;The query optimizer lets you see in just a few click whether you need to add key items to the various data files in order to optimize the queries' execution.&lt;br&gt;Simply select the queries to check and click the &quot;Run the performance analysis&quot; button. WinDev displays the keys to add to the data files to optimize the queries then. &lt;br&gt;If the optimizer detected some missing keys, simply click the &quot;Apply all modifications&quot; button and WinDev will automatically create the needed keys. &lt;br&gt;Then, simply regenerate the analysis with the automatic data file modification option.&lt;/p&gt;&lt;p&gt;Note:&lt;br&gt;When a query is created, WinDev automatically performs this performance analysis. If an optimization is possible, an AAD (Aided Application Development) suggestion will be displayed in the query editor.&lt;/p&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-query-optimization,6,204</guid><link>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-query-optimization,6,204</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>HyperFileSQL DataBase – Query optimization</title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=scm-source-code-manager-differences-and-sources-merging,6,202</comments><pubDate>1 Jul 2009 12:00:00 Z</pubDate><description>&lt;P&gt;A large number of tools come with SCM to performed advanced operations. One of the indispensable tool is the management of source differences. &lt;BR&gt;&lt;BR&gt;This feature allows developers to see the source differences between two versions of an element (a window, a class, etc.) and if needed to merge the source code to apply a correction for instance.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;History&lt;/STRONG&gt;&lt;BR&gt;To do so, simply access the element's history accessible via the &quot;SCM..Element history&quot; menu. From this window the developer can access all the versions of the element since it was created. Next to each version there is a comment. These comments are the ones entered by developers when checking in the element into SCM.&lt;/P&gt;&lt;P&gt;Note: &lt;BR&gt;You can force comments to be entered by defining a &quot;check-in policy&quot; from the SCM explorer. This feature is described later in this article.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Retrieving and merging&lt;/STRONG&gt;&lt;BR&gt;Using the history, you can restore the element as it was at a previous date.&lt;BR&gt;There are several ways you can retrieve an element:&lt;BR&gt;•&amp;nbsp;retrieve the entire element. That is all the whole element (a window for instance).&lt;/P&gt;&lt;P&gt;To retrieve the entire element, simply select the version to retrieve and click the &quot;Get&quot; button.&lt;BR&gt;This option is only interesting if the element has not evolved a lot. This is because if changes have been made, they are overwritten.&lt;/P&gt;&lt;P&gt;•&amp;nbsp;retrieve only the piece of code you want. Simply click the &quot;Compare&quot; button.&lt;BR&gt;in this case, WinDev calculates the differences between the current version of the element and the version selected in the history.&lt;BR&gt;The developer then sees all the differences between the two elements (code and interface differences).&lt;/P&gt;&lt;P&gt;When clicking the eye icon, the developer is shown both pieces of code side by side&lt;BR&gt;•&amp;nbsp;on the left the code of the current element,&lt;BR&gt;•&amp;nbsp;on the right the code of the element in the history.&lt;/P&gt;&lt;P&gt;You can then retrieve part of the code using the arrow keys located next to each detected difference.&lt;/P&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=scm-source-code-manager-differences-and-sources-merging,6,202</guid><link>http://blogs.pcsoft.fr/post.awp?title=scm-source-code-manager-differences-and-sources-merging,6,202</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>SCM – Source Code Manager – Differences and sources merging</title></item><item><author>lst@pcsoft.fr</author><category>Tips </category><comments>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-logs-and-statitics,6,201</comments><pubDate>24 Jun 2009 11:22:04 Z</pubDate><description>&lt;p&gt;The statistics on server use are accessible from the HyperFileSQL Control Center. Simply select the database you want and access the &quot;Log and Statistics&quot; tab. From this tab, you can access the server's logs and activity statistics.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Server logs&lt;/strong&gt;&lt;br&gt;The server logs contain information about the calls to the server, i.e. about the requests sent by the applications. &lt;br&gt;Logs allow you to monitor applications that use a HyperFileSQL server. For example, you can detect queries that are run an abnormal number of times, queries that take too long ...&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Activity statistics&lt;/strong&gt;&lt;br&gt;The activity statistics provide information about the HyperFileSQL server machine. For instance, the amount of information sent through the network, the amount of information read from the disk...&lt;br&gt;The activity statistics allow you to see whether the server is properly configured to support its loads: is the network card fast enough, are the disks fast enough, ...&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Activation&lt;/strong&gt;&lt;br&gt;The logs and statistics are enabled and configured in the &quot;Configuration&quot; tab of the HyperFileSQL Control Center.&lt;/p&gt;&lt;p&gt;To enable the logs, simply:&lt;br&gt;•&amp;nbsp;select &quot;Logs&quot;,&lt;br&gt;•&amp;nbsp;check the &quot;Enable the backup of the calls to the server in the log file&quot; box. When selecting this option, all the calls to the server are stored along with the function that made the call (for example,&amp;nbsp;&lt;span class=&quot;code&quot;&gt;&lt;font class=&quot;variable&quot;&gt;&lt;font class=&quot;function&quot;&gt;HExecuteQuery&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;or&amp;nbsp;&lt;span class=&quot;code&quot;&gt;&lt;font class=&quot;variable&quot;&gt;&lt;font class=&quot;function&quot;&gt;HReadSeek&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;).&lt;/p&gt;&lt;p&gt;You can also store all the parameters of the calls to get an even more detailed log. To find out which query has been executed for example, the query parameters ...&lt;/p&gt;&lt;p&gt;To enable activity statistics, simply:&lt;br&gt;•&amp;nbsp;select &quot;Activity statistics&quot;,&lt;br&gt;•&amp;nbsp;check &quot;Enable the activity statistics of the server&quot;.&lt;/p&gt;&lt;p&gt;Note:&lt;br&gt;In order for the modifications to be taken into account, you need to click the &quot;Apply&quot; button.&lt;/p&gt;&lt;p&gt;Once the execution log have been enabled, you can display&lt;br&gt;•&amp;nbsp;the most used queries,&lt;br&gt;•&amp;nbsp;the longest queries,&lt;br&gt;•&amp;nbsp;the longest function calls,&lt;br&gt;•&amp;nbsp;the applications that consume the most,&lt;br&gt;•&amp;nbsp;all the logs.&lt;/p&gt;&lt;p&gt;Simply select the information to display and the start and end dates you want, then click the &quot;Display&quot; button.&lt;/p&gt;</description><guid isPermaLink="1">http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-logs-and-statitics,6,201</guid><link>http://blogs.pcsoft.fr/post.awp?title=hyperfilesql-database-logs-and-statitics,6,201</link><source url="http://blogs.pcsoft.fr/billets.awp?blog=tips_tricks&amp;lang=es-es">Tips </source><title>HyperFileSQL DataBase – Logs and Statitics</title></item></channel></rss>
