Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers106
viewsData window moving in time (t)
I want to make a recursive prediction. I need each month (t) to move the data window of the last month forward in a period (monthly period, that is, t+1).…
-
4
votes3
answers880
viewsInteger for String
In QT Creator 5, how do I convert Integer to string? In Visual Studio 2012 there was the command: std::to_string(10); But it doesn’t work on QT. I tried to: #include <QCoreApplication>…
-
4
votes1
answer243
viewsUse of bitmap font in Haxeflixel
I’m working on a game using the framework Haxeflixel 2D and I’m having some difficulties using bitmap fonts to render accented characters. But to make it easier I’m going to divide the question into…
-
4
votes2
answers261
viewsAffix on a dynamic sidebar
I have a Bootstrap layout with a right sidebar that accompanies the scroll, inside the div[role=main]. My layout: My code: <header class="container"> <div class="row"> <div…
-
4
votes2
answers125
viewsGive Alert after typing the word "pass"
How can I run an Alert after the user writes "stack". For example, stack (without being an input, just writing) it gives an Alert. I would have to use keypress and which to check the keys that are…
-
4
votes0
answers80
viewsView video with Javacv using applet
I’m using an applet that displays a security camera image through Javacv. Running alone, the applet displays the video perfectly. When I run the applet in my web application, it even renders the…
-
4
votes1
answer1518
viewsCompare two dates
I have two string containing dates dataSalva and dataDoDia and I’m wondering if the dataDoDia and 5 days longer than dataSalva how do I do this SimpleDateFormat dateFormat = new…
-
4
votes4
answers395
viewsHow to Debug only one project in Visual Studio?
I have six C# web projects inside a Solution in Visual Studio 2010, when running debug, Visual Studio launches the six projects at once, each of them in a different process. I wonder if there’s like…
-
4
votes1
answer1346
viewsHow to make scrollview scroll always visible
I have a horizontalScrollView and wanted to leave the scroll bar always the display. <HorizontalScrollView android:layout_width="fill_parent" android:layout_height="wrap_content"…
androidasked 9 years, 10 months ago Ilgner de Oliveira 1,098 -
4
votes4
answers9657
viewsHow to open a <div> by clicking on a <a> link?
I’m creating an element for a personal website, and I’d like that element "<div>" is open/closed when clicked on a button. Is a <div> containing some country flags to change language. I…
jqueryasked 9 years, 10 months ago Alexandre Lopes 2,769 -
4
votes4
answers453
viewsGet most used words from a string
I got a big string: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas porttitor non felis quis dignissim. Morbi varius arcu lorem, eget efficitur nibh interdum vitae. Aenean…
-
4
votes1
answer1179
viewsjQuery Datatables numerical column sorting containing hidden HTML
Making use of jQuery Datatables, we can indicate the type of ordering sought: $('#example').dataTable( { "aoColumnDefs": [ { "sType": "numeric", "aTargets": [ 0 ] } ] }); But if HTML is present,…
-
4
votes1
answer160
viewsShow message when filter does not find output
I’m using the excellent Isotope plugin to filter items from a page. Filtering occurs according to the classes used in li that are referenced in option. When selecting a filter, correctly referenced…
jqueryasked 9 years, 10 months ago Mauro Alves 546 -
4
votes1
answer3536
viewsHow to manipulate the position of a div
I need to manipulate the position of two <div> in opposite motions. I have researched many places but found no explanation of how such an effect can be done nor means of how to do it. I didn’t…
javascriptasked 9 years, 10 months ago João Pedro 227 -
4
votes2
answers5861
viewsChange the line color of an Edittext
I have a Layout simulating a PIN screen (type one lockscreen), where I have a EditText. I’m using the AppCompat v21 to be able to use the Material style elements. However, I want to set the…
-
4
votes1
answer892
viewsAjax request
I am loading the menu, from the system I am developing, through a request via ajax using jQuery, but the formatting of the menu is not as expected. My request via jQuery <script…
-
4
votes4
answers1177
viewsHow not to repeat terms on printf
I have another problem. My activity this time is to create and read the elements of two vectors, A and B, with 5 and 7 values, respectively. Then the program will show which elements are repeated.…
-
4
votes4
answers798
viewsFilter <td> with PHP
I have several <td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td> <td>Conteúdo</td>…
-
4
votes1
answer339
viewsHow to create button in Android Behind code?
I’m developing an app where I download some images from the internet when the app opens. I want, when I have these images downloaded, to create a button for each image and put it in the background.…
-
4
votes3
answers3898
viewsHow to 'break' a text at each character range - Javascript
I would like to know how to 'break' (split function) a text every 8 characters in javascript for example: var teste = '1234567898' teste.split({a cada 8 caracteres}) //retorna ['12345678', '898'];…
-
4
votes1
answer1711
viewsSave to the database the office hours and perform a query
Hello, I am looking for a North to create with PHP and Mysql a way to record in the database the hours of operation of several establishments, to be able to easily search and show if the…
-
4
votes1
answer566
viewsDemoiselle 2.4.0: Error running test with Junit
I have a project built from the archetype of Demoiselle for Maven. The generated application is the one that exemplifies the Demoiselle, containing a register of bookmarks. The programmer who…
-
4
votes1
answer785
viewsN-N relationship with additional fields (problems to persist data)
I have an N-N relationship that works as follows: Destination.java (N)-(N) Customerservice.java Within this relationship there is an entity that keeps the relationship Ids, which has some more…
-
4
votes1
answer60
viewsProblem with javascript open
I’m using the following code snippet: window.open('provas-final.php','height=320, width=320', 'gl'); to open the file "proofs-final.php" and in the command itself I am saying the width and height of…
javascriptasked 9 years, 10 months ago Matheus Luz 61 -
4
votes2
answers1654
viewsWhat’s the difference between top and margin-top in css?
This is a subject that always confuses me a lot. What is the real difference of both? When to use one and the other? I usually go for trial and error, but I need to understand how it really works.…
cssasked 9 years, 10 months ago Pedro Vinícius 1,870 -
4
votes1
answer287
viewsWorking with Canvas - No Edge
I have a canvas on my page and would like to remove the edge.... only I’m not getting... which property works with the edge? function desenhaBase(canvas, context, x1, y1, x2, y2){ context.fillStyle…
-
4
votes4
answers1081
viewshow to filter an ngRepeat loop according to the value of one of the contents of an array
Well, the content of a page on my site is generated from the following JSON template: [ { "company":{ "name":"Nome do Cliente", "url":"#" }, "client":{ "name":"Projeto", "url":"#" }, "tags":[…
-
4
votes2
answers2030
viewsAbort ajax request
I have a page where an ajax event grid is loaded. I also have on this screen a menu of actions. Once accessed, the page is loaded (including the action menu), and the events grid, being heavier is…
-
4
votes1
answer1165
viewsUsing Data Annotations to validate fields from an HTML page and Web API
Someone has an example of how to create a field validation in an HTML page using Data Annotation, Web API and C#. In MVC with you, this is easily achieved by using Wizard when creating a View.…
-
4
votes1
answer1914
viewsProcedure oracle to copy data between tables
I need to make a trial copy of my TAB_FORNECEDOR table, everything you have in it and pass to TAB_FORNECEDOR2 table. I know I need to make a loop cursor, a commit delete before everything, can give…
-
4
votes3
answers619
viewsRotation on certain screens
How do I define only one UIViewController be able to rotate? The scenario is as follows: I own 5 screens, and in all of them I must enable only the mode portrait. But I have a sixth screen, and this…
-
4
votes1
answer703
viewsValidate if one of the fields has been completed
I’m using the plugin Jquery Validation I need to know if at least one of the fields has been filled in Fields> Phone, Mobile Phone I tried to do so: $("#Telefone").rules("add", { required:…
-
4
votes2
answers314
viewsJasper Reports 5 to 6 Obsolete methods
I created some relays through the TIBCO Jaspersoft® Studio - Visual Designer for JasperReports and I am using the lib below in my project. <dependency>…
-
4
votes1
answer81
viewsCombo does not display state name
Hello. Through Bake, I created a form to include a Municipality. However, Bake when generating the form, displays the status id and not its name. How do I get the name and not the State ID to appear…
-
4
votes1
answer41
viewsIndex value not being recognized correctly
I have the following code jQuery: $('.dock-a').hide(); $('.dock').each(function(){ var DOCK = $(this); DOCK.click(function(){ var DOCK_largura = $(window).width(), DOCK_index = $(this).index(),…
-
4
votes1
answer333
viewsPerformance in Mysql Database Queries
What is the best option in terms of performance? I do select * from agenda, paciente where agenda.id_paciente = paciente.id_paciente and take the data together from the agenda and patient or do…
-
4
votes2
answers808
viewsHow to use Filter in Folderbrowserdialog
I would like to know how do I put a filter on certain files using c#. Good is more or less like this, I am making an application in c# that should open some types of files ( in the case .frm ), in…
-
4
votes1
answer55
viewsTranscription javascript calculations for PHP
How can I transcript this code in javascript for PHP ? var temp = "<div class='brick' style='width:{width}px;'><img src='i/photo/{index}.jpg' width='100%'></div>"; var w = 1, h =…
-
4
votes1
answer355
viewsI can’t hide the SCM Music Player on Tumblr
I’m trying to hide the SCM Music Player and expand the main container to 100% (because the player reduced it a bit at the bottom) on my Tumblr blog but my code doesn’t work. The Javascript code:…
-
4
votes3
answers19175
viewsHow to calculate the average of a column in R?
I have an Excel file in format .csv(comma separated values) and I want to read what is in a column, add and calculate its average. How to open the file I already know, but I don’t know how to add…
rasked 9 years, 10 months ago Van Ribeiro 1,482 -
4
votes1
answer1056
viewsTracking and posting system (social network type)
I’m developing a new project and I’m creating a profile following system where the goal is to show only the publications of those I follow. Such as a social network. I follow the person, so I get…
-
4
votes1
answer736
viewsNeural networks with the package "AMORE" - R
Dear colleagues, I am trying to use the AMORE package of R to run a Neural Network with new activation functions, but I could not understand very well the manual and consequently could not implement…
-
4
votes1
answer1107
viewsHow to handle Ajax requests with business error?
I searched the Internet and I still haven’t found an answer mature enough for a problem. I have an Ajax request and taking out errors released by the application as a possible connection drop, for…
-
4
votes3
answers4136
viewsProgram does not read scanf
I am doing a school job, doing a blackjack (21) on C. In a certain part of the program, I created a while (while the option is yes) to show the cards, the score and ask if the user wants to bet…
-
4
votes1
answer330
viewsCan enumerations contain methods?
I don’t know if that’s the term, "abstract methods in a enum". My doubt arose after seeing this implementation in code review. Until then I had never seen this kind of thing in any tutorial or…
-
4
votes1
answer822
viewsImplement serializable in JSF
Why to implement serializable in the JSF bean Managed? When to use and not to use? What is the serializable interface for?
-
4
votes2
answers3860
viewsGrab a value inside the HTML Curl
I’m trying to get a value that is inside the html of a page <a href="https://www.site.com/user.asp?ref=fvFCF9D8N4Ak"> I want to take only the value ref=fvFCF9D8N4Ak I am using Curl and php and…
-
4
votes2
answers2734
viewsRegular expression to retrieve strings starting with colons (:)
I need a regular expression to retrieve a list of strings starting with the two-point character (":") and ending with the space character or end of parentheses (")"). Example: String texto =…
-
4
votes1
answer702
viewsHow to properly reuse business rules using Ejbs?
I am refactoring a system where the greatest concern is to decrease the coupling and complexity of the various levels of inheritance, so the examples are illustrative. I have the entities Contrato,…
-
4
votes1
answer1106
viewsSubfolder problem and url rewriting with Laravel
I’m trying to do the Laravel 4 run in a subdirectory, using . htaccess to rewrite the url to the public folder Example: C:\xammp\htdocs\laravel4 The .htaccess is in rewriting…