Skip to main content
0 votes
0 answers
45 views

How to Wrap ActiveRecord attr_encrypted Setter without Causing Infinite Loop in Ruby on Rails

I’m working with a Rails application that uses the attr_encrypted gem to handle encryption for sensitive data. Previously, we only stored the last 4 digits of the SSN. We’re migrating to store the ...
Nedim Ramic's user avatar
0 votes
1 answer
10 views

How to get reference to instance of class overriding the provider in Nest.js Testing Module?

I'm creating an environment for integration testing of Nest.js app. To mock external dependencies, I'm overriding the HttpService provider with my custom class, to be precise, with a facade class ...
Stanisław Kurzyp's user avatar
-1 votes
0 answers
123 views

multiple inheritance, ambiguous call of virtual methods [closed]

I was able to deal with the problem but still puzzled how to specify subclass method when using pimpl idiom. The code : #include <iostream> #include <memory> enum OneTwo { One = 0, ...
drus's user avatar
  • 503
0 votes
2 answers
44 views

SDL_Init() segfaults after somehow calling my close() function?

Why does this code: /* gcc test.c -o test -lSDL2 -Wall -Wextra */ #include <SDL2/SDL.h> void close() { printf("HERE\n"); SDL_Quit(); } int main() { SDL_Init(...
user25068231's user avatar
0 votes
1 answer
26 views

activeClass and hoverClass not work in jQuery UI Droppable

My drop function fires and everything seems correct but the hoverClass and activeClass does not change the div background. I've tried this under Chrome, Firefox, and Edge. It has to be something I am ...
hassan's user avatar
  • 3
0 votes
1 answer
51 views

How and Best Practices for Globally Customizing Angular Material UI Appearance? [closed]

I am using Angular 16 with Angular Material UI components in my project, and I want to apply custom styles like rounded corners, double-bordered inputs, custom fonts, etc. I have achieved this by ...
Najeem Fasil's user avatar
0 votes
1 answer
65 views

Custom LINQ Where Clause Processing for a DbSet in Microsoft Entity Framework & C#

I am using the Microsoft Entity Framework. Consider the following example code: public class person { public int Id { get; set;} public string Name { get; set;} public string DisplayName{ ...
William Holmes's user avatar
2 votes
1 answer
108 views

Understanding method overriding and constructor behavior in Java inheritance

I'm trying to understand the behavior of method overriding, constructor calls, and variable shadowing in Java inheritance. I have the following code class Base { int id = 1000; //Line n1 Base(...
happy's user avatar
  • 485
0 votes
0 answers
27 views

Sylius is not recognising the doctrine attribute overrides

I am overriding the column "id" of the Zone entity of Sylius with "zone_id" using the following Doctrine file: <?xml version="1.0" encoding="UTF-8"?> <...
Costas H's user avatar
0 votes
1 answer
62 views

Overriding @objc method from superclass

I want to override an @objc method in my derived class. The method declaration is the exact same as in the superclass: class Test: DGCharts.LineChartView { @objc private func ...
cheersmate's user avatar
  • 2,634
0 votes
0 answers
37 views

How to fix vulnerable version of a sub-dependency(with fixed version) using overrides in package.json

I'm trying to fix a vulnerability in a sub-dependency of a library in my JavaScript project. Specifically, the package @paralleldrive/[email protected] uses an outdated version of [email protected], ...
Registered User's user avatar
-1 votes
2 answers
85 views

Do I need to override constructor of base class? [duplicate]

I have a base class B, from which I will derive class D. The only thing different in D is that I override a single method. Do I have to override B's constructor in D, since all it will do is call B's ...
TSG's user avatar
  • 4,564
1 vote
0 answers
31 views

Symfony/JMoseCommandScheduler: override timezone

I am using Symfony 4 with JMoseCommandScheduler, it works fine. However, I would like to make the list of cron commands bound to a specific timezone. Editing the bundle source code, it can be achieve ...
Cedric's user avatar
  • 41
0 votes
3 answers
85 views

How to dynamically remove a default object from 'IEnumerable<T>' on a REST controller

I've got a REST endpoint that receives the class EntityInsertRequest public class EntityInsertRequest { public string Description { get; set; } public IEnumerable<EntityFieldInsertRequest&...
Ederson Leandro's user avatar
1 vote
1 answer
61 views

Unsupported binding form error when override the function with diff args

I am new to clojure. I am having the following protocol defined (ns com.mycompany.protocols.tools) (defprotocol Tool (test-ov [this] [this user-id])) and I tried two implementation. Impl way 1: (...
Laodao's user avatar
  • 1,683

15 30 50 per page
1
2 3 4 5
546