Posts by Borda • 100 points
11 posts
-
2
votes1
answer89
viewsA: How does an asynchronous method behave when executing a synchronous Python method?
When you call a synchronous code from an asynchronous function the Event loop will be locked until the synchronous function returns. That is, if it is a non-blocking call (e.g. a function that only…
-
0
votes1
answer114
viewsA: Python and Mysql tuple search
You can store the line id’s after each answer and use this as a condition in the next question with WHERE id IN (id1, id2, id3,...,idn). Keep asking until the id’s list has only 1 element.…
-
0
votes1
answer926
viewsA: Select higher value per row of two columns (Python)
You can use the .apply(). def max_value(row): return max(row['soma'], row['multiplicacao']) df['max'] = df.apply(max_value, axis=1) The apply function applies a function to each row (when Axis = 1)…
-
-2
votes1
answer229
viewsQ: How to enable Basic Authentication in Nginx for an Angular path?
I have an angular application where I want to protect a specific path with basic HTTP authentication. The application paths are meusite.com.be/#/example-path. The Nginx configuration file looks like…
-
1
votes1
answer112
viewsQ: Best way to distribute program using a Shared library
I wrote a program that uses a library called curlpp. The program is very simple and all it does is make an HTTP request that returns a JSON (use the curlpp to perform this request), parse this JSON…
-
4
votes2
answers81
viewsA: App with Maps
It has how to do this in Eclipse yes, however, it is much easier and productive to do in Android Studio. Android Studio ta in version 1.2.2 and is very stable. Includive Google already recommends…
-
3
votes1
answer79
viewsQ: Undefined Reference to Symbol when compiling program in C++
I’m testing the curlPP library and wrote the following program: #include <iostream> #include <curlpp/cURLpp.hpp> #include <curlpp/Easy.hpp> #include <curlpp/Options.hpp>…
-
1
votes3
answers623
viewsQ: What is the best way to share variables between 3 Activity’s?
I have the variables: photo_path audio_path commentary And I would like Textoactivity, Send Alertactivity and Audioactivity activities to share these variables and keep the same value regardless of…
-
1
votes1
answer98
viewsA: Unexpected response when capturing text from a Textview
Apparently Textview is always filled with an empty string (""). Just swap if (txt_photo_path.getText().toString() != null) for if (!txt_photo_path.getText().toString().isEmpty()) that worked…
-
2
votes1
answer98
viewsQ: Unexpected response when capturing text from a Textview
I have to test a certain Textview to see if it is filled in the onCreate() of Activity and if it is filled, I have to change the image of an Imagebutton. I’m using the following code for this: if…
-
0
votes1
answer1278
viewsQ: How to fill a Listbox using multi thread in VB . NET?
In a Windows Form Application I have a List Box that is filled from a list of IP’s. It works like this: there is a text file (config.eep) which contains a number of IP’s, by pressing a button to…