Interesting questions
-
0
votes1
answer30
viewsINNER JOIN with 3 sql tables
I have 3 tables in the database: tbl_cupom_generated: id_cupom | nome ------ ----- 40 João 60 Maria tbl_coupon: id | desconto | id_estabelecimento ---- -------- ------- 40 50% de desconto 1 60 20%…
-
14
votes1
answer920
viewsWhat’s the point of double exclamation before the method call on Kotlin?
I’m studying Kotlin. I realized that in converting to the type int, it is necessary to place the double exclamation (!!). Example: var input = readLine()!!.toInt(); Generally in other languages,…
-
0
votes0
answers70
viewsPython error: Typeerror: 'numpy.float64' Object is not iterable
I am having the following problem when compiling this program in google collab: Typeerror: 'numpy.float64' Object is not iterable He points out the error in the line…
-
1
votes1
answer253
viewsPDO - Class Not Found
What’s going on I created a static method to return the connection so I can use it on DAO, but in doing so it gives Class Not Found PDO. Other Projects The first thing a lot of people will think is,…
-
0
votes0
answers74
viewsError creating a Jsonobject object
I’m trying to create a WebService return to me one or more data from the database, using as return JSON. @Path("teste") @Produces(MediaType.APPLICATION_JSON) public JSONObject teste() { JSONObject…
-
1
votes1
answer68
viewsMy database does not register the data in mysql
Guys, I’m trying to insert some data in my comic book, I’ve done this action in other systems and it always worked, but this time it’s not giving, it shows no error message, it just doesn’t include…
-
2
votes0
answers323
viewsShow user section in jsp and Servlet pages
I have an application made in JSP and Servlet that works as follows: Before viewing the content of the site the user has to log in, I wanted to add the following function after the user successfully…
-
0
votes0
answers28
viewsError in listing customers who did not make Opencart purchases
I have a problem I can’t solve in any way. I am trying to list only customers who have never made purchases, ie by checking in the order table if there is no purchase associated with the customer…
-
0
votes0
answers54
viewsquery to get percentage
I’m making a query to get percentage by zone but it’s not working very well for me select nuts3_res_1amc.id as id ,nuts3_res_1amc.localidade as source, nuts3_trab.localidade as target ,nuts3_trab.id…
postgresqlasked 10 years ago usersantos 765 -
5
votes2
answers813
viewsAlarmmanager only stores an Alarm
I have a problem related to AlarmManager, For example, if I program an Alarm for 16:00 and another for 16:30 only the second is generating the notification, different from the second. I did some…
-
7
votes2
answers300
viewsheuristica h(n)=0 is permissible for algorithm A*
Hello folks someone can answer this question I’m in doubt. heuristic h(n)=0 is permissible for algorithm A*
artificial-intelligenceasked 8 years, 9 months ago IMoonBlackI 364 -
0
votes1
answer70
viewsCreate a node inside another in Firebase with Android Studio
I would like to create a node called "Posts" within each user, but I can only create outside the user. It could help me to create the node within the user? Here is an example of how I wanted the…
android-studio firebase android-fragment firebase-databaseasked 6 years, 3 months ago Joao Paulo 11 -
3
votes1
answer156
viewsPHP regex recursive
I have to validate the syntax of expressions like these: (ind(10)+15)-10 1000-(perg(25)*2) 25/var(1) 12*2-(58+1)/5 Ind, Perg and var are functions. I’m trying to solve it this way: $var =…
-
0
votes1
answer181
viewsMalloc Function Error: sysmalloc: Assertion failed in C
I’m implementing a Red Black Tree in C, and when I allocate memory to the second node, it gives the error: sysmalloc: Assertion [...] failed. Aborted (core dumped) I have already researched and…
-
5
votes2
answers7608
viewsHow to create a Rigger that is fired every time you have an insert event in the table?
I need to create a Trigger that is triggered every time there is an insertion event in the table, before the insertion is made, it checks a condition, if the condition is met it changes the value of…
-
-1
votes1
answer126
viewsMysql - update via db with "set price = price - 5%"
How do I update where it will decrease the price of the product by percentage? Example: Table: id | products 10 | 1.40 How do I update to 1.40 - 5%?…
-
2
votes1
answer377
viewsIs it only possible to write code with bugs or vulnerabilities in C?
Anyone who is programmer and experienced knows an implicit truth: C is practically the language of the gods. C corresponds to at least 98% of the software that runs on all computers and thanks to…
-
1
votes2
answers83
viewsRedeem http service result in another function
controllerPrincipalService.getResultado(id).then(function(dados) { // limpando o retorno var p = data.search("{")-1; var res = data.substring(76); var f = res.search('<'); dados =…
-
0
votes0
answers14
viewsTDD with Jest and sequelize - POSTGRES Migration error for SQLITE
I am implementing TDD with Jest in a Node with express application, my database is POSTGRES and I have several sequelize Migrations already configured, and for my test scenarios I am running these…
-
1
votes1
answer108
viewsword manipulation with Allegro
Hello, I am in doubt about the string manipulation with Allegro, as well as using "fgets" or "scanf" in C to receive a keyboard word I want to know how you do it with Allegro.