Posts

Showing posts from August, 2011

count - nested sql queries with case statement -

I am trying to use the results of a subquery as a derived table for the external query, since then Calculates and gives information to the group. Subkey This is a section of my SQL, and despite seeing me several examples online, luck does not get the right of syntax. This subkey is: select rname.rn_country as country, in the form of rname.rn_index id, yoga (rresults.rr_sec_total) time-rname intermediate rresults rresults When joining rname.rn_index = rresults.rr_rn_index where rn_view = 'right' and rr_date = '6/6 / 2012' and (rr_slide = 'standard' or rr_slide = 'water') group by rn_index, rn_country sum (rresults .rr_sec_total) & gt; = 18000 This is the result of: I need to do the ID where (what time and gt is counting the number; = 18000 and time = 36000) bronze, (time> = 36000 And & lt; = 54000) is silver, and time & gt; More than 54000 gold is classified by country. Therefore, based on the results of the above values, the...

php - How i can edit my htaccess file to let my site work with "www" only -

मेरा .htaccess फ़ाइल कोड है डायरेक्टरी इंडेक्स रूटर.php विकल्प + अनुवर्ती लिंक रीवरइटइन्गइन रीव्रैइटकॉन्ड पर % {REQUEST_FILENAME}! -f पुनर्लेखनकंड% {REQUEST_FILENAME}! -d रिक्राइटकॉन्ड $ 1 ^ (। *) $ पुनर्लेखन नियम ^ (। *) $ Router.php? _doroute = $ 1 [एल, क्यूएसए] मैं अपनी साइट को "www" के साथ ही बताना चाहता हूं मैं इसके साथ इस कोड को एकीकृत नहीं कर सका RewriteEngine RewriteCond% {HTTP_HOST} पर! ^ www \। RewriteRule ^ http: //www.% {HTTP_HOST}% {REQUEST_URI} [एल, आर = 301] क्या कोई मुझे मदद कर सकता है? आपके .htaccess फ़ाइल का पूरा आउटपुट क्या है? आप RewriteRule ^ (। *) $ Router.php? _doroute = $ 1 का एक नियम दिखा रहे हैं [एल, क्यूएसए] जो उस नियम के अंत में प्रसंस्करण को रोकने का संकेत देता है, [एल]। यदि आप बस जोड़ रहे हैं: पुनर्लेखन% {HTTP_HOST}! ^ Www \। RewriteRule ^ http: //www.% {HTTP_HOST}% {REQUEST_URI} [एल, आर = 301] तब आपकी समस्या होगी। एक वैकल्पिक विधि है: पुनर्लेखन% {HTTP_HOST} ^ example.com $ RewriteRule (। *) Http: //www.exa...

c# - how can I show the user that the data is gone when he trying to edit a field? -

Thus when a user clicks on the edit link to edit one of the clients (field) How can the client wipe out? Can the user be shown that the customer (field) has gone? Is there another way to use I'am's TempData? I think jquery but I do not know how to use it properly edit public functioning (int id) {client cliente = db.Clients.Find (id); If (cliente! = Null) {see return (cliente); } TempData ["message"] = string.Format ("This customer is expunged to another user"); Return Redirect Action ("Index"); } Edit: See more & lt; Table class = "widgets" & gt; & Lt; TR & gt; & Lt; Th & gt; & Lt; / Th & gt; & Lt; Th & gt; @HTMLconnect ("numbe", "index", new {ordenasien = vyubag.NamesSortperm, filetro = vubag.filter}} & lt; / tr & gt; @forchar (Miscellaneous in the model Objects) {& lt; tr id = "widget-id-@item.id"> LT; TD & gt; @ HTMLActionLink ...

linux - Grails installation -

I'm trying to install Grails from sources I started 3 days ago, and there are still some problems. Every effort ends with the message: : grails-bootstrap: compileGroovy [ant: groovic]> gt; & Gt; & Gt; A serious error occurred: grails / util / BuildSettings [ant: groove]> gt; & Gt; & Gt; Stacktrace: [ant: groovyc] java.lang.NoClassDefFoundError: grails / util / BuildSettings [ant: groovyc] [ant: groovyc on java.lang.Class.getDeclaredMethods0 (Native Method)] java.lang.Class.privateGetDeclaredMethods (Class .java: 2440) [ant: groove] java.lang.Class.getDeclaredMethods (class Java: 1806) failed to execute the operation: 'grails-bootstrap: compileGroovy' & Gt; Forked Groovy returned error code: 1 I am using Ubuntu 12.04 LTS 64bit What did I do: Install Java Java version "1.7.0-ea" Java (TM) SE Runtime Environment (Build 1.7.0-AA-B76) Java Hotspot ( TM) 64-bit server VM (build 17.0-B05, mixed mode) Install Jarozi Groovy...

zend framework - Zend_Rest_Controller and Zend_Rest_Route use cases -

I have been following these tutorials well and should say that they are great tutorials! I'm just confused about the full concept of Zend_Rest abstract methods. In examples, you can only see remove index post delete Although these functions are understood, I am trying to explain whether the entire architecture is limited to those abstract methods only. I am thinking about the use case where a consumer wants to use an API to update specific fields, which contains user tables, or other cases where the consumer wants to update the activity table. Business logic of these two tables is included in a Reciprocity API controller. I have to solve this problem by creating specific updates / post method for each table, and to determine which fields are updating This type of implementation is consistent with REST, and if so, how can you move forward in post, beyond, seamlessly? REST supports hierarchical relationships for architecture resources, and your resource is in any way...

- Where Developers Learn, Share, & Build Careers

I have to pass '_route' from a container as an event listener, along with the route attribute. In other words, I need listener service in which container information needs to be created, the whole service_ container is being overheaded without having to pass in the event listener class. I have seen a code example like this: Services: root.path.locator: class: Acme \ bundle \ HelloBundle \ Util \ RootLocator Arguments: ['kernel .root_dir% '] In a controller I will use something like code below to capture "_route": $ request = $ This- & gt; Container-> Get ('request'); $ RouteName = $ request- & gt; Get ('_ path'); However, in the event listener, I am not available. How can I do the above? Thank you, JB set From the scope to request the service xml tag, it will automatically inject the requested object, then set @request as an argument in Yaml, region: request and set the argument: [@request] .

- Where Developers Learn, Share, & Build Careers

तो, अगर मैं करता हूं: & gt; & gt; User.where ("facebook_data is null") (0.5ms) SELECT COUNT (*) से `उपयोगकर्ता` कहां (facebook_data is null) = & gt; [] अभी तक, मैं अपना उपयोगकर्ता खाता देखता हूँ: & gt; & gt; यू = उपयोगकर्ता.फंड (225) = & gt; # & Lt; उपयोगकर्ता आईडी: 225, ईमेल: "me@example.com", ... आदि & gt; & Gt; & gt; U.facebook_data = & gt; शून्य इसलिए मुझे स्पष्ट रूप से कोई भी facebook_data नहीं है यह रिकॉर्ड क्यों नहीं आ रहा है जब मैं जहां खंड का उपयोग करता हूं? ठीक है यह, मैं mysql में गया: mysql & gt; उपयोगकर्ताओं से users.facebook_data का चयन करें जहां users.id = 225; + --------------- + | Facebook_data | + --------------- + | --- | + --------------- + 1 पंक्ति सेट (0.00 सेकंड) और फिर कंसोल में .. & gt; User.find (225) .facebook_data == शून्य उपयोगकर्ता लोड (0.4ms) का चयन करें `उपयोगकर्ता`। * से` उपयोगकर्ता 'जहां `उपयोगकर्ता`।` आईडी` = 225 LIMIT 1 = & gt; सच है अतः...

flex - How do I load dynamic image assets into adobe air -

I show four random images at a time. These four images come from a set of fifty images. If this was a standard Flex project, then I would only set up the img.source property: this.img1.source = "..//satas/img/" + randomname + ".png" ; ` Although this is not working, I am getting a broken image, another way to go about it is to load the image with a urlLoader, which will also image Not loading (surprisingly, this is a local asset) loader = new loader (); Var urlReq: URLRequest = New URLRequest ("../ Property / IMG /" + Random Name + "." Png "); Loader.contentLoaderInfo.addEventListener (Event.Complete, Load); Loader.load (urlReq) So it is not working either, I am thinking of loading all the images in an swc and then adding swc to the project. This is not obviously great because then all the properties Loads in memory at runtime. Is there another way to do this? I hope that I have some very simple It is coming. If the .swc ...

All combinations of a mapped list of lists in python -

Hello how can I get a list of maps to print all possible combinations It is said that the core mapping = {1: [A, B], 2: [C, D] ...... then with the list [1,2] and above all the sample mapping Product Mapping by importing itertools = {1: ['A', 'I' 'B'], 2: ['C', 'D']} data = [1, 2] for the combo in the product (* (mapping for data [D]): Print Results in ('a', 'c') ('a', 'd') ('b', 'c' ('B', 'D') Edit It looks like you actually want Which wire == ['AC', 'Advertising', 'BC', 'BD'] .

hashmap - JAXB unmarshal map with object that contains yet another map -

I have successfully used JAXB to make some XML file uncompressed but I have another case Is more complex. Basically my XML file looks like this: & lt; BCLCurrenciesInflation & gt; & Lt; CurrenciesInflation & gt; & Lt; Currency & gt; & Lt; CurencyName & gt; Yen & lt; / CurencyName & gt; & Lt; COUNTRYNAME & gt; Japan & lt; / COUNTRYNAME & gt; & Lt; IssuingDate & gt; 1900/01/01 & lt; / IssuingDate & gt; & Lt; ExpirationDate & gt; & Lt; / ExpirationDate & gt; & Lt; Inflation & gt; & Lt; Years & gt; 1900 & lt; / Year & gt; & Lt; Percentage & gt; 16 & lt; / Percent & gt; & Lt; / Inflation & gt; & Lt; Inflation & gt; & Lt; Years & gt; 1901 & lt; / Year & gt; & Lt; Percentage & gt; 17 & lt; / Percent & gt; & Lt; / Inflation & gt; & Lt; / Currency & gt; & Lt; Currency & gt; & Lt; Curency...

- Where Developers Learn, Share, & Build Careers

I used a development environment for Django Framework using Gangororn (as a Django service) and using NGINX (as a reverse proxy) I'm busy setting up When I look at several tutorials and I think they are port 8000 and port 8001 ( http://127.0.0.1:8000 and http: / /127.0.0.1:8001 ). Port 8000 is often used for radio streaming and malware, so why? BTW: I'm running it on the Ubuntu 12.04 system using Virtualenv. On the NGINX port 80 and on the other side of the Gunoricorn listen to 127.0.0.1 instead of Gunicorn 0.0.0.0 Is running on, so it is not publicly listening, and therefore the only way to use the site externally is via port 80.

javascript - Search all pages for a with unique ID -

Is it possible to find all the web pages you have developed (not only the current page on the user's current page) ? If so, how would I go about doing this in javascript? Also, how can I redirect the user to the page in which the ID is placed with unique ID? If you really want to do this, you can do this if you want to url the pages Know: (using jQuery) function search page (url, amm), success, failure) {nextUrl (url, 0); // It calls itself as a callback because $ .load asynchronous function is nextUrl (i) {// This function is assigned to a body # myId for URL $ ('& lt; div' '& gt;) Attempts to load (URL [I] + '' AMM, function () {// if it is loaded, HTML will be if ($ (this) .html ()! == '') Success call ( This URL [i]); // If you have loaded all the pages, then you (i === urls.length) failure.call (this, url [i]); // Otherwise, the function for the next URL To call again Do Else nextUrl (i + 1);}); }; } SearchPages (['/ url1...

- Where Developers Learn, Share, & Build Careers

मेरे पास दो नियंत्रक हैं, foo और बार । बार # डाबर में संबंधित dobar.js.erb फ़ाइल है, जो सही ढंग से प्रस्तुत करती है जब सीधे प्री> * / *; q = 0.5, टेक्स्ट / जावास्क्रिप्ट, एप्लिकेशन / जावास्क्रिप्ट, एप्लिकेशन / एक्स्क्रिप्ट, एप्लिकेशन / एक्स-लिस्माप्टकैप foo # dofoo कमांड के साथ खत्म होता है रेंडर: एक्शन = & gt; '/ बार / दोबार' । इसका परिणाम निम्न त्रुटि संदेश में होता है: ActionView :: अनुपलब्ध टेम्पलेट (अनुपलब्ध टेम्पलेट foo / bar / action, / application / bar / action with {: locale = & gt; [: en],: प्रारूप = & gt; [: जेएस, "एप्लिकेशन / एक्स्प्लोज़िट", "एप्लीकेशन / एक्स-लिस्मास्क्रिप्ट",: html,: टेक्स्ट, जेएस, सीएसएस, आईआईसीएस, सीएसवी, पीएनजी, जेपीईजी, जीआईएफ,: बीएमपी,: झगड़ा,: एमपीईजी,: एक्सएमएल,: आरएसएस,: परमाणु,: यामएल,: मल्टीपार्ट_फॉर्म,: url_encoded_form,: json,: pdf,: zip],: हैंडलर्स = & gt; [: erb,: builder,: coffee ]}। में खोजें: * "/ डेवलपर / वर्कस्पेस / मायपोरेज / ऐप / विचार" * "/ यूज़र /...

java - array inside array android -

I do not know how to do this but what I want to do is create a two array .. one for the array class And for other information that I will use for the selected class for loop. I like to loop for each loop .. ^ _ ^ .. My question is. Is it capable of creating an array in which it will also store an array? For example: Personal Ultimate class & lt ;? & Gt; [] Cls = {class1, class2, class3}; Private last string [myfirstArray = {array1 [], array2 [], array [] 3}; Private final string selected []; For (int i = 0; i & lt; cls.lenght (); i ++) {if (myArrayClassParameter == CLS [i]) {selectedArray [] = myFirstArray [i]; Well my job would be to consume less time if it is posible .. Thanks. Of course - you can also create arrays of arrays, arrays arrays or arrays, and so on. . All you need is to add more pairs of square brackets [] . {"Quick", "brown", "fox"}, new string [] {" Jumps "," over "," the "}, new st...

ios - Modify iPhone to Force Landscape Orientation Only -

संभव डुप्लिकेट: मैं कारों में मीडिया केंद्रों के रूप में पुरानी iPhones का पुनर्निर्माण करने के लिए एक प्रोजेक्ट पर काम कर रहा हूं। मेरी विशेष आवश्यकता किसी प्रकार की ट्यूटोरियल प्राप्त करना है या विशेष रूप से डिफ़ॉल्ट आईओएस स्क्रीन अभिविन्यास को संशोधित करने के लिए आवश्यक चरणों को निर्दिष्ट करते हुए चलना है। कई लोगों ने लैंडस्केप मोड को अक्षम करने के लिए साइडिया में लैंडस्केप रोटेशन लॉक का उपयोग किया है, मेरा लक्ष्य केवल विपरीत है मैं पोर्ट्रेट मोड को अक्षम करना चाहूंगा, क्योंकि अंतिम परिणाम आईफोन को मेरी गाड़ी में क्षैतिज रूप से देखा होगा, इस प्रकार लैंडस्केप अभिविन्यास की आवश्यकता ही होगी यह कैसे किया जा सकता है? इसे आज़माएं - (BOOL) चाहिएअयुतरोटेटटोइंटरफेसऑरेंटेशन: (यूआईएनटरफेसऑरियन्टेशन) इंटरफ़ेसऑरियन्टेशन {रिटर्न ((इंटरफ़ेस ऑरिएन्टेशन == यूआईएनपरफेसऑरिएन्टेशन लैंडस्केप लिफ्ट) || (इंटरफ़ेस ऑरिएन्टेशन == यूआईएनपरफेस ऑरिएंटेशन लैंडस्केप राइट)); }

- Where Developers Learn, Share, & Build Careers

I am uploading some HTML5 and facing a problem that I can not figure out. Take this function code: If the image.save render: json = & gt; {: Condition = & gt; "Successfully uploaded image!"} And render: json = & gt; {: Condition = & gt; "Something went wrong with your upload!"} End This works and it does exactly what it should do. However, when I respond to the capture of HTML requests, it completely fails (though the HTML part works.) response_to do | Format | If @ image.save format.html {redirect_to (edit_product_path (@ image.product) ,: Notice = & gt; "Your image was successfully added.")} Format.json {Render: Status = & gt; "Successfully uploaded image!"} And format.html {redirect_to (edit_product_path (@ image.product) ,: Warning = & gt; "An error occurred while trying to upload your image. Please try again." }} Format.json {rendere: condition = & gt; "Something went wrong with you...

Installing ADT Plugin in Eclipse for Android -

I am using Windows 7 and am trying to install ADT plugin in Eclipse. I also tried Eclipse Classic 3.7, Eclipse EE, Eclipse Juno and 4.2. Eclipse in all cases could not establish it. It stops 35% to 50%. I have kept the system with 2 Mbps dedicated internet all night (the speed of thought connection is the problem), but in vain. You can try using "Eclipse Marketplace" from the following steps to get you the ADT plugin for eclipse Installing can help: Open Eclipse Go to Help - & gt; Search as "ADT plugin" Click the "Android Development Tools for Eclipse" section. Click on the Next button and Eclipse Instructions Follow li>

java - How to cache with weak references when values refer back to keys? -

मैं गवा का कैश & lt; key, value & gt; का उपयोग कर रहा हूं। जब भी कुंजी अधिक दृढ़ता से नहीं पहुंच पाई, तो कैश प्रविष्टि कचरा एकत्रित होनी चाहिए (किसी दिन ...)। CacheBuilder.weakKeys () का उपयोग करना बिल्कुल ऐसा होगा, अगर Value से वापस Key ] का कोई संदर्भ नहीं था। मैं इस संदर्भ को कमजोर बना सकता हूं, लेकिन यह कभी भी अपना मान काफी अमान्य बना सकता है मैं इसे संभाल सकता था, लेकिन मैं नहीं चाहता था। मैं कमजोर वैल्यू () का उपयोग कर सकता था, लेकिन इससे बहुत जल्दी बेदखली हो सकती है, क्योंकि मेरे मूल्यों का केवल संदर्भ है थोड़े समय। शायद मैं softValues ​​() , लेकिन SoftReference s का उपयोग कर सकता था। शायद मैं मिल रहा हूं कुछ गलत तरीके से .... सही समाधान क्या है? अपडेट मुझे केवल मान के संदर्भ में प्रत्येक कुंजी , लेकिन यह संभव नहीं है क्योंकि कुंजी मेरे नियंत्रण में नहीं है अगर यह था, तो मुझे कोई कैश नहीं चाहिए, कोई कमजोर संदर्भ नहीं, कुछ भी नहीं। इस तरह, प्रत्येक कुंजी इसके संगत मान पहुंच योग्य रखता है, जो ठीक है 1 । इसके अलावा प्रत्येक मान ...

html5 - Unable to center an embedded flickr slideshow with div and CSS -

कोड ऐसा कुछ दिखता है & lt; div class = "body" & gt; & Lt; div वर्ग = "फ़्लिकर" & gt; & Lt; वस्तु चौड़ाई = "600" ऊंचाई = "450" ​​& gt; ... फ़्लिकर स्लाइड शो कोड .... & lt; / object & gt; & Lt; / div & gt; & Lt; / div & gt; और फिर सीएसएस इस तरह div.body {ऊंचाई: 600px; चौड़ाई: 1024px; }। फ़्लिकर {डिस्प्ले: ब्लॉक; मार्जिन-बाएं: ऑटो; मार्जिन-दाएं: ऑटो; चौड़ाई: 600px; ऊंचाई: 450 पीएक्स; मार्जिन-शीर्ष: 50px; } एम्बेडेड ऑब्जेक्ट बस मूल तत्व के बायीं ओर चिपकाता है। इसमें कोई भी केंद्रित सीएसएस काम नहीं करता है। मैं एचटीएमएल में div में "align =" center निर्दिष्ट कर सकता हूँ और इसे केन्द्रित कर लेता है, लेकिन फिर सीएसएस में हाशिए-टॉप इसके लिए काम नहीं करेगा। इस अद्यतन बेस्ड को देखें

regex - Simple Javascript replace with a loop -

I'm trying to change all the components together with the array index value with the string below. var str = '& lt; A href = "{0}" title = "{1}" & gt; {1} & lt; / A & gt; '; Var params = []; Params.push ('url', 'titledisplay'); For (in the parameter) {var x = / '{' + i + '}' / g; Str = str.replace (x, parameter [i]); } No matter what I do, I can not seem to work on it Except '/ g' works with a match, but not all. I know that this is basic, but for me, I can not get it to work. code: var rx = / {([0- 9] +)} / g; Str = str.replace (rx, function ($ 0, $ 1) {return parameter [$ 1];}); Replace method loops via string (in Regex in / g) and find all examples of {n} where n is a number. Captures $ 1 number and changes the function {n} with parameter [n].

Javascript JQuery concatenatation of variable(form.inputtag.value) -

मेरे पास निम्न स्क्रिप्ट है: & lt; script type = "text / javascript" & gt; फ़ंक्शन मिल (पंक्ति) {चेतावनी (पंक्ति); $ .post ('getpeopleinjobs.php', {postvarposition: form.position1.value, postvarjob: form.job1.value, पोस्टवार: form.person1.value, postrow: row}, फ़ंक्शन (आउटपुट) {$ ('# प्रशिक्षण '+ पंक्ति)। HTML (आउटपुट)। दिखाएं ();}); } & Lt; / script & gt; यह 100% काम करता है हालांकि मुझे '1' या संख्या को स्थिति, नौकरी और व्यक्ति को 'चर' पंक्ति में जोड़ना चाहिए। नीचे काम की तरह कुछ (जो काम नहीं करता है) पोस्टवरेज: फॉर्म। सोजीशन + रो.वि.व्यू। मैंने कोशिश की [position + row]। एक अन्य पोस्ट से सलाह के अनुसार मूल्य लेकिन यह काम नहीं कर रहा है। अगर 1 परम = "प्राप्त (1)" और 2 अगर onchange = "get (2)" आदि चेतावनी (पंक्ति) 1 देता है तो यह काम कर रहा है। मैं पॉज़िटोन, नौकरी और व्यक्ति के बयान पर पंक्ति वैरिएबल को कैसे जोड़ सकता हूं ताकि मूल्य में बढ़ोतरी के रूप में मुझे फॉर्म मिल जाए.पेज 1.विभिन्न fo...

c# - Reader cannot continue after i've checked for records -

I have successfully checked that values ​​in the database are true. Here is the code: if (! Reader.Read ()) {MessageBox.Show ("user can not be found!"); Reader.Close (); } And {int count = 0; While (reader.Read ()) {string user = (string) reader.GetString (0); String Name = (string) Reader. GestString (1); Int roll = (Int) Reader GetInt 32 (2); String Phone = (String) Reader. GestString (3); String address = (string) reader. Gastestring (4); String birthflow = (string) reader. Gesture string (5); Label1.Text = "" + Roll; Label2.Text = Name; Label 3 Text = postnatal; Label4.Text = "" + Phone; Label5.Text = Address; }} But the problem is that whenever the loop is dropped. Change if (! Reader.Read ()) with if (! Reader .hasRows)

web scraping - Need to extract data, starting from root site -

I have a root site that has references to external web sites. The purpose is to collect data from the original site and then go to each referenced site and find some specific pages to collect the desired data. I do not want to write it from scratch. Does anybody know that such scraper is available for purchase? Go to this site

SignalR - how to invoke client method from a class in a different assembly? -

Can anyone help me understand The client method by using the Signal Server server method How to open from I tried 3 different ways to invoke the law: I designated my Hub [HubName ("Notification")] Method 1 Client. Message (message); It may not be in order "to a null reference binding" Method 2 IHubContext context1 = GlobalHost. ConnectionManager.GetHubContext ("notificationhub"); Context1.Clients.addMessage ('hello'); Customer silent Method3 var hubConnection = new HubConnection ( "http: // localhost: 21120 /".) ; Var Notification = Hub Connection Crete Proxy ("Notification"); HubConnection.Start () Wait () .; information. Invoke ("send", "hello"). Wait (); This method returns an error: {"Remote server returned an error: (500) Internal server error."} To my surprise, I use this method from the console application The third method I am capable of. What is the best ...

internet explorer - WebBrowsing with different browsers in C# -

I need to create a small application to compare site rendering in different browsers in different offers. First of all, I need to support IE, FF, Chrome and users can choose to preview their site in different offers. Webbrowser controls do not offer me this offer. Can you tell me that there is no control or library to solve this problem in C #? met? Thanks in advance! Stack Overflow provided some options. I would say that you can put each of the following in tab control so that users can easily choose and switch views. / Li>

- Where Developers Learn, Share, & Build Careers

I've added the code to find the location, it's working on the simulator but it's not working on an iPhone device . I have enabled location services but still it is not working. - (zero) First Time Refresh {CLLocation * Best Location = [[[AppDelegate getAppDelegate] Locator] Best Location]; If (best location! = Null) {NSLog (@ "use best waste"); [Cathartis: [NSARRAOD Objects: [NSNumber Number: Float: Best Location.Cordinate. LETITUDE], [NSNumber Number with Flowst: Best Location. Cordinet. Langality], zero]: @ "fottal": pg_no]; }} Try this code and I'm finished. locationManager = [[CLLocationManager alloc] init]; [Location Manager Set Deliaget: Self]; [Location Manager SetCidid Actuci: KCL LaunchEXAcAst]; [LocationManager startUpdatingLocation]; If the location is updated, define the CLLocationManagerDelegate rep in this class file. - (zero) Location Manager: (CLLocationManager *) Manager update location: (CLLocation *) from t...

internet explorer - JavaScript not running without developer console in IE (can't attribute to missing console) -

I am writing a web application platform that provides JavaScript applications in a browser. Needless to say, after launching the document I launch an application with JS method, but nothing happens on IE 9 if the Developer Console has been measured. It seems like a normal disappearance problem, Can you go where I am getting wrong? Site: JS Source: I have been serving several different web apps with the same platform I want you to see the following (problem appears Objects in all versions of Internet Explorer are not supported: Please refer to the following: Object (from the above source) Object Adds the keys for browsers that do not support it: if {! Object.keys} {Object.keys = (function () {var hasOwnProperty = Object.prototype .hasOwnProperty, hasDontEnumBug = ({toString: null)}! PropertyIsEnumerable ('toString'), dontEnums = [ 'toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', ...

export to excel from asp.net value converts to date -

I am exporting some values ​​from Excel to Datagrid. My problems like 2-3, 3-4 change in today's format - 3-February, 4-March etc. Please advise to correct this? I tried to set the column format only in text but it is not working. Regards V Under the grid radiata function, Must be set in E.RO.KEL (4). Add ("style", "vnd.ms -excel.numberformat: @")

.net - linq query with aggregate in where clause -

I have a list of objects that have a start / end date if the current record is present, or if it fails, the most A recently concluded current has been defined which is in the past and in the future there is a null end date (open ended) or expiry date. There is no current time period with the maximum expiration date. In theory, time bounds marked by each object should never overlap, so I hope the maximum end date will be sufficient for the most recently ended period. I was trying to follow the same question, but I can not find the correct entry of that entry, when there will be other entries in that list which will be dated in future (Ie start / end date where both are in the future). My attempt is as follows, where is the start date, end date is B, C is an indicator for me, while debugging, and D is used to define the list entry type . I am interested in only 2 types. [TestMethod] Public Zero TestRetrievalOfListElements () {var baseDate = DateTime.Now; Var list = new [...

c# - Javascript on lost focus event for tab out -

मेरे पास एक जावास्क्रिप्ट फ़ंक्शन है: ScriptManager.RegisterClientScriptBlock (यह, यह (इवेंट.छारकोड) अगर {event.charCode} {charCode = event.charCode;} और {{event.chip == 'keyup'}} {} CharCode = event.keyCode;} अगर (चारकोड == 9 और amp; txtWaterMark.value.length == 0) txtWaterMark.value = 'पाकिस्तान';} अगर (txtWaterMark.value.length & gt; 0 और amp; amp; घटना; .type == 'माउसओवर') {txtWaterMark.style.color = '# c6c1c1';} यदि (txtWaterMark.value.length & gt; 0 और amp; event.type == 'माउआउउट') {txtWaterMark.style.color = 'ग्रे';} अगर (txtWaterMark.value.length == 0 और amp; event.type == 'माउआउउट') {txtWaterMark.value = text;} अगर (event.type == 'फ़ोकस') {txtWaterMark .style.color = 'gray'; यदि (txtWaterMark.value == पाठ) {txtWaterMark.value = '';}}} ", सत्य); और मैं इसे इस तरह बुला रहा हूं: & asp: textbox id = "txtfirstname" runat = "server" width = "110px...

java - How to Optimise a JPA Query -

मेरे पास तीन संस्थाएं निम्नानुसार हैं: सार्वजनिक वर्ग EntityA {निजी लांग आईडी; // गेटर्स और सेटर्स} पब्लिक क्लास EntityB {निजी लांग आईडी; निजी इकाई एटाटा; // गेटर्स और सेटर्स} पब्लिक क्लास EntityC {निजी लांग आईडी; निजी बिगडीकल राशि; निजी EntityB entityb; // गेटर्स और सेटर्स} अब, एंटिटी ए का एक उदाहरण दिया गया है, मुझे EntityC की एक सूची प्राप्त करना है वर्तमान में मेरे पास दो विकल्प उपलब्ध हैं I मुझे नहीं पता कि कौन अधिक अनुकूलित है विकल्प हैं: 1। EntityC c से c चुनें जहां c.entityb में (EntityB b से चुनें b जहां b.entitya =: entitya) 2। EntityB के लिए एक नई प्रॉपर्टी जोड़ें निजी सेट & lt; EntityC & gt; entityCCol; @OneToMany (मैप किए गए = "एंटिब") सार्वजनिक सेट & lt; EntityC & gt; GetEntityCCol () {वापसी इकाई CCOL; } एटिटाइटी बी से जुड़ें a से b चुनिए a.entityCCol b इनमें से कौन सा दोनों प्रश्न आसान और अनुकूल हैं? यह संग्रह के आकार पर निर्भर करता है। छोटे संग्रह के लिए मैं ऑब्जेक्ट मॉडल में रिश्तों का इस्तेमाल करेगा। प्रदर्शन की तुल...

php - Onepage checkout always redirects to cart with custom step -

I'm having trouble creating a custom step for Magento onepage checkout. Link to tutorial: The problem is, when I click on the 'Continue' button on my custom step, it always redirects back to the cart page Help Looking for any suggestions how to debug the redirect? Or to see if the problem is where I have checked the log file, I do not say anything in it. Where to start looking for problems? Thanks in advance. To see AJAX calls in firebug, click on the "Net" tab in your new step, something wrong That's why this is the failure.

- Where Developers Learn, Share, & Build Careers

I have an API that takes a number as string input and I need to get float value of numbers I currently float to get the float value of my string number Using the flowflot method. According to , this is nothing about input which is more than float. MAX_VALUE I was thinking about doing this by checking the length of the input in a manner that is more than the length of the string float. MAX_VALUE Pls suggest how I can go about dealing with this. Although javadoc does not clarify it, when I tested it, the parstrot of the string is very large, just produced a float of 'infinity' You can use theInInFin () method after the creation to check the value . Some things like BigDec possibly would be a safe option here, especially if you would do some arithmetic on your value.

Can't commit database changes in Redgate. Git -

Image
I am facing a very strange behavior of redgate which prevents me from reducing the changes made in the database (I'm using Git). I can click on "Get the latest" and can not get errors, everything works, but when I get an error without any description (please see the screenshot). I'm asking for help because I do not know what is wrong thanks in advance!

linux - Convert .dat File to .xls file -

I am using automation to download a .dat file and parse it in Perl by using Excel Parser module I am But whenever I tried to use the .at file, it does not say a valid Excel file. (All these operations have been done in Linux) As a work around me, I moved the .dat file into a Windows machine and opened it using Excel file. Then saved the .at file as an Excel file in Windows. Then re-send that file to the Linux machine. Now the Perl script can parse the file. Instead of this long way, can I convert the .dat file into an Excel file in Linux? if so, how? Some lines before my .dat file: F_NF_CD ART_GRP_NO ART_GRP_DESCR ART_GRP_SUB_NO ART_GRP_SUB_DESCR ART_NO ART_DESC SELL_UNIT PACK_TYPE SELL_PR VAT_PERC MRP_ PRICE STOCK ART_STATUS EXTRA_INFO BLOCK_IND F191 Hyghenne paper 3 laddiege hegene 287432 soft side valle large soft 15 p1ea 89.8 5 99 47 1 cell F191 Hygiene papers 3 LDE patients 287422 Sophie side walls Regular soft 15 P1EA 80.73 5 89 0 1 cell Actually read meta da...

Fix wkhtmltopdf headers clipping content? -

Image
My headers often clip the contents, so that the content below does not appear completely, it appears that Continues under the page header before the header ends and as a result, not all content is shown. > Is there a CSS rule for which I can use it? Or is there a CMD logic for wkhtmltopdf? Or any other way? I have learned that this is actually a known issue and it is unlikely to be changed in a short time. style =" margin: 0; Padding: 0; " is the workaround to use the header and element for another solution - hedder-spacing n The parameter must be experimented with yet another way to wrap all top-page elements and add margins there, but this is a very bad non-dynamic idea. For more information, See: (Duplicate this issue) (the origin of the issue) (header-spacing workaround)

swingx - Why does a RolloverRenderer uses the wrong cell context -

Image
It's difficult to reproduce my issue, but I hope someone can give me a hint here How is it solved? I received a ComponentProvider & lt; JLabel & gt; is a string that assumes a string creates a clickable cell decorated with an icon if the string contains a URL if no URL is found in the string value, then no icon is set for the label And the cell should not be clickable Here is the code: Public class ExternalLinkProvider ExponentProvider Expands & lt; JLabel & gt; Rollover renderer {private string url = null; Applies; @ Override Protected Zero Format (Selconent Reference) {} @ Override Protected Zero Configuration (Cell Content Reference) {If (context.getValue (Example String)} {String stringValue = (string) context.getValue (); WwwLink Link = NewWwwLink (stringValue); // Set a link icon if it has a valid URL. If (link.isValid ()) {rendererComponent.setIcon (ExternalLink.WWW_LINK_ICON); Url = link.getUrl (); } Else {rendererComponent.setIcon (null); Url =...

Class in JavaScript with a constructor (Converting from C#) -

I have followed the C # code and is it possible to convert an easy to javascript? I need this to run 100% of the browser. As I understand that anangam does not exist and can be replaced with a string instead. In short, a class deck holds an array of witch cards, the class card has some properties, including ranks, symbols, etc. and also has a shuffle function. I hope no one has to change all the code here, but how can I do this as an indicator. Public Enum Suites {Club, Diamond, Heart, Spade}; Public class card {public suit suit; Public full value; Public string text; Public intercourse HCP; Public card () {} public card (suite_ suite, int-value, int_HCP, string_text) {suit = _suit; Value = _value; HCP = _HCP; Text = _text; }}; Public square deck {public card [] card = new card [52]; Public deck () {card [0] = new card (suit.pad, 14, 4, "A"); Card [1] = new card (suit.pad, 13, 3, "K"); Card [2] = new card (suit.pad, 12, 2, "Q"); Card [3] = New c...

android - Phonegap keyboard scrolls the page up and down on focused input -

When using the jQuery mobile dialog with a focus input field, the page will appear continuously due to the keyboard that appears Scroll up. It's on a small phone (HTC Explorer), but this problem is not present in big phones such as HTC Sensation. When you remove the keyboard from the screen, the problem disappears. Does anyone know any way to fix this? Thanks in advance Let me basically return this page to the top Scrolled by: $ ('# myInput'). Tie ('Focus', Function (Event) {window.scrollTo (0, 0); document.body.scrollTop = 0;});

iphone - Google Maps in iOS6 -

coming back to this Google Maps support on iOS 6. This is a serious and constructive issue that should be addressed to many app developers, who have already released their applications on iOS 5 and linked to legal compliance with Google's Terms of Service Has happened. The fact is: Applications using the Google Maps API web services are prohibited from using the service in any application that does not display any Google Maps related to the display of information on Google Maps. An application is available for download by some developers on the App Store, users have downloaded it and are using it. When users update their phones with iOS 6, Apple Maps will appear in place of Google Maps, which suddenly breaks Google license rules. This application becomes Google's "real" license stand point, thousands of users will use an app that has become illegal and I can not think technically in order to stop it. How can we deal with this matter? Can Google bear e...

extjs - Ext JS Component - When can I manipulate the DOM? -

I'm trying to reuse some code to return a component to its initial position so that my Close is a reset () function that calls the update () function with the default parameter. Everywhere I try, I'm trying to reach the DOM elements, results in the null - and this is not the code as I tested it after page presentation via page event. It seems that initComponent () is very fast, so I've noticed subscribing to events. Seeing the events of Ext.Component , only one seems appropriate Render Event: "After the component markup, the fire is set. " Again, I get a null reference. I am not keen to use it because I really want to use render, not to it being sung again, its only once (init after / after), but it can be said again. When / We want to access the DOM of component on initialization? Here's the square: Ext.define ('PegfileApp' View.ContentHeader ', extension:' Expand panel ', nickname:' Widget Content Header ',...

visual c++ - Visualize control points mfc -

I want to show a curve with some control points where the user can adjust the curve using the macro control point, Can you please recommend me some good libraries? I am using Visual C ++ 2008. Thank you. If you use GDI +, then you can use the function.

- Where Developers Learn, Share, & Build Careers

Image
I want to crop the image when touching the screen and creating the user a special size. For example, when the user touches a shape (green color) and drawings that will be cut image in the shape and the went down image will appear as a new Uaimej : I know that How to conceal an image and also know how to cut an image in rectangular shapes but do not know about it. Can anyone help? Try to do something like this, this is not the right question, but for a little change this algorithm Should work for you! This does not give the exact code for any platform, but mathematical geometry and general looping algorithm how to accomplish such a task. Within iOS you will need to create new image creation (and actually pixel transcript) using core graphics. Things you'll do to see. Screen resolution for actual image resolution If image resolution is different, when you calculate the calculation of crop area, the crop zone can increase or shrink when the actual backing imag...

- Where Developers Learn, Share, & Build Careers

When I export a report from SSR to Excel, some columns are formatted as #####. When I export the report server in Internet Explorer, I get this result as well. This is not a column width in Excel. Field numbers are field or percent fields when I double-click on a cell in Excel, results will be shown. But I have to click on all the fields to show results twice. I have also tried to change the format of the columns in SSRS, but I would like to do this in Excel without a ###### Settings can not be found

Cross-browser compatible CSS liquid layout with 3 columns of 100% width/height -

Image
I started creating my HTML / CSS layout based on the article and was more successful / less successful. However, I think I've messed with my CSS somewhere because this page does not appear in IE or Chrome / Firefox the same way ... Actually, in my opinion, 3 equal width Column, the contents of each column with 100% height should have some padding on the left, top and right sides, and the 'Main' link should be located at the bottom of each column, aligned in the middle of its column. This sketch is my layout You can see my current result If you see this page in Chrome / Firefox then you can see that the content outside my page is divs 'bleed' However, in IE content divs fit well (i divs for content for testing purposes only) I do not believe that IE is my CA Presenting the SS correctly, I believe that I am doing something wrong with my CSS, but in reality it is not sure what happened. Thanks for any help on this. You are setting the height of ...

regex - How to remove key value pairs from a PHP array if the key contains (matches) one or more substrings -

मेरे पास एक बड़ी सरणी है (सुविधा के लिए सरलीकृत): अर्रे ([last_name ] => Gtc: = & Gt; 1 [captcha_uid] = & gt; 155) और सभी प्रमुख मान जोड़े को हटाना चाहते हैं जहां कुंजी को अपलोडर _ से शुरू होता है (यह एक श्रृंखला हो सकती है ) और captcha_uid की भी हर घटना मैंने यहां एक उपयोगी उदाहरण देखा है: लेकिन मैं नियमित अभिव्यक्ति पर भयानक हूं। यह कैसे बेहतर करने के लिए? आपके विचारों की बहुत सराहना की जाती है। आपको इस तरह के एक साधारण मामले में नियमित अभिव्यक्ति की आवश्यकता नहीं है। अन्य प्रश्न में आवेदन करना: foreach ($ key as $ key = & gt; $ value) {if (strpos ($ key, 'uploader_') === 0) {unset ( $ सरणी [$ की]); }} अनसेट ($ सरणी ['कैप्चा_यूआईडी']);

symfony - HTML5 validation in an auto generated Symfony2 form <select> field -

मेरे पास एक आवश्यक चयन पर निम्न कोड है: & lt; आवश्यक = आवश्यक "& gt; & Lt; विकल्प मान = "1" & gt; 01 & lt; / विकल्प & gt; & Lt; विकल्प मान = "2" & gt; 02 & lt; / विकल्प & gt; ... & lt; विकल्प मान = "31" & gt; 31 & lt; / विकल्प & gt; & Lt; / चयन & gt; मेरे (एचटीएमएल 5 / सिम्फोनी 2) एप में इसकी एक आवश्यक तिथि (दिन) है, इसलिए मान 1 और 31 के बीच होना चाहिए और मैं रिक्त / नल मान नहीं चाहता। हालांकि कोड काम करता है, यह निम्न त्रुटि के साथ w3c सत्यापन को तोड़ता है: एक आवश्यक विशेषता के साथ एक चयनित तत्व का पहला बच्चा विकल्प तत्व और एक से अधिक विशेषता के बिना, और जिसका आकार है 1, में एक खाली मूल्य विशेषता होना चाहिए, या पाठ सामग्री नहीं होनी चाहिए। समस्या के लिए सबसे अच्छा तरीका क्या है के साथ की आवश्यकता विशेषता: & lt; आवश्यक = "आवश्यक" & gt; चुनें & Lt; विकल्प मान = "" & gt; & lt; / विकल्प & gt; & lt;! - खाली मूल्य जोड़...

ruby - How is the easiest way to sum 2 disjoint sets of Mongo documents from different databases? -

I have similar documents in two separate databases . I want to connect the documents with both the DBS. How to do the easiest? I need the amount of these sets, the sets are different I think using Mongoimport, Mongorostor but how do you suggest to deal with the problem? I want to do it with Mongodp, yes. mongodump -d dbA Some code from dump / dba . Now run these commands for import into another DB. mongorestore -d dbb dump / dbA For more information on its parameters, you mongorestore --help .

ASP.NET / Javascript page formatting issues when using javascript ot update status -

I have a page (twitter bootstrap topic) that uses javascript to update the user as a page load The process script is the first line of HTML therefore is: My code then updates the mydiv element where it is and once complete, the page_load function runs and displays all the information The problem is That it is causing formatting problems in Internet Explorer. IE goes into quirks mode, I'm assuming because No suggestion at the top of the page? do that div , even if it's causing your specific problem Whether or not (my guess is yes), need to decide. You may not have such invalid HTML and hope to behave well. Obviously, take that place and the script to the appropriate place - I body , and I bet that your problem is resolved.

- Where Developers Learn, Share, & Build Careers

Is this an easy way to find out? What is the lowest (most negative) number that can be presented by two complementes of 7-bit? Show how to convert the number into two complementary presentations. The least number is -2 ^ 6 . To find out the negative number of a negative number in the supplement of 2 (aka its full value) flip the bits and add one then (- 1) * 1000001 = 0111110 + 1 = 0111111 = 1000000 - 1 = 2 ^ 6-1 . As you can see that there is less than 1000001 and it is less than that: 1000000 . We are getting this full value: (- 1) * (100000) = (-1) * (100001-1) = (-1) * (100001) + 1 = (2 ^ 6-1) +1 = 2 ^ 6 .

simple perl addition program going wrong? -

हाय मैं एक नौसिखिया perl शिक्षार्थी हूँ यह साधारण perl प्रोग्राम $ inputline = & lt; STDIN & gt ;; प्रिंट "पहले इनपुट"; प्रिंट ($ इनपुटलाइन); $ Inputline = & LT; STDIN & gt ;; प्रिंट "दूसरा इनपुट"; प्रिंट ($ inputline); $ Sum = $ इनपुटलाइन + $ इनपुटलाइन; मुद्रित करें "राशि 1inInput और 2ndinput"; प्रिंट ($ राशि); आउटपुट perl count.pl 3 4 प्रथम इनपुट 3 दूसरा इनपुट 4 योग 1ininput और 2ininput: 8 क्यों क्या आप आउटपुट 8 को 7 की बजाय? क्योंकि आप $ inputline जोड़ते हैं जब यह 4 होता है तो स्वयं को। यदि आप दो निविष्टियाँ जोड़ना चाहते हैं, तो आपको इसे दो चर के साथ करना होगा या चर परिवर्तन से पहले जोड़ना होगा। उदा।: मेरे $ input1 = & lt; & gt ;; मेरा $ input2 = & lt; & gt ;; मेरी $ sum = $ input1 + $ input2; प्रिंट "योग: $ sum"; या मेरी $ इनपुट = & lt; & gt ;; मेरा $ योग = $ इनपुट; $ इनपुट = & lt; & gt ;; $ Sum + = $ इनपुट; प्रिंट "योग: $ sum"; आप कुछ आसान कर सकत...

Checking for EOF and skipping lines in java -

I am trying to read from a text file and I am using input to create several different objects . I do not want to read clearly after the file is empty, so I have a method empty () which reads to the point that I want in the file and then reads the test for the next line and zero. The problem is that if it is not empty then the file is read ... but in the second line from the next line, I read the first line to test, but can not read it again. My current idea is to create a dummy object to test it and actually use the same, second object to use. But it is very useless and I think there should be a better way .... Thanks for everyone! Notes: The method that reads is not the same method that is checking the empty bufferedReader is being used for all the objects because otherwise I would re-enter the file name from the user , Which I do not want to do. Why do not you stick to the phrase BufferedReader ? Instead of asking that the file is empty, and if it is not empty then ge...

javascript - Self calling functions inside of $(document).ready(function(){ ... }); -

मैंने पहले से ही मेरी जावास्क्रिप्ट को jQuery (document) में समझाया है .ready (function ($) {}); मैं सोच रहा था कि इन दोनों तरीकों से इसके अंदर के कार्यों को कैसे बुलाया जाता है: jQuery (document) .ready (function ($) {$ (फ़ंक्शन () {// कुछ करना});}); बनाम jQuery (दस्तावेज़) .ready (फ़ंक्शन ($) {(फ़ंक्शन () {// कुछ करना}) ();}) ; संपादित करें: मैं यह भी जानना चाहता था कि इन दोनों में से कौन सी बातें करने का "सही" तरीके होगा? अपने खुद के कार्यान्वयन को जोड़ने के लिए स्वतंत्र महसूस करें। निष्पादन के क्रम में अंतर है: jQuery (दस्तावेज़) .ready (फ़ंक्शन ($) {$ (फ़ंक्शन () {// आंतरिक हैंडलर}); // बाहरी हैंडलर};); आंतरिक तैयार हैंडलर के अंदर कोड बाहरी हैंडलर में कोड के बाद निष्पादित होता है:। jQuery (दस्तावेज़)। तैयार (फ़ंक्शन ($) {(फ़ंक्शन () {// कुछ करना}) (); // बाहरी हैंडलर}); तत्काल कार्य अभिव्यक्ति के अंदर कोड को क्रियान्वित किया जाता है जहां फ़ंक्शन परिभाषित किया जाता है, यानी अभिव्यक्ति के बाद कोड से पहले:। यदि आप गुंजाइश चर चाह...

compiler construction - Can't build C++ program using Sublime Text 2, Windows 8 -

I think many of you are using or using the Sublime Text 2 editor on Windows 8. I have a strange error: C ++ programs can not be created. My goal is to create simple programs and run simple programs, so that it can show me the output, Xcode or Codeblocks style in the bottom window. My C ++ Sublime-build (which is the default setting): "$ {file}", "-o", "$ {file_path} / $ {file_base_name}"], "", "File_regex": "(^ [^:] * ): ([0-9] +):? ([0- 9] +)?:? (? *) $ "," Work_dird ":" $ {"", "selector": "source.c, source .c ++ "," variant ": [{" name ":" run "," cmd ": [" bash "," -c "," g ++ "$ {file} '-o' $ {file_path } / $ {File_base_name} '& amp; amp;' $ {File_path} / $ {file_base_name} '"]}]} When I compile a simple hello world program, it runs compile and runs fine, and outputs on th...

c++ - Insert multiple elements in array - time count function -

I am working on an exercise on C ++ which demands a service queue to be emulated and it is a To do with the round, one dimension array. That is why it is demanded that when a customer comes to queue his name, the number of his card and the time of arrival comes in the queue. So my first question is how can I enter all these elements in an array of elements? (I do not know that it is called the cell of the array or position, English is not my origin) Every customer has to keep only one situation and I must include all of them information in one situation I already have the conditions I know how an element can be incorporated or removed from a round qi, I do not know how to do many of them. The second asks how much time a client is waiting for in the queue to see how many people are waiting for it before (although it is not very accurate). For the first question: can you create a class or structure that represents the collection of data , And put the entire structure in your...

postgresql - Postgres COPY command - fields with commas, quoted with double quotes -

I searched and searched for some posts related to postgre CSV import, but nothing that resolves my current problem is. I use the postgres copy command at all times to bring data from second source data sources to the current 100 million row Conflicts with CCV file, comma-delimited . The problem is with so many rows: 009098,0981098094, "something", "something else", "" this one, okay, there is a problem, "one more thing" Fields enclosed in double quotes with embedded commas. Fields are not correctly parsed and I get an error: "Error: additional data after the last expected column" Generally when these I get ridiculous rows ad hoc, but this file is so big that I'm hoping to defend it from something else in a normal way. There is not a possibility to ask for a modified data format. '/path/to/file.csv' csv header quote '' 'for example This is distorted CSV. has three values: ...

java - Gephi: Creating and streaming a dynamic graph using the toolkit -

I am trying to create a dynamic graph and stream it using the GP Toolkit. So far, I have adopted a common graph of Toolkit and Streaming plugin tutorials and have been able to broadcast it in GP GUI. I find it hard to find out how to make the graph dynamic - I managed to add the TimeInterval column to AttributeModel and add it to the node and edge tables. But when I open the timeline window in the GUI, it says that the graph is not dynamic. Models / controllers are a bit confusing to me. Here's the code I just have: ProjectController pc = Lookup.getDefault (). Lookup (ProjectController orbit); Pc.newProject (); Workbench workspace = pc.getCurrentWorkspace (); AttentController attribute control = lookup .gate default (). Lookup (Attribute Controller Class); Attribute Module Attribute Model = Attribute Controller.GetModel (); AttributeColumn nodeTimeColumn = attributeModel.getNodeTable (). AddColumn (DynamicModel.TIMEINTERVAL_COLUMN, AttributeType.TIME_INTERVAL, Attrib...

Sending a reply email using exchange web services - how to deal with the changeKey property -

For my code, I receive an unread message from the exchange, processing something based on that message, and Then respond to the message I did with the results of the processing. The problem I have is that when I try to answer the email, I get an error when I answer. message. () Or SendAndSave (): Response message: Current ChangeKey is required for this operation Below is the code that I'm running that this error Is triggering: public invalid answerToEmail (email message _mail message, string _reply) {string serviceManager = emailServerAddress = ConfigurationSettings.AppSettings ["serviceManagerEmail"]. Trim (); Feedback message response message = _emailMessage.CreateReply (true); ResponseMessage.BodyPrefix = _reply; String change = _emailMessage.Id.ChangeKey; If (! ServiceManager.Equals ("")) {responseMessage.CcRecipients.Add (new email address (service manager)); } ResponseMessage.Send (); } I am able to check the price via the _MailMessage ch...

- Where Developers Learn, Share, & Build Careers

OK so I only need to learn JQuery for some animation on one site. I'm reading the tutorial, and I'm just trying to implement a simple diagonal step animation. I'm still very new to JQuery (as it has started today), but whatever I think, the following code should work. What am i doing & lt; Head & gt; & Lt; Script type = "text / javascript" src = "jquery.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; Click to edit an '' '' '' '' '' '(' = '= 50', below: '+ = 50'}, 1000) '' '' '' '' '' ''. }}}}); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "moveme" & gt; This lesson is & lt; / Div & gt; & Lt; / Body & gt; Edit: The associated assets of the CSS and the fixed brackets have been combined with the document But st...

- Where Developers Learn, Share, & Build Careers

I'm parsing a log file to make a report, but String.IndexOf () On some lines, using C # is the easiest to understand with some code here. string line = "Jun 29 14:34:19 localhost axis 2_http_server: CEF: 0 | Aopitiaiaks | IRIS | 4.1.0.1664.2839 | Eddie 214030000301-2610017 | 114 | Sdike_sisisis | 4 | time = 1340 9 80459 comp = 10 compinfo = = 8 result = user = admin thread = 1305: 1 9 62 msg = ation = 0.00, Face collar = 11.49 hr face ICAO compliant, inter-pupil capture distance = 140.00 LEFT_uid = -1, blacklist = 0 No match found on right eye (database is empty) RIGHT_uid = -1, blacklist = 0 Capture successfully completed - send SOAP reply Done. " Int ctIndex = line.IndexOf ("CaptureTime ="); Return ctIndex; Expected: -1 Real: 11 This would be just about 2 lines for a gig of log files is. The actual implementation method private Taimspen parse calibration (string line) {int ctIndex = line.IndexOf ( "CaptureTime ="); CtIndex = ctI...

JPA :: orphanRemoval and Lazy Collections -

कहें कि मेरे पास OneToMany के FetchType EAGER और orphanRemoval से सत्य पर सेट करें बीएस जब मैं एक ए ऑब्जेक्ट पर अलग किया गया EntityManager # merge को कॉल करता हूं और इसके संग्रह से कुछ बी तत्व हटा दिए गए (जबकि अलग), संबंधित पंक्तियों (जिनकी संस्थाएं अब संग्रह से गायब हो रही हैं) को डेटाबेस से हटा दिया गया है (जेपीए / हाइबरनेट में)। LAZY संग्रह के मामले में यह कैसे ठीक होगा? जब EntityManager को संशोधित ए ऑब्जेक्ट में विलय करने के लिए कहा जाता है, तो यह उन बी संस्थाओं के बीच के अंतर को कैसे बता सकता है, जिन्हें स्पष्ट रूप से संग्रह बनाम बी संस्थाओं से हटा दिया गया था, जिन्हें LAZY फ़ेच प्रकार? जेपीए कार्यान्वयन को संग्रह का एक ध्वज रखना चाहिए शुरूआती या अभी भी आलसी राज्य में थे। इसलिए यदि आप पहले से अलग एंटिटी को मर्ज करते हैं, तो मर्ज ऑपरेशन संग्रह का निरीक्षण करेगा और यदि केवल इसे आरम्भिक किया गया है तो यह घटित संस्था के विरुद्ध परिवर्तनों को खोजने के लिए सामग्री को एन्यूमरेट करेगा डेटाबेस से। हालांकि, यदि आप एक नया इंस्टेंस इन्स्तांत करते हैं औ...