Posts

Showing posts from March, 2011

erlang - ejabberd: inspect Mnesia tables? -

I am digging in ejabberd but I can not find any way to inspect it in its meniacia tables. What is something like MySQL shell to inspect the tables? You can use the table visualizer in the module. This can help to check the ets tables and mnesia tables. You can start it on any connected node (eg, with "EasyBeDDTL debug"), together: TV: start ()

asp.net - Why URLRewriter.NET doesn't get querystring values? -

I have just started using URLRewriter.net with my blog and I have problems finding query string values is. I have a rule like this: & lt; Url = "~ / blog.aspx (\?. +)? $" To = "~ / hidden Folder / blog.aspx? Mode = default & amp; $ 2" /> But when I try to use /blog.aspx?page=1 the page parameter is not passed. Other parameters have done great work and there is no conflict in writing the rules again. I think the problem is that as far as the $ 2 limit you have only your RegEx Have a group in $ 1 Try it Edit In addition to this, it may be that the query string is replaced with the other '?' So you need to go out of that bracket. You will need an additional group to match the rule without our 'rule'. Note: We are now returning to $ 2 as a result :) & lt; Url = "~ / blog.aspx (\? (. +)?)? $" To = "? ~ / HiddenFolder / blog.aspx mode = default & amp; $ 2" />

Why version matching doesn't work in Maven? -

यह मेरा pom.xml है (इसे का टुकड़ा): ... & lt; निर्भरता & gt; & LT; ग्रुप & gt; org.hibernate & lt; / ग्रुप & gt; & LT; artifactId & gt; हाइबरनेट-entitymanager & lt; / artifactId & gt; & LT; संस्करण & gt; [3.0,) & lt; / संस्करण & gt; & Lt; / निर्भरता & gt; ... यह वही है जो mvn मुझसे कहता है: [3.2.0 में कोई संस्करण नहीं मिल सका। CR2, 3.2.0.ga, 3.3.1.ga] से मेल खाने वाली सीमा [3.0,] क्यों? पुराने कोड > XYZga नामकरण योजना का उपयोग हाइबरनेट (नए जेबीस सम्मेलनों के लिए देखें) मैवेन के प्रारूप का पालन नहीं कर रहा है और संस्करण के साथ अच्छी तरह काम नहीं कर सकता है तुलना एल्गोरिथ्म का हवाला देते हुए: Maven के मूल में वर्तमान कार्यान्वयन की उम्मीद है कि संस्करण संख्या में एक बहुत विशिष्ट प्रारूप होगा: & lt; MajorVersion [& gt; । & Lt; माइनरवर्सियन [& gt; । & Lt; वृद्धिशील संस्करण]] [& gt; - & lt; BuildNumber | क्वालिफ़ायर] & gt; जहां मेजरवर्सन , लघुवजन , वृद्धिश...

.net - OCR engines designed for screen-reading -

Is there an OCR engine designed to identify text in screen-capture images instead of scanned text? I have a project where I have to find and recognize text in any application, and whatever OCR engines I have tried, has been successful with screenshots so far. Ideally the engine should work well with color and with background noise, although I can do some allowances if nothing like this is available. It should be compatible with NAT; Either has a .NET written or a .NET-redeemable API. After I have found a lot to be solid for an open source project I've found that this megappleload Like, simple captcha can read and understand. .. I think a small shuffle can work very well with this. The only pain is that it accepts only uncompressed TIFF images, which can be annoying Edit: Philip Daubmeier has already found a .NET integration, but has a code to convert a bitmap to uncompressed TIFF Private Zero ConvertBitmapToTIF (bitmap changed) {ImageCodecInfo CodecInfo = GetEnc...

formatting - LaTeX - left align a table (ie not centred) from the preamble? -

I am making a document in latex, but I can only change the preface of the document. I have tables inside this document, which have been created for a long time. By default, latex focuses each table in the middle of the page. Is there no way in which tables to quit the coalition, provided I can only change the preamble? to horizontal alignment of the table controls longevity of longevity . The possible options are [C], [R] and [L], respectively, for right and left adjustment, centering normally is the default, but specificity in this document \ setlength \ LTleft \ parindent \ setlength \ lTright \ fill In the preface, which means that tables are set to fl ush, but indented by normal paragraph indentation.

converting javascript code into html output? -

I can use JavaScript to appear HTML tags and divisions, but I put some text into a div Want to {/ Tag> "div", id: "tabs", childs: {{tag: "div",} {tag: "div", className: "panel", id: "tabs", childs: {Tag: "div", className: "tab_left"}, {tag: "div", classname: "tab_middle", {tag: "div", className: "page_button", classname: "box" "tab_right"} ]},] How do I add text to it? I want to: & lt; Div class = "tab_title" & gt; I use sample text & lt; / Div & gt; Tab_middle to appear in my html within the div tag with the classname tab. How do I get it? In addition, if I create many of these "tab-titles" with sample text, then how can I assign them to the center of the screen. Thank you very much. As you can tell that I have javascript on E though i have some basic HTML knowledge thanks hope that somed...

Memory Leak with FileMonitorTarget / CacheDependency+DepFileInfo in ASP.NET -

Our Aspiknet web app we have been facing a much wider memory leak that I investigation. Using WinDbg, I got down to are the ones largest memory eat in your application (RAN dumpHeap -stat in WinDbg console to get these!): MethodTable P calculation Overall size type ... 000007fee8306e10 212928 25551360 System. Web. UI. Literal Control 000007feebf44748 705231 96776168 System. Object [] 000007fee838fd18 4394539 140625248 System. Web. Caching Cash Dependency + DefileInfo 000007fee838e678 4394614 210941472 System. Webfilemonitor tag 000007feebf567b0 18259 267524784 System. Select .Hashtable + bucket [] 00000000024897c0 1863 315,249,528 Free 000007feebf56cd0 14,315 735,545,880 System.Byte [] 000007feebf4ec90 1,293,939 +1532855608 System.String I String objects can be quite normal; Still definitely room for improvement, but what makes it really itching me System.Web.FileMonitorTarget is the number of objects that are more than 4 million examples on our stack (48 bytes) Using t...

.net - Why does Visual Studio use backing fields for WCF Service References? -

Many of you will know, I'll mark DataContract For example, I can create a DataContract : & lt; DataContract ()> Public Class fooClass Datamember ()> String Public fooString as the end class When I add a service reference for the code that will receive this DataContract, I think That is the fasting in the class generated by the designer. As a public property with a backing field, my question is, why does the designer use a banking field? I do not see any reason not to reach fooString directly. properties This code design is "standard" style used by MS and properties Instead of using public areas for good reason, even if you have such data contracts on the server side: [DataContract ] Class MyComplexType {[DataMember] Public Entry ID; [Datamember] the name of the public string; } In the client proxy class, you have the form of the backing field of some names like idField , nameField ... Will be in So it is not connected to WCF...

Bitwise AND (&) expression in Java -

I am debugging the code in which the expr1 & amp; Expr2 where there is a side effect of expr1 which affects the expr2 evaluation result I suspect that expr2 is defined as Expr1 is evaluated before , because JLS has & amp; Amp; Guarantees the right-to-value assessment for , but not necessarily & amp; . I also suspect that changes in evaluation order may be the result of optimization by hotspot (we are running Java 6u20) do you know that hotspot can do such optimization? Better yet, provide an indication for documentation that thanks in advance to support or eliminate suspicion. EDIT: Thank you for suggesting the code to re-write, so it's both right and readable - you're right, but I've already done it, so it's not what I'm looking for . Unfortunately, it is difficult to test changes, which is why I am asking questions here. Assessment order is well defined: Java programming language Guarantees that operators of operators are evalu...

JavaScript Interference -

यह मेरा & lt; head & gt; + & lt; body & gt; अनुभाग: & lt; script type = "text / javascript" src = "http://www.septa.org/site/js/jquery-1.4.2.js" & gt; & Lt; स्क्रिप्ट प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; फ़ंक्शन डालें () {var linkElement = document.getElementById ("बैकबुटन"); Var linkElementLnk = document.getElementById ("बैकबुटनलैन्क"); Var loc_array = document.location.href.split ('/'); अगर (लोक_अरे [loc_array.length-3] == "मी") {linkElementLnk.style.display = 'none'; } अगर (लोक_अरे [loc_array.length-3] == "नक्शे" || लोक_अरे [loc_array.length-2] == "स्टेशन" || लॉन_रेरे [loc_array.length-3] == "स्टेशन") {linkElementLnk। Style.display = 'block'; Var newT = document.createTextNode ("स्टेशन और मानचित्र"); } अगर (लोक_अरे [loc_array.length-2] == "w" || लोक_अरे [loc_array.length-2] == "s" || loc_array [...

c# - 'do...while' vs. 'while' -

संभव डुप्लिकेट: मैं थोड़ी देर के लिए प्रोग्रामिंग कर रहा था (2 साल का कार्य + 4.5 साल की डिग्री + 1 वर्ष पूर्व-महाविद्यालय), और मैंने कभी भी ऐसा नहीं किया है, जो कि शुरूआत में मजबूर होने के लिए इस्तेमाल किया गया था। प्रोग्रामिंग कोर्स के लिए क्या यह हो सकता है कि मैं अभी सही परिस्थितियों में नहीं चला? कुछ उदाहरण क्या हैं, जहां थोड़ी देर के बजाय डू-ऑयल का उपयोग करना जरूरी होगा? (मेरी स्कूलीइंग लगभग सभी सी / सी ++ में थी और मेरा काम सी # में है, इसलिए यदि कोई दूसरी भाषा है जहां यह बिल्कुल समझ में आता है क्योंकि कर-व्हिल्स अलग तरीके से काम करते हैं, तो ये प्रश्न वास्तव में लागू नहीं होते हैं।) स्पष्ट करने के लिए ... मुझे एक जबकि और एक के बीच का अंतर पता है क्या जबकि । जबकि बाहर निकलने की स्थिति की जांच करता है और फिर कार्य करता है। कार्य करते समय कार्य करता है और फिर बाहर निकलने की स्थिति की जांच करता है। यदि आप हमेशा लूप को कम से कम एक बार निष्पादित करना चाहते हैं यह आम नहीं है, लेकिन मैं इसे समय-समय पर उपयोग करता हूं। एक ऐसा मामला जहां आप इसका उपयोग करना चा...

php - Free database with places, parent places, latitude, longitude, etc -

Where to get free database of wolrd locations with the following areas: id Place name in English Name in original language Type of place - city, region, state, country, continent, etc. Latitude Longitude ID The location of the current location, for example, belongs to San Francisco California, but California belongs to America. and the ip range table which maps to the locations of this table. I got free maxmind db, but it does not have hierarchical structure of place, location type and original name. After linking to the World Gazette:

python -- callable iterator size? -

I'm looking at some text file for a certain string with the method. Again. Illustrator (pattern, text) I like to know that when it does not give anything, which means that it can not get anything in the passed text . I know that callable iterators, next and __ iter __ I would like to know whether I received the shape Or it can detect that it does not match my pattern. itemprop = "text"> edit 3: @Hynesaker's answer is much better than this is. Edit 2: If you have an infinite internet, or a lot of gigabytes (2010 gigabytes of RAM / disk space still in one Consumes large amounts), then it will not work RAM / disk space You have already seen a good answer, but here is an expensive hack that you can use if you can eat a cake and get it too :) The trick is that We have to clone the cake, and when you eat, we put it back in the same box. Remember, when you get iterated on the itater, it usually gets empty, or at least lost the returned valu...

.Net optimizations for absolute, no-holds bar fastest running code possible? -

First of all, code-readability exits the window for this question. I am all for code readability, but speed comes here first. When your code is completely without doubt, any exception can be made as fast as possible in the knot framework, what are some customizations? I know that there are flags for optimizing the compiler and I have definitely seen thanks for them ... but what if this is not good enough? What are some tricks and right techniques to scraping the lowest clock cycles required to process? Close exceptions (i.e. do not use them) Bound check Close Use a profiler to find constraints edit : Also read this article written by it, it is a very specific Optimization, it is also dependent on the stage but very less known and very useful.

detection - What is the easiest way to use Google AJAX Language API to detect language with PHP? -

Using the Google AJAX Language API to detect language with PHP without using any library or a large framework An easy way to do? It is easy, function detect_language ($ string) { $ Response = file_get_contents ("http://www.google.com/uds/GlangDetect?v=1.0&q=". Urlencode ($ string)); $ Response = json_decode ($ response, true); If ($ reaction ['rectitude'] == 200) {returns $ response ['responseData'] ['language']; } And {return "tw"; }}

Error while trying to validate XML in Java -

I'm trying to create an XML with a local schema, but is throwing some bizarre error. My code: SAXParserFactory factory = SAXParserFactory.newInstance (); Factory.setValidating (true); Factory.setNamespaceAware (true); SchemaFitcher schemafactor = SchemaFactor New Intense ("http://www.w3.org/2001/XMLSchema"); Factory.setSchema (schemaFactory.newSchema (new source [] {new Strymsors ( "\\. \\ schema \\ xsd_me_ne_diaria.xsd")}))); And follow my stack trace. java.lang.UnsupportedOperationException: It SaxValidacao.validateSchema does not parser supports "tap" version "clear" on javax is .xml.parsers.SAXParserFactory.setSchema (Unknown Source) (SaxValidacao .java36) The error throws after the setSchema is called. Some clues or some other tip for XML verification in Java? Sometimes it happens that a different version is a mix of parser if you want Java 5 or If you use higher, try removing references to any external xalan or xe...

php - Notice: Undefined variable -

के साथ error_reporting (E_ALL) ; हटाया गया, मेरी स्क्रिप्ट ठीक काम करती है, लेकिन जब मैं इसे कम कर देता हूं, तो निम्न सूचना दिखाई देती है: सूचना: अपरिभाषित चर: /home/www/test/register/html/form_1.html में संदेश। रेखा 11 पर पीएचपी form_1.html.php: & lt;! DOCTYPE html सार्वजनिक "- // W3C // DTD एचटीएमएल 3.2 / एन "& gt; & LT; html & gt; & Lt; शीर्ष & gt; & Lt; मेटा नाम = "जनरेटर" सामग्री = "लिनक्स / एक्स 86 के लिए एचटीएमएल साफ (7 दिसम्बर 2008 को), देखें www.w3.org" & gt; & Lt; शीर्षक & gt; साइन इन करें या पंजीकृत करें & lt; / title & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; p & gt; & lt;? Php प्रदर्शन संदेश ($ संदेश)? & Gt; & lt; / p & gt; & lt;! - रेखा 11 - & gt; रेखा 11 पर फ़ंक्शन कॉल होती है, जो मूल रूप से सरणी तर्क पर पुनरावृत्त होती है: फ़ंक्शन प्रदर्शन संदेश ($ सरणी) {if (! (खाली! $ सरणी) & amp; amp; और amp; isset ($ सरणी)) {forea...

A confusion about ${array[*]} versus ${array[@]} in the context of a Bash completion -

I'm taking a knife when writing a Bash Perfection for the first time, and I'm a bit confused by two methods of bash arrays ( $ {array {@}} and $ {array [*]} ). Here is the relevant part of the code (it works, but I want to understand it better): _switch () {local cur perls local root = $ { PERLBREW_ROOT} - $ HOME / perl5 / perlbrew} COMPREPLY = () cur = $ {COMP_WORDS [COMP_CWORD}} perls = ($ ROOT / perls / perl- *) # Remove all but the last part of the name is perls = ($ { Perls [*] ## * /}) COMPREPLY = ($ (compgen -W "$ {perls [*]} / usr / bin / perl" - $ {cur})}} Bash: Any element of any element can be referenced using $ {name [subscript]}. Braces need to avoid collision with shell filename extension operator. If the subscript is '@' or '*', the word spreads to all the members of the name array. These subscripts are only different when the word appears in double quotes. If the word is double-quoted, $ {name [*]} extends one word wit...

audio - OpenAL output to multiple devices (Linux) -

I am developing a Linux application on a computer with two audio cards and I use both at OpenAll at once In my context, when I call the Calculation Extension of the OpenNL, ElkGeast String (NULL, ALC_DEVICE_SPECIFIER), to get the list of possible output devices, only 'ALSA Software' and 'OSS Software' are included in the list. Know that these are only OpenAL software tools These are the visuals, when I select one of these, the Opal only creates audio for the default device configured in ALSA or OSS, I'm not even sure that this is possible, but what is the optical Is there a way to direct reference audio output? In this way, I can make two references, I can send different audio for each and every device. Thank you, -alla I did some tests today and found the answer. Apparently, you need to call ALCGetString with ALC_ALL_DEVICES_SPECIFIER to get the full list. There is a simple enough change, but the documentation of OpenAL on this functionality is the best ...

How to configure bindings in Dashcode from a JSON DataSource to a Popup (design-time)? -

पृष्ठभूमि : मेरे पास एक ऐप्पल डैशकोड वी 3 प्रोजेक्ट है जिसमें "पॉपअप बटन" यूआई है तत्व। मेरे पास एक डेटा स्रोत है जो एक JSON फ़ाइल का संदर्भ देता है। डेटास्रोत सही रूप से JSON फ़ाइल को डिजाइन समय पर पढ़ता है और दो रिकॉर्ड वाले सामग्री को दिखाता है, जो JSON फ़ाइल की संरचना से मेल खाता है। JSON फ़ाइल के भीतर सरणी में प्रत्येक रिकॉर्ड के लिए फ़ील्ड का उदाहरण: "displayName ":" वुडस्टर "," यूआईडी ":" 12345 " उद्देश्य : डेटा स्रोत की सामग्री का उपयोग करके पॉपअप के आइटम को पॉप्युलेट करने के लिए। डेटास्रोत सामग्री प्रदान करता है, और displayName और uid फ़ील्ड क्रमशः प्रदर्शन और सामग्री मूल्य प्रदान करते हैं। वर्तमान परिणाम : पॉपअप में दो आइटम हैं (अच्छा!), लेकिन ये दोनों "अज्ञात" (! अच्छा) के रूप में सूचीबद्ध हैं - मेरा मानना ​​है कि मुझे पोप। डिसप्ले वैल्यू को गलत तरीके से बाध्य किया जाना चाहिए, इसलिए मैं यह इंगित करूँगा कि यह कैसे सेटअप है और आशा है कि कोई मुझे सही कर सकता है। पॉपअप.content [boundTo] डेटासोर्स [केप...

How to initialize several variables in a for (;;) loop in C? -

I thought someone could start multiple variables in for loop : for (int i = 0, char * ptr = bam; i & lt; 10; i ++) {...} but I know just now It's not possible that GCC returns the following error: Error: Expected unauthorized-id required before 'four' - is it really true that you have different variables You can not start for loop you can not start You can (but should not usually) use of a local structure type. {int i; Char * ptr;} loopy = {0, bam}; Loopy.i & lt; 10 & amp; Amp; * For loopy Ptr! = 0; ++ loopy.i, ++ loopy.ptr) {...} Since C +11, you start different parts more beautifully Unless they are dependent on local variables: for (struct {int i = 0; std :: string status;} loop; loop.stat us! = " Done "; ++ loop.i) {...} This is actually quite readable to actually use. The problem with structured binding is set to address C ++ 17: for (auto [i , Position] = {0, "" s}; condition! = "Done...

C#-like extension methods in PHP? -

The way you can type an extension method in C #, and then work like this: string ourString = "hello"; OurString.MyExtension ("Another"); or even "hello" .missation ("other"); Is there such behavior in PHP? If you can re-implement all your strings as objects. class MyString {... function foo () {...}} $ str = new MyString ('bar'); $ Str- & gt; Foo ('baz'); But you really would not like to do this. PHP is not just an object-oriented language in its original, strings are just primitive types and there is no way. 'Bar' - & gt; Foo ('baz') It is impossible to get in PHP without extending the CXX core engine (which you do not want to minimize for this purpose :)). There is nothing about expansion in it's functionality of an object which basically improves by writing a new function which accepts a primitive. In other words, PHP's equivalent "Hello". My extensi...

xml - XPath NodeSet in Java -

मेरे पास इस कोड को ग्रहण है नोडसेट नोड्स = (नोडसेट) xPath.evaluate ( अभिव्यक्ति, इनपुट स्रोत, XPathConstants.NODESET); और इसके द्वारा मुझे नोडसेट पर समय त्रुटि संकलन देना है। यह वह चीज है जिसे मैंने आयात किया है। क्या आप मुझे बता सकते हैं कि ऐसा क्यों है? आयात javax.xml.xpath। *; आयात org.xml.sax.InputSource; आयात करें java.io.File; आयात करें java.io.FileInputStream; आयात java.io.FileNotFoundException; Import java.util। *; जैसा कि संकेत दिया गया है कि नोडसेट मानक पुस्तकालयों का हिस्सा नहीं है। हालांकि, नोडसेट मैप्स से एक नोडलिस्ट के लिए, इसलिए आप इसका इस्तेमाल केवल इसके बजाय कर सकते हैं। तो यह हो जाएगा: नोडलिस्ट नोड्स = (नोडलिस्ट) xPath.evaluate (अभिव्यक्ति, इनपुट स्रोत, XPathConstants.NODESET); आपको org.w3c.dom.NodeList आयात करना होगा।

object - Simple Question - Shallow Copy (VB.Net) -

OK, I'm always confused about it. Let's say I have this code. Public sub bar (CLSmap as byRef PMM) Dim foo () pMap.listOfFoo.Add (foo) end as new FooClass This will mean that items stored in 'Foo' or 'ListOfFoo' will reference the same item, right? If I want to change the property of 'Foo' - but it can not be converted to a new object - both will still be referenced and will reflect the updated values? Yes, you are accumulating a reference pointers in the object foo , So if you modify a property in one place, then it will appear in all other places where foo is referenced. If you want to make a copy of your object, you should consider it.

I'm playing around with different design patterns in Javascript. This factory has got me confused -

I am playing with different JS design patterns, and I am trying to modify some samples there. An example of an Exhaor factory was seen, in which there were many nested attempts / catching statements that were nested inside each try {...} catch (e) {try {...} hold (e) {}} I thought I was a I can do self-acting work. Although it seems that I have not got this as how it should work. Does anyone have any advice? Example: [Update] : Close the case. Try to loop in: for (var i = 0, l = instances.length; i & lt; l; i ++) {try {var obj = example [i] .getInstance (); Examples of return [i]; } Hold (e) {}}

c# - When is a shallow copy desirable (instead of a deep copy)? -

Can someone give an example of a situation where a shallow copy is required? Note that in some situations, shallow transcripts and deep copies are the same. This can happen when no sub-devotees of the object have any ownership; That is, all the sub-deities are the ones I want to see in those instances where one object is from variables which it owns, and it is still desirable to make them copy. Comment : I do not care which languages ​​are given for example I'm asking this question from the C ++ / Java / C # point, though I think That copy is a language agnostic concept. When ownership variables are invariant types, then a shallow copy is sufficient, a deep copy is possible, but only Additional memory will result in usage.

backgroundworker - Rails backgroud job processing -

I am using Starling as a queue server in my Rail application. So every time I want to call the worker method, I have to start Starling and Casing Client from the console. Is there no way when my job is started as a passenger and both start to start or priceless when I call the worker method then only my worried examples will be found . I am starting my work and starling processes using "god" gem in a call It also lets you setup CPU and memory thresholds. You can find it useful.

GWT overlay types accesing keywords -

The following code is not working because "default" is a javascript keyword. Is this an easy way to decide? I want to avoid renaming on the server side. Public Ultimate Boolean getDefault () / * - {return.default; } - * /; > Use array access instead of variable access: return this ['default'];

don't go to previous screen in android? -

In my application I have two screens, screen 1 and screen 2 if I am in screen 2, when I click on the back button Let me show the screen 1 when I click on the back button in screen 2, the application must be closed. How to do it ??? Perhaps you start screen 1 from screen 1 through an intent. When you call startActivity (Screen 2), you should turn off screen 1 via the Finnish () call. Something like this: Intention screen 2 = new intent (screen 1. this, screen 2. class); StartActivity (screen2); End();

c++ - detecting the memory page size -

क्या सी या सी ++ कोड का उपयोग करते हुए मेमोरी पेज आकार (प्रोग्राममैटिकली) का पता लगाने का एक पोर्टेबल तरीका है? चूंकि एक सुंदर पोर्टेबल लाइब्रेरी है, इसलिए आप मेमोरी पेज आकार को पुनः प्राप्त करने के लिए फ़ंक्शन का उपयोग कर सकते हैं। सी ++ मानक के लिए यह ऐसी कोई संभावना नहीं देता।

Why does iPhone eMail signature go out as an attachment? -

I am creating an iPhone application that generates an email with an attachment. The e-mail message shows the window body text and the attachment after the default of the "Sent from my iPhone" signature text. Everything looks perfectly fine, except that when the message is received by the recipient, the signature "Send from my iPhone" has been converted to text attachment instead of the rest of the body as the last line what gives? Update: It seems that this is the only Outlook that displays this behavior when I see the message in the iPad Mail, the signature body shows as text, not the attachment. How to view emails in other applications, such as Apple Mail, Eudora, Lotus Notes, Thunderbird, etc? I suspect that it does with "the security of user experience" from Outlook's reciprocal efforts, as you do if you email an XE file (the recipient will not let it open) .

c# - Alternative to "char" enum -

I have a database that needs a single status status code ('E' or 'U') to position column updates to do. I want to use an enim to update this field through my API to ensure that potential values ​​are properly restricted. Iram can not be clearly of four types, can it be a good alternative way? No more, I can not change database schema :) you enum members You can specify the characters for. This helps: enum status {empty = 'E', updated = 'U'} zero main () {status position = position. Empty; Console.light line ("{0}: {1}", position, (four) position); }

InstallAware 9 problem with Paradox DB and Delphi 2009 -

My project is on Delphi 2009, Paradox DB and Google Maps. The code is fine and at this time the project is to be built. This is the first time to do this, as I know there are two programs to create a setup file; I did my first test through InstallShield or InstallAware InstallAware but its failure and problem is DB, I can not run it after setup. How can I do DB work in the setup file? There are two parts for DB connections in my Delphi project; with the first; Query1 --- & gt; Datasaccore 1 second one; Table 1 --- & gt; Datacore 2 The root of the Delphi files is "the root of the desktop \ ttelekom \ ttelekom.exe DB files" C: \ Program Files \ General Files \ CodeGear Shared \ Data \ databasettelekom.db " How are you accessing the database? If it is using BDE, then you have to install BDE. It has a merge module which comes You can add it to your installation, by default % CommonProgramFiles% \ Borland Shared \ BDE \ - bdedeploy.txt file by ...

xml serialization - WPF Navigation Between Windows -

I have created 5 windows and all of them are tab controls, is there a better way to navigate between them or else Are the ways Now I am doing this window1 w = new Window1 (); W.Show (); This.Close (); I am serializing an application.context class in an XML file that I have created to store all the information. I will store many object collections in and every Once I navigate to the second window, I am forwarding the application content class to another window. I am quite new to the Windows Presentation Foundation and I can not believe that this is the right and / or efficient way to do this. Any tutorial, e-book is appreciated, McDonald Book really understand Chapter 3 and Chapter 4 to understand the WPF application model and window interaction model. ApplicationContact can be stored in your application class, which will know about all your windows and will display any window that you want to show. UPD There is also "WP WP Pro" in C # 2010 (the au...

php - Get date range between two dates excluding weekends -

निम्नलिखित दिनांक को देखते हुए: 6/30/2010 - 7/6/2010 और एक स्थिर वैरिएबल: $ h = 7.5 मुझे इस तरह की एक सरणी बनाने की आवश्यकता है: अर्रे ([2010-06-30] = & gt; 7.5 [2010-07-01] = & gt; 7.5 = & gt; [2010-07-02] = & gt; 7.5 = & gt; [2010-07-05] = & gt; 7.5 = & gt; [2010-07-06] = & gt; 7.5) सप्ताहांत दिन बहिष्कृत। नहीं, यह होमवर्क नहीं है ... किसी कारण से मैं सीधे सीधे नहीं सोच सकता। PHP के लिए> = 5.3.0, कक्षा का उपयोग करें। यह दुर्भाग्य से बमुश्किल दस्तावेज है। $ start = नया दिनांक समय ('6/30/2010'); $ अंत = नया दिनांक समय ('7/6/2010'); $ Oneday = नया दिनांक अंतराल ("पी 1 डी"); $ दिन = सरणी (); $ डेटा = "7.5"; / $ $ से शुरूआत $ अंत तक + 1 दिन, प्रत्येक चलना में एक दिन हम एक समाप्ति तिथि को $ समाप्ति तिथि में जोड़ते हैं, क्योंकि तिथि पीरियड केवल अंतराल की तारीख को शामिल नहीं करता है * / विदेशी मुद्रा ($ दिन- & gt; प्रारूप ("N"); $ foreach (नया दिनांक पीरियड ($ शुरू, $ दिन, $ अ...

html - Marginal CSS Attributes -

How do you control marginal CSS? By the margin, I mean a word or phrase that requires italic or bolding. It seems stupid that just with a bold class bold {font-weight: bold; } or italic, either! Italic {font-style: italic; } But I feel hesitant to put myself in my CSS reset in such a way. & lt; P & gt; & Lt; Span class = "italic" & gt; This & lt; / Span & gt; man? & Lt; Span class = "bold" & gt; Is & lt; / Span & gt; are you thinking? & Lt; / P & gt; Obviously, if you are going to combine a group of properties to look something different, then it makes sense ... .HoverOnMe {color: # 880; Text-decoration: underlined; Font style: italic; } But I classify the CSS style above as 'non-marginal'. We have been taught that such as & lt; B & gt; and & lt; I & gt; is bad because they mix structure and style, and therefore we should not use them. So what is the right way t...

Javascript update problem. ASP.net UpdatePanel -

I have some javascript which I am writing in a literal control inside UpdatePanel. I have set it to alert the current time in every 15 seconds but I always get the original time. When I use firebug, I can see that the script is updating. Is this a partial page fresh? How can I stop getting this? I've tried to stop caching to see the output cache command, to see if this was a problem, but it did not make any difference. Here the code sample is Front End: & asp: ScriptManager id = "ScriptManager1" runat = "server" & gt; & Lt; / ASP: ScriptManager & gt; & Lt; Asp: UpdatePanel id = "updateSTest" runat = "server" updatemod = "always" & gt; & Lt; ContentTemplate & gt; & Lt; Script type = "text / javascript" & gt; Function encryption () {& lt; Asp: literal id = "litUpdateScript" runat = "server" /> } & Lt; / Script & gt; & Lt; / ContentTemplat...

linq - Insert Queries Can Only Cause Concurrency Issues With Select Queries? -

It is just for my own understanding that how the issues of interaction work, I have an assembly statement that Runs as a select query at a time. If the insert statement occurs when the selection query is still running, will the selection query show a dispute because the number of rows that have been selected has changed? Or is it that interactive conflicts can only occur when the rows are edited, the insert statement is completely harmless (in the context of concurrency conflict)? Wikipedia article is very good for this: But there is always data on concurrency issues which is using the transaction from another transaction. So let's say I get the top 100 rows from the database. Someone else makes a change to 5 lines. Then I try to change line 5 based on this reading. Or an inclusion case Say I will pull all the children in a school, and to know how many names start with A. Then someone adds 10 more children starting with A. This is a concurrency issue. You get...

Java - PDFBox - Text Extraction -

I am using PDF to extract text information from PDF I've successfully parse all the properties of text such as fontname, fontface, size, position etc. Problem: I am using pdfbox1.2.1 (latest version). In the TextPosition class, getCharacter () returns the full string except the last character, the previous character is parsed as a separate string. Formerly: "How are you" are parsed as "how are" and "u" (2 separate strings). I do not want to be like that .. Has anyone come on this? ..I am doing something wrong .. waiting for the answer .. Thanks and Regards, Maggie This problem has been resolved. In the process, the following text (byte [] string in the following code) in PDFStreamEngine.java if ( SpacingText == 0 & amp; (i + codeLength) & lt; (string.length - 1)) {continue; } should be changed to (if spacing text == 0 & amp; amp; (i + codeLength) & lt; (string .length)) {continue; } Regards, Maggi ...

php - Add a new dimension to a multidimensional array without having the full path -

If my title is confusing then sorry I have categories which look like this: id, name, parent 1, cat 1, 2, cat 1_1, 1 3, cat 1_2, 1 4, cat 2, 5, cat 2_1, 4 6, cat 2_1_1, 5 I am trying to get it in a multi-dimensional array so that the tree of the tree is available in the right format for the purposes displayed. I am writing recursive function (inside orbit), which writes each class of class in a square variable. My problem is that once I go down from the second level, then I I lose the ability to refer to Class V to make children of the class. I can get the representation of the string of the array path, but there is a way that I can evaluate that to reach the correct level of the array ... For example: $ path_string = "[4] ['children'] [5] ['children']"; Is there a function that I then get $ cat_path = $ cats $ Path_string is the $ cat_path pointing to the correct level of the array. Sorry if this is all a bit confusing. Alternatively, ...

environment variables - Java classpath, class not found -

I'm trying to be able to do homework on my computer for Java classes. I think an old JDK is installed and I have created a .bat for my environment variable set up, I can do a simple "HelloWord" example, but now when I try to create a simple example where I have a file output stream I did not get the class on my file-output stream. Is this because my classpath is not set up, or because IO package can not be found? Thank you. Edit: Here is my work directory structure: C: \ dmd \ jdk1.3.1 within jdk1.3.1 - & gt; I have free bin (my files) in my bin folder, I have this. BAT file: @howo set tools_home = c: \ dmd set java_home =% TOOLS_HOME% \ jdk1.3.1 SET path =% JAVA_HOME% \ bin;% path% SET CLASSPATH =.; both - this iso package because not doing your search Could not set the classpath correctly, do you have JAVA_HOME set correctly?

.net - MS SQL -- Okay for multiple users to connect/read/write to database from a web service (c#)? -

This is probably a simple ... I have a working web service (programmed ) In C # and it provides two webmissions that either read or write data in MS SQL database. What I want to know is this ... Do I need to worry about errors when many users from the database Try to connect, read, and write? Also, when should I use threads and locks in my webmethods while using the database (right now, I'm not using threads or locks)? Here are some ideas that I'm going to (code snippet): [WebMethod (Description = "Attempting to post a new score on the scoreboard.") ] [ScriptMethod (Response format = Response format. Jason)] PublicTextSupgrade updateScoreboard (string password, string playername, integer level, int gameboard, string audio) {SqlDataReader myReader = null; SqlCommand myCommand = Null; SqlConnection myConnection = null; / * Method then attempts to connect to DB, search for a duplicate player name, and if none, the data is entered in DB ... using the INSERT com...

mysql search top match should come first -

In the match - getting the right result, there is no problem, but what I want is the combination combination " Computer Graphics "is the result of" Computer + Graphics "for me as results of" Computer "and getting" Computer Graphics "results and" Graphics "results and etc. > Here I want the first "computer graphics" result, then the second single word match result. How can I bring them before please help me any one You must order according to relevance : Search for the same query where you use in WHERE, the call is issued from that area and then the order by that area. Against the SELECT MATCH ('...') table ('...') as a relevance to the table WHERE MATCH ('...') ...) in the 'Boolean mode' relevance Order by DESC

vba - Access Application Changes not Working -

I have an access app that displays data from our database and performs some actions on that data. My problem is that I have not created this app, and when I try to add a command button in a form, those buttons do not appear when I see them. Any idea what this could be? In short: I add a button with VBA behind it, it works, but when I copy the app from another computer and run it, all my changes are not visible. Any suggestion would be appreciated. I had an issue where I was using a small cut to launch an access application . However, when I changed MDB, I removed the original MDB. It only put it in the trash, the shortcut was automatically updated to indicate the file in the trash. It worked like this for weeks until I found it (under similar circumstances). Try to empty your trash and / or double check the shortcut.

How to manage memory on iPhone when handling many images -

I have a unique problem in the project that I am working on. What I'm doing is the "wall" of scrolling images that are downloaded from the server that our users can flick on the iPhone but the problem is that we are having trouble with a good memory management plan here. The one we are currently running is a class that subclasses UIImageView, which is being used to store every image we download from the server (these images are of the app Documents are saved in the directory), and then we also add it to meta data (i.e. details, tags, etc.). We are then storing it in an NSMutableArray, after which we loop through all the pictures to move them into our wall. As you imagine, all of these images have a heavy memory hog in memory without this memory we are having a hard time trying to do this one of the biggest difficulties is that it Need to report the images being made that are made more difficult when being touched. So I do not think we can delegate them by putting ...

events - In flex, how to pass data to handling function? -

In Flex, I'm handling this kind of incident, myImage.addEventListener (MouseEvent. CLICK, redoOperation); Now, I want to have some properties near the radiococcus. (Function redo operation (IID: string)) How do I cross that string? I pass an anonymous function and parameter like this in this way. It is similar to how you can do this in javascript. myImage.addEventListener (MouseEvent.CLICK, function (e: event): zero {redoOperation (myId);});

sql - query related to in clause -

मेरे पास दो टेबल हैं: तालिका 1 फ़िड फ़ील्ड क्वेरी तालिका 2 फ़िड फ़ील्ड नाम फ़िड और क्षेत्र दोनों तालिकाओं में समान है मुझे एक क्वेरी की तरह तालिका 1 से फ़ीड चुनें जहां फ़ील्ड में तालिका 1 में नाम = dell से संबंधित होना चाहिए और क्वेरीगर = 1 नहीं होना चाहिए आपका प्रश्न स्पष्ट रूप से वर्णित नहीं है, लेकिन अगर मैं इसे पढ़ रहा हूं, तो आप जो दिखाना चाहते हैं वह तालिका 1 से फ़िड है, जहां Table2 = dell में "name" फ़ील्ड, और तालिका 1 से "queryorder" फ़ील्ड "1" के बराबर नहीं है। SELECT table1.fid से तालिका 1 INNER तालिका 2 में शामिल करें table1.fid = Table2.fid और table1.field = table2.field WHERE table2.name = 'dell' और table1.queryorder & lt; & gt; 1 सलाह का छोटा टुकड़ा: आपको एक क्षेत्र "नाम" नाम नहीं देना चाहिए - यह एक खोजशब्द है, और आपको सड़क के नीचे सिरदर्द होने का कारण होगा।

c# - How to change RadDockableObject position (index) on page load? -

कैसे पृष्ठ लोड पर RadDockableObject स्थिति (इंडेक्स) को बदलने के लिए? मुझे अभी तक राडडॉक ऑब्जेक्ट का उपयोग नहीं करना पड़ा है, इसलिए मैं आपको एक ठोस कोड उदाहरण नहीं दे सकता, हालांकि कुछ मिनटों के लिए निम्नलिखित लिंक स्कैन करने के बाद सलाह देते हैं कि आप उन्हें एक विज़िट देते हैं: उस दूसरी यूआरएल पर बायीं तरफ कुछ लिंक पर जाएं क्योंकि आपको इनमें से कुछ भी उपयोगी पा सकते हैं।

reporting services - Difference between versions of Report Viewer Control -

There are several versions of Report Viewer Redistribution if I'm reading the right things, the versions do not conform to versioning services. is this correct? Are they analogous to a version of the .net framework? Do any links to compare to any version (8, 9, and 10)? I have tried to search for information, but the answer can not be the only one. Thanks in advance. In fact, they do not match. Schema, you find Reporter Viewer 2010 is version 3 and uses RDL specification 2008. Its version is used in VS 2010 The viewer uses the report version 2 of 2008 and the RDL specification 2005. This version has been used in VS 2008 Posting with Brian Hartmann takes you in the right direction regarding new features, but if you want to know more about the report viewer. If you want to work with the 2010-edition, then you may be interested in the post:

operators - Why is it a bad idea to allow these in JavaScript == , != , ++ , -- -

I was checking out, and some rules rejected my interest. Especially this: reject == more! = Reject ++ and - Why is it a bad idea to not allow these? I understand the first part, basically it wants me to do == instead of == . I do not understand why why though. I think the difference between the two, I want to know why this is bad behavior. Sometimes I really want to do this like == so that it evaluates the correct for undefined == zero I do not understand exactly what I want + 1 = Douglas Crockford (The man who wrote JSLI) tells himself in this video: But basically (as everyone has mentioned) reason. Who is watching the video honestly - very interesting and useful.

java - Using an empty file to have one application instance -

Perhaps there are other ways to do this, but I would like to use an empty file so that one application can run at a frequency This time the file will be created by creating a file when the application is launched and as soon as the other application instances it detects the file. The problem with this approach is that if the file stops unexpectedly "post-text" as itemprop = "text",> one Tie with a high number port but do not listen, two programs can not bind with the same TCP port on the same machine. There is a lot of cross-platform, but to some extent, cools.

Java Applet Viewer - Disable Security Manager -

I am using an applet and I just do not want to sign it, so how can I disable security manager Am apple apple viewer? In this way I can work fast :) Appletviewer -J "-Djava.security.policy = all.policy" type file .html to

Running Zend Framework on PHP 5.1.6 - patch or fix for ksort()? -

I using 1.10 for deployment Araciel server in a corporate client made a ZF app with PHP 5.1. 6 is It will not work. I went to Gogal and now it is a realization that this is the version of PHP. I did not realize that was the minimum requirement for PHP 5.2.4 of Jepif, and serious error "Call Aprfeild method to call Hedlank seems due Zend_View_Helper_Placeholder_Container :: ksort ()": PHP fatal error: Call line at 321 / library / Zend / View / Helper / mandatory method Zend_View_Helper_Placeholder_Container :: ksort (in Hedlink.afpeepi) to client upgrade your PHP Will; I do not want to re-write the app without the ZF, and I did not want to downgrade the ZF to the first version. Is there some patch that I can use JSF 1.10 to add KSORT around this? There can be other problems, but this is where I got stuck. In Any advice welcome Thank you Ian Edit: As I said in the went comments below , I hope many people will be affected before and continue to do this, bec...

Chrome extension: Attaching current tab to popup and then going through its DOM -

I am in the process of creating a Google Chrome extension, and faced a problem. I am trying to upload and search through the DOM inside html popup html. Here's how I get the current tab (I got a script more elsewhere, I do not have the credit): chrome.windows.getCurrent (function (W) {chrome.tabs.get selected (w.id, function (response) {}}; My problem is this: I need to cross the response via the DOM So when I was trying to do it manually, I could not because the response variable is now unspecified for some reason So the use of the console is not an option. Response to the HTML file, it came in the form of an object. Then, I tried to navigate through the feedback as if it is a 'document' object, but no luck No. Any help would be appreciated by many. You can get selected tabs for the page in the form of window id to select Opup by moving redundant. () In your popup you can listen for expansion events and execute a script to push content into your popup:...

clojure - 'leiningen' related commands too slow with Mac OS X -

I have installed and run, but it seems slow on my Mac (10.6.4). Running 'Time Lean Assistance' Gives Me Real 11m8.674 User Users 0m54.297s sys 1m32.621s I tried again What's wrong with that? Is anyone facing such a problem? Is there a problem, what is it to check? Added When I establish, I used 'Sodo Lean Depp' because I have found some errors while using 'Lean Depp'. I think this is due to access to some problem files. When I run ' Pseudo Lean SOISSING', it works like usual. That's because it looks for the hook: It has been explained. You can try that it works out of the box for my simple project. The CCC is fast growing due to no change, and which constantly uses GVM.

Moving cvs repository to a new machine -

A CVS repository on our machine 'A' is a copy of a specific directory of machine with all history from 'A' Want to The problem is that I can access CVS on machine 'A' only by using Eclipse (does not have access to UNIX). Is it possible to use Eclipse? In fact, you can probably do an automated checkout script from A and cvs log Based on the output, you can commit b, but you will still lose the date and the author's information and restore the tag and the branches will probably be difficult too. You should find someone with file-level access to two repositories better, because in that case it is a simple copy operation. No additional work is necessary.

Python string split -

What would be the best way to split it into Python (address, city, state, zip) & lt; Div class = "adtxt" & gt; 7616 W. Belmont Avenue & lt; Br / & gt; Chicago, IL 60634-3225 & lt; / Div & gt; In some cases there is a zip code & lt; Div class = "adtxt" & gt; 7616 W Belmont Avenue & lt; Br / & gt; Chicago, IL 60634 & lt; / Div & gt; You do not want to depend on those aspects which are hard or loose An example can be estimated from one example, some of the following should work ...: import re s = re.compile (r '^ & lt; div. *? & Gt; ([^ & lt;] +) & lt; br. *? & Gt; ([^,] +), (\ w \ w) (\ d {5} - \ d {4}) Lt; / div & gt; $ ') mo = s .match (thestring) If there is no one: increase the value ('% r '% no match for thestring) address, city, state, zip = mo.groups ()

How to build a Ruby hash out of two equally-sized arrays? -

मेरे पास दो सरणियाँ हैं a = [: foo,: bar,: baz, : Bof] और b = ["हैलो", "विश्व", 1, 2] मुझे चाहिए {: foo = & gt; "हैलो",: बार = & gt; "विश्व",: बाज़ = & gt; 1,: बॉफ़ = & gt; 2} ऐसा करने का कोई भी तरीका? एच = हैश [a.zip b] # = & gt; {: Baz = & gt; 1,: bof = & gt; 2,: bar = & gt; "world",: foo = & gt; "हैलो"} ... लानत, I प्यार रूबी।

javascript - .slideToggle auto scroll down to reveal content -

I am using .slideToggle to open a link when the user clicks on a link: & lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("BTN-Slide"). Click (function () {$ ("# panel") Slide Toggle ("Slow"); $ (this) .toggleClass (" Active "); return false;});}); & Lt; / Script & gt; Toggle is taller than the height of the divisor with the content of the divas (# panels) so that the scolberbers are visible. I want to scroll vertically to reveal the new vertical scroll when the vertical scrollbar is toggled when I think that I can do this with .scrollTop to do this, but I'm not sure the same How to know about doing this in time ... any thoughts? EDIT: There is a consensus that this is the best way to achieve what I have described: This panel slides but the scroll down effect is not working. I have done something like this before: $ (" .btn-slide "). Click (function ...

Simple versioning (in PHP/Zend Framework)? -

I think how can I make simple versions, say that I want to be able to get back past edits (To do just 3) may be to post one because the app allows another user to edit a post but I want to restore the position to the owner, for example. Do I just store the full post in another area? I have done this before by creating a table that has the following columns: id, serialization value, which you back up Back up is made, that table, back up has been made. In this way you have a complete list of all the versions of that table. I use the principle ORM so that I can set up a post-accepted hook to create a new backup version in that table.

How can I make a Zend Decorator to allow a default value? -

मुझे एक मूल चाहिए: & lt; input type = "text" / & gt; और जब उपयोगकर्ता एक मान () में डालता है तो मुझे साफ़ करने के लिए डिफ़ॉल्ट मान चाहिए यह आदर्श होगा यदि ब्लूअर पर दिए गए डिफ़ॉल्ट मान। मैं नहीं चाहते हैं कि वे जमा होने पर डिफ़ॉल्ट मान जमा करें और सबमिट करें क्लिक करें। मैं ज़ेंड का इस्तेमाल करते हुए फार्म का निर्माण कर रहा हूं, और सोच रहा हूं कि मेरा समाधान पूरी तरह से एक जेड फॉर्म डेकोरेटर में फिट हो सकता है। मुझे कोई मौजूदा नहीं मिल रहा है, इसलिए मैं पूछता हूं: क्या आपने डेकोरेटर कहा है? या कुछ ऐसा जो मुझे एक बनाने में मदद करेगा? बस इसी jQuery प्लगिन का उपयोग करें:

reinterpret cast - C++ reinterpret_cast -

I do not know why this simple code is not working Can someone explain me? int main () {const char * c = "ret"; Unsigned four GOK_UINT8; Type Kifa GOK_UINT8 * pGOK_UINT8; Const pGOK_UINT8 y = reinterpret_cast & lt; Const GOK_UINT8 * & gt; (C); Return 0; } Can anyone tell me why the Reentrip_cast should not work? Thank you, Gokul. Can anyone tell me why reinterpret_cast should not work? AFAICS, reinterpret_cast should work fine, but the assignment should cause an error. This is because const GOK_UINT8 * a non- const indicator const GOK_UINT8 objects , While a const pGOK_UINT8 is a const indicator for non- const objects. Protects the specified object in the past, indicating the latter item, if the assignment is allowed, then you can change the object to avoid changing the const GOK_UINT8 * Is for Note that typedef ad points behave oddly. C ++: A const saves its left side, unless it is, unless the strange announcement of c...

java - Dyanamic Graphs using jsf -

I need to populate a dynamic graph in a JSP page. I am using JSF for my project. I am planning to use "jfreecharts", but do not know the way to bind my jsp page with the back bean. I have some drop doses on the basis of selection. I am bringing data from my backbay db. Can you please recommend me some process with some sample code for my reference? You can use (Extend) Library. They have charts, as well as support for wrapping SWF elements and sending properties in JSF. See an example. For each component, there is also a source code, so you can try it yourself.

php - How to integrate custom css to fckeditor? -

Can anyone say How to integrate the custom editor into a custom CSS file The files which need to be edited and By default fckeditor editor / CSS / fck_editorarea.css You can set your init: FCKConfig.EditorAreaCSS = '/youstylesheet.css'; You can also use an XML file to define some properties in your elements, see:

java - Please recommend what navigation strategy to use for Spring MVC 3.0 -

I am launching a Spring MVC 3.0 application and starting to work well with controllers and ideas, one The thing that I now have to do is navigation is working so I have to know for each scene, to see what item is highlighted in the "menu" section and what menu options available for that view Are there. One thing I had thought was to tell the controller to tell where it is, but it is compulsive visual logic in the controller. My thoughts are in the menu itself, in which I am involved in every scene. What are your views? I am thinking of using tiles, at this point I am only using JSP and JSTL, maybe it will help? I recommend you use tiles as a visual manager, and such One viewer interpreter: & lt; Bean id = "viewNameTranslator" class = "org.springframework.web.servlet .view.DefaultRequestToViewNameTranslator" & gt; & Lt; Property name = "Separator" value = "." / & Gt; & Lt; / Bean & gt; So in thi...

logging - Why can't I trace just errors on the service side of my WCF? -

I have a WCF service that sometimes generates errors such as "Inner Exception Message" the maximum number of items Can be serialized or '' 65536 '' in the object graph, I know how to fix this particular problem, but now I want to create a trace which only errors (and serious errors) in the log Saves you. The problem is that my log either saves everything (including successful calls) or nothing, so my question is, what is wrong with my web.config? & lt; system.diagnostics & gt; & lt; trace autoflush = "true" /> & lt; sources & gt; & lt; source name = "System.ServiceModel" propaganda spread = "true" switchwall = "Error" & gt; Listener & gt; & lt; Add Name = "xml" & gt; & lt; / add & gt; & lt; / listeners & gt; & lt; / source & gt; Lt; / sources & gt; & lt; sharedListeners & gt; & lt; initializeData = "C: \ mylog.svclo...

templates - Mask / Zero out area outside specified ROI -

I am working on a project using OpenCV on template matching, and I limit the search area on an image Want to The image is captured continuously with the camera. Is there a way to zero / mask the image out of defined ROI, so that the template matching process can be fast and accurate for the remaining area? Take a look at the function. zero cvSetImageROI (IplImage * image), CvRect rect) Determines an Image Area (ROI) for a given rectangle The parameter: Image - An indicator in the image header Rect - ROI rectangle If the original image ROI was zero and the rect Not a complete image, the ROI structure is allocated. Most OpenCV functions support the use of ROI and consider the image rectangle as a separate image. For example, all pixel coordinates are calculated from the top-left (or lower-left) corners of the ROI, not the original image. Some good examples of using the are ROI featrue

python - mplot3d in wxPython frame -

I am writing an application in wxPython. The button "plot" shows wxFrame with 3D surface, but I can not rotate the surface Is it possible that a 3D platform be placed in deflection? How can I example:? Import matplotlib matplotlib.use ('WXAgg') from matplotlib.backends.backend_wx as FigureCanvas form matplotlib.backends.backend_wxagg Import ImageCanvasWxAgg Import from NavigationToolbar2Wx as plt class CanvasFrame (wx.Frame) mpl_toolkits .mplot3d import axes3d imports from matplotlib.pyplot wx: def __init __ (self): wx.Frame .__ init __ (self, none, -1, 'CanvasFrame', size = (550,350)) self.SetBackgroundColour (wx .NamedColor ( "white")) self.figure = plt.figure () self.axes = axes3d.Axes3D (self.figure) X, Y, Z = axes3d.get_test_data (0.05) Self .axes.plot_surface (x, y , Z, rstride = 8, cstride = 8, alpha = 0.3) CSET = self.axes.contour (X, Y, Z, zdir = 'z', offset = -100) CSET = Self.axes.contour (A C, y, z, zdir = 'x', offse...

mysql - System for tracking changes in whois records -

The best storage mechanism for a system (system to use to store the database and all records) Is Whois designed to track record changes? The program will be run once a day and a track should be kept, which was the previous value and what is the new value. Tip data on ideas about how to store databases and different records / fields is not unnecessary / duplicate (Added) To store data My thoughts on the system Example One person showed "sample.com" to a person from a person's list on 1/2/2010 Table_DomainNames DomainId | DomainName 1 example.com 2 sample.com TableContactTrack Domain ID Date time Registrar id | Registrar ID | (Others) 2 1/1/2009 1 1 2 1/1/2010 2 2 Table_ Registrar Registrar ID | RegistrarName 1 GoDaddy 2 1 and 1 Table_ Registrar Registrar ID | Registrant name 1 person 2 person b All tables are "app-ups only". Does this model understand? Table_ChangeTrack should be "added only" when there is a change in the observed areas...