Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer127
views -
5
votes1
answer934
viewsChanging properties of a component contained in a system module
I am modulating a system developed in Delphi XE3. One of my modules named Default has a dmDados with a connection. In my main application, onShow from my main form I am loading the module and trying…
-
5
votes1
answer2052
viewsUsing Hibernate to generate tables with H2
I’m developing an application in which I decided to use H2 as an embedded database. It is the first time that I am using this type of database and I am having problems to generate the tables by…
-
5
votes1
answer443
viewsPerformance comparison on Android: Canvas vs Opengl ES
Is there any comparative performance table, or some list with rules/guidelines, which tells me from which moment it pays to use Opengl ES on Android, instead of the Canvas + Activity pair configured…
-
5
votes1
answer6160
viewsCapture data from Facebook users
I am trying to collect with JAVASCRIPT/JQUERY some data from specific users that are not part of my friends list. I’d like to capture dice as: likes, friends, posts and groups. I did some tests and…
-
5
votes1
answer543
viewsWhen a DLL goes up in the "bin" folder all users lose session
Every time I upload a DLL from my site, I take down all users who need to session to remain logged in the administration. I was using the build that turns everything into . dll and . Compiled but…
-
5
votes3
answers9393
viewsSet CSS according to browser
I found a command to change CSS in Firefox: @-moz-document url-prefix() { body { background: #f00; } } This command will put a red background only in firefox, for example. I found it very useful,…
-
5
votes1
answer276
viewsHow to integrate a select into a table?
I have a table. In Plano 1, I used the jQuery Heapbox plugin, but since I’m not good with Javascript, I didn’t know how to set it up, I would like the select heapbox in Plano 1 to have the same…
-
5
votes2
answers2320
viewsTwo buttons to perform the same function?
I would like that when clicking on two separate buttons they perform the same function by changing only one value. In the code below I can execute the function by clicking on the first button, but…
javascriptasked 10 years, 6 months ago Vitor Molina 343 -
5
votes3
answers2753
viewsCreate and read DLL in php?
It would be possible to create and open windows DLL libraries in php? I want to organize my php classes into dll so that they can be used in both php and C#, if there is an alternative also serves.…
-
5
votes1
answer1179
viewsAndroid app closes as soon as it loads (Noclassdeffounderror)
I installed the Android SDK all right, installed the USB drivers of my Motorola Moto G. It’s all right, so when I run the application directly from Eclipse, it finds my device connected. USB…
-
5
votes1
answer270
viewsMotivation for OWIN
These days I read about OWIN on the MSDN website but I still can’t find a good motivation for it. What I read is that OWIN is a way to uncouple the server application so we can swap the server if…
-
5
votes1
answer7721
viewsHow to change the language of Microsoft SQL Server Management Studio?
The image file . ISO of Microsoft SQL Server 2014 Enterprise available for download through Microsoft Dreamspark exists only in version en. Could you change only the language of the Management…
-
5
votes1
answer1123
viewsWhy is this Bootstrap Tabs configuration not working?
The code is as follows:: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Site</title> <link href="css/bootstrap.css" rel="stylesheet" type="text/css">…
-
5
votes1
answer547
viewsIs it possible to create a foreign key from another database?
I want to reference a foreign key from a different bank, saw on some forums that it is only necessary to do `nome_database`.`nome_tabela`, but it’s not working. My code is this:: ALTER TABLE…
-
5
votes3
answers19465
viewsConvert string to MYSQL integer
What command can I use to convert string to integer in mysql? for example: I am making the following list of tables: SELECT mov . * , prod.produto, prod.unidade, prod.icms, prod.ipi, prod.codigo…
-
5
votes1
answer387
viewsHow to send/encapsulate a file in a . apk to use in the app installation?
I have a file . xls that would like to encapsulate next to apk so that when installing the app it uses that file to popular a database. How to do?
-
5
votes1
answer668
viewsDetecting Volume Keystrokes Pressing on Android
I found a palliative solution, which keeps monitoring the change in the volume of the system itself. When the volume decreases, for example, from 10 to 9, the program resets the volume back to 10…
-
5
votes2
answers1644
viewsHow to store files in the browser cache
I tried a Google tool to test the speed of my site. http://developers.google.com/speed/pagespeed/insights/ I was shown several points that need to be corrected, such as "Take advantage of browser…
-
5
votes3
answers5013
viewsSubtraction of multiple selects
I am learning about SQL and I have a certain problem to do certain calculations. I would like to subtract the values of selects below. I have tried to do the SUM ( A - B - C), but without success.…
-
5
votes1
answer1029
viewsSave automatically generated excel in ASP MVC application
I am generating Excel files in my application using Epplus. Now there is a need to automatically store these files in a folder, regardless of whether the user downloads them or not, in order to make…
-
5
votes2
answers2300
viewsEnable/ Disable Tab as checkbox status
I have 3 checkbox (Customer, Supplier and Integrator), each of them when enabled should give access to a tab, I can even make it disable and enable, the problem is that if more than one checkbox is…
-
5
votes1
answer1117
viewsI cannot enter data into the sqlite using javascript
I’m creating a smartphone app using Cordova for a college project. The App consists of a simple patient registration. I’m having trouble recording data in the database. Initially the recording was…
-
5
votes3
answers6757
viewsHow do I round up a value from 39.54 to 39
How to round the value from within a class in the case 39,54 % OFF for 39 % OFF, values are generated by the system?
javascriptasked 10 years, 6 months ago lucas inverso 143 -
5
votes1
answer3020
viewsWhat is the best way to create methods accessible to any Ctivity?
Hello. When I need to create a method for an Activity I simply write it in my Activity code. For example: package com.pcriot.maxsoft.testapplication; import android.os.Bundle; import…
-
5
votes1
answer445
viewsHow to apply/search for global/local transformations in Opengl
I am programming a simple Game Engine using the graphical API Opengl. But I have a problem that I can’t solve. The problem is that the transformations in world (world) do not work properly. The…
-
5
votes1
answer1506
viewsDisable keyboard in some fields
I need to make the letter f only work in text fields, in other places it does not work, example: $(document).keyup(function(e) { if (e.keyCode == 37) { return false; } });…
-
5
votes1
answer452
viewsKnow the most repetitive code in a data structure (list)
I’m doing a project in Java of data structures and I have a list simply chained that gets the code, name, sex and course of each person. I only need to validate which code (whole type) repeats the…
-
5
votes2
answers5665
viewsCheck duplicate values in the array
My question is this:: I have the following array: $array = array(10, 30, 10, 40, 40); I would like to know if there is a simple way to display the message: "there are duplicate values" or "there are…
-
5
votes1
answer610
viewsHow to encode an array of bytes (string) in another database in order to represent the result with the characters of A-Z and 0-9 in Delphi?
I need to reduce the size of a string, but keep it in a predetermined character range. Use an encryption routine that the result returned by it is a hexadecimal character set, par a par,…
-
5
votes2
answers350
viewsFetchtype.EAGER for Fetchtype.LAZY
I have the following problem, the whole system uses a relation, Eager, but for a specific query I do not want to bring all relations in the bank, because it would be too heavy the process, only for…
-
5
votes1
answer166
viewsProblems with mouseenter() and mouseleave()
When I hover the mouse on the first link with the show_post class it displays the correct div it has to display, but when I hover the mouse on the second link the script opens the 2 Divs and not…
-
5
votes2
answers296
viewsWhat’s the difference between downcase and downcase!
I’m starting with Ruby and came across the following code: user_input = gets.chomp user_input.donwcase! My question is why I use the exclamation mark after the downcase.…
rubyasked 10 years, 6 months ago filipelinhares 2,417 -
5
votes1
answer1157
viewsIn a checkbox list, know which ones are checked
In my application I am printing a list of data coming database, and in each item of the list I am placing a checkbox, as shown in the following picture: Now by clicking "Start copy" I want to select…
-
5
votes1
answer915
viewsDifficulties with binarySearch Class Arrays method
I created two arrays one of integers and the other of Strings(objects), but when I used the binarySearch method to know the position of the elements, the return of the positions of the Strings array…
-
5
votes2
answers4938
viewsPoint function in calculator (broken numbers)
I created a calculator with Swing and awt.Event, and I have three doubts ! First doubt: to create the calculator I used import with import.javax.swing. * and java.awt.Event. *, when I use *, am I…
javaasked 10 years, 6 months ago Gabriel Ozzy 545 -
5
votes3
answers266
viewsWPF - Datagrid - Exclusion
How can I get the index of a selected item on my Datagrid in WPF? I know in WEB Forms I can get it like this: MainGrid.Rows[e.RowIndex].Cells[0].Text
-
5
votes2
answers692
viewsjQuery - Switching background-image of an element
I have a figure element with a series of images inside: <figure class="MiniModImgSlider"> <img src="img01.jpg" alt="img01"> <img src="img02.jpg" alt="img02"> <img…
-
5
votes4
answers4168
viewsConvert string to Time
I got a column in the database that gets a guy varchar which corresponds the hours on my app ("HH:MM"). I need to convert this string to a type TIME and then concatenate with a type DateTime.…
-
5
votes2
answers5830
viewsHow to make the printing of pages go out the way it is seen on the screen?
I need to make a page that, when the user prints, come out exactly as it is seen on the screen (with the styles), I’m using Bootstrap version 3.1. Is there any plugin in Javascript that does this?…
-
5
votes1
answer158
viewsUse of Spring Security
Guys I’m using the spring security in a project, I was informed that I should take the jdbc driver and put it in the Omcat lib folder for the whole spring process to work properly, because it would…
-
5
votes1
answer125
viewsHow to show correct name on an Enum bitwise?
I have this one marked as [Flag], ie, are values in bit [Flags] public enum Position { None, Left, Right, Both=3 } Setei to Both(both) position in 3 why if it is Left and Right at the same time, it…
-
5
votes1
answer125
viewsHow not to display past date records
I made a schedule and I need events that have already passed not appear anymore, dates are with 3 fields DAY/MONTH/YEAR, I am using the Concat and date to join and format the dates, so this is the…
-
5
votes2
answers2818
viewsBlock javascript and sql-Injection attack on the same string
I am receiving data from a form in php via get. I’m handling the information as follows: $search = mysql_real_escape_string(htmlspecialchars($_GET["t"], ENT_QUOTES, 'UTF-8')); With this I intend to…
-
5
votes1
answer822
viewsQuery slows down with ORDER BY
I have a problem, I have a query and when I use the ORDER BY she gets too slow. Note: I created an Index for the premium field and another for the score Follow the full query: SELECT p.id AS…
-
5
votes3
answers1796
viewsQuery in an SQL string in C#
I’m doing a query in the database via string sql.append, in the method call I have two parameters, two strings these receive one textbox typed by the user and check in the database. How do I…
-
5
votes4
answers8606
viewspopup open only 1 time after being closed, even after reloading page
I wonder how to create one of those popup that usually appear in large portals (not in flash), but with div and javascript pure, which after being closed, the script detect this and it will no…
-
5
votes5
answers36671
viewsHow to get the total character size of an SQL column?
I want to take the total size of characters that a column supports, example INT supports 10 characters. I tried to use DATALENGTH that does not return the number of characters, but the amount of…
-
5
votes3
answers2818
viewsCheck Mysql Connection Existence in PHP
I had this question recently, how to check if there is an open connection with mysql? Everyone knows that to use the mysql_real_escape_string need to have a connection right, so I wanted to check if…
-
5
votes2
answers18687
viewsHow to add values of a field grouped by date?
SELECT funcionario_id, data, avaliacao_postura FROM equipe id funcionario_id data avaliacao_postura 1 1 2014-03-02 -25;-10;-5;-12 2 1 2014-03-01 -25;-10;-18 3 1 2014-03-02 -25;-15;-14 I need to make…