Is it possible to get the parameter names of a method ?
Example with:
def method_called(arg1, arg2)
puts my_method.inspect
end
I would like to know what method (my_method) should I call to get the following output:
["arg1", "arg2"]
I am new to iphone development.I created a application which parse a url and display the content in a table view. On clicking a row ,corresponding video is played.
On clicking the "done"button on the player it come back to the table view.I want to dismiss the tableview before playing the video, just like you tube application and on clicking "done" button the table should appear as present modal view.
How can i achieve that? Please help me out.Thanks.
Is there a way to get functionality similar to mkdir -p on the shell... from within python. I am looking for a solution other than a system call. I am sure the code is less than 20 lines... really I am wondering if someone has already written it?
class a
{
virtual void foo(void) ;
};
class b : public a
{
public:
virtual void foo(void)
{
cout<< "class b";
}
};
int main ( )
{
class a *b_ptr = new b ;
b_ptr->foo();
}
please guide me why the b_ptr-foo() will not call the foo() function of the class b?
How to open Contact using C# VSTO Outlook 2007 addin by EntryID.
Now I am foreaching all contacts in Contact Folder:
string entryid = ...
Outlook.Application outlookApp = new Outlook.Application();
Outlook.MAPIFolder fldContacts = outlookApp.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts) as Outlook.MAPIFolder;
foreach (Outlook._ContactItem contact in fldContacts.Items)
{
if (contact.EntryID==entryid) {
contact.Display(false);
break;
}
}
but this is not effective code for many contacts in Contact Folder
This seemed to me like the easiest thing to find, a simple way to display my classes as UML in eclipse
But except this: http://java2uml.gforge.enseeiht.fr/ and this http://sourceforge.jp/projects/amateras/releases/ I haven't found any new, maintained and "good" implementation (with all due respect to the above two)
Anything else I've missed?
When i tried to connect to Apache Cassandra server using the php code i got an error "Fatal error: Call to undefined function uuid_make()". I can find that PHP UUID extension was missing in PHP installation. Can anyone please suggest from where i can download the DLL file for PHP installation in my Windows 7 Machine.
On Windows XP, I ran "configure", and Qt says that I'm configured to use phonon, but I'm not sure how to set up my environment correctly in Qt Creator. According to the Qt documentation, I need to call:
Set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2007)
%DXSDK_DIR%\utilities\bin\dx_setenv.cmd
C:\program files\Microsoft Platform SDK\setenv.cmd
How do I do this in the Qt Creator IDE?
Thanks!
Hallo,
I have a java server, when I change somethin within the JSP code, and I call the page again from the browser, my changes are not shown, the server returns the old JSP.
Do you have any idea why?
Is it possible to return to my app once a phone link (tel:) has been clicked, and opened using
[[UIApplication sharedApplication] openURL:xyz]
For example, when the user ends the call?
Thanks
write an interface with one method,two classes that implement the interface, and a main method with an array holding an instance from both classes.Using this array variable call the method in a foreach loop.This is a interview question in java anybody?
Hi, In my app I use the getdistancefrom method in my app and get a distance between a current location and another set location.
I would like to as well find the direction the other set location is in. What would the code look like to make this iPhone sdk call.
The output would look something like: Location is 500 feet North West
Thanks!
Hi still stuck with the ugly scheme
the problem this time is to get the median of three values (easy)
I did all these :
(define (med x y z) (car(cdr(x y z)))
and it was accepted but when testing it
(med 3 4 5)
I will get this error
Error: attempt to call a non-procedure
(2 3 4)
and when entering letters inetead of number i got
(md x y z)
Error: undefined varia
y
(package user)
using somthin else than x y z i got
(md d l m)
Error: undefined variable
d
(package user)
so what is wronge ?!
I am using this module to authenticate using pam:
http://code.google.com/p/web2py/source/browse/gluon/contrib/pam.py
I can call authenticate('username','password') and it returns True/ False. It works for any 'username' but 'root'. My guess is that there is a security restriction in PAM that does not allow to check for the root password.
I need to be able to check the root password. Is there anything I can change in the pam.conf or somewhere else to remove this restriction?
I am working on asp.net and c#.
I am using lots of ASP and HTML controls on the page and in some cases all the controls gets disabled.
Some of the used Controls are:
RadioButton
RadioButtonList
CheckBox
CheckBoxList
TextBox
DropDownList
Button
etc...
I need a Simple and short method to disabled all the Controls when i call this jQuery method on some condition.
Any Help?
Thanks in Advance...
Hi!
I'm using riched32.dll to display and edit rich text. now I would like to draw some custom markings to the text, like for example the red underline in office word displaying wrong spelling. or text marking boxes with rounded corners or something like this.
Of course those markings should scroll properly with the text.
How can I do that?
Thanks!
Hi guys. I'm having a problem using ActiveSupport's core extensions on a gem I am developing.
I had it working with AS 2.3.8, but as soon as I wanted to port it to 3b4, the extensions stopped working and my test results are filled with lines such as:
undefined method `blank?' for "something":String
I've included it via gem "activesupport" followed by require "active_support"
Is there anything else I need to call to include those extensions?
Thanks
I am using SF 1.3.2 with Propel ORM on Ubuntu 9.10
Recently, my debug toolbar has been working intermittently, sometimes, for no apparent reason, clicking it does not display/hide the debugging windows, forcing me to resort to looking directly at the log files.
AFAIK, nothing has changed on my machine. Is this a know bug, are there work arounds/fix for this?
Guys;
How are you doing today? I have to create a dll project on Eclipse Ganymede and I don´t know where to start... (I am a C# guy with VS).
Can you please indicate me what type of project should I create to make a dll on Eclipse Ganymede so I can call the DLL from other Java Project?
Thanks in advanced :D
Hi Everyone,
I need to be able to call data from a different model - not just one field, but any of them.
At the moment I have the following models:
kase
person
company
party
I can call information from the company to the kase and from the person to the kase using this:
<li>Client Company Address: <span class="address"><%=h @kase.company.companyaddress %></span></li>
<li>Case Handler: <span><%=h @kase.person.personname %></span></li>
Those two work, however if I add the following:
<li>Client Company Fax: <span><%=h @kase.company.companyfax %></span></li>
<li>Case Handler Tel: <span><%=h @kase.person.personmobile %></span></li>
<li>Case Handler Email: <span><%=h @kase.person.personemail %></span></li>
Any idea whats wrong?
Thanks,
Danny
EDIT: I get the following error message:
NoMethodError in Kases#show
Showing app/views/kases/show.html.erb where line #37 raised:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.personname
The lines that are noted are as follows:
34: <div id="clientinfo_showhide" style="display:none">
35: <li>Client Company Address: <span class="address"><%=h @kase.company.companyaddress %></span></li>
36: <li>Client Company Fax: <span><%=h @kase.company.companyfax %></span></li>
37: <li>Case Handler: <span><%=h @kase.person.personname %></span></li>
38: <li>Case Handler Tel: <span><%=h @kase.person.personmobile %></span></li>
39: <li>Case Handler Email: <span><%=h @kase.person.personemail %></span></li>
40: </div>
The model for the kase is as follows:
class Kase
belongs_to :company # foreign key: company_id
belongs_to :person # foreign key in join table
The model for the person is as follows:
class Person
has_many :kases # foreign key in join table
belongs_to :company
The model for the company is as follows:
class Company
has_many :kases
has_many :people
def to_s; companyname; end
Hope this helps!
I have a label and a text box associated to it . I have added some text in text box which is invisible at first... now I want to display the content after I go On the label...
just help Me out..
Greetings,
I have an asp.net mvc application. When button is clicked (submit button) i would like to results to be displayed inside some div. I know how to do it. I have some action where I return a partial view. But when button is submitted then I get some multiple objects from db and I would like to display them all in div. How can I achieve it?
Hello,
I have Application with 3 columns
Result - Radio button pass and Fail
IF Fail - Radio Button Minor and Major
Be Specific - Multiple Choice - Active X control/ Browser/ Display / Others
I want to disable If fail and Be specific if Result is selected pass.
How can I do it
Thanks
Kundan
I have Zend Server for i5/OS and want to connect (in PHP) to local DB2 Instance. Do I need DB2 Connect product to call any program on i5/OS? If I can use ODBC Driver, can somebody - please - give me an url to some place where I can download it (OpenSource?) ?
Another question: Is there any PDO_ODBC or ODBC adapter for Zend Framework's Zend_Db?