Categories
Mastering Development

increase the label size of a line chart in chart.js

I am unable to change the font of my labels. As you can see below I have a label that says “# of votes” and another label that says “# of points”. I want to make the size bigger for them. So i even added the following: label: { fontSize: 50 }, But I have […]

Categories
Mastering Development

How to calculate first occurrence of event, grouped by type?

Apologies for the basic question, I could not find the answer after searching. I have a table w/ team, fruit, event, and timestamp. CREATE TABLE table1 (`team` int, `event` varchar(6), `fruit` varchar(6), `timestamp` timestamp) ; INSERT INTO table1 (`team`, `event`, `fruit`, `timestamp`) VALUES (100, ‘seen’, ‘apple’, ‘2005-06-20 12:13:00’), (100, ‘bought’, ‘apple’, ‘2005-06-20 12:14:00’), (100, ‘seen’, […]

Categories
Mastering Development

Setting Datacontext

Okay, I’m going to try and explain my excercise now.. This is my PageOverzicht.xaml, and this code works. It gives me a dropdown with the colors of the flowers in (blue, orange, white, …). Now the datacontext is hardcoded to find the flowers with white color. Goal: set datacontext via code behind, so that the […]

Categories
Mastering Development

Replace the inside part only of the clicked element

Suppose I have the following list: export default { data() { return { items: { Apple, Orange, Appricot } } } } <script src=”https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js”></script> <ul> <li v-for=item in items></li> </ul> Now, I want to do the following: If I click on one of the list items, I want its inner side to be replaced with […]

Categories
Mastering Development

How To Stop Javascript Menu Underline from going to Dropdown Box?

Hello I created a menu underline in javascript. How do I stop the underline from going on the dropdown menu links? The problem is when I move the mouse out the menu and you still see the line. Please let me know what is the best way to fix this. Thank you so much. https://codepen.io/rubenjr005/pen/ExjQdjw?fbclid=IwAR1iXxZro17fFRKXmWKmi4N6sj0d_mRL6g4-MeVNaHip4IvUYM4YtCGJDPc […]

Categories
Mastering Development

How To Stop Javascript Menu Underline from going to Dropdown Box?

Hello I created a menu underline in javascript. How do I stop the underline from going on the dropdown menu links? The problem is when I move the mouse out the menu and you still see the line. Please let me know what is the best way to fix this. Thank you so much. https://codepen.io/rubenjr005/pen/ExjQdjw?fbclid=IwAR1iXxZro17fFRKXmWKmi4N6sj0d_mRL6g4-MeVNaHip4IvUYM4YtCGJDPc […]

Categories
Mastering Development

How To Stop Javascript Menu Underline from going to Dropdown Box?

Hello I created a menu underline in javascript. How do I stop the underline from going on the dropdown menu links? The problem is when I move the mouse out the menu and you still see the line. Please let me know what is the best way to fix this. Thank you so much. https://codepen.io/rubenjr005/pen/ExjQdjw?fbclid=IwAR1iXxZro17fFRKXmWKmi4N6sj0d_mRL6g4-MeVNaHip4IvUYM4YtCGJDPc […]

Categories
Mastering Development

How to extract a value from a function in javascript

Hello i am trying to fix a bug in my aplication, it is about “conway game of life”. i am trying to extract an array of values stored in a variable from a (js file) to another (js file) as seen in the code under, there are 3 colors each with a value an at […]

Categories
Linux Mastering Development

Bash: delete curly braces on a condition

please help how to remove curly braces from below string, only if * is found between them. i have found lot of answers on this topic, but in my scenario, i want to delete only those where condition is met i.e., {*} –> * name,apple,price,{50 70 80 80},color,{*} name,orange,price,{*},color,{80 30 40} expected output: name,apple,price,{50 70 […]

Categories
Development

How to manipulate the faces of a Rubiks Cube represented by a 2D array to perform face rotations

I am creating a project in C# that solves Rubiks Cubes. It will take the current state of the Rubiks Cube in as an input, and output a series of moves to perform to solve the cube using the designated notation. The Cube is represented by an array of 6 string arrays of length 9: […]