Posts by Thiago Prado • 407 points
18 posts
-
0
votes1
answer22
viewsA: Use pytest’s tmpdir fixture in a class
Solved, the problem lies in the fixture request, it is used by the scope session directly. To solve just change the name of the fixture request for request_json. Another point is that the others…
-
0
votes1
answer22
viewsQ: Use pytest’s tmpdir fixture in a class
Hello, I have a question that is slowing me down in the use of TDD in my study projects. I’m trying to create a temporary directory with a json file using fixture tmpdir, but find the following…
-
5
votes2
answers195
viewsQ: Compile Linux-ready Assembly on OSX
I’m trying to do a study of compilers, so I have to compile an Assembly of a language called howto with nasm. the intermediate code generated by the howto compiler is as follows: extern printf…
-
1
votes3
answers2456
viewsA: Phone and CPF fields in SQL?
All checks you can do before storing in the database the information, for example a form may have mascara that adds the (xx) xxxx-xxxx, but you make a treatment to remove the other characters that…
-
3
votes0
answers219
viewsQ: Create a drag for multiple SVG objects
I’m using Vue.js to create a jflap clone. But I’m having trouble creating the drag for each object. In this case, the circle when clicking and dragging this, must follow the route of the mouse until…
-
1
votes1
answer711
viewsA: Working with date: print all dates in a given range
The problem lies here for (int d = firstday; d <= currentDay; d++) In case you should make it run until the last day of the month and make an if that check if the day you want corresponds to the…
-
1
votes2
answers1607
viewsA: Routes of the Codeigniter
The routes in codeigniter are to name paths, for example in your case the default route when opening the page index is: $route['default_controller'] = 'welcome'; Where default_controller means it is…
-
0
votes3
answers567
viewsA: How to assign values to Bootstrap buttons
You can create for example: <a href="#"><button type="button" class="btn btn-default">Inicio</button></a> You can also see examples of using links and buttons here for…
-
2
votes3
answers999
viewsQ: Creating the Snippet itself in the Atom
I’m trying to create my own snippets on Atom, but none of them work at all. tried: '*': 'Controller text' 'prefix': 'lco' 'body': 'my name is $1' but when typing lco and press TAB, does nothing,…
-
2
votes2
answers424
viewsA: QT signal from C++ to QML
Semi solved, for some reason Qt 5 is not accepting the Handler in the form. Na main: qmlRegisterType<ImageFilter>("org.image.filter", 1, 0, "ImageFilter"); In qml: ImageFilter { id: document…
-
0
votes2
answers424
viewsQ: QT signal from C++ to QML
I am trying with QT 5 + QML to create an application where after opening the file using the fileDialog it returns a message by a QT signal. The application opens using a QML and initiating a call to…
-
4
votes1
answer87
viewsQ: Qvector to Qimage
I have to turn one QVector 2d in a QImage to display the image on a label. The QVector in the case of an array of integers with a value of 0 to 255 representing an image in PGM or PPM, this vector…
-
0
votes1
answer109
viewsA: Restore a Postgis dump 2
I managed with the help of a friend to find a solution. postgresql does not understand postgis tables, to solve the problem it is necessary to transform the tables into shapes and return to sql…
-
0
votes1
answer109
viewsQ: Restore a Postgis dump 2
I am trying to restore a dump from a postgresql database with postgis template. When I try to restore the dump by terminal, I have a number of errors. Command used terminal: psql archeology -U…
-
2
votes4
answers1879
viewsA: Is it necessary to add prefixes to some CSS properties?
Some prefixes are already fully implemented as elements of css 3, but not all are supported or fully defined, so it is important to use prefixes that depending on the browser version may not be…
-
8
votes1
answer1081
viewsQ: URL::Previous() returns incomplete path
How I’m studying the book Code Bright, from time to time there are some errors that I take a long time to resolve. However, I couldn’t find a solution in Google. By doing the Redirect::to() from one…
-
0
votes6
answers1001
viewsA: Error installing Composer in Laravel 4 Project
The easiest way to solve this and download version 4 directly, while trying to install by composer he’s trying to find the latest version of the files. Link to the 4.0.9 Later unzip in the directory…
-
0
votes3
answers995
viewsA: Error: Mcrypt required in Laravel 4
First, it is necessary to perform the library installation Mcrypt Ubuntu/Debian: sudo apt-get install php53-mcrypt ou php54-mcrypt Go to the archive php.ini decrypt the lib php_mcrypt.so In the OSX:…