Posts

Showing posts from May, 2011

scripting - shell script to traverse files recursively -

Help me to create a shell script to run a special command (any) on each file in a folder It is necessary to dive continuously in sub-directories such as I'm not sure how to get started. One point will be enough in the right direction. Thank you. present to apply a command (e.g., echo ) Use files , at the bottom of the path find-type f -exec echo "{}" \; For directories, use -type d

asp.net - MVC2 and Session Start Event -

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

memory - What is the right way to free a std::vector of pointers in C++? -

I searched the stack overflow but could not find the answer to this question. Suppose I have study :: vector & lt; Day * & gt; Vector_de - that is - the vector of pointers for the day object I now push_back to vector_day many elements: vector_day.push_back (new day (12)); Vector_day. Push_back (new day (99)); Vector_day.push_back (new day (71)); ... Now I do not need anymore vector_day at some point. What is the right way to free the memory? This is the correct way: for (std :: vector & gt; :: iterator i = vector_day .begin (); i! = Vector_day.end (); ++ i) {Delete * i; } Does not this invalid the vector on each extinction? I am very confused. The best way is not to put the indicator in the first place in the vector if you want to do it completely is not needed. But if you really need a vector of the indicator, then the way you are doing it is fine (but .clean) after the vector, if It will not be destroyed immediately, then it is not ...

.net - XSL Transformation through code does not result in the same output as XSL transformation done through a tool -

I am I turned to the other XML files using Aksmelaksmeted Transform classes for your XML file. NET Framework 3.5 This is my code. private static void change (string sXmlPath, string sXslPath, string Autputfailnam) {{XPathDocument myXPathDoc = new XPathDocument (sXmlPath)} XslCompiledTransform myXslTrans = new XslCompiledTransform (); // Load myXslTrans.Load xls (sXslPath); // Create output stream XmlTextWriter myWriter = new XmlTextWriter (outputFileName, null); // Xml myXslTrans.Transform (myXPathDoc, blank, myWriter); MyWriter.Close (); } Hold (exception e) {EventLogger eventLog; EventLog = New Event Logger ("Transform Ulyet", E. Toaster ()); }}} The code works, but the output file does not have XML declaration in header. ** I am hurt to understand this. When I change the XML using the same XSL file, Notepad ++ or the XML declaration header changes when you use Visual Studio's tools. So what XslCompiledTransform is responsible for reducing this announc...

WPF: looking for list of each control's states and brushes -

Is there a list of all the normal states for each control? Basically like a list: button: disable, hover, pressed, selected, focus, etc. Listbox: Disabled, hover, focus, etc. I'm looking at Blend and MSDN but I'm not looking for anything. Why i asked You can use Blend or MSDN documents. Or, if you feel that this is inclined like this, then you can write a script to reflect the controls and prepare a report. EDIT: Annoyingly, MSDN Docs TemplateVisualStateAttribute for WPF control as they do for Silverlight, so this is not an option in WPF.

.net mvc & ajax forms - how to handle session expired -

To check the expired session in my Net Networks application, I have a client filter attribute on the standard HTML form works fine. However, when I am called by an AJAX form and enforces an expiry end of the session, then it reloads the login page (where the filter attribute redirects the reference) in the Ajax update container. Does anyone know how to redirect the whole page to the login page if the session has expired, when the AJAX call is done or does anyone know how to handle this situation a little more beautifully? . Thanks in advance Public category SessionExpiredFilterAttribute: ActionFilterAttribute {Public override zero OnActionExecuting (ActionExecutingContext filterContext) {HttpContext ctx = HttpContext.Current; // if checked (ctx.Session! = Null) {session is supported / checks, then a new session ID was generated (ctx.Session.IsNewSession) {// If it says that it is There is a new session, but if an existing cookie is present, then it should be // string session ha...

c# - How to fetch entries starting with the given string from a SQL Server database? -

I have a large number of words used in a tag system, I need the code for an autocomplete box But I am not sure how to bring entries that match the database to the most efficient way. I have a command of choice, but it seems I am more than a similar order. I get only words which I look like the word. My plan is to read every line, and then use the string of C #. Wires () and string. () Is fit, but I think with a large database, it may be disabled to read every line and then filter them. Is there a way to read only those lines that start with SQL Server or have a string in it? When using such as , you provide a% symbol as a wildcard. If you want strings that start with Hello, you will use 'Hello%', if you wanted a string with Hello in anywhere in the string, you would use it as '% Hello%' For efficiency, like optimal you should look at full text search.

clojure: adding a debug trace to every function in a namespace? -

Logging into one of my houses was started and I was just using mouse and cut-end- Paste it into each function in a larger module (trace (str "entering:" function-name)) The reason was caught and said, "Just got a better way" ... Can I think of creating a macro which wraps up an entire block of function and adds marks or something like that? Any advice from a wise pile - overflow - Closerian? No need of a macro: (defn trace-ns "Ns should be a namespace object or symbol." [Ns] (dosak [s (ns-interns ns)): let [v (ns-ns-nss)]: when (and (ifn? @ V) ( - & gt; V meta: not a macro)) (Internet with NetA (Meta S: Trusted Truth: Unrated, @ V)) (Let [F @ V] (FN [& amp; Egags] (Closer Contib. Toss / (trace): () () () () () (dsk (ns-interne ns) ns s]]: when (: find out (Meta V))] (change-meta! (Trainee ns s (untraced (meta v)) # (dissoc%: traced: untraced))) ... Or something like that. The most extra requirement will be to use filter , so that ...

Visual studio 2010 IDE layout -

My current view studio panel layout resembles the image below: --- -------------- | | | | | | | | | | | | | | | - | | | | | | | --------- | | | | | | ----------------- In fact, the toolbox or server explorer does not need full height of the screen and was wondering what layout There was a way to change so that the bottom edge of the screen can be expanded in this drawing all the way to the bottom: ----------- --- --- | | | | | | | | | | | | | | | - | | | | | | ------------ | | | | | ----------------- I am constrained on the right, so a symmetric layout with full width should be run full width 't be acceptable I have tried to pull things, but there is no luck to keep VS in the panel position as I want. Is not my desired layout possible or is I missing the right way of celebrating layout in fitting? Yes, you can do it. When you are dragging the toolbox, keep in mind the "target" in the center of the screen. Look for more details and pictures.

flex - creating a dynamicly named object -

I am trying to create a dynamic named object. something like private var myVar: string = "dynamic name"; Private var [myVar + "staticName"]: object = new object; But for some reasons I did not write the above work. I would be surprised if you do it. Better to save a dynamically created object in an array or possibly a dictionary. Flex framework uses arrays for item renders in list based classes, for example try in a way that uses a dictionary: private var myObjects: Dictionary = new Dictionary () In some ways where you make children: private var myVar: string = "dynamic name"; MyObjects [myVar + "staticName"] = new object ();

ASP.NET MVC2 Posting a ViewModel mapping to Domain (LINQ) to Submitting changes -

I am using Automapper to map between the Linux domain object and a view model, which allows the user to edit a form Works perfectly to do . When they click Submit, I want to know the best way to map ViewModel back into a Linux unit and keep it in the database. / Li> Map the visual model on the Linux entity (using Autopartor). Call SubmitChanges () on the data reference This method works only when I am only updating properties that There are no collections, but throwing errors while trying to modify properties is the collection. Any help / ideas will be highly appreciated :) The approach is taken by Jimmy Bougard in the CodeCampServer project (). I have a general mapper class which I need to override in a map-method model method, which maps from view modal to domain model, and a GetIdFromViewModel method that provides the proper ID To show the ViewModel so that the service level can obtain the domain model from the database. I had to replace som...

jquery - why jGrowl popup doesnt look as expected? -

I found this jGrowl notification on my site, when the notification populat jaglal popup does not look exactly like the style. In this way I call jgrowl files & lt; Link rel = "stylesheet" type = "text / css" href = "./ include / jgrowl / jquery.jgrowl.css" /> This notification box is Your style will be affected by jGrowl containers if you are referring to the jQuery UI stylesheet on the same page as jGrowl. All jGrowl containers are decorated with the CSS class "ui-state-highlight", which adds a background, border and font-color to the style definition. .ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlights {background: url ("images / Ui-bg_glass_55_fbf9ee_1x400.png ") Repeat-X scrolling 50% 50% # FBF 9EE; Limit: 1px solid # FCEFA1; Color: # 363,636; } To prevent this behavior, you can add the following additional additions to the jquery.jgrowl.css file: d...

rest - How to interact with the Panoramio API using services? -

I am writing a place based client and would like to integrate panoramio with my client, now the problem is that I ' I know that they have an API, but it is mostly for embedding content in the website and I do not have to interact via code (at least with documentation) Did any of you cut a path through this Land? I am writing the client basically for Android and iPhone if you are thinking. Cheers, Yes. Well it seems like the answer came a little bit faster ... and even though it's on their website Is easily accessible through the medium and even Google in their Geo Developer Blog A sample request for obtaining images from a bounding box is given below: http://www.panoramio.com/map/get_panoramas.php?order=popularity& Set = Public & amp; From = 0 & amp; To = 10 & amp; Minx = -124.29382324218749 & amp; Miny = 36.089060460282006 & maxx = -119.8773193359375 & amp; Maxy = 38.724090458956965 & amp; Callback = MyCallback Update...

c# - ASP.NET MVC Routing for Master / Detail Views with "Detail Children" -

मेरे पास मूल मास्टर / विस्तार दृश्य डिफ़ॉल्ट एएसपी.NET MVC रूट के साथ अच्छा काम करता है; हालांकि मैं इस तरह से कुछ यूआरएल बनाना चाहूंगा: / कक्षा / विवरण / 5 - सामान्य विवरण देखें [वर्किंग] मैं क्या हूं / कक्षा / 5 / विवरण / लॉग्स - लॉग / कक्षा / 5 / के साथ विस्तार से देखें - इस बारे में निश्चित नहीं है (और मैं इस यूआरएल प्रारूप से जुड़ा नहीं हूं) विवरण / स्थिति - वर्तमान स्थिति के साथ विस्तार से देखें इसे डालने का एक अन्य तरीका यह है: / {controller} / {id} / {ControllerSpecificMaster} / {action} / मैं क्या करने से बचने की कोशिश कर रहा हूं, दृश्यों का एक गुच्छा के साथ मेरी दृश्य / कक्षा निर्देशिका को अवतरित कर रहा हूं, जो सभी मूल रूप से विवरण दृश्य के डेरिवेटिव हैं । मैं asp.net MVC 1 और .NET 3.5 SP1 पर हूं। सबसे पहले आपको नीचे उतरने की ज़रूरत है आपके मार्ग हैं। आप पहले से ही ऐसा कर चुके हैं, लेकिन अगर आपने नहीं किया है, तो यहां एक मार्ग प्रविष्टि है जो आपकी कस्टम रूट की जरूरतों को संभाल सकेगी: मार्गों। MapRoute ("Master_Detail", "{नियंत्रक...

gradient - iPhone NavBar with tintColor looks Flat -

I am able to use TintColor to change the color of my navbar, but this NavBar looks "flat" . Standard Newberts have a shading for them - can this cinematography be completed without using a custom image instead of the nouveau? It really depends on the tint color you use - bright colors are often subtle gradients The standard navigation bar that drops is applied. The interface builder is the best place to try it; You should be able to find colors near that color, after which you will still like to shine on the navigation bar.

What is the JavaScript >>> operator and how do you use it? -

I was looking at code from Mozilla that adds a filter method to the array and there was a line of code that I Was confused. var len = this.length & gt; & Gt; & Gt; 0; I have never seen >>> Used earlier in JavaScript. What is it and what does it do? This does not change only non-numbers, by number, it converts them into those numbers Which can be expressed as 32-bit unsigned ints. Although JavaScript's number is double precision floats (*), the bitwair operator ( , & gt; , & amp; , | and ~ ) are defined in terms of operating 32-bit signed Entities by performing bitward operations on 32-bit integers The number changes, before calculating and then converting to the number, any fraction and high position bits are lost compared to 32 digits. 0 bits & gt; & Gt; Any real effect, like the shift from 0 to the right of 0 , is a quick way to round the number and to ensure that it is in the 32-bit int range, in addition, triple ...

swing - Drawing Java 2D Charts span across multiple views or panels or horizontal-scrolling -

I'm writing the graph using Java 2D graphics (i.e. to draw and fill rectangles) directly on grafry Stored in an array list from the set of values. But when ArrayList has a lot of value (can go up to 3500 sizes), the picture is compressed - where the graph looks less informative and the labels on the X-X are also not displayed. Is there a way to make the graph visible in many page-wise ways (i.e. limited to say that a page can show 100 values ​​- remaining in different pages where users can navigate page-wise) . How can I see such a situation? Is there a stacked layout that I can use? Can I use the panel? But then can I pull half way through the panels (because the graph is dragged inside the loop - unless the elements in the array list read it)? Or can I have a scroll panel? Appreciate any insights, suggestions and ideas. A quick solution is just to keep your panel in one. You can also use one. Just place the graph on the N page and show the 1 / nth part of the ar...

cocoa - Breaking Down NSTabView Into Files -

As my cocoa app comes up with itemprop = "text"> , my NSWDVO controller huuuuuuuuuuge is becoming There is a NSTabView in my window, and in each tab it has its NSViewController (all submenu) and its own methods, therefore, my window controller is moving much further than what is happening due to the M. Tab. Unfortunately, the examples of NSTabView are quite simple. I do not need any restructuring. So, here I am asking for advice how can I get the tab-specific content from Window Controller and in my own dedicated items? See example in this Apple discussion thread:

c++ - Will std::multimap preserve the insert order if the key of 2 elements equal to each other? -

I wonder if this is true or not? If so, is this behavior a guarantee of the standard c ++? element in std: map must have unique keys, therefore ... No. std :: multimap container allows multiple keys to be mapped in one key. When it goes back to std :: multimap , the elements are ordered according to the key, but the sequence of elements with the same key is not specified. Note that the relative ordering of the C ++ 0x standard (N3092), guaranteed elements of the same key (that is, at some point, Will be able to rely on behavior).

Simple CSS Layout -

I need to find a cross-browser method in which a parent has two divisions where the first child has a certain height And the second stream to be included in the parents. & lt; Div id = "parent" & gt; & Lt; Div id = "header" & gt; & Lt; / Div & gt; & Lt; Div id = "body" & gt; & Lt; / Div & gt; & Lt; / Div & gt; height: 500px _____________________ | _________________ | | | Height: 20px | | | | _________________ | | | _________________ | | | | | | | | | | | Height: 100% | | | | | | | | | | | | _________________ | | | _____________________ | Therefore there is a certain height of 500px of the parent, in the header there is a fixed height of 20px but the height of the body div is below to fit within the parent should go. By giving it a height of 100%, the height increases to 20px because the height: 100% uses the parent's height, which does not take into account children. I saw a solution using f...

sockets - Preferred pthread settings for receive->process->send kind of applications? -

We are making an old application written in C ++ which is receiving requests on the socket from different clients ( Each customer has a thread for connecting). Number of X in the worker thread, applicant requests are being distributed. Worker Thread is processing requests and then distributing process data between 30 other network entities. The code is using the pthread library and all the threads are running under the default scheduling policy. Regards Sunil / html>

Is Zeroconf API available in Android? -

What is support for Android 2.2 Zeroconf and MDNS related APIs? You can use JMDN with Bonjour / Zirokonf related to the accuracy of Android 2.2 Used it to find services. Depending on your requirement, you may need to make some changes to your code to get better search. Note that some of the old HTC phones have bugs with multicast, but I think That they have fixed it in their recent phone

postgresql - Where are NUMERIC precision and scale for a field found in the pg_catalog tables? -

In PostgreSQL, the column data is stored in pg_attribute for table structure, in which some fields are in pg_class and a couple Pg_attrdef. But I do not see the exact or scale for a NUMERIC field type stored anywhere It can be found in INFORMATION_SCHEMA tables, but I am trying to avoid them , Because they do not use odds to easily join pg_catalog tables. So the question is: Where is the column stored in PostgreSQL system tables accurate and scale? This is stored in pg_attribute, in column atttypmod is available to view all information information_schema.columns This view Uses some questions to calculate the values: These are the basics: select atttypid when 21 / * int2 * / THEN 16 WHEN 23 / * int4 * / THEN 32 WHEN 20 / * Int8 * / THEN 64 WHEN 1700 / * Numeric * / Then in case atttypmod = -1 THEN tap ELSE ((atttypmod - 4)> 16) & amp; Numerical precision as 65535 - 700 / * float 4 * / THEN 24 / * FLT_MANT_DIG * / when 701 / * float 8 * / THEN 53 / * DBL_MANT_DIG...

layout - How To Create Screen Size Independent Android Applications -

I am working on Android 2.2, I have developed an application that has an image view and a button view. Both images and buttons appear in HVGA, but in QVGA I could only see the image. The remaining buttons below the image view are not visible. How do I manage multi-screen resolutions in Android? I tried to keep the button above the image and it worked well for HVGA and QVGA. Please let me know how I can control the situation by placing buttons below the image view. I have done this in a relative layout The width and height of the image is the width of the fill_parent and wrap_content buttons, and the height is the rap_compression and the wrap-content. If you do not have enough space, then your picture is on a smaller screen and the layout Use another folder with a different version of and like: res / layout / my_layout.xml // Layout small density for normal / screen size / layout -small / my_layout.xml // layout for the icon image / you scroll all screen in the scrollv...

Help Integration in Qt/C++ Application -

I am using Qt 4.6 , so do C ++ I have a user manual ( .chm ) for my application, in which users have the necessary help to run the application. Now I need this help integrated into my application so that when user selects help from the application, then the user manual related help page will be displayed . In this way I can use the available manual already and the user will find it easy to check through the document. ( is familiar because ) User manual file is in the format .chm , which has related search keywords, which can be used to use The related page when selected from the application F1 Similar to help in any of the Windows applications Is it possible to do Qt or C ++? or Through which other ways can I integrate into the application? Any sign of this is welcome. Yes, this is possible. The infrastructure of the support system was designed to integrate with the common Win32 development in Visual Studio, but it is not technically necessary; Actuall...

How do I find out whether a locale uses 12 or 24 hour time in Java? -

In Java, I want to print time of the day in just hours and minutes and want to correctly switch between it Like, "13:00" and "1:00 AM" according to locale, how do I do this? Locale does not explicitly specify whether the 12 or 24 hour format are preferred. Instead, locale specific date formats are controlled by the locale defining the formats directly. If you want to use only "locale favorites" time format, then only use three static methods, and whatever dateFormat is used. If you have an SimpleDateFormat example, you (if you were prepared to make a significant amount of coding) call the resulting pattern Make and parse whether it uses a date of 12 or 24 hours ... or you can also use the "other" form to convert the pattern and then call to change the format Are there.

screenshot - Executing command line script from Django & Python -

I am creating a Jejoo Management Command which is used by the website of Paul Hammond's WebKit 2 PGP script () Is making and storing them in my DB. For this command I am using the 'call' command with 'subprocess'. How can I execute this order in a specific order (in this case under temp / django project)? My current code looks like this, but it does not get a script executing which is stored in my VirtualVen site-package folder: import os from django.core.management.base import NoArgsCommand import from Django.conf import subprances imported calls # models from reviews. Model Import Shop Class Command (Noegg's Command): Deaf Handle_Onorus (Own, ** Option): #Shops Outlets = Shop.Objects.L () Path = OS For shops in shopping (settings. STOROTOT, '../ANG / LIB / Python 2 / sais-package'): print shop command = "cd temporary; python% s / webkit 2png.py -F% s" % (Path, shop.url) call ([Command]) # Read the screenshot file and insert it in t...

c# - How to stop automatic url decode in Firefox & Safari? -

In my web application I want to transmit some values ​​via the URL via the URL. Because I have some special characters, so I decided to sign my values ​​so that my URL could not be broken. In IE and Opera, when I load my URL in a browser, they keep encoding but the URLs in Safari and Firefox are automatically decoded and my code breaks. IE8 & amp; Opera an encoded value url default .aspx? Sid = % c5% a1D% 19% 5c% c2% a5) and is not automatically decoded. In Firefox & amp; Safari price has been automatically decoded and it is clear by "default" such as Default.aspx? Sid = šD \ ¥) The problem is that when I use HttpUtility.UrlDecode (request .xstring ["sid"]) in my code and in my webpage firefox or my code in safari Breaks ... Any ideas how to prevent autodetection? You should not call HttpUtility.UrlDecode (Request.QueryString ["sid"]) . Simply use the request .QueryString ["sid"] and leave decoding ASP.NET as needed. ...

XMPP.php Class not working -

I am using XMPP.fp (i.e. xmpp class) to create a chat application in GMAT. I have put the correct username and password of GTA but it is not working. Code I used (found from GitHub.com) & lt; Includes php 'XMPP.php'; #ImpPHP_Log :: Using LEVEL_VERBOSE to get more logging for error reports, if it does not work, then do you use 64-bit PHP as & lt; 5.2.6? $ Conn = new XMPPHP_XMPP ('talk.google.com', 5222, 'username', 'pass', 'xmpphp', 'gmail.com', $ printlog = false, $ loglevel = XMPPHP_Log :: LEVEL_INFO); Try {echo "welcome 2"; $ Conn- & gt; Connect (100, wrong, true); $ Conn- & gt; ProcessUntil ('session_start'); $ Conn- & gt; Presence (); $ Conn- & gt; Message (youomeid@somewere.com, 'this is a test message!'); $ Conn- & gt; Disconnect (); } Hold (XMPPHP_Exception $ e) {echo "failed"; Die ($ E & gt; getMessage ()); }? & Gt; and I'm getting the error (exc...

java - Swapping values around in the view with information taken from a DAO -

To respect the requirements, I used the hack to temporarily swap a numerical ID in which the string See a related user name that represents. To do this, I have called the DAO directly from TableModel, of course, it is not very elegant and possibly a design point is inappropriate. What will be the proper approach to achieve this? A table model has been inquired with EDT and should never block it - hence a DAO Calling is perhaps a bad idea you can either: Retrieve your required information from the DAO and provide the tablemodel before showing your table. Dynamically load information in the background and add this table to the MODEL when data access is complete. 1 Probably the easiest option to apply.

email - SMTP host and port value for yahoomail -

I am working to send emails from my various accounts using Java. And I have successfully mailed from my Gmail account. Now I tried to send an email to my Yahoo friend by changing the SMTP host by changing "smtp.mail.yahoo.com" and Port Value 25. But I'm getting "SMTPendedFeedment". Can I know what I should do to do this work? These are all values ​​which I have set in the form of properties in my code as yahoomail. props.put ("mail.smtp.starttls.enable", "true"); Props.setProperty ("mail.transport.protocol", "smtp"); Props.put ("mail.smtp.auth", "true"); Props.setProperty ("mail.smtp.host", "smtp.mail.yahoo.com"); Props.put ("mail.smtp.port", "25"); Props.setProperty ("mail.user", "Username"); Post text "itemprop =" text "> I believe That Yahoo! Mail uses SMTPS: propssetProperty ("mail.transport.prot...

profiling in solaris -

Please suggest a better tool for profiling the program compiled with a Suncc compiler, please suggest the equivalent of Valgrind Please give it. is the best tool for profiling [in] the universe. DTress Solaris ™ is a comprehensive dynamic tracing framework for the operating environment. DTress provides a powerful infrastructure to allow administrators, developers and service personnel to answer arbitrary questions about the behavior of the operating system and user program. This is not marketing, it actually only allows it. It describes how to use DETres, debug and tune system behavior. The DTCs guide includes a complete reference to the bundle DTress reflectivity tool and the D programming language. DTrace is also available in Mac OS X, (it has a good GUI, device), and a FreeBSD port on which only kernel mode providers are available.

java - i want to convert string and integer to unsigned byte -

जावा में मेरे पास दो चर स्ट्रिंग स्ट्रिंग; Int पूर्णांक वैल्यू; मैं इन मानों को स्व-हस्ताक्षरित करने के लिए परिवर्तित करना चाहता हूं कि कैसे स्ट्रिंग को अस्संस्डबाइब में परिवर्तित करें और अचयनित बीटा में पूर्णांक जावा में एक अहस्ताक्षरित बाइट नहीं है। स्ट्रिंग से लेकर short को Short.parseShort (string) द्वारा किया जाता है यदि आप एक्सिस के अस्वाभावित बीटा वर्ग का संदर्भ दे रहे हैं, तो आप कन्स्ट्रक्टरों का उपयोग कर सकते हैं: नया अनसाइन्डबिट (स्टिंग); नया अनसाइन्डबिट (पूर्णांक वैल्यू);

java - Session ID from Thread / Stacktrace -

There is no such problem, just thinking about things. If I have the web application takes a call in a servlet, if servlet calls in a data manager who calls in a database layer, assures that one of these levels throws an exception is. Is there a way to identify session IDs that is present at the top of the stacks, without any exceptions bubbling in the top and sublet layers? Hope this makes sense ....: o) You can always create a filter which prevents each request and allows the existing session ID to be a public static thread locale & lt; String & gt; Puts in SessionId; Nowhere else will it be accessible anywhere with the same thread. This is another story that sessionId would be useful. Perhaps you can use your user id, user IP or other similar information.

maven 2 - Determine all of the file dependencies in a build process that uses makefiles and ant scripts -

I am trying to understand the construction process of a codebase. The project uses both autoconf (configures makefile generating scripts) and Maven. I have to be able to recognize all file dependencies in the project, so that for any output file that is generated, I can identify how exactly it was produced. After all, I would like to create such a drawing as imagine the dependency, but I just want to remove them. Is there any automated way to do this? In other words, some makefiles and maven or ent XML files, and the top-level targets are given, there is a way to identify all the files that will be generated, programs and input files to generate them Programs are related? Electric accelerator and clearances are two systems that do this, by building build and seeing what this (Possibly blocking the operating system call) This is the benefit of working for any device, and is unaffected by the buggy makefile (signal: they are all buggy). This is probably the only reliable w...

php - How do I use cookies to let visitors access to the downloads page of my website -

I want visitors to fill out a contact form before reaching the download page. I am looking for online resources or examples I can find only username and password authentication which I do not need it. I hope to do this in PHP. My contact form gives me their details at the moment, but any download page Can reach at. Thanks You are not giving us enough to go! Based on your tags, I believe that you are developing in your developing php. In this tutorial you should do what you want

jquery - Using regex to change sub element image from off to on and back -

In an effort to keep the code, I was hoping to use a regular expression with jquery to hover an image for. $ (function () {$ ("ul.dropdown li"). Hover (function () {$ (this) $ ('ul: Css ('visibility', 'visible');}, function () {$ (this) .removeClass ("hover"); $ ('ul: first', this). CSS ('visibility ',' Hidden ');});}); html: & lt; Ul class = "dropdown" & gt; & Lt; Li & gt; & Lt; A href = "" & gt; & Lt; IMG src = "picture / nav_first_of page" /> & Lt; / A & gt; & Lt; Ul class = "sub_menu sub1" & gt; & Lt; Li & gt; & Lt; Div class = "topnav_dropdown_left" & gt; & Lt; A href = "" & gt; & Lt; IMG src = "picture / topno_dropdown_first.fg.jpg" /> & Lt; / A & gt; & Lt; / Div & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Li & gt;...

rest - What is "posted" in ASP.NET MVC applications? -

As I have reviewed more code and blog posts than many MVC sources, I still post "my mind" "When a request is made, I realize that MVC does not support the post, but I am having trouble finding resources that can understand enough to understand it. Controller's Index under the name of the public functioning (here goes?) {...} What are my parameters? Sometimes it looks like this scene Sometimes, this is a studio scaffolds for (int) (Ent ID, MyObject myobject) for an editing-style action - this includes anything from my model. ID, form collection collection) Why not use modeling object here for a removable style action? Is a formulation object always "posted"? Occasionally, I see the (Routinfo route ink) which is not recognized in my MVC 2 Intelligence (is it only MVC 1 or something else?). How do I install these parameters? I think this design will be very helpful at the time I get it. What is a form data in MVC that is posted back ...

Codeigniter basic delete -

I have a link that calls this function: Delete function ($ Id) {// Delete from database - $ -> db-> Delete ('message', array ('id' = & gt; $ id)); $ Data ['delete_message'] = 'Message successfully deleted'; Redirect ('admin'); } As you can see that I redirect to the admin function, and I want to pass delete_message in that function. How can I do this? Have you seen "?" You can set your success message in Flash and the next page (the administrator in your case) reads it available and sees it regularly as $ data ['foo'] .

sql server 2005 - SQL - When would an empty OVER clause be used? -

I am analyzing some code which uses the empty over clause in the calculation () competition. Example: SELECT ROW_NUMBER () over (priority order by DESC) AS Rovid, CAST ((COUNT (*) Over () / @ POSISES) AS TOTAL PAGE , I am trying to understand why the empty open clause is being used. There are other standard selection elements below the two rows listed below , And when I leave the blank on the other side, from the total page line, I get errors like this: column 'table. Priority' The selection is invalid in the list because it is not contained in any one function or group by section as soon as I put it back (), the error is exhausted. My understanding of the over clause is very limited ... I feel as if I understand what's going on in the RUID LINE ... but the total page line is just me quiet. over () is part of analytical work and with your records In defines the division. Over () is only one partition and applies to the entire dataset i.e. COUNT ...

html - Select all <a> tags except the <a> tags that contain an <img> tag in CSS -

I want to create all the text links on my website. I have a lower limit I use: A {Border Down: 1px Dotted # 333; } ... but this image also adds a boundary to the link and I do not want it. How do I work for this text link only? one below the border: 1px dotted # 333; } An IMG {border: 0; } Override legacy rules, the basic CSS method. Edit: Wow, I'm not really paying attention. Can you throw a class to the ink which contains images? a.contains-image {limit: 0; } This will be the only non-scripting solution depending on CSS3's no selector.

jQuery AJAX not hitting ASP.NET Web Service when passing parameters -

जे एस: var paramStr = $ ('# id1')। Val () + '|' + $ ('# Id2')। Val () + '|' + $ ('# Id3')। Val (); ParamStr = '{"searchCriteria": "' + paramStr + ''} '; $ .एजेक्स ({प्रकार: "पोस्ट", यूआरएल: "/ माइस्सिव.एम्क्स / मायवहेब विधि", डेटा: पैरामीटर, कंटेंट टाइप: "एप्लिकेशन / जेसन; वर्णसेट = यूटीएफ -8", डेटाटाइप: "जेसन", सफलता: कार्य ( परिणाम) { } }); VB.NET: & lt; सिस्टम.Web.Script.Services.ScriptService () & gt; _ & Lt; System.Web.Services.WebService (नामस्थान: = "http://tempuri.org/") & gt; _ & Lt; System.Web.Services.WebServiceBinding (conformsTo: = WsiProfiles.BasicProfile1_1) & gt; _ & Lt; टूलबॉक्सइटम (गलत) & gt; _ पब्लिक क्लास लॉजिस्टिक्समुख्यमेनू सेवा सिस्टम। वेब। सेवा। वेब सेवा & lt; WebMethod (सक्षम सत्र: = सत्य) & gt; _ & Lt; स्क्रिप्ट मोड (रिस्पांस प्रारूप: = रिस्पांसफ़ॉर्मेट.जेसन) & gt; _...

Sharepoint Content Approval message -

I get the message when the content approval is turned on for a list when users create items' items in this list Content approval requires that your submissions will not appear in public views until approved by a person with the appropriate criteria. ' I want to change the text of this message in a particular site collection. I found out that the message \ 12 \ config \ resources \ wss.resx contains the checkin_publity maserasec. Does anyone know that there is no way to override the settings in the site collection level or at the page level as well? The site is currently in control of wss 2007 . Use it 12 \ TEMPLATE \ CONTROLTEMPLATES \ Default Templates.ascx: & lt; SharePoint: RenderingTemplate id = "InfoBar" runat = "server" & gt; Is being done by the template found in. & Lt; Template & gt; & Lt; SharePoint: Generic notification runat = "server" & gt; & Lt; Template_Controls & gt; & Lt; ShareP...

Django-nonrel admin superuser in Google App Engine -

I have a Django app for which I have created a superuser account, so I can log in to Django-Admin. It works in local (I can log in). How do I create a super user on my appspot.com account on Google App Engine? For someone with similar problem: What do you need to do manage A super-user in GAE to create py remote createsuperuser

validation - Where can I find a decent tutorial/explanation of using Castle Validators with ASP.NET MVC2? -

Where can I find a decent tutorial / explanation for using Castle Assumptions with ASP.NET MVC2? I want to go with the palace because I am not fond of the fact that I can not test my POCOs using data annotations without copying the logic of grabbing properties and all of them Have to call. I am very much fond of the fact that with Castle, I can call only Isulayadar to valetearnter which I can initiate in my tests. I just forget about the underlying MVC2 verification framework and can go with xVal. This article / screencast looks good: Hope that helps.

windows - Batch to find and replace -

I need to replace all the versions of a specific string with spaces more precisely, give me a batch file Locate all "NaN" in a text file, and replace it with "" (empty space). How can I do this? Best CB If you download stuff You can use the example sed -i.bak "s / nan / g / file"

iphone - How can I present a UIView from the bottom of the screen like a UIActionSheet? -

I have to slide a UIView UI from the bottom of the screen (and stay mid-screen) like UIAACASET. How can I complete it? Update: I am using the following code: TestView * test = [[TestView alloc] initWithNibName: @ "testview "Bundle: zero]; [UIView startup permissions: zero reference: zero]; [UIView Set Animation Duration: 0.4]; [UIView Set Animation Crow: UIViewAnimationCurveEaseIn]; Test.view.center = CG Pointsmake (160,100); //test.view.frame = CGRectMake (0, 0, 160, 210); [[[UIApplication shared application] key window] Junk; test.view]; [UIView commitAnimations]; Animate from the corner corner and is visible in the corner. How can I raise it from below? Stop! What Matt did here, but changed the values ​​and direction only if you need it later So I give it a code to get it down from home (I will update this post). Link: Also, do not forget to exclude the code that moves the main scene downwards (hence instead of the UIVUE, just like the action cold, ...

networking - What the difference between CRC and checksum? -

What is the difference between CRC and checksum? text "itemprop =" text "> is of one type, especially one Dependent checksum algorithm (among others, eg,). As their name suggests, they also recognize static changes, which makes them stronger - thus more check-in in other ways. - Compared to more checksum methods.

RTL (right-to-left) keyboard navigation in an HTML <TextArea> -

After I'm working with some HTML which includes a & lt; Text area & gt; . Currently, I am testing the input of the characters of LTR and RTL , such as "abc أبج ABC" . & lt; Div class = "mycomment" dir = "RTL" & gt; & Lt; Form method = "get" action = "{$ self}" & gt; & Lt; Input type = "hidden" name = "id" value = "{$ entry}" /> & Lt; Textarea name = "comment" class = "commentarea" /> & Lt; / Textarea & gt; & Lt; Br / & gt; & Lt; Input class = "button" type = "submit" value = "{$ postlink}" /> & Lt; / Form & gt; & Lt; / Div & gt; The string performance is correct when occurs in RTL mode, however, keyboard navigation is incorrect, especially when it does not follow the correct sequence of English and Arabic strings are going through sections. Any ideas how can I...

teechart - Delphi TChart using AddNullXY and trend function -

I have TeeChart version 7.07. I have a chart with a 400 chart (x) with the fast line series and the date and y are used%). There are valid dates with the first 200 actual measured% values. In the next 200 future, valid dates are 0 to YValue, which were added using AddNullXY (date, 0, decimal). There is also a fast line series as a fashion line with my first series data source. The problem is that the trend line of 0 is changing in the previous 200 values, I want a trend line to expand in future dates, where I can complete the date of the disc. I have tried the undiscovered property but it was no help. Is this possible? Steve ... Try using NaN instead of 0.

android - Unable to use shared preference within a class that extends View -

I'm getting an error when I try to reach shared priority Code> View . Error: " The method is mandatory for getSharedPreferences (string, int) type ViewforRed ", where ViewforRed is my square Here is the sample code Public square ViewforRed view {public final string PREFS_NAME = "graphics"; SharedPreferences Settings = Preferred (PREFS_NAME, 0); View public FORRRed (Reference Reference) {Super (Reference); } Public draw on zero (canvas canvas) {paint paint = new paint (); Float p, p1, p2, p3, p4, p5, p6, p7, p8, p 9; }} if there is a way of a context object You can try: public class ViewforRed extended {public final string PREFS_NAME = "graphics"; Sharing settings; View public FORRRed (reference references) {settings = context.getSharedPreferences (PREFS_NAME, 0); Super (reference); }

delphi - detect if the scrollbars of a form are visible in an mdi child -

I have not come to know that a scrollbar is visible or not by passing through the Internet shows that The code should work. Everyone uses it: function VertScrollBarVisible (window: Thandal): boolean; Start the result: = (GetWindowlong (Window Hight, GWLEGel) and WS_VSCROLL) & lt; & Gt; 0 end; I call it like this: Process TFrmBaser.Button1Click (Sender: Tubect); Then start if VertScrollBarVisible (MainForm.Handle) caption: = 'visible'; End; It lied all the time, even scrollbar appear. They are seen by some MDI baby forms which I draw a little bit from the screen. Delphi 7, Win XP SP3, Theme This This is incorrect at all times, even scrollbars are visible, they are visible by some MDI child forms that I pull a little bit from the screen. This shows that the form with which you are having trouble is in the form of a MDI parent ( FormStyle is fsMDIForm ). MDI guardian forms are different from normal forms, in which they create a special c...

javascript/jquery - $(document).ready() and script locations -

I would like to know how the $ (document) .ready () works in normal scripts Say that I have scripts that are in the lower part of the page (for performance reasons I have been told?). As an example: Say you have a link and you need to stop its default action ( preventDefault () ). If the script is at the bottom of the page, is it not possible that the user can see the page and not have to follow the link before clicking the link? Scripts in the 'head' section are evaluated at the point where the script tag is loaded in the browser (Like before the body) Script tags are also executed at the end of the document, when they are faced with a browser because it parses the page - so before the 'document-ready' event. The 'Document Ready' event is removed when the entire page loads - that means when the browser closes the ' gtc:' tag. So yes, if it takes some time to load and execute a script that disables the link at the end of this document, t...

uitabbarcontroller - Determining the currently selected TabBarItem from within a tableViewController on the iPhone? -

I have 2 tabs in my tabber. They both have examples of the same UITableViewController . Hierarchy UITabbarController & gt; UINavigationControler & gt; UITableViewController From the table viewController, I want to determine which tab is currently selected, I know that I have selected the selectedIndex to UITabBarController , I do not know the easiest way to reference from within the current viewController . Do I run through the supervision of every view to search TabBarController If you instantiate and store UITabBarController in your app representative, you can highlight it as the asset of that object. You can store a stationary global pointer in your App Deliate object and expose it via class method: + (MyAppDelegate *) Example {return g_Instance; } When you need your tabbar controller, you can use it: [MyAppDelegate instance] .tabBarController / html>

asp.net application performance and stress testing ? Please guide -

Thank you for your attention and time. I want to test the ASP.NET application for stress, loads and performance please guide me that free tools should be used for this? Thank you in anticipation for your help Dynastres Client-Server Web Performance Tool is. The client part, called, is free, is a complete demonstration test tool. It detects asynchronous javascript functions including full time trip times, and reports performance by method or event. The V 2.0 beta has just arrived, and other popular and free browsers performance testing is very stable and more powerful than the add-on (firebug, yslo, etc.). The server part of dynaTrace is designed to test ASP.NET code-level performance, but it's not free. So check the stackoverflow theme whether a free one. NET code profile will work for you. Use your app to load generator to test under load. See for free that allows to simulate various load scenarios.

friendly url - rails: removing underscore from controller name -

जब मैं नियंत्रक नामक एक दो शब्द उत्पन्न करता हूं, जैसे कि FooBar रेल एक नियंत्रक और पथ की तरह बनाता है foo_bar यह सुंदर नहीं है मुझे कम से कम फ़ूबार होना चाहिए संभव है? सुझाव? मार्ग पर निर्भर करता है कि मार्गों में आपका मार्ग कैसे परिभाषित है। उदाहरण के लिए: # यदि आपने मार्गों का नक्शा नाम दिया है। आफ़ोबार '/ फूबार /: एक्शन',: नियंत्रक = & gt; 'फोबोर' # यदि आपके पास संसाधन हैं, तो यह नक्शा उत्पन्न करेगा। स्रोत: foo_bar,: as = & gt; 'फोबोअर' यह रेल 2.3 के लिए है *, यह रेल 3 में थोड़ा अलग है।

c# - Problem loading Crystal Reports -

Report with crystal reports was a local application in Visual Studio 2010, when I can install the app in another computer That it throws the following message: System.TypeInitializationException: The startizer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception ---> crystaldiscision. CrystalReport.Gen. LoadShow Report Action: An error has occurred while trying to load the crystal reports runtime. Either the crystal reports registry key permissions are inadequate, or the Crystal Reports runtime is not properly installed, the correct crystal reports that contain the correct version of the Crystal Reports runtime (x86, x64, or itenem) are redistributed (CRRidist .msi) installed Please. Please go for more information * In my setup, I have included all Crystal Reports DLL, so I do not know what this problem is. Thanks for the help. / P> For information about installing and deploying crystal reports in Visual Studio 2010, refer to it. ...

java - How to disable refresh button once user goes on a particular web page? -

I have to create a web page for an online quiz that will display the same question for each user in different sequences. Now, I have written code that raises random questions every time, when users go to that page The user goes to that page with the login ID and password I used random tasks in the query which gives a query in different order for each user. But now the problem is that when I refresh that page question order for that user. So I want to disable the refresh button. Can you please tell me how to disable it? Or is there any other way? It is impossible to disable the Refresh button. You can try to save the order of questions in users session and then use it.

MySQL condition -

I am still new to MySQL and I do not know the best way to do this. I have a table with payroll values, and if the value is more than a certain limit, then I want to know. So say that I have this table with a current column and the capacity column. A line has increased by user input in current and I want to know that when someone exceeds the value in the existing line or its related capacity get. If current is still under capacity , then I would like to query the return to the truth thanks To check your UPDATE query: WHERE clause> // I believe that you can add existing columns to 1 , //, but this is your table so change the required sub values ​​$ update = mysql_query ('UPDATE table SET current = current + 1 WHERE id ='. Intval ($ row_id). ' Current & lt; capacity '); Then check the mysql_affected_rows () query for UPDATE : if (mysql_affected_rows ( ) & Gt; 0) {// success}

python - how to export images from an openstreetmap server? -

Good morning everyone, I will try to explain the whole situation here: I have a website (Dégengo-Python) which It shows that there are two layers of a map map using the open layer: A background that shows city names and roads, and for this, I use OpenStreammaps; For the second layer, there is some geographic information, for this, I use the mapers (more specifically, I send the bbox parameter and other stuff for my server and generate a map through the map script for the python). Now I want my website to have an "export" button, for which to create a .zip file with a picture map (between the charts and the files included in the .zip), so let me do the same map Which should be able to create OpenLayers and save it in a file or directly in .zip My first estimate was that I could get the coordinates (BBOX) from OpenLayer, sending those coordinates through python and url and python both server (modem to an openmapestates), .zip file Save the image in ... but life is not t...

facebook - How use multipart/form-data upload picture/image on Android -

This is my code. I got the HTTP 400 error, can someone help me? HTTP Client http Client; Http post http post; HTTP response response; HttpContext Local Contestect; FileTypeTMP = Faucet; String rate = null; HttpClient = new DefaultHttpClient (); HttpClient.getParams () SetParameter (Client PNames.COOKIE_POLICY, CookiePolicy.RFC_2109); HttpPost = New HTTP Post (URL); TMP = new filetyt (data, "UTF-8"); HttpPost.setEntity (tmp); HttpPost.setHeader ("content-type", "multipart / form-data"); HttpPost.setHeader ("access_token", facebook.getAccessToken ()); HttpPost.setHeader ("source", data. GetAbsolutePath ()); HttpPost.setHeader ("Message", "Caption for Photo"); LocalContext = New BasicHttpContext (); Response = httpClient.execute (httpPost, localContext); bobince, thanks, this is my new id, I will try to put Oeth in my connection headers. And this is my old code, I will update it soon. Upload private zo...

How to insert post meta values in wordpress -

How to insert meta values ​​when adding posts? I am using the wp_insert_post function to insert the post. In order to use the "Add_post_meta" function, we need to specify the post ID. How can I add value when posting? Is there any way to do this? Value - DJ I think you created an array for posting $ Post, 'post_type' = & gt; $ content, 'post_type' = & gt; $ type, 'post_states' =' & Gt; $ position); Get it with newly inserted post_ id $ id = wp_insert_post ($ new_post); Then pass the parameters like post_ id, meta_key, meta_view update_post_meta ($ id, 'total_payments', $ amount) and the value in the wp_postmeta table Insert; Update_post_meta ($ id, 'downcount', $ downcount); Try it out.

php - Do not accept externally created session identifiers -

Spades We can stop to accept externally created session identifiers. Thanks If people pass in their own session identifier then this will only work if it is a valid Anyway You are already protected from this.

user interface - Android - Get ListView item height? -

There is no way to get the visibility height of the list in the list, when there is no real object in the list? My list view value layout: & lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android: layout_height = "Android: attr / listPreferredItemHeight" & gt; ... & lt; / LinearLayout & gt; I tried to use it using the infix: view convert = layoutinflator.frame (this) .inflate (R.layout.mail_list_row, Null); Int itemHeight = convertviewweight (); but its return 0; Thank you! A visual width and height is specified in Android, when its rendering will be completed. So long as you do not provide the list at least, you will not get the list. IightHeight can solve your problem so that you set the height of some items so that you work hard at least instead of hard coding height and width Able to

c# - When should I create a nested class? Does it make instantiation of the outer class consume more resources? -

इस सवाल का पहले से ही एक उत्तर है: 12 जवाब कभी-कभी मुझे किसी के कोड मिलते हैं नेस्टेड क्लासेस। मुझे नेस्टेड क्लास कब बनाया जाना चाहिए? क्या यह बाहरी कक्षा का तत्काल अधिक संसाधनों का उपभोग करता है? अग्रिम धन्यवाद। मुझे लगता है कि मैं देख सकता हूँ कि आप क्या पूछ रहे हैं। मान लीजिए आपके पास क्लास ए है Scenerio में एक इस वर्ग में नेस्टेड क्लास नहीं है। Scenerio दो में इस कक्षा में एक नेस्टेड क्लास ए बी है। अन्य सभी चीजें समान * हैं, क्लास ए स्प्रेंनेरो वन में से अधिक की तुलना में Scenrio Two में अधिक संसाधनों का उपभोग करेगी इसका कारण यह है कि दो वर्गों ए और ए.बी. वास्तव में दो अलग-अलग कक्षाएं हैं। वर्गों के घोंसले को ही वर्गों और उनके सदस्यों को नष्ट करने को प्रभावित करता है। यह कक्षाओं के स्मृति लेआउट को प्रभावित नहीं करता है। * अगर स्केंरियो दो ए में भी एबी का एक उदाहरण होता है, तो सभी चीजें समान नहीं होतीं, और कक्षा ए संभवतः स्केंनेरियो की तुलना में बड़ा होगा एक। लेकिन ए के सदस्य क्षेत्र प्रकार एबी को कक्षा परिभाषा से अलग परिभाषित करना होगा, इसलिए यह एक बह...

How do I get the stack trace from an Exception Object in Python? -

मैं अपवाद ऑब्जेक्ट से पूर्ण स्टैक ट्रेस कैसे प्राप्त करूं? निम्न कोड के रूप में विचार करें समस्या का कम उदाहरण: last_exception = कोई भी प्रयास नहीं: अपवाद छोड़ें ('foo failed') अपवाद को छोड़कर ई: last_exception = e # यह कहीं और होता है, मूल वृद्धि से decoupled print_exception_stack_trace ( Last_exception) संपादित करें: मैंने झूठ बोला, क्षमा करें। ई .__ ट्रेसबैक __ वही है जिसे आप चाहते हैं। प्रयास करें: ValueError को ई: प्रिंट (ई। "Test.py" & lt; traceback ऑब्जेक्ट 0x00C964B8 & gt; & Gt; बाहर निकलें कोड: 0 यह पायथन 3 में है; आप इसे पहले के संस्करणों में नहीं कर सकते।

how to know tables name in the connected database in c# -

I have a database that has already been made from SQL and I'm making connections on it the way I can know I know the tables in this database as C #, but I have code and programming and C # You're the ADO Can read schema and metadata information with the net. This is one.

extension methods - Casting and Linq Cast<T>() -

While trying to answer, I searched the following: string s = "Test"; Var result 1 = s.Select (c => (ushort) c); // work fine var result2 = s.Cast & lt; Ushort & gt; (); // An unlawful artist throws an exception Why Cast & lt; T & gt; () here fails? What is the difference? Think you will find your answer here: IEnumerable & LT; T & gt; . This means that every time from time to time every value is delivered to the point where it is being inserted, it already has System.Object

iphone - Application Loader gives a wrong error -

I am trying to upload the universal binary of my app using an application loader. I have an icon page that is 57 x 57 size. When I upload the binary, the application loader gives me an error by saying that the size is wrong and it should be 72 x 72. An article in the ISO Reference Library (QA1686) which says that the size of this file should be 57 x 57. You probably created your application as an iPad app (or iPhone + iPad app) 72x72 iPad icon Is the size.

sharing a database connection between applications in c# -

I was wondering if anyone knows whether it is possible to share multiple database identical database connections For example, if I have an application that opens a connection to a database, then I start another application that needs to be connected to the same database - so instead of opening 2 connections, I first used to connect to the app Use which are already open Opening a connection Because I am asking because I am developing a system that is made up of a large one rather than a different exe - but they all use the same database Any help would be appreciated thanks IMHO You can share the same connection string, but sharing the same physical DB connection between unknown apps about each The stem will not be good idea. How do you handle locking, concurrency, transaction limits etc. If this is to reduce the DB licensing cost or limit the connection, then this low connection life time (i.e. the application connect if you really want to share a connection , You c...

ruby - Require a module file and interact with its module? -

I have a random module file in a folder. e.g. "User.rb" includes "Module User", "CustomerRbb", which includes "Module Client" and so on. I want to require all the files and want to print all module methods. Here is my current code: @@ data_module_methods = [] All files in the data folder # repeat [file. (Aprot, "data", "* .rb")]. Do each. File | File Required # Give me the module name from the file path (hence the ./data/user.rb will give me the user) data_module_name = file.split ("/"). [] {- ​​(1) .split ("."). [] (0). #Delete: Print the names of all method, here it fails, because the data_module_define is a string and not the module :) data_module_name.instance_methods.each do | Method @@Data_Modules_mination & lt; & Lt; Method ending How can I do this? Thank you To get you each module from its name, Kernel # const_get method, therefore: ... kernel.const_get (data_modu...

scheduled tasks - Job Scheduling in Java -

I want to run a Java program on a specific program. I am developing a J2 EEE application which allows you to schedule selenium test launches (genuites) on a certain date. Is there a solution to do this? Can you tell me about the technology that can help me do this? Any help is appreciated :) Thank you for your help I do not know enough information, I use I would recommend. You can see an example of using it.

c# - Display a & in a menuitem or menustrip -

I have a menu item like this, but & amp; An underscore is converted into what can actually be an escape character? & Amp;? just '& amp; Character ' menuItem.Text = "foo and bar";

c# - Can $.getJSON() get PDF/Docx in Save Dialog -

$ .getJSON (dUrl, डेटा: '{a: 2, b: 3}', फ़ंक्शन (डेटा ) {चेतावनी (डेटा);}}); क्या $ $ .getJSON () अनुरोध करना एक नई विंडो में pdf / docx को पॉप अप करने में सक्षम होगा? यदि हां, क्या आप कृपया इस बारे में और जानकारी साझा कर सकते हैं .. मुझे पीडीएफ / डीओसीएक्स फ़ाइल रिस्पांस स्ट्रीम से फिडलर में मिल रही है किसी भी मदद की सराहना की जाती है ... यह कस्टम कार्यवाही है P> सार्वजनिक वर्ग DownloadResult: ActionResult {सार्वजनिक DownloadResult () {} सार्वजनिक DownloadResult (स्ट्रिंग वर्चुअल पाथ) {this.VirtualPath = virtualPath; } सार्वजनिक स्ट्रिंग वर्चुअलपाथ {get; सेट; } सार्वजनिक स्ट्रिंग FileDownloadName {get; सेट; } सार्वजनिक ओवरराइड शून्य ExecuteResult (नियंत्रक संदर्भ संदर्भ) {//context.HttpContext.Response.TransmitFile(filePath); //context.HttpContext.Response.WriteFile(filePath); //context.HttpContext.Response.Flush (); // Response.BinaryWrite (सामग्री) //Response.ContentType = "एप्लिकेशन / एमएसवर्ड"; //Response.ContentType = "एप्लिकेशन / पीड...