Most voted questions
150,413 questions
Sort by count of
-
6
votes6
answers10935
viewsHow to receive a JSON object from an external url/domain?
I found a Lottery API that brings me the data of the result of a Lotofácil draw, but I am not able to access the data of the JSON object. I’m trying this way: $(document).ready(function(){ $.get(…
-
6
votes2
answers5446
viewsHow to know which script is running on a given HTML element?
In Firebug it is possible to know which CSS is being applied in the HTML element, but it is not possible to know which Javascript is running in the HTML element, you have to know this?
-
6
votes1
answer64
viewsPHP on Macosx Yosemite
Hello, when running php --version: PHP 5.5.14 (cli) (built: Sep 9 2014 19:09:25) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies But I have…
-
6
votes4
answers61202
viewsPlacing value in a text box (input)
I want to put a value in a text box. function open_popup(date_today){ document.getElementById('txtstart').value = date_today; } and html input <input type=text required name='txtstart'…
javascriptasked 10 years, 4 months ago akm 3,387 -
6
votes1
answer3366
viewsIs it possible to create classes with two constructors?
I am making a class of my connection to PHP Database using the API mysqli_ and I came across the fact that I couldn’t put two builders in the same class. The idea is to use the previously defined…
-
6
votes1
answer1438
viewsHow to make an image "loose" inside a div
I need to leave a "loose" image inside a div on my mobile site. A div has fixed dimensions but the image is much larger, so it would have to be something similar to iframe, however, without scroll…
-
6
votes3
answers3133
viewsView Form with animation (gif) while a while runs
In the application I am developing I need to check if a process is running on the system, for this I use a function (Isrunningprocess). However, I would like to display a form (Formprogress) which…
-
6
votes2
answers12692
viewsFind out if item is in array
How do I check if an item is in a array? Ex: var Tabela : Array of String; begin Tabela[0] := 'Valor'; Tabela[1] := 'Value'; if Tabela[0] = 'Valor' then // do wathever; That would be the normal way,…
-
6
votes2
answers1419
viewsAlternatives for VBA development in Office
At work I have a large code base written in VBA (approximately 13 active projects), both for Access or Excel applications. I’ve been trying to refactor some things, but several factors are making my…
-
6
votes3
answers2635
viewsHow to put my ASP.NET site online
I’m trying to put my ASP.NET application on the air, and I’ve never had contact with it, I need to turn my . CSHTML into . HTML? Or something like?
asp.net-mvcasked 10 years, 4 months ago Danilo Oliveira 603 -
6
votes2
answers40159
viewsHow to break the line at the Visualg prompt?
My way out: Name: So-and-so: so many years How to break the line on prompt of the Visualg? To look like this: Name: So-and-so Age: So Many Years…
-
6
votes1
answer3596
viewsInterpret the Mysql Explain command
I have a query that is taking 6/8 seconds to execute. The database I’m using is Mysql. In Phpmyadmin I did the following: EXPLAIN SELECT id_categoria, sc.categoria, categoria_principal, associada…
-
6
votes1
answer4622
viewsSQL increasing ID by 1000 units
I have a database in SQL Express with a reasonable amount of data for over a year. Everything always worked well, but now is presenting the following problem: certain times the ID in some tables…
-
6
votes1
answer178
viewsWhy does the group_concat of primary keys (integers) generate a BLOB as a result?
Trying to answer this issue (as the AP even presented, without resorting to normalization) I tried to use the group_concat it returns me the object of type BLOB. Table: CREATE TABLE `teste` ( `id`…
-
6
votes3
answers183
viewsEcho returning wrong value
I don’t understand one thing in this case: $arr_4[] = "$arr_3[$i]<sup>$arr_22[$i]-$contador+$eletrons</sup>"; Come on, the $arr_3[$i] stores a string of value "3d", the $arr_22[$i] = int…
-
6
votes2
answers23564
viewsIs it possible to run a Javascript function in PHP?
I want to run a function of JavaScript without "submitting" it, or when the screen is accessed the php will call the function JavaScript and run what’s in it and then continue the normal code. It’s…
-
6
votes1
answer340
viewsWhat’s the difference between serialized and non-sserialized objects?
I know an object is serialized when its class implements the interface java.io. but I would like to know what it means that the object is serialized and what difference there is with another not…
javaasked 10 years, 4 months ago Heidy Miguel 121 -
6
votes2
answers1364
viewsProblem with very large URL
I am trying to pass a URL by GET and the server is returning error 404 by the URL being too large (I am passing an XML through the URL). I have already tried to add the Maxfieldlength variables with…
-
6
votes2
answers1551
viewsSort words with accents in PHP
I am trying to alphabetically sort an array in PHP, where the key of each array position is a word. I’m using the function ksort. Sorting works, the problem is that accented words such as "acid" are…
-
6
votes1
answer736
viewsWhat are the practical differences in C and C++ code portability?
I have been reading some open-source C code lately and have noticed that many of them become quite complex and with enough #ifdef in order to make the code as portable as possible between different…
-
6
votes1
answer631
viewsC# Mobile Development Need Mac?
I was researching tools for mobile development (iOS, Android) and came across Xamarin. I found the proposal interesting, especially for working together with Visual Studio. I downloaded and…
-
6
votes2
answers189
viewsAdd JNI Library Compilation with Maven or ant tasks
I am creating a Java project with native methods (JNI) without having to create three separate projects for it. My goal is to compile everything I need all at once. I use only one DLL/OS in this…
-
6
votes2
answers14324
viewsCheck whether the string is null or empty
How do I check if my variable is empty or null? // Inserção Nome = tf_Nome.getText().toString(); Tipo = tf_Tipo.getText().toString(); Estoque = Integer.valueOf(tf_Estoque.getText().toString());…
-
6
votes1
answer206
viewsSort table by contained value
I want to sort such a table by a value contained in it. Ex: tabela = { {pessoa="Joao", idade=20}, {pessoa="Pedro", idade=22}, {pessoa="Lucas", idade=19}, {pessoa="Derp", idade=25} } I want to sort…
-
6
votes1
answer2821
viewsHow to limit the number of pages shown in a pagination?
With this question that already has solution, I got as a result a paginação com PDO but I have one more problem that will possibly be the subject of a reward next week. As you can see in the image…
-
6
votes2
answers640
viewsHow to print the SQL statement that is being sent to the database?
I would like to know how to printout an SQL for the purpose of controlling the statement being sent to the database: $sql = $pdo->query("SELECT * FROM imovel WEHRE CATEGORIA = 'APARTAMENTO'");…
-
6
votes1
answer1063
viewsHow do I make a checkbox table (Access Level Table) responsive?
I don’t know if anyone has ever come across this type of structure. But here’s the thing, I need to leave this image table below responsive. Has anyone seen anything, knows how, or has any idea how…
-
6
votes3
answers212
viewsWhat is the reason for this IF/ELSE assignment?
Because in this code the value 0 is assigned to the IF and the value 1 is assigned to the ELSE? <?php $flipCount = 0; do { $flip = rand(0,1); $flipCount++; if ($flip){ echo "<div…
-
6
votes3
answers261
viewsMathematical combinatorics
I have a list of ex numbers: [1, 2, 3, 4] and I need to know all possible combinations of that list reminding me that the list may contain n elements, someone has some code or could help me? For…
-
6
votes2
answers1160
viewsHow to access JSON values from ajax in a PHP page?
I passed via ajax those values: $.ajax({ url: '/loterias/cadastro.php', type: "POST", data: "{'numeros': '" + numeros + "', 'jogo':'" + jogo + "'}", dataType: 'application/json; charset=utf-8',…
-
6
votes3
answers1158
views'NT ANONYMOUS LOGON AUTHORITY' failure in SQL Server 2012 on remote server
I have a legal application running on my local server. I made some changes to it and prepared to publish an approval environment for testing. How we are migrating local banks and servers to a new…
-
6
votes2
answers5551
viewsGenerate random CPF in C#
I need a generic class to generate valid CPF to send value to fields with the webdriver Selenium. Someone has the code? Thank you.
-
6
votes1
answer95
viewsOperation of file handling functions
I know the syntax, the logic of the function. I would like to know how it works in the background. Example, I gave the function fopen(), fclose(), fwrite(), What am I actually doing? Would it be…
-
6
votes2
answers1478
viewsEntitymanager with JTA multiple connections
I’m having a bit of an unusual problem, but I’m looking for a solution. I have a scenario where I have several databases (postgresql) allocated in several clients, all databases have the same…
-
6
votes2
answers441
viewsHow to make a "rbind" in tables of an SQL base from R?
I would like to "merge" two tables of a Sqlite "database" from the R -- and save it to a new table within the same database. Below, I send a minimum reproducible code:…
-
6
votes1
answer7135
viewsHow to call the Arrays.Sort (array, new methodoOrd()) method in Java?
Knowing that I have a class with an array of objects and another class that implements the interface Comparator. I would like any example just so I can learn and sort an array of objects by their…
-
6
votes3
answers407
viewsHow to implement the standard presented in C# with Entityframework?
I’m thinking of a way to apply the pattern (multi-tenant), raised in that question (Standard that has contributed to the reliability of software that needs to meet complex models such as…
-
6
votes2
answers429
viewsHow to filter a list asynchronously using LINQ?
Example of code without the use of async: var products = db.Products.Where(_ => _.UserId == currentUserId); How do I make this asynchronous query taking into account that the Where of Linq does…
-
6
votes2
answers157
viewsUsing a security framework or fingernail?
I have had this doubt for some time and to this day I am not so firm in a position, despite having taken a. Whenever I develop, or participate in the development of an application (WEB), we usually…
-
6
votes2
answers1061
viewsHow to send data from a php filter with multiple search fields
I am creating a filter page, but this page will have many fields for the user to fill, select and this will make a search in the bank mysql and will return the data to the user on another page. One…
-
6
votes2
answers240
viewsSearch returns equal data
I’m making a search system where there are some fields (conditions) to search and find the results. These fields are not mandatory, if the person type something he will find by the data entered, if…
-
6
votes1
answer296
viewsDifferences between traits and namespace for loading
Using namespace the file is uploaded at the time when some method is used say, If you do not invoke anything from class the file will not be loaded. use World; class Hello { World::say() } Using…
-
6
votes2
answers280
viewsPass two parameters to a function that accepts only one parameter
I’ve been making a code to generate a pdf from the framework Itext in Java. I came across the following situation, I needed to define a phrase as negrito and sublinhado. After searching Google, I…
-
6
votes2
answers1047
viewsApplication separate authentication server
I have a client who will develop two applications of your company, ie two services offered by your company, and plans for other projects, and mobile versions of the same. Well, for reasons of…
software-architectureasked 10 years, 5 months ago Thiago Moreira 140 -
6
votes1
answer754
views$. getJSON does not record return on variables
I created a function that takes the values of a JSON and (should send these values to variables within the function) so I could use these variables in the function continuation. The problem is that…
-
6
votes2
answers1472
viewsDiscontinuation of the <center> tag
I know it seems like a lot, maybe it’s really a lot of lack of knowledge, but I’ve done some research and I haven’t found anything that would actually convince me. Does anyone have any, or knows why…
-
6
votes1
answer344
viewsStandard that has contributed to the reliability of software that needs to meet complex models such as multi-business models
Taking as an example a software that needs to meet a multicompany model, I would like to know from you if there are any standards adopted to deal with this type of situation? Describing the…
pattern-designasked 10 years, 5 months ago user8052 -
6
votes1
answer2137
viewsHow to optimize this query query with other sub-consultations?
I have a query query that is taking too long to run (almost 2min) and need to optimize it: select Cidade.Id as CidadeId, Cidade.Nome as CidadeNome, Cargo.Descricao as CargoDescricao, '{0}' as Grupo,…
-
6
votes3
answers1195
viewsEntity Framework many relationship x many extra field
Good morning, I’m studying the Entity Framework Code First and I’m wondering how I should create an Nxn model with extra information in the relationship table. For example: Let’s assume the…
-
6
votes3
answers780
viewsIs it feasible to change databases in an existing system?
I’m starting a project in ASP.NET MVC 5 with Entity Framework for a customer, where the customer has chosen to use a free database, in this case the Mysql. However, with the growth of the…
mysql asp.net-mvc entity-framework software-architectureasked 10 years, 5 months ago Erico Souza 2,188