Interesting questions
-
0
votes2
answers172
viewsCompare datagridview VB
I have a form with 3 datagridview. dgv1 and dgv2 will carry a product code in column 01. dgv1 is the master, it has all products. dgv2 will only have some of these products. How to compare them and…
-
1
votes2
answers322
viewsDoubt about how to iterate on an Arraylist
I have this exercise below to do put in question "D" I’m struggling , if someone can explain me how I should do : a) Create an interface called ModeloContato with the methods getNome(),…
-
1
votes1
answer608
viewsDeploying logoff on my login system with UNSET SESSION
I have the following login file.php: <?php require_once('conexao.php'); // FETCH DATA FROM FORM USING METHOD POST // IF BUTTON NAME "LOGIN" IS SET if (isset($_POST['login'])) { // FETCH DATA FROM…
-
-2
votes1
answer41
viewsFunction within function - PHP
I want to do a function that generates a string in alphanumeric format ( XXXXXX-XXXXXX ) and did the following function for such: private static function generateCode() { function generate() {…
phpasked 7 years, 11 months ago Igor Oliveira 1,110 -
1
votes1
answer19
viewsIs there a way to replace the 0 of one column with values of another column in the dataframe in R?
I made a merge of 2 dataframes and I realized later that I had 2 columns that have the same information. As in the example below: linha qt_funcio nu_funcio ... 1 0 3 2 0 4 3 0 1 4 2 0 5 4 0 6 1 0 I…
rasked 5 years, 3 months ago Igor Moreira Alves 13 -
1
votes1
answer100
viewsHow I can prevent the user from pressing the button several times in a row in PYQT5
[Solved]I’m pretty beginner in pyqt, mainly in python, I’m with a problem I looked at several foruns, how can I prevent the user from pressing the button multiple times in a row? I already tried…
-
0
votes2
answers610
viewsHow to pass several variables to a View in Laravel?
How do I pass several variables to the same view? Something like: return "view('textos.index', ['textos1' => $textos1, 'textos2' => $textos2, 'textos3' => $textos3]);"…
-
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
7
votes1
answer3980
viewsIn which cases return the System Exception error.Outofmemoryexception
Which are the most frequent cases that can return this Exception?
-
3
votes2
answers2309
viewsWhat is the isset equivalent of PHP in Python
In PHP, if I want to know if a variable has been started, I use isset. How can I do the same in Python?
-
0
votes0
answers46
viewsPython script to calculate a series
Data n, print the value of Sn = 1/n + 2/(n-1) + 3/(n-2) + ... + n. This is what I tried to do: n =2 soma =1 for i in range(1,n+1): if n>i: soma+=i/n + i/(n-1) But it only works when n=2. Someone…
python-3.xasked 4 years, 11 months ago Ed S 2,057 -
7
votes2
answers355
viewsMaximize Solution: Sublist Construction Meeting Limit
Having a set of n-values, I need to divide these items into subsets that do not exceed the value (sum of all items) stipulated and assure me that the formation of the set is as close as possible to…
-
2
votes1
answer500
viewsError Signing XML, URI Invalid VB.NET
I have this code to sign an XML, because right now it asks for a URI, I know it’s a namespace that points to some site, but when I assign the URL, it gives an exception error. ' Cria a referencia…
-
3
votes2
answers145
viewsRecursive method to display the representation of an integer in a base
Write a recursive method base() which accepts a non-negative integer n and a positive whole 1 < b < 10 and present the basic representation b of the whole n. >>> base(0, 2) 0…
-
0
votes1
answer122
viewsMetatag Description - Special characters - Influence on SEO
My metatag description is composed of a text, which had accents. I create it in mine Controller MVC and sending to view via viewbag. However, in my html text (via display page source code) is…
-
-6
votes1
answer44
viewsWhat is the Regexp equivalent of split("") in JS?
I want to split the number PI 3.141593 into an array that does not contain '.' and all separate numbers. I tried to split . split(/[ .""]/g) but it didn’t work. What would be the equivalent…
-
0
votes1
answer84
viewsReturn malloc to pointer does not stay between functions
I have these two examples here: example 1: void copiaStr(char *a,char *b){ b = (char *) malloc(strlen(a)); for(int i = 0; i < strlen(a) ;i++){ b[i] = a[i]; } } int main(){ char *a = "alou"; char…
-
1
votes1
answer30
viewsHow is it possible not to use a dependency to compile, but to use it at runtime?
Studying build tools like Maven, I saw that it is possible to declare the scope of a dependency only as Runtime, which would make it impossible to compile a code that uses it. As this is possible,…
-
0
votes0
answers103
viewsPython connection with SQL Anywhere 16 fails
Hello! I’m trying to connect Python with a Sybase database but all the ways I try, ends up giving this error. Traceback (Most recent call last): File "C: Users Yuri.Mendonca Appdata Local Programs…
-
1
votes0
answers139
viewsJson, Hibernate, Spring boot
I’m having two situations that should do the same thing but don’t: package com.example.demo.entity; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import…