Interesting questions
-
1
votes1
answer560
viewsGet ID of a process
I wanted to get an ID of a process because I would like to use the kill() to send signals from a process to that. I know that to get the ID of the process itself is used getpid() however do not know…
casked 10 years, 4 months ago José Cunha 411 -
0
votes0
answers28
viewsProblem with form Ubmit
Good night, I have a form search in which it redeems the amount written in input and sends to another page this value to show the results, the problem I’m having and that I use url friendly to…
phpasked 11 years, 6 months ago César Sousa 2,025 -
2
votes1
answer52
viewsHow to make Git case sensitive?
My operating system is not case sensitive by default, which means that there is no difference between capitalizing the letters of a filename, for example. This behavior constantly gets in my way…
-
-5
votes2
answers134
viewsMake a program that calculates the value of H*S, being:
I was using this solution based on a code from a friend: but we are uncertain about the outcome. double h = 0; double n = 4; double s = 0; double n1 = 36; for (int i = 1; i <=n; i++) { h = h +…
javaasked 5 years, 6 months ago play that funky music 1 -
2
votes1
answer149
viewsHow to do Insert 1 to 1, with four tables in Laravel
I am working with a database already populated. It has four tables (Aluno, clinico, Familia and TipoCompulsao), where Aluno receives foreignkey of the three tables; Student model class Aluno extends…
-
0
votes0
answers102
viewsSemantic UI dropdown does not work with Angularjs
I am using the Semantic UI Framework, when the resource dropdown is within the directive ng-repeat, this feature simply stops working. Someone’s been through this or something?…
-
0
votes0
answers12
viewsHow the operating system or firmware knows the end of memory
My doubt is until simple: One thing I don’t know yet is as the operating system or firmware knows the end of memory, kind of a free() in C, you know where the memory allocated ends. Does anyone…
-
-1
votes1
answer20
viewsViewmodel with Hilt
I’m making a logic in my app to present the appBar of it just when I need wing to appear or not. For this I did the following Viewmodel: Stateappviewmodel @HiltViewModel class StateAppViewModel…
-
1
votes0
answers73
viewsI cannot do Array (in JSON) in Typescript
Below is the Array I need: [ { "id":1, "nome":"LESPAUL", "validade":1525568400000, "dataGerada":1525914000000, "status":true, "itens":[ { "cliente":{ "id":1, "login":"gabriel", "senha":"123",…
-
3
votes3
answers176
viewsIs there a difference between "str(my_object)" and "my_object. __str__()" in Python?
I observed that, in Python, when we have an object with the method __str__, it is responsible for returning a string representing the object - or something like that. Example: from uuid import uuid4…
pythonasked 11 years ago Wallace Maxters 102,340 -
7
votes2
answers674
viewsRemove an N amount of days on a date
How to remove an amount of N days in a date ? namespace TesteData { class Program { static void Main(string[] args) { var dataAtual = DateTime.Now.Date; // dataAtual 13/09/17 var qtdDias = 5; //Como…
-
0
votes0
answers37
viewsEmail duplicity using PHP Mail()
I need help, I don’t know where is the error to generate e-mail duplicity only for $to. Below is my code: $mails = '[email protected]'; $Nome = 'Fulano'; $Email = '[email protected]'; $to =…
-
2
votes1
answer44
viewsDoubt with "minor" in Visualg
I started a course of algorithms and I like it a lot! But lately I have been quite complicated with the question of "minor" in some situations. Follows the question: Create a program that reads the…
visualgasked 5 years, 4 months ago Lucas Silva 23 -
0
votes1
answer55
viewsCakephp 3 Debugkit
In Cakephp 2 I usually enable/disable Debubkit by Appcontroller, according to the user who is logged in to the system: // AppController -> CakePHP 2 public function beforeFilter(){…
-
0
votes0
answers147
viewsHelp with Lexical Analyzer
Good evening everyone. I’m implementing a c/c++ lexical analysis, but I’m having a problem with the output. I was asked to leave the program with only 3 variables and 2 operands, plus 1 delimiter…
-
-1
votes1
answer26
viewsInsert random numbers through Precedent
I am trying to insert some random record into a table but am encountering some errors. I created a test table; `create table teste_p(Handle int, name varchar(20)); I need to insert something like:…
-
-1
votes1
answer27
viewsConfigure Firewal SQL Server
How do you configure the Firewal rule not to keep asking for an update of a new IP ? I created an account in Azure and I have a system that is in test and the server sql server from time to time I…
-
0
votes1
answer314
viewsJava. how to display a string array from a menu option?
I created 3 vectors, one for name, and the others for day and month of birth. I fill the 3 through the first menu option I made with the switch case, the second option would be to display only the…
-
0
votes2
answers1495
viewsHow to put Auto Adjustable background?
How to Put Self Adjustable Fabric Background? I put it like this in mine body but when I enter the cell phone it keeps cutting the background, it only stays where it has element. body{ clear: both;…
-
0
votes1
answer114
viewsmatrix product using struct
I used struct to store number of rows and columns of the matrix. I make the product of two matrices and the product of a matrix with a vector, but the output is always 0. I do not know how to change…