Posts

Showing posts from April, 2013

c# - Launch file from isolated storage in Windows Phone 8.1 -

This separate storage Launched with the default app I have done all the code very well, even opening the ".pdf, .txt" document Save to, but its contents are not visible, it remains empty In case of ".docx", I get this message: "Documents are damaged. Obtained and could not be opened " Please see below my code: string file =" abc.pdf "; Uri Uri = new Uri ("https://www.abc.com/abcd/getDocument"); Webclient wc = new webclient (); Wc.OpenReadAsync (URI); Wc.OpenReadCompleted + = wc_OpenReadCompleted; Async zero wc_OpenReadCompleted (object sender, OpenReadCompletedEventArgs e) {byte [buffer = new byte [e.Result.Length]; E.Result.ReadAsync (wait for buffer, 0, (int. Buffer)); Using (IsolatedStorageFile storageFile = IsolatedStorageFile.GetUserStoreForApplication ()) using {(IsolatedStorageFileStream Section = storageFile.OpenFile (file, FileMode.Create)) wait {stream.WriteAsync (buffer, 0, buffer.Length); Strea...

python - How To Get Values of Variable For All Instances of A Class -

I have a Python class with thousands of examples Each instance has several variables. For all the examples of class I have to get values ​​of the specific list variable. I believe this has been done with ... __ dict__ I think the data I just can not seem to get the syntax rights for the requirement. I know that this is a simple line of code. Anybody know what the code is? As Klaus D says, you should maintain a manual list. However, if all of these examples are present in the local area of ​​a function, then the code below shows how you can get them. But even if this is possible, I recommend you strongly no to do this #! / Usr / bin / env python import random class myclass (): def __init __ (self, data): self.data = data def main (): random.seed (42) # For example, some examples of myclass for i ): Expand all examples of myclass from print s exec (s), local () # in S = "a% 02d = myclass (% d)"% (i, random.randint (0, 99)), globals () Local (for ex...

javascript - Changing DOM order after drag and drop with packey and draggabilly -

itemprop = "text"> There is a bug on this code docReady (function (); On top pckry = new packery (slidesElem, {rowHyight: slideSize.outerHeight}); / varSelector ('slide.'); SlideSize = getSize (document.querySelector ('Slide.')); / Item items on itemElems = pckry.getItemElements (); // for each item (for example, I = 0 lane = itemElems.length; I & lt; lane; i ++) {var = ItemElems [i]; // Elements Draggabilly draggie with draggie to make = Draggabilly (ELEM, {axis: 'y'}); // Packery pckry.bindDraggabillyEvents (draggie) bound to draggabilly events;} // Once again the item is in the position after the dom pckry.on ('dragItemPositioned', function (_pckry, draggedItem) {var index = pckry.items.indexOf (draggedItem); nextItem = pckry.items [index + 1] ; SlidesElem.inser first (dragged itam.lim, next etam.liment);});}); When I drag the "first" item to "last", the DOM does not change and the error appears in th...

java - Customizing dynamically gene jFrame -

How to optimize jFrame and font size for jLabel set on ? Last GeFreem Frame = New JFram ("Bill"); Frame.setLayout (new grid layout (0, 1)); Try {string sql = "SELECT * FROM order_detail"; Rs = st.executeQuery (SQL); While (rsnext ()) {string printLbl = rs.getString ("Prasad_name") + "X" + RSIISIITIIITIIITI .iIIIITIIIIIIT "+ +" + RSIIITI ("Prasadcast"); Frame.ed (new jlabble (printLL)); Frame.validate (); Frame.repaint (); } Frame.ed (new jlabel (jlab 82.getText ())); Frame.validate (); Frame.repaint (); } Hold (SQLException e) {System.out.println (e.getMessage ()); } Frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); Frame.Sets (700, 400); Frame.setVisible (true); Printjobjobjob = printerjob.jet printerjobe (); Job.setJobName ("frame"); Job.setPrintable (New Printable) {Public Entit Print (Graphics Page, Page Format PF, Int page New) {if (pageNum> 0) {Printable.NO_SUCH_PAGE;} Graphics2D g2 = (Graphi...

regex - Validating email format in java -

इस सवाल का पहले से ही एक उत्तर है: 73 जवाब मुझे एक ईमेल सत्यापित करने की आवश्यकता है पैटर्न जो alphabat से शुरू होता है और @ gmail.com से समाप्त होता है। निम्नलिखित मेरा कोड है। सार्वजनिक स्थिर बूलीयन isValidEmail (स्ट्रिंग ईमेल) {स्ट्रिंग एंडपाटण = "@ जीमेल.com"; अगर (शून्य == ईमेल) {वापसी झूठी; } यदि (email.length () & lt; 10) {वापसी झूठी; } यदि (! Email.endsWith (endPattern)) {वापसी झूठी; } स्ट्रिंग [] strArr = email.split (एंडपाटन); स्ट्रिंग मेलआईडी = स्ट्रैर [0]; यदि (! वर्ण। लिटटर ((मेल आईडी.चार्ट (0)))) {वापसी झूठी; } वापस सच; } क्या इसको स्वीकार करने का एक बेहतर तरीका है? एक regex या बेहतर कोड? एक regex का उपयोग करें सार्वजनिक स्थिर बूलीयन isValidEmail (स्ट्रिंग ईमेल) {यदि (ईमेल! = नल) {पैटर्न पी = Pattern.compile ("^ [A-Za-z]। *? @ Gmail \\। Com $"); मैचर एम = पी। मेट्चर (ईमेल); वापसी m.find (); } विवरण झूठा है; }

Pixel accurate OpenGL rendering using multisampled FBO and resolve FBO -

I am "forced" to do some offscreen rendering and compositing and try to get pixel exact results with some simple examples I am doing If I present a multi sample FBO (containing a textured buffer) and then with a similar buffer the default frame buffer is 100% correct with the same number of samples (hence the texture is correct ). But if I solve texture first, then the result of bluetooth on an intermediate single-sampled FBO and then the result of the bluetooth will result in a slightly lower (multi sample) frame buffer, the silhouette of geometry appears on the edges gives. I'm not giving texture as a fullscreen tray (yet) just blits Is this an error or is it indispensable?

Android: View Image in normal size from gridview -

I am using gridview for images from a specific folder. I want to create a code in the onitemclick event that when I click on the image, it is shown in full size I have tried some code from StackHowflow but it was not working in my case. My code for gridview public class private gallery activity {Private int count; Private bitmap [] thumbnail; Private Boolean [] Thumbnail selection; Private string [] arrPath; Private Image Adapter Image Adapter; ArrayList & LT; String & gt; F = new ArrayList & lt; String & gt; (); // file path list file [] listFile; Private reference mcontext; /** Called when the activity is first created. * / @ Override Crate on Public Zero (Bundle Saved Instantstate) {Super. Contents (Saved Instantstate); SetContentView (R.layout.gallery); GetFromSdcard (); GridView imagegrid = (GridView) findViewById (R.id.PhoneImageGrid); ImageAdapter = New ImageAdapter (); Imagegrid.setAdapter (imageAdapter); Imagegrid.setOnItemLongClickListener (New OnItemLo...

angularjs - angular ui router state with search elements -

Main question: Is it possible to use $ state.go () with custom search elements By $ location.search (e, v) ? Or maybe I need to use $ location.path () to use such a code? Why do I need it: I have a view, selects with some (all of them have a default value), and it would be nice if every change in the location changed to those options Will be (partners / partners / list? Branch = branch01 & amp; role = seller ). But by using $ state.go () I can only use $ stateParams (which is defined within the state URL) - but it does not satisfy me And I want to do a job that changes the state directly into FE / partners / list? Role = sellers . I would like a solution to use the $ location.search (e, v) because all the parameters are optional, so I can not create a state that searches for the search criteria Any set of can take. you .go () // Here is a skeleton app. Build your own from this crappy fork, or scratch. Var app = angular Module ('display', ...

c# - Can not reference a type through an expression why? -

I'm trying to create 2 forms. In Form 1, I want to save all new contacts, so I can display them later, and I am adding Form 2 to open another button where I want to make a contact and form 1 After closing the window to save the contact in the list created in I'm getting the error: on any expression on f2.Contacts = this.contacts Can not reference and I do not know why. Form 1: Using the system; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Linq; Using System.Text; System usage threading. Task; Using System.Windows.Forms; Name Location WindowsFormsApplication1 {Public Partial Class} Form 1: Form {Public Contact Contact = New Contact (); Public Form 1 () {Initialization (); } Public category contacts {Private list & lt; Contacts & gt; People = new list & lt; Contacts & gt; (); Public listing & lt; Contacts & gt; People come back {people; }}} Private Zero Button 1_Clic...

java - What is the name of the class, in which Apache Maven saved declared values of GroupId and Artifact Id in pom.xml file? -

Can anyone answer my question? Which is the name of the square, in which Apache Maven has declared the values ​​of the pom.xml file. For example this value might be "groupide" or "artifact id". View in organization from Apache.maven.project.MavenProject to Org.apache.maven: maven.project Artifact.

c++ - split a sentence so that adds each word in an array item -

I have a sentence, I want to break the sentence so that each word is added to an array item. I have done this on the following code is still wrong. string str = "Welcome to the computer world."; String strands [5]; Small counter = 0; For (abbreviate i = 0; i & lt; str.length (); i ++) {strads [counter] = str [i]; If (str [i] == '') {counter ++; }} I am answering because you should learn from your mistakes: just Use + = string operator and your code will work: // strads [counter] = str [i]; & Lt; - Changing the strands [counter] + = str [i]; & Lt; - To remove this empty space (if you do not want to add them), just change the order of space probe, like something: (abbreviate i = 0; i & lt; str.length (); i ++) {if (str [i] == '') Counter ++; Other strads [counter] + = str; } Anyway, I'm suggesting to use duplicate links

swing - ActionListener in java performs action on the second click -

I'm programming my first complex application in Java, swing when I've added ActionListener to my JButton. ActionListener changeButton = New ActionListener () {@Override Public Null ActionPerformed (ActionEvent e) {if (startButton.getText () == "Spustit") {StartButton.setText ("STOP") ; } And {startButton.setText ("Specialty"); }}} I'm adding the ActionListener to the button Private Zero Startbutton ActionProperty {startButton .addActionListener (changeButton); } Can you tell me how I called the executive? Thanks for all! You have done enough to codify ActionListener, at least, for the action listener itself . The problem is that you are adding action listener after an event (your second sample), thus your action listener will be asked for a second time, when you click it. A solution is very simple: button button = new pocket (); Button.addActionListener (New Exhibitist) {@Override Public Zero Improvisation (ActionEvent E) {...

android - Multiple dex files define Lorg/apache/harmony/awt/internal/nls/Messages -

I am currently developing an Android application that includes "Generate PDFs" and "Send mail with user interacting" background) "I'm using 4th library activation.jar , additionnal.jar , Mail.zer & amp; droidText. 0.2.jar . When I run this project, I get this error. [2014-10-17 17:58:00 - Dex Loader] In executing the decks Unable to: Multiple Decks File Defines Logg / Apache / Harmony / ATT / Internal / NLS / Message; [2014-10-17 17:58:00 - PDF Mail] Conversion failed in DualVir format: Unable to execute dex: Multiple Dix files I see many links but I can not find the correct answer. So how do I solve it? Can I? Edit I Would resolve session problems. I can replace droidText.0.2.jar with the itextg-5.5.3.jar file. Are you using Android Studio? If so, it may be helpful to work temporarily Add it to build.gradle: android {dexOptions {preDexLibraries = false} ... }

C - warning: assignment makes pointer from integer without a cast -

I have no clue that I get this warning in my variable and return value match. I have pasted under the variable, for that assignment and function of that variable (return value and all) char * menuMsg; / * Menu options are used to print * / menuMsg = printMenu (); Char * printMenu () {Fixed four messages [250] = "Choose an option below: \ n"; Strcat (Message, "(1) List all the files on the server \ n"); Strcat (Message, "(2) Recover file from server \ n"); Strcat (Message, "(3) Recover all files from server \ n"); Nomad (Message, "Enter your selection:"); Return message; } Why would I get this error as a clue? For me, they prepare the conditions for all types of announcements. This is because you are calling the function before declaring the undeclared functions as Int is considered to be back, which explains the error. printMenu () Before defining the function that is calling, or add a prototype: char * printMenu...

letter spacing - Auto space a text each 4 characters by CSS? -

I want to ask if the text can be automatically converted into a form when you type through CSS. Before : 513031421694 // After : 5130 3142 16 9 Vacancy / word-spacing), without success, and I can touch CSS only. Unfortunately, at this time, the JS Solution can only format the formatting in all your element types the option. There is a problem that will solve this problem, although no movement or mention has been made since 2008. The proposed 2 new CSS rules @ decimal-format and number-format . @ decimal-format value {group-separator: ","; decimal separator : "." } .price {number-format: "###, ## 0.00", "Price"; / * Price is really redundant because this format will default / / then apply a simple class formatting. & lt; Span class = "price" & gt; & Lt; 987654321 / Span & gt; Will appear as 987,654,321.00 USD but this is the only one that has not been transferred since 2008.

PowerShell Export-CSV creates empty file -

ऑब्जेक्ट्स को Export-Csv से पाइपिंग करते समय सीएमडीलेट हमेशा एक फ़ाइल बना रहा है, तब भी जब आउटपुट पाइप लाइन का खाली है क्या यह सामान्य व्यवहार है? कोड: '1' | जहां {$ _-'1'} | निर्यात-सीएसवी -पाथ $ फ़ाइल- कोई टाइप जानकारी मैंने जहां से {$ _} जोड़कर इसे टालने का प्रयास किया, लेकिन एक खाली फ़ाइल भी बनाई गई: '1' | जहां {$ _-'1'} | जहां {$ _} | निर्यात-सीएसवी -पाथ $ फ़ाइल - कोई टाइप जानकारी एक वैकल्पिक हल होगा: '1' | जहां {$ _-'1'} | Foreach {if ($ _) {निर्यात-सीएसवी -पाथ $ फ़ाइल- कोई टाइप जानकारी- एनकोडिंग यूटीएफ 8 -डिलीमीटर ';' -Append}} लेकिन foreach का उपयोग करके और एक यदि थोड़ी अधिक लगती है I क्या एक खाली फ़ाइल के साथ समाप्त होने का कोई आसान तरीका नहीं है जब कोई जानकारी इसके लिए पाइप नहीं हुई है? यह अजीब लगता है कि Export-Csv सिर्फ एक फ़ाइल बनाता है, भले ही उसे कुछ भी प्राप्त न हो। ठीक है, अगर आप निर्यात-सीएसवी के लिए पाइपिंग कर रहे हैं तो आप डिस्क पर लिखने का निर्णय ले चुके हैं अपने स्वयं ...

c# - XNA 4.0 - Load texture without background -

Image
How to draw a phantom without background: Display it for example: Without I am using XNA 4.0 . I do not want to edit all the textures: / thanks!) Solution! Image Properties - & gt; Content processor - & gt; Color key color - This is a color that we will remove. You have to save it from .NET Paint. Remove the alpha as PNG and so that when you import it, it is empty. You can find Net Color

r - Both extract and create names for columns within a matrix -

I have a matrix with columns representing 30 different frequency windows and rows representing rows. I want to extract each column and assign a variable to each vector and the name of that variable should be the name of that frequency window (which is the value between me, so I would like to name just like the f100 as each variable). What is the best way to write a loop to extract and nominate each variable? If you want to create 30 variables in the global environment, the columns of the matrix , You can use list2env or assign (I'll probably put a list in a matrix / dataframe or even make lists and all necessary actions list2env (loop (as.data.frame (mat), function (x) x), envir =. GlobelEnv) # environment: R_GlobalEnv> F1 # [1] 37 38 12 34 26 21 30 6 27 29 data set.seed (42) mat & lt; - mat Ix (sample (1:40, 30 * 10, location = TRUE), ncol = 30, dimnames = list (NULL, paste0 ("f", 1:30)))

How to save text(post) in user folder with unique id for retriving it PHP -

I am creating a social network website, but how to use the user ID Can save? I thank you in advance, would be great for me. You can do this by using the database - this is Good luck is inappropriate to install a social network without a database

parse.com - indexOf of undefined error in parsing through cloud -

क्लाउड फ़ंक्शन के नीचे त्रुटि प्राप्त करना। NSMutableDictionary * params = [NSMutableDictionary नया] ; पराम [@ "उपयोगकर्ता"] = _sender_ID; पैरामीटर [@ "प्राप्तकर्ता आयड"] = _owner_ID; परामश [@ "संदेश"] = msgToSend; [PFCloud callFunctionInBackground: @ "PushToUser" साथ पैरामीटर: पैराम्स ब्लॉक: ^ (आईडी ऑब्जेक्ट, एनएसईआरआर * त्रुटि) {if (! त्रुटि) {// पुश ने सफलतापूर्वक एनएसएलॉग भेजा (@ msg msg!); }}]; Main.js पर अपरिभाषित विधि 'मेल' की कॉल नहीं कर सकता: 15: 35 (संहिता: 141, संस्करणः: 1.2.20) main.js के लिए कोड नीचे है। पार्स.क्लूड.डेफाईन ("भेजेंपूटटूयूसर", फ़ंक्शन (अनुरोध, प्रतिक्रिया) { Var प्रेषक उपयोगकर्ता = अनुरोध। यूज़र; var प्राप्तकर्ता यूसर आईडी = अनुरोध.परामैम.रेपिन्थआईड; var संदेश = अनुरोध.परम। मेसेज; // मान्य करें कि प्रेषक को प्राप्तकर्ता को भेजने की अनुमति है। उदाहरण के लिए प्रत्येक उपयोगकर्ता objectIds की एक सरणी है दोस्तों की (यदि senderUser.get ("मित्र इडिप्स")। इंडेक्सऑफ़ (प्राप्तकर्ता यूसरआई...

c# - Autofac DI not working on an API controller -

I have a hard time with this one My setup works with the normal MVC controller, but the API controller with not. . Not sure what I'm doing wrong either Here's my container setup IContainer container = null. Containerbuilder Builder = New Containerbuilder (); Bilderkregistrkantrolrs (. Sistmkvebkkanpaileshnkbuildmnagrkgetgloblssteepe () Bsatypekasenbli) Kproperthysutovired () Instanseperrekuast () Instanseprdependensi () .. Bilderkregistrpikantrolrs (. Sistmkvebkkanpaileshnkbuildmnagrkgetgloblssteepe () Bsatypekasenbli) Kproperthysutovired () Instanseperrekuast () Instanseprdependensi () .. Builder.RegisterModule & LT; LoggerModule & gt; (); builder.Register (c = & gt; {// if we Owin reference is not just a new building, so (HttpContext.Current == null || HttpContext.Current.Items [ "owin.Environment"] == null ) {return UserManager.Create (new IdentityFactoryOptions & LT; UserManager & gt; (), (System.Data.Entity.DbContext) null);}. go Http...

javascript - How to update record in SailsJS without triggering model lifecycle callbacks -

I have a model where I have to retain the record after updating or saving new records in the table. The problem is that updated updates to UpdateTree are updated after the callback. module.exports = {id: 'role', attributes: {.}, AfterCreate: function (rec, cb) {fixTree (); CB (); }, AfterUpdate: function (Rick, CB) {fixTree (); CB (); }}} Function fixTree () {/ * code here * / Role.update (....); / I am using controller functions create: function (req, res) {var data = {}; Data.name = req.body.name; Data.parent = req.body.parent; Role.create (data, function (mistake, record) {role.tree.fix (function () {res.ok (record);}}}}); }, Update: Function (Rick, Race) {var data = {}; Data.name = req.body.name; Data.parent = req.body.parent; Role.update (req.params.id, data, function (error, records) {role.tree.fix (function () {res.ok (record);}}}}); },

osx - Can you implement OS X's Finder download progress bars from a shell script? -

I first thought that there might be some variation on extended features which can be modified with the xattr command line tool. However, I have staged many tests, and in this mode the files are not in special features. Is it accessible to everyone from the command line, or is it possible only from some cocoa API AFAIK, this is all the NSProgress class, through a cocoa API, so the probability of receiving it is very small from a shell script: How to chrome here Has been applied (new code may be available):

How to check whether the value of my scope data is changed or not in angularjs? -

Text after "itemprop =" text "> I have created an HTML for" drop-down "html / partials / institutions / coordinator.dropdown.html & lt; Div class = "dropdown" ng-click = "toggle dropdown" & gt; & Lt; Button class = "form control overflow" type = "button" id = "dropdown menu =" data-toggle = "dropdown" name = "datatype" id = "datatype" ng-required = "true" ng range = "{' Selected-class-name ': $ index == selected index} "ng-model =" coordinator.fol "ng-bind =" coordinator.follow "required & gt; & Lt; / Button & gt; & Lt; Ul class = "drop-menu dropdown-menu-list" role = "menu" aria-labelledby = "dropdown menu-list" ng-init = "toggleDropDown = true" ng show = "toggleDropDown" & gt; & Lt; Li role = "presentation" ng-repeat = "item...

javascript - Exclusive selecting list elements -

मेरे पास एक अनोर्ड सूची है: & lt; ul & gt; & Lt; li एनजी-क्लास = "{'सक्रिय': चयनित}" एनजी-क्लिक = "चयनित =! सिल्क्टेड" & gt; स्टफ़ 1 & lt; / li & gt; & Lt; li ng-class = "{'सक्रिय': चयनित}" एनजी-क्लिक = "चयनित =! सिल्क्टेड" & gt; स्टफ 2 & lt; / li & gt; & Lt; li एनजी-क्लास = "{'सक्रिय': चयनित}" एनजी-क्लिक = "चुने गए =! सिल्क्टेड" & gt; स्टफ़ 3 & lt; / li & gt; & Lt; / ul & gt; मैं एक सूची आइटम को उपयोगकर्ता को चुनने के लिए एक क्लास को लागू करना चाहता हूं। केवल एक आइटम उस समय एक ही वर्ग हो सकता है इस दृष्टिकोण के लिए सबसे अच्छा कोणीय-इश तरीका क्या है? लगभग एक दर्जन तत्व हैं या तो, मैं प्रत्येक आइटम के लिए एक नया चर घोषित नहीं करना चाहता हूं। प्रत्येक आइटम के लिए एक संपत्ति सेट करें: & lt; ul & gt; & Lt; li ng-class = "{'सक्रिय': चयनित == 1}" एनजी-क्लिक = "चयनित = 1" & gt; सामग्री ...

html - wp_enqueue_style Does Not Behave As Documented -

add_action ('wp_enqueue_scripts', 'html' मेरे पास ड्राइवर में लिखा गया है: Add_css_file '); फ़ंक्शन add_css_file () {// यह पहले की कोशिश की: // $ path = ABSPATH "/ WP-सामग्री / plugins / this_plugin / सीएसएस /"; // wp_register_style ('css_file', $ path.'css_file.css '); Wp_register_style ('css_file', 'http://subdomain.mysite.com/wp-content/plugins/this_plugin/css/css_file.css'); Wp_enqueue_style ('css_file'); } स्ट्रिंग "css_file" दृश्य स्रोत HTML में प्रकट नहीं होता है और उसमें परिभाषित सीएसएस नियम प्रभावी नहीं होते हैं। क्या आपने अपने पृष्ठ के wp_head () को और gt में शामिल किया है? wp_head () आपकी कतारबद्ध शैली और स्क्रिप्ट को पृष्ठ पर जोड़ देगा।

php - Converting array to string -

I have a cart php page where I display client products. In the same page I have a form that sends the client's personal information such as name, surname, etc., but sends product information such as product name, statue, etc. directly to my email address. Now, the problem is that when I send the form, I get all the information at my email address, but not the product details, for example, I have an ARRAY in the order email on the product name field. I think there is a problem in changing the array to string but I do not know that I tried some examples but none of them works. I have put my code that i think my problem is 'Echo' '; Echo ''; echo '& lt; Input type = "hidden" name = "product_name ['. $ Cart_items.']" Value = "'. $ Obj-> product_name.'" / " '; Echo '& lt; Input type = "hidden" name = "itemcode ['. $ Cart_items.']" Value = "'. $ Pr...

vb.net - Visual Basic - Grouped radio buttons -

Actually, the work I want to do is for me to read the selected radio button in a list week Is the key. Here is my code (list view): Personal sub-Button1_Click (as the object, in the form of e EventArgs) handle AddButton.Click Dim Col1 string = ComboBox1.Text Column String = Dim Col3 String = ComboBox3.Text as Edge Reddit Adds New ListViewItem as OrderText = Col1 as 'First column to order.SubItems.Add (col2)' as the dim The second column joins the order.SubItems.Add (Col3) 'adds the third column ListView1.Items.Add (sequence) End Sub to If I put RadioButton1.Text in Dim Col2 and U Select when it runs, it displays it, but I want it so much that it shows what radio button is selected and displays the correct text. My group has four radio buttons, Which is called Groupbox 1 and each radio button is Radiobutton 1, 2, 3 etc. The combo box is being used as the same but I need some type of radio button in my program. Any help is appreciated Two radioobuttons insi...

Wordpress Custom Hooks For Theme Issue -

Using the Share Button plugin. All social buttons are now shown right below the post content. But I want to show them on a custom status in the postdate The plugin buttons are shown using the following part of the code: add_filter ('the_content', ' Ssb_display '); This code shows a social share button below the post content, but I want to show them on the second position in the same post div. how can I do this. Please do not give negative to my question as I'm a newbie in WordPress. In fact I want to define the add_filter to hook that in my filter hook then wordpress. Thank you. Unlike add_filter , and since the callback is registered by one In the name function, you only need to add // functions.php remove_filter ('the_content', 'ssb_display'); and then display, the buttons you want Update for any reason you do not use Can ssb_display function directly in your template, you can use a custom filter app...

Calling properly TypeScript code from JavaScript -

We had to face situations that are not very well described in the articles and these internet We need to integrate our existing Javascript infrastructure code which supports SPA, which is being developed by other teams on typecript. We can not change the perspectives (such as just pick one language) for many political boundaries and available development resources. And we fully understand that it is not a good idea to possibly integrate two pieces of structure together in different languages. However, we need to evaluate the effect and type of Best TypeScript calls from Javascript code. / P> The rationale is that typedcript has been compiled essentially in JavaScript, it seems vague because there are no reliable sources of information about how to properly use javascript compiled from manuscript javascript Goes and hidden warnings (or alternatives). It also seems that the opposite position when typing code requires javascript to be called, surprisingly very well described...

linux - How can I 'nohup' a command and log the output of 'time' -

I want to give a long-running script time, and the output of time A log file, such as: (time php mylongcommand.php) & amp; & Gt; Dump This works, but if I want the command nohup then I can see the log later, the following code does not work: nohup (time php mylongcommand.php) & amp; Dump & amp; Any suggestions? (time php mylongcommand .php) & amp; & Gt; Dump & lt; / Dev / null & amp; should also do the trick by redirecting the input from / dev / null and keeping the process in the background, the same effect is achieved as You nohup . You should be able to exit your shell session without any closed work error, and the process will continue.

python - How to use method load() in loadable components using Java -

I have worked with loadable components using python, you can type one of the following load methods: def load (self): self._parent_page.get () self._parent_page.click_this_button () Where the click_this_button () method defined in parent_page class How can I use the same syntax in Java? In Java I can only write parentPage.get (). Is there a way to reach the methods defined in parents in Python? Thanks

sql - Mysql select query for getting current user post and followed friend post -

मेरी वर्तमान चयन क्वेरी स्टेटमेंट: SELECT T.postID, T.message, T । समय, यू। यूसेरआईडी, यू.नाम, यू। यूजर यूजर, यू पिक्चर_रिल एफओडीएस पोस्ट से, उपयोगकर्ता यू.के. के रूप में टी.पोस्टआईडी = '$ यूआईडी' // $ यूआईडी ने चालू लॉग इन यूज़र ऑर्डर का आईडी रखता है टी। पोस्टिड डीईएससी; मेरी चुनिंदा क्वेरी मौजूदा लॉग इन उपयोगकर्ता के पद को आउटपुट करती है, लेकिन मैं वर्तमान लॉग इन उपयोगकर्ता के बाद के उपयोगकर्ता के पद को भी आउटपुट करना चाहता हूं, मैं यह कैसे कर सकता हूं? उपयोगकर्ता टेबल: + ------------ + ------------ + ---- - + ----- + --------- + ---------------- + | फील्ड | प्रकार | नल | कुंजी | डिफ़ॉल्ट | अतिरिक्त | + ------------ + ------------ + ------ + ----- + --------- + ---------------- + | UserID | int (11) | नहीं | पीआरआई | नल | ऑटो_इन्रिमेंट | | नाम | VARCHAR (60) | नहीं | | नल | | | उपयोगकर्ता नाम | VARCHAR (20) | नहीं | | नल | | | picture_url | VARCHAR (200) | नहीं | | नल | | + ------------ + ------------ + ------ + ----- + --------- + ---------------- + डाक सार...

azure - When I use the Roles object I get an error of "Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'" -

So, I'm searching on the Internet for a solution. I've done a lot of research and it only lags me more Have given. I'm building an MVC 5 site for Azure and I'm having trouble setting up Roll Management. When I use Roll object, I can not find the "stored procedure" dbo.aspnet_CheckSchemaVersion ' add Name = " RoleDB" connectionString = "data source = (locali) \ v11.0; AttachDbFilename = | Data directory \ Techdb3.mdf; Integrated Security = True "Provider Name =" System.Data.SqlClient "/> & gt; RoleManager enabled =" True "& gt; & lt; Providers & gt; & lt; clear / & gt; & lt; Connection Add StringName = "RoleDB" name = "AspNetSqlRoleProvider" type = "System.Web.Security.SqlRoleProvider" applicationName = "TechAndGames" /> MVC 5 You must remove roleManager . > roleManager & gt; in your latest MVC 5 app, and the exact...

php - calculate the difference between two dates with strtotime -

इस सवाल का पहले से ही एक उत्तर है: 2 9 उत्तर मुझे एको करना है दिन एक चर और अब के बीच छोड़ दिया जाता है। यह कोड है $ अब = दिनांक ('वाई-एम-डी'); $ दिनबाउंड = स्ट्रोटोमेट ($ स्टार्ट-प्रोजेक्ट - $ अब); प्रतिध्वनि "अब ="। $ अब "& Lt; br & gt; प्रारंभप्रोजेक्ट ="। $ Starttheproject। "& Lt; br & gt; दिनबाह्य ="। $ दिन शेष; प्रतिधारा का नतीजा: पंक्ति = 2014-10- 17 Starttheproject = 2014-10-22 दिनबाह्य = प्रश्न: कैसे की संख्या की गणना कर सकते हैं दिन, ताकि नतीजा होगा '5' मैं इस तरह से कोई भी भाग के साथ कोड के साथ खेल रहा हूं: $ daysleft = date ('ym-d', स्ट्रैटोमेट ($ starttheproject) - $ अब)); इस के साथ प्रयास करें: $ date = नया दिनांक समय ('2014-03-10'); $ खत्म = नया दिनांकटाइम (); $ अंतर = $ दिनांक- & gt; अंतर ($ समाप्त); $ अंतर = $ अंतर- & gt; प्रारूप ('% R% a'); यदि ($ अंतर & gt; 10) {// यदि पोस्ट 10 दिनों पुरानी है, तो 'अब नवीनीकृत करें...

ios - Using AutoLayout for all screen sizes -

So I'm trying to switch to the use of autolayout for each screen size rather than separate storyboards. The problem I am facing is that I display the layout 3.5 "and 4", but 4.7 "and 5.5" well enough to see how much more white space is. So my question is how can I make it so that I can use any height of 4 "and the compact width under the display and then display 4.7" and 5.5 "?

mysql - How do I GROUP BY and then LEFT JOIN? -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मेरे पास यह है तालिका: ------------------ | आईडी | खाद्य पदार्थ | ------------------ | 1 | कुकीज़ | | 2 | केक | | 3 | दूध | ------------------ और यह तालिका: ------------------ | आईडी | रंग | ------------------ | 1 | लाल | | 1 | नीला | | 1 | गुलाबी | | 2 | नारंगी | | 2 | पीला | | 2 | बैंगनी | | 3 | सियान | | 3 | सोना | | 3 | चांदी | ------------------ मैं पहली तालिका से खाद्य पदार्थों का चयन करना चाहता हूं और उन्हें दूसरी तालिका से रंगों से मेल करना चाहता हूं, आईडी पर आधारित। इसलिए मुझे आउटपुट को इस तरह दिखना चाहिए: ------------ -------------------------------- | आईडी | खाद्य पदार्थ | रंग | -------------------------------------------- | 1 | कुकीज़ | लाल, नीला, गुलाबी | | 2 | केक | नारंगी, पीले, बैंगनी | | 3 | दूध | सियान, सोना, चांदी | -------------------------------------------- मैं यह कैसे कर सकता हूं? संपादित करें: यह एक डुप्लिकेट नहीं है। मैं सम्मिलित करने की कोशिश नहीं कर रहा हूं मैं एक संयुक्त ताल...

ios - iPhone text input field zoom- control zoom area -

Image
So I'm working on a mobile form and I know that the iPhone zooms on input areas The problem is that IPhone is zooming and cutting labels for each field (image attached). I know how to stop zooming altogether, but it is not what we want to do. Is there a way to add margin / padding to the iPhone zoom on the left to show the label? Or maybe to set the zoom to focus on the left? What I have been told from my iOS boy, it is not worth it to fight the iPhone's zooming feature, you can stop the phone from zooming, change the input font size, so that it does not zoom to a particular element or auto zoom Not live together In this case, we reduced a work-around and input field so that when the phone zooms it will show the entire field and label at the same time.

mysql - Creating a Table in SQL, where each tuple can have mutiple values -

I am trying to create a table using the table in SQL where a person can work in many places. Now, because a person has to make the table (person four (15), place four (15), salary int Can work in many places, I am confused that there are many values ​​in place of Tupal, if yes. How do I do this? Thank you in advance You should create three separate tables: "people" Ent ID (primary key, auto increment) varchar username varchar email ... (all other information is required) "places" int id (primary key, auto-increment increase) varchar name etc. and the third table gives you a relationship between two: "id =" person_places "(or place_persons, depending on what you like) int id (Primary key, auto-intent) int place_id (linked with the id of the "places" entry) int intert (id "id" is linked to) In this way, every Once a person starts working in a new place, you simply add an entry for "person_places" i...

c# - Using the generic type 'System.Collections.Generic.List<T>' requires 1 type arguments -

I have two methods that are code here, so I apply the following code to your project, I have a problem . using the system; Using System.Collections.Generic; Using System.Linq; Using System.Web; Using System.Web.UI; Using System.Web.UI.WebControls; Using System.Data; Using System.Data.SqlClient; Using Microsoft Reporting. Webform; Using System.configuration; Using System.Web.SessionState; Using RLISDev.Models; Using RLISDev.BaseObjects; Using System.Web.Mvc; Using RLISDev.Extensions; Using RLISDev Annotation; Using System.Collections; Safe Override Zero OnPreRender (EventArgs e) {base.OnPreRender (E); DatePicker1.Value = string.Join ( ",", (New & gt; list (GetDateParameters ()) toArray ()).); } Private IEnumerable GetDateParameters () {// I think this report visual control ID // ReportViewer foreach (as ReportParameterInfo information ReportViewer1.ServerReport.GetParameters ()) {if (info.DataType == ParameterDataType.DateTime ) {Yield return string. Format ("[...

exception - multiple statements in try/catch block - Java -

मुझे कुछ अनिश्चित है कि यह क्या है: try {worldHeight = Integer.parseInt} (जॉप्शनपेन.शोइनपुटडियलोग ("कितने कोशिकाएं दुनिया को उच्च होंगी ?:")); } पकड़ (संख्याफ़ॉर्मेट अपवाद ई) {JOptionPane.showMessageDialog (रिक्त, "आपने एक मान्य संख्या दर्ज नहीं की है"); } {WorldWidth = Integer.parseInt (प्रयास करें। प्रयास करेंडियोलोग ("कितने कक्षों की चौड़ी दुनिया होगी ?:)"); } पकड़ (संख्याफ़ॉर्मेट अपवाद ई) {JOptionPane.showMessageDialog (रिक्त, "आपने एक मान्य संख्या दर्ज नहीं की है"); } ऐसा ही काम करेगा: try {worldHeight = Integer.parseInt (जॉप्शनपैन। शोइनपुट डायलॉग ("दुनिया कितनी उच्च होगी ?: ")); WorldWidth = पूर्णांक। पैरासेइंन्ट (जॉप्शनपेन। शो इन्पुट डायलॉग ("कितने कक्षों की चौड़ी दुनिया होगी ?:")); } पकड़ (संख्याफ़ॉर्मेट अपवाद ई) {JOptionPane.showMessageDialog (रिक्त, "आपने एक मान्य संख्या दर्ज नहीं की है"); } मूल रूप से उपयोगकर्ता को एक संख्या दर्ज करने के लिए चाहते हैं, यदि यह नहीं है तो कोई संख्या अपवाद फें...

symfony - Custom FOSUserBundle Login Template using Bootstrap -

I have installed Symfony2, FOS User Bundle and Twitter Bootstrap. Then I / App Setup / Resources / FOSUserBundle / views / layout.html. Use my site template to override the FOSUserBundle template. If I have a link to the homepage / login then it all works. > Now I want to implement a template where the login form is part of the main template. I want to use it in the closest main template: I can override the layout html to not expand the main code, but it can style / styling all the styles Removes {% render controller ("FOSUserBundle: Security: login")%} / P> Any ideas how I both Can handle the scenarios? You were almost there :) You can use any of the render functions Can include login form in other template. Visit / Security / Launamatma To create the T vig and the FOSUser bundle wrapping {% block fos_user_content%} to return this form directly: {% error% } And gt; {{Error | Trans}} & lt; / Div & gt; {% Endif%} & lt;...

node.js - nodejs single thread? how does it works if there are lots of concurrent requests -

I am new to nodes, I am currently learning this. I know that nodes are single-threaded, though I'm thinking: for example, if I use non-inhibitory method, for example, 20000 concurrent requests, and need to take a request for a long time Other threads take a little time, so once we meet the request for a long time, Nodes will say, "Hello, please stop, need to use another request", whether for a nodezone The Ifolt time, to determine whether it has been halted? Correct me if I use the wrong word "pus" (because I think this is a single thread, so one request should be stopped computing, if another request wants to be processed.) I think that In the situation, then the long-term request is needed to be processed? Thank you for helping. It is true that node.js can only be received or respond to a single request at a time Please, however, it can process many requests at the same time. For example, you can say that you have a node.js app that is the rest of...

sql - Counting how many times each value occurs in a PostgreSQL table? -

Then there is a table with three important columns: store location, customer, and number of purchases. Something like this: Store | Customer | The number of purchases is a Larry 2B mo 4c curly 7b tina 1 a dina 6c archer 12d malory 3 What I want to do is counting each of the purchases . That is, customers calculate the number of 1 purchase, 2 purchases, 3 purchases, 4 purchases etc. Like histogram, grouped by store. Store | Buy 1 Buy 2 3 purchases ... a 1 3 2 b 2 1 4 c 1 6 to 8 d4 4 2 There is no manual to do this without knowing the maximum number of purchases There is no clever way too and is there to build one of the branches to count each one of them? Then I already have select store, calculate as 1_purchase (case number_of_purchases when 1 then 1 and null end) calculation as 2_purchase (case number_of_purchases when 2 then 1 And null end), calculate (case number_of_purchases when 3 then 1 and zero end) as 3_purchase ... by the table group; But, since the maxim...

spring - Junit hibernate-validation error -

I am using hibernate-validated annotations in my organizations and this is the reason for exception in my junior tests. I disable Hibernate Verification with property: & lt; Prop key = "javax.persistence.validation.mode" & gt; No & lt; / Prop & gt; Then JUnit test works very well otherwise I get the following error: due to: java.lang.ClassFormatError: absent in method code feature native or class file java.lang.ClassLoader.defineClass1 (Native method L / ExpressionFactory java.lang.ClassLoader.defineClassCond (ClassLoader.java:637) is not of the essence in javax / java.lang.ClassLoader.defineClass) at (classloader java: 621) java.security.SecureClassLoader.defineClass (SecureClassLoader.java:141) on java.net.URLClassLoader.defineClass (URLClassLoader.java:283) in java.net.URLClassLoader.access $ 000 (URLClassLoader.java : 58) java.net.URLClassLoader $ 1.run (URLClassLoader.ja va: 197) .loadClass on java.security.AccessController.doPrivileged (Nati...

javascript - Passing arguments to async.parallel in node.js -

I am trying to create a minimum example where I can complete as mentioned above. For this purpose, I have a minimum example, where I finally want to see the output 1 negative -1 -1 plus 3 of a 2 This is my code. var async = require ('async'); Var i, args = [1, 2]; Var name = ["negative", "plus one"]; Var funcArray = [Job negative (number, callback) {var neg = 0 - number; Console.log ("+ +" "Negative" + "+"); Callback (empty, negative); }, Function plusone (number, callback) {setTimeout (function (number, callback) is {var onemore = number + 1 console.log ("+ + +" + "+ +" on "+ +"); callback (Empty, onmore);}, 3000); }]; Var funcCalls = {}; For (i = 0; i Note that I am passing a named object async.parallel too. Passing an array (and completely forgetting about names) will also serve as an answer for me, but I am more interested in crossing such a thing. Any ideas on achieving my g...

javascript - When tableDnD is disabled it leaves residual css and I can't clear the css -

(table drag and drop) is a jQuery plugin that I use to reorder in my html table I am doing . This is a very cool library, but the fact is that you can click, drag and drop rows - disable the ability to select that line by clicking - it thinks that you can start drag and drop Or drag the 0-distance. So you can see my example here, and see what I'm talking about - It stops in the form of disabled, so the row again Enable and view libraries. Then, try to select only one row in between the only way highlighting the blue highlight indicates shows that you click outside the table limit , and this Type you will only be able to choose to start at the bottom or the top, and is not able to select a line at a time. I have tried to look at myself in the library and I will be able to copy these lines to Excel in order to copy them to Excel ('__ dragtable_disable_text_selection __') Rows need to be selected. I have tried jquerys to choose without, I've tried $ ('...

kubernetes - How are minions chosen for given pod creation request -

How does Kubernetes make available a mining pod among many for ordering orders? Is this something that can be controlled / tweaked? Repetitive pods are presented for deployment, quite intelligent to keep them in different minions if they expose the same container / host port pair Kubernetes? Or is it always place different replicas in different minions? What are the two different pods (not necessarily replicas) like what about the corner cases that the same host / container port exposes the pair, are they presenting? Will they be carefully placed on different minions? The pods require special calculation / memory requirements, is that enough resources can be left in one minion / host left to meet those requirements? In summary, there is detailed documentation on Kubernetes Pod appointment strategy? There are rules in the algorithm using "itemprop =" text "> beans are set for ports To prevent host-port conflicts, and also to ensure that there are suf...

ElasticSearch Bool Query or Finding Exact Values -

I am slightly confused versus in elasticsearch. Specifically, I have title_field and post_field which I want to find. But I use all my other areas because I want to see whether they exist or not or how often (should be accurate as URL or username). Then I can see from the docs that I can do one at title_field and post_field . But what about other fields I want accurate reactions? Should I use one? Or do I need to remap all those areas? Or do I need to map them to not_anayzed as before and then do a boolean query? "itemprop =" text "> In fact, you want to map areas that you want to exact as match on not_analyzed, map It means that many tokens are treated as they are treated as a single mark instead. Then you should use a word query or filter to match exactly the token. If you are using a filter, you can use and, or, and not as well (more convenient than the bool) filter. Since mapping all areas is a little hard, you can use dynamic_mapping ins...

java - Accessing an ArrayList of another class -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब ठीक है दोस्तों, यह ' मैं क्या करना चाहता हूँ यह है, यह मेरी प्रथम वर्ग: सार्वजनिक वर्ग फ़ुटबॉलर {int लक्ष्यों; स्ट्रिंग उपनाम = ""; स्ट्रिंग टीम = ""; निजी स्थिर इंट काउंटर = 0; निजी इंट ड्रेस; } (यह सिर्फ क्लास का हेडर है, बस आपको यह कैसे पता चलता है की कल्पना देने के लिए) ... और यह मेरा दूसरा वर्ग, जिसमें प्रथम श्रेणी के एक ArrayList शामिल है: सार्वजनिक वर्ग FootballTeam {String teamname = ""; स्ट्रिंग लीग = ""; ArrayList & LT; फ़ुटबॉलर & gt; च; } और यह मेरा तीसरा वर्ग है जिसमें दूसरे क्लास के एक अर्रेइलिस्ट शामिल हैं: सार्वजनिक वर्ग फुटबॉल लीग {स्ट्रिंग लेगुएननाम = ""; ArrayList & LT; FootballTeam & gt; फुट; } मुझे क्या करना है, पता है कि लीग में कितने फुटबॉल खिलाड़ी हैं? मतलब "एफ" में कितने "f" हैं ... मुझे सी ++ से याद है, यह आसान था, आपने ऐसा कुछ किया है: ft.f [i]; (जहां मैं एक स्थिति है), तो आप उनमें से प्रत...

Libgdx postprocessing with modelbatch in chain: opengl setting breaks model faces rendering order -

I use libgdx library with open-global graphics. I've added some libraries in the rendering series and this is something Brokers add to the setting of openness. Problems: Models forget about their depth in providing facial views; Internal faces are sung (when external faces are expected to be provided). Then my rendered scene looks: I have no source for this library and what is happening in the debug could not do. Update after the solution: I have tried to use this library as the source of official compiled strange jars. Solution comes at a time when I read the main processor's API constructor, then the parameter should be found in depth = true: new postprocessor (true / * Enable depth! * / False, true) ; Integration: The position located on the image shows rendering with in-depth depth. If you use libgdx # ModelBatch and Library together - you have the parameter depth = true Need to create main post-processor: New Postprocessor (True / * Enabl...

php - Table will not update, however showing successful -

I'm new to MYSQL When I try to update a database, then The result appears to be successful, but the item is not showing. Can someone please help me by changing the post in a session variable, trying to take it, but there was no difference. update_ac.php $ name = $ _POST ['name']; $ Last name = $ _POST ['review']; // Connect to the server and select the database. Mysql_connect ("$ host", "$ username", "$ password") or die ("can not connect"); Mysql_select_db ("$ db_name") or die ("can not choose DB"); // update data in mysql database $ sql = "Review SET name = '$ name', review = '$ lastname' WHERE id = '$ id'"; $ Result = mysql_query ($ SQL); // If successfully updated ($ result) {echo "successful"; Echo "& lt; BR & gt;"; Echo "& lt; a href = 'list_reviews.php' & gt; View Results & lt; / a & gt;"; } And...

c# - Error: The underlying provider failed on Open. How to resolve it? -

I have a function with this type of code: Var db = new MyDbContext ()) {// A complete bunch of code, DB is working. // Then I try to open other DbContext such as (var dba = new OtherDbContext ()) {// just about 2 lines to get something from a database}} And then when I get the second DBCTTEX, I get two error messages: "The underlying provider failed on the open." & Amp; "MSDTT is not available on server 'MySaer'." Is there any reason why this is happening? Can I open 2DBCTNet at a time? In the first scenario, you have AnotherDbContext . The connection to each of the databases is opened. When you call your service system with the help of a block, a new connection has been opened within MyDbContextwhile , another open already, this will give your transaction to a distributed transaction Is encouraged, and partially committed data (the result of dba.SaveChanges calls in the service) is not available from your external connection. Also...

dependencies - How long (time slots) does a functional unit take to fetch an operand? -

In computer architecture, functional units take time slots to execute the instructions. For functional units to execute more than 1 time slots, do they need to be read from the registers for the entire period of execution or do they need to read them during the slot for the first time? For example, if we have something like 3 Where there are 1,2, and 3 denoted registers and F is a functional unit takes 2 time slots to execute. Is F1 capturing registers 1 and 2 for reading in all 2 time slots, or can it capture only for the first time slot? This is important due to possible war related dependencies, which are in line with it. It depends on how you implement it; Both types are possible but common method is reading once. In the first cycle, there is a high probability of functional unit to waste the input value. Note 1: A working unit may require operands for only one cycle, even if the operation takes more. It is also dependent on functional unit type and its impleme...

validation - Validating given date (Ex-14/2/2012) is in format mm/dd/yyyy in dynamics ax x++ -

If present then if exists in IFAP, then I have to validate that the date is in mm / dd / yyyy format I give 14/1/2015 then he should give an error because the mm can not be 14. Mm should be maximum value 12. Somebody can help me Thank you. 1: day 2: month 3: year returns if parsing date is exemplified Example: date d = str2Date ('14 / 1/2015 ', 213); // Check for error if (! D) {error ("Your message ...");}

Can AngularJS $resource be tweaked to support JSON bodies on GET requests? -

I am using a $ resource to access an API which expects the JSON entity receiving a request . The default serializes serial data as serial, but I do not need it. $ resource text "itemprop =" text "> However, this is not really a good idea to use them. You will get very poor interop with other systems (for example, transparent or otherwise proxy). If you are not able to install a body on $ resource with GET, you need to have poor interop Such are going to see an example.

vb.net - Convert a string to a datetime -

मैं asp.net साइट का उपयोग कर रहा हूँ vb ढांचा 3.5 । इम तिथि में स्ट्रिंग डेटा परिवर्तित कठिनाइयों मैं cdate समारोह का उपयोग कर की कोशिश की है, मैं एक चर sdate जो एक स्ट्रिंग चर रहा है और तारीख में संग्रहीत किया जाता है जो पाठ संदेश से डीडी / एमएम / याय के रूप में आता है, अब मैं इस स्ट्रिंग को एक दिनांक वैरिएबल में कनवर्ट करना चाहता हूं क्योंकि मुझे एक दिन जोड़ें या एक दिन घटाएं। कृपया मुझे इस बारे में मार्गदर्शन करने के लिए मार्गदर्शन करें। मुझे 3 लाइन के रूप में त्रुटि मिलती है, स्ट्रिंग को एक मान्य दिनांकटाइम के रूप में मान्यता नहीं थी । मैं लेकिन त्रुटि आता है इस प्रकार करने की कोशिश की है मंद sdate स्ट्रिंग मंद expenddt के रूप में दिनांक expenddt = Date.Parse के रूप में (EDATE) expenddt = expenddt.AddDays (-1) लेकिन मुझे त्रुटि मिलती है क्योंकि स्ट्रिंग से टाइप करने के लिए दिनांक वैध नहीं है। मैं कैसे दिनांक स्ट्रिंग से? आपको दिनांक का उपयोग करना चाहिए ParseExact या Date.TryParseExact सही प्रारूप तार के साथ। मंद EDATE = "2009/10/12...

node.js - Sails.js: Running grunt watch task in production -

I want to run the exact same hour clock work in the production mode running in development mode. I thought it would be as easy as adding "clock work" to "prod.js" function in tasks / register / prod.js , but doing so is hanging on the loose lift How can I run clock work in production? How do I run the clock work in production? I recently found that PAL (v.0.11.0) prevents harsh execution in production mode before startup. To fix this problem, you need to change some lines in /node_modules/sails/lib/hooks/grunt/index.js , in particular, comment on lines: / After the fire is finished, the winnowing is done in the production / (for example). Seal Configuration === 'Production') {cb_afterTaskStarted (); } * / Add comment and add: // Go ahead and get out of here, because Grunt can backup / * if (Pal Config.environment! == 'Production') {cb_afterTaskStarted (); } * / Cb_afterTaskStarted ();

r - Cannot access column of data frame -

When I see the result, I have some data in the result of the 3-column data frame: results TIMESTAMP SYMBOL_NAME "t.price" 1 2014-10-17 14:00:00 GOOG 400.25 Notifications around t.price columns When I reach the t.price column, as it comes back. result $ t.price null When I P> name (result) see me [1] "TIMESTAMP" "SYMBOL_NAME" "\" t.PRICE can you tell me what is happening and why it looks or How i t Can I use the value? Try this: names (results) & lt; - make.names (name (result)) This is the same function that is applied when read.table and its lineage is used .

ios - Parse.com: saveInBackgroundWithBlock - block not called -

I am using the latest version of Pars IOS SDK (v1.4.2) and really ready for iOS 8 I'm getting the app. .. Now I came to the following problem: A user is a member of a push channel using the saveInBackgroundWithBlock method to show a warning after using The membership was successful, so the subscription was successful. The problem is that the successful block has never been called! The subscription is raising itself without any problem - the new channel is showing immediately on the Parse.com backend. So I'm really confused! ;) The only problem anyone has a solution, especially for PFInstallation * currentInstallation = [PFInstallation currentInstallation]; [AddUniqueObject to the current installation: that for the channel: @ "channel"]; [CurrentInstallation saveInBackgroundWithBlock: ^ (BOOL successful, NSError * error) {if (error!) {// Show Success warning UIAlertView * successAlert = [[UIAlertView alloc] initWithTitle: @ "success" messag...