Posts

Showing posts from May, 2011

ios - Observe value changes of NSDictionary inside NSArray -

यहाँ मेरा NSArray कार टाइप ({iselected = 0 ; KFieldName = "सभी प्रकार"; kObjectValue = 0; kObjectValueText = सभी;}, {है चयनित = 0; केफ़िल्डनाम = "4 सीट्स"; kObjectValue = 4; kObjectValueText = "4 सीटें";}, {1 चयनित है; kFieldName = "7 सीटें", कोबाइवएल्ट = 7; kObjectValueText = "7 सीटें";}) मैं iselected क्षेत्र में परिवर्तन कैसे देख सकता हूँ? मैंने अपने कोड में केवीओ का उपयोग किया था लेकिन यह काम नहीं करता है। कार टाइप एक NSArray संपत्ति संदर्भ - (शून्य) दृश्यडिडलोड {[सुपर व्यूडिडलोड]; [संदर्भ addObserver: के लिए स्वयं केपैथ: @ "कार टाइप" विकल्प: एनएसकेएवेव्वेश ऑब्सेशंसओवेशननई संदर्भ: NULL]; } - (शून्य) निरीक्षण वैल्यू फोरेकेपथ: (एनएसएसटीइंग *) कीपैब का ऑब्जेक्ट: (आईडी) ऑब्जेक्ट परिवर्तन: (एनएसड्राइज़मेंट *) परिवर्तन संदर्भ: (शून्य *) संदर्भ {यदि ([केपैथ एईएक्वलटॉस्ट्रिंग: @ "कार टाइप"]) {एनएसएलॉग (@ " कार टाइप बदला "); }} // dealloc निकास पर्यवेक्षक में परिवर्तन को देखने के ...

Can I have multiple functions in my AngularJS Factory? -

I am following the official AngularJS docs and I want to know if I can add another function to the phone factory I can arrange better code, they have announced a "query" function, but if I want to add a query 2 function which refers to a different URL ... say phone 2 /: phoneName. Json for example? Factory announcement: var phonecat services = angular Modules ('Phonecat Services', ['NgrSource']); PhonecatServices.factory ('phone', ['$ resource', function ($ resource) {return $ resource ('phone /: phoneId.json', {}, {query: {method: 'GET', parameter: {phoneId : 'Phone'}, IARRA: true}});}]); I have tried many things and none of them are working: s This is on the right track, but the syntax for every factory phonecatServices.factory ('phone', ['$ resource', function] ($ resource) {return {query} ... query2: ...} }]; An example of this is: factory ('Factory name', ["$ ...

ios - How to remove delete button when editing UITableViewCell? -

I want to customize my cell behavior - I want to change the cell view and show different buttons. Half of the work was found - when I want to hit it out loud, I get a scene to take. But I have the button on the right side of the room, I want to use a custom button instead of getting rid of it. What should I use to remove it and I can force my button to do the same thing? I tried to use two methods, setEditing : and willTransitionToState , but this has not helped anymore. If I leave calling the original method in any of these, I can not find the Delete button, but my view does not return to its original state after editing and other cells swipe What should I do to prevent this to stop the reaction? Editing: (BOOL) Animated: (BOOL) Animated ([Super-Setting: Animated Editing: Yes]; If (Editing) {[UIView Animation: 0.3 Animation: ^ {Self.parentView.transform = CGAffineTransformTranslate (CGFE Transform Identity, 100, 0);}];} and {{UIView Animavitthusion: 0.3 Animation: ^ {self....

ios - Finding the range between two numbers (objective-c) -

I am trying to write some code like this: "Earned money: 200 $ - 500 $" I have the first multiplication Done (float * 0.002) and now I want to add (float * 0.005) to be able to show the least amount I earned and the amount of the most earned money. Here's what I have done so far: float number = [viewsHere.text floatValue] * 0.002; Result.text = [NSString stringWithFormat: @ "$% .2f", numViews]; I would like to add a 0.005 multiplication and with an estimate, I would like to print both the results at the same time ... I know that this question is understandable There is a problem but I can not get help anywhere thanks. float numViews = [viewsHere.text floatValue] * 0.002; Name numViews2 = [viewsHere.text float value] * 0.005; Result.text = [NSString stringWithFormat: @ "Money earned: $% 2.f - $% 2.f", numViews, numViews2];

android - Need for Intent.createChooser method when using implicit Intent -

I do not understand the intent. According to Android Docs "If multiple intentions are compatible, the system displays a dialog so that user can use which app." So, if the Android system has made a customized dialogue, then why would it be the use of the method? Thank you in advance Yes, the Android system will do it for you But once you select an item from the dialog, then the system will keep this in mind and it will show the next time not the dialog if the user chooses the "default" it is not always what you want . Suppose you have a share button, you definitely do not want to share your users all the time with the same perspective. So this is the case where you will need to call the createChooser call, this system forces to show the dialog that everyone chooses every time. You can refer to

c++ - Concept Based Polymorphism -

I'm reading on concept based legacy in C ++. I have a code sample attached to everyone I basically Asking whether this is the correct implementation of this concept? I am new to this, so any comment / criticism I am putting in my mind is welcome. #include "stdafx.h" #include & lt; Memory & gt; #include & lt; Vector & gt; # Include & lt; Algorithm & gt; # Include & lt; Iostream & gt; using namespace std; Structure point {int x; Int y; }; Class graphics_surfaces {class drawable_concept {public: virtual zero draw (point const & coordinate) {}; Virtual ~ drawable_concept () {}; }; Template & lt; Class T & gt; Square drawable_model: public drawable_concept {public: drawable_model (T & amp; item): item_ (item) {} draw zero (point const and coordinate) {item_.draw (coordinate); } ~ Drawable_model () {} Private: T item_; }; Public: Template & lt; Class T & gt; Zero Push_back (T and Drawable) {v_.push_back (shared_ptr ...

cordova - Phonegap Error code 3 on FileTransfer on iOS when trying to upload an image -

I have researched this topic a ton, and this error is normal for Android or other stuff, but this solution is my Not applicable to the problem. I'm getting error code 3 when I try to upload an image from the phone to the server PhoneGap does not specify the documentation that error code 3 is what I tried the connections: close fixes, with Any other just fine but this does not help, it is happening every time, on iOS, I tried some different servers, which does not include PHP script with any cross domain issues and it still Returns the error code 3. The code is below. Thanks for any help. function getPhoto (source) {// specified source navigator. Recover image file location from image. Image (PerfotoIrisUse, Onfile, {Quality: 10, Destination Type: Destination Type. FILE_URI, Source Type: Source}); } Function (function URL) {uploadPhoto (imageURI)} Options.fileKey = "file"; Options.fileName = imageURI.substr (imageURI.lastIndexOf ('/') + 1); Options.mimeTyp...

javascript - Issue in a declared factory: AngularJs -

var ऐप = कोणीय। मॉड्यूल ('ऐप', []); // html में, निम्न 2 फ़ाइलें संलग्न हैं। // & lt; script src = "lib / sockjs-0.3.4.min.js" & gt; & lt; / स्क्रिप्ट & gt; // & lt; script src = "lib / vertxbus.min.js" & gt; & lt; / स्क्रिप्ट & gt; App.factory ('serverData', फ़ंक्शन () {var eb = new vertx.EventBus ('http://xxx.xxx.xxx.xxx'); var x = {}; eb.send ("com.find। Web.ed ", {" Em ": 'user@find.com'," Pw ": '123'}, फ़ंक्शन (उत्तर) {x = उत्तर;}); var तथ्य = {}; fact.getData = function () {वापसी x;}; वापसी तथ्य;}); App.controller ('मुख्य नियंत्रक', फ़ंक्शन ($ दायरा, सर्वरडेटा) {}); उपरोक्त कोड में, मैं किसी शीर्ष सर्वर से डेटा प्राप्त करने के लिए एक फैक्टरी घोषित करने की कोशिश कर रहा हूं। यह काम नहीं कर रहा है, कोई एक मदद कर सकता है।? यह एक नियंत्रक में उपयोग किया जाता है जब यह अच्छी तरह से काम कर रहा है कोड देखें। var ऐप = कोणीय। मॉड्यूल ('ऐप', [...

ios - UIRefreshControl not showing indicator or title? -

Image
Drag to refresh by using UITableViewController itemprop = "text"> UIRefreshControl . Even how far have I tried it? - (zero) viewDidoadload {.....////// ********* Drag to refresh ****** ***** * / UIRefreshControl * Refresh = [[UIRefreshControl alloc] init]; Refresh.attributedTitle = [[NSAttributedString alloc] initWithString: @ "pull to refresh"]; Refresh.tctColor = [UIColor magentaColor]; // [Add Self-Taille View AddSubwayview: Refresh]; // [Self. Refresh controller set enabled: Yes]; [Refresh addTarget: Self-Proceeding: @Sillector (Pulatourfaces :) Control Events: UI ControlAventWalls]; Self.refreshControl = Refresh; } - (Zero) Pulatourfaces: (Eurefreshus Control®) Refresh {[Fresh Start Arfreshing]; Refresh.attributedTitle = [[NSAttributedString alloc] initWithString: @ "Refreshing .."]; [Self loaded retent activity]; } But when I pull a table widget, neither the activity indicator or title appears, yet the pullToRefresh is called and t...

c# - LINQ to SQL: Selecting Name (string) by id (smallint) -

मुझे आईडी का नाम ( मूल्यांकन नाम ) प्राप्त करने की आवश्यकता है पब्लिक इन्ट गेटएस्सेमेंट न (इंट एसेसमेंट नं) {इंट एसीएनओ = (कॉन्टैक्ट में से एक। दृश्य_एसेटेशन जहां ए.आईडी == एसेसमेंट न चुनें। एसेसनमेंटनाम); वापसी न करें; } पर System.Linq.IQueryable से int आपकी क्वेरी पूर्णांक का एक सेट रिटर्न करती है इनमें से किसी एक का प्रयोग करें: पहले (), सिंगल (), फर्स्टऑर डीफॉल्ट (), सिंगलऑर डीफॉल्ट () सार्वजनिक इंटेटएसेसेमेंट न (इंट आकलन न) {int AssNo = (से एक contxt.View_Assessment जहां a.id == आकलन कोई चयन नहीं)। सिंगल ()। AssessmentName; वापसी न करें; } या: सार्वजनिक इंटेटएसेसेमेंट न (इंट आकलन नं) {int AssNo = contxt.View_Assessment.Single (a = & gt; a.id == AssessmentNo) .AssessmentName; वापसी न करें; }

sql server - Twitter style timeline with MSSQL 2008 -

I am trying to compare dates and display differences in Twitter style format (2 seconds ago, 1 minute ago , 2 days ago etc.) with MSSQL 2008. Any help would be greatly appreciated thanks in advance. Will this help you? You may have to add more conditions for days and weeks declare @ dtetime = getdate (); @ PostStyle declare datetime = dateadd (seconds, -2, demet); Announce; Set @ Diff = datediff (SECOND, @ posttime, @ dt) when @fiff

ios - pathForResource method -

Image
मैं छवि के साथ खेल रहा हूँ और देखेंवहाँ विधि [imageWithContentsOfFile] है; लेकिन वास्तव में इसे चलाने के बाद कुछ भी दिखाई नहीं देता। कोड के नीचे, [imageNamed:] विधि है और यह हमेशा की तरह काम करता है कोई विचार? धन्यवाद, #import "ViewController2.h" @ इंटरफेस देखें नियंत्रक 2 () @ प्रॉपर्टी (कमजोर, नॉनैटॉमिक) IBOutlet UIImageView * imageView; @end @implementation ViewController2 - (BOOL) prefersStatusBarHidden {वापसी हाँ; } - (आईडी) initWithNibName: (NSString *) nibNameOrNil बंडल: (NSBundle *) nibBundleOrNil {self = [सुपर initWithNibName: nibNameOrNil बंडल: nibBundleOrNil]; अगर (स्वयं) {// कस्टम इनिशियलाइज़ेशन} वापस स्वयं; } - (शून्य) दृश्यडिडलोड {[सुपर व्यूडिडलोड]; // दृश्य लोड करने के बाद कोई अतिरिक्त सेटअप करें // बस गड़बड़ कर इसे मत करो // self.navigationItem.titleView = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @ "स्टैनफोर्ड"]]; UIBarButtonItem * shareItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemAction लक...

python - Tkinter OptionMenu: setting the width by the longest menu item in the list -

OptionMenu of the tanker sets its width based on the current active menu item. I'm trying to set my width based on a wide menu item in a way, when the user selects a separate menu item, instead of the currently selected one to prevent the widget from resizing itself. The suggestion of the answer in the question hides the problem, but it does not resolve (suggestion: there is no duplicate!) Acceptable answer widget to w and / Code> is to be set to be sticky for both. This hides the problem until the suggested size for the column is more comprehensive than all the objects in the box, but does not really solve the problem. I like to do (more like) a grid layout columns with different widgets, which are dynamically shaped on the width of the widgets, however, I like it The width reported by the OptionMenu widget is that it is the most comprehensive item currently selected, as the width of the change in the whole column, if the user chooses an item, then compare the ...

How to install Resharper plugin? -

Although the Resharper is great, but it is not immediately clear how to set up the plugin for Razor Gallery based on Nugget. But how do I install a plugin? No instructions, can anyone help me here? I am using Resharper 8.1 with VS2012. Understand. An extension manager in the "Resharper" menu should do this

scope - Why can't pattern-matching-definition be a closure in Haskell? -

Why are these pseudo-Haskell function definitions not accepted? fn = if n & lt; 3 then n and g 2 2 1 0 where gnabc = a - Note that 'n' has a value of scope scope gkabc = g (k + 1) (a + 2 * b + 3 * c) ab which calculates this "exercise-function": f (n) = n if n & lt; 3 and f (n-1) + 2 * f (n-2) + 3 * f (N-3) fib n = let fnab = b - note That is a value of the enclosed scope of 'n' fkab = f (k + 1) b (a + b) f1 0 1 This work of course to calculate Fibonacci numbers Is: fib n = let {fkab = if k == n again bf (k + 1) b (a + b);} f1 0 Warning: Pattern matching (SA) Overlapped I closed a function Can not define, which is using a method of matching with a value, which I get from the scope of scope? This is because the value of the scope of the scope is fixed at runtime (in general) and for some reason (for what reason?) The compiler can not make that orchestra? This is a language design choice: Pattern can not be done on mailin...

hadoop - How to plot Rule based Decision tree in R -

Image
I am just starting from R and I have difficulty in plotting a rule based decision tree in R The problem is, I already have an output from Hop Mepadus and it is in the form of a simple text file. Now I want to use this output from Hadoop and want to represent it under R. The output file looks like this 1 overcast Yes 1 rain 3 Strong number 1 rain 3 weak Yes 1 Sunny 2 High number 1 Sunny 2 General Yes Is there any way that I can represent something in this graph in R, in some way Any help would be greatly appreciated Thanks package 'rpart' This is a package for recurring division and decision trees. The following help file ? Rpart can be obtained directly from function expand.grid You may have access to anything here. & gt; Example (RAPT) fit & lt; - RAPT (Cfosius ~ age + number + start, data = kyphosis) Fit 2 & amp; Lt; - RAPT (Cfosius ~ age + number + start, data = keyphosys, parameters = list (pre = c (.65, .35), partition = "notif...

bash - Auto yes to raid5 array script -

I am working on a script to install an array RAID5. I'm having trouble putting the auto = yes when the script asks: If I want to continue making the array. I tried it - yeah = yes (), but where this place is, it is very uncertain. #! / Bin / bash mdadm mdadm --create --verbose / dev / md0 --level = 5 --raid-devices = 3 / dev / sdc1 / dev / sdd1 / dev / sde1 - spare-device = 1 / dev / sdf1 If [$? -E 0 0]; Then OK, OK, Echo FAIL FI 1) can use to solve such problems. For example passwd command: #! / Bin / bash passwd user & lt; & Lt; EOF Mypassword mypassword EOF You can run your script and enter heredoc : ./ script & lt; & Lt; EOF & gt; ; Yes & gt; Yes & gt; No & gt; EOF Update: Finally, whatever you want Has a question: ./script & lt; & Lt; EOF & gt; Yes & gt; EOF In addition to this you can: #! / Bin / bash mdadm --create --verbose / dev / md0 --level = 5 --raid-devices = 3 / dev / sdc1 / d...

opencv - How to compare two contours translated from one another's position? -

Image: Hi all, I want to compare two settings; To find the similarity between the two patterns, find the distance between them, when I take the template contour on the right side, IA ???? to find the same parallelism from the left in the form of the context sarant contour. I get an error because the scene contour points are transliterated from the contour point. Actually, taking the straight point from the two pictures directly, as you can see that I can not just cut the contour area because it affects the neighboring settings. . Should I create an empty image with the size of the visual image and make my template contour slide on the visual image to find the match? Or is there any better way? Regards, Balaji. R You can do the following: In your original image Find shapes. Get shape sequence / points for each contour. For example, let's say that the debut is stored as parity 1 (only a rough example), point 1, point 2, point -3 etc. Then minimum and maximum x and ...

How to parse json response using Jackson in android? -

I'm getting some Jason response by hitting url and I want to use Jackson to parse Jackson's answer. I tried with an object mapper but I'm getting an exception. json: {"contacts": [{"id": "c200", "name": "" male "," phone ":" "" "", "Email": "raja@gmail.com", "address": "xx-xx-xxxx, x - street, x - country", "gender" mobile ":" +91 0000000000 "," "Johnny Depp", "Email": "Johnny_depp@gmail.com", "": "000000", "Office": "00 000000"}, {"id": "c201", "name" Address: "xx-xx-xxxx, x - street, x - country", "gender": "male", "phone": {"mobile": "+91 0000000000", "home": "00 000000" , "Office": "00 000000"}},]} pub...

ios - Loading External Bundle Files allowed? -

We are trying to remotely load external NSBundle files using a technique like the following I believe that unless you can change the functionality, is it not allowed? Thank you for all your help You should ask the applet Sure, but probably not. Bundles are image / data processing, but there are codes, and there is a restriction guideline against running code, which was not in the app when it was reviewed. If you are simply loading image / data processing then you may be able to recover the code resource, you can get it through review, but it will be pulled out when detected.

C/C++: Compressing(gz) data without using temporary file -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मेरे पास कुछ डेटा है सरणी, uchar * डेटा = "संपीड़ित होने वाला डेटा।"; [कुछ डेटा] मैं इस डेटा को संकुचित करना चाहता हूं ( gz ) और बफर में आउटपुट प्राप्त करना चाहते हैं। uchar gzData [MAX_LEN]; ऐसा करने का एक तरीका है: 1. एक `ऑगस्टस्ट्रीम` वस्तु बनाना 2. इस डेटा को एक अस्थायी फ़ाइल में लिखना 3. अस्थायी फ़ाइल को बंद करें। 3. एक `इस्ट्रीम ™ ऑब्जेक्ट बनाएँ 4. अगर ऑस्ट्रिस्ट ऑब्जेक्ट का इस्तेमाल करते हुए बफ़र में अस्थायी फ़ाइल पढ़ें। लेकिन मैं इस के लिए एक अस्थायी फ़ाइल का उपयोग नहीं करना चाहता क्योंकि यह पूरी प्रक्रिया धीमा कर रहा है। क्या इस डेटा का उपयोग किए बिना संपीड़ित करने का कोई सीधा तरीका है किसी भी मध्यवर्ती फ़ाइल आप ऐसा करने के लिए फ़िल्टरिंग streambuf का उपयोग कर सकते हैं उड़ान पर। यह बहुत आसान है, लेकिन बूस्ट :: Iostreams ने पहले से ही आपके लिए किया है।

how to obfuscate android library project step by step -

I have been facing a problem for a long time and Android Android is not an Android app, I have an Android Progress GUI But I am unable to use jars after being obscured. Please give me a step-by-step guide or any link where this problem is already fixed. Thanks Advance .. Save it as progonf.txt and proguard Open the GUI as a confiuration file and replace the input and output jar space. Also process the ifoid.jar locations and support if necessary, support. - Enzers 'Bishwash / Eclipse Kepler' - Reverse Bashards / Android-SDK-Macaux / Platform / Android-18 / Android Learners 'Bishwash / Eclipse Kepler / Android-work / uxcam_lib_new / libs / android-support-v4.jar' -dontskipnonpubliclibraryclassmembers -printmapping mapping.txt -dontusemixedcaseclassnames- Departments exceptions, inner classes, signatures, deprecated, sourcefiles, linenumbertables, * annotations * , Encling method - Contemporary name -MremonSourceFileLiteTrrrrrrrrrbSourceFile -Certification...

android - Converting Integer To Hex Java -

I need this fancy [] format for my app as I wrote in the headline. The value is derived from a hashm which is filled with an XML file with this format [00 00 00 00, but I can call every Int is needed in front of 0x I tried to "convert" it through "for-loop": for (int i = 0; i & lt; value.length ; I ++) {value [i] = "0x" + value [i]; } but I can not convert from string to int this way. Then I tried to change it directly in the XML file, but then my app crashed with NPE. Now I want to know that there is a solution to my problem. Edit: I tried to do it first, but it does not work: Public int [] getValue (map map, string key) {map keyMap = map; Int [] value = {}; @SuppressWarnings ("Raw Type") Iterator IARR = Childmap. Enterreset () Iterator (); While (iter.hasNext ()) {@SuppressWarnings ("Rootsps") map. Entry Mientre = (map.entry) iter.next (); If (mEntry.getKey (.) Equals (key)) {value = (int []) mE...

c++ - Access violation when pointer is not pointing to NULL -

This small code is facing rum time error, which is saying "login violation". I have read about it online, which says that when an indicator is pointing to the tap, its value can not be changed. But did not solve that problem Includes # lt; Iostream & gt; using namespace std; Int max = 3; Structure node {char * ptr; } * Start, * start = start; Zero init () {current-> gt = ptr = (char *) malloc (max * sizeof (char)); // Error in this line} Add zero (four pages) {char * c; C = current-> Ptr; If (page == * c) COAT & lt; & Lt; "Yes"; And cout & lt; & Lt; "No"; } Zero main () {init (); Add one '); Cin & gt; & Gt; Maximum; } The code dump occurs because you are reaching an indicator that does not start has been done. To begin a "current" one valid memory space, it must start before de-referencing. The more cleaner code will be #include & lt; Iostream & gt; using namespace std; Int max = 3; St...

php - Cannot attach EVENT_ROUTE in Controller -

I do not understand why the following code does not work, maybe I can not be an event manager / shed event manager india zend framework 2. I do not understand anything. For now I have not found anything on this internet. Could it be that the example of an index converter has already been destroyed on EVENT_RENDER and not made on EVENT_ROUTE? Maybe this is the case or am I missing something here? Class Index Controller Expands AbstractActionController {Public Function Route Event Oxide () {Echo 'Test'; } Public function renderEventOccured () {echo 'test'; } Public Function __construct () {$ this- & gt; GetEventManager () - & gt; Given (MvcEvent :: EVENT_ROUTE, array ($ this 'routeEventOccured')); $ This- & gt; GetEventManager () - & gt; Attached (MvcEvent :: EVENT_RENDER, Array ($ this, 'renderEventOccured')); }} itemprop = "text"> Zend Framework 2 using the concept of event . A class can trigger an event, ...

html - Multiple font family's in one sentence -

In one of my devices I have to keep a title with a piece of text Hello , My name is Anonymous Any ideas from? Because when I differ & lt; P & gt; Classes, it starts a new paragraph. & lt; Span style = "font-family: bl;" & gt; Hello, & lt; / Span & gt; & Lt; Span style = "font-family: blo;" & Gt; My name & lt; / Span & gt; & Lt; Span style = "font-family: blu;" & Gt; Anonymous & lt; / Span & gt;

javascript - Angularjs: ng-class not picking up class -

यहां कोड है & lt; body ng-app = "app" & gt; & Lt; div ng-controller = "MainCtrl" & gt; & LT; ul & gt; & Lt; li ng- दोहराने = "श्रेणी में एन" वर्ग = "परीक्षण" एनजी-वर्ग = "{{(इंडेक्स & lt; 5) & amp; amp; amp; & amp; दृश्यमान; 'अदृश्य'}}" शैली = "प्रदर्शन : inline; "& gt; & Lt; a href = "#" & gt; {{n.number}} & lt; / a & gt; & Lt; / li & gt; & Lt; / ul & gt; & Lt; / div & gt; & Lt; / body & gt; कोणीय कोड var ऐप = कोणीय। मॉड्यूल ('ऐप', []); (संख्या: "2"}, {संख्या: "3"}, {संख्या: "4", "संख्या" }, {संख्या: "5"}, {नंबर: "6"}, {संख्या: "7"}, {संख्या: "8"}]}}); मैं दृश्य या अदृश्य को कक्षा में जोड़ा नहीं देख रहा हूँ, मुझे पता है कि मुद्दों क्या हैं आपको ng-class ( {{... ...}} में स्ट्रिंग प्रक्षेप का उपयोग नहीं करना च...

python - How to format with a UNICODE string to JINJA's variable in a template? -

How to set the string with the Unicode value in the Jinja 2 template? {% set Left = '& lt; Span class = "link" onclick = "togglelogin registry (this)" & gt; {0} gt; Formats (registerhint)%} UnicodeEncodeError raises if registerHint does not otherwise have a Unicode string. Instead use Ginja and your string Unicode for you: {% set left = '& lt; Span class = "link" onclick = "togglelogin registry (this)" & gt;% s & lt; / Span & gt; ' | Format (register hunt)%}

ios - How to distribute IPA via Windows Intune -

I'm wondering how to correctly sign and distribute IPAs by Windows Input. I have a specific bundle / app ID with a home-based profile and an IOS delivery certificate. I use this provisioning profile while collecting an IPA file. I sign in and package for enterprise ad hoc deployment. I get .ipa and .plist files as expected, and uploading them for Windows integration. Everything looks fine yet When I log in to the Windows Internet Company Portal and choose to install the app, it fails. I get the following log statement: Installd [61] & lt; Information & gt ;: 0x255000 MobileInstallationInstall_Server: Installing the application [bundle id] Installd [61], error & gt;: Eligibility is not allowed by 'Keychain-Access-group' pricing profile provision '' Installd [61] ] The name of the & lt [home delivery profile]; Error & gt;: 0x255000 verify_signer_identity: MISValidateSignatureAndCopyInfo /var/tmp/install_staging.mgjx9o/foo_extracted/Paylo...

php - Waiting x seconds before checking a row in mysql -

I want to create a website MySQL query after a few seconds, in which the website user has taken action on my website. I think I can do it with php sleep, but I do not know it's the best way to do this. What are the options to do this? Thank you for your reply. Edit: The idea is: I have a lobby where the registered users can join the website (when they are included in a mysql query, the SQL line, set They are connected to the lobby number x, and on slot X, but they are not connected to the server). When they join the lobby, I want to give them X time (say 5 minutes) to join Counter-Strike source server (this update updates the user row setting, which they connect to the server). But, I want to kick them in the lobby (this is just updating their row in the mysql database), if they are not included in the server in those 5 minutes, I have coded it all except the 5-minute wait part Have found and check whether they are connected. The code is: $ PlayerSlot = mysql_real_escape...

c - xorg input driver -

I need to write a xinput driver for a virtual device, e.g. . The device is connected to a LAN. The customer has been written in C ++ for this device. Is it possible to use C ++ code in this driver or should the whole project be only C? A Xorg driver is just a shared object plugin after some document conference . In principle, how do you achieve that .so is your own business (if you have been for centuries to lose from your centuries, then in principle you can write it a little bit) In theory, you can link libstdc ++. Therefore in your shared object (since someone else can link to shared objects). I think you will compile and link your plugin with g ++ and possibly link to -lstdc ++ I think it might be unsafe. Perhaps C ++ ABI needs to perform certain specific things. So you can try, but I would not be surprised if you want to do some work (eg exception management). It may depend on the version of the C ++ library and version of the C library and the version of th...

ffmpeg - Automatic save Printscreen video -

As soon as I upload a video, I would like to save a screenshot of the video as a thumbnail image, they told me it was only on the Windows server It is possible but now I read something about it. It seems that it creates the possibility of doing this on Linux, is it possible? And does anyone have experience with this? Okay, it works with Linux because it is stated in the zip. I used the example of Lauren Neckbirds to create a screenshot, which works just fine !: shell_exec (ffmpeg -ss 30 -i input.mp4 -vf scale = 320: - 1 -q: v 4 - Vframes 1 output.jpg)

javascript - How to set up a var to link different stylesheets based on data entered in the var -

I want to draw a different style sheet based on manually recorded Var, how can I do this? varDivision = "" // Total number of sets in your league varTeams = "" // Enter the total number of teams in your league if 1 Link to Division 5 teams If this is 1 stylesheet "URL", then 1 Division 6 teams link to this stylesheet "url", if 2 divisions 10 teams link this stylesheet "url", if 3 divisions of 12 teams If the stylesheet links to "URL" then "url" and shortly I can list every possibility ... you & lt; Link / & gt; ; & lt; Head / & gt; element in section $ ('head') .Find ('* [Data-Dynamic CSS = "True"]'). Remove () .append ($ ('$' and 'links rel = "stylesheet" type = "text / css" data-dynamic css = "right" />') .attr ('href', 'your stylesheet Url '));

c# - ActionLink and passing in url parameters -

इस सवाल का पहले से ही एक उत्तर है: अगर मैं डाल दिया है तो @ मॉडल.जम्सआईडी इस रेखा के ऊपर, यह 26 ... आउटपुट करता है, अगर मैं इसे नीचे के रूप में रखता हूं, यूआरएल में लम्बाई = 4 जोड़ा जाता है? यह क्यों है? & lt; li & gt; @ html.ActionLink ("जेम्स की सूची", "जेम्सलिस्ट", "जेम्स", नया {jamesID = @ मॉडल। JamesID}) & lt; / li & gt ; नियंत्रक ऐसा ही होता है: सार्वजनिक व्यू रिजल्ट जेम्स लिस्ट (इंट जेम्सआईडी) {जेम्स जेम्स = जेम्स रीपोजिटरी.गेटबीयड (जेम्सइड); वापसी देखें (जेम्स); } & lt; li & gt; @ html.ActionLink ("जेम्स की सूची" , "जेम्स लिस्ट", "जेम्स", नया {jamesID = @ मॉडल.जेम्सआईडी}, रिक्त) & lt; / li & gt; आपको अपने मापदंडों के बाद अशक्त जोड़ने की आवश्यकता है, क्योंकि यह एक और पैरामीटर की अपेक्षा कर रहा है क्योंकि कोई अधिभारित विधि नहीं है। स्पष्टीकरण के लिए इसे देखें।

php - Download size is not specified -

मैं एक पीडीएफ फाइल डाउनलोड करना चाहता हूं: $ output = RP_MAIN 'डॉकबुक / डेटा / मायफ़ाइल' $ _SESSION ["sess_code_user"] '.pdf'; // यह पीडीएफ फाइल है, मैं $ file_size = filesize ($ आउटपुट) डाउनलोड करना चाहता हूं; शीर्षलेख ("प्रागमा: सार्वजनिक"); शीर्षलेख ("समाप्ति: 0"); हैडर ("कैश-कंट्रोल: आवश्यक-संशोधित, पोस्ट चेक = 0, प्री-चेक = 0"); शीर्ष लेख ("सामग्री-प्रकार: पाठ / समृद्ध"); शीर्ष लेख ("सामग्री-लंबाई: $ file_size"); हेडर ('सामग्री-विवाद: अनुलग्नक; फाइलनाम =' '।' मैनुअल। '$ एक्सटेंशन।' '।' '' '); ob_clean (); फ्लश (); प्रिंट ($ उत्पादन); बाहर जाएं(); पीडीएफ फाइल सिस्टम में मौजूद है और इसमें 25 केबी आकार का है। लेकिन समस्या यह है कि डाउनलोड पॉपअप (इंटरनेट डाउनलोड प्रबंधक) के आकार के क्षेत्र में रिक्त फ़ील्ड है। मेरे कोड में क्या गलत है? मैं इस मुद्दे को कैसे हल कर सकता हूं? संपादित करें: एजेक्स कॉल से पीडीएफ फाइल बनाई गई है, फिर एजेक्स की सफलता पर डाउ...

php - How to redirect a URL with old format using .htaccess? -

I want to send a page to a parameter on the page (for example /archives.html ) I) via the received method. The link's clear URL is: 127.0.0.1/archives.html/2014-5-17 It must be redirected (to send through the GET method): 127.0.0.1/?option= Com_archives and date = 2014-5-17 by this HTXus code: revised rule ^ (archives .. html) / ([0-9-] +) /? $ Http://127.0.0.1/archives.html/?option=com_arcives&date=$2 [L, NC, QSA] The problem is that the beginning URL is a clean URL, but the destination Ù? The URL is not. How can the source and destination have the same clean URL and send the parameters to the destination? HTACAC file: ## # Pappage Joomla # @ Copyright Copyright (C) 2005 - 2013 Open Source Issue All Rights Reserved. # @License GNU General Public License Version 2 or later; See LICENSE.txt #### # Read it completely if you choose to use this file! # # The line right below this section: # Problems with some server configurations due to 'o...

c# - How to convert the foreach loop to linq -

कोड: foreach (test item.Distinct () में var आइटम) {if ( ! TestMap.ContainsKey (item.GetId ())) {testMap.Add (item.GetId (), आइटम); }} उपरोक्त कोड के लिए foreach लूप को कैसे बदल सकता है? धन्यवाद। कभी-कभी "{x} को LINQ करने के लिए" सही दृष्टिकोण है: नहीं। यह हर काम के लिए उपयुक्त उपकरण नहीं है आपका वर्तमान कोड foreach के साथ और शब्दकोश उत्परिवर्तन ठीक है जैसा कि यह है। इसे रखें। यदि डुप्लिकेट आईडी ( विशिष्ट () के बाद) कोई समस्या नहीं है, तो आप शायद ऐसा कर सकते हैं: var नक्शा = TestItems.Distinct ()। ToDictionary (x = & gt; x.GetId ()); लेकिन इसके बारे में है।

sql - calculate experience of employee -

Display employee's total counting experience and employees who have more than 5 years of experience ... Please help me in advance thanks. Select tbl_Employee.EFirstName, tbl_Employee.EMiddleName, tbl_Employee.ELastName, tbl_Emplâ ???? One ???? Oyee.EmployeeID, tbl_BranchMaster.BranchName, tbl_DepartmentMaster.DepartmentName, basic, year as Tbl_StateMaster.ÃÆ'à ¢ â,¬Å¡Ãƒâ € šÃ, State Government, tbl_Employee.EmployementDate, dbo.FN_Basic (tbl_Employee.EmployeeID). (Strict () (age) - YEAR (tbl_Employee.EmployementDate) as age tbl_StateMaster Inner included tbl_DepartmentMaster join INNER tbl_EmployeeStructureInternet tbl_EmployeeStructure.EmployeeID = tbl_Employee.EmployeeID tbl_Employee Join interactive on tbl_DepartmentMaster.DepartmentID = tbl_EmployeeStructure.DepartmentID Tbl_StateMaster.StateID = tbl_EmployeeStructure.StateID If the employee is present then drop table; create the table worker (id INT, joining_date DATETIME); inserting in `Employee` (` id`,...

android - Set textview width 70% of screen size in linear layout -

Image
मेरे पास इसमें 2 बटन के साथ एक सरल रेखीय लेआउट है। मैं layout_width = "fill_parent" लेकिन मैं चाहता हूं कि बटन को स्क्रीन आकार के 70% पर कब्जा करना चाहिए और साथ ही मैं उन्हें केन्द्रित करना चाहता हूं। मैं इसे कैसे प्राप्त करूं ?? यह अब ऐसा दिखता है। मुझे ऐसा कुछ चाहिए। संपादित करें: XML कोड इस प्रकार है: & lt; ? Xml संस्करण = "1.0" एन्कोडिंग = "यूटीएफ -8"? & Gt; & LT; LinearLayout xmlns: एंड्रॉयड = "http://schemas.android.com/apk/res/android" एंड्रॉयड: layout_width = "match_parent" एंड्रॉयड: layout_height = "match_parent" एंड्रॉयड: अभिविन्यास = "ऊर्ध्वाधर" & gt; & Lt; बटन एंड्रॉइड: आईडी = "@ + आईडी / बटन 1" एंड्रॉइड: layout_width = "fill_parent" एंड्रॉइड: layout_height = "wrap_content" एंड्रॉइड: टेक्स्ट = "बटन" / & gt; & Lt; बटन एंड्रॉइड: आईडी = "@ + आईडी / बटन 2" एंड्रॉइड: लेआउट_विड्थ = "भरला_परीर" एं...

How to get the numbers of data row from sqlite3 database in python -

I'm trying to get the number of rows returned from a sqlite3 database in Python, but it seems that The feature is not available: php mysqli_num_rows () in mysql Think of it, though I have prepared a tool but it is a strange one: executing a class, execute sql and give me the result: # of results Conclusions G data = sql.sqlExec ("Choose from user") # Run another query for the number of checks, do not have very good working data copy = sql.sqlExec ("select from user") # insert data Try copy and get the length, I did this because I soon inform # as I execute any work of data, the data becomes zero # It is not very good because someone else Can another transaction on the database if the nick of time # len (list (Detacopi)): The data for m: print ( "Name = {}; Password = {}". Format (m ["username"], me ["password"])); Other: Print ("Query Return Nothing") Is there a function or property that can do with...

javascript - WebIDL defines unsigned short to JS Number type -

I read a document and it explains that the web idl defines the signed map of IDL as JS number. The unsigned low limit ranges from 0 to 65535. JS No. 9 007199254740992 may be 9007199254740992. It literally confuses me with a big riot between these two definitions. Can anyone explain this? Thanks Like Looq Faure-Lacs, JS number comparison of more unsigned miniatures Are complex in There are some types of JS: Undefined undefined Boolean one ???? Wrong, true number one ???? 0, -2.5, infinity, nan string one ???? "Hello" object "{{}, {" key ":" value "}, [1, 2, 3], function () {}, / ^ regexp? $ / The point present here is when you define your web idl in a number, you should keep in mind what you will need for precision and accuracy. So, if you want to do something more for storage If you are doing, declare something like an unsigned low, an unsigned int, which is up to 4,294,967,295. Consider here javascript Pt is not dependent on ty...

r - tapply function complains that args are unequal length yet they appear to match -

Some display to show the failed call, error message, and length in question: & Lt; - tapply (molten $ activity, molten $ theme, molten $ variable), meanwhile error in # tapply (molten, c (molten $ activity, molten $ theme, molten $ variable) ) ,: The length of the length of the argument (molten $ activity) # [1] 679734 length (molten $ theme) # [1] 679734 Length (molten $ variable) # [1] 679734 Dim (molten) # [1] 679734 4 str (molten) # 'data.frame': 679734 Object of 4 variables: # $ Activity: Factor W / 6 level "Walking", "Walking_UPSTAIRS", ..: 5 5 5 5 5 5 5 5 5 ... # $ Theme: Factor w / 30 Level "1", "2", "3", "4", ..: 2 2 2 2 2 2 2 2 2 2 ... # $ variable: factor w / 66 level "TBDACC-finance () - X", ..: 1 1 1 1 1 1 1 1 1 1 1 ... # $ Price: Number 0.257 0.286 0.275 0.27 0.275 ... if you have ? Tapply If you have a look, you will see that X is "a nuclear object, especially a vector...

java - Tic Tac Toe Game -

I am making a tick tac toe game in Java for personal learning purposes, and I Trying to change when the button is clicked, then "o" button from "". Obviously I am not going to go about it properly and some suggestions would be greatly appreciated. When I run the code, I get the error "on java.tv.tvvvtvtmtmtxt". P> // Graphics, buttons and frames import is included java.awt. *; Import java.awt.event.MouseAdapter; Import java.awt.event.MouseEvent; Import javax.swing *; Public static pocket [] [] B = new pocket [3] [3]; Public Stable Zero Playersmove () {b [0] [0] .addMouseListener (New MouseAdapter) {Public Zero Mouseclatic (Mouse Event E) {String Text = B [0] [0] .gate Text (); ("-") {b [0] [0] .setText ("O"); // computerMove ();} and {System.out.println ("choose again"); playerMove ();}} }); } What you want to do is set up a listener in the beginning, Not to call playerMove to call. So something like that ...

charts - Open source solutions to plot and visualize Mysql data -

I am looking for plot, analysis and resolution of the list in my MYSQL table. While I can write SQL queries and need any data, my end users are not technically sufficient to write SQL queries. Is there an app that allows users to create data charts and reports in the MYSQL database through just drag and drawing? It does this but unfortunately there is a paid app. You need a BI tool. Browse through this. It's a community version tool, you can create several types of charts, dashboards.

python - Blender 2.7 MacOS console error -

I am using Blender 2.7 on my Mac (OS 10.9.2) and the console will not open correctly. If I open blender.app/Contents/MacOS/blender, I get a new terminal window, but it is full of a mixture of legible and obscure characters like "Å ?? Ë ?? a ?? Ë ?? a? ? & Amp;; A ?? A ?? H__PAGEZERO__TEXTÃ ?? A ?? " Any print statements or error logs from Blender will not be logged, either thanks: EDIT: I am also new to the terminal and / to use "open blender" Was trying / ingredients / macros directory: p. If you type "./blender" from the parent directory, then it works fine. If anybody can be wondering what is happening or what is the difference between typing "./filename" and "open filename", then it would be horrible. Different resources of Blender need to be run, which are located in binary form in the same folder , It starts with the current working directory to find them when your work starts up Blender In the terminal you ar...

jquery - HTML Object - Make a custom pause/play function -

Good day. That's why I have a player code for .swf and it runs an online game radio. I want to be able to create a stop / play button for this but I do not know how. & lt; Object type = "app / x-shockwave-flash" data = "player .swf" width = "1" height = "1" id = "radioplayer" style = "visibility: visible;" & gt; & Lt; Param name = "allowed screen" value = "true" & gt; & Lt; Param name = "permissions" value = "always" & gt; & Lt; Param name = "wmode" value = "transparent" & gt; & Lt; Ultimate name = "flashvars" value = "duration = 9999 & amp; file = http: //john.caster.fm: 31,433 / listen.mp3 authne58b540a15b87455faa7c768dd8fc024 & provider = sound & amp; amp; volume = 70 & amp; Auto Start = True "& gt; & Lt; / Object & gt; How do I create a play / stop button for it? I ...

Capturing Form Data in Java Servlet - Code hunting as well -

I want some feedback on a particular problem that I am trying to understand. I am trying to create a simple Java web app that will allow the user to enter his zipcode and distance, and Java will capture the servillet and run the data through the Best Buy API, BBi Open, Remix, which provided the closest information to the stores' locations. The Java APIs (provided by the BBC Open) documents present this as an example: import java.util.ArrayList; Import java.util.HashMap; Import java.util.list; Import java.util.Map; Import com.mattwilliamsnyc.service.remix *; Public Class Remix Advancemo {Public Static Zero Main (String [] Args) {Remix Remix = New Remix ("Your Apk"); & Lt; String & gt; Storefilter = new arreelist & lt; String & gt; (); & Lt; String & gt; Product filter = new archilist & lt; String & gt; (); StoreFilters.add ("Area (1120110)"); ProductFilters.add ("sku = 8,982,988"); Try {StoreResponse response = rem...

java - How to prevent Android Studio autocomplete removing adjacent token -

Image
If I'm editing an existing line code in android studio, and accepting an autocomplete, the following Cursor at the right side of the token: Is there a way to disable this behavior, keeping both of the self and the balance of the plan? If you press "Enter", it just pastes it into autocomplete, if you call it "tab" "Then it is replaced, I think that you are always pressing the" tab ", then try" enter "and see how it works. Here is TLDR; Use Enter to insert the selected string at the entry point. Use Tab to change the string located next to the caret with the selected one. Use Ctrl + Shift + Enter to add an existing code to the syntax correctly (add balance brackets, missing braces and semicolons etc.)

apache - Configuring PHP Memcached sessions for clustering -

Let me look at some posts about this already but it can not be found to work I have 2 ubuntu servers, for testing, I have installed the following: apt-get install memcached apt-get install apache2 apt-get install php5 apt-get install -m -p 11211 -l 192.168.0.1 Server 2 -m -p 11211 -l 192.168.0.2 My / etc /php5/apache2/php.ini Server 1 session.save_handler = memcached session.save_path = "192.168.0.1:121211,192.168.0.2:121211" server2 Session.save_handler = memcached session.save_path = "192.168.0.2:121211,192.168.0.1:121211" and / var / www / My small test on session_start (); Echo is a session session saved_handler: A. a????; Echo is a session session save_path: a. Ini_get (one session session.save_pathâ ????) a????; If (isset ($ _ session ['key'])) {resonance â found key: one. ??? $ _ Session ['key']; } And {$ _SESSION ['key'] = a test; The resonance key is set to: a. ??? $ _ Session ['key']; }...

html - A label tag wrapped around a radio button prevents the radio button from responding to a "change" event listener in JavaScript -

Problem I have some dynamically-generated HTML (JavaScript) in which there is a form with some radio buttons in it. I've added event listeners (using the "change" ) to call the function on all radio buttons whenever their value changes I already know that this event only Triggers only when the button goes from " checked " value false to true , and not on the other side To make my code simpler, I've wrapped the input tag around the label tag so that I Can not generate a group of unique IDs for the ID button However, when the label tag is around in the same radius instead of sitting in the form of a radio input, the radio input is wrapped, the "change "Event listener does not answer, even if you click directly on the button. Example I put a JSWD example and showed what I'm talking about. The first group (which does not work) is generated in this way: for (var i = 0; i & lt; 3; i ++) {var label = document. CreateEle...

macros - How to use identifier of view as parameter -

My question is how do I use visual identifier as a parameter? code example: dim DrwDocument DrawingDocument set DrwDocument = CATIA.ActiveDocument dimensions set iParameter as parameter iParameter = DrwDocument.Parameters.Item ("Drawing Sheet.1 \ ViewMakeUp.1 \ Scale ") MyText.InsertVariable as 0, 0, IParameter But how can I access the view identifier and use it as a parameter? Thank you! After OK, if you do this, then you should first create a parameter in DrawingDocument . Object If something happens to your current code then: parameter set identifierParam = MyDrawingDocument.Parameters.CreateString (dim IndetifierParam as "ViewIdentifier") , "A") MyText.Text = "View ID:" 'Note: Excerpt MyText.InsertVariable Lane (MyText.Text), see two spaces with the last character at the end of 0, IdentifierParam' first parameter insert status, The second parameter is how many characters overwrite, the third parameter is No...