Posts by Marcelo Vieira • 428 points
23 posts
-
4
votes3
answers759
viewsA: Center menu on page
#topNav ul { display: block; width: 600px; margin: 0px auto; }
cssanswered Marcelo Vieira 428 -
0
votes1
answer4236
viewsA: Microsoft Speech Platform in Portuguese
First install Microsoft Speech Platform - Runtime (Version 11) respective your platform. Here’s 32 and 64 Install the Heloisa Voice Pack version 11 (This installer doesn’t have much elegance, so it…
c#answered Marcelo Vieira 428 -
1
votes3
answers116
viewsA: Make objects appear
HTML: <select name="tipobroblema" id="tipoproblema"> <option value="">- Tipo Problema -</option> <option value="maquina">Maquina</option> <option…
-
-1
votes2
answers121
viewsA: UPDATE SQL in C# (Windows Forms)
The correct is: newData.ToString("dd/MM/yyyy HH:mm:ss"); public void AlteraData(Data newData) { try { string query = command.CommandText = "'UPDATE T410_CARGA SET T400_DTCHEGADA = '" + newData.Data;…
-
0
votes1
answer943
viewsA: How to Place and Play a M3u8 File
This file is part of an MPEG-DASH package. Several market players reproduce this, but you need the manifest file for this, as well as all parts that for a 2 minute video can be more than 200 files.…
-
1
votes1
answer63
viewsA: Winforms application stops working if computer goes into hibernation
You can make your application not allow windows to hibernate while open. Something like this: public partial class Window1 : Window { private uint m_previousExecutionState; public Window1() {…
-
1
votes1
answer1312
viewsA: Add days to current date
Date.prototype.addDays = function(days) { var dat = new Date(this.valueOf()); dat.setDate(dat.getDate() + days); return dat; } var dat = new Date(); alert(dat.addDays(5))…
-
0
votes1
answer83
viewsA: The length of an array does not update
If you want to add items to exclude, change the destination variable to exclude.push(rotas.destinos[i]); for (let i in rotas.destinos) { for (let j in exclude) { if (exclude[j].destino !=…
javascriptanswered Marcelo Vieira 428 -
0
votes1
answer116
viewsA: When Textview gets too big, decrease the font size
Dude, that’s exactly what this topic is about: https://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds As a mobile device developer, I was sad not to find anything…
androidanswered Marcelo Vieira 428 -
0
votes4
answers327
viewsA: Return results for all months of the interval
Correction: Add another condition AND CAST(SUM(CASE WHEN s2.name LIKE '%Servidores' THEN (ta2.time_unit * 1.5)/60 ELSE ta2.time_unit/60 END) as DECIMAL(12,2)) > 0 SELECT CAST(SUM(CASE WHEN…
-
0
votes1
answer72
viewsA: Data selected from <option> tag to pass to Model C# - MVC
Set a name for your select <select class="form-control" id="sel1" name="sel1"> With this you can take the value through a property of the object you put in the action parameter to send the…
-
1
votes3
answers6975
viewsA: Javascript function 1 wait function return 2 (Sync await Promise.all)
Since async is executed, you need to wait for the execution using then. Something like that: let conn = new Conexao(true); conn.acessar('https://jsonplaceholder.typicode.com/posts/')…
-
1
votes2
answers123
viewsA: Hide checkbox and display other
You can do it using jquery: var check1 = $("#id-do-check-1"); var check2 = $("#id-do-check-2"); check1.on("change", function () { if (check1.find("input:checked").length) { check2.show(); } else {…
-
0
votes2
answers161
viewsA: How to manage threads in C#?
Threads are finished when finishing the execution. You don’t have to worry about that. The major concern with multithread operations is usually timing control. Eventually you will have several…
-
0
votes1
answer100
viewsA: Receiving json from a web server
If I may, I would like to point out a good way to solve this problem: Install the Newtonsoft package from Nuget: https://www.nuget.org/packages/Newtonsoft.Json/10.0.3 PM> Install-Package…
-
1
votes1
answer38
viewsA: jquery is not bringing the form value
You are creating a context that is not the form. To serialize the form, do so (exchange your this for the form): var form = $('#reg-form_planejamento'); $.ajax({ url: 'email_planejamento.php', type:…
jqueryanswered Marcelo Vieira 428 -
1
votes1
answer271
viewsA: Redirection with parameters
The action parameter you are using is already reserved for the name of the action to be called, as it was defined in the route registration: config.Routes.MapHttpRoute( name: "DefaultApi",…
-
1
votes1
answer568
viewsA: Check whether a COM port is connected or not
It is not possible to know if the connector is plugged, but in most equipment to monitor the CTS signal that is used for data flow control. if(port.CtsEnable) { } If the hardware manufacturer is not…
-
1
votes2
answers1072
viewsA: Is it possible to process data receipt in Camel Casing using Odata?
I believe this will solve the problem: Apply this attribute [Camelcasingfilter] to any action you want as Camel Casing. public class CamelCasingFilterAttribute : ActionFilterAttribute { private…
-
4
votes2
answers88
viewsA: What is the Creation proxy for in the Entity framework?
Proxies are required for two resources: Lazy load - navigation properties are loaded once you first accessed Tracking of dynamic changes - If you modify any property in the entity, the context is…
-
0
votes2
answers959
viewsA: Change the color of values
Something like the example below should change the color of the text: <style> .pendente { input, select, textarea{ color: #ff0000; } } </style> <form> <label…
-
-2
votes2
answers439
viewsQ: Is there a free graph-oriented database for commercial use?
I’ve been studying the advantages of using a graph oriented databank and when I went to assess the cost for use at work, I didn’t find much information. I mainly studied the Neo4j, that for startup…
neo4jasked Marcelo Vieira 428 -
4
votes1
answer5537
viewsA: How to resolve: Failed to execute 'appendchild' on 'Node': Parameter 1 is not of type 'Node'
I believe he’s trying to insert the td into himself. In the code below I changed to insert the td in the tr. See if it solves your problem. campos.forEach(function (campo) { var td =…