Posts

cmd - Commandline Arguments in C# -

नमस्ते फिर से स्टैकओवरफ्लू समुदाय, आज मैं सी # में कमांड लाइन पैरामीटर के साथ एक आवेदन को निष्पादित करने की कोशिश कर रहा हूं, कि वास्तव में मुश्किल नहीं है जैसे मैंने कोशिश की प्रक्रिया। प्रारंभ (गुड़ियाघर + "कोकाकोला। एक्सई", "पेप्सी। Txt"); Cocacola.exe लिखता है और उसके वर्तमान फ़ोल्डर में लॉग इन करें मेरे आदेश पंक्ति में मैं इसे मैन्युअल रूप से लिखता हूं सी: \ myfolder> cocacola.exe pepsi.txt अद्भुत काम करता है लेकिन अगर मैं इसे सी # कुल असफल। मैंने पढ़ा है कि सी # को ".EXE" समाप्ति के बिना, सी: \ myfolder & gt; कोकाकोला पेपी। और मैंने इसे समाप्त किए बिना मैन्युअल रूप से परीक्षण किया है, और यह काम नहीं करता है। अब, मेरा सवाल है कि सी # को निष्पादित करने का सही तरीका है सी: \ myfolder & gt; cocacola.exe pepsi.txt ".EXE" उपयोग करें ProcessStartInfo उदाहरण : सिस्टम। डायग्नोस्टिक्स.प्रक्रिया proc = नया सिस्टम। डायग्नोस्टिक्स। प्रोसेस (); proc.WorkingDirectory = @ "c: \ किसी ऐसे स्थान पर"; proc...

Interface as a type in Java? -

From From: In Java, a class can inherit only one class but To apply more than one interface, therefore, objects can have several types : the type of their own class and the types of all the interfaces they execute mean that if any If the variable is declared as the type of interface, its value is referenced to any object Which can be instantly available from any class implementing the interface . Someone could provide me a basic pseudo type for this, I did not understand the bold lines. Let's declare two interfaces and one class that implements both: I1 {} interface I2 {} class C I1, I2 {} objects can have many types In the following code, it can be seen that with a C in the example C with I1 and I2 : cc = new C (); Boolean isC = (c example c); // true boolean isI1 = (Example of I1); // true boolean isI2 = (c example i2); // true We now declare a class B which also implements I1 : Implementation of Class B I1 {} If any difference...

ruby - How can I sort YAML files? -

I am trying to sort a i18n translation YAML file with Ruby so that I can translate the new translation into a better translated way Can manage , But I was thinking that there is something to reduce the work. I got a YAML file author, so I can write a hash in a file, but my problem is to sort the hash correctly if I got the hash h , h.sort gives an array and I still do not have an easy way to do this. I have YAML files like this: pt-br: global: misc: total: "total" all: "todo" close: "fechar" Cancel : "Cancel" crud: access: "Acessar" back: "Voter" Edit: Confirm "Editors": Send "Confirmor": "Envir" ... (files But I want to sort them out like this: pt: br: global: crud: access: "Acessar" back: " Voltar "Confirm: Edit" Confirm ":" Editar "send:" Enviar "All": Cancel "Todos": Close "Cancel": "Feature...

Flex and Parsley Logging -

I am looking for the possibility of logging into my Flex 4.5 project. It should include errors in remote classes, error handlers, or hand-written messages. After reading a lot of webpages, the solution to the parcel seems good. I want to switch to this profile anyway. The gain runtime is likely to configure logging behavior. But I did not understand the documentation. Perhaps because I am brandnew in parsley and Google has no proper results. Have you done this before and it is possible to give some code snippets to me Thank you very much Frank EDIT: J_A_X due to proper criticism , I add my code because I have partially succeeded. First let us configure a config file, because I want to configure logging behavior in runtime. This is a simple XML file in the project root. & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Objects xmlns = "http://www.spicefactory.org/parsley" xmlns: log = "http://www.spicefactory.org/...

java - Calling onCreateOptionsMenu() from multiple views -

This may be due to the lack of full understanding of how Java works. Still learning! Let's say we have an activity with the create code. Enhances game activity in the public category {@Override public void onCreate {bundled saved instance} {super.onCreate (savedInstanceState); SetContentView (new gamemanview (this)); }} We have now found our view. My question is, the game activity class and GameMainView are sub-routes in the class which I want to call using reactions from the CreateOptems menu () . How do I get access to those two classes? I know that I can create an intangible category specifically for the Crack Options menu () and it requires game activity and game modes that they need to do. Is this the only option? OnCreateOptionsMenu () is called only once? And if so, where? If I override it everywhere, will they execute all? If you write your activity this: public class Enhances game activity {Private GameManewew GameManview; Override public null on @reate...

objective c - Parse serializeJSON file format in iphone -

मैं सीरियलइजजेसन प्रारूप में कोल्डफ्यूज़ेशन सर्वर से उत्पन्न जेएसओएन फाइल को पार्स करने की कोशिश कर रहा हूं। JSON फ़ाइल को पार्स करने के लिए कोई विशिष्ट तरीका है। यह सामान्य ट्विटर फ़ीड JSON फ़ाइल से भिन्न है। इस प्रारूप में JSON फ़ाइल को कैसे पार्स करना है? मैं इसे पार्स करने के लिए एसबीजेएसओएन फाइल का उपयोग कर रहा हूं। {"COLUMNS": ["आईडी", "TITLE", "CLASS_START", "CLASS_END",], "डेटा": [ 7f9f3601 "," टेस्ट "," अक्टूबर 25, 2011 00:00:00 "," अक्टूबर, 25 2011 00:00:00 ",], [" 5500 ए 26 बी "," एबीसी "," अक्टूबर 26, 2011 14:47 : 00 "," अक्टूबर, 27 2011 14:47:00 ",]] यह दिखता है कि आपका सर्वर JSON लौटने के बजाय एक एम्बेडेड स्ट्रिंग के साथ एक XML प्रतिक्रिया वापस कर रहा है संभवत: आपको XML प्राप्त करने और तत्व की सामग्री को निकालने की आवश्यकता है। उसके बाद आप उस तत्व की सामग्री ले सकते हैं और इसे पार्स करने का प्रयास कर सकते हैं।

php - Having redirect issue -

मैं header ("location") के साथ निर्देशिका संरचना (उदाहरण के लिए succesfull पंजीकरण के बाद अन्य पृष्ठों से पुनः निर्देशित करने के लिए) का उपयोग कर रहा हूं : ../../../ index.php "); फ़ंक्शन यह स्थानीय सर्वर पर अच्छी तरह से काम करता है, लेकिन रिमोट में एक त्रुटि संदेश मिल रहा है अब, अगर मैं localhost / डालूंगा तो यह मेरे स्थानीय वेबसर्वर पर काम करेगा, लेकिन रिमोट में नहीं अगर मैं वेब पृष्ठ का सटीक पता लगाता हूँ तो यह मेरे स्थानीय सर्वर में काम नहीं करेगा मैं php के साथ वेबसाइट कैसे बना सकता हूं (मुख्य पृष्ठ) यूआरएल? क्या यह संभव है? कोई उपाय? Thx अग्रिम में इसका प्रयोग करें: header ('स्थान: Http: // '। $ _SERVER [' HTTP_HOST ']।' / '); यह आपको सर्वर के होमड्रीक्टरी पर ले जाएगा (ध्यान दें, यदि स्थानीय रूप से चल रहा है तो आपको अपने वर्चुअलहोस्ट को सही तरीके से कॉन्फ़िगर करने की ज़रूरत है, लेकिन कठोर नहीं है)। यदि आपको किसी विशिष्ट निर्देशिका या फ़ाइल को निर्देशित करना है, तो बस '/' के बाद जोड़ें।