Posts

Showing posts from August, 2013

Java: establishing socket connection pool -

I have a client-server application using Java sockets. So far, it works in the following way: Customer opens a socket connection on the server. The socket handler thread of the server puts a new socket on a LinkedBlockingQueue. A worker takes a socket from the thread queue and reads an object from the stream (the client sends the object on the server) and writes back an answer to the client and closes the socket. But now I want to create a connection pool so that the connections can be kept open but I still want LinkedBlockingQueud. My idea is that each new connection is placed in a queue, call it openSocketQueue, and then sockethandler thread (or some other thread) runs on open sourceQueE and checks whether New data is available (without reading data). If the data is available, then it removes the socket from the queue and puts it on the linking block. The socket is not closed after the worker has finished but put it back on the open source code. Is it fair? How does a soc...

java - Open link in a new window using MenuBar.Command -

Text after " I have a menu bar in my VAADIN application, in this menubar I have a link for my wiki: wiki = new link (); Wiki.setCaption ("wiki"); Wiki.setStyleName ("mypicto"); Wiki.setImmediate (true); Wiki.setSizeUndefined (); Wiki.setIcon (iconWiki); with command :. MenuBar.Command wikiLink = new MenuBar.Command () {public void menuSelected (MenuItem SelectedItem) {getUI () getPage () .Open ( "url_to_wiki", "_ blank"); }}; Then I add links and commands to my menu menu bar = new menubar (); MenuBar.addItem ("wiki", iconic, wiki link); The problem is, I can not open the link in a new tab, it is only open in a pop-up, which is blocked by default in almost all web browsers. > Is there any way to open my link in other links rather than pop-ups in my menubar? itemprop = "text"> I think this might be what you want ... this addon me Allows to open a page in a new tab. I tested it out using V...

javascript - AngularJS - select with track by doesn't set list object in ng-model -

मेरे पास एक चयन है: & lt; नाम चुनें = "data_source" वर्ग = "फॉर्म-कंट्रोल" एनजी-मॉडल = "डेटाडेटा एसोसोर्स" एनजी-ऑप्शंस = "सी.आई.डी. के द्वारा ट्रैक किए गए डेटा_सॉर्स के लिए सी.नाम" & gt; & lt; / select & gt; मेरे data_sources सरणी में डेटा_सॉर ऑब्जेक्ट {id: "myid", नाम: "mydatasourcename", ...} init data.data_source में एक ऑब्जेक्ट शामिल है जिसे मैं डीबी {id: "myid"} से प्राप्त करता हूं सही मान को चुनने में प्रदर्शित किया जाता है लेकिन मेरे एनजी-मॉडल में मेरे पास केवल 'आईडी' विशेषता के साथ मेरे मूल डेटा_सोर्स ऑब्जेक्ट हैं I मैं यहाँ क्या होता है वह ऑब्जेक्ट है जो डेटा के सभी स्रोतों (नाम और अन्य) के साथ array_sources array से आ रहा है। क्या ऐसा करने का एक तरीका है? हालांकि ड्रॉप-डाउन अपने एनजी मॉडल को स्वचालित रूप से बदलने पर सभी गुणों के साथ अद्यतन किया जा Init पर आप अपने data_source को नीचे तरीके से अद्यतन कर सकते हैं data.data_source = dataFor data_sources = da...

java - Set bit values in Byte -

I need to set bits for some Bluetooth features listed under Java: HeaderValue: BluetoothFeature, Tag ID: 0x10, length: 4 bytes, Possible values: bit 0 = A, bit1 = b, bit2 = c, bit3 = d, bit4 = e .... so many bits 31. 1 to set the seventh bit: B = (byte) (b | (1 ; 6)); To set the sixth bit to zero: b = (byte) (b & amp; nbsp; (1 & lt; (The bit position is 0-based, effectively, so the map "seventh bit" 1 = Source:

c# - How to implement a ServerCertificateValidationCallback in ASP.NET MVC? -

I would like to add client authentication through X509 certificates, so I have my server IIS SSL and client certificates I want to set up with the requirement. . (As told here :) But once the client selects the credentials, the answer to the server is always an HTTP 403. Therefore, to optimize the validity of the client certificate, I Global.asax: Protected Zero application_Start () {........ ServicePoint Manager. Server Certification Validity Callback + = New Remote Certificate Certification Callback (Valid Certification Certificate); Private static bool valid server certificate (Object Sender, X509 Certificate Certificate, X509 Chen Chain, SSL Policy Errors SSL Policy Errors) {// ... Check Returns Correct; }} But apparently my function is never called and server response is still 403 denied with permission (certificate unsafe justice). Do you have any suggestions?

sql - how to pass another database in stored procedure as a parameter in java -

I want to pass the stored procedure in Java to another database like call Sel_RptDaywiseProduction (?) How to make DIERP database in this SP Pass in Callable Statement Thank you in Java. Edit: code from the comment callable location cs = con.prepareCall ("call {Sel_RptDaywiseProduction (?)}"); Cs.setString (1, "DIERP"); Results set rs1 = cs.executeQuery (); While (rs1.next ()) {System.out.println ("mat_code ="); }

javascript - Row click event within jquery click function is not working only for last row -

I am creating a dynamic table in the form shown below. I need user clickable rows To another page It works just fine till the last but one line. Clickable row functionality does not exist in the last line. $ (window) .load (Function () {$ .get ("http: // localhost: 8080 / music player / getsloglist", function (data) {console.log (data) ; Var library = data; var table = $ ("# table"); Var line; library. Songs.for every (work (song) {line = $ ("& lt; tr & gt; & lt; / tr & Gt; "); $ (" & lt; td />").addClass("Song-select ") .append ($ (" & lt; input />").attr({type:"checkbox " , Class: "checkbox" | value: song.title})). AppendTo (row); $ ("& lt; Td" "+ song.title +" & lt; / td & gt; "). Attachments (Line); $ ("& lt; td>" + song.album.albumName + "& lt; / td & gt;"). Attachment (line); $ ("& lt;...

python - Check if connection is established on port -

I find out whether the port is open, but I'm not sure how it extend also to check whether the connection has established. try import socket ip_address_machine = '127.0.0.1' port_to_try = 3389: s = socket.socket (socket.AF_INET, socket.SOCK_STREAM) result = s.connect_ex ((ip_address_machine, Port_to_try) ) Skclose () if (result == 0): print ( "port", port_to_try, "open the machine", ip_address_machine) other: print ( "port", port_to_try, "do not open the machine", Ip_address_machine ): The print ("the machine is off")

wordpress - Stopping js ajax call from a specific user -

I have done something silly and have written a script for a website that checks out Ajax in every 2 seconds. In case its use WordPress and its admin-ajax.php file for every 2 seconds it essentially burned all CPU power of the server, and every site on the server actually run at slow speed. After a lot of detective work, I got the script in the end and it was stopped, so that it does not happen on the new load of that website. But seeing my Apache log, I can see that it's running anywhere in a browser. Do I have to stop the browser from requesting an AJAX call, or maybe it's blocking me by the server? Or do I have to wait till that browser is being refreshed or stopped? Try to use the IP and port of the unknown browser or something like that. In addition, you should try to reboot the server so that it will close the connection. PS: To answer this question, it is very difficult to give any clues or evidence in the right direction without answering or answering. ...

ios - Physics Body edges IOS8, Sprite Kit -

So after the iOS game tutorial, its Io7 does not have many for 8 Is considered a bouncing ball around, but only bounces above and below the screen, if it comes to the edge, the ball is screened #import "GameScene.h" @ Implementation GameScene - (zero) didMoveToView: (SKView *) See {/ * setup your view here / self.backgroundColor = [SKColor whiteColor]; Self.physicsBody = [SKPhysicsBody bodyWithEdgeLoopFromRect: self.frame]; Self.physicsWorld.gravity = CGVectorMake (0, 0); SKSpriteNode * ball = [SKSpriteNode spriteNodeWithImageNamed: @ "ball"]; Ball.position = CP pointmaking (CGRactgetMIDX (SelfFreem), CGRactGate MDY (SelfFreem)); Ball.physicsBody = [SKPhysicsBody bodyWithCircleOfRadius: ball.frame.size.width / 2]; //ball.physicsBody.friction = 0; Ball.physicsBody.linearDamping = 0; Ball.physicsBody.restitution = 1; [Self linking child: ball]; CGVector myVector = CGVectorMake (0, 5); [Applying Ball.physicsBody Impulse: myVector]; } - (Zero) Update: (CFETMInt...

swing - Is this Correct way to add FocusListener to JTextFields in java? -

I found hundreds of code in my application in Java and JTextFields and I want to add FocusListener The horizontal alignment set of text on all of these and add Focus listener to each of these textfields, so, I made this method and this is working great but I only Want to know whether this is the right way or there is something wrong with it or I have some rules of OAP I'm going against not? Here is the code Public Zero CreateFocusListenerForFields (JTextField txt) {txt.setHorizontalAlignment (JTextField.RIGHT); Txt.addFocusListener (New Focus Lister) {@Override Public Zero Focus (FocusEvent E) {} @ Override Public Zero FocusStatus (Focus Event E) {if (number number (txt.getText ()) {txt.setBackground (new Color (254,157,157)); txt.requestFocus ();} and {txt.setBackground (Color.white);}}}); } and apply this method to my textfield CreateFocusListenerForFields (MyTextField); Now when I run the code, it works great just wants to know whether it is correct and i...

c# - TextBox Changed event -

The text box is changed when I want to wait until a word is entered from the string instead of the phone function . Although I do not think the code written to work, can anyone tell me the correct approach on this. Private zeros txtConsole_TextChanged (Object Sender, EventArgs e) {string FastModeTest = ""; If (FastModTest.indexoff ("ADR ="> gt; -1) {TestRoutine 2 (); }} private zeros txtConsole_TextChanged (object sender, EventArgs e) {if (TxtConsole.Text! = "Some words") Return; // left} If no key is entered, this code will cancel this function.

machine learning - why pretraining for convolutional neural networks -

Usually there is a problem with gradient disappearing in the promotion NN. I found out how some of the convolutional NN (CNN) are getting rid of the problems of this extinct gradient (why?). Besides this, some papers have been considered for some persuasive approach to CNN. Can anyone tell me the following? (1) Resons to persuasive behavior in CNN and (2) What are the problems / limitations with CNN? (3) Any relatant paper talking about the CNN border? Thanks in advance. Pretraining is a regularization technique that improves the accuracy of the generalization of your model Since the network is in contact with large amounts of data (we have large amounts of unorganized data in a number of taxes), the load parameters are taken to a single location, rather than meeting a specific subset of the underlying data, instead of data distribution More likely to represent Swimming. The nerve trap, especially with whose toned units have high model presentation capability, cover ...

c# - Cannot convert my UserControl to Windows.Forms.Control -

I try to use Acrobat PDF Reader in a WPF app but I found that WindowsFormsHost is a WinForm control. This is the source of the issue ... I have received a message that can be converted to "offlinebox.pdf reader in windows .forms control". Thanks I have made a mix of these 2 tutorials: My page to display my usercontrol public partial class DidactielPage: window {public DidactielPage () {InitializeComponent (); Var ucPdfReader = New PDF Reader ("/ Resources / Data / Dedicated Offsetlocks PDF"); This.WindowsFormHost1.Child = ucPdfReader; // error message shows here}} my user control class public partial class PdfReader: UserControl {Public PdfReader (string filename) {InitializeComponent (); AcroPDF acro = new AcroPDF (); Acro.setShowToolbar (wrong); Acro.setview ("FitH"); Acro.loadFile (filename); Acro.src = filename; Acro.setViewScroll ("FITH", 0); }} Element host requires Windows form integration. 1) Add a reference to...

ios - Swift class "MyClass" does not have a member Named "My_Var" -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब मैंने स्विफ्ट में एक क्लास बनाया जैसा कि नीचे दिया गया है, लेकिन यह त्रुटि देता है: 'ApiUrls.Type' का नाम 'webUrl' नहीं है यहां मेरा कोड है: import UIKit class ApiUrls {webUrl: NSString = "192.168.0.106:8888" var getKey: NSString = webUrl + NSString ("dev / sys / getkey") // यहां त्रुटि ApiUrls आती है। टाइप 'के नाम पर एक सदस्य नहीं है' webUrl} इसमें क्या ग़लत है? आप किसी अन्य प्रॉपर्टी के मान के साथ किसी इंस्टेंस प्रॉपर्टी को प्रारंभ नहीं कर सकते, क्योंकि self उपलब्ध नहीं है जब तक सभी इंस्टेंस गुणों को आरम्भिक नहीं किया जाता है। यहां तक ​​कि प्रारंभ करने वाले गुणों को स्थानांतरित करने से काम नहीं हो रहा है, क्योंकि getKey पर निर्भर करता है webUrl , इसलिए webUrl एक स्थिर है, इसलिए शायद यह एक स्थैतिक संपत्ति बनाने के लिए एक अच्छा विचार है - webUrl वर्ग अभी तक के रूप में स्टैटिक्स का समर्थन नहीं करते हैं, इसलिए सबसे अच्छा तरीका निजी संरचना का उपयोग करना है: cl...

c# - Parse XML response and return collection of objects -

I have found several different examples of parsing an XML file and most of the time I get a share of the way But I can not find an example that works, I need it. Looking at the following XML responses & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Soap: envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: soap = "http: //schemas.xmlsoap.org/soap/envelope/"> & Lt; Soaps: Body & gt; & Lt; Parentnode xmlns = "http://my.own.namespace.com/" & gt; & Lt; ChildNode & gt; & Lt; Value 1 and gt; The string & lt; Value 1 and gt; & Lt; Value2 & gt; The string & lt; Value2 & gt; & Lt; / ChildNode & gt; & Lt; ChildNode & gt; & Lt; Value 1 and gt; The string & lt; Value 1 and gt; & Lt; Value2 & gt; The string & lt; Value2 & gt; & Lt; / ChildNode ...

mongodb - How fetch data from mongo? -

itemprop = "text"> In my meteor application, on the server side, I need to get data from Mongo, if it's analyzed and updated in Mongo . In the database, I have an array of objects: {"0": {"title": "This is the title", "description": "this description is", "link" : "Http: // 123435", "Pubadet": "16 October 2014 20:46:00 +0400"}, "1": {}, "3": {} etc. I am trying to get data from Mongo: var savedNews = news.find (). Fetch (), there's my archive. And I look at this type of debugger array: 0: "_id" = "uuTOncmcIoIkfc", 1: "_id" = "mcmroidewiuIpf" etc. I understand that this is _ID, but I need access to the areas of the object. In Mongo Console, I can see my real object if I type db.news.find (); How can I get data in the form of an array or object? Thank you. Fetch () return an array, those records m...

java - Algorithm negotiation fail SSH in Jenkins -

I am trying to do SSH on the local server from Jenkins, but the following error has been thrown: [SSH] Exception: Algorithm negotiation fail com.jcraft.jsch.JSchException: algorithm talk com.jcraft.jsch.Session.receive_kexinit (Session.javaatar20) at com.jcraft.jsch.Session.connect (Sesson at com.jcraft.jsch.Session.connect (Session.java:150) at org.jvnet.hudson.plugins.SSHSite.createSession (SSHSite.java:141) on failed failed org.jvnet.hudson.plugins. java: 286) .SSHS on org.jvnet.hudson.plugins.SSHBuildWrapper.executePreBuildScript (SSHBuildWrapper.java:75) on Org.jvnet.hudson.plugins.SSHBuildWrapper.setUp (SSHBuildWrapper.java59) ite.executeCommand (SSHSite.java151) on hudson.model.Build $ BuildExecution.doRun hudson.model.AbstractBuild $ AbstractBuildExecution.run (AbstractBuild.java:533) to (Build.java:154) hudson.model.Run.execute ( Run.java:1754) in ended .model.FreeStyleBuild.run (FreeStyl hudson.model.ResourceController.execute (ResourceController.java:89) on hudson.mod...

python - set matplotlib 3d plot aspect ratio? -

आयात करें matplotlib.pyplot के रूप में plp से mpl_toolkits.mplot3d आयात एक्सिस 3 डी पहलू अनुपात की स्थापना 2 डी भूखंडों के लिए काम करती है: ax = plt.axes () ax.plot ([0,1], [0,10]) ax.set_aspect ('equal', 'बॉक्स') लेकिन 3 डी के लिए नहीं: ax = plt.axes (प्रक्षेपण = '3d') ax.plot ([0, 1], [0,1], [0,10]) ax.set_aspect ('बराबर', 'बॉक्स') क्या 3 डी केस के लिए एक अलग सिंटैक्स है या यह लागू नहीं है? मेरी समझ मूल रूप से है कि यह अभी तक कार्यान्वित नहीं है मुझे यह भी उम्मीद है कि यह जल्द ही लागू किया जाएगा। संभव समाधान के लिए देखें (मैंने खुद का परीक्षण नहीं किया है)।

Unable to reset the can error using CAN bus error recovery sequence. As when the can bus is not connected to other node -

विषय: CAN बस त्रुटि पुनर्प्राप्ति अनुक्रम का उपयोग कर त्रुटि को रीसेट करने में असमर्थ जैसे ही बस अन्य नोड से जुड़ा नहीं हो सकता है। विवरण: हम कोड को संकलित करने के लिए इन्फिनियन XE164 माइक्रो-कंट्रोलर और केआईएल यूवीएस 4 का उपयोग कर रहे हैं। पृष्ठभूमि और हार्डवेयर सेटअप हमारा उत्पाद सेटअप नीचे दिया गया है: हम बाह्य उपकरणों को नियंत्रित करने के लिए XE164 माइक्रो-नियंत्रक का उपयोग कर रहे हैं। बाह्य उपकरणों में यह मूल रूप से सर्वो मोटर, स्टेपर मोटर, एलसीडी और कीपैड को नियंत्रित करता है। हम पीईसी 18 एफ 2480 नोड को इन्फेंशन XE164 नोड से डेटा संचारित करना चाहते हैं। समस्या बस बस पर नोड से डेटा प्राप्त करने और प्राप्त करने के लिए कोई समस्या नहीं है। जब बस कनेक्ट नहीं होता है और डेटा XE164 बोर्ड द्वारा संचरित होता है तो बस हमारी बस स्थिति में त्रुटि हो सकती है। त्रुटि राज्य में निष्क्रिय स्थिति को निष्क्रिय स्थिति में बदलने के लिए वसूली अनुक्रम क्या है। / P> माइक्रो नियंत्रक के हार्डवेयर रीसेट के बिना इसे कैसे बचा जाए।

sql - Mysql - Multiple OR condition -

I am surprised that it is possible to transfer this code SELECT foo from the bar WHERE Baz = 3 or falcon = 4 or falcon = 5 in something like this Choose where foo where falcon = 3,4,5 Use the IN operator. IN operator allows you to specify more than one value in the WHERE section. Query Select the bar foo where to baz IN (3,4,5);

java - Base 64 decoding byte[] casted into a string -

I have found some encoded log information, which is inserted in the string to send the purpose (the cast is very bad But it works). I'm trying to put it back in [byte] so that it can decode it, but it is not working: byte [] encodedBytes = Android.util.Base64 encode ((login + ":" + password) .getBytes (), NO_WRAP); String encoded = "authentication" + encodedbits; String to _decode = encoded. Substring (17); Byte [] cast1 = to_decode; // error byte [] cast2 = (byte []) to_decode; // error byte [] cast3 = to_decode.getBytes (); // There is no error, but I get something completely from encodedibets (arrays also have half size of encoded bits) // and when I decode it, then I have an invalid argument exponent This 3 stoppage is not working, any thoughts? There are many problems here. In general, you use Base64.decode to use Base64.encode : byte [] Data is required to change the result of Android. Util.base64.decode (to_decode, default); In...

html5 - How does Apple's website autoplay videos, if autoplay is disabled in iOS? -

As I'm reading, there is no way to enable HTML5 video autoplay in the iOS browser. Why is this introductory video being run as an example with my old iPad (with iOS 8)? When it is inspected on desktop Chrome, I stop at a certain point and see that in a script & lt; Video & gt; element with an MP3 file, after the animation ends it is removed. I also checked my script file, but did not get a definitive answer. I want to clarify that I do not do any other work except opening the URL. Can anyone explain this with more video experience? This question has been answered to a different place, so if someone stops later on The account is ... The short answer is that Apple does not show that on a device like an iPad, a video flashes a series of JPEG images like a filmstrip, which shows it as if a video Being played. For desktop browsers, they will however show a video file.

java - How to generate generate static methods with clojure's Gen-class? -

In my close-code I would like to generate a class file that has a fixed method (named staticMethod ), which is then said in a static context from a Java program. I have tried (close): (ns com.stackoverflow .clojure.testGenClass (: gen-class: name com.stackoverflow.clojure.TestGenClass: prefix "Java-": methods [[^ ^ {: stable true] static mode [string string] string]]) (def: Private pre "start:") (defn # ^ {static true} Java-static mode [ Text post] (string pre-text post)) and (Java): package com.stackoverflow.clojure; Public Class TestGenClassTest {Personal TestGenClassTest () {} Public Static Zero Main (string [] Args) {TestGenClass.staticMethod ("Stable call from Java!", ": END"); }} I read: adding metadata - # ^ {via: static true} - You can also specify static methods Can define. There is no place where I put the code # ^ {static true} , always the Java compiler says: Can not test a static method for the static met...

Fetch data from more than two tables using grails domain -

text after "itemprop =" text "> I have 3 tables like v_ims_circuits, v_ims_productcodes and v_ims_domainmain and I want to fetch data from this table using grails domain Are there. Internally the query grails should be built like the query below using the domain. select cir.circuitname, cir.status, cir.oldname, cir.speed, null "count of subs", cir.productcode, cir.ordernr, cir.createuser, cir.createdate , Cir.acquisitiondate, v_ims_circuits cir to dom.domainname, pc v_ims_productcodes, v_ims_domainmain dome where cir.productcode = pc.product and pc.domainid = dom.id and cir.circuitname =? Any one can help me on this. After GORM (and in hibernation) requires a different mentality compared to SQL The first step is your three Creating domain class for tables; Chapter 7 of Circuit, ProductCode, and DomainMine Grails Reference Guide is a good place to start. Your domain objects section 7.4 is created to describe several ways that you can bring yo...

haskell - Elegant way to write patterns -

मैंने खुद को इस तरह की चीजों को लिखना पाया है: myFnc (MyDataType0 xyz) = SomeFunction0 (MyDataType0 xyz) myFnc (MyDataType1 xy) = कुछ फंक्शन 1 (MyDataType1 xy) ... यानी मुझे कुछ डेटा कन्स्ट्रक्शंस के खिलाफ पैटर्न की आवश्यकता है और फिर पूरे उदाहरण का उपयोग करें। मेरा वर्तमान दृष्टिकोण डेटा प्रकार से मिलान करना, उसके सभी क्षेत्रों को प्राप्त करना है, फिर फ़ंक्शन के शरीर में इसे फिर से संगठित करना है। क्या कोई बेहतर तरीका है? आप चाहते हैं @ : myFnc d @ MyDataType0 {} = someFunction0 डी ...

c# - WPF change background of a control with an attached property -

I need to change the background of the label and button when a boolean variable (the default color is returned to the wrong). So I have written an attached property so far this looks like this: public class BackgroundChanger: DependencyObject {#region dependency attribute // condition public static bool GetStatus (DependencyObject obj) {return (bool Obj.GetValue (StatusProperty); } Public static zero SetStatus (dependency object obj, boolean value) {obj.SetValue (StatusProperty, value); } Public static Read Only DependencyProperty StatusProperty = DependencyProperty.RegisterAttached ("status", typeof (bool), typeof (BackgroundChanger), new UIPropertyMetadata (incorrect, OnStatusChange)); #endregion Private Static Zero OnStatusChange (dependency object obj, DependencyPropertyChangedEventArgs e) {var element = obj; If (element! = Null) {if ((bool) e.NewValue) element.Background = Brushes.LimeGreen; Second element Background = default (brush); }}} And I use it like thi...

Android MediaMuxer Audio Issue -

I am trying to use MediaMuxer to add an audio track to the video. The following code works but prevents halfway through audio video. Both video and audio files have only one track, audio and video playback speed seems fine. Audio file is longer than video, so I think this is not an issue. I've been on this for some time now can not figure it out. Private Zero createFinalVideo () {string outputFile = ""; {File file = new file (try the environment. Gatestile store directory () + file. Separator + "last .mp4"); File.createNewFile (); OutputFile = file.getAbsolutePath (); Media Architect Video Extractor = New Media Extractor (); VideoExtractor.setDataSource (Production); MediaExtractor Audio Extractor = New Media Extractor (); Final AssetFileDescriptor afd = context.getAssets (). OpenFd ("audio.m4a"); AudioExtractor.setDataSource (afd.getFileDescriptor (), afd.getStartOffset (), afd.getLength ()); Log D. (Tag, "Video Extractor Track Calculation...

Amazon SNS push notifications not handled when Xamarin.iOS app not running -

I am developing an iOS app in Xamarin, and received push notice through Amazon SNS from our existing back office. Need to. / P> For that time I am using the Amazon web page to send test notifications through APNSSSand. I have written my code and have created a certificate for the iOS app and everything is fine when the app is running, even if the app is in the background or not loaded at all, then by any iOS device Information is not received. In Project Options in Zamadine Studios I have enabled the following background mode: Enable Background Mode, Background Background, Remote Notifications in General Settings for iOS Device, Background App Refresh Globally and Able to App has been done. I think that I will miss a lot of either configuration or apple certificates, but I can not do it after reading various solutions from different iOS / Objective C and I have been able to find a solution. is. Subscribe to Public Static Zero () (If (UIDevice.CurrentDevice) was a pr...

scripting - removing extra spaces in powershell -

I want to use powershell to remove unnecessary spaces and replace between those entries with a comma so that I can change the results for further analysis in a functioning CSV. This is my code; go-content -path c: \ user \ username \ desktop \ results.txt | {$ _-Replace "\ s +" ""} for e-object. Out-File - File Path C: \ User \ Username \ Desktop \ results.csv Initial Resets are like this Entry Entry Entry (All / Div> You were closest but you would not have been "," instead of "" Need to replace it with your text files The bike is like the following. I do not know if you mean that the major / trailing place is there, but it is okay. "Entry entry entry" Go-content-path C: \ user \ username \ desktop \ results.txt | {$ _ For e-objects. Trim () - "\ s +" "," "|" | Out-File-File-Path C: \ User \ User Name \ Desktop \ results.csv-encoding ascii $ _ trim () - "\...

c# - ContactPicker is not working in Windows Phone 8.1 Silverlight -

I have tried to get contact information in Windows Phone 8.1 SL App In my function, Private async zero PACACContactButton_Click (Object Sender, RoutedEventArgs E) {var contactPicker = New Windows.ApplicationModel.Contacts.ContactPicker (); ContactPicker.desiredFieldsWithContactFieldType.add (Windows.ApplicationModel.Contacts.ContactFieldType.email); Contact Contact = Contact Picture. Pick contact sank (); // It throws the system. Supplemental expansion // Additional information: The method or operation is not implemented. If (contact! = Null) {...}} The exact same function works in Windows Phone 8.1 RT. ContactPicker class is both supported in accordance with WP 8.1 RT and WP 8.1 SL. Any ideas what's going on? I have this pattern was in Win 8.1 for my Universal Store app today, so be it Help you Although I had different exceptions (file not explored expletives and just plain system.expression), so I'm not really sure that this is the same issue. As far as...

php - Strip quotation marks from Wordpress shortcode inserted by text area -

Image
I've added a page shortcode to my WordPress admin through a custom texture, but the shortcode is used as text Wanted is wrapped in quotation marks, so it does not work. This is basically My input: How do I get my input: if (isset ($ input ['textarea_input']) $ new_input ['textarea_input'] = sanitize_text_field ($ input ['textarea_input']); In this way I output it to the page: do_shortcode nothing changed My guess is that the Wordpress TinyMCE editor recognizes the shortcode, and its Because this is done through a hidden text field, it has just been seen as plain text.What does the TinyMCE editor do I am not doing? In your right way, Wordpress Editor Saves content through a filter called I wan't . This filter is used to filter the contents of the post before it is received from the database and before printing on the screen. Apply this filter to emulate TinyMCE formatting. & lt ;? Php echo apply_filters ('the_cont...

winapi - cmake, how to automate windows SDK build? -

मैं Windows SDK कंपाइलर का उपयोग करते हुए Windows पर cmake का उपयोग कर एक प्रोजेक्ट के निर्माण को स्वचालित करना चाहता हूं। मैं लिनक्स पर विकास कर रहा हूं, और क्रॉस-कंपाइल (मैं एक पुस्तकालय का निर्माण कर रहा हूं जो मैटलब मेक्स फाइल से जुड़ा हुआ है, हालांकि मुझे नहीं लगता कि यह विवरण महत्वपूर्ण है)। मैं सफलतापूर्वक , एनमेक फाइलें, या दृश्य स्टूडियो समाधान फ़ाइलों को वांछित के रूप में सीमक जनरेटर का उपयोग कर सकते हैं, लेकिन फिर मैं उपयोगकर्ता के संपर्क के बिना परियोजना कैसे बना सकता हूं? चारों ओर पढ़ने से ऐसा लगता है कि निर्माण के पहले पर्यावरण चर आदि को सेट करने के लिए आपको विशेष कमांड प्रॉम्प्ट लॉन्च करना है, क्या यह मामला है और / या क्या कोई वैकल्पिक उपाय है? क्या है एक CMake परियोजना के निर्माण के लिए कदम, खिड़कियों पर केवल CMakeLists.txt से शुरू, किसी भी उपयोगकर्ता के बिना विंडोज एसडीके का उपयोग, किसी भी उपयोगकर्ता के संपर्क के बिना? ध्यान दें कि mingw के स्वाद का उपयोग करने के सुझावों का जवाब नहीं है जो मैं हूं की तलाश में, मुझे पहले से ही पता है कि यह कैसे करना है मैं च...

Json deserializing issue c# -

I want to try deserializing the following Facebook post response: "Data ":", ":" Id ":" ... "," to ": {" category ":" local business "," name ":" ... "," id ":" ... "}," Message ":" ... "," picture ":" ... "," likes ": {" data ": [{" id ":" ... "," name ":" ... "} Post Model class is: {"id": "...", "name": "..."]}}] Get public class post {public string ID}; Set; } From the public {get; Set; } Public string message {get; Set; } Public string picture {get; Set; } [Jasonproporty ("likes.data")] Like a model class like the public class {public string id {get; Set; } Public string name {get; Set; }} When deserializing json, I want to map to the likes.data entries in the Favorites list. How can you do this You...

android - How can I add a layout to my customized view -

I have a class that extends view and I keep my customized view in it In certain phases I want to add a layout to my desired scene. I have also mentioned some examples, but they think that the same problem is reversed, they have a layout and want It may be that you expand ViewGroup instead of your class view . With a ViewGroup you will be able to use addView () to add the inflated layout to your custom view. Get more information on AddView

Python regex not matching -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब क्या किसी को पता है कि यह regex क्यों क्या किसी भी मैच नहीं लौटा रहा है? स्थानीय = यू'आरुआ एनंजिनिरा एनेडीना अल्वेस मार्क- xeas, 126 - काजुरु, काजुरु, कूर्टिबा - पीआर 'पी' = re.compile (उर '\ डी [ ] +? - (। *?) (?:, | -) ') = matches = re.match (पी, स्थानीय) जब मैं यह कोशिश करता हूँ किसी भी regex परीक्षण उपकरण में regex यह देता है कि मैं क्या चाहता हूँ, मैं इस मामले को मैं काजुरु आप उपयोग कर रहे हैं, नहीं। पुनः। मैच () शुरू करने के लिए एंकर । re.search () का उपयोग ठीक काम करता है: & gt; & gt; & gt; स्थानीय = यू'आरुआ एनंजिनाइरा एनेडीना अल्वेस मार्क एक्सज, 126 - काजुरु, काजुरु, कूर्टिबा - पीआर '& gt; & gt; & gt; P = re.compile (उर '\ d [] +? - (। *?) (?:, | -)') & gt; & gt; & gt; पुनः खोज (पी, स्थानीय) & lt; _sre.SRE_Match ऑब्जेक्ट 0x104dde288 & gt; & Gt; & gt; & gt; पुन: खोज (पी, स्थानीय)। समूह () यू '6 - काजुर...

How to make CSS animated background scrolling? -

I saw an example of CSS animation for background scrolling and now I am wondering how to achieve it? Is this a tutorial with demo? This type of animation is called parallax scrolling. This is a tutorial in which the explanation has been received: Hopefully it will help!

php - You have an error in your SQL syntax - unable to find error -

I think there is a sytax error inside my code but can not see why. The queue in question is here: mysqli_query ($ db, inserting in `` `` `` `` parent``````````` `` `` `` `` ` , `Going`,` Distance`, `Class`,` Place`, `Losing_Dist`,` Stall`, `Horse`,` Weight`, `Trainer`,` Odds`, `Oddsmovement`,` Jockeys_Claim`, ` Comments`, `Race_Name`) values ​​('$ id', '$ thedate', '$ thecourse', '$ noinrace', 'going $', '$ distance', '$ square', '$ place' '$ Distance_bt', '$ stall', '$ horse', '$ weight', '$ thetrainer', '$ odds', '$ oddsmovement', '$ thejockey', '$ comments', '$ event') ") Or die (mysqli_error ($ Database)); and I get the full error There is an error in your SQL syntax; Pass' My ', '22 / 1', '25 / 1 & lt; To use the correct syntax, check the manual related to your MySQL server version. The line in w...

javascript - node poller not exiting properly -

I have a function that will select a database X-second. I am using the Q library so that the function promise Could return The function will be used ultimately in the long series. Then () s. The function gives me the results that I expect, but the results continue to run for 30-40 seconds after coming back. I can not understand why I will not leave after coming back. var _ = is required ('trash'); Var PG = Requirement ('PG'); Var Q = Expected ('q'); ConnString = 'postgres: // somedb_info'; Var query = "SELECT * job where jobid = 'somejobid123123'"; Export.run_poller = function () {var deferred = Q.defer (); Function exec_query (callback) {pg.connect (connString, function (err, client, done) {if (err) {deferred.reject (err);} client.query (query, function (err, result) {done () ; If (mistake) {deferred back .reject (err);} callback (result. Row [[0]);});}); } Function wait_for (res) {if (res.status == 'COMPLETE') {return...

java - What is the algorithmic runtime of the removeFirst() method in a LinkedList? -

OK, so I know that a lot about the cost of various tasks on archive Good threads> gives a great overview of the difference between the interface ArrayList and LinkedList . But after reading that thread, I'm still unsure of one thing: removeFirst () / pollFirst () and removeLast () / pollLast () have algorithm runtime O (1) Or do I have to use Iterator to get it? If you will see: Perform all the tasks, Which can be expected for a double-linked list. Then remove the head or tail o (1).

groovy - How to force Grails to use a signed certificate with run-app or run-war -

Even after adding this code to Config.groovy , Grails on its own signed usage Emphasis certificate: grails.tomcat.truststorePath = "$ {grailsSettings.baseDir} /conf/ssl/truststore.jks" grails.tomcat.truststorePassword = "changeit" grails.tomcat ClientAuth = "want" grails.tomcat.keystorePath = "$ {grailsSettings.baseDir} /conf/ssl/keystore.jks" grails.tomcat.keystorePassword = "changeit" grails.tomcat.keyAlias ​​= "localhost" Any ideas how to force Grails to use actual keystore? Obviously, put one of these settings in Config.groovy . They are included in BuildConfig.groovy . Once I put them in BuildConfig.groovy , everything worked for me.

javascript - How to get binary data from server using JQuery? -

I am trying to download binary data using a web API controller. Code I has been tried: $ Get ("../ api / download / report? Id =" + selectItem.Id); which replaces this URL with an HTTP GET when I debug the running app: http: // localhost: 12150 / api / Download / report? ID = 2515 The browser displays 200 results, returns binary data, but it does not open it or offer to download the file. If I copy and paste the URL in the address bar and press enter, it works. Any suggestions or alternatives that allow relative paths? You should not use AJAX for these types of things. If you want to force the user to download the response, then it can be dirty. Open a new tab / window instead; This will stop anyway in most browsers, and the user will not even see it was open! :) If you know in your URL on load, you can easily create an anchor tag with target = "_ blank" -attribute. I.e .: & lt; A href = "http: // localhost: 12150 / api / dow...

c - assignment makes pointer from integer without a cast - rand() -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब ठीक है यहाँ मेरी समस्या है मैं पहली बार srand का उपयोग कर रहा हूं और मुझे "असाइनमेंट पूर्णांक से कोई कलाकार के बिना संकेत देता है" चेतावनी मैंने यहां कई धागे के माध्यम से पढ़ा है और मैं अभी भी गलत नहीं देखता हूं। शून्य getFinalsRandom (int *, int *, int *); इस समस्या का लंबा होने के बाद मैं संबंधित भागों को पोस्ट करूंगा। फ़ंक्शन को मेन () में कॉल किया गया int finalsDayRandom; इंट फ़िनिश टाइमरेन्डम; इंट फाइनल टाइमरेन्डमासैट; GetFinalsRandom (& amp; फाइनल डेरेन्डम, & amp; फाइनल टाइम-रेंडम, & amp; फाइनलटाइमरेंडसैट); फ़ंक्शन के भीतर वास्तविक कोड शून्य getFinalsRandom (int * अंतिम, अंतराल * अंतिम समय, int * finalTimeSat) {srand (समय (नल)); अंतिम दिन = रैंड ()% 6; अंतिम समय = रैंड ()% 5; अंतिमटाइमसेट = रैंड ()% 4; } मैं भी time.h, stdio.h, stdlib.h, math.h अपने फ़ंक्शन में srand को कॉल न करें, इसे एक बार कार्यक्रम चलाने के लिए कहते हैं। फिर अपने फ़ंक्शन को इस तरह बदलें: शून्य getFinals...

python - mayavi mapping a discrete colorbar on a surface -

Image
I want to change the color of the surface on the basis of another value (an ID) that is considered discrete (hence I In the simplified example given below, I have prepared a field with 3 different IDs: 0 / red on left 2 / blue 1 / green left But with the code below, I have some strange behavior on the border between red and blue (green Point) I think this is probably due to an interpolation! Code: import from import mlab np # np # my dataset -simplified-x, y, z = np.mgrid [-3: 3: 100] H, -3: 3: 100h, -3: 3: 100 h] value = NP. SQLT (x ** 2 + y ** 2 + z ** 2) # My color value: Volume is divided into 3 sub-versions taking colorvalues ​​with X = np.empty (values.shape) colorvalues [0:33,:,:] = 0 colorvalues ​​[33:66,:,:] = 2. Look [66:,:,:] = 1 src = mlab.pipeline.scalar_field (value) src.image_data.point_data.add_array (colorvalues.T.ravel ()) (1) .name = 'MyID' src.image_data. point_data.update src.image_data.point_data.get_array () # surface, contour = mlab.pipe...

php - how to save my unput's text in the same form -

I have a form with some input text I use all the inputs for the text , but I do not know how to do this ... I tried the following: $ VarEmp = myForm.MyTextbox.text; but it does not work ... I do not want to send my data to another form , just save it after I do not want to send it to any other php file I have: & lt; Form name = "F1" method = "post" id = "contact form" class = "smart-form" & gt; .... & lt; Input type = "text" name = "empresa" id = "empresa" "value =" "/> ... & lt; / form & gt; // code and more code & php function actil ( ) $ $ Nomempresa = f1.empresa.gettext ();}? & Gt; but it does not work ... & lt; form name = "f1" method = "post" id = "contact-form" class = "smart-form" Gt; ... & lt; input type = "text" name = "empresa" id = "empresa" "value...

file - Powershell - read and exchange node value within XML -

I would like to read the following nodes and set a new value. Due to two existing single nodes with different ID, I am not able to change all the values. Here's an example: XML Source: & lt; Root & gt; & Lt; Node1 & gt; & Lt; Children & gt; & Lt; Children & gt; & Lt; ID & gt; 1 & lt; / Id & gt; & Lt; Targetvalue & gt; 9999 & lt; / Targetvalue & gt; & Lt; / Children & gt; & Lt; Children & gt; & Lt; ID & gt; 2 & lt; / Id & gt; & Lt; Targetvalue & gt; 9999 & lt; / Targetvalue & gt; & Lt; / Children & gt; & Lt; / Children & gt; & Lt; / Node1 & gt; & Lt; / Root & gt; If (($ myXML.root.node1.child.baby | where-item {$ _. Id -q '1'- and $ _ targetvalue -eq' 9999 '}) - A $ tap {"test"} I tried it through the content already received, but due to two IDs I am not able to modify at least one value. Can anyone plea...

objective c - Buttons are not working -

Image
Hello, I'm following the tutorial with some enhancements of its own. Unfortunately I am stuck at a point where I could not know what to do .. (I'm all for training / learning objectives is fairly new to iOS development). A Segue couple for the step where I have to navigate back I did whatever tutorial said, but this one time I am on the original scene with me Do not bring back ViewController and press Cancel or End. I've added a new title file GroceryListTableViewController.h @interface GroceryListTableViewController called with (workaround) - (IBAction) unwindToList: (UIStoryboardSegue *) segue; @end I have changed classname of GroceryListTableViewController.swift to @objc (GroceryListTableViewController) class GroceryListTableViewController: UITableViewController Then in the final step I told both of the buttons in the element that came out of the ViewController. Either way everything works except for those 2 buttons. What am I doing wrong here? ...

c# - Large Directory/Sub-Directory Data Transfer -

I am trying to write a script to go through a large directory and then copy the files I am trying but the destination can only accept 2 notifications at one time. Is there a way to break transfer from 2 GIG parts to small? I can copy a simple script to the main directory, but the problem is with the destination, all those large transfers will not be accepted at one time. I was thinking about some main function to create sub-functions to transfer data in small areas or sessions in some way but I'm not sure how to do this, but it's divided into sections. Namespace Console Application 2 {class program {static zero main string [] args) {var source = GetSourceDirectory itemprop = "text"> (); Var Destination = GetDestinationDirectory (); per directory (source, destination); Console.WriteLine ("\ n \ Nfinished."); Console.ReadKey (right); } Fixed directoryInfo GetSourceDirectory () {var Verify = path; Var pathexist = false; Var path = "";...

mysql - Sql query to combine 2 diff. column output based on conditions -

I want to add 2 columns to the new column based on the circumstances. Please check the query below. What I tried was Select 'Contacts'. ContactSarpsi``, 'Contacts'. 'Pars', 'Contacts'. Contact 'BDRPlus' with 'Contact'. WHERE (`` ContactPers``` parse ID` = 55) or (`ContactPers`.contactID = 55)) and` ContactPers`.`etat` = 1 Output: contact_persID persID contactID 18 90 55 19 55 56 20 55 61 23 55 67 The desired output is something (55 not in the new column, as it does Based on the circumstance, you want to add the press and contact ID.) contact_persID persID contactID newColumn 18 90 55 90 19 55 56 56 20 55 61 61 23 55 67 67 - Thank you I'm not sure about MySQL. Here's how I should do it in SQL: Select 'Contacts' ContactSarpsi``, 'Contacts'. 'Paper', 'Contacts' 'Contact', 'Agent' Preceded 'When 55' 'Contacts' Contact 'ALSE' contacts....

javascript - Get the current element from router's actions in ember -

I was already trying to search everywhere, how to get the current element and get it on, but he To access the element, click on the View function. Even though it is also looking to achieve it (although the target on the action = "WorkView" does not really get me.) What was the parameter on the target anyway? Lol) so I received an element through the router To open this thread. East. App.PostsRoute = Ember.Route.extend ({actions: {getElement: function (parameters) {// How to obtain current DOM element was clicked on? // My purpose The clickable element to remove it in the list // is probably to send it to server? Console.log (params); // current object model console.log (this); // path itself}}}); // template & lt; Ul & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li class = "go - this" {{action 'getElement' it}} & gt; & Lt; / Li & gt; & Lt; Li c...

regex - JavaScript: Extract parts of e-mail address and split into parts -

How to remove some parts of the e-mail address and split into parts and if there is a point in the first and last names Like many companies are common? Input 1 perry.rhodan@galaxy.net Input 2 atlan @ Galaxy.net desired output 1 Peri roadan galaxy net desired output alan galaxy net I checked my answer below for a reg box and a dot in the email but maybe a regex to get the same result? What is C #: Use Regex regex = new Regex (@) "@ (+.) (= \ \ W {2,}?.) (+.)"; String texts = "perry.rodan@galaxy.net \ natlan@galaxy.net"; Var list = new list & lt; String & gt; (); Where (v => List.Any (l => = l). (). = V))); List.adrenz (item group [2] .whole sample ('.'). (V = & gt; list. Any (l = & gt; l == v))); } Foreach (different items in the list) {Console.WriteLine (item); }

sendmail - sending/receiving external email without a domain name? -

I want to set up a mail server to send emails and receive external emails (from another server to Internet) either Postfix in sendmail or unix or hMailserver on windows. Because it is easy to set up a web server, because people can access the Internet without the need of a domain name, and works like any other web server using the domain name. I was wondering if it is possible to set up the mail server, which can work with the IP, just like any mail server at the work of the internet The email addresses will be as follows: example@my.ip.is.here If this is not possible then Would it be possible that the domain name type A (my IP is linked in a way, the domain name)? Thank you. Unfortunately, you can not send mail from your IP address: D hook you can also make free servers Or, like you put your domain in the mailsaver.

rails setting form_for id attribute causes: Couldn't find Folder with 'id'=add_client -

मेरे पास एक फार्म है जिसके लिए ऐसा लगता है: & lt; div class = "modal -body "& gt; & Lt;% = form_for @ फोल्डर, यूआरएल: add_client_folders_path, html: {आईडी: "add_client"} करना | च | & Gt%; & Lt;% = f.fields_for: client_profiles do | client_builder | | & Gt%; & Lt;% = client_builder.select: आईडी, @ clients.collect {| ग्राहक | [क्लाइंट.नाव, क्लाइंट.आईडी]}, {include_blank: true}, {class: "form-control"}% & gt; & Lt;% end% & gt; & Lt;% end% & gt; & Lt; / div & gt; & Lt; div class = "modal-footer" & gt; & Lt;% = submit_tag "क्लाइंट जोड़ें", वर्ग: "बीटीएन बीटीएन-प्राथमिक", फ़ॉर्म: "add_client"% & gt; & Lt; / div & gt; पैरामीटर: {"utf8" => "✓", "प्रामाणिकता_टोकन" => "7qxjMI1H / = "" क्लाइंट जोड़ें "," id "=>" + "" ग्राहक "=> {" client_attri...

sql - error ORA-02270: no matching unique or primary key for this column-list -

I am practicing a laboratory manual practice in which I have to make 6 tables, 5 is successful. But there is a line error constraint GRADE_Designation_FK foreign key (designation) references employee (designation), Error 7 : ORA-02270: this column lists a match unique or primary key 2 linked tables of queries made table staff (Empno number (4) constraint EMPLOYEE_Empno_PK primary key, name varchar2 (10) nOT nULL, title varchar2 (50), qualifying varchar2 (10), Joindate date); Table grades (designation varchar2 (50) barrier GRADE_Designation_PK primary key, grades Number (2), TotalPosts number (4), PostsAvailable number (4), grades between barrier GRADE_Grade_CK probes (1 and 20), barrier GRADE_PostsAvailable_CK Czech (PostsAvailable to & Create lt; = total posts), barrier GRADE_Designation_FK foreign key (designation) reference employee (designation)); Try out table grade (make designation varchar2 (50) barrier GRADE_Designation_PK primary key, grades Numb...

trouble importing xlwings module into python 2.7 on Mac -

I am trying to use xlwings on Python with Python 2.7.8, but when I enter this code I get this error message: can not import namebook workbook This seems to be the same problem presented with a Python 3, but I am experiencing this problem now with Python 2.7.8. I had no problem importing mysql.connector so I do not think this path is a problem with the variable any help is greatly appreciated. Thanks, Ash

java - How to deploy webapp to Appscale from Google Plugin for Eclipse? -

I am developing Java webpage using GWT and Google plugin for eclipse. I have begun to use Appscale instead of Google App Engine, but it's not sure how to configure webcaps to set up for apps. Is there someone who accomplished this? If so, please let me know how to do this. (Until August 26, 2013). You can add your Java app by clicking on the GUI button from the Google Plugin for "Eclipse" You can not upload, but rather, you can upload with the Appscale command line client. (As of 2014-10-21) You can provide that GAE to write an application in El Paso. The code layout discussed on is fully compatible with AppScale. Be sure to use the correct version of the SDK as described in AppScale. After deploying your app on APSLL, it is as easy as typing appscale deploy Guestbook from the command line.

xml - Linking XForm model instances by an instance data node -

Image
I am trying to understand the form and I suspect the model specification. I need a composition model, and I really do not know how to do this. Suposse requires you to create this form: I'm thinking something like this: & lt; Xf: model & gt; & Lt; Xf: example xmlns = "" & gt; & Lt; Person & gt; & Lt; Name & gt; Arianne & lt; / Name & gt; & Lt; Surname & gt; Boissieu & lt; / Nickname & gt; & Lt; Pet & gt; Dog & lt; / Pet & gt; & Lt; / Person & gt; & Lt; Pets Options & gt; & Lt; Birds & gt; & Lt; Name / & gt; & Lt; Plumage color / & gt; & Lt; Bird beak / & gt; & Lt; / Bird & gt; & Lt; Dog id = "dog" & gt; & Lt; Name / & gt; & Lt; Tail size / & gt; & Lt; Hair color / & gt; & Lt; / Dog & gt; & Lt; / Pets Options & gt; & Lt; / XF: Examples & gt; & Lt; / XF: Model & gt; ...

Pandoc citations without appending the references bibliography -

मुख्य प्रश्न: क्या पंडोक को ग्रंथ सूची संलग्न करना बंद करने का एक तरीका है लेकिन फिर भी यह सही है इनलाइन प्रशस्तियां? मैं एक मार्कडाउन / नाइट्र दस्तावेज लिख रहा हूं जिसमें एक मुख्य फ़ाइल ( article.Rmd ) है और कई "बच्चे" फ़ाइलें जो में शामिल हैं नाइट्र के "बच्चे =" चंक विकल्प का उपयोग करते हुए मुख्य फ़ाइल। मूल फाइलें मुख्य रूप से फ़ाइल के भाग हैं, जो आसान संपादन और प्रबंधन के लिए अलग हैं इन बाल अनुभाग फाइलों के दौरान, मैं विभिन्न कागजातों को उद्धृत करने के लिए मार्कडाउन पाठ (उदा। "लेखक @ शीर्षक 1 99 9") का उपयोग करता हूं। मुख्य फ़ाइल और प्रत्येक बच्चे फ़ाइल में YAML हेडर है, जो कि बीबीटीक्स फ़ाइल स्थान प्रदान करता है, जैसे: --- ग्रंथ सूची: mybibfile.bib ... (एक बार से अधिक इस YAML प्रविष्टि को शामिल करना कोई समस्या नहीं है, देखिए।) जब मैं संपूर्ण दस्तावेज़ को नाइट्रर का उपयोग करके संकलित करता हूं, तो एक बड़ा मार्कडाउन दस्तावेज़ बनाया जाता है। मैं तब उद्धरण प्रबंधन के लिए - filter pandoc-citeproc विकल्प के साथ पांडोको का उपयोग करें। पांड...

php - Creating a form to submit data into wordpress database -

I'm trying to come up some ways to get an html form on a WordPress page and it's in the WordPress database Send to Custom Tables I have tried to call the custom php script and write the code in the page and I did not know how to work it. I am trying to understand it, I am about to lose. Where to find a suggestion, enough I'm searching for a week, it would be great. I have tried to use mysqli_connection, but where do I add that where I add (mysite.com, user, pass, db); And I get another error I can not connect to "user@anotherunknownsite.com" "I have a shared IP, so I wonder if it is connecting to this other site, which has no reference in my code I'm tired of using a local host instead of my site. Nothing works. This code tries to get some data from the database, but anything B4 where from mysite.com Do not know an error Can be user@randomsite.com and the local host does not work as the only one to connect. & lt ;? php $ thief = mysqli_conn...