Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Ullallulloo
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291669 | Initial revision | — | 5 months ago |
Question | — |
What's the difference between colorMode and uiMode? In setting `android:configChanges` in AndroidManifest.xml, what is the difference between `colorMode` and `uiMode`? I hear `uiMode` is for changes between light/dark modes, which sounds exactly what `colorMode` would be. What is the difference? Do they both handle that? Does one handle/include someth... (more) |
— | 5 months ago |
Edit | Post #289984 | Initial revision | — | about 1 year ago |
Answer | — |
A: How do I get the min/max axis values in Chart.js? The equivalent in Chart.js would be: ```js xmin = chart.scales.x.min; xmax = chart.scales.x.max; ``` This can be found in the docs as an option common to all axes. (more) |
— | about 1 year ago |
Edit | Post #289897 | Initial revision | — | about 1 year ago |
Answer | — |
A: How do I install Chart.js as a file? If you're not importing it as a module but just including it through a `` tag, you can't use the regular file. You'll need to use the UMD file instead. You can either include it from a CDN (`https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.0/chart.umd.js`), or download that file, rehost it, and in... (more) |
— | about 1 year ago |
Comment | Post #288980 |
These are good leads, but unfortunately I only have one activity so `finish()` won't work as it stands. `onBackInvokedDispatcher` sounds like what I want, but I can't get it to ever call the callback. It always just does the default back button action alone even though I added `enableOnBackInvokedCal... (more) |
— | over 1 year ago |
Edit | Post #288946 |
Post edited: Fix code |
— | over 1 year ago |
Edit | Post #288946 | Initial revision | — | over 1 year ago |
Question | — |
How do I add functionality to the back button? How do I add functionality to the back button in Android without reimplementing the back button entirely? Prior to last year, I would just call `onBackPressed()` and then simply override it: ```kotlin override fun onBackPressed() { super.onBackPressed() doMyStuff() } ``` Now this is... (more) |
— | over 1 year ago |
Edit | Post #286901 | Initial revision | — | about 2 years ago |
Answer | — |
A: Can UWPNuGetPackages be moved to another drive? Apparently this is controlled by the registry value `Computer\HKEYLOCALMACHINE\SOFTWARE\WOW6432Node\NuGet\Repository\UWPNugetPackages`. I changed it from `C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\` to `D:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\` and now Visual Studio is hap... (more) |
— | about 2 years ago |
Comment | Post #286884 |
It's a build error, more specifically an error when I try to restore the NuGet cache. (more) |
— | about 2 years ago |
Edit | Post #286884 | Initial revision | — | about 2 years ago |
Question | — |
Can UWPNuGetPackages be moved to another drive? I'm trying to make a UWP app in Visual studio, but the NuGet package files have been huge. They just don't fit on my SSD, but I do have an HDD I could theoretically use. After a bunch of tinkering with different Visual Studio and NuGet configs, I've gotten the NuGetPackages folder onto another dri... (more) |
— | about 2 years ago |
Edit | Post #286206 | Initial revision | — | over 2 years ago |
Answer | — |
A: How to delete contents of a specific field, if it matches a pattern and there is nothing else in the field You're matching the regex pattern of `/-/`, so it just matches every individual hyphen, regardless of where. You want to match the entire entry if it's only hyphens, or `/^-+$/`. `^` – Beginning of line `-+` – One or more hyphens `$` – End of line Putting that in gives `awk 'BEGIN{FS=O... (more) |
— | over 2 years ago |
Edit | Post #286008 |
Post edited: Although I use PHP, this should apply equally to any CGI language like Perl, Ruby, or Python |
— | over 2 years ago |
Edit | Post #286008 | Initial revision | — | over 2 years ago |
Question | — |
How do I strip file extensions from URLs with H2O? I'm trying to use H2O to serve a multi-file PHP website without routing—just having a separate PHP file for every page. The relevant part of my H2O config currently looks like this: ```yaml paths: "/": file.dir: /home/mysite/www/site/ file.index: [ "index.php" ] file.custom-handler:... (more) |
— | over 2 years ago |
Edit | Post #284300 | Initial revision | — | about 3 years ago |
Answer | — |
A: How to append HTML to the DOM with JavaScript? First, I would warn you that using JavaScript here isn't best practice. It won't work for people without JavaScript and it will slow down the site some even for people with JavaScript. If you can do it server-side, that would be better for the users. That said, if you do want to do it with JavaScr... (more) |
— | about 3 years ago |