Hi,
I heard that a lot of people get a context error by not using drawRect
Now I have this:
- (void)drawRect:(CGRect)rect {
NSLog(@"drawRect: Starts");
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0);
CGContextSetLineWidth(context, 3.0);
CGContextMoveToPoint(co...
Hi all,
I do not plan on using Weld, but still would like to have custom scopes for components.
I am using Seam in a non-conventional way such that I would like to have control over contexts / scopes. I have background jobs / tasks that call other services. This is somewhat similar to the event / method scope, but I would like to con...
My question is about putting data elements (from groovy script) in the response in SoapUI.
I've an array of data that I would like to put in my response (in different tags/elements)
I'm aware of putting a simple element like this:
The element "MyName" in the Xml response:
<ns:MyName>${MyName}</ns:MyName>
Is mapped from the Groov...
Hi, I need to make a context or an ambient for the instances of a class and know if other instances are running. Something like TransactionScopes.
Example:
private void method1()
{
using (myclass mc1 = new myclass())
{
method2();
}
}
private void method2()
{
using (myclass mc2 = new myclass())
{
...
What I would like to achieve is the ability to "dynamically" (i.e. based on a property defined in a configuration file) enable/disable the importing of a child Spring XML context.
I imagine something like:
<import condition="some.property.name" resource="some-context.xml"/>
Where the property is resolved (to a boolean) and when true ...
I want to test some new functionality which is part of an internal web app. This new code uses a database connection normally provided by an app server (tomcat).
I do not want to recreate the entire web app on my local machine to test the new code, since I only need to run one function.
Does anyone know how I can 'spoof' a Context, or ...
Hi, I have this problem that I probably understand but don't know how to handle, if there is a way.
I have a class simplified as this:
function DrawingTable(canvas_id){
this.canvas_id = canvas_id;
bind_events()
function bind_events(){
$(get_canvas()).click(function(e){
var canvas = get_canvas() //works
do_something_in_...
Hi all,
I'am newbie in WCF Services. I Have asp.net page, and call it WCF Service (basic http binding).
In my WCF Service, I need get the asp.net context of user.
Any sample about it ?
how can I config the client and service ??
and what code source can I use ??
Greetings, thanks in advanced
...
I have 2 classes: Person and Contact.
Person class has a property named ContactNumber which returns the Contact type, and this property is marked as a DataMember for serialization.
I have marked Contact type as a DataContract.
On the client side I am able to get the values, but when I try to insert a value and then do submit, I get the...
I have a servlet running in JBoss (4.2.2.GA and 4.3-eap) that needs to connect to an EJB to do work.
In general this code works fine to get the Context to connect and make RMI calls (all in the same server).
public class ContextFactory
{
public static final int DEFAULT_JNDI_PORT = 1099;
public static final String DEFAULT_CONTEXT_FA...
I want to load plugins in a smiliar way as shown here however the loaded assemblies seem not to share the same context.
Trying to solve the problem I just build a tiny spike containing two assemblies. One console app and one library. The console app contains the IPlugin interface and has no references to the Plugin dll.
I am scanning t...
I have an NSTableView which is populated via a CoreData-backed NSArrayController. Users are able to edit any field they choose within the NSTableView. When they select the rows that they have modified and press a button, the data is sent to a third-party webservice. Provided the webservice accepts the updated values, I want to commit tho...
I have a EF4/ASP.NET web application that is structured to use POCOs and generic repositories, based essentially on this excellent article.
The application is relatively sophisticated with one page that involves selection and linking of multiple entities to build up a complex user profile. This requires access to multiple entity types (...
I've Lists and Maps in my WebAppContext.
Most of the time these are only read by multiple Threads but sometimes there's the need to update or add some data.
I'm wondering what's the best way to do this without incurring in a ConcurrentModificationException.
I think that using CopyOnWriteArrayList I can achieve what I want in terms of -...
Hi
I have this code
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("maps", "3", {other_params:"sensor=false"});
google.load("jquery", "1.3.2");
google.load("visualization", "1", {packages: ["columnchart"]});
...
We are undergoing a migration from classic ASP with SQL and Sprocs. Our choice fell upon c#.net 4 Webforms with Entity Framework 4.
My question is how to handle the context. Example:
Calling repository function GetProductById(), which open up a new context (using) and then we change something on the object and we save it.
When we save...
I am setting up JUnit 4.7 tests with Selenium 1.x and Spring 3.0.
I want to extend Selenium's SeleneseTestCase for the shortcuts and conventions it provides (more importantly, the Selenium IDE generated code seems to expect this). Yet I want the Spring context and other goodness to be present during the execution.
Because I cannot exte...
Dear Everybody
I am doing a Django tutorial on Templates. I am currently at this code:
from django.template import Template, Context
>>> person = {'name': 'Sally', 'age': '43'}
>>> t = Template('{{ person.name }} is {{ person.age }} years old.')
>>> c = Context({'person': person})
>>> t.render(c)
u'Sally is 43 years old.'
What I don...
I've got a Git repo from which I need to create a patch file in something other than the default git diff format. My use case is I've got a clunky old OSF/1 machine on which I need to apply the patch, and the /bin/patch program there doesn't understand unified diffs.
If I use GIT_EXTERNAL_DIFF=diff, hoping that I can then use GIT_DIFF_O...
Hi there,
I need to log whether the Spring context was initialized correctly in a log file. If all the beans were wired and loaded correctly, I need to log that, as well as an incorrect initialization...
I have created the appender and the log file, but the problem is that I don't know if there is something in Spring to log those two ...