Posts by Corvo • 548 points
15 posts
-
0
votes2
answers62
viewsA: Minificar batch
Hello. A possible solution is being explained below to simulate one minified script. First of all, bounce that the mini-style need to be used only in specific cases, because it is a practice that…
-
1
votes1
answer732
viewsQ: Problem defining onClick in Runtime with Pascal (Delphi/Lazarus)
I need to use the procedure ClicaItem(Sender: TObject); in a OnClick created at runtime by the procedure CriaItem(nome:String);. However, in all my attempts, I could not attribute item.OnClick à…
-
4
votes1
answer308
viewsQ: Video playback problem using HTML5 native tag
I recently hosted a video file on MP4 on my server and used the native HTML5 tag for playback of the media on the website. The sound comes out normally and the video is not displayed (I tested it on…
-
2
votes2
answers5843
viewsQ: PHP - Getting all images from a directory and generating in HTML
I have a project and there are several folders containing image files belonging to gallery: I need to optimize this by getting all the images from a given directory and generating them in HTML.…
-
3
votes1
answer390
viewsQ: CSS - Leave a minimum distance (height) between two 'Fixed' elements
Need to leave a minimum distance between two fixed position elements (the top and the footer). The problem occurs when applying zoom-in on the page, the two elements practically meet, and the goal…
-
6
votes3
answers30960
viewsA: How to query in Mysql with two different conditions in WHERE
The general syntax of WHERE is: WHERE <condição1> AND/OR <condição2> AND/OR <condição3> ... WHERE condição1 OR condição2 If the condition 1 OR to condition2 is true the…
-
1
votes2
answers690
viewsQ: Avoiding two processes of the same application in Pascal
What is the most viable way to identify the processes of my application in memory and close them if there is more than one execution. I use the Lazarus IDE platform (looks like Delphi), which…
-
2
votes1
answer597
viewsA: Lazarus IDE: Importing images into the project
Here I leave a tutorial with the solution to my question (contains some adaptations I made to facilitate the process). Tutorial First the Lazarus IDE has a tool called lazres.exe, located in the…
-
4
votes2
answers2433
viewsA: What is Javascript Prototype?
Prototypes can be understood easily by bringing real-life things into programming. Take an example, I have the function Pessoa in Javascript, which can be understood in this context as an object:…
-
3
votes1
answer597
viewsQ: Lazarus IDE: Importing images into the project
Lately I migrated from Delphi XE6 to Lazarus IDE, and as I am not used to the new platform I would like to know how I can import images, videos and other features in the project and use them…
-
0
votes1
answer884
viewsQ: Identifying a String as Pascal variable name
I have 50 variable array type and I have a method that will receive a String containing a name of an existing variable. I would like to know what is the ideal way to identify the value of the…
-
2
votes1
answer1024
viewsQ: Creating Tedit in Real-Time and Onenter Action
Lately I’m developing a mobile app and need to create a TEdit in real time with the predefined action function. So far I can create, but without the function OnEnter action. Here is the code:…
-
10
votes1
answer227
viewsQ: CSS display and visibility - SEO effects
I’m making a website and applying some SEO techniques, but I have a div that needs to be hidden (property display:none; and visibility:hidden;). What is the effect on search engines for this DIV…
-
6
votes2
answers5270
viewsA: Background image does not appear in div without content
Set the width and height of the image. In the example I inserted an image of size 500x500, then the properties width and height shall be equivalent to 500px. Probably what was missing from your CSS…
-
4
votes1
answer4167
viewsQ: Defining an array vector
I’m learning Pascal and I’m having basic syntax problems to define a vector type variable. Here is the statement: var x:array[0..225] of String; I would like to assign the following values and in…