Posts by Guilherme de Jesus Santos • 6,566 points
77 posts
-
1
votes2
answers82
viewsA: Error in Image Gallery
The fault has been one of the Soviets and in this case the isotope.pkgd.min.css. You can use imagesLoaded to solve this. Add this snippet to your file mais.js, down the line 61 is fine. // layout…
-
0
votes1
answer609
viewsA: Laravel - view does not work
Dude, try to stop the php artisan serve and then start it again. And start again. I already had problems and it was the cache, when I created new routes with active serve. If this doesn’t work,…
laravelanswered Guilherme de Jesus Santos 6,566 -
2
votes1
answer246
viewsQ: Why does this string interpolation generate error
I have the following PHP code : <?php class Animal { private $nome; public function getNome():string { return $this->nome; } public function setNome($value) { $this->nome=$value; } } class…
phpasked Guilherme de Jesus Santos 6,566 -
2
votes2
answers220
viewsA: Inheritance problem
Since you are using Entityframework, I believe you need to add the clause Includewhen you search the entity Mensagem. By the way today you must be doing something like this : var query = from msg in…
-
7
votes3
answers280
viewsQ: Log tables should have Foreign Keys?
I had a case in my service these days when it was not possible to delete a record because it was referenced by the table of log. Logically what generated a call for the IT area to solve. But that…
-
2
votes2
answers163
viewsA: Convert Switch to IF
For anyone who wants a different option, how about? if (theOperator == "+") { operacao = soma; } else if (theOperator == "-") { operacao = subtracao; } else if (theOperator == "*") { operacao =…
-
2
votes1
answer163
viewsQ: JSP for developers . NET
I’m a developer . NET who needs to understand a bug that occurs in a JSP application. (I don’t need to compile or fix, just understand how it is using the database and etc.) I already have Eclipse,…
-
2
votes2
answers1008
viewsA: Redeem code from an executable program?
If you have the DLL or EXE, you can use the free Jet Brains Dotpeek https://www.jetbrains.com/decompiler/ A colleague needed to use and managed to recreate the code. Just no comments. And it can…
-
1
votes3
answers287
viewsA: Out Of Memory when running a Getfiles in a very large directory
I use Directoryinfo.Enumeratefiles The Enumeratefiles and Getfiles methods differentiate as follows: when you use Enumeratefiles, you can start enumerating the collection names before the entire…
-
2
votes4
answers1102
viewsA: How to show data from 2 tables in a grid?
Use Linq and enjoy the join . Also create a class for your data return, where you get the query return. There are some MVC people who like to call this kind of class Modelview. Example : 1 - I…
-
3
votes2
answers78
viewsA: Add AND and OR to Where de list
Use the operator or || inside your Where. filter = lst.Where(s => s.Contains(num.Text) || s.Contains(nome.Text) ).Take(3).ToList(); Here’s an example I did on Dotnet Fiddle…
-
0
votes0
answers270
viewsQ: WCF Service Host - Service does not register port if it does not run VS as Administrator
Hello, while trying to run a Servicelibrary type Webservice. WCF Service Host gives me the following bad news : Please Try Changing the HTTP port to 8733 or running as Administrator.…
-
3
votes3
answers5352
viewsA: How to convert from Text to Number via code to EXCEL in C#
Use Double.Parse with CultureInfo("pt-br"), if you always have numbers in that column. Or Double.TryParse if you are not sure if there will always be a number in this column. In your case your code…
-
1
votes2
answers1863
viewsA: Disable form Submit button inside a modal bootstrap window
Hello instead of using the 'disable' property you should actually use 'disabled' with d at the end. Use this and select the right button and disable it.…
-
6
votes2
answers11349
viewsA: How to insert Java code into html?
Before not now yes. Until recently my answer would be : You need to use an applet for this, because you cannot insert the Java directly in HTML. Applet support is increasing restricted and soon I…
-
11
votes2
answers14208
viewsQ: When to use WITH (NOLOCK)?
Select * from MinhaTabela with (NOLOCK) I know colleagues who always insert the clause With (NOLOCK) in their selects and I know others who preach that NOLOCK is bad practice and should never be…
-
0
votes3
answers7208
viewsA: How to select Digital User Certificate in Web Applications?
Set your IIS to "Request Digital Certificates", so the server will ask for the clients' certificate. Whether it is A3 or A1 certified. In this question the staff already explained how to do this :…
-
4
votes1
answer2064
viewsQ: Solr, Lucene and Elasticsearch what are the differences? When to use one or the other?
What is the difference between Elasticsearch, Solr and Lucene? When using one or the other?
-
24
votes1
answer2966
viewsQ: Roslyn Compiler - What is it, and why was it created?
What is the Roslyn compiler? This is the standard compiler of Visual Studio? Is it open source? Why did they do it? Only for C# or other languages?
-
13
votes3
answers1482
viewsQ: Why does Visual Studio suggest simplifying names? - IDE0001 Name can be simplified
Visual Studio 2013 suggests name simplifications, as you can see below: The suggestion is: IDE0001 Name can be simplified Translation : IDE0001 Name can be simplicate Example: var obj = new…
-
2
votes1
answer336
viewsQ: Response.Redirect() without generating System.Threading.Threadabortexception?
At every point in the system it has a Response.Redirect("/Url.aspx"); Generates the type Exception System.Threading.ThreadAbortException, but it works. There is some way to do Response.Redirect,…
-
3
votes1
answer1437
viewsA: Retrieve information from digital certificate
As you mentioned, I will consider that you have access to the property Certificates class Signedcms. This Certificates property represents a Collection of X509certificate2 The class X509certificate2…
-
2
votes3
answers1719
viewsA: Very slow C# and MVC site
Probably the Application Pool of your site is hibernating after a long downtime, common to happen with sites that still do not have many hits. As it hibernates, it takes a while to reboot. If it…
-
9
votes2
answers14814
viewsA: What is the difference between an XML file and an XSD file?
XSD is the file that defines the data structure. XML is the file that contains the data. Yes it is possible to work with an XML without XSD, but it is recommended that you have an XSD. For example,…
-
37
votes5
answers409
viewsQ: Today (06/30/2015) we will have a second more, what could be the consequences for our systems?
In case anyone doesn’t know, today 30/06/2015 We’ll have an extra second. That is, today after the 23h59m59s we shall have 23h59m60s! This to make the correction of International Atomic Time. I know…
-
1
votes2
answers548
viewsQ: Handling of returns other than JSON
I’m working on an API integration with JSON. I have not implemented anything yet in my code C#, I am for now studying the API but I have already come up with a question. I have a Login method that…
-
5
votes2
answers1287
viewsA: Convert Base16 string (Hexadecimal) to Base10 (Decimal)
I found a reply interesting that led me to the use of Convert.ToUInt64(valor,fromBase). This second parameter fromBase allows conversion to base 2, 8, 10, and 16. //Hexadecimal para Decimal string…
-
7
votes2
answers1287
viewsQ: Convert Base16 string (Hexadecimal) to Base10 (Decimal)
I have the following string "615769EF", hexadecimal. How to convert it to base10 and let the result be the string "01633118703" ?
-
3
votes1
answer169
viewsQ: Web.Config Transformations - What to do with connectionString.config if I don’t use Web Deploy?
My Web.config points to an external connectionString file. <?xml version="1.0"?> <configuration> <connectionStrings configSource="connectionStrings.config"/> </configuration>…
-
3
votes3
answers11042
viewsA: how to Fill a Dropdownlistfor
In @Html.DropDownListFor(model => model.CD_AFFILIATE, Model.?, new { @class ="ComboWidth" }) you want to fill the Model.? with new SelectList(). In other words, you need to tell the dropdown…
-
2
votes1
answer49
viewsA: Name editing is confirmed in the database but does not happen in the listing
By default, queries are cached for each context instance. Even if you save data in context with Savechanges the given cache is maintained for that context instance. There are some ways to have the…
-
9
votes5
answers1091
viewsA: Pros and cons of a 100% HTML/Javascript web application
Pros : Webdesigners have great ease with this architecture. Your application is easily integrated with other systems. So you must create an API to connect with your frontend. Soon it is possible to…
-
2
votes1
answer686
viewsA: Turn Stream into PDF to send with attachment in email
Add the Itextsharp and Itextsharp.xmlworker Nuget packages to your project Add the following using in your code: using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.tool.xml; using…
-
2
votes1
answer615
viewsQ: Syntactic sugar?
I came across the term syntactic sugar these days when I was studying the use of await and async in C#. This question explains what syntactic sugar or syntax sugar is What is syntax sugar and how it…
-
2
votes2
answers1030
viewsQ: What are the meta tags that should not be missing in the header of a good site?
What are the meta tags that should not be missing in the header of a good site and why? Note: I’m not asking what is meta tags, but what are. The question What are <head> meta tags and what…
htmlasked Guilherme de Jesus Santos 6,566 -
3
votes1
answer2343
viewsQ: Internet Explorer in Intranet Site Compatibility Mode - How to Force to Always Render as Edge?
I have a website that I made available to internal users on an intranet for approval. But users who tested with Internet Explorer 11 were with the site being rendered in "Compatibility View Mode",…
-
0
votes2
answers133
viewsA: Server changes no effect
Really as commented, check your deployment process. In no way should you submit your file changes. Cs (from Controller) to the server, for this to happen what you should send to the server are the .…
-
4
votes1
answer1180
viewsQ: Alternative to converting Word to HTML
I maintain a site that does not have CMS and often receive requests from the customer asking to put a text with a predetermined formatting. Usually these texts come in . doc or . docx format from MS…
-
4
votes8
answers13920
viewsA: Is <br> or <br/> or <br />right?
In my Visual Studio when I type <br it automatically completes to <br />, making us think it’s right <br />. But it is known that in HTML <br> is suitable, and in XHTML <br…
-
9
votes4
answers3066
viewsA: How to make a Hello World on ASP.NET MVC?
To create a simple structure for an ASP.NET MVC site The simplest for a Hello World. Some folders are mandatory, such as Controllers, Models and Views folders. I’m using Visual Studio 2013 Express…
-
1
votes3
answers2598
viewsA: How to know which component is in focus?
You can test whether the control returned by the Activecontrol property is a Container type control (i.e., it implements the Icontainercontrol interface). If yes, you search the Activecontrol…
-
1
votes1
answer3281
viewsA: Textbox and dynamic C# + ASP.NET button
Since your Commandargument has the same value as the Hidden attribute of the textbox, take advantage of and use Commandargument itself, which is sent in Commandeventargs. EDIT : Since you want the…
-
0
votes3
answers221
viewsA: How I dynamically put and take out a href
From what looks like Dspathdocumento is a string, so you can use something like : I don’t really like writing in ASP.NET using inline code, but since you’re already using it, here’s an alternative :…
-
1
votes1
answer541
viewsQ: Check if file is newer and then download
I created a windows service, which daily downloads some files. These files have about 2Gb (that’s right, two gigabytes!). The problem is that these files are every day available on the site, but are…
-
0
votes3
answers1728
viewsA: Back to page you called
To include a response using C#, you can do this using the property Urlreferrer. Example : // static variable static string prevPage = String.Empty; protected void Page_Load(object sender, EventArgs…
-
0
votes2
answers1433
viewsA: Automatization of the execution of a file . exe
I like to use the Fluentscheduler , as its name suggests, it has a fluent writing. With it you can write something like this : using FluentScheduler; public class MeuAgendamento : Registry { public…
c#answered Guilherme de Jesus Santos 6,566 -
1
votes2
answers77
viewsA: Does parameter name size influence http request time?
Yes changes performance, slowing down, increasing processing and consuming more bandwidth, but it is in this case at a derisory level, as the brhvitor6 commented. The version with parameters with…
-
4
votes1
answer1217
viewsQ: What problems can occur when using the "http://tempuri.org/" namespace on our webservices?
When creating a webservice, in my case using ASP.NET, I always change the default namespace to something related to my project, usually using the website URL for this. But lately I have had the need…
-
2
votes2
answers1405
viewsA: String Connection excel . xls . xlsx C#
When I have questions about a Connection String, I consult the site http://www.connectionstrings.com/ . In the Excel section in http://www.connectionstrings.com/excel/, has various types of…
-
34
votes1
answer1550
viewsQ: What is . Native Net?
These days I saw our colleague Maniero commenting on the existence of .NET Native in a response on C# and C++. I saw that Microsoft announced in April 2014 the preview of . NET Native. And searching…