Posts

Showing posts from April, 2012

web services - best way to generate wsdl in php for java axis client -

I am consuming a web service written in PHP. I am using the axis to generate client jars on my behalf, but when I prepare and request client code from WSDL, then request that XML has a multirif tag and PHP server does not understand this tag can. I will ask them to generate a wsdl in a new way. What are the best ways for customers who use the method axis to create wsdl I have searched and have several ways in php? Do you have such a problem before? If yes, what did you do? Thank you. service RPC-encoded, I ask them to replace RPC-literal and solve the problem is.

Google Trusted Stores Shipmet feed Carrier in Magento -

I have an issue with the feed that will be sent to my Google Merchant Account (order_shipments.txt), it has 4 columns Merchant Order ID Tracking Number Carrier Code Other Carrier Name Ship Date I, for free shipping as my free shipping, with my shipping shipping shipping method, for free shipping. Determined, the problem is that all the tracking numbers under my feed The shows (as others) and I under its feed conveyor either require UPS or USPS I because every time we enter an order send us the tracking number and carrier for shipment. Appreciate any suggestions. Hopefully I'm not too late! We compromise this exact issue only (as well as other) and have documented necessary modifications in the document Look at the comments in discussions on the carrier's names in the post We are looking to create a patch extension so that you do not modify the main trust files. I know this solution works for you! Regards, Evan

Setup a complicated row test with nunit and TestCaseSource and TestCaseData -

For each relatively return value such as 2 or 4, I want to pass this value as the parameter of the unit test method . But I get an exception that the parameters are not correct. When I remove the countExpected parameter, then the unit test gets cured, I can not just emphasize countExpected ... Is this scenario NUnit's Is it possible at all? [Test, TestCaseSource ("VisibleWeekDays")] Public Zero Test (DayOfWeek [] shown setup, Int Counted) {// ARRANGE // ACT // ASSERT Assert.That ( Period. Count), is.EqualTo (countExpected)); } Private Stable IEnumerable & lt; TestCaseData & gt; VisibleWeekDays Returns (yield yields new testsecondata (new dayoffice [] {dayoff vink)} returns (2); returns new testseadata (new dayoffice [] (day vioch, day, vic.monday)) returns (4 ); // more days ...}} see explanation: . Return Expected result to return to the method, which should have a corresponding return type. TestCaseData If you want to use .Returns () , you mu...

Nested include statements for ease of programming c/c++ -

Good practice aside, I'm just trying to do coding for myself. It is possible that a header file is able to handle innumerable insertions so that a header can be included in a source? EDIT: Some of you are referring to Coco I forgot to mention C / C ++ programming in this tag, but I forgot to keep it here. EDIT: It does not matter that I stepped on an anthill with this question. Lessons learned. It is possible, but I would not say that a good programming style You are going to increase source code dependency, depending on whether you will not be able to recompile everything without compiling it again, and lose track of your part. P> Individually, I would say do not do that.

python - unable to get redirect work in google app Engine -

I am starting with Google App Engine, and I am trying to go through the Google app HelloWorld app. Redirecting URL does not work when using self.redirect ('/' + urllib.urlencode ({'guestbook_name': guestbook_name})). This redirect should display the correct URL in urlbar like http: // localhost: 8080 / guestbook_name = some_name Displays this, while http: // localhost: 8080 /? Guestbook_name = class men page (webapp2.RequestHandler): def find (auto): guestbook_name = self.request.get ('guestbook_name') greetings_query = Greeting.all. () Kancestor (Guestbook_key (Guestbook_name)) Order ( '- on') congratulations = greetings_query.fetch (10) If users.get_current_user (): url = users.create_logout_url (self.request.uri) url_linktext = 'logout' rest : url = users.create_login_url (self.request.uri) url_linktext = 'Login' template_values ​​= { 'Congratulations' greetings,' url ': URL,' url_linktext ': ...

mysql - replace string inside the table sql -

I have a problem about replacing the string in mysql table with some requirement. You can view my current table: + ---- + ------------------------ + | ID | Data | + ---- + ------------------------ + | 1 | [Lesson 1] MyText 1 [/ lesson 1] | | | [Text2] MyText 2 [/ Lesson 2] | | | [Lesson 3] MyText 3 [/ Lesson 3] | | | [Text4] mytext4 [/ text4] | | + ---- + ------------------------ + then change me to The problem is: [ 3] [text3] mytext3 [/ text3] [text3] mytext5 [/ text3] and the problem is: How can I change the content between [textX] and [/ textX]? Any ideas? Like to search for hit, then change to change: mytable set data = (data, 'mytext3', 'mytext5'), where '[text%] mytext 3 [/ text%]' data such as

vbscript - I would like to delete 7 days older, files. folders and empty folders -

After I want to delete 7 days old, delete files and empty folders. I have used the script below from the link, but since the souce is pointing directly to the letter drive, some files and folders are not being removed. However, if we change the source folder then c: \ temp \ lab everything works fine. const active = true const sSource = "E:" Const MaxAge = 7 'day const Recursive = True checked = 0 deleted = 0 set OFSO = CreateObject ("Scripting.FileSystemObject") if Active "action" = "delete" "other verb =" old file: "" "checkfolder osso. Gatefolder (ssro) WScript.echo if activated then action =" file has been deleted "other action =" file (s) Removed "WScript.Echo checked" & checked file (s), & amp; deleted & verb sub checkfolder (offender) each off Checked in oFldr.Files = Checked + 1 if Detoff ("D", Opile. DataList, now ())> MaxAge then deleted deleted + 1 WS...

visual studio 2010 - How to format individual gridview cells using css? -

Is it possible to format individual cells using CSS in gridview I see view Studio 2010 with vb I want to do the following. Based on this table structure ... H1 H2 H3 H4 R1 i1 i3 R2 j1 j2 j3 r3 k1 k2 k3 Required: H1, H2, H3, H4 - Headings: bold, white font, blue background R1, R2, r3-bold => For example, 10pp j1, j2, j3 - mumber k1, k2, k3 - percent line headings with any signal / line i1, i2 - percent i3 - format number 'pp ' idea? Thank you I'm not sure I understand your question. What I find, you are trying to style those elements in a way "TD" will have to be added classes and then those classes have to be styled. You must add the "in-line" styles to the "self" tag. For "%" and "PP", you can use "After" of CSS3 and make it your content. But this is not really a good idea, they should really originate from back-end, and not with CSS.

django - Uploaded images not showing, wrong path -

I have trouble displaying images uploaded from admin panel class articles (Models.Model): "News", displayed on the homepage to attract users "Meta: db_table = 'article' title = models.CharField (max_length = 64) headline = models.CharField (max_length = 255) content = HTMLField () image = models.ImageField (upload_to = 'article /', tap = true, empty = true) active = model Booleanfield () created_at = model.dateimfield () def __unicode __ (self): return self.title This url configuration is: django.conf.urls with import pattern, it contains, Url django.conf.urls.static imports from django.conf import settings static urlpatterns = pattern ('', #in some stuff) + static (settings.MEDIA_URL, document_root = settings.MEDIA_ROOT) Settings.py: PROJECT_DIR = os.path.dirname (__file__) MEDIA_ROOT = os.path.join (PROJECT_DIR, "media") MEDIA_URL = '/ media /' This view: def slider (requested): reference = context ({'...

Match items in MySQL imploded array to PHP array in query -

I am a database noob, how can I search for rows by matching items in a PHP array, in MySQL Array Array Items? It is stored like this feature, but if I want to do what I want, I have all the ears, I am looking for something like this (I use * * To say where I'm joining hands): $ sql = "select * from codenit"; $ Sql = "WHERE when made private = 1 then Manufacturer ID =: User ID ELSE True ED"; If (isset ($ tag)) {$ tag_ids = join (',', $ tag); $ Sql = "And **** mysql item in the array 'tag' IN: tag"; If ($ stmt = $ this-> _db- & gt; Ready ($ sql)) {$ stmt- & gt; BeyondParam (": userID", $ userID, PDO :: PARAM_STR); $ Stmt- & gt; Bind Parmum (": Tag", $ Tag_Ieds, PDO :: Param_st); $ Stmt- & gt; Executed (); $ Stmt- & gt; CloseCursor (); }} Here's how I am storing items in DB. $ Value tag is bound to query the column, so why am I calling it mysq array? $ tag = array (); Foreign cu...

javascript - Is a XSS attack possible when the point of injection is the value of the style attribute? -

उदाहरण कोड: & lt;! DOCTYPE html & gt; & Lt; html lang = "en" & gt; & Lt; सिर & gt; & lt; शीर्षक & gt; एक्सएसएस परीक्षण पृष्ठ & lt; / title & gt; & lt; / head & gt; & LT; बॉडी & gt; & Lt; p & gt; & Lt;? Php $ style = htmlspecialchars ($ _ GET ['शैली']); गूंज '& lt; div शैली = "'। $ शैली।" "Gt; यह एक शैली का परीक्षण है & lt; / div & gt; '; ? & Gt; & Lt; / p & gt; & Lt; / body & gt; & Lt; / html & gt; क्या जावास्क्रिप्ट कोड को इंजेक्ट करना संभव है, लेकिन कुछ भी नहीं है लेकिन ठीक तरह से एस्केप किया गया HTML शैली विशेषता? मैंने सुना है कि सीएसएस के माध्यम से एक्सएसएस हमलों को चालू करना संभव है (, )। मैं सोच रहा था कि यह केवल शैली विशेषता के द्वारा ही संभव था। itemprop = "text"> मैंने पहले से ही इस प्रश्न के टिप्पणी-अनुभाग में इसे इंगित किया है, लेकिन मुझे लगता है कि यह वास्तव में एक वास्तविक उत्तर के रूप में ...

javascript - Is it possible to delete broken revisions from jsperf? -

I'm doing my first step with jsperf () scripts. I am thinking that it is possible to remove / delete the test modification, on which I have been publically published - they are broken and useless, therefore: Question: Tell me how does this work when modifying 5 - Is there any way to remove Revision 1-4? Thank you! Disclaimer: I have created a jsprerf There is no way to remove test cases at jsPerf by emailing me or @ jsperf on well Twitter. It is by design. How do you end up with 4 breakthrough modifications? Whenever you edit a test case that you created within the same browser session, it will only update the original test case.

java - Is it ok to use a ModelAttribute as a method parameter for RequestMapping method? -

मैं निम्नलिखित कोड का उपयोग कर रहा हूं: @RequestMapping (value = "/ myUrl ", विधि = RequestMethod.GET) सार्वजनिक ModelAndView myRequestHandler (HttpServletRequest अनुरोध, HttpServletResponse प्रतिक्रिया, @ModelAttribute (value =" paramName ") @ValidMyModelForm फार्म) // अपने आप फ़ॉर्म से फार्म setters भरता है: प्रपत्र JSP दृश्य में {} निम्नलिखित लिंक पर जवाब पढ़ना मुझे संदेह करना शुरू हो रहा है कि ModelAttribute का मेरा उपयोग यहां सही नहीं है। क्या मैं इसे सही तरीके से उपयोग कर रहा हूं ? ऐसा लगता है कि काम करना है लेकिन मैं यह सुनिश्चित करना चाहता हूं कि मैं कुछ भी गलत नहीं कर रहा हूं। फ़ॉर्म ऑब्जेक्ट मॉडल में एक अलग तरीके से जोड़ा जाता है, जो कोड की तरह दिखता है: मॉडल ANDView.addObject ("formName", नया MyModelForm ()); जेएसपी दृश्य में मेरे पास commandName = "formName" के रूप में जोड़ा गया फ़ॉर्म नाम है। सार्वजनिक ModelAndView myRequestHandler (@Valid MyModelForm फार्म) यह हस्ताक्षर भी पूरी तरह से आप के लिए काम क...

php - Tokenising and reconstructing a string containing delimited name-value pairs -

मेरे पास एक स्ट्रिंग है, जैसे कि: "01; एए: 02; एबी : 03; एसी: " इसमें $ _POST शैली प्रारूप बनाने का एक तरीका है जहां: $ MyVar ['01 '] = "एए" $ MyVar ['02 '] = "एबी" $ MyVar ['03'] = "एसी" ? मैं भी किसी तरह जब मैं परिवर्तनों के साथ किया जाता हूं, तो उसे वापस मूल स्ट्रिंग प्रारूप में घुसाना। (अग्रणी शून्य शून्य implode पर आवश्यक नहीं है, और वहाँ विस्फोट के समय नहीं हो सकता है) संपादित करें: जानकारी जोड़ने InevntorySKU; इन्वेंटरी QTY: 086; 99: 043; 99: 130 ; 99: 131; 99: 132; 99: 133; 99: 134; 99: 135; 99: 136; 99: 137; 99: 138; 99: 139; 99: 140; 99: 141; 99: 142; 99 : 143; 99: ऐसा करने के लिए कोई अंतर्निहित फ़ंक्शन नहीं है, लेकिन आप ऐसा कर सकते हैं: $ MyVar = array (); Foreach (array_filter (विस्फोट (":", $ इनपुट)) $ i) {सूची ($ k, $ v) = विस्फोट (";", $ i, 2); $ माइवर [$ k] = $ v; } आप रिवर्स प्रोसेस के लिए एक समान सेटअप का उपयोग करेंगे: $ output = ""; विदेश...

actionscript 3 - add Loader to stage from class -

Stage seems to be unattainable in my class .. almost seems that it can not be scaled up. I do not know what is going wrong, this is the same class as I am now: package {import flash.events *; Import flash.display. *; Import Flash.net *; Public class gallery Sprite (private var imgPath: String = 'images /'; private var imgCurrent: int = 0; personal animosity Images: Arre = new Arre (); personal animosity iLoader: Loader; Function Gallery () {ThiskaddEventListener ( Event.ADDED_TO_STAGE, on add Torej);} added private function Gyastostej (e: Event): void {it KremoveEventListener (event. on ADDED_TO_STAGE, Adedtaotej); SayStage ();} public function says Staj (): void { Trace (this.stage);} public function setImgs (val: Array): zero {for (var index: string in value) {images ndex] = val [index];}} public function GetImgs (): void {(var index: string images) {trace (index + ':' + Pictures [index] + ";");}} public function loadImg (): void {iLoader = new loader...

java - Sorting an ArrayList of Int[] on multiple indexes -

मेरे पास वर्तमान में ArrayList का int [] है। int [] में 5 तत्व हैं मैं अपने int [] के दूसरे और चौथे अनुक्रमित के आधार पर यह सरणी सूची सॉर्ट करने में सक्षम होना चाहता हूं। मैं जावा में यह कैसे कर सकता हूं? पैकेज कॉम.sandbox; आयात करें java.util.ArrayList; आयात करें java.util.Arrays; आयात करें java.util.Collections; Java.util.Comparator आयात करें; आयात java.util.List; सार्वजनिक वर्ग सैंडबॉक्स {सार्वजनिक स्थिर शून्य मुख्य (स्ट्रिंग [] आर्ग्स) {सूची & lt; int [] & gt; सूची = नया अर्रेलिस्ट & lt; int [] & gt; (); List.add (नया इंट [] (1, 4, 6, 8, 9}); List.add (नया इंट [] (1,3,6,7,8)); List.add (नया इंट [] (1,4,6,7,9}); संग्रह.सोर्ट (सूची, नया तुलनात्मक & lt; int [] & gt; () {सार्वजनिक पूर्णांक तुलना (int [] o1, int [] o2) {int compare = integer.compare (o1 [1], ओ 2 [1]); // यदि वे इस तत्व के बराबर होते हैं तो अगले तत्व की तुलना की तुलना करें == 0? Integer.compare (o1 [3], o2 [3]): तुलना;}}); के लिए (int [] ints: सूची) {System.out.println (Arrays....

javascript - Need Help Debugging JQuery -

I am quite new in JQuery and am trying to debug. I'm trying to use any slider on the site. I've got the slider working on a plain-tested HTML document, but I'm working on it in Joomla (where the site is hosted), it's my It may not be for a custom page that we have developed and plugged in in Joomla, but it will not make any difference. I'm getting a type error: $ (...). Nothing is a slider function In Chrome and Firefox inspectors, I have read that it may be due to JQuery, but for the previous JQuery scripts to load the slider, where As far as I know I have also used the bug standard Joomla template to reduce the script with the issues being imported into us. Do not pay attention to the dirty layout of the URL, it just tests the default template If anyone can see and see how much it will be appreciated! Cheers Your file is not being loaded. Besides, you are getting 404 on many images, it seems that you have resource path problems. My first gue...

php - cannot modify header information error -

इस सवाल का पहले से ही एक उत्तर है: 11 जवाब मुझे लेने के बजाय सफल पृष्ठ यह स्क्रिप्ट पृष्ठ पर बंद हो जाता है और मुझे "शीर्षक में त्रुटि प्रदान करता है: शीर्षलेख सूचना को संशोधित नहीं किया जा सकता है - पहले से ही भेजे गए हेडर (आउटपुट शुरू हुआ" मेरा मानना ​​है कि इसमें शीर्षलेख के साथ कुछ है और इको के बाद या किसी भी मदद की काफी सराहना की & lt; div style = "position: absolute; left: 750px; शीर्ष: 0px; चौड़ाई: 160px; ऊंचाई: 41px; अतिप्रवाह: छिपी; "& gt; & lt;? Php if (isset ($ _ सत्र ['उपयोगकर्ता नाम]]) {गूंजती है' आप पहले से ही & lt; a href =" recent.php "के रूप में लॉग इन हैं & lt; a & gt; ' । $ _ सत्र ['उपयोगकर्ता नाम']। '& Lt; / a & gt; आप नहीं? & Lt; a href = "logout.php" & lt; / a & gt; लॉगआउट';} और {गूंज 'लॉगिन करें & lt; a href = " Login_form.php "& lt; a & gt; क्लिक K यहाँ & lt; / a & gt; '।' पंजीकृत करें & lt...

knockout.js - How to Include text/html Scripts with Hot Towel -

I'm trying to familiarize myself with a hot towel SPA template. I would like to apply inline editing after reading from Ryan Wanderpole. Now I am in quite a disadvantage as to the script block of section content, 'script / text' is included. This is in the section for my perspective (note inside two script blocks). & lt; Section & gt; & Lt; H2 class = "page-title" data-bind = "text: title" & gt; & Lt; / H2 & gt; & Lt; Table class = "table-table-striped table-limit" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Id & lt; / Th & gt; & Lt; Th & gt; Company name & lt; / Th & gt; & Lt; Th & gt; Last name & lt; / Th & gt; & Lt; Th & gt; First name & lt; / Th & gt; & Lt; Th style = "width: 50px; text-line: true;" / & Gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody data-bind = ...

javascript - Facebook like button in site that uses post message spams console -

I have a site that uses a lot of post message communication between iframes [domain] ] A message of type object was received, a string was expected. This makes it very difficult to grow. Is there any way to stop this extra logging? I am new to using facebooks apis, so I hope that I am just missing something simple, they can not potentially believe that none other than them will never use postmastages. Thank you! Actually this is not additional logging. It is from Facebook SDK just to remove all the consoles from the library For SDK can be useless. 1. Download SDK. 2. Invert it to remove console logging (production version.) . 3. Use it in your site. Another link that can help you:

Update value with value in another row of same table in MySQL -

मुझे निम्नलिखित एसक्यूएल के साथ मदद की ज़रूरत है: - UPDATE `mg_catalog_category_entity_varchar` एएस टी 1 INNER जुड़ें `mg_catalog_category_entity` एएस टी 2 ऑन टी 1।` इक्विटी_आईडी` = टी 2.` इक्विटी_आईडी` एसटीटी टी 1.` वेल्यू '= कोंकैट (' यूएस स्पोर्ट्स गुड्स ', टी 1।' वेल्यू ',' मेरी साइट का नाम ') WHERE टी 2। पथ '1/2642%' और 't2.` लेवल` & gt; 1 और t1.`attribute_id` = 40 मेरी समस्या यह है कि t1.value फ़ील्ड में CONCAT () स्टेटमेंट की जरूरत है t1.value वहीं t1.attribute_id = 35 खींचने के लिए और मुझे पता करने के लिए संघर्ष करना है कि यह कैसे सही तरीके से CONCAT () बयान। इसे आज़माएं: UPDATE `mg_catalog_category_entity_varchar` एएस टी 1 INNER JOIN 'mg_catalog_category_entity` के रूप में टी 2 ऑन टी 1। `इक्विटी_आईडी` = टी 2.` इक्विटी_आईडी` एसईटी टी 1।' वेल्यू '= कन्कैट (' यूएस स्पोर्ट्स गुड्स '), (सेलेक्ट टी 3।' वेल्यू 'से' एमजी_जेंडिका_गणन_विचरण` से टी 3 WHERE टी 3 `एट्रिब्यूट_आईड` = 35 LI...

for loop - Java Method Complexity - Troubling Figuring it Out -

I was testing a computer science process for UIL when I encountered this segment code ( structure & Lt; E & gt; class, but they were not relevant to the problem): public class structure & lt; E & gt; {Private E data; Private Structure & lt; E & gt; S; Structure (id) {data = D; } Add Public Zero (id) {if (S == blank) S = New structure & lt; E & gt; (D); Else s.add (d); }} / / Client method public structure & lt; Integer & gt; Demo (int [] vals) {structure & lt; Integer & gt; S; S = new structure & lt; Integer & gt; (Wall [0]); (Int i = 0; i & lt; vals.length; i ++) s.add (wal [i]) for; Return s; } Then the question asked me to determine the most restrictive complexity of the demo () client method. I read on big o notation (before taking the course exam!) And it has been said that there should be linear complexity, by adding a loop operation in one list at a time, or O (N) . However, the correct answer actually ca...

java - Is there a good way to add a Document Listener to a Dynamically created JTextField -

I am reading information from an XML file where I do not know until I read it. Dynamically creating Jtextfields and information can get to appear on them. I am trying to create a document list in those text areas so that a user can change the data and every time a number changes it will automatically update the XML file. The problem is that there is no reference to JTextField to get the text and it is causing a compiler error, is there any way to do this? Use the factory style setup. Actually, make a method or class that will make a JTextField pass the reference to the node that it will be responsible for it. Create a text field and register it DocumentListener ... However, I have to be careful about using a DocumentListener personally, maybe A ActionListener and / or Focus Listener may be more suitable but may be grass.

initialization - python : instantiation of object -

वर्ग टीम: def __init __ (स्वयं): प्रिंट "ऑब्जेक्ट तत्काल" टीम वर्ग की वस्तु बनाने के लिए, & gt; & gt; & gt; Obj = टीम () वस्तु instantiated से obj मैं टीम वर्ग के सदस्य तक पहुँच सकते हैं। लेकिन निम्नलिखित क्यों अनुमत है? & gt; & gt; & gt; Y = obj .__ init __ () वस्तु instantiated यहाँ कुछ सवाल उठाता है। क्यों obj सक्षम है __ init __ () , __ init __ () को दूसरी विधि की तरह कॉल करने के लिए जब भी __ init __ () को कहा जाता है कि यह एक ऑब्जेक्ट (सही होगा अगर मैं यहाँ गलत हूं) को बना दिया है, तो y टीम का एक अन्य उदाहरण रखना चाहिए सभी "जादू" (डबल अंडरस्कोर) विधियां इसके अलावा, नियमित तरीकों के रूप में उपलब्ध हैं उनके विशेष उपयोग __ init __ विधि वास्तव में ऑब्जेक्ट उदाहरण नहीं बनाती है, यह केवल __ नया __ विधि के बाद वस्तु को आरंभ करती है (ध्यान दें कि __ init __ कुछ भी वापस नहीं करता है, इसलिए y होगा कोई भी के बाद y = obj .__ init __ () ।)

get http url parameter without auto decoding using PHP -

मेरे पास एक url है test.php? X = हैलो + दुनिया और y file_put_contents ('x.txt', $ _GET [' एक्स']); // - & gt; हैलो वर्ल्ड फाइल_पूट_कंटेंट ('y.txt', $ _GET ['y']); // - & gt; \ 0h \ 0e \ 0l \ 0l \ 0o लेकिन मुझे इसे एन्कोडिंग के बिना लिखना होगा file_put_contents ('x ।टेक्स्ट', ????); // - & gt; हैलो + विश्व फ़ाइल_पोट_कंटेंट ('y.txt', ????); // - & gt;% 00h% 00e% 00l% 00l% 00o मैं कैसे कर सकता हूं? धन्यवाद क्योंकि $ _ GET और $ _ अनुरोध सुपरग्लॉबल्स स्वचालित रूप से एक डीकोडिंग फ़ंक्शन के माध्यम से चलाए जाते हैं ( urldecode () ) के समतुल्य है, तो आपको यूआरएल स्ट्रिंग में दिए गए अक्षरों से मिलान करने के लिए डेटा को फिर से- urlencode () करने की आवश्यकता है: file_put_contents ('x.txt', urlencode ($ _ GET ['x'])); // - & gt; हैलो + विश्व फ़ाइल_पोट_कंटेंट ('y.txt', urlencode ($ _ GET ['y'])); // - & gt;% 00h% 00e% 00l% 00l% 00o मैंने इसे स्थानीय रूप से जा...

block execution iOS and assigning variable -

I am using drupal-ios-sdk (based on AFNetworking) and in my app tab created with storyboard Bar is the controller. While loading one of the view controllers, I am making a request with drupal-ios-sdk in initWithCoder and specifying an instance variable in the success block . Later, viewDidLoad I try to print this variable and I'm interested in why I have to retain the frequency variable in the success block, even if I define variables with an array. This is not an ARC! No use to maintain success block my VCH @interface AboutViewController: UIViewController {@private NSDictionary * response; NSString * aboutPageHTML; } @end my VC.m - (id) initWithCoder: (NSCoder *) aDecoder {if ((self = [super initWithCoder: aDecoder ])) {NSDictionary * viewData = [NSMutableDictionary new]; [ViewData setValue: @ "aboutse" for: @ "view_name"]; About page HTML = [[[NSString alloc] init] autorelease]; Zero (^ success block) (FHTPPRequest operation *, ID) = ^ ...

php - How to POST dynamic input tags in codeigniter -

I am facing a serious dilemma, and thinking how this is possible. I have a form created in the codeigniter structure, there is an input tag at the end of the form, which takes a number and adds a new form with the exact rows of the input tag, which is the value of the previous input tag. I used javascript, the code is $ ('# formName9'). ('Change', function () {var selected = $ (this) .val (); $ ('#subform') empty (); $ ("# subForm") enclosed ('& lt; table limit = "Style =" border: none; background: # f2f2f1; margin-bottom: 10px; border-fall: collapse; margin head: 25px; box-shadow: 9px4px 8px rgba ( 50, 50, 0.75); "Cellpacing =" 0 "cellpadding =" 0 "> td style =" text-align: center, width: 30px; border- Width: 0px; "& gt; img SRC =" gt; & gt; & gt; & lt; td style =" text-align: center; border-width: 0px; "& gt; icize =" & lt ;? Php echo base_url...

apache - Configuration http not running after installing mod_jk.so -

मैंने स्थापित किया है: mod_jk-1.2.31-httpd-2.2.x.so httpd को अद्यतन करने के बाद mod_jk / sbin / service http stop त्रुटि: /usr/local/apache/conf/httpd.conf की पंक्ति 30 पर httpd: वाक्यविन्यास त्रुटि: /usr/local/apache/conf.d पर लाइन 2 पर सिंटैक्स त्रुटि। /mod_jk.conf: /usr/local/apache/modules/mod_jk.so सर्वर में लोड नहीं किया जा सकता: /usr/local/apache/modules/mod_jk.so: गलत ELF वर्ग: ELFCLASS32 64 बिट सिस्टम के लिए सही संकलित संस्करण मिला है।

ios - error with tableview reload data inside connectionDidFinishLoading (parsing by json) -

I have a custom view-controller with a table view, custom table view cell and -) after the connectionDidFinish is loading: (NSURLConnection *) connection {} This returns this error: Property 'Table view' type of object 'ViewController2 *' Not found on The code below and without it the data is not displayed in the table view. [self.tableview reloadData]; I am unable to determine how to fix it. Please help me. I appreciate the help very much. Thanks in advance. Possibilities of the above error 1) Your Exib is your ViewController2 2) You will not connect your table view to your xib from the IBOutlet 3) If you do not synthesize it, if you have declared it as a property 4) If all above you just cleaned and run just your Xcode

iphone - How to show Pie Chart , Bar Chart and Line graph in single view in ios -

Image
I have to show graph charts in the iPad, which is something like the image below. Please tell me some tips on how to do this I have referenced from the tutorial. Here I can see that he has used different view controller to do three graphs. I want it in a visual controller. SingleView application, create new projects of drag and drop, using the necessary core plot, also drag these three view controllers into your project. See the three found administrators 1. CPDPieChartViewController 2. CPDBarGraphViewController 3. CPDScatterPlotViewConntroller The subclasses do them instead of UIView in & lt in them; UIViewController & gt; Usage & lt; UIView & gt; 1 CPDPieChartView 2. CPDBarGraphView 3. CPDScatterPlotView and remove the code related to the UIViewController-like method inside their implementation file. (Zero) viewDidAppear and unwanted synthesized objects and instead add initwithframe method Main ViewController Imports inside Ur Proje...

mysql - SQL function 2 digit number formatting -

Does any SQL function convert to two digit numbers, then I get 01 I can 1. You have to convert the value to a string. You can use LPAD () for it,

Landscape Mode is not working in Windows Phone Emulator -

Landscape mode is not working as I expected in the Windows Phone Emulator when I run my app, then I Keypad does not seem to have a proper look, like I do when using portrait mode. How can I enable the keypad? Does it look like orientation in the Windows Phone Emulator?

ruby on rails - git push heroku hangs -

Disclaimer: I am a Noble. I am learning Ruby and everything worked fine two days ago I'm not sure what happened, but I am not able to push for it now , It gets alright, but then hangs on the following line (these are the last lines on the console): -----> Process type of search process declares file type - & gt; (None) Default type for Ruby / Rail - & gt; Console, Rake, Web, Worker Fact: Git remove -v works fine. The app works fine on my computer My system: The latest Mac OS, ROR app My app has arrived: Any idea why this happens About In the do you have? 50 MB Data files in your GIT repo to work things when you start removing them. Try removing them in such a way (if you do not need them) Git rm ./db/pg_xlog/000000010000000000000001 Git rm ./db/pg_xlog / 000000010000000000000002 Git rm ./db/pg_xlog/000000010000000000000003 Git rm db / pg_clog / 0000 Git -m commit 'delete big files' then try push again. (Suppose, of course, you do no...

Retryable pattern for file processing in java -

I need to process a large file (with columns and the same format lines) because I programmed during processing Crashing cases need to be considered, I need this processing program to try again, which means that after crashing and I start the program again, Can I follow any pattern Interpretation can I use my or library? Thanks! Update: Regarding crashes, it is not about OOM or just some internal issues, due to expiry of time with other parts or machine crashes. It can also happen. So try / hold it can not handle it. Another update: About the fragment of the file, it is possible in my case, but it is not as simple as that sounds. As I said, the file is formatted with multiple columns and I can divide it into hundreds of files based on one column and then process files one by one. But instead of doing so, I would like to know more about the general solution about processing large files / data to try again. You can maintain a checkpoint / commit style logic in your co...

c# - How to get count of nested repeater items -

I have a criminal on my page and there is a nested repeater on that item, its structure is below & asp: repeater id = "rptOuter repeater" runat = "server" & gt; & Lt; ItemTemplate & gt; & Lt; Tr & gt; & Lt; TD & gt; // Need some code logic for counting & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Asp: repeater id = "rptInnerRepeater" unat = "server" & gt; & Lt; ItemTemplate & gt; & Lt; Tr & gt; & Lt; TD & gt; & Amp; Nbsp; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / ItemTemplate & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: Repeater & gt; I need to calculate the item count of the rptInnerRepeater in place of the comment. Is it possible that inline code. Since you are binding your repeater to a data source, Why can not manipul...

visual studio 2010 - TFS application tier, error adding user -

I am trying to add Admin console users from another user (from other domain ...) and the process fails When the master is trying to add the account to the database is the relevant part of the log. Start node: ADDSYSTEMDBACCOUNT [info @ 07: 21: 43.223] NodePath: ADDCOLLACCOUNT / ADDSYSTEMDBACCOUNT [info @ 07: 21: 43.223 ] Adding account to system database ... [info @ 07: 21: 43.223] Adding account to master database ... [info @ 07: 21: 43.223] ModifyExecRole: Add: Dev \ Helis [Error @ 07: 21: 43.363] Dev failed to add \ Heli of guru [error @ 07: 21: 43.363] System.Data.SqlClient.SqlException (0x80131904): The role 'TFSEXECROLE' can not be changed because it does not exist or you do not have the permission. On Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.Execute Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlResourceComponent.HandleException (Exception exception) in Microsoft.TeamFoundation.Framework.Server.TeamFoun...

How to use return value of a function as condition of while that returns tuple in python -

I was looking for something like this but I did not know that it goes here. Some backgrounds I use opencv to get the frame from a video file. Usually people do this in the endless loop: while (true): s, img = cv.read () or for i in xrange (10000): # large number, img = cv.read () Now I want to recover all frames and loop I want to leave when there is no other frame, though my skills in dragon is not enough which I want to do. What I want to know read function (or method, I do not know how they are called in Python ) A tube gives: First represents the success of the operation, and the second frame returns the frame when I want to break the loop when the first element of tuple is false. Being a background, I thought it would work: while ((success, img = capture. Read ()) [0]): # sdh with img I thought it would break the loop when success would be false but it was not. Then I thought it would work: while ((success, IMG = Capture.Red). Success: #Ads w...

Jquery's Multiple Selector not working in IE -

I have developed this code to create the same height of the divs similar to a specific div but it does not work below IE9 and Has been doing . I do not know this mistake what I'm doing ... Demo: - JS: - $ (window). Load (function () (var getWrapHeight = $ ('# wrap'). Height (); console.log (getWrapHeight); $ (".a1, .a2, .a3, .a4"). CSS ({"height ": GetWrapHyight,}};}); console.log actually throws a javascript error in IE because it does not exist If you had the setting turned on "display a notification about each script error" in IE, You will receive (this is what I found, I have turned it on): Demo: Error: 'console' P> If you really want to keep that log, you can change it with: if (window.console) {console.log ( GetWrapHeight);}

security - Connecting AWS EC2 instance asks for password although PEM file is provided -

I have just made an EC2 example on AWS before, I added my key, downloaded the private key. I am now trying to log on to the newly created instance (using the correct host name, of course, which I have changed here for security). I've added a V switch to get debug output: ssb ec2-user@myvirtual.host.compute-1.amazonaws.com -i ~ / EC2key.pem -v Although I provide a key file, I am asked for a password. This is a fraction of the debug output that can show what is going wrong: debug1: host 'myVirtualHost.compute-1.amazonaws.com' matches ECDSA host key and Matches. Debug 1: found in Key / Memory / SSI / Known_Hosts: Debug 1: SSH_SADSA_Verification: Signature Correct Debug 1: SSH2_MSG_NEWKEYS Sent Debug 1: Expected SSH2_MSG_NEWKEYS Debug 1: SSH2_MSG_NEWKEYS Received Debug 1: Not allowed by server debug 1: SSH2_MSG_SERVICE_REQUEST Debug 1 Sent: SSH2_MSG_SERVICE_ACCEPT Received Debug 1: Authentication that can be continued: Publishing, Password Debug 1: Next Authentic...

javascript - label for circle marker in leaflet -

मैं इस तरह से सर्कलमार्कर को लेबल जोड़ने में सक्षम हूं L.circleMarker (points [ I], {title: 'unselected'})। बाइंड लेबेल ('गंतव्य')। AddTo (मैप); यह लेबल जोड़ता है जो सर्कल मार्कर पर माउस होवर पर दिखाई देता है। लेकिन मैं स्थिर लेबल जोड़ना चाहता हूं जो माउस की परवाह किए बिना उस सर्कल मार्कर पर दिखाई देगा या नहीं । मैं सर्कल मार्कर में स्थिर लेबल जोड़ने के लिए इस डेमो का संदर्भ देता हूं, लेकिन कुछ कैसे मैं इसे करने में सक्षम नहीं हूं। यह मार्कर के साथ ठीक काम कर रहा है लेकिन सर्कल मार्कर के साथ स्थिर लेबल काम नहीं कर रहा है। सर्कल मार्कर पर लेबल जोड़ने का कोई अन्य तरीका भी है? एल। क्रिक मार्कर से विस्तारित एल.पैथ नहीं एल। मार्कर , इसलिए यदि आप तुलना करते हैं और आप पाते हैं कि पथ के पास कोई विकल्प नहीं है और यह तर्क आपको खुद को लागू करना होगा उदाहरण के लिए: एल .क्रैक मार्करइनमें शामिल करें ({बाइंडलाबेल: फ़ंक्शन (सामग्री, विकल्प) {यदि (! This._label || this._label.options! == विकल्प) {यह _label = नया एल। लेबल (विकल्प, यह);} this._label.setConte...

visual studio 2012 - How to set the working directory for MS Test projects -

How do I set a working directory for message test projects, such as I can do it for normal application projects ? Some components need to be used to check my component, which are also used by other applications. So far, I have to copy these files to the bin / debug folder of my test project, as this file is expected to be in the working directory. Is it possible to set up a working directory for test projects? class = "post-text" itemprop = "text"> For those who use Visual Studio 2012, if you set up the output directory of the test project under the project. Build | The outputpath will then become a working directory when you run a test from Visual Studio (because it is using Vstest.console.exe). If you do not want to keep your test DLS, etc. output in the same directory as your directory and you do not want to keep other files in the form of content in your test project (as suggested by Sleasos), then you In a method you can set the path on startup [Asse...

c# - Process Id not coming in log4net log file name -

I am trying to keep process ID information in my log file name so that every time a new log file is created. The application has started again. I am entering the same file with two projects, it is my config. & lt; Configuration & gt; & Lt; ConfigSections & gt; & Lt; Section name = "log4net" type = "log4net.config.loginNetConfigurationSectionHandler, log4net" /> & Lt; / ConfigSections & gt; & Lt; Log4net & gt; & Lt; Appender name = "newlogfireiverment" type = "log4net .apper. Rolling file appleper" & gt; & Lt; File value = "c: \\ test leg \\ two projects - [% processid] .txt" /> & Lt; Layout type = "log4net.Layout.PatternLayout" & gt; & Lt; Conversion pattern value = "% d [% t]% -5p% c -% m% n" / & gt; & Lt; / Layout & gt; & Lt; / Appender & gt; & Lt; Logger name = "class library 1" & gt; & Lt; Level valu...

ruby - Why do we pass 0 as a parameter to "exit"? -

In the book Learning Ruby hardly , I got a syntax to exit the program : process.exit (0) parameter 0 passed to exit Going> method here though it works if I pass any other integer or does not pass a parameter? 0 Why is this an 'exit code' important? . In some cases this exhaust code has special meaning (see for example) You can pass whatever you want, if not caught after code If so, then there will be no effect. Here everything is fine!

javascript - Change site background colour with colour picker -

I am using for my site. I want to change the background of my website body / html , when the selection is in progress as soon as there is a change in the background of the textbox. I have looked at the JS file but found it a little complicated I have written to the document.body.style.backyle = styleElement.jscStyle.backgroundColor; 410-430 added between lines but nothing changed. How can I get it? Thank you In the demo page you have "Onchange event": You need to create Input like this: & lt; Input class = "color" onchange = "document.body.style.backgroundColor = '#' + this.color" & gt; My guess is that in your example, you have forgotten before the # color hex code.

Adding new Attributes to ACL in Symfony 2 -

I am new to Symphony, for my project, I am trying to use properties of ACL and their permission. In the cookbook, it says that the permission map is in no way stable and can be completely replaced at will. I need to make two other features, one proposal and other acceptance. Something where a user can propose new pages or comments and another can decide whether it can be published or not. For just this moment, can I start with any clue or reference that I can not apply it with ACL? I have already read about the ACL in the kitchen book and its advanced use, but she did not help me. Compared to ACL, you are more related to the rules engine Take a look at the following links for implementation:

Git two competitive commits in different branches -

Image
I got the status: I'm preparing to decide for a problem Was there. / Li> I pulled the request for upstream remote. Someone else was preparing to decide for a problem. Someone else is improving; My bridge request has been accepted. My pull request has been rejected. What is the best thing to do now to bring my origin back to the remote head? You just need to bring the origin, and rebase your current branch over it. It may be enough to be git pull -rebase upstream You were using your fix, you can check the other branch after that, however, It does not mean to reapply for any improvement, which has already been accepted (with a different commitment than a separate bridge request). It assumes that you have forked while mentioning 'upstream', original repo in your local repo. Once you have done your work in progress, once upgraded upstream, you can push the original (your fork) back.

iphone - Nested settings with plists: creating additional settings page doesn't work in iOS -

Image
I'm trying to get the nested structure of my app settings using pLists and Xcode 4.6. I have tried so far: I followed a tutorial from Apple documentation. I have added a setting bundle separately, items that work perfectly when it comes to my child's pane, I have a file called "child settings "And using a Finder in my settings bundle, a Plild ChildSetting Plist is added. Problem: When I select "iPhone Setting Plist" with type of type of property options, my choice will not be accepted. First of all, Looks ok: but After clicking a different file and clicking on my childsetting.plist, the root element is still root instead of the "iPhone setting schema" Edit XML source, clean up and build the project, restart XCode Doing or reinstalling the app was not working. It always comes back to the same problem: Childpace is empty. It seems that PLIS did not get it - I suppose it is not recognized as an iPhone setting schema. ...

mercurial - Resolving conflicts: how to accept "their" changes automatically? -

जब hg मर्ज का उपयोग करते हुए विवादित परिवर्तनों को मर्ज करते हुए, मर्क्यूरिअल होने के लिए फ़ाइलों में मार्करों का एक सेट सम्मिलित करता है इस तरह मेरी कार्यशील प्रतिलिपि में विलय: & lt; & lt; & lt; & lt; & lt; & lt; & lt; स्थानीय संस्करण = 0.2 ======= संस्करण = 0.1> gt; & gt; & gt; & gt; & gt; & gt; अन्य तब मैं मैन्युअल रूप से hg resolver --all -l द्वारा तैयार की गई सूची से यू के रूप में चिह्नित सभी फ़ाइलों को मैन्युअल रूप से संपादित करता हूं और फिर मैं उनको सुलझता हूं hg संकल्प- m file1 file2 file3 ... कई परिस्थितियों में मैं चाहता हूं कि कुछ विवादित फाइलों पर केवल मेरे-केवल या उनके-केवल परिवर्तन स्वीकार करें मैं दो सरल एसएडी / एजेसीक / जो भी accept-theirs.sh और accept -my.sh नाम से लिपियों को बनाने की सोच रहा हूं या कोई भी उचित "ऐसा करने का तरीका है" का प्रयोग करें hg संकल्प -t आंतरिक: अन्य - और hg संकल्प को स्वीकार करने के लिए सभी आंतरिक: स्थानीय - सभी को अपना स्वीकार करने के लि...

c# - Performance profiling asp.net, what is ProcessRequestNotificationHelper? -

I am displaying asp.net web application on the load of 20 users per second. 20 users are basically hijacking the application and nothing is loading. I am using the Redgate Display Profiler, and I'm not sure what to do about it. 12% of the time is spent in my code (which I can do to dig and improve in), but 88% of the time is spent System .Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper (IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int Flags) .. I have no clue what this is (well, I'm pretty sure this IIS7 has something to do with ...), and dealing with the site which is not capable Any idea anyone? Confirmation of the process is the entry point for your profiling tool to capture your data. DNAtrays, such as redgate, define it as entry point where their ASP.NET sensor can start identifying incoming requests in ASP.NET pipeline.

CUIT: VS 2010: i have recorded CUIT test in Windows 7 and playing back in Window XP it is failing -

I recorded the CUIT test in Windows 7 and playing back in Window XP is unsuccessful. This record clicks the point difference in XP and 7 How to solve this limitation? When I use the mouse I always remove the point () parameter. Click to remove that ultimate: Old: Mouse. Click (object name, point (12,34)); New: Mouse. Click (object name);

matlab - Fit sinusoidal models -

I have tried to fit the following cineaside model by the following model, which means the deterministic model + white noise: function [x] = Generated (N, M, A3) F1 = 100; F2 = 200; T = 1 / f1; For T = 0: n * t / m: n * twn (t) = rand (1, t) * 2-1; X (t) = 20 * sin (2 * pi * f1 * t) + 30 * because (2 * pi * f2 * t) + a3 * wn (t); End; But when I run using the following command: generated (100,10,40) I got the following error: The subtitle index should be either real positive integer or logical. Error generating (line 6) WN (t) = rand (1, t) * 2-1; So what's wrong? As I know I can use two parameters for the rand function? What's the problem here? UPDATED: I have done it for fixing function [x] = generated (N, M, A3) WN = []; F1 = 100; F2 = 200; T = 1 / f1; K = 0; T = 0: n * t / m: n * t% wn (k) = rand (1,1) * 2-1; % X (k) = 20 * sin (2 * pi * f1 * t) + 30 * cos (2 * pi * f2 * t) + a3 * wn (k); % K = k + 1; WN = Rand * 2-1; Disp (20 * sin (2 * pi * f1 ...

How to use fields from 2 models in treeview? openerp -

I have a tree that has many relationship areas with other models, I want to change colors Based on the value of the field in other models, records of an existing tree view. You can use the related field in this scenario: Like this: 'plan_id': fields.many2one ('hr_evaluation.plan', 'Assessment Plan', Ondelete = 'cascade',), 'company_id': fields .related ('plan_id', 'company_id', type = 'many2one', relation = 'res.company', string = 'company', store = true, readonly = true), And then used the company_id field.

html - Not able to design checkbox in css -

I have a list of checkboxes, which I tried to customize the design. But my coding does not work. My sample code is: My CSS is: input [type = "checkbox"] {display: none; } Input [type = "checkbox"] + duration {width: 15px; Height: 15px; Background: url (../img/uncheck_box.png) no-repeat; Display: inline-block; } Input [type = "checkbox"]: Czech + span {background: url (../ img / check_box.png) no-repeat; } My HTML is: & lt; Input type = "checkbox" id = "1" /> gt; & Lt; Span & gt; & Lt; / Span & gt; & Lt; Label = "1" & gt; AAAA & lt; / Label & gt; & Lt; Br / & gt; & Lt; / Label & gt; & Lt; Br / & gt; & Lt; Input type = "checkbox" id = "2" /> gt; & Lt; Span & gt; & Lt; / Span & gt; & Lt; / Label & gt; & Lt; Br / & gt; & Lt; Input type = "checkbox" id = "3" /> gt; &...

c# - Anonymous types LinQ - Check for null value - Exception -

I have gone for a while and tried a variety of combinations for my problem. I first ran into my Anonymous Type I "loop" to fill your Gridwu with results goes well, because there are some real values ​​in all the variables. But throws the second row to fill the line number 2: Object references are not set to any instance of the object. This is because I probably specify a bacon object to clear and Gridview can not handle it. I have tried to prepare some solutions but nothing is working yet. Is there a secret path to understand Linq correctly? This is my code right now: var filteredlist = new information from // external list from information in the list {question = info.QuestionText ?? "Test", correct answer = info.Correct Ansver.OptionText ?? "Test", WrongAnswer1 = info.WrongAnswer1.OptionText ?? "Test", WrongAnswer2 = info.WrongAnswer2.OptionText ?? "Test", // throws error WrongAnswer3 = info.WrongAnswer3.OptionText ...