Posts by Guilherme Lima • 3,129 points
137 posts
-
3
votes1
answer640
viewsQ: How do you know when Brooks' law applies?
"Adding more people to a delayed software project results in an even longer delay". But when I know that this law applies, for every law there are exceptions. Sometimes a project really isn’t…
-
0
votes3
answers472
viewsA: Problem when installing SASS
Use the command below: gem sources -a http://rubygems.org/ accepted using y then try again: gem install sass if not yet certain, try to downgrade the version of your ruby.…
-
0
votes2
answers612
viewsQ: Add a third-party program to an installer
I’m using the InnoSetup to generate an installer for an application Delphi. But that same application depends on the program R, would like to know if it is possible to connect the installer of the R…
-
1
votes4
answers542
viewsQ: Loop function until the application closes
I have the following code that keeps changing image from time to time. if Timer1.enabled = true then begin Gauge1.Progress := Gauge1.Progress +1; if Gauge1.Progress=10 then…
-
2
votes1
answer255
viewsQ: Show DBF values above Mapwingis + Delphi points
I have the following code to open a file . shp and plot it on a component of MapWinGis Map1. procedure TForm1.Button1Click(Sender: TObject); var shp: Shapefile; HandleLayer: integer; begin shp:=…
-
0
votes1
answer719
viewsA: Open network document - Delphi
I believe that as the file is on another computer is something like this: const RemoteName = '\\ntmemo01\C$'; UserName = 'yourusername'; Password = 'yourpassword'; function MapNetworkDrive: Boolean;…
-
0
votes1
answer80
viewsQ: Query in SQL Server
When doing the sequinte query select * FROM conta It brings me the columns, being that the id_fornecedor comes from the table fornecedor id | id_fornecedor | conta_status 1 | 1 | S I would like to…
-
2
votes2
answers163
viewsQ: Error message when closing the application
I have this code that I use in a login screen, that when the user uses the correct password, it directs to the main screen, until then everything ok, works perfectly, but when I fecho the…
-
2
votes2
answers2921
viewsQ: How to use ternary IF
How would the following situation be using if ternary? if StrToInt(Edit1.Text) < 30 then Edit2.Text := '30' else if StrToInt(Edit1.Text) in [30..50] then Edit2.Text := '40' else Edit2.Text :=…
-
0
votes0
answers265
viewsQ: Login button with facebook does not appear
I’m trying to call the facebook button on a page index.php, but the same does not appear on the page below the code: <?php session_start(); ?> <!DOCTYPE html> <html> <head>…
-
-2
votes1
answer1983
viewsQ: Read lines from a Txt file and play in different Edits
I have the following structure of .Txt: --------DEF-------- 3 25 3 2 46 ------PROF1---------- 0-20 cm 100% 100% 100% 10% 33% 0% 100% 0% Outro I would like it when the user chooses the option of .Txt…
-
0
votes1
answer58
viewsQ: Stringreplace on all occurrences
I’d like to replace all the \ for / on my Edit, but it only works for the first occurrence with the following code: Edit1.text := '"'+ StringReplace(Edit1.text, '\', '/', []) + '"'; How to replace…
delphiasked Guilherme Lima 3,129 -
0
votes1
answer1500
viewsQ: Unused import statement - Pycharm
When trying to import using Pycharm: from selenium.webdriver.common.alert import Alert it leaves the text in gray, and shows unused import statemnet. tried to use the: # noinspection…
-
2
votes3
answers2173
viewsA: How to select all tables in mysql
mysql> USE test; Database changed mysql> SHOW TABLES; +----------------+ | Tables_in_test | +----------------+ | t1 | | t2 | | t3 | +----------------+ 3 rows in set (0.00 sec) I believe that’s…
-
1
votes0
answers33
viewsQ: When to use @in PHP
When to use @before connecting, as in the example below: @mysqli_connect and when to use only mysqli_connect
phpasked Guilherme Lima 3,129 -
1
votes2
answers136
viewsQ: Page does not receive and does not register data in Mysql
I’m mounting a php application for user registration, but for some reason when I input the data and click register, it reloads the page does not give any error, and does not load anything in the…
-
1
votes1
answer258
viewsQ: Add space after finding a character
I have the following code that adds the contents of a button and a space after clicked procedure TForm3.Button1Click(Sender: TObject); begin if count = 0 then Edit1.Text := Edit1.Text +…
delphiasked Guilherme Lima 3,129 -
3
votes2
answers4020
viewsA: How to create a cookie in Javascript?
The code has the function of setting, reading and checking the cookie, very simple. I hope it gives you a way: <!DOCTYPE html> <html> <head> <script> function…
-
6
votes2
answers350
viewsQ: Solve a bug in the middle of a sprint?
It is valid that the user has a bug that prevents their work from continuing to be reported for development and wants to commit to the new bug and stop the development of the platform? When it is…
scrumasked Guilherme Lima 3,129 -
0
votes2
answers2121
viewsA: Doubt using Firedac with Tclientedatset
add 'MidasLib' to use where you have yours ClientDataset to make the remote connection with the dataSetProvider.
delphianswered Guilherme Lima 3,129 -
0
votes1
answer135
viewsQ: Function does not find text in Tedit
With the code below I’m trying to find a text in a Tedit, procedure TForm2.CheckBox3Click(Sender: TObject); var i: integer; begin existeCampo := false; begin for i := 1 to form1.variavel do begin if…
delphiasked Guilherme Lima 3,129 -
1
votes2
answers1556
viewsA: Quickreport Save PDF by Default
used this code in quickreport 3.0 and Delphi 7, I believe it is still working in the most current versions. procedure ReportExport(aReport: TQuickRep; const aFileName: TFileName); var Pdf:…
-
1
votes2
answers158
viewsA: How to use Kivy with Python 3.4.3 on Mac
Works in Python 3.7 also as reported on the site. Download Kivy 1.9.1 - osx . python 3.7…
-
5
votes1
answer135
viewsQ: Show hint only when the application starts for the first time
I have a desktop application that is a bit complicated, so I thought I’d help the user by generating images (Hints) to help on the way. But I know how boring this is, so I would like to know if it…
-
3
votes4
answers27834
viewsQ: Remove edge of button
I own a Jumbotron btn I can’t get the hover button (the blue rectangle), I have tried to disable all Tyles on Chrome console but it does not work. <button type="submit"…
-
0
votes2
answers67
viewsQ: Error making Checkbox Visible
I am using the following code to make Checkbox visible. CheckBox: Array[1..15] of TcheckBox; procedure TForm1.edt_variavelChange(Sender: TObject); var valor,x,i : integer; if valor = 2 then begin…
-
1
votes1
answer151
viewsQ: Remove shadow-box and adjust container size
I’m having a hard time making some adjustments on a page I’m using Bootstrap3, and I can only make settings on Clientside I’d like to remove the box shadow from a jumotron.btn box-shadow: 0 5px 11px…
-
1
votes2
answers63
viewsQ: Is it possible to improve the writing of this code?
I have the following code below: memo1.Lines.Add('def' + ' ' + nome + ' ' + '('+ variavel1 +',' + ' '+ variavel2 + ',' + ' ' + raster1 + ')' +':'); Which results in something like this: def nome…
-
1
votes3
answers381
viewsA: Loop to make edits invisible
for i := 1 to 9 do begin TEdit(FindComponent('edt_variavel'+IntToStr(i))).Visible := false; end; You saved my trouble.
-
2
votes3
answers381
viewsQ: Loop to make edits invisible
I have the following way, to make the edits invisible. edt_raster5.visible := false; edt_raster6.visible := false; edt_raster7.visible := false; edt_raster8.visible := false; edt_raster9.visible :=…
-
2
votes2
answers854
viewsQ: Error on close executable
I have an application that has 4 forms. After the process there is a button for the person to start again. procedure TForm4.Button3Click(Sender: TObject); begin FreeAndNil(Form1); FreeAndNil(Form2);…
-
5
votes1
answer70
viewsQ: The difference between * and *|*
Using * I will find all elements using CSS but recently found in some codes the use of *|* what the difference between them?
cssasked Guilherme Lima 3,129 -
0
votes2
answers776
viewsA: Error while interpreting special characters
The way I managed to solve: driver.find_element_by_partial_link_text('Conf').click() but I still can not understand why that way not Funiona.
-
2
votes3
answers3208
viewsA: Perform two functions with onclick
Add point and comma at the end to call the functions, (will be called in order) <input id="botao" type="button" value="click" onclick="ocultarID(); mostrarID();"/>…
javascriptanswered Guilherme Lima 3,129 -
2
votes2
answers704
viewsA: Entity - Disable Lazy Loading?
The following are the advantages of Lazy Loading Minimizes application startup time. Application consumes less memory because of on-demand charging. Unnecessary SQL database execution is avoided.…
-
1
votes1
answer927
viewsA: How to add borders to the columns and rows of a Tablelayout via code:
There is no direct way to do this, you will have to work with background, padding and margins. below an idea of what you can try to work. <TableLayout android:layout_width="wrap_content"…
-
1
votes2
answers776
viewsQ: Error while interpreting special characters
I’m looking for an element, and so far so good, I’ve tested it again and again, but.. by using this code driver.find_element_by_xpath('//*[@data-qtip="Configurações"]').click() gives an error, and…
-
2
votes1
answer328
viewsA: How to convert multiple images. jpgs to a single pdf file in c#
Because you haven’t done anything, I’ll give you what I have here. Maybe it’s not 100% what you want, but it will give you a way. A basic idea, maybe you have to readjust the image. //Cria um novo…
-
3
votes2
answers1558
viewsA: How to know the day of the week in R?
df = data.frame(date=c("2012-02-01", "2012-02-01", "2012-02-02")) df$day <- weekdays(as.Date(df$date)) df ## data dia ## 1 2012-02-01 Quarta ## 2 2012-02-01…
ranswered Guilherme Lima 3,129 -
0
votes1
answer154
viewsQ: Find element that the ID is generated randomly
I have a situation that id, always updating randomly.. and without an apparent order making it possible for me to use find_element_by_id the component is as follows:: <table…
-
0
votes1
answer1323
viewsQ: Click on button does not work
I have a button made on ext, that he should open a window when Selenium clicked, but that doesn’t happen, I’m doing it this way. from selenium import webdriver from selenium.webdriver.support.ui…
-
0
votes1
answer502
viewsQ: Python and Selenium: Syntaxerror: invalid syntax
I am trying to log automatically on facebook with the code below, from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import unittest class LoginTest…
-
2
votes2
answers2854
viewsQ: Choose folder to save a file
I have this code that I select the place to save the file filename_2 = QFileDialog.getSaveFileName(self.dlg, "Select output file") self.dlg.pasta_saida.setText(filename_2) however I would like to…
pythonasked Guilherme Lima 3,129 -
0
votes2
answers720
viewsA: Delphi - Thread exception handling
Add your code to make it clearer, but it’s something like this. procedure TSuaThread.Execute; begin try ...... except ... seu tratamento da exceção ... end; end;…
-
2
votes1
answer1296
viewsQ: Break line in a given character
I have an application where a TLabel receives a line from a TMemo, however the form that I’m exhibiting has to be small, and the information is great. My idea is that when arriving at a certain…
delphiasked Guilherme Lima 3,129 -
2
votes2
answers135
viewsQ: Reading Incorrect txt File
Well I’m reading the following information from a txt 0016009993|GuilhermeLima|Azul|4|21|basico+completo|6 after reading I am separating the contents using the delimiters "|" to separate into memos,…
delphiasked Guilherme Lima 3,129 -
1
votes2
answers1162
viewsA: Is it possible to leave the label and text at 90 degrees?
I got it this way. Add text to an image like @Júnior’s idea with the code below. procedure TForm2.ConvTextOut(CV: TCanvas; const sText: String; x, y, angle: integer); var LogFont: TLogFont;…
delphianswered Guilherme Lima 3,129 -
5
votes2
answers1162
viewsQ: Is it possible to leave the label and text at 90 degrees?
It is possible to make a TLabel stand upright, but your text like this: I have tested some components, but they do not work in the version of Delphi-XE8. I managed to let him in 90 degrees but the…
delphiasked Guilherme Lima 3,129 -
0
votes1
answer125
viewsQ: Email Marketing other than HTML
I am trying to send a martketing email through the platform WEBMAIL - KINGHOST by the hmtl editor but it comes out very different from what is in html. below the html code that is working properly.…
-
1
votes2
answers415
viewsQ: Label printing skipping 2 by 2
I’m generating an application that reads a txt , and generates labels to be printed at the time I am using an Argox with the code below I receive and print the labels: var x: string; var y,i :…
delphiasked Guilherme Lima 3,129