Is there any IOC container that already implements a controller factory compatible with asp.net mvc 2.0 ....if so i'll move my projects to 2.0 to test...
Anyone know a good reference about it?
Hi there,
Chef from Opscode seems to be really useful for configuring servers and such, but trying to follow their documentation is a little difficult. Some terms are defined after they are used, and definitions sometimes reference new terms that you haven't yet encountered.
Anyone know of any GOOD tutorials/walk-throughs for getting a good understanding of Chef, Chef-Server and Chef-Client?
I remember seeing one video presentation online, but it barely scratched the surface.
When is Python 3.1 meant to become mainstream Python version? How many years are to pass before Python 3.1 support and adoption grows any close to of today Python 2.6?
I am new to objective C, So maybe there is some basic thing that I am missing about selectors. I would like to understand the basic concept behind this error as I have not found an general error reference.
I am getting this error when using:
[CloseButton addTarget:PageContents action:@selector(CloseButtonPressed) forControlEvents:UIControlEventTouchUpInside];
and then later:
- (void)CloseButtonPressed:(id)sender{
UIAlertView *someError = [[UIAlertView alloc] initWithTitle: @"Comment" message: @"hello" delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[someError show];
[someError release];
}
I would like to load TinyOS on CC2420 radio motes to operate on certain communication protocols (e.g. epidemic routing, probabilistic routing, etc.). However, I have no prior experience in programming motes to perform the protocols I want. I'm just wondering about the most applicable resources for reference and how difficult (if not impossible) was implementing such mentioned protocols. It would be great to hear from you. Thanks in advance!
I'm just getting started with Mac and iPhone development, and naturally my first step is to change the color theme. I've found a theme I like here, but I can't find the folder they reference in my ~/Library/Application Support/ folder. How can I install these files?
Thanks!
Hi, i have a small problem. Im using the ASP.NET Xml control and want to pass it a url to a rss feed and a stylesheet - so that i can style the rss myself on my website. When applying the full web path to the xml control (http://www.myserver.com/myfeed.rss) i get an exception telling me that the document source is not a valid virtual path. What am i doing wrong? I would hate to download the file before showing it...
How do I add a method with a decorator to a class? I tried
def add_decorator( cls ):
@dec
def update(self):
pass
cls.update = update
usage
add_decorator( MyClass )
MyClass.update()
but MyClass.update does not have the decorator
@dec did not apply to update
I'm trying to use this with orm.reconstructor in sqlalchemy.
*In eclipse plugin using actionSet Here blue icon for some code(using actionset) ,when i click on that it should prompt a window(some popup) which contains two or more link like web links, when i click 1st link it should perform the 1st action and window should disappear so on...Can anyone help me in this how to do that???
See the picture below for reference ..like this with ok button ok should perform the selected action plz help me to do this...??
Hi All,
In my application many I time we use MAX(). How can I write a common function where I can pass table name and column name and get MAX().
I mean single function for any table/field.
Thanks,
Tanmay.
What's the difference between:
Object o = new Object();
o.foo();
and
new Object().foo();
(assuming I do not need the reference afterwards) ?
Are there any reasons for using one instead of the other one (e.g. memory usage) ?
I have a WCF service that I pass a lit of objects down from the server to the client, what I would like to do is to know what exactly is getting passed down to the client.
How can I see the unecrypted serialized payload that is sent over the wire?
The question gives all necessary data: what is an efficient algorithm to generate a sequence of K non-repeating integers within a given interval. The trivial algorithm (generating random numbers and, before adding them to the sequence, looking them up to see if they were already there) is very expensive if K is large and near enough to N.
The algorithm provided here seems more complicated than necessary, and requires some implementation. I've just found another algorithm that seems to do the job fine, as long as you know all the relevant parameters, in a single pass.
Hi,
How can I access a 'RecordSet' within a 'Execute SQL' task when using SSIS?
I have looked at the parameter mapping options within the Execute SQL Task Editor and cannot find a type of object to allow me to pass the variable holding my record set to the task.
I am using google appengine for my gtalk agent , I want to get the username of the gtalk user how can I get it ?
for reference i use this in beginning
XMPPService xmpp = XMPPServiceFactory.getXMPPService();
//STEP 2
Message msg = xmpp.parseMessage(req);
JID fromJid = msg.getFromJid();
I once needed the lines of the stored procedures, to be able to trace whether i have a reference to some function, procedure or table, or sometimes to try to find something inside of the sp's code. Where does the sql server stores the procedures's code?
My primary indexes are unique reference numbers like 002345 and 000023.
If I format them as integers I loose my zero's. They need to be 6 digits.
Can I use CHAR? I don't need any auto increments.
I'm getting drawing cache of the view, that is set as contentView to the Activity. Then I set new content view to the activity and pass that drawing cache to it. But Android recycles my bitmaps and I'm getting this exception:
06-13 01:58:04.132: E/AndroidRuntime(15106): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@40e72dd8
Any way to fix it? I had an idea to extend Bitmap class, but it's final. Why GC is recycling it?
I'm making a simple chat program for me and my friends as a tech demo. I had the idea to have a small drawing pad thing that would be shared between all connected users.
What could I use in this situation (control wise)?
I know I can convert an image to a byte[] and pass that to everyone, but I'd need to use a pictureBox to get said image.
Thanks for the help!
I am new to iphone development.I am parsing a url in my delegate class, i want to send a notification once the parsing is completed to my view "testviewcontroller".With reference to the notifation i want to perform some action in my view. I want to know ,how to set the notification in delegate with referring to the selector method in my "testviewcontroller" class.Please help me out.Thanks.
Hi all,
I have some javascript making an ajax call in my Rails site:
$.ajax({type: "PUT", url: url, data: { dummy: data }, complete: function(data) {}});
When Rails gets it, it throws back an ActionController::InvalidAuthenticityToken Error. I'd like to keep the protect_from_forgery stuff in there, if possible... But I'm at a loss for how can I pass the auth token from a javascript file?
Can anyone help me out?
hi all, basically, what i want to know is, for the second parameter in the create_function function, is there anyway to pass a string without a semicolon? or will it not work.
example:
taken from php.net
create_function('$a,$b', 'return "CRCs: " . crc32($a) . " , ".crc32(b);'),
notice that there is a semicolon in the string. is there any possible way someone can enter a function without a semicolon that will still run/evaluate?
Hi,
I'm not familiar with Java but I need to make a request to a remote webservice from within my applet.
The webservice (.Net 1.1) uses HttpContext.Current.Request.UserLanguages[0] to determine the language to use. But the value of this member is alway null.
So is there a way to pass the Accept-Language header along with something like "en-GB" set?
i have an application, and in my urls.py i have something like that:
urlpatterns = patterns('',
url(r'^profile_view/(?P<id>\d+)/$',
profile_view,
name='profile_view'),)
meaning that the profile_view function has id as a parameter.
Now, i want to call that function from my template, using a link like Reply
The problem is that i don't know how to use the above url as a link, meaning how can i 'pass the id parameter to a link'?
thank you
Is it possible to set a default value for a variable argument list in Python 3?
Something like:
def do_it(*args=(2, 5, 21)):
pass
I wonder that a variable argument list is of type tuple but no tuple is accepted here.