Categories
CMS Mastering Development

How to Use Redactor Custom Styles plugin?

I’m pretty new to CraftCMS. I can’t figure out how to get the Redactor Custom Styles plugin working (I could be wrong, but I’ve surmised that I need this plugin to add styles to prevent SVG code I’ve pasted into Redactor rich text fields from displaying at 100% width). Firstly, after supposedly installing the plugin […]

Categories
Mastering Development

How can I fix NUnit tests that succeed locally, but fails in Jenkins?

I have a unit test that is succeeding locally in Visual Studio and on the command line, but it is failing when Jenkins builds the pull request. There are 29 tests in total, but only one is failing and I cannot find a reason why this is happening. The method to test is this: RuleFor(url => […]

Categories
Mastering Development

I Can’t Set Some Formats into The Clipboard

When I try to store a strings into my HTML variable it works and It stores it on the HTML Formats but when I Try to store a string into the FileContents Format it doesn’t work. DataObject data_object = new DataObject(); string ST_FileContents = “Hello”; string ST_HTML_Format = “<p> Hi </p>\r\n<dt>Bro</dt>”; DataFormats.Format FileContents = DataFormats.GetFormat(49364); […]

Categories
Mastering Development

Need help in following Python script

I have to : Iterate through each file in the folder For each file: Rotate the image 90° clockwise, Resize the image from 192×192 to 128×128, Save the image to a new folder in .jpeg format I’ve written following script: #!/usr/bin/env python3 import os from PIL import Image def load_images(folder): images = os.listdir(folder) dst = […]

Categories
Mastering Development

In pandas dataframes, how would you convert all index labels as type DatetimeIndex to datetime.datetime?

Just as the title says, I am trying to convert my DataFrame lables to type datetime. In the following attempted solution I pulled the labels from the DataFrame to dates_index and tried converting them to datetime by using the function DatetimeIndex.to_datetime, however, my compiler says that DatetimeIndex has no attribute to_datetime. dates_index = df.index[0::] dates […]

Categories
Mastering Development

How do I recursively reverse a linked list?

Input: 5 -> 9 -> 8 -> 3 -> 1 -> 7 Expected Output: 7 -> 1 -> 3 -> 8 -> 9 -> 5 Issue: When I display the reversed linked list the result is 5. This is an issue because this should be the tail and not the head. The rest of the […]

Categories
Mastering Development Software

Generate step by step solutions for math

Which pipeline should I use to build an app that provides step by step solutions for math exercises? E.g. the user would type in an equation and the app would output the unswer, along with several intermediate steps that a human would perform to reach that unswer (factoring, isolating variables, etc). There are several apps […]

Categories
Ask Board Games Games

Are contractions like “I’m” legal according to the rules of Codenames?

There are some words on the board, “fine”, “good”, and “lost”. I’d like to use “I’m 3” to hit those words as spymaster. Would that be against the rules? This is the closest rule I could find in the official rules for the standard edition of Codenames. Compound Words English has three ways to write […]

Categories
Apple User Help

Pages: Can I follow links instantly?

Im considering using Pages for personal note taking, but one thing that slows me down is having to click "Open" on the pop out dialog for links. Is it possible to instantly follow the link instead of having this dialog pop up?

Categories
Ask Health Medical

Can you choke someone by compressing just one of their carotid arteries?

In my martial arts classes, I was taught that you need to compress both carotid arteries to choke someone. However, it’s been widely alleged that George Floyd was killed by the cop kneeling on his neck, where he could probably compress Floyd’s right carotid artery but not both. Is it possible to choke someone by […]