Interesting questions
-
0
votes2
answers6769
viewsConvert pandas data frame to array
I have a data that, from . txt, I converted to a Dataframe (DF) with pandas. For the various activities I performed it is very convenient to be a DF. There is only one column with values, beyond the…
-
0
votes1
answer966
views -
0
votes1
answer973
viewsIs it possible to add Node script data to html?
I am quite beginner under the Node.js, but wanted in humility to understand why a code only appear on the console.log of Node and not be able to store in some variable so that I can manipulate it in…
node.jsasked 8 years, 3 months ago Henrique N. Mendes 328 -
-1
votes1
answer175
viewsLaravel 6 custom validation
Hi, guys! I’m new in Laravel and wanted to ask a question about the validations. This is my controller. When I call the Validator, i am passing the arrays to Rules, messages and Attributes.…
-
1
votes1
answer208
viewsMultiple ADD INDEX together or separately?
I wanted to know the practical difference between this, in Mysql: ALTER TABLE `tabela` ADD INDEX `col1` (`col1`); ALTER TABLE `tabela` ADD INDEX `col2` (`col2`); For this: ALTER TABLE `tabela` ADD…
-
1
votes1
answer193
viewsAndroid Toolbar occupying all layout space
I’m trying to carry out the implementation of a Toolbar in my Android application, but for some reason it takes up all screen space. I wonder why, since I am using the Below property in the layout…
-
0
votes1
answer164
viewsRedux, how to access store state variables in functions
Hi, my question is if I can access store variables in functions, something like: --usuarioReducer.js-- const initialState = { usuario: {}, isAuth: false } --root.js-- import { Redirect } from…
-
0
votes0
answers15
views"Error enabling offline persistence" with angular and firebase during execution
I’m trying to convert a project to universal angular. When executing the command npm run dev:ssr it builds normally and shows the message Compiled successfully. ** Angular Universal Live Development…
-
3
votes1
answer39
viewsIs there any way to run an event whenever the Sqlconnection.Update method of Dapper.Contrib.Extensions runs on an entity?
I’ve been using Dapper for a short time and so I have little experience with it. I wonder if there is any way to detect changes in a specific field. I need this because in a given table, every time…
dapperasked 8 years, 3 months ago Wallace Maxters 102,340 -
1
votes0
answers25
viewsTextfield with initial value in Constraintlayout
I am unable to identify the error in the XML specification, with each character added at the Textfield startup, which is inside the Constraintlayout, the root Linearlayout increases the height. In…
-
0
votes0
answers65
viewsHow to create Procedure in PL/SQL, Passing CPF as Paramento and returns 1 if it is the birthday date of the CPF informed and 0 if it is not
How I created this project in PL/SQL? i created in SQL SERVER, is working however, I need to create also in PL/SQL. CREATE PROCEDURE [dbo].[SP_DataAniversario] ( @CPF VARCHAR(20) ) AS SELECT * FROM…
-
-1
votes2
answers72
viewsWhat is the most practical way to change the sign from a numeric variable to a positive one?
That is, when the variable number is randomly generated, it can be positive or negative: I’m currently using: if number < 0 : number = number* -1
python-3.xasked 7 years, 3 months ago Vitor Oliveira 130 -
1
votes1
answer131
viewsOutput of largest matrix value exiting incorrect
The code does not print the highest value of the matrix informed by the user #include<stdio.h> #include<locale.h> int main(void){ setlocale(LC_ALL, ""); int n, m, o=0, posic, posic1; int…
-
0
votes1
answer328
viewsIf the user enters such number in the console will do an action
How do you when the user enters such a number in the Console will do an action? For example: Console.WriteLine("Escreva 1 para acontecer algo, 2 para acontecer outra coisa"); In case I don’t need…
c#asked 8 years, 10 months ago Leonardo Araujo 55 -
0
votes1
answer454
viewsAndroid open image by the way
We can see that there are several tutorials on how to save the path of an image, being a photo of the camera or selecting from the gallery, until then ok, but how to search again the image along the…
-
6
votes1
answer407
viewsPhoto taken by my app does not appear in Gallery
When generating the photo through my app it correctly creates the folder and saves the photos taken there, but when I go in the Mobile Gallery is as if the photos did not exist, the default Android…
-
6
votes2
answers1334
viewsHow to automatically scroll to the top when viewing the page footer?
I’m making a site, which has some animations, and when arriving at the bottom of the site for the first time, should trigger an event where the page goes back to the top, but in the following times…
-
4
votes3
answers71
viewsConditional column based on multiple dplyr lines
I have this df: structure(list(id = c("R054", "R054", "R054", "R054", "R054", "GT68U", "GT68U", "GT68U", "GT68U", "GT68U", "G001", "G001", "G001", "G001"), car1 = c("sim", "sim", "sim", "sim",…
-
0
votes1
answer34
viewsSite menu does not work on some mobile page
I made a site where the menu is inserted in all pages through a include. It turns out that on some pages when the menu gets in the format for mobile devices works normally and on other pages it does…
-
-2
votes1
answer35
viewsDoubt in the padding bottom
Does anyone know the ERROR of this code? the paddim bottom simply doesn’t work... thank you <html> <head> <title>Olá, me chamo Ana</title> <style> body{ font-family:…