Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers3795
viewsHow do I run a video inside Jframe?
I want to open a screen and contain a player to run the video that is attached to the project!
-
6
votes1
answer505
viewsHow to increase the text size of a Webview?
My app reads RSS feeds. but what bothers me is the letter that is small, I want to leave a little bigger that is visually "right" in a standard way. It’s like this: But I want to make it bigger to…
-
6
votes3
answers1923
viewsUpdate values after dropdown change
I know almost nothing about Javascript but I managed to use Chosen to change my selects. What I’m not getting is to use the Trigger that the site indicates to update the field. I want each time you…
-
6
votes1
answer156
views -
6
votes1
answer2947
viewsHow to get the position of a given element in a list through a specific attr?
I have a UL with some items. For example <ul class='ordemQuestoes'> <li idquestao="28" >Questao 28</li> <li idquestao="2" >Questao 2</li> <li idquestao="17"…
-
6
votes1
answer3845
viewsSlow datatables
I have a database of 5,985 records. I am using dataTables, but it takes a long time to load. It is possible to improve this load? See my code: <div class="row"> <div class="col-xs-12">…
-
6
votes1
answer240
viewsPostgres Decode and convert_from error
Has anyone been through the Postgres issue to error the Code Base64? I have the following call that informs [Err] ERROR: end of sequence is invalid convert_from(decode('YnJhc2lsc2VtbGVp', 'base64'),…
postgresqlasked 10 years, 3 months ago Jorge Kania 192 -
6
votes1
answer895
viewsDuplicate records with Onetomany relationship
I have a map as follows: public class ClasseA { public ClasseA(){ listaClasseB = new ArrayList<ClasseB>; } @OneToMany(mappedBy = "xxxx", fetch = FetchType.LAZY, cascade = CascadeType.ALL,…
-
6
votes1
answer130
viewsIs it possible to add personal sites to the google maps v3 autocomplete?
I wanted to use the search of Google addresses but also wanted to introduce some personal areas. In the div which is generated by google I can add the fields I want, but I can’t create a function in…
-
6
votes2
answers3589
viewsEntity Framework 6 does not create database
I created a c# WEB MVC5 project in visual studio 2013, installed Entity framework 6 and created my classes("entities") as well as Dbcontext with the respective Dbsets. Inside the WEB.Config I set up…
asp.net-mvc-5 entity-framework entity-framework-6 ormasked 10 years, 3 months ago Cleiton Ribeiro 757 -
6
votes2
answers112
viewsCheck which processes are connected to the internet
It is possible to check which processes are connected to the internet and what is their destination?
-
6
votes3
answers1890
viewsQuery two tables in Mysql
My situation is as follows: I have several tables that have some common information, such as UNIT. In one of these tables I have all my units and I need to check if this same UNIT also exists in…
-
6
votes2
answers1446
viewsRemove String Connectors with Regular Expression
How could I remove connectors: "e", "do", "da", "do", "das", "de", "di", "du". From a sentence without changing the whole name. Example the name: Daniela de Andrade. I wanted to remove only "from",…
-
6
votes1
answer106
viewsGrab link posted on Facebook
Does anyone know how to get the link that was posted on Facebook via callback? I want to know which link was generated when the user made the sharing, so I can validate and even see if he actually…
facebookasked 10 years, 3 months ago Jorge Kania 192 -
6
votes1
answer1707
viewsHow to Label Distributions in ggplot
I have the following graph of the exponential distribution, I want to put a caption showing which parameter of my exponential. ggplot(data.frame(x=c(0,5)),aes(x))+…
-
6
votes1
answer1995
viewsHow to generate Mega-Sena results ignoring some numbers?
I want to generate some games for Mega-Sena using Javascript, so I can ignore a list of numbers and indicate the total number of games to be generated. Knowing that each game will have 6 numbers,…
javascriptasked 10 years, 3 months ago Paulo 9,980 -
6
votes2
answers959
viewsHow to compare the value of a Hashmap<key, value> with a variable?
I have a HashMap aluno<Integer, Float>, where the key Integer will be the student’s registration number, and the amount Float will be the student’s grade. I got the grade average using the…
-
6
votes1
answer12542
viewsTomcat startup problem
As a stopgap measure for this mistake, I installed XAMPP and placed it (Tomcat) as a container for Netbeans. But when I run a project in Netbeans, the following error appears in the Tomcat console…
-
6
votes2
answers9366
viewsHow to split an image into multiple parts with link?
I would like to know how to split an image that can have multiple parts so that I can define the number of parts, and assign a different link to each part. Bonus: If the parts can assume any…
-
6
votes2
answers71487
viewsApply opacity only in background
I have a div and text written inside her. .topoMenuSegmentos { width: 470px; height: 190px; background-color: #0a1737; display: block; margin-top: -2px; } I want to apply a opacity:0.8, what happens…
cssasked 10 years, 3 months ago Felipe Viero Goulart 3,693 -
6
votes1
answer1641
viewsHow to Save Colors in Database
I have a simple form, and a TYPE=color. These colors are passed in hexadecimal, but I cannot save in the bank. It gives the following error: Warning: pg_query(): Query failed: ERROR: Invalid input…
-
6
votes1
answer604
viewsRun Fullscreen program on Windows 7
Hello I have a project already finished, it was written in C language as I do so that it runs in fullscreen in windows 7? Do you have a library for this? I’ve been looking on the internet but I…
-
6
votes3
answers1111
viewsLoad template automatically
It is possible to program the codeIgniter to load the template automatically without specifying the views at each call in the controller? Example user controller public function listar() {…
-
6
votes1
answer564
viewsHow does a Dependency Injection Framework work? Are they useful in Ruby?
Java and C# people keep quoting frameworks Injection of Dependencies. I know the pattern of Dependency Injection projects, but never worked with such frameworks. In fact, I have no idea how they…
ruby software-architecture pattern-design dependency-injectionasked 10 years, 3 months ago RubyGuy 63 -
6
votes3
answers1429
viewsGenerate sequential number within one month
How to generate sequential numbers consisting of year, month, 5-digit sequence. where the digits are zero when changing the month? Example: 14 // ANO 11 // MÊS 00000 // SEQUÊNCIA QUE AO MUDAR O MÊS…
-
6
votes1
answer1330
viewsScroll DIV content without leaving the DIV
Hello, I have a problem, I would like my DIV of the right corner to follow the content of the left until the content of the left is finished, only if I put position Fixed in the DIV of the right it…
-
6
votes2
answers2325
viewsControl Serial Port using Web Application
I need to communicate my system with the computer serial port Client, the detail is that with PHP I can use the fopen, but I don’t want to access the server’s serial port, but the client’s. I…
phpasked 10 years, 3 months ago Pedro Soares 1,136 -
6
votes1
answer2499
viewsHow do you always get the last video from a Youtube channel?
I have a div <div class="player"></div> and inside it, I want the last video posted on a channel to always appear. I have this structure in jQuery, but I can’t get it to pull only 1.…
-
6
votes3
answers1337
viewsIn what order is a Set stored? Random?
When I store something inside a Set, the order in which it stores is random? And how could I order a set Set?
-
6
votes3
answers3470
viewsGROUP BY last entry
I’m making an appointment at the bank, follow my table below id | protocolo | status | alteracao | datahora 1 2 1 teste 2014-11-10 15:23:44 2 2 3 teste 2014-11-10 14:23:44 3 2 4 teste 2014-11-10…
-
6
votes1
answer2742
viewsWorking with Currency (decimal)
I’m working on a project where I had the need to use decimal for field Currency. As the American standard and different from the Brazilian soon had some difficulties. I found some examples of how to…
-
6
votes1
answer13726
viewsHow to Treat Variable Filled by NAN Javascript
I have a <input/> in HTML that when being filled in triggered some calculations to automatically fill in the others inputs, but if I don’t fill out the data this <input/> that triggers…
javascriptasked 10 years, 3 months ago Rafael Assmann 381 -
6
votes1
answer311
viewsWhat is a Reflection?
We’re creating a website on the computer history of the '70s to '90s, and at a certain point I found the paradigm reflective. Has this last something to do with reflection, that by the way what is?…
reflectionasked 10 years, 3 months ago user14079 -
6
votes3
answers1517
viewsWhat to do when I get a bad_alloc error?
Before the question in question let’s assume a scenario: I have some program written in GTK+; The program uses the Operator new to allocate resources; (not to be confused with the Operator new…
-
6
votes1
answer270
viewsNot generating the 1000 random numbers needed
I am developing a C program that randomly generates a thousand numbers and that in the end appears the largest and smallest among them. For this, I am using the rand(). But I have a problem. When I…
-
6
votes1
answer479
viewsPrivate Property / Protected JS / jQuery
Is it possible to make an object in js/jQuery where it is visible only using the method, for example get / set? An example of an object: if I give a console.log(pessoa.documeto), it will display the…
-
6
votes3
answers3037
viewsCalculate loading time of a page
I would like to measure the load time of a page using Javascript. How so? When someone accesses my page I want to start measuring load time. In case this load time exceeds, for example, 500 ms I…
javascriptasked 10 years, 3 months ago Edgar Muniz Berlinck 4,569 -
6
votes1
answer504
viewsCan the type of an operating system be microkernel + monolithic?
Based on what is said to be a monolithic system procedures and link in a large binary, where procedures can call others procedures. The microkernel aims to minimize the "service" made directly from…
operating-systemasked 10 years, 3 months ago Victor Martins 798 -
6
votes1
answer708
viewsconfigure "search Cancel" button position in input type=search in Safari 7
I have a input[type=search] with padding. How I want to have the same style in different browsers I used -webkit-appearance: none; but in Safari 7 (Vericks at least) the reset/reset button of the…
-
6
votes3
answers638
viewsIs it possible to make a POST from a file automatically?
I’m using the Cron to run a PHP script. I want to do a file upload load test for my server and Cron is in charge of this (the server then sends to Amazon). I was thinking of using the…
-
6
votes1
answer492
viewsProblem with mcrypt function*
I am using these two functions below to encrypt and decrypt a string. I left the example as clean as possible. Function for encryption $key = '123'; $iv = md5( md5( 'key' ) );…
-
6
votes1
answer34
viewsDoubt with Revealing Pattern
It is possible to do this with Revealing Pattern? the console always returns Undefined function FlashService() { return{ get: get }; var _abc = 'teste'; function get() { console.log(_abc); return…
javascriptasked 10 years, 4 months ago Marcelo Aymone 3,366 -
6
votes1
answer4038
viewsHow do I convert a . PFX certificate to . PEM?
I exported a file .pfx of my A3 certificate. How do I convert it to .pem. In VB.Net if possible.
-
6
votes1
answer967
viewsMonitor space in sqlserver datafile
Usually I don’t let the databases grow automatically up to the disk boundary. Therefore, I would like to know if colleagues have any Procedure so that I can monitor and be alerted of when the space…
sql-serverasked 10 years, 4 months ago Jean Braz 187 -
6
votes4
answers1206
viewsJava Class Scanner Loop Error
When using the nextLine() method instead of next() in the code below, code interactions are skipped and some fields are empty. import java.util.Scanner; public class turma { public static void main…
-
6
votes2
answers286
viewsReturn with all foreach lines
I have the following script: <?php $recursos_data = array( array( "id" => "0", "recurso_nome" => "madeira", "producao" => "%produz%", "estoque" => "200" ), array( "id" => "1",…
-
6
votes1
answer134
viewsWhat is the difference between variables declared as final and private?
What is the difference between these two types of variables and why can’t they be accessed in certain parts of the code? I read about private, public and abstract methods, but did not understand the…
-
6
votes2
answers760
viewsHow to list and monitor the apps that are installed and/or in use?
On an Android device, where many app’s are running, I would like to enable an interface where the user can see which app’s installed and which ones are running at the moment, being possible to…
androidasked 10 years, 4 months ago Pedro Rangel 2,747 -
6
votes1
answer114
viewsAccented letters returning invalid character
Well, I realized that in Lua, you can’t use accented letters. print("á") Returns an invalid character. Is there any way to avoid this?
luaasked 10 years, 4 months ago Gabriel Sales 1,257 -
6
votes1
answer699
viewsWhat tools are available for code coverage in . NET in Visual Studio?
I have developed systems using TDD in .NET. Recently, the company I work with, bought the version of Visual Studio 2013 Pro and, in this version we do not have the code coverage tool (code…