Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers2931
viewsAzure Collection, in Real or Dollar?
I searched the entire Azure site and found several divergent information about the currency used in the collection. On the calculator it says: Important: the real price (R$) is just a reference.…
windows-azureasked 9 years, 7 months ago Alexandre 159 -
4
votes1
answer178
viewsDelay in the first call WCF service
I am developing an application using WCF to distribute, everything is working smoothly, but there is a strange thing, whenever I use the service the first time it takes a lot,(almost a minute for a…
-
4
votes1
answer78
viewsMove Image Browser
I’m moving an image with mouse(mouse). When I use Chrome it works perfectly. But when I use the Firefox browser, moving the image shows the ban icon on the mouse, and moving it is different. How can…
-
4
votes2
answers151
viewsHow 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.
-
4
votes2
answers3087
viewsAccent problem, running at Windows Prompt
I am creating software in Python, I’m having trouble accentuating the strings. The program is simple.. It asks a question to the user (name, version, description, etc.) and adds the answers to those…
-
4
votes1
answer1098
viewsSearch in Datagridview populated by typing on it
I own a DataGridView already with recovered data where user selects an item. But, as the items are numerous, I would like to enable the user to type on the Datagrid while the system "goes" to the…
c#asked 9 years, 7 months ago Cassio Milanelo 791 -
4
votes1
answer413
viewsHow to know if an intersection contains another intersection?
If I and J are two sets formed by intersections, how to know if I contains J, knowing that: I = i1 i2 ... in J = j1 j2 ... jn nor I nor J are empty, therefore nox or jx the saint I know the answer…
logicasked 9 years, 7 months ago Miguel Angelo 28,526 -
4
votes1
answer4082
viewsRemove Mysql root after creating another user with all privileges
In this tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-mysql-and-mariadb-databases-in-a-linux-vps After creating a new user with the privileges I need, they recommend that…
mysqlasked 9 years, 7 months ago Gustavo Piucco 2,401 -
4
votes2
answers2271
viewsTake printscreen on Android by API
I have a app and one of the functions would be to printscreen screen. How to do this?
-
4
votes1
answer222
viewsHow to generate a random number within a range?
Using the mercy of arc4random_uniform(), how should I set the logic to generate a Random within a certain range? For example, given the range [5, 10] Candidates for Andom: 5, 6, 7, 8, 9, 10…
-
4
votes1
answer1415
viewsSecure authentication with REST in PHP
I’m having doubts about how to work with restful system authentication. My case will be user/password and permissions/hierarchies for the user, and until then as most interesting solution found in…
-
4
votes1
answer92
viewsGrouping function miscalculating
I’m trying to write a python function that takes two vectors, eliminates duplicates in the first and adds the corresponding data in the second. Kind of trying to emulate the following Mysql query:…
-
4
votes3
answers4615
viewsTicket to view in Codeigniter
I am finding some problems to pass the result of a query present in the model, to the view in Codeigniter. What would be the best way to do that? My query : $query = $this->db->query("SELECT *…
-
4
votes1
answer4972
viewsPrint data from a dynamically allocated two-dimensional matrix
I would like to know how I print the information collected in Cria_matriz using the function Prints. This is the code I have done so far: #include <stdio.h> #include <stdlib.h> float…
casked 9 years, 7 months ago Bernardo Kowacic 567 -
4
votes1
answer283
viewsColorbox responsive
I’m using Colorbox in a project and need to make it responsive. I was able to change the size of all Divs with Media Queries in CSS, but div #colorbox does not change the size! This causes the page…
-
4
votes1
answer130
viewsHow to resolve the conflict between Angularjs and Django?
What is the most efficient way to solve the conflict problem between Django and Angularjs when using {{ }} in the templates?
-
4
votes3
answers3047
viewsUnfulfilled Nfe XML
Well, I’m trying to do the reading for import of XMLs of the Electronic Tax Notes and I’m having a lot of difficulty in disemboweling the ICMS of the blessed. No problems to reach the object ICMS:…
-
4
votes2
answers10690
viewsDisplay a Loader while processing ajax
It can show a message like: "Loading..." while my ajax does the operation? AJAX $.ajax({ url: url, type: 'GET', dataType: 'json', success: function(data) { console.log("sucesso"); }, error:…
-
4
votes2
answers878
viewsSelect with null Postgresql field
I have the following select SELECT u FROM User u WHERE lower(u.fullname) || lower(u.username) || lower(u.email)) LIKE %:pesquisa% It turns out I want to do the search for any of the 3 existing…
postgresqlasked 9 years, 7 months ago Fernando 227 -
4
votes1
answer75
viewsWhen should I create a Constraint like DEFERRED?
As far as I know, creating a Constraint (like a foreign key or a check) like DEFERRED makes it only validated at the end of the transaction. What is this used for? And when it should not be used?…
-
4
votes1
answer1208
viewsHow to print a View to a standard printer using Javascript or c#?
I need to print the contents of a view on the default printer. How can I do this using c# or javascript?
-
4
votes1
answer61
viewsWhy can’t I access a field but the method can?
I have the following code in C#: namespace ConsoleApplication4 { public class BaseClass { public BaseClass() { System.Console.WriteLine("BaseClass::BaseClass();"); } } public class DerivedClass :…
-
4
votes2
answers5149
viewsCreate a Alertdialog with an Edittext of type "number" - Android
Guys, I have a problem with my alert: In it I have an Edittext, only I can’t declare Edittext with type numbers(android:inputType="number"). Any idea? Follow the code of the Alert: public void…
-
4
votes1
answer3805
viewsGet table row values
I need to get the values of each row of my table. My table has no fixed number of rows or columns. I only desire the values of inputs (within the td). Desired inputs have class quantidadeDigitada…
jqueryasked 9 years, 7 months ago Rafael Barbosa 2,855 -
4
votes4
answers18313
viewsChange point per comma to input value
I have a page with several inputs all type text and with different names and different Ids. In all of them there is the numerical value with point separating the decimals (10.00) and would like to…
-
4
votes2
answers220
viewsAlternative to create a new method in a String object?
I have the following situation: I have a txt file of defined positions (type CSV, CNAB, etc) to process and extract values. For the purposes of understanding, follow the code I made and it’s working…
-
4
votes2
answers1326
viewsBarcode reading on a single screen
My friends and I are developing an application in which in one of the functions the smartphone should scan the barcode of a product and search for it in a database (ours). As this can be done for…
-
4
votes1
answer1843
viewsHow to add string numbers
Well I have a string like a=("1234") and I wanted to separate these numbers in order to add them, like this: 1+2+3+4 How can I do that? I appreciate any help :)
python-2.7asked 9 years, 7 months ago CSAnimor 731 -
4
votes3
answers10027
viewsHow to show values stored in JSON in Javascript
Has a variable in a file JSON which is called "valore" and it is assigning the values:2.51,2.56,2.87,2.89 and 2.94. The string of this JSON is being displayed in a DIV. How do I show only these…
-
4
votes1
answer495
viewsWebbrowser with input type file
Friends, I am building a virtual robot to act on a particular site. In a given action I need to upload a file to the site, but when the robot clicks on the button <input type="file"> logically…
-
4
votes1
answer430
viewsHow do you find the term X in the Fibonacci sequence?
I have to do a C# program that gets a number X which will be the term of the sequence and print it on the screen.
-
4
votes1
answer934
viewsHow to add button in Maps?
I selected a Google Maps Activity when creating the project, as I added this button in the layout? <Button android:id="@+id/btn_draw_State" android:layout_width="40dp"…
-
4
votes2
answers152
viewsPermutations and files
I’m working on a game that involves permutations, to create a list of words, in several separate files. Problems start to arise when I require words with more than 4 letters, as the corresponding…
-
4
votes2
answers1303
viewsPicking up content within a string
I’ll have a list of string in the following format: PERSON’S NAME( (LOGIN), an example would be this: ZACKSON MOREIRA MORGAN (zackson.morgan) Soon, I would need to get just what would be inside the…
-
4
votes2
answers1267
viewsSize of an Arraylist
In Java... What is the initial size of a ArrayList? Reaching the maximum size, when it "expands", its size is doubled?
-
4
votes1
answer734
viewsRegex take more than one occurrence in a string
I have my regex (\d{2}). And I got my string 12 hoje vai 45 na serra pelada 55 ou 75. How do I get my regex to pick up all occurrences of the string? It’s only picking up the last one.…
-
4
votes2
answers137
viewsWhat JSF DTD to use with HTML5 tags
Usually, when I do a JSF page with XHTML, I use the DTD for XHTML 1.0 Transitional. However, if I use namespace and put some HTML5 tags (passtrough Elements/Attributes), which DTD should I use?…
-
4
votes1
answer96
viewsProblem with Regular Expression
preg_match('<[ \w"=]+name="xhpc_composerid"[ \w="]+>',$exec,$result1); echo $result1[0]; //input type="hidden" autocomplete="off" name="xhpc_composerid" value="u_0_1k"…
-
4
votes1
answer907
viewsWhat is the best way to fragment a Django project into apps?
I’m doing a study project to apply what I’ve learned so far with Django. My question is: what is the best way to segment the project in apps? If you want to give an example so that something…
-
4
votes2
answers386
viewsError while trying to run a class
This is my first post here on the stack, I’m having a hard time running this class in Netbeans. I’m using version 1.8.0_40 of Java, I’ve tried searching for some solution, but I can’t find. public…
-
4
votes1
answer1541
viewsSend array by GET
I’m sending by GET one array in Javascript to another page through a button calling the function. The problem is that sending is in string and not in array. I want to pass this array for the Lua…
-
4
votes2
answers2571
viewsHow to improve clientdataset query performance with many records?
When I am searching for all the clients table record, which are many, from a remote database and displaying on a Dbgrid, this process takes a lot of time. How do I improve the performance of…
-
4
votes2
answers260
viewsDoubt about pointers
This code creates matrix, initializes and prints, as well as adding, subtracting and multiplying matrices: typedef struct{ int nl; int nc; int **elementos; }MATRIZ; void criar_matriz (int, int,…
-
4
votes1
answer1180
viewsAlternative to converting Word to HTML
I maintain a site that does not have CMS and often receive requests from the customer asking to put a text with a predetermined formatting. Usually these texts come in . doc or . docx format from MS…
-
4
votes1
answer369
viewsCharacter Camera does not move!
I’m doing a tutorial on Unity that I downloaded in the Asset Store on the following link https://www.assetstore.unity3d.com/en/#! /content/21028 I tried to make my character rotate to look towards…
-
4
votes2
answers2205
viewsSend javascript object to php
I have the following class in php: class Corretor { private $id; private $nome; private $registro; private $email; private $senha; function __construct() {} /* Getters e Setters*/ } And in my html…
-
4
votes2
answers105
viewsWrong date calculation
I have the following method: TimeSpan dt = dataFinal.Subtract(dataInicial); double anos = Math.Floor(dt.Days / 365.25); double meses = Math.Floor(((dt.Days - anos * 365.25) / 30)); return…
-
4
votes2
answers106
viewsVariable scope problem in each method
I’m having problems with assigning a variable within a each in jQuery. (function(){ var filters = $(".filter_check:checked"); var hiddenFields = ''; $.each(filters, function(){ hiddenFields +=…
-
4
votes4
answers174
viewsIs it possible to use PHP in a data-title field?
It is possible to use PHP within a field data-title? I have the following code: <div id="grid" class="m-row shuffle--container shuffle--fluid"> <? $result = $connection -> query("SELECT…
-
4
votes0
answers71
viewsSend image with ajax
I am trying to receive a PHP image sent through AJAX, but I was not successful. Follow the code: jQuery: $("#envmsg").submit(function() { $("#btn-enviarmsg").button("loading");…