Interesting questions
-
0
votes1
answer268
viewsInserting in a python sqlite3 database by a class
I am doing a mini project of a registration in a database sqlite3 by python, my problem is that in my method, which registers the product with (id, name, purchase price, sale price, quantity), gives…
-
1
votes1
answer1437
viewsAttributeerror: __enter__ in context manager implementation
I’m trying to understand the workings of gerenciadores de contexto Python, implementing a contextmanager. Here follows the script: class contextmanager(object): def __init__(self, func): self._func…
-
1
votes0
answers58
viewsHow to pick up paragraphs from a selected text snippet?
Imagine that the snippet between keys is a text selected with the mouse... That I captured with: window.getSelection().toString(); <p> <--- [pegar daqui] Meu texto selecionado {está aqui…
javascriptasked 7 years ago Ivan Ferrer 12,096 -
0
votes1
answer315
viewsHow to create table relationship in mysql
I’m starting with a relational database and I have difficulty relating the tables, I’m a layman. I ask for help by indicating a/some clear and objective books on the subject. Grateful for the…
-
3
votes2
answers4388
viewsError creating table: Invalid default value for
I went to create a table in the bank and appeared following error: Invalid default value for "updated_at" Here is the table to create: CREATE TABLE `user` ( `id` INT( 11 ) NOT NULL , `uuid` CHAR( 12…
-
0
votes0
answers304
viewscapture html from an external page take table data and send via Ajax
Next, how can I capture pure html from a page, for example "site.com.br/tabela_precos" this site has a return basically like this: <html> .... arquivos e configurações javascript .... outras…
-
1
votes4
answers1088
viewsAdd Word Links to a Text
On an html page how to make the words of the text be converted into links? so that when clicking on a given word, open the google page with the word translation. For example, in this sentence: "The…
-
3
votes3
answers49
viewsValidate form and send email
I have a code where I validate the blank fields, but I wanted to know how to do it so that when the fields are filled submit to the page send php. Form: <form method="post" action="send.php">…
-
1
votes1
answer55
viewsHow to fill in "spare spaces"
Good afternoon, I am developing a site, and in it is having a problem of a div with 100% width and height, Absolute position. The problem is that div is not fully filling her space. While doing some…
-
-1
votes1
answer159
viewschatbot in Whatsapp
I’m creating a chatbot in wtsapp to return the elements of an array...only I need a line break... I’ve tried n nothing. it returns in different messages.. would like to have q line break in the same…
jsonasked 6 years ago Alessandro Dias 1 -
0
votes2
answers140
viewsBatch counter
I am trying to get the lines of a tmp.txt file set n=0 echo %n% for /F "tokens=*" %%l in (tmp) do ( set d[%n%]=%%l set /A n+=1 ) echo %d[14]% but when I execute: 'echo %n%' -> '25' and 'echo…
batchasked 5 years, 3 months ago Bruno Trócolis 51 -
2
votes1
answer61
viewsPromotion Ecommerce consultation
I’m developing a platform Ecommerce, and I came across a problem to calculate the value of products, applying the discount of promotions in consultation SQL, currently the promotion rules are being…
-
0
votes1
answer110
viewsGrouping data by period
I am making an appointment at the bank, to return the entry of products per hour (from 00:00 until 23:00) during a given day; follow the consultation: SELECT CONVERT(VARCHAR(13),DATA_ENTRADA,120)+…
sql-serverasked 9 years, 3 months ago mrkoos 1 -
3
votes1
answer1289
viewsForeach with Lambda does not work
I have a list of objects I want to go through, but it’s giving error and I’m not understanding why: listaAtendimento.stream().forEach(atendimentoFicha -> {…
-
-1
votes1
answer340
viewsError passing parameter to proc with Dapper
I got it inside a foreach: parameter.Add("@PROD", item.CDProduto); parameter.Add("@Filial", item.filial); parameter.Add("@Cod_Oper", cod_oper); var result =…
-
0
votes1
answer351
viewsShow no 401 (Unauthorized) error on console
I created a api using the passport do laravel 5.3. It works as follows: O angular 2 send credentials to the laravel, the verification and the laravel returns a token. It’s all working round.…
-
1
votes1
answer41
viewsPlace X, Y values on an image when loading the page | Javascript
I have this javascript code that puts a marker with the x and y location when you click on the image, but I want to fill the markers with the values of my database when loading the page and not when…
-
0
votes1
answer869
viewsLine Break At Visualg’s Run Prompt:
I’m building an algorithm to calculate an employee’s special credit benefit. As you can see, in the image, at the prompt of execution, the result of the execution of line 23 goes beyond the screen…
-
1
votes2
answers412
viewsProblems to convert data mon dd yyyy hh:mm
I made a select in SQLSERVER inside php: mssql_query(SELECT TOP 1 ven.DATA FROM tab_venda ven (nolock) INNER JOIN dbo.tab_item_venda iven (nolock) ON iven.num_Venda = ven.NUM_VENDA INNER JOIN…
-
0
votes0
answers70
viewsHow to discover the largest sequence between two vectors?
I have two vectors, one with 10 elements and the other with 5 elements. I need to check how many of these elements are in sequence. For example: I’m basically doing a program that draws 10 random…