Posts by rodrigorf • 1,021 points
53 posts
-
2
votes1
answer158
viewsA: How to arm selected checkbox in an array in c#
In this case you can use a Checkboxlist and navigate through the options(Items) by checking which one you are selecting. In the example I put 2 of the 4 marked options and used LINQ to go through…
-
0
votes1
answer43
viewsA: Edit compiled ASP.NET page
Try a Compiler to reverse build code like https://www.jetbrains.com/decompiler/, this will allow viewing the dll classes if they have not been intentionally scrambled/encrypted, but still have to…
-
4
votes5
answers286
viewsQ: Regex to capture dimensions of a product with unit of measure
I have a python function to capture the dimensions of a product in Lxcxa format but I can’t make it work for cases where the unit of measure between the values appears, regex is this one: def…
-
0
votes3
answers5999
viewsA: Inserted in a list of lists in python
#INPUT listaNum = '44 45 49 70 27 73 92 97 95'.split(' ') #LIST listaRes = [] for num in listaNum: listaRes.append([int(num) % 13, int(num)]) print(listaRes) #DICTIONARY dictRes = dict() for num in…
-
0
votes4
answers2332
viewsA: Regex to pick word between two words or "/"
A regex for this can be as follows: .*\/([^/]+)\/[^/]+ In this case it will always take the penultimate group between the bars, if add 'test/' at the end, the expression will return 'providers'.…
-
1
votes1
answer180
viewsQ: Does using "from x import y" in python reduce the size of the application?
If I make an imposition in the form "from X import Y" instead of "import Y" I am saving on the size of the final application or it makes no difference? Let’s say within Y has thousands of functions…
-
0
votes3
answers1410
viewsA: How to make input mandatory in just a few cases
I believe it’s something like this you’re looking for: HTML <input type="checkbox" name="idade" value="true" onclick="validar();"> Maior de 18 anos<br> <div id="parents"> Nome Pai:…
-
0
votes1
answer60
viewsA: How to apply javascript
The explanation was not clear but I believe the idea is this: HTML <img id="bora" name="opa" src="https://icon-icons.com/icons2/577/PNG/256/ExecutiveCar_Black_icon-icons.com_54904.png"/>…
-
1
votes1
answer56
viewsA: How to use the plugin botepage ajax correctly
For what I tested, Bootpag does not allow to mount paging from content previously declared in html as you did with div="one" and div="two", the loading is dynamic, just have a div region with the id…
-
1
votes1
answer19
viewsA: Azure Remote Debugging - Simultaneous Connections
Concurrent Debugger Connections per application: Free: 1 Shared: 1 Basic: 1 Standard: 5 Premium: 5 See more in the documentation on Azure App Service Limits.…
-
0
votes1
answer182
viewsQ: Change color of a node in a Neo4j graph
I created an example graph in Neo4j with a father and two children. I would like to know how to change the color of all nodes that have the level 1. When I click on the node appears at the bottom to…
-
0
votes1
answer191
viewsA: Youtube V3 API - Search videos by title
Whereas you already have the Key API and it is enabled, in short: var query = 'mutant giant spider dog' gapi.client.load('youtube', 'v3', function() { gapi.client.setApiKey('[SUA_CHAVE_API]'); var…
-
6
votes1
answer155
viewsQ: Modeling with Code First so you can exchange databases
If I generate my database for Mysql using the concept of Code First is it possible to change it to SQL Server in the future with relative ease? Need to change the classes or just the config and the…
-
0
votes0
answers78
viewsQ: Monitor changes in the value of a JSON attribute of a URL
I would like to know the most cost/benefit way to monitor changes in the value of an attribute returned by a JSON format URL. I mean, I have the URL of an API that returns something like: {"high":…
-
0
votes1
answer99
viewsA: Doubt with Enablecors Asp.net web.api
The statement is correct. Whereas you have the Install-Package Microsoft.AspNet.Webapi.Cors package from Nuget installed: Register in your config using System.Web.Http; namespace WebService { public…
-
7
votes1
answer470
viewsA: How does the geolocation of a device work?
To help make a more accurate location is that enters the Wi-Fi!! When Google cars took to the streets to capture images for the Street View, also started to capture data from all wireless networks…
answered rodrigorf 1,021 -
1
votes1
answer42
viewsQ: Phantomjs ignoring style in header
I’m capturing the position of some elements in the DOM of an html but Phantomjs is ignoring the padding applied via css. After doing the page.evaluate I capture the top/left: var res =…
-
0
votes3
answers836
viewsA: I can’t find an element for Id
After evaluating the processed page, do a Document.getElementById: var page = require('webpage').create(); page.open('http://www.meusite.org', function(status) { if (status !== 'success') {…
-
1
votes1
answer195
views -
5
votes1
answer261
viewsQ: ASP.NET MVC Scaffolding for any table
Someone knows a way for me to generate CRUD automatic to my bank tables using MVC? I have 5 tables and would like to generate SinglePage apps automatically for them, without having to generate…
-
0
votes1
answer574
viewsQ: ORA-1691: Unable to extend lob segment
I am loading from one oracle bank to another bank and at the time of transferring the files from an Attachment table this error occurred after some time: ORA-1691. Reading a little I saw that it has…
-
4
votes2
answers661
viewsQ: Execute code in Lua language
I downloaded the Lua language interpreter, created a file hello.lua with the code below: print("Hello World") But I can’t compile this code and display the output. I downloaded version 5.3.3 and ran…
-
0
votes1
answer36
viewsA: How to display results if my select turns out to be false?
Make a Left Join between the tables: http://www.w3schools.com/sql/sql_join_left.asp. It will bring the results of Topics even if there are no associated Posts. Example: SELECT * FROM Topicos t LEFT…
-
1
votes1
answer815
views -
1
votes1
answer288
viewsQ: Visualstudio 2012 checkin problem
When trying to checkin the following message is displayed: Check-in validation failed. A policy Warning override Reason and/or a check-in note is required. I thought it was a problem because there…
-
2
votes1
answer2183
viewsQ: List all Synonyms in Oracle
How do I list all the Synonyms(synonyms) present in my database? I need to know which ones are created to compare between banks what exists. I tried with the code below but does not return synonyms:…
-
2
votes1
answer38
viewsA: Scheduling service in Azure
I managed to configure following the tutorial here. Within the Application Services in Azure simply click on "Web Jobs" and fill in the following form: It allows you to send the zip with the . exe…
windows-azureanswered rodrigorf 1,021 -
2
votes1
answer38
viewsQ: Scheduling service in Azure
Hello, does anyone know how to schedule the daily running of an . exe in Azure? I have an email notifier that needs to run every day, is a C# project that generates an executable and would like to…
windows-azureasked rodrigorf 1,021 -
0
votes1
answer80
viewsQ: Publish multiple projects in Visual Studio 2012
How do I publish several independent web projects that are within the same Solution using Visual Studio 2012? I usually right-click the project and go to "Publish" but I can’t do it with several…
-
1
votes1
answer44
viewsQ: Encountering Problem Bank Connection with Visual Studio
Hello, does anyone know if you have any way to find problematic c c# code related to opening and closing database connections? I have an application that after a few hours processing a load when…
-
1
votes0
answers316
viewsQ: Drop-in-frame menu over another frame
Hello, how do I make my menu that is inside a frame go over another frame? I have the following html: <frameset rows="150,*" frameborder="no" border="0" framespacing="0"> <frame name="menu"…
-
1
votes1
answer1299
viewsA: How to include a column that dynamically demonstrates image in a Gridview
Excuse the delay @user2992172, follow the best solution found following your example: protected void Page_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); //Cria primeiras colunas…
-
0
votes1
answer299
viewsA: How to take a column in the database, perform a calculation and send it to the grid
Hello, there in the if where you assign the value 10, does so: if ((Int32)dr["VAL_VIDA_UTIL"] == 0) { dr["VAL_DEPRECIACAO"] = 10; } And you would have to create in Datatable to use on each line:…
-
2
votes1
answer34
viewsQ: Search broken links(path) in the project in Visual Studio
I have a web project in Visual Studio 2012 and would like to know if there was any way to scan the code for paths to files that are not certain and also identify files that are not used. For…
-
3
votes1
answer115
viewsQ: Problem with calculation result greater than Int64
I am doing the exponent of a number and I need the result to come out in a specific format, however I do not know how to do, follow the code: double num1 = 290287121823; double num2 = 538783; double…
-
5
votes2
answers89
viewsQ: Access internal C#/. NET code structures
You can access the internal structures of a C# core code or C System.Core do . NET? For example, how is the method implemented First()? Alerta alerta = query.First(); I wanted to see how it’s done…
-
1
votes2
answers87
viewsA: How to draw items from a Listbox using quicksort
The very one Array.Sort of. Net Framework already brings some ease to you because behind it already implements algorithms like Quicksort and Heapsort depending on the size of the input array. In the…
-
1
votes1
answer92
views -
0
votes1
answer321
viewsA: Entity Framework - Objectstatemanager Error
I was able to solve the problem, as all the execution was tied to an external transaction, by changing the Update method to use Transactionscope the problem is gone. public override…
-
0
votes1
answer321
viewsQ: Entity Framework - Objectstatemanager Error
I am getting the following error when trying to update an entity in EF: {"An object with a key that matches the given object’s key could not be located in the Objectstatemanager. Check that the key…
-
5
votes3
answers2168
viewsA: How to Make Icone Ride in the Google Maps api
Fábio follows an example that will help you, I created a marker and put it to move to a certain coordinate: HTML <div id="map_canvas" ></div> JAVASCRIPT initialize(); function…
-
0
votes1
answer552
viewsA: How to make a chart grouped between bars and lines with google Chart and export to pdf (C#, MVC)
The examples of the Google Chart website are very detailed, see this: https://developers.google.com/chart/interactive/docs/gallery/combochart#example Demonstrates exactly the crossing between a bar…
-
1
votes1
answer114
viewsA: What is the difference between Formsauthentication createPersistentCookie true or false?
when createPersistentCookie is false(default), the warning cookie is a session cookie and will be lost when the browser is closed. In the case where it is true, the cookie will be kept between…
-
2
votes1
answer217
viewsA: Namespace does not work correctly / BC30002: Type 'Prod' is not set
As the problem arose with the server version change, check how the MVC build is in the project, what the framework is and if the references for MVC are ok in the solution. What version of the MVC?…
-
0
votes1
answer398
viewsA: Script Manager on Masterpage but not working correctly
even configuring the new Updatepanel detailing to be trigger through a button rigger and in Conditional mode? <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">…
-
1
votes1
answer865
viewsA: Recovering Findcontrol from Parent Peater in Child Remaster event
by what I understood the whole question is to capture the value of a control outside the Reset child but inside the Reset parent? Correct? See the example I built following this idea:…
-
1
votes1
answer367
viewsA: Save last value to variable and display
Following past details, follows a change based on what you need. The idea as I understand is to monitor the memory consumption of a process in your application, and record the highest value…
-
4
votes2
answers403
viewsQ: How to filter in LINQ for every X months?
Hello, I would like to know the best way to filter a list of objects using LINQ in C#, I have a list of objects called Measuring, each measurement has a Data property, which is the date that was…
-
1
votes2
answers2810
viewsA: How to call a javascript function from an external file?
To call the ID of a component . NET via javascript it is necessary to set the attribute Clientidmode in creating the component to "Static": <asp:TextBox runat="server" ID="txtNmBanco"…
-
2
votes1
answer593
viewsA: C# + Entity + Mysql = The underlying Provider failed on Open
Missing the "Data Source" attribute in your string Connection, see: <add name="MyEntities"…