Posts

Showing posts from March, 2013

C# Func<> and generics -

So, I am doing a bit out of my comfort zone when working with the function of> lt;>, generics And lambda expressions but I guess. I normally look (like), but still a bit confused I took SortableObservableCollection class (online anywhere! - thank whoever it is implemented to do was get it) And it is used like this: _lookuplistViewModel.Sort (x => x.brandName, ListSortDirection.Ascending); Where the object type is implemented by a sorted archive. In this example, a property of type Brandnam object, but I want to use in a general category to the above address and to sort the property is sort method looks like this: Public Zero Sort & lt; TKey & gt; (Func & lt; T, TKey & gt; key selector, ListSortDirection direction) {switch (direction) {case ListSortDirection.Ascending: {ApplySort (Items .OrderBy (keySelector)); break; } Case Systems. CompanyModel.ListesDartDirectation Remittance: {Apply torrent (item order-ordered (key selector)); break; }}} ge...

Visual Studio 2010 "Preparing Solution" dialog -

This solution is the "solution to prepare" dialog, which VS 2010 shows when I open the solution? Is this shown to everyone or is there something wrong with my installation? Does anybody know what its actually doing? The official history of Cameron McCokal is here: In Dev 10 We have invested in improving the solution load time on loading asynchronous loads. Unfortunately, due to lack of time, this work did not make it in Dev 10, so we decided that to minimize the experience of the user at least, the user feedback was about what was happening during the solution. Initially it included a dialogue which provided accurate reactions on how many projects were being loaded with the names of the current feeding project. Initial testing of this experience showed that after loading the projects, there was often a non-trivial delay (i.e. spinning donut and "no answer" window title) and after the existence of dialogue the existence of the dialogue is very clear Gay...

performance - Merging two datasets in Python efficiently -

What is the most effective way to merge two datasets using Python? A small background - This code will record 100K + in the following format: {user: aUser, transaction: UsersTransactionNumber}, ... and using the following data {transaction: aTransactionNumber, activation number: assoiciatedActivationNumber}, ... {user: aUser, activation number: Associated activation number}, ... NB are not the Python dictionary, clear the record format The closest thing to be portrayed in the form of Yes. So in theory, I am trying to do all, a sequence of joining two lists (or tables) on a common key - first set me up (unions ), But before I start learning from these depths, is there a way to go? So far I thought it could be implemented: Make a list of dictionaries and repeat on the list every time the key, however, this is the worst case scenario. It can run to run (InputDict) * len (outputDict) & lt; - Not sure? Using data as an in-memory SQLite table? ...

drupal - How to specify alphabetical order of accented characters in Views? -

फिनिश भाषा में वर्णमाला क्रम abc है ... xyzåäö जर्मन में, आदेश [ए ए] बीसी ... एन [ओओ] पी ... एक्सआईज। ऐसा लगता है कि जब ड्रुपल के विचारों को वर्णानुक्रम में क्रमबद्ध किया जाता है, तो वे जर्मन आदेश का पालन करते हैं। क्या इसे बदलने का कोई तरीका है? दृश्य विन्यास का आउटपुट डेटाबेस के लिए एक SQL अनुरोध है , इसलिए सॉर्टिंग व्यू, ड्रुपल या पीएचपी कोड में नहीं है, लेकिन डेटाबेस में। आपको यह सुनिश्चित करने की ज़रूरत है कि परिणाम के रूप में जिस तरह से आपको इसकी ज़रूरत होती है, उसे वापस करने के लिए विचारों के लिए आपके पास कॉलेशन सही तरीके से कॉन्फ़िगर किया गया है।

javascript - Why can't I submit a dynamically created form in Firefox -

I have copied a part of a large project on which I am working, I have not written the code, so I hope That someone help me know that why a post request of the JS code from this fashion is sent, it works in IE and is not in other browsers. function f () {var container = document.createElement ("form"); Container. Method = "post"; Container .action = "http: // localhost: 3203 / somefile.aspx"; Document.appendChild (container); Container.submit (); } Try document.body.appendChild (container) Instead.

c++ - Should I use polyglot documentation? -

It is possible to touch a C ++ source file with an HTML document: // & lt ;; [Ignore [/ *]] & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Example & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; P & gt; Example & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt; & Lt ;! [IGNORE [* / #include & lt; Iostream & gt; Int main (int argc, char ** argv) {std :: cout & lt; & Lt; "Hello, world! \ N"; } / *]] & Gt; & Lt ;! [IGNORE [* / /]] & gt; This leaves a passage // at the beginning of the HTML document, which is : ... & lt; Body & gt; & Lt; Div id = "main" & gt; & Lt; / Div & gt; & Lt; / Body & gt; ... The content is styled to fill the content area with opaque background: #main {background: #ffffff; Left: 0; Status: Completed; Top: 0; } Is it a good idea to write code like...

php - Is there a standard for generating well formatted forms? -

I'm thinking that there is a standard for the form. I mean, when you write a form in HTML, it usually writes on the basis of its needs without looking after its HTML structure. I ask this because I am working on a form generator in PHP. I want to make some easy use and want to make CSS-optimized easy to generate a generated HTML code. Zend, there are some form generators from Symphony, but I find it hard to use them in the Zend, many concepts (one class for each type of input) and for symphony, you have to embed the whole structure Will happen. So if we can get a suitable form structure structure for all types of forms, then my work can be a good step for everyone else :) Have you seen more form helpers? They can give you some good ideas for your form generator.

php - phpBB3 - using $_GET -

I want to make amendments to my phpBB3 and it is necessary to use the $ _GET method by grabbing a variable in the URL. But does my phpBB3 increase vulnerability by using just $ _GET? Is there a function in phpBB3 that will do it safe or anything? Thanks The best and safest way to get data from requests is phpBB3 In use the request_var () function.

javascript - How to build this layout with CSS? -

I'm not new to CSS, but this is a problem for me and I can not solve it. I need to create a layout as: The height is set in the below given divisions and the upper part. One of the center should be excellent in page HEIGHT - DIV 1 HEIGHT - DIV 3 HEIGHT or in some cases small height. In addition, this size should be determined because I have estimate that sometimes the content will be bigger than this and then it will require a scrollbar inside it. When I will shorten DIV2, then when will I accept, but with DIV1 and DIV3, the page size will never grow bigger in size. Any solution will be good, not only will you use CSS, but if you have any ideas then you can throw some javascript too ... I would be grateful for any solution. That is not entirely correct :) I believe that you want something like this & lt; Div id = "header" style = "position: full; top: 0 pixel; left: 0 px; height: 200 px; overflow: hidden;" & Gt; & Lt; / Div ...

c++ - charset-aware tests like isalpha() etc. and iterators - is there such thing? -

मुझे एक अक्षर स्ट्रिंग और एन्कोडिंग वर्णसेट मिलता है, जैसे iso_8859-1 , utf -8 आदि। मुझे स्ट्रिंग स्कैन करने की आवश्यकता है जिसे मैं शब्दों में भेजूंगा, क्योंकि मैं जारी करना () और ispunc () । क्या वर्ण परीक्षण कार्य हैं जो वर्णक को खाते में लेते हैं? इसके अलावा, क्या वहां बीते बाइट्स की सही संख्या अग्रिम है? नोट: मुझे पता है कि मैं स्ट्रिंग को यूटीएफ 8 में कनवर्ट कर सकता हूं और फिर Glib :: thirst का उपयोग कर सकते हैं और इसके सुविधाएं। मुझे आश्चर्य है कि अगर मैं इसे से बच सकता हूं। यदि आप किसी भी कीमत पर रूपांतरण से बचना चाहते हैं, तो आप को अलग-अलग दिनचर्या का एक गुच्छा लिखना पड़ता है: स्थिर शून्य हेंडल_आसो_885 9_1 (कॉन्स्ट चार *); स्थिर शून्य हेंडेलआईएसओ_885 9_15 (कॉन्स्ट चार *); स्थैतिक शून्य हेंड_टाफ_8 (कॉन्स्ट चार *); स्थैतिक शून्य संभाल_स्ट्रिंग (कॉन्स्ट char * s, const char * एन्कोडिंग) {यदि (एसआरसीएमपी (एन्कोडिंग, "आईएसओ -885 9 -1") == 0) {handle_iso_8859_1 (एस); } और अगर (strcmp (एन्कोडिंग, "आईएसओ -8859-15") == 0) {handle_iso_8859_15...

jQuery or Javascript continuous counter (countup) -

There is a search for a script that I can ideally enter an initial number and a start date, which Once again, I set the example at 1% This means that it is showing a live count. Ideally, this script ideally counts that the number should be based on the difference between the current time and the start time. Can anyone get links or plugins or solutions they can share? If numbers of numbers can also be altered better, but appreciate a starting point very much. Thank you If you want only Javascript solution, Can create a div: & lt; Div id = "counter" & gt; & Lt; / Div & gt; and then use the following script anywhere on the page: var START_DATE = new date ("27 July 2010 13:30:00") ; // put in the starting date here var INTERVAL = 1; INCREMENT = 2 in SECOND SEC; // maximum per START_VALUE = 9001; // The starting value when this start date is var number = 0; Window.onload = function () {var msInterval = INTERVAL * 1000; Var n...

Is it possible to swap XML layouts during runtime in Android? -

Is it possible to load my main.xml layout file in onCreate () and later in the app, switch to a new one XML layout? I tried to put the set contentview () in the app later but in fact the new view is not being set, because the new set is returning as zero in my reference of the objects in the XML layout file, I use LayoutInflater Have tried to increase some layouts, but I have no luck (I'm probably doing something wrong) ... Then there is no need to swap layout xml layouts on runtime Other way? Thanks! You can have your layouts in the same xml file that you do not want to see immediately, in XML Set up android: visibility = "gone" , and you will call hiddenView.setVisibility (see Vijayan) on runtime. ; . Your XML will look something like this: & lt; Relative layout xmlns: android = "http://schemas.android.com/apk/Native/Android" Android: layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & L...

machine learning - Estimating the number of neurons and number of layers of an artificial neural network -

I am thinking about the number of layers and how to calculate the number of per-layer neurons. As input, I have the size of the input vector, the size of the output vector and the size of the training set. Generally the best nets trying different net topologies and one less error, unfortunately I can not do this. This is a very difficult problem. The more internal structure is a network, the better it will be to represent the complex complex solution. On the other hand, too much internal structure may be slow, training can vary, or overfitting - which will prevent your network from normalizing to new data. People have traditionally contacted this problem in various ways: Try different configurations, see what happens best. You can divide your training into two pieces - one for training, evaluation for one - and then train and evaluate different approaches Unfortunately, it seems like your case that this experimental approach is not available. . Use thumb rule. ...

c# - What are some useful shortcut keys in Visual Studio? -

समान पोस्ट: कुछ शॉर्टकट कुंजियां क्या हैं जो आप जानते हैं कि प्रोग्रामिंग तेज़, आसान या सभी के आसपास अधिक मनोरंजक बना? बेशक Intelli-sense है, यह स्वचालित रूप से खुलता है या जब आप Ctrl + Space दबाते हैं वेरिएबल / वर्ग / फ़ंक्शन या जो भी आपको दिखाता है उसे चुनें और इसे डालने के लिए Enter या टैब को दबाएं। कोड स्निपेट्स, जिसे इंटेली द्वारा प्रदान किया गया है -सेंस सूची सम्मिलित करें ताकि आपको फिर से सब कुछ लिखने की आवश्यकता न हो। आदि टाइप करें "प्रोप" और डबल हिट टैब । Ctrl + के , Ctrl + डी अपनी पूरी फ़ाइल को स्वरूपित करने के लिए ताकि यह क्लीनर दिखाई दे। #region / #endregion अपने कोड को समूहित करने के लिए और आपको पूरे क्षेत्र को छिपाने के लिए अनुमति दें

multicpu bzip2 using a python script -

I want to add several hundred gigabytes of data quickly to bzip2 using my 8 core, 16GB RAM workstation. Currently I am using a simple python script to insert a complete directory tree by using bzip2 and an os.system call. I see that bzip2 only uses one CPU while the other CPU is relatively inactive. I am a newbie and threaded process in the queue but I am wondering how can I implement it that I can run four bzip2 threads (in fact I can guess the OS system threads), each The experiment is hardly the end of the CPU, which ends the files in the queue because they catch them. My single thread script has been pasted here. Import file for file in OS.path.join file, oscord, oscord: filegate in filegate (root, filegot): if "bz2" file is not in: print " % S "OS (System)" System "(" BGP 2% "% file) Print:" Done " Use the subprocess module to generate multiple processes at once. If n of them are running (n must be slightly larg...

asp.net - PageRequestManagerParserErrorException on Live Server - Help! -

I'm really hoping someone can help you, I have to get this right tomorrow or I'm in trouble. I apologize because I have only a description from memory, at home. This error is: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server can not be parsed The common cause of this error occurs when the call for the response response Is modified by Writ (), feedback filter, HTT module or server trace is enabled. Description: '& lt ;! Error parsing near DOCTYPE html P, it appears in both FF and IE, and is only on live server. This partial (or partial effort is made because they stop working and Don can not be updated) Postback within the update panel on one form on each page. It does not always do this, but once it is broken, it is consistent. I suspect that after the question pages it has been posted back to a second page, but I am not 100% of this. This form is absolutely integral to the site's function. I have goggle and gogg...

ruby on rails - update embedded documents mongodb with mongoid -

I'm having trouble updating documents embedded in mp3db. I have the following scenario. A user model is known as edged docs. I am able to embed the address to the parent model; User model but I still do not know how to update Embedded address embedded though I have _id of address Please help thanks You will need to retrieve the embedded document from the parent and then perform an operation operation, such as: address = user.address address.update_attributes (: road = & gt; "foo")

workaround: javascript dictionary which takes objects as keys -

I read some questions and answers about javascript dictionary, but they do not meet my requirements: Must be able to take objects as a key Values ​​should be accessible by [] - operator So I object. Prototype The idea of ​​overwriting "valueOf" -method in the following is as follows: object .__ id__ = 0; Object.prototype.valueOf = function () {if (! This .__ id__) this .__ id__ = ++ Object .__ id__; Return "__id__" + this .__ id__; } Object.prototype.toString = Object.prototype.valueOf; // test var x = {p1: "5"}; Var y = [6]; Var z = {}; Z [x] = "7"; Z [y] = "8"; Console.log (z [x], z [y]); I tested it with Google-chrome and it seems to work well, but I'm a little confused, even if it creates some drawbacks, because it's so easy to implement Keeping this value in mind, the method is not used in the entire code for other purposes, do you think there is any harm? This is an interesting idea, I suggest that...

c# - Is WCF the right choice for me? -

What I know about WCF is the correct solution to this particular problem, but I want to do something on it To get input. Problem Details: Customers reach the domain objects almost once, 1-10 minutes (average 2 minutes) from a list, but no 2 clients ever The same object should also be used Example Usage: Client X -> Some orders should be maintained in the list. WCFService :: GetNextObject () - & gt; The list of objects is basically a DB table where each object is primarily annotated, get it from DB, sort and lieutenant; - Where the X is in the next object [1, ~ 200] All objects with Priority 1 should be next to the next. From there the order depends on the priority level. As priority should be handed over to chronological order on a 1 object object based on a datetime, whereas priority 4 objects must be handed alphabetically depending on the string value on the object. Some point of explanation: There are other sorting schemes for different priority levels, which ...

java - How to Convert an int ByteStream to a String? -

Hi, I am trying to implement the interface source stream in my application and override the method I read (byte [], off, lane) and I read bytes from a server. But I want to convert those byte streams into strings, for which I used string objects while doing new string (byte []), but the initial byte is the length of the bytes and i.e. the query of the LAN. Why is this asking, because we only have the string (by []) anybody can help me ... thanks If you have only one by [] You can then create provided by API string (byte [], Int, Int) through a String . Your case will do you byte [] myBytes = ("hello, world!") GetBytes (); String Maestring = new string (miciets, 0, mybank.lamp); Println (myString); Edit: Try something like this: int readLength = (lane> bufSize? BufSize: len); For (int i = 0; i & lt; readLength; i ++) {b [off + i] = buffer [pubf] [pibet]; } String Metast = New String (B, 0, Pail Lailanth);

licensing - How to license a sharepoint solution? -

Suppose you have created a SharePoint solution - a webpart, a feature for a list template, whatever - a Is planning to sell as a product. How would you manage the licensing of your solution? I'm looking for some input in at least the following areas: Code-wise: 1.1. Where do you keep the license yourself? Somewhere as a file? (Then what happens in the fields?) As the property in the farm property bag? 1.2. Do you implement "Home-Calling" - where your solution verifies the license against your company's servers every time? 1.3. Any other great practice in this area will be welcome ... Businessman Intelligent: Per User - How Do You License? Per server? Per instance (in case of webparts or list templates)? Thank you. I can tell you what we do: We have a separate form solution that handles test / registration support for all of our products We have a page to enter the license key under the page of the Central Admin solution. We can ...

jquery - Is it possible to start a colorbox based on a specified index? -

I would like to be able to pass in the index of the image on which I want to, when it opens, the color space starts Go. So if the user clicks on image 8 of 8, I still want to start in the Lightbox on Group 3. Is this possible? I have found a way to do this, the color box is to be brought up on the list of images, Then call $ ('selector'). Eq (indexhere) .click (); Thanks for taking a look at the eyes.

Robocopy non administrator -

Can I play Robo with a non administrator user if I have the right to read / write both on the source and destination folders ? Is there any side effect / limit? My order will be: Robocopy \\ server1 \ SRC \\ server2 \ DEST Thank you! Yes, it will work on permissions by you. If you want to mirror the subfolder, add the / MIR option.

iphone - Emulating the camera apps 'tap to focus' -

I'm trying to emulate the basic functionality of the built-in camera app. So far I have to focus on focus Tap 'on' Tap ' I have a UIView from which I am collecting UITouch events when a single finger is tapped on UIView. This is called the following method but Camera Focus & amp; Exposures are unchanged. - (empty) handle focus: (UITT *) touch {if ([camera lockform configuration: zero]) {CGPoint location = [view in touch location: camera view]; If ([camera is FocuspointOf Errative supported]) camera.focusPointOfInterest = location; If ([Camera is ExposurePointOfRemory supported]) camera.exposurePointOfInterest = location; [Camera UnlockFor configuration]; [Camera view animationfone: location]; }} The 'camera' is my AVCaptureDevice & amp; Is it non-zero, can anyone tell me where am I wrong? Clues & amp; This snippet can help you ... there is a cammeem provided by Apple While allowing you to focus, exposure changes when setting up ta...

asp.net - Redirect page after showing save message -

Click on the button after successfully saving the record, I click on the "Save successfully" message on a single label on one page How to show a server-side verbal control Is about to save the message in which some javascript is waiting and time allocated again? Alternatively, I suggest instead that the redirect happens immediately and displays the message indicator on the resulting page to display the message. It seems a more standard approach but knowing your establishment, it is possible that it is not acceptable for your needs.

asp.net - Checkbox itemtemplate templatefield text after databound -

मेरे पास मेरे ग्रिडव्यू में निम्नलिखित चेकबॉक्स हैं: & lt; asp: TemplateField HeaderText = "सक्रिय" & gt; & LT; ItemTemplate & gt; & Lt;% # DataBinder.Eval (कंटेनर.डेटाइटम, "सक्रिय")% & gt; & Lt; एएसपी: चेकबॉक्स आईडी = "सक्रिय" रनैट = "सर्वर" / & gt; & Lt; / ItemTemplate & gt; & Lt; / एएसपी: TemplateField & gt; और यह बहुत ठीक काम कर रहा है। मैं इसे एक bool मूल्य के साथ populating कर रहा हूँ। समस्या यह है कि यह ग्रिडव्यू में स्ट्रिंग पाठ को दिखा रहा है, जैसे: यह सच है [x] गलत [] सच [x] और इतने लंबे समय ... मैं चाहूंगा सिर्फ चेकबॉक्स दिखाएं मैंने यह पंक्ति डेटाबाउंड ईवेंट में कोशिश की: यदि (परिणाम। सक्रिय) {((चेकबॉक्स) ई। रो। फ़ंड नियंत्रण ("सक्रिय"))। चेक = सच; (चेकबॉक्स) ई.रो.फंडकंट्रोल ("सक्रिय"))। पाठ = स्ट्रिंग। खाली; } लेकिन इसका काम नहीं कर रहा है एक तरीका है? धन्यवाद, पेड्रो डसो टेम्पलेटफिल्ड के बजाय, आप केवल चेकबॉक्सेफिल्ड का उपयोग क्यों नहीं क...

iphone - How can I center my image in horizontal orientation? -

I have an image view that is inside a UIScrollView so that I can pinch & amp; Zoom My portrait looks fine in portrait mode, but when I go horizontal orientation the image is not centered. The UIScrollView is 320x460. Here is my code: - (zero) viewDidoadload {[Super Viewedload]; CGRact frame = CGRactam (0, 0, 320, 460); Self.imageView = [[[AsyncImageView alloc] initWithFrame: frame] Autoreshoe]; [Self.imageView loadImageFromURL: self.url]; ScrollView.contentSize = CGSizeMake (self.imageView.frame.size.width, self.imageView.frame.size.height); ScrollView.maximumZoomScale = 4.0; ScrollView.minimumZoomScale = 0.75; ScrollView.clipsToBounds = Yes; ScrollView.delegate = self; [ScrollView adsview: self.imageView]; } and the UIScrollView delegate method - (UIView *) viewForZoomingInScrollView: (UIScrollView *) scrollView {return imageView; } How can I focus my image in horizontal orientation? Try to autorimetry the scroll view: scrollview.autoresizingMask = (U...

java - recommendation for a good JSF profiler -

Any recommendations for good JSF profiler? I like Tomcat 6 JSF2, Hibernate & amp; Spring If you are using an IDE such as Eclipse or Netbeans, the built-in profiler or one Available in the form of plugins that are already sufficient in most cases. It all depends on the features and expansion levels that the profiler provides. The eclipse for Java EE ships, with which the epileptor depletion can be installed as a plugin in the eclipse version, simply deploy the project on the server, rightclick server instance and on the profile Select Server will be brought to you in the profile and logging perspective, in which you can test profiler results. Netbeans have their own, which is based on JDK's Biltin Profiler (in fact, this is the other way, using VJ VM as Netbeans Profiler before age). Talking about VisualVM, if you have JDK installed then you can use it independently too. You can also use it as a tomack. Also see:

Read a file's lines in Scala 2.7, keeping line terminators -

scala.io.Source strips \ r and \ n getlines I want to put those letters in strings returned. A similar note says: Return lines (not including new characters) [...] If you need more refined behaviors, then you need the source # LineEterator I can leave the I have tried the subtitle lineitor, but I'm having trouble (and possibly plain misconception!). I want something like this: Class FullLineEterator () Expands LineIterator {// Do not Strip \ r? \ N Override def getc () = iter.hasNext; & Amp; {Val ch = iter.next if (ch == '\ n') {SB Paragraph B is false} and if (ch == '\ r') {SB epindhy chi (iter.has next and iter.head == '\ n') {iter.next sb adder iter.head} false} Else {sb append ch true}}} But I pressed a few major problems: 1) The type of linetitle was not found, even if I have import slal. O.Source._ 2) I'm pretty sure that I can not reach SB because it's a LineIterator inside [this]. Did anyone want to do this? This i...

ruby on rails - activerecord association preventing record from saving -

I have a direct connection between the two models: assets and updates. Both models (unrelated methods of zero) are here: I have a problem where an asset record will no longer update. For example a simple test: A = asset. First; Puts one; A.description = "new"; A.save; Puts one. Puts Asset.first.description : "old" {} "old" a . Correct returns, a. Errors are empty; But the changes are not left. I tried to figure out everything in my item model through what it was, and found that if I removed the 'is_to: update' connection, then everything is fine. But how about any other table, which has no validity, can prevent the recording from saving, is a mystery (Plus if it was a verification problem, then @asset. In order to make the case stranger, I decided to rename the model to update my model, along with that, it worked so it is probably a reserved name for the update model. (Does not seem likely) . But I do not want to change t...

c# - Returning related elements in a single query (Is my query bad?) -

Hey, I have a table of those products with regards to myself, these table products, their sub-products , And then stores sub-sub-products. When a user searches for the top-most product, this query should be returned to parents, children, and children of his children. Now, my query works, but I am normally new to the structure of the organization and SQL, so I'm not sure that this is a way to do what should be done. To make things a little more hairy, I'm searching for many fields in the table. else {productQuery = solutions in b. Presentation. Example (b.Product.Name == Search || B.Product.Description == Search || B.Product.product 2.Name == Search || B.Product.Product 2.Description ==Search || B Product Product 2. Product 2. Name == Search || B. Product.Product2.Product.Description == Search) Order by B.Product LastNumber Ascending Selection B; } For clarification, Product 2 is a relationship that goes from child to parent. Subsection: In the future, I want to sear...

asp.net - How to reorder columns in a datagrid Dynamically? -

After I am using autogeneratecolumns = "false" and using some template fields. This works when I use: tempColumnNew = Me.DataGrid.Columns (oldColIndex) tempColumnOld = Me.DataGrid.Columns (newColIndex) Me.DataGrid .Columns.RemoveAt (oldColIndex) my But it does not remember the added columns on postback, so I add them to every postback. Is there a better way to implement it? are you using on the Page_Load event? If No IsPostBack then tempColumnNew = Me.DataGrid.Columns (oldColIndex) tempColumnOld = Me.DataGrid.Columns (newColIndex) Me.DataGrid.Columns.RemoveAt (oldColIndex) Me.DataGrid.Columns. RemoveAt (newColIndex) Me.DataGrid.Columns.AddAt (oldColIndex, tempColumnOld) Me.DataGrid.Columns.AddAt (newColIndex, tempColumnNew) end then

java - Is it possible to use a MapView without having to extend MapActivity? -

Currently in my design I have found a basic abstract class which is expanding all of my activities, though I It is only found that in order to use a map view you need to increase the mapping of your activity, since Java does not have multiple inheritance, so I was thinking that there is any way, for my application, I can use my map without using any mapview. Thanks in advance for any help! Regards, Celestialorab Good question I am interested in what others have to say if there is no answer, then you Should be examined; This is the map that I am using for my application. It is good to have a source code to work with ...

cvs - Can we commit individual files? -

Hello we are using CVS and development happens regularly I work only on one or three files most of the time Am I still making all changes to the folder ?? Is it possible to select files which are CVS committed and which are still in development? As I work in File 1, File 2 and File 3. For most days, with file 1, I see the log and there is some problem in file 2, so I make quick changes and commit to file 2. But the file in the file is still in development and only wants to make changes in file 2. Is this possible? Yes, just use cvs commit file2 Code>

regex - Match everything that isn't a number followed by a letter -

Sorry if this was answered elsewhere - I did some search and did not find the answer. Suppose I have a text file that contains a bunch of content that contains a business code, which is always in the format of the numbers after a capital letter. How can I just remove the oak code from the file? In plain English, I want to remove everything in the file that does not match the number-capital_lighter pattern. You can / (\ d + [AZ]) /

JavaScript Encapsulation -

So I'm looking at full development object-oriented JavaScript practices and think about the following examples. As I understood it, (and it makes sense to me) that the following 'secret' field is 'private': var MyObject = function () {Var secret = 'sshhh'; This.getSecret () = function () {return secret; }} And the reason for this is that there is an area of ​​work in the regional secret that can use the internal function, but nothing outside of it ... so far is good. But I have seen 'around the following (and in particular Douglas Crockford's book): var MyObject = function () {var secret =' sshhh '; Return {getSecret: function () {return secret; }}} (); And wondering what the difference is, why is it better? I understand that in this case we are not returning the same object, which is present in the private sector, but does not seem to be a big advantage because you can not reach this area directly in any way. These e...

Paperclip with MongoMapper in Rails 3 -

I'm trying to implement a paperclip in his first Rails application, and I use Rails 3 and MongoDB with mongomapper To be done. I have followed some things to do all the work followed at Just as the blog post shows, I put the paper clip in the config / initializers directory has, I gem gem is installed, the Gemfile (rails 3 right), I bundler ran in my user group, I added 'paperclip' When I load the app, I get the following error, undefined method user 'Has_attached_file' to receive: Class paperclip file looks like this module paperclip module ClassMethods def name has_attached_file, options = {} includes InstanceMethods write_inheritable_attribute (: attachment_definitions, {}) If attachment_definitions.nil? "_ {{}} After _post_process": "_ {{}} _post_process" before "_ {{}} =" [] = {: assumptions => []} = merge (option) after_save : save_attached_files before_destroy: destroyed_attached_files define_callbacks: be...

jquery - Force re-eval inline and included Javascript -

I am injected the Java page into w / Greasemonkey, processing some of the body content (by adding markup) The problem of putting content is that all the events in the original content are destroyed, such things like onClick events are broken, which were initially added to the page loaded. My original idea was to do this (using jQuery) (script) {$ (script) .appendTo ('head');}) code> Or simply: $ ('script'). Annex ('head'); I thought this script would be due to the reload / revolve, but it does not work. I would say a simple example of doing this: I have to re-apply this event in the application. Js $ ("H2.section_heading"). Click (function () {// something}} The question is What and when browsers are being added to the page in different ways & lt; Script & gt; If the tag is executed, then it is a thorny, if anything more is complex, with jQuery's efforts to work around this issue, you really do not want to in...

xml - XSLT multiple nodes same name same level -

मेरे पास निम्न XML दस्तावेज़ हैं: & lt; ReportParameters SP = "prRptActivityDetail" & gt ; & LT; पैरामीटर & gt; & Lt; नाम & gt; अवधि प्रारंभ दिनांक & lt; / नाम & gt; & LT; प्रकार & gt; दिनांक & lt; / प्रकार & gt; & LT; नियंत्रण & gt; DateTextbox & lt; / नियंत्रण & gt; & LT; controlname & gt; dtePeriodStartDate & lt; / controlname & gt; & LT; प्रमाणकों & gt; & LT; सत्यापनकर्ता & gt; आवश्यक & lt; / सत्यापनकर्ता & gt; & LT; सत्यापनकर्ता & gt; DataTypeCheck & lt; / सत्यापनकर्ता & gt; & LT; सत्यापनकर्ता & gt; StartBeforeEnd & lt; / सत्यापनकर्ता & gt; & Lt; / प्रमाणकों & gt; & Lt; / पैरामीटर & gt; & Lt; / ReportParameters & gt; मैंने उपरोक्त परिवर्तन करने के लिए एक XSLT फ़ाइल लिखी है: & lt; xsl: प्रत्येक चयन = "रिपोर्ट पैरामीटर / पैरामीटर / मान्यताओं" & gt; & LT; XSL: चुनें & gt; & ...

flex3 - Sorting problem after grouping -

Here's my advance data grid without grouping, Once I apply the closing, Looking down, looking down, Here is a piece of code that is applied after grouping and the grouping selection is assigned to the grid. validateNow (); Var s: Sort = New Sort (); S.fields = [New Order Field ("Danger")]; S.comparefunction = DangerArt Item; DataGrid.dataProvider.sort =; DataGrid.dataProvider.refresh (); Here is my comparison function, Personal Function Dangers (A: Object, B: object, field: array = null): int {return ObjectUtil .stringCompare (a.hazardnum.toString (), b.hazardnum.toString (), false); }

php - Delete directory with files in it? -

I wonder, what's the easiest way to delete a directory with all its files in it? i , however, if there are files inside it, then I can not delete it. At least two options are available now. Before deleting the folder, delete all its files and folders (and this means that recycling!). Here is an example: publicDefault function deleteDir ($ dirPath) {if (! Is_dir ($ dirPath)) {new invalid argument exception ("$ dirPath must be a directory"); } If (substrate ($ dirPath, strlen ($ dirPath) - 1, 1)! = '/') {$ DirPath = '/'; } $ Files = glob ($ dirPath; '*', GLOB_MARK); Foreign Currency (Dollar Files $ $) {if_dir ($ file)} {self :: deleteDir ($ file); } Else {unlink ($ file); }} Rmdir ($ dirPath); } And if you are using 5.2+ then you can use a recursive iterator to do it without having to repeat yourself. : $ dir = 'samples' DIRECTORY_SEPARATOR 'Sampledirtree'; $ It = new recurring directoryitter ($ dir, recursive ...

ASP.NET MVC 2 Data Validation: Make C# Regex work for both C# and JavaScript simultaneously? -

मेरे पास यह C # regex है: ^ \ s? ((? & Lt; qty & gt ; \ d +) \ s /) \ रों [$] \ रों (lt और; कीमत & gt; \ घ {0,2} (????? \ \ घ {1,2})) \ रों?।? ? $ और ग्राहक पर MVC के डेटा सत्यापन का उपयोग करें जावास्क्रिप्ट का कहना है कि यह regex अमान्य है, हालांकि सी # पूरी तरह से ठीक काम करता है। किसी भी विचार यह कैसे सी # और जावास्क्रिप्ट दोनों के लिए काम करने के लिए है, क्योंकि यह डेटा वैलिडेशन एनोटेशन में एक अलग जावास्क्रिप्ट Regex प्रदान करना संभव नहीं लगता है? Regex मात्रा और मूल्य की पुष्टि करता है उदाहरण के लिए 4 / $ 2.69। जावास्क्रिप्ट नाम के संदर्भ का समर्थन नहीं करता है (? & Lt; ... & gt ...) । आपको ^ \ s? ((\ D +) \ s? /)? \ S? [$]? \ S? (\ D {0,2} (?: उपयोग करने की आवश्यकता है? \। \ D {1,2})?) \ S? $ और qty और मूल्य के रूप में देखें 1 और 2 इसके बजाय।

Cocoa input validation for duplicate name how? -

How can I apply this recognition to coca? My position is: Model: An object name with an object name and an NSArray of individual objects, see: NSTableView, it The person uses data binding to bind with the object array. In-Place editing function is enabled in NSTableView. When the user is editing the name in NSTableView, I must check whether the person's name is already present in the array. I read the key - Various verification documents It seems that KVC will help validate the call: error: method on bound object So in my case, this person should be the object. But the person object can not reach the entire array, I can not check the repetition in the method. Can someone ask me to use key-value values ​​to handle this matter? Thank you! - Special User Interfaces User Updates A Value " take a look at. Hope it helps.

iphone - Adding Sections to a UITableView -

I have a button that will add a section to the UITWEView? I know how to do this without adding classes and just making a list, but you will allow the user to include cell / rows along with sections and rows. The easiest solution is to keep the NSMutableDictionary dictionary of children the easiest The solution is, each child's array has its own line of rows. When you click on the button, it will add an empty NSMutableArray child to the original dictionary key section index or name. The value will be the hair array then you fill the empty hair array with your line objects. Ensure that you adjust your representative methods to reflect the size and content of parent dictionary and children's arrays.

javascript - jquery click event does not work when content is overwritten using ajax -

मैंने इस कोड के नीचे की समस्या समझाई है & lt; div id = 'content' & gt; & Lt; div id = 'help' & gt; ब्लाह ब्ला ब्ला एक बार एक मिडस ब्ला ब्ला ब्ला नाम के राजा रहते थे; / div & gt; & LT; स्क्रिप्ट & gt; $ (Document) .ready (function () {$ ('# help') क्लिक करें (फ़ंक्शन () {$ ('help')। Hide (500);})}) & lt; / script & gt; & Lt;! - लंबे समय तक अन्य सामग्री के बाद पृष्ठ के नीचे - & gt; & Lt; / div & gt; & Lt;! - div id = सामग्री का अंत - & gt; & LT; स्क्रिप्ट & gt; फ़ंक्शन ऑनडेलेट () {// एक एजेक्स अनुरोध कर रहा है कि किसी आइटम को गतिशील रूप से अपडेट करने के लिए कुछ आइटम हटाने के बाद। // परिणाम भी उस मदद विभाग के साथ डिव कोड से ऊपर होगा। Document.getElementById ('content')। InnerHTML = xmlHTTP.responseText} & lt; / script & gt; एक ऐसी डिवाइन के भीतर एक सामग्री का हिस्सा होता है जिसमें 'आईटी' के रूप में 'कंटेंट' है I में एक सहायता डिवा है I कौन सा डिस्प्...

performance - int vs float arithmetic efficiency in Java -

I am writing an application that uses Djextra algorithms to find the minimum path in the graph. The weight of the nodes and edges in the graph is float , so the algorithm is making many arithmetic on the float numbers. If I can convert all the load to int s, can I get better time improving? Are int arithmetic operations fast in Java, then float those people? I tried to write a simple benchmark to check it, but I am not satisfied with the results I get. Perhaps the compiler has adapted some parts of the program so that the results are not good for me. Edit: The problem I'm trying to solve is that the Recovery Area app should show the answers to a query as a set of keywords. My data structure is a weighted guided graph. Looking at the set of lead nodes, I have to get a small tree which adds these nodes and shows the user's answer. The Weight Lifting Function is partly based on TF / IDF technology. The user does not know that the vods I assign to the nodes and the ...

Decrypting an encrypted text file generated using PL/SQL, encryption type AES256/CBC/PKCS5 -

I have created a text file, getting data from columns in a table. I then encrypted that data using the encryption type of PL / SQL and AES 256 / CBC / PKCS 5. I now need a program for the last program so that it can be used to decrypt that text file without having to install the oracle (I know how to do it in oracle, but the end user Oracle will not be installed) So if you know about a good program, post it. Export Ryan before encrypting in an accessible format.

iphone - PhoneGap: It's possible to use only the phonegap.js and it's functions only in a Website (doesn't want an App only a Webpage)? -

It seems that I did not understand correctly how PhoneGap works: I thought of a index .html , include PhoneGap.js as the type of JavaScript in and open the results on iPad / iPhone. But then, none of the tasks like accelerometer, beep (), vibration () is not working. Is it necessary to prepare an app to work properly? I have a webpage and I want to include only phonegap functions so that the iPad can detect whether it was shaken or a dragable HTML element Is able to do this and this is a better option? Greetings and Thanks! Phonegap is a native application wrapper for a variety of different phone platforms. It is required that you use the PhoneGap framework, which is written in the original code for each platform of each platform, whatever you are targeting, and you have the HTML, CSS and JS allow you to leave assets so that you only Children can apply for a phone with technologies Just Fongapkje.as on a Web site. Which is hosted on a server, will not w...

Jquery attr function does not work in IE7 -

I am using jQuery 1.3.2, it seems that the function functions in IE8 and FF3, But not in IE7 The problematic code: .attr ("disabled", true) or .attr ("disabled", "disabled") Is there an alternative way to disable an element? (A specific option in a selection element) Thanks. IE 7 does not support in selected options disabled This is a jQuery There is no issue. It has detailed information. There are JavaScript-based actions, such as adding functionality (however, they're gray-out.)

dynamics crm - Retrieve CampaignResponse Details from CRM -

I have created a campaign in CRM, now the users are registered for this campaign and the results are collected as campaign respondents objects Are there. I have to get the details of the reaction of a particular campaign by a given email ID. Can anyone tell me how it can be obtained !! Is the response to your campaign a response related to the email generated by a campaign activity? If so, you have to get the campaign response in addition to the initial activity pointing to the email activity created by Campaign Activity.

iphone - Is this a sensible app design? -

After a lot of reading and many tutorials, I am now trying to write my first iPhone app, but I'm already starting to run into complexities, so Want to go back to the basics and ask if I've got a fundamental UI design: Main window. TabBarController has 3 navigation controllers, each has a subclassed UIViewController (says VC1, VC2 and VC3) So far, straightforward and covered by many tutorials. But now my own thinking ends and my uncertainty increases: With one level of navigation (drill down) for one of those 3 views, for a detailed view, A list of data should be displayed. So why not TabBarController has 2 UIViewControllers and 1 UITableViewController, you can ask me exactly because: I also have 2 " Type "(good comparison will be" email in "and" email out ") User must also be able to filter the list (for example, new, starred , Xyz, etc.) Therefore, I have decided that I need a toolbar. To load a settings page, there are con...

vb6 - Run time Error '6':Visual Basic -

I am using Visual Basic 6 - I have the following code structure: FUNCNINFO is a structure FUNCNINFO as a public funcTable () ----- ------ Protect the reDim funcTable (0 to upsize + ns) when The value of (Upsize + ns) is greater than 32766, giving it runtime overflow error '6' Do you have any idea of ​​reason and solution? vb6's integer type is 16 beats, so no value is cached 32767, its long this is 32 bit integer type, so that the following will work; Keep long-term upsize = 32766 ns = 12345 redeem funcTable (0 and upsize + ns) as long as slow-ups as slow-ups

r - RODBC sqlSave column types: how determined? -

I am trying to understand how RODBC determines the column type of a newly created (Access) table? The R documentation for SqlSave is very confidential: "Types are sorted by selection in preferences and type configurations". And there is no example for this argument. Where can I find a better explanation? There is no need to see the sources instead of "getSqlTypeInfo (driver)". & gt; "Worker (255)" $ logical [1] "Attitudes (5)" & gt; GetSqlTypeInfo ("ACCESS") $ double [1] "double" $ integer [1] "article" $ character [1]

WCF RIA, Silverlight 4 -

I am working on a Silverlight 4 project. I am using WCF RIA on the server and am exposing the model using a DomainService. I have 2 tables, suppose that in Table 1 and Table 2, FID associated with foreign key is called. Therefore, I can load the data from both a Table 1 and Table 2 in a data grid. But my question is while editing the datagrid, if I need to change the link of the foreign key, then assume that the row 1 is connected to the foreign key FID1 and I replace that link with FID2 Want to At the same time I want to change the contents of Table 2 in the data grid on that line. Example datagrid1 [ID1 name FID1 F_post add F_Name] => [ID1 name FID2 F_post2 F_Name2 add] thanks I do not see the problem ... Did you use automatically generated data source templates? It should automatically set something like linked object to drop down list.

loops - 'if' inside 'while' statement in php -

I have this code that has a thinness through an array and removes the result on the page: while ($ row = mysqli_fetch_array ($ result)) {resonant '& lt; Tr & gt; & Lt; Td> & Lt; A target = "_ blank" href = "'. $ Line [' url '].' '& Gt;'. $ Line ['name'] '& lt; / a & gt; & lt; / td & gt; ; ' . '& Lt; td & gt; . $ Line ['provider'] '& lt; / td & gt;' . '& Lt; td & gt; $ Line ['media'] "& lt; / Td> & Lt; / Tr & gt; & Lt; Br / & gt; \ N ";} It just works fine, but I was hoping to use the 'if' statement on line $ ['media'] because some tap in it and There are some! Null results. I want to resize a small reaction like this: If ($ line ['media'] = null) {echo 'no'; } And {echo $ line ['media'];} Is this possible in this situation? Thanks. Use: ...

c# - i want to capture h4 heading tags which have nothing or spaces in them? -

मेरे पास निम्न पाठ है obart 18 सितंबर 1 9 05 को। & Lt; h4 & gt; ( ^) & Lt; / h4 & gt; हमेशा जैक के रूप में जाना जाता है, वह द्वीपों में एसएएस पर राबोल पहुंचे थे & lt; h4 & gt; & Lt; / h4 & gt; & lt; i & gt; Montoro & lt; / i & gt; एक कैवर शुरू करने के लिए, और d = "k987" /> gt; एक आईडी = "के 9 88" / & gt; & lt; एक आईडी = "k989" / & gt; & lt; एक आईडी = "k990" /> gt; & lt; / पी & gt; & lt; h4 शैली = "टेक्स्ट-संरेखित: बायां;" & gt; यूजरेंट - न्यू गिनिया का टेरीटरी & lt; / h4 & gt; & lt; br / & gt; div वर्ग = "उद्धरण" & gt; Kieta के लिए सभी गति के साथ, कपड़े और बिस्तर लाने राशन प्रदान किए जाएंगे। & Lt; br / & gt; & lt; / div & gt; div: clas: काला; आकार: 1px "/ & gt; & lt; h4 शैली =" टेक्स्ट-संरेखित: बायां; "& gt; & lt; / h4 & gt; & lt; / div & gt; & Lt; / bod...

unit testing - How do I test local inner class methods in java? -

In many applications, I often have algorithms that use dedicated sub-algorithms (or just well-defined pieces of code). So far, when I wrote the main algorithm, I made a personal law for each sub-algorithm like the example given below (Oldstyle): Public class OldStyle {public at main alg () {int x = subAlg01 (); Int y = subAlg02 (); Int z = x * y; Return z; } Private Ent SubLegacy () {Return 3; } Private Ent SubAlg 02 () {Return 5; }} This work is fine, but I did not like the propagation of methods (sub alg 101 and all a lg 02), even if private, only one method (main alg ). Recently I gave information about the use of local internal classes and now my example is (Newstyle): public class Newstyle {public ent major Alg () { Class nested {public at sub a lg 01 () {return 3; } Public at subAlg02 () {return 5; }} Nested n = new nested (); Int x = n.subAlg01 (); Int y = n.subAlg02 (); Int z = x * y; Return z; }} I like it very much, but now I have the following problem: how ca...

vb.net - Algorithm for star sign compatibility lookup -

I am using VB.NET but as long as it uses the infrastructure, any other known language Should be done right. My work is to create a composite chart, when there are some astrological signs in the form of two user inputs and there is a consistency about those signals. For people who are unaware of the astrological signs, but still want to help, there are 12 signs in each sign, there are other signs or different compatibility with themselves. So basically I get it in 12 ^ 2-12 situations. To wit. Aries with cancer "does not match exactly", so I can put a record back to that issue as the same is backwards (in the end-12). The question is simple, there is no other way to make it apart from using issues of 12 ^ 2-12 ... ie. Pseudo code If sign1 = 1 and sign2 = 4 return "does not match exactly" ... You need a two-dimensional array, in which the value of the value you want to return, say, a string, then you can say something compatibility = C [sign1] ...

php - Magento after Onepage checkout adding new products to cart -

I want to add some products after checkout, I have a supervisor and are listening on 'checkout_onepage_controller_success_action' When I try $ this -> _ getcart () -> addProduct ($ product, $ parameter); And to save the car, the success page will load, but no new product in the cart. Any ideas what is wrong? This is working if you $ cart = mage :: getSingleton ('Checkout / Cart'); Before you do a

jni - Underlying technique of Android's FaceDetector -

I am implementing a face tracker on Android, and as a literature study, the built-in technology of the Android Chev Detector I would like to recognize Simply put it in words: I want to understand how android.media.facedetector classifier works. A brief Google search did not generate anything informative, so I thought I would take a look at the code. By looking at the Java source code, it can not be learned: FaceDetector is only a square that the image dimension and the number of faces are provided, then returns an array of faces . The Android source I have followed through the function call, where, barely shortened, I learned: "FaceFinder" has been created On line 90, bbs_MemSeg_alloc returns an btk_HFaceFinder object (in which the function actually receives the face), essentially it is hsdkA-> gt; ; ContextE.memTblE.espArrE copies the original array btk_HSDK object () () btk_SDK_create () It appears that a maze of tasks provides with each...

how to convert sql server 2008 database to its xml form? -

I have a database in SQL Server 2008. I want to convert it to XML format. what I have to do? what is the procedure ? Please guide me. I do not want to write code for this in any language. Is there any feature in SQL Server 2008? Take a look at this solution here: This is a resultset for XML It uses an archived method to export it, it is an old article, but it is possible to check it out. I have not tested it so your mileage may vary. From the site: You create a file with the first text-editor like: & lt; Root & gt; & Lt;% beginindetail% & gt; & Lt;% insert_data_here% & gt; & Lt;% enddetail% & gt; & Lt; / Root & gt; Save it as c: \ temp \ template.tpl, you open QA and type: sp_makewebtask @outputfile = 'c: \ temp \ myxmlfile.xml', @query = 'select from sysobjects for XML', @templatefile = 'C: \ temp \ template.tpl' result is an XML-file!

c# - Is there a better way to hold a file path than in a string? -

I'm making a command line utility I need to pass around some file paths in the program. I'm just using the string but I was wondering if the net path was a quiet class to cross the path path. The best way to store strings path. If you want to modify or work with path, however, you should use . If you want something a bit more robust and can actually communicate with files / directories, you can also see and Keep, though, these two are extremely heavy if you need to collect the path.

iphone - Checking Internet connection with Reachability 2.2 -

There is no connection, we are trying to display an alert scene and we use the accessibility sections of Apple 2.2 are doing. The problem we are running is that at the beginning of the program, we are always getting alert view that there is no internet connection but we are connected to the Internet. Is there any right way to check internet connection with these sections? I remember that the Reachability is not good for checking the code network in the sample of the Apple code. Recommended Approach It was to see if the device can see your website (or web page), and if there is no error I have read it, where I search, but the original could not be found. Here is a separate link that uses that approach:

Oracle varchar2 minimum length -

We have a table with the varchar2 type column in Oracle DB (for example, USERNAME). How can I determine the exact (or at least minimum) length for this column? That's why all the usernames included in this table can be only 10 (or at least 10) characters long. You can use a check barrier: Table Mabelable (Macclaw varchar2 (50), barrier strollen check (length (mycolumn)> 2)) or something similar. I'm not sure how performant it is, though.

android - Using inputType on a TextView in a list item layout -

I have created a ListActivity I have an XML file that defines the layout for this activity. I have an XML file that defines the layout of an item in that list. There are 3 text views inside this item layout. If I add input type = "text" property to one of these text inputs, then when I run into my application emulator, the onListItemClick handler no longer executes. I have noticed that singleLine = "true" was disliked, which is why I changed it to input type = "text" Note: i 2.1 Setting input type Possibly the reason for making textviews focusing, and when you have a noticeable element in a ListView line, the row is no longer clickable It only happens. What to do with users entering InputType will be line = "true" equal to line = "1", input type = "text" Will not

.net - Fast way of going from Excel to a DataSet or DataGridView -

I have data that I am taking from the final goal of displaying in an aggregate sheet in the DataGrid view. Currently I am going to the range used for excel data and plugging it into Datagram view. It works fine, but when the data has 100+ rows, it gets trapped below. I have run excel in a dataset (using the same method of idle), and as expected, the same time to load the data. I was thinking that anyone has information in a better way? Maybe use XML from Excel file? Edit: Some additional information: This is a WinForms application and user excel Select the file and load it at run-time. Edit Return of some additional information: The excel file is located on the user's PC is. The general assumption is that whenever they use the application, they will load different files. [Not sure that it helps, but may be good to know :)] I had to face this problem recently ... I was not really able to find an out-the-box solution that would do this for me, so I ...