Posts

Showing posts from May, 2013

angularjs - Passing id and as a parameter to directive -

I have an instruction, if the ID has not been passed, then generate it one But it seems that the generation is slow to slow down and that the ID is not present in the instruction {function (angular) {'hard use';; angular.module (' WidgetsModule ') .directive (' myDirective ', [function] {function postLink (scope, jqElm, attr) {} function postCompile (Telement, tAttrs) {return function postLink (scope, jqElm, attr) {attr. Inspection ("id", function (id) {// init scope.id = id Called on == Undefined ID: 'some1';});}} function Ctrl (scope) {} {return template: ' ' + ' & Lt; / div & gt; ', Controller: [' $ scope ', Ctrl], Replace: Correct, scope: {ID:' @ '}, Restrict:' AC ', link: Post link, compile : PostCompile};}]);}} (Window.angular) I think Is that id is special because it has a valid dom feature in my case id also in the form of an attribute for HTML Insect was going, not that

php - Select-form, make the option stay selected after submit -

मेरे पास यह फ़ॉर्म है: & lt; form method = "post" & gt; & LT; fieldset & gt; & Lt; चयन करें नाम = "कार्य-विकल्प" आवश्यक & gt; & Lt; विकल्प मान = "" चुना गया अक्षम "gt; समूह चुनें & lt; / option & gt; & Lt;? Php जबकि ($ hej & lt; गिनती ($ hejsan)) {गूंज '& lt; विकल्प मान ='। $ हेज '& Gt;' । $ हेजसन [$ हेज] '& Lt; / विकल्प & gt;'; $ Hej ++; }? & Gt; & Lt; / चयन & gt; & Lt; इनपुट प्रकार = "सबमिट करें" मान = "बुकिंग ढूंढें" & gt; & Lt; / fieldset & gt; & Lt; / प्रपत्र & gt; जब मैं सबमिट बटन को दबाता / चयन करता / विकल्प डिफ़ॉल्ट पर रीसेट करूँगा, तो मैं इसे कैसे बदल सकता हूँ और इसे मैंने चुना हुआ एक जैसा बना सकता हूँ? इसे आज़माएं अगर (isset ($ _ POST ['taskOption']) { $ विकल्प = $ _POST ['टास्कॉप्शन']; } जबकि ($ hej & lt; count ($ hejsan)) {if ($ hej == $ _ POST ['taskOption

gwt2 - Window Location getParameter is always null in GWT/GXT Project? -

Image
I am working on GWT / GXT, I am trying to practice some sample examples. This URL is the project http://127.0.0.1:8888/Opera_Star.html?gwt.codesvr=127.0.0.1:9997 Module Loads on Public Zero () {Map & lt; String, entry & gt; Project = new fastmap & lt; Entry & gt; (); ProjectModel ProjectModel = New ProjectModel (); (Int i = 0; i & lt; projectModel.getChildren (). Size (); i ++) {// 1 children login class login category = (login category) project model .getChildren (). Get (i); (Int j = 0; j & lt; loginCategory.getChildren (). Size (); j ++) {// 2 children entry entry = (entry) loginCategory.getChildren (). Get (j); Project.put (entry.getId (), entry); }} Registry. Registry (model, project model); String id = window.path. Tag operator ("id"); If (id == null) {id = XDOM.getBody (). GetId (); } Entry entry = project.get (id); If (enter == tap) {return; } Can anyone tell me that string id = window? place. Jupiter ("id"); id = XDOM.g

c# - Entity framework 6.0.1 -> 6.1 update, project references say "6.0.0.0" -

I use EF 6.1 using library package manager The solution has been updated Next I have reviewed the list of pending changes and the EF reference in each project is similar to these lines: & lt; Include references = "EntityFramework, Version = 6.0.0.0, Culture = Neutral, PublicKeyToken = b77a5c561934e089, Processor Arcture = MSIL" & gt; & Lt; SpecificVersion & gt; False & lt; / SpecificVersion & gt; & Lt; HintPath & gt; .. \. \ Package \ EntityFramework.6.1.0 \ lib \ net45 \ EntityFramework.dll & lt; / HintPath & gt; & Lt; / References & gt; Why does this specify the fully qualified name version = 6.0.0.0 ? "Itemprop =" text "> EntityFramework 6.1.0 is still an assembly version of 6.0.0.0 . 0 to 6.1.0 so that you do not need a binding redirect in your configuration file. What is in your .csproj for the reference include attribute value is correct.

graphite - Tool for monitoring QOS -

In my project We crawl the x number of the server. The number of users for each server varies from 1 to We crawl z items from 1 to each user. Currently we are monitoring QOS using graphite. We take the time to crawl the item. The problem with this approach is that if only one user is affected, then we get false warnings about QOS. What will be the right tools / techniques to answer / monitor the following points: The warning only occurs when minimum K user be impressed. [No number of events] List of affected users I think graphite and statistics are not the right tool for this. What would be a better tool to answer those two questions? What are you asking for, often called service monitoring? For many good reasons, Want to know the effect, rather than an event happening The benefits of this approach are exactly as you like in your needs - you can focus on events that affect a large part of your user base and you have a list of immediate users affected.

java - how to make servlet instance variables thread safe? -

In the code below, I want to create get_data variable as a thread-safe. Please provide me some code. public class home_page_action HttpServlet {String get_data; Public Zero doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {}} Firstly it is recommended, please do not create an example variable. Since only a copy of the servlet has been made, only the variables are within the thread-safe variable method. Local variables are always a safe thread. However, keep in mind that the object indicates a local variable number, it can not happen. If this method was started within the law, and could never survive, then there will be no problem. On the other hand, a local variable, pointing to some shared object, can still cause problems. Just because you specify a shared object in a local context, this does not mean that the object is automatically secured with the thread. Requests and feedback objects are definitely safe threads

Pending Intent in Android -

Constructor of a pending intention requires an intent object in the next activity from the next subject. In my app, I have only one activity that includes several scenes. I have no other activity. Thoughts are destroyed or appear on demand. Obviously I can not add a scene to the creator of an intent, so how do I direct pending intentions? & lt; Include / & gt; Using the command, many ideas are main. Has been included in Xml. This is very easy to complete. Mvnpavan has already given you a good hint, you just need to do some extra work. First of all you are familiar with this page. should be there. It explains how to manage your app tasks and go back to the stack. In your case you have 2 options: 1. In the launch, launch launch launch property. Since using your single activity, SingleTop should be set up. & amp; Activity Activity: Name = "com.yourpackage.YourClass" Android: launchMode = "singleTop" & gt; & Lt; / Activity & gt; 2.

javascript - Split a nested list in to separate lists -

In the navigation I have a nested list. html: And lieutenant; Ul id = "big list" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Diary product & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Milk & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Goat & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Cow & lt; / A & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Aromatic & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Excess smelly & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Soya & lt; / A & gt; & Lt; / Li & gt; & Lt;

javascript - Mapbox Markers - Dynamic markers on one layer -

Is it possible to have only one layer in the Mapbox, on which I will add several markers (like when the user zooms) On the map) or dynamically delete them (for example, when the user is zoomed out)? One more question related to the first one: Is a marker a layer? If so, Class L. What is the difference between a marker and a layout? create one, which is defined as a layer of a group of markers After this you can add and remove markers programmatically in this way: var marker group = l.mapbox. FeatureGear (geojson) .addTo (map); MarkerGroup.addLayer (marker); MarkerGroup.removeLayer (marker); As a marker is a layer or not, the answer is of a kind ... A marker is a UI layer, as is distinct from a raster layer and a vector layer < / P>

How to avoid a loop here in R? -

मेरे आर प्रोग्राम में मेरे पास निम्न फ़ॉर्म के "for" लूप हैं: (I: i) i , a और b लंबाई के वैक्टर हैं I । क्या इस लूप से बचने का कोई सीधा तरीका है और सीधे रिसाव की गणना? यदि हां, तो क्या यह अधिक कुशल होगा? धन्यवाद अग्रिम! यह a * b rev (cumsum (rev (a) * rev (b)) का "रिवर्स cumsum" है

c++ - std::time(NULL) performance -

How fast is std :: time (null) comparing read-only variable ? I am planning to use std :: time (NULL) in the low latency application for trading. I'm wondering what's better: Just std :: time (NULL) call in special bag (which is already I have to update the global variable from time to time and assign to std :: time (NULL) , read this thread from all the other places with another thread < / Ul> The second evaluation is less accurate, but will it be faster? I do not need the accuracy, I need speed, if another approach is understood then how should I declare my variable? Unstable std :: time_t or std :: atomic & lt; Std :: time_t & gt; or something else? I write this variable with a thread and read it with many threads. Utility thread (or process) that clock a few times a second (which meets your accuracy demand ) And saves it in memory. Apply an interface that gives time by reading it from this place instead of making an expensive OS c

android - Getting cp cannot create regular file No such file or directory in openssl -

I am getting errors below when trying to compile OpenSSL code. Under error during the "Install" step Please tell me if someone resolves this issue, there are links in Google search but pointing to an unresolved issue "" is installing in crypto ... Make [1]: Directory `/home/test/openssl-1.0.1f/crypto is entering 'CP: Can not make regular file That's it. ' /../libs/armeabi/include/openssl/crypto.h ': There is no such file or directory: `./../libs/armeabi/include/openssl/crypto can not access' h': such There is no file or directory CP: Regular file can not create `./../libs/armeabi/include/openssl/opensslv.h ': No such file or directory chmod:` ./../libs/commodie/ Intelles / OpenSNS / OpenSave H ': No such file or directory. CP: Regular file can not create `./../libs/armeabi/include/openssl/opensslconf.h': There are no such files or directories Access `./../libs/armeabi/include/openssl/opensslconf.h ': There is no CP file

hadoop - apache sqoop installation missing addtowar script -

I was installing apache sqoop for hadoop v1. In the installation it says that the script / BN / AdWWA.sh Saul is in the SQLSquip bin Dear, but I do not find it. Hello I think you have forgotten the command: mv sqoop- (version) -bin - hasoop (houp version) .tar.gz / usr / lib / sqoop Please use that command with that command Change to: mv sqoop- (version) -bin-hadoop (thup edition) / usr / lib / sqoop I think your problem will be solved.

Emit custom validation CSS in asp.net MVC 5 -

I am trying to integrate our MVC 5 application with a theme {wrap} bootstrap This provides its own verification class (they are different from the Out-of-the-Box Bootstrap Recognition class). Should there be no direct to hook in the recognition of MVC -discrimination-error CSS classes? In case of an error, it needs to be terminated (it will be the emitted HTML):

C# SharpZipLib Can't read stream when trying to uncompress zip in Unity3D -

I have ICSHRPCD. Using the SRPZLIB to open and open a file from the Web, whatever I have to do is uncompressed byte array however I get the "Invalid Operation exception: Unable to read from this stream" error. I am working in Unity 3D as a Web Player with a target in C #. This is apparently readable, so I'm not sure of this problem. Here is my code and any help would be greatly appreciated. (ICSHRCPCD) SharpZipLib.Zip.ZipInputStream zip = New ICSHRcode using (using > Bierrebrand BR = new binaryreader (s)) using (memorystream s = new memorystream (bytes)) . STEPZIP LIB. Zip ZIP InputStream (s)) {Byte [] bytescomplete = new byte [32768]; While {true} {debug.log ("can read:" + zip. Converged); Int read = zip.Read (byte, full, 0, byte lamps); If break (read & lt; = 0); Zip.Write (byte, 0, read); }}}}} It is not clear how you made your stream S , but you may need it to roll back the status of your stream before reading it: s.Seek (0, System. I

sprite kit - SKShapeNode consuming too much memory and slowing down animation -Spritekit iOS -

I'm using SKShapeNode to create mountains like objects. I use CGMutablePathRef to give marks to my path SKShapeNode * shapenode = [[SKShapeNode alloc] init]; CGMutablePathRef Path = CGPathCreateMutable (); CGPathMoveToPoint (path, zero, 0, 0); For ...... (int i = 0; i & lt; [refData count]; i ++) {CGPathAddLineToPoint (path, zero, ((boat) I / [refData count]) * screenWidthBoundry, [[ RefData objectAtIndex: i] double value]); } CGPathAddLineToPoint (path, tap, screenwidth boundary, 0); CGPathAddLineToPoint (path, zero, 0, 0); Shapenode.path = Path; Size.NOTE test = yes; SizeNode.philoclor = [SKColor colorWithRed: 17.0 / 255.0 Green: 108.0 / 255.0 Blue: 125.0 / 255.0 Alpha: 1.0]; //shapenode.strokecolor = [UIColor clear collar]; Order node.linewidth = 1.0f; Shapenode.physicsBody = [EdgeChainFromPath: Path] with SKPhysicsBody body; SizeNode.FixixBody.PoweredBegravity = No. Akarnonode.FizixBody Carbot Mask = Confrontation Field; Affected graphicsBody cullingbitmask = 0; Size

c# - Read SpecFlow parameters from an external xml -

I have an object through which I can access the variable that can be read from an external file, and I I want to implement in sample tests. Where can I start my object to appear from all the testing stages? EDIT: I tried to initialize my object in the first step, which is the first step fo ALL my test, but I can not see my object from anywhere else You have to store the object (s) given to it and store it as a private variable, so it is at all stages Is accessible

combobox - How to disable mouse wheel event in org.eclipse.swt.widgets.Combo -

मेरे पास एक कॉम्बो विजेट है (org.eclipse.swt.widgets.Combo)। जब मैं एक माउस व्हील को एक कॉम्बो बॉक्स परिवर्तन का मान स्क्रॉल करता हूं मैं इस व्यवहार को कैसे रोकूं? धन्यवाद। इसे आज़माएं: कॉम्बो मायकोम्बो = नया कॉम्बो (अभिभावक, शैली); MyCombo.addListener (SWT.MouseVerticalWheel, नया श्रोता () {@Override सार्वजनिक void handheldEvent (घटना arg0) {arg0.doit = ​​false;}});

jquery - Conditional statement within an append output -

क्या ऐसा कुछ करना संभव है $ ("#till__tablepanel_table _" + tablenumber ) .append ("& lt; span & gt;" + अगर (चर == 1) {writeHere} + "& lt; / span & gt;"); मुझे यह काम नहीं मिल सकता है उदाहरण: मैं कैसे लिखूँगा अगर शर्तें सही थीं? आप कर सकते हैं उस के लिए एक त्रिज्या यदि कथन का प्रयोग करें: .append ("& lt; span & gt;" + (चर == 1? लिखिए: "") + "& lt; / span & gt;");

android - How can i add my own (librarys)*.so files into apk -

I delete I am developing an application for Android and i file *. So for the Libs directory, you can tell me how to recover these files. Cordially. may be the only way that you can recover your Liberate files if you have Apike file. For doing this. 1- Rename your APK file with zip file. 2 - Remove the zip file 3- Now you can find the Libs folder, where you got the * .so file. Hope this will help you.

javascript - Determine if ONLY ONE option is selected in multi select -

With the following code, I am using a multi select box to enable the user to select multiple options . When I select one of the options, I am displaying a preview image of the selected option in the other partition. All this works, but when I select more than one item, I would like to be able to update the div with the image preview to show the placeholder image. Thoughts? & lt; Multiple id = "opt1-opts" & gt; Select & lt; Option value = "diesel_nova_rts 066 99 6" & gt; Nova RTS-06 - 1996 & lt; / Options & gt; & Lt; Option value = "diesel_nova_rts_6_1998" & gt; Nova RTS-06 - 1998 & lt; / Options & gt; & Lt; Option value = "diesel_nava_rts_6_1999" & gt; Nova RTS-06 - 1999 & lt; / Options & gt; & Lt; Options & gt; Nova 40 LF - 2011 & lt; / Options & gt; & Lt; Option value = "new_flyer_40lf_2011" & gt; New Flyer 40 LF-2011 & lt; / Options & g

asp.net web api2 - optional route params, web api 2 -

I am trying to learn web API 2 / MVC, and need some help in trying to set up a controller Optional parameters, which are My controller method looks like this: [Root ("{sender} / {displayLength} / {displayStart}")) Public HTTP sending message GetSenderMessages (string sender Now, displayLength, displaystart can be optional, they are being used to control paging in the mobile app. P> If I send < Blockquote> // server / route / widen / 1 then complains of not matching this parameter. Am I here to tell people Have you tried this:?

distribution - Consumer allocation RabbitMQ -

खरगोश-एमक उपभोक्ता वितरण को डिजाइन करने में सहायता की आवश्यकता है। उदाहरण के लिए, 100 कतारें हैं और उस 100 कतार से संदेश उपभोग करने के लिए 10 थ्रेड्स प्रत्येक थ्रेड 10 क्यूई से प्रत्येक संदेश का उपभोग करेगा प्रश्न 1: कैसे गतिशील रूप से धागे को कतारों को असाइन करना है? यदि थ्रेड्स विभिन्न मशीनों में चल रहे हैं? एक से अधिक थ्रेड को कतार से उपभोग नहीं करना चाहिए (संबंधित कतार में संदेश प्रसंस्करण के आदेश को बनाए रखने के लिए) प्रश्न 2: जब वृद्धि की आवश्यकता होती है उपभोक्ता धागे जब सिस्टम चलाता है, तो यह कैसे किया जा सकता है?। इसके बारे में बहुत सी पोस्ट हैं संदेश ऑर्डर (एफआईएफओ), आपके पास एक सामान्य स्थिति है (एक निर्माता उपभोक्ता समस्या के बिना उपभोक्ता) आपको कोई समस्या नहीं है लेकिन जैसा कि आप पढ़ सकते हैं विशेष रूप से ध्यान दें कि "जब तक कि पुनर्वित्त क्षेत्र सेट नहीं किया जाता" स्थिति होती है, जिसका अर्थ है कि उपभोक्ताओं द्वारा किसी भी डिस्कनेक्ट के कारण संदेशों को स्वीकृति के बाद लंबित रूप से आदेश से बाहर निकाल दिया जा सकता है। इसके अलावा, उदाहरण के लिए य

coffeescript - Extending Classes with new properties without overriding the main constructor -

सामान्य व्यक्ति वर्ग को ध्यान में रखते हुए: वर्ग व्यक्ति निर्माणकर्ता : (@firstName, @lastName) - & gt; SayName: - & gt; Console.log "नमस्ते, im # {@ firstName} # {@ lastName}" तब मैं इस वर्ग को एक नया, जिसे कर्मचारी उसमें एक अतिरिक्त संपत्ति है स्थिति : वर्ग कर्मचारी व्यक्ति निर्माणकर्ता को विस्तारित करता है: (@ स्थिति) - & gt; इस के साथ समस्या यह है कि आईएम को व्यक्ति निर्माता को ओवरराइड कर रहा है, इसलिए मेरे कर्मचारियों के उदाहरणों को प्रथम नाम और अंतिम नाम वेरिएबल्स। कन्स्ट्रक्टर फ़ंक्शन को रीडिफाईंग किए बिना और व्यक्ति वर्ग से उन गुणों को प्राप्त करने के बिना, इसे प्राप्त करने का सबसे अच्छा तरीका क्या होगा? धन्यवाद। उह, ठीक है, आपने क्षमता कन्स्ट्रक्टर में एक पहला और अंतिम नाम स्वीकार करने के लिए तो क्या मैं अनुमान लगाता हूं कि आप बेस क्लास कन्स्ट्रक्टर आर्ग्यूमेंट्स और साथ ही अतिरिक्त तर्कों को स्वीकार करना चाहते हैं? ऐसा कुछ आधार क्लास कन्स्ट्रक्टर से कोई भी तर्क के साथ काम कर सकता है। वर्ग व्यक्ति कन्स्ट्रक्टर:

python for .net issue with windows8 (probably) -

Image
I'm successfully using Python to connect to vyb code (i.e. compiled.dll) though recently my The client has reported using Windows8, the weird issue we are located on the import clr this is what I say: importing OS, system, site Site. Adidisitor (CLR_path) Import CLR and clr: def __bootstrap __ (): Global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __file__ = Pkg_resources.resource_filename (__name __, 'clr.pyd') __loader__ = none; Del __bootstrap__, __loader__ imp.load_dynamic (__name__, __ file__) __bootstrap __ () And it's working fine on many Windows 7 machines, but in win8 I get this : It seems that all library imports And it fails in dictionaries (which I save anyway and want to be on basic datatype :)) Do you have any clue? thank you in advanced!

How to retrieve specific events from a calendar in Android -

I have created an Android application that stores events in the user's smartphone's calendar, for example, through my app From, the user creates a special event such as a conference meeting and then clicks on the "Add to Calendar" button. My app then sends the user into the calendar application to perform the desired operation (Calendar Add Event ). After they worked, they returned to my app. Now, I want to receive specific events from the calendar created through my app. I was thinking of getting EVENT_ID of every event because the user adds it to the calendar and saves it in a file. Then I retrieve the event from the calendar using the saved AIDs in the file. I do not know that this is a good practice So, how can the user get through special events created by his program through the calendar? Thank you. / P>

javascript - Suppress console errors with XMLHttpRequest -

इस सवाल का पहले से ही एक उत्तर है: < / P> 2 जवाब मैं लिखने की कोशिश कर रहा हूँ जावास्क्रिप्ट में एक "फाइलएक्सिस्ट्स" फ़ंक्शन जो केवल सर्वर पर एक अनुरोध भेजता है और 404 स्थिति को वापस भेज दिया जाता है, तो झूठी रिटर्न देता है। फ़ंक्शन पूरी तरह से काम करता है, लेकिन मैं त्रुटि संदेश को दबाने में प्रतीत नहीं हो सकता Google Chrome कंसोल में बताएं: GET / something / foobar 404 (नहीं मिला) । क्या किसी को भी इस पर काम करने का कोई तरीका पता है? संदर्भ के लिए, यहां कोड है जो मैं उपयोग कर रहा हूं: var fileExists = function (url) {var req = new XMLHttpRequest (); Req.open ('GET', यूआरएल, गलत); req.send (); वापसी req.status === 200; }; धन्यवाद अग्रिम! मुझे नहीं लगता है रिसोर्स लोड करने में विफल होने से कंसोल को रोकने का एक तरीका विफल हुआ। वास्तव में इसके साथ कुछ भी गलत नहीं है। आप फिर भी जीआरईएस के साथ रिसोर्स लोड करने के बजाय एक हेड अनुरोध का उपयोग कर सकते हैं। कोशिश करें फ़ंक्शन फ़ाइलएक्सिस्ट्स (यूआरएल) {var req = new XMLHttpRequest ();

javascript - total of dynamic input -

Hello I have 3 types of input Dynamic I create with an add button // Function Appendix Merry Works CounterMardi = 0; Var $ newRow; Click on $ (Function () {$ ('# add_mardi') (function () {countermardi + = 1; $ $ NewRow = $ ('& lt; Input ID = "nummar' + countermardi + '" name = " Nummer [] '+' "type =" text "onblur =" autre (); "onfocus =" enter (); "/>;); $ ('# nummar'). Attachments ($ newRow) $ NewRow.keypress (function (e) {return handledynmar (event, this' work ');}) $ newRow.autocomplete (autocompOpt);. $ (' # Clientmar ') enclosed ((' & lt; input id = "clientmar '+ Countermardi +' "name =" customer [] '+' "type =" text "onblur =" autre (); "onfocus =" enter (); "/ & gt; ')) $ (' # prodescmar '). Append ((' & lt; input id = "prodescmar '+ countermardi +'"

Compression library for Cross Platform -

हमें प्रत्येक एंडपेच क्लाइंट (आईओएस / एंड्रॉइड / विंडोज क्लासिक) से डाटा को संपीड़ित और भेजना होगा और एनईटी का इस्तेमाल करते हुए इसे अंत में सेवा में विसंकित करें। क्या इस परिदृश्य (सामान्य एक्स प्लेटफार्म) में इस्तेमाल किया जा सकता है जो संपीड़ित / डीकंप्रेस के लिए कोई ओपन सोर्स सामान्य लाइब्रेरी है। Pl सलाह इसके बारे में किसी भी प्रोग्रामिंग प्लेटफार्म के विकास के बारे में, पिछले 20 वर्षों में बॉक्स के बाहर का समर्थन किया गया है। चूंकि वे आम तौर पर एक ही फ्री लाइब्रेरी को शामिल करते हैं, इसलिए वे जो डेटा तैयार करते हैं वह इंटरऑपरेट करते हैं। "zlib", "gzip", या "deflate" जैसे कीवर्ड के लिए एपीआई दस्तावेज़ीकरण के माध्यम से देखें। उदाहरण के लिए, एंड्रॉइड में, चेक आउट करें और जो zlib को कार्यान्वित करते हैं।

c# - Textfield clears after calendar control postback -

There are 3 text fields and a calendar control on my page. After I fill 3 text boxes, a date on the calendar control Click the text field below to exit its price. In other 2 text boxes, their prices are available and are not clean. There are all the same properties in the text box, but I did not know how to put values ​​in the third text box. & lt; Table class = "auto-style2" align = "center" & gt; & Lt; TR & gt; & Lt; Td square = "auto-style 4" style = "text-align: right" & gt; Project name: & lt; / Td> & Lt; Td style = "text-align: left" & gt; & Lt; ASP: text box id = "tttproductname" run = "server" height = "32px" width = "211px" maxland = "50" ontax switching = "textproductnamenameipidcheckedpeed" onkooip = "calculation (it, 50)" on change = "Calculation (this, 50)" text mode = "multiline" &

android - Why would mqtt messages not be delivered -

I am using the watch on Android 4.3, talked to mosquito server hosted at m2m.eclipse.org I am . I have got the customer wrapped in the service, and using the alarm-manager to send live messages to the server. I have a different client (just using MQ Extrbridge or other Android device) that sends messages to my topic. Everything works ... until it does not. At some point, my Android service stops receiving messages. Keeping maintenance, everything seems fine, but messages are not available through the medium. I am not able to replicate this behavior on a local mosquito event, from which I think that some sort of configuration on the eclipse side , But will give a hint. QoS is 0. Have you tried using QOS 1 or 2? QoS 0 Most often : The message is delivered at one time, or it can not be distributed at all. Its delivery to the network has not been accepted. The message is not stored The client has been disconnected, or the message may be lost if the server fails. QoS0 is

mysql - assign value to checkbox using loop php -

$ फ़ाइल नाम उदाहरण के लिए होना चाहिए: a.pdf, b.pdf, c.pdf, d.pdf क्रमशः । लेकिन क्यों मैं चेकबॉक्स में मूल्य निर्दिष्ट नहीं कर सकता कृपया मदद / __ \ जबकि ($ row = Mysqli_fetch_array ($ result)) {$ file-name = $ पंक्ति ['नाम'] ".pdf"; गूंज "& lt; tr & gt;"; गूंज "& lt; td & gt; & lt; इनपुट प्रकार = 'चेकबॉक्स' नाम = 'q1 []' मान = & lt;? Php echo $ filename? & Gt; ' & Gt; & lt; / td & gt; "; } उपरोक्त टिप्पणियों के लिए, निम्न प्रयास करें: जबकि ($ पंक्ति = Mysqli_fetch_assoc ($ परिणाम)) {$ filename = $ row ['नाम'] ".pdf"; गूंज "& lt; tr & gt;"; गूंज "& lt; td & gt; & lt; इनपुट प्रकार = 'चेकबॉक्स' नाम = 'q1 []' मान = '"। $ Filename। "' / / Gt; & lt; / td & gt;"; } आपके प्रश्न के लिए टिप्पणी के रूप में आप $ file-name (PHP में एक अमान्य चर नाम) असाइन कर रहे थे और एक (संभवतः)

workflow - Is there a conventional way to support more than one release in git? -

Whether a git workflow is designed to keep software from many GIT branches (for example, release.1.1 Master long time ago, and release.1.2 more recently than guru). There are great documents in the feature branch workflow, gifflow workflow, and forking workflow but I have not got information about managing more than one release. Managing multiple releases will require the use of hotfixes and facilities for one or more Release Branches will be used to maintain all the changes for future releases, a Master branch will be used, The master's closest release can get some features and hotfix, the most release release will receive at least the update, and the Chutuli release from the Guru is the first initiative It will reach the end, life will be. I am thinking that something like this will appear Master ------- + ---------- + - --- ----- + ---------- + ------ + ----------- + ----------- --- ------ \ \ \ / \ / hotfix- + feature- + \ \ hotfix feature \ release_1.2 ------- + ---

ruby - Is there a new way to unit test Rails projects? -

I'm following the tutorials and everything is working fine as per the development. For example, a test is as follows: requires Spec_helper "description" Home page "do this" to have the content 'sample app' Expect to visit '' / static_pages / home '' (page). At the end of Have_content ('Sample App') . . End of End To make the test work, I have to change it to "test_helper" but then when I type bundle exec One test that I have been able to successfully run is the following: to 'test_helper' Class Required StaticPagesTest & lt; ActionDispatch :: IntegrationTest def test_connection "About / assert_response: Success," absent about page "assert_select 'title'," About us "and end The test is parsed, the change in it, because it seems that the syntax is quite different. Do I need to do something different to get the "description" method to work, or

python - spynner doesn't load XHR data -

I'm creating a script for monitoring a Reporting Services report via appears in HTML or Aksmelacteepiaraiveitest Depending on how the report process applies. As a tool to check the page, I want to use the spinner, which works perfectly for HTML, but it seems that when the data comes through XHR I can not work it The code for the exam is as follows: #! / Usr / bin / env python # - * - coding: UTF -8 - * - the __docformat__ = 'restructuredtext N' PyQt4.QtNetwork import QNetworkRequest, QNetworkAccessManager PyQt4.QtCore import QByteArray def load_page (br) from PyQt4.QtCore import QUrl Spynner import import import time from imported pyquery imported from sleep: retired = br.load_jquery (true) print retired return Br.html br = 'Japan' in browser Brosr (Dibg_levl = 4) br.load ( 'https://foobar.eu/newton/cgi-bin/cognos.cgi') br.create_webview () br.show () # br.load ( "https: // foobar.eu/newton/cgi-bin/cognos.cgi?b_action=xts.run&m=portal/cc.

Parsing JSON from Google Distance Matrix API with Corona SDK -

So I'm trying to pull data from a JSON string (as seen below ). When I try to index decode by using the code below, and then duration text , I get a zero return is. I have tried to do everything and nothing seems to work. [{"Element": [{"distance": {"text": "quality": "value": "United States of America"], "original_range": ["Seattle, WA, USA"], "lines" Value ":" period ": {" text ":" 12 hours 18 minutes "," value ": 44303}," position ":" right "}]}]," position ":" right "} And here is my code: local json = need ("json") local http = need ("socket http") local myNewData1 = {} local service data 1 = Away from the function (event) Radiation = "" distance = "" local URL1 = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattl

ios - _itemFailedToPlayToEnd when playing local mp4 using UIWebView -

I am trying to play a local MP4 video using html5 video. & lt; Video id = "media" control = "true" preload = "auto" src = "xxxx.mp4" & gt; & Lt; / Video & gt; But its not the role. I get the following error _itemFailedToPlayToEnd: {kind = 1; New = 2; Older = 0; } Any suggestions for playing video in UIWebView would be appreciated. What you can do, so that you are not hosting videos on your website, on YouTube Post a video, and embed it on your website so that you copy and paste the embedded code into your HTML. Or you can: - (zero) viewDidoadload {[Super Viewedload]; NSString * embedHTML = @ "\ gt; & gt; \ & lt; style = type \" text / css \ "& gt; \ body {\ background-color: transparent; \ color : White; \} \ Try it, should do the trick

java - Comparing a string to a part of string inside an arraylist -

The title may be a little confusing or misleading, but I'm trying to compare a string: string mestring = "ABC"; and then try to compare it with every single string contained in the array list ArrayList & lt; String & gt; Array = new arreelist & lt; String & gt; (); Array.add ("The first letters of the alphabet are ABC"); Array.add ("abc"); Array.add ("alphabet"); Array.add ("nothing"); But (and I'm not sure) it seems that this is true only if both the strings do not match and not the word or phrase is inside the string. How do I add a desired string to a "phrase" which is inside ArrayList strings? To check if you're asking, you must be repeated through the values ​​array included in, and check whether they value the string you want to select (for string Searere: array) {ifArray.contains (mystring)) {// put your code here}} This method is case sensitive to overcome it, y

java - Check if string is in brackets { } but ignore "\{" and "\}" -

इस सवाल का पहले से ही एक उत्तर है: < / P> 1 उत्तर मुझे पता है अगर दिया जाना चाहिए पाठ को घुंघराले कोष्ठक से घिरा हुआ है, लेकिन जब वे "बच गए" हैं, तो उन्हें भी अनदेखा करना चाहते हैं इसलिए मैं (कुछ) से मेल नहीं करना चाहता \ {कुछ <} ... ऐसा करने का सबसे आसान तरीका क्या है? कोई नकारात्मक नज़र-पीछे का उपयोग कर सकता है, जो कि कोई बैकस्लैश पूर्ववर्ती नहीं था। लेकिन अगर बैकस्लैश एक नियमित एस्केप वर्ण है, तो \\ { एक बैकस्लैश प्लस एक ब्रेस होगा। उस मामले के लिए: पैटर्न पैटर्न = Pattern.compile ("(\\\\। | [| {{\\\\]) * \\ {" // सभी तक खुले ब्रेस + "(\\\\। | [^} \\ \\]) * "// मांगे, $ 2 +" \\} "); // ब्रेस स्ट्रिंग एस = "..."; Matcher एम = पैटर्न। योजक (एस); जबकि (m.find ()) {System.out.println (m.group (2);} पैटर्न (\\\) बैकस्लैश के बाद किसी भी चार या या [^ {\\\\] में से कोई भी नहीं: '{' या बैकस्लैश)

mysql - Generate numbers in range -- SQL -

I have to generate a random value in a range with a case statement. For example, we have the table of products as follows: Products TV Fridge Laptop Now for testing me COSTPRICE, SALEPRICE requires the purpose of generating Since the price of the products is different from each other, so I need to generate values ​​in a category. For example, if the price is a TV, then generate value between 1000 to 1100 or if the price is a refrigerator, then generate value between 800-1000 and so on. How can I view SQL Server using any idea / function? I know about the function RAND (), but I can not generate range values ​​with this Please help at least push yourself to find a solution Thanks! So you're basically looking for something like this: Product = 'TV' then (1000 + converter (INT, (101) * RAND ()) When the product = 'refrigerator' then select (800 + convert (INT, (201) * RAND ())) case From Manufacturer B> 0 and end When it comes to random n

web api - Run a method after some controllers Web API -

I know that there is a web API filter which will run some arguments before running the controller (if I decorate the controller ) Also allow me to plug request / feedback pipeline on both request and response as delegated operators. My question is something that is running a custom logic after I run a controller, along with the method decoration indicates which controls are affected. something [Actiteepiost] [Vilarnaftrkantrolrhashrn] Add public Domenkkodelinkkkodlink (Domenkkodelinkkkodlink New Itam) {var Rtrn = Mapper. Map & lt; Domain.Codelink.CodeLink & gt; (Repo.Insert (Mapper map & lt; EF.Codelink.CodeLink> (newItem)); Return (RTNN); } Thanks! You must use the same Akshnfiltr but OnActionExecuting (before the controller is) instead of override you OnActionExecuted public class PostControllerAttrbute: ActionFilterAttribute {public override void OnActionExecuted HttpActionExecutedContext actionExecutedContext) {// stuff ... base.OnActionExec

jquery - Up and down keys to loop through array -

I have an array of colors, using the up and down arrow keys, I would like to loop through the array and the current I will add the ARA value as the square of a div. var color = ["red", "green", "blue"]; I would like to use jQuery .addClass to store the current value as a variable and add an existing class in a div. As a jQuery newcomer, any help here would be great! 1 reminder % var color = ["red", "green", "blue"], i = 0, n = colors.length; $ (Document) .Kiddown (function (e) {var k = ew; if (k == 38 || k == 40) {i = (k == 38? ++ i: - i) and lieutenant ; 0? N-1: I% n; $ ('# test'). At ('class', color [i]);}}); Controlling the internal array with another interesting ( less complex ) method without using current index count Always [0] get the index key always by pushing the last key in position (or inverted, pre-final) : var color = ["red", "green",

c++ - divide information into bits bitset library -

I am trying to get information from a file. The contents of the file are unknown. I am opening the file using a fstream object and storing every single data in an unsigned char. However, the size of one character is 8 bits. But I need to get the data in 16 bit segments. I am using the bitset library to do this. while (file> gt; test2) {file> & Gt; Test2; Bitset's & lt; 16 & gt; Foo (test2); The court's & lt; & Lt; Foo & lt; & Lt; Endl; } First of all, I give information about 8 bits using characters, if I use any other data type then the program does not output anything, is there any other library Which divides the data type into bits?

Sql select count to python code -

After I want to know, in a possible way to perform this selection in Python, I know the clinical I want to be more reputed, but it can be in 3 different areas, I know that it works selectively, but I do not know how to put it in Python, or if there is anyone else in Python To do. count (*) from (different imp_diagnostica_99, imp_diagnostica_100, imp_diagnostica_101 selected expmedico_expedienteconsultainicial) distinctified I process that doctors sent more want to recive. model.py class AutorizacionImagenologia (models.Model): imagenologia_fecha_solicitud_1 = models.DateField (auto_now = true) created_at = models.DateTimeField (auto_now_add = true) = model Updated_at DateField (auto_now = true) imagenologia_fecha_emision = model.defilled (auto_now = true, null = true, blank = true) tipo_plan = m odels.CharField (MAX_LENGTH = 60; null = true, empty = true) empresa_empleadora = models.CharField (MAX_LENGTH = 100, null = true, blank = true) imagenologia_hora_de_solicitud_2

Unable to read mails using Mutt client for gmail -

This may be a little subject but I need a text based mail client. I have configured the mail client for the mail account described in the link for I am able to send mail, but I am not able to receive mail or open my inbox Will any body please tell me the mistake I am making? Try the link below to get you remote Gmail folders Must be set

jQuery How to call an event function without the event being triggered -

I have a jQuery function as shown below, whether I want to call the function within my javascript regardless of triggering Whether or not it's an event. In other words, there are situations where I just want to call the function below. Is this possible? $ (document) .on ('change', '.jq__pAC', function (event) {// some job code}); // the ending. The best way to do this is as follows: P> function myFunction (event) {// code stuff here} ... $ (document) .on ('change', '.jq_pAc', myfunction); In this way, you can call your function at your discretion, and it will also be called by the change event.

regex - Checking number patterns in Python -

How can I check in Python that a number is created in this method: 1. 57.00057 2. 611.000000611 3. 38 9.00003890000389 is a number, then a certain number of zero after dot and then number again after this dot (as in example 3 in) Could. DIF Test (number): Return boole (re-match (r '^ (\, \ "\"); D +). (0 + 1) + $ ', number))

python - flask sqlalchemy migrate for a single postgres schema? -

itemprop = "text"> I'm just trying to perform database schema control in postgres for a schema, let's say it mySchema. Ideally I can use api.create_model migrate.versioning order below the package. The problem is that I want to do this only for mySchema (Postgrad default, not for public schema). How can I do this? Here's the line that I want to make changes: config import SQLALCHEMY_DATABASE_URI, migrate.versioning import API from SQLALCHEMY_MIGRATE_REPO #How I change so that the model is created From this' only 'mySchema' creates models for tables? Old_model = api.create_model (SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO) I use these current / old models to create differences between the new models and the differences between Will have to save. Version: Note: I do not think that because I receive an error on some tables which are JSON or tsvector column type I can create a model for the whole database <. P>

javascript - Make div non-transparent to cover original div -

I have a div "whitebox", which is basically a div that covers my original "excitement" div should do. It gets smooth and looks well, yet it does not cover the original div, but seems transparent, so I can still see my original device. But I want to cover it completely. Apparently 'ambiguity' does not fix it. & lt; Div id = "stimuli" & gt; Just press and start ... & lt; / Div & gt; $ ("# Whitebox") fadein ("fast") delay (500). FadeOut ("fast") .. CSS: #whitebox {background: # fc3a54; Opacity: 1; Status: Completed; Height: 80%; Width: 70%; } Is there a simple trick to correct the code or transparent issue given above?

javascript - What is causing this css border? -

On my page, spec.itslimetime.net, actually has odd silver limit, when only applying directly under ANN menus The viewport is less than 500 pixels. This should be related to Javascript because you see only when scrolling down the page slightly. I have discovered the high and the low by using Dev tools. Can anyone know me from where he is coming from? Thank you. Its of: .header-3-startup-antiflicker {Border bottom: 1px # bdc3c7 solid; } which is inserted at the bottom of your page. EDIT: But Jonathan Lonawski is right, it really is not really for stack overflow.

c# - FileHelpers Library - AfterReadRecord exceptions not being caught -

I am using version 2.9.9 from FileHelpers library, NuGet. When I try to use the AfterReadRecord event I'm running into a problem When I remove an exception from this event, the exception is not taken by the library. It is my understanding that the Library will catch exceptions from the AfterReadRecord event and they will be creating ErrorInfo collections. Instead, in the VS 2013, a "exception was rejected by the user code" Warning "An exception to the 'System.Exception' type was in FileHelpersTest.exe but in the user code" " No additional information: field 1 is invalid ". What am I doing wrong? Thanks in advance! The code looks like this: [DelimitedRecord ("," ) Public class MyClass {public string field 1; public string field 2; public string field 3;} class program {static zero main (string [] arg) {FileHelperEngine engine = new FileHelper engine & lt; MyClass & gt; (); Engine.AfterReadRecord + = New FileHe

windows - c++ how to read and write within a file -

I want to create a text based RPG game, but to run a problem, enough new "C" Know, some concepts, but still learning, I want to know; How do I open a file and edit values ​​in it? It is said that there is a file named after my health, for health and set to 100. I know that you can only reduce the charity from the loss you have done, but I do not know how I handle health and how I am doing it, while my program goes away. Meaning This is the most I: ifstream objectFile ("health.txt"); String health; Double no. Cout & lt; & Lt; "Welcome" & lt; & Lt; Endl; Objectfile & gt; & Gt; Health & gt; & Gt; Noah; Cout & lt; & Lt; Health & lt; & Lt; '' & Lt; & Lt; Noah-15; no = health number so far does all my programs, reads the file, and reduces 15 to 100, because damages the monster but how do I "accept it "And want to subtract it from 15? Then save it back, so it's 85, and the n

.net - Cast Class Type at Runtime in VB.NET -

I have seen a lot of answers, and in fact I'm trying to achieve what I'm looking forward to. I have a database with hundreds of views I use the dipper to ask the result of a scene. I present the results in the grid. This is a read-only operation. Visual results are already mapped to classes. Here is a specific query: queryResults = conn.Query (of vw_EmployeeProductDetails) (queryString, Nothing) Right now, I have a different query each View (each in their own function) I like to pass in a function in queryString and "ViewType" to get the results. View Type = Due ViewType = GetType (vw_EmployeeProductDetails) SelectView (queryString, ViewType) in the usual query function: ... queryResults = conn.Query (ViewType) (queryString , Nothing) However, it will not be compiled and I am not defining the error "type 'view-type." I have tried to make an example of a specific class, then going through that type. I have many codes in the catalyst.

c# - Include statement : c++ -

ठीक है, मुझे कोड की कुछ पंक्ति मिली #include "stdafx.h" #include "conio.h" #include "string" #include "windows.h" पर्यावरण दृश्य स्टूडियो 8 है और मैं ओओपी सीख रहा हूं .. जो मैं जानता हूं अभी तक है (मेरी पिछली पृष्ठभूमि से अब तक सीखना है) # में शामिल है & lt; iostream & gt; का उपयोग करके एक फ़ाइल iostream .h मानक में लाइब्रेरी शामिल है #include "myHeader.h" का उपयोग करके एक फ़ाइल myHeader.h को निर्देशिका में खोजेगा इस पर आधारित, मैं बहुत उलझन में हूँ, मेरे सवाल हैं < Li> क्यों प्रत्येक हेडर के साथ क्यूउट्स का उपयोग किया जाता है? मेरा मानना ​​है कि स्थानीय डायरेक्टरी पर मौजूद क्यूउट हेडर से संबंधित होते हैं, जहां कोड निष्पादित होता है .. इन फाइलों में मानक लिब में फ़ोल्डर शामिल है? जहां मुझे क्यूटेज़ का उपयोग करना चाहिए और जहां नहीं? मैं कुछ फाइलों के साथ। एच एक्सटेंशन देख सकता हूं, और इसे दूसरों के साथ नहीं देख सकता ... ऐसा क्यों ?? इन बेवकूफ सवालों को उठाने के लिए धन्यवाद .. लेकिन भ्रमि

django - 'ForeignRelatedObjectsDescriptor' object has no attribute 'all' -

I am taking on Django 1.7 your web application and I'm probably very curious mistake Perhaps one of you know that this happens. class products (models.Model): title = model. Kharefild (max_link = 100) slug = model Slufffield () Material = Model. TextField () Category Gallery (models.Model): Product = Model. Foreign (product, related_name = "picture") original = model. Image Field () class MyView (DetailView): Model = product def get_context_data (self, ** kwargs): ... # # # # # # # # # "galleries"] = Utpadkimajkol () 'foreign-related Object descriptor 'does not contain' all 'response in the object. ) Try: context [ " galleries "] = Self.object.images.all () If you want to call on a specific example of your product model, which your object Should be there.

PHP Should I use CONSTANTS or VARIABLES -

I would like to know how anyone should use continuously and when 1 should use a variable in PHP define ("haha", "very bad"); $ Haha = "very bad"; First I want to propose to not follow the advice using the constants for the configuration. This will make your code difficult to test against the test environment, plus it is very unconventional to implement the code where you have to edit the code for app configuration. You will use most of the time, it raises the question that when you should use constants, those points should come to my mind: Use constants . Use the constellation to express the meaning for the defined set of different values, where value is of no value as it does not really matter what the value of these constants will be: STATE_NEW , STATE_old , STATE_DELETED

javascript - prototypejs altering jquery method -

On my page here: redacted I get the following error : UnkeyType type error: The 'hidden' property of the tap can not be read, and the page leaving that element just keeps covering the top of the page (big white image) When I I delete prototype.js, header below the header, my work knowledge of javascript is very basic, so i See In what the problem is. What would be the easiest solution to this problem, suppose I need both JS files? Thank you: Edited: redacted URL - The solution used: var $ j = jQuery.noConflict (); All instances of $$ with jQuery scripts and $ j have been much appreciated instead. Before your .ready () function, type JQuery .noConflict (); Read more

java - Storing 2D array points in to a variable -

Sorry if the top title is not informative or I do not know how I want to see it. I have a 2D array in Java Personal Zebtons [] [] JbGrid = New Payton [30] [21]; And what I want to do is hold 10 values ​​in the first array and 11th value in the second array and tell them the story in the same variable. If this is not possible, then two variables should work. For example, you can see that I have stored numbers from the array to MOUSE_X and MOUSE_Y, but this is easy because it will update the value on click. for (int i = 0; i <+ 30; i ++) {for (int j = 0; j & lt; 21; j ++) {if (E .getSource () == JB Grid [I] [J]) {mouse_x = J; MOUSE_Y = i; // jPpanelMain.revalidate (); // jPpanelMain.repaint (); RunTimer (); ReColour (); System.out.println ("Mouse X:" + MOUSE_X + "Mouse Y:" + MOUSE_Y); }}} How can I store prices in a variable from 2D array. If you are searching only for classes that will store X and Y values ​​that you < Code> point

c# - What is Accessibility Capping? -

Image
I am reading C # 5.0 briefly , and I think the concept access capping < / Strong> is as follows (extracting the original from the book): < / P> Can anyone explain this concept different definition with another example? With other words, what is its usefulness? This book is saying because no access has been declared for category C, it is Internal level is given as the default. This means that the FU method of C has been marked as public , it will be captured on the Internal because class level What's the reason? The reason for this is that it does not make sense to make the class member more accessible than the class, because no one will see anything because of the level of access to the member because the class is not Will be available The last thing is saying that the property can still be useful in marking the property as public , because if you later class C public Then Fu will also be public (otherwise you will have to change the fu wi

WordPress - Targetting a specific CSS selector on a specific page -

is a CSS selector that I want to target, but only on a specific page Normally I will write something like this: .page-id-70 a {text-decoration: underline; } But this selector is in a different form, it is in internal brackets: [class * = "span"] {margin left: 82px ; } Is there any way to target the selector on the same page ID? The best way to do this is to use the developer tool (Chrome is usually best ), And right-click and select 'Copy CSS Path'. However, if this exact path is also on other pages, it may be best to include the category that you want to modify within the page. For example, in WordPress editing, simply click & lt; Style & gt; .myClass {styles here} & lt; / Style & gt; at the top of the edit box. For example, go to the page that you want to edit, make sure you are in text or HTML view, not in visual view. Then paste at the bottom of the following: & lt; Style & gt; # Boxed waft & gt; Div: nth

rcp - Changing Jar into plugins. -

I have an existing RCP application and another Java application has been applied using jar with Java-Gazer option is. I need to convert the jar to the plugin and there is a method to call it. Can I finish it It depends on which RCP platform do you have eclipse or netbeans? And what is your jar? Is this a GUI application? You can check your learning trail for Netbeans. One of the articles is about porting the swing-based application for the platform. You can see the Vogela tutorial for Eclipse, however I have not seen that broad form on this topic. If you have only a bunch of jar functions (at least in netbins) you can wrap the normal jar in a neatbene module in the IDE and publish some packages or it can be used as a service provider Can register in IMHO is better to convert it into eclipse in the OSGI package.

android - Get user_like and can_like for a post on facebook -

I am trying to get user_like and can_like for facebook_f using Facebook SDK on Android. When I am setting the field to limit the amount of data like below, then I am unable to get those standards. prefix fieldsBundle.putString ("Fields", "Like. Limit (4) .smuri (1), comments.limit (4) .surf (1)"); However, when I do not specify a field, I get user_like and can_like within the object I want to select, for some entries it is necessary to restrict the data so that my application does not exceed 1000 comments data . Anyone having this problem? Is there a choice to get the number of comments for a post and a can_like status at the same time? (Keeping in mind that I do not want all comments, such as data, once) As far as I know that the can_like field is available only through the like_info object of the stream FQL table, and through the graph API No. You choose it from a certain post via like_info from where post_ id = "{post_id}"

image - Card flip animation in FireMonkey Mobile -

I have to realize the flip animation effect by using Mbarcado XE6 for application and Android for DevMail FireMonkey mobile application < / P> I have established the effect in Delphi Embarcadero XE6: Is it possible that the source code from Delphi to FireMonkey Mobile can be changed ? Yes, it is possible but nothing that I know you have to do it manually . Look at fire extinguishers And how does this look ..

C#: Send message to another socket from current active socket -

The server listener starts accepting connections from all IPs: While (true) {commandmanager cm = new commandmanager (S. accept ()); } Public Commands Manager (Socket Client Socket) {this.socket = clientSocket; This.networkStream = New NetworkStream (this.socket); This.bwReceiver = new backgroundwork (); This.bwReceiver.DoWork + = New DoWorkEventHandler (StartReceive); This.bwReceiver.RunWorkerAsync (); } Private Wide Start Receive (Object Sender, Duplicate Event ARGS E) {while (this.socket.connected) {string s = dataStr.Substring (10); Command c = JsonConvert.DeserializeObject & lt; Command & gt; (s); Command hindler Handley Commands (C, Client IP, this .cat); This.networkStream.Flush (); }} command handler depends on the command, and when the command is received (from Corona SDK app) everything works great Problems occur When I need to send back the message after receiving a message. First of all, if a player logs then I save the communication information in the co

python 2.7 - How can I use word_tokenize in nltk and keep the spaces? -

takes the word_tokenize function in nltk, as far as I understand, a string sentence and return Represents a list of all your words: & gt; & Gt; & Gt; Import from nltk word_tokenize, wordpunct_tokenize & gt; & Gt; & Gt; S = ("Good muffins cost $ 3.88 in New York, please buy me two of them. \ N \ nThank you. \ N" "> Gt; & Gt; & Gt; Word_tokenize ('good', 'muffin', 'cost', '$', '3.88', 'in', 'new', 'york', 'please', 'buy', 'm' It is important to keep a blank space for further calculations, but 'so I would like to return it to it like the word_tokenize : [' good ' '', '', '' '', '', '', '', '', '', '' '', '' '' '', '' '' '', '' '' '' ' 'York', '', '

Accessing other tabs/windows in a browser via JavaScript -

I have a JavaScript application that opens in a tab if I click on a certain link on my page. If I click on the link again, then I have to check whether the tab is fully opened - if so, then go to that tab and do something, otherwise open a new tab. Unfortunately > var myApp = window.open ("http://www.mypage.com/myapp.html", "My App"); If (myApp) {{code> ) will not help me because I can not trust that URL, due to the fact that the URL will be different on every environment that I am using. How can I get it if I can not trust the URL? The only thing I can see is the name of the tab - this pseudonym will be the same. How can I access the browser's tab array? Thank you! As long as I understand, you can use the browser's tab array (certainly via JavaScript Not from). This will break the security on the client side. You should think about each browser tab as if it is a browser example of yourself - unaware of any other tab.

formatted XML from dynamic php code -

मैं php xml में नया हूँ मुझे php कोड से नीचे $ query = mysql_query ("चुनें यू.नाव, यू.फ़ोन, एम.मेल, एम.मोबाइल से यूजर यू, माइकर्स एम WHERE m.usr_id = u आईडी "); ($ पंक्ति [] = mysql_fetch_assoc ($ query)) foreach (array_filter ($ पंक्ति) $ कुंजी = $ मान) {$ आउटपुट [$ value ['phone']] ['कार्ड'] [] = array ( 'ईमेल' = $ मान ['ईमेल'], 'मोबाइल' = $ मान ['मोबाइल'], 'नाम' = $ मान ['नाम']);} कोई भी मुझे बताएगा कि मैं इसे कैसे प्राप्त कर सकता हूं, मैं XML को नीचे प्रारूप में कैसे प्राप्त करूं? & lt; phone & gt; & LT; कार्ड & gt; & LT; ईमेल & gt; .. & lt; / ईमेल & gt; & LT; मोबाइल & gt; .. & lt; / मोबाइल & gt; & LT; नाम & gt; .. & lt; / नाम & gt; & Lt; / कार्ड & gt; & LT; कार्ड & gt; & LT; ईमेल & gt; .. & lt; / ईमेल & gt; & LT; मोबाइल & gt; .. & lt; / मोबाइल & gt; & LT; नाम & gt; .. & lt;