Cristian M

1

votes
1

answer
1.1k

views

How to broadcast HTTP request?

I'm designing a data acquisition system with sensor nodes that communicate with a server using HTTP, in Mono/C#. I'm using basic HttpWebRequest and HttpListener to implement the communication. The server will have an app with a Search button to find and display nodes present in LAN. Basically the no...
Cristian M
1

votes
0

answer
61

views

How to specifiy MonoRemoteDebugger application folder?

I'm using MonoRemoteDebugger to develop an app remotely in C#/Mono from Visual Studio 2017 on a Raspberry Pi/Raspbian. I've noticed that the app is placed inside a Temp folder, in MonoRemoteDebuggerServer folder. I was wondering if it's possible to configure MonoRemoteDebugger to place the app in a...
Cristian M
1

votes
2

answer
433

views

Watir is unable to locate elements from a collection

I've just run into this, and it is a bit of a struggle in handling elements from collections. In my case, I am trying to parse through a table and check the values contained in the cells of a column. Here is the code: def check_cells_values(table, cell_index) table.rows.each do |row| row.cells[cell_...
Cristian M
1

votes
1

answer
1.4k

views

How to avoid 'MissingManifestResourceException' after chaning Assembly Name?

I encountered this exception after changing the assembly name (the default namespace remains the same). An exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll but was not handled in user code Additional information: Could not find any resources appropriate...
Cristian M
2

votes
3

answer
2.1k

views

Ruby / Watir-Webdriver - Cannot access the file after downloading it

I am working on a tests scenario that downloads a file from a website and adds it to folder. For the download part, I am using the code described on the browser-downloads page within the Watir documentation. The main problem was encountered in my tests when I am waiting for the file to be downloade...
Cristian M
2

votes
2

answer
73

views

The “expected_title” procedure throws wrong error on expected title

I have some issues with 'expected_title' procedure from watir-page-helper. It is throwing an error like the current web page has a different title than the expected one, although it is the correct title: RuntimeError: Expected title 'Some title' instead of 'Some Title'. This happens randomly, and my...
Cristian M
2

votes
0

answer
303

views

How to make Validation.GetHasError() return the correct value for DataGrid?

I have a DataGrid with input validation and I want to disable a button if it contains validation errors. I check for such errors using the following code: private void sequenceGrid_LostFocus(object sender, RoutedEventArgs e) { // This method is called on any click outside the current cell ((DataGrid...
Cristian M
2

votes
3

answer
458

views

How to deselect DataGrid cell?

I'm using a DataGrid in cell edit mode. I want to deselect the currently edited cell when clicking outside the cell (the click can be on another cell, another control, on the window, on other grid, anywhere). I'm using this code, but it works when clicking only on another control (e.g., if I click o...
Cristian M
2

votes
1

answer
1k

views

How to add a marker at a specific point in a Dynamic Data Display plot?

I'm using a Dynamic Data Display (v0.4) plot and I want add a circle marker at a specific data point of series to highlight the position of the maximum value of the plot. Taking into account the very small amount of documentation and examples provided by the developers of Dynamic Data Display, does...
Cristian M
2

votes
1

answer
3.5k

views

How to show an animated loading form while executing code in Windows Forms C#

I want to display an animated loading form while executing some code in the main form. The animated form is used only to show the user that an operation is executing and I want to close it once the operation finishes. The code that I'm using is: public partial class Form_main_admin : Form { private...
Cristian M
1

votes
1

answer
43

views

PHP/SQL - IF conditional not working as intended

I'm new to programming and I've been learning a lot recently. Currently I'm working in PHP with SQL tables. I have a function in a system similar to renting where each item 'rented' generates a row in the table with the user and item data, but I need to limit it to just one kind of item for each use...
Cristian M.
2

votes
2

answer
2.2k

views

How to configure MySQL for local and remote access?

I'm using MySQL server version: 10.1.23-MariaDB-9+deb9u1 Raspbian 9.0 on a Raspberry Pi. This is my /etc/mysql/my.cnf: # The MariaDB configuration file # # The MariaDB/MySQL tools read configuration files in the following order: # 1. '/etc/mysql/mariadb.cnf' (this file) to set global defaults, # 2....
Cristian M
4

votes
0

answer
270

views

Simulate FORCE TOUCH on any mac

OSX's new force touch seems like a great way to extend the functionality of an input device, however it only works with the new macbooks. Since the OS supports the feature, is there anyway to trick it into thinking that a long press is a force touch? Thanks.
Cristian M.
2

votes
3

answer
3.1k

views

Schedule a Python script via batch on windows (using Anaconda)

I have a script that i run every day and want to make a schedule for it, i have already tried a batch file with: start C:\Users\name\Miniconda3\python.exe C:\script.py And im able to run some basic python commands in it, the problem is that my actual script uses some libraries that were installed w...
Cristian M.
0

votes
1

answer
69

views

How to bind DataGrid to more collections?

I have a DataGrid bounded to a ObservableCollection (StoredSequences): The Sequence model: public class Sequence : INotifyPropertyChanged { public Sequence() { } private int _id; public int ID { get { return _id; } set { _id = value; OnPropertyChanged('ID'); } } private string _nameEnglish; public s...
Cristian M