Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer2307
viewsHow to format text in a Textview?
I want to add a formatted text (can be in html) on my Textview screen but I’m not getting it. I have string in values: <string name="lbl_explicacao"> <![CDATA[ <b> TESTE </b>…
-
4
votes2
answers25412
viewsUsing WHERE with INNER JOIN
There is a way to use one WHEREto make a SELECTwith INNER JOIN ? my case is this: SELECT CodCli, NomeCli FROM tbvendas INNER JOIN tbclientes ON tbvendas.CodCli = tbclientes.AutoCod I’d like to put a…
-
4
votes2
answers253
viewsCheck and edit a List
I own a List: private List<Geracao> lista; This list will be filled with data from a database: lista = dao.findAll(); The method findAll() : @SuppressWarnings("unchecked") @Override public…
-
4
votes0
answers10278
viewsHow do I leave the Android Studio interface in English?
It seems a little layy on my part (really is), but I’m not able to leave the interface of android studio in English.
-
4
votes1
answer1422
viewsPassword validation saved in Sqlite
Hello I’m doing a project for college and I’m new on Android,I’m making an application that the purpose of it is to check if the password is correct to be able to finalize the application, but I’m…
-
4
votes2
answers223
viewsIs there a performance difference between Tuple and List?
In Python, I know there’s a difference between Tuple and a List. To Tuple is immutable, and the List, mutable. You even have that question here: What is the main difference between a Tuple and a…
-
4
votes2
answers466
viewsComparing words from a text to an Enum’s list
I have an Enum that contains a list of values. I have a method where I receive text as a parameter. This method, besides going through Enum, breaks the text by words. The main function of the method…
-
4
votes2
answers2957
viewsI need a new Random number for each line in an sql(server) query
I use the sql server. I need to use a Random number in several different columns (the same Random number) but I want a new Random number for each row... for example, let’s assume that TABELAX has…
-
4
votes1
answer664
viewsAccess local variable outside an if
How to create/modify a variable within a if and be able to access it without having to set it in global mode/scope. I am working on a Lua file similar to this scheme: if verificacao then local…
-
4
votes2
answers363
viewsAlternatives to Google Maps
I recently learned that for applications that track users (e.g., taxi apps), Google maps charges an annual license to use its API. I would like to know if there are other map API alternatives for…
-
4
votes2
answers661
viewsExecute code in Lua language
I downloaded the Lua language interpreter, created a file hello.lua with the code below: print("Hello World") But I can’t compile this code and display the output. I downloaded version 5.3.3 and ran…
-
4
votes1
answer951
viewsHow to run different Node.js sites on the same server?
I have a Linux server and on this server I have several hosted websites, each with its folder and files. I want to start using Node.js to create the API’s for each site. What’s the best way to do…
-
4
votes1
answer4379
viewsDifference between sorting methods Selection Dort, Insertion Sort and Bubble Sort
I’m studying the discipline data structure and I’m developing C programs++. I know basically these three types of ordination (Selection Sort, Insertion Sort and Bubble Sort), but I don’t know in…
classificationasked 7 years, 12 months ago user28366 -
4
votes1
answer1510
viewsMask for monetary values
I wanted to create a mask for monetary values, where the person would type and enter the scores and separations of the decimals automatically. Ex: R$ 1 R$ ,11 R$ 1,10 R$ 11,00 R$ 110,00 R$ 1,110,00…
-
4
votes2
answers136
viewsRunning bug jQuery
I’m having a really weird little problem, I’ve never run into him before. ... function resizeResponsivo() { var width = window.innerWidth, height = window.innerHeight; if ( width < 651 &&…
-
4
votes1
answer859
viewsHow to repeat a function call every X seconds in Pyqt?
I am developing a small application in Pyqt4 where I need to upload the data to a table coming from a Webservice. This I managed to do quietly. However, now, I need that every 1 minute, these data…
-
4
votes1
answer5871
viewsPHP execute sudo command with shell_exec()
I’m having the following problem, I’m on time trying to run a file sh with php using shell_exec for example: echo shell_exec("./example etc etc"); My problem is that it does not perform, is it a…
-
4
votes1
answer2880
viewsHow to Perform Procedures with Dapper
How can I run a store with Dapper?
-
4
votes2
answers399
viewsUsing Node.js and PHP on the same server (Amazon EC2)
My site is made "totally" in PHP and I used Node.js for the real-time chat part. I’m using the services of AWS and I came up with a big question: I can install Node.js in the same PHP instance…
-
4
votes4
answers1757
viewsEmpty input cannot receive zero
I have a form with more or less 5 inputs, at any given time inputs will be worthless, and I want to find out what the lowest value between them, but whenever there is one or more inputs voids it…
-
4
votes1
answer382
viewsMethod to pause the countdown
Good evening, I did a countdown on my app with the play button so I could start the countdown.... only that I wanted to make a method of pausing time and when I clicked on the play button again it…
-
4
votes2
answers676
viewsInstallation of Firebase in Android Studio
I was watching a video about installing Firebase and it says to go into: File > Project Structure, and open this image window: However, the next step is to click Cloud, but when I enter Project…
-
4
votes4
answers11110
viewsHow to group SQL results by month and year?
I would like to know how I can query the Mysql database and group the records by year and month. At the moment I first make a query to get the year records, then for each year I use a for() to…
-
4
votes1
answer151
viewsProblem with null variable
I’m developing software in C# with MVVM model, and with Visual Studio. It is a software to manage the members of a university. We must also use a database, with Code First. My problem is it gives me…
-
4
votes2
answers72
viewsVisual Studio 2015 says "this" is redundant
In the early days of my first object orientation classes I was taught to use the thiswhere it is a variable or class property. Today I understand when there is a real need to use, for example when a…
-
4
votes1
answer691
viewsHow to recover logged in user name and display in View
I’m trying to develop a page, where after the user login, it is redirected to an index, where I would like to display the user name. I’m using Identity default of ASP.NET MVC. So I thought I’d put…
-
4
votes1
answer174
viewsDuplicate in a database
Duplicate database would be rows of a repeating table? Or would it be something more complex? , this question fits into the context of database relations
-
4
votes2
answers799
viewsRelationship Doubts in Mysql Workbench
I am new to the forum and I count on your help in an issue that occurs in Mysql Workbench. I did a little modeling to explain my doubt. I would like to understand why when relating a table that…
mysql-workbenchasked 7 years, 12 months ago MTAugusto 53 -
4
votes3
answers820
views -
4
votes1
answer89
viewsHow can I get the BD date already formatted using the Max and Date_format functions together
I’m trying to get the biggest date registered in my BD, I am trying to use the functions MAX and DATE_FORMAT together and the search result is not what expected, I have these dates registered:…
-
4
votes1
answer92
views -
4
votes1
answer140
viewsConvert Stack Trace to String in JAVA
What would be the best way to convert Stack Trace from a Exception in String?
-
4
votes3
answers1351
viewsChange String Axis Y Google Chart
Utilise Google Chart to generate charts. I have a array with values from 1 to 4. These values are of the type int. I need to change the description of the Y-axis. To: 1 = Great 2 = Good 3 = regular,…
-
4
votes1
answer110
viewsHow to change chart when changing date
First I apologize for my lack of knowledge of some concepts, I am new in the area. I recently started in a company where I have the following problem: I have a Datepicker and when selecting a date,…
-
4
votes2
answers729
viewsPHP json_encode with Boolean and decimal values
I have a PHP function that takes data from the database and returns an array with the results. This array by default has all the data as type string, but some fields should be treated as Boolean…
-
4
votes3
answers2377
viewsStructure table day and times (schedule type)
I need to create a table that contains days and hours of operation of an establishment, a kind of agenda. This table should represent every day of the week and on each day contain the opening and…
-
4
votes2
answers175
viewsShould I make sure the threads end at Dispose?
There are already some questions about the interface IDisposable and the using, for example: What types of resources are released in a statement using I should always use Disposis Still I’m not sure…
-
4
votes1
answer66
viewsSpecialize only one template class method
I own 2 basic class types, Classea and Classeb. Classea has a method that generates an integer, and Classeb has a method that generates a Classea. I would like in the method of a Classec, if the…
-
4
votes1
answer80
viewsassign a value to javascript variable
The problem is the following php returns me several buttons with a hidden input to identify the button. $nome = $mysqli->query("SELECT * FROM menbros ORDER BY id"); while ($row =…
-
4
votes1
answer501
viewsnamespace com php
I’m looking to dig deeper into namespace, but the ways I’m trying, it’s giving error. Follows below the two forms: My class inside the directory classes/class.php namespace minhaClasse; class classe…
-
4
votes3
answers2837
viewsHow to rename a java file
Given my code below: import java.io.File; public class App { public static void main(String[] args) { File diretorio = new File("/home/douglas/roms"); File[] arquivos = diretorio.listFiles(); for…
-
4
votes1
answer489
viewsCatch text between a tag
I have this string <td id="aui_3_2_0_1196">500</td>, would like to take the value 500 between the tag beginning and end (<td id="aui_3_2_0_1196"> and </td>).…
-
4
votes1
answer98
viewsHow to put signals between <td>
How I can place signs or images, in the middle of the edges of a table, as in the image?…
-
4
votes2
answers167
viewsTake mysql field dynamically
I created a select command based on information sent by the user, e.g.: $anoini = $_GET['anoini']; //variavel com ano escolhido pelo usuário $anofim = 2016; //ano final é 2016 $s = 'SELECT…
-
4
votes1
answer991
viewsHow to use login in different areas on Asp.net mvc
I’m creating an app, where it has more than one Area, which is restricted. (as shown in the image below). My question is how to login in different areas? Details: As users of the Admin area and the…
-
4
votes1
answer368
viewsHow to remove duplicated rows by holding other columns
In the example below, I am interested in removing duplicates of rows in columns title and time no matter how many columns. In the example below I am interested that the query returns rows 32, 34 and…
-
4
votes2
answers3140
views -
4
votes2
answers719
viewsHow to keep foreign key restriction using softdelete?
How can I maintain the integrity of my database when using softdelete? Example: try to exclude a person which is linked to a account through a foreign key, in normal ways this will not be possible…
-
4
votes1
answer52
viewsIs it possible to make an html element expand upwards?
Ex: I have a paragraph inside a div, and I want that whenever the text breaks a line, it expands up rather than down (default). Take the example: #content { width: 200px; height: 200px; background:…
-
4
votes0
answers24
viewsCheck connection status
I wanted to prevent the connection offline user made unnecessary requests not to have to wait for return timeout or any other mistake... Is there any javascript function able to check the status of…