Interesting questions
-
0
votes1
answer113
viewsCount the number of notes
The program needs to enter the value of notes. When typing, the program must return number of notes 20,10,5 1 /* Code in Java */ import java.util.Scanner; class HelloWorld { public static void…
-
8
votes1
answer1017
viewsMemory usage PHP images
I have an image upload and to treat the images I’ve used (Imageworkshop and Imagine), however the problem is not the libraries, it is the absurd amount of memory that is used in some situations.…
-
1
votes1
answer143
viewsVariable changes value when calling function
I created a variable v, who receives n random numbers. when create another variable by calling a function and passing v by parameter, the v mute. n = int(input("Entre com o tamanho de vetor: ")) v =…
-
1
votes1
answer413
viewsYii2 dropdownlist
I need an example, dropdownlist, where I can dropdown between two sqls, in this case A and B. Below I present a pseudocode. Introduction to the problem: Table sql A id_A id_usuario nome_A…
-
0
votes1
answer481
viewsView data from an Api in a v-data-table, an object within a Vue js object, vuetify
I have the following Json coming from an api, which I want to present in a V-DATA-TABLE: [ { "id": 1, "firstName": "Ana", "lastName": "Lucia", "phone": "(11)99989-8989", "mobilePhone":…
-
4
votes1
answer37
viewsCheck if a variant div exists
I have several Ivs with the class prefix "webserver_[.. ]" and would like to check if any div with the prefix "webserver_[.. ]" exists, only with jQuery, how to do?
-
0
votes1
answer59
viewswhen trying to create a bank with flask_sqlalchemy Attributeerror: can’t set attribute
Making a Flask app, I had some difficulties with the database, and followed the following steps in VSCODE: I created a virtual environment, installed via Pip flask and other libs I created the first…
-
0
votes2
answers199
viewsList validation with jQuery
I am solving some exercises in javascript and I came across a situation that I can not solve. I have a small "app" that creates a list of tasks, so far it works normally, I can add a new div within…
-
1
votes2
answers438
viewsBootstrap modal "data-Dismiss" bugging with position="Absolute"
I’m adding a custom close button on modal of bootstrap. I want him on the right modal, for that I gave a position: absolute and modified the top and right his. The problem is that by doing this the…
-
1
votes2
answers285
viewsWhere to use accumulators in a unique peer-review algorithm?
Where should I fit the accumulators of this code I have written for now? #include <stdio.h> int main() { int N; int somapar; int somaimpar; do{ printf("\n Digite um número qualquer: ");…
-
1
votes1
answer413
viewsHow to store multiple checkbox
I am creating a system and how could I store multiple checkbox and inputs in mysql ? I know I can do it this way but only if it goes to a column , in my case are four as could do…
-
1
votes2
answers1527
viewsHow to treat Queryexception SQLSTATE error[23000]: Integrity Constraint Violation: 1062 Duplicate;
The id is auto increment, but the id_uc is Unique, just not to enter an identical id_uc. I want you to return to view a message. $storm =new ListaStorm(); $storm->id = $id; $storm->id_uc =…
-
0
votes1
answer35
viewsHow to receive in the email information added in the html site?
I have tried many ways but I have not been successful in receiving the information added by the customer in the email. I will summarize already got the code, the client accesses the site clicks on…
-
1
votes2
answers568
viewsIonic with Cordova, Androidmanifest.xml build error
When in my console I give the command to compile my project in Ionic and Cordova, I get the following message: :mergeArmv7DebugResources UP-TO-DATE…
-
2
votes1
answer119
viewsRedeem user phone number
On Android, using Java, it is possible to redeem the device user’s phone number with the following code: TelephonyManager tMgr = (TelephonyManager)mAppContext.…
-
0
votes1
answer155
viewsInteraction between Threads in Python, error message " Object is not callable"?
I am doing the interaction of 4 Threads, but when running them at the same time appears the following message: Object is not callable That is, the object cannot be called. How to fix it? Follow the…
-
0
votes1
answer149
viewsSubtitle effect with inherited text
Next, using CSS3 3 HTML5. I want to make the resource that produces the following effect: I have elements on the screen, when superimposing the arrow on it (Hover event) should appear (at the top)…
-
0
votes1
answer69
viewsCounting records updated by day Rails
How do I count up-to-date records in Rails? Next I have to receive this data in array format to pass and convert into json. I have table A which has many of Table B Through A I have to count how…
ruby-on-railsasked 7 years, 3 months ago André Gava 262 -
0
votes2
answers46
viewsLog datagridview data into a table in the database
Good afternoon, you guys! I have a problem with doing a data insertion presented to my datagridview. I have a table called Events, and it contains all my records, I created another table with the…
-
-2
votes1
answer55
viewsMongodb field autoincrement (not ID)
Hello, I have difficulty using an auto-increment function in a numeric field on Mongodb (is not ID). The code is in nodejs with Mongoosis and no use plugin Mongoose-autosequence etc. The structure…