Posts

Showing posts from February, 2013

java - Open Cv Android : how to find all max locations of a Mat -

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

python - How can I serialize single object's fields in django(without pk and model) -

In Django, I have this model (it has been obtained from the AbBabBase user): Class User (Sarbbase User): UserName = Model.Carfild (Max_Lang = 20, Exclusive = True) RealName = Model.Carfild (max_long = 10) Grade = Model.Carfild (Max_Langu = 10) Student = Model .Carfild (max_long = 10) email = model. I want to serialize a single user object: "Admin", "grade": "lu", "username": "admin", "lu", "realname": "lu", "email": "admin", "grade" "is_active": true} / Code> Is there a utility to serialize? I have found the Dengue Form Cocument, it can only serialize a list and be with model and pk needed. It is like this: [{"fields": {"email": "admin@admin.com", "is_active": true, "not student": "lu", " "Lu"}, "pk": 1, "user name": "account.user"}] : &qu

tsql - Expression to look up certain character and store it in SSIS variable -

In SSIS 2008, I have a variable called @ [User: EANcode] contains a string in it. '1234567891123' with a product like Encore. The value is derived from a filename such as '1234567891123.jpg' via a foreach loop. However, sometimes files like '1234567891123_1.jpg' have an additional '_1', '_2' etc., which results in '1234567891123_1' in the EANcode variable. This happens when there is more than one image for the same ENAXode (product). The _n addition is always a number and it always happens at the end of the name / string. What is the expression to find the '_1' (or_2 or_ N etc) Kaith, so that you can store it in another variable named @ [User :: Addition] < / code>? If there is no extra, then the variable remains empty which is fine. Because of this, I need to get this extra _N in a different variable that I need to rename the file name later, but eventually paste the pair. Thank you! I think y

php - Verify if an email address is active -

I have tried to check that the email address is present and alive as a SMTP server, but I get the answer Is as accurate as possible. The only way to prove that an email is alive is email confirmation after process registration. You have to send a link to your newly registered / registered user about your email confirmation. For example: A new user aaa@bbb.ccc with the email is registered and has been saved in the database with "as23kja45" in his email id. "You can call it yoursite.com/confirmation.php?id=as23kja45 < / strong> link after clicking on this link you can read the ID in the absolute value, check it in the database, it exists, if true => you have an email address alive Before sending this kind of link to you email satisfies email address To prove the form, email must be checked by some email verifier.

html - how to add background image to css3 arrow -

Image
For a project, I must include the background image in a css3 arrow (right to face). Below is HTML / CSS What I want to achieve is that the image extends from the rectangular box to the triangular (border) box. HTML: & lt; div id = "arrow" & gt; & Lt; / Div & gt; CSS: # Arrow {width: 128px; Height: 100 pixels; Background color: #FFF; Border: 1px solid # 999; Status: Relative; Background image: URL (http://upload.wikimedia.org/wikipedia/commons/3/32/Bee-apis.jpg); } # Arrow: {After content: ''; Status: Completed; Top: 0 pixels; Left: 128 pixels; Width: 0; Height: 0; Border: 50px solid transparent; Border-left: 12px solid # f0f0f0; } # Arrow: {Before content: ''; Status: Completed; Top: 0 pixels; Left: 12 9px; Width: 0; Height: 0; Border: 50px solid transparent; Border-left: 12px solid # 999; } How do you cope with this problem? I'm not compatible with IE7 / 8/9 that there is no problem using the code. Not sure that y

ruby - Overwriting #each; can I pass it args through #map, #select, etc? -

I have written my own tree class which contains anonymous tree then returns a # iH function. As a result, it automatically receives numeric functions like #map , #select , #find Here's the problem when I wrote for #each my tree , I gave a code which is # iH Is an argument used by the name of the tree traversell algorithm, such as : pre_order or : breadth_first . But now when I #map or #inject or #any? et, it can only use the default traversal algorithm, is there any way that I can pass this argument through another innovative function? Here are my criteria; I should be able to use any traversal algorithm for any numerical function. It is very important because different algorithms for trees are very different Can be demonstrated. I do not want to rewrite each single numerical function to pass this argument to #each ; Which defeats the purpose of the module. This is a short version of my code; are included in the class tree ... # over

codeigniter query to DB with multiple where -

I am unable to get requests for DB when passing variable in SBI query, like this is the array: $ cl_phone = array (1,2,3); Model code below public function get_clients_enabled_array ($ cl_phones) {$ this- & gt; Db- & gt; Order-B ('filial_id'); $ This- & gt; Db- & gt; order_by ('CLIENT_NAME'); $ This- & gt; Db- & gt; Where ('position', '1'); Forex Currency ($ cl_phones as $ value) {$ this-> Db- & gt; Where ('client_id', $ value); } $ Query = $ this- & gt; Db- & gt; Receive ('client'); Return $ query- & gt; Result_are (); Display empty array array () What is the correct way? You must use where_in on client_id Assume that your $ cl_phones only include phone numbers, you can do something like $ this-> Db- & gt; By order ('filial_id'); $ This- & gt; Db- & gt; order_by ('CLIENT_NAME'); $ This- & gt; Db- & gt; Where ('position

mysql - Get multiple rows in a single query -

Image
| User_id | नाम | =================== | 1 | मार्क | | 2 | पॉल | | 3 | ग्लेन | | 4 | काइल | | 5 | जैक | | 6 | केन | | 7 | राफ | मेरे पास ऊपर दिखाए गए एक नमूना तालिका है मैं केवल एक ही क्वेरी में उपयोगकर्ता आईडी 1,2 और 5 की पंक्ति को प्राप्त करना चाहता हूं। क्या आप लोग मुझे बता सकते हैं कि क्वेरी क्या है? इसे आज़माएं SELECT * FROM tablename जहां user_id IN (1,2,5);

enterprise - Can't determine who can install iOS Application using In House development ? -

I have an apple enterprise account which is using in-house development, but when I am in my web server Sharing this link, I find that anyone can copy this link and share it with others, my question is here. When you distribute your app, to determine how I can set up the configuration I am What can you do through in-house development? You must create a provisioning profile with which the user will be authorized to use the application. Then the iOS device which is not added to the Provisioning Profile is able to install the app. For more information, take a look at .

How to include .java files as embedded resources in Eclipse project -

I want to include some files as embedded resources in an Eclipse java project, so that at runtime I You add it to your squares as a separate folder and a library. For example, I added a folder called res and changed my .classpath file to add class folder . To: & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; classpath & gt; & Lt; classpathentry kind = "src" path = "src" /> & Lt; classpathentry kind = "con" path = "org.eclipse.jdt.launching.JRE_CONTAINER / org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType / jre7" /> & Lt; classpathentry kind = "lib" path = "ridge" /> & Lt; classpathentry kind = "Output" path = "bin" /> & Lt; / classpath & gt; You may need to explicitly create a script for JR to include non-compiled sources.

Non deterministic trivial C program -

If I write something inside my main function and I really do not understand, then the following C program has a different Output is .. If we comment on my variable declaration, then everything is fine and we get the results we expect (apply 3 times SHA256 to 0x12345678). But, if I write something in the main function, the output changes and does not take the expected value. Code (precompute.c): #include & lt; Stdlib.h & gt; # Include & lt; Stdio.h & gt; #include & lt; String.h & gt; # Include & lt; openssl / sha.h & gt; Unsigned char * sha256_3 (int * input) {char * s = (char *) input; Unsigned four * D = SHA256 (S, Stellon (S), 0); d = SHA256 (D, Stellon (D), 0); D = SHA256 (D, Stellon (D), 0); Return D; } Zero print_hash (unsigned char * d) {int i; For (i = 0; i & lt; SHA256_DIGEST_LENGTH; i ++) printf ("% 02x", d [i]); Putchar ('\ n'); } Int main (int argc, const char * argv []) {int A = 0x12345678; Unsigned char * b

Javascript onclick for class and name -

I'm new to JavaScript and I'm sure how to do the following: I've got a Only the CSS "class" but with the different "name" attributes, using two links incredible javascript, I need to individually separate each task. Is there any way to do this? Example Code: & lt; One class = "classname" name = "link 1" & gt; Link 1 & lt; / A & gt; & Lt; One class = "classname" name = "link 2" & gt; Link 2 & lt; / A & gt; Let's say I have "this link 1" for the console when I click on link 1. And "this link is 2" when the link 2 is clicked. Attach an event handler to the elements, and only check the name and whatever you want var elems = document.querySelectorAll ('class name'); (Var i = elems.length; i--;) {ames [i] .addEventListener ('click', Fn, false); } Function fn () {if (this.name == 'link1') {console.log ('this is link 1

Convert a textbox to autocomplete in c# wpf window? -

I am creating a desktop application using WPF in VisualStudio 2013. I have a WPF window text box. How do I convert this text box to auto-complete? The easiest way to use a combo box instead of a textbox is to support the combobox autocomplete. In WPF, you can then use the textbox template to override the standard combo box template. My advice is to use the combo box. & lt; Combo box name = "CBOx" margin = "0" vertical alignment = "top" Christianity = "True" & gt; & Lt; ComboBoxItem & gt; A & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Two & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Three & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Four & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Two2 & lt; / ComboBoxItem & gt; & Lt; ComboBoxItem & gt; Two2b & lt; / ComboBoxItem & gt; & Lt; / ComboBox & gt;

c++ - Return vector element reference by [] operator -

मेरे पास एक वर्ग या स्ट्रेट है, कहते हैं, कंटेनर , निम्न संरचना के साथ: टेम्पलेट & lt; typename type & gt; संरचना कंटेनर {वेक्टर & lt; टाइप करें * & gt; v; ... कार्य ... प्रकार * ऑपरेटर [] (इंट आई) {// इस रिटर्न के बारे में निश्चित नहीं है (वी) [i]; }}; जहां प्रकार एक मानक प्रकार या कस्टम परिभाषित क्लास या स्ट्रेट हो सकता है। यह संरचना इस तरह काम करती है: < कोड> कंटेनर & LT; प्रकार & gt; * सी (10); ग & gt; समारोह (); // यदि वेक्टर के अलग-अलग तत्वों को एक्सेस करना चाहते हैं तो मैं c-> gt पर कॉल कर सकता / सकती हूं; v के तत्वों पर पुनरावृत्त एक फ़ंक्शन कॉल करता है। ; V [0] - & gt; फ़ंक्शन () जहां फ़ंक्शन प्रकार वर्ग का सदस्य है; यह उम्मीद की तरह काम करता है; हालांकि, यह मेरे द्वारा परिभाषित के रूप में [] ऑपरेटर से सी [0] -> फ़ंक्शन () के लिए सरलीकृत किया जा सकता है < Em> होता निहित कक्षा में एक सूचक वापस लौटाएगा और कंटेनर ही नहीं, लेकिन कंपाइलर अभी भी शिकायत करता है कि कंटेनर वर्ग को "फ़ंक्शन" नाम

ios - Superview isn't getting touch events -

मेरे विचारों की निम्न परतों के साथ एक साधारण iPad ऐप है: वर्ग दृश्य (100x100px क्षेत्र को शामिल करता है)। वर्गव्यू को BaseView पर सबव्यूज़ के रूप में जोड़ा जाता है। मेरे पास भी BaseViewController.m फ़ाइल है। इस फाइल में मैंने टच इवेंट्स को संभालने के लिए ट्यूइंगबैगन और टच एन्डेड फ़ंक्शन जोड़ा। समस्या यह है, जब मैं SquareView पर क्लिक करता है, तो टच फ़ंक्शन को बुलाया जाता है, लेकिन जब मैं कहीं और क्लिक करता हूं, उन्हें कॉल नहीं किया जाता। मेरे पास userInteractionEnabled = YES के लिए SquareView है। छू पाने के लिए मुझे इस वैरिएबल की आवश्यकता है। वर्गव्यू के बाहर के क्षेत्र पर क्लिक करने से छूने वाले कार्यों को ट्रिगर नहीं होता है मुझे इस बात की हैरानी है कि क्यों userInteractionEnabled चर BaseView में सेटिंग का कोई प्रभाव नहीं है। यहां क्या हो रहा है? क्या कोई नियम है जो मैं याद कर रहा हूं? मुझे पूरा यकीन है कि मैं इसे एक बिंदु पर काम कर रहा था। जब उपयोगकर्ता उपव्यू ( SquareView ) पर क्लिक करता है, तो मुझे एक मेनू लॉन्च करना होगा (चलो MenuVie

android - Center ListView horizontally -

It's as easy as it sounds, as list of inventory will not be self-centered (or its In-the-content is not - & lt ;? xml version = "1.0" encoding = "UTF-8"?> Android; layout_height = "wrap_content" android: background = "@ android: color / holo_blue_dark"> -> -> gt; Android: layout_height = "wrap_content" android: overScrollMode = "never" Android: scrollbar = "none" Android: Divider = "@ Null" Android: listSelector = "@Android: Color / Transparent" Android: persistentDrawingCache = "Scroll | Animation" Android: Background = "@Android: Color / holo_green_dark" /> & Lt; -! & Lt; / RelativeLayout & gt; - & gt; & Lt; / LinearLayout & gt; This list item has an item layout: & Lt; TextView Android: id = "@ + id / btn_text" android: layout_width = "wrap_content" android: layout_height = "wrap_content

ios - Change UICollectionViewCell size when a cell is tapped -

I have drawn the UICollectionView when I tap the user on a cell, then I want to see something about it < p> Actually I want to enlarge the tape cell and the other cells will go to the next line. Any suggestions on how You will need subclassification Instead of just a UICollectionViewFlowLayout instead of UICollectionViewLayout .

c# - How to create a scalable SQL connection that takes full advantage of connection pooling? -

Here's an existing repository connection pattern on an app that I'm working on. Public Class Repository: IDisposable {Public IDbConnection SiteConnection {Receive (if the connection to the site == blank) {siteConnection = New SqlConnection (DataBaseConfig.SiteConnectionString); SiteConnection.Open (); } Return site connection; }} Public Zero () {if (siteConnection! = Null) {siteConnection.Dispose (); SiteConnection = null; }}} Then the repositories look like this: Public class SomeRepository: repository {public IEnumerable & lt; Object & gt; GetSomeObjects () {SiteConnection.Query & lt; Object & gt; ("Select statement"); } Public IEnumerable & lt; Other Object & gt; GetSomeOtherObjects () {SiteConnection.Query & quot; Other Object & gt; ("Select statement"); }} What I can tell, only the end of page load is settled at the very end. No transaction is being done In the past, I was under the assumption that you sho

angularjs - How can I pass a model into custom directive -

मेरा मुख्य उद्देश्य मेरे MainController से प्रोजेक्टनाम मॉडल को मेरे कस्टम कंटेट्यूटेबल डायरेक्टिव में पास करना है। मेरे पास है निम्न नियंत्रक: app.controller ("मुख्य नियंत्रक", फ़ंक्शन ($ गुंजाइश) {$ scope.projectName = "हॉट एयर बैलून";}); यहां निर्देश है कि मैं कैसे कह रहा हूं: & lt; div class = "column" ng-controller = "MainController" & gt; & lt; h2 संतोषजनक नाम = "myWidget" ng- मॉडल = "projectName" strip-br = "true" & gt; & lt; / h2 & gt; & Lt; p & gt; {{ProjectName}} & lt; / p & gt; & Lt; / div & gt; मैंने इस ट्यूटोरियल का पालन करके काम करने योग्य सामग्री प्राप्त कर ली है: अगर मैं डॉक्स को सही ढंग से समझता हूं तो कांगारु ऐसा मॉडल का उपयोग नहीं कर रहा है जिसे मैं चाहता हूं । इसकी बजाय इसके लिए एक नया मॉडल डब्ल्यू / स्कोप लोकल कंट्रेक्टिव डायरेक्टिव के लिए बनाया जा सकता है। मुझे पता है कि मैं निदेशालय को एक पृथक गुंजाइश जोड़ सकता हूं, लेकिन मुझे

Get Following Error,When I Run Selenium Command From Terminals -

जब मैं टर्मिनल पर सेलेनियम कमांड चलाता हूं i। Ant test selenium-ui-functional। मुझे निम्नलिखित त्रुटियां मिलती हैं [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:15: पैकेज संगठन .openqa.selenium मौजूद नहीं है [javac] import org.openqa.selenium। *; [javac] ^ [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:16: पैकेज org.openqa.selenium मौजूद नहीं है [javac] आयात करें org.openqa.selenium.By; [javac] ^ [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:17: पैकेज org.openqa.selenium मौजूद नहीं है [javac] आयात org.openqa.selenium.Alert; [javac] ^ [javac] /home/jbilling/jbilling-4/enterprise/test/functional/com/sapienter/jbilling/selenium/sanity/JBillingSanityTest.java:18: पैकेज org.openqa.selenium.firefox मौजूद नहीं है [ Javac] आयात org.openqa.selenium.firefox.Fi

recursion - What are the two ways of maintaining state between tail-recursive instances of a function in Erlang? -

The equivalent in a procedural language (for example in Java) will be the local variable (or frequency variable), outside of a loop Use content to be used and update them How can I do in Erlang? You pass state as a parameter in the recurring call. Example loop that receives NN message and returns it as a list: Loop (N) - & gt; Loop (n, 0, []) loop (n, count, message) when calculation & lt; N - & gt; Receive messages - & gt; Loop (n, count + 1, [message | message]) end; Loop (_, _, Message) List: Reverse (MGS)

android - Fetch Contact name and photo with cursor -

पब्लिक क्लास संपर्क LISTFragment ListFragment लागू करता है LoaderCallbacks & lt; कर्सर & gt ;, AdapterView.OnItemClickListener {निजी अंतिम स्ट्रिंग CURSOR_SORT_ORDER = Contacts.DISPLAY_NAME + "कोलेटेड स्थानीय एएससी"; निजी अंतिम स्ट्रिंग CURSOR_SELECTION = संपर्क। HAS_PHONE_NUMBER + "= 1"; निजी फाइनल अंतर CONTACT_ID_INDEX = 0; निजी फाइनल इंट CONTACT_KEY_INDEX = 1; निजी कर्सर एडाप्टर mAdapter; @Create पर सार्वजनिक शून्य को ओवरराइड करें (बंडल सहेजे गए इन्स्टैंसस्टेट) {सुपर.नक्रेट (सहेजे गए इन्स्टेंसस्टेट); // एक बार संदर्भ संदर्भ = getActivity () बनाने के लिए एडाप्टर बनाएं; इंट लेआउट = एंड्रॉइड। आर। लय आउट.simple_list_item_1; कर्सर सी = नल; // कोई कर्सर अभी तक नहीं है int flags = 0; // कोई ऑटो-requery नहीं! लोडर requeries mAdapter = नया सरल कर्सर एडाप्टर (संदर्भ, लेआउट, सी, FROM, TO, flags); } @ ओवररेइड सार्वजनिक शून्य पर दृश्यित किए गए (देखें दृश्य, बंडल सहेजे गए इन्स्टेंसस्टेट) {getListView ()। SetOnItemClickListener (यह); } @ ओवरराइड पब्लिक रिक्त ऑन एक्

javascript best way to split an array into two by delimiter -

मेरे पास जावास्क्रिप्ट में एक सरणी है: a = ["jhgkhjgk3j_jhgkjhgk", "8797823_0120120 मुझे मिलना है b = ["jhgkhjgk3j", "8797823", "आहा"] और सी = ["jhgkjhgk", "0120120", "बीबीबी"] "_" सीमांकक के कारण क्या के लिए बिना उपयोग किए जाने का कोई तरीका है लूप स्टेटमेंट? बस मस्ती के लिए, यहां एक ECMAScript 6 समाधान है। < कोड> दो [बी, सी] = ए.राइड (फ़ंक्शन (रेस, एस, आई) {[रिस [0] [आई], रिज़ [1] [आई]] = एस.एस.प्रॉप ("_"); वापसी res;}, [[], []]); फ़ायरफ़ॉक्स में आज काम करेगा, और उम्मीद है कि बहुत दूर के भविष्य में अन्य ब्राउज़रों में भी।

java - Calling SwingUtilities.invokeAndWait in a loop -

Image
I am trying to save a .png image of a jframe In JFrame , I have two Plot3DPanel objects, most likely due to the synchronization fault, the left-sized frame is invisible when saved. PNG But now, I get a compilation error An internal range defined in a different method And a non-final variable can not be referenced However, I need my filename to be different, besides, to me again through my array of objects What can I do to stop this error? There is a way that any variable The final copy of it is necessary for example if the i problem is: final int index = i; SwingUtilities.invokeAndWait (new Runnabal) (public run from zero) (new visualselliizer (P [index], Q [index], folder + "C" + index) .on ();}}); Another solution is to use class areas in the anonymous area.

jquery - AJAX call to hit a URL -

मुझे AJAX कॉल का उपयोग करके एक पृष्ठ को हिट करने की आवश्यकता है $। ajax ({url : '/ path / addId; type = one & amp; id =' + $ ("# id")। val (), टाइप करें: "POST", सफलता: फ़ंक्शन (डेटा) {चेतावनी (डेटा [संदेश]);}, त्रुटि: फ़ंक्शन (डेटा) {चेतावनी ("त्रुटि!");}}); मुझे इसके लिए एक त्रुटि मिल रही है बाहरी URL को हिट करने के लिए आवश्यक बुनियादी कॉन्फ़िगरेशन क्या है? अद्यतन: यहां मुझे जो प्रतिक्रिया मिल रही है या त्रुटि है: readyState getResponseHeader getAllResponseHeaders setRequestHeader overrideMimeType statusCode abort राज्य हमेशा तब वादा करता है कि पाइप विफल प्रगति पूर्ण सफलता की त्रुटि को उत्तरित किया गया थासस्ट स्थिति स्थितिप्रतिष्ठापूर्ण यदि आप चेतावनी विंडो को 'त्रुटि' कह रहे हैं, तो इसका मतलब है कि आपका एजेक्स अनुरोध सफलतापूर्वक भेजा जा रहा था, लेकिन यह कि सर्वर त्रुटि के साथ प्रतिक्रिया कर रहा है या बिल्कुल नहीं। यह हो सकता है कई कारणों से, लेकिन मैं सबसे पहले जांच करूँगा कि आपका यूआरएल सही है।

facebook - How to add Place to Video Uploaded via PHP SDK? -

I want to add a location in the video, videos have been uploaded by PHP SDK How do I I can 'place' = & gt; 'Location ID'; This code works for photos but does not work for the video As far as I know (and the same docs), place is not possible to connect with video at all. You can create a separate post after uploading, and add video object_id as well as place accordingly ID. View the documentation for the post here:

type conversion - Typed integer constant in OCaml -

आप कहते हैं कि ऐसा कुछ कोड था type foo_t = int64 do_something_with_foo (f : Foo_t) = (* आपकी कल्पना को छोड़ दिया *) और आप इसे "निरंतर" फू के साथ कॉल करना चाहते हैं, जैसे: do_something_with_foo 99 आप संकलक / दुभाषिया को कैसे समझते हैं कि आपका निरंतर 99 वास्तव में एक foo_t ? do_something_with_foo 99L का उपयोग करें। निरंतर 99 प्रकार int , 99L प्रकार int64 है। यह कुछ नहीं है टाइप उपनाम foo_t = int64 के साथ करने के लिए जब तक foo_t की परिभाषा दिखाई देती है (अर्थात किसी युक्त मॉड्यूल के हस्ताक्षर द्वारा नकाबपोश नहीं), int64 के किसी भी मान में भी foo_t और उपाध्यक्ष।

regex - Javascript reg ex combination -

Image
var cost_price = "15..00" / * Cost value should be such that there should be numbers and one Do not have more points than * / if (/ ^ ([0-9]). ([.]) /. Exam (cost_price) {documet.write ("true cost value"); } Now let me get the Hello message despite two points in cost_price if I should change in the condition? P.S. I have 2 reg pre-combined one to see if the dot happens only once, checks for the accuracy of points and other investigations. why not / ^ [0-9] + (\ [0- 9] +)? $ / And so make the final part completely optional? ( ? specifies " 0 to 1 times ") " If you want to allow .15 , you first have to [0-9] + < / Code> (1 coincides with an infinite time) from [0-9] * (corresponds to 0 for eternity).

angularjs - ngview not displaying my template -

मैं ngView और angularjs में राउटिंग का उपयोग करके आंशिक HTML सामग्री प्रदर्शित करने का प्रयास कर रहा हूं, लेकिन नीचे दिए गए कोड से नहीं। पता है कि मेरे टेम्पलेट को घर के दृश्य में क्यों नहीं दिखाया जा रहा है। मैं स्थानीय होस्ट पर नेविगेट करना चाहता हूं \ manageStaff डिफ़ॉल्ट स्थानीयहोस्ट रूट के अनुसार होम.cshtml। नीचे दिए गए कोड: ** Home.cshtml ** @ {लेआउट = शून्य; } & Lt;! DOCTYPE html & gt; & Lt; html ng-app = "myApp" & gt; & Lt; शीर्ष & gt; & lt; मेटा नाम = "व्यूपोर्ट" सामग्री = "चौड़ाई = उपकरण-चौड़ाई" / & gt; & Lt; title & gt; घर और lt; / title & gt; & Lt; link href = "~ / सामग्री / साइट.css" rel = "स्टाइलशीट" / & gt; & Lt; link href = "~ / सामग्री / AdminHeader.css" rel = "stylesheet" / & gt; & Lt; / head & gt; & LT; बॉडी & gt; & lt; div id = "headerArea" & gt; & Lt; / div & gt; & Lt; div id = &qu

error with python qt message box -

The message box keeps 'flashing': s This is not a crash, but it just keeps on opening and reopening. How can I fix this problem? self Translator (English) QtCore.QObject.connect (self.ExitButton, QtCore.SIGNAL (_fromUtf8 ( "clicked ()")), login.close) QtCore.QObject.connect (self.LoginButton, QtCore.SIGNAL ( "clicked () ", Self.get_value_from_user) QtCore.QMetaObject.connectSlotsByName (login) Login.setTabOrder (self.LoginButton, self.UsernameEdit) Login.setTabOrder (Self.UsernameEdit, self.PasswordEdit) Login.setTabOrder (self.PasswordEdit, self.ExitButton) def get_value_from_user (self): correct_details = right while correct_details == False: inputusername = self.UsernameEdit.text () inputpassword = self.PasswordEdit. text () cur.execute ( "SELECT password FROM tblStaff WHERE username = '" + inputusername + "") password = str (cur.fetchone ()) password = password [2: -3] cur.execute ( "SELECT firstname FROM first name =

asynchronous - Sequential Ajax Calls fail in ASP.NET MVC -

I have seen many solutions to this problem but nothing is doing to fix my problem. I Use AJAX calls on the page to upload the file. Ajax calls AJAX calls to refresh the page to include the uploaded file after the Ajax call is over in the same function. I use it as the first call (to upload) another stack overflow user): function upload files () {document. GetElementById ('fileupload'). Onsubmit = function () {var formdata = new formData (); // FormData object var fileinput = document.getElementById ('upload filename'); // Selected file input through each file (i = 0; i reloadman () is the function: function reloadman () {$ .ajax ({url: '/ dashboard} / Thumb list / current path type: "received", timeout: 5000, success: function (msg) {$ ("# thumb-list"). Html (msg)}, error: display error (" Disabled listing ")});} I have seen it: Uploaded in 'Refresh' IEL information is not included in the response

Microsoft SQL Server Management Studio Addin for specific SSMS version -

I have created an addin for the SSMS. There are two versions of my SSMS (11.0.2100.60 and 12.0.2000.8). I want addin only to work in SSMS version 11.0.2100.60. I changed. The addin file is as follows: & lt ;? xml version = "1.0" encoding = "UTF-16" standalone = "no"? & Gt; & Lt; Extability xmlns = "http://schemas.microsoft.com/automationExtensibility" & gt; & Lt; HostApplication & gt; & Lt; Name & gt; Microsoft SQL Server Management Studio & lt; / Name & gt; & Lt; Version & gt; 11 * & lt; / Edition & gt; & Lt; / HostApplication & gt; & Lt; Add & gt; & Lt; FriendlyName & gt; MySSMSAddin & lt; / FriendlyName & gt; & Lt; Assembly & gt; C: \ MySSMSAddin \ MySSMSAddin.dll & lt; / Assembly & gt; & Lt; FullClassName & gt; MySSMSAddin.Connect & lt; / FullClassName & gt; & Lt; LoadBehavior & gt; 1 & lt; / LoadBehavior

javascript - Linking Check boxes to Array Items -

I have a function in which I archive arrays whose ratings are for movies, movie rating 3 categories 15, 18, is divided into PG and those values ​​have already been stored in the array. I want to create a checkbox for those 3 options and then link them to the array so that it displays the name of the movie or movie whose rating is clicked on. Unfortunately, I can not share any of my codes for several reasons, but just what I'm asking is how to link its value I hope It makes sense. Then when a user clicks on a checkbox, you can call movies [this.value] click handler Function.

html - IE8 and Safari open .csv file in browser. How do I make it so it opens a download option? -

I am trying to create a jsp page that allows a user to download a .csv file. It is fine on FF, Chrome and IE10, that is, it opens a popup so that the user can be given the option to download / save the file. But the CSV file in IE8 and Safari is open in the browser. How do I make it work. I have the code onclick = "window.location.href = '.. / sample / sample csv'; return back;; /> Thank you in advance An alternative would be to link to a real download page. Pushed down as a response with a content-type of application / octet-stream ; To do this, you may have to type servlet: < p> As a side note, my first project Instinct response.write () was out of the document, but apparently.

How to download SVN code? -

OK, this is an Android open source project that I want to compile and play around. The problem is that it is hosted: or which lets me download files by file. How do I download the whole thing so that I can use it in eclipse? ; / You need a checkout from the repository. This will help you.

c# - Email Message save to Local Folder through EWS -

I am using this method to save email messages locally and if there is an attachment with email, then it works fine. _emailMessage.Load (new propertySat (methicemma. Mimecontent)); MimeContent MC = _emailMessage.MimeContent; Var path = path Combine (diffulpath, email mjnem); File stream fs = new filestream (path, create file mode); Fs.Write (mc.Content, 0, mc.Content.Length); Fs.Close (); If there is no attachment, it throws an exception and is not able to save the email message to the folder. There is an exception "This operation can not be performed because this service object has no ID." Please tell me how to deal with this problem. Thanks Perhaps some code path does not use email messages. Save or email message. Weight

ios - Can I install Auto Layout constraints in views that are owned by VCs outside of my control? -

I am new to auto-layout. I want to convert an existing project into auto layout. The project does not use the interface builder, the entire view hierarchy is programmatically set. After reading and experimenting with Apple, I am still not clear whether I am allowed to install obstacles in thoughts or not No Do my own custom views Is one of the controllers? The question is particularly interesting in the case of predefined visual controller sections of the UIIC, but in reality can be extended for any third party's visual controller which is outside of my control. To illustrate my uncertainty, this example of the visual hierarchy: + - UIWindow ----------------- ------------ ------ + | + - UINavigationController (?) ------------- + | | | + - MyViewController (UIView) ---------- + | | | | | + - ViewOn ------------------------ + | | | | | | | | | | | | | | + ----------------------------------- + | | | | | | + - View-to ------------------------ + | | | | | | | | | | | | | |

ios - Is it possible to change views when the device is rotated? -

When the device is in portrait mode, I want to show text details about a graph, and when the user rotates it, So I want my UIWebView to take the full screen. This functionality can be seen in the iOS stock app when you are in the picture, you can see all your stocks, and when the app landscapes , Then the full-size graph is shown. How do i do this willRotateToInterfaceOrientation in your UIViewController sub-class override: view content appropriate To change with visual content for destination orientation. I suggest using [UIView transitionFromView: toView: ...] for smooth animation.

css - How to update SASS styles of Foundation 5? -

I'm new to the foundation framework, so this is an easy newbie question. In my project, I only have some CSS files in a SAS directory: _foundation.scss (5000+ lines of CSS file) _normalize.scss (normalized css File) _setting.scss (volume of a large commented CCS variable) app.scss (collecting other SCSS files) I am not disappointed that the more CCS stands for different modules No files. $ topbar-bg-color: rgba (0, 0,0,0,0); Should I include or update this value? I successfully tried to update without setting. You should use the _settings.scss file. Create a app.scss file in the Scss directory and enter it in: @import "normalize"; // Simply general generalization @ import "foundation / settings"; // Changed settings (will affect Foundation) @ import "foundation"; // and inside the Foundation frameworks / your awesome custom styles go here and then app.scss compile - all this.

Wordpress read more in loop -

I am new to WordPress and I look around on this site and have tested other suggestions but still one The only problem is "How to Read More in My Loop?" This is my loop which I am using and working fine, but I can not get more read link in my loop. I try the other option but they only give me more problems with my website, so I would like to touch this code which I am using and just add more links to read it. & lt ;; While Php ($ the_query -> is_pos ()): $ the_query - & gt; Post(); ? & Gt; & Lt ;? Php if (in_category ('11 ')):? & Gt; & Lt ;? Php else:? & Gt; & Lt ;? Php endif; ? & Gt; & Lt; H5 & gt; & Lt; A href = "& lt ;? php the_permalink ()? & Gt;" & Gt; & Lt ;? Php the_title (); ? & Gt; & Lt; / A & gt; & Lt; / H5> & Lt; div class = "meta" & gt; & Lt ;? Php the_time ('fjs, y')? & Gt; & Lt ;? Php comments_popup_link ('no com

css - Sticky scrollbar at bottom of table -

I'm not sure the word "sticky" is the word for it, but scrollbar overflow: auto Be visible? I have a big table, which I want to scroll horizontally; However, the table is too long, so when the page is loading horizontal scrollbar is not in the viewport of the browser, it is not hard to say that the table is absolutely scrollable. & lt; div style = 'width: 900px; Overflow: Auto '& gt; & Lt; Table & gt; & Lt ;! - Very large table here - & gt; & Lt; / Table & gt; & Lt; / Div & gt; The scroll bar appears below the table, but unfortunately the table is too high that you can not see it below. I want the horizontal scrollbar to be visible even when visible, even if the table screen turns off, possibly fixed under the viewport. Ideally I want to use it only CSS or at least Javascript Here is a script for it $ (function ($) {var scrollbar = $ ('& lt; div id =" fixed-scrollbar "& gt; &

C# create array from another array -

Hope this is a very easy solution for this. I have a string that I have divided by "-" Which I want to divide into another array, but it can not seem to work. Any help appreciated. splitc = text box 1 .ext.Split ('-'); For example textbox1.text = "asdf-asfr" then I can get it: asdf For example, I each individual element splitc [0] / code>, but nothing works for my life. "text"> You can simply chain the array index splitc [0] returns a string that implements the pointer for the individual char s .. char c = SplitEc [0] [2]; // D // | ________ || __ | // ^ string = string letter

java - How can I prevent the Ball from moving off of the edge of the screen? simple KeyListenerDemo example -

I have limited experience, especially when it comes to graphics, I have got very good help on this problem so far And I am sure to be more familiar with this site as well as to contribute more. The starter code (below) that works fine as I had tested it in the eclipse. I am using it from a classroom to teach a high school student, according to the instructions given below, will an easy way to extend the simple program in advance so that I can get the ball out of the window edge Preventable from being able to? The ball runs fine with the arrow keys, but I can still move the scene completely out of the window / any easy ways to extend this demo program greatly appreciate. Thank you. Import java.awt. *; Import java.awt.event. *; // # 1 import javax.swing. *; / *************************************************************************************************** **************** KeyListenerDemo.java * Provides keyboard input for using the KeyListener interface * * Program 18: Adding

elasticsearch not analyzed still tokenize string -

मेरे पास एक इंडेक्स है जिसमें 4 प्रविष्टियां हैं। "hits": ("कुल": 4, "max_score": 1.0, "हिट": [{"_index": "da_6", "_type": "ट्वीट", "_id": "1", "_score": 1.0, " _source ": {" message ":" hello world "}}, {" _index ":" da_6 "," _type ":" ट्वीट "," _id ":" 2 "," _score ": 1.0," _source ": {"Message": "hello worldetc"}}, {"_index": "da_6", "_type": "ट्वीट", "_id": "4", "_score": 1.0, "_source": {"message ":", "," _score ": 1.0," _source ": {" message ":" "," hello world "}}, {" _index ":" da_6 "," _type ":" ट्वीट "," _id ":" 3 "," _sc

android - Get a Content URI from a File URI? -

I am using an image download in the system's gallery and then in the broadcast receiver (once downloading Download is successful) intent to set image as wallpaper Everything was working fine but recently on 4.4 I got an exception in the photo / Google + app because This is expecting a content URI and the file is not a URI. So my question is, does anyone know how to convert a full file path / URI (file: //) into content style URI (content: //)? The lack of source code, I'm away from the computer that is the source, but I hope the question comes without understanding, obtain the content style uri with a full path. Edit: / Strong> The image has been copied to the system's gallery or media gallery, which has not been saved in the internal store of my app. Here's an example that I want to convert: file: ///storage/emulated/0/Pictures/Rockstar/image.jpg to content: // media / internal / images / media / 445 edit 2: < : Main 04-21 10: 50:

Discontiguous array slices in Python -

I would like to get an array piece containing two (or more) isolated parts. Example: & gt; & Gt; & Gt; A = Category (100)> gt; & Gt; & Gt; A [78:80; 85:97] # & lt; = Invalid syntax [78, 79, 85, 86] This syntax is not accepted. What is the best way to do this? Update: was above the example int , but I wanted to do this mainly to work on strings like this. Example: & gt; & Gt; & Gt; A = "ABCDEFG" .split ()> & gt; & Gt; & Gt; One [1: 3; 4: 6] ['B', 'C', 'E', 'F'] What about it & gt; & Gt; & Gt; A = Category (100)> gt; & Gt; & Gt; One [78:80] + one [85:97] [78, 79, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96] Update: Make sure that you want to output as your string example: & gt; & Gt; & Gt; Import string & gt; & Gt; & Gt; A = list (string lowercase [: 7])> gt; & Gt; & Gt; One [1: 3] + one [4: 6] [&

mapping - Basic continuous 2D map exploration ( with obstacles ) algorithms -

Here's the problem: There is a map which is anywhere from 200 × 200 pixels to 1000 * 1000 pixels. Each pixel is one third of one inch in length / width. The map is coming from the walls (which can be of any size), and in some way can be pre-processed. However, when the problem begins, a robot (size 18 * 18 pixels) is placed in an unknown location, which includes several obstacles and one goal, all of which are in an unknown location. If any wall / object / target robot obstacles die instantly as if it had a simple laser scanner, which first sees the 80 * 80 pixel square, focuses on the robot. I have already solved the problem of localizing the robot and determining its position. Little mistake) on the grid I think the robot is going to the lower right, and somebody Even in the way I go to the left side, I am having trouble creating a complete algorithm, avoiding obstacles and walls, until the goal is reached, I am not a good way to do this. Is there any such thing, or

extjs - Sencha Architect - events stopped working after domain renamed - need troubleshooting steps -

Using SEA, the app creates an app based on Touch 2.3, Template, "Login / Register" - which controls and Uses references. In the extension of the app, there were some behavioral / caching problems, in an attempt to decide, the domain was reset / was reverted to "My App" because I think that I have a targeted web folder under htdocs (At least I did not change his name to myApp application.name). I had changed its name back to my node on the application node. When I recreate the app (create web app) then no event works, such as the login button will be used long form. / Code> I load files containing "MyApp" and find out that the standard value and that part of the creation of an app is something to search / replace? When I turn on debug on the browser, I can not see the code of the controller action of the button (something is I have tried refresh the app and the log output is only [ INF] does not show any error. My main question

SQL how to query on self-join -

A SQL question has confused me very much, I have two tables like this < Code> Table Create Faculty (FAC Focus First Name FAC Last Name Not FIC Supervisor) Second Table offer (offer a Course of Offer Offline Application No)) Now I have to write a question which is listed for the names of the faculty members and the curriculum number, Faculty teaches members the same course of his supervisor in 2010. I try to write a question like this selected fa.facno, fa.facfirstname, as fa.faclastname fa, as faculty fs , Offering as an o, offering as a fa where fa.FacSupervisor = fs.FacNo and fa.FacNo = o.FacNo and fa.FacSupervisor = os.FacNo and o.OffYear = 2010 But I am not the right answer, so please give me some pointers Thanks to every one, I worked as the bottom FacFirstName, F.FacLastName, s.FacFirstNa as Superstorm, SFA Superlansnam as the first name, o Not as a faculty as faculty, as a faculty, presenting as an o, offering as an OS where f.FacSupervisor = os

git - Deleted the file I tried to commit, no message -

I am a new user who tried to minimize and push the .md file before me Has been doing. I messed up and tried to commit without a message, giving me a fatal error and file landing in both locally and volatile areas. Online advice asked to remove it. I tried RM and got the same fatal error message. Other online help called the file "physically removed", and did not ensure that it meant that I removed it and emptied the garbage. I do not need a file "I'm happy to start." I just need to clean up the mess and start over again. I tried to reset, I tried RM cache. What's shown here in Jit Guinea, in the yellow area in the fourth part of the northeast: Stage for the comment, missing git status branch master, the initial commit, change to commit: (to use "git rm - to protect -"), then it was deleted Lists lists the file as green file in the form of a new file, then unchanged changes for the commit, a new suggestion / rm or checkout (all a

c# - Text property of radio buttons inside a groupbox to a decimal variable? -

I'm having trouble finding a way to move the text property of the checked radio button and save it in decimal. There are currently three group boxes, out of which there are 3 radio buttons I have to get a text property from the radio button checked in each box, and two of these are in decimal form Save, and one of these will be in the form of Int16. decimal variablename = text Any thoughts? variable <0> define a global variable decimal result = 0; Private zero radio banner 1 checked (object sender, event cargo e) {result = decimal. Purse (radio button.1 text); } Private Zero Radio Button Button2_CheckedChanged (Object Sender, EventArgs E) {Results = Decimals. Purse (radioButton2.Text); } Private Zero Radiobutton 3_CheckedChanged (Object Sender, EventArgs E) {Results = Decimals. Purse (radioButton3.Text); } Make sure your radio button is text number but any character

Rails filter params before creating/updating -

I am trying to add user privileges to an existing app that was designed in the brain without user privilege . I.e.) If you are logged in, you can create, update, and delete objects. The application is using Rail 4, so I can take advantage of strong parameters. I need to add a new user level which can only edit the nested characteristics of a model, so I thought about filtering the parameters variable that the original model was updated before updating has gone. How can I filter the params variable before I update or create the model? You will need some type of authorization method, which can help with this, but I At least I would like to read this chapter of the Rail chapter. You can read the whole thing, it introduces to an excellent rail

java - count the frequency of letters in given word -

I need help writing a program about counting how frequently the given word has been repeated . Lower and upper case are equal to letters and they also have to work for numbers. For example: We have to use array and loop. Also, if more than 1 word / number is given, then that place should not be counted and if the users want to continue or not, then they should enter the dot. 'Or when there is a dot'. After the word, it should close the program after counting the letters. University = e: 1 i: 2 n: 1 r: 1 s: 1 t: 1 u: 1 y: 1 Import java.util.Scanner ; Import java.lang.Character; Public category array {public static zero main (string [] args) {scanner input = new scanner (System.in); Int [] letters = new int [26]; String str = input.nextLine (); str = str.toLowerCase (); For (int i = 0; i & lt; str.length (); i ++) {letter [i] = 0; } System.out.println (str.length ()); Println (char2int ('a')); System.out.println (char2int ('D')); } Public static cha

regex - How to match any characters except a set of contiguous characters? -

I am trying to match all the letters of the character until the pattern A0343443 ( A [0- 9] + ) Input: A546454: This and that happened in C: \ user \ John \ document \ folder in a file reading B546454 An error occurred: It happened in C: \ User \ John \ Documents \ folder There was an error reading the file A595949: C: \ user \ John \ document \ .... Desired output: A546454: this and more There was an error in reading: \ user \ John \ document \ folder file A595949: This is the second thing in C: \ user \ John \ document \ .... Because the line ending is uncertain, I want to finish when I'm positive for reaching <0 >> [0- 9] + or B [0- 9] + Saw: ^ (? A [0- 9] +) but it fails in the first capital A i.e. the the very essence of chocolate to prevent it. Any thoughts? Thanks Since your lines are A or < Code> b , you can use a negative lookhead . ^ (?! B [0-9] +). $$ View

vba - Split an integer into digits (Hundreds, tens, units) and store in ARRAYS -

I am working on some code which will calculate very big factual products which are very useful for long-integer I'm 2 to use 2 arrays, F () and C () F is for multi-fold products and to store units, C is for "carrier", which will be added later, so the units F (I) is deposited in, for example, C (I + 1) holds tens, C (I + 2) Hundreds Is. Later you will add C (I) + F (I). Single, Si (0 to 30) Single as C (0 to 30) Single in the form of Single, Split1 Single, Split 2 as single string in the form of string for the next, string as In the form of multi = sub LargeFactCalc () F (1) = 1 N = InputBox ("The number that you want to make factual:") for J = 2 to N for I = 1 to 30 mult = J * F (I) Call split next I sum = C (I) + F (I) C (I + 1) = 0 C (I + 2) = 0 Next J. Print # 1, F (I) Close # 1 End Sub < Pre> sub section (select case lane) Multi) Episode 1F (I) = Multi 'units 2C (I + 1) = Left (multi, 1)' tens F (I) = right (multi, 1 ) 'Union