Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers7297
viewsHow to duplicate a MYSQL database?
Is there any way to duplicate a database on MYSQL by the execution of any query? I can copy a table with this code: CREATE TABLE table_2 AS SELECT * FROM table_1 But how to copy replicate a…
-
4
votes2
answers43
viewsWhat’s the best way to post this echo?
What’s the best way to post this echo? I know there’s a quote missing, I just don’t know where to put it. <?php echo '<a href="page.php"><em>' <?php echo…
-
4
votes1
answer54
viewsFunction for file upload
I’m trying to create a function that takes 1 value from a input do tipo texto and 1 file. I was able to move the file to the folder but I’m not able to develop SQL to insert the file name in the…
-
4
votes3
answers3759
viewsUsing Token method GET Webapi Httpclient
My problem is this: I am consuming a Webapi with the method PostAsJsonAsync In this call I am receiving a Token for authentication in the ADMIN methods of an EAD platform that we are working on. So…
-
4
votes1
answer281
viewsSQL Server Full-Text-Search
I am developing a search using the full text search of SQL Server 2008. The search is working correctly, but the need to include a feature appeared. When you search for "Joes", the message "you…
sql-serverasked 9 years, 2 months ago Tiago 1,224 -
4
votes1
answer74
viewsJS function does not perform calculation
I created a form that is added to the page through a button. I used JS to create the form to be added. The problem is that I have two fields one of value and the other of hours, to account for the…
-
4
votes1
answer225
viewsProblem with slidebox and ng-repeat in Ionic framework
I’m trying to create the slidebox of the Ionic framework with data returned from the database and the slide is not appearing on the screen. I’ve looked for the solution to this in many places but…
-
4
votes2
answers189
viewsWhat is the inverse of :Visible in jQuery?
The Selector :visible jQuery is used to search for an element when it is visible. Example: $(this).find('li:visible').addClass('color-red'); However, when trying to search for invisible elements, we…
-
4
votes1
answer376
viewsHow to ignore the accents in Listview on Android?
I was making an app for me kind of joking around and I came across a problem, the ListView Android Studio does not ignore the accents of Portuguese. Could someone post a code to fix this? Like do…
-
4
votes1
answer145
viewsSharepoint with MVC 5 what better way to work?
My question is which form of Hosting should I use? Provider-Hosted Autohosted Sharepoint-Hosted Application will stay on the server to be consumed by internal users and to external users. Our team…
-
4
votes2
answers1103
viewsJavascript - Pick up object id from a list generated with PHP and HTML
How do I get the object id of a list by sending as a parameter to a javascript function. How do I put the id in the send function()? <?php foreach ($contatos as $contato) { ?> <!-- Inicio…
-
4
votes2
answers2064
viewsCalculate logged in time - PHP
Does anyone know how I can calculate the total amount of time a user is logged in to my site? Whereas you need to pause the time count when closing the browser.
-
4
votes2
answers161
viewsHow to turn a hash into a color
How to turn a hash into a random color.. Notice that I used the expression "hash" only to say that a cluster of letters/numbers can be transformed into colors, like this:…
-
4
votes1
answer3427
viewsStatement const at the end of function in C++ and const before argument in method
I came across this piece of code in a material: class Foo { public: int Bar(int arg1) const //<-- qual função do const aqui? { // código a ser implementado aqui } }; [1] Like the const affects…
-
4
votes1
answer306
viewsError while installing User
I am trying to install the User on my localhost, but when I arrived at the step of putting the database, user and password I had to check the Skip base URL option (I am using virtual host). the page…
-
4
votes1
answer291
viewsHow to list variables within a table in Lua?
For example: minion = { hp = 1000, x = 10, y = 25 } Is there a function I can know how many variables there are within this table?
-
4
votes1
answer609
viewsInstall SQL Server with the application
I am finishing an application and will compile using Inno Setup. The system is using SQL Server. I’ll install the system on other computers. The database is installed on the computers that will…
-
4
votes1
answer488
viewsDifferent numbers become equal after conversion with doubleval
I have 2 values 4850.00 and 4850.01 When I set 2 variables manually with these values and compare using if, returns me different (OK). But in an ERP system I develop I receive 2 values via AJAX.…
-
4
votes2
answers1697
viewsDatatimepicker display time only
I am developing an application for the reception of my work in C#. As I am still crawling in the language, I need your help. The schedule will contain the following fields: Requester Name;…
c#asked 9 years, 3 months ago user24136 -
4
votes1
answer317
viewsHow to make Regex to a "serial" number format?
How to make Regexp of the following format: 2015.1.123.5432 Does anyone have any idea?
-
4
votes4
answers228
viewsRead XML documentation generated by Visual Studio
How can I read the XML documentation generated by Visual Studio in any way that is formatted?
-
4
votes1
answer404
viewsCount in Ireport
I have a report where I have the column Status, in this column I have the following status: Finalized and Pending. I created a variable and added it to the band Sumary and configured the following…
-
4
votes3
answers521
viewsWhere should I put FK?
I’m learning about the database when a question came up. For example, I have two tables: user (_iduser, nome, sexo, ect.._) login (_idlogin, login, senha_)) Have relationship 1:1. My question is…
-
4
votes1
answer2336
viewsHow to redirect via . htaccess?
I’d like to redirect 15 to 20 urls static from one site to another url, type: http://meusite.com.br/home1.html for http://novosite.com.br http://meusite.com.br/home2.html for http://novosite.com.br…
htaccessasked 9 years, 3 months ago Marcos Vinicius 7,188 -
4
votes1
answer57
viewsMultithreading problems with C#
Guys, I’m having a problem doing multithreading on a system with Kinect that I’m developing for my research project. I understood that this happens because I’m trying to access from a Thread B a…
-
4
votes2
answers825
viewsAlgorithm to return the point of intersection
I need to return the relative positions between two straight lines, at this point in the program I’m sure they are competitors. My method performs the following equation to avoid the use of linear…
-
4
votes1
answer198
viewsArray no . ini How to do?
Hello folks I would like to know if to the possibility of array in . ini Using php to call it ?
-
4
votes1
answer4336
viewsException when it will generate bank bill with Boleto.Net
I have a system that generates Santander billets using a specific DLL that was downloaded from the internet. The name is "Boleto.net". I need to create a Bradesco ticket. I changed where I passed…
-
4
votes4
answers243
viewsScript making many improper requests
I am in the following dilemma, which may be simple for many here, but as a beginner, I am going through a great difficulty in a system that I am supporting... By clicking a button, a script which…
-
4
votes2
answers493
viewsAdding and removing elements in an array
I have the following structure: var elementos = ["teste1","teste2","teste3","teste4","teste5","teste6","teste7","teste8","teste9","teste10","teste11","teste12"]; var elementosPossui = []; function…
-
4
votes1
answer343
viewsHow to get the value before MAX in SQL?
How can I get the value before the MAX in SQL? I tried to MAX -1 but it did not work, because the values of the column I want to select the value before the MAX are not in ascending order.…
sqlasked 9 years, 3 months ago Amanda Lima 3,428 -
4
votes1
answer488
viewsHow to make my own commands and shortcuts in Eclipse?
What I mean by my question is that, for example, when I use sysout and Ctrl+Space the method line System.out.println(); is ready for me to use, reducing my time to type everything. I wonder if you…
-
4
votes1
answer362
viewsStructure for PHP project and use of the Eval() function
I need to develop an application that fits several projects with common functionalities, however each has several specific rules. What I need is a structure that allows me to easily change these…
-
4
votes2
answers1837
viewsGroup column sum by quarter
I would like to group the sum of one column per quarter, that is every three months. I have the following query which groups from month to month: select month(data) as mes, year(data) as ano,…
-
4
votes3
answers239
viewsjquery function does not work with routeprovider Angularjs
I’m making a web application with Angularjs and I did this routeprovider for single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", {…
-
4
votes1
answer1949
viewsHow to split a string`and then convert to int?
I have a string "1 2 3 4 5" to divide it and save the numbers in separate variables I was reading and saw that have to use a method called Split... I tried to do it, but I couldn’t. How do I do…
javaasked 9 years, 3 months ago pedrocarboni 117 -
4
votes1
answer502
viewsLoading external "pages" via AJAX. Will Google index?
Some talking to use #!, others say to use History API and others say that the Google already runs Javascript. I’m doing a project whose pages are loaded into a container leading. All link is an…
-
4
votes1
answer210
viewsTable relationship - EF
Good Afternoon! I have the "Service Order" and "Attachment" tables. In my "Service Order" table, I want to be able to attach the scanned service order and be able to attach pictures of the…
-
4
votes2
answers1229
viewsImprove code performance in C#
I’m doing some tests with some C# codes and during an analysis I realized that some high-peak problems happen when integer value conversions occur to string, in the vast majority the conversion…
-
4
votes2
answers17227
viewsUnable to load file or Assembly 'Webgrease, Version=1.3.0.0, Culture=neutral
I am just opening a new project based on MVC 5, framework 4.0, c#, and after opening the project for the first time and compiling, error occurs Não foi possível carregar arquivo ou assembly…
-
4
votes1
answer3333
viewsError while consuming Web API
Hello, in an ASP.NET MVC web project I am trying to consume an API that is a Web API project, the two applications are running on the same server. When I access the MVC application error occurs when…
-
4
votes1
answer81
viewsController and action routes in lower case
How to make the routes of controllers and actions are all in lower case? For example: instead of Noticias/Details stick around noticias/details.…
-
4
votes2
answers715
viewsAdd the 5 highest values to an array
I have the following method: public static void topFiveSales(int idEmpresa) { List < Entidade > allList = Entidade.findByEmpresa(idEmpresa); float totalVendasByEntidade; Float[] totais = new…
-
4
votes1
answer201
viewsBinary search on a list with no fixed size
There is a reliable algorithm capable of performing a binary search on a list where one cannot consider the size (length or count) of the list? I know that one of the requirements for a binary…
algorithmasked 9 years, 3 months ago Marco Antonio 151 -
4
votes1
answer311
viewsI cannot boot Tomcat in Netbeans
When I started Tomcat in Netbeans IDE it gave the following error: Using CATALINA_BASE: "C:\Users\chrissian\Desktop\Todo sobre o JAVA\Tomcat\apache-tomcat-7.0.63" Using CATALINA_HOME:…
-
4
votes0
answers890
viewsFill CPF + Data field with java webdriver Selenium mask
I’m having trouble filling in Date and CPF fields with mascara via id or xpth in Selenium+java+Junit. Does anyone have any idea how to do?. NOTE: I don’t want to generate CPF...I want to fill out…
-
4
votes2
answers363
viewsError in Javascript code
I have a code snippet that searches a Json for the field called campo, and inserts it into an array, which cannot have repeated values. My array always returned Undefined and it took me a while to…
-
4
votes1
answer552
viewsHow to use a custom Adapter on android Listfragment
Hello folks I’m having problems with using a Adapter customized and display this Adapter in a Listfragment. My Custom Adapter public class UsuariosAdapter extends BaseAdapter { Context ctx; List…
java android listview android-fragment android-adapterasked 9 years, 3 months ago ThiagoDeveloper 55 -
4
votes1
answer216
viewsTranscribe SELECT to LINQ query expression
How can I reproduce the query then to LINQ expression? SELECT nome_empresa, Count(funcionarios.id_funcionario) AS qtdfuncionario, Count(id_colaborador) AS qtdcolaboradores FROM empresas JOIN…
-
4
votes3
answers6632
viewsHow do I know if an object is a javascript array (without jquery)?
I wonder how I can identify which object is or is not one array in Javascript. I know that in jQuery there is the function $.isArray. But I’d like to learn how to do it without the jQuery. I tried…