Posts by lvella • 456 points
12 posts
-
3
votes3
answers972
viewsA: How to get the buffer from the socket?
An answer I saw on Stackoverflow about because while(!eof(fd)) it’s wrong fits here. I will try to adapt here, and answer: "Because you should not count on the size of the 'message', even if the…
-
1
votes1
answer257
viewsA: Creating a list with c++ sublists
#include <iostream> #include <vector> typedef std::vector<double> reals_list; int main() { std::vector<reals_list> list_of_lists; list_of_lists.push_back({20.0, 20.0, 0.0});…
-
4
votes1
answer169
viewsA: How to rotate a set of vertices around a pivot
Consider these two lines of your rotation code: vertexCopy[i].position.x = pivot.x + (vertexCopy[i].position.x - pivot.x) * cos(theta) - (vertexCopy[i].position.y - pivot.y) * sin(theta);…
-
1
votes2
answers701
viewsA: java email sending does not show error when unable to send the same
I fear that the only way to solve this problem is to periodically access Gmail emails and search for the return message. E-mail is a protocol that was more or less stabilized in the 1970s, and is…
-
2
votes1
answer46
viewsA: How to maintain value in Html5 even when changing in F12 mode?
Preventing the data from being altered is hopeless. It may not even be a browser that accesses your site, it may be a bot, it may be a script in some programming language created to simulate being a…
-
5
votes1
answer1099
viewsA: Hash, Object or Dictionary?
I cannot answer why the terminology is not universal (can anyone?). But I can try to explain where each term used comes from. I don’t have a preferred term for this data structure, and it varies…
-
2
votes2
answers1552
viewsA: Is it possible to implement a dynamic array within a C structure?
Yes, it’s possible. And it’s probably interesting to put the size that was allocated together within the struct, for future use: typedef struct historico_de_fabrica { Hist_id_rolos *rolos; size_t…
-
2
votes1
answer401
viewsA: Array storage
Never has empty space in an array. When you declare char abc[200];, each of the 200 chars within this array has some unknown value. For specification of the language C (which is the document…
-
1
votes1
answer29
viewsA: Conversion error in c::b
Its variable aux is the type DESCRITOR *, already the attribute f->INICIO is the type struct nodo*. Are pointers to different types, you can not assign from one to the other.…
-
1
votes1
answer603
viewsA: Variable within a class pointer
With the information you gave, I can only try to guess the reason. I can try to improve my answer if you clarify the two questions below: Your global variable declared this way: int TD_ID_COUNTER =…
-
4
votes1
answer1169
viewsA: How to create an object with class template?
There’s so much error in your code that it’s hard to know where to start. First of all, you didn’t put in the original code, nor the original error message. When you edited the code to put it here,…
-
2
votes1
answer960
viewsA: How to create a Python service that keeps running after answering?
I find it extremely unlikely that you will be able to do such a service using Apache. I don’t know how mod_python works, but if it’s like any HTTP API, it’s request-based, and you have little or no…
python-3.xanswered lvella 456