Categories
Development

Prism 7 Register Multiple DialogWindow

I want to have 2 types of dialog windows that hosts the view for example one with WindowStyle=ToolWindow and another WindowStyle=None and a way to indicate which to resolve I thought of doing like this in the UserControl that i want to host: this.Loaded += delegate { var window = Window.GetWindow(this); window.WindowStyle = WindowStyle.ToolWindow; } […]

Categories
Development

Word Counting in lists

I am having a project of which the goal is to count words in a string (unigrams). One of the most obvious ways to approach this is by splitting the string up to lists and then have the program run so it can see if any list items are the same; finally, put the word […]

Categories
Development

controller method won’t accept the params I send through a button although they are sent

I’m a begginer and I’m having trouble figuring this one out. Also, I don’t know of a way of testing this piece of code because I’m using ActiveStorage and the method that is giving me trouble connects to an AWS API which uses the URi inside an S3 bucket, while my local files are, well, […]

Categories
Development

Excel 2013 not displaying Form Controls (Not a hide/visible issue)

A single machine, Windows 10 & Excel 2013, will no longer correctly display spreadsheets that have Form objects. ActiveX objects do display. Form Control combo box ActiveX combo box Have removed and reinstalled Office, removed and reinstalled Visual Studio 2010, followed suggestions for FM20.dll and FM20ENU.dll, all to no avail. All updates to Office and […]

Categories
Development

How to run a utils POD on K8S which doesn’t run a process

I have this docker image which has many useful tools installed. I use it inside docker to debug stuff, like testing connections to other containers. Now I would like to use this image in Kubernetes. However, because it doesn’t run a process the pod will not start Dockerfile: FROM ubuntu:latest RUN …. useful tools … […]

Categories
Development

Classify the input set into categories based on pre-defined rule set

I’m trying to solve a problem where there are 2 input files given, Input 1: A set of strings in the format. All the strings start with “A”. A-B-C-D A-B-C-3 A-X-Y-Z-4 A-X-5 A-X-P-Q-R A-X-P-Q-S A-M-9-P A-M-10-Q A-M-N-G-3 A-V-B-H-3 A-J-K-L-3-S-Y A-U-3-W-E Here A,B,C,D,X,Y,Z,M.. (All alphabets are keywords and integers are placeholders) Input 2: A set of […]

Categories
Development

#1408 – Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler

I have installed xampp-linux-x64-7.3.9-0-installer.run on manjaro linux. Everything was installed perfectly but when I run query: SET GLOBAL event_scheduler=”ON”, here is the error: 1408 – Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.

Categories
Development

How can I make the execvp function execute each command line argument?

I’m trying to write a program that takes multiple command line arguments from the same line of input (e.g. /bin/uname /bin/date) before executing them and indicating that the process has completed successfully. When I use an infinite loop the program prints each execution out perfectly, however the question stipulates that the parent process must terminate […]

Categories
Development

How to call methods in a class of generic type T on variables of the same type but that are not declared Kotlin

I’d like variable f to be as the same type of the generic parameter F, but I can’t declare f in the constructor of the class. class myClass<F: myInterface>( private val v1: String, private val v2: String, ){ f.methodOfMyInterface() }

Categories
Development

how to create inside curve using relative or linear layout in android

How to create this in android layout i tried many ways but i didn’t found any method to do this <shape xmlns:android=”http://schemas.android.com/apk/res/android” android:shape=”rectangle”> <corners android:radius=”100000dp” /> <solid android:color=”#5fb0c9″ /> <stroke android:width=”-5dip” android:color=”#3da8c9″ /> <padding android:bottom=”-4dp” android:left=”-4dp” android:right=”-4dp” android:top=”-4dp” />