Wednesday, 15 August 2012

tags - How do I Maintain Multiple Lines of Development Between Customers In Mercurial? -


I work on maintaining the same e-commerce web-app for many customers.

Originally there was a standard set of pages from which all the rest of the customers were pre-optimized.

Recently I decided to use Mercurial for the control of the place where I worked. They have also decided that the standard set of pages for our e-commerce work again and develop them as a mainline / baseline.

It is being said that there are existing customizations for each of our customers, which were created before the base-line set of page-base, which are not registered in version control (HG) < / P>

What is the best way for us to merge the changes in a different line of different development from the baseline of development for each of our customers, Existing customizations

What is the best way to merge changes from the baseline of development, for each of our customers, there is a separate line of development, Keep current customization for the customer?

Just in the case of any other branches, e. G .:

  alice ~ / wc / cust-xyz% hg bridge -u $ xyz alice ~ / wc / cust-xyz% hg ci allus ~ / wc / cust-xyz% hg ci Alice ~ / / wc / cust-XYZ% hg CI Ellis ~ / / wc / cust-XYZ% hg $ drag the menine ally ~ / wc / cust-xyz% hg merge aliis ~ / wc / cust-xyz% hg ci alis ~ / Wc / Cust-XYZ% hg push $ xyz  

like - Can MySQL fulltext search be adapted to search for partial words? -


मैंने MySQL पूर्ण टेक्स्ट खोज को कार्यान्वित किया और सही काम किया।
अब ग्राहक चाहता है कि खोज के द्वारा आंशिक मिलान मिल जाए उदाहरण के लिए 'बेस' शब्द 'डेटाबेस' से मेल खाना चाहिए।
मुझे पूरा पता है कि पूर्ण टेक्स्ट खोज का शब्द शब्द सीमांकक पर आधारित है, और पूर्ण शब्दों की खोज करना है।
मुझे पता है कि मुझे सबसे अवांछनीय < कोड> '% $ term%' पसंद करें जो पूर्ण पाठ खोज के मिठास और प्रदर्शन को बर्बाद कर देगा।
तो क्या कोई आशा है?
अग्रिम धन्यवाद

पीएस: मैं उपयोगकर्ता हूं, मेरे पास अपनी साइट पर ओपनआईड प्रमाणीकरण था, लेकिन मेरा होस्ट हाल ही में नीचे चला गया, इसलिए मैं इसके माध्यम से लॉग इन नहीं कर सकता, इसलिए मैं इस प्रकार के अन्य नामों का उपयोग कर रहा हूं।

क्या आपने सुना है? यह अच्छी तरह से MySQL के साथ एकीकृत करता है, और एक शक्तिशाली (और तेज़!) पूर्ण पाठ अनुक्रमणिका है।

आपको इसे पसंद आएगा।

(नहीं वे मुझे भुगतान नहीं करते हैं)


javascript - Clicking checkbox to expand div, doesn't work in IE7 -


The following code works fine in FF, but not IE 7 - when you click on the checkbox in IE divs Do not toggle.

How can I troubleshoot these types of issues - how can anyone know about this?

  // hide divs $ ('optional-toggle1'). CSS ({Display: 'None'}); $ ('Product-Optional-Toggle 2'). CSS ({display: 'none'}); $ ('Product-Optional-Toggle 3'). CSS ({Display: 'None'}); // (Toggle Divis) checkbox $ ('Product-Optional-Checkbox 1'). Change (function () {if ($ (this) .attr ("checked") === "true") {$ ('.product-optional-toggle1') Toggle ('sharp'); return;} $ ('Product-Optional-Toggle 1') Toggle ('Sharp');}); $ ('Product-Optional-Checkbox2'). Change (function () {if ($ (this) .attr ("checked") === "true") {$ ('product-optional-toggle2'). Toggle ('sharp'); return;} $ ('Product-Optional-Toggle 2') Toggle ('Sharp');}); $ ('Product-optional-checkbox3'). Change (function () {if ($ (this) .attr ("check") === "right") {$ ('. Product-optional-toggle3') ('sharp'); return;} $ (' Product-optional-toggle3 '). Toggle (' sharp ');}); For the check box, IIRC behaves oddly on the IE onchange event (compared to other browsers) and I     

(Update: I am very slow)

Edit: If you want, you can simplify your code a little bit. ...

 for  (var i = 1; i  

java - How would i delete data from an external file? -


I have a format in an external file

  name telephone no mob address  

From Gui, I would like to delete a delete which is in the above format using my delete button.

I have completed the exporting method and wondering what is being removed will be similar, here is my code for export.

  {FileOutputStream file; Printstream out; Try {File = new FileOutputStream ("../files / example.buab", true); Out = new printstream (file); Out.println (txtname.getText ()); Out.println (txtnum.getText ()); Out.println (txtmob.getText ()); Out.println (txtadd1.getText ()); System.err.println (""); Out.close (); } Hold (exception e) {System.err.println ("error in writing file"); }}  

Do you really want to immediately remove the contact on file?

Normally you do something like this:

  1. Import file contents into your model, iaw list of contact items
  2. All your edits Apply model (change value, add contact, delete contact)
  3. Save your edits, overwrite iaw file with your model.

Too many, delete a line on a file ...


Confirming a successful LINQ to SQL update -


I am using whether the following code is appropriate if I want to inform the sender that the database has been updated successfully Or is there a better way?

  try {dc.ModelA.InsertOnSubmit (modela); Dc.SubmitChanges (); Back true; } Hold {return false; }  

There is a better way to catch the exception and call it. By catching the exception, you are extracting all the information about why , failing to include, for somebody it is difficult to debug and fix the problem, then you need it :

  DC Model A. Insert onspit (model); Dc.SubmitChanges ();  

php - Why is the From line not working on my mail function? -


I am using a mail function to send html to an email address, but not displayed by name and email address Are there. This is my code:

  $ name = $ _POST ['name']; $ MailTo = 'name@email.com'; $ Theme = 'message from' $ _POST ['name']; $ Message = '& lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; HTML Email & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; P & gt; & Lt; P & gt; Name: & lt; / P & gt; '$ _POST [' name ']. '& Lt; / P & gt; & Lt; P & gt; & Lt; P & gt; Email: & lt; / P & gt; '$ _POST [' email ']' & lt; / P & gt; & Lt; P & gt; & Lt; P & gt; Message: & lt; / P & gt; '$ _POST [' main message ']' & lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt; '; $ Header = 'mime-version: 1.0' "\ r \ n"; $ Headers = 'Content-type: text / html; Charset = ISO-885 9-1 '"\ r \ n"; $ Headers = 'From: Postmaster & lt; Some@body.com> '; Mail ($ mail, $ theme, $ message, $ headers);  

I hope the e-mail should be sent as a postmaster to email some@body.com, but it appears as coming from ideapale@box486.bluehost.com

Chris, \ r \ n to & Lt; Some@body.com> Try adding after . I have found that PHP can be very smart when talking to the mail server.

Edit: To help just a bit more, I have one of my work scripts in it (almost exactly what you have):

  $ header = 'Mime-version: 1.0' "\ r \ n"; $ Headers = 'Content-type: text / html; Charset = ISO-885 9-1 '"\ r \ n"; $ Headers = 'Counter:' $ \ "\ R \ n"; $ Headers = 'To:'. $ \ "\ R \ n";  

... from where $ = $ fromname. '& Lt; '. $ Fromemail. ' & Gt; '; and $$ are just an email address.


impersonation - Unable to stop .NET windows service remotely -


I have developed an app in C # .NET 2005. It is used to remotely start and stop Net Window services. If I run this app in my local system, then it works fine. It turns off Windows services in other systems.

The same application I put in the server and tried to stop the services in the other server. It's unsuccessful The app is capable of pinging other servers Impersonation is successful but an exception is thrown when the app tries to stop the service I really do not have any clue.

log file

27/11/2009 08:35:18 (0): SCM pc succeeded 27/11/2009 08: 35: 18 (0): Impersonation successful 27/11/2009 08:35:18 (0): Stop the service ..... 27/11/2009 08:35:22 (0): Exception when stopping service: Alert application engine exception: Computer '66.82.1.1 Can not open service control manager at 7. This operation may require other privileges 27/11/2009 08:35:22 (0): Exception occurred: Computer service manager at '66.82.1.7 ' Can not open it This operation may require other privileges.