Posts

Showing posts from March, 2010

mysql - Why the rows returns by "explain" is not equal to count()? -

mysql & gt; तालिका से गिनती (*) चुनें जहां relation_title = 'xxxxxxxxx'; + ---------- + | गिनती (*) | + ---------- + | 12 9 1 9 58 | + ---------- + mysql & gt; तालिका से * चयन करें जहां relation_title = 'xxxxxxxxx' चुनें; + ---- + ------------- + --------- + - | आईडी | Select_type | पंक्तियाँ | + ---- + ------------- + --------- + - | 1 | सरल | 1274785 | + ---- + ------------- + --------- + - मुझे लगता है कि "चुनें से चुनें * तालिका जहां relation_title = 'xxxxxxxxx'; " इंडेक्स द्वारा relation_title = 'xxxxxxxxx' की पंक्तियां देता है लेकिन यह सही संख्या से छोटा है। यह दिखा रहा है कि आपके परिणाम प्राप्त करने के लिए यह कितनी पंक्तियों से गुजर रहा है । गलत डेटा का कारण यह है कि EXPLAIN सटीक नहीं है, यह आपकी तालिका के बारे में संग्रहीत जानकारी के आधार पर आपके डेटा के बारे में अनुमान लगाता है। यह बहुत उपयोगी जानकारी है, उदाहरण के लिए कई तालिकाओं में जोन कर रहे हैं और आप यह सुनिश्चित करना चाहते हैं कि आप प्रत्येक पंक्ति के लिए

ajax - How does an XMLHttpRequest response get routed to the right browser-callback? -

I have created a webpage which uses Ajax to update some values ​​without reloading the page. I am using an XMLHttpRequest object to send a POST request, and I assign the callback function when the response arrives, and it works fine. But ... how does the browser in the world know that some data is coming from some IPs: should the port be sent to this particular callback function? I mean, in the worst case, if I have Firefox and IE then make some post requests from the same server almost the same time, and even before the poster requests reach the previous people, how do the data come Is being routed for the correct callback function ?? Each of the HTTP requests made on a separate TCP connection is only for the browser to return to that connection. Waits, then invokes your callback function. At the lower level, TCP implementation on your OS will be some lookup table mapping source port for each socket (i.e. connections) to open a socket using a different "source port&q

How do I return a string array in c# and use it in unmanaged c++? -

Can anyone tell me how to return a string array by one method and use it in C #? Suppose I have to return the array in {one, two, ..... ten} and c ++, I have to display this array on the console and do some action. It did not make me self, but on an estimate: to create an assembly in C # For Csharpassembly.dll is called with the following class using the system; Namespace CesarPadaccations {public class} CSharpClass {public static string [GetStrings ({return new string} ["1", "2", "3"})); }}} But in your case create an assembly that creates this assembly in C # and HAA MC ++ program context and call it: #include "stdafx.h" #using & lt; Mscorlib.dll & gt; # Using "csharpassembly.dll" using the namespace system; Namespace Csharpassembly using __gc class {public: static zero} ProcessCShaperStrings () {array ^ stringArray = CSharpClass :: GetStrings (); Console :: lineline (string array [0]); ... // e.t

xml - Rewriting Binary Streams using Java -

I am studying NATI and Mina but it is the best way to rewrite the binary stream. For example, I would like to create a proxy that will allow for further replacement with XML. Examples appreciated. I think you are thinking very little at one level. XML is not so "binary" because it is an abstract on binary if you want to convert the XML snippet into your line, you have to hit the payload portion of the packet and see the patterns of XML. Byte is used in a regular way after rebuilding temporarily. Once you have this search and match what you want, you can change what you want to change and send it again. The hard part of this is that before you leave your machine you need to cache some input so that you can search for the beginning and the end that you are looking for. Is it difficult that often it is, you do not know that "beginning" and "end" of data payload has been formed.

What is the lifecycle of an IIS-hosted (http) WCF service? -

I have a dependency injection container setup in my application and I am thinking that whenever WCF service requests are disabled in Is going to be. Can anyone explain to me, hosted an http / IIS WCF service, what is the lifecycle of the service? If I can understand it, then I can make an educated decision on where the container is stored, immediately, destroyed, etc. If your instancecontextmode is percall , the service The class will be created from scratch for each incoming request, and after that its work will be executed. If your InstantNext Modes is per session , the service class will be created and a customer will have a session duration (or an "inactivity timeout < P> If your InstanceContextMode is Single (Singleton), then the service class will be created when the first request will be in and will remain in memory unless the requests Do not come in, unless there is no error and there is no inactivity. Then, you have it! Of course, compatibi

c++ - compilation error while #import tlb file in COM automation -

I am trying to include an application tlb file in the #VC ++ project. After compilation errors, #import "CANoe.tlb" in my project source file - unknown character '0x1' Syntax Error: missing ';' Before the identifier 'A' Missing type specifier int assumed. Note: C ++ does not support default-int '{': missing function headers (formal style list?) Please suggest, if I I am doing something wrong. In addition, is there a way to verify the .tlb file content and resolve these errors, is it possible to repair the TLB file? If so, how do I create an updated tlb Thank you in advance My The first thought was that you are working with a file that is not TLB or at least corrupt. I will try TLB at Olevew. With this you should check a quick conscience that the TLB is valid or not valid.

Iterating through an enumeration in Silverlight? -

In the Net in iterate through the enumeration using System.Enum It is possible or System.Enum.GetValues ​​(typeF (MyEnum)) P > In Silverlight 3, however, Enum.GetNames and Enum.GetValues ​​are not defined Do anyone know any alternate? Or perhaps using robust linq, like this: < Code> public stable t [] GetEnumValues ​​& lt; T & gt; () {Var type = typef (t); If (! Type.IsEnum) leave the new logic exception ("type" "+ type .name +" 'is not an enum'); Return (in the field in the field.Getfield (compulsive PLAZ.Public | binding flag.static) where field.Isilateral Selection (T) field.Gate value (empty)) .ORA (); } Public stable string [] GetEnumStrings & lt; T & gt; () {Var type = typef (t); If (! Type.IsEnum) leave the new logic exception ("type" "+ type .name +" 'is not an enum'); Return (by type in field.Getfield (BindingFlag.Public | Compulsive Flags.Static) where field. Choose ISILaye

javascript - Manually gziped js files not working -

Do anyone know that this could be the reason for this? The file has been uploaded correctly, this is the correct permissions, and and

.net - MSBuild: adding/copying empty folders via Zip/Copy task -

After a pre-am aggregator site trying to copy / Zip with empty folder (pre-selection) Includes. It seems that empty folders are not included in the list of items, after the CreateItem function. How can I take care of empty folders? Thank you I do not think this is the most beautiful solution, but before that Whatever is done, is making a folder in the solution, and to include a text file called placeholder.txt or something similar, and installing the properties of the text file. The result is a folder, where you want it to have a file that you do not want. After this we remove the placeholder.txt file before uploading it, in all build scripts. Not elegant but it works for our scenario.

protocols - Difference Betweeen SIP and HTTP Response 407 code? -

एसआईपी प्रतिक्रिया कोड 407 और HTTP प्रतिक्रिया कोड 407 (प्रॉक्सी प्रमाणीकरण आवश्यक) में क्या अंतर है? एक HTTP 407 है, जैसा कि आपने कहा था, जब प्रॉक्सी प्रमाणीकरण आवश्यक है - अनिवार्य रूप से, वे वही हैं।

c# - ModalPopupExtender Performance Issues -

I have a strange display problem using my model ambient MS Ajax toolkit, There are approximately 1600 rows in the gridview if I show my gridview at 10 rows per page, then the display is acceptable, to show about the other. Is this behavior normal? The speed of the data displayed on my page is affecting the speed .. Has anyone experienced it, if so, what was your solution? :: Edit: When I postback, do gridview. I can bet that the problem is that with 1600 lines, your Gridview posted back to the big viewstate Do check the viewstate size in your page source. You can also use (a HTTP proxy) to check the quantity and content of the returned data on the server.

Touch typing in Visual Studio 2008 -

I'm a touch typist. I am using a regular HP 17 "laptop ... While using Visual Studio 2008, often with my right hand to navigate on different lines of editor I have not noticed that I am not interested in investing time to learn a vi user and viemu. It's frustrating when I'm doing some complicated coding And I want to take my hand to use the arrow keys ... I'm interested in knowing how other developers handle this thing? Edit: One reason I do not use the pumpkin is that I am a consultant and I have to use other machines who do not have Viemu addin installed. I'm a VIM user and a touch typist Funds used never hjkl it. It's okay to use the arrow keys to me, but I am that I admire my colleagues must admit that rely on the skills. Only the thin g is really annoying that there are not one place on different keyboards like home , termination Does.

I am stuck with PHP's array()? -

Why did the array () function pass in? I'm unable to understand the array () function. I know that $ _POST does not have any value, it passes under the array () , but what is the value in array () ? some functions ($ _ POST? $ _POST: array ()); array () is not a function copy, it A language is formed. But simply by using the array () you can prepare an empty array for you, which is with zero elements. You might want to check for: issued ($ _ POST)? $ _POST: Array () Edit: As told by Greg, $ _ POST will always be set. So there is no need to check it and return an empty array. someFunc ($ _ POST) must do the same thing.

visual studio - MSBuild custom common targets -

I am setting up a TFS build definition and I'm having trouble running that code in which I have kept < Code> Custom.After.Microsoft.Common.Targets file. The file is definitely in the right place, and is definitely being parsed (errors are created due to breaking the syntax in the file), but none of this code is being run. I've put the exact same code in the TFSBuild.proj file, and it works fine, get all the right goals over-written, etc. What is the reason for this? Remember evaluation priority; If an item or property is set, it will not be overwritten except for later addition, where you call CreateProperty or CreateItem functions. I came to know that it prevents me from running conditional work. Set verbatim for 'diag', to see what is included, is evaluated on server build.

drupal - Nginx - Treats PHP as binary -

We are running NGN + Fastcgi as backend for our Drupal site. Everything looks fine like this, except for a URL Http: ///sites/all/modules/tinyymce/tinymce/jscripts/tiny_mce/plugins/simimage/index.php (We're in Drupal Use the TinyMe module, and the above URL will come when the user tries to upload an image) When we were using Apache, everything was working fine. However, NGNN considers the binary above the URL and tries to download it. (We've verified that the file written by the URL is a valid PHP file) Any ideas that might be wrong here? I think this NGINX any help is greatly appreciated. Config: Here is the snippet from the NGN configuration file: root / var / www /; Index index.php; If (! -e $ request_filename) {rewrite ^ / (. *) $ /index.php?q=$1 final; } Error_page 404 index.php; Place ~ *. (Engine | inc | info | install | module | profile | police | sh *. * * * Class = theme | tpl (\ .php) | | xtmpl) $ | ^ (Code-style \ .pl | entries. * Repository | roo

c# - NGen and Gacutil best practices -

This is my first post, so please forgive me if it is not written well. I am working on a WinForms application that has approximately 5 referenced assemblies - written by us, and about 8 referenced assemblies by third parties (unless we hope to update them in the future That something is not wrong - Infographic / Dave Xpex component!). Our startup times are a bit higher on cold boots, am I thinking that they have to add them to GAC and they have a way to go. When we are setting up NGen cache, should it also be in gac? What is the connection between the two? Whom should I target for? We have an exe, I want to do an ILMerge, but I'm not sure it will work in our scenario - the long story In addition, how much memory is my memory - such as Java applications (like Netbeans!) thanks The main idea is to use the delayed startup whenever possible to improve the startup time. Immediately after the startup do not immediately do things that are immediately unnecessary. Use of

Delphi TCoolBar - CoolBand alignment -

Is it possible to align CoolBands on the left side of the coolbar? This means that when the size of the form changes and the cool band goes to the row given below, the band should be aligned to the left side of the bar (rather than right). Is Forthmore possible to save the band's adjustment? If you set the minimum property for each band and set TrueBar AutoSize property to True, So a band wraps it automatically once it's in its miniaturization. Edit : The above is still true, but it should be expanded - new information from the comments section. The coolbar always tries to fill the width of the control, so your final band is spread to take place if you add Maxwidth barriers to bandwidth control, then they wrap the band and spread like they align rightly Here's the best solution that you need to set your minimum content to whatever needs, but let's set the maximum width of the coolbar. Save adjustments? Do you mean the exact location of each coolband? If

What are these HTML form fields for? -

I saw some code, HTML form code that looks like this: ; Form name = "form1" method = "post" action = "action.fp" & gt; & Lt; Label = "name" & gt; Name: & lt; Input type = "text" name = "name" & gt; & Lt; Label = "email" & gt; Email: & lt; Input type = "article" name = "email" & gt; & Lt; / Form & gt; What kind of "names" are there? (-> Form 1) What are the label tags for? (I have never used it, therefore, I may be wrong when entering the code) label The pieces of text are next to the input field - they do not appear to be different from the general text, but: Clicking on them puts focus on the field Read the details of related fields. These can also be useful for CSS - using labels, you can easily separate your field labels from other page elements. Form name attribute makes it easy to render the form with JavaS

c++ - Using Boost to read and write XML files -

Is there an old way (and there is a simple way too) to use the Boost to read and write XML files? I can not find any simple samples for reading XML files using Boost. Can you point me a simple sample that uses Boost to read and write XML files? If there is no boost, can you recommend that there is a good and easy library for reading and writing XML files? (It should be a C ++ library) You should light weight, simple and fast XML parser for C ++ The best thing about pugixml is XPath support, which is a lack of TinyXML and RapidXMM. While referring to the author of Rapid XML, "I would like to thank Arseni Koupakkin for my work on Pugixml, which was the inspiration for this project" and "5% - 30% more than PagicSchel Fast, I know that the fastest XML parser, "he had tested against version 0.3 of PgxSm, which recently reached version 0.42. Here are a few excerpts from Pixxml documentation: The main features are: Low memory consumption and fra

String Split in DXL -

I have a string Ex: "We like questions that are answered Can not just talk, " Now I call this string"; " Like we like those questions which can be answered and not just discussed. It is possible in DXL. I am learning DXL, so I do not know whether we can divide or not. Note: This is not a work of the house. Quick Add & amp; I could come up with split. Seam to work fine. int array_size (array A) {int size = 0; While (tap (get (a, size, 0)) size ++; return size;} zero array_push_str (array, string str) {int array_index = array_size (a); put (a, str, array_index, 0) ;} String array_get_str (array A, int index) {return (string mill (a, index, 0)); string str_join (string adder, array str_array) {join buffer = create; int array_index = 0; included (= Array_index = 0; array_index & lt; array_iize (str_array); array_index ++) for {+ array_index = array; array_get_str (str_array, array_index); if (array_index + 1 & l T; array_size (str_array

php - Is the front controller responsible for deciding which controllers/modules to load? -

I am working on a website script, and currently I have a front controller, which determines that What to load (for example, module / extension and controller) depending on the URI. Is this a good way? I'm using PHP if it matters, I'm just thinking that it's not the front controller's work ... method I actually included two controllers. There is a front controller that controls the initial arrival of the request. Then the page controller is specific to the current page (depending on the URI). The front controller handles the correct page controller loading. The page controller's work model (for DB access) and other sections to create data for page views. I would say that Front Controller should never do anything that is specific to the URI, and should be as normal as possible so that it can be effectively used again.

c# - How to Sort a GridItemCollection -

मेरे पास GridItemCollection है GridItemCollection आइटम = (GridItemCollection) सत्र ["driveLayout "]; मैं प्रत्येक ग्रिडआईटम में आइटमों में से एक के आधार पर संग्रह को सॉर्ट करना चाहता हूं। विशेष रूप से इस मद में आइटम ["वॉल्यूम ग्रुप"]। ToString ()। ToLower () ऐसा करने का सबसे अच्छा तरीका क्या है? धन्यवाद आप LINQ OrderBy एक्सटेंशन विधि का उपयोग कर सकते हैं: GridItemCollection आइटम = (ग्रिडआइटम कलेक्शन) सत्र ["ड्राइवलेआउट"]; Var सॉर्ट किए गए आइटम = ऑब्जेक्ट। टाइप करें & lt; GridItem & gt; ()। ऑर्डर बी (आइटम = & gt; आइटम। ग्रिड इटम्स ["वॉल्यूम ग्रुप"]। ToString ()। ToLower ()); ofType () एक IEnumerable को एक IEnumerable में कनवर्ट करता है जहां T प्रकार पैरामीटर में निर्दिष्ट प्रकार है। चूंकि हम यह जानते हैं कि GridItemCollection ग्रिडआईटीम टाइप किए गए वस्तुओं का एक संग्रह है, हम ऐसा कर सकते हैं। हमारे पास एक IEnumerable हो जाने के बाद, हमारे पास सभी LINQ एक्सटेंशन विधियों तक पहुंच है, जिसमें ऑर्डरबी भी शामिल ह

email - Embeddable messaging component for Java web application -

To meet the customer's requirements, we need users to exchange information between each other. > Messaging system does not require state-of-the-art back-end and can be easily implemented with some tables to store messages and message types. The problem is that I believe the requirements of front-end are very high and disposable is very important. Apart from this, I hope part of this communication will become an important part of the system for a long time. Is there anything that can be directly integrated into the Java web application and can be optimized for the design of the application? < Information on new messages in user inbox (if possible: on the current page) Interface for existing user management preferably, component first Message Management (Select, Delete, Answer, Delete / Restore, ...) Folder: Inbox, Sent, Trash Tagging: Message categories A panel Show the last x message in the / div Style to look like an app If somethin

.net - Is there any good reason to convert an app written in python to c#? -

I have written several python tools for my company. Is there a good reason to convert them from Python to C # That their utility has been proven? Would I be better off leaving them in Python only? Excerpt: "If it does not break, do not fix it." As long as your company is moving towards NAT and / or any other qualified Python developer is no longer available, then not.

How to export sio2 file on iPhone? -

When I export a 3D game sio2 file on the simulator, it is loading but then a black screen appears is. Anyone can help me with my problem. P> You must enter the code in the template ranger void templateRender (zero) {glMatrixMode (GL_MODELVIEW); GlLoadIdentity (); Glucer (GL_Depath_BUFFER_BIT | GL_ COLOR_BUFFER_BIT); SIO2camera * _SIO2camera = (SIO2camera *) sio2ResourceGet (sio2-> _SIO2 source, SIO2_CAMERA, "camera / camera"); If (_SIO2camera) {// adjust the perspective, please do not take that this operation should be done only 3 times / every time you switch the camera Sio2Perspective (_SIO2camera-> gt; fov, sio2-> _SIO2window -> SCL-> gtsi / sio2-> _SIO2window-> SCL-> Y, _SIO2camera-> CSTA, _SIO2camera- & gt; Sands); // enter 3D Landscape mode sio2WindowEnterLandscape3D (); {Sio2CameraRender (_SIO2camera); Sio2ResourceRender (sio2- & gt; _SIO2 source, sio2- & gt; _SIO2window, _SIO2camera, SIO2_RENDER_SOLID_OBJEC

encoding - Why would I use a Unicode Signature Byte-Order-Mark (BOM)? -

Is this obsolete? They look like the worst idea - embed anything in the contents of your file which nobody can see, but affects the functionality of the file. I do not understand why I want to. In some cases, because there are both small-endian and large-endian implementations of UTF-16. While reading an unknown UTF-16 file, how can you tell which of these two are used? That's what BOM does. And do you need one? Only if you are using 1) UTF encoding where the endpoint is an issue (it matters for UTF-16, but UTF 8 always looks the same regardless of equality), and The file is being shared with external applications. If your app is the only one who is going to read and write the file, then you can leave the BOM, and you can make a decision once and all of which are going to use endlessness. But if any other application has to read the file, it will not know at the end in the end, so adding BOM can be a good idea.

.net - How to push SQLCLR updates to your (CI) server -

I have something between WinForm client using SQL 2005 server and SQLLL. I am using NET code. This code has dependencies beyond .NET 2.0, which means that I must add server machines (like CREATE ASSEMBLY ) to these machines. I'm trying to do it as part of CI build and I'm wondering which methods have done the best thing. Create a * .sql file Sequence: Drop Function. .. Drop assembly ... Create assembly ... Create function ... and Call it sqlcmd as part of your build.

How to put a header to csv file generated by Powershell script -

I have got this powerhole script, which has not changed my password for 24 hours. Output from the query has been redirected to the CSV file. Below PowerShell script and batch script: PowerShell script: $ root = [ADSI] '' $ finder = new Object System.DirectoryServices.DirectorySearcher ($ root) $ searcher.filter = "(& amp; (objectCategory = person) (objectClass = user) ((userAccountControl: 1.2.840.113556.1.4.803: = 2)))" $ searcher.sizelimit = 5000 [zero] $ searcher. PropertiesToLoad.Add ( "cn") [zero] $ searcher.PropertiesToLoad.Add ( "sAMAccountName") [zero] $ searcher.PropertiesToLoad.Add ( "pwdLastSet") $ user = $ searcher.findall () $ UserOU = "OU = mountain, DC = Atlanta, DC = singing "$ PWDays = (Get- date) .AddDays (-1) $ UserCount = 0 $ UserPW = 0 foreach ($ user in $ users) {If ($ user.path like "* $ UserOU") {$ UserCount = $ UserCount if ([datetime] :: FromFileTime (($ user.properties.pwdlastset

c++ - Why doesn't this C++0x code call the move constructor? -

किसी कारण से, निम्न कोड कभी नहीं कॉल करता है Event :: Event (Event & amp; e) ईवेंट ए; इवेंट बी; इवेंट अस्थायी; अस्थायी = चाल (ए); ए = चाल (बी); बी = चाल (अस्थायी); क्यों नहीं? का प्रयोग कर std :: swap इसे एक बार कॉल करता है। वर्ग इवेंट { सार्वजनिक: इवेंट (): मायटाइम (0.0), मायनोद (नल) {} इवेंट (प्रीपेरल टी, नोड * एन); इवेंट (ईवेंट और amp; अन्य); इवेंट (ईवेंट कॉन्स्ट और अन्य) = हटाएं; ~ घटना (); बूल ऑपरेटर & lt; (इवेंट कॉन्स्ट और अन्य) कंस्ट्रक्शन {myTime & lt; other.myTime; } बूल ऑपरेटर & gt; (इवेंट कॉन्स्ट एंड अन्य) कंस्ट्रक्ट {myTime & gt; other.myTime; } प्रिप्रेट मिलते समय () const {myTime; } शून्य सेट टाइम (पिछला बार) {myTime = समय; } नोड * getNode () const {वापसी myNode; } निजी: फ़ेरल मायटाइम; नोड * myNode; }; आपके कोड में दो संभावित स्थान हैं जहां से एक को चालक कंसट्रक्टर को कॉल करने की उम्मीद हो सकती है (लेकिन यह नहीं है): 1) कॉलिंग std :: move 2) असाइनमेंट के दौरान। 1 के संबंध में) 1), std :: चाल एक सरल डाली करता है - यह प्रतिलि

c# - Block sending mails -

I am a Windows Forms programmer, we usually do performance programs in a user control. And sometimes you need to send email to functionality. I have to do something like this: - If I set the flag "This application is running in test mode" then all mail sent applications (from any user control) should be blocked. I do not want to make any changes to my existing user controls, remember or send mail, I want it to be done only in the container or in the program.cs file instead. Thanks You can use, such as an IMailer interface, RealMailer And implemented by TestMailer. While RealMailer will actually send an email, the testing mailer will drop the mail silently. Configure a production configuration that injects realmler, and the test confirmation that injects TestingMailer.

visual c++ - Group box with title as Check box -

I am using Visual Studio 6.0 (VC ++ with MCC) in the Windows XP platform. I am trying to create a group box with the title of the group box as a check box. My intention is this: If the check box is enabled, the control inside the group box should be enabled; Or disable. Is this possible? If yes, then please give me some directions. Thank you. a simple way of a normal group Use, how much you want to be true in your thoughts and how much effort you put into the effort: box, and then the first item in it is the checkbox. It is easy to complete, but you lose the goal of keeping the checkbox as a title. Funky drawing method 1 Use the normal group box, then place your checkbox in the place where you know the title to go, funky drawing Method 2 Use some form on the group box or / or use any type. You can override the WM_PAINT handler to draw only the frame for the group box. Place a generic checkbox at the place where you know the title is going to go. It should wor

php - How to update adobe air application after install? -

How to update the air app after the system is installed is not being restored automatically? Is this possible? If you want to update, you can ask the user's app ... or you can You can program the app to update the time you want / update quietly. If you are looking at how to auto update here is a good tutorial. Also please consult Flex Support pages for more details. Edit It will appear that the link in the original reply is broken, so I have edited it. In order to not update AIR runtime, How to check for updates to your Air Application and Auto Update, reply to provide an existing, working link for the tutorial.

sql server - T-SQL Grouping rows from the MAX length columns in different rows (?) -

I make a way to combine rows in a row based on the longest string in any line Trying on a line key Example Create a table test1 (akey integer not tap, text 1 varchar (50) zero, text 2 varchar (50 ) Enter zero, text 3 varchar (50) zero in test1 value (1, 'winchester road', 'crawl', zero) in test1 value (1, 'winches Enter the test1 value (1, 'Winchester Road', 'Crowley Asset', 'P21869') in test1 value (1, 'Winchester Road', 'Crowley', '' Road '', 'Crowley', 'P21869' (2, 'Smith Closed', 'Birmingham North East', 'P53342') into test1 value (2, '', 'Birmingham', 'P53342B') in test1 value (2, Enter 'Smith Chlorine.', Zero, 'P53342B') in the test1 value (2, 'Smith with these lines, I will look for the following: 1 Winchester Road, Crawly, Closed Do, 'B Property, p 2186 9a2, close closure, birmingham northeast, p 53342b,

ruby on rails - has_many and a legacy scheme -

I'm looking for advice here: I have two tables in heritage plan, Code> one and b , asamename = b. Name brought to . If both of them are columns, then how do I establish a relationship between them in Rail (v2.1.0)? Given that there are many b in A , what would be best practice: use : finder_sql < / Code> and just select a SQL, Configure the connection through other parameters (how? I know that I have the : foreign_key = 'alias' / Code>, but it will only try to set a name to AID = B. relationship - what can I do to set right?), < Li So, what would you suggest? If you are stuck with Rail 2.1 for some reason, then the best option is set_primary_key It looks like , such as: class is a set_primary_key's 'somename' has_many: bs ,: foreign_key = & gt; The 'alias' end also has a nickname that allows you to use syntax such as attribution for that ( self.primary_key = 'somename' ). By the way, i

c# - How to update a BindingSource based on a modified DataContext -

In my application, / P> Jobs = dbc.Jobs.ToDictionary (j = & gt; j.Id, j = & gt; j); Then I am binding the dictionary with the binding source: bsJob.DataSource = jobManager.Jobs.Values.ToList (); I refresh the datacontext and dictionary regularly when new jobs are added to the database (whether directly running through a local application or on a different machine): < / P> dbc.Refresh (RefreshMode.OverwriteCurrentValues, dbc.Job); Jobs = dbc.Job.ToDictionary (J => J.D., J = & gt; J); How can I also update the binding source to accommodate changes? I do not see the relation from the job class to the customer class, so I will assume that you type it Want to and not the job manager? Customer value. List (); There are already some types of events triggering your refresh, because you have mentioned that you update "regular", then you basically have a binding source at that time. Datasource Assign a new value to the prop

sql server - Error When Creating CLR Function -

I created a C # class that contains 2 static methods and I successfully created an assembly in SQL 2005. When I create a table-value function from that assembly, I get the following error: Message 650 9, Level 16, State 36, Process, Line 2 Metadata There was an error collecting; 'HSST 0x80004005 with We have other CLR functions that are in the same DLL and work fine. What I tried to emulate other works, but I can not seem to work this function. All the documents online are unable to help I had the same problem In the C # method, the return value is converted into datatable and wallallel's inimenable inst'd. No problem. Good luck tsadok

c# - Dataset to excel -

I am developing an application that exports to dataset Excel, this dataset has 3 tables and their The middle is concerned, I would like to export it to an Excel sheet, where each parent has a '+' mark for the table, when expanded, it shows the corresponding child values ​​of a table to excel. I know to export That's how to do it, but thus make the relationship do not know how to do this, what I create macros on Excel files? I use the DevExpress report or ActiveReports for this. I create a general report and save it in XLS next time, and it is done using a very complex code for us. It is easier to use third-party components

How to hide a table row in jQuery? -

मेरे पास टेबल है जैसे कि & lt; table class = "headerTable" id = "headerTable" & gt; & LT; tbody & gt; & Lt; tr class = "hh" & gt; & LT; टीडी & gt; test1 & lt; / टीडी & gt; & LT; टीडी & gt; 18,164 & lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; tr वर्ग = "सदस्य" & gt; & LT; टीडी & gt; test3 & lt; / टीडी & gt; & LT; टीडी & gt; 24,343 & lt; / टीडी & gt; & Lt; / टीआर & gt; & Lt; / tbody & gt; & Lt; / तालिका & gt; मैं वर्ग सदस्य के साथ पंक्तियों को छिपाना चाहता हूं। मैंने ऐसा कुछ किया है लेकिन यह काम नहीं कर रहा है .. $ ("# हेडरटैब टी टी: सदस्य")। छुपाएँ (); इसे आज़माएं $ ("# headerTable टि। Tr.member ")। Hide (); सीएसएस चयनकर्ताओं की तरह jQuery में चयनकर्ता, तो आप उन्हें उस तरह से उपयोग करने में सक्षम होना चाहिए। आप ब्राउज़ कर सकते हैं, यह आप कर सकते हैं दिलचस्प बातें से भरा है ।

java - How can I configure Spring to save as much memory as possible? -

We are deploying an application on a semi-embedded device that has memory barriers, whatever we can do To save we are analyzing the pile dump of apes and attacking the largest consumers. We use Spring 2.5 with Spring DM1 and we see that some of our bundles are using memory much more complex spring contexts because the spring holds around the whole object graph in which All the beadfinions that were parsed from XML I thought most of these are unnecessary after the start of the app and everything is injected. Is there a configuration option for Spring that allows this behavior to be controlled? Run in some low memory mode? Throw all the unnecessary things? Business calculation time for size? I had a deep sense of side and some interesting results. Its default configuration in Spring is not particularly interested in its memory usage in being conservative, two fundamental aspects can be touched for significant benefits: Spring OsiziBandLuxLapplificationContax For the firs

Oracle 11g SQL select max integer value of varchar column -

myTable UNID 9 10 UNID एक VARCHAR2 है मेरीटेबल से अधिकतम (यूएनआईडी) का चयन करें यूएनआईडी को उच्चतम लेक्सिकोग्राफिक मान (9) के साथ देता है। मैं सबसे अधिक पूर्णांक मान (10) के साथ यूएनआईडी कैसे चुनूं? नहीं अधिकतम चुनें (to_number (UNID)) से अपनेटेबल काम?

In LabVIEW, get callees without loading a VI -

There is a clear Friday morning question: Is it possible in Levhewview that he is in a sixth memory Without loading the whole half? For example, by reading permanent information from binary? Thanks OK there is a private / script method app. Read linky information from the file , I do not think it will load memory in VI, for more information ( current offline , here is one) Linker Method Page Linker will return all information on Method VI and it is external requirements (VIs, DLLs, CHMs etc.). Ton

c# - WebService: Difference between my pc and server -

I have a bug where special characters (in this case Dennis 'ø') are shown correctly when the local level , But the wrong code runs on the server (I get a pipe '|'). I was trying to solve it today, but in addition to updating code files I did not have access to the server. I will limit access to Monday, so I can write intermediate results in at least one log file, but to be prepared I thought I would ask here for suggestions. Program flow: The AC # test calls its web service through a webRinance. This web service calls the external web service through any other web request. When I run my own web service locally, I get the right results from the external web service. The server returns an external web service error; He did not find the word I was looking for. Except that I entered the 'Bossemargage', but the word about which the complaint is made is returned back as 'BSSMgarge'. What could be the reason for this difference? The AAPIIC server ru

DBISAM database utility -

I have a DISISAM database which I need to open and view and eventually migrate to SQL Server, if at least There is no separate file with a comma. Does anyone know about this to use? DBISAM lets view ships with a free DBSYS utility Write tables, questions and export results.

visual c++ - VC++ #import directive for GCC/G++ -

I'm trying to test a library that provides VC + + example; However, I use GCC / G ++ for all my projects. OK, the way VC ++ reaches the example library, it uses the #import command, instead of the library DLL, then it namespace < I> LIBRARYNAME , and then it is capable of creating some undefined type (I think it is defined in DLL) and can create a new instance of __uuidof Since then, since then, one would make an example to call a library function For example, created obj-> fu () and so on. Good ... #import of G ++ is different Import of VC ++ (see), so this example will not work for me. Is there a way that can be changed to compile it under G ++, or until the library developer is trying me to be a stable library? If you are using signin, then this page: All you need is your help. If you are using Mingview, you can complete the same task, but you will probably not get grep and sed, so you must use another method of filtering your .def Get the file.

elisp - Implementing a dired interface in emacs for something other than the filesystem? -

The commonly used data analysis framework in high energy physics uses a binary file format that includes an internal file system The LS () method output from the program (i.e. Folder & Amp; Files) program sees something like this: key: TH1D name1 key: TH1D name2 key: TH2D name 3 ... . Where "TH1D" and "TH2D" etc. are the only object types. This file will be very good to browse in a tired interface in Imac, I certainly do not have the energy / time to write a tired interface (even with the help of DearLL) my question Is it possible that if possible, how can I tap into a tired interface by implementing some functions again, as is the tired interface for output like above? I'm sure there is a full-fledged tool here, but pointers for examples, tutorials and other useful information. archive - moad or tower-mode May be a good starting point.

Image caching vs. image processing in PHP and S3 -

The thing here is right now I have this e-commerce web site where people can send many photos for their products. All images are stored on Amazon's S3. When we need thumbnails or some things, then I check on S3 if someone is available. If not, I do a process and send it to S3 and display it on the browser. Thumbnails of every different size are stored on S3, and checking the thumbnail availability for every request is to consume money. I am afraid that after paying more attention to the site, I will pay a lot (if it is ... ). Thinking of the option, I was thinking of placing the original pictures on the S3 only. Process the images flying on each request. I think that in this way I use the CPU, but I see a standard Not made me how far I can go. The thing is that I will not dismiss requests to make money and store more images on S3 and I can cache everything on the user's browser. I know it is not safe to do this, that is why I am bringing this question here. What do you th

C++ Casting a byte binary value into a string -

How do I show 6 bytes in a mac address in a string that displays the address as a hex value separated by colon is? Thank you You probably want a sequence of six bytes such as: < The first byte is formatted in / p> aa: bb: cc: dd: ee: ff where aa is in hex. Do something like this: Four Macs [6]; // & LT; I'm assuming that the actual content in it is std :: ostringstream ss; (I! = 0) SS & lt; & # 39; & # 39; & # 39; ss.width (2); // & lt; for everybody (for int i = 0; i & lt; 6; ++ i); Use two letters for byte ss.fill ('0'); // fill with '0' if the number is only one hexadecimal digit SS If you want to style it in the style of an artist (here's guessing your title ), You can create a Mac class, apply ostream operator to it (like my E-code) and boost :: lexical_cast .

javascript - Would it be ridiculous to use a switch statement to handle irc server codes? -

there is plenty I'm working a little bit, and only a few people support Started by these initially, and then a switch statement did not seem like a bad idea. But as much as I support more, the switch statement is getting more and it seems that it is out of control. One issue is that I have placed low level IRC handling code in a file so that it can be reused. I would like to put everything in a file. Another issue is that code blocks in the switch statements currently consider part of this IRC class and this statement is often used. Changing now will be a lot of work and start regression. The only problem is actually my rudeness for a long switch statement, otherwise you know that it works, and it is easy to read, but it is not really making it difficult to maintain but it is such a long switch statement. And this ceremony includes a switch statement, obviously, it is too long. : // Once I make a switch for a switch, I define the actions that have been named after the value

annotations - How to set an expected exception using Scala and JUnit 4 -

I want to set an expected exception for a JUnit 4 test using Scala. I am doing something similar to the following: @Test (expected = classoff [nullPointException]) def some Test () = {// some test code} < P> But I get the following compiler error: Error: Wrong number of arguments for constructor test: () org.junit.Test The way the attributes are related to attributes, it is a little cowardly; I think what you are trying to do, this Should be expressed as: @Test {val expected = classOf [NullPointerException]} def someTest {// test code}

postgresql - How to insert Japanese text into a Postgres table using PHP? -

I am tring to add "翻 訳 す る テ キ ス ト や ペ ペ ペ ー ジ" in a PostgreSQL table , But it has been shown as: "& # 32763;" "& # 35379;" & Amp; # 12377; & Amp; # 12427; & Amp; # 12,486; & Amp; # 12,461; & Amp; # 12,473; & Amp; # 12488; & Amp; # 12420, Web & amp; # 12,506; & Amp; # 12540; & Amp; # 12,472; How can I insert that in the proper format gt; & lt; input type = "submit" name = "sub" /> and gt; & lt; / body & gt; text "itemprop = "Text"> Whatever work you have, see > Look for available Character support and how to use them Note that php is a direct SQL query that does the same encoding To provide for change However, this does not help with converts with encoding requested with requested encoding and insertion. To work on it, the correct encoding must be set in the database / postreSQL (see the first two references). (Note

iphone - Does full version of application replace the lite version or it is downloaded as new app? -

संभव डुप्लिकेट: सभी iPhone डेवलपर्स हाइलाइट करें, क्या कोई यह जान सकता है कि, जब मैं इसे अपग्रेड करने के लिए ऐप स्टोर में आवेदन के अपने नए संस्करण को अपलोड कर रहा हूं। अगर मेरे डेटाबेस में बदलाव होता है तो इसे प्रभावी करने के लिए पुराने संस्करण को हटाना होगा। अब, जब उपयोगकर्ता इसे अपग्रेड करता है, तो सेब पहले ऐप को हटाएगा और नया डाउनलोड करेगा या यह सिर्फ एप्लिकेशन अपग्रेड करेगा? < पी> इस प्रश्न की तरह लगता है कि आप क्या चाहते हैं:

visual c++ - LoadLibrary() error code 127 -

I'm having trouble with LoadLibrary () and get an error that I do not understand: : Setlist error (0); M_hDll = :: Load Library (szName); If (m_hDll == NULL) // failure to load DLL {DWORD error = GetLastError (); } The error is 127 ("The specified process was not found.") This makes no sense to call on Libri (). I have not said GetProcaddress () yet Both DLL (and applications) are compiled with VS ++ 2005 SP1. What could be wrong? Take this step by step: error message Means that DLL was found but an essential function is missing. (Jitter is right.) This means that you need Dell, but not the right version. (Daftidis is correct, although the Microsoft Runtime Library can not only be a problem, and for at least big updates, Microsoft gives its runtime library different names, so in that case it will not be an issue.) This does not understand because no function has been requested by DLL loading. (Adam is right.) Therefore, the unavailable func

c# - SQLite triggers and raising events in other processes -

I'm new to the trigger, so I apologize if this is a stupid question. Is it possible for a trigger (or some other database system) to increase an event in another process For example, I need an app to know about some particular activity (special Update to a specific table with data), but I should not have to do that process with the database Did anyone know that a trigger (or maybe a stored procedure) An event or any other asynchronous notification system Ia is likely to increase? Yes, a Write a trigger that works on your criteria and defines what you call an external function. I can forget whether SQLite custom calls external functions, but they are there

c# - Maximum number of databases in sql server 2008 -

We are writing an ASP.NET / C # based program that will likely be used by many companies (each different Login and data). We are thinking of having several SQL Server 2008 databases (the same example), however for every one company, the C # program that accesses the database will be identical and will create the appropriate connection string based on the database accessing the customer. . How many such databases can be created in an example of SQL Server before viewing any performance declines: The limit on the connection, because each connection (Not sure that it will be stored to reach different databases) is built using a differents connection string. The limit on the number of databases, whether it is limited to hardware or SQL Server 2008, when the number of databases is called 100 to increase? Am I missing something else? Thanks for your time Maximum SQL Server instance per database : 32,767 Maximum user connection: 32,767 (from here) In two,

random - Randomly generated hexadecimal number in C# -

How can I generate a random hexadecimal number with the length of my choice using C #? static random random = new random (); Public static string GetRandomHexNumber (int issue) {byte [buffer = new byte [number / 2]; Random.NextBytes (buffer); String result = string.concat (select buffer (x => x.ToString ("X2"). ToArray ()); If returns (number% 2 == 0) returns results; Return Results + Random Next (16). Ostring ("X"); }

c# - trying to create a asp.net mvc viewpage w/o codebehind page -

I am trying to create a watch page in my ASP.NET-MVC app. For this, I have a strongly typed view, and I too have overrined the MVCPAG class. For some reasons when I load the page, it says that it can not load like this: & lt;% @ page title = "" Language = "c #" masterpagefile = "~ / view / share / site.master" line 2: inheritance = "blah .miviewpage The code you posted Quite confused I am not sure what is wrong, but this is how I work for my work (i.e. page without code): Change MyCustomViewModel with your own visual model class, because you have mentioned that you have a persistent view. If it still does not work, then it can post more detailed code & amp; The reported error may be easy to help people ...

ruby on rails - nomethoderror for rack::utils::escape -

I'm new to railing, so I apologize for my ignorance Continuing to install a class outside: PARAM = {# ... = & gt; ... 'field' = & gt; Escape ('some with / slash')} and get a node method: Undefined method 'escape' I tried the rack: Utils :: Escape And rack :: P> You can use CGI.escape You can. # lib / my_foo class MyFoo Things = {: hi = & gt; CGI.SPEP ("OK hello, there.")} If this rail is carried out outside the environment, you will need of "cgi" Also in form

logging - Visual Studio 2008 crashes when displaying XAML view. How to get more information? -

I am developing a Silverlight app using VS2008 Express. I have just implemented a new user control and added it to a grid When I try to open an XAML view in which this control is controlled, VS crashes and restarts. Where can I look for more information? Is there an event logged in VS? Update I found my problem which was a circular reference, due to which a ... Stackoverflow log did not help much - I read through code in another editor And discovered your bug. First of all, in the Window Event Log (App Log), this is probably a fastfile error message called " Net Runtime Version 2.0.50727.3053 - Fatal Performance Engine Error (7A035E00) (80131506) ". " " With more details, what will be the reason that you are either as a debugger or any other VS. You can add examples and see debug output or you can enable because it is usually due to assembly load errors. A common cause of VS Fast Fail is a bug. NET 2.0 SP2 has been described in more detail here:

php - Zend framework web app not coming up? -

I'm trying to get a web app created on the Zend Framework, but I'm experiencing this error Warning: Need_once (Zend / Loader.php) [function.require-once]: failed to open the stream: line / 17 / / var / www / worm / There is no such file or directory in index.php. : Need_once () [function.require]: Required opening required in /var/www/worm/index.php on line 'Zend / Loader.fp' (included_path = '/ var / worminc / application /../ library' } I do not think that you have correctly configured your LIB_PATH to the top of your bootstrap On: define ('LIB_PATH', '/ full / path / to / library'); // The Zend Framework Library has set_include_path (LIB_PATH.PATH_SEPARATOR. Get_include_path ()); Need_once ('Zend / Loader.php');

How can I get column names from a table in SQL Server? -

I want to query the names of all the columns in a table. I came to know that: But I must know: How can this be done in Microsoft SQL Server (in my case 2008)? You can get this information and ask more, by asking more You can. This sample query: SELECT * to Northwind.INFORMATION_SCHEMA. COLUMNS WHERE TABLE_NAME = N'Customers' can be made on all these DB objects: - CHECK_CONSTRAINTS - COLUMN_DOMAIN_USAGE - COLUMN_PRIVILEGES COLUMNS - CONSTRAINT_COLUMN_USAGE - CONSTRAINT_TABLE_USAGE - DOMAIN_CONSTRAINTS - DOMAINS - KEY_COLUMN_USAGE - Parameter - REFERENCIAL_ CONSTRAINTS - ROUTINES - ROUTINE_COLUMNS - SCHEMATA - TABLE_CONSTRAINTS - TABLE_PRIVILEGES - Tables - - VIEW_COLUMN_USAGE - VIEW_TABLE_USAGE - VIEWS

How do automated recommendation algorithms usually work? -

I have just read that Team BellKor's practical Chaos is on Wired, and I am curious about how such Algorithms usually work. I know Team Balakor's solution should be an innovative in the field .. but how does this field generally work? Is it really a detailed database with Markov Chain that is running frequently or what? But how does the field usually work? This is a data mining technique, data mining is used as part of business intelligence (data warehouse and such), trying to find relationships and information in too many data Used to be. This computer is an area of ​​science, normally working with machine learning, eg. pattern recognition. Automatic recommendations consist of one organization with high support as shown in the recommendation. Neighborhood algorithm machine learning / data mining is one of the many algorithms used by people. If you are interested in the basic theory, then I would like to see Ian H. Suggestion by Witton. There is a great machine le

A good source for lisp libraries? -

itemprop = "text"> Is there a Pir type library? I hope that there is, but I have read somewhere that one of the losses of the lizap is that there is a lack of serious libraries, I think that hardliners find it hard to believe from half a century ago. is a good place to start.

objective c - NSNotificationCenter selector won't work with its NSNotification -

I am working on the Cocoa project in some (I know, objc is in the ...) and am Trying to understand NSNotificationCenter s > / P> [[NSNotificationCenter defaultCenter] addObserver: auto selector: @selector (selName :) name: @ "notName" object: zero]; I have a callback function: int callback (/ * args * /) {structName * f = ... NSAutoreleasePool * autoreleasepool = [ [NSAutoreleasePool alloc] init]; [[NSNotificationCenter defaultCenter] postNotificationName: @ "Nomenclature" object: [[NSValue valueWithPointer: f] Maintenance]]; [Autoreilpool release]; } and then for my selector: - (zero) selName: (NSNotification *) note {NSLog (@ "here"); NSLog (@ "Note is %%", note); } Now, if I comment on the second NSLog , then everything seems to work (i.e. "here" is printed). But if I leave it, nothing is working about NSNotification but to defeat the object of the NSNotification object, user, etc. looks like.

sql - Total amount of columns in mySQL ! -

मेरे पास यह sql है: SELECT *, (xnum * xprice) AS राशि, SUM (xnum * xprice) कुल से xxbasket LEFT JOIN xxsubproduct USING (xsubproduct_id) LEFT JOIN xxcolor USING (xcolor_id) WHERE xuserid = '3' जब मैं SUM (xnum * xprice) का उपयोग करता हूं कुल मिलाकर यह मुझे केवल एक पंक्ति देता है, लेकिन जब मैं इस SUM (xnum * xprice) को निकाल देता हूं, तो मुझे सभी पंक्तियाँ दी जाती हैं मेरा सवाल है कि मैं कैसे योग प्राप्त कर सकता हूं? जबकि मुझे क्वेरी से सभी पंक्तियों की आवश्यकता है? योग एक ऐसा कार्य है जहां सभी मूल्यों पर आपके मूल्य (xnum * xprice) का योग की गणना की जाती है। "post-text" itemprop = "text"> । परिणाम एक पंक्ति है। यदि आप पंक्तियों के कई समूहों की राशि की गणना करना चाहते हैं, तो आप ग्रुप बाय क्लॉज का उपयोग कर सकते हैं, जो समूहों को समूह में समूह (जैसे GROUP BY userid के बजाय आपके जहां खंड सभी उपयोगकर्ताओं के लिए SUM (xnum * xprice) की गणना करें)

iphone - Link to iTunes music -

I would like users to go to a certain music album in the iTunes music store (App Store) as much as possible. Is it possible to create a direct link that opens to the iTunes Music Store with a special music album or song? You can see such behavior in the governance.

email - Anonymous SMTP Service -

Do anyone know of a free, anonymous SMTP service? I want to give users of my app occasionally the ability to send an email email without configuring a server to log in to their email account. I think I can set up a Gmail account for this purpose and embed the credentials in the app but I hope it will not be necessary. If you answer this in your answer, then this is a thick client (.NET console) app. I think that what you are asking is A. Is called.

asp.net - Web Deployment -

We had an asp.net 1.1 application that we recently migrated to 3.5. When we revise the code on the migrated application, we are facing some problems. Here's what's going on In the asp.net 1.1 application we have page directive codehe = "ePC.aspx.cs". Migrate It Right We have made code changes in some .cs files. Say for example, we added a button and added the event handler to the button. This new functionality was not being executed properly. We have changed the codebehind instruction for the codefile directive It is working fine now but during the deployment, it asks that the .cs file with the ASPX page is also deployed. Its being done. We are not sure why this is happening. I've attached an example page direct CodeFile in VisualFundio & lt; % @ Page language = "C #" codefile = "EPC.expx.cs" AutoEventWireUp = "True" Inheritance = "SPU Environmental Web.PC"%> After publishing website &

Open flash chart : Where is the CSS? -

I am using an open flash chart to display some graphical data in my web page. Now I want to change the graph's appearance. I want to change the background color of the graph. I could not find any CSS file in the download. Can anyone tell me where should I change the color? Assume that you are using PHP, you can set the background colo u / B> r (note UK spelling!) As follows: $ chart = new open_flash_chart (); $ Chart- & gt; Set_top ("my chart"); $ Chart- & gt; Ad_lement ($ bar); $ Chart- & gt; Set_bugsolar ('#FFFFFF'); Alternatively, if you are negligible with the raw JSON, set the bg_colour element at the top level : "" "" "" "" ":" Bar "," value ": [1, 2, 3]}]," title ": {"Text": "my chart"}, "bg_colour": "#FFFFFF"}

javascript - how to make div click-able? -

& lt; div & gt; & lt; span & gt; शंघाई & lt; / span & gt; & lt; span & gt; पुरुष & lt; / span & gt; & lt ; / div & gt; ऊपर की तरह div के लिए, जब माउस पर, यह कर्सर बनना चाहिए: सूचक, और जब क्लिक किया जाता है, तो जावास्क्रिप्ट फ़ंक्शन को आग, यह काम कैसे करें? < / P> संपादित करें : और माउस चालू होने पर div का पृष्ठभूमि रंग कैसे बदल सकता है? पुनः संपादित करें : कैसे करें पहली स्पैन की चौड़ाई = 120px? फ़ायरफ़ॉक्स में काम नहीं कर रहा है इसे "कुछ" जैसे एक आईडी दें, फिर : var कुछ = document.getElementById ('कुछ'); कुछ। Style.cursor = 'सूचक'; कुछ। पर क्लिक करें = समारोह () {// कुछ करें ...}; पृष्ठभूमि रंग बदलना (आपके अपडेट किए गए प्रश्न के अनुसार): कुछ.नॉमसओवरओवर = फ़ंक्शन () {this.style.backgroundColor = 'red' ; }; Something.onmouseout = फ़ंक्शन () {this.style.backgroundColor = ''; };

linux - current directory doesn't appear in title bar when running under screen -

मेरे xterm $ prompt चर मेरे .tcshrc में है: < / P> सेट प्रॉम्प्ट = " % {033] 0;% m:% ~ \ 007%} % {^ ^ [37] ; 1 एम%}% बी% {^; 34} 1 एम%}% एम% {^; 34; 1 एम%}:% बी% सी% # " हाइलाइट ऊपर का भाग ( % {0}} 0;% m:% ~ \ 007%} ) शीर्षक बार में होस्टनाम ( % m ) और वर्तमान निर्देशिका ( % ~ ) डालता है (कम से कम I लगता है कि यह वही है जो इसे शीर्षक बार में डालता है, यह एक समय हो गया है जब से मैं इस प्रांप्ट से छिप गया हूं)। जब मैं स्क्रीन मेरे प्रश्न: मैं स्क्रीन पर यह काम कैसे कर सकता हूं? क्या वर्तमान निर्देशिका को शीर्षक बार में प्रदर्शित करने का एक बेहतर तरीका है? मैं लिनक्स को xterm और tcsh के साथ चला रहा हूं। < Div class = "post-text" itemprop = "text"> मुझे लगता है कि स्क्रीन के काम की वजह से कोई सीधा रास्ता नहीं है हालांकि स्क्रीन अपनी स्थिति पट्टी प्रदर्शित कर सकती है, जिसे आप .screenrc में परिभाषित कर सकते हैं। उदाहरण के लिए ये मेरा है: hardstatus alwayslastline hardstatus स्ट्रिंग '% {= kG} [% {G}%

c# - How to manage that aspx pages load faster? -

I have a big problem that you can work with all of the web forms. The problem is the page load time is the localhost in Vista (IIS 7). I use this article. As you can see, this more than 17 seconds to show the page !!! And only 2 seconds to load the page manually ... I am using the ASP.NET AJAX framework to work with Web Parts. How can I reduce this to 17 seconds? Any idea where to go is greatly appreciated :) Added: test the correct answer < P> I tested & asp: ScriptManager id = "sm" runat = "server" /> In & lt; Ajax: ToolkitScriptManager id = "sm" runat = "server" CombineScripts = "true" /> More results use firebug is impressive (half time, and no cache access!) As you can see in the image below And with CSS and jQuery, cached files are less than half of it! not as a valid answer Will be counted because I do not know exactly how to do that, but the problem is

Extending Visual Studio 2003 C++ debugger using autoexp.dat and DLL -

I know that a solution would be to use VS 2005 or 2008, but this is not an option at this time. To improve the way I display the data in the clock window, write the extension of the VS 2003 C ++ debugger. The main reason I'm just using a DLL instead of the original AutoXP DATT functionality is that I want to be able to conditionally display things. To wit. I want to be able to say "If a member of the name is not an empty string, display name, otherwise display [no other member]" I am not getting online from MS or others who are VS Use this part of 2003 (or try to experiment). The MSDN E Edin sample was a good start, but it was very basic and actually did not help me get too far. So far I'm just learning my way around it, despite knowing that in the end how I am working on how to display different types of things. I used to get DLL to display point-to-basic-type members, string members, pointers-to-user-defined-type members, and Auto_ptr (much testing and er

math - How to calculate time span from timestamps? -

I have a very interesting job at work - I have to figure out how much time the user is spending and I have everything The timestamp of my savings I know of a fact that the user saves after every small part of the work, so they are not far away. The obvious solution will be to find out how long a small object can take and then simply go through the sorted timestamp and if the difference between the existing one and the last one is greater than that, its This means that the user has a coffee break, and if it is less then we can add this difference to the total amount. Simple example to illustrate this: var prev_timestamp = null; Var total_time = 0; Forex currency (Timestamp in timestamp) {If (prev_timestamp! = Null) {var diff = Timestamp - prev_timestamp; If (difference> threshold) {total_time + = diff; }} Prev_timestamp = Timestamp; } The problem is, while I know how much time is spent on a small part, I do not want to depend on it. What if some users are too slow compare

.Net unicode problem, vb6 legacy -

I have a decryption routine in VB6. Now I want the same decryption in C # string which requires decryption is in Unicode, so I use encoding to read the input in C # .UnicodeGetString. The input looks exactly like the VB6. The first few letters in the loop are decrypted properly! So I'm getting a difference ... The program parses the '~' character with a different indicator compared to VB6. When debugging I see in VB and in the following. Net: VB6 ~ code 152 c # ~ = code 732 No need to say, decryption fails. I need to get 152 for the character described above. What's wrong here? Regards, Michael Your VB6 was not reading Unicode (I guess in the Windows-1252 codepage), which is why That it is back with a different character code.