Posts by Elexsandro Rangel dos Santos • 534 points
17 posts
-
0
votes1
answer594
viewsQ: Ruby on Rails - Upload files
I currently have a requirement to allow the user to upload PDF and DOCX files in my application with size limit. How can I develop this functionality using Rails? The physical files will be saved to…
-
7
votes1
answer74
viewsA: How to keep a record in the database, however, hidden to the system?
You can apply what is known as logical deletion: In the application exclusion procedure execute the command UPDATE instead of DELETE, by changing the value of the "excluded" column to true. In…
postgresqlanswered Elexsandro Rangel dos Santos 534 -
1
votes1
answer1970
viewsA: Destroy active session after browser close
You can use the API sessionStorage Introduced in HTML5, it cleans the session locally as soon as the browser is closed. To integrate with PHP you could use the following example: <script…
-
1
votes1
answer106
viewsA: How to place how many hours ago the post was posted?
According to the documentation of Datetime.Subtract you could reverse the date values that makes your block as follows: <div class="col-xs-12 titulo-editoria p-a-0"…
-
1
votes2
answers620
viewsQ: How to integrate ASP.NET MVC Core with Vue.js?
I have a project that requires the client side to use Vue.js to render the application views, but on the server side ASP.NET MVC Core is intended to validate all business rules. Is there any way to…
-
1
votes1
answer1007
viewsQ: How to validate the download of files using Selenium Webdriver?
Hello, I wrote an automation test on the Selenium Webdriver using C#, and one of the steps requires downloading an XLSX file from the server. How can I validate whether the file has been…
-
0
votes0
answers80
viewsQ: How to internationalize a Xamarin Forms (Shared Project) application?
How do I create Resources in a Xamarin Forms application using the Shared Project methodology? I searched for several examples and they all explain and have demos for Portable versions. I tried…
-
3
votes1
answer409
viewsA: How to hide password from app.config file?
You can encrypt the Connection string using the utility aspnet_regiis which is located in %systemroot% Microsoft.NET Framework\ In case to encrypt the section connectio strings the command would be…
visual-studioanswered Elexsandro Rangel dos Santos 534 -
0
votes2
answers89
viewsA: Language for processing business rules
Well, for unique business rules needs for all of the Developers that you can access, I would recommend that you create a Webapi and all devices call such an API. This way, once the business rule is…
-
-1
votes3
answers102
viewsA: Check number in database
You can implement this requirement as follows: In your text field add an event to capture the focus loss (Example here and documentation here) Or add a text field customization to support…
-
2
votes5
answers819
viewsA: Is the rest of the code inside Try executed after finding Exception?
The value of X will be 11 if the exception is triggered between: X = 10 and X = 20.
-
1
votes1
answer1213
viewsA: Change date format on C# / Asp.NET server
You can try several ways: Programmatically force the date culture to be displayed with the following snippet: System.Globalization.CultureInfo brasil = new System.Globalization.CultureInfo("pt-BR");…
-
2
votes1
answer269
viewsA: how to get the Session time in php
Try using the following excerpt: $segundos=ini_get('session.gc_maxlifetime');
phpanswered Elexsandro Rangel dos Santos 534 -
1
votes0
answers108
viewsQ: Yslow does not work on Firefox
I have installed Yslow 3.1.8 in Firefox 49.0.1 but any link I click inside Yslow does not work. Does anyone know how to solve this problem so that you can browse all of Yslow’s features in Firefox?…
-
1
votes1
answer805
viewsA: Develop in C# using Mono Develop Linux
Mono is owed in some libraries specific to Windows Forms and Web applications. Now with the end of support for Silverligth (Moonligth) applications, WPF is somewhat compromised. See this link with…
-
5
votes2
answers295
viewsA: Opencv haartraining - Out of memory
According to the comments on the question, I was passing many relatively large images (-w 86 -h 150) as a parameter. As the Opencv engine allocates the images and examples in memory before writing…
-
9
votes2
answers295
viewsQ: Opencv haartraining - Out of memory
I have 30 positive images and 60 negative images. When I tried to run haartraining with 4GB of memory and Quadcore processor, I get this error message: OpenCV ERROR: Insufficient memory (Out of…