Posts

Showing posts from January, 2014

delphi - Is there a way to get a VCL Control's name through the windows API? -

मेरे पास एक वीसीएल नियंत्रण का एचडब्ल्यूड है जो कि किसी अन्य प्रक्रिया 'विंडो पर स्थित है क्या खिड़कियों एपीआई के माध्यम से उस नियंत्रण का अपना वीसीएल नाम ( TControl.Name सम्पत्ति) प्राप्त करने का कोई तरीका है? मुझे उस नाम की आवश्यकता है क्योंकि उस खिड़की पर कई टीडीटी हैं और मुझे इसके लिए एक WM_SETTEXT संदेश भेजने के लिए एक की पहचान करना होगा। दोनों अनुप्रयोगों के साथ बनाया गया था डेल्फी 2010। डेल्फी में निर्मित फ़ंक्शन है FindControl () जो देता है निर्दिष्ट एचडब्ल्यूडब्ल्यूड के TWINControl लेकिन यह वीसीएल के एक ही उदाहरण के लिए काम करता है मुझे लगता है कि आपको इसकी जांच करनी चाहिए। आपके पास TWinControl के सूचक होने के बाद, इसका नाम (स्ट्रिंग) +8 ऑफसेट पर स्थित है आप इसे पढ़ने के लिए ReadProcessMemory का प्रयास कर सकते हैं। संपादित करें: (अंत में यह मिल गया है: डी) GetWinControlName फ़ंक्शन कॉल करें // पॉइंटर को प्राप्त करने के लिए यहां की मुख्य समस्या है FindControl TWINControl एक अन्य प्रक्रिया फ़ंक्शन में GetWinControl (Wnd: HWND; आउट प्रोसेसआईडी: थेंडल...

python - sort of Natural language processing -

I have a word that says "racing". I want to know all my formats, for example adjective actions etc. Race racer race etc. Is there a Python Library that can help me? If you are interested in matching in these strings, then I recommend This allows you to easily mark the stars within a certain tolerance and match the token equivalent. For example, 'Race' and 'Racer' will have a higher matching percentage of tokens and they can be considered a match. P> As far as extrapolating the different forms of a word, I am afraid that I have never seen any canned, although it can help you towards your goal very well And perhaps you can start your own writing to the right place. I hope this helps

regex - Python match string if it does not start with X -

I want to find a file named "AcroTray.exe" on my disk. The program should print a warning if the file is located in any directory other than "distiller" I used the following syntax to match the negative (? ! Distillr) The problem is that though I "!" It always creates a match. I tried to understand the problem of using the eyewitness, but failed. This is what I tried to do: import re filePath = "C: \ Distillr \ AcroTray.exe" If re.search (r '(!! Distillr) \\ AcroTray \ .exe 'FilePath): Print "Match" This prints a match What's wrong with my regex? I would like to get a match: C: \ SomeDir \ AcroTray.exe but not: c: \ distillr \ acroTray.exe negative Look-up ( (? & Lt ;! ... ), do not look at the negatives: if re.search ( R '(? & Lt;! Distillr) \\ AcroTray \ .exe, filePath): This mail: in [45] ]: Re-search (R '(? & Lt ;! Distiller) \\ AcroTray \ .exe', r...

libsndfile - Error using WASAPI with PortAudio on Win7 -

I am trying to use PortAudio and libsndfile to run WAV files in unique mode on my Windows 7 machine , Error number-9984 "Incompatible Host API Specific Stream Info". I have filled the PaWasapiStreamInfo struct in such a way: Structure Pavaspeptream InfoIpiaInfo; WasapiInfo.size = sizeof (PaWasapiStreamInfo); WasapiInfo.hostApiType = paWASAPI; WasapiInfo.version = 1; WasapiInfo.flags = paWinWasapiExclusive; WasapiInfo.channelMask = NULL; WasapiInfo.hostProcessorOutput = NULL; WasapiInfo.hostProcessorInput = NULL; WasapiInfo.threadPriority = eThreadPriorityProAudio; Then specify the hostApiSpecificStreamInfo parameter and open the stream via Pa_OpenStream like this: / * stereo or mono * / out_prim.ChannelCount = sfinfo .channels; Out_param.sampleFormat = paInt16; Out_param.SuggestedLatency = _GetDeviceInfo (out_param.device) - & gt; Default standard output latency; Out_param.hostApiSpecificStreamInfo = (and wasapiInfo); Err = Pa_OpenStream (& amp; stream...

antlr - AST rewrite rule for OR lexer expressions -

मेरे पास निम्न एएनटीएलआर नियम है: प्रक्रिया: ('int' | char ') पहचान' ('आर्ग्स') 'शरीर - & gt; ^ (प्रोसीड्योर आईडीेंट (आर्ग्स) * बॉडी); मैं एएसटी में ('int' | 'char') भाग पर कब्जा करना चाहता हूं I जैसा कि आप देख सकते हैं, दाहिने हाथ पर यह दिखाई नहीं देता है, लेकिन मुझे यकीन नहीं है कि चुने गए 'int' या 'चार' के रूप में कैसे दिखें? एएसटी मुझे 'int' या ' char' भाग को प्रक्रिया के अंतर्गत रूट के तहत पेड़ में रखना चाहिए, लेकिन से पहले the IDENT । आप जोड़ी को लेबल कर सकते हैं, और तब फिर से लिखना में लेबल का संदर्भ लें: प्रक्रिया: primType = ('int' | 'char') आईडीएनटी '(' आर्ग्स ')' बॉडी - & gt; ^ (प्रक्रमित $ प्राइमटाइप आईडीेंट आर्ग्स बॉडी);

arrays - Php compare interval numbers -

मेरे पास यह है: $ values ​​= array ("10", "30" , "40") $ real_value = 22; मुझे यह तुलना करने की ज़रूरत है अगर यह संख्या $ मूल्यों की सरणी सूची के बीच अधिकतम या न्यूनतम है, उदाहरण के लिए इसे प्राप्त करें, संख्या 22 अधिक से अधिक 10 और अधिक 30 और 30 शामिल करें और अंतराल प्राप्त करें मैं इसे करने की कोशिश करता हूं लेकिन अंतराल पर कोई सीमा नहीं के लिए ($ i = 0; $ i & lt; गिनती ($ मान); $ i ++ ) {यदि ($ real_value & gt; $ मान [$ i]) {प्रिंट ""। $ मान। ""; }} मुझे उदाहरण 22 के लिए मूल्य के रूप में वास्तविक realvalval 30 की आवश्यकता है क्योंकि 22 की तुलना में 10 से अधिक है, लेकिन 30 या 50 से अधिक नहीं और अंतराल यह 10 के बीच है मुझे नहीं पता कि यह कैसे हो मैं समुदाय से कुछ विचार की आशा करता हूं ($ $ i ++) {if ($ real_value & gt; $ मान [$ i]) के लिए

sql - how to do inner join and right outer join in the same query -

मैं इन 3 टेबल है: FeatureTbl (FeatureId (पी), FeatureName) ParameterTbl (ParameterId (पी), ParameterName) Map_Parameter_To_Feature (mapId (पी), FeatureId (FK), ParameterId (FK)) मैं LINQ के लिए निम्न एसक्यूएल परिवर्तित करना चाहते हैं: का चयन करें FeatureTbl.FeatureId, FeatureTbl.FeatureName, Map_Parameter_To_Feature.ParameterId, ParameterTbl.ParameterName ParameterTbl भीतर से शामिल हों Map_Parameter_To_Feature पर ParameterTbl.ParameterId = Map_Parameter_To_Feature.ParameterId सही बाहरी शामिल हों FeatureTbl पर Map_Parameter_To_Feature.FeatureId = FeatureTbl.FeatureId इसके बाद के संस्करण क्वेरी निम्नलिखित परिणाम देता है FeatureId, FeatureName, ParameterId, ParameterName 1 करतब एक शून्य शून्य 2 करतब बी 10 परम एक्स 3 करतब बी 10 परम Y 4 करतब सी शून्य शून्य मैं निम्नलिखित LINQ लिखा: (context.ParameterTbls में पी से mp2f context.Map_Parameter_To_Feature में p.ParameterId पर शामिल होने के बराबर होती है mp2f.ParameterId mp2f.FeatureId पर context.FeatureTbls में च मे...

php: Regex and the caret -

So I am trying to create a regex to include the curriculum content of the text, but after that the 3 digits Except number one period and some text, I am trying to divide the course text into different corrections, so that I can finish with an array where every element has a class course. For example, suppose we have: $ text = "295. Student-Beginner courses or projects (1) open for students completing first year courses. Clinical work, regional Magazines for work, legal assistance, personal research and writing, writing or editing professor, student-taught courses, or other legal projects of serious, educational nature. Law 295 Approves Administrator and Dean 296. Legal essay. (8-13) " And this huge regex: $ lineDelimiter = = '/ (?: [0- 9] {3} (?: \ .5 | \ - [1-5])? [AZ]?) (?: - - [0- 9] {3} (?: \ .5 | \ [[0-9 ])? [AG]?)? \. \ S *. + \. \ S * (: ((\ [[0-9] + \ - * [0-9] * \)) (?? \ s * or \ s * \ ([0-9] + \ - * [0 -9] * \))) \ s * (? Prerequisite) + (???.?.? \ N...

Prolog Reciprocal Rule -

I'm sure it's basically basic, though I did not find it by searching here. I am learning to learn and found an example with the rules: (representation of adjacency) adj (1, 2) adj (2, 1) adj (1 , 3) Adj (3, 1) Adj (3, 4) Adj (4, 3) Now, it hit me as a bit useless, because we know that the nearest one There is mutual relation, it should be enough to define only one of each pair, and then define: adj (x, y): - adj (y, x) ! I understand why this simple effort does not work; It falls into an infinite loop if X and Y are not adjacent. But, I do not know exactly how to work it in all cases. You should enter an alternate name and use your logic to use it. For example adj (1, 2). Adj (1, 3) Adj (3, 4) Is_adj (x, y): - adj (x, y); Adj (y, x).

java - Generic method return super type of type param and method parameter type param -

I want to type super the ultimate of the ultimate type of one type and the ultimate type of the ultimate one. This compiled: import java.util.List; Interface foo & lt; A & gt; {& Lt; R, B expanded R & gt; & Lt; R & gt; Example 1 (list & lt; B & gt; entity); & Lt; R & gt; & Lt; R & gt; Example 2 (list increments unit); } But it does not apply that R must also be A's super. How do I do that? Actually, I want to do something that is expressed in these: But they do not compile. It has two objectives: I want to be able to assign results to both A and B, to any super class. In the implementation of this method, I need a result type in which both A and B can be included, then the first examples compiling will not work because they will not keep A in the result. I think you need to name the type parameter at the class level: import java.util.List; Interface foo & lt; Base, one base and GT; {& Lt; B. e...

PHP List based on Form Selection: MDB2 Error: syntax error -

I am creating a table that lists the country's details based on a form selection ... But I will continue this error: MDB2 error: syntax error . How can I fix this kind of error? Here's my code: & lt ;? Php $ db = & amp; MDB2 :: connect ($ DSN); If (PAR :: Year ($ DB) is) {Dead ($ db-> getMessage ()); } $ Table_name = "Country"; $ Db- & gt; SetFetchMode (MDB2_FETCHMODE_ASSOC); $ Country_id = mysql_real_escape_string ($ _GET ["country_id"]); / * We have to check whether the place_id is integer if we do not have to return an error if (Preg_match ('/ ^ [A-Za-z] + $ /', $ country_id)) 'echo' Lt; H3 class = "center" & gt; Please enter a valid country code. & Lt; / H3 & gt; '; Look & lt; P align = "center" & gt; & Lt; A href = "country.htm" & gt; Input & lt; / A & gt; & Lt; / P & gt; '; Go out; }; Collect values ​​from the form sent with the /...

javascript - Why does this event handler use "e = e || event"? -

Can anyone tell me what this line of code is: function (E) {E = E || accident; E.returnValue = false; return false; } e is the name parameter? If I change it to 'Myoparam' then will it work? What does e = e mean? Where is the variable event (after = ) declared? e.returnValue? This is all basic event management, although it is missing e.preventDefault () ... To break it, when an event handler is removed: Some browsers have a one for callback incident data Other browsers (mostly older IE) instead of window.event (which can only be used as a event is accessed here , Which is risky, because there is no local variables on that name) Next, e = E || accident; A standard way to say is, "If the parameter was not passed, define whatever is after = ". In this situation, if the event parameter has not been passed, it looks for the global variable. e.returnValue is one of three ways to stop the event, so its default action. The other ...

collections - Does pop throw an exception or not? -

The doctor says for the pop function: Users & gt; (Doctor Pop) ------------------------- clojure.core / pop ([coll]) For a list or queue, a new list / Without the first item, the queue gives a new vector for a vector, without the last item, if the collection is empty, then an exception throws However, I do not regenerate that behavior Where an exception should be thrown. For example, if I add three elements to the queue then pop five times: According to the doctor, this should not work though, instead of being an exception, I get zero. (pick (pop (pop (pop (pop (cose (angle (conj cloor lung presist cue / AMPT4) 5) 6)))))))) Now I like that rather than throwing an empty queue back exception instead of pop empty queue but I want to understand why the behavior is different from the doctor (less Less than what I understand by reading the docs). Actually I would like to know that I should protect myself here with one exception or if I can safely believe that p...

r - Calling up different list elements in a plyr -

मेरे पास कुछ कोड है जो इस तरह दिखता है reps = 128 परिणाम = llply (1: reps, function (idx) {out & lt; -single.imputation (start.data)}। समानांतर = TRUE) start.data एक सूची है, 1 से मानों के साथ -128। मैं इसे कैसे कोड दूं ताकि प्रत्येक पीआरआईआर प्रतिनिधि start.data में एक अलग सूची तत्व का उपयोग करे? यह लूप के लिए स्पष्ट होगा, लेकिन यह स्पष्ट नहीं है कि यह कैसे plyr में करना है। अग्रिम में क्षमा करना अगर यह एक गूंगा प्रश्न है। आपके पास कुछ विकल्प हैं (शुरुआत संभालने .डेटा 128 तत्वों के साथ एक सूची है) सूचकांक start.data reps = 128 परिणाम = llply (seq_len (reps), फ़ंक्शन (Idx) {out & lt; -single.imputation (start.data [[i]]}}, समानांतर = TRUE) या के रूप में start.data का उपयोग करें .डेटा llply के परिणाम के लिए तर्क (start.data, function (xx) single.imputation (xx)। Parallel = TRUE) यह और भी बस के रूप में किया जा सकता है परिणाम & lt; - llply (start.data, single.imputation, .parallel = TRUE)

php - Jquery parsing response from api bbyopen -

I have trouble parsing this API, can you see what I have done? PHP kernel call: // Creating a new curl resource $ ch = curl_init (); // set URL and other appropriate options $ options = array (CURLOPT_URL = & gt; 'http://api.remix.bestbuy.com/v1/products(salePrice<='.$dollars.'&type=Music) ? ApiKey = gzunxsecretsdssf444and format = json & show = name, salePrice, shortDescription, image ', CURLOPT_HEADER = & gt; wrong, CURLOPT_RETURNTRANSFER => 1); Curl_setopt_array ($ ch, $ option); // grab the URL and pass it to the browser echo curl_xac ($ f); // Close curl processing, and curl_close ($ ch) for free system resources; JS: $ Ajax ({url: "./file.php", type: 'GET', datatype: 'JSON', success: work (data) {console.log ("success"); for console.log (data); (Var i = 0; i & lt; = data.products.length; i ++) {var thumb = data.products [I] .image; $ ('& lt; div class = "product" style =...

MySQL find duplicate rows in UNION table -

मैं नीचे दिए गए प्रश्नों पर डुप्लिकेट ईमेल कैसे प्राप्त करूं? SELECT b_email as ई-मेल उपयोगकर्ता से जहां स्थिति = 3 और बी_ईमेल! = '' यूनियन (यूजर वर्ड स्टेटस = 3 और सी_मेल! = '') से ई-मेल के रूप में ईमेल का चयन करें यूआरएल (यूजर डाइमेल के रूप में यूजर एमेल ईमेल = 3 और यूज़र_मेल! = '') यूनियन SELECT user_email के रूप में उप-यूज़र की स्थिति WHERE स्थिति = 3 और user_email! = '') से यूनियन (SELECT su_email के रूप में ई-मेल उप-यूज़र से WHERE स्थिति = 3 और su_email! = '') आदेश द्वारा ईमेल एएससी धन्यवाद। आपके क्वेरी परिणामों में डुप्लिकेट नहीं होंगे क्योंकि UNION को हटा देता है डुप्लिकेट। डुप्लिकेट को संरक्षित करने के लिए, इसके बजाय UNION ALL का उपयोग करें: का चयन करें b_email as the user from the user WHERE स्थिति = 3 और b_email! = '' यूनियन सर्व का चयन करें c_email as email from FROM उपयोगकर्ता WHERE स्थिति = 3 और c_email! = '' ... यह पता लगाने के लिए कि कौन से ईमेल पते दोहराए गए हैं, आप निम्न कार्य कर सकते हैं...

Error when configuring Python interpreter for PyDev in Eclipse -

I have recently installed PyDev 2.6 plugin for Eclipse (I run Eclips SDK 4.2.1) and when I Python interpreter in path I try to configure: & gt; C: \ Python27 \ python.exe, it gives me an error message on an "interpreter" and in the error log it says: com.sun.org.apache.xerces.internal .impl. Io.MalformedByteSequenceException: Unknown byte of sequence of 3 bytes UTF-8 2 I have read other similar questions on this website about this problem but the solutions are not in my position. I have no Unicode characters in my path. I run Python 2.7.3. I appreciate any help or advice about solving this problem because I really want to start Python coding in eclipse, Cheers. I have encountered the same problem solution Aptana (or eclipse, even at Cappler 4.2.x Was tested). The source of the problem was in the path of your eclipse / aptana installation; I think the problem here is determined by the diacritic symbol in your name 'Andres Diaz', according to your ...

text - Command to Create New File in Current Directory -

I would like to create a new text document in the current directory, named "new text document" highlighted for renaming. The text, just like you right-click the open folder & gt; New & gt; Text document I want to direct it from the command line, or if it is not possible then the batch script I just got% Windir% \ System32 \ notepad.exe and in the current folder Create a new document, or somehow launch it from the current directory. Or I thought of creating a file called "new text" Document.txt "elsewhere on the computer, And maybe pointing to that file, and in the current directory It is copying .. but I would like to change it directly. Does anybody know whether it is possible or not? Thanks Try it out: echo 2> NewTextDocument.txt This will redirect any error to NewTextDocument.txt.Because this command is valid (no error), it will produce new files with empty content. Regarding redirection More:

Value in C is returning null, not sure why -

क्यों प्रिंट स्टेटमेंट रिक्त हो रही है? #include & lt; stdio.h & gt ; & gt; # शामिल करें & lt; stdlib.h & gt; संरचना नोड {चार् संक्षिप्त नाम; डबल नंबर; संरचना नोड * अगला; }; शून्य डालने (वर्ण संक्षिप्त, डबल संख्या, स्ट्रक्चर नोड * हेड) {struct नोड * चालू = सिर; जबकि (चालू- & gt; अगला! = नल) {वर्तमान = चालू-> अगला; } Struct नोड * ptr = (struct नोड *) malloc (sizeof (struct नोड)); Ptr- & gt; संक्षेप = संक्षिप्त नाम; Ptr- & gt; संख्या = संख्या; वर्तमान-> gt; अगला = ptr; वापसी; } Int main (int argc, char * argv []) {struct node * head = (struct node *) malloc (sizeof (struct नोड)); सम्मिलित ( 'एन', 456, सिर); Printf ("% s \ n", सिर- & gt; संक्षेप); } आप एक नोड बना रहे हैं- head- & gt; अगले अंक, फिर डालें वहां के मूल्य आपने सिर नोड में कोई भी मान कभी सेट नहीं किया है।

iphone - Passing data to container view -

Image
I'm using the storyboard to create my app: And I know that I can pass the" controller "first by using the controller, using something like data: - Prepare (zero) ForSegue: (UIStoryboardSegue *) Segu sender: (id sender {if ([segue.identifier is EqualToString: @ "some_segue"]) {vc = segue.destinationViewController ; Vc.data = @ "data_i_want_to_pass"; }} But now, the data is going through "Tab Bar Controller", not "Discovery Table View Controller". Is there a way that I can pass data to "Discover View Controller" from "First View Controller"? Thank you. If it is ok to pass data on app startup (because all these controllers will be Instantiated, and embedded segue ), You can pass the Data Bar tab controller, and that controller will give you one. You will have to subdivide the tab bar controller, and as soon as you show the data in your question. Then in the Tab Bar Controller, you can enter some vi...

html - random image slideshow with jQuery -

मेरे पास इन कोड के साथ छवि स्लाइड शो है: - Jquery: - $ (फ़ंक्शन () {var चालू = 0, $ imgs = jQuery ('# header .abc71'); imgAmount = $ imgs.length; $ ($ imgs.css ('स्थिति', 'पूर्ण') (वर्तमान == imgAmount-1), (), (), (), (), (), (), (), चालू = -1; var $ nextImg = $ ($ imgs [++ वर्तमान]), गति = 1500; // एनीमेशन की गति दोनों छवियों के लिए समान होनी चाहिए ताकि हमारे पास $ currentImg.fadeOut (गति); NextImg.fadeIn (गति);}}); html: - & lt; div id = "header" & gt; & Lt; img वर्ग = "abc71" src = "img1.png" / & gt; & Lt; img वर्ग = "abc71" src = "img2.png" / & gt; & Lt; img वर्ग = "abc71" src = "img3.png" / & gt; & Lt; / div & gt; ये स्क्रिप्ट ठीक काम करती हैं लेकिन मैं यादृच्छिक क्रम में चित्र प्रदर्शित करना चाहता हूँ। कैसे मैं उस के लिए मेरी स्क्रिप्ट संशोधित या मैं किसी भी अन्य स्क्रिप्ट का उपयोग करना चाहिए? Plz मेरी मदद करो ... धन्यवाद समझ...

java - Unexpected Generated Evolution Script for Ebean Model with Enum Field Type -

I'm still learning about Ebean ORM with Play Framework What is the problem with the informal development script! Framework is generated by the Play !, with JDK 1.7 Update 5 64-bit. Framework 2.1.1 . I'm sorry, for the long code snippet of this question. I have two EBIN models resembling the following: course.Java package model; Import import.data.validation.Constraints; Import.db.ebean.Model Import; Import javax.preistence *; @Entity @Table (name = "castillo_courses") extends public class course Model {public enum CourseType {Essentials (1), BASIC_INTEREST (2), ADVANCED_INTEREST (3), thesis (4); Private int values; Course type (int value) {this.value = value; } Public int getValue () {return value; }} @ Personal string code id; @ Odds Mandatory private string course_name; @binding Essential private string credit; @ Barriers Type mandatory private course course_type; // EBN finder and other recipients and setter method ......} CourseInterest.java ...

ios blocks wait to finish -

How do I wait to end a block execution? I am interested in the context of HTTP requests where success response in the block is executed. This is especially in AFNetworking. I have received dispatch_sync , but it is not sure how to use it. FSNConnection supports block execution. Here is an example NSURL * url = ...; // Essential NSDictionary * header = ...; // Optional NSDictionary * parameter = ...; // Optional FSNConnection * connection = [ FSNConnection withUrl: url method: FSNRequestMethodGET header: header parameter: parameters parseBlock: ^ id (FSNConnection * c, NSError ** error) [return [c.responseData dictionaryFromJSONWithError: error];} CompletionBlock: ^ (FSNConnection * c) {NSLog ( @ "Full:% @ \ nerror:% @ \ n purse result:% @ \ n", c, c.error, c.parseResult);} progress block: ^ (FSA New connection * C) {NSLog (@ "Progress:% @:% .2f /% 2.F", c, c.upload progress, download progress);}]; [connection start];

css - How to add styles to rows in display:table -

The following is my code ... It's completely running in every browser except Firefox ... In Firefox, Bottom line limit is not showing ... How can I fix this? & lt; Display: table class = "displayTableBorder" export = "wrong" style = "width: 95%;" Rule = "Rows" summary = "Plan actions and notes" name = "DTO.listPlanNoteDto during plan" uid = "planNote" rule = "rows" request URI = "" pages = "2" & gt; & Lt; Display: column square = "table-line" style = "border: 1 px solid black;" Headline = "action" header class = "hectitable header" class = "displayaggle" style = "width: 10%; text-line: center;" & Gt; & Lt; A href = "javascript: showUpdateWindow ('UPDATE', '$ {planNote.noteId}');" Style = "font-size: 14 pixels; font-family: spacing; color: RGB (0, 0, 0); text-decoratio...

c# - Cannot update. Database or object is read-only -

In my MVC3 razor project, I have uploaded an Excel sheet and saved it in my project folder. I need to read the values ​​inside superiority. To do this, I am just making wet banking. I can not update the "error. The database or the object is read only." While line DBC connection. open (); Controller: performs string FP = "@" + session ["FilePathfinal"]. Toasting (); Datatelle fooData = new datatile (); OleDbConnection dbConnection = New OleDbConnection (@ "provider = Microsoft.Jet.OLEDB.4.0;" + @ "data source = '" + + fp + "';" + @ "extended property =" "excel 8.0;" ""); DbConnection.Open (); The FP file path is in the file path @ D: \ MVC \ Admin \ import.Admin \ App_Data \ ImportFileHome \ Baby needs.csv This is the way to get out of this problem. Any help ??? Note: My Excel file is Excel 2013 Try the CSV : OleDbConnection conn = new OleDbConnection ("Provid...

mysql - Why I could not alter the variable long_query_time variable at runtime -

I am using MySQL version 5.1.66. I noticed that the variable is dynamic, but when I tried set global long_query_time = 1; After the above action, I tried again mysql> Variables like show 'long_query_time'; + ----------------- + ----------- + | Variable_name | Price | + ----------------- + ----------- + | Long_query_time | 10.000000 | + ----------------- + ----------- + 1 line set (0.00 seconds) MySQL It is not being changed from the console, why? You are setting the global system variable, but you have query for session variables for the current session For the global variable setting to be effective, you need to reconnect, or @@ sessions. Long_query_time variables must be set. (Note that the versions shown by default show the session variables.) Here is an example: mysql> Show versions like session "long_query_time"; + ----------------- + ----------- + | Variable_name | Price | + ----------------- + ----------- + | Long_query_time | 10...

java - Sending text with new lines over network -

I am trying to send text with new lines on a network in Java. For example: "Hello \ nIt's a new line" Here's my code that I'm using for clients: / P> socket kkSocket = null; PrintWriter = Null Out; Buffet = thread in the thread; / * Connect to server here * / BufferedReader stdIn = new BufferedReader (New InputStreamReader (System.in)); String to server; User of string; While (= cesar = in.readLine ()) = = null {System.out.print ("server:" + server); if (server.exe ("by.")) {Brake;} user = stdIn .readLine (); if (user! = Null) {System.out.print ("client:" + user); out.println (fromUser);}} Out.close (); in.close (); stdIn .close (); kkSocket.close (); And here is the code that I am using for the server: / * Here the server Connect to * / printWriter = New printWriter (out of the client), In the BufferedReader = New BufferedReader (new InputStreamReader (clientSocket.getInputStream ()); String input line, Outputlin...

typescript - Type reference without full namespace -

दो टाइपस्क्रिप्ट फाइलें हैं: एटीएस: निर्यात वर्ग व्यक्ति {सार्वजनिक नाम : स्ट्रिंग; निर्माता () {}} और बीटीएस: आयात ए = मॉड्यूल ("ए"); Var p: ए। पार्सन; अब तक सब कुछ ठीक काम करता है। हालांकि, जब मैं एटी से आयातित प्रकार के नाम के लिए एक शॉर्टकट बनाने का प्रयास करता हूं: विविध व्यक्ति = एपीसरन; Var पीपी: व्यक्ति; संकलक शिकायत करता है (लाइन पर: "var पीपी: व्यक्ति"): नाम 'व्यक्ति' नाम में मौजूद नहीं है वर्तमान स्कोप लंबे नाम स्थान से बचने के लिए मैं इस या इसी तरह की सिंटैक्स कैसे प्राप्त कर सकता हूं? टाइपस्क्रिप्ट में, टाइप एनोटेशन को कंपाइलर के लिए जाना जाता है एक प्रकार से संबंधित है आप केवल प्रकारों के रूप में चर का उपयोग नहीं कर सकते आप एक मॉड्यूल को जो उपनाम देते हैं वह यह है कि आपने import स्टेटमेंट में निर्दिष्ट किया है - ताकि आप एक लंबे नाम स्थान से उपनाम कर सकते हैं, यहां एक छोटी उपनाम में: आयात उपनाम = मॉड्यूल ("मेरा / लांग / मॉड्यूल / पथ"); लेकिन आप करते हैं फिर उपनाम का उपयोग करना होगा। आप ज...

Where to put custom Array methods or Enumerable methods in Rails -

मेरे पास कस्टम सरणी विधियां हैं जैसे कक्षा अर्रे डीईएफ कम हो रही है? के लिए मैं (0 ... self.size) वापसी झूठी अगर आत्म [i] & gt; आत्म [i + 1] अंत सही अंत डीईएफ बढ़ रही है? के लिए मैं (0 ... self.size) लौट रहा है अगर स्व [i] & lt; स्वयं [i + 1] सही अंत अंत और मॉड्यूल गणनायोग्य def हल? each_cons (2) .सभी? {| ए, बी | (एक & lt; = & gt; बी) & lt; = 0} अंत अंत वर्तमान में मैं उन्हें एक मॉडल फ़ाइल में बेतरतीब ढंग से है रेल कोड में इन कोड को डालने का बेहतर स्थान कहां है? मैं इसे एक प्रारंभकर्ता में डाल दिया config / initializers ) को array_extensions.rb और enumerable_extensions.rb कहा जाता है।

interface - How to Call this C# Class (PropertyRepository class) Method -

I am studying this method and I want to execute a method but I do not know when to call from The parameterized constructor seems to be so complicated for me that the code I follow is made up of two interfaces and two sections. Below is the sample code. Please help me to call "TestMethod ()". If possible, someone can help me with the following goals. Call "TestMethod ()". Explain this pattern and its importance (if simplicity is better then help simplify them). Explain what constellation parameters are (if simplicity is better, please help simplify them). Console Application Class Program {Private Static IPO Service _property; Public Program (IPParty Service Service) {_property = property; } Fixed Zero main (string [] args) {Console.WriteLine ("Enter something ..."); _property.TestMethod (Console.ReadLine ()); Console.ReadLine (); } Public Interface IPropertyService {string TestMethod (string strParam); } Private class Property Service: I...

java - Can I use new spring 3.2 with older spring-security 3.0 -

I want to upgrade from 3.0 to 3.2, but I'd like to skip upgrading for a while. Can I use new Spring 3.2 with the old Spring-protection 3.0? We are successfully running an application based on Spring 3.2.1.RELEASE and Spring Security 3.1.3. RELEASE. Unfortunately I do not have any source that shows that it is officially supported. If you are using Maven in your project, you should emphasize the versions to avoid having the same jar with multiple versions in your classpath: & lt; Properties & gt; & Lt; Spring.version & gt; 3.2.1.RELEASE & LT; /spring.version> & Lt; Spring-security.version & gt; 3.1.3.RELEASE & LT; /spring-security.version> & Lt; / Properties & gt; & Lt; DependencyManagement & gt; & Lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.springframework & lt; / Group & gt; & Lt; ArtifactId & gt; Spring Reference & lt; / ArtifactId> ...

java - How to play embed video using loadDataWithBaseURL -

Description of problem I run SWF video by calling the loaddatawithbaseURL method and embeding data I am trying to But the video does not start playing, just show the white screen, am I doing something wrong? Source Code Get Web View from Create Layout (Bundle Saved InstantState) {// Layout} Get the MWebView = (Webview) ViewById (R.id. WebViewOnlieWebCams); MWebView.getSettings () setJavaScriptEnabled (true). MWebView.getSettings () setPluginsEnabled (true). . MWebView.getSettings () setAllowFileAccess (true); String mimetype = "text / html"; String encoding = "UTF-8"; String Embed = "& lt; Embed Type = \" Application / X-Shockwave-Flash \ "src = \" / Bundle / Maimman / swf / player-licensed.swf \ "width = \" 320 \ "height = \" 390 \ "style = \" undefined \ "id = \" mpl \ "name = \" mpl \ "quality = \" less \ "acceptable screen = \" true \ "permission = \...

c++ - Major differences between Visual Studio 6.0 and VS 2010 Compilers -

प्रिय स्टैकओवरफ्लो समुदाय, कुछ महीनों अगो मैंने निम्नलिखित प्रश्न पोस्ट किया आगामी चर्चा और आपकी टिप्पणियों ने मुझे यह महसूस करने में मदद की कि मेरे हाथों को नए संकलक पर लेना अनिवार्य था - या मूल रूप से वे अंतिम चिंगारी थे जो मुझे गति में सेट करते थे। कंपनी-आंतरिक "पैरवी" के एक महीने के बाद मैं अंततः वी.एस. 2012 प्राप्त कर रहा हूं !! (धन्यवाद लोग) मुझे इस्तेमाल करने वाले कई पुराने उपकरण वी.एस. 6.0 के साथ विकसित किए गए थे मेरी चिंताएं हैं कि इन उपकरणों में से कुछ नए कंपाइलर के साथ काम नहीं कर सकते हैं यही कारण है कि मैं सोच रहा था कि यहाँ कोई वी.एस. 6 और वीएस 2012 के बीच प्रमुख अंतर को इंगित कर सकता है - या कम से कम वी.एस. 6 और वीएस 2010 के बीच - 2010 से 2012 तक हुए बदलाव अच्छी तरह से ऑनलाइन दस्तावेज हैं। जाहिर है वी.एस. 6.0 और वीएस 12 के बीच मतभेदों को भारी होना चाहिए ... मैं ज्यादातर बुनियादी चीजों जैसे कि डाले आदि के साथ संबंध रखता हूं। वेब पर वी.एस. 6.0 के बारे में शायद ही कोई भी संकेत नहीं है- और मैं कुछ हद तक नुकसान में हूं: ( मुझे लगता है कि मुझे उसी कक्ष...

scala - transforming a Seq[Future[X]] into an Enumerator[X] -

What's the difference between a future [X]]? The case of use is that I want to crawl the web and get resources. It is going to return the sequence of futures, and I want to return a calculator which will push future futures into that sequence in which they end up in the Ittea for the first time. It seems that Victor Klang can be used to do this - although it looks quite disabled Note: In the question of Iteratees and calculator, Version 2.x, which means that with the following import: import play.api.libs.iteratee ._ : / ** * Close the first future" Choose "satisfied. Return it as a result, in the form of a sequence with the remainder of the futures. * @ @ Ultimate FS Single Scale Collection.Sec * / def [A] (fs: Seq [future [A]] (implicit EC: execution containbox): future [(try [a], seak [future [a]]] = {@ skala Try the trickler DRP strip (P: promise) [([A], Seek [future [A]], head: Seek [future [A]], AMM: Future [A], tail: SAC [future [A]]: Future [(try [...

iphone - Select all cells in UITableView even invisible cell in iOS -

All my cells Chunensbi a method I have to choose my UITableView . Check this method to check a checkbox (UIButton) . This is a great job for "visible" cells, but not "invisible" cells! Here's my method: - (IBAction) Chunensbi: (id) sender {for (NSInteger s = 0; s & lt; self.tableView.numberOfSections; s ++) {for (NSInteger r = 0; r & lt; [self.tableView numberOfRowsInSection: S]; r ++) {Kstmsel * cell = [Swatabl view Selforraaetindakspath [Ansaiaiansakspath Indekspathforar R Insakshn S]]; If (! Cell.checkbox.selected) {cell.checkbox.selected =! Cell.checkbox.selected; Cell.account.checked = cell.checkbox.selected; }}}}} Document: Selforruatindpath: Return value: the table is not visible, table or object that represents a cell of zero Or indexpath is out of range. You can create an array that contains a list of booleans to Czech or unchecked, and when the cell appear, then inquire.

c# - could not load oramts.dll -

Even I have installed Oracle services for Microsoft Transaction Server with Oracle Client, but still the following The error is: - Oram failed to load. Dll I have made a lot of mistake, everyone has the goal of establishing a transaction server for Oracle but it does not work. I'm using Oracle Client 11g 11.2 Is any other configuration necessary? Before this kind of problem, usually uninstall the existing Oracle client and then use Oracle services With the help of Oracle checks the check box for the Microsoft Transaction Server checkbox.

Null date in java code when i run the web service from server -

I created a web service and send the file to the client server. Then the server must save the file. File name I want to be something like message. 013.03.20.13.55.43.xml (yyyy.mm.dd.hh.mm.ss). I have deployed the web service but the files are saved like message_.xml (files overwritten), which means that the date string is zero. This is a part of my code: date format dateformat = new simpledatform ("yaya / mm / dd hh: mm: ss"); Date = new date (); String current_date = dateFormat.format (date) .toString (). ReplaceAll (":", "."); Current_date = current_date.replaceAll ("", "."); Current_date = current_date.replaceAll ("/", ".") ;; String pathname = "c: \\ soap_loadload \\ message_" + current_date + ".xml"; When I test it on my local host, it runs right. The operation system of the server is Windows 2008 R2. I think that you just see as the filename Message_ and its icon is probab...

regex for repeating characters in a string in Python -

I'm new to reggax. I have a regex that removes repeating characters from the string. & gt; & Gt; & Gt; Self.repeat_regexp = re.compile (r '(w) * (\ w) \ 2 (\ w *)') & gt; & Gt; & Gt; Self.repl = r '\ 1 \ 2 \ 3' Two lines of code combine repeating characters. For example, loooooooove goes to love . But I want to change the regex pattern, as if it only changes when repeating characters again 3 times. Expected Output: can not> --- Loooooooove can not ---- & gt; Love does not understand me as regex r '(\ w *) (\ w) \ 2 (\ w *)' ' and r \ 1 \ 2 \ 3 ' The above regexs can be understood if it makes sense. let me regex -> R '(\ w *) (\ w) \ 2 (\ w *)' and 'r' \ 1 \ 2 \ 3 'the meaning of the above regex can be understood. differs depending on the digits, underscore, location setting, Face to French characters with frames), zero or multiple times (using quantifiers * ...

extjs - How to disable action column item for a single row? -

इस JSON नमूना पर विचार करें: [{id: 1, संपादन योग्य: सत्य}, {Id: 2, संपादन योग्य: गलत}] ये रिकॉर्ड स्टोर में लोड किए जाने वाले हैं, फिर एक ग्रिड पैनल में प्रदर्शित किए जाते हैं। इस ग्रिड में ऐक्शन कॉलम आइटम हैं जो संस्करण के प्रयोजनों के लिए है। मैं प्रतिपादन के बाद गणना के बिना दूसरी पंक्ति के लिए केवल "संपादित करें" बटन को अक्षम करने का एक तरीका देख रहा हूं। मैं एक निर्मित सुविधा का उपयोग करना चाहता हूं जो ग्रिड प्रदान किए जाने के बाद हर पंक्ति को अपडेट करने के लिए स्टोर के माध्यम से लूप की बजाय संपत्ति की तरह काम करता है। क्या एक्स्टजेएस 4.1.1 इस प्रकार की सुविधा प्रदान करता है? आप उपयोग कर सकते हैं सेट अप डिसाइज्ड कॉन्फ़िग (कम से कम संस्करण 4.2.1): {xtype: 'actioncolumn', width: 20, आइटम: [{आइकन: 'app / images / edit.png' , टूलटिप: 'यह पंक्ति संपादित करें', हैंडलर: फ़ंक्शन (ग्रिडव्यू, पंक्ति इंडैक्स, कोल्ड इंडेक्स, आइटम, ई, रिकॉर्ड, पंक्ति) {var grid = gridview.up ('grid'); // आपको इस ईवेंट को अपनी ग्रिड पर सुनना होगा Gri...

C++ collect algorithm? -

Every now and then, I should run again on a subset of elements of a container, or just want to remove them and ignore them. rest. I'm ending using boost :: range :: adapters :: filtered to create this lazy collection for I (auto & amp; ; I: Container | Filtered (bidak)) {// .. Do Dot} Is there any reason for this lacking of STLs collected algorithms (in Ruby's collection) (we only Copy_if that is not the same)? Or is there any reason to use it? A possible implementation can be: template & lt; Class Container, Class Preddate & gt; Collect Container (Container & amp; C; Kindle & amp; amp; amp; P) {Container N; (Auto & amp; amp; i: c) {for {((i)} {n.push_back (i); }} Return n; } But a lazy_collect can also be useful to avoid duplication. All the answers below are great. I wish I could mark them all I did not know about std :: back_inserter . Collecting stuff is as easy now: Promotion: copy (original) filter (predicate), std :: ba...

Android 4.2 : Main Activity actionbar hides launching the new activity -

I am developing an Android application, where in main activity I am making an application with tab for the application. I've set up the listener to click the tab on the AdWords tab, which launches new activity in the app ... until all this is working properly. The problem is: When new activity is created on the tablet, the application's actionbar (which has been created in the main activity) has not been shown .... This app shows icon and name, but any tabs that I have in main activity Made it. I'm not using any supported libraries to support earlier versions of Android. I'm using Android 4.2. Thanks in advance. The solution might be as explained to expand the CreateOption menu method. Provides some guidance on possible solutions, using pieces instead of activities.

regex - find the occurrences of particular string in give string? -

Hi friends are now working in Perl. I need to check the string frequency in the set of arrays with the help of a pearl I can not but do anybody? Open the file, "& lt;", "tab_name.txt" or $ !! My @ TabName = & lt; FILE & gt; My @ all_files = & lt; * & Gt; $ {$ _ = $ Tab; before my $ tab (@ tab name); My $ pgr = "PGR Usage"; If (m / $ pgr /) {for (my $ t = 0; scalar @all_files; $ t ++) {my $ file_name = 'PGR.csv'; $ _ = $ All_files [$ T]; If (m \ $ file_name \) {print $ file_name; }} Print "\ n $ tab \ n"; }} Here's a problem: The second part of the loop should be a condition such as: For Code> (my $ t = 0; $ t & lt; @all_files; $ t ++) { Your code will never end in writing. However, it is much better: foreach (@all_files) [ In addition, you have problems with your regex is. A variable in reggae is considered as a regular expression. . matches a particular character. Thus, you...

ios - Core data - DENY rule is not deleting destination objects related to the source object deleted -

I have two tables There are many connections between assignment and question both tables. The rule is to remove the rules from the assignments DENY and cancel the assignments with the questions. When an assignment is removed, I would like to exclude all the questions related to that assignment, those who leave the questions which are still in reference, the other assignment is that Dennis is removed from the rule assignment Questions have been set on. Before deleting the assignment, I am sure that according to the tasks given below, I will remove the questions from context: assignment * assignment = removal of assignment; (In the questionnaire * question [assignment questions all object]) {// NSLog (@ "question id% @", question, question iid); // [Remove QuestionSignment Object: Assignment]; [Remove assignment question: object]; //question.assignments = Zero; } [[[CoreDatManager Shared Object] Managed Object Contract] DeliAbject: Assignment]; [[Coreadata Manager Sh...

sublimetext2 - sublime text 2 project sidebar stopped reacting on new files -

So I'm using Sublime Text 2 with many plug-ins (but not many: bracket heiglighter, css Snippets, filediffs, GIST and package controls). With the file list of the blue project, the feedback on the file changes from the sidebar was stopped. When I create a new one and save it to a folder, it does not appear in the sidebar at once, but only after the Sublime restart, which is unacceptable. Do anyone have any ideas on this? That project, where it has expired, and has not happened on new people, assume that this is something May be due to low machine performance - for big projects. Update The system / framework also helps to exclude core folders. "folder_exclude_patterns": ["node_modules", ".svn", ".git", ".hg", "cvs"], Can be done globally and in the Folder setting in the project.

c - What is the difference between lroundf(), floor() and nearbyintf()? -

I know that the above mentioned float value is used to round and double value. But can someone please explain how to eliminate the values ​​of each one? I could not find any documents for this. View the manual page ("Know Google for Google" whenever there is a Library function ") : - Round to the nearest integer, away from zero - Not a bigger integral value greater than logic - Integral value in floating-point format

microsoft metro - Loading a rtf file in a windows store app -

I am trying to load an RTF file in a Windows Store app, though this file comes with a style And sometimes this style is not applicable and ohter is not time. This behavior is random completely (if I resume the apple again and occasionally uses the container then uses the style, not the other). I RichEditBox only because. I have a RichEditBox menu .xml lift; Grid & gt; & Lt; RichEditBox x: name = "InfoContentView" vertical alignment = "statch" bordertrain = "0" background = "{x: faucet}" foreground = "#FFFFF" /> & Lt; / Grid & gt; And then I am injecting the RTF file like this: this.InfoContentView.IsReadOnly = false; This.InfoContentView.Document.SetText (Windows.UI.Text.TextSetOptions.FormatRtf, textContent); This.InfoContentView.IsReadOnly = True; Text content is loaded from the application package. I understand that even when I look at the text completely, the work is fine even then. I...

html - set javascript output in table structure -

यह मेरा कोड है: - var xml = "& lt; परिणाम & gt; & lt; परिणाम & gt; & lt; COUNTRY_CODE & gt; में & lt; / COUNTRY_CODE & gt; & lt; COUNTRY_NAME & gt; भारत & lt; / COUNTRY_NAME & gt; & lt; REGION_NAME & gt; गुजरात & lt; / REGION_NAME & gt; & lt; सिटी & gt; राजकोट & lt; / शहर & gt; & lt; अक्षां & gt; 13.060422 & lt; / अक्षां & gt; & lt; एलएनजी & gt; 80.24958300000003 & lt; / एलएनजी & gt; & lt; / परिणाम & gt; & lt; परिणाम & gt; & lt; COUNTRY_CODE & gt; KE & lt; / COUNTRY_CODE & gt; & lt; COUNTRY_NAME & gt; केन्या & lt; / COUNTRY_NAME & gt; & lt; REGION_NAME & gt; Vihiga & lt; / REGION_NAME & gt; & lt; सिटी & gt; Kakamega & LT; /City><lat>0.1182473</lat><lng>34.7334515999997</lng></result></results&gt, "; XmlDoc = $ .parseXML (xml); $ Xml = $ (xmlDoc)...

ios - You don't have any device tokens registered yet - Urban Airship -

I use urban air force for push notifications. . Down position 2013-03-21 14: 39: 16.231 SAMA [18,048: 907] [d] - [UAPush applicationDidBecomeActive] [line 555] foreground being investigated after notification 2013- the registration status 03-21 14: 39: 16.232 Sama [18048: 907] [d] - [Yuepius application Didbak Active] [line 561] app app foreground 2013-03-21 checking registration foreground 14: 3 9: 16.399 Sama [18048: 907] [d] - [UAUser listenForDeviceTokenReg] [line 931] ListenForDeviceTokenReg 2013-03-21 14: 39: 17.530 SAMA [18,048: 907] [d] - [UAUser retrieveRequestSucceeded:] [line 873 ] User taken: 200: {"user_id": "z3hUpYOpRKeLOAfKyjIvRQ" , "USER_URL": "https://device-api.urbanairship.com/api/user/xxxxxxxxxxxxxxxxxx/", "tag": [], "device_tokens": [], "device_pins": [], "apids" : [], "has_active_subscription": false, "membership": [], "ua_device_ids": [ "xx-DF...

php - Wordpress - Error: headers already sent -

इस सवाल का पहले से ही एक उत्तर है: 11 उत्तर मेरे पास एक फ़ॉर्म है साइट है कि मैं पृष्ठ पर एक साइडबार में शामिल किया है असल में यह क्या करता है कुछ डेटा एकत्र करता है, और अगर वह डेटा सही ढंग से भरा हुआ है, तो इसे दूसरे पृष्ठ पर एक बड़ा फ़ॉर्म पर भेज दिया जाता है। समस्या यह है, मैं 'पहले ही भेजे गए हेडर प्राप्त कर रहा हूं 'त्रुटि जब यह सबमिट हो जाता है अजीब बात यह है कि, फॉर्म मेरे डेवलपमेंट सर्वर पर ठीक काम करता है। असल में मेरा कोड ऐसा दिखता है; & lt;? Php if ($ _ server ['REQUEST_METHOD' ] == 'POST') {// त्रुटियों के लिए चेक यहां हैं (संक्षेप में छोड़े गए) अगर (! $ त्रुटियां) {हेडर ('स्थान:'। ब्लॉगइन्फो ('url')। '? Page_id = xxx'); }}? & Gt; ध्यान में रखते हुए कि मुझे त्रुटियों की जांच होनी है, क्या ऐसा कोई दूसरा तरीका है कि मैं हेडर () का उपयोग किए बिना साइट पर दूसरे पेज पर रीडायरेक्ट कर सकता हूं? किसी भी समारोह जो HTTP हेडर भेजता है या संशोधित करता है, किसी अन्य आउटपुट से पहले लागू किया जाना चाहिए अ...

algorithm - Running time of counting sort -

In my notes, I am trying to understand the time of sort calculation, the size of array A Assuming the N is, and the Kashmir number is in each number, for the count-ordering (a, k) {i (i = 1; i & lt; = k; i + +) // Count the counters 0 times [i] = 0; For (J = 1; J & lt; = Length [A]; J ++) // How often fixed [A] [J]] ++; // the serial in serial number / input / // appears in M ​​= 1; Consider each number in the range for (I = 1; i & lt; = k; i ++) // (j = 1; j and lt; = time [ii]; J ++) {// that Make the number in A [M] = I; // M ++ as the output multiple times; // It is in the input}} Let i repeat the internal loop for every i. When we look at the nested for the loops in the lower part of the code, note that, the internal loop runs every time, we are keeping a new number in the right place in the output array. Therefore: sum t i (i = 1 to k) = n I do not understand that this amount is equal to n. The external loop repeats the time of Kashmir, and the inter...

Applying Bootstrap style to Asp.net Controls -

I am creating a simple web project using asp.net 4.5, c # and bootstrap My foreground is just a master page / default page, where page title and contents are obtained from an MDB database with some static content (navbar, sidebar, footer etc.). I tried to make some pages and everything worked fine, but I realized that the style implemented on ASP.NET web control has not been provided. Note that I'm still putting content in DB because the editor has not done so yet. Example: & lt; I & gt; Prova tag & amp; Amp; ; I & amp; Gt; & Lt; / I & gt; It works (default styling) & amp; ATP: Button CssClass = "BTN BTN-Large" & gt; Test button & lt; / Asp: button & gt; (This does not work (simple, unstable text is shown) & lt; asp: label & gt; Prova roba strana & lt; / asp: label & gt; (This works (because it uses default style Is) Thanks in advance! There are two examples of buttons for a bootstrap theme. ...

dependency injection - How to inject the default Guice Provider into my custom Provider? -

If I make a provider and bind it to a square, like Bind (MyClass.class) .toProvider (MyClassProvider.class) then the provider Automatically bind the to MyClassProvider . This is a problem if you use the provider & lt; MyClass & gt; If you want to inject MyClassProvider in , then this way: @Inject the public MyClassProvider (provider provider) Code> I want to inject the default provider into my provider so that I can easily create new examples within my custom provider. How to do this? You will need to use one of two. If you do not comment on MyClass users, then it is quite easy. Public Class Audit {@Test Public Zero Test} {Injector Injector = Guice.createInjector (New Abstract Module) {@Override Protected Zero Configure () {Bind (MyClass.class). (Name name ("MYPROVIDER")). ToProvider (MyClassProvider.class);}}); MyClassUser user = Injector .get instance (MyClassUser.class); AssertTrue (user.get () myProvider.); // Show if I was created t...

Use perl to find the font properties of MS-Word document -

What do I need to do ... read a word file and add the forward tag based on the properties of the font Or to differentiate as paragraph. However, I have to do it through Pearl .. Is it possible ??? Any help will be appreciated. Thanks! I need more information to help you identify the words that need the process. In the example I just text some () #! / Usr / bin / perl Looking for Modern: Pearl; Use Win32 :: OLE; Use win32 :: OLE qw (with); Use Win32 :: OLE :: Variant; Use Win32 :: OLE :: Conte 'Microsoft Word'; $ Win32 :: OLE :: Alert = 3; Print "Start Word \ n"; My $ word = win32 :: OLE- & gt; GetActiveObject ('Word.Application') || Win32 :: OLE- & gt; New ('Word.Application'); $ Word- & gt; {'Visible'} = 1; $ Word-> {DisplayAlerts} = 0; My $ file = $ word- & gt; Document-> Open ("./fonts.docx") or Win32 :: OLE- & gt; Last erroor; $ Word- & gt; Selection-> Homaki (wdStory); $ Word- & ...

java - using RSA public.key distributed by a web service in android -

I try to secure connections between the Android app and Java Web Services I am with RSA private / public.key . I will tell you the whole scenario When the Android app is downloaded and installed on a mobile device, it only makes a connection with the web service to get public.key once. And this public.key will be used for all communications with the web service after that Android app. I have succed up with the public key and decrypte with the private key in the same application so far. But now I need to distribute the public key to my Android device customers and save them to this public.key file and use it. Tell me about your second scenario. I need to update these private and public keys for every 2-month example. How can I notify customers about the public key, renew and send them to the new public. Thank you thanks The code below is to request public.key. I can get in the inputstream but public Can not create key and write content in it. Public connect service (string s...