Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
77 views

I’m studying and implementing the Composite design pattern in C# for a university project. In most textbook examples (GoF, Refactoring.Guru, etc.) the class hierarchy looks like this: Component ├── ...
user31880897's user avatar
0 votes
0 answers
34 views

Is there an alternative to setXORMode in Java to do reversible graphics? I need to draw lines or rectangles, then redraw over them to undo them. AlphaComposite.Xor doesn't do it. A full repaint while ...
Wayne Maddison's user avatar
1 vote
0 answers
73 views

I am really confused. I have this postgis query : with f as ( SELECT ST_AsGeoJSON(p.geompos)::json As geometry, row_to_json((p.id_client, p.design_site, p.adresse)) As properties FROM ...
عبد القادر كعوان's user avatar
0 votes
0 answers
32 views

The instance's payload is complete and contains a complete value for each element, but when I run the program to generate the EDI Document, there is one element(DTM02) that does not have a value in ...
Dwight Seno's user avatar
0 votes
1 answer
165 views

I have a LazyRow containing multiple Card items that the user can scroll through. I wanted this to be snapping to each of these items, so I added flingBehavior to the LazyRow. My question now is: How ...
dennisklad's user avatar
0 votes
0 answers
149 views

I'm trying to implement a Open GL (4.6) setup with the Composite pattern (for a scene graph with Node, Cube and TransformNode classes) and the Visitor pattern (with a DrawVisitor to handle rendenring)....
Luis Angel Urena Lopez's user avatar
0 votes
0 answers
84 views

Here i given below my table schema Schema::create('yarn_work_order_items', function (Blueprint $table) { $table->id(); $table->foreignId('yarn_work_order_id')->constrained('...
Anis's user avatar
  • 161
0 votes
1 answer
53 views

I'm using BindingListView recommended here Generic IBindingListView Implementations and I wanted to apply a composite predicate as a BidingListView filter: var lst = new List<DemoClass> ...
ShamilS's user avatar
  • 1,654
0 votes
1 answer
80 views

I have 1:N relation where parent table LOCATIONS contains fields server_id and location_id and table DEVICES is related to the LOCATIONS throught fields server_id and location_id. How can I establish ...
Čamo's user avatar
  • 4,413
0 votes
1 answer
91 views

I'm trying to think of the best way to design a table for my database when I need a search screen. Let's say I have a search screen of lastName, ssn, firstName, address. I want a user to be able to ...
ryan's user avatar
  • 91
0 votes
0 answers
41 views

I have the following DB model (all fields are not nullable): File SourceTypes ----------- ----------- country PK country PK filename PK sourcetype PK sourcetype sourcename ...
David Caballero's user avatar
0 votes
1 answer
326 views

I am getting this error when trying to query ElasticSearch (in case it matters, I am using python to query it): elasticsearch.BadRequestError: BadRequestError(400, 'parsing_exception', 'Expected [...
user2433759's user avatar
0 votes
1 answer
216 views

Just to give some background, we are refactoring our action for fetching secrets and we are trying to keep it compatible with our old action, so that we don't have to rewrite all of the workflows to ...
Erik B's user avatar
  • 43.1k
0 votes
0 answers
55 views

I'm currently using Neon to use Postgres from a serverless origin and have been needing to find a way to use ARRAY and ROW under ''s with no success. Example UPDATE communication.messages SET ...
SwordOfSouls's user avatar
0 votes
1 answer
757 views

I hope to ask a question about composite report building. Context: I am building a composite report showing the number of leavers and active headcount by Country. So far, I have a matrix report as sub-...
Hoang To Duc's user avatar
0 votes
0 answers
144 views

I implemented composite design pattern for calculating the nested mathematical expressions modeled in a binary tree. I need to hold two base class pointers *left,*right in my derived composite class. ...
hamid's user avatar
  • 19
0 votes
1 answer
56 views

I have created a composite template. for every document added in the composite template , there is same signing tab is added in the document eg- 3 documents then 3 tabs one over above. I want one tab ...
surabhi chaurasia's user avatar
0 votes
0 answers
72 views

Have any of you guys ever created an MVC RuleEngine UI editor with composite pattern in .NET Core? How did you do that? I struggling with rendering that Tree and making it bindable to model for ...
Zamash's user avatar
  • 13
2 votes
1 answer
175 views

I have WooCommerce 8.0.3 installed on my e-shop. In short, let's say I have an order with ID 123 in status processing. In a specific situation, I'm running this code: // Make sure e-mails are ...
Pavel Vybíral's user avatar
0 votes
1 answer
28 views

i am thinking how is it possible to generate dynamically the modules along with text and button In the image there are three modules but there might be even five or six modules. Please help to ...
vmaya003's user avatar
0 votes
0 answers
786 views

I have a job that calls a composite action as below: CHANGE_ORDER: needs: - SETVARS runs-on: 'windows-latest' steps: - name: Process CO Change Order uses: mmctech/...
Ashar's user avatar
  • 3,195
0 votes
0 answers
355 views

Below is my caller action yml [Github Actions workflow] that gives error upon calling composite action: --- name: RECYCLE_dev workflow_dispatch: inputs: ENVIRONMENT: type: ...
Ashar's user avatar
  • 3,195
0 votes
1 answer
985 views

I would like to add a composite unique index like this on Town having Zip as a ValueObject and Country as a navigation property whose Id is not explicitly specified : x.HasIndex(t => new { t.Zip....
ThierryCattel's user avatar
5 votes
1 answer
5k views

For one of my projects, I am setting an action output from within a bash script that is executed inside a composite action. I found that GitHub has excellent documentation on how to create a GitHub ...
rickstaa's user avatar
  • 590
0 votes
2 answers
83 views

I just started learning coding (mainly Java) for about 6 months at a University and now we just covered section of Composite design pattern (with Component, Leaf and Composite classes). My class ...
Tlmua's user avatar
  • 3
0 votes
1 answer
193 views

I am learning design patterns and I stumbled upon a task that interested me, but I failed completing it. I have an interface Box, that has two extending class, let's call it Leaf and BoxContainer. I ...
Bajter's user avatar
  • 7
0 votes
1 answer
75 views

This is the new Composite class for a Multiply(Overlay) effect made by Kristopher Ives(Howto perform a MULTIPLY composite effect using Graphics2D). As far as I can tell he's been inactive for quite ...
TheRatKing's user avatar
1 vote
1 answer
451 views

I'm trying to build a composite pattern in Twincat 3.1. Everything seems to work fine on Activate Configuration and the first new download or online change. The second new download causes General ...
Krystian's user avatar
1 vote
1 answer
424 views

I have a series of PNG images (ABC_a.png, ABC_b.png, XYZ_a.png, XYZ_b.png, BCA_a.png, BCA_b.png etc.) and would like to compose every image of the same code (i.e. the name of an image without _a or _b)...
sparani's user avatar
  • 31
0 votes
2 answers
596 views

I apologize up front. I'm going to struggle articulating this question. TL;DR - I have an object I'm using to call a method in the subclass. That method needs access to a method in a parent class (...
Jim's user avatar
  • 1,626
0 votes
1 answer
509 views

I'm trying to build a File system such that contains the following classes: FileSystem, Directory, File. My code is: public class FileSystem { private List<Directory> ld; public ...
Xavi's user avatar
  • 125
0 votes
1 answer
171 views

I can't find an answer to this anywhere. I have an indexeddb composite index of a group id and a time, which I use to sort. let tmp_CREATEDTIMEindex = texts.index('GROUP_ID, CREATEDTIME'); This works ...
JPD's user avatar
  • 73
0 votes
0 answers
90 views

I am trying really hard to make my code to print the files and the directories in the same way that the command 'tree' in unix print. What do I need to do so it will work? I'm stuck on it to much ...
May Sohatchevzzki's user avatar
0 votes
1 answer
693 views

My code works and outputs "This is Bob Martin from USA." However, I want my code to: 1.) Have function printBio(user) return a string. The return value from the function should be a string. ...
Niko Nota's user avatar
0 votes
2 answers
535 views

so Im trying to get my code to print out a message that returns 'This is Bob Martin from USA'. This is what I did so far. I've been trying to figure out what went wrong but can't seem to get this to ...
Niko Nota's user avatar
0 votes
0 answers
70 views

So I'm currently refactoring this "CardElement" system that had logic related to "When claim button is clicked, lockIcon object deactivates" but i want to split up this CardElement ...
André Escrich's user avatar
0 votes
0 answers
118 views

original file Watermark img After apply watermark Code for PSD to PNG conversion: /usr/local/bin/convert /tmp/1657736296-sample1.psd /tmp/sample1.png Code for watermark apply on converted PNG file ...
Rams's user avatar
  • 59
0 votes
1 answer
63 views

/usr/local/bin/composite -gravity center "/tmp/watermark_12809_1657557870.png" "/tmp/1657557870-sample1.psd" "Rams_1657557871.psd"
Rams's user avatar
  • 59
2 votes
1 answer
100 views

I have this design which I self-proclaim to be Composite Pattern, though I'm not entirely sure about that. So I'm aksing for your statement on this. This is the interface which collectively describes ...
Ngọc Hy's user avatar
  • 300
1 vote
0 answers
40 views

I am trying to get composite aggregation for certain feilds which are present in each document. These documents are stored in elastic. Format of each document is a json with below mentioned keys. {&...
Robin Rawat's user avatar
0 votes
1 answer
1k views

I'm trying to create in image generator where I can create all permutations of an image given different elements on 3 layers. I have managed to get the three folders into arrays and am trying to use ...
James Stephen Brown's user avatar
0 votes
1 answer
605 views

I have several tables in my PostgreSQL database that need to contain timeseries like information in an IoT-link context, that require several data types supported for the value of each point in the ...
Manu Sisko's user avatar
0 votes
1 answer
114 views

Given two sets of integers P and C of the same length. How can I find ALL matching sums of consecutive elements at the same starting and ending positions in the two sets, including overlapping subsets?...
Ali Adams's user avatar
0 votes
2 answers
60 views

I have the following code. I want to start the for loop at the index found in the for loop. essentially, I'm slicing the list (R_sigma11, etc.) into two to search for duplicate numbers in that list ...
Brandon Zabriskie's user avatar
2 votes
1 answer
148 views

I have a class Vehicles with three list fields, namely: turboVehicles : List<ITurboVehicle>, trailerVehicle : List<ITrailerVehicle>, vehicles : List<IVehicle>, (containing all ...
hi there's user avatar
0 votes
1 answer
2k views

I am trying to call 3 futures, wait for them to complete, process the results and then return all of this also as a Future. I cant seem to figure out how to "wrap" the 3 futures in a future ...
Neil Collier's user avatar
0 votes
1 answer
281 views

First to clarify the title, I know there is no such thing as interface literals in Go but I couldn't come up with another name for this issue. I was reading some Go code and found a weird construct, ...
fresanov's user avatar
0 votes
2 answers
483 views

The Gang of Four book states the following: [...] The main relationships in MVC are given by the Observer, Composite and Strategy design patterns. The best example of this I could find was this ...
user32882's user avatar
  • 6,107
0 votes
0 answers
103 views

Does the composite design template adhere to the principles of solid? if all the compositing method are declared at the component its violation of the Interface Segregation Principle. if compositing ...
Itay Shwartz's user avatar
0 votes
1 answer
82 views

I have created 2 labels and I wish to move these labels to the right most side of the screen. I have created a new composite for the 2 labels and set the labels with the label composite. But now the ...
georgek's user avatar

1
2 3 4 5
20