Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

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 mcalex‭

Type On... Excerpt Status Date
Edit Post #290133 Initial revision about 1 year ago
Question Angular Testing fails with Service.method is not a function
I'm trying to write a spec test for a (correctly working) Angular component, but it errors when calling a service method with: `TypeError: this.myService.getSomeData is not a function` The service: ``` export class MyService implements IMyService { constructor(private apiService: ApiHtt...
(more)
about 1 year ago
Edit Post #288255 Initial revision over 1 year ago
Question grep AND search for multiple words in files
I have text (xml actually) files. Some files contain 'foo', some contain 'bar', some contain neither and some contain both. It's the both I'm interested in. How do I do an AND search on words in files in folders (recursively) with grep? I'm using git bash in windows, so either a cygwin or win10...
(more)
over 1 year ago
Edit Post #288201 Post edited:
over 1 year ago
Edit Post #288201 Post edited:
over 1 year ago
Edit Post #288201 Initial revision over 1 year ago
Question Generating nested repeating values with JSON Generator
Hi, I'm trying to use the JSON Generator to create data with nested repeating values. I want to create 100 objects with an ID, Name, and Code. The Id is incremented from 0 to 99, but the Code (prepended with 'code-') is incremented from 0-24 and then repeats (so row 25 will have an Id of 24 and a...
(more)
over 1 year ago
Comment Post #287815 Thank you Peter, that solved it. I was confused over names, it seems. I expected 'Environment Variable' to be things like %path%, %java_home% and 'Configuration Parameter' to be a parameter that you pass to the configuration. :-)
(more)
over 1 year ago
Edit Post #287817 Post edited:
alternate approach
almost 2 years ago
Comment Post #287817 My apologies, I wasn't entirely clear on that point. I meant that, under the OP's actual question, we add a small ChatGPT box with the question as posted to ChatGPT, and its answer. All the community-based responses will still be responses to the original, unedited (except for human purposes) quest...
(more)
almost 2 years ago
Edit Post #287817 Initial revision almost 2 years ago
Answer A: Should we allow answers generated by ChatGPT?
This may be a bit out of left-field, but I don't see anybody else taking the approach. Let's face it, ChatGPT and AI and all its quandaries are not going away. If we put a ban in, some clever clogs will work out a way to bypass, just for the sake of it. If we allow ChatGPT open slather, the qu...
(more)
almost 2 years ago
Edit Post #287814 Post edited:
almost 2 years ago
Edit Post #287814 Initial revision almost 2 years ago
Question TeamCity build variables
I want to pass a variable to TeamCity (on prem) to choose between deployment environments (there are 14 of 'em - don't ask) when running a TC deployment configuration build which uses a PowerShell script. I have created a Configuration Parameter in TC's 'Parameters' area: Image DEPLOYENVIRONMENT ...
(more)
almost 2 years ago
Comment Post #286813 Late to the party and data-presentation is fine, but I'd've suggested 'table-layout' if I'd been on time. Thinking from the PoV of someone scrolling through tags, I'd envisage charts and graphs go in 'data-presentation' rather than tables (tables are almost the 'plain-text' version of data-presentat...
(more)
about 2 years ago
Edit Post #286934 Initial revision about 2 years ago
Question Input date in Angular Material date picker in dd/MM/yyyyy format
I am trying to create an application that takes a date as user input which is then passed as a parameter to an API call. The local date format is dd/MM/yyyy. I want the user to be able to enter the date via the input OR the `mat-datepicker` in the local format. Standard syntax for reactive for...
(more)
about 2 years ago
Edit Post #286567 Initial revision over 2 years ago
Question Order a subcollection from linq
I am using linq/EF core to retrieve data via an API call. How do I sort the collection of related data for each retrieved entity? Assume the following structure: an Order is made on a certain date, and is comprised of (inter alia) a collection of OrderLines, where an OrderLine comprises a Prod...
(more)
over 2 years ago
Comment Post #284403 Prolly just a typo, but you have BLOCKED_TYPE for both R.drawable.block and R.drawable.rejected. Also, is `getItemViewType()` correct? It takes an int and returns that int? - I don't think this solves the problem, however
(more)
almost 3 years ago
Comment Post #284778 I think you want to change your query to actually retrieve the merchant and product names. At present, (in terms of what you are interested in) it just retrieves the product ID number. Change the sql to something like select product_id from cart, product_name from products, merchant_name from merch...
(more)
almost 3 years ago
Edit Post #284530 Initial revision about 3 years ago
Question Are general questions (hopefully resulting in comprehensive, 'canonical' answers) in scope
Co I'm a database/desktop dev venturing into programming web apps using Angular and I've been informed 'functional reactive programming' is something I should be aware of. Some other site has a general question on FRP, but a) it is locked - off-topic but has historical significance, b) it is ove...
(more)
about 3 years ago
Comment Post #284507 >>Bug 3 is about returning an ApplicationUserDTO: Understood, it was the SO answer that sent me down the Observable path. re: returning before being assigned, I figured that returning a subscribed observable was similar to `return await`ing in C#. I also didn't realise about the observable being po...
(more)
about 3 years ago
Comment Post #284507 Many thanks @meriton lol, ok so the code I had sort of took care of bugs #2 and #3 ie I had, a) wrapped the api call in the service in `if(!this.currentUser) { }` to save hitting the server and b) like you said, I was returning the `ApplicationUserDTO` type instead of any. I'm still a bit confus...
(more)
about 3 years ago
Comment Post #284414 Confused about whether you have the .jar file or not. If you don't, see Moshi's comment. If you do, in the project list, right-click libraries, select Add, then navigate to the jar file.
(more)
about 3 years ago
Edit Post #284499 Initial revision about 3 years ago
Question Retrieve user details from service in Angular
Angular 12; .NET Core 3.1 Following a code-maze tutorial, I have a working authentication (registration/login) service using .NET Core Identity. After login, I would like to add 'username' data to my app's header component and a 'Welcome username' message in the home component. I used `ng g s...
(more)
about 3 years ago
Comment Post #283615 Server Side Includes ([SSI](https://en.wikipedia.org/wiki/Server_Side_Includes))? but you need to configure the server
(more)
about 3 years ago
Comment Post #281566 Hi @Alexei, many thanks, I don't quite recognise the syntax, but managed to work out the old skool curly brackets version. Upvoted, but how to accept? (or don't we do that here?)
(more)
over 3 years ago
Edit Post #281564 Post edited:
over 3 years ago
Edit Post #281564 Initial revision over 3 years ago
Question Save migration info in separate DB schema
When creating a code-first solution in dot net core using Visual Studio, you manipulate the database by changing model classes and migrating the changes. I can set the schema for tables that I create, but how do I set a schema for the migration table itself? Currently it defaults to 'dbo'. Is it...
(more)
over 3 years ago
Comment Post #278360 Stepping down through the ranges ... or reversing the comparison: if (f7<5;;if (f7<10; h7+1; if (f7<15; h7+2; ... )))
(more)
about 4 years ago