Most voted questions
150,413 questions
Sort by count of
-
6
votes6
answers2305
viewsTransform results combination function into a dynamic function
I have a function that generates all possible combinations of numbers from 1 to 10. The combinations are 4 numbers, that is, each combination has 4 different numbers. Ex: [1,2,3,4], [1,2,3,5],…
-
6
votes4
answers817
viewsSQL Condition Array - PHP
good afternoon, I am sending a search filter to my BD, and I want to make these conditions within an array, for example: $condicoes = array(); $nome = $_GET['nome']; if (!empty($nome)) { $condicoes…
-
6
votes2
answers3966
viewsHow to send checkbox data to a mysql query?
I don’t know how to start this whole process of sending multiple data for a query in the database. I always send an item from each guys but I never sent several items of the same guy. The image…
-
6
votes2
answers1442
viewsIs it possible to get some value from the browser that identifies the user’s machine?
Problem I am searching for some way to identify and validate workstations, and would like to get some value from the machine that is not changeable, such as the IP that can change. I tried to get…
-
6
votes1
answer1006
viewsPOST and GET on SSL
On a site, protected with SSL, are POST and GET also encrypted? The fact that GET is part of the address, even so it is encrypted?
-
6
votes1
answer347
viewsinterpretation of quicksort
I learned Haskell, and now I’m starting to learn C. I’ve been trying to pass my quicksort code in Haskell to C but I haven’t succeeded. So I decided to look at some books and found the following…
-
6
votes3
answers2122
viewsIs it possible to create a Javascript database?
How to create a simple database without using a server? I believe the answer would be no, but check the following: I’m at work and I don’t have access to the databases or even the servers. This way…
-
6
votes1
answer5859
viewsWindows Service - ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I have 2 projects (Webforms and Windows Services) in . Netframework 4 that connects to Oracle base via Obdcconnection. In the Web project I can successfully open the connection... But in Windows…
-
6
votes2
answers532
viewsHow to use CSS style in application?
I created a app for Android using the App Framework from Intel and built with Phonegap. He has the visual style of framework, but when I run it on Android device, it uses the native appearance, that…
-
6
votes2
answers1334
viewsHow to automatically scroll to the top when viewing the page footer?
I’m making a site, which has some animations, and when arriving at the bottom of the site for the first time, should trigger an event where the page goes back to the top, but in the following times…
-
6
votes1
answer1941
viewsChange the . NET 4.5 project to 4.5.2, how to do it?
I installed . NET 4.5.2 on the machine, restarted Windows 7 and, after opening the project, went to Debug > Projeto.Properties > Application and tried to change the version by combo Target…
-
6
votes1
answer99
viewsIs there any way to Feature Detection for CSS?
I know the technique of Feature Detection ("functionality discovery") - as well as Feature inference - when it comes to Javascript: if ( window.XMLHttpRequest ) { ... } But can you do this for CSS…
-
6
votes2
answers1682
viewsHow to make a "JOIN" in two Colections in Mongodb?
I know Mongodb doesn’t have Ner Join, but I really need to filter the data from a Collection by reference to its _id in another Collection. I need to display only the projects of a particular user.…
-
6
votes1
answer850
viewsHow to "call" a function from a Lua table in C++
I’m trying to "call" a function of a table written in Lua. The problem is that I’m not managing to pass three arguments to this function. When I pass the arguments, it’s as if the Lua skip the first…
-
6
votes3
answers6532
viewsHow to detect click on Chrome Back/Next/Reload buttons
How do I detect when the user clicks on the Back/Forward/Reload buttons of Google Chrome? I already made a scheme to make a check before the user exit the page through the elements of the page…
-
6
votes1
answer1924
viewsMessage "Could not reserve enough space for Object heap" in JVM
So I wanted to know the limitation for memory allocation to the JVM depending on the operating system and processor architecture. If, as you set it, you lower the maximum value of the perm-size to a…
-
6
votes1
answer381
viewsJava program that comes with JRE
I want to create a program in Java, but that the person does not need to have Java installed on their computer. Can I put an JRE next to my program with only the necessary classes? An example is: I…
javaasked 10 years, 6 months ago Igor Costa Melo 729 -
6
votes1
answer1320
viewsrbind error: "Error in match.Names(clabs, Names(xi))"
I’m trying to build a function that counts the number of complete cases in files. csv (data frames), ie the number of lines with values (and not "NA"). The function I wrote can read the file(s)…
-
6
votes2
answers83
viewsResponsibilities of the View
Throughout the internet, I find posts warning about the responsibility of View that should only take care of its name and display the content. Although MVC is based on exactly the distribution of…
-
6
votes1
answer271
viewsIntegration with GIT
I wonder if Git provides an integration API, like I’m developing a C# application and would like to know if there’s any way to get the files from the latter Commit. I took a look at the GIT website,…
-
6
votes3
answers7963
viewsMaking an OCR with no dependencies in PHP
I have a project where people schedule phrases for Tumblr. Today it works from the Kindle and I’m already seeing the Kobo files. But today I come to ask for help for the third part: I would like to…
-
6
votes1
answer5010
viewsHow do Bematech printer cut the print in half?
I am implementing a report in Report Builder in Delphi and I need that in the middle of printing, the printer (Bematech - MP 4200 TH non fiscal printer) make a cut and continue in the same print.…
-
6
votes1
answer55
viewsMethod resolution
in the example below public static void foo(Integer i) { System.out.println("foo(Integer)"); } public static void foo(short i) { System.out.println("foo(short)"); } public static void foo(long i) {…
-
6
votes1
answer344
viewsData Alignment, Data Structure Padding and C
Can anyone explain to me how processing/compiling does padding? I don’t understand why the structure structc_t has a size of 24, shouldn’t it be 16 equal to structd_t? Note: Data on 64-bit Intel…
-
6
votes1
answer7712
viewsHow to use Angular UI Router? and what are the advantages?
How to use Angular UI Router? and what are the advantages ? What are the long-term advantages of using it and not the standard of Angularjs?
-
6
votes2
answers30147
viewsJoptionpane, for example?
Well, Joptionpane needs all these complements: JOptionPane.showOptionDialog(parentComponent, message, title, optionType, messageType, icon, options, initialValue); Could you give an example of all…
-
6
votes1
answer4491
viewsMake URL open in the same Activity
I’m creating a WebView for Android. When I load the App, the imported page works perfectly, but when I click on some link page, that same link opens in another browser. I wonder how I can make all…
-
6
votes3
answers456
viewsWhy does IDLE not finish running the program automatically?
I think it’s more of a curiosity. Unlike other IDE’s, IDLE keeps the program "open" even after the end of its run, while in other IDE’s I need to put something like 'input()' at the end so the…
-
6
votes2
answers14096
viewsHow to display echo quotes in PHP?
I am developing an application that uses PHP + AJAX and I came across an annoying problem. AJAX only recognizes the function if it is like this: onclick="remover_musica_ftp('0','Deposito de bebida'…
-
6
votes2
answers381
viewsCreate new matrix from a fairly large first efficiently
Guys, in R, I have a very large database and want to create new columns. I will try to explain my problem with a very small matrix. Next, "1" means private school and "2", publishes. I have for…
-
6
votes1
answer234
viewsHow to use a Lua variable in C++?
I can’t get value from a Lua matrix to use in C++. So I take the value of the variable M: //No LUA M = 85 //No C++ L = lua_open(); luaL_loadfile(L, "teste.lua"); lua_pcall(L, 0, 0, 0); int m;…
-
6
votes5
answers45121
viewsHow to use a PHP variable in javascript?
You can declare a variable in PHP and then use it in Javascript? Example: <? var w_qtd_v = 0; ?> <script language="javascript"> w_qtd_v = w_qtd_v + 1; </script>…
-
6
votes3
answers502
viewsINSERT query does not work inside a loop
So guys, I’m not getting to solve this query problem within a foreach loop not run. At first I thought it was something wrong with Pdo->beginTransaction so I commented on that part and left only…
-
6
votes2
answers605
viewsWhat better way to organize and work with ASP.NET MVC routes?
What better way to organize and work with ASP.NET MVC routes? While we have 1, 2 routes, it’s quiet, but when do we have 500 ? 600 ? In an enterprise application there are many routes, which is the…
-
6
votes2
answers642
viewsNfe - private and public key reading applet
I need to develop a system to issue an electronic invoice. My big problem is that this system needs to meet the A3 certificate (card) and as far as I’ve been reading with php it is not yet possible…
-
6
votes8
answers27292
viewsPHP does not send accents to Mysql database
Good afternoon, you guys! I installed the OCOMON 2.0-RC6 Help-Desk (Call Opening) system and am having the following problem: PHP looks for the accented words of the database and displays them…
-
6
votes2
answers1104
viewsWhat is the best way to upload files with Ajax?
I could take a code on the Internet paste here and try an answer but I prefer that help me with the logic and programming of a script to upload images in Ajax. I don’t know how to start, I’m a…
-
6
votes1
answer1441
viewsExecution flow of a Try/catch/Finally block
How the execution flow works in a block try/catch/finally in the example below? public class ExceptionTest { public static void makeException() throws ExceptionAlpha, ExceptionBeta, ExceptionGamma {…
-
6
votes1
answer1796
viewsExceptions in Java
I am studying about exceptions in Java and would like to understand better. When declaring an object, if the programmer predicts that a failure may occur in the execution of the method, he will…
-
6
votes2
answers1410
viewsFile upload does not work on Locaweb hosting
Locally I can upload the file and save quietly in a folder using the following code Controller: public ActionResult CriarProduto(FormCollection form, HttpPostedFileBase file) { Produto produto = new…
-
6
votes2
answers6101
viewsIs there an audio transcription Api that can be used in PHP, C library or Java?
I’m looking for an api that you can get when you receive the audio, try to recognize the text. Does anyone know any opensource api for this? The opposite (receiving a text and generating an audio…
-
6
votes1
answer1877
viewsProblem reading file . xlsx too big in Java
I am working in a web application using Java, where I have a method that should read a file .xlsx, using the apache-poi: public static void xlsx(String arquivo) throws IOException{ try {…
javaasked 10 years, 7 months ago Erico Souza 2,188 -
6
votes1
answer162
viewsCode-golf - the description is the program
It will be accepted at most a include (or Resources file etc) that is native to the language (which is probably what will make all the interesting part) and the description of the problem shall be…
language-independentasked 10 years, 7 months ago DeMarco 518 -
6
votes1
answer10227
viewsFont size, px or pt?
I receive the layout in PSD, export as I need. And I do font-face when necessary. The Photoshop I have, shows the measurement of the sources in pt, I always applied px in CSS. I was reading that,…
cssasked 10 years, 7 months ago Felipe Viero Goulart 3,693 -
6
votes2
answers2346
viewsCode indentation spacing standardization
Used Sublime Text for the front-end, I already had to open some old codes and I had problem with indentation. I saw that it was only to modify the tab size. I wonder if there is a Tab Size standard…
htmlasked 10 years, 7 months ago Felipe Viero Goulart 3,693 -
6
votes2
answers396
viewsLicensing of Indie Games
I can sell games made in Blender without worrying about licenses?
-
6
votes1
answer1314
viewsSoftware for obfuscating APK
I do not know this question is valid to raise here according to the policies of questions but if it is not I will remove it, a short search on the internet found several tools including sites that…
-
6
votes4
answers1593
viewsChanging connectionStrings from the app.config physically in Runtime
In my app.config I have the following lines of code: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <connectionStrings>…
-
6
votes2
answers735
viewsHow to call a method when clicking a notification?
I wanted to know how to call a method by clicking on a notification, I don’t want it to call a Activity, but only a method that has within the same class. Example: public void gerarNotificacao(){…
-
6
votes3
answers2834
viewsRun action after 2 minutes without moving the mouse
How to create a function in jQuery redirect the visitor to a page after the visitor does not move the mouse for 2 minutes or more? Example: The user is on the page php products. and if the user is…