Posts by Taisbevalle • 8,942 points
184 posts
-
0
votes2
answers528
viewsA: Standard Builder design, why should I use it?
A complement to Maniero’s response, using a metaphor. First the definition, removed from the site Medium: The Builder pattern is part of the creative patterns, where it has the same the separation…
-
5
votes1
answer92
viewsA: Error when comparing string
Exchange the = for ==: if (malcoins == "100000") { } Or use Equals: if (malcoins.Equals("100000") == true){ } Or else the Compare, which returns zero if equal: if (malcoins.Compare(malcoins,…
c#answered Taisbevalle 8,942 -
2
votes2
answers76
viewsA: I would like a layout like this but my <aside> is not joining with the footer
What you did in your code is not very cool. You set the menu size, it will always be height: 300px; on any screen size. If this is the intention, you can do the same for the aside. * { margin: 0;…
-
7
votes1
answer7529
viewsA: Prim and Kruskal algorithm
Some differences between algorithms: The Prim algorithm initializes with a node, while the Prim algorithm Kruskal starts with an ordered edge. In Prim’s algorithm, the graph must be connected, while…
graphanswered Taisbevalle 8,942 -
1
votes3
answers1432
viewsA: Print element from a specified position in the list
There are two errors in your code: The return in his role how_many_days Python needs correct indentation. For your code to work you need to put the return in function and fix indentation and how…
-
1
votes1
answer569
viewsA: I can’t apply CSS to input button
As you need it to be nofollow, you can use HTML meta tag on pages that should not be indexed in search engines: <meta name="robots" content="noindex, nofollow"> More details on this you can…
-
3
votes1
answer1033
viewsA: How to paint a background image with CSS
You can use linear-gradient and choose the color you want. In this reply you can see other examples with different colors. div { height: 200px; width: 300px; background:…
-
24
votes2
answers22203
viewsA: What’s the difference between failure, defect and error?
What is the difference between one term and the other? Glitch: It is an unexpected software behavior. A failure may have been caused by several errors, but some errors may never cause a failure.…
-
2
votes3
answers4139
viewsA: In practice, what is a system test and what should it cover?
The system test, can be considered the "third phase" of the test, being the first unit or unit test, testing the smallest units of the system, looking for logic and implementation errors in each…
-
3
votes2
answers80
viewsA: Inserting special character in view
Another way to do it is by using string.Concat, to concatenate the strings. <td>@string.Concat(item.OrderSend, "º")</td>
-
0
votes1
answer956
viewsA: Changing the X-axis view on a graph
You can put null in the data. google.charts.load('current', { 'packages': ['corechart'] }); google.charts.setOnLoadCallback(drawChart); function drawChart() { var data =…
-
1
votes1
answer335
viewsA: Google Chart’s Line with While
When I go to create charts with data registered in the bank, I like to use google.visualization.arrayToDataTable. I build the data in the Controller and pass to the View only what I need. In…
-
0
votes1
answer1133
viewsA: Change position of Annotation in google Chart
You have placed Annotation in the wrong column. Replace: data.addColumn('string', 'x'); data.addColumn({type: 'string', role: 'annotation'}); data.addColumn('number', 'Faixas');…
google-chartsanswered Taisbevalle 8,942 -
1
votes2
answers515
viewsA: Even stack and odd stack logic error
In his job empilha I switched the sign of < for <= within the for (i = 0; i < NUM_ENTRA; i++). Entree: Entre com um numero: 1 Entre com um numero: 2 Entre com um numero: 3 Entre com um…
canswered Taisbevalle 8,942 -
0
votes2
answers107
viewsA: div based on radius - border-Radius or other method?
Another way to do it is by using the property radial-gradient() of background. Behold: .container{ width:100%; background-color:#e4f0f6; padding:0; margin:0; height:100vh; } .test{ width:100%;…
-
2
votes1
answer800
viewsA: stdafx. h library error
stdafx.h is used by the Visual Studio implementation of pre-compiled headers. In many cases this can be avoided, especially if your project is small and with few dependencies. To resolve you can…
canswered Taisbevalle 8,942 -
19
votes2
answers3245
viewsA: What are genetic algorithms?
Darwinism Beginning the answer with the classic phrase of Charles Darwin, which can be found in his book "The Origin of Species" (1859): The better an individual adapts to his or her environment,…
-
3
votes1
answer3311
viewsA: What is and how does ascending and descending parsing work?
So abridged: Upward syntactic analysis, also called bottom-up, the parser can start with a data input and try to rewrite it to the initial symbol. Intuitively, the parser try to locate the most…
compilersanswered Taisbevalle 8,942 -
5
votes1
answer213
viewsA: What is software architecture?
Software architecture: studies the global organization of systems, relationships and components. It allows the understanding of the components of a system. Software Engineering: are the concepts,…
-
1
votes2
answers284
viewsA: Problem with Nth-Child
On the functioning of nth-child(odd) and nth-child(even): When you put even and odd will color even and odd lines respectively. Another way to do it, without using jQuery, is to create a div and…
cssanswered Taisbevalle 8,942 -
3
votes1
answer1434
viewsA: colspan with css
The problem is not the colspan. You put in the CSS so that the rows in the table alternate the color, called odd rule. This is done in this part of the code: .tab_dados tr:nth-child(odd) {…
-
7
votes4
answers994
viewsA: Why does Input Type Email validation accept pointless domains?
According to the W3C: The <input type="email"> is used for input Fields that should contain an e-mail address. Depending on browser support, the e-mail address can be Automatically Validated…
-
0
votes3
answers128
viewsA: I need to create a button with this code and I’m not getting it!
You can create a style just for this button using id or class or even put the style in the style tag. With class: .manual-optin-trigger { background: black; padding:5px; border-radius:5px;…
-
2
votes1
answer3153
viewsA: Python error api-ms-win-crt-Runtime-L1-1-0.dll
The error itself says that the file is missing api-ms-win-crt-runtime-l1-1-0.dll, it is installed with a Windows update. Footsteps: Install the Service Pack 1 for Windows 7. Download and install the…
-
4
votes1
answer850
viewsA: remove background from google Chart
Puts backgroundColor: 'transparent' within the options of the graph. google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var…
-
3
votes2
answers1956
viewsA: What is Backus-Naur Form (BNF)?
BNF (Backus-Naur Form), originally created by John Backus and Peter Naur, is a metasyntax used to express context-free grammars. With it, it is possible to specify which strings of symbols…
-
3
votes2
answers277
viewsA: Difference Italic and emphasis in HTML?
Although the visual result is the same, as the two leave the content in italics, the semantic meaning is different. The tag <em> is used to emphasize the content and the tag <i> is used…
-
3
votes3
answers6084
viewsA: Recursive palindromus C
Your code is confused, there’s too much if "loose", one tip is to use the keys {} to separate, in my opinion is better the visualization. As in the comment you said you’re a little lost in…
-
4
votes5
answers14273
viewsA: How to put a colored layer over an image?
Your "gambiarra" worked for your test, because the image and the div are in the same size, try changing image. It will get a gray square around the image. That’s because you set the property in the…
-
2
votes2
answers794
viewsA: Boletonet | Error generating shipment file
I went through this problem, to solve downloaded the code on official repository and I was debugging to see what was null. In order for the file to be properly generated, all account data must be…
billetanswered Taisbevalle 8,942 -
4
votes2
answers3168
viewsA: How does the history Javascript object work?
The object of history contains the Urls visited by the user (within a browser window). It is part of the object window and is accessed through the property window.history. The estate length returns…
javascriptanswered Taisbevalle 8,942 -
17
votes3
answers44552
viewsA: How to connect Python to Mysql database?
Yes. You need to have Mysql installed on your machine. When you have already installed and configured Mysql, you install the API Mysql-python. Example: First you import the drivers import MySQLdb #…
-
0
votes2
answers2808
viewsA: Arithmetic overflow error Converting Expression to data type int in Count
This error happens when the value exceeds the specified column size. An example of how this error happens: You have 3 columns (c1, c2 and c3) defined as INTEGER, c1 = ([c2]*[c3]). If the data in c2…
-
2
votes2
answers4279
viewsA: Can setting run-time to infinity affect server performance?
If I set the timeout to 0 to make this waiting time infinite, it could cause performance loss on my server? Regardless of the scenario, I think the set_time_limit(0) is not a good practice. That if…
-
9
votes2
answers7582
viewsA: How to capture the last element of a list in Python?
Puts -1 between square brackets: arr[-1] See on Ideone.
-
2
votes1
answer426
viewsA: How to convert varchar to datetime?
Bar(/): SELECT str_to_date('06/01/2017 18:26','%m/%d/%Y %H:%i'); With the dash(-): SELECT data(str_to_date('06/01/2017 18:26', '%c/%e/%Y %H:%i'), '%Y-%m-%d %H:%m:%s')…
mysqlanswered Taisbevalle 8,942 -
8
votes3
answers890
viewsA: Is it wrong to use more than one <thead>, <tbody> or <tfoot> in a table?
Use more than one thead and tfoot are not allowed. According to specification of HTML: In this order: Optionally a caption element, Followed by zero or more colgroup Elements, Followed Optionally by…
-
2
votes1
answer88
viewsA: Repeat until the correct letter is typed
This is the basic syntax of switch: switch (letra) { case 'T': // Código; break; case 'F': // Código; break; default: // Código; break; } EDIT: As per your comment: #include <iostream>…
c++answered Taisbevalle 8,942 -
4
votes2
answers612
viewsA: What is the difference between the 2 parameter passages?
In that reply you find the detailed difference between "passing by value" and "passing by reference". In summary and with examples in Visualg, the passage by value is made only copies of the values…
visualganswered Taisbevalle 8,942 -
0
votes2
answers1193
viewsA: How to exchange the position (css) attribute of a div
You can use media query for this. When it reaches the width of 700px and height of 600px, the position will change from absolute to fixed. You can set the other properties on it as well. Everything…
-
10
votes1
answer1658
viewsA: How to document SQL code?
That question "How do you Document your Databases?" of dba.stackexchange has some interesting answers. Some of the answers suggest using the tools: Schemaspy: Java-based (requires Java 5 or higher)…
-
2
votes3
answers267
viewsA: Meaning of the term "Fluid Layout"
It is similar to the responsive, but in the fluid the adaptation occurs automatically, because it uses relative measures in percentage to define the size. See more in: Fluid or Responsive Layout…
-
4
votes2
answers75
viewsA: Google Chart + Foundation Tabs
This happens because the graph is drawn after the div has already been redenrized, making him unable to reach 100%. You can solve by putting one setTimeout, so when you click on the tab, you’ll wait…
javascriptanswered Taisbevalle 8,942 -
0
votes2
answers7739
viewsA: How to receive multiple values on the same line?
What you want to call dynamic memory allocation, that is, the user enters the desired number and the algorithm allocates the space needed for that vector in memory. In the code vetor = new int[num];…
c++answered Taisbevalle 8,942 -
1
votes1
answer89
viewsA: Simple question about :after, :before (clearfix etc)
Difference between block and table, as its name suggests: display: block: element will be rendered as block. .exemplo{ display: block; border: solid 1px red; } .classeTeste{ display:block; border:…
-
1
votes1
answer214
viewsA: What characters can I use to define a class name?
According to the Grammar of the CSS CSS you cannot use teste1/10. A name must start with letters (a-z) or a hyphen (-) or underlined (_), or a letter (a-z), followed by any number, underlining,…
-
5
votes2
answers701
viewsA: What would be DSN?
It is not a nomenclature, DSN is the English acronym for Data Source Name (Data Source Name, in Portuguese) that contains the information necessary to connect to the database. This information can…
-
7
votes3
answers1496
viewsA: What is DTD (Document Type Definition)?
A document type definition (DTD) is a set of markup statements that define a document type for an SGML family markup language (SGML, XML, HTML). (Source: Wikepedia) That is, it informs the document…
-
5
votes3
answers210
viewsA: How would I look regex to handle this case?
If the entrance is CPFConsole and you want just CPF, you can use that expression: (^[a-zA-Z]{3})+ This expression takes the first three letters of your word. See working on Onlineregex. Edit:…
-
3
votes4
answers6187
viewsA: How to pick up element above Jquery?
Change to $(father).text();, you’re getting all the html. $('#test-task').on('click', function(){ var father = $(this).parent().parent(); var idTask = $(father).text(); alert(idTask); });…