Posts

Showing posts from January, 2012

import - Combine Separate Git Repository Branches -

I have two different GIT repositories, one is mine, and "branch A", the other is developed by another person And was "Branch B". They both have the same master branch. How do I import his branch inside my GIT repository? So I should have the result: $ git branch Branch A - Branch B Master = $ git remote add otherguy git: //. .. Get the latest data: $ git fetch otherguy and then the remote branch you checkout your Want a new branch of itself: $ git checkout -b branch_bye other / branch_b

php - On what line did a script exit? -

I have a PHP script that is hairy and I'm trying to get rid of it. There are no errors, but I am having trouble seeing what performance path has been taken for the output I have received. Is there a way that the script can stop stopping? Friends, sorry I did not make this clear. There are no errors, no exception is being raised from the computer's point of view, 'Nothing' is not happening anything. But production I do not expect. I am trying to track down, where the script is coming out normally, but this is a challenge. My life will be very easy if it is said, "Ending the finish on script 422 line" Xdebug Is using and running, can give you the information you are looking for.

c# - WinForms WebBrowser control — Get Document Elements After AJAX? -

I am using WebControl from the Windows form in C # and I am trying to load a web Ajax content (I think content is AJAX) This is the page code from Explorer: & lt; Ul id = "building" & gt; & Lt; Li id = "button1" class = "on" & gt; & Lt; Div class = "supply 1" & gt; & Lt; Div class = "buildingimg" & gt; & Lt; Class = "fastbuild tips" title = "Expandir Mina de metal al nivel 11" href = "index.php? Page = resource and session = ccec6b62991a & amp; modus = 1 & type = 1 & menge = 1 & token = Ae485059d2eb1d87bc6f181744a4b4ab "& gt; & Lt; Img src = "img / layout / sofort_bauen.gif" width = "22" height = "14" /> & Lt; / A & gt; & Lt; A class = "description_button tips slideI" = title; "mina de metal" ref = "1" id = "description" href = "#" & gt; & ...

c++ - g++ compilation error of another thing that works in msvs -

People, I'm posting some code from a project developed in MSVS to use GSAR. I have found very little difference, most of the things that allow MSVS but do not + G ++ are generally something that involves C ++ standards, things that give MSVS slides, but I There is a problem in seeing what is wrong in a particular section. G ++ is having trouble matching operator to call! =, But seeing only a specific reference operator! = Works for a specific nested class if the hosting class is not a template, if I change the hosting class in class templates, everything breaks I'm losing something fundamental to either C ++ or G ++ I am doing something wrong. I have not learned to cry "compiler bug"! Many times, so I want to see if anyone can see here what I am missing. This work example is working, non-template version, and then broken, template version. G ++ - Gives Vision: G ++ (Ubuntu 4.4.1-4ubuntu9) 4.4.1 Working Reference Versions Without Templates Namespace W...

javascript - Cross-platform JS access to local filesystem via plugin? -

I have a javascript photo-organizer that is built on UIIs Libs, which can be downloaded from many sites through a reissue API Can organize photos. I want to know that I can reuse any one of these codes to organize the photo on the local file system. I need a cross-browser (i.e. PC / MAC) solution (in the order of increasing privileges): Repeat files Ability to manage large uploads of thumbnails on your server Use the FOLDER + file to scan JPG in the folder tree. Drag-drop Ability to execute local shell scripts to generate thumbnails I have seen the following and received some low-aneping: GoogleGears - Local access to files through the dialog box, only Adobe Air - is this a potential solution ??? Can I reuse my javascript? Can anyone tell me that it is possible in the air, or if there are any other plug-in options / strategies? Note: I can not live with the downloads and solutions like Adobe Air, unless I have to write both PC / Mac versions, can not it ...

winapi - MouseDown and then MouseUp doesn't work -

I am trying to redirect the mouse inputs to my Windows 7 application in another window. If I get WMLUBUTUTUP, then it works (This works (where the mouse mode and the mouseup is the Win API in the input penalty): SetOnged Wando (other window); SetCursorPos (somewhere On the window); Mouse down (); MouseUp (); SetCursorPos (back); Set offground window (main window); But I just do not want to release the mouse, I have all the movements, including movements and dragging To capture mouse content I want to be able. So this is the next to make a logical point but it does not work: WM_LBUTTONDOWN: Do everything as before without the mouseover ( ) WM_LBUTTONUP: Do everything already without the mousedown () This does not work for regular clicks too. I do not know why can someone help? The mouse button is fun when it gets down, at some level, I change (and I think that mouse is eaten up at some point, but I can not remember it correctly). This can be confusing your code ...

Identical Class Member Names and Function Argument Names in C++ -

I have a simple object that holds some [public] data. I want to keep my interface is clear, so I want to pre-edit / post-fix the names of the variables accessible from the publication nor the names of my function arguments. He said, I did something like this: template & lt; Typename T & gt; Structure fu {clear fu (t x): x (x) // This [i.e., x] is doing "right thing", but is it well defined? {/ * ^ No pre / post-fixing * /} T x; // no pre / post-fixing }; Just for repeat: All I'm asking is whether it is a well defined behavior, I should or should not do it ... Thank you. Yes, that's fine, and absolutely standard. Local variables always come first in viewing a name, but the x (...) clearly refers to only the member variable in an initial list [edit: or base category]. If you have not used the initial list, then you have to type: clear fu (t x) {it-> X = x; }

objective c - The application cannot be opened because its executable is missing -

I have an application that I have been developing for some time. Recently, the introduction of the application through a double click presents a dialogue which says, "You can not open the App Repo Watch because it can be damaged or incomplete." Launching the application via open media. "The application can not be opened because its executable is missing." I usually start the application through habit. / ReepowWatch.app/Contents/MacOS/RepoWatch just out of habit (which works), so I'm sure this is happening, or what has changed before hand. The most likely is that I have put the cp Info.plist ./RepoWatch.app/Contents / in my makeup file without processing everything in the .app bundle for version Info.plist. I have seen Info.plist many times and can not find anything wrong with it. The file opens with the Property List Editor without any error Saving the file from the Property List Editor does not work "work" (if it's the fault in the fir...

vb.net - Accessing masterpage properties from child pages in ASP.net VB -

मेरे पास masterpage.master.vb है जहां मेरे पास गुण हैं, जैसे कि; निजी _SQLerror as String Public Property SQLerror () स्ट्रिंग के रूप में लौटें _SQLerror End सेट करें (ByVal मान स्ट्रिंग के रूप में) _SQLerror = String.Empty End Set End Property फिर मेरे पास एक aspx पेज है मुझे इस संपत्ति का उपयोग करने की आवश्यकता है, जैसे; यदि ** [masterpage property sqlerror] ** = कुछ नहीं तो आंतरिक एसक्यूएलआरएल लेबल। पाठ = ("कोई भी त्रुटियां नहीं की गईं") अंत अगर क्या कोई मुझे इस बारे में एक विचार कैसे दे सकता है? मैंने खोज करने की कोशिश की लेकिन अधिकांश लेख वेब नियंत्रण के संदर्भ में बात करते हैं ... धन्यवाद। यहां आप जा सकते हैं: लेख से, यह दिखता है यदि मास्टर। SQLerror = तब कुछ नहीं तो आंतरिक एसक्यूएलआरएलएलएलएल पाठ = ("त्रुटियों की रिपोर्ट नहीं की गई") यदि आपके लिए काम करना चाहिए। बस बताए अनुसार मास्टरटाइप डायरेक्टिव्स को जोड़ना सुनिश्चित करें या आप एक प्रकार का हो सकता है रूपांतरण त्रुटि (या आप मास्टर के बदले अपने मास्टर पेज प्रकार का एक वैरिए...

actionscript 3 - Using Runtime shared libraries in an application with multiple modules (Flex) -

I have an application with many modules, they are working fine without rsl; Goes and causes damage in terms of performance on time. RSL decreases with size and performance improves, but some modules are not loaded. Any thoughts on this? Can we not use RSL in many module applications? Any help in this regard will be appreciated. Thanks in advance Not using or using the RSL does not affect performance should do. It is probably okay that some modules will not work without RSL so that the performance can increase. He said that the lawsuit on RSL is a good practice, to ensure that all the RSLs are loaded before adding those definitions (i.e. use a preload strategy or just "all" in the main "SWF" Include RSL Definitions). If the attempt to retrieve the RSL definition is made within a module, while the RSL does not load but it will stop the script. Maybe this is happening now ...

c# - What is the most elegant way to overload a constructor/method? -

ओवरलोडिंग कन्स्ट्रक्टरों और विधियों को गंदा लगता है, यानी उन्हें केवल अंतर कराना मापदंडों का क्रम और संख्या ऐसा कोई तरीका नहीं है, शायद जेनेरिक के साथ, यह ठीक से ऐसा करने के लिए, भले ही आपके पास एक पैरामीटर (जैसे स्ट्रिंग आईडीकोड / स्ट्रिंग स्थिति) अभी भी हो सकती है उन्हें अलग करें? सिस्टम का उपयोग कर; नेमस्पेस कंसोल अनुप्रयोग 1 {क्लास प्रोग्राम {स्थैतिक शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {TheForm tf1 = नया TheForm ("ऑनलाइन", दिनांकटाइम.Now); द फॉर्म टीएफ 2 = नया द फार्म (डेटटाइम.अब, "फॉर्म 1"); }} सार्वजनिक वर्ग TheForm {सार्वजनिक TheForm (स्ट्रिंग स्टेटस, डेटटाइम स्टार्टटाइम) {// ...} सार्वजनिक TheForm (डेटटाइम स्टार्टटाइम, स्ट्रिंग आईडीकोड) {// ...}}} यदि आपको कई ओवरलोड्स की आवश्यकता है, तो शायद आपके प्रकार बहुत अधिक हैंडलिंग (देखें) हैं। निजी तौर पर मुझे शायद ही कभी एक या कुछ कंस्ट्रक्टर की आवश्यकता होती है

mysql - what is the best way to parse big JSON file and insert into database using php? -

I have this large JSON file. The way I am currently using it is: Read the entire contents in a string Get two json_decode, array Array Through loop one record at a time and the formation of my SQL statement The problem is that the code is ugly. Also, some of these arrays are objects themselves, and in all records Not all values ​​are included. I have to use isset to check that a particular value exists or the default value etc. is to be used. Overall, it works correctly, but the code is ugly. Can I write better in any way? If you do not want to write the ugly code to generate SQL questions, an ORM propel and theory It is considered to be used which I have personally used. In principle, there is a method to generate an orange from an object and then simply say the method of saving it. Take a look at this

ibm midrange - What development tools are there for the IBMi (AS/400, iSeries)? -

Is there any development tool for IBM - also known as AS / 400, ISAR? You can use native content ("green screen" device). Most of them are also available as client-server (aka GUI interface). You can use a popular option as LANSA (www.lansa.com). Or you use Java !!! The hell of ISERGs Java Machine is everything to affect your new world already to reach local ISARS stuff on board (JVM, JDK, Class Libraries (JTO Open)). And last, but at least, the world-class database manager is not root in the DB2 OS. How about !? (And no, I'm not an IBM representative just a happy RPG encoder; -)

How to replace corrupt Git objects with new ones created from my files, which are fine -

My app, in my file system, works just fine. Pass all the tests. I am a single developer using Git mostly for backups as well as to use Heroku. Git has stopped working because of corrupt objects. I have the errors that appear like this: Steven-Raison-iMac-200: drominay Steven $ git push haaroku master error: Increasing: data stream error ( Invalid distance too far back) Fatal: The object 990ad2766afa2e2002eea265225ad160e73eacd2 is corrupted error: the packed items died with odd error (and many other errors, citing all the corrupting objects) How do I Replace the guit with corrupted objects and replace them with the new objects created from the working copy of your app? Git init did not resolve the problem. Thank you! You need to use Git-FSC . The manual is, but the essence is that Git-FSC will then be able to make sure that the store is internally compatible and will list the missing items Git hash-object W & LT; Right-file & gt; To put the file i...

c# - How can I prevent asp:RadioButtonList from rendering a HTML-Table? -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं एक सरल सूची - नियंत्रण मेरा ASP.NET कोड-पीछे दिखता है: रेडियोबटन सूची सूची = नया रेडियोबटन लिस्ट (); List.ID = rbl.name; List.CssClass = rbl.cssClass; फूरचाय (रेडियो ब्लैक में आरएलएल। राडिया) {ListItem li = new ListItem (); Li.Text = radio.label; Li.Value = radio.value; ली। चयनित = रेडियो। @ चेक किया गया; list.Items.Add (ली); } लेकिन रेडियोबटन लिस्ट स्वचालित रूप से एक HTML- तालिका प्रदान करता है यदि मैं HtmlInputRadioButton का उपयोग करता है सब कुछ ठीक काम करता है लेकिन यह RenderControl () पर क्रैश हो जाता है आपको यह निर्दिष्ट करने के लिए कि क्या रेडियोबटन लिस्ट नियंत्रण में आइटम्स को किसी तालिका में प्रदर्शित किया गया है या नहीं इसका उपयोग करें। यदि यह प्रॉपर्टी दोहराई जाने के लिए सेट है, तो सूची में मौजूद आइटम तालिका में प्रदर्शित होते हैं। यदि यह प्रॉपर्टी दोहराई जाने के लिए सेट है। फ्ला, सूची में आइटम तालिका संरचना के बिना प्रदर्शित किए जाते हैं।

jquery table sorter plugin -

I need a jquery grid with pagination, search and inline editing options. I used the tableer but after page 2, inline (jquery plugin) edit the problem. I've tried flexigrid. Thanks v.srinath I have used something happily now. I should add this very useful to the use of data too.

webkit - how to navigate to another page using QMouseEvent qt event -

Please help me, I need to load a page to emulate the click event to get the content of the target page. From the tutorial I thought how to create an event, but how can I actually get QWebPage references on the next page. Thank you. Does your event and QApplication :: postEvent targets with QWebView Inhibits the works?

Django Custom Admin Ordering -

I have a list of images in my admin area. I would like to add an upp / down button to every area on the up field Clicking will move the image up in the order of the images. So it says its number 3 in the list and I click on it, now it should be moved to number 2. In order to proceed in the order of Bally, by clicking on the area, button or image given below. Any thoughts? Please do not assume that I am still new to Jago This snippet is "up" and " Down "link next to each object in the admin lists for a given model: I use it for most of my project I used to make it a slightly different reusable app Created, by placing it in a different dictionary (do not forget about the __ init __.ph file) - # -------- models.py Inside the file Meta link part, # -------- view inside views.py and # -------- URL Config inside urls.py .

Writing Python packages with multiple C modules -

I am writing a Python C extension which uses pygame C API. So far, so good. Now I wonder how I can organize my source code so that there are many submodule in my package. All tutorials focus on one file extension. I tried to see some projects setup.py files but they blurred my mind with complexity, and I could not see the forest for trees. Actually, I have an extension, MyAst MyExt has global functions, and 3 types is how do I go about organizing PyMethodDef lists? Do I have to keep them all in one list? Alternatively, I've found that the setup object that you've passed in the setup function, this is an array of operations module, so how can I do the name module so that they all have one package Can you see each other? / P> My setup.py: main_mod = Extension ('modname', include_dirs = ['C: \ libraries \ Boost \', 'C: \ libraries \ SDL \ 'Library \ SDL \ lib', 'C: \ Library \ SDL_image \', \ c: \ library \ SDL_image \ include ...

c# - PropertyGrid GenericList with GenericItems -

Is there a way to display and edit values ​​in the property grid (and its collection editor) of an object, which Abstract general class? I do not display properties like this: "IFilter'1" or "BaseFilter'1" where IFilter is an interface, and the base filter is an abstract class. All objects included in this list: list & lt; Iphilter & lt; Bool & gt; & Gt; _activeFilter = New list & lt; Iphilter & lt; Bool & gt; & Gt; (); An abstract class implementing IFilter is: Public abstract class FilterBase & lt; T & gt; : IFilter & lt; T & gt; {...} and some special implementation of FilterBase public class SimpleBool: FilterBase & lt; Bool & gt; {Public Bowl BowlView {Received; Set; } Secure Override Bull Process (Bull Input) {Return Input & amp; Amp; BoolValue; }} When I add this kind of "simple force" class to the above defined list, the property will not display any of the ...

python - installing _imagingft -

संभव डुप्लिकेट: ऐसा लगता है कि फोंट के साथ काम करने में मेरी कुछ समस्याएं, _आईएमएफ़ॉफ़्ट मॉड्यूल के भाग्य के कारण हैं। मैं इसे कैसे स्थापित कर सकता हूं? यह क्या है चरण में यह जगह में फ्रीटाइप विकास फ़ाइलों के साथ पीआईएल के निर्माण के द्वारा बनाई गई है।

linux - pid_t doesnt highlight by default in VIM -

All data types such as int, long, char are automatically highlighted as soon as I type them in VIM. But, there are some exceptions such as pid_t, mode_t .. How are they highlighted by default? You can add them to syntax / c.vim , so they Delivered syntax / c.vim to complement. For example: See the section of the user manual: syn keyword cType pid_t mode_t

html - excel like application in javascript -

I want to create an HTML / Javascript application that can be treated like an Excel sheet. I'm not talking about opening an excel sheet in HTML form, but rather creating HTML / JavaScript code that will behave like Excel sheets where grids and all html codes are included. I hope you get my question. Any ideas on how I can reach this task. Thank you, Sun I have javascript with copy / paste compatibility with Excel I need a data grid. I did not get it, so I created a jQuery plugin: Maybe you will find it useful.

Suppressing "Day too big" warning in Perl LWP::UserAgent -

I have a fairly simple Perl script that uses the LWP :: User Agent module to redirection to find the final destination URL. To follow the URL from The problem is that the script shows periodical warnings that look like this: day too big - 25592 & gt; 24855 sec too small - 25592 & lt; 74752 sec too large - 25592 & gt; 11647 days too large - 25592 & gt; 24855 sec too small - 25592 & lt; 74752 sec too large - 25592 & gt; 11647 This does not provide any other details as to why it is happening or which module is causing this issue, but I am pretty sure that this LWP :: UserAgent I am starting the agent using the following code: Use LWP :: UserAgent; My $ ua = LWP :: UserAgeent-> New (Cookie_organizer => {}, request_redirectable => []); $ Ua- & gt; Agent ('Mozilla / 5.0 (X11; U; FreeBSD i386; N-US; RV .: 9.9.9.9) Gecho / 2007/99 99 Firefox / 2.0.0.1'); $ UA- & gt; Timeout (10); I searched online and found only one result whic...

How to port WCF RESTful web service to Axis 2/C (or WSO C++) -

We use some web service applications (currently in the prototype phase) from WCF / C # to the C ++ cross-platform web service Looking back to starting the framework Therefore, I am looking at Axis 2 / C or WSO2WSF / C ++ possible frameworks. I really want to stop the functionality already written in the other service framework in the WCF service. The functionality here is: The web receive call returns to JSON - supported Axis 2 / Java (not yet fixed for C / C ++ versions ) Can refund arbitrary content (such as generated images or pages) too. In WCF, you can return JSON by decorating the service operation in this way: [OperationContract] [WebGet (UriTemplate = "/ calltimings ", Bodystyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json] TimingInfo [] Calltimes (); Where TimingInfo is a simple data contract that serializes JSON. How do I do this in Axis 2 (Java version anyway) Other My Phone service supports: [WebGet (UriTemplate = ...

php - Load ajaxdata in HTML or JSON-format? -

What is a better practice? Load data in HTML format or JSON-format? When I load the HTML, I am able to put all the html in my php view-file. When I load JSON, I have to put it in html elements with javascript. I know that a 'best practice-question' is not suitable for stack overflow. So a better answer to my question is a list of the advantages and disadvantages of both techniques. If you plan to call data often in the same session, better network traffic and accountability If you call only JSON data, the HTML / JS overhead that happens in the cache will only cross the network with the other call data. However it seems that you need to render a table with TRS / TDS. If you do not call it often, you are better than a simple HTML dump. Another idea is to clearly separate the data and the view for cleaner code and easy maintenance. A JSON call allows explicit separation between data and HTML. Both are mixed in an HTML dump. I just answered another question, it was...

Recursive block T4 template -

I have the function named IterateThroughChildren and I want to type the code to emit the code within that function. Generally code blocks & lt; ##> and custom functions & lt; Inside # + #, we have our code inside & lt; # = #> If I want to execute the above mentioned work and I want to get the code based on some logic, I example & Lt; # // Children to receive the code and the data of parents through the IterateThildren (object child, object parent); # & Gt; & Lt; # + Void IterateThroughChildren (object c, object p) {if (c is abc) {if (p def) {// some code is emit here i.e. WriteLine (SomeThing); Formula Foreign currency (var items in def.Item) {Eutertehrudin children (item, def); }}}. . . // and so on} # & gt; When you use square feature blocks in T4, that is, & Lt; # + #> , that code creates part of the underlying class that produces the template's output file in Visual Studio 2008, with built-in class abstract class Microsof...

javascript cross browser scripting help -

I have a small function that I only allow numerical input. It works great in IE, but I can not get it to work in Firefox or Chrome. I have this JS file which is full of the script tags in my HTML page. var numberOnly = function (evt) {var theEvent = evt || Window.event; Var key = theEvent.keyCode || TheEvent.which; Key = string. Lightcode (key); Var REGEX = / [0- 9] = .//; If (! Regex.test (key)) {theEvent.returnValue = false; }}; Var wireElemToEvent = function (elemId, event, joy) {var elem = document.getElementById (elemId); If (typeof window.event! == 'undefined') {elem.attachEvent ("on" + event, func); } And {elem.addEventListener (incident, funny, true); }}; Var wireEvents = function () {wireElemToEvent ("tbxQuantity", "keypress", number only); WireElemToEvent ("Tbxphone", "keypress", number only); WireElemToEvent ("tbxZip", "keypress", number only); }; Window.onload = wireEvents; Chrome tells ...

c# - How do you suggest a Java application, or any other 3rd party application written in any language, interact with a backend tool, such as SVN/GIT? -

So I'm looking at implementing a cover for SVN in C #, I'm thinking that together- What is the best way to interact with the SVN backend through wrapper application? Any suggestions? The first thing coming through my head was directly using the shell to manipulate the SVN. Just wondering what are the alternate ways :) Thank you! You can move on which there is a C # implementation, if the SVN client side API is any other For language, I take the same approach: see if a basic implementation of the protocol is already available or not. If so, use it if not, see if the protocol is well enough documented to apply it to yourself. That's not the case, or the time is really rare, come back to wrap the command line client.

How do I build a table view for iphone in which when you save it adds a new row instead of replacing the row? -

I have created an app with a table view that holds the frequencies and other data. I would like to select a line, edit it, and then add new information information to a new line below the selected row below the selected row. I am using core data I use the UIBarButtonItem * saveButton method to do everything fine but it just changes the line, I can also use the add-in but this table row Inserts the new line below. Insert illuminateActpace: withRowAnimation: the row will be put in. You will need to find out that cellophoree & amp; expose

java - Finding Duplicate Array Elements -

I am struggling to create a function essentially to find all the indexes of duplicate elements in a multi-dimensional array I (Canceled), in this case a 5x5 array, and then using the index, the score is found by changing the parallel element in the array. But within the column, duplicates are not available only and do not compare other columns in the array comparatively, here's what I have done with online research. The main problem with this code is that it will find all duplicate elements But not original For example: if there are elements in the array: {{"a", "a", "a"}, {"b", "b", "b"}, {"a", "c", "a "}}, Then it should change the parallel score array: {{0,1,0}, {1,1,1}, {0,1,0}} but instead it only recognizes the previous line and the top Returns the duplicate of the line at the top. code: public static zero search duplicate (string A [] []) {System.out .println ("* duplicate...

Reading a text file or XML file in Android java -

I am currently working on a group project to create an Android game. I have been assigned a PC-based level editor (everything that has been done). Whatever I have to do now decides on the file format for the format that is output. At present, it is a standard text file with different numbers representing different tiles; EG 0 = Path 1 = Wall 2 = Enemy 1 1 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 1 In the actual Android game Takes the file and stores the values ​​in 2D arrays. Although making actual games, who are having difficulty opening a text file, and others have told me that it must be using the XML file. I have now been asked to find a distant to take this input. Can someone tell me how I will read the text file and the value int array [] [] ? Or if it is easy, then use an XML file and tell me how to format that file and the value int sir [] [] Any help would be appreciated because I did not know how to use Android, so I find it very difficult. Many than...

networking - Monitoring multiple ports in tcpdump -

I'm trying to find a way to read several ports using tcpdump. Understand that I have two ports, P1 and P2, and I want to simultaneously read the traffic through both the ports. Is there any way to use TCPDump or do I have to use any other device? Actually I am running a proxy server running on some ports. I want to read the traffic going through Port 80 along with the increasing traffic through port 80 (HTP). tcpdump port 80 or port 3128

What character can be used to parse for paragraphs with Java? -

I'm sure people laugh a lot from this one, but I do not find a separator for my life. Is that when a new paragraph in a string of text has started word, and the line? Easy peasy, but the article seems to be more difficult to find. I have tried two line breaks in a row, Unicode representation of paragraph breaks and line breaks, there is no luck. EDIT: I apologize for the ambiguity of my original question. To answer some questions, this is basically the original text file created on Windows. I'm testing some code for opening and analyzing its content with BlackBerry JDE 4.5 using RIM Eclipse Plugin. While the source of the file will be the window (at least for the near future) and will be the basic text, I have no control over how they have been created (this is the source of a third party which I am designed to do There is no such paragraph break character in normal use. Maybe you are able to overcome two or more line breaks in one line (with optional horizontal wh...

c# - tool to view the compiler generated code -

Does anyone know the device for viewing the code generated by the C # compiler? I want to verify it class X {public event de Ev; } It has been compiled: class X {personal D __Ev; // field Delayed Public Event d'Avon {add {lock (this) {__Ev = __Ev + value; }} Remove {lock (this) {__Ev = __Ev - value; }}}}}} Your question does not make any sense, but you probably do. Edit : Now, your question is understandable. You are still looking for reflector. However, you do not have to set optimization in any options. It shows, private event handler

Linux shell: poll the keyboard button's state -

I have a script that is executed from time to time in the background by pressing the shift key But I want to stop its execution. This keyboard is voting to the Shift button position, and if it is pressed - close the script immediately. Any thoughts? X server is allowed to use: I think it would be helpful. UPD: I am currently using this stupid hack: [$ (Sh -c 'cat / dev / input Kill / by-id / usb- * kbd and sleep 0.5; $$! 2> / dev / null '| wc -c) -gt 1] & amp; Amp; Exit The script only detects the current keyboard events but does not separate them. 0.5sec kbd-events have clock duration. Not very good, but still works :) First of all, you key / bottom You can monitor the events, but as far as I know, there is no way to say that the key currently is pressed if you are ok with that ... then ... This means that listening to the main event has to be run in another thread. The shell script will have to create a program in the background that list...

python - django csv import threading -

Is it possible to use threading when importing data from the CDS files to the DNS. Django is Python, otherwise you can use threads, processing, etc. See the dragon docs on this matter. However, threads in the spawning web environment may not be a good idea, try searching for "django asynchronous" here - you will get many ideas without threading it.

How to Clear history in Adobe Air's HTML control -

I'm using Adobe Air's HTML control in my desktop application to view the Web page. I am using html.historyBack () and html.historyNext () methods to proceed. But when a specific option is selected, I want to clear history, one click on one button, without restarting the application. I tested both versions of AIR, 1.5.2 and AIR 2.0 beta, but there was no way to do this. Is there any way to fix this problem? By you, Alex Fisher All you want to do is have a starting point int in the enabled position of back and forward buttons, which you can reset as needed. Then base it on history.length.

How do I enable caching for XML data sets in Birt 2.5 -

I am creating a simple BIRT report using an XML data source, however, Using 3 different views (3 cross-tabs) While running the report, I noticed that BITT had fired more than one call to fetch XML file (hosted in a web server). I have tried neutral with the settings tab to edit the data set screen. But behavior does not change, I really appreciate it if someone can help me identify what's going on. Itemprop = "text"> Data set only Should get 1 time. Do you have three data sets for the report, each representing a different sub-set? If so, it will explain three different fetches. Can you create a large data set that satisfies all cross-tabs and then use run-time filters to make different sub-sets? Another option would be to consume your XML through a POJO and it will be raised in the BIRT report as a script data set. This will definitely give you control that you are looking at. If you are interested in creating a script with a script, then here's a ...

How to do a preproject Architecture review -

An architecture error is easy to see when this project is over. X gave us security problems, or wai gave us a lot of extra work. They were caught in the previous seats, but it would be good to catch them first. We are planning to review the architecture before coding begins. To present the project to the architect and see if we can find flaws in the design. Does anyone have a more structured approach, perhaps with the "Have you thought" or "How are you going to" check list? I was thinking something like this: Security Logging Data Access Deployment Upgrade Additional items to add to your list, special order In: Performance - latency, bandwidth, scaling or other factors related to your flexibility Supportability - You are already logging in, but other diagnostic measurements (Java -JMX, Windows-WMI / Performance Counter or some other flexibility - Flexibility - There is difficulty in changing architecture later (this is usually one of...

navigation - How to display route information between two points in Android? -

I am able to show the path between two geographic points in Android through Google Maps. Now I want to know how to guide the user in the right direction, move left; Similarly, the message should be displayed, how can we get it? There is no turn-by-turn (yet) API. Also see

visual c++ - Problem displaying Icon in a button in windows xp(SP2) (MFC)! -

I had a problem displaying icons in the button with text in the MFC application. After reading many errors, The solution for this and it works great. But when I checked my application in Win XP (SP2), I was surprised by not showing me the icon. Check the code below which I used to display the icon in a symbol with a test. . Please tell me if there are any fixes for this issue .. waiting for your reply HICON addIcon = (HICON) load image (AfxGetApp () -> m_hInstance, MAKEINTRESOURCE (IDI_ICON4), IMAGE_ICON, 0,0, LR_DEFAULTCOLOR); SendMessageA (:: GetDlgItem (m_hWnd, IDC_ADD), BM_SETIMAGE, IMAGE_ICON, (lParam) (DWORD) addIcon); If you are using VS2008 (you should), feature pack from CMFCButton Use It has better support for bitmap buttons.

Asp.net MVC with SQL Server stored Procedure -

मैं एक asp.net वेबफॉर्म्स डेवलपर हूं और asp.net MVC .... क्या यह SQL सर्वर 2005 संग्रहित प्रक्रियाओं का उपयोग करना संभव है ?? यदि ऐसा है तो कोई भी मेरी सहायता कर सकता है .... यह बिल्कुल संभव है। हालांकि यह एक मॉडल व्यू नियंत्रक ढांचे का दावा करता है, एएसपी.नेट एमवीसी वास्तव में सिर्फ दृश्य नियंत्रक है, यह आपके लिए डेवलपर पर निर्भर करता है कि वह एक मॉडल दृढ़ता परत को तय और कार्यान्वित करे। एक वेबफॉर्म डेवलपर के रूप में आप हालांकि डेटासेट से परिचित होने की संभावना है, हालांकि इन्हें आम तौर पर एएसपी.नेट एमवीसी आवेदन से बचाया जाता है, जो कि ओआरएम फ्रेमवर्क के पक्ष में होता है जैसे एनएचइबरनेट या लिनक 2 एसक्यूएल, दोनों जिनमें एएसपी.नेट एमवीसी के साथ एकीकरण के लिए बहुत सारे संसाधन हैं। एक अच्छा प्रारंभिक बिंदु के रूप में, आप यह देखना चाहेंगे कि किस प्रकार का सर्वोत्तम अभ्यास MVC स्टैक का एक अच्छा उदाहरण है।

apache - Absolute file paths in mod_rewrite - allowed? -

this is a follow-up I am trying to create a mod_rewrite Rules where the restart is a complete path outside the target web root, such as RewriteRule ^ manual (/(.*))?$ / www / htdocs / customname / manual / $ 2 [L ] I need to do this because I have a alias in a .htaccess reference (shared hosting) in can not use. The reactions pointing to this are not possible. Is this true? I can not find any clear information in the manual Can anyone be clear when full path is possible, and when they are not? It is certainly possible to use full file path in your server config. You can not do this in .htaccess file However, this can give you access to read files outside of your document root, even other customers Files from that & lt; Location ... & gt; Block.

scala - How do I find out Apache Buildr/Maven 2 repo names -

I'm just starting to use Apache build and I'm not constantly running the problem of repo URLs and versions I am available to use for me. For example, I want to use Scala 2.8 in a build file, the ID I used earlier: 2.8.0-SNAPSHOT But now it is not found. I also want to use the latest version of Apache POI. If I look at the Mewen 2 repo: http://mirrors.ibiblio.org/maven2/ I can see that this version only 3.2. Is there a standard way to find a repo and find available to them? No, there is no directory of repository (in fact, many people do not have any directory of repository). There are many repository search engines that give the index the "> "One (like Central, Java, CodeHouse, Zebus) says: Apache In the special case of POI, Version 3.6 is available in the central repo to use it, only announce the following dependency: gt; & lt; group & gt; Org.apache.poi gt; artifactId & gt; poi & lt; / artifactId...

Programmatically compile Java class in a package stored in an arbitrary sub folder -

I am looking to compile an application in Java, which is composed of several Java classes in certain packages. On the command line, I can change the folder with the root package and type: javac rootpackage / subpackage / *. Java or javac rootpackage / * / * to compile all Java classes in all the primary subpages of your rootpackage. Java However I want to be able to do this within the Java application. (The idea is that we provide an application to the students in which the unit tests are conducted. Unit tests need to be run against their code, the application creates a JR file containing their source files which are used for testing The result is 'Watermark'. It works fine, but we want to make sure that the tested class files have been submitted to the sources Built files, because the program idea to compile the Java sources). The problem is that each student store in their arbitrary condition, their root package, and I can not pass the location of the file...

Is there a Ruby equivalent for the typeof reserved word in C#? -

I have a C # method that I need to call a piece of ruby ​​for which system is required. What type of logic is Ruby equal to typefull in C #? The call will appear in C # like this ... var CustomCallInstance = ContainerGet Instance (ICustomClass) object # class (the instance method class on the object aka base class), you can s.is_a ? Checks to see if there is thing anywhere in their lineage.

unix - unlink vs remove in c++ -

What is the difference between the extract and unlink function in C ++? In addition to the fact that unlink Unix is ​​specific (as told by Chris), we created POSIX The manual reads: If path is not the name of a directory, then remove (path) is equal to unlink (path). If path gives the name of a directory, then remove (path) is equal to rmdir (path). For Directory-Pass Unlink , we read: The path logic should not be a directory name unless That there are no proper privileges in this process and supports the use of unlink () on the implementation directories. (...) Applications should use rmdir () to extract a directory.

sql - unix time in mysql -

When they say "we will use Unix time", does that mean that I should make a column like this? Date DATE or Date TIME or date DATETIME ? Unix time is expressed as an integer value - you use only one int field for this Want to do it, and not as any date

visual studio - .net .vdproj - application shortcut -

I am creating a .vdproj setup for a simple Windows form, (In the folder), but when I click on the shortcut, it only opens the install folder. How do I set up the .exe program to run it? I tried to insert .exe in the shortcut "Argument" - no luck yet I thought it could be more intuitive than it seems to be the property to set "goal" - but it gives me a pickup list - and choose my .exe Neil Walters Update 1: I am using VS2008 SP1 I have added a folder named "folder" to a folder called "RCT" (this is my application name). I right click on that folder and I see "add" with the arrow for submenu and create a shortcut for "RCT". First I tried "Create Shortcut for RCT", which will give me this question Inspires to post. Once the shortcut occurs, it appears that the properties Windows only is the only way to configure it. I have set the "target", and "working folder" (all 3 properti...

c++ - Macro / keyword which can be used to print out method name? -

__ file __ and __ line __ well known CAD is a __ joke __ . #include & lt; Iostream & gt; Structure fu {zero} ({{std :: cout output main Is there a macro / keyword that output method name like Foo :: what ? Boost has a special utility macro which hides the difference between the compiler implementation. After implementing it, we see that there are several macros based on the compiler I: __ PRETTY_FUNCTION___ - GCC, Metro Works __Function___ - Intel and IBM > li> __FUNC___ - Borland __Jock - ANSI C 99

tsql - Finding the SUM of values of a column of all records in sql 2005 -

मैं कॉलम weight में मानों के SUM को ढूंढना चाहता हूं । मुझे कॉलम नाम में से किसी एक कॉलम में सामान्य मान के साथ पहचाने जाने वाले सभी रिकॉर्ड्स के लिए यह राशि चाहिए इसके अलावा, मैं उन अभिलेखों पर विचार करना चाहता हूं जिनके पास कॉलम प्रकार में कुछ निश्चित मूल्य है। नाम का वजन प्रकार 1 $ 12.00 ए 2 $ 7.00 बी 2 2 $ 7.00 ए 1 1 $ 1.00 सी 2 $ 7.00 बी 1 $ 1.00 सी 2 $ 7.00 बी 1 1 $ 7.00 बी 2 2 $ 7.00 C 2 $ 7.00 बी मुझे नाम 2 के लिए कुल वजन चाहिए, प्रकार ए और बी के लिए। इसके लिए केवल एक subquery लिखा जा सकता है या केवल पाशन हो सकता है। टीएनएक्स। यह वास्तव में ओपी प्रश्न के उन व्याख्याओं पर निर्भर करता है, जो मेरे लिए थोड़ा अस्पष्ट है लेकिन इसे एक प्रयास करें: SELECT SUM (वज़न) से MyTable WHERE नाम = 2 और प्रकार IN ('ए', 'बी', 'सी')

In SVN you can Check Out (to block others) can you do this in GIT? -

You can check out in SVN (prevent other files from working on the same file) Do you do it in GIT Can you? It seems that you have to set up a second system that tells people what file is being edited with GIT? GIT does not have any central store that you can ask to check if a file is " Lock "or not. Due to its distributed nature, a repository can be on 1,000 computers, and they are all the same. If you have all given permission to lock a file, and they are allowed to communicate to all other repositories, then all the files will be locked originally at all times. Not so, you can not do this in GIT. Instead, rely on updating frequently and handling strange mergers. You can read about it.

using qt : How To Build a Gui OnTop Of a Console Application? -

I have a console application that is generated by a basson (parser) and I want to create a simple GUI for it so that I can input the input from the GUI to the console and get the output from the console in the GUI. I tried to use the Java process class but it does not work for me, please help me use QT. less complexity some command switches that you have with your QT Do use. Look at the GUI on your console app. High complexity I would go with an RPC-like solution (Linux / Unix only). Note: I have made the impression that you want to keep your generated bison parser apart from your QT GUI (make it again if you need it again).

How to setup a linked server to Access 2000 database? -

I am using SQL 2005 server express. How can I set up a linked server in an MS Access 2000 database? See books online. EXEC sp_addlinkedserver @server = 'Linked Server Name', @srvproduct = 'access', @provider =' Microsoft.Jet.OLEDB.4.0 ', @datasrc =' C: \ Path \ file.MDB '; You may also need to use sp_addlinkedsrvlogin to add a user / login to the linked server. In addition, if you are using Access 2007, you may have to use an alternate provider: @provider = 'Microsoft.ACE.OLEDB.12.0', And lastly, if you are on a 64-bit operating system, you may come into problems

PowerShell remote sessions: Problems with ESET Nod32 AntiVirus -

I am trying my first attempt to use PowerShell Remoting features. I have set the "destination" server using instructions in the help docs. But when I try to start a remote session (by executing the "Enter-PSSession servername1" command), it sits for a long time, and finally gives this error: enter- PSSession: Connect to the remote server failed with the following error message: WinRM client can not complete the operation within specified time. Check that the name of the machine is valid and is accessible on the network and firewall exception is enabled for the Windows Remote Management service. For more information, see about_Remote_Troubleshooting help topic I also noticed that when it was sitting there, my computer's performance had worsened. Looking at the task manager, I know that ekrn.exe, which was the kernel process for Nod32 antivirus, was using very CPU (~ 50%, sometimes high strand). It seems that as long as I can not kill the process, I do n...

frameworks with built-in jquery support? -

Whenever I want to use jquery I include it in the html header and then use it in my javascript files I am So what do people mean when they say that a framework is built in junkery support? And the same thing is with AJAX-support. The framework provides real implementation of common tasks that are required by many applications. Built in jQuery support, it will show that the framework can use jQuery to implement some of its functionality. Or it can only indicate that links to relevant jQuery files are provided. Even for AJAX, the framework can apply a form submission through the AJAX function so that you write the code as a user of the framework, but use the framework implementation.

android - Why button is not centered vertically in LinearLayout? -

I have a LinearLayout, which has only one button, I want this button to stand and combine right. I tried several ways, but I could not concentrate this button vertically. It always combines at the top, I also tried to put a button in the relational layout, the button can not be even vertical. Is XML down there is something wrong with this layout? Thank you. & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Orientation = "Vertical" Android: layout_width = "fill_parent" Android: layout_height = "wrap_content" Android: background = "#E8E3E4 "& Gt; & Lt; Button Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: text = "and" android: layout_gravity = "right" /> & Lt; / LinearLayout & gt; Android: layout_gravity = ...

java - JDBC MySQL; is supplying the DB name & username/password enough? -

When setting up a JDBC connection in J2EE application, do you need to specify the schema name in addition to the database name ? I have followed and set up a database, and username / password, but when I am launching my application, I am coming against this error. Is it possible that DBUnet is trying to put data before it started in Hibernation and made schema? Reason: by org.dbunit.dataset.NoSuchTableException: The table 'Customer' did not find the schema 'empty' My connection details are as follows: & lt; Bean id = "dataSource" class = "org.apache.commons.dbcp .BasicDataSource" destroy-method = "close" & gt; & Lt; Property Name = "driverClassName" value = "com.mysql.jdbc.Driver" /> & Lt; Property Name = "url" value = "jdbc: mysql: //127.0.0.1: 3306 / Salestreaker" /> & Lt; Property Name = "User Name" Value = "Salestreaker" /> & Lt; Pro...

c++ - How to copy by value into a container class? -

I am writing a rare matrix class. I need a node class, which will be a template for its contents. My problem with writing this class is: How do I store content? I want to store the contents with value. If I store it by indicator and it should be destroyed, then I have trouble. How can I execute a copy in the setContents method safely? Does C ++ offer any guarantee that a class that should be placed in my node container has the ability to clone it? I have seen in the copy maker but I have some scope, what if the implied class will not implement a copy constructor? It will not be wise to pass the node with reference, because the original object should be removed or out of the scope, because it can be linked. What is the "Standard C ++" way of doing this? The standard C ++ approach is to mandate that the type Must be copied (and probably assigned) This is a very reasonable requirement and is used by all container class templates in the standard library. For unde...

javascript - JQuery ajax cross domain call and permission issue -

I have this voting script to check that the text file is created on the server or not. Works great locally, but when there is a file on a different domain, it fails to cross domain support, how do I rewrite it? $ Ajax ({url: 'http://blah.mydomain.com/test.txt', type: "GET", success: work (results) {// success! Window. location (successful .expx) ;}, Error: Work (Request, Status, Error) {setTimeout ("VerifyStatus (" + pollingInterval + ")");}}); Edit: I ended up using YQL to resolve the cross domain issue and although it works, YQL is actually slowing down a bit of performance overhead Adding Any cross domain recommend better solution for JQuery calls? Write the data type "JSONP" on your call. You must make sure that the response to the work has been formatted properly. There is a good section of Wikipedia.

jquery - JqGrid updating grid on add -

परिदृश्य : मेरे पास तीन ग्रिड हैं लेकिन केवल एक संपादन योग्य है, अन्य दो सर्वर साइड पर भर रहे हैं मैं jqGrid की निर्मित कार्यक्षमता का उपयोग कर रहा हूं और सफलतापूर्वक जोड़ने पर ग्रिड को रीफ़्रेश नहीं करता। मैं ग्रिड में पंक्ति जोड़ना चाहूंगा, जैसे वह स्वचालित रूप से करता है, लेकिन इसे स्वयं जोड़ना चाहेगा क्योंकि यह केवल एक स्तंभ को जोड़ता है जिसे 'संपादन योग्य' कहा जाता है मुझे ग्रिड में स्वचालित रूप से जोड़ने से पंक्ति को अवरुद्ध करने का एक तरीका या ग्रिड में निर्मित कार्यक्षमता को ओवरराइड करने का कोई तरीका नहीं मिल सकता है। मेरा विचार था कि पंक्ति को अपने आप में जोड़ना था क्योंकि मुझे मेरे सबमिट पर डेटा की पूर्ण पंक्ति वापस मिलनी पड़ी। प्रश्न : क्या कोई ग्रिड ताज़ा करने के लिए ग्रिड को स्वचालित रूप से जोड़ने से रोकने के लिए कोई रास्ता नहीं है, ताकि मैं पंक्ति के लिए मैन्युअल रूप से सभी डेटा जोड़ सकूं? क्या जेकग्रीड कॉल बटन को खोदने और सीधे पता लगाने के बिना बनाया हुआ बटन में उपयोग करना और onClick को ओवरराइड करना संभव है? सभी पक्षों को बिना मैन्युअल रूप स...

mysql - what is wrong with my sql -

UPDATE `test`।` दस्तावेज` एसईटी` शीर्षक` = '测试 中文', `सामग्री` = ' यह मेरा परीक्षण दस्तावेज़ नंबर दो है, 应该 搜 的 到 吧 'कहां `दस्तावेज` `` `2`; # 1064 - आपके SQL सिंटैक्स में एक त्रुटि है; मैनुअल जो अपने वाक्यविन्यास के लिए सही वाक्यविन्यास के पास 'मेरे परीक्षण दस्तावेज़ नंबर दोआई ¼ è Œ º è ¥ æ का उपयोग करने के लिए संबंधित मैनुअल की जाँच करें, मैं एम्पम्पलाइट का उपयोग किया है, और mysql का संस्करण 5.1.37 है धन्यवाद 2। मैंने गलत किया था, और फिर भी त्रुटि। मैंने माइक का जवाब इस्तेमाल किया, यह ठीक है, लेकिन देखें: P> यह सभी शो है ?????? 4. यह मेरा शो चर है जैसे 'char%'; धन्यवाद पोस्ट-पाठ "आइटमप्रॉप =" पाठ "> आप 'के बजाय', (जो कि, अजीब उलटा अल्पविराम है) का प्रयोग कर रहे हैं आपकी नई समस्या के लिए, आपको` बैकटीक्स) की बजाय '(इन्वर्टेड कॉमा) यदि आप किसी तालिका या स्तंभ नाम का उद्धरण करना चाहते हैं।

configuration - How can I get Eclipse to scroll past the bottom of the document? -

Image
जब मैं एक्लिप्स editor में एक खुले दस्तावेज़ के नीचे scroll मजबूत>, अंतिम पंक्ति फ़ाइल के निचले भाग में है। यह फाइल / स्क्रीन के नीचे पर कोड का संपादन करते समय परेशानी हो रही है। मैं ईक्लिप्स को स्क्रॉल करने में सक्षम कैसे कर सकता / सकती हूं (विम या वी.एस. पर्याप्त है कि कोड की अंतिम पंक्ति संपादक खिड़की के ऊपर पहुंचती है? मैं इस प्रश्न के पीछे, Eclipse में पूछ रहा हूं: (देखें) Blockquote> किसी भी समय, एक दिए गए स्क्रॉल बार में एक एकल 'चयन' होगा जिसका मूल्य माना जाता है, जो कि स्क्रॉल पट्टी का प्रतिनिधित्व करता है, मानों की सीमा के भीतर सीमित है (जो कि इसके न्यूनतम और अधिकतम मान)। जेडीटी (जावा एडिटर) क्षेत्र में, रेंज दृढ़ता से लाइनों की संख्या से जुड़ा है स्रोत फ़ाइल है। कृत्रिम "तार्किक रेखाएं" को जोड़ने से आखिरी पंक्ति में पिछले स्क्रॉलिंग की अनुमति नहीं होनी चाहिए जेडीटी के कई अन्य हिस्सों पर सवाल, एक स्रोत फ़ाइल की लाइन संख्या (जैसे एक संकलन त्रुटि लाल रेखांकन) के आधार पर सूचनाओं को प्रदर्शित करने से संबंधित है। यही कारण है ...

c# - Dictionary.ContainsKey() not working as expected -

मेरे पास शब्दकोश है। शब्दकोश & lt; ymd, object & gt; कैश = नया शब्दकोश & lt; YMD, ऑब्जेक्ट & gt; (); वाईएमडी वर्ग मेरे आविष्कारों में से एक है, यह एक वर्ग है जिसमें केवल वर्ष, महीना और तारीख शामिल है। इसका उद्देश्य यह है कि दिन के आधार पर डेटा को अनुक्रमित किया जाएगा। किसी भी तरह, मैंने इक्ल्स () और तुलना करें () फ़ंक्शंस, साथ ही साथ == और! = ऑपरेटर को कार्यान्वित किया है। इसके बावजूद, डिक्शनरी। कंटन की () फ़ंक्शन हमेशा झूठा लौटाएगा, भले ही कुंजी मौजूद है। मैंने तुरंत सोचा कि मेरी तुलनात्मक कार्यों को तोड़ा जाना चाहिए, लेकिन उन सभी के लिए यूनिट परीक्षण लिखने के बाद यह मामला नहीं दिखाई देता है। शब्दकोश क्लास जिसे मैं नहीं जानता? शब्दकोश के साथ, GetHashCode () महत्वपूर्ण है उन चीजों के लिए जो समान हैं ( equals () == सच ) यह चाहिए उसी नंबर को वापस करेगा (लेकिन उसे टकराव की अनुमति है - यानी दो आइटम एक ही नंबर वापस कर सकते हैं संयोग से, लेकिन बराबर नहीं माना जाता है)। इसके अतिरिक्त - आइटम को शब्दकोश में रखते हुए हैश-कोड को नहीं बदलना चाहिए read...

c# - Using SMO.Agent to retrieve SQL job execution status - security issue -

I have a C # program that uses jobs (SMO) to shut down jobs, something looks like this: server ssis_server = new server (new server connection (SERVER_NAME, SERVER_USERNAME, SERVER_PASSWORD)); Var Agent = ssis_server.JobServer; Var ssis_job = agent.jobs [job_name]; Var current_status = ssis_job.CurrentRunStatus; If (current_status == JobExecutionStatus.Idle) {ssis_job.start (); Onsut ("Job Started:" + job_name); } Else {OnError ("The job is already running or not ready."); } I am using this point to simplify things as long as I work on it. Now, my problem is that until SERVER_USERNAME is part of the 'Sysadmin' dbo role, ssis_job.CurrentRunStatus is always' inactive '- Even when I know that the job is going on. This does not give an error, just always reports useless. If the user is an administrator, then the situation has been returned in the expected form Role membership that you say? Well, I've added the SERVER_USERNAME ...

.net - How do you validate an application's configuration? -

I want to run a system configuration check on an app machine where SQL connections, disk permissions for review of checks , And IP: Port access (i.e. the firewall is not blocking outgoing access) I am using Windows server machines and .NET framework if it makes a difference. Can a standard way of verifying an application do all this? For example, maybe there is an app where I can specify each of these configuration files, drive the app, and get a position back. Thank you! Ian No, there is no standard method, you need to add a console application during the installation phase. Create a package that will step through this check phase and show a message in the console. I think this is the only way that is using .NET programming to embed custom steps in the installation package. Please tell me whether you will get any automation;)

How do I echo the session name in a foreach loop in PHP? -

I am looping through my session variable I am able to resize the values ​​of the session, I would like to resonate with the session name as well. How do I unite session variables each time I loop it? This is currently the code I have available: foreach ($$$ session as session) {echo is 'current session variable:' $ Value '& lt; Br / & gt; '; } this? foreach ($ _ session) $ key = & gt; $ Value} {echo 'current session variable' is' $ key ':'. $ Value '& lt; Br / & gt; '; }

Function list of php file -

एक php फ़ाइल में घोषित कार्यों की सूची कैसे प्राप्त करें आप वर्तमान में परिभाषित फ़ंक्शन की सूची का उपयोग कर प्राप्त कर सकते हैं: $ arr = get_defined_functions (); var_dump ($ आगमन [ 'उपयोगकर्ता']); आंतरिक फ़ंक्शन इंडेक्स पर हैं आंतरिक जबकि उपयोगकर्ता-निर्धारित फ़ंक्शन इंडेक्स पर हैं उपयोगकर्ता । ध्यान दें कि यह सभी कार्यों का उत्पादन करेगा जो कि कॉल से पहले घोषित किए गए थे। इसका मतलब है कि यदि आप फ़ंक्शन के साथ फाइल करते हैं, तो वे सूची में भी होंगे। यदि आपके पास प्रति फ़ाइल कार्य की एक सूची होनी चाहिए, तो निम्न में से कोई भी फाइल नहीं है, यह सुनिश्चित करने के अलावा अन्य फ़ंक्शन को अलग करने का कोई तरीका नहीं है। स्रोत की पार्सिंग द्वारा फ़ंक्शन की सूची पुनर्प्राप्त करने के लिए प्रयास करेगा फ़ंक्शन get_defined_functions_in_file ($ फ़ाइल) {$ source = file_get_contents ($ फ़ाइल); $ Tokens = token_get_all ($ स्रोत); $ फ़ंक्शंस = अरै (); $ अगले स्ट्रिंगआईएसफ़ंक = गलत; $ InClass = false; $ ब्रेसिज़काउंट = 0; विदेशी मुद्रा ($ टोकन $ टोकन के रूप में) {स्विच...

Service broker - multiple queues vs single queues when communicating with external apps -

We currently have an application that uses a service broker to queue messages sent to an external system. , Which we communicate through the web service interface. At present, we are only integrated with one company, so a line is enough - although we have to start conveying to many companies which all use the same web service interface. I am thinking that a single queue system is enough for this or we have a queue per company, with queue per company I am concerned about scaling it because we have many lines and then There are too many connections to check queues. With a queue, we can only add more readers as needed. However, if we can not talk to an external system (such as a connectivity issue), there is no problem with the message, and we want to try it again, but we do not want to delay the messaging of companies whose The systems are up, I was wondering how people are working with such scenarios? We can rejoin the message, but I worry about it that we do not guarantee d...

JQuery Autocomplete: Submit Form on selection? -

पारंपरिक HTML फ़ॉर्म पर JQuery आटोकाम्प्लेट का उपयोग करना। फ़ॉर्म सबमिट करने की कोशिश कर रहा है (पुराना तरीका ) जब एक चयन किया जाता है। लेकिन इनपुट बॉक्स भर जाता है और फिर मुझे दूसरी बार "वापसी" दबाकर रखना होगा, या सबमिट बटन पर क्लिक करें। मैंने कुछ ऐसे उदाहरणों की कोशिश की है, लेकिन मैं उन्हें काम करने के लिए नहीं मिल सका। जब चयन किया जाता है तो आप फ़ॉर्म को स्वचालित रूप से कैसे सबमिट करते हैं? अद्यतन करें: मैं अंत में यह एक बाहर सोचा, नीचे कोड चाल करना चाहिए। किसी कारण से परिवर्तन कॉलबैक काम नहीं कर रहा था, लेकिन बंद & amp; चुनें कॉलबैक करें चुनें का उपयोग करना बेहतर है, क्योंकि बंद को भी बुलाया जाएगा यदि फ़ील्ड फ़ोकस खो देता है। $ (फ़ंक्शन () {$ (" #searchField ")। Autocomplete ({source:" values.json ", चयन करें: फ़ंक्शन (ईवेंट, यूआई) {$ (" # searchForm ")। सबमिट करें ();}});}); एक और अद्यतन: ठीक है, चुनें कॉलबैक के साथ भी एक समस्या है, जो कि डिफ़ॉल्ट रूप से (उपरोक्त कोड में) यदि आप कुंजीपटल के साथ स्...