Interesting questions
-
36
votes8
answers7830
viewsIs giving a "SELECT" before an "INSERT" a safe way of not having duplicate records?
I have a table with a column codigo. I cannot set as primary key. In a system it receives many notifications before it checks with a SELECT to see if that code already exists in the table. If it…
-
-2
votes1
answer33
viewsI need to develop a program that given an input file, generates a java output file
Given an input file, generate an output file as shown below Arquivo de Entrada | Arquivo de Saida --------------------+-------------------- 1 | impar 2 | par 3 | impar 4 | par 5 | impar 6 | par I…
javaasked 6 years, 11 months ago Breno Nogueira 37 -
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
1
votes1
answer1124
viewsHow to obtain the value of a property and how to obtain the property in which the attribute is declared?
Let’s say I’m creating an attribute like this: TCompareAttribute = class(TCustomAttribute) private FPropertyToCompare: string; public constructor Create(APropertyToCompare: string); function…
-
0
votes1
answer33
viewsClass mock without methods
I need to mock a class that has no methods and returns nothing, how could I do that in Python? I’m mocking this class because it acts as a typing converter. My class is very similar to the one…
-
3
votes1
answer607
viewsHow to decompile code from a python module using marshal?
I would like to get the bytecode of a module in Python and save in a pyc with marshal. Example: abc test module t2 mod2 So I would import abc.test.module and would like to get the bytecode and so…
-
4
votes1
answer790
viewsHow to add results from a list and display result in an Ionic popup?
I have an actiosheet that opens a popup: In the popup I want the total values of the list to be displayed. That is, I need to add / accumulate the values of the list and display the sum in the…
-
0
votes1
answer83
viewsRegular expression that returns next words
Well I’m working on a regular expression that picks up license plates, my interest would be not just picking up the license plates, but like things next to it, for example: |Placa:AVX-4300 Fiat Uno…
-
3
votes1
answer328
viewsHow to get all keynames within localStorage
How to catch all the keyNames (not the values) within localStorage and add as option in one element select? Code in operation here Explaining the code: 1. The function salvar() saves a key with the…
javascriptasked 7 years, 2 months ago Mark 169 -
1
votes1
answer123
viewsIs product image in <option> of <select> possible?
I have a budget system but as there are many items with similar description arose the need to view the image together with the description, the image link and the description will be dynamic and…
-
0
votes2
answers453
viewsCapture, as string, xml-specific tag
You only need to save the signature tag of an xml. The method for signature is this: private void assinarMdfe(String tipo, XMLSignatureFactory fac, ArrayList<Transform> transformList,…
-
3
votes2
answers1413
viewsCalculate the size of the div
I’m working on a simple "Divs slider" script! There’s only one problem, when you start moving left and right it cuts a piece of Divs, I need it to move exactly in a way that it doesn’t cut the Divs…
-
1
votes0
answers48
viewsHttpwebrequest error
I’m using this code below to send a xml to the webservice from city hall, the maximum RPS you send is 40. What happens is that I already sent with 40 and did not get problems earlier. It is…
-
0
votes0
answers39
viewsHow do I update Adsense ads without refreshing the page,Double Click?
I have a site with ads from Adsense, I wanted to update in x seconds, I created an account in double click, I made a new ad block, I took the example code, but in the part of googletag.defineSlot, I…
javascriptasked 8 years, 8 months ago Gerson Valdeir 57 -
1
votes1
answer128
viewsWhy does email get bad format when putting HTML in the body?
I have a jQuery editor that sends a string in HTML format to my input as follows. <p class="MsoNormal" style="text-align: justify; text-autospace: none;"><span style="font-size: 10.0pt;…
-
0
votes1
answer44
viewsASP.NET C# Age passed by the url
Next, I have a page that receives age parameters that may vary in quantity. Example: url/page.aspx?idade=x&idade=y&idade=z My idea is to take all the ages passed by url and select only the…
-
-1
votes1
answer41
viewsLoad php file with jquery
Hello, First of all I apologize if the question is not well structured. I’m building a content/stock and similar management system.. I leave below a print screen where I try to explain how this…
-
1
votes2
answers1708
viewsConfigure stylesheet with PHP
I’m setting up an administrative system and one of the administrator’s options is to control various page color settings. However I’m having difficulty finding the best way to put these settings on…
-
1
votes1
answer1100
viewsColumn-specific selection in an HTML table in JS
Hi! I’m an IT student and I’m learning about Rails. I have the following HTML table of a view: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table…
-
1
votes1
answer223
viewsHow to install C++ compilers and previous version libraries in visual studio 2015?
How do I install older versions of c++ compilers and libraries in visual studio 2015 without having to install the IDE together? (i.e., only what is necessary to compile, run, and debug…