Most voted questions
150,413 questions
Sort by count of
-
4
votes1
answer220
viewsDevelop Windows 10 and Windows 8 compatible application
I am working on an application that we use Windows Forms to develop its alpha version. Soon, we will start developing a more stable version of this system, and, it was then that the support…
-
4
votes1
answer104
viewsProblems with PHP regular expressions?
I’m getting a file .txt and excluding the letters and lines in white. It is giving problem with the special character \t or \s he doesn’t recognize. The code below: <?php function pass1() {…
-
4
votes3
answers2670
viewsTable with horizontal scrollbar
I set up a table with CSS, but I’m having a problem when reports are opened on mobile or tablet. The table gets flattened, or data gets confused. It has how to place a scroll bar horizontally, and…
-
4
votes3
answers638
viewsHow to take the current time and decrease 24 hours of it?
How to take the current date in Javascript, and create another date, only 24 hours before? To catch the current time just do: var data = new Date(); to pick up 24 hours before, as it does?…
javascriptasked 7 years, 8 months ago wen-dell 372 -
4
votes1
answer387
viewsHow to get a string with the name of the window that is focused in python?
Some time ago I started using pyHook to manipulate events. However, the original version has errors, so I switched it to an alternative version that corrected the errors of the original version.…
-
4
votes2
answers980
viewsAnalyze sound waves from an MP3 file and representation
Is there any way, in Java/Android, to open an MP3 or WAV file and from the same get the sound waves constantly ? according to its reproduction ? and power from that constant return make its graphic…
-
4
votes3
answers8500
viewsAngular + ASP.NET MVC: Does it make sense?
I’m starting to study Angular2. As I am working a lot with . NET I decided to do a project with ASP.NET MVC 4 and Angular2. Giving a read on hello world of Angular I noticed that Angular has its own…
c# asp.net-mvc software-architecture angular typescriptasked 7 years, 8 months ago Marllon Nasser 3,845 -
4
votes1
answer291
viewsWhy do some angular services use dollar ("$") at the beginning?
I used some libraries written for Angularjs where Services were always written with a $ at first. For example, in Angular Material we have the service $mdDialog, and in Angular Bootstrap we have the…
angularjsasked 7 years, 8 months ago Wallace Maxters 102,340 -
4
votes1
answer97
viewsDoes it pay to store the value of a struct member in a local variable?
I see several programmers doing this. Instead of accessing a member of a struct directly, it copies the value to a local variable to the function and uses this variable. Is there performance gain in…
-
4
votes1
answer316
viewsIs there any difference in using the Read() method of the Sqldatareader object?
I am running the code snippet below, however, I was left with doubt related to the method Read() of the object Sqldatareader. using (SqlDataReader reader = cmd.ExecuteReader()) { if (reader.HasRows)…
c#asked 7 years, 8 months ago Diego Farias 909 -
4
votes2
answers951
viewsSite in dynamic HTML
I am a beginner developer and I make static websites in HTML/CSS. Now I’m with a project of a news site. The site is already ready, but I need it to be dynamic, that is, the customer can insert new…
-
4
votes1
answer111
viewsGeolocation with Mobile Data
Well, I’m trying to make a project to be used in smartphones, more specifically in Android, but not this Developed on Android ! I’m just using HTML5 and CSS,all Responsive, and I want to put a…
-
4
votes1
answer2598
viewsWhat is a. lock file?
I’m using git to convert a project and noticed when checking for modifications, that some files . json have a file with the same name, but with different extension and content. Example:…
-
4
votes2
answers12845
viewsHow to get the names of all Postgresql database tables?
How to get the names of all Postgresql database tables? How to get the attributes(code, name, etc...) of a given table in the Postgresql database?
-
4
votes2
answers223
viewsHow to get all constants of a class?
My project has a class helper with several constants representing roles predefined. public static class RolesHelper { public const string ModuloUsuarios = "Usuarios"; public const string ModuloMenus…
-
4
votes3
answers937
viewsHow to add a div or <p> inside a table
Well I have a table that I’ve assembled with css. I need to add an observation within a few lines, IE will not be in all lines. The problem is that I am not succeeding, I tried to post the doubt…
-
4
votes2
answers2038
views -
4
votes2
answers10681
viewsGrabbing all the Values of a JSON Object
I wonder how to get all the values of a part of the JSON: { "Message": "The request is invalid.", "ModelState": { "produto.pro_descricao": ["Informe a descrição do Produto."], "produto.pro_grupo":…
-
4
votes1
answer214
viewsHow can I detect if the user of my site has my extension installed in Chrome/Moziilla
Hello, I need to detect if users who access my site already have my installed extension, some site functions depend on this extension. If the user has the extension installed, they will be able to…
-
4
votes1
answer556
viewsUsing Angular WYSIWYG editor
To kind of starting now my studies with Angularjs. Well, I’m trying to add a WYSIWYG editor ("What You See Is What You Get"). to my script using angular 1.6.1 but am not getting the desired result.…
-
4
votes1
answer379
viewsFirebase: How to load random data into a Recyclerview?
I am using a Query to load only 6 items from the Firebase database in Recyclerview but so far I can only sort using the orderByChild, limitToFirst or last. Everything is working fine but... I want…
-
4
votes1
answer678
viewsError while recovering data from Sqlite
I’m starting to work with database and I’m already in trouble. I ask for a hand! Well, I have a database, apparently, there’s no mistake in adding data to it. I have a Dbhelper class that inherits…
-
4
votes2
answers7919
viewsHow to join 2 select in mysql
I have 2 select which are basically identical, changing only 1 table. I’m trying to put the 2 together in a single select, but I’m not getting it. Follows the select: SELECT DISTINCT a.id,…
-
4
votes1
answer1071
viewsCommunication failure with PHP webservice
I am trying to access a PHP webservice through an ASP.NET application ccbusca.pesqwebservice client = new ccbusca.pesqwebservice(); client.Url = "http://www.ccbusca.com.br/webservice.php"; ret =…
-
4
votes2
answers558
viewsSort by the number of repetitions in a column?
In a query in Mysql I need to select the results and sort the results based on the amount they repeat using the column id_livro, for example: My table comments: +----------------+-------------+ |…
-
4
votes1
answer283
viewsHow to get different outputs (fasta) files with Unix or python
I have a fasta file that has several sequences of genes, like: >gene1 C.irapeanum 5.8S rRNA gene CGTAACAAGGTTTCCGTAGGTGAACCTGCGGAAGGATCATTGATGAGACCGTGGAATAAACGATCGAGTG >gene2 C.irapeanum 5.8S…
-
4
votes2
answers629
viewsMultiple Access-Control-Allow-Origin domains
I have a page that serves some data in JSON format based on the data received from the database, but I need to free access so that the mobile version can also obtain such data, as I can put more…
-
4
votes2
answers301
viewsContest Question: Java code about over-writing methods
I took a competition and dropped the following question: Check the alternative corresponding to the result of the execution of the main method of the Java program shown below: public class A {…
javaasked 7 years, 9 months ago Denis Caixeta 3,427 -
4
votes3
answers180
viewsHow to use repeated methods?
I have some methods that I use in various points of the applications and I end up having to copy in each class. For example: String getStringOrEmpty(EditText editText) { String mString =…
-
4
votes1
answer620
viewsTraversing Dates using Calendar
I’m making a report on java, I spend a period specified by the user. In my DAO I’m doing the treatment. Here I take the last date. String data1 = DateUtil.toString(dto.getDataInicio(), "MM/yyyy");…
-
4
votes2
answers106
viewsWhat method to make you download all the media volume on Android?
My application needs the user to be able to choose at its beginning whether they want to hear the sounds of the app or not, because it is an app to be used in the classroom and in this environment…
-
4
votes2
answers7812
viewsAccessing Components from Another Form
I have two Forms in my application. A Form for data from an engine that has the following fields: txtPotencia, txtTensao and txtCorrente. I would like to access the values filled in these TextBox…
-
4
votes2
answers396
viewsConvert string value to hexadecimal without changing format
I am using the following code in a Class. public Int16 Endereco = 0x7302; byte[] Data = BitConverter.GetBytes(Endereco); Array.Reverse(Data); [...] I would like to receive the value for the variable…
-
4
votes1
answer90
viewsbring menus and active submenus C#
I have to make a query through the menu I have to bring only the active submenus, see my code. return context.Set<Menu>().Include("MenuGroups") .Where(x => x.Id == id &&…
-
4
votes3
answers2535
viewsScript para enviar email
I am creating a page, where you have the contact part, I have already made the form, etc., but at the time of sending, I can’t find a function to send to my email. Could someone help? <article…
-
4
votes1
answer343
viewsGettype() Laravel
I’m trying to get the type of the columns of the tables of my BD, and how to use PHP with the Laravel I tried to use the GetType to pick up the guys and show on view. But the code is only returning…
-
4
votes1
answer84
viewsCreate customizable parameter for Application Insights
In a Webforms project (C# - .NET 4.6.2) I am using telemetry Application Insights from Azure, I would like to send a custom parameter for statistics. Basically, I want to send Clientid to telemetry,…
-
4
votes1
answer312
viewsSee the values of variables at runtime?
How can I know the values of the variables of an application at runtime? I want to know the value of some variables to know if the program is acting correctly.
-
4
votes2
answers220
viewsHow to map and obtain only one property or field of a query?
I’m using the Dapper that has the purpose of map properties of objects. See a practical example: var servico = conexao.Query<Servico>(statement.ToSql(), new { IdServico = id }).First(); That…
-
4
votes1
answer129
viewsHow to make a SELECT between two tables and their WHERE’s?
I take the category ID, and with it I search the subcategories. For this I am using WHERE’s. How would you look using INNER JOIN? The WHERE’s thing got me confused <?php namespace…
-
4
votes1
answer206
viewsWhat mysql.sys do?
Good Evening Everyone, I just installed wampserver, later I was accessing phpmyadmin, but I found something strange in the user accounts. As users had only mysql.sys and root, being the "root" which…
-
4
votes1
answer2044
viewsCreating processes with Fork
I am creating a sequence of processes through the command fork, but when I went to list the processes generated by the code, I found that there was a greater amount than I had created. Because of…
-
4
votes1
answer794
viewsHow to use "Count se" in PHP
I need to make a count se in the PHP. I have a table with several status, and I want to count only a certain type. And I need to count by PHP. By SQL is unviable. $data = Connection::Select('SELECT…
phpasked 7 years, 9 months ago Eduardo Santos 754 -
4
votes2
answers15546
viewsEvent key enter into input
Good morning, I have one input out of a form and I would like when someone typed in it and hit enter some function run, but I don’t know how to do.. <input type="text" value="texto" />…
-
4
votes1
answer1023
viewsTransform String into Shell Script array
I am trying to make a script to backup my database. But I would not need to provide the name of the bases when running the script, but save each base in a different file. My script is like this:…
shell-scriptasked 7 years, 9 months ago Amanda Lima 3,428 -
4
votes1
answer2410
viewsHow to catch a JSON from a URL?
I continue studying Androidstudio and the ball of turn eh catch data by URL, in json format, For that reason created an example page: (http://exemplo.minha.info/nav/2.html), with the following…
-
4
votes3
answers21853
viewsHow to select an option in <select> via text using jQuery?
I have a <select> created in this way: <select id="animal"> <option value="0">Novilha</option> <option value="1">Bezerro</option> <option…
-
4
votes4
answers2028
viewsSide by side in Bootstrap, jumping line
I have a simple problem with Bootstrap v4.0.0-alpha.5. I’ll run it through the database. It lines side by side but in some cases a line is skipped, and there is only one item for the bottom line.…
twitter-bootstrapasked 7 years, 9 months ago Hebert Richard 305 -
4
votes5
answers590
viewsRemove chunk from a string
have a string, example: 32137hyb8bhbhu837218nhbuhuh&3298j19j2n39 I want to remove (clear) from the string everything that comes after the &. Please, how to do this?…
-
4
votes3
answers129
viewsSplit a string that contains scores
I’m trying to split the following string Eu irei amanhã à casa. E tu vens? To get the following result inside a php array array( [0] => eu [1] => irei [2] => amanhã [3] => à [4] =>…