Interesting questions
-
10
votes3
answers821
viewsWhat is the difference between "decimal. Divide" and the traditional "/" in C#?
decimal a = 10/5; Returns 2 decimal b = decimal.Divide(10,5); Returns 2
-
-1
votes1
answer93
viewsCatch domain via Node/Vue.js
I simply want to show the domain that appears there in the URL when accessing the page. window.location.hostname Give me this, only it doesn’t work on Node/Vue.js, so what would be the solution?…
-
2
votes2
answers15167
viewsElement superimposing the other CSS
My website consists of a header and below it a container-fluid with screen information. The problem is that mine header is superimposing part of mine container-fluid: HTML: <h3 class="card-header…
-
0
votes1
answer20
viewsJavascript Collapse Problem
I have a list with Collapse to play different contents in the same location, I just need that when I enter the page the first item of the list is selected, I have a script that makes the function of…
-
0
votes2
answers64
viewsError giving puts of a variable within the DEF
Hello. I can’t print variable that is inside a def. Script class Logparser def initialize(ip, data, code) log = File.open("/project/log_sec/log/log.txt").each do |file| parse = file.split(" ") data…
-
0
votes1
answer141
viewsError when compiling a solution in c++ in visual studio 2017
I’m trying to compile a c++ solution, but it’s not working. Can someone help me? I opened a visual studio 2008 solution in visual studio 2017. When I give the build the error happens. I did not find…
-
11
votes10
answers360
viewsOrganization of CSS
Is there a pattern for organizing CSS? For example: .teste{font-family:"arial";font-size:18px;color:white} or .teste{ font-family:"arial"; font-size:18px; color:white } Which is the most…
-
1
votes1
answer1167
viewsFilter with Node.JS
I have a list of items saved in a Mongo collection, I would like to know how to filter the original array. Follows the code api.filtra = function (req, res) { model.find() .then(function(itens) {…
-
0
votes2
answers97
viewsReact components that receive ownership of an object as content do not update, how to deal with it?
I basically have a state that is a complex object and several components that render only one property of it, as the application is kind of large I made this prototype to illustrate: //Component…
-
0
votes1
answer94
viewsHow to import CSV files from a same level folder (and/or above) in Python?
I have already searched several topics here, unsuccessfully however. So, if there is already an equal question, please forgive me and indicate a solution. My project is articulated as follows:…
-
1
votes1
answer281
viewsConvertnumber JSF negative values
Negative monetary values when using the native JSF converter, <f:convertNumber type="currency"/>, stand with the character '-', before R$. For example: -R$ 56.134.726,99 .xhtml…
-
1
votes1
answer191
viewsWhat type used in Postgre to save a large currency field in the format of 000,000,000,000.00
I am developing a web application in Asp.net and need to save a monetary value in decimal format in C# and store it in postgre in Numeric format, and the value is great. It’s a need that came up in…
-
0
votes1
answer46
viewsMassassignmentexception in Model.php line 444: users_id
I’m making a listerner to save when the user logs in, and prints the title error in User models. public function accesses() { // Não esqueça de usar a classe Access: use App\Models\Access; return…
laravel-5.6asked 7 years, 6 months ago Fernando Santana 71 -
2
votes1
answer44
viewsDoubt with "minor" in Visualg
I started a course of algorithms and I like it a lot! But lately I have been quite complicated with the question of "minor" in some situations. Follows the question: Create a program that reads the…
visualgasked 4 years, 9 months ago Lucas Silva 23 -
2
votes2
answers824
viewsToggle status (True/False) by clicking a button - Javascript
Good night! I am testing and learning JS, and there was a doubt that so far I could not solve. I have a simple HTML page, where the idea is that every time I click a button, I want it to have an…
-
0
votes1
answer115
viewsProblem Bringing Database Data to html
hello people I am doing a school project and would like a help in this part, here should happen the following, when the customer select the attendant in select Service should be listed the services…
-
22
votes3
answers1767
viewsWhat prevents an array from being initialized with a variable size in C?
Why does an array need to have a constant size? What prevents it from having a variable size?
-
0
votes2
answers986
viewsDialog some after opening
I’m using a dialog of the first faces: <h:form> <p:dialog widgetVar="dialog" modal="true" resizable="false"> <p:outputLabel value="Mensagem qualquer."/> <p:commandButton…
-
9
votes2
answers993
viewsIs there the equivalent of Andalso and Orelse in C#?
In VB.NET there are two interesting operators: the AndAlso and the OrElse. When used, the logical expression is not evaluated in full immediately. See the following example: If (Not Usuario Is…
-
0
votes1
answer2606
viewsInsert a loop inside another loop
I wish to add the second to the first. For illustration, I will use the simple example below as a basis: <script> n = 10; for ( var i = 0; i < n; i++){document.body.innerHTML += i;} for (…