Posts by Marcelo • 1,768 points
151 posts
-
0
votes2
answers823
views -
0
votes1
answer384
viewsQ: How to handle reserved character in a . ini file in php?
I have a file .ini where I keep some information outside the directory tree of the site, it happens that in a password I have special characters. The moment php picks up this content it gives…
-
2
votes1
answer150
viewsQ: Does using or not block definition in simple "if" influence application performance?
Between one line and another there are some doubts that do not change the flow of decisions at all, but perhaps can influence the performance of the application by the amount of extra lines…
-
1
votes1
answer247
viewsQ: How to insert this text in Postgresql?
I am using a Delphi query and need to insert the text below in a text field {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}{\f1\froman\fcharset0 Times New…
-
1
votes1
answer310
viewsQ: Export Text field to Bytea in Postgresql
I could make an application to export the contents of a Text field to Bytea without problems, but since there are thousands of records I believe that if I do via SQL will be faster. If that is…
-
1
votes1
answer533
viewsQ: Richedit Delphi messes up text when writing to Postgresql database
I’ve tried almost everything. I have a system in Delphixe6 with Postgresql, in it I have some Text type fields that I need to record formatted text (bold, italics, background color, etc) like word,…
-
3
votes1
answer810
viewsQ: How to run linux desktop application remotely via command?
I have a server on a client where I use a remote application, sometimes some user goes there and closes the application (I don’t know if unintentionally or the owner, for fear), so I can’t connect.…
-
1
votes3
answers92
viewsA: Insert summary when there is a change in a PHP Array
I don’t know the data structure before this block you put so I’ll give you an example of what it would be like to total by group using a query ... $SuaQuery->Execute(); $Row =…
-
1
votes1
answer491
viewsQ: How to delete the return of curl_init php?
This same function I put in another question for another reason, in this question I want to delete the text that $result returns: ... $fields = http_build_query($data); $post = curl_init(); $url =…
-
0
votes0
answers58
viewsQ: Why does this curl_init php result enter false?
I have the following script: ... $fields = http_build_query($data); $post = curl_init(); $url = $url . '?' . $fields; curl_setopt($post, CURLOPT_URL, $url); curl_setopt($post, CURLOPT_POST, 1);…
-
1
votes1
answer140
viewsQ: How do I know if an element has the html or value property?
I have two elements that need to be updated a DIV and another INPUT One has to be updated value and another html, example ... $.each(json, function (index, value) { if (typeof $("#" + index).val()…
-
0
votes3
answers315
viewsA: How to mount this SQL to bring months that are not in the list?
Following the answers of the friends I found another difficulty, when I do the select I need to sort by date/ month, but in the months that have nothing it brings zero and there is no date for…
-
2
votes3
answers315
viewsQ: How to mount this SQL to bring months that are not in the list?
The SQL below brings the number of entries made month by month, until then blz. I needed to show the last 6 months, even if it was zero, but in this select it would only bring when there are…
-
-1
votes2
answers80
viewsQ: How to translate this if javascript to PHP?
How this if in javascript would look in php? ... telefone = "11222223333"; // exemplo for (var n = 0; n < 10; n++) { if (telefone == new Array(11).join(n) || telefone == new Array(12).join(n)){…
-
1
votes1
answer527
viewsQ: How to obtain hierarchy structure of a Delphi component?
Guys I’m trying to refine my bug log and I came up with an idea. Using a component ApplicationEvents I have a routine that records the error log, in it I get the error in E.Message, and the Sender…
-
0
votes1
answer187
viewsQ: What is the safe way to work with Tricheedit Database?
I’m asking this question because for days I’m having a huge pain in the ass with this junk from Richedit, time he saves right time he saves a lot of ??????????????????????? at the base... I know it…
-
1
votes0
answers120
viewsQ: Why this error in Postgresql if I am not using SSL?
Why am I getting this mistake: SSL SYSCALL error: EOF Detected Connection is via local network via Delphi Application -> Posgtresql I use the ZEOS component for connection…
-
0
votes1
answer408
viewsQ: Can you identify whether a Postgresql command can lock before it is executed?
Sometimes I need to enter a field or index or make some more critical modification and often ask everyone to leave the base before I execute the command. This command on my machine even with the…
postgresqlasked Marcelo 1,768 -
2
votes2
answers343
viewsQ: Is there any way to know which tables have Bytea type fields in a Postgresql database?
I have a base with 500MB I consider small, but this slow to open some tables, checking are tables that have Bytea field, the other programmer saved images in the database, but it is impossible to…
postgresqlasked Marcelo 1,768 -
0
votes0
answers56
viewsQ: Error saving Trichedit Delphi content in Postgressql
I have to record formatted texts in the Postgresql database, when I load the Richedit shows the normal text, but when saved and I will look in the database the characters so:…
-
1
votes1
answer92
viewsQ: How do these Divs have the same height, but with their content they can be different?
How to make the Divs below have the same height every time? The content is dynamic, time content of the first will be higher, time of the second, I could use Tables, but the content is not tabular.…
-
1
votes1
answer541
viewsQ: Is there a way to change the field type of a query in Delphi without having to exclude and include?
I have the following situation, I use Postgresql and Zeos in Delphixe, I needed to update the component to better support LATIN1 x UTF-8, now I can work with every type of character, blz. But…
-
2
votes1
answer250
viewsQ: How to convert this character to Postgresql?
I am using Delphixe and Postgresql, it happens that I need to insert some characters in the database that are not accepted in LATIN1. My base is UTF-8, but as the system has been transported since…
-
1
votes0
answers198
viewsQ: Fastreport going crazy with numeric string
I really like Fastreport for the numerous layout options we can do on it, but I confess that sometimes it gets on my nerves and if I could trade. I am inserting the following string into a Memo…
-
4
votes1
answer555
viewsQ: Is there a way to create a valid certificate for Apache localhost?
Look at my local development I have made use of https://localhost, created the certificate by apache openssl, works beauty. As it is not a certificate that is in an external source the browser says…
-
2
votes1
answer853
viewsQ: Can the use of Try in Delphi when misused be a trap?
Once a programmer saw my codes and praised me for making use of Try, I confess that I was not thrilled by the praise for finding that the use of Try is not a simple way to solve exceptions, I see…
-
0
votes0
answers94
views -
1
votes2
answers1441
viewsQ: How can I not allow the browser to save the password entered?
On this site if you log in the browser does not ask to save the password and if you log in again the fields will be empty. How does he do that? I searched the web, I found some tips but none…
-
0
votes2
answers438
viewsQ: How to add event to an inherited form event in Delphi?
I explain, I have Fmodelo1 that has several standard functions, among them I have the creation of the Oncellclick event of a Dbgrid that is inherited to all the Formularios created from Fmodelo1,…
-
1
votes1
answer763
viewsQ: Accountant in Fastreport sums more than once, how to solve?
I have a very complex report in fastreport on a certain page the structure is a Masterdata -> Detaildata and within this Detail have the required components, Everything works 100%, it happens…
-
2
votes1
answer235
viewsQ: Is it possible to create PHP console applications in the Clipper style?
It looks like something from another planet, but I would like to see a current language doing old things, like a PHP doing a Clipper-style application, the one with screens with simple lines, but…
-
2
votes0
answers102
viewsQ: Why turn absolutely everything into Classes in PHP?
My systems both in ASP, Delphi and PHP maintains a kind of old standard (procedural) in the programming mode, because I find it boring to program as it is today, I see many or otherwise all using…
-
3
votes1
answer566
viewsQ: Error closing form with Tacropdf in Delphi
This "blessed" component, unfortunately I need to use it, it happens that whenever I try to close the Form it closes, but always gives a Accessviolation. There’s nothing in Form but a Tacropdf and a…
-
1
votes0
answers343
viewsQ: CGI is out of use, but what if I want to make a secure web system on an intranet?
I know there are many ways to create a secure web system with technologies like PHP. NET and etc, however these interpreted languages expose the code to curious when the system should be installed…
-
3
votes1
answer54
viewsQ: What is the cost of an update when it does not find the record?
I’m doing some Sqls in my Delphi program and I came up with this question, what is the cost to the bank engine when a UPDATE does not find the record according to the parameters of WHERE? My…
-
0
votes4
answers260
viewsA: Send data to server even if window is closed
I would do so, in each field be it input, select, Buttons etc that is editable by the user, create the property class="userpost", and in javascript ... $(".userpost").on("click, blur, paste, keyup",…
-
1
votes2
answers131
viewsQ: How to destroy activex component that is generating Delphi error?
I am using an Adobe PDF Activex component (Tacropdf), it works well, it happens that when closing the form with the proper Release lines; Freeandnil(Tform); in Onclose, it still generates an error…
-
2
votes1
answer1136
viewsA: How to finish the process of the executable itself with Delphi?
Searching on the web I ended up finding a function in the stackoverflow itself that solved my problem, follow the link How to kill lawsuits with Delphi?…
-
0
votes1
answer1136
viewsQ: How to finish the process of the executable itself with Delphi?
I’ve already posted a thread here in overflow about a problem I’m having with the Twebbrowser component, when I use it the application does not finish, is in the list of processes windows is as if…
-
0
votes2
answers463
viewsQ: Delphi application with Twebbrowser not out of the process list?
I made a test program to show colleagues what is happening, I’m using the Twebbrowser component to show a text works in a good, it happens that when I close the application it does not leave the…
-
0
votes1
answer85
viewsQ: How to use Freeandnil in this case?
I have the following routine that destroys forgotten forms opened by the user: ... for i := qtd - 1 downto 0 do begin if (Application.components[i] is TForm) then begin…
-
0
votes1
answer367
viewsQ: Debug Delphi keeps stopping even after breakpoint withdrawal?
My Delphi XE is a little crazy, there are some Units that persist in making the stops even after I removed Breakpoint (F5) from the line, someone went through it and managed to solve, already…
-
1
votes2
answers71
viewsQ: How to control version number on budget?
I’m racking my brain here to get to a common denominator, I have a system in Delphi with Postgresql, this system has a budget session I need to control the changes made in these budgets by placing…
-
2
votes2
answers1405
viewsA: What is the difference between these Form Delphi creation options?
Placing the Difference Between Forms Construction Methods in Delphi 1 - Application.CreateForm(TForm, Form); Creates a global scope variable that can be instantiated in any other form, of course…
-
0
votes2
answers1405
viewsQ: What is the difference between these Form Delphi creation options?
We have the following options: Application.CreateForm(TForm, Form); and Form := TForm.Create(Application); There’s a difference between the two? I know it exists because depending on where we call…
-
0
votes1
answer190
viewsA: Very Crazy Error in Postgresql X Fastreport Registry
I managed to solve the problem, as it involves many tables and joins Inner was not easy, but I found the problem, it turns out that another programmer created a postgre Procedure that returned…
-
1
votes1
answer190
viewsQ: Very Crazy Error in Postgresql X Fastreport Registry
I have several tables that do Masterdetail among themselves, I will not put the structure here because it is very complex, are 26 tables involved. The error is as follows: in a table there is a…
-
0
votes0
answers23
viewsQ: How to send data in a Bootstrapdialog sub-page?
In the example below I show a form inside the Dialog, this form in turn needs to receive some parameters: BootstrapDialog.show({ message: function(dialog) { var $message =…
-
0
votes1
answer25
viewsQ: Can you ignore a page in the apache log?
I’m developing a page which will permanently consult via Ajax, it turns out that the Apache access log will fill up very quickly and this brings me a problem of server space, I wondered how to treat…
-
-1
votes1
answer71
viewsA: Pdfsplitmerge class not registered in Delphi XE
After some research I checked this component, Psmsetup.exe "PDF Split Merge Component" that installs all required dependencies. Issue resolved!