Interesting questions
-
0
votes1
answer111
viewsAndroid Dev. Null Pointer when accessing a button of a Fragment by main Activity using set contentview
I made the layout of an application where I use the android menu. Menu is on main Activity: @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The…
-
0
votes1
answer511
viewsManipulating buttons in React.js
I am creating a small task system for a collaborator in the company where I work, it should display the tasks that must be completed on the day, until then I was able to display the tasks my problem…
-
2
votes1
answer718
viewsHow to create button in a Simpleadapter with event click excluding item
I set up a list in an android app that is a simple list using SimpleAdapter. What I need now is to delete the item from the list, but I don’t know how I would do it because I couldn’t get the…
-
0
votes1
answer28
viewsMysql - Select the most inserted records in a given period
I am needing to select all most recurring records (top 5) within a time interval but am not getting. Basically when I do this: SELECT assunto, count(*) AS total FROM tabMsgs WHERE dtCriacao >…
-
-1
votes2
answers377
viewsFetch stock balance on a given day (or day)
I have the table "saldo_dia" where I record the product (ID), the date and the balance. I need to generate a report (Kardex) and fetch the balance of a given day as "starting balance". My question…
-
0
votes1
answer15
viewsApplying the paradise premium primefaces theme to a project that is not Maven is possible?
I was able to import the War that comes in the theme file and access the contents, but I already have a non Maven project started and Spring Security structure mounted working correcting already ..…
-
0
votes1
answer27
viewsError sending Controller object to View
I am creating a small project in Asp.net MVC 5 to train and I am having problems passing a Controller object to the View, is showing some error related to the Where<> method of the LINQ…
-
1
votes2
answers83
viewshow to capture what is printed on the console via a command into a vector in C language
When I do some commands on the linux console, for example man fprintf, is printed on the screen a series of information. I need to collect this information that is printed on the screen but instead…
casked 10 years, 1 month ago user3903094 75 -
-2
votes2
answers66
viewsList counting elements
I have a list, like this: L = [0, 0, 1, 1, 1] If you used the command SET: L = [0,1] sum(L) = 2 The answer I need would be: 3. Each pair of answers would be one point, as it has two '0' = 1, one…
-
0
votes0
answers546
views -
3
votes2
answers672
viewsRemove comma out of square brackets - Regex
I am trying to remove the comma that is located outside the brackets of the following excerpt: 2||Azul||Cor||["#1983ff", "#1983ff"],3||Amarelo||Cor||["#fff73d"] I need the comeback to be that way:…
-
0
votes0
answers251
viewsImage does not appear - php
I’m trying to bring the Mysql database image to a PHP page but it doesn’t appear. Follows the code: <!doctype html> <html> <head> <script src="jquery.js"…
-
1
votes1
answer193
viewsProblem with HTML link with classic ASP
The following piece of code is giving me trouble: While not rsQuery.EOF If vStrCurso <> rsQuery("SIGLA") Then ind = ind & "<p></p>" ind = ind & "<span><b><a…
-
1
votes0
answers101
viewsReplace a name in all mysql database tables
Good morning. I need to replace a domain that is in several tables of the comic. That would be the correct form? SELECT REPLACE('*', 'velho.dominio.com', 'novo.dominio.com'); As there are many…
-
0
votes1
answer24
viewsHow to check if a phrase/string contains words from a list in Kotlin
I’m having trouble with the operator in, when I have only one operating i can easily verify if a certain word is contained in a list, for example: fun main(){ val cores = listOf( "branco", "azul",…
-
0
votes2
answers642
viewsAutomatically fit DIV with CSS
Hello I’m trying to get s div’s to automatically fit together next to each other and if there’s no space on the side go and automatically fit from left to right, but it’s not working. NOTE: What…
-
1
votes1
answer222
viewsBackground transition with gradient
As far as I know, css does not support gradient backgrounds transition, but supports "flat" color transition, for example (background-color:#fff) How this effect was applied here, then?…
-
3
votes2
answers23592
viewsUsing a class function within another PHP class
I have two classes, which is the correct way to call a function of another class, the way below returns error class DB { public function __construct($user, $password, $database, $host) {…
-
1
votes1
answer401
viewsReport Viewer Schema 2016
When adding a parameter to a ReportViewer is happening from the version of schema move to 2016, which brings me to the following error when trying to render the report Message: Test method…
-
0
votes1
answer112
viewsMove sidebar to the right
I’m trying to move my sidebar with bootstrap in css to direct. but I’m not getting it. Could someone help? SIDEBAR: <div class="d-flex" id="wrapper"> <div class="bg-light border-left"…