Posts by Hoppy • 812 points
21 posts
-
1
votes2
answers5127
views -
3
votes2
answers731
viewsA: SQL - Double UPDATE with double Where
$sql = "UPDATE usuarios SET nome="Matheus Silva" WHERE id=1; UPDATE usuarios SET nome="Lucas Silva" WHERE id=2;"; I don’t know what language you’re using.. but try this way, separating queries with…
-
1
votes1
answer233
viewsQ: Quantity limit in database query
public IList<DtoContrato> ConsulteListaPorListaDeIds(List<Guid> listaIds) { return Conversor(Persistencia().Where(x => listaIds.Contains(x.Id))); } My question is, if the list of ids…
-
0
votes1
answer287
viewsA: How to recover a deleted file by "rm" command?
There are possibilities, but it could make your system inconsistent (if the application is still running), I suggest you check with the server administrator if you have any backup. Also I suggest…
-
2
votes2
answers988
viewsA: How to pass another parameter and value with another variable via post?
$.post( "test.php", { nome: "John", hora: "2pm" } ); or in case of sending of matrix. $.post( "test.php", { 'nomes[]': [ "Jon", "Susan" ] } ); Adapting your routine: $.post("bairro.php",…
-
2
votes2
answers3781
viewsA: Wait time to execute new action [Selenium] [C#]
There are 4 ways to wait. Implicitly, it is applicable to all page elements. driver.manage().timeouts().implicitlyWait(ALGUM_NUMERO, TimeUnit.SECONDS); Explicitly applied for a particular element.…
-
3
votes1
answer6172
viewsA: "No such file or directory " error but the file is saved in the database
Set the full path from where the image will be saved. in your case is saving to 'photographs/xxxxxxxxxxxxx.jpg' try adding to the folder be: 'c:/.../.../.../photographs/xxxxxxxxxxxxxxxx.jpg'…
-
0
votes2
answers209
viewsA: Relate and compare Mysql and VB6
I believe I understand what you want, I would like to display all the records (one in each row) according to the amount of products sold displaying the complete sales information. if yes, try this…
-
4
votes2
answers1494
viewsA: Delete record with duplicate (Id) leaving only one occurrence
You can use temporary tables to help you: select distinct * into #tmp From tabela delete from tabela insert into tabela select * from #tmp drop table #tmp
-
5
votes4
answers23430
viewsA: How to treat accentuation in. bat files?
You can overwrite the full path to the file "short path" short path, so that DOS can understand. You can use the command: for %I in (.) do echo %~sI Upshot C: Users ADMINI~1 Desktop dir /x To…
-
1
votes2
answers386
viewsA: Join commands (Join) in SQL
For example, consider the diagram below: CROSS JOIN When we want to join two or more tables by crossing. That is, for each row of the FUNCIO table we want all POSITIONS or vice versa. INNER JOIN…
-
1
votes1
answer701
viewsA: Browse recursive directories in JAVA
Hello, I found a code that can be didactic for your learning about recursion. The code below serves to search for a file and it searches in all folders/subpasatas. package com.mkyong; import…
-
11
votes4
answers5013
viewsA: What’s the content of the Github?
Issue on github is where users contribute or end users of the application report problems/bugs found. Making it easier to correct the problem and obtain information to simulate the problems.…
-
20
votes9
answers41109
viewsA: What is a programming language, IDE and compiler?
A programming language is a standardized method for communicating instructions to a computer. It is a set of syntactic and semantic rules used to define a computer program. It allows a programmer to…
-
1
votes2
answers476
viewsA: How can Rule 110 be a good way to know if a language is Turing-complete? Why?
No, there’s also the Game of Life which can be used to know if the system is Turing-complete. It may be a good way to identify a language such as Turing-complete using Rule 110 due to its…
computer-scienceanswered Hoppy 812 -
1
votes1
answer108
viewsA: What tools to use to create WEB games?
I recommend Gamemaker studio, it is very simple and intuitive and there is no programming required, only in specific cases. has a friendly interface and in addition to exporting to web, also da para…
-
3
votes2
answers3830
viewsA: Insert data from one table into another
You have already tried using Insert.. select? INSERT INTO venda_produto (id, id_venda, produtos) SELECT venda.id, venda.id_venda, venda.produtos FROM venda;
-
2
votes3
answers1249
viewsA: PHP condition not to display image when it does not exist
I’m not sure if in your case the imagem3 is returning null or empty, but try this code. so if you want a default image to appear if you don’t have it in the database. <?php $link_da_imagem =…
-
4
votes3
answers2350
viewsA: Add multiple items to a list
Would be putting in the initializer. var lista = new List<int>() {1, 2, 3, 4}; What you need?
-
0
votes2
answers792
viewsA: Sort list of lists
#!/usr/bin/python listaOrdenada = [['a','1'], ['c','3'], ['b','2']] print "List : ", sorted(listaOrdenada,key=lambda l:l[1], reverse=False) You can use lambda too. :)…
python-2.7answered Hoppy 812 -
5
votes1
answer228
viewsQ: Avoid removing the Testprovider from Mock Location
I am trying to mock location for use in another application, but this application is removing my Testprovider, making it not possible to mock the location. How can I avoid this other app from…