Posts

Showing posts from February, 2011

User defined functions variable to be accessed by rest of the other functions in python without use of classes -

वर्ग अनुक्रमणिका: def gET (स्व): वापसी 'हैलो' डीईएफ़ पद (स्वयं): डेटा = वेब डेटा () parse_data (डेटा) डिस्प्ले () डीआरएफ parse_data (डेटा): डेटा_part = ["abc", "bcd"] रिटर्न डेटा डीईएफ़ डिस्प्ले (): डेटा = "यहां मैं एक ही डेटा वैरिएबल का उपयोग करना चाहता हूं जो कि भेजा गया था Parse_data () "डीईफ़ मुख्य (): एपी = वेब.एप्लिकेशंस (यूआरएलएस, ग्लोबल्स ()) ऐप.रन () डिस्प्ले () अगर __name__ ==" __main__ ": मुख्य () मुझे अजगर में अन्य कार्यों के द्वारा एक वेरिएबल का उपयोग करना चाहिए जो कक्षाओं के उपयोग के बिना, मैं यह कैसे कर सकता हूं? मैं एक वेरिएबल का उपयोग करने की कोशिश कर रहा हूं जिसका उपयोग बाकी कार्यों के लिए किया जाता है। आप वैश्विक चर का उपयोग कर सकते हैं । उदाहरण के लिए: वर्ग अनुक्रमणिका: डीईएफ़ जाओ (स्व): वापसी 'हैलो' डीईएफ़ पद (स्वयं): डेटा = web.data () parse_data (डेटा ) प्रदर्शित करें () डेटा = "आपके डेटा" डीआरपी parse_data (): यदि आप 'डेटा' चर को यहां संपादित करने जा रहे हैं तो वैश्विक डे...

Touch down / touch up in IOS using xcode and swift -

I have to apply a thumb print scanner fast with the encoded. I found the gesture identifier but I remember the point where I can respond to the "On-TouchDown" and "On-Touchup" events. The underlying object is a UIImageView. I am quite new to this and I can not find the proper documentation on this. Thank you very much With current iOS devices, the following hardware is supported: A screen which is multi-touch aware A home button that is capable of reading thumbs prints. So it is not possible to apply a thumb-print scanner to a UIImageView or any UIView. You can however answer the touch, multi touch, acceleration track, speed, movement etc. Answer to touch the event: There are some ways to respond to touch events UIButton: You can add a UIButton as a subview or in your view, shape it to take the size of the parental view size. Then use the [button addTarget: self action: @selector (some method) control event: UIControlEventTouchUpInsid...

c++ - What is the use case of declaring functions methods within bodies other functions? -

मैं इस टुकड़े को FreeRTOS स्रोत में मिला: शून्य vApplicationIdleHook (शून्य) {/ * सरल ब्लिंकी डेमो निष्क्रिय हुक का उपयोग नहीं करता - पूर्ण डेमो करता है * / #if (mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 0) {बाहरी शून्य vFullDemoIdleHook (शून्य); // * main_full.c में कार्यान्वित। * / VFullDemoIdleHook (); } #एंडिफ} एक तरह से फ़ंक्शन / विधियाँ क्यों घोषित करेगा? लाभ क्या है? मैंने जावा में भी समान कोड देखा है। मैं मान रहा हूं कि यह एकमात्र स्थान है प्रोजेक्ट जहां vFullDemoIdleHook का उपयोग किया जाता है, इसलिए यह स्पष्ट है & amp; केवल कुछ ही लाइनों की घोषणा और फ़ंक्शन को कॉल करने के लिए संक्षिप्त। घोषणा कहीं और लगाने का क्या फायदा होगा? वैकल्पिक पर विचार करें ... ऐसा शायद संभव है कि आप क्या देख रहे हैं: / * सरल ब्लिंकी डेमो निष्क्रिय हुक का उपयोग नहीं करता - पूर्ण डेमो करता है * / #if (mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 0) बाहरी शून्य vFullDemoIdleHook (शून्य); #endif void vApplicationIdleHook (शून्य) {/ * सरल ब्लिन्की डेमो निष्क्रिय हुक का उपयोग नहीं करता है - प...

Android NDK r10c build error for arm64-v8a: No such file or directory #include <sha1.h> -

I have a native C code, which calculates SHA1 digest, it is compiled without problems with NDK R10b But I get this error with NDK R10C: [compiled compiled by: my library & lt; = My-library-jni.c {PATH_TO_THE_FILE} / my-library-jni .c: 3: 18: Fatal error: sha1.h: No such file or directory # is included & lt; Sha1.h & gt; I am updating NDK R10 C to compile for 64-bit platform. It seems that the 64-bit header does not include sha1.h. Why? And how can I fix it? Can I get some implementation of SHA1 and include it in my project? Edit I ended up using the code. It worked fine for me. I think you have NDK R10b in 64 bit mode because me sha1.h for arm64-v8a The header is not even found. It seems that SHA1 was not explicitly supported - it was not mentioned anywhere in the document. And it is not mentioned in the "static API" documentation (and I think it can be technically not considered as part of the library). You also include MD5 functions in li...

javascript - ng-click in slickgrid formatter doesn't work -

I'm a newbie in angular JS I used to experiment with angular JSU-router and a slimgrid app.controller ('Customer Controller', [a] To Call a Web Service and Delete a Line '$ Scope' , '$ Compilation', 'customer service', work ($ amount, $ compilation, customer service) {// clients to get $ scope.getCustomers = tasks () {CustomerService.getCustomers ($ ("# userId") ") .val (), $ scope.getArchived). Then (function (the customer S) {dataView.beginUpdate (); DATAView. CATITIES (CUSTOMER); DATAView .Update (); grid.invalidate ();}, Function (Reason) to the customer $ scope.archiveCustomer = functionIt (customerId) {if (Confirm (Translate ("LBL_DELETE_CUSTOMER_CONFIRMATION"))) {CUSTO MerService.archiveCustomer (customerId) .then (function () {$ scope.getCustomers ();}, function (reason) {note ({text: reason, type: 'error '});});} Description is false; // create grid var dataview, grid; var option = {enableCellNavi...

google apps script - Lock Service getScriptLock() does it work in libraries -

I am creating a script library which will be used by several other scripts. These scripts will run together and I need to control access to a resource, access to a spreadsheet. The documentation is not entirely clear to me. Example LockService.getPublicLock (); refers to the method. I have created a library to test LockService in which there is a method that receives a lock: This.doTest = function (testClient ) {Var lock = LockService.getScriptLock (), success; try {lock.waitLock (1000); Logger.log (testClient + 'received lock'); Utilities.sleep (2000); Lock.releaseLock (); } Hold (e) {Logger.log (testclient + 'lock could not be obtained after 2 seconds'.); } } The test library is used in two other test scripts. If I run test scripts, then both scripts sometimes fail to get a lock. This is what I want to see. But the example in the documentation refers to another method and the library has been used in various scripts, I would like to ensure that th...

c# - Change color of certain chart points -

मुझे एक चार्ट में रंग बदलने में समस्या है निम्न कोड: चार्ट 1। श्रृंखला ["टेस्ट"]। रंग = रंग। Int start = array1.लांबी; (Ii = 0; i & lt; chart1.Series ["टेस्ट"]। अंक.काउंट; i ++) {यदि (i & gt; = प्रारंभ) chart1.Series ["टेस्ट"]। अंक [मैं]। रंग = हरा रंग करें; चार्ट 1। श्रृंखला ["टेस्ट"]। अंक.एडीएक्सआई (एक्स_एक्सिस [आई], वाई_एक्सिस [आई]); } चार्ट 1। श्रृंखला ["टेस्ट"]। अंक। डेटाबंड XY (x_axis, y_axis); चार्ट 1। श्रृंखला ["टेस्ट"]। चार्ट टाइप = सीरिजचार्ट टाइप। स्पलाइन; इस मामले में: मेरे पास दो सरणियां हैं- एक्स-अक्ष के लिए एक और y- अक्ष के लिए एक है। मान लीजिए कि उनके पास लंबाई 32 है। मेरे पास 12 की लंबाई के साथ एक अन्य सरणी (महत्वपूर्ण नहीं) है। अब मैं चाहता हूं कि मेरा ग्राफ 12 वीं बिंदु के बाद रंग बदलता है। मैं उसे कैसे कर सकता हूँ? उपरोक्त कोड काम नहीं करता है ग्राफ़ एक रंग में रहता है। आप प्रत्येक डेटा के लिए लूप दोहराकर कुछ डेटा बिंदुओं के लिए रंग बदल सकते हैं आपके डेटा को बाध्य करने के बाद डेटा बिं...

perl - JSON Data output -

Below is a Perl code with JSON data: Use data: Dumper; Use JSON; "Episodember": "101", "Episodember": "103511", "airdate": "08.13.97", "Episode Number": "$ 1" Available ":" True "," When ":" 08.13.97 " "Episode 2": {"Title": "Weight gain 4000", "id": "103516", "airdate": "08.20 97", "Episode": "102", "Available": " "$ True", "when": "08.20.97"}}; My $ resp = JSON :: jsonToObj ($ var); Print dumper ($ resp); The output is: $ VAR1 = {'episode1' => {'when' => '08.13.97 ',' episodember '=>> 101', 'airdate' = & Gt; '08.13.97 ',' title '= & gt;' Carton gets an anal test ',' id '=>' 103511 ',' available '=> true'}}...

c# - Is the Cyclomatic complexity value shown by Visual studio ILCyclomatic complexity -

I have run code analysis on my solution using my studio 2012 and NDepend For MethodA Visual Studio shows complexity as 105 and NDPer shows it as 12. However, the ILCclammatic complexity in NDAP is 112. Does this mean that the complexity shown by Visual Studio is ILCyclomatic complexity or is there any necessary configuration change besides what I believe: (

c++ - Monitor change detect CMD call -

परियोजना सेटअप एक धागा जो निरंतरता की जांच करता है कि क्या है या नहीं, मॉनिटर सेटअप में किसी प्रकार का परिवर्तन NVidea फ़ंक्शंस का उपयोग करना मैं देख सकता हूँ कि क्या कोई केबल प्लग-इन या वीडियो कार्ड में प्लग या आउट नहीं है या नहीं। अगर कोई नया जुड़ा हुआ है - >> निम्न कोड कॉल करें: सिस्टम ("displaySwitch.exe / extend"); मैंने भी व्यवस्थापक अधिकारों के साथ भागने का प्रयास किया (ऑप्ट। 1. प्रोग्राम को व्यवस्थापक के रूप में प्रारंभ करना; विकल्प 2. निम्नलिखित में दिखाए गए कोड के साथ): प्रणाली ("रन / उपयोगकर्ता: & lt; admin-user & gt; \" displaySwitch.exe / extend \ ""); इसके अलावा मॉनिटर सेटअप में 2 डीवीआई, 1 एचडीएमआई और 1 डीपी बंदरगाहों का उपयोग किया जाता है। अगर मैं अपना कोड जांचता हूं, तो एक सेटअप होता है (मैं केवल 1 डीपी और 1 डीवीआई छोड़ देता है) जब उपर्युक्त सिस्टम फ़ंक्शन कॉल कुछ भी नहीं बदलेगा अन्य मामलों में कोड अच्छा चलता है, मैं देखता हूं कि इसका क्रियान्वित किया गया है और परिणाम भी अच्छा है। इस मामले में जब कोई...

android - Base64 special characters new File -

I'm working on Android, developing an app in which I'm uploading files to the Dropbox as I do this file I do not want to see the title, I am encrypting them and removing the result as a byteyer. The problem is that when you use sentences: string filename encrypted = base 64. encodeToString (encrypted, base 64.default); File file = new file (mDirectoryPath + "/" + file name encrypted); In addition to the string "fileNameEncrypted" slash back and forth and possibly other characters that are not allowed for the file name, along with the forward slash subfolders are confused with it. How can I solve this problem? PS: My goal is that the file name can not be read in the Dropbox app. [edit the entire message according to comments] Because the base64 encode is special Using char (/) and lower / upper case four, it does not correspond to file name for some OS like windows. Where "aaa.txt" file is equal to "AAA.txt". Base 64...

javascript - ReferenceError: event is not defined on keyup event in firefox -

Why does this code not work in Firefox? I want to create a switch image in the gallery on the keypot event. I had read similar problems and answers, but nobody helped me JQuery 1.4.4 My code: $ ('body'). Live ('keyup', function (e) {if (e.keycode == 37) {$ ('. DaPrev'). Click ()} and if (e.keycode ==39) {$ ('. DaNext When I press the console: Reference error: Event is not defined I have not named any event in your code, and it looks valid. However, there are some things you can try: Use .delegate Try a new version of jQuery and switch. .delegate: $ Representative (selector, event type, handler); ie. $ Representative ("div", "keyup", function (e) {...});

extjs - File Upload Form not going into success when successful -

Image
I am submitting a file in a dialog in my form. It is being stored correctly; I get the file perfectly accessible on the server via URL. Once everything is correct on every server, we should supply 'success' = true in response. This is what I did, and this is what I am coming back to: My code looks like this though, though I return success = true, it always goes to Case Ext.form.action.Action.SERVER_INVALID . frm.submit ({url: URLs.fileUploadURL, waitMsg: 'uploading file ...', success: work (form, action) {warning ('success',' Process file server ');}, failure: function (form, action) {warning (' unsuccessful: action failer type '+ action failer type) switch (action failer type) {case Ext.form.action.action .CLACININVALID: Ext message.lert ('Failure', 'Form fields can not be submitted with invalid values'); Pause; Case Ext.form.action.Action.CONNECT_FAILURE: Ext.Msg.alert ('Failure', 'Ajak Communicati...

Performance of Foreach and Template binding in knockout -

Looking at performance issues with fair and template binding. In our single page app, we have planted nested / project / templates. Below is JSERFURL, which gives information about a simple array without the future and without one; Where the title is better than testing "nested foreach" binding with the "Extended loop markup". It was also found that to get nested and expanded, templates that process through the "Project through template" test takes more time than those without any front. jsperf url: Performance with beat 3.1.0 The issue of performance is also present with the Knockout 3.2 version. Want to know how to reduce load time with nested forward and / or templates binding. According to the line outlined by the swan, if you really want to squeeze the most performance Viewing Client-Side is working directly with a custom binding archive, creating HTML as a string and is injected using something like element.innerHTML . Below is a ...

proportional stacked barplot with multiple variables R -

Image
I have a table in R, which looks like this. Columns are men and women, with rows 4 variables, both of which are numerical & amp; Yes. If the price is actually the ratio, then the value 1 in column 1 and 2 is the sum of 1, because it is the sum of the sum & amp; A variable 1. propvars prop_sum_male prop_sum_female 1_no 0.9 0123457 0.9 62 9 62 9 6 1_yes 0.0 9 876543 0.03703704 2_no 0.88750000 0.9 62 9 62 9 6 2_yes 0.11250000 0.03703704 3_no 0. 88750000 1.00000000 3_yes 0.11250000 0.00000000 4_no 0.44444444 0.40740741 4_yes .5,55,55,556 0.5, 9 2,5 9, 25 9 I have four I want to create a stacked barplot for the variable I used barplot (propvars) which gives me this: But you can see the difference between male & amp; nbsp;; Women's right, but he puts all the variables top of each other and I do not stacked on top of Yes / No one another with the needs of four different bars next to each other, every bar 4 variables . So the Y-axis should now go from 0 t...

java - Build JDocs without source -

I have an artificial server () that I use to deploy some third party libraries, There is a third party library which is provided with a library with a directory of doctors with Jedidas. I really want to compile above the dock directory in a jar, so that I can pull JDocs from artifactory without having to distribute the dock directory independently below my team (3rd party jar with). For the tutorials I have prepared, it is suggested that you have source files to do this ... which is obviously not mine. The things I've seen for the source / project are needed. I have tried using javadok -d. \ Docs Source \ Java \ sections \ library.jar -subpackage com.foobar but it borks. I have tried to use Eclipse to export JDocs as an integrated jar, but this is not possible or I lack a few runs. your third party javdoc dir structure looks like this 3rd -party-doc / + - index.html + - index -all.html + - ... You can create a javadoc jar with the following command jar ...

sonarqube OutOfMemoryError (PermGen space) -

I use Sonarqube 4.5.1 (new install) with jdk7u55. Founded on Windows Server 2012 (internal storage of 4 GB) I get this message on the server where the sonarqubay-webserver is installed. > An error occurred while clicking on the pages of sonarqube's webserver, I tried to increase value wrapper.java.maxmemory = from 32 to 512 to 2048, but the outoffemmyrrouting is possible. Full error message: Exception in thread "http-bio-10.2.31.127-80-exec-3" exception in thread "http-bio -10.2.31.127-80-Act-1 "2014.11.04 14:19:02 Error Web [Rail] Java :: Java Long :: OutofMemory Error (Perm Gain Space): Exception in Thread" http-bio-10.2.31.127 -80-Exec-2 "2014.11.04 14:19:06 Error Web [OSUI. JRUK Farewell] Failed to render: Localhost / Sonar / drilldown / number / 10000? Intensity = In the main paragran location app / view / layout / _breadcrumb.html ARB As you can read in, specify the JVM parameter for the correct location Web server for ...

Highcharts change pointPlacement through javascript -

I want to change the point placement of a series via javascript. Is this possible? series: [{name: 'margin', color: '# FF 3300', yAxis: 1, data: ....., point of view: 0.15}] / Pre> Yes you can use any parameter and change it.

python - update multiples fields with sql alchemy -

उपयोगकर्ता = {"ईमेल": "my_new_email@example.com", "उम्र": 20, "शहर ":" देश ":" ब्रिटेन "," भाषा ":" अंग्रेजी "," पेशे ":" डेवलपर "," नियोक्ता ":" बीबीसी "} व्यवस्थापक = उपयोगकर्ता.कुड़ी.फिल्टर_बी (उपयोगकर्ता नाम = 'व्यवस्थापक ') .first () admin.email = user ["email"] admin.age = user ["age"] admin.city = user ["city"] admin.country = user ["country"] admin.language = उपयोगकर्ता ["भाषा"] admin.profession = उपयोगकर्ता ["पेशा"] व्यवस्थापक। कर्मचारी = उपयोगकर्ता ["नियोक्ता"] .... .... db.session.commit () इस अंतर्निहित अद्यतन से बचने का कोई तरीका है? मेरा क्या मतलब है, यह ठीक काम करता है यदि अद्यतन केवल एक या दो फ़ील्ड है, लेकिन डेटा के बड़े सेट के साथ बड़े पैमाने पर अद्यतन अभ्यास नहीं है। आप केवल उस शब्द को अद्यतन खंड में प्रदान कर सकते हैं: डेटा = {" email " : 20, ...

objective c - Siri Dictation Bypasses UITextView:shouldChangeTextInRange Delegate -

मैं (BOOL) textView का उपयोग करता हूँ: (UITextView *) textView चाहिए ChangeChangeInRange: (एनएसआरेंज) रेंज प्रतिस्थापन प्रति: (NSString * ) UITextView में प्रत्येक चरित्र इनपुट पर रीयल-टाइम रिजक्स सत्यापन करने के लिए । यह अच्छी तरह से कार्य करता है और चिपकाए गए टेक्स्ट को भी संभालता है जिसमें अमान्य वर्ण शामिल हो सकते हैं। लेकिन सिरी इस तरह की चीजों की परवाह नहीं करते हैं और सीधे अपनी कूटलेख को सीधे (शून्य) टेक्स्ट व्यूडिड चेंज: (UITextView *) theTextView में, कोचिंगटैक्स्टइनरेन्ज प्रतिनिधि और सत्यापन जांच से बचने के लिए। यह मुझे एक सुरक्षा दोष की तरह लगता है और एपीआई प्रवाह को तोड़ता है जो हर दूसरे इनपुट चैनल का अनुसरण करता है। किसी भी विचार से कि मैं सिरी डिक्टेटेशन कैसे प्राप्त कर सकता हूं shouldChangeTextInRange कॉल करने का अनुपालन करने के लिए मुझे लगता है कि यह जवाब है .. ..if: - (BOOL) पाठदृश्य: (UITextView *) textView sh OuldChangeTextInRange: (एनएसआरेंज) रेंज प्रतिस्थापन प्रतिलिपि: (NSString *) पाठ को कहा जाता है तो यह एक उपयोगकर्ता इनपुट है इसलिए...

PHP doesn't see 2 equal strings -

So I'm busy on the verification system when the player of the game puts a sentence in his position: HT -N5I4-S3ZI-GU6A and my script checks whether this is similar to the code in my DB. If so, then this has proved to be their account. Because I have experienced that people make accounts under fake names. When I resonate the code in my DB, it resonates: HT-N5I4-S3ZI-GU6A and my test players in mission One: HT-N5I4-S3ZI-GU6A This is the exact code, but when I want to compare them like this: ($ _ session ['user' ] ['Email_activation'] == $ functions-> getMotto ($ _ session ['user'] ['username'])) {resonate "works"; } Else {echo "does not work"; } This ehos 'does not work' Did I use the wrong equation operator? Or any other mistakes? Thanks Try this code if ($ _ session ['user'] ['email_activation'] === $ functions-> getMotto ($ _ session ['user'] ['user name']...

ruby on rails - Doorkeeper and Devise gets 401 Unauthorized on POST -

I'm trying to create an API using Rail to use with the Android app, I have divisions and gatekeepers Is configured, but I think I forgot something ... My Controller has this code: Gatekeeper: To: all with protection_from_forgery :: Null_session response_to: json in the header authorization : Bearer b92d41ffd0723a77fcb8acd03e6e5be3b2f3036f07c9619f5bfb62611e31f42d When I use the GET method it works, but do not post or delete When I try to post something in my controller I get this error {"error": "You must sign in or sign up before continuing."} Any suggestions? updates concierge RB concierge. Configure orm: active_record resource_owner_initator launches current_assirer || Warden Authentication! (: Scope = & gt ;: UURORI) End Resource_with_frame_recredit. Route | request. Pirum [: USURI] = {: Email = & gt; Request.params [: username],: password = & gt; Request .premium [: password]} request.env ["devise.allow_param...

visual studio - Is there any way in VS 2013 to have Git Settings by repo/solution? (and not only one global) -

I created VIS 2013 in GIT support. I would like to participate in multiple projects like multiple GIT servers such as bitbucket.org github.com anyhost.visualstudio.com GIT) Other hosts. Visual Studio.com (using GIT) Team Explorer's VS In the GIT settings page of 2013, a 'User Name' and 'Email Address' setting Although these settings are global, I have different user names (and maybe different emails) in different servers listed above. Apart from this, it is also possible that *. I have different entries in Visualstudio.com (such as any host .vizalstaadio.com, and otherhost.vidualstudio.com). I have separate entries for different reasons, and this is the reason that the email address in the separate email address if the email metinford used to match the login If not, then the commute history will not recognize me, there will be no avatar. Is there any way to set up a username and email address in Meta information instead of a global setting / repo c...

gradle error "Execution failed for task ':app:compileDebugJava' " while build groovy in android studio -

I found an error while creating zero code in Android studio. Error message C: \ Users \ Administrator \ Desktop \ Lytestll0 \ apps \ src \ main \ java \ Gzzhe \ com \ lytest110 \ MainActivity.java: 41: error: can not symbol Find Log.d ("lytest110", GroovyTest.getMsg ()); ^ Icons: parameter groveest test: class main activity 1 error failed: app: compilation debuggro fail: failed with build exception. My build.gradle: buildscript {{treasures jcenter ()} {dependence classpath 'com.android.tools.build:gradle:0.13 .2 'Classpath' m Champio Gradell: Gradli-Groove-Android-plugin: 0.3.4 '// Note: Do not depend on your application here; They are individual modules build.gradle files}} All Project {repositories {jcenter ()}} App build.gradle in directory: Apply plugin: 'com.android.application' plugin apply: 'me.champeau.gradle.groovy- Android "Android {compileSdkVersion 19 buildToolsVersion" 19.1.0 "defaultConfig {applicatio...

Extract zipcodes from string and build a select statement in php -

I have a string that I capture with my DB that contains city and pincode information. I want to remove the zipcode (always 5 digits) from it and want to create an alternative statement (using PHP) as follows: ZIP 02118, 02116 ), Chelsea (02150), Rev. (02151) '; & Lt; Gt selection and; & Lt; Option value = "" & gt; Please select & lt; / Option & gt; & Lt; Option value = "02108" & gt; 02108 & lt; / Options & gt; & Lt; Option value = "02112" & gt; 02112 & lt; / Options & gt; & Lt; Option value = "02116" & gt; 02116 & lt; / Options & gt; & Lt; Option value = "02150" & gt; 02150 & lt; / Options & gt; & Lt; Option value = "02151" & gt; 02151 & lt; / Options & gt; & Lt; / Select & gt; Please note that the string can have many towns, zododes, so that the solution is flexible enough to adjust it. Try it out: ...

asp.net mvc - MVC: Complex Array Model Binding Fails -

I'm stuck on this, someone can tell why the lines do not bind? I have tried to submit JSON.stringify and with all types of combinations. I am now running it through unit tests and it is still not binding. var formCollection = New Name Value Collection {{"Purchase Order [0] [Lines] [0] [Part]", "ABD 33-360-2"}, {"Purchase Order [0] [Lines] [0] [Part Details] "," Carriage Assembly (Dynamic) "}, {" Purchase Orders [0] [Lines] [0] [PartISS] "," C "}, {" Purchase Order [0] [Lines] [0] [value {"purchase orderers [0] [line] [0] [number]", "5", "560", "{0} [line] [0] [value] , [Zero]}, "purchase order [0] [line] [0] [lead time]", "0"}, {"purchase order [0] [line] [0] [unit]", "every"} , {"Purchase order [0] [narrative] [0]", "a"}, {"purchase Order "[0] [Quality orange] []", "A"}, {"Purchase o...

python - Arrays indexing -

I have two variables, lim1 and lim2, which are indexed to the matrix I define a part of the matrix which is zero Fill: matrix [j, lim1: lim2] = 0 However, in some cases, the MM1 and MM2 exceed the matrix limit That is, they are less than zero or greater than N (where n = len (matrix [j,:]) In these cases, I should use lim1 or lim2 instead of 1 or nm. The limits of these limits To test, I am currently using the code: lim1 = something like Lim 1 n: lim1 = N lim2 = some if lim2 & lt; 0: lim2 = 0 elif lim2> n: lim2 = n matrix [j, lim1: lim2] = 0 Is there any more compact The method is, for example, in IDL it will be written: matrix [lim 1> 0 0 n = 0 This code repeats a lot, so it will be very useful to type in more concise. Thanks in advance! You can use minimum and max CAP is a value, so the code can be written a little more concise in this way: matrix [j, min (max (0, lim1), n): minimum (max. (0, lim2), n)] = 0

android - Same code gives different result in different Activities while pulling JSON data through AsyncTask -

This is my simple code snippet for dragging JSON data from my local host public Category JSONtest ​​ActionBarActivity Extended {Personal Progress Dialog dialog; String message3; String message_shore; String [] items; String [] short_items; TextView TV; @ Override Protected Zero (Bundle Saved Instantstate) {Super. NET (Saved Instantstate); SetContentView (R.layout.activity_jsontest); String localhost = "http://10.0.2.2/example/json/notification.php"; Tv = (TextView) findViewById (R.id.textView1); New ReadJSONFeedTask () Executed (localhost); } Private class readJSONFeedTask AsyncTask and lt; String, zero, string & gt; {Safe on xxaxite} {Super. Prairac (); Dialog = new progression (JSONtest.This); Dialog.setMessage ("Downloading information please wait ..."); Dialog.setIndeterminate (false); Dialog.setCancelable (incorrect); Dialog.show (); } Protected string doInBackground (string ... url) {returns jasonfid (url [0]); } Secure Execute on zero (string resul...

Is it possible to add user tracking method in EDM (Electronic direct mailer) Email click? -

This is the scenario: We have created an email template that has two option buttons: "Yes" & Amp; "No". We send this email template to a group of user email lists. After that, can we track the event where a recipient clicks on the Yes button or Not button To find out how many recipients click on the Yes button or No button Had it been done, how can it be used? How difficult is it to track the selected option / not created by each user? Which Tracker is Favorites: Database Tracker, Google Analytics Tracker, Mailchup or Other Third-Party Web Services? With Google Analytics, you can manually tagging campaigns, Specify the query parameters that the query parameters will track back to your Google Analytics data, and tell you which buttons were clicked. This is an easy way because you make specific URLs for each button, and then embed those URLs into an email template for each button. Here is the URL Builder site:

Get HttpContent from HttpObject Netty - Java -

I am working with Neti. I have a HTTP object and I need content (HTTP content). An artist does not work There are some subdirectories I'm among them and generally represent the HTTP message header And represents HTTP content data. Depending on how your pipeline is configured, you may receive: which implements HTTP message and HTTP contact interfaces. After 1st HTTPMASA after 1-HTTont content. Something has been provided by Neti to demonstrate how to control HTBOboxes. The https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/http/upload example shows how to handle the second option described above.

c# - How to get values that are not directly in the list? -

I want to get value from a list based on the selected day. I know this is unclear, but continue to read to understand. I have two lists, rooms and fulllists. Room includes only room numbers / names: 7-04 7-05 7-06 7-07 (Small conference room) 7-08 Big conference room The complete list contains combinations of some strings ('#' is used as a delimiter, this room is also similar to the above list): A simple input is shown in the full list: "# 3 # CISC3345 # 10: 45 # 13: 00 # 0 # Monday: Wednesday # 7-8 # 10/03/2014 " What I want is a new list in which for every room I received before the start of the event and after evnetEnd with the time limit received I want to "9:00" and "22:00". Example example: Example data looks like this (each row has a full list value): Event_ID Event EventStart Eventand Repeat Days Repeat Rooms Dastartes 2 CISC 3660 9: 00 12:30:00 Monday 1 07-07 9/19/2014 4 MATH 2501 15:00:00 17:00 Monday Monday: Wed...

javascript - If there is no content exclusive to Registered Users, is using "Sign in with Google" etc beneficial? -

I am developing a site that will serve as a storefront for a product. If users buy the product, they will need to create an account, fill out credit card information, shipping / billing address, etc. They will be able to enter the future to see past orders. Otherwise, the site should be completely seamless for any and all users. My question is: Is there any advantage to enter users with Google, Facebook, Twitter, etc in this matter? Will this just be enough to create your own custom login form and user accounts? The only benefit I can think is that information will be filled on the order form based on information from Google / Facebook - I am also not sure that this is a capability. Thank you. Your question is basically "there is no reason to use social network sign in place of custom Sign In System "The answer is yes. The teams involved in the API and the amount of time spent during such a security period could also reach your custom implementation. So, you should s...

php - Get image custom post image size - Wordpress -

मेरे पास निम्न कोड है: & lt; div class = "content project clearfix" & gt; & Lt;? Php अगर (है_आरओ ('गैलेरिया')): जबकि (है_आरओ ('गैलेरिया')): the_row (); ? & Gt; & Lt; img वर्ग = "प्रोजेक्ट-आइटम" src = "& lt;? Php the_sub_field ('imagen');? & Gt;" & gt; & Lt;? Php समयावधि; अगर अंत; ? & Gt; & Lt; / div & gt; यह बात ये है कि प्रत्येक img ("कल्पना") के विभिन्न आकार हैं, और मुझे जो आउटपुट मिलता है वह है: & Lt; img वर्ग = "प्रोजेक्ट-आइटम" src = "http: //test.local/wp-content/uploads/2014/11/project-5.jpg" & gt; जैसा कि आप देख सकते हैं कि चौड़ाई या ऊंचाई तय नहीं है। मैं अट्र पर छवि की चौड़ाई और ऊंचाई कैसे प्राप्त कर सकता हूं? आप Getimagesize () फ़ंक्शन - मुझे लगता है कि यह एक gdlib फ़ंक्शन है, जो आमतौर पर किसी भी PHP स्थापना के साथ स्थापित होता है: $ fileInfo = getimagesize (the_sub_field 'imagen')); जो इस तरह के एक...

PHP WebDriver assert a condition? -

I have created a test using PHP WebDriver and Selenium. Now I want to make sure that an element contains a certain text. How do I do that? I tried: $ web_driver-> Wait (3) - & gt; (WebDriverExpectedCondition :: textToBePresentInElement (WebDriverBy :: cssSelector ('cart-price span.price'), '55, 00 € ')); But it always ends in an expired exception, there really is no way to use something like this: assertTrue (WebDriverExpectedCondition :: textToBePresentInElement (WebDriverBy :: cssSelector ('cart-price span.price'), '55, 00 €)) Thanks for your help! If you use PHP, you will have in your PHP.ini file max_execution_time may have to be replaced. This number determines the PHP script can run for seconds.

gnuplot - Plus-minus symbol in legend using terminal pngcairo -

Image
I have a Gnuplot script, which has a key (legend), and I want the legend plus or minus symbol . I found that I can use it (see script below), but it is a bit slow. I can only get it to work if I have an underscore before the title of Legend, it is okay, because I want to use the subscript feature but I want all the "Magazine" to be subscripted. At the time I had this time, only M subscript has been done. I tried to use "Mag" and (Meg) but neither worked. Do you know how I can get a complete magazine? I have tried to remove any unnecessary script, but do not want to remove everything when used to solve this problem: / P> MonitorSys = System ("Exercise | Azak / / * / {sub (/ x /, \", \ "); print $ 1; exit} '') set macros set terminal pngcairo size @ monitor size dabbed enhanced set style line 3 PT1 PS 0.5 LT1 LW 2 LC RGB "green" set encoding ISO_885 9_1 plot path_to_data Using each: 1: 1:18 wl ls 3 heading 'U_mag \ 261...

mysql - Select rows with highest value in a specified column and not unique values in other column should be distinct -

मेरे पास टेबल है गतिविधियों : id last_active login ip 1 1000 user1 192.168.10.10 2 2000 user2 192.168.10.20 3 3000 user3 192.168.10.30 4 4000 user1 192.168.10.10 5 5000 user2 192.168.10.20 6 6000 user2 192.168.10.20 7 7000 user1 192.168.10.10 मैं करने के लिए है सभी ip और एक पंक्ति में अन्य डेटा का चयन करें, लेकिन केवल जहां last_active उच्चतम है तो नतीजा यह है कि पसंद करना चाहिए: 3 3000 user3 192.168.10.30 6 6000 user2 192.168.10.20 7 7000 user1 192.168.10.10 मैं का उपयोग करके इसे की कोशिश की है: ओआरएम :: कारखाना ('गतिविधि') -> ऑर्डर-बी ('अंतिम_एक्टिव', 'डीईएससी') -> ग्रुप_बाइ ('आईपी') -> फॉर_ऑल (); और इसका परिणाम है: सरणी (4) ("id" => स्ट्रिंग (1) "3" "अंतिम_एक्टिव" => स्ट्रिंग (4) "3000" लॉगिन "=> स्ट्रिंग (5)" user3 "" आईपी "=> स्ट्रिंग (13)" 192.168.10.30 ") सरणी (4) (" आईडी "=> स्ट्रिंग (1)" 2 "" last_acti...

email - smtp connection with c# not working -

In my project I need to send mail to the customer. I am trying to do this with achieving the errors of SMTP. Please help me Enter the code here MailMessage Mail = New MailMessage (); Mail.Subject = "Topic"; similarity. Body = "sample mail"; Mail.From = New System.Net.Mail.MailAddress ("mymailID@gmail.com"); Mail.IsBodyHtml = Incorrect; Mail.BodyEncoding = System.Text.Encoding.Unicode; Mail.SubjectEncoding = System.Text.Encoding.Unicode; Mail.To.Add ("myFriendmailID@gmail.com"); Network credential cred = new network credentials ("mymailid@gmail.com", "mypassword"); SmtpClient smtp = new SmtpClient ("smtp.gmail.com"); Smtp.UseDefaultCredentials = false; Smtp.EnableSsl = true; Smtp.Credentials = cred; Smtp.Port = 587; Smtp.Send (mail); error message "No connection can be made because the target machine has actively rejected it 74.125.130.109:" 87 "

android - How to know is connected wifi form mobile hotspot AP or not? -

Hello I'm connecting with a mobile WiFi hotspot ap. How can the connected WiFi network not get mobile hotspot? Can you help with this? thank you in advanced. You can use it from the Help Library. Check for more information. This will return true for both mobile data connections and WiFi networks according to the mobile app.

Data type design in Haskell -

Learning Haskell, I write the formator for C ++ header files. First of all, I parse members of all classes in a-collection-of-class-members , which then goes to the formatting routine. To show members of the class I have data classmember = CMTPF typefif. CMI method | CMOperloadOverload operator overload | CMV Variable Variable | CMFRandCell Friendclose | CMDSTstructor Destructor (Due to some specifications of the formatting style, I need to classify class members like this.) The problem is that I get the "drag" class For example, type a function defined for member code classmember , I have to write a lot of unnecessary code, for example Example formatted class members where format (CMTEPEF TD) = Format Tide Format (CMMIDM) = Format M Format (CMOperator Overload OO) = Format OO Format (CMVaraable V) = Format V Format (CMFAR and Class FC) = Format FC Format (CMDSTstructor D) = Format D Example Confusing Classmember Where - The same story here On the other ha...

python - gunicorn - up and running but doesn't respond -

I'm running my dragon server side with a gun and it works perfectly Today it stopped returning the results for some API calls, with debug as pkill gunicorn and python manage.py runerver 0.0.0.0:xxxx I have 2 questions: There is a way to create a log file of the call (such as the output of the runner ) Do my head There is no way to keep an eye on the groom? use - log file = - to output For example: errors in the command line (stderr), for example: gunicorn base.wsgi -c config.conf --log-file = -

javascript - image returns value “null” using JS -

I have an image in my web page that I want to print using Javascript but the ID of the image in JS Is always helpless please advise me what you should do .. & lt; Div class = "reportFieldsDiv" runat = "server" clientidmode = "static" & gt; & Lt; Table style = "width: 400px; margin: 10px 0px 0px 10px; boundary: 1 px solid black" & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Img src = "~ / images / layout / testbase.jpg" alt = "id badge" id = "main image" /> & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; Div style = "border: 0 px solid black; padding: 5px 0px 0px 280px" & gt; & Lt; ASP: Button ID = "BTNPrint" Runat = "Server" text = "Print" width = "140px" /> & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" & gt; Wind...

c# - OrmLite 4.0.34 Upgrade Error -

This is a problem for OrmLite in Visual Studio 2013. I have just upgraded my OrmLite assemblies through NuGet from 4.0.32 to 4.0.34 and now the following line of code that is generated from the OrmLite.SP.tt file will not work : dbCommand.Transaction = OrmLiteConfig.Tastransaction! = Null? (DBITINSECTION) ORMITE CONFIGING. STRASSENECTION: Null; When I create my project, I get the following error: Servicestock. ORMLite There is no definition for TSTR connections in ORMLite config. What do I need to do to fix this? itemprop = "text"> T4 templates of Ormlightite This change v4.0.34 + .

android - Stop app from launching on AVD start -

I am using an Android emulator and I want to start an AVD but without my app being removed Now, when my AVD starts, my app will also start. Thank you, You're probably "turning on" the app, Do not have to launch "AVD" - That's why the app launches is the Android Virtual Device Manager in the "Window" menu in Eclipse Unless you want AVD to do this (somehow) specially , You can select your AVD from the menu and the lawn without launching any app (which includes any projects you have). Should be capable of doing so.

Usage of response_type="code token" in OAuth 2? -

The OpenID Connect spec indicates that many response types can be added, e.g. response_type = "code token" Now I'm wondering if this is a good request for an authorization code and token requests, if you have a token already Auth code is not superfluous? OAuth 2.0 is a protocol framework, in addition to which other protocols can be created and OpenID Connect such protocols. There is an example. Especially for OpenID Connect, it is understood to use combined feedback types because play has 2 tokens: access_token and id_token. Using "feedback type", the customer can request how each token should be distributed. For example, what you have given, will be given as part of the access_token authentication response via the front channel but id_token "code" for id_token on token endpoint in a backcast call - Will be delivered at the time of delivery. One reason for doing this may be that id_token, which is a signed JWT, is not to be verifie...

apache2 - Apache server easy URL navigation -

This may be the easiest question for you. How can I navigate the Apache server automatically for example by doing so folder: phpmyadmin works like this when I type local host / phpmyadmin The phpmyadmin's login page shows, but there is no folder phpmyadmin in my FTP, so the server knows where the redirect is and my question is how can I get it. Thanks for all the answers in advance Check out this link, this Apache HTTP The server is the official document

javascript - Yodlee REST API - error adding new user "Exception Occurred" -

I am trying to use the Yodlee REST API to access my personal area and add a new user. I am using Register 3 API which I am calling on , Dummy User Credentials are as follows: {cobSessionToken : '10072014_0: 58f1876ccc25848a712fade98d9d31c067cb5b4d322094845b4f8359ee59dc2ba01f1e94cfc9d5bd116d32ff6333f84fd848817b9b20cd9b1e85d50774a0ea32', userCredentials: {LOGINNAME: 'AAAAAA', password: 'BBBBBB', objectInstanceType: 'com.yodlee.ext.login.PasswordCredentials'}, USERPROFILE: {EmailAddress:' ABC@DEF.co.uk '}} I have changed credentials slightly for privacy, and for now I only need to install a new user I am using 5 essential arguments. very useful) I'm getting the error {"errorOccurred": "true", "exceptionType": "exception occurred", "reference code": "_ e37c33ab -b59c-4fbc-ab6a- > --text "itemprop =" text "> You are passing each year in t...

arrays - Sorting coordinates of point cloud in accordance with X, Y or Z value -

A for example, a series of points in 3D (X, Y, Z) Coordinate is: & gt; & Gt; A = [1 2 0; 3 4 7; 5 6 9; 9 5; 7 8 4] A = 1 2 0 3 4 7 5 6 9 5 7 8 4 I want to sort the matrix in terms of values ​​"y" (second column) values. Here is the code I am using: & gt; & Gt; Tic; [~, Public] = sort (A (,, 2)); SortedA = A (loc, :) toc; SortedA = 9 0 5 1 2 3 4 7 5 6 9 7 8 4 Passed time ** 0.001525 ** is seconds However, this can be very slow for a large set of data. I appreciate it if someone knows a more efficient approach. introductory discussion This answer will mainly talk about this How to solve a problem, a computable skilled can tap into the GPU . The problem presented in the question was the solution code - [~, loc] = Sort (a (,, 2)); Sorted A = A (location, :); There are basically two parts - Select the second column, sort them and get the sorted index. In the rows of the input matrix with the index sorted index Now...

Matlab: Is there a command to set 'code folding' preference? -

I'm using the %% command to split my code into blocks for readability, when I block them But I'm not working. Default settings do not give you the ability to multiply them, so my first question is: Can you refresh this setting by command, so anyone who opens my script Is there an option to fold them? My second question is, can I program to set blocks to collapse my code by default? In advance thanks this is actually possible 1) To get the preferences menu, type priority in the command window (or you search under Home 2) Go to Editor / Debugger - > Code folding 3) section

vba - NumericUpDown error message -

I am a newbie for visual basic and I have a question which is expected to be the simple answer. I have two NumericUpDown buttons and I need to show an error message if the second one is larger than the first (IE "value of the second numericcutdown value should be equal to or greater than the value of the first Numeric down "). I know that the second part will be MessageBox How do I tell the visual basic to show only this error message when the circumstances are there? P> Compare just two values, And show your message when the second message is low. If the numeric UPDown2.Value

java - If(condition) else or if(condition), is there a difference in performance when using break? -

The question is a bit unclear, according to the assembly code / performance, these are equal to two: Public Zero Example {to {// some statement; If break (position); // Some statements; } While (right); } versus: public zero example {do} {// some statement; If (condition) {break; } Other {// some statement; }} While (true); } These are equivalent and their results should be in the same bytecoke representation. That's why performance-wise, they are the same. If , else and break are branch instructions in this case, break loop off And the program will run in a separate branch. If the condition is not fulfilled, the second branch is taken, which is the same branch taken by absolutely else . Using the Javac compiler by using the example: int a = System.in.read (); Do {System.out.println ("a"); If (A & gt; 0) {break; } Else {System.out.println ("b"); }} While (true); This produces the following without both and and : gets...

optimization - foreach large select slowing down knockoutjs databinding -

मेरी समस्या मेरे पास एक मेज है जो वही चयन करें जिसमें प्रत्येक डेटा वस्तु के लिए सैकड़ों विकल्प पुनर्प्राप्त किए गए हैं। मैं डाटा के लिए डेटा को पुनः प्राप्त करने के लिए जावास्क्रिप्ट चर में चयन के लिए डेटा को पुनः प्राप्त करता हूं। समस्या यह है कि क्योंकि बहुत सारे विकल्प हैं, 200 + वस्तुओं के साथ एक डेटा सेट को पॉप्युलेट करने के लिए विकल्प 10 से अधिक सेकंड लेते हैं। इस समस्या का निर्धारण करने के लिए मैंने जो किया है मैंने डेटा बाध्यकारी रन का चयन करके बहुत जल्दी निकाल दिया है इसलिए मैं निश्चित है कि यह मेरी समस्या है मेरा प्रश्न इस प्रक्रिया को गति देने के लिए मैं और क्या कर सकता हूं? मेरा कार्यान्वयन & lt; तालिका id = "रिपोर्ट सूची" & gt; & Lt; tbody डेटा-बाइंड = 'foreach: रिपोर्ट सूची' & gt; & LT; टीआर & gt; & LT; टीडी & gt; & Lt; select class = "itemSelect" data-bind = "विकल्प: $ root.selectItemIDOptions, मान: मद आईडी, विकल्पगुण: 'मद आईडी', विकल्प पाठ: 'प्रदायक आईटम', ...

mobile - jQuery .hide() causing a ghost touchstart "click" of 2nd button -

I have two buttons on one page, I need to hide a "count" button so that it does not have to be repeated click But instead the user selects the "reset" button. This works very well if both buttons are being shown, but if I hide the calculation button, once it finishes its work, then it automatically executes a reset button Is doing, but still no reset button is being clicked on. This only happens on touch devices . It works fine when it comes to a browser, this is the only touch device (eg, iPhone) where the problem is occurring. any clue? I'm using jquery-2.1.1.min Here's my count button: $ (document) .on ('touchstart click', '# Ccatulate ', function () {// do stuff // hide button Now we are done so that users do not click on $ (' #calculate ') .hide ();}); Here is my reset button: $ (document) .on ('touchstart click', '#reset', function () {$ ( "Input.form-control") .val (0);}); Here...

java - Android App quits if you push a button to go back to MainActivity -

I have started preparing an Android app with Android Studio. I created a button in MainActivity (and Android: onClick = "page2") which links to the main activity in the main activity with the following code: Public Zero Page 2 (View View) {SetContentView (R.layout.activity_page2); } So far it works well and I can change from mainActivity to Page 2 Activity. Now I tried to make a button on page 2 to link back to main activity, but when I start the emulator and click on the app crash button .. Any suggestions what's the problem? This is the reason why you are not actually starting a new activity That the app stops when you press back from the main activity, implement the onClick method to start a new activity on the button. Something like this: mButton.setOnClickListener (see new OnClickListener () {public void onClick (see v) {intent = new intent (getActivity (), ActivityToStart.class); // intent Depending on your needs based on your needs based on ...

c# - Is it possible to get the bottom pixel in iTextSharp -

I am trying to design a footer, but the footer should be full on every single page. Is there a function to capture the bottom of the page? After that I can reduce some pixels and add my footer to it. int bottom = document.GetBottom (): ct.SetSimpleColumn (20, 20, 0, below-20); something with that line? Although only the pseudo code is. iTextSharp provides document documentation. PdfContentByte cb = wri.DirectContent; Column reader CT = new column text (CB); The phrase myText = new phrase ("footer here", fontfacture.Get Font ("Ariel bold", 10.0f, font .bind, base collar.black)); Float text width = myText.Font.GetCalculatedBaseFont (wrong) .GetWidthPoint ("AASCTT • 1444I Street, NW • 700 Suite • Washington • DC • 20005 • (202) 449.1099 • info@aasect.org", 10.0f); Ct.SetSimpleColumn ((Doctor / Write / 2) - (TextView / 2), 1, (Doctor Right / 2) + (TextView / 2), Doctor Batam); Ct.AddText (myText); Ct.Go (); This 'stage' cr...

html - Bootstrap v3.3.0 Columns Too Wide -

I've really been disappointed about this issue, have searched many options, no one does the work, and Have more thoughts about it in the heart. There is a website in question. Here, I have a lot of problems in getting columns on the mobile. Yes, they are being properly piled up, however, it is not certain what is it because it is very widespread. Below is a direct snippet of code in the area in the question. Classes to change the background color are only background-color: # D8D8D8; . & lt; Section square = "statistics" & gt; & Lt; Div class = "container-liquid" & gt; & Lt; Div class = "line-fluid" & gt; & Lt; Div class = "col-md-4" align = "center" & gt; & Lt; Span class = "fa-stack fa-4x" & gt; & Lt; I class = "fa-fa-circle fa-stack-2x turquoise" & gt; & Lt; / I & gt; & Lt; I class = "fa fa-code fa-stack-1x fa-inversion" & g...

swagger - Is there an automated way to document Nancy services? -

क्या कोई नैन्सी सेवा के लिए स्वगर्जर प्रलेखन (या समान) को स्वतः उत्पन्न करने का कोई तरीका है? मैंने पाया, लेकिन इसका उपयोग करने के तरीके पर कोई जानकारी नहीं है और डेमो आवेदन प्रलेखन प्रलेखन प्रदर्शित करने में प्रतीत नहीं होता है (यदि ऐसा होता है, यह स्पष्ट नहीं है)। किसी भी मदद की सराहना की जाएगी। धन्यवाद! मैं यहां से लेखक का उत्तर उद्धृत कर रहा हूँ स्थापना होना चाहिए वास्तव में सरल है, बस NuGet पैकेज को नीचे खींचें, अपने मार्गों का वर्णन करने के लिए मेटाडेटा मॉड्यूल जोड़ें और / api-Docs को दबाएं। यह आपको JSON प्राप्त करना चाहिए। यदि आप स्वैगर-यूई भी जोड़ना चाहते हैं, तो आपको मैन्युअल रूप से अभी भी जोड़ना होगा।

ruby on rails - Use Devise without a password -

Is there a way that I can ask for a password not to use a password? I am using LDAP with DDS so that the encrypted password field is a vain column (password stored in the LDAP directory). If I delete the encrypted_password column and then add some dummy accessories to my model def encrypted_password "" end def encrypted_password = dummy and I get rid of the column in the database at least. However, when I make new users, I also have to give a dummy password User.create (: first_name = & gt; "Dummy ",: Password =>" dummyPass1 ",: password_confirmation = Is there a setting which Cleaner will create? You can take "database_authenticatable" from the devise config line in your user model, and Can completely drop down the encrypted password.

unity3d - Command line console for Unity 3d C# -

Is there a command-line console that I can do with trying the lines of code in Unity? Something like Chrome console for JavaScript, or running Python on the command line? I'm on Windows 8 I have seen an instant window in Monoidwell, but this debugging was not working without a session, and when I was debugging, it was said that when this application is running: / P> & gt; Expression can not be evaluated while using this application. & Gt; This debug session did not start It probably wanted to be on a breakpoint, which was not clear to work and when I tried various ideas, it had crashed. To experiment with CDX etc. I simply use the console independently from debugging. What is the easiest way to bring the console to execute the lines of the #acity code?

Initializing structs in Go -

Is this valid syntax for starting a straight line in Go? I get the actual error message "Syntax Error: Unexpected}" field id = . Maybe you can not start anonymous strokes in this way? There is no guess for you! name: = "a" ltype: = "b" value: = "c" id: = struct {name, ltype, value string} {name, ltype, value}

javascript - Media print css not working in IE11 print preview -

I have a page with CSS, to customize the print, I have some @ media print style in the same CSS file I work perfectly fine, but while printing, with IE 11, I realized that the preview works like media print style is not considered. If, on the other hand, I define a new CSS style and add it as a print stylesheet, even then the preview works fine (though it is applied to duplicate in many CSS styles defined in the CSS stylesheet I do not want to change in print). I do not know if this can be of any help, but the way I print the page is by calling the Javascript function which only selects the content of my html page (#content ) And prints it (a copyright notice and logo are also added at the bottom of the printed page) function print () {var body = document .getElementById ('content ') InnerHTML. Var tmpWin = window.open ('', '', 'width = 640, height = 480'); TmpWin.document.open ("text / html"); TmpWin.document .write ("& lt; h...