I have a few entities I'd like to update at the same time. However I'd like to write individual update methods in each classes partial class file, for each entity and call them all at the same time. For example:
public sub UpdateEntity1()
...
end sub
public sub UpdateEntity2()
...
end sub
public sub UpdateEntity3()
...
end sub
pub...
I am trying to launch a new intent after I have loaded data. I am using a handler that calls a method when the thread is complete and then in this method I am trying to launch a new Intent but my app is crashing every time. I have narrowed it down to the Context variable in the Intent constructor. Here is my code:
/** Called when the...
Hi all,
I have the following extension method and i'm not sure why each entrys state is being changed to Unchanged after i call entry.AcceptChanges() on one entry.
public static void SaveWithLogging(this ObjectContext context)
{
IEnumerable<ObjectStateEntry> entries = context.ObjectStateManager.GetObjectStateEntries(Ent...
I have a button that says "Sort" and when a user normal/short presses the button, I want a menu to appear with the various sort options. Looking around online there doesn't seem to be a straight forward answer to which route is considered best practice. I'm looking to have a menu that looks similar to this: http://farm3.static.flickr.c...
I am using DTOs and converters in an entity framwork scenario. I want to update an entity. So I put this statement:
databasecontext.Tablename(s).Attach(entityobj);
Whenever it gets here the program ends with this error:
An entity with the same identity already exists in this EntitySet.
I felt i could get around this by saying:databaseco...
What is POI? I have seen this term being used several times in context of C++ Templates. What does it mean?
...
When I create a new task in Mylyn and activate it, all the resources in the package explorer become excluded by default from the new context and I have to manually select one by one all the resources I want to be included. Is there any way to tell Mylyn to be inclusive by default and exclude by hand what I don't want? Thanks in advance.
...
Hi, I have a little problem with the context.
I have an inclusion tag with the param :
takes_context=True
In this inclusion's tag's template, I call for another inclusion_tag which has also the param
takes_context = True
But in this last inclusion_tag context is None.
I don't know why ?
Thanks.
...
Hi,
I try to play a sound from R.raw. inside a Thread/Runnable
But I can't get this to work.
new Runnable(){
public void run() {
//this is giving me a NullPointerException, because getBaseContext is null
MediaPlayer mp = MediaPlayer.create( getBaseContext(), R.raw.soundfile);
while (true) {
if (somethin...
I've seen a bunch of examples but can't seem to get some sample code to work.
Take the following code:
var test = (function(){
var t = "test";
return {
alertT: function(){
alert(t);
}
}
}());
and I have a function on window.load like:
test.alertT();
That all works fine. However, when I try...
Hi, map seems to load fine, i can see maps, and also i can see the mark of mexico that the expample gives you
but... when i click on the MEXICO mark, my application crash, with the common message of android application crash
i think that i know the problem, but i dont know how to solve it:
in step 7, tuto says this:
Now set up the ab...
I am trying to draw to a bitmap context but coming up empty. I believe I'm creating things properly because I can initialize the context, draw a few things, then create an image from it and draw that image. What I cannot do is, after initialization, trigger further drawing on the context that draws more items on it. I'm not sure if I'm...
Hi,
In my win forms app i have a listbox and a textbox the app gets email from a server and displays the subject etc in the listbox and when i click the listbox the body is shown in the textbox. The problem is i have to repeat the enitre code below in the selected index changed event to get it to work otherwise i get "does not exists ...
Hello Developers, I 'm new to programming with objective C. I try to read the argb data
from an image and then display this image. It works for landscape images, but doesn't for portrait images. Here is the code I use.
//Read the data
CGImageRef inImage = dispimage.CGImage;
CGColorSpaceRef colorspace = CGImageGetColorSpace(inImage);
CGC...
In the summary of differences between Perl 5 and Perl 6, it is noted that the wantarray function is gone:
wantarray() is gone
wantarray is gone. In Perl 6, context
flows outwards, which means that a
routine does not know which context it
is in.
Instead you should return objects that
do the right thing in every conte...
Hello, i'd like to pass an argument {{x}} to my custom file change_form.html, which is located in /home/django/project/app/template/admin/change_form.html. i found this code but it doesnt work. thx for any help
class MyModelAdmin(admin.ModelAdmin):
# A template for a very customized change view:
change_form_template = 'admin/cha...
I have following problem:
I'm trying to implement Spring in existing ear application (using Jboss as App Server and Hibernate as ORM).
The ear application consists of war(basically few simple servlets), har(hibernate archive which has only the data model-as classes and the corresponding hibernate mapping files - as xmls), sar(only one pa...
I'd like to take a UITextView and allow the user to enter text into it and then trigger a copy of the contents onto a quartz bitmap context. Does anyone know how I can perform this copy action? Should I override the drawRect method and call [super drawRect] and then take the resulting context and copy it? If so, does anyone have any r...