Posts by pagliuca • 1,100 points
11 posts
-
1
votes1
answer289
viewsA: Foreign key with UNIQUE
You can, yes, add the restriction UNIQUE to any column you wish, including columns of foreign keys. This is one of the possible strategies to force type 1 to 1 relationships into separate tables.…
-
3
votes1
answer751
viewsA: increase the size of matplotlib numbers
Use the command plt.tick_params(labelsize=30) to increase the font size on the chart axes by replacing 30 by the desired size. Example from matplotlib import pyplot as plt import math # Dados de…
-
0
votes1
answer280
viewsA: Error trying to install Mysql Client
I tested it here on my machine and I had the same problem. In the end, the problem was quite simple, caused only by a difference in character encoding - (hyphen) in the command you entered. Copy and…
-
0
votes1
answer756
viewsA: connect matplotlib points
To plot a line in matplotlib, you must pass a list of x and y coordinates to the plt.Plot method(). Example: plt.plot([1, 10], [1, 10]) will trace a line connecting the points (1,1) and (10,10) of…
-
0
votes1
answer254
viewsA: Take data from a dynamic table and save to mysql
Missing only add attribute name fields dynamically generated by your JS code. To resolve, add the attribute name in fields generated via javascript. Example: next to id='username_"+index+"', add…
-
38
votes4
answers2188
viewsQ: Time spent developing tests
I’m afraid I’m worrying too much about testing, as I’m currently spending about 40% of my project’s time just creating them. I know that the more time I spend with tests, the less I will spend to…
-
1
votes4
answers3090
viewsA: Regex for Cifras site as Cifraclub
I’m assuming that you refer to client-side Javascript (browser), and not to a server application written in Node.js, for example. Stackoverflow in English has a similar question:…
-
10
votes3
answers471
viewsQ: Add custom timezones in PHP?
TL;DR Is there any way to add timezones customized in PHP? Goal I would like to be able to register a schedule (using new DateTime(...)) with an arbitrary time offset value (Timezone), for example…
-
28
votes6
answers1852
viewsQ: C programming for ARM
I’ll start a project in C that will have as target a plaque Colibri T20, processor-equipped NVIDIA Tegra 2 ARM, running a light version of Linux. I wonder if, in addition to having to use a cross…
-
5
votes1
answer191
viewsQ: Simulate another environment by using the `Composer update`command
I have a project Symfony2 with facilities managed by composer, with their respective files composer.json and composer.lock synchronized between my local machine and the production server via git. It…
-
5
votes2
answers326
viewsQ: Use of uncharted entities in Symfony2
I read that normally the Entity folder of a Bundle stores the entities that will be persisted (in my case, by Doctrine) in the database. But, due to the ease of working with validations in the…