Posts

iphone - Removing UIView from back/done button -

I have a small app that has some buttons from the Home screen, when these buttons are loaded into a new view , Then all these functions are correct: - (IBAction) showMaps: (ID) sender {MapViewController * viewcontroller = [[MapViewController alloc] initWithNibName: @ "MapView" bundle: zero]; [[See itself] Adsview: View Controller Weave]; [See Controller Release]; } The problem occurs when MapView loads I have created a new IBAction in the MapViewController.h file: - (IBAction) showHome :( Id); and also this action within the MapViewController.m file: - ShowHome: (ID) sender {[self.view removeFromSuperview]; } But no joy, this is a little welcome for a newbie, so more than any help! Your showmaps: method creates a view controller, but not created If you want to stay around it then you have to retain ownership of that visual controller. I suggest adding an asset to my main view controller - which contains showmaps: method below the example code: ...

tsql - SSRS Parameters. Allowing "All" or "Null" -

The SSRS parameter is a pain. I want to be able to reuse the reports for many different needs by allowing users to access and make multiple optional parameters. Therefore, if I start out of the code such as: select * mytable from myt, where '1 / 1/2010' and 'between myt.date' 12/31/2010 'and year (myt.date) =' 2010 'and myt.partnumber =' XYZ-123 ' I want those parameters to be optional so my first attempt To clear the parameters as the default: and (myt.partnumber = (@PartNumber) or (@PartNumber) is empty) There are problems because if the database field in question is able to tap You will leave the record because zero is not equal faucet. I then used this type of code: DECLARE @BeginDate ASDTime DECLARE @EndDate AS DATETIME DECLARE @PartNumber AS VARCHAR (25) SET @Year = ' .. All 'SET @BeginDate =' 1/1/2005 'SET @EndDate = '12 / 31/2010' SET @PartNumber = '... all' SET @Year = '..' Selec...

invite - How can I track accepted invitation sender on facebook app? -

Strong>, Y and Z . Users X and Y have accepted the invitation, but the user is not Z . How many people can I track? I would like to take some privileges for User A based on the acceptable invitations count. Is any way sent to accept the invitation? per section v.1. You should not encourage users to provide additional permissions To make or use application integration points. And about documentation about "> including invitations ), publisher, inbox attachment, chat, bookm In any other feature of the user profile or Facebook communication channel, or through which an application is provided, displayed, or directed from a user, Delivers transmitted content.

OpenCV with GigE Vision Cameras -

I need to use OpenCV with a GigE Vision Ethernet camera, but I have very useful information on how to do this Can not find, any signal, document, and example code? I need to read the frame from the camera. Giga-e is a communication standard for a wide range of cameras. OpenCV includes a cover for now based cameras (see CV_CAP_PVAPI) But generally it is better to use the camera's original API to get the data and then OpenCV will use a returned data To convert to an image, a number of OpenCV Bayer pattern -> RGB routine. The CVSpecert module is convenient for testing because it can be read without any camera or file - but it is not really suitable for real-time high-speed vision

Drag and drop from Outlook attachment to VB6 application -

I'm experimenting with drag and drop from an email attachment email address to a custom application. It works fine with C #, but now I want to do it in VB6. My test code looks like this: Personal sub-grdLis_OLEDragDrop (Data MSFlexGridLib.DataObject, as long as the effect of the integer, integer, integer, X single form In the form of changes in Y, Single FileDropped String * 256 dim as lCF_FILEGROUP long as the CF_FILEGROUP integer dim lCF_FILECONTENTS as long as CF_FILECONTENTS, the integer dim bData () Byte dim form of bFileNameData (256) Byte as bData2 () byte lCF_FILEGROUP = RegisterClipboardFormat ("FileGroupDescriptor") MoveMemory CF_FILEGROUP, lCF_FILEGROUP, 2 bData () = Data.GetData (CF_FILEGROUP) j = 0 76 I = 76 for +256 bFileNameData (j) For = bData (i) j = j + 1 next I fileDropped = trim (StrConv (bFileNameData, vbUnicode)) lCF_FILECONTENTS = RegisterClipboardFormat ("FileContents") MoveMemory CF_FILECONTENTS, lCF_FILECONTENTS, 2 bData2 () = Da...

How should I localize content in an ASP.NET MVC application? -

To set the language and culture setting of our website in relation to the settings we can take from the user coming to this site The question is. Let's assume our website supports 2 languages, English (N) and German (D). Suppose we want to ignore the locale (at least on the server side, so we only know that we support "N" and "D", so we have application code, config file or other Places are specified). So we do not care that the user Or comes from the UK. What we're doing matches "N" or "D" for possible matches in the languages ​​/ cultures defined in the user's browser. The issue I am coming to is that if I do this I / * languages ​​/ browsers from the ILIT We get all kinds of results. We can obtain lists such as en (for example Firefox N-US, - N- UK. N, - D, - IT. D, - N-US, - N. What do I want to ask here: Is it OK to compare strings here (checking that "n" sub-objects Do we have...

.net - How do you convert a file in memory to a byte array? -

I am using IonicZip to insert video files and am storing in a Blob field. I have a zip file created, it needs to be converted to only one byte array. I have done this without writing the harddrive thanks, Dave If you can write on MemoryStream, you can use the "ToArray ()" method on MemoryStream to get a byte array Can be used.