Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Unanswered Questions

1,214 questions with no answers
6
votes
0answers
715 views

Documenting S4 methods with roxygen2: clearly distinguishing methods in help files

Before you aim and shootI'm aware that this question is closely related to this post. In fact, I followed the advice given in the various answers, but still feel that the resulting help file is a ...
5
votes
0answers
542 views

Searching custom model method with other fields with Ransack

In my project, Properties belong to Titles and I have a custom model method (ex: "somedate") which extracts a field in one of the associated Title records. I'm using Ransack to search and sort ...
5
votes
0answers
835 views

Is it possible to call a method from WinDbg / SOS

Is it possible to call managed method from windbg? Is there any .NET equivalent for .call? Or how to use it to call managed method?I'm interested in attaching as a live session to a process on ...
4
votes
0answers
78 views

How to convert method passed arguments into one object in Java

There is Jax-Ws web service method which gets 20 argument. arguments should be validated, so I have to pass all of them to another validator method separately or create class object by passing ...
4
votes
0answers
164 views

How to link to overloaded methods in Javadoc comments?

I have overloads of a method and want to provide links within their Javadoc comments to the others. But I have problems with generics and/or varargs. I hoped I could write it like this:/*** @see {@...
4
votes
0answers
730 views

Import Error on Python 3.4 Exit - Tendo

I've employed the tendo.singleton.SingleInstance() class as it provides convenient cross-platform locks on temporary files to inhibit multiple instances. I'll be using the file lock on a sort-of ...
4
votes
0answers
82 views

Why is only contravariance allowed for method input parameters according to the Liskov Substitution Principle?

I was trying to find good examples of why contra-variance is the only variance allowed for method input parameters according to the Liskov Substitution Principle, but until now none of the examples ...
4
votes
0answers
147 views

Binary Search Tree _Deletion Node (Minimum Value of Right Subtree)

I like to make a deletion method can delete the node and replace it with the minimum value of right sub-tree. I don't want to make setSrting method so I need to make an abject when I replace the ...
4
votes
0answers
147 views

Override Method in R 2.15

I would like to know if there is any way to override any operator method in R package.Example for the source in the package:setclass("clsTest", representation(a="numeric", b="numeric"))setMethod(...
4
votes
0answers
2k views

Why don't AsyncTasks always work within an onClickListener?

I have noticed a this over the last few months. If I set a clickListener on a button to execute an AsyncTask, it doesn't always get executed. I solve the problem by wrapping the line of code that ...
4
votes
0answers
278 views

Android keyboard - not initializing the shared buffer client because token=-12

I'm working on a keyboard for Android. I try to use the same popup keyboard style as the popup keyboard introduced by the Gingerbread keyboard. When I run my code on Honeycomb the popups aren't ...
3
votes
0answers
69 views

In Swift: How to create a generic method with two generics, one constrained to the other

Check the following method definition:func method<T,K>(protocol: K, object: T) where T:AnyObject, K:Protocol {// Do stuff here}T is an AnyObjectK is a ProtocolNow I would like to ...
3
votes
0answers
114 views

Swift: how to understand dynamic method dispatching in init method?

I find that the dynamic method dispatching in init method of Swift is different from which in C++, can anyone explain why?This is the demo code and its output:In Swift:class Object {init() {...
3
votes
0answers
53 views

What are advantages of passing a scope as method parameter?

I have recently discovered that it is possible to pass a new scope into method parameters. Eg.:UIView *testView=[[UIView alloc] init];[testView addSubview:({UIImageView *imView=[[...
3
votes
0answers
98 views

Debugging a single line with multiple method calls in Java

I found a problem online and started doing it for fun. The question was to identify the method which causes a NullPointerException in a java application. Here is the code for the same. Code:public ...
3
votes
0answers
67 views

C# dynamic table of objects listbox - dragdrop method between listbox1 and dynamic listbox[n]

I have a problem with drag and drop effect. I want to move selected index from listboxListaPrzedmiotow to dynamically allocated listboxA[n]. I don't have any idea to solve the problem of using method ...
3
votes
0answers
58 views

Method call not working in service class android

hi here is my code i want to call the insert(latitude,longitude) inside the get() but it is not working for me so please help!public void onStart(Intent intent, int startid){Toast.makeText(...
3
votes
0answers
390 views

How to handle (return and parameter) generic types in methods by Visual Paradigm for UML

I have got a ClassA and in one of her methods I want to return the genetic type which is chosen at class instantiation of ClassA.If I have got another class ClassB which inherits from ClassA and ...
3
votes
0answers
294 views

Restrict method argument to Objects that have a particular annotation

I want to create a method that takes an argument. The argument must be an Object from any Class that has a specific Annotation. Calling this method by passing it an object that does not contain the ...
3
votes
0answers
70 views

Is it possible to transfer methods, defined in mongoose schema, to client side?

when using mongoose with express under node.js, suppose I have a cool function, defined server-side on a mongoose model, and I find that function would be very useful on the client-side too. Is it ...
3
votes
0answers
2k views

Uncaught Error calling method on NPObject

The question is - why does this specific applet fails to run under: Google Chrome 22.0.1229.94 (Official Build 161065), OS Linux, WebKit 537.4, JavaScript V8 3.12.19.15, Flash 11.4.31.110, Java SE 6 ...
3
votes
0answers
603 views

.NET MVC - Routing POST and GET to the same controller, but different methods

I have this route configuration in RouteConfig.cs:// notes for a receiptroutes.MapHttpRoute(name: "Get Notes for a receipt",routeTemplate: "receipt/{ReceiptID}/notes",...
3
votes
0answers
2k views

HashSet containsAll not working as expected - despite hashCode and equals methods being implemented

There are two sets which have the same single element.Set<Activity> a=new HashSet<Activity>();a.add(new Activity("X", 1, 2));Set<Activity> b=new HashSet<Activity>();b....
2
votes
0answers
32 views

Efficiently verifying the parameters that are passed inside a method

I have a method which takes an OrderedSet X of objects of type A, and an OrderedSet Y of OrderedSets of objects of type B. (Nested)This method then returns a new OrderedSet Z of Edges based on the ...
2
votes
0answers
39 views

Call a method of CIM_DataFile object

I got a CIM_DataFile object, received from a WMI query.I want to call a method of that object, for example Delete - I'm searching for days now and couldn't find an answer to how I do that in c++ (it ...
2
votes
0answers
87 views

For which use cases does Array.prototype.copyWithin() exist?

It is clear, how does the method work:f=['a','b','c','d','e','f','g','h'];console.log(f.copyWithin(4,2,5));// copy elements between 2 (start) & 5 (end) -> to target -> 4 // [ 'a'...
2
votes
0answers
60 views

How to call multiple methods from an action listener?

so I'm doing a project for my class and I've come across a bit of an obstacle.In one whole class (named GroupProject) I was able to get my menu to work and show up and everything looked great.In ...
2
votes
0answers
77 views

Routing error - undefined method that I already defined

I have been reading different all the different solutions regarding this issue related to Ruby on Rails but I couldn't fix it.Here is the thing.app/helpers/application_helper.rbmodule ...
2
votes
0answers
21 views

Setting LinkButton OnClick event to method in a ClassLibrary

I have an <asp:LinkButton> that when clicked calls a method in my class library, but to get this to work I have had to fudge it by first going via a method in the .aspx.cs file for the page....
2
votes
0answers
146 views

How to groupby() and sortby() a Laravel collection?

This is the structure of my collection0=> array:13 [▼"id"=> 173"campaign_id"=> "STM1234""product_id"=> "STM1234""group"=> "24""version"=> "1""...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,