Questions tagged [extending]

302 questions
6
votes
1 answer

ImportError: [libraryname].so: undefined symbol: [function name]

I'm extending my Python program with a C module that uses the GstPhotography interface for GStreamer. My C module compiles fine, but when I try running it from Python, I get this error: $python Program.py Traceback (most recent call last): File…
13guppies
  • 61
  • 1
  • 3
6
votes
10 answers

How to use code from one class in another? (Java)

I'm making a tank game and to avoid redundancy I'm making classes to extend. My MenuPanel looks like this atm (I've only written the code that matters for the question) (knop = dutch for button) public class MenuPanel extends JPanel implements…
Lola
  • 179
  • 8
6
votes
1 answer

Python - SystemError: NULL result without error in PyObject call

The story: I'm trying to interface from C to Python in order to use the faster computational speed of C for an existing Python code. I already had some success, also with passing NumPy arrays - but now there seems to be an issue and I can't resolve…
rammelmueller
  • 1,092
  • 1
  • 14
  • 29
6
votes
1 answer

Laravel 5: Using SHA1 instead of Bcrypt

I'm trying to extend the default Bcrypt HashServiceProvider in laravel 5, to make use of the SHA1 encryption instead. Using the answer from this question: How to use SHA1 encryption instead of BCrypt in Laravel 4? and the official documentation at…
TheNish
  • 330
  • 3
  • 15
6
votes
2 answers

Declaration of Class::save() should be compatible with that of Class::save()

I am extending the MongoCollection Class and I am getting this message. Declaration of Db\Mongo\Collection::save() should be compatible with that of MongoCollection::save() I understand that this is normally a pram declaration miss match. Php.net…
RonSper
  • 693
  • 1
  • 7
  • 19
6
votes
2 answers

How to extend Laravel's Auth Guard class?

I'm trying to extend Laravel's Auth Guard class by one additional method, so I'm able to call Auth::myCustomMethod() at the end. Following the documentation section Extending The Framework I'm stuck on how to exactly do this because the Guard class…
Holger Weis
  • 1,685
  • 1
  • 13
  • 17
6
votes
3 answers

Extending Ext.data.Store

I am trying to centralize my configuration of EXTJS stores within my application, however, I cannot seem to figure out how to make this happen. I am using ExtJS 4.1. I have a base store, which I want to hold all of the repetitive configuration…
Jim Eckels
  • 179
  • 1
  • 8
6
votes
3 answers

How to alias a class method within a module?

I am using Ruby v1.9.2 and the Ruby on Rails v3.2.2 gem. I had the following module module MyModule extend ActiveSupport::Concern included do def self.my_method(arg1, arg2) ... end end end and I wanted to alias the class method…
Backo
  • 18,291
  • 27
  • 103
  • 170
5
votes
4 answers

Is extending a singleton class wrong?

I am creating a logger for an application. I am using a third party logger library. In which logger is implemented as singleton. I extended that logger class because I want to add some more static functions. In these static functions I internally…
Anwar Shaikh
  • 1,591
  • 3
  • 22
  • 43
5
votes
1 answer

Extending styles and themes confusion

In my manifest I used to have something like this
Lukap
  • 31,523
  • 64
  • 157
  • 244
5
votes
3 answers

Extend Single ID REST endpoint to support multiple IDs

I have a single ID REST API that I need to extend to support multiple (up to 10Ks) IDs. Basically to run update on all relevant IDs instead of sending 10Ks request in network. Current…
Ori Marko
  • 56,308
  • 23
  • 131
  • 233
5
votes
1 answer

TypeScript extend JQuery under Namespace

I'm trying to extend the default JQuery interface and the default object jQuery by a function in TypeScript Code /// namespace MyNameSpace { var $ = jQuery; export interface JQuery { test(options:…
Jason Schilling
  • 475
  • 6
  • 19
5
votes
1 answer

ActiveSupport::Concern and extending mongoid model

I am using mongoid with rails 3 and have come lately to a very tough problem and I need an advice. I am working on a CMS and one of the ideas was that CMS would provide some basic models definitions and end user would, if needed, extend basic class…
Damjan Rems
  • 101
  • 1
  • 3
5
votes
1 answer

Extend a dynamic linked shared library?

I'm new at C, so sorry for my lack of knowledge (my C-book here is really massive :) I would like to extend a shared library (libcustomer.so) with closed source, but public known api. Is something like this possible? rename libcustomer.so to…
Martin L.
  • 3,006
  • 6
  • 36
  • 60
4
votes
2 answers

Error when trying to subclass gdb.Breakpoint while writing PythonGDB extension

I'm trying to write a simple python extension for GDB that outputs to a file whenever a breakpoint is hit. According to the documentation, "The gdb.Breakpoint class can be sub-classed" (see…
stefan_g
  • 57
  • 8
1 2
3
20 21