Posts

Featured post

unit testing - Flex, Flexunit: How to test that an event is dispatched twice? -

I use FlexUnit's code to test for some events in the Flex app using the addAsync method. Testing that the incidents are transmitted so far, I can ensure that at least one incident has been removed. However, I want to be a bit more elaborate; I want to make sure that the set of incidents required by me is actually sent. Is there a useful test pattern (or even different test frameworks - I'm flexible!) To accomplish this? I tried this code, but it did not apply for a second time ResultPropertyChange Expected ResultPropertyChange (Events: Events, NumbersOfAvent: Int = 1): Zero {Trace ("Event" + Event + "" + Event + Target + "+" + + "Number OffIF Events "With" + "trail left ..."); AssertTrue (event.type == Response Chenzed Event.RESPONSE_CHANGED); if ( NumberOfAventis> 1) {event.target.addEventListener (Response Changed Event. REPNSE-Changed, Adesink (Expected Result Portrait Change, 1000, Number OFAVE-1))}} Public Fu...

oracleclient - Why do I get Oracle connection errors only in a VS 2008 web app/site project? -

Using Visual Studio 2008 on Vista 64bit, if I create a test web site or web application that looks like this Looks ... Public Partial Class _Default: System.Web.UI.Page {Secure Zero Page_load (Object Sender, EventArgs e) {OracleConnection Connection; Connection = New Oracle Connection ("User ID = User; Password = Usager; Data Source = Datasource;"); Connection.Open (); }} ... and to run it, I get the following error. ORA-12154: TNS: could not resolve the specified identifier identifier I am aware of this issue about parents ... Visual Studio 2008 is installed in program files (x86) but another god has only one setup and it works for him. The project itself is not in a directory with a name that has parents. I know that this is not my tnsnames.ora or my sqlnet.ora file. I am setting my machine in the same way that all the Gods who are working on this project. I also have 100% certain strings that I am using are correct. If I am creating a console applic...

c# - Object Syncronization Between Multiple Clients Algorithm -

Is not because to sort things as I sorted. To start I do not have to worry about the conflict because clients can only add to the object collection. But I am struggling to work in my head, how the clans interact, what things need to be transferred to each other. I think that has been done many times before, and should be of some type UPDATE: I think I'm asking if there is one way to sync the cycle through all the objects on each peer and check that they are present at the other end If you use INotifyPropertyChanged of serializable objects that implement ObservableCollection Objects can queue for objects because they change. If you have objects that require synchronization in a hashset , you can avoid double-entry in the queue at the expense of linear order. If you carefully override GetHashCode () , or gives a strong hash better way, you can filter the item that changes equally on both ends. Edit: Initial sync, create a packet that lists ...

Symbian Power Status Notification -

I have an application that uses a memory card and protects the power of the card reader / state operation The need to restore has been turned off and back again it usually happens after some time of activity and the phone goes into power save mode. In Windows Mobile, I solved the same problem by getting the power notification from the system and took the appropriate action. I would like to know whether this message is equivalent to Symbian? To clarify, I am not interested in the current status of the battery level, connected to the AB cable. I want to receive notifications before going to sleep mode and after waking up. Thanks There is a possibility of using the user's inactivity timer, which That's the incentive to go to power in the device - Save mode:

asp.net - Custom Validation -

I have two text boxes and submit buttons. I have applied custom verification to the first text box when I first I am losing my focus, validating custom legalization. But I have to click the verification button only. Validate the use of Javascript ... button Javascript click on the button, where you type the text box value And can see quick messages.

How to load another file's content to the current file in Vim? -

In the form of a title, in any convenient way? I want to load a template comment specifically for some CVS / GIT commit or sendmail. I think it is the Vi environment, not Vim. at the VIM command prompt: : read new_file Or for small: : new_file This will be the contents of the new_file For example, if it is the cursor, it is the contents of new_file : I do not like green eggs and I do not like the ham I am am I And this is what you are editing: I meant what I said and I said that I mean yes and your cursor is on the first line and you type: : read new_file Then your buffer will be: I meant what I said and I said that what I mean is that I do not like green eggs and ham. I do not like you. I am 100 percent faithful to the elephant. Pre>

linux - Running shell script in detached screen session. Must kill. How? -

I'm a Ubuntu Linux user I'm running away from jobs and starting a screen session. During this session I dug a file containing a long list of command line arguments to be executed. I was compelled to make connections and now the jobs are still on this screen and I am unable to kill them. Does anyone know how to execute all the ongoing execution of this script and how to kill future commands. Thank you in advance. Reach the screen screen - D-R Then you can resume your session.