Posts by Sergio Cabral • 555 points
20 posts
-
1
votes2
answers313
viewsA: .NET Core auto executable
Using Visual Studio itself, right-click on the project that should have the generated executable and then on Publish. Don’t just build it. Then click Edit and set the executable destination. Then…
-
1
votes3
answers7920
viewsA: What is the difference between "git init" and "git init --Bare"?
Another difference between --Bare and Working Tree repositories is that in the first case no commits are stored, but only commits that belong to a branch’s track are stored. See below... I created…
gitanswered Sergio Cabral 555 -
1
votes1
answer268
viewsA: How to return selected items in a <select Multiple> with jQuery
What you need is to use the array function join. See how it looks in this example: https://jsfiddle.net/7tfcyjuv/ HTML: <select id="estado" multiple> <option>SP</option>…
-
2
votes3
answers73
viewsA: How to create a class with type inference that can have a default type in C#
Basing me on your need to instance the classes with var a = new Foo<int>(); or var b = new Foo(); the implementation below resolves. Note that the code of class Program is the same as only his…
-
1
votes2
answers87
viewsA: Multidimensional array list
With the function reduce from Javascript you get this result. See the live example here: https://jsfiddle.net/ovqn2c6t/ From what you explained, your data set is 3 items within the list. That is,…
-
0
votes2
answers762
viewsA: How to Add SSL Free in Azure? Is it Possible?
Using Let’s Encrypt (I did step by step today - 25/06/2018 - and it works!) The step by step below works when you create a Linux Webapp on Azure. If your Webapp is Windows you can create a temporary…
-
0
votes2
answers71
viewsA: Modify an HTML element or a browser native function
If you’re looking to replace the function only in Google Chrome and the possible browsers that support this implementation is exactly as you wrote it, with a minor fix. Is not HTMLElement, but yes…
-
13
votes8
answers49747
viewsA: How do I remove accents in a string?
The page code (codepage) Greek (ISO) can do this Information about this codepage can be obtained at the return of the method System.Text.Encoding.GetEncodings(). See more here. Greek (ISO) has…
-
3
votes3
answers2621
viewsQ: How can I display any Javascript object as a string?
If I have any object like new MeuObjeto(), and I want to string all its internal properties. How can I do this? When I use alert(new MeuObjeto()) the result is [object Object]. But I want the…
-
4
votes3
answers2621
viewsA: How can I display any Javascript object as a string?
You can write this function to convert any object for string. See this Jsfiddle example of the function below function ToString(obj) { clearTimeout(window.ToStringTimeout); var result; var ident =…
-
0
votes1
answer198
viewsA: How to prevent and remedy when a web server crashes?
Changing DNS servers generates wait time for update. I understand that the solution is to have a more reliable server. I would investigate the cause. But to monitor whether a hostname is on the air…
-
0
votes2
answers176
viewsA: What is the Box<T> declaration for?
In c# this notation is for you to instantiate the same class, but modify the types . It is a generic type statement. For example... new Box<string>(); and new Box<int>(); Generate the…
-
1
votes1
answer543
viewsA: Take only equal elements in a matrix
I don’t know which language you wrote. Anyway I wrote in C#, you will know how to make the adaptations with the class names List, Vector, etc.. At the end of the code, in the variable int[] validos…
-
1
votes5
answers259
viewsA: Login based on email domain
If the domain empresa.com belongs to the company that owns the software is safe. In fact security depends on who owns the domain. For example, I have my domain splitz.com.br, if someone tries to…
-
1
votes2
answers113
viewsA: How to make a link presentable
The name of this is The Open Graph Protocol (http://ogp.me/) Find in Google by "The Open Graph Plugin Protocol" and see what is applicable to what you need. Find something in here:…
-
4
votes2
answers113
viewsA: How to make a link presentable
The person responsible for generating this information is the content’s own producer. So to do this you need to 'open' the page to the point of reading its source code to get these meta parameters:…
-
0
votes1
answer624
viewsA: Javascript cumulative counter
Well, you can implement this function that will always return the current counter value. The basic idea is to store the value of the current date in localStorage and then whenever the function is…
javascriptanswered Sergio Cabral 555 -
1
votes1
answer115
viewsA: Problem loading a.gif file while updating the php page?
Apparently the problem is that when the GIF is displayed it has to be loaded and the page elements as well. Then the browser crashes and the GIF is not animated in a fluid way. What you can do is…
-
0
votes1
answer97
viewsA: Resize Image
Use the attribute style instead of width and height. To fix the image size maybe you can do the following... <td align="Center"> <?php echo '<img src="'.$objCheck->getass().'"…
-
4
votes2
answers681
viewsA: How to record a txt file with each patient’s name?
Enter the code String nomeArq="Relatorio.pdf"; just before the try. But already define the name you will want, in case... String nomeArq = "Relatorio-" + nome + ".txt"; try {…