Posts

Showing posts from January, 2012

java - how to set on click method for text inside dialog -

I have a dialog in which TextView has a number inside the textView, so I want to set the onClick method for TextView I want to use the call method to call numbers inside TextView Inside the dialog xml file I set the textview below. + ID / Image "Android: onClick =" no1 "android: clickable =" true "/> And this is my dialogue last dialog dialog = new dialog (reference); Dialog.setContentView (R.layout.pop); // Pop My Dialog is the xml dialog. Sitetle ("phone call"); Textview text = (textview) dialogue.fidvibid (rdtext1); Text.setText (value [0]); /// I am calling number from ARAR Public Wide Number 1 (see V) {intial dial = new intent (); Dial.setAction ("android.intent.action.DIAL"); Dial.setData (Uri.parse ("Telephone:" + values ​​[0])); StartActivity (dial); } But the onClick method (no1) is incorrect, it says, "There is an invalid type for zero zero variables" How do I work in. Can I correct the dial...

c# - How to create or render a List of entity for another entity in ASP.NET MVC 5? -

Image
How can I provide a list of tags (metrics) for the location of this model in my application: I am using entity framework 6.1. I want to save a list of tags against a place and look back in it and I'm not able to do it! Public class tag {[key] [Database Generated (Database Generated Opinion. IDTT)] Public Virtual Ent ID {Received; Set; } Public Virtual String {get} Set; } // Navigation Public Virtual Location Location {get; Set; }} Public Square Location {[Key] [Database Generated (Database Generated Operation Identity)] Public Virtual In Place Locations {Received; Set; } Public virtual string locale {get; Set; } // Navigation Public Virtual List & lt; Tag & gt; Tags {get; Set; }} Right now this view has the input name of the input: Create a View-Space & lt; H2 & gt; Create & lt; / H2 & gt; @using (Html.BeginForm ()) {@ Html.AntiForgeryToken () & lt; Div class = "form-horizontal" & gt; & Lt; H4 & gt; Locati...

Scheduled LocalNotification in iOS not seen in scheduledLocalNotifications straight away -

The problem I am facing is that I have been successfully scheduling a local notification within 1 to 2 hours I'm back to my main Root View Controller, where some code runs and displays a local box, depending on whether the local notification is scheduled or not. Therefore the code is: /// commit notification [[UIApplication shared applicant] Schedule local notifications: Local Notification]; [Self performance CJU findifier: @ "Outostart" sender: self]; and then a method on the main root controller is returned to refresh the view directly: NSArray * currentNotifications = [[UIApplication shared application] Time-bound notifications;]; If ([current notification count]> gt; {...} else {...} The problem is that sometimes the current notification number is 0 and sometimes, Sometimes this 1 and therefore the wrong box is displayed. I think what is happening, sometimes the iOS is still determining the notification and sometimes it does not believe that it does...

c++ - Lexixal or Preprocessor issue: 'iostream' file not found -

Image
मैं qqwing.h , qqwing.cpp का उपयोग करने की कोशिश कर रहा हूं और config.h फ़ाइलों को एक सुडोकू गेम बनाने के लिए मेरे प्रोजेक्ट में है और मुझे त्रुटि मिल रही है। मैंने अपने प्रोजेक्ट में अलग-अलग मानों को बदलकर और सेट करके बहुत सारे समाधानों की कोशिश की लेकिन कुछ भी मेरी समस्या को हल नहीं कर पाई है। कृपया मदद करें !

c# - how model use for display two tables in a view -

I want to display the elements of two tables in a scene but I do not know how. In my opinion, I have a model einemareble which indicates the model's 'Tember' class and corresponds to the table 'Tmembre' in the database. I can display the elements in this table in my opinion, okay. But I want to display elements of other tables in this scene and I can not waste other @models in the scene. I try to create a class in the model for two tables and put the SQL in the model, but I think it is not in the model. I have to request DB. public class myviewmodel {public Tmembre tmembre {get; Set; } Public listing & lt; Tmembre & gt; GetlstMembre {// SQL} receive public content tassociation { Set; } Public listing & lt; TAociociation & gt; GetlstAssociation {// SQL}} You can create a new instance in your controller Fill out the above footage modell and members from your database and fill out the data. Once you see it, you should return your Vi...

php - How can i get a value between two date from database? -

I am making an application for hotel booking public function GetMarriageDate () { $ Frm = $ this- & gt; Input-> ('From') post; $ From = $ this- & gt; Input-> Post ('to'); $ Date = $ this- & gt; Db- & gt; Query (`$ frm 'and' 'between' SELECT * FROM` tbl_marriagebooking 'WHERE (' $ frm 'and' from $ copy ') from UNIONSELECT * to' tbl_marriagebooking 'WHERE ();); $ Count = $ date- & gt; Num_rows (); Return $ count; } My database table (tbl_marriageBooing) ID name to_date from_date 1 name 1 2014-11-15 2014- 11 -18 2 Name 2 2014-11-20 2014-11-24 3 Name 3 2014-11-26 2014-11-30 My problem is that if any one date 2 = 2 because 2014- 11 -20 to 2014-11-24 has been booked. Try $ frm = date ('YM-D ', Stratotel ($ this-> Input-> Post (' to '))); $ From = date ('wi-m-d', stratimime ($ this-> input- & gt; post ('to')); $ Date = $ this- &...

ios - argument unused during compilation: '-dependency_info' -

अच्छा दिन, मुझे निम्न त्रुटि मिलती है: एलडी / उपयोगकर्ता / विल्बी 1 / लाइब्रेरी / डेवलपर / एक्सोड / डेरिवेटडेटा / जिओडाटा_ग्राफ़र-ब्लॉन्जक्सएटीएफफ़्फ़एफ एफएमएफजीजीजीएसबीटीवैक्स / बिल्ड / प्रोडक्ट्स / डीबग-आईफ़ोइसिम्युलेटर / जिओडाटा \ गैफर। एप / जीओएडाटा \ गैफर सामान्य x86_64 सीडी "/ उपयोगकर्ता / विल्बी 1 / डॉक्यूमेंट्स / एप्प्स / जिओडाटा गफर "निर्यात IPHONEOS_DEPLOYMENT_TARGET = 8.0 निर्यात पथ =" / अनुप्रयोग / Xcode.app / सामग्री / डेवलपर / प्लेटफार्म / iPhoneSimulator.platform / डेवलपर / usr / bin: /Applications/Xcode.app/Contents/Developer/usr/bin: / usr / बिन: / बिन: / usr / sbin: / sbin "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer / प्लेफ़ॉर्म / आईफ़ोन सिमुलेटर.प्लामैट / डेवलपर / एसडीके / आईफोन सिमुलेटर 8.1.sdk-एल / ​​उपयोगकर्ता / विल्बी 1 / लाइब्रेरी / डेवलपर / एक्सकोड / डेरिवेटडेटा / जिओडाटा_ग्राफ़र-ब्लॉन्जक्सएटीएफकएफडीएफजीजीजीजीएससीबीटीव...

java ee - alternatedocroot not working on GlassFish 4.0 -

यह मेरा ग्लासफ़िश- web.xml है & lt ; glassfish-वेब-एप्लीकेशन & gt; & Lt; गुण विवरण = "अपलोड की गई छवियाँ" नाम = "वैकल्पिक विकल्प" मूल्य = "से = / अपलोड / * डायल = सी: \ अपलोड करता है" /> & Lt; / glassfish-वेब-एप्लीकेशन & gt; मेरे पास एक तस्वीर है fff.jpg में सी: \ अपलोड करता है जब मैं http: // localhost: 8080 / MyWebApp / uploads / fff.jpg मुझे एक HTTP स्थिति 404 - नहीं मिली त्रुटि मिलती है। क्या गलत हो सकता है ? मुझे लगता है कि समस्या यह है कि आपने उस फ़ोल्डर का नाम निर्दिष्ट किया है जिसे आप डीआईआर विशेषता। मान = "से = / अपलोड / * dir = C: \ अपलोड" इसका अर्थ है कि आप चाहते हैं पथ सी: \ अपलोड में "अपलोड" नामक फ़ोल्डर तक पहुंचने के लिए। तो वास्तव में जब आप http: // localhost: 8080 / MyWebApp / uploads / fff.jpg तक पहुंचते हैं तो यह C: \ Uploads \ uploads \ fff से पढ़ने की कोशिश करता है .jpg । समाधान: अपना ग्लासफाश- web.xml बदलें: C: \ अपलोड करता है में "up...

android xamarin google MapFragment.Map is null -

In XMERIA Android, the code shows map to create mapfraagment, but mapFragment.Map is always empty and I set the map Can not type code: var mapFragment = MapFragment.NewInstance (mapOptions); Piece Transactions Tx = Fragment Manager Begit transactions (); Tx.Add (resource.indemap_frames_container, mapfragment); Map = mapFragment.Map; If (map! = Null) {map.MapType = GoogleMap.MapTypeNormal; // this never comes to the line} tx Comet (); xml: The reason for this was that the map view was not created at the time of calling > P> var mapFragment = MapFragment.New instances (mapOptions); Therefore IFragment.Map; delayed 500 milliseconds before using the map; handler Post delimited (updatemap, 500); Zero UpdateMap () {map = mapFragment.Map; If (map! = Null) {map.MapType = GoogleMap.MapTypeNormal; Map.MoveCamera (cameraUpdate); Return; } Handler. Post deliid (updatemap, 500); }

c# - How can I unit test my project, when most of it access a database with a poor schema that I cannot change? -

I am working on an asp.net webform project. Not included in this project, in addition to some tests, besides some unit tests, I wrote myself to cover a small static method. I would like to write unit test for the entire project so that I have a refactor Can I add code more efficiently to this project (I have support of CTO about this), but I have participated in a problem. Most of the databases in the web application contain Linux queries, there is no intangibility between the database and the code, in other words we do not do anything like a repository, instead we only have linq queries Let us type them where we need them. In my opinion, the unit test should not call the database directly because it will slow down, so I want to decouple them from the database. I first tried that I used to work with a MOQ framework, which is called MOQ, but then I read that LINQ-queries are a different behavior for LINQ-queries for the database, so that Consuming tests does not mean that I wo...

apache - CentOS 6 httpd killed by update -

Start the Terror Mode! I have updated the update update. On the restart, httpd generated: httpd: / usr / sbin / httpd: symbol lookup error: `/ usr / lib64 / libaprutil- 1.so.0: Undefined symbol: apr_os_uuid_get is running ldd -r generates the same message: ldd -r / Usr / Sbin / httpd linux-vdso.so.1 = & gt; (0x00007fffe82d9000) libm.so.6 = & gt; /lib64/libm.so.6 (0x00007f121e5fd000) libpcre.so.0 = & gt; /lib64/libpcre.so.0 (0x00007f121e3d1000) libselinux.so.1 = & gt; /lib64/libselinux.so.1 (0x00007f121e1b1000) libaprutil-1.so.0 = & gt; /usr/lib64/libaprutil-1.so.0 (0x00007f121df8d000) libcrypt.so.1 = & gt; /lib64/libcrypt.so.1 (0x00007f121dd56000) libexpat.so.1 = & gt; /lib64/libexpat.so.1 (0x00007f121db2d000) libdb-4.7.so = & gt; /lib64/libdb-4.7.so (0x00007f121d7b9000) libapr-1.so.0 = & gt; /usr/lib/libapr-1.so.0 (0x00007f121d587000) libpthread.so.0 = & gt; /lib64/libpthread.so.0 (0x00007f121d369000) libc.so.6 = & gt; /lib6...

git log - Logging git commits till a commit id when pulled with git pull --rebase -

चलो मान लीजिए कि git लॉग में निम्न कमिट हैं commit15 commit14 commit13 commit12 commit11 commit10 । । मैंने git log - spety = format: '% h |% H | फाइल द्वारा 14 तक काम करने के लिए git लॉग को सहेजने की कोशिश की है। % An |% ai |% s '$ commitid | Grep -v "मर्ज शाखा 'मास्टर' का" & gt; 'लॉग फाइल करने के लिए पथ जिसमें कॉमिटिड तक git लॉग होना चाहिए' यह एक मामले को छोड़कर ठीक काम कर रहा है, अर्थात जब कमिट किया जाता है और कमांड 13 को खींचने के बाद धकेल दिया जाता है git pull --rebase के साथ, जब मैं git log commit14 का उपयोग करते हुए commit4 तक git लॉग को सहेजने की कोशिश करता हूं मैं कमिट 12 और कमिट 13 देख सकता हूं लेकिन जब तक मैं 15 तक काम करने की कोशिश नहीं करता हूं git log commit15 का उपयोग करना प्रतिबद्ध है 12 और 13 प्रतिबद्ध 14 के तहत सूचीबद्ध हैं मुझे पता है कि समस्या --rebase के साथ है, क्या किसी भी तरह से मैं किसी विशिष्ट आईडी तक प्रतिबद्धता लॉग कर सकता हूं यहां तक ​​कि उसके नीचे भी ऐसा किया गया है जिसे इसे ऊपर की ओर रिसाव क...

javascript - Calling helper functions from within template.rendered in Meteor.js, error in 1.0, fine in 0.9.3 -

In an effort to avoid duplication of code, I found that there are helpful functions that a fu.rendered function (for example) . Why is it possible in the meteor map of 0.9.3, but throws an error in 1.0? Template.foo.helpers ({'fooFn': function () {return "something"}}); Template.foo.rendered = function () {var something = Template.foo.fooFn (); } Should I change the syntax in foo.rendered (am I telling it wrong?) Or maybe use a completely different approach (outside helpers ({}) Set the function and sing () and call on it? Or set it as a registered Helper function? It seems that it is possible to find meteorite functions and make calls as meteorite 1.0.3.1, It is not to be used like this. Still it can be done: Template.foo .__ Focus on the prominent place for the name of the supporting ["fooFn"] () function name. On the other hand, to work with it on a global name space function Attach, and then from any other place in your code, w...

ios - Capturing information from a UIWebView -

I have a UIWebView in my app that parses HTML from a server and it My challenge is that this is a checklist in HTML, and I would like to occupy the time the user checks and unchecks the next time I load the same HTML. Anyway click on the checkbox to capture? How can this be done? The JavaScript will be used with the help of several steps. Add the listener to the document for the event ' CheckboxStat Change . The target ID of the event is the check ID of the checkbox that you want if you capture the value in a JS variable. Now load the iframe with a specific URL prefix myevent: // checkbox? Id: value If your IFrame is full then your web view will trigger shouldStartLoadWithRequest method You can check the URL scheme from the requested object. If it is "myevent" then you can parse the URL string to store the appropriate value. The next time the page loads, you can set the values ​​by javascript with that value injected.

android - Facebook login breaks when Facebook app is installed -

I am creating an Android app that allows a user to log in with their Facebook account. I followed the official tutorial and it worked perfectly. Unless I have installed the Facebook app on my phone when I try to log in and I press the "Login in Facebook" button, I get a screen switch for half a second, and then I will launch my launch I come back to the screen where I was before. If the app works again, I believe that the app is injected, but I do not know how to handle it, I did not find anyone with my problem. I follow the official tutorial step by step, I have a main activity, a button piece usually, if you click on the button, the Facebook login screen pops up and you have your own Can enter credentials. How does anyone handle this? Do you add an application package and hash to the Android Facebook app on developers.facebook.com? If you use the SDK UI, then not installed the Facebook app - has not been tested.

java - Good Swing LayoutManager for Window Builder -

As my experience in my Java swing programming, I have used only the full layout, in which I can place objects anywhere in the frame. Using the Window Builder plugin for Eclipse but the problem with it is that it is difficult to maintain and when the frames again If the shape happens then the objects remain in their position which is not good. Is there a layout manager in swing that uses the full position (I am using the window builder), but when the size of the frame changes, the object flows inside the frame Go along? You can try this site, I've been using it for some time and I am very happy I,

Jquery mobile, init bind page events only once -

I am using jquery mobile v1.3.2 For some reasons I have a global PageChange The event is for preparing all my pages: var Front = {initDom: function ($ dom)} {// Here I have some pages in my $$ The event can tie ".somebutton", $ dom) .bind ("tap", function () {warning ("some actions");}); // e.t.c..... }); } $ (Document) .on ("pagebange", function (event, data) {Front.initDom ($ (data.toPage));}); It works well but it is triggered on changes in each page. And sometime this will init the same event twice and it will lead to some bugs. Now I get the event pageinit or pagecreate but both pages are triggered before the page is ready and $ ("ui-page-active "); is empty. Although I have some set timeouts, but this is definitely a bad idea. I have allocated everything for the first time on pageinit and opened it. But Ajax, which is called a page, will not be bound. Is there some good work in it? You can u...

css - Styling Bootstrap 3 Popovers -

Here the relevant code is relevant to the sample. Hover your mouse over the road icon to the right Fiz menu, and you will see a popover that is how narrow the popover is? I want to: Enlarge popover; And Write different colors of the popover, say: Green background in the "Header" section of the popover (" Instructions: ") According to the red background (main text) in the "body" section of the popover, I can widen the popover through it : $ ('[data-toggle = "popover"]'). PopOver ({container: 'body'}); And that's exactly what I did (see JS in JSFDL), but it does not work clearly. And I can not find anything to style the color of a popover, any thoughts? You can apply some CSS in the class for popover to get this result. In the basics you provided, you can get the desired effect for the 'signin' element with the following lines: .signin Popover {min-width: 300px; } .signin .popover-t...

c# - How can I tell what my parameter values are? -

Image
मेरे कोड का एक स्निपेट है- पीछे: Sql कनेक्शन कनेक्शन 2 = नया SqlConnection (str2 ); SqlCommand cmd2 = नया SqlCommand (); Cmd2.CommandType = CommandType.StoredProcedure; Cmd2.CommandText = "" + MyRptSproc + ""; सीएमडी 2। कनेक्शन = कनेक्शन 2; // मापदंड सेट करें, यदि वे मौजूद हैं (MyUseDates! = "N") {cmd2.Parameters.Add ("@StDate", SqlDbType.Date) .Value = DateTime.Parse (txtStDate.Value); Cmd2.Parameters.Add ("@ एन्डेट", SqlDbType.Date)। मूल्य = दिनांकटाइम। पर्स (txtEnDate.Value); } यदि (मायप्लैटफ़ॉर्म! = "एन") {सेमीडी 2.पैमेटर्स.एड (नया एसक्यूएलपीैमेट्रेटर ("@ माइ प्लेस्टाफ़्ट", cboPlatform.SelectedValue)); } अगर (मैनेजर! = "एन") {सेमीडी 2। पैरामीटर.एड (नया एसक्यूएलपीरामेटर ("@ माइमैनेजर", cboManager.SelectedValue)); } अगर (मायऑडिटी मैनेजर! = "एन") {सेमीडी 2। पैरामीटर.एड (नया एसक्यूएलपीैमेटर ("@ माइऑडिट मैनेजर", cboAuditorManager.SelectedValue)); } If (MySampleTitle! = ...

python - Picking random sub-routines from a list -

This is for Python 3.3. When I run this program, it always runs sub-routine "Fencing". I want to make it so that it is possible to choose a random sub-routine from this list. So, it will ask a random arithmetic question. import random idf func_addition (): a = random.randint (1,25) b = random.randint (1,25) c = a + B answer = int (input "(" What is "+ str (a) +" + "+ (str) (b) +"? ")) Func_subtraction (): d = random.randint (10,25) e = random (1.10" F + AR (D) + "-" + str (e) + "?")) DRF func_multiplication (): g = random.randint (1,10) H = random.Rendent (1,10) I = g * h answer = Intestine (int ("what" + str (g) + "x" + str (h) + "?")) My_list = [func_subtraction (), func_multiplication ()] name = input ("what is your name?" ) Print ("Hello" + str (name) + "and welcome to the arithmetic quiz") Unt (random .choice (my_list)) Remove the legs or...

gnuplot - Data values greater than float capacity - plotting in Octave -

Image
I have a very simple octave script and I'm just trying to plot some values ​​but I get an error : WARNING: gl-render: data value greater than float capability. (1) Scale data, or (2) Use Gnuplot The script is: a = 0.2; Z = 160; L = 8; W = 31.12; X = 0; G = 9.81; K = 0.785; Rho = 1025; T = 0:10 eta_0 = - (1 / g) * exp (0) * cos (k * x-w * t); U_x = a * w * exp (k * z) * cos (k * x-w * t); W_x = a * w * exp (k * z) * sin (k * x-w * t); P_d = -rho * a * g * exp (k * z) * cos (k * x-w * t); Endow plot (T, ata_0); Hold on the plot (t, u_x); Hold on the plot (T, W_X); Hold on plot (t, p_d); After finding me online, I'm not getting anything useful about this error and I'm new to eighth and use of Gnuplot, so it is not certain that in fact gnuplot's How to use I am using Ubuntu 12.04. Any advice or help will really be appreciated. Otherwise, you will get only one data point, not the curve: T = 0:10 eta_0 (t) = - (1 / g) * exp (0) * * Xw * t for cos (k); ...

MongoDB update deeply nested array -

निम्न दस्तावेज़ पर विचार करें: {"comments": [{"id": 1, "यूजर आईडी": "जॉय", "कमेंट": "लॉरेम इप्सम ...", "प्रतिक्रियाएं": [{"id": 2, "यूजर आईडी": "स्मिथ", "कमेंट": "लॉरेम इप्सम .. "," प्रतिक्रियाएं ": [{" id ": 3," userid ":" यादृच्छिक "," टिप्पणी ":" लेरेम ipsum ... "," प्रतिक्रियाएं ": [] // मैं एक टिप्पणी को पुश करना चाहता हूं ("Id": 5, "userid": "आदमी", "टिप्पणी": "lorem ipsum ..."}}}, {"id": 5, "Userid": "adam", "comment": "lorem ipsum ..."}}}]} क्या उस दस्तावेज़ में उस दस्तावेज़ को पुश करने का कोई तरीका है सरणी? इसलिए इस मामले में एक उपयोगकर्ता एक स्तर -3 टिप्पणी पर टिप्पणी करना चाहता है और मैं उस टिप्पणी को सरणी में डालना चाहता हूं। टिप्पणी करने के बाद मैं उपयोगकर्ता को सरणी स्थिति और ...

git - Cloning a repo contents and disconnect it from updates -

All, I need a little help / explanation on some cloning. Actually, I'm thinking that (if possible) make a repo clone and use its content as a starting point for its own repo. Example. To use the new GIT repo I Initializr for my own project, I want to give a basic skeleton and all this stuff to use a bootstrap though, once cloned, I do not want to track it anymore . I looked in the submodules, but if I understand correctly, then you do not modify those files in the original repo, which in fact I I want to try to build a project skeleton with the module which will get the latest version of the initial version or we will throw anything there. You can move the original remote (and remote tracking branches) by running git remote delete original

ios - Issue Using SDWebImage in Swift -

I am trying to use SDWebImage in Swift, the file ID that is used is called UIImageView + WebCache.h I have added it to my bridging headers #import "UIImageView + WebCache.h" Trying to load faster in use: var webCah = UIImageView + WebCache () and I'm reading an error message: Unusual identifier using 'WebCatch' I believe that it thinks that I am trying to use a uiimageview when I try to use that objective-class I How can I tell that class right? UIImageView + WebCatch that category is SDWebImage functionality with specific methods UIImageView Enhances you need access to defined methods on the UIImageView object. Example code: var imageView: UIImageView = UIImageView () / / For example, it will probably appear anywhere in your app's image view.sd_imageURL / / Or imageView.sd_cancelCurrentImageLoad to see the documents which are available, or source

shell - Grep and cut command in putty terminal -

I'm trying to cut a specific line from several files, I have about 300 json files. File structure: {"fieldName1": "XXXX", "FieldName2": "1", "FieldName3": "XXX", "FieldName4": "XXX", "FieldName 5 ":" 1 ",. . . }, "FieldName2": "XXXX", "FieldName2": "2", "FieldName3": "XXX", "FieldName4": "XXX", "FieldName5": "2". . . } Some files have been written in a row: {"FieldName1": "XXXX", "FieldName2": "3", " "FieldName 4", "FieldName 4": "XXX", "FieldName 5": "3"}, {"FieldName1": "XXXX", "FieldName 2": "4", "FieldName 3": "XXX "," Field name 4 ":" XXX "," fieldName5 ":" 4 "}, ...} I need t...

xml - Couldn't validate XSD SAML metadata file -

Image
In SAML 2.0, I took the Metadata XSD file and I tried to validate the XML Using the online tool I am performing an error on this XSD file against its XSD from the above location. What's the problem with XSD file? How do I verify my own SAML metadata XML against XSD for verification? Here I am getting the image of the error. have you pasted your XML on the left and right? The problem with this case is that this verifier can not resolve relative import: & lt; Import Namespace = "Kalash: Oasis: Name: TC: SAML: 2.0: Rendering" Schema Location = "All-Schema-Claims -2.0.xsd" / & gt; That makes sense. Online verification tools may be suitable for "quick and dirty" verification, but are generally not suitable for more complex cases. Take a look, you can find some useful. The valid SAML is a part of the SAML intended verification against XSD only (if you ask me completely optional part). The mandatory part is to validate the ...

javascript - JQuery popup not working after continuous call -

I am using MVC 4 for my project and trying to edit or display my data on popup I am When I call my open popup code 6 or 7 times, I get JavaScript error. My Controller Public Action OpenEditForm (String Object Paragraph, String Formats) {BranchNotesDetailViewModel viewModel = New BranchNotesDetailViewModel (); // .................. Back partial view ("edit", scene model); } and my javascript code is myDialog = $ (" "); Function: (auto), width: 'Auto', Model: true, close: (my_dialog.dialog ({autoOpen: false, title: name, resizable: false, position: 'center', stack: true, height: 'Auto':: function (event, UI) {// remove div with all data and events myDialog.remove (); //myDialog.dialog (''close ')}}}} $ (' # brunch Notes (grid-line '). Click (function () {var json = $ (this). Child (' td: eq (1) ') .text () .tim (); $ .ajax ({ ContentType: 'application / html', url: '@ Url.Action ("O...

"Raw value for enum case is not unique" for Swift enum with Float raw values -

According to , I should be able to create a swift enum with "strings, characters, or raw values ​​of any integer Or floating point number type "but when I try: enum battery voltage: float {case v3v7 = 3.7 case v5v0 = 5.0 case v7v4 = 7.4 case v11v1 = 11.1 case v12v0 = 12.0} ... I get a compilation error: The raw value is not unique for the inf V7v4 It's fine on the line that one comment with the comment out but ah, it looks unique to me if I make the value 7.41, or 7.3 or something, then it compiles exactly what's going on? Swift bug? It definitely says that you call , but its use Do not temporarily point values ​​(and especially float ) where you are going to need to compare parallelism - the exact just is not guaranteed enough and always double Use unless you need to use float for compatibility reasons. In this situation, it seems that the problem is happening (a) the third case is 2x the first case, and (b) some other factors which I do n...

HTML data extract in Java -

मेरे पास HTML कोड है: & lt; tr & gt; & lt; td & gt; 1 & lt; / td & gt; & Lt; td वर्ग = "टैब-लिंक" & gt; मान 1 & lt; / td & gt; & Lt; / टीआर & gt; & Lt; tr & gt; & lt; टीडी & gt; 2 & lt; / td & gt; & Lt; td वर्ग = "टैब-लिंक" & gt; मूल्य 2 & lt; / td & gt; & Lt; / टीआर & gt; & Lt; tr & gt; & lt; td & gt; 3 & lt; / td & gt; & Lt; td वर्ग = "टैब-लिंक" & gt; मान 3 & lt; / td & gt; & Lt; / टीआर & gt; & Lt; tr & gt; & lt; td & gt; 4 & lt; / td & gt; & Lt; td वर्ग = "टैब-लिंक" & gt; मान 4 & lt; / td & gt; & Lt; / टीआर & gt; अब मैं कृपया डेटा का निष्पादन करना चाहता हूं जैसे: कृपया 1: मान 1 2: मान 2 3: मान 3 4: मान 4 किसी भी विचार कृपया? जैसा कि वर्णित है, आपको

angularjs - ng-disabled doesn't update even if form validity is populated -

I have created an instruction that checks whether the input is valid on the basis of some criteria or not. In this form I have a button which is ng-disabled = "form. $ Invalid" . The problem is, even though it comes like a legitimate state, my button is not enabled when my custom directive input changes the status of the validity. Here's a simple example: & lt; Div ng-app = "app" & gt; & Lt; Div ng-controller = "fooController" & gt; & Lt; Form name = "fooForm" & gt; & Lt; Input type = "text" ng-model = "foo" foo & gt; & Lt; Input type = "submit" value = "send" ng-disabled = "foo formam. Invalid" & gt; & Lt; / Form & gt; & Lt; / Div & gt; & Lt; / Div & gt; JS (coffee script): app = angular Module 'app', [] app director 'foo', - & gt; Restrict: 'A' is required: 'ngmodel' link: (are...

Rails 4 Devise nested form can't mass-assign protected attributes -

I have a device model that has a nested form (supp_form nested object) when signing up. When I submit a form I am getting the following error: Warning: Large scale assigns can not be protected Features for business: supp_form_attributes, terms_of_service Applications / Controller / Businesses / registrations_controller.rb: 11: I am using nested_form gem and it seems that field data passing through my form console is going to look like following my parameters: / P> Parameter: {"Utf8" = & gt; "✓", "Authenticity_token" = & gt; "XXX", "business" = & gt; {"Type" = & gt; "business", "supp_form_attributes" => {"Title" = & gt; "Mr.", "First_name" = & gt; "Jane", "Last_name" = & gt; "Deer", "MOBILE_PHONE_NUMBER" = & gt; "94034903", "loan_agreement_authorization" = & gt; ...

redis - What is the return type of HGETALL in Lua -

I am writing a script and my script is: local session = redis. Call ('HGETALL', AccessToken) if (session == zero) redis.log (redis.LOG_WARNING, 'session not found:' accesstooken) end of return I tried several Situations and if I do not know how exactly is valid if the value is zero. Besides, I do not want to call the EXISTS command upwards. I tried to call it through telnet and react with redis * 0 This list I tried: If (session == zero) then (session == '[]') then if (session == '{}') then if (session == '* 0') then if (session == ' ') Then if (session ==' (empty list or set) ') then if (not session) then None are working from these situations, anyone has an idea is? Some quick searches seem to suggest online that HGETALL (and other functions Which return the key / value pair) is a table of sequential key / value pairs. Then {"key1", "val1", "key2", "val2"} . ...

ios - Localization: Need English Version Only -

मुझे अपने अंग्रेज़ी .csv NSLocalizedString पढ़ने में समस्या हो रही है > फ़ाइल। मेरे ऐप में कोई उपयोगकर्ता एक UITableViewController पर आता है और एक पंक्ति का चयन करता है जो भी पंक्ति का शीर्षक वैश्विक NSString selectedRow के अंदर NSObject (यह NSObject प्रत्येक श्रेणी में आयात किया जाता है) के लिए सेट किया गया है। एक बार जब यह अगले UIViewController पढ़ता है, चयनित पंक्ति होता है, तब तक .csv फ़ाइल के माध्यम से चला जाता है, जब तक कि इसे भर में नहीं आता है, और उसके बाद सभी आवश्यक जानकारी को उल्टी की जाती है UIViewController । उदाहरण: selectedRow = "about"; इसलिए फ्रेंच में यह selectedRow = "Environ" होगा; अब मेरे पास .csv फ़ाइल में "वातावरण" नहीं है, मेरे पास "के बारे में" है, इसलिए मैं NSLocalizedString मेरे .csv फ़ाइल का पूरी तरह से नया फ्रेंच संस्करण बनाने के बिना कुछ पलों के लिए अंग्रेजी होने के लिए? यदि आप NSLocalizedString का उपयोग करना चाहते हैं, तो आपको .string फ़ाइलों को बनाने की आवश्यकता होगी, यदि ...

javascript - I have an ERROR with Three.js r69 -

मेरे पास लाइन पर एक त्रुटि है ज्यामिति.विंडर्स.push (नया तीन। वर्टेक्स (वेक्टर)); में तीन। जेएस r36 यह लाइन काम है। var vector = new three.Vector3 (-300 + x / 4, 240 - y, 0); Geometry.vertices.push (नया तीन। वर्टेक्स (वेक्टर)); लेकिन r69 में यह काम नहीं करता है कृपया मदद करें! कोड अब इस तरह दिखना चाहिए: geometry.vertices.push (वेक्टर);

javascript - Need help on background colour on selected image mouse down. and remove the background to other image that is selected -

// This yellow background color on me img, but if I choose another IMG this backend The color selected will not remove the first IMG: $ ('img'). Musudaun (function () {var $ selectedDiv = $ (this). Parent (); var divId = $ selectDiv.attr ( 'id'); Wartmancol = divId [1]; Wartmanravli = divId [3]; $ ( "# R "+ currentcall +" c "+ running rouge. Css (" background "," yellow ");}); I do this: $ ( 'IMG'). Mosudown (function () ($ ('IMG'). CSS ('Background', ''); // Color of the background color will also set back whatever color you need. Var $ selectedDiv = $ (this) .Parent (); var divId = $ selectDiv.attr ('id'); currentCol = divId [1]; currentRow = divId [3]; $ ("# R" + Current call + "c" + current release). CSS ("background", "yellow");});

ember.js - Ember handlebars-helper renders property-name as string instead of the value -

मेरे टेम्पलेट में मैं प्रस्तुत करता हूं: & lt; b & gt; {{firstname}} & lt; / b & gt; जो Mads में हल करता है, तब मैं अपने handlebar- सहायक trimstring : Ember.Handlebars का उपयोग कर रहा हूं। RegisterHelper ('ट्रिम स्ट्रिंग', फ़ंक्शन (पास स्ट्रिंग) {var theString = पास स्ट्रिंग.substring (0,100); नए हैंडलबार वापस लौटें.सैफ़स्ट्रिंग (द स्ट्रिंग)}); की तरह है, लेकिन यह प्रथम नाम P> मैं क्या याद कर रहा हूं? आप स्वरूपण कर रहे हैं पहलेनाम स्ट्रिंग ही, नियंत्रक की संपत्ति नहीं है, इसलिए शायद यह काम करना चाहिए: Ember.Handlebars.registerHelper ('trimstring', फ़ंक्शन (पास स्ट्रिंग) {var theString = this.get (passString) .substring (0,100); नए हैंडलेबर्स लौटें। सुरफ़्रेस्टिंग (द स्ट्रिंग)});

java - How can I add functions to a priority queue? (Is it even possible) -

I know what the priority queue is and I know how to add strings / integers to it. But now I I want to add work for (If this makes sense ??) I am not ready to change the return type of a function. I want to know how can I go about doing this? I have created a raw type preference queue priority quu prq = new priority question (); Prg.offer (login ()); Now, I am not a coding genius, I am also learning. So I wanted to see what was possible. If this is not possible then is there any alternative solution? My pop () function will only run the function that was pop-popping. Most of my work is zero I I have an idea: should I include the string and what string statement should I make based on the pop? Put return value of the function in the queue you are currently doing If the function is executed then the value that is generated is kept in the queue. Instead, you may have a line of runnable s and then call the run () method on them: priority question & Lt; Runn...

android - Manifest merger failed after adding PlayServices library -

मैंने जोड़ दिया comp.google 'com.google.android.gms: play-services: 6.1.71 ' करने के लिए build.gradle द्वारा "निर्भरता" ब्लॉक, और उसके बाद gradle फेंकता त्रुटि जब मैं परियोजना को सिंक करने की कोशिश: त्रुटि : ग्रेडः कार्य निष्पादन के लिए असफल रहा: 'एप: प्रोसेस डिबग मैनिफ़ेस्ट' & Gt; मैनिफेस्ट विलय कई त्रुटियों से असफल हो गया, लॉग्स देखें मैं उपयोग कर रहा हूँ MinSdk संस्करण 8, लक्ष्य, संकलन और निर्माण उपकरण है। निर्भरता {compile ' Com.android.support:appcompat-v7:19.+ 'compile' com.google.android.gms: प्ले-सेवाओं: 6.1.71 'संकलित फ़ाइलट्री (डायरे:' लिब्स ', इसमें शामिल हैं: [' * .jar '] )} उस त्रुटि का क्या अर्थ है और इसे कैसे हल करें? मैं आईडीई के रूप में Intellij आइडिया का उपयोग कर रहा हूँ उत्तर के लिए धन्यवाद! समस्या यह है कि "com.google.android.gms: play-services: 6.1.71 "minsdk को कम से कम 9 की आवश्यकता है। minSdk मूल्य को बदलने से समस्या हल हो गई।

git - Jenkins how to trigger build on a schedule only when there are changes -

In our Jenkins and GIT setup, the master is Windows and the slave Linux is I (after some time in the next few months that Linux Will change in). When you set the Pol SCM in a job, the election is done on the action owner, not the slave where the job is configured to run. Either way .. there is a problem in server config, and I can not run GIT there and can access repo on any other machine through SSH. Net, I can not use the survey scm until the server gets fixed. However, I have a construction work, whenever a change needs to be made, because it creates artifacts used to automatically deploy the application for further investigation. I can use the construction on a regular basis, but it will ruin every 30 minutes (for example), and overnight and weekends and most of the time. So, I want to make some time-bound work, which checks to see what changes are going on after a while. Builds are only for content at a specific branch. I think I can use rev-list to get the final com...

javascript - Weird behaviour of Fisheye Distortion plugin -

Image
Hi, I want to use d3.js for my self-directed graph, but When I want to apply this plugin, the graph's behavior is weird. I am new to d3.js and not good in computer graphics. var fisheye = d3.fisheye.circular () .radius (200). Disinfection (2); // graph - variable, which is the whole graph graph. Represents the SVG.On ("mousemov", function () {FISHIES FOCUS (D. 3.Mouse (this)); D3 selection ("SVG"). Successful ("circle") .each (function ( D) {d.fisheye = fisheye (d);}) .attr ("cx", function (d) {return d.fisheye.x;}) .attr ("cy", function (d) {return d. RTS ("R", function (D) {Return D. Fishes * 4.5;}); D3. Sealat ("SVG"). All ("line") .attr (" X1 ", function (d) {return d.source.fisheye.x;}) .attr (" y1 ", function (d) {return d.source.fisheye.y;}) .attr (" x2 ", function (D) {returns d.target.fisheye.x;}) .attr ("y2", function (d) {Return d.targ I.fi...

windows - Can I upgrade PowerShell versions from within PowerShell? -

I have a Windows 7 SP1 box, which is running PowerShell version 2 (which has been sent along with it) . Now I need to upgrade to 3.0 or 4.0 version to take advantage of some new CMDlets. Looking for the answer, I have come across this great tutorial. This tutorial was fine, but I was surprised that the command line / CMDlet for running such upgrade (for example, something like update-help cmdlet) No mention of the option is visible - especially the philosophy of PowerShell is automation! So, is there a CMDlet / script that I can deploy to upgrade my PowerShell installation to different computers? Thanks in advance.

Automatically push engine datastore data to bigquery tables -

I currently follow the manual and time-consuming process to transfer data from the datastore to the large blank table, Which supports Google Cloud storage and restoring large content Now, to do this, the old article (with the code) seems to be I went However, waiting to access this experimental tester program Programming process is automated, but months for an access denied Some institutions, I want to push a large query data as it comes (inserts and updates may be). Like a biz intelligence analysis, a daily push is okay for more information as a / Li> Li> via API If you select an API, you may have two different ways: "Batch" mode or streaming API. If you "come as soon as you" then you have to use the streaming API every time you know of any change in your datastore (or maybe once every minute depending on your needs) , You have to call the API method. Please note that you need a table made before the structure of your datastore. (If ...

ios - Delete row in UITableView in conjunction with Parse -

I am trying to delete a line in a UITableView (PFQueryTableViewController). Deletes the object in the class, but only in the table is reflected when I refresh the table here is the code I am using. - (BOOL) Table view: (UITableView *) Table view can edit the audit path: (NSIndexPath *) indexPath {return yes; } - (Zero) TableView: (UITableView *) Viewing Table Viewing Style: (UITableViewCellEditingStyle) RowAtIndexPath for editing style: (NSIndexPath *) indexPath {if (editingStyle == UITableViewCellEditingStyleDelete) {PFObject * object = [self.objects objectAtIndex: indexPath .row]; [Object delete Inboxground with block: ^ (Bull succeeded, NSERR * error) {[Tableview reloaded data]; }]; Solve it. Instead of [TableView reloadData] , I've used [[SWIFT]] . However, there is no general deleted animation there.

java - Cannot get correct max and min values of user inputs -

I am writing a method that takes the integer input to the user and displays total, average, maximum, and minimum. I have a total and average job but I am getting 2147483647 for the maximum and for the minimum -2147483648 The loop should end only when user input -1. My code: Public static void processing points () {menu m = new menu (); Clrscr (); Int count = 0; // times of int has been added = 0; // integer that the user input int = 0; // Total amount of inputs int = 0; // Maximum value of inputs int max = Integer.MAX_VALUE; // Maximum value of inputs int min = Integer.MIN_VALUE; // The minimum value of the input system.out.println ("Please enter a full number (such as 150)"); While ((num = Genio.getInteger ())! = -1) {count ++; Tot + = num; Avg = tot / count; // Calculate the average loop if (original> gt = max) max = tot; If (total & lt; minute) min = tot; System.out.println ("total \ t average \ t minimum \ n"); System.out.println (tot + ...

Pandas series of datetimes in python -

I have a series that is purely datetimes. Call it at chain 1 . How can I remove the series from the series in the most effective way to create a new series of months only? For example. series1.month does not work. But for every line, it will work In panda version 0.14 and older, you apply Can date to date value: chain 1 .apply (Lambda x: x.month) to remove In 0.15, a new datetime series accessor simplifies the operation (thanks @ crisb): series1.dt.month here is one.

java - Am I returning the correct value from my method & am I writing it correctly? -

I will present my question with the statement that I am very new to Java, so I apologize that my code is completely To read is hateful. What I am trying to do: I am writing a program that takes two integers from the user, both a lower value and a higher value, and two integers Different methods are different for method # 1 loop and should print all the numbers between the following numbers and the highest number which are multiples of 3 or 5, and the method # 2 excludes numbers which is 3 or There are multiples of 5 which also checks Is that number also a valuable value of 6, and if so, print that number and print an asterisk in front of it What's the problem with me? What should I do to get back to my ways, but is very much stumped; How to return anything to everything This is the first time I have worked properly on a system (just went "above the Hello World") and I can see that I really do not have to return anything . The methods I've put in the code h...

osx - How to compile this GitHub Project on Mac? No instructions -

I'm really interested in Arduino IDE project from GitHub, but since I'm a new programmer, I do not have it Find out how to compile those source files on Mac. I have already been ported to Mac because it shows version 0.6.0.0 on changelog but I do not know how to do this. Can someone provide instructions for me? GitHub Link: So I'm sure you found that this project is vcxproj - that means visual studio To compile on Mac, some family planning will be required. I do not have my experience, but I found it in my questions for you You want to read on many resources, better understand and maybe a better Google query becomes alternatively The easiest way is to get your hands on just one windows machine Good luck!

Rails class attribute (attr_accessor) not being changed at all using Ruby 2.1.4 -

There is a session class to log in to my current session. It is something like this: class session attr_reader: user ,: ip,: gef attr_accessor: branchid def initialize (user, ip, gef = nil) (...) end (...) end Then I have a controlling method to change this branch, so the user can access a variety of things log-in is a session class which is being set on an ApplicationController as a helpful method: class Applic AtionController & lt; ActionController :: Base helper_method: [: user] logged_user (...) def self.logged_user = Session.new parameter some_method_that_sets_logged_user_before_calling_change_branch, parameter [: ip] end def change_branch log_user.branchid = params [: branchid] root_path end end This worked perfectly when I was using Ruby 1.9.3 with Rail 3.2. Now I'm upgrading Ruby to 2.1.4, and it has stopped working. Trying to change the byebug in the middle of the change_branch method to see what I'm doing, and trying to change directly logged_us...

javascript - How would I create a new instance of the database in Meteor.js when a new a unique url is passed in? -

I am creating a "magnetic poem game" with Meteor.js, which I am very new to. Even I have so far: I am using the homepage as a group play board, where all the users Can collaborate and create poems together. It's working fine, but I want to make an alternative that you can make your own personal board to play your own I used iron: the router to create a unique URL UserId is I want to create a new example of the collection which does not affect the group board. Right now every time you move a piece to the group board, it changes the database in the user id url. Is it an easy way to implement or is it very complicated? Any suggestions would be appreciated. Thanks

geocoding - Location Auto Suggest Sample iOS -

I'm working on an iOS app that has a location suggestion feature. I want to implement auto-placement suggestions, but I can not get a good sample for this. I want to coordinate the data with the location name. Please tell me someone has a good example for me, I have seen, but sometimes when I type the address in the text field, then do not support the nearest location. Thank you for your help.

v8 - Print ion monkey generated code -

Is there any way to dump the dissasembly of the genated code for each ion (LIR) instruction? Something similar - comments in print-opt-code - Code-V8? IONFLAGS = codegans JS - version-offthread-compile = off app.js You need the Spiderman debug build After you run it you will be logged in the code generator in stderr to find the specific function search log for "script for the script".

asp.net authenticate from domain login -

I have Windows authentication enabled on asp.net page. I ask to log in when I navigate the page If the user logs on to the domain then how can I remove it? Sorry, but I did not know how to ask or what to look for. Config in the web & lt; Authentication mode = "Windows" /> & Lt; Authority & gt; & Lt; Allow users = "*" /> & Lt; / Authorization & gt; I have implemented something similar. Just so you know, we have a separate application that uses domain login and for those who use an integrated app login. I was just checking the differences, and found out that we did not have to do almost anything to work: We have commented on our custom subscription provider and & lt ;! - & lt; Authentication mode = "form" & gt; ... & lt; / Authentication & gt; - & gt; Instead we set the Windows authentication and disabled form authentication authentication method in IIS. - But I think setting up a...

java - How to Import Android Ad Libraries -

मेरे पास है: import com.google.android.gms.ads.AdView; साथ ही साथ कई अन्य। Gradle (एंड्रॉइड स्टूडियो) उन्हें पहचानने से इनकार करते हैं मैंने पढ़ा है कि आप एक विशिष्ट जार आयात करते हैं, मैंने पढ़ा है कि अन्य जगहों पर आपको विशिष्ट मॉड्यूल आयात करना होगा। मैं इन पुस्तकालयों तक पहुंच कैसे प्राप्त करूं? आपको Google Play सेवाओं की लाइब्रेरी को अपने एक्लिप्स कार्यस्थान में आयात करना होगा । फ़ाइल > आयात करें पर क्लिक करें, एंड्रॉइड > मौजूदा कार्यक्षेत्र में मौजूद प्रोजेक्ट चुनें , और लायब्रेरी प्रोजेक्ट पर ब्राउज़ करें ... यदि आप डॉक्टर को पढ़ते हैं तो लाइब्रेरी को यहां स्थित होना चाहिए: & lt; android-sdk & gt; / extras / google / google_play_services / libproject / google-play-services_lib / अधिक जानकारी:

sql - how to filter by year in fetchxml -

Image
मेरे पास एक डेटटाइम पैरामीटर है: FetchXML के साथ, मैं अपने डेटटाइम पैरामीटर के केवल वर्ष भाग के द्वारा अपने डेटा को फ़िल्टर करने की कोशिश कर रहा हूं: & lt; फ़िल्टर प्रकार = "और" & gt; & Lt; शर्त विशेषता = "प्रस्तावित स्टार्ट" ऑपरेटर = "में" मान = "@ ईवेंट वर्ष" / & gt; & Lt; / फ़िल्टर & gt; प्रस्तावित स्टार्ट है दिनांक समय और @EventYear है दिनांक समय मैं ऐसा करने का एक तरीका समझता हूं पर-या-पहले eventyear + 1 और पर-या-बाद 1/1 / घटना वर्ष मैं इसे कैसे हल करूं? मैं एक शर्त पर कैसे फ़िल्टर करूं, जहां मेरे डीटैनी फ़ील्ड का महीना FetchXML में वही वर्ष है जो कि मेरे datetime पैरामीटर के रूप में है? आप केवल वर्ष का अंश प्राप्त करने के लिए अपना डेटाटेम पैरामीटर को प्रारूपित कर सकते हैं। अभिव्यक्ति के अंदर की तरह कुछ डाल: = प्रारूप (पैरामीटर्स! इवेंट साल .value, "yyyy")

javascript - Passing string parameter into constructor to call function -

I came to this programming style where: instead of calling directly an object method, they have a string in their constructor method If you pass, constructor method then check this string and call the function associate with it. function MySimpleObject (option) {if (optionof option === 'string') {pluginMethods [String] .apply (this, logic); } Else {init (); }} This function is being used with jQuery as a lot of detail. jQuery.fn.extend ({simpleObj: MySimpleObject}); I really appreciate it if someone can highlight me on this. This gives the following style of programming, which is used by jQuery UI for example: $ ('selector'). Datepicker ('option', 'option-name', 'option -value'); If you do not call .datepicker () with no argument or an object, then this date initiates the picture when the first argument is a string, then This is a call to datepicker for a method. This approach is used for all jQuery UI widgets, and ma...

asp.net - Javascript to verify specific String from textbox -

यहां टेक्स्टबॉक्स का परिणाम कैसा दिखता है, कृपया निम्न DNS जोड़ें प्रविष्टियां 144.68.238.87 नाम.डोमेन 144.68.238.88 नाम.डोमेन 144.68.238.89 नाम.डोमेन लक्ष्य को name.domain द्वारा मान्य करना है यह सुनिश्चित करने से कि उपयोगकर्ता इसे सबमिट करने से पहले टेक्स्टबॉक्स पर name.domain सर्वर नाम को बदल दे। यदि उपयोगकर्ता अपने सर्वर नाम के साथ name.domain की जगह नहीं लेता है, तो यह सतर्क संदेश भेज देगा और झूठी बदले जब तक कि उपयोगकर्ता इसे सही तरीके से प्रतिस्थापित न करे। ये मेरे कोड हैं, फ़ंक्शन DomainValidate () {var arrayOfLines = document.getElementById ('txt)। Value.split (' / n '); arrayOfLines.shift (); // (i = 0; i & lt; arrayOfLines.length; i ++) के लिए पहली पंक्ति को छोड़ने के लिए शिफ्ट का उपयोग करें मैं नहीं हूं निश्चित करें कि ये सही हैं क्योंकि मैं जावास्क्रिप्ट डीबग नहीं कर सका। पहला मुद्दा मैं देख सकता हूँ नई पंक्ति के लिए आपका चरित्र गलत है। यह \ n नहीं / n होना चाहिए। दूसरा मुद्दा यह है कि i एक वैश्विक चर है, जब यह स्थानीय हो...

java - Parsing HTML snippets and adding to PdfPTable -

यह सुनिश्चित करने के लिए कि पर्सेड HTML को आवश्यक स्टाइल से जोड़ दिया गया है और सही जगह पर मैं इसे एक पैराग्राफ में एक पीडीएफपीसीएल में जोड़कर रख दिया है। हालांकि ऐसा करने से मुझे कुछ एचटीएमएल टैग्स जैसे कि सूचियों और उद्धरणों के साथ व्यवहार करते समय मुद्दों पर चलने लगता है। नीचे मैं क्या कर रहा हूं, इसका सही उदाहरण है, एचटीएमएल सूची, उद्धरण आदि को ठीक से प्रबंधित करने के लिए मैं क्या कर सकता हूं? उदाहरण के लिए: iText ठीक से एक HTML सूची को संभालता है और उसे एक iText सूची / ListItem। मुझे उस सूची को मेरे PdfTable में जोड़ने की आवश्यकता है मैं जानता हूं कि सूची तत्व को पैराग्राफ़ में डालने से उचित स्टाइल को रद्द किया जाता है (पूरी सूची में कोई क्रमांकन नहीं होने के साथ एक पंक्ति पर होता है) और इसे प्रबंधित करने का उचित तरीका जानना चाहते हैं PdfPTable तालिका = नया पीडीएफपीटीबल (1); table.addCell (parseHtmlToParagraph (htmlString)); Table.addCell (नया वाक्यांश ("नाम" + user.getName ())); सार्वजनिक पैराग्राफ़ पार्स एचटीएमएलटिप पैराग्राफ (स्ट्रिंग एसआरआर...

Generate FxCop Results xml in teamcity -

I have to set up a build step for FxCop in TeamCita. I also need to create FxCP results in an XML file. Please help Kripa Marie. I'm new to TeamCity. I really appreciate it if any screenshot can also post. I did google, but could not be able to understand properly. To run FxCop in TeamCity, follow these steps: Install FxCop on the agent (or if you have all agents). Download it here: Edit the file buildAgent.properties and add information about the FxCop instalation folder. Add line: system.FxCopRoot = C: \ Program Files (x86) \ Microsoft Fxcop 10.0 Build Build Steps It's Now Easy to Have Interesting Settings : Runnert Type: FxCop FxCop version: 10.0 Assemblies: for example bin *. Dll Report XSLT file:% system.FxCopRoot% / Xml / FxCopReport.xsl Additional FxCopCmd Options: For example / ruleSet: "=% teamcity.build. WorkingDir% \ core \ ProjectRules.ruleset " . I use it to specify custom rule settings XML is generated from a pat...

php - Set value to false if value if == false -

If I set the value == is wrong. How can I set a value false? I know if I can do it like this: $ string = ('There is such a truth that returns' Is "whatever is right"): wrong); But I need something clever. I am searching for something like this. $ string = ('Such a return true')? false; Example I want to be a liar: $ string = array ()? false; $ String = ''? false; tl; Dr: If string is not setting i == is not true, set to false. If you are using 5.3+ $ string = ('Some such truth that comes back') ?: wrong;

sql - single row subquery issue -

मैं निम्नलिखित प्रश्न का उपयोग कर रहा हूं: चुनें P.job_ref, P.emp_num, पी। नाम, पी। जॉब-टाइटल, पी। जॉब-टाइप, पीडिप्ट_एफ़, पी। डीप्ट, जेएमआर_आरपीटी, (पीपीपी पी से जॉब मैनेजर_नाम के रूप में पी। नाम, जॉब जे, जहां जेएमआरआरपी = पी। जॉब) JOB J जहां P.job_ref ​​= J.job_ref ​​ मुद्दा प्रबंधक और कर्मचारी नाम समान तालिका में नाम के नीचे रहते हैं। Job_ref ​​काम तालिका में mgr_rept को संबद्ध करता है। एक कर्मचारी नौकरी तालिका में एक मूल्य के बराबर होता है जो नौकरी की जानकारी को खींच सकता है हालांकि प्रबंधक का नाम लोगों की तालिका में है Mgr_rept मान प्रबंधक होगा Job_ref ​​संख्या। इस क्वेरी का उपयोग करना एक से अधिक पंक्ति देता है इसलिए मैं कुछ सहायता की तलाश कर रहा हूं। धन्यवाद सबसे पहले, अब आप पुरानी अल्पविराम से अलग होने वाले सिंटैक्स का उपयोग नहीं कर पाएंगे। यह 20 से अधिक वर्षों से स्पष्ट रूप से जुड़कर मानक एसक्यूएल में बदल दिया गया है। आपकी उपकुंजी सभी लोगों का चयन करती है यह किसी भी तरह से मुख्य क्वेरी में रिकॉर्ड से लिंक नहीं है। हो सकता है कि आप अपने आप को एक ही तालिका उपन...

Simplifying the variable input in SAS -

My data has 90 variables, I want to do the following in the SAS. Here is my SAS code: data testing; Length ID class sex $ 30; Input id $ 1 class $ 4-6 sex $ 8 $ 10; Leaves; 1 3F Y2 sec F Y3 2FN 4 1 MN 5 3FN 6 2MM; Run; Data item 2; Set test; Length 8; Length items $ 8; Tid = _n_; Item = class; Output; Item = sex; Output; Item = hiccup; Output; Keep items; Run; Do I have 9 0 variables to input such data? There should be a very long list. I want to simplify it. You can use an ARRAY or Alternatively a PROC TRANSPOSE. The following is Untested, because you have not given an example of your input dataset. data items; ARRAY VARS {*} VAR1-VAR90; Change the set; DO I = LBOUND (Wars) to HBOUUND (Wars); ITEM = VARS {I}; Output; End; Run; or PROC TRANSPOSE data = test = want out; By ID; Class class - servile; Run; In the future it will be best that you can supply your input and desired output.

How to create bootstrap grid system with 14 columns? -

I have 7 elements, I want to show them all with the same width, I want to put it right to bootstrap grid I am using the system. I can not divide 7 elements evenly into 12 columns. Is there anyway that I can make myself self-LG-14? Yes, quite easily. Change the default @ grid-column instead, 12, here: Then download this custom boost and include it in your head instead of the stock bootstrap.

javascript - How to display only 3 items from my backbone collection -

I got new in m backbone and I got stuck with this issue for my collection 3 items are required to display and display after clicking and displaying 3 other of them. I know I can use for example before () method underscore.js but how? This is my code: $ (function () {var function = backbone.model.edended (); var task list = backbone.collection.example ({model: work, url: ' JS / Data.json '}); var View Workbench = Backbone View.Extension ({AL: "# Task", Template: _Template ($ (' # Task Title ') .HTML ()), Render: Function ( } {_.each (this.model.models, function) {var workTemplate = this.template (tasks.toJSON ()); $ (this.el) .append (taskTemplate);}, this); ;}}}; Var function = new worksheets (); var workspace = Wins = new workspace ({model: function}); function; fate ({reset: true}); work; bid ('reset', function () {tasksView.render ();});}); You can use underscores first method. That it helps var taskbar view = backbone.View ex...