Posts

Showing posts from January, 2012

javascript - while vs setInterval -

The following are the following arrays to monitor widgets initiated by the app I'm working on: < / Selector: ".otherother", init: function () {...} }] Each init function is using a plugin This selector is called "readyWidgets" (for example ".table") push another array for a plugin its functions On completion, The question now is: Can I tell in one go all the nested nested under the primary widgets array are present in the Witts array? I'm going to have a blackout, though I have a solution, I think I'm missing a better one. This is what came with me: init: function () {// it will keep each widget selector and see it in the readywidth array later in the widgetsPending = [] // widgets array // (only if the selector matches at least one element) start this widget in each widget ($ widget.selector) in this.widgets.forEach (function (widget) .length & amp; ; WidgetsPending.Pink (widget.selector) & amp; Widget.init ()}, th

javascript - Click events on Pie Charts in Chart.js -

I got a question question chart. I have prepared many recommendations using the documentation provided. I was thinking that on click of any one of the pieces, I can call an AJAX call based on the value of that slice. ? For example, if this is my data var data = [[value: 300, color: "# F7464A", highlight : "Green"}, {value: 100, color: "#FDB 45C", "# 5F5A5E", label: "red"}, {value: 50, color: "# 46BFBD", highlight: "# 5AD3D1 "Highlight:" # FFC 870 ", label:" yellow "}, Is it possible to click on the label of Red and Call the URL below: example.com?label=red&value=300 ? If so, how do I know about this? Update: Like @ Soham Shetty comment, getSegmentsAtEvent (event ) only works for 1.x and should be used for 2.x. .getElementsAtEvent (e) is looking for an element under the event point, then returns all the elements on the same data index. It is internally used fo

c# - Place popup above taskbar WPF? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 5 जवाब मैं एक पॉपअप प्राप्त करने का प्रयास कर रहा हूं मुख्य विंडो स्थिति की परवाह किए बिना हमेशा टास्कबार के ऊपर प्रकट होने के लिए हम इसे प्राप्त करने के लिए WPF में क्या कर सकते हैं? मैं हमेशा विंडोज़ टास्कबार से ऊपर दिखाई देने के लिए एक WPF पॉपअप कैसे प्राप्त करूं? धन्यवाद! फ़ॉर्म लोड इवेंट में परिवर्तन की तरह होता है। int screenWidth = Screen .प्रकाशिक। वर्किंगएरिया। हाइट- (आपके फ़ॉर्म पॉपअप की चौड़ाई); पूर्ण स्क्रीनहाइट = स्क्रीन। प्रीमीरीस्क्रीन .WorkingArea.Width- (आपके फ़ॉर्म पॉपअप की ऊंचाई); यह स्थान = नया बिंदु (स्क्रीनव्यूथ, स्क्रीनहाइट);

angularjs - Set ng select dropdown model to null when model does not exist in ng-options -

Assume that I define the following drop down in the UI: & lt ; Ng-model = "selected item" ng-options = "items as items. Item items from item items to item.id" & gt; & Lt; Option value = "" & gt; Please select ... & lt; / Options & gt; & Lt; / Select & gt; $ scope.items = [{name: 'item1', id: 0}, {name: 'item2 ', Id: 1}]; $ Scope.selectedItem; If I set the $ scope.selectedItem or the item is present in the value then the item is present in the array {name: 'item1', Id: 1} then angular preselects 'item1' which is in line with expectation. But if I have a bogus item that does not exist in the item array like $ scope.selectedItem = {name: 'item 6', id: 6} then angle preselects 'Please select ...' which is expected in the UI, but the model still remains {name: 'item 6', id: 6} . For example, with a bogus item, model {name: 'item 6', id: 6

javascript - How do I implement `$locationProvider.html5Mode(true); -

What I do not understand is $ locationProvider.html5Mode (true); Delete your hash URL? Although this is just fixing the home page for me when you refresh the page it is not that what should redirectTo: handle? var rustyApp = angular.module ('rustyApp', ['ngRoute', 'viewController', 'mm .foundation', 'angular flexslider', 'ui.router'], function $ routeProvider, $ locationProvider) {$ routeProvider.when ('/', {templateUrl: '/partials/home.html', Controller: 'Home Controller'}); // When you enter / Also provides $ route provider as well as / home /. When ('/ work', {templateUrl: '/partials/work.html', controller: 'work controller'}); $ routeProvider.when ( '/ Contact', {templateUrl: '/partials/contact.html', Controller: 'ContactController'}); $ routeProvider.otherwise ($ redirectTo: '/'}); $ locationProvider.html5Mode (true) .hashPrefix (' ! ')

c++ - Where is cvarrToMat declared? -

Seriously, which header do I need to include?! Why is it so difficult to mention the header? This will be the worst library. It is in core.hpp and cv :: namespace

dbpedia - What SPARQL term can I use to reference a Wikipedia category -

I am trying to remove a list of articles from a specific category in Wikipedia. I am trying to complete it through DBPDA, however, I can not actually get specific 'word' or 'field' for a 'category' reference, where is this document? DBpedia documentation has a link to the following section, but I do not see any relevant 'fields' or 'words' for the category. Use DCTR: Topic While working with DBPDA, first Browse some data and write inquiries. For example, in this case, you can see that you see that this DCTRM: topic belongs to the four categories of property: Category: Landforms_of_Cheshire_County, _New_Hampshire Category: Monadnocks Category: Mountains_of_New_Hampshire Category: National_ Natural_Landmarks_in_New_Hampshire If you look at those points, then You will see the correct URI, e.g. , http://dbpedia.org/resource/Category:Mountains_of_New_Hampshire Now, if you are looking at the web interface, you can see t

xml - XSLT 3.0 partial streaming (Saxon) -

I have a big XML file with this type of tree (6 GB): < code> & lt; Report & gt; & Lt; Document & gt; & Lt; documentType & gt; E & lt; / documentType & gt; & Lt; Person & gt; & Lt; firstname & gt; John & lt; / firstname & gt; & Lt; Lastname & gt; Smith & lt; / lastname & gt; & Lt; / Person & gt; & Lt; / Documents & gt; & Lt; Document & gt; [...] & lt; / Documents & gt; & Lt; Document & gt; [...] & lt; / Documents & gt; [... there are so many documents] & lt; / Report & gt; So I used the new XSLT 3.0 streaming feature, with Saxon 9.6EE I do not want to decrease the streaming once in the document. This is the reason why I tried to use the copy-of () I think, what I want to do is "bust Mode "which is described here: Here is my XSLT style sheet: & Lt; Xsl: template match = "/" & gt; Global Header & lt; Xsl: eac

c# - Validate ICD-10-CM -

Is there a verification (regepix or otherwise) written for an ICD-10-CM? I am not interested in trivial solutions (3-7 alphanumeric), I would like to know how the 7th digit requirement was settled. I did not write a regular expression for ICD-10C but I have written a lookup engine . You can search the database for parsing and code in a SQL database (if no results are found, the code is invalid). Unfortunately, I can not post my code here due to various NDAs, but it should be trivial to do so. The advantage is that you will only get valid codes (and not the codes that look like "ICD-10-C" but are invalid, as you would with regex). Alternatively (and I do not recommend this) you can search full text on the XML file at the top of a simple regular expression, but it will be buggy (from experience).

web - Real Time Understanding -

What does real-time mean? According to my understanding, real-time live data is for updating but in this case I am confused with an e-commerce site. What do I do, I update things in the admin panel and the user panel (actual site) is updated. So is it also real time? Please explain my understanding here. Kind regards, : Real time is a set of web technologies and practices that enables users to get information as soon as it is published by their authors, rather than requiring them to update their software updates from time to time Check the source. According to this definition of real-time in web technologies, the reply of fmodos is acceptable. Is any technical solution acceptable, without the need of interaction of any user with the content: Ajax-methods, push-methods, timer / loop-methods are also valid options in your case Represent.

javascript - Data not rendering -

I have a website that displays data in the list, which is filtered when applied to a filter , Then I want him to be added to the URL as a parameter. I wrote a service for: app.factory ('urlfilter', ['$ location', function ($ location) {var urlParams = $ location.search (); Return function ($ Scope, myUrlParams) {angular.forEach (myUrlParams, Function (Ultimate) {$ Scope (param) = isset (urlParams [Ultimate])? UrlParams [Param]: 0; $ scope. $ Watch (Ultimate, Work ) {If (isset (value)) {$ location.search (param, value)}}}}}}}}}}}])); urlFilter is called in the last controller: urlFilter ($ radius, ['company_id']); I get a resource in the controller and set the company_id on the clock to update company_id using a dropdown is. Whenever company_id is updated, I refresh the resource: $ scope. $ Watch ('company_id', function (company id) {if (! Isset (companyId)) {return;} Api.resource.query ({company_id: companyId}, function (data)

ios - Bad Access/Pointer Issue in Objective-C -

I've got the following bit code: byte * tokenaut = null; For (int i = 0; i & lt; saiff (takenout); i ++) {tokenaut [i * 2] = (tknt [i]> gt; 8); Tokenout [[i * 2] + 1] = (tunout [i] and 0x ff); } But when I try to update tokenout, it generates an EXC_BAD_ACCESS error when it runs I would be happy that someone can tell me what I am doing! Thank you! Trying You are dereferencing a zero pointer whatever byte; Byte * Out Token = & whatever; // do the rest. Now there is a valid memory for you to type. Except that you still have problems because you will write at the end of your variable. So maybe you wanted an array? sizeof (outTkn) will return 1 (1 byte)

jsonschema - Writing JSON schema to detect objects with duplicate names -

निम्न पोस्ट के अनुसार; उसी नाम के साथ कुंजी JSON मान्य है, लेकिन अधिकांश पार्सर्स उस मान को अंतिम मूल्य के साथ ओवरराइड करेंगे जो इसे पाता है। क्या किसी भी तरह से एक JSON स्कीमा में डुप्लिकेट नाम का पता लगाने और एक त्रुटि फेंकने के लिए? मैं चाहता हूं कि सभी जेसन कुंजियों को एक वस्तु में अद्वितीय नाम मिलें। जेसन-स्कीमा वैध JSON ऑब्जेक्ट्स के साथ काम करती है , इसलिए डुप्लिकेट कुंजी को रोकने के लिए ऐसा कुछ नहीं है। मैं आपको JSON-schema validator के साथ मान्य करने से पहले एक जेसनलाइन को पूर्वप्रक्रिया के रूप में उपयोग करने का सुझाव देता हूं। यह आपकी प्रोग्रामिंग भाषा पर निर्भर करेगा लेकिन यहां आपके पास कुछ विकल्प हैं: ।

c# - Null Reference exception on an array within struct array -

इस सवाल का पहले से ही एक उत्तर है: < / p> 2 9 उत्तर मुझे एक नल संदर्भ अपवाद प्राप्त होता है पर आकृतियाँ [0]। डैमिफ़ोफ़ आकृति [0] = 7; क्या मुझे किसी दूसरे प्रारंभिककरण की आवश्यकता है? सार्वजनिक संरचना TestArrayStruct {public int [] DamageofShape; } कक्षा कार्यक्रम {स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {TestArrayStruct [] आकृतियों = नए टेस्टअरेरेस्ट्रक्ट [5]; आकार [0] .DamageofShape [0] = 7; }} आपको आरंभ करने की आवश्यकता है आकृतियाँ [0] .DamageofShape 1 , जिसका मान है null डिफ़ॉल्ट रूप से: आकृतियाँ [0] .DamageofShape = new int [4]; आप इसे कन्स्ट्रक्टर में भी कर सकते हैं: सार्वजनिक संरचना TestArrayStruct {public int [] DamageofShape; सार्वजनिक टेस्टअरेरेस्ट्रेटस्ट्रैक्ट (इंट साइज़) {this.DamageofShape = नया इंट [आकार]; }} हालांकि, तब आप होगा को अपने स्ट्रेट को इसके लाभ लेने के लिए कन्स्ट्रक्टर के साथ इन्स्तांत करना होगा: आकृतियाँ [0] = नया परीक्षणअरेरेस्ट्रक्ट (4); आकार [0] .DamageofShape [0] = 7; पिछले संस्करण में यदि गल

python - Edit an account in Sugarcrm -

I am having trouble uploading a file, SugarRM from a form I am using, which states that the following code should update an account: # 2 - Update an existing entry gcrm_conn = any Do not try: print "can not connect to": sugarcrm_conn = sugarcrm.Sugarcrm (url = sugarcrm_url, username = sugarcrm_user, password = sugarcrm_pass) Print "are connected to sugar through the rest" except "ValueError" + sugarcrm_url exit ( 1) accounts = sugarcrm_conn.module ('Accounts') # We show the first ten of them. [= 10]: account.setValue (['shipping_address_postalcode', 'email'], ['4144', 'test@gmail.com']) for account in accounts I think I get an error: Sugarcrm For example, there is no attribute 'module' for line There is no attribute in the example of sugar 'module' Am I missing something? To make it clear, I can connect Sugarcrm and add an account, I can also show them. [code] []: [print] &

matlab - License error manager-4 -

How to solve this error? Whenever I'm using 'SIMs', this error indicates: - "Error in using SIM License checkout failed. License Manager error -4 for the maximum number of symbols for users The number has reached. Try again later.Use current users lmstat utility or contact your licensing administrator. Troubleshoot the issue on this issue: Diagnostic Notification Attribute: Feature: Symbolic_Toolbox license path: C: \ users \ hp \ AppData \ roaming \ MathWorks \ MATLAB \ R2013b_licenses; C: \ MATLAB \ license \ lic.dat; C: \ MATLAB \ license \ network.lic Licensing Error: - 4,132. "Any solution? This means that you are using a concurrent (network) license of MATLAB, possibly university campus , And your license contains several "seats" of MATLAB and its associated toolboxes, which allow people to code N on the network using MATLAB, and say that M People using the Signal Toolbox (usually M & lt; n ) when you use the Signal Toolbox

asp.net mvc - ASP MVC - How use two models in one single view -

Image
I have a web page that has two functions 1) Add new products 2) Display existing products in a table (See image below) I have two classes for showing current details and saving new product for each of the above work Public category VMProduct {Public list> Products & gt; Product List {Received; Set; }} Public class product {public string ProductID {get; Set; } Public string product name {get; Set; } Public string Uom1 {get; Set; } Public string Uom2 {get; Set; } Public String ProductCategoryID {Receive; Set; }} My problem is that I can display data using the VMProduct.ProductList model but how can I save new product items using the "product" model? How do I use both models in a sequence? If I use the properties of the "product" model in the VMProduct model then this duplication code is correct? Can anyone have any solution for this? Thanks in advance It seems that VMProduct is already a custom view Model I'm mostly guessing by its

Nginx unable to find libpcre.so.0 after install from source -

I am creating nginx from source at Ubuntu 14.04, but after construction, when I run NGN, Error: / etc / nginx / sbin / nginx: error while loading the shared library: libpcre.so.0: can not open the shared object file: no such file or directory < / Code> The reason for this is probably possible because it is called libpcre.so.3. Is there a package that I can install for lippipers? Can I configure nginx to use libpcre.so.3 in any way? For additional privileges with custom username and group here, Nginx with OpenSSL and Pcre-8.36 How to compile: ./configure - with-cc-opt = "- $ $ STATICLIBSSL / include -i / usr / include" \ --with-ld-opt = "- L $ STATICLIBSSL / lib -Wl, -rpath -lssl -lcrypto -ldl -lz" \ --sbin-path = / usr / sbin / nginx \ --conf-path = / etc / nginx / nginx.conf \ --pid-path = / var / run / nginx.pid \ --error-log-path = / var / log / nginx / error.log \ --http-log-path = / var / log / nginx / access .log \ --with-pcre = / lib

c# - JSON.Net load a file, modifying it and re-saving it -

I am loading JSON.net to load a JSON file, then I find some "target / keyword" Which I need to remove it and have saved it lastly. So, I have to load the file, search the keyword, delete the section related to this keyword, and save the file with this modification. > I use the last version of JSON.Net Any ideas? Here is my input: 1) File name 2) Keywords, for example: dns_prefetching / host_referral_list I try to modify any type of files like Google Chrome Files, such as:% localappdata% \ Google \ Chrome user data \ default \ priority localappdata% \ Google \ Chrome user data local state thanks Then you can index with a property name and you can use tokens. For example, you can use remove for example: string json = @ "{CPU: 'intel', drive: ['dvd read / author ',' 500 gigabytes of hard drive ']} "; Jobbject o = Job. Purse (jason); Var d = o ["drive"]; Console.WriteLine (d); // Output DVD read / author and

sql - Issue with join and sum in mysql query: invalid use of group function -

मेरे पास यह अपडेट क्वेरी है: खाता अद्यतन INNER c1 पर शामिल करें c1.user = Account.u_id SET account.amount = account.amount + sum (c1.total_1) जहां t_ype = 8 लेकिन यह समूह समारोह का अमान्य उपयोग देता है ... मेरी गलती कहाँ है? < / p> आपको जुड़ना से पहले एकत्रीकरण करने की आवश्यकता है: < प्री> खाता अद्यतन करें INNER (चयन करें c1.user, sum (c1.total_1) के रूप में सी 1 ग्रुप से c1.user द्वारा) सी 1 पर c1.user = account.u_id SET account.amount = account.amount + sumc WHERE account.t_ype = 8;

cocoa - Send object instead of proxy via Distributed Objects -

I can not solve the next problem: I have two applications that talk to each other using distributed objects Are there. Suppose the application is a call - (zero) updatestat: (state *) state @ Interface state: NSObact & lt; NSCPing, NSCDing & gt; ... When the updateState: approach in the B app represents the sended object instead of the object I NSDistantObject state I found that if the object corresponds to the NSCoding protocol then the object should be 'sended' instead of the proxy, but I still get a proxy I have not received any information about it Apple Documentation Perhaps someone knows that I'm going to replace the proxy with the object K How can I send and how to send serial distributed object systems and objects and must send proxy how? I got it! In addition, you should implement the - (id) Replacement ObjectFororPortateCoder (NSPortCoder *) coded object, which you can read more information about this method that you want to pass.

imap - What modseq value to cache? -

I am reading, trying to figure out how a customer should behave when he Communicates with the server which is CONDSTORE but QRESYNC not. The case of the initial connection is fairly simple: the client compares its cash modal value to HIGHESTMODSEQ with the select command, and if it is low , Then the customer can receive any change with FETCH + CHANGEDSINCE or SEARCH + MODSEQ . After doing this, the HIGHESTMODSEQ value for the client mailbox can store its new cash modal value. However, if the customer receives an unwanted FETCH , responses when selecting a mailbox, does it contain any reliable findings from the MODSEQ attributes in these updates Can it be removed? Will it be safe to cache the highest seen MODSEQ value, or does the client take the risk of missing an update in the mailbox state to do so? This is difficult. The question probably refers to a language in RFC 716, which explains that HIGHESTMODSEQ and MODSEQ are two different animals, an

vim - What does this symbol mean (similiar to ^@) in the context of text editing? -

Unfortunately, I can not post any picture due to lack of my reputation but it looks like "^ @" . For some context, I have a script that goes through the list of names to generate configuration files. I run an executable with those configurations and if it does not run, the script will proceed to the next name and erase the contents of the previous configuration. However, if execution runs, then the script runs on the next name and will be attached to the existing configuration. The problem is that when the first repetition is erased, it leaves behind a symbol that will fight with subsequent iterations. What does this symbol mean? much appreciated. This does not look like "^ @", it is " ^ @ ". ^ represents a control character; For example, by typing ^ X control X control - @ , blank characters on more keyboards can be entered. See a table of ASCII code Control key, in many cases, modifies a character by subtracting 64 from its ASCII v

If in Python I put a list inside a tuple, can I safely change the contents of that list? -

इस सवाल का पहले से ही एक उत्तर है: < / P> 8 जवाब टपल के अंदर का मान है बस एक सूची के लिए एक संदर्भ है, और अगर मैं सूची में मूल्यों को बदलने के लिए सब कुछ क्रम में अभी भी है, है ना? मुझे यह सुनिश्चित करना है कि यदि मैं ऐसा करता हूं तो मैं भ्रमित त्रुटियों में चलना शुरू नहीं करूंगा। ट्यूपल्स अपरिवर्तनीय हैं, आप उनकी सामग्री नहीं बदल सकते हैं। एक सूची के साथ & gt; & gt; & gt; X = [1,2,3]> gt; & gt; & gt; X [0] = 5>> gt; & gt; एक्स [5, 2, 3] एक ट्यूपल के साथ > gt; & gt; Y = ट्यूपल ([1,2,3])> gt; & gt; & gt; Y (1, 2, 3) & gt; & gt; & gt; वाई [0] = 5 # अनुमति नहीं है! ट्रेसबैक (सबसे हाल का कॉल अंतिम): फ़ाइल "& lt; pyshell # 20" gt; लाइन 1, & lt; मॉड्यूल & gt; Y [0] = 5 प्रकार त्रुटि: 'ट्यूपल' ऑब्जेक्ट आइटम असाइनमेंट का समर्थन नहीं करता लेकिन अगर मैं आपका प्रश्न समझता हूं, तो कहें कि आपके पास & gt; & gt; & gt; A = [1,2,3]> gt; & gt; & gt;

php - Can't redirect with .htaccess -

At the end of my rope, whatever should not be done. I am new to building the website and I saw that my visitors were trying to reach some pages and get prohibited warnings, like: www.test.com/test 403 returns the error. What I have to do is to do this: Www.test.com/test will redirect it to a test.html file in a directory above it. Tried to do this with .htaccess in the root directory Redirect / test www.test.com/test.html does not work just gives me 403 error. Tried to redirect a simple index.html file without any But this does not work either. In fact, it is not certain that due to these two the work has been refused. The header parameter must be wrapped in double quotes. E.g. header ("location: www.test.com/test.html"); Go out(); Also make sure that your file identifies your file extension as a php file, if it does not have a .php file extension, you can httpd.conf Can add custom extensions by editing

Elasticsearch boost score with nested query -

मेरे पास Elasticsearch संस्करण 1.3.4 में निम्न क्वेरी है: {"फ़िल्टर" : {"Bool": {"bool": {"bool": {"bool": {"चाहिए": [{"match_phrase": {"_all": "java"}}, {"bool": { "चाहिए": [{"match_phrase": {"_all": "adobe creative suite"}}}}}]}}, {"bool": {"चाहिए": [{"नेस्टेड": {"path": "" "{": "{" "शब्द": {"skill.name.original": "java"}}, {"bool": {"चाहिए": [ {"मैच": {"skill.source": {"query": "linkedin", "boost": 5}}}, {"match": {"skills.source": {"query": "meetup" "" "" "" "" "" "" "" ")", "Filter": "" और " : ["बूल": {"चाहिए&quo

javascript - How to append in Json String in AngularJS -

तो यह मेरा जेसन स्ट्रिंग है {"method_name": "WSP.CC. GET.CARRIER.INFO "," calling_class ":" com.fwdco.webservice.ScorpeoWebService "," error_code ":" 0 "," contact_info ": [[" नाम "," ईमेल "," फ़ोन "]]} < / कोड> अगर मैं सम्मिलित करना चाहता हूं ["man" "man@yahoo.com" "534534646"] Contact_info में, ताकि अंतिम JSON स्ट्रिंग है: {"method_name": "WSP.CC.GET.CARRIER.INFO", "calling_class": "com.fwdco.webservice.ScorppeWebService "," त्रुटिगोड ":" 0 "," संपर्क_इनफ़ो ": [[" नाम "," ईमेल "," फ़ोन "], [" आदमी "" man@yahoo.com "" 534534646 "]]} मैंने कंटिया और पुश समारोह का उपयोग करने की कोशिश की लेकिन यह काम नहीं करता। इस पर एक कोशिश दो: < var obj = {"method_name": "WSP.CC.GET.CARRIER.IN

swift - How to animate the alpha of a textLabel in UITableView? -

O people, I am trying to change the alpha of the default tax label from a UITWhen when the table is scrolled, But I'm getting this error: Can not fetch 'animated method' with an argument list type (float literal variable, animation: () -> () -> $ T2) ' My code is: Overcrowd Function ScrollVididScroll (Scrollview: Uua EscrollView) {for the table in the cell. VisibleCell () {UIView.animateWithDuration (0.5, Animation: {cell.textLabel? An empty return / code> at the end of closing the statement UIView.animateWithDuration (0.5, animation: {cell.textLabel ???? alpha = 0.0 returns / /> You are using the Compact (Shortcut) Closer version, which has a built-in return. What happens is that your code reads it by the compiler : return cell.text label? .php = 0 0 and it does not match closed signatures, so the compilation error. Adding a return statement makes it clear that the closing value does not have any return value. < / Html&g

asp.net - custom authentication to form authentication -

Currently, my site contains a table in that database that contains the username and password. There are 2 text boxes and login buttons in front end. Once the user fills that two fields and clicks on the login, it checks that the username and password will match in the database, if so, then they should be included in the interactive site Set in the session variable to check through medium. is it safe? How do I change it to create authentication? I do not want to exclude my login table. Can I still use it if I want to change it to certification? Can someone talk to me or show me how this can be done? Thanks The standard login using this is: index.html : & lt; Form action = "login.php" method = "post" & gt; & Lt; Width of table = "100%" range = "0" style = "border-top: 2px solid # ccc; padding-top: 15px;" & Gt; & Lt; TR & gt; & Lt; Td> & Lt; input type = "text" class = "text_b

azure storage blobs - I receive "This request requires buffering data to succeed" exception while CloudBlockBlob.UploadFromStream from a HttpPostedFile -

स्ट्रीम कोड var httpRequest = HttpContext.Current.Request; यदि (httpRequest.Files.Count == 1) {HttpPostedFile फ़ाइल = httpRequest.Files [0]; CloudStorageAccount संग्रहणएकाउंट = CloudStorageAccount.Parse (CloudConfigurationManager.GetSetting (BaseService.BlobConnection)); CloudBlobClient blobClient = storeAccount.CreateCloudBlobClient (); CloudBlobContainer कंटेनर = blobClient.GetContainerReference (documentType.Description); CloudBlockBlob ब्लॉकब्लॉब = कंटेनर। GetBlockBlobReference (fileName); BlockBlob.Properties.ContentType = file.ContentType; blockBlob। अपलोड करेंफ़ोमस्ट्रीम (file.InputStream, file.ContentLength); } मैं पहली बार एक डॉक फाइल है जो केवल 12.3 केबी और एक पीडीएफ 1.47 एमबी है, के साथ परीक्षण करने के लिए दो फाइलों का उपयोग कर रहा हूं। बिना डंप फाइल अपलोड करता है, पीडीएफ है जो त्रुटि उत्पन्न करता है। मुझे केवल दो चीजें मिल रही हैं जो कि क्या हो रहा है यह स्पष्ट करने का प्रयास करती है और मैं वास्तव में उनमें से सिर या पूंछ नहीं बना सकता & Amp; मैं बिना किसी

PHP, Why doesn't anyone use the ?: operator? -

I can not discuss anything about it. In JavaScript to check if something exists, and use default if it is not: var myvariable = mysetting || 3 What I believe in PHP can be done as such: $ myvariable = $ mysetting ?: 3; Am I completely closed on this? I understand the implications of not using isset () and not_empty () and all of these, but if I just want to know that the variable exists and the truth is otherwise the default Uses - It should work. I think there are hidden things about this in this syntax? This code will still notify if it does not work Notice: Undefined Variable: mysetting In C: \ wamp \ www \ x.php line , which can be visible to the user on the basis of PHP settings, apart from this, it will work if the notice is pressed, the final result is correct. So, to move around it, you can either use the isset , which is not actually a function, but a language creation, and especially It is designed to check: $ myvariable = isset ($ mysetting)

Math.Random() Java. Stay Constant -

I am trying to create a program / game where the user has to guess the number 1-100, I know that How to use random classes, but I have to use Math. Random (school project) for this. The issue I am facing is that I can not make the number in more than one estimate. A random number is generated, but it varies on every prediction, it renders null, any help is appreciated Thanks! Import java.awt. *; Import javax.swing. *; Import java.awt.event. *; Public Squared ActionListener {JFrame f; Container C; JPNl P; JTextField x; JLAB title, out; JButton Estimates; Int output, number; Public estimates () {f = new JFrame ("a number estimate!"); F.setSize (230,190); C = f.getContentPane (); P = new zpn (); Title = new JLABEL ("A number estimate (1-10):"); X = new JTextField (10); Estimate = New Payton ("Estimates"); Guess.addActionListener (this); Outside = new JLab (""); p.add (title); p.add (x); p.add (outside); p.add (estimates); c.add (p); f.show ()

sql server - Pass multiple strings and multiple values as parameter -

I have searched for many forums and sites and are unable to find solutions. Maybe I'm not looking for the right thing - but any direction and support will be appreciated! I am trying to join two tables: UserData and ServiceStats . UserData contains the following columns and sample data: Title Application ------------ ------- - ---- Site Manager KB1245; KB3256 FTP_Viewer FTP1536 Service conditions includes the following columns and sample data: ApplicationName vendor ------- -------- ------------ KB1245 Kronos KB3256 Kronos2 FTP1536 File Manager When joining tables, I get the output similar to the following Site Manager KB1245 Chronos Site Manager KB3256 Kronos2 FTP_Viewer FTP1536 File Manager Getting into my problem Title code for ApplicationNames A. When you read and identify. Then - appreciate any help and guidance. I can slow down the OP as developers, the ideal decision we made by other people The OP should have to deal with less than wha

How to efficiently use Batch writes to cassandra using datastax java driver? -

I need to write in the bass in the cassandra using the datestacks java driver and this is my first time, i databstack I'm trying to use Java driver, so I'm having some confusion - Below is my code in which I am trying to create a statement object and add it to the batch, as well as the form of a quorum Establish compatibility level in I do. session session = null; Cluster cluster = null; // Here we build Cluster and Session object and we also use DowngradingConsistencyRetryPolicy // cluster = builder.withSocketOptions (socketOpts) .withRetryPolicy (DowngradingConsistencyRetryPolicy.INSTANCE) Public Zero insertMetadata (List & quot; ListAdress & lt; List & quot; listAddress) {/ What is the purpose of unlog batch here? Batch batch = QueryBuilder.unloggedBatch (); . {Try, {insert statement} = insertInto ("test_table") value (New String [] {"address", "name" "LAST_MODIFIED_DATE", "client_id"}, new object [] {dat

javascript - Automatically bootstrap Angular app injected into web app -

I want to use angular within an existing non-kernel webpage, the app is injected into the page and a special device I want to bind in Since the app may need several corner apps to be bound to the various legends (showing and hiding as needed), it seems that I can not use NGP and manual bootstrapping should be done. However, it needs to do something ugly as below, where I have to define a booststop function, which I call from the app I inject the Conakrer app. Is there any way to avoid calling DoBootstrap in this scenario? I basically want to start the injection and app automatically. This does not happen on initial load, hence the document. Style solutions are not an option. Also, it would be great to avoid defining the NG-controller on the div, but it is a low problem. angular.module ('TestApp', []). Controller ('TestAppController', ['$ scope', function ($ scope) {document.getElementById ('myDiv'). InnerText = 'test';}]); Var doBootstrap

javascript - Slide div in from right -

मेरे पास मेरे Shopify थीम में निम्न कोड है & lt; स्क्रिप्ट भाषा = "जावास्क्रिप्ट" & gt; फ़ंक्शन सेट विस्जिबिलिटी (आईडी) {यदि (document.getElementById ('एस्ट्रोजेन')। Value == 'लेजर छिपाएं') {document.getElementById ('opensign')। Value = 'show layer'; document.getElementById (आईडी) .style.display = 'none'; } और {document.getElementById ('एस्तेसिन')। value = 'छिपाएँ परत'; document.getElementById (आईडी) .style.display = 'inline'; }} & lt; / script & gt; क्या मैं जोड़ सकता हूँ ताकि बॉक्स ठीक से खिसक गए? बॉक्स के लिए कोड नीचे दिया गया है: & lt; a href = "#" id = "ओवरसिन" onclick = "सेट विसबिलिबिलिटी ('साइन');"; & gt; साइन इन करें & lt; / a & gt; & lt; div id = "sign" & gt; Blaslasd। & Lt; / div & gt; आप छिपाने के लिए एक सीएसएस वर्ग का उपयोग कर सकते हैं, जिसे आरंभ से जोड़ना चाहिए: । छोड़ें {बाएं: 100%; अ

Unable to create bucket using domain name under google cloud storage - Server Error -

I am unable to create a domain name bucket under Google Cloud Storage. I get this error message: Server Error Whoops! Please try our bad again. If the problem persists, please let us know by using the "Send Feedback" link below. Copy down the tracking number, and include it with your feedback Thank you! Tracking Number: Undefined Any ideas? I tried to enter any other domain name, if it was specific to my domain and I continue the same message. Most likely this problem is related to domain verification. This is a Google bug that lets you open Chrome Developer Tools Must provide JSON responses and some useful information that should be seen.

c# - How to find a programatically created button by text? -

So my program is creating a set of buttons like this: foreach (Var in subdir dir.GetDirectories ()) {var path = subdir.Name; Var button = new button {text = getFlavor (path) + "\ t (" + path + "), width = width, height = 35, top = y}; Click button + click the button; Controls.Add (Button); if (i.Text.Contains ("kittens") i ++;} I want to do something like this { [Button] button ("kitten"]. Click here;} "This continuation" is not the actual way. How do I get the references to the buttons I created according to the program Do you? You can use the OfType & lt; button & gt; to find all the buttons in the Tanner Control, where you have added them (a panel ). The Little Bit LINQ Power gives you the right button: var kittenButtons = panel.Controls.OfType & gt; button & gt; (). Where (BTN => BTN test. ("Kittens"); foreach (button kitten buttons in BTN) BTN. PerformClick (); If you just want t

osx - Eclipse (Mac) external tool not running commands in terminal -

I am the only front-facing developer in a company where engineers use Eclipse for all things. I have a great build build tool to set up front-end code, and I'm fine by using commandline + text editor. However, I am trying to find a way for other developers to be able to create and deploy the front-end code locally through eclipse. How do I use Eclipse for Windows? However, in other developers, Linux or Mac is excelps trying to mix another deal with the way to run an application through an external device, I created a builder with the following qualities: Location: / usr / bin / open Work directory: $ {project_loc} Logic: -A / Applications / Utilities / Terminal However, the Eclipse Console complains that "file [Project DIR] / Grunt and [Project Dyer] / Build & Asser is not present." The eclipse is hoping to call the terminal app with a list of files separately from the empty space, but what I want to do is to provide a logic that "as I would run i

javascript - Find location of Meteor Assets -

I have a folder on my machine, which is running my meteor app, while I am adding files. Its path is able to successfully use the ~ / upload i assets.getbayer () to the private folder, but outside of my meteor project Not a folder. How do I use Assets.getBinary () where the location of a file is ~ / uploads / foo ? Assets .getBinary () is not a way to send a personal directory Is not a descendant of If you want to keep an asset outside of private property, to share them among applications, you can symlink the folder in your personal directory. CD and more in your personal directory: ln -s ~ / Upload upload Then you can refer to any property through your path, for example: assets.get binary ("upload / upload / Fu ");

c - Why is the compiler confused into a SIGSEGV by unsigned int? -

I have solved a problem, which has given me a sense of what is going on, but still not at all. int main () {unsigned int a = 2; Four c [2] = {}; Char * p = & amp; C [1]; Return P [1 - A]; } This is a bit clearer when the last line is rewritten. return * (P + (1 - A)); / * Equivalent * / return * (P + 1 - A); / * Work * / return * (P + (1 - (int))); / * Functions * / I'm surprised that the compiler does not remove the bracket internally. And more so that it clearly tries to capture a temporary negative result of type unsigned int unless there is a reason for division fault. The output of the assembler has a slight difference between the brackets and without the code. - movl $ 1,% eax - subl-12 (% rbp),% eax - movl% eax,% edx + movl-12 (% rbp),% eax + movl $ 1 ,% edx + subq% rax,% rdx Regarding this forcible rules The expression is 1-a as a unsigned int , and the result is in an underflow. The compiler can not remove the bracket because you are mixin

How to use BinaryReader class to read a custom file (C++) using C#? -

Okay, therefore, to give a code to a device to use a custom file for a personal project Given is serial from C # to C ++. I thought about using the class BinaryReader and it was effectively the right way, but I suspect that I could not find any useful information without structs Used to serial, so I asked for them. The problem is that the information sent to me is that all the qint32 fields with the 2 configuration name (yes, they use QT libraries). Honestly I am completely lost with this, I would also like to know that if qint32 is the int32 of QT or if it is its effective Is different from the way. Regards. According to this, a qint32 is 32 bit in length. This means you can use to read those numbers that believe they are very few. The definition of qint32 from qglobal.h is as follows: typedef int qint32; / * 32 bit signed * / C ++ does not specify the end of standard numbers, instead the architecture program is compiled. The x86 and x64 processors

plot - plotting without axis and bonding box in matlab / octave -

Image
I have two plots: how can I get rid of the axis and connection box on the second plot? I am using Octave 3.8.1 I use plot command to build a plot. clf (figure (1)) figure (1); Plot (xfreq_orig (1: 3000), yamp_orig (1: 3000)); Print ('-dpng', '- S1024,768', 'strcat (' / tmp / ',' 01_graph.png ')); % Export plant to keep the file; CLF (figure (2)) figure (2); Plot (excrec_orig (1: 3000), ymp_inv (1: 3000), 'r') print ('-dpng', '-s1024,768', straight ('/ tmp /', '02_graph page')); % Export plot < Img src = "https://i.stack.imgur.com/6vk8B.png" alt = "2 plot"> It is as simple as axis off box off which only disable parts of the axis

scala - Akka Messages in Subprojects? -

I have a message that I am sending to Akka through a cluster. I have two backend nodes and a frontend node, the backend nodes are okay, but the frontend node is not coming (association failed). I think that's why this is an indication: I have a working configuration (Frontend comes up and sends and receives message right), but frontend, backend and mango Messages are in the same package. When I split them into different subproducts (normal, front and backend), the code breaks down. Why is this an obvious reason? In addition, stacktrace: [INFO] [10/08/2014 17: 00: 32.385] [cluster system-akka.actor.default-dispatcher-14] [cluster (akka: // cluster system)] cluster node [akka.tcp: //ClusterSystem@192.168.1.2: 62701] - [akka.tcp: //ClusterSystem@192.168.1.7: 2552] Welcome [info] [10/08 / 2014 17:00: 32.425] [ClusterSystem-Akaka.ctre Default-display-14] [akka: // cluster system / system / cluster / core / daemon / giantedodod process-1] message [akka.cluster.InternalClusterAct

python html parsing fails in document with javascript -

I'm trying to use Python to parse HTML (although Speaking strictly, server Claims XHtml) and every parcener I have tried (Elementatri, Minenom, and LxML) all fail. When I want to see where the problem is, it's inside a script tag: I see what the problem is, ampersand be quoted needed. The problem is, it is inside a JavaScript script tag, so it can be cited not because it will break the code. What's going on here? How inline javascript is capable of breaking my paras, and what can I do about it? Update: per request, here is the code that is used with LXML. & gt; & Gt; & Gt; lxml Import Entry from & gt; & Gt; & Gt; Tree = etree.parse ( "http://192.168.1.185/site.html") Traceback (most recent call last): File "& lt; stdin & gt;", line 1, & lt; Module & gt; File "lxml.etree.pyx", line 3299, lxml.etree.parse (src / lxml / lxml.etree.c: 72655) file "parser.pxi", line 17 9 1, lxml.

ios - importing PebbleKit in Xcode 6 for use in swift -

I am trying to develop a pebble companion app in Xcode 6 at a fast pace. I can follow the instructions so far The Pod starts installing and linking Pebblekit without any error, but when I import a fast file into "Paybblekit "I type the instruction, then it says that the module was not found. Being not an expert in Objective-C, (nor faster for that matter), I am being harmed because it is not working. Any insights? The following solution has worked for me 1. I added the packblekit manually (all for this The steps are described in the link given on the question basis) 2. I created a bridging header file in Swift Project (check). 3. In the built-in bridging header file I wrote: # Import There is no need to import 'Paybblekit' in any swift file! I can use all the sections without the problem of the Problem Framework.

php - Form action not working with special characters (&) -

I have a reservation form and the form should take action: but this is not working when I submit the form From everything? Just ignored. As a solution, I have named the first field name = "smsworld ~ availbox ~ & amp; RAD" It's working perfectly, the only problem is that when I submit my form, "& u is switching to% 26. The URL I get It is: But instead, I'm getting: > Any suggestions? < div class = "post-text" itemprop = "text"> What is a URL encoding? Some characters of the URL reserved characters As you can not include that part of the URL, or the URL will not be wrong, Endersus is one of those characters. Consider how the URL with the query string Looks like: As you probably already know, the query string variables are separated by an ampersand. URL encoding replaces the group of characters for reserved characters So that the url's mel In other words, the URL you are asking for is impossible.

Javascript call to class method CalculateCost() does not work correctly. Not returning any information -

I have a class constructor called PortraitOrder (). In this manufacturer, I am making a method called CalculateCost (). For some reason, when I call that method later in my code, nothing returns anything, I'm not sure that the way I call it, if I made it in portrait order , Or the actual calculatec () method has the same problem function PortraitOrder (pictures, pictures, copies, shapes, buyers) {this.portrait = portrait; this.copies = copies; This.size = size; this.buyer = buyer; This.calculateCost = calculate; Here is the CalculationCast () method that I have added under PortraitArder () function under CalculateCost () { this . Size = size; This.copies = copies; Var value = 0; If (size == "wallet") {value = 10; } And if (size == "8x10") {value = 10; } And if (size == "4x6") {value = 10; } And if (size == "11x14") {value = 30; } And {value = 10; } var cost = price * copies; Return cost; } Finally, this is the call that I make

Wack A Mole With Python Syntax/Punctuation -

OK, so I'm playing with this code for a while. What do I want to do: a) If so, continue to the next part of the program. B) If not, then return to the question to enter the correct data. C) If not, request y / n again. So it is so far away from me. I am working out of Python 3.4.1, and at this time, after the "else" statement, the last variable "Answer" is saying "invalid syntax" to me. If I try to adjust this statement then it Let me tell you that a colon is out of place, "Alif" is "invalid syntax" and because of the first "break" statement in "if" statement due to the induction "I have a question here: when will I start debugging it Because everything confused with it In the form of a decimal: 'm = input' ('a decimal Enter the monthly minimum payment in form: ') Print (' Your Outstanding Balance is: '+ B) Print (Your annual interest rate in decimal form is:' + i) Print (

c# - MS Visual Studio 2010 Database connection to MS Access 2007 -

I'm trying to put this code in a text box, it seems right. However, "Old Dibcoconcation" and "Open" are underlined on Red. Am I forgetting something or doing something wrong? OleDbConnection conn = New OleDbConnection ("Provider = Microsoft.ACE.OLEDB.12.0; Data Source = C: \ myFolder \ myAccessFile.accdb; Continuous Security Info = False;"); Try {conn.Open (); MessageBox.Show ("Connect"); } Hold (Exception pre) {Message Box. Show (ex.Message); } System.Data.Oldib using a Add to top of your file.

versioning - Database with a native versioned document type? -

I know there are patterns for creating varianting and audit trails at the top of various data stores. I'm curious: is there any DBMS (SQL or otherwise) with the original type to store the versioned text documents? I am not talking about GIT like VCS, which apply the versions of the stores to the whole repo. I'm talking about the version history for personal records. CouchDB has it because its optimistic locking is necessary, just add more duplication Although it is not to be used for long-term versions: Even Oracle can query it on CLOB at that time.

mysql - SQL Querying: Getting the top five tuples based on a value where the value could be the same for some tuples -

As explained in the title, I am trying to get the top five tips based on a price that is In addition to some Tulips, if the value of the fifth tuple is similar to the values ​​of other Tuples in the same table, then I have to display them as well. As an example, suppose I have the following values: person A: value 12 person B: value 12 person Individual D: Value 15 Individual E: Value 16 Person F: Value 17 Individual G: Value I need to display it: Person g: Value 20 < Li> person F: value 17 < person A: value 16 person D: value 15 person C: value 12 Person B: Price Yes 12 Individual A: Value 12 As a person can see, despite the individuals with the "Top Five" value CG, the person in the table And B also includes because they have the same value as the person C. In addition, anyone can see that the execution of queries like select * value work limit 5 this table is not produced As it would be, the person would leave A and B

hadoop jar command Execution -

We submit a jar file through the hollow jar command This master node Copy the jar file into all slave nodes and start execution or how does it work and who does this? Job tracker or namedade? The "hop jar" command tells the houop to provide jobs in the cluster. Output path jar file includes job config and all map and lower code. Step: The job client presents JobTracker (Jetties) for a job. In the background, it copes Binense, which contains information about config, mapper and reducer code, input and output paths, which is in a centralized area, which is close to the Task Trackers (TTS). Once TTS needs to use that code, they just download it locally on datyonode, so when the map and lowering work standups, they use that code to run on local data. We do. The JT asks about data space about the data location and the data node that contains the data. With this information, JT talks to TTS and considers TTS to form an execution plan, closest to the da

java - How to call a method function from another class? -

I am writing a Java project that contains three different classes. It's so far away from me that I just have a function How to call from second class to second class I have already written 2 classes; I got the "Date" class and "TemperatureRange" category; Now I am trying to call those 2 classes in the "Weatherrecord" class. I'm not sure I'm right about this. This is another category public class date {public static string date (string date , String month, string year) {string DDTET = date + "+ + + + +" + year; return DAPT;}} and there is another class here public class temperature range {public static string temperament (string high, string less) {string RTempRange = high + "high" + "" + less + "less"; return rTempRange;}} You need reference of class, in which there is a method that you want to call. Suppose we have two classes, A and B. have a method that you want to call from A A

sh - Bourne Shell Script -

I am trying to write a script in the Born Shell that will do the following: Read in file name If the file is not present in the target directory, it will send the message to the user If the file exists in the target directory, move it to a / garbage folder If the file exists in the target directory, but a file with the same name / Garbage folder, then it will still move the file to the Trash / directory, but the file will have an _bak extention attached. My use of Born Shell is low, so even if I have any indication or suggestion too much will be appreciated, thanks! #! / Bin / sh # script name: garbage utility source_dir = ~ / p6_tmp target_dir = ~ / trash echo "Please enter the filename you want to trash:" Please read the file name if [-f $ Source_dir $ filename] So MV "$ filename" "$ target_dir" else "$ filename does not exist", EF "<"> < P> You can not use $ to refer to the $ HOME script in sh .