Posts by Arthur Menezes • 2,210 points
58 posts
-
3
votes0
answers52
viewsQ: AWS Lambda Layer Failed to create via AWS Cloudformation
I’m trying to create a AWS Lambda Layer in the AWS Cloudformation, but the following error happens: Layer Conversion failed: Some Directories do not have execute Permissions; (Service:…
awsasked Arthur Menezes 2,210 -
3
votes3
answers1529
viewsA: What technologies can I use to create a PWA
To create a PWA, you basically need HTML, Javascript and CSS. Broadly speaking, PWA is a Web App with a Service Worker implemented allowing you to make your application offline and get push…
-
0
votes0
answers19
viewsQ: How to prevent PDF downloading and printing in the browser?
How to prevent the download and printing of a PDF file that is being displayed in the browser? I would like to allow only file view!
html5asked Arthur Menezes 2,210 -
4
votes1
answer234
viewsQ: What is the difference between pull-based and push-based Development?
What is the difference between pull-based and push-based Development in software engineering? This refers to Git as well?
-
-1
votes4
answers596
viewsA: Progressive counting using for
var i = 10; theLabel = document.getElementById("counter"); var interval = setInterval(function(){ theLabel.innerHTML = i; i--; }, 1000); <div id="counter"></div>…
-
18
votes4
answers1870
viewsA: What are Progressive Web Apps?
Progressive Web Apps are experiences that combine the best of the Web and the best of the apps. They are useful for users since the first visit in a browser guide without requiring installations. As…
-
4
votes2
answers2918
viewsQ: Is negative margin a bad practice?
Use a margin with negative value is a bad practice (bad acting)? Example: margin-top: -3px;
cssasked Arthur Menezes 2,210 -
1
votes1
answer773
viewsA: Image Transition 4 images with Animate css3
#crossfade > img { width: 300px; height: 250px; position: absolute; top: 0px; left: 0px; color:…
-
4
votes2
answers2249
viewsQ: Should we use SVG or PNG icons for websites?
Is it better to use icons in SVG or PNG formatting for websites? Why?
-
0
votes0
answers15
viewsQ: How to get the browser language in a Serviceworker?
How to get the browser language in a Serviceworker? navigator.language || navigator.userLanguage; //não funciona
web-workerasked Arthur Menezes 2,210 -
4
votes2
answers75
viewsQ: How to obtain a cookie in the Web API in a Forms Authentication scenario in Cross Application?
I have the following applications . Net: Web Application with Forms Authentication (I’m not using MVC, I use Backbone.js to call the REST API) Web API REST application sharing the same Forms…
-
1
votes1
answer42
viewsQ: How to get the item that is in drag in a Jquery Drag&drop?
I want to know how to get the item that is in drag and so I can change some properties of it. Follow the example below: According to the above example I need to change the item I am dragging and not…
-
9
votes2
answers16435
viewsA: What are the out and ref parameters
Parameters ref are changed in the call location. They are passed as references, not values. This means that you can assign the parameter in the called method and have it also be assigned in the call…
-
3
votes2
answers1558
viewsA: Global variable query in a controller
Cannot do per global variable. For each request the controller is instantiated, so your global variable will lose the value. A good practice to do this is through Session state or cookies. One way…
-
2
votes4
answers579
viewsA: Get the date and time the computer called
Using the Managementobjectsearcher. using System.Management; using System.Linq; public static DateTime GetLastBootUpTime() { DateTime lastBootUpTime = new DateTime(); SelectQuery query = new…
c#answered Arthur Menezes 2,210 -
6
votes2
answers901
viewsA: Extract file . ZIP with accent on name
With this Enconding works: ZipFile.ExtractToDirectory(caminhoArquivoZip, "E:\\localParaExtrair", System.Text.Encoding.GetEncoding(850)); The GetEncoding initializes a new class instance Encoding…
-
1
votes1
answer225
viewsA: What is the best way to get the Radiobutton that was chosen by the user?
var resultado = ""; foreach (Control control in this.Panel1.Controls) { if (control is RadioButton) { RadioButton radio = control as RadioButton; if…
-
0
votes1
answer126
viewsQ: What is the difference between a WCF Service and a Duplex Service?
Follow the doubts... 1- What is the difference between a WCF Service and a Duplex Service? 2- When to use a Duplex Service? 3- We can compare it to Signalr?
-
1
votes1
answer601
viewsA: XML Editing: How can I get the value of a property
var valorUuid = ""; var doc = XDocument.Load(@"Z:\Área de Trabalho\Windows Vista.xml"); var machine = doc.Root.Element("Machine"); foreach (var element in doc.Root.Elements()) { …
c#answered Arthur Menezes 2,210 -
5
votes2
answers601
viewsA: What is Ufon and what is it for?
The Cufon is an API whose function is to replace javascript fonts. Using HTML5 and CSS3 you can use font-face instead of Cufon as discussed here.…
-
1
votes1
answer101
viewsA: Error compiling Monodevelop Project
Probably need to reference the dll System.dll to the project where this error is happening.
-
5
votes1
answer276
viewsA: What is the assignment in Action parameter method for?
Optional parameters The assignment in the parameter exists so that when being called a Action Teste and no parameters are passed id and tema, to Action assign the default values 0 and ""…
-
4
votes2
answers794
viewsA: CSS: Character inside a round element
.circle { width:50px; height:50px; border-radius:25px; font-size:25px; color:#fff; line-height:50px; text-align:center; background:#580000 } <div class="circle">S</div>…
-
6
votes1
answer125
viewsQ: What are the risks of putting an ASP.NET application in an environment with Load Balancing?
Regarding the code... there is some risk that may affect my application from the moment it works in a Load Balancing scenario?
-
3
votes2
answers718
viewsA: How do I add two strings in C#?
If you are using . Net Framework 4.0 or higher you can use Biginteger. You only need to reference the following Assembly System.Numerics.…
-
2
votes1
answer67
viewsA: XSS - Prevention works on IE but doesn’t work on Chrome
Current version of Chrome bug. When executing the same code in version 42 the error does not occur. I already reported the problem to Google. If anyone wants to follow, follow the link:…
-
3
votes1
answer67
viewsQ: XSS - Prevention works on IE but doesn’t work on Chrome
When preventing an XSS attack (Alert(123;)) using Html.Encode the on-screen code is as follows: <select class="combobox" id="xssSelect" name="cmbXss"> <option selected="selected"…
-
1
votes3
answers661
viewsA: How to make the text disappear from the WPF C#field
Works perfectly: <Grid> <TextBox Width="250" VerticalAlignment="Center" HorizontalAlignment="Left" x:Name="SearchTermTextBox" Margin="5"/> <TextBlock IsHitTestVisible="False"…
-
3
votes1
answer851
viewsQ: How to check if a file is corrupted in c#?
How to check if a file is corrupted in c#? Ex: I have a "xpto.txt" file in a directory and need to check that this file is not corrupted.
-
3
votes1
answer1205
viewsQ: How to make a batch file run a Console Application by passing parameter?
I have a Console Application that method main of Program.Cs (where the application starts) receives a input. Follows code below: static void Main(string[] args) { var input = Console.ReadLine();…
-
1
votes2
answers590
viewsA: Open subdirectories with explorer in C#
To traverse all subdirectories recursively use the following method: static void DirSearch(string sDir) { try { foreach (string d in Directory.GetDirectories(sDir)) { foreach (string f in…
c#answered Arthur Menezes 2,210 -
1
votes3
answers1608
viewsA: Is it possible to backup a remote bd sql server via c#?
I thank @Hstackoverflow and @Marciano.Andrade for the alternative solutions, but I managed to solve it with the code I had posted. The only part I changed was in the Server instance having added a…
-
4
votes3
answers1608
viewsQ: Is it possible to backup a remote bd sql server via c#?
I am using Assembly Microsoft.SqlServer.Management.Smo to back up an Sql Server database to c#. The problem is that the way it is implemented I can only perform the action if I am running the…
-
2
votes3
answers2007
viewsA: How to obtain information from an SSL Certificate via C#?
I was able to solve it this way: public static void CheckCertificateExpiration(string[] args) { foreach (string servername in args) { Console.WriteLine("\n\nFetching SSL cert for {0}\n",…
-
7
votes3
answers2007
viewsQ: How to obtain information from an SSL Certificate via C#?
How to obtain information (expiry date for example) from an SSL certificate via C#?
-
4
votes2
answers151
viewsQ: How to get IIS information via c#?
How to get c# some IIS information like Version and some settings like Roles and Services. *Note: My application is not Web.
-
0
votes1
answer274
viewsA: Distribuir Crystal Report
I went through the same problem... http://scn.sap.com/docs/DOC-7824 The executables that are described as MSI are the ones you should install on customer machine!…
-
2
votes1
answer387
viewsQ: What are Global.asax methods, when are they fired and good practices?
I would like to know what methods, when they are triggered and what is the best applicability (good practices) of them?
-
4
votes2
answers509
viewsQ: How to read the width and height of a physical image file?
How to get the width and height of a physical image file?
-
2
votes1
answer379
viewsA: Combo or Dropdownlist display a Text according to its value
I believe this will suit you: cmbBancos.SelectedValue = "237"; But this will only work if you have loaded the Dropdownlist by passing the Text and Value, example: cmbBancos.Items.Add(New…
-
1
votes1
answer805
viewsA: How to call the Selectedindexchanged event a method
seuDropDownList_SelectedIndexChanged(this, EventArgs.Empty);
-
11
votes2
answers1715
viewsA: Back previous position in Visual Studio
Use the following commands respectively Ctrl, +, -. There is a button in the Menu that does the same procedure:…
-
0
votes4
answers395
viewsA: How to Debug only one project in Visual Studio?
Right click on your solution and go to Configuration Manager. In the Configuration Manager, change all your apps that you don’t want to run by unchecking Build and let the application you want to…
-
2
votes1
answer196
viewsQ: Error loading multiple swf into html
I created a report on ASP.NET and HTML uploading files .swf (flash) within a for. The problem is when the for is big and it needs to load multiple files. swf in the same report the flash simply…
-
3
votes3
answers1047
viewsA: Do not allow typing space in maskedTextBox
In the event Keydown of maskedTextBox put the following code below: private void maskedTextBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Space) { e.Handled = true;…
-
4
votes1
answer2883
viewsQ: What is the difference between Classic and Integrated in IIS7 Managed Pipeline Mode?
I was having a problem generating a Crystal Reports report that was solved when I changed Managed Pipeline Mode to Classic in the Application Pool. I would like to know the difference between…
-
0
votes2
answers243
viewsA: How to run a flash file(.swf) on an ASP.NET page?
It worked as follows: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="painelv3" width="100%" height="100%"…
-
3
votes1
answer142
viewsA: Multithreading Doubt in C#
When you fire Thread C check that Thread B is running using the property: Thread.IsAlive If false performs Thread C procedures.
-
1
votes2
answers243
viewsQ: How to run a flash file(.swf) on an ASP.NET page?
I have an ASP.NET Webforms application and want to know how to run a flash file(.swf), on a div of an ASP.NET page.
-
2
votes3
answers1728
viewsA: Back to page you called
You can make the call via javascript: <input action="action" type="button" value="Sair" onclick="history.go(-1);" /> The function can also be used: history.back() If you want to call a…