Posts

Showing posts from September, 2015

php - Set variables in a class -

मैं ऐसा कुछ करना चाहता हूं: & lt;? Php $ editor = new editor ('Reply.php? विषय = 100', 'सरल'); एलो $ संपादक; ? & Gt; लेकिन आईओपी / क्लासेस के साथ आईएम नहीं है, लेकिन मैं कक्षा में इस तरह कुछ करना चाहता हूं: & lt;? Php वर्ग संपादक ($ url , $ प्रकार) {if ($ type == 'simple') {? & Gt; & Lt; फ़ॉर्म क्रिया = "& lt;? Php echo $ url;? & Gt;" & gt; ... & lt; / form & gt; & Lt;? Php} और {...}}? & Gt; बिल्कुल, यह सही नहीं है। लेकिन मैं इसे कैसे कर सकता हूं? क्योंकि मुझे कंस्ट्रक्टर और डिस्ट्रक्टर्स आदि के बारे में कुछ भी समझ नहीं है ... $ editor = नया संपादक ('reply.php? विषय = 100', 'सरल'); एलो $ संपादक; कक्षा संपादक {निजी $ url; निजी $ प्रकार; सार्वजनिक फ़ंक्शन __ रचना ($ url, $ प्रकार) {$ this- & gt; url = $ url; $ This- & gt; प्रकार = $ प्रकार; } सार्वजनिक समारोह __toString () {यदि ($ this- & gt; प्रकार == 'सरल') {वापसी '& lt; form action = "...

c++ - Issue with Default Arguments -

स्टैन्ली बी। लिपमान द्वारा बुक सी ++ प्राइमर में , * जोस ए एलोज़ी क्लास कन्स्ट्रक्टर्स के अध्याय 14.2 में यह कहा गया है: क्या हम एक प्रारंभिक संतुलन को निर्दिष्ट करने के लिए समर्थन भी प्रदान करना चाहिए लेकिन कोई ग्राहक नाम नहीं? जैसे ही होता है, वर्ग विनिर्देश यह स्पष्ट रूप से अस्वीकार करता है। डिफ़ॉल्ट द्वितीय तर्क के साथ हमारा दो पैरामीटर कन्स्ट्रक्टर क्लास खाते के डेटा सदस्यों के लिए शुरुआती मान स्वीकार करने के लिए एक पूर्ण इंटरफ़ेस प्रदान करता है जो उपयोगकर्ता द्वारा सेट किया जा सकता है: वर्ग खाता { सार्वजनिक: // डिफ़ॉल्ट कन्स्ट्रक्टर ... खाता (); // पैरामीटर नाम घोषणा में आवश्यक नहीं हैं खाता (const char *, double = 0.0); Const char * नाम () {वापस _name; } // यह किस लिए है?? // ... निजी: // ...}; निम्नलिखित दोनों कानूनी खाता वर्ग ऑब्जेक्ट परिभाषाएं हमारे निर्माता के लिए एक या दो तर्क पारित कर रही हैं: int main () {/ / ठीक: दोनों दो पैरामीटर कंस्ट्रक्टर अकाउंट एक्ट ("एतान स्टर्न") को आमंत्रित करते हैं; जब यह एकल तर्क के साथ घोषित नहीं किया गया है,...

android - How can I execute default sms app? -

I registered my receiver for receiving SMS when I receive the SMS, how do I execute the phone's default SMS app Can i do Can I send the intention to start the default SMS app? This can be done in a few different ways. Here's one: Send intentions = new intent (int. Action_viez); SendIntent.putExtra ("sms_body", "The content of the SMS goes here ..."); SendIntent.setType ("vnd.android-directory / MMS-SMS"); StartActivity (sendIntent);

apache - SetEnv APPLICATION_ENV development - .htaccess interacting with Zend Framework? -

मेरे पास मेरे htaccess पर निम्न है। SetEnv APPLICATION_ENV विकास जब मैं इस फाइल को प्रोड्यूशन से पास करता हूँ, तो मैं इसे इसमें बदलूंगा: SetEnv APPLICATION_ENV उत्पादन यह विकास और उत्पादन ज़ेंड फ्रेमवर्क आवेदन पर सेट हैं आईआई सही है? कैसे ज़ेंड और अपाचे यहां संवाद करते हैं? कैसे ज़ेंड को उस एचटीएसीएसीईएस निर्देश के बारे में पता है? धन्यवाद। SetEnv , अपाचे के कॉन्फ़िगरेशन (यह एक .htaccess फ़ाइल या वर्चुअलहोस्ट है) में प्रयोग किया जाता है, एक वातावरण चर को परिभाषित करता है। PHP से, आप पर्यावरण चर को पढ़ सकता है: फ़ंक्शन का उपयोग कर। या सुपर-ग्लोबल चर में दिए गए index.php पर एक नज़र डालने के बाद, आप देखेंगे कि यह उस परिवेश चर का उपयोग करता है जो कि PHP निरंतर APPLICATION_ENV को परिभाषित करता है: // परिभाषित एप्लिकेशन वातावरण परिभाषित ('APPLICATION_ENV') || परिभाषित करें ('APPLICATION_ENV', (getenv ('APPLICATION_ENV')? Getenv ('APPLICATION_ENV'): 'उत्पादन')); और उस स्थिरता को बाद में ए...

jquery .css('text-decoration') doesn't work from parents -

I have to get the essential CSS property of the element (the property can be inherited from her parents) Standart Jquery .css () can do this. I have such an HTML: & Lt; Span id = "something" & gt; Our element & lt; / Span & gt; & Lt; Br> Some text & lt; / Div & gt; & Lt; Div id = "result" & gt; & Lt; / Div & gt; CSS: #some {font-weight: bold; } # Containers {text-decoration: underline; Color: RGB (0,255,0); Font-size: 32px; } and jQuery code: $ (function () {var decor = $ ("#some") .css ('text-decoration' ) Weight Weight = $ ("#Additional"). CSS ('font-weight'); var color = $ ("#some"). CSS ('color'); var size = $ ("#some") Css ('font-size'); var result = " Our object's own property: Font-weight: "+ weight +" & gt; hereditary property: & lt; / b & gt; & lt; br & gt; ; & Lt; br ...

Loading 32 or 64 bit JNI Library in Java -

संभव डुप्लिकेट: मेरे जावा अनुप्रयोग में मुझे एक जेएनआई पुस्तकालय की आवश्यकता है जो 32 बिट और 64 बिट के लिए उपलब्ध है। मैं अपने आवेदन के दो अलग-अलग संस्करणों को नहीं भेजना चाहता हूं इसलिए मैं दोनों लाइब्रेरीज़ के साथ आवेदन पत्र भेजना चाहता हूं और एप्लिकेशन को यह निर्धारित करना होगा कि कौन सा पुस्तकालय लोड करना है (foobar32.so या foobar64.so) मैं ऐसा कैसे करूँ? मैंने पहले एक को लोड करने की कोशिश करने के बारे में सोचा और अगर यह एक अपवाद फेंकता है तो मैं दूसरे को लोड करता हूं लेकिन यह बदसूरत लग रहा है। क्या कोई सिस्टम है संपत्ति मैं यह निर्धारित करने के बजाय की जांच कर सकता हूं कि क्या 32 बिट जावा या एक 64 बिट जावा का उपयोग मेरे आवेदन को चलाने के लिए किया जाता है? मुझे पता है कि कुछ os.arch संपत्ति होती है लेकिन रिटर्न वैल्यू के अनुसार बहुत अप्रत्याशित लगता है। तो आवेदन को तय करने का सबसे अच्छा तरीका क्या है 32 या 64 बिट जेएनआई पुस्तकालय? क्यों अप्रत्याशित? आप चाहते हैं कि यह केवल 32 बिट सिस्टम है, और इस मामले में यह हमेशा एक्स 86 (निश्चित रूप से x86 प्रोसेसर के लिए...

java - What characters are available on Android? -

I would like to display some special Unicode characters in my Android app. These characters are not listed on droidfonts.com, but they are displayed correctly on the emulator and on my phone, but want to ensure that all Android platforms will support them. Is this a document somewhere? Thanks! Edit I'm looking like a method. Android support Unicode is completely, but to display your character, Unicode font needs I Droid Sans font , from the Android Framework, Unicode characters. But if you are going to use the Unicode 6.0 new glyph (like a new Indian version), then you have to use the font supporting it. This article can help you:. In addition to this you can see it for more information:

regex - How to tell egrep which characters not to accept -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैं स्ट्रिंग स्वीकार करना चाहता हूं अगले अक्षर (जो कुछ भी है) की तुलना में एस के साथ शुरू होता है दो बार स्क्रिप्ट में दो बार (लेकिन कम, अधिक नहीं) निर्धारित किया जाना चाहिए और इससे पहले कि यह एक बैकस्लैश नहीं हो सकता है इसलिए: s (।) [अब (कुछ। वगैरह) और नहीं समाप्त होने वाले \] [1] कुछ अक्षर लेकिन नहीं (।) और समाप्त नहीं होने वाले \] [1] वर्ण (लेकिन) (।)] \ 1 और (।) और एस regex का असली हिस्सा मुझे नहीं लगता कि egrep इसे कटौती करने जा रहा है। आपको एक grep की आवश्यकता है जो कि आप के सामने का दावा कर सकते हैं, यहां क्यों है: / ^ S (।) (?: (?: \\। | (?! \ 1)।) + 1) {2} (?: \\। | (?! \ 1)।) + $ / Xs / ^ # स्ट्रिंग एस का आरंभ करें (।) # 'के बाद पहली बार कैप्चर करें' (?: # आरंभ करेंग्राफ (?: \\। # शुरूआती पीआरपी, बच निकलती है | ( # 1)। # या, कोई भी ऐसा नहीं है जो (।)) + # End grp, यह एक से अधिक बार करें \ 1 # द्वारा अनुकरण (।)) {2} # एंड ग्रिप, यह बिल्कुल दो बार करें (? : \\। # शुरू grp, (कुछ भी नहीं बचा) | (?...

android - adb crashes when eclipse is started and my device is connected -

Hello, I connected my device (already contained), run "ADB device" and I can see it. Then I start eclipse - I get "adb.exe stopped working" (and every 10 seconds). The device runs 2.3 (Run HD) - Core V4.7. If I turn into a 2.2-based ROM-cyanogen - does this work just have a bug with Core 4.7 ROMs? Or am I forgetting something? I find the easiest solution to this problem problem. Just using Hboot to install the original driver for Android. Before you are processing, you have to restore the HTC Syn. You must follow these steps in the correct order.

.net - JSON serialization WP7 -

Hi, How can I serialize an image using JSON and give it to WCF Can I send? Thanks Look at the project. Edit I can not see the image share until posting. You probably want to convert the image as you would like it to store in XML.

Haskell: Converting between ByteStrings and different text encodings -

I want to translate between strings and bytestrings using different encodings. I know the Utf8-string package which handles UTF 8 encoding However, many other encodings are described in it I also see the package which can translate between strings, text and biostrasting using different encodings. What is the most appropriate way to use different encoding between string and byte string? Simple method: Binding through the icon: Through ICU binding:

php - getting data from two tables for the same user? -

मेरे पास दो टेबल प्रश्न और उत्तर हैं। - questions {id, user_id, question मैं उन सवालों और उत्तरों को पुनः प्राप्त करना चाहता हूं जो एक ही उपयोगकर्ता द्वारा इनपुट किए गए हैं I यानी सभी प्रश्नों का चयन करें और आईडी = 39 के लिए सभी प्रश्नों की तारीख डीईएससी और इसके बाद भी मेरे पास एक क्वेरी है, और मैं फ़ेच सरणी के माध्यम से चाहती हूं, और डेटा प्रदर्शित करने के लिए, मैं यह कैसे भेद कर सकता हूं कि यह कोई प्रश्न या उत्तर था, इसलिए मैं उन्हें सही ढंग से प्रदर्शित कर सकता हूं। संपादित करें: SELECT 'Q' AS प्रकार, Q.question एएस वैल्यू, q.date से प्रश्न q WHERE q.user_id = 39 यूनिअस सब का चयन 'ए' के ​​रूप में, q.question AS मान, उत्तर से a.date, प्रश्न q WHERE a.q_id = q.id और जहां a.user_id = 39 आदेश `` डीएएससी द्वारा किया गया है, लेकिन मैं जवाब देने की कोशिश कर रहा हूँ, लेकिन जवाब देने की कोशिश कर रहा हूँ, मैं एसक्यूएल और डेटाबेस डिजाइन को शीर्ष पर अद्यतन करता हूं, लेकिन मैं एक त्रुटि प्राप्त करता हूं उपयोग: SELECT 'Q' एएस प्रकार, q.quest...

functional programming - Haskell add value to tree -

I am trying to create a fun seat that lets me add a new value to a tree if the given path The value is equal to ND (no data), this was my first attempt. It checks the price etc. But the problem, do I want to print the revised tree with new data? Can anyone give me some signs? I have also tried to create a second function that checks the path to see if the data is OK to add, but how to print the modified tree is lost now? As iuliux points out, your problem is that you are treating your BT ree as if it were An unstable structure takes the argument to remember the function in Heschel and returns a value. So when you "mapped" a list, or crossed a tree, then your function needs to be returned to a new tree. The code you have is exceeding the recurring tree and only the last leaf . Imagine that the leaf always be ND at the end of the path. This is what you want: add :: a - & gt; Path - & gt; Btree a - & gt; Btree a add da xs ND = Data da add _ [] _ ​​...

asp.net - Where should I put the crossdomain policy file in Visual Studio (CASSINI webserver)? -

Hello my website is defined as one of my StallLite apps in Visual Studio on the same solution in a cross domain policy file Where should be placed so that I can test inside Visual Studio Cassini Webster (and IIS): Public Menpage () {InitializeComponent (); WebserviceHello.HelloSoapClientHello = New WebserviceHello.HelloSoapClient (); Hello = envoyel = new event holler & lt; WebserviceHello.getHello Full EventArgs & gt; (Hello Completed); Hello.getHelloAsync (); } Public Zero Halo Compiled (Object Sender, WebserviceHello.getHelloCompletedEventArgs e) {Message Box.Show ("Success"); } I recommend that you want to test with IIS Express instead of Cassini. Cassini has been deprecated in favor of IIS Express. IIS Express is available if you have installed Visual Studio 2010 SP1.

java - How to throw exception for statment? -

Hello! I want to throw exceptions for the line. barcode no = long.partial long (jTextField1.getText ()) I did it in a way / P> not barcode = long.parseong (jTextField1.getText ()) New numberFormat exceptions throw ("Enter numbers only"); But in this manner the compiler error says ";" "> If the text is not in the correct format then message , then you have to catch the exception and throw a new one: Try {barcode = long.parsling (jTextField1 gettext ());} hold (NumberFormatException e) {new number FormatAccertation ("Enter numbers only");} I Do not suggest that you send a user-view message Trying to use the exception message as sh - though they are more appropriate for logging from appearing to the end user.

Unknown Java Result Message -

I was running a code to retrieve XML documents from the web as well as to remove some alerts Was parsing. I was doing it for about 5000 documents. After a certain point the code hanging process was not completed. So I stopped it and got the following message `Java result: 2147483647` What does this mean? Thanks This is the exit code from the (JVM) process, especially when you hit it You will get it

building dynamically created Clickable Divs JQuery Ajax -

The XML file is generated from a DB resultet. It is all working properly. The AJAX call is removed with a button click, but I want to change it. I have another div that is populated with a list of titles. What do I want to do when a title is clicked, then the main content divi is updated with data related to that title should be done. I was wondering what would be the best way to do this. Should I create a clickable device that calls AJAX? And if so, how can I differentiate which div main content is clicked in the code of the code I hope this makes sense ... here is my code for the population list $ (document) .ready (function () {$ ("# getData"). Click (function () {var $ title = ""; $ .get ("phpAjaxMovieListingTotal.php ", Function (XML) {$ ('line', XML) .each (function (i) {$ title = $ (this) search (" title "). Text ();}); $ (" # movieliving content Div "). Html ($ Title);});});}); OK, for a...

Integrate flash games in android app? -

3 is a flash game that I want to integrate into a menu / list in the Android app. So when the user selects the game from the list, the game starts with the help of the Android Flash Player. Is it better or better with webwave? Is there any good tutorial? Thank you! Adobe Flash provides a good way: you can create a breeze for the Android app. Use this to create your menu and compile three games in your air app. Here are some tutorial links about how to publish AiI for Android applications and: PART1: AIR for Android, PART2: Publication for Android apps: Ai: I do not believe that the Android Flash Player can be launched with a single intention so far, so using Java Android will not solve it (now ) And and a third approach Whatever you mentioned, it should work - using the webwave.

compiler construction - How are compilation and ABI related? -

संकलन और एबीआई कैसे संबंधित हैं? क्या एक कंपाइलर का केवल अनुप्रयोग बाइनरी इंटरफ़ेस (एबीआई) बनाने का काम है ) ओएस और / या अन्य अनुप्रयोगों के लिए? एबीआई के बारे में, उद्धृत: एबीआई कवर विवरण जैसे डेटा प्रकार, आकार, और संरेखण; कॉलिंग सम्मेलन, जो नियंत्रण करता है कि कैसे फ़ंक्शन 'तर्क पारित किए जाते हैं और वापस प्राप्त किए गए मान; सिस्टम कॉल नंबर और कैसे एक अनुप्रयोग ऑपरेटिंग सिस्टम को सिस्टम कॉल करना चाहिए; और एक पूर्ण ऑपरेटिंग सिस्टम एबीआई, ऑब्जेक्ट फाइलों, प्रोग्राम लाइब्रेरीज़ और इसी तरह के बाइनरी प्रारूप के मामले में। धन्यवाद और संबंध! एक ABI अंतर्निहित ओएस की सुविधाओं का वर्णन करता है, और इसमें कुछ नियम शामिल हैं कि एक प्रोग्राम कैसे संकलित किया जाना चाहिए। एबीआई को "बिल्ड" न करने के लिए कंपाइलर की नौकरी है, लेकिन एबीआई को अनुरूप के रूप में यह निष्पादन योग्य कोड बनाता है

binding - What does "a module statically or dynamically binds to the shared library" mean? -

से उद्धरित 3. कॉलिंग मॉड्यूल तब या तो स्थिर या गतिशील रूप से साझा लाइब्रेरी। 4. एक बार जब आपका कॉलिंग लाइब्रेरी शेयर्ड लाइब्रेरी से जुड़ी हो तो वह इसे निर्दिष्ट कर सकता है कि वह किसी विशेष एंट्री प्वाइंट से बाइंड करना चाहता है। यह आम तौर पर नाम से किया जाता है, हालांकि अधिकांश प्लेटफ़ॉर्म इंडेक्स द्वारा बाध्य करने का विकल्प भी प्रदान करते हैं (तेज़, अधिक भंगुर, यदि आपका मॉड्यूल परिवर्तन और प्रविष्टि बिंदु पुनः क्रमबद्ध हैं)। 5.आप भी आम तौर पर फ़ंक्शन जो आप अपने मॉड्यूल में कहीं कॉल करना चाहते हैं ताकि आपकी भाषा स्थिर प्रकार की जांच कर सकती है, वह जानता है कि कॉलिंग सम्मेलन क्या है आदि। मैं सोच रहा था क्या "कोई मॉड्यूल स्थिर या गतिशील रूप से साझा लाइब्रेरी से जुड़ा हुआ" है? क्या इसका मतलब अर्थात् आदान-प्रदान के कुछ मॉड्यूल को साझा लाइब्रेरी में, या कुछ मॉड्यूल से शेयर लाइब्रेरी में पहचानने के लिए? जहां मैं बाइंडिंग पर अधिक विकिपीडिया-तरह के विवरण पा सकते हैं नाम और सूचकांक से? धन्यवाद और संबंध! गतिशील और स्थिर लिंकिंग आधुनिक कंप्यूटर ऑपरेटिंग सिस्टम ...

version control - Bazar Repository - Concept of branches and -

Hi all I'm writing a repository adapter for Bzr, it's for a search engine, where the adapter gives me some biz repo Communicates in, checks connections, checkouts, or updates projects. (Do not make any commitments, push or repost) Now I do not have much experience with Buzzr and other scams get such details and get confused with the concept of its branches. I use - & gt; Buzzer checkout branch release microlocation - checkout projects and - & gt; Bzr ls URlwithbranchname - test repo. Is there a tutorial on the Internet with basic initial information? Regarding the structure of branches and buzzer organization, I have already gone through the canalical website. Any way to be listed on checkout or repo names or project names, not on branch name? For checkout / list, do I also take care of the username / pass authentication on the repo? Apart from this, I still do not know about the beer server on SSH, SFTP, FTP server, will there be additional functionality t...

c++ - Hide console in eclipse -

Is it OK to create a project with no console in Eclipse? Or can I hide it, does not it appear at all? I tried ShowWindow (), Freakon (), but the console still appears for each other's part, I also tried to use WinMain, yet there was no change. I know that I can do this in windows 02 (VS 02010) by creating a Windows application (not a console), but it is also true in Eclipse? To get the code / SUBSYSTEM: CONSOLE must pass, if Using the WinMain , still you are giving a console view the settings for changing the parameter, which in turn cl and / SUBSYSTEM: CONSOLE changes to / SUBSYSTEM: Windows .

Using Python on Dreamhost, return XML document (not HTML) -

This indicates that a Python script should print the HTML type declaration as the first line of output. However, I need to prepare an XML response for third-party APIs. Here's what I've tried: Set the type of announcement to XML Dreamhost throws an error when I do so. HTML type type declaration, after an XML type declaration How do I surround this limit Can work? The page you linked has a relevant sentence: If you want to see the printed output from your Python code, you will need to print the print "Content-Type: Text / HTML \ n \ n" as the first line of output. Note the first part - "If you want to see printed output." It is only a requirement that you expect to be able to display your output as a web browser HTML. You can also return image / gif, audio / mpeg, or any other valid mime type. When I do this, Dreamhost throws the error. Do you have something of that? Or does your browser display an error because it received...

c++ - The size of char type on Intel 64 (EM64T) system -

I have heard about a bit bit about 16 bit long characters on 64 bit systems Intel 64 (EM64T) system But what is the size of four types? Two 64-bit ABIBIs are common in EM64T / AMD64 systems: (And, as far as I know, other Unix versions), which defines char as 8 bit (see section 3.1.2). which also defines char as 8 bits (see). but does allow "byte" to be larger than 8 bits, and by definition a char one "Byte" (in reference to the C standard); And such platforms exist.

cookies - Node.js http.ClientRequest: get raw headers -

After the I have been using Node.js 0.2.3 and response.headers ['set cookie'] Is the first cookie going to be any way that I can read just raw headers? BTW, set-cookie should be in the title: id1 = sw34rwdsfsd; Safe; Id2 = wer235sd2354; Safe; Id3 = df435df4543; Safe My guess is that it will not parse boolean attributes and will be closed after the first one. Does anybody know that it is fine in later versions of Node.js (even though I can not upgrade yet)? var spawn = ('child_process') is required. Eggs; Function getHeader (url, callback) {var client = spawn ('curl', ['-i', url]); Client.stdout.setEncoding ('***'); Client.stdout.on ('data', function (data) {callback (data);}); } -i flag only asks curl for header. Whatever encoding to set to encoding - I think it is the default for the raw that you search for.

python - Is there a "short_description" method for variables in Django? -

In one of my models I have a long variable name "xxxx_xxxx_xx_xxxxxxxx" is equal to there: xxxx_xxxx_xx_xxxxxxxx.short_description = 'xxxx' Is there a method to show or to show me this? I do not want to use a method because I want to be able to sort this variable in Django Administrator. Thank you. Look at the options. It allows you to use whatever you like in the administrator. There is also unusual plural construxions which are also for model name .

ASP.NET WebForms - Control design (w.r.t. data) -

I am designing / creating a middle-level ASP.NET web application using the webform. The main work in the project is creating every web form, and I do not know how to design my controls (in a code / data / data flow sense). I give you some examples of what I am doing, you can understand what I mean: In the application, a normal work road Address is entered and displayed. So I created a user control called "knowfield" which contains a series of HtmlInputText elements (one for line 1, city / city, country, postal code etc.). zero show address (which fills HtmlInputText elements with proper text) In my DB institutions class is a class called "address" Update Ad (Address Adr) - which updates the content of ADR with the existing contents of HTML input text elements Address ad (address) - which creates a new instance of address and then sends it to the update address And then it comes back now Till, very good This works because the AddressFields control ...

php - Remove "%" from strings in serialized arrays in MySQL database -

While running a script to capture the hot-linked images to blog and host the blog from Blogger, I ended up Act% 252Bapandas-210x290.png These image names prevent images from appearing on the webpage, due to url encoding file Name ends in (do not ask!) I have given them name on file server, no problem Is not, but the name also attaches metadata to each post. How can I remove "%" from all image references in "code"? Wp_postmeta table? Most of them are in sorted arrays for meta_value s for meta_key s _wp_attachment_metadata . I had no luck finding the plug-in, and I am unsure how to set up a pure SQL solution. Edit: Commentators have said, this issue is changing or removing "%" character and To update the array so that it indicates the correct number of characters (like S: 13 point out yoursite.com 13 characters []) I'm also open to using a php solution ! Anything that can help me fix this mess More solutions later I have...

php - MongoDB equivalent of "NOT BETWEEN" -

I am using MongoDB, PHP driver, and Google Maps. Since Google maps wrap-around for longitude (in some cases it may be larger than the right latitude), I try to get the equivalent of not less of MySQL working in Mangaodbi I am doing / P> Has anyone successfully used the MongoDB "$ or" operator, which is not the opposite? Even my (unsuccessful) attempt is: // If (if $ longitude_left & gt; $ longitude_right) {$ parame = array ('$') Or '= & gt; array (' latitude '= & gt; array (' $ gte '=> $ longitude_left,' $ lte '= & gt; $ longitude_right)); } By default, the right longitude is greater than {$ params = array ('latitude' = & gt; array ('$ gte' = & gt; $ longitude_left, '$ lte' = & gt; $ longitude_right) ); } $ Mongo = new mongo (); $ Cursor = $ Mongo-> Energy-> Plant-> Search ($ params); MPodi's PHP driver always accepts ARAC / hopes ... Since you are pa...

c++ - fstream::exceptions unexpected behaviour -

In the code below; Any ideas why ifs gets spoiled when std :: is copied? #include & lt; Iostream & gt; # Include & lt; Fstream & gt; # Include & lt; Algorithm & gt; #include & lt; Iterator & gt; Int main (int argc, char * argv []) {std :: fstream ifs (argv [1], std :: fstream :: in | std :: fstream :: binary); Std :: fstream ofs (argv [2], std :: fstream :: out | std :: fstream :: trunc | std :: fstream :: binary); Ifs.unsetf (std :: ios_base :: skipws); Std :: istream_iterator & lt; Unsigned four & gt; (IFS) start; Std :: istream_iterator & lt; Unsigned four & gt; End; Std :: ostream_iterator & lt; Four & gt; Begin2 for sale (OFS); Ifs.exceptions (std :: fstream :: badbit | std :: fstream :: failbit); Ofs.exceptions (std :: fstream :: badbit | std :: fstream :: failbit); If (! Ifs) std :: cerr & lt; & Lt; "If Bad" & lt; & Lt; Std :: endl; If (! OSS) std :: cerr & lt; & Lt; "Bad of...

delphi - How to get the Process Environment Block (PEB) from extern process? -

So ... I need peg through the "Notepad.xa" process, how can someone make it? I was trying with the "GetModuleHandle" API, but ... gives me an indicator (every time I give zero) because I have to call the process of that module. For this reason, I want to know how to get it with "Enpropysted Modules" or "Create Touleau 2 2 Snapshot". If anyone knows, please tell me, thank you in advance! Matt Peterkac told how to do this. How to achieve this environmental variable of another process, where the first stage is to get the PEB an indicator. To do this, they say, call it fills the structure of PROCESS_BASIC_INFORMATION which contains the base address of the PEB structure. (You will need to use ReadProcessMemory to read, because the address will be in the context of the address of the external process address, not yours.) To call NtQueryInformationProcess , you will need to handle the process if you have started the process yoursel...

javascript - Is there a way I can over ride a web site's CSS with my own? -

Every day I use a web site that has a very good flash card system for learning languages. However, to make the authors of the site a good habit, what really seems to have a strange meaning is that they make the font size so big that you can only get a few rows of per screen, You have to scroll to reach. And I did not like what to do to access the site from a mobile device. I have been in touch with the developers of the site and I have also written CSS and header code for them to try and help, unfortunately, they are reluctant for a few months or are able to make changes. So, I'm going rogue ... I want to be able to impose my own CSS. / P> I remember a bit that it is likely to be in a Firefox additive, but is unable to find it now. In any case, because I wish to use it on my mobile phone is OK, here is the ideal solution: I set up a page on my web server I want to be able to relay that source to the web site, but CSS writes and display it with me on my own CSS I...

ruby on rails - system() calls successful from script/console but silently failing in application -

Specifically calls on gpg I'm having difficulty tracking logs as a problem, do not give any output to these failed calls and they work perfectly with production consoles. I have tried to specify the path of gpg: system "path / in / gpg - all-my - encryption-option And it has ensured that the passenger is running under the same user as I am entering the console. I have also tried to withdraw the order looking for a more strong reaction and tried% x () . No luck. Prayers, dances, and violence have proven equally worthless In this way, you can try to call a Bash script directly, Instead of handling the entry of issues: #! / Bin / bash # my_gpg_script.sh set -e set -u set - X set -v path / per / gpg --all - My - encryption -options & gt; /var/log/whats_happening.log then call system "my_gpg_script.sh" by Ruby.

iphone - SenTestingKit (integrated with XCode) versus GHUnit on XCode 4 for Unit Testing? -

Any suggestions about the unit testing on XCode 4 of SenTestingKit (Inbuilt Unit Test Settings with XCode 4) and Geotunit? Specifically: Does this mean that there is no major benefit to running with GHUnit, with the apparent improvement in unit testing in XCode 4? Alternatively, there are some integration benefits that create a smooth development process that uses XCode's Unit Testing Frame (Sternastkat) in opposition to the G-H-NIT. Can be obtained by doing? Greg, I answered your question on my blog, almost 2 weeks late :). The conclusion I have come on is that GHUnet is not obsolete, but you should use ShentastingKat for new projects on Ext4.

How to embed jasper report in jsp page using struts2-jasperreports-plugin -

I am creating a report, using the Joseph report and successfully in my web application, Straits 2-Jesperportport- I am preparing reports with the plugin. The report is displayed in HTML format, now I need to embed this report in a jsp page, but there was no way to do this. Can anyone help me? has used the following string configuration: I: & lt; Action name = "myJasperTest" class = "com.action.jasperAction" method = "execute" & gt; & Lt; Name of the result = "success" type = "jasper" & gt; & Lt; Param name = "location" & gt; Jasper \ report4.jasper & lt; / Param & gt; & Lt; Param name = "data source" & gt; MyList & lt; / Param & gt; & Lt; Param name = "format" & gt; HTML & lt; / Param & gt; & Lt; Param name = "imageServletUrl" & gt; / Servlets / image? Image = & lt; / Param & gt; & Lt; / Results & gt...

java - how to get the source page which request other page in JSP -

मेरे पास एक फ़ॉर्म है & lt; form name = frmMain method = "POST" action = "ProcessUpload.jsp" एन्क्टीपे = "मल्टीपार्ट / फॉर्म-डेटा" & gt; & Lt; p align = "center" & gt; & lt; सारणी सीमा = "1" align = "center" width = "90%" सेल्सपेसिंग = "0" bordercolordark = "white" bordercolorlight = "black" & gt; & LT; टीआर & gt; & Lt; td चौड़ाई = "261" ऊंचाई = "111" & gt; & Lt; तालिका सीमा = "0" कोशिकाक्षेत्र = "0 पीएक्स" सीमावर्णन = "# बी 9 बी 9 बी 9" आईडी = "ऑटो संख्या 1" शैली = "सीमा-पतन: पतन" सेलपैडिंग = "0 पीएक्स" संरेखण = "बायां" चौड़ाई = "100%" ऊंचाई = "114" & gt; & LT; टीआर & gt; & Lt; td width = "264" height = "25" colspan = "2" bgcolor = "# FCDCA0" & gt; & Lt; p align = ...

asp.net - RegisterUser: CreateUserWizardStep -

When using CreateUserWizardStep to register a new user I'm having a problem. Help me solve this problem.I have tried to configure in the web. Provider tag for configuration & lt; Required question and answer = "wrong" & gt; Although it still does not work ... I'm using the MySQL database RegisterUser :. An IEditableTextControl is not included with the CreateUserWizardStep.ContentTemplate ID question for the security question, it is necessary that your membership provider needs a question and answer. Source error: An unrestricted exception occurred during the execution of existing web requests. Information about the origin and location of the exception can be identified using the exception stack trace below. Stack trace:. [HttpException (0x80004005): RegisterUser: CreateUserWizardStep.ContentTemplate does not include questions IEditableTextControl security question with the ID, it is necessary to require a question and answer your subscri...

gwt - why this event (onclick) do not fire? -

यूआई: & lt; div class = "scroll" यूआई: field = "mainContainer "& gt; & Lt; ul ui: फ़ील्ड = "लीकेंटेनइयर" & gt; & Lt; / ul & gt; & Lt; / div & gt; कोड: लियलेमेंट li = Document.get ()। CreateLIElement (); AnchorElement a = Document.get ()। CreateAnchorElement (); A.setAttribute ("href", "#"); li.appendChild (क); छवि आईएमजी = नई छवि (fsd.getImgUrl ()); Img.addClickHandler (नया क्लिकहैंडलर () {@ ओवरराइड पब्लिक वाइड ऑन क्लिकक्लिक (क्लिक इवेंट इवेंट) {विंडो.लार्ट ("हैलो, फिर")}}); स्पैन एलेमेंट स्पैन = दस्तावेज़.गेट ()। बनाएं SPANElement (); span.setInnerText (fsd.getName ()); a.appendChild (img.getElement ()); a.appendChild (अवधि); liContainer.appendChild (ली); नोट: @UiField UListElement liContainer; छवि एक अभिभावक विजेट । छवि के तत्व को सीधे DOM से जोड़कर, आप GWT के ईवेंट प्रेषण प्रणाली को दरकिनार करते हैं।

java - Run Method in the Thread class not being called -

I am a new man in the world of threading, now I am trying to solve this problem for a week. The method running in the thread class is not being called for any reason, I do not know why (but would like to know) ProcessBuilder processBuilder = new ProcessBuilder ( ); Processbuilder.command ("/ bin / sh", "-c", "echo", w30000001z, none, 16488, 181075 \ nw30000001z, none, 16488, 181082 \ n \ "home / bee / bin / exec / Tablesize "); Process process = process builder. Start (); Process.waitFor (); InputStream stdin = process.getInputStream (); OutputStream stdout = process.getOutputStream (); InputStream stderr = process.getErrorStream (); BufferedReader Reader = New BufferedReader (New InputStreamReader (stdin)); Bufferdreamer Error = New buffed reader (neweststream reader (CDRR)); Stream Gobletler error stream = new streambobbler (process.getErrorStream (), "error"); Streamgb output stream = new streambobbler (process.getInputStrea...

inheritance - PHP: How to call private values of parent construct in child construct? -

I want to be able to set the value of a personal property in the parent manufacturer, and the value of a child's creator or method I want to call. For example: & lt ;? Php table class main class {Private $ prop_1; Private $ prop_2; Function __construct () {$ this-> Prop_2 = 'this' is prop_2 'property'; }} Class sub-class increases the main square {function __construct () {origin: __ creation (); $ This- & gt; Prop_1 = 'this' is propi 'property'; } Public Function GetBothProperties () {Return Array ($ this-> prop_1, $ this-> prop_2); }} $ Subclass = new sub-class (); Print_r ($ subclass-> GetBothProperties ()); ? & Gt; Output: array ([0] => this is the "prop_1" property [1] = & gt;) However, if I change prop_2 to protected , the output will be: Array ([0 ] = & Gt; This is the "prop_1" property [1] => this is the "prop_2" property) I have basic the OO and P...

java - Failure running junit test. Can`t create new browser session -

Eclipse Holeo; Jannit, Selenium-Java-Client-Driver, Selenium-Server Libs Added Libs for the project in the form of an external jar. Simple test written: import com.thoughtworks.selenium.SeleneseTestCase; Public class firstSTSelenstadt season {generates public zero set up (exceptions) {set up ("Nadoma.com", "* Googlechrome"); } Public Zero Test SigninIn () {String Login = "XXXXX"; String password = "XXXXXXXXXX"; Selenium.open ("nedoma.com.ua"); Selenium.click ("D £ Ð²Ñ ?? ÑÑ ?? D"); Selenium.type ("login", login); Selenium.type ("password", password); Selenium.submit ("D £ Ð²Ñ ?? ÑÑ ?? D"); Selenium.open ("http://nedoma.com.ua/settings/profile/"); AssertEquals (selenium.getText ("profile_name"). ToLowerCase (), login.toLowerCase ()); Selenium.close (); } Visit the satellite-server.jar in CMD "java -jar selenium-server.jar -multiwindow" as a test test in the f...

ruby on rails - Increasing the number of simultaneous request to mysql -

Recently we changed the app server of our rail web page with peanuts [REE and Rail 2.3.8] Gave. There are 6 machines pointing to the same microsoft server and a memcatch server in production setup. I was an example of the first 5 occasions of each machine. Now we have 45 passenger examples because every machine has RAM 2 GB, 2 core CPU. Once we deployed this passenger in production. The website became so slow and all the requests that started in the queue and we had to roll back in the end. Now we suspect that the increased load should be in the MySQL server. Already there are only 30 mysql connections and now we have 275 connections. Our website of MySQL server is set up similar to the machine. All the configs defaul limit was exempt buffer_pull_is is only 8 MB, although we have 16 GB RAM and the number of concurrent threads is 8. Will this increase the connection to mysql simultaneously, when MySQL will respond slowly to 30 connections only? If so, how can we do better MySQL ...

How to validate image based on resolution when using rails + paperclip -

JPEG header has width and height in pixels, I want to validate using these values ​​(maximum 19200x19200) Can I do this with a paperclip? ? Or maybe I can use it when I upload the file. Uploadify If it's just jeopardizing you, you can read Exif data in some way: You can trigger it on one of the uploadeef callbacks (like: selection): Otherwise, if you can not read EXIF, you will need to upload it, implement it, And if it is more than just need to throw it away and send an error back. From the paperclip readme (https://github.com/thoughtbot/paperclip/blob/master/README.md): before and after the post processing stage , The paperclip calls back to the model with some callback, allowing the model to change or cancel the processing phase. Callback before_past_process and after_post_process Anyway, you can use the paperclip to fill the dimensions: dimension = paperclip :: geometry.from_file ( Original_file) If the file is too large, the paperclip will also resiz...

text - Python: Clustering Search Engine Keywords -

Python: clustering search engine keyword Hi, I have CSV up to 20,000 rows (I each site Keywords in the search engine for a website, and many visits in the search engine.) Am I clustering these keywords into groups of "same meaning", and create a hierarchy of groups (Structured according to the total number of searches per cluster). An example cluster - "Women's Clothing" - Ideally there are keywords with these lines: Women's clothing, 1000 women's clothes, 300 women's clothing, 50 women's clothes, 6 women wear, 2 I can use something like the Python Natural Language Toolkit: and WordNet, but, I'm guessing that there will be reference keywords / phrases for some websites that WordNet knows nothing at all. For example If the website is a celebrity website, then Wordnet is unlikely to know anything about "Lady Gaga", worse if the website is a news website. Therefore, I am also convincing that the solution should be one tha...

javascript - Destroying widgets in Dijit -

Dojo / Dijit TabContainer के अंदर विजेट को नष्ट करने का सही तरीका क्या है >? प्रत्येक टैब के लिए मैं नया BorderContainer लोड कर रहा हूँ जिसमें मूल रूप से एक विजेट शामिल होता है जिसमें कोई छोटा विजेट शामिल होता है लेकिन अब कि मैं इसे टैब नियंत्रण के साथ काम करने की कोशिश कर रहा हूं ताकि नए पृष्ठ को लोड करने से पहले वह पिछले पृष्ठ को नष्ट कर दे, मैं फंस गया हूं। अभी मैं सक्रिय विजेट नाम को स्टोर करने के लिए एक वैश्विक चर का उपयोग करता हूं और जब उपयोगकर्ता एक नया टैब पर क्लिक करता है, तो वह सक्रिय वैटिबल के आईडी को ग्लोबल वैरिएबल से प्राप्त करता है और इसे नष्ट कर देता है और फिर नए सक्रिय विजेट को लोड करने में प्राप्त होता है। यह काम करता है, लेकिन जब मैंने एक बार विजेट को नष्ट कर दिया, तो मैं इसे फिर से प्रकट नहीं कर सकता मुझे यह त्रुटि मिलती है: अनक्यूट त्रुटि: आईडी == widget_foo_container के साथ विजेट रजिस्टर करने की कोशिश की, लेकिन वह आईडी पहले ही पंजीकृत है "। मैं उपयोग कर रहा हूँ सभी विगेट्स के लिए widget_XXX_container आईडी इसलिए XXX को विजेट का id द्वारा...

sql server - What could cause database restore from a network share to fail? -

I SQL- to restore a database backup that is located on a shared network is an example of running SQL Server Using the DMO on the local machine The code works fine on my machine. But on a test VM this works only when I put backup in the local route. If I try this on the network, it fails. I was running under SQL Server showed system user VM and change it to run as network services thinking Was that network access problem. But it did not solve the problem. This is an empty result set call to ReadFileList fails because of code. reinstated as {with Dim New SQLDMO.Restore. Action = SQLDMO.SQLDMO_RESTORE_TYPE.SQLDMORestore_Database, .ReplaceDatabase = true, .Database = dBNAME, .Files = "[" + backupFile + "]", .Devices = ""} dim fileList = restore.ReadFileList (sqlserver) Dim dataLogicalName = fileList .GetColumnString (1, 1) dIM dataPhysicalName = Path.GetFileName (fileList.GetColumnString (1, 2)) dim logLogicalName = fileList.GetColumnString (2...

Save images from URLs in a form via php -

I have a PHP script that captures an image from an external URL, reads it and one on my server The directory saves in the script is located in a php file and includes: Everything works great there ... What I would like to do is to script this for many URLs. The URL will be written in a form textarea, separated by comas (or other). A submit button will then tell the script that it is in the form of the couple with all the URL and that whatever name is saved by it, it is not important (random is correct). I am still a newbie, and I am learning PHP edit My code looks like this: & lt ;? Php error_reporting (E_ALL); $ Image_urls = Explosion ('\ n', $ _POST ['urls']); Forex currency ($ image_urls $ as image_url) {$ ch = curl_init (); $ Timeout = 0; Curl_setopt ($ CH, CURLOPT_URL, $ image_url); Curl_setopt ($ CH, CURLOPT_CONNECTTIMEOUT, $ timeout); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, 1); Curl_setopt ($ CH, CURLOPT_BINARYTRANSFER, 1); $ Ima...

c# - Inheritance: only fields and methods? -

Reading a book states that the derived class gets all the fields and methods ... but what about the properties ?? Personal methods, fields and attributes are not generally, although a derived class is the area of ​​all methods and, yes Also handles properties. Visible from direct access or derived class until it is nested in the superclass (parent). However, contractors and finals, they are not inherited, when you get in a way, you need to code any constructor required for your object initialization, even if it's the base class constructor. Makes a call. However, it is generally considered to be a good practice to access your fields and make derivative classes through properties, if necessary. In this way, it assures you, the writer of the base class, that you can control the way the classes can change the state (the value of its area). You explained the question about the qualities: the person in the public category {public name {get; Set; } Public Zero Greetings () ...

Error in PHP with bool arithmetic in loops -

It seems that there is an error in Boolean arithmetic loops in PHP. In this particular example I test if all the important form fields (represented by the object) were set. var_dump is for debugging purposes. $ allset = true; Forex Currency ($ form as $ form): $ allset = $ one- & gt; Thats () and $ allset; Endforeach; Var_dump ($ allset); Foreign Currency ($ $ as $ more): $ allset = $ one- & gt; Thats () and $ allset; Endforeach; Var_dump ($ allset); $ Allset = $ iwasthere-> Thats () and $ allset; Var_dump ($ allset); This code may fail, it is possible that the first dump returns false and the second return is correct. My question How can I save this error and I have a small and clean code? PS I now use the if block. The problem here is that = is operated by and operator, so assignment expression is just part of a logical expression and the whole expression is equivalent to: ($ allset = $ one-> Thats ()) and $ Allset; Either put a...

Unable to load DLL 'NImages': The specified module could not be found. (Exception from HRESULT: 0x8007007E) -

I am getting this error when I try to use any DLL with Verilook SDK from Neurotechnology. {"Unable to load DLL 'niges': specified module was not found. (Exception from HRESULT: 0x8007007E)"} This is a simple "file not found" error, the most common accident happens when you work with files, be careful that it another Ielel that he can not get can be a DLL that you can use SysInternals ProcMon tool are trying to load have to fix it, you will search for the file. Contact the seller for help if that does not help.

.net - How to generate type forwarding assembly for whole assembly? -

I have a situation where I want to generate a single DLL which includes type forwarding for the whole host of conferences This idea is to provide an SDK, where there is an 'empty proxy' for each type and method in the final product assemblies in a DLL. My question is, is it possible to prepare these assemblies in any way? I mean, with all the right types and interfaces? Thank you. You can use it to forward from one assembly to another. Now, to generate a assembly dynamically, which move on in many different types of assembly, you can Reflection.Emit With libraries, you can read your targeted types for your public type, and generate such a assembly in which there is a typeforwardedToAttribute for each type of them. >

List of Mathematics areas to learn for understanding the Algorithm Analysis books (like Introduction to Algorithms) -

An algorithm gives a brief list of mathematical fields (such as tasks, calculations, etc.) to understand the analysis books (e.g. Introduction to algorithms)? I will start with discrete mathematics, it will probably give you the best computational grounds and intuition that computer algorithms Are working with the set and are usually in discrete numbers. Also, anything on data structures and algorithms will help. This will give you a nice background on things like arrays, skillful searches etc. Then you can go to books on artificial intelligence (my best guess), but by this time you should be ready to read some algorithm books. IMO, this is it. UPDATE Also, if you are working with at least / max / optimization issues, it may be that the basis of specific algorithms to work with you But bee is needed or is it?

sql - In which table will be foreign key if the relation in two tables is many to one i.e. from 1st table (many ) to second table(one) -

Which table will contain the foreign key if the relationship between the two tables is too many, i.e. the first table (many) to the other table (One). What can I win the first table?

How can I throw an exception in Clojure? -

I want to throw an exception and the following is: ") Although it is being ignored. ("Some text" for throwing) is required to be wrapped or ( Some exceptions (exception "some text")) You can also set an attempt / hold / ultimately block: (mydivision defn [xi ] (Try (/ xi) (aggregate (E. println "Done."))) RPL session: & gt; User = & gt; (MyDivision 4 2) done 2 users => (MyVivision 4.0) Exception Message: Divide by Zero

php - Using GAPI to return list of pages with percentage of views -

Image
Anyone know how can I return the following information from my Google Analytics account? You need to use the PagePath dimension and pageviews metric to try something like the following: & lt ;? Php Requirement 'gapi.class.php'; $ GaEmail = 'youremail@email.com'; $ GaPassword = 'your password'; $ ProfileId = 'Your Profile ID'; $ Dimension = array ('pathway'); $ Metrics = array ('pageview'); $ SortMetric = Null; $ Filter = null; $ STARTDATE = '2011-02-01'; $ ENDDATE = '2011-02-28'; $ STARTINDEX = 1; $ MaxResults = 10000; $ Ga = new difference ($ geemail, $ gaPassword); $ Ga- & gt; RequestReportData ($ profileind, $ dimension, $ metrics, $ sortmet, $ filter, $ startdate, $ ended, $ startindex, maximum max); $ TotalPageviews = $ ga- & gt; GetPageviews (); Forex Currency ($ ga- & gt; getResults () as a result) {$ pageview = $ result-> Get Page View (); $ Percent pageview = round ((get $ res...

c# - A good starting point for development Windows utilities interfacing with OS -

I want to give you some good resources about the Windows development of applications that integrates with OS such as App Manager , Docs, taskbar, system tray etc. How are resources like how to interact with special sub-systems thanks The type of shell extension you are searching for is information about typing. Generally it is not recommended that you write a shell extension in the net extension, though the scenario can now be better with support in side of side loading with framework 4.0. The shell extension C # for Bing / Google will generate many results that may be relevant. For the docking part of your question, an application is the desktop toolbar (AppBar), it is a code project article doing this with C #, this should be a proper starting point.

regex - Parsing wiki templates calls with Javascript -

I want to split the wiki template call for the parameter parts. In a very basic scenario, this is | is simply broken by {{template | Unnamed_parameter | Param1 = value1}} will be divided into {{template , unnamed_parameter , param1 = value1 and }} . But things are complicated when the pipe is used for the character other purposes such as Wikilein [[link | Title]] etc. Any suggestions how to do this work in a simple way? :) Update: Sorry for possibly misunderstanding but {{template | Unnamed_parameter | Param1 = value1}} is an example. For more information about wiki templates, you can see the following resources: Please enter this Q & A See My answer is parsing a very similar wiki link using perl regex (in the update section). Update: OK, for your case, Pearl Reggae is here: echo "{{template | unnamed_parameter | param1 = value1} } "| \ Perl -pe 's # (^ | \ b) ((?! [| \ []) {{(. +?) \ | (. +?) \ | (. +?)}} (?! [ ($ | \ B) # {{$ ...

internet explorer - Animated gif no longer animated on jquery .show() -

As far as I can tell, it only affects IE 8. Using the following code, GIF appears, but is not animated (stuck in one position): $ ("# ) Click (function () {$ ("# assessmentListLoaderImg"). Show ();}); I have also used .css ('display', 'block') with the same code. Is there any acceptable way (perhaps better than this) to produce an animated GIF that produces reliable cross-browser results? This is the way to solve this problem: & Lt; Div id = 'myHiddeDiv' style = 'display: none' & gt; & Lt; Img src = '' id = 'my anonymous image' & gt; & Lt; / Div & gt; & Lt; Input type = 'button' value = 'show image' onclick = 'showDiv ();' & Gt; & Lt; Script languag = 'javascript' & gt; Function show () () {document.getElementById ('myHiddeDiv'). Style.display = ""; Document.getElementById ('myAnimatedImage'). Src = ...

c# - ASP MVC 2 Change language by url -

I am trying to make a website voice with 2 or more languages ​​for one language. When I follow the default route (administrator / action) Html.ActionLink ("NL", ViewContext.RouteData.Values ​​["action"]. ToString (), New {language = "Nl-NL"}, blank) This works but when the action is called by the action from the parameter, it (logically) only creates a link with the controller as well as the current action parameters Is ignored My current route: routes MapRoute ("ProjectCategory", "{language} / Projects / {action} / {slug}", new {controller = "projects", verb = "extension", slug = string. Empty, language = "en-US"} ); The link created with html : http: // localhost / mysite / nl-nl / projects / extension / How to solve this problem? HttpContext.Current.Request.Path.Replace ("/ en-US /", "/ Nl-nl /") This is not the most beautiful way, but works for me. (Of...