Posts

Showing posts from July, 2012

user interface - Having trouble adding wxListBox to frame -

I'm trying to add a wxListBox to his frame, but I am having some trouble. This is my sample code wx.Frame .__ init __ (self, parent, title = title, size = (750,690), style = wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx. CLOSE_BOX | wx.CLIP_CHILDREN) separator = wx.SplitterWindow (self) Panell = Panell (denominator) panel2 = wx.Panel (separator style = wx.SUNKEN_BORDER) splitter.SplitHorizontally (Panel1 , getting panel2,470) listbox = wx.ListBox (splitter, -1, (20, 20), (80, 120), 0, wx.LB_SINGLE) I error Is, control .ListBox_swiginit (self, control .new_ListBox (* args, ** kwargs)) Writing error:. Hopefully wire sequence Your line: listbox = wx.ListBox (Separator, -1, (20, 20), (80, 120), 0, wx .LB_SINGLE) Something like this should be: listbox = w x.ListBox (Panel1, -1, (20, 20), (80, 120), wx.LB_SINGLE [list of options],) this separator Use one of your panels instead of parenting, or if you want to split it out, use 'self' which is ...

twitter bootstrap 3 - BootstrapValidator: How to use use two submit buttons and validate different fields on same form? -

I have a form with two submit buttons, but for each I want to validate different areas in this area When I click on the Preview Submit button, I want to ignore 3 fields, while submit the 'normal' button, I want to validate all. Is this possible? Here's some html: & lt; Form class = "form" role = "form" id = "searchesForm" & gt; & Lt; Input class = "form-control" type = "text" id = "name" name = "name" /> & Lt; Input class = "form-control" type = "text" id = "widgetWidth" name = "widgetWidth" /> & Lt; Input class = "form-control" type = "text" id = "widgetHeight" name = "widgetHeight" /> & Lt ;! - Valid more field click for both regions - & gt; ... & lt; Button type = "button" id = "preview" name = "preview search" category = "btn btn-defaul...

Strategy Pattern V/S Decorator Pattern -

I'm learning some design patterns. I have just come in two samples. Strategy Pattern Decorator Pattern According to the implementation I What some of them found is misleading. What do I understand: - Strategy Pattern: - Strategy Pattern Returns Many Algorithms That Can Be Used for Special Operations Or work Decorator Pattern: - The decorator adds some functionality to the pattern component. In fact I have found that the strategy pattern and decorator patterns can also be used alternately. Here's the link: - So I am confused: What is the difference between strategy patterns and decorator patterns? When the strategy pattern should be used and when the decorator pattern should be used? The difference between the two with the same example of exp. The implementation of the strategy pattern you use on the change runtime Decorator Pattern allows you to increase (or add) existing functionality in additional functionality on runti...

content management system - Magnolia compare and change Property's value logic? (in Java) -

मैं मैग्नोलिया 5.3.2 सीई में एक कंटेंट प्रॉपर्टी के मान की की तुलना करने और बदलने की कोशिश कर रहा हूं ( सामुदायिक संस्करण) तिथि के बाद की तारीख से भी कम है। मैं बस अपने तर्क को यहां सत्यापित करना चाहता हूं, और नीचे दिए गए कुछ प्रवाहों की व्याख्या करेगा। प्रवाह: वर्तमान में मैं मैग्नोलिया सामग्री ऐप में .xls फ़ाइल को एकीकृत करने का प्रबंधन करता हूं। .xls फ़ाइल से निकाला जा रहा है, जो सामग्री की संपत्ति का नाम में से एक है, मैंने इसे "अतिदेय तिथि" और इसका मान उदाहरण के लिए "17 अक्टूबर 2014" के रूप में नाम दिया है। इसके बाद, एक सामग्री की संपत्ति नामित "स्थिति" है जिसमें मान "ए" है। सामग्री की संपत्ति "अतिदेय तिथि" और "स्थिति" उसी नोड के अंतर्गत है यदि "अतिदेय तिथि" आज की तारीख से कम है तो "स्थिति" मान "ए" से "एक्स" में बदल जाएगा मैं 2 अवधारणाओं के साथ आया हूं: 1।) हर बार, प्रत्येक सामग्री ऐप का निर्माण किया जा रहा है, मैं इसके कन्टैंट प्रॉपर्टी के नाम ...

ORDERING columns in sheet2 based on a column in sheet 1 - excel -

Image
I see columns (B: I) looking for order in sheet 2 of an Excel file based on a column order Sheet1 (A) Here is an example file sheet1: Item-ID AS-469 BI-567 DI-328 ST-340 Wi-9 8 9 Sheet 2: Item-ID Item Cost Markup PC 1 OC2 OV 3 er 4 er 5 ST -340 Nomad 145 $ 30 % 0.457 3.55 500 2.38 150 BI -567 BIB $ 3.56 40% 0.525 3.25 400 2.17 100 DI-328 Diapers $ 21.4 35% 0.606 2.93 300 1.95 50 W-9 9 Wipes $ 5 .12 40% 0.675 2.75 250 1.71 0 Aspia $ 2.56 45% 0.746 2.57 200 2.55 2.54 Note: Sort and do not have the option of ordering columns (eg or ZA) because the original file was not sorted alphabetically is. Thanks to all the miles Use the formula below: = Match (A2, Sheet 1! $ A $ 2: $ A $ 6,0) Keeping your Sheet1 data in mind, A2: A6 is staying at , use the formula above the previous non-empty column, drag this formula, then the number of numbers you have, these numbers are itemized in your first sheet- The status of the id is, the second number is based on these number...

javascript - How to use require in nodejs? -

मेरे पास 3 फ़ाइलें हैं: बाल 1: var parent = आवश्यकता होती है ('./parent'); माता-पिता ['प्रकार'] = 'बाल 1'; Module.exports = जनक; चाइल्ड 2: var माता = आवश्यक ('। / Parent'); माता-पिता ['प्रकार'] = 'बाल 2'; Module.exports = जनक; अभिभावक: module.exports = {'parent': 1} test.js: var test1 = आवश्यक ('। / Child1') var test2 = आवश्यकता है ('। / Child2') परिणाम: {माता-पिता: 1, प्रकार: 'बाल 2'} ---- {मूल: 1, प्रकार: 'बाल 2'} क्यों? से: मॉड्यूल पहली बार लोड किए जाने के बाद कैश किए जाते हैं। इसका अर्थ है (अन्य बातों के अलावा) कि हर कॉल की आवश्यकता होती है ('फू') को उसी ऑब्जेक्ट को लौटा दिया जाएगा, अगर वह उसी फाइल को हल करेगा। यह विशेष रूप से सुविधाजनक नहीं है केवल प्रदर्शन के लिए, लेकिन मॉड्यूल आरंभीकरण के लिए यदि आप विभिन्न ऑब्जेक्ट्स चाहते हैं, तो अपने मॉड्यूल को फ़ैक्टरी में बदलें।

html - Multibyte characters in Password field -

Is it possible to enter a user type multibyte character, such as the Japanese language in the password field in the HTML page? If so, what kind? If not, why can not we type multi-byte characters, but can copy-paste them into the password field?

python - bluetooth device proximity -

I have a simple question. Is there any way to detect proximity between 2 BT devices in Python? I have a notebook (BT4.0) and my phone (BT4.0) and I want to know how far the phone is from the notebook, I know that it can be measured based on the signal measurement . The thing is that I could not find a library (i.e. PyBluez) to be able to show the strength of the signal. On the other hand Google Play has dozens of apps that measure signal speed. Is something that I'm not capable of in google? Thank you!

php - Create a unique field in yii-user module -

Hi, I am using the Yii-user module I am new to this and faced some problem. I make the agent's profile field with user / profilefield / create . Now I want to make it unique public function rules () {/ p> if (! $ This-> _rules) {$ required = array ( ); $ Numeric = array (); $ Float = array (); $ Decimal = array (); $ Rules = array (); $ Model = $ this- & gt; GetFields (); Forex Currency ($ Model $ Field) {$ field_rule = array (); If ($ Field- & gt; Required == ProfileField :: REQUIRED_YES_NOT_SHOW_REG} $ Field- & gt; Required == ProfileField :: REQUIRED_YES_SHOW_REG) array_push ($ Required, $ Field-> Varna); If ($ field-> field_type == 'float') array_push ($ float, $ field-varname); If ($ Field-> Field_type == 'Decimal') array_push ($ decimal, $ field-varname); If ($ field-> field_type == 'integer') array_push ($ numeric, $ field-> vignette); If ($ Field-> Field_type == 'VARCHAR' || $ field- & gt; Fie...

c# - Open a directory and process files/folders in background worker query -

I have the following code, I am trying to open a directory and to process its files through the background worker I am trying to get problems with it. I have an error (the current file does not exist in context), which I can understand because it is stored in any other method? If someone can tell me what is wrong in my code, then it will be appreciated. Folderbrowser does not work under background worker stream Private Zero btnFiles_Click (Object Sender, EventArgs e) {//btnFiles.Enabled = false. BtnSTOP.Enabled = true; // Clear the text field list box Resesults.Items.Clear (); ListBoxPath.Items.Clear (); TxtItemsFound.Text = string Empty; // Open Folder Folder folder to select the user to open the folder DialogResult result = folder BrowserDialog1.ShowDialog (); If (Results == DialogResult.OK) {// Store selected folder path string filePath = folderBrowserDialog1.SelectedPath; } // start the async operation here. Ronwerker sink (); } Private Zero backgroundWorker1_DoWork (objec...

javascript - Ember array: no render on `removeObject` -

Image
मेरे पास एक Ember.ArrayProxy इस तरह बनाया गया है: Em.ArrayProxy.createWithMixins (Em.Array, Em.MutableArray, Em.SortableMixin, {content: Em.A (arr), sortProperties: गुण, क्रमबद्ध: fn? Fn: शून्य (0)})। फिर से खोलें ({isEmpty : फ़ंक्शन () {this.get लौटें ('लंबाई') & lt; 1;}}); जब मैं pushObject या sortBy पर सरणी का उपयोग करता हूं तो डाटा बाइंडिंग बहुत अच्छी तरह से काम करता है। लेकिन जब मैं इस सरणी पर removeObject का उपयोग करता हूं, तो मेरे पास html में कोई अद्यतन नहीं है I मैं इसे कैसे ठीक कर सकता हूं? मेरी एम्बर: डेब्यूग: ---------------------- --------- DEBUG: एम्बर: 1.7.1 + प्री सीएसीएसी 0 9 0 एबीयूबी: एम्बर डेटा: 1.0.0-बीटा 9 डेब्यूज: हैंडलबारः 1.3.0 डेब्यूज: jQuery: 2.0.3 डेब्यूग: - ----------------------------- UPD: सूची से ऑब्जेक्ट हटाते समय मैंने बहुत अजीब व्यवहार देखा: मेरे नमूने में टेम्पलेट / क्रम / सूची.handlebars है: & lt; ul class = "scrollable_list" & gt; {{# ऑच ग्रुप ऑर्डर}} & lt; li वर्ग = ...

Scale Large MYSQL Table -

I have a table that is growing very fast, currently it has 47000000+ rows Even very simple questions such as 46 take on second time. Selection id, userId, visitorId, user_views date range 20000000, 1; The table structure is: field type tap key default additional id int (11) unsigned PRI tap auto_increment userId int (11) unsigned multi-zero Visitor ID Int (11) No Multi Zero Date Date Time MUL NULL Already running with application 1 Master and 6 slaves. Can not tolerate more examples There is a BTRE index on ID Is there any way to make it faster? Thanks Firstly, consider using different storage approaches should do. Depending on your usage cases, a relational database may not be the best option, if 99% of all options are typing in the table but not updating existing records (which suggests your column names), then one The nosql database can perform better. The second 200,000,000 rows without any specific order criteria, of course, on an index) are open t...

Spring MVC model for multiple forms -

I have a model named Model, which is a unit. I use it in many forms, but sometimes I will put some values ​​which are not in my model. For example, I got a field user name, password, email with the model user. Now I want to pass the value of the field that is not in my model, e.g. remember me. I do not know how to solve this, I have 2 options: a) I have enhanced the model / unit with field recall, annotated as an I @transient, so this is to my DB Does not contain unnecessary information b) I can make another model class with field memem and use the new model for each page to do this. I often apply my choice to A). It's easy and fast, but separation of anxiety slightly different. Option for B. You can create a UserForm class which enhances my property while remembering the user class.

Play - Java vs. Scala Templates -

I'm new to play, and I know there are two types of templates: 1 ) Java-based $ {...}, # {tagname}}, @ {...} ... as well as scalas based special symbol as '@' I'm not sure whether they are going to take each other out or to work together to supplement and work together. What are the pros and cons using every one? Choose a template rule or use both? As you can see, only use templates @ - Syntax at this moment If you are interested, then the templateing engine is now with the main playback work, I think the support of better engines will be better.

PHP get ASCII code of a character -

How do I get the ASCII code in PHP ?? When I try: $ h = dechex (ord ('' ')); $ H; I'm getting C3 when I should get F1 for example : for '' '-' & gt; % F1 for & # 39; f & gt; % Ba How can I get this? Thank you in advance! As they tell you in comments, standard is not ASCII Extended ASCII is present on the table, but your source file can be saved in UTF-8 and thus gets stored with different bytes. You can try setting your editor to save the document in a different charset. However , what you are doing is really dangerous as you can see that the encoding can change, always writing a bad name in the source file would be a bad idea Which are not part of the standard ASCII. Why do you need to take this action? Is there any other way? Can not you use UTF-8?

Why does the OAuth 2.0 specification prevent re-use of Authorization codes? -

Image
OAuth 2.0 युक्ति में, निम्नलिखित वाक्य का सेट है: प्राधिकरण कोड को लीक के जोखिम को कम करने के लिए जारी किए जाने के शीघ्र ही समाप्त होने चाहिए। 10 मिनट की अधिकतम आधिकारिकता कोड की सिफारिश की गई है। ग्राहक प्राधिकरण कोड को एक से अधिक बार उपयोग नहीं करना चाहिए। यदि एक प्राधिकरण कोड एक से अधिक बार प्रयोग किया जाता है, तो प्राधिकरण सर्वर अनुरोध को अस्वीकार करना चाहिए और उस प्राधिकरण कोड के आधार पर पहले जारी किए गए सभी टोकन (जब संभव हो) रद्द करना चाहिए। मेरा प्रश्न यह है कि क्यों चाहिए प्राधिकरण कोड केवल एक बार इस्तेमाल किया जा सकता है? यह एक एसिड डेटाबेस का उपयोग करने के लिए प्राधिकरण सर्वर के कार्यान्वयनकर्ताओं को मजबूर करता है, जो स्केलेबिलिटी समस्याओं का परिचय देता है। इस बाधा का विश्राम पूरी तरह से भंडारण को छोड़ने की इजाजत देता है। मैं देख सकता हूं कि ऑथोड कोड का पुनः उपयोग करने का मतलब यह होगा कि अगर कोई दुर्भावनापूर्ण एजेंट एक असभ्य कोड पकड़ सकता है, तो उसे लाभ मिल सकता है संरक्षित संसाधनों तक पहुंच लेकिन कुछ लेन-देन के लिए ओएथ 2.0 जनादेश टीएलएस और सभी के लिए यह सिफारिश क...

vb.net - In-Design Mode error - "Resource has no property named 'myResource'" -

Image
We actually get a strange scenario where we have resources in the project marked as embedded. The studio environment in view, during the development process, is the error of return: Type 'ourProject.My.Resources.Resources' in the name of 'tlSearch_Image' Property is not but I promise that it exists! When we go into the properties of the project, we see it. And any other resources are not failing, so they are fine, it is more than one! Even Intelisence allows us to refer to it without any compilation errors. Here are the attempts we have made: Clear solutions / reconstruction = FAILED Deleting Debug (in OBJ and Bin) We have everything in the folder of FAILED Restarting our computer (Microsoft, Yay !!) = FAILED Delete everything, and get everything back from our SVN trunk = FAILED Remove the image from the designer, and add it back = FAILED Rescue me from the project resources Trying to remove it, and add it back ... work for one time (like a fe...

view - Rails subtract result for the previous result -

Thank you for the last reply in my questions - I have a problem showing my results I need to show the day After looking at the weight of my patients in the day - and I need to show more one column "weight loss" - this is the weight of the day - the weight of the previous day but this is my code P table thread tray weight weighing th IMC: Weight weight: P strong peso: Abs - @ Do Mrijkvetkic | M | Tr td = m.date td = m.weight td = (m.weight / (@ patient.weight.first.inch ** 2) .to_f) .round (2) TD = m.weight - ????? Line I do not know how to do this, because there are many results and I do not know how I call the end result as a novel of real result - help me plz You can use - patient_weights = @ patient. Weight - Patients_wits each_vi_ index M, I Tr td = m.date td = m.weight td = (m.weight / (@ patient.weight.first.inch ** 2) .to_f) .round (2) TD = (i>?)? (M.weight-patient_wits [i-1]. Weight): "-"

dynamic finders - Grails: findAllWhere sort/max/offset operator don't work -

I know that the dyanmic finder in grails is only supporting 2 parameters like. Artifacts = Artifact.findAllByDocumentAndArtifactType (document, ArtifactType, [max: range, offset: startIndex]); Then I found this to use more than 3 arguments and it works though I have to use max and offset operator. Artifacts = Artifact.Find all where (document: document, artifact type: artifact type, position: blank, maximum [limit: Offset: startIndex]); Although this gives the complete list and not asked for the limit. Works everywhere to find the operator? How to use it or limit my findings to a certain extent? You can use more than dynamic explorers with two parameters Hope that helps

node.js - Sails looking in wrong directory -

I'm new to sails.js and node.js, so the question might be trivial, but I could not find the answer . I have my node on a web site in IIS. The JS app is deployed so that the app can be accessed on http://example.com/myapp/ http://myhost.com/myapp/app.js While browsing, I get the HTTS status 404 (not found) , because sail.jss looks like URL http://myhost.com/images/logo.png , but this file is actually located at http://myhost.com/myapp/.tmp/public/images/logo .png . This .tmp folder is being created on the frame. Can anyone put some light on it? [edit] I've added a rewrite rule in web.config and it works a lot better. But it only works when I put an application in the root of my web site (ACADD). If I put the application in the lower level (through entry), the added rule does not produce any effect. Here is the web.config: & lt; Handler & gt; & Lt; Add name = "iisnode" path = "app.js" verb = "*" module = "ii...

google oauth2 implementation using Node JS error -

Anyone can tell me where it keeps the following code and what it means ... error in this JS file Showing "There is no method in the object. Disquser". googleapis .discover ('calendar', 'v3') .discover ('oauth2', 'v2'). Execute (function (error, client) {if (! Mistake) callback (client);}); Which version of the node client are you using? The .discover () method was deleted for version 1.0 and all libraries were replaced with pre-compilation. See information about how to migrate your code to 1.0.

c# - Operator '&&' cannot be applied to operands of type 'bool' and 'bool?' -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब एक डाटाकॉन्टेक्स्ट वर्ग को पढ़ने की कोशिश कर रहा है इस तरह var उपयोगकर्ता = नई सूची & lt; उपयोगकर्ता & gt; (); Var भूमिकाएं = नया इंट [] {1, 2}; // यहां मुझे उन उपयोगकर्ताओं को प्राप्त करने की जरूरत है जिनकी भूमिका भूमिका (1, 2) में है, इसलिए पंक्ति से ऊपर // और मुझे भी उस उपयोगकर्ता को प्राप्त करने की आवश्यकता है जो कि वाइल्ड फ़ील्ड है, कृपया ध्यान दें कि वाइल्ड एसक्यूएल 'बिट' फ़ील्ड है और इसे नल है / / यह वही है जो मैं कर रहा हूँ foreach (var उपयोगकर्ता में datacontext.Users। जहां (u = & gt; भूमिकाएं।) (U.RoleID.Value) और amp; u.isValid? False == true)) // यहाँ '& amp; & amp;' हिस्सा मैं संघर्ष कर रहा हूँ और त्रुटि के ऊपर हो रही है {users.Add (नया उपयोगकर्ता ()} {संग्रह में जोड़े गए उपयोगकर्ता / उपयोगकर्ता}}; } तो सवाल यह है कि मुझे कौन से उपयोगकर्ता की भूमिका (1 2) और amp; amp; IsValid == सच है, अगर isValid 'नल' इसे गलत बनाते हैं धन्यवाद आपको इसे कोष्ठकों में लपेट करना होगा...

iOS 8 Share Extension Safari Image -

"itemprop =" text "> I have installed 8 apps in one iOS extension and everything is working fine. I can share with the photo app or safari. But when I am in Safari, I do not know how to get the thumbnail image of a web page. I have registered the proper nsetitioning activation rule. When I share a picture from the photo app, the NSItemProvider object type says that it is public.jpeg and I am able to use the [itemProvider loadItemForTypeIdentifier: (NSString *) kUTTypeImage option: completionHandler Not equal to: ^ (UIImage * image, NSError * error) {[self.extensionContext fullRequestReturningItems: @ [] completionHandler: zero]; }]; Image to get but when I share with Safari, the NSItemProvider type says it's public.url, and how do I know to get Is not the image? I know that to get the URL, by loadItemForTypeIdentifier: @ "public.url" but how do I get the image Within the share extension, you can access a JavaScript preprocessor web page, an...

sql - how to get a query to search through all of the text within a specified cell, for a value in a joined table -

तो मेरे पास निम्न है: UPDATE [कच्चे माल की जानकारी] INNER JOIN [ नकली टन की जानकारी] [कच्चे माल की जानकारी]। [सीएमसी पार्ट कोड] = [नकली टन भार जानकारी]। [आरएम] एसईटी [कच्चे माल की जानकारी]। [यूएस आईबी के 2013] = [नकली टन भार जानकारी]। [यूएस आईबी का 2013], [कच्चे माल की जानकारी]। [चीन केजीज 2013] = [नकली टन भार जानकारी]। [चीन केजीजी 2013]; मैं क्वेरी को [raw content reg info] में सभी पाठ में खोज करने में सक्षम होना चाहता हूं। [सीएमसी पार्ट कोड] , में दिए गए मान के लिए [कोड] [नकली टन भार जानकारी]। [आरएम] उदाहरण: [नकली टन भार जानकारी]। [आरएम] = BEA-493 [कच्चा सामग्री विन जानकारी]। [सीएमसी भाग कोड] = मुख्यालय -1085 (बीएई -4 9 3)

mysql - SQL Not showing all rows -

I am writing mysql code and can not find the solution. The question is "for each course with a list of different courses, and the number of female students enrolled." Sort the list of order numbers. "There are two courses, one software engineering and other information system The database has 6 female students and all 6 IT and English do both (12 results all appear together When I do the following sql statement, select choose the course title, gender course, student where gender = 'F'; All women participating in IT and English (which comes with 12 instances) Displays. However, when I tend to use and then to show how many women SE count how many, Select the course title, as the penis through the COUNT (sex) course, students WHERE gender = 'F'; this is only one course title (SE) and 12 numbers (so 12 women ), But it does not display other course title (IS). The answer should be displayed for SE for 6 and 6 and I'm at a dead end...

ios - Xcode 6 - Can't pick signing certificate/provisioning profile for Ad-Hoc distribution. Always taken default -

In order to distribute the app, we are using Xcode 6.0.1, where we use some of the following process Faced: Added an app-id and distribution provisioning profile under the developer program. Select the provision profile under the Build Settings and Archive application. Add-HocDistribute But with Xcode 6.0.1, this workflow changed slightly. I still choose the couls ad hoc distribution option, but I can not choose a provisioning profile that I have created against my app-id under the developer program. There was no list of informal profiles for using in the version Xcode 5. Xcode 6.0.1 has attempted to match the provisional profile from the Dev-program and does not serve as a matching certificate, automatically identified as AxC Ad Hawk * Profile. Once I chose an export option, the AxA Ad Hawk * profile was automatically created under the deviation option in the dev-program. Under the provision profile all the devices have been selected, which I have added and listed the...

Sharepoint 2010 alerts for expired dates for list items NO CODE -

I have a simple list of account holders, emails, and their certificates are expired. These are all in the list, nothing else. I want to alert them by automated email (which I will write) to remind them to contact me because their certificates will end soon. I have not seen anything from OOB, I want to avoid using Javascript at this address. Thank you.

java - JAAS Realm load internal config file -

I have implemented a simple JAAS module with realm configuration on the tomcat. It works very well when specifying the jaas.conf file Catalina.sh is very much like javo_opts = $ javo_opts "-djava.security.auth.login.config == $ catalina_base / Conf / jaas.config " However, I wanted to simplify my application by adding this config file internally to the web application. The documentation states that you can use configfile param "Name of a JAAS configuration file to use with this field. It will be searched to use Classloader # getResource (string) so that The configuration can be bundled into a web application. If not specified, the default JVM global JAAS configuration will be used. " In my reference .xml in my web app: & lt; Realem Appname = "AppleGuin" classname = "org.apache.catalina.realm.JAASRealm" config = "web-ANF / jaas.config" ..... /> The config file / WEB-INF / jaas.config is located Why is my Java...

npm - Cordova 4.0.0 is installing 3.6.4 -

I have updated to Cordova 4.0.0. Whenever I run Cordova platform Android , it brings the 3.6.4 Cordoba library. What am I missing? $ cordova -v 4.0.0 $ Cordova platform Android npm go http https://registry.npmjs.org/cordova-android/3.6.4 NMP HP 200 Https: // registry. Npmjs.org/cordova-android/3.6.4 NPM HTT https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz NMP HP 200 https: //registry.npmjs.org /cordova-android/-/cordova-android-3.6.4.tgz Edit: I have cleared any npm cache. Now there are two separate questions. Question # 1 OP question, essentially, "Why am I downloading Cordova 3.6.4 after installing Cordova 4.0.0?" Then Dawson answered it - Cordova is on command line program version 4.0.0, but Cordoba library is at version 3.6.4, so it is expected (though deceptive ) Behavior. Question # 2 is the question of "banshidari" which is basically "how can i solve getaddrinfo anotfound during install npm " this loc...

javascript - weird array behavior with .push -

I am working on a scheduling script which collects scheduled data from a multi-dimensional array and only push the value from the original array. Gives the present time to correspond to a second multi-dimensional array that only includes people currently working. Here is a simple example of how data is collected: [["John Smith", 07001700], ["Peter Smith", 0900 , 1600]] Only in my data, the initial time is placed in index 7 and the end time is in index 8 internal array (not sure that I am using the correct terminology here I am). If my statement is evaluating two values ​​from the real timetable (start time and end time) which is located in an array of working, given that the present time between those values , And if it uses pushing method to copy the corresponding array (worker's name, start / end time, etc.) into a new array called functional, now. In addition to the building, the initial array is working. From the schedule that pulls you from any ...

c# - Pass an object from one version of library to another one -

Suppose I have an app a and that library B uses it. Both of them need another library C to work. C is a strong name and version. Assume that B was created to work with C version 1.0 and A C Was created to work with 1.1 When A is in call methods B is generated from some sections which are C And the problem arises because we have c with different versions, so some classes from C 1.1 to C 1.0 Must have to pour. How are such problems resolved? C has been developed backward-compatible so that it is possible on paper. In my case, through the A call b reflection, it is not certain whether it is important or not

javascript - Node.js application quits if other server is unreachable. How do I prevent my application from stopping? -

I am writing an application that regularly checks for a newer version of the software to check with a remote server Is this node My first attempt at JS, please stand with me. When the server is up and running, the program runs perfectly fine. However, when the server is not running, the program ends with an error: events.js: 72 throw er; // Unchecked 'error' event ^ Error: Inonu FUSD Connect on Object Exception (Net JS: 904: 11) [Incomplete form] (NET JS: 895: 19) What I have read, I believe I have set up my code to handle errors by including a response.on ('error', ...) in part of my callback. However, as you can see from the error, it is not giving me the console.logs the error, which I tried to set up. Here's a part of my code that is not working, if I can include other parts when needed, then this is a very large application at this point: var index = Require ("./index"); Var http = Required ('http'); Var FS = Requirement ("F...

upload - SCP files to remote host in JAVA using JCraft's JSch API -

I am able to scrap a file on a remote machine on an existing folder using JSc API but in doing so The folder does not exist on the remote. On each run I will need SCP files in the unique folder whose date format is. Since remote does not exist in the folder .. I lived SCP file transfer failed .. if I make this folder was hoping he does not exist. The SCP works in the existing folder, but I would like to use the SCP file in a newly created folder in JSch API. Help appreciated .. !! I have to create the necessary directories used remote box Jessac channel SFTP & amp; I was able to do this .. now I have the available directory on the remote server & amp; I should be able to file a SCP in that folder ..

HTML5 Audio Play Button Does Not Work in Internet Explorer -

I currently receive the HTML5 audio player play button to work to play back an audio file within Internet Explorer I'm unable to On page load, I have several lines, with audio player to run each file. All these players work and run the relevant file back. On selecting an option on the page, JavaScript is used to change the contents of the page. The layout is the same, but only one row exists (which is similar to one of the first rows). Now while trying to run the audio back, the play button is not responding (it also does not change to stop). Right clicking on player and selecting play works fine. I checked Dome and the audio element looks ok: All of this works fine in Chrome and Firefox. Why the play button can not work or is there any way to work on it? If the audio just does not play then there is a good chance that you can ignore a pop-up below Clicking on the "Unblock" button with "Unblock" button with an "Unblock" button, a...

How to handle errors from third party libraries in PHP -

I have set up my own error handlers which stop application in development and a custom error with the details The page displays whether the error type (Fatal, Warning) etc. And it is very good because I am easily searching all the errors because they do not get output with HTML I am having problems That is, sometimes third-party libraries Errors the error warnings that are not really a problem, because of this, the script stops and displays the error that I do not want to see. For example, I am using a library which depends on Buzz and is throwing this error "file_get_contents (): Content- Type is not specified / form www- urlencoded ". It still works even if it does. Now, whatever I have written, I have nothing to do with it, I do not want to go into it and myself to fix this error myself. Do you have any idea how do I manage these types of scenarios?

ms word - convert .docx to .txt in command line for batch file -

missing links ~ I have a working batch file that takes .txt input. Data is in MS Word and we need to save hundreds of files as '.txt' before manually running the batch file. Commercial converters run from $ 50 to $ 500. . . Appreciate any help!

c++ - Color Geotiff read as Grayscale -

मेरे पास कुछ कोड है जो कि TIFFReadRGBAStrip रूटीन (libtiff पुस्तकालय) )। अधिकांश टीआईएफएस सफलतापूर्वक संभाला जाता है और छवि डेटा अपेक्षित होता है, हालांकि कई फाइलें हैं जो कि grayscale (58 58 58 एफएफ 6 बी 6 बी 6 बी एफएफ ... के रूप में आ रही हैं) ..) भले ही मेरा मानना ​​है कि वे रंग हैं नोट: मैंने उसी फाइल को ग्लोबल मैपर में लोड किया है और यद्यपि एक चौथाई बैंड के बारे में एक संदेश दिखाई देता है जो उन्हें रंग के रूप में प्रदर्शित किया जाता है। कॉन्फ़िगरेशन इन फ़ाइलों का विवरण हैं: TIFFTAG_BITSPERSAMPLE = 8 TIFFTAG_SAMPLESPERPIXEL = 3 TIFFTAG_SAMPLEFORMAT = 1 (SAMPLEFORMAT_UINT) TIFFTAG_PHOTOMETRIC = 1 (PHOTOMETRIC_MINISBLACK) मैंने प्राप्त किया है Libtiff, proj4 और libgeotiff पुस्तकालयों का नवीनतम संस्करण और उन्हें फिर से बनाया लेकिन कोई फायदा नहीं हुआ। इस बारे में कोई सलाह क्यों हो रही है बहुत सराहना की जाएगी।

php - SQL Query to a Column with ID Numbers Separated by Commas? -

स्क्रिप्ट: & lt;? Php शामिल ( "connect.php"); ? & Gt; & Lt;? Php echo "& lt; h1 & gt; हश्टाग: & lt; / h1 & gt;"; अगर (isset ($ _GET ['हैशटैग'])) {गूंज $ _GET ['हैशटैग']; } // "हैशटैग" तालिका से दिए गए हैशटैग की आईडी चुनें। $ Tqs = "चयन` आईडी` से `हैशटैग` है जहां` हैशटैग` = '"। $ _GET ['हैशटैग'] " '"; $ Tqr = mysqli_query ($ dbc, $ tqs) या मर (mysqli_error ($ dbc)); $ पंक्ति = mysqli_fetch_assoc ($ tqr); // यह प्रिंट करता है उदा .: // 100 गूंजती "& lt; br / & gt; & lt; br / & gt;"; print_r ($ पंक्ति [ 'आईडी']); // "थ्रेड" तालिका से धागे का चयन करें जिसमें हैशटैग आईडी नंबर होता है $ Tqs_two = "SELECT * FROM` thread` जहां 'हैशटैग_आईडी` IN (' "। $ Row ['id']।" ') "; $ Tqr_two = mysqli_query ($ dbc, $ tqs_two) या मर (mysqli_error ($ dbc)); $ Row_two = mysqli_fetch_assoc ($ tqr_two); गूंज ...

jquery - How to match id in javascript for dynamically added field on html? -

In our Rail app, the dynamic field can be added to the form. Here is an HTML source code for the dynamically added area order_order_items_attributes_1413563163040_unit_price : As you can see, the field ID has 13 digits string and when randomly joining the field it is randomly generated. How can we match this type of random ID in JavaScript? The app uses jQuery Rail (former, $ ('# order_order_items_attributes_xxxxxxxxxxxx_unit_price'). Changes (function () {}) ). We are new to this CSS type of ID match. More detail will be appreciated. You have to first decide which algorithm you are using to match the ID Values. (This is not precistly specified in your question) Based on your comment, it appears that you find all the IDs that begin with "order_order_items_attributes_" and to find "_ unit_price" Ending with and wanting the sequence of digits between them You can like it to find all the IDs you want and then filter for all those Matche...

java - How to get a reference to SessionAuthenticationStrategy without configuring the strategy explicit? -

In a Spring security 3.2 based application I have been clearly configured Username Password Confirmation Filter , For which reference is needed sessionAuthenticationStrategy ( .onAuthentication to call in order. * sessionAuthenticationStrategy default > & lt; Security: http & gt; ( HttpSecurityBeanDefinitionParser ). My question: How can I get a reference for SessionAuthenticationStrategy complete is without configuring SessionAuthenticationStrategy explicite, so that I inject this Can reference in XML configuration? & lt; Security: http auto-mechanism = "false" use-expression = "true" entry-point-riff = "login url authentication enterpoint" access-decision -manager- ref = "httpAccessDecisionManager" & gt; ... & lt; Security: custom-filter ref = "user name password authentication filter" status = "FORM_LOGIN_FILTER" /> ... & lt; / Security: http & gt; ... & lt; Be...

intersect multi-dimensional arrays in R -

I am interested in hiding many lists of identifiers, the number of overlap between the lists ('RK') vs. ' T ') I have a vague idea that sapply is the way to go but I am still stuck after searching and reading tutorial rk1 edit : I thought that it would be best to group two lists of lists and as a suggestion, / p> F But I am starting an R and really appreciate some guidance on using looping and guidance functionals. But I only look at intersections for RK1 (but not R2, which should be 1 2 3 2) lapply / sapply F & lt; - List (T1, T2, T3, T4) G & lt; - List (rk1, rk2) res & lt; - Use .call (`c`, setNames (lapply (G, function (.y) setNames (sapply (F,` intersect`, .y), paste0 ("t", 1: 4)), paste 0 ("RK", 1: 2))) sapply (res, length) # rk1.t1 rk1.t2 rk1.t3 rk1.t4 rk2.t1 rk2.t2 rk2.t3 rk2.t4 # 3 2 3 2 1 2 3 2 reset $ rk1 .t1 # [[1]] # [1] "YH_sensitive_933" # [[2]] # [1] "CS_sensitive_1294" # [[3]...

windows store apps - Can the Path assigned a SQLite DB be an arbitrary value? -

In order to add an on-line method to the app, given some prerequisite code to start using SQLite in Windows Store apps Goes Xaml.cs: // Get a reference to the SQLite database. DBPath = Path. Cobain (Windows.Storage.ApplicationData.Current.LocalFolder.Path, "customers.sqlite"); My question is, can I use any arbitrary value to change the "customers.sqlite" section or do something else in my code, such as my Name of the table definition category (In my case "Photocardia CCS", which according to the suggestion of Mr. Green, I added under a newly created "Model" folder)? I understand, once I got those classes defined (I), and the above code in App.xaml.cs, with it (optimized for my SQLite classes): (var db = new SQLite.SQLiteConnection (This.DBPath)) {// Create tables if they do not exist db.CreateTable & lt; PhotraxBaseData & gt; (); Db.CreateTable & LT; PhotraxNames & gt; (); Db.CreateTable & LT; PhotraxQueries ...

XML DOM Hierarchy -

निम्नलिखित XML फ़ाइल पर विचार करें: & lt; कर्मचारी & gt; & LT; कर्मचारी & gt; & LT; firstName & gt; जॉन & lt; / firstName & gt; & LT; lastName & gt; स्मिथ & lt; / lastName & gt; & LT; एसएसएन & gt; 123456789 & lt; / एसएसएन & gt; & Lt; / कर्मचारी & gt; & Lt; / कर्मचारियों & gt; एक्सएमएल की डोम पदानुक्रम क्या है? कर्मचारियों का पहला बच्चा क्या है? क्या यह रिक्त है (पाठ नोड) या कर्मचारी? बस स्पष्ट होना चाहते हैं: भले ही टैग्स के बीच कोई पाठ न हो, क्या यह अभी भी नोड मान के साथ पाठ नोड के रूप में माना जाता है?

matlab - Simulink: Selected signal originates from an unconnected source -

I have an annoyance rather than a big problem, which I would like to settle. I have a subsystem that creates a bus in it and outputs it through a scope, just from the creation tags, which depends on the signals from the other components. Now, when I do not have those components, I get some such warning: / P> WARNING: In the unmarked / pressure / bus selector, the selected signal ' It seems that the diagnostic panel (connectivity sub-panel or the other) appears on the 'Compressor' input port 1 at the 'Unsmitted / Output Data / Bus Creator 12' Otherwise) there is no way to close it. It seems that this was a bug in older versions of too many , but according to these links, R13 was fixed: , I am using 2013, after a full 12 years, does anyone have more information about closing this warning?

ruby on rails - Undefined method `each' for :users:Symbol thrown when using variables passed by render function -

It seems that more and more people are suggesting that in order to actually use the example variable in the controller There is a bad idea. That you should only send the variables to the render in the scene. But when I do this for example: DIF index user = user All render 'index', user: user end then I am unable to use the : users symbol in index view and for example, I repeat it . It throws an error: Undefined method for each: User: Symbol 'for me. Is it also a good idea to try to do this? I thought I would try it and see how it would work. But still I can not get it to work ... user Your view will have a variable, not a symbol To iterate it, you should replace users.each instead of : users.each Have to call.

c# - Windows Login Prompt When Accessing Site -

There is a Windows login when accessing a site with a host other than the localhost on IIS. For example, http: // localhost / mysite - http: // ipaddresss / mysite - login prompt if I enable anonymous access in the IIS settings for web applications I am prompted to remove the prompt and I can use the site properly. I also have Windows authentication enabled. I want to be able to disable anonymous access without getting Windows login. Windows IIS 7.5 Windows Server 2008 R2 ASP.NET 4.5 MVC Web App It is not related to the browser. I get a behavior that is IE or Firefox. This is an Internet setting that can be changed in IE or Control Panel Internet Options -> Security -> Local intranet -> Sites - Creating your site / domain in the list IE is pointing to Windows credentials if it is not in intranet zone or intranet sites Not in the list. Add the site to your intranet zone list for automatic login

unknown type name in objective c -

I'm new to objective C and for some basic problems. I have written a simple program using a Navigator, and everything worked fine, then I've added some lines of code (can not even remember what it really is, and with this problem No relation) and there has been a problem. I tried ctrl + z, and the problem persisted: I run the program and I get these errors: 1 unknown type of name "main controller "2. The object must be of type object with 'maintain (or strong)' attribute While the main controller is the first screen to load. This app is the Delegate.h file: #import & lt; UIKit / UIKit.h & gt; #import "mainController.h" #import "WishList.h" #import "Wish.h" @interface AppDelegate: UIResponder & lt; UIApplicationDelegate & gt; @protecti (strong, non-fixed) UIWindow * window; @ Property (strong, non-monotic) IBOutlet UINavigationController * navController; @protecti (strong, non-fixed) IBOutlet main...

gawk - awk: Print line numbers seperated by comma -

awk 'के लिए (i = 1; i & lt; = nf; i ++) {gsub (/ [^ [: अल्नाम:]] /, ""); प्रिंट टूलावर ($ i) ":" एनआर | "Sort-V | uniq";}} 'input.txt ऊपर कोड के साथ, मुझे आउटपुट मिलता है: line1: 2 line1: 3 लाइन 1: 5 लाइन 2: 1 पंक्ति 2: 2 लाइन 3: 10 मुझे इसे नीचे पसंद करना है: line1: 2, 3, 5 line2: 1, 2 लिन 23: 10 इसे कैसे प्राप्त करें? उपयोग करें गोक की एक बार जब मैं इसे हैक कर देता हूं तो मैं वास्तविक कोड प्रदान करूंगा। awk '{for (i = 1; i & lt; = nf; i ++) {gsub (/ [^ [: alnum:] ] /, ""); एआरआर [एरो [एक्स], 1, लम्बाई (एआरआर [एरो] [एरो [एक्स], एआर [टोलर ($ आई)] = एआरआर [टोलवर ($ i)] एनआर ","}} x]) - 2); }} 'Input.txt |

assembly - How come my matrix is not appearing properly in the registers? -

I am working on some code for adding and subtracting metrics and replacing them in a new matrix. With this I keep them in the registers and there are value-added values ​​in MaMatrix 3, while the mamatics 4 is the deductible value. This program only works partially now and I do not understand why, why? This is my code .device ATmega2560; This program adds two matrix of 5x5 size; First we start the matrix (matrix 1 and matrix 2) and then store results in the matrix, first take a point on matrix 1 and place it in the register x: R27: R26 ldi R26, less (matrix 1); Find LDi R27, low order byte of high (mammatrix 1); Find LTE R16, 50 high order bytes; Matrix 1 LDI R17, 25 Early value; To get started, the number of values ​​is matrix size 2x2, such as for loop in C (as R17> 0) as a loop: st X +, r16; Inc. R16; Next value for starting DRR 17; Subtraction count R17 breq nextinit; The first matrix started on the next RJMP loop; Now start the next matrix: LDI R26, less (matrix 2); Ob...

arrays - Calculating length of sub strings of consecutive characters MIPS -

I am writing a program using MIP which takes an input string from the user and is the longest substrings of the same character continuously Does. My problem is that the program reaches 'end' before the 'target' string is out. Any help is appreciated! main: La $ a0, input_ms g # user li $ v0.4 syscall li $ v0, 8 input warning, memory la $ a0, input_string li $ a1, 100 syscall li $ t0 , 0a $ t1, input_string # First element address of lb $ a0, ($ t1) # input_string [0] (first letter) $ s0, $ a0 # current_char = read_char moves (); Transfer $ S1, $ a0 # previous_char = input_string [0]; Transfer to $ S2, $ a0 # last_char = input_string [0]; Li $ s3, 1 # current_num_chars = 1; Li $ s4, 1 # last_name_kar = 1; La $ T5, New_Lin Loop: ADI $ T, $ T, For # 1 (K = 1; K = last_name_kar) {move $ s1, $ s0 j loop # else do not grow anything _final: move $ s2, $ s0 # final_char = current_char; Transfer to $ S4, $ s3 # last_name_chairs = current_name_flare; Move $ S1, $ s0 j Loo...

Java - calling a void function without semicolons (;) -

I want to call the function without using semicolons, is it possible? Ex: minus myFunction () {} I want to call it without using a semicolon. If the function can write something else than zero if (myfunction ()! = Null) {} I How can I do something with zero function? If you use a zero method without using a semi-colon If you need to be called, then you can use reflection and instead / * 1 * / myObject.myMethod (); / * 2 * / myObject.myMethod (arg0, arg1); // myMethod (type1 arg0, type2 arg1) You can write // if (myObject.getClass (). GetDeclaredMethod ( "MyMethod"). Invoke myObject == faucet {}} hold (exception e) {try} 2 try {if (myObject.getClass (). GetDeclaredMethod ("myMethod", Type1.class, Type2.class) Call (MyObject, arg0, arg1) to invoke == faucet) {}} hold (exception e) {}

c - No such process - ptrace -

समस्या बयान : एक प्रोग्राम सी एक लूप से बना है इस कार्यक्रम का निष्पादन अन्य प्रक्रियाओं द्वारा नियंत्रित किया जाना चाहिए जो समय-समय पर नियंत्रित प्रक्रिया की प्रगति प्रदर्शित करेगा। kill (pid, SIGSTOP) के बाद, फ़ंक्शन ptrace (PTRACE_PEEKTEXT, pid, ...) अब C प्रक्रिया नहीं मिलती है pid द्वारा पहचाने जाने वाली प्रक्रिया को रोक दिया गया है जब मैंने पढ़ा है, ptrace (PTRACE_PEEKTEXT, pid, ... ) से काम करना है। मुझे नहीं पता कि मुझे क्या याद आ रही है, इसलिए किसी भी मदद की सराहना की जाएगी। नीचे मैंने बहुत कुछ किया है: दो प्रक्रियाएं हैं, पी और सी पहली प्रक्रिया (पी) फोर्क () के माध्यम से दूसरा (सी) बनाता है सी का कोड ऐसा है: int i = 0; Int main () {ptrace (PTRACE_TRACEME, 0, NULL, NULL); Printf ("मेमोरी पता =% p", (शून्य *) & amp; i); जबकि (1) {i ++;}} पी का कोड नीचे है: {...} स्विच (pid = fork ()) {case 0: / * बच्चे * / अगर (execl ("सी", "", (चार *) NULL) == -1) {दर्पण ("execl"); } टूटना; मामले -1: / * ...

jquery mobile - phonegap cordova menu grid -

I am developing a mobile app using PhoneGrap / Cordova. I want my main menu to be a set of icons with a short text below, combine all the grid layouts (for example 2 lines x 3 columns). I am also using jquerymobile for my "page" I have a fixed "header" and "footer" area and "content" is currently: gt; & Lt; Img src = "./img / menu1.png" & gt; & Lt; / P & gt; & Lt; H2 & gt; OPT1 & lt; / H2 & gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "ui-block-b" & gt; & Lt; Div class = "ui-bar ui-bar-a" & gt; & Lt; A href = "#"> gt; & Lt; Img src = "./img / menu2.png" & gt; & Lt; / P & gt; & Lt; H2 & gt; OPT2 & lt; / H2 & gt; & Lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "ui-block-c" & gt; & Lt; Di...

c++ - Is it OK to call std::async at high frequency? -

I have a small program that says that using std :: async for parallelism And it's crashing on me I'm pretty sure there are better ways to do this, but I just want to know what's going on here. I am not posting the exact code because I do not think it actually makes a difference. It basically looks something like this: while (1) {std :: vector & lt; Things & gt; Things (256); Auto update_th_things = [& amp; (Integer start, int end) {// some code}; Auto handle1 = std :: async (std :: launch :: async, update_the_things, 0, things.size () / 4); Auto handle2 = std :: async (std :: launch :: async, update_the_things, things.size () / 4, things size () / 4 * 2); Auto handle3 = std :: async (std :: launch :: async, update_the_things, things.size) / 4 * 2, things. Size () / 4 * 3); Update_the_things (things.size () / 4 * 3, things.size ()); Handle1.get (); Handle2.get (); Handle3.get (); } This loop runs several thousand times per second and crashes after ran...

c++ - Visual Studio 2013 export Property Sheets to Template -

I am creating a C ++ project template and using the Export Template Wizard to do this. I had added a custom property sheet to my template project (which is going to export) to prepare a new project using the template to successfully export my project template, but the project failed to say it That this property sheet can not be found (this project mentions the directory directory and says that such a file does not exist). I know that the same question has been asked before: but it does not have any answer for one year Before exporting, I also have property sheet as part of the project. Try to include the same error still Please help! Edit: I also tried to manually put the .props file in the zip archive, it still shows the same error, I think the new project. The props file is loaded in before the new project is added to the directory. Note: Manually. Insert the project file into the new project directory and then reload the project tasks. But every time I create a new p...