Posts

Showing posts from January, 2010

Adding class to an element using jQuery + simultaneously sending custom values of css class parameters -

I do not know if this is possible but I will try to require it. I want to do something like this .... CSS class with undefined variable X, Y, Z: . R {border-radius: xpx; -webkit-boundary-radius: Yipx; -max-boundary-radius: ZPX;} Then into the body: Script: $ ("#tigest"). AddClass ("r (10,10,10)") As you see, I have a CSS class but there is no number just the variable And I want to send this class all the variables using jquery and via jquery. Is there any way to do this? Interesting ideas, but unfortunately, it is not possible to apply directly: CSS is instantly "compiled" That is why this CSS is just invalid and it will not be recognized. Instead, what you can do is code like this: $ ("# test"). CSS ({"border-radius": "10px", "-webkit-border-radius": "10px", "-max-border-radius": "10px"}); To set CSS properties with jQuery on the fly.

android - Set keyboard to stay open even on "go" press with html5/javascript? -

I am creating a small html5 web application to improve my html5 skills I created this project and It works great, but I want to enable some mobile functionality which should make it cooler! An annoyances of using the site on mobile is that whenever you press the "Go" button on the Android keyboard after entering the data in a text box, it is true that in Javascript I have specified that the text box still focuses Is there a way to clearly tell the Android browser to open the keyboard? Thank you, John I think it is beyond the scope of JS - The keyboard is part of Android, and in this way (I think) it will depend on the browser to decide whether the keyboard remains or not - how will you cope with different browsers running in Android? Because I think they are not running all WebKit (Firefox Mobile?). So I think it can not be answered: (

php - scraping with xpath, giving an error -

I am trying to get text from a page scrap using xpath, now I'm returning an error And do not know why! Keeping in mind, I am a very new PHP user, it is for a university project that I have taken and its supporters are very challenging: P but it should be. This is the code, & lt ;? In Php $ html = file_get_contents ( 'http://www.amazon.co.uk/New-Apple-iPod-touch generation / DP / B0040GIZTI / ref = br_lf_m_1000333483_1_1_img ie = UTF8 & amp ;? s = electronics & amp; pf_rd_p = 229,345,967 & amp; pf_rd_s = center -3 & amp; pf_rd_t = 1401 & amp; pf_rd_i = +1000333483 & amp; pf_rd_m =; A3P5ROKL5A1OLE & amp pf_rd_r = 1ZW9HJW2KN2C2MTRJH60 '); $ Dom = new DOMDocument (); $ Dom- & gt; LoadHTML ($ HTML); $ Xpath = new DOMXpath ($ dom); $ In_stock = $ xpath- & gt; Query ( "/ html / body / div [@ id = 'divsinglecolumnminwidth'] / [[id = 'Handbel'] / table [3] / TB [3] / TD / div / span"); ? & Gt; I get th...

ajax - need php code to obtain list of files stored on the server -

How to display a list of files stored in the folder on the server on PHP and call that php page by using AJAX So that the list of users' files can be displayed on the customer's machine? Very simple example: Showfiles.php & lt ;? Php // Open this directory $ dir = opendir ("files"); // Get every entry ($ file = readdir ($ dir)) {if (substr ($ file, 0, 1)! = '.') {Print "$ file \ n"; }} // close the closed directory ($ dir); ? & Gt; showfilesget.php & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ('# loadfiles'). Click (function () {$ .get ('http://jfcoder.com/test/showfiles.php', function) {$ ('# Files') .html (data);});});}); & Lt; / Script & gt; & Lt; H1 & gt; Loaded Files & lt; / H1> & Lt; Pre id = "file" & gt; & Lt; / Pre & gt; & Lt; P & gt; & Lt; Span class = "link" i...

Java Set Stipulation -

The following set interface is about Java docs, does anyone help me to understand how these additional conditions Is forced? I mean you can not throw an extra exception which is not thrown by super interface (in this case collection). The set interface gives additional terms of the additional terms inherited from the archiving interface on contracts of all the constructors and on the contract of contract, add, and hash code methods. thanks -Abidi Conditions are not compelled, they are just added to the contract. Fortunately the contract for the methods in archive (and objects ) is quite loose that one implementation can apply to both archive , object and set For example, the addition method does not throttle an exception, when trying to add an object that is already there, it is just false (instead of true ) This is already allowed by Collection.add : Ensures that there is an element (optional operation) specified in this collection. As the result ...

android - Iteration Through R class -

Is there any possible way to iterate RROR or Ardoable or any R-class? I have to dynamically get every ID on that folder. ArrayList resArray = new ArrayList (); Forchha (Int id: RO.A.) {resArray.add (ID); } Or is there any other way? You can do this via Java reflection: class Raw = R.raw.class; Field [] fields = raw .getFields (); (Field field: field) {try.log (ii ("reflection", string.format ("% s is% d", field.getName (), field.getInt (null));} hold (IllegalAccessException e) {Log.e ("Reflection", String.format ("% s threw IllegalAccessException.", Field.getName ()));}}

Php for nested loop -

Please explain in a broad way how this loop works in PHP? ($ A = 1; $ a "; For ($ b = 0; $ b & lt; $ a; $ b ++) per echo $ a; } Why is production 1 22 333 4444 55555 etc and not just 1 2 3 4 5 and so on, I know that something is elementary but I can not get it. Thank you. key $ a in internal loop ($ b = 0; $ b It will be zero counted as $ a (which increases every time) in each loop and output as $ a . $ a = 0: No output (internal loop runs from 0 to 0) $ a = 1: 1 output (internal loop runs from 0 to 1) $ a = 2: 2 Output (internal loop runs from 0 to 2) $ A = 3: 3 output (internal loop runs from 0 to 3) etc. .....

jpa - Hibernate @Enumerated mapping -

हाइबरनेट @ नामांकित एनोटेशन प्रदान करता है जो दो प्रकार के Enum मैपिंग का समर्थन करता है या तो ORDINAL या STRING का उपयोग कर रहा है। जब हम EnumType.STRING का इस्तेमाल करते हैं, तो यह Enum के "नाम" को लेता है और toString () Enum का प्रतिनिधित्व नहीं करता है। परिदृश्यों में यह एक समस्या है जहां डेटाबेस कॉलम में केवल एक वर्ण शामिल होता है। उदाहरण के लिए, मेरे पास निम्न Enum है: सार्वजनिक enum status {OPEN {@Override सार्वजनिक स्ट्रिंग toString () {return "O";}}, WAITLIST {@Override सार्वजनिक स्ट्रिंग toString () {Return "W";}}, COMPLETE {@Override सार्वजनिक स्ट्रिंग toString () {return "C";}}} जब मैं enum status.OPEN का उपयोग करके @Enumerated (EnumType.STRING) , मान है कि हाइबरनेट डाटाबेस में स्टोर करने की कोशिश करता है OPEN। हालांकि, मेरे डेटाबेस कॉलम में केवल एक अक्षर होता है और इसलिए यह एक अपवाद फेंकता है। इस मुद्दे पर काबू पाने का एक तरीका ऐन्युम प्रकार को एकल वर्ण (जैसे STATUS.O , STATUS.W के बजाय STATUS.OPEN , ...

objective c - Xcode iPhone App - NSDate timeIntervalSinceDate problem - Unknown Cause - Please help! -

व्यू नियंत्रक.एम फ़ाइल से - (शून्य) हिटबटन {वर्तमान = [एनएसडीटी तिथि ]; अंतराल = [वर्तमान समयइंटरवलसिंस डेट: आखिरी]; दर = 60 / (डबल) अंतराल; अंतिम = वर्तमान; NSString * आउटपुट = [NSString stringWithFormat: @ "% d bpm", दर]; [बीटीएनआउट सेटटिटल: आउटपुट के लिए स्टेट: यूआईसीओन्टोलस्टेटअनॉर्मल]; } - (शून्य) दृश्यडिडलोड {अंतिम = [[NSDate alloc] init]; वर्तमान = [[एनएसडीट आलोक] इनिट]; [सुपर व्यूडिडलोड]; } Viewcontroller हेडर फ़ाइल से @ इंटरफेस रेटअलाइज़र वीयूआई नियंत्रक: UIViewController {डबल अंतराल; इंट रेट; एनएसडीट * चालू; एनएसडीट * अंतिम; IBOutlet UIButton * btnhit; IBOutlet UIButton * btnout; } @ प्रॉपर्टी (नॉनैटोमिक, रिटेन) UIButton * btnhit; @ प्रॉपर्टी (नॉनैटोमिक, रिटेन) UIButton * btnout; - (IBAction) हिटबटन; @end हाय, मैं एक साधारण ऐप बनाने की कोशिश कर रहा हूं जो कि बीपीएम में कोई दर प्रदर्शित करता है जो कि कोई बटन दबाता है कुछ कारणों से ऐप पहले प्रेस पर ठीक काम करता है लेकिन दूसरी बार क्रैश करता है कोई अपवाद नहीं है या कोई जानकारी क्यों दी जाती है मैंने H...

performance - Optimization Strategies around Interface Calls in Java -

I have an application that uses provider pattern, the application uses the provider implementation by calling interface defined by the application . I am currently researching the methods from which I can customize my application around the interface calls. I can limit the complexity of my application to: I need to load the implementation dynamically once upon startup I need a provider implementation for a particular group of interfaces for any application frequency at any one time. I appreciate those who are employed in any strategy: Reducing the interface calls Any Move the interface directly to the interface implementation sections. Different ways to better take advantage of a compiler optimization. Thank you! Some misconceptions You can reduce the interface call by calling the underlying solid implementation directly (or using the intangible classes) when you make it simpler and improve the maintenance (usually More interface helps, but not alwa...

database design - Indexing foreign key columns -

Is there a rule of thumb for indexing all foreign key columns? It seems that they are often used in the table and take advantage of the index. What if there are only 2 or 3 possible values ​​in the FK column? For example if this was referred to a status table. Will it still be appropriate to put an index on the FK field? Edit I would like to redo the question [Is it appropriate to put an index on a column with some possible values ​​(2 or 3)?] END EDIT (Two issues come together here: machine efficiency and DBA efficiency.) As a rule of thumb, index performance on the columns used in the join clauses, and where the stories and, of course, display, display, update And delete suffers from the same index. (Because the index has to be updated with the table.) If there are some values ​​in a column, and there is no compulsive reason for avoiding the actual value stored in the table, For example, ISO 5218 specifies these codes to represent human sexes, for example, to tar...

android - SharedPreferences used for my Database -

I am trying to create an application that receives GPS data from a KML file via DDMS; SQLite Database My main problem is that every time I run the application, when I store the same GPS data in the database, then there is a big disturbance in my database. Now someone said that I store a shared primary key I can use to do that tells me that the database already exists, assuming that the database exists, is already complete. The problem is that I use a Skywit browser to create my own databases and tablets and I use my code to add the information to the tab. So just to verify that the table does not exist, I have a lot of help Please. Does anybody have any idea how I can manage SQLite database so I do not store the same data twice? There are many possible solutions 1) Check that the data is already in the new data Is present before inserting (a simple selection statement) 2) Use SQLiteOpe NHelper - This database provides a function for version management 3) In the shared re...

iphone - Which is the best method to display thumbnail images on UIScrollview (downloaded from server) -

I want to show several images (as thumbnails) on UISCrewview (like a photo app). All images will be downloaded from the server. According to my knowledge, there are some options: 1) Add Uvimageviews and add them as subviews on the main scroll. 2) Paint images by subclass of a UIView square, and then 3) CATiledLayer Using the class I think the first option is not as good as it is not the best way to load images in large numbers; And the third alternative is more suitable for large images. As I get only small images, so the second option is the best in my case. Please suggest, which option should I go to. If possible, please provide sample code. Many thanks in advance :) "[UIImageView] is not enough because It is not adaptable "by what do you say? Do you really think that UIImageView is not optimized for displaying images? My advice: Go with the easiest solution and see if it meets your needs.

java - select different jar at runtime - toggling -

I was thinking that there was a way to select different versions of the same jar on the runtime. I'm hoping to avoid using Maven profiles because it will be a build-time selection. We say that there are two versions of the same jar: greatFeature_version_A.jar So when a class is requested, then tell version_A, the class loader will always choose the first one finds it, even if it is related to the jar. My thinking is that an effective runtime toggle can not be achieved this way. I was thinking that anyone can experience something similar and get a recommended solution. I also hope to avoid writing a custom class loader if possible. Many thanks! Other related questions on the SO say a custom category loader, like any one. You get the "rename" packages so good that the packages of Fetcher_version_ager are started. * And other start buzzer. * In this way you can use code from both jars in the same application, probably at the same time.

c++ - what is faster to read, ASCII or Binary? -

I am currently working on a C ++ project which includes reading thousands of small (~ 20kb) of text files All are in ASCII "itemprop =" text "> string in any number Changing, while the CPU is not cheap in the cycle, it is a non-issue that the amount of overhead associated with I / O is always the order of magnitude larger than the conversion. It is, a disk supplies about 8KB as fast as 20KB, it all comes out of the same cluster on the same track. Including a disk reader head to open a file and it takes forever . Therefore, focus on reducing the number of files for actual files.

Can a class return a static instance of itself? (in c#) -

अभी मेरे वर्ग की स्थापना इस प्रकार है: enum इकाई {इंच, सेंटीमीटर} ; बाद में मेरे पास एक कदम है जो इन सभी यूनिटों के सभी गुणों को मेरी क्लासेस इंस्टेंस चर में सेट करता है I उदाहरण के लिए: int unitBase; // मेट्रिक के लिए 10, 16 अमेरिकन इंटेल लेबल के लिए; स्विच (यूनिट) {केस यूनिट। इंच: यूनिटबेस = 16; इकाई लेबेल = "\" "ब्रेक; केस यूनिट। सेंसिटर: यूनिटबेज = 10; यूनिट लेबल =" सेमी "; ब्रेक;} मैं इसे सभी यूनिट क्लास या स्ट्रक्चर । फिर, मैं इसे उसी तरह उपयोग कराना चाहता हूं जैसे आप रंगों तक पहुंचते हैं, उदाहरण के लिए, आप color.blue नीला रंग के लिए कहते हैं, मुझे यूनिट कहना है। इंच के लिए इंच ... यही कारण है कि मैं एक यूनिट बेस क्लास नहीं बनाता और इसे बढ़ाता हूं। मुझे पता है कि ऐसा करने का एक तरीका है! क्या किसी ने मुझे उकसाया? धन्यवाद! "post-text" itemprop = "text"> आप स्थिर गुणों का उपयोग कर सकते हैं: सार्वजनिक एन्यूम यूनिट्स स्पीचियर {इंचेस, सेंटीमीटर}, सार्वजनिक वर्ग इकाई {इंट यूनिटबेज; // 10 मेट्रिक के लिए, 16 अम...

mysql - Benefits of SPATIAL over using standard bounding box query -

The benefits of intellectual barriers What are the benefits of using a special query instead of a simple MySQL For example, if I want to meet all the locations within a certain polygon: Something like this: Example of the bounding box Selection * WHERE GOALAT from geographical position? And? And between geography? And? As I think, the only real advantage is that there will be spatial factors in the curvature of the Earth? Which method is the fastest? Advantages: You can use numbers other than numbers and rectangles You can use, and "-in". If you can use the Spotlight Index, then the performance is a measure of magnitude (depending on the size and nature of your data). Disadvantages: Local objects are binary blobs - some care needs to be handled (for example you can not usually copy a price ). The spatial index in mySQL is only available for MyISAM tables. Support in mySQL is somewhat old; Many operations have not been implemented yet I...

java - Detecting Selection Changes in a JTable -

I am trying to find a way to detect changes in which the user selected in jettbble Around and it appears that you will have to use a table column model list to find the changes, but it seems that when you change the column you selected, no such incident is detected. You must add a ListSelectionListener instead. This selection will capture events Here are some swing tutorials that go deeper:

actionscript 3 - AS2 Gallery swf loaded into Main web AS3 swf -

I have loaded an AS2 SWF in an AS3 SWF but did not execute the OLDINT Function for a Movie clip loader object is; Which does not concentrate my images and is not less in dimensions (width / height) This works if I run the AS2 SFF (Gallery) directly. listenerObj.onLoadInit = function (target: movie clip) {if (target._height> gt; _root.maxHeight) {var proportion = target._height / _root.maxHeight; Target._height = target._height / ratio; Target._width = target._width / ratio; } If (target_mc._width> _root.maxWidth) {var proportion = target._width / _root.maxWidth; Target._height = target._height / ratio; Target._width = target._width / ratio; } Target._x = ((Stage.width / 2) - (target._width / 2)); Target._y = ((Stage.height / 2) - (target._height / 2)); } MCL. Adidlist (Audience Obj); Unfortunately there are some subtle differences in behavior and bug when loading AS3 movie in AS3. . I also experience the behavior you saw - when any loader loads in AS3 then no load h...

compiler construction - How to check the Language in which Exe is made -

We were studying about compilers in college, so I curious that when we use the compiler and they If you make assemblies, then any way you can know that if you have been given any XI, then it was used to build the compiler? Or at least what language was C ++, C # or what? = "Post-text" itemprop = "text"> There are several ways to do this, but I do not think you can guarantee a valid result by which people take action to hide it. Check out, it can do this automatically (along with detecting the packers).

c - unix command result to a variable - char* -

How can I specify "PWD" (or any other command in that case) as a result (current working Dior) Four in a variable? Anything can be done not just surrounded by "PWD". Thank you. get started popen . This allows you to run a command with your standard output directed to a FILE * , which your parents can read. As with fgets , getchar , etc.), however, you want to avoid running an external program for it - you should be available, which results in more direct results Will give.

Help with php script addition and % (also a compile error) -

I am trying to install a php script which, in this case, takes input from a web form, Down the box, (extra and trainers) and sum together them with a 20% tax at the top of the total. I'm not sure how to do the total, as well as 20% also take extra, I get an error at line 80 which is a very final closing tag (I am very new to php) & lt; ? Php $ extras = array ('les' => 5, 'shoe polish' => 10, 'in-spirits' => 15); $ Instructors = array ('lacoste' => 50, 'k-swiss' => 45, 'puma' => 59, 'convergence' => 65); {$ Firstname = $ _POST ['First name']; Echo "first name $ firstname "\ n"; } {$ Add2 = $ _POST ['AD2']; Echo "$ add2"; br / & gt; \ n "; } {$ Postcode = $ _POST ['postcode']; "$ Postcode "; } {$ Contact = $ _POST ['contact']; Echo "you want to contact $ contact " } {$ Instructors = $ _POST ['trainers'];...

python - How do I install pysvg using easy_install? -

I am a hardcore programmer and I want to learn Python. I am trying to write a script to create SVG files. If I am not able to do this work, then I will kill only some kitten and I will write a program to do this work. I want to use the library. In fact, I am not getting married to that special library. What better SVG-generator (better-document, in fact) should I use? Which library do you use to create SVG? I am creating simple SVG (boxes and rows) from scratch. I tried downloading the package and running python install.py install / install but I did not really want to give it the root access. Then I thought and tried sudo easy_install pysvg and it will not work just: rascher @ coltrane: ~ $ Sudo easy_install pysvg pysvg No local packages or download links found for reading http://pypi.python.org/simple/pysvg/ http://codeboje.de/pysvg/ pysvg error for search: find the appropriate distribution for the requirement Could not find .parse ('pysvg') rascher @ coltr...

Upgrading ERb tags for Rails 3 upgrade. Should I: as well? -

रेल के एक ब्लॉक को देखते हुए 2.3.x ईआरबी कोड: & lt;% account_for account ,: Url = & gt; {: एक्शन = & gt; : आमंत्रित} do | f | & Gt%; # ब्लाह & lt;% end% & gt; रेलिंग उन्नयन प्लगइन का उपयोग करके, यह मुझे बताता है कि मुझे & lt;% को और lt;% = के साथ बदलने की आवश्यकता होनी चाहिए I यह अंत लाइन के लिए करें? जैसे: & lt;% = खाते के लिए फॉर्म_,: url = & gt; {: एक्शन = & gt; : आमंत्रित} do | f | & Gt%; # ब्लाह & lt;% = end% & gt; नहीं, आपको केवल एक ब्लॉक शुरू करने पर & lt;% = की आवश्यकता होगी। तो यह होगा: और इस नए एआरबी को अपग्रेड करने के लिए देखें।

how to convert php date formats to GMT and vice versa? -

I'm new to php. I want to write a function where I want to get the DST, GMT format and later back to the original entry In the format, any date format requires the user for the date of input. Any body help me Although gmdate functions are available, if you are using PHP 5.2 or higher, the object Consider using it. There is a code to switch to GMT $ date = new dateTime (); $ Date-> Set Timezone (New DateTimeZone ('GMT')); and return to the default timezone ... $ date = New date time ('2011-01-01', New DateTime Zone ('GMT' )); $ Date-> Settime (new datetime time zone (date_default_timezone_get ())); By using the date time object, you can create a date time, just like procedural tasks, except that you live in the context of an example. For example // Go to the context of the Christmas 2011 Christmas lunch = date = new date time ('2011-12-25 13:00 : 00 '); // Print the date to see the people, whatever format we specify, ...

windows xp - how to open an application file(clickonce file) in xp home -

One click-installed applications (.exe files) are not working for me at home xp. I have just installed a new XP home on my Dell and I need some extra drivers (for NIC card etc.). I downloaded the other drivers required from Dell's site from my second machine (using Windows 7) and came into an ".application" file. I took this application file through the flash drive on the XP machine and tried to open it. Windows XP told me that it did not know which program I should use to run this file. Can anyone tell me about this problem in the right direction? Dell did not allow me to download an ISO instead. Am I doing something wrong here? Thanks for any help -ray You need to make sure that you have the .Net Framework 2 or above installed once. Application files on the client machine Moves in. Greg

Select particular rows in GQLQueries (JDO) Google app Engine JAVA -

I want to select two columns from the table so that this can be done or I have to get the whole table. App Engine Data Store is not a relational database. The basic unit of data collection is called a unit. For more information, always get the full unit on an app engine datastore API documentation as well as low level API documentation.

sql - actual working of primary, foreign key and unique constraint , order/steps of their working -

How do primary keys, foreign keys and unique barriers work? What do i mean As such, when a child has an FK in the table, and a record is inserted, which is not present in the original table, this record is first put into the child Table & amp; If the record exists in the guardian table or not, and if he is not getting it, then it removes the record from the rollback and the hair table, is it the order of doing this work? Or, first SQL gets the record (which is made by FK) with the included query, & amp; Parents match the table records, and do not get matching records when they are included, while inserts itself and does not include the row in the hair table? Similarly, for the primary key, if the duplicate record is inserted into a table, then it is inserted for the first time or it is matched to the existing record before entering, and If that is a duplicate, then the query has expired. Speaking logically, with an entire result of an update, INSERT or DELETE st...

email - cron: sending output to file then EMAILing file to me -

I am writing a series of cron jobs that I want to log my work to the file in my output And then I should say the contents of the file - when I say @ somewhere.com I think the file can be done using simple pipes to output redirection like this: 30 0 * * * / path / to / script1 & gt; Task1.log 30 1 * * * / path / to / script2 & gt; However, I'm not sure how to mail files (or just their content) to me@somewhere.com in a separate email Besides, there Depending on the date, there is a way to create a log file name dynamically, so that the log name is like some% Y% m% d.task1.log? Where is the prefix date? I am running on Ubuntu 10.0.4 LTS If your system is a The job is not / usr / bin / sendmail ( sendmail sending , most mail servers provide a / usr / bin / Sendmail wrapper script), you can use mail (1) to send mail: echo "hello world" | Mail-hello me@example.com Mail (1) is very primitive; No MIME file is attached, you are stuck...

html - How to show the external web page content in the iframe? -

I am working on php site I want to show the web site content of the external site in my site. Is there only one way to show the contents of the external site web page in my site? Your solution will be appreciated in advance thanks. If the site itself is not being stopped, then jQuery, CSS is also no need for PHP Being Iframed Iframe works just like this: If the site is prevented from being an audiomade, you might want to use it, then display the data received in the DIG or other non-iframe element.

Difference between initializing a string and not initializing a string in .NET -

I want to know how to allocate memory when starting the string using new keywords and without string New keywords while setting the value for Abhishek R.Sarasanth There is no difference between the path Or when you set the string directly using '=', the memory is allocated on both stacks and therefore once the garbage collector is responsible for collecting memory, when it goes out of the scope . Only the new 'new' calls the constructor, whereas if you allocate using the directly overloaded operator and it starts a new instance of the string.

iphone - soap web service parsing -

I am trying to parse the soap web service for authentication and the following code is currentElement = [[NSString alloc] init]; NSString * Email = [NSString stringWithFormat: @ "sbhushan@gmail.com"]; NSString * password = [NSString stringWithFormat: @ "5Pb and Q? 4t"]; NSString * Soap Message [[NSString stringWithFormat: @ "& lt ;? Xml version = \" 1.0 \ "encoding = \" utf-8 \ "? & Gt; "& Lt; Soap: Envelope xmlns: xsi = \" http: //www.w3.org/2001/XMLSchema-instance \ "xmlns: xsd = \" http: //www.w3.org/2001/XMLSchema \ "Xmlns: soap = \" http: //schemas.xmlsoap.org/soap/envelope/ \ "& gt;" "& lt; soap: body & gt;" "& Lt; authentication xmlns = \" http: //tempuri.org/ \ "& gt;" "& Lt; userId>% @ "& Lt; password & gt;% @ & lt; / password & gt;" "& Lt; / Authentication & gt;" ...

android - in-app billing test phone -

I want to make "in-app billing" on my app. But it is not possible to test in-app billing in this emulator. So what phone do I need to test? Is this the only Android phone phone 2 and Nexus One that works? "To test In-App Billing in any application, you must install the application on an Android-powered device. You can not use the Android emulator to test In-App Billing. The device you use for testing needs to run a standard version of Android 1.6 or later (API level 4 or higher), and the most current version of the Android Market application. The operating will be installed. " Work on any device of Android Market App version 2.3.4 and above should do. A blog has been written for some of the key issues found during setup.

activemq - Apache Camel inOut routes, out exchange marshaling/unmarshaling with jaxb -

We have this Apache camel route, from (commandDrop) .marshal (jaxbDataFormat ) .Jmsquueue; From (jmsQueue) .inOut ("jms: doCommand requestTimeout = 500000"); ("Jms: doCommand") from unmarshal (jaxbDataFormat) .binRef ("beans") ;. .... and the Bean class in this way class BeanClass {public zero doCommand (command command, exchange exchange) {{command.run ( ); Exchange.getOut () setBody (command) }} We are trying to keep a message and are waiting for a reply on the route like this object ret = template. RequestBody (commandDrop, New TestCommand ()); In the forward direction, objects are found in a martial / unmanned manner in a great way. But the setBody call is generating a java.io.NotSerializableException. Is there a way to configure the route to use the same Jacob Marshalling / Unmorning on the way? There are some jackab-generated class objects in my command class that are not ordered. They are well controlled in the forward directio...

c# - Overload generic List's Add with extension method -

I would like to overload the add link of a generic list so that I can use the archive initialization: var x = new list & lt; Tupal & lt; String & gt; & Gt; {{"1", "2"}, {"1", "2"}}; (Where Google is a simple custom implementation of a binary Tupal.) However, I created an extension method, put the instruction used in the CS file and still "no surcharge No "method" takes "2 arguments" panic ". Is it not possible (with extension method)? Extension method code: Namespace extensions rule {public static class extension {add public static zeros {value1, value2}); }} allows the use of the Microsoft extension extension in C # 6.0 [0] Is early collection of Hurray :) And since it is not a .NET Framework or CLR change, but there is a compiler change, this feature can be used with .NET 4.0. The following is now valid C # code (tested in Visual Studio 2015 RC) class program {static zer...

c# - Silverlight MVVM - Twoway binding not fired on Datepicker -

मेरे पास Silverlight MVVMLight 4.0 अनुप्रयोग है जिसमें मेरे पास दिनांक पिक्चर है। दिनांकपिकर दो तरह से बाध्य है व्यू मॉोडेल पीछे कोई कोड नहीं है यह ठीक काम करता है जब तिथि पिक्चर पाठ बॉक्स को टैब्स करना होता है और ऑब्जेक्ट की अंतर्निहित संपत्ति को बदल देगा। लेकिन जब मैं टेक्स्ट बॉक्स बदलता हूं और टैब बंद नहीं करता और बदलाव को सहेजने पर क्लिक न करें मैंने विभिन्न घटनाओं को देखा है जो निकाल दिए गए हैं और जब तक आप टैब बंद नहीं करते हैं तब तक वे आग नहीं लगते हैं निजी शून्य प्रारंभ करेंडेटाटेकपीठकास्टइनपुट (ऑब्जेक्ट प्रेषक, सिस्टम.विंडोज.इनपुट। TextCompositionEventArgs ई) {} निजी शून्य startDateDatePicker_TextInputStart (वस्तु प्रेषक, System.Windows.Input.TextCompositionEventArgs ई) {} निजी शून्य startDateDatePicker_TextInputUpdate (वस्तु प्रेषक, System.Windows.Input.TextCompositionEventArgs ई) {} निजी शून्य startDateDatePicker_SelectedDateChanged (वस्तु प्रेषक, SelectionChangedEventArgs ई ) {} क्या किसी के पास इसके लिए एक वैकल्पिक उपाय है? दयालु, पॅट मुझे यकीन है...

.net - Create Appointment with Multiple Recipients in Dynamics -

I need to make an appointment with many recipients in MS Dynamics. Note that I do not really want to save the appointment ... which should only be done after the user has saved the click. I just want to display the form with many recipients already added. If I use the URL for the appointment form: /activities/appointment/edit.aspx I I can specify the party id url parameter which is the dynamicm GUID for that person I want to add to recipients .... but what if I want to add many recipients? What is the method to do this with URL parameters? If not, is there no way in the form of onload JavaScript to the recipient in the form of a program? Is this a Javascript API hook for this? Thank you. No, you do not set more than one party by using CRM's PartyD / PartyDam query string parameters Will find Yes, there are onload hooks. . In the second example, you will see how he has set a lookup in the script. // Add the object to the array. LookupData [0] = Lookup Item;...

php - Why did this str_ireplace() work on a non ASCII string? -

Note: I think I know that maybe wrong, so please please let me know Correct :) I used the str_ireplace ('Ð ?? оР»Ð³Ð¾Ð³Ñ ?? Ð ° Ð' ',' ', $ a) Recommended to . I did not expect to do this work, but did it. I always thought that PHP has considered a byte as a character, so you should use mb_ * to get accurate results when using characters outside the ASCII range Function for I thought the Russian letter would take & gt; 1 byte each. I thought str_replace () will work because the bytes can be matched even if they are multibyte or not, as long as they are in order. I thought str_ireplace () would not work not because PHP does not know how to map non ASCII characters to their alternative case equivalents. But, it did done work. Where and how am I wrong? Give me as much detail as you can :) This works by making text less case by passing it locale For libc functions which are dependent on settings; Appropriate settings mean th...

.net - difference between windows installer 3.1 and 4.5 While creating SetUP Project Whic one to select when -

I am creating the app for the Win app in VS2010 Framework 4.0 Now my project According to the requirement of Microsoft. Before selecting NET Framework 4 (x86 and x64) (winning project properties) Now I am confused with Wind Installer To select (Windows Installer 3.1 / Windows Installer 4.5) As they are base OS applications will be installed or installed. ... what ..? See different Windows installer versions installed by default in different OS. If you plan to apply your application to Windows XP or Windows 2003 Server , select Windows Installer 3.1 , and if you select Vista or Windows 7 only, version 4.5 may be a better option.

Inserted Record not getting saved in MS-Access Database through C#.NET 2008 -

Hi, I am creating a Windows application in C #. met. When I enter a record in the MS Access database, it indicates that the record is saved, there is no error, but when I reload the project, the record I added was not found in the database. help please. Here's the code, I am using: dataset ds13 = new dataset (); OledbyDatard DR 13; Oleady Commands CMD 13 = New OLEDB Commands (); Cmd13.CommandType = CommandType.Text; Cmd13.CommandText = "Enter Due_Party VALUES (@ A, B, @ C, @ D, @ E, @ F, @ g)"; Cmd13.Parameters.Add ("@A", SqlDbType.Text) .Value = textBox11.Text; Con.ConnectionString = constr; CMD13 Connection = Conn .; Con.Open (); Cmd13.ExecuteNonQuery (); Con.Close (); Regards Sunil Kumar Check for how long you are involved ? I only ask because because of the delay in using ADO, something sticks in my mind but before I go to 'A' guaging, you can tell me edited Do: Okay it can be the same. I know ADO is talking about and not ADO...

security - How to protect session id and cookies without using SSL/HTTPS? -

As I understand, if I use SSL / HTTPS, cookies and session IDs as plain text on the wire Do not do it. An assistant can use packet sniffer to get their hands on this How can I secure it without using SSL / HTTPS? I anticipate that in order to take care of this solution, the customer will have to do something between both sides and the server side. My server side is Java. You can use something to encrypt cookies before sending them. Instead of a session identifier, you can use the requested IP address, or some other identifier, which is typically 100% specific to the user. Therefore, to set this up, you create a server key K . After this, you create the cookie as follows: keyhmac = HMAC (user name + end time, k) encrypted = ENCRYPT (data, kimanac) hmacenc = HMAC (user name + end) Time + data + session identifier, keymac) cookie = username + end time + encrypted + hmcc; Then, you can decrypt it later using the reverse process HMAC confirms that it was not compromised on yo...

php - Low volume Open source Message Board suggestions? -

Searching for a small amount, potentially 20-30 users, open source message / bulletin board. Obviously that supports our web server, something should be written in PHP / Python / Ruby etc. Any suggestions? Thanks, Nick And very much designed to handle very large boards, but it can be used with less traffic websites. All PHP

java - IBM Websphere MQ Monitoring -

I'm trying to monitor with Hayprik headquarters of some performance figures spring source of IBM WebSphere MQ. I am being provided for messages to be ensured and queue messages consumed by our local application and after the queue rate of some local queues, after the rate of repetition. Initially, attempts to obtain data using WMI and window display counters seem to be that counter is not available for any local queue (only temporary queue load) on one of our servers And the counter is available on the other but do not always make a return value correctly though WMI. I have used PCF (using MQIA_MSG_DEQ_COUNT ) which will not provide the requested counter. Mkyusisi ( DIVE QUEUE & amp; using DISPLAY QSTATUS ) that does not support Kyuiing rates - only the last message received / date and time. Has anyone ever realized how WMI and performance counters are able to work correctly or get alternatives to WMI, which can provide me with the necessary data? MQIA_MSG...

wxpython - python: Right Click on list menu not showing item selected -

In my ongoing effort to learn more about Python, I am trying to add a right click event to my MP3 Manager program. What currently works is that it shows the menu and all the options which is not working, the selected function is not being executed from the menu because I think it should be. This code is taken from 'how' on most other sites. Click here menu option is OK menu_title = ["Remove selection from list", for title in the menu by title: menu_title_by_id [wxNewId ()] = Title "Delete selection from system", "Select Selection", "Copy Selection", "Print Selection"] menu_title_by_id = {} The code to be run when the right click event is def WriteClickBab (self, incident): # what was the record self.list_item_clicked = right_click_context = event.GetText () ### 2 launcher wxMenu creates ### menu = wxMenu () For (ID, Title) in menu_title_by_id.items () :) ### 3. Attach the launcher pack with the menu. ### Menu.Pandend ...

java - Walk-around to actionPerformed() returning void -

I am trying to use the MVC design. In the model I wanted a method like this Public Boolean Conversion Some Data (...) {Boolean B; // Create a dialog with a fine button returns; } I want to correct the way the changes are made, the change is done in the verb, the method used in the right button. My problem is that I can not write b = true; As an OK button in the action, because I have to declare B. in final form to use it in the implementation (). What I have been doing is making the class Private class Mybolian {Boolean B; } and then public boolean changes some data (...) {myboli myubian; // Create a dialog with an OK button action () {// Data changes myBoolean.b = true; } Boolean B = myBoolean.b; Return b; } But I do not like about this solution and I wanted to know that it is true that what I did and if there was a better solution. Should I make a better exception if the changes were not made? (For example, if the user clicks on "Cancel" instead ...

java - Singleton vs Stateful remote EJB references in clusters -

I am using a vanilla jailbase 6 server with some projects to test the functionality of the cluster jebos environment. My problem is that if I transfer from one EJB reference (another type) to one instance of the same type in the other node in one node, then an exception has been thrown on the adoption method and stating that is not registered in the long_alphanumeric_key key cache for the specified bean (InfinispanStatefulCache) The thing is that instead of a state-annotation on the object I need to move Si Gltn is transferred object work incorrectly by using annotations, to implement shared methods Ijebi on the server, where it was built. The problem is that in this case there is a defect similar to HA-Singleton. All transferred references where the first HA-JNDI was obtained through a search on the tree. Some insights on what I'm trying to achieve: Am I currently presenting an example of Stateful EJB between a breed The reason for not using hack-singleton-singleton ...

iphone - UILocalNotification to execute an action -

Whenever it is removed, I have to do UILocalNotification to perform an action. What I really want to do is update the application. Application IconBadgeNumber programmatically. Even when the user exits the application, this problem is that badge numbers may have to be changed even if the user is not using the application. Is this possible? To update your app's badge number when user is not in the app, you UILocalNotification can set the following assets of the example: @property (nonatomic) NSInteger applicationIconBadgeNumber From the document: The default value is 0, which means "no changes." The app should use this property, increasing the current icon badge number, if any. You can not execute any code on the UILLocal notification fire, but if you can decide to tune the user to action button (fixed) ) Can execute the code if you set one, then the user will be returned to your app.

licensing - What's the best common way to put a JavaScript under GPL? -

I was thinking that I should add it as a comment in the Javascript file under the GPL license. There is another question, which GPL version suggests to you? I call it a lot of JavaScript / JQuery code: MIT and Dual licensed under the GPL license:

How to backtrace how main's called with gdb? -

The main , show how it is applied? If I get the right questions, so it may be that what you want: Set whether the backdrops should continue "main". Usually the "main" collar is not of interest, so GDB will eliminate the backtracks on the "main". Set this variable if you need to see the rest of the stack trace So if you set it to to (and libc available debug information, cf.), see if you look like a stack: ./functionPtr.c:8 (gdb) where # 0 main () at 1 0x0000003c47e2139d __libc_start_main (main = 0x40052b & LT; key & gt;, argc = 1, ubp_av = 0x7fffffffde28, init = & LT; customize & gt; out, fini = & LT; customize & gt; out, rtld_fini = & LT; customize outside & gt;, stack_end = 0x7fffffffde18) to libc-start.c: 226 # 2 0x0000000000400449 _start Switch to () around is to take it with the code: struct pthread * self = THREAD_SELF; / * Store old information * / Unwind_buf.priv.data.prev = THREAD_GETMEM...

java - Adding commas to output -

This is what it does: 2, 4, 6, Br> 8, 10 I want it to be horizontal: try 2, 4, 6, 8, 10 {PrintWriter fout = new PrintWriter (new buffed Vaire (new flumerwriter ("numbers.dat"))); For (Inti = start; I in method () method: i i Then when you call Output () , it will be displayed as a comma separated list. And for screen display while ((output line = fin.readline ())! = Null {{System.out.print (outputline + "");} System.out.println (); Alternatively, leaving the comma in the file will be left and displayed as int count = 0; (Output line = fin.lalline ()) = null) {if (count> 0) System.out.print (","); System.out.print (outputline); count ++;} System Out.println ();

runtime sounds overlap with actionscript 3 on flash 9 -

Problems with AS3, Flash Player 9: When using the following code. I can not stop a new SWF loaded after playing back swf on the swf ?? I have tried putting a sound mixer, stopping all the code on the action panel of the opening frame of all my SWFs. I have this code in my main SWF, the sounds are loaded in SWF. I am using Flash Player 9, AS3, Flash CS5 var Xpos: number = 53; Var Ypos: Number = 17; Var swf: movie clips; Var Loader: Loader = New Loader (); Var Default SWF: URRQuestion = New URRACC ("Swift / Animation 1.swf"); Loader.load (defaultSWF); Loader.x = Xpos; Loader.y = Ypos; AddChild (loader); BTNS Universal Function Function BTNClick (Event: Mouse Event): Zero {Remove Holes (Loader); Var newSWFRequest: URLRequest = new URLRequest ("swfs /" + event.target.name + ".swf"); Loader.load (newSWFRequest); Loader.x = Xpos; Loader.y = Ypos; AddChild (loader); } // Activate BTN listeners Part1.addEventListener (MouseEvent.CLICK, btnClick); Acti...

ini - check inifile exist delphi -

How can I check if an INIfile exists? In a special path and under a specific name? For example this way ... If FileExists ( 'C: \ yourinifile.ini') then ShowMessage ('c: \ yourinifile.ini exists')');

Why would I want to exit my silverlight Phone App -

It is with reference What if I had a page-A - & gt; Page-B (i.e., an Approach Navigation for Page-Page-B) On page-B, I have some controls that take me in Page-C, Page-D, Page-E, Page-F etc. If I am on Page-F, then by pressing the back key, I want the user to access Page-A (therefore, override on the onbank keyword). Now, on page-A, if the user repeatedly presses the back-key, he is then moved to PageB So, when I press the key on user page-A and it Since then the application can not get out This is not a consistent user experience. From the discussion, I think there is nothing right in it to get out of the application silver illumination. So, am I designing this application wrongly, where to show me a lot of There are sub pages, but I want the user to override the key to return to a main page. If I understand you correctly in a problem with circular navigation. In other words, you want the app to exit from "Page-A". In that case, you should definitely ch...

java - JTextArea does not show up -

आयात net.html parser.jericho। *; Import java.util। *; आयात करें java.awt.BorderLayout; Import java.io * *; Java.net आयात करें। *; आयात javax.swing.JFrame; आयात javax.swing.JPanel; आयात javax.swing.JScrollPane; आयात javax.swing.JTextArea; पब्लिक क्लास रेंडरटोटेक्स्ट जेफ्रेम का विस्तार करता है (स्थिर JTextArea _resultArea = नया JTextArea (100, 100); JScrollPane scrollingArea = नया JScrollPane (_resultArea); निजी अंतिम स्थैतिक स्ट्रिंग न्यूलाइन = "\ n"; सार्वजनिक प्रस्तुतकर्ता टेक्स्ट () {_resultArea.setEditable (गलत); // फ़ाइलें लिखने के लिए शुरू करने की कोशिश करें {FileReader fr = नया FileReader ("सी: \\ उपयोगकर्ता \\ उपयोगकर्ता \\ fypworkspace \\ FYP \\ abc.txt"); बफ़रेडडर पाठक रीडर = नया बफ़्टेड रीडर (एफआर); // प्रत्येक यूआरएल के लिए, यूआरएल की प्रक्रिया और एचटीएमएल फ़ाइल int नंबर = URL; स्ट्रिंग [] URL = नया स्ट्रिंग [numberofURL]; Int a; // प्रत्येक यूआरएल के लिए, प्रत्येक यूआरएल के लिए सामग्री // को स्टोर करने के लिए एक टेक्स्ट फ़ाइल असाइन करें, (ए = 0; ए ...

database - How can I restore a postgresql dump to a SQL Server instance? -

I've got a production app running on postgres, and I'm dumping a tar.gz file at night . I want to restore this dump to a different SQL Server database instance. Are there any automated (or indirect) ways to do this in an automated fashion? Yes, you can do DTS jobs to import from the dump on a timely basis.

memory management - introduction to CS - stored-program concept - can't understand concept -

I really try to understand Von Neumann architecture, but one thing I can not understand is that user How can I know the number in the computer's memory if it is a command or is this data? I know that there is a 'concept of stored program', but I have not understood anything ... Can someone explain me in two sentences? > Thnx! Just keep, the user can not see the memory address and can determine whether it is the command or the data It can be both. All in its interpretation; If the memory address points, it will be interpreted as an order. If it is referred to by reading instructions, then this data is there. The flexibility of this is that a program can write programs (or rewrite) in memory, which can be executed by setting program counter at the initial address. The modern operating system The limit of this behavior is being interpreted as commands, by keeping parts of memory

python - How can I conduct a poll through an irc bot? -

I have set an IRC bot through the socket. I've added some commands, but I want to add the "pole" function . Ideally, the bot will get the command with this format: ! Poll & lt; Name & gt; & Lt; Opt1 & gt; & Lt; Opt2 & gt; & Lt; Opt3 & gt; & Lt; Time & gt; At what time would I have to go about voting and end user checking after a certain time? Thanks in advance, Desperate Python Beginners. Edit: Thanks for the people, I went with using the Global Wars (I know, I know) because I did not know how to do this otherwise, thank you very much ! OK, I'm starting to get some wild with my Python I think That I can answer - though this is not the best answer. If you are planning to run multiple times, you can apply a dictionary that has many examples of custom classes like poles, here is a possible solution: class of politv (object): def __init __ (self): self.votes = [] self. Stoptime = "some date / time"...

PHP-MySQL 3 tables select, update, delete and insert linked with Foreign Key -

I have a problem in 3 InDebab tables associated with a foreign key in MySQL, my tables are: Tab 1 Name - Product PID (PK, Money, Auto Ink), Catalog_NO, PRODUCT_NAME, Composition, Size, Value, SUBCAT_ID (Foreign Key, Index, Built, Keyname-FK_ Products) Table 2 Name - Subcategory SUBCAT_ID (PK, large, auto inc), SUBCATEGORY_NAME, CAT_ID (fkey, bigint) Table 3 Name - Category CAT_ID (Pkey, bigint, auot inc), CAT_NAME 1. Selection And su What is the correct query for the user? The result should be shown in data by joining 3 tables: productpad, catalog_no, PRODUCT_NAME, COMPO, SIZE, PRICE, SUBCATEGORY_NAME, CAT_NAME 2 What is the correct way to update and delete associated records using a single query through a single form? 3.Will use a single HTML form through a single query field such as product name (input type = textx), catalog number (input type = text), composition (input type = text) Choose the size (input type = text), value (input type = text), subcategory (with t...

c# - How to go about creating an application for silverlight(desktop & web) as well as WP7? -

I am currently making an application for WP7 and I have received a lot of feedback about how to create similar applications ( If it is not) desktop as well as for the web. I have an application that there are questions about migrating the desktop with silver light to the desktop and silver with WP7 because I know that the feature is set between them Are there resources to start with such development projects? What are the methods available to complete this type of project, for example to create a reusable code library? Is it better to start with one platform on another? Is VisualStudio a project template designed for this type of development? Keep in mind that this is my first one, so any tips, gouches, references, or advice is appreciated. Some resources:

Object Reference not set to an instance - Twitterizer -

I am trying to get a tweet description using the TwitterIP API. Token Twitterizer.OAuthTokens () accessToken.AccessToken = 'XXXXXXXXXXXXXXXXXXXX' as a slow access. 'AccessToken.AvailabilityAct =' XXXXXXXXXXXXXXXXXXXX 'AccessToken = 'XXXXXXXXXXXXXXXXXX accessed token of cons cons. Consumer sign = 'XXXXXXXXXXXXXXXXXXXX' Blurred as Twitter. The last line in the code is giving me a "set of object reference object" for the tweeter response (Twitterizer.TwitterStatusCollection) = Twitterizer.TwitterStatus.Retweets (accessToken, '1234567') There is no need to declare the TwitterStatus class as a new Twitter class to use it. Where am I doing wrong? Update: at StackTrace: Twitterizer.Commands.RetweetsCommand.Init () in C: \ ProjectFiles \ twitterizer \ Twitterizer2 \ Methods \ Tweets \ RetweetsCommand.cs: Twitterizer on line 83.Core.CommandPerformer 1.PerformAction (ICommand 1 command) in C: \ ProjectFiles \ twitterizer \ Twitte...

mschart - Ms chart controls for automated report/metrics generation to image, web or win forms? -

क्या कोई कारण या अन्य जाने का कारण है? System.Web.UI .डाटाविज़्यूलाइजेशन बनाम System.Windows.Forms.DataVisualization मैं एक बिल्ड सर्वर के लिए एक प्रक्रिया का निर्माण कर रहा हूँ, जहां यह केवल एक छवि को चार्ट में आउटपुट करेगा रन-टाइम में प्राप्त एसक्यूएल डेटा पंक्तियों के आधार पर। मेरे पास किसी भी दिशा में निहित कुछ नहीं है, और दोनों दुनिया में अनुभव है, लेकिन कोई भी एमएस चार्टिंग में नहीं है। मुझे लगता है कि किसी भी तरह से जाने के अच्छे कारण हैं। हम गए WinForms मार्ग क्योंकि यह उड़ान भरने के लिए हमारे डेटा सघन चार्ट के लिए एक लंबा समय लगा। एक सेवा के साथ आप चार्ट को समय से पहले (हमारे लिए 5 मिनट का चक्र) तैयार कर सकते हैं और परिणामस्वरूप वेबपृष्ठ तुरंत लोड होता है। इसके अलावा इसका मतलब यह है कि अधिकतर हमारे डीबी को हर पांच मिनट में 1 बार कहा जाता है, जबकि प्रत्येक व्यक्ति जो वेब चार्ट को लोड करता है, डेटाबेस को व्यक्तिगत रूप से प्रभावित करता है और डीबी पर बहुत ज्यादा लोड होता है।

unit testing - How can I access relative paths in Python 2.7 when imported by different modules -

लक्ष्य: एक ही अस्थायी फाइलों को एक्सेस / लिखें, जब से आम उपयोगिता फ़ंक्शन का उपयोग किया जाता है विभिन्न अजगर मॉड्यूल। पृष्ठभूमि: मैं python का प्रयोग कर रहा हूं, जो कस्टम परीक्षणों के सेट को चलाने के लिए यूनिटेस्ट मॉड्यूल का उपयोग करता है जो कि पीएसएसआरियल के माध्यम से इंस्ट्रूमेंटेशन के साथ अंतरफलक है। क्योंकि मैं unittest मॉड्यूल का उपयोग कर रहा हूं, मैं आवश्यक चर को पास करने में असमर्थ हूं, जैसे कि सीरियल पोर्ट का उपयोग करने के लिए, यूनिटस्ट टेस्ट केस में। इसके चारों ओर जाने के लिए मैं एक मॉड्यूल बनाने की इच्छा रखता हूं जो स्टोर करता है और मसालेदार डेटा देता है। मैंने इस मुद्दे में भाग लिया है कि जब मैं test_case_1 () से get_foo () फ़ंक्शन कॉल करता हूं, तो यह test_case_1 () पर आधारित सापेक्ष पथ से मसालेदार डेटा को लोड करने का प्रयास करता है, न कि वास्तविक मॉड्यूल जिसमें get_foo () शामिल है। यह ध्यान देने योग्य है कि मैंने वैश्विक वैरिएबल्स का उपयोग करने पर विचार किया है, लेकिन एक मुट्ठी भर डेटा है जो मैं रन से चलाने के लिए बरकरार रखना चाहता हूं। जिसका मतलब है कि सभी अजगर...

c# - Common log4net logging for different instances of a dll -

I'm having trouble doing the login-innet the way I want to work. I have a class library Library.dll which is used by mine.exe and third party applications other .exe. I have another class library that is used for both Itil.dll and Mine.exe and Library.dll. Mine.exe and others Exe runs in parallel and I should use the same logfile as two examples of the library, it should be different than the logfile of mine.exe. Util.dll should be logged into the Library.dll logfile, when called from Library.dll, and the Mine.exe logfile is called from Mine.exe. Edit: I think it was a bit difficult to follow, this is how I want to work: To mine.exe Logs my.log other.xa does not log anything (third party application) my .exe - & gt; Library.dll log in C: \ Library.log Other. Exe - & gt; Library.dll log in C: \ Library.log Mine.exe - & gt; Login to Util.dll my.log Mine.exe - & gt; Library.dll - & gt; Util.dll log in C: \ Library.log Other Exe - & gt; Library...