Posts

Showing posts from August, 2011

c# - DataContractSerializer on augmented list type -

I'm having trouble using DataContract s, where list wrapper with additional data Enhanced. The important part of XML is pasted here with the full link of XSD and document at the end of this post. & lt; Criteria & gt; & Lt; Kasauti & gt; & Lt; Name & gt; Common Name & lt; / Name & gt; & Lt; Price & gt; J350 & lt; / Pricing & gt; & Lt; Matches & gt; 3 & lt; / Matches & gt; & Lt; / Criterion & gt; & Lt; Kasauti & gt; & Lt; Name & gt; Designation & lt; / Name & gt; & Lt; Price & gt; J350 & lt; / Pricing & gt; & Lt; Matches & gt; 8 & lt; / Matches & gt; & Lt; / Criterion & gt; & Lt; Matches & gt; 2 & lt; / Matches & gt; & Lt ;! - Shows only results that match all criteria - & gt; & Lt; / Criteria & gt; I am now at this point: [Collection data contract (namespace = "The namespace")) Public Partial ...

C# Robotics platform (i.e. "human sized robot") -

Edit: As an enrollment to reopen, this is definitely the FAQ section Belongs to " Programming Professionals ". I want to do a robotics program in C #. To do this, this question is about the existing kit / components. Where do I give an indication to start from: For example: Is Robotics Studios a good platform for this project? This will be a hobby project where I program the robot to run and maintain around my house all around (such as taking a glass of water). I want to keep my efforts in object recognition and control movement (driving, weapon, etc.). I do not want to spend time in building robots. It's not in that robotics project, it's a software project. Are there any human-sized robots with any SADK (or whatever I can do the P / Applicant)? It does not need to be completely adult until she can reach the luggage at the table and on the same. It also does not look like a human. Very large robots are expensive, powerful (and power-hungry), he...

Installing Git and Mercurial on the same machine -

I have mercurial installed on my machine, which I used to work for a cooperation project. Now I am starting another project and want to try a guitar. Should I take care when installing both Mercurial and GIT on the same client. Thanx in advance. No, nothing just install GIT both customers (and ultimately Server) can stay happy in the same machine.

wpf - How make the angled (pointed) thumb for a slider control -

मानक wpf स्लाइडर नियंत्रण में आप टिक्स्स्प्लेसमेंट और टिक्शसफक्वेंसी को निर्दिष्ट करते हैं और आपको कोण / इंगित अंगूठे के साथ टिकर मिलता है जो इंगित करता है टिक पट्टी की दिशा में। मेरे पास मेरी अपनी स्लाइडर शैली है (जो कि कंट्रोल टेम्पलेट है) और मैं अंगूठे को इस तरह की ओर इशारा करना चाहता हूं। ऐसा करने का सबसे आसान तरीका क्या है? मैंने WPF स्लाइडर के लिए ब्लेंड में कंट्रोल टेम्पलेट पर एक नज़र डाला और यह नहीं स्पष्ट किया कि यह कैसे किया गया था। कोई भी नियंत्रण टेम्पलेट में टॉस करने का एक आसान तरीका जानता है? धन्यवाद मुझे लगता है कि आपके पास पहले से ही डिफ़ॉल्ट शैली और नियंत्रण टेम्पलेट हैं, यदि आप उनसे डाउनलोड नहीं कर सकते हैं संबद्ध थीम के लिए लिंक पर क्लिक करें, फिर नमूना डाउनलोड करें पर क्लिक करें। एयरो थीम के साथ, इंगित अंगूठे को "वर्टिकलस्लाइडर लेफ्ट टिम्बास्ट स्टाइल" और "क्षैतिज स्लाइडरडाउनटौमस्टाइल" की कुंजी के साथ शैलियों का उपयोग करके परिभाषित किया जाता है, ताकि आप उन लोगों के लिए खोज कर सकें शर्तें। इन शैलियों में ControlTemplate कई पथ...

php - json_decode can't decode JSON string -

I have a string json_decode () after changing this string, there is a jizip base 64 JSON string, not decoding it can. I think this is an encoding problem, but it is unable to resolve I am running PHP 5.2 which does not support json_last_error (). Do anyone know what is happening here? & lt;? php $ gzipped_base64 = "7b0HYBxJliUmL23Ke39K9UrX4HShCIBgEyTYkEAQ7MGIzeaS7B1pRyMpqyqBymVWZV1mFkDM7Z28995777333nvvvfe6O51OJ / FF / z9cZmQBbPbOStrJniGAqsgfP358Hz8ifvGv8dGv8frXaH + N7NeY / hpvf40vf43LXyP / Nepf4 / zXKH + N6te4ou8e0f9f0e / 4tqHff8mv8f8A"; $ Json = gzinflate (base64_decode ($ gzipped_base64)); Echo $ json; // print: {"stack overflow": "rocks"} $ array = jason_decode ($ json, true); Echo var_dump ($ array); // print: tap? & Gt; The input is expected to be UTF-8 encoded but your data seems encoded UTF-16: var_export ($ json); Output is: '' '' \ "" 0 "" "" "" 0 "...

How to detect a webpage HAS been loaded in java -

I am using the following code to display a webpage: string DownloadURL = "http?: //in.finance.yahoo.com/echarts%3ESEI # symbol =% 5Ensei; limit = 1 day; comparison =; indicator = quantity; ChartType = area, crosshairs = at; ohlcvalues = 0; logscale off =; source =, "; Java.awt.Desktop myNewBrowserDesktop = java.awt.Desktop.getDesktop (); Java.net.URI myNewLocation = new java.net.URI (downloadURL); MyNewBrowserDesktop.browse (myNewLocation); Now, I want to know when the page is completely full. (Wait dialog is displayed). How do I go about doing this? Thanks in advance I'm afraid you can not do it once you browse () If all goes well, then the operating system takes care of launching the URI in the default browser and there is nothing back in your application (such as handles), then it is not possible.

how to extract animation from flash to image files and a xml describing the motion? -

I want to create animations in Flash, and then export a phantom sheet with sprites and an XML (or other format) Want to know how to "cut" and to move the sprites? I do not know where to begin, use some library to read SDF in C # or Java? Try exporting using SS3 inside SSF? I know there are other people (castle crusher, super meat boy) than this type of equipment. Just had a great answer on this. Actually, check out. It can make a phantom sheet from your flash animation or it can export movement information as images and XML.

jquery - div inside iframe hiding -

I'm playing with jquery. I have loaded the Wikipedia page in an iframe. It was fun and good. Now, I want to remove an element from the wiki page loaded inside the iframe (or can it reload it in an iframe without that element?). For example, say that I want to remove the 'left-navigation' element or some similarity. Is this possible? If so, how can I do it? You can not do this except for cross-domain policy if you load page from another domain You can not "mess" to speak iframes are obviously, it does not apply to iframes to link to your own domain pages. In this article, some solutions and hacks have been discussed on this issue:

java - JSF Datatable with two columns -

Image
मेरे पास इस तरह एक JSF डेटासेट है: & lt; h: form id = "productsBox" & gt; & Lt; h: डेटाटेबल var = "उत्पाद" मान = "# {categoriesBan.category.products}" id = "productsTable" & gt; & Lt; h: स्तंभ आईडी = "उत्पाद" & gt; & Lt; img id = "img" src = "सी: /upload/Jellyfish_231834557726756606.jpg" / & gt; & Lt; h: आउटपुट टेक्स्ट id = "name" value = "# {product.name}" / & gt; & Lt; h: आउटपुट टेक्स्ट id = "मूल्य" मान = "# {product.price}" / & gt; & Lt; h: कमांड बटन आइकन = "addToCart" मान = "कार्ट में जोड़ें" action = "# {shoppingCanBean.addProduct (product)}" & gt; & Lt; / h: CommandButton & gt; & Lt; / h: स्तंभ & gt; & Lt; / h: datatable & gt; & Lt; / h: datatable & gt; & Lt; / h: प्रपत्र & gt; मुझे यह पता नहीं है कि इस तालिका को 4 पंक्तियों और 2 कॉलम के ...

javascript - Applying a style to and inserting a line break after the first word in a link -

I have been asked to recreate an HTML site in WordPress and all I have done is that one Manny has done in addition to the bar. See the image on this: In short, I want a method of styling the first word of an element differently and insert line break after its first word. I'm sure this is a quick jquery hack, but it's not enough info about JQ to be with your own. Here's the catch: A drop-down menu appears with those small arrows, I have a dropdown function, but to ensure that whatever solution applies on the main menu, with dropdowns ( They leave the ul list within the LI item). Any help would be appreciated. Without an HTML example of your menu, it is difficult to give you a specific answer. But you can use some jQuery as the following, this will allow you to add the word to the first word, and all else it is .split () in the html , Will give you an array. Wrap the first item into the span allowing the style, then uses jQuery .each () to add the loop ba...

ruby on rails - conditional statements -

I want to do a customized search through a method in my model: One of the search conditions looks like this: left = param [: left] [: left_id] right = params [: right] [: right_id] status = give_status (left, right) ou & lt; & Lt; "Status_ID_number = # {status}" Paramozes come from two drop down menus. My problem is with setting the value for the condition if I do something like this so that it sets the value correctly from the left parameter: def self.give_status (left, Right) Return end date I would like to set it as below, where the left and right variables are compared and then a fixed return value is specified based on the conditions. Return to Code 2 below, even if I set the left and right set to 1. def self.give_status (left, right) if left == 1 and right == 1 return 1 and return 2 end end The problem is that your param return string def self.give_status (left , Right) if left.to_i == 1 and right.to_i == 1 1 and 2 end short form...

Workflow design advice for ASP.Net web application? -

My team has been tasked with designing a workflow driven web application. I need some advice about the design Workflow should be dynamic. Meaning, users can define workflow through some interface and implement those workflows in a given scenario (the definitions will remain in SQL 2008 database) scenarios are defined by business and will never change. Therefore there are only 2 types in scenarios, a workflow can be defined. Workflow is not linear any kind of state will run workflow. The state will also be dynamic, but will only exist in one workflow. I see examples of workflow and state machines and my head is spinning. I'm not sure whether I develop the O Lewer Workflow Foundation or some of the things that we develop. I have seen and think that this can work, but I am not sure that the complete implementation of the state will work for us. You can use it WF4 I have never used the objectflow, Can not comment in, but it is in a memory solution and with the ASP.NET Web ...

c - Is open thread safe? -

Is it OK if two threads are open at the same time ()? How will I get an answer to this question? Assume that calls are working on different files, and their flags can be O_RDONLY , O_WRONLY , or both. Since you notice that they are separate files, then there is no problem. It is no different that two separate processes open two separate files. Edit: It would be advisable to mention the cow as a comment under the comment, it was not always the case. It depends on whether the libc you are using, the thread is secured in relation to the modern avatar open () calls.

php - Getting online friends using Jabber (XMPP) -

I am facing a problem communicating with the server: [ Request] & lt; Stream: stream = "chat.facebook.com" for XMLName: stream = "http://etherx.jabber.org/streams" xmlns = "jabber: client" version = "1.0" & gt; [Feedback] [Feedback] & lt; Challenge xmlns = "vase: ietf: param: xml: ns: xmpp-sasl" & gt; [Deleted] & lt; / Challenge & gt; [Request] & lt; Reaction xmlns = "karash: ietf: params: xml: ns: xmpp-sasl" & gt; [Deleted] & lt; / Reaction & gt; [Feedback] & lt; Success xmlns = "vase: ietf: param: xml: ns: xmpp-sasl" /> [Feedback] & Lt; Session xmlns = "kalash: ietf: params: xml: ns: xmpp-session" /> & Lt; / Stream: Feature & gt; [Request] & lt; Iq type = "set" id = "1" & gt; Bind xmlns = "vase: ietf: params: xml: ns: xmpp-bind" /> & Lt; / Iq & gt; [Feedback] & lt; Iq id = "1...

android - Best way to perform an action periodically [while an app is running] - Handler? -

I am trying to take any action from time to time I say, sometimes 3 seconds after a class one I want to create a new instance. Would it be best to implement it using handler or thread? Is there an easy way, the way I can try? I'm not really good at using thread - I want to learn, but it is more important that I work before worrying about good programming practices. New thread () {Public Zero Run ()} / / ensures that the player still has 3 live (game == incorrect) {uiCallback.sendEmptyMessage (0); Try {Thread.Sleep (2000); // Wait two seconds before pulling next flower} Grip (Interrupted ejection) {// Tudo auto-generated catch block e.printStackTrace (); } // sleep for 2 seconds}}}. Start (); I am doing something similar in my Android app; I update some data in my interface every 10 seconds. There are several ways to do this, but I chose to use a handler because it is very easy to implement: thread timer = new thread () {public zero Run () {For (;;) {// Accessories...

unicode - Encode (and redirect) to a URL that has special characters in Java -

मेरे पास इस तरह स्ट्रिंग ऑब्जेक्ट में यूआरएल है: 't-think- तो / यूआरएल में यूनिकोड वर्ण शामिल हो सकते हैं या हो सकते हैं जिन्हें इनकोड करना चाहिए। उदाहरण के लिए, ऊपर दिए गए लिंक को इसके लिए बदल दिया जाना चाहिए: इससे पहले कि मैं इसे रीडायरेक्ट करता हूं। बाकी सभी यूआरएल संरचना को बरकरार रखते हुए मैं कैसे विशेष रूप से सभी विशेष वर्णों (जैसे कि यूनिकोड) से बच सकता हूं? क्या वहां कुछ ऐसा है जो पहले से ही ऐसा कर सकता है या मुझे अपना रोल करने की आवश्यकता है? संपादित करें: मुश्किल भाग यह है कि मुझे केवल अमान्य वर्णों से बचने की ज़रूरत है, जबकि शेष यूआरएल को अछूता है (उदा। Http: // http: // रहना चाहिए और इसे बचाना नहीं चाहिए)। URLEncoder, जहाँ तक मैं बता सकता हूँ, मुझे यह करने की अनुमति नहीं देता।

PostgreSQL, Rails + Heroku, Column must appear in "group by" -

I am receiving this error when I put my app on Heroes: GET started "/ archive / transecact / search? Utf 8 =% e 2% 9c% 93 and search% 5Btagged_with% 5D = village and amp = command = search" for 98.201.5 9.6 2011-03-27 17 : 02: 12 -0700 ActionView :: Template :: Error (PGError: Error: The column should appear in the "photos.custom_title" GROUP BY section or should be used in an aggregate job: SELECT "photos". * "Photos" "Tag" from INNER "" "" "id" = "tagging" "." "" "" Name "IN ('g And ') "(" photo ")" tag "" tag_id ".collection_id = 1) GROUP BY photos.id LIMIT 20 OFFSET 0): 17: 18: - @bodyclass =' ​​dark '1: #search_view .photo_tiles 20: = render: partial = & gt; collection / photo / alt_tiles',: archive = & gt; @photo :: as in =>: photo app / visualization / archive / search.html .humble : ...

python - Opening file - Performing a function -

I was thinking that someone could instruct me to give a function to a file ... it's a little hard to explain So, I will try my best. >> Suppose I have an application (using wxPython) and we say that I have the file now that this file has been assigned to open with the application. Therefore, I double-click on the file and it opens the application. Now my question is, what should be written on the file, for example, open a dialogue? So we double-click on the file and it opens a dialog on the app? PS: I know that I have to first associate the program with a certain file type to double click, but it is not that most of the API's platforms simply call that assistant file, On which you clicked as an argument, therefore Your file path will be in sys.argv [1] .

linux - Building projects with Maven offline without using M2 repo but using system jars -

I need a project in the open source operating system, using Maven completely offline nix environment To mean under the dependency available in the system i.e. (probably / usr / share / + some other places?). Maven should not have any reliance on the Internet. Is there any way to achieve this? Creating M2 repos in the system is not a viable solution. The point is that the file system is readable only we can work on a temporary folder (eg / TMP), write with but maintaining a repo at a temporary location is a bad design , Isn't it? By saying this another way, to use the new package, the existing package should be used in the Maven Project system, if available. If the package is not present, then it should be installed separately (through the package manager), and should not copy it in M2 repo. Is there a known way to do this? Thanks for the help! PS: Please note that I am not asking about this option to take it offline! You can create your own "mirror" r...

security - How to continually verify authentication throughout a web application -

Then it's my base: A web application has an original homepage that allows users to register or login. When a user logs in (on an SSL connection) the credentials have been transferred securely between the client and the server being verified. How successful is the server on successful verification of credentials that an incoming connection is the same certified user and not anyone else? For a more specific example, suppose the server sends the authentication token back to the user's use when the personal data is accessed or modified wherever this token is stored (i.e.: cookies Not safe), php session (not familiar with this), or elsewhere) as soon as the user accesses his information and post (or bad GET) with the token on the server, then use that token to use that token Can be Uncne when the token is not valid. Should personal information be issued every time, so that the hearing parties can be stepped up one step and reach the old token? What are the ways to get the se...

css float - Floated elements in CSS. Why Can't I acomplish this? -

I'm trying to stop an initial element from overlapping. In other words, I want to float my initial element all the way to the right place if it is in the room, but if there is no room, then I should be able to stop the element running from left to left. This may seem misleading, so I have created a small example code: I went for hours on this, I think It is not possible to do it through the float, but again, what I have been trying to accomplish is that I have seen on many websites today OK you can try to do some things. Try adding: Overflow: Hidden; Ad-top container Also, it seems that floating is right in your example?

jquery - How to set the tab index and cursor at the end of the text -

I opened a popup using the JQuery dialogue, there is a texture and 2 buttons when it opens the textarea in this curser Some text is in the beginning of the text ... so I want at the end of the text..how can I use Jquery or Asp? And when the user clicks on the tab, he should go to the button. same question: you will get an original idea;)

java - Need help on understanding generated JNI header file -

I was going through the JNI tutorial and I came in the bottom row in the generated header file. JNIXport Jabattere JNIKolJava_Reffile_loadfile (JNINW *, job, jostring); I jbyteArray , JNIEnv , Job and jstring . It is necessary that they pass information from another program to another. But I could not understand why JNIEXPORT and JNICALL are used and these are programmed (function, structure, anomim) - I am sorry that this question is very trivial ) What is called as? Any help is appreciated. After JNIEXPORT and JNICALL are not the macros used to call and specify the linkage conference. JNI works and native method implementation. See section 12.4 For example, in my JVM (Ubuntu 32 bit), header file contains jni_md.h : #define JNIEXPORT #define JNIIMPORT #define JNICALL While Win32 jni_md.h includes: #define JNIEXPORT __declspec (dllexport) #define JNICALL __stdcall since Windows will use different calling traditions and your function will loo...

iphone - ALAssestsLibrary activates only if device option is selected in xcode -

text "itemprop =" text "> I used the frame to display the photos from the album album. But the code to use ALAssetsLibrary I found that 1) edit codesense show While doing this, only methods can be selected under this framework when the option 'device' is selected in the dropdown menu in the dropdown menu. 2) Also, when I tried to create and run the simulator, holding the array was a blank object representing the images, although the simulator had two images. 3) I am using blocks in code, which does not move while debugging. Do these two meanings that the structure is functional only when moving in the device? I just do not have a device with me, so can not check for myself. Void (^ assetEnumerator) (struct ALAsset * !, NSUInteger, BOOL *) = ^ (ALAsset * result, NSUInteger index, BOOL * closed) {if (result = zero) {NSLog ( @ "See property:% @", results); [PhotoAdded object: result]; }}; Zero (^ Asset Group Emulator) (Structure ALSSet Group *...

c# - function use cases -

I have a question about function-related cases, in which cases should I use the following? zero function (string k, string l) {if (k! = Null & amp; l! = Null) {// k and l}} zero function (string k, string l ) Take some action on {//} Do some operations on K and L. I think I am receiving nullreference. For the case of use of // k and l // I have seen a type of work: a class / Private methods when you are sure to pass non-null objects} zero function (string k, string l) {if (k == Rik B) Throw the new logic NullException ( "k is null"); If (K == blank) throw the new argument NullException ("El is empty"); I used the string to display my point, that can be any object of those objects. Please list the use cases for each function. The final cases are most useful in APIs and frameworks where the consumer API has specified error messages in debugging Required. The second example is more common in the application code where application programmers can ...

php - How to insert `>` and `(` into MySQL? -

I do not know where the problem is that I & gt; and ( in my MySQL database). I add a addslashes ($ str) , but it can still leave the quotation marks unsecured. Is there any string functions that can solve my problem? , use ... every Once you exit the string in a query, use it! ... or better, use a binded parameter with something like PDO. By the way, there is no reason why & gt; and ) will be inserted into your database which I can think of, without any meaning inside the string \ .

database - Django keep statistics up to date -

I have a Django model and I want to show some statistics about it. Like I have a field color and I want to show how many entries have their color set in "red", "green" etc. Since I have many rows in the table and many colors I do not want to calculate the sum of each figure on each reading. So I tried to come up with a second table containing the amount of calculation but now I have to keep this table synchronized with the original table. As soon as an entry is added, deleted, or modified, I have to update the statistics table. How do I do something like this? Choose count (ID) depending on your line number ... GROUP BY is usually fast. Otherwise, it may be very interesting concept for this purpose to 'listen' or use your custom signal to some events like saved / deleted models. In your case, you want to listen to the post_save and post_dateep signal. An example is: django.db.models import signal import model dff items saved from (...

Java Swing; how to show text after button is clicked -

I want 'hello world'! To show when my button is clicked, go to one next frame, but in the same window! Import javax I What am I doing in this code? import javax swing.JButton; Import javax.swing.JFrame; Import javax.swing.JPanel; Import javax.swing.JOptionPane; Public category myTest {public static zero main (string [] args) {jpn panel = new zpn (); Pocket button 1 = new pocket (); Frame.add (panel); Panel.add (Button1); Button1.addActionListener (public action action action) (ActionAgentRGET) {Joppenpenny. Shomosge Delog (blank, "Hello World")}}}); }} Try with code: Import java.awt.event.ActionEvent; Import java.awt.event.ActionListener; Import javax.swing.JButton; Import javax.swing.JFrame; Import javax.swing.JPanel; Import javax.swing.JOptionPane; Public category myTest {public static zero main (string [] args) {last JFrame frame = new JFrame (); Zpean panel = new zpn (); Pocket button 1 = new pocket (); Frame.add (panel); Panel.add (Button1); ...

c# - Refreshing the checkbox within the datagrid -

O friends, I have a problem refreshing the checkbox with the data grid. Although I click the Refresh button, all the checkboxes are clear, but the checkbox that was finally clicked is still being checked. The code I used to use is: Private Zero cmbrefresh_Click (Object Sender, EventErgus E) {ClearField (); Btncontrols (); Chkbranches.Checked = false; Gridviewholiday.Refresh (); Gridviewholiday.ClearSelection (); Chkbranches.Checked = false; For (int i = 0; i! = Gridviewholiday.Rows.Count; i ++) {gridviewholiday [0, i] .Value = null; }} You can view this link. Http: //www.asp Net / Data-Access / Tutorial / AD-A-Gridview-Column-of-Check Box-CS

asp.net - Does ParseControl do any caching? -

We use Page.ParseControl to explain the string of XML in Control. Does it use any type of caching mechanism? If not, what is the way to cache the result? Page. Load Control seems to support some types of caching. No caching is included in it. In a case of a control as a reference type, caching will not be recommended in this case. (Whenever you call the ParseControl function you want a new instance of control)

c++ - template method overrides non-template method -

I want to put a shared object (objects, objects, etc.) in one shared_ptr. So I created the base class and used share_ptr. But, how can I declare T getMember ()? In the base class, can I call objectbase.getmail? class objectbase {public: // get virtual mismatch? }; Template & lt; Typename T & gt; Class Object: Public ObjectBase {Public: Object (T X): Member (X) {} T Milllem () {Return Member; Private: Tee Member; }; You can not show how such an announcement should be made, that it can be used for all types of types Can return? it's not possible. You can see the objectbase * correct object & lt; T & gt; * and then use the getMember function. It is possible only if all T share a common base class so that you can return an indicator to it but it will put a strict restriction on T .

How to get text from textbox of MS word document using Apache POI? -

मैं एमएस वर्ड डॉक्युमेंट में टेक्स्टबॉक्स में लिखित जानकारी प्राप्त करना चाहता हूं। मैं शब्द दस्तावेज़ को पार्स करने के लिए अपाचे POI का उपयोग कर रहा हूं। वर्तमान में मैं सभी पैराग्राफ ऑब्जेक्ट्स के माध्यम से फिर से चल रहा हूं, लेकिन इस अनुच्छेद सूची में टेक्स्ट बॉक्स से जानकारी नहीं है इसलिए मुझे इस जानकारी को आउटपुट में याद है। उदाहरण मैं क्या निकालना चाहता हूं: & lt; पैरा & gt; पैराग्राफ़ सादा पाठ में & lt; / पैरा & gt; & Lt; text_box & gt; टेक्स्ट बॉक्स में कुछ जानकारी & lt; / text_box & gt; & Lt; पैरा & gt; सादा पाठ में एक और अनुच्छेद & lt; / पैरा & gt; मैं वर्तमान में क्या प्राप्त कर रहा हूं: पैराग्राफ़ में सादा पाठ सादे पाठ में एक और अनुच्छेद कोई भी जानता है कि कैसे अपाचे POI का उपयोग कर पाठ बॉक्स से जानकारी निकाली जा सकती है? यह काम मुझे, निजी शून्य printContentsOfTextBox (XWPFParagraph पैरा) {XmlObject [] textBoxObjects = paragraph.getCTP () selectPath ( "नाम स्थान w = 'घोषित http:...

selector - cocos2d 1.0 beta transition between two scenes and the program just quit? -

Hi xcode and cocos2d is new to development. I have a question about switch scenes. I have a class called "gamcein" and there is a schedule call "scheduleTarget" to add a target to every 0.3 second view. When I switch GameSversion or Manusin from Gamassin using the visual transformation method, the program left no error message. I tried to clean the memory by releasing the objects and call dealloc and OnExit. I also tried to undefine the "scheduled traffic" call but nothing helped What is my problem? Thank you I understand the problem I specify the value value to Delo . : ( I am very happy that this problem has been solved.

PHP dynamic array index name -

Do I want to assign a function to the array of an array ??? Like - [â "client_name] ???? ??? A first level value works because I can $ index = client_name; function arraying ($ index) {return $ This-> array-driver [$ index];} What is the question? How can I do this, if it is a multi-nested array? I tried the eval statement and apparently the brackets are not evaluated? Then I tried to do it. $ index = one ???? [ 0] [A customer ???] A ????; Eval (a ???? $ this-> arraytolookat $ indexâ ????); But this Just fails ?? An unexpected [- any thoughts? About the Edit Wings: I do not know how much level can be required to go to this function, so I end up Can not add only one set bracket in it is not as simple as that ^^ Edit 2: Basically - I have written a form validation tool and in the function Gives a correct post data - I wanted a simple method when you form element - it will literally return the element back to the element such as getFormData ("client_na...

linux - teamviewer-like tool for ssh? -

I want to access my home computer work through SSH, but the problem is that my home computer is a net Behind the router (which I do not have access). Since I have a CentOS installed in the computer and behind the proxy, I can not use Team Weigher (the TV has been placed on Linux with the virus, and apparently the proxy settings will not work). Does anyone have knowledge of a program that will suit my needs? Thanks, Claudius [1] only the device - I jrdesktop [] I recommend watching; Although there is not a very active project and is not conducive to connections like modem, it is stable, reliable, multiplyate and works fine. [2] Both jrdekstop and ssh, while NAT-transversal (like Hamachi) - zero configuration is called VPN; Be sure to check this one!), You can be useful with options like "connection of reverence". Once you install such VPNs between machines, you will do SSH, X, RDP, JRDSKtop, VNC and other tools you like like you would in normal LAN. If you do ...

php - facebook permission not working in iframe app -

I want to go to the next page in the IFrame based application on Facebook and I want to get permission on that page, but the permission code The next page did not work even though working in the default index page. Here is my code. This work is in the index.fp but the inappropriate page is not working $ app_id = '107919565956374'; $ Canvas_page = 'http://www.roohware.net/products/mytestapp/'; $ Auth_url = "http://www.facebook.com/dialog/oauth?client_id=" $ App_id "& amp; redirect_uri =" urlencode ($ canvas_page); $ Sign_request = $ _REQUEST ["signed_required"]; List ($ encoded_sig, $ payload) = explosion ('.', $ Sign_request, 2); $ Data = json_decode (base64_decode (str ($ payload, '-_', '+ /')), true); If (empty ($ data ["user_id"]) {echo ("& lt; script> top position. HRI = '" $ auth_url. "' '' / Script & gt;");} Else { Echo ("Welcome User:...

java Multithreading (newCachedThreadPool ), then writing result to one file? -

I tried to do it with simple threads, but I believe that using Threadpool is more effective Can I:)? Simple Thread: The public static class getLogFile implies Runnabel {Private string file; Public Zero Set filename (string namefile) {file = namefile; } Public Intona 1 (string filemanat) {connected towers (XXX, filename, XXX, XXX, XXX, XXX); // creates a file and downloads it 0; } Public Zero Run () {run1 (file); } } in main: for (x = 0; x } Connects to the program server 36 commands (using threads / soundthreads ?!) runs at the same time and either 36 merging files Can download, or maybe it can just write one file on the server and then download it? How to change this code in Threadpool? How to write data in a file from 36 threads? I can only provide you directions. To use the thread pool, see How any service exacerger works, any examples from Google will give you enough information. See as an example: 36 About writing files in your file, or writing in a f...

javascript - DataPager in ASP.NET -

First of all, I have ASP: DotPigger and I have it inside: & Lt; Asp: NextPuterPagerField ButtonType = "Button" ShowFastPagesButton = "True" ShowPublishPage Button = "False" ShowPreviousPageButton = "False" /> This button has possibly a change text, and how? The default is "First", but I need to change the language. Second, inside the datapigger, I have & asp: NumericPagerField button count = "4" /> but it is not working without JavaScript. I Can I work without javascript and how do pls? You can change the default text by changing the property.

Manipulating CSS styles of pseudo elements in Firebug -

It is possible to manipulate CSS of the proxy element : before or : Using Firebug? I know that these are specific elements that are controlled internally by browsers but firebags reach lower levels (I think) so they may also have the ability to manipulate them. You can edit a stylesheet in the CSS tab and Existing pseudo element element However, I can not find any pseudo element element in the Compute Styles panel. Probably because the styles do not apply to elements, but apply to their pseudo elements, I can not find any way to inspect pseudo elements using firebug.

machine learning - Mallet CRF SimpleTagger Performance Tuning -

For a conditional random field (CRF), a question value for anyone using the Simple Tagger class of Java Library Mallet Take that I'm already using the multi-thread option for the maximum CPU (this is the case): Where do I start, and if I need to run it then how should I try? A related question is whether stochastic is a way of doing something similar to gradient descent, which will speed up the training process? The type of training that I want to do is simple: Input: Feature 1 ... FeatureNow label labels ... Test Data: Feature 1 ... Feature N ... Output: Feature 1 ... Feature N Sequence Label ... (Where the processing is in production, I have done the data in my code.) I have a problem obtaining any CRF classifier besides almost mallet working, but I revisit one of the background again and other implementations, or an innovation. Yes, the stochastic slope lineage is usually used more quickly than the L-BFGS optimizer. I suggest that you can train by SGD or L-B...

Read ini files with Apache Ant -

Is there any way to read properties from an INI file with APK ant? I stumbled into the epileptic InEfile, but the only purpose is to edit and write INI files - not to read them. If they are not "name = value", then not with any class (I'm not sure That ant can do with the sections), you can use it. & lt; Property File = "myinifile.ini" />

asp.net mvc - RedirectToRoute with Parameters Objects -

I am in controller A and using redirect redirect to go into controller B, where I pass two object parameters But I keep these values ​​in mind, there are tap on redirection. Redirector does not allow root objects to pass ????? Only the simple scalar can exceed the values ​​and not the complex objects. Example: Public Performance Index () {SomeModel Model ... ... Redirect Reaction ("Foo", New {Prop1 = model.Prop1, Prop2 = model.Prop2, Prop3 = model} .Prop3,}); } Public Action Rachelle Fu (some model models) {// Model. Prop. 1, model.prop2 and model 3.Prop3 will be bound correctly ...} Another possibility to continue the object is to pass your datastore and only relevant IDs : Public Performance Index () {SomeModel Model = ... String ID = Repository. Save (model); Return Redirect Tiection ("Foo", New {ID = ID}); } Public Action Result Foo (String ID) {// Fetch Model from Repository: Some ViewModel Models = Repository Load (id); ...}

http - What is the code for a properly loaded page? -

Error codes are when something bad happens on a page but there is a code when it loads correctly . Which browser code loads for the page as it should? This should be the HTTP code 200 ("OK") NB: It is at the HTTPS level and its HTML There is nothing to do with it, it only tells you that the requested content is properly accessed. You can look at RFC for different HTTP codes.

Run BASH built-in commands in Python? -

I tried: Is the built command of BSH can be run with Python ? / P> subprocess.Popen (['bash', 'history'], shell = true, stdout = PIPE) subprocene. Popin ('history', shell = true, executable = "/ bin / bash", Stdout = subprocess.PIPE) os.system ('history') and its many variations I would like to turn on history or fc -ln I have finally found a solution that works. pop-up, pipe, STDOUT open_ command = 'Bash-E-C' history -R; History '' event = popon Shell_command, shell = true, stdin = PIPE, stdout = PIPE, stderr = STDOUT) output = event.communicate () Thank you all for the input.

testing - Using Test data or live data depending on application setting in .Net? -

I did this, where someone has set up two app settings; Includes a test data connection string and the second one is the live data connection string. They use the same DBML, it does not matter what real databases they point to, even when they set up a data reference, they specify the settings they want to use. I would like to implement it, but it was thinking whether a good blog post or tutorial is showing how to do it correctly, or if there is a more "out-the-box" option. Here's what I use: Friends All Connect (ByVal isDebugger Attachment Boolean) Dim Server String as a string in the form of slow dBNAME, then server = "DHSDEV10069 \ DSD" rest server = "dhs10073sql" meaning last if dBNAME = "DSDWorkPlanTracking" _connect = As "Data source =" & isDebuggerAttached; Server & amp; "; Database =" & amp; DbName & amp; "Integrated Security = True" _connect = _connect & amp; "; Appli...

How to plot a pre-binned histogram in Excel 2007, without Analysis Toolpak -

I have two columns of data in Column A. There are values ​​in column A column A of each value connected to the box ( Therefore, say 1 to 10 cans) Example: AB ------ .43 1 .29 4 .23 1 .118 ... ... Is it possible to create a histogram chart with the Analysis tool without using the pack and ideally it does not need to post this data in frequency calculation? The answer is to use a pivot chart, in this way I do not need to use Analysis Toolpac And I do not need to treat the data. Can be used as data.

javascript - regex to find url in a text -

I have to find the first URL in the text with regular expressions: For example: I love this website: http: //www.youtube.com/musicIt's fantastic or [Es] Http: //www.youtube.com/music] text you can not Do it completely with a regular expression, you may be interested in it, there is a bit more information about it, but even they look very weak. To capture which cases you will need an extra check outside of your regular expression.

Targetting Android Mobile Devices (Galaxy S) with CSS -

I am trying to target Android devices with a CSS file, but I've been unsuccessful so far. I am using the following CSS code: @ Media only screen and (max-device-width: 800px) {body {max-width: 100%; Background color: # 000; }} I am also implementing a CSS code with the following line in the PHP file: & lt; Link rel = "stylesheet" type = "text / css" href = "small.css" /> Any ideas on what could be wrong? Thanks Within PHP, you can check, and based on that A suitable style sheet is applied. And do not forget the viewport settings within a meta tag: & lt; Meta name = "viewport" content = "width = device-width; initial-scale = 1.0; maximum-scale = 1.0; user-scalable = 0;" / ";

java - Android Mediaplayer Streaming - Worked now it doesn't -

I have a strange problem. I have an MP3 stream, I try to use within an application (2.1) I am here. Before you say that streaming is not supported here, it seems. I was able to work last night using the following code: import java io.IOException; Import android App Import android Media. media Player; Importroid.os.Bundle; Expands the flow of public squared activity {/ ** is called when activity first created * / @Override Public Zero onCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); Media Player MP = new Media Player (); Try {mp.setDataSource ("http: // ipaddress: 8000 /"); } Hold (illegal illegal exception E) {// TODO self-generated blocking block e.printStackTrace (); } Hold (IllegalStateException e) {// TODO self-generated blocking block e.printStackTrace (); } Grip (IOException E) {// TODO Auto-Generated Catch Block e.printStackTrace (); } Try {Mp.prepare (); } Hold (IllegalStateException e) {// TODO self-generated blocking block e.print...

google app engine - GAE MapReduce parallelism and quotas -

Apply the minute quote on the Google App Engine Map to rediscover exactly as it applies to any non-mapping program Is the work queue used for parallelism or is the implementation of a specific type of migration parallelism? Kontact no longer exists (please file a document bug for that section!), Although the short-to-24-hour quota still applies. As @ Systempunout, the same quota applies to the MPAD as the second person - they are just normal work queues.

version control - Are there any tools for viewing a "pass/fail" history of unit tests with respect to SCM commits? -

It seems as if there is no nucleus that I'm almost sure something like this should exist . I do not know where to find it. On the other hand, there are probably technical reasons, it is impossible, and I am not seeing them. But basically, I think that if it is a special unit test, one can test a history (such as with the help of a CI server), in which the red / green position of the test in question Affects. So, I want to see a history like this for Unit Text X; I can see a history that looks like this: modification | Date | Test X Status ------------------------------------- 123 | 2011-03-20 | Unsuccessful 120 2011-03-19 | Passed 119 | 2011-03-19 | Failed 112 | 2011-03-16 | Passed 111 | 2011-03-16 | Pending Hope this makes sense: What I want to see will basically be a filtered list of the committee, only for those people who have a specific unit in question Have some effect (X). Does such a device exist ( anywhere â ??, as a standalone tool, as a component of som...

php - Url rewriting broke link to css -

I am using the following setting to retype the URL: rewrite Engine rewrite %% REQUEST_FILENAME}! -d Recovery code% {REQUEST_FILENAME}! -f rewriting rule ^ (. *) $ Index.php? Url = $ 1 [QSA, L] in index.php is parsed $ _ GET ['url'] In Examples: root / user / id / 1 / name / bobby // is the user page, id = 1, name = Bobby root / blog / post / 123 / title / welcome // The first one is the name of the page, the following parameter is the name of the page / key, "I now have the styling sheet when I come to root / Browse the links of those which are inserted inside the HTML of the page and the page is shown correctly. I browse root / index (which is similar to root / ), this page displays (with content and other content) correctly, but the link (Even the html structure is written correctly) the stylesheet is not loaded How can I fix it? Edit / P> The path to the CSS file is as follows: project / view / Css / common.css file containing thi...

java - Webservice certificate-related error -

I am trying to write a webservice client to consume a test service provided by another company; I'm not a 'certificate lover' on SSL, so I'm hoping that this is just something that I'm ignoring. I have three 'stores': a truststor, an important stove to sign messages, and a major stove for transport (as outlined in a doctor given by webserver hoster). When trying to use the service, I am getting the following error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security Cert.CertPathValidatorException: Timestamp check failed and below the stack trace is: java.security.cert.CertificateExpiredException: NotAfter: Wed on March 16, 1 9:59:59 EDT 2011 This last message sounds like it is saying that a certificate has expired. I have examined every proof that I have got three stores and none of them have ended. So does this message mean that the server has expired? Or have I got some ...

UI for Android Service Preferences -

I have an application with only one service, and the service will be used on demand through the bindService so it's a There is no long running service But the preferences in the service have been associated with What is the favorite model of preferences UI for such a service? The information does not look right, because the service is not usually running. I see that only one option is to add an activity in the application shown in the launcher. But it seems that having a name like "Service X Preferences" seems a little strange to have a launcher icon. Are there some other options about which I do not know? What is the preferred model for the preferences UI for such service? A priority enterprise uses that user to set preferences. The notifications do not look right, as the service is not usually running. Notifications are read-only and can not be used to collect preferences. The only option I'm seeing is an activity in the app shown i...

Copying contents of one Word Document into another Document with different names -

I have Word 2003. I have basically more than 100 documents related to a specific unit of a process, Process1 says I have four other names that have different names, but the content will remain the same. How can I copy the remaining content from the first group of the document to the remaining 3 without changing the name? The document has two tables, I just want to duplicate the second table from the first group of documents, for each of the other documents, the first table contains the name of the file and other information for that document. Need to be unique. Any help would be greatly appreciated because I have thousands of these which will eventually need to be copied, and doing it manually will be too much to kill me Thanks I agree with the documents that DOS binary files (Because you say Word 2003). Given this, you have to do some of your 2 most practical options word (like macro or add-in), or automated words.

javascript - jQuery fadeIn Messing up #hashtag Cross-linking -

ठीक है, इसलिए मेरे पास एक संपूर्ण पृष्ठ छुपाएं / फ़ेडइन प्रभाव jQuery के साथ हो रहा है सब कुछ ठीक से काम कर रहा था जब तक मुझे एहसास नहीं हुआ कि देरी () + fadeIn () मेरे कारण हो रहा है & lt; a href = "http : //example.com/my_page/#my_ID "& gt; हैशटैग लिंक & lt; / a & gt; शीर्ष पर स्क्रॉल की स्थिति के साथ लोड करने के बजाय उस कोड को जहां से #my_ID पृष्ठ पर है। मुझे पता है कि यह पूरे पृष्ठ से संबंधित है देरी () // fadeIn () प्रभाव मजबूत> संपादित करें यह प्रासंगिक jQuery कोड है: // # curtain div छिपा हुआ है और #bgImage (पर्दा) लोड होने पर बाद में फ़ेड हो जाता है - क्रोम वर् में सभी "रिबन" लोडिंग प्रभाव को रोकता है = ग़लत; Var url = $ ('। BgImage')। Attr ('src'); Var img = नया चित्र (); Img.onload = function () {if (! AllDone) {$ ('# curtain')। देरी (1500)। FadeIn (1000); AllDone = true; }}; SetTimeout (आईएमजी.ओलोड, 2000); // छुपा सामान 5 सेकंड के बाद, छवि या कोई छवि img.src = url; एक पर...

printing - Print pdf in applet using itext -

I have an issue of printing a PDF file in the applet. I have got input from HTTP and stream consutructed using PDFStapper is. The problem is that I want to send the resulting stream to the printer, but I do not know how to do it. Unless the printer supports PDF, you can not send it directly to the printer. You have to be customized it I wrote a blog article on printing PDF from Java on

c# - Will an implicit variable in a using clause be garbage collected? -

In the following code, the named variable of type FU is a difficult reference for example, or the item is trash Weak for the collection? using (new fu ()) {// something has been done here} The collected object is only a semaphore type of object But some reference calculates on, so that the code is not referenced in the block. using hidden hidden locally scoded by holding the closing object Creates variable (this variable generates in the end section). This prevents the variable object from being GCD. You can do it.

flex - Setting 'property' on validator -

I am using calligraphy on each cell in a column on a datagrid. The source datagrid is set to the datapriver but the property is problematic. I can not just say 'text' because I use a label function to recover the property because it is nested inside the other object. Any way to get around this? Do I need to create my own custom verifier? I hope not. Any suggestions are appreciated Thanks! & lt; Mx: numberValidator id = "security_locate_numberValidator" source = "{this.secId_dg.dataProvider}" The following ThanMinError = "One location is required." Property = "marketRule.locRule.locRuleId" minValue = "0" /> & Lt; Mx: DataGrid id = "secId_dg" editable = "correct" datataprakar = "{this.marketRuleServiceEntity.exceptionComposites}" itemEditEnd = "onSecurityPicked (event)" width = "100%" rowCount = "10" tab enabled = "false" & Gt; & Lt...

WCF - "There was no endpoint listening at..." error -

I have two applications that I want to test locally on the same machine. App 1 contains a simple WCF service that has folloiwng config entry: & lt; Service transaction support = "MyNamespace.ContainerManagementServiceBehavior" name = "MyNamespace.ContainerManagementService" & gt; & Lt; Endpoint address = "Container management service" binding = "basic htmlbidding" name = "container managementbasic htmlandpoint" contract = "minimapass. Iccnir" /> & Lt; Endpoint address = "Max" binding = "MaxHttpending" contract = "IMAXADEXXchange" /> & Lt; Host & gt; & Lt; BaseAddresses & gt; & Lt; AddAddress = "http: // localhost: 8000 / container management service" /> & Lt; / BaseAddresses & gt; & Lt; / Host & gt; & Lt; / Services & gt; & Lt; Behavior & gt; & Lt; Behavior name = "MyNamespace.ContainerManagement...

Lock down placement of panes from Visual Studio -

OK, if you're like me, you've often pulled one of the many scenes, from Visual Studio Spend some difficult times around many pens and then retract things. Is there no way to close all the panes in any visual studio, so that they can be dragged and placed elsewhere? As far as I know, no. But everything to work with tabs and tab groups VS In the "window" menu item is inside. But if you want to reset everything, then why not? Window - & gt; Reset Windows Layout You may also want to check, I think you can create a workspace, save it and move it around windows if necessary After this can reset it back. / P>

python - NumPy linalg.eig -

I have a problem with this problem and I still do not know that I have the matrix and I want to search the eigenvector, so I write: val, vec = np.linalg.eig (matrix) And then I got a VC. My problem occurs when other people in my group do the same matrix (matrix), we do not get the same eigenvectors! Can someone put an explanation? is the default property of an eigenvector x x a code Eigenvector, such as -x : A (-x) = - Ax = - lambda x = lambda (-x) Also keep in mind that the set of eigenvectors can not be unique. For example, any vector (proper dimension) can be an eigenvector of identity matrix. tries to return a set of eigenvectors, but does not guarantee a special, unique set.

replication - Sybase Data transfer utility -

I am looking for a Sybase utility that changes the data stored in a server to a server in a base main server Will update I remember that when I used to work in a different firm, I used it once, but I do not remember the name. When I was in the previous firm, then when there was a problem with the replication server, I used that facility to manually sync that server to the main server on the remote storage server. I do not think this was the whole database. It was more synchronized in one table at a time. Do anyone have any ideas? It is called hot standby but in the real world - Hot standby is not stable B) You can do this only through the Sybase replication server. / P> In addition you can synchronize via BCP copy or dump and can restart through NFS.

java - insertion-sort on doubly linked list -

Here is the entry-sort function for a double link list (DLL). It's based on. I get a NullPointerException . Why? public static DLL sort (DLL list) {DLLNode ptr2} = List.first.succ; While (ptr2! = Null) {DLLNode ptr1 = ptr2.pred; String Kar = PTR2. Alem; While (ptr1! = List.first & amp; amp; curu.compareToIgnoreCase (ptr1.elem) & lt; 0) {ptr1.succ.elem = ptr1.elem; Ptr1 = ptr1.pred; } Ptr1.succ.elem = curr; Ptr2 = ptr2.succ; } Return list; } You can try to print your list backwards, this To make sure all your nodes Plague is not zero.

sql - MySQL: SELECT EXISTS() AS field WHERE field = x -

PROBLEM: I have an inventory table, and a table inventory item to be notified to me. Want to be a nickname field ("isAuction") that the item with the stock number of the list exists in the Auction Items table. I wrote the following question: Select from the list as I have found (select one from the auction * where someone is a.stockNo = i.stockNo In the form of "isAuction") This populates the "isAuction" field with 1 or 0, as is required. Now I add a WHERE status: Select from the list as I found (choose from auction * where one. A.stockNo = i though, when I If I add a situation like this, I get an error: "# 1054 - The unknown column is' '' 'option' in the 'clause'. Two questions: 1) Where did I get it wrong? Found? 2) Is there a better way to solve my problem? Try HAVING IsAuction = 1 . I know somewhere Ha that HAVING has been called more columns than WHERE.

c# - html entity encode text only, not html tag -

I have a string in which there is a bunch of html. I want to convert the html tag to encode within the HTML tag but the tags themselves There is an easy way to do this in ASPN C # 3.5 You can use HTMl agility pack If you ask them to read HTML then you need to use HtmlEncode method to encode specific values.