Posts by Tony • 2,478 points
79 posts
-
1
votes2
answers643
viewsA: Change value <td> dynamically with Javascript
Using HTML and Javascript you can change the content with this command: document.getElementById("nomedoelemento").innerHTML = "novo valor aqui"; A Case: <html> <body> <table>…
-
0
votes1
answer68
viewsA: Problem with VBS and XML
It seems that it is not working as it is trying to save a file that contains : in the middle of the name. <dhEmi>2018-07-17T15:37:34-03:00</dhEmi> You can change the code to something…
-
1
votes1
answer2201
viewsA: How to add additive fonts in addition to those offered by Visual Studio?
Visual Studio lists Fonts True Type installed in Windows. Install the source and restart Visual Studio to list them. There is a source called Firacode, making bandages on symbols commonly used in…
-
2
votes1
answer52
viewsA: Web Extension in Visual Studio 2012
You can use Visual Studio 2017. It fixed several things from these previous versions. In case you choose: ASP.Net and Web development Development for Azure Data processing and storage Cross-platform…
-
1
votes1
answer89
viewsA: V-for access and display list
To bring Bullets items, use the v-for Try this: (I made minor fixes and changes to your JSON and added the picture) Online version: https://exemplos.azurewebsites.net/bullets.html { "sliders": [ {…
-
4
votes1
answer94
viewsA: What is callback server-to-server?
You can specify the URL / endpoint / callback you want to be notified with that callback after completion of some task. It is also called Callback URL For example, your system may call the…
-
2
votes2
answers428
viewsA: Text with line break
You can do it like this: var NewLineHTML = "<br>" + Environment.NewLine; var res = $"Codigo: {codigoProduto}" + NewLineHTML + $"Nome: {nome}" + NewLineHTML + $"Valor: {valor}" ; what would…
-
1
votes1
answer296
viewsA: C# - Maintenance of Classes generated from xsd file
The generated class C# is the representation of the Schema used, in the case described from the XSD file (XML Schema Definition), so it is logical that if the original schema changes, the class…
-
3
votes3
answers657
viewsA: How to move to the next input using javascript?
You can use this code using Javascript only without additional libraries. In HTML, you add the attribute tabindex: <input type="text" tabindex="1"> <input type="text" tabindex="2">…
javascriptanswered Tony 2,478 -
1
votes1
answer185
viewsA: Error finding the center of an Opencv Python object
It expects an int value try using the int() constructor to do what would be a cast Python: cv.Circle(img, center, radius, color, thickness=1, lineType=8, shift=0) → None then it would be…
-
0
votes2
answers1133
viewsA: How to receive JSON data?
To receive JSON you can use AXIOS instead of jQuery with the command axios.get. To integrate with the HTML and CSS interface you can use Vuejs. Use this complete example I’ve assembled using HTML,…
-
0
votes1
answer398
viewsA: Read xml in VB.net
Assuming your XML is in the file C: temp Vbwpfapp1 Myfile.xml; With this code you will be able to read the value of attribute version: Dim oXML As New XmlDocument Dim ArquivoXML As String =…
-
1
votes1
answer107
viewsA: How to reset Ubuntu bash password from windows 10?
If possible, try to uninstall Ubuntu, and then reinstall, then it will ask again the data to create the user. lxrun /uninstall /full lxrun /install Source: https://superuser.com/a/1065579/274615…
-
1
votes3
answers718
viewsA: How to convert date to date in select query?
Try it like this: select DATE_FORMAT(dt_abertura, '%Y/%m/%d'), count(1) as qtd from tabela group by DATE_FORMAT(dt_abertura, '%Y/%m/%d'); Docs: DATE_FORMAT.…
-
0
votes1
answer210
viewsA: How to create a basic browser only to run built-in Javascript codes
You can use a WPF project in C# and use <WebBrowser x:Name="MeuNavegador" Source="MeuDocumento.html" /> to manipulate the DOM and call Javascript you can use the method WebBrowser.InvokeScript…
-
2
votes2
answers146
viewsA: Transform String into Algorithm
You can convert your string into a sympy expression using the function parse_expr () in the module sympy.parsing.sympy_parser. >>> from sympy.abc import a, b, c >>> from…
-
1
votes3
answers258
viewsA: Is there a way to dynamically add attribute to instantiated object in C#?
To clean up Viewmodel, I’ll tip off Nuget Propertychanged public class ClienteViewModel: ValidatableBindableBase, INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged;…
-
1
votes3
answers258
viewsA: Is there a way to dynamically add attribute to instantiated object in C#?
I haven’t tried it yet, I’ve seen people say it’s not possible, but some saying it’s possible :) There is the TypeDescriptor.AddAttributes(Object, Attribute[]) There is also this example with the…
-
6
votes2
answers2537
viewsA: How to Read and Convert . xsd Extension File to a C#Class
This command line can be used to generate the Classes, having the NF-e Schemas: xsd.exe nfe_v3.10.xsd xmldsig-core-schema_v1.01.xsd /c /edb Note that you need to include the name of all imported…
-
3
votes2
answers230
viewsA: How to verify if a file name has 16 digits?
Appendage using at the beginning of the file: using System.IO; Example: using System.IO; namespace _06_Teste { ...... Directory.GetFiles(....) FileInfo fileName = new System.IO.FileInfo(file); or…
-
1
votes3
answers3512
viewsA: How to decrease the quality of an image on android?
You can resize Bitmap: Bitmap yourBitmap; Bitmap resized = Bitmap.createScaledBitmap(yourBitmap, newWidth, newHeight, true); // ou: resized =…
-
1
votes1
answer65
viewsA: Remove Spellcheck (Check Spelling)
You can customize the Ribbon File>Options>Customize Ribbon>Remova a aba ‘Editing’ (Editar) Source:…
-
1
votes1
answer2529
viewsA: Run Javafx app on Android
There is the project Javafx ports http://javafxports.org/page/home Tutorial: http://javafxports.org/page/Getting_Started Android: You need: Your Javafx app, built as a JAR, for…
-
1
votes2
answers2131
viewsA: Search between two dates in my database
Missing quotes on date values, open + close connection, in addition, I put an auxiliary function that I did, to be cleaner the code. protected void botaoPequisar_Click(object sender, EventArgs e) {…
-
1
votes1
answer302
viewsA: Insert tab when printing
I think the most certain is you use some report generation tool. But if you want to try generating via HTML, for simple reports, up to one page goes well: Puts a Webbrowser in the window, and this…
-
4
votes5
answers26088
viewsA: Registration problem (Column Count doesn’t match value Count at Row 1)
To be correct the code needs to take into account the parameters, because sometimes comes special characters, as the apostrophe ' Take a look at Java SQL Parameters ALL OVER: Mysql Parameters To…
-
2
votes1
answer2613
viewsA: Query and download Nfe
Depends on the State (UF). Take a look at the updated list on the Official NF-e Project Website: http://www.nfe.fazenda.gov.br/portal/WebServices.aspx Another good source of consultation is on the…
-
8
votes1
answer604
viewsA: Run Fullscreen program on Windows 7
You can try to maximize: #include <windows.h> ... HWND hwndConsole = NULL; hwndConsole = FindWindow(NULL, "Test.exe"); // TODO: pegar o hwnd do processo atual if(NULL != hwndConsole) {…
-
1
votes1
answer962
viewsA: Choose a file in a folder and save it as text automatically
You were trying to Save a String. Would need to Open the Workbook, Save it as, then Close it; Sub GerarArquivoTXT() Dim intChoice As Integer Dim strPath As String 'permitir escolher só um arquivo…
-
12
votes2
answers17231
viewsA: Can Visual Studio Community be used in commercial projects?
Q: Who can use Visual Studio Community? R: See how the developers individual can use Visual Studio Community: Any individual developer can use Visual Studio Community to create their own free or…
-
1
votes2
answers11418
viewsA: How to open a page in a new tab without leaving the current page
You’ll need a code like this: function openNewBackgroundTab(){ var a = document.createElement("a"); a.href = window.location.pathname; var evt = document.createEvent("MouseEvents"); //the tenth…
-
4
votes2
answers2325
viewsA: Control Serial Port using Web Application
In addition to the excellent solution cited by the colleague, using Java Applet, just to mention: Google Chrome offers API to communicate with Serial Port. var writeSerial=function(str) {…
-
0
votes3
answers158
viewsA: Capture only the second part of the string
Consider changing your code to something that contains Dim documentos As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) Dim meuArquivoDiretorio As String =…
-
2
votes1
answer137
viewsA: SQL query for date return
List all sellers who have birthday between January and June returning the name of the month. (Edit the table and field name according to your current table) SELECT id_vendedor, nome_vendedor,…
-
6
votes1
answer266
viewsA: How do I send a message to stderr no bash via echo command?
You can use the following command: >&2 echo "erro" or echo Esta mensagem vai para o stderr >&2 Sources: https://stackoverflow.com/a/23550347/194717…
-
0
votes3
answers1682
viewsA: Gantt chart using C3.js: How to use Axis Y Category or Y timeseries?
There is a directive of Gantt for Angularjs, may be useful in your project: http://angular-gantt.github.io/angular-gantt/…
-
2
votes1
answer571
viewsA: Problem with cursor in Mysql
Missing the HANDLER statement: DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = 1; Source: https://stackoverflow.com/a/23690018/194717…
-
1
votes2
answers112
viewsA: Reactivate form to closure of other
Try this code: if (numbersandletter->IsMatch(txta->Text) && (Convert::ToDouble(a) * letra) > 0){ Mat::Mat1^ mat1 = gcnew Mat1(); this->Enabled = false; // Desnecessário…
-
1
votes3
answers16754
viewsA: "Must declare the scalar variable" error
Missed adding at the beginning DECLARE @VDIAPARALISADO INT
-
0
votes2
answers6198
viewsA: Error Could not load file or Assembly Microsoft.Web.Infrastructure
Install Aspnetmvc3toolsupdatesetup that can be downloaded from here . This will solve the problem. Source: https://stackoverflow.com/a/14322426/194717…
-
2
votes1
answer544
viewsA: Menu does not open horizontally in IE
Test, with this code, which specifies X-UA-Compatible as IE=EDGE <!DOCTYPE HTML> <html lang="pt-BR"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />…
-
0
votes3
answers460
viewsA: Pop-up opening before being clicked by button
Try this html code from this site: http://www.botecodigital.info/jquery/criando-uma-janela-modal-simples-com-jquery/ <html> <head> <title>Janela modal</title> <script…
javascriptanswered Tony 2,478 -
3
votes2
answers452
viewsA: Problem when breaking in if
Your code could be improved, restructure these ifs, so you don’t need the Return, that you thought was the continue. The problem is that break and continue are for LOOPS, not for IF Instead of going…
javascriptanswered Tony 2,478 -
2
votes1
answer1161
viewsA: How to script C# to run HTML
You can try using Script#, http://scriptsharp.com/, a compiler that converts . Net to Javascript. Wouldn’t it be great if you could write C# code instead of Javascript? This is possible with Script#…
-
1
votes2
answers89
viewsA: Problem sending email by app
It lacked calling the method send? public SendMail(String subject, String message, List<String> mailTo, ConfiguracaoEmail config) throws EmailException, IOException { this.email =…
-
3
votes1
answer84
viewsA: How to search for records that fit into any category of a list, even if the category name only partially matches?
It seems to me you’re wanting the so-called "Pattern Matching". Try using the LIKE clause of SQL $sql = "SELECT * FROM imovel WHERE CATEGORIA LIKE ('%CONJUNTO%')";…
-
1
votes1
answer350
viewsA: problem with Magento
Packet Too large Mysql server has Gone away This occurs when a large amount of data is sent to the Mysql server, which for operational and performance reasons limits this amount to 16 MB. Server has…
-
2
votes3
answers2217
viewsA: Capture "textarea" from the Responsive WYSIWYG (text editor) plugin
On the site Tinymce has this example; if you can change the DIV to a Textarea, you can do so: <?php…
-
2
votes1
answer454
viewsA: Create link with form data
Try this HTML code: <html> <body> <form method="get" action="http://endereco.com.br/pesquisa" enctype="application/x-www-form-urlencoded"> <input type="hidden" name="utf8"…
-
1
votes2
answers83
viewsA: Creation of a mailClient
For IMAP, you can try: Mailsystem.NET http://briancaos.wordpress.com/2012/04/24/reading-mails-using-imap-and-mailsystem-net/ Or the aenetmail https://github.com/andyedinborough/aenetmail see an…