Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers632
viewsHow to group microdata of census persons by residence?
I am trying to answer the following question: How many couples with children under 18 both parents work outside? Given a table censo of the 2010 census (as the one from Acre), first thing I did was…
-
4
votes5
answers267
viewsStore arithmetic operator in variable
I have the following code: $value1 = 10; $value2 = $value1 + 10; // $value2 == 20 I need the operator + is variable, that is, in my case I need it to be + or -. I tried the obvious but already sure…
-
4
votes2
answers1431
viewsURL in netbeans does not work
I am trying to run a project in php in netbeans and it runs the following url: http://localhost/portfolio/index.php Only my project does not open. It only opens at the following url:…
-
4
votes2
answers1319
viewsLaravel error in installation
Guys, I am using mac and trying to install Laravel. I have already installed the composer, surround the command line documented in the framework : composer global require "laravel/installer=~1.1" He…
-
4
votes1
answer533
viewsMethod Invocation may Produce Nullpointerexception
I’m using geocoder to turn the Edit text address into Longitude and Latitude. Then he’s doing it right and saving in the bank the lat and lng, but he gives an Exception that does not cause any…
-
4
votes2
answers577
viewsInstance in Django model with problem
I’m working on a multi-app project. The department app model is as follows:: from emails.models import GerenciarEmails class Departamento(models.Model): #modelo de grupos de disciplinas class Meta:…
-
4
votes2
answers71
viewsFailure to compare dates before saving to the bank
I’m trying to do a date validation, if the date DataInicial is smaller than the DataAtual, that is, can not be retroactive the script should return me an error message with json_encode not allowing…
-
4
votes3
answers3895
viewsDouble click on a Datagridview line transports the data to a form
Good morning to all. Next staff, I have a (query) form that contains the Datagrideview. And the registration form in another form. I would like to understand, how can I double click on a line of…
-
4
votes2
answers1491
viewsStore some elements of an array in another array
I have defined a array integer in which it will be pointed by a pointer and then I have another array which will store only a few numbers in which are even numbers, here is the code... void…
-
4
votes2
answers116
viewsHow to add font to a select?
I have the following link: <link type="text/css" rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800">…
-
4
votes2
answers995
views -
4
votes1
answer592
viewsLarge switch case in C
I am developing a system for the college and I would like to know what is the best option, in the sense of optimization of the code, of improving even. I have a switch Menu case, where I have 88…
-
4
votes1
answer159
viewsWhat is the best option to escape a string before inserting it into the database. addslashes() or mysql_real_scape_string()?
I am developing a project that involves pass words among other important infomations that I need to insert into the mysql database. My question is which option should I use to escape this data…
-
4
votes2
answers40
viewsPHP variables with wrong values after string manipulation
I have the following code: $respostaXML = "<data-hora>2015-11-10T11:33:41.086-02:00</data-hora>"; $posTag = strpos($respostaXML,"<data-hora>"); $comprimento =…
phpasked 8 years, 12 months ago Daniel Tietz 49 -
4
votes1
answer553
viewsShow date by terminal
Just as you can change the linux date by the terminal in the format {month}{day}{time}{minute}{year}, all together, I wanted to know how to save the current date in a variable (Python), change the…
-
4
votes2
answers958
viewsTake a line ID that has just been created in PHP
Hey, guys, let’s go So I’m having a problem which is this, I have a table players, a table workouts and an auxiliary table playfulness (where I’ll see if any players are training at the moment) The…
-
4
votes3
answers4534
viewsConvert json object in php
I’m trying to create a class that saves objects like Conta in a json file, however, when saving to the file, the information of the object is not saved, it is just this: [[],{}] My class reading and…
-
4
votes1
answer21806
viewsRead rows and columns by Python, by excel
My doubt is if there is any resource for me to be able to read excel rows and columns. For example: I have experimental data in excel containing header in the first row having about 12 columns of…
-
4
votes2
answers335
viewsHow to iterate an attribute with Java Reflection?
In the method below, I use Reflection to set attributes from one class to another, based on mapping via Annotation. How do I map an attribute of a class that is an attribute of another? For example,…
-
4
votes1
answer482
viewsChange text of a Jtextarea at runtime
Good morning to all, I have a backup routine that should write the result in a JTextArea, at runtime. The copy works, the problem is that the window containing the JTextArea gets stuck and does not…
-
4
votes1
answer647
viewsHow to play a sound using Mediaplayer?
How can I create a button with Soundeffect using the Mediaplayer class or any other android class? I tried using the following code I found some examples, but I was not successful. public void…
-
4
votes1
answer1018
viewsHow to remove an already selected item from an upload Multiple
I have this example and would like to remove an item from my selection. However it is not removing properly, has a problem with the index number, how could it solve this?…
-
4
votes1
answer615
viewsHow to check the size of a javascript object (in memory)
How to check the size of a javascript object (in memory) using pure javascript?
javascriptasked 8 years, 12 months ago durtto 3,109 -
4
votes1
answer960
viewsWhat would be the best way to make a "vertical text" in HTML/CSS?
I would like to know from you how best to do these types of text alignment as in the example (vertical alignment, with letters up, "vertically straight". And vertically aligned with the edge of a…
-
4
votes1
answer61
viewsRun a method when Webservice is Started
I have a Webservice that’s working normally. At this point arose the need to execute a method called "Recuperaraposfalha" that needs to be executed as soon as the Webservice is started. This is a…
-
4
votes1
answer83
viewsTFS Api - Query error with Datetime
I am trying to perform a query using the TFS API where I need to get all the Workitems that have been edited from a certain date, however I get the following error: An unhandled Exception of type…
-
4
votes3
answers158
viewsHow to reuse the connection in the subclass?
Colleagues, I have a connection class: class Conecta { private $Servidor = '127.0.0.1'; private $Usuario = 'root'; private $Senha = 'senha'; private $Banco = 'banco'; // Protegido protected…
-
4
votes1
answer659
viewsAngularjs - Modularize a code to be reusable in multiple projects
Next person, I am developing a webapp where I have a very wide administrative area, with several functions. In another project I closed a few days ago, I also requested an administrative area with…
angularjsasked 8 years, 12 months ago celsomtrindade 8,038 -
4
votes3
answers315
viewsReturn in methods
Colleagues. I have a class where my methods contain arguments, but have no return, I usually put in the end the following code: public function metodoRetorno($valor) { // ... return true; } But in…
phpasked 8 years, 12 months ago user24136 -
4
votes1
answer505
viewsJSF/Hibernate How do I save null to a database field?
I have an application using Primefaces/JPA-Hibernate/Tomcat8, and I need that when a field on the screen is empty, it will record null in the bank (Postgres). I need this because I have some fields…
-
4
votes1
answer346
viewsAs always show search field
I have a form where I have a search field, this field is only visible when the user clicks on the image of the existing magnifying glass and the field is displayed a line below my layout, I would…
cssasked 9 years ago adventistapr 5,498 -
4
votes1
answer4499
viewsOpen modal with Javascript to select certificate and send to server
When we enter the page eCAC - Virtual Call Center and we click on Digital Certificate on the right side of the screen a modal is opened to select certain certificate that we configure in the system…
-
4
votes2
answers541
viewsIs there a list of all properties that need prefixes?
I have a question about CSS: To run in different browsers you need to use the prefix before the property, for example: -webkit-boder-left-rarius: 3px;. But which CSS Styles as border, margin,…
-
4
votes0
answers187
viewsHow to implement certificate chains? What is the importance/operation?
I created a local application in VS and when climbing the server the application was not with all the resources of the local application, in the application I am using X.509 and found a difference…
-
4
votes2
answers1090
viewsIs there any way to debug PHP via browser console?
Is there any way to debug PHP via browser console? I sometimes want to debug a value on the system in production, but I wouldn’t want the user to notice. Then I got the idea to use the browser…
-
4
votes2
answers81
viewsSimple SQL query
I have a proc that gets a product ID. If it gets NULL, then it should list all products. If it gets the specific ID, it should list only that product. There is some way to do this without having to…
-
4
votes2
answers986
viewsregular expression replacement - reference followed by number
Situation I was performing a replace of some data when I came across a peculiarity. |C405|01102015|7|1058|174544|19836903,14|18657,06| |C405|02102015|2|1059|174792|19859872,19|22441,55|…
regexasked 9 years ago Guilherme Lautert 15,097 -
4
votes1
answer199
viewsConvert string to specific format in date
I have a string "sex, nov 6" and need to convert to DateTime. I’m doing it this way: DateTime datetime = DateTime.Parse(gridT.Columns[e.ColumnIndex].HeaderText.ToString()); But it’s not working. How…
-
4
votes1
answer4684
viewsHow to create a stopwatch in JAVA?
I would like to determine how long one image should stay until it returns to the other. Is there a class for that? Otherwise, how to create? Note: Preferable the absence of Threads.
-
4
votes3
answers8265
viewsBatch rename files using Windows Power Shell
How to rename all files in a folder whose name is a number (integer) followed by a certain extension (my choice) using Windows Power Shell? Example: The folder as is: 1.txt 2.txt 7.txt arquivo.html…
powershellasked 9 years ago Ricardo 14,521 -
4
votes2
answers695
viewsWeb scraping with pure Javascript
I want to make a web scraping that reads an XML page and takes a certain value that is in "name", but, I do not know exactly if it is possible - I only found in how to do with Nodejs -, is it…
-
4
votes2
answers154
viewsApplying UX concepts to mobile development
I’m developing a mobile application and researching on the design part for mobiles, I’ve read the term enough UX. Searching, I discovered the following definition: Jakob Nielsen and Donald Norman…
-
4
votes2
answers1365
viewsSearch only street of any city + state Google Maps API
I’m using the Google Map API, and I’m having a question: how can I search for just one city street? If that street is not found in a particular city, nothing happens. I have basically 3 fields: a…
-
4
votes1
answer68
viewsHow to pick up points of interest between two moments in time?
Consider that there are two moments in time, represented in the standard format (HH:mm:ss). And consider that a point of interest is any moment that is represented by at most two different digits (…
phpasked 9 years ago Cesar de Barros 546 -
4
votes1
answer67
viewsHow to separate a fixed route from a variable route with Asp.net mvc5
I have a control that manages videos. I’m trying to make these two methods: [Route("video/categoria/{categoria}")] public async Task<ActionResult> Index(string categoria) { }…
-
4
votes2
answers1182
viewsHow to remove mask from the field before calling the controller with Asp net MVC
In my registration form I have a CNPJ field with the mask set via jquery $("#cnpj").mask("99.999.999/9999-99"); however the value is coming in my formatted controller, in my database this field is…
-
4
votes1
answer294
viewsIs it possible to make a condition within a Select?
I’m performing a consultation using Select, to select only the required fields and consequently have higher performance. In my View user can choose certain fields to be loaded Man ViewModel public…
-
4
votes1
answer1412
viewsHow to create a new Build.Radle?
Since I imported my project from github, I’m trying this error: Migrate Project to Gradle? This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build…
-
4
votes1
answer931
viewsPass route variable to controller method
I need to pass a variable from a route to a controller method. The route: Route::get('busca/{id}', 'MatriculasController@busca'); How can I pass the variable id for the method?…
-
4
votes1
answer453
viewsEditing the Package Name on Intel XDK
I created an App on Intel XDK and when publishing to google play, it gives the following error: Use a different package name. "xdk.intel.Blank.ad.template" already exists in Google Play How do I…