Most voted questions
150,413 questions
Sort by count of
-
6
votes0
answers236
viewsWhat are the basic requirements for creating a Wordpress template?
I would like to know, according to the experience of those who have worked with this theme, what are the basic requirements to create a Wordpress template. What to avoid and what to value when…
-
6
votes2
answers461
viewsHow to sort the results of a ranking?
I am developing a game, and in it I need to make a ranking according to the time it took the user to reach the end of the game. My question is the following: what kind of data should I use in my…
-
6
votes2
answers3041
viewsHow to separate the characters of a string in R?
I have values a string containing a date "01/01/2000" I want to separate the day, month and year. #Data #01/01/2000 be it #Dia Mês Ano #01 01 2000 How do I do it in R?…
-
6
votes1
answer1038
viewsCouldn’t perform the Edit because Another user changed the record
Does anyone know if there is any trace of a table that is dropped from a bank? To make it easier if it’s recreated, for example, and when I say vestige is in the bowels of the bank itself. I’m going…
-
6
votes3
answers5260
viewsLaravel: Migrations
I have a question about Migrations do Laravel and I believe you can help me. 1 - I created a model with Migration by php artisan make:model Evento -m; 2 - In addition to increments and timestamps I…
-
6
votes1
answer106
viewsProblem in creating entity with one-to-one relationship
I created a project for testing, and I’m studying the creation of an entity with relationships, and in that I created two entities with this relationship below: I am managing to create the entities,…
-
6
votes1
answer1106
viewsHow to get the battery percentage?
How to take the battery percentage and report on a battery-style chart?
androidasked 9 years, 5 months ago Yan Cavalcante 63 -
6
votes0
answers85
viewsHow to collect requirements?
How can I collect requirements and prepare them for develop a system? Is there any way analyze that I can use for this purpose?
-
6
votes1
answer5078
viewsConfigure page headers with DOMPDF
Is there any way to set up DOMPDF to put a header on all pages of the generated PDF? I am generating a report and I would like all pages of the report to have the header of the first. //define o…
-
6
votes1
answer4961
viewsHow to upload Angular js files
wanted to know now how to grab and send the file to url I want to upload.…
-
6
votes1
answer4503
viewsStructure of MVC Folders
Hello. I am wanting to build my own application using the MVC standard. I understand the separation of each item(Model, View and Controller). But I want to make some sort of separation between the…
-
6
votes5
answers19009
viewsHow to keep the footer always down there
I wanted to know how to keep the footer of the site always at the bottom of the site, even if the content of the site is little, as the example below. If I put a margin top, it doesn’t stay down…
-
6
votes1
answer4629
viewsOption "keep connected" / "remember me" on login screens
I am implementing a login screen and my client asked to add a checkbox "Keep logged in" below the login credentials. Okay, adding is easy. But what is the correct behavior for this feature? Is there…
-
6
votes2
answers1608
viewsInfinite loop trying to calculate if the number is prime
I have no idea how I’m going to determine the condition of for for prime numbers. I always end in looping. #include <stdio.h> int main() { int num = 1, primo; do { printf("Informe um numero…
-
6
votes1
answer482
viewsWhat are the suffixes of NPM versions and what do they do?
In Node.js environment when we fetch modules from NPM suffixes can be used to specify versions. For example, in the package.json I often see: "dependencies": { "async": "~1.4.2", "express":…
-
6
votes1
answer7802
viewsVoice recognition in Pt-BR
How do I use Speech Recognition when my OS(Windows 8 x64) is in En-BR? I want to use commands in English. I’m using the following code: private void Form1_Load(object sender, EventArgs e) {…
-
6
votes3
answers450
viewsAnnotate: Returning the cheapest product and supplier name (Django)
Given the table below product;company;price AAAAA;forn1;395.69 BBBBB;forn1;939.45 CCCCC;forn1;480.33 DDDDD;forn1;590.59 EEEEE;forn1;847.69 AAAAA;forn2;227.31 BBBBB;forn2;375.90 CCCCC;forn2;602.18…
-
6
votes1
answer2424
viewsFree up memory in C++
I am obliged to release memory of every variable that I will no longer be using? If yes, how to do?
-
6
votes1
answer286
viewsWhat is the best way to create a binary tree in C language?
Being a binary tree a set of records that meets certain conditions. I would like to know how best to implement a binary search tree in language C would be using a structure with head or without…
-
6
votes1
answer1320
viewsReceive parameter in delete request
I am trying to pass a parameter to my DELETE request, I tried to do the following: Use in the same way I use in GET (where it works normal). app.delete('/contatos', function(req, res){ var obj =…
-
6
votes2
answers2960
viewsError log in Java application
We developers when we code, we have a way to track the process of running software through the output of the IDE, but when the software goes into production and we no longer have the development…
-
6
votes1
answer963
viewsPermutation between two vectors
I’m studying some algorithmic techniques and I came across a problem that I’m stuck with, I need to make all the possibilities of permutation between two vectors. For example: [1,2,3] and [5,6,7]…
javaasked 9 years, 6 months ago Nicolas Bontempo 1,652 -
6
votes1
answer310
viewsMongodb in production
I have an application that uses Mongodb, I’m already coming to the end of its development and I just started thinking about how would be made the installation of this bank in production environment.…
-
6
votes2
answers619
viewsHow to capture the pressing of a key with the program running in the background
The code I have so far is this: public static void main(String[] args) { SystemTray tray = SystemTray.getSystemTray(); Image image = new BufferedImage(10, 10, 10); String tooltip = "Oi amiguinho";…
javaasked 9 years, 6 months ago Lucas Caresia 2,663 -
6
votes1
answer2772
viewsHow to get profile image via authentication using facebook php API
I would like to know how to copy an image from a link without extension, IE, I’ve used several methods that work for images with extension, but no extension I can not yet, where I will use to copy…
-
6
votes3
answers2715
viewsIs there any way to display the size of the string in a MYSQL result?
Is there any way to display the string size in a MYSQL result? I need, for example, to know the size of a given string returned in a SELECT with group_concat. What I want would be more or less like…
mysqlasked 9 years, 6 months ago Wallace Maxters 102,340 -
6
votes1
answer593
viewsUsing constructor and using set() for same attributes
I’m studying JPA following the example of uaiContacts. His project is on Github. I took the file example modelContact.java: The class Contact is mapped: public class Contact { @Id @GeneratedValue…
javaasked 9 years, 6 months ago André Nascimento 1,258 -
6
votes1
answer566
viewsConsuming Webservice with large data volume
I have a demand where I need to import a file JSON with 65k of records for my app Android,after calling my service URL REST the app starts importing the data but crashes after some time, I would…
-
6
votes1
answer77
viewsWhat are the real problems for those working with Assembly development?
I am studying the architecture and implementation in MIPS, but as I do not work at low level what I am doing are basic initial exercises in any beginning of learning, I would like to know what are…
software-architecture assembly architecture-computers mipsasked 9 years, 6 months ago Emanoel 1,621 -
6
votes1
answer188
viewsHow to get links to open in an iframe?
How do I make the page menu index.html open the pages inside the iframe contained in the same document (index.html). For example, by clicking on link down the page contato.html is carried inside the…
-
6
votes4
answers258
viewsDoing level calculation and experience with Javascript
I’m trying to make a code that takes the value of the experience base (base) and subtract from the experience gained (bn), then the code returns how many levels it has risen (up) and the exp…
javascriptasked 9 years, 6 months ago Fábio Ferreira 147 -
6
votes1
answer117
viewsProblem with the datakeynames property of the listview component
I get the following error when running the application: Message=Databinding: 'Gesthos.Models.Documents.Fluxoapprovacaodocumento' does not contain a Property with the name 'Sector.Code'. Error…
-
6
votes2
answers554
viewsHow can I leave half a side of a curved element inside as in the figure with css?
I need to make a menu exactly the same as in the picture, the problem is that I can’t make the bottom curve of the element, preferably I would like to do only with css, but if not, another solution…
-
6
votes1
answer1333
viewsChange validation behavior in Primefaces components
I have 2 generic templates for crud. The commandButton Template search CRUD.XHTML (Code 2) is with the following logic: (When opening the page, all input fields are disabled, when you click the…
-
6
votes1
answer1191
viewsGenerate more than one boleto with the DLL "Boleto.Net"
I noticed that the DLL Boleto.Net has a class BoletoBancario with the property FormatoCarne. However, I can not generate three tickets in the same page. I would like to view a code that makes the…
-
6
votes3
answers12748
viewsGenerate random numbers in an Array from 10 to 50
Since I can generate an array of random numbers with a limit, they should be numbers from 10 to 50. To generate random numbers from 0 to 50 I use: Random random = new Random(); int array[] = new…
-
6
votes1
answer1140
viewsSecure Return - Solution
I use C# Asp.Net MVC, I had to make the return of data Secure Pag and I found very flawed the documentation, follows the solution I created below for those who go through the same difficulties.…
-
6
votes1
answer462
viewsVBA/Excel - Subroutines stop while typing
I am working on a spreadsheet where the user has to type a given text into a cell at a certain time. I want to put a countdown side, so he can check how much time is left. However, when I start…
-
6
votes1
answer1277
viewsoptional mask caractére with Jquery maskedInput does not work
In a form that I am developing, one of the fields that the user needs to fill is cellular, and as the cellular of some regions of Brazil have 9 digits I am using the library jQuery Maskedinput to…
-
6
votes3
answers284
viewsDiv with fixed position on the screen within the boundaries of another div
I need a div to be fixed on the screen, IE, descend as I visualize the rest of the page, but the problem with the position:fixed is that it takes the element of page flow. I want this div to be…
-
6
votes3
answers2663
viewsHow to copy to clipboard without using flash?
google Chrome is displaying a message from "This site uses plug-in (Adobe Flash Player) that will soon be no longer compatible". Is there any way to do it without Flash? How? And something that…
-
6
votes2
answers1129
viewsHow do I know if a socket client has disconnected?
I have a server that has a List with all connected clients. Client connects and connection is managed in a unique thread with infinite communication loop. The problem when I drop the client or close…
-
6
votes2
answers312
viewsWhere to call Savechanges() when you have multiple repositories?
I am developing an application with Entity Framework, with several repositories. Each repository encapsulates SaveChanges() dbcontext. When a business layer operation uses multiple repositories, and…
-
6
votes1
answer488
viewsReplace with Fragment does not work properly
I’m making a simple example with Fragments and what I need is that when I click the first button the app replace for Fragmen1 and when you click on the second button appear Fragment2. When I start…
androidasked 9 years, 6 months ago user3010958 63 -
6
votes1
answer838
viewsHow to print the variable name in C?
Example: I have an entire variable called menino, how do I print on a printf() the name of that variable, i.e. "menino"
-
6
votes2
answers379
viewsIs it bad practice to overwrite declared variables as a function parameter?
I used to get "reassigned" a value of a certain variable that was declared as nome of the function parameter. Example: function format($string) { $string = ltrim(rtrim($string, ']'), '['); // A…
-
6
votes3
answers943
viewsHow to sort DOM elements by jQuery?
Suppose I have the following list: <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> </ul> I want all elements of even numbers to be…
jqueryasked 9 years, 6 months ago Wallace Maxters 102,340 -
6
votes3
answers465
viewsMedia Player setDataSource
The function setDataSource() works with a url, but I need you to get a file from my raw (for example). I used: Uri url = Uri.parse("android.resource://" + ctx.getPackageName() + "/" + R.raw.file);…
-
6
votes1
answer746
viewsSwitch varialvel to modal
I have a page with a table whose code field is a link that opens a modal. I need that when opening the modal, show another table, only with the data according to the value of the field (code)…
-
6
votes2
answers1087
viewsA Mysql query, with`crases` vs without
With aces to query is safer or less? $Query = "Select * from `tabela` WHERE `id` = `1`"; vs $Query = "Select * from tabela WHERE id = 1";