Posts by Simple coder • 335 points
16 posts
-
0
votes1
answer148
viewsQ: Pass data without Parsing to handlebars
I’m passing data to the handlebars through the express so: res.render('user/apps/todos', { todos: JSON.stringify(todos) });` And so I get on the page: {{ todos }} Now, if todos for: [{"title":"My…
-
0
votes1
answer132
viewsQ: Nodejs Removal of @types folder
I tried to remove the node_modules folder because I updated the nodejs and had to reinstall the modules. However, I am not allowed to remove the @types folder, not even with the administrator and I…
-
10
votes1
answer195
viewsQ: Create a resizable window
Hello, I was able to create a console window that does not show scrollbars: CONSOLE_SCREEN_BUFFER_INFO csbi; int columns, rows; COORD size; COORD BufSize; while(TRUE) { size =…
-
-1
votes1
answer209
viewsQ: Using threads in classes
Hello, I have a problem regarding the use of threads. Once I use mingw to compile my projects, and this header is not implemented, I use this header to compile my projects. However, I am having some…
-
0
votes0
answers48
viewsQ: Dynamic memory with c++ pointers
Hello, I’m starting to use dynamic memory in c++, but I ran into a problem. When I do new CHAR_INFO[3], says cannot Convert 'CHAR_INFO* {aka _CHAR_INFO*}' to 'int*' in assignment and still misses…
-
0
votes1
answer60
viewsA: How to prevent writing ' n' in the console
This question was answered in the chat Stack Burst. In the chat I was given the function WriteConsoleOutputA which, I quote: Writeconsoleoutput has no Effect on the cursor position. Which means this…
c++answered Simple coder 335 -
0
votes1
answer60
viewsQ: How to prevent writing ' n' in the console
Hello, I have this code: #include <iostream> #include <windows.h> using namespace std; bool gotoxy(const WORD x, const WORD y) { COORD xy; xy.X = x; xy.Y = y; return…
c++asked Simple coder 335 -
2
votes1
answer133
viewsQ: Create "drawings" with windows API
Hello, I need help with the windows API when it comes to handling "drawings". My problem is that if you resize or minimize the window, everything that was printed on the console disappears. This is…
-
2
votes1
answer236
viewsQ: Problems with C++ threads
Hello, I’m using mingw, 32-bit version in windows 7 Ultimate and I’m having trouble using threads. I know they don’t work for this version of mingw, which is why I use the version in this link. But…
-
0
votes1
answer81
viewsQ: Paint pixels in c++
Hello, I needed a function to paint pixels on the console. I came up with a solution here but when compiling gives me the following mistake: C: Users user user Appdata Local Temp ccORhjHu.…
-
4
votes4
answers6745
viewsA: How to implement a recursive MDC calculation algorithm in Python?
Hello, everything seems to be right around here. Only a little information is that in python instead of: a = b b = resto One could write: a,b = b,resto And I personally prefer to use the recursive…
-
0
votes1
answer417
viewsQ: Use of c++ ASCII characters
Good afternoon, I have these codes in c++ and I would like you to explain to me why these codes are sending to the console seemingly random characters: cpp testing. #include <iostream>…
-
0
votes1
answer439
viewsQ: Generate error 403 php
Hello, I have a php page where I wanted when the user was not logged in to generate a 403 error and present a default page in apache. The default 403 error page is working, I just wanted it to error…
-
0
votes0
answers46
viewsQ: Generate random characters in SQL
Hello, I have a question in PHP My Admin which is as follows: -I have a table that I need to put as default value in a column a random value. Someone could shed some light on this matter? I know how…
-
0
votes1
answer137
viewsQ: Synchronization of Phpmyadmin tables
I needed help in PHP My Admin on synchronizing fields in different tables and in the same database. For example: Database: Data Base Test Table test1 columns: - col1 - col2 Table test2 columns: -…
-
3
votes1
answer979
viewsQ: How to manipulate html forms in python
I needed help with the cgi forms in python. This code works normally when I don’t insert accents: # !/Programas/Python36-32/python # -*- coding: utf-8 -*- import cgi print("Content-Type: text/html;…