Interesting questions
-
0
votes2
answers270
viewsHow do I compare values between two tables and send email if it has new value?
My system imports every day CSV files from several directories into a table called TB_ARQUIVO. In this file, it contains the name of the Hotel (HOTEL_NOME column) and four types of Channels...…
-
7
votes1
answer121
viewsIs it possible to change more than one record at a time?
That is the code: UPDATE PESSOAS SET COR = ('Pardo') WHERE ID = 1; But I have 2 more records to do the same procedure, I could do everything at once adding the ID?…
-
2
votes2
answers111
viewsPointers and matrices catching something unexpected
#include <stdio.h> int main() { int vetor[][3] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; int valor= *(vetor[1] + 1) + **(vetor + 3); printf("%d", valor); } The code above was taken from…
-
11
votes4
answers584
viewsHow to verify the efficiency of these 2 functions in C++?
How to determine the best choice between these two functions for implementation? 1: int X(int x){ if(x<=0) return 0; return(x + X(x-1)); } 2: int Y(int x){ int soma=0; for(int i=0;i<=x;++i)…
-
1
votes0
answers295
viewsUsing "in" (or "rem") unit for responsive layouts
Reading some CSS articles on responsive layout I managed to understand some new "concepts", but some applications were still a bit confusing for me, which is the case of the use of em (or rem) to…
-
0
votes1
answer80
viewsThe function writes to the file in txt. I need to sum but the vector is as char
My teacher passed this code that writes to the txt file. Inserts random number. After executing this code he wants me to sum the values written in txt, but they were written in a char vector and for…
-
15
votes2
answers2572
viewsMain purpose of utility classes
What is the real function of utility classes? Would only reduce maintenance and repetition of code or would go beyond these functions? Would have some way (convention) to use these classes…
-
1
votes1
answer666
viewsHandling of JQUERY parents and siblings
I have a question in Jquery. I have the following code, example: <div class="col-sm-2"> <div class="md-checkbox"> <input type="checkbox" id="checkbox1" class="md-check">…
-
0
votes2
answers3618
viewsGrab specific column csv with python
I have a method that opens a CSV file but would like to go straight into a specific column, I tried to do it this way list2 = [row.split()[3] for row in f], but returns a piece of the file and not…
-
2
votes1
answer1095
viewsHow to pass data to all views in a MVC pattern?
I’m building a small MVC application with PHP, following directory structure: controllers/ (Controller files) views/ (View files) In each controller, I pass an instance of the Object VIEW with an…
-
1
votes1
answer55
viewsApply size to a textarea, unless it has the attribute "Rows"
I have a textarea which is formatted with the following rule: .wm-form textarea{ min-height:100px; resize: vertical; width:100%; border-radius:4px; border:1px solid #ccc; } <form…
-
1
votes1
answer1554
viewsConvert a word(DOC,DOCX) document to PFD using PHP or Javascript
I wonder if there is the possibility of converting a Word file (.doc,.docx) to a . pdf file using Php or Javascript (or something similar). For example: the user uploads a. docx file that should be…
-
0
votes0
answers26
viewsRECURSIVELY INCLUDE CONTROLLERS IN NODE.JS AND EXPRESS
I’d like to know how to import all controllers from a project automatically. below I leave an old code I found on the internet that shows how to do // routes/index.js var fs = require('fs'),…
-
1
votes2
answers15896
viewsHow to stop an execution in Python?
I’m starting programming in Python and would like to know how to stop the program execution? In the language C for example, there is the equivalent command system("pause"). If I open IDLE, more…
-
0
votes1
answer98
viewsHelp with app and update
I want to create a app to display videos with download option, sorted by categories, but wanted to know how to add new videos without having to update the .apk, only update the download links and…
-
0
votes0
answers189
viewsHow to display the result of a search in mysql where returns more than 10mil result without crashing the browser?
I am currently using the table jquery to display the results, but it takes a long time to display all the results and while the search is not finished the browser sometimes hangs. has some better…
-
-3
votes2
answers36
viewsCalculate broken numbers
I own this section, but on the console it appears 64, not 64.9. How I can add in the right way? var carga_adicional = parseFloat('25,00'); var carga_parceiro = parseFloat('39,90'); var adicionais =…
javascriptasked 5 years, 9 months ago Sr. André Baill 6,946 -
1
votes1
answer58
viewsWhat Doctype do I use in Primefaces?
I merged a project using Primefaces + Primefaces Mobile, and I don’t know which Doctype to use. I can use HTML5 Doctype?
primefacesasked 11 years, 7 months ago lamumba 11 -
0
votes1
answer53
viewsHide Rows from a pickerview when selecting an item from another pickerview - Swift
I created a pickerview using a multidimensional array, I would need to hide some items from picker4 after I selected the first item of picker3. class ViewControllerEspessuras: UIViewController,…
-
0
votes1
answer542
viewsuitextfield check with only number
I am creating a tableview with Cells custon via xib and Uitableviewcell and I have a Cell that has only one textField and I want to do a check of number and number for that textfield but I don’t…