Posts by Kiritonito • 421 points
13 posts
-
0
votes1
answer151
viewsA: C# - Read txt file and return value in textbox
The generated numDay values are going to the combobox, and there are other values already registered in the combobox (are same values in txt file) The problem must be there. You are entering all the…
-
0
votes2
answers43
viewsA: How to deserialize JSON Array in an Object Array?
Alter your ResponseObject for: public class ResponseObject { //public int count { get; set; } public ProdutoResponse response { get; set; } } Also note that you are using id_produtos (with s at the…
-
1
votes4
answers120
viewsA: How to filter an HTML tag and its contents with regular expressions in Shell Bash?
You can use this: ">(.*?) - TorraTudo</span>.*?#\d+;(?:\s?)banho I don’t have linux, I tested it on the Notepad++. Test and explanation is here. -- As I said, I don’t have linux, I’m in…
-
1
votes1
answer52
viewsA: Filter search block using regex
Try to use this regex: <select name="fromPort" class="form\-inline">\n(?:.*?<option value="(.*?)">.*?<\/option>\n){1,}</select>. Example here. regex above will return the…
regexanswered Kiritonito 421 -
0
votes1
answer263
viewsA: Read a txt file, insert into an array and display in a textbox in C#
I tested via console application, but it is fully possible to use this class in winforms. class Arquivo_Dados { private List<string[]> _data; private List<double> _fmtData; // Chamar…
-
1
votes1
answer33
viewsA: Problem when trying to split an array of randomly ordered numbers into two equal parts using Godot/Gdscript
You have to call randomize() before the arr.shuffle(). extends Node2D var a = [1,2,3,4,5,6,7,8,9] func _ready(): randomize() a.shuffle() for i in range(9): print(a[i]) Link for you to test: Here.…
-
3
votes2
answers114
viewsA: I’m doing a c job for college in case anyone can help
I don’t program in C, but I decided to test your code online, I only made two changes: the first, I put the initial value of re to 0, just like you did with the variables i and k. It was starting at…
-
1
votes1
answer45
viewsA: Circularcountdowntimer doesn’t change the time when I change the page
You don’t need (and I don’t think you should) to create the controller in the function build, since she will be called several times. I don’t know what you’re doing at the "Next" button event, but…
-
0
votes2
answers1372
viewsA: How to slide between pages horizontally using a fixed menu?
If I get it right, you want the page content to slide sideways, hiding the content while the new page appears sliding the opposite way, right? For example: I click on "Who We Are", the page "Home"…
-
2
votes2
answers56
viewsA: Build error
You typed wrong, it’s not prinft but printf. You can use the module operator as well... while (i <= 100) { i += 1; if (i % 2 == 0) printf('\n%d', i) }…
-
1
votes1
answer3482
viewsA: Calling PHP function at the click of a button
Sem Ajax Following your template (the page is updated when the button is clicked): <?php if(isset($_POST['delete_x'])) { $todo_id = $_POST['todo_id']; deleteToDo($mysqli,$todo_id,$journal); }…
-
8
votes3
answers894
viewsA: What is the difference between foreach uses in php?
I had seen this before, but I searched it just to confirm. There’s no difference, technically speaking. The second method is most used when there are html codes in the medium, for example: <?php…
-
5
votes2
answers276
viewsA: How to use INNER JOIN?
You didn’t say what this is self::$tableName.. what table is this? Event? Category? You want to count the number of categories in the Event table, but also select the corresponding value in the…