Posts

Showing posts from May, 2011

vb.net - figure out rowindex on a row I just inserted? -

I have a vb project that I am updating and has a datagridview, a panel and buttons button CRUD operation To control. The panel displays numerical up / down and text boxes to indicate the selected row. I use some logic to keep track of current selected row and current row index for timer updates in the background. On removing, I reset the focus on the first line. On loading I focused on the first line I keep current row focus on the update. On putting a good I want to set that focus which I have just cast. But I do not know a way to determine what is the value of the polyindex for this newly entered line, which is my data, which is sorted on the two ID columns using datagridview, it is not that this new entry just jumped down Will go. How can I apply it? View datagrid view events; Its datagrid VVADAdventErgraz parameter contains the property that gives you what you need. Each line is added to a row, so when you want to check additional lines, you have to wire the event ...

SQL Server 2005 create certificate with private key / encryption -

Well, my problem is I SQL Server 2005 using a DB master key, certificate and symmetric key I am data encryption. I should be able to restore a certificate with a private key, but when I pulled the triggers certificate with the private key, then you certificate DB, but do not see the private key. I am doing the following steps for testing. Create database master keys. password Word = "12345 Create Master Key by 'Encryption Create Certificate Certificate with Maikret subject = 'My first certificate', EXPIRY_DATE = '1/1/2199'; Create a symmetric key encrypted with MyCert. Encrypt with MySimmetricKEY ALGORITHM = AES_256 certificate by MyCert Select the statements to show the commands and queues given below. They are Master DB keys, symmetric keys and certificates are everything. select from the Select sys.symmetric_keys sys.certificates Create a backup of the backup database certificate and key Note I have tried to put them in the ...

tdd - Is Test oriented development bad practice against the Test driven development -

In this new article, I have seen something that is my focus - Todd Test-driven development like TDD and where developers Between writing code and test is optional. This is not a bad practice for me and for developers who do not have experience with TDD, The problem here is more at the level of conceptual and development flows. Tests are helping you and get your thoughts on the things you apply and therefore the mix is ​​wrong for me. Although I do not know if someone is doing this - how wrong is it? I am doing a quick research for TOD and found nothing useful. There is no way to do stuff with TOD or it is used only in the article. Test-oriented development is not a widely accepted term AFAIK What are the qualifications to write "test" at the same time to write code as opposed to "first"? If this is not "before", is not it "after"? Some segments are listed above my mind

building - /usr/bin/make not found in Xcode -

I recently installed Xcode 3.2.6 on my Mac, but after the " : "Exec" / usr / bin / make '(no such file or directory). "I have seen the file, which is located in the Xcode's folder, but I do not know how this refers to the program. Does anyone know the problem and how to fix it? Try setting command line tools: exx> gt; preferences & gt; download & gt; components & Gt; Command Line Tool.

pinvoke - Can't get around compile error about fixed sized buffers in C# -

I'm trying to create some structures to copy people from some C ++ Microsoft header files. My code is as follows: [Layout layout (layout kickind.)] Unsecured public structure _NotifyData {fixed UIT advance data [2]; Public structure data {uint cbBuf; IntPtr pBuff; }} [Strat Layout (LayoutCind.Security)] Public Structure PRINTER_NOTIFY_INFO_DATA {Public Use Type; Public service area; Public UIT Reserved; Public UIT ID; Public _NotifyData NotifyData; } [Layout layouts (Layoutkind Secure)] Unsecured public structure PRINTER_NOTIFY_INFO {public UIT version; Public UIT flags; Public UIT calculation; Fixed PRINTER_NOTIFY_INFO_DATA aData [1]; // compiler complaint here !!! } The compiler complains about my aData [1] variable about declaration of my struct PRINTER_NOTIFY_INFO . I had to face one of these encounters and in the question, the variable was set to fixed and unsafe to declare the structure apart from this framework. I get this error: Fixed size buffer type sh...

facebook graph api - How to know when a user sends an apprequest to their friends -

I have an "invited friend" with the message of Facebook's FB.ui ({method: 'apprequests' The mechanism is) 'Join me ...'}) Popup dialog I really want to know the statistics of users who have completed the invitation process. Usually I subscribe to Facebook events through this process: FB.Event.subscribe ('edge.create', function (targetUrl) {_gaq.push (['_ trackSocial', 'facebook', 'like', targetUrl]);} ); When I like something and send it to Google Analytics accordingly, then I am subscribing to this event. I would love to use this mechanism, but there is no Facebook event for the above document webpage. Is there any other way? Is there any such program that I am unaware of? Unlike buttons like you actually only have one FB .ui ({method: 'apprequests', message: 'come messame ...'}, function (data) {if (data) {var sent = data.request_ids split (","); _gaq.push ([ "_trackEvent...

Android C2DM notification top corner? -

I know that C2DM has been given a message about death, but with the others listed here on the stack overflow I'm not getting my problem. So everything works, I register, I get my Orthodox, I send push, I get push. The only thing I noticed is that I have a phone at the top corner of the phone The push is not visible in the same way, where it happens like a SMS message. Do I have some special codes? If so, where can I find resources for it? I have only developed one week of Android, so I'm a little green with the basics if it was somewhere in 101. Yes, if you want to reveal an alert, then you will need a code on the API Take a look.

javascript - FileUpload control using Html.BeginForm/Ajax.BeginForm does not work.(htmlfile access is denied in IE).Css style to upload control button -

I created a fake button to give a CSS style to upload control buttons. Clicking on this fake button I click trigger the event File upload control When I use thejax Ajax I give an error htmlfile access denied But when I use HTML Best form does not give me an error, nor does it work. & lt; Div id = "divUploadForm" & gt; @Using (HTML Uploads ("Upload Action", "HomeController", New Ajax Option () {Update TaggedID = "devolodeform", Insertion Mode = Insert Mode., Replay}}) {& lt; Field & gt; & lt; Input Type = "Text" id = "fakeupload" name = "fakeupload" class = "counterfeit upload" /> input type = "button" value = "browse" id = "browsebtn" /> gt; & lt; Input type = 'submit' id = 'upload-files' value = 'save' / & Click the

io - Creating new files with Lua I/O functions -

I'm starting to learn about the IO function, and am trying to implement them in my code I have searched the answer and nothing is clear Yes or no, or at least I do not see one. I am hoping someone will know the answer here and will be able to help with it. I am planning to create a text file which I can write in the form of time progression. It will basically be a log for which I will put lines of output. Obviously io.open ("textfile.txt") does not make a file, or it appears. Is there a way to create a text file in Leah that IO.read/ write later? Additionally, do I need to call io.close () before opening or creating a new text file? I appreciate any help thank you! You must open the file as write as follows: F = io.open ("textfile.txt", "W") . Then use : f: write () to write stuff to it. When finished, call f: close () .

ruby on rails 3 - How to redirect to a permalink that is stored as a column in my model -

I'm making a place where contributors can post content on my site. I want to create a link where another user You can click and take the user to the relevant Contributor's website. Permalink for each contributor's website is a column in my Contributor Model Anything that I tried adds yet to the contributor's permalink at the end of the current URL. That is, instead of redirecting to www.contributorcite.com, www.mysite.com/xxx/www.contributorsite.com please help (Maybe, the link should be created in the controller instead of the model, or just enter http: // for the information entered by the user): & lt;% link = "http: //" + user.permalink% & gt; & Lt;% = link_to "User Website", Link% & gt;

JQuery Layout cookies scroll problem -

I'm having a very awkward problem with the jQuery layout, maybe someone has solved before ... sometimes , The whole screen is scrolled, this means that the lower line in the browser now appears between the middle of the screen (more or less). After that, every time I refresh (CTR-R) the screen scrolls the scroll. I have tried to remove cookies and refresh and the problem is missing. So I think that the problem definitely disappears, if Jquery Layout Cookies ( useStateCookie: false ) is disabled, but the problem persists ... Sorry, I can not give you the JSFiddle demo, because any ideas even in my own system is difficult to reproduce? I have seen it before, but do not know whether you have the same problem This is the reason for you! Surely it does not understand why this will affect the cookies I have tracked down on the scroll intro JavaScript function. ScrollToId (id) function {elm = document.getElementById (id); Elm.scrollIntoView (); } In our case, Edi will hav...

C++ class that can hold one of a set of classes that all inherit from a common class -

What are the methods in C ++ to handle a class that are owned by another class example, where it Which of the many classes might possibly be possible, all of which are derived from a normal class? Example: class items {// common ancestor, which is not directly public: int size; } Category ItemWidget: Public Items {Possible Grade 1 Public: Integ Height; Integer width } Class item: text: public item {/ possible class 2 studs :: string text; } Assume that there is also a class container , each of which has the same item, and only interested in any item at any one time When they are taking it out of the container, also say that the items are made only in containers, they are made only for the purpose of putting them in the container. What are the different ways of this structure? We can make an indicator in the container for the contained items, and then after the container constructor argue how the item is new to the call, and it will stick the item in all the heaps. Is the...

javascript - Facebook Canvas Fluid Canvas -

Has anything created using a new "fluid canvas"? In addition to not working in IE 8, is there any other problem in doing this? I am thinking that I can go crazy to make an application using this? I mean, what do I do, check the available width of the screen and talk to each user differently? Is not this the possibility of error? any idea? Thanks! Even for "liquid" canvas, it is very likely that we will not investigate The available width of the screen (such as the screen / browser window can be dynamically changed by the user) Instead, as it is an iframe, how do we create canvas / web pages that meet our needs or show the best user to the full width of the browser window .

javascript - jquery, replace html on submit -

I have a form that is using a selection list to jump around my site. Using the onclick window.location, the user selects the page and goes to the press and goes to that page. I need to add a small text box now), and then when they click, they should go to the selected URL, but with the number entered in the [CODE] box. I found out that jquery replaceAll then it gave me the idea of ​​doing this in HTML: http: //jumptothispage.com/parts/p [CODE] / edit Http: //jumpptothispage.com/jobs/j [CODE] / edit When you go, this code [code] is included in that code in all [ CODE] and then selected on that page, e.g. http: //jumptothispage.com/parts/p123456/edit http: //jumptothispage.com/jobs/j123456/edit I am already using jquery on my site so it makes sense to try and use it again. P> A workaround: Store the code in a cookie , So at least it does not appear to everyone who sees the URL bar. Then in every onclic , fit the URL to send the user to the "right...

Google Analytics Search and Replace Regexp Filter That Can Remove Port Numbers -

I have two contextual sources in Google Analytics from the newsletter server: newsletter1.domain.com:80 and newsletter1.domain.com I want to combine two sources so that there is only one reference source that resembles Newsletter 1. Domains Com. Can someone help me with the right search and replace the expression which will filter the port number? Thank you "$ 80" at the host name field "

Make a wordpress category into a page -

Then in WordPress, there is a list of pages in my navigation. Home - Video - Blog Shows every blog post regardless of category "Home". How can I show videos and blogs in particular from the "blog" category or "videos" Thanks Greg You can do it in a few ways. First of all, this functionality is built in WordPress. Each category can be said by URL: The URL / category / section is the default WordPress and you can see it in Settings | Parameter in the optional section. The second way is to create a custom page template and you must use the query_posts () function to include or exclude whatever categories you want. The syntax is: query_posts ('cat = 1'); To get all the posts in category ID 1 (Use post | to get ID number) If you want a two-page page: query_posts ('cat = 1,3'); To exclude the range, return everything else: query_posts ('cat = -5'); query_posts () is very flexible and takes a bunch of...

c - pthread_create memory leak? -

whenever I run Valgrind on my program, it is saying that I have lost memory probably where I pthread_create it is said. I am trying to follow the guidelines on and various other websites, which Google gave me, but nothing has worked. . So far, I have tried to invoke a separate pthread_attr_t to join the thread, call pthread_detach on each thread and call pthread_exit () PTHREAD_CREATE_DETACHED - Pthread_attr_t attr; Pthread_attr_init (& amp; attr); Pthread_attr_setdetachstate (& amp; ethern, PTHREAD_CREATE_DETACHED); Pthread_create (& amp; c_udp_comm, & amp; etr, udp_comm_thread, (Zero *) this); Pthread_create (and drive, & amp; atri, driving_thread, (zero *) this); Pthread_create (& amp; Update, & amp; ether; update_server_thread (Zero *) this); I think I can get involved in wrong and coded the next one ... I am going and they have all the threads in an array so that they are just loop for. But I do not have all those in the array, so I trie...

How to generate 'a href="javascript:void(0)"' like link in cakephp? -

कैसे करें 'a href = "javascript: शून्य (0)"' केपी पीएचपी में लिंक की तरह? मैं एक आवेदन करता हूं, सामग्री संपादक टेक्स्टरेया में डालेंगे, जब उपयोगकर्ता छवि की एक सूची पर क्लिक करेंगे। मैं इन छवियों को एक क्लास जोड़ता हूं और जावास्क्रिप्ट फाइल में कुछ कोड लिखता हूं। सब कुछ ठीक चल रहा है। लेकिन छवि का लिंक एक यूआरएल पता है, लेकिन 'href =' जावास्क्रिप्ट: शून्य (0) 'यूआरएल की तरह नहीं। कोई भी मुझे बता सकता है कि केपीएचएचपी में इसे कैसे बनाया जाए? अग्रिम धन्यवाद! & lt; php ईको $ this- & gt; HTML- & Gt; लिंक ('/ path / to / image /', 'javascript: void (0)');? & Gt; आप या तो छवि के लिए एक पथ सेट कर सकते हैं या एचटीएमएल सहायक, छवि टैग कोड उत्पन्न करने के लिए। दूसरा पैरामीटर href सेट करेगा।

ASP.NET MVC3 Razor - Maintain scroll position on postback -

How can I maintain a scrolling position on postback after sorting a grid table that is used by the MVC contribb framework Does it? To set the current scroll state in the hidden field, use some javascript, then the page Restore that position on the load (usually a jquery ready event) However, this is actually just a side effect, instead of postback, you should command some type of ajax to update the grid, No scrolling is necessary again.

What hardware devices do you test your Android apps on? -

The emulator coming with ADC under Eclipse is OK to test basic Android application functionality, but: This is not very executable This does not reflect real-world hardware and software configurations This will allow different input devices such as D-Pad, Touch screen, trackball or even Bluetooth / USB controller. Android Developer Platform Versions Removed from Android Developers, posts some very useful rolling graphs of screen size and density and OpenGL versions: These really help to reduce the scope of some options, but I find myself really learning Want to equate different devices in proportion to input devices What ... represents 90% or 5% of the touch market Thn? What is the ratio of those support multi-touchs? For example ... Any person who played Free and Open Source game Replica Island (), will know how you control the device, because it differs between devices because it looks like multiple input method That Chris and Jenki have done a great job here, ...

php - static call vs. dynamic call : Which one has better performance? -

उदाहरण के लिए यह मेरा वर्ग है: & lt;? Php क्लास उदाहरण {सार्वजनिक फ़ंक्शन Example_function () {गूंज "उदाहरण कोड"; }}? & Gt; निम्न में से कौन सा सबसे अच्छा होगा, प्रदर्शन-वार? 1) उदाहरण: example_function (); 2) $ उदाहरण = नया उदाहरण (); $ उदाहरण & gt; example_function (); उन दोनों के बीच अंतर क्या है? यह एक नहीं है प्रदर्शन की बात यह वास्तव में नहीं है। अंतर अगर कोई है, तो बहुत ही कमजोर है। यदि आपको अपनी कक्षा को स्थिर तरीकों से डिजाइन करने की आवश्यकता है, तो स्थिर तरीके का उपयोग करें। अगर आपको अपनी कक्षा को इन्स्तांत करना है, आप ऑब्जेक्ट विधियों का उपयोग करने के लिए कोई विकल्प नहीं हैं। यह एक क्लास डिज़ाइन निर्णय है जिसका प्रदर्शन के साथ कुछ भी नहीं है।

java - How to get all actionbean classes at contextInitialized() -

The answer to the same question is given here: It seems that only one action works in the Bean Code, that is: When a request is actually received - what I want, the list of all the action in the list is the listener code, for example the beginning of the context () function. Error occurred: net.sourceforge.stripes.exception.StripesRuntimeException: Some existing stripeers are trying to access configuration, but the current request was never done through StripesFilter ! As a result the appropriate configuration object may not be located. Please take a look at the exact URL in your browser's address bar and make sure that any requests for the URL are made to your web. According to the Filter Mapping in XML, the filtered will be filtered through the strip footer. On net.sourceforge.stripes.controller.StripesFilter.getConfiguration (StripesFilter.java:160) net.sourceforge.stripes.util.CryptoUtil.encrypt (CryptoUtil.java:123) My The objective code is to automatically start al...

php - jquery, how to get var from $.ajax POST? -

edit3: I am using this script inside a Facebook app, and not to make sure that I am passing a var in a php file using a post: & lt; Div id = "talentnum" class = "cont_talentnum" & gt; & Lt ;? Php echo $ number; ? & Gt; & Lt; / Div & gt; & Lt; One square = "my_click" href = "#" & gt; & Lt; / A & gt; JS here var strtalentnum; $ ('My_click'). Search Live ('click', function () {strtalentnum = $ (this) .closest ("li"). (". Cont_talentnum"). Text (); $ ('# mine'). Trigger ('click') ;}); Click $ ("my mine") (function () {if (strtalentnum) {$ .ajax ({type: "POST", url: "fb_test.php", data: strtalentnum, success: function () {var talentnum = Stratlanum; // This is 6203222 Warning (Stratentum);}}};}}); and the php file is: & lt ;? Php function fb_test () {echo 'xxx'; echo $ _GET ['strtalentnum'];...

Automated GUI Testing of GIS Application -

I am working as a part-time developer on the GIS application project and my project manager wanted me to do automatic testing. I have tried to find solutions to the projects that can be useful. I found the eggplug - But this video seems to be matching pixels to pixels Snap shots were taken from Google Maps . Can anyone help me with the automatic GUI testing of GIS applications, which equipment can be used and if possible, open source tools (I'm a little bit of money ; -)) AB, eggplant is a full GUI powered test device . Put a note on info@testplant.com and we will be happy to answer your specific questions. This is some other video for your reference - test based on change conditions - eggplant UAV test --http: //www.youtube.com/watch? V = jcoIB4dZU0k and feature = related

tfs2010 - I have to change the source control of my project -

I have to change the source control of my project Explanation: I want to add a project solution that is local to my local TFS is on other TFS projects. How to do this? What I have done is a project copy that soln me to open the solution from the file source control and change the source control but every time this indicates the problem when I have to browse for the path, the solution What was the right method to do this? I am using VS2010 having two repositories in the same The source is usually asking for trouble - which is now one of the most current, how to promote bug fixes, changes, ... If possible, then I need the required output (.dll? ) As a binary Lib for the second project. In addition, I believe VS2010 can handle several repositories in a project. I will try it. hth Mario

Delphi XE and Winrunner (QTP) -

We have a suite of automated tests written in WinRunner (QTP), and we have just upgraded to Delphi XE. Tried to modify TestSrvr.pas, MercControl.pas and MercCustControl.pas to manage the Universe but I still have some problems. When I launch Winrunner, I get "class" and "label", but no longer "delph_name" and all automated tests use "delph_name" Is anyone having the same problem? How do you update the Winrunner plugin to be compatible with Delphix? Thank you. The Delphi plugin does not support Unicode properly and see the lack of answer. This is not a good answer to your problem, but it is something to keep in mind.

java - Multiple use of .post in jquery -

Good day! I'm trying to use jquery .post (). My problem is that I want to get data from 2 different actions (Java-Stripe 2). Instead of receiving data of Test 2, this page sends again twice ... so data in my JSP is also doubled. My code is as follows: $ (function () {$ .post ("test", function (data) {$ ("# tester"). (Data);}); $ .post ("test2", function (data) {$ ("# tester2") .html (data);});}); HTML: & lt; Div id = "tester" & gt; & Lt; / Div & gt; & Lt; Div id = "tester2" & gt; & Lt; / Div & gt; How can I retrieve data from two different actions (java) without the need to send it twice? Thanks When you send a JSON response to the server, Send together with the group: Code> $ In the post callback, you now have access to both parts of the data in your data var console.log (data.tester) // = & gt; [Foo, bar] console.log (data.tester2) // = & g...

metadata - Workbench problem in android -

Image
I copy all project folders from my workspace to any other place except for two projects: Drive, but a problem arises Happened, when I got Eclipse. Then I reverse the same work, but it is important to set-window-> & Gt; Preferences- & gt; & Gt; The path of Android SDK, why ?. And I have not accepted the project to get my previous projects to be accepted. Now, when I take the import after the new archive file, I have to face such that the picture is a red icon I have assumed Note: I also have the copy metadata folder as well. My problem On the answer, I think you have to check your build path and set the proper location for your LIBES.

iphone - check for locationServicesEnabled always returns YES, Irrespective of manual toggle switch to decide if location services are enabled -

स्थान = [[CLLocationManager alloc] init]; Location.desiredAccuracy = केसीएललोकेशनलताबैस्टफॉरेवलैक्शन; Location.distanceFilter = 10; location.delegate = आत्म; LocationEnabledBool = [CLLocationManager स्थान सेवाएँसक्रिय]; If (locationEnabledBool == NO) {UIAlertView * locationAlert = [[UIAlertView alloc] initWithTitle: @ "स्थान सेवा अक्षम" संदेश: @ "पुनः सक्षम करने के लिए, कृपया सेटिंग्स पर जाएं और इस ऐप के लिए स्थान सेवा चालू करें।" प्रतिनिधि: शून्य रद्द करेंट्यूटनटाइट: @ "ओके" अन्य बटनटाइटल्स: शून्य]; [स्थान अलर्ट शो]; [स्थानअलार्ट रिलीज़]; } और [स्थान प्रारंभ करना स्थान स्थान]; locationEnabledBool का मान हमेशा हाँ है, यह अलग है कि स्थान सेवाएं सक्षम हैं या नहीं। = NO) {// त्रुटि संदेश} प्रयास करें यदि ([CLLocationManager locationServicesEnabled] == नहीं || [CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied ) {// त्रुटि संदेश दें} मुझे लिंक पर यह मिला

php - CakePHP fails loading $ajax->form with Error 503 Service Unavailable -

When I add a $ ajax-> If the form () calls me within my view, the server responds: Error 503 service is unavailable. I have loaded: app :: import ('Ajax'); $ Ajax = new Ajax Helper (); Form (array ('type' = & gt; 'post', array ('type' = & gt; 'post', 'option' = & gt; array ('model' = & gt; 'user', 'update '= & Gt;' dateTarget ',' url '= & gt array (' Admin '= & gt;' comments', 'verb' => 'edit'))); I think there is only one error: from within it should be noted that Undefined property: AjaxHelper :: $ form I tried singing: get_class_methods ($ ajax) and it shows that the form is available. How can I give advice on how to proceed from here? Thank you! Ajax Helper depends on formhelper (plus HTMLHelper and JavaScriptHelper). If you also manually create an example of AjaxHelper, then you also have to make t...

html - Placing & Positioning images using CSS? -

This question was completely edited, not sure it was already understood. Well, I'm having trouble positioning some images on a website. I'm using the slidedeck jQuery slideshow, and in the third slide I want a portfolio of work, so that just display 6 images (2 lines of 3). Slide is set in index.html in this manner; & lt; Div id = "slidedeck_frame" class = "skin-voyager" & gt; & Lt; Dl class = "slidedeck" & gt; & Lt; Dt & gt; About the US & lt; / Dt & gt; & Lt; Dd & gt; About Company & lt; / Dd> & Lt; Dt & gt; Our Services & lt; / Dt & gt; & Lt; Dd & gt; Company services here & lt; / Dd> & Lt; DT & gt; Portfolio & lt; / Dt & gt; & Lt; Dd & gt; Completed work image here & lt; / Dd> & Lt; Dt & gt; Contact us & lt; / Dt & gt; & Lt; Dd & gt; Contact form here & lt; / Dd> & Lt; / DL & gt; & Lt; ...

Sharing information to Facebook(wall), Twitter(status), Google plus -

In my application, I need to share some information about Facebook (Wall), Twitter (status), Google Plus if user After posting on click share button, Facebook or Twitter, user should be redirected to the app. How to do this in Ramboil, is it a tutorial ... thanks Facebook: Twitter: Google has a read-only API for nowadays.

java - Is there a PDF parsing library that can extract text from given coordinates? -

Good morning, friends have been assigned a task in which I should remove the text from a PDF file (a bank invoice), fields and sections. Able to remove text from a given area. Look!

combobox - ExtJS - second combo-box not getting populated after choosing first one -

I have two dependent combo boxes and the value of the second is chosen for the first time. / P> For this, I am using the set value for the second combo box on the selected event of the first one. There are two cases of code below, here case 1 does not work but case 2 works in IE9: Case1: This selection does not work: Function (Combo, record) {Ext.getCmp ('voyageMonitoritngVesselCode'). Store.load (); // loading the second combo box, the 'voyageMonitoritngVesselCode' store. SetValue (record [0] .data.vslCd); // Set the value in the second combo box Case2: Select this works: Function (combo, record) {Ext.getcmp ('voyagemonitoritngvesselcode'). Store.load (); // Load the second combobox alert (record [0] .data.vslCd); // The only difference in both cases is this line Ext.getCmp ('VoyageMonitoritngVesselCode'). SetValue (record [0] .data.vslCd); // Setting the value in the second combo box That is, when I write a warning statement between loa...

makefile - Output multiline variable to a file with GNU Make -

I'm having a hard time writing makefile rules that output to a multiline variable in a file. Here I have the code: defined VAR1 / dev D755 - - - - - - endef defined VAR2 / test d 777 - - - - - - / test2 d 777 - - - - - - endef VARS + = $ (VAR1) VARS + = $ (VAR2) All: "$ (VARS)" echo & gt; Test However, the echo fails to call me "unknown quoted string" because I'm unknown how can I put files in every line declared on a separate line? If you export the variable, instead of shell and instead of a series it is referred to as the shell variable If you do, you will have a better fortune: defined VAR1 / dev d 755 - - - - - - endef defined VAR2 / test d 777 - - - - - - - / test2 d 777 - - - - - Definition of Endof Works $ (VAr1) $ (VAr2) and ED exports VARS All: "Echo $$ VARS" & gt; Keep the following adjustments in your messyface: I created defined to VARS , Instead of a series of + = assignments, which makes it eas...

java - sort doubles stored as strings ? -

Hello, is there a way to parse string in numbers? And is there any way to check whether a program is a string or not without breaking the program? I'm thinking about trying and catching it would be a good idea? string to check if a string is parsable without trying to parse the string To start trying to interpret as a number ...) For checking halfway, I think you can use Regex to check that there are only digits and periods of the string. You must use an attempt ... Hold the block though. although,. How to parse a string in double, try it: double DD; Try {dd = double. Prsd double (string); } Hold (NumberFormatException e) {System.out.println ("Could not parse the string!"); }

c# - How to know when scrollbar position in the end -

I have the GridControl (DevExpress) form, in the end I have some method in the position of the vertical scrollbar I want to call. Is this possible? Thank you. Edit My solution (does not solve the exact question, but is a good job for me): zero gvDisplay_TopRowChanged (object sender , EventArgs E) {if (gvDisplay.IsRowVisible (gvDisplay.RowCount - 1) == RaouzibileState.Visible) {_lastFocusedRowHandle = gvDisplay.RowCount; LoadNextPortionOfData (); }} I have not used devexpress before, but about handling it The way to go should still be the same or similar, because you still need to create your extended event. What is done for the default forms of the following windows, if DivXpress expands on it, then there should be no problem. This will be handled by a trigger event. The component class you are using should be a scroll event, this event is called when the position of the scroll bar changes if you create a new component class and you get it from the component class ...

class - Show Different Classes in Tree View Structure for Documentation -

I want to know that there is a device that can show my class hierarchy in a tree, e.g. Public Class Class A {Classb Variable; Class C variable; I showed it in bold format I just wish that such things should be shown in the tree view, is there any device that can help me to make this tree of orbits ?? I found a solution in the form of a class diagram, not because I did not think of them in the first place. :)

Visual Studio windows layout presets -

I want to be able to store / load visual studio layout presets, of course I have a laptop working with the 1366x768 resolution when I put it in the dock station so I have a 1600x1200 display attached. I want to preset a visual studio layout for each resolution. I want to switch the Visual Studio Windows layout easily. Is there any ADIN available to meet my needs? See also Actually I was able to find answers on stack overflow here. Adin's name is perspective and it can be found in the Visual Studio Online Gallery.

delphi - rtf and html can live in the same application? -

I think this is a very popular problem for me. I have a heritage app that includes the RTF field. In my case, RTF is used only for very basic features (font: size, style, color, hyperlinks). Anyway since I allow to paste from the word, sometimes some more complex things can go there. Now RTF is fine, even with Report Builder, I can get the report where the RTF is printed. > The problem comes with the web application I am developing a web application which is basically an alternative interface for my heritage app. At this level, I solved the problem by removing RTF formatting (I used the TRICHEdit move discussed). Anyway I would ideally like to be able to see and edit the formatted text in both web applications and Win32 applications. What can be the solution? I have a link to a converter. But even if I can change these points, I will not match: Storage: What to store? Of course I currently store RTF. Will I show the RTF every time in the web app and then change ...

curl - Python urllib post with different content type than urlencoded -

I understand that, to post with urlib, I need to use URL encoded content. Is it possible to use application / JSN content type when posting with? not with urlib, like you do content-type headers, and urlib One does not provide a way to do this. You can do this but not with (but with urlopen () , instead of submitting this data, "Opening a file with a URL" means): urlib2 req = urllib2.Request ('http://www.example.com/', data = "ABC", header = {'content-type': 'text / plain'}) r = urllib2 .urlopen (req) Personally, I like (3D party) as a http client library.

android - Is there a way to be aware of the execution of a 3rd party app? -

Actually, I have to figure out when another app starts, so I adjust my app in a special way Can i For example, if the user starts the Gmail app, then my service can detect and respond. My current idea is getRunningTasks () from 'topActivity' Activity Manager class for each element. But it looks quite expensive because it has to be constantly tested in the background (and I am quite concerned about the use of my app's CPU). If someone knows better, I like to hear it! There is no way to do that "good way" which means that the broadcaster Do not Broadcast is the only way to start a service that checks out getRunningTasks () (you can also see which The app is on the background. I code if you are interested in that technology) Check the service at intervals of 5-10 seconds its al Turn off service on SCREEN_OFF and restart it on SCREEN_ON Sorry, but there is no other way for that.

java - Build an PhoneGap app with Apache Ant -

I want to create an automated building process with ant which will include and deploy the JavaScript files of my PhoneGapp application Make a build for I am a newbie with ant, is there any step from step guide anywhere on the way to use it with PhoneGrap? "post-text" itemprop = "text"> I set it to you tube. If you want to install windows as a search or soming, I think this is a good one, if not nonoton: It may be that the phone is in depth :

Google Map View, use "My places" map on android app -

I have an Android app would like to make, which uses Google Maps displays a map and show me your map. I started my app from this link But phase two I these API points would be added to your app: (this' technology and map of Budapest University of economics and I have a wish to make app that can download and navigate to the correct building everyone here) is it possible? If so, how can I do this? Thanks! Greg Follow this link link provides excellent tutorial

iphone - How show selected row when click on table view? -

I have a button when click on the button, then open the table view with 100 lines I select the user a ny row The check mark appears and when the user clicks again, I want to show that selected row when the view is open. How do you do this? For example, when the user clicks on the button, open the table view and say the 50th line. Now the user clicks the button again, so I want to show the 50th line directly, instead the user goes to the scrolling table view. So tell me how does this happen? Thanks in advance .. just call - (zero) Select RowAtIndexPath: (NSIndexPath *) indexPath Animated: (BOOL) Animated scrollPosition: (UITableViewScrollPosition) scrollPosition In your table view. For example, the following code will select 50th row in the first section: UITableView * tableView; [Select Table View RotvandAppath: [NSINXPath IndexPathForRO: 50 in Special: 0] Animated: Yes Scrollposition: UITWeWScrollPassationTep;

Entity Framework DataBase Initializors Add Columns -

Is there any implementation for the Database Initializers in the Entity Framework, which adds at least new columns to the missing? Looks like a real common scenario, so I do not want to change the wheel again If you mean the scenario in which you already have a database and you want to update it with your modified model definition (code-before data annotation or fluent mapping), there is no answer that is not an initial Will be able to modify the existing database and in the future 'm probably not the most. Adonet decided to use another approach for database upgrades which is called migration. Already available

xquery - Help with XPath query (count) -

I want to count all the descent or nodes of a certain node, but only all the lineages which are definitely below level 0 Starting with Do you have any suggestions? Actually something looks like: count (// fstructure / node ()) + count (// fstructure / node () / node ()) + Count (// floor / node () / node () / node ()) + 1 works for 3 levels and (element) node "foundation", even if it Not really good, but I need it for debugging only. Best regards, Johannes this XPath expression count (ExprForYourNode // * [no (calculation (ancestor :: *) & gt; / Pre> Select all the elements selected by the expression - Code> Exporter ornode 2 (zero-based) with maximum depth If you want to select all the anti - or self nodes (elements, text nodes, comment-nodes And processing-instructions-node) : count (ExprForYourNode // node (not (count (ancestor :: *)> this document For example : & lt; count (ExprForYourNode / ancestor :: *) + 2)) T ...

iphone - How to change the centre point of MKAnnotation -

Image
I am using MKMapkit for map-section in my app. I have to display a pin image as an Mk annotation. When I add annotations to the map view, the center of the image points to latitude and longitude. But I want to point the lower latitude and longitude of the image to the specified latitude and longitude. I am following the link to display annotations. What is the way to achieve the goal? Then please help You must set the appropriate price for the property of the annotation view: center offset By default, the center point of an annotation view is placed at the coordinate point of the associated annotation. You can use this property to change the annotation view as needed. This x and y offset value is measured in pixels Positive offset value leads to the annotation view down and right, whereas negative values ​​move it up and down.

sql - Stored procedure returns inaccurate data -

[पर जमा] कॉलम के लिए, जब @fiscalyear है उदाहरण के लिए यदि @fiscalyear = 2011 मैं के साथ डेटा चाहता हूं [पर जमा] कॉलम समाप्त होता है केवल 2011 या null के साथ और इसी तरह 2010 और 2012 के दूसरे वर्षों के लिए। अभी समस्या यह है कि जब मैं 2012 0r 2010 का चयन करता हूं, तब भी मैं 2011 में समाप्त होने वाली तारीखों के साथ डेटा प्राप्त करता हूं। कोई विचार? और संकेत के लिए हारून के लिए धन्यवाद - मेरी स्क्रिप्ट अब अलग दिखती है। @ फ़िलेसी ईयर int, @SchoolID int, @Status int के रूप में प्रारंभ से पहले सेट करें; @intCount पूर्णांक की घोषणा @sqlstr nvarchar (2000) सेट @intCount = 0 का चयन @intCount = गणना (*) EnrollmentDateSchool एड राइट आउटर से घोषित जुड़ें (चयन FP.FiscalYear, PrivateSchool। पर PrivateSchool अंदरूनी शामिल हों FiscalYearPrivateSchool एफपी से * PrivateSchool.PrivateSchoolID = FP.PrivateSchoolID) पर Ed.CreatedBy = P.PersonID कहां FiscalYear = @ FiscalYear पर Ed.PrivateSchoolID = PS.PrivateSchoolID वाम बाहरी जुड़ें Finance.dbo.Person पी पी एस और PS.IsActive = 1 और (@Scho...

is there a way where I can call an network API call on main thread in android honeycomb? -

I'm making a service and an app can call a method on the app service method calling an API and the API Based on, giving results. Since the app is targeting Android 3.0, I'm getting "NetworkOnMainThreadException". My requirement is such a way that I can not call the method in the background thread from the app. Apart from this, the method on service should return the boolean based on API call. Is there no way where I can call a network API call on the main thread in the Android honeycomb? import android.os.StrictMode; StrictMode.ThreadPolicy Policy = New StrictMode.ThreadPolicy.Builder (). PermitAll () Build (); StrictMode.setThreadPolicy (policy);

android - Two Activities as Launcher. One for smartphone and one for tablet -

I use two different activities as a launcher one for the smartphone and the other as one for the tablet Want to I know that I can keep both activities in the form of a launcher in the manager, but how can I appoint them for a phone or tablet. "post-text" itemprop = "text"> You can use a single activity without layouts which will check the Android version and related to each time The activity will start.

xcode - iOS: change png in a bar button item -

I have repeatedly put items in a bar, and I set it with a PNG (first page) And when I push it I want to change my PNG in "PGPNG" This code does not work properly: UIImage * first = [UIImage imageNamed: @ "Before .png"]; UIImage * Second = [UIImage imageNamed: @ "second.png"]; If ([sender is selected]) {[Sender Setizes: State for First: UControllStatEnormal]; [Sender set selected: no]; } Other {[Sender set image: State for second: UIControlState selected); [Sender set selected: yes]; } current responder does not know that UIBarButtonItem does UIButton is not deprived, so the setImage: forState: will surely work not UIBarButtonItems not can be set to different states. You can , however, use something like this (declared): sender.image = [UIImage imageNamed: @ "first.png"];

iphone - How do i replace spaces with +'s in Xcode -

I am creating an app in which a lot of URLs are called from a MySQL server. What do I have to do for my app to take text file text and send it (which I already knew how to do) but I need to change the space with + (plus) - (NSString *) StringByrepling accordions offstring: (NSString *) target withString: (NSString *) replacement; str = [str stringByReplacingOccurrencesOfString: @ "" withString: @ "+"];

google app engine - I can't upload my Play application on GAE : appengine-api-1.0-sdk-1.4.0.jar too large to upload -

I use play-ge module. I found this jar in Lib directory = & gt; Error 500 during execution (Klasnotfound Exception: com.google.appengine.api.memcache.MemcacheServiceFactory). So, it seems that this jar is necessary ... I get a discussion about it here: but no solution. Should I divide this jar? Pfff ... ;-) Everyone does this? You may want to use a different installation of GAE with a more recent version Can try. I have version 1.5 and I'm uploading my app with no errors: Play ga: deployment --gae = / user / javierhe / java / gae-sdk-1.5 0

ios - iPhone, iPod touch, iPad developing differences -

I am developing an application for iPhone 4 which uses cameras, accelerometer and gerroscope. I'm thinking that the same app can run the last generation on the iPod touch. I have trouble finding iPhone 4 for testing. And I would like to know that if I have to change some code then I want to run it on iPod touch. Both of them have retina displays and we are not using phone functionality. iPhone 4 camera high-resolution iPod touch camera, but there was not much problem in the iPod Touch iPhone Shares accelerometer and gerroscope together, so there is no worry in it. Therefore, this should work, although it is best to test on any of the devices.

groovy - Integration testing Grails services with injection -

I have a test integrity problem of my Grails service because the service under test is not being injected into my test Answered the advice, where on Stackerverflow, but so far my service injection can not be found. The following classes / & lt; Project_root & gt; / Test / integration / com / example : package com.example import grails.test.GrailsUnitTestCase class MyServiceIntegrationTest extends to GroovyTestCase {MyService service; Public Zero Testing Service () {Assign Service! = Null}} I have tried to execute both from the command-line ( grails test-app ) and both IDEA results in the same failure This is Grails 1.3.6 Any suggestions on how to do my integration test work? Please for? Autovoring works the same way, such as the integration test framework in other parts, to ensure that It is necessary that apart from proper encamiliar cas, the property has been named as service. class MyServiceIntegrationTest extends GroovyTestCase {def myService} An ob...

c# - Orderby in generic list -

I have a generic list that I am composed of two other lists. The order is not working properly. BeOrders come first (order according to date) then BTOrders (order according to date). Did I clarify something? I can not see anything wrong order = new list & lt; DataLayer.OrderStatusItem & gt; (); Orders.AddRange (BeOrders); Orders.AddRange (BTOrders); Orders.OrderBy (z = & gt; z.ordered); Yes, you remembered that OrderBy doesn 'T command in-place - this returns is an order sequence: var inOrder = orders.OrderBy (z = & gt; z .ordered); Or (assuming that order type is the list & lt; ... & gt; : order = order.orderbie (z = & gt; z.ordered) .Oolist (); Note that "no side effects" approach is not prevalent in the entire LIKQ Any operator can not change the archive which they say, they return a view on that collection (filtered, projected etc.) of some form. If you list the list & lt; T & Gt; which you want...

java - how do i get values from a properties file in quartz scheduler? -

I am using Spring 2.0.6 and quartz 1.5.2 in the Java based webpage. Want to know that my application contact-quartz How to configure XML, like I can read the value from the properties file That is, I can not use my file & lt; Property name = "imageFolder" value = "$ {config.imageFolder}" /> would like to read & lt; Property name = "raw imagefolder" value = "$ {config.rawImageFolder}" /> & Lt; Property name = "imageOutputFolder" value = "$ {config.imageOutputFolder}" /> & lt; Property name = "imageFolder" value = "/ path / to / dir1" /> Instead of & lt; Asset name = "raw imagefolder" value = "/ path / to / dia2" /> & Lt; Property Name = "imageOutputFolder" value = "/ path / to / Dior 3" /> Use: & lt; Bean class = "org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" &...

c++ - match multiple types for template specialization resolution -

Summarize the fact that normal work overloading will provide this example better, this means only There is a way to know about template programming. You're welcome to comment on profits / differences by using a function overload compared to fashion template specialization, though (although it may ask a question of herself). Consider the following example: template & lt; Typename T & gt; Inline zero toasting (T value, four * target, size_t max_size); Template & lt; & Gt; Inline Zero ToString & lt; Float & gt; (Float value, char * target, size_t max_size) {snprintf (target, max_size, "% f", value); } Template & lt; & Gt; Inline Zero ToString & lt; Double & gt; (Double value, four * target, size_t max_size) {snprintf (target, max_size, "% f", value); } Is these two attributes only match to float and double types? Actually I am writing a template specialization for a template type that matches float and...

Why doesn't my Python 2.6 auto-unzip egg files on import? -

I am under the assumption that python imports should automatically open egg files in site-packages. My installation does not seem to unzip the egg automatically. What I tried: (1) I used easy_install to install the suds module, Copy the egg file into the package. Python could not import it. (Import suds) (2) Then I used the always-unzip option - to easy_install. This time he gave me a directory instead of a zip file. Python could still not import Sud Module. (3) I changed the name of the directory revenge. Still could not find it. (4) Finally, I copied the directory of the eggs from the open eggs directory to python and python (no wonder). For me, there was not easy_install. What is missing here? Rufus By default (if you have not specified multi-version Mode), easy-setting one egg will add an entry to the easy-to-install.pth file in the site-package. Check to see if there is any reference to the sud egg. You can also check the Python Import Path (which is a lis...

c# - How to call method defined in Default.aspx.cs from another class -

I'm quite new to ASP.NET and I'm trying to build a website. I have a class in AppCode / GSA that requires access to declared event handlers in default aspx.cs. Can anyone help with it? I tried to search about it but all I got is standard method call like classname.methodname () after making an example of that class. Please help me here. What do I want to do here and why I need to say the method in default. Espx.cs I'm calling to do GSA operations, the HTML string I'm using to display search results in the placeholder. It works perfectly well now I am adding buttons in front of every search I show. When a user clicks on this button, the button must be replaced with the textfield and it will contain a small URL for that search result. Now I am getting the button to display every result, I have to assign the event handler to that button. I tried to put myself in that GSACS event handler, but the function was not called because it is not defined by default, so I d...

datagridview - C# extend indexer? -

Is it possible to use expansion methods to expand the index? I want to be able to get the value of the cell from DataGridViewCell of the given DataGridViewCell using header text like this: object o = line ["HeaderText"]; I have this code Public Static Class Extension {Public Data Object Cell (This Datagate WeaverRo R, String Header) {foreach (DataGridViewCell c in r.Cells) {if ( C. OwningColumn.HeaderText == header) {return c.value; }} Return tap; }} And I want a similar index. Thank you. The index really has properties, and the extension properties are not present in the C #. So, the way you want to do it, can not be done. Look for some background on this topic, and tell why that feature was considered, but eventually dropped from C # 3.0.

math - How to calculate the average stretch of a Quad? -

Image
Not sure I prepare the correct answer but basically I need to know how the average of a segment The size can be calculated, or some how can i calculate the average of 2 diurnals such as AC and BD taking Here. If you are asking how to find the average diagonal length, just search, Add them together and divide them by two. If you are asking how to determine how to A result of the shape of the area, they are equivalent to the formula Region = 1/2 * | AC x BD. Where x means.

Rails - Grails Service Equivalent -

When you want to write an internal service layer in Rail 3, where should you put the code? I am coming from the background of Grails and wondering what is the same in the service of the train. In addition, if it is included in this article or online video - it would be nice to see the link. Thank you. In this case, rail conferences generally refer to this item in Lib folder (i.e.; lib / services / erp_service .rb). I have created a 'Services' folder under the 'app' directory, in which the services have been included in this way in the past. I do not believe that you need to do some extra to load a class, even though you want to keep your services under the 'app' directory and they are not loaded, you can mess with the config You can try Autoload_paths option from application.rb (in a Rail 3.x application) Custom directories with # class and module which you want to be autoloadable # Config.autoload_paths + =% W (# {config.root} / extr As) config....

c# - Is there a way to have alternating row colors in WinForm Table -

I am new to all things. Net, and some small changes were worked out. I see that I see there is a method of attracting allRows in the code if I do this, then I can get the rows in alternate color: if (line Index% 2 == 0) {backColor = grayColor; } And {backColor = Color.White; } It works by default. However, because there is a kind of capacity, it will not always be right because the rows are supported. Is there a default way to do this in properties? Or some other method of achieving this effect? Thank you. What type of component are you using? In A AlternatingRowsDefaultCellStyle is the property that allows you to do exactly the same things you want here.

set legend in a for loop plot from a cell in matlab plot -

I need your help to solve a problem when I try to create a legend for the loop plot I am here. I am using the following code i = 3: 14 plot (data (,, i), data (:, 2)); Grab all; And Legend (textData {1,3: 14}); Texdata is a 1x14 cell where they are stored in the names of the legends I want to use. When I'm running my script, I get a plot but instead of legend I get this error message "??? Index matrix is ​​more than dimensions" Edit: I reply to whos textdata , because I can not write it on the comment reply well & gt; & Gt; Whos textdata name size byte class property textdata 1x14 1652 cell This works fine for me This code text string should not have any difference in the length of each string. data = magic (14); Data (2, :) = 1: 10: 140; Textdata = {'A' B '' C '' 'D' 'E' '' F '' '' '' '' '' '' '' '' '' '' '...

How to move form in C#.Net? -

Thank you for your last reply to my question, you can see the following link. Now I have to face another problem. When I changed the border thing of my form to someone, I can not take the form like a real form. Its stationary and can not be transferred anywhere. Windows can move the form anywhere in the normal border direction. But I want to move in this way to any border in this way, how can I do it? Please tell me if you can thank you for your time :) public class AppFormBase: form {safe override zero onload ( EventArgs e) {if (This.FormBorderStyle == System.Windows.Forms.FormBorderStyle.None) {this.MouseDown + = New MouseEventHandler (AppFormBase_MouseDown); This.MouseMove + = New MouseEventHandler (AppFormBase_MouseMove); This.MouseUp + = New MouseEventHandler (AppFormBase_MouseUp); } Base.OnLoad (e); } Zero AppFormBase_MouseDown (Object Sender, MouseEventArgs e) {if (e.button! = MouseButtons.Left) {return; } Down point = new point (E.X, E.I.); } Zero AppFormBase_Mouse...

How to display Grayscale image after changing the indexing in C# -

is a grayscale image I am who I pull dB (it is in bytes). I want to draw some boxes on it using the graphics object and then display this image. {Load // a bitmap object through the first image public byte (TransactionFieldList, BLLImageType imageType; ImagingTransaction.ImagingTransactionField & gt byte [] & lt) buffer, list [] DrawOverlayOnGreyscaleImage - What this was coded before was MemoryStream MemoryStream msBitmap = going into new MemoryStream (buffer); Bitmap bitmap obz = null; Bitmap obz = new bitmap (msbitmap); Int bmwidth = bitmap obj width; Int bmheight = Bitmap obz. height; // Drag some text on top graphics g = graphics.frame image (bitmap oz); The way the image now object graphics (Format8bppIndexed) changes occur is thrown an exception - "can not be made from an image of a graphics object is an indexed pixel format" . So I changed bitmap to format 24 bprgb. Now, there is no exception. But when I drew boxes on the image to go and try to save ...

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

If I have any results from the Active Records, then I have an array of hashes, if I have a reliable load, then every Each organization hash in record hash has a nested hash of its associated records My question is, is there a quick rail system that allows you to merge these nested hashes into a hash per record? An analogy will be changing the records table rows Another resemblance will be converted into a hash at one level of nested hashes. approach 1: select them in the section Include class user has_one: profile end is for square profile: user # street 1, street 2, city etc. end profile = profile.junks (user :). Selection ("User. *, Profile. *") All profiles. First.login Approach 2: Use delegation for class profiles : User # Street 1, Road 2, City etc. Representative: Name ,: name =,: email,: email = ,: from = to & gt; : End of user

iphone - Xcode 4.2 Beta and iOS 4.2 -

Let me develop a new project using Xcode 4.2 (beta) and IOS 4.2.1. I told XCode that the built target was iOS 4.2, but it does not seem that it has to be run at all. The project successfully builds, but never runs on the iPod again. However, if I am using iPod touch which is iOS 4.3 then it works fine. Does anyone know how I can fix this or what can be the problem . I was wondering if there was an easy way that did not include everything in the old code again with the installed version of old SDK. I am getting similar problems like this! So I decided to just have 2 xcode! I still have Xcode4 for the main development but have set the Beta version in a different directory, so I have / developer 4 for, and / developer / beta for the xcode beta version!

java - String to Char Array and Char array to String Conversion -

In my program, I'm getting a string from the database result set and change it to four arrays like this: emp.nid = rs.getString ("nid"). ToCharArray (); There is no error in this section. The string has been successfully converted to four arrays, but I have another such code: nid_txt.setText (Emp.nid.toString ()); This prints some weird text Why is this not original? Please help me You are calling toString on four [] - and he handles implementation with object , so you char [] Get the class name, @ and then the hash of the object, instead, call string (four []) constructor: nid_txt.setText ( New string (emp.nid));

algorithm - Find whether a minimum spanning tree contains an edge in linear time? -

मेरे होमवर्क पर मुझे निम्न समस्या है: एक ओ (एन + मी ) एल्गोरिथ्म यह पता लगाने के लिए कि किनारे और ग्राफ का एमएसटी का हिस्सा होगा (हमें इस असाइनमेंट पर दूसरों से सहायता प्राप्त करने की अनुमति है, इसलिए यह धोखा नहीं है। ) मुझे लगता है कि मैं एक बीएफएस कर सकता हूं और पता लगा सकता हूं कि यह किनारे दो परतों के बीच का किनारा है और यदि ये किनार उन परतों में सबसे छोटी है तो क्या। लेकिन मैं कह सकता हूं कि जब यह किनारे बीएफएस ट्री के पेड़ के किनारे पर नहीं हैं? एक संकेत के रूप में , यदि किसी भी चक्र में किनारे सबसे भारी बढ़त नहीं है, तो इसमें कुछ एमएसटी है जो उस किनारे पर है यह देखने के लिए, किसी भी एमएसटी पर विचार करें। यदि एमएसटी पहले से बढ़त में है, तो महान! हो गया था। यदि नहीं, तो किनारे को एमएसटी में जोड़ें। यह ग्राफ में एक चक्र बनाता है अब, उस चक्र में भारी बढ़त पाएं और ग्राफ़ से इसे हटा दें। अब सब कुछ अब भी जुड़ा हुआ है (क्योंकि अगर दो नोड्स उस किनारे से जुड़े हुए रास्ते से जुड़े हुए थे, अब वे चक्र को दूसरी तरफ से अलग कर सकते हैं)। इसके अलावा, चूंकि किनारे की लागत को नष्ट...