Posts by Luiz Vieira • 34,160 points
330 posts
-
5
votes1
answer2178
viewsA: Questions about executable program generation in VBA/Excel
The VBA, which means Visual Basic for Applications, is an interpreted language created by Microsoft to allow the automation of some processes in its applications (hence the name Visual Basic for…
-
3
votes1
answer114
viewsA: Is making PDF available in the mobile version harming the user experience?
First, let’s understand the user’s goal in this task context. From what I understand (you did not describe details of the application), the user is accessing the restaurant site and wants to simply…
-
1
votes1
answer354
viewsA: Qt calling method in another class
I’m not so sure absolute that this is the problem, as you have not put the code(s) (s) running the method inserte_venda. Anyway, the problem seems to be right there. The method void…
-
18
votes2
answers955
viewsA: Putting a background color after recognizing and cropping people’s faces
Finally found the time to give my answer. :) Colleague @Andersonbs has already given you the path of the stones in his answer: once having the region (an object cv::Rect with the rectangle defined…
-
2
votes1
answer85
viewsA: Why do strings (Qstring) not appear during debugging in Visual Studio?
This is the default behavior of Visual Studio in any version. Since it does not know how to present the object QString, it presents its internal content in the best way it can. What happens is that…
-
2
votes1
answer85
viewsQ: Why do strings (Qstring) not appear during debugging in Visual Studio?
I have a program in Qt 5 I use QString to manipulate text strings. However, when I debug the program, I cannot see the contents of the strings (either in the "Auto", "Locals" or "Watch" window, or…
-
9
votes2
answers1023
viewsA: Get Screen Resolution C++
My colleague @Rodrigoguiotti’s answer is absolutely right and should be accepted. :) But, just to complement: if you have additional intentions (for example, to capture the screen image to do…
c++answered Luiz Vieira 34,160 -
16
votes2
answers2560
viewsQ: Fork in Windows
There is something in Windows like (or some alternative similar to) fork of the POSIX (UNIX and Mac) systems to create a child process that is an exact copy of the parent and runs from the call…
-
13
votes3
answers10756
viewsA: What is a checksum for?
As colleagues have already explained in other replies, checksum essentially serves to verify the integrity of a data sequence (whether it is in a radio transmission, Internet, smoke signal, etc., or…
-
2
votes1
answer630
viewsA: Prevent Macro using MAC Address on the network
If you wish to identify the user, there are two ways. You can use registered user identification in Excel itself by simply accessing the property Application.UserName. Or, you can access the…
-
2
votes1
answer91
viewsA: find_package failed to generate project (in Qt) with Cmake
I managed to solve with help of that other thread. There were two problems: Instead of setting the path in a variable CMAKE_PREFIX_PATH environment, it seems that the "most correct" is to do as a…
-
4
votes1
answer91
viewsQ: find_package failed to generate project (in Qt) with Cmake
I’m trying to generate the build configuration of a simple Qt example using Cmake. The code of the example is this: #include <QApplication> #include <QTextEdit> int main(int argc, char**…
-
26
votes5
answers3446
viewsA: What is the definition of Machine Learning (Machine Learning)?
What Machine Learning Would Be? Machine Learning can be translated simply as Machine Learning (or Computer Learning)). The term refers to a huge set of techniques that aim to build computational…
-
7
votes2
answers2501
viewsA: Delete a macro using another
It’s possible to do what you want, but for it to work the user (yes, himself! ) needs to change its Excel configuration to indicate that it trusts macros that access the object model of the project…
-
4
votes2
answers1010
viewsA: Problem with the Unity camera
As the error message indicates, your method call Lerp expects different parameters from the ones you passed. It expects two Vector3 (a and b) and a float (t), because what this method does is…
-
8
votes3
answers1862
viewsA: Specification and Implementation
You have already had useful answers, but since this type of doubt is recurrent (that is, it may appear again in the future with other terms), it is worth the hint that dictionaries are very useful.…
-
4
votes1
answer4751
viewsA: Latex reference, IEEE model
Yes, it does. Just open the "Project" tab (click on the respective name button in the top toolbar), and add your file ref.bib as a project resource. Use the "Add files..." button for this: Ah, in…
latexanswered Luiz Vieira 34,160 -
3
votes1
answer4284
viewsA: Copy a range of Excel cells to an "image" object by VBA
Simply delete the previous image (saving the position it is in) and update the new image with the same name and position. Here’s the code: Set oImage = ActiveSheet.Shapes.Item("Imagem 1") x =…
-
2
votes1
answer10425
viewsA: Save an image pasted in Excel spreadsheet through VBA
A possible solution is the following: 1 - Use the object Shape to access directly the object of the image. The image name (in my example "Image 1") is the name you can give directly in Excel, in the…
-
2
votes1
answer144
viewsA: Is it a mistake in Unity or does it not interfere with the program?
As the message itself indicates, your file teste.cs (which is a text file containing lines of code) has inconsistent line terminations. It turns out that in Windows the termination of a line in a…
-
4
votes1
answer4125
viewsA: Latex - Quote from natbib without brackets
Just use the command \citealp instead of the command \cite (or command \citep, which you use). In fact, the package natbib offers numerous alternatives (as well as the \citet, most useful when the…
-
6
votes1
answer1432
viewsA: Image processing help (background removal)
As I’ve already commented, this other question has a similar problem (but in C#). The trivial solution is to use the liming process: you sweep all the pixels of the image and swap by the desired…
-
8
votes2
answers2411
viewsA: Count how many pixels of a color the image has
EDIT: Another question came up with a similar problem, but using Java. So I essentially translated the code I created here (and even used the same example). If by chance any reader eventually need a…
-
3
votes1
answer427
viewsA: Get value of steps
Like his colleague Alexandre had already advanced in a comment, there is a function available in Excel called PROCV (in the Portuguese version, or VLOOKUP in the English version) that allows…
excelanswered Luiz Vieira 34,160 -
14
votes4
answers4072
viewsA: Because of user experience, should confirmation buttons be left or right?
Necessary introduction First of all, a clarification about what is a "user experience issue" (otherwise, all content here is simply too generic to receive closing votes or mistaken arguments that it…
uxanswered Luiz Vieira 34,160 -
115
votes2
answers4860
viewsA: Algorithm to detect nudity with good accuracy
TL;DR More than 90% accuracy, as the library you already use apparently gets (according to the article it quotes), is a great accuracy. More than this is unlikely to be achieved with current…
-
6
votes1
answer1405
viewsA: Running text as code in VBA
Your Excel is obviously in Portuguese, since you are using the function ARRED for ArredMatching a result and the semicolon (;) as parameter separator. So, naturally, it works if you type the formula…
-
6
votes2
answers154
viewsA: Applying UX concepts to mobile development
Some time ago I opened a similar question (I don’t think it’s a duplicate, but let the community judge): When and why to create a mobile app? In the scope of my question, I was interested in…
-
5
votes1
answer1136
viewsA: For Rotation on Z-Axis
Your code had a few typos and it didn’t work here directly. Well, having them fixed, one idea that might help you is to simply limit the rotation before you run it. To do this, accumulate the value…
-
6
votes1
answer120
viewsQ: numpy.diagonal returning read-only copy even in version 1.10
I’m doing a program in Python where I need to change the values diagonally from an array. The following chunk of code should be sufficient to understand the general idea (it changes to 2 the value…
-
6
votes2
answers185
viewsA: How to know which methods and properties I put in a class?
UML is a visual language used primarily to document and communicate design decisions made using object orientation. You don’t need know UML to build your software in this paradigm, especially if you…
-
6
votes1
answer9035
viewsA: Name the tab as the contents of a cell in Excel
You will need to use VBA to do what you want. My first attempt was to create a function that you could use directly in the formula. But that didn’t work (it just didn’t update the property Name tab,…
excelanswered Luiz Vieira 34,160 -
24
votes2
answers931
viewsA: What is artificial intelligence?
A brief introduction The first work today recognized as belonging to the area of Artificial Intelligence (AI) was performed by Warren Mcculloch and Walter Pitts in 1943. This work was based on three…
artificial-intelligenceanswered Luiz Vieira 34,160 -
14
votes2
answers489
viewsA: How to organize the code to be reused
I assume you’re using the GameObject empty only as "activator" for animation of the enemy for performance reasons (that is, to avoid that it already comes animated since the instantiation of Prefab,…
-
3
votes2
answers887
viewsA: Calling a string equivalent method
In Unity, the way to execute a method from another script is as follows:: Objeto.GetComponent<NomeDaClasseDoScript>().NomeDoMetodo(); Or…
-
7
votes1
answer3056
viewsA: Image editing using Opencv with no ready-made functions
To do what you need, just scroll through the image pixels using the function Mat::at. This function allows you to access the value of a pixel in a given coordinate x and y. Conversion to Grey The…
-
21
votes2
answers1875
viewsA: Code plagiarism
Plagiarism and referencing Whether or not "in the academic world", plagiarism and referencing are complicated concepts. Plagiarism is essentially you appropriating something that was done by someone…
licenseanswered Luiz Vieira 34,160 -
5
votes2
answers2528
viewsA: Search for tree depth
Actually, recursiveness is the most intuitive to do the in-depth search because it is easy to see that each subtree can be considered as a new tree (and treated in the same way). So, to learn, I…
-
28
votes2
answers1853
viewsA: What is agent-oriented programming?
Agent orientation is the term used to describe the way of thinking in the software architecture in which the most interesting computational entities are called "agents" (and not "objects" or…
paradigmsanswered Luiz Vieira 34,160 -
6
votes0
answers318
viewsQ: Error "Intellisense: 'No Additional information available'" in Visual Studio 2012
Today my computer crashed (because of Google Chrome! ) and I needed to restart it. Visual Studio 2012 was open at the time (and I lost a few lines of code that I hadn’t saved). The problem is that…
-
5
votes3
answers1104
viewsA: UML, flow diagram between pages
After your editing, it became clearer to understand what you need. In this case, I don’t think a Sequence Diagram is the best choice. The sequence diagram models communications (or transitions in…
-
4
votes1
answer2824
viewsA: How to measure area and diameter of flat uneven scanned image (not 3D) using java?
Many colleagues have already provided you with great information via comments. And the principle of what they said is absolutely correct: you need to have a scale established with the relationship…
-
6
votes1
answer331
viewsA: Java Point 2d code, does not display the distance correctly
Some things are wrong: 1 - You calculate the distance but do not store it anywhere. When making the call p1.distancia(55.5, 32.1);, you execute the method distancia but simply ignores its return.…
-
3
votes1
answer182
viewsA: Nightmares character does not move
Just to ask for an answer (and maybe help other people in the future), I will post here the conclusion of the comments. Note that the merit of the "solution" of the AP problem is also @Nils. :) On…
unity3danswered Luiz Vieira 34,160 -
2
votes1
answer4594
viewsA: How to create a table in MATLAB?
If you already have the table in Excel, the way it might be easier is to export the Excel data to a file CSV (Comma-Separated Value). Just go on the menu "Filing cabinet" and choose the option "Save…
-
27
votes2
answers1040
viewsQ: When and why to create a mobile app?
With the popularity of mobile devices such as smartphones and tablets, capable of running quite complex applications, it is increasingly common for companies to develop applications (apps) own.…
-
2
votes2
answers189
viewsA: Passing by reference in C
You don’t need to use pointer to pointer, just use a "simple" pointer. To understand more about pots, I suggest these other two questions: Simple Teaching of Pointers What is the use of pointers? I…
-
10
votes2
answers2440
viewsA: How does Math.sqrt work in javascript?
Like me had already commented, i don’t know exactly how Javascript does it. Second the answer from Mr @Sergio, browsers are free to implement natively as they see fit (and probably also use the…
-
3
votes1
answer198
viewsA: Char Playermoviment Script Problem in Unity 5
The cause of the error is simple and direct: the method MovePosition wait as parameter one Vector3 and not a Quaternion. How are you passing one Quaternion as a parameter on the line...…
-
4
votes2
answers109
viewsA: Abstract type of variable
It will save a pointer to an object instance of the class USphereComponent. If you need to understand more about pointers, I suggest these other questions here from SOPT itself: What is the…
c++answered Luiz Vieira 34,160