Most voted questions
150,413 questions
Sort by count of
-
7
votes1
answer489
viewsCompare COUNT from two tables
I have two tables and I must return the total of the table with more data, I am doing so: SELECT CASE WHEN ((select count(*) as `familiar` from tb.familiar)) > ((select count(*) as `personal`…
-
7
votes2
answers961
viewsTransactionscopeoption what is the difference between the options?
I was doing some research on the options for Transactionscope and found the following settings: Required A transaction is required for scope. If it already exists, it uses an environment…
-
7
votes2
answers808
viewsHow to save program settings, database or configuration file?
In my application, the admin user, can make some settings, for example: Configure if you want to use specific product templates, or stay open for the end user to type. Configure if you want to use…
-
7
votes2
answers151
viewsHow to remove Progressbar margins?
I added a ProgressBar simple to a LinearLayout, however I noticed that it generates a margin above and another below, such as this in the image: These two white tracks, I tried to remove anyway, the…
-
7
votes1
answer304
viewsIs it correct, following object orientation, to use pointers to C++ functions?
I am creating classes that represent items in a menu, each item performs an action and I am assigning the action by a function pointer to each instantiated menu item, is this valid by following POO?…
-
7
votes1
answer4956
viewsHow do I open the android camera and take the photo and upload the photo to the server?
I have a problem in the application it opens the camera but does not upload hold can see where I am missing follows the code public class MainActivity extends Activity{ //chamar quando a atividade é…
-
7
votes2
answers2134
viewsWhich loop is faster for or foreach in C#?
I’ve read articles from some programming languages that loop for is faster than the foreach, and wanted to know if C# has performance differences?
-
7
votes5
answers4473
viewsIn the ORDER BY of a SELECT change a comma for a period
I have a table in MYSQL (can be seen here http://sqlfiddle.com/#! 9/187ce/1 ), where the price is with commas and not points: 2.00 2,33 11.00 When I’m going to give an order by: ORDER BY preco ASC…
-
7
votes1
answer129
viewsHow to map an image attribute by Fluent API?
I would like to know how to map an attribute of the type image of SqlServer by the Fluent API. In my bank I have the following table: CREATE TABLE [dbo].[ProdutoFotoERP]( [ProdutoFotoID] [int] NOT…
-
7
votes2
answers2239
viewsEnable and Disable Save Button
I am developing a Revenue/Expenditure launch system and it works according to what I initially need. Lawsuits. Revenue Launch, add the Revenue value to the account table. Example: Opening account…
-
7
votes2
answers1189
viewsWhat is an output parameter?
Consider the following example: appendFooter(s); Analyzing the function signature, we have the following: public void appendFooter(StringBuffer report) The parameter s is considered in the above…
-
7
votes1
answer131
viewsSearch in two Mysql tables
Is it possible to "select" by merging two tables in Mysql? for example: I have a table called "favorite" that saves the id_da_postagem and the id_do_usuario. the idea would be to go through the…
-
7
votes1
answer224
viewsButtons with different appearance at design and runtime
Has anyone ever had the above problem? At development time the button design is normal. However, after compiling and running the application, they look like buttons from the time of Windows98.…
-
7
votes1
answer79
viewsWhy can’t a Trait implement an interface?
Why a Trait cannot implement an interface in PHP?
-
7
votes3
answers190
viewsConsole, Windows Forms or MVC what’s the fastest for heavy loads?
I’m developing a program that will basically have the following cycle: Database query(some milliseconds) For each record will perform the following process: Início | Parse de um XML web (alguns…
-
7
votes3
answers23806
viewsSize of a String
A char in the C language occupies 1 byte in memory. Ex: char ch;//a variável ch esta ocupando 1 byte na memória And a vector of char best known for string, its size in bytes will be counted…
-
7
votes1
answer5161
viewsHow do I send push/php notifications with the site window closed?
From time to time (I think 2014 onwards), facebook has been making browser notifications using the HTML5 Notifications API. The curious thing is that facebook can send notifications, even though…
-
7
votes1
answer219
viewsStart structure pointer with an address?
I wonder if it is possible to start this structure type pointer with an address, without needing to point to another variable, or allocate memory. typedef struct{ char nome[20]; int idade; }pessoa;…
-
7
votes2
answers355
viewsHow to use Windows Forms components in a WPF application?
Is there any way to use Windows Forms components in WPF? For example, I need to use control Chart or the MaskedTextBox from Windows Forms, which does not exist in WPF applications, as I could use it…
-
7
votes2
answers1132
viewsSelect too slow, how to improve?
I have a chart of artisans with about 90,000 records. I created the SQL below to return me the total of artisans in each of the regions that they are registered. Although it works, it is slow,…
-
7
votes2
answers498
viewsFill a textbox with combobox element
I have a combobox connected to a textbox by a function. It works like this: while the person type something in the textbox, a kind of 'filter' is automatically performed in the combobox, which shows…
-
7
votes2
answers566
viewsInsert into multiple input fields in different tables
I have the date fields, CNPJ, latitude, longitude, site, facebook, on the same screen, only are 3 different tables, how do I give the insert in them from the same button?? What do I use to save the…
-
7
votes1
answer861
viewsFill char matrix with random words
I’m trying to develop an algorithm that can get an array of strings, sort by word size downwards, and put them into a char matrix by fitting all the words together if possible. The idea of…
-
7
votes3
answers1666
viewsIonic is suitable for what types of applications?
The Ionic Framework is indicated for what types of applications? I’ve been doing some research on the plugins of Cordova, seems to give much problem in cross platform development, some plugins do…
-
7
votes1
answer765
viewsWhat are the advantages and disadvantages of using Baas
Yesterday I attended a lecture where I was presenting some things about BaaS(Backend as a Service). After that some doubts arose: Following this model the need to create a back-end for complete is…
-
7
votes1
answer647
viewsChange facet_wrap order in ggplot2
See the code below, which generates the graph that comes soon after: library(lme4) library(ggplot2) ggplot(sleepstudy, aes(x=Days, y=Reaction)) + geom_point() + geom_smooth(method = "lm", se=FALSE,…
-
7
votes1
answer146
viewsCan Observer be considered encapsulation break?
Observer use of abstraction and interfaces. Let’s assume that a Observer "assists" the state changes of certain classe and informs them to another external agent, we may consider this a…
-
7
votes2
answers6860
viewsHow to number the alphabet and add its letters getting a result for each written word?
Wanted to get the result of words with their letters summed... Example: a=1 b=2 c=3 if I type the word "bac" the result would be "6". Because you added up the three letters a+b+c=6. I tried that…
javaasked 8 years, 1 month ago Rafaelzinho 85 -
7
votes2
answers1318
viewspython: compare list containing multiple lists with a different list only
I’m solving an issue where I have to do a program that corrects tests. The program receives a feedback and answers from "n" students and compares with the feedback provided. The answers of all…
pythonasked 8 years, 1 month ago Junio Calú 75 -
7
votes1
answer1263
viewsApp.config how to use`Connectionstring` encrypted
In my app.config I have a section that for my String connecting: </configSections> <connectionStrings> <add name="Azure.Onee"…
c# winforms cryptography connectionstring app.configasked 8 years, 1 month ago Thomas Erich Pimentel 3,059 -
7
votes1
answer105
viewsIs there an alternative to multiple while loops?
I have a method alterar() that change the data of a particular element of my XML Person, however, this routine uses several whiles one for each element, see below the routine: public void alterar()…
-
7
votes3
answers525
viewsStandardization of "String Resources" nomenclature
To support internationalization, the Android has "features" files called resource in XML, containing the texts to be displayed in the application. By default, the file /res/values/strings.xml has…
-
7
votes1
answer478
viewsWhat is the security in using input "password" or "text"?
Recently we are on a wave to use the combination of input of passwords with the option to hide/display the password (*** -> abc), with the "eye" technique. I understand this purpose as it greatly…
-
7
votes4
answers1794
viewsNode replaces Nginx? Can someone explain this architecture to me?
I was reading a article about the "dawn" of Javascript companies. The "dawn" in the sense that things are just beginning. That is, according to the author, the future is Javascript, with Nodejs, and…
-
7
votes1
answer147
viewsIs there a magic method for calling an attribute as a method in php?
For example, we have the class: class foo { var $bar = 1; } I was wondering if you could run something if I called it that: $foo = new foo; $foo->bar();…
phpasked 8 years, 1 month ago Wallace Magalhães 1,242 -
7
votes2
answers215
viewsHow to determine if a number is infinite using Javascript?
There is the possibility to check if a certain value is a infinite number using Javascript?
javascriptasked 8 years, 1 month ago durtto 3,109 -
7
votes3
answers3385
viewsWhat are asynchronous processing and synchronous processing?
I’m having this doubt while I’m studying about the class Handler. In the book it says that when a Thread is being used to perform some asynchronous processing and need to update the graphical…
-
7
votes1
answer4730
viewsWhen to use the term "url" or "link"?
These days I started a "little debate" here in IT on this subject. I realized that several functions, where we returned the image path (to the browser), was named getImageLink. For example: public…
terminologyasked 8 years, 1 month ago Wallace Maxters 102,340 -
7
votes2
answers299
viewsCompared to Datetime class, is the date function more performative?
It is very common to read some tutorials or articles saying that programming Object Oriented can cost more (I speak in relation to memory). Since I started programming, there’s that little itch in…
-
7
votes1
answer825
viewsReturn duplicated values in arrays
My question is this? I have the following array: $array1 = array(10, 50, 80, 40, 90); $array2 = array(10, 30, 10, 40, 20); $array3 = array(10, 60, 15, 40, 30); $array4 = array(20, 30, 40, 10, 50);…
phpasked 8 years, 1 month ago Paulo Amaral 177 -
7
votes1
answer239
viewsProject Dependency Injection . Net Web API 2
I am involved in a project that is developing an application .Net Web API 2 Fw 4.51 (with a view to future migration to .Net Core, what is an 'aggravating'), Fluent NHibernate e PostgreSQL, and we…
.net asp.net-web-api dependency-injection asp.net-core iocasked 8 years, 2 months ago Carlos Felippe Vernizze 71 -
7
votes2
answers12161
viewsDifference between RIGHT JOIN and LEFT JOIN
I have a little knowledge in relationship tables, read the answers to the question about What is the difference between INNER JOIN and OUTER JOIN?, and understood, theoretically. LEFT JOIN Returns…
-
7
votes1
answer953
viewsHow to uninstall an app automatically before installing again?
I am using Android Studio to test and debug my application with the librarys, but the application is not overlapped properly, so I need that, before installing it, it be removed. I tested with the…
-
7
votes2
answers329
viewsHow to transform attributes into properties?
In C#, I can avoid using getter and setter, transforming the attributes into properties, as below: public class Pessoa { public int pes_idade { get; set; } public string pes_nome { get; set; } } You…
-
7
votes5
answers2439
viewsSubtract sums of fields in two separate tables
I need to add the value of a column in SQL, so it looks like this: SELECT SUM(qtdsaco) FROM armazem This code works. Now I need to add the value of the other table, here it is: SELECT SUM(qtdsaco)…
-
7
votes1
answer293
viewsHow do I prevent caching Ajax requests in IE 6?
I have the code below, to update a DIV on a page: var req; // FUNÇÃO BUSCA ROMANEIOS PARA EXIBIR NA TELA DE MENU. function buscarRomaneio() { // Verificando Browser if(window.XMLHttpRequest) { req =…
-
7
votes3
answers1514
viewsSearch between dates with between
I have the following research: SELECT * FROM (`agendamentos`) WHERE `age_data_agendado_para` BETWEEN "2016-08-28" and "2016-08-30" In the database, I have: But on my return, I can only search for…
sqlasked 8 years, 2 months ago Sr. André Baill 6,946 -
7
votes3
answers14487
viewsDivide a list into n sublists
I have the following list: l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] What I need is to divide this list into n sublists, in this case it is not possible to do it manually because the n…
-
7
votes1
answer791
viewsForm Validation with Jquery
I’m a beginner in jQuery and I’m having a hard time doing a form validation with jQuery to the CRM of a church that is next: I have a code HTML that is part of a CRM that I am developing. In this…
-
7
votes3
answers280
viewsLog tables should have Foreign Keys?
I had a case in my service these days when it was not possible to delete a record because it was referenced by the table of log. Logically what generated a call for the IT area to solve. But that…