Posts

Showing posts from January, 2015

c# serialport question -

I have a computer connected to my computer How do I get along with serial port Find out who on COM? Explode all COM ports and try to get recognition from each one is a minimal example below Better error checking etc. should be expanded. string [] sports = SerialPort.GetPortNames (); Foreach (strings port in esports) {var serial port = new serial port (); SerialPort.PortName = Port; SerialPort.Open (); SerialPort.WriteLine ("ATI"); // This port asks you to issue a similar string that you can match against var message = Console.ReadLine (); // Read Feedback} You may be able to use Win32_SerialPort and Win32_PnPEntity as well as WMI. I have not tried to see what information he gives back.

android - Application runs on eclipse emulator, but not others -

I'm new to Android app development but I have successfully assumed my first real application, it runs perfectly in Eclipse emulator. So I compiled it and tried to install it on the second emulator. It installs successfully, but it will not run at all. I'm not even sure that since the start of finding fault, everything works so well in eclipse. Can a resource refer me to help me start a problem solving problem? I think there may be something in the compilation, but I do not know. Thank you!

Javascript onsubmit clearcontent not working -

& lt; textarea onfocus = "javascript: clearContents (यह); this.cleared = true;" पंक्तियों = "5" cols = "40" id = "comment" नाम = "टिप्पणी" & lt;? Php if ($ vis ["username"] == $ pusername) {गूंज "अक्षम"; }? & Gt; & gt; ... & lt; / textarea & gt; & Lt; input onsubmit = "यदि (! This.comment.cleared) clearContents (this.comment); वापसी सच;" प्रकार = "सबमिट करें" नाम = "जमा करें" मान = "स्टेम!" / & Gt; फ़ंक्शन साफ़ करेंसंसाधन (तत्व) {element.innerHTML = ''; } यह अभ्यस्त काम है, और मैं इसे क्यों नहीं समझ सकता यह क्या करता है: सामग्री को साफ करता है अगर वह व्यक्ति द्वारा ऑनफोकस / क्लिक नहीं किया गया है स्पष्ट संविदाएं (दस्तावेज़.getElementById ('टिप्पणी')) आपको ऑनसबमिट को और gtc: से बाँध कर रखना चाहिए और इसे विनोदी ढंग से करना चाहिए , आदर्श ...

model - how can i generate a diagram from a rails project? -

I am trying to generate a rail diagram from a project with rail. But I am getting a rail: Command plugin was not found even after installing: sudo gem install roadrail What is the problem? Is there any alternative to that plugin? Thanks for your help The command is: Set up the Sudo Mani Railway Verify the road that the gem Sudo Gem list is installed by rail

large databases in sqlite - file size considerations? -

I am using a sqlite db which is very convenient and meets all my requirements at this point. Currently my DB size is 50 MB, but now I need to add a new table which will store large text blobs, which will be able to reach DB5 GB the following year. Will a 5 GB DB be able to handle the size? Any warnings in comparison with Isql, I am not a huge expert on the database, but most DB The related work I used to have used SQLite In my experience, making the database bigger, in itself should not take large performance hits. Naturally you will have more data, so be prepared to spend more time asking it! Consider this thought experiment: You have a table called mydata , which you use in DB all the time. Now, you add an unrelated table other data for mydata does not depend on information in your query other data . Even if you press the GBS data in other data , then you will not be impacted by any actual performance in using mydata . AFAIK, architecture supports this clai

Core Animation: resizing layer from just one side on iPhone -

I want to enlarge the size of a CALayer , it needs to be expanded from the left side (The right side should be kept) Setting the anchorpoint will resize the job in this way, but once I start animating, the way I want it is not the same Does Is anyone suggesting? Thank you, and noob- sorry for the question. Try to calculate a new condition based on the desired size, and at the same time the layer's Setting status as if you set your new limit.

Javascript syntax for abbreviating repeated access to same identifier -

I want to ask whether there is a formal way of describing the following code, through which we can re-open the same object without The object identifier typing can be accessed: myObj.render (1) .render (2) .print (); I was not told this when trying to make a question; I wanted to know if such a thing is possible in javascript or not, I know that I can do it in VB: myObj.render (1) if (foo == 'bar' ) .render (2). Print (); Thanks! Your first example of which name you are looking for can be easily implemented in this way : var obj = {rendere: function (arg) {// do something here ... come back; // key of the chains}, print: function () {warning ('print something ...'); }}; Obj.render (1) .render (2) .print (); Basically the render method is not possible to chanelity conditionally you want to do , Then you will give something like this

networking - Does more NICs on a server mean potential for more sustained concurrent I/O? -

If you are trying to create an application in which the highest possible continuous network bandwidth is required, many more duplicates For file transfer (not for streaming media), will 2 or more NICs be beneficial? I think your answers depend on your server and network architecture, and unfortunately they change can change. Whatever you are doing essentially is trying to remove the 'current' barrier in your entire application or design, which you may have in the current NIC (if you actually confirm this I will close it and check if your NIC can banned some other thresholds before reaching the limit). Some common points on this type of performance optimization: / P> If you have the option of upgrading the current NIC to a higher bandwidth interface then it is checkable - This is a simple AR solution for you if it avoids adding weight / balance of hardware / software / configuration to your application. As mentioned above, you need to make sure that all yo

ASP.NET how to access public properties? -

I have two pages Page 1.aspx and page2.aspx both have code with partial organs i see page1.aspx But how do I use public property messages on page2.aspx? public string message {get; Set; } If there is a master page, and the other page that uses it, . Master page & lt; Body & gt; & Lt; Form id = "form1" runat = "server" & gt; & Lt; Div & gt; & Lt; ASP: literal runat = "server" id = "text manager" & gt; & Lt; / ASP: Literary & gt; & Lt; Br / & gt; & Lt; Asp: ContentPlaceHolder id = "ContentPlaceHolder1" runat = "server" & gt; & Lt; / ASP: ContentPlaceHolder & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Body & gt; And the code behind public partial class Dokimes_StackOverFlow_MasterPage: System.Web.UI.MasterPage {public string TextToMaster {get {return txtOnMaster.Text; } Set {txtOnMaster.Text = value; }} Secure Zer

What are the point of header files in C? -

संभावित डुप्लिकेट: क्या एकमात्र कारण हेडर फाइलें सी में मौजूद हैं, इसलिए डेवलपर जल्दी से देख सकते हैं कि कौन-से कार्य उपलब्ध हैं, और वे किस तर्क ले सकते हैं? या यह कंपाइलर के साथ कुछ करना है? क्यों कोई अन्य भाषा इस पद्धति का इस्तेमाल नहीं करती है? क्या यह सिर्फ मुझे है, या क्या ऐसा लगता है कि फ़ंक्शन परिभाषाओं के 2 सेट होने से त्रुटियों के लिए अधिक रखरखाव और अधिक जगह मिल जाएगी? या हेडर फाइलों के बारे में जानना चाहिए कि हर सी डेवलपर को कुछ जानना चाहिए? हैडर फ़ाइलों को घोषित करें फ़ंक्शन और चर जो उपलब्ध हैं हो सकता है कि आपके पास परिभाषाओं (= .c फाइलें) तक पहुंच न हो। सभी पर ; सी पुस्तकालयों में कोड के द्विआधारी केवल वितरण का समर्थन करता है।

c# - Compile error: 'The type or namespace name 'Runtime' does not exist in the namespace 'MyAppNamespace.System' (are you missing an assembly reference?)' -

I am writing a WPF client which uses services from ASP Web Service (VS 02010, NAT 4.0). It was working fine till yesterday when I suddenly got the compiler error above. Double-clicking on the error takes me to reference.c and anything written on it is: (The 'runtime' object is highlighted as not in MyAppNameSpace.) I have tried to googling it and adding service context and adding assemby reference again, but nothing else I'm completely trapped Reference.cs have been automatically generated and I still have to be VS2010 It's relatively new, so I'm not sure where to go with this. Can anyone point me in the right direction by expecting ...? I had the same problem after a few hours trying to solve it, I realized that my There was a class in the library called the system. What a cock

c# - Are there any good version control programs for a Windows box that do not have to be installed? -

On my work machine, I do not have permission to install anything, and surprisingly, any version control software package Not set up I am using VS2008, and was hoping to work on the basis of SourceSafe. I've talked to a network administrator, and I can find "We do not have any version control installed." Are there some good ways to go about this, or do I need to cut a bullet? The cover is running on Windows from the USB stick.

c# - A problem with .NET 2.0 project, using a 3.0 DLL which implements WCF services -

I have created a client to access my WCF services in a project, and all classes that work with the services They get from this class: / P> Public Essentials Service Client & lt; TServiceClient & gt; : IDSposable where TServiceClient: ICommunicationObject This is the class where I like to settle, the client is called, logging etc. Some common stuff that all service classes normally do. Everything worked fine, as long as I did not get the job done to apply it to an older system. When I used this project (DLL) in any other project, which can not give me the System.ServiceModel reference, I have found a problem (because it is an old.NET 2.0 software Which I still maintain, and upgrading it to 3.0 out of the question). Here, if I leave where TServiceClient: ICommunicationObject the project may be created, but can not use ServiceClient , for example, client So, my only solution is to leave the statement to on code or .close () or and rewrite the service

firefox - html5media library doesn't work on FF 3.6.3 -

Am I facing only one problem? I'm using it and they are not in plays in Firefox 3.6.3, although it plays on the latest Safari, Chrome, Opera, and IE. At FF 3.6.3, it shows video and audio with them bigger than X. I am using this library on my site and have considered this issue too. I do not see any errors in the error console. My guess is that the video of the Ogg version (version of Firefox used) was not correctly encoded. (Or at least Firefox is not in a recognized way), so when Firefox goes to run it, it fails. It works in other browsers because they use the mp4 format, which is correctly encoded. My HTML5 video playback on Firefox 3.6.3, so I believe this is a bug in Firefox. What are you using to encode the Ogavi format of the video on your site?

PHP Array Efficiency and Memory Clarification -

PHP में एक अर्रे घोषित करते समय, सूचकांक क्रम से बनाया जा सकता है ... Ie सरणी [1] = 1 सरणी [1 9] = 2 सरणी [4] = 3 मेरा प्रश्न इस तरह एक सरणी बनाने में, क्या 1 9 के बीच की नल के साथ लंबाई है? अगर मैंने ऐरे प्राप्त करने का प्रयास किया [3] तो क्या यह अनिर्धारित होगा या एक त्रुटि फेंकता है? इसके अलावा, यह स्मृति को कैसे प्रभावित करता है क्या 3 अनुक्रमणिका की स्मृति को 1 9 में लिया जाना चाहिए? इसके अलावा वर्तमान में एक डेवलपर ने 3 एरेज़ असफलअपडेट्स [] असफल प्रविष्टियों [] असफल प्रविष्टियों [] के साथ एक स्क्रिप्ट लिखी है क्या यह अधिक कुशल है ऐसा करो, या इसे कई उप एरे को नियंत्रित करने वाली एक साहचर्य सरणी के मामले में करें "विफलताओं" सरणी () {["updates"] = & gt; सरणी () {[0] = & gt; 12 [1] = & gt; 41} ["हटाए"] = & gt; सरणी () {[0] = & gt; 122 [1] = & gt; 414 [1] = & gt; 43} ["आवेषण"] = & gt; सरणी () {[0] = & gt; मेमोरी फफिफ़ी वास्तव में कुछ नहीं है जो आपको PHP में चिंता करने की ज़रूरत है। जब तक कि आप व

crash - Application quit unexpectely when I run it with Instruments iphone sdk -

My application is crashing when I launch it in the tool. No message is shown when I'm ignoring it. What could be the reason behind this? The application is running fine in simulator. I have cleaned it several times by restarting Xcode, Tools, Tools, Mac or Combination or all of them.

iphone - Updating UIView subclass contents -

I try to update a UIView subclass to draw a personal pixel (rectangle) after calculation in the MandelBrowSet set I am here. / P> I am using the following code, but I am getting a blank screen: // drawingview ... - (Zero) Direct: (CGRact) rect {CGContextRef reference = UIGFixGetCourtContacts (); CGContextSetRGBFillColor (Reference, R, G, B, 1); CGContextSetRGBStrokeColor (Reference, R, G, B, 1); CGRTact = CGRactMake (X, Y, 1,1); CGContextFillRect (reference, shape); } ... //viewController.m ... - (zero) viewDidoad {{drawingView setX: 10]; [DrawingView Set Wi: 10]; [DrawingView SetR: 0.0]; [DrawingView Set G: 0.0]; [DrawingView Set B: 0.0]; [Super viewedload]; [Drawing view setnaides display]; } Once I understand how to display a pixel, I would like to know how to add another pixel to know how to update the view. To change all the variables once, how do I keep the current view, but how to add another pixel? Thank you, Brett ccctntxmovepoint (reference, exclord, wic

c - Video packet capture over multiple IP cameras -

RTP is the client. We launch a pouch for each camera that installs the RTP session and starts recording the packets received using RickForm () calls. But testing is being done with more cameras, about 25 (25 steps), the recording of the file is fine for 15 to 20 minutes and so the recording only stops the application is still running In its more than a month, we are endeavoring with various implementations, but nothing is helping. Please provide suggestions. We are using the CentOS 5 platform "record" Writing data in the meaning file? How can you control access to files? You do not have many threads that are trying to write to everyone at the same time. So Elon's comments seem fair. There are problems in your writing access control machanism.

Uploading Photos without album-id using facebook-graph-api -

When I use the Facebook graph AP to upload a photo, it seems that I have to decide Which photo album is uploading When using the old graph API, if I have not specified an album, then an album specifying my app will be created by the user and the photo will be uploaded there. (I.e. the 'super app photo'). Can I do this same behavior with the graph API (without a new album without my album being created to create a new album)? Or, can I use the graph-api to upload a photo after authenticating through the oauth2.0 flow? Graph API is the same behavior. They make albums on the app's name.

iphone - Can you see the values of NSUserDefaults anywhere in the xcode debugger? -

Can you see the value of NSUserDefaults naywhere in the Exode Debugger? Just wondering is this possible? thanks I do not have them in debugger There is a solution to see, but I can offer it: NSUserDefaults * defaults = [NSUserDefaults StandardUserDefaults]; NSLog (@ "% @", [default dictionary report]); For some caves-debugging :) EDIT: As David comments in the comments, we can now do this in the debugging console: po [[NSUserDefaults standard user default] dictionary report] Swift 3.0 po UserDefaults.standard.dictionaryRepresentation () < / Code>

string - javascript - switch not working -

फ़ंक्शन FM_log (स्तर, पाठ) {/ / कैओनो नांसेज लॉग कुल स्क्रिप्ट हे लॉग लॉग var = false ; स्विच (स्तर) {case "addtoprio ()": लॉग = सच; मामले "वैकल्पिक" (")": लॉग = गलत; मामले "sendtroops ()": लॉग = गलत; Defalt: log = false; } अगर ((लॉगोटल == गलत) & amp; amp; (लॉग == सच)) GM_log (होराएट्यूअल () + "-" + + + "," + टेक्स्ट); Else if (logTotal == true) GM_log (होराएट्यूअल () + "-" + + + + "," + टेक्स्ट); } यह तरीका कैसे काम करता है यह एक तरीका है? < आपके स्विच के लिए break स्टेटमेंट, और "डिफ़ॉल्ट" की उचित वर्तनी आपको अपने रास्ते में मदद करनी चाहिए:) फ़ंक्शन FM_log (स्तर, पाठ) {// कैसो नोन सेजा लॉग कुल स्कोल्ले ओ कू लॉग लॉ var = लॉग; स्विच (स्तर) {case "addtoprio ()": लॉग = सच; टूटना; मामले "वैकल्पिक" (")": लॉग = गलत; टूटना; मामले "sendtroops ()": लॉग = गलत; टूटना; डिफ़ॉल्ट: लॉग = गलत; टूटना; } अगर ((लॉगोटल == गलत) & amp; amp; (लॉग == सच)

java - how to send JSON data with server error response code 500 -

I wanted to know whether there is a way to send JSON data with HTTP response code 500. In fact, I want my rest client to know that there is some error on the backend and simultaneously send a JSON error data structure like this. {"Code": "1001", "desc": "some error description"}, {"code": "1002", "desc": " Some other error descriptions "}]} This is the following zaby stack = Java6 / Jx-RS / jersey / tomcat if not, then custom with JSON data One way to send feedback codes is to basically look for the JX-RS API, that you can send JSON data with 200 OK ?? Any ideas ?? I'm guessing that the rest will be the same, right ?? You just need to set HTTP header response

javascript - CSS Dynamic Margin on Window Resize -

Can I dynamically ensure that the content is always centered in the window pane on this website? Now it uses a static margin. On the AIMS class, and it uses the jquery tool. Can I just do it in CSS or CSS and Javascript? Thank you, blank Let's say that You want to extend a container to 900px, in which I have used the most cross browser: div # container {width: 900px; Status: Relative; Left: 50%; Margin-left: -450px; } It goes to the center of the X axis and lives there regardless of other elements of that page! Of course it works only with a certain width and is not dynamic!

php - Memcached getDelayed alternative implementation -

I would like to use getDelayed on the PHP Cached Extension, but I think this is the right way To Now you ask for some keys and then retrieve them all from fetch () and fetchAll () . But imagine a situation where I need to recover the 15 keys used in different parts of the page, which I do not already know, but I can ask different items to give the list. What I would like to do is give Memcached frequency this list (each component will give its part), then later when I need to retrieve them from frequency, but they are not all done at once: each component takes it. Actually if I had to implement it then I was prohibited from using the only getDelayed and a bookGet ($ keys) method Implementing where you add the keys to the book (which in fact call getDelayed to handle these three issues, and redefine the matches : The key is booked and recovered -> return value; The key is booked but the rear -> Go and force to bring the booked keys and return the correct v

file - How do i monitor a directory creation on linux using ruby and get notified via email -

then indicates that I already have the directory / source / version / 1, / source / version / 2, / source / Version / 3 I will monitor a new directory / source / version / 4, and send an email if any such directory is actually created. The Linux kernel subsystem that allows a file to receive notifications of file system changes, such as directories The construction, which is called, is called. There is one, but there is not much documentation available for this. There is a daemon to monitor file system changes (using inotophy). There is a client that produces the output in the console whenever there is a change. You can pipe this output into your Ruby script and parse it.

java - On system.out, clarification needed -

I was looking at someone's code and saw that he repeatedly declared PrintStream out = system .External; and later outside. Print ("blah"); I really thought that it was very clean, is it a common thing? Was he just fancy? This is a proper approach to basically system.out Creating surname. Less typing. Later the code was changed to separate printstream code. Perhaps a performance improvement, though it would be negligible.

windows - How can I make an alt+number global hotkey in Python? -

I want to create a global hotkey, paste some strings in the clipboard, with Alt + 1, 2, ... . How can I do this? This provides a fairly easy way using the Windows keyboard hook.

iphone - List show/add/remove View -

Searching for some of the best practices in the IE list on iPhones in which items are added / modified / deleted items are user-friendly Please refer to some sample codes or articles to create an interface. The main application is the tab bar application and one of the tabs showing item management. The item that contains three text items can be a label first, it is small, the rest if it is not very complicated then I would like to show or show it below with small fonts when the user enters the item in edit mode ... Not sure how to design all this and what scene to use. You must use UITableView to display the list. Standard tableview editing is very clean You can find UI best practice and code samples.

asp.net - How can resolve Error: "Could not load type 'Microsoft.SharePoint.WebControls.SPGridView" SharePoint 2010? -

After creating a web part in the SharePoint 2010 server, the following error occurs. Web Part Error: unexpected exception was thrown by the execution method of user code cover partial Trust app domain: SystemkWebkHttpUnhandledException: the 'throw exception System.Web.HttpUnhandledException' type ---> System.TypeLoadException: Could not load type 'Microsoft.SharePoint.WebControls.SPGridView' from the assembly. Microsoft.SharePoint, version = 14.900.0.0, culture = neutral, publicKeyToken = 71e9bce111e9429c '. ListMenuSample.ListMenuSample.ListMenuSample.CreateChildControls (on System.Web.UI.Control.EnsureChildControls on System.Web ()) on System.Web.UI.Control.PreRenderRecursiveInternal () () on System.Web.UI.Control.PreRenderRecursiveInternal System.Web.UI.Control.PreRenderRecursiveInternal (on System.Web.UI.Page.ProcessRequestMain) (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) on .UI.Control.PreRenderRecursiveInternal () --

.net - How to make Form Transperent in windows c#? -

How to make form transparents in Windows C? I have a GridView that can be seen. Set the "Transparency Key" property and property of the "BackColor" form in the same color. You also need to make sure that no other control is the same color ... especially the images ...

delphi - Detecting a stale Mutex -

Is there any technology or device available to detect such type of deadlock during runtime? Try this picture in a worker thread (one of the many, usually 4-6) waitforcaling object (MyMux); DoSTuffThatMightCauseAnException; Except release Mitux (MyMute); End; Or more generally, there is a design-pattern to avoid these types of bugs? I have coded the code in small house after long running hacking < P> Trying to use a better coding style / instead of trying / mute exchange (or like any other way to release that resource for that matter), i.e.: waitforescaling object (myMutex) try; Try DoSTuffThatMightCauseAnException; Finally releasemoots (mime); End; Except ... end;

Combining multiple condition in single case statement in Sql Server -

According to the following statement, let me know a case ... ed statement in SQL Server If PAT_ENT.SCR_DT is not empty and PAT_ENTRY.ELIGIBILITY is zero, then please help me fulfill the following condition for a complex case ... END statement. If display PAT_ENT.SCR_DT is not empty and PAT_ENTRY.EL is equal, then display 'error' if PAT_ENTRY.EL is yes and if DS.DES is equal to zero or off, then display 'Active' if DS.DES Thank you in advance. You can place the condition after the WHEN section, such as: < / P> Select when PAT_ENT.SCR_DT is not empty and PAT_ENTRY.ELIGIBILITY is zero 'favor' WHEN PAT_ENT.SCR_DT is not empty and PAT_ENTRY.EL = 'no' then 'error' when PAT_ENTRY. EL = 'yes' and ISNULL (DS. DES, 'off') = 'OFF' then 'active' when DS DES = 'N' then 'Initial Period' when the DS DES = 'Y' then 'complete' to end .... Of course, it can be argued t

Deny entering special character in textbox using jquery -

How can I deny the user by entering special characters in the text box using jquery? Special characters are like this? * [Or] I think you get it only by using javascript Key in the text box's keypay function, call function alpha pneumatic (IE, IELFonally) {// Copyright 1999 Idaux, Inc. Http://www.idocs.com var key = [e. Kikode || E.H.H.]; Var KITCHER = String.lightcode ([E.C.code || EHHI]]; Catcher = Insect. Lower case (); If (isAlphaonly == 'true') checkString = "abcdefghijklmnopqrstuvwxyz"; Else check string = "abcdefghijklmnopqrstuvwxyz0123456789"; If ((key == zero) || (key == 0) || (key == 8) || (key == 9) || (key == 13) || (key == 27) return truth; And if (((Checkstring). Indexoff (kitter)> 1)) true return; Second false return; }

html - Can i set two different kind of actions on one form? -

O People - I'm building a web site. In it, there is a page on which I have a form, so I want to do two things on it on the same data. 1) It should be stored in the database. 2) He should send the form data to an email account. I know that I can do this if I use php of the "mail" function and on the same php file, I can store it but I do not want my mail to go spam. [If I use the mail function then my mail users are going to email as spam] There is no way I can perform two different actions on the same form data . And what is another way to do this? btw i am using Drupal-6. Thanks in advance nits. Edit: I do not want my mail to go in the form of spam. I am sending mail using this kind of code .... & lt; Form action = "http://www.bluehost.com/bluemail" enctype = "multipart / form-data" method = "post" & gt; Name: & lt; Input type = "text" readable value = "me" & gt; & Lt; Br>

c# - Replacing a C++ ActiveX component with a .NET implementation? -

In order to communicate with me, existing managed and unmodified software using an ActiveX component supplied by a third party But now it is necessary that this communication can be done through my application. Ideally I'm one. I am able to install NET components which will expose the same interface, and will be usable as a drop-in replacement. To ensure that my implementation of the interface is 100%, is the binary compatible with the existing object? How can I ensure that applications should use my implementation of interface instead of legacy implementation? Is it just a matter of recording my implementation and canceling heritage? How do I make sure that this is a "drop-in" replacement, and no changes are needed in existing software How can I not ensure that unmanaged code can be used without any problem? Note: I am able to use that .NET 4.0, if that will make things easier. Edit: The bounty will move here after 2 days. Use the

javascript - Is it good to use JQuery UI themes in a big high traffic website? -

क्या एक उच्च यातायात वेबसाइट लागू करते समय JQuery UI के उपयोग के लिए एक अच्छा तरीका है? क्या मेरी वेबसाइट की आवश्यकताओं के आधार पर थोड़ा सा संपादित करना और कस्टमाइज़ करना आसान है? क्या इसकी कोई प्रसिद्ध समस्या है? ध्यान दें कि मैंने वहां विषयों की जाँच की और कुछ अच्छे संपादन के बाद उनमें से कुछ देखे। हमारे पास डिज़ाइन फिट हैं। मुझे पूरी तरह से यकीन नहीं है कि आप किस बारे में चिंतित हैं, लेकिन मैं लगता है कि यह स्पष्ट करेगा कि क्या JQuery UI करता है और आपके लिए नहीं करता। "प्राइम-टाइम के लिए तैयार?" हाँ। JQuery UI के विषय बहुत लंबे समय से रहे हैं और कोई चीख-टू-द-टू-टू-टू-टू-टू-टू-द-प्रोजेक्ट मुद्दे नहीं हैं। कुछ ज्ञात मुद्दे हैं, मुख्यतः उन्नत CSS3 के मुद्दों के साथ। उदाहरण के लिए: आईई 6 को छोड़कर सभी ब्राउज़रों को CSS3 से राउंड-कॉर्नर समर्थन मिलता है। JQuery UI थीम इस सुविधा का उपयोग करते हैं यदि आप IE में गोल कोनों चाहते हैं, तो आपको एक अतिरिक्त प्लगइन प्राप्त करना होगा जो IE के लिए इसके आसपास काम करता है, विशेष रूप से यह काफी आसान है। JQuery विषयों की गैर-ब

html - Automatic scroll to div using #div in url not working with url variable -

मैं स्वत: स्क्रॉल करने की कोशिश कर रहा हूं: /index.php# Tabletabs2? Contact_added = 1 जब मैं उपयोग करता हूं: /index.php#tabletabs2 यह काम करता है। मेरी यूआरएल में कैसे एक व्हेरिएबल और ऑटो स्क्रॉल काम हो सकता है ??? क्वेरी यूआरएल का हिस्सा # से पहले होना चाहिए। ब्राउज़र केवल सर्वर पर # से पहले भाग भेजते हैं। इसके बाद का भाग तत्वों को अपने आईडी या नाम विशेषता के माध्यम से, उदाहरण के लिए ऑटो-स्क्रोलिंग के लिए है विशेष रूप से विवरण

python - SQLAlchemy: How to group by two fields and filter by date -

Then I have a datestamp and a table with two fields that I need to ensure they are unique in the previous month. . table.id table.datestamp table.field1 table.field2 There should not be a duplicate record with the previous field 1 + 2 The steps given in my head are: Group by two areas To ensure that the previous month's data, note that this unique group is not Happen. I have found this far, but I do not think it works: result = session.key (table) .group_by ( \ Table.field1, table.field2, func.month (table.timestamp)) But I am unsure of how to do this in the sqlalchemy can someone advise me? Thanks a lot! Also see the right direction, inline annotations: qry = (Session.query1 (table.c.field1, table.c.field2, ##Sprightime * works on sqlite for year-month; # @Todo: Proper work for mysql (as it is in question) # It is also unclear that only part of the month is sufficient, so that May be included in May 2001 and May -2009, or FREC should be used on

asp.net listview showing data from related entity and changing it -

I am using the Entity Framework. The unit of my model is tblGameInfo, where there are tblPlayer1 and tblPlayer2 in navigation properties, which are related to the unit TBplayer. I have a list view on my page, where I want to show the game information along with the names of the players. I have found that in the list view I should have an example: & lt; Td> & Lt; Asp: Label ID = "tblPlayer1Label" runat = "server" text = '& lt;% # Eval ("tblplayer1.FirstName")% & gt; / & Gt; & Lt; / TD & gt; & Lt; TD & gt; & Lt; Asp: label id = "tblPlayer2Label" runat = "server" text = '& lt;% # gate name (Eval ("tblplayer2.id")) & gt; / & Gt; & Lt; / TD & gt; But this does not work, I did not find anything in a list view. I have tried many different options but one is not able to do some work, maybe some simple mistake but I am new to asp.net and can not get it. Th

url rewriting - Passing URIs as URL arguments in Drupal 6 -

I am trying to pass the full URI as a parameter with a clear url. I have set the hook_manu () like this: function mymodule_menu () {return array ('page /%' => array ('title' => 'debipedia display Test ',' page callback '=>' mymodule_dbpedia_display ',' page logic '=> array (1),))); } and in the page callback: function mymodule_dbpedia_display ($ uri) {// Make an HTTP request for this URI // and then submit some Doing things return $ output; } I am hoping to pass a complete URI (such as "" ") on my page callback. I could probably use $ _GET to remove the entire query string, but I think I'll get more 'Drupal' solution I'm hoping. Any suggestions? Instead of using class = "text"> itemprop = "text"> % Menu_trail . % menu_trail will give the remaining URL as a single string in which the menu callback will be passed in your exampl

windows - How to set webcam parameters programatically on Microsoft Lifecam Cinema (e.g. switch off autofocus) -

Microsoft Lifetime Cinema Software has many options of focusing, exposure and so on. I have to control the program for a machine vision project. How can this be achieved? MATLAB Toolbox for Image Acquisition allows access to the full functionality of the box life such as Attention. However, the driver provided is a problem that refuses to deal with Microsoft professionals - they claim that this is MATLAB which is a problem. So at the moment I can not control the brightness and exposure, two parameters should be accessible.

c# - How to create NAMED-PIPE in .NET-4? -

अपने सी # एप्लिकेशन में .NET-4 में NAMED-PIPE कैसे बनाएँ? नामांकित पाइप क्लाइंट बनाने के लिए यहां कोड का एक टुकड़ा है, इसे उत्तर से उठा लिया गया है और मैंने सी + + और सी # के बीच संचार करने पर उत्तर दिया है। पाइप्स सिस्टम का उपयोग कर; System.Text का उपयोग कर; System.IO का उपयोग कर; System.IO.Pipes का उपयोग कर; नेमस्पेस सीएसपीइप {क्लास प्रोग्राम {स्थैतिक शून्य मुख्य (स्ट्रिंग [] एआरजीज़) {नेम्डपिप क्लाइंट स्ट्रीम पाइप = नया एनैडपिप क्लाइंट स्ट्रीम ("।", "हायपरपइप", पाइप डायरेक्शन। इनऑट); pipe.Connect (); (StreamReader rdr = नया स्ट्रीमरीडर (पाइप, एन्कोडिंग.यूएनकोड)) का उपयोग करना {System.Console.WriteLine (rdr.ReadToEnd ()); } कंसोल। रीडके (); }}} पर क्लिक करें

dependencies - How do I get a list of the classes compiled into my Flex app? -

संभव डुप्लिकेट: मेरे पास एक परियोजना में कई फ्लेक्स अनुप्रयोग हैं, और मैं जानना चाहता हूं कि कक्षाओं (और आदर्श रूप से, अन्य परिसंपत्तियों) की एक सूची प्राप्त करने का कोई तरीका है, जिसे प्रत्येक एक में संकलित किया जा रहा है मुझे यह सुनिश्चित करने का एक आसान तरीका चाहिए कि मैंने चीजों को अलग रखा है और अनावश्यक निर्भरताएं नहीं हैं कोई विचार? मैं फ्लैश बिल्डर 4 चला रहा हूं। एक grep के माध्यम से आयात? $ grep -R 'आयात' src / | Awk '{print $ 2}' | | Sort -u flash.events.ContextMenuEvent; flash.events.Event; ... $

c# - representing an XML config file with an IXmlSerializable class -

I am writing in C # and representing an XML configuration file via the IXmlSerializable class I am trying to do How can I represent nested elements in my config file, though, such as logLevel : & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; Logging & gt; & Lt; LogLevel & gt; Error & lt; / LogLevel & gt; & Lt; / Logging & gt; & Lt; Credit & gt; & Lt; Users & gt; User123 & lt; / User & gt; & Lt; Host & gt; Local Host & lt; / Host & gt; & Lt; Password & gt; Pass123 & lt; / Password & gt; & Lt; / Credibility & gt; & Lt; Credit & gt; & Lt; Users & gt; User456 & lt; / User & gt; & Lt; Host & gt; My.other.domain.com & lt; / Host & gt; & Lt; Password & gt; Pass456 & lt; / Password & gt; & Lt; / Credibility & gt; & Lt; / Configuration & gt; There

.net - How to debug SqlDataSource -

I am testing my site against attacks of SQL injection and I will locate the SQLDitas messages sent to the SQL server . How can I do this or get as little as I can? SqlDataSource uses internally parametrized queries and is generally sufficient to avoid SQL injection is.

c# - Practical differences between using TPL and Async Pattern -

I am using any kind of methods to deal with long lasting tasks. Using each of these can be accomplished, but I want to tell about what I want to do. I have a set of HTTP-related methods, retrieving some pieces of information. It is a part of the larger system inside a long-running service (hence it is not a few, throw-away codes sometimes). Generally, which approach is better, according to the incubator and maintenance: when the data is prepared with the use of the initial / end / uninterrupted callback mechanism, or firing events inside the work I hope I am clear enough .. I thanks , using the EventArgs classes derived for each object. Class = " Post-text "itemprop =" text "> Using TPL Tasks in general is very easy. In your case, make them using the factory and langering options. I am not sure about the events though. Why is there no loop or some similar process in request / rprocation? You are already on a thread.

xslt - The elements do not fall into document('') -

& lt;? Xml संस्करण = "1.0" एन्कोडिंग = "विंडो -1251"? & Gt; & Lt; xsl: स्टाइलशीट संस्करण = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/transform" & gt; & Lt; xsl: आउटपुट विधि = "html" इंडेंट = "नहीं" एन्कोडिंग = "विंडो -1251" / & gt; & Lt; xsl: टेम्पलेट मैच = "/" & gt; & Lt; xsl: प्रत्येक चयन = "दस्तावेज़ ('') // w" & gt; & Lt; xsl: मान का चयन करें = "@ ई" / & gt; & Lt; / XSL: के लिए-प्रत्येक & gt; & Lt; / XSL: टेम्पलेट & gt; & Lt; my: अनुवाद xmlns: my = "my: my" & gt; & Lt; w ई = "नाम" r = "नैशनल" /> & Lt; w ई = "मॉडल" r = "मोंडल" / & gt; & Lt; w ई = "वर्ष" r = "Год" / & gt; & Lt; w ई = "ग्लास_प्रकार" r = "Тип" / & gt; & Lt; w ई = "स्कैनोड" r = "स्कंकडा" /&g

wcf binding - WCF message encryption -

Is it possible to host a WCF service in IIS, access it on HTTP and encrypt the message body using the wsHttpBinding configuration can be done? Yes, a protocol that supports Message Security and WS-Security Standards will enable you to encrypt Message - this is actually the default setting, too. For more information see, and how to secure your messages using a Windows credential or X.509 certificate as a "shared secret" between the client and the client. In order to ensure encryption for the server

android - How to adjust line height in TextView with multiple type sizes? -

I have a textView that has a span label, string contains a bunch of text, the first word typing double Repeats as The problem is that the line between the first and the second line is larger than the space line, before the differences between the rows coming out due to the increase in word size. The span label was created using the following code snippet: / / value foursway text = "$ 30 to pay the price To reduce the number of laborers and employees, to pay per person, and for some time. " Last pattern value ridge x = Pattern.compile ("^ (. [0- 9] +) \\ s. *"); Last Meter M = Value Rex. MATTURE (text! = Zero? Text: ""); If (m.matches ()) {text = New SpannableString (text); (SpanBolString) Text) .setSpan (New Relative Lessons (2), 0, M. (and) (1), Spanable. SPAN_EXCLUSIVE_EXCLUSIVE); } How can I fix my textview so that all the lines have the same distance? You can try to use one of these textview properties: android: lineSpacingMulti

physics - Vertical circular motion : time(x/y) versus velocity equation -

I wanted to simulate the following through the animation: a certain velocity at the lowest point of a ball underneath Starts from rolling in a vertical circular loop and its velocity permit. For this, I wanted to find the velocity / X / Y vs. time equation. If the ball has mass: 5 kg, radius of circular loop = 10 meters, and the starting speed of the ball is 200 meters, its velocity and position (x, y) will be after 5 seconds? Thank you. Sliding case ball with a point-particle In this case we are not worried about the rotational energy and it is assuming that the ball is actually a point particle. Then, to stay on top of the ball, the position of the central force must be satisfied: m * v_top ^ 2 / r = m * g Such a v_top = sqrt (r * g) is determined by the minimum initial velocity: 1/2 * m * v0 ^ 2 & gt; = 1/2 * m * v_top ^ 2 + m * g * 2 * r v0> = sqrt (5 * r * g) It is similar to peat, except that it is To remain on top forgot the position o

regex - How to detect "Google Chrome" as the user-agent using PHP? -

I am interested in knowing whether the server on PHP user-agent is using "Chrome" on Chrome . Is there a reliable regular expression for parsing the user-agent string from the request header? On this point, many browsers are pretending to be Chrome so that their popularity A common match for "Chrome" has to face browser identification abuse. I advise to proceed with the facility of inquiry, but Chrome is notorious for lying to the mechanisms of detecting well (as a webkit / nap) as well, so it is not as good as it is And also breaks. I can only recommend staying on top of things by comparing your known UA strings with other browsers through third-party sites and by creating patterns from there. How do you do it yourself completely depend on the stars Just keep in mind that due to the nature of browsers and UA stars, there can never be a "reliable" regular expression to match them. In PHP, the related server is the server $ _ server ['HTTP

Ruby on Rails: link_to_remote and rel -

I want a link from a remote to a Reliance tag, because I want to use Facebox with it. I was working with a regular link ... but I need a remote link to handle the event that the user does not have Javascript enabled. It does not currently work (except non-JavaScript part) & lt;% = link_to_remote "Ask a question", {: url = & gt; ; {: Action = & gt; : Ask_question ,: id = & gt; @container.id.to_s ,: javascript_disabled = & gt; Wrong},: rel = & gt; 'Facebox'} ,: href = & gt; Url_for (: Controller = & gt ;: View ,: Action =>: ask_question ,: id = & gt; @ container.id.to_s,: javascript_disabled = & gt; true)% & gt; You pass in the HTML options (such as Reliance Energy ) in your code in the third argument, you are passing it in second (i.e. the first hash). Instead try this: & lt;% = link_to_remote ("Ask a question", {: url = & gt; {: verb = & gt;: ask_question ,: id = Gt; @ container.id .to

android - Imageview ontop of another imageview -

Image
I have a list with items that looks like this: First, an image view (light) and then two text Scenes are all inside a table layout (source here :) :) I have to rotate the animation of a loading pointer over this light when this particular device (light) performs an action or on it Any action is taken. How do I put the animation of this light image view? Try it out: & Lt; ImageView Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: id = "@ + id / Image2" /> & Lt; / FrameLayout & gt; & Lt; LinearLayout Android: layout_height = "wrap_content" android: layout_width = "0dp" Android: layout_weight = "1" Android: orientation = "vertical" Android: id = "@ + id / textout" & gt; & Lt; TextView android: text = "@ + id / line1" Android: layout_width = "wrap_content" android: layout_height = "wrap_content"

LINQ Query Help -

मेरे पास निम्न लिनक क्वेरी है: workItem में workItem से workItemHistory में WorkItemHistory पर WorkItem काम के बराबर आईटीएमहिस्ट्री। वर्कआईटीम ivSweepHistory में IVSweepHistory में काम पर आईटीएमहिस्ट्री बराबर ivSweepHistory.WorkItemHistory जहां workIem.SerialNumber == "080106081985" आदेश द्वारा ivSweepHistory.ReadTime अवरुद्ध ivSweepHistory चयन जैसा है, यह महान काम करता है हालांकि, मैं इसे संशोधित करना चाहता हूं ताकि मैं केवल सभी पंक्तियों के बजाय पहली पंक्ति को पुनः प्राप्त कर सकूं। मैं यह कैसे करूँ? धन्यवाद। इसे ले जाएं। < / P> (workItem में workItem से workItemHistory में workItemHistory में workItemHistory में workItem काम के बराबर काम ITemHistory.WorkItem IVSweepHistory में IVSweepHistory में शामिल होने के कामकाज ईटीएमहिस्ट्री बराबर ivSweepHistory.WorkItemHistory जहां workIem.SerialNumber == "080106081985" आदेश द्वारा ivSweepHistory.ReadTime अवरुद्ध ivSweepHistory चयन ) ले लो (1)

Codeigniter Template library, add_js() method -

का उपयोग करना जब मैं add_js () फ़ंक्शन का उपयोग करने का प्रयास करता हूं त्रुटियों से बाहर मैं टेम्प्लेट हैडर फ़ाइल में क्षेत्रों को $ _ स्क्रिप्ट जोड़ता हूं, लेकिन जब मैं पृष्ठ को लोड करता हूं, तो यह अनिर्धारित वैरिएबल _scripts कहते हैं। कोई विचार? बदल & lt;? = $ _scripts? & Gt; & Lt;? = (Isset ($ _ स्क्रिप्ट)) के लिए? $ _ स्क्रिप्ट: ""; ? & Gt; और जाहिर है मैं त्रुटि खो देता हूं, लेकिन जेएस फ़ाइल अभी भी लोड नहीं हो रही है मैंने प्रत्येक चरण में एक गूंज किया है, हालांकि add_js () विधि और आउटपुट सही है। मैंने $ this-> js का एक आउटपुट भी किया था और दोनों में सही उत्पादन था तो यह get_js विधि के माध्यम से ठीक हो जाता है और वर्ग चर ठीक करता है लेकिन मुझे वास्तविक पृष्ठ पर कुछ भी नहीं मिला। अब अलग कंप्यूटर दबाएं। यहां नियंत्रक विधि है: फ़ंक्शन पंजीकरणफॉर्म () {$ this- & gt; टेम्पलेट- & gt; सेट_टैम्प्लेट ('एकल'); $ This- & gt; टेम्पलेट- & gt; write_view ('हेडर', 'टेम्पलेट्स / हैडर_टाइमेट'

java - Changing the direction of a Combo box dropdown in SWT -

I am creating an eclipse plugin in SWT, and I have the following problem: one of my fields is a combo box, and in some cases there may be quite a long item in the form of selection options. My plugin runs on the right side of the screen, so when you use a combo box, the right edge of the combo box is gone. So, my question is: Is there any way to change the alignment of the dropdown in relation to the combo control? It seems that it is being permanently left-aligned ... and I am sure that you can change the direction in swing (though I have seen that it is the only place that is in the Substance UI demo. Combo box North, South East, and West Floydide Guidelines in the tab ... for my application, I want something like a flyout flyout) Note: Setting the actual text limit Last-Mam Class-case option; This will be quite a bit of an idea for the speed of the text to be dynamically set (because the widget's view can be resized). Here one (sorry, I do not have only one link and no image

php - Why is SwiftMailer throwing "Internal Server Error"? -

I am using Symphony + Swift Mailer and getting the following error from Swift Mailer: < Pre> 500 | Internal server error. The code with the Swift_TransportException expected response code 220, but the "" "" message is missing and can not understand why I am using hMailServer on my local machine, and Your factories Organizing the Assam file (as I am using Symphony): Mailer: Category: sfMailer param: logging:% SF_LOGGING_ENABLED% charset:% SF_CHARSET% delivery_strategy: Real time Transport: Category: Swift_SMTP Transport Ultimate: Host: splodge.loc Port: 25 Encryption: ~ Username: ~ Password: ~ I am using the following code to send: < / P> $ message = $ this-> GetMailer () - & gt; Type ('noreply@splodge.loc', 'info@splodge.loc', 'reset password', 'message'); $ Result = $ this- & gt; Membel () - & gt; Send ($ message); Has anyone had any such problem before? I've found that sometimes,

Where do I put utility functions in my Python project? -

The matrix given to me (list of lists) needs to be rotated clockwise, and give it its Table category. Where should I put this utility function (called rotateMatrixClockwise ) so that I can easily call from within the function in my table class? If you do not want to make it a member of the table category, Utilities Module.

sql - Transfer Data between databases with postgres -

I need to transfer some data from another database. I old database is called paw1.moviesDB and the new database is paw1 . Each table has a schema Award (table name) (new DB) ID [PK] serial award Nomination (name of the table) (old DB) ID [PK] Serial Nomination I want to copy data from old db to new db I just wanted to do this exact thing, so I thought I posted the recipe. It assumes that both the databases are on the same server. First of all, copy the table from old db to new dB (because apparently you can not take data between database). On the command line: pg_dump -U postgres -t & lt; Old_table & gt; & Lt; Old_database & gt; | Psql -U postgres -d & lt; New_database & gt; Next, give the permissions of the copied table to the user of the new database. Enter into Psql: psql -U postgres -d & lt; New_database & gt; Optional Table & lt; Old_table & gt; By owner & lt; New_user & gt; \ Q Finally, copy the data fro

json - Reading HttpRequest Body in REST WCF -

I have a pure WCF service running in 4 NT and I have tested this working web service and I have HttpRequest Accepting I have to do this but I have a problem trying to use the HTPPX body within the web service. I have tried to send the size of the random size I added to HttpRequest which is using both the Fenderler and my WinForm app and I can not find an object in the runtime where I can get my request body. My initial trend was to look in HttpContext.Current.Request.InputStream , but the length of that property is 0, so I tried to look at the IncomingWebRequestContext that the object was also So my question is, is there really a way to access the HTTP request request body in WCF? PS: There is a JSON wire inside the data request body and for this response the data will return the data as JSON string even within the body. Very easy, this answer is fine on the job. In addition, if your request is body deserializable, then you can pass only one class. Excluding some typo

Oracle Connection exception via JDBC -

I have installed Oracle 11 GR2 on my machine, now when I try to connect the IP address as 'localhost' or '' 127.0.0.1 'is not a problem, but when I' 192.168. 1.6 'I use the IP address of the machine if it throws an exception: Exception: Then the network adapter could not establish the connection. I get DHCP from the adapter and my machine IP before installing MS Loopback. Do I need to configure any setting oracle config or what am I missing here? This is a network issue. Possibly the firewall, router, or proxy in the line is not properly configured to forward the desired port. No programming problem.

cocoa - Using the Apple Scripting bridge with Mail to send an attachment causes the message background to go black -

send a message with the When I set the background black an attachment message using Apple Scripting Bridge for a problem because the text is code for black question: MailApplication * mail = [SBApplication applicationWithBundleIdentifier: @ "com.apple.Mail"]; / * Create a new outgoing message object * / MailOutgoingMessage * emailMessage = [[[mail classForScriptingClass:] @ "outgoing message" alloc] initWithProperties: [NSDictionary dictionaryWithObjectsAndKeys: EmailSubject, @ "subject", [self composeEmailBody], @ "Content", zero]]; / * Add object to mail app * / [[mail outgoing message] addObject: emailMessage]; / * To determine this, the message * / emailMessage.sender = [NSString stringWithFormat show: @ "% @ & LT;% @ & gt;", [[[mail accounts] objectAtIndex: playerOptions.mailAccount] full name], [ [[[Mail account] ObjectAntindex: PlayerApps.mail account] Email addresses] ObjectOutX: 0]]; Email message View = yes; / *

scripting - Auto completion by typing TAB in TCL -

How can I get the key words and autocomplete of key words by typing TCL Shell, TBLs (or some other) in TCLS? You must use a graphical terminal written in TCL, or switch to a console form ) If using a GUI app is acceptable at all. FWIW, I can definitely recommend tkcon; The only reason I do not use this is because I'm often working with TCL custom build which is related to other things.

ruby on rails - how to avoid polymorphic associations -

You have to implement a news feed appearing in the social network, formerly Facebook is currently using the news class I have a polymorphic allocation, which can be any kind of image, comment, friendship, group membership, etc. Whenever an object is created, as the news is made it is working fine with the AR (activists), but when I turn to DM (datamaker) or sequel, both can have trouble because Both have not supported the theatrical associations dramatically and have discouraged its use. There is a separate solution that is used to merge all the various tables in order to use a large SQL section with lots of unions, which should be considered as news. But there are some drawbacks in this, especially the performance will be horrible. So I wonder if whenever you have to solve without the Polyemorphic Association, there are good performance and no other drawbacks, such as the possibility of adding meta data to the news? Disclaimer: I am the chief developer of the next sequel.

How can I paste some string to the active window in Python? -

संभव डुप्लिकेट: कोई मुझे एक उदाहरण बना सकता है या मुझे समझा सकता है कि मैं सक्रिय विंडो में पायथन के साथ कैसे कुछ चिपकूं? P> यदि आप पैकेज का उपयोग करें सबसे आसान है आप विभिन्न पायथन संस्करणों के लिए एक विंडोज इंस्टालर पा सकते हैं। सरल उपयोग के मामले, सादा पाठ भेजना, बहुत सरल है: SendKeys SendKeys.SendKeys आयात करें ("हैलो वर्ल्ड ") आप सभी प्रकार के निफ्टी चीजों को कर सकते हैं अनुप्रेषित पात्रों के लिए प्रतिनिधित्व करने के लिए कुंजी-कोड का उपयोग करना : आयात भेजेंकैक्स SendKeys.SendKeys ("" "{LWIN} {PAUSE .25} r Notepad.exe {ENTER} {PAUSE 1} हैलो {SPACE} विश्व! {PAUSE 1}% {F4} n" "") < / पूर्व> पूर्ण विवरण के लिए पढ़ें। जो भी कारण से आप एक गैर मानक पुस्तकालय पैकेज पर निर्भरता पेश नहीं करना चाहते हैं, तो आप COM का उपयोग कर सकते हैं : आयात win32api आयात win32com.client shell = win32com.client.Dispatch ("WScript.Shell") खोल। चलाओ ("कैल्क") win32api.Sleep (100) shell.AppActivate (" क

blackberry - not show the result -

This is my code and there is no exception available through the source code. In the code, we need a popup screen that shows but the average speed does not show up. class popupscreen popupscreen {Private editing field _sp; // speed s = new speed (); // public double _ average speed = s._ averagespeed; Stringbuffer sb = new stringbuffer (); Popupscreen () {super (new vertical field manager (), field.focusable); Speed ​​= new speed (); Double _ distilled = s._ averagespeed; _sp = New EditField ("Average Speed:", "" + _ Average Speed); (_sp); //Speed._averageSpeed=sb .; //sb.append("\n_AverageSpeed: "); //sb.append(_averageSpeed); }} You must save the vertical field manager near the supertabel; Add manager to your manager Dialogfiled Manager dfm = New Dialogfield Manager (); This is not necessary to completely override the class; Dfm.add (_sp); Popupscreen popupscreen = new basepopscreen (DFM, manager .VERTICAL_SCROLL);

python - Django: Get remote IP address inside settings.py -

I get debug ( DEBUG = True local host. How do I get user IP address in settings.py Do I want something like this to work for: debugging at # localhost only if user_ip = '127.0.0.1': DEBUG = true else: DEBUG = False How do I enter a user IP address inside the settings.py file inside the user_ip variable? Probably enough to assign some internal_ips to you:

Compare two excel sheets -

How do I compare two Excel sheets and to determine which column is missing? (I Note: They are in random order. < P> You can use the VLOOKUP function in an Excel worksheet to help you find "unavailable" data in a different sheet. For example, take the following two worksheets: < Pre> sheet 1 ------ ABC1A2bb3cc4dd sheet 2 --- --- ABC 1A2BB3DD Cell B1 The following formulas are available. Add Sheet and the cell B4 under the formula: = IF (ISERROR (VLOOKUP (A1, Sheet 2! $ A $ 1 $ 1, $ 1, FALSE), "Delete from Other Sheet", "") Sheet1 Which is missing from the other sheet in the column b , it happens: sheet 1 ------ ABC 1A2bb3cc Missing 4DD from other sheets

virtual machine - ORB forwards to a wrong location -

मेरे पास एक orbd एक वर्चुअल होस्ट (आईपी ए ), पंजीकृत कुछ रिमोट ऑब्जेक्ट के साथ मैजिक बॉक्सेस होस्ट करने वाला बॉक्स आईपी बी है जब ग्राहक नामकरण कॉन्टैक्ट प्राप्त करने के लिए ए पर ORB से कनेक्ट होने का प्रयास करता है, तो ORB ने बी और पोर्ट 1049 (जैसे अन्य ORB शुरू किया गया हो) की मेजबानी करने के लिए स्थानफ़ोर्ड संदेश के साथ जवाब दिया उस मेजबान पर) NamingContext सफलतापूर्वक वापस आ गया है, लेकिन जाहिर है मैं नामों से नामकरण कॉन्टैक्स (ऑरब पर ए पर होस्ट की गई) पर पंजीकृत वस्तुओं को प्राप्त करने में सक्षम नहीं हूं। क्या कोई कृपया समझा सकता है कि क्या हो रहा है? ए को दूर से होस्ट किए गए ओर्ब का उपयोग कैसे कर सकता हूं? अग्रिम धन्यवाद। मेरे पास हाल ही में बहुत ही समान समस्या है मेरे पास वर्चुअल मशीन पर चलने वाले ओआरबी के साथ एक सेटअप था, और एक बार यह शुरू हो रहा था, मेजबान पर पोर्ट 1049 खोल रहा था, जैसे कि यह डिफ़ॉल्ट पोर्ट के पीछे एक और ओआर चल रहा है। मेरे मामले में समस्या फ़ायरवॉल थी, जो इस बंदरगाह से अवरुद्ध कनेक्शन थी। एक बार जब मैंने इसे खोल दिया है, तो सब कुछ इसे

maven 2 - Execution of "mvn sonar:sonar" with no external access -

I try to execute mvn sonar: sonar command on a machine where Maven is configured There is no access to the external treasures (in fact, it is not at all, but it helps me to explain my problem). Therefore, if I run this command, I get the following error: [Error] Build error [INFO] ------- --------------------------------------------------- --------------- [INFO] plugin 'org.codehaus.mojo: sonar-maven-plugin' does not exist or no valid version can be found I think that means there is some wrong metadata in my local store because I have local repo] \ org \ codehaus \ mojo \ sonar-maven-plugin \ 1.0-beta-1 \ / Code> Independent Complaints and s (of course inside, of course). Do you have any idea why my order is failing? Tech Infos: Maven 2.2.1, Java 1.6, Sonar 2.1.2 Did you try to dry? Section of frequently asked questions: If you receive this error message after launching the Maven command line "MNN Sonar: Sonar" then in the command Add

c++ - Pause the log4c++ logger -

Is it possible to stop the logger in log4c ++, and I stopped writing a message in the log file with a break, but Lastly not logger object or delete it. I think you can setLevel () Level with

iphone - How to get the default position and font of UITableViewCell, using it in a custom cell -

I am trying to write an app that contains three cells, one custom cell and two "standard" cells I have created a "custom cell" to be able to see the picture with a subtitle in it. I want to take the same form of cell as a standard "UITableViewCell", but the default of "cell.textLabel.text" Can not find out how the situation can be obtained. Any suggestions? thank you in advanced. Good question would be my desire to know. You can not complete this by adjusting one pixel at a time. It's just tedious!

uitabbarcontroller - iphone initializing tab bar controller view programatically -

I want to programmatically initialize my tab bar controller, but I just have a blank screen Meets. I tried to copy, and the stuff seems comparable to line-by-line, but obviously something is wrong. Any suggestions? Thank you ... In the main M: #import & lt; UIKit / UIKit.h & gt; Int main (int argc, char * argv []) {NSAutoreleasePool * pool = [[NSAutorelease Pool alloc] init]; Int Rated = UIAP Planningman (AGRC, AGRV, Zero, @ "DubbbellWrapUp Delegate"); [Bridge release]; Return rate; } DubbleWrapAppDelegate.h: @Interface DoubledWrapAppDelegate: NSObject & lt; UIApplicationDelegate, UITabBarControllerDelegate & gt; {UIWindow * window; UITabBarController * Tabbar Controller; } @ Property (Nonomatic, Retaining) IBOutlet UIWindow * Window; @protecti (nonomatic, reserved) IBOutlet UITabBarController * Tabbar Controller; @end In DubbleWrapAppDelegate.m: @implementation DubbleWrapAppDelegate @ynthesize window; @injection tab tab controller; - in

objective c - What is the difference between these two ways of creating NSStrings? -

NSString * myString = @ "हैलो"; NSString * myString = [NSString stringWithString: @ "हैलो"]; मैं समझता हूं कि विधि (1) एक स्ट्रिंग के लिए एक संकेतक बनाता है जिसे स्थैतिक मेमोरी के रूप में परिभाषित किया जाता है (और इसे वितरित नहीं किया जा सकता है) और जो कि (2) एक एनएसएसटीइंग ऑब्जेक्ट बनाता है जो ऑटोरेलेज़ हो जाएगा। विधि (1) बुरे? प्रमुख अंतर क्या हैं? क्या कोई ऐसा उदाहरण है जहां आप उपयोग करना चाहते हैं (1)? क्या कोई प्रदर्शन अंतर है? पीएस मैंने स्टैक ओवरफ्लो पर बड़े पैमाने पर खोज की है और जब एक ही विषय पर प्रश्न हैं, तो उनमें से कोई भी मेरे ऊपर दिए गए सवालों के उत्तर नहीं देता है। जैसा कि स्ट्रिंग लीटरल में बताया गया है कि अपरिवर्तनीय स्ट्रिंग ऑब्जेक्ट्स और संकलित समय में उनका पता प्राप्त करें - इसलिए आपको रन-टाइम के दौरान एक ही शाब्दिक स्ट्रिंग के कई उदाहरण बनाने की आवश्यकता नहीं है। NSString * myString = @ "हैलो"; तो यहाँ हम सिर्फ स्ट्रिंग को स्ट्रिंग के लिए स्ट्रिंग को स्ट्रिंग देते हैं I NSString * myString =