Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer83
viewsAccess properties without knowing name
You can access all your settings inside the class (estates) without having their names? For example, if I create an instance of a class $classe = new Classe(), and I’m defining things in her:…
-
6
votes2
answers571
viewsHow to change the url of the "background" property?
I have this function that changes the src of an img: window.document.images['img'].src = n_src; <img src="" name="img"/> But I wanted to change the background url of the style: <div…
-
6
votes2
answers4741
viewsHow to read a JSON file without a server?
I’m developing a simple static website with html, css, and javascript hosted in Dropbox, using javascript with framework Jquery and trying to read a JSON file. var jqxhr = $.getJSON( "example.json",…
-
6
votes1
answer742
viewsSelect Gridview line with checkbox
function Selecionar(elemento,cordefundo) { var Inputs = elemento.getElementsByTagName("input"); var cor = elemento.style.backgroundColor; //manter a cor default do elemento for(var i = 0; i <…
-
6
votes2
answers704
viewsError replacing occurrence in string using replaceAll
I extract the text from several lines of a PDF, at the beginning of each line I have a configuration of the font size and family used on that line, but then I need to remove this information. First…
-
6
votes2
answers1434
viewsHow does a Container work?
How does a container for web application servers, such as Tomcat?
asked 9 years, 4 months ago Duds 6,726 -
6
votes1
answer873
viewsHow to access data from the innermost "level" of a JSON?
I needed a way to access the innermost "level" of JSON below: (name, value, last query and source) { "status": true, "valores": { "USD": { "nome": "Dólar", "valor": 2.333, "ultima_consulta":…
-
6
votes2
answers365
viewsProblems sending data to the Ionic database
I made a web application, with Angularjs and PHP, here on my computer, where I registered users and emails in the database and works perfectly. I’m trying to do the same with Ionic, but when I try…
-
6
votes1
answer1597
viewsHow to make an http request in Angular, and have functions that return all JSON elements or just one passed by parameter?
I’m new to Angular and Ionic, and I want to build a Factory that gets a JSON from googleapis, and contains two functions, one returns all elements, and the other returns the element that is passed…
angularjsasked 9 years, 4 months ago marcosmfjunior 153 -
6
votes3
answers17415
viewsMysql field type change
I wonder if it is possible to change the data type of a column in Mysql. For example: I have a table USUARIO with the column SITUACAO, in varchar and need to change to bit. I thought I’d do…
-
6
votes3
answers13362
viewsHow to remove whitespace from a text?
I was trying to get blanks out of a string, but the .Trim() does not work, it displays the white spaces yet: var teste = texto.Trim(); txtConteudo.Text = teste; For example, if he receives: "text ",…
-
6
votes1
answer384
viewsCategory tree in Mongodb, how to model?
Good night, you guys. As Mongodb changes a lot our way of modeling a database, I came across a question that can be up to half beast. I’m doing a Restful API using Lumen and Mongodb as a database,…
-
6
votes3
answers2268
viewsSite within App
I have a classified site, I need to create an Android app from my site, I do not program in Java, You can create an app where within it is displayed the site in mobile? Type an iframe of the site…
-
6
votes2
answers263
viewsEclipse is not recognizing project CSS with Javafx
My project with Javafx simply stopped recognizing my . css and the following error appears: An error has occurred. See error log for more details. java.lang.NullPointerException In error log appears…
-
6
votes1
answer801
viewsAccess database in Openshift
I deployed a project on OpenShift, I used a Cartridge to create a bank Mysql soon after the creation of the bank appear this information: Mysql 5.5 database Added. Please make note of These…
-
6
votes1
answer1150
viewsRecursive analysis of a vector
QUESTION: Write a function recursive that analyzes the elements of a vector and returns one of the following codes: 0 Disordered elements 1 Elements sorted in ascending order 2 Constant elements 3…
-
6
votes2
answers204
viewsget_called_class or new Static?
I don’t remember which PHP library I saw this, but there was a code snippet where, to get a new instance of the current class, the function was used get_called_class. But PHP has the keyword static,…
-
6
votes2
answers1679
viewsCalculate Body Mass Index in C
I’m doing a simple C-program to calculate body mass index. However, it is returning a different value (wrong) than a common calculator. #include <stdio.h> int main() { float height, weight,…
casked 9 years, 4 months ago user28062 -
6
votes1
answer391
viewsDisplay of Latin characters in a String
How do I display Latin characters as content from a web page? This content to be displayed is written in java, which should code it correctly and return a Stringwith the values to be written to the…
-
6
votes0
answers53
viewsWhat is a Python metaclass?
What is a Python metaclass? On what occasions should they be used?
-
6
votes2
answers2164
viewsDifferent session in browser tabs
I’m having problems with a system session. What happens is this: I opened the browser, downloaded the system URL and logged in. At this point the "X" session is created. I opened a new browser tab,…
-
6
votes3
answers4588
viewsAlgorithm with structure PARA and SE
An algorithm that reads the name and sex of fifty-six people and states her name and whether she is male or female. In the end report the total of men and women. I need the show to run on Visualg. I…
-
6
votes4
answers1247
viewsFunction within another
In Javascript, I can structure my code well by placing auxiliary functions inside other functions. For example: I get something similar in C#? If not, how do you not leave the auxiliary functions…
-
6
votes3
answers14718
viewsHow to put line breaking in a textarea?
When I’m going to change or include some data from a textearea I wanted you to save the line breaks. Also, when you show in a textarea before the data that already exist I wanted to show with the…
phpasked 9 years, 5 months ago Kelly Cris 141 -
6
votes1
answer469
viewsHow to change this JSON object?
I’ve had the following problem for a few days: I’m using Cakephp and sending JSON to a datagrid of Easyui as follows: $rows = $this->Produto->find('all', array('fields' => array( 'id',…
-
6
votes3
answers1474
viewsHow to repeat columns up to "x" of times
Well I have a column in my database with names, I write it on the screen, through this code: <html> <head> <title>Pagina Inicial</title> <meta charset="utf8"> <link…
-
6
votes3
answers1605
viewsCan you access the bash on Android?
I’m not an expert on Linux. But if Android uses the Linux kernel, it is understood that there must be some similarities. The terminal would be one of them?
-
6
votes1
answer310
viewsSearch list elements with partial strings
I have a List<string> who receives the phone number of all the contacts on the phone, until there is no problem, but I want to perform some operations with the elements of that list, but I am…
-
6
votes1
answer439
viewsHow to use Prepared statements with external variables in Mysqli
I have the following code, which I want to use prepared statments: prepare.php: <?php include "../conex.php"; // conecta mysqli_set_charset($mysqli,"utf8"); // Transforma em UTF8 pra gravar…
-
6
votes2
answers249
viewsHow to specify that the constructor type is equal to the one declared in the class?
I created an object that accepts a list of any kind, like this: class Grid<T> { private Integer count; private Integer offset; private Integer limit; private List<T> list; private T…
-
6
votes1
answer2741
viewsLogin/Authentication with Angularjs and PHP
Well, I’m making one WebApp where I have a login page before accessing the app and within the app I have some restricted areas. The Webapp is running everything right, but I ended up getting stuck…
-
6
votes2
answers2498
viewsIs there a modeling tool for Nosql database?
I’m doing a database creation project for a web application that will use the Cassandra database. I was wondering if there’s any tools that can help
-
6
votes1
answer1395
viewsHow to make a layout template with Angularjs?
need a standard template for all screens of my front-end application how do I do this with angular-js? have as?
-
6
votes5
answers2441
viewsHow to concatenate String within a repeat loop?
I need to put some values together string. How do I concatenate values into one string with a loop of repetition. Example: for($c=0; $c < $tam; $c++){ //concatenar sempre o valor $minhastring =…
-
6
votes6
answers22962
viewsHow to calculate percentage?
I have a variable that dynamically receives from the database, a floating number that is the percentage to be taken out of a certain value. How do I take this percentage away from a value? For…
-
6
votes1
answer266
viewsHow to create a scan sequence in the Postgres database?
I have the following table in the database Postgres: CREATE TABLE customer ( userid character varying(30) NOT NULL, firstname character varying(30) NOT NULL, lastname character varying(30) NOT NULL,…
-
6
votes1
answer242
viewsGoogle Chrome sandbox
On some pages of a system I work on (I’m not the only developer) a message appears on Google Chrome as the image below: This only happens in Google Chrome, Firefox works normally. The test server…
-
6
votes1
answer214
viewsSystem.Web.Resources.dll not found
We have a mvc3/dotnet4 project, which consumes DCOM servers (c++) through Intertops. Both DCOM (c++) and mvc3 (c#) servers were compiled with visual studio 2013. The projects were migrated to visual…
-
6
votes4
answers231
viewsJquery find in tree
I have the following context: <div class='pai' id='item'> <div class='form'> <div class='filho' id='item1'> <div class='filho' id='item3'> </div> </div> <div…
-
6
votes1
answer96
viewsKeep a certain frame within an android app
I’m trying to manipulate the frame rate (frame rate) within a Unity scene, when I run it on the Unity platform, it works with the particular frame value I sent. However, when I pass it to my cell…
-
6
votes2
answers513
viewsMonetize Windows Forms C#?
Hello, sorry not to be a question directly linked to a language, but I searched a lot and did not find, anyone knows any library like Ad Mediator to be used in Windows Forms? How do I monetize/place…
-
6
votes4
answers2280
viewsString Manipulation - split()
Is there any way to give a split() in a string and on the same line take the position I want? For example: String nome = "Dan Lucio Prada"; String sobrenome = nome.split(" "); //aqui quero pegar só…
-
6
votes1
answer790
viewshow to align radios inputs in bootstrap?
http://jsfiddle.net/96ra0n8h/ I did it this way: <div class="row"> <div class="col-md-2"> <p>Discordo Totalmente</p> <p><input…
-
6
votes2
answers1577
viewsSecurity with Angularjs and Rest
I’m starting with Angularjs and Rest (Java JAX-RS) and I’m having a doubt. The functions responsible for Rest requests are easily viewed via the browser by right-clicking Exibir código fonte da…
-
6
votes2
answers2368
viewsHow to use "Biginteger" type to solve this problem?
I’m solving a story-based solution involving the chessboard. See a piece of history: "Then Sessa asked for his payment in grain of wheat as follows: One grain of wheat for the first box, two for the…
javaasked 9 years, 5 months ago André Nascimento 1,258 -
6
votes1
answer4386
viewsnetbeans change java jdk
I upgraded my java, and removed the previous version, now on startup the netbeans gets a message that did not find version 1.7 and asks if I want to use the version default. Does anyone know where I…
-
6
votes1
answer173
viewsWhat is the difference between the two array structures and their repetition loops in Javascript?
I would like to know which is the best way to work with arrays? var meu_array = new Array(1, 2, 3); var meu_array = [1, 2, 3]; There is some difference in performance between the 6 cases presented…
-
6
votes3
answers189
viewsHandling items from an Action Bar outside the onCreateOptionsMenu()
I have an item in my Action Bar to display progress (a Progressbar) if a request is occurring. When the request occurs, I must show Progressbar and hide the other items, when the request ends, I…
-
6
votes2
answers558
viewsWhat is the undescore "_" in the MYSQL LIKE?
In a previous question regarding LIKE in the MYSQL, I should avoid the injection of "%" in a query where I use "LIKE"?, a question has arisen regarding the _ (undescore) can be used on the operator…
-
6
votes2
answers336
viewsIs the Apache server required in hosting services?
The Apache web server or XAMPP is the same thing as UOL Host or any other hosting provider, that is, the purpose of the two is to store websites and return requests made by the browser? For example,…